You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/2577.5d7d2c76.async.js

639 lines
3.0 MiB

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

!(function(){var fx=Object.defineProperty,px=Object.defineProperties;var mx=Object.getOwnPropertyDescriptors;var ug=Object.getOwnPropertySymbols;var Ab=Object.prototype.hasOwnProperty,kb=Object.prototype.propertyIsEnumerable;var ny=Math.pow,Nb=(X,C,h)=>C in X?fx(X,C,{enumerable:!0,configurable:!0,writable:!0,value:h}):X[C]=h,Po=(X,C)=>{for(var h in C||(C={}))Ab.call(C,h)&&Nb(X,h,C[h]);if(ug)for(var h of ug(C))kb.call(C,h)&&Nb(X,h,C[h]);return X},cd=(X,C)=>px(X,mx(C));var Ib=(X,C)=>{var h={};for(var v in X)Ab.call(X,v)&&C.indexOf(v)<0&&(h[v]=X[v]);if(X!=null&&ug)for(var v of ug(X))C.indexOf(v)<0&&kb.call(X,v)&&(h[v]=X[v]);return h};var iy=(X,C,h)=>new Promise((v,I)=>{var O=F=>{try{G(h.next(F))}catch(M){I(M)}},B=F=>{try{G(h.throw(F))}catch(M){I(M)}},G=F=>F.done?v(F.value):Promise.resolve(F.value).then(O,B);G((h=h.apply(X,C)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[2577],{89489:function(X,C,h){"use strict";h.d(C,{Z:function(){return de}});var v=h(96663),I=h(59301),O={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},B=O,G=h(7657),F=function(te,Ne){return I.createElement(G.Z,(0,v.Z)({},te,{ref:Ne,icon:B}))},M=I.forwardRef(F),de=M},59477:function(X,C,h){"use strict";h.d(C,{Z:function(){return de}});var v=h(96663),I=h(59301),O={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},B=O,G=h(7657),F=function(te,Ne){return I.createElement(G.Z,(0,v.Z)({},te,{ref:Ne,icon:B}))},M=I.forwardRef(F),de=M},40001:function(X,C,h){"use strict";h.d(C,{Z:function(){return de}});var v=h(96663),I=h(59301),O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},B=O,G=h(7657),F=function(te,Ne){return I.createElement(G.Z,(0,v.Z)({},te,{ref:Ne,icon:B}))},M=I.forwardRef(F),de=M},26227:function(X,C,h){"use strict";h.d(C,{Z:function(){return de}});var v=h(96663),I=h(59301),O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},B=O,G=h(7657),F=function(te,Ne){return I.createElement(G.Z,(0,v.Z)({},te,{ref:Ne,icon:B}))},M=I.forwardRef(F),de=M},49198:function(X,C,h){"use strict";h.d(C,{Z:function(){return de}});var v=h(96663),I=h(59301),O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},B=O,G=h(7657),F=function(te,Ne){return I.createElement(G.Z,(0,v.Z)({},te,{ref:Ne,icon:B}))},M=I.forwardRef(F),de=M},41464:function(X,C,h){"use strict";h.d(C,{Z:function(){return de}});var v=h(96663),I=h(59301),O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},B=O,G=h(7657),F=function(te,Ne){return I.createElement(G.Z,(0,v.Z)({},te,{ref:Ne,icon:B}))},M=I.forwardRef(F),de=M},73331:function(X,C,h){"use strict";h.d(C,{Z:function(){return de}});var v=h(96663),I=h(59301),O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},B=O,G=h(7657),F=function(te,Ne){return I.createElement(G.Z,(0,v.Z)({},te,{ref:Ne,icon:B}))},M=I.forwardRef(F),de=M},15277:function(X,C,h){"use strict";h.d(C,{Z:function(){return de}});var v=h(96663),I=h(59301),O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},B=O,G=h(7657),F=function(te,Ne){return I.createElement(G.Z,(0,v.Z)({},te,{ref:Ne,icon:B}))},M=I.forwardRef(F),de=M},52671:function(X,C,h){"use strict";h.d(C,{Z:function(){return de}});var v=h(96663),I=h(59301),O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},B=O,G=h(7657),F=function(te,Ne){return I.createElement(G.Z,(0,v.Z)({},te,{ref:Ne,icon:B}))},M=I.forwardRef(F),de=M},8657:function(X,C,h){"use strict";h.d(C,{Z:function(){return de}});var v=h(96663),I=h(59301),O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},B=O,G=h(7657),F=function(te,Ne){return I.createElement(G.Z,(0,v.Z)({},te,{ref:Ne,icon:B}))},M=I.forwardRef(F),de=M},56082:function(X,C,h){"use strict";h.d(C,{Z:function(){return de}});var v=h(96663),I=h(59301),O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},B=O,G=h(7657),F=function(te,Ne){return I.createElement(G.Z,(0,v.Z)({},te,{ref:Ne,icon:B}))},M=I.forwardRef(F),de=M},33853:function(X,C,h){"use strict";h.d(C,{Z:function(){return de}});var v=h(96663),I=h(59301),O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},B=O,G=h(7657),F=function(te,Ne){return I.createElement(G.Z,(0,v.Z)({},te,{ref:Ne,icon:B}))},M=I.forwardRef(F),de=M},15075:function(X,C,h){"use strict";h.d(C,{Z:function(){return de}});var v=h(96663),I=h(59301),O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},B=O,G=h(7657),F=function(te,Ne){return I.createElement(G.Z,(0,v.Z)({},te,{ref:Ne,icon:B}))},M=I.forwardRef(F),de=M},43531:function(X,C,h){"use strict";h.d(C,{Z:function(){return de}});var v=h(96663),I=h(59301),O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},B=O,G=h(7657),F=function(te,Ne){return I.createElement(G.Z,(0,v.Z)({},te,{ref:Ne,icon:B}))},M=I.forwardRef(F),de=M},61485:function(X,C,h){"use strict";h.d(C,{Z:function(){return de}});var v=h(96663),I=h(59301),O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},B=O,G=h(7657),F=function(te,Ne){return I.createElement(G.Z,(0,v.Z)({},te,{ref:Ne,icon:B}))},M=I.forwardRef(F),de=M},38819:function(X,C,h){"use strict";h.d(C,{Z:function(){return de}});var v=h(96663),I=h(59301),O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},B=O,G=h(7657),F=function(te,Ne){return I.createElement(G.Z,(0,v.Z)({},te,{ref:Ne,icon:B}))},M=I.forwardRef(F),de=M},47472:function(X,C,h){"use strict";h.d(C,{Z:function(){return de}});var v=h(96663),I=h(59301),O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},B=O,G=h(7657),F=function(te,Ne){return I.createElement(G.Z,(0,v.Z)({},te,{ref:Ne,icon:B}))},M=I.forwardRef(F),de=M},32050:function(X,C,h){"use strict";h.d(C,{Z:function(){return de}});var v=h(96663),I=h(59301),O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},B=O,G=h(7657),F=function(te,Ne){return I.createElement(G.Z,(0,v.Z)({},te,{ref:Ne,icon:B}))},M=I.forwardRef(F),de=M},37036:function(){"use strict"},95625:function(){"use strict"},50371:function(X,C){"use strict";function h(){const v=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let I=1;I<arguments.length;I++){const O=I<0||arguments.length<=I?void 0:arguments[I];O&&Object.keys(O).forEach(B=>{const G=O[B];G!==void 0&&(v[B]=G)})}return v}C.Z=h},77578:function(X,C,h){"use strict";h.d(C,{Z:function(){return v}});const v=I=>I?typeof I=="function"?I():I:null},13845:function(X,C,h){"use strict";h.d(C,{F:function(){return v},Z:function(){return I}});function v(O){return O!=null&&O===O.window}function I(O,B){var G,F;if(typeof window=="undefined")return 0;const M=B?"scrollTop":"scrollLeft";let de=0;return v(O)?de=O[B?"pageYOffset":"pageXOffset"]:O instanceof Document?de=O.documentElement[M]:(O instanceof HTMLElement||O)&&(de=O[M]),O&&!v(O)&&typeof de!="number"&&(de=(F=((G=O.ownerDocument)!==null&&G!==void 0?G:O).documentElement)===null||F===void 0?void 0:F[M]),de}},56762:function(X,C,h){"use strict";h.d(C,{Z:function(){return I}});var v=h(59301);function I(){const[,O]=v.useReducer(B=>B+1,0);return O}},68031:function(X,C,h){"use strict";h.d(C,{Z:function(){return B}});var v=h(16089);function I(G,F,M,de){const ae=M-F;return G/=de/2,G<1?ae/2*G*G*G+F:ae/2*((G-=2)*G*G+2)+F}var O=h(13845);function B(G){let F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:M=()=>window,callback:de,duration:ae=450}=F,te=M(),Ne=(0,O.Z)(te,!0),Ee=Date.now(),Xe=()=>{const Ce=Date.now()-Ee,Ie=I(Ce>ae?ae:Ce,Ne,G,ae);(0,O.F)(te)?te.scrollTo(window.pageXOffset,Ie):te instanceof Document||te.constructor.name==="HTMLDocument"?te.documentElement.scrollTop=Ie:te.scrollTop=Ie,Ce<ae?(0,v.Z)(Xe):typeof de=="function"&&de()};(0,v.Z)(Xe)}},24905:function(X,C,h){"use strict";h.d(C,{default:function(){return Te}});var v=h(92310),I=h.n(v),O=h(5630),B=h(59301),G=h(36355),F=h(1684),M=h(32441),ae=B.createContext(null),te=h(98447),Ne=h(14088),Ee=h(4572),Xe=function(Me,Le){var Je={};for(var Ye in Me)Object.prototype.hasOwnProperty.call(Me,Ye)&&Le.indexOf(Ye)<0&&(Je[Ye]=Me[Ye]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ne=0,Ye=Object.getOwnPropertySymbols(Me);ne<Ye.length;ne++)Le.indexOf(Ye[ne])<0&&Object.prototype.propertyIsEnumerable.call(Me,Ye[ne])&&(Je[Ye[ne]]=Me[Ye[ne]]);return Je};const Oe=(Me,Le)=>{var Je;const{prefixCls:Ye,className:ne,rootClassName:at,children:Ge,indeterminate:Pt=!1,style:gt,onMouseEnter:kt,onMouseLeave:Ct,skipGroup:Cn=!1,disabled:Qe}=Me,le=Xe(Me,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:ce,direction:Ht,checkbox:Vt}=B.useContext(G.E_),St=B.useContext(ae),{isFormItemInput:sn}=B.useContext(M.aM),Ft=B.useContext(F.Z),oi=(Je=(St==null?void 0:St.disabled)||Qe)!==null&&Je!==void 0?Je:Ft,On=B.useRef(le.value);B.useEffect(()=>{St==null||St.registerValue(le.value)},[]),B.useEffect(()=>{if(!Cn)return le.value!==On.current&&(St==null||St.cancelValue(On.current),St==null||St.registerValue(le.value),On.current=le.value),()=>St==null?void 0:St.cancelValue(le.value)},[le.value]);const ni=ce("checkbox",Ye),[Jn,Mn]=(0,te.ZP)(ni),In=Object.assign({},le);St&&!Cn&&(In.onChange=function(){le.onChange&&le.onChange.apply(le,arguments),St.toggleOption&&St.toggleOption({label:Ge,value:le.value})},In.name=St.name,In.checked=St.value.includes(le.value));const re=I()(`${ni}-wrapper`,{[`${ni}-rtl`]:Ht==="rtl",[`${ni}-wrapper-checked`]:In.checked,[`${ni}-wrapper-disabled`]:oi,[`${ni}-wrapper-in-form-item`]:sn},Vt==null?void 0:Vt.className,ne,at,Mn),z=I()({[`${ni}-indeterminate`]:Pt},Ee.A,Mn),k=Pt?"mixed":void 0;return Jn(B.createElement(Ne.Z,{component:"Checkbox",disabled:oi},B.createElement("label",{className:re,style:Object.assign(Object.assign({},Vt==null?void 0:Vt.style),gt),onMouseEnter:kt,onMouseLeave:Ct},B.createElement(O.Z,Object.assign({"aria-checked":k},In,{prefixCls:ni,className:z,disabled:oi,ref:Le})),Ge!==void 0&&B.createElement("span",null,Ge))))};var Ie=B.forwardRef(Oe),Re=h(19127),fe=h(2738),me=function(Me,Le){var Je={};for(var Ye in Me)Object.prototype.hasOwnProperty.call(Me,Ye)&&Le.indexOf(Ye)<0&&(Je[Ye]=Me[Ye]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ne=0,Ye=Object.getOwnPropertySymbols(Me);ne<Ye.length;ne++)Le.indexOf(Ye[ne])<0&&Object.prototype.propertyIsEnumerable.call(Me,Ye[ne])&&(Je[Ye[ne]]=Me[Ye[ne]]);return Je};const ye=(Me,Le)=>{const{defaultValue:Je,children:Ye,options:ne=[],prefixCls:at,className:Ge,rootClassName:Pt,style:gt,onChange:kt}=Me,Ct=me(Me,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Cn,direction:Qe}=B.useContext(G.E_),[le,ce]=B.useState(Ct.value||Je||[]),[Ht,Vt]=B.useState([]);B.useEffect(()=>{"value"in Ct&&ce(Ct.value||[])},[Ct.value]);const St=B.useMemo(()=>ne.map(j=>typeof j=="string"||typeof j=="number"?{label:j,value:j}:j),[ne]),sn=j=>{Vt(Q=>Q.filter(T=>T!==j))},Ft=j=>{Vt(Q=>[].concat((0,Re.Z)(Q),[j]))},oi=j=>{const Q=le.indexOf(j.value),T=(0,Re.Z)(le);Q===-1?T.push(j.value):T.splice(Q,1),"value"in Ct||ce(T),kt==null||kt(T.filter(_e=>Ht.includes(_e)).sort((_e,It)=>{const $e=St.findIndex(vt=>vt.value===_e),Pe=St.findIndex(vt=>vt.value===It);return $e-Pe}))},On=Cn("checkbox",at),ni=`${On}-group`,[Jn,Mn]=(0,te.ZP)(On),In=(0,fe.Z)(Ct,["value","disabled"]),re=ne.length?St.map(j=>B.createElement(Ie,{prefixCls:On,key:j.value.toString(),disabled:"disabled"in j?j.disabled:Ct.disabled,value:j.value,checked:le.includes(j.value),onChange:j.onChange,className:`${ni}-item`,style:j.style,title:j.title},j.label)):Ye,z={toggleOption:oi,value:le,disabled:Ct.disabled,name:Ct.name,registerValue:Ft,cancelValue:sn},k=I()(ni,{[`${ni}-rtl`]:Qe==="rtl"},Ge,Pt,Mn);return Jn(B.createElement("div",Object.assign({className:k,style:gt},In,{ref:Le}),B.createElement(ae.Provider,{value:z},re)))},pe=B.forwardRef(ye);var ke=B.memo(pe);const ee=Ie;ee.Group=ke,ee.__ANT_CHECKBOX=!0;var Te=ee},98447:function(X,C,h){"use strict";h.d(C,{C2:function(){return G}});var v=h(17313),I=h(37613),O=h(83116);const B=F=>{const{checkboxCls:M}=F,de=`${M}-wrapper`;return[{[`${M}-group`]:Object.assign(Object.assign({},(0,v.Wf)(F)),{display:"inline-flex",flexWrap:"wrap",columnGap:F.marginXS,[`> ${F.antCls}-row`]:{flex:1}}),[de]:Object.assign(Object.assign({},(0,v.Wf)(F)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${de}`]:{marginInlineStart:0},[`&${de}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[M]:Object.assign(Object.assign({},(0,v.Wf)(F)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:F.borderRadiusSM,alignSelf:"center",[`${M}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${M}-inner`]:Object.assign({},(0,v.oN)(F))},[`${M}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:F.checkboxSize,height:F.checkboxSize,direction:"ltr",backgroundColor:F.colorBgContainer,border:`${F.lineWidth}px ${F.lineType} ${F.colorBorder}`,borderRadius:F.borderRadiusSM,borderCollapse:"separate",transition:`all ${F.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:F.checkboxSize/14*5,height:F.checkboxSize/14*8,border:`${F.lineWidthBold}px solid ${F.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${F.motionDurationFast} ${F.motionEaseInBack}, opacity ${F.motionDurationFast}`}},"& + span":{paddingInlineStart:F.paddingXS,paddingInlineEnd:F.paddingXS}})},{[`
${de}:not(${de}-disabled),
${M}:not(${M}-disabled)
`]:{[`&:hover ${M}-inner`]:{borderColor:F.colorPrimary}},[`${de}:not(${de}-disabled)`]:{[`&:hover ${M}-checked:not(${M}-disabled) ${M}-inner`]:{backgroundColor:F.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${M}-checked:not(${M}-disabled):after`]:{borderColor:F.colorPrimaryHover}}},{[`${M}-checked`]:{[`${M}-inner`]:{backgroundColor:F.colorPrimary,borderColor:F.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${F.motionDurationMid} ${F.motionEaseOutBack} ${F.motionDurationFast}`}}},[`
${de}-checked:not(${de}-disabled),
${M}-checked:not(${M}-disabled)
`]:{[`&:hover ${M}-inner`]:{backgroundColor:F.colorPrimaryHover,borderColor:"transparent"}}},{[M]:{"&-indeterminate":{[`${M}-inner`]:{backgroundColor:F.colorBgContainer,borderColor:F.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:F.fontSizeLG/2,height:F.fontSizeLG/2,backgroundColor:F.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${de}-disabled`]:{cursor:"not-allowed"},[`${M}-disabled`]:{[`&, ${M}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${M}-inner`]:{background:F.colorBgContainerDisabled,borderColor:F.colorBorder,"&:after":{borderColor:F.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:F.colorTextDisabled},[`&${M}-indeterminate ${M}-inner::after`]:{background:F.colorTextDisabled}}}]};function G(F,M){const de=(0,I.TS)(M,{checkboxCls:`.${F}`,checkboxSize:M.controlInteractiveSize});return[B(de)]}C.ZP=(0,O.Z)("Checkbox",(F,M)=>{let{prefixCls:de}=M;return[G(de,F)]})},93891:function(X,C,h){"use strict";var v=h(59301),I=h(36355),O=h(64165);const B=G=>{const{componentName:F}=G,{getPrefixCls:M}=(0,v.useContext)(I.E_),de=M("empty");switch(F){case"Table":case"List":return v.createElement(O.Z,{image:O.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return v.createElement(O.Z,{image:O.Z.PRESENTED_IMAGE_SIMPLE,className:`${de}-small`});default:return v.createElement(O.Z,null)}};C.Z=B},43428:function(X,C,h){"use strict";h.d(C,{Z:function(){return Jn}});var v=h(92310),I=h.n(v),O=h(44127),B=h(72071),G=h(43403),F=h(34280),M=h(59301),de=M.createContext(null),ae=M.createContext({}),te=de,Ne=h(90493),Ee=h(96663),Xe=h(77900),Oe=h(10228),Ce=h(26112),Ie=h(70425),Re=function(In){var re=In.prefixCls,z=In.className,k=In.style,j=In.children,Q=In.containerRef,T=In.id,_e=In.onMouseEnter,It=In.onMouseOver,$e=In.onMouseLeave,Pe=In.onClick,vt=In.onKeyDown,ut=In.onKeyUp,tt={onMouseEnter:_e,onMouseOver:It,onMouseLeave:$e,onClick:Pe,onKeyDown:vt,onKeyUp:ut},Et=M.useContext(ae),pn=Et.panel,nn=(0,Ie.useComposeRef)(pn,Q);return M.createElement(M.Fragment,null,M.createElement("div",(0,Ee.Z)({id:T,className:I()("".concat(re,"-content"),z),style:(0,O.Z)({},k),"aria-modal":"true",role:"dialog",ref:nn},tt),j))},fe=Re,me=h(48736);function ye(Mn){return typeof Mn=="string"&&String(Number(Mn))===Mn?((0,me.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Mn)):Mn}function pe(Mn){warning(!("wrapperClassName"in Mn),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Mn.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var ke={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function ee(Mn,In){var re,z,k,j,Q=Mn.prefixCls,T=Mn.open,_e=Mn.placement,It=Mn.inline,$e=Mn.push,Pe=Mn.forceRender,vt=Mn.autoFocus,ut=Mn.keyboard,tt=Mn.rootClassName,Et=Mn.rootStyle,pn=Mn.zIndex,nn=Mn.className,Kt=Mn.id,hn=Mn.style,an=Mn.motion,et=Mn.width,zt=Mn.height,dn=Mn.children,rn=Mn.contentWrapperStyle,ze=Mn.mask,Un=Mn.maskClosable,yn=Mn.maskMotion,Bt=Mn.maskClassName,Si=Mn.maskStyle,_i=Mn.afterOpenChange,Ii=Mn.onClose,cn=Mn.onMouseEnter,fr=Mn.onMouseOver,Xi=Mn.onMouseLeave,ei=Mn.onClick,Tr=Mn.onKeyDown,ur=Mn.onKeyUp,U=M.useRef(),mr=M.useRef(),Er=M.useRef();M.useImperativeHandle(In,function(){return U.current});var wr=function(Nt){var Ve=Nt.keyCode,Ut=Nt.shiftKey;switch(Ve){case Oe.Z.TAB:{if(Ve===Oe.Z.TAB){if(!Ut&&document.activeElement===Er.current){var Lt;(Lt=mr.current)===null||Lt===void 0||Lt.focus({preventScroll:!0})}else if(Ut&&document.activeElement===mr.current){var Wn;(Wn=Er.current)===null||Wn===void 0||Wn.focus({preventScroll:!0})}}break}case Oe.Z.ESC:{Ii&&ut&&(Nt.stopPropagation(),Ii(Nt));break}}};M.useEffect(function(){if(T&&vt){var on;(on=U.current)===null||on===void 0||on.focus({preventScroll:!0})}},[T]);var qr=M.useState(!1),xo=(0,B.Z)(qr,2),kr=xo[0],no=xo[1],rr=M.useContext(te),Bi;$e===!1?Bi={distance:0}:$e===!0?Bi={}:Bi=$e||{};var yi=(re=(z=(k=Bi)===null||k===void 0?void 0:k.distance)!==null&&z!==void 0?z:rr==null?void 0:rr.pushDistance)!==null&&re!==void 0?re:180,ht=M.useMemo(function(){return{pushDistance:yi,push:function(){no(!0)},pull:function(){no(!1)}}},[yi]);M.useEffect(function(){if(T){var on;rr==null||(on=rr.push)===null||on===void 0||on.call(rr)}else{var Nt;rr==null||(Nt=rr.pull)===null||Nt===void 0||Nt.call(rr)}},[T]),M.useEffect(function(){return function(){var on;rr==null||(on=rr.pull)===null||on===void 0||on.call(rr)}},[]);var _n=ze&&M.createElement(Xe.default,(0,Ee.Z)({key:"mask"},yn,{visible:T}),function(on,Nt){var Ve=on.className,Ut=on.style;return M.createElement("div",{className:I()("".concat(Q,"-mask"),Ve,Bt),style:(0,O.Z)((0,O.Z)({},Ut),Si),onClick:Un&&T?Ii:void 0,ref:Nt})}),Vn=typeof an=="function"?an(_e):an,pt={};if(kr&&yi)switch(_e){case"top":pt.transform="translateY(".concat(yi,"px)");break;case"bottom":pt.transform="translateY(".concat(-yi,"px)");break;case"left":pt.transform="translateX(".concat(yi,"px)");break;default:pt.transform="translateX(".concat(-yi,"px)");break}_e==="left"||_e==="right"?pt.width=ye(et):pt.height=ye(zt);var Ke={onMouseEnter:cn,onMouseOver:fr,onMouseLeave:Xi,onClick:ei,onKeyDown:Tr,onKeyUp:ur},vn=M.createElement(Xe.default,(0,Ee.Z)({key:"panel"},Vn,{visible:T,forceRender:Pe,onVisibleChanged:function(Nt){_i==null||_i(Nt)},removeOnLeave:!1,leavedClassName:"".concat(Q,"-content-wrapper-hidden")}),function(on,Nt){var Ve=on.className,Ut=on.style;return M.createElement("div",(0,Ee.Z)({className:I()("".concat(Q,"-content-wrapper"),Ve),style:(0,O.Z)((0,O.Z)((0,O.Z)({},pt),Ut),rn)},(0,Ce.Z)(Mn,{data:!0})),M.createElement(fe,(0,Ee.Z)({id:Kt,containerRef:Nt,prefixCls:Q,className:nn,style:hn},Ke),dn))}),Fn=(0,O.Z)({},Et);return pn&&(Fn.zIndex=pn),M.createElement(te.Provider,{value:ht},M.createElement("div",{className:I()(Q,"".concat(Q,"-").concat(_e),tt,(j={},(0,Ne.Z)(j,"".concat(Q,"-open"),T),(0,Ne.Z)(j,"".concat(Q,"-inline"),It),j)),style:Fn,tabIndex:-1,ref:U,onKeyDown:wr},_n,M.createElement("div",{tabIndex:0,ref:mr,style:ke,"aria-hidden":"true","data-sentinel":"start"}),vn,M.createElement("div",{tabIndex:0,ref:Er,style:ke,"aria-hidden":"true","data-sentinel":"end"})))}var Te=M.forwardRef(ee),Me=Te,Le=function(In){var re=In.open,z=re===void 0?!1:re,k=In.prefixCls,j=k===void 0?"rc-drawer":k,Q=In.placement,T=Q===void 0?"right":Q,_e=In.autoFocus,It=_e===void 0?!0:_e,$e=In.keyboard,Pe=$e===void 0?!0:$e,vt=In.width,ut=vt===void 0?378:vt,tt=In.mask,Et=tt===void 0?!0:tt,pn=In.maskClosable,nn=pn===void 0?!0:pn,Kt=In.getContainer,hn=In.forceRender,an=In.afterOpenChange,et=In.destroyOnClose,zt=In.onMouseEnter,dn=In.onMouseOver,rn=In.onMouseLeave,ze=In.onClick,Un=In.onKeyDown,yn=In.onKeyUp,Bt=In.panelRef,Si=M.useState(!1),_i=(0,B.Z)(Si,2),Ii=_i[0],cn=_i[1],fr=M.useState(!1),Xi=(0,B.Z)(fr,2),ei=Xi[0],Tr=Xi[1];(0,F.Z)(function(){Tr(!0)},[]);var ur=ei?z:!1,U=M.useRef(),mr=M.useRef();(0,F.Z)(function(){ur&&(mr.current=document.activeElement)},[ur]);var Er=function(no){var rr;if(cn(no),an==null||an(no),!no&&mr.current&&!((rr=U.current)!==null&&rr!==void 0&&rr.contains(mr.current))){var Bi;(Bi=mr.current)===null||Bi===void 0||Bi.focus({preventScroll:!0})}},wr=M.useMemo(function(){return{panel:Bt}},[Bt]);if(!hn&&!Ii&&!ur&&et)return null;var qr={onMouseEnter:zt,onMouseOver:dn,onMouseLeave:rn,onClick:ze,onKeyDown:Un,onKeyUp:yn},xo=(0,O.Z)((0,O.Z)({},In),{},{open:ur,prefixCls:j,placement:T,autoFocus:It,keyboard:Pe,width:ut,mask:Et,maskClosable:nn,inline:Kt===!1,afterOpenChange:Er,ref:U},qr);return M.createElement(ae.Provider,{value:wr},M.createElement(G.Z,{open:ur||hn||Ii,autoDestroy:!1,getContainer:Kt,autoLock:Et&&(ur||Ii)},M.createElement(Me,xo)))},Je=Le,Ye=Je,ne=h(62892),at=h(36355),Ge=h(32441),Pt=h(47729),kt=Mn=>{const{prefixCls:In,title:re,footer:z,extra:k,closeIcon:j,closable:Q,onClose:T,headerStyle:_e,drawerStyle:It,bodyStyle:$e,footerStyle:Pe,children:vt}=Mn,ut=M.useCallback(Kt=>M.createElement("button",{type:"button",onClick:T,"aria-label":"Close",className:`${In}-close`},Kt),[T]),[tt,Et]=(0,Pt.Z)(Q,j,ut,void 0,!0),pn=M.useMemo(()=>!re&&!tt?null:M.createElement("div",{style:_e,className:I()(`${In}-header`,{[`${In}-header-close-only`]:tt&&!re&&!k})},M.createElement("div",{className:`${In}-header-title`},Et,re&&M.createElement("div",{className:`${In}-title`},re)),k&&M.createElement("div",{className:`${In}-extra`},k)),[tt,Et,k,_e,In,re]),nn=M.useMemo(()=>{if(!z)return null;const Kt=`${In}-footer`;return M.createElement("div",{className:Kt,style:Pe},z)},[z,Pe,In]);return M.createElement("div",{className:`${In}-wrapper-body`,style:It},pn,M.createElement("div",{className:`${In}-body`,style:$e},vt),nn)},Ct=h(33234),Cn=h(83116),Qe=h(37613),ce=Mn=>{const{componentCls:In,motionDurationSlow:re}=Mn,z={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${re}`}}};return{[In]:{[`${In}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${re}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${In}-panel-motion`]:{"&-left":[z,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[z,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[z,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[z,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const Ht=Mn=>{const{componentCls:In,zIndexPopup:re,colorBgMask:z,colorBgElevated:k,motionDurationSlow:j,motionDurationMid:Q,padding:T,paddingLG:_e,fontSizeLG:It,lineHeightLG:$e,lineWidth:Pe,lineType:vt,colorSplit:ut,marginSM:tt,colorIcon:Et,colorIconHover:pn,colorText:nn,fontWeightStrong:Kt,footerPaddingBlock:hn,footerPaddingInline:an}=Mn,et=`${In}-content-wrapper`;return{[In]:{position:"fixed",inset:0,zIndex:re,pointerEvents:"none","&-pure":{position:"relative",background:k,[`&${In}-left`]:{boxShadow:Mn.boxShadowDrawerLeft},[`&${In}-right`]:{boxShadow:Mn.boxShadowDrawerRight},[`&${In}-top`]:{boxShadow:Mn.boxShadowDrawerUp},[`&${In}-bottom`]:{boxShadow:Mn.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${In}-mask`]:{position:"absolute",inset:0,zIndex:re,background:z,pointerEvents:"auto"},[et]:{position:"absolute",zIndex:re,maxWidth:"100vw",transition:`all ${j}`,"&-hidden":{display:"none"}},[`&-left > ${et}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Mn.boxShadowDrawerLeft},[`&-right > ${et}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Mn.boxShadowDrawerRight},[`&-top > ${et}`]:{top:0,insetInline:0,boxShadow:Mn.boxShadowDrawerUp},[`&-bottom > ${et}`]:{bottom:0,insetInline:0,boxShadow:Mn.boxShadowDrawerDown},[`${In}-content`]:{width:"100%",height:"100%",overflow:"auto",background:k,pointerEvents:"auto"},[`${In}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${In}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${T}px ${_e}px`,fontSize:It,lineHeight:$e,borderBottom:`${Pe}px ${vt} ${ut}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${In}-extra`]:{flex:"none"},[`${In}-close`]:{display:"inline-block",marginInlineEnd:tt,color:Et,fontWeight:Kt,fontSize:It,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${Q}`,textRendering:"auto","&:focus, &:hover":{color:pn,textDecoration:"none"}},[`${In}-title`]:{flex:1,margin:0,color:nn,fontWeight:Mn.fontWeightStrong,fontSize:It,lineHeight:$e},[`${In}-body`]:{flex:1,minWidth:0,minHeight:0,padding:_e,overflow:"auto"},[`${In}-footer`]:{flexShrink:0,padding:`${hn}px ${an}px`,borderTop:`${Pe}px ${vt} ${ut}`},"&-rtl":{direction:"rtl"}}}};var Vt=(0,Cn.Z)("Drawer",Mn=>{const In=(0,Qe.TS)(Mn,{});return[Ht(In),ce(In)]},Mn=>({zIndexPopup:Mn.zIndexPopupBase,footerPaddingBlock:Mn.paddingXS,footerPaddingInline:Mn.padding})),St=h(11575),sn=function(Mn,In){var re={};for(var z in Mn)Object.prototype.hasOwnProperty.call(Mn,z)&&In.indexOf(z)<0&&(re[z]=Mn[z]);if(Mn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var k=0,z=Object.getOwnPropertySymbols(Mn);k<z.length;k++)In.indexOf(z[k])<0&&Object.prototype.propertyIsEnumerable.call(Mn,z[k])&&(re[z[k]]=Mn[z[k]]);return re};const Ft=null,oi={distance:180},On=Mn=>{var In;const{rootClassName:re,width:z,height:k,size:j="default",mask:Q=!0,push:T=oi,open:_e,afterOpenChange:It,onClose:$e,prefixCls:Pe,getContainer:vt,style:ut,className:tt,visible:Et,afterVisibleChange:pn}=Mn,nn=sn(Mn,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:Kt,getPrefixCls:hn,direction:an,drawer:et}=M.useContext(at.E_),zt=hn("drawer",Pe),[dn,rn]=Vt(zt),ze=vt===void 0&&Kt?()=>Kt(document.body):vt,Un=I()({"no-mask":!Q,[`${zt}-rtl`]:an==="rtl"},re,rn),yn=M.useMemo(()=>z!=null?z:j==="large"?736:378,[z,j]),Bt=M.useMemo(()=>k!=null?k:j==="large"?736:378,[k,j]),Si={motionName:(0,ne.m)(zt,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},_i=cn=>({motionName:(0,ne.m)(zt,`panel-motion-${cn}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Ii=(0,St.H)();return dn(M.createElement(Ct.BR,null,M.createElement(Ge.Ux,{status:!0,override:!0},M.createElement(Ye,Object.assign({prefixCls:zt,onClose:$e,maskMotion:Si,motion:_i},nn,{open:_e!=null?_e:Et,mask:Q,push:T,width:yn,height:Bt,style:Object.assign(Object.assign({},et==null?void 0:et.style),ut),className:I()(et==null?void 0:et.className,tt),rootClassName:Un,getContainer:ze,afterOpenChange:It!=null?It:pn,panelRef:Ii}),M.createElement(kt,Object.assign({prefixCls:zt},nn,{onClose:$e}))))))},ni=Mn=>{const{prefixCls:In,style:re,className:z,placement:k="right"}=Mn,j=sn(Mn,["prefixCls","style","className","placement"]),{getPrefixCls:Q}=M.useContext(at.E_),T=Q("drawer",In),[_e,It]=Vt(T),$e=I()(T,`${T}-pure`,`${T}-${k}`,It,z);return _e(M.createElement("div",{className:$e,style:re},M.createElement(kt,Object.assign({prefixCls:T},j))))};On._InternalPanelDoNotUseOrYouWillBeFired=ni;var Jn=On},91857:function(X,C,h){"use strict";var v=h(59301),I=h(38819),O=h(92310),B=h.n(O),G=h(31561),F=h(70425),M=h(18929),de=h(2738),ae=h(79676),te=h(53487),Ne=h(92343),Ee=h(36355),Xe=h(20834),Oe=h(40875),Ce=h(88088),Ie=h(47211);const Re=null,fe=ke=>{const{menu:ee,arrow:Te,prefixCls:Me,children:Le,trigger:Je,disabled:Ye,dropdownRender:ne,getPopupContainer:at,overlayClassName:Ge,rootClassName:Pt,open:gt,onOpenChange:kt,visible:Ct,onVisibleChange:Cn,mouseEnterDelay:Qe=.15,mouseLeaveDelay:le=.1,autoAdjustOverflow:ce=!0,placement:Ht="",overlay:Vt,transitionName:St}=ke,{getPopupContainer:sn,getPrefixCls:Ft,direction:oi}=v.useContext(Ee.E_),On=v.useMemo(()=>{const tt=Ft();return St!==void 0?St:Ht.includes("top")?`${tt}-slide-down`:`${tt}-slide-up`},[Ft,Ht,St]),ni=v.useMemo(()=>Ht?Ht.includes("Center")?Ht.slice(0,Ht.indexOf("Center")):Ht:oi==="rtl"?"bottomRight":"bottomLeft",[Ht,oi]),Jn=Ft("dropdown",Me),[Mn,In]=(0,Ie.Z)(Jn),[,re]=(0,Ce.Z)(),z=v.Children.only(Le),k=(0,Ne.Tm)(z,{className:B()(`${Jn}-trigger`,{[`${Jn}-rtl`]:oi==="rtl"},z.props.className),disabled:Ye}),j=Ye?[]:Je;let Q;j&&j.includes("contextMenu")&&(Q=!0);const[T,_e]=(0,M.Z)(!1,{value:gt!=null?gt:Ct}),It=(0,F.useEvent)(tt=>{kt==null||kt(tt),Cn==null||Cn(tt),_e(tt)}),$e=B()(Ge,Pt,In,{[`${Jn}-rtl`]:oi==="rtl"}),Pe=(0,ae.Z)({arrowPointAtCenter:typeof Te=="object"&&Te.pointAtCenter,autoAdjustOverflow:ce,offset:re.marginXXS,arrowWidth:Te?re.sizePopupArrow:0,borderRadius:re.borderRadius}),vt=v.useCallback(()=>{_e(!1)},[]),ut=()=>{let tt;return ee!=null&&ee.items?tt=v.createElement(Xe.default,Object.assign({},ee)):typeof Vt=="function"?tt=Vt():tt=Vt,ne&&(tt=ne(tt)),tt=v.Children.only(typeof tt=="string"?v.createElement("span",null,tt):tt),v.createElement(Oe.J,{prefixCls:`${Jn}-menu`,expandIcon:v.createElement("span",{className:`${Jn}-menu-submenu-arrow`},v.createElement(I.Z,{className:`${Jn}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:vt,validator:Et=>{let{mode:pn}=Et}},tt)};return Mn(v.createElement(G.Z,Object.assign({alignPoint:Q},(0,de.Z)(ke,["rootClassName"]),{mouseEnterDelay:Qe,mouseLeaveDelay:le,visible:T,builtinPlacements:Pe,arrow:!!Te,overlayClassName:$e,prefixCls:Jn,getPopupContainer:at||sn,transitionName:On,trigger:j,overlay:ut,placement:ni,onVisibleChange:It}),k))};function me(ke){return Object.assign(Object.assign({},ke),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ye=(0,te.Z)(fe,"dropdown",ke=>ke,me),pe=ke=>v.createElement(ye,Object.assign({},ke),v.createElement("span",null));fe._InternalPanelDoNotUseOrYouWillBeFired=pe,C.Z=fe},38854:function(X,C,h){"use strict";h.d(C,{Z:function(){return Ce}});var v=h(91857),I=h(92310),O=h.n(I),B=h(59301),G=h(18785),F=h(3113),M=h(36355),de=h(81327),ae=h(33234),te=h(47211),Ne=function(Ie,Re){var fe={};for(var me in Ie)Object.prototype.hasOwnProperty.call(Ie,me)&&Re.indexOf(me)<0&&(fe[me]=Ie[me]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,me=Object.getOwnPropertySymbols(Ie);ye<me.length;ye++)Re.indexOf(me[ye])<0&&Object.prototype.propertyIsEnumerable.call(Ie,me[ye])&&(fe[me[ye]]=Ie[me[ye]]);return fe};const Ee=Ie=>{const{getPopupContainer:Re,getPrefixCls:fe,direction:me}=B.useContext(M.E_),{prefixCls:ye,type:pe="default",danger:ke,disabled:ee,loading:Te,onClick:Me,htmlType:Le,children:Je,className:Ye,menu:ne,arrow:at,autoFocus:Ge,overlay:Pt,trigger:gt,align:kt,open:Ct,onOpenChange:Cn,placement:Qe,getPopupContainer:le,href:ce,icon:Ht=B.createElement(G.Z,null),title:Vt,buttonsRender:St=ut=>ut,mouseEnterDelay:sn,mouseLeaveDelay:Ft,overlayClassName:oi,overlayStyle:On,destroyPopupOnHide:ni,dropdownRender:Jn}=Ie,Mn=Ne(Ie,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),In=fe("dropdown",ye),re=`${In}-button`,[z,k]=(0,te.Z)(In),j={menu:ne,arrow:at,autoFocus:Ge,align:kt,disabled:ee,trigger:ee?[]:gt,onOpenChange:Cn,getPopupContainer:le||Re,mouseEnterDelay:sn,mouseLeaveDelay:Ft,overlayClassName:oi,overlayStyle:On,destroyPopupOnHide:ni,dropdownRender:Jn},{compactSize:Q,compactItemClassnames:T}=(0,ae.ri)(In,me),_e=O()(re,T,Ye,k);"overlay"in Ie&&(j.overlay=Pt),"open"in Ie&&(j.open=Ct),"placement"in Ie?j.placement=Qe:j.placement=me==="rtl"?"bottomLeft":"bottomRight";const It=B.createElement(F.ZP,{type:pe,danger:ke,disabled:ee,loading:Te,onClick:Me,htmlType:Le,href:ce,title:Vt},Je),$e=B.createElement(F.ZP,{type:pe,danger:ke,icon:Ht}),[Pe,vt]=St([It,$e]);return z(B.createElement(de.Z.Compact,Object.assign({className:_e,size:Q,block:!0},Mn),Pe,B.createElement(v.Z,Object.assign({},j),vt)))};Ee.__ANT_BUTTON=!0;var Xe=Ee;const Oe=v.Z;Oe.Button=Xe;var Ce=Oe},47211:function(X,C,h){"use strict";h.d(C,{Z:function(){return Ne}});var v=h(17313),I=h(13826),O=h(92899),B=h(29878),G=h(19447),F=h(83116),M=h(37613),ae=Ee=>{const{componentCls:Xe,menuCls:Oe,colorError:Ce,colorTextLightSolid:Ie}=Ee,Re=`${Oe}-item`;return{[`${Xe}, ${Xe}-menu-submenu`]:{[`${Oe} ${Re}`]:{[`&${Re}-danger:not(${Re}-disabled)`]:{color:Ce,"&:hover":{color:Ie,backgroundColor:Ce}}}}}};const te=Ee=>{const{componentCls:Xe,menuCls:Oe,zIndexPopup:Ce,dropdownArrowDistance:Ie,sizePopupArrow:Re,antCls:fe,iconCls:me,motionDurationMid:ye,dropdownPaddingVertical:pe,fontSize:ke,dropdownEdgeChildPadding:ee,colorTextDisabled:Te,fontSizeIcon:Me,controlPaddingHorizontal:Le,colorBgElevated:Je}=Ee;return[{[Xe]:Object.assign(Object.assign({},(0,v.Wf)(Ee)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Ce,display:"block","&::before":{position:"absolute",insetBlock:-Ie+Re/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${fe}-btn`]:{[`& > ${me}-down, & > ${fe}-btn-icon > ${me}-down`]:{fontSize:Me}},[`${Xe}-wrap`]:{position:"relative",[`${fe}-btn > ${me}-down`]:{fontSize:Me},[`${me}-down::before`]:{transition:`transform ${ye}`}},[`${Xe}-wrap-open`]:{[`${me}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${fe}-slide-down-enter${fe}-slide-down-enter-active${Xe}-placement-bottomLeft,
&${fe}-slide-down-appear${fe}-slide-down-appear-active${Xe}-placement-bottomLeft,
&${fe}-slide-down-enter${fe}-slide-down-enter-active${Xe}-placement-bottom,
&${fe}-slide-down-appear${fe}-slide-down-appear-active${Xe}-placement-bottom,
&${fe}-slide-down-enter${fe}-slide-down-enter-active${Xe}-placement-bottomRight,
&${fe}-slide-down-appear${fe}-slide-down-appear-active${Xe}-placement-bottomRight`]:{animationName:I.fJ},[`&${fe}-slide-up-enter${fe}-slide-up-enter-active${Xe}-placement-topLeft,
&${fe}-slide-up-appear${fe}-slide-up-appear-active${Xe}-placement-topLeft,
&${fe}-slide-up-enter${fe}-slide-up-enter-active${Xe}-placement-top,
&${fe}-slide-up-appear${fe}-slide-up-appear-active${Xe}-placement-top,
&${fe}-slide-up-enter${fe}-slide-up-enter-active${Xe}-placement-topRight,
&${fe}-slide-up-appear${fe}-slide-up-appear-active${Xe}-placement-topRight`]:{animationName:I.Qt},[`&${fe}-slide-down-leave${fe}-slide-down-leave-active${Xe}-placement-bottomLeft,
&${fe}-slide-down-leave${fe}-slide-down-leave-active${Xe}-placement-bottom,
&${fe}-slide-down-leave${fe}-slide-down-leave-active${Xe}-placement-bottomRight`]:{animationName:I.Uw},[`&${fe}-slide-up-leave${fe}-slide-up-leave-active${Xe}-placement-topLeft,
&${fe}-slide-up-leave${fe}-slide-up-leave-active${Xe}-placement-top,
&${fe}-slide-up-leave${fe}-slide-up-leave-active${Xe}-placement-topRight`]:{animationName:I.ly}})},(0,G.ZP)(Ee,{colorBg:Je,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Xe} ${Oe}`]:{position:"relative",margin:0},[`${Oe}-submenu-popup`]:{position:"absolute",zIndex:Ce,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Xe}, ${Xe}-menu-submenu`]:{[Oe]:Object.assign(Object.assign({padding:ee,listStyleType:"none",backgroundColor:Je,backgroundClip:"padding-box",borderRadius:Ee.borderRadiusLG,outline:"none",boxShadow:Ee.boxShadowSecondary},(0,v.Qy)(Ee)),{[`${Oe}-item-group-title`]:{padding:`${pe}px ${Le}px`,color:Ee.colorTextDescription,transition:`all ${ye}`},[`${Oe}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Oe}-item-icon`]:{minWidth:ke,marginInlineEnd:Ee.marginXS,fontSize:Ee.fontSizeSM},[`${Oe}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${ye}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${Oe}-item, ${Oe}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${pe}px ${Le}px`,color:Ee.colorText,fontWeight:"normal",fontSize:ke,lineHeight:Ee.lineHeight,cursor:"pointer",transition:`all ${ye}`,borderRadius:Ee.borderRadiusSM,"&:hover, &-active":{backgroundColor:Ee.controlItemBgHover}},(0,v.Qy)(Ee)),{"&-selected":{color:Ee.colorPrimary,backgroundColor:Ee.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ee.controlItemBgActiveHover}},"&-disabled":{color:Te,cursor:"not-allowed","&:hover":{color:Te,backgroundColor:Je,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Ee.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ee.colorSplit},[`${Xe}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ee.paddingXS,[`${Xe}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ee.colorTextDescription,fontSize:Me,fontStyle:"normal"}}}),[`${Oe}-item-group-list`]:{margin:`0 ${Ee.marginXS}px`,padding:0,listStyle:"none"},[`${Oe}-submenu-title`]:{paddingInlineEnd:Le+Ee.fontSizeSM},[`${Oe}-submenu-vertical`]:{position:"relative"},[`${Oe}-submenu${Oe}-submenu-disabled ${Xe}-menu-submenu-title`]:{[`&, ${Xe}-menu-submenu-arrow-icon`]:{color:Te,backgroundColor:Je,cursor:"not-allowed"}},[`${Oe}-submenu-selected ${Xe}-menu-submenu-title`]:{color:Ee.colorPrimary}})}},[(0,I.oN)(Ee,"slide-up"),(0,I.oN)(Ee,"slide-down"),(0,O.Fm)(Ee,"move-up"),(0,O.Fm)(Ee,"move-down"),(0,B._y)(Ee,"zoom-big")]]};var Ne=(0,F.Z)("Dropdown",(Ee,Xe)=>{let{rootPrefixCls:Oe}=Xe;const{marginXXS:Ce,sizePopupArrow:Ie,controlHeight:Re,fontSize:fe,lineHeight:me,paddingXXS:ye,componentCls:pe,borderRadiusLG:ke}=Ee,ee=(Re-fe*me)/2,{dropdownArrowOffset:Te}=(0,G.fS)({contentRadius:ke}),Me=(0,M.TS)(Ee,{menuCls:`${pe}-menu`,rootPrefixCls:Oe,dropdownArrowDistance:Ie/2+Ce,dropdownArrowOffset:Te,dropdownPaddingVertical:ee,dropdownEdgeChildPadding:ye});return[te(Me),ae(Me)]},Ee=>({zIndexPopup:Ee.zIndexPopupBase+50}))},64165:function(X,C,h){"use strict";h.d(C,{Z:function(){return ye}});var v=h(92310),I=h.n(v),O=h(59301),B=h(36355),G=h(9763),F=h(64993),M=h(88088),ae=()=>{const[,pe]=(0,M.Z)(),ee=new F.C(pe.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return O.createElement("svg",{style:ee,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},O.createElement("g",{fill:"none",fillRule:"evenodd"},O.createElement("g",{transform:"translate(24 31.67)"},O.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),O.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),O.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),O.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),O.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),O.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),O.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},O.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),O.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Ne=()=>{const[,pe]=(0,M.Z)(),{colorFill:ke,colorFillTertiary:ee,colorFillQuaternary:Te,colorBgContainer:Me}=pe,{borderColor:Le,shadowColor:Je,contentColor:Ye}=(0,O.useMemo)(()=>({borderColor:new F.C(ke).onBackground(Me).toHexShortString(),shadowColor:new F.C(ee).onBackground(Me).toHexShortString(),contentColor:new F.C(Te).onBackground(Me).toHexShortString()}),[ke,ee,Te,Me]);return O.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},O.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},O.createElement("ellipse",{fill:Je,cx:"32",cy:"33",rx:"32",ry:"7"}),O.createElement("g",{fillRule:"nonzero",stroke:Le},O.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),O.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:Ye}))))},Ee=h(83116),Xe=h(37613);const Oe=pe=>{const{componentCls:ke,margin:ee,marginXS:Te,marginXL:Me,fontSize:Le,lineHeight:Je}=pe;return{[ke]:{marginInline:Te,fontSize:Le,lineHeight:Je,textAlign:"center",[`${ke}-image`]:{height:pe.emptyImgHeight,marginBottom:Te,opacity:pe.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${ke}-description`]:{color:pe.colorText},[`${ke}-footer`]:{marginTop:ee},"&-normal":{marginBlock:Me,color:pe.colorTextDisabled,[`${ke}-description`]:{color:pe.colorTextDisabled},[`${ke}-image`]:{height:pe.emptyImgHeightMD}},"&-small":{marginBlock:Te,color:pe.colorTextDisabled,[`${ke}-image`]:{height:pe.emptyImgHeightSM}}}}};var Ce=(0,Ee.Z)("Empty",pe=>{const{componentCls:ke,controlHeightLG:ee}=pe,Te=(0,Xe.TS)(pe,{emptyImgCls:`${ke}-img`,emptyImgHeight:ee*2.5,emptyImgHeightMD:ee,emptyImgHeightSM:ee*.875});return[Oe(Te)]}),Ie=function(pe,ke){var ee={};for(var Te in pe)Object.prototype.hasOwnProperty.call(pe,Te)&&ke.indexOf(Te)<0&&(ee[Te]=pe[Te]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,Te=Object.getOwnPropertySymbols(pe);Me<Te.length;Me++)ke.indexOf(Te[Me])<0&&Object.prototype.propertyIsEnumerable.call(pe,Te[Me])&&(ee[Te[Me]]=pe[Te[Me]]);return ee};const Re=O.createElement(ae,null),fe=O.createElement(Ne,null),me=pe=>{var{className:ke,rootClassName:ee,prefixCls:Te,image:Me=Re,description:Le,children:Je,imageStyle:Ye,style:ne}=pe,at=Ie(pe,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:Ge,direction:Pt,empty:gt}=O.useContext(B.E_),kt=Ge("empty",Te),[Ct,Cn]=Ce(kt),[Qe]=(0,G.Z)("Empty"),le=typeof Le!="undefined"?Le:Qe==null?void 0:Qe.description,ce=typeof le=="string"?le:"empty";let Ht=null;return typeof Me=="string"?Ht=O.createElement("img",{alt:ce,src:Me}):Ht=Me,Ct(O.createElement("div",Object.assign({className:I()(Cn,kt,gt==null?void 0:gt.className,{[`${kt}-normal`]:Me===fe,[`${kt}-rtl`]:Pt==="rtl"},ke,ee),style:Object.assign(Object.assign({},gt==null?void 0:gt.style),ne)},at),O.createElement("div",{className:`${kt}-image`,style:Ye},Ht),le&&O.createElement("div",{className:`${kt}-description`},le),Je&&O.createElement("div",{className:`${kt}-footer`},Je)))};me.PRESENTED_IMAGE_DEFAULT=Re,me.PRESENTED_IMAGE_SIMPLE=fe;var ye=me},78241:function(X,C,h){"use strict";h.d(C,{default:function(){return yi}});var v=h(19127),I=h(92310),O=h.n(I),B=h(77900),G=h(59301),F=h(62892),M=h(32441);function de(ht){const[_n,Vn]=G.useState(ht);return G.useEffect(()=>{const pt=setTimeout(()=>{Vn(ht)},ht.length?0:10);return()=>{clearTimeout(pt)}},[ht]),_n}var ae=h(17313),te=h(29878),Ne=h(8378),Ee=h(37613),Xe=h(83116),Ce=ht=>{const{componentCls:_n}=ht,Vn=`${_n}-show-help`,pt=`${_n}-show-help-item`;return{[Vn]:{transition:`opacity ${ht.motionDurationSlow} ${ht.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[pt]:{overflow:"hidden",transition:`height ${ht.motionDurationSlow} ${ht.motionEaseInOut},
opacity ${ht.motionDurationSlow} ${ht.motionEaseInOut},
transform ${ht.motionDurationSlow} ${ht.motionEaseInOut} !important`,[`&${pt}-appear, &${pt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${pt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const Ie=ht=>({legend:{display:"block",width:"100%",marginBottom:ht.marginLG,padding:0,color:ht.colorTextDescription,fontSize:ht.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${ht.lineWidth}px ${ht.lineType} ${ht.colorBorder}`},label:{fontSize:ht.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${ht.controlOutlineWidth}px ${ht.controlOutline}`},output:{display:"block",paddingTop:15,color:ht.colorText,fontSize:ht.fontSize,lineHeight:ht.lineHeight}}),Re=(ht,_n)=>{const{formItemCls:Vn}=ht;return{[Vn]:{[`${Vn}-label > label`]:{height:_n},[`${Vn}-control-input`]:{minHeight:_n}}}},fe=ht=>{const{componentCls:_n}=ht;return{[ht.componentCls]:Object.assign(Object.assign(Object.assign({},(0,ae.Wf)(ht)),Ie(ht)),{[`${_n}-text`]:{display:"inline-block",paddingInlineEnd:ht.paddingSM},"&-small":Object.assign({},Re(ht,ht.controlHeightSM)),"&-large":Object.assign({},Re(ht,ht.controlHeightLG))})}},me=ht=>{const{formItemCls:_n,iconCls:Vn,componentCls:pt,rootPrefixCls:Ke,labelRequiredMarkColor:vn,labelColor:Fn,labelFontSize:on,labelHeight:Nt,labelColonMarginInlineStart:Ve,labelColonMarginInlineEnd:Ut,itemMarginBottom:Lt}=ht;return{[_n]:Object.assign(Object.assign({},(0,ae.Wf)(ht)),{marginBottom:Lt,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden.${Ke}-row`]:{display:"none"},"&-has-warning":{[`${_n}-split`]:{color:ht.colorError}},"&-has-error":{[`${_n}-split`]:{color:ht.colorWarning}},[`${_n}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${ht.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Nt,color:Fn,fontSize:on,[`> ${Vn}`]:{fontSize:ht.fontSize,verticalAlign:"top"},[`&${_n}-required:not(${_n}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:ht.marginXXS,color:vn,fontSize:ht.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${pt}-hide-required-mark &`]:{display:"none"}},[`${_n}-optional`]:{display:"inline-block",marginInlineStart:ht.marginXXS,color:ht.colorTextDescription,[`${pt}-hide-required-mark &`]:{display:"none"}},[`${_n}-tooltip`]:{color:ht.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:ht.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Ve,marginInlineEnd:Ut},[`&${_n}-no-colon::after`]:{content:'"\\a0"'}}},[`${_n}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Ke}-col-'"]):not([class*="' ${Ke}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:ht.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[_n]:{"&-explain, &-extra":{clear:"both",color:ht.colorTextDescription,fontSize:ht.fontSize,lineHeight:ht.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:ht.controlHeightSM,transition:`color ${ht.motionDurationMid} ${ht.motionEaseOut}`},"&-explain":{"&-error":{color:ht.colorError},"&-warning":{color:ht.colorWarning}}},[`&-with-help ${_n}-explain`]:{height:"auto",opacity:1},[`${_n}-feedback-icon`]:{fontSize:ht.fontSize,textAlign:"center",visibility:"visible",animationName:te.kr,animationDuration:ht.motionDurationMid,animationTimingFunction:ht.motionEaseOutBack,pointerEvents:"none","&-success":{color:ht.colorSuccess},"&-error":{color:ht.colorError},"&-warning":{color:ht.colorWarning},"&-validating":{color:ht.colorPrimary}}})}},ye=ht=>{const{componentCls:_n,formItemCls:Vn}=ht;return{[`${_n}-horizontal`]:{[`${Vn}-label`]:{flexGrow:0},[`${Vn}-control`]:{flex:"1 1 0",minWidth:0},[`${Vn}-label[class$='-24'], ${Vn}-label[class*='-24 ']`]:{[`& + ${Vn}-control`]:{minWidth:"unset"}}}}},pe=ht=>{const{componentCls:_n,formItemCls:Vn}=ht;return{[`${_n}-inline`]:{display:"flex",flexWrap:"wrap",[Vn]:{flex:"none",marginInlineEnd:ht.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${Vn}-label,
> ${Vn}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Vn}-label`]:{flex:"none"},[`${_n}-text`]:{display:"inline-block"},[`${Vn}-has-feedback`]:{display:"inline-block"}}}}},ke=ht=>({padding:ht.verticalLabelPadding,margin:ht.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),ee=ht=>{const{componentCls:_n,formItemCls:Vn,rootPrefixCls:pt}=ht;return{[`${Vn} ${Vn}-label`]:ke(ht),[_n]:{[Vn]:{flexWrap:"wrap",[`${Vn}-label, ${Vn}-control`]:{[`&:not([class*=" ${pt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Te=ht=>{const{componentCls:_n,formItemCls:Vn,rootPrefixCls:pt}=ht;return{[`${_n}-vertical`]:{[Vn]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${_n}-item-control`]:{width:"100%"}}},[`${_n}-vertical ${Vn}-label,
.${pt}-col-24${Vn}-label,
.${pt}-col-xl-24${Vn}-label`]:ke(ht),[`@media (max-width: ${ht.screenXSMax}px)`]:[ee(ht),{[_n]:{[`.${pt}-col-xs-24${Vn}-label`]:ke(ht)}}],[`@media (max-width: ${ht.screenSMMax}px)`]:{[_n]:{[`.${pt}-col-sm-24${Vn}-label`]:ke(ht)}},[`@media (max-width: ${ht.screenMDMax}px)`]:{[_n]:{[`.${pt}-col-md-24${Vn}-label`]:ke(ht)}},[`@media (max-width: ${ht.screenLGMax}px)`]:{[_n]:{[`.${pt}-col-lg-24${Vn}-label`]:ke(ht)}}}},Me=(ht,_n)=>(0,Ee.TS)(ht,{formItemCls:`${ht.componentCls}-item`,rootPrefixCls:_n});var Le=(0,Xe.Z)("Form",(ht,_n)=>{let{rootPrefixCls:Vn}=_n;const pt=Me(ht,Vn);return[fe(pt),me(pt),Ce(pt),ye(pt),pe(pt),Te(pt),(0,Ne.Z)(pt),te.kr]},ht=>({labelRequiredMarkColor:ht.colorError,labelColor:ht.colorTextHeading,labelFontSize:ht.fontSize,labelHeight:ht.controlHeight,labelColonMarginInlineStart:ht.marginXXS/2,labelColonMarginInlineEnd:ht.marginXS,itemMarginBottom:ht.marginLG,verticalLabelPadding:`0 0 ${ht.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Je=[];function Ye(ht,_n,Vn){let pt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof ht=="string"?ht:`${_n}-${pt}`,error:ht,errorStatus:Vn}}var at=ht=>{let{help:_n,helpStatus:Vn,errors:pt=Je,warnings:Ke=Je,className:vn,fieldId:Fn,onVisibleChanged:on}=ht;const{prefixCls:Nt}=G.useContext(M.Rk),Ve=`${Nt}-item-explain`,[,Ut]=Le(Nt),Lt=(0,G.useMemo)(()=>(0,F.Z)(Nt),[Nt]),Wn=de(pt),ot=de(Ke),fn=G.useMemo(()=>_n!=null?[Ye(_n,"help",Vn)]:[].concat((0,v.Z)(Wn.map((je,L)=>Ye(je,"error","error",L))),(0,v.Z)(ot.map((je,L)=>Ye(je,"warning","warning",L)))),[_n,Vn,Wn,ot]),yt={};return Fn&&(yt.id=`${Fn}_help`),G.createElement(B.default,{motionDeadline:Lt.motionDeadline,motionName:`${Nt}-show-help`,visible:!!fn.length,onVisibleChanged:on},je=>{const{className:L,style:Rt}=je;return G.createElement("div",Object.assign({},yt,{className:O()(Ve,L,vn,Ut),style:Rt,role:"alert"}),G.createElement(B.CSSMotionList,Object.assign({keys:fn},(0,F.Z)(Nt),{motionName:`${Nt}-show-help-item`,component:!1}),Jt=>{const{key:mt,error:xn,errorStatus:An,className:li,style:Nn}=Jt;return G.createElement("div",{key:mt,className:O()(li,{[`${Ve}-${An}`]:An}),style:Nn},xn)}))})},Ge=h(95013),Pt=h(36355),gt=h(1684),kt=h(52946),Ct=h(19716),Cn=h(16722);const Qe=["parentNode"],le="form_item";function ce(ht){return ht===void 0||ht===!1?[]:Array.isArray(ht)?ht:[ht]}function Ht(ht,_n){if(!ht.length)return;const Vn=ht.join("_");return _n?`${_n}_${Vn}`:Qe.includes(Vn)?`${le}_${Vn}`:Vn}function Vt(ht,_n,Vn,pt,Ke,vn){let Fn=pt;return vn!==void 0?Fn=vn:Vn.validating?Fn="validating":ht.length?Fn="error":_n.length?Fn="warning":(Vn.touched||Ke&&Vn.validated)&&(Fn="success"),Fn}function St(ht){return ce(ht).join("_")}function sn(ht){const[_n]=(0,Ge.useForm)(),Vn=G.useRef({}),pt=G.useMemo(()=>ht!=null?ht:Object.assign(Object.assign({},_n),{__INTERNAL__:{itemRef:Ke=>vn=>{const Fn=St(Ke);vn?Vn.current[Fn]=vn:delete Vn.current[Fn]}},scrollToField:function(Ke){let vn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Fn=ce(Ke),on=Ht(Fn,pt.__INTERNAL__.name),Nt=on?document.getElementById(on):null;Nt&&(0,Cn.Z)(Nt,Object.assign({scrollMode:"if-needed",block:"nearest"},vn))},getFieldInstance:Ke=>{const vn=St(Ke);return Vn.current[vn]}}),[ht,_n]);return[pt]}var Ft=h(28726),oi=function(ht,_n){var Vn={};for(var pt in ht)Object.prototype.hasOwnProperty.call(ht,pt)&&_n.indexOf(pt)<0&&(Vn[pt]=ht[pt]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,pt=Object.getOwnPropertySymbols(ht);Ke<pt.length;Ke++)_n.indexOf(pt[Ke])<0&&Object.prototype.propertyIsEnumerable.call(ht,pt[Ke])&&(Vn[pt[Ke]]=ht[pt[Ke]]);return Vn};const On=(ht,_n)=>{const Vn=G.useContext(gt.Z),{getPrefixCls:pt,direction:Ke,form:vn}=G.useContext(Pt.E_),{prefixCls:Fn,className:on,rootClassName:Nt,size:Ve,disabled:Ut=Vn,form:Lt,colon:Wn,labelAlign:ot,labelWrap:fn,labelCol:yt,wrapperCol:je,hideRequiredMark:L,layout:Rt="horizontal",scrollToFirstError:Jt,requiredMark:mt,onFinishFailed:xn,name:An,style:li,feedbackIcons:Nn}=ht,lt=oi(ht,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Mi=(0,Ct.Z)(Ve),Yi=G.useContext(Ft.Z),Yt=(0,G.useMemo)(()=>mt!==void 0?mt:vn&&vn.requiredMark!==void 0?vn.requiredMark:!L,[L,mt,vn]),zi=Wn!=null?Wn:vn==null?void 0:vn.colon,q=pt("form",Fn),[oe,Hn]=Le(q),Be=O()(q,`${q}-${Rt}`,{[`${q}-hide-required-mark`]:Yt===!1,[`${q}-rtl`]:Ke==="rtl",[`${q}-${Mi}`]:Mi},Hn,vn==null?void 0:vn.className,on,Nt),[Tt]=sn(Lt),{__INTERNAL__:fi}=Tt;fi.name=An;const Ln=(0,G.useMemo)(()=>({name:An,labelAlign:ot,labelCol:yt,labelWrap:fn,wrapperCol:je,vertical:Rt==="vertical",colon:zi,requiredMark:Yt,itemRef:fi.itemRef,form:Tt,feedbackIcons:Nn}),[An,ot,yt,je,Rt,zi,Yt,Tt,Nn]);G.useImperativeHandle(_n,()=>Tt);const Fi=(xi,Xt)=>{if(xi){let Li={block:"nearest"};typeof xi=="object"&&(Li=xi),Tt.scrollToField(Xt,Li)}},qt=xi=>{if(xn==null||xn(xi),xi.errorFields.length){const Xt=xi.errorFields[0].name;if(Jt!==void 0){Fi(Jt,Xt);return}vn&&vn.scrollToFirstError!==void 0&&Fi(vn.scrollToFirstError,Xt)}};return oe(G.createElement(gt.n,{disabled:Ut},G.createElement(kt.q,{size:Mi},G.createElement(M.RV,Object.assign({},{validateMessages:Yi}),G.createElement(M.q3.Provider,{value:Ln},G.createElement(Ge.default,Object.assign({id:An},lt,{name:An,onFinishFailed:qt,form:Tt,style:Object.assign(Object.assign({},vn==null?void 0:vn.style),li),className:Be})))))))};var Jn=G.forwardRef(On),Mn=h(41799),In=h(8654),re=h(92343),z=h(11592);function k(ht){if(typeof ht=="function")return ht;const _n=(0,z.Z)(ht);return _n.length<=1?_n[0]:_n}const j=()=>{const{status:ht,errors:_n=[],warnings:Vn=[]}=(0,G.useContext)(M.aM);return{status:ht,errors:_n,warnings:Vn}};j.Context=M.aM;var Q=j,T=h(16089);function _e(ht){const[_n,Vn]=G.useState(ht),pt=(0,G.useRef)(null),Ke=(0,G.useRef)([]),vn=(0,G.useRef)(!1);G.useEffect(()=>(vn.current=!1,()=>{vn.current=!0,T.Z.cancel(pt.current),pt.current=null}),[]);function Fn(on){vn.current||(pt.current===null&&(Ke.current=[],pt.current=(0,T.Z)(()=>{pt.current=null,Vn(Nt=>{let Ve=Nt;return Ke.current.forEach(Ut=>{Ve=Ut(Ve)}),Ve})})),Ke.current.push(on))}return[_n,Fn]}function It(){const{itemRef:ht}=G.useContext(M.q3),_n=G.useRef({});function Vn(pt,Ke){const vn=Ke&&typeof Ke=="object"&&Ke.ref,Fn=pt.join("_");return(_n.current.name!==Fn||_n.current.originRef!==vn)&&(_n.current.name=Fn,_n.current.originRef=vn,_n.current.ref=(0,In.sQ)(ht(pt),vn)),_n.current.ref}return Vn}var $e=h(29194),Pe=h(34280),vt=h(2738),ut=h(27382),tt=h(37028);const Et=ht=>{const{formItemCls:_n}=ht;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${_n}-control`]:{display:"flex"}}}};var pn=(0,Xe.b)(["Form","item-item"],(ht,_n)=>{let{rootPrefixCls:Vn}=_n;const pt=Me(ht,Vn);return[Et(pt)]}),Kt=ht=>{const{prefixCls:_n,status:Vn,wrapperCol:pt,children:Ke,errors:vn,warnings:Fn,_internalItemRender:on,extra:Nt,help:Ve,fieldId:Ut,marginBottom:Lt,onErrorVisibleChanged:Wn}=ht,ot=`${_n}-item`,fn=G.useContext(M.q3),yt=pt||fn.wrapperCol||{},je=O()(`${ot}-control`,yt.className),L=G.useMemo(()=>Object.assign({},fn),[fn]);delete L.labelCol,delete L.wrapperCol;const Rt=G.createElement("div",{className:`${ot}-control-input`},G.createElement("div",{className:`${ot}-control-input-content`},Ke)),Jt=G.useMemo(()=>({prefixCls:_n,status:Vn}),[_n,Vn]),mt=Lt!==null||vn.length||Fn.length?G.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},G.createElement(M.Rk.Provider,{value:Jt},G.createElement(at,{fieldId:Ut,errors:vn,warnings:Fn,help:Ve,helpStatus:Vn,className:`${ot}-explain-connected`,onVisibleChanged:Wn})),!!Lt&&G.createElement("div",{style:{width:0,height:Lt}})):null,xn={};Ut&&(xn.id=`${Ut}_extra`);const An=Nt?G.createElement("div",Object.assign({},xn,{className:`${ot}-extra`}),Nt):null,li=on&&on.mark==="pro_table_render"&&on.render?on.render(ht,{input:Rt,errorList:mt,extra:An}):G.createElement(G.Fragment,null,Rt,mt,An);return G.createElement(M.q3.Provider,{value:L},G.createElement(tt.Z,Object.assign({},yt,{className:je}),li),G.createElement(pn,{prefixCls:_n}))},hn=h(61485),an=h(31724),et=h(9763),zt=h(6848),dn=function(ht,_n){var Vn={};for(var pt in ht)Object.prototype.hasOwnProperty.call(ht,pt)&&_n.indexOf(pt)<0&&(Vn[pt]=ht[pt]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,pt=Object.getOwnPropertySymbols(ht);Ke<pt.length;Ke++)_n.indexOf(pt[Ke])<0&&Object.prototype.propertyIsEnumerable.call(ht,pt[Ke])&&(Vn[pt[Ke]]=ht[pt[Ke]]);return Vn};function rn(ht){return ht?typeof ht=="object"&&!G.isValidElement(ht)?ht:{title:ht}:null}var Un=ht=>{let{prefixCls:_n,label:Vn,htmlFor:pt,labelCol:Ke,labelAlign:vn,colon:Fn,required:on,requiredMark:Nt,tooltip:Ve}=ht;var Ut;const[Lt]=(0,et.Z)("Form"),{vertical:Wn,labelAlign:ot,labelCol:fn,labelWrap:yt,colon:je}=G.useContext(M.q3);if(!Vn)return null;const L=Ke||fn||{},Rt=vn||ot,Jt=`${_n}-item-label`,mt=O()(Jt,Rt==="left"&&`${Jt}-left`,L.className,{[`${Jt}-wrap`]:!!yt});let xn=Vn;const An=Fn===!0||je!==!1&&Fn!==!1;An&&!Wn&&typeof Vn=="string"&&Vn.trim()!==""&&(xn=Vn.replace(/[:|]\s*$/,""));const Nn=rn(Ve);if(Nn){const{icon:Yt=G.createElement(hn.Z,null)}=Nn,zi=dn(Nn,["icon"]),q=G.createElement(zt.Z,Object.assign({},zi),G.cloneElement(Yt,{className:`${_n}-item-tooltip`,title:""}));xn=G.createElement(G.Fragment,null,xn,q)}const lt=Nt==="optional",Mi=typeof Nt=="function";Mi?xn=Nt(xn,{required:!!on}):lt&&!on&&(xn=G.createElement(G.Fragment,null,xn,G.createElement("span",{className:`${_n}-item-optional`,title:""},(Lt==null?void 0:Lt.optional)||((Ut=an.Z.Form)===null||Ut===void 0?void 0:Ut.optional))));const Yi=O()({[`${_n}-item-required`]:on,[`${_n}-item-required-mark-optional`]:lt||Mi,[`${_n}-item-no-colon`]:!An});return G.createElement(tt.Z,Object.assign({},L,{className:mt}),G.createElement("label",{htmlFor:pt,className:Yi,title:typeof Vn=="string"?Vn:""},xn))},yn=h(29679),Bt=h(19248),Si=h(96512),_i=h(58617);const Ii={success:yn.Z,warning:Si.Z,error:Bt.Z,validating:_i.Z};function cn(ht){let{children:_n,errors:Vn,warnings:pt,hasFeedback:Ke,validateStatus:vn,prefixCls:Fn,meta:on,noStyle:Nt}=ht;const Ve=`${Fn}-item`,{feedbackIcons:Ut}=G.useContext(M.q3),Lt=Vt(Vn,pt,on,null,!!Ke,vn),{isFormItemInput:Wn,status:ot}=G.useContext(M.aM),fn=G.useMemo(()=>{var yt;let je;if(Ke){const Jt=Ke!==!0&&Ke.icons||Ut,mt=Lt&&((yt=Jt==null?void 0:Jt({status:Lt,errors:Vn,warnings:pt}))===null||yt===void 0?void 0:yt[Lt]),xn=Lt&&Ii[Lt];je=mt!==!1&&xn?G.createElement("span",{className:O()(`${Ve}-feedback-icon`,`${Ve}-feedback-icon-${Lt}`)},mt||G.createElement(xn,null)):null}let L=!0,Rt=Lt||"";return Nt&&(L=Wn,Rt=(Lt!=null?Lt:ot)||""),{status:Rt,errors:Vn,warnings:pt,hasFeedback:!!Ke,feedbackIcon:je,isFormItemInput:L}},[Lt,Ke,Nt,Wn,ot]);return G.createElement(M.aM.Provider,{value:fn},_n)}var fr=function(ht,_n){var Vn={};for(var pt in ht)Object.prototype.hasOwnProperty.call(ht,pt)&&_n.indexOf(pt)<0&&(Vn[pt]=ht[pt]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,pt=Object.getOwnPropertySymbols(ht);Ke<pt.length;Ke++)_n.indexOf(pt[Ke])<0&&Object.prototype.propertyIsEnumerable.call(ht,pt[Ke])&&(Vn[pt[Ke]]=ht[pt[Ke]]);return Vn};function Xi(ht){const{prefixCls:_n,className:Vn,rootClassName:pt,style:Ke,help:vn,errors:Fn,warnings:on,validateStatus:Nt,meta:Ve,hasFeedback:Ut,hidden:Lt,children:Wn,fieldId:ot,required:fn,isRequired:yt,onSubItemMetaChange:je}=ht,L=fr(ht,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),Rt=`${_n}-item`,{requiredMark:Jt}=G.useContext(M.q3),mt=G.useRef(null),xn=de(Fn),An=de(on),li=vn!=null,Nn=!!(li||Fn.length||on.length),lt=!!mt.current&&(0,$e.Z)(mt.current),[Mi,Yi]=G.useState(null);(0,Pe.Z)(()=>{if(Nn&&mt.current){const Hn=getComputedStyle(mt.current);Yi(parseInt(Hn.marginBottom,10))}},[Nn,lt]);const Yt=Hn=>{Hn||Yi(null)},q=function(){let Hn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Be=Hn?xn:Ve.errors,Tt=Hn?An:Ve.warnings;return Vt(Be,Tt,Ve,"",!!Ut,Nt)}(),oe=O()(Rt,Vn,pt,{[`${Rt}-with-help`]:li||xn.length||An.length,[`${Rt}-has-feedback`]:q&&Ut,[`${Rt}-has-success`]:q==="success",[`${Rt}-has-warning`]:q==="warning",[`${Rt}-has-error`]:q==="error",[`${Rt}-is-validating`]:q==="validating",[`${Rt}-hidden`]:Lt});return G.createElement("div",{className:oe,style:Ke,ref:mt},G.createElement(ut.Z,Object.assign({className:`${Rt}-row`},(0,vt.Z)(L,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),G.createElement(Un,Object.assign({htmlFor:ot},ht,{requiredMark:Jt,required:fn!=null?fn:yt,prefixCls:_n})),G.createElement(Kt,Object.assign({},ht,Ve,{errors:xn,warnings:An,prefixCls:_n,status:q,help:vn,marginBottom:Mi,onErrorVisibleChanged:Yt}),G.createElement(M.qI.Provider,{value:je},G.createElement(cn,{prefixCls:_n,meta:Ve,errors:Ve.errors,warnings:Ve.warnings,hasFeedback:Ut,validateStatus:q},Wn)))),!!Mi&&G.createElement("div",{className:`${Rt}-margin-offset`,style:{marginBottom:-Mi}}))}const ei="__SPLIT__",Tr=null,ur=G.memo(ht=>{let{children:_n}=ht;return _n},(ht,_n)=>ht.value===_n.value&&ht.update===_n.update&&ht.childProps.length===_n.childProps.length&&ht.childProps.every((Vn,pt)=>Vn===_n.childProps[pt]));function U(ht){return ht!=null}function mr(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Er(ht){const{name:_n,noStyle:Vn,className:pt,dependencies:Ke,prefixCls:vn,shouldUpdate:Fn,rules:on,children:Nt,required:Ve,label:Ut,messageVariables:Lt,trigger:Wn="onChange",validateTrigger:ot,hidden:fn,help:yt}=ht,{getPrefixCls:je}=G.useContext(Pt.E_),{name:L}=G.useContext(M.q3),Rt=k(Nt),Jt=typeof Rt=="function",mt=G.useContext(M.qI),{validateTrigger:xn}=G.useContext(Ge.FieldContext),An=ot!==void 0?ot:xn,li=U(_n),Nn=je("form",vn),[lt,Mi]=Le(Nn),Yi=G.useContext(Ge.ListContext),Yt=G.useRef(),[zi,q]=_e({}),[oe,Hn]=(0,Mn.Z)(()=>mr()),Be=Xt=>{const Li=Yi==null?void 0:Yi.getKey(Xt.name);if(Hn(Xt.destroy?mr():Xt,!0),Vn&&yt!==!1&&mt){let Yr=Xt.name;if(Xt.destroy)Yr=Yt.current||Yr;else if(Li!==void 0){const[Mt,Qr]=Li;Yr=[Mt].concat((0,v.Z)(Qr)),Yt.current=Yr}mt(Xt,Yr)}},Tt=(Xt,Li)=>{q(Yr=>{const Mt=Object.assign({},Yr),tn=[].concat((0,v.Z)(Xt.name.slice(0,-1)),(0,v.Z)(Li)).join(ei);return Xt.destroy?delete Mt[tn]:Mt[tn]=Xt,Mt})},[fi,Ln]=G.useMemo(()=>{const Xt=(0,v.Z)(oe.errors),Li=(0,v.Z)(oe.warnings);return Object.values(zi).forEach(Yr=>{Xt.push.apply(Xt,(0,v.Z)(Yr.errors||[])),Li.push.apply(Li,(0,v.Z)(Yr.warnings||[]))}),[Xt,Li]},[zi,oe.errors,oe.warnings]),Fi=It();function qt(Xt,Li,Yr){return Vn&&!fn?G.createElement(cn,{prefixCls:Nn,hasFeedback:ht.hasFeedback,validateStatus:ht.validateStatus,meta:oe,errors:fi,warnings:Ln,noStyle:!0},Xt):G.createElement(Xi,Object.assign({key:"row"},ht,{className:O()(pt,Mi),prefixCls:Nn,fieldId:Li,isRequired:Yr,errors:fi,warnings:Ln,meta:oe,onSubItemMetaChange:Tt}),Xt)}if(!li&&!Jt&&!Ke)return lt(qt(Rt));let xi={};return typeof Ut=="string"?xi.label=Ut:_n&&(xi.label=String(_n)),Lt&&(xi=Object.assign(Object.assign({},xi),Lt)),lt(G.createElement(Ge.Field,Object.assign({},ht,{messageVariables:xi,trigger:Wn,validateTrigger:An,onMetaChange:Be}),(Xt,Li,Yr)=>{const Mt=ce(_n).length&&Li?Li.name:[],Qr=Ht(Mt,L),tn=Ve!==void 0?Ve:!!(on&&on.some(or=>{if(or&&typeof or=="object"&&or.required&&!or.warningOnly)return!0;if(typeof or=="function"){const tr=or(Yr);return tr&&tr.required&&!tr.warningOnly}return!1})),Oi=Object.assign({},Xt);let Ei=null;if(Array.isArray(Rt)&&li)Ei=Rt;else if(!(Jt&&(!(Fn||Ke)||li))){if(!(Ke&&!Jt&&!li))if((0,re.l$)(Rt)){const or=Object.assign(Object.assign({},Rt.props),Oi);if(or.id||(or.id=Qr),yt||fi.length>0||Ln.length>0||ht.extra){const he=[];(yt||fi.length>0)&&he.push(`${Qr}_help`),ht.extra&&he.push(`${Qr}_extra`),or["aria-describedby"]=he.join(" ")}fi.length>0&&(or["aria-invalid"]="true"),tn&&(or["aria-required"]="true"),(0,In.Yr)(Rt)&&(or.ref=Fi(Mt,Rt)),new Set([].concat((0,v.Z)(ce(Wn)),(0,v.Z)(ce(An)))).forEach(he=>{or[he]=function(){for(var gr,br,cr,Br,Zi,Ri=arguments.length,Ai=new Array(Ri),hr=0;hr<Ri;hr++)Ai[hr]=arguments[hr];(cr=Oi[he])===null||cr===void 0||(gr=cr).call.apply(gr,[Oi].concat(Ai)),(Zi=(Br=Rt.props)[he])===null||Zi===void 0||(br=Zi).call.apply(br,[Br].concat(Ai))}});const Zn=[or["aria-required"],or["aria-invalid"],or["aria-describedby"]];Ei=G.createElement(ur,{value:Oi[ht.valuePropName||"value"],update:Rt,childProps:Zn},(0,re.Tm)(Rt,or))}else Jt&&(Fn||Ke)&&!li?Ei=Rt(Yr):Ei=Rt}return qt(Ei,Qr,tn)}))}const wr=Er;wr.useStatus=Q;var qr=wr,xo=function(ht,_n){var Vn={};for(var pt in ht)Object.prototype.hasOwnProperty.call(ht,pt)&&_n.indexOf(pt)<0&&(Vn[pt]=ht[pt]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,pt=Object.getOwnPropertySymbols(ht);Ke<pt.length;Ke++)_n.indexOf(pt[Ke])<0&&Object.prototype.propertyIsEnumerable.call(ht,pt[Ke])&&(Vn[pt[Ke]]=ht[pt[Ke]]);return Vn},no=ht=>{var{prefixCls:_n,children:Vn}=ht,pt=xo(ht,["prefixCls","children"]);const{getPrefixCls:Ke}=G.useContext(Pt.E_),vn=Ke("form",_n),Fn=G.useMemo(()=>({prefixCls:vn,status:"error"}),[vn]);return G.createElement(Ge.List,Object.assign({},pt),(on,Nt,Ve)=>G.createElement(M.Rk.Provider,{value:Fn},Vn(on.map(Ut=>Object.assign(Object.assign({},Ut),{fieldKey:Ut.key})),Nt,{errors:Ve.errors,warnings:Ve.warnings})))};function rr(){const{form:ht}=(0,G.useContext)(M.q3);return ht}const Bi=Jn;Bi.Item=qr,Bi.List=no,Bi.ErrorList=at,Bi.useForm=sn,Bi.useFormInstance=rr,Bi.useWatch=Ge.useWatch,Bi.Provider=M.RV,Bi.create=()=>{};var yi=Bi},8628:function(X,C,h){"use strict";var v=h(59301),I=h(34280),O=h(56762),B=h(69507);function G(){let F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const M=(0,v.useRef)({}),de=(0,O.Z)(),ae=(0,B.ZP)();return(0,I.Z)(()=>{const te=ae.subscribe(Ne=>{M.current=Ne,F&&de()});return()=>ae.unsubscribe(te)},[]),M.current}C.Z=G},11611:function(X,C,h){"use strict";h.d(C,{Z:function(){return Fn}});var v=h(59301),I=h(15277),O=h(92310),B=h.n(O),G=h(96663),F=h(44127),M=h(90493),de=h(72071),ae=h(20135),te=h(6620),Ne=h(55468),Ee=h(18929),Xe=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],Oe=v.createContext(null),Ce=0;function Ie(on,Nt){var Ve=v.useState(function(){return Ce+=1,String(Ce)}),Ut=(0,de.Z)(Ve,1),Lt=Ut[0],Wn=v.useContext(Oe),ot={data:Nt,canPreview:on};return v.useEffect(function(){if(Wn)return Wn.register(Lt,ot)},[]),v.useEffect(function(){Wn&&Wn.register(Lt,ot)},[on,Nt]),Lt}function Re(on){return new Promise(function(Nt){var Ve=document.createElement("img");Ve.onerror=function(){return Nt(!1)},Ve.onload=function(){return Nt(!0)},Ve.src=on})}function fe(on){var Nt=on.src,Ve=on.isCustomPlaceholder,Ut=on.fallback,Lt=(0,v.useState)(Ve?"loading":"normal"),Wn=(0,de.Z)(Lt,2),ot=Wn[0],fn=Wn[1],yt=(0,v.useRef)(!1),je=ot==="error";(0,v.useEffect)(function(){Re(Nt).then(function(mt){mt||fn("error")})},[Nt]),(0,v.useEffect)(function(){Ve&&!yt.current?fn("loading"):je&&fn("normal")},[Nt]);var L=function(){fn("normal")},Rt=function(xn){yt.current=!1,ot==="loading"&&xn!=null&&xn.complete&&(xn.naturalWidth||xn.naturalHeight)&&(yt.current=!0,L())},Jt=je&&Ut?{src:Ut}:{onLoad:L,src:Nt};return[Rt,Jt,ot]}var me=h(86923),ye=h(8224),pe=h(10228),ke=h(48736);function ee(on,Nt,Ve,Ut){var Lt=Nt+Ve,Wn=(Ve-Ut)/2;if(Ve>Ut){if(Nt>0)return(0,M.Z)({},on,Wn);if(Nt<0&&Lt<Ut)return(0,M.Z)({},on,-Wn)}else if(Nt<0||Lt>Ut)return(0,M.Z)({},on,Nt<0?Wn:-Wn);return{}}function Te(on,Nt,Ve,Ut){var Lt=(0,Ne.g1)(),Wn=Lt.width,ot=Lt.height,fn=null;return on<=Wn&&Nt<=ot?fn={x:0,y:0}:(on>Wn||Nt>ot)&&(fn=(0,F.Z)((0,F.Z)({},ee("x",Ve,on,Wn)),ee("y",Ut,Nt,ot))),fn}var Me=h(13697),Le=h(16089),Je={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Ye(on,Nt,Ve,Ut){var Lt=(0,v.useRef)(null),Wn=(0,v.useRef)([]),ot=(0,v.useState)(Je),fn=(0,de.Z)(ot,2),yt=fn[0],je=fn[1],L=function(xn){je(Je),Ut&&!(0,Me.Z)(Je,yt)&&Ut({transform:Je,action:xn})},Rt=function(xn,An){Lt.current===null&&(Wn.current=[],Lt.current=(0,Le.Z)(function(){je(function(li){var Nn=li;return Wn.current.forEach(function(lt){Nn=(0,F.Z)((0,F.Z)({},Nn),lt)}),Lt.current=null,Ut==null||Ut({transform:Nn,action:An}),Nn})})),Wn.current.push((0,F.Z)((0,F.Z)({},yt),xn))},Jt=function(xn,An,li,Nn){var lt=on.current,Mi=lt.width,Yi=lt.height,Yt=lt.offsetWidth,zi=lt.offsetHeight,q=lt.offsetLeft,oe=lt.offsetTop,Hn=xn,Be=yt.scale*xn;Be>Ve?(Hn=Ve/yt.scale,Be=Ve):Be<Nt&&(Hn=Nt/yt.scale,Be=Nt);var Tt=li!=null?li:innerWidth/2,fi=Nn!=null?Nn:innerHeight/2,Ln=Hn-1,Fi=Ln*Mi*.5,qt=Ln*Yi*.5,xi=Ln*(Tt-yt.x-q),Xt=Ln*(fi-yt.y-oe),Li=yt.x-(xi-Fi),Yr=yt.y-(Xt-qt);if(xn<1&&Be===1){var Mt=Yt*Be,Qr=zi*Be,tn=(0,Ne.g1)(),Oi=tn.width,Ei=tn.height;Mt<=Oi&&Qr<=Ei&&(Li=0,Yr=0)}Rt({x:Li,y:Yr,scale:Be},An)};return{transform:yt,resetTransform:L,updateTransform:Rt,dispatchZoomChange:Jt}}var ne=h(43403),at=h(77900),Ge=function(Nt){var Ve=Nt.visible,Ut=Nt.maskTransitionName,Lt=Nt.getContainer,Wn=Nt.prefixCls,ot=Nt.rootClassName,fn=Nt.icons,yt=Nt.countRender,je=Nt.showSwitch,L=Nt.showProgress,Rt=Nt.current,Jt=Nt.transform,mt=Nt.count,xn=Nt.scale,An=Nt.minScale,li=Nt.maxScale,Nn=Nt.closeIcon,lt=Nt.onSwitchLeft,Mi=Nt.onSwitchRight,Yi=Nt.onClose,Yt=Nt.onZoomIn,zi=Nt.onZoomOut,q=Nt.onRotateRight,oe=Nt.onRotateLeft,Hn=Nt.onFlipX,Be=Nt.onFlipY,Tt=Nt.toolbarRender,fi=(0,v.useContext)(Oe),Ln=fn.rotateLeft,Fi=fn.rotateRight,qt=fn.zoomIn,xi=fn.zoomOut,Xt=fn.close,Li=fn.left,Yr=fn.right,Mt=fn.flipX,Qr=fn.flipY,tn="".concat(Wn,"-operations-operation");v.useEffect(function(){var tr=function(he){he.keyCode===pe.Z.ESC&&Yi()};return Ve&&window.addEventListener("keydown",tr),function(){window.removeEventListener("keydown",tr)}},[Ve]);var Oi=[{icon:Qr,onClick:Be,type:"flipY"},{icon:Mt,onClick:Hn,type:"flipX"},{icon:Ln,onClick:oe,type:"rotateLeft"},{icon:Fi,onClick:q,type:"rotateRight"},{icon:xi,onClick:zi,type:"zoomOut",disabled:xn===An},{icon:qt,onClick:Yt,type:"zoomIn",disabled:xn===li}],Ei=Oi.map(function(tr){var Zn,he=tr.icon,gr=tr.onClick,br=tr.type,cr=tr.disabled;return v.createElement("div",{className:B()(tn,(Zn={},(0,M.Z)(Zn,"".concat(Wn,"-operations-operation-").concat(br),!0),(0,M.Z)(Zn,"".concat(Wn,"-operations-operation-disabled"),!!cr),Zn)),onClick:gr,key:br},he)}),or=v.createElement("div",{className:"".concat(Wn,"-operations")},Ei);return v.createElement(at.default,{visible:Ve,motionName:Ut},function(tr){var Zn=tr.className,he=tr.style;return v.createElement(ne.Z,{open:!0,getContainer:Lt!=null?Lt:document.body},v.createElement("div",{className:B()("".concat(Wn,"-operations-wrapper"),Zn,ot),style:he},Nn===null?null:v.createElement("button",{className:"".concat(Wn,"-close"),onClick:Yi},Nn||Xt),je&&v.createElement(v.Fragment,null,v.createElement("div",{className:B()("".concat(Wn,"-switch-left"),(0,M.Z)({},"".concat(Wn,"-switch-left-disabled"),Rt===0)),onClick:lt},Li),v.createElement("div",{className:B()("".concat(Wn,"-switch-right"),(0,M.Z)({},"".concat(Wn,"-switch-right-disabled"),Rt===mt-1)),onClick:Mi},Yr)),v.createElement("div",{className:"".concat(Wn,"-footer")},L&&v.createElement("div",{className:"".concat(Wn,"-progress")},yt?yt(Rt+1,mt):"".concat(Rt+1," / ").concat(mt)),Tt?Tt(or,(0,F.Z)({icons:{flipYIcon:Ei[0],flipXIcon:Ei[1],rotateLeftIcon:Ei[2],rotateRightIcon:Ei[3],zoomOutIcon:Ei[4],zoomInIcon:Ei[5]},actions:{onFlipY:Be,onFlipX:Hn,onRotateLeft:oe,onRotateRight:q,onZoomOut:zi,onZoomIn:Yt},transform:Jt},fi?{current:Rt,total:mt}:{})):or)))})},Pt=Ge,gt=1,kt=1,Ct=["fallback","src","imgRef"],Cn=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],Qe=function(Nt){var Ve=Nt.fallback,Ut=Nt.src,Lt=Nt.imgRef,Wn=(0,te.Z)(Nt,Ct),ot=fe({src:Ut,fallback:Ve}),fn=(0,de.Z)(ot,2),yt=fn[0],je=fn[1];return v.createElement("img",(0,G.Z)({ref:function(Rt){Lt.current=Rt,yt(Rt)}},Wn,je))},le=function(Nt){var Ve=Nt.prefixCls,Ut=Nt.src,Lt=Nt.alt,Wn=Nt.fallback,ot=Nt.movable,fn=ot===void 0?!0:ot,yt=Nt.onClose,je=Nt.visible,L=Nt.icons,Rt=L===void 0?{}:L,Jt=Nt.rootClassName,mt=Nt.closeIcon,xn=Nt.getContainer,An=Nt.current,li=An===void 0?0:An,Nn=Nt.count,lt=Nn===void 0?1:Nn,Mi=Nt.countRender,Yi=Nt.scaleStep,Yt=Yi===void 0?.5:Yi,zi=Nt.minScale,q=zi===void 0?1:zi,oe=Nt.maxScale,Hn=oe===void 0?50:oe,Be=Nt.transitionName,Tt=Be===void 0?"zoom":Be,fi=Nt.maskTransitionName,Ln=fi===void 0?"fade":fi,Fi=Nt.imageRender,qt=Nt.imgCommonProps,xi=Nt.toolbarRender,Xt=Nt.onTransform,Li=Nt.onChange,Yr=(0,te.Z)(Nt,Cn),Mt=(0,v.useRef)(),Qr=(0,v.useRef)({deltaX:0,deltaY:0,transformX:0,transformY:0}),tn=(0,v.useState)(!1),Oi=(0,de.Z)(tn,2),Ei=Oi[0],or=Oi[1],tr=(0,v.useContext)(Oe),Zn=tr&&lt>1,he=tr&&lt>=1,gr=Ye(Mt,q,Hn,Xt),br=gr.transform,cr=gr.resetTransform,Br=gr.updateTransform,Zi=gr.dispatchZoomChange,Ri=(0,v.useState)(!0),Ai=(0,de.Z)(Ri,2),hr=Ai[0],Ki=Ai[1],Lr=br.rotate,Wr=br.scale,eo=br.x,Lo=br.y,pi=B()((0,M.Z)({},"".concat(Ve,"-moving"),Ei));(0,v.useEffect)(function(){hr||Ki(!0)},[hr]);var pa=function(){cr("close")},Uo=function(){Zi(gt+Yt,"zoomIn")},oa=function(){Zi(gt/(gt+Yt),"zoomOut")},ma=function(){Br({rotate:Lr+90},"rotateRight")},$a=function(){Br({rotate:Lr-90},"rotateLeft")},is=function(){Br({flipX:!br.flipX},"flipX")},ka=function(){Br({flipY:!br.flipY},"flipY")},ss=function(Ot){Ot==null||Ot.preventDefault(),Ot==null||Ot.stopPropagation(),li>0&&(Ki(!1),cr("prev"),Li==null||Li(li-1,li))},Ua=function(Ot){Ot==null||Ot.preventDefault(),Ot==null||Ot.stopPropagation(),li<lt-1&&(Ki(!1),cr("next"),Li==null||Li(li+1,li))},Go=function(){if(je&&Ei){or(!1);var Ot=Qr.current,Pr=Ot.transformX,co=Ot.transformY,xa=eo!==Pr&&Lo!==co;if(!xa)return;var xr=Mt.current.offsetWidth*Wr,wn=Mt.current.offsetHeight*Wr,ar=Mt.current.getBoundingClientRect(),mi=ar.left,Wo=ar.top,ga=Lr%180!==0,Ja=Te(ga?wn:xr,ga?xr:wn,mi,Wo);Ja&&Br((0,F.Z)({},Ja),"dragRebound")}},Zt=function(Ot){!fn||Ot.button!==0||(Ot.preventDefault(),Ot.stopPropagation(),Qr.current={deltaX:Ot.pageX-br.x,deltaY:Ot.pageY-br.y,transformX:br.x,transformY:br.y},or(!0))},Pa=function(Ot){je&&Ei&&Br({x:Ot.pageX-Qr.current.deltaX,y:Ot.pageY-Qr.current.deltaY},"move")},ql=function(Ot){if(!(!je||Ot.deltaY==0)){var Pr=Math.abs(Ot.deltaY/100),co=Math.min(Pr,kt),xa=gt+co*Yt;Ot.deltaY>0&&(xa=gt/xa),Zi(xa,"wheel",Ot.clientX,Ot.clientY)}},nl=function(Ot){!je||!Zn||(Ot.keyCode===pe.Z.LEFT?ss():Ot.keyCode===pe.Z.RIGHT&&Ua())},uo=function(Ot){je&&(Wr!==1?Br({x:0,y:0,scale:1},"doubleClick"):Zi(gt+Yt,"doubleClick",Ot.clientX,Ot.clientY))};(0,v.useEffect)(function(){var go,Ot,Pr,co;if(fn){Pr=(0,ye.Z)(window,"mouseup",Go,!1),co=(0,ye.Z)(window,"mousemove",Pa,!1);try{window.top!==window.self&&(go=(0,ye.Z)(window.top,"mouseup",Go,!1),Ot=(0,ye.Z)(window.top,"mousemove",Pa,!1))}catch(xa){(0,ke.Kp)(!1,"[rc-image] ".concat(xa))}}return function(){var xa,xr,wn,ar;(xa=Pr)===null||xa===void 0||xa.remove(),(xr=co)===null||xr===void 0||xr.remove(),(wn=go)===null||wn===void 0||wn.remove(),(ar=Ot)===null||ar===void 0||ar.remove()}},[je,Ei,eo,Lo,Lr,fn]),(0,v.useEffect)(function(){var go=(0,ye.Z)(window,"keydown",nl,!1);return function(){go.remove()}},[je,Zn,li]);var No=v.createElement(Qe,(0,G.Z)({},qt,{width:Nt.width,height:Nt.height,imgRef:Mt,className:"".concat(Ve,"-img"),alt:Lt,style:{transform:"translate3d(".concat(br.x,"px, ").concat(br.y,"px, 0) scale3d(").concat(br.flipX?"-":"").concat(Wr,", ").concat(br.flipY?"-":"").concat(Wr,", 1) rotate(").concat(Lr,"deg)"),transitionDuration:!hr&&"0s"},fallback:Wn,src:Ut,onWheel:ql,onMouseDown:Zt,onDoubleClick:uo}));return v.createElement(v.Fragment,null,v.createElement(me.Z,(0,G.Z)({transitionName:Tt,maskTransitionName:Ln,closable:!1,keyboard:!0,prefixCls:Ve,onClose:yt,visible:je,wrapClassName:pi,rootClassName:Jt,getContainer:xn},Yr,{afterClose:pa}),v.createElement("div",{className:"".concat(Ve,"-img-wrapper")},Fi?Fi(No,(0,F.Z)({transform:br},tr?{current:li}:{})):No)),v.createElement(Pt,{visible:je,transform:br,maskTransitionName:Ln,closeIcon:mt,getContainer:xn,prefixCls:Ve,rootClassName:Jt,icons:Rt,countRender:Mi,showSwitch:Zn,showProgress:he,current:li,count:lt,scale:Wr,minScale:q,maxScale:Hn,toolbarRender:xi,onSwitchLeft:ss,onSwitchRight:Ua,onZoomIn:Uo,onZoomOut:oa,onRotateRight:ma,onRotateLeft:$a,onFlipX:is,onFlipY:ka,onClose:yt}))},ce=le,Ht=h(19127);function Vt(on){var Nt=v.useState({}),Ve=(0,de.Z)(Nt,2),Ut=Ve[0],Lt=Ve[1],Wn=v.useCallback(function(fn,yt){return Lt(function(je){return(0,F.Z)((0,F.Z)({},je),{},(0,M.Z)({},fn,yt))}),function(){Lt(function(je){var L=(0,F.Z)({},je);return delete L[fn],L})}},[]),ot=v.useMemo(function(){return on?on.map(function(fn){if(typeof fn=="string")return{data:{src:fn}};var yt={};return Object.keys(fn).forEach(function(je){["src"].concat((0,Ht.Z)(Xe)).includes(je)&&(yt[je]=fn[je])}),{data:yt}}):Object.keys(Ut).reduce(function(fn,yt){var je=Ut[yt],L=je.canPreview,Rt=je.data;return L&&fn.push({data:Rt,id:yt}),fn},[])},[on,Ut]);return[ot,Wn]}var St=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],sn=["src"],Ft=function(Nt){var Ve,Ut=Nt.previewPrefixCls,Lt=Ut===void 0?"rc-image-preview":Ut,Wn=Nt.children,ot=Nt.icons,fn=ot===void 0?{}:ot,yt=Nt.items,je=Nt.preview,L=Nt.fallback,Rt=(0,ae.Z)(je)==="object"?je:{},Jt=Rt.visible,mt=Rt.onVisibleChange,xn=Rt.getContainer,An=Rt.current,li=Rt.movable,Nn=Rt.minScale,lt=Rt.maxScale,Mi=Rt.countRender,Yi=Rt.closeIcon,Yt=Rt.onChange,zi=Rt.onTransform,q=Rt.toolbarRender,oe=Rt.imageRender,Hn=(0,te.Z)(Rt,St),Be=Vt(yt),Tt=(0,de.Z)(Be,2),fi=Tt[0],Ln=Tt[1],Fi=(0,Ee.Z)(0,{value:An}),qt=(0,de.Z)(Fi,2),xi=qt[0],Xt=qt[1],Li=(0,v.useState)(!1),Yr=(0,de.Z)(Li,2),Mt=Yr[0],Qr=Yr[1],tn=((Ve=fi[xi])===null||Ve===void 0?void 0:Ve.data)||{},Oi=tn.src,Ei=(0,te.Z)(tn,sn),or=(0,Ee.Z)(!!Jt,{value:Jt,onChange:function(Lr,Wr){mt==null||mt(Lr,Wr,xi)}}),tr=(0,de.Z)(or,2),Zn=tr[0],he=tr[1],gr=(0,v.useState)(null),br=(0,de.Z)(gr,2),cr=br[0],Br=br[1],Zi=v.useCallback(function(Ki,Lr,Wr){var eo=fi.findIndex(function(Lo){return Lo.id===Ki});he(!0),Br({x:Lr,y:Wr}),Xt(eo<0?0:eo),Qr(!0)},[fi]);v.useEffect(function(){Zn?Mt||Xt(0):Qr(!1)},[Zn]);var Ri=function(Lr,Wr){Xt(Lr),Yt==null||Yt(Lr,Wr)},Ai=function(){he(!1),Br(null)},hr=v.useMemo(function(){return{register:Ln,onPreview:Zi}},[Ln,Zi]);return v.createElement(Oe.Provider,{value:hr},Wn,v.createElement(ce,(0,G.Z)({"aria-hidden":!Zn,movable:li,visible:Zn,prefixCls:Lt,closeIcon:Yi,onClose:Ai,mousePosition:cr,imgCommonProps:Ei,src:Oi,fallback:L,icons:fn,minScale:Nn,maxScale:lt,getContainer:xn,current:xi,count:fi.length,countRender:Mi,onTransform:zi,toolbarRender:q,imageRender:oe,onChange:Ri},Hn)))},oi=Ft,On=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],ni=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],Jn=function(Nt){var Ve=Nt.src,Ut=Nt.alt,Lt=Nt.onPreviewClose,Wn=Nt.prefixCls,ot=Wn===void 0?"rc-image":Wn,fn=Nt.previewPrefixCls,yt=fn===void 0?"".concat(ot,"-preview"):fn,je=Nt.placeholder,L=Nt.fallback,Rt=Nt.width,Jt=Nt.height,mt=Nt.style,xn=Nt.preview,An=xn===void 0?!0:xn,li=Nt.className,Nn=Nt.onClick,lt=Nt.onError,Mi=Nt.wrapperClassName,Yi=Nt.wrapperStyle,Yt=Nt.rootClassName,zi=(0,te.Z)(Nt,On),q=je&&je!==!0,oe=(0,ae.Z)(An)==="object"?An:{},Hn=oe.src,Be=oe.visible,Tt=Be===void 0?void 0:Be,fi=oe.onVisibleChange,Ln=fi===void 0?Lt:fi,Fi=oe.getContainer,qt=Fi===void 0?void 0:Fi,xi=oe.mask,Xt=oe.maskClassName,Li=oe.movable,Yr=oe.icons,Mt=oe.scaleStep,Qr=oe.minScale,tn=oe.maxScale,Oi=oe.imageRender,Ei=oe.toolbarRender,or=(0,te.Z)(oe,ni),tr=Hn!=null?Hn:Ve,Zn=(0,Ee.Z)(!!Tt,{value:Tt,onChange:Ln}),he=(0,de.Z)(Zn,2),gr=he[0],br=he[1],cr=fe({src:Ve,isCustomPlaceholder:q,fallback:L}),Br=(0,de.Z)(cr,3),Zi=Br[0],Ri=Br[1],Ai=Br[2],hr=(0,v.useState)(null),Ki=(0,de.Z)(hr,2),Lr=Ki[0],Wr=Ki[1],eo=(0,v.useContext)(Oe),Lo=!!An,pi=function(){br(!1),Wr(null)},pa=B()(ot,Mi,Yt,(0,M.Z)({},"".concat(ot,"-error"),Ai==="error")),Uo=(0,v.useMemo)(function(){var is={};return Xe.forEach(function(ka){Nt[ka]!==void 0&&(is[ka]=Nt[ka])}),is},Xe.map(function(is){return Nt[is]})),oa=(0,v.useMemo)(function(){return(0,F.Z)((0,F.Z)({},Uo),{},{src:tr})},[tr,Uo]),ma=Ie(Lo,oa),$a=function(ka){var ss=(0,Ne.os)(ka.target),Ua=ss.left,Go=ss.top;eo?eo.onPreview(ma,Ua,Go):(Wr({x:Ua,y:Go}),br(!0)),Nn==null||Nn(ka)};return v.createElement(v.Fragment,null,v.createElement("div",(0,G.Z)({},zi,{className:pa,onClick:Lo?$a:Nn,style:(0,F.Z)({width:Rt,height:Jt},Yi)}),v.createElement("img",(0,G.Z)({},Uo,{className:B()("".concat(ot,"-img"),(0,M.Z)({},"".concat(ot,"-img-placeholder"),je===!0),li),style:(0,F.Z)({height:Jt},mt),ref:Zi},Ri,{width:Rt,height:Jt,onError:lt})),Ai==="loading"&&v.createElement("div",{"aria-hidden":"true",className:"".concat(ot,"-placeholder")},je),xi&&Lo&&v.createElement("div",{className:B()("".concat(ot,"-mask"),Xt),style:{display:(mt==null?void 0:mt.display)==="none"?"none":void 0}},xi)),!eo&&Lo&&v.createElement(ce,(0,G.Z)({"aria-hidden":!gr,visible:gr,prefixCls:yt,onClose:pi,mousePosition:Lr,src:tr,alt:Ut,fallback:L,getContainer:qt,icons:Yr,movable:Li,scaleStep:Mt,minScale:Qr,maxScale:tn,rootClassName:Yt,imageRender:Oi,imgCommonProps:Uo,toolbarRender:Ei},or)))};Jn.PreviewGroup=oi,Jn.displayName="Image";var Mn=Jn,In=Mn,re=h(62892),z=h(36355),k=h(31724),j=h(99267),Q=h(33853),T=h(38819),_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},It=_e,$e=h(7657),Pe=function(Nt,Ve){return v.createElement($e.Z,(0,G.Z)({},Nt,{ref:Ve,icon:It}))},vt=v.forwardRef(Pe),ut=vt,tt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},Et=tt,pn=function(Nt,Ve){return v.createElement($e.Z,(0,G.Z)({},Nt,{ref:Ve,icon:Et}))},nn=v.forwardRef(pn),Kt=nn,hn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},an=hn,et=function(Nt,Ve){return v.createElement($e.Z,(0,G.Z)({},Nt,{ref:Ve,icon:an}))},zt=v.forwardRef(et),dn=zt,rn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},ze=rn,Un=function(Nt,Ve){return v.createElement($e.Z,(0,G.Z)({},Nt,{ref:Ve,icon:ze}))},yn=v.forwardRef(Un),Bt=yn,Si={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},_i=Si,Ii=function(Nt,Ve){return v.createElement($e.Z,(0,G.Z)({},Nt,{ref:Ve,icon:_i}))},cn=v.forwardRef(Ii),fr=cn,Xi=h(64993),ei=h(73819),Tr=h(17313),ur=h(29878),U=h(1950),mr=h(83116),Er=h(37613);const wr=on=>({position:on||"absolute",inset:0}),qr=on=>{const{iconCls:Nt,motionDurationSlow:Ve,paddingXXS:Ut,marginXXS:Lt,prefixCls:Wn,colorTextLightSolid:ot}=on;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:ot,background:new Xi.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${Ve}`,[`.${Wn}-mask-info`]:Object.assign(Object.assign({},Tr.vS),{padding:`0 ${Ut}px`,[Nt]:{marginInlineEnd:Lt,svg:{verticalAlign:"baseline"}}})}},xo=on=>{const{previewCls:Nt,modalMaskBg:Ve,paddingSM:Ut,marginXL:Lt,margin:Wn,paddingLG:ot,previewOperationColorDisabled:fn,previewOperationHoverColor:yt,motionDurationSlow:je,iconCls:L,colorTextLightSolid:Rt}=on,Jt=new Xi.C(Ve).setAlpha(.1),mt=Jt.clone().setAlpha(.2);return{[`${Nt}-footer`]:{position:"fixed",bottom:Lt,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:on.previewOperationColor},[`${Nt}-progress`]:{marginBottom:Wn},[`${Nt}-close`]:{position:"fixed",top:Lt,right:{_skip_check_:!0,value:Lt},display:"flex",color:Rt,backgroundColor:Jt.toRgbString(),borderRadius:"50%",padding:Ut,outline:0,border:0,cursor:"pointer",transition:`all ${je}`,"&:hover":{backgroundColor:mt.toRgbString()},[`& > ${L}`]:{fontSize:on.previewOperationSize}},[`${Nt}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${ot}px`,backgroundColor:Jt.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:Ut,padding:Ut,cursor:"pointer",transition:`all ${je}`,userSelect:"none",[`&:not(${Nt}-operations-operation-disabled):hover > ${L}`]:{color:yt},"&-disabled":{color:fn,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${L}`]:{fontSize:on.previewOperationSize}}}}},kr=on=>{const{modalMaskBg:Nt,iconCls:Ve,previewOperationColorDisabled:Ut,previewCls:Lt,zIndexPopup:Wn,motionDurationSlow:ot}=on,fn=new Xi.C(Nt).setAlpha(.1),yt=fn.clone().setAlpha(.2);return{[`${Lt}-switch-left, ${Lt}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:Wn+1,display:"flex",alignItems:"center",justifyContent:"center",width:on.imagePreviewSwitchSize,height:on.imagePreviewSwitchSize,marginTop:-on.imagePreviewSwitchSize/2,color:on.previewOperationColor,background:fn.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${ot}`,userSelect:"none","&:hover":{background:yt.toRgbString()},"&-disabled":{"&, &:hover":{color:Ut,background:"transparent",cursor:"not-allowed",[`> ${Ve}`]:{cursor:"not-allowed"}}},[`> ${Ve}`]:{fontSize:on.previewOperationSize}},[`${Lt}-switch-left`]:{insetInlineStart:on.marginSM},[`${Lt}-switch-right`]:{insetInlineEnd:on.marginSM}}},no=on=>{const{motionEaseOut:Nt,previewCls:Ve,motionDurationSlow:Ut,componentCls:Lt}=on;return[{[`${Lt}-preview-root`]:{[Ve]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${Ve}-body`]:Object.assign(Object.assign({},wr()),{overflow:"hidden"}),[`${Ve}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${Ut} ${Nt} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},wr()),{transition:`transform ${Ut} ${Nt} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${Ve}-moving`]:{[`${Ve}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${Lt}-preview-root`]:{[`${Ve}-wrap`]:{zIndex:on.zIndexPopup}}},{[`${Lt}-preview-operations-wrapper`]:{position:"fixed",zIndex:on.zIndexPopup+1},"&":[xo(on),kr(on)]}]},rr=on=>{const{componentCls:Nt}=on;return{[Nt]:{position:"relative",display:"inline-block",[`${Nt}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${Nt}-img-placeholder`]:{backgroundColor:on.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${Nt}-mask`]:Object.assign({},qr(on)),[`${Nt}-mask:hover`]:{opacity:1},[`${Nt}-placeholder`]:Object.assign({},wr())}}},Bi=on=>{const{previewCls:Nt}=on;return{[`${Nt}-root`]:(0,ur._y)(on,"zoom"),"&":(0,U.J$)(on,!0)}};var yi=(0,mr.Z)("Image",on=>{const Nt=`${on.componentCls}-preview`,Ve=(0,Er.TS)(on,{previewCls:Nt,modalMaskBg:new Xi.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:on.controlHeightLG});return[rr(Ve),no(Ve),(0,ei.QA)((0,Er.TS)(Ve,{componentCls:Nt})),Bi(Ve)]},on=>({zIndexPopup:on.zIndexPopupBase+80,previewOperationColor:new Xi.C(on.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new Xi.C(on.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new Xi.C(on.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:on.fontSizeIcon*1.5})),ht=function(on,Nt){var Ve={};for(var Ut in on)Object.prototype.hasOwnProperty.call(on,Ut)&&Nt.indexOf(Ut)<0&&(Ve[Ut]=on[Ut]);if(on!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,Ut=Object.getOwnPropertySymbols(on);Lt<Ut.length;Lt++)Nt.indexOf(Ut[Lt])<0&&Object.prototype.propertyIsEnumerable.call(on,Ut[Lt])&&(Ve[Ut[Lt]]=on[Ut[Lt]]);return Ve};const _n={rotateLeft:v.createElement(ut,null),rotateRight:v.createElement(Kt,null),zoomIn:v.createElement(Bt,null),zoomOut:v.createElement(fr,null),close:v.createElement(j.Z,null),left:v.createElement(Q.Z,null),right:v.createElement(T.Z,null),flipX:v.createElement(dn,null),flipY:v.createElement(dn,{rotate:90})};var pt=on=>{var{previewPrefixCls:Nt,preview:Ve}=on,Ut=ht(on,["previewPrefixCls","preview"]);const{getPrefixCls:Lt}=v.useContext(z.E_),Wn=Lt("image",Nt),ot=`${Wn}-preview`,fn=Lt(),[yt,je]=yi(Wn),L=v.useMemo(()=>{var Rt;if(Ve===!1)return Ve;const Jt=typeof Ve=="object"?Ve:{},mt=B()(je,(Rt=Jt.rootClassName)!==null&&Rt!==void 0?Rt:"");return Object.assign(Object.assign({},Jt),{transitionName:(0,re.m)(fn,"zoom",Jt.transitionName),maskTransitionName:(0,re.m)(fn,"fade",Jt.maskTransitionName),rootClassName:mt})},[Ve]);return yt(v.createElement(In.PreviewGroup,Object.assign({preview:L,previewPrefixCls:ot,icons:_n},Ut)))},Ke=function(on,Nt){var Ve={};for(var Ut in on)Object.prototype.hasOwnProperty.call(on,Ut)&&Nt.indexOf(Ut)<0&&(Ve[Ut]=on[Ut]);if(on!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,Ut=Object.getOwnPropertySymbols(on);Lt<Ut.length;Lt++)Nt.indexOf(Ut[Lt])<0&&Object.prototype.propertyIsEnumerable.call(on,Ut[Lt])&&(Ve[Ut[Lt]]=on[Ut[Lt]]);return Ve};const vn=on=>{const{prefixCls:Nt,preview:Ve,className:Ut,rootClassName:Lt,style:Wn}=on,ot=Ke(on,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:fn,locale:yt=k.Z,getPopupContainer:je,image:L}=v.useContext(z.E_),Rt=fn("image",Nt),Jt=fn(),mt=yt.Image||k.Z.Image,[xn,An]=yi(Rt),li=B()(Lt,An),Nn=B()(Ut,An,L==null?void 0:L.className),lt=v.useMemo(()=>{if(Ve===!1)return Ve;const Yi=typeof Ve=="object"?Ve:{},{getContainer:Yt}=Yi,zi=Ke(Yi,["getContainer"]);return Object.assign(Object.assign({mask:v.createElement("div",{className:`${Rt}-mask-info`},v.createElement(I.Z,null),mt==null?void 0:mt.preview),icons:_n},zi),{getContainer:Yt||je,transitionName:(0,re.m)(Jt,"zoom",Yi.transitionName),maskTransitionName:(0,re.m)(Jt,"fade",Yi.maskTransitionName)})},[Ve,mt]),Mi=Object.assign(Object.assign({},L==null?void 0:L.style),Wn);return xn(v.createElement(In,Object.assign({prefixCls:Rt,preview:lt,rootClassName:li,className:Nn,style:Mi},ot)))};vn.PreviewGroup=pt;var Fn=vn},9432:function(X,C,h){"use strict";h.d(C,{Z:function(){return me},n:function(){return Re}});var v=h(19248),I=h(92310),O=h.n(I),B=h(93681),G=h(8654),F=h(59301),M=h(19080),de=h(36355),ae=h(1684),te=h(19716),Ne=h(32441),Ee=h(33234),Xe=h(59412),Oe=h(9937);function Ce(ye){return!!(ye.prefix||ye.suffix||ye.allowClear)}var Ie=function(ye,pe){var ke={};for(var ee in ye)Object.prototype.hasOwnProperty.call(ye,ee)&&pe.indexOf(ee)<0&&(ke[ee]=ye[ee]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,ee=Object.getOwnPropertySymbols(ye);Te<ee.length;Te++)pe.indexOf(ee[Te])<0&&Object.prototype.propertyIsEnumerable.call(ye,ee[Te])&&(ke[ee[Te]]=ye[ee[Te]]);return ke};function Re(ye,pe){if(!ye)return;ye.focus(pe);const{cursor:ke}=pe||{};if(ke){const ee=ye.value.length;switch(ke){case"start":ye.setSelectionRange(0,0);break;case"end":ye.setSelectionRange(ee,ee);break;default:ye.setSelectionRange(0,ee);break}}}var me=(0,F.forwardRef)((ye,pe)=>{var ke;const{prefixCls:ee,bordered:Te=!0,status:Me,size:Le,disabled:Je,onBlur:Ye,onFocus:ne,suffix:at,allowClear:Ge,addonAfter:Pt,addonBefore:gt,className:kt,style:Ct,styles:Cn,rootClassName:Qe,onChange:le,classNames:ce}=ye,Ht=Ie(ye,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:Vt,direction:St,input:sn}=F.useContext(de.E_),Ft=Vt("input",ee),oi=(0,F.useRef)(null),[On,ni]=(0,Oe.ZP)(Ft),{compactSize:Jn,compactItemClassnames:Mn}=(0,Ee.ri)(Ft,St),In=(0,te.Z)(pn=>{var nn;return(nn=Le!=null?Le:Jn)!==null&&nn!==void 0?nn:pn}),re=F.useContext(ae.Z),z=Je!=null?Je:re,{status:k,hasFeedback:j,feedbackIcon:Q}=(0,F.useContext)(Ne.aM),T=(0,M.F)(k,Me),_e=Ce(ye)||!!j,It=(0,F.useRef)(_e);(0,F.useEffect)(()=>{var pn;_e&&It.current,It.current=_e},[_e]);const $e=(0,Xe.Z)(oi,!0),Pe=pn=>{$e(),Ye==null||Ye(pn)},vt=pn=>{$e(),ne==null||ne(pn)},ut=pn=>{$e(),le==null||le(pn)},tt=(j||at)&&F.createElement(F.Fragment,null,at,j&&Q);let Et;return typeof Ge=="object"&&(Ge!=null&&Ge.clearIcon)?Et=Ge:Ge&&(Et={clearIcon:F.createElement(v.Z,null)}),On(F.createElement(B.default,Object.assign({ref:(0,G.sQ)(pe,oi),prefixCls:Ft,autoComplete:sn==null?void 0:sn.autoComplete},Ht,{disabled:z,onBlur:Pe,onFocus:vt,style:Object.assign(Object.assign({},sn==null?void 0:sn.style),Ct),styles:Object.assign(Object.assign({},sn==null?void 0:sn.styles),Cn),suffix:tt,allowClear:Et,className:O()(kt,Qe,Mn,sn==null?void 0:sn.className),onChange:ut,addonAfter:Pt&&F.createElement(Ee.BR,null,F.createElement(Ne.Ux,{override:!0,status:!0},Pt)),addonBefore:gt&&F.createElement(Ee.BR,null,F.createElement(Ne.Ux,{override:!0,status:!0},gt)),classNames:Object.assign(Object.assign(Object.assign({},ce),sn==null?void 0:sn.classNames),{input:O()({[`${Ft}-sm`]:In==="small",[`${Ft}-lg`]:In==="large",[`${Ft}-rtl`]:St==="rtl",[`${Ft}-borderless`]:!Te},!_e&&(0,M.Z)(Ft,T),ce==null?void 0:ce.input,(ke=sn==null?void 0:sn.classNames)===null||ke===void 0?void 0:ke.input,ni)}),classes:{affixWrapper:O()({[`${Ft}-affix-wrapper-sm`]:In==="small",[`${Ft}-affix-wrapper-lg`]:In==="large",[`${Ft}-affix-wrapper-rtl`]:St==="rtl",[`${Ft}-affix-wrapper-borderless`]:!Te},(0,M.Z)(`${Ft}-affix-wrapper`,T,j),ni),wrapper:O()({[`${Ft}-group-rtl`]:St==="rtl"},ni),group:O()({[`${Ft}-group-wrapper-sm`]:In==="small",[`${Ft}-group-wrapper-lg`]:In==="large",[`${Ft}-group-wrapper-rtl`]:St==="rtl",[`${Ft}-group-wrapper-disabled`]:z},(0,M.Z)(`${Ft}-group-wrapper`,T,j),ni)}})))})},1643:function(X,C,h){"use strict";var v=h(19248),I=h(92310),O=h.n(I),B=h(9296),G=h(59301),F=h(19080),M=h(36355),de=h(1684),ae=h(19716),te=h(32441),Ne=h(9432),Ee=h(9937),Xe=function(Ce,Ie){var Re={};for(var fe in Ce)Object.prototype.hasOwnProperty.call(Ce,fe)&&Ie.indexOf(fe)<0&&(Re[fe]=Ce[fe]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,fe=Object.getOwnPropertySymbols(Ce);me<fe.length;me++)Ie.indexOf(fe[me])<0&&Object.prototype.propertyIsEnumerable.call(Ce,fe[me])&&(Re[fe[me]]=Ce[fe[me]]);return Re};const Oe=(0,G.forwardRef)((Ce,Ie)=>{const{prefixCls:Re,bordered:fe=!0,size:me,disabled:ye,status:pe,allowClear:ke,showCount:ee,classNames:Te,rootClassName:Me,className:Le}=Ce,Je=Xe(Ce,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Ye,direction:ne}=G.useContext(M.E_),at=(0,ae.Z)(me),Ge=G.useContext(de.Z),Pt=ye!=null?ye:Ge,{status:gt,hasFeedback:kt,feedbackIcon:Ct}=G.useContext(te.aM),Cn=(0,F.F)(gt,pe),Qe=G.useRef(null);G.useImperativeHandle(Ie,()=>{var St;return{resizableTextArea:(St=Qe.current)===null||St===void 0?void 0:St.resizableTextArea,focus:sn=>{var Ft,oi;(0,Ne.n)((oi=(Ft=Qe.current)===null||Ft===void 0?void 0:Ft.resizableTextArea)===null||oi===void 0?void 0:oi.textArea,sn)},blur:()=>{var sn;return(sn=Qe.current)===null||sn===void 0?void 0:sn.blur()}}});const le=Ye("input",Re);let ce;typeof ke=="object"&&(ke!=null&&ke.clearIcon)?ce=ke:ke&&(ce={clearIcon:G.createElement(v.Z,null)});const[Ht,Vt]=(0,Ee.ZP)(le);return Ht(G.createElement(B.default,Object.assign({},Je,{disabled:Pt,allowClear:ce,className:O()(Le,Me),classes:{affixWrapper:O()(`${le}-textarea-affix-wrapper`,{[`${le}-affix-wrapper-rtl`]:ne==="rtl",[`${le}-affix-wrapper-borderless`]:!fe,[`${le}-affix-wrapper-sm`]:at==="small",[`${le}-affix-wrapper-lg`]:at==="large",[`${le}-textarea-show-count`]:ee},(0,F.Z)(`${le}-affix-wrapper`,Cn),Vt)},classNames:Object.assign(Object.assign({},Te),{textarea:O()({[`${le}-borderless`]:!fe,[`${le}-sm`]:at==="small",[`${le}-lg`]:at==="large"},(0,F.Z)(le,Cn),Vt,Te==null?void 0:Te.textarea)}),prefixCls:le,suffix:kt&&G.createElement("span",{className:`${le}-textarea-suffix`},Ct),showCount:ee,ref:Qe})))});C.Z=Oe},59412:function(X,C,h){"use strict";h.d(C,{Z:function(){return I}});var v=h(59301);function I(O,B){const G=(0,v.useRef)([]),F=()=>{G.current.push(setTimeout(()=>{var M,de,ae,te;!((M=O.current)===null||M===void 0)&&M.input&&((de=O.current)===null||de===void 0?void 0:de.input.getAttribute("type"))==="password"&&(!((ae=O.current)===null||ae===void 0)&&ae.input.hasAttribute("value"))&&((te=O.current)===null||te===void 0||te.input.removeAttribute("value"))}))};return(0,v.useEffect)(()=>(B&&F(),()=>G.current.forEach(M=>{M&&clearTimeout(M)})),[]),F}},92832:function(X,C,h){"use strict";h.d(C,{default:function(){return at}});var v=h(92310),I=h.n(v),O=h(59301),B=h(36355),G=h(32441),F=h(9937),de=Ge=>{const{getPrefixCls:Pt,direction:gt}=(0,O.useContext)(B.E_),{prefixCls:kt,className:Ct}=Ge,Cn=Pt("input-group",kt),Qe=Pt("input"),[le,ce]=(0,F.ZP)(Qe),Ht=I()(Cn,{[`${Cn}-lg`]:Ge.size==="large",[`${Cn}-sm`]:Ge.size==="small",[`${Cn}-compact`]:Ge.compact,[`${Cn}-rtl`]:gt==="rtl"},ce,Ct),Vt=(0,O.useContext)(G.aM),St=(0,O.useMemo)(()=>Object.assign(Object.assign({},Vt),{isFormItemInput:!1}),[Vt]);return le(O.createElement("span",{className:Ht,style:Ge.style,onMouseEnter:Ge.onMouseEnter,onMouseLeave:Ge.onMouseLeave,onFocus:Ge.onFocus,onBlur:Ge.onBlur},O.createElement(G.aM.Provider,{value:St},Ge.children)))},ae=h(9432),te=h(73331),Ne=h(15277),Ee=h(2738),Xe=h(8654),Oe=h(59412),Ce=function(Ge,Pt){var gt={};for(var kt in Ge)Object.prototype.hasOwnProperty.call(Ge,kt)&&Pt.indexOf(kt)<0&&(gt[kt]=Ge[kt]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ct=0,kt=Object.getOwnPropertySymbols(Ge);Ct<kt.length;Ct++)Pt.indexOf(kt[Ct])<0&&Object.prototype.propertyIsEnumerable.call(Ge,kt[Ct])&&(gt[kt[Ct]]=Ge[kt[Ct]]);return gt};const Ie=Ge=>Ge?O.createElement(Ne.Z,null):O.createElement(te.Z,null),Re={click:"onClick",hover:"onMouseOver"};var me=O.forwardRef((Ge,Pt)=>{const{visibilityToggle:gt=!0}=Ge,kt=typeof gt=="object"&&gt.visible!==void 0,[Ct,Cn]=(0,O.useState)(()=>kt?gt.visible:!1),Qe=(0,O.useRef)(null);O.useEffect(()=>{kt&&Cn(gt.visible)},[kt,gt]);const le=(0,Oe.Z)(Qe),ce=()=>{const{disabled:z}=Ge;z||(Ct&&le(),Cn(k=>{var j;const Q=!k;return typeof gt=="object"&&((j=gt.onVisibleChange)===null||j===void 0||j.call(gt,Q)),Q}))},Ht=z=>{const{action:k="click",iconRender:j=Ie}=Ge,Q=Re[k]||"",T=j(Ct),_e={[Q]:ce,className:`${z}-icon`,key:"passwordIcon",onMouseDown:It=>{It.preventDefault()},onMouseUp:It=>{It.preventDefault()}};return O.cloneElement(O.isValidElement(T)?T:O.createElement("span",null,T),_e)},{className:Vt,prefixCls:St,inputPrefixCls:sn,size:Ft}=Ge,oi=Ce(Ge,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:On}=O.useContext(B.E_),ni=On("input",sn),Jn=On("input-password",St),Mn=gt&&Ht(Jn),In=I()(Jn,Vt,{[`${Jn}-${Ft}`]:!!Ft}),re=Object.assign(Object.assign({},(0,Ee.Z)(oi,["suffix","iconRender","visibilityToggle"])),{type:Ct?"text":"password",className:In,prefixCls:ni,suffix:Mn});return Ft&&(re.size=Ft),O.createElement(ae.Z,Object.assign({ref:(0,Xe.sQ)(Pt,Qe)},re))}),ye=h(47472),pe=h(92343),ke=h(3113),ee=h(19716),Te=h(33234),Me=function(Ge,Pt){var gt={};for(var kt in Ge)Object.prototype.hasOwnProperty.call(Ge,kt)&&Pt.indexOf(kt)<0&&(gt[kt]=Ge[kt]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ct=0,kt=Object.getOwnPropertySymbols(Ge);Ct<kt.length;Ct++)Pt.indexOf(kt[Ct])<0&&Object.prototype.propertyIsEnumerable.call(Ge,kt[Ct])&&(gt[kt[Ct]]=Ge[kt[Ct]]);return gt},Je=O.forwardRef((Ge,Pt)=>{const{prefixCls:gt,inputPrefixCls:kt,className:Ct,size:Cn,suffix:Qe,enterButton:le=!1,addonAfter:ce,loading:Ht,disabled:Vt,onSearch:St,onChange:sn,onCompositionStart:Ft,onCompositionEnd:oi}=Ge,On=Me(Ge,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:ni,direction:Jn}=O.useContext(B.E_),Mn=O.useRef(!1),In=ni("input-search",gt),re=ni("input",kt),{compactSize:z}=(0,Te.ri)(In,Jn),k=(0,ee.Z)(Kt=>{var hn;return(hn=Cn!=null?Cn:z)!==null&&hn!==void 0?hn:Kt}),j=O.useRef(null),Q=Kt=>{Kt&&Kt.target&&Kt.type==="click"&&St&&St(Kt.target.value,Kt,{source:"clear"}),sn&&sn(Kt)},T=Kt=>{var hn;document.activeElement===((hn=j.current)===null||hn===void 0?void 0:hn.input)&&Kt.preventDefault()},_e=Kt=>{var hn,an;St&&St((an=(hn=j.current)===null||hn===void 0?void 0:hn.input)===null||an===void 0?void 0:an.value,Kt,{source:"input"})},It=Kt=>{Mn.current||Ht||_e(Kt)},$e=typeof le=="boolean"?O.createElement(ye.Z,null):null,Pe=`${In}-button`;let vt;const ut=le||{},tt=ut.type&&ut.type.__ANT_BUTTON===!0;tt||ut.type==="button"?vt=(0,pe.Tm)(ut,Object.assign({onMouseDown:T,onClick:Kt=>{var hn,an;(an=(hn=ut==null?void 0:ut.props)===null||hn===void 0?void 0:hn.onClick)===null||an===void 0||an.call(hn,Kt),_e(Kt)},key:"enterButton"},tt?{className:Pe,size:k}:{})):vt=O.createElement(ke.ZP,{className:Pe,type:le?"primary":void 0,size:k,disabled:Vt,key:"enterButton",onMouseDown:T,onClick:_e,loading:Ht,icon:$e},le),ce&&(vt=[vt,(0,pe.Tm)(ce,{key:"addonAfter"})]);const Et=I()(In,{[`${In}-rtl`]:Jn==="rtl",[`${In}-${k}`]:!!k,[`${In}-with-button`]:!!le},Ct),pn=Kt=>{Mn.current=!0,Ft==null||Ft(Kt)},nn=Kt=>{Mn.current=!1,oi==null||oi(Kt)};return O.createElement(ae.Z,Object.assign({ref:(0,Xe.sQ)(j,Pt),onPressEnter:It},On,{size:k,onCompositionStart:pn,onCompositionEnd:nn,prefixCls:re,addonAfter:vt,suffix:Qe,onChange:Q,className:Et,disabled:Vt}))}),Ye=h(1643);const ne=ae.Z;ne.Group=de,ne.Search=Je,ne.TextArea=Ye.Z,ne.Password=me;var at=ne},45818:function(X,C,h){"use strict";h.d(C,{D:function(){return ye},Z:function(){return ee}});var v=h(96663),I=h(59301),O={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},B=O,G=h(7657),F=function(Me,Le){return I.createElement(G.Z,(0,v.Z)({},Me,{ref:Le,icon:B}))},M=I.forwardRef(F),de=M,ae=h(33853),te=h(38819),Ne=h(92310),Ee=h.n(Ne),Xe=h(2738),Ce=Te=>!isNaN(parseFloat(Te))&&isFinite(Te),Ie=h(36355),Re=h(84966),fe=function(Te,Me){var Le={};for(var Je in Te)Object.prototype.hasOwnProperty.call(Te,Je)&&Me.indexOf(Je)<0&&(Le[Je]=Te[Je]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,Je=Object.getOwnPropertySymbols(Te);Ye<Je.length;Ye++)Me.indexOf(Je[Ye])<0&&Object.prototype.propertyIsEnumerable.call(Te,Je[Ye])&&(Le[Je[Ye]]=Te[Je[Ye]]);return Le};const me={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ye=I.createContext({}),pe=(()=>{let Te=0;return function(){let Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Te+=1,`${Me}${Te}`}})();var ee=I.forwardRef((Te,Me)=>{const{prefixCls:Le,className:Je,trigger:Ye,children:ne,defaultCollapsed:at=!1,theme:Ge="dark",style:Pt={},collapsible:gt=!1,reverseArrow:kt=!1,width:Ct=200,collapsedWidth:Cn=80,zeroWidthTriggerStyle:Qe,breakpoint:le,onCollapse:ce,onBreakpoint:Ht}=Te,Vt=fe(Te,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:St}=(0,I.useContext)(Re.Gs),[sn,Ft]=(0,I.useState)("collapsed"in Te?Te.collapsed:at),[oi,On]=(0,I.useState)(!1);(0,I.useEffect)(()=>{"collapsed"in Te&&Ft(Te.collapsed)},[Te.collapsed]);const ni=(k,j)=>{"collapsed"in Te||Ft(k),ce==null||ce(k,j)},Jn=(0,I.useRef)();Jn.current=k=>{On(k.matches),Ht==null||Ht(k.matches),sn!==k.matches&&ni(k.matches,"responsive")},(0,I.useEffect)(()=>{function k(Q){return Jn.current(Q)}let j;if(typeof window!="undefined"){const{matchMedia:Q}=window;if(Q&&le&&le in me){j=Q(`(max-width: ${me[le]})`);try{j.addEventListener("change",k)}catch(T){j.addListener(k)}k(j)}}return()=>{try{j==null||j.removeEventListener("change",k)}catch(Q){j==null||j.removeListener(k)}}},[le]),(0,I.useEffect)(()=>{const k=pe("ant-sider-");return St.addSider(k),()=>St.removeSider(k)},[]);const Mn=()=>{ni(!sn,"clickTrigger")},{getPrefixCls:In}=(0,I.useContext)(Ie.E_),re=()=>{const k=In("layout-sider",Le),j=(0,Xe.Z)(Vt,["collapsed"]),Q=sn?Cn:Ct,T=Ce(Q)?`${Q}px`:String(Q),_e=parseFloat(String(Cn||0))===0?I.createElement("span",{onClick:Mn,className:Ee()(`${k}-zero-width-trigger`,`${k}-zero-width-trigger-${kt?"right":"left"}`),style:Qe},Ye||I.createElement(de,null)):null,Pe={expanded:kt?I.createElement(te.Z,null):I.createElement(ae.Z,null),collapsed:kt?I.createElement(ae.Z,null):I.createElement(te.Z,null)}[sn?"collapsed":"expanded"],vt=Ye!==null?_e||I.createElement("div",{className:`${k}-trigger`,onClick:Mn,style:{width:T}},Ye||Pe):null,ut=Object.assign(Object.assign({},Pt),{flex:`0 0 ${T}`,maxWidth:T,minWidth:T,width:T}),tt=Ee()(k,`${k}-${Ge}`,{[`${k}-collapsed`]:!!sn,[`${k}-has-trigger`]:gt&&Ye!==null&&!_e,[`${k}-below`]:!!oi,[`${k}-zero-width`]:parseFloat(T)===0},Je);return I.createElement("aside",Object.assign({className:tt},j,{style:ut,ref:Me}),I.createElement("div",{className:`${k}-children`},ne),gt||oi&&_e?vt:null)},z=I.useMemo(()=>({siderCollapsed:sn}),[sn]);return I.createElement(ye.Provider,{value:z},re())})},84966:function(X,C,h){"use strict";h.d(C,{VY:function(){return ye},$_:function(){return me},h4:function(){return fe},Gs:function(){return Xe},ZP:function(){return pe}});var v=h(19127),I=h(92310),O=h.n(I),B=h(2738),G=h(59301),F=h(36355),M=h(83116),ae=ke=>{const{componentCls:ee,bodyBg:Te,lightSiderBg:Me,lightTriggerBg:Le,lightTriggerColor:Je}=ke;return{[`${ee}-sider-light`]:{background:Me,[`${ee}-sider-trigger`]:{color:Je,background:Le},[`${ee}-sider-zero-width-trigger`]:{color:Je,background:Le,border:`1px solid ${Te}`,borderInlineStart:0}}}};const te=ke=>{const{antCls:ee,componentCls:Te,colorText:Me,triggerColor:Le,footerBg:Je,triggerBg:Ye,headerHeight:ne,headerPadding:at,headerColor:Ge,footerPadding:Pt,triggerHeight:gt,zeroTriggerHeight:kt,zeroTriggerWidth:Ct,motionDurationMid:Cn,motionDurationSlow:Qe,fontSize:le,borderRadius:ce,bodyBg:Ht,headerBg:Vt,siderBg:St}=ke;return{[Te]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Ht,"&, *":{boxSizing:"border-box"},[`&${Te}-has-sider`]:{flexDirection:"row",[`> ${Te}, > ${Te}-content`]:{width:0}},[`${Te}-header, &${Te}-footer`]:{flex:"0 0 auto"},[`${Te}-sider`]:{position:"relative",minWidth:0,background:St,transition:`all ${Cn}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${ee}-menu${ee}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:gt},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:gt,color:Le,lineHeight:`${gt}px`,textAlign:"center",background:Ye,cursor:"pointer",transition:`all ${Cn}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:ne,insetInlineEnd:-Ct,zIndex:1,width:Ct,height:kt,color:Le,fontSize:ke.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:St,borderStartStartRadius:0,borderStartEndRadius:ce,borderEndEndRadius:ce,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Qe} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Qe}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Ct,borderStartStartRadius:ce,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:ce}}}}},ae(ke)),{"&-rtl":{direction:"rtl"}}),[`${Te}-header`]:{height:ne,padding:at,color:Ge,lineHeight:`${ne}px`,background:Vt,[`${ee}-menu`]:{lineHeight:"inherit"}},[`${Te}-footer`]:{padding:Pt,color:Me,fontSize:le,background:Je},[`${Te}-content`]:{flex:"auto",minHeight:0}}};var Ne=(0,M.Z)("Layout",ke=>[te(ke)],ke=>{const{colorBgLayout:ee,controlHeight:Te,controlHeightLG:Me,colorText:Le,controlHeightSM:Je,marginXXS:Ye,colorTextLightSolid:ne,colorBgContainer:at}=ke,Ge=Me*1.25;return{colorBgHeader:"#001529",colorBgBody:ee,colorBgTrigger:"#002140",bodyBg:ee,headerBg:"#001529",headerHeight:Te*2,headerPadding:`0 ${Ge}px`,headerColor:Le,footerPadding:`${Je}px ${Ge}px`,footerBg:ee,siderBg:"#001529",triggerHeight:Me+Ye*2,triggerBg:"#002140",triggerColor:ne,zeroTriggerWidth:Me,zeroTriggerHeight:Me,lightSiderBg:at,lightTriggerBg:at,lightTriggerColor:Le}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Ee=function(ke,ee){var Te={};for(var Me in ke)Object.prototype.hasOwnProperty.call(ke,Me)&&ee.indexOf(Me)<0&&(Te[Me]=ke[Me]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,Me=Object.getOwnPropertySymbols(ke);Le<Me.length;Le++)ee.indexOf(Me[Le])<0&&Object.prototype.propertyIsEnumerable.call(ke,Me[Le])&&(Te[Me[Le]]=ke[Me[Le]]);return Te};const Xe=G.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function Oe(ke){let{suffixCls:ee,tagName:Te,displayName:Me}=ke;return Le=>G.forwardRef((Ye,ne)=>G.createElement(Le,Object.assign({ref:ne,suffixCls:ee,tagName:Te},Ye)))}const Ce=G.forwardRef((ke,ee)=>{const{prefixCls:Te,suffixCls:Me,className:Le,tagName:Je}=ke,Ye=Ee(ke,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:ne}=G.useContext(F.E_),at=ne("layout",Te),[Ge,Pt]=Ne(at),gt=Me?`${at}-${Me}`:at;return Ge(G.createElement(Je,Object.assign({className:O()(Te||gt,Le,Pt),ref:ee},Ye)))}),Ie=G.forwardRef((ke,ee)=>{const{direction:Te}=G.useContext(F.E_),[Me,Le]=G.useState([]),{prefixCls:Je,className:Ye,rootClassName:ne,children:at,hasSider:Ge,tagName:Pt,style:gt}=ke,kt=Ee(ke,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Ct=(0,B.Z)(kt,["suffixCls"]),{getPrefixCls:Cn,layout:Qe}=G.useContext(F.E_),le=Cn("layout",Je),[ce,Ht]=Ne(le),Vt=O()(le,{[`${le}-has-sider`]:typeof Ge=="boolean"?Ge:Me.length>0,[`${le}-rtl`]:Te==="rtl"},Qe==null?void 0:Qe.className,Ye,ne,Ht),St=G.useMemo(()=>({siderHook:{addSider:sn=>{Le(Ft=>[].concat((0,v.Z)(Ft),[sn]))},removeSider:sn=>{Le(Ft=>Ft.filter(oi=>oi!==sn))}}}),[]);return ce(G.createElement(Xe.Provider,{value:St},G.createElement(Pt,Object.assign({ref:ee,className:Vt,style:Object.assign(Object.assign({},Qe==null?void 0:Qe.style),gt)},Ct),at)))}),Re=Oe({tagName:"div",displayName:"Layout"})(Ie),fe=Oe({suffixCls:"header",tagName:"header",displayName:"Header"})(Ce),me=Oe({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Ce),ye=Oe({suffixCls:"content",tagName:"main",displayName:"Content"})(Ce);var pe=Re},40875:function(X,C,h){"use strict";h.d(C,{J:function(){return F}});var v=h(59301),I=h(33234),O=h(70425),B=function(M,de){var ae={};for(var te in M)Object.prototype.hasOwnProperty.call(M,te)&&de.indexOf(te)<0&&(ae[te]=M[te]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,te=Object.getOwnPropertySymbols(M);Ne<te.length;Ne++)de.indexOf(te[Ne])<0&&Object.prototype.propertyIsEnumerable.call(M,te[Ne])&&(ae[te[Ne]]=M[te[Ne]]);return ae};const G=v.createContext(null),F=v.forwardRef((M,de)=>{const{children:ae}=M,te=B(M,["children"]),Ne=v.useContext(G),Ee=v.useMemo(()=>Object.assign(Object.assign({},Ne),te),[Ne,te.prefixCls,te.mode,te.selectable]);return v.createElement(G.Provider,{value:Ee},v.createElement(I.BR,null,(0,O.supportNodeRef)(ae)?v.cloneElement(ae,{ref:de}):ae))});C.Z=G},20834:function(X,C,h){"use strict";h.d(C,{default:function(){return z}});var v=h(15285),I=h(59301),O=h(45818),B=h(92310),G=h.n(B),F=h(36355),M=function(k,j){var Q={};for(var T in k)Object.prototype.hasOwnProperty.call(k,T)&&j.indexOf(T)<0&&(Q[T]=k[T]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,T=Object.getOwnPropertySymbols(k);_e<T.length;_e++)j.indexOf(T[_e])<0&&Object.prototype.propertyIsEnumerable.call(k,T[_e])&&(Q[T[_e]]=k[T[_e]]);return Q},ae=k=>{const{prefixCls:j,className:Q,dashed:T}=k,_e=M(k,["prefixCls","className","dashed"]),{getPrefixCls:It}=I.useContext(F.E_),$e=It("menu",j),Pe=G()({[`${$e}-item-divider-dashed`]:!!T},Q);return I.createElement(v.iz,Object.assign({className:Pe},_e))},te=h(11592),Ne=h(2738),Ee=h(6848),Xe=h(92343),Ce=(0,I.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Re=k=>{var j;const{className:Q,children:T,icon:_e,title:It,danger:$e}=k,{prefixCls:Pe,firstLevel:vt,direction:ut,disableMenuItemTitleTooltip:tt,inlineCollapsed:Et}=I.useContext(Ce),pn=zt=>{const dn=I.createElement("span",{className:`${Pe}-title-content`},T);return(!_e||(0,Xe.l$)(T)&&T.type==="span")&&T&&zt&&vt&&typeof T=="string"?I.createElement("div",{className:`${Pe}-inline-collapsed-noicon`},T.charAt(0)):dn},{siderCollapsed:nn}=I.useContext(O.D);let Kt=It;typeof It=="undefined"?Kt=vt?T:"":It===!1&&(Kt="");const hn={title:Kt};!nn&&!Et&&(hn.title=null,hn.open=!1);const an=(0,te.Z)(T).length;let et=I.createElement(v.ck,Object.assign({},(0,Ne.Z)(k,["title","icon","danger"]),{className:G()({[`${Pe}-item-danger`]:$e,[`${Pe}-item-only-child`]:(_e?an+1:an)===1},Q),title:typeof It=="string"?It:void 0}),(0,Xe.Tm)(_e,{className:G()((0,Xe.l$)(_e)?(j=_e.props)===null||j===void 0?void 0:j.className:"",`${Pe}-item-icon`)}),pn(Et));return tt||(et=I.createElement(Ee.Z,Object.assign({},hn,{placement:ut==="rtl"?"left":"right",overlayClassName:`${Pe}-inline-collapsed-tooltip`}),et)),et},me=k=>{var j;const{popupClassName:Q,icon:T,title:_e,theme:It}=k,$e=I.useContext(Ce),{prefixCls:Pe,inlineCollapsed:vt,theme:ut}=$e,tt=(0,v.Xl)();let Et;if(!T)Et=vt&&!tt.length&&_e&&typeof _e=="string"?I.createElement("div",{className:`${Pe}-inline-collapsed-noicon`},_e.charAt(0)):I.createElement("span",{className:`${Pe}-title-content`},_e);else{const nn=(0,Xe.l$)(_e)&&_e.type==="span";Et=I.createElement(I.Fragment,null,(0,Xe.Tm)(T,{className:G()((0,Xe.l$)(T)?(j=T.props)===null||j===void 0?void 0:j.className:"",`${Pe}-item-icon`)}),nn?_e:I.createElement("span",{className:`${Pe}-title-content`},_e))}const pn=I.useMemo(()=>Object.assign(Object.assign({},$e),{firstLevel:!1}),[$e]);return I.createElement(Ce.Provider,{value:pn},I.createElement(v.Wd,Object.assign({},(0,Ne.Z)(k,["icon"]),{title:Et,popupClassName:G()(Pe,Q,`${Pe}-${It||ut}`)})))},ye=h(18785),pe=h(70425),ke=h(62892),ee=h(40875),Te=function(k,j){var Q={};for(var T in k)Object.prototype.hasOwnProperty.call(k,T)&&j.indexOf(T)<0&&(Q[T]=k[T]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,T=Object.getOwnPropertySymbols(k);_e<T.length;_e++)j.indexOf(T[_e])<0&&Object.prototype.propertyIsEnumerable.call(k,T[_e])&&(Q[T[_e]]=k[T[_e]]);return Q};function Me(k){return(k||[]).map((j,Q)=>{if(j&&typeof j=="object"){const T=j,{label:_e,children:It,key:$e,type:Pe}=T,vt=Te(T,["label","children","key","type"]),ut=$e!=null?$e:`tmp-${Q}`;return It||Pe==="group"?Pe==="group"?I.createElement(v.BW,Object.assign({key:ut},vt,{title:_e}),Me(It)):I.createElement(me,Object.assign({key:ut},vt,{title:_e}),Me(It)):Pe==="divider"?I.createElement(ae,Object.assign({key:ut},vt)):I.createElement(Re,Object.assign({key:ut},vt),_e)}return null}).filter(j=>j)}function Le(k){return I.useMemo(()=>k&&Me(k),[k])}var Je=h(64993),Ye=h(17313),ne=h(8378),at=h(13826),Ge=h(29878),Pt=h(83116),gt=h(37613),Ct=k=>{const{componentCls:j,motionDurationSlow:Q,horizontalLineHeight:T,colorSplit:_e,lineWidth:It,lineType:$e,itemPaddingInline:Pe}=k;return{[`${j}-horizontal`]:{lineHeight:T,border:0,borderBottom:`${It}px ${$e} ${_e}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${j}-item, ${j}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Pe},[`> ${j}-item:hover,
> ${j}-item-active,
> ${j}-submenu ${j}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${j}-item, ${j}-submenu-title`]:{transition:[`border-color ${Q}`,`background ${Q}`].join(",")},[`${j}-submenu-arrow`]:{display:"none"}}}},Qe=k=>{let{componentCls:j,menuArrowOffset:Q}=k;return{[`${j}-rtl`]:{direction:"rtl"},[`${j}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${j}-rtl${j}-vertical,
${j}-submenu-rtl ${j}-vertical`]:{[`${j}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Q})`},"&::after":{transform:`rotate(45deg) translateY(${Q})`}}}}};const le=k=>Object.assign({},(0,Ye.oN)(k));var Ht=(k,j)=>{const{componentCls:Q,itemColor:T,itemSelectedColor:_e,groupTitleColor:It,itemBg:$e,subMenuItemBg:Pe,itemSelectedBg:vt,activeBarHeight:ut,activeBarWidth:tt,activeBarBorderWidth:Et,motionDurationSlow:pn,motionEaseInOut:nn,motionEaseOut:Kt,itemPaddingInline:hn,motionDurationMid:an,itemHoverColor:et,lineType:zt,colorSplit:dn,itemDisabledColor:rn,dangerItemColor:ze,dangerItemHoverColor:Un,dangerItemSelectedColor:yn,dangerItemActiveBg:Bt,dangerItemSelectedBg:Si,itemHoverBg:_i,itemActiveBg:Ii,menuSubMenuBg:cn,horizontalItemSelectedColor:fr,horizontalItemSelectedBg:Xi,horizontalItemBorderRadius:ei,horizontalItemHoverBg:Tr,popupBg:ur}=k;return{[`${Q}-${j}, ${Q}-${j} > ${Q}`]:{color:T,background:$e,[`&${Q}-root:focus-visible`]:Object.assign({},le(k)),[`${Q}-item-group-title`]:{color:It},[`${Q}-submenu-selected`]:{[`> ${Q}-submenu-title`]:{color:_e}},[`${Q}-item-disabled, ${Q}-submenu-disabled`]:{color:`${rn} !important`},[`${Q}-item:not(${Q}-item-selected):not(${Q}-submenu-selected)`]:{[`&:hover, > ${Q}-submenu-title:hover`]:{color:et}},[`&:not(${Q}-horizontal)`]:{[`${Q}-item:not(${Q}-item-selected)`]:{"&:hover":{backgroundColor:_i},"&:active":{backgroundColor:Ii}},[`${Q}-submenu-title`]:{"&:hover":{backgroundColor:_i},"&:active":{backgroundColor:Ii}}},[`${Q}-item-danger`]:{color:ze,[`&${Q}-item:hover`]:{[`&:not(${Q}-item-selected):not(${Q}-submenu-selected)`]:{color:Un}},[`&${Q}-item:active`]:{background:Bt}},[`${Q}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Q}-item-selected`]:{color:_e,[`&${Q}-item-danger`]:{color:yn},"a, a:hover":{color:"inherit"}},[`& ${Q}-item-selected`]:{backgroundColor:vt,[`&${Q}-item-danger`]:{backgroundColor:Si}},[`${Q}-item, ${Q}-submenu-title`]:{[`&:not(${Q}-item-disabled):focus-visible`]:Object.assign({},le(k))},[`&${Q}-submenu > ${Q}`]:{backgroundColor:cn},[`&${Q}-popup > ${Q}`]:{backgroundColor:ur},[`&${Q}-horizontal`]:Object.assign(Object.assign({},j==="dark"?{borderBottom:0}:{}),{[`> ${Q}-item, > ${Q}-submenu`]:{top:Et,marginTop:-Et,marginBottom:0,borderRadius:ei,"&::after":{position:"absolute",insetInline:hn,bottom:0,borderBottom:`${ut}px solid transparent`,transition:`border-color ${pn} ${nn}`,content:'""'},"&:hover, &-active, &-open":{background:Tr,"&::after":{borderBottomWidth:ut,borderBottomColor:fr}},"&-selected":{color:fr,backgroundColor:Xi,"&:hover":{backgroundColor:Xi},"&::after":{borderBottomWidth:ut,borderBottomColor:fr}}}}),[`&${Q}-root`]:{[`&${Q}-inline, &${Q}-vertical`]:{borderInlineEnd:`${Et}px ${zt} ${dn}`}},[`&${Q}-inline`]:{[`${Q}-sub${Q}-inline`]:{background:Pe},[`${Q}-item, ${Q}-submenu-title`]:Et&&tt?{width:`calc(100% + ${Et}px)`}:{},[`${Q}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${tt}px solid ${_e}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${an} ${Kt}`,`opacity ${an} ${Kt}`].join(","),content:'""'},[`&${Q}-item-danger`]:{"&::after":{borderInlineEndColor:yn}}},[`${Q}-selected, ${Q}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${an} ${nn}`,`opacity ${an} ${nn}`].join(",")}}}}}};const Vt=k=>{const{componentCls:j,itemHeight:Q,itemMarginInline:T,padding:_e,menuArrowSize:It,marginXS:$e,itemMarginBlock:Pe}=k,vt=_e+It+$e;return{[`${j}-item`]:{position:"relative",overflow:"hidden"},[`${j}-item, ${j}-submenu-title`]:{height:Q,lineHeight:`${Q}px`,paddingInline:_e,overflow:"hidden",textOverflow:"ellipsis",marginInline:T,marginBlock:Pe,width:`calc(100% - ${T*2}px)`},[`> ${j}-item,
> ${j}-submenu > ${j}-submenu-title`]:{height:Q,lineHeight:`${Q}px`},[`${j}-item-group-list ${j}-submenu-title,
${j}-submenu-title`]:{paddingInlineEnd:vt}}};var sn=k=>{const{componentCls:j,iconCls:Q,itemHeight:T,colorTextLightSolid:_e,dropdownWidth:It,controlHeightLG:$e,motionDurationMid:Pe,motionEaseOut:vt,paddingXL:ut,itemMarginInline:tt,fontSizeLG:Et,motionDurationSlow:pn,paddingXS:nn,boxShadowSecondary:Kt,collapsedWidth:hn,collapsedIconSize:an}=k,et={height:T,lineHeight:`${T}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[j]:{"&-inline, &-vertical":Object.assign({[`&${j}-root`]:{boxShadow:"none"}},Vt(k))},[`${j}-submenu-popup`]:{[`${j}-vertical`]:Object.assign(Object.assign({},Vt(k)),{boxShadow:Kt})}},{[`${j}-submenu-popup ${j}-vertical${j}-sub`]:{minWidth:It,maxHeight:`calc(100vh - ${$e*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${j}-inline`]:{width:"100%",[`&${j}-root`]:{[`${j}-item, ${j}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${pn}`,`background ${pn}`,`padding ${Pe} ${vt}`].join(","),[`> ${j}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${j}-sub${j}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${j}-submenu > ${j}-submenu-title`]:et,[`& ${j}-item-group-title`]:{paddingInlineStart:ut}},[`${j}-item`]:et}},{[`${j}-inline-collapsed`]:{width:hn,[`&${j}-root`]:{[`${j}-item, ${j}-submenu ${j}-submenu-title`]:{[`> ${j}-inline-collapsed-noicon`]:{fontSize:Et,textAlign:"center"}}},[`> ${j}-item,
> ${j}-item-group > ${j}-item-group-list > ${j}-item,
> ${j}-item-group > ${j}-item-group-list > ${j}-submenu > ${j}-submenu-title,
> ${j}-submenu > ${j}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Et/2}px - ${tt}px)`,textOverflow:"clip",[`
${j}-submenu-arrow,
${j}-submenu-expand-icon
`]:{opacity:0},[`${j}-item-icon, ${Q}`]:{margin:0,fontSize:an,lineHeight:`${T}px`,"+ span":{display:"inline-block",opacity:0}}},[`${j}-item-icon, ${Q}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${j}-item-icon, ${Q}`]:{display:"none"},"a, a:hover":{color:_e}},[`${j}-item-group-title`]:Object.assign(Object.assign({},Ye.vS),{paddingInline:nn})}}]};const Ft=k=>{const{componentCls:j,motionDurationSlow:Q,motionDurationMid:T,motionEaseInOut:_e,motionEaseOut:It,iconCls:$e,iconSize:Pe,iconMarginInlineEnd:vt}=k;return{[`${j}-item, ${j}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Q}`,`background ${Q}`,`padding ${Q} ${_e}`].join(","),[`${j}-item-icon, ${$e}`]:{minWidth:Pe,fontSize:Pe,transition:[`font-size ${T} ${It}`,`margin ${Q} ${_e}`,`color ${Q}`].join(","),"+ span":{marginInlineStart:vt,opacity:1,transition:[`opacity ${Q} ${_e}`,`margin ${Q}`,`color ${Q}`].join(",")}},[`${j}-item-icon`]:Object.assign({},(0,Ye.Ro)()),[`&${j}-item-only-child`]:{[`> ${$e}, > ${j}-item-icon`]:{marginInlineEnd:0}}},[`${j}-item-disabled, ${j}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${j}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},oi=k=>{const{componentCls:j,motionDurationSlow:Q,motionEaseInOut:T,borderRadius:_e,menuArrowSize:It,menuArrowOffset:$e}=k;return{[`${j}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:k.margin,width:It,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Q} ${T}, opacity ${Q}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:It*.6,height:It*.15,backgroundColor:"currentcolor",borderRadius:_e,transition:[`background ${Q} ${T}`,`transform ${Q} ${T}`,`top ${Q} ${T}`,`color ${Q} ${T}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${$e})`},"&::after":{transform:`rotate(-45deg) translateY(${$e})`}}}}},On=k=>{const{antCls:j,componentCls:Q,fontSize:T,motionDurationSlow:_e,motionDurationMid:It,motionEaseInOut:$e,paddingXS:Pe,padding:vt,colorSplit:ut,lineWidth:tt,zIndexPopup:Et,borderRadiusLG:pn,subMenuItemBorderRadius:nn,menuArrowSize:Kt,menuArrowOffset:hn,lineType:an,menuPanelMaskInset:et,groupTitleLineHeight:zt,groupTitleFontSize:dn}=k;return[{"":{[`${Q}`]:Object.assign(Object.assign({},(0,Ye.dF)()),{"&-hidden":{display:"none"}})},[`${Q}-submenu-hidden`]:{display:"none"}},{[Q]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ye.Wf)(k)),(0,Ye.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:T,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${_e} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Q}-item`]:{flex:"none"}},[`${Q}-item, ${Q}-submenu, ${Q}-submenu-title`]:{borderRadius:k.itemBorderRadius},[`${Q}-item-group-title`]:{padding:`${Pe}px ${vt}px`,fontSize:dn,lineHeight:zt,transition:`all ${_e}`},[`&-horizontal ${Q}-submenu`]:{transition:[`border-color ${_e} ${$e}`,`background ${_e} ${$e}`].join(",")},[`${Q}-submenu, ${Q}-submenu-inline`]:{transition:[`border-color ${_e} ${$e}`,`background ${_e} ${$e}`,`padding ${It} ${$e}`].join(",")},[`${Q}-submenu ${Q}-sub`]:{cursor:"initial",transition:[`background ${_e} ${$e}`,`padding ${_e} ${$e}`].join(",")},[`${Q}-title-content`]:{transition:`color ${_e}`},[`${Q}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Q}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:ut,borderStyle:an,borderWidth:0,borderTopWidth:tt,marginBlock:tt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ft(k)),{[`${Q}-item-group`]:{[`${Q}-item-group-list`]:{margin:0,padding:0,[`${Q}-item, ${Q}-submenu-title`]:{paddingInline:`${T*2}px ${vt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Et,borderRadius:pn,boxShadow:"none",transformOrigin:"0 0",[`&${Q}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${et}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:et},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:k.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:k.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:k.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:k.paddingXS},[`> ${Q}`]:Object.assign(Object.assign(Object.assign({borderRadius:pn},Ft(k)),oi(k)),{[`${Q}-item, ${Q}-submenu > ${Q}-submenu-title`]:{borderRadius:nn},[`${Q}-submenu-title::after`]:{transition:`transform ${_e} ${$e}`}})}}),oi(k)),{[`&-inline-collapsed ${Q}-submenu-arrow,
&-inline ${Q}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${hn})`},"&::after":{transform:`rotate(45deg) translateX(-${hn})`}},[`${Q}-submenu-open${Q}-submenu-inline > ${Q}-submenu-title > ${Q}-submenu-arrow`]:{transform:`translateY(-${Kt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${hn})`},"&::before":{transform:`rotate(45deg) translateX(${hn})`}}})},{[`${j}-layout-header`]:{[Q]:{lineHeight:"inherit"}}}]};var ni=(k,j)=>(0,Pt.Z)("Menu",T=>{if(j===!1)return[];const{colorBgElevated:_e,colorPrimary:It,colorTextLightSolid:$e,controlHeightLG:Pe,fontSize:vt,darkItemColor:ut,darkDangerItemColor:tt,darkItemBg:Et,darkSubMenuItemBg:pn,darkItemSelectedColor:nn,darkItemSelectedBg:Kt,darkDangerItemSelectedBg:hn,darkItemHoverBg:an,darkGroupTitleColor:et,darkItemHoverColor:zt,darkItemDisabledColor:dn,darkDangerItemHoverColor:rn,darkDangerItemSelectedColor:ze,darkDangerItemActiveBg:Un}=T,yn=vt/7*5,Bt=(0,gt.TS)(T,{menuArrowSize:yn,menuHorizontalHeight:Pe*1.15,menuArrowOffset:`${yn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:_e}),Si=(0,gt.TS)(Bt,{itemColor:ut,itemHoverColor:zt,groupTitleColor:et,itemSelectedColor:nn,itemBg:Et,popupBg:Et,subMenuItemBg:pn,itemActiveBg:"transparent",itemSelectedBg:Kt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:an,itemDisabledColor:dn,dangerItemColor:tt,dangerItemHoverColor:rn,dangerItemSelectedColor:ze,dangerItemActiveBg:Un,dangerItemSelectedBg:hn,menuSubMenuBg:pn,horizontalItemSelectedColor:$e,horizontalItemSelectedBg:It});return[On(Bt),Ct(Bt),sn(Bt),Ht(Bt,"light"),Ht(Si,"dark"),Qe(Bt),(0,ne.Z)(Bt),(0,at.oN)(Bt,"slide-up"),(0,at.oN)(Bt,"slide-down"),(0,Ge._y)(Bt,"zoom-big")]},T=>{const{colorPrimary:_e,colorError:It,colorTextDisabled:$e,colorErrorBg:Pe,colorText:vt,colorTextDescription:ut,colorBgContainer:tt,colorFillAlter:Et,colorFillContent:pn,lineWidth:nn,lineWidthBold:Kt,controlItemBgActive:hn,colorBgTextHover:an,controlHeightLG:et,lineHeight:zt,colorBgElevated:dn,marginXXS:rn,padding:ze,fontSize:Un,controlHeightSM:yn,fontSizeLG:Bt,colorTextLightSolid:Si,colorErrorHover:_i}=T,Ii=new Je.C(Si).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:T.zIndexPopupBase+50,radiusItem:T.borderRadiusLG,itemBorderRadius:T.borderRadiusLG,radiusSubMenuItem:T.borderRadiusSM,subMenuItemBorderRadius:T.borderRadiusSM,colorItemText:vt,itemColor:vt,colorItemTextHover:vt,itemHoverColor:vt,colorItemTextHoverHorizontal:_e,horizontalItemHoverColor:_e,colorGroupTitle:ut,groupTitleColor:ut,colorItemTextSelected:_e,itemSelectedColor:_e,colorItemTextSelectedHorizontal:_e,horizontalItemSelectedColor:_e,colorItemBg:tt,itemBg:tt,colorItemBgHover:an,itemHoverBg:an,colorItemBgActive:pn,itemActiveBg:hn,colorSubItemBg:Et,subMenuItemBg:Et,colorItemBgSelected:hn,itemSelectedBg:hn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Kt,activeBarHeight:Kt,colorActiveBarBorderSize:nn,activeBarBorderWidth:nn,colorItemTextDisabled:$e,itemDisabledColor:$e,colorDangerItemText:It,dangerItemColor:It,colorDangerItemTextHover:It,dangerItemHoverColor:It,colorDangerItemTextSelected:It,dangerItemSelectedColor:It,colorDangerItemBgActive:Pe,dangerItemActiveBg:Pe,colorDangerItemBgSelected:Pe,dangerItemSelectedBg:Pe,itemMarginInline:T.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:et,groupTitleLineHeight:zt,collapsedWidth:et*2,popupBg:dn,itemMarginBlock:rn,itemPaddingInline:ze,horizontalLineHeight:`${et*1.15}px`,iconSize:Un,iconMarginInlineEnd:yn-Un,collapsedIconSize:Bt,groupTitleFontSize:Un,darkItemDisabledColor:new Je.C(Si).setAlpha(.25).toRgbString(),darkItemColor:Ii,darkDangerItemColor:It,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Si,darkItemSelectedBg:_e,darkDangerItemSelectedBg:It,darkItemHoverBg:"transparent",darkGroupTitleColor:Ii,darkItemHoverColor:Si,darkDangerItemHoverColor:_i,darkDangerItemSelectedColor:Si,darkDangerItemActiveBg:It}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(k),Jn=function(k,j){var Q={};for(var T in k)Object.prototype.hasOwnProperty.call(k,T)&&j.indexOf(T)<0&&(Q[T]=k[T]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,T=Object.getOwnPropertySymbols(k);_e<T.length;_e++)j.indexOf(T[_e])<0&&Object.prototype.propertyIsEnumerable.call(k,T[_e])&&(Q[T[_e]]=k[T[_e]]);return Q},In=(0,I.forwardRef)((k,j)=>{var Q,T;const _e=I.useContext(ee.Z),It=_e||{},{getPrefixCls:$e,getPopupContainer:Pe,direction:vt,menu:ut}=I.useContext(F.E_),tt=$e(),{prefixCls:Et,className:pn,style:nn,theme:Kt="light",expandIcon:hn,_internalDisableMenuItemTitleTooltip:an,inlineCollapsed:et,siderCollapsed:zt,items:dn,children:rn,rootClassName:ze,mode:Un,selectable:yn,onClick:Bt,overflowedIndicatorPopupClassName:Si}=k,_i=Jn(k,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Ii=(0,Ne.Z)(_i,["collapsedWidth"]),cn=Le(dn)||rn;(Q=It.validator)===null||Q===void 0||Q.call(It,{mode:Un});const fr=(0,pe.useEvent)(function(){var kr;Bt==null||Bt.apply(void 0,arguments),(kr=It.onClick)===null||kr===void 0||kr.call(It)}),Xi=It.mode||Un,ei=yn!=null?yn:It.selectable,Tr=I.useMemo(()=>zt!==void 0?zt:et,[et,zt]),ur={horizontal:{motionName:`${tt}-slide-up`},inline:(0,ke.Z)(tt),other:{motionName:`${tt}-zoom-big`}},U=$e("menu",Et||It.prefixCls),[mr,Er]=ni(U,!_e),wr=G()(`${U}-${Kt}`,ut==null?void 0:ut.className,pn);let qr;if(typeof hn=="function")qr=hn;else if(hn===null||hn===!1)qr=null;else if(It.expandIcon===null||It.expandIcon===!1)qr=null;else{const kr=hn!=null?hn:It.expandIcon;qr=(0,Xe.Tm)(kr,{className:G()(`${U}-submenu-expand-icon`,(0,Xe.l$)(kr)?(T=kr.props)===null||T===void 0?void 0:T.className:"")})}const xo=I.useMemo(()=>({prefixCls:U,inlineCollapsed:Tr||!1,direction:vt,firstLevel:!0,theme:Kt,mode:Xi,disableMenuItemTitleTooltip:an}),[U,Tr,vt,an,Kt]);return mr(I.createElement(ee.Z.Provider,{value:null},I.createElement(Ce.Provider,{value:xo},I.createElement(v.ZP,Object.assign({getPopupContainer:Pe,overflowedIndicator:I.createElement(ye.Z,null),overflowedIndicatorPopupClassName:G()(U,`${U}-${Kt}`,Si),mode:Xi,selectable:ei,onClick:fr},Ii,{inlineCollapsed:Tr,style:Object.assign(Object.assign({},ut==null?void 0:ut.style),nn),className:wr,prefixCls:U,direction:vt,defaultMotions:ur,expandIcon:qr,ref:j,rootClassName:G()(ze,Er)}),cn))))});const re=(0,I.forwardRef)((k,j)=>{const Q=(0,I.useRef)(null),T=I.useContext(O.D);return(0,I.useImperativeHandle)(j,()=>({menu:Q.current,focus:_e=>{var It;(It=Q.current)===null||It===void 0||It.focus(_e)}})),I.createElement(In,Object.assign({ref:Q},k,T))});re.Item=Re,re.SubMenu=me,re.Divider=ae,re.ItemGroup=v.BW;var z=re},58421:function(X,C,h){"use strict";h.d(C,{Z:function(){return It}});var v=h(96663),I=h(59301),O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},B=O,G=h(7657),F=function(Pe,vt){return I.createElement(G.Z,(0,v.Z)({},Pe,{ref:vt,icon:B}))},M=I.forwardRef(F),de=M,ae=h(49198),te=h(33853),Ne=h(38819),Ee=h(92310),Xe=h.n(Ee),Oe=h(90493),Ce=h(44127),Ie=h(52884),Re=h(95727),fe=h(65711),me=h(85745),ye=h(26112),pe={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},ke=pe,ee=h(91735),Te=function($e){(0,fe.Z)(vt,$e);var Pe=(0,me.Z)(vt);function vt(){var ut;(0,Ie.Z)(this,vt);for(var tt=arguments.length,Et=new Array(tt),pn=0;pn<tt;pn++)Et[pn]=arguments[pn];return ut=Pe.call.apply(Pe,[this].concat(Et)),ut.state={goInputText:""},ut.getValidValue=function(){var nn=ut.state.goInputText;return!nn||Number.isNaN(nn)?void 0:Number(nn)},ut.buildOptionText=function(nn){return"".concat(nn," ").concat(ut.props.locale.items_per_page)},ut.changeSize=function(nn){ut.props.changeSize(Number(nn))},ut.handleChange=function(nn){ut.setState({goInputText:nn.target.value})},ut.handleBlur=function(nn){var Kt=ut.props,hn=Kt.goButton,an=Kt.quickGo,et=Kt.rootPrefixCls,zt=ut.state.goInputText;hn||zt===""||(ut.setState({goInputText:""}),!(nn.relatedTarget&&(nn.relatedTarget.className.indexOf("".concat(et,"-item-link"))>=0||nn.relatedTarget.className.indexOf("".concat(et,"-item"))>=0))&&an(ut.getValidValue()))},ut.go=function(nn){var Kt=ut.state.goInputText;Kt!==""&&(nn.keyCode===ke.ENTER||nn.type==="click")&&(ut.setState({goInputText:""}),ut.props.quickGo(ut.getValidValue()))},ut}return(0,Re.Z)(vt,[{key:"getPageSizeOptions",value:function(){var tt=this.props,Et=tt.pageSize,pn=tt.pageSizeOptions;return pn.some(function(nn){return nn.toString()===Et.toString()})?pn:pn.concat([Et.toString()]).sort(function(nn,Kt){var hn=Number.isNaN(Number(nn))?0:Number(nn),an=Number.isNaN(Number(Kt))?0:Number(Kt);return hn-an})}},{key:"render",value:function(){var tt=this,Et=this.props,pn=Et.pageSize,nn=Et.locale,Kt=Et.rootPrefixCls,hn=Et.changeSize,an=Et.quickGo,et=Et.goButton,zt=Et.selectComponentClass,dn=Et.buildOptionText,rn=Et.selectPrefixCls,ze=Et.disabled,Un=this.state.goInputText,yn="".concat(Kt,"-options"),Bt=zt,Si=null,_i=null,Ii=null;if(!hn&&!an)return null;var cn=this.getPageSizeOptions();if(hn&&Bt){var fr=cn.map(function(Xi,ei){return I.createElement(Bt.Option,{key:ei,value:Xi.toString()},(dn||tt.buildOptionText)(Xi))});Si=I.createElement(Bt,{disabled:ze,prefixCls:rn,showSearch:!1,className:"".concat(yn,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(pn||cn[0]).toString(),onChange:this.changeSize,getPopupContainer:function(ei){return ei.parentNode},"aria-label":nn.page_size,defaultOpen:!1},fr)}return an&&(et&&(Ii=typeof et=="boolean"?I.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:ze,className:"".concat(yn,"-quick-jumper-button")},nn.jump_to_confirm):I.createElement("span",{onClick:this.go,onKeyUp:this.go},et)),_i=I.createElement("div",{className:"".concat(yn,"-quick-jumper")},nn.jump_to,I.createElement("input",{disabled:ze,type:"text",value:Un,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":nn.page}),nn.page,Ii)),I.createElement("li",{className:"".concat(yn)},Si,_i)}}]),vt}(I.Component);Te.defaultProps={pageSizeOptions:["10","20","50","100"]};var Me=Te,Le=function(Pe){var vt,ut=Pe.rootPrefixCls,tt=Pe.page,Et=Pe.active,pn=Pe.className,nn=Pe.showTitle,Kt=Pe.onClick,hn=Pe.onKeyPress,an=Pe.itemRender,et="".concat(ut,"-item"),zt=Xe()(et,"".concat(et,"-").concat(tt),(vt={},(0,Oe.Z)(vt,"".concat(et,"-active"),Et),(0,Oe.Z)(vt,"".concat(et,"-disabled"),!tt),(0,Oe.Z)(vt,Pe.className,pn),vt)),dn=function(){Kt(tt)},rn=function(yn){hn(yn,Kt,tt)},ze=an(tt,"page",I.createElement("a",{rel:"nofollow"},tt));return ze?I.createElement("li",{title:nn?tt.toString():null,className:zt,onClick:dn,onKeyPress:rn,tabIndex:0},ze):null},Je=Le;function Ye(){}function ne($e){var Pe=Number($e);return typeof Pe=="number"&&!Number.isNaN(Pe)&&isFinite(Pe)&&Math.floor(Pe)===Pe}var at=function(Pe,vt,ut){return ut};function Ge($e,Pe,vt){var ut=typeof $e=="undefined"?Pe.pageSize:$e;return Math.floor((vt.total-1)/ut)+1}var Pt=function($e){(0,fe.Z)(vt,$e);var Pe=(0,me.Z)(vt);function vt(ut){var tt;(0,Ie.Z)(this,vt),tt=Pe.call(this,ut),tt.paginationNode=I.createRef(),tt.getJumpPrevPage=function(){return Math.max(1,tt.state.current-(tt.props.showLessItems?3:5))},tt.getJumpNextPage=function(){return Math.min(Ge(void 0,tt.state,tt.props),tt.state.current+(tt.props.showLessItems?3:5))},tt.getItemIcon=function(hn,an){var et=tt.props.prefixCls,zt=hn||I.createElement("button",{type:"button","aria-label":an,className:"".concat(et,"-item-link")});return typeof hn=="function"&&(zt=I.createElement(hn,(0,Ce.Z)({},tt.props))),zt},tt.isValid=function(hn){var an=tt.props.total;return ne(hn)&&hn!==tt.state.current&&ne(an)&&an>0},tt.shouldDisplayQuickJumper=function(){var hn=tt.props,an=hn.showQuickJumper,et=hn.total,zt=tt.state.pageSize;return et<=zt?!1:an},tt.handleKeyDown=function(hn){(hn.keyCode===ke.ARROW_UP||hn.keyCode===ke.ARROW_DOWN)&&hn.preventDefault()},tt.handleKeyUp=function(hn){var an=tt.getValidValue(hn),et=tt.state.currentInputValue;an!==et&&tt.setState({currentInputValue:an}),hn.keyCode===ke.ENTER?tt.handleChange(an):hn.keyCode===ke.ARROW_UP?tt.handleChange(an-1):hn.keyCode===ke.ARROW_DOWN&&tt.handleChange(an+1)},tt.handleBlur=function(hn){var an=tt.getValidValue(hn);tt.handleChange(an)},tt.changePageSize=function(hn){var an=tt.state.current,et=Ge(hn,tt.state,tt.props);an=an>et?et:an,et===0&&(an=tt.state.current),typeof hn=="number"&&("pageSize"in tt.props||tt.setState({pageSize:hn}),"current"in tt.props||tt.setState({current:an,currentInputValue:an})),tt.props.onShowSizeChange(an,hn),"onChange"in tt.props&&tt.props.onChange&&tt.props.onChange(an,hn)},tt.handleChange=function(hn){var an=tt.props,et=an.disabled,zt=an.onChange,dn=tt.state,rn=dn.pageSize,ze=dn.current,Un=dn.currentInputValue;if(tt.isValid(hn)&&!et){var yn=Ge(void 0,tt.state,tt.props),Bt=hn;return hn>yn?Bt=yn:hn<1&&(Bt=1),"current"in tt.props||tt.setState({current:Bt}),Bt!==Un&&tt.setState({currentInputValue:Bt}),zt(Bt,rn),Bt}return ze},tt.prev=function(){tt.hasPrev()&&tt.handleChange(tt.state.current-1)},tt.next=function(){tt.hasNext()&&tt.handleChange(tt.state.current+1)},tt.jumpPrev=function(){tt.handleChange(tt.getJumpPrevPage())},tt.jumpNext=function(){tt.handleChange(tt.getJumpNextPage())},tt.hasPrev=function(){return tt.state.current>1},tt.hasNext=function(){return tt.state.current<Ge(void 0,tt.state,tt.props)},tt.runIfEnter=function(hn,an){if(hn.key==="Enter"||hn.charCode===13){for(var et=arguments.length,zt=new Array(et>2?et-2:0),dn=2;dn<et;dn++)zt[dn-2]=arguments[dn];an.apply(void 0,zt)}},tt.runIfEnterPrev=function(hn){tt.runIfEnter(hn,tt.prev)},tt.runIfEnterNext=function(hn){tt.runIfEnter(hn,tt.next)},tt.runIfEnterJumpPrev=function(hn){tt.runIfEnter(hn,tt.jumpPrev)},tt.runIfEnterJumpNext=function(hn){tt.runIfEnter(hn,tt.jumpNext)},tt.handleGoTO=function(hn){(hn.keyCode===ke.ENTER||hn.type==="click")&&tt.handleChange(tt.state.currentInputValue)},tt.renderPrev=function(hn){var an=tt.props,et=an.prevIcon,zt=an.itemRender,dn=zt(hn,"prev",tt.getItemIcon(et,"prev page")),rn=!tt.hasPrev();return(0,I.isValidElement)(dn)?(0,I.cloneElement)(dn,{disabled:rn}):dn},tt.renderNext=function(hn){var an=tt.props,et=an.nextIcon,zt=an.itemRender,dn=zt(hn,"next",tt.getItemIcon(et,"next page")),rn=!tt.hasNext();return(0,I.isValidElement)(dn)?(0,I.cloneElement)(dn,{disabled:rn}):dn};var Et=ut.onChange!==Ye,pn="current"in ut;pn&&!Et&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var nn=ut.defaultCurrent;"current"in ut&&(nn=ut.current);var Kt=ut.defaultPageSize;return"pageSize"in ut&&(Kt=ut.pageSize),nn=Math.min(nn,Ge(Kt,void 0,ut)),tt.state={current:nn,currentInputValue:nn,pageSize:Kt},tt}return(0,Re.Z)(vt,[{key:"componentDidUpdate",value:function(tt,Et){var pn=this.props.prefixCls;if(Et.current!==this.state.current&&this.paginationNode.current){var nn=this.paginationNode.current.querySelector(".".concat(pn,"-item-").concat(Et.current));if(nn&&document.activeElement===nn){var Kt;nn==null||(Kt=nn.blur)===null||Kt===void 0||Kt.call(nn)}}}},{key:"getValidValue",value:function(tt){var Et=tt.target.value,pn=Ge(void 0,this.state,this.props),nn=this.state.currentInputValue,Kt;return Et===""?Kt=Et:Number.isNaN(Number(Et))?Kt=nn:Et>=pn?Kt=pn:Kt=Number(Et),Kt}},{key:"getShowSizeChanger",value:function(){var tt=this.props,Et=tt.showSizeChanger,pn=tt.total,nn=tt.totalBoundaryShowSizeChanger;return typeof Et!="undefined"?Et:pn>nn}},{key:"render",value:function(){var tt=this.props,Et=tt.prefixCls,pn=tt.className,nn=tt.style,Kt=tt.disabled,hn=tt.hideOnSinglePage,an=tt.total,et=tt.locale,zt=tt.showQuickJumper,dn=tt.showLessItems,rn=tt.showTitle,ze=tt.showTotal,Un=tt.simple,yn=tt.itemRender,Bt=tt.showPrevNextJumpers,Si=tt.jumpPrevIcon,_i=tt.jumpNextIcon,Ii=tt.selectComponentClass,cn=tt.selectPrefixCls,fr=tt.pageSizeOptions,Xi=this.state,ei=Xi.current,Tr=Xi.pageSize,ur=Xi.currentInputValue;if(hn===!0&&an<=Tr)return null;var U=Ge(void 0,this.state,this.props),mr=[],Er=null,wr=null,qr=null,xo=null,kr=null,no=zt&&zt.goButton,rr=dn?1:2,Bi=ei-1>0?ei-1:0,yi=ei+1<U?ei+1:U,ht=(0,ye.Z)(this.props,{aria:!0,data:!0}),_n=ze&&I.createElement("li",{className:"".concat(Et,"-total-text")},ze(an,[an===0?0:(ei-1)*Tr+1,ei*Tr>an?an:ei*Tr]));if(Un){no&&(typeof no=="boolean"?kr=I.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},et.jump_to_confirm):kr=I.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},no),kr=I.createElement("li",{title:rn?"".concat(et.jump_to).concat(ei,"/").concat(U):null,className:"".concat(Et,"-simple-pager")},kr));var Vn=this.renderPrev(Bi);return I.createElement("ul",(0,v.Z)({className:Xe()(Et,"".concat(Et,"-simple"),(0,Oe.Z)({},"".concat(Et,"-disabled"),Kt),pn),style:nn,ref:this.paginationNode},ht),_n,Vn?I.createElement("li",{title:rn?et.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Xe()("".concat(Et,"-prev"),(0,Oe.Z)({},"".concat(Et,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Vn):null,I.createElement("li",{title:rn?"".concat(ei,"/").concat(U):null,className:"".concat(Et,"-simple-pager")},I.createElement("input",{type:"text",value:ur,disabled:Kt,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),I.createElement("span",{className:"".concat(Et,"-slash")},"/"),U),I.createElement("li",{title:rn?et.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Xe()("".concat(Et,"-next"),(0,Oe.Z)({},"".concat(Et,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(yi)),kr)}if(U<=3+rr*2){var pt={locale:et,rootPrefixCls:Et,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:rn,itemRender:yn};U||mr.push(I.createElement(Je,(0,v.Z)({},pt,{key:"noPager",page:1,className:"".concat(Et,"-item-disabled")})));for(var Ke=1;Ke<=U;Ke+=1){var vn=ei===Ke;mr.push(I.createElement(Je,(0,v.Z)({},pt,{key:Ke,page:Ke,active:vn})))}}else{var Fn=dn?et.prev_3:et.prev_5,on=dn?et.next_3:et.next_5,Nt=yn(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Si,"prev page")),Ve=yn(this.getJumpNextPage(),"jump-next",this.getItemIcon(_i,"next page"));Bt&&(Er=Nt?I.createElement("li",{title:rn?Fn:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:Xe()("".concat(Et,"-jump-prev"),(0,Oe.Z)({},"".concat(Et,"-jump-prev-custom-icon"),!!Si))},Nt):null,wr=Ve?I.createElement("li",{title:rn?on:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Xe()("".concat(Et,"-jump-next"),(0,Oe.Z)({},"".concat(Et,"-jump-next-custom-icon"),!!_i))},Ve):null),xo=I.createElement(Je,{locale:et,last:!0,rootPrefixCls:Et,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:U,page:U,active:!1,showTitle:rn,itemRender:yn}),qr=I.createElement(Je,{locale:et,rootPrefixCls:Et,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:rn,itemRender:yn});var Ut=Math.max(1,ei-rr),Lt=Math.min(ei+rr,U);ei-1<=rr&&(Lt=1+rr*2),U-ei<=rr&&(Ut=U-rr*2);for(var Wn=Ut;Wn<=Lt;Wn+=1){var ot=ei===Wn;mr.push(I.createElement(Je,{locale:et,rootPrefixCls:Et,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Wn,page:Wn,active:ot,showTitle:rn,itemRender:yn}))}ei-1>=rr*2&&ei!==3&&(mr[0]=(0,I.cloneElement)(mr[0],{className:"".concat(Et,"-item-after-jump-prev")}),mr.unshift(Er)),U-ei>=rr*2&&ei!==U-2&&(mr[mr.length-1]=(0,I.cloneElement)(mr[mr.length-1],{className:"".concat(Et,"-item-before-jump-next")}),mr.push(wr)),Ut!==1&&mr.unshift(qr),Lt!==U&&mr.push(xo)}var fn=!this.hasPrev()||!U,yt=!this.hasNext()||!U,je=this.renderPrev(Bi),L=this.renderNext(yi);return I.createElement("ul",(0,v.Z)({className:Xe()(Et,pn,(0,Oe.Z)({},"".concat(Et,"-disabled"),Kt)),style:nn,ref:this.paginationNode},ht),_n,je?I.createElement("li",{title:rn?et.prev_page:null,onClick:this.prev,tabIndex:fn?null:0,onKeyPress:this.runIfEnterPrev,className:Xe()("".concat(Et,"-prev"),(0,Oe.Z)({},"".concat(Et,"-disabled"),fn)),"aria-disabled":fn},je):null,mr,L?I.createElement("li",{title:rn?et.next_page:null,onClick:this.next,tabIndex:yt?null:0,onKeyPress:this.runIfEnterNext,className:Xe()("".concat(Et,"-next"),(0,Oe.Z)({},"".concat(Et,"-disabled"),yt)),"aria-disabled":yt},L):null,I.createElement(Me,{disabled:Kt,locale:et,rootPrefixCls:Et,selectComponentClass:Ii,selectPrefixCls:cn,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:ei,pageSize:Tr,pageSizeOptions:fr,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:no}))}}],[{key:"getDerivedStateFromProps",value:function(tt,Et){var pn={};if("current"in tt&&(pn.current=tt.current,tt.current!==Et.current&&(pn.currentInputValue=pn.current)),"pageSize"in tt&&tt.pageSize!==Et.pageSize){var nn=Et.current,Kt=Ge(tt.pageSize,Et,tt);nn=nn>Kt?Kt:nn,"current"in tt||(pn.current=nn,pn.currentInputValue=nn),pn.pageSize=tt.pageSize}return pn}}]),vt}(I.Component);Pt.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Ye,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Ye,locale:ee.Z,style:{},itemRender:at,totalBoundaryShowSizeChanger:50};var gt=Pt,kt=h(22075),Ct=h(36355),Cn=h(19716),Qe=h(8628),le=h(9763),ce=h(57809);const Ht=$e=>I.createElement(ce.default,Object.assign({},$e,{showSearch:!0,size:"small"})),Vt=$e=>I.createElement(ce.default,Object.assign({},$e,{showSearch:!0,size:"middle"}));Ht.Option=ce.default.Option,Vt.Option=ce.default.Option;var St=h(9937),sn=h(17313),Ft=h(83116),oi=h(37613);const On=$e=>{const{componentCls:Pe}=$e;return{[`${Pe}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Pe}-item-link`]:{color:$e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Pe}-item-link`]:{color:$e.colorTextDisabled,cursor:"not-allowed"}}},[`&${Pe}-disabled`]:{cursor:"not-allowed",[`${Pe}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:$e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:$e.colorBorder,backgroundColor:$e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:$e.itemActiveBgDisabled},a:{color:$e.itemActiveColorDisabled}}},[`${Pe}-item-link`]:{color:$e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Pe}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Pe}-simple-pager`]:{color:$e.colorTextDisabled},[`${Pe}-jump-prev, ${Pe}-jump-next`]:{[`${Pe}-item-link-icon`]:{opacity:0},[`${Pe}-item-ellipsis`]:{opacity:1}}},[`&${Pe}-simple`]:{[`${Pe}-prev, ${Pe}-next`]:{[`&${Pe}-disabled ${Pe}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},ni=$e=>{const{componentCls:Pe}=$e;return{[`&${Pe}-mini ${Pe}-total-text, &${Pe}-mini ${Pe}-simple-pager`]:{height:$e.itemSizeSM,lineHeight:`${$e.itemSizeSM}px`},[`&${Pe}-mini ${Pe}-item`]:{minWidth:$e.itemSizeSM,height:$e.itemSizeSM,margin:0,lineHeight:`${$e.itemSizeSM-2}px`},[`&${Pe}-mini:not(${Pe}-disabled) ${Pe}-item:not(${Pe}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:$e.colorBgTextHover},"&:active":{backgroundColor:$e.colorBgTextActive}},[`&${Pe}-mini ${Pe}-prev, &${Pe}-mini ${Pe}-next`]:{minWidth:$e.itemSizeSM,height:$e.itemSizeSM,margin:0,lineHeight:`${$e.itemSizeSM}px`},[`&${Pe}-mini:not(${Pe}-disabled)`]:{[`${Pe}-prev, ${Pe}-next`]:{[`&:hover ${Pe}-item-link`]:{backgroundColor:$e.colorBgTextHover},[`&:active ${Pe}-item-link`]:{backgroundColor:$e.colorBgTextActive},[`&${Pe}-disabled:hover ${Pe}-item-link`]:{backgroundColor:"transparent"}}},[`
&${Pe}-mini ${Pe}-prev ${Pe}-item-link,
&${Pe}-mini ${Pe}-next ${Pe}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:$e.itemSizeSM,lineHeight:`${$e.itemSizeSM}px`}},[`&${Pe}-mini ${Pe}-jump-prev, &${Pe}-mini ${Pe}-jump-next`]:{height:$e.itemSizeSM,marginInlineEnd:0,lineHeight:`${$e.itemSizeSM}px`},[`&${Pe}-mini ${Pe}-options`]:{marginInlineStart:$e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:$e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:$e.itemSizeSM,lineHeight:`${$e.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,St.x0)($e)),{width:$e.paginationMiniQuickJumperInputWidth,height:$e.controlHeightSM})}}}},Jn=$e=>{const{componentCls:Pe}=$e;return{[`
&${Pe}-simple ${Pe}-prev,
&${Pe}-simple ${Pe}-next
`]:{height:$e.itemSizeSM,lineHeight:`${$e.itemSizeSM}px`,verticalAlign:"top",[`${Pe}-item-link`]:{height:$e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:$e.colorBgTextHover},"&:active":{backgroundColor:$e.colorBgTextActive},"&::after":{height:$e.itemSizeSM,lineHeight:`${$e.itemSizeSM}px`}}},[`&${Pe}-simple ${Pe}-simple-pager`]:{display:"inline-block",height:$e.itemSizeSM,marginInlineEnd:$e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:$e.marginXS,padding:`0 ${$e.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:$e.itemInputBg,border:`${$e.lineWidth}px ${$e.lineType} ${$e.colorBorder}`,borderRadius:$e.borderRadius,outline:"none",transition:`border-color ${$e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:$e.colorPrimary},"&:focus":{borderColor:$e.colorPrimaryHover,boxShadow:`${$e.inputOutlineOffset}px 0 ${$e.controlOutlineWidth}px ${$e.controlOutline}`},"&[disabled]":{color:$e.colorTextDisabled,backgroundColor:$e.colorBgContainerDisabled,borderColor:$e.colorBorder,cursor:"not-allowed"}}}}},Mn=$e=>{const{componentCls:Pe}=$e;return{[`${Pe}-jump-prev, ${Pe}-jump-next`]:{outline:0,[`${Pe}-item-container`]:{position:"relative",[`${Pe}-item-link-icon`]:{color:$e.colorPrimary,fontSize:$e.fontSizeSM,opacity:0,transition:`all ${$e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Pe}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:$e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:$e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:$e.paginationEllipsisTextIndent,opacity:1,transition:`all ${$e.motionDurationMid}`}},"&:hover":{[`${Pe}-item-link-icon`]:{opacity:1},[`${Pe}-item-ellipsis`]:{opacity:0}}},[`
${Pe}-prev,
${Pe}-jump-prev,
${Pe}-jump-next
`]:{marginInlineEnd:$e.marginXS},[`
${Pe}-prev,
${Pe}-next,
${Pe}-jump-prev,
${Pe}-jump-next
`]:{display:"inline-block",minWidth:$e.itemSize,height:$e.itemSize,color:$e.colorText,fontFamily:$e.fontFamily,lineHeight:`${$e.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:$e.borderRadius,cursor:"pointer",transition:`all ${$e.motionDurationMid}`},[`${Pe}-prev, ${Pe}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:$e.colorText,cursor:"pointer",userSelect:"none"},[`${Pe}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:$e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${$e.lineWidth}px ${$e.lineType} transparent`,borderRadius:$e.borderRadius,outline:"none",transition:`all ${$e.motionDurationMid}`},[`&:hover ${Pe}-item-link`]:{backgroundColor:$e.colorBgTextHover},[`&:active ${Pe}-item-link`]:{backgroundColor:$e.colorBgTextActive},[`&${Pe}-disabled:hover`]:{[`${Pe}-item-link`]:{backgroundColor:"transparent"}}},[`${Pe}-slash`]:{marginInlineEnd:$e.paginationSlashMarginInlineEnd,marginInlineStart:$e.paginationSlashMarginInlineStart},[`${Pe}-options`]:{display:"inline-block",marginInlineStart:$e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:$e.controlHeight,marginInlineStart:$e.marginXS,lineHeight:`${$e.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,St.ik)($e)),{width:$e.controlHeightLG*1.25,height:$e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:$e.marginXS,marginInlineEnd:$e.marginXS})}}}},In=$e=>{const{componentCls:Pe}=$e;return{[`${Pe}-item`]:{display:"inline-block",minWidth:$e.itemSize,height:$e.itemSize,marginInlineEnd:$e.marginXS,fontFamily:$e.fontFamily,lineHeight:`${$e.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${$e.lineWidth}px ${$e.lineType} transparent`,borderRadius:$e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${$e.paginationItemPaddingInline}px`,color:$e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Pe}-item-active)`]:{"&:hover":{transition:`all ${$e.motionDurationMid}`,backgroundColor:$e.colorBgTextHover},"&:active":{backgroundColor:$e.colorBgTextActive}},"&-active":{fontWeight:$e.fontWeightStrong,backgroundColor:$e.itemActiveBg,borderColor:$e.colorPrimary,a:{color:$e.colorPrimary},"&:hover":{borderColor:$e.colorPrimaryHover},"&:hover a":{color:$e.colorPrimaryHover}}}}},re=$e=>{const{componentCls:Pe}=$e;return{[Pe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,sn.Wf)($e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Pe}-total-text`]:{display:"inline-block",height:$e.itemSize,marginInlineEnd:$e.marginXS,lineHeight:`${$e.itemSize-2}px`,verticalAlign:"middle"}}),In($e)),Mn($e)),Jn($e)),ni($e)),On($e)),{[`@media only screen and (max-width: ${$e.screenLG}px)`]:{[`${Pe}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${$e.screenSM}px)`]:{[`${Pe}-options`]:{display:"none"}}}),[`&${$e.componentCls}-rtl`]:{direction:"rtl"}}},z=$e=>{const{componentCls:Pe}=$e;return{[`${Pe}${Pe}-disabled:not(${Pe}-mini)`]:{"&, &:hover":{[`${Pe}-item-link`]:{borderColor:$e.colorBorder}},"&:focus-visible":{[`${Pe}-item-link`]:{borderColor:$e.colorBorder}},[`${Pe}-item, ${Pe}-item-link`]:{backgroundColor:$e.colorBgContainerDisabled,borderColor:$e.colorBorder,[`&:hover:not(${Pe}-item-active)`]:{backgroundColor:$e.colorBgContainerDisabled,borderColor:$e.colorBorder,a:{color:$e.colorTextDisabled}},[`&${Pe}-item-active`]:{backgroundColor:$e.itemActiveBgDisabled}},[`${Pe}-prev, ${Pe}-next`]:{"&:hover button":{backgroundColor:$e.colorBgContainerDisabled,borderColor:$e.colorBorder,color:$e.colorTextDisabled},[`${Pe}-item-link`]:{backgroundColor:$e.colorBgContainerDisabled,borderColor:$e.colorBorder}}},[`${Pe}:not(${Pe}-mini)`]:{[`${Pe}-prev, ${Pe}-next`]:{"&:hover button":{borderColor:$e.colorPrimaryHover,backgroundColor:$e.itemBg},[`${Pe}-item-link`]:{backgroundColor:$e.itemLinkBg,borderColor:$e.colorBorder},[`&:hover ${Pe}-item-link`]:{borderColor:$e.colorPrimary,backgroundColor:$e.itemBg,color:$e.colorPrimary},[`&${Pe}-disabled`]:{[`${Pe}-item-link`]:{borderColor:$e.colorBorder,color:$e.colorTextDisabled}}},[`${Pe}-item`]:{backgroundColor:$e.itemBg,border:`${$e.lineWidth}px ${$e.lineType} ${$e.colorBorder}`,[`&:hover:not(${Pe}-item-active)`]:{borderColor:$e.colorPrimary,backgroundColor:$e.itemBg,a:{color:$e.colorPrimary}},"&-active":{borderColor:$e.colorPrimary}}}}},k=$e=>{const{componentCls:Pe}=$e;return{[`${Pe}:not(${Pe}-disabled)`]:{[`${Pe}-item`]:Object.assign({},(0,sn.Qy)($e)),[`${Pe}-jump-prev, ${Pe}-jump-next`]:{"&:focus-visible":Object.assign({[`${Pe}-item-link-icon`]:{opacity:1},[`${Pe}-item-ellipsis`]:{opacity:0}},(0,sn.oN)($e))},[`${Pe}-prev, ${Pe}-next`]:{[`&:focus-visible ${Pe}-item-link`]:Object.assign({},(0,sn.oN)($e))}}}};var j=(0,Ft.Z)("Pagination",$e=>{const Pe=(0,oi.TS)($e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:$e.marginXXS/2,paginationMiniQuickJumperInputWidth:$e.controlHeightLG*1.1,paginationItemPaddingInline:$e.marginXXS*1.5,paginationEllipsisLetterSpacing:$e.marginXXS/2,paginationSlashMarginInlineStart:$e.marginXXS,paginationSlashMarginInlineEnd:$e.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,St.e5)($e),(0,St.TM)($e));return[re(Pe),k(Pe),$e.wireframe&&z(Pe)]},$e=>({itemBg:$e.colorBgContainer,itemSize:$e.controlHeight,itemSizeSM:$e.controlHeightSM,itemActiveBg:$e.colorBgContainer,itemLinkBg:$e.colorBgContainer,itemActiveColorDisabled:$e.colorTextDisabled,itemActiveBgDisabled:$e.controlItemBgActiveDisabled,itemInputBg:$e.colorBgContainer,miniOptionsSizeChangerTop:0})),Q=function($e,Pe){var vt={};for(var ut in $e)Object.prototype.hasOwnProperty.call($e,ut)&&Pe.indexOf(ut)<0&&(vt[ut]=$e[ut]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,ut=Object.getOwnPropertySymbols($e);tt<ut.length;tt++)Pe.indexOf(ut[tt])<0&&Object.prototype.propertyIsEnumerable.call($e,ut[tt])&&(vt[ut[tt]]=$e[ut[tt]]);return vt},_e=$e=>{const{prefixCls:Pe,selectPrefixCls:vt,className:ut,rootClassName:tt,style:Et,size:pn,locale:nn,selectComponentClass:Kt,responsive:hn,showSizeChanger:an}=$e,et=Q($e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:zt}=(0,Qe.Z)(hn),{getPrefixCls:dn,direction:rn,pagination:ze={}}=I.useContext(Ct.E_),Un=dn("pagination",Pe),[yn,Bt]=j(Un),Si=an!=null?an:ze.showSizeChanger,_i=I.useMemo(()=>{const U=I.createElement("span",{className:`${Un}-item-ellipsis`},"\u2022\u2022\u2022"),mr=I.createElement("button",{className:`${Un}-item-link`,type:"button",tabIndex:-1},rn==="rtl"?I.createElement(Ne.Z,null):I.createElement(te.Z,null)),Er=I.createElement("button",{className:`${Un}-item-link`,type:"button",tabIndex:-1},rn==="rtl"?I.createElement(te.Z,null):I.createElement(Ne.Z,null)),wr=I.createElement("a",{className:`${Un}-item-link`},I.createElement("div",{className:`${Un}-item-container`},rn==="rtl"?I.createElement(ae.Z,{className:`${Un}-item-link-icon`}):I.createElement(de,{className:`${Un}-item-link-icon`}),U)),qr=I.createElement("a",{className:`${Un}-item-link`},I.createElement("div",{className:`${Un}-item-container`},rn==="rtl"?I.createElement(de,{className:`${Un}-item-link-icon`}):I.createElement(ae.Z,{className:`${Un}-item-link-icon`}),U));return{prevIcon:mr,nextIcon:Er,jumpPrevIcon:wr,jumpNextIcon:qr}},[rn,Un]),[Ii]=(0,le.Z)("Pagination",kt.Z),cn=Object.assign(Object.assign({},Ii),nn),fr=(0,Cn.Z)(pn),Xi=fr==="small"||!!(zt&&!fr&&hn),ei=dn("select",vt),Tr=Xe()({[`${Un}-mini`]:Xi,[`${Un}-rtl`]:rn==="rtl"},ze==null?void 0:ze.className,ut,tt,Bt),ur=Object.assign(Object.assign({},ze==null?void 0:ze.style),Et);return yn(I.createElement(gt,Object.assign({},_i,et,{style:ur,prefixCls:Un,selectPrefixCls:ei,className:Tr,selectComponentClass:Kt||(Xi?Ht:Vt),locale:cn,showSizeChanger:Si})))},It=_e},14478:function(X,C,h){"use strict";h.d(C,{Z:function(){return Je}});var v=h(96512),I=h(92310),O=h.n(I),B=h(10228),G=h(18929),F=h(2738),M=h(59301),de=h(92343),ae=h(36355),te=h(60324),Ne=h(92806),Ee=h(77578),Xe=h(3113),Oe=h(67797),Ce=h(9763),Ie=h(31724),Re=h(39722),fe=h(83116);const me=Ye=>{const{componentCls:ne,iconCls:at,antCls:Ge,zIndexPopup:Pt,colorText:gt,colorWarning:kt,marginXXS:Ct,marginXS:Cn,fontSize:Qe,fontWeightStrong:le,colorTextHeading:ce}=Ye;return{[ne]:{zIndex:Pt,[`&${Ge}-popover`]:{fontSize:Qe},[`${ne}-message`]:{marginBottom:Cn,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${ne}-message-icon ${at}`]:{color:kt,fontSize:Qe,lineHeight:1,marginInlineEnd:Cn},[`${ne}-title`]:{fontWeight:le,color:ce,"&:only-child":{fontWeight:"normal"}},[`${ne}-description`]:{marginTop:Ct,color:gt}},[`${ne}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:Cn}}}}};var ye=(0,fe.Z)("Popconfirm",Ye=>me(Ye),Ye=>{const{zIndexPopupBase:ne}=Ye;return{zIndexPopup:ne+60}},{resetStyle:!1}),pe=function(Ye,ne){var at={};for(var Ge in Ye)Object.prototype.hasOwnProperty.call(Ye,Ge)&&ne.indexOf(Ge)<0&&(at[Ge]=Ye[Ge]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,Ge=Object.getOwnPropertySymbols(Ye);Pt<Ge.length;Pt++)ne.indexOf(Ge[Pt])<0&&Object.prototype.propertyIsEnumerable.call(Ye,Ge[Pt])&&(at[Ge[Pt]]=Ye[Ge[Pt]]);return at};const ke=Ye=>{const{prefixCls:ne,okButtonProps:at,cancelButtonProps:Ge,title:Pt,description:gt,cancelText:kt,okText:Ct,okType:Cn="primary",icon:Qe=M.createElement(v.Z,null),showCancel:le=!0,close:ce,onConfirm:Ht,onCancel:Vt,onPopupClick:St}=Ye,{getPrefixCls:sn}=M.useContext(ae.E_),[Ft]=(0,Ce.Z)("Popconfirm",Ie.Z.Popconfirm),oi=(0,Ee.Z)(Pt),On=(0,Ee.Z)(gt);return M.createElement("div",{className:`${ne}-inner-content`,onClick:St},M.createElement("div",{className:`${ne}-message`},Qe&&M.createElement("span",{className:`${ne}-message-icon`},Qe),M.createElement("div",{className:`${ne}-message-text`},oi&&M.createElement("div",{className:O()(`${ne}-title`)},oi),On&&M.createElement("div",{className:`${ne}-description`},On))),M.createElement("div",{className:`${ne}-buttons`},le&&M.createElement(Xe.ZP,Object.assign({onClick:Vt,size:"small"},Ge),kt!=null?kt:Ft==null?void 0:Ft.cancelText),M.createElement(Ne.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,Oe.n)(Cn)),at),actionFn:Ht,close:ce,prefixCls:sn("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},Ct!=null?Ct:Ft==null?void 0:Ft.okText)))};var Te=Ye=>{const{prefixCls:ne,placement:at,className:Ge,style:Pt}=Ye,gt=pe(Ye,["prefixCls","placement","className","style"]),{getPrefixCls:kt}=M.useContext(ae.E_),Ct=kt("popconfirm",ne),[Cn]=ye(Ct);return Cn(M.createElement(Re.ZP,{placement:at,className:O()(Ct,Ge),style:Pt,content:M.createElement(ke,Object.assign({prefixCls:Ct},gt))}))},Me=function(Ye,ne){var at={};for(var Ge in Ye)Object.prototype.hasOwnProperty.call(Ye,Ge)&&ne.indexOf(Ge)<0&&(at[Ge]=Ye[Ge]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,Ge=Object.getOwnPropertySymbols(Ye);Pt<Ge.length;Pt++)ne.indexOf(Ge[Pt])<0&&Object.prototype.propertyIsEnumerable.call(Ye,Ge[Pt])&&(at[Ge[Pt]]=Ye[Ge[Pt]]);return at};const Le=M.forwardRef((Ye,ne)=>{const{prefixCls:at,placement:Ge="top",trigger:Pt="click",okType:gt="primary",icon:kt=M.createElement(v.Z,null),children:Ct,overlayClassName:Cn,onOpenChange:Qe,onVisibleChange:le}=Ye,ce=Me(Ye,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:Ht}=M.useContext(ae.E_),[Vt,St]=(0,G.Z)(!1,{value:Ye.open,defaultValue:Ye.defaultOpen}),sn=(z,k)=>{St(z,!0),le==null||le(z),Qe==null||Qe(z,k)},Ft=z=>{sn(!1,z)},oi=z=>{var k;return(k=Ye.onConfirm)===null||k===void 0?void 0:k.call(void 0,z)},On=z=>{var k;sn(!1,z),(k=Ye.onCancel)===null||k===void 0||k.call(void 0,z)},ni=z=>{z.keyCode===B.Z.ESC&&Vt&&sn(!1,z)},Jn=z=>{const{disabled:k=!1}=Ye;k||sn(z)},Mn=Ht("popconfirm",at),In=O()(Mn,Cn),[re]=ye(Mn);return re(M.createElement(te.Z,Object.assign({},(0,F.Z)(ce,["title"]),{trigger:Pt,placement:Ge,onOpenChange:Jn,open:Vt,ref:ne,overlayClassName:In,content:M.createElement(ke,Object.assign({okType:gt,icon:kt},Ye,{prefixCls:Mn,close:Ft,onConfirm:oi,onCancel:On})),"data-popover-inject":!0}),(0,de.Tm)(Ct,{onKeyDown:z=>{var k,j;M.isValidElement(Ct)&&((j=Ct==null?void 0:(k=Ct.props).onKeyDown)===null||j===void 0||j.call(k,z)),ni(z)}})))});Le._InternalPanelDoNotUseOrYouWillBeFired=Te;var Je=Le},39722:function(X,C,h){"use strict";h.d(C,{t5:function(){return te}});var v=h(92310),I=h.n(v),O=h(55477),B=h(59301),G=h(36355),F=h(77578),M=h(17356),de=function(Ee,Xe){var Oe={};for(var Ce in Ee)Object.prototype.hasOwnProperty.call(Ee,Ce)&&Xe.indexOf(Ce)<0&&(Oe[Ce]=Ee[Ce]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,Ce=Object.getOwnPropertySymbols(Ee);Ie<Ce.length;Ie++)Xe.indexOf(Ce[Ie])<0&&Object.prototype.propertyIsEnumerable.call(Ee,Ce[Ie])&&(Oe[Ce[Ie]]=Ee[Ce[Ie]]);return Oe};const ae=(Ee,Xe,Oe)=>{if(!(!Xe&&!Oe))return B.createElement(B.Fragment,null,Xe&&B.createElement("div",{className:`${Ee}-title`},(0,F.Z)(Xe)),B.createElement("div",{className:`${Ee}-inner-content`},(0,F.Z)(Oe)))},te=Ee=>{const{hashId:Xe,prefixCls:Oe,className:Ce,style:Ie,placement:Re="top",title:fe,content:me,children:ye}=Ee;return B.createElement("div",{className:I()(Xe,Oe,`${Oe}-pure`,`${Oe}-placement-${Re}`,Ce),style:Ie},B.createElement("div",{className:`${Oe}-arrow`}),B.createElement(O.G,Object.assign({},Ee,{className:Xe,prefixCls:Oe}),ye||ae(Oe,fe,me)))},Ne=Ee=>{const{prefixCls:Xe}=Ee,Oe=de(Ee,["prefixCls"]),{getPrefixCls:Ce}=B.useContext(G.E_),Ie=Ce("popover",Xe),[Re,fe]=(0,M.Z)(Ie);return Re(B.createElement(te,Object.assign({},Oe,{prefixCls:Ie,hashId:fe})))};C.ZP=Ne},60324:function(X,C,h){"use strict";var v=h(92310),I=h.n(v),O=h(59301),B=h(77578),G=h(62892),F=h(36355),M=h(6848),de=h(39722),ae=h(17356),te=function(Xe,Oe){var Ce={};for(var Ie in Xe)Object.prototype.hasOwnProperty.call(Xe,Ie)&&Oe.indexOf(Ie)<0&&(Ce[Ie]=Xe[Ie]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,Ie=Object.getOwnPropertySymbols(Xe);Re<Ie.length;Re++)Oe.indexOf(Ie[Re])<0&&Object.prototype.propertyIsEnumerable.call(Xe,Ie[Re])&&(Ce[Ie[Re]]=Xe[Ie[Re]]);return Ce};const Ne=Xe=>{let{title:Oe,content:Ce,prefixCls:Ie}=Xe;return O.createElement(O.Fragment,null,Oe&&O.createElement("div",{className:`${Ie}-title`},(0,B.Z)(Oe)),O.createElement("div",{className:`${Ie}-inner-content`},(0,B.Z)(Ce)))},Ee=O.forwardRef((Xe,Oe)=>{const{prefixCls:Ce,title:Ie,content:Re,overlayClassName:fe,placement:me="top",trigger:ye="hover",mouseEnterDelay:pe=.1,mouseLeaveDelay:ke=.1,overlayStyle:ee={}}=Xe,Te=te(Xe,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:Me}=O.useContext(F.E_),Le=Me("popover",Ce),[Je,Ye]=(0,ae.Z)(Le),ne=Me(),at=I()(fe,Ye);return Je(O.createElement(M.Z,Object.assign({placement:me,trigger:ye,mouseEnterDelay:pe,mouseLeaveDelay:ke,overlayStyle:ee},Te,{prefixCls:Le,overlayClassName:at,ref:Oe,overlay:Ie||Re?O.createElement(Ne,{prefixCls:Le,title:Ie,content:Re}):null,transitionName:(0,G.m)(ne,"zoom-big",Te.transitionName),"data-popover-inject":!0})))});Ee._InternalPanelDoNotUseOrYouWillBeFired=de.ZP,C.Z=Ee},17356:function(X,C,h){"use strict";var v=h(17313),I=h(29878),O=h(19447),B=h(33166),G=h(83116),F=h(37613);const M=te=>{const{componentCls:Ne,popoverColor:Ee,minWidth:Xe,fontWeightStrong:Oe,popoverPadding:Ce,boxShadowSecondary:Ie,colorTextHeading:Re,borderRadiusLG:fe,zIndexPopup:me,marginXS:ye,colorBgElevated:pe,popoverBg:ke}=te;return[{[Ne]:Object.assign(Object.assign({},(0,v.Wf)(te)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:me,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":pe,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${Ne}-content`]:{position:"relative"},[`${Ne}-inner`]:{backgroundColor:ke,backgroundClip:"padding-box",borderRadius:fe,boxShadow:Ie,padding:Ce},[`${Ne}-title`]:{minWidth:Xe,marginBottom:ye,color:Re,fontWeight:Oe},[`${Ne}-inner-content`]:{color:Ee}})},(0,O.ZP)(te,{colorBg:"var(--antd-arrow-background-color)"}),{[`${Ne}-pure`]:{position:"relative",maxWidth:"none",margin:te.sizePopupArrow,display:"inline-block",[`${Ne}-content`]:{display:"inline-block"}}}]},de=te=>{const{componentCls:Ne}=te;return{[Ne]:B.i.map(Ee=>{const Xe=te[`${Ee}6`];return{[`&${Ne}-${Ee}`]:{"--antd-arrow-background-color":Xe,[`${Ne}-inner`]:{backgroundColor:Xe},[`${Ne}-arrow`]:{background:"transparent"}}}})}},ae=te=>{const{componentCls:Ne,lineWidth:Ee,lineType:Xe,colorSplit:Oe,paddingSM:Ce,controlHeight:Ie,fontSize:Re,lineHeight:fe,padding:me}=te,ye=Ie-Math.round(Re*fe),pe=ye/2,ke=ye/2-Ee,ee=me;return{[Ne]:{[`${Ne}-inner`]:{padding:0},[`${Ne}-title`]:{margin:0,padding:`${pe}px ${ee}px ${ke}px`,borderBottom:`${Ee}px ${Xe} ${Oe}`},[`${Ne}-inner-content`]:{padding:`${Ce}px ${ee}px`}}}};C.Z=(0,G.Z)("Popover",te=>{const{colorBgElevated:Ne,colorText:Ee,wireframe:Xe}=te,Oe=(0,F.TS)(te,{popoverPadding:12,popoverBg:Ne,popoverColor:Ee});return[M(Oe),de(Oe),Xe&&ae(Oe),(0,I._y)(Oe,"zoom-big")]},te=>({width:177,minWidth:177,zIndexPopup:te.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},93948:function(X,C,h){"use strict";h.d(C,{Z:function(){return an}});var v=h(59301),I=h(29679),O=h(40001),B=h(19248),G=h(99267),F=h(92310),M=h.n(F),de=h(2738),ae=h(36355),te=h(96663),Ne=h(44127),Ee=h(6620),Xe={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Oe=function(){var zt=(0,v.useRef)([]),dn=(0,v.useRef)(null);return(0,v.useEffect)(function(){var rn=Date.now(),ze=!1;zt.current.forEach(function(Un){if(Un){ze=!0;var yn=Un.style;yn.transitionDuration=".3s, .3s, .3s, .06s",dn.current&&rn-dn.current<100&&(yn.transitionDuration="0s, 0s")}}),ze&&(dn.current=Date.now())}),zt.current},Ce=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Ie=function(zt){var dn=(0,Ne.Z)((0,Ne.Z)({},Xe),zt),rn=dn.className,ze=dn.percent,Un=dn.prefixCls,yn=dn.strokeColor,Bt=dn.strokeLinecap,Si=dn.strokeWidth,_i=dn.style,Ii=dn.trailColor,cn=dn.trailWidth,fr=dn.transition,Xi=(0,Ee.Z)(dn,Ce);delete Xi.gapPosition;var ei=Array.isArray(ze)?ze:[ze],Tr=Array.isArray(yn)?yn:[yn],ur=Oe(),U=Si/2,mr=100-Si/2,Er="M ".concat(Bt==="round"?U:0,",").concat(U,`
L `).concat(Bt==="round"?mr:100,",").concat(U),wr="0 0 100 ".concat(Si),qr=0;return v.createElement("svg",(0,te.Z)({className:M()("".concat(Un,"-line"),rn),viewBox:wr,preserveAspectRatio:"none",style:_i},Xi),v.createElement("path",{className:"".concat(Un,"-line-trail"),d:Er,strokeLinecap:Bt,stroke:Ii,strokeWidth:cn||Si,fillOpacity:"0"}),ei.map(function(xo,kr){var no=1;switch(Bt){case"round":no=1-Si/100;break;case"square":no=1-Si/2/100;break;default:no=1;break}var rr={strokeDasharray:"".concat(xo*no,"px, 100px"),strokeDashoffset:"-".concat(qr,"px"),transition:fr||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Bi=Tr[kr]||Tr[Tr.length-1];return qr+=xo,v.createElement("path",{key:kr,className:"".concat(Un,"-line-path"),d:Er,strokeLinecap:Bt,stroke:Bi,strokeWidth:Si,fillOpacity:"0",ref:function(ht){ur[kr]=ht},style:rr})}))},Re=Ie,fe=h(20135),me=h(72071),ye=h(47273),pe=0,ke=(0,ye.Z)();function ee(){var et;return ke?(et=pe,pe+=1):et="TEST_OR_SSR",et}var Te=function(et){var zt=v.useState(),dn=(0,me.Z)(zt,2),rn=dn[0],ze=dn[1];return v.useEffect(function(){ze("rc_progress_".concat(ee()))},[]),et||rn},Me=function(zt){var dn=zt.bg,rn=zt.children;return v.createElement("div",{style:{width:"100%",height:"100%",background:dn}},rn)};function Le(et,zt){return Object.keys(et).map(function(dn){var rn=parseFloat(dn),ze="".concat(Math.floor(rn*zt),"%");return"".concat(et[dn]," ").concat(ze)})}var Je=v.forwardRef(function(et,zt){var dn=et.prefixCls,rn=et.color,ze=et.gradientId,Un=et.radius,yn=et.style,Bt=et.ptg,Si=et.strokeLinecap,_i=et.strokeWidth,Ii=et.size,cn=et.gapDegree,fr=rn&&(0,fe.Z)(rn)==="object",Xi=fr?"#FFF":void 0,ei=Ii/2,Tr=v.createElement("circle",{className:"".concat(dn,"-circle-path"),r:Un,cx:ei,cy:ei,stroke:Xi,strokeLinecap:Si,strokeWidth:_i,opacity:Bt===0?0:1,style:yn,ref:zt});if(!fr)return Tr;var ur="".concat(ze,"-conic"),U=cn?"".concat(180+cn/2,"deg"):"0deg",mr=Le(rn,(360-cn)/360),Er=Le(rn,1),wr="conic-gradient(from ".concat(U,", ").concat(mr.join(", "),")"),qr="linear-gradient(to ".concat(cn?"bottom":"top",", ").concat(Er.join(", "),")");return v.createElement(v.Fragment,null,v.createElement("mask",{id:ur},Tr),v.createElement("foreignObject",{x:0,y:0,width:Ii,height:Ii,mask:"url(#".concat(ur,")")},v.createElement(Me,{bg:qr},v.createElement(Me,{bg:wr}))))}),Ye=Je,ne=100,at=function(zt,dn,rn,ze,Un,yn,Bt,Si,_i,Ii){var cn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,fr=rn/100*360*((360-yn)/360),Xi=yn===0?0:{bottom:0,top:180,left:90,right:-90}[Bt],ei=(100-ze)/100*dn;_i==="round"&&ze!==100&&(ei+=Ii/2,ei>=dn&&(ei=dn-.01));var Tr=ne/2;return{stroke:typeof Si=="string"?Si:void 0,strokeDasharray:"".concat(dn,"px ").concat(zt),strokeDashoffset:ei+cn,transform:"rotate(".concat(Un+fr+Xi,"deg)"),transformOrigin:"".concat(Tr,"px ").concat(Tr,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},Ge=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Pt(et){var zt=et!=null?et:[];return Array.isArray(zt)?zt:[zt]}var gt=function(zt){var dn=(0,Ne.Z)((0,Ne.Z)({},Xe),zt),rn=dn.id,ze=dn.prefixCls,Un=dn.steps,yn=dn.strokeWidth,Bt=dn.trailWidth,Si=dn.gapDegree,_i=Si===void 0?0:Si,Ii=dn.gapPosition,cn=dn.trailColor,fr=dn.strokeLinecap,Xi=dn.style,ei=dn.className,Tr=dn.strokeColor,ur=dn.percent,U=(0,Ee.Z)(dn,Ge),mr=ne/2,Er=Te(rn),wr="".concat(Er,"-gradient"),qr=mr-yn/2,xo=Math.PI*2*qr,kr=_i>0?90+_i/2:-90,no=xo*((360-_i)/360),rr=(0,fe.Z)(Un)==="object"?Un:{count:Un,space:2},Bi=rr.count,yi=rr.space,ht=Pt(ur),_n=Pt(Tr),Vn=_n.find(function(Ve){return Ve&&(0,fe.Z)(Ve)==="object"}),pt=Vn&&(0,fe.Z)(Vn)==="object",Ke=pt?"butt":fr,vn=at(xo,no,0,100,kr,_i,Ii,cn,Ke,yn),Fn=Oe(),on=function(){var Ut=0;return ht.map(function(Lt,Wn){var ot=_n[Wn]||_n[_n.length-1],fn=at(xo,no,Ut,Lt,kr,_i,Ii,ot,Ke,yn);return Ut+=Lt,v.createElement(Ye,{key:Wn,color:ot,ptg:Lt,radius:qr,prefixCls:ze,gradientId:wr,style:fn,strokeLinecap:Ke,strokeWidth:yn,gapDegree:_i,ref:function(je){Fn[Wn]=je},size:ne})}).reverse()},Nt=function(){var Ut=Math.round(Bi*(ht[0]/100)),Lt=100/Bi,Wn=0;return new Array(Bi).fill(null).map(function(ot,fn){var yt=fn<=Ut-1?_n[0]:cn,je=yt&&(0,fe.Z)(yt)==="object"?"url(#".concat(wr,")"):void 0,L=at(xo,no,Wn,Lt,kr,_i,Ii,yt,"butt",yn,yi);return Wn+=(no-L.strokeDashoffset+yi)*100/no,v.createElement("circle",{key:fn,className:"".concat(ze,"-circle-path"),r:qr,cx:mr,cy:mr,stroke:je,strokeWidth:yn,opacity:1,style:L,ref:function(Jt){Fn[fn]=Jt}})})};return v.createElement("svg",(0,te.Z)({className:M()("".concat(ze,"-circle"),ei),viewBox:"0 0 ".concat(ne," ").concat(ne),style:Xi,id:rn,role:"presentation"},U),!Bi&&v.createElement("circle",{className:"".concat(ze,"-circle-trail"),r:qr,cx:mr,cy:mr,stroke:cn,strokeLinecap:Ke,strokeWidth:Bt||yn,style:vn}),Bi?Nt():on())},kt=gt,Ct={Line:Re,Circle:kt},Cn=h(6848),Qe=h(93398);function le(et){return!et||et<0?0:et>100?100:et}function ce(et){let{success:zt,successPercent:dn}=et,rn=dn;return zt&&"progress"in zt&&(rn=zt.progress),zt&&"percent"in zt&&(rn=zt.percent),rn}const Ht=et=>{let{percent:zt,success:dn,successPercent:rn}=et;const ze=le(ce({success:dn,successPercent:rn}));return[ze,le(le(zt)-ze)]},Vt=et=>{let{success:zt={},strokeColor:dn}=et;const{strokeColor:rn}=zt;return[rn||Qe.presetPrimaryColors.green,dn||null]},St=(et,zt,dn)=>{var rn,ze,Un,yn;let Bt=-1,Si=-1;if(zt==="step"){const _i=dn.steps,Ii=dn.strokeWidth;typeof et=="string"||typeof et=="undefined"?(Bt=et==="small"?2:14,Si=Ii!=null?Ii:8):typeof et=="number"?[Bt,Si]=[et,et]:[Bt=14,Si=8]=et,Bt*=_i}else if(zt==="line"){const _i=dn==null?void 0:dn.strokeWidth;typeof et=="string"||typeof et=="undefined"?Si=_i||(et==="small"?6:8):typeof et=="number"?[Bt,Si]=[et,et]:[Bt=-1,Si=8]=et}else(zt==="circle"||zt==="dashboard")&&(typeof et=="string"||typeof et=="undefined"?[Bt,Si]=et==="small"?[60,60]:[120,120]:typeof et=="number"?[Bt,Si]=[et,et]:(Bt=(ze=(rn=et[0])!==null&&rn!==void 0?rn:et[1])!==null&&ze!==void 0?ze:120,Si=(yn=(Un=et[0])!==null&&Un!==void 0?Un:et[1])!==null&&yn!==void 0?yn:120));return[Bt,Si]},sn=3,Ft=et=>sn/et*100;var On=et=>{const{prefixCls:zt,trailColor:dn=null,strokeLinecap:rn="round",gapPosition:ze,gapDegree:Un,width:yn=120,type:Bt,children:Si,success:_i,size:Ii=yn}=et,[cn,fr]=St(Ii,"circle");let{strokeWidth:Xi}=et;Xi===void 0&&(Xi=Math.max(Ft(cn),6));const ei={width:cn,height:fr,fontSize:cn*.15+6},Tr=v.useMemo(()=>{if(Un||Un===0)return Un;if(Bt==="dashboard")return 75},[Un,Bt]),ur=ze||Bt==="dashboard"&&"bottom"||void 0,U=Object.prototype.toString.call(et.strokeColor)==="[object Object]",mr=Vt({success:_i,strokeColor:et.strokeColor}),Er=M()(`${zt}-inner`,{[`${zt}-circle-gradient`]:U}),wr=v.createElement(kt,{percent:Ht(et),strokeWidth:Xi,trailWidth:Xi,strokeColor:mr,strokeLinecap:rn,trailColor:dn,prefixCls:zt,gapDegree:Tr,gapPosition:ur});return v.createElement("div",{className:Er,style:ei},cn<=20?v.createElement(Cn.Z,{title:Si},v.createElement("span",null,wr)):v.createElement(v.Fragment,null,wr,Si))},ni=function(et,zt){var dn={};for(var rn in et)Object.prototype.hasOwnProperty.call(et,rn)&&zt.indexOf(rn)<0&&(dn[rn]=et[rn]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,rn=Object.getOwnPropertySymbols(et);ze<rn.length;ze++)zt.indexOf(rn[ze])<0&&Object.prototype.propertyIsEnumerable.call(et,rn[ze])&&(dn[rn[ze]]=et[rn[ze]]);return dn};const Jn=et=>{let zt=[];return Object.keys(et).forEach(dn=>{const rn=parseFloat(dn.replace(/%/g,""));isNaN(rn)||zt.push({key:rn,value:et[dn]})}),zt=zt.sort((dn,rn)=>dn.key-rn.key),zt.map(dn=>{let{key:rn,value:ze}=dn;return`${ze} ${rn}%`}).join(", ")},Mn=(et,zt)=>{const{from:dn=Qe.presetPrimaryColors.blue,to:rn=Qe.presetPrimaryColors.blue,direction:ze=zt==="rtl"?"to left":"to right"}=et,Un=ni(et,["from","to","direction"]);if(Object.keys(Un).length!==0){const yn=Jn(Un);return{backgroundImage:`linear-gradient(${ze}, ${yn})`}}return{backgroundImage:`linear-gradient(${ze}, ${dn}, ${rn})`}};var re=et=>{const{prefixCls:zt,direction:dn,percent:rn,size:ze,strokeWidth:Un,strokeColor:yn,strokeLinecap:Bt="round",children:Si,trailColor:_i=null,success:Ii}=et,cn=yn&&typeof yn!="string"?Mn(yn,dn):{backgroundColor:yn},fr=Bt==="square"||Bt==="butt"?0:void 0,Xi={backgroundColor:_i||void 0,borderRadius:fr},ei=ze!=null?ze:[-1,Un||(ze==="small"?6:8)],[Tr,ur]=St(ei,"line",{strokeWidth:Un}),U=Object.assign({width:`${le(rn)}%`,height:ur,borderRadius:fr},cn),mr=ce(et),Er={width:`${le(mr)}%`,height:ur,borderRadius:fr,backgroundColor:Ii==null?void 0:Ii.strokeColor},wr={width:Tr<0?"100%":Tr,height:ur};return v.createElement(v.Fragment,null,v.createElement("div",{className:`${zt}-outer`,style:wr},v.createElement("div",{className:`${zt}-inner`,style:Xi},v.createElement("div",{className:`${zt}-bg`,style:U}),mr!==void 0?v.createElement("div",{className:`${zt}-success-bg`,style:Er}):null)),Si)},k=et=>{const{size:zt,steps:dn,percent:rn=0,strokeWidth:ze=8,strokeColor:Un,trailColor:yn=null,prefixCls:Bt,children:Si}=et,_i=Math.round(dn*(rn/100)),Ii=zt==="small"?2:14,cn=zt!=null?zt:[Ii,ze],[fr,Xi]=St(cn,"step",{steps:dn,strokeWidth:ze}),ei=fr/dn,Tr=new Array(dn);for(let ur=0;ur<dn;ur++){const U=Array.isArray(Un)?Un[ur]:Un;Tr[ur]=v.createElement("div",{key:ur,className:M()(`${Bt}-steps-item`,{[`${Bt}-steps-item-active`]:ur<=_i-1}),style:{backgroundColor:ur<=_i-1?U:yn,width:ei,height:Xi}})}return v.createElement("div",{className:`${Bt}-steps-outer`},Tr,Si)},j=h(93083),Q=h(17313),T=h(83116),_e=h(37613);const It=et=>{const zt=et?"100%":"-100%";return new j.Keyframes(`antProgress${et?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${zt}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${zt}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},$e=et=>{const{componentCls:zt,iconCls:dn}=et;return{[zt]:Object.assign(Object.assign({},(0,Q.Wf)(et)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:et.fontSize,marginInlineEnd:et.marginXS,marginBottom:et.marginXS},[`${zt}-outer`]:{display:"inline-block",width:"100%"},[`&${zt}-show-info`]:{[`${zt}-outer`]:{marginInlineEnd:`calc(-2em - ${et.marginXS}px)`,paddingInlineEnd:`calc(2em + ${et.paddingXS}px)`}},[`${zt}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:et.remainingColor,borderRadius:et.lineBorderRadius},[`${zt}-inner:not(${zt}-circle-gradient)`]:{[`${zt}-circle-path`]:{stroke:et.defaultColor}},[`${zt}-success-bg, ${zt}-bg`]:{position:"relative",backgroundColor:et.defaultColor,borderRadius:et.lineBorderRadius,transition:`all ${et.motionDurationSlow} ${et.motionEaseInOutCirc}`},[`${zt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:et.colorSuccess},[`${zt}-text`]:{display:"inline-block",width:"2em",marginInlineStart:et.marginXS,color:et.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[dn]:{fontSize:et.fontSize}},[`&${zt}-status-active`]:{[`${zt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:et.colorBgContainer,borderRadius:et.lineBorderRadius,opacity:0,animationName:It(),animationDuration:et.progressActiveMotionDuration,animationTimingFunction:et.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${zt}-rtl${zt}-status-active`]:{[`${zt}-bg::before`]:{animationName:It(!0)}},[`&${zt}-status-exception`]:{[`${zt}-bg`]:{backgroundColor:et.colorError},[`${zt}-text`]:{color:et.colorError}},[`&${zt}-status-exception ${zt}-inner:not(${zt}-circle-gradient)`]:{[`${zt}-circle-path`]:{stroke:et.colorError}},[`&${zt}-status-success`]:{[`${zt}-bg`]:{backgroundColor:et.colorSuccess},[`${zt}-text`]:{color:et.colorSuccess}},[`&${zt}-status-success ${zt}-inner:not(${zt}-circle-gradient)`]:{[`${zt}-circle-path`]:{stroke:et.colorSuccess}}})}},Pe=et=>{const{componentCls:zt,iconCls:dn}=et;return{[zt]:{[`${zt}-circle-trail`]:{stroke:et.remainingColor},[`&${zt}-circle ${zt}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${zt}-circle ${zt}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:et.circleTextColor,fontSize:et.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[dn]:{fontSize:`${et.fontSize/et.fontSizeSM}em`}},[`${zt}-circle&-status-exception`]:{[`${zt}-text`]:{color:et.colorError}},[`${zt}-circle&-status-success`]:{[`${zt}-text`]:{color:et.colorSuccess}}},[`${zt}-inline-circle`]:{lineHeight:1,[`${zt}-inner`]:{verticalAlign:"bottom"}}}},vt=et=>{const{componentCls:zt}=et;return{[zt]:{[`${zt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:et.progressStepMinWidth,marginInlineEnd:et.progressStepMarginInlineEnd,backgroundColor:et.remainingColor,transition:`all ${et.motionDurationSlow}`,"&-active":{backgroundColor:et.defaultColor}}}}}},ut=et=>{const{componentCls:zt,iconCls:dn}=et;return{[zt]:{[`${zt}-small&-line, ${zt}-small&-line ${zt}-text ${dn}`]:{fontSize:et.fontSizeSM}}}};var tt=(0,T.Z)("Progress",et=>{const zt=et.marginXXS/2,dn=(0,_e.TS)(et,{progressStepMarginInlineEnd:zt,progressStepMinWidth:zt,progressActiveMotionDuration:"2.4s"});return[$e(dn),Pe(dn),vt(dn),ut(dn)]},et=>({circleTextColor:et.colorText,defaultColor:et.colorInfo,remainingColor:et.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Et=function(et,zt){var dn={};for(var rn in et)Object.prototype.hasOwnProperty.call(et,rn)&&zt.indexOf(rn)<0&&(dn[rn]=et[rn]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,rn=Object.getOwnPropertySymbols(et);ze<rn.length;ze++)zt.indexOf(rn[ze])<0&&Object.prototype.propertyIsEnumerable.call(et,rn[ze])&&(dn[rn[ze]]=et[rn[ze]]);return dn};const pn=null,nn=["normal","exception","active","success"];var hn=v.forwardRef((et,zt)=>{const{prefixCls:dn,className:rn,rootClassName:ze,steps:Un,strokeColor:yn,percent:Bt=0,size:Si="default",showInfo:_i=!0,type:Ii="line",status:cn,format:fr,style:Xi}=et,ei=Et(et,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Tr=v.useMemo(()=>{var ht,_n;const Vn=ce(et);return parseInt(Vn!==void 0?(ht=Vn!=null?Vn:0)===null||ht===void 0?void 0:ht.toString():(_n=Bt!=null?Bt:0)===null||_n===void 0?void 0:_n.toString(),10)},[Bt,et.success,et.successPercent]),ur=v.useMemo(()=>!nn.includes(cn)&&Tr>=100?"success":cn||"normal",[cn,Tr]),{getPrefixCls:U,direction:mr,progress:Er}=v.useContext(ae.E_),wr=U("progress",dn),[qr,xo]=tt(wr),kr=v.useMemo(()=>{if(!_i)return null;const ht=ce(et);let _n;const Vn=fr||(Ke=>`${Ke}%`),pt=Ii==="line";return fr||ur!=="exception"&&ur!=="success"?_n=Vn(le(Bt),le(ht)):ur==="exception"?_n=pt?v.createElement(B.Z,null):v.createElement(G.Z,null):ur==="success"&&(_n=pt?v.createElement(I.Z,null):v.createElement(O.Z,null)),v.createElement("span",{className:`${wr}-text`,title:typeof _n=="string"?_n:void 0},_n)},[_i,Bt,Tr,ur,Ii,wr,fr]),no=Array.isArray(yn)?yn[0]:yn,rr=typeof yn=="string"||Array.isArray(yn)?yn:void 0;let Bi;Ii==="line"?Bi=Un?v.createElement(k,Object.assign({},et,{strokeColor:rr,prefixCls:wr,steps:Un}),kr):v.createElement(re,Object.assign({},et,{strokeColor:no,prefixCls:wr,direction:mr}),kr):(Ii==="circle"||Ii==="dashboard")&&(Bi=v.createElement(On,Object.assign({},et,{strokeColor:no,prefixCls:wr,progressStatus:ur}),kr));const yi=M()(wr,`${wr}-status-${ur}`,`${wr}-${Ii==="dashboard"&&"circle"||Un&&"steps"||Ii}`,{[`${wr}-inline-circle`]:Ii==="circle"&&St(Si,"circle")[0]<=20,[`${wr}-show-info`]:_i,[`${wr}-${Si}`]:typeof Si=="string",[`${wr}-rtl`]:mr==="rtl"},Er==null?void 0:Er.className,rn,ze,xo);return qr(v.createElement("div",Object.assign({ref:zt,style:Object.assign(Object.assign({},Er==null?void 0:Er.style),Xi),className:yi,role:"progressbar","aria-valuenow":Tr},(0,de.Z)(ei,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Bi))}),an=hn},57809:function(X,C,h){"use strict";var v=h(92310),I=h.n(v),O=h(77861),B=h(2738),G=h(59301),F=h(53487),M=h(62892),de=h(19080),ae=h(36355),te=h(1684),Ne=h(93891),Ee=h(19716),Xe=h(32441),Oe=h(33234),Ce=h(14154),Ie=h(58582),Re=h(84443),fe=h(66339),me=function(Te,Me){var Le={};for(var Je in Te)Object.prototype.hasOwnProperty.call(Te,Je)&&Me.indexOf(Je)<0&&(Le[Je]=Te[Je]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,Je=Object.getOwnPropertySymbols(Te);Ye<Je.length;Ye++)Me.indexOf(Je[Ye])<0&&Object.prototype.propertyIsEnumerable.call(Te,Je[Ye])&&(Le[Je[Ye]]=Te[Je[Ye]]);return Le};const ye="SECRET_COMBOBOX_MODE_DO_NOT_USE",pe=(Te,Me)=>{var Le,{prefixCls:Je,bordered:Ye=!0,className:ne,rootClassName:at,getPopupContainer:Ge,popupClassName:Pt,dropdownClassName:gt,listHeight:kt=256,placement:Ct,listItemHeight:Cn=24,size:Qe,disabled:le,notFoundContent:ce,status:Ht,builtinPlacements:Vt,dropdownMatchSelectWidth:St,popupMatchSelectWidth:sn,direction:Ft,style:oi,allowClear:On}=Te,ni=me(Te,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:Jn,getPrefixCls:Mn,renderEmpty:In,direction:re,virtual:z,popupMatchSelectWidth:k,popupOverflow:j,select:Q}=G.useContext(ae.E_),T=Mn("select",Je),_e=Mn(),It=Ft!=null?Ft:re,{compactSize:$e,compactItemClassnames:Pe}=(0,Oe.ri)(T,It),[vt,ut]=(0,Ce.Z)(T),tt=G.useMemo(()=>{const{mode:ur}=ni;if(ur!=="combobox")return ur===ye?"combobox":ur},[ni.mode]),Et=tt==="multiple"||tt==="tags",pn=(0,Re.Z)(ni.suffixIcon,ni.showArrow),nn=(Le=sn!=null?sn:St)!==null&&Le!==void 0?Le:k,{status:Kt,hasFeedback:hn,isFormItemInput:an,feedbackIcon:et}=G.useContext(Xe.aM),zt=(0,de.F)(Kt,Ht);let dn;ce!==void 0?dn=ce:tt==="combobox"?dn=null:dn=(In==null?void 0:In("Select"))||G.createElement(Ne.Z,{componentName:"Select"});const{suffixIcon:rn,itemIcon:ze,removeIcon:Un,clearIcon:yn}=(0,fe.Z)(Object.assign(Object.assign({},ni),{multiple:Et,hasFeedback:hn,feedbackIcon:et,showSuffixIcon:pn,prefixCls:T,showArrow:ni.showArrow,componentName:"Select"})),Bt=On===!0?{clearIcon:yn}:On,Si=(0,B.Z)(ni,["suffixIcon","itemIcon"]),_i=I()(Pt||gt,{[`${T}-dropdown-${It}`]:It==="rtl"},at,ut),Ii=(0,Ee.Z)(ur=>{var U;return(U=Qe!=null?Qe:$e)!==null&&U!==void 0?U:ur}),cn=G.useContext(te.Z),fr=le!=null?le:cn,Xi=I()({[`${T}-lg`]:Ii==="large",[`${T}-sm`]:Ii==="small",[`${T}-rtl`]:It==="rtl",[`${T}-borderless`]:!Ye,[`${T}-in-form-item`]:an},(0,de.Z)(T,zt,hn),Pe,Q==null?void 0:Q.className,ne,at,ut),ei=G.useMemo(()=>Ct!==void 0?Ct:It==="rtl"?"bottomRight":"bottomLeft",[Ct,It]),Tr=(0,Ie.Z)(Vt,j);return vt(G.createElement(O.ZP,Object.assign({ref:Me,virtual:z,showSearch:Q==null?void 0:Q.showSearch},Si,{style:Object.assign(Object.assign({},Q==null?void 0:Q.style),oi),dropdownMatchSelectWidth:nn,builtinPlacements:Tr,transitionName:(0,M.m)(_e,"slide-up",ni.transitionName),listHeight:kt,listItemHeight:Cn,mode:tt,prefixCls:T,placement:ei,direction:It,suffixIcon:rn,menuItemSelectedIcon:ze,removeIcon:Un,allowClear:Bt,notFoundContent:dn,className:Xi,getPopupContainer:Ge||Jn,dropdownClassName:_i,disabled:fr})))},ke=G.forwardRef(pe),ee=(0,F.Z)(ke);ke.SECRET_COMBOBOX_MODE_DO_NOT_USE=ye,ke.Option=O.Wx,ke.OptGroup=O.Xo,ke._InternalPanelDoNotUseOrYouWillBeFired=ee,C.default=ke},14154:function(X,C,h){"use strict";h.d(C,{Z:function(){return ke}});var v=h(17313),I=h(74207),O=h(37613),B=h(83116),G=h(13826),F=h(92899);const M=ee=>{const{optionHeight:Te,optionFontSize:Me,optionLineHeight:Le,optionPadding:Je}=ee;return{position:"relative",display:"block",minHeight:Te,padding:Je,color:ee.colorText,fontWeight:"normal",fontSize:Me,lineHeight:Le,boxSizing:"border-box"}};var ae=ee=>{const{antCls:Te,componentCls:Me}=ee,Le=`${Me}-item`,Je=`&${Te}-slide-up-enter${Te}-slide-up-enter-active`,Ye=`&${Te}-slide-up-appear${Te}-slide-up-appear-active`,ne=`&${Te}-slide-up-leave${Te}-slide-up-leave-active`,at=`${Me}-dropdown-placement-`;return[{[`${Me}-dropdown`]:Object.assign(Object.assign({},(0,v.Wf)(ee)),{position:"absolute",top:-9999,zIndex:ee.zIndexPopup,boxSizing:"border-box",padding:ee.paddingXXS,overflow:"hidden",fontSize:ee.fontSize,fontVariant:"initial",backgroundColor:ee.colorBgElevated,borderRadius:ee.borderRadiusLG,outline:"none",boxShadow:ee.boxShadowSecondary,[`
${Je}${at}bottomLeft,
${Ye}${at}bottomLeft
`]:{animationName:G.fJ},[`
${Je}${at}topLeft,
${Ye}${at}topLeft,
${Je}${at}topRight,
${Ye}${at}topRight
`]:{animationName:G.Qt},[`${ne}${at}bottomLeft`]:{animationName:G.Uw},[`
${ne}${at}topLeft,
${ne}${at}topRight
`]:{animationName:G.ly},"&-hidden":{display:"none"},[`${Le}`]:Object.assign(Object.assign({},M(ee)),{cursor:"pointer",transition:`background ${ee.motionDurationSlow} ease`,borderRadius:ee.borderRadiusSM,"&-group":{color:ee.colorTextDescription,fontSize:ee.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},v.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Le}-option-disabled)`]:{backgroundColor:ee.optionActiveBg},[`&-selected:not(${Le}-option-disabled)`]:{color:ee.optionSelectedColor,fontWeight:ee.optionSelectedFontWeight,backgroundColor:ee.optionSelectedBg,[`${Le}-option-state`]:{color:ee.colorPrimary}},"&-disabled":{[`&${Le}-option-selected`]:{backgroundColor:ee.colorBgContainerDisabled},color:ee.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:ee.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,G.oN)(ee,"slide-up"),(0,G.oN)(ee,"slide-down"),(0,F.Fm)(ee,"move-up"),(0,F.Fm)(ee,"move-down")]};const te=2,Ne=ee=>{let{controlHeightSM:Te,controlHeight:Me,lineWidth:Le}=ee;const Je=(Me-Te)/2-Le,Ye=Math.ceil(Je/2);return[Je,Ye]};function Ee(ee,Te){const{componentCls:Me,iconCls:Le}=ee,Je=`${Me}-selection-overflow`,Ye=ee.multipleSelectItemHeight,[ne]=Ne(ee),at=Te?`${Me}-${Te}`:"";return{[`${Me}-multiple${at}`]:{fontSize:ee.fontSize,[Je]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${Me}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${ne-te}px ${te*2}px`,borderRadius:ee.borderRadius,[`${Me}-show-search&`]:{cursor:"text"},[`${Me}-disabled&`]:{background:ee.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${te}px 0`,lineHeight:`${Ye}px`,visibility:"hidden",content:'"\\a0"'}},[`
&${Me}-show-arrow ${Me}-selector,
&${Me}-allow-clear ${Me}-selector
`]:{paddingInlineEnd:ee.fontSizeIcon+ee.controlPaddingHorizontal},[`${Me}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Ye,marginTop:te,marginBottom:te,lineHeight:`${Ye-ee.lineWidth*2}px`,background:ee.multipleItemBg,border:`${ee.lineWidth}px ${ee.lineType} ${ee.multipleItemBorderColor}`,borderRadius:ee.borderRadiusSM,cursor:"default",transition:`font-size ${ee.motionDurationSlow}, line-height ${ee.motionDurationSlow}, height ${ee.motionDurationSlow}`,userSelect:"none",marginInlineEnd:te*2,paddingInlineStart:ee.paddingXS,paddingInlineEnd:ee.paddingXS/2,[`${Me}-disabled&`]:{color:ee.multipleItemColorDisabled,borderColor:ee.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:ee.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,v.Ro)()),{display:"inline-flex",alignItems:"center",color:ee.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Le}`]:{verticalAlign:"-0.2em"},"&:hover":{color:ee.colorIconHover}})},[`${Je}-item + ${Je}-item`]:{[`${Me}-selection-search`]:{marginInlineStart:0}},[`${Me}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:ee.inputPaddingHorizontalBase-ne,"\n &-input,\n &-mirror\n ":{height:Ye,fontFamily:ee.fontFamily,lineHeight:`${Ye}px`,transition:`all ${ee.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Me}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:ee.inputPaddingHorizontalBase,insetInlineEnd:ee.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${ee.motionDurationSlow}`}}}}var Oe=ee=>{const{componentCls:Te}=ee,Me=(0,O.TS)(ee,{controlHeight:ee.controlHeightSM,multipleSelectItemHeight:ee.controlHeightXS,borderRadius:ee.borderRadiusSM,borderRadiusSM:ee.borderRadiusXS}),Le=(0,O.TS)(ee,{fontSize:ee.fontSizeLG,controlHeight:ee.controlHeightLG,multipleSelectItemHeight:ee.multipleItemHeightLG,borderRadius:ee.borderRadiusLG,borderRadiusSM:ee.borderRadius}),[,Je]=Ne(ee);return[Ee(ee),Ee(Me,"sm"),{[`${Te}-multiple${Te}-sm`]:{[`${Te}-selection-placeholder`]:{insetInline:ee.controlPaddingHorizontalSM-ee.lineWidth},[`${Te}-selection-search`]:{marginInlineStart:Je}}},Ee(Le,"lg")]};function Ce(ee,Te){const{componentCls:Me,inputPaddingHorizontalBase:Le,borderRadius:Je}=ee,Ye=ee.controlHeight-ee.lineWidth*2,ne=Math.ceil(ee.fontSize*1.25),at=Te?`${Me}-${Te}`:"";return{[`${Me}-single${at}`]:{fontSize:ee.fontSize,[`${Me}-selector`]:Object.assign(Object.assign({},(0,v.Wf)(ee)),{display:"flex",borderRadius:Je,[`${Me}-selection-search`]:{position:"absolute",top:0,insetInlineStart:Le,insetInlineEnd:Le,bottom:0,"&-input":{width:"100%"}},[`
${Me}-selection-item,
${Me}-selection-placeholder
`]:{padding:0,lineHeight:`${Ye}px`,transition:`all ${ee.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Ye}px`}},[`${Me}-selection-item`]:{position:"relative",userSelect:"none"},[`${Me}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Me}-selection-item:after`,`${Me}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${Me}-show-arrow ${Me}-selection-item,
&${Me}-show-arrow ${Me}-selection-placeholder
`]:{paddingInlineEnd:ne},[`&${Me}-open ${Me}-selection-item`]:{color:ee.colorTextPlaceholder},[`&:not(${Me}-customize-input)`]:{[`${Me}-selector`]:{width:"100%",height:ee.controlHeight,padding:`0 ${Le}px`,[`${Me}-selection-search-input`]:{height:Ye},"&:after":{lineHeight:`${Ye}px`}}},[`&${Me}-customize-input`]:{[`${Me}-selector`]:{"&:after":{display:"none"},[`${Me}-selection-search`]:{position:"static",width:"100%"},[`${Me}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Le}px`,"&:after":{display:"none"}}}}}}}function Ie(ee){const{componentCls:Te}=ee,Me=ee.controlPaddingHorizontalSM-ee.lineWidth;return[Ce(ee),Ce((0,O.TS)(ee,{controlHeight:ee.controlHeightSM,borderRadius:ee.borderRadiusSM}),"sm"),{[`${Te}-single${Te}-sm`]:{[`&:not(${Te}-customize-input)`]:{[`${Te}-selection-search`]:{insetInlineStart:Me,insetInlineEnd:Me},[`${Te}-selector`]:{padding:`0 ${Me}px`},[`&${Te}-show-arrow ${Te}-selection-search`]:{insetInlineEnd:Me+ee.fontSize*1.5},[`
&${Te}-show-arrow ${Te}-selection-item,
&${Te}-show-arrow ${Te}-selection-placeholder
`]:{paddingInlineEnd:ee.fontSize*1.5}}}},Ce((0,O.TS)(ee,{controlHeight:ee.singleItemHeightLG,fontSize:ee.fontSizeLG,borderRadius:ee.borderRadiusLG}),"lg")]}const Re=ee=>{const{componentCls:Te,selectorBg:Me}=ee;return{position:"relative",backgroundColor:Me,border:`${ee.lineWidth}px ${ee.lineType} ${ee.colorBorder}`,transition:`all ${ee.motionDurationMid} ${ee.motionEaseInOut}`,input:{cursor:"pointer"},[`${Te}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Te}-disabled&`]:{color:ee.colorTextDisabled,background:ee.colorBgContainerDisabled,cursor:"not-allowed",[`${Te}-multiple&`]:{background:ee.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},fe=function(ee,Te){let Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:Le,borderHoverColor:Je,outlineColor:Ye,antCls:ne}=Te,at=Me?{[`${Le}-selector`]:{borderColor:Je}}:{};return{[ee]:{[`&:not(${Le}-disabled):not(${Le}-customize-input):not(${ne}-pagination-size-changer)`]:Object.assign(Object.assign({},at),{[`${Le}-focused& ${Le}-selector`]:{borderColor:Je,boxShadow:`0 0 0 ${Te.controlOutlineWidth}px ${Ye}`,outline:0},[`&:hover ${Le}-selector`]:{borderColor:Je}})}}},me=ee=>{const{componentCls:Te}=ee;return{[`${Te}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},ye=ee=>{const{componentCls:Te,inputPaddingHorizontalBase:Me,iconCls:Le}=ee;return{[Te]:Object.assign(Object.assign({},(0,v.Wf)(ee)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Te}-customize-input) ${Te}-selector`]:Object.assign(Object.assign({},Re(ee)),me(ee)),[`${Te}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},v.vS),[`${Te}-selection-placeholder`]:Object.assign(Object.assign({},v.vS),{flex:1,color:ee.colorTextPlaceholder,pointerEvents:"none"}),[`${Te}-arrow`]:Object.assign(Object.assign({},(0,v.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Me,height:ee.fontSizeIcon,marginTop:-ee.fontSizeIcon/2,color:ee.colorTextQuaternary,fontSize:ee.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[Le]:{verticalAlign:"top",transition:`transform ${ee.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Te}-suffix)`]:{pointerEvents:"auto"}},[`${Te}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Te}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Me,zIndex:1,display:"inline-block",width:ee.fontSizeIcon,height:ee.fontSizeIcon,marginTop:-ee.fontSizeIcon/2,color:ee.colorTextQuaternary,fontSize:ee.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:ee.clearBg,cursor:"pointer",opacity:0,transition:`color ${ee.motionDurationMid} ease, opacity ${ee.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:ee.colorTextTertiary}},"&:hover":{[`${Te}-clear`]:{opacity:1}}}),[`${Te}-has-feedback`]:{[`${Te}-clear`]:{insetInlineEnd:Me+ee.fontSize+ee.paddingXS}}}},pe=ee=>{const{componentCls:Te}=ee;return[{[Te]:{[`&-borderless ${Te}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Te}-in-form-item`]:{width:"100%"}}},ye(ee),Ie(ee),Oe(ee),ae(ee),{[`${Te}-rtl`]:{direction:"rtl"}},fe(Te,(0,O.TS)(ee,{borderHoverColor:ee.colorPrimaryHover,outlineColor:ee.controlOutline})),fe(`${Te}-status-error`,(0,O.TS)(ee,{borderHoverColor:ee.colorErrorHover,outlineColor:ee.colorErrorOutline}),!0),fe(`${Te}-status-warning`,(0,O.TS)(ee,{borderHoverColor:ee.colorWarningHover,outlineColor:ee.colorWarningOutline}),!0),(0,I.c)(ee,{borderElCls:`${Te}-selector`,focusElCls:`${Te}-focused`})]};var ke=(0,B.Z)("Select",(ee,Te)=>{let{rootPrefixCls:Me}=Te;const Le=(0,O.TS)(ee,{rootPrefixCls:Me,inputPaddingHorizontalBase:ee.paddingSM-1,multipleSelectItemHeight:ee.multipleItemHeight});return[pe(Le)]},ee=>{const{fontSize:Te,lineHeight:Me,controlHeight:Le,controlPaddingHorizontal:Je,zIndexPopupBase:Ye,colorText:ne,fontWeightStrong:at,controlItemBgActive:Ge,controlItemBgHover:Pt,colorBgContainer:gt,colorFillSecondary:kt,controlHeightLG:Ct,controlHeightSM:Cn,colorBgContainerDisabled:Qe,colorTextDisabled:le}=ee;return{zIndexPopup:Ye+50,optionSelectedColor:ne,optionSelectedFontWeight:at,optionSelectedBg:Ge,optionActiveBg:Pt,optionPadding:`${(Le-Te*Me)/2}px ${Je}px`,optionFontSize:Te,optionLineHeight:Me,optionHeight:Le,selectorBg:gt,clearBg:gt,singleItemHeightLG:Ct,multipleItemBg:kt,multipleItemBorderColor:"transparent",multipleItemHeight:Cn,multipleItemHeightLG:Le,multipleSelectorBgDisabled:Qe,multipleItemColorDisabled:le,multipleItemBorderColorDisabled:"transparent"}})},58582:function(X,C,h){"use strict";h.d(C,{Z:function(){return I}});const v=O=>{const G={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:O==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},G),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},G),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},G),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},G),{points:["br","tr"],offset:[0,-4]})}};function I(O,B){return O||v(B)}},84443:function(X,C,h){"use strict";h.d(C,{Z:function(){return v}});function v(I,O){return O!==void 0?O:I!==null}},66339:function(X,C,h){"use strict";h.d(C,{Z:function(){return de}});var v=h(40001),I=h(19248),O=h(99267),B=h(84105),G=h(58617),F=h(47472),M=h(59301);function de(ae){let{suffixIcon:te,clearIcon:Ne,menuItemSelectedIcon:Ee,removeIcon:Xe,loading:Oe,multiple:Ce,hasFeedback:Ie,prefixCls:Re,showSuffixIcon:fe,feedbackIcon:me,showArrow:ye,componentName:pe}=ae;const ke=Ne!=null?Ne:M.createElement(I.Z,null),ee=Je=>te===null&&!Ie&&!ye?null:M.createElement(M.Fragment,null,fe!==!1&&Je,Ie&&me);let Te=null;if(te!==void 0)Te=ee(te);else if(Oe)Te=ee(M.createElement(G.Z,{spin:!0}));else{const Je=`${Re}-suffix`;Te=Ye=>{let{open:ne,showSearch:at}=Ye;return ee(ne&&at?M.createElement(F.Z,{className:Je}):M.createElement(B.Z,{className:Je}))}}let Me=null;Ee!==void 0?Me=Ee:Ce?Me=M.createElement(v.Z,null):Me=null;let Le=null;return Xe!==void 0?Le=Xe:Le=M.createElement(O.Z,null),{clearIcon:ke,suffixIcon:Te,itemIcon:Me,removeIcon:Le}}},81327:function(X,C,h){"use strict";h.d(C,{Z:function(){return Re}});var v=h(59301),I=h(92310),O=h.n(I),B=h(11592),G=h(36355),F=h(33234);const M=v.createContext({latestIndex:0}),de=M.Provider;var te=fe=>{let{className:me,index:ye,children:pe,split:ke,style:ee}=fe;const{latestIndex:Te}=v.useContext(M);return pe==null?null:v.createElement(v.Fragment,null,v.createElement("div",{className:me,style:ee},pe),ye<Te&&ke&&v.createElement("span",{className:`${me}-split`},ke))},Ne=h(2856);function Ee(fe){return["small","middle","large"].includes(fe)}function Xe(fe){return fe?typeof fe=="number"&&!Number.isNaN(fe):!1}var Oe=function(fe,me){var ye={};for(var pe in fe)Object.prototype.hasOwnProperty.call(fe,pe)&&me.indexOf(pe)<0&&(ye[pe]=fe[pe]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,pe=Object.getOwnPropertySymbols(fe);ke<pe.length;ke++)me.indexOf(pe[ke])<0&&Object.prototype.propertyIsEnumerable.call(fe,pe[ke])&&(ye[pe[ke]]=fe[pe[ke]]);return ye};const Ie=v.forwardRef((fe,me)=>{var ye,pe;const{getPrefixCls:ke,space:ee,direction:Te}=v.useContext(G.E_),{size:Me=(ee==null?void 0:ee.size)||"small",align:Le,className:Je,rootClassName:Ye,children:ne,direction:at="horizontal",prefixCls:Ge,split:Pt,style:gt,wrap:kt=!1,classNames:Ct,styles:Cn}=fe,Qe=Oe(fe,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[le,ce]=Array.isArray(Me)?Me:[Me,Me],Ht=Ee(ce),Vt=Ee(le),St=Xe(ce),sn=Xe(le),Ft=(0,B.Z)(ne,{keepEmpty:!0}),oi=Le===void 0&&at==="horizontal"?"center":Le,On=ke("space",Ge),[ni,Jn]=(0,Ne.Z)(On),Mn=O()(On,ee==null?void 0:ee.className,Jn,`${On}-${at}`,{[`${On}-rtl`]:Te==="rtl",[`${On}-align-${oi}`]:oi,[`${On}-gap-row-${ce}`]:Ht,[`${On}-gap-col-${le}`]:Vt},Je,Ye),In=O()(`${On}-item`,(ye=Ct==null?void 0:Ct.item)!==null&&ye!==void 0?ye:(pe=ee==null?void 0:ee.classNames)===null||pe===void 0?void 0:pe.item);let re=0;const z=Ft.map((Q,T)=>{var _e,It;Q!=null&&(re=T);const $e=Q&&Q.key||`${In}-${T}`;return v.createElement(te,{className:In,key:$e,index:T,split:Pt,style:(_e=Cn==null?void 0:Cn.item)!==null&&_e!==void 0?_e:(It=ee==null?void 0:ee.styles)===null||It===void 0?void 0:It.item},Q)}),k=v.useMemo(()=>({latestIndex:re}),[re]);if(Ft.length===0)return null;const j={};return kt&&(j.flexWrap="wrap"),!Vt&&sn&&(j.columnGap=le),!Ht&&St&&(j.rowGap=ce),ni(v.createElement("div",Object.assign({ref:me,className:Mn,style:Object.assign(Object.assign(Object.assign({},j),ee==null?void 0:ee.style),gt)},Qe),v.createElement(de,{value:k},z)))});Ie.Compact=F.ZP;var Re=Ie},15969:function(X,C,h){"use strict";h.d(C,{N:function(){return v}});const v=I=>({color:I.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${I.motionDurationSlow}`,"&:focus, &:hover":{color:I.colorLinkHover},"&:active":{color:I.colorLinkActive}})},78673:function(X,C,h){"use strict";h.d(C,{Z:function(){return at}});var v=h(58617),I=h(92310),O=h.n(I),B=h(96663),G=h(90493),F=h(72071),M=h(6620),de=h(59301),ae=h(18929),te=h(10228),Ne=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Ee=de.forwardRef(function(Ge,Pt){var gt,kt=Ge.prefixCls,Ct=kt===void 0?"rc-switch":kt,Cn=Ge.className,Qe=Ge.checked,le=Ge.defaultChecked,ce=Ge.disabled,Ht=Ge.loadingIcon,Vt=Ge.checkedChildren,St=Ge.unCheckedChildren,sn=Ge.onClick,Ft=Ge.onChange,oi=Ge.onKeyDown,On=(0,M.Z)(Ge,Ne),ni=(0,ae.Z)(!1,{value:Qe,defaultValue:le}),Jn=(0,F.Z)(ni,2),Mn=Jn[0],In=Jn[1];function re(Q,T){var _e=Mn;return ce||(_e=Q,In(_e),Ft==null||Ft(_e,T)),_e}function z(Q){Q.which===te.Z.LEFT?re(!1,Q):Q.which===te.Z.RIGHT&&re(!0,Q),oi==null||oi(Q)}function k(Q){var T=re(!Mn,Q);sn==null||sn(T,Q)}var j=O()(Ct,Cn,(gt={},(0,G.Z)(gt,"".concat(Ct,"-checked"),Mn),(0,G.Z)(gt,"".concat(Ct,"-disabled"),ce),gt));return de.createElement("button",(0,B.Z)({},On,{type:"button",role:"switch","aria-checked":Mn,disabled:ce,className:j,ref:Pt,onKeyDown:z,onClick:k}),Ht,de.createElement("span",{className:"".concat(Ct,"-inner")},de.createElement("span",{className:"".concat(Ct,"-inner-checked")},Vt),de.createElement("span",{className:"".concat(Ct,"-inner-unchecked")},St)))});Ee.displayName="Switch";var Xe=Ee,Oe=h(14088),Ce=h(36355),Ie=h(1684),Re=h(19716),fe=h(64993),me=h(17313),ye=h(83116),pe=h(37613);const ke=Ge=>{const{componentCls:Pt,trackHeightSM:gt,trackPadding:kt,trackMinWidthSM:Ct,innerMinMarginSM:Cn,innerMaxMarginSM:Qe,handleSizeSM:le}=Ge,ce=`${Pt}-inner`;return{[Pt]:{[`&${Pt}-small`]:{minWidth:Ct,height:gt,lineHeight:`${gt}px`,[`${Pt}-inner`]:{paddingInlineStart:Qe,paddingInlineEnd:Cn,[`${ce}-checked`]:{marginInlineStart:`calc(-100% + ${le+kt*2}px - ${Qe*2}px)`,marginInlineEnd:`calc(100% - ${le+kt*2}px + ${Qe*2}px)`},[`${ce}-unchecked`]:{marginTop:-gt,marginInlineStart:0,marginInlineEnd:0}},[`${Pt}-handle`]:{width:le,height:le},[`${Pt}-loading-icon`]:{top:(le-Ge.switchLoadingIconSize)/2,fontSize:Ge.switchLoadingIconSize},[`&${Pt}-checked`]:{[`${Pt}-inner`]:{paddingInlineStart:Cn,paddingInlineEnd:Qe,[`${ce}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${ce}-unchecked`]:{marginInlineStart:`calc(100% - ${le+kt*2}px + ${Qe*2}px)`,marginInlineEnd:`calc(-100% + ${le+kt*2}px - ${Qe*2}px)`}},[`${Pt}-handle`]:{insetInlineStart:`calc(100% - ${le+kt}px)`}},[`&:not(${Pt}-disabled):active`]:{[`&:not(${Pt}-checked) ${ce}`]:{[`${ce}-unchecked`]:{marginInlineStart:Ge.marginXXS/2,marginInlineEnd:-Ge.marginXXS/2}},[`&${Pt}-checked ${ce}`]:{[`${ce}-checked`]:{marginInlineStart:-Ge.marginXXS/2,marginInlineEnd:Ge.marginXXS/2}}}}}}},ee=Ge=>{const{componentCls:Pt,handleSize:gt}=Ge;return{[Pt]:{[`${Pt}-loading-icon${Ge.iconCls}`]:{position:"relative",top:(gt-Ge.fontSize)/2,color:Ge.switchLoadingIconColor,verticalAlign:"top"},[`&${Pt}-checked ${Pt}-loading-icon`]:{color:Ge.switchColor}}}},Te=Ge=>{const{componentCls:Pt,motion:gt,trackPadding:kt,handleBg:Ct,handleShadow:Cn,handleSize:Qe}=Ge,le=`${Pt}-handle`;return{[Pt]:{[le]:{position:"absolute",top:kt,insetInlineStart:kt,width:Qe,height:Qe,transition:`all ${Ge.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Ct,borderRadius:Qe/2,boxShadow:Cn,transition:`all ${Ge.switchDuration} ease-in-out`,content:'""'}},[`&${Pt}-checked ${le}`]:{insetInlineStart:`calc(100% - ${Qe+kt}px)`},[`&:not(${Pt}-disabled):active`]:gt?{[`${le}::before`]:{insetInlineEnd:Ge.switchHandleActiveInset,insetInlineStart:0},[`&${Pt}-checked ${le}::before`]:{insetInlineEnd:0,insetInlineStart:Ge.switchHandleActiveInset}}:{}}}},Me=Ge=>{const{componentCls:Pt,trackHeight:gt,trackPadding:kt,innerMinMargin:Ct,innerMaxMargin:Cn,handleSize:Qe}=Ge,le=`${Pt}-inner`;return{[Pt]:{[le]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Cn,paddingInlineEnd:Ct,transition:`padding-inline-start ${Ge.switchDuration} ease-in-out, padding-inline-end ${Ge.switchDuration} ease-in-out`,[`${le}-checked, ${le}-unchecked`]:{display:"block",color:Ge.colorTextLightSolid,fontSize:Ge.fontSizeSM,transition:`margin-inline-start ${Ge.switchDuration} ease-in-out, margin-inline-end ${Ge.switchDuration} ease-in-out`,pointerEvents:"none"},[`${le}-checked`]:{marginInlineStart:`calc(-100% + ${Qe+kt*2}px - ${Cn*2}px)`,marginInlineEnd:`calc(100% - ${Qe+kt*2}px + ${Cn*2}px)`},[`${le}-unchecked`]:{marginTop:-gt,marginInlineStart:0,marginInlineEnd:0}},[`&${Pt}-checked ${le}`]:{paddingInlineStart:Ct,paddingInlineEnd:Cn,[`${le}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${le}-unchecked`]:{marginInlineStart:`calc(100% - ${Qe+kt*2}px + ${Cn*2}px)`,marginInlineEnd:`calc(-100% + ${Qe+kt*2}px - ${Cn*2}px)`}},[`&:not(${Pt}-disabled):active`]:{[`&:not(${Pt}-checked) ${le}`]:{[`${le}-unchecked`]:{marginInlineStart:kt*2,marginInlineEnd:-kt*2}},[`&${Pt}-checked ${le}`]:{[`${le}-checked`]:{marginInlineStart:-kt*2,marginInlineEnd:kt*2}}}}}},Le=Ge=>{const{componentCls:Pt,trackHeight:gt,trackMinWidth:kt}=Ge;return{[Pt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,me.Wf)(Ge)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:kt,height:gt,lineHeight:`${gt}px`,verticalAlign:"middle",background:Ge.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Ge.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Pt}-disabled)`]:{background:Ge.colorTextTertiary}}),(0,me.Qy)(Ge)),{[`&${Pt}-checked`]:{background:Ge.switchColor,[`&:hover:not(${Pt}-disabled)`]:{background:Ge.colorPrimaryHover}},[`&${Pt}-loading, &${Pt}-disabled`]:{cursor:"not-allowed",opacity:Ge.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Pt}-rtl`]:{direction:"rtl"}})}};var Je=(0,ye.Z)("Switch",Ge=>{const Pt=(0,pe.TS)(Ge,{switchDuration:Ge.motionDurationMid,switchColor:Ge.colorPrimary,switchDisabledOpacity:Ge.opacityLoading,switchLoadingIconSize:Ge.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${Ge.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Le(Pt),Me(Pt),Te(Pt),ee(Pt),ke(Pt)]},Ge=>{const{fontSize:Pt,lineHeight:gt,controlHeight:kt,colorWhite:Ct}=Ge,Cn=Pt*gt,Qe=kt/2,le=2,ce=Cn-le*2,Ht=Qe-le*2;return{trackHeight:Cn,trackHeightSM:Qe,trackMinWidth:ce*2+le*4,trackMinWidthSM:Ht*2+le*2,trackPadding:le,handleBg:Ct,handleSize:ce,handleSizeSM:Ht,handleShadow:`0 2px 4px 0 ${new fe.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:ce/2,innerMaxMargin:ce+le+le*2,innerMinMarginSM:Ht/2,innerMaxMarginSM:Ht+le+le*2}}),Ye=function(Ge,Pt){var gt={};for(var kt in Ge)Object.prototype.hasOwnProperty.call(Ge,kt)&&Pt.indexOf(kt)<0&&(gt[kt]=Ge[kt]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ct=0,kt=Object.getOwnPropertySymbols(Ge);Ct<kt.length;Ct++)Pt.indexOf(kt[Ct])<0&&Object.prototype.propertyIsEnumerable.call(Ge,kt[Ct])&&(gt[kt[Ct]]=Ge[kt[Ct]]);return gt};const ne=de.forwardRef((Ge,Pt)=>{const{prefixCls:gt,size:kt,disabled:Ct,loading:Cn,className:Qe,rootClassName:le,style:ce}=Ge,Ht=Ye(Ge,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:Vt,direction:St,switch:sn}=de.useContext(Ce.E_),Ft=de.useContext(Ie.Z),oi=(Ct!=null?Ct:Ft)||Cn,On=Vt("switch",gt),ni=de.createElement("div",{className:`${On}-handle`},Cn&&de.createElement(v.Z,{className:`${On}-loading-icon`})),[Jn,Mn]=Je(On),In=(0,Re.Z)(kt),re=O()(sn==null?void 0:sn.className,{[`${On}-small`]:In==="small",[`${On}-loading`]:Cn,[`${On}-rtl`]:St==="rtl"},Qe,le,Mn),z=Object.assign(Object.assign({},sn==null?void 0:sn.style),ce);return Jn(de.createElement(Oe.Z,{component:"Switch"},de.createElement(Xe,Object.assign({},Ht,{prefixCls:On,className:re,style:z,disabled:oi,ref:Pt,loadingIcon:ni}))))});ne.__ANT_SWITCH=!0;var at=ne},1710:function(X,C,h){"use strict";h.d(C,{default:function(){return Au}});var v={},I="rc-table-internal-hook",O=h(72071),B=h(6089),G=h(34280),F=h(13697),M=h(59301),de=h(4676);function ae(we){var De=M.createContext(void 0),dt=function(_t){var Dt=_t.value,ve=_t.children,bn=M.useRef(Dt);bn.current=Dt;var ln=M.useState(function(){return{getValue:function(){return bn.current},listeners:new Set}}),zn=(0,O.Z)(ln,1),jn=zn[0];return(0,G.Z)(function(){(0,de.unstable_batchedUpdates)(function(){jn.listeners.forEach(function($n){$n(Dt)})})},[Dt]),M.createElement(De.Provider,{value:jn},ve)};return{Context:De,Provider:dt,defaultValue:we}}function te(we,De){var dt=(0,B.Z)(typeof De=="function"?De:function($n){if(De===void 0)return $n;if(!Array.isArray(De))return $n[De];var hi={};return De.forEach(function(gi){hi[gi]=$n[gi]}),hi}),xt=M.useContext(we==null?void 0:we.Context),_t=xt||{},Dt=_t.listeners,ve=_t.getValue,bn=M.useRef();bn.current=dt(xt?ve():we==null?void 0:we.defaultValue);var ln=M.useState({}),zn=(0,O.Z)(ln,2),jn=zn[1];return(0,G.Z)(function(){if(!xt)return;function $n(hi){var gi=dt(hi);(0,F.Z)(bn.current,gi,!0)||jn({})}return Dt.add($n),function(){Dt.delete($n)}},[xt]),bn.current}var Ne=h(96663),Ee=h(8654);function Xe(){var we=M.createContext(null);function De(){return M.useContext(we)}function dt(_t,Dt){var ve=(0,Ee.Yr)(_t),bn=function(zn,jn){var $n=ve?{ref:jn}:{},hi=M.useRef(0),gi=M.useRef(zn),ti=De();return ti!==null?M.createElement(_t,(0,Ne.Z)({},zn,$n)):((!Dt||Dt(gi.current,zn))&&(hi.current+=1),gi.current=zn,M.createElement(we.Provider,{value:hi.current},M.createElement(_t,(0,Ne.Z)({},zn,$n))))};return ve?M.forwardRef(bn):bn}function xt(_t,Dt){var ve=(0,Ee.Yr)(_t),bn=function(zn,jn){var $n=ve?{ref:jn}:{};return De(),M.createElement(_t,(0,Ne.Z)({},zn,$n))};return ve?M.memo(M.forwardRef(bn),Dt):M.memo(bn,Dt)}return{makeImmutable:dt,responseImmutable:xt,useImmutableMark:De}}var Oe=Xe(),Ce=Oe.makeImmutable,Ie=Oe.responseImmutable,Re=Oe.useImmutableMark,fe=Xe(),me=fe.makeImmutable,ye=fe.responseImmutable,pe=fe.useImmutableMark,ke=ae(),ee=ke;function Te(we,De){var dt=M.useRef(0);dt.current+=1;var xt=M.useRef(we),_t=[];Object.keys(we||{}).map(function(ve){var bn;(we==null?void 0:we[ve])!==((bn=xt.current)===null||bn===void 0?void 0:bn[ve])&&_t.push(ve)}),xt.current=we;var Dt=M.useRef([]);return _t.length&&(Dt.current=_t),M.useDebugValue(dt.current),M.useDebugValue(Dt.current.join(", ")),De&&console.log("".concat(De,":"),dt.current,Dt.current),dt.current}var Me=null,Le=M.memo(function(){var we=Te();return M.createElement("h1",null,"Render Times: ",we)});Le.displayName="RenderBlock";var Je=h(20135),Ye=h(44127),ne=h(90493),at=h(92310),Ge=h.n(at),Pt=h(80547),gt=h(97938),kt=h(48736),Ct=M.createContext({renderWithProps:!1}),Cn=Ct,Qe="RC_TABLE_KEY";function le(we){return we==null?[]:Array.isArray(we)?we:[we]}function ce(we){var De=[],dt={};return we.forEach(function(xt){for(var _t=xt||{},Dt=_t.key,ve=_t.dataIndex,bn=Dt||le(ve).join("-")||Qe;dt[bn];)bn="".concat(bn,"_next");dt[bn]=!0,De.push(bn)}),De}function Ht(we){return we!=null}function Vt(we){return we&&(0,Je.Z)(we)==="object"&&!Array.isArray(we)&&!M.isValidElement(we)}function St(we,De,dt,xt,_t,Dt){var ve=M.useContext(Cn),bn=pe(),ln=(0,Pt.Z)(function(){if(Ht(xt))return[xt];var zn=De==null||De===""?[]:Array.isArray(De)?De:[De],jn=(0,gt.Z)(we,zn),$n=jn,hi=void 0;if(_t){var gi=_t(jn,we,dt);Vt(gi)?($n=gi.children,hi=gi.props,ve.renderWithProps=!0):$n=gi}return[$n,hi]},[bn,we,xt,De,_t,dt],function(zn,jn){if(Dt){var $n=(0,O.Z)(zn,2),hi=$n[1],gi=(0,O.Z)(jn,2),ti=gi[1];return Dt(ti,hi)}return ve.renderWithProps?!0:!(0,F.Z)(zn,jn,!0)});return ln}function sn(we,De,dt,xt){var _t=we+De-1;return we<=xt&&_t>=dt}function Ft(we,De){return te(ee,function(dt){var xt=sn(we,De||1,dt.hoverStartRow,dt.hoverEndRow);return[xt,dt.onHover]})}var oi=function(De){var dt=De.ellipsis,xt=De.rowType,_t=De.children,Dt,ve=dt===!0?{showTitle:!0}:dt;return ve&&(ve.showTitle||xt==="header")&&(typeof _t=="string"||typeof _t=="number"?Dt=_t.toString():M.isValidElement(_t)&&typeof _t.props.children=="string"&&(Dt=_t.props.children)),Dt};function On(we){var De,dt,xt,_t,Dt,ve,bn,ln,zn=we.component,jn=we.children,$n=we.ellipsis,hi=we.scope,gi=we.prefixCls,ti=we.className,E=we.align,P=we.record,W=we.render,J=we.dataIndex,ge=we.renderIndex,Ae=we.shouldCellUpdate,He=we.index,it=we.rowType,jt=we.colSpan,Qt=we.rowSpan,bt=we.fixLeft,en=we.fixRight,Gt=we.firstFixLeft,wt=we.lastFixLeft,ii=we.firstFixRight,ki=we.lastFixRight,ji=we.appendNode,si=we.additionalProps,vi=si===void 0?{}:si,Pi=we.isSticky,Mr="".concat(gi,"-cell"),Xr=te(ee,["supportSticky","allColumnsFixedLeft"]),ui=Xr.supportSticky,io=Xr.allColumnsFixedLeft,bo=St(P,J,ge,jn,W,Ae),dr=(0,O.Z)(bo,2),Qi=dr[0],oo=dr[1],to={},pr=typeof bt=="number"&&ui,_r=typeof en=="number"&&ui;pr&&(to.position="sticky",to.left=bt),_r&&(to.position="sticky",to.right=en);var Gi=(De=(dt=(xt=oo==null?void 0:oo.colSpan)!==null&&xt!==void 0?xt:vi.colSpan)!==null&&dt!==void 0?dt:jt)!==null&&De!==void 0?De:1,ir=(_t=(Dt=(ve=oo==null?void 0:oo.rowSpan)!==null&&ve!==void 0?ve:vi.rowSpan)!==null&&Dt!==void 0?Dt:Qt)!==null&&_t!==void 0?_t:1,vr=Ft(He,ir),sr=(0,O.Z)(vr,2),ho=sr[0],$t=sr[1],zr=function(ta){var ya;P&&$t(He,He+ir-1),vi==null||(ya=vi.onMouseEnter)===null||ya===void 0||ya.call(vi,ta)},fo=function(ta){var ya;P&&$t(-1,-1),vi==null||(ya=vi.onMouseLeave)===null||ya===void 0||ya.call(vi,ta)};if(Gi===0||ir===0)return null;var un=(bn=vi.title)!==null&&bn!==void 0?bn:oi({rowType:it,ellipsis:$n,children:Qi}),da=Ge()(Mr,ti,(ln={},(0,ne.Z)(ln,"".concat(Mr,"-fix-left"),pr&&ui),(0,ne.Z)(ln,"".concat(Mr,"-fix-left-first"),Gt&&ui),(0,ne.Z)(ln,"".concat(Mr,"-fix-left-last"),wt&&ui),(0,ne.Z)(ln,"".concat(Mr,"-fix-left-all"),wt&&io&&ui),(0,ne.Z)(ln,"".concat(Mr,"-fix-right"),_r&&ui),(0,ne.Z)(ln,"".concat(Mr,"-fix-right-first"),ii&&ui),(0,ne.Z)(ln,"".concat(Mr,"-fix-right-last"),ki&&ui),(0,ne.Z)(ln,"".concat(Mr,"-ellipsis"),$n),(0,ne.Z)(ln,"".concat(Mr,"-with-append"),ji),(0,ne.Z)(ln,"".concat(Mr,"-fix-sticky"),(pr||_r)&&Pi&&ui),(0,ne.Z)(ln,"".concat(Mr,"-row-hover"),!oo&&ho),ln),vi.className,oo==null?void 0:oo.className),Ta={};E&&(Ta.textAlign=E);var es=(0,Ye.Z)((0,Ye.Z)((0,Ye.Z)((0,Ye.Z)({},to),vi.style),Ta),oo==null?void 0:oo.style),Fo=Qi;return(0,Je.Z)(Fo)==="object"&&!Array.isArray(Fo)&&!M.isValidElement(Fo)&&(Fo=null),$n&&(wt||ii)&&(Fo=M.createElement("span",{className:"".concat(Mr,"-content")},Fo)),M.createElement(zn,(0,Ne.Z)({},oo,vi,{className:da,style:es,title:un,scope:hi,onMouseEnter:zr,onMouseLeave:fo,colSpan:Gi!==1?Gi:null,rowSpan:ir!==1?ir:null}),ji,Fo)}var ni=M.memo(On);function Jn(we,De,dt,xt,_t,Dt){var ve=dt[we]||{},bn=dt[De]||{},ln,zn;ve.fixed==="left"?ln=xt.left[_t==="rtl"?De:we]:bn.fixed==="right"&&(zn=xt.right[_t==="rtl"?we:De]);var jn=!1,$n=!1,hi=!1,gi=!1,ti=dt[De+1],E=dt[we-1],P=!(Dt!=null&&Dt.children);if(_t==="rtl"){if(ln!==void 0){var W=E&&E.fixed==="left";gi=!W&&P}else if(zn!==void 0){var J=ti&&ti.fixed==="right";hi=!J&&P}}else if(ln!==void 0){var ge=ti&&ti.fixed==="left";jn=!ge&&P}else if(zn!==void 0){var Ae=E&&E.fixed==="right";$n=!Ae&&P}return{fixLeft:ln,fixRight:zn,lastFixLeft:jn,firstFixRight:$n,lastFixRight:hi,firstFixLeft:gi,isSticky:xt.isSticky}}var Mn=M.createContext({}),In=Mn;function re(we){var De=we.className,dt=we.index,xt=we.children,_t=we.colSpan,Dt=_t===void 0?1:_t,ve=we.rowSpan,bn=we.align,ln=te(ee,["prefixCls","direction"]),zn=ln.prefixCls,jn=ln.direction,$n=M.useContext(In),hi=$n.scrollColumnIndex,gi=$n.stickyOffsets,ti=$n.flattenColumns,E=$n.columns,P=dt+Dt-1,W=P+1===hi?Dt+1:Dt,J=Jn(dt,dt+W-1,ti,gi,jn,E==null?void 0:E[dt]);return M.createElement(ni,(0,Ne.Z)({className:De,index:dt,component:"td",prefixCls:zn,record:null,dataIndex:null,align:bn,colSpan:W,rowSpan:ve,render:function(){return xt}},J))}var z=h(6620),k=["children"];function j(we){var De=we.children,dt=(0,z.Z)(we,k);return M.createElement("tr",dt,De)}function Q(we){var De=we.children;return De}Q.Row=j,Q.Cell=re;var T=Q;function _e(we){var De=we.children,dt=we.stickyOffsets,xt=we.flattenColumns,_t=we.columns,Dt=te(ee,"prefixCls"),ve=xt.length-1,bn=xt[ve],ln=M.useMemo(function(){return{stickyOffsets:dt,flattenColumns:xt,scrollColumnIndex:bn!=null&&bn.scrollbar?ve:null,columns:_t}},[bn,xt,ve,dt,_t]);return M.createElement(In.Provider,{value:ln},M.createElement("tfoot",{className:"".concat(Dt,"-summary")},De))}var It=ye(_e),$e=T,Pe=h(70425),vt=h(29301),ut=h(29194),tt=h(24514),Et=h(75152),pn=h(26112);function nn(we,De,dt,xt,_t,Dt,ve){we.push({record:De,indent:dt,index:ve});var bn=Dt(De),ln=_t==null?void 0:_t.has(bn);if(De&&Array.isArray(De[xt])&&ln)for(var zn=0;zn<De[xt].length;zn+=1)nn(we,De[xt][zn],dt+1,xt,_t,Dt,zn)}function Kt(we,De,dt,xt){var _t=M.useMemo(function(){if(dt!=null&&dt.size){for(var Dt=[],ve=0;ve<(we==null?void 0:we.length);ve+=1){var bn=we[ve];nn(Dt,bn,0,De,dt,xt,ve)}return Dt}return we==null?void 0:we.map(function(ln,zn){return{record:ln,indent:0,index:zn}})},[we,De,dt,xt]);return _t}function hn(we){var De=we.prefixCls,dt=we.children,xt=we.component,_t=we.cellComponent,Dt=we.className,ve=we.expanded,bn=we.colSpan,ln=we.isEmpty,zn=te(ee,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),jn=zn.scrollbarSize,$n=zn.fixHeader,hi=zn.fixColumn,gi=zn.componentWidth,ti=zn.horizonScroll,E=dt;return(ln?ti&&gi:hi)&&(E=M.createElement("div",{style:{width:gi-($n?jn:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(De,"-expanded-row-fixed")},E)),M.createElement(xt,{className:Dt,style:{display:ve?null:"none"}},M.createElement(ni,{component:_t,prefixCls:De,colSpan:bn},E))}var an=hn;function et(we,De,dt,xt){var _t=te(ee,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Dt=_t.flattenColumns,ve=_t.expandableType,bn=_t.expandedKeys,ln=_t.childrenColumnName,zn=_t.onTriggerExpand,jn=_t.rowExpandable,$n=_t.onRow,hi=_t.expandRowByClick,gi=_t.rowClassName,ti=ve==="nest",E=ve==="row"&&(!jn||jn(we)),P=E||ti,W=bn&&bn.has(De),J=ln&&we&&we[ln],ge=(0,Pe.useEvent)(zn),Ae=$n==null?void 0:$n(we,dt),He=Ae==null?void 0:Ae.onClick,it=function(en){hi&&P&&zn(we,en);for(var Gt=arguments.length,wt=new Array(Gt>1?Gt-1:0),ii=1;ii<Gt;ii++)wt[ii-1]=arguments[ii];He==null||He.apply(void 0,[en].concat(wt))},jt;typeof gi=="string"?jt=gi:typeof gi=="function"&&(jt=gi(we,dt,xt));var Qt=ce(Dt);return(0,Ye.Z)((0,Ye.Z)({},_t),{},{columnsKey:Qt,nestExpandable:ti,expanded:W,hasNestChildren:J,record:we,onTriggerExpand:ge,rowSupportExpand:E,expandable:P,rowProps:(0,Ye.Z)((0,Ye.Z)({},Ae),{},{className:Ge()(jt,Ae==null?void 0:Ae.className),onClick:it})})}function zt(we,De,dt,xt,_t){var Dt=we.record,ve=we.prefixCls,bn=we.columnsKey,ln=we.fixedInfoList,zn=we.expandIconColumnIndex,jn=we.nestExpandable,$n=we.indentSize,hi=we.expandIcon,gi=we.expanded,ti=we.hasNestChildren,E=we.onTriggerExpand,P=bn[dt],W=ln[dt],J;dt===(zn||0)&&jn&&(J=M.createElement(M.Fragment,null,M.createElement("span",{style:{paddingLeft:"".concat($n*xt,"px")},className:"".concat(ve,"-row-indent indent-level-").concat(xt)}),hi({prefixCls:ve,expanded:gi,expandable:ti,record:Dt,onExpand:E})));var ge;return De.onCell&&(ge=De.onCell(Dt,_t)),{key:P,fixedInfo:W,appendCellNode:J,additionalCellProps:ge||{}}}function dn(we){var De=we.className,dt=we.style,xt=we.record,_t=we.index,Dt=we.renderIndex,ve=we.rowKey,bn=we.indent,ln=bn===void 0?0:bn,zn=we.rowComponent,jn=we.cellComponent,$n=we.scopeCellComponent,hi=et(xt,ve,_t,ln),gi=hi.prefixCls,ti=hi.flattenColumns,E=hi.expandedRowClassName,P=hi.expandedRowRender,W=hi.rowProps,J=hi.expanded,ge=hi.rowSupportExpand,Ae=M.useState(!1),He=(0,O.Z)(Ae,2),it=He[0],jt=He[1];M.useEffect(function(){J&&jt(!0)},[J]);var Qt=M.createElement(zn,(0,Ne.Z)({},W,{"data-row-key":ve,className:Ge()(De,"".concat(gi,"-row"),"".concat(gi,"-row-level-").concat(ln),W==null?void 0:W.className),style:(0,Ye.Z)((0,Ye.Z)({},dt),W==null?void 0:W.style)}),ti.map(function(wt,ii){var ki=wt.render,ji=wt.dataIndex,si=wt.className,vi=zt(hi,wt,ii,ln,_t),Pi=vi.key,Mr=vi.fixedInfo,Xr=vi.appendCellNode,ui=vi.additionalCellProps;return M.createElement(ni,(0,Ne.Z)({className:si,ellipsis:wt.ellipsis,align:wt.align,scope:wt.rowScope,component:wt.rowScope?$n:jn,prefixCls:gi,key:Pi,record:xt,index:_t,renderIndex:Dt,dataIndex:ji,render:ki,shouldCellUpdate:wt.shouldCellUpdate},Mr,{appendNode:Xr,additionalProps:ui}))})),bt;if(ge&&(it||J)){var en=P(xt,_t,ln+1,J),Gt=E&&E(xt,_t,ln);bt=M.createElement(an,{expanded:J,className:Ge()("".concat(gi,"-expanded-row"),"".concat(gi,"-expanded-row-level-").concat(ln+1),Gt),prefixCls:gi,component:zn,cellComponent:jn,colSpan:ti.length,isEmpty:!1},en)}return M.createElement(M.Fragment,null,Qt,bt)}dn.displayName="BodyRow";var rn=ye(dn);function ze(we){var De=we.columnKey,dt=we.onColumnResize,xt=M.useRef();return M.useEffect(function(){xt.current&&dt(De,xt.current.offsetWidth)},[]),M.createElement(vt.Z,{data:De},M.createElement("td",{ref:xt,style:{padding:0,border:0,height:0}},M.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Un(we){var De=we.prefixCls,dt=we.columnsKey,xt=we.onColumnResize;return M.createElement("tr",{"aria-hidden":"true",className:"".concat(De,"-measure-row"),style:{height:0,fontSize:0}},M.createElement(vt.Z.Collection,{onBatchResize:function(Dt){Dt.forEach(function(ve){var bn=ve.data,ln=ve.size;xt(bn,ln.offsetWidth)})}},dt.map(function(_t){return M.createElement(ze,{key:_t,columnKey:_t,onColumnResize:xt})})))}function yn(we){var De=we.data,dt=we.measureColumnWidth,xt=te(ee,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),_t=xt.prefixCls,Dt=xt.getComponent,ve=xt.onColumnResize,bn=xt.flattenColumns,ln=xt.getRowKey,zn=xt.expandedKeys,jn=xt.childrenColumnName,$n=xt.emptyNode,hi=Kt(De,jn,zn,ln),gi=M.useRef({renderWithProps:!1}),ti=Dt(["body","wrapper"],"tbody"),E=Dt(["body","row"],"tr"),P=Dt(["body","cell"],"td"),W=Dt(["body","cell"],"th"),J;De.length?J=hi.map(function(Ae,He){var it=Ae.record,jt=Ae.indent,Qt=Ae.index,bt=ln(it,He);return M.createElement(rn,{key:bt,rowKey:bt,record:it,index:He,renderIndex:Qt,rowComponent:E,cellComponent:P,scopeCellComponent:W,getRowKey:ln,indent:jt})}):J=M.createElement(an,{expanded:!0,className:"".concat(_t,"-placeholder"),prefixCls:_t,component:E,cellComponent:P,colSpan:bn.length,isEmpty:!0},$n);var ge=ce(bn);return M.createElement(Cn.Provider,{value:gi.current},M.createElement(ti,{className:"".concat(_t,"-tbody")},dt&&M.createElement(Un,{prefixCls:_t,columnsKey:ge,onColumnResize:ve}),J))}yn.displayName="Body";var Bt=ye(yn),Si=["expandable"],_i="RC_TABLE_INTERNAL_COL_DEFINE";function Ii(we){var De=we.expandable,dt=(0,z.Z)(we,Si),xt;return"expandable"in we?xt=(0,Ye.Z)((0,Ye.Z)({},dt),De):xt=dt,xt.showExpandColumn===!1&&(xt.expandIconColumnIndex=-1),xt}var cn=["columnType"];function fr(we){for(var De=we.colWidths,dt=we.columns,xt=we.columCount,_t=[],Dt=xt||dt.length,ve=!1,bn=Dt-1;bn>=0;bn-=1){var ln=De[bn],zn=dt&&dt[bn],jn=zn&&zn[_i];if(ln||jn||ve){var $n=jn||{},hi=$n.columnType,gi=(0,z.Z)($n,cn);_t.unshift(M.createElement("col",(0,Ne.Z)({key:bn,style:{width:ln}},gi))),ve=!0}}return M.createElement("colgroup",null,_t)}var Xi=fr,ei=h(19127),Tr=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function ur(we,De){return(0,M.useMemo)(function(){for(var dt=[],xt=0;xt<De;xt+=1){var _t=we[xt];if(_t!==void 0)dt[xt]=_t;else return null}return dt},[we.join("_"),De])}var U=M.forwardRef(function(we,De){var dt=we.className,xt=we.noData,_t=we.columns,Dt=we.flattenColumns,ve=we.colWidths,bn=we.columCount,ln=we.stickyOffsets,zn=we.direction,jn=we.fixHeader,$n=we.stickyTopOffset,hi=we.stickyBottomOffset,gi=we.stickyClassName,ti=we.onScroll,E=we.maxContentScroll,P=we.children,W=(0,z.Z)(we,Tr),J=te(ee,["prefixCls","scrollbarSize","isSticky"]),ge=J.prefixCls,Ae=J.scrollbarSize,He=J.isSticky,it=He&&!jn?0:Ae,jt=M.useRef(null),Qt=M.useCallback(function(si){(0,Ee.mH)(De,si),(0,Ee.mH)(jt,si)},[]);M.useEffect(function(){var si;function vi(Pi){var Mr=Pi,Xr=Mr.currentTarget,ui=Mr.deltaX;ui&&(ti({currentTarget:Xr,scrollLeft:Xr.scrollLeft+ui}),Pi.preventDefault())}return(si=jt.current)===null||si===void 0||si.addEventListener("wheel",vi),function(){var Pi;(Pi=jt.current)===null||Pi===void 0||Pi.removeEventListener("wheel",vi)}},[]);var bt=M.useMemo(function(){return Dt.every(function(si){return si.width})},[Dt]),en=Dt[Dt.length-1],Gt={fixed:en?en.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(ge,"-cell-scrollbar")}}},wt=(0,M.useMemo)(function(){return it?[].concat((0,ei.Z)(_t),[Gt]):_t},[it,_t]),ii=(0,M.useMemo)(function(){return it?[].concat((0,ei.Z)(Dt),[Gt]):Dt},[it,Dt]),ki=(0,M.useMemo)(function(){var si=ln.right,vi=ln.left;return(0,Ye.Z)((0,Ye.Z)({},ln),{},{left:zn==="rtl"?[].concat((0,ei.Z)(vi.map(function(Pi){return Pi+it})),[0]):vi,right:zn==="rtl"?si:[].concat((0,ei.Z)(si.map(function(Pi){return Pi+it})),[0]),isSticky:He})},[it,ln,He]),ji=ur(ve,bn);return M.createElement("div",{style:(0,Ye.Z)({overflow:"hidden"},He?{top:$n,bottom:hi}:{}),ref:Qt,className:Ge()(dt,(0,ne.Z)({},gi,!!gi))},M.createElement("table",{style:{tableLayout:"fixed",visibility:xt||ji?null:"hidden"}},(!xt||!E||bt)&&M.createElement(Xi,{colWidths:ji?[].concat((0,ei.Z)(ji),[it]):[],columCount:bn+1,columns:ii}),P((0,Ye.Z)((0,Ye.Z)({},W),{},{stickyOffsets:ki,columns:wt,flattenColumns:ii}))))});U.displayName="FixedHolder";var mr=M.memo(U);function Er(we){var De=we.cells,dt=we.stickyOffsets,xt=we.flattenColumns,_t=we.rowComponent,Dt=we.cellComponent,ve=we.tdCellComponent,bn=we.onHeaderRow,ln=we.index,zn=te(ee,["prefixCls","direction"]),jn=zn.prefixCls,$n=zn.direction,hi;bn&&(hi=bn(De.map(function(ti){return ti.column}),ln));var gi=ce(De.map(function(ti){return ti.column}));return M.createElement(_t,hi,De.map(function(ti,E){var P=ti.column,W=Jn(ti.colStart,ti.colEnd,xt,dt,$n,P),J;return P&&P.onHeaderCell&&(J=ti.column.onHeaderCell(P)),M.createElement(ni,(0,Ne.Z)({},ti,{scope:P.title?ti.colSpan>1?"colgroup":"col":null,ellipsis:P.ellipsis,align:P.align,component:P.title?Dt:ve,prefixCls:jn,key:gi[E]},W,{additionalProps:J,rowType:"header"}))}))}Er.displayName="HeaderRow";var wr=Er;function qr(we){var De=[];function dt(ve,bn){var ln=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;De[ln]=De[ln]||[];var zn=bn,jn=ve.filter(Boolean).map(function($n){var hi={key:$n.key,className:$n.className||"",children:$n.title,column:$n,colStart:zn},gi=1,ti=$n.children;return ti&&ti.length>0&&(gi=dt(ti,zn,ln+1).reduce(function(E,P){return E+P},0),hi.hasSubColumns=!0),"colSpan"in $n&&(gi=$n.colSpan),"rowSpan"in $n&&(hi.rowSpan=$n.rowSpan),hi.colSpan=gi,hi.colEnd=hi.colStart+gi-1,De[ln].push(hi),zn+=gi,gi});return jn}dt(we,0);for(var xt=De.length,_t=function(bn){De[bn].forEach(function(ln){!("rowSpan"in ln)&&!ln.hasSubColumns&&(ln.rowSpan=xt-bn)})},Dt=0;Dt<xt;Dt+=1)_t(Dt);return De}function xo(we){var De=we.stickyOffsets,dt=we.columns,xt=we.flattenColumns,_t=we.onHeaderRow,Dt=te(ee,["prefixCls","getComponent"]),ve=Dt.prefixCls,bn=Dt.getComponent,ln=M.useMemo(function(){return qr(dt)},[dt]),zn=bn(["header","wrapper"],"thead"),jn=bn(["header","row"],"tr"),$n=bn(["header","cell"],"th"),hi=bn(["header","cell"],"td");return M.createElement(zn,{className:"".concat(ve,"-thead")},ln.map(function(gi,ti){var E=M.createElement(wr,{key:ti,flattenColumns:xt,cells:gi,stickyOffsets:De,rowComponent:jn,cellComponent:$n,tdCellComponent:hi,onHeaderRow:_t,index:ti});return E}))}var kr=ye(xo),no=h(11592);function rr(we){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof De=="number"?De:De.endsWith("%")?we*parseFloat(De)/100:null}function Bi(we,De){return M.useMemo(function(){if(De&&De>0){var dt=0,xt=0;we.forEach(function(zn){var jn=rr(De,zn.width);jn?dt+=jn:xt+=1});var _t=De-dt,Dt=xt,ve=_t/xt,bn=0,ln=we.map(function(zn){var jn=(0,Ye.Z)({},zn),$n=rr(De,jn.width);if($n)jn.width=$n;else{var hi=Math.floor(ve);jn.width=Dt===1?_t:hi,_t-=hi,Dt-=1}return bn+=jn.width,jn});return[ln,bn]}return[we,De]},[we,De])}var yi=["children"],ht=["fixed"];function _n(we){return(0,no.Z)(we).filter(function(De){return M.isValidElement(De)}).map(function(De){var dt=De.key,xt=De.props,_t=xt.children,Dt=(0,z.Z)(xt,yi),ve=(0,Ye.Z)({key:dt},Dt);return _t&&(ve.children=_n(_t)),ve})}function Vn(we){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return we.filter(function(dt){return dt&&(0,Je.Z)(dt)==="object"}).reduce(function(dt,xt,_t){var Dt=xt.fixed,ve=Dt===!0?"left":Dt,bn="".concat(De,"-").concat(_t),ln=xt.children;return ln&&ln.length>0?[].concat((0,ei.Z)(dt),(0,ei.Z)(Vn(ln,bn).map(function(zn){return(0,Ye.Z)({fixed:ve},zn)}))):[].concat((0,ei.Z)(dt),[(0,Ye.Z)((0,Ye.Z)({key:bn},xt),{},{fixed:ve})])},[])}function pt(we){for(var De=!0,dt=0;dt<we.length;dt+=1){var xt=we[dt];if(De&&xt.fixed!=="left")De=!1;else if(!De&&xt.fixed==="left"){warning(!1,"Index ".concat(dt-1," of `columns` missing `fixed='left'` prop."));break}}for(var _t=!0,Dt=we.length-1;Dt>=0;Dt-=1){var ve=we[Dt];if(_t&&ve.fixed!=="right")_t=!1;else if(!_t&&ve.fixed==="right"){warning(!1,"Index ".concat(Dt+1," of `columns` missing `fixed='right'` prop."));break}}}function Ke(we){return we.map(function(De){var dt=De.fixed,xt=(0,z.Z)(De,ht),_t=dt;return dt==="left"?_t="right":dt==="right"&&(_t="left"),(0,Ye.Z)({fixed:_t},xt)})}function vn(we,De){var dt=we.prefixCls,xt=we.columns,_t=we.children,Dt=we.expandable,ve=we.expandedKeys,bn=we.columnTitle,ln=we.getRowKey,zn=we.onTriggerExpand,jn=we.expandIcon,$n=we.rowExpandable,hi=we.expandIconColumnIndex,gi=we.direction,ti=we.expandRowByClick,E=we.columnWidth,P=we.fixed,W=we.scrollWidth,J=M.useMemo(function(){return xt||_n(_t)},[xt,_t]),ge=M.useMemo(function(){if(Dt){var en,Gt=J.slice();if(!Gt.includes(v)){var wt=hi||0;wt>=0&&Gt.splice(wt,0,v)}var ii=Gt.indexOf(v);Gt=Gt.filter(function(vi,Pi){return vi!==v||Pi===ii});var ki=J[ii],ji;(P==="left"||P)&&!hi?ji="left":(P==="right"||P)&&hi===J.length?ji="right":ji=ki?ki.fixed:null;var si=(en={},(0,ne.Z)(en,_i,{className:"".concat(dt,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,ne.Z)(en,"title",bn),(0,ne.Z)(en,"fixed",ji),(0,ne.Z)(en,"className","".concat(dt,"-row-expand-icon-cell")),(0,ne.Z)(en,"width",E),(0,ne.Z)(en,"render",function(Pi,Mr,Xr){var ui=ln(Mr,Xr),io=ve.has(ui),bo=$n?$n(Mr):!0,dr=jn({prefixCls:dt,expanded:io,expandable:bo,record:Mr,onExpand:zn});return ti?M.createElement("span",{onClick:function(oo){return oo.stopPropagation()}},dr):dr}),en);return Gt.map(function(vi){return vi===v?si:vi})}return J.filter(function(vi){return vi!==v})},[Dt,J,ln,ve,jn,gi]),Ae=M.useMemo(function(){var en=ge;return De&&(en=De(en)),en.length||(en=[{render:function(){return null}}]),en},[De,ge,gi]),He=M.useMemo(function(){return gi==="rtl"?Ke(Vn(Ae)):Vn(Ae)},[Ae,gi,W]),it=Bi(He,W),jt=(0,O.Z)(it,2),Qt=jt[0],bt=jt[1];return[Ae,Qt,bt]}var Fn=vn;function on(we){var De,dt=we.prefixCls,xt=we.record,_t=we.onExpand,Dt=we.expanded,ve=we.expandable,bn="".concat(dt,"-row-expand-icon");if(!ve)return M.createElement("span",{className:Ge()(bn,"".concat(dt,"-row-spaced"))});var ln=function(jn){_t(xt,jn),jn.stopPropagation()};return M.createElement("span",{className:Ge()(bn,(De={},(0,ne.Z)(De,"".concat(dt,"-row-expanded"),Dt),(0,ne.Z)(De,"".concat(dt,"-row-collapsed"),!Dt),De)),onClick:ln})}function Nt(we,De,dt){var xt=[];function _t(Dt){(Dt||[]).forEach(function(ve,bn){xt.push(De(ve,bn)),_t(ve[dt])})}return _t(we),xt}function Ve(we,De,dt){var xt=Ii(we),_t=xt.expandIcon,Dt=xt.expandedRowKeys,ve=xt.defaultExpandedRowKeys,bn=xt.defaultExpandAllRows,ln=xt.expandedRowRender,zn=xt.onExpand,jn=xt.onExpandedRowsChange,$n=xt.childrenColumnName,hi=_t||on,gi=$n||"children",ti=M.useMemo(function(){return ln?"row":we.expandable&&we.internalHooks===I&&we.expandable.__PARENT_RENDER_ICON__||De.some(function(He){return He&&(0,Je.Z)(He)==="object"&&He[gi]})?"nest":!1},[!!ln,De]),E=M.useState(function(){return ve||(bn?Nt(De,dt,gi):[])}),P=(0,O.Z)(E,2),W=P[0],J=P[1],ge=M.useMemo(function(){return new Set(Dt||W||[])},[Dt,W]),Ae=M.useCallback(function(He){var it=dt(He,De.indexOf(He)),jt,Qt=ge.has(it);Qt?(ge.delete(it),jt=(0,ei.Z)(ge)):jt=[].concat((0,ei.Z)(ge),[it]),J(jt),zn&&zn(!Qt,He),jn&&jn(jt)},[dt,ge,De,zn,jn]);return[xt,ti,ge,hi,gi,Ae]}function Ut(we,De,dt,xt){var _t=we.map(function(Dt,ve){return Jn(ve,ve,we,De,dt,xt==null?void 0:xt[ve])});return(0,Pt.Z)(function(){return _t},[_t],function(Dt,ve){return!(0,F.Z)(Dt,ve)})}function Lt(we){var De=(0,M.useRef)(we),dt=(0,M.useState)({}),xt=(0,O.Z)(dt,2),_t=xt[1],Dt=(0,M.useRef)(null),ve=(0,M.useRef)([]);function bn(ln){ve.current.push(ln);var zn=Promise.resolve();Dt.current=zn,zn.then(function(){if(Dt.current===zn){var jn=ve.current,$n=De.current;ve.current=[],jn.forEach(function(hi){De.current=hi(De.current)}),Dt.current=null,$n!==De.current&&_t({})}})}return(0,M.useEffect)(function(){return function(){Dt.current=null}},[]),[De.current,bn]}function Wn(we){var De=(0,M.useRef)(we||null),dt=(0,M.useRef)();function xt(){window.clearTimeout(dt.current)}function _t(ve){De.current=ve,xt(),dt.current=window.setTimeout(function(){De.current=null,dt.current=void 0},100)}function Dt(){return De.current}return(0,M.useEffect)(function(){return xt},[]),[_t,Dt]}function ot(){var we=M.useState(-1),De=(0,O.Z)(we,2),dt=De[0],xt=De[1],_t=M.useState(-1),Dt=(0,O.Z)(_t,2),ve=Dt[0],bn=Dt[1],ln=M.useCallback(function(zn,jn){xt(zn),bn(jn)},[]);return[dt,ve,ln]}var fn=h(47273),yt=(0,fn.Z)()?window:null;function je(we,De){var dt=(0,Je.Z)(we)==="object"?we:{},xt=dt.offsetHeader,_t=xt===void 0?0:xt,Dt=dt.offsetSummary,ve=Dt===void 0?0:Dt,bn=dt.offsetScroll,ln=bn===void 0?0:bn,zn=dt.getContainer,jn=zn===void 0?function(){return yt}:zn,$n=jn()||yt;return M.useMemo(function(){var hi=!!we;return{isSticky:hi,stickyClassName:hi?"".concat(De,"-sticky-holder"):"",offsetHeader:_t,offsetSummary:ve,offsetScroll:ln,container:$n}},[ln,_t,ve,De,$n])}function L(we,De,dt){var xt=(0,M.useMemo)(function(){for(var _t=[],Dt=[],ve=0,bn=0,ln=0;ln<De;ln+=1)if(dt==="rtl"){Dt[ln]=bn,bn+=we[ln]||0;var zn=De-ln-1;_t[zn]=ve,ve+=we[zn]||0}else{_t[ln]=ve,ve+=we[ln]||0;var jn=De-ln-1;Dt[jn]=bn,bn+=we[jn]||0}return{left:_t,right:Dt}},[we,De,dt]);return xt}var Rt=L;function Jt(we){var De=we.className,dt=we.children;return M.createElement("div",{className:De},dt)}var mt=Jt,xn=h(8224),An=h(55468),li=function(De,dt){var xt,_t,Dt=De.scrollBodyRef,ve=De.onScroll,bn=De.offsetScroll,ln=De.container,zn=te(ee,"prefixCls"),jn=((xt=Dt.current)===null||xt===void 0?void 0:xt.scrollWidth)||0,$n=((_t=Dt.current)===null||_t===void 0?void 0:_t.clientWidth)||0,hi=jn&&$n*($n/jn),gi=M.useRef(),ti=Lt({scrollLeft:0,isHiddenScrollBar:!1}),E=(0,O.Z)(ti,2),P=E[0],W=E[1],J=M.useRef({delta:0,x:0}),ge=M.useState(!1),Ae=(0,O.Z)(ge,2),He=Ae[0],it=Ae[1],jt=function(){it(!1)},Qt=function(ii){ii.persist(),J.current.delta=ii.pageX-P.scrollLeft,J.current.x=0,it(!0),ii.preventDefault()},bt=function(ii){var ki,ji=ii||((ki=window)===null||ki===void 0?void 0:ki.event),si=ji.buttons;if(!He||si===0){He&&it(!1);return}var vi=J.current.x+ii.pageX-J.current.x-J.current.delta;vi<=0&&(vi=0),vi+hi>=$n&&(vi=$n-hi),ve({scrollLeft:vi/$n*(jn+2)}),J.current.x=ii.pageX},en=function(){if(Dt.current){var ii=(0,An.os)(Dt.current).top,ki=ii+Dt.current.offsetHeight,ji=ln===window?document.documentElement.scrollTop+window.innerHeight:(0,An.os)(ln).top+ln.clientHeight;ki-(0,Et.Z)()<=ji||ii>=ji-bn?W(function(si){return(0,Ye.Z)((0,Ye.Z)({},si),{},{isHiddenScrollBar:!0})}):W(function(si){return(0,Ye.Z)((0,Ye.Z)({},si),{},{isHiddenScrollBar:!1})})}},Gt=function(ii){W(function(ki){return(0,Ye.Z)((0,Ye.Z)({},ki),{},{scrollLeft:ii/jn*$n||0})})};return M.useImperativeHandle(dt,function(){return{setScrollLeft:Gt}}),M.useEffect(function(){var wt=(0,xn.Z)(document.body,"mouseup",jt,!1),ii=(0,xn.Z)(document.body,"mousemove",bt,!1);return en(),function(){wt.remove(),ii.remove()}},[hi,He]),M.useEffect(function(){var wt=(0,xn.Z)(ln,"scroll",en,!1),ii=(0,xn.Z)(window,"resize",en,!1);return function(){wt.remove(),ii.remove()}},[ln]),M.useEffect(function(){P.isHiddenScrollBar||W(function(wt){var ii=Dt.current;return ii?(0,Ye.Z)((0,Ye.Z)({},wt),{},{scrollLeft:ii.scrollLeft/ii.scrollWidth*ii.clientWidth}):wt})},[P.isHiddenScrollBar]),jn<=$n||!hi||P.isHiddenScrollBar?null:M.createElement("div",{style:{height:(0,Et.Z)(),width:$n,bottom:bn},className:"".concat(zn,"-sticky-scroll")},M.createElement("div",{onMouseDown:Qt,ref:gi,className:Ge()("".concat(zn,"-sticky-scroll-bar"),(0,ne.Z)({},"".concat(zn,"-sticky-scroll-bar-active"),He)),style:{width:"".concat(hi,"px"),transform:"translate3d(".concat(P.scrollLeft,"px, 0, 0)")}}))},Nn=M.forwardRef(li);function lt(we){return null}var Mi=lt;function Yi(we){return null}var Yt=Yi,zi="rc-table",q=[],oe={};function Hn(){return"No Data"}function Be(we){var De,dt=(0,Ye.Z)({rowKey:"key",prefixCls:zi,emptyText:Hn},we),xt=dt.prefixCls,_t=dt.className,Dt=dt.rowClassName,ve=dt.style,bn=dt.data,ln=dt.rowKey,zn=dt.scroll,jn=dt.tableLayout,$n=dt.direction,hi=dt.title,gi=dt.footer,ti=dt.summary,E=dt.caption,P=dt.id,W=dt.showHeader,J=dt.components,ge=dt.emptyText,Ae=dt.onRow,He=dt.onHeaderRow,it=dt.internalHooks,jt=dt.transformColumns,Qt=dt.internalRefs,bt=dt.tailor,en=dt.sticky,Gt=bn||q,wt=!!Gt.length,ii=it===I,ki=M.useCallback(function(ea,ba){return(0,gt.Z)(J,ea)||ba},[J]),ji=M.useMemo(function(){return typeof ln=="function"?ln:function(ea){var ba=ea&&ea[ln];return ba}},[ln]),si=ki(["body"]),vi=ot(),Pi=(0,O.Z)(vi,3),Mr=Pi[0],Xr=Pi[1],ui=Pi[2],io=Ve(dt,Gt,ji),bo=(0,O.Z)(io,6),dr=bo[0],Qi=bo[1],oo=bo[2],to=bo[3],pr=bo[4],_r=bo[5],Gi=zn==null?void 0:zn.x,ir=M.useState(0),vr=(0,O.Z)(ir,2),sr=vr[0],ho=vr[1],$t=Fn((0,Ye.Z)((0,Ye.Z)((0,Ye.Z)({},dt),dr),{},{expandable:!!dr.expandedRowRender,columnTitle:dr.columnTitle,expandedKeys:oo,getRowKey:ji,onTriggerExpand:_r,expandIcon:to,expandIconColumnIndex:dr.expandIconColumnIndex,direction:$n,scrollWidth:ii&&bt&&typeof Gi=="number"?Gi:null}),ii?jt:null),zr=(0,O.Z)($t,3),fo=zr[0],un=zr[1],da=zr[2],Ta=da!=null?da:Gi,es=M.useMemo(function(){return{columns:fo,flattenColumns:un}},[fo,un]),Fo=M.useRef(),qo=M.useRef(),ta=M.useRef(),ya=M.useRef(),zs=M.useRef(),ko=M.useState(!1),Ho=(0,O.Z)(ko,2),Zo=Ho[0],Sa=Ho[1],Ha=M.useState(!1),d=(0,O.Z)(Ha,2),g=d[0],K=d[1],nt=Lt(new Map),gn=(0,O.Z)(nt,2),Yn=gn[0],wi=gn[1],Cr=ce(un),Hr=Cr.map(function(ea){return Yn.get(ea)}),Gn=M.useMemo(function(){return Hr},[Hr.join("_")]),Hi=Rt(Gn,un.length,$n),Or=zn&&Ht(zn.y),Vr=zn&&Ht(Ta)||!!dr.fixed,$o=Vr&&un.some(function(ea){var ba=ea.fixed;return ba}),Rs=M.useRef(),Ds=je(en,xt),Ps=Ds.isSticky,ol=Ds.offsetHeader,Ts=Ds.offsetSummary,po=Ds.offsetScroll,ra=Ds.stickyClassName,Na=Ds.container,A=M.useMemo(function(){return ti==null?void 0:ti(Gt)},[ti,Gt]),m=(Or||Ps)&&M.isValidElement(A)&&A.type===T&&A.props.fixed,S,D,Z;Or&&(D={overflowY:"scroll",maxHeight:zn.y}),Vr&&(S={overflowX:"auto"},Or||(D={overflowY:"hidden"}),Z={width:Ta===!0?"auto":Ta,minWidth:"100%"});var se=M.useCallback(function(ea,ba){(0,ut.Z)(Fo.current)&&wi(function(Hs){if(Hs.get(ea)!==ba){var Xs=new Map(Hs);return Xs.set(ea,ba),Xs}return Hs})},[]),Y=Wn(null),ct=(0,O.Z)(Y,2),ft=ct[0],Sn=ct[1];function Bn(ea,ba){ba&&(typeof ba=="function"?ba(ea):ba.scrollLeft!==ea&&(ba.scrollLeft=ea,ba.scrollLeft!==ea&&setTimeout(function(){ba.scrollLeft=ea},0)))}var Qn=(0,B.Z)(function(ea){var ba=ea.currentTarget,Hs=ea.scrollLeft,Xs=$n==="rtl",Qs=typeof Hs=="number"?Hs:ba.scrollLeft,Cc=ba||oe;if(!Sn()||Sn()===Cc){var Iu;ft(Cc),Bn(Qs,qo.current),Bn(Qs,ta.current),Bn(Qs,zs.current),Bn(Qs,(Iu=Rs.current)===null||Iu===void 0?void 0:Iu.setScrollLeft)}var Xc=ba||qo.current;if(Xc){var gu=Xc.scrollWidth,tc=Xc.clientWidth;if(gu===tc){Sa(!1),K(!1);return}Xs?(Sa(-Qs<gu-tc),K(-Qs>0)):(Sa(Qs>0),K(Qs<gu-tc))}}),Ti=function(){Vr&&ta.current?Qn({currentTarget:ta.current}):(Sa(!1),K(!1))},Ni=function(ba){var Hs=ba.width;Hs!==sr&&(Ti(),ho(Fo.current?Fo.current.offsetWidth:Hs))},$i=M.useRef(!1);M.useEffect(function(){$i.current&&Ti()},[Vr,bn,fo.length]),M.useEffect(function(){$i.current=!0},[]);var Nr=M.useState(0),$r=(0,O.Z)(Nr,2),jr=$r[0],To=$r[1],jo=M.useState(!0),Ra=(0,O.Z)(jo,2),na=Ra[0],Yo=Ra[1];M.useEffect(function(){(!bt||!ii)&&(ta.current instanceof Element?To((0,Et.o)(ta.current).width):To((0,Et.o)(ya.current).width)),Yo((0,tt.G)("position","sticky"))},[]),M.useEffect(function(){ii&&Qt&&(Qt.body.current=ta.current)});var fa=M.useCallback(function(ea){return M.createElement(M.Fragment,null,M.createElement(kr,ea),m==="top"&&M.createElement(It,ea,A))},[m,A]),ls=M.useCallback(function(ea){return M.createElement(It,ea,A)},[A]),ua=ki(["table"],"table"),Sl=M.useMemo(function(){return jn||($o?Ta==="max-content"?"auto":"fixed":Or||Ps||un.some(function(ea){var ba=ea.ellipsis;return ba})?"fixed":"auto")},[Or,$o,un,jn,Ps]),Us,us={colWidths:Gn,columCount:un.length,stickyOffsets:Hi,onHeaderRow:He,fixHeader:Or,scroll:zn},Ns=M.useMemo(function(){return wt?null:typeof ge=="function"?ge():ge},[wt,ge]),al=M.createElement(Bt,{data:Gt,measureColumnWidth:Or||Vr||Ps}),Vl=M.createElement(Xi,{colWidths:un.map(function(ea){var ba=ea.width;return ba}),columns:un}),Fs=E!=null?M.createElement("caption",{className:"".concat(xt,"-caption")},E):void 0,ku=(0,pn.Z)(dt,{data:!0}),ec=(0,pn.Z)(dt,{aria:!0});if(Or||Ps){var Pc;typeof si=="function"?(Pc=si(Gt,{scrollbarSize:jr,ref:ta,onScroll:Qn}),us.colWidths=un.map(function(ea,ba){var Hs=ea.width,Xs=ba===un.length-1?Hs-jr:Hs;return typeof Xs=="number"&&!Number.isNaN(Xs)?Xs:0})):Pc=M.createElement("div",{style:(0,Ye.Z)((0,Ye.Z)({},S),D),onScroll:Qn,ref:ta,className:Ge()("".concat(xt,"-body"))},M.createElement(ua,(0,Ne.Z)({style:(0,Ye.Z)((0,Ye.Z)({},Z),{},{tableLayout:Sl})},ec),Fs,Vl,al,!m&&A&&M.createElement(It,{stickyOffsets:Hi,flattenColumns:un,columns:fo},A)));var Pl=(0,Ye.Z)((0,Ye.Z)((0,Ye.Z)({noData:!Gt.length,maxContentScroll:Vr&&Ta==="max-content"},us),es),{},{direction:$n,stickyClassName:ra,onScroll:Qn});Us=M.createElement(M.Fragment,null,W!==!1&&M.createElement(mr,(0,Ne.Z)({},Pl,{stickyTopOffset:ol,className:"".concat(xt,"-header"),ref:qo}),fa),Pc,m&&m!=="top"&&M.createElement(mr,(0,Ne.Z)({},Pl,{stickyBottomOffset:Ts,className:"".concat(xt,"-summary"),ref:zs}),ls),Ps&&M.createElement(Nn,{ref:Rs,offsetScroll:po,scrollBodyRef:ta,onScroll:Qn,container:Na}))}else Us=M.createElement("div",{style:(0,Ye.Z)((0,Ye.Z)({},S),D),className:Ge()("".concat(xt,"-content")),onScroll:Qn,ref:ta},M.createElement(ua,(0,Ne.Z)({style:(0,Ye.Z)((0,Ye.Z)({},Z),{},{tableLayout:Sl})},ec),Fs,Vl,W!==!1&&M.createElement(kr,(0,Ne.Z)({},us,es)),al,A&&M.createElement(It,{stickyOffsets:Hi,flattenColumns:un,columns:fo},A)));var ps=M.createElement("div",(0,Ne.Z)({className:Ge()(xt,_t,(De={},(0,ne.Z)(De,"".concat(xt,"-rtl"),$n==="rtl"),(0,ne.Z)(De,"".concat(xt,"-ping-left"),Zo),(0,ne.Z)(De,"".concat(xt,"-ping-right"),g),(0,ne.Z)(De,"".concat(xt,"-layout-fixed"),jn==="fixed"),(0,ne.Z)(De,"".concat(xt,"-fixed-header"),Or),(0,ne.Z)(De,"".concat(xt,"-fixed-column"),$o),(0,ne.Z)(De,"".concat(xt,"-scroll-horizontal"),Vr),(0,ne.Z)(De,"".concat(xt,"-has-fix-left"),un[0]&&un[0].fixed),(0,ne.Z)(De,"".concat(xt,"-has-fix-right"),un[un.length-1]&&un[un.length-1].fixed==="right"),De)),style:ve,id:P,ref:Fo},ku),hi&&M.createElement(mt,{className:"".concat(xt,"-title")},hi(Gt)),M.createElement("div",{ref:ya,className:"".concat(xt,"-container")},Us),gi&&M.createElement(mt,{className:"".concat(xt,"-footer")},gi(Gt)));Vr&&(ps=M.createElement(vt.Z,{onResize:Ni},ps));var Fl=Ut(un,Hi,$n,fo),Ka=M.useMemo(function(){return{scrollX:Ta,prefixCls:xt,getComponent:ki,scrollbarSize:jr,direction:$n,fixedInfoList:Fl,isSticky:Ps,supportSticky:na,componentWidth:sr,fixHeader:Or,fixColumn:$o,horizonScroll:Vr,tableLayout:Sl,rowClassName:Dt,expandedRowClassName:dr.expandedRowClassName,expandIcon:to,expandableType:Qi,expandRowByClick:dr.expandRowByClick,expandedRowRender:dr.expandedRowRender,onTriggerExpand:_r,expandIconColumnIndex:dr.expandIconColumnIndex,indentSize:dr.indentSize,allColumnsFixedLeft:un.every(function(ea){return ea.fixed==="left"}),emptyNode:Ns,columns:fo,flattenColumns:un,onColumnResize:se,hoverStartRow:Mr,hoverEndRow:Xr,onHover:ui,rowExpandable:dr.rowExpandable,onRow:Ae,getRowKey:ji,expandedKeys:oo,childrenColumnName:pr}},[Ta,xt,ki,jr,$n,Fl,Ps,na,sr,Or,$o,Vr,Sl,Dt,dr.expandedRowClassName,to,Qi,dr.expandRowByClick,dr.expandedRowRender,_r,dr.expandIconColumnIndex,dr.indentSize,Ns,fo,un,se,Mr,Xr,ui,dr.rowExpandable,Ae,ji,oo,pr]);return M.createElement(ee.Provider,{value:Ka},ps)}function Tt(we){return me(Be,we)}var fi=Tt();fi.EXPAND_COLUMN=v,fi.INTERNAL_HOOKS=I,fi.Column=Mi,fi.ColumnGroup=Yt,fi.Summary=$e;var Ln=fi,Fi=h(24916),qt=ae(null),xi=ae(null);function Xt(we,De,dt){var xt=De||1;return dt[we+xt]-(dt[we]||0)}function Li(we){var De=we.rowInfo,dt=we.column,xt=we.colIndex,_t=we.indent,Dt=we.index,ve=we.renderIndex,bn=we.record,ln=we.style,zn=we.className,jn=we.inverse,$n=we.getHeight,hi=dt.render,gi=dt.dataIndex,ti=dt.className,E=dt.width,P=te(xi,["columnsOffset"]),W=P.columnsOffset,J=zt(De,dt,xt,_t,Dt),ge=J.key,Ae=J.fixedInfo,He=J.appendCellNode,it=J.additionalCellProps,jt=it.style,Qt=it.colSpan,bt=Qt===void 0?1:Qt,en=it.rowSpan,Gt=en===void 0?1:en,wt=xt-1,ii=Xt(wt,bt,W),ki=bt>1?E-ii:0,ji=(0,Ye.Z)((0,Ye.Z)((0,Ye.Z)({},jt),ln),{},{flex:"0 0 ".concat(ii,"px"),width:"".concat(ii,"px"),marginRight:ki,pointerEvents:"auto"}),si=M.useMemo(function(){return jn?Gt<=1:bt===0||Gt===0||Gt>1},[Gt,bt,jn]);si?ji.visibility="hidden":jn&&(ji.height=$n==null?void 0:$n(Gt));var vi=si?function(){return null}:hi,Pi={};return(Gt===0||bt===0)&&(Pi.rowSpan=1,Pi.colSpan=1),M.createElement(ni,(0,Ne.Z)({className:Ge()(ti,zn),ellipsis:dt.ellipsis,align:dt.align,scope:dt.rowScope,component:"div",prefixCls:De.prefixCls,key:ge,record:bn,index:Dt,renderIndex:ve,dataIndex:gi,render:vi,shouldCellUpdate:dt.shouldCellUpdate},Ae,{appendNode:He,additionalProps:(0,Ye.Z)((0,Ye.Z)({},it),{},{style:ji},Pi)}))}var Yr=Li,Mt=["data","index","className","rowKey","style","extra","getHeight"],Qr=M.forwardRef(function(we,De){var dt=we.data,xt=we.index,_t=we.className,Dt=we.rowKey,ve=we.style,bn=we.extra,ln=we.getHeight,zn=(0,z.Z)(we,Mt),jn=dt.record,$n=dt.indent,hi=dt.index,gi=te(ee,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),ti=gi.scrollX,E=gi.flattenColumns,P=gi.prefixCls,W=gi.fixColumn,J=gi.componentWidth,ge=et(jn,Dt,xt,$n),Ae=ge.rowSupportExpand,He=ge.expanded,it=ge.rowProps,jt=ge.expandedRowRender,Qt=ge.expandedRowClassName,bt;if(Ae&&He){var en=jt(jn,xt,$n+1,He),Gt=Qt==null?void 0:Qt(jn,xt,$n),wt={};W&&(wt={style:(0,ne.Z)({},"--virtual-width","".concat(J,"px"))});var ii="".concat(P,"-expanded-row-cell");bt=M.createElement("div",{className:Ge()("".concat(P,"-expanded-row"),"".concat(P,"-expanded-row-level-").concat($n+1),Gt)},M.createElement(ni,{component:"div",prefixCls:P,className:Ge()(ii,(0,ne.Z)({},"".concat(ii,"-fixed"),W)),additionalProps:wt},en))}var ki=(0,Ye.Z)((0,Ye.Z)({},ve),{},{width:ti});bn&&(ki.position="absolute",ki.pointerEvents="none");var ji=M.createElement("div",(0,Ne.Z)({},it,zn,{ref:Ae?null:De,className:Ge()(_t,"".concat(P,"-row"),it==null?void 0:it.className,(0,ne.Z)({},"".concat(P,"-row-extra"),bn)),style:(0,Ye.Z)((0,Ye.Z)({},ki),it==null?void 0:it.style)}),E.map(function(si,vi){return M.createElement(Yr,{key:vi,rowInfo:ge,column:si,colIndex:vi,indent:$n,index:xt,renderIndex:hi,record:jn,inverse:bn,getHeight:ln})}));return Ae?M.createElement("div",{ref:De},ji,bt):ji}),tn=ye(Qr),Oi=tn,Ei=M.forwardRef(function(we,De){var dt=we.data,xt=we.onScroll,_t=te(ee,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),Dt=_t.flattenColumns,ve=_t.onColumnResize,bn=_t.getRowKey,ln=_t.expandedKeys,zn=_t.prefixCls,jn=_t.childrenColumnName,$n=_t.emptyNode,hi=_t.scrollX,gi=te(qt),ti=gi.scrollY,E=gi.listItemHeight,P=M.useRef(),W=Kt(dt,jn,ln,bn),J=M.useMemo(function(){var bt=0;return Dt.map(function(en){var Gt=en.width,wt=en.key;return bt+=Gt,[wt,Gt,bt]})},[Dt]),ge=M.useMemo(function(){return J.map(function(bt){return bt[2]})},[J]);M.useEffect(function(){J.forEach(function(bt){var en=(0,O.Z)(bt,2),Gt=en[0],wt=en[1];ve(Gt,wt)})},[J]),M.useImperativeHandle(De,function(){var bt={};return Object.defineProperty(bt,"scrollLeft",{get:function(){var Gt;return((Gt=P.current)===null||Gt===void 0?void 0:Gt.getScrollInfo().x)||0},set:function(Gt){var wt;(wt=P.current)===null||wt===void 0||wt.scrollTo({left:Gt})}}),bt});var Ae=function(en,Gt){var wt,ii=(wt=W[Gt])===null||wt===void 0?void 0:wt.record,ki=en.onCell;if(ki){var ji,si=ki(ii,Gt);return(ji=si==null?void 0:si.rowSpan)!==null&&ji!==void 0?ji:1}return 1},He=function(en){var Gt=en.start,wt=en.end,ii=en.getSize,ki=en.offsetY;if(wt<0)return null;for(var ji=Dt.filter(function(Gi){return Ae(Gi,Gt)===0}),si=Gt,vi=function(ir){if(ji=ji.filter(function(vr){return Ae(vr,ir)===0}),!ji.length)return si=ir,"break"},Pi=Gt;Pi>=0;Pi-=1){var Mr=vi(Pi);if(Mr==="break")break}for(var Xr=Dt.filter(function(Gi){return Ae(Gi,wt)!==1}),ui=wt,io=function(ir){if(Xr=Xr.filter(function(vr){return Ae(vr,ir)!==1}),!Xr.length)return ui=Math.max(ir-1,wt),"break"},bo=wt;bo<W.length;bo+=1){var dr=io(bo);if(dr==="break")break}for(var Qi=[],oo=function(ir){var vr=W[ir];if(!vr)return"continue";Dt.some(function(sr){return Ae(sr,ir)>1})&&Qi.push(ir)},to=si;to<=ui;to+=1)var pr=oo(to);var _r=Qi.map(function(Gi){var ir=W[Gi],vr=bn(ir.record,Gi),sr=function(zr){var fo=Gi+zr-1,un=bn(W[fo].record,fo),da=ii(vr,un);return da.bottom-da.top},ho=ii(vr);return M.createElement(Oi,{key:Gi,data:ir,rowKey:vr,index:Gi,style:{top:-ki+ho.top},extra:!0,getHeight:sr})});return _r},it=M.useMemo(function(){return{columnsOffset:ge}},[ge]),jt="".concat(zn,"-tbody"),Qt;return W.length?Qt=M.createElement(Fi.Z,{fullHeight:!1,ref:P,className:Ge()(jt,"".concat(jt,"-virtual")),height:ti,itemHeight:E||24,data:W,itemKey:function(en){return bn(en.record)},scrollWidth:hi,onVirtualScroll:function(en){var Gt=en.x;xt({scrollLeft:Gt})},extraRender:He},function(bt,en,Gt){var wt=bn(bt.record,en);return M.createElement(Oi,(0,Ne.Z)({data:bt,rowKey:wt,index:en},Gt))}):Qt=M.createElement("div",{className:Ge()("".concat(zn,"-placeholder"))},M.createElement(ni,{component:"div",prefixCls:zn},$n)),M.createElement(xi.Provider,{value:it},Qt)}),or=ye(Ei),tr=or,Zn=function(De,dt){var xt=dt.ref,_t=dt.onScroll;return M.createElement(tr,{ref:xt,data:De,onScroll:_t})},he=100;function gr(we){var De=we.columns,dt=we.scroll,xt=we.prefixCls,_t=xt===void 0?zi:xt,Dt=we.className,ve=we.listItemHeight,bn=dt||{},ln=bn.x,zn=bn.y;typeof ln!="number"&&(ln=((De||[]).length+1)*he),typeof zn!="number"&&(zn=500);var jn=M.useMemo(function(){return{scrollY:zn,listItemHeight:ve}},[zn,ve]);return M.createElement(qt.Provider,{value:jn},M.createElement(Ln,(0,Ne.Z)({},we,{className:Ge()(Dt,"".concat(_t,"-virtual")),scroll:(0,Ye.Z)((0,Ye.Z)({},dt),{},{x:ln}),components:{body:Zn},columns:De,internalHooks:I,tailor:!0})))}function br(we){return me(gr,we)}var cr=br(),Br=null;function Zi(we){return null}var Ri=Zi;function Ai(we){return null}var hr=Ai,Ki=h(2738),Lr=h(68031),Wr=h(36355),eo=h(93891),Lo=h(19716),pi=h(8628),pa=h(31724),Uo=h(58421),oa=h(71418),ma=h(88088);function $a(we){return function(dt){let{prefixCls:xt,onExpand:_t,record:Dt,expanded:ve,expandable:bn}=dt;const ln=`${xt}-row-expand-icon`;return M.createElement("button",{type:"button",onClick:zn=>{_t(Dt,zn),zn.stopPropagation()},className:Ge()(ln,{[`${ln}-spaced`]:!bn,[`${ln}-expanded`]:bn&&ve,[`${ln}-collapsed`]:bn&&!ve}),"aria-label":ve?we.collapse:we.expand,"aria-expanded":ve})}}var is=$a;function ka(we,De){return"key"in we&&we.key!==void 0&&we.key!==null?we.key:we.dataIndex?Array.isArray(we.dataIndex)?we.dataIndex.join("."):we.dataIndex:De}function ss(we,De){return De?`${De}-${we}`:`${we}`}function Ua(we,De){return typeof we=="function"?we(De):we}function Go(we,De){const dt=Ua(we,De);return Object.prototype.toString.call(dt)==="[object Object]"?"":dt}var Zt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},Pa=Zt,ql=h(7657),nl=function(De,dt){return M.createElement(ql.Z,(0,Ne.Z)({},De,{ref:dt,icon:Pa}))},uo=M.forwardRef(nl),No=uo,go=h(56762);function Ot(we){const De=M.useRef(we),dt=(0,go.Z)();return[()=>De.current,xt=>{De.current=xt,dt()}]}var Pr=h(3113),co=h(24905),xa=h(38854),xr=h(64165),wn=h(20834),ar=h(40875),mi=h(5112),Wo=h(17574),ga=h(47472),Ja=h(92832);function Ms(we){let{value:De,onChange:dt,filterSearch:xt,tablePrefixCls:_t,locale:Dt}=we;return xt?M.createElement("div",{className:`${_t}-filter-dropdown-search`},M.createElement(Ja.default,{prefix:M.createElement(ga.Z,null),placeholder:Dt.filterSearchPlaceholder,onChange:dt,value:De,htmlSize:1,className:`${_t}-filter-dropdown-search-input`})):null}var Ss=Ms,ai=h(10228);const Ui=we=>{const{keyCode:De}=we;De===ai.Z.ENTER&&we.stopPropagation()};var Es=M.forwardRef((we,De)=>M.createElement("div",{className:we.className,onClick:dt=>dt.stopPropagation(),onKeyDown:Ui,ref:De},we.children));function Vo(we){let De=[];return(we||[]).forEach(dt=>{let{value:xt,children:_t}=dt;De.push(xt),_t&&(De=[].concat((0,ei.Z)(De),(0,ei.Z)(Vo(_t))))}),De}function rs(we){return we.some(De=>{let{children:dt}=De;return dt})}function Rr(we,De){return typeof De=="string"||typeof De=="number"?De==null?void 0:De.toString().toLowerCase().includes(we.trim().toLowerCase()):!1}function dl(we){let{filters:De,prefixCls:dt,filteredKeys:xt,filterMultiple:_t,searchValue:Dt,filterSearch:ve}=we;return De.map((bn,ln)=>{const zn=String(bn.value);if(bn.children)return{key:zn||ln,label:bn.text,popupClassName:`${dt}-dropdown-submenu`,children:dl({filters:bn.children,prefixCls:dt,filteredKeys:xt,filterMultiple:_t,searchValue:Dt,filterSearch:ve})};const jn=_t?co.default:mi.ZP,$n={key:bn.value!==void 0?zn:ln,label:M.createElement(M.Fragment,null,M.createElement(jn,{checked:xt.includes(zn)}),M.createElement("span",null,bn.text))};return Dt.trim()?typeof ve=="function"?ve(Dt,bn)?$n:null:Rr(Dt,bn.text)?$n:null:$n})}function ws(we){var De,dt;const{tablePrefixCls:xt,prefixCls:_t,column:Dt,dropdownPrefixCls:ve,columnKey:bn,filterMultiple:ln,filterMode:zn="menu",filterSearch:jn=!1,filterState:$n,triggerFilter:hi,locale:gi,children:ti,getPopupContainer:E}=we,{filterDropdownOpen:P,onFilterDropdownOpenChange:W,filterResetToDefaultFilteredValue:J,defaultFilteredValue:ge,filterDropdownVisible:Ae,onFilterDropdownVisibleChange:He}=Dt,[it,jt]=M.useState(!1),Qt=!!($n&&(!((De=$n.filteredKeys)===null||De===void 0)&&De.length||$n.forceFiltered)),bt=$t=>{jt($t),W==null||W($t),He==null||He($t)},en=(dt=P!=null?P:Ae)!==null&&dt!==void 0?dt:it,Gt=$n==null?void 0:$n.filteredKeys,[wt,ii]=Ot(Gt||[]),ki=$t=>{let{selectedKeys:zr}=$t;ii(zr)},ji=($t,zr)=>{let{node:fo,checked:un}=zr;ki(ln?{selectedKeys:$t}:{selectedKeys:un&&fo.key?[fo.key]:[]})};M.useEffect(()=>{it&&ki({selectedKeys:Gt||[]})},[Gt]);const[si,vi]=M.useState([]),Pi=$t=>{vi($t)},[Mr,Xr]=M.useState(""),ui=$t=>{const{value:zr}=$t.target;Xr(zr)};M.useEffect(()=>{it||Xr("")},[it]);const io=$t=>{const zr=$t&&$t.length?$t:null;if(zr===null&&(!$n||!$n.filteredKeys)||(0,F.Z)(zr,$n==null?void 0:$n.filteredKeys,!0))return null;hi({column:Dt,key:bn,filteredKeys:zr})},bo=()=>{bt(!1),io(wt())},dr=function(){let{confirm:$t,closeDropdown:zr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};$t&&io([]),zr&&bt(!1),Xr(""),ii(J?(ge||[]).map(fo=>String(fo)):[])},Qi=function(){let{closeDropdown:$t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};$t&&bt(!1),io(wt())},oo=$t=>{$t&&Gt!==void 0&&ii(Gt||[]),bt($t),!$t&&!Dt.filterDropdown&&bo()},to=Ge()({[`${ve}-menu-without-submenu`]:!rs(Dt.filters||[])}),pr=$t=>{if($t.target.checked){const zr=Vo(Dt==null?void 0:Dt.filters).map(fo=>String(fo));ii(zr)}else ii([])},_r=$t=>{let{filters:zr}=$t;return(zr||[]).map((fo,un)=>{const da=String(fo.value),Ta={title:fo.text,key:fo.value!==void 0?da:un};return fo.children&&(Ta.children=_r({filters:fo.children})),Ta})},Gi=$t=>{var zr;return Object.assign(Object.assign({},$t),{text:$t.title,value:$t.key,children:((zr=$t.children)===null||zr===void 0?void 0:zr.map(fo=>Gi(fo)))||[]})};let ir;if(typeof Dt.filterDropdown=="function")ir=Dt.filterDropdown({prefixCls:`${ve}-custom`,setSelectedKeys:$t=>ki({selectedKeys:$t}),selectedKeys:wt(),confirm:Qi,clearFilters:dr,filters:Dt.filters,visible:en,close:()=>{bt(!1)}});else if(Dt.filterDropdown)ir=Dt.filterDropdown;else{const $t=wt()||[],zr=()=>(Dt.filters||[]).length===0?M.createElement(xr.Z,{image:xr.Z.PRESENTED_IMAGE_SIMPLE,description:gi.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):zn==="tree"?M.createElement(M.Fragment,null,M.createElement(Ss,{filterSearch:jn,value:Mr,onChange:ui,tablePrefixCls:xt,locale:gi}),M.createElement("div",{className:`${xt}-filter-dropdown-tree`},ln?M.createElement(co.default,{checked:$t.length===Vo(Dt.filters).length,indeterminate:$t.length>0&&$t.length<Vo(Dt.filters).length,className:`${xt}-filter-dropdown-checkall`,onChange:pr},gi.filterCheckall):null,M.createElement(Wo.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:ln,checkStrictly:!ln,className:`${ve}-menu`,onCheck:ji,checkedKeys:$t,selectedKeys:$t,showIcon:!1,treeData:_r({filters:Dt.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Mr.trim()?un=>typeof jn=="function"?jn(Mr,Gi(un)):Rr(Mr,un.title):void 0}))):M.createElement(M.Fragment,null,M.createElement(Ss,{filterSearch:jn,value:Mr,onChange:ui,tablePrefixCls:xt,locale:gi}),M.createElement(wn.default,{selectable:!0,multiple:ln,prefixCls:`${ve}-menu`,className:to,onSelect:ki,onDeselect:ki,selectedKeys:$t,getPopupContainer:E,openKeys:si,onOpenChange:Pi,items:dl({filters:Dt.filters||[],filterSearch:jn,prefixCls:_t,filteredKeys:wt(),filterMultiple:ln,searchValue:Mr})})),fo=()=>J?(0,F.Z)((ge||[]).map(un=>String(un)),$t,!0):$t.length===0;ir=M.createElement(M.Fragment,null,zr(),M.createElement("div",{className:`${_t}-dropdown-btns`},M.createElement(Pr.ZP,{type:"link",size:"small",disabled:fo(),onClick:()=>dr()},gi.filterReset),M.createElement(Pr.ZP,{type:"primary",size:"small",onClick:bo},gi.filterConfirm)))}Dt.filterDropdown&&(ir=M.createElement(ar.J,{selectable:void 0},ir));const vr=()=>M.createElement(Es,{className:`${_t}-dropdown`},ir);let sr;typeof Dt.filterIcon=="function"?sr=Dt.filterIcon(Qt):Dt.filterIcon?sr=Dt.filterIcon:sr=M.createElement(No,null);const{direction:ho}=M.useContext(Wr.E_);return M.createElement("div",{className:`${_t}-column`},M.createElement("span",{className:`${xt}-column-title`},ti),M.createElement(xa.Z,{dropdownRender:vr,trigger:["click"],open:en,onOpenChange:oo,getPopupContainer:E,placement:ho==="rtl"?"bottomLeft":"bottomRight"},M.createElement("span",{role:"button",tabIndex:-1,className:Ge()(`${_t}-trigger`,{active:Qt}),onClick:$t=>{$t.stopPropagation()}},sr)))}var Os=ws;function Bo(we,De,dt){let xt=[];return(we||[]).forEach((_t,Dt)=>{var ve;const bn=ss(Dt,dt);if(_t.filters||"filterDropdown"in _t||"onFilter"in _t)if("filteredValue"in _t){let ln=_t.filteredValue;"filterDropdown"in _t||(ln=(ve=ln==null?void 0:ln.map(String))!==null&&ve!==void 0?ve:ln),xt.push({column:_t,key:ka(_t,bn),filteredKeys:ln,forceFiltered:_t.filtered})}else xt.push({column:_t,key:ka(_t,bn),filteredKeys:De&&_t.defaultFilteredValue?_t.defaultFilteredValue:void 0,forceFiltered:_t.filtered});"children"in _t&&(xt=[].concat((0,ei.Z)(xt),(0,ei.Z)(Bo(_t.children,De,bn))))}),xt}function Ia(we,De,dt,xt,_t,Dt,ve,bn){return dt.map((ln,zn)=>{const jn=ss(zn,bn),{filterMultiple:$n=!0,filterMode:hi,filterSearch:gi}=ln;let ti=ln;if(ti.filters||ti.filterDropdown){const E=ka(ti,jn),P=xt.find(W=>{let{key:J}=W;return E===J});ti=Object.assign(Object.assign({},ti),{title:W=>M.createElement(Os,{tablePrefixCls:we,prefixCls:`${we}-filter`,dropdownPrefixCls:De,column:ti,columnKey:E,filterState:P,filterMultiple:$n,filterMode:hi,filterSearch:gi,triggerFilter:Dt,locale:_t,getPopupContainer:ve},Ua(ln.title,W))})}return"children"in ti&&(ti=Object.assign(Object.assign({},ti),{children:Ia(we,De,ti.children,xt,_t,Dt,ve,jn)})),ti})}function fl(we){const De={};return we.forEach(dt=>{let{key:xt,filteredKeys:_t,column:Dt}=dt;const{filters:ve,filterDropdown:bn}=Dt;if(bn)De[xt]=_t||null;else if(Array.isArray(_t)){const ln=Vo(ve);De[xt]=ln.filter(zn=>_t.includes(String(zn)))}else De[xt]=null}),De}function ja(we,De){return De.reduce((dt,xt)=>{const{column:{onFilter:_t,filters:Dt},filteredKeys:ve}=xt;return _t&&ve&&ve.length?dt.filter(bn=>ve.some(ln=>{const zn=Vo(Dt),jn=zn.findIndex(hi=>String(hi)===String(ln)),$n=jn!==-1?zn[jn]:ln;return _t($n,bn)})):dt},we)}const qa=we=>we.flatMap(De=>"children"in De?[De].concat((0,ei.Z)(qa(De.children||[]))):[De]);function Rl(we){let{prefixCls:De,dropdownPrefixCls:dt,mergedColumns:xt,onFilterChange:_t,getPopupContainer:Dt,locale:ve}=we;const bn=M.useMemo(()=>qa(xt||[]),[xt]),[ln,zn]=M.useState(()=>Bo(bn,!0)),jn=M.useMemo(()=>{const ti=Bo(bn,!1);if(ti.length===0)return ti;let E=!0,P=!0;if(ti.forEach(W=>{let{filteredKeys:J}=W;J!==void 0?E=!1:P=!1}),E){const W=(bn||[]).map((J,ge)=>ka(J,ss(ge)));return ln.filter(J=>{let{key:ge}=J;return W.includes(ge)}).map(J=>{const ge=bn[W.findIndex(Ae=>Ae===J.key)];return Object.assign(Object.assign({},J),{column:Object.assign(Object.assign({},J.column),ge),forceFiltered:ge.filtered})})}return ti},[bn,ln]),$n=M.useMemo(()=>fl(jn),[jn]),hi=ti=>{const E=jn.filter(P=>{let{key:W}=P;return W!==ti.key});E.push(ti),zn(E),_t(fl(E),E)};return[ti=>Ia(De,dt,ti,jn,ve,hi,Dt),jn,$n]}var _o=Rl;function il(we,De,dt){const xt=M.useRef({});function _t(Dt){if(!xt.current||xt.current.data!==we||xt.current.childrenColumnName!==De||xt.current.getRowKey!==dt){let bn=function(ln){ln.forEach((zn,jn)=>{const $n=dt(zn,jn);ve.set($n,zn),zn&&typeof zn=="object"&&De in zn&&bn(zn[De]||[])})};const ve=new Map;bn(we),xt.current={data:we,childrenColumnName:De,kvMap:ve,getRowKey:dt}}return xt.current.kvMap.get(Dt)}return[_t]}var rl=h(50371),hu=function(we,De){var dt={};for(var xt in we)Object.prototype.hasOwnProperty.call(we,xt)&&De.indexOf(xt)<0&&(dt[xt]=we[xt]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _t=0,xt=Object.getOwnPropertySymbols(we);_t<xt.length;_t++)De.indexOf(xt[_t])<0&&Object.prototype.propertyIsEnumerable.call(we,xt[_t])&&(dt[xt[_t]]=we[xt[_t]]);return dt};const Ga=10;function os(we,De){const dt={current:we.current,pageSize:we.pageSize};return Object.keys(De&&typeof De=="object"?De:{}).forEach(_t=>{const Dt=we[_t];typeof Dt!="function"&&(dt[_t]=Dt)}),dt}function _s(we,De,dt){const xt=dt&&typeof dt=="object"?dt:{},{total:_t=0}=xt,Dt=hu(xt,["total"]),[ve,bn]=(0,M.useState)(()=>({current:"defaultCurrent"in Dt?Dt.defaultCurrent:1,pageSize:"defaultPageSize"in Dt?Dt.defaultPageSize:Ga})),ln=(0,rl.Z)(ve,Dt,{total:_t>0?_t:we}),zn=Math.ceil((_t||we)/ln.pageSize);ln.current>zn&&(ln.current=zn||1);const jn=(hi,gi)=>{bn({current:hi!=null?hi:1,pageSize:gi||ln.pageSize})},$n=(hi,gi)=>{var ti;dt&&((ti=dt.onChange)===null||ti===void 0||ti.call(dt,hi,gi)),jn(hi,gi),De(hi,gi||(ln==null?void 0:ln.pageSize))};return dt===!1?[{},()=>{}]:[Object.assign(Object.assign({},ln),{onChange:$n}),jn]}var Vi=_s,Cs=h(84105),jl=h(35654),Kr=h(90782),wo=h(71430),ha=h(18929);const aa={},ro="SELECT_ALL",ia="SELECT_INVERT",va="SELECT_NONE",Ma=[],Oa=(we,De)=>{let dt=[];return(De||[]).forEach(xt=>{dt.push(xt),xt&&typeof xt=="object"&&we in xt&&(dt=[].concat((0,ei.Z)(dt),(0,ei.Z)(Oa(we,xt[we]))))}),dt};var Vs=(we,De)=>{const{preserveSelectedRowKeys:dt,selectedRowKeys:xt,defaultSelectedRowKeys:_t,getCheckboxProps:Dt,onChange:ve,onSelect:bn,onSelectAll:ln,onSelectInvert:zn,onSelectNone:jn,onSelectMultiple:$n,columnWidth:hi,type:gi,selections:ti,fixed:E,renderCell:P,hideSelectAll:W,checkStrictly:J=!0}=De||{},{prefixCls:ge,data:Ae,pageData:He,getRecordByKey:it,getRowKey:jt,expandType:Qt,childrenColumnName:bt,locale:en,getPopupContainer:Gt}=we,[wt,ii]=(0,ha.Z)(xt||_t||Ma,{value:xt}),ki=M.useRef(new Map),ji=(0,M.useCallback)(Gi=>{if(dt){const ir=new Map;Gi.forEach(vr=>{let sr=it(vr);!sr&&ki.current.has(vr)&&(sr=ki.current.get(vr)),ir.set(vr,sr)}),ki.current=ir}},[it,dt]);M.useEffect(()=>{ji(wt)},[wt]);const{keyEntities:si}=(0,M.useMemo)(()=>{if(J)return{keyEntities:null};let Gi=Ae;if(dt){const ir=new Set(Ae.map((sr,ho)=>jt(sr,ho))),vr=Array.from(ki.current).reduce((sr,ho)=>{let[$t,zr]=ho;return ir.has($t)?sr:sr.concat(zr)},[]);Gi=[].concat((0,ei.Z)(Gi),(0,ei.Z)(vr))}return(0,wo.I8)(Gi,{externalGetKey:jt,childrenPropName:bt})},[Ae,jt,J,bt,dt]),vi=(0,M.useMemo)(()=>Oa(bt,He),[bt,He]),Pi=(0,M.useMemo)(()=>{const Gi=new Map;return vi.forEach((ir,vr)=>{const sr=jt(ir,vr),ho=(Dt?Dt(ir):null)||{};Gi.set(sr,ho)}),Gi},[vi,jt,Dt]),Mr=(0,M.useCallback)(Gi=>{var ir;return!!(!((ir=Pi.get(jt(Gi)))===null||ir===void 0)&&ir.disabled)},[Pi,jt]),[Xr,ui]=(0,M.useMemo)(()=>{if(J)return[wt||[],[]];const{checkedKeys:Gi,halfCheckedKeys:ir}=(0,Kr.S)(wt,!0,si,Mr);return[Gi||[],ir]},[wt,J,si,Mr]),io=(0,M.useMemo)(()=>{const Gi=gi==="radio"?Xr.slice(0,1):Xr;return new Set(Gi)},[Xr,gi]),bo=(0,M.useMemo)(()=>gi==="radio"?new Set:new Set(ui),[ui,gi]),[dr,Qi]=(0,M.useState)(null);M.useEffect(()=>{De||ii(Ma)},[!!De]);const oo=(0,M.useCallback)((Gi,ir)=>{let vr,sr;ji(Gi),dt?(vr=Gi,sr=Gi.map(ho=>ki.current.get(ho))):(vr=[],sr=[],Gi.forEach(ho=>{const $t=it(ho);$t!==void 0&&(vr.push(ho),sr.push($t))})),ii(vr),ve==null||ve(vr,sr,{type:ir})},[ii,it,ve,dt]),to=(0,M.useCallback)((Gi,ir,vr,sr)=>{if(bn){const ho=vr.map($t=>it($t));bn(it(Gi),ir,ho,sr)}oo(vr,"single")},[bn,it,oo]),pr=(0,M.useMemo)(()=>!ti||W?null:(ti===!0?[ro,ia,va]:ti).map(ir=>ir===ro?{key:"all",text:en.selectionAll,onSelect(){oo(Ae.map((vr,sr)=>jt(vr,sr)).filter(vr=>{const sr=Pi.get(vr);return!(sr!=null&&sr.disabled)||io.has(vr)}),"all")}}:ir===ia?{key:"invert",text:en.selectInvert,onSelect(){const vr=new Set(io);He.forEach((ho,$t)=>{const zr=jt(ho,$t),fo=Pi.get(zr);fo!=null&&fo.disabled||(vr.has(zr)?vr.delete(zr):vr.add(zr))});const sr=Array.from(vr);zn&&zn(sr),oo(sr,"invert")}}:ir===va?{key:"none",text:en.selectNone,onSelect(){jn==null||jn(),oo(Array.from(io).filter(vr=>{const sr=Pi.get(vr);return sr==null?void 0:sr.disabled}),"none")}}:ir).map(ir=>Object.assign(Object.assign({},ir),{onSelect:function(){for(var vr,sr,ho=arguments.length,$t=new Array(ho),zr=0;zr<ho;zr++)$t[zr]=arguments[zr];(sr=ir.onSelect)===null||sr===void 0||(vr=sr).call.apply(vr,[ir].concat($t)),Qi(null)}})),[ti,io,He,jt,zn,oo]);return[(0,M.useCallback)(Gi=>{var ir;if(!De)return Gi.filter(ko=>ko!==aa);let vr=(0,ei.Z)(Gi);const sr=new Set(io),ho=vi.map(jt).filter(ko=>!Pi.get(ko).disabled),$t=ho.every(ko=>sr.has(ko)),zr=ho.some(ko=>sr.has(ko)),fo=()=>{const ko=[];$t?ho.forEach(Zo=>{sr.delete(Zo),ko.push(Zo)}):ho.forEach(Zo=>{sr.has(Zo)||(sr.add(Zo),ko.push(Zo))});const Ho=Array.from(sr);ln==null||ln(!$t,Ho.map(Zo=>it(Zo)),ko.map(Zo=>it(Zo))),oo(Ho,"all"),Qi(null)};let un;if(gi!=="radio"){let ko;if(pr){const d={getPopupContainer:Gt,items:pr.map((g,K)=>{const{key:nt,text:gn,onSelect:Yn}=g;return{key:nt!=null?nt:K,onClick:()=>{Yn==null||Yn(ho)},label:gn}})};ko=M.createElement("div",{className:`${ge}-selection-extra`},M.createElement(xa.Z,{menu:d,getPopupContainer:Gt},M.createElement("span",null,M.createElement(Cs.Z,null))))}const Ho=vi.map((d,g)=>{const K=jt(d,g),nt=Pi.get(K)||{};return Object.assign({checked:sr.has(K)},nt)}).filter(d=>{let{disabled:g}=d;return g}),Zo=!!Ho.length&&Ho.length===vi.length,Sa=Zo&&Ho.every(d=>{let{checked:g}=d;return g}),Ha=Zo&&Ho.some(d=>{let{checked:g}=d;return g});un=!W&&M.createElement("div",{className:`${ge}-selection`},M.createElement(co.default,{checked:Zo?Sa:!!vi.length&&$t,indeterminate:Zo?!Sa&&Ha:!$t&&zr,onChange:fo,disabled:vi.length===0||Zo,"aria-label":ko?"Custom selection":"Select all",skipGroup:!0}),ko)}let da;gi==="radio"?da=(ko,Ho,Zo)=>{const Sa=jt(Ho,Zo),Ha=sr.has(Sa);return{node:M.createElement(mi.ZP,Object.assign({},Pi.get(Sa),{checked:Ha,onClick:d=>d.stopPropagation(),onChange:d=>{sr.has(Sa)||to(Sa,!0,[Sa],d.nativeEvent)}})),checked:Ha}}:da=(ko,Ho,Zo)=>{var Sa;const Ha=jt(Ho,Zo),d=sr.has(Ha),g=bo.has(Ha),K=Pi.get(Ha);let nt;return Qt==="nest"?nt=g:nt=(Sa=K==null?void 0:K.indeterminate)!==null&&Sa!==void 0?Sa:g,{node:M.createElement(co.default,Object.assign({},K,{indeterminate:nt,checked:d,skipGroup:!0,onClick:gn=>gn.stopPropagation(),onChange:gn=>{let{nativeEvent:Yn}=gn;const{shiftKey:wi}=Yn;let Cr=-1,Hr=-1;if(wi&&J){const Gn=new Set([dr,Ha]);ho.some((Hi,Or)=>{if(Gn.has(Hi))if(Cr===-1)Cr=Or;else return Hr=Or,!0;return!1})}if(Hr!==-1&&Cr!==Hr&&J){const Gn=ho.slice(Cr,Hr+1),Hi=[];d?Gn.forEach(Vr=>{sr.has(Vr)&&(Hi.push(Vr),sr.delete(Vr))}):Gn.forEach(Vr=>{sr.has(Vr)||(Hi.push(Vr),sr.add(Vr))});const Or=Array.from(sr);$n==null||$n(!d,Or.map(Vr=>it(Vr)),Hi.map(Vr=>it(Vr))),oo(Or,"multiple")}else{const Gn=Xr;if(J){const Hi=d?(0,jl._5)(Gn,Ha):(0,jl.L0)(Gn,Ha);to(Ha,!d,Hi,Yn)}else{const Hi=(0,Kr.S)([].concat((0,ei.Z)(Gn),[Ha]),!0,si,Mr),{checkedKeys:Or,halfCheckedKeys:Vr}=Hi;let $o=Or;if(d){const Rs=new Set(Or);Rs.delete(Ha),$o=(0,Kr.S)(Array.from(Rs),{checked:!1,halfCheckedKeys:Vr},si,Mr).checkedKeys}to(Ha,!d,$o,Yn)}}Qi(d?null:Ha)}})),checked:d}};const Ta=(ko,Ho,Zo)=>{const{node:Sa,checked:Ha}=da(ko,Ho,Zo);return P?P(Ha,Ho,Zo,Sa):Sa};if(!vr.includes(aa))if(vr.findIndex(ko=>{var Ho;return((Ho=ko[_i])===null||Ho===void 0?void 0:Ho.columnType)==="EXPAND_COLUMN"})===0){const[ko,...Ho]=vr;vr=[ko,aa].concat((0,ei.Z)(Ho))}else vr=[aa].concat((0,ei.Z)(vr));const es=vr.indexOf(aa);vr=vr.filter((ko,Ho)=>ko!==aa||Ho===es);const Fo=vr[es-1],qo=vr[es+1];let ta=E;ta===void 0&&((qo==null?void 0:qo.fixed)!==void 0?ta=qo.fixed:(Fo==null?void 0:Fo.fixed)!==void 0&&(ta=Fo.fixed)),ta&&Fo&&((ir=Fo[_i])===null||ir===void 0?void 0:ir.columnType)==="EXPAND_COLUMN"&&Fo.fixed===void 0&&(Fo.fixed=ta);const ya=Ge()(`${ge}-selection-col`,{[`${ge}-selection-col-with-dropdown`]:ti&&gi==="checkbox"}),zs={fixed:ta,width:hi,className:`${ge}-selection-column`,title:De.columnTitle||un,render:Ta,onCell:De.onCell,[_i]:{className:ya}};return vr.map(ko=>ko===aa?zs:ko)},[jt,vi,De,Xr,io,bo,hi,pr,Qt,dr,Pi,$n,to,Mr]),io]},wa=h(89489),hc=h(59477),zu=h(6848);const du="ascend",nr="descend";function Ks(we){return typeof we.sorter=="object"&&typeof we.sorter.multiple=="number"?we.sorter.multiple:!1}function qe(we){return typeof we=="function"?we:we&&typeof we=="object"&&we.compare?we.compare:!1}function Dn(we,De){return De?we[we.indexOf(De)+1]:we[0]}function Cu(we,De,dt){let xt=[];function _t(Dt,ve){xt.push({column:Dt,key:ka(Dt,ve),multiplePriority:Ks(Dt),sortOrder:Dt.sortOrder})}return(we||[]).forEach((Dt,ve)=>{const bn=ss(ve,dt);Dt.children?("sortOrder"in Dt&&_t(Dt,bn),xt=[].concat((0,ei.Z)(xt),(0,ei.Z)(Cu(Dt.children,De,bn)))):Dt.sorter&&("sortOrder"in Dt?_t(Dt,bn):De&&Dt.defaultSortOrder&&xt.push({column:Dt,key:ka(Dt,bn),multiplePriority:Ks(Dt),sortOrder:Dt.defaultSortOrder}))}),xt}function Yu(we,De,dt,xt,_t,Dt,ve,bn){return(De||[]).map((ln,zn)=>{const jn=ss(zn,bn);let $n=ln;if($n.sorter){const hi=$n.sortDirections||_t,gi=$n.showSorterTooltip===void 0?ve:$n.showSorterTooltip,ti=ka($n,jn),E=dt.find(Qt=>{let{key:bt}=Qt;return bt===ti}),P=E?E.sortOrder:null,W=Dn(hi,P);let J;if(ln.sortIcon)J=ln.sortIcon({sortOrder:P});else{const Qt=hi.includes(du)&&M.createElement(hc.Z,{className:Ge()(`${we}-column-sorter-up`,{active:P===du})}),bt=hi.includes(nr)&&M.createElement(wa.Z,{className:Ge()(`${we}-column-sorter-down`,{active:P===nr})});J=M.createElement("span",{className:Ge()(`${we}-column-sorter`,{[`${we}-column-sorter-full`]:!!(Qt&&bt)})},M.createElement("span",{className:`${we}-column-sorter-inner`,"aria-hidden":"true"},Qt,bt))}const{cancelSort:ge,triggerAsc:Ae,triggerDesc:He}=Dt||{};let it=ge;W===nr?it=He:W===du&&(it=Ae);const jt=typeof gi=="object"?gi:{title:it};$n=Object.assign(Object.assign({},$n),{className:Ge()($n.className,{[`${we}-column-sort`]:P}),title:Qt=>{const bt=M.createElement("div",{className:`${we}-column-sorters`},M.createElement("span",{className:`${we}-column-title`},Ua(ln.title,Qt)),J);return gi?M.createElement(zu.Z,Object.assign({},jt),bt):bt},onHeaderCell:Qt=>{const bt=ln.onHeaderCell&&ln.onHeaderCell(Qt)||{},en=bt.onClick,Gt=bt.onKeyDown;bt.onClick=ki=>{xt({column:ln,key:ti,sortOrder:W,multiplePriority:Ks(ln)}),en==null||en(ki)},bt.onKeyDown=ki=>{ki.keyCode===ai.Z.ENTER&&(xt({column:ln,key:ti,sortOrder:W,multiplePriority:Ks(ln)}),Gt==null||Gt(ki))};const wt=Go(ln.title,{}),ii=wt==null?void 0:wt.toString();return P?bt["aria-sort"]=P==="ascend"?"ascending":"descending":bt["aria-label"]=ii||"",bt.className=Ge()(bt.className,`${we}-column-has-sorters`),bt.tabIndex=0,ln.ellipsis&&(bt.title=(wt!=null?wt:"").toString()),bt}})}return"children"in $n&&($n=Object.assign(Object.assign({},$n),{children:Yu(we,$n.children,dt,xt,_t,Dt,ve,jn)})),$n})}function pl(we){const{column:De,sortOrder:dt}=we;return{column:De,order:dt,field:De.dataIndex,columnKey:De.key}}function ml(we){const De=we.filter(dt=>{let{sortOrder:xt}=dt;return xt}).map(pl);return De.length===0&&we.length?Object.assign(Object.assign({},pl(we[we.length-1])),{column:void 0}):De.length<=1?De[0]||{}:De}function gl(we,De,dt){const xt=De.slice().sort((ve,bn)=>bn.multiplePriority-ve.multiplePriority),_t=we.slice(),Dt=xt.filter(ve=>{let{column:{sorter:bn},sortOrder:ln}=ve;return qe(bn)&&ln});return Dt.length?_t.sort((ve,bn)=>{for(let ln=0;ln<Dt.length;ln+=1){const zn=Dt[ln],{column:{sorter:jn},sortOrder:$n}=zn,hi=qe(jn);if(hi&&$n){const gi=hi(ve,bn,$n);if(gi!==0)return $n===du?gi:-gi}}return 0}).map(ve=>{const bn=ve[dt];return bn?Object.assign(Object.assign({},ve),{[dt]:gl(bn,De,dt)}):ve}):_t}function Xu(we){let{prefixCls:De,mergedColumns:dt,onSorterChange:xt,sortDirections:_t,tableLocale:Dt,showSorterTooltip:ve}=we;const[bn,ln]=M.useState(Cu(dt,!0)),zn=M.useMemo(()=>{let ti=!0;const E=Cu(dt,!1);if(!E.length)return bn;const P=[];function W(ge){ti?P.push(ge):P.push(Object.assign(Object.assign({},ge),{sortOrder:null}))}let J=null;return E.forEach(ge=>{J===null?(W(ge),ge.sortOrder&&(ge.multiplePriority===!1?ti=!1:J=!0)):(J&&ge.multiplePriority!==!1||(ti=!1),W(ge))}),P},[dt,bn]),jn=M.useMemo(()=>{const ti=zn.map(E=>{let{column:P,sortOrder:W}=E;return{column:P,order:W}});return{sortColumns:ti,sortColumn:ti[0]&&ti[0].column,sortOrder:ti[0]&&ti[0].order}},[zn]);function $n(ti){let E;ti.multiplePriority===!1||!zn.length||zn[0].multiplePriority===!1?E=[ti]:E=[].concat((0,ei.Z)(zn.filter(P=>{let{key:W}=P;return W!==ti.key})),[ti]),ln(E),xt(ml(E),E)}return[ti=>Yu(De,ti,zn,$n,_t,Dt,ve),zn,jn,()=>ml(zn)]}function Tu(we,De){return we.map(dt=>{const xt=Object.assign({},dt);return xt.title=Ua(dt.title,De),"children"in xt&&(xt.children=Tu(xt.children,De)),xt})}function Ca(we){return[M.useCallback(dt=>Tu(dt,we),[we])]}var Dr=Tt((we,De)=>{const{_renderTimes:dt}=we,{_renderTimes:xt}=De;return dt!==xt}),fs=br((we,De)=>{const{_renderTimes:dt}=we,{_renderTimes:xt}=De;return dt!==xt}),as=h(64993),Eo=h(17313),vo=h(83116),Wa=h(37613),sa=we=>{const{componentCls:De}=we,dt=`${we.lineWidth}px ${we.lineType} ${we.tableBorderColor}`,xt=(_t,Dt,ve)=>({[`&${De}-${_t}`]:{[`> ${De}-container`]:{[`> ${De}-content, > ${De}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${De}-expanded-row-fixed`]:{margin:`-${Dt}px -${ve+we.lineWidth}px`}}}}}});return{[`${De}-wrapper`]:{[`${De}${De}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${De}-title`]:{border:dt,borderBottom:0},[`> ${De}-container`]:{borderInlineStart:dt,borderTop:dt,[`
> ${De}-content,
> ${De}-header,
> ${De}-body,
> ${De}-summary
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:dt},"> thead":{"> tr:not(:last-child) > th":{borderBottom:dt},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${De}-cell-fix-right-first::after`]:{borderInlineEnd:dt}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${De}-expanded-row-fixed`]:{margin:`-${we.tablePaddingVertical}px -${we.tablePaddingHorizontal+we.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:we.lineWidth,bottom:0,borderInlineEnd:dt,content:'""'}}}}}},[`&${De}-scroll-horizontal`]:{[`> ${De}-container > ${De}-body`]:{"> table > tbody":{[`
> tr${De}-expanded-row,
> tr${De}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},xt("middle",we.tablePaddingVerticalMiddle,we.tablePaddingHorizontalMiddle)),xt("small",we.tablePaddingVerticalSmall,we.tablePaddingHorizontalSmall)),{[`> ${De}-footer`]:{border:dt,borderTop:0}}),[`${De}-cell`]:{[`${De}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${we.lineWidth}px 0 ${we.lineWidth}px ${we.tableHeaderBg}`}},[`${De}-bordered ${De}-cell-scrollbar`]:{borderInlineEnd:dt}}}},Va=we=>{const{componentCls:De}=we;return{[`${De}-wrapper`]:{[`${De}-cell-ellipsis`]:Object.assign(Object.assign({},Eo.vS),{wordBreak:"keep-all",[`
&${De}-cell-fix-left-last,
&${De}-cell-fix-right-first
`]:{overflow:"visible",[`${De}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${De}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Ro=we=>{const{componentCls:De}=we;return{[`${De}-wrapper`]:{[`${De}-tbody > tr${De}-placeholder`]:{textAlign:"center",color:we.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:we.colorBgContainer}}}}},vs=h(15969),Ko=we=>{const{componentCls:De,antCls:dt,controlInteractiveSize:xt,motionDurationSlow:_t,lineWidth:Dt,paddingXS:ve,lineType:bn,tableBorderColor:ln,tableExpandIconBg:zn,tableExpandColumnWidth:jn,borderRadius:$n,fontSize:hi,fontSizeSM:gi,lineHeight:ti,tablePaddingVertical:E,tablePaddingHorizontal:P,tableExpandedRowBg:W,paddingXXS:J}=we,ge=xt/2-Dt,Ae=ge*2+Dt*3,He=`${Dt}px ${bn} ${ln}`,it=J-Dt;return{[`${De}-wrapper`]:{[`${De}-expand-icon-col`]:{width:jn},[`${De}-row-expand-icon-cell`]:{textAlign:"center",[`${De}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${De}-row-indent`]:{height:1,float:"left"},[`${De}-row-expand-icon`]:Object.assign(Object.assign({},(0,vs.N)(we)),{position:"relative",float:"left",boxSizing:"border-box",width:Ae,height:Ae,padding:0,color:"inherit",lineHeight:`${Ae}px`,background:zn,border:He,borderRadius:$n,transform:`scale(${xt/Ae})`,transition:`all ${_t}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${_t} ease-out`,content:'""'},"&::before":{top:ge,insetInlineEnd:it,insetInlineStart:it,height:Dt},"&::after":{top:it,bottom:it,insetInlineStart:ge,width:Dt,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${De}-row-indent + ${De}-row-expand-icon`]:{marginTop:(hi*ti-Dt*3)/2-Math.ceil((gi*1.4-Dt*3)/2),marginInlineEnd:ve},[`tr${De}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:W}},[`${dt}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${De}-expanded-row-fixed`]:{position:"relative",margin:`-${E}px -${P}px`,padding:`${E}px ${P}px`}}}},La=we=>{const{componentCls:De,antCls:dt,iconCls:xt,tableFilterDropdownWidth:_t,tableFilterDropdownSearchWidth:Dt,paddingXXS:ve,paddingXS:bn,colorText:ln,lineWidth:zn,lineType:jn,tableBorderColor:$n,tableHeaderIconColor:hi,fontSizeSM:gi,tablePaddingHorizontal:ti,borderRadius:E,motionDurationSlow:P,colorTextDescription:W,colorPrimary:J,tableHeaderFilterActiveBg:ge,colorTextDisabled:Ae,tableFilterDropdownBg:He,tableFilterDropdownHeight:it,controlItemBgHover:jt,controlItemBgActive:Qt,boxShadowSecondary:bt,filterDropdownMenuBg:en}=we,Gt=`${dt}-dropdown`,wt=`${De}-filter-dropdown`,ii=`${dt}-tree`,ki=`${zn}px ${jn} ${$n}`;return[{[`${De}-wrapper`]:{[`${De}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${De}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-ve,marginInline:`${ve}px ${-ti/2}px`,padding:`0 ${ve}px`,color:hi,fontSize:gi,borderRadius:E,cursor:"pointer",transition:`all ${P}`,"&:hover":{color:W,background:ge},"&.active":{color:J}}}},{[`${dt}-dropdown`]:{[wt]:Object.assign(Object.assign({},(0,Eo.Wf)(we)),{minWidth:_t,backgroundColor:He,borderRadius:E,boxShadow:bt,overflow:"hidden",[`${Gt}-menu`]:{maxHeight:it,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:en,"&:empty::after":{display:"block",padding:`${bn}px 0`,color:Ae,fontSize:gi,textAlign:"center",content:'"Not Found"'}},[`${wt}-tree`]:{paddingBlock:`${bn}px 0`,paddingInline:bn,[ii]:{padding:0},[`${ii}-treenode ${ii}-node-content-wrapper:hover`]:{backgroundColor:jt},[`${ii}-treenode-checkbox-checked ${ii}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Qt}}},[`${wt}-search`]:{padding:bn,borderBottom:ki,"&-input":{input:{minWidth:Dt},[xt]:{color:Ae}}},[`${wt}-checkall`]:{width:"100%",marginBottom:ve,marginInlineStart:ve},[`${wt}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${bn-zn}px ${bn}px`,overflow:"hidden",borderTop:ki}})}},{[`${dt}-dropdown ${wt}, ${wt}-submenu`]:{[`${dt}-checkbox-wrapper + span`]:{paddingInlineStart:bn,color:ln},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},fu=we=>{const{componentCls:De,lineWidth:dt,colorSplit:xt,motionDurationSlow:_t,zIndexTableFixed:Dt,tableBg:ve,zIndexTableSticky:bn}=we,ln=xt;return{[`${De}-wrapper`]:{[`
${De}-cell-fix-left,
${De}-cell-fix-right
`]:{position:"sticky !important",zIndex:Dt,background:ve},[`
${De}-cell-fix-left-first::after,
${De}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-dt,width:30,transform:"translateX(100%)",transition:`box-shadow ${_t}`,content:'""',pointerEvents:"none"},[`${De}-cell-fix-left-all::after`]:{display:"none"},[`
${De}-cell-fix-right-first::after,
${De}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:-dt,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${_t}`,content:'""',pointerEvents:"none"},[`${De}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:bn+1,width:30,transition:`box-shadow ${_t}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${De}-ping-left`]:{[`&:not(${De}-has-fix-left) ${De}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${ln}`}},[`
${De}-cell-fix-left-first::after,
${De}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${ln}`},[`${De}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${De}-ping-right`]:{[`&:not(${De}-has-fix-right) ${De}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${ln}`}},[`
${De}-cell-fix-right-first::after,
${De}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${ln}`}}}}},dc=we=>{const{componentCls:De,antCls:dt}=we;return{[`${De}-wrapper`]:{[`${De}-pagination${dt}-pagination`]:{margin:`${we.margin}px 0`},[`${De}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:we.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Qu=we=>{const{componentCls:De,tableRadius:dt}=we;return{[`${De}-wrapper`]:{[De]:{[`${De}-title, ${De}-header`]:{borderRadius:`${dt}px ${dt}px 0 0`},[`${De}-title + ${De}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${De}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:dt,borderStartEndRadius:dt,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:dt},"> *:last-child":{borderStartEndRadius:dt}}},"&-footer":{borderRadius:`0 0 ${dt}px ${dt}px`}}}}},tu=we=>{const{componentCls:De}=we;return{[`${De}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${De}-pagination-left`]:{justifyContent:"flex-end"},[`${De}-pagination-right`]:{justifyContent:"flex-start"},[`${De}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${De}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${De}-row-indent`]:{float:"right"}}}}},Uu=we=>{const{componentCls:De,antCls:dt,iconCls:xt,fontSizeIcon:_t,padding:Dt,paddingXS:ve,tableHeaderIconColor:bn,tableHeaderIconColorHover:ln,tableSelectionColumnWidth:zn}=we;return{[`${De}-wrapper`]:{[`${De}-selection-col`]:{width:zn,[`&${De}-selection-col-with-dropdown`]:{width:zn+_t+Dt/4}},[`${De}-bordered ${De}-selection-col`]:{width:zn+ve*2,[`&${De}-selection-col-with-dropdown`]:{width:zn+_t+Dt/4+ve*2}},[`
table tr th${De}-selection-column,
table tr td${De}-selection-column
`]:{paddingInlineEnd:we.paddingXS,paddingInlineStart:we.paddingXS,textAlign:"center",[`${dt}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${De}-selection-column${De}-cell-fix-left`]:{zIndex:we.zIndexTableFixed+1},[`table tr th${De}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${De}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${De}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${we.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${we.tablePaddingHorizontal/4}px`,[xt]:{color:bn,fontSize:_t,verticalAlign:"baseline","&:hover":{color:ln}}}}}},Zs=we=>{const{componentCls:De}=we,dt=(xt,_t,Dt,ve)=>({[`${De}${De}-${xt}`]:{fontSize:ve,[`
${De}-title,
${De}-footer,
${De}-cell,
${De}-thead > tr > th,
${De}-tbody > tr > th,
${De}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${_t}px ${Dt}px`},[`${De}-filter-trigger`]:{marginInlineEnd:`-${Dt/2}px`},[`${De}-expanded-row-fixed`]:{margin:`-${_t}px -${Dt}px`},[`${De}-tbody`]:{[`${De}-wrapper:only-child ${De}`]:{marginBlock:`-${_t}px`,marginInline:`${we.tableExpandColumnWidth-Dt}px -${Dt}px`}},[`${De}-selection-column`]:{paddingInlineStart:`${Dt/4}px`}}});return{[`${De}-wrapper`]:Object.assign(Object.assign({},dt("middle",we.tablePaddingVerticalMiddle,we.tablePaddingHorizontalMiddle,we.tableFontSizeMiddle)),dt("small",we.tablePaddingVerticalSmall,we.tablePaddingHorizontalSmall,we.tableFontSizeSmall))}},Ls=we=>{const{componentCls:De,marginXXS:dt,fontSizeIcon:xt,tableHeaderIconColor:_t,tableHeaderIconColorHover:Dt}=we;return{[`${De}-wrapper`]:{[`${De}-thead th${De}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${we.motionDurationSlow}`,"&:hover":{background:we.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:we.colorPrimary},[`
&${De}-cell-fix-left:hover,
&${De}-cell-fix-right:hover
`]:{background:we.tableFixedHeaderSortActiveBg}},[`${De}-thead th${De}-column-sort`]:{background:we.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${De}-column-sort`]:{background:we.tableBodySortBg},[`${De}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${De}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${De}-column-sorter`]:{marginInlineStart:dt,color:_t,fontSize:0,transition:`color ${we.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:xt,"&.active":{color:we.colorPrimary}},[`${De}-column-sorter-up + ${De}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${De}-column-sorters:hover ${De}-column-sorter`]:{color:Dt}}}},Dl=we=>{const{componentCls:De,opacityLoading:dt,tableScrollThumbBg:xt,tableScrollThumbBgHover:_t,tableScrollThumbSize:Dt,tableScrollBg:ve,zIndexTableSticky:bn,stickyScrollBarBorderRadius:ln}=we,zn=`${we.lineWidth}px ${we.lineType} ${we.tableBorderColor}`;return{[`${De}-wrapper`]:{[`${De}-sticky`]:{"&-holder":{position:"sticky",zIndex:bn,background:we.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Dt}px !important`,zIndex:bn,display:"flex",alignItems:"center",background:ve,borderTop:zn,opacity:dt,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Dt,backgroundColor:xt,borderRadius:ln,transition:`all ${we.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:_t}}}}}}},bl=we=>{const{componentCls:De,lineWidth:dt,tableBorderColor:xt}=we,_t=`${dt}px ${we.lineType} ${xt}`;return{[`${De}-wrapper`]:{[`${De}-summary`]:{position:"relative",zIndex:we.zIndexTableFixed,background:we.tableBg,"> tr":{"> th, > td":{borderBottom:_t}}},[`div${De}-summary`]:{boxShadow:`0 -${dt}px 0 ${xt}`}}}},pu=we=>{const{componentCls:De}=we,dt=`${we.lineWidth}px ${we.lineType} ${we.tableBorderColor}`,xt=`${De}-expanded-row-cell`;return{[`${De}-wrapper`]:{[`${De}-tbody-virtual`]:{[`${De}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${De}-cell`]:{borderBottom:dt},[`${De}-expanded-row`]:{[`${xt}${xt}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${we.lineWidth}px)`,borderInlineEnd:"none"}}},[`${De}-bordered`]:{[`${De}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:dt,position:"absolute"},[`${De}-cell`]:{borderInlineEnd:dt,[`&${De}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-we.lineWidth,borderInlineStart:dt}}}}}}};const Ys=we=>{const{componentCls:De,fontWeightStrong:dt,tablePaddingVertical:xt,tablePaddingHorizontal:_t,lineWidth:Dt,lineType:ve,tableBorderColor:bn,tableFontSize:ln,tableBg:zn,tableRadius:jn,tableHeaderTextColor:$n,motionDurationMid:hi,tableHeaderBg:gi,tableHeaderCellSplitColor:ti,tableRowHoverBg:E,tableSelectedRowBg:P,tableSelectedRowHoverBg:W,tableFooterTextColor:J,tableFooterBg:ge,paddingContentVerticalLG:Ae}=we,He=`${Dt}px ${ve} ${bn}`;return{[`${De}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Eo.dF)()),{[De]:Object.assign(Object.assign({},(0,Eo.Wf)(we)),{fontSize:ln,background:zn,borderRadius:`${jn}px ${jn}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${jn}px ${jn}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${De}-cell,
${De}-thead > tr > th,
${De}-tbody > tr > th,
${De}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${Ae}px ${_t}px`,overflowWrap:"break-word"},[`${De}-title`]:{padding:`${xt}px ${_t}px`},[`${De}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:$n,fontWeight:dt,textAlign:"start",background:gi,borderBottom:He,transition:`background ${hi} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${De}-selection-column):not(${De}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:ti,transform:"translateY(-50%)",transition:`background-color ${hi}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${De}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${hi}, border-color ${hi}`,borderBottom:He,[`
> ${De}-wrapper:only-child,
> ${De}-expanded-row-fixed > ${De}-wrapper:only-child
`]:{[De]:{marginBlock:`-${xt}px`,marginInline:`${we.tableExpandColumnWidth-_t}px -${_t}px`,[`${De}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:$n,fontWeight:dt,textAlign:"start",background:gi,borderBottom:He,transition:`background ${hi} ease`},[`
&${De}-row:hover > th,
&${De}-row:hover > td,
> th${De}-cell-row-hover,
> td${De}-cell-row-hover
`]:{background:E},[`&${De}-row-selected`]:{"> th, > td":{background:P},"&:hover > th, &:hover > td":{background:W}}}},[`${De}-footer`]:{padding:`${xt}px ${_t}px`,color:J,background:ge}})}};var Wl=(0,vo.Z)("Table",we=>{const{colorTextHeading:De,colorSplit:dt,colorIcon:xt,colorIconHover:_t,opacityLoading:Dt,colorBgContainer:ve,controlInteractiveSize:bn,headerBg:ln,headerColor:zn,headerSortActiveBg:jn,headerSortHoverBg:$n,bodySortBg:hi,rowHoverBg:gi,rowSelectedBg:ti,rowSelectedHoverBg:E,rowExpandedBg:P,cellPaddingBlock:W,cellPaddingInline:J,cellPaddingBlockMD:ge,cellPaddingInlineMD:Ae,cellPaddingBlockSM:He,cellPaddingInlineSM:it,borderColor:jt,footerBg:Qt,footerColor:bt,headerBorderRadius:en,cellFontSize:Gt,cellFontSizeMD:wt,cellFontSizeSM:ii,headerSplitColor:ki,fixedHeaderSortActiveBg:ji,headerFilterHoverBg:si,filterDropdownBg:vi,expandIconBg:Pi,selectionColumnWidth:Mr,stickyScrollBarBg:Xr}=we,ui=new as.C(xt),io=new as.C(_t),bo=2,dr=(0,Wa.TS)(we,{tableFontSize:Gt,tableBg:ve,tableRadius:en,tablePaddingVertical:W,tablePaddingHorizontal:J,tablePaddingVerticalMiddle:ge,tablePaddingHorizontalMiddle:Ae,tablePaddingVerticalSmall:He,tablePaddingHorizontalSmall:it,tableBorderColor:jt,tableHeaderTextColor:zn,tableHeaderBg:ln,tableFooterTextColor:bt,tableFooterBg:Qt,tableHeaderCellSplitColor:ki,tableHeaderSortBg:jn,tableHeaderSortHoverBg:$n,tableHeaderIconColor:ui.clone().setAlpha(ui.getAlpha()*Dt).toRgbString(),tableHeaderIconColorHover:io.clone().setAlpha(io.getAlpha()*Dt).toRgbString(),tableBodySortBg:hi,tableFixedHeaderSortActiveBg:ji,tableHeaderFilterActiveBg:si,tableFilterDropdownBg:vi,tableRowHoverBg:gi,tableSelectedRowBg:ti,tableSelectedRowHoverBg:E,zIndexTableFixed:bo,zIndexTableSticky:bo+1,tableFontSizeMiddle:wt,tableFontSizeSmall:ii,tableSelectionColumnWidth:Mr,tableExpandIconBg:Pi,tableExpandColumnWidth:bn+2*we.padding,tableExpandedRowBg:P,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Xr,tableScrollThumbBgHover:De,tableScrollBg:dt});return[Ys(dr),dc(dr),bl(dr),Ls(dr),La(dr),sa(dr),Qu(dr),Ko(dr),bl(dr),Ro(dr),Uu(dr),fu(dr),Dl(dr),Va(dr),Zs(dr),tu(dr),pu(dr)]},we=>{const{colorFillAlter:De,colorBgContainer:dt,colorTextHeading:xt,colorFillSecondary:_t,colorFillContent:Dt,controlItemBgActive:ve,controlItemBgActiveHover:bn,padding:ln,paddingSM:zn,paddingXS:jn,colorBorderSecondary:$n,borderRadiusLG:hi,fontSize:gi,controlHeight:ti,colorTextPlaceholder:E}=we,P=new as.C(_t).onBackground(dt).toHexShortString(),W=new as.C(Dt).onBackground(dt).toHexShortString(),J=new as.C(De).onBackground(dt).toHexShortString();return{headerBg:J,headerColor:xt,headerSortActiveBg:P,headerSortHoverBg:W,bodySortBg:J,rowHoverBg:J,rowSelectedBg:ve,rowSelectedHoverBg:bn,rowExpandedBg:De,cellPaddingBlock:ln,cellPaddingInline:ln,cellPaddingBlockMD:zn,cellPaddingInlineMD:jn,cellPaddingBlockSM:jn,cellPaddingInlineSM:jn,borderColor:$n,headerBorderRadius:hi,footerBg:J,footerColor:xt,cellFontSize:gi,cellFontSizeMD:gi,cellFontSizeSM:gi,headerSplitColor:$n,fixedHeaderSortActiveBg:P,headerFilterHoverBg:Dt,filterDropdownMenuBg:dt,filterDropdownBg:dt,expandIconBg:dt,selectionColumnWidth:ti,stickyScrollBarBg:E,stickyScrollBarBorderRadius:100}});const mu=[],nu=(we,De)=>{const{prefixCls:dt,className:xt,rootClassName:_t,style:Dt,size:ve,bordered:bn,dropdownPrefixCls:ln,dataSource:zn,pagination:jn,rowSelection:$n,rowKey:hi="key",rowClassName:gi,columns:ti,children:E,childrenColumnName:P,onChange:W,getPopupContainer:J,loading:ge,expandIcon:Ae,expandable:He,expandedRowRender:it,expandIconColumnIndex:jt,indentSize:Qt,scroll:bt,sortDirections:en,locale:Gt,showSorterTooltip:wt=!0,virtual:ii}=we,ki=M.useMemo(()=>ti||_n(E),[ti,E]),ji=M.useMemo(()=>ki.some(po=>po.responsive),[ki]),si=(0,pi.Z)(ji),vi=M.useMemo(()=>{const po=new Set(Object.keys(si).filter(ra=>si[ra]));return ki.filter(ra=>!ra.responsive||ra.responsive.some(Na=>po.has(Na)))},[ki,si]),Pi=(0,Ki.Z)(we,["className","style","columns"]),{locale:Mr=pa.Z,direction:Xr,table:ui,renderEmpty:io,getPrefixCls:bo,getPopupContainer:dr}=M.useContext(Wr.E_),Qi=(0,Lo.Z)(ve),oo=Object.assign(Object.assign({},Mr.Table),Gt),to=zn||mu,pr=bo("table",dt),_r=bo("dropdown",ln),Gi=Object.assign({childrenColumnName:P,expandIconColumnIndex:jt},He),{childrenColumnName:ir="children"}=Gi,vr=M.useMemo(()=>to.some(po=>po==null?void 0:po[ir])?"nest":it||He&&He.expandedRowRender?"row":null,[to]),sr={body:M.useRef()},ho=M.useMemo(()=>typeof hi=="function"?hi:po=>po==null?void 0:po[hi],[hi]),[$t]=il(to,ir,ho),zr={},fo=function(po,ra){let Na=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var A,m,S;const D=Object.assign(Object.assign({},zr),po);Na&&((A=zr.resetPagination)===null||A===void 0||A.call(zr),!((m=D.pagination)===null||m===void 0)&&m.current&&(D.pagination.current=1),jn&&jn.onChange&&jn.onChange(1,(S=D.pagination)===null||S===void 0?void 0:S.pageSize)),bt&&bt.scrollToFirstRowOnChange!==!1&&sr.body.current&&(0,Lr.Z)(0,{getContainer:()=>sr.body.current}),W==null||W(D.pagination,D.filters,D.sorter,{currentDataSource:ja(gl(to,D.sorterStates,ir),D.filterStates),action:ra})},un=(po,ra)=>{fo({sorter:po,sorterStates:ra},"sort",!1)},[da,Ta,es,Fo]=Xu({prefixCls:pr,mergedColumns:vi,onSorterChange:un,sortDirections:en||["ascend","descend"],tableLocale:oo,showSorterTooltip:wt}),qo=M.useMemo(()=>gl(to,Ta,ir),[to,Ta]);zr.sorter=Fo(),zr.sorterStates=Ta;const ta=(po,ra)=>{fo({filters:po,filterStates:ra},"filter",!0)},[ya,zs,ko]=_o({prefixCls:pr,locale:oo,dropdownPrefixCls:_r,mergedColumns:vi,onFilterChange:ta,getPopupContainer:J||dr}),Ho=ja(qo,zs);zr.filters=ko,zr.filterStates=zs;const Zo=M.useMemo(()=>{const po={};return Object.keys(ko).forEach(ra=>{ko[ra]!==null&&(po[ra]=ko[ra])}),Object.assign(Object.assign({},es),{filters:po})},[es,ko]),[Sa]=Ca(Zo),Ha=(po,ra)=>{fo({pagination:Object.assign(Object.assign({},zr.pagination),{current:po,pageSize:ra})},"paginate")},[d,g]=Vi(Ho.length,Ha,jn);zr.pagination=jn===!1?{}:os(d,jn),zr.resetPagination=g;const K=M.useMemo(()=>{if(jn===!1||!d.pageSize)return Ho;const{current:po=1,total:ra,pageSize:Na=Ga}=d;return Ho.length<ra?Ho.length>Na?Ho.slice((po-1)*Na,po*Na):Ho:Ho.slice((po-1)*Na,po*Na)},[!!jn,Ho,d&&d.current,d&&d.pageSize,d&&d.total]),[nt,gn]=Vs({prefixCls:pr,data:Ho,pageData:K,getRowKey:ho,getRecordByKey:$t,expandType:vr,childrenColumnName:ir,locale:oo,getPopupContainer:J||dr},$n),Yn=(po,ra,Na)=>{let A;return typeof gi=="function"?A=Ge()(gi(po,ra,Na)):A=Ge()(gi),Ge()({[`${pr}-row-selected`]:gn.has(ho(po,ra))},A)};Gi.__PARENT_RENDER_ICON__=Gi.expandIcon,Gi.expandIcon=Gi.expandIcon||Ae||is(oo),vr==="nest"&&Gi.expandIconColumnIndex===void 0?Gi.expandIconColumnIndex=$n?1:0:Gi.expandIconColumnIndex>0&&$n&&(Gi.expandIconColumnIndex-=1),typeof Gi.indentSize!="number"&&(Gi.indentSize=typeof Qt=="number"?Qt:15);const wi=M.useCallback(po=>Sa(nt(ya(da(po)))),[da,ya,nt]);let Cr,Hr;if(jn!==!1&&(d!=null&&d.total)){let po;d.size?po=d.size:po=Qi==="small"||Qi==="middle"?"small":void 0;const ra=m=>M.createElement(Uo.Z,Object.assign({},d,{className:Ge()(`${pr}-pagination ${pr}-pagination-${m}`,d.className),size:po})),Na=Xr==="rtl"?"left":"right",{position:A}=d;if(A!==null&&Array.isArray(A)){const m=A.find(Z=>Z.includes("top")),S=A.find(Z=>Z.includes("bottom")),D=A.every(Z=>`${Z}`=="none");!m&&!S&&!D&&(Hr=ra(Na)),m&&(Cr=ra(m.toLowerCase().replace("top",""))),S&&(Hr=ra(S.toLowerCase().replace("bottom","")))}else Hr=ra(Na)}let Gn;typeof ge=="boolean"?Gn={spinning:ge}:typeof ge=="object"&&(Gn=Object.assign({spinning:!0},ge));const[Hi,Or]=Wl(pr),[,Vr]=(0,ma.Z)(),$o=Ge()(`${pr}-wrapper`,ui==null?void 0:ui.className,{[`${pr}-wrapper-rtl`]:Xr==="rtl"},xt,_t,Or),Rs=Object.assign(Object.assign({},ui==null?void 0:ui.style),Dt),Ds=Gt&&Gt.emptyText||(io==null?void 0:io("Table"))||M.createElement(eo.Z,{componentName:"Table"}),Ps=ii?fs:Dr,ol={},Ts=M.useMemo(()=>{const{fontSize:po,lineHeight:ra,padding:Na,paddingXS:A,paddingSM:m}=Vr,S=Math.floor(po*ra);switch(Qi){case"large":return Na*2+S;case"small":return A*2+S;default:return m*2+S}},[Vr,Qi]);return ii&&(ol.listItemHeight=Ts),Hi(M.createElement("div",{ref:De,className:$o,style:Rs},M.createElement(oa.Z,Object.assign({spinning:!1},Gn),Cr,M.createElement(Ps,Object.assign({},ol,Pi,{columns:vi,direction:Xr,expandable:Gi,prefixCls:pr,className:Ge()({[`${pr}-middle`]:Qi==="middle",[`${pr}-small`]:Qi==="small",[`${pr}-bordered`]:bn,[`${pr}-empty`]:to.length===0}),data:K,rowKey:ho,rowClassName:Yn,emptyText:Ds,internalHooks:I,internalRefs:sr,transformColumns:wi})),Hr)))};var Nu=M.forwardRef(nu);const Ws=(we,De)=>{const dt=M.useRef(0);return dt.current+=1,M.createElement(Nu,Object.assign({},we,{ref:De,_renderTimes:dt.current}))},ys=M.forwardRef(Ws);ys.SELECTION_COLUMN=aa,ys.EXPAND_COLUMN=v,ys.SELECTION_ALL=ro,ys.SELECTION_INVERT=ia,ys.SELECTION_NONE=va,ys.Column=Ri,ys.ColumnGroup=hr,ys.Summary=$e;var iu=ys,Au=iu},17574:function(X,C,h){"use strict";h.d(C,{default:function(){return Qe}});var v=h(43858),I=h(19127),O=h(52671),B=h(8657),G=h(96663),F=h(59301),M={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},de=M,ae=h(7657),te=function(ce,Ht){return F.createElement(ae.Z,(0,G.Z)({},ce,{ref:Ht,icon:de}))},Ne=F.forwardRef(te),Ee=Ne,Xe=h(92310),Oe=h.n(Xe),Ce=h(35654),Ie=h(71430),Re=h(36355),fe=h(56082),me=h(62892),ye=h(20648);const pe=4;function ke(le){const{dropPosition:ce,dropLevelOffset:Ht,prefixCls:Vt,indent:St,direction:sn="ltr"}=le,Ft=sn==="ltr"?"left":"right",oi=sn==="ltr"?"right":"left",On={[Ft]:-Ht*St+pe,[oi]:0};switch(ce){case-1:On.top=-3;break;case 1:On.bottom=-3;break;default:On.bottom=-3,On[Ft]=St+pe;break}return F.createElement("div",{style:On,className:`${Vt}-drop-indicator`})}var ee=h(71997),Me=F.forwardRef((le,ce)=>{const{getPrefixCls:Ht,direction:Vt,virtual:St,tree:sn}=F.useContext(Re.E_),{prefixCls:Ft,className:oi,showIcon:On=!1,showLine:ni,switcherIcon:Jn,blockNode:Mn=!1,children:In,checkable:re=!1,selectable:z=!0,draggable:k,motion:j,style:Q}=le,T=Ht("tree",Ft),_e=Ht(),It=j!=null?j:Object.assign(Object.assign({},(0,me.Z)(_e)),{motionAppear:!1}),$e=Object.assign(Object.assign({},le),{checkable:re,selectable:z,showIcon:On,motion:It,blockNode:Mn,showLine:!!ni,dropIndicatorRender:ke}),[Pe,vt]=(0,ye.ZP)(T),ut=F.useMemo(()=>{if(!k)return!1;let Et={};switch(typeof k){case"function":Et.nodeDraggable=k;break;case"object":Et=Object.assign({},k);break;default:break}return Et.icon!==!1&&(Et.icon=Et.icon||F.createElement(fe.Z,null)),Et},[k]),tt=Et=>F.createElement(ee.Z,{prefixCls:T,switcherIcon:Jn,treeNodeProps:Et,showLine:ni});return Pe(F.createElement(v.Z,Object.assign({itemHeight:20,ref:ce,virtual:St},$e,{style:Object.assign(Object.assign({},sn==null?void 0:sn.style),Q),prefixCls:T,className:Oe()({[`${T}-icon-hide`]:!On,[`${T}-block-node`]:Mn,[`${T}-unselectable`]:!z,[`${T}-rtl`]:Vt==="rtl"},sn==null?void 0:sn.className,oi,vt),direction:Vt,checkable:re&&F.createElement("span",{className:`${T}-checkbox-inner`}),selectable:z,switcherIcon:tt,draggable:ut}),In))}),Le;(function(le){le[le.None=0]="None",le[le.Start=1]="Start",le[le.End=2]="End"})(Le||(Le={}));function Je(le,ce){function Ht(Vt){const{key:St,children:sn}=Vt;ce(St,Vt)!==!1&&Je(sn||[],ce)}le.forEach(Ht)}function Ye(le){let{treeData:ce,expandedKeys:Ht,startKey:Vt,endKey:St}=le;const sn=[];let Ft=Le.None;if(Vt&&Vt===St)return[Vt];if(!Vt||!St)return[];function oi(On){return On===Vt||On===St}return Je(ce,On=>{if(Ft===Le.End)return!1;if(oi(On)){if(sn.push(On),Ft===Le.None)Ft=Le.Start;else if(Ft===Le.Start)return Ft=Le.End,!1}else Ft===Le.Start&&sn.push(On);return Ht.includes(On)}),sn}function ne(le,ce){const Ht=(0,I.Z)(ce),Vt=[];return Je(le,(St,sn)=>{const Ft=Ht.indexOf(St);return Ft!==-1&&(Vt.push(sn),Ht.splice(Ft,1)),!!Ht.length}),Vt}var at=function(le,ce){var Ht={};for(var Vt in le)Object.prototype.hasOwnProperty.call(le,Vt)&&ce.indexOf(Vt)<0&&(Ht[Vt]=le[Vt]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,Vt=Object.getOwnPropertySymbols(le);St<Vt.length;St++)ce.indexOf(Vt[St])<0&&Object.prototype.propertyIsEnumerable.call(le,Vt[St])&&(Ht[Vt[St]]=le[Vt[St]]);return Ht};function Ge(le){const{isLeaf:ce,expanded:Ht}=le;return ce?F.createElement(O.Z,null):Ht?F.createElement(B.Z,null):F.createElement(Ee,null)}function Pt(le){let{treeData:ce,children:Ht}=le;return ce||(0,Ie.zn)(Ht)}const gt=(le,ce)=>{var{defaultExpandAll:Ht,defaultExpandParent:Vt,defaultExpandedKeys:St}=le,sn=at(le,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Ft=F.useRef(),oi=F.useRef(),On=()=>{const{keyEntities:ut}=(0,Ie.I8)(Pt(sn));let tt;return Ht?tt=Object.keys(ut):Vt?tt=(0,Ce.r7)(sn.expandedKeys||St||[],ut):tt=sn.expandedKeys||St,tt},[ni,Jn]=F.useState(sn.selectedKeys||sn.defaultSelectedKeys||[]),[Mn,In]=F.useState(()=>On());F.useEffect(()=>{"selectedKeys"in sn&&Jn(sn.selectedKeys)},[sn.selectedKeys]),F.useEffect(()=>{"expandedKeys"in sn&&In(sn.expandedKeys)},[sn.expandedKeys]);const re=(ut,tt)=>{var Et;return"expandedKeys"in sn||In(ut),(Et=sn.onExpand)===null||Et===void 0?void 0:Et.call(sn,ut,tt)},z=(ut,tt)=>{var Et;const{multiple:pn}=sn,{node:nn,nativeEvent:Kt}=tt,{key:hn=""}=nn,an=Pt(sn),et=Object.assign(Object.assign({},tt),{selected:!0}),zt=(Kt==null?void 0:Kt.ctrlKey)||(Kt==null?void 0:Kt.metaKey),dn=Kt==null?void 0:Kt.shiftKey;let rn;pn&&zt?(rn=ut,Ft.current=hn,oi.current=rn,et.selectedNodes=ne(an,rn)):pn&&dn?(rn=Array.from(new Set([].concat((0,I.Z)(oi.current||[]),(0,I.Z)(Ye({treeData:an,expandedKeys:Mn,startKey:hn,endKey:Ft.current}))))),et.selectedNodes=ne(an,rn)):(rn=[hn],Ft.current=hn,oi.current=rn,et.selectedNodes=ne(an,rn)),(Et=sn.onSelect)===null||Et===void 0||Et.call(sn,rn,et),"selectedKeys"in sn||Jn(rn)},{getPrefixCls:k,direction:j}=F.useContext(Re.E_),{prefixCls:Q,className:T,showIcon:_e=!0,expandAction:It="click"}=sn,$e=at(sn,["prefixCls","className","showIcon","expandAction"]),Pe=k("tree",Q),vt=Oe()(`${Pe}-directory`,{[`${Pe}-directory-rtl`]:j==="rtl"},T);return F.createElement(Me,Object.assign({icon:Ge,ref:ce,blockNode:!0},$e,{showIcon:_e,expandAction:It,prefixCls:Pe,className:vt,expandedKeys:Mn,selectedKeys:ni,onSelect:z,onExpand:re}))};var Ct=F.forwardRef(gt);const Cn=Me;Cn.DirectoryTree=Ct,Cn.TreeNode=v.O;var Qe=Cn},20648:function(X,C,h){"use strict";h.d(C,{TM:function(){return Xe},Yk:function(){return Ee}});var v=h(93083),I=h(98447),O=h(17313),B=h(8378),G=h(37613),F=h(83116);const M=new v.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),de=(Oe,Ce)=>({[`.${Oe}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${Ce.motionDurationSlow}`}}}),ae=(Oe,Ce)=>({[`.${Oe}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:Ce.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${Ce.lineWidthBold}px solid ${Ce.colorPrimary}`,borderRadius:"50%",content:'""'}}}),te=(Oe,Ce)=>{const{treeCls:Ie,treeNodeCls:Re,treeNodePadding:fe,titleHeight:me,nodeSelectedBg:ye,nodeHoverBg:pe}=Ce,ke=Ce.paddingXS;return{[Ie]:Object.assign(Object.assign({},(0,O.Wf)(Ce)),{background:Ce.colorBgContainer,borderRadius:Ce.borderRadius,transition:`background-color ${Ce.motionDurationSlow}`,[`&${Ie}-rtl`]:{[`${Ie}-switcher`]:{"&_close":{[`${Ie}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${Ie}-active-focused)`]:Object.assign({},(0,O.oN)(Ce)),[`${Ie}-list-holder-inner`]:{alignItems:"flex-start"},[`&${Ie}-block-node`]:{[`${Ie}-list-holder-inner`]:{alignItems:"stretch",[`${Ie}-node-content-wrapper`]:{flex:"auto"},[`${Re}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:fe,insetInlineStart:0,border:`1px solid ${Ce.colorPrimary}`,opacity:0,animationName:M,animationDuration:Ce.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${Re}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${fe}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${Ie}-node-content-wrapper`]:{color:Ce.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${Ie}-node-content-wrapper`]:Object.assign({},(0,O.oN)(Ce)),[`&:not(${Re}-disabled).filter-node ${Ie}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${Ie}-draggable-icon`]:{flexShrink:0,width:me,lineHeight:`${me}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${Ce.motionDurationSlow}`,[`${Re}:hover &`]:{opacity:.45}},[`&${Re}-disabled`]:{[`${Ie}-draggable-icon`]:{visibility:"hidden"}}}},[`${Ie}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:me}},[`${Ie}-draggable-icon`]:{visibility:"hidden"},[`${Ie}-switcher`]:Object.assign(Object.assign({},de(Oe,Ce)),{position:"relative",flex:"none",alignSelf:"stretch",width:me,margin:0,lineHeight:`${me}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${Ie}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:Ce.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:me/2,bottom:-fe,marginInlineStart:-1,borderInlineEnd:`1px solid ${Ce.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:me/2*.8,height:me/2,borderBottom:`1px solid ${Ce.colorBorder}`,content:'""'}}}),[`${Ie}-checkbox`]:{top:"initial",marginInlineEnd:ke},[`${Ie}-node-content-wrapper, ${Ie}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:me,margin:0,padding:`0 ${Ce.paddingXS/2}px`,color:"inherit",lineHeight:`${me}px`,background:"transparent",borderRadius:Ce.borderRadius,cursor:"pointer",transition:`all ${Ce.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:pe},[`&${Ie}-node-selected`]:{backgroundColor:ye},[`${Ie}-iconEle`]:{display:"inline-block",width:me,height:me,lineHeight:`${me}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${Ie}-unselectable ${Ie}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${Ie}-node-content-wrapper`]:Object.assign({lineHeight:`${me}px`,userSelect:"none"},ae(Oe,Ce)),[`${Re}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${Ce.colorPrimary}`}},"&-show-line":{[`${Ie}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:me/2,bottom:-fe,borderInlineEnd:`1px solid ${Ce.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${Ie}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${Re}-leaf-last`]:{[`${Ie}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${me/2}px !important`}}}}})}},Ne=Oe=>{const{treeCls:Ce,treeNodeCls:Ie,treeNodePadding:Re,directoryNodeSelectedBg:fe,directoryNodeSelectedColor:me}=Oe;return{[`${Ce}${Ce}-directory`]:{[Ie]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:Re,insetInlineStart:0,transition:`background-color ${Oe.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:Oe.controlItemBgHover}},"> *":{zIndex:1},[`${Ce}-switcher`]:{transition:`color ${Oe.motionDurationMid}`},[`${Ce}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${Ce}-node-selected`]:{color:me,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:fe},[`${Ce}-switcher`]:{color:me},[`${Ce}-node-content-wrapper`]:{color:me,background:"transparent"}}}}}},Ee=(Oe,Ce)=>{const Ie=`.${Oe}`,Re=`${Ie}-treenode`,fe=Ce.paddingXS/2,me=(0,G.TS)(Ce,{treeCls:Ie,treeNodeCls:Re,treeNodePadding:fe});return[te(Oe,me),Ne(me)]},Xe=Oe=>{const{controlHeightSM:Ce}=Oe;return{titleHeight:Ce,nodeHoverBg:Oe.controlItemBgHover,nodeSelectedBg:Oe.controlItemBgActive}};C.ZP=(0,F.Z)("Tree",(Oe,Ce)=>{let{prefixCls:Ie}=Ce;return[{[Oe.componentCls]:(0,I.C2)(`${Ie}-checkbox`,Oe)},Ee(Ie,Oe),(0,B.Z)(Oe)]},Oe=>{const{colorTextLightSolid:Ce,colorPrimary:Ie}=Oe;return Object.assign(Object.assign({},Xe(Oe)),{directoryNodeSelectedColor:Ce,directoryNodeSelectedBg:Ie})})},71997:function(X,C,h){"use strict";h.d(C,{Z:function(){return Re}});var v=h(96663),I=h(59301),O={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},B=O,G=h(7657),F=function(me,ye){return I.createElement(G.Z,(0,v.Z)({},me,{ref:ye,icon:B}))},M=I.forwardRef(F),de=M,ae=h(52671),te=h(58617),Ne=h(15075),Ee=h(43531),Xe=h(92310),Oe=h.n(Xe),Ce=h(92343),Re=fe=>{const{prefixCls:me,switcherIcon:ye,treeNodeProps:pe,showLine:ke}=fe,{isLeaf:ee,expanded:Te,loading:Me}=pe;if(Me)return I.createElement(te.Z,{className:`${me}-switcher-loading-icon`});let Le;if(ke&&typeof ke=="object"&&(Le=ke.showLeafIcon),ee){if(!ke)return null;if(typeof Le!="boolean"&&Le){const ne=typeof Le=="function"?Le(pe):Le,at=`${me}-switcher-line-custom-icon`;return(0,Ce.l$)(ne)?(0,Ce.Tm)(ne,{className:Oe()(ne.props.className||"",at)}):ne}return Le?I.createElement(ae.Z,{className:`${me}-switcher-line-icon`}):I.createElement("span",{className:`${me}-switcher-leaf-line`})}const Je=`${me}-switcher-icon`,Ye=typeof ye=="function"?ye(pe):ye;return(0,Ce.l$)(Ye)?(0,Ce.Tm)(Ye,{className:Oe()(Ye.props.className||"",Je)}):Ye!==void 0?Ye:ke?Te?I.createElement(Ne.Z,{className:`${me}-switcher-line-icon`}):I.createElement(Ee.Z,{className:`${me}-switcher-line-icon`}):I.createElement(de,{className:Je})}},54580:function(X,C,h){"use strict";h.d(C,{default:function(){return fn}});var v=h(59301),I=h(19127),O=h(92310),B=h.n(O),G=h(96663),F=h(52884),M=h(95727),de=h(65711),ae=h(85745),te=h(90493),Ne=h(6620),Ee=h(49581),Xe=h(20135),Oe=h(73324),Ce=h(26112);function Ie(yt,je){var L="cannot ".concat(yt.method," ").concat(yt.action," ").concat(je.status,"'"),Rt=new Error(L);return Rt.status=je.status,Rt.method=yt.method,Rt.url=yt.action,Rt}function Re(yt){var je=yt.responseText||yt.response;if(!je)return je;try{return JSON.parse(je)}catch(L){return je}}function fe(yt){var je=new XMLHttpRequest;yt.onProgress&&je.upload&&(je.upload.onprogress=function(mt){mt.total>0&&(mt.percent=mt.loaded/mt.total*100),yt.onProgress(mt)});var L=new FormData;yt.data&&Object.keys(yt.data).forEach(function(Jt){var mt=yt.data[Jt];if(Array.isArray(mt)){mt.forEach(function(xn){L.append("".concat(Jt,"[]"),xn)});return}L.append(Jt,mt)}),yt.file instanceof Blob?L.append(yt.filename,yt.file,yt.file.name):L.append(yt.filename,yt.file),je.onerror=function(mt){yt.onError(mt)},je.onload=function(){return je.status<200||je.status>=300?yt.onError(Ie(yt,je),Re(je)):yt.onSuccess(Re(je),je)},je.open(yt.method,yt.action,!0),yt.withCredentials&&"withCredentials"in je&&(je.withCredentials=!0);var Rt=yt.headers||{};return Rt["X-Requested-With"]!==null&&je.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Rt).forEach(function(Jt){Rt[Jt]!==null&&je.setRequestHeader(Jt,Rt[Jt])}),je.send(L),{abort:function(){je.abort()}}}var me=+new Date,ye=0;function pe(){return"rc-upload-".concat(me,"-").concat(++ye)}var ke=h(48736),ee=function(yt,je){if(yt&&je){var L=Array.isArray(je)?je:je.split(","),Rt=yt.name||"",Jt=yt.type||"",mt=Jt.replace(/\/.*$/,"");return L.some(function(xn){var An=xn.trim();if(/^\*(\/\*)?$/.test(xn))return!0;if(An.charAt(0)==="."){var li=Rt.toLowerCase(),Nn=An.toLowerCase(),lt=[Nn];return(Nn===".jpg"||Nn===".jpeg")&&(lt=[".jpg",".jpeg"]),lt.some(function(Mi){return li.endsWith(Mi)})}return/\/\*$/.test(An)?mt===An.replace(/\/.*$/,""):Jt===An?!0:/^\w+$/.test(An)?((0,ke.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(An,"'.Skip for check.")),!0):!1})}return!0};function Te(yt,je){var L=yt.createReader(),Rt=[];function Jt(){L.readEntries(function(mt){var xn=Array.prototype.slice.apply(mt);Rt=Rt.concat(xn);var An=!xn.length;An?je(Rt):Jt()})}Jt()}var Me=function(je,L,Rt){var Jt=function mt(xn,An){xn&&(xn.path=An||"",xn.isFile?xn.file(function(li){Rt(li)&&(xn.fullPath&&!li.webkitRelativePath&&(Object.defineProperties(li,{webkitRelativePath:{writable:!0}}),li.webkitRelativePath=xn.fullPath.replace(/^\//,""),Object.defineProperties(li,{webkitRelativePath:{writable:!1}})),L([li]))}):xn.isDirectory&&Te(xn,function(li){li.forEach(function(Nn){mt(Nn,"".concat(An).concat(xn.name,"/"))})}))};je.forEach(function(mt){Jt(mt.webkitGetAsEntry())})},Le=Me,Je=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Ye=function(yt){(0,de.Z)(L,yt);var je=(0,ae.Z)(L);function L(){var Rt;(0,F.Z)(this,L);for(var Jt=arguments.length,mt=new Array(Jt),xn=0;xn<Jt;xn++)mt[xn]=arguments[xn];return Rt=je.call.apply(je,[this].concat(mt)),Rt.state={uid:pe()},Rt.reqs={},Rt.fileInput=void 0,Rt._isMounted=void 0,Rt.onChange=function(An){var li=Rt.props,Nn=li.accept,lt=li.directory,Mi=An.target.files,Yi=(0,I.Z)(Mi).filter(function(Yt){return!lt||ee(Yt,Nn)});Rt.uploadFiles(Yi),Rt.reset()},Rt.onClick=function(An){var li=Rt.fileInput;if(li){var Nn=An.target,lt=Rt.props.onClick;if(Nn&&Nn.tagName==="BUTTON"){var Mi=li.parentNode;Mi.focus(),Nn.blur()}li.click(),lt&&lt(An)}},Rt.onKeyDown=function(An){An.key==="Enter"&&Rt.onClick(An)},Rt.onFileDrop=function(An){var li=Rt.props.multiple;if(An.preventDefault(),An.type!=="dragover")if(Rt.props.directory)Le(Array.prototype.slice.call(An.dataTransfer.items),Rt.uploadFiles,function(lt){return ee(lt,Rt.props.accept)});else{var Nn=(0,I.Z)(An.dataTransfer.files).filter(function(lt){return ee(lt,Rt.props.accept)});li===!1&&(Nn=Nn.slice(0,1)),Rt.uploadFiles(Nn)}},Rt.uploadFiles=function(An){var li=(0,I.Z)(An),Nn=li.map(function(lt){return lt.uid=pe(),Rt.processFile(lt,li)});Promise.all(Nn).then(function(lt){var Mi=Rt.props.onBatchStart;Mi==null||Mi(lt.map(function(Yi){var Yt=Yi.origin,zi=Yi.parsedFile;return{file:Yt,parsedFile:zi}})),lt.filter(function(Yi){return Yi.parsedFile!==null}).forEach(function(Yi){Rt.post(Yi)})})},Rt.processFile=function(){var An=(0,Oe.Z)((0,Ee.Z)().mark(function li(Nn,lt){var Mi,Yi,Yt,zi,q,oe,Hn,Be,Tt;return(0,Ee.Z)().wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:if(Mi=Rt.props.beforeUpload,Yi=Nn,!Mi){Ln.next=14;break}return Ln.prev=3,Ln.next=6,Mi(Nn,lt);case 6:Yi=Ln.sent,Ln.next=12;break;case 9:Ln.prev=9,Ln.t0=Ln.catch(3),Yi=!1;case 12:if(Yi!==!1){Ln.next=14;break}return Ln.abrupt("return",{origin:Nn,parsedFile:null,action:null,data:null});case 14:if(Yt=Rt.props.action,typeof Yt!="function"){Ln.next=21;break}return Ln.next=18,Yt(Nn);case 18:zi=Ln.sent,Ln.next=22;break;case 21:zi=Yt;case 22:if(q=Rt.props.data,typeof q!="function"){Ln.next=29;break}return Ln.next=26,q(Nn);case 26:oe=Ln.sent,Ln.next=30;break;case 29:oe=q;case 30:return Hn=((0,Xe.Z)(Yi)==="object"||typeof Yi=="string")&&Yi?Yi:Nn,Hn instanceof File?Be=Hn:Be=new File([Hn],Nn.name,{type:Nn.type}),Tt=Be,Tt.uid=Nn.uid,Ln.abrupt("return",{origin:Nn,data:oe,parsedFile:Tt,action:zi});case 35:case"end":return Ln.stop()}},li,null,[[3,9]])}));return function(li,Nn){return An.apply(this,arguments)}}(),Rt.saveFileInput=function(An){Rt.fileInput=An},Rt}return(0,M.Z)(L,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Jt){var mt=this,xn=Jt.data,An=Jt.origin,li=Jt.action,Nn=Jt.parsedFile;if(this._isMounted){var lt=this.props,Mi=lt.onStart,Yi=lt.customRequest,Yt=lt.name,zi=lt.headers,q=lt.withCredentials,oe=lt.method,Hn=An.uid,Be=Yi||fe,Tt={action:li,filename:Yt,data:xn,file:Nn,headers:zi,withCredentials:q,method:oe||"post",onProgress:function(Ln){var Fi=mt.props.onProgress;Fi==null||Fi(Ln,Nn)},onSuccess:function(Ln,Fi){var qt=mt.props.onSuccess;qt==null||qt(Ln,Nn,Fi),delete mt.reqs[Hn]},onError:function(Ln,Fi){var qt=mt.props.onError;qt==null||qt(Ln,Fi,Nn),delete mt.reqs[Hn]}};Mi(An),this.reqs[Hn]=Be(Tt)}}},{key:"reset",value:function(){this.setState({uid:pe()})}},{key:"abort",value:function(Jt){var mt=this.reqs;if(Jt){var xn=Jt.uid?Jt.uid:Jt;mt[xn]&&mt[xn].abort&&mt[xn].abort(),delete mt[xn]}else Object.keys(mt).forEach(function(An){mt[An]&&mt[An].abort&&mt[An].abort(),delete mt[An]})}},{key:"render",value:function(){var Jt=this.props,mt=Jt.component,xn=Jt.prefixCls,An=Jt.className,li=Jt.disabled,Nn=Jt.id,lt=Jt.style,Mi=Jt.multiple,Yi=Jt.accept,Yt=Jt.capture,zi=Jt.children,q=Jt.directory,oe=Jt.openFileDialogOnClick,Hn=Jt.onMouseEnter,Be=Jt.onMouseLeave,Tt=(0,Ne.Z)(Jt,Je),fi=B()((0,te.Z)((0,te.Z)((0,te.Z)({},xn,!0),"".concat(xn,"-disabled"),li),An,An)),Ln=q?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Fi=li?{}:{onClick:oe?this.onClick:function(){},onKeyDown:oe?this.onKeyDown:function(){},onMouseEnter:Hn,onMouseLeave:Be,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return v.createElement(mt,(0,G.Z)({},Fi,{className:fi,role:"button",style:lt}),v.createElement("input",(0,G.Z)({},(0,Ce.Z)(Tt,{aria:!0,data:!0}),{id:Nn,disabled:li,type:"file",ref:this.saveFileInput,onClick:function(xi){return xi.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Yi},Ln,{multiple:Mi,onChange:this.onChange},Yt!=null?{capture:Yt}:{})),zi)}}]),L}(v.Component),ne=Ye;function at(){}var Ge=function(yt){(0,de.Z)(L,yt);var je=(0,ae.Z)(L);function L(){var Rt;(0,F.Z)(this,L);for(var Jt=arguments.length,mt=new Array(Jt),xn=0;xn<Jt;xn++)mt[xn]=arguments[xn];return Rt=je.call.apply(je,[this].concat(mt)),Rt.uploader=void 0,Rt.saveUploader=function(An){Rt.uploader=An},Rt}return(0,M.Z)(L,[{key:"abort",value:function(Jt){this.uploader.abort(Jt)}},{key:"render",value:function(){return v.createElement(ne,(0,G.Z)({},this.props,{ref:this.saveUploader}))}}]),L}(v.Component);Ge.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:at,onError:at,onSuccess:at,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Pt=Ge,gt=Pt,kt=h(18929),Ct=h(4676),Cn=h(36355),Qe=h(1684),le=h(9763),ce=h(31724),Ht={icon:function(je,L){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:L}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:je}}]}},name:"file",theme:"twotone"},Vt=Ht,St=h(7657),sn=function(je,L){return v.createElement(St.Z,(0,G.Z)({},je,{ref:L,icon:Vt}))},Ft=v.forwardRef(sn),oi=Ft,On=h(58617),ni={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},Jn=ni,Mn=function(je,L){return v.createElement(St.Z,(0,G.Z)({},je,{ref:L,icon:Jn}))},In=v.forwardRef(Mn),re=In,z={icon:function(je,L){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:je}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:L}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:L}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:L}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:je}}]}},name:"picture",theme:"twotone"},k=z,j=function(je,L){return v.createElement(St.Z,(0,G.Z)({},je,{ref:L,icon:k}))},Q=v.forwardRef(j),T=Q,_e=h(77900),It=h(56762),$e=h(62892),Pe=h(92343),vt=h(3113);function ut(yt){return Object.assign(Object.assign({},yt),{lastModified:yt.lastModified,lastModifiedDate:yt.lastModifiedDate,name:yt.name,size:yt.size,type:yt.type,uid:yt.uid,percent:0,originFileObj:yt})}function tt(yt,je){const L=(0,I.Z)(je),Rt=L.findIndex(Jt=>{let{uid:mt}=Jt;return mt===yt.uid});return Rt===-1?L.push(yt):L[Rt]=yt,L}function Et(yt,je){const L=yt.uid!==void 0?"uid":"name";return je.filter(Rt=>Rt[L]===yt[L])[0]}function pn(yt,je){const L=yt.uid!==void 0?"uid":"name",Rt=je.filter(Jt=>Jt[L]!==yt[L]);return Rt.length===je.length?null:Rt}const nn=function(){const je=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Rt=je[je.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Rt)||[""])[0]},Kt=yt=>yt.indexOf("image/")===0,hn=yt=>{if(yt.type&&!yt.thumbUrl)return Kt(yt.type);const je=yt.thumbUrl||yt.url||"",L=nn(je);return/^data:image\//.test(je)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(L)?!0:!(/^data:/.test(je)||L)},an=200;function et(yt){return new Promise(je=>{if(!yt.type||!Kt(yt.type)){je("");return}const L=document.createElement("canvas");L.width=an,L.height=an,L.style.cssText=`position: fixed; left: 0; top: 0; width: ${an}px; height: ${an}px; z-index: 9999; display: none;`,document.body.appendChild(L);const Rt=L.getContext("2d"),Jt=new Image;if(Jt.onload=()=>{const{width:mt,height:xn}=Jt;let An=an,li=an,Nn=0,lt=0;mt>xn?(li=xn*(an/mt),lt=-(li-An)/2):(An=mt*(an/xn),Nn=-(An-li)/2),Rt.drawImage(Jt,Nn,lt,An,li);const Mi=L.toDataURL();document.body.removeChild(L),window.URL.revokeObjectURL(Jt.src),je(Mi)},Jt.crossOrigin="anonymous",yt.type.startsWith("image/svg+xml")){const mt=new FileReader;mt.onload=()=>{mt.result&&(Jt.src=mt.result)},mt.readAsDataURL(yt)}else if(yt.type.startsWith("image/gif")){const mt=new FileReader;mt.onload=()=>{mt.result&&je(mt.result)},mt.readAsDataURL(yt)}else Jt.src=window.URL.createObjectURL(yt)})}var zt=h(26227),dn=h(41464),rn=h(15277),ze=h(93948),Un=h(6848),Bt=v.forwardRef((yt,je)=>{let{prefixCls:L,className:Rt,style:Jt,locale:mt,listType:xn,file:An,items:li,progress:Nn,iconRender:lt,actionIconRender:Mi,itemRender:Yi,isImgUrl:Yt,showPreviewIcon:zi,showRemoveIcon:q,showDownloadIcon:oe,previewIcon:Hn,removeIcon:Be,downloadIcon:Tt,onPreview:fi,onDownload:Ln,onClose:Fi}=yt;var qt,xi;const{status:Xt}=An,[Li,Yr]=v.useState(Xt);v.useEffect(()=>{Xt!=="removed"&&Yr(Xt)},[Xt]);const[Mt,Qr]=v.useState(!1);v.useEffect(()=>{const Wr=setTimeout(()=>{Qr(!0)},300);return()=>{clearTimeout(Wr)}},[]);const tn=lt(An);let Oi=v.createElement("div",{className:`${L}-icon`},tn);if(xn==="picture"||xn==="picture-card"||xn==="picture-circle")if(Li==="uploading"||!An.thumbUrl&&!An.url){const Wr=B()(`${L}-list-item-thumbnail`,{[`${L}-list-item-file`]:Li!=="uploading"});Oi=v.createElement("div",{className:Wr},tn)}else{const Wr=Yt!=null&&Yt(An)?v.createElement("img",{src:An.thumbUrl||An.url,alt:An.name,className:`${L}-list-item-image`,crossOrigin:An.crossOrigin}):tn,eo=B()(`${L}-list-item-thumbnail`,{[`${L}-list-item-file`]:Yt&&!Yt(An)});Oi=v.createElement("a",{className:eo,onClick:Lo=>fi(An,Lo),href:An.url||An.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Wr)}const Ei=B()(`${L}-list-item`,`${L}-list-item-${Li}`),or=typeof An.linkProps=="string"?JSON.parse(An.linkProps):An.linkProps,tr=q?Mi((typeof Be=="function"?Be(An):Be)||v.createElement(zt.Z,null),()=>Fi(An),L,mt.removeFile):null,Zn=oe&&Li==="done"?Mi((typeof Tt=="function"?Tt(An):Tt)||v.createElement(dn.Z,null),()=>Ln(An),L,mt.downloadFile):null,he=xn!=="picture-card"&&xn!=="picture-circle"&&v.createElement("span",{key:"download-delete",className:B()(`${L}-list-item-actions`,{picture:xn==="picture"})},Zn,tr),gr=B()(`${L}-list-item-name`),br=An.url?[v.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:gr,title:An.name},or,{href:An.url,onClick:Wr=>fi(An,Wr)}),An.name),he]:[v.createElement("span",{key:"view",className:gr,onClick:Wr=>fi(An,Wr),title:An.name},An.name),he],cr={pointerEvents:"none",opacity:.5},Br=zi?v.createElement("a",{href:An.url||An.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:An.url||An.thumbUrl?void 0:cr,onClick:Wr=>fi(An,Wr),title:mt.previewFile},typeof Hn=="function"?Hn(An):Hn||v.createElement(rn.Z,null)):null,Zi=(xn==="picture-card"||xn==="picture-circle")&&Li!=="uploading"&&v.createElement("span",{className:`${L}-list-item-actions`},Br,Li==="done"&&Zn,tr),{getPrefixCls:Ri}=v.useContext(Cn.E_),Ai=Ri(),hr=v.createElement("div",{className:Ei},Oi,br,Zi,Mt&&v.createElement(_e.default,{motionName:`${Ai}-fade`,visible:Li==="uploading",motionDeadline:2e3},Wr=>{let{className:eo}=Wr;const Lo="percent"in An?v.createElement(ze.Z,Object.assign({},Nn,{type:"line",percent:An.percent,"aria-label":An["aria-label"],"aria-labelledby":An["aria-labelledby"]})):null;return v.createElement("div",{className:B()(`${L}-list-item-progress`,eo)},Lo)})),Ki=An.response&&typeof An.response=="string"?An.response:((qt=An.error)===null||qt===void 0?void 0:qt.statusText)||((xi=An.error)===null||xi===void 0?void 0:xi.message)||mt.uploadError,Lr=Li==="error"?v.createElement(Un.Z,{title:Ki,getPopupContainer:Wr=>Wr.parentNode},hr):hr;return v.createElement("div",{className:B()(`${L}-list-item-container`,Rt),style:Jt,ref:je},Yi?Yi(Lr,An,li,{download:Ln.bind(null,An),preview:fi.bind(null,An),remove:Fi.bind(null,An)}):Lr)});const Si=(yt,je)=>{const{listType:L="text",previewFile:Rt=et,onPreview:Jt,onDownload:mt,onRemove:xn,locale:An,iconRender:li,isImageUrl:Nn=hn,prefixCls:lt,items:Mi=[],showPreviewIcon:Yi=!0,showRemoveIcon:Yt=!0,showDownloadIcon:zi=!1,removeIcon:q,previewIcon:oe,downloadIcon:Hn,progress:Be={size:[-1,2],showInfo:!1},appendAction:Tt,appendActionVisible:fi=!0,itemRender:Ln,disabled:Fi}=yt,qt=(0,It.Z)(),[xi,Xt]=v.useState(!1);v.useEffect(()=>{L!=="picture"&&L!=="picture-card"&&L!=="picture-circle"||(Mi||[]).forEach(cr=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(cr.originFileObj instanceof File||cr.originFileObj instanceof Blob)||cr.thumbUrl!==void 0||(cr.thumbUrl="",Rt&&Rt(cr.originFileObj).then(Br=>{cr.thumbUrl=Br||"",qt()}))})},[L,Mi,Rt]),v.useEffect(()=>{Xt(!0)},[]);const Li=(cr,Br)=>{if(Jt)return Br==null||Br.preventDefault(),Jt(cr)},Yr=cr=>{typeof mt=="function"?mt(cr):cr.url&&window.open(cr.url)},Mt=cr=>{xn==null||xn(cr)},Qr=cr=>{if(li)return li(cr,L);const Br=cr.status==="uploading",Zi=Nn&&Nn(cr)?v.createElement(T,null):v.createElement(oi,null);let Ri=Br?v.createElement(On.Z,null):v.createElement(re,null);return L==="picture"?Ri=Br?v.createElement(On.Z,null):Zi:(L==="picture-card"||L==="picture-circle")&&(Ri=Br?An.uploading:Zi),Ri},tn=(cr,Br,Zi,Ri)=>{const Ai={type:"text",size:"small",title:Ri,onClick:hr=>{Br(),(0,Pe.l$)(cr)&&cr.props.onClick&&cr.props.onClick(hr)},className:`${Zi}-list-item-action`,disabled:Fi};if((0,Pe.l$)(cr)){const hr=(0,Pe.Tm)(cr,Object.assign(Object.assign({},cr.props),{onClick:()=>{}}));return v.createElement(vt.ZP,Object.assign({},Ai,{icon:hr}))}return v.createElement(vt.ZP,Object.assign({},Ai),v.createElement("span",null,cr))};v.useImperativeHandle(je,()=>({handlePreview:Li,handleDownload:Yr}));const{getPrefixCls:Oi}=v.useContext(Cn.E_),Ei=Oi("upload",lt),or=Oi(),tr=B()(`${Ei}-list`,`${Ei}-list-${L}`),Zn=(0,I.Z)(Mi.map(cr=>({key:cr.uid,file:cr})));let gr={motionDeadline:2e3,motionName:`${Ei}-${L==="picture-card"||L==="picture-circle"?"animate-inline":"animate"}`,keys:Zn,motionAppear:xi};const br=v.useMemo(()=>{const cr=Object.assign({},(0,$e.Z)(or));return delete cr.onAppearEnd,delete cr.onEnterEnd,delete cr.onLeaveEnd,cr},[or]);return L!=="picture-card"&&L!=="picture-circle"&&(gr=Object.assign(Object.assign({},br),gr)),v.createElement("div",{className:tr},v.createElement(_e.CSSMotionList,Object.assign({},gr,{component:!1}),cr=>{let{key:Br,file:Zi,className:Ri,style:Ai}=cr;return v.createElement(Bt,{key:Br,locale:An,prefixCls:Ei,className:Ri,style:Ai,file:Zi,items:Mi,progress:Be,listType:L,isImgUrl:Nn,showPreviewIcon:Yi,showRemoveIcon:Yt,showDownloadIcon:zi,removeIcon:q,previewIcon:oe,downloadIcon:Hn,iconRender:Qr,actionIconRender:tn,itemRender:Ln,onPreview:Li,onDownload:Yr,onClose:Mt})}),Tt&&v.createElement(_e.default,Object.assign({},gr,{visible:fi,forceRender:!0}),cr=>{let{className:Br,style:Zi}=cr;return(0,Pe.Tm)(Tt,Ri=>({className:B()(Ri.className,Br),style:Object.assign(Object.assign(Object.assign({},Zi),{pointerEvents:Br?"none":void 0}),Ri.style)}))}))};var Ii=v.forwardRef(Si),cn=h(17313),fr=h(8378),Xi=h(83116),ei=h(37613),ur=yt=>{const{componentCls:je,iconCls:L}=yt;return{[`${je}-wrapper`]:{[`${je}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:yt.colorFillAlter,border:`${yt.lineWidth}px dashed ${yt.colorBorder}`,borderRadius:yt.borderRadiusLG,cursor:"pointer",transition:`border-color ${yt.motionDurationSlow}`,[je]:{padding:`${yt.padding}px 0`},[`${je}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${je}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${je}-disabled):hover`]:{borderColor:yt.colorPrimaryHover},[`p${je}-drag-icon`]:{marginBottom:yt.margin,[L]:{color:yt.colorPrimary,fontSize:yt.uploadThumbnailSize}},[`p${je}-text`]:{margin:`0 0 ${yt.marginXXS}px`,color:yt.colorTextHeading,fontSize:yt.fontSizeLG},[`p${je}-hint`]:{color:yt.colorTextDescription,fontSize:yt.fontSize},[`&${je}-disabled`]:{cursor:"not-allowed",[`p${je}-drag-icon ${L},
p${je}-text,
p${je}-hint
`]:{color:yt.colorTextDisabled}}}}}},mr=yt=>{const{componentCls:je,antCls:L,iconCls:Rt,fontSize:Jt,lineHeight:mt}=yt,xn=`${je}-list-item`,An=`${xn}-actions`,li=`${xn}-action`,Nn=Math.round(Jt*mt);return{[`${je}-wrapper`]:{[`${je}-list`]:Object.assign(Object.assign({},(0,cn.dF)()),{lineHeight:yt.lineHeight,[xn]:{position:"relative",height:yt.lineHeight*Jt,marginTop:yt.marginXS,fontSize:Jt,display:"flex",alignItems:"center",transition:`background-color ${yt.motionDurationSlow}`,"&:hover":{backgroundColor:yt.controlItemBgHover},[`${xn}-name`]:Object.assign(Object.assign({},cn.vS),{padding:`0 ${yt.paddingXS}px`,lineHeight:mt,flex:"auto",transition:`all ${yt.motionDurationSlow}`}),[An]:{[li]:{opacity:0},[`${li}${L}-btn-sm`]:{height:Nn,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
${li}:focus-visible,
&.picture ${li}
`]:{opacity:1},[Rt]:{color:yt.actionsColor,transition:`all ${yt.motionDurationSlow}`},[`&:hover ${Rt}`]:{color:yt.colorText}},[`${je}-icon ${Rt}`]:{color:yt.colorTextDescription,fontSize:Jt},[`${xn}-progress`]:{position:"absolute",bottom:-yt.uploadProgressOffset,width:"100%",paddingInlineStart:Jt+yt.paddingXS,fontSize:Jt,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${xn}:hover ${li}`]:{opacity:1,color:yt.colorText},[`${xn}-error`]:{color:yt.colorError,[`${xn}-name, ${je}-icon ${Rt}`]:{color:yt.colorError},[An]:{[`${Rt}, ${Rt}:hover`]:{color:yt.colorError},[li]:{opacity:1}}},[`${je}-list-item-container`]:{transition:`opacity ${yt.motionDurationSlow}, height ${yt.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Er=h(93083),wr=h(1950);const qr=new Er.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),xo=new Er.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var no=yt=>{const{componentCls:je}=yt,L=`${je}-animate-inline`;return[{[`${je}-wrapper`]:{[`${L}-appear, ${L}-enter, ${L}-leave`]:{animationDuration:yt.motionDurationSlow,animationTimingFunction:yt.motionEaseInOutCirc,animationFillMode:"forwards"},[`${L}-appear, ${L}-enter`]:{animationName:qr},[`${L}-leave`]:{animationName:xo}}},{[`${je}-wrapper`]:(0,wr.J$)(yt)},qr,xo]},rr=h(93398),Bi=h(64993);const yi=yt=>{const{componentCls:je,iconCls:L,uploadThumbnailSize:Rt,uploadProgressOffset:Jt}=yt,mt=`${je}-list`,xn=`${mt}-item`;return{[`${je}-wrapper`]:{[`
${mt}${mt}-picture,
${mt}${mt}-picture-card,
${mt}${mt}-picture-circle
`]:{[xn]:{position:"relative",height:Rt+yt.lineWidth*2+yt.paddingXS*2,padding:yt.paddingXS,border:`${yt.lineWidth}px ${yt.lineType} ${yt.colorBorder}`,borderRadius:yt.borderRadiusLG,"&:hover":{background:"transparent"},[`${xn}-thumbnail`]:Object.assign(Object.assign({},cn.vS),{width:Rt,height:Rt,lineHeight:`${Rt+yt.paddingSM}px`,textAlign:"center",flex:"none",[L]:{fontSize:yt.fontSizeHeading2,color:yt.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${xn}-progress`]:{bottom:Jt,width:`calc(100% - ${yt.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Rt+yt.paddingXS}},[`${xn}-error`]:{borderColor:yt.colorError,[`${xn}-thumbnail ${L}`]:{[`svg path[fill='${rr.blue[0]}']`]:{fill:yt.colorErrorBg},[`svg path[fill='${rr.blue.primary}']`]:{fill:yt.colorError}}},[`${xn}-uploading`]:{borderStyle:"dashed",[`${xn}-name`]:{marginBottom:Jt}}},[`${mt}${mt}-picture-circle ${xn}`]:{[`&, &::before, ${xn}-thumbnail`]:{borderRadius:"50%"}}}}},ht=yt=>{const{componentCls:je,iconCls:L,fontSizeLG:Rt,colorTextLightSolid:Jt}=yt,mt=`${je}-list`,xn=`${mt}-item`,An=yt.uploadPicCardSize;return{[`
${je}-wrapper${je}-picture-card-wrapper,
${je}-wrapper${je}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,cn.dF)()),{display:"inline-block",width:"100%",[`${je}${je}-select`]:{width:An,height:An,marginInlineEnd:yt.marginXS,marginBottom:yt.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:yt.colorFillAlter,border:`${yt.lineWidth}px dashed ${yt.colorBorder}`,borderRadius:yt.borderRadiusLG,cursor:"pointer",transition:`border-color ${yt.motionDurationSlow}`,[`> ${je}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${je}-disabled):hover`]:{borderColor:yt.colorPrimary}},[`${mt}${mt}-picture-card, ${mt}${mt}-picture-circle`]:{[`${mt}-item-container`]:{display:"inline-block",width:An,height:An,marginBlock:`0 ${yt.marginXS}px`,marginInline:`0 ${yt.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[xn]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${yt.paddingXS*2}px)`,height:`calc(100% - ${yt.paddingXS*2}px)`,backgroundColor:yt.colorBgMask,opacity:0,transition:`all ${yt.motionDurationSlow}`,content:'" "'}},[`${xn}:hover`]:{[`&::before, ${xn}-actions`]:{opacity:1}},[`${xn}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${yt.motionDurationSlow}`,[`${L}-eye, ${L}-download, ${L}-delete`]:{zIndex:10,width:Rt,margin:`0 ${yt.marginXXS}px`,fontSize:Rt,cursor:"pointer",transition:`all ${yt.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${xn}-actions, ${xn}-actions:hover`]:{[`${L}-eye, ${L}-download, ${L}-delete`]:{color:new Bi.C(Jt).setAlpha(.65).toRgbString(),"&:hover":{color:Jt}}},[`${xn}-thumbnail, ${xn}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${xn}-name`]:{display:"none",textAlign:"center"},[`${xn}-file + ${xn}-name`]:{position:"absolute",bottom:yt.margin,display:"block",width:`calc(100% - ${yt.paddingXS*2}px)`},[`${xn}-uploading`]:{[`&${xn}`]:{backgroundColor:yt.colorFillAlter},[`&::before, ${L}-eye, ${L}-download, ${L}-delete`]:{display:"none"}},[`${xn}-progress`]:{bottom:yt.marginXL,width:`calc(100% - ${yt.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${je}-wrapper${je}-picture-circle-wrapper`]:{[`${je}${je}-select`]:{borderRadius:"50%"}}}};var Vn=yt=>{const{componentCls:je}=yt;return{[`${je}-rtl`]:{direction:"rtl"}}};const pt=yt=>{const{componentCls:je,colorTextDisabled:L}=yt;return{[`${je}-wrapper`]:Object.assign(Object.assign({},(0,cn.Wf)(yt)),{[je]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${je}-select`]:{display:"inline-block"},[`${je}-disabled`]:{color:L,cursor:"not-allowed"}})}};var Ke=(0,Xi.Z)("Upload",yt=>{const{fontSizeHeading3:je,fontSize:L,lineHeight:Rt,lineWidth:Jt,controlHeightLG:mt}=yt,xn=Math.round(L*Rt),An=(0,ei.TS)(yt,{uploadThumbnailSize:je*2,uploadProgressOffset:xn/2+Jt,uploadPicCardSize:mt*2.55});return[pt(An),ur(An),yi(An),ht(An),mr(An),no(An),Vn(An),(0,fr.Z)(An)]},yt=>({actionsColor:yt.colorTextDescription})),vn=function(yt,je,L,Rt){function Jt(mt){return mt instanceof L?mt:new L(function(xn){xn(mt)})}return new(L||(L=Promise))(function(mt,xn){function An(lt){try{Nn(Rt.next(lt))}catch(Mi){xn(Mi)}}function li(lt){try{Nn(Rt.throw(lt))}catch(Mi){xn(Mi)}}function Nn(lt){lt.done?mt(lt.value):Jt(lt.value).then(An,li)}Nn((Rt=Rt.apply(yt,je||[])).next())})};const Fn=`__LIST_IGNORE_${Date.now()}__`,on=(yt,je)=>{const{fileList:L,defaultFileList:Rt,onRemove:Jt,showUploadList:mt=!0,listType:xn="text",onPreview:An,onDownload:li,onChange:Nn,onDrop:lt,previewFile:Mi,disabled:Yi,locale:Yt,iconRender:zi,isImageUrl:q,progress:oe,prefixCls:Hn,className:Be,type:Tt="select",children:fi,style:Ln,itemRender:Fi,maxCount:qt,data:xi={},multiple:Xt=!1,action:Li="",accept:Yr="",supportServerRender:Mt=!0,rootClassName:Qr}=yt,tn=v.useContext(Qe.Z),Oi=Yi!=null?Yi:tn,[Ei,or]=(0,kt.Z)(Rt||[],{value:L,postState:uo=>uo!=null?uo:[]}),[tr,Zn]=v.useState("drop"),he=v.useRef(null);v.useMemo(()=>{const uo=Date.now();(L||[]).forEach((No,go)=>{!No.uid&&!Object.isFrozen(No)&&(No.uid=`__AUTO__${uo}_${go}__`)})},[L]);const gr=(uo,No,go)=>{let Ot=(0,I.Z)(No),Pr=!1;qt===1?Ot=Ot.slice(-1):qt&&(Pr=Ot.length>qt,Ot=Ot.slice(0,qt)),(0,Ct.flushSync)(()=>{or(Ot)});const co={file:uo,fileList:Ot};go&&(co.event=go),(!Pr||Ot.some(xa=>xa.uid===uo.uid))&&(0,Ct.flushSync)(()=>{Nn==null||Nn(co)})},br=(uo,No)=>vn(void 0,void 0,void 0,function*(){const{beforeUpload:go,transformFile:Ot}=yt;let Pr=uo;if(go){const co=yield go(uo,No);if(co===!1)return!1;if(delete uo[Fn],co===Fn)return Object.defineProperty(uo,Fn,{value:!0,configurable:!0}),!1;typeof co=="object"&&co&&(Pr=co)}return Ot&&(Pr=yield Ot(Pr)),Pr}),cr=uo=>{const No=uo.filter(Pr=>!Pr.file[Fn]);if(!No.length)return;const go=No.map(Pr=>ut(Pr.file));let Ot=(0,I.Z)(Ei);go.forEach(Pr=>{Ot=tt(Pr,Ot)}),go.forEach((Pr,co)=>{let xa=Pr;if(No[co].parsedFile)Pr.status="uploading";else{const{originFileObj:xr}=Pr;let wn;try{wn=new File([xr],xr.name,{type:xr.type})}catch(ar){wn=new Blob([xr],{type:xr.type}),wn.name=xr.name,wn.lastModifiedDate=new Date,wn.lastModified=new Date().getTime()}wn.uid=Pr.uid,xa=wn}gr(xa,Ot)})},Br=(uo,No,go)=>{try{typeof uo=="string"&&(uo=JSON.parse(uo))}catch(co){}if(!Et(No,Ei))return;const Ot=ut(No);Ot.status="done",Ot.percent=100,Ot.response=uo,Ot.xhr=go;const Pr=tt(Ot,Ei);gr(Ot,Pr)},Zi=(uo,No)=>{if(!Et(No,Ei))return;const go=ut(No);go.status="uploading",go.percent=uo.percent;const Ot=tt(go,Ei);gr(go,Ot,uo)},Ri=(uo,No,go)=>{if(!Et(go,Ei))return;const Ot=ut(go);Ot.error=uo,Ot.response=No,Ot.status="error";const Pr=tt(Ot,Ei);gr(Ot,Pr)},Ai=uo=>{let No;Promise.resolve(typeof Jt=="function"?Jt(uo):Jt).then(go=>{var Ot;if(go===!1)return;const Pr=pn(uo,Ei);Pr&&(No=Object.assign(Object.assign({},uo),{status:"removed"}),Ei==null||Ei.forEach(co=>{const xa=No.uid!==void 0?"uid":"name";co[xa]===No[xa]&&!Object.isFrozen(co)&&(co.status="removed")}),(Ot=he.current)===null||Ot===void 0||Ot.abort(No),gr(No,Pr))})},hr=uo=>{Zn(uo.type),uo.type==="drop"&&(lt==null||lt(uo))};v.useImperativeHandle(je,()=>({onBatchStart:cr,onSuccess:Br,onProgress:Zi,onError:Ri,fileList:Ei,upload:he.current}));const{getPrefixCls:Ki,direction:Lr,upload:Wr}=v.useContext(Cn.E_),eo=Ki("upload",Hn),Lo=Object.assign(Object.assign({onBatchStart:cr,onError:Ri,onProgress:Zi,onSuccess:Br},yt),{data:xi,multiple:Xt,action:Li,accept:Yr,supportServerRender:Mt,prefixCls:eo,disabled:Oi,beforeUpload:br,onChange:void 0});delete Lo.className,delete Lo.style,(!fi||Oi)&&delete Lo.id;const[pi,pa]=Ke(eo),[Uo]=(0,le.Z)("Upload",ce.Z.Upload),{showRemoveIcon:oa,showPreviewIcon:ma,showDownloadIcon:$a,removeIcon:is,previewIcon:ka,downloadIcon:ss}=typeof mt=="boolean"?{}:mt,Ua=(uo,No)=>mt?v.createElement(Ii,{prefixCls:eo,listType:xn,items:Ei,previewFile:Mi,onPreview:An,onDownload:li,onRemove:Ai,showRemoveIcon:!Oi&&oa,showPreviewIcon:ma,showDownloadIcon:$a,removeIcon:is,previewIcon:ka,downloadIcon:ss,iconRender:zi,locale:Object.assign(Object.assign({},Uo),Yt),isImageUrl:q,progress:oe,appendAction:uo,appendActionVisible:No,itemRender:Fi,disabled:Oi}):uo,Go=B()(`${eo}-wrapper`,Be,Qr,pa,Wr==null?void 0:Wr.className,{[`${eo}-rtl`]:Lr==="rtl",[`${eo}-picture-card-wrapper`]:xn==="picture-card",[`${eo}-picture-circle-wrapper`]:xn==="picture-circle"}),Zt=Object.assign(Object.assign({},Wr==null?void 0:Wr.style),Ln);if(Tt==="drag"){const uo=B()(pa,eo,`${eo}-drag`,{[`${eo}-drag-uploading`]:Ei.some(No=>No.status==="uploading"),[`${eo}-drag-hover`]:tr==="dragover",[`${eo}-disabled`]:Oi,[`${eo}-rtl`]:Lr==="rtl"});return pi(v.createElement("span",{className:Go},v.createElement("div",{className:uo,style:Zt,onDrop:hr,onDragOver:hr,onDragLeave:hr},v.createElement(gt,Object.assign({},Lo,{ref:he,className:`${eo}-btn`}),v.createElement("div",{className:`${eo}-drag-container`},fi))),Ua()))}const Pa=B()(eo,`${eo}-select`,{[`${eo}-disabled`]:Oi}),nl=(uo=>v.createElement("div",{className:Pa,style:uo},v.createElement(gt,Object.assign({},Lo,{ref:he}))))(fi?void 0:{display:"none"});return pi(xn==="picture-card"||xn==="picture-circle"?v.createElement("span",{className:Go},Ua(nl,!!fi)):v.createElement("span",{className:Go},nl,Ua()))};var Ve=v.forwardRef(on),Ut=function(yt,je){var L={};for(var Rt in yt)Object.prototype.hasOwnProperty.call(yt,Rt)&&je.indexOf(Rt)<0&&(L[Rt]=yt[Rt]);if(yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Jt=0,Rt=Object.getOwnPropertySymbols(yt);Jt<Rt.length;Jt++)je.indexOf(Rt[Jt])<0&&Object.prototype.propertyIsEnumerable.call(yt,Rt[Jt])&&(L[Rt[Jt]]=yt[Rt[Jt]]);return L},Wn=v.forwardRef((yt,je)=>{var{style:L,height:Rt}=yt,Jt=Ut(yt,["style","height"]);return v.createElement(Ve,Object.assign({ref:je},Jt,{type:"drag",style:Object.assign(Object.assign({},L),{height:Rt})}))});const ot=Ve;ot.Dragger=Wn,ot.LIST_IGNORE=Fn;var fn=ot},99498:function(X,C,h){(function(v){v(h(89780))})(function(v){v.defineOption("placeholder","",function(de,ae,te){var Ne=te&&te!=v.Init;if(ae&&!Ne)de.on("blur",G),de.on("change",F),de.on("swapDoc",F),v.on(de.getInputField(),"compositionupdate",de.state.placeholderCompose=function(){B(de)}),F(de);else if(!ae&&Ne){de.off("blur",G),de.off("change",F),de.off("swapDoc",F),v.off(de.getInputField(),"compositionupdate",de.state.placeholderCompose),I(de);var Ee=de.getWrapperElement();Ee.className=Ee.className.replace(" CodeMirror-empty","")}ae&&!de.hasFocus()&&G(de)});function I(de){de.state.placeholder&&(de.state.placeholder.parentNode.removeChild(de.state.placeholder),de.state.placeholder=null)}function O(de){I(de);var ae=de.state.placeholder=document.createElement("pre");ae.style.cssText="height: 0; overflow: visible",ae.style.direction=de.getOption("direction"),ae.className="CodeMirror-placeholder CodeMirror-line-like";var te=de.getOption("placeholder");typeof te=="string"&&(te=document.createTextNode(te)),ae.appendChild(te),de.display.lineSpace.insertBefore(ae,de.display.lineSpace.firstChild)}function B(de){setTimeout(function(){var ae=!1,te=de.getInputField();te.nodeName=="TEXTAREA"?ae=!te.value:de.lineCount()==1&&(ae=!/[^\u200b]/.test(te.querySelector(".CodeMirror-line").textContent)),ae?O(de):I(de)},20)}function G(de){M(de)&&O(de)}function F(de){var ae=de.getWrapperElement(),te=M(de);ae.className=ae.className.replace(" CodeMirror-empty","")+(te?" CodeMirror-empty":""),te?O(de):I(de)}function M(de){return de.lineCount()===1&&de.getLine(0)===""}})},25717:function(X,C,h){(function(v){v(h(89780))})(function(v){var I={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},O=v.Pos;v.defineOption("autoCloseBrackets",!1,function(Ce,Ie,Re){Re&&Re!=v.Init&&(Ce.removeKeyMap(G),Ce.state.closeBrackets=null),Ie&&(F(B(Ie,"pairs")),Ce.state.closeBrackets=Ie,Ce.addKeyMap(G))});function B(Ce,Ie){return Ie=="pairs"&&typeof Ce=="string"?Ce:typeof Ce=="object"&&Ce[Ie]!=null?Ce[Ie]:I[Ie]}var G={Backspace:ae,Enter:te};function F(Ce){for(var Ie=0;Ie<Ce.length;Ie++){var Re=Ce.charAt(Ie),fe="'"+Re+"'";G[fe]||(G[fe]=M(Re))}}F(I.pairs+"`");function M(Ce){return function(Ie){return Ee(Ie,Ce)}}function de(Ce){var Ie=Ce.state.closeBrackets;if(!Ie||Ie.override)return Ie;var Re=Ce.getModeAt(Ce.getCursor());return Re.closeBrackets||Ie}function ae(Ce){var Ie=de(Ce);if(!Ie||Ce.getOption("disableInput"))return v.Pass;for(var Re=B(Ie,"pairs"),fe=Ce.listSelections(),me=0;me<fe.length;me++){if(!fe[me].empty())return v.Pass;var ye=Xe(Ce,fe[me].head);if(!ye||Re.indexOf(ye)%2!=0)return v.Pass}for(var me=fe.length-1;me>=0;me--){var pe=fe[me].head;Ce.replaceRange("",O(pe.line,pe.ch-1),O(pe.line,pe.ch+1),"+delete")}}function te(Ce){var Ie=de(Ce),Re=Ie&&B(Ie,"explode");if(!Re||Ce.getOption("disableInput"))return v.Pass;for(var fe=Ce.listSelections(),me=0;me<fe.length;me++){if(!fe[me].empty())return v.Pass;var ye=Xe(Ce,fe[me].head);if(!ye||Re.indexOf(ye)%2!=0)return v.Pass}Ce.operation(function(){var pe=Ce.lineSeparator()||`
`;Ce.replaceSelection(pe+pe,null),Ce.execCommand("goCharLeft"),fe=Ce.listSelections();for(var ke=0;ke<fe.length;ke++){var ee=fe[ke].head.line;Ce.indentLine(ee,null,!0),Ce.indentLine(ee+1,null,!0)}})}function Ne(Ce){var Ie=v.cmpPos(Ce.anchor,Ce.head)>0;return{anchor:new O(Ce.anchor.line,Ce.anchor.ch+(Ie?-1:1)),head:new O(Ce.head.line,Ce.head.ch+(Ie?1:-1))}}function Ee(Ce,Ie){var Re=de(Ce);if(!Re||Ce.getOption("disableInput"))return v.Pass;var fe=B(Re,"pairs"),me=fe.indexOf(Ie);if(me==-1)return v.Pass;for(var ye=B(Re,"closeBefore"),pe=B(Re,"triples"),ke=fe.charAt(me+1)==Ie,ee=Ce.listSelections(),Te=me%2==0,Me,Le=0;Le<ee.length;Le++){var Je=ee[Le],Ye=Je.head,ne,at=Ce.getRange(Ye,O(Ye.line,Ye.ch+1));if(Te&&!Je.empty())ne="surround";else if((ke||!Te)&&at==Ie)ke&&Oe(Ce,Ye)?ne="both":pe.indexOf(Ie)>=0&&Ce.getRange(Ye,O(Ye.line,Ye.ch+3))==Ie+Ie+Ie?ne="skipThree":ne="skip";else if(ke&&Ye.ch>1&&pe.indexOf(Ie)>=0&&Ce.getRange(O(Ye.line,Ye.ch-2),Ye)==Ie+Ie){if(Ye.ch>2&&/\bstring/.test(Ce.getTokenTypeAt(O(Ye.line,Ye.ch-2))))return v.Pass;ne="addFour"}else if(ke){var Ge=Ye.ch==0?" ":Ce.getRange(O(Ye.line,Ye.ch-1),Ye);if(!v.isWordChar(at)&&Ge!=Ie&&!v.isWordChar(Ge))ne="both";else return v.Pass}else if(Te&&(at.length===0||/\s/.test(at)||ye.indexOf(at)>-1))ne="both";else return v.Pass;if(!Me)Me=ne;else if(Me!=ne)return v.Pass}var Pt=me%2?fe.charAt(me-1):Ie,gt=me%2?Ie:fe.charAt(me+1);Ce.operation(function(){if(Me=="skip")Ce.execCommand("goCharRight");else if(Me=="skipThree")for(var kt=0;kt<3;kt++)Ce.execCommand("goCharRight");else if(Me=="surround"){for(var Ct=Ce.getSelections(),kt=0;kt<Ct.length;kt++)Ct[kt]=Pt+Ct[kt]+gt;Ce.replaceSelections(Ct,"around"),Ct=Ce.listSelections().slice();for(var kt=0;kt<Ct.length;kt++)Ct[kt]=Ne(Ct[kt]);Ce.setSelections(Ct)}else Me=="both"?(Ce.replaceSelection(Pt+gt,null),Ce.triggerElectric(Pt+gt),Ce.execCommand("goCharLeft")):Me=="addFour"&&(Ce.replaceSelection(Pt+Pt+Pt+Pt,"before"),Ce.execCommand("goCharRight"))})}function Xe(Ce,Ie){var Re=Ce.getRange(O(Ie.line,Ie.ch-1),O(Ie.line,Ie.ch+1));return Re.length==2?Re:null}function Oe(Ce,Ie){var Re=Ce.getTokenAt(O(Ie.line,Ie.ch+1));return/\bstring/.test(Re.type)&&Re.start==Ie.ch&&(Ie.ch==0||!/\bstring/.test(Ce.getTokenTypeAt(Ie)))}})},6313:function(X,C,h){(function(v){v(h(89780),h(32855))})(function(v){v.defineOption("autoCloseTags",!1,function(ae,te,Ne){if(Ne!=v.Init&&Ne&&ae.removeKeyMap("autoCloseTags"),!!te){var Ee={name:"autoCloseTags"};(typeof te!="object"||te.whenClosing!==!1)&&(Ee["'/'"]=function(Xe){return F(Xe)}),(typeof te!="object"||te.whenOpening!==!1)&&(Ee["'>'"]=function(Xe){return B(Xe)}),ae.addKeyMap(Ee)}});var I=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],O=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function B(ae){if(ae.getOption("disableInput"))return v.Pass;for(var te=ae.listSelections(),Ne=[],Ee=ae.getOption("autoCloseTags"),Xe=0;Xe<te.length;Xe++){if(!te[Xe].empty())return v.Pass;var Oe=te[Xe].head,Ce=ae.getTokenAt(Oe),Ie=v.innerMode(ae.getMode(),Ce.state),Re=Ie.state,fe=Ie.mode.xmlCurrentTag&&Ie.mode.xmlCurrentTag(Re),me=fe&&fe.name;if(!me)return v.Pass;var ye=Ie.mode.configuration=="html",pe=typeof Ee=="object"&&Ee.dontCloseTags||ye&&I,ke=typeof Ee=="object"&&Ee.indentTags||ye&&O;Ce.end>Oe.ch&&(me=me.slice(0,me.length-Ce.end+Oe.ch));var ee=me.toLowerCase();if(!me||Ce.type=="string"&&(Ce.end!=Oe.ch||!/[\"\']/.test(Ce.string.charAt(Ce.string.length-1))||Ce.string.length==1)||Ce.type=="tag"&&fe.close||Ce.string.indexOf("/")==Oe.ch-Ce.start-1||pe&&M(pe,ee)>-1||de(ae,Ie.mode.xmlCurrentContext&&Ie.mode.xmlCurrentContext(Re)||[],me,Oe,!0))return v.Pass;var Te=typeof Ee=="object"&&Ee.emptyTags;if(Te&&M(Te,me)>-1){Ne[Xe]={text:"/>",newPos:v.Pos(Oe.line,Oe.ch+2)};continue}var Me=ke&&M(ke,ee)>-1;Ne[Xe]={indent:Me,text:">"+(Me?`
`:"")+"</"+me+">",newPos:Me?v.Pos(Oe.line+1,0):v.Pos(Oe.line,Oe.ch+1)}}for(var Le=typeof Ee=="object"&&Ee.dontIndentOnAutoClose,Xe=te.length-1;Xe>=0;Xe--){var Je=Ne[Xe];ae.replaceRange(Je.text,te[Xe].head,te[Xe].anchor,"+insert");var Ye=ae.listSelections().slice(0);Ye[Xe]={head:Je.newPos,anchor:Je.newPos},ae.setSelections(Ye),!Le&&Je.indent&&(ae.indentLine(Je.newPos.line,null,!0),ae.indentLine(Je.newPos.line+1,null,!0))}}function G(ae,te){for(var Ne=ae.listSelections(),Ee=[],Xe=te?"/":"</",Oe=ae.getOption("autoCloseTags"),Ce=typeof Oe=="object"&&Oe.dontIndentOnSlash,Ie=0;Ie<Ne.length;Ie++){if(!Ne[Ie].empty())return v.Pass;var Re=Ne[Ie].head,fe=ae.getTokenAt(Re),me=v.innerMode(ae.getMode(),fe.state),ye=me.state;if(te&&(fe.type=="string"||fe.string.charAt(0)!="<"||fe.start!=Re.ch-1))return v.Pass;var pe,ke=me.mode.name!="xml"&&ae.getMode().name=="htmlmixed";if(ke&&me.mode.name=="javascript")pe=Xe+"script";else if(ke&&me.mode.name=="css")pe=Xe+"style";else{var ee=me.mode.xmlCurrentContext&&me.mode.xmlCurrentContext(ye);if(!ee||ee.length&&de(ae,ee,ee[ee.length-1],Re))return v.Pass;pe=Xe+ee[ee.length-1]}ae.getLine(Re.line).charAt(fe.end)!=">"&&(pe+=">"),Ee[Ie]=pe}if(ae.replaceSelections(Ee),Ne=ae.listSelections(),!Ce)for(var Ie=0;Ie<Ne.length;Ie++)(Ie==Ne.length-1||Ne[Ie].head.line<Ne[Ie+1].head.line)&&ae.indentLine(Ne[Ie].head.line)}function F(ae){return ae.getOption("disableInput")?v.Pass:G(ae,!0)}v.commands.closeTag=function(ae){return G(ae)};function M(ae,te){if(ae.indexOf)return ae.indexOf(te);for(var Ne=0,Ee=ae.length;Ne<Ee;++Ne)if(ae[Ne]==te)return Ne;return-1}function de(ae,te,Ne,Ee,Xe){if(!v.scanForClosingTag)return!1;var Oe=Math.min(ae.lastLine()+1,Ee.line+500),Ce=v.scanForClosingTag(ae,Ee,null,Oe);if(!Ce||Ce.tag!=Ne)return!1;for(var Ie=Xe?1:0,Re=te.length-1;Re>=0&&te[Re]==Ne;Re--)++Ie;Ee=Ce.to;for(var Re=1;Re<Ie;Re++){var fe=v.scanForClosingTag(ae,Ee,null,Oe);if(!fe||fe.tag!=Ne)return!1;Ee=fe.to}return!0}})},32855:function(X,C,h){(function(v){v(h(89780))})(function(v){"use strict";var I=v.Pos;function O(Re,fe){return Re.line-fe.line||Re.ch-fe.ch}var B="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",G=B+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",F=new RegExp("<(/?)(["+B+"]["+G+"]*)","g");function M(Re,fe,me,ye){this.line=fe,this.ch=me,this.cm=Re,this.text=Re.getLine(fe),this.min=ye?Math.max(ye.from,Re.firstLine()):Re.firstLine(),this.max=ye?Math.min(ye.to-1,Re.lastLine()):Re.lastLine()}function de(Re,fe){var me=Re.cm.getTokenTypeAt(I(Re.line,fe));return me&&/\btag\b/.test(me)}function ae(Re){if(!(Re.line>=Re.max))return Re.ch=0,Re.text=Re.cm.getLine(++Re.line),!0}function te(Re){if(!(Re.line<=Re.min))return Re.text=Re.cm.getLine(--Re.line),Re.ch=Re.text.length,!0}function Ne(Re){for(;;){var fe=Re.text.indexOf(">",Re.ch);if(fe==-1){if(ae(Re))continue;return}if(!de(Re,fe+1)){Re.ch=fe+1;continue}var me=Re.text.lastIndexOf("/",fe),ye=me>-1&&!/\S/.test(Re.text.slice(me+1,fe));return Re.ch=fe+1,ye?"selfClose":"regular"}}function Ee(Re){for(;;){var fe=Re.ch?Re.text.lastIndexOf("<",Re.ch-1):-1;if(fe==-1){if(te(Re))continue;return}if(!de(Re,fe+1)){Re.ch=fe;continue}F.lastIndex=fe,Re.ch=fe;var me=F.exec(Re.text);if(me&&me.index==fe)return me}}function Xe(Re){for(;;){F.lastIndex=Re.ch;var fe=F.exec(Re.text);if(!fe){if(ae(Re))continue;return}if(!de(Re,fe.index+1)){Re.ch=fe.index+1;continue}return Re.ch=fe.index+fe[0].length,fe}}function Oe(Re){for(;;){var fe=Re.ch?Re.text.lastIndexOf(">",Re.ch-1):-1;if(fe==-1){if(te(Re))continue;return}if(!de(Re,fe+1)){Re.ch=fe;continue}var me=Re.text.lastIndexOf("/",fe),ye=me>-1&&!/\S/.test(Re.text.slice(me+1,fe));return Re.ch=fe+1,ye?"selfClose":"regular"}}function Ce(Re,fe){for(var me=[];;){var ye=Xe(Re),pe,ke=Re.line,ee=Re.ch-(ye?ye[0].length:0);if(!ye||!(pe=Ne(Re)))return;if(pe!="selfClose")if(ye[1]){for(var Te=me.length-1;Te>=0;--Te)if(me[Te]==ye[2]){me.length=Te;break}if(Te<0&&(!fe||fe==ye[2]))return{tag:ye[2],from:I(ke,ee),to:I(Re.line,Re.ch)}}else me.push(ye[2])}}function Ie(Re,fe){for(var me=[];;){var ye=Oe(Re);if(!ye)return;if(ye=="selfClose"){Ee(Re);continue}var pe=Re.line,ke=Re.ch,ee=Ee(Re);if(!ee)return;if(ee[1])me.push(ee[2]);else{for(var Te=me.length-1;Te>=0;--Te)if(me[Te]==ee[2]){me.length=Te;break}if(Te<0&&(!fe||fe==ee[2]))return{tag:ee[2],from:I(Re.line,Re.ch),to:I(pe,ke)}}}}v.registerHelper("fold","xml",function(Re,fe){for(var me=new M(Re,fe.line,0);;){var ye=Xe(me);if(!ye||me.line!=fe.line)return;var pe=Ne(me);if(!pe)return;if(!ye[1]&&pe!="selfClose"){var ke=I(me.line,me.ch),ee=Ce(me,ye[2]);return ee&&O(ee.from,ke)>0?{from:ke,to:ee.from}:null}}}),v.findMatchingTag=function(Re,fe,me){var ye=new M(Re,fe.line,fe.ch,me);if(!(ye.text.indexOf(">")==-1&&ye.text.indexOf("<")==-1)){var pe=Ne(ye),ke=pe&&I(ye.line,ye.ch),ee=pe&&Ee(ye);if(!(!pe||!ee||O(ye,fe)>0)){var Te={from:I(ye.line,ye.ch),to:ke,tag:ee[2]};return pe=="selfClose"?{open:Te,close:null,at:"open"}:ee[1]?{open:Ie(ye,ee[2]),close:Te,at:"close"}:(ye=new M(Re,ke.line,ke.ch,me),{open:Te,close:Ce(ye,ee[2]),at:"open"})}}},v.findEnclosingTag=function(Re,fe,me,ye){for(var pe=new M(Re,fe.line,fe.ch,me);;){var ke=Ie(pe,ye);if(!ke)break;var ee=new M(Re,fe.line,fe.ch,me),Te=Ce(ee,ke.tag);if(Te)return{open:ke,close:Te}}},v.scanForClosingTag=function(Re,fe,me,ye){var pe=new M(Re,fe.line,fe.ch,ye?{from:0,to:ye}:null);return Ce(pe,me)}})},89780:function(X){(function(C,h){X.exports=h()})(this,function(){"use strict";var C=navigator.userAgent,h=navigator.platform,v=/gecko\/\d/i.test(C),I=/MSIE \d/.test(C),O=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(C),B=/Edge\/(\d+)/.exec(C),G=I||O||B,F=G&&(I?document.documentMode||6:+(B||O)[1]),M=!B&&/WebKit\//.test(C),de=M&&/Qt\/\d+\.\d+/.test(C),ae=!B&&/Chrome\//.test(C),te=/Opera\//.test(C),Ne=/Apple Computer/.test(navigator.vendor),Ee=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(C),Xe=/PhantomJS/.test(C),Oe=!B&&/AppleWebKit/.test(C)&&/Mobile\/\w+/.test(C),Ce=/Android/.test(C),Ie=Oe||Ce||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(C),Re=Oe||/Mac/.test(h),fe=/\bCrOS\b/.test(C),me=/win/i.test(h),ye=te&&C.match(/Version\/(\d*\.\d*)/);ye&&(ye=Number(ye[1])),ye&&ye>=15&&(te=!1,M=!0);var pe=Re&&(de||te&&(ye==null||ye<12.11)),ke=v||G&&F>=9;function ee(s){return new RegExp("(^|\\s)"+s+"(?:$|\\s)\\s*")}var Te=function(s,c){var b=s.className,y=ee(c).exec(b);if(y){var w=b.slice(y.index+y[0].length);s.className=b.slice(0,y.index)+(w?y[1]+w:"")}};function Me(s){for(var c=s.childNodes.length;c>0;--c)s.removeChild(s.firstChild);return s}function Le(s,c){return Me(s).appendChild(c)}function Je(s,c,b,y){var w=document.createElement(s);if(b&&(w.className=b),y&&(w.style.cssText=y),typeof c=="string")w.appendChild(document.createTextNode(c));else if(c)for(var H=0;H<c.length;++H)w.appendChild(c[H]);return w}function Ye(s,c,b,y){var w=Je(s,c,b,y);return w.setAttribute("role","presentation"),w}var ne;document.createRange?ne=function(s,c,b,y){var w=document.createRange();return w.setEnd(y||s,b),w.setStart(s,c),w}:ne=function(s,c,b){var y=document.body.createTextRange();try{y.moveToElementText(s.parentNode)}catch(w){return y}return y.collapse(!0),y.moveEnd("character",b),y.moveStart("character",c),y};function at(s,c){if(c.nodeType==3&&(c=c.parentNode),s.contains)return s.contains(c);do if(c.nodeType==11&&(c=c.host),c==s)return!0;while(c=c.parentNode)}function Ge(){var s;try{s=document.activeElement}catch(c){s=document.body||null}for(;s&&s.shadowRoot&&s.shadowRoot.activeElement;)s=s.shadowRoot.activeElement;return s}function Pt(s,c){var b=s.className;ee(c).test(b)||(s.className+=(b?" ":"")+c)}function gt(s,c){for(var b=s.split(" "),y=0;y<b.length;y++)b[y]&&!ee(b[y]).test(c)&&(c+=" "+b[y]);return c}var kt=function(s){s.select()};Oe?kt=function(s){s.selectionStart=0,s.selectionEnd=s.value.length}:G&&(kt=function(s){try{s.select()}catch(c){}});function Ct(s){var c=Array.prototype.slice.call(arguments,1);return function(){return s.apply(null,c)}}function Cn(s,c,b){c||(c={});for(var y in s)s.hasOwnProperty(y)&&(b!==!1||!c.hasOwnProperty(y))&&(c[y]=s[y]);return c}function Qe(s,c,b,y,w){c==null&&(c=s.search(/[^\s\u00a0]/),c==-1&&(c=s.length));for(var H=y||0,ie=w||0;;){var Se=s.indexOf(" ",H);if(Se<0||Se>=c)return ie+(c-H);ie+=Se-H,ie+=b-ie%b,H=Se+1}}var le=function(){this.id=null,this.f=null,this.time=0,this.handler=Ct(this.onTimeout,this)};le.prototype.onTimeout=function(s){s.id=0,s.time<=+new Date?s.f():setTimeout(s.handler,s.time-+new Date)},le.prototype.set=function(s,c){this.f=c;var b=+new Date+s;(!this.id||b<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,s),this.time=b)};function ce(s,c){for(var b=0;b<s.length;++b)if(s[b]==c)return b;return-1}var Ht=50,Vt={toString:function(){return"CodeMirror.Pass"}},St={scroll:!1},sn={origin:"*mouse"},Ft={origin:"+move"};function oi(s,c,b){for(var y=0,w=0;;){var H=s.indexOf(" ",y);H==-1&&(H=s.length);var ie=H-y;if(H==s.length||w+ie>=c)return y+Math.min(ie,c-w);if(w+=H-y,w+=b-w%b,y=H+1,w>=c)return y}}var On=[""];function ni(s){for(;On.length<=s;)On.push(Jn(On)+" ");return On[s]}function Jn(s){return s[s.length-1]}function Mn(s,c){for(var b=[],y=0;y<s.length;y++)b[y]=c(s[y],y);return b}function In(s,c,b){for(var y=0,w=b(c);y<s.length&&b(s[y])<=w;)y++;s.splice(y,0,c)}function re(){}function z(s,c){var b;return Object.create?b=Object.create(s):(re.prototype=s,b=new re),c&&Cn(c,b),b}var k=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function j(s){return/\w/.test(s)||s>"\x80"&&(s.toUpperCase()!=s.toLowerCase()||k.test(s))}function Q(s,c){return c?c.source.indexOf("\\w")>-1&&j(s)?!0:c.test(s):j(s)}function T(s){for(var c in s)if(s.hasOwnProperty(c)&&s[c])return!1;return!0}var _e=/[\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 It(s){return s.charCodeAt(0)>=768&&_e.test(s)}function $e(s,c,b){for(;(b<0?c>0:c<s.length)&&It(s.charAt(c));)c+=b;return c}function Pe(s,c,b){for(var y=c>b?-1:1;;){if(c==b)return c;var w=(c+b)/2,H=y<0?Math.ceil(w):Math.floor(w);if(H==c)return s(H)?c:b;s(H)?b=H:c=H+y}}function vt(s,c,b,y){if(!s)return y(c,b,"ltr",0);for(var w=!1,H=0;H<s.length;++H){var ie=s[H];(ie.from<b&&ie.to>c||c==b&&ie.to==c)&&(y(Math.max(ie.from,c),Math.min(ie.to,b),ie.level==1?"rtl":"ltr",H),w=!0)}w||y(c,b,"ltr")}var ut=null;function tt(s,c,b){var y;ut=null;for(var w=0;w<s.length;++w){var H=s[w];if(H.from<c&&H.to>c)return w;H.to==c&&(H.from!=H.to&&b=="before"?y=w:ut=w),H.from==c&&(H.from!=H.to&&b!="before"?y=w:ut=w)}return y!=null?y:ut}var Et=function(){var s="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",c="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function b(Ze){return Ze<=247?s.charAt(Ze):1424<=Ze&&Ze<=1524?"R":1536<=Ze&&Ze<=1785?c.charAt(Ze-1536):1774<=Ze&&Ze<=2220?"r":8192<=Ze&&Ze<=8203?"w":Ze==8204?"b":"L"}var y=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,w=/[stwN]/,H=/[LRr]/,ie=/[Lb1n]/,Se=/[1n]/;function be(Ze,Wt,st){this.level=Ze,this.from=Wt,this.to=st}return function(Ze,Wt){var st=Wt=="ltr"?"L":"R";if(Ze.length==0||Wt=="ltr"&&!y.test(Ze))return!1;for(var Tn=Ze.length,En=[],ci=0;ci<Tn;++ci)En.push(b(Ze.charCodeAt(ci)));for(var bi=0,Di=st;bi<Tn;++bi){var er=En[bi];er=="m"?En[bi]=Di:Di=er}for(var Fr=0,Sr=st;Fr<Tn;++Fr){var Gr=En[Fr];Gr=="1"&&Sr=="r"?En[Fr]="n":H.test(Gr)&&(Sr=Gr,Gr=="r"&&(En[Fr]="R"))}for(var mo=1,yr=En[0];mo<Tn-1;++mo){var zo=En[mo];zo=="+"&&yr=="1"&&En[mo+1]=="1"?En[mo]="1":zo==","&&yr==En[mo+1]&&(yr=="1"||yr=="n")&&(En[mo]=yr),yr=zo}for(var cs=0;cs<Tn;++cs){var ll=En[cs];if(ll==",")En[cs]="N";else if(ll=="%"){var bs=void 0;for(bs=cs+1;bs<Tn&&En[bs]=="%";++bs);for(var yu=cs&&En[cs-1]=="!"||bs<Tn&&En[bs]=="1"?"1":"N",Kl=cs;Kl<bs;++Kl)En[Kl]=yu;cs=bs-1}}for(var qs=0,Mu=st;qs<Tn;++qs){var Bl=En[qs];Mu=="L"&&Bl=="1"?En[qs]="L":H.test(Bl)&&(Mu=Bl)}for(var el=0;el<Tn;++el)if(w.test(En[el])){var Aa=void 0;for(Aa=el+1;Aa<Tn&&w.test(En[Aa]);++Aa);for(var As=(el?En[el-1]:st)=="L",El=(Aa<Tn?En[Aa]:st)=="L",_l=As==El?As?"L":"R":st,fc=el;fc<Aa;++fc)En[fc]=_l;el=Aa-1}for(var xs=[],nc,Bs=0;Bs<Tn;)if(ie.test(En[Bs])){var zd=Bs;for(++Bs;Bs<Tn&&ie.test(En[Bs]);++Bs);xs.push(new be(0,zd,Bs))}else{var Hu=Bs,Ou=xs.length,bu=Wt=="rtl"?1:0;for(++Bs;Bs<Tn&&En[Bs]!="L";++Bs);for(var Ya=Hu;Ya<Bs;)if(Se.test(En[Ya])){Hu<Ya&&(xs.splice(Ou,0,new be(1,Hu,Ya)),Ou+=bu);var wl=Ya;for(++Ya;Ya<Bs&&Se.test(En[Ya]);++Ya);xs.splice(Ou,0,new be(2,wl,Ya)),Ou+=bu,Hu=Ya}else++Ya;Hu<Bs&&xs.splice(Ou,0,new be(1,Hu,Bs))}return Wt=="ltr"&&(xs[0].level==1&&(nc=Ze.match(/^\s+/))&&(xs[0].from=nc[0].length,xs.unshift(new be(0,0,nc[0].length))),Jn(xs).level==1&&(nc=Ze.match(/\s+$/))&&(Jn(xs).to-=nc[0].length,xs.push(new be(0,Tn-nc[0].length,Tn)))),Wt=="rtl"?xs.reverse():xs}}();function pn(s,c){var b=s.order;return b==null&&(b=s.order=Et(s.text,c)),b}var nn=[],Kt=function(s,c,b){if(s.addEventListener)s.addEventListener(c,b,!1);else if(s.attachEvent)s.attachEvent("on"+c,b);else{var y=s._handlers||(s._handlers={});y[c]=(y[c]||nn).concat(b)}};function hn(s,c){return s._handlers&&s._handlers[c]||nn}function an(s,c,b){if(s.removeEventListener)s.removeEventListener(c,b,!1);else if(s.detachEvent)s.detachEvent("on"+c,b);else{var y=s._handlers,w=y&&y[c];if(w){var H=ce(w,b);H>-1&&(y[c]=w.slice(0,H).concat(w.slice(H+1)))}}}function et(s,c){var b=hn(s,c);if(b.length)for(var y=Array.prototype.slice.call(arguments,2),w=0;w<b.length;++w)b[w].apply(null,y)}function zt(s,c,b){return typeof c=="string"&&(c={type:c,preventDefault:function(){this.defaultPrevented=!0}}),et(s,b||c.type,s,c),Bt(c)||c.codemirrorIgnore}function dn(s){var c=s._handlers&&s._handlers.cursorActivity;if(c)for(var b=s.curOp.cursorActivityHandlers||(s.curOp.cursorActivityHandlers=[]),y=0;y<c.length;++y)ce(b,c[y])==-1&&b.push(c[y])}function rn(s,c){return hn(s,c).length>0}function ze(s){s.prototype.on=function(c,b){Kt(this,c,b)},s.prototype.off=function(c,b){an(this,c,b)}}function Un(s){s.preventDefault?s.preventDefault():s.returnValue=!1}function yn(s){s.stopPropagation?s.stopPropagation():s.cancelBubble=!0}function Bt(s){return s.defaultPrevented!=null?s.defaultPrevented:s.returnValue==!1}function Si(s){Un(s),yn(s)}function _i(s){return s.target||s.srcElement}function Ii(s){var c=s.which;return c==null&&(s.button&1?c=1:s.button&2?c=3:s.button&4&&(c=2)),Re&&s.ctrlKey&&c==1&&(c=3),c}var cn=function(){if(G&&F<9)return!1;var s=Je("div");return"draggable"in s||"dragDrop"in s}(),fr;function Xi(s){if(fr==null){var c=Je("span","\u200B");Le(s,Je("span",[c,document.createTextNode("x")])),s.firstChild.offsetHeight!=0&&(fr=c.offsetWidth<=1&&c.offsetHeight>2&&!(G&&F<8))}var b=fr?Je("span","\u200B"):Je("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return b.setAttribute("cm-text",""),b}var ei;function Tr(s){if(ei!=null)return ei;var c=Le(s,document.createTextNode("A\u062EA")),b=ne(c,0,1).getBoundingClientRect(),y=ne(c,1,2).getBoundingClientRect();return Me(s),!b||b.left==b.right?!1:ei=y.right-b.right<3}var ur=`
b`.split(/\n/).length!=3?function(s){for(var c=0,b=[],y=s.length;c<=y;){var w=s.indexOf(`
`,c);w==-1&&(w=s.length);var H=s.slice(c,s.charAt(w-1)=="\r"?w-1:w),ie=H.indexOf("\r");ie!=-1?(b.push(H.slice(0,ie)),c+=ie+1):(b.push(H),c=w+1)}return b}:function(s){return s.split(/\r\n?|\n/)},U=window.getSelection?function(s){try{return s.selectionStart!=s.selectionEnd}catch(c){return!1}}:function(s){var c;try{c=s.ownerDocument.selection.createRange()}catch(b){}return!c||c.parentElement()!=s?!1:c.compareEndPoints("StartToEnd",c)!=0},mr=function(){var s=Je("div");return"oncopy"in s?!0:(s.setAttribute("oncopy","return;"),typeof s.oncopy=="function")}(),Er=null;function wr(s){if(Er!=null)return Er;var c=Le(s,Je("span","x")),b=c.getBoundingClientRect(),y=ne(c,0,1).getBoundingClientRect();return Er=Math.abs(b.left-y.left)>1}var qr={},xo={};function kr(s,c){arguments.length>2&&(c.dependencies=Array.prototype.slice.call(arguments,2)),qr[s]=c}function no(s,c){xo[s]=c}function rr(s){if(typeof s=="string"&&xo.hasOwnProperty(s))s=xo[s];else if(s&&typeof s.name=="string"&&xo.hasOwnProperty(s.name)){var c=xo[s.name];typeof c=="string"&&(c={name:c}),s=z(c,s),s.name=c.name}else{if(typeof s=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(s))return rr("application/xml");if(typeof s=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(s))return rr("application/json")}return typeof s=="string"?{name:s}:s||{name:"null"}}function Bi(s,c){c=rr(c);var b=qr[c.name];if(!b)return Bi(s,"text/plain");var y=b(s,c);if(yi.hasOwnProperty(c.name)){var w=yi[c.name];for(var H in w)w.hasOwnProperty(H)&&(y.hasOwnProperty(H)&&(y["_"+H]=y[H]),y[H]=w[H])}if(y.name=c.name,c.helperType&&(y.helperType=c.helperType),c.modeProps)for(var ie in c.modeProps)y[ie]=c.modeProps[ie];return y}var yi={};function ht(s,c){var b=yi.hasOwnProperty(s)?yi[s]:yi[s]={};Cn(c,b)}function _n(s,c){if(c===!0)return c;if(s.copyState)return s.copyState(c);var b={};for(var y in c){var w=c[y];w instanceof Array&&(w=w.concat([])),b[y]=w}return b}function Vn(s,c){for(var b;s.innerMode&&(b=s.innerMode(c),!(!b||b.mode==s));)c=b.state,s=b.mode;return b||{mode:s,state:c}}function pt(s,c,b){return s.startState?s.startState(c,b):!0}var Ke=function(s,c,b){this.pos=this.start=0,this.string=s,this.tabSize=c||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=b};Ke.prototype.eol=function(){return this.pos>=this.string.length},Ke.prototype.sol=function(){return this.pos==this.lineStart},Ke.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ke.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ke.prototype.eat=function(s){var c=this.string.charAt(this.pos),b;if(typeof s=="string"?b=c==s:b=c&&(s.test?s.test(c):s(c)),b)return++this.pos,c},Ke.prototype.eatWhile=function(s){for(var c=this.pos;this.eat(s););return this.pos>c},Ke.prototype.eatSpace=function(){for(var s=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>s},Ke.prototype.skipToEnd=function(){this.pos=this.string.length},Ke.prototype.skipTo=function(s){var c=this.string.indexOf(s,this.pos);if(c>-1)return this.pos=c,!0},Ke.prototype.backUp=function(s){this.pos-=s},Ke.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Qe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Qe(this.string,this.lineStart,this.tabSize):0)},Ke.prototype.indentation=function(){return Qe(this.string,null,this.tabSize)-(this.lineStart?Qe(this.string,this.lineStart,this.tabSize):0)},Ke.prototype.match=function(s,c,b){if(typeof s=="string"){var y=function(ie){return b?ie.toLowerCase():ie},w=this.string.substr(this.pos,s.length);if(y(w)==y(s))return c!==!1&&(this.pos+=s.length),!0}else{var H=this.string.slice(this.pos).match(s);return H&&H.index>0?null:(H&&c!==!1&&(this.pos+=H[0].length),H)}},Ke.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ke.prototype.hideFirstChars=function(s,c){this.lineStart+=s;try{return c()}finally{this.lineStart-=s}},Ke.prototype.lookAhead=function(s){var c=this.lineOracle;return c&&c.lookAhead(s)},Ke.prototype.baseToken=function(){var s=this.lineOracle;return s&&s.baseToken(this.pos)};function vn(s,c){if(c-=s.first,c<0||c>=s.size)throw new Error("There is no line "+(c+s.first)+" in the document.");for(var b=s;!b.lines;)for(var y=0;;++y){var w=b.children[y],H=w.chunkSize();if(c<H){b=w;break}c-=H}return b.lines[c]}function Fn(s,c,b){var y=[],w=c.line;return s.iter(c.line,b.line+1,function(H){var ie=H.text;w==b.line&&(ie=ie.slice(0,b.ch)),w==c.line&&(ie=ie.slice(c.ch)),y.push(ie),++w}),y}function on(s,c,b){var y=[];return s.iter(c,b,function(w){y.push(w.text)}),y}function Nt(s,c){var b=c-s.height;if(b)for(var y=s;y;y=y.parent)y.height+=b}function Ve(s){if(s.parent==null)return null;for(var c=s.parent,b=ce(c.lines,s),y=c.parent;y;c=y,y=y.parent)for(var w=0;y.children[w]!=c;++w)b+=y.children[w].chunkSize();return b+c.first}function Ut(s,c){var b=s.first;e:do{for(var y=0;y<s.children.length;++y){var w=s.children[y],H=w.height;if(c<H){s=w;continue e}c-=H,b+=w.chunkSize()}return b}while(!s.lines);for(var ie=0;ie<s.lines.length;++ie){var Se=s.lines[ie],be=Se.height;if(c<be)break;c-=be}return b+ie}function Lt(s,c){return c>=s.first&&c<s.first+s.size}function Wn(s,c){return String(s.lineNumberFormatter(c+s.firstLineNumber))}function ot(s,c,b){if(b===void 0&&(b=null),!(this instanceof ot))return new ot(s,c,b);this.line=s,this.ch=c,this.sticky=b}function fn(s,c){return s.line-c.line||s.ch-c.ch}function yt(s,c){return s.sticky==c.sticky&&fn(s,c)==0}function je(s){return ot(s.line,s.ch)}function L(s,c){return fn(s,c)<0?c:s}function Rt(s,c){return fn(s,c)<0?s:c}function Jt(s,c){return Math.max(s.first,Math.min(c,s.first+s.size-1))}function mt(s,c){if(c.line<s.first)return ot(s.first,0);var b=s.first+s.size-1;return c.line>b?ot(b,vn(s,b).text.length):xn(c,vn(s,c.line).text.length)}function xn(s,c){var b=s.ch;return b==null||b>c?ot(s.line,c):b<0?ot(s.line,0):s}function An(s,c){for(var b=[],y=0;y<c.length;y++)b[y]=mt(s,c[y]);return b}var li=function(s,c){this.state=s,this.lookAhead=c},Nn=function(s,c,b,y){this.state=c,this.doc=s,this.line=b,this.maxLookAhead=y||0,this.baseTokens=null,this.baseTokenPos=1};Nn.prototype.lookAhead=function(s){var c=this.doc.getLine(this.line+s);return c!=null&&s>this.maxLookAhead&&(this.maxLookAhead=s),c},Nn.prototype.baseToken=function(s){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=s;)this.baseTokenPos+=2;var c=this.baseTokens[this.baseTokenPos+1];return{type:c&&c.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-s}},Nn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Nn.fromSaved=function(s,c,b){return c instanceof li?new Nn(s,_n(s.mode,c.state),b,c.lookAhead):new Nn(s,_n(s.mode,c),b)},Nn.prototype.save=function(s){var c=s!==!1?_n(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new li(c,this.maxLookAhead):c};function lt(s,c,b,y){var w=[s.state.modeGen],H={};Tt(s,c.text,s.doc.mode,b,function(Ze,Wt){return w.push(Ze,Wt)},H,y);for(var ie=b.state,Se=function(Ze){b.baseTokens=w;var Wt=s.state.overlays[Ze],st=1,Tn=0;b.state=!0,Tt(s,c.text,Wt.mode,b,function(En,ci){for(var bi=st;Tn<En;){var Di=w[st];Di>En&&w.splice(st,1,En,w[st+1],Di),st+=2,Tn=Math.min(En,Di)}if(ci)if(Wt.opaque)w.splice(bi,st-bi,En,"overlay "+ci),st=bi+2;else for(;bi<st;bi+=2){var er=w[bi+1];w[bi+1]=(er?er+" ":"")+"overlay "+ci}},H),b.state=ie,b.baseTokens=null,b.baseTokenPos=1},be=0;be<s.state.overlays.length;++be)Se(be);return{styles:w,classes:H.bgClass||H.textClass?H:null}}function Mi(s,c,b){if(!c.styles||c.styles[0]!=s.state.modeGen){var y=Yi(s,Ve(c)),w=c.text.length>s.options.maxHighlightLength&&_n(s.doc.mode,y.state),H=lt(s,c,y);w&&(y.state=w),c.stateAfter=y.save(!w),c.styles=H.styles,H.classes?c.styleClasses=H.classes:c.styleClasses&&(c.styleClasses=null),b===s.doc.highlightFrontier&&(s.doc.modeFrontier=Math.max(s.doc.modeFrontier,++s.doc.highlightFrontier))}return c.styles}function Yi(s,c,b){var y=s.doc,w=s.display;if(!y.mode.startState)return new Nn(y,!0,c);var H=fi(s,c,b),ie=H>y.first&&vn(y,H-1).stateAfter,Se=ie?Nn.fromSaved(y,ie,H):new Nn(y,pt(y.mode),H);return y.iter(H,c,function(be){Yt(s,be.text,Se);var Ze=Se.line;be.stateAfter=Ze==c-1||Ze%5==0||Ze>=w.viewFrom&&Ze<w.viewTo?Se.save():null,Se.nextLine()}),b&&(y.modeFrontier=Se.line),Se}function Yt(s,c,b,y){var w=s.doc.mode,H=new Ke(c,s.options.tabSize,b);for(H.start=H.pos=y||0,c==""&&zi(w,b.state);!H.eol();)q(w,H,b.state),H.start=H.pos}function zi(s,c){if(s.blankLine)return s.blankLine(c);if(s.innerMode){var b=Vn(s,c);if(b.mode.blankLine)return b.mode.blankLine(b.state)}}function q(s,c,b,y){for(var w=0;w<10;w++){y&&(y[0]=Vn(s,b).mode);var H=s.token(c,b);if(c.pos>c.start)return H}throw new Error("Mode "+s.name+" failed to advance stream.")}var oe=function(s,c,b){this.start=s.start,this.end=s.pos,this.string=s.current(),this.type=c||null,this.state=b};function Hn(s,c,b,y){var w=s.doc,H=w.mode,ie;c=mt(w,c);var Se=vn(w,c.line),be=Yi(s,c.line,b),Ze=new Ke(Se.text,s.options.tabSize,be),Wt;for(y&&(Wt=[]);(y||Ze.pos<c.ch)&&!Ze.eol();)Ze.start=Ze.pos,ie=q(H,Ze,be.state),y&&Wt.push(new oe(Ze,ie,_n(w.mode,be.state)));return y?Wt:new oe(Ze,ie,be.state)}function Be(s,c){if(s)for(;;){var b=s.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!b)break;s=s.slice(0,b.index)+s.slice(b.index+b[0].length);var y=b[1]?"bgClass":"textClass";c[y]==null?c[y]=b[2]:new RegExp("(?:^|\\s)"+b[2]+"(?:$|\\s)").test(c[y])||(c[y]+=" "+b[2])}return s}function Tt(s,c,b,y,w,H,ie){var Se=b.flattenSpans;Se==null&&(Se=s.options.flattenSpans);var be=0,Ze=null,Wt=new Ke(c,s.options.tabSize,y),st,Tn=s.options.addModeClass&&[null];for(c==""&&Be(zi(b,y.state),H);!Wt.eol();){if(Wt.pos>s.options.maxHighlightLength?(Se=!1,ie&&Yt(s,c,y,Wt.pos),Wt.pos=c.length,st=null):st=Be(q(b,Wt,y.state,Tn),H),Tn){var En=Tn[0].name;En&&(st="m-"+(st?En+" "+st:En))}if(!Se||Ze!=st){for(;be<Wt.start;)be=Math.min(Wt.start,be+5e3),w(be,Ze);Ze=st}Wt.start=Wt.pos}for(;be<Wt.pos;){var ci=Math.min(Wt.pos,be+5e3);w(ci,Ze),be=ci}}function fi(s,c,b){for(var y,w,H=s.doc,ie=b?-1:c-(s.doc.mode.innerMode?1e3:100),Se=c;Se>ie;--Se){if(Se<=H.first)return H.first;var be=vn(H,Se-1),Ze=be.stateAfter;if(Ze&&(!b||Se+(Ze instanceof li?Ze.lookAhead:0)<=H.modeFrontier))return Se;var Wt=Qe(be.text,null,s.options.tabSize);(w==null||y>Wt)&&(w=Se-1,y=Wt)}return w}function Ln(s,c){if(s.modeFrontier=Math.min(s.modeFrontier,c),!(s.highlightFrontier<c-10)){for(var b=s.first,y=c-1;y>b;y--){var w=vn(s,y).stateAfter;if(w&&(!(w instanceof li)||y+w.lookAhead<c)){b=y+1;break}}s.highlightFrontier=Math.min(s.highlightFrontier,b)}}var Fi=!1,qt=!1;function xi(){Fi=!0}function Xt(){qt=!0}function Li(s,c,b){this.marker=s,this.from=c,this.to=b}function Yr(s,c){if(s)for(var b=0;b<s.length;++b){var y=s[b];if(y.marker==c)return y}}function Mt(s,c){for(var b,y=0;y<s.length;++y)s[y]!=c&&(b||(b=[])).push(s[y]);return b}function Qr(s,c){s.markedSpans=s.markedSpans?s.markedSpans.concat([c]):[c],c.marker.attachLine(s)}function tn(s,c,b){var y;if(s)for(var w=0;w<s.length;++w){var H=s[w],ie=H.marker,Se=H.from==null||(ie.inclusiveLeft?H.from<=c:H.from<c);if(Se||H.from==c&&ie.type=="bookmark"&&(!b||!H.marker.insertLeft)){var be=H.to==null||(ie.inclusiveRight?H.to>=c:H.to>c);(y||(y=[])).push(new Li(ie,H.from,be?null:H.to))}}return y}function Oi(s,c,b){var y;if(s)for(var w=0;w<s.length;++w){var H=s[w],ie=H.marker,Se=H.to==null||(ie.inclusiveRight?H.to>=c:H.to>c);if(Se||H.from==c&&ie.type=="bookmark"&&(!b||H.marker.insertLeft)){var be=H.from==null||(ie.inclusiveLeft?H.from<=c:H.from<c);(y||(y=[])).push(new Li(ie,be?null:H.from-c,H.to==null?null:H.to-c))}}return y}function Ei(s,c){if(c.full)return null;var b=Lt(s,c.from.line)&&vn(s,c.from.line).markedSpans,y=Lt(s,c.to.line)&&vn(s,c.to.line).markedSpans;if(!b&&!y)return null;var w=c.from.ch,H=c.to.ch,ie=fn(c.from,c.to)==0,Se=tn(b,w,ie),be=Oi(y,H,ie),Ze=c.text.length==1,Wt=Jn(c.text).length+(Ze?w:0);if(Se)for(var st=0;st<Se.length;++st){var Tn=Se[st];if(Tn.to==null){var En=Yr(be,Tn.marker);En?Ze&&(Tn.to=En.to==null?null:En.to+Wt):Tn.to=w}}if(be)for(var ci=0;ci<be.length;++ci){var bi=be[ci];if(bi.to!=null&&(bi.to+=Wt),bi.from==null){var Di=Yr(Se,bi.marker);Di||(bi.from=Wt,Ze&&(Se||(Se=[])).push(bi))}else bi.from+=Wt,Ze&&(Se||(Se=[])).push(bi)}Se&&(Se=or(Se)),be&&be!=Se&&(be=or(be));var er=[Se];if(!Ze){var Fr=c.text.length-2,Sr;if(Fr>0&&Se)for(var Gr=0;Gr<Se.length;++Gr)Se[Gr].to==null&&(Sr||(Sr=[])).push(new Li(Se[Gr].marker,null,null));for(var mo=0;mo<Fr;++mo)er.push(Sr);er.push(be)}return er}function or(s){for(var c=0;c<s.length;++c){var b=s[c];b.from!=null&&b.from==b.to&&b.marker.clearWhenEmpty!==!1&&s.splice(c--,1)}return s.length?s:null}function tr(s,c,b){var y=null;if(s.iter(c.line,b.line+1,function(En){if(En.markedSpans)for(var ci=0;ci<En.markedSpans.length;++ci){var bi=En.markedSpans[ci].marker;bi.readOnly&&(!y||ce(y,bi)==-1)&&(y||(y=[])).push(bi)}}),!y)return null;for(var w=[{from:c,to:b}],H=0;H<y.length;++H)for(var ie=y[H],Se=ie.find(0),be=0;be<w.length;++be){var Ze=w[be];if(!(fn(Ze.to,Se.from)<0||fn(Ze.from,Se.to)>0)){var Wt=[be,1],st=fn(Ze.from,Se.from),Tn=fn(Ze.to,Se.to);(st<0||!ie.inclusiveLeft&&!st)&&Wt.push({from:Ze.from,to:Se.from}),(Tn>0||!ie.inclusiveRight&&!Tn)&&Wt.push({from:Se.to,to:Ze.to}),w.splice.apply(w,Wt),be+=Wt.length-3}}return w}function Zn(s){var c=s.markedSpans;if(c){for(var b=0;b<c.length;++b)c[b].marker.detachLine(s);s.markedSpans=null}}function he(s,c){if(c){for(var b=0;b<c.length;++b)c[b].marker.attachLine(s);s.markedSpans=c}}function gr(s){return s.inclusiveLeft?-1:0}function br(s){return s.inclusiveRight?1:0}function cr(s,c){var b=s.lines.length-c.lines.length;if(b!=0)return b;var y=s.find(),w=c.find(),H=fn(y.from,w.from)||gr(s)-gr(c);if(H)return-H;var ie=fn(y.to,w.to)||br(s)-br(c);return ie||c.id-s.id}function Br(s,c){var b=qt&&s.markedSpans,y;if(b)for(var w=void 0,H=0;H<b.length;++H)w=b[H],w.marker.collapsed&&(c?w.from:w.to)==null&&(!y||cr(y,w.marker)<0)&&(y=w.marker);return y}function Zi(s){return Br(s,!0)}function Ri(s){return Br(s,!1)}function Ai(s,c){var b=qt&&s.markedSpans,y;if(b)for(var w=0;w<b.length;++w){var H=b[w];H.marker.collapsed&&(H.from==null||H.from<c)&&(H.to==null||H.to>c)&&(!y||cr(y,H.marker)<0)&&(y=H.marker)}return y}function hr(s,c,b,y,w){var H=vn(s,c),ie=qt&&H.markedSpans;if(ie)for(var Se=0;Se<ie.length;++Se){var be=ie[Se];if(be.marker.collapsed){var Ze=be.marker.find(0),Wt=fn(Ze.from,b)||gr(be.marker)-gr(w),st=fn(Ze.to,y)||br(be.marker)-br(w);if(!(Wt>=0&&st<=0||Wt<=0&&st>=0)&&(Wt<=0&&(be.marker.inclusiveRight&&w.inclusiveLeft?fn(Ze.to,b)>=0:fn(Ze.to,b)>0)||Wt>=0&&(be.marker.inclusiveRight&&w.inclusiveLeft?fn(Ze.from,y)<=0:fn(Ze.from,y)<0)))return!0}}}function Ki(s){for(var c;c=Zi(s);)s=c.find(-1,!0).line;return s}function Lr(s){for(var c;c=Ri(s);)s=c.find(1,!0).line;return s}function Wr(s){for(var c,b;c=Ri(s);)s=c.find(1,!0).line,(b||(b=[])).push(s);return b}function eo(s,c){var b=vn(s,c),y=Ki(b);return b==y?c:Ve(y)}function Lo(s,c){if(c>s.lastLine())return c;var b=vn(s,c),y;if(!pi(s,b))return c;for(;y=Ri(b);)b=y.find(1,!0).line;return Ve(b)+1}function pi(s,c){var b=qt&&c.markedSpans;if(b){for(var y=void 0,w=0;w<b.length;++w)if(y=b[w],!!y.marker.collapsed){if(y.from==null)return!0;if(!y.marker.widgetNode&&y.from==0&&y.marker.inclusiveLeft&&pa(s,c,y))return!0}}}function pa(s,c,b){if(b.to==null){var y=b.marker.find(1,!0);return pa(s,y.line,Yr(y.line.markedSpans,b.marker))}if(b.marker.inclusiveRight&&b.to==c.text.length)return!0;for(var w=void 0,H=0;H<c.markedSpans.length;++H)if(w=c.markedSpans[H],w.marker.collapsed&&!w.marker.widgetNode&&w.from==b.to&&(w.to==null||w.to!=b.from)&&(w.marker.inclusiveLeft||b.marker.inclusiveRight)&&pa(s,c,w))return!0}function Uo(s){s=Ki(s);for(var c=0,b=s.parent,y=0;y<b.lines.length;++y){var w=b.lines[y];if(w==s)break;c+=w.height}for(var H=b.parent;H;b=H,H=b.parent)for(var ie=0;ie<H.children.length;++ie){var Se=H.children[ie];if(Se==b)break;c+=Se.height}return c}function oa(s){if(s.height==0)return 0;for(var c=s.text.length,b,y=s;b=Zi(y);){var w=b.find(0,!0);y=w.from.line,c+=w.from.ch-w.to.ch}for(y=s;b=Ri(y);){var H=b.find(0,!0);c-=y.text.length-H.from.ch,y=H.to.line,c+=y.text.length-H.to.ch}return c}function ma(s){var c=s.display,b=s.doc;c.maxLine=vn(b,b.first),c.maxLineLength=oa(c.maxLine),c.maxLineChanged=!0,b.iter(function(y){var w=oa(y);w>c.maxLineLength&&(c.maxLineLength=w,c.maxLine=y)})}var $a=function(s,c,b){this.text=s,he(this,c),this.height=b?b(this):1};$a.prototype.lineNo=function(){return Ve(this)},ze($a);function is(s,c,b,y){s.text=c,s.stateAfter&&(s.stateAfter=null),s.styles&&(s.styles=null),s.order!=null&&(s.order=null),Zn(s),he(s,b);var w=y?y(s):1;w!=s.height&&Nt(s,w)}function ka(s){s.parent=null,Zn(s)}var ss={},Ua={};function Go(s,c){if(!s||/^\s*$/.test(s))return null;var b=c.addModeClass?Ua:ss;return b[s]||(b[s]=s.replace(/\S+/g,"cm-$&"))}function Zt(s,c){var b=Ye("span",null,null,M?"padding-right: .1px":null),y={pre:Ye("pre",[b],"CodeMirror-line"),content:b,col:0,pos:0,cm:s,trailingSpace:!1,splitSpaces:s.getOption("lineWrapping")};c.measure={};for(var w=0;w<=(c.rest?c.rest.length:0);w++){var H=w?c.rest[w-1]:c.line,ie=void 0;y.pos=0,y.addToken=ql,Tr(s.display.measure)&&(ie=pn(H,s.doc.direction))&&(y.addToken=uo(y.addToken,ie)),y.map=[];var Se=c!=s.display.externalMeasured&&Ve(H);go(H,y,Mi(s,H,Se)),H.styleClasses&&(H.styleClasses.bgClass&&(y.bgClass=gt(H.styleClasses.bgClass,y.bgClass||"")),H.styleClasses.textClass&&(y.textClass=gt(H.styleClasses.textClass,y.textClass||""))),y.map.length==0&&y.map.push(0,0,y.content.appendChild(Xi(s.display.measure))),w==0?(c.measure.map=y.map,c.measure.cache={}):((c.measure.maps||(c.measure.maps=[])).push(y.map),(c.measure.caches||(c.measure.caches=[])).push({}))}if(M){var be=y.content.lastChild;(/\bcm-tab\b/.test(be.className)||be.querySelector&&be.querySelector(".cm-tab"))&&(y.content.className="cm-tab-wrap-hack")}return et(s,"renderLine",s,c.line,y.pre),y.pre.className&&(y.textClass=gt(y.pre.className,y.textClass||"")),y}function Pa(s){var c=Je("span","\u2022","cm-invalidchar");return c.title="\\u"+s.charCodeAt(0).toString(16),c.setAttribute("aria-label",c.title),c}function ql(s,c,b,y,w,H,ie){if(c){var Se=s.splitSpaces?nl(c,s.trailingSpace):c,be=s.cm.state.specialChars,Ze=!1,Wt;if(!be.test(c))s.col+=c.length,Wt=document.createTextNode(Se),s.map.push(s.pos,s.pos+c.length,Wt),G&&F<9&&(Ze=!0),s.pos+=c.length;else{Wt=document.createDocumentFragment();for(var st=0;;){be.lastIndex=st;var Tn=be.exec(c),En=Tn?Tn.index-st:c.length-st;if(En){var ci=document.createTextNode(Se.slice(st,st+En));G&&F<9?Wt.appendChild(Je("span",[ci])):Wt.appendChild(ci),s.map.push(s.pos,s.pos+En,ci),s.col+=En,s.pos+=En}if(!Tn)break;st+=En+1;var bi=void 0;if(Tn[0]==" "){var Di=s.cm.options.tabSize,er=Di-s.col%Di;bi=Wt.appendChild(Je("span",ni(er),"cm-tab")),bi.setAttribute("role","presentation"),bi.setAttribute("cm-text"," "),s.col+=er}else Tn[0]=="\r"||Tn[0]==`
`?(bi=Wt.appendChild(Je("span",Tn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),bi.setAttribute("cm-text",Tn[0]),s.col+=1):(bi=s.cm.options.specialCharPlaceholder(Tn[0]),bi.setAttribute("cm-text",Tn[0]),G&&F<9?Wt.appendChild(Je("span",[bi])):Wt.appendChild(bi),s.col+=1);s.map.push(s.pos,s.pos+1,bi),s.pos++}}if(s.trailingSpace=Se.charCodeAt(c.length-1)==32,b||y||w||Ze||H||ie){var Fr=b||"";y&&(Fr+=y),w&&(Fr+=w);var Sr=Je("span",[Wt],Fr,H);if(ie)for(var Gr in ie)ie.hasOwnProperty(Gr)&&Gr!="style"&&Gr!="class"&&Sr.setAttribute(Gr,ie[Gr]);return s.content.appendChild(Sr)}s.content.appendChild(Wt)}}function nl(s,c){if(s.length>1&&!/ /.test(s))return s;for(var b=c,y="",w=0;w<s.length;w++){var H=s.charAt(w);H==" "&&b&&(w==s.length-1||s.charCodeAt(w+1)==32)&&(H="\xA0"),y+=H,b=H==" "}return y}function uo(s,c){return function(b,y,w,H,ie,Se,be){w=w?w+" cm-force-border":"cm-force-border";for(var Ze=b.pos,Wt=Ze+y.length;;){for(var st=void 0,Tn=0;Tn<c.length&&(st=c[Tn],!(st.to>Ze&&st.from<=Ze));Tn++);if(st.to>=Wt)return s(b,y,w,H,ie,Se,be);s(b,y.slice(0,st.to-Ze),w,H,null,Se,be),H=null,y=y.slice(st.to-Ze),Ze=st.to}}}function No(s,c,b,y){var w=!y&&b.widgetNode;w&&s.map.push(s.pos,s.pos+c,w),!y&&s.cm.display.input.needsContentAttribute&&(w||(w=s.content.appendChild(document.createElement("span"))),w.setAttribute("cm-marker",b.id)),w&&(s.cm.display.input.setUneditable(w),s.content.appendChild(w)),s.pos+=c,s.trailingSpace=!1}function go(s,c,b){var y=s.markedSpans,w=s.text,H=0;if(!y){for(var ie=1;ie<b.length;ie+=2)c.addToken(c,w.slice(H,H=b[ie]),Go(b[ie+1],c.cm.options));return}for(var Se=w.length,be=0,Ze=1,Wt="",st,Tn,En=0,ci,bi,Di,er,Fr;;){if(En==be){ci=bi=Di=Tn="",Fr=null,er=null,En=1/0;for(var Sr=[],Gr=void 0,mo=0;mo<y.length;++mo){var yr=y[mo],zo=yr.marker;if(zo.type=="bookmark"&&yr.from==be&&zo.widgetNode)Sr.push(zo);else if(yr.from<=be&&(yr.to==null||yr.to>be||zo.collapsed&&yr.to==be&&yr.from==be)){if(yr.to!=null&&yr.to!=be&&En>yr.to&&(En=yr.to,bi=""),zo.className&&(ci+=" "+zo.className),zo.css&&(Tn=(Tn?Tn+";":"")+zo.css),zo.startStyle&&yr.from==be&&(Di+=" "+zo.startStyle),zo.endStyle&&yr.to==En&&(Gr||(Gr=[])).push(zo.endStyle,yr.to),zo.title&&((Fr||(Fr={})).title=zo.title),zo.attributes)for(var cs in zo.attributes)(Fr||(Fr={}))[cs]=zo.attributes[cs];zo.collapsed&&(!er||cr(er.marker,zo)<0)&&(er=yr)}else yr.from>be&&En>yr.from&&(En=yr.from)}if(Gr)for(var ll=0;ll<Gr.length;ll+=2)Gr[ll+1]==En&&(bi+=" "+Gr[ll]);if(!er||er.from==be)for(var bs=0;bs<Sr.length;++bs)No(c,0,Sr[bs]);if(er&&(er.from||0)==be){if(No(c,(er.to==null?Se+1:er.to)-be,er.marker,er.from==null),er.to==null)return;er.to==be&&(er=!1)}}if(be>=Se)break;for(var yu=Math.min(Se,En);;){if(Wt){var Kl=be+Wt.length;if(!er){var qs=Kl>yu?Wt.slice(0,yu-be):Wt;c.addToken(c,qs,st?st+ci:ci,Di,be+qs.length==En?bi:"",Tn,Fr)}if(Kl>=yu){Wt=Wt.slice(yu-be),be=yu;break}be=Kl,Di=""}Wt=w.slice(H,H=b[Ze++]),st=Go(b[Ze++],c.cm.options)}}}function Ot(s,c,b){this.line=c,this.rest=Wr(c),this.size=this.rest?Ve(Jn(this.rest))-b+1:1,this.node=this.text=null,this.hidden=pi(s,c)}function Pr(s,c,b){for(var y=[],w,H=c;H<b;H=w){var ie=new Ot(s.doc,vn(s.doc,H),H);w=H+ie.size,y.push(ie)}return y}var co=null;function xa(s){co?co.ops.push(s):s.ownsGroup=co={ops:[s],delayedCallbacks:[]}}function xr(s){var c=s.delayedCallbacks,b=0;do{for(;b<c.length;b++)c[b].call(null);for(var y=0;y<s.ops.length;y++){var w=s.ops[y];if(w.cursorActivityHandlers)for(;w.cursorActivityCalled<w.cursorActivityHandlers.length;)w.cursorActivityHandlers[w.cursorActivityCalled++].call(null,w.cm)}}while(b<c.length)}function wn(s,c){var b=s.ownsGroup;if(b)try{xr(b)}finally{co=null,c(b)}}var ar=null;function mi(s,c){var b=hn(s,c);if(b.length){var y=Array.prototype.slice.call(arguments,2),w;co?w=co.delayedCallbacks:ar?w=ar:(w=ar=[],setTimeout(Wo,0));for(var H=function(Se){w.push(function(){return b[Se].apply(null,y)})},ie=0;ie<b.length;++ie)H(ie)}}function Wo(){var s=ar;ar=null;for(var c=0;c<s.length;++c)s[c]()}function ga(s,c,b,y){for(var w=0;w<c.changes.length;w++){var H=c.changes[w];H=="text"?ai(s,c):H=="gutter"?Jo(s,c,b,y):H=="class"?Ui(s,c):H=="widget"&&Es(s,c,y)}c.changes=null}function Ja(s){return s.node==s.text&&(s.node=Je("div",null,null,"position: relative"),s.text.parentNode&&s.text.parentNode.replaceChild(s.node,s.text),s.node.appendChild(s.text),G&&F<8&&(s.node.style.zIndex=2)),s.node}function Ms(s,c){var b=c.bgClass?c.bgClass+" "+(c.line.bgClass||""):c.line.bgClass;if(b&&(b+=" CodeMirror-linebackground"),c.background)b?c.background.className=b:(c.background.parentNode.removeChild(c.background),c.background=null);else if(b){var y=Ja(c);c.background=y.insertBefore(Je("div",null,b),y.firstChild),s.display.input.setUneditable(c.background)}}function Ss(s,c){var b=s.display.externalMeasured;return b&&b.line==c.line?(s.display.externalMeasured=null,c.measure=b.measure,b.built):Zt(s,c)}function ai(s,c){var b=c.text.className,y=Ss(s,c);c.text==c.node&&(c.node=y.pre),c.text.parentNode.replaceChild(y.pre,c.text),c.text=y.pre,y.bgClass!=c.bgClass||y.textClass!=c.textClass?(c.bgClass=y.bgClass,c.textClass=y.textClass,Ui(s,c)):b&&(c.text.className=b)}function Ui(s,c){Ms(s,c),c.line.wrapClass?Ja(c).className=c.line.wrapClass:c.node!=c.text&&(c.node.className="");var b=c.textClass?c.textClass+" "+(c.line.textClass||""):c.line.textClass;c.text.className=b||""}function Jo(s,c,b,y){if(c.gutter&&(c.node.removeChild(c.gutter),c.gutter=null),c.gutterBackground&&(c.node.removeChild(c.gutterBackground),c.gutterBackground=null),c.line.gutterClass){var w=Ja(c);c.gutterBackground=Je("div",null,"CodeMirror-gutter-background "+c.line.gutterClass,"left: "+(s.options.fixedGutter?y.fixedPos:-y.gutterTotalWidth)+"px; width: "+y.gutterTotalWidth+"px"),s.display.input.setUneditable(c.gutterBackground),w.insertBefore(c.gutterBackground,c.text)}var H=c.line.gutterMarkers;if(s.options.lineNumbers||H){var ie=Ja(c),Se=c.gutter=Je("div",null,"CodeMirror-gutter-wrapper","left: "+(s.options.fixedGutter?y.fixedPos:-y.gutterTotalWidth)+"px");if(s.display.input.setUneditable(Se),ie.insertBefore(Se,c.text),c.line.gutterClass&&(Se.className+=" "+c.line.gutterClass),s.options.lineNumbers&&(!H||!H["CodeMirror-linenumbers"])&&(c.lineNumber=Se.appendChild(Je("div",Wn(s.options,b),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+y.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+s.display.lineNumInnerWidth+"px"))),H)for(var be=0;be<s.display.gutterSpecs.length;++be){var Ze=s.display.gutterSpecs[be].className,Wt=H.hasOwnProperty(Ze)&&H[Ze];Wt&&Se.appendChild(Je("div",[Wt],"CodeMirror-gutter-elt","left: "+y.gutterLeft[Ze]+"px; width: "+y.gutterWidth[Ze]+"px"))}}}function Es(s,c,b){c.alignable&&(c.alignable=null);for(var y=ee("CodeMirror-linewidget"),w=c.node.firstChild,H=void 0;w;w=H)H=w.nextSibling,y.test(w.className)&&c.node.removeChild(w);rs(s,c,b)}function Vo(s,c,b,y){var w=Ss(s,c);return c.text=c.node=w.pre,w.bgClass&&(c.bgClass=w.bgClass),w.textClass&&(c.textClass=w.textClass),Ui(s,c),Jo(s,c,b,y),rs(s,c,y),c.node}function rs(s,c,b){if(Rr(s,c.line,c,b,!0),c.rest)for(var y=0;y<c.rest.length;y++)Rr(s,c.rest[y],c,b,!1)}function Rr(s,c,b,y,w){if(c.widgets)for(var H=Ja(b),ie=0,Se=c.widgets;ie<Se.length;++ie){var be=Se[ie],Ze=Je("div",[be.node],"CodeMirror-linewidget"+(be.className?" "+be.className:""));be.handleMouseEvents||Ze.setAttribute("cm-ignore-events","true"),dl(be,Ze,b,y),s.display.input.setUneditable(Ze),w&&be.above?H.insertBefore(Ze,b.gutter||b.text):H.appendChild(Ze),mi(be,"redraw")}}function dl(s,c,b,y){if(s.noHScroll){(b.alignable||(b.alignable=[])).push(c);var w=y.wrapperWidth;c.style.left=y.fixedPos+"px",s.coverGutter||(w-=y.gutterTotalWidth,c.style.paddingLeft=y.gutterTotalWidth+"px"),c.style.width=w+"px"}s.coverGutter&&(c.style.zIndex=5,c.style.position="relative",s.noHScroll||(c.style.marginLeft=-y.gutterTotalWidth+"px"))}function ws(s){if(s.height!=null)return s.height;var c=s.doc.cm;if(!c)return 0;if(!at(document.body,s.node)){var b="position: relative;";s.coverGutter&&(b+="margin-left: -"+c.display.gutters.offsetWidth+"px;"),s.noHScroll&&(b+="width: "+c.display.wrapper.clientWidth+"px;"),Le(c.display.measure,Je("div",[s.node],null,b))}return s.height=s.node.parentNode.offsetHeight}function Os(s,c){for(var b=_i(c);b!=s.wrapper;b=b.parentNode)if(!b||b.nodeType==1&&b.getAttribute("cm-ignore-events")=="true"||b.parentNode==s.sizer&&b!=s.mover)return!0}function Bo(s){return s.lineSpace.offsetTop}function Ia(s){return s.mover.offsetHeight-s.lineSpace.offsetHeight}function fl(s){if(s.cachedPaddingH)return s.cachedPaddingH;var c=Le(s.measure,Je("pre","x","CodeMirror-line-like")),b=window.getComputedStyle?window.getComputedStyle(c):c.currentStyle,y={left:parseInt(b.paddingLeft),right:parseInt(b.paddingRight)};return!isNaN(y.left)&&!isNaN(y.right)&&(s.cachedPaddingH=y),y}function ja(s){return Ht-s.display.nativeBarWidth}function qa(s){return s.display.scroller.clientWidth-ja(s)-s.display.barWidth}function Rl(s){return s.display.scroller.clientHeight-ja(s)-s.display.barHeight}function _o(s,c,b){var y=s.options.lineWrapping,w=y&&qa(s);if(!c.measure.heights||y&&c.measure.width!=w){var H=c.measure.heights=[];if(y){c.measure.width=w;for(var ie=c.text.firstChild.getClientRects(),Se=0;Se<ie.length-1;Se++){var be=ie[Se],Ze=ie[Se+1];Math.abs(be.bottom-Ze.bottom)>2&&H.push((be.bottom+Ze.top)/2-b.top)}}H.push(b.bottom-b.top)}}function il(s,c,b){if(s.line==c)return{map:s.measure.map,cache:s.measure.cache};for(var y=0;y<s.rest.length;y++)if(s.rest[y]==c)return{map:s.measure.maps[y],cache:s.measure.caches[y]};for(var w=0;w<s.rest.length;w++)if(Ve(s.rest[w])>b)return{map:s.measure.maps[w],cache:s.measure.caches[w],before:!0}}function rl(s,c){c=Ki(c);var b=Ve(c),y=s.display.externalMeasured=new Ot(s.doc,c,b);y.lineN=b;var w=y.built=Zt(s,y);return y.text=w.pre,Le(s.display.lineMeasure,w.pre),y}function hu(s,c,b,y){return _s(s,os(s,c),b,y)}function Ga(s,c){if(c>=s.display.viewFrom&&c<s.display.viewTo)return s.display.view[as(s,c)];var b=s.display.externalMeasured;if(b&&c>=b.lineN&&c<b.lineN+b.size)return b}function os(s,c){var b=Ve(c),y=Ga(s,b);y&&!y.text?y=null:y&&y.changes&&(ga(s,y,b,Xu(s)),s.curOp.forceUpdate=!0),y||(y=rl(s,c));var w=il(y,c,b);return{line:c,view:y,rect:null,map:w.map,cache:w.cache,before:w.before,hasHeights:!1}}function _s(s,c,b,y,w){c.before&&(b=-1);var H=b+(y||""),ie;return c.cache.hasOwnProperty(H)?ie=c.cache[H]:(c.rect||(c.rect=c.view.text.getBoundingClientRect()),c.hasHeights||(_o(s,c.view,c.rect),c.hasHeights=!0),ie=Kr(s,c,b,y),ie.bogus||(c.cache[H]=ie)),{left:ie.left,right:ie.right,top:w?ie.rtop:ie.top,bottom:w?ie.rbottom:ie.bottom}}var Vi={left:0,right:0,top:0,bottom:0};function Cs(s,c,b){for(var y,w,H,ie,Se,be,Ze=0;Ze<s.length;Ze+=3)if(Se=s[Ze],be=s[Ze+1],c<Se?(w=0,H=1,ie="left"):c<be?(w=c-Se,H=w+1):(Ze==s.length-3||c==be&&s[Ze+3]>c)&&(H=be-Se,w=H-1,c>=be&&(ie="right")),w!=null){if(y=s[Ze+2],Se==be&&b==(y.insertLeft?"left":"right")&&(ie=b),b=="left"&&w==0)for(;Ze&&s[Ze-2]==s[Ze-3]&&s[Ze-1].insertLeft;)y=s[(Ze-=3)+2],ie="left";if(b=="right"&&w==be-Se)for(;Ze<s.length-3&&s[Ze+3]==s[Ze+4]&&!s[Ze+5].insertLeft;)y=s[(Ze+=3)+2],ie="right";break}return{node:y,start:w,end:H,collapse:ie,coverStart:Se,coverEnd:be}}function jl(s,c){var b=Vi;if(c=="left")for(var y=0;y<s.length&&(b=s[y]).left==b.right;y++);else for(var w=s.length-1;w>=0&&(b=s[w]).left==b.right;w--);return b}function Kr(s,c,b,y){var w=Cs(c.map,b,y),H=w.node,ie=w.start,Se=w.end,be=w.collapse,Ze;if(H.nodeType==3){for(var Wt=0;Wt<4;Wt++){for(;ie&&It(c.line.text.charAt(w.coverStart+ie));)--ie;for(;w.coverStart+Se<w.coverEnd&&It(c.line.text.charAt(w.coverStart+Se));)++Se;if(G&&F<9&&ie==0&&Se==w.coverEnd-w.coverStart?Ze=H.parentNode.getBoundingClientRect():Ze=jl(ne(H,ie,Se).getClientRects(),y),Ze.left||Ze.right||ie==0)break;Se=ie,ie=ie-1,be="right"}G&&F<11&&(Ze=wo(s.display.measure,Ze))}else{ie>0&&(be=y="right");var st;s.options.lineWrapping&&(st=H.getClientRects()).length>1?Ze=st[y=="right"?st.length-1:0]:Ze=H.getBoundingClientRect()}if(G&&F<9&&!ie&&(!Ze||!Ze.left&&!Ze.right)){var Tn=H.parentNode.getClientRects()[0];Tn?Ze={left:Tn.left,right:Tn.left+gl(s.display),top:Tn.top,bottom:Tn.bottom}:Ze=Vi}for(var En=Ze.top-c.rect.top,ci=Ze.bottom-c.rect.top,bi=(En+ci)/2,Di=c.view.measure.heights,er=0;er<Di.length-1&&!(bi<Di[er]);er++);var Fr=er?Di[er-1]:0,Sr=Di[er],Gr={left:(be=="right"?Ze.right:Ze.left)-c.rect.left,right:(be=="left"?Ze.left:Ze.right)-c.rect.left,top:Fr,bottom:Sr};return!Ze.left&&!Ze.right&&(Gr.bogus=!0),s.options.singleCursorHeightPerLine||(Gr.rtop=En,Gr.rbottom=ci),Gr}function wo(s,c){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!wr(s))return c;var b=screen.logicalXDPI/screen.deviceXDPI,y=screen.logicalYDPI/screen.deviceYDPI;return{left:c.left*b,right:c.right*b,top:c.top*y,bottom:c.bottom*y}}function ha(s){if(s.measure&&(s.measure.cache={},s.measure.heights=null,s.rest))for(var c=0;c<s.rest.length;c++)s.measure.caches[c]={}}function aa(s){s.display.externalMeasure=null,Me(s.display.lineMeasure);for(var c=0;c<s.display.view.length;c++)ha(s.display.view[c])}function ro(s){aa(s),s.display.cachedCharWidth=s.display.cachedTextHeight=s.display.cachedPaddingH=null,s.options.lineWrapping||(s.display.maxLineChanged=!0),s.display.lineNumChars=null}function ia(){return ae&&Ce?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function va(){return ae&&Ce?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Ma(s){var c=0;if(s.widgets)for(var b=0;b<s.widgets.length;++b)s.widgets[b].above&&(c+=ws(s.widgets[b]));return c}function Oa(s,c,b,y,w){if(!w){var H=Ma(c);b.top+=H,b.bottom+=H}if(y=="line")return b;y||(y="local");var ie=Uo(c);if(y=="local"?ie+=Bo(s.display):ie-=s.display.viewOffset,y=="page"||y=="window"){var Se=s.display.lineSpace.getBoundingClientRect();ie+=Se.top+(y=="window"?0:va());var be=Se.left+(y=="window"?0:ia());b.left+=be,b.right+=be}return b.top+=ie,b.bottom+=ie,b}function Gl(s,c,b){if(b=="div")return c;var y=c.left,w=c.top;if(b=="page")y-=ia(),w-=va();else if(b=="local"||!b){var H=s.display.sizer.getBoundingClientRect();y+=H.left,w+=H.top}var ie=s.display.lineSpace.getBoundingClientRect();return{left:y-ie.left,top:w-ie.top}}function Vs(s,c,b,y,w){return y||(y=vn(s.doc,c.line)),Oa(s,y,hu(s,y,c.ch,w),b)}function wa(s,c,b,y,w,H){y=y||vn(s.doc,c.line),w||(w=os(s,y));function ie(ci,bi){var Di=_s(s,w,ci,bi?"right":"left",H);return bi?Di.left=Di.right:Di.right=Di.left,Oa(s,y,Di,b)}var Se=pn(y,s.doc.direction),be=c.ch,Ze=c.sticky;if(be>=y.text.length?(be=y.text.length,Ze="before"):be<=0&&(be=0,Ze="after"),!Se)return ie(Ze=="before"?be-1:be,Ze=="before");function Wt(ci,bi,Di){var er=Se[bi],Fr=er.level==1;return ie(Di?ci-1:ci,Fr!=Di)}var st=tt(Se,be,Ze),Tn=ut,En=Wt(be,st,Ze=="before");return Tn!=null&&(En.other=Wt(be,Tn,Ze!="before")),En}function hc(s,c){var b=0;c=mt(s.doc,c),s.options.lineWrapping||(b=gl(s.display)*c.ch);var y=vn(s.doc,c.line),w=Uo(y)+Bo(s.display);return{left:b,right:b,top:w,bottom:w+y.height}}function zu(s,c,b,y,w){var H=ot(s,c,b);return H.xRel=w,y&&(H.outside=y),H}function du(s,c,b){var y=s.doc;if(b+=s.display.viewOffset,b<0)return zu(y.first,0,null,-1,-1);var w=Ut(y,b),H=y.first+y.size-1;if(w>H)return zu(y.first+y.size-1,vn(y,H).text.length,null,1,1);c<0&&(c=0);for(var ie=vn(y,w);;){var Se=Dn(s,ie,w,c,b),be=Ai(ie,Se.ch+(Se.xRel>0||Se.outside>0?1:0));if(!be)return Se;var Ze=be.find(1);if(Ze.line==w)return Ze;ie=vn(y,w=Ze.line)}}function nr(s,c,b,y){y-=Ma(c);var w=c.text.length,H=Pe(function(ie){return _s(s,b,ie-1).bottom<=y},w,0);return w=Pe(function(ie){return _s(s,b,ie).top>y},H,w),{begin:H,end:w}}function Ks(s,c,b,y){b||(b=os(s,c));var w=Oa(s,c,_s(s,b,y),"line").top;return nr(s,c,b,w)}function qe(s,c,b,y){return s.bottom<=b?!1:s.top>b?!0:(y?s.left:s.right)>c}function Dn(s,c,b,y,w){w-=Uo(c);var H=os(s,c),ie=Ma(c),Se=0,be=c.text.length,Ze=!0,Wt=pn(c,s.doc.direction);if(Wt){var st=(s.options.lineWrapping?Yu:Cu)(s,c,b,H,Wt,y,w);Ze=st.level!=1,Se=Ze?st.from:st.to-1,be=Ze?st.to:st.from-1}var Tn=null,En=null,ci=Pe(function(mo){var yr=_s(s,H,mo);return yr.top+=ie,yr.bottom+=ie,qe(yr,y,w,!1)?(yr.top<=w&&yr.left<=y&&(Tn=mo,En=yr),!0):!1},Se,be),bi,Di,er=!1;if(En){var Fr=y-En.left<En.right-y,Sr=Fr==Ze;ci=Tn+(Sr?0:1),Di=Sr?"after":"before",bi=Fr?En.left:En.right}else{!Ze&&(ci==be||ci==Se)&&ci++,Di=ci==0?"after":ci==c.text.length?"before":_s(s,H,ci-(Ze?1:0)).bottom+ie<=w==Ze?"after":"before";var Gr=wa(s,ot(b,ci,Di),"line",c,H);bi=Gr.left,er=w<Gr.top?-1:w>=Gr.bottom?1:0}return ci=$e(c.text,ci,1),zu(b,ci,Di,er,y-bi)}function Cu(s,c,b,y,w,H,ie){var Se=Pe(function(st){var Tn=w[st],En=Tn.level!=1;return qe(wa(s,ot(b,En?Tn.to:Tn.from,En?"before":"after"),"line",c,y),H,ie,!0)},0,w.length-1),be=w[Se];if(Se>0){var Ze=be.level!=1,Wt=wa(s,ot(b,Ze?be.from:be.to,Ze?"after":"before"),"line",c,y);qe(Wt,H,ie,!0)&&Wt.top>ie&&(be=w[Se-1])}return be}function Yu(s,c,b,y,w,H,ie){var Se=nr(s,c,y,ie),be=Se.begin,Ze=Se.end;/\s/.test(c.text.charAt(Ze-1))&&Ze--;for(var Wt=null,st=null,Tn=0;Tn<w.length;Tn++){var En=w[Tn];if(!(En.from>=Ze||En.to<=be)){var ci=En.level!=1,bi=_s(s,y,ci?Math.min(Ze,En.to)-1:Math.max(be,En.from)).right,Di=bi<H?H-bi+1e9:bi-H;(!Wt||st>Di)&&(Wt=En,st=Di)}}return Wt||(Wt=w[w.length-1]),Wt.from<be&&(Wt={from:be,to:Wt.to,level:Wt.level}),Wt.to>Ze&&(Wt={from:Wt.from,to:Ze,level:Wt.level}),Wt}var pl;function ml(s){if(s.cachedTextHeight!=null)return s.cachedTextHeight;if(pl==null){pl=Je("pre",null,"CodeMirror-line-like");for(var c=0;c<49;++c)pl.appendChild(document.createTextNode("x")),pl.appendChild(Je("br"));pl.appendChild(document.createTextNode("x"))}Le(s.measure,pl);var b=pl.offsetHeight/50;return b>3&&(s.cachedTextHeight=b),Me(s.measure),b||1}function gl(s){if(s.cachedCharWidth!=null)return s.cachedCharWidth;var c=Je("span","xxxxxxxxxx"),b=Je("pre",[c],"CodeMirror-line-like");Le(s.measure,b);var y=c.getBoundingClientRect(),w=(y.right-y.left)/10;return w>2&&(s.cachedCharWidth=w),w||10}function Xu(s){for(var c=s.display,b={},y={},w=c.gutters.clientLeft,H=c.gutters.firstChild,ie=0;H;H=H.nextSibling,++ie){var Se=s.display.gutterSpecs[ie].className;b[Se]=H.offsetLeft+H.clientLeft+w,y[Se]=H.clientWidth}return{fixedPos:Tu(c),gutterTotalWidth:c.gutters.offsetWidth,gutterLeft:b,gutterWidth:y,wrapperWidth:c.wrapper.clientWidth}}function Tu(s){return s.scroller.getBoundingClientRect().left-s.sizer.getBoundingClientRect().left}function Ca(s){var c=ml(s.display),b=s.options.lineWrapping,y=b&&Math.max(5,s.display.scroller.clientWidth/gl(s.display)-3);return function(w){if(pi(s.doc,w))return 0;var H=0;if(w.widgets)for(var ie=0;ie<w.widgets.length;ie++)w.widgets[ie].height&&(H+=w.widgets[ie].height);return b?H+(Math.ceil(w.text.length/y)||1)*c:H+c}}function Dr(s){var c=s.doc,b=Ca(s);c.iter(function(y){var w=b(y);w!=y.height&&Nt(y,w)})}function fs(s,c,b,y){var w=s.display;if(!b&&_i(c).getAttribute("cm-not-content")=="true")return null;var H,ie,Se=w.lineSpace.getBoundingClientRect();try{H=c.clientX-Se.left,ie=c.clientY-Se.top}catch(st){return null}var be=du(s,H,ie),Ze;if(y&&be.xRel>0&&(Ze=vn(s.doc,be.line).text).length==be.ch){var Wt=Qe(Ze,Ze.length,s.options.tabSize)-Ze.length;be=ot(be.line,Math.max(0,Math.round((H-fl(s.display).left)/gl(s.display))-Wt))}return be}function as(s,c){if(c>=s.display.viewTo||(c-=s.display.viewFrom,c<0))return null;for(var b=s.display.view,y=0;y<b.length;y++)if(c-=b[y].size,c<0)return y}function Eo(s,c,b,y){c==null&&(c=s.doc.first),b==null&&(b=s.doc.first+s.doc.size),y||(y=0);var w=s.display;if(y&&b<w.viewTo&&(w.updateLineNumbers==null||w.updateLineNumbers>c)&&(w.updateLineNumbers=c),s.curOp.viewChanged=!0,c>=w.viewTo)qt&&eo(s.doc,c)<w.viewTo&&Wa(s);else if(b<=w.viewFrom)qt&&Lo(s.doc,b+y)>w.viewFrom?Wa(s):(w.viewFrom+=y,w.viewTo+=y);else if(c<=w.viewFrom&&b>=w.viewTo)Wa(s);else if(c<=w.viewFrom){var H=js(s,b,b+y,1);H?(w.view=w.view.slice(H.index),w.viewFrom=H.lineN,w.viewTo+=y):Wa(s)}else if(b>=w.viewTo){var ie=js(s,c,c,-1);ie?(w.view=w.view.slice(0,ie.index),w.viewTo=ie.lineN):Wa(s)}else{var Se=js(s,c,c,-1),be=js(s,b,b+y,1);Se&&be?(w.view=w.view.slice(0,Se.index).concat(Pr(s,Se.lineN,be.lineN)).concat(w.view.slice(be.index)),w.viewTo+=y):Wa(s)}var Ze=w.externalMeasured;Ze&&(b<Ze.lineN?Ze.lineN+=y:c<Ze.lineN+Ze.size&&(w.externalMeasured=null))}function vo(s,c,b){s.curOp.viewChanged=!0;var y=s.display,w=s.display.externalMeasured;if(w&&c>=w.lineN&&c<w.lineN+w.size&&(y.externalMeasured=null),!(c<y.viewFrom||c>=y.viewTo)){var H=y.view[as(s,c)];if(H.node!=null){var ie=H.changes||(H.changes=[]);ce(ie,b)==-1&&ie.push(b)}}}function Wa(s){s.display.viewFrom=s.display.viewTo=s.doc.first,s.display.view=[],s.display.viewOffset=0}function js(s,c,b,y){var w=as(s,c),H,ie=s.display.view;if(!qt||b==s.doc.first+s.doc.size)return{index:w,lineN:b};for(var Se=s.display.viewFrom,be=0;be<w;be++)Se+=ie[be].size;if(Se!=c){if(y>0){if(w==ie.length-1)return null;H=Se+ie[w].size-c,w++}else H=Se-c;c+=H,b+=H}for(;eo(s.doc,b)!=b;){if(w==(y<0?0:ie.length-1))return null;b+=y*ie[w-(y<0?1:0)].size,w+=y}return{index:w,lineN:b}}function sa(s,c,b){var y=s.display,w=y.view;w.length==0||c>=y.viewTo||b<=y.viewFrom?(y.view=Pr(s,c,b),y.viewFrom=c):(y.viewFrom>c?y.view=Pr(s,c,y.viewFrom).concat(y.view):y.viewFrom<c&&(y.view=y.view.slice(as(s,c))),y.viewFrom=c,y.viewTo<b?y.view=y.view.concat(Pr(s,y.viewTo,b)):y.viewTo>b&&(y.view=y.view.slice(0,as(s,b)))),y.viewTo=b}function Gs(s){for(var c=s.display.view,b=0,y=0;y<c.length;y++){var w=c[y];!w.hidden&&(!w.node||w.changes)&&++b}return b}function Va(s){s.display.input.showSelection(s.display.input.prepareSelection())}function eu(s,c){c===void 0&&(c=!0);for(var b=s.doc,y={},w=y.cursors=document.createDocumentFragment(),H=y.selection=document.createDocumentFragment(),ie=0;ie<b.sel.ranges.length;ie++)if(!(!c&&ie==b.sel.primIndex)){var Se=b.sel.ranges[ie];if(!(Se.from().line>=s.display.viewTo||Se.to().line<s.display.viewFrom)){var be=Se.empty();(be||s.options.showCursorWhenSelecting)&&Ro(s,Se.head,w),be||So(s,Se,H)}}return y}function Ro(s,c,b){var y=wa(s,c,"div",null,null,!s.options.singleCursorHeightPerLine),w=b.appendChild(Je("div","\xA0","CodeMirror-cursor"));if(w.style.left=y.left+"px",w.style.top=y.top+"px",w.style.height=Math.max(0,y.bottom-y.top)*s.options.cursorHeight+"px",y.other){var H=b.appendChild(Je("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));H.style.display="",H.style.left=y.other.left+"px",H.style.top=y.other.top+"px",H.style.height=(y.other.bottom-y.other.top)*.85+"px"}}function vs(s,c){return s.top-c.top||s.left-c.left}function So(s,c,b){var y=s.display,w=s.doc,H=document.createDocumentFragment(),ie=fl(s.display),Se=ie.left,be=Math.max(y.sizerWidth,qa(s)-y.sizer.offsetLeft)-ie.right,Ze=w.direction=="ltr";function Wt(Sr,Gr,mo,yr){Gr<0&&(Gr=0),Gr=Math.round(Gr),yr=Math.round(yr),H.appendChild(Je("div",null,"CodeMirror-selected","position: absolute; left: "+Sr+`px;
top: `+Gr+"px; width: "+(mo==null?be-Sr:mo)+`px;
height: `+(yr-Gr)+"px"))}function st(Sr,Gr,mo){var yr=vn(w,Sr),zo=yr.text.length,cs,ll;function bs(qs,Mu){return Vs(s,ot(Sr,qs),"div",yr,Mu)}function yu(qs,Mu,Bl){var el=Ks(s,yr,null,qs),Aa=Mu=="ltr"==(Bl=="after")?"left":"right",As=Bl=="after"?el.begin:el.end-(/\s/.test(yr.text.charAt(el.end-1))?2:1);return bs(As,Aa)[Aa]}var Kl=pn(yr,w.direction);return vt(Kl,Gr||0,mo==null?zo:mo,function(qs,Mu,Bl,el){var Aa=Bl=="ltr",As=bs(qs,Aa?"left":"right"),El=bs(Mu-1,Aa?"right":"left"),_l=Gr==null&&qs==0,fc=mo==null&&Mu==zo,xs=el==0,nc=!Kl||el==Kl.length-1;if(El.top-As.top<=3){var Bs=(Ze?_l:fc)&&xs,zd=(Ze?fc:_l)&&nc,Hu=Bs?Se:(Aa?As:El).left,Ou=zd?be:(Aa?El:As).right;Wt(Hu,As.top,Ou-Hu,As.bottom)}else{var bu,Ya,wl,Fc;Aa?(bu=Ze&&_l&&xs?Se:As.left,Ya=Ze?be:yu(qs,Bl,"before"),wl=Ze?Se:yu(Mu,Bl,"after"),Fc=Ze&&fc&&nc?be:El.right):(bu=Ze?yu(qs,Bl,"before"):Se,Ya=!Ze&&_l&&xs?be:As.right,wl=!Ze&&fc&&nc?Se:El.left,Fc=Ze?yu(Mu,Bl,"after"):be),Wt(bu,As.top,Ya-bu,As.bottom),As.bottom<El.top&&Wt(Se,As.bottom,null,El.top),Wt(wl,El.top,Fc-wl,El.bottom)}(!cs||vs(As,cs)<0)&&(cs=As),vs(El,cs)<0&&(cs=El),(!ll||vs(As,ll)<0)&&(ll=As),vs(El,ll)<0&&(ll=El)}),{start:cs,end:ll}}var Tn=c.from(),En=c.to();if(Tn.line==En.line)st(Tn.line,Tn.ch,En.ch);else{var ci=vn(w,Tn.line),bi=vn(w,En.line),Di=Ki(ci)==Ki(bi),er=st(Tn.line,Tn.ch,Di?ci.text.length+1:null).end,Fr=st(En.line,Di?0:null,En.ch).start;Di&&(er.top<Fr.top-2?(Wt(er.right,er.top,null,er.bottom),Wt(Se,Fr.top,Fr.left,Fr.bottom)):Wt(er.right,er.top,Fr.left-er.right,er.bottom)),er.bottom<Fr.top&&Wt(Se,er.bottom,null,Fr.top)}b.appendChild(H)}function Ko(s){if(s.state.focused){var c=s.display;clearInterval(c.blinker);var b=!0;c.cursorDiv.style.visibility="",s.options.cursorBlinkRate>0?c.blinker=setInterval(function(){s.hasFocus()||fu(s),c.cursorDiv.style.visibility=(b=!b)?"":"hidden"},s.options.cursorBlinkRate):s.options.cursorBlinkRate<0&&(c.cursorDiv.style.visibility="hidden")}}function la(s){s.state.focused||(s.display.input.focus(),yo(s))}function La(s){s.state.delayingBlurEvent=!0,setTimeout(function(){s.state.delayingBlurEvent&&(s.state.delayingBlurEvent=!1,fu(s))},100)}function yo(s,c){s.state.delayingBlurEvent&&(s.state.delayingBlurEvent=!1),s.options.readOnly!="nocursor"&&(s.state.focused||(et(s,"focus",s,c),s.state.focused=!0,Pt(s.display.wrapper,"CodeMirror-focused"),!s.curOp&&s.display.selForContextMenu!=s.doc.sel&&(s.display.input.reset(),M&&setTimeout(function(){return s.display.input.reset(!0)},20)),s.display.input.receivedFocus()),Ko(s))}function fu(s,c){s.state.delayingBlurEvent||(s.state.focused&&(et(s,"blur",s,c),s.state.focused=!1,Te(s.display.wrapper,"CodeMirror-focused")),clearInterval(s.display.blinker),setTimeout(function(){s.state.focused||(s.display.shift=!1)},150))}function Ir(s){for(var c=s.display,b=c.lineDiv.offsetTop,y=0;y<c.view.length;y++){var w=c.view[y],H=s.options.lineWrapping,ie=void 0,Se=0;if(!w.hidden){if(G&&F<8){var be=w.node.offsetTop+w.node.offsetHeight;ie=be-b,b=be}else{var Ze=w.node.getBoundingClientRect();ie=Ze.bottom-Ze.top,!H&&w.text.firstChild&&(Se=w.text.firstChild.getBoundingClientRect().right-Ze.left-1)}var Wt=w.line.height-ie;if((Wt>.005||Wt<-.005)&&(Nt(w.line,ie),dc(w.line),w.rest))for(var st=0;st<w.rest.length;st++)dc(w.rest[st]);if(Se>s.display.sizerWidth){var Tn=Math.ceil(Se/gl(s.display));Tn>s.display.maxLineLength&&(s.display.maxLineLength=Tn,s.display.maxLine=w.line,s.display.maxLineChanged=!0)}}}}function dc(s){if(s.widgets)for(var c=0;c<s.widgets.length;++c){var b=s.widgets[c],y=b.node.parentNode;y&&(b.height=y.offsetHeight)}}function Co(s,c,b){var y=b&&b.top!=null?Math.max(0,b.top):s.scroller.scrollTop;y=Math.floor(y-Bo(s));var w=b&&b.bottom!=null?b.bottom:y+s.wrapper.clientHeight,H=Ut(c,y),ie=Ut(c,w);if(b&&b.ensure){var Se=b.ensure.from.line,be=b.ensure.to.line;Se<H?(H=Se,ie=Ut(c,Uo(vn(c,Se))+s.wrapper.clientHeight)):Math.min(be,c.lastLine())>=ie&&(H=Ut(c,Uo(vn(c,be))-s.wrapper.clientHeight),ie=be)}return{from:H,to:Math.max(ie,H+1)}}function Qu(s,c){if(!zt(s,"scrollCursorIntoView")){var b=s.display,y=b.sizer.getBoundingClientRect(),w=null;if(c.top+y.top<0?w=!0:c.bottom+y.top>(window.innerHeight||document.documentElement.clientHeight)&&(w=!1),w!=null&&!Xe){var H=Je("div","\u200B",null,`position: absolute;
top: `+(c.top-b.viewOffset-Bo(s.display))+`px;
height: `+(c.bottom-c.top+ja(s)+b.barHeight)+`px;
left: `+c.left+"px; width: "+Math.max(2,c.right-c.left)+"px;");s.display.lineSpace.appendChild(H),H.scrollIntoView(w),s.display.lineSpace.removeChild(H)}}}function Ju(s,c,b,y){y==null&&(y=0);var w;!s.options.lineWrapping&&c==b&&(c=c.ch?ot(c.line,c.sticky=="before"?c.ch-1:c.ch,"after"):c,b=c.sticky=="before"?ot(c.line,c.ch+1,"before"):c);for(var H=0;H<5;H++){var ie=!1,Se=wa(s,c),be=!b||b==c?Se:wa(s,b);w={left:Math.min(Se.left,be.left),top:Math.min(Se.top,be.top)-y,right:Math.max(Se.left,be.left),bottom:Math.max(Se.bottom,be.bottom)+y};var Ze=wc(s,w),Wt=s.doc.scrollTop,st=s.doc.scrollLeft;if(Ze.scrollTop!=null&&(Dl(s,Ze.scrollTop),Math.abs(s.doc.scrollTop-Wt)>1&&(ie=!0)),Ze.scrollLeft!=null&&(bl(s,Ze.scrollLeft),Math.abs(s.doc.scrollLeft-st)>1&&(ie=!0)),!ie)break}return w}function tu(s,c){var b=wc(s,c);b.scrollTop!=null&&Dl(s,b.scrollTop),b.scrollLeft!=null&&bl(s,b.scrollLeft)}function wc(s,c){var b=s.display,y=ml(s.display);c.top<0&&(c.top=0);var w=s.curOp&&s.curOp.scrollTop!=null?s.curOp.scrollTop:b.scroller.scrollTop,H=Rl(s),ie={};c.bottom-c.top>H&&(c.bottom=c.top+H);var Se=s.doc.height+Ia(b),be=c.top<y,Ze=c.bottom>Se-y;if(c.top<w)ie.scrollTop=be?0:c.top;else if(c.bottom>w+H){var Wt=Math.min(c.top,(Ze?Se:c.bottom)-H);Wt!=w&&(ie.scrollTop=Wt)}var st=s.options.fixedGutter?0:b.gutters.offsetWidth,Tn=s.curOp&&s.curOp.scrollLeft!=null?s.curOp.scrollLeft:b.scroller.scrollLeft-st,En=qa(s)-b.gutters.offsetWidth,ci=c.right-c.left>En;return ci&&(c.right=c.left+En),c.left<10?ie.scrollLeft=0:c.left<Tn?ie.scrollLeft=Math.max(0,c.left+st-(ci?0:10)):c.right>En+Tn-3&&(ie.scrollLeft=c.right+(ci?0:10)-En),ie}function Uu(s,c){c!=null&&(Ls(s),s.curOp.scrollTop=(s.curOp.scrollTop==null?s.doc.scrollTop:s.curOp.scrollTop)+c)}function vl(s){Ls(s);var c=s.getCursor();s.curOp.scrollToPos={from:c,to:c,margin:s.options.cursorScrollMargin}}function Zs(s,c,b){(c!=null||b!=null)&&Ls(s),c!=null&&(s.curOp.scrollLeft=c),b!=null&&(s.curOp.scrollTop=b)}function Ao(s,c){Ls(s),s.curOp.scrollToPos=c}function Ls(s){var c=s.curOp.scrollToPos;if(c){s.curOp.scrollToPos=null;var b=hc(s,c.from),y=hc(s,c.to);qu(s,b,y,c.margin)}}function qu(s,c,b,y){var w=wc(s,{left:Math.min(c.left,b.left),top:Math.min(c.top,b.top)-y,right:Math.max(c.right,b.right),bottom:Math.max(c.bottom,b.bottom)+y});Zs(s,w.scrollLeft,w.scrollTop)}function Dl(s,c){Math.abs(s.doc.scrollTop-c)<2||(v||W(s,{top:c}),yl(s,c,!0),v&&W(s),zn(s,100))}function yl(s,c,b){c=Math.max(0,Math.min(s.display.scroller.scrollHeight-s.display.scroller.clientHeight,c)),!(s.display.scroller.scrollTop==c&&!b)&&(s.doc.scrollTop=c,s.display.scrollbars.setScrollTop(c),s.display.scroller.scrollTop!=c&&(s.display.scroller.scrollTop=c))}function bl(s,c,b,y){c=Math.max(0,Math.min(c,s.display.scroller.scrollWidth-s.display.scroller.clientWidth)),!((b?c==s.doc.scrollLeft:Math.abs(s.doc.scrollLeft-c)<2)&&!y)&&(s.doc.scrollLeft=c,He(s),s.display.scroller.scrollLeft!=c&&(s.display.scroller.scrollLeft=c),s.display.scrollbars.setScrollLeft(c))}function xl(s){var c=s.display,b=c.gutters.offsetWidth,y=Math.round(s.doc.height+Ia(s.display));return{clientHeight:c.scroller.clientHeight,viewHeight:c.wrapper.clientHeight,scrollWidth:c.scroller.scrollWidth,clientWidth:c.scroller.clientWidth,viewWidth:c.wrapper.clientWidth,barLeft:s.options.fixedGutter?b:0,docHeight:y,scrollHeight:y+ja(s)+c.barHeight,nativeBarWidth:c.nativeBarWidth,gutterWidth:b}}var pu=function(s,c,b){this.cm=b;var y=this.vert=Je("div",[Je("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),w=this.horiz=Je("div",[Je("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");y.tabIndex=w.tabIndex=-1,s(y),s(w),Kt(y,"scroll",function(){y.clientHeight&&c(y.scrollTop,"vertical")}),Kt(w,"scroll",function(){w.clientWidth&&c(w.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,G&&F<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};pu.prototype.update=function(s){var c=s.scrollWidth>s.clientWidth+1,b=s.scrollHeight>s.clientHeight+1,y=s.nativeBarWidth;if(b){this.vert.style.display="block",this.vert.style.bottom=c?y+"px":"0";var w=s.viewHeight-(c?y:0);this.vert.firstChild.style.height=Math.max(0,s.scrollHeight-s.clientHeight+w)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(c){this.horiz.style.display="block",this.horiz.style.right=b?y+"px":"0",this.horiz.style.left=s.barLeft+"px";var H=s.viewWidth-s.barLeft-(b?y:0);this.horiz.firstChild.style.width=Math.max(0,s.scrollWidth-s.clientWidth+H)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&s.clientHeight>0&&(y==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:b?y:0,bottom:c?y:0}},pu.prototype.setScrollLeft=function(s){this.horiz.scrollLeft!=s&&(this.horiz.scrollLeft=s),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},pu.prototype.setScrollTop=function(s){this.vert.scrollTop!=s&&(this.vert.scrollTop=s),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},pu.prototype.zeroWidthHack=function(){var s=Re&&!Ee?"12px":"18px";this.horiz.style.height=this.vert.style.width=s,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new le,this.disableVert=new le},pu.prototype.enableZeroWidthBar=function(s,c,b){s.style.pointerEvents="auto";function y(){var w=s.getBoundingClientRect(),H=b=="vert"?document.elementFromPoint(w.right-1,(w.top+w.bottom)/2):document.elementFromPoint((w.right+w.left)/2,w.bottom-1);H!=s?s.style.pointerEvents="none":c.set(1e3,y)}c.set(1e3,y)},pu.prototype.clear=function(){var s=this.horiz.parentNode;s.removeChild(this.horiz),s.removeChild(this.vert)};var Ys=function(){};Ys.prototype.update=function(){return{bottom:0,right:0}},Ys.prototype.setScrollLeft=function(){},Ys.prototype.setScrollTop=function(){},Ys.prototype.clear=function(){};function Wl(s,c){c||(c=xl(s));var b=s.display.barWidth,y=s.display.barHeight;mu(s,c);for(var w=0;w<4&&b!=s.display.barWidth||y!=s.display.barHeight;w++)b!=s.display.barWidth&&s.options.lineWrapping&&Ir(s),mu(s,xl(s)),b=s.display.barWidth,y=s.display.barHeight}function mu(s,c){var b=s.display,y=b.scrollbars.update(c);b.sizer.style.paddingRight=(b.barWidth=y.right)+"px",b.sizer.style.paddingBottom=(b.barHeight=y.bottom)+"px",b.heightForcer.style.borderBottom=y.bottom+"px solid transparent",y.right&&y.bottom?(b.scrollbarFiller.style.display="block",b.scrollbarFiller.style.height=y.bottom+"px",b.scrollbarFiller.style.width=y.right+"px"):b.scrollbarFiller.style.display="",y.bottom&&s.options.coverGutterNextToScrollbar&&s.options.fixedGutter?(b.gutterFiller.style.display="block",b.gutterFiller.style.height=y.bottom+"px",b.gutterFiller.style.width=c.gutterWidth+"px"):b.gutterFiller.style.display=""}var nu={native:pu,null:Ys};function Nu(s){s.display.scrollbars&&(s.display.scrollbars.clear(),s.display.scrollbars.addClass&&Te(s.display.wrapper,s.display.scrollbars.addClass)),s.display.scrollbars=new nu[s.options.scrollbarStyle](function(c){s.display.wrapper.insertBefore(c,s.display.scrollbarFiller),Kt(c,"mousedown",function(){s.state.focused&&setTimeout(function(){return s.display.input.focus()},0)}),c.setAttribute("cm-not-content","true")},function(c,b){b=="horizontal"?bl(s,c):Dl(s,c)},s),s.display.scrollbars.addClass&&Pt(s.display.wrapper,s.display.scrollbars.addClass)}var Ws=0;function ys(s){s.curOp={cm:s,viewChanged:!1,startHeight:s.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:++Ws},xa(s.curOp)}function iu(s){var c=s.curOp;c&&wn(c,function(b){for(var y=0;y<b.ops.length;y++)b.ops[y].cm.curOp=null;Au(b)})}function Au(s){for(var c=s.ops,b=0;b<c.length;b++)we(c[b]);for(var y=0;y<c.length;y++)De(c[y]);for(var w=0;w<c.length;w++)dt(c[w]);for(var H=0;H<c.length;H++)xt(c[H]);for(var ie=0;ie<c.length;ie++)_t(c[ie])}function we(s){var c=s.cm,b=c.display;hi(c),s.updateMaxLine&&ma(c),s.mustUpdate=s.viewChanged||s.forceUpdate||s.scrollTop!=null||s.scrollToPos&&(s.scrollToPos.from.line<b.viewFrom||s.scrollToPos.to.line>=b.viewTo)||b.maxLineChanged&&c.options.lineWrapping,s.update=s.mustUpdate&&new $n(c,s.mustUpdate&&{top:s.scrollTop,ensure:s.scrollToPos},s.forceUpdate)}function De(s){s.updatedDisplay=s.mustUpdate&&E(s.cm,s.update)}function dt(s){var c=s.cm,b=c.display;s.updatedDisplay&&Ir(c),s.barMeasure=xl(c),b.maxLineChanged&&!c.options.lineWrapping&&(s.adjustWidthTo=hu(c,b.maxLine,b.maxLine.text.length).left+3,c.display.sizerWidth=s.adjustWidthTo,s.barMeasure.scrollWidth=Math.max(b.scroller.clientWidth,b.sizer.offsetLeft+s.adjustWidthTo+ja(c)+c.display.barWidth),s.maxScrollLeft=Math.max(0,b.sizer.offsetLeft+s.adjustWidthTo-qa(c))),(s.updatedDisplay||s.selectionChanged)&&(s.preparedSelection=b.input.prepareSelection())}function xt(s){var c=s.cm;s.adjustWidthTo!=null&&(c.display.sizer.style.minWidth=s.adjustWidthTo+"px",s.maxScrollLeft<c.doc.scrollLeft&&bl(c,Math.min(c.display.scroller.scrollLeft,s.maxScrollLeft),!0),c.display.maxLineChanged=!1);var b=s.focus&&s.focus==Ge();s.preparedSelection&&c.display.input.showSelection(s.preparedSelection,b),(s.updatedDisplay||s.startHeight!=c.doc.height)&&Wl(c,s.barMeasure),s.updatedDisplay&&Ae(c,s.barMeasure),s.selectionChanged&&Ko(c),c.state.focused&&s.updateInput&&c.display.input.reset(s.typing),b&&la(s.cm)}function _t(s){var c=s.cm,b=c.display,y=c.doc;if(s.updatedDisplay&&P(c,s.update),b.wheelStartX!=null&&(s.scrollTop!=null||s.scrollLeft!=null||s.scrollToPos)&&(b.wheelStartX=b.wheelStartY=null),s.scrollTop!=null&&yl(c,s.scrollTop,s.forceScroll),s.scrollLeft!=null&&bl(c,s.scrollLeft,!0,!0),s.scrollToPos){var w=Ju(c,mt(y,s.scrollToPos.from),mt(y,s.scrollToPos.to),s.scrollToPos.margin);Qu(c,w)}var H=s.maybeHiddenMarkers,ie=s.maybeUnhiddenMarkers;if(H)for(var Se=0;Se<H.length;++Se)H[Se].lines.length||et(H[Se],"hide");if(ie)for(var be=0;be<ie.length;++be)ie[be].lines.length&&et(ie[be],"unhide");b.wrapper.offsetHeight&&(y.scrollTop=c.display.scroller.scrollTop),s.changeObjs&&et(c,"changes",c,s.changeObjs),s.update&&s.update.finish()}function Dt(s,c){if(s.curOp)return c();ys(s);try{return c()}finally{iu(s)}}function ve(s,c){return function(){if(s.curOp)return c.apply(s,arguments);ys(s);try{return c.apply(s,arguments)}finally{iu(s)}}}function bn(s){return function(){if(this.curOp)return s.apply(this,arguments);ys(this);try{return s.apply(this,arguments)}finally{iu(this)}}}function ln(s){return function(){var c=this.cm;if(!c||c.curOp)return s.apply(this,arguments);ys(c);try{return s.apply(this,arguments)}finally{iu(c)}}}function zn(s,c){s.doc.highlightFrontier<s.display.viewTo&&s.state.highlight.set(c,Ct(jn,s))}function jn(s){var c=s.doc;if(!(c.highlightFrontier>=s.display.viewTo)){var b=+new Date+s.options.workTime,y=Yi(s,c.highlightFrontier),w=[];c.iter(y.line,Math.min(c.first+c.size,s.display.viewTo+500),function(H){if(y.line>=s.display.viewFrom){var ie=H.styles,Se=H.text.length>s.options.maxHighlightLength?_n(c.mode,y.state):null,be=lt(s,H,y,!0);Se&&(y.state=Se),H.styles=be.styles;var Ze=H.styleClasses,Wt=be.classes;Wt?H.styleClasses=Wt:Ze&&(H.styleClasses=null);for(var st=!ie||ie.length!=H.styles.length||Ze!=Wt&&(!Ze||!Wt||Ze.bgClass!=Wt.bgClass||Ze.textClass!=Wt.textClass),Tn=0;!st&&Tn<ie.length;++Tn)st=ie[Tn]!=H.styles[Tn];st&&w.push(y.line),H.stateAfter=y.save(),y.nextLine()}else H.text.length<=s.options.maxHighlightLength&&Yt(s,H.text,y),H.stateAfter=y.line%5==0?y.save():null,y.nextLine();if(+new Date>b)return zn(s,s.options.workDelay),!0}),c.highlightFrontier=y.line,c.modeFrontier=Math.max(c.modeFrontier,y.line),w.length&&Dt(s,function(){for(var H=0;H<w.length;H++)vo(s,w[H],"text")})}}var $n=function(s,c,b){var y=s.display;this.viewport=c,this.visible=Co(y,s.doc,c),this.editorIsHidden=!y.wrapper.offsetWidth,this.wrapperHeight=y.wrapper.clientHeight,this.wrapperWidth=y.wrapper.clientWidth,this.oldDisplayWidth=qa(s),this.force=b,this.dims=Xu(s),this.events=[]};$n.prototype.signal=function(s,c){rn(s,c)&&this.events.push(arguments)},$n.prototype.finish=function(){for(var s=0;s<this.events.length;s++)et.apply(null,this.events[s])};function hi(s){var c=s.display;!c.scrollbarsClipped&&c.scroller.offsetWidth&&(c.nativeBarWidth=c.scroller.offsetWidth-c.scroller.clientWidth,c.heightForcer.style.height=ja(s)+"px",c.sizer.style.marginBottom=-c.nativeBarWidth+"px",c.sizer.style.borderRightWidth=ja(s)+"px",c.scrollbarsClipped=!0)}function gi(s){if(s.hasFocus())return null;var c=Ge();if(!c||!at(s.display.lineDiv,c))return null;var b={activeElt:c};if(window.getSelection){var y=window.getSelection();y.anchorNode&&y.extend&&at(s.display.lineDiv,y.anchorNode)&&(b.anchorNode=y.anchorNode,b.anchorOffset=y.anchorOffset,b.focusNode=y.focusNode,b.focusOffset=y.focusOffset)}return b}function ti(s){if(!(!s||!s.activeElt||s.activeElt==Ge())&&(s.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(s.activeElt.nodeName)&&s.anchorNode&&at(document.body,s.anchorNode)&&at(document.body,s.focusNode))){var c=window.getSelection(),b=document.createRange();b.setEnd(s.anchorNode,s.anchorOffset),b.collapse(!1),c.removeAllRanges(),c.addRange(b),c.extend(s.focusNode,s.focusOffset)}}function E(s,c){var b=s.display,y=s.doc;if(c.editorIsHidden)return Wa(s),!1;if(!c.force&&c.visible.from>=b.viewFrom&&c.visible.to<=b.viewTo&&(b.updateLineNumbers==null||b.updateLineNumbers>=b.viewTo)&&b.renderedView==b.view&&Gs(s)==0)return!1;it(s)&&(Wa(s),c.dims=Xu(s));var w=y.first+y.size,H=Math.max(c.visible.from-s.options.viewportMargin,y.first),ie=Math.min(w,c.visible.to+s.options.viewportMargin);b.viewFrom<H&&H-b.viewFrom<20&&(H=Math.max(y.first,b.viewFrom)),b.viewTo>ie&&b.viewTo-ie<20&&(ie=Math.min(w,b.viewTo)),qt&&(H=eo(s.doc,H),ie=Lo(s.doc,ie));var Se=H!=b.viewFrom||ie!=b.viewTo||b.lastWrapHeight!=c.wrapperHeight||b.lastWrapWidth!=c.wrapperWidth;sa(s,H,ie),b.viewOffset=Uo(vn(s.doc,b.viewFrom)),s.display.mover.style.top=b.viewOffset+"px";var be=Gs(s);if(!Se&&be==0&&!c.force&&b.renderedView==b.view&&(b.updateLineNumbers==null||b.updateLineNumbers>=b.viewTo))return!1;var Ze=gi(s);return be>4&&(b.lineDiv.style.display="none"),J(s,b.updateLineNumbers,c.dims),be>4&&(b.lineDiv.style.display=""),b.renderedView=b.view,ti(Ze),Me(b.cursorDiv),Me(b.selectionDiv),b.gutters.style.height=b.sizer.style.minHeight=0,Se&&(b.lastWrapHeight=c.wrapperHeight,b.lastWrapWidth=c.wrapperWidth,zn(s,400)),b.updateLineNumbers=null,!0}function P(s,c){for(var b=c.viewport,y=!0;;y=!1){if(!y||!s.options.lineWrapping||c.oldDisplayWidth==qa(s)){if(b&&b.top!=null&&(b={top:Math.min(s.doc.height+Ia(s.display)-Rl(s),b.top)}),c.visible=Co(s.display,s.doc,b),c.visible.from>=s.display.viewFrom&&c.visible.to<=s.display.viewTo)break}else y&&(c.visible=Co(s.display,s.doc,b));if(!E(s,c))break;Ir(s);var w=xl(s);Va(s),Wl(s,w),Ae(s,w),c.force=!1}c.signal(s,"update",s),(s.display.viewFrom!=s.display.reportedViewFrom||s.display.viewTo!=s.display.reportedViewTo)&&(c.signal(s,"viewportChange",s,s.display.viewFrom,s.display.viewTo),s.display.reportedViewFrom=s.display.viewFrom,s.display.reportedViewTo=s.display.viewTo)}function W(s,c){var b=new $n(s,c);if(E(s,b)){Ir(s),P(s,b);var y=xl(s);Va(s),Wl(s,y),Ae(s,y),b.finish()}}function J(s,c,b){var y=s.display,w=s.options.lineNumbers,H=y.lineDiv,ie=H.firstChild;function Se(ci){var bi=ci.nextSibling;return M&&Re&&s.display.currentWheelTarget==ci?ci.style.display="none":ci.parentNode.removeChild(ci),bi}for(var be=y.view,Ze=y.viewFrom,Wt=0;Wt<be.length;Wt++){var st=be[Wt];if(!st.hidden)if(!st.node||st.node.parentNode!=H){var Tn=Vo(s,st,Ze,b);H.insertBefore(Tn,ie)}else{for(;ie!=st.node;)ie=Se(ie);var En=w&&c!=null&&c<=Ze&&st.lineNumber;st.changes&&(ce(st.changes,"gutter")>-1&&(En=!1),ga(s,st,Ze,b)),En&&(Me(st.lineNumber),st.lineNumber.appendChild(document.createTextNode(Wn(s.options,Ze)))),ie=st.node.nextSibling}Ze+=st.size}for(;ie;)ie=Se(ie)}function ge(s){var c=s.gutters.offsetWidth;s.sizer.style.marginLeft=c+"px"}function Ae(s,c){s.display.sizer.style.minHeight=c.docHeight+"px",s.display.heightForcer.style.top=c.docHeight+"px",s.display.gutters.style.height=c.docHeight+s.display.barHeight+ja(s)+"px"}function He(s){var c=s.display,b=c.view;if(!(!c.alignWidgets&&(!c.gutters.firstChild||!s.options.fixedGutter))){for(var y=Tu(c)-c.scroller.scrollLeft+s.doc.scrollLeft,w=c.gutters.offsetWidth,H=y+"px",ie=0;ie<b.length;ie++)if(!b[ie].hidden){s.options.fixedGutter&&(b[ie].gutter&&(b[ie].gutter.style.left=H),b[ie].gutterBackground&&(b[ie].gutterBackground.style.left=H));var Se=b[ie].alignable;if(Se)for(var be=0;be<Se.length;be++)Se[be].style.left=H}s.options.fixedGutter&&(c.gutters.style.left=y+w+"px")}}function it(s){if(!s.options.lineNumbers)return!1;var c=s.doc,b=Wn(s.options,c.first+c.size-1),y=s.display;if(b.length!=y.lineNumChars){var w=y.measure.appendChild(Je("div",[Je("div",b)],"CodeMirror-linenumber CodeMirror-gutter-elt")),H=w.firstChild.offsetWidth,ie=w.offsetWidth-H;return y.lineGutter.style.width="",y.lineNumInnerWidth=Math.max(H,y.lineGutter.offsetWidth-ie)+1,y.lineNumWidth=y.lineNumInnerWidth+ie,y.lineNumChars=y.lineNumInnerWidth?b.length:-1,y.lineGutter.style.width=y.lineNumWidth+"px",ge(s.display),!0}return!1}function jt(s,c){for(var b=[],y=!1,w=0;w<s.length;w++){var H=s[w],ie=null;if(typeof H!="string"&&(ie=H.style,H=H.className),H=="CodeMirror-linenumbers")if(c)y=!0;else continue;b.push({className:H,style:ie})}return c&&!y&&b.push({className:"CodeMirror-linenumbers",style:null}),b}function Qt(s){var c=s.gutters,b=s.gutterSpecs;Me(c),s.lineGutter=null;for(var y=0;y<b.length;++y){var w=b[y],H=w.className,ie=w.style,Se=c.appendChild(Je("div",null,"CodeMirror-gutter "+H));ie&&(Se.style.cssText=ie),H=="CodeMirror-linenumbers"&&(s.lineGutter=Se,Se.style.width=(s.lineNumWidth||1)+"px")}c.style.display=b.length?"":"none",ge(s)}function bt(s){Qt(s.display),Eo(s),He(s)}function en(s,c,b,y){var w=this;this.input=b,w.scrollbarFiller=Je("div",null,"CodeMirror-scrollbar-filler"),w.scrollbarFiller.setAttribute("cm-not-content","true"),w.gutterFiller=Je("div",null,"CodeMirror-gutter-filler"),w.gutterFiller.setAttribute("cm-not-content","true"),w.lineDiv=Ye("div",null,"CodeMirror-code"),w.selectionDiv=Je("div",null,null,"position: relative; z-index: 1"),w.cursorDiv=Je("div",null,"CodeMirror-cursors"),w.measure=Je("div",null,"CodeMirror-measure"),w.lineMeasure=Je("div",null,"CodeMirror-measure"),w.lineSpace=Ye("div",[w.measure,w.lineMeasure,w.selectionDiv,w.cursorDiv,w.lineDiv],null,"position: relative; outline: none");var H=Ye("div",[w.lineSpace],"CodeMirror-lines");w.mover=Je("div",[H],null,"position: relative"),w.sizer=Je("div",[w.mover],"CodeMirror-sizer"),w.sizerWidth=null,w.heightForcer=Je("div",null,null,"position: absolute; height: "+Ht+"px; width: 1px;"),w.gutters=Je("div",null,"CodeMirror-gutters"),w.lineGutter=null,w.scroller=Je("div",[w.sizer,w.heightForcer,w.gutters],"CodeMirror-scroll"),w.scroller.setAttribute("tabIndex","-1"),w.wrapper=Je("div",[w.scrollbarFiller,w.gutterFiller,w.scroller],"CodeMirror"),G&&F<8&&(w.gutters.style.zIndex=-1,w.scroller.style.paddingRight=0),!M&&!(v&&Ie)&&(w.scroller.draggable=!0),s&&(s.appendChild?s.appendChild(w.wrapper):s(w.wrapper)),w.viewFrom=w.viewTo=c.first,w.reportedViewFrom=w.reportedViewTo=c.first,w.view=[],w.renderedView=null,w.externalMeasured=null,w.viewOffset=0,w.lastWrapHeight=w.lastWrapWidth=0,w.updateLineNumbers=null,w.nativeBarWidth=w.barHeight=w.barWidth=0,w.scrollbarsClipped=!1,w.lineNumWidth=w.lineNumInnerWidth=w.lineNumChars=null,w.alignWidgets=!1,w.cachedCharWidth=w.cachedTextHeight=w.cachedPaddingH=null,w.maxLine=null,w.maxLineLength=0,w.maxLineChanged=!1,w.wheelDX=w.wheelDY=w.wheelStartX=w.wheelStartY=null,w.shift=!1,w.selForContextMenu=null,w.activeTouch=null,w.gutterSpecs=jt(y.gutters,y.lineNumbers),Qt(w),b.init(w)}var Gt=0,wt=null;G?wt=-.53:v?wt=15:ae?wt=-.7:Ne&&(wt=-1/3);function ii(s){var c=s.wheelDeltaX,b=s.wheelDeltaY;return c==null&&s.detail&&s.axis==s.HORIZONTAL_AXIS&&(c=s.detail),b==null&&s.detail&&s.axis==s.VERTICAL_AXIS?b=s.detail:b==null&&(b=s.wheelDelta),{x:c,y:b}}function ki(s){var c=ii(s);return c.x*=wt,c.y*=wt,c}function ji(s,c){var b=ii(c),y=b.x,w=b.y,H=s.display,ie=H.scroller,Se=ie.scrollWidth>ie.clientWidth,be=ie.scrollHeight>ie.clientHeight;if(y&&Se||w&&be){if(w&&Re&&M){e:for(var Ze=c.target,Wt=H.view;Ze!=ie;Ze=Ze.parentNode)for(var st=0;st<Wt.length;st++)if(Wt[st].node==Ze){s.display.currentWheelTarget=Ze;break e}}if(y&&!v&&!te&&wt!=null){w&&be&&Dl(s,Math.max(0,ie.scrollTop+w*wt)),bl(s,Math.max(0,ie.scrollLeft+y*wt)),(!w||w&&be)&&Un(c),H.wheelStartX=null;return}if(w&&wt!=null){var Tn=w*wt,En=s.doc.scrollTop,ci=En+H.wrapper.clientHeight;Tn<0?En=Math.max(0,En+Tn-50):ci=Math.min(s.doc.height,ci+Tn+50),W(s,{top:En,bottom:ci})}Gt<20&&(H.wheelStartX==null?(H.wheelStartX=ie.scrollLeft,H.wheelStartY=ie.scrollTop,H.wheelDX=y,H.wheelDY=w,setTimeout(function(){if(H.wheelStartX!=null){var bi=ie.scrollLeft-H.wheelStartX,Di=ie.scrollTop-H.wheelStartY,er=Di&&H.wheelDY&&Di/H.wheelDY||bi&&H.wheelDX&&bi/H.wheelDX;H.wheelStartX=H.wheelStartY=null,er&&(wt=(wt*Gt+er)/(Gt+1),++Gt)}},200)):(H.wheelDX+=y,H.wheelDY+=w))}}var si=function(s,c){this.ranges=s,this.primIndex=c};si.prototype.primary=function(){return this.ranges[this.primIndex]},si.prototype.equals=function(s){if(s==this)return!0;if(s.primIndex!=this.primIndex||s.ranges.length!=this.ranges.length)return!1;for(var c=0;c<this.ranges.length;c++){var b=this.ranges[c],y=s.ranges[c];if(!yt(b.anchor,y.anchor)||!yt(b.head,y.head))return!1}return!0},si.prototype.deepCopy=function(){for(var s=[],c=0;c<this.ranges.length;c++)s[c]=new vi(je(this.ranges[c].anchor),je(this.ranges[c].head));return new si(s,this.primIndex)},si.prototype.somethingSelected=function(){for(var s=0;s<this.ranges.length;s++)if(!this.ranges[s].empty())return!0;return!1},si.prototype.contains=function(s,c){c||(c=s);for(var b=0;b<this.ranges.length;b++){var y=this.ranges[b];if(fn(c,y.from())>=0&&fn(s,y.to())<=0)return b}return-1};var vi=function(s,c){this.anchor=s,this.head=c};vi.prototype.from=function(){return Rt(this.anchor,this.head)},vi.prototype.to=function(){return L(this.anchor,this.head)},vi.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Pi(s,c,b){var y=s&&s.options.selectionsMayTouch,w=c[b];c.sort(function(Tn,En){return fn(Tn.from(),En.from())}),b=ce(c,w);for(var H=1;H<c.length;H++){var ie=c[H],Se=c[H-1],be=fn(Se.to(),ie.from());if(y&&!ie.empty()?be>0:be>=0){var Ze=Rt(Se.from(),ie.from()),Wt=L(Se.to(),ie.to()),st=Se.empty()?ie.from()==ie.head:Se.from()==Se.head;H<=b&&--b,c.splice(--H,2,new vi(st?Wt:Ze,st?Ze:Wt))}}return new si(c,b)}function Mr(s,c){return new si([new vi(s,c||s)],0)}function Xr(s){return s.text?ot(s.from.line+s.text.length-1,Jn(s.text).length+(s.text.length==1?s.from.ch:0)):s.to}function ui(s,c){if(fn(s,c.from)<0)return s;if(fn(s,c.to)<=0)return Xr(c);var b=s.line+c.text.length-(c.to.line-c.from.line)-1,y=s.ch;return s.line==c.to.line&&(y+=Xr(c).ch-c.to.ch),ot(b,y)}function io(s,c){for(var b=[],y=0;y<s.sel.ranges.length;y++){var w=s.sel.ranges[y];b.push(new vi(ui(w.anchor,c),ui(w.head,c)))}return Pi(s.cm,b,s.sel.primIndex)}function bo(s,c,b){return s.line==c.line?ot(b.line,s.ch-c.ch+b.ch):ot(b.line+(s.line-c.line),s.ch)}function dr(s,c,b){for(var y=[],w=ot(s.first,0),H=w,ie=0;ie<c.length;ie++){var Se=c[ie],be=bo(Se.from,w,H),Ze=bo(Xr(Se),w,H);if(w=Se.to,H=Ze,b=="around"){var Wt=s.sel.ranges[ie],st=fn(Wt.head,Wt.anchor)<0;y[ie]=new vi(st?Ze:be,st?be:Ze)}else y[ie]=new vi(be,be)}return new si(y,s.sel.primIndex)}function Qi(s){s.doc.mode=Bi(s.options,s.doc.modeOption),oo(s)}function oo(s){s.doc.iter(function(c){c.stateAfter&&(c.stateAfter=null),c.styles&&(c.styles=null)}),s.doc.modeFrontier=s.doc.highlightFrontier=s.doc.first,zn(s,100),s.state.modeGen++,s.curOp&&Eo(s)}function to(s,c){return c.from.ch==0&&c.to.ch==0&&Jn(c.text)==""&&(!s.cm||s.cm.options.wholeLineUpdateBefore)}function pr(s,c,b,y){function w(Fr){return b?b[Fr]:null}function H(Fr,Sr,Gr){is(Fr,Sr,Gr,y),mi(Fr,"change",Fr,c)}function ie(Fr,Sr){for(var Gr=[],mo=Fr;mo<Sr;++mo)Gr.push(new $a(Ze[mo],w(mo),y));return Gr}var Se=c.from,be=c.to,Ze=c.text,Wt=vn(s,Se.line),st=vn(s,be.line),Tn=Jn(Ze),En=w(Ze.length-1),ci=be.line-Se.line;if(c.full)s.insert(0,ie(0,Ze.length)),s.remove(Ze.length,s.size-Ze.length);else if(to(s,c)){var bi=ie(0,Ze.length-1);H(st,st.text,En),ci&&s.remove(Se.line,ci),bi.length&&s.insert(Se.line,bi)}else if(Wt==st)if(Ze.length==1)H(Wt,Wt.text.slice(0,Se.ch)+Tn+Wt.text.slice(be.ch),En);else{var Di=ie(1,Ze.length-1);Di.push(new $a(Tn+Wt.text.slice(be.ch),En,y)),H(Wt,Wt.text.slice(0,Se.ch)+Ze[0],w(0)),s.insert(Se.line+1,Di)}else if(Ze.length==1)H(Wt,Wt.text.slice(0,Se.ch)+Ze[0]+st.text.slice(be.ch),w(0)),s.remove(Se.line+1,ci);else{H(Wt,Wt.text.slice(0,Se.ch)+Ze[0],w(0)),H(st,Tn+st.text.slice(be.ch),En);var er=ie(1,Ze.length-1);ci>1&&s.remove(Se.line+1,ci-1),s.insert(Se.line+1,er)}mi(s,"change",s,c)}function _r(s,c,b){function y(w,H,ie){if(w.linked)for(var Se=0;Se<w.linked.length;++Se){var be=w.linked[Se];if(be.doc!=H){var Ze=ie&&be.sharedHist;b&&!Ze||(c(be.doc,Ze),y(be.doc,w,Ze))}}}y(s,null,!0)}function Gi(s,c){if(c.cm)throw new Error("This document is already in use.");s.doc=c,c.cm=s,Dr(s),Qi(s),ir(s),s.options.lineWrapping||ma(s),s.options.mode=c.modeOption,Eo(s)}function ir(s){(s.doc.direction=="rtl"?Pt:Te)(s.display.lineDiv,"CodeMirror-rtl")}function vr(s){Dt(s,function(){ir(s),Eo(s)})}function sr(s){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=s||1}function ho(s,c){var b={from:je(c.from),to:Xr(c),text:Fn(s,c.from,c.to)};return es(s,b,c.from.line,c.to.line+1),_r(s,function(y){return es(y,b,c.from.line,c.to.line+1)},!0),b}function $t(s){for(;s.length;){var c=Jn(s);if(c.ranges)s.pop();else break}}function zr(s,c){if(c)return $t(s.done),Jn(s.done);if(s.done.length&&!Jn(s.done).ranges)return Jn(s.done);if(s.done.length>1&&!s.done[s.done.length-2].ranges)return s.done.pop(),Jn(s.done)}function fo(s,c,b,y){var w=s.history;w.undone.length=0;var H=+new Date,ie,Se;if((w.lastOp==y||w.lastOrigin==c.origin&&c.origin&&(c.origin.charAt(0)=="+"&&w.lastModTime>H-(s.cm?s.cm.options.historyEventDelay:500)||c.origin.charAt(0)=="*"))&&(ie=zr(w,w.lastOp==y)))Se=Jn(ie.changes),fn(c.from,c.to)==0&&fn(c.from,Se.to)==0?Se.to=Xr(c):ie.changes.push(ho(s,c));else{var be=Jn(w.done);for((!be||!be.ranges)&&Ta(s.sel,w.done),ie={changes:[ho(s,c)],generation:w.generation},w.done.push(ie);w.done.length>w.undoDepth;)w.done.shift(),w.done[0].ranges||w.done.shift()}w.done.push(b),w.generation=++w.maxGeneration,w.lastModTime=w.lastSelTime=H,w.lastOp=w.lastSelOp=y,w.lastOrigin=w.lastSelOrigin=c.origin,Se||et(s,"historyAdded")}function un(s,c,b,y){var w=c.charAt(0);return w=="*"||w=="+"&&b.ranges.length==y.ranges.length&&b.somethingSelected()==y.somethingSelected()&&new Date-s.history.lastSelTime<=(s.cm?s.cm.options.historyEventDelay:500)}function da(s,c,b,y){var w=s.history,H=y&&y.origin;b==w.lastSelOp||H&&w.lastSelOrigin==H&&(w.lastModTime==w.lastSelTime&&w.lastOrigin==H||un(s,H,Jn(w.done),c))?w.done[w.done.length-1]=c:Ta(c,w.done),w.lastSelTime=+new Date,w.lastSelOrigin=H,w.lastSelOp=b,y&&y.clearRedo!==!1&&$t(w.undone)}function Ta(s,c){var b=Jn(c);b&&b.ranges&&b.equals(s)||c.push(s)}function es(s,c,b,y){var w=c["spans_"+s.id],H=0;s.iter(Math.max(s.first,b),Math.min(s.first+s.size,y),function(ie){ie.markedSpans&&((w||(w=c["spans_"+s.id]={}))[H]=ie.markedSpans),++H})}function Fo(s){if(!s)return null;for(var c,b=0;b<s.length;++b)s[b].marker.explicitlyCleared?c||(c=s.slice(0,b)):c&&c.push(s[b]);return c?c.length?c:null:s}function qo(s,c){var b=c["spans_"+s.id];if(!b)return null;for(var y=[],w=0;w<c.text.length;++w)y.push(Fo(b[w]));return y}function ta(s,c){var b=qo(s,c),y=Ei(s,c);if(!b)return y;if(!y)return b;for(var w=0;w<b.length;++w){var H=b[w],ie=y[w];if(H&&ie)e:for(var Se=0;Se<ie.length;++Se){for(var be=ie[Se],Ze=0;Ze<H.length;++Ze)if(H[Ze].marker==be.marker)continue e;H.push(be)}else ie&&(b[w]=ie)}return b}function ya(s,c,b){for(var y=[],w=0;w<s.length;++w){var H=s[w];if(H.ranges){y.push(b?si.prototype.deepCopy.call(H):H);continue}var ie=H.changes,Se=[];y.push({changes:Se});for(var be=0;be<ie.length;++be){var Ze=ie[be],Wt=void 0;if(Se.push({from:Ze.from,to:Ze.to,text:Ze.text}),c)for(var st in Ze)(Wt=st.match(/^spans_(\d+)$/))&&ce(c,Number(Wt[1]))>-1&&(Jn(Se)[st]=Ze[st],delete Ze[st])}}return y}function zs(s,c,b,y){if(y){var w=s.anchor;if(b){var H=fn(c,w)<0;H!=fn(b,w)<0?(w=c,c=b):H!=fn(c,b)<0&&(c=b)}return new vi(w,c)}else return new vi(b||c,c)}function ko(s,c,b,y,w){w==null&&(w=s.cm&&(s.cm.display.shift||s.extend)),g(s,new si([zs(s.sel.primary(),c,b,w)],0),y)}function Ho(s,c,b){for(var y=[],w=s.cm&&(s.cm.display.shift||s.extend),H=0;H<s.sel.ranges.length;H++)y[H]=zs(s.sel.ranges[H],c[H],null,w);var ie=Pi(s.cm,y,s.sel.primIndex);g(s,ie,b)}function Zo(s,c,b,y){var w=s.sel.ranges.slice(0);w[c]=b,g(s,Pi(s.cm,w,s.sel.primIndex),y)}function Sa(s,c,b,y){g(s,Mr(c,b),y)}function Ha(s,c,b){var y={ranges:c.ranges,update:function(w){this.ranges=[];for(var H=0;H<w.length;H++)this.ranges[H]=new vi(mt(s,w[H].anchor),mt(s,w[H].head))},origin:b&&b.origin};return et(s,"beforeSelectionChange",s,y),s.cm&&et(s.cm,"beforeSelectionChange",s.cm,y),y.ranges!=c.ranges?Pi(s.cm,y.ranges,y.ranges.length-1):c}function d(s,c,b){var y=s.history.done,w=Jn(y);w&&w.ranges?(y[y.length-1]=c,K(s,c,b)):g(s,c,b)}function g(s,c,b){K(s,c,b),da(s,s.sel,s.cm?s.cm.curOp.id:NaN,b)}function K(s,c,b){(rn(s,"beforeSelectionChange")||s.cm&&rn(s.cm,"beforeSelectionChange"))&&(c=Ha(s,c,b));var y=b&&b.bias||(fn(c.primary().head,s.sel.primary().head)<0?-1:1);nt(s,Yn(s,c,y,!0)),!(b&&b.scroll===!1)&&s.cm&&vl(s.cm)}function nt(s,c){c.equals(s.sel)||(s.sel=c,s.cm&&(s.cm.curOp.updateInput=1,s.cm.curOp.selectionChanged=!0,dn(s.cm)),mi(s,"cursorActivity",s))}function gn(s){nt(s,Yn(s,s.sel,null,!1))}function Yn(s,c,b,y){for(var w,H=0;H<c.ranges.length;H++){var ie=c.ranges[H],Se=c.ranges.length==s.sel.ranges.length&&s.sel.ranges[H],be=Cr(s,ie.anchor,Se&&Se.anchor,b,y),Ze=Cr(s,ie.head,Se&&Se.head,b,y);(w||be!=ie.anchor||Ze!=ie.head)&&(w||(w=c.ranges.slice(0,H)),w[H]=new vi(be,Ze))}return w?Pi(s.cm,w,c.primIndex):c}function wi(s,c,b,y,w){var H=vn(s,c.line);if(H.markedSpans)for(var ie=0;ie<H.markedSpans.length;++ie){var Se=H.markedSpans[ie],be=Se.marker,Ze="selectLeft"in be?!be.selectLeft:be.inclusiveLeft,Wt="selectRight"in be?!be.selectRight:be.inclusiveRight;if((Se.from==null||(Ze?Se.from<=c.ch:Se.from<c.ch))&&(Se.to==null||(Wt?Se.to>=c.ch:Se.to>c.ch))){if(w&&(et(be,"beforeCursorEnter"),be.explicitlyCleared))if(H.markedSpans){--ie;continue}else break;if(!be.atomic)continue;if(b){var st=be.find(y<0?1:-1),Tn=void 0;if((y<0?Wt:Ze)&&(st=Hr(s,st,-y,st&&st.line==c.line?H:null)),st&&st.line==c.line&&(Tn=fn(st,b))&&(y<0?Tn<0:Tn>0))return wi(s,st,c,y,w)}var En=be.find(y<0?-1:1);return(y<0?Ze:Wt)&&(En=Hr(s,En,y,En.line==c.line?H:null)),En?wi(s,En,c,y,w):null}}return c}function Cr(s,c,b,y,w){var H=y||1,ie=wi(s,c,b,H,w)||!w&&wi(s,c,b,H,!0)||wi(s,c,b,-H,w)||!w&&wi(s,c,b,-H,!0);return ie||(s.cantEdit=!0,ot(s.first,0))}function Hr(s,c,b,y){return b<0&&c.ch==0?c.line>s.first?mt(s,ot(c.line-1)):null:b>0&&c.ch==(y||vn(s,c.line)).text.length?c.line<s.first+s.size-1?ot(c.line+1,0):null:new ot(c.line,c.ch+b)}function Gn(s){s.setSelection(ot(s.firstLine(),0),ot(s.lastLine()),St)}function Hi(s,c,b){var y={canceled:!1,from:c.from,to:c.to,text:c.text,origin:c.origin,cancel:function(){return y.canceled=!0}};return b&&(y.update=function(w,H,ie,Se){w&&(y.from=mt(s,w)),H&&(y.to=mt(s,H)),ie&&(y.text=ie),Se!==void 0&&(y.origin=Se)}),et(s,"beforeChange",s,y),s.cm&&et(s.cm,"beforeChange",s.cm,y),y.canceled?(s.cm&&(s.cm.curOp.updateInput=2),null):{from:y.from,to:y.to,text:y.text,origin:y.origin}}function Or(s,c,b){if(s.cm){if(!s.cm.curOp)return ve(s.cm,Or)(s,c,b);if(s.cm.state.suppressEdits)return}if(!((rn(s,"beforeChange")||s.cm&&rn(s.cm,"beforeChange"))&&(c=Hi(s,c,!0),!c))){var y=Fi&&!b&&tr(s,c.from,c.to);if(y)for(var w=y.length-1;w>=0;--w)Vr(s,{from:y[w].from,to:y[w].to,text:w?[""]:c.text,origin:c.origin});else Vr(s,c)}}function Vr(s,c){if(!(c.text.length==1&&c.text[0]==""&&fn(c.from,c.to)==0)){var b=io(s,c);fo(s,c,b,s.cm?s.cm.curOp.id:NaN),Ds(s,c,b,Ei(s,c));var y=[];_r(s,function(w,H){!H&&ce(y,w.history)==-1&&(ra(w.history,c),y.push(w.history)),Ds(w,c,null,Ei(w,c))})}}function $o(s,c,b){var y=s.cm&&s.cm.state.suppressEdits;if(!(y&&!b)){for(var w=s.history,H,ie=s.sel,Se=c=="undo"?w.done:w.undone,be=c=="undo"?w.undone:w.done,Ze=0;Ze<Se.length&&(H=Se[Ze],!(b?H.ranges&&!H.equals(s.sel):!H.ranges));Ze++);if(Ze!=Se.length){for(w.lastOrigin=w.lastSelOrigin=null;;)if(H=Se.pop(),H.ranges){if(Ta(H,be),b&&!H.equals(s.sel)){g(s,H,{clearRedo:!1});return}ie=H}else if(y){Se.push(H);return}else break;var Wt=[];Ta(ie,be),be.push({changes:Wt,generation:w.generation}),w.generation=H.generation||++w.maxGeneration;for(var st=rn(s,"beforeChange")||s.cm&&rn(s.cm,"beforeChange"),Tn=function(bi){var Di=H.changes[bi];if(Di.origin=c,st&&!Hi(s,Di,!1))return Se.length=0,{};Wt.push(ho(s,Di));var er=bi?io(s,Di):Jn(Se);Ds(s,Di,er,ta(s,Di)),!bi&&s.cm&&s.cm.scrollIntoView({from:Di.from,to:Xr(Di)});var Fr=[];_r(s,function(Sr,Gr){!Gr&&ce(Fr,Sr.history)==-1&&(ra(Sr.history,Di),Fr.push(Sr.history)),Ds(Sr,Di,null,ta(Sr,Di))})},En=H.changes.length-1;En>=0;--En){var ci=Tn(En);if(ci)return ci.v}}}}function Rs(s,c){if(c!=0&&(s.first+=c,s.sel=new si(Mn(s.sel.ranges,function(w){return new vi(ot(w.anchor.line+c,w.anchor.ch),ot(w.head.line+c,w.head.ch))}),s.sel.primIndex),s.cm)){Eo(s.cm,s.first,s.first-c,c);for(var b=s.cm.display,y=b.viewFrom;y<b.viewTo;y++)vo(s.cm,y,"gutter")}}function Ds(s,c,b,y){if(s.cm&&!s.cm.curOp)return ve(s.cm,Ds)(s,c,b,y);if(c.to.line<s.first){Rs(s,c.text.length-1-(c.to.line-c.from.line));return}if(!(c.from.line>s.lastLine())){if(c.from.line<s.first){var w=c.text.length-1-(s.first-c.from.line);Rs(s,w),c={from:ot(s.first,0),to:ot(c.to.line+w,c.to.ch),text:[Jn(c.text)],origin:c.origin}}var H=s.lastLine();c.to.line>H&&(c={from:c.from,to:ot(H,vn(s,H).text.length),text:[c.text[0]],origin:c.origin}),c.removed=Fn(s,c.from,c.to),b||(b=io(s,c)),s.cm?Ps(s.cm,c,y):pr(s,c,y),K(s,b,St),s.cantEdit&&Cr(s,ot(s.firstLine(),0))&&(s.cantEdit=!1)}}function Ps(s,c,b){var y=s.doc,w=s.display,H=c.from,ie=c.to,Se=!1,be=H.line;s.options.lineWrapping||(be=Ve(Ki(vn(y,H.line))),y.iter(be,ie.line+1,function(En){if(En==w.maxLine)return Se=!0,!0})),y.sel.contains(c.from,c.to)>-1&&dn(s),pr(y,c,b,Ca(s)),s.options.lineWrapping||(y.iter(be,H.line+c.text.length,function(En){var ci=oa(En);ci>w.maxLineLength&&(w.maxLine=En,w.maxLineLength=ci,w.maxLineChanged=!0,Se=!1)}),Se&&(s.curOp.updateMaxLine=!0)),Ln(y,H.line),zn(s,400);var Ze=c.text.length-(ie.line-H.line)-1;c.full?Eo(s):H.line==ie.line&&c.text.length==1&&!to(s.doc,c)?vo(s,H.line,"text"):Eo(s,H.line,ie.line+1,Ze);var Wt=rn(s,"changes"),st=rn(s,"change");if(st||Wt){var Tn={from:H,to:ie,text:c.text,removed:c.removed,origin:c.origin};st&&mi(s,"change",s,Tn),Wt&&(s.curOp.changeObjs||(s.curOp.changeObjs=[])).push(Tn)}s.display.selForContextMenu=null}function ol(s,c,b,y,w){var H;y||(y=b),fn(y,b)<0&&(H=[y,b],b=H[0],y=H[1]),typeof c=="string"&&(c=s.splitLines(c)),Or(s,{from:b,to:y,text:c,origin:w})}function Ts(s,c,b,y){b<s.line?s.line+=y:c<s.line&&(s.line=c,s.ch=0)}function po(s,c,b,y){for(var w=0;w<s.length;++w){var H=s[w],ie=!0;if(H.ranges){H.copied||(H=s[w]=H.deepCopy(),H.copied=!0);for(var Se=0;Se<H.ranges.length;Se++)Ts(H.ranges[Se].anchor,c,b,y),Ts(H.ranges[Se].head,c,b,y);continue}for(var be=0;be<H.changes.length;++be){var Ze=H.changes[be];if(b<Ze.from.line)Ze.from=ot(Ze.from.line+y,Ze.from.ch),Ze.to=ot(Ze.to.line+y,Ze.to.ch);else if(c<=Ze.to.line){ie=!1;break}}ie||(s.splice(0,w+1),w=0)}}function ra(s,c){var b=c.from.line,y=c.to.line,w=c.text.length-(y-b)-1;po(s.done,b,y,w),po(s.undone,b,y,w)}function Na(s,c,b,y){var w=c,H=c;return typeof c=="number"?H=vn(s,Jt(s,c)):w=Ve(c),w==null?null:(y(H,w)&&s.cm&&vo(s.cm,w,b),H)}function A(s){this.lines=s,this.parent=null;for(var c=0,b=0;b<s.length;++b)s[b].parent=this,c+=s[b].height;this.height=c}A.prototype={chunkSize:function(){return this.lines.length},removeInner:function(s,c){for(var b=s,y=s+c;b<y;++b){var w=this.lines[b];this.height-=w.height,ka(w),mi(w,"delete")}this.lines.splice(s,c)},collapse:function(s){s.push.apply(s,this.lines)},insertInner:function(s,c,b){this.height+=b,this.lines=this.lines.slice(0,s).concat(c).concat(this.lines.slice(s));for(var y=0;y<c.length;++y)c[y].parent=this},iterN:function(s,c,b){for(var y=s+c;s<y;++s)if(b(this.lines[s]))return!0}};function m(s){this.children=s;for(var c=0,b=0,y=0;y<s.length;++y){var w=s[y];c+=w.chunkSize(),b+=w.height,w.parent=this}this.size=c,this.height=b,this.parent=null}m.prototype={chunkSize:function(){return this.size},removeInner:function(s,c){this.size-=c;for(var b=0;b<this.children.length;++b){var y=this.children[b],w=y.chunkSize();if(s<w){var H=Math.min(c,w-s),ie=y.height;if(y.removeInner(s,H),this.height-=ie-y.height,w==H&&(this.children.splice(b--,1),y.parent=null),(c-=H)==0)break;s=0}else s-=w}if(this.size-c<25&&(this.children.length>1||!(this.children[0]instanceof A))){var Se=[];this.collapse(Se),this.children=[new A(Se)],this.children[0].parent=this}},collapse:function(s){for(var c=0;c<this.children.length;++c)this.children[c].collapse(s)},insertInner:function(s,c,b){this.size+=c.length,this.height+=b;for(var y=0;y<this.children.length;++y){var w=this.children[y],H=w.chunkSize();if(s<=H){if(w.insertInner(s,c,b),w.lines&&w.lines.length>50){for(var ie=w.lines.length%25+25,Se=ie;Se<w.lines.length;){var be=new A(w.lines.slice(Se,Se+=25));w.height-=be.height,this.children.splice(++y,0,be),be.parent=this}w.lines=w.lines.slice(0,ie),this.maybeSpill()}break}s-=H}},maybeSpill:function(){if(!(this.children.length<=10)){var s=this;do{var c=s.children.splice(s.children.length-5,5),b=new m(c);if(s.parent){s.size-=b.size,s.height-=b.height;var w=ce(s.parent.children,s);s.parent.children.splice(w+1,0,b)}else{var y=new m(s.children);y.parent=s,s.children=[y,b],s=y}b.parent=s.parent}while(s.children.length>10);s.parent.maybeSpill()}},iterN:function(s,c,b){for(var y=0;y<this.children.length;++y){var w=this.children[y],H=w.chunkSize();if(s<H){var ie=Math.min(c,H-s);if(w.iterN(s,ie,b))return!0;if((c-=ie)==0)break;s=0}else s-=H}}};var S=function(s,c,b){if(b)for(var y in b)b.hasOwnProperty(y)&&(this[y]=b[y]);this.doc=s,this.node=c};S.prototype.clear=function(){var s=this.doc.cm,c=this.line.widgets,b=this.line,y=Ve(b);if(!(y==null||!c)){for(var w=0;w<c.length;++w)c[w]==this&&c.splice(w--,1);c.length||(b.widgets=null);var H=ws(this);Nt(b,Math.max(0,b.height-H)),s&&(Dt(s,function(){D(s,b,-H),vo(s,y,"widget")}),mi(s,"lineWidgetCleared",s,this,y))}},S.prototype.changed=function(){var s=this,c=this.height,b=this.doc.cm,y=this.line;this.height=null;var w=ws(this)-c;w&&(pi(this.doc,y)||Nt(y,y.height+w),b&&Dt(b,function(){b.curOp.forceUpdate=!0,D(b,y,w),mi(b,"lineWidgetChanged",b,s,Ve(y))}))},ze(S);function D(s,c,b){Uo(c)<(s.curOp&&s.curOp.scrollTop||s.doc.scrollTop)&&Uu(s,b)}function Z(s,c,b,y){var w=new S(s,b,y),H=s.cm;return H&&w.noHScroll&&(H.display.alignWidgets=!0),Na(s,c,"widget",function(ie){var Se=ie.widgets||(ie.widgets=[]);if(w.insertAt==null?Se.push(w):Se.splice(Math.min(Se.length-1,Math.max(0,w.insertAt)),0,w),w.line=ie,H&&!pi(s,ie)){var be=Uo(ie)<s.scrollTop;Nt(ie,ie.height+ws(w)),be&&Uu(H,w.height),H.curOp.forceUpdate=!0}return!0}),H&&mi(H,"lineWidgetAdded",H,w,typeof c=="number"?c:Ve(c)),w}var se=0,Y=function(s,c){this.lines=[],this.type=c,this.doc=s,this.id=++se};Y.prototype.clear=function(){if(!this.explicitlyCleared){var s=this.doc.cm,c=s&&!s.curOp;if(c&&ys(s),rn(this,"clear")){var b=this.find();b&&mi(this,"clear",b.from,b.to)}for(var y=null,w=null,H=0;H<this.lines.length;++H){var ie=this.lines[H],Se=Yr(ie.markedSpans,this);s&&!this.collapsed?vo(s,Ve(ie),"text"):s&&(Se.to!=null&&(w=Ve(ie)),Se.from!=null&&(y=Ve(ie))),ie.markedSpans=Mt(ie.markedSpans,Se),Se.from==null&&this.collapsed&&!pi(this.doc,ie)&&s&&Nt(ie,ml(s.display))}if(s&&this.collapsed&&!s.options.lineWrapping)for(var be=0;be<this.lines.length;++be){var Ze=Ki(this.lines[be]),Wt=oa(Ze);Wt>s.display.maxLineLength&&(s.display.maxLine=Ze,s.display.maxLineLength=Wt,s.display.maxLineChanged=!0)}y!=null&&s&&this.collapsed&&Eo(s,y,w+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,s&&gn(s.doc)),s&&mi(s,"markerCleared",s,this,y,w),c&&iu(s),this.parent&&this.parent.clear()}},Y.prototype.find=function(s,c){s==null&&this.type=="bookmark"&&(s=1);for(var b,y,w=0;w<this.lines.length;++w){var H=this.lines[w],ie=Yr(H.markedSpans,this);if(ie.from!=null&&(b=ot(c?H:Ve(H),ie.from),s==-1))return b;if(ie.to!=null&&(y=ot(c?H:Ve(H),ie.to),s==1))return y}return b&&{from:b,to:y}},Y.prototype.changed=function(){var s=this,c=this.find(-1,!0),b=this,y=this.doc.cm;!c||!y||Dt(y,function(){var w=c.line,H=Ve(c.line),ie=Ga(y,H);if(ie&&(ha(ie),y.curOp.selectionChanged=y.curOp.forceUpdate=!0),y.curOp.updateMaxLine=!0,!pi(b.doc,w)&&b.height!=null){var Se=b.height;b.height=null;var be=ws(b)-Se;be&&Nt(w,w.height+be)}mi(y,"markerChanged",y,s)})},Y.prototype.attachLine=function(s){if(!this.lines.length&&this.doc.cm){var c=this.doc.cm.curOp;(!c.maybeHiddenMarkers||ce(c.maybeHiddenMarkers,this)==-1)&&(c.maybeUnhiddenMarkers||(c.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(s)},Y.prototype.detachLine=function(s){if(this.lines.splice(ce(this.lines,s),1),!this.lines.length&&this.doc.cm){var c=this.doc.cm.curOp;(c.maybeHiddenMarkers||(c.maybeHiddenMarkers=[])).push(this)}},ze(Y);function ct(s,c,b,y,w){if(y&&y.shared)return Sn(s,c,b,y,w);if(s.cm&&!s.cm.curOp)return ve(s.cm,ct)(s,c,b,y,w);var H=new Y(s,w),ie=fn(c,b);if(y&&Cn(y,H,!1),ie>0||ie==0&&H.clearWhenEmpty!==!1)return H;if(H.replacedWith&&(H.collapsed=!0,H.widgetNode=Ye("span",[H.replacedWith],"CodeMirror-widget"),y.handleMouseEvents||H.widgetNode.setAttribute("cm-ignore-events","true"),y.insertLeft&&(H.widgetNode.insertLeft=!0)),H.collapsed){if(hr(s,c.line,c,b,H)||c.line!=b.line&&hr(s,b.line,c,b,H))throw new Error("Inserting collapsed marker partially overlapping an existing one");Xt()}H.addToHistory&&fo(s,{from:c,to:b,origin:"markText"},s.sel,NaN);var Se=c.line,be=s.cm,Ze;if(s.iter(Se,b.line+1,function(st){be&&H.collapsed&&!be.options.lineWrapping&&Ki(st)==be.display.maxLine&&(Ze=!0),H.collapsed&&Se!=c.line&&Nt(st,0),Qr(st,new Li(H,Se==c.line?c.ch:null,Se==b.line?b.ch:null)),++Se}),H.collapsed&&s.iter(c.line,b.line+1,function(st){pi(s,st)&&Nt(st,0)}),H.clearOnEnter&&Kt(H,"beforeCursorEnter",function(){return H.clear()}),H.readOnly&&(xi(),(s.history.done.length||s.history.undone.length)&&s.clearHistory()),H.collapsed&&(H.id=++se,H.atomic=!0),be){if(Ze&&(be.curOp.updateMaxLine=!0),H.collapsed)Eo(be,c.line,b.line+1);else if(H.className||H.startStyle||H.endStyle||H.css||H.attributes||H.title)for(var Wt=c.line;Wt<=b.line;Wt++)vo(be,Wt,"text");H.atomic&&gn(be.doc),mi(be,"markerAdded",be,H)}return H}var ft=function(s,c){this.markers=s,this.primary=c;for(var b=0;b<s.length;++b)s[b].parent=this};ft.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var s=0;s<this.markers.length;++s)this.markers[s].clear();mi(this,"clear")}},ft.prototype.find=function(s,c){return this.primary.find(s,c)},ze(ft);function Sn(s,c,b,y,w){y=Cn(y),y.shared=!1;var H=[ct(s,c,b,y,w)],ie=H[0],Se=y.widgetNode;return _r(s,function(be){Se&&(y.widgetNode=Se.cloneNode(!0)),H.push(ct(be,mt(be,c),mt(be,b),y,w));for(var Ze=0;Ze<be.linked.length;++Ze)if(be.linked[Ze].isParent)return;ie=Jn(H)}),new ft(H,ie)}function Bn(s){return s.findMarks(ot(s.first,0),s.clipPos(ot(s.lastLine())),function(c){return c.parent})}function Qn(s,c){for(var b=0;b<c.length;b++){var y=c[b],w=y.find(),H=s.clipPos(w.from),ie=s.clipPos(w.to);if(fn(H,ie)){var Se=ct(s,H,ie,y.primary,y.primary.type);y.markers.push(Se),Se.parent=y}}}function Ti(s){for(var c=function(y){var w=s[y],H=[w.primary.doc];_r(w.primary.doc,function(be){return H.push(be)});for(var ie=0;ie<w.markers.length;ie++){var Se=w.markers[ie];ce(H,Se.doc)==-1&&(Se.parent=null,w.markers.splice(ie--,1))}},b=0;b<s.length;b++)c(b)}var Ni=0,$i=function(s,c,b,y,w){if(!(this instanceof $i))return new $i(s,c,b,y,w);b==null&&(b=0),m.call(this,[new A([new $a("",null)])]),this.first=b,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=b;var H=ot(b,0);this.sel=Mr(H),this.history=new sr(null),this.id=++Ni,this.modeOption=c,this.lineSep=y,this.direction=w=="rtl"?"rtl":"ltr",this.extend=!1,typeof s=="string"&&(s=this.splitLines(s)),pr(this,{from:H,to:H,text:s}),g(this,Mr(H),St)};$i.prototype=z(m.prototype,{constructor:$i,iter:function(s,c,b){b?this.iterN(s-this.first,c-s,b):this.iterN(this.first,this.first+this.size,s)},insert:function(s,c){for(var b=0,y=0;y<c.length;++y)b+=c[y].height;this.insertInner(s-this.first,c,b)},remove:function(s,c){this.removeInner(s-this.first,c)},getValue:function(s){var c=on(this,this.first,this.first+this.size);return s===!1?c:c.join(s||this.lineSeparator())},setValue:ln(function(s){var c=ot(this.first,0),b=this.first+this.size-1;Or(this,{from:c,to:ot(b,vn(this,b).text.length),text:this.splitLines(s),origin:"setValue",full:!0},!0),this.cm&&Zs(this.cm,0,0),g(this,Mr(c),St)}),replaceRange:function(s,c,b,y){c=mt(this,c),b=b?mt(this,b):c,ol(this,s,c,b,y)},getRange:function(s,c,b){var y=Fn(this,mt(this,s),mt(this,c));return b===!1?y:y.join(b||this.lineSeparator())},getLine:function(s){var c=this.getLineHandle(s);return c&&c.text},getLineHandle:function(s){if(Lt(this,s))return vn(this,s)},getLineNumber:function(s){return Ve(s)},getLineHandleVisualStart:function(s){return typeof s=="number"&&(s=vn(this,s)),Ki(s)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(s){return mt(this,s)},getCursor:function(s){var c=this.sel.primary(),b;return s==null||s=="head"?b=c.head:s=="anchor"?b=c.anchor:s=="end"||s=="to"||s===!1?b=c.to():b=c.from(),b},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ln(function(s,c,b){Sa(this,mt(this,typeof s=="number"?ot(s,c||0):s),null,b)}),setSelection:ln(function(s,c,b){Sa(this,mt(this,s),mt(this,c||s),b)}),extendSelection:ln(function(s,c,b){ko(this,mt(this,s),c&&mt(this,c),b)}),extendSelections:ln(function(s,c){Ho(this,An(this,s),c)}),extendSelectionsBy:ln(function(s,c){var b=Mn(this.sel.ranges,s);Ho(this,An(this,b),c)}),setSelections:ln(function(s,c,b){if(s.length){for(var y=[],w=0;w<s.length;w++)y[w]=new vi(mt(this,s[w].anchor),mt(this,s[w].head));c==null&&(c=Math.min(s.length-1,this.sel.primIndex)),g(this,Pi(this.cm,y,c),b)}}),addSelection:ln(function(s,c,b){var y=this.sel.ranges.slice(0);y.push(new vi(mt(this,s),mt(this,c||s))),g(this,Pi(this.cm,y,y.length-1),b)}),getSelection:function(s){for(var c=this.sel.ranges,b,y=0;y<c.length;y++){var w=Fn(this,c[y].from(),c[y].to());b=b?b.concat(w):w}return s===!1?b:b.join(s||this.lineSeparator())},getSelections:function(s){for(var c=[],b=this.sel.ranges,y=0;y<b.length;y++){var w=Fn(this,b[y].from(),b[y].to());s!==!1&&(w=w.join(s||this.lineSeparator())),c[y]=w}return c},replaceSelection:function(s,c,b){for(var y=[],w=0;w<this.sel.ranges.length;w++)y[w]=s;this.replaceSelections(y,c,b||"+input")},replaceSelections:ln(function(s,c,b){for(var y=[],w=this.sel,H=0;H<w.ranges.length;H++){var ie=w.ranges[H];y[H]={from:ie.from(),to:ie.to(),text:this.splitLines(s[H]),origin:b}}for(var Se=c&&c!="end"&&dr(this,y,c),be=y.length-1;be>=0;be--)Or(this,y[be]);Se?d(this,Se):this.cm&&vl(this.cm)}),undo:ln(function(){$o(this,"undo")}),redo:ln(function(){$o(this,"redo")}),undoSelection:ln(function(){$o(this,"undo",!0)}),redoSelection:ln(function(){$o(this,"redo",!0)}),setExtending:function(s){this.extend=s},getExtending:function(){return this.extend},historySize:function(){for(var s=this.history,c=0,b=0,y=0;y<s.done.length;y++)s.done[y].ranges||++c;for(var w=0;w<s.undone.length;w++)s.undone[w].ranges||++b;return{undo:c,redo:b}},clearHistory:function(){var s=this;this.history=new sr(this.history.maxGeneration),_r(this,function(c){return c.history=s.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(s){return s&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(s){return this.history.generation==(s||this.cleanGeneration)},getHistory:function(){return{done:ya(this.history.done),undone:ya(this.history.undone)}},setHistory:function(s){var c=this.history=new sr(this.history.maxGeneration);c.done=ya(s.done.slice(0),null,!0),c.undone=ya(s.undone.slice(0),null,!0)},setGutterMarker:ln(function(s,c,b){return Na(this,s,"gutter",function(y){var w=y.gutterMarkers||(y.gutterMarkers={});return w[c]=b,!b&&T(w)&&(y.gutterMarkers=null),!0})}),clearGutter:ln(function(s){var c=this;this.iter(function(b){b.gutterMarkers&&b.gutterMarkers[s]&&Na(c,b,"gutter",function(){return b.gutterMarkers[s]=null,T(b.gutterMarkers)&&(b.gutterMarkers=null),!0})})}),lineInfo:function(s){var c;if(typeof s=="number"){if(!Lt(this,s)||(c=s,s=vn(this,s),!s))return null}else if(c=Ve(s),c==null)return null;return{line:c,handle:s,text:s.text,gutterMarkers:s.gutterMarkers,textClass:s.textClass,bgClass:s.bgClass,wrapClass:s.wrapClass,widgets:s.widgets}},addLineClass:ln(function(s,c,b){return Na(this,s,c=="gutter"?"gutter":"class",function(y){var w=c=="text"?"textClass":c=="background"?"bgClass":c=="gutter"?"gutterClass":"wrapClass";if(!y[w])y[w]=b;else{if(ee(b).test(y[w]))return!1;y[w]+=" "+b}return!0})}),removeLineClass:ln(function(s,c,b){return Na(this,s,c=="gutter"?"gutter":"class",function(y){var w=c=="text"?"textClass":c=="background"?"bgClass":c=="gutter"?"gutterClass":"wrapClass",H=y[w];if(H)if(b==null)y[w]=null;else{var ie=H.match(ee(b));if(!ie)return!1;var Se=ie.index+ie[0].length;y[w]=H.slice(0,ie.index)+(!ie.index||Se==H.length?"":" ")+H.slice(Se)||null}else return!1;return!0})}),addLineWidget:ln(function(s,c,b){return Z(this,s,c,b)}),removeLineWidget:function(s){s.clear()},markText:function(s,c,b){return ct(this,mt(this,s),mt(this,c),b,b&&b.type||"range")},setBookmark:function(s,c){var b={replacedWith:c&&(c.nodeType==null?c.widget:c),insertLeft:c&&c.insertLeft,clearWhenEmpty:!1,shared:c&&c.shared,handleMouseEvents:c&&c.handleMouseEvents};return s=mt(this,s),ct(this,s,s,b,"bookmark")},findMarksAt:function(s){s=mt(this,s);var c=[],b=vn(this,s.line).markedSpans;if(b)for(var y=0;y<b.length;++y){var w=b[y];(w.from==null||w.from<=s.ch)&&(w.to==null||w.to>=s.ch)&&c.push(w.marker.parent||w.marker)}return c},findMarks:function(s,c,b){s=mt(this,s),c=mt(this,c);var y=[],w=s.line;return this.iter(s.line,c.line+1,function(H){var ie=H.markedSpans;if(ie)for(var Se=0;Se<ie.length;Se++){var be=ie[Se];!(be.to!=null&&w==s.line&&s.ch>=be.to||be.from==null&&w!=s.line||be.from!=null&&w==c.line&&be.from>=c.ch)&&(!b||b(be.marker))&&y.push(be.marker.parent||be.marker)}++w}),y},getAllMarks:function(){var s=[];return this.iter(function(c){var b=c.markedSpans;if(b)for(var y=0;y<b.length;++y)b[y].from!=null&&s.push(b[y].marker)}),s},posFromIndex:function(s){var c,b=this.first,y=this.lineSeparator().length;return this.iter(function(w){var H=w.text.length+y;if(H>s)return c=s,!0;s-=H,++b}),mt(this,ot(b,c))},indexFromPos:function(s){s=mt(this,s);var c=s.ch;if(s.line<this.first||s.ch<0)return 0;var b=this.lineSeparator().length;return this.iter(this.first,s.line,function(y){c+=y.text.length+b}),c},copy:function(s){var c=new $i(on(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return c.scrollTop=this.scrollTop,c.scrollLeft=this.scrollLeft,c.sel=this.sel,c.extend=!1,s&&(c.history.undoDepth=this.history.undoDepth,c.setHistory(this.getHistory())),c},linkedDoc:function(s){s||(s={});var c=this.first,b=this.first+this.size;s.from!=null&&s.from>c&&(c=s.from),s.to!=null&&s.to<b&&(b=s.to);var y=new $i(on(this,c,b),s.mode||this.modeOption,c,this.lineSep,this.direction);return s.sharedHist&&(y.history=this.history),(this.linked||(this.linked=[])).push({doc:y,sharedHist:s.sharedHist}),y.linked=[{doc:this,isParent:!0,sharedHist:s.sharedHist}],Qn(y,Bn(this)),y},unlinkDoc:function(s){if(s instanceof Ea&&(s=s.doc),this.linked)for(var c=0;c<this.linked.length;++c){var b=this.linked[c];if(b.doc==s){this.linked.splice(c,1),s.unlinkDoc(this),Ti(Bn(this));break}}if(s.history==this.history){var y=[s.id];_r(s,function(w){return y.push(w.id)},!0),s.history=new sr(null),s.history.done=ya(this.history.done,y),s.history.undone=ya(this.history.undone,y)}},iterLinkedDocs:function(s){_r(this,s)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(s){return this.lineSep?s.split(this.lineSep):ur(s)},lineSeparator:function(){return this.lineSep||`
`},setDirection:ln(function(s){s!="rtl"&&(s="ltr"),s!=this.direction&&(this.direction=s,this.iter(function(c){return c.order=null}),this.cm&&vr(this.cm))})}),$i.prototype.eachLine=$i.prototype.iter;var Nr=0;function $r(s){var c=this;if(jo(c),!(zt(c,s)||Os(c.display,s))){Un(s),G&&(Nr=+new Date);var b=fs(c,s,!0),y=s.dataTransfer.files;if(!(!b||c.isReadOnly()))if(y&&y.length&&window.FileReader&&window.File)for(var w=y.length,H=Array(w),ie=0,Se=function(){++ie==w&&ve(c,function(){b=mt(c.doc,b);var En={from:b,to:b,text:c.doc.splitLines(H.filter(function(ci){return ci!=null}).join(c.doc.lineSeparator())),origin:"paste"};Or(c.doc,En),d(c.doc,Mr(mt(c.doc,b),mt(c.doc,Xr(En))))})()},be=function(En,ci){if(c.options.allowDropFileTypes&&ce(c.options.allowDropFileTypes,En.type)==-1){Se();return}var bi=new FileReader;bi.onerror=function(){return Se()},bi.onload=function(){var Di=bi.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Di)){Se();return}H[ci]=Di,Se()},bi.readAsText(En)},Ze=0;Ze<y.length;Ze++)be(y[Ze],Ze);else{if(c.state.draggingText&&c.doc.sel.contains(b)>-1){c.state.draggingText(s),setTimeout(function(){return c.display.input.focus()},20);return}try{var Wt=s.dataTransfer.getData("Text");if(Wt){var st;if(c.state.draggingText&&!c.state.draggingText.copy&&(st=c.listSelections()),K(c.doc,Mr(b,b)),st)for(var Tn=0;Tn<st.length;++Tn)ol(c.doc,"",st[Tn].anchor,st[Tn].head,"drag");c.replaceSelection(Wt,"around","paste"),c.display.input.focus()}}catch(En){}}}}function jr(s,c){if(G&&(!s.state.draggingText||+new Date-Nr<100)){Si(c);return}if(!(zt(s,c)||Os(s.display,c))&&(c.dataTransfer.setData("Text",s.getSelection()),c.dataTransfer.effectAllowed="copyMove",c.dataTransfer.setDragImage&&!Ne)){var b=Je("img",null,null,"position: fixed; left: 0; top: 0;");b.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",te&&(b.width=b.height=1,s.display.wrapper.appendChild(b),b._top=b.offsetTop),c.dataTransfer.setDragImage(b,0,0),te&&b.parentNode.removeChild(b)}}function To(s,c){var b=fs(s,c);if(b){var y=document.createDocumentFragment();Ro(s,b,y),s.display.dragCursor||(s.display.dragCursor=Je("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),s.display.lineSpace.insertBefore(s.display.dragCursor,s.display.cursorDiv)),Le(s.display.dragCursor,y)}}function jo(s){s.display.dragCursor&&(s.display.lineSpace.removeChild(s.display.dragCursor),s.display.dragCursor=null)}function Ra(s){if(document.getElementsByClassName){for(var c=document.getElementsByClassName("CodeMirror"),b=[],y=0;y<c.length;y++){var w=c[y].CodeMirror;w&&b.push(w)}b.length&&b[0].operation(function(){for(var H=0;H<b.length;H++)s(b[H])})}}var na=!1;function Yo(){na||(fa(),na=!0)}function fa(){var s;Kt(window,"resize",function(){s==null&&(s=setTimeout(function(){s=null,Ra(ls)},100))}),Kt(window,"blur",function(){return Ra(fu)})}function ls(s){var c=s.display;c.cachedCharWidth=c.cachedTextHeight=c.cachedPaddingH=null,c.scrollbarsClipped=!1,s.setSize()}for(var ua={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"},Sl=0;Sl<10;Sl++)ua[Sl+48]=ua[Sl+96]=String(Sl);for(var Us=65;Us<=90;Us++)ua[Us]=String.fromCharCode(Us);for(var us=1;us<=12;us++)ua[us+111]=ua[us+63235]="F"+us;var Ns={};Ns.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"},Ns.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"},Ns.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ns.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"]},Ns.default=Re?Ns.macDefault:Ns.pcDefault;function al(s){var c=s.split(/-(?!$)/);s=c[c.length-1];for(var b,y,w,H,ie=0;ie<c.length-1;ie++){var Se=c[ie];if(/^(cmd|meta|m)$/i.test(Se))H=!0;else if(/^a(lt)?$/i.test(Se))b=!0;else if(/^(c|ctrl|control)$/i.test(Se))y=!0;else if(/^s(hift)?$/i.test(Se))w=!0;else throw new Error("Unrecognized modifier name: "+Se)}return b&&(s="Alt-"+s),y&&(s="Ctrl-"+s),H&&(s="Cmd-"+s),w&&(s="Shift-"+s),s}function Vl(s){var c={};for(var b in s)if(s.hasOwnProperty(b)){var y=s[b];if(/^(name|fallthrough|(de|at)tach)$/.test(b))continue;if(y=="..."){delete s[b];continue}for(var w=Mn(b.split(" "),al),H=0;H<w.length;H++){var ie=void 0,Se=void 0;H==w.length-1?(Se=w.join(" "),ie=y):(Se=w.slice(0,H+1).join(" "),ie="...");var be=c[Se];if(!be)c[Se]=ie;else if(be!=ie)throw new Error("Inconsistent bindings for "+Se)}delete s[b]}for(var Ze in c)s[Ze]=c[Ze];return s}function Fs(s,c,b,y){c=Pl(c);var w=c.call?c.call(s,y):c[s];if(w===!1)return"nothing";if(w==="...")return"multi";if(w!=null&&b(w))return"handled";if(c.fallthrough){if(Object.prototype.toString.call(c.fallthrough)!="[object Array]")return Fs(s,c.fallthrough,b,y);for(var H=0;H<c.fallthrough.length;H++){var ie=Fs(s,c.fallthrough[H],b,y);if(ie)return ie}}}function ku(s){var c=typeof s=="string"?s:ua[s.keyCode];return c=="Ctrl"||c=="Alt"||c=="Shift"||c=="Mod"}function ec(s,c,b){var y=s;return c.altKey&&y!="Alt"&&(s="Alt-"+s),(pe?c.metaKey:c.ctrlKey)&&y!="Ctrl"&&(s="Ctrl-"+s),(pe?c.ctrlKey:c.metaKey)&&y!="Mod"&&(s="Cmd-"+s),!b&&c.shiftKey&&y!="Shift"&&(s="Shift-"+s),s}function Pc(s,c){if(te&&s.keyCode==34&&s.char)return!1;var b=ua[s.keyCode];return b==null||s.altGraphKey?!1:(s.keyCode==3&&s.code&&(b=s.code),ec(b,s,c))}function Pl(s){return typeof s=="string"?Ns[s]:s}function ps(s,c){for(var b=s.doc.sel.ranges,y=[],w=0;w<b.length;w++){for(var H=c(b[w]);y.length&&fn(H.from,Jn(y).to)<=0;){var ie=y.pop();if(fn(ie.from,H.from)<0){H.from=ie.from;break}}y.push(H)}Dt(s,function(){for(var Se=y.length-1;Se>=0;Se--)ol(s.doc,"",y[Se].from,y[Se].to,"+delete");vl(s)})}function Fl(s,c,b){var y=$e(s.text,c+b,b);return y<0||y>s.text.length?null:y}function Ka(s,c,b){var y=Fl(s,c.ch,b);return y==null?null:new ot(c.line,y,b<0?"after":"before")}function ea(s,c,b,y,w){if(s){c.doc.direction=="rtl"&&(w=-w);var H=pn(b,c.doc.direction);if(H){var ie=w<0?Jn(H):H[0],Se=w<0==(ie.level==1),be=Se?"after":"before",Ze;if(ie.level>0||c.doc.direction=="rtl"){var Wt=os(c,b);Ze=w<0?b.text.length-1:0;var st=_s(c,Wt,Ze).top;Ze=Pe(function(Tn){return _s(c,Wt,Tn).top==st},w<0==(ie.level==1)?ie.from:ie.to-1,Ze),be=="before"&&(Ze=Fl(b,Ze,1))}else Ze=w<0?ie.to:ie.from;return new ot(y,Ze,be)}}return new ot(y,w<0?b.text.length:0,w<0?"before":"after")}function ba(s,c,b,y){var w=pn(c,s.doc.direction);if(!w)return Ka(c,b,y);b.ch>=c.text.length?(b.ch=c.text.length,b.sticky="before"):b.ch<=0&&(b.ch=0,b.sticky="after");var H=tt(w,b.ch,b.sticky),ie=w[H];if(s.doc.direction=="ltr"&&ie.level%2==0&&(y>0?ie.to>b.ch:ie.from<b.ch))return Ka(c,b,y);var Se=function(er,Fr){return Fl(c,er instanceof ot?er.ch:er,Fr)},be,Ze=function(er){return s.options.lineWrapping?(be=be||os(s,c),Ks(s,c,be,er)):{begin:0,end:c.text.length}},Wt=Ze(b.sticky=="before"?Se(b,-1):b.ch);if(s.doc.direction=="rtl"||ie.level==1){var st=ie.level==1==y<0,Tn=Se(b,st?1:-1);if(Tn!=null&&(st?Tn<=ie.to&&Tn<=Wt.end:Tn>=ie.from&&Tn>=Wt.begin)){var En=st?"before":"after";return new ot(b.line,Tn,En)}}var ci=function(er,Fr,Sr){for(var Gr=function(cs,ll){return ll?new ot(b.line,Se(cs,1),"before"):new ot(b.line,cs,"after")};er>=0&&er<w.length;er+=Fr){var mo=w[er],yr=Fr>0==(mo.level!=1),zo=yr?Sr.begin:Se(Sr.end,-1);if(mo.from<=zo&&zo<mo.to||(zo=yr?mo.from:Se(mo.to,-1),Sr.begin<=zo&&zo<Sr.end))return Gr(zo,yr)}},bi=ci(H+y,y,Wt);if(bi)return bi;var Di=y>0?Wt.end:Se(Wt.begin,-1);return Di!=null&&!(y>0&&Di==c.text.length)&&(bi=ci(y>0?0:w.length-1,y,Ze(Di)),bi)?bi:null}var Hs={selectAll:Gn,singleSelection:function(s){return s.setSelection(s.getCursor("anchor"),s.getCursor("head"),St)},killLine:function(s){return ps(s,function(c){if(c.empty()){var b=vn(s.doc,c.head.line).text.length;return c.head.ch==b&&c.head.line<s.lastLine()?{from:c.head,to:ot(c.head.line+1,0)}:{from:c.head,to:ot(c.head.line,b)}}else return{from:c.from(),to:c.to()}})},deleteLine:function(s){return ps(s,function(c){return{from:ot(c.from().line,0),to:mt(s.doc,ot(c.to().line+1,0))}})},delLineLeft:function(s){return ps(s,function(c){return{from:ot(c.from().line,0),to:c.from()}})},delWrappedLineLeft:function(s){return ps(s,function(c){var b=s.charCoords(c.head,"div").top+5,y=s.coordsChar({left:0,top:b},"div");return{from:y,to:c.from()}})},delWrappedLineRight:function(s){return ps(s,function(c){var b=s.charCoords(c.head,"div").top+5,y=s.coordsChar({left:s.display.lineDiv.offsetWidth+100,top:b},"div");return{from:c.from(),to:y}})},undo:function(s){return s.undo()},redo:function(s){return s.redo()},undoSelection:function(s){return s.undoSelection()},redoSelection:function(s){return s.redoSelection()},goDocStart:function(s){return s.extendSelection(ot(s.firstLine(),0))},goDocEnd:function(s){return s.extendSelection(ot(s.lastLine()))},goLineStart:function(s){return s.extendSelectionsBy(function(c){return Xs(s,c.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(s){return s.extendSelectionsBy(function(c){return Cc(s,c.head)},{origin:"+move",bias:1})},goLineEnd:function(s){return s.extendSelectionsBy(function(c){return Qs(s,c.head.line)},{origin:"+move",bias:-1})},goLineRight:function(s){return s.extendSelectionsBy(function(c){var b=s.cursorCoords(c.head,"div").top+5;return s.coordsChar({left:s.display.lineDiv.offsetWidth+100,top:b},"div")},Ft)},goLineLeft:function(s){return s.extendSelectionsBy(function(c){var b=s.cursorCoords(c.head,"div").top+5;return s.coordsChar({left:0,top:b},"div")},Ft)},goLineLeftSmart:function(s){return s.extendSelectionsBy(function(c){var b=s.cursorCoords(c.head,"div").top+5,y=s.coordsChar({left:0,top:b},"div");return y.ch<s.getLine(y.line).search(/\S/)?Cc(s,c.head):y},Ft)},goLineUp:function(s){return s.moveV(-1,"line")},goLineDown:function(s){return s.moveV(1,"line")},goPageUp:function(s){return s.moveV(-1,"page")},goPageDown:function(s){return s.moveV(1,"page")},goCharLeft:function(s){return s.moveH(-1,"char")},goCharRight:function(s){return s.moveH(1,"char")},goColumnLeft:function(s){return s.moveH(-1,"column")},goColumnRight:function(s){return s.moveH(1,"column")},goWordLeft:function(s){return s.moveH(-1,"word")},goGroupRight:function(s){return s.moveH(1,"group")},goGroupLeft:function(s){return s.moveH(-1,"group")},goWordRight:function(s){return s.moveH(1,"word")},delCharBefore:function(s){return s.deleteH(-1,"codepoint")},delCharAfter:function(s){return s.deleteH(1,"char")},delWordBefore:function(s){return s.deleteH(-1,"word")},delWordAfter:function(s){return s.deleteH(1,"word")},delGroupBefore:function(s){return s.deleteH(-1,"group")},delGroupAfter:function(s){return s.deleteH(1,"group")},indentAuto:function(s){return s.indentSelection("smart")},indentMore:function(s){return s.indentSelection("add")},indentLess:function(s){return s.indentSelection("subtract")},insertTab:function(s){return s.replaceSelection(" ")},insertSoftTab:function(s){for(var c=[],b=s.listSelections(),y=s.options.tabSize,w=0;w<b.length;w++){var H=b[w].from(),ie=Qe(s.getLine(H.line),H.ch,y);c.push(ni(y-ie%y))}s.replaceSelections(c)},defaultTab:function(s){s.somethingSelected()?s.indentSelection("add"):s.execCommand("insertTab")},transposeChars:function(s){return Dt(s,function(){for(var c=s.listSelections(),b=[],y=0;y<c.length;y++)if(c[y].empty()){var w=c[y].head,H=vn(s.doc,w.line).text;if(H){if(w.ch==H.length&&(w=new ot(w.line,w.ch-1)),w.ch>0)w=new ot(w.line,w.ch+1),s.replaceRange(H.charAt(w.ch-1)+H.charAt(w.ch-2),ot(w.line,w.ch-2),w,"+transpose");else if(w.line>s.doc.first){var ie=vn(s.doc,w.line-1).text;ie&&(w=new ot(w.line,1),s.replaceRange(H.charAt(0)+s.doc.lineSeparator()+ie.charAt(ie.length-1),ot(w.line-1,ie.length-1),w,"+transpose"))}}b.push(new vi(w,w))}s.setSelections(b)})},newlineAndIndent:function(s){return Dt(s,function(){for(var c=s.listSelections(),b=c.length-1;b>=0;b--)s.replaceRange(s.doc.lineSeparator(),c[b].anchor,c[b].head,"+input");c=s.listSelections();for(var y=0;y<c.length;y++)s.indentLine(c[y].from().line,null,!0);vl(s)})},openLine:function(s){return s.replaceSelection(`
`,"start")},toggleOverwrite:function(s){return s.toggleOverwrite()}};function Xs(s,c){var b=vn(s.doc,c),y=Ki(b);return y!=b&&(c=Ve(y)),ea(!0,s,y,c,1)}function Qs(s,c){var b=vn(s.doc,c),y=Lr(b);return y!=b&&(c=Ve(y)),ea(!0,s,b,c,-1)}function Cc(s,c){var b=Xs(s,c.line),y=vn(s.doc,b.line),w=pn(y,s.doc.direction);if(!w||w[0].level==0){var H=Math.max(b.ch,y.text.search(/\S/)),ie=c.line==b.line&&c.ch<=H&&c.ch;return ot(b.line,ie?0:H,b.sticky)}return b}function Iu(s,c,b){if(typeof c=="string"&&(c=Hs[c],!c))return!1;s.display.input.ensurePolled();var y=s.display.shift,w=!1;try{s.isReadOnly()&&(s.state.suppressEdits=!0),b&&(s.display.shift=!1),w=c(s)!=Vt}finally{s.display.shift=y,s.state.suppressEdits=!1}return w}function Xc(s,c,b){for(var y=0;y<s.state.keyMaps.length;y++){var w=Fs(c,s.state.keyMaps[y],b,s);if(w)return w}return s.options.extraKeys&&Fs(c,s.options.extraKeys,b,s)||Fs(c,s.options.keyMap,b,s)}var gu=new le;function tc(s,c,b,y){var w=s.state.keySeq;if(w){if(ku(c))return"handled";if(/\'$/.test(c)?s.state.keySeq=null:gu.set(50,function(){s.state.keySeq==w&&(s.state.keySeq=null,s.display.input.reset())}),ch(s,w+" "+c,b,y))return!0}return ch(s,c,b,y)}function ch(s,c,b,y){var w=Xc(s,c,y);return w=="multi"&&(s.state.keySeq=c),w=="handled"&&mi(s,"keyHandled",s,c,b),(w=="handled"||w=="multi")&&(Un(b),Ko(s)),!!w}function Bh(s,c){var b=Pc(c,!0);return b?c.shiftKey&&!s.state.keySeq?tc(s,"Shift-"+b,c,function(y){return Iu(s,y,!0)})||tc(s,b,c,function(y){if(typeof y=="string"?/^go[A-Z]/.test(y):y.motion)return Iu(s,y)}):tc(s,b,c,function(y){return Iu(s,y)}):!1}function _h(s,c,b){return tc(s,"'"+b+"'",c,function(y){return Iu(s,y,!0)})}var Tc=null;function hh(s){var c=this;if(!(s.target&&s.target!=c.display.input.getField())&&(c.curOp.focus=Ge(),!zt(c,s))){G&&F<11&&s.keyCode==27&&(s.returnValue=!1);var b=s.keyCode;c.display.shift=b==16||s.shiftKey;var y=Bh(c,s);te&&(Tc=y?b:null,!y&&b==88&&!mr&&(Re?s.metaKey:s.ctrlKey)&&c.replaceSelection("",null,"cut")),v&&!Re&&!y&&b==46&&s.shiftKey&&!s.ctrlKey&&document.execCommand&&document.execCommand("cut"),b==18&&!/\bCodeMirror-crosshair\b/.test(c.display.lineDiv.className)&&dh(c)}}function dh(s){var c=s.display.lineDiv;Pt(c,"CodeMirror-crosshair");function b(y){(y.keyCode==18||!y.altKey)&&(Te(c,"CodeMirror-crosshair"),an(document,"keyup",b),an(document,"mouseover",b))}Kt(document,"keyup",b),Kt(document,"mouseover",b)}function np(s){s.keyCode==16&&(this.doc.sel.shift=!1),zt(this,s)}function Nc(s){var c=this;if(!(s.target&&s.target!=c.display.input.getField())&&!(Os(c.display,s)||zt(c,s)||s.ctrlKey&&!s.altKey||Re&&s.metaKey)){var b=s.keyCode,y=s.charCode;if(te&&b==Tc){Tc=null,Un(s);return}if(!(te&&(!s.which||s.which<10)&&Bh(c,s))){var w=String.fromCharCode(y==null?b:y);w!="\b"&&(_h(c,s,w)||c.display.input.onKeyPress(s))}}}var d0=400,ip=function(s,c,b){this.time=s,this.pos=c,this.button=b};ip.prototype.compare=function(s,c,b){return this.time+d0>s&&fn(c,this.pos)==0&&b==this.button};var hd,zh;function rp(s,c){var b=+new Date;return zh&&zh.compare(b,s,c)?(hd=zh=null,"triple"):hd&&hd.compare(b,s,c)?(zh=new ip(b,s,c),hd=null,"double"):(hd=new ip(b,s,c),zh=null,"single")}function Ac(s){var c=this,b=c.display;if(!(zt(c,s)||b.activeTouch&&b.input.supportsTouch())){if(b.input.ensurePolled(),b.shift=s.shiftKey,Os(b,s)){M||(b.scroller.draggable=!1,setTimeout(function(){return b.scroller.draggable=!0},100));return}if(!hf(c,s)){var y=fs(c,s),w=Ii(s),H=y?rp(y,w):"single";window.focus(),w==1&&c.state.selectingText&&c.state.selectingText(s),!(y&&op(c,w,y,H,s))&&(w==1?y?f0(c,y,H,s):_i(s)==b.scroller&&Un(s):w==2?(y&&ko(c.doc,y),setTimeout(function(){return b.input.focus()},20)):w==3&&(ke?c.display.input.onContextMenu(s):La(c)))}}}function op(s,c,b,y,w){var H="Click";return y=="double"?H="Double"+H:y=="triple"&&(H="Triple"+H),H=(c==1?"Left":c==2?"Middle":"Right")+H,tc(s,ec(H,w),w,function(ie){if(typeof ie=="string"&&(ie=Hs[ie]),!ie)return!1;var Se=!1;try{s.isReadOnly()&&(s.state.suppressEdits=!0),Se=ie(s,b)!=Vt}finally{s.state.suppressEdits=!1}return Se})}function uf(s,c,b){var y=s.getOption("configureMouse"),w=y?y(s,c,b):{};if(w.unit==null){var H=fe?b.shiftKey&&b.metaKey:b.altKey;w.unit=H?"rectangle":c=="single"?"char":c=="double"?"word":"line"}return(w.extend==null||s.doc.extend)&&(w.extend=s.doc.extend||b.shiftKey),w.addNew==null&&(w.addNew=Re?b.metaKey:b.ctrlKey),w.moveOnDrag==null&&(w.moveOnDrag=!(Re?b.altKey:b.ctrlKey)),w}function f0(s,c,b,y){G?setTimeout(Ct(la,s),0):s.curOp.focus=Ge();var w=uf(s,b,y),H=s.doc.sel,ie;s.options.dragDrop&&cn&&!s.isReadOnly()&&b=="single"&&(ie=H.contains(c))>-1&&(fn((ie=H.ranges[ie]).from(),c)<0||c.xRel>0)&&(fn(ie.to(),c)>0||c.xRel<0)?ap(s,y,c,w):cg(s,y,c,w)}function ap(s,c,b,y){var w=s.display,H=!1,ie=ve(s,function(Ze){M&&(w.scroller.draggable=!1),s.state.draggingText=!1,an(w.wrapper.ownerDocument,"mouseup",ie),an(w.wrapper.ownerDocument,"mousemove",Se),an(w.scroller,"dragstart",be),an(w.scroller,"drop",ie),H||(Un(Ze),y.addNew||ko(s.doc,b,null,null,y.extend),M&&!Ne||G&&F==9?setTimeout(function(){w.wrapper.ownerDocument.body.focus({preventScroll:!0}),w.input.focus()},20):w.input.focus())}),Se=function(Ze){H=H||Math.abs(c.clientX-Ze.clientX)+Math.abs(c.clientY-Ze.clientY)>=10},be=function(){return H=!0};M&&(w.scroller.draggable=!0),s.state.draggingText=ie,ie.copy=!y.moveOnDrag,w.scroller.dragDrop&&w.scroller.dragDrop(),Kt(w.wrapper.ownerDocument,"mouseup",ie),Kt(w.wrapper.ownerDocument,"mousemove",Se),Kt(w.scroller,"dragstart",be),Kt(w.scroller,"drop",ie),La(s),setTimeout(function(){return w.input.focus()},20)}function sp(s,c,b){if(b=="char")return new vi(c,c);if(b=="word")return s.findWordAt(c);if(b=="line")return new vi(ot(c.line,0),mt(s.doc,ot(c.line+1,0)));var y=b(s,c);return new vi(y.from,y.to)}function cg(s,c,b,y){var w=s.display,H=s.doc;Un(c);var ie,Se,be=H.sel,Ze=be.ranges;if(y.addNew&&!y.extend?(Se=H.sel.contains(b),Se>-1?ie=Ze[Se]:ie=new vi(b,b)):(ie=H.sel.primary(),Se=H.sel.primIndex),y.unit=="rectangle")y.addNew||(ie=new vi(b,b)),b=fs(s,c,!0,!0),Se=-1;else{var Wt=sp(s,b,y.unit);y.extend?ie=zs(ie,Wt.anchor,Wt.head,y.extend):ie=Wt}y.addNew?Se==-1?(Se=Ze.length,g(H,Pi(s,Ze.concat([ie]),Se),{scroll:!1,origin:"*mouse"})):Ze.length>1&&Ze[Se].empty()&&y.unit=="char"&&!y.extend?(g(H,Pi(s,Ze.slice(0,Se).concat(Ze.slice(Se+1)),0),{scroll:!1,origin:"*mouse"}),be=H.sel):Zo(H,Se,ie,sn):(Se=0,g(H,new si([ie],0),sn),be=H.sel);var st=b;function Tn(Sr){if(fn(st,Sr)!=0)if(st=Sr,y.unit=="rectangle"){for(var Gr=[],mo=s.options.tabSize,yr=Qe(vn(H,b.line).text,b.ch,mo),zo=Qe(vn(H,Sr.line).text,Sr.ch,mo),cs=Math.min(yr,zo),ll=Math.max(yr,zo),bs=Math.min(b.line,Sr.line),yu=Math.min(s.lastLine(),Math.max(b.line,Sr.line));bs<=yu;bs++){var Kl=vn(H,bs).text,qs=oi(Kl,cs,mo);cs==ll?Gr.push(new vi(ot(bs,qs),ot(bs,qs))):Kl.length>qs&&Gr.push(new vi(ot(bs,qs),ot(bs,oi(Kl,ll,mo))))}Gr.length||Gr.push(new vi(b,b)),g(H,Pi(s,be.ranges.slice(0,Se).concat(Gr),Se),{origin:"*mouse",scroll:!1}),s.scrollIntoView(Sr)}else{var Mu=ie,Bl=sp(s,Sr,y.unit),el=Mu.anchor,Aa;fn(Bl.anchor,el)>0?(Aa=Bl.head,el=Rt(Mu.from(),Bl.anchor)):(Aa=Bl.anchor,el=L(Mu.to(),Bl.head));var As=be.ranges.slice(0);As[Se]=p0(s,new vi(mt(H,el),Aa)),g(H,Pi(s,As,Se),sn)}}var En=w.wrapper.getBoundingClientRect(),ci=0;function bi(Sr){var Gr=++ci,mo=fs(s,Sr,!0,y.unit=="rectangle");if(mo)if(fn(mo,st)!=0){s.curOp.focus=Ge(),Tn(mo);var yr=Co(w,H);(mo.line>=yr.to||mo.line<yr.from)&&setTimeout(ve(s,function(){ci==Gr&&bi(Sr)}),150)}else{var zo=Sr.clientY<En.top?-20:Sr.clientY>En.bottom?20:0;zo&&setTimeout(ve(s,function(){ci==Gr&&(w.scroller.scrollTop+=zo,bi(Sr))}),50)}}function Di(Sr){s.state.selectingText=!1,ci=1/0,Sr&&(Un(Sr),w.input.focus()),an(w.wrapper.ownerDocument,"mousemove",er),an(w.wrapper.ownerDocument,"mouseup",Fr),H.history.lastSelOrigin=null}var er=ve(s,function(Sr){Sr.buttons===0||!Ii(Sr)?Di(Sr):bi(Sr)}),Fr=ve(s,Di);s.state.selectingText=Fr,Kt(w.wrapper.ownerDocument,"mousemove",er),Kt(w.wrapper.ownerDocument,"mouseup",Fr)}function p0(s,c){var b=c.anchor,y=c.head,w=vn(s.doc,b.line);if(fn(b,y)==0&&b.sticky==y.sticky)return c;var H=pn(w);if(!H)return c;var ie=tt(H,b.ch,b.sticky),Se=H[ie];if(Se.from!=b.ch&&Se.to!=b.ch)return c;var be=ie+(Se.from==b.ch==(Se.level!=1)?0:1);if(be==0||be==H.length)return c;var Ze;if(y.line!=b.line)Ze=(y.line-b.line)*(s.doc.direction=="ltr"?1:-1)>0;else{var Wt=tt(H,y.ch,y.sticky),st=Wt-ie||(y.ch-b.ch)*(Se.level==1?-1:1);Wt==be-1||Wt==be?Ze=st<0:Ze=st>0}var Tn=H[be+(Ze?-1:0)],En=Ze==(Tn.level==1),ci=En?Tn.from:Tn.to,bi=En?"after":"before";return b.ch==ci&&b.sticky==bi?c:new vi(new ot(b.line,ci,bi),y)}function cf(s,c,b,y){var w,H;if(c.touches)w=c.touches[0].clientX,H=c.touches[0].clientY;else try{w=c.clientX,H=c.clientY}catch(Tn){return!1}if(w>=Math.floor(s.display.gutters.getBoundingClientRect().right))return!1;y&&Un(c);var ie=s.display,Se=ie.lineDiv.getBoundingClientRect();if(H>Se.bottom||!rn(s,b))return Bt(c);H-=Se.top-ie.viewOffset;for(var be=0;be<s.display.gutterSpecs.length;++be){var Ze=ie.gutters.childNodes[be];if(Ze&&Ze.getBoundingClientRect().right>=w){var Wt=Ut(s.doc,H),st=s.display.gutterSpecs[be];return et(s,b,s,Wt,st.className,c),Bt(c)}}}function hf(s,c){return cf(s,c,"gutterClick",!0)}function df(s,c){Os(s.display,c)||m0(s,c)||zt(s,c,"contextmenu")||ke||s.display.input.onContextMenu(c)}function m0(s,c){return rn(s,"gutterContextMenu")?cf(s,c,"gutterContextMenu",!1):!1}function ff(s){s.display.wrapper.className=s.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+s.options.theme.replace(/(^|\s)\s*/g," cm-s-"),ro(s)}var fh={toString:function(){return"CodeMirror.Init"}},lp={},Dd={};function g0(s){var c=s.optionHandlers;function b(y,w,H,ie){s.defaults[y]=w,H&&(c[y]=ie?function(Se,be,Ze){Ze!=fh&&H(Se,be,Ze)}:H)}s.defineOption=b,s.Init=fh,b("value","",function(y,w){return y.setValue(w)},!0),b("mode",null,function(y,w){y.doc.modeOption=w,Qi(y)},!0),b("indentUnit",2,Qi,!0),b("indentWithTabs",!1),b("smartIndent",!0),b("tabSize",4,function(y){oo(y),ro(y),Eo(y)},!0),b("lineSeparator",null,function(y,w){if(y.doc.lineSep=w,!!w){var H=[],ie=y.doc.first;y.doc.iter(function(be){for(var Ze=0;;){var Wt=be.text.indexOf(w,Ze);if(Wt==-1)break;Ze=Wt+w.length,H.push(ot(ie,Wt))}ie++});for(var Se=H.length-1;Se>=0;Se--)ol(y.doc,w,H[Se],ot(H[Se].line,H[Se].ch+w.length))}}),b("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(y,w,H){y.state.specialChars=new RegExp(w.source+(w.test(" ")?"":"| "),"g"),H!=fh&&y.refresh()}),b("specialCharPlaceholder",Pa,function(y){return y.refresh()},!0),b("electricChars",!0),b("inputStyle",Ie?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),b("spellcheck",!1,function(y,w){return y.getInputField().spellcheck=w},!0),b("autocorrect",!1,function(y,w){return y.getInputField().autocorrect=w},!0),b("autocapitalize",!1,function(y,w){return y.getInputField().autocapitalize=w},!0),b("rtlMoveVisually",!me),b("wholeLineUpdateBefore",!0),b("theme","default",function(y){ff(y),bt(y)},!0),b("keyMap","default",function(y,w,H){var ie=Pl(w),Se=H!=fh&&Pl(H);Se&&Se.detach&&Se.detach(y,ie),ie.attach&&ie.attach(y,Se||null)}),b("extraKeys",null),b("configureMouse",null),b("lineWrapping",!1,v0,!0),b("gutters",[],function(y,w){y.display.gutterSpecs=jt(w,y.options.lineNumbers),bt(y)},!0),b("fixedGutter",!0,function(y,w){y.display.gutters.style.left=w?Tu(y.display)+"px":"0",y.refresh()},!0),b("coverGutterNextToScrollbar",!1,function(y){return Wl(y)},!0),b("scrollbarStyle","native",function(y){Nu(y),Wl(y),y.display.scrollbars.setScrollTop(y.doc.scrollTop),y.display.scrollbars.setScrollLeft(y.doc.scrollLeft)},!0),b("lineNumbers",!1,function(y,w){y.display.gutterSpecs=jt(y.options.gutters,w),bt(y)},!0),b("firstLineNumber",1,bt,!0),b("lineNumberFormatter",function(y){return y},bt,!0),b("showCursorWhenSelecting",!1,Va,!0),b("resetSelectionOnContextMenu",!0),b("lineWiseCopyCut",!0),b("pasteLinesPerSelection",!0),b("selectionsMayTouch",!1),b("readOnly",!1,function(y,w){w=="nocursor"&&(fu(y),y.display.input.blur()),y.display.input.readOnlyChanged(w)}),b("screenReaderLabel",null,function(y,w){w=w===""?null:w,y.display.input.screenReaderLabelChanged(w)}),b("disableInput",!1,function(y,w){w||y.display.input.reset()},!0),b("dragDrop",!0,pf),b("allowDropFileTypes",null),b("cursorBlinkRate",530),b("cursorScrollMargin",0),b("cursorHeight",1,Va,!0),b("singleCursorHeightPerLine",!0,Va,!0),b("workTime",100),b("workDelay",100),b("flattenSpans",!0,oo,!0),b("addModeClass",!1,oo,!0),b("pollInterval",100),b("undoDepth",200,function(y,w){return y.doc.history.undoDepth=w}),b("historyEventDelay",1250),b("viewportMargin",10,function(y){return y.refresh()},!0),b("maxHighlightLength",1e4,oo,!0),b("moveInputWithCursor",!0,function(y,w){w||y.display.input.resetPosition()}),b("tabindex",null,function(y,w){return y.display.input.getField().tabIndex=w||""}),b("autofocus",null),b("direction","ltr",function(y,w){return y.doc.setDirection(w)},!0),b("phrases",null)}function pf(s,c,b){var y=b&&b!=fh;if(!c!=!y){var w=s.display.dragFunctions,H=c?Kt:an;H(s.display.scroller,"dragstart",w.start),H(s.display.scroller,"dragenter",w.enter),H(s.display.scroller,"dragover",w.over),H(s.display.scroller,"dragleave",w.leave),H(s.display.scroller,"drop",w.drop)}}function v0(s){s.options.lineWrapping?(Pt(s.display.wrapper,"CodeMirror-wrap"),s.display.sizer.style.minWidth="",s.display.sizerWidth=null):(Te(s.display.wrapper,"CodeMirror-wrap"),ma(s)),Dr(s),Eo(s),ro(s),setTimeout(function(){return Wl(s)},100)}function Ea(s,c){var b=this;if(!(this instanceof Ea))return new Ea(s,c);this.options=c=c?Cn(c):{},Cn(lp,c,!1);var y=c.value;typeof y=="string"?y=new $i(y,c.mode,null,c.lineSeparator,c.direction):c.mode&&(y.modeOption=c.mode),this.doc=y;var w=new Ea.inputStyles[c.inputStyle](this),H=this.display=new en(s,y,w,c);H.wrapper.CodeMirror=this,ff(this),c.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Nu(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 le,keySeq:null,specialChars:null},c.autofocus&&!Ie&&H.input.focus(),G&&F<11&&setTimeout(function(){return b.display.input.reset(!0)},20),dd(this),Yo(),ys(this),this.curOp.forceUpdate=!0,Gi(this,y),c.autofocus&&!Ie||this.hasFocus()?setTimeout(function(){b.hasFocus()&&!b.state.focused&&yo(b)},20):fu(this);for(var ie in Dd)Dd.hasOwnProperty(ie)&&Dd[ie](this,c[ie],fh);it(this),c.finishInit&&c.finishInit(this);for(var Se=0;Se<Uh.length;++Se)Uh[Se](this);iu(this),M&&c.lineWrapping&&getComputedStyle(H.lineDiv).textRendering=="optimizelegibility"&&(H.lineDiv.style.textRendering="auto")}Ea.defaults=lp,Ea.optionHandlers=Dd;function dd(s){var c=s.display;Kt(c.scroller,"mousedown",ve(s,Ac)),G&&F<11?Kt(c.scroller,"dblclick",ve(s,function(be){if(!zt(s,be)){var Ze=fs(s,be);if(!(!Ze||hf(s,be)||Os(s.display,be))){Un(be);var Wt=s.findWordAt(Ze);ko(s.doc,Wt.anchor,Wt.head)}}})):Kt(c.scroller,"dblclick",function(be){return zt(s,be)||Un(be)}),Kt(c.scroller,"contextmenu",function(be){return df(s,be)}),Kt(c.input.getField(),"contextmenu",function(be){c.scroller.contains(be.target)||df(s,be)});var b,y={end:0};function w(){c.activeTouch&&(b=setTimeout(function(){return c.activeTouch=null},1e3),y=c.activeTouch,y.end=+new Date)}function H(be){if(be.touches.length!=1)return!1;var Ze=be.touches[0];return Ze.radiusX<=1&&Ze.radiusY<=1}function ie(be,Ze){if(Ze.left==null)return!0;var Wt=Ze.left-be.left,st=Ze.top-be.top;return Wt*Wt+st*st>20*20}Kt(c.scroller,"touchstart",function(be){if(!zt(s,be)&&!H(be)&&!hf(s,be)){c.input.ensurePolled(),clearTimeout(b);var Ze=+new Date;c.activeTouch={start:Ze,moved:!1,prev:Ze-y.end<=300?y:null},be.touches.length==1&&(c.activeTouch.left=be.touches[0].pageX,c.activeTouch.top=be.touches[0].pageY)}}),Kt(c.scroller,"touchmove",function(){c.activeTouch&&(c.activeTouch.moved=!0)}),Kt(c.scroller,"touchend",function(be){var Ze=c.activeTouch;if(Ze&&!Os(c,be)&&Ze.left!=null&&!Ze.moved&&new Date-Ze.start<300){var Wt=s.coordsChar(c.activeTouch,"page"),st;!Ze.prev||ie(Ze,Ze.prev)?st=new vi(Wt,Wt):!Ze.prev.prev||ie(Ze,Ze.prev.prev)?st=s.findWordAt(Wt):st=new vi(ot(Wt.line,0),mt(s.doc,ot(Wt.line+1,0))),s.setSelection(st.anchor,st.head),s.focus(),Un(be)}w()}),Kt(c.scroller,"touchcancel",w),Kt(c.scroller,"scroll",function(){c.scroller.clientHeight&&(Dl(s,c.scroller.scrollTop),bl(s,c.scroller.scrollLeft,!0),et(s,"scroll",s))}),Kt(c.scroller,"mousewheel",function(be){return ji(s,be)}),Kt(c.scroller,"DOMMouseScroll",function(be){return ji(s,be)}),Kt(c.wrapper,"scroll",function(){return c.wrapper.scrollTop=c.wrapper.scrollLeft=0}),c.dragFunctions={enter:function(be){zt(s,be)||Si(be)},over:function(be){zt(s,be)||(To(s,be),Si(be))},start:function(be){return jr(s,be)},drop:ve(s,$r),leave:function(be){zt(s,be)||jo(s)}};var Se=c.input.getField();Kt(Se,"keyup",function(be){return np.call(s,be)}),Kt(Se,"keydown",ve(s,hh)),Kt(Se,"keypress",ve(s,Nc)),Kt(Se,"focus",function(be){return yo(s,be)}),Kt(Se,"blur",function(be){return fu(s,be)})}var Uh=[];Ea.defineInitHook=function(s){return Uh.push(s)};function sl(s,c,b,y){var w=s.doc,H;b==null&&(b="add"),b=="smart"&&(w.mode.indent?H=Yi(s,c).state:b="prev");var ie=s.options.tabSize,Se=vn(w,c),be=Qe(Se.text,null,ie);Se.stateAfter&&(Se.stateAfter=null);var Ze=Se.text.match(/^\s*/)[0],Wt;if(!y&&!/\S/.test(Se.text))Wt=0,b="not";else if(b=="smart"&&(Wt=w.mode.indent(H,Se.text.slice(Ze.length),Se.text),Wt==Vt||Wt>150)){if(!y)return;b="prev"}b=="prev"?c>w.first?Wt=Qe(vn(w,c-1).text,null,ie):Wt=0:b=="add"?Wt=be+s.options.indentUnit:b=="subtract"?Wt=be-s.options.indentUnit:typeof b=="number"&&(Wt=be+b),Wt=Math.max(0,Wt);var st="",Tn=0;if(s.options.indentWithTabs)for(var En=Math.floor(Wt/ie);En;--En)Tn+=ie,st+=" ";if(Tn<Wt&&(st+=ni(Wt-Tn)),st!=Ze)return ol(w,st,ot(c,0),ot(c,Ze.length),"+input"),Se.stateAfter=null,!0;for(var ci=0;ci<w.sel.ranges.length;ci++){var bi=w.sel.ranges[ci];if(bi.head.line==c&&bi.head.ch<Ze.length){var Di=ot(c,Ze.length);Zo(w,ci,new vi(Di,Di));break}}}var vu=null;function Hh(s){vu=s}function Pd(s,c,b,y,w){var H=s.doc;s.display.shift=!1,y||(y=H.sel);var ie=+new Date-200,Se=w=="paste"||s.state.pasteIncoming>ie,be=ur(c),Ze=null;if(Se&&y.ranges.length>1)if(vu&&vu.text.join(`
`)==c){if(y.ranges.length%vu.text.length==0){Ze=[];for(var Wt=0;Wt<vu.text.length;Wt++)Ze.push(H.splitLines(vu.text[Wt]))}}else be.length==y.ranges.length&&s.options.pasteLinesPerSelection&&(Ze=Mn(be,function(er){return[er]}));for(var st=s.curOp.updateInput,Tn=y.ranges.length-1;Tn>=0;Tn--){var En=y.ranges[Tn],ci=En.from(),bi=En.to();En.empty()&&(b&&b>0?ci=ot(ci.line,ci.ch-b):s.state.overwrite&&!Se?bi=ot(bi.line,Math.min(vn(H,bi.line).text.length,bi.ch+Jn(be).length)):Se&&vu&&vu.lineWise&&vu.text.join(`
`)==be.join(`
`)&&(ci=bi=ot(ci.line,0)));var Di={from:ci,to:bi,text:Ze?Ze[Tn%Ze.length]:be,origin:w||(Se?"paste":s.state.cutIncoming>ie?"cut":"+input")};Or(s.doc,Di),mi(s,"inputRead",s,Di)}c&&!Se&&cp(s,c),vl(s),s.curOp.updateInput<2&&(s.curOp.updateInput=st),s.curOp.typing=!0,s.state.pasteIncoming=s.state.cutIncoming=-1}function up(s,c){var b=s.clipboardData&&s.clipboardData.getData("Text");if(b)return s.preventDefault(),!c.isReadOnly()&&!c.options.disableInput&&Dt(c,function(){return Pd(c,b,0,null,"paste")}),!0}function cp(s,c){if(!(!s.options.electricChars||!s.options.smartIndent))for(var b=s.doc.sel,y=b.ranges.length-1;y>=0;y--){var w=b.ranges[y];if(!(w.head.ch>100||y&&b.ranges[y-1].head.line==w.head.line)){var H=s.getModeAt(w.head),ie=!1;if(H.electricChars){for(var Se=0;Se<H.electricChars.length;Se++)if(c.indexOf(H.electricChars.charAt(Se))>-1){ie=sl(s,w.head.line,"smart");break}}else H.electricInput&&H.electricInput.test(vn(s.doc,w.head.line).text.slice(0,w.head.ch))&&(ie=sl(s,w.head.line,"smart"));ie&&mi(s,"electricInput",s,w.head.line)}}}function hp(s){for(var c=[],b=[],y=0;y<s.doc.sel.ranges.length;y++){var w=s.doc.sel.ranges[y].head.line,H={anchor:ot(w,0),head:ot(w+1,0)};b.push(H),c.push(s.getRange(H.anchor,H.head))}return{text:c,ranges:b}}function dp(s,c,b,y){s.setAttribute("autocorrect",b?"":"off"),s.setAttribute("autocapitalize",y?"":"off"),s.setAttribute("spellcheck",!!c)}function fp(){var s=Je("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),c=Je("div",[s],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return M?s.style.width="1000px":s.setAttribute("wrap","off"),Oe&&(s.style.border="1px solid black"),dp(s),c}function ph(s){var c=s.optionHandlers,b=s.helpers={};s.prototype={constructor:s,focus:function(){window.focus(),this.display.input.focus()},setOption:function(y,w){var H=this.options,ie=H[y];H[y]==w&&y!="mode"||(H[y]=w,c.hasOwnProperty(y)&&ve(this,c[y])(this,w,ie),et(this,"optionChange",this,y))},getOption:function(y){return this.options[y]},getDoc:function(){return this.doc},addKeyMap:function(y,w){this.state.keyMaps[w?"push":"unshift"](Pl(y))},removeKeyMap:function(y){for(var w=this.state.keyMaps,H=0;H<w.length;++H)if(w[H]==y||w[H].name==y)return w.splice(H,1),!0},addOverlay:bn(function(y,w){var H=y.token?y:s.getMode(this.options,y);if(H.startState)throw new Error("Overlays may not be stateful.");In(this.state.overlays,{mode:H,modeSpec:y,opaque:w&&w.opaque,priority:w&&w.priority||0},function(ie){return ie.priority}),this.state.modeGen++,Eo(this)}),removeOverlay:bn(function(y){for(var w=this.state.overlays,H=0;H<w.length;++H){var ie=w[H].modeSpec;if(ie==y||typeof y=="string"&&ie.name==y){w.splice(H,1),this.state.modeGen++,Eo(this);return}}}),indentLine:bn(function(y,w,H){typeof w!="string"&&typeof w!="number"&&(w==null?w=this.options.smartIndent?"smart":"prev":w=w?"add":"subtract"),Lt(this.doc,y)&&sl(this,y,w,H)}),indentSelection:bn(function(y){for(var w=this.doc.sel.ranges,H=-1,ie=0;ie<w.length;ie++){var Se=w[ie];if(Se.empty())Se.head.line>H&&(sl(this,Se.head.line,y,!0),H=Se.head.line,ie==this.doc.sel.primIndex&&vl(this));else{var be=Se.from(),Ze=Se.to(),Wt=Math.max(H,be.line);H=Math.min(this.lastLine(),Ze.line-(Ze.ch?0:1))+1;for(var st=Wt;st<H;++st)sl(this,st,y);var Tn=this.doc.sel.ranges;be.ch==0&&w.length==Tn.length&&Tn[ie].from().ch>0&&Zo(this.doc,ie,new vi(be,Tn[ie].to()),St)}}}),getTokenAt:function(y,w){return Hn(this,y,w)},getLineTokens:function(y,w){return Hn(this,ot(y),w,!0)},getTokenTypeAt:function(y){y=mt(this.doc,y);var w=Mi(this,vn(this.doc,y.line)),H=0,ie=(w.length-1)/2,Se=y.ch,be;if(Se==0)be=w[2];else for(;;){var Ze=H+ie>>1;if((Ze?w[Ze*2-1]:0)>=Se)ie=Ze;else if(w[Ze*2+1]<Se)H=Ze+1;else{be=w[Ze*2+2];break}}var Wt=be?be.indexOf("overlay "):-1;return Wt<0?be:Wt==0?null:be.slice(0,Wt-1)},getModeAt:function(y){var w=this.doc.mode;return w.innerMode?s.innerMode(w,this.getTokenAt(y).state).mode:w},getHelper:function(y,w){return this.getHelpers(y,w)[0]},getHelpers:function(y,w){var H=[];if(!b.hasOwnProperty(w))return H;var ie=b[w],Se=this.getModeAt(y);if(typeof Se[w]=="string")ie[Se[w]]&&H.push(ie[Se[w]]);else if(Se[w])for(var be=0;be<Se[w].length;be++){var Ze=ie[Se[w][be]];Ze&&H.push(Ze)}else Se.helperType&&ie[Se.helperType]?H.push(ie[Se.helperType]):ie[Se.name]&&H.push(ie[Se.name]);for(var Wt=0;Wt<ie._global.length;Wt++){var st=ie._global[Wt];st.pred(Se,this)&&ce(H,st.val)==-1&&H.push(st.val)}return H},getStateAfter:function(y,w){var H=this.doc;return y=Jt(H,y==null?H.first+H.size-1:y),Yi(this,y+1,w).state},cursorCoords:function(y,w){var H,ie=this.doc.sel.primary();return y==null?H=ie.head:typeof y=="object"?H=mt(this.doc,y):H=y?ie.from():ie.to(),wa(this,H,w||"page")},charCoords:function(y,w){return Vs(this,mt(this.doc,y),w||"page")},coordsChar:function(y,w){return y=Gl(this,y,w||"page"),du(this,y.left,y.top)},lineAtHeight:function(y,w){return y=Gl(this,{top:y,left:0},w||"page").top,Ut(this.doc,y+this.display.viewOffset)},heightAtLine:function(y,w,H){var ie=!1,Se;if(typeof y=="number"){var be=this.doc.first+this.doc.size-1;y<this.doc.first?y=this.doc.first:y>be&&(y=be,ie=!0),Se=vn(this.doc,y)}else Se=y;return Oa(this,Se,{top:0,left:0},w||"page",H||ie).top+(ie?this.doc.height-Uo(Se):0)},defaultTextHeight:function(){return ml(this.display)},defaultCharWidth:function(){return gl(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(y,w,H,ie,Se){var be=this.display;y=wa(this,mt(this.doc,y));var Ze=y.bottom,Wt=y.left;if(w.style.position="absolute",w.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(w),be.sizer.appendChild(w),ie=="over")Ze=y.top;else if(ie=="above"||ie=="near"){var st=Math.max(be.wrapper.clientHeight,this.doc.height),Tn=Math.max(be.sizer.clientWidth,be.lineSpace.clientWidth);(ie=="above"||y.bottom+w.offsetHeight>st)&&y.top>w.offsetHeight?Ze=y.top-w.offsetHeight:y.bottom+w.offsetHeight<=st&&(Ze=y.bottom),Wt+w.offsetWidth>Tn&&(Wt=Tn-w.offsetWidth)}w.style.top=Ze+"px",w.style.left=w.style.right="",Se=="right"?(Wt=be.sizer.clientWidth-w.offsetWidth,w.style.right="0px"):(Se=="left"?Wt=0:Se=="middle"&&(Wt=(be.sizer.clientWidth-w.offsetWidth)/2),w.style.left=Wt+"px"),H&&tu(this,{left:Wt,top:Ze,right:Wt+w.offsetWidth,bottom:Ze+w.offsetHeight})},triggerOnKeyDown:bn(hh),triggerOnKeyPress:bn(Nc),triggerOnKeyUp:np,triggerOnMouseDown:bn(Ac),execCommand:function(y){if(Hs.hasOwnProperty(y))return Hs[y].call(null,this)},triggerElectric:bn(function(y){cp(this,y)}),findPosH:function(y,w,H,ie){var Se=1;w<0&&(Se=-1,w=-w);for(var be=mt(this.doc,y),Ze=0;Ze<w&&(be=Fd(this.doc,be,Se,H,ie),!be.hitSide);++Ze);return be},moveH:bn(function(y,w){var H=this;this.extendSelectionsBy(function(ie){return H.display.shift||H.doc.extend||ie.empty()?Fd(H.doc,ie.head,y,w,H.options.rtlMoveVisually):y<0?ie.from():ie.to()},Ft)}),deleteH:bn(function(y,w){var H=this.doc.sel,ie=this.doc;H.somethingSelected()?ie.replaceSelection("",null,"+delete"):ps(this,function(Se){var be=Fd(ie,Se.head,y,w,!1);return y<0?{from:be,to:Se.head}:{from:Se.head,to:be}})}),findPosV:function(y,w,H,ie){var Se=1,be=ie;w<0&&(Se=-1,w=-w);for(var Ze=mt(this.doc,y),Wt=0;Wt<w;++Wt){var st=wa(this,Ze,"div");if(be==null?be=st.left:st.left=be,Ze=mh(this,st,Se,H),Ze.hitSide)break}return Ze},moveV:bn(function(y,w){var H=this,ie=this.doc,Se=[],be=!this.display.shift&&!ie.extend&&ie.sel.somethingSelected();if(ie.extendSelectionsBy(function(Wt){if(be)return y<0?Wt.from():Wt.to();var st=wa(H,Wt.head,"div");Wt.goalColumn!=null&&(st.left=Wt.goalColumn),Se.push(st.left);var Tn=mh(H,st,y,w);return w=="page"&&Wt==ie.sel.primary()&&Uu(H,Vs(H,Tn,"div").top-st.top),Tn},Ft),Se.length)for(var Ze=0;Ze<ie.sel.ranges.length;Ze++)ie.sel.ranges[Ze].goalColumn=Se[Ze]}),findWordAt:function(y){var w=this.doc,H=vn(w,y.line).text,ie=y.ch,Se=y.ch;if(H){var be=this.getHelper(y,"wordChars");(y.sticky=="before"||Se==H.length)&&ie?--ie:++Se;for(var Ze=H.charAt(ie),Wt=Q(Ze,be)?function(st){return Q(st,be)}:/\s/.test(Ze)?function(st){return/\s/.test(st)}:function(st){return!/\s/.test(st)&&!Q(st)};ie>0&&Wt(H.charAt(ie-1));)--ie;for(;Se<H.length&&Wt(H.charAt(Se));)++Se}return new vi(ot(y.line,ie),ot(y.line,Se))},toggleOverwrite:function(y){y!=null&&y==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Pt(this.display.cursorDiv,"CodeMirror-overwrite"):Te(this.display.cursorDiv,"CodeMirror-overwrite"),et(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Ge()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:bn(function(y,w){Zs(this,y,w)}),getScrollInfo:function(){var y=this.display.scroller;return{left:y.scrollLeft,top:y.scrollTop,height:y.scrollHeight-ja(this)-this.display.barHeight,width:y.scrollWidth-ja(this)-this.display.barWidth,clientHeight:Rl(this),clientWidth:qa(this)}},scrollIntoView:bn(function(y,w){y==null?(y={from:this.doc.sel.primary().head,to:null},w==null&&(w=this.options.cursorScrollMargin)):typeof y=="number"?y={from:ot(y,0),to:null}:y.from==null&&(y={from:y,to:null}),y.to||(y.to=y.from),y.margin=w||0,y.from.line!=null?Ao(this,y):qu(this,y.from,y.to,y.margin)}),setSize:bn(function(y,w){var H=this,ie=function(be){return typeof be=="number"||/^\d+$/.test(String(be))?be+"px":be};y!=null&&(this.display.wrapper.style.width=ie(y)),w!=null&&(this.display.wrapper.style.height=ie(w)),this.options.lineWrapping&&aa(this);var Se=this.display.viewFrom;this.doc.iter(Se,this.display.viewTo,function(be){if(be.widgets){for(var Ze=0;Ze<be.widgets.length;Ze++)if(be.widgets[Ze].noHScroll){vo(H,Se,"widget");break}}++Se}),this.curOp.forceUpdate=!0,et(this,"refresh",this)}),operation:function(y){return Dt(this,y)},startOperation:function(){return ys(this)},endOperation:function(){return iu(this)},refresh:bn(function(){var y=this.display.cachedTextHeight;Eo(this),this.curOp.forceUpdate=!0,ro(this),Zs(this,this.doc.scrollLeft,this.doc.scrollTop),ge(this.display),(y==null||Math.abs(y-ml(this.display))>.5||this.options.lineWrapping)&&Dr(this),et(this,"refresh",this)}),swapDoc:bn(function(y){var w=this.doc;return w.cm=null,this.state.selectingText&&this.state.selectingText(),Gi(this,y),ro(this),this.display.input.reset(),Zs(this,y.scrollLeft,y.scrollTop),this.curOp.forceScroll=!0,mi(this,"swapDoc",this,w),w}),phrase:function(y){var w=this.options.phrases;return w&&Object.prototype.hasOwnProperty.call(w,y)?w[y]:y},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}},ze(s),s.registerHelper=function(y,w,H){b.hasOwnProperty(y)||(b[y]=s[y]={_global:[]}),b[y][w]=H},s.registerGlobalHelper=function(y,w,H,ie){s.registerHelper(y,w,ie),b[y]._global.push({pred:H,val:ie})}}function Fd(s,c,b,y,w){var H=c,ie=b,Se=vn(s,c.line),be=w&&s.direction=="rtl"?-b:b;function Ze(){var Fr=c.line+be;return Fr<s.first||Fr>=s.first+s.size?!1:(c=new ot(Fr,c.ch,c.sticky),Se=vn(s,Fr))}function Wt(Fr){var Sr;if(y=="codepoint"){var Gr=Se.text.charCodeAt(c.ch+(y>0?0:-1));isNaN(Gr)?Sr=null:Sr=new ot(c.line,Math.max(0,Math.min(Se.text.length,c.ch+b*(Gr>=55296&&Gr<56320?2:1))),-b)}else w?Sr=ba(s.cm,Se,c,b):Sr=Ka(Se,c,b);if(Sr==null)if(!Fr&&Ze())c=ea(w,s.cm,Se,c.line,be);else return!1;else c=Sr;return!0}if(y=="char"||y=="codepoint")Wt();else if(y=="column")Wt(!0);else if(y=="word"||y=="group")for(var st=null,Tn=y=="group",En=s.cm&&s.cm.getHelper(c,"wordChars"),ci=!0;!(b<0&&!Wt(!ci));ci=!1){var bi=Se.text.charAt(c.ch)||`
`,Di=Q(bi,En)?"w":Tn&&bi==`
`?"n":!Tn||/\s/.test(bi)?null:"p";if(Tn&&!ci&&!Di&&(Di="s"),st&&st!=Di){b<0&&(b=1,Wt(),c.sticky="after");break}if(Di&&(st=Di),b>0&&!Wt(!ci))break}var er=Cr(s,c,H,ie,!0);return yt(H,er)&&(er.hitSide=!0),er}function mh(s,c,b,y){var w=s.doc,H=c.left,ie;if(y=="page"){var Se=Math.min(s.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),be=Math.max(Se-.5*ml(s.display),3);ie=(b>0?c.bottom:c.top)+b*be}else y=="line"&&(ie=b>0?c.bottom+3:c.top-3);for(var Ze;Ze=du(s,H,ie),!!Ze.outside;){if(b<0?ie<=0:ie>=w.height){Ze.hitSide=!0;break}ie+=b*5}return Ze}var Za=function(s){this.cm=s,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new le,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Za.prototype.init=function(s){var c=this,b=this,y=b.cm,w=b.div=s.lineDiv;dp(w,y.options.spellcheck,y.options.autocorrect,y.options.autocapitalize);function H(Se){for(var be=Se.target;be;be=be.parentNode){if(be==w)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(be.className))break}return!1}Kt(w,"paste",function(Se){!H(Se)||zt(y,Se)||up(Se,y)||F<=11&&setTimeout(ve(y,function(){return c.updateFromDOM()}),20)}),Kt(w,"compositionstart",function(Se){c.composing={data:Se.data,done:!1}}),Kt(w,"compositionupdate",function(Se){c.composing||(c.composing={data:Se.data,done:!1})}),Kt(w,"compositionend",function(Se){c.composing&&(Se.data!=c.composing.data&&c.readFromDOMSoon(),c.composing.done=!0)}),Kt(w,"touchstart",function(){return b.forceCompositionEnd()}),Kt(w,"input",function(){c.composing||c.readFromDOMSoon()});function ie(Se){if(!(!H(Se)||zt(y,Se))){if(y.somethingSelected())Hh({lineWise:!1,text:y.getSelections()}),Se.type=="cut"&&y.replaceSelection("",null,"cut");else if(y.options.lineWiseCopyCut){var be=hp(y);Hh({lineWise:!0,text:be.text}),Se.type=="cut"&&y.operation(function(){y.setSelections(be.ranges,0,St),y.replaceSelection("",null,"cut")})}else return;if(Se.clipboardData){Se.clipboardData.clearData();var Ze=vu.text.join(`
`);if(Se.clipboardData.setData("Text",Ze),Se.clipboardData.getData("Text")==Ze){Se.preventDefault();return}}var Wt=fp(),st=Wt.firstChild;y.display.lineSpace.insertBefore(Wt,y.display.lineSpace.firstChild),st.value=vu.text.join(`
`);var Tn=document.activeElement;kt(st),setTimeout(function(){y.display.lineSpace.removeChild(Wt),Tn.focus(),Tn==w&&b.showPrimarySelection()},50)}}Kt(w,"copy",ie),Kt(w,"cut",ie)},Za.prototype.screenReaderLabelChanged=function(s){s?this.div.setAttribute("aria-label",s):this.div.removeAttribute("aria-label")},Za.prototype.prepareSelection=function(){var s=eu(this.cm,!1);return s.focus=document.activeElement==this.div,s},Za.prototype.showSelection=function(s,c){!s||!this.cm.display.view.length||((s.focus||c)&&this.showPrimarySelection(),this.showMultipleSelections(s))},Za.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Za.prototype.showPrimarySelection=function(){var s=this.getSelection(),c=this.cm,b=c.doc.sel.primary(),y=b.from(),w=b.to();if(c.display.viewTo==c.display.viewFrom||y.line>=c.display.viewTo||w.line<c.display.viewFrom){s.removeAllRanges();return}var H=Bd(c,s.anchorNode,s.anchorOffset),ie=Bd(c,s.focusNode,s.focusOffset);if(!(H&&!H.bad&&ie&&!ie.bad&&fn(Rt(H,ie),y)==0&&fn(L(H,ie),w)==0)){var Se=c.display.view,be=y.line>=c.display.viewFrom&&mf(c,y)||{node:Se[0].measure.map[2],offset:0},Ze=w.line<c.display.viewTo&&mf(c,w);if(!Ze){var Wt=Se[Se.length-1].measure,st=Wt.maps?Wt.maps[Wt.maps.length-1]:Wt.map;Ze={node:st[st.length-1],offset:st[st.length-2]-st[st.length-3]}}if(!be||!Ze){s.removeAllRanges();return}var Tn=s.rangeCount&&s.getRangeAt(0),En;try{En=ne(be.node,be.offset,Ze.offset,Ze.node)}catch(ci){}En&&(!v&&c.state.focused?(s.collapse(be.node,be.offset),En.collapsed||(s.removeAllRanges(),s.addRange(En))):(s.removeAllRanges(),s.addRange(En)),Tn&&s.anchorNode==null?s.addRange(Tn):v&&this.startGracePeriod()),this.rememberSelection()}},Za.prototype.startGracePeriod=function(){var s=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){s.gracePeriod=!1,s.selectionChanged()&&s.cm.operation(function(){return s.cm.curOp.selectionChanged=!0})},20)},Za.prototype.showMultipleSelections=function(s){Le(this.cm.display.cursorDiv,s.cursors),Le(this.cm.display.selectionDiv,s.selection)},Za.prototype.rememberSelection=function(){var s=this.getSelection();this.lastAnchorNode=s.anchorNode,this.lastAnchorOffset=s.anchorOffset,this.lastFocusNode=s.focusNode,this.lastFocusOffset=s.focusOffset},Za.prototype.selectionInEditor=function(){var s=this.getSelection();if(!s.rangeCount)return!1;var c=s.getRangeAt(0).commonAncestorContainer;return at(this.div,c)},Za.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Za.prototype.blur=function(){this.div.blur()},Za.prototype.getField=function(){return this.div},Za.prototype.supportsTouch=function(){return!0},Za.prototype.receivedFocus=function(){var s=this;this.selectionInEditor()?this.pollSelection():Dt(this.cm,function(){return s.cm.curOp.selectionChanged=!0});function c(){s.cm.state.focused&&(s.pollSelection(),s.polling.set(s.cm.options.pollInterval,c))}this.polling.set(this.cm.options.pollInterval,c)},Za.prototype.selectionChanged=function(){var s=this.getSelection();return s.anchorNode!=this.lastAnchorNode||s.anchorOffset!=this.lastAnchorOffset||s.focusNode!=this.lastFocusNode||s.focusOffset!=this.lastFocusOffset},Za.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var s=this.getSelection(),c=this.cm;if(Ce&&ae&&this.cm.display.gutterSpecs.length&&pp(s.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var b=Bd(c,s.anchorNode,s.anchorOffset),y=Bd(c,s.focusNode,s.focusOffset);b&&y&&Dt(c,function(){g(c.doc,Mr(b,y),St),(b.bad||y.bad)&&(c.curOp.selectionChanged=!0)})}}},Za.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var s=this.cm,c=s.display,b=s.doc.sel.primary(),y=b.from(),w=b.to();if(y.ch==0&&y.line>s.firstLine()&&(y=ot(y.line-1,vn(s.doc,y.line-1).length)),w.ch==vn(s.doc,w.line).text.length&&w.line<s.lastLine()&&(w=ot(w.line+1,0)),y.line<c.viewFrom||w.line>c.viewTo-1)return!1;var H,ie,Se;y.line==c.viewFrom||(H=as(s,y.line))==0?(ie=Ve(c.view[0].line),Se=c.view[0].node):(ie=Ve(c.view[H].line),Se=c.view[H-1].node.nextSibling);var be=as(s,w.line),Ze,Wt;if(be==c.view.length-1?(Ze=c.viewTo-1,Wt=c.lineDiv.lastChild):(Ze=Ve(c.view[be+1].line)-1,Wt=c.view[be+1].node.previousSibling),!Se)return!1;for(var st=s.doc.splitLines(pd(s,Se,Wt,ie,Ze)),Tn=Fn(s.doc,ot(ie,0),ot(Ze,vn(s.doc,Ze).text.length));st.length>1&&Tn.length>1;)if(Jn(st)==Jn(Tn))st.pop(),Tn.pop(),Ze--;else if(st[0]==Tn[0])st.shift(),Tn.shift(),ie++;else break;for(var En=0,ci=0,bi=st[0],Di=Tn[0],er=Math.min(bi.length,Di.length);En<er&&bi.charCodeAt(En)==Di.charCodeAt(En);)++En;for(var Fr=Jn(st),Sr=Jn(Tn),Gr=Math.min(Fr.length-(st.length==1?En:0),Sr.length-(Tn.length==1?En:0));ci<Gr&&Fr.charCodeAt(Fr.length-ci-1)==Sr.charCodeAt(Sr.length-ci-1);)++ci;if(st.length==1&&Tn.length==1&&ie==y.line)for(;En&&En>y.ch&&Fr.charCodeAt(Fr.length-ci-1)==Sr.charCodeAt(Sr.length-ci-1);)En--,ci++;st[st.length-1]=Fr.slice(0,Fr.length-ci).replace(/^\u200b+/,""),st[0]=st[0].slice(En).replace(/\u200b+$/,"");var mo=ot(ie,En),yr=ot(Ze,Tn.length?Jn(Tn).length-ci:0);if(st.length>1||st[0]||fn(mo,yr))return ol(s.doc,st,mo,yr,"+input"),!0},Za.prototype.ensurePolled=function(){this.forceCompositionEnd()},Za.prototype.reset=function(){this.forceCompositionEnd()},Za.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Za.prototype.readFromDOMSoon=function(){var s=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(s.readDOMTimeout=null,s.composing)if(s.composing.done)s.composing=null;else return;s.updateFromDOM()},80))},Za.prototype.updateFromDOM=function(){var s=this;(this.cm.isReadOnly()||!this.pollContent())&&Dt(this.cm,function(){return Eo(s.cm)})},Za.prototype.setUneditable=function(s){s.contentEditable="false"},Za.prototype.onKeyPress=function(s){s.charCode==0||this.composing||(s.preventDefault(),this.cm.isReadOnly()||ve(this.cm,Pd)(this.cm,String.fromCharCode(s.charCode==null?s.keyCode:s.charCode),0))},Za.prototype.readOnlyChanged=function(s){this.div.contentEditable=String(s!="nocursor")},Za.prototype.onContextMenu=function(){},Za.prototype.resetPosition=function(){},Za.prototype.needsContentAttribute=!0;function mf(s,c){var b=Ga(s,c.line);if(!b||b.hidden)return null;var y=vn(s.doc,c.line),w=il(b,y,c.line),H=pn(y,s.doc.direction),ie="left";if(H){var Se=tt(H,c.ch);ie=Se%2?"right":"left"}var be=Cs(w.map,c.ch,ie);return be.offset=be.collapse=="right"?be.end:be.start,be}function pp(s){for(var c=s;c;c=c.parentNode)if(/CodeMirror-gutter-wrapper/.test(c.className))return!0;return!1}function fd(s,c){return c&&(s.bad=!0),s}function pd(s,c,b,y,w){var H="",ie=!1,Se=s.doc.lineSeparator(),be=!1;function Ze(En){return function(ci){return ci.id==En}}function Wt(){ie&&(H+=Se,be&&(H+=Se),ie=be=!1)}function st(En){En&&(Wt(),H+=En)}function Tn(En){if(En.nodeType==1){var ci=En.getAttribute("cm-text");if(ci){st(ci);return}var bi=En.getAttribute("cm-marker"),Di;if(bi){var er=s.findMarks(ot(y,0),ot(w+1,0),Ze(+bi));er.length&&(Di=er[0].find(0))&&st(Fn(s.doc,Di.from,Di.to).join(Se));return}if(En.getAttribute("contenteditable")=="false")return;var Fr=/^(pre|div|p|li|table|br)$/i.test(En.nodeName);if(!/^br$/i.test(En.nodeName)&&En.textContent.length==0)return;Fr&&Wt();for(var Sr=0;Sr<En.childNodes.length;Sr++)Tn(En.childNodes[Sr]);/^(pre|p)$/i.test(En.nodeName)&&(be=!0),Fr&&(ie=!0)}else En.nodeType==3&&st(En.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Tn(c),c!=b;)c=c.nextSibling,be=!1;return H}function Bd(s,c,b){var y;if(c==s.display.lineDiv){if(y=s.display.lineDiv.childNodes[b],!y)return fd(s.clipPos(ot(s.display.viewTo-1)),!0);c=null,b=0}else for(y=c;;y=y.parentNode){if(!y||y==s.display.lineDiv)return null;if(y.parentNode&&y.parentNode==s.display.lineDiv)break}for(var w=0;w<s.display.view.length;w++){var H=s.display.view[w];if(H.node==y)return y0(H,c,b)}}function y0(s,c,b){var y=s.text.firstChild,w=!1;if(!c||!at(y,c))return fd(ot(Ve(s.line),0),!0);if(c==y&&(w=!0,c=y.childNodes[b],b=0,!c)){var H=s.rest?Jn(s.rest):s.line;return fd(ot(Ve(H),H.text.length),w)}var ie=c.nodeType==3?c:null,Se=c;for(!ie&&c.childNodes.length==1&&c.firstChild.nodeType==3&&(ie=c.firstChild,b&&(b=ie.nodeValue.length));Se.parentNode!=y;)Se=Se.parentNode;var be=s.measure,Ze=be.maps;function Wt(Di,er,Fr){for(var Sr=-1;Sr<(Ze?Ze.length:0);Sr++)for(var Gr=Sr<0?be.map:Ze[Sr],mo=0;mo<Gr.length;mo+=3){var yr=Gr[mo+2];if(yr==Di||yr==er){var zo=Ve(Sr<0?s.line:s.rest[Sr]),cs=Gr[mo]+Fr;return(Fr<0||yr!=Di)&&(cs=Gr[mo+(Fr?1:0)]),ot(zo,cs)}}}var st=Wt(ie,Se,b);if(st)return fd(st,w);for(var Tn=Se.nextSibling,En=ie?ie.nodeValue.length-b:0;Tn;Tn=Tn.nextSibling){if(st=Wt(Tn,Tn.firstChild,0),st)return fd(ot(st.line,st.ch-En),w);En+=Tn.textContent.length}for(var ci=Se.previousSibling,bi=b;ci;ci=ci.previousSibling){if(st=Wt(ci,ci.firstChild,-1),st)return fd(ot(st.line,st.ch+bi),w);bi+=ci.textContent.length}}var Js=function(s){this.cm=s,this.prevInput="",this.pollingFast=!1,this.polling=new le,this.hasSelection=!1,this.composing=null};Js.prototype.init=function(s){var c=this,b=this,y=this.cm;this.createField(s);var w=this.textarea;s.wrapper.insertBefore(this.wrapper,s.wrapper.firstChild),Oe&&(w.style.width="0px"),Kt(w,"input",function(){G&&F>=9&&c.hasSelection&&(c.hasSelection=null),b.poll()}),Kt(w,"paste",function(ie){zt(y,ie)||up(ie,y)||(y.state.pasteIncoming=+new Date,b.fastPoll())});function H(ie){if(!zt(y,ie)){if(y.somethingSelected())Hh({lineWise:!1,text:y.getSelections()});else if(y.options.lineWiseCopyCut){var Se=hp(y);Hh({lineWise:!0,text:Se.text}),ie.type=="cut"?y.setSelections(Se.ranges,null,St):(b.prevInput="",w.value=Se.text.join(`
`),kt(w))}else return;ie.type=="cut"&&(y.state.cutIncoming=+new Date)}}Kt(w,"cut",H),Kt(w,"copy",H),Kt(s.scroller,"paste",function(ie){if(!(Os(s,ie)||zt(y,ie))){if(!w.dispatchEvent){y.state.pasteIncoming=+new Date,b.focus();return}var Se=new Event("paste");Se.clipboardData=ie.clipboardData,w.dispatchEvent(Se)}}),Kt(s.lineSpace,"selectstart",function(ie){Os(s,ie)||Un(ie)}),Kt(w,"compositionstart",function(){var ie=y.getCursor("from");b.composing&&b.composing.range.clear(),b.composing={start:ie,range:y.markText(ie,y.getCursor("to"),{className:"CodeMirror-composing"})}}),Kt(w,"compositionend",function(){b.composing&&(b.poll(),b.composing.range.clear(),b.composing=null)})},Js.prototype.createField=function(s){this.wrapper=fp(),this.textarea=this.wrapper.firstChild},Js.prototype.screenReaderLabelChanged=function(s){s?this.textarea.setAttribute("aria-label",s):this.textarea.removeAttribute("aria-label")},Js.prototype.prepareSelection=function(){var s=this.cm,c=s.display,b=s.doc,y=eu(s);if(s.options.moveInputWithCursor){var w=wa(s,b.sel.primary().head,"div"),H=c.wrapper.getBoundingClientRect(),ie=c.lineDiv.getBoundingClientRect();y.teTop=Math.max(0,Math.min(c.wrapper.clientHeight-10,w.top+ie.top-H.top)),y.teLeft=Math.max(0,Math.min(c.wrapper.clientWidth-10,w.left+ie.left-H.left))}return y},Js.prototype.showSelection=function(s){var c=this.cm,b=c.display;Le(b.cursorDiv,s.cursors),Le(b.selectionDiv,s.selection),s.teTop!=null&&(this.wrapper.style.top=s.teTop+"px",this.wrapper.style.left=s.teLeft+"px")},Js.prototype.reset=function(s){if(!(this.contextMenuPending||this.composing)){var c=this.cm;if(c.somethingSelected()){this.prevInput="";var b=c.getSelection();this.textarea.value=b,c.state.focused&&kt(this.textarea),G&&F>=9&&(this.hasSelection=b)}else s||(this.prevInput=this.textarea.value="",G&&F>=9&&(this.hasSelection=null))}},Js.prototype.getField=function(){return this.textarea},Js.prototype.supportsTouch=function(){return!1},Js.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Ie||Ge()!=this.textarea))try{this.textarea.focus()}catch(s){}},Js.prototype.blur=function(){this.textarea.blur()},Js.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Js.prototype.receivedFocus=function(){this.slowPoll()},Js.prototype.slowPoll=function(){var s=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){s.poll(),s.cm.state.focused&&s.slowPoll()})},Js.prototype.fastPoll=function(){var s=!1,c=this;c.pollingFast=!0;function b(){var y=c.poll();!y&&!s?(s=!0,c.polling.set(60,b)):(c.pollingFast=!1,c.slowPoll())}c.polling.set(20,b)},Js.prototype.poll=function(){var s=this,c=this.cm,b=this.textarea,y=this.prevInput;if(this.contextMenuPending||!c.state.focused||U(b)&&!y&&!this.composing||c.isReadOnly()||c.options.disableInput||c.state.keySeq)return!1;var w=b.value;if(w==y&&!c.somethingSelected())return!1;if(G&&F>=9&&this.hasSelection===w||Re&&/[\uf700-\uf7ff]/.test(w))return c.display.input.reset(),!1;if(c.doc.sel==c.display.selForContextMenu){var H=w.charCodeAt(0);if(H==8203&&!y&&(y="\u200B"),H==8666)return this.reset(),this.cm.execCommand("undo")}for(var ie=0,Se=Math.min(y.length,w.length);ie<Se&&y.charCodeAt(ie)==w.charCodeAt(ie);)++ie;return Dt(c,function(){Pd(c,w.slice(ie),y.length-ie,null,s.composing?"*compose":null),w.length>1e3||w.indexOf(`
`)>-1?b.value=s.prevInput="":s.prevInput=w,s.composing&&(s.composing.range.clear(),s.composing.range=c.markText(s.composing.start,c.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Js.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Js.prototype.onKeyPress=function(){G&&F>=9&&(this.hasSelection=null),this.fastPoll()},Js.prototype.onContextMenu=function(s){var c=this,b=c.cm,y=b.display,w=c.textarea;c.contextMenuPending&&c.contextMenuPending();var H=fs(b,s),ie=y.scroller.scrollTop;if(!H||te)return;var Se=b.options.resetSelectionOnContextMenu;Se&&b.doc.sel.contains(H)==-1&&ve(b,g)(b.doc,Mr(H),St);var be=w.style.cssText,Ze=c.wrapper.style.cssText,Wt=c.wrapper.offsetParent.getBoundingClientRect();c.wrapper.style.cssText="position: static",w.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(s.clientY-Wt.top-5)+"px; left: "+(s.clientX-Wt.left-5)+`px;
z-index: 1000; background: `+(G?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var st;M&&(st=window.scrollY),y.input.focus(),M&&window.scrollTo(null,st),y.input.reset(),b.somethingSelected()||(w.value=c.prevInput=" "),c.contextMenuPending=En,y.selForContextMenu=b.doc.sel,clearTimeout(y.detectingSelectAll);function Tn(){if(w.selectionStart!=null){var bi=b.somethingSelected(),Di="\u200B"+(bi?w.value:"");w.value="\u21DA",w.value=Di,c.prevInput=bi?"":"\u200B",w.selectionStart=1,w.selectionEnd=Di.length,y.selForContextMenu=b.doc.sel}}function En(){if(c.contextMenuPending==En&&(c.contextMenuPending=!1,c.wrapper.style.cssText=Ze,w.style.cssText=be,G&&F<9&&y.scrollbars.setScrollTop(y.scroller.scrollTop=ie),w.selectionStart!=null)){(!G||G&&F<9)&&Tn();var bi=0,Di=function(){y.selForContextMenu==b.doc.sel&&w.selectionStart==0&&w.selectionEnd>0&&c.prevInput=="\u200B"?ve(b,Gn)(b):bi++<10?y.detectingSelectAll=setTimeout(Di,500):(y.selForContextMenu=null,y.input.reset())};y.detectingSelectAll=setTimeout(Di,200)}}if(G&&F>=9&&Tn(),ke){Si(s);var ci=function(){an(window,"mouseup",ci),setTimeout(En,20)};Kt(window,"mouseup",ci)}else setTimeout(En,50)},Js.prototype.readOnlyChanged=function(s){s||this.reset(),this.textarea.disabled=s=="nocursor",this.textarea.readOnly=!!s},Js.prototype.setUneditable=function(){},Js.prototype.needsContentAttribute=!1;function b0(s,c){if(c=c?Cn(c):{},c.value=s.value,!c.tabindex&&s.tabIndex&&(c.tabindex=s.tabIndex),!c.placeholder&&s.placeholder&&(c.placeholder=s.placeholder),c.autofocus==null){var b=Ge();c.autofocus=b==s||s.getAttribute("autofocus")!=null&&b==document.body}function y(){s.value=Se.getValue()}var w;if(s.form&&(Kt(s.form,"submit",y),!c.leaveSubmitMethodAlone)){var H=s.form;w=H.submit;try{var ie=H.submit=function(){y(),H.submit=w,H.submit(),H.submit=ie}}catch(be){}}c.finishInit=function(be){be.save=y,be.getTextArea=function(){return s},be.toTextArea=function(){be.toTextArea=isNaN,y(),s.parentNode.removeChild(be.getWrapperElement()),s.style.display="",s.form&&(an(s.form,"submit",y),!c.leaveSubmitMethodAlone&&typeof s.form.submit=="function"&&(s.form.submit=w))}},s.style.display="none";var Se=Ea(function(be){return s.parentNode.insertBefore(be,s.nextSibling)},c);return Se}function md(s){s.off=an,s.on=Kt,s.wheelEventPixels=ki,s.Doc=$i,s.splitLines=ur,s.countColumn=Qe,s.findColumn=oi,s.isWordChar=j,s.Pass=Vt,s.signal=et,s.Line=$a,s.changeEnd=Xr,s.scrollbarModel=nu,s.Pos=ot,s.cmpPos=fn,s.modes=qr,s.mimeModes=xo,s.resolveMode=rr,s.getMode=Bi,s.modeExtensions=yi,s.extendMode=ht,s.copyState=_n,s.startState=pt,s.innerMode=Vn,s.commands=Hs,s.keyMap=Ns,s.keyName=Pc,s.isModifierKey=ku,s.lookupKey=Fs,s.normalizeKeyMap=Vl,s.StringStream=Ke,s.SharedTextMarker=ft,s.TextMarker=Y,s.LineWidget=S,s.e_preventDefault=Un,s.e_stopPropagation=yn,s.e_stop=Si,s.addClass=Pt,s.contains=at,s.rmClass=Te,s.keyNames=ua}g0(Ea),ph(Ea);var Qc="iter insert remove copy getEditor constructor".split(" ");for(var _d in $i.prototype)$i.prototype.hasOwnProperty(_d)&&ce(Qc,_d)<0&&(Ea.prototype[_d]=function(s){return function(){return s.apply(this.doc,arguments)}}($i.prototype[_d]));return ze($i),Ea.inputStyles={textarea:Js,contenteditable:Za},Ea.defineMode=function(s){!Ea.defaults.mode&&s!="null"&&(Ea.defaults.mode=s),kr.apply(this,arguments)},Ea.defineMIME=no,Ea.defineMode("null",function(){return{token:function(s){return s.skipToEnd()}}}),Ea.defineMIME("text/plain","null"),Ea.defineExtension=function(s,c){Ea.prototype[s]=c},Ea.defineDocExtension=function(s,c){$i.prototype[s]=c},Ea.fromTextArea=b0,md(Ea),Ea.version="5.58.2",Ea})},25419:function(X,C,h){(function(v){v(h(89780),h(15525),h(98101))})(function(v){"use strict";v.defineMode("markdown",function(I,O){var B=v.getMode(I,"text/html"),G=B.name=="null";function F(Qe){if(v.findModeByName){var le=v.findModeByName(Qe);le&&(Qe=le.mime||le.mimes[0])}var ce=v.getMode(I,Qe);return ce.name=="null"?null:ce}O.highlightFormatting===void 0&&(O.highlightFormatting=!1),O.maxBlockquoteDepth===void 0&&(O.maxBlockquoteDepth=0),O.taskLists===void 0&&(O.taskLists=!1),O.strikethrough===void 0&&(O.strikethrough=!1),O.emoji===void 0&&(O.emoji=!1),O.fencedCodeBlockHighlighting===void 0&&(O.fencedCodeBlockHighlighting=!0),O.fencedCodeBlockDefaultMode===void 0&&(O.fencedCodeBlockDefaultMode="text/plain"),O.xml===void 0&&(O.xml=!0),O.tokenTypeOverrides===void 0&&(O.tokenTypeOverrides={});var M={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var de in M)M.hasOwnProperty(de)&&O.tokenTypeOverrides[de]&&(M[de]=O.tokenTypeOverrides[de]);var ae=/^([*\-_])(?:\s*\1){2,}\s*$/,te=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Ne=/^\[(x| )\](?=\s)/i,Ee=O.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Xe=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Oe=/^[^#!\[\]*_\\<>` "'(~:]+/,Ce=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Ie=/^\s*\[[^\]]+?\]:.*$/,Re=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,fe=" ";function me(Qe,le,ce){return le.f=le.inline=ce,ce(Qe,le)}function ye(Qe,le,ce){return le.f=le.block=ce,ce(Qe,le)}function pe(Qe){return!Qe||!/\S/.test(Qe.string)}function ke(Qe){if(Qe.linkTitle=!1,Qe.linkHref=!1,Qe.linkText=!1,Qe.em=!1,Qe.strong=!1,Qe.strikethrough=!1,Qe.quote=0,Qe.indentedCode=!1,Qe.f==Te){var le=G;if(!le){var ce=v.innerMode(B,Qe.htmlState);le=ce.mode.name=="xml"&&ce.state.tagStart===null&&!ce.state.context&&ce.state.tokenize.isInText}le&&(Qe.f=Ye,Qe.block=ee,Qe.htmlState=null)}return Qe.trailingSpace=0,Qe.trailingSpaceNewLine=!1,Qe.prevLine=Qe.thisLine,Qe.thisLine={stream:null},null}function ee(Qe,le){var ce=Qe.column()===le.indentation,Ht=pe(le.prevLine.stream),Vt=le.indentedCode,St=le.prevLine.hr,sn=le.list!==!1,Ft=(le.listStack[le.listStack.length-1]||0)+3;le.indentedCode=!1;var oi=le.indentation;if(le.indentationDiff===null&&(le.indentationDiff=le.indentation,sn)){for(le.list=null;oi<le.listStack[le.listStack.length-1];)le.listStack.pop(),le.listStack.length?le.indentation=le.listStack[le.listStack.length-1]:le.list=!1;le.list!==!1&&(le.indentationDiff=oi-le.listStack[le.listStack.length-1])}var On=!Ht&&!St&&!le.prevLine.header&&(!sn||!Vt)&&!le.prevLine.fencedCodeEnd,ni=(le.list===!1||St||Ht)&&le.indentation<=Ft&&Qe.match(ae),Jn=null;if(le.indentationDiff>=4&&(Vt||le.prevLine.fencedCodeEnd||le.prevLine.header||Ht))return Qe.skipToEnd(),le.indentedCode=!0,M.code;if(Qe.eatSpace())return null;if(ce&&le.indentation<=Ft&&(Jn=Qe.match(Ee))&&Jn[1].length<=6)return le.quote=0,le.header=Jn[1].length,le.thisLine.header=!0,O.highlightFormatting&&(le.formatting="header"),le.f=le.inline,Le(le);if(le.indentation<=Ft&&Qe.eat(">"))return le.quote=ce?1:le.quote+1,O.highlightFormatting&&(le.formatting="quote"),Qe.eatSpace(),Le(le);if(!ni&&!le.setext&&ce&&le.indentation<=Ft&&(Jn=Qe.match(te))){var Mn=Jn[1]?"ol":"ul";return le.indentation=oi+Qe.current().length,le.list=!0,le.quote=0,le.listStack.push(le.indentation),le.em=!1,le.strong=!1,le.code=!1,le.strikethrough=!1,O.taskLists&&Qe.match(Ne,!1)&&(le.taskList=!0),le.f=le.inline,O.highlightFormatting&&(le.formatting=["list","list-"+Mn]),Le(le)}else{if(ce&&le.indentation<=Ft&&(Jn=Qe.match(Ce,!0)))return le.quote=0,le.fencedEndRE=new RegExp(Jn[1]+"+ *$"),le.localMode=O.fencedCodeBlockHighlighting&&F(Jn[2]||O.fencedCodeBlockDefaultMode),le.localMode&&(le.localState=v.startState(le.localMode)),le.f=le.block=Me,O.highlightFormatting&&(le.formatting="code-block"),le.code=-1,Le(le);if(le.setext||(!On||!sn)&&!le.quote&&le.list===!1&&!le.code&&!ni&&!Ie.test(Qe.string)&&(Jn=Qe.lookAhead(1))&&(Jn=Jn.match(Xe)))return le.setext?(le.header=le.setext,le.setext=0,Qe.skipToEnd(),O.highlightFormatting&&(le.formatting="header")):(le.header=Jn[0].charAt(0)=="="?1:2,le.setext=le.header),le.thisLine.header=!0,le.f=le.inline,Le(le);if(ni)return Qe.skipToEnd(),le.hr=!0,le.thisLine.hr=!0,M.hr;if(Qe.peek()==="[")return me(Qe,le,gt)}return me(Qe,le,le.inline)}function Te(Qe,le){var ce=B.token(Qe,le.htmlState);if(!G){var Ht=v.innerMode(B,le.htmlState);(Ht.mode.name=="xml"&&Ht.state.tagStart===null&&!Ht.state.context&&Ht.state.tokenize.isInText||le.md_inside&&Qe.current().indexOf(">")>-1)&&(le.f=Ye,le.block=ee,le.htmlState=null)}return ce}function Me(Qe,le){var ce=le.listStack[le.listStack.length-1]||0,Ht=le.indentation<ce,Vt=ce+3;if(le.fencedEndRE&&le.indentation<=Vt&&(Ht||Qe.match(le.fencedEndRE))){O.highlightFormatting&&(le.formatting="code-block");var St;return Ht||(St=Le(le)),le.localMode=le.localState=null,le.block=ee,le.f=Ye,le.fencedEndRE=null,le.code=0,le.thisLine.fencedCodeEnd=!0,Ht?ye(Qe,le,le.block):St}else return le.localMode?le.localMode.token(Qe,le.localState):(Qe.skipToEnd(),M.code)}function Le(Qe){var le=[];if(Qe.formatting){le.push(M.formatting),typeof Qe.formatting=="string"&&(Qe.formatting=[Qe.formatting]);for(var ce=0;ce<Qe.formatting.length;ce++)le.push(M.formatting+"-"+Qe.formatting[ce]),Qe.formatting[ce]==="header"&&le.push(M.formatting+"-"+Qe.formatting[ce]+"-"+Qe.header),Qe.formatting[ce]==="quote"&&(!O.maxBlockquoteDepth||O.maxBlockquoteDepth>=Qe.quote?le.push(M.formatting+"-"+Qe.formatting[ce]+"-"+Qe.quote):le.push("error"))}if(Qe.taskOpen)return le.push("meta"),le.length?le.join(" "):null;if(Qe.taskClosed)return le.push("property"),le.length?le.join(" "):null;if(Qe.linkHref?le.push(M.linkHref,"url"):(Qe.strong&&le.push(M.strong),Qe.em&&le.push(M.em),Qe.strikethrough&&le.push(M.strikethrough),Qe.emoji&&le.push(M.emoji),Qe.linkText&&le.push(M.linkText),Qe.code&&le.push(M.code),Qe.image&&le.push(M.image),Qe.imageAltText&&le.push(M.imageAltText,"link"),Qe.imageMarker&&le.push(M.imageMarker)),Qe.header&&le.push(M.header,M.header+"-"+Qe.header),Qe.quote&&(le.push(M.quote),!O.maxBlockquoteDepth||O.maxBlockquoteDepth>=Qe.quote?le.push(M.quote+"-"+Qe.quote):le.push(M.quote+"-"+O.maxBlockquoteDepth)),Qe.list!==!1){var Ht=(Qe.listStack.length-1)%3;Ht?Ht===1?le.push(M.list2):le.push(M.list3):le.push(M.list1)}return Qe.trailingSpaceNewLine?le.push("trailing-space-new-line"):Qe.trailingSpace&&le.push("trailing-space-"+(Qe.trailingSpace%2?"a":"b")),le.length?le.join(" "):null}function Je(Qe,le){if(Qe.match(Oe,!0))return Le(le)}function Ye(Qe,le){var ce=le.text(Qe,le);if(typeof ce!="undefined")return ce;if(le.list)return le.list=null,Le(le);if(le.taskList){var Ht=Qe.match(Ne,!0)[1]===" ";return Ht?le.taskOpen=!0:le.taskClosed=!0,O.highlightFormatting&&(le.formatting="task"),le.taskList=!1,Le(le)}if(le.taskOpen=!1,le.taskClosed=!1,le.header&&Qe.match(/^#+$/,!0))return O.highlightFormatting&&(le.formatting="header"),Le(le);var Vt=Qe.next();if(le.linkTitle){le.linkTitle=!1;var St=Vt;Vt==="("&&(St=")"),St=(St+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var sn="^\\s*(?:[^"+St+"\\\\]+|\\\\\\\\|\\\\.)"+St;if(Qe.match(new RegExp(sn),!0))return M.linkHref}if(Vt==="`"){var Ft=le.formatting;O.highlightFormatting&&(le.formatting="code"),Qe.eatWhile("`");var oi=Qe.current().length;if(le.code==0&&(!le.quote||oi==1))return le.code=oi,Le(le);if(oi==le.code){var On=Le(le);return le.code=0,On}else return le.formatting=Ft,Le(le)}else if(le.code)return Le(le);if(Vt==="\\"&&(Qe.next(),O.highlightFormatting)){var ni=Le(le),Jn=M.formatting+"-escape";return ni?ni+" "+Jn:Jn}if(Vt==="!"&&Qe.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return le.imageMarker=!0,le.image=!0,O.highlightFormatting&&(le.formatting="image"),Le(le);if(Vt==="["&&le.imageMarker&&Qe.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return le.imageMarker=!1,le.imageAltText=!0,O.highlightFormatting&&(le.formatting="image"),Le(le);if(Vt==="]"&&le.imageAltText){O.highlightFormatting&&(le.formatting="image");var ni=Le(le);return le.imageAltText=!1,le.image=!1,le.inline=le.f=at,ni}if(Vt==="["&&!le.image)return le.linkText&&Qe.match(/^.*?\]/)||(le.linkText=!0,O.highlightFormatting&&(le.formatting="link")),Le(le);if(Vt==="]"&&le.linkText){O.highlightFormatting&&(le.formatting="link");var ni=Le(le);return le.linkText=!1,le.inline=le.f=Qe.match(/\(.*?\)| ?\[.*?\]/,!1)?at:Ye,ni}if(Vt==="<"&&Qe.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){le.f=le.inline=ne,O.highlightFormatting&&(le.formatting="link");var ni=Le(le);return ni?ni+=" ":ni="",ni+M.linkInline}if(Vt==="<"&&Qe.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){le.f=le.inline=ne,O.highlightFormatting&&(le.formatting="link");var ni=Le(le);return ni?ni+=" ":ni="",ni+M.linkEmail}if(O.xml&&Vt==="<"&&Qe.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Mn=Qe.string.indexOf(">",Qe.pos);if(Mn!=-1){var In=Qe.string.substring(Qe.start,Mn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(In)&&(le.md_inside=!0)}return Qe.backUp(1),le.htmlState=v.startState(B),ye(Qe,le,Te)}if(O.xml&&Vt==="<"&&Qe.match(/^\/\w*?>/))return le.md_inside=!1,"tag";if(Vt==="*"||Vt==="_"){for(var re=1,z=Qe.pos==1?" ":Qe.string.charAt(Qe.pos-2);re<3&&Qe.eat(Vt);)re++;var k=Qe.peek()||" ",j=!/\s/.test(k)&&(!Re.test(k)||/\s/.test(z)||Re.test(z)),Q=!/\s/.test(z)&&(!Re.test(z)||/\s/.test(k)||Re.test(k)),T=null,_e=null;if(re%2&&(!le.em&&j&&(Vt==="*"||!Q||Re.test(z))?T=!0:le.em==Vt&&Q&&(Vt==="*"||!j||Re.test(k))&&(T=!1)),re>1&&(!le.strong&&j&&(Vt==="*"||!Q||Re.test(z))?_e=!0:le.strong==Vt&&Q&&(Vt==="*"||!j||Re.test(k))&&(_e=!1)),_e!=null||T!=null){O.highlightFormatting&&(le.formatting=T==null?"strong":_e==null?"em":"strong em"),T===!0&&(le.em=Vt),_e===!0&&(le.strong=Vt);var On=Le(le);return T===!1&&(le.em=!1),_e===!1&&(le.strong=!1),On}}else if(Vt===" "&&(Qe.eat("*")||Qe.eat("_"))){if(Qe.peek()===" ")return Le(le);Qe.backUp(1)}if(O.strikethrough){if(Vt==="~"&&Qe.eatWhile(Vt)){if(le.strikethrough){O.highlightFormatting&&(le.formatting="strikethrough");var On=Le(le);return le.strikethrough=!1,On}else if(Qe.match(/^[^\s]/,!1))return le.strikethrough=!0,O.highlightFormatting&&(le.formatting="strikethrough"),Le(le)}else if(Vt===" "&&Qe.match(/^~~/,!0)){if(Qe.peek()===" ")return Le(le);Qe.backUp(2)}}if(O.emoji&&Vt===":"&&Qe.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){le.emoji=!0,O.highlightFormatting&&(le.formatting="emoji");var It=Le(le);return le.emoji=!1,It}return Vt===" "&&(Qe.match(/^ +$/,!1)?le.trailingSpace++:le.trailingSpace&&(le.trailingSpaceNewLine=!0)),Le(le)}function ne(Qe,le){var ce=Qe.next();if(ce===">"){le.f=le.inline=Ye,O.highlightFormatting&&(le.formatting="link");var Ht=Le(le);return Ht?Ht+=" ":Ht="",Ht+M.linkInline}return Qe.match(/^[^>]+/,!0),M.linkInline}function at(Qe,le){if(Qe.eatSpace())return null;var ce=Qe.next();return ce==="("||ce==="["?(le.f=le.inline=Pt(ce==="("?")":"]"),O.highlightFormatting&&(le.formatting="link-string"),le.linkHref=!0,Le(le)):"error"}var Ge={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Pt(Qe){return function(le,ce){var Ht=le.next();if(Ht===Qe){ce.f=ce.inline=Ye,O.highlightFormatting&&(ce.formatting="link-string");var Vt=Le(ce);return ce.linkHref=!1,Vt}return le.match(Ge[Qe]),ce.linkHref=!0,Le(ce)}}function gt(Qe,le){return Qe.match(/^([^\]\\]|\\.)*\]:/,!1)?(le.f=kt,Qe.next(),O.highlightFormatting&&(le.formatting="link"),le.linkText=!0,Le(le)):me(Qe,le,Ye)}function kt(Qe,le){if(Qe.match(/^\]:/,!0)){le.f=le.inline=Ct,O.highlightFormatting&&(le.formatting="link");var ce=Le(le);return le.linkText=!1,ce}return Qe.match(/^([^\]\\]|\\.)+/,!0),M.linkText}function Ct(Qe,le){return Qe.eatSpace()?null:(Qe.match(/^[^\s]+/,!0),Qe.peek()===void 0?le.linkTitle=!0:Qe.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),le.f=le.inline=Ye,M.linkHref+" url")}var Cn={startState:function(){return{f:ee,prevLine:{stream:null},thisLine:{stream:null},block:ee,htmlState:null,indentation:0,inline:Ye,text:Je,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(Qe){return{f:Qe.f,prevLine:Qe.prevLine,thisLine:Qe.thisLine,block:Qe.block,htmlState:Qe.htmlState&&v.copyState(B,Qe.htmlState),indentation:Qe.indentation,localMode:Qe.localMode,localState:Qe.localMode?v.copyState(Qe.localMode,Qe.localState):null,inline:Qe.inline,text:Qe.text,formatting:!1,linkText:Qe.linkText,linkTitle:Qe.linkTitle,linkHref:Qe.linkHref,code:Qe.code,em:Qe.em,strong:Qe.strong,strikethrough:Qe.strikethrough,emoji:Qe.emoji,header:Qe.header,setext:Qe.setext,hr:Qe.hr,taskList:Qe.taskList,list:Qe.list,listStack:Qe.listStack.slice(0),quote:Qe.quote,indentedCode:Qe.indentedCode,trailingSpace:Qe.trailingSpace,trailingSpaceNewLine:Qe.trailingSpaceNewLine,md_inside:Qe.md_inside,fencedEndRE:Qe.fencedEndRE}},token:function(Qe,le){if(le.formatting=!1,Qe!=le.thisLine.stream){if(le.header=0,le.hr=!1,Qe.match(/^\s*$/,!0))return ke(le),null;if(le.prevLine=le.thisLine,le.thisLine={stream:Qe},le.taskList=!1,le.trailingSpace=0,le.trailingSpaceNewLine=!1,!le.localState&&(le.f=le.block,le.f!=Te)){var ce=Qe.match(/^\s*/,!0)[0].replace(/\t/g,fe).length;if(le.indentation=ce,le.indentationDiff=null,ce>0)return null}}return le.f(Qe,le)},innerMode:function(Qe){return Qe.block==Te?{state:Qe.htmlState,mode:B}:Qe.localState?{state:Qe.localState,mode:Qe.localMode}:{state:Qe,mode:Cn}},indent:function(Qe,le,ce){return Qe.block==Te&&B.indent?B.indent(Qe.htmlState,le,ce):Qe.localState&&Qe.localMode.indent?Qe.localMode.indent(Qe.localState,le,ce):v.Pass},blankLine:ke,getType:Le,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Cn},"xml"),v.defineMIME("text/markdown","markdown"),v.defineMIME("text/x-markdown","markdown")})},98101:function(X,C,h){(function(v){v(h(89780))})(function(v){"use strict";v.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var I=0;I<v.modeInfo.length;I++){var O=v.modeInfo[I];O.mimes&&(O.mime=O.mimes[0])}v.findModeByMIME=function(B){B=B.toLowerCase();for(var G=0;G<v.modeInfo.length;G++){var F=v.modeInfo[G];if(F.mime==B)return F;if(F.mimes){for(var M=0;M<F.mimes.length;M++)if(F.mimes[M]==B)return F}}if(/\+xml$/.test(B))return v.findModeByMIME("application/xml");if(/\+json$/.test(B))return v.findModeByMIME("application/json")},v.findModeByExtension=function(B){B=B.toLowerCase();for(var G=0;G<v.modeInfo.length;G++){var F=v.modeInfo[G];if(F.ext){for(var M=0;M<F.ext.length;M++)if(F.ext[M]==B)return F}}},v.findModeByFileName=function(B){for(var G=0;G<v.modeInfo.length;G++){var F=v.modeInfo[G];if(F.file&&F.file.test(B))return F}var M=B.lastIndexOf("."),de=M>-1&&B.substring(M+1,B.length);if(de)return v.findModeByExtension(de)},v.findModeByName=function(B){B=B.toLowerCase();for(var G=0;G<v.modeInfo.length;G++){var F=v.modeInfo[G];if(F.name.toLowerCase()==B)return F;if(F.alias){for(var M=0;M<F.alias.length;M++)if(F.alias[M].toLowerCase()==B)return F}}}})},67549:function(X,C,h){(function(v){v(h(89780))})(function(v){"use strict";v.defineMode("stex",function(I,O){"use strict";function B(Oe,Ce){Oe.cmdState.push(Ce)}function G(Oe){return Oe.cmdState.length>0?Oe.cmdState[Oe.cmdState.length-1]:null}function F(Oe){var Ce=Oe.cmdState.pop();Ce&&Ce.closeBracket()}function M(Oe){for(var Ce=Oe.cmdState,Ie=Ce.length-1;Ie>=0;Ie--){var Re=Ce[Ie];if(Re.name!="DEFAULT")return Re}return{styleIdentifier:function(){return null}}}function de(Oe,Ce,Ie){return function(){this.name=Oe,this.bracketNo=0,this.style=Ce,this.styles=Ie,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var ae={};ae.importmodule=de("importmodule","tag",["string","builtin"]),ae.documentclass=de("documentclass","tag",["","atom"]),ae.usepackage=de("usepackage","tag",["atom"]),ae.begin=de("begin","tag",["atom"]),ae.end=de("end","tag",["atom"]),ae.label=de("label","tag",["atom"]),ae.ref=de("ref","tag",["atom"]),ae.eqref=de("eqref","tag",["atom"]),ae.cite=de("cite","tag",["atom"]),ae.bibitem=de("bibitem","tag",["atom"]),ae.Bibitem=de("Bibitem","tag",["atom"]),ae.RBibitem=de("RBibitem","tag",["atom"]),ae.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function te(Oe,Ce){Oe.f=Ce}function Ne(Oe,Ce){var Ie;if(Oe.match(/^\\[a-zA-Z@]+/)){var Re=Oe.current().slice(1);return Ie=ae.hasOwnProperty(Re)?ae[Re]:ae.DEFAULT,Ie=new Ie,B(Ce,Ie),te(Ce,Xe),Ie.style}if(Oe.match(/^\\[$&%#{}_]/)||Oe.match(/^\\[,;!\/\\]/))return"tag";if(Oe.match("\\["))return te(Ce,function(me,ye){return Ee(me,ye,"\\]")}),"keyword";if(Oe.match("\\("))return te(Ce,function(me,ye){return Ee(me,ye,"\\)")}),"keyword";if(Oe.match("$$"))return te(Ce,function(me,ye){return Ee(me,ye,"$$")}),"keyword";if(Oe.match("$"))return te(Ce,function(me,ye){return Ee(me,ye,"$")}),"keyword";var fe=Oe.next();if(fe=="%")return Oe.skipToEnd(),"comment";if(fe=="}"||fe=="]"){if(Ie=G(Ce),Ie)Ie.closeBracket(fe),te(Ce,Xe);else return"error";return"bracket"}else return fe=="{"||fe=="["?(Ie=ae.DEFAULT,Ie=new Ie,B(Ce,Ie),"bracket"):/\d/.test(fe)?(Oe.eatWhile(/[\w.%]/),"atom"):(Oe.eatWhile(/[\w\-_]/),Ie=M(Ce),Ie.name=="begin"&&(Ie.argument=Oe.current()),Ie.styleIdentifier())}function Ee(Oe,Ce,Ie){if(Oe.eatSpace())return null;if(Ie&&Oe.match(Ie))return te(Ce,Ne),"keyword";if(Oe.match(/^\\[a-zA-Z@]+/))return"tag";if(Oe.match(/^[a-zA-Z]+/))return"variable-2";if(Oe.match(/^\\[$&%#{}_]/)||Oe.match(/^\\[,;!\/]/)||Oe.match(/^[\^_&]/))return"tag";if(Oe.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Oe.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var Re=Oe.next();return Re=="{"||Re=="}"||Re=="["||Re=="]"||Re=="("||Re==")"?"bracket":Re=="%"?(Oe.skipToEnd(),"comment"):"error"}function Xe(Oe,Ce){var Ie=Oe.peek(),Re;return Ie=="{"||Ie=="["?(Re=G(Ce),Re.openBracket(Ie),Oe.eat(Ie),te(Ce,Ne),"bracket"):/[ \t\r]/.test(Ie)?(Oe.eat(Ie),null):(te(Ce,Ne),F(Ce),Ne(Oe,Ce))}return{startState:function(){var Oe=O.inMathMode?function(Ce,Ie){return Ee(Ce,Ie)}:Ne;return{cmdState:[],f:Oe}},copyState:function(Oe){return{cmdState:Oe.cmdState.slice(),f:Oe.f}},token:function(Oe,Ce){return Ce.f(Oe,Ce)},blankLine:function(Oe){Oe.f=Ne,Oe.cmdState.length=0},lineComment:"%"}}),v.defineMIME("text/x-stex","stex"),v.defineMIME("text/x-latex","stex")})},15525:function(X,C,h){(function(v){v(h(89780))})(function(v){"use strict";var I={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},O={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};v.defineMode("xml",function(B,G){var F=B.indentUnit,M={},de=G.htmlMode?I:O;for(var ae in de)M[ae]=de[ae];for(var ae in G)M[ae]=G[ae];var te,Ne;function Ee(ne,at){function Ge(kt){return at.tokenize=kt,kt(ne,at)}var Pt=ne.next();if(Pt=="<")return ne.eat("!")?ne.eat("[")?ne.match("CDATA[")?Ge(Ce("atom","]]>")):null:ne.match("--")?Ge(Ce("comment","-->")):ne.match("DOCTYPE",!0,!0)?(ne.eatWhile(/[\w\._\-]/),Ge(Ie(1))):null:ne.eat("?")?(ne.eatWhile(/[\w\._\-]/),at.tokenize=Ce("meta","?>"),"meta"):(te=ne.eat("/")?"closeTag":"openTag",at.tokenize=Xe,"tag bracket");if(Pt=="&"){var gt;return ne.eat("#")?ne.eat("x")?gt=ne.eatWhile(/[a-fA-F\d]/)&&ne.eat(";"):gt=ne.eatWhile(/[\d]/)&&ne.eat(";"):gt=ne.eatWhile(/[\w\.\-:]/)&&ne.eat(";"),gt?"atom":"error"}else return ne.eatWhile(/[^&<]/),null}Ee.isInText=!0;function Xe(ne,at){var Ge=ne.next();if(Ge==">"||Ge=="/"&&ne.eat(">"))return at.tokenize=Ee,te=Ge==">"?"endTag":"selfcloseTag","tag bracket";if(Ge=="=")return te="equals",null;if(Ge=="<"){at.tokenize=Ee,at.state=ye,at.tagName=at.tagStart=null;var Pt=at.tokenize(ne,at);return Pt?Pt+" tag error":"tag error"}else return/[\'\"]/.test(Ge)?(at.tokenize=Oe(Ge),at.stringStartCol=ne.column(),at.tokenize(ne,at)):(ne.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Oe(ne){var at=function(Ge,Pt){for(;!Ge.eol();)if(Ge.next()==ne){Pt.tokenize=Xe;break}return"string"};return at.isInAttribute=!0,at}function Ce(ne,at){return function(Ge,Pt){for(;!Ge.eol();){if(Ge.match(at)){Pt.tokenize=Ee;break}Ge.next()}return ne}}function Ie(ne){return function(at,Ge){for(var Pt;(Pt=at.next())!=null;){if(Pt=="<")return Ge.tokenize=Ie(ne+1),Ge.tokenize(at,Ge);if(Pt==">")if(ne==1){Ge.tokenize=Ee;break}else return Ge.tokenize=Ie(ne-1),Ge.tokenize(at,Ge)}return"meta"}}function Re(ne,at,Ge){this.prev=ne.context,this.tagName=at,this.indent=ne.indented,this.startOfLine=Ge,(M.doNotIndent.hasOwnProperty(at)||ne.context&&ne.context.noIndent)&&(this.noIndent=!0)}function fe(ne){ne.context&&(ne.context=ne.context.prev)}function me(ne,at){for(var Ge;;){if(!ne.context||(Ge=ne.context.tagName,!M.contextGrabbers.hasOwnProperty(Ge)||!M.contextGrabbers[Ge].hasOwnProperty(at)))return;fe(ne)}}function ye(ne,at,Ge){return ne=="openTag"?(Ge.tagStart=at.column(),pe):ne=="closeTag"?ke:ye}function pe(ne,at,Ge){return ne=="word"?(Ge.tagName=at.current(),Ne="tag",Me):M.allowMissingTagName&&ne=="endTag"?(Ne="tag bracket",Me(ne,at,Ge)):(Ne="error",pe)}function ke(ne,at,Ge){if(ne=="word"){var Pt=at.current();return Ge.context&&Ge.context.tagName!=Pt&&M.implicitlyClosed.hasOwnProperty(Ge.context.tagName)&&fe(Ge),Ge.context&&Ge.context.tagName==Pt||M.matchClosing===!1?(Ne="tag",ee):(Ne="tag error",Te)}else return M.allowMissingTagName&&ne=="endTag"?(Ne="tag bracket",ee(ne,at,Ge)):(Ne="error",Te)}function ee(ne,at,Ge){return ne!="endTag"?(Ne="error",ee):(fe(Ge),ye)}function Te(ne,at,Ge){return Ne="error",ee(ne,at,Ge)}function Me(ne,at,Ge){if(ne=="word")return Ne="attribute",Le;if(ne=="endTag"||ne=="selfcloseTag"){var Pt=Ge.tagName,gt=Ge.tagStart;return Ge.tagName=Ge.tagStart=null,ne=="selfcloseTag"||M.autoSelfClosers.hasOwnProperty(Pt)?me(Ge,Pt):(me(Ge,Pt),Ge.context=new Re(Ge,Pt,gt==Ge.indented)),ye}return Ne="error",Me}function Le(ne,at,Ge){return ne=="equals"?Je:(M.allowMissing||(Ne="error"),Me(ne,at,Ge))}function Je(ne,at,Ge){return ne=="string"?Ye:ne=="word"&&M.allowUnquoted?(Ne="string",Me):(Ne="error",Me(ne,at,Ge))}function Ye(ne,at,Ge){return ne=="string"?Ye:Me(ne,at,Ge)}return{startState:function(ne){var at={tokenize:Ee,state:ye,indented:ne||0,tagName:null,tagStart:null,context:null};return ne!=null&&(at.baseIndent=ne),at},token:function(ne,at){if(!at.tagName&&ne.sol()&&(at.indented=ne.indentation()),ne.eatSpace())return null;te=null;var Ge=at.tokenize(ne,at);return(Ge||te)&&Ge!="comment"&&(Ne=null,at.state=at.state(te||Ge,ne,at),Ne&&(Ge=Ne=="error"?Ge+" error":Ne)),Ge},indent:function(ne,at,Ge){var Pt=ne.context;if(ne.tokenize.isInAttribute)return ne.tagStart==ne.indented?ne.stringStartCol+1:ne.indented+F;if(Pt&&Pt.noIndent)return v.Pass;if(ne.tokenize!=Xe&&ne.tokenize!=Ee)return Ge?Ge.match(/^(\s*)/)[0].length:0;if(ne.tagName)return M.multilineTagIndentPastTag!==!1?ne.tagStart+ne.tagName.length+2:ne.tagStart+F*(M.multilineTagIndentFactor||1);if(M.alignCDATA&&/<!\[CDATA\[/.test(at))return 0;var gt=at&&/^<(\/)?([\w_:\.-]*)/.exec(at);if(gt&&gt[1])for(;Pt;)if(Pt.tagName==gt[2]){Pt=Pt.prev;break}else if(M.implicitlyClosed.hasOwnProperty(Pt.tagName))Pt=Pt.prev;else break;else if(gt)for(;Pt;){var kt=M.contextGrabbers[Pt.tagName];if(kt&&kt.hasOwnProperty(gt[2]))Pt=Pt.prev;else break}for(;Pt&&Pt.prev&&!Pt.startOfLine;)Pt=Pt.prev;return Pt?Pt.indent+F:ne.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:M.htmlMode?"html":"xml",helperType:M.htmlMode?"html":"xml",skipAttribute:function(ne){ne.state==Je&&(ne.state=Me)},xmlCurrentTag:function(ne){return ne.tagName?{name:ne.tagName,close:ne.type=="closeTag"}:null},xmlCurrentContext:function(ne){for(var at=[],Ge=ne.context;Ge;Ge=Ge.prev)Ge.tagName&&at.push(Ge.tagName);return at.reverse()}}}),v.defineMIME("text/xml","xml"),v.defineMIME("application/xml","xml"),v.mimeModes.hasOwnProperty("text/html")||v.defineMIME("text/html",{name:"xml",htmlMode:!0})})},58951:function(X,C){"use strict";var h;C.Q=B,h=G;var v=",",I=" ",O="";function B(F){for(var M=[],de=String(F||O),ae=de.indexOf(v),te=0,Ne=!1,Ee;!Ne;)ae===-1&&(ae=de.length,Ne=!0),Ee=de.slice(te,ae).trim(),(Ee||!Ne)&&M.push(Ee),te=ae+1,ae=de.indexOf(v,te);return M}function G(F,M){var de=M||{},ae=de.padLeft===!1?O:I,te=de.padRight?I:O;return F[F.length-1]===O&&(F=F.concat(O)),F.join(te+v+ae).trim()}},86204:function(X){"use strict";var C=typeof Reflect=="object"?Reflect:null,h=C&&typeof C.apply=="function"?C.apply:function(ye,pe,ke){return Function.prototype.apply.call(ye,pe,ke)},v;C&&typeof C.ownKeys=="function"?v=C.ownKeys:Object.getOwnPropertySymbols?v=function(ye){return Object.getOwnPropertyNames(ye).concat(Object.getOwnPropertySymbols(ye))}:v=function(ye){return Object.getOwnPropertyNames(ye)};function I(me){console&&console.warn&&console.warn(me)}var O=Number.isNaN||function(ye){return ye!==ye};function B(){B.init.call(this)}X.exports=B,X.exports.once=Ie,B.EventEmitter=B,B.prototype._events=void 0,B.prototype._eventsCount=0,B.prototype._maxListeners=void 0;var G=10;function F(me){if(typeof me!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof me)}Object.defineProperty(B,"defaultMaxListeners",{enumerable:!0,get:function(){return G},set:function(me){if(typeof me!="number"||me<0||O(me))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+me+".");G=me}}),B.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},B.prototype.setMaxListeners=function(ye){if(typeof ye!="number"||ye<0||O(ye))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+ye+".");return this._maxListeners=ye,this};function M(me){return me._maxListeners===void 0?B.defaultMaxListeners:me._maxListeners}B.prototype.getMaxListeners=function(){return M(this)},B.prototype.emit=function(ye){for(var pe=[],ke=1;ke<arguments.length;ke++)pe.push(arguments[ke]);var ee=ye==="error",Te=this._events;if(Te!==void 0)ee=ee&&Te.error===void 0;else if(!ee)return!1;if(ee){var Me;if(pe.length>0&&(Me=pe[0]),Me instanceof Error)throw Me;var Le=new Error("Unhandled error."+(Me?" ("+Me.message+")":""));throw Le.context=Me,Le}var Je=Te[ye];if(Je===void 0)return!1;if(typeof Je=="function")h(Je,this,pe);else for(var Ye=Je.length,ne=Xe(Je,Ye),ke=0;ke<Ye;++ke)h(ne[ke],this,pe);return!0};function de(me,ye,pe,ke){var ee,Te,Me;if(F(pe),Te=me._events,Te===void 0?(Te=me._events=Object.create(null),me._eventsCount=0):(Te.newListener!==void 0&&(me.emit("newListener",ye,pe.listener?pe.listener:pe),Te=me._events),Me=Te[ye]),Me===void 0)Me=Te[ye]=pe,++me._eventsCount;else if(typeof Me=="function"?Me=Te[ye]=ke?[pe,Me]:[Me,pe]:ke?Me.unshift(pe):Me.push(pe),ee=M(me),ee>0&&Me.length>ee&&!Me.warned){Me.warned=!0;var Le=new Error("Possible EventEmitter memory leak detected. "+Me.length+" "+String(ye)+" listeners added. Use emitter.setMaxListeners() to increase limit");Le.name="MaxListenersExceededWarning",Le.emitter=me,Le.type=ye,Le.count=Me.length,I(Le)}return me}B.prototype.addListener=function(ye,pe){return de(this,ye,pe,!1)},B.prototype.on=B.prototype.addListener,B.prototype.prependListener=function(ye,pe){return de(this,ye,pe,!0)};function ae(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function te(me,ye,pe){var ke={fired:!1,wrapFn:void 0,target:me,type:ye,listener:pe},ee=ae.bind(ke);return ee.listener=pe,ke.wrapFn=ee,ee}B.prototype.once=function(ye,pe){return F(pe),this.on(ye,te(this,ye,pe)),this},B.prototype.prependOnceListener=function(ye,pe){return F(pe),this.prependListener(ye,te(this,ye,pe)),this},B.prototype.removeListener=function(ye,pe){var ke,ee,Te,Me,Le;if(F(pe),ee=this._events,ee===void 0)return this;if(ke=ee[ye],ke===void 0)return this;if(ke===pe||ke.listener===pe)--this._eventsCount===0?this._events=Object.create(null):(delete ee[ye],ee.removeListener&&this.emit("removeListener",ye,ke.listener||pe));else if(typeof ke!="function"){for(Te=-1,Me=ke.length-1;Me>=0;Me--)if(ke[Me]===pe||ke[Me].listener===pe){Le=ke[Me].listener,Te=Me;break}if(Te<0)return this;Te===0?ke.shift():Oe(ke,Te),ke.length===1&&(ee[ye]=ke[0]),ee.removeListener!==void 0&&this.emit("removeListener",ye,Le||pe)}return this},B.prototype.off=B.prototype.removeListener,B.prototype.removeAllListeners=function(ye){var pe,ke,ee;if(ke=this._events,ke===void 0)return this;if(ke.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):ke[ye]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete ke[ye]),this;if(arguments.length===0){var Te=Object.keys(ke),Me;for(ee=0;ee<Te.length;++ee)Me=Te[ee],Me!=="removeListener"&&this.removeAllListeners(Me);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(pe=ke[ye],typeof pe=="function")this.removeListener(ye,pe);else if(pe!==void 0)for(ee=pe.length-1;ee>=0;ee--)this.removeListener(ye,pe[ee]);return this};function Ne(me,ye,pe){var ke=me._events;if(ke===void 0)return[];var ee=ke[ye];return ee===void 0?[]:typeof ee=="function"?pe?[ee.listener||ee]:[ee]:pe?Ce(ee):Xe(ee,ee.length)}B.prototype.listeners=function(ye){return Ne(this,ye,!0)},B.prototype.rawListeners=function(ye){return Ne(this,ye,!1)},B.listenerCount=function(me,ye){return typeof me.listenerCount=="function"?me.listenerCount(ye):Ee.call(me,ye)},B.prototype.listenerCount=Ee;function Ee(me){var ye=this._events;if(ye!==void 0){var pe=ye[me];if(typeof pe=="function")return 1;if(pe!==void 0)return pe.length}return 0}B.prototype.eventNames=function(){return this._eventsCount>0?v(this._events):[]};function Xe(me,ye){for(var pe=new Array(ye),ke=0;ke<ye;++ke)pe[ke]=me[ke];return pe}function Oe(me,ye){for(;ye+1<me.length;ye++)me[ye]=me[ye+1];me.pop()}function Ce(me){for(var ye=new Array(me.length),pe=0;pe<ye.length;++pe)ye[pe]=me[pe].listener||me[pe];return ye}function Ie(me,ye){return new Promise(function(pe,ke){function ee(Me){me.removeListener(ye,Te),ke(Me)}function Te(){typeof me.removeListener=="function"&&me.removeListener("error",ee),pe([].slice.call(arguments))}fe(me,ye,Te,{once:!0}),ye!=="error"&&Re(me,ee,{once:!0})})}function Re(me,ye,pe){typeof me.on=="function"&&fe(me,"error",ye,pe)}function fe(me,ye,pe,ke){if(typeof me.on=="function")ke.once?me.once(ye,pe):me.on(ye,pe);else if(typeof me.addEventListener=="function")me.addEventListener(ye,function ee(Te){ke.once&&me.removeEventListener(ye,ee),pe(Te)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof me)}},58847:function(X){"use strict";var C=Object.prototype.hasOwnProperty,h=Object.prototype.toString,v=Object.defineProperty,I=Object.getOwnPropertyDescriptor,O=function(de){return typeof Array.isArray=="function"?Array.isArray(de):h.call(de)==="[object Array]"},B=function(de){if(!de||h.call(de)!=="[object Object]")return!1;var ae=C.call(de,"constructor"),te=de.constructor&&de.constructor.prototype&&C.call(de.constructor.prototype,"isPrototypeOf");if(de.constructor&&!ae&&!te)return!1;var Ne;for(Ne in de);return typeof Ne=="undefined"||C.call(de,Ne)},G=function(de,ae){v&&ae.name==="__proto__"?v(de,ae.name,{enumerable:!0,configurable:!0,value:ae.newValue,writable:!0}):de[ae.name]=ae.newValue},F=function(de,ae){if(ae==="__proto__")if(C.call(de,ae)){if(I)return I(de,ae).value}else return;return de[ae]};X.exports=function M(){var de,ae,te,Ne,Ee,Xe,Oe=arguments[0],Ce=1,Ie=arguments.length,Re=!1;for(typeof Oe=="boolean"&&(Re=Oe,Oe=arguments[1]||{},Ce=2),(Oe==null||typeof Oe!="object"&&typeof Oe!="function")&&(Oe={});Ce<Ie;++Ce)if(de=arguments[Ce],de!=null)for(ae in de)te=F(Oe,ae),Ne=F(de,ae),Oe!==Ne&&(Re&&Ne&&(B(Ne)||(Ee=O(Ne)))?(Ee?(Ee=!1,Xe=te&&O(te)?te:[]):Xe=te&&B(te)?te:{},G(Oe,{name:ae,newValue:M(Re,Xe,Ne)})):typeof Ne!="undefined"&&G(Oe,{name:ae,newValue:Ne}));return Oe}},12378:function(X,C,h){"use strict";h.d(C,{$u:function(){return ae},BD:function(){return re},E9:function(){return de},FF:function(){return fr},FJ:function(){return ye},Hn:function(){return me},KX:function(){return ke},NB:function(){return vt},S0:function(){return Jn},UL:function(){return te},Vk:function(){return fe},Vm:function(){return tt},YI:function(){return Mn},ZA:function(){return O},Zt:function(){return Ne},al:function(){return T},bn:function(){return Q},bx:function(){return z},g2:function(){return In},h1:function(){return Je},hD:function(){return ze},l4:function(){return F},rU:function(){return ut},s_:function(){return k},uz:function(){return Pe},z6:function(){return Ee}}),X=h.hmd(X),function(){var U;function mr(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}function Er(e){var t=typeof Symbol!="undefined"&&Symbol.iterator&&e[Symbol.iterator];return t?t.call(e):{next:mr(e)}}function wr(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}var qr=typeof Object.create=="function"?Object.create:function(e){function t(){}return t.prototype=e,new t},xo;if(typeof Object.setPrototypeOf=="function")xo=Object.setPrototypeOf;else{var kr;e:{var no={a:!0},rr={};try{rr.__proto__=no,kr=rr.a;break e}catch(e){}kr=!1}xo=kr?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+" is not extensible");return e}:null}var Bi=xo;function yi(e,t){if(e.prototype=qr(t.prototype),e.prototype.constructor=e,Bi)Bi(e,t);else for(var n in t)if(n!="prototype")if(Object.defineProperties){var i=Object.getOwnPropertyDescriptor(t,n);i&&Object.defineProperty(e,n,i)}else e[n]=t[n];e.QA=t.prototype}var ht=typeof h.g!="undefined"&&h.g!=null?h.g:self,_n=typeof Object.assign=="function"?Object.assign:function(e,t){for(var n=1;n<arguments.length;n++){var i=arguments[n];if(i)for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},Vn=typeof Object.defineProperties=="function"?Object.defineProperty:function(e,t,n){e!=Array.prototype&&e!=Object.prototype&&(e[t]=n.value)};function pt(e,t){if(t){var n=ht;e=e.split(".");for(var i=0;i<e.length-1;i++){var r=e[i];r in n||(n[r]={}),n=n[r]}e=e[e.length-1],i=n[e],t=t(i),t!=i&&t!=null&&Vn(n,e,{writable:!0,value:t})}}pt("Object.assign",function(e){return e||_n}),pt("Array.prototype.fill",function(e){return e||function(t,n,i){var r=this.length||0;for(0>n&&(n=Math.max(0,r+n)),(i==null||i>r)&&(i=r),i=Number(i),0>i&&(i=Math.max(0,r+i)),n=Number(n||0);n<i;n++)this[n]=t;return this}});var Ke=typeof globalThis=="object"&&globalThis||typeof h.g=="object"&&h.g.global===h.g&&h.g||typeof self=="object"&&self.self===self&&self||{};Ke.requestAnimationFrame===void 0&&(Ke.setImmediate===void 0?Ke.requestAnimationFrame=function(e){Ke.setTimeout(e,0)}:Ke.requestAnimationFrame=Ke.setImmediate);function vn(){}function Fn(e,t){var n=-1;return function(){var i=this,r=arguments;n!==-1&&Ke.clearTimeout(n),n=on(function(){n=-1,e.apply(i,r)},t)}}function on(e,t){return Ke.setTimeout(e,t)}function Nt(e){return Ke.document.createElement(e)}function Ve(e){throw Error(e)}function Ut(e,t){e="The object is frozen, so its properties cannot be set: "+e.toString(),t!==void 0&&(e+=" to value: "+t),Ve(e)}function Lt(e,t,n,i){n=n===null?"*":typeof n=="string"?n:typeof n=="function"&&typeof n.className=="string"?n.className:"",i!==void 0&&(n+="."+i),Ve(n+" is not in the range "+t+": "+e)}function Wn(e){Ke.console&&Ke.console.log(e)}function ot(e){return typeof e=="object"&&e!==null}function fn(e){return Array.isArray(e)||Ke.NodeList&&e instanceof Ke.NodeList||Ke.HTMLCollection&&e instanceof Ke.HTMLCollection}function yt(e){return Array.prototype.slice.call(e)}function je(e,t,n){Array.isArray(e)?t>=e.length?e.push(n):e.splice(t,0,n):Ve("Cannot insert an object into an HTMLCollection or NodeList: "+n+" at "+t)}function L(e,t){Array.isArray(e)?t>=e.length?e.pop():e.splice(t,1):Ve("Cannot remove an object from an HTMLCollection or NodeList at "+t)}function Rt(){var e=Yi.pop();return e===void 0?[]:e}function Jt(e){e.length=0,Yi.push(e)}function mt(e){if(typeof e=="function"){if(e.className)return e.className;if(e.name)return e.name;var t=e.toString();if(t=t.substring(9,t.indexOf("(")).trim(),t!=="")return e._className=t}else if(ot(e)&&e.constructor)return mt(e.constructor);return typeof e}function xn(e){var t=e;return ot(e)&&(e.text?t=e.text:e.name?t=e.name:e.key!==void 0?t=e.key:e.id!==void 0?t=e.id:e.constructor===Object&&(e.Text?t=e.Text:e.Name?t=e.Name:e.Key!==void 0?t=e.Key:e.Id!==void 0?t=e.Id:e.ID!==void 0&&(t=e.ID))),t===void 0?"undefined":t===null?"null":t.toString()}function An(e,t){if(e.hasOwnProperty(t))return!0;for(e=Object.getPrototypeOf(e);e&&e!==Function;){if(e.hasOwnProperty(t))return!0;var n=e.CA;if(n&&n[t])return!0;e=Object.getPrototypeOf(e)}return!1}function li(e,t,n){Object.defineProperty(Co.prototype,e,{get:t,set:n})}function Nn(e){for(var t=[],n=0;256>n;n++)t["0123456789abcdef".charAt(n>>4)+"0123456789abcdef".charAt(n&15)]=String.fromCharCode(n);e.length%2&&(e="0"+e),n=[];for(var i=0,r=0;r<e.length;r+=2)n[i++]=t[e.substr(r,2)];for(e=n.join(""),e=e===""?"0":e,t=[],n=0;256>n;n++)t[n]=n;for(n=i=0;256>n;n++)i=(i+t[n]+119)%256,r=t[n],t[n]=t[i],t[i]=r;i=n=0;for(var o="",a=0;a<e.length;a++)n=(n+1)%256,i=(i+t[n])%256,r=t[n],t[n]=t[i],t[i]=r,o+=String.fromCharCode(e.charCodeAt(a)^t[(t[n]+t[i])%256]);return o.indexOf("GoJS 2.1 evaluation")>-1||o.indexOf("\xA9 1998-2021 Northwoods Software")>-1||o.indexOf("Not for distribution or production use")>-1||o.indexOf("gojs.net")>-1?"":o}var lt=Ke.navigator!==void 0&&0<Ke.navigator.userAgent.indexOf("Trident/7"),Mi=Ke.navigator!==void 0&&Ke.navigator.platform!==void 0&&Ke.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,Yi=[];Object.freeze([]),vn.className="Util",vn.Dx="32ab5ff3b26f42dc0ed90f21472913b5",vn.adym="gojs.net",vn.vfo="28e645fdb266",vn.className="Util";function Yt(e,t,n){Li(this),this.j=e,this.xa=t,this.o=n}Yt.prototype.toString=function(){return"EnumValue."+this.xa};function zi(e,t){return t==null||t===""?null:e[t]}ht.Object.defineProperties(Yt.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),Yt.className="EnumValue";function q(){this.ew=[]}q.prototype.toString=function(){return this.ew.join("")},q.prototype.add=function(e){e!==""&&this.ew.push(e)},q.className="StringBuilder";function oe(){}oe.className="PropertyCollection";var Hn={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(e){Ke.console&&Ke.console.log(e)},HA:function(e,t,n,i){e.strokeStyle="red",e.fillStyle="red",e.font="8px sans-serif",e.beginPath(),e.moveTo(-10,0),e.lineTo(10,0),e.moveTo(0,-10),e.lineTo(0,10),e.stroke(),e.setTransform(1,0,0,1,0,0),e.scale(n,n),e.transform(t.m11,t.m12,t.m21,t.m22,t.dx,t.dy),e.lineWidth=2,e.beginPath(),e.moveTo(i.left,i.top+20),e.lineTo(i.left,i.top),e.lineTo(i.left+20,i.top),e.moveTo(i.right,i.bottom-20),e.lineTo(i.right,i.bottom),e.lineTo(i.right-20,i.bottom),e.stroke(),e.fillText("DB: "+Math.round(i.x)+", "+Math.round(i.y)+", "+Math.round(i.width)+", "+Math.round(i.height),i.left,i.top-5)},DA:function(e){var t={},n;for(n in e){if(t.x=n,t.x!=="licenseKey"){var i=e[t.x];if(i.prototype!==void 0){t.Zl=Object.getOwnPropertyNames(i.prototype);for(var r={Tj:0};r.Tj<t.Zl.length;r={Tj:r.Tj},r.Tj++){var o=Object.getOwnPropertyDescriptor(i.prototype,t.Zl[r.Tj]);o.get!==void 0&&o.set===void 0&&Object.defineProperty(i.prototype,t.Zl[r.Tj],{set:function(a,l){return function(){throw Error("Property "+a.Zl[l.Tj]+" of "+a.x+" is read-only.")}}(t,r)})}}}t={Zl:t.Zl,x:t.x}}}};function Be(){}Be.prototype.reset=function(){},Be.prototype.next=function(){return!1},Be.prototype.Ad=function(){return!1},Be.prototype.first=function(){return null},Be.prototype.any=function(){return!1},Be.prototype.all=function(){return!0},Be.prototype.each=function(){return this},Be.prototype.map=function(){return this},Be.prototype.filter=function(){return this},Be.prototype.de=function(){},Be.prototype.toString=function(){return"EmptyIterator"},ht.Object.defineProperties(Be.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),Be.prototype.first=Be.prototype.first,Be.prototype.hasNext=Be.prototype.Ad,Be.prototype.next=Be.prototype.next,Be.prototype.reset=Be.prototype.reset;var Tt=null;Be.className="EmptyIterator",Tt=new Be;function fi(e){this.key=-1,this.value=e}fi.prototype.reset=function(){this.key=-1},fi.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},fi.prototype.Ad=function(){return this.next()},fi.prototype.first=function(){return this.key=0,this.value},fi.prototype.any=function(e){return this.key=-1,e(this.value)},fi.prototype.all=function(e){return this.key=-1,e(this.value)},fi.prototype.each=function(e){return this.key=-1,e(this.value),this},fi.prototype.map=function(e){return new fi(e(this.value))},fi.prototype.filter=function(e){return e(this.value)?new fi(this.value):Tt},fi.prototype.de=function(){this.value=null},fi.prototype.toString=function(){return"SingletonIterator("+this.value+")"},ht.Object.defineProperties(fi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),fi.prototype.first=fi.prototype.first,fi.prototype.hasNext=fi.prototype.Ad,fi.prototype.next=fi.prototype.next,fi.prototype.reset=fi.prototype.reset,fi.className="SingletonIterator";function Ln(e){this.Bb=e,this.qf=null,e.Sa=null,this.qa=e.Ja,this.Za=-1}Ln.prototype.reset=function(){var e=this.Bb;e.Sa=null,this.qa=e.Ja,this.Za=-1},Ln.prototype.next=function(){var e=this.Bb;if(e.Ja!==this.qa&&0>this.key)return!1;e=e.s;var t=e.length,n=++this.Za,i=this.qf;if(i!==null)for(;n<t;){var r=e[n];if(i(r))return this.key=this.Za=n,this.value=r,!0;n++}else{if(n<t)return this.key=n,this.value=e[n],!0;this.de()}return!1},Ln.prototype.Ad=function(){return this.next()},Ln.prototype.first=function(){var e=this.Bb;this.qa=e.Ja,this.Za=0,e=e.s;var t=e.length,n=this.qf;if(n!==null){for(var i=0;i<t;){var r=e[i];if(n(r))return this.key=this.Za=i,this.value=r;i++}return null}return 0<t?(e=e[0],this.key=0,this.value=e):null},Ln.prototype.any=function(e){var t=this.Bb;t.Sa=null,this.Za=-1,t=t.s;for(var n=t.length,i=this.qf,r=0;r<n;r++){var o=t[r];if((i===null||i(o))&&e(o))return!0}return!1},Ln.prototype.all=function(e){var t=this.Bb;t.Sa=null,this.Za=-1,t=t.s;for(var n=t.length,i=this.qf,r=0;r<n;r++){var o=t[r];if((i===null||i(o))&&!e(o))return!1}return!0},Ln.prototype.each=function(e){var t=this.Bb;t.Sa=null,this.Za=-1,t=t.s;for(var n=t.length,i=this.qf,r=0;r<n;r++){var o=t[r];(i===null||i(o))&&e(o)}return this},Ln.prototype.map=function(e){var t=this.Bb;t.Sa=null,this.Za=-1;var n=[];t=t.s;for(var i=t.length,r=this.qf,o=0;o<i;o++){var a=t[o];(r===null||r(a))&&n.push(e(a))}return e=new qt,e.s=n,e.xb(),e.iterator},Ln.prototype.filter=function(e){var t=this.Bb;t.Sa=null,this.Za=-1;var n=[];t=t.s;for(var i=t.length,r=this.qf,o=0;o<i;o++){var a=t[o];(r===null||r(a))&&e(a)&&n.push(a)}return e=new qt,e.s=n,e.xb(),e.iterator},Ln.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},Ln.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},ht.Object.defineProperties(Ln.prototype,{iterator:{get:function(){return this}},predicate:{get:function(){return this.qf},set:function(e){this.qf=e}},count:{get:function(){var e=this.qf;if(e!==null){for(var t=0,n=this.Bb.s,i=n.length,r=0;r<i;r++)e(n[r])&&t++;return t}return this.Bb.s.length}}}),Ln.prototype.first=Ln.prototype.first,Ln.prototype.hasNext=Ln.prototype.Ad,Ln.prototype.next=Ln.prototype.next,Ln.prototype.reset=Ln.prototype.reset,Ln.className="ListIterator";function Fi(e){this.Bb=e,e.Hg=null,this.qa=e.Ja,this.Za=e.s.length}Fi.prototype.reset=function(){var e=this.Bb;e.Hg=null,this.qa=e.Ja,this.Za=e.s.length},Fi.prototype.next=function(){var e=this.Bb;if(e.Ja!==this.qa&&0>this.key)return!1;var t=--this.Za;return 0<=t?(this.key=t,this.value=e.s[t],!0):(this.de(),!1)},Fi.prototype.Ad=function(){return this.next()},Fi.prototype.first=function(){var e=this.Bb;this.qa=e.Ja;var t=e.s;return this.Za=e=t.length-1,0<=e?(t=t[e],this.key=e,this.value=t):null},Fi.prototype.any=function(e){var t=this.Bb;t.Hg=null,t=t.s;var n=t.length;for(this.Za=n,--n;0<=n;n--)if(e(t[n]))return!0;return!1},Fi.prototype.all=function(e){var t=this.Bb;t.Hg=null,t=t.s;var n=t.length;for(this.Za=n,--n;0<=n;n--)if(!e(t[n]))return!1;return!0},Fi.prototype.each=function(e){var t=this.Bb;t.Hg=null,t=t.s;var n=t.length;for(this.Za=n,--n;0<=n;n--)e(t[n]);return this},Fi.prototype.map=function(e){var t=this.Bb;t.Hg=null;var n=[];t=t.s;var i=t.length;for(this.Za=i,--i;0<=i;i--)n.push(e(t[i]));return e=new qt,e.s=n,e.xb(),e.iterator},Fi.prototype.filter=function(e){var t=this.Bb;t.Hg=null;var n=[];t=t.s;var i=t.length;for(this.Za=i,--i;0<=i;i--){var r=t[i];e(r)&&n.push(r)}return e=new qt,e.s=n,e.xb(),e.iterator},Fi.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},Fi.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},ht.Object.defineProperties(Fi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),Fi.prototype.first=Fi.prototype.first,Fi.prototype.hasNext=Fi.prototype.Ad,Fi.prototype.next=Fi.prototype.next,Fi.prototype.reset=Fi.prototype.reset,Fi.className="ListIteratorBackwards";function qt(e){Li(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof e=="string"&&Ve("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),e!==void 0&&this.addAll(e)}U=qt.prototype,U.xb=function(){var e=this.Ja;e++,999999999<e&&(e=0),this.Ja=e},U.freeze=function(){return this._isFrozen=!0,this},U.ka=function(){return this._isFrozen=!1,this},U.toString=function(){return"List()#"+Mt(this)},U.add=function(e){return e===null?this:(this._isFrozen&&Ut(this,e),this.s.push(e),this.xb(),this)},U.push=function(e){this.add(e)},U.addAll=function(e){if(e===null)return this;this._isFrozen&&Ut(this);var t=this.s;if(fn(e))for(var n=e.length,i=0;i<n;i++)t.push(e[i]);else for(e=e.iterator;e.next();)t.push(e.value);return this.xb(),this},U.clear=function(){this._isFrozen&&Ut(this),this.s.length=0,this.xb()},U.contains=function(e){return e===null?!1:this.s.indexOf(e)!==-1},U.has=function(e){return this.contains(e)},U.indexOf=function(e){return e===null?-1:this.s.indexOf(e)},U.M=function(e){var t=this.s;return(0>e||e>=t.length)&&Lt(e,"0 <= i < length",qt,"elt:i"),t[e]},U.get=function(e){return this.M(e)},U.cd=function(e,t){var n=this.s;(0>e||e>=n.length)&&Lt(e,"0 <= i < length",qt,"setElt:i"),this._isFrozen&&Ut(this,e),n[e]=t},U.set=function(e,t){this.cd(e,t)},U.first=function(){var e=this.s;return e.length===0?null:e[0]},U.jc=function(){var e=this.s,t=e.length;return 0<t?e[t-1]:null},U.pop=function(){this._isFrozen&&Ut(this);var e=this.s;return 0<e.length?e.pop():null},qt.prototype.any=function(e){for(var t=this.s,n=t.length,i=0;i<n;i++)if(e(t[i]))return!0;return!1},qt.prototype.all=function(e){for(var t=this.s,n=t.length,i=0;i<n;i++)if(!e(t[i]))return!1;return!0},qt.prototype.each=function(e){for(var t=this.s,n=t.length,i=0;i<n;i++)e(t[i]);return this},qt.prototype.map=function(e){for(var t=new qt,n=[],i=this.s,r=i.length,o=0;o<r;o++)n.push(e(i[o]));return t.s=n,t.xb(),t},qt.prototype.filter=function(e){for(var t=new qt,n=[],i=this.s,r=i.length,o=0;o<r;o++){var a=i[o];e(a)&&n.push(a)}return t.s=n,t.xb(),t},U=qt.prototype,U.Gb=function(e,t){0>e&&Lt(e,">= 0",qt,"insertAt:i"),this._isFrozen&&Ut(this,e);var n=this.s;e>=n.length?n.push(t):n.splice(e,0,t),this.xb()},U.remove=function(e){if(e===null)return!1;this._isFrozen&&Ut(this,e);var t=this.s;return e=t.indexOf(e),e===-1?!1:(e===t.length-1?t.pop():t.splice(e,1),this.xb(),!0)},U.delete=function(e){return this.remove(e)},U.mb=function(e){var t=this.s;(0>e||e>=t.length)&&Lt(e,"0 <= i < length",qt,"removeAt:i"),this._isFrozen&&Ut(this,e),e===t.length-1?t.pop():t.splice(e,1),this.xb()},U.removeRange=function(e,t){var n=this.s,i=n.length;if(0>e)e=0;else if(e>=i)return this;if(0>t)return this;if(t>=i&&(t=i-1),e>t)return this;this._isFrozen&&Ut(this);for(var r=e,o=t+1;o<i;)n[r++]=n[o++];return n.length=i-(t-e+1),this.xb(),this},qt.prototype.copy=function(){var e=new qt,t=this.s;return 0<t.length&&(e.s=Array.prototype.slice.call(t)),e},U=qt.prototype,U.Fa=function(){for(var e=this.s,t=this.count,n=Array(t),i=0;i<t;i++)n[i]=e[i];return n},U.Iv=function(){for(var e=new Xt,t=this.s,n=this.count,i=0;i<n;i++)e.add(t[i]);return e},U.sort=function(e){return this._isFrozen&&Ut(this),this.s.sort(e),this.xb(),this},U.zi=function(e,t,n){var i=this.s,r=i.length;t===void 0&&(t=0),n===void 0&&(n=r),this._isFrozen&&Ut(this);var o=n-t;if(1>=o)return this;if((0>t||t>=r-1)&&Lt(t,"0 <= from < length",qt,"sortRange:from"),o===2)return n=i[t],r=i[t+1],0<e(n,r)&&(i[t]=r,i[t+1]=n,this.xb()),this;if(t===0)if(n>=r)i.sort(e);else for(t=i.slice(0,n),t.sort(e),e=0;e<n;e++)i[e]=t[e];else if(n>=r)for(n=i.slice(t),n.sort(e),e=t;e<r;e++)i[e]=n[e-t];else for(r=i.slice(t,n),r.sort(e),e=t;e<n;e++)i[e]=r[e-t];return this.xb(),this},U.reverse=function(){return this._isFrozen&&Ut(this),this.s.reverse(),this.xb(),this},ht.Object.defineProperties(qt.prototype,{_dataArray:{get:function(){return this.s}},count:{get:function(){return this.s.length}},size:{get:function(){return this.s.length}},length:{get:function(){return this.s.length}},iterator:{get:function(){if(0>=this.s.length)return Tt;var e=this.Sa;return e!==null?(e.reset(),e):new Ln(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return Tt;var e=this.Hg;return e!==null?(e.reset(),e):new Fi(this)}}}),qt.prototype.reverse=qt.prototype.reverse,qt.prototype.sortRange=qt.prototype.zi,qt.prototype.sort=qt.prototype.sort,qt.prototype.toSet=qt.prototype.Iv,qt.prototype.toArray=qt.prototype.Fa,qt.prototype.removeRange=qt.prototype.removeRange,qt.prototype.removeAt=qt.prototype.mb,qt.prototype.delete=qt.prototype.delete,qt.prototype.remove=qt.prototype.remove,qt.prototype.insertAt=qt.prototype.Gb,qt.prototype.pop=qt.prototype.pop,qt.prototype.last=qt.prototype.jc,qt.prototype.first=qt.prototype.first,qt.prototype.set=qt.prototype.set,qt.prototype.setElt=qt.prototype.cd,qt.prototype.get=qt.prototype.get,qt.prototype.elt=qt.prototype.M,qt.prototype.indexOf=qt.prototype.indexOf,qt.prototype.has=qt.prototype.has,qt.prototype.contains=qt.prototype.contains,qt.prototype.clear=qt.prototype.clear,qt.prototype.addAll=qt.prototype.addAll,qt.prototype.push=qt.prototype.push,qt.prototype.add=qt.prototype.add,qt.prototype.thaw=qt.prototype.ka,qt.prototype.freeze=qt.prototype.freeze,qt.className="List";function xi(e){this.eg=e,e.Sa=null,this.qa=e.Ja,this.sa=null}xi.prototype.reset=function(){var e=this.eg;e.Sa=null,this.qa=e.Ja,this.sa=null},xi.prototype.next=function(){var e=this.eg;if(e.Ja!==this.qa&&this.key===null)return!1;var t=this.sa;return t=t===null?e.ea:t.va,t!==null?(this.sa=t,this.value=t.value,this.key=t.key,!0):(this.de(),!1)},xi.prototype.Ad=function(){return this.next()},xi.prototype.first=function(){var e=this.eg;if(this.qa=e.Ja,e=e.ea,e!==null){this.sa=e;var t=e.value;return this.key=e.key,this.value=t}return null},xi.prototype.any=function(e){var t=this.eg;for(this.sa=t.Sa=null,t=t.ea;t!==null;){if(e(t.value))return!0;t=t.va}return!1},xi.prototype.all=function(e){var t=this.eg;for(this.sa=t.Sa=null,t=t.ea;t!==null;){if(!e(t.value))return!1;t=t.va}return!0},xi.prototype.each=function(e){var t=this.eg;for(this.sa=t.Sa=null,t=t.ea;t!==null;)e(t.value),t=t.va;return this},xi.prototype.map=function(e){var t=this.eg;t.Sa=null;var n=new qt;for(t=t.ea;t!==null;)n.add(e(t.value)),t=t.va;return n.iterator},xi.prototype.filter=function(e){var t=this.eg;t.Sa=null;var n=new qt;for(t=t.ea;t!==null;){var i=t.value;e(i)&&n.add(i),t=t.va}return n.iterator},xi.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},xi.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},ht.Object.defineProperties(xi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),xi.prototype.first=xi.prototype.first,xi.prototype.hasNext=xi.prototype.Ad,xi.prototype.next=xi.prototype.next,xi.prototype.reset=xi.prototype.reset,xi.className="SetIterator";function Xt(e){Li(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof e=="string"&&Ve("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),e!==void 0&&this.addAll(e)}U=Xt.prototype,U.xb=function(){var e=this.Ja;e++,999999999<e&&(e=0),this.Ja=e},U.freeze=function(){return this._isFrozen=!0,this},U.ka=function(){return this._isFrozen=!1,this},U.toString=function(){return"Set()#"+Mt(this)},U.add=function(e){if(e===null)return this;this._isFrozen&&Ut(this,e);var t=e;return ot(e)&&(t=Yr(e)),this.Tb[t]===void 0&&(this.Sb++,e=new or(e,e),this.Tb[t]=e,t=this.kf,t===null?this.ea=e:(e.ll=t,t.va=e),this.kf=e,this.xb()),this},U.addAll=function(e){if(e===null)return this;if(this._isFrozen&&Ut(this),fn(e))for(var t=e.length,n=0;n<t;n++)this.add(e[n]);else for(e=e.iterator;e.next();)this.add(e.value);return this},U.contains=function(e){if(e===null)return!1;var t=e;return ot(e)&&(t=Mt(e),t===void 0)?!1:this.Tb[t]!==void 0},U.has=function(e){return this.contains(e)},U.Sy=function(e){if(e===null)return!0;for(e=e.iterator;e.next();)if(!this.contains(e.value))return!1;return!0},U.Ty=function(e){if(e===null)return!0;for(e=e.iterator;e.next();)if(this.contains(e.value))return!0;return!1},U.first=function(){var e=this.ea;return e===null?null:e.value},Xt.prototype.any=function(e){for(var t=this.ea;t!==null;){if(e(t.value))return!0;t=t.va}return!1},Xt.prototype.all=function(e){for(var t=this.ea;t!==null;){if(!e(t.value))return!1;t=t.va}return!0},Xt.prototype.each=function(e){for(var t=this.ea;t!==null;)e(t.value),t=t.va;return this},Xt.prototype.map=function(e){for(var t=new Xt,n=this.ea;n!==null;)t.add(e(n.value)),n=n.va;return t},Xt.prototype.filter=function(e){for(var t=new Xt,n=this.ea;n!==null;){var i=n.value;e(i)&&t.add(i),n=n.va}return t},U=Xt.prototype,U.remove=function(e){if(e===null)return!1;this._isFrozen&&Ut(this,e);var t=e;if(ot(e)&&(t=Mt(e),t===void 0)||(e=this.Tb[t],e===void 0))return!1;var n=e.va,i=e.ll;return n!==null&&(n.ll=i),i!==null&&(i.va=n),this.ea===e&&(this.ea=n),this.kf===e&&(this.kf=i),delete this.Tb[t],this.Sb--,this.xb(),!0},U.delete=function(e){return this.remove(e)},U.hp=function(e){if(e===null)return this;if(this._isFrozen&&Ut(this),fn(e))for(var t=e.length,n=0;n<t;n++)this.remove(e[n]);else for(e=e.iterator;e.next();)this.remove(e.value);return this},U.pA=function(e){if(e===null||this.count===0)return this;this._isFrozen&&Ut(this);var t=new Xt;t.addAll(e),e=[];for(var n=this.iterator;n.next();){var i=n.value;t.contains(i)||e.push(i)}return this.hp(e),this},U.clear=function(){this._isFrozen&&Ut(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},Xt.prototype.copy=function(){var e=new Xt,t=this.Tb,n;for(n in t)e.add(t[n].value);return e},Xt.prototype.Fa=function(){var e=Array(this.Sb),t=this.Tb,n=0,i;for(i in t)e[n]=t[i].value,n++;return e},Xt.prototype.Hv=function(){var e=new qt,t=this.Tb,n;for(n in t)e.add(t[n].value);return e};function Li(e){e.__gohashid=Qr++}function Yr(e){var t=e.__gohashid;return t===void 0&&(t=Qr++,e.__gohashid=t),t}function Mt(e){return e.__gohashid}ht.Object.defineProperties(Xt.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return Tt;var e=this.Sa;return e!==null?(e.reset(),e):new xi(this)}}}),Xt.prototype.toList=Xt.prototype.Hv,Xt.prototype.toArray=Xt.prototype.Fa,Xt.prototype.clear=Xt.prototype.clear,Xt.prototype.retainAll=Xt.prototype.pA,Xt.prototype.removeAll=Xt.prototype.hp,Xt.prototype.delete=Xt.prototype.delete,Xt.prototype.remove=Xt.prototype.remove,Xt.prototype.first=Xt.prototype.first,Xt.prototype.containsAny=Xt.prototype.Ty,Xt.prototype.containsAll=Xt.prototype.Sy,Xt.prototype.has=Xt.prototype.has,Xt.prototype.contains=Xt.prototype.contains,Xt.prototype.addAll=Xt.prototype.addAll,Xt.prototype.add=Xt.prototype.add,Xt.prototype.thaw=Xt.prototype.ka,Xt.prototype.freeze=Xt.prototype.freeze;var Qr=1;Xt.className="Set",Xt.uniqueHash=Li,Xt.hashIdUnique=Yr,Xt.hashId=Mt;function tn(e){this.ma=e,this.qa=e.Ja,this.sa=null}tn.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},tn.prototype.next=function(){var e=this.ma;if(e.Ja!==this.qa&&this.key===null)return!1;var t=this.sa;return t=t===null?e.ea:t.va,t!==null?(this.sa=t,this.value=this.key=e=t.key,!0):(this.de(),!1)},tn.prototype.Ad=function(){return this.next()},tn.prototype.first=function(){var e=this.ma;return this.qa=e.Ja,e=e.ea,e!==null?(this.sa=e,this.value=this.key=e=e.key):null},tn.prototype.any=function(e){var t=this.ma;for(this.sa=null,t=t.ea;t!==null;){if(e(t.key))return!0;t=t.va}return!1},tn.prototype.all=function(e){var t=this.ma;for(this.sa=null,t=t.ea;t!==null;){if(!e(t.key))return!1;t=t.va}return!0},tn.prototype.each=function(e){var t=this.ma;for(this.sa=null,t=t.ea;t!==null;)e(t.key),t=t.va;return this},tn.prototype.map=function(e){var t=this.ma;this.sa=null;var n=new qt;for(t=t.ea;t!==null;)n.add(e(t.key)),t=t.va;return n.iterator},tn.prototype.filter=function(e){var t=this.ma;this.sa=null;var n=new qt;for(t=t.ea;t!==null;){var i=t.key;e(i)&&n.add(i),t=t.va}return n.iterator},tn.prototype.de=function(){this.value=this.key=null,this.qa=-1},tn.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},ht.Object.defineProperties(tn.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),tn.prototype.first=tn.prototype.first,tn.prototype.hasNext=tn.prototype.Ad,tn.prototype.next=tn.prototype.next,tn.prototype.reset=tn.prototype.reset,tn.className="MapKeySetIterator";function Oi(e){Xt.call(this),Li(this),this._isFrozen=!0,this.ma=e}yi(Oi,Xt),U=Oi.prototype,U.freeze=function(){return this},U.ka=function(){return this},U.toString=function(){return"MapKeySet("+this.ma.toString()+")"},U.add=function(){Ve("This Set is read-only: "+this.toString())},U.contains=function(e){return this.ma.contains(e)},U.has=function(e){return this.contains(e)},U.remove=function(){Ve("This Set is read-only: "+this.toString())},U.delete=function(e){return this.remove(e)},U.clear=function(){Ve("This Set is read-only: "+this.toString())},U.first=function(){var e=this.ma.ea;return e!==null?e.key:null},Oi.prototype.any=function(e){for(var t=this.ma.ea;t!==null;){if(e(t.key))return!0;t=t.va}return!1},Oi.prototype.all=function(e){for(var t=this.ma.ea;t!==null;){if(!e(t.key))return!1;t=t.va}return!0},Oi.prototype.each=function(e){for(var t=this.ma.ea;t!==null;)e(t.key),t=t.va;return this},Oi.prototype.map=function(e){for(var t=new Xt,n=this.ma.ea;n!==null;)t.add(e(n.key)),n=n.va;return t},Oi.prototype.filter=function(e){for(var t=new Xt,n=this.ma.ea;n!==null;){var i=n.key;e(i)&&t.add(i),n=n.va}return t},Oi.prototype.copy=function(){return new Oi(this.ma)},Oi.prototype.Iv=function(){var e=new Xt,t=this.ma.Tb,n;for(n in t)e.add(t[n].key);return e},Oi.prototype.Fa=function(){var e=this.ma.Tb,t=Array(this.ma.Sb),n=0,i;for(i in e)t[n]=e[i].key,n++;return t},Oi.prototype.Hv=function(){var e=new qt,t=this.ma.Tb,n;for(n in t)e.add(t[n].key);return e},ht.Object.defineProperties(Oi.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?Tt:new tn(this.ma)}}}),Oi.prototype.toList=Oi.prototype.Hv,Oi.prototype.toArray=Oi.prototype.Fa,Oi.prototype.toSet=Oi.prototype.Iv,Oi.prototype.first=Oi.prototype.first,Oi.prototype.clear=Oi.prototype.clear,Oi.prototype.delete=Oi.prototype.delete,Oi.prototype.remove=Oi.prototype.remove,Oi.prototype.has=Oi.prototype.has,Oi.prototype.contains=Oi.prototype.contains,Oi.prototype.add=Oi.prototype.add,Oi.prototype.thaw=Oi.prototype.ka,Oi.prototype.freeze=Oi.prototype.freeze,Oi.className="MapKeySet";function Ei(e){this.ma=e,e.jf=null,this.qa=e.Ja,this.sa=null}Ei.prototype.reset=function(){var e=this.ma;e.jf=null,this.qa=e.Ja,this.sa=null},Ei.prototype.next=function(){var e=this.ma;if(e.Ja!==this.qa&&this.key===null)return!1;var t=this.sa;return t=t===null?e.ea:t.va,t!==null?(this.sa=t,this.value=t.value,this.key=t.key,!0):(this.de(),!1)},Ei.prototype.Ad=function(){return this.next()},Ei.prototype.first=function(){var e=this.ma;if(this.qa=e.Ja,e=e.ea,e!==null){this.sa=e;var t=e.value;return this.key=e.key,this.value=t}return null},Ei.prototype.any=function(e){var t=this.ma;for(this.sa=t.jf=null,t=t.ea;t!==null;){if(e(t.value))return!0;t=t.va}return!1},Ei.prototype.all=function(e){var t=this.ma;for(this.sa=t.jf=null,t=t.ea;t!==null;){if(!e(t.value))return!1;t=t.va}return!0},Ei.prototype.each=function(e){var t=this.ma;for(this.sa=t.jf=null,t=t.ea;t!==null;)e(t.value),t=t.va;return this},Ei.prototype.map=function(e){var t=this.ma;this.sa=t.jf=null;var n=new qt;for(t=t.ea;t!==null;)n.add(e(t.value)),t=t.va;return n.iterator},Ei.prototype.filter=function(e){var t=this.ma;this.sa=t.jf=null;var n=new qt;for(t=t.ea;t!==null;){var i=t.value;e(i)&&n.add(i),t=t.va}return n.iterator},Ei.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},Ei.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},ht.Object.defineProperties(Ei.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Ei.prototype.first=Ei.prototype.first,Ei.prototype.hasNext=Ei.prototype.Ad,Ei.prototype.next=Ei.prototype.next,Ei.prototype.reset=Ei.prototype.reset,Ei.className="MapValueSetIterator";function or(e,t){this.key=e,this.value=t,this.ll=this.va=null}or.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},or.className="KeyValuePair";function tr(e){this.ma=e,e.Sa=null,this.qa=e.Ja,this.sa=null}tr.prototype.reset=function(){var e=this.ma;e.Sa=null,this.qa=e.Ja,this.sa=null},tr.prototype.next=function(){var e=this.ma;if(e.Ja!==this.qa&&this.key===null)return!1;var t=this.sa;return t=t===null?e.ea:t.va,t!==null?(this.sa=t,this.key=t.key,this.value=t.value,!0):(this.de(),!1)},tr.prototype.Ad=function(){return this.next()},tr.prototype.first=function(){var e=this.ma;return this.qa=e.Ja,e=e.ea,e!==null?(this.sa=e,this.key=e.key,this.value=e.value,e):null},tr.prototype.any=function(e){var t=this.ma;for(this.sa=t.Sa=null,t=t.ea;t!==null;){if(e(t))return!0;t=t.va}return!1},tr.prototype.all=function(e){var t=this.ma;for(this.sa=t.Sa=null,t=t.ea;t!==null;){if(!e(t))return!1;t=t.va}return!0},tr.prototype.each=function(e){var t=this.ma;for(this.sa=t.Sa=null,t=t.ea;t!==null;)e(t),t=t.va;return this},tr.prototype.map=function(e){var t=this.ma;this.sa=t.Sa=null;var n=new qt;for(t=t.ea;t!==null;)n.add(e(t)),t=t.va;return n.iterator},tr.prototype.filter=function(e){var t=this.ma;this.sa=t.Sa=null;var n=new qt;for(t=t.ea;t!==null;)e(t)&&n.add(t),t=t.va;return n.iterator},tr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},tr.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},ht.Object.defineProperties(tr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),tr.prototype.first=tr.prototype.first,tr.prototype.hasNext=tr.prototype.Ad,tr.prototype.next=tr.prototype.next,tr.prototype.reset=tr.prototype.reset,tr.className="MapIterator";function Zn(e){Li(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.jf=this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof e=="string"&&Ve("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),e!==void 0&&this.addAll(e)}U=Zn.prototype,U.xb=function(){var e=this.Ja;e++,999999999<e&&(e=0),this.Ja=e},U.freeze=function(){return this._isFrozen=!0,this},U.ka=function(){return this._isFrozen=!1,this},U.toString=function(){return"Map()#"+Mt(this)},U.add=function(e,t){this._isFrozen&&Ut(this,e);var n=e;ot(e)&&(n=Yr(e));var i=this.Tb[n];return i===void 0?(this.Sb++,e=new or(e,t),this.Tb[n]=e,n=this.kf,n===null?this.ea=e:(e.ll=n,n.va=e),this.kf=e,this.xb()):i.value=t,this},U.set=function(e,t){return this.add(e,t)},U.addAll=function(e){if(e===null)return this;if(fn(e))for(var t=e.length,n=0;n<t;n++){var i=e[n];this.add(i.key,i.value)}else if(e instanceof Zn)for(e=e.iterator;e.next();)this.add(e.key,e.value);else for(e=e.iterator;e.next();)t=e.value,this.add(t.key,t.value);return this},U.first=function(){return this.ea},Zn.prototype.any=function(e){for(var t=this.ea;t!==null;){if(e(t))return!0;t=t.va}return!1},Zn.prototype.all=function(e){for(var t=this.ea;t!==null;){if(!e(t))return!1;t=t.va}return!0},Zn.prototype.each=function(e){for(var t=this.ea;t!==null;)e(t),t=t.va;return this},Zn.prototype.map=function(e){for(var t=new Zn,n=this.ea;n!==null;)t.add(n.key,e(n)),n=n.va;return t},Zn.prototype.filter=function(e){for(var t=new Zn,n=this.ea;n!==null;)e(n)&&t.add(n.key,n.value),n=n.va;return t},U=Zn.prototype,U.contains=function(e){var t=e;return ot(e)&&(t=Mt(e),t===void 0)?!1:this.Tb[t]!==void 0},U.has=function(e){return this.contains(e)},U.I=function(e){var t=e;return ot(e)&&(t=Mt(e),t===void 0)?null:(e=this.Tb[t],e===void 0?null:e.value)},U.get=function(e){return this.I(e)},U.remove=function(e){if(e===null)return!1;this._isFrozen&&Ut(this,e);var t=e;if(ot(e)&&(t=Mt(e),t===void 0)||(e=this.Tb[t],e===void 0))return!1;var n=e.va,i=e.ll;return n!==null&&(n.ll=i),i!==null&&(i.va=n),this.ea===e&&(this.ea=n),this.kf===e&&(this.kf=i),delete this.Tb[t],this.Sb--,this.xb(),!0},U.delete=function(e){return this.remove(e)},U.clear=function(){this._isFrozen&&Ut(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.jf!==null&&this.jf.reset(),this.kf=this.ea=null,this.xb()},Zn.prototype.copy=function(){var e=new Zn,t=this.Tb,n;for(n in t){var i=t[n];e.add(i.key,i.value)}return e},Zn.prototype.Fa=function(){var e=this.Tb,t=Array(this.Sb),n=0,i;for(i in e){var r=e[i];t[n]=new or(r.key,r.value),n++}return t},Zn.prototype.Lf=function(){return new Oi(this)},ht.Object.defineProperties(Zn.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return Tt;var e=this.Sa;return e!==null?(e.reset(),e):new tr(this)}},iteratorKeys:{get:function(){return 0>=this.count?Tt:new tn(this)}},iteratorValues:{get:function(){if(0>=this.count)return Tt;var e=this.jf;return e!==null?(e.reset(),e):new Ei(this)}}}),Zn.prototype.toKeySet=Zn.prototype.Lf,Zn.prototype.toArray=Zn.prototype.Fa,Zn.prototype.clear=Zn.prototype.clear,Zn.prototype.delete=Zn.prototype.delete,Zn.prototype.remove=Zn.prototype.remove,Zn.prototype.get=Zn.prototype.get,Zn.prototype.getValue=Zn.prototype.I,Zn.prototype.has=Zn.prototype.has,Zn.prototype.contains=Zn.prototype.contains,Zn.prototype.first=Zn.prototype.first,Zn.prototype.addAll=Zn.prototype.addAll,Zn.prototype.set=Zn.prototype.set,Zn.prototype.add=Zn.prototype.add,Zn.prototype.thaw=Zn.prototype.ka,Zn.prototype.freeze=Zn.prototype.freeze,Zn.className="Map";function he(e,t){e===void 0?this.y=this.x=0:typeof e=="number"&&typeof t=="number"?(this.x=e,this.y=t):Ve("Invalid arguments to Point constructor: "+e+", "+t),this._isFrozen=!1}var gr,br,cr,Br,Zi;he.prototype.assign=function(e){return this.x=e.x,this.y=e.y,this},he.prototype.h=function(e,t){return this.x=e,this.y=t,this},he.prototype.sg=function(e,t){return this.x=e,this.y=t,this},he.prototype.set=function(e){return this.x=e.x,this.y=e.y,this},he.prototype.copy=function(){var e=new he;return e.x=this.x,e.y=this.y,e},U=he.prototype,U.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},U.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},U.freeze=function(){return this._isFrozen=!0,this},U.ka=function(){return Object.isFrozen(this)&&Ve("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ri(e){if(typeof e=="string"){e=e.split(" ");for(var t=0,n=0;e[t]==="";)t++;var i=e[t++];i&&(n=parseFloat(i));for(var r=0;e[t]==="";)t++;return(i=e[t++])&&(r=parseFloat(i)),new he(n,r)}return new he}function Ai(e){return e.x.toString()+" "+e.y.toString()}U.toString=function(){return"Point("+this.x+","+this.y+")"},U.D=function(e){return e instanceof he?this.x===e.x&&this.y===e.y:!1},U.hi=function(e,t){return this.x===e&&this.y===t},U.Xa=function(e){return qe.B(this.x,e.x)&&qe.B(this.y,e.y)},U.add=function(e){return this.x+=e.x,this.y+=e.y,this},U.re=function(e){return this.x-=e.x,this.y-=e.y,this},U.offset=function(e,t){return this.x+=e,this.y+=t,this},he.prototype.rotate=function(e){if(e===0)return this;var t=this.x,n=this.y;if(t===0&&n===0)return this;if(360<=e?e-=360:0>e&&(e+=360),e===90){e=0;var i=1}else e===180?(e=-1,i=0):e===270?(e=0,i=-1):(i=e*Math.PI/180,e=Math.cos(i),i=Math.sin(i));return this.x=e*t-i*n,this.y=i*t+e*n,this},U=he.prototype,U.scale=function(e,t){return this.x*=e,this.y*=t,this},U.Bf=function(e){var t=e.x-this.x;return e=e.y-this.y,t*t+e*e},U.zd=function(e,t){return e-=this.x,t-=this.y,e*e+t*t},U.normalize=function(){var e=this.x,t=this.y,n=Math.sqrt(e*e+t*t);return 0<n&&(this.x=e/n,this.y=t/n),this},U.ab=function(e){return hr(e.x-this.x,e.y-this.y)},U.direction=function(e,t){return hr(e-this.x,t-this.y)};function hr(e,t){if(e===0)return 0<t?90:0>t?270:0;if(t===0)return 0<e?0:180;if(isNaN(e)||isNaN(t))return 0;var n=180*Math.atan(Math.abs(t/e))/Math.PI;return 0>e?n=0>t?n+180:180-n:0>t&&(n=360-n),n}U.Ry=function(e,t){return qe.Fl(e.x,e.y,t.x,t.y,this.x,this.y)},U.fA=function(e,t,n,i){return qe.qh(e,t,n,i,this.x,this.y,this),this},U.gA=function(e,t){return qe.qh(e.x,e.y,t.x,t.y,this.x,this.y,this),this},U.uA=function(e,t,n,i){return qe.No(this.x,this.y,e,t,n,i,this),this},U.vA=function(e,t){return qe.No(this.x,this.y,e.x,e.y,t.width,t.height,this),this},U.xi=function(e,t){return this.x=e.x+t.x*e.width+t.offsetX,this.y=e.y+t.y*e.height+t.offsetY,this},U.yi=function(e,t,n,i,r){return this.x=e+r.x*n+r.offsetX,this.y=t+r.y*i+r.offsetY,this},U.transform=function(e){return e.Ga(this),this};function Ki(e,t){return t.Cd(e),e}function Lr(e,t,n,i,r,o){var a=r-n,l=o-i,u=a*a+l*l;n-=e,i-=t;var f=-n*a-i*l;return 0>=f||f>=u?(a=r-e,l=o-t,Math.min(n*n+i*i,a*a+l*l)):(e=a*i-l*n,e*e/u)}function Wr(e,t,n,i){return e=n-e,t=i-t,e*e+t*t}function eo(e,t,n,i){return e=n-e,t=i-t,e===0?0<t?90:0>t?270:0:t===0?0<e?0:180:isNaN(e)||isNaN(t)?0:(i=180*Math.atan(Math.abs(t/e))/Math.PI,0>e?i=0>t?i+180:180-i:0>t&&(i=360-i),i)}U.w=function(){return isFinite(this.x)&&isFinite(this.y)},he.alloc=function(){var e=Lo.pop();return e===void 0?new he:e},he.allocAt=function(e,t){var n=Lo.pop();return n===void 0?new he(e,t):(n.x=e,n.y=t,n)},he.free=function(e){Lo.push(e)},he.prototype.isReal=he.prototype.w,he.prototype.setSpot=he.prototype.yi,he.prototype.setRectSpot=he.prototype.xi,he.prototype.snapToGridPoint=he.prototype.vA,he.prototype.snapToGrid=he.prototype.uA,he.prototype.projectOntoLineSegmentPoint=he.prototype.gA,he.prototype.projectOntoLineSegment=he.prototype.fA,he.intersectingLineSegments=function(e,t,n,i,r,o,a,l){return qe.Rl(e,t,n,i,r,o,a,l)},he.prototype.compareWithLineSegmentPoint=he.prototype.Ry,he.compareWithLineSegment=function(e,t,n,i,r,o){return qe.Fl(e,t,n,i,r,o)},he.prototype.direction=he.prototype.direction,he.prototype.directionPoint=he.prototype.ab,he.prototype.normalize=he.prototype.normalize,he.prototype.distanceSquared=he.prototype.zd,he.prototype.distanceSquaredPoint=he.prototype.Bf,he.prototype.scale=he.prototype.scale,he.prototype.rotate=he.prototype.rotate,he.prototype.offset=he.prototype.offset,he.prototype.subtract=he.prototype.re,he.prototype.add=he.prototype.add,he.prototype.equalsApprox=he.prototype.Xa,he.prototype.equalTo=he.prototype.hi,he.prototype.equals=he.prototype.D,he.prototype.set=he.prototype.set,he.prototype.setTo=he.prototype.sg;var Lo=[];he.className="Point",he.parse=Ri,he.stringify=Ai,he.distanceLineSegmentSquared=Lr,he.distanceSquared=Wr,he.direction=eo,he.Origin=gr=new he(0,0).ja(),he.InfiniteTopLeft=br=new he(-1/0,-1/0).ja(),he.InfiniteBottomRight=cr=new he(1/0,1/0).ja(),he.SixPoint=Br=new he(6,6).ja(),he.NoPoint=Zi=new he(NaN,NaN).ja(),he.parse=Ri,he.stringify=Ai,he.distanceLineSegmentSquared=Lr,he.distanceSquared=Wr,he.direction=eo;function pi(e,t){e===void 0?this.height=this.width=0:typeof e=="number"&&(0<=e||isNaN(e))&&typeof t=="number"&&(0<=t||isNaN(t))?(this.width=e,this.height=t):Ve("Invalid arguments to Size constructor: "+e+", "+t),this._isFrozen=!1}var pa,Uo,oa,ma,$a,is,ka;pi.prototype.assign=function(e){return this.width=e.width,this.height=e.height,this},pi.prototype.h=function(e,t){return this.width=e,this.height=t,this},pi.prototype.sg=function(e,t){return this.width=e,this.height=t,this},pi.prototype.set=function(e){return this.width=e.width,this.height=e.height,this},pi.prototype.copy=function(){var e=new pi;return e.width=this.width,e.height=this.height,e},U=pi.prototype,U.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},U.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},U.freeze=function(){return this._isFrozen=!0,this},U.ka=function(){return Object.isFrozen(this)&&Ve("cannot thaw constant: "+this),this._isFrozen=!1,this};function ss(e){if(typeof e=="string"){e=e.split(" ");for(var t=0,n=0;e[t]==="";)t++;var i=e[t++];i&&(n=parseFloat(i));for(var r=0;e[t]==="";)t++;return(i=e[t++])&&(r=parseFloat(i)),new pi(n,r)}return new pi}function Ua(e){return e.width.toString()+" "+e.height.toString()}U.toString=function(){return"Size("+this.width+","+this.height+")"},U.D=function(e){return e instanceof pi?this.width===e.width&&this.height===e.height:!1},U.hi=function(e,t){return this.width===e&&this.height===t},U.Xa=function(e){return qe.B(this.width,e.width)&&qe.B(this.height,e.height)},U.Bc=function(e,t){return e=this.width+e,this.width=0<=e?e:0,t=this.height+t,this.height=0<=t?t:0,this},U.w=function(){return isFinite(this.width)&&isFinite(this.height)},pi.alloc=function(){var e=Go.pop();return e===void 0?new pi:e},pi.free=function(e){Go.push(e)},pi.prototype.isReal=pi.prototype.w,pi.prototype.inflate=pi.prototype.Bc,pi.prototype.equalsApprox=pi.prototype.Xa,pi.prototype.equalTo=pi.prototype.hi,pi.prototype.equals=pi.prototype.D,pi.prototype.set=pi.prototype.set,pi.prototype.setTo=pi.prototype.sg;var Go=[];pi.className="Size",pi.parse=ss,pi.stringify=Ua,pi.ZeroSize=pa=new pi(0,0).ja(),pi.OneSize=Uo=new pi(1,1).ja(),pi.SixSize=oa=new pi(6,6).ja(),pi.EightSize=ma=new pi(8,8).ja(),pi.TenSize=$a=new pi(10,10).ja(),pi.InfiniteSize=is=new pi(1/0,1/0).ja(),pi.NoSize=ka=new pi(NaN,NaN).ja(),pi.parse=ss,pi.stringify=Ua;function Zt(e,t,n,i){e===void 0?this.height=this.width=this.y=this.x=0:typeof e=="number"&&typeof t=="number"&&typeof n=="number"&&(0<=n||isNaN(n))&&typeof i=="number"&&(0<=i||isNaN(i))?(this.x=e,this.y=t,this.width=n,this.height=i):e instanceof he?(n=e.x,e=e.y,t instanceof he?(i=t.x,t=t.y,this.x=Math.min(n,i),this.y=Math.min(e,t),this.width=Math.abs(n-i),this.height=Math.abs(e-t)):t instanceof pi?(this.x=n,this.y=e,this.width=t.width,this.height=t.height):Ve("Incorrect second argument supplied to Rect constructor "+t)):Ve("Invalid arguments to Rect constructor: "+e+", "+t+", "+n+", "+i),this._isFrozen=!1}U=Zt.prototype,U.assign=function(e){return this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this},U.h=function(e,t,n,i){return this.x=e,this.y=t,this.width=n,this.height=i,this};function Pa(e,t,n){e.width=t,e.height=n}U.sg=function(e,t,n,i){return this.x=e,this.y=t,this.width=n,this.height=i,this},U.set=function(e){return this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this},U.dd=function(e){return this.x=e.x,this.y=e.y,this},U.tA=function(e){return this.width=e.width,this.height=e.height,this},Zt.prototype.copy=function(){var e=new Zt;return e.x=this.x,e.y=this.y,e.width=this.width,e.height=this.height,e},U=Zt.prototype,U.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},U.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},U.freeze=function(){return this._isFrozen=!0,this},U.ka=function(){return Object.isFrozen(this)&&Ve("cannot thaw constant: "+this),this._isFrozen=!1,this};function ql(e){if(typeof e=="string"){e=e.split(" ");for(var t=0,n=0;e[t]==="";)t++;var i=e[t++];i&&(n=parseFloat(i));for(var r=0;e[t]==="";)t++;(i=e[t++])&&(r=parseFloat(i));for(var o=0;e[t]==="";)t++;(i=e[t++])&&(o=parseFloat(i));for(var a=0;e[t]==="";)t++;return(i=e[t++])&&(a=parseFloat(i)),new Zt(n,r,o,a)}return new Zt}function nl(e){return e.x.toString()+" "+e.y.toString()+" "+e.width.toString()+" "+e.height.toString()}U.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},U.D=function(e){return e instanceof Zt?this.x===e.x&&this.y===e.y&&this.width===e.width&&this.height===e.height:!1},U.hi=function(e,t,n,i){return this.x===e&&this.y===t&&this.width===n&&this.height===i},U.Xa=function(e){return qe.B(this.x,e.x)&&qe.B(this.y,e.y)&&qe.B(this.width,e.width)&&qe.B(this.height,e.height)};function uo(e,t){return qe.$(e.x,t.x)&&qe.$(e.y,t.y)&&qe.$(e.width,t.width)&&qe.$(e.height,t.height)}U.ca=function(e){return this.x<=e.x&&this.x+this.width>=e.x&&this.y<=e.y&&this.y+this.height>=e.y},U.Re=function(e){return this.x<=e.x&&e.x+e.width<=this.x+this.width&&this.y<=e.y&&e.y+e.height<=this.y+this.height},U.contains=function(e,t,n,i){return n===void 0&&(n=0),i===void 0&&(i=0),this.x<=e&&e+n<=this.x+this.width&&this.y<=t&&t+i<=this.y+this.height},U.offset=function(e,t){return this.x+=e,this.y+=t,this},U.Bc=function(e,t){return No(this,t,e,t,e)},U.Co=function(e){return No(this,e.top,e.right,e.bottom,e.left)},U.Fv=function(e){return No(this,-e.top,-e.right,-e.bottom,-e.left)},U.Hz=function(e,t,n,i){return No(this,e,t,n,i)};function No(e,t,n,i,r){var o=e.width;return n+r<=-o?(e.x+=o/2,e.width=0):(e.x-=r,e.width+=n+r),n=e.height,t+i<=-n?(e.y+=n/2,e.height=0):(e.y-=t,e.height+=t+i),e}U.Ex=function(e){return go(this,e.x,e.y,e.width,e.height)},U.Uu=function(e,t,n,i){return go(this,e,t,n,i)};function go(e,t,n,i,r){var o=Math.max(e.x,t),a=Math.max(e.y,n);return t=Math.min(e.x+e.width,t+i),n=Math.min(e.y+e.height,n+r),e.x=o,e.y=a,e.width=Math.max(0,t-o),e.height=Math.max(0,n-a),e}U.Yc=function(e){return this.Vu(e.x,e.y,e.width,e.height)},U.Vu=function(e,t,n,i){var r=this.width,o=this.x;return r!==1/0&&n!==1/0&&(r+=o,n+=e,isNaN(n)||isNaN(r)||o>n||e>r)?!1:(e=this.height,n=this.y,!(e!==1/0&&i!==1/0&&(e+=n,i+=t,isNaN(i)||isNaN(e)||n>i||t>e)))};function Ot(e,t){var n=e.width,i=e.x,r=t.x-10;return i>t.width+10+10+r||r>n+i?!1:(n=e.height,e=e.y,i=t.y-10,!(e>t.height+10+10+i||i>n+e))}U.Ye=function(e){return Pr(this,e.x,e.y,0,0)},U.ed=function(e){return Pr(this,e.x,e.y,e.width,e.height)},U.Kv=function(e,t,n,i){return n===void 0&&(n=0),i===void 0&&(i=0),Pr(this,e,t,n,i)};function Pr(e,t,n,i,r){var o=Math.min(e.x,t),a=Math.min(e.y,n);return t=Math.max(e.x+e.width,t+i),n=Math.max(e.y+e.height,n+r),e.x=o,e.y=a,e.width=t-o,e.height=n-a,e}U.yi=function(e,t,n){return this.x=e-n.offsetX-n.x*this.width,this.y=t-n.offsetY-n.y*this.height,this};function co(e,t,n,i,r,o,a,l){return a===void 0&&(a=0),l===void 0&&(l=0),e<=r&&r+a<=e+n&&t<=o&&o+l<=t+i}function xa(e,t,n,i,r,o,a,l){return e>a+r||r>n+e?!1:!(t>l+o||o>i+t)}U.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},U.Mz=function(){return this.width===0&&this.height===0},Zt.alloc=function(){var e=ar.pop();return e===void 0?new Zt:e},Zt.allocAt=function(e,t,n,i){var r=ar.pop();return r===void 0?new Zt(e,t,n,i):r.h(e,t,n,i)},Zt.free=function(e){ar.push(e)},ht.Object.defineProperties(Zt.prototype,{left:{get:function(){return this.x},set:function(e){this.x=e}},top:{get:function(){return this.y},set:function(e){this.y=e}},right:{get:function(){return this.x+this.width},set:function(e){this.x+=e-(this.x+this.width)}},bottom:{get:function(){return this.y+this.height},set:function(e){this.y+=e-(this.y+this.height)}},position:{get:function(){return new he(this.x,this.y)},set:function(e){this.x=e.x,this.y=e.y}},size:{get:function(){return new pi(this.width,this.height)},set:function(e){this.width=e.width,this.height=e.height}},center:{get:function(){return new he(this.x+this.width/2,this.y+this.height/2)},set:function(e){this.x=e.x-this.width/2,this.y=e.y-this.height/2}},centerX:{get:function(){return this.x+this.width/2},set:function(e){this.x=e-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(e){this.y=e-this.height/2}}}),Zt.prototype.isEmpty=Zt.prototype.Mz,Zt.prototype.isReal=Zt.prototype.w,Zt.intersectsLineSegment=function(e,t,n,i,r,o,a,l){return qe.Fx(e,t,n,i,r,o,a,l)},Zt.prototype.setSpot=Zt.prototype.yi,Zt.prototype.union=Zt.prototype.Kv,Zt.prototype.unionRect=Zt.prototype.ed,Zt.prototype.unionPoint=Zt.prototype.Ye,Zt.prototype.intersects=Zt.prototype.Vu,Zt.prototype.intersectsRect=Zt.prototype.Yc,Zt.prototype.intersect=Zt.prototype.Uu,Zt.prototype.intersectRect=Zt.prototype.Ex,Zt.prototype.grow=Zt.prototype.Hz,Zt.prototype.subtractMargin=Zt.prototype.Fv,Zt.prototype.addMargin=Zt.prototype.Co,Zt.prototype.inflate=Zt.prototype.Bc,Zt.prototype.offset=Zt.prototype.offset,Zt.prototype.contains=Zt.prototype.contains,Zt.prototype.containsRect=Zt.prototype.Re,Zt.prototype.containsPoint=Zt.prototype.ca,Zt.prototype.equalsApprox=Zt.prototype.Xa,Zt.prototype.equalTo=Zt.prototype.hi,Zt.prototype.equals=Zt.prototype.D,Zt.prototype.setSize=Zt.prototype.tA,Zt.prototype.setPoint=Zt.prototype.dd,Zt.prototype.set=Zt.prototype.set,Zt.prototype.setTo=Zt.prototype.sg;var xr=null,wn=null,ar=[];Zt.className="Rect",Zt.parse=ql,Zt.stringify=nl,Zt.contains=co,Zt.intersects=xa,Zt.ZeroRect=xr=new Zt(0,0,0,0).ja(),Zt.NoRect=wn=new Zt(NaN,NaN,NaN,NaN).ja(),Zt.parse=ql,Zt.stringify=nl,Zt.contains=co,Zt.intersects=xa;function mi(e,t,n,i){e===void 0?this.left=this.bottom=this.right=this.top=0:t===void 0?this.left=this.bottom=this.right=this.top=e:n===void 0?(this.top=e,this.right=t,this.bottom=e,this.left=t):i!==void 0?(this.top=e,this.right=t,this.bottom=n,this.left=i):Ve("Invalid arguments to Margin constructor: "+e+", "+t+", "+n+", "+i),this._isFrozen=!1}mi.prototype.assign=function(e){return this.top=e.top,this.right=e.right,this.bottom=e.bottom,this.left=e.left,this},mi.prototype.sg=function(e,t,n,i){return this.top=e,this.right=t,this.bottom=n,this.left=i,this},mi.prototype.set=function(e){return this.top=e.top,this.right=e.right,this.bottom=e.bottom,this.left=e.left,this},mi.prototype.copy=function(){var e=new mi;return e.top=this.top,e.right=this.right,e.bottom=this.bottom,e.left=this.left,e},U=mi.prototype,U.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},U.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},U.freeze=function(){return this._isFrozen=!0,this},U.ka=function(){return Object.isFrozen(this)&&Ve("cannot thaw constant: "+this),this._isFrozen=!1,this};function Wo(e){if(typeof e=="string"){e=e.split(" ");for(var t=0,n=NaN;e[t]==="";)t++;var i=e[t++];if(i&&(n=parseFloat(i)),isNaN(n))return new mi;for(var r=NaN;e[t]==="";)t++;if((i=e[t++])&&(r=parseFloat(i)),isNaN(r))return new mi(n);for(var o=NaN;e[t]==="";)t++;if((i=e[t++])&&(o=parseFloat(i)),isNaN(o))return new mi(n,r);for(var a=NaN;e[t]==="";)t++;return(i=e[t++])&&(a=parseFloat(i)),isNaN(a)?new mi(n,r):new mi(n,r,o,a)}return new mi}function ga(e){return e.top.toString()+" "+e.right.toString()+" "+e.bottom.toString()+" "+e.left.toString()}U.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},U.D=function(e){return e instanceof mi?this.top===e.top&&this.right===e.right&&this.bottom===e.bottom&&this.left===e.left:!1},U.hi=function(e,t,n,i){return this.top===e&&this.right===t&&this.bottom===n&&this.left===i},U.Xa=function(e){return qe.B(this.top,e.top)&&qe.B(this.right,e.right)&&qe.B(this.bottom,e.bottom)&&qe.B(this.left,e.left)},U.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},mi.alloc=function(){var e=Ss.pop();return e===void 0?new mi:e},mi.free=function(e){Ss.push(e)},mi.prototype.isReal=mi.prototype.w,mi.prototype.equalsApprox=mi.prototype.Xa,mi.prototype.equalTo=mi.prototype.hi,mi.prototype.equals=mi.prototype.D,mi.prototype.set=mi.prototype.set,mi.prototype.setTo=mi.prototype.sg;var Ja=null,Ms=null,Ss=[];mi.className="Margin",mi.parse=Wo,mi.stringify=ga,mi.ZeroMargin=Ja=new mi(0,0,0,0).ja(),mi.TwoMargin=Ms=new mi(2,2,2,2).ja(),mi.parse=Wo,mi.stringify=ga;function ai(e,t,n,i){e===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(t===void 0&&(t=0),n===void 0&&(n=0),i===void 0&&(i=0),this.x=e,this.y=t,this.offsetX=n,this.offsetY=i),this._isFrozen=!1}var Ui,Jo,Es,Vo,rs,Rr,dl,ws,Os,Bo,Ia,fl,ja,qa,Rl,_o,il,rl,hu,Ga,os,_s,Vi,Cs,jl,Kr,wo,ha,aa,ro,ia,va,Ma,Oa,Gl,Vs;ai.prototype.assign=function(e){return this.x=e.x,this.y=e.y,this.offsetX=e.offsetX,this.offsetY=e.offsetY,this},ai.prototype.sg=function(e,t,n,i){return this.x=e,this.y=t,this.offsetX=n,this.offsetY=i,this},ai.prototype.set=function(e){return this.x=e.x,this.y=e.y,this.offsetX=e.offsetX,this.offsetY=e.offsetY,this},ai.prototype.copy=function(){var e=new ai;return e.x=this.x,e.y=this.y,e.offsetX=this.offsetX,e.offsetY=this.offsetY,e},U=ai.prototype,U.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},U.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},U.freeze=function(){return this._isFrozen=!0,this},U.ka=function(){return Object.isFrozen(this)&&Ve("cannot thaw constant: "+this),this._isFrozen=!1,this};function wa(e,t){return e.x=NaN,e.y=NaN,e.offsetX=t,e}function hc(e){if(typeof e=="string"){if(e=e.trim(),e==="None")return Ui;if(e==="TopLeft")return Jo;if(e==="Top"||e==="TopCenter"||e==="MiddleTop")return Es;if(e==="TopRight")return Vo;if(e==="Left"||e==="LeftCenter"||e==="MiddleLeft")return rs;if(e==="Center")return Rr;if(e==="Right"||e==="RightCenter"||e==="MiddleRight")return dl;if(e==="BottomLeft")return ws;if(e==="Bottom"||e==="BottomCenter"||e==="MiddleBottom")return Os;if(e==="BottomRight")return Bo;if(e==="TopSide")return Ia;if(e==="LeftSide")return fl;if(e==="RightSide")return ja;if(e==="BottomSide")return qa;if(e==="TopBottomSides")return Rl;if(e==="LeftRightSides")return _o;if(e==="TopLeftSides")return il;if(e==="TopRightSides")return rl;if(e==="BottomLeftSides")return hu;if(e==="BottomRightSides")return Ga;if(e==="NotTopSide")return os;if(e==="NotLeftSide")return _s;if(e==="NotRightSide")return Vi;if(e==="NotBottomSide")return Cs;if(e==="AllSides")return jl;if(e==="Default")return Kr;e=e.split(" ");for(var t=0,n=0;e[t]==="";)t++;var i=e[t++];i!==void 0&&0<i.length&&(n=parseFloat(i));for(var r=0;e[t]==="";)t++;i=e[t++],i!==void 0&&0<i.length&&(r=parseFloat(i));for(var o=0;e[t]==="";)t++;i=e[t++],i!==void 0&&0<i.length&&(o=parseFloat(i));for(var a=0;e[t]==="";)t++;return i=e[t++],i!==void 0&&0<i.length&&(a=parseFloat(i)),new ai(n,r,o,a)}return new ai}function zu(e){return e.sb()?e.x.toString()+" "+e.y.toString()+" "+e.offsetX.toString()+" "+e.offsetY.toString():e.toString()}U.toString=function(){return this.sb()?this.offsetX===0&&this.offsetY===0?"Spot("+this.x+","+this.y+")":"Spot("+this.x+","+this.y+","+this.offsetX+","+this.offsetY+")":this.D(Ui)?"None":this.D(Jo)?"TopLeft":this.D(Es)?"Top":this.D(Vo)?"TopRight":this.D(rs)?"Left":this.D(Rr)?"Center":this.D(dl)?"Right":this.D(ws)?"BottomLeft":this.D(Os)?"Bottom":this.D(Bo)?"BottomRight":this.D(Ia)?"TopSide":this.D(fl)?"LeftSide":this.D(ja)?"RightSide":this.D(qa)?"BottomSide":this.D(Rl)?"TopBottomSides":this.D(_o)?"LeftRightSides":this.D(il)?"TopLeftSides":this.D(rl)?"TopRightSides":this.D(hu)?"BottomLeftSides":this.D(Ga)?"BottomRightSides":this.D(os)?"NotTopSide":this.D(_s)?"NotLeftSide":this.D(Vi)?"NotRightSide":this.D(Cs)?"NotBottomSide":this.D(jl)?"AllSides":this.D(Kr)?"Default":"None"},U.D=function(e){return e instanceof ai?(this.x===e.x||isNaN(this.x)&&isNaN(e.x))&&(this.y===e.y||isNaN(this.y)&&isNaN(e.y))&&this.offsetX===e.offsetX&&this.offsetY===e.offsetY:!1},U.gv=function(){return new ai(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},U.Hf=function(e){if(!this.$c())return!1;if(!e.$c())if(e.D(wo))e=fl;else if(e.D(ha))e=ja;else if(e.D(aa))e=Ia;else if(e.D(ro))e=qa;else return!1;return e=e.offsetY,(this.offsetY&e)===e},U.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},U.Mc=function(){return isNaN(this.x)||isNaN(this.y)},U.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},U.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},U.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},ai.alloc=function(){var e=du.pop();return e===void 0?new ai:e},ai.free=function(e){du.push(e)},ai.prototype.isDefault=ai.prototype.Xb,ai.prototype.isNone=ai.prototype.ys,ai.prototype.isSide=ai.prototype.$c,ai.prototype.isNoSpot=ai.prototype.Mc,ai.prototype.isSpot=ai.prototype.sb,ai.prototype.includesSide=ai.prototype.Hf,ai.prototype.opposite=ai.prototype.gv,ai.prototype.equals=ai.prototype.D,ai.prototype.set=ai.prototype.set,ai.prototype.setTo=ai.prototype.sg;var du=[];ai.className="Spot",ai.parse=hc,ai.stringify=zu,ai.None=Ui=wa(new ai(0,0,0,0),0).ja(),ai.Default=Kr=wa(new ai(0,0,-1,0),-1).ja(),ai.TopLeft=Jo=new ai(0,0,0,0).ja(),ai.TopCenter=Es=new ai(.5,0,0,0).ja(),ai.TopRight=Vo=new ai(1,0,0,0).ja(),ai.LeftCenter=rs=new ai(0,.5,0,0).ja(),ai.Center=Rr=new ai(.5,.5,0,0).ja(),ai.RightCenter=dl=new ai(1,.5,0,0).ja(),ai.BottomLeft=ws=new ai(0,1,0,0).ja(),ai.BottomCenter=Os=new ai(.5,1,0,0).ja(),ai.BottomRight=Bo=new ai(1,1,0,0).ja(),ai.MiddleTop=ia=Es,ai.MiddleLeft=va=rs,ai.MiddleRight=Ma=dl,ai.MiddleBottom=Oa=Os,ai.Top=aa=Es,ai.Left=wo=rs,ai.Right=ha=dl,ai.Bottom=ro=Os,ai.TopSide=Ia=wa(new ai(0,0,1,1),1).ja(),ai.LeftSide=fl=wa(new ai(0,0,1,2),1).ja(),ai.RightSide=ja=wa(new ai(0,0,1,4),1).ja(),ai.BottomSide=qa=wa(new ai(0,0,1,8),1).ja(),ai.TopBottomSides=Rl=wa(new ai(0,0,1,9),1).ja(),ai.LeftRightSides=_o=wa(new ai(0,0,1,6),1).ja(),ai.TopLeftSides=il=wa(new ai(0,0,1,3),1).ja(),ai.TopRightSides=rl=wa(new ai(0,0,1,5),1).ja(),ai.BottomLeftSides=hu=wa(new ai(0,0,1,10),1).ja(),ai.BottomRightSides=Ga=wa(new ai(0,0,1,12),1).ja(),ai.NotTopSide=os=wa(new ai(0,0,1,14),1).ja(),ai.NotLeftSide=_s=wa(new ai(0,0,1,13),1).ja(),ai.NotRightSide=Vi=wa(new ai(0,0,1,11),1).ja(),ai.NotBottomSide=Cs=wa(new ai(0,0,1,7),1).ja(),ai.AllSides=jl=wa(new ai(0,0,1,15),1).ja(),Gl=new ai(.156,.156).ja(),Vs=new ai(.844,.844).ja(),ai.parse=hc,ai.stringify=zu;function nr(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}nr.prototype.set=function(e){return this.m11=e.m11,this.m12=e.m12,this.m21=e.m21,this.m22=e.m22,this.dx=e.dx,this.dy=e.dy,this},nr.prototype.setTransform=function(e,t,n,i,r,o){return this.m11=e,this.m12=t,this.m21=n,this.m22=i,this.dx=r,this.dy=o,this},nr.prototype.copy=function(){var e=new nr;return e.m11=this.m11,e.m12=this.m12,e.m21=this.m21,e.m22=this.m22,e.dx=this.dx,e.dy=this.dy,e},nr.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},nr.prototype.D=function(e){return this.m11===e.m11&&this.m12===e.m12&&this.m21===e.m21&&this.m22===e.m22&&this.dx===e.dx&&this.dy===e.dy},nr.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},nr.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},nr.prototype.multiply=function(e){var t=this.m11*e.m11+this.m21*e.m12,n=this.m12*e.m11+this.m22*e.m12,i=this.m11*e.m21+this.m21*e.m22,r=this.m12*e.m21+this.m22*e.m22;return this.dx=this.m11*e.dx+this.m21*e.dy+this.dx,this.dy=this.m12*e.dx+this.m22*e.dy+this.dy,this.m11=t,this.m12=n,this.m21=i,this.m22=r,this},nr.prototype.bv=function(e){var t=1/(e.m11*e.m22-e.m12*e.m21),n=e.m22*t,i=-e.m12*t,r=-e.m21*t,o=e.m11*t,a=t*(e.m21*e.dy-e.m22*e.dx);return e=t*(e.m12*e.dx-e.m11*e.dy),t=this.m11*n+this.m21*i,n=this.m12*n+this.m22*i,i=this.m11*r+this.m21*o,r=this.m12*r+this.m22*o,this.dx=this.m11*a+this.m21*e+this.dx,this.dy=this.m12*a+this.m22*e+this.dy,this.m11=t,this.m12=n,this.m21=i,this.m22=r,this},nr.prototype.Vj=function(){var e=1/(this.m11*this.m22-this.m12*this.m21),t=-this.m12*e,n=-this.m21*e,i=this.m11*e,r=e*(this.m21*this.dy-this.m22*this.dx),o=e*(this.m12*this.dx-this.m11*this.dy);return this.m11=this.m22*e,this.m12=t,this.m21=n,this.m22=i,this.dx=r,this.dy=o,this},nr.prototype.rotate=function(e,t,n){if(360<=e?e-=360:0>e&&(e+=360),e===0)return this;if(this.translate(t,n),e===90){e=0;var i=1}else e===180?(e=-1,i=0):e===270?(e=0,i=-1):(i=e*Math.PI/180,e=Math.cos(i),i=Math.sin(i));var r=this.m12*e+this.m22*i,o=this.m11*-i+this.m21*e,a=this.m12*-i+this.m22*e;return this.m11=this.m11*e+this.m21*i,this.m12=r,this.m21=o,this.m22=a,this.translate(-t,-n),this},U=nr.prototype,U.translate=function(e,t){return this.dx+=this.m11*e+this.m21*t,this.dy+=this.m12*e+this.m22*t,this},U.scale=function(e,t){return t===void 0&&(t=e),this.m11*=e,this.m12*=e,this.m21*=t,this.m22*=t,this},U.Ga=function(e){var t=e.x,n=e.y;return e.h(t*this.m11+n*this.m21+this.dx,t*this.m12+n*this.m22+this.dy)},U.Cd=function(e){var t=1/(this.m11*this.m22-this.m12*this.m21),n=e.x,i=e.y;return e.h(n*this.m22*t+i*-this.m21*t+t*(this.m21*this.dy-this.m22*this.dx),n*-this.m12*t+i*this.m11*t+t*(this.m12*this.dx-this.m11*this.dy))},U.Eu=function(e){var t=1/(this.m11*this.m22-this.m12*this.m21),n=1.25*e.x,i=1.2*e.y;return e.h(n*this.m22*t+i*-this.m21*t+t*(this.m21*this.dy-this.m22*this.dx),n*-this.m12*t+i*this.m11*t+t*(this.m12*this.dx-this.m11*this.dy))},U.pp=function(e){var t=e.x,n=e.y,i=t+e.width,r=n+e.height,o=this.m11,a=this.m12,l=this.m21,u=this.m22,f=this.dx,p=this.dy,x=t*o+n*l+f,N=t*a+n*u+p,R=i*o+n*l+f,_=i*a+n*u+p;return n=t*o+r*l+f,t=t*a+r*u+p,o=i*o+r*l+f,i=i*a+r*u+p,r=Math.min(x,R),x=Math.max(x,R),R=Math.min(N,_),N=Math.max(N,_),r=Math.min(r,n),x=Math.max(x,n),R=Math.min(R,t),N=Math.max(N,t),r=Math.min(r,o),x=Math.max(x,o),R=Math.min(R,i),N=Math.max(N,i),e.h(r,R,x-r,N-R),e},nr.alloc=function(){var e=Ks.pop();return e===void 0?new nr:e},nr.free=function(e){Ks.push(e)},nr.prototype.transformRect=nr.prototype.pp,nr.prototype.transformPoint=nr.prototype.Ga,nr.prototype.scale=nr.prototype.scale,nr.prototype.translate=nr.prototype.translate,nr.prototype.rotate=nr.prototype.rotate,nr.prototype.invert=nr.prototype.Vj,nr.prototype.multiplyInverted=nr.prototype.bv,nr.prototype.multiply=nr.prototype.multiply,nr.prototype.reset=nr.prototype.reset,nr.prototype.isIdentity=nr.prototype.ws,nr.prototype.equals=nr.prototype.D,nr.prototype.setTransform=nr.prototype.setTransform,nr.prototype.set=nr.prototype.set;var Ks=[];nr.className="Transform",nr.xF="54a702f3e53909c447824c6706603faf4c";var qe={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(e){if(0>=e)return 0;var t=qe.Uv;if(t===null){t=[];for(var n=0;2e3>=n;n++)t[n]=Math.sqrt(n);qe.Uv=t}return 1>e?(n=1/e,2e3>=n?1/t[n|0]:Math.sqrt(e)):2e3>=e?t[e|0]:Math.sqrt(e)},B:function(e,t){return e-=t,.5>e&&-.5<e},$:function(e,t){return e-=t,5e-8>e&&-5e-8<e},Yb:function(e,t,n,i,r,o,a){if(0>=r&&(r=1e-6),e<n)var l=e,u=n;else l=n,u=e;if(t<i)var f=t,p=i;else f=i,p=t;if(e===n)return f<=a&&a<=p&&e-r<=o&&o<=e+r;if(t===i)return l<=o&&o<=u&&t-r<=a&&a<=t+r;if(u+=r,l-=r,l<=o&&o<=u&&(p+=r,f-=r,f<=a&&a<=p))if(u-l>p-f)if(e-n>r||n-e>r){if(o=(i-t)/(n-e)*(o-e)+t,o-r<=a&&a<=o+r)return!0}else return!0;else if(t-i>r||i-t>r){if(a=(n-e)/(i-t)*(a-t)+e,a-r<=o&&o<=a+r)return!0}else return!0;return!1},cs:function(e,t,n,i,r,o,a,l,u,f,p,x){if(qe.Yb(e,t,a,l,x,n,i)&&qe.Yb(e,t,a,l,x,r,o))return qe.Yb(e,t,a,l,x,f,p);var N=(e+n)/2,R=(t+i)/2,_=(n+r)/2,V=(i+o)/2;r=(r+a)/2,o=(o+l)/2,i=(N+_)/2,n=(R+V)/2,_=(_+r)/2,V=(V+o)/2;var xe=(i+_)/2,ue=(n+V)/2;return qe.cs(e,t,N,R,i,n,xe,ue,u,f,p,x)||qe.cs(xe,ue,_,V,r,o,a,l,u,f,p,x)},ax:function(e,t,n,i,r,o,a,l,u){var f=(n+r)/2,p=(i+o)/2;return u.h((((e+n)/2+f)/2+(f+(r+a)/2)/2)/2,(((t+i)/2+p)/2+(p+(o+l)/2)/2)/2),u},My:function(e,t,n,i,r,o,a,l){var u=(n+r)/2,f=(i+o)/2;return eo(((e+n)/2+u)/2,((t+i)/2+f)/2,(u+(r+a)/2)/2,(f+(o+l)/2)/2)},Dl:function(e,t,n,i,r,o,a,l,u,f){if(qe.Yb(e,t,a,l,u,n,i)&&qe.Yb(e,t,a,l,u,r,o))Pr(f,e,t,0,0),Pr(f,a,l,0,0);else{var p=(e+n)/2,x=(t+i)/2,N=(n+r)/2,R=(i+o)/2;r=(r+a)/2,o=(o+l)/2,i=(p+N)/2,n=(x+R)/2,N=(N+r)/2,R=(R+o)/2;var _=(i+N)/2,V=(n+R)/2;qe.Dl(e,t,p,x,i,n,_,V,u,f),qe.Dl(_,V,N,R,r,o,a,l,u,f)}return f},Qe:function(e,t,n,i,r,o,a,l,u,f){if(qe.Yb(e,t,a,l,u,n,i)&&qe.Yb(e,t,a,l,u,r,o))f.length===0&&(f.push(e),f.push(t)),f.push(a),f.push(l);else{var p=(e+n)/2,x=(t+i)/2,N=(n+r)/2,R=(i+o)/2;r=(r+a)/2,o=(o+l)/2,i=(p+N)/2,n=(x+R)/2,N=(N+r)/2,R=(R+o)/2;var _=(i+N)/2,V=(n+R)/2;qe.Qe(e,t,p,x,i,n,_,V,u,f),qe.Qe(_,V,N,R,r,o,a,l,u,f)}return f},jv:function(e,t,n,i,r,o,a,l,u,f){if(qe.Yb(e,t,r,o,f,n,i))return qe.Yb(e,t,r,o,f,l,u);var p=(e+n)/2,x=(t+i)/2;n=(n+r)/2,i=(i+o)/2;var N=(p+n)/2,R=(x+i)/2;return qe.jv(e,t,p,x,N,R,a,l,u,f)||qe.jv(N,R,n,i,r,o,a,l,u,f)},OA:function(e,t,n,i,r,o,a){return a.h(((e+n)/2+(n+r)/2)/2,((t+i)/2+(i+o)/2)/2),a},iv:function(e,t,n,i,r,o,a,l){if(qe.Yb(e,t,r,o,a,n,i))Pr(l,e,t,0,0),Pr(l,r,o,0,0);else{var u=(e+n)/2,f=(t+i)/2;n=(n+r)/2,i=(i+o)/2;var p=(u+n)/2,x=(f+i)/2;qe.iv(e,t,u,f,p,x,a,l),qe.iv(p,x,n,i,r,o,a,l)}return l},ep:function(e,t,n,i,r,o,a,l){if(qe.Yb(e,t,r,o,a,n,i))l.length===0&&(l.push(e),l.push(t)),l.push(r),l.push(o);else{var u=(e+n)/2,f=(t+i)/2;n=(n+r)/2,i=(i+o)/2;var p=(u+n)/2,x=(f+i)/2;qe.ep(e,t,u,f,p,x,a,l),qe.ep(p,x,n,i,r,o,a,l)}return l},Eo:function(e,t,n,i,r,o,a,l,u,f,p,x,N,R){if(qe.Yb(e,t,a,l,N,n,i)&&qe.Yb(e,t,a,l,N,r,o))return!qe.Rl(e,t,a,l,u,f,p,x)||(N=(e-a)*(f-x)-(t-l)*(u-p),N===0)?!1:(R.h(((e*l-t*a)*(u-p)-(e-a)*(u*x-f*p))/N,((e*l-t*a)*(f-x)-(t-l)*(u*x-f*p))/N),!0);var _=(e+n)/2,V=(t+i)/2,xe=(n+r)/2,ue=(i+o)/2;r=(r+a)/2,o=(o+l)/2,i=(_+xe)/2,n=(V+ue)/2,xe=(xe+r)/2,ue=(ue+o)/2;var Fe=(i+xe)/2,Ue=(n+ue)/2,We=1/0,rt=!1,At=0,Kn=0;return qe.Eo(e,t,_,V,i,n,Fe,Ue,u,f,p,x,N,R)&&(e=(R.x-u)*(R.x-u)+(R.y-f)*(R.y-f),e<We&&(We=e,rt=!0,At=R.x,Kn=R.y)),qe.Eo(Fe,Ue,xe,ue,r,o,a,l,u,f,p,x,N,R)&&(R.x-u)*(R.x-u)+(R.y-f)*(R.y-f)<We&&(rt=!0,At=R.x,Kn=R.y),rt&&(R.x=At,R.y=Kn),rt},Fo:function(e,t,n,i,r,o,a,l,u,f,p,x,N){var R=0;if(qe.Yb(e,t,a,l,N,n,i)&&qe.Yb(e,t,a,l,N,r,o)){if(N=(e-a)*(f-x)-(t-l)*(u-p),N===0)return R;var _=((e*l-t*a)*(u-p)-(e-a)*(u*x-f*p))/N,V=((e*l-t*a)*(f-x)-(t-l)*(u*x-f*p))/N;if(_>=p)return R;if((u>p?u-p:p-u)<(f>x?f-x:x-f)){if(t<l?(u=t,e=l):(u=l,e=t),V<u||V>e)return R}else if(e<a?(u=e,e=a):u=a,_<u||_>e)return R;0<N?R++:0>N&&R--}else{_=(e+n)/2,V=(t+i)/2;var xe=(n+r)/2,ue=(i+o)/2;r=(r+a)/2,o=(o+l)/2,i=(_+xe)/2,n=(V+ue)/2,xe=(xe+r)/2,ue=(ue+o)/2;var Fe=(i+xe)/2,Ue=(n+ue)/2;R+=qe.Fo(e,t,_,V,i,n,Fe,Ue,u,f,p,x,N),R+=qe.Fo(Fe,Ue,xe,ue,r,o,a,l,u,f,p,x,N)}return R},qh:function(e,t,n,i,r,o,a){return qe.$(e,n)?(t<i?(n=t,t=i):n=i,o<n?(a.h(e,n),!1):o>t?(a.h(e,t),!1):(a.h(e,o),!0)):qe.$(t,i)?(e<n?(i=e,e=n):i=n,r<i?(a.h(i,t),!1):r>e?(a.h(e,t),!1):(a.h(r,t),!0)):(r=((e-r)*(e-n)+(t-o)*(t-i))/((n-e)*(n-e)+(i-t)*(i-t)),-5e-6>r?(a.h(e,t),!1):1.000005<r?(a.h(n,i),!1):(a.h(e+r*(n-e),t+r*(i-t)),!0))},Ve:function(e,t,n,i,r,o,a,l,u){return qe.B(e,n)&&qe.B(t,i)?(u.h(e,t),!1):qe.$(r,a)?qe.$(e,n)?(qe.qh(e,t,n,i,r,o,u),!1):qe.qh(e,t,n,i,r,(i-t)/(n-e)*(r-e)+t,u):(l=(l-o)/(a-r),qe.$(e,n)?(n=l*(e-r)+o,t<i?(r=t,t=i):r=i,n<r?(u.h(e,r),!1):n>t?(u.h(e,t),!1):(u.h(e,n),!0)):(a=(i-t)/(n-e),qe.$(l,a)?(qe.qh(e,t,n,i,r,o,u),!1):(r=(a*e-l*r+o-t)/(a-l),qe.$(a,0)?(e<n?(i=e,e=n):i=n,r<i?(u.h(i,t),!1):r>e?(u.h(e,t),!1):(u.h(r,t),!0)):qe.qh(e,t,n,i,r,a*(r-e)+t,u))))},MA:function(e,t,n,i,r){return qe.Ve(n.x,n.y,i.x,i.y,e.x,e.y,t.x,t.y,r)},KA:function(e,t,n,i,r,o,a,l,u,f){function p(xe,ue){var Fe=(xe-e)*(xe-e)+(ue-t)*(ue-t);Fe<x&&(x=Fe,u.h(xe,ue))}var x=1/0;p(u.x,u.y);var N=0,R=0,_=0,V=0;if(r<a?(N=r,R=a):(N=a,R=r),o<l?(_=r,V=a):(_=a,V=r),N=(R-N)/2+f,f=(V-_)/2+f,r=(r+a)/2,o=(o+l)/2,N===0||f===0)return u;if(.5>(n>e?n-e:e-n)){if(N=1-(n-r)*(n-r)/(N*N),0>N)return u;N=Math.sqrt(N),i=-f*N+o,p(n,f*N+o),p(n,i)}else{if(n=(i-t)/(n-e),i=1/(N*N)+n*n/(f*f),l=2*n*(t-n*e)/(f*f)-2*n*o/(f*f)-2*r/(N*N),N=l*l-4*i*(2*n*e*o/(f*f)-2*t*o/(f*f)+o*o/(f*f)+r*r/(N*N)-1+(t-n*e)*(t-n*e)/(f*f)),0>N)return u;N=Math.sqrt(N),f=(-l+N)/(2*i),p(f,n*f-n*e+t),N=(-l-N)/(2*i),p(N,n*N-n*e+t)}return u},Ff:function(e,t,n,i,r,o,a,l,u){var f=1e21,p=e,x=t;if(qe.Ve(e,t,e,i,r,o,a,l,u)){var N=(u.x-r)*(u.x-r)+(u.y-o)*(u.y-o);N<f&&(f=N,p=u.x,x=u.y)}return qe.Ve(n,t,n,i,r,o,a,l,u)&&(N=(u.x-r)*(u.x-r)+(u.y-o)*(u.y-o),N<f&&(f=N,p=u.x,x=u.y)),qe.Ve(e,t,n,t,r,o,a,l,u)&&(t=(u.x-r)*(u.x-r)+(u.y-o)*(u.y-o),t<f&&(f=t,p=u.x,x=u.y)),qe.Ve(e,i,n,i,r,o,a,l,u)&&(e=(u.x-r)*(u.x-r)+(u.y-o)*(u.y-o),e<f&&(f=e,p=u.x,x=u.y)),u.h(p,x),1e21>f},us:function(e,t,n){return qe.Fx(e.x,e.y,e.width,e.height,t.x,t.y,n.x,n.y)},Fx:function(e,t,n,i,r,o,a,l){var u=e+n,f=t+i;return r===a?(o<l?(a=o,o=l):a=l,e<=r&&r<=u&&a<=f&&o>=t):o===l?(r<a?(l=r,r=a):l=a,t<=o&&o<=f&&l<=u&&r>=e):!!(co(e,t,n,i,r,o)||co(e,t,n,i,a,l)||qe.Rl(e,t,u,t,r,o,a,l)||qe.Rl(u,t,u,f,r,o,a,l)||qe.Rl(u,f,e,f,r,o,a,l)||qe.Rl(e,f,e,t,r,o,a,l))},Rl:function(e,t,n,i,r,o,a,l){return e===n&&t===i&&r===a&&o===l?e===r&&t===o:0>=qe.Fl(e,t,n,i,r,o)*qe.Fl(e,t,n,i,a,l)&&0>=qe.Fl(r,o,a,l,e,t)*qe.Fl(r,o,a,l,n,i)},Fl:function(e,t,n,i,r,o){return n-=e,i-=t,e=r-e,t=o-t,o=e*i-t*n,o===0&&(o=e*n+t*i,0<o&&(o=(e-n)*n+(t-i)*i,0>o&&(o=0))),o},bp:function(e){return 0>e&&(e+=360),360<=e&&(e-=360),e},jx:function(e,t,n,i,r,o){var a=Math.PI;o||(i*=a/180,r*=a/180);var l=i>r?-1:1;o=[];var u=a/2,f=i;if(i=Math.min(2*a,Math.abs(r-i)),1e-5>i)return u=f+l*Math.min(i,u),l=e+n*Math.cos(f),f=t+n*Math.sin(f),e+=n*Math.cos(u),t+=n*Math.sin(u),n=(l+e)/2,u=(f+t)/2,o.push([l,f,n,u,n,u,e,t]),o;for(;1e-5<i;)r=f+l*Math.min(i,u),o.push(qe.Vy(n,f,r,e,t)),i-=Math.abs(r-f),f=r;return o},Vy:function(e,t,n,i,r){var o=(n-t)/2,a=e*Math.cos(o),l=e*Math.sin(o),u=-l,f=a*a+u*u,p=f+a*a+u*l;return f=4/3*(Math.sqrt(2*f*p)-p)/(a*l-u*a),l=a-f*u,a=u+f*a,u=-a,f=o+t,o=Math.cos(f),f=Math.sin(f),[i+e*Math.cos(t),r+e*Math.sin(t),i+l*o-a*f,r+l*f+a*o,i+l*o-u*f,r+l*f+u*o,i+e*Math.cos(n),r+e*Math.sin(n)]},No:function(e,t,n,i,r,o,a){n=Math.floor((e-n)/r)*r+n,i=Math.floor((t-i)/o)*o+i;var l=n;return n+r-e<r/2&&(l=n+r),e=i,i+o-t<o/2&&(e=i+o),a.h(l,e),a},vx:function(e,t){var n=Math.max(e,t);e=Math.min(e,t);var i;do t=n%e,n=i=e,e=t;while(0<t);return i},$y:function(e,t,n,i){var r=0>n,o=0>i;if(e<t)var a=1,l=0;else a=0,l=1;var u=a===0?e:t,f=a===0?n:i;return(a===0?r:o)&&(f=-f),a=l,n=a===0?n:i,(a===0?r:o)&&(n=-n),qe.az(u,a===0?e:t,f,n,0,0)},az:function(e,t,n,i,r,o){if(0<i)if(0<n){r=e*e,o=t*t,e*=n;var a=t*i,l=-o+a,u=-o+Math.sqrt(e*e+a*a);t=l;for(var f=0;9999999999>f&&(t=.5*(l+u),!(t===l||t===u));++f){var p=e/(t+r),x=a/(t+o);if(p=p*p+x*x-1,0<p)l=t;else if(0>p)u=t;else break}n=r*n/(t+r)-n,i=o*i/(t+o)-i,n=Math.sqrt(n*n+i*i)}else n=Math.abs(i-t);else i=e*e-t*t,o=e*n,o<i?(i=o/i,o=t*Math.sqrt(Math.abs(1-i*i)),n=e*i-n,n=Math.sqrt(n*n+o*o)):n=Math.abs(n-e);return n},Ze:new oe,um:new oe,Mf:new oe,Nf:0,vm:100};qe.za=qe.AA;function Dn(e){Li(this),this.l=2,e===void 0&&(e=Dn.o),this.na=e,this.Ec=this.Dc=this.pd=this.od=0,e===Dn.o?this.ee=new qt:(Dn.V===null&&(Dn.V=new qt().freeze()),this.ee=Dn.V),this.aq=this.ee.Ja,this.Ip=new Zt().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=Jo,this.gg=Bo,this.Rk=this.Sk=NaN,this.Uf=Tn}Dn.prototype.copy=function(){var e=new Dn;if(e.l=this.l&-2,e.na=this.na,e.od=this.od,e.pd=this.pd,e.Dc=this.Dc,e.Ec=this.Ec,this.na===Dn.o){for(var t=this.ee.s,n=e.ee,i=0;i<t.length;i++)n.add(t[i].copy());e.ee=n}else e.ee=this.ee;return e.aq=this.aq,e.Ip.assign(this.Ip),e.tk=this.tk,e.ym=this.ym,e.zm=this.zm,e.fg=this.fg.J(),e.gg=this.gg.J(),e.Sk=this.Sk,e.Rk=this.Rk,e.Uf=this.Uf,e},Dn.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},Dn.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==Dn.o)return this;var e=this.figures;e.freeze(),e=e.s;for(var t=e.length,n=0;n<t;n++)e[n].freeze();return this},Dn.prototype.ka=function(){if(Object.isFrozen(this)&&Ve("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==Dn.o)return this;var e=this.figures;e.ka(),e=e.s;for(var t=e.length,n=0;n<t;n++)e[n].ka();return this},Dn.prototype.Xa=function(e){if(!(e instanceof Dn))return!1;if(this.type!==e.type)return this.type===Dn.j&&e.type===Dn.o?Cu(this,e):e.type===Dn.j&&this.type===Dn.o?Cu(e,this):!1;if(this.type===Dn.o){var t=this.figures.s;e=e.figures.s;var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(!t[i].Xa(e[i]))return!1;return!0}return qe.B(this.startX,e.startX)&&qe.B(this.startY,e.startY)&&qe.B(this.endX,e.endX)&&qe.B(this.endY,e.endY)};function Cu(e,t){return e.type!==Dn.j||t.type!==Dn.o?!1:!!(t.figures.count===1&&(t=t.figures.M(0),t.segments.count===1&&qe.B(e.startX,t.startX)&&qe.B(e.startY,t.startY)&&(t=t.segments.M(0),t.type===vo&&qe.B(e.endX,t.endX)&&qe.B(e.endY,t.endY))))}Dn.ia=function(e){return e.toString()},Dn.prototype.qb=function(e){e.classType===Dn&&(this.type=e)},Dn.prototype.toString=function(e){switch(e===void 0&&(e=-1),this.type){case Dn.j:return 0>e?"M"+this.startX.toString()+" "+this.startY.toString()+"L"+this.endX.toString()+" "+this.endY.toString():"M"+this.startX.toFixed(e)+" "+this.startY.toFixed(e)+"L"+this.endX.toFixed(e)+" "+this.endY.toFixed(e);case Dn.u:var t=new Zt(this.startX,this.startY,0,0);return t.Kv(this.endX,this.endY,0,0),0>e?"M"+t.x.toString()+" "+t.y.toString()+"H"+t.right.toString()+"V"+t.bottom.toString()+"H"+t.left.toString()+"z":"M"+t.x.toFixed(e)+" "+t.y.toFixed(e)+"H"+t.right.toFixed(e)+"V"+t.bottom.toFixed(e)+"H"+t.left.toFixed(e)+"z";case Dn.F:if(t=new Zt(this.startX,this.startY,0,0),t.Kv(this.endX,this.endY,0,0),0>e)return e=t.left.toString()+" "+(t.y+t.height/2).toString(),"M"+e+"A"+(t.width/2).toString()+" "+(t.height/2).toString()+" 0 0 1 "+(t.right.toString()+" "+(t.y+t.height/2).toString())+"A"+(t.width/2).toString()+" "+(t.height/2).toString()+" 0 0 1 "+e;var n=t.left.toFixed(e)+" "+(t.y+t.height/2).toFixed(e);return"M"+n+"A"+(t.width/2).toFixed(e)+" "+(t.height/2).toFixed(e)+" 0 0 1 "+(t.right.toFixed(e)+" "+(t.y+t.height/2).toFixed(e))+"A"+(t.width/2).toFixed(e)+" "+(t.height/2).toFixed(e)+" 0 0 1 "+n;case Dn.o:t="",n=this.figures.s;for(var i=n.length,r=0;r<i;r++){var o=n[r];0<r&&(t+=" x "),o.isFilled&&(t+="F "),t+=o.toString(e)}return t;default:return this.type.toString()}},Dn.nb=function(e){e=e.split(/[Xx]/);for(var t=e.length,n="",i=0;i<t;i++){var r=e[i];n=r.match(/[Ff]/)!==null?i===0?n+r:n+("X"+(r[0]===" "?"":" ")+r):n+((i===0?"":"X ")+"F"+(r[0]===" "?"":" ")+r)}return n},Dn.parse=function(e,t){function n(){return V>=We-1?!0:f[V+1].match(rt)!==null}function i(){return V++,f[V]}function r(Ji){var Wi=parseFloat(i()),Jr=parseFloat(i());xe===xe.toLowerCase()&&(Wi=Ue.x+Wi,Jr=Ue.y+Jr),Ji.h(Wi,Jr)}function o(){return r(Ue),Ue}function a(){return r(Fe),Fe}function l(){var Ji=ue.toLowerCase();return Ji!=="c"&&Ji!=="s"&&Ji!=="q"&&Ji!=="t"?Ue:new he(2*Ue.x-Fe.x,2*Ue.y-Fe.y)}t===void 0&&(t=!1);var u=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;e=e.replace(/,/gm," "),e=e.replace(u,"$1 $2"),e=e.replace(u,"$1 $2"),e=e.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^s])/gm,"$1 $2"),e=e.replace(/([^s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,"$1 $2"),e=e.replace(/([0-9])([+\-])/gm,"$1 $2"),e=e.replace(/[\s\r\t\n]+/gm," "),e=e.replace(/^\s+|\s+$/g,"");var f=e.split(" ");for(e=0;e<f.length;e++){var p=f[e];if(p.match(/(\.[0-9]*)(\.)/gm)!==null){u=Rt();for(var x="",N=!1,R=0;R<p.length;R++){var _=p[R];_!=="."||N?_==="."?(u.push(x),x="."):x+=_:(N=!0,x+=_)}for(u.push(x),f.splice(e,1),p=0;p<u.length;p++)f.splice(e+p,0,u[p]);e+=u.length-1,Jt(u)}}var V=-1,xe="",ue="";u=new he(0,0);var Fe=new he(0,0),Ue=new he(0,0),We=f.length;e=Hy(null),N=x=p=!1,R=!0,_=null;for(var rt=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(V>=We-1);)if(ue=xe,xe=i(),xe!=="")switch(xe.toUpperCase()){case"X":R=!0,x=p=!1;break;case"M":for(_=o(),e.mc===null||R===!0?(If(e,_.x,_.y,p,!x,N),R=!1):e.moveTo(_.x,_.y),u.assign(Ue);!n();)_=o(),e.lineTo(_.x,_.y);break;case"L":for(;!n();)_=o(),e.lineTo(_.x,_.y);break;case"H":for(;!n();)Ue=new he((xe===xe.toLowerCase()?Ue.x:0)+parseFloat(i()),Ue.y),e.lineTo(Ue.x,Ue.y);break;case"V":for(;!n();)Ue=new he(Ue.x,(xe===xe.toLowerCase()?Ue.y:0)+parseFloat(i())),e.lineTo(Ue.x,Ue.y);break;case"C":for(;!n();){_=new he,r(_);var At=a(),Kn=o();bh(e,_.x,_.y,At.x,At.y,Kn.x,Kn.y)}break;case"S":for(;!n();)_=l(),At=a(),Kn=o(),bh(e,_.x,_.y,At.x,At.y,Kn.x,Kn.y);break;case"Q":for(;!n();)_=a(),At=o(),Y0(e,_.x,_.y,At.x,At.y);break;case"T":for(;!n();)Fe=_=l(),At=o(),Y0(e,_.x,_.y,At.x,At.y);break;case"B":for(;!n();){_=parseFloat(i()),At=parseFloat(i()),Kn=parseFloat(i());var ri=parseFloat(i()),qn=parseFloat(i()),Rn=qn,mn=!1;n()||(Rn=parseFloat(i()),n()||(mn=parseFloat(i())!==0)),xe===xe.toLowerCase()&&(Kn+=Ue.x,ri+=Ue.y),e.arcTo(_,At,Kn,ri,qn,Rn,mn)}break;case"A":for(;!n();)_=Math.abs(parseFloat(i())),At=Math.abs(parseFloat(i())),Kn=parseFloat(i()),qn=ri=!1,mn=Rn=0,Rn=i(),Rn.length===1?(ri=!!parseFloat(Rn),qn=!!parseFloat(i()),Rn=parseFloat(i())):Rn.length===2?(ri=!!parseFloat(Rn[0]),qn=!!parseFloat(Rn[1]),Rn=parseFloat(i())):(ri=!!parseFloat(Rn[0]),qn=!!parseFloat(Rn[1]),Rn=parseFloat(Rn.slice(2))),mn=parseFloat(i()),xe===xe.toLowerCase()&&(Rn=Ue.x+Rn,mn=Ue.y+mn),Ue.h(Rn,mn),Fb(e,_,At,Kn,ri,qn,Rn,mn);break;case"Z":Pb(e),Ue.assign(u);break;case"F":for(_="",At=1;f[V+At];)if(f[V+At]==="0")N=!0,At++;else if(f[V+At].match(/[Uu]/)!==null)At++;else if(f[V+At].match(rt)===null)At++;else{_=f[V+At];break}_.match(/[Mm]/)?p=!0:0<e.mc.segments.length&&(e.mc.isFilled=!0);break;case"U":for(_="",At=1;f[V+At];)if(f[V+At].match(/[Ff]/)!==null)At++;else if(f[V+At].match(rt)===null)At++;else{_=f[V+At];break}_.match(/[Mm]/)?x=!0:e.mc.isShadowed=!1}if(u=e.os,X0=e,t)for(t=u.figures.iterator;t.next();)t.value.isFilled=!0;return u},Dn.Ha=function(e,t){for(var n=e.length,i=he.alloc(),r=0;r<n;r++){var o=e[r];i.x=o[0],i.y=o[1],t.Ga(i),o[0]=i.x,o[1]=i.y,i.x=o[2],i.y=o[3],t.Ga(i),o[2]=i.x,o[3]=i.y,i.x=o[4],i.y=o[5],t.Ga(i),o[4]=i.x,o[5]=i.y,i.x=o[6],i.y=o[7],t.Ga(i),o[6]=i.x,o[7]=i.y}he.free(i)},Dn.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===Dn.o){if(this.aq!==this.figures.Ja)return!0;for(var e=this.figures.s,t=e.length,n=0;n<t;n++)if(e[n].Zu())return!0}return!1},Dn.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===Dn.o){this.aq=this.figures.Ja;for(var e=this.figures.s,t=e.length,n=0;n<t;n++){var i=e[n];i._isInvalidBounds=!1;var r=i.segments;i.sr=r.Ja,i=r.s,r=i.length;for(var o=0;o<r;o++){var a=i[o];a._isInvalidBounds=!1,a.ae=null}}}e=this.Ip,e.ka(),isNaN(this.Sk)||isNaN(this.Rk)?e.h(0,0,0,0):e.h(0,0,this.Sk,this.Rk),Yu(this,e,!1),Pr(e,0,0,0,0),e.freeze()},Dn.prototype.ix=function(){var e=new Zt;return Yu(this,e,!0),e};function Yu(e,t,n){switch(e.type){case Dn.j:case Dn.u:case Dn.F:n?t.h(e.od,e.pd,0,0):Pr(t,e.od,e.pd,0,0),Pr(t,e.Dc,e.Ec,0,0);break;case Dn.o:var i=e.figures;e=i.s,i=i.length;for(var r=0;r<i;r++){var o=e[r];n&&r===0?t.h(o.startX,o.startY,0,0):Pr(t,o.startX,o.startY,0,0);for(var a=o.segments.s,l=a.length,u=o.startX,f=o.startY,p=0;p<l;p++){var x=a[p];switch(x.type){case vo:case Eo:u=x.endX,f=x.endY,Pr(t,u,f,0,0);break;case Wa:qe.Dl(u,f,x.point1X,x.point1Y,x.point2X,x.point2Y,x.endX,x.endY,.5,t),u=x.endX,f=x.endY;break;case js:qe.iv(u,f,x.point1X,x.point1Y,x.endX,x.endY,.5,t),u=x.endX,f=x.endY;break;case sa:case Gs:var N=x.type===sa?fs(x,o):as(x,o,u,f),R=N.length;if(R===0){u=x.type===sa?x.centerX:x.endX,f=x.type===sa?x.centerY:x.endY,Pr(t,u,f,0,0);break}x=null;for(var _=0;_<R;_++)x=N[_],qe.Dl(x[0],x[1],x[2],x[3],x[4],x[5],x[6],x[7],.5,t);x!==null&&(u=x[6],f=x[7]);break;default:Ve("Unknown Segment type: "+x.type)}}}break;default:Ve("Unknown Geometry type: "+e.type)}}Dn.prototype.normalize=function(){this._isFrozen&&Ut(this);var e=this.ix();return this.offset(-e.x,-e.y),new he(-e.x,-e.y)},Dn.prototype.offset=function(e,t){return this._isFrozen&&Ut(this),this.transform(1,0,0,1,e,t),this},Dn.prototype.scale=function(e,t){return this._isFrozen&&Ut(this),this.transform(e,0,0,t,0,0),this},Dn.prototype.rotate=function(e,t,n){this._isFrozen&&Ut(this),t===void 0&&(t=0),n===void 0&&(n=0);var i=nr.alloc();return i.reset(),i.rotate(e,t,n),this.transform(i.m11,i.m12,i.m21,i.m22,i.dx,i.dy),nr.free(i),this},U=Dn.prototype,U.transform=function(e,t,n,i,r,o){switch(this.type){case Dn.j:case Dn.u:case Dn.F:var a=this.od,l=this.pd;this.od=a*e+l*n+r,this.pd=a*t+l*i+o,a=this.Dc,l=this.Ec,this.Dc=a*e+l*n+r,this.Ec=a*t+l*i+o;break;case Dn.o:for(var u=this.figures.s,f=u.length,p=0;p<f;p++){var x=u[p];a=x.startX,l=x.startY,x.startX=a*e+l*n+r,x.startY=a*t+l*i+o,x=x.segments.s;for(var N=x.length,R=0;R<N;R++){var _=x[R];switch(_.type){case vo:case Eo:a=_.endX,l=_.endY,_.endX=a*e+l*n+r,_.endY=a*t+l*i+o;break;case Wa:a=_.point1X,l=_.point1Y,_.point1X=a*e+l*n+r,_.point1Y=a*t+l*i+o,a=_.point2X,l=_.point2Y,_.point2X=a*e+l*n+r,_.point2Y=a*t+l*i+o,a=_.endX,l=_.endY,_.endX=a*e+l*n+r,_.endY=a*t+l*i+o;break;case js:a=_.point1X,l=_.point1Y,_.point1X=a*e+l*n+r,_.point1Y=a*t+l*i+o,a=_.endX,l=_.endY,_.endX=a*e+l*n+r,_.endY=a*t+l*i+o;break;case sa:a=_.centerX,l=_.centerY,_.centerX=a*e+l*n+r,_.centerY=a*t+l*i+o,t!==0&&(a=180*Math.atan2(t,e)/Math.PI,0>a&&(a+=360),_.startAngle+=a),0>e&&(_.startAngle=180-_.startAngle,_.sweepAngle=-_.sweepAngle),0>i&&(_.startAngle=-_.startAngle,_.sweepAngle=-_.sweepAngle),_.radiusX*=Math.sqrt(e*e+n*n),_.radiusY!==void 0&&(_.radiusY*=Math.sqrt(t*t+i*i));break;case Gs:if(a=_.endX,l=_.endY,_.endX=a*e+l*n+r,_.endY=a*t+l*i+o,_.radiusX===0||_.radiusY===0)break;t!==0&&(a=180*Math.atan2(t,e)/Math.PI,0>a&&(a+=360),_.xAxisRotation+=a),0>e&&(_.xAxisRotation=180-_.xAxisRotation,_.isClockwiseArc=!_.isClockwiseArc),0>i&&(_.xAxisRotation=-_.xAxisRotation,_.isClockwiseArc=!_.isClockwiseArc),_.radiusX*=Math.sqrt(e*e+n*n),_.radiusY*=Math.sqrt(t*t+i*i);break;default:Ve("Unknown Segment type: "+_.type)}}}}return this._isInvalidBounds=!0,this},U.ca=function(e,t){t===void 0&&(t=0);var n=this.od,i=this.pd,r=this.Dc,o=this.Ec;switch(this.type){case Dn.j:return qe.Yb(n,i,r,o,t,e.x,e.y);case Dn.u:var a=Zt.allocAt(Math.min(n,r)-t,Math.min(i,o)-t,Math.abs(r-n)+2*t,Math.abs(o-i)+2*t);return e=a.ca(e),Zt.free(a),e;case Dn.F:a=Math.min(n,r)-t;var l=Math.min(i,o)-t;return n=(Math.abs(r-n)+2*t)/2,t=(Math.abs(o-i)+2*t)/2,0>=n||0>=t?!1:(a=e.x-(a+n),l=e.y-(l+t),1>=a*a/(n*n)+l*l/(t*t));case Dn.o:return pl(this,e,t,!0,!1);default:return!1}};function pl(e,t,n,i,r){var o=t.x;t=t.y;for(var a=e.bounds.x-20,l=0,u,f,p,x,N=e.figures.s,R=N.length,_=0;_<R;_++){var V=N[_],xe=!V.isEvenOdd;if(V.isFilled){if(i&&V.ca(o,t,n))return!0;var ue=V.segments;u=V.startX,f=V.startY;for(var Fe=u,Ue=f,We=ue.s,rt=0;rt<=ue.length;rt++){var At=void 0;if(rt!==ue.length){At=We[rt];var Kn=At.type;e=At.endX,x=At.endY}else Kn=vo,e=Fe,x=Ue;switch(Kn){case Eo:if(Fe=ml(o,t,a,t,u,f,Fe,Ue),isNaN(Fe))return!0;l+=Fe,Fe=e,Ue=x;break;case vo:if(u=ml(o,t,a,t,u,f,e,x),isNaN(u))return!0;l+=u;break;case Wa:p=qe.Fo(u,f,At.point1X,At.point1Y,At.point2X,At.point2Y,e,x,a,t,o,t,.5),l+=p;break;case js:p=qe.Fo(u,f,(u+2*At.point1X)/3,(f+2*At.point1Y)/3,(2*At.point1X+e)/3,(2*At.point1Y+x)/3,e,x,a,t,o,t,.5),l+=p;break;case sa:case Gs:Kn=At.type===sa?fs(At,V):as(At,V,u,f);var ri=Kn.length;if(ri===0){if(u=ml(o,t,a,t,u,f,At.type===sa?At.centerX:At.endX,At.type===sa?At.centerY:At.endY),isNaN(u))return!0;l+=u;break}At=null;for(var qn=0;qn<ri;qn++){if(At=Kn[qn],qn===0){if(p=ml(o,t,a,t,u,f,At[0],At[1]),isNaN(p))return!0;l+=p}p=qe.Fo(At[0],At[1],At[2],At[3],At[4],At[5],At[6],At[7],a,t,o,t,.5),l+=p}At!==null&&(e=At[6],x=At[7]);break;default:Ve("Unknown Segment type: "+At.type)}u=e,f=x}if(xe){if(l!==0)return!0}else if(l%2!==0)return!0;l=0}else if(V.ca(o,t,r?n:n+2))return!0}return!1}function ml(e,t,n,i,r,o,a,l){if(qe.Yb(r,o,a,l,.05,e,t))return NaN;var u=(e-n)*(o-l);if(u===0)return 0;var f=((e*i-t*n)*(r-a)-(e-n)*(r*l-o*a))/u;if(t=(e*i-t*n)*(o-l)/u,f>=e)return 0;if((r>a?r-a:a-r)<(o>l?o-l:l-o)){if(o<l){if(t<o||t>l)return 0}else if(t<l||t>o)return 0}else if(r<a){if(f<r||f>a)return 0}else if(f<a||f>r)return 0;return 0<u?1:-1}function gl(e,t,n,i){e=e.figures.s;for(var r=e.length,o=0;o<r;o++)if(e[o].ca(t,n,i))return!0;return!1}U.Pu=function(e,t){if(0>e?e=0:1<e&&(e=1),t===void 0&&(t=new he),this.type===Dn.j)return t.h(this.startX+e*(this.endX-this.startX),this.startY+e*(this.endY-this.startY)),t;for(var n=this.flattenedSegments,i=this.flattenedLengths,r=n.length,o=this.flattenedTotalLength*e,a=0,l=0;l<r;l++){var u=i[l],f=u.length;for(e=0;e<f;e++){var p=u[e];if(a+p>=o)return i=o-a,i=p===0?0:i/p,n=n[l],l=n[2*e],r=n[2*e+1],t.h(l+(n[2*e+2]-l)*i,r+(n[2*e+3]-r)*i),t;a+=p}}return t},U.wx=function(e){if(0>e?e=0:1<e&&(e=1),this.type===Dn.j)return 180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI;for(var t=this.flattenedSegments,n=this.flattenedLengths,i=t.length,r=this.flattenedTotalLength*e,o=0,a=0;a<i;a++){var l=n[a],u=l.length;for(e=0;e<u;e++){var f=l[e];if(o+f>=r)return r=t[a],t=r[2*e],n=r[2*e+1],i=r[2*e+2],e=r[2*e+3],1>Math.abs(i-t)&&1>Math.abs(e-n)?0:1>Math.abs(i-t)?0<=e-n?90:270:1>Math.abs(e-n)?0<=i-t?0:180:180*Math.atan2(e-n,i-t)/Math.PI;o+=f}}return NaN},U.Qu=function(e,t){if(0>e?e=0:1<e&&(e=1),t===void 0&&(t=[]),t.length=3,this.type===Dn.j)return t[0]=this.startX+e*(this.endX-this.startX),t[1]=this.startY+e*(this.endY-this.startY),t[2]=180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI,t;for(var n=this.flattenedSegments,i=this.flattenedLengths,r=n.length,o=this.flattenedTotalLength*e,a=0,l=0;l<r;l++){var u=i[l],f=u.length;for(e=0;e<f;e++){var p=u[e];if(a+p>=o)return i=o-a,i=p===0?0:i/p,p=n[l],n=p[2*e],l=p[2*e+1],r=p[2*e+2],e=p[2*e+3],t[0]=n+(r-n)*i,t[1]=l+(e-l)*i,t[2]=1>Math.abs(r-n)&&1>Math.abs(e-l)?0:1>Math.abs(r-n)?0<=e-l?90:270:1>Math.abs(e-l)?0<=r-n?0:180:180*Math.atan2(e-l,r-n)/Math.PI,t;a+=p}}return t},U.xx=function(e){if(this.type===Dn.j){var t=this.startX,n=this.startY,i=this.endX,r=this.endY;if(t!==i||n!==r){var o=e.x;if(e=e.y,t===i){if(n<r){var a=n;i=r}else a=r,i=n;return e<=a?a===n?0:1:e>=i?i===n?0:1:Math.abs(e-n)/(i-a)}if(n===r)return t<i?a=t:(a=i,i=t),o<=a?a===t?0:1:o>=i?i===t?0:1:Math.abs(o-t)/(i-a);a=(i-t)*(i-t)+(r-n)*(r-n);var l=he.alloc();return qe.qh(t,n,i,r,o,e,l),e=l.x,o=l.y,he.free(l),Math.sqrt(((e-t)*(e-t)+(o-n)*(o-n))/a)}}else if(this.type===Dn.u){a=this.startX,l=this.startY;var u=this.endX;if(r=this.endY,a!==u||l!==r){t=u-a,n=r-l,o=2*t+2*n,i=e.x,e=e.y,i=Math.min(Math.max(i,a),u),e=Math.min(Math.max(e,l),r),a=Math.abs(i-a),u=Math.abs(i-u),l=Math.abs(e-l),r=Math.abs(e-r);var f=Math.min(a,u,l,r);if(f===l)return i/o;if(f===u)return(t+e)/o;if(f===r)return(2*t+n-i)/o;if(f===a)return(2*t+2*n-e)/o}}else{t=this.flattenedSegments,n=this.flattenedLengths,o=this.flattenedTotalLength,i=he.alloc(),r=1/0,l=a=0,u=t.length;for(var p=f=0,x=0;x<u;x++)for(var N=t[x],R=n[x],_=N.length,V=0;V<_;V+=2){var xe=N[V],ue=N[V+1];if(V!==0){qe.qh(f,p,xe,ue,e.x,e.y,i);var Fe=(i.x-e.x)*(i.x-e.x)+(i.y-e.y)*(i.y-e.y);Fe<r&&(r=Fe,a=l,a+=Math.sqrt((i.x-f)*(i.x-f)+(i.y-p)*(i.y-p))),l+=R[(V-2)/2]}f=xe,p=ue}return he.free(i),e=a/o,0>e?0:1<e?1:e}return 0};function Xu(e){if(e.tk===null){var t=e.tk=[],n=e.ym=[],i=[],r=[];if(e.type===Dn.j)i.push(e.startX),i.push(e.startY),i.push(e.endX),i.push(e.endY),t.push(i),r.push(Math.sqrt((e.startX-e.endX)*(e.startX-e.endX)+(e.startY-e.endY)*(e.startY-e.endY))),n.push(r);else if(e.type===Dn.u)i.push(e.startX),i.push(e.startY),i.push(e.endX),i.push(e.startY),i.push(e.endX),i.push(e.endY),i.push(e.startX),i.push(e.endY),i.push(e.startX),i.push(e.startY),t.push(i),r.push(Math.abs(e.startX-e.endX)),r.push(Math.abs(e.startY-e.endY)),r.push(Math.abs(e.startX-e.endX)),r.push(Math.abs(e.startY-e.endY)),n.push(r);else if(e.type===Dn.F){var o=new Ca;o.startX=e.endX,o.startY=(e.startY+e.endY)/2;var a=new Dr(sa);if(a.startAngle=0,a.sweepAngle=360,a.centerX=(e.startX+e.endX)/2,a.centerY=(e.startY+e.endY)/2,a.radiusX=Math.abs(e.startX-e.endX)/2,a.radiusY=Math.abs(e.startY-e.endY)/2,o.add(a),e=fs(a,o),r=e.length,r===0)i.push(a.centerX),i.push(a.centerY);else{a=o.startX,o=o.startY;for(var l=0;l<r;l++){var u=e[l];qe.Qe(a,o,u[2],u[3],u[4],u[5],u[6],u[7],.5,i),a=u[6],o=u[7]}}t.push(i),n.push(Tu(i))}else for(e=e.figures.iterator;e.next();){r=e.value,i=[],i.push(r.startX),i.push(r.startY),a=r.startX,o=r.startY,l=a,u=o;for(var f=r.segments.s,p=f.length,x=0;x<p;x++){var N=f[x];switch(N.type){case Eo:4<=i.length&&(t.push(i),n.push(Tu(i))),i=[],i.push(N.endX),i.push(N.endY),a=N.endX,o=N.endY,l=a,u=o;break;case vo:i.push(N.endX),i.push(N.endY),a=N.endX,o=N.endY;break;case Wa:qe.Qe(a,o,N.point1X,N.point1Y,N.point2X,N.point2Y,N.endX,N.endY,.5,i),a=N.endX,o=N.endY;break;case js:qe.ep(a,o,N.point1X,N.point1Y,N.endX,N.endY,.5,i),a=N.endX,o=N.endY;break;case sa:var R=fs(N,r),_=R.length;if(_===0){i.push(N.centerX),i.push(N.centerY),a=N.centerX,o=N.centerY;break}for(var V=0;V<_;V++){var xe=R[V];qe.Qe(a,o,xe[2],xe[3],xe[4],xe[5],xe[6],xe[7],.5,i),a=xe[6],o=xe[7]}break;case Gs:if(R=as(N,r,a,o),_=R.length,V=N.endX,xe=N.endY,_===0){i.push(V),i.push(xe),a=V,o=xe;break}for(V=0;V<_;V++)xe=R[V],qe.Qe(a,o,xe[2],xe[3],xe[4],xe[5],xe[6],xe[7],.5,i),a=xe[6],o=xe[7];break;default:Ve("Segment not of valid type: "+N.type)}N.isClosed&&(i.push(l),i.push(u))}4<=i.length&&(t.push(i),n.push(Tu(i)))}}}function Tu(e){for(var t=[],n=0,i=0,r=e.length,o=0;o<r;o+=2){var a=e[o],l=e[o+1];o!==0&&t.push(Math.sqrt(Wr(n,i,a,l))),n=a,i=l}return t}U.add=function(e){return this.ee.add(e),this},U.pm=function(e,t,n,i,r,o,a,l){return this._isFrozen&&Ut(this),this.fg=new ai(e,t,r,o).freeze(),this.gg=new ai(n,i,a,l).freeze(),this},ht.Object.defineProperties(Dn.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(e){this.l=e?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(e){this.l=e?this.l|2:this.l&-3}},flattenedSegments:{get:function(){return Xu(this),this.tk}},flattenedLengths:{get:function(){return Xu(this),this.ym}},flattenedTotalLength:{get:function(){var e=this.zm;if(isNaN(e)){if(this.type===Dn.j){e=Math.abs(this.endX-this.startX);var t=Math.abs(this.endY-this.startY);e=Math.sqrt(e*e+t*t)}else if(this.type===Dn.u)e=2*Math.abs(this.endX-this.startX)+2*Math.abs(this.endY-this.startY);else{t=this.flattenedLengths;for(var n=t.length,i=e=0;i<n;i++)for(var r=t[i],o=r.length,a=0;a<o;a++)e+=r[a]}this.zm=e}return e}},type:{get:function(){return this.na},set:function(e){this.na!==e&&(this._isFrozen&&Ut(this,e),this.na=e,e===Dn.o?this.ee=new qt:(Dn.V===null&&(Dn.V=new qt().freeze()),this.ee=Dn.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(e){this.od!==e&&(this._isFrozen&&Ut(this,e),this.od=e,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(e){this.pd!==e&&(this._isFrozen&&Ut(this,e),this.pd=e,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(e){this.Dc!==e&&(this._isFrozen&&Ut(this,e),this.Dc=e,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(e){this.Ec!==e&&(this._isFrozen&&Ut(this,e),this.Ec=e,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(e){this.ee!==e&&(this._isFrozen&&Ut(this,e),this.ee=e,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(e){this._isFrozen&&Ut(this,e),this.fg=e.J()}},spot2:{get:function(){return this.gg},set:function(e){this._isFrozen&&Ut(this,e),this.gg=e.J()}},defaultStretch:{get:function(){return this.Uf},set:function(e){this._isFrozen&&Ut(this,e),this.Uf=e}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),Dn.prototype.setSpots=Dn.prototype.pm,Dn.prototype.add=Dn.prototype.add,Dn.prototype.getFractionForPoint=Dn.prototype.xx,Dn.prototype.getPointAndAngleAlongPath=Dn.prototype.Qu,Dn.prototype.getAngleAlongPath=Dn.prototype.wx,Dn.prototype.getPointAlongPath=Dn.prototype.Pu,Dn.prototype.containsPoint=Dn.prototype.ca,Dn.prototype.transform=Dn.prototype.transform,Dn.prototype.rotate=Dn.prototype.rotate,Dn.prototype.scale=Dn.prototype.scale,Dn.prototype.offset=Dn.prototype.offset,Dn.prototype.normalize=Dn.prototype.normalize,Dn.prototype.computeBoundsWithoutOrigin=Dn.prototype.ix,Dn.prototype.equalsApprox=Dn.prototype.Xa,Dn.className="Geometry",Dn.j=new Yt(Dn,"Line",0),Dn.u=new Yt(Dn,"Rectangle",1),Dn.F=new Yt(Dn,"Ellipse",2),Dn.o=new Yt(Dn,"Path",3),Dn.V=null,Dn.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",Dn.className="Geometry",Dn.stringify=Dn.ia,Dn.fillPath=Dn.nb,Dn.parse=Dn.parse,Dn.Line=Dn.j,Dn.Rectangle=Dn.u,Dn.Ellipse=Dn.F,Dn.Path=Dn.o;function Ca(e,t,n,i,r){Li(this),n===void 0&&(n=!0),i===void 0&&(i=!0),r===void 0&&(r=!1),this.l=2|(n?4:0)|(i?8:0)|(r?16:0),e!==void 0?this.od=e:this.od=0,t!==void 0?this.pd=t:this.pd=0,this.pl=new qt,this.sr=this.pl.Ja,this.fw=null}Ca.prototype.copy=function(){var e=new Ca;e.l=this.l&-2,e.od=this.od,e.pd=this.pd;for(var t=this.pl.s,n=t.length,i=e.pl,r=0;r<n;r++){var o=t[r].copy();i.add(o)}return e.sr=this.sr,e.fw=this.fw,e},U=Ca.prototype,U.Xa=function(e){if(!(e instanceof Ca&&qe.B(this.startX,e.startX)&&qe.B(this.startY,e.startY)))return!1;var t=this.segments.s;e=e.segments.s;var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(!t[i].Xa(e[i]))return!1;return!0},U.toString=function(e){e===void 0&&(e=-1);for(var t=0>e?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(e)+" "+this.startY.toFixed(e),n=this.segments.s,i=n.length,r=0;r<i;r++)t+=" "+n[r].toString(e);return t},U.freeze=function(){this._isFrozen=!0;var e=this.segments;e.freeze();var t=e.s;e=e.length;for(var n=0;n<e;n++)t[n].freeze();return this},U.ka=function(){this._isFrozen=!1;var e=this.segments;e.ka(),e=e.s;for(var t=e.length,n=0;n<t;n++)e[n].ka();return this},U.Zu=function(){if(this._isInvalidBounds)return!0;var e=this.segments;if(this.sr!==e.Ja)return!0;e=e.s;for(var t=e.length,n=0;n<t;n++)if(e[n]._isInvalidBounds)return!0;return!1},U.add=function(e){return this.pl.add(e),this},U.ca=function(e,t,n){for(var i=this.startX,r=this.startY,o=i,a=r,l=this.segments.s,u=l.length,f=0;f<u;f++){var p=l[f];switch(p.type){case Eo:o=p.endX,a=p.endY,i=p.endX,r=p.endY;break;case vo:if(qe.Yb(i,r,p.endX,p.endY,n,e,t))return!0;i=p.endX,r=p.endY;break;case Wa:if(qe.cs(i,r,p.point1X,p.point1Y,p.point2X,p.point2Y,p.endX,p.endY,.5,e,t,n))return!0;i=p.endX,r=p.endY;break;case js:if(qe.jv(i,r,p.point1X,p.point1Y,p.endX,p.endY,.5,e,t,n))return!0;i=p.endX,r=p.endY;break;case sa:case Gs:var x=p.type===sa?fs(p,this):as(p,this,i,r),N=x.length,R=p.type===sa?p.centerX:p.endX,_=p.type===sa?p.centerY:p.endY;if(N===0){if(qe.Yb(i,r,R,_,n,e,t))return!0;i=R,r=_;break}for(R=null,_=0;_<N;_++)if(R=x[_],_===0&&qe.Yb(i,r,R[0],R[1],n,e,t)||qe.cs(R[0],R[1],R[2],R[3],R[4],R[5],R[6],R[7],.5,e,t,n))return!0;R!==null&&(i=R[6],r=R[7]);break;default:Ve("Unknown Segment type: "+p.type)}if(p.isClosed&&(i!==o||r!==a)&&qe.Yb(i,r,o,a,n,e,t))return!0}return!1},ht.Object.defineProperties(Ca.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(e){this.l=e?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(e){this.l=e?this.l|2:this.l&-3}},isFilled:{get:function(){return(this.l&4)!==0},set:function(e){this._isFrozen&&Ut(this,e),this.l=e?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(e){this._isFrozen&&Ut(this,e),this.l=e?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(e){this._isFrozen&&Ut(this,e),this.l=e?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(e){this._isFrozen&&Ut(this,e),this.od=e,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(e){this._isFrozen&&Ut(this,e),this.pd=e,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(e){this._isFrozen&&Ut(this,e),this.pl=e,this._isInvalidBounds=!0}}}),Ca.prototype.add=Ca.prototype.add,Ca.prototype.equalsApprox=Ca.prototype.Xa,Ca.className="PathFigure";function Dr(e,t,n,i,r,o,a,l){Li(this),e===void 0&&(e=vo),this.na=e,this.l=2,t!==void 0?this.Dc=t:this.Dc=0,n!==void 0?this.Ec=n:this.Ec=0,i===void 0&&(i=0),r===void 0&&(r=0),o===void 0&&(o=0),a===void 0&&(a=0),e===Gs?(e=o%360,0>e&&(e+=360),this.Ne=e,this.Vh=0,this.Wh=Math.max(i,0),this.Pg=Math.max(r,0),typeof a=="boolean"?a&&(this.isLargeArc=!0):typeof a=="number"&&a&&(this.isLargeArc=!0),l&&(this.isClockwiseArc=!0)):(this.Ne=i,this.Vh=r,e===sa&&(o=Math.max(o,0)),this.Wh=o,typeof a=="number"?(e===sa&&(a=Math.max(a,0)),this.Pg=a):this.Pg=0),this.ae=null}Dr.prototype.copy=function(){var e=new Dr;return e.na=this.na,e.l=this.l&-2,e.Dc=this.Dc,e.Ec=this.Ec,e.Ne=this.Ne,e.Vh=this.Vh,e.Wh=this.Wh,e.Pg=this.Pg,e},U=Dr.prototype,U.Xa=function(e){if(!(e instanceof Dr)||this.type!==e.type||this.isClosed!==e.isClosed)return!1;switch(this.type){case Eo:case vo:return qe.B(this.endX,e.endX)&&qe.B(this.endY,e.endY);case Wa:return qe.B(this.endX,e.endX)&&qe.B(this.endY,e.endY)&&qe.B(this.point1X,e.point1X)&&qe.B(this.point1Y,e.point1Y)&&qe.B(this.point2X,e.point2X)&&qe.B(this.point2Y,e.point2Y);case js:return qe.B(this.endX,e.endX)&&qe.B(this.endY,e.endY)&&qe.B(this.point1X,e.point1X)&&qe.B(this.point1Y,e.point1Y);case sa:return qe.B(this.startAngle,e.startAngle)&&qe.B(this.sweepAngle,e.sweepAngle)&&qe.B(this.centerX,e.centerX)&&qe.B(this.centerY,e.centerY)&&qe.B(this.radiusX,e.radiusX)&&qe.B(this.radiusY,e.radiusY);case Gs:return this.isClockwiseArc===e.isClockwiseArc&&this.isLargeArc===e.isLargeArc&&qe.B(this.xAxisRotation,e.xAxisRotation)&&qe.B(this.endX,e.endX)&&qe.B(this.endY,e.endY)&&qe.B(this.radiusX,e.radiusX)&&qe.B(this.radiusY,e.radiusY);default:return!1}},U.qb=function(e){e.classType===Dr&&(this.type=e)},U.toString=function(e){switch(e===void 0&&(e=-1),this.type){case Eo:e=0>e?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(e)+" "+this.endY.toFixed(e);break;case vo:e=0>e?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(e)+" "+this.endY.toFixed(e);break;case Wa:e=0>e?"C"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.point2X.toString()+" "+this.point2Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"C"+this.point1X.toFixed(e)+" "+this.point1Y.toFixed(e)+" "+this.point2X.toFixed(e)+" "+this.point2Y.toFixed(e)+" "+this.endX.toFixed(e)+" "+this.endY.toFixed(e);break;case js:e=0>e?"Q"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"Q"+this.point1X.toFixed(e)+" "+this.point1Y.toFixed(e)+" "+this.endX.toFixed(e)+" "+this.endY.toFixed(e);break;case sa:e=0>e?"B"+this.startAngle.toString()+" "+this.sweepAngle.toString()+" "+this.centerX.toString()+" "+this.centerY.toString()+" "+this.radiusX.toString()+" "+this.radiusY.toString():"B"+this.startAngle.toFixed(e)+" "+this.sweepAngle.toFixed(e)+" "+this.centerX.toFixed(e)+" "+this.centerY.toFixed(e)+" "+this.radiusX.toFixed(e)+" "+this.radiusY.toFixed(e);break;case Gs:e=0>e?"A"+this.radiusX.toString()+" "+this.radiusY.toString()+" "+this.xAxisRotation.toString()+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toString()+" "+this.endY.toString():"A"+this.radiusX.toFixed(e)+" "+this.radiusY.toFixed(e)+" "+this.xAxisRotation.toFixed(e)+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toFixed(e)+" "+this.endY.toFixed(e);break;default:e=this.type.toString()}return e+(this.isClosed?"z":"")},U.freeze=function(){return this._isFrozen=!0,this},U.ka=function(){return this._isFrozen=!1,this},U.close=function(){return this.isClosed=!0,this};function fs(e,t){if(e.ae!==null&&t._isInvalidBounds===!1)return e.ae;var n=e.radiusX,i=e.radiusY;if(i===void 0&&(i=n),n===0||i===0)return e.ae=[],e.ae;t=e.Ne;var r=e.Vh,o=qe.jx(0,0,n<i?n:i,e.startAngle,e.startAngle+e.sweepAngle,!1);if(n!==i){var a=nr.alloc();a.reset(),n<i?a.scale(1,i/n):a.scale(n/i,1),Dn.Ha(o,a),nr.free(a)}for(n=o.length,i=0;i<n;i++)a=o[i],a[0]+=t,a[1]+=r,a[2]+=t,a[3]+=r,a[4]+=t,a[5]+=r,a[6]+=t,a[7]+=r;return e.ae=o,e.ae}function as(e,t,n,i){function r(V,xe,ue,Fe){return(V*Fe<xe*ue?-1:1)*Math.acos((V*ue+xe*Fe)/(Math.sqrt(V*V+xe*xe)*Math.sqrt(ue*ue+Fe*Fe)))}if(e.ae!==null&&t._isInvalidBounds===!1)return e.ae;if(e.radiusX===0||e.radiusY===0)return e.ae=[],e.ae;t=e.Wh;var o=e.Pg;t===0&&(t=1e-4),o===0&&(o=1e-4);var a=Math.PI/180*e.Ne,l=e.isLargeArc,u=e.isClockwiseArc,f=e.Dc,p=e.Ec,x=Math.cos(a),N=Math.sin(a),R=x*(n-f)/2+N*(i-p)/2;a=-N*(n-f)/2+x*(i-p)/2;var _=R*R/(t*t)+a*a/(o*o);return 1<_&&(t*=Math.sqrt(_),o*=Math.sqrt(_)),_=(l===u?-1:1)*Math.sqrt((t*t*o*o-t*t*a*a-o*o*R*R)/(t*t*a*a+o*o*R*R)),isNaN(_)&&(_=0),l=_*t*a/o,_=_*-o*R/t,isNaN(l)&&(l=0),isNaN(_)&&(_=0),n=(n+f)/2+x*l-N*_,i=(i+p)/2+N*l+x*_,p=r(1,0,(R-l)/t,(a-_)/o),x=(R-l)/t,f=(a-_)/o,R=(-R-l)/t,l=(-a-_)/o,a=r(x,f,R,l),R=(x*R+f*l)/(Math.sqrt(x*x+f*f)*Math.sqrt(R*R+l*l)),-1>=R?a=Math.PI:1<=R&&(a=0),!u&&0<a&&(a-=2*Math.PI),u&&0>a&&(a+=2*Math.PI),u=t>o?1:t/o,R=t>o?o/t:1,t=qe.jx(0,0,t>o?t:o,p,p+a,!0),o=nr.alloc(),o.reset(),o.translate(n,i),o.rotate(e.Ne,0,0),o.scale(u,R),Dn.Ha(t,o),nr.free(o),e.ae=t,e.ae}ht.Object.defineProperties(Dr.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(e){this.l=e?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(e){this.l=e?this.l|2:this.l&-3}},isClosed:{get:function(){return(this.l&8)!==0},set:function(e){this.isClosed!==e&&(this.l=e?this.l|8:this.l&-9,this._isInvalidBounds=!0)}},type:{get:function(){return this.na},set:function(e){this._isFrozen&&Ut(this,e),this.na=e,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(e){this._isFrozen&&Ut(this,e),this.Dc=e,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(e){this._isFrozen&&Ut(this,e),this.Ec=e,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(e){this._isFrozen&&Ut(this,e),this.Ne=e,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(e){this._isFrozen&&Ut(this,e),this.Vh=e,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(e){this._isFrozen&&Ut(this,e),this.Wh=e,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(e){this._isFrozen&&Ut(this,e),this.Pg=e,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(e){this._isFrozen&&Ut(this,e),this.Ne=e,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(e){this._isFrozen&&Ut(this,e),this.Vh=e,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(e){0>e&&Lt(e,">= zero",Dr,"radiusX"),this._isFrozen&&Ut(this,e),this.Wh=e,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(e){0>e&&Lt(e,">= zero",Dr,"radiusY"),this._isFrozen&&Ut(this,e),this.Pg=e,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(e){this._isFrozen&&Ut(this,e),e%=360,0>e&&(e+=360),this.Dc=e,this._isInvalidBounds=!0}},sweepAngle:{get:function(){return this.Ec},set:function(e){this._isFrozen&&Ut(this,e),360<e&&(e=360),-360>e&&(e=-360),this.Ec=e,this._isInvalidBounds=!0}},isClockwiseArc:{get:function(){return(this.l&4)!==0},set:function(e){this._isFrozen&&Ut(this,e),this.l=e?this.l|4:this.l&-5,this._isInvalidBounds=!0}},isLargeArc:{get:function(){return(this.l&16)!==0},set:function(e){this._isFrozen&&Ut(this,e),this.l=e?this.l|16:this.l&-17,this._isInvalidBounds=!0}},xAxisRotation:{get:function(){return this.Ne},set:function(e){this._isFrozen&&Ut(this,e),e%=360,0>e&&(e+=360),this.Ne=e,this._isInvalidBounds=!0}}}),Dr.prototype.equalsApprox=Dr.prototype.Xa;var Eo=new Yt(Dr,"Move",0),vo=new Yt(Dr,"Line",1),Wa=new Yt(Dr,"Bezier",2),js=new Yt(Dr,"QuadraticBezier",3),sa=new Yt(Dr,"Arc",4),Gs=new Yt(Dr,"SvgArc",4);Dr.className="PathSegment",Dr.Move=Eo,Dr.Line=vo,Dr.Bezier=Wa,Dr.QuadraticBezier=js,Dr.Arc=sa,Dr.SvgArc=Gs;function Va(){this.H=null,this.xu=new he(0,0).freeze(),this.mt=new he(0,0).freeze(),this.Bp=this.Rq=0,this.Cp=1,this.xq="",this.Wr=this.Tp=!1,this.Rp=this.Ep=0,this.xg=this.nq=this.tq=!1,this.Zp=null,this.Rr=0,this.xd=this.Nr=null}Va.prototype.copy=function(){var e=new Va;return this.clone(e)},Va.prototype.clone=function(e){return e.H=this.H,e.xu.assign(this.viewPoint),e.mt.assign(this.documentPoint),e.Rq=this.Rq,e.Bp=this.Bp,e.Cp=this.Cp,e.xq=this.xq,e.Tp=this.Tp,e.Wr=this.Wr,e.Ep=this.Ep,e.Rp=this.Rp,e.tq=this.tq,e.nq=this.nq,e.xg=this.xg,e.Zp=this.Zp,e.Rr=this.Rr,e.Nr=this.Nr,e.xd=this.xd,e},Va.prototype.toString=function(){var e="^";return this.modifiers!==0&&(e+="M:"+this.modifiers),this.button!==0&&(e+="B:"+this.button),this.key!==""&&(e+="K:"+this.key),this.clickCount!==0&&(e+="C:"+this.clickCount),this.delta!==0&&(e+="D:"+this.delta),this.handled&&(e+="h"),this.bubbles&&(e+="b"),this.documentPoint!==null&&(e+="@"+this.documentPoint.toString()),e},Va.prototype.So=function(e,t){var n=this.diagram;return n===null||ec(n,e,t),t},Va.prototype.Bz=function(e,t){var n=this.diagram;return n===null||(ec(n,e,t),t.assign(n.Ps(t))),t},ht.Object.defineProperties(Va.prototype,{diagram:{get:function(){return this.H},set:function(e){this.H=e}},viewPoint:{get:function(){return this.xu},set:function(e){this.xu.assign(e)}},documentPoint:{get:function(){return this.mt},set:function(e){this.mt.assign(e)}},modifiers:{get:function(){return this.Rq},set:function(e){this.Rq=e}},button:{get:function(){return this.Bp},set:function(e){if(this.Bp=e,this.event===null)switch(e){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2}}},buttons:{get:function(){return this.Cp},set:function(e){this.Cp=e}},key:{get:function(){return this.xq},set:function(e){this.xq=e}},down:{get:function(){return this.Tp},set:function(e){this.Tp=e}},up:{get:function(){return this.Wr},set:function(e){this.Wr=e}},clickCount:{get:function(){return this.Ep},set:function(e){this.Ep=e}},delta:{get:function(){return this.Rp},set:function(e){this.Rp=e}},isMultiTouch:{get:function(){return this.tq},set:function(e){this.tq=e}},handled:{get:function(){return this.nq},set:function(e){this.nq=e}},bubbles:{get:function(){return this.xg},set:function(e){this.xg=e}},event:{get:function(){return this.Zp},set:function(e){this.Zp=e}},isTouchEvent:{get:function(){var e=this.event;return e===null?!1:e.pointerType==="touch"||e.pointerType==="pen"}},timestamp:{get:function(){return this.Rr},set:function(e){this.Rr=e}},targetDiagram:{get:function(){return this.Nr},set:function(e){this.Nr=e}},targetObject:{get:function(){return this.xd},set:function(e){this.xd=e}},control:{get:function(){return(this.modifiers&1)!==0},set:function(e){this.modifiers=e?this.modifiers|1:this.modifiers&-2}},shift:{get:function(){return(this.modifiers&4)!==0},set:function(e){this.modifiers=e?this.modifiers|4:this.modifiers&-5}},alt:{get:function(){return(this.modifiers&2)!==0},set:function(e){this.modifiers=e?this.modifiers|2:this.modifiers&-3}},meta:{get:function(){return(this.modifiers&8)!==0},set:function(e){this.modifiers=e?this.modifiers|8:this.modifiers&-9}},left:{get:function(){var e=this.event;return e===null||e.type!=="mousedown"&&e.type!=="mouseup"&&e.type!=="pointerdown"&&e.type!=="pointerup"?(this.buttons&1)!==0:this.button===0},set:function(e){this.buttons=e?this.buttons|1:this.buttons&-2}},right:{get:function(){var e=this.event;return e===null||e.type!=="mousedown"&&e.type!=="mouseup"&&e.type!=="pointerdown"&&e.type!=="pointerup"?(this.buttons&2)!==0:this.button===2},set:function(e){this.buttons=e?this.buttons|2:this.buttons&-3}},middle:{get:function(){var e=this.event;return e===null||e.type!=="mousedown"&&e.type!=="mouseup"&&e.type!=="pointerdown"&&e.type!=="pointerup"?(this.buttons&4)!==0:this.button===1},set:function(e){this.buttons=e?this.buttons|4:this.buttons&-5}}}),Va.prototype.getMultiTouchDocumentPoint=Va.prototype.Bz,Va.prototype.getMultiTouchViewPoint=Va.prototype.So,Va.className="InputEvent";function eu(){this.H=null,this.xa="",this.ar=this.Lr=null}eu.prototype.copy=function(){var e=new eu;return e.H=this.H,e.xa=this.xa,e.Lr=this.Lr,e.ar=this.ar,e},eu.prototype.toString=function(){var e="*"+this.name;return this.subject!==null&&(e+=":"+this.subject.toString()),this.parameter!==null&&(e+="("+this.parameter.toString()+")"),e},ht.Object.defineProperties(eu.prototype,{diagram:{get:function(){return this.H},set:function(e){this.H=e}},name:{get:function(){return this.xa},set:function(e){this.xa=e}},subject:{get:function(){return this.Lr},set:function(e){this.Lr=e}},parameter:{get:function(){return this.ar},set:function(e){this.ar=e}}}),eu.className="DiagramEvent";function Ro(){this.Fm=So,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}Ro.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},Ro.prototype.copy=function(){var e=new Ro;e.Fm=this.Fm,e.Qq=this.Qq,e.rf=this.rf,e.cc=this.cc,e.H=this.H,e.Qn=this.Qn;var t=this.Sn;return e.Sn=ot(t)&&typeof t.J=="function"?t.J():t,t=this.Rn,e.Rn=ot(t)&&typeof t.J=="function"?t.J():t,t=this.Mn,e.Mn=ot(t)&&typeof t.J=="function"?t.J():t,t=this.Ln,e.Ln=ot(t)&&typeof t.J=="function"?t.J():t,e},Ro.prototype.qb=function(e){e.classType===Ro&&(this.change=e)},Ro.prototype.toString=function(){var e="";return e=this.change===vs?e+"* ":this.change===So?e+(this.model!==null?"!m":"!d"):e+((this.model!==null?"!m":"!d")+this.change),this.propertyName&&typeof this.propertyName=="string"&&(e+=" "+this.propertyName),this.modelChange&&this.modelChange!==this.propertyName&&(e+=" "+this.modelChange),e+=": ",this.change===vs?this.oldValue!==null&&(e+=" "+this.oldValue):(this.object!==null&&(e+=xn(this.object)),this.oldValue!==null&&(e+=" old: "+xn(this.oldValue)),this.oldParam!==null&&(e+=" "+this.oldParam),this.newValue!==null&&(e+=" new: "+xn(this.newValue)),this.newParam!==null&&(e+=" "+this.newParam)),e},Ro.prototype.I=function(e){return e?this.oldValue:this.newValue},Ro.prototype.Dz=function(e){return e?this.oldParam:this.newParam},Ro.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},Ro.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},Ro.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},Ro.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},ht.Object.defineProperties(Ro.prototype,{model:{get:function(){return this.cc},set:function(e){this.cc=e}},diagram:{get:function(){return this.H},set:function(e){this.H=e}},change:{get:function(){return this.Fm},set:function(e){this.Fm=e}},modelChange:{get:function(){return this.Qq},set:function(e){this.Qq=e}},propertyName:{get:function(){return this.rf},set:function(e){this.rf=e}},isTransactionFinished:{get:function(){return this.Fm===vs&&(this.rf==="CommittedTransaction"||this.rf==="FinishedUndo"||this.rf==="FinishedRedo")}},object:{get:function(){return this.Qn},set:function(e){this.Qn=e}},oldValue:{get:function(){return this.Sn},set:function(e){this.Sn=e}},oldParam:{get:function(){return this.Rn},set:function(e){this.Rn=e}},newValue:{get:function(){return this.Mn},set:function(e){this.Mn=e}},newParam:{get:function(){return this.Ln},set:function(e){this.Ln=e}}}),Ro.prototype.redo=Ro.prototype.redo,Ro.prototype.canRedo=Ro.prototype.canRedo,Ro.prototype.undo=Ro.prototype.undo,Ro.prototype.canUndo=Ro.prototype.canUndo,Ro.prototype.getParam=Ro.prototype.Dz,Ro.prototype.getValue=Ro.prototype.I,Ro.prototype.clear=Ro.prototype.clear;var vs=new Yt(Ro,"Transaction",-1),So=new Yt(Ro,"Property",0),Ko=new Yt(Ro,"Insert",1),la=new Yt(Ro,"Remove",2);Ro.className="ChangedEvent",Ro.Transaction=vs,Ro.Property=So,Ro.Insert=Ko,Ro.Remove=la;function La(){this.o=new qt().freeze(),this.xa="",this.j=!1}La.prototype.toString=function(e){var t="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(e!==void 0&&0<e){e=this.changes.count;for(var n=0;n<e;n++){var i=this.changes.M(n);i!==null&&(t+=`
`+i.toString())}}return t},La.prototype.clear=function(){var e=this.changes;e.ka();for(var t=e.count-1;0<=t;t--){var n=e.M(t);n!==null&&n.clear()}e.clear(),e.freeze()},La.prototype.canUndo=function(){return this.isComplete},La.prototype.undo=function(){if(this.canUndo())for(var e=this.changes.count-1;0<=e;e--){var t=this.changes.M(e);t!==null&&t.undo()}},La.prototype.canRedo=function(){return this.isComplete},La.prototype.redo=function(){if(this.canRedo())for(var e=this.changes.count,t=0;t<e;t++){var n=this.changes.M(t);n!==null&&n.redo()}},La.prototype.ak=function(){if(this.isComplete){var e=this.changes;e.ka();for(var t=new Zn,n=0;n<e.count;n++){var i=e.M(n);if(i!==null&&i.change===So&&i.object){var r=t.get(i.object);r||(r=new Zn,t.set(i.object,r));var o=r.get(i.propertyName);o===null?r.set(i.propertyName,-1):(0<o&&e.cd(o,null),r.set(i.propertyName,n))}}for(n=t=0;n<e.count;n++)i=e.M(n),i!==null&&(n>t&&e.cd(t,i),t++);for(;e.length>t;)e.pop();e.freeze()}},ht.Object.defineProperties(La.prototype,{changes:{get:function(){return this.o}},name:{get:function(){return this.xa},set:function(e){this.xa=e}},isComplete:{get:function(){return this.j},set:function(e){this.j=e}}}),La.prototype.optimize=La.prototype.ak,La.prototype.redo=La.prototype.redo,La.prototype.canRedo=La.prototype.canRedo,La.prototype.undo=La.prototype.undo,La.prototype.canUndo=La.prototype.canUndo,La.prototype.clear=La.prototype.clear,La.className="Transaction";function yo(){this.Pt=new Xt,this.Jd=!1,this.u=new qt().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new qt().freeze(),this.hl=new qt,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}yo.prototype.toString=function(e){var t="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;t+="[";for(var n=this.nestedTransactionNames.count,i=0;i<n;i++)0<i&&(t+=" "),t+=this.nestedTransactionNames.M(i);if(t+="]",e!==void 0&&0<e)for(n=this.history.count,i=0;i<n;i++)t+=`
`+this.history.M(i).toString(e-1);return t},yo.prototype.clear=function(){var e=this.history;e.ka();for(var t=e.count-1;0<=t;t--){var n=e.M(t);n!==null&&n.clear()}e.clear(),this.Ce=-1,e.freeze(),this.Fe=!1,this.Np=null,this.bi=0,this.Ie.ka(),this.Ie.clear(),this.Ie.freeze(),this.hl.clear(),this.Dt=this.rq=this.Gt=this.Ft=!1},yo.prototype.copyProperties=function(e){this.isEnabled=e.isEnabled,this.maxHistoryLength=e.maxHistoryLength,this.checksTransactionLevel=e.checksTransactionLevel},U=yo.prototype,U.Xw=function(e){this.Pt.add(e)},U.Rx=function(e){this.Pt.remove(e)},U.Ea=function(e){if(e===void 0&&(e=""),e===null&&(e=""),this.isUndoingRedoing)return!1;this.tt===!0&&(this.tt=!1,this.bi++,this.isInternalTransaction||this.Ob("StartingFirstTransaction",e,this.currentTransaction),0<this.bi&&this.bi--),this.isEnabled&&(this.Ie.ka(),this.Ie.add(e),this.Ie.freeze(),this.currentTransaction===null?this.hl.add(0):this.hl.add(this.currentTransaction.changes.count)),this.bi++;var t=this.transactionLevel===1;return t&&(this.isInternalTransaction||this.Ob("StartedTransaction",e,this.currentTransaction)),t},U.eb=function(e){return e===void 0&&(e=""),fu(this,!0,e)},U.Kf=function(){return fu(this,!1,"")};function fu(e,t,n){if(e.isUndoingRedoing)return!1;e.checksTransactionLevel&&1>e.transactionLevel&&Wn("Ending transaction without having started a transaction: "+n);var i=e.transactionLevel===1,r=e.currentTransaction;i&&t&&(e.isInternalTransaction||e.Ob("CommittingTransaction",n,r));var o=0;if(0<e.transactionLevel&&(e.bi--,e.isEnabled)){var a=e.Ie.count;0<a&&(n===""&&(n=e.Ie.M(0)),e.Ie.ka(),e.Ie.mb(a-1),e.Ie.freeze()),a=e.hl.count,0<a&&(o=e.hl.M(a-1),e.hl.mb(a-1))}if(i){if(t)e.rq=!1,r===null&&n!==""&&(r=e.currentTransaction),e.isEnabled&&r!==null&&(r.isComplete||(r.isComplete=!0,r.name=n),e.lx(),t=e.history,t.ka(),i=e.maxHistoryLength,0<=i&&(i===0?t.clear():t.count>=i&&(o=t.M(0),o!==null&&o.clear(),t.mb(0),e.Ce--)),i===0||t.count!==0&&t.get(t.count-1)===r||(t.add(r),e.Ce++),t.freeze()),e.isInternalTransaction||e.Ob("CommittedTransaction",n,r);else{e.Fe=!0;try{e.isEnabled&&r!==null&&(r.isComplete=!0,r.undo())}finally{e.isInternalTransaction||e.Ob("RolledBackTransaction",n,r),e.Fe=!1}r!==null&&r.clear()}return e.Np=null,e.isPendingClear&&e.clear(),e.isPendingClear=!1,e.isPendingUnmodified=!1,!0}if(e.isEnabled&&!t&&r!==null){for(e=o,n=r.changes,r=n.count-1;r>=e;r--)t=n.M(r),t!==null&&t.undo(),n.ka(),n.mb(r);n.freeze()}return!1}U.lx=function(){if(!this.isUndoingRedoing&&this.canRedo()){var e=this.history;e.ka();for(var t=e.count-1;t>this.historyIndex;t--){var n=e.M(t);n!==null&&n.clear(),e.mb(t),this.rq=!0}e.freeze()}},yo.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var e=this.transactionToUndo;return!!(e!==null&&e.canUndo())},yo.prototype.undo=function(){if(this.canUndo()){var e=this.transactionToUndo;try{this.Fe=!0,this.Ob("StartingUndo","Undo",e),this.Ce--,e.undo()}catch(t){Wn("undo error: "+t.toString())}finally{this.Ob("FinishedUndo","Undo",e),this.Fe=!1}}},yo.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var e=this.transactionToRedo;return!!(e!==null&&e.canRedo())},yo.prototype.redo=function(){if(this.canRedo()){var e=this.transactionToRedo;try{this.Fe=!0,this.Ob("StartingRedo","Redo",e),this.Ce++,e.redo()}catch(t){Wn("redo error: "+t.toString())}finally{this.Ob("FinishedRedo","Redo",e),this.Fe=!1}}},yo.prototype.Ob=function(e,t,n){n===void 0&&(n=null);var i=new Ro;for(i.change=vs,i.propertyName=e,i.object=n,i.oldValue=t,e=this.models;e.next();)t=e.value,i.model=t,t.ds(i)},yo.prototype.Tu=function(e){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(e)){var t=this.currentTransaction;t===null&&(this.Np=t=new La);var n=e.copy();t=t.changes,t.ka(),t.add(n),t.freeze(),this.checksTransactionLevel&&0>=this.transactionLevel&&!this.tt&&(e=e.diagram,e!==null&&e.pi===!1||Wn("Change not within a transaction: "+n.toString()))}},yo.prototype.skipsEvent=function(e){if(e===null||0>e.change.value)return!0;if(e=e.object,e===null)return!1;if(e.layer!==void 0){if(e=e.layer,e!==null&&e.isTemporary)return!0}else if(e.isTemporary)return!0;return!1},ht.Object.defineProperties(yo.prototype,{models:{get:function(){return this.Pt.iterator}},isEnabled:{get:function(){return this.Jd},set:function(e){this.Jd=e}},transactionToUndo:{get:function(){return 0<=this.historyIndex&&this.historyIndex<=this.history.count-1?this.history.M(this.historyIndex):null}},transactionToRedo:{get:function(){return this.historyIndex<this.history.count-1?this.history.M(this.historyIndex+1):null}},isUndoingRedoing:{get:function(){return this.Fe}},history:{get:function(){return this.u}},maxHistoryLength:{get:function(){return this.o},set:function(e){this.o=e}},historyIndex:{get:function(){return this.Ce}},currentTransaction:{get:function(){return this.Np}},transactionLevel:{get:function(){return this.bi}},isInTransaction:{get:function(){return 0<this.bi}},checksTransactionLevel:{get:function(){return this.j},set:function(e){this.j=e}},nestedTransactionNames:{get:function(){return this.Ie}},isPendingClear:{get:function(){return this.Ft},set:function(e){this.Ft=e}},isPendingUnmodified:{get:function(){return this.Gt},set:function(e){this.Gt=e}},isInternalTransaction:{get:function(){return this.Dt},set:function(e){this.Dt=e}},isJustDiscarded:{get:function(){return this.rq}}}),yo.prototype.handleChanged=yo.prototype.Tu,yo.prototype.redo=yo.prototype.redo,yo.prototype.undo=yo.prototype.undo,yo.prototype.canUndo=yo.prototype.canUndo,yo.prototype.discardHistoryAfterIndex=yo.prototype.lx,yo.prototype.rollbackTransaction=yo.prototype.Kf,yo.prototype.commitTransaction=yo.prototype.eb,yo.prototype.startTransaction=yo.prototype.Ea,yo.prototype.removeModel=yo.prototype.Rx,yo.prototype.addModel=yo.prototype.Xw,yo.prototype.clear=yo.prototype.clear,yo.className="UndoManager";function Ir(){Li(this),this.H=ft,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new Va,this.Zr=-1}Ir.prototype.toString=function(){return this.name!==""?this.name+" Tool":mt(this.constructor)},Ir.prototype.updateAdornments=function(){},Ir.prototype.canStart=function(){return this.isEnabled},Ir.prototype.doStart=function(){},Ir.prototype.doActivate=function(){this.isActive=!0},Ir.prototype.doDeactivate=function(){this.isActive=!1},Ir.prototype.doStop=function(){},Ir.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},Ir.prototype.stopTool=function(){var e=this.diagram;e.currentTool===this&&(e.currentTool=null,e.currentCursor="")},Ir.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},Ir.prototype.doMouseMove=function(){},Ir.prototype.doMouseUp=function(){this.stopTool()},Ir.prototype.doMouseWheel=function(){},Ir.prototype.canStartMultiTouch=function(){return!0},Ir.prototype.standardPinchZoomStart=function(){var e=this.diagram,t=e.lastInput,n=t.So(0,he.allocAt(NaN,NaN)),i=t.So(1,he.allocAt(NaN,NaN));if(n.w()&&i.w()&&(this.doCancel(),e.Ql("hasGestureZoom"))){e.Bw=e.scale;var r=i.x-n.x,o=i.y-n.y;e.Jw=Math.sqrt(r*r+o*o),t.bubbles=!1}he.free(n),he.free(i)},Ir.prototype.standardPinchZoomMove=function(){var e=this.diagram,t=e.lastInput,n=t.So(0,he.allocAt(NaN,NaN)),i=t.So(1,he.allocAt(NaN,NaN));if(n.w()&&i.w()&&(this.doCancel(),e.Ql("hasGestureZoom"))){var r=i.x-n.x,o=i.y-n.y;o=Math.sqrt(r*r+o*o)/e.Jw,r=new he((Math.min(i.x,n.x)+Math.max(i.x,n.x))/2,(Math.min(i.y,n.y)+Math.max(i.y,n.y))/2),o*=e.Bw;var a=e.commandHandler;if(o!==e.scale&&a.canResetZoom(o)){var l=e.zoomPoint;e.zoomPoint=r,a.resetZoom(o),e.zoomPoint=l}t.bubbles=!1}he.free(n),he.free(i)},Ir.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},Ir.prototype.doKeyUp=function(){},Ir.prototype.Ea=function(e){return e===void 0&&(e=this.name),this.transactionResult=null,this.diagram.Ea(e)},Ir.prototype.stopTransaction=function(){var e=this.diagram;return this.transactionResult===null?e.Kf():e.eb(this.transactionResult)},Ir.prototype.standardMouseSelect=function(){var e=this.diagram;if(e.allowSelect){var t=e.lastInput,n=e.Ol(t.documentPoint,!1);if(n!==null){if(Mi?t.meta:t.control){for(e.R("ChangingSelection",e.selection),t=n;t!==null&&!t.canSelect();)t=t.containingGroup;t!==null&&(t.isSelected=!t.isSelected),e.R("ChangedSelection",e.selection)}else if(t.shift){if(!n.isSelected){for(e.R("ChangingSelection",e.selection),t=n;t!==null&&!t.canSelect();)t=t.containingGroup;t!==null&&(t.isSelected=!0),e.R("ChangedSelection",e.selection)}}else if(!n.isSelected){for(t=n;t!==null&&!t.canSelect();)t=t.containingGroup;t!==null&&e.select(t)}}else!t.left||(Mi?t.meta:t.control)||t.shift||e.clearSelection()}},Ir.prototype.standardMouseClick=function(e,t){e===void 0&&(e=null),t===void 0&&(t=function(r){return!r.layer.isTemporary});var n=this.diagram,i=n.lastInput;return e=n.ic(i.documentPoint,e,t),i.targetObject=e,dc(e,i,n),i.handled};function dc(e,t,n){if(t.handled=!1,e===null||e.If()){var i=0;t.left?i=t.clickCount===1?1:t.clickCount===2?2:1:t.right&&t.clickCount===1&&(i=3);var r="ObjectSingleClicked";if(e!==null){switch(i){case 1:r="ObjectSingleClicked";break;case 2:r="ObjectDoubleClicked";break;case 3:r="ObjectContextClicked"}i!==0&&n.R(r,e)}else{switch(i){case 1:r="BackgroundSingleClicked";break;case 2:r="BackgroundDoubleClicked";break;case 3:r="BackgroundContextClicked"}i!==0&&n.R(r)}if(e!==null)for(;e!==null;){switch(n=null,i){case 1:n=e.click;break;case 2:n=e.doubleClick?e.doubleClick:e.click;break;case 3:n=e.contextClick}if(n!==null&&(n(t,e),t.handled))break;e=e.panel}else{switch(e=null,i){case 1:e=n.click;break;case 2:e=n.doubleClick?n.doubleClick:n.click;break;case 3:e=n.contextClick}e!==null&&e(t)}}}Ir.prototype.standardMouseOver=function(){var e=this.diagram,t=e.lastInput;if(e.animationManager.zb!==!0){var n=e.skipsUndoManager;e.skipsUndoManager=!0;var i=e.viewportBounds.ca(t.documentPoint)?e.ic(t.documentPoint,null,null):null;!t.event||t.event.type!=="pointercancel"&&t.event.type!=="pointerout"||(i=null),t.targetObject=i;var r=!1;if(i!==e.Ck){var o=e.Ck,a=o;for(e.Ck=i,this.doCurrentObjectChanged(o,i),t.handled=!1;o!==null;){var l=o.mouseLeave;if(l!==null&&(i===o||i!==null&&i.rg(o)||(l(t,o,i),r=!0,t.handled)))break;o=o.panel}for(o=a,t.handled=!1;i!==null&&(a=i.mouseEnter,!(a!==null&&(o===i||o!==null&&o.rg(i)||(a(t,i,o),r=!0,t.handled))));)i=i.panel;i=e.Ck}if(i!==null){for(o=i,a="";o!==null&&(a=o.cursor,a==="");)o=o.panel;for(e.currentCursor=a,t.handled=!1,o=i;o!==null&&(i=o.mouseOver,!(i!==null&&(i(t,o),r=!0,t.handled)));)o=o.panel}else this.doUpdateCursor(null),i=e.mouseOver,i!==null&&(i(t),r=!0);r&&e.$b(),e.skipsUndoManager=n}},Ir.prototype.doUpdateCursor=function(){var e=this.diagram;e&&(e.currentCursor="")},Ir.prototype.doCurrentObjectChanged=function(){},Ir.prototype.standardMouseWheel=function(){var e=this.diagram,t=e.lastInput,n=t.delta;if(n!==0&&e.documentBounds.w()){var i=e.commandHandler,r=e.toolManager.mouseWheelBehavior;if(i!==null&&(r===tu&&!t.shift||r===Ju&&t.control))(0<n?i.canIncreaseZoom():i.canDecreaseZoom())&&(r=e.zoomPoint,e.zoomPoint=t.viewPoint,0<n?i.increaseZoom():i.decreaseZoom(),e.zoomPoint=r),t.bubbles=!1;else if(r===tu&&t.shift||r===Ju&&!t.control){i=e.position.copy();var o=t.event;r=o.deltaMode;var a=o.deltaX;o=o.deltaY;var l="pixel";if(a===0&&o===0||t.shift)!t.shift&&e.allowVerticalScroll?(n=3*n*e.scrollVerticalLineChange,e.scroll(l,0<n?"up":"down",Math.abs(n))):t.shift&&e.allowHorizontalScroll&&(n=3*n*e.scrollHorizontalLineChange,e.scroll(l,0<n?"left":"right",Math.abs(n)));else{switch(r){case 0:l="pixel";break;case 1:l="line";break;case 2:l="page"}a!==0&&e.allowHorizontalScroll&&(a*=e.scrollHorizontalLineChange/16,e.scroll(l,0<a?"right":"left",Math.abs(a))),o!==0&&e.allowVerticalScroll&&(o*=e.scrollVerticalLineChange/16,e.scroll(l,0<o?"down":"up",Math.abs(o)))}this.doWheelChange(e,i,t)}}},Ir.prototype.doWheelChange=function(e,t,n){e.position.D(t)&&n.event.wheelDeltaX===0||(n.bubbles=!1)},Ir.prototype.standardWaitAfter=function(e,t){t===void 0&&(t=this.diagram.lastInput),this.cancelWaitAfter();var n=this,i=t.clone(this.yy);this.Zr=on(function(){n.doWaitAfter(i)},e)},Ir.prototype.cancelWaitAfter=function(){this.Zr!==-1&&Ke.clearTimeout(this.Zr),this.Zr=-1},Ir.prototype.doWaitAfter=function(){},Ir.prototype.findToolHandleAt=function(e,t){return e=this.diagram.ic(e,function(n){for(;n!==null&&!(n.panel instanceof Zr);)n=n.panel;return n}),e===null?null:e.part.category===t?e:null},Ir.prototype.isBeyondDragSize=function(e,t){var n=this.diagram;e===void 0&&(e=n.firstInput.viewPoint),t===void 0&&(t=n.lastInput.viewPoint);var i=n.toolManager.dragSize,r=i.width;return i=i.height,n.firstInput.isTouchEvent&&(r+=6,i+=6),Math.abs(t.x-e.x)>r||Math.abs(t.y-e.y)>i},ht.Object.defineProperties(Ir.prototype,{diagram:{get:function(){return this.H},set:function(e){e instanceof Y&&(this.H=e)}},name:{get:function(){return this.xa},set:function(e){this.xa=e}},isEnabled:{get:function(){return this.Jd},set:function(e){this.Jd=e}},isActive:{get:function(){return this.nb},set:function(e){this.nb=e}},transactionResult:{get:function(){return this.wm},set:function(e){this.wm=e}}}),Ir.prototype.startTransaction=Ir.prototype.Ea,Ir.className="Tool";function Co(){Ir.call(this),this.name="ToolManager",this.hb=new qt,this.ob=new qt,this.Hb=new qt,this.F=this.V=850,this.o=new pi(2,2).ja(),this.Ha=5e3,this.ia=Ju,this.u=Uu,this.Mp=this.j=null,this.zj=-1}yi(Co,Ir),Co.prototype.initializeStandardTools=function(){},Co.prototype.updateAdornments=function(e){var t=this.currentToolTip;if(t instanceof Zr&&this.Mp===e){var n=t.adornedObject;(e!==null?n.part===e:n===null)?this.showToolTip(t,n):this.hideToolTip()}},Co.prototype.doMouseDown=function(){var e=this.diagram,t=e.lastInput;if(t.isTouchEvent&&this.gestureBehavior===vl&&(t.bubbles=!1),t.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===Zs){t.bubbles=!0;return}if(this.gestureBehavior===vl)return;if(e.currentTool.canStartMultiTouch()){e.currentTool.standardPinchZoomStart();return}}for(var n=this.mouseDownTools.length,i=0;i<n;i++){var r=this.mouseDownTools.M(i);if(r.diagram=this.diagram,r.canStart()){e.doFocus(),e.currentTool=r,e.currentTool===r&&(r.isActive||r.doActivate(),r.doMouseDown());return}}e.lastInput.button===1&&(this.mouseWheelBehavior===Ju?this.mouseWheelBehavior=tu:this.mouseWheelBehavior===tu&&(this.mouseWheelBehavior=Ju)),this.doActivate(),this.standardWaitAfter(this.holdDelay,t)},Co.prototype.doMouseMove=function(){var e=this.diagram,t=e.lastInput;if(t.isMultiTouch){if(this.gestureBehavior===Zs){t.bubbles=!0;return}if(this.gestureBehavior===vl)return;if(e.currentTool.canStartMultiTouch()){e.currentTool.standardPinchZoomMove();return}}if(this.isActive)for(var n=this.mouseMoveTools.length,i=0;i<n;i++){var r=this.mouseMoveTools.M(i);if(r.diagram=this.diagram,r.canStart()){e.doFocus(),e.currentTool=r,e.currentTool===r&&(r.isActive||r.doActivate(),r.doMouseMove());return}}Qu(this,e),e=t.event,e===null||e.type!=="pointermove"&&e.cancelable||(t.bubbles=!0)};function Qu(e,t){e.standardMouseOver(),e.isBeyondDragSize()&&e.standardWaitAfter(e.isActive?e.holdDelay:e.hoverDelay,t.lastInput)}Co.prototype.doCurrentObjectChanged=function(e,t){e=this.currentToolTip,e===null||t!==null&&e instanceof Zr&&(t===e||t.rg(e))||this.hideToolTip()},Co.prototype.doWaitAfter=function(e){var t=this.diagram;t.ta!==null&&(this.doMouseHover(),this.isActive||this.doToolTip(),e.isTouchEvent&&!t.lastInput.handled&&(e=e.copy(),e.button=2,e.buttons=2,t.lastInput=e,t.qu=!0,t.doMouseUp()))},Co.prototype.doMouseHover=function(){var e=this.diagram,t=e.lastInput;t.targetObject===null&&(t.targetObject=e.ic(t.documentPoint,null,null));var n=t.targetObject;if(n!==null)for(t.handled=!1;n!==null&&(e=this.isActive?n.mouseHold:n.mouseHover,!(e!==null&&(e(t,n),t.handled)));)n=n.panel;else n=this.isActive?e.mouseHold:e.mouseHover,n!==null&&n(t)},Co.prototype.doToolTip=function(){var e=this.diagram,t=e.lastInput;if(t.targetObject===null&&(t.targetObject=e.ic(t.documentPoint,null,null)),t=t.targetObject,t!==null){if(e=this.currentToolTip,!(e instanceof Zr)||t!==e&&!t.rg(e)){for(;t!==null;){if(e=t.toolTip,e!==null){this.showToolTip(e,t);return}t=t.panel}this.hideToolTip()}}else t=e.toolTip,t!==null?this.showToolTip(t,null):this.hideToolTip()},Co.prototype.showToolTip=function(e,t){var n=this.diagram;if(e!==this.currentToolTip&&this.hideToolTip(),e instanceof Zr){e.layerName="Tool",e.selectable=!1,e.scale=1/n.scale,e.category="ToolTip",e.placeholder!==null&&(e.placeholder.scale=n.scale);var i=e.diagram;i!==null&&i!==n&&i.remove(e),n.add(e),t!==null?e.adornedObject=t:e.data=n.model,e.Va(),this.positionToolTip(e,t)}else e instanceof ii&&e!==this.currentToolTip&&e.show(t,n,this);if(this.currentToolTip=e,this.zj!==-1&&(Ke.clearTimeout(this.zj),this.zj=-1),e=this.toolTipDuration,0<e&&e!==1/0){var r=this;this.zj=on(function(){r.hideToolTip()},e)}},Co.prototype.positionToolTip=function(e){if(e.placeholder===null){var t=this.diagram,n=t.lastInput.documentPoint.copy(),i=e.measuredBounds,r=t.viewportBounds;t.lastInput.isTouchEvent&&(n.x-=i.width),n.x+i.width>r.right&&(n.x-=i.width+5/t.scale),n.x<r.x&&(n.x=r.x),n.y=n.y+20/t.scale+i.height>r.bottom?n.y-(i.height+5/t.scale):n.y+20/t.scale,n.y<r.y&&(n.y=r.y),e.position=n}},Co.prototype.hideToolTip=function(){this.zj!==-1&&(Ke.clearTimeout(this.zj),this.zj=-1);var e=this.diagram,t=this.currentToolTip;t!==null&&(t instanceof Zr?(e.remove(t),this.Mp!==null&&this.Mp.Jf(t.category),t.data=null,t.adornedObject=null):t instanceof ii&&t.hide!==null&&t.hide(e,this),this.currentToolTip=null)},Co.prototype.doMouseUp=function(){this.cancelWaitAfter();var e=this.diagram;if(this.isActive)for(var t=this.mouseUpTools.length,n=0;n<t;n++){var i=this.mouseUpTools.M(n);if(i.diagram=this.diagram,i.canStart()){e.doFocus(),e.currentTool=i,e.currentTool===i&&(i.isActive||i.doActivate(),i.doMouseUp());return}}e.doFocus(),this.doDeactivate()},Co.prototype.doMouseWheel=function(){this.standardMouseWheel()},Co.prototype.doKeyDown=function(){var e=this.diagram;e.commandHandler!==null&&e.commandHandler.doKeyDown()},Co.prototype.doKeyUp=function(){var e=this.diagram;e.commandHandler!==null&&e.commandHandler.doKeyUp()},Co.prototype.findTool=function(e){for(var t=this.mouseDownTools.length,n=0;n<t;n++){var i=this.mouseDownTools.M(n);if(i.name===e)return i}for(t=this.mouseMoveTools.length,n=0;n<t;n++)if(i=this.mouseMoveTools.M(n),i.name===e)return i;for(t=this.mouseUpTools.length,n=0;n<t;n++)if(i=this.mouseUpTools.M(n),i.name===e)return i;return null},Co.prototype.replaceTool=function(e,t){t!==null&&(t.diagram=this.diagram);for(var n=this.mouseDownTools.length,i=0;i<n;i++){var r=this.mouseDownTools.M(i);if(r.name===e)return t!==null?this.mouseDownTools.cd(i,t):this.mouseDownTools.mb(i),r}for(n=this.mouseMoveTools.length,i=0;i<n;i++)if(r=this.mouseMoveTools.M(i),r.name===e)return t!==null?this.mouseMoveTools.cd(i,t):this.mouseMoveTools.mb(i),r;for(n=this.mouseUpTools.length,i=0;i<n;i++)if(r=this.mouseUpTools.M(i),r.name===e)return t!==null?this.mouseUpTools.cd(i,t):this.mouseUpTools.mb(i),r;return null},Co.prototype.gb=function(e,t,n){t!==null&&(t.name=e,t.diagram=this.diagram),this.findTool(e)?this.replaceTool(e,t):t!==null&&n.add(t)},ht.Object.defineProperties(Co.prototype,{mouseWheelBehavior:{get:function(){return this.ia},set:function(e){this.ia=e}},gestureBehavior:{get:function(){return this.u},set:function(e){this.u=e}},currentToolTip:{get:function(){return this.j},set:function(e){this.j=e,this.Mp=e!==null&&e instanceof Zr?e.adornedPart:null}},mouseDownTools:{get:function(){return this.hb}},mouseMoveTools:{get:function(){return this.ob}},mouseUpTools:{get:function(){return this.Hb}},hoverDelay:{get:function(){return this.V},set:function(e){this.V=e}},holdDelay:{get:function(){return this.F},set:function(e){this.F=e}},dragSize:{get:function(){return this.o},set:function(e){this.o=e.J()}},toolTipDuration:{get:function(){return this.Ha},set:function(e){this.Ha=e}}}),Co.prototype.replaceStandardTool=Co.prototype.gb;var Ju=new Yt(Co,"WheelScroll",0),tu=new Yt(Co,"WheelZoom",1),wc=new Yt(Co,"WheelNone",2),Uu=new Yt(Co,"GestureZoom",3),vl=new Yt(Co,"GestureCancel",4),Zs=new Yt(Co,"GestureNone",5);Co.className="ToolManager",Co.WheelScroll=Ju,Co.WheelZoom=tu,Co.WheelNone=wc,Co.GestureZoom=Uu,Co.GestureCancel=vl,Co.GestureNone=Zs;function Ao(){Ir.call(this),this.name="Dragging",this.u=this.Sw=this.ob=!0,this.o=this.Ha=this.V=this.Oe=null,this.Ym=this.Hb=!1,this.tl=new he(NaN,NaN),this.Fr=new he,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new Xt().freeze(),this.ia=new c,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Ls;yi(Ao,Ir),Ao.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;if(e.isReadOnly&&!e.allowDragOut||!e.allowMove&&!e.allowCopy&&!e.allowDragOut||!e.allowSelect)return!1;var t=e.lastInput;return!t.left||e.currentTool!==this&&(!this.isBeyondDragSize()||t.isTouchEvent&&t.timestamp-e.firstInput.timestamp<this.Ik)?!1:this.findDraggablePart()!==null},Ao.prototype.findDraggablePart=function(){var e=this.diagram;if(e=e.Ol(e.firstInput.documentPoint,!1),e===null)return null;for(;e!==null&&!e.canSelect();)e=e.containingGroup;return e!==null&&(e.canMove()||e.canCopy())?e:null},Ao.prototype.standardMouseSelect=function(){var e=this.diagram;if(e.allowSelect){var t=e.Ol(e.firstInput.documentPoint,!1);if(t!==null){for(;t!==null&&!t.canSelect();)t=t.containingGroup;this.currentPart=t,this.currentPart===null||this.currentPart.isSelected||(e.R("ChangingSelection",e.selection),t=e.lastInput,(Mi?t.meta:t.control)||t.shift||e.clearSelection(!0),this.currentPart.isSelected=!0,e.R("ChangedSelection",e.selection))}}},Ao.prototype.doActivate=function(){var e=this.diagram;this.Bn=null,this.currentPart===null&&this.standardMouseSelect();var t=this.currentPart;t!==null&&(t.canMove()||t.canCopy())&&(e.Fu(!0),xt=null,this.isActive=!0,this.tl.set(e.position),qu(this,e.selection),this.Cg.length=0,e.animationManager.Cc(),this.draggedParts=this.computeEffectiveCollection(e.selection,this.dragOptions),this.Sw=this.diagram.layout.isRealtime,this.diagram.layout.isRealtime=!1,e.Ns=!0,e.Gf("temporaryPixelRatio")===!0&&30<e.$w&&$i(e),_h(e,this.draggedParts),this.Ea("Drag"),this.startPoint=e.firstInput.documentPoint,e.isMouseCaptured=!0,e.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,xt=this,_t=this.diagram,this.doSimulatedDragOut()))};function qu(e,t){if(e.dragsLink){var n=e.diagram;n.allowRelink&&(n.model.Wj()&&t.count===1&&t.first()instanceof Pn?(e.draggedLink=t.first(),e.draggedLink.canRelinkFrom()&&e.draggedLink.canRelinkTo()&&e.draggedLink.Ej(),e.Oe=n.toolManager.findTool("Relinking"),e.Oe===null&&(e.Oe=new ti,e.Oe.diagram=n),e.Oe.originalLink=e.draggedLink):(e.draggedLink=null,e.Oe=null))}}Ao.prototype.computeEffectiveCollection=function(e,t){return this.diagram.commandHandler.computeEffectiveCollection(e,t)},Ao.prototype.Pd=function(e){return e===void 0?new Qc(gr):this.isGridSnapEnabled?new Qc(new he(Math.round(1e3*e.x)/1e3,Math.round(1e3*e.y)/1e3)):new Qc(e.copy())},Ao.prototype.doDeactivate=function(){this.isActive=!1;var e=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,e.Fu(!1),e.ug(),Dl(this),Tc(e,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<Ls.count){for(var t=Ls,n=t.length,i=0;i<n;i++){var r=t.M(i);pu(r),xl(r),Dl(r),r.diagram.ug()}t.clear()}pu(this),this.tl.h(NaN,NaN),_t!==null&&(_t.currentCursor=""),xt=_t=null,xl(this),e.isMouseCaptured=!1,e.currentCursor="",e.Ns=!1,this.stopTransaction(),Nr(e,!0)},Ao.prototype.stopTransaction=function(){var e=this.diagram,t=Ir.prototype.stopTransaction.call(this);return t&&e.undoManager.transactionToUndo!==null&&e.undoManager.transactionToUndo.ak(),t};function Dl(e){var t=e.diagram,n=t.skipsUndoManager;t.skipsUndoManager=!0,nu(e,t.lastInput,null),t.skipsUndoManager=n,e.Cg.length=0}function yl(){var e=xt;xl(e),Wl(e);var t=e.diagram;e.tl.w()&&(t.position=e.tl),t.ug()}Ao.prototype.doCancel=function(){xl(this),Wl(this);var e=this.diagram;this.tl.w()&&(e.position=this.tl),this.stopTool()},Ao.prototype.doKeyDown=function(){var e=this.diagram,t=e.lastInput;this.isActive&&(t.key==="Esc"?this.doCancel():t.key!==e.previousInput.key&&this.doMouseMove())},Ao.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function bl(e,t){if(e.copiedParts===null){var n=e.diagram;if((!t||!n.isReadOnly&&!n.isModelReadOnly)&&e.draggedParts!==null){var i=n.undoManager;for(i.isEnabled&&i.isInTransaction?i.currentTransaction!==null&&0<i.currentTransaction.changes.count&&(n.undoManager.Kf(),n.Ea("Drag")):Wl(e),n.skipsUndoManager=!t,n.partManager.addsToTemporaryLayer=!t,e.startPoint=n.firstInput.documentPoint,t=e.copiesEffectiveCollection?e.draggedParts.Lf():n.selection,t=n.Kj(t,n,!0),n=new Zn,i=e.draggedParts.iterator;i.next();){var r=i.key;if(r.Zc()&&r.canCopy()){var o=t.I(r);o!==null&&(o.location=r.location,o.Va(),n.add(o,e.Pd(o.location)))}}for(t=t.iterator;t.next();)i=t.value,i instanceof Pn&&i.canCopy()&&n.add(i,e.Pd());e.copiedParts=n,qu(e,n.Lf()),e.draggedLink!==null&&(n=e.draggedLink,t=n.routeBounds,Eh(n,e.startPoint.x-(t.x+t.width/2),e.startPoint.y-(t.y+t.height/2))),e.doUpdateCursor(null)}}}function xl(e){var t=e.diagram;if(e.copiedParts!==null){if(t.Is(e.copiedParts.Lf(),!1),e.copiedParts=null,e.draggedParts!==null)for(var n=e.draggedParts.iterator;n.next();)n.key instanceof Pn&&(n.value.point=new he(0,0));e.doUpdateCursor(null)}t.skipsUndoManager=!1,t.partManager.addsToTemporaryLayer=!1,e.startPoint=t.firstInput.documentPoint}function pu(e){if(e.draggedLink!==null){if(e.dragsLink&&e.Oe!==null){var t=e.Oe;t.diagram.remove(t.temporaryFromNode),t.diagram.remove(t.temporaryToNode),e.Oe.originalLink=null}e.draggedLink=null,e.Oe=null}}function Ys(e,t,n){var i=e.diagram,r=e.startPoint,o=he.alloc();o.assign(i.lastInput.documentPoint),e.moveParts(t,o.re(r),n),he.free(o),i.Gf("temporaryPixelRatio")===!0&&i.Yh===null&&30<i.$w&&($i(i),i.hk())}Ao.prototype.moveParts=function(e,t,n){n===void 0&&(n=!1);var i=this.diagram;i!==null&&tc(i,e,t,this.dragOptions,n)};function Wl(e){if(e.draggedParts!==null){for(var t=e.diagram,n=e.draggedParts.iterator;n.next();){var i=n.key;i.Zc()&&(i.location=n.value.point)}for(n=e.draggedParts.iterator;n.next();)if(i=n.key,i instanceof Pn&&i.suspendsRouting){var r=n.value.point;e.draggedParts.add(i,e.Pd()),Eh(i,-r.x,-r.y)}t.bd()}}function mu(e,t){var n=e.diagram;e.dragsLink&&(e.draggedLink!==null&&(e.draggedLink.fromNode=null,e.draggedLink.toNode=null),ys(e,!1));var i=e.findDragOverObject(t),r=n.lastInput;r.targetObject=i,e.doUpdateCursor(i);var o=n.skipsUndoManager,a=!1;try{if(n.skipsUndoManager=!0,a=nu(e,r,i),!e.isActive&&xt===null)return;var l=i!==null?i.part:null;if(l===null||n.handlesDragDropForTopLevelParts&&l.isTopLevel&&!(l instanceof qi)){var u=n.mouseDragOver;u!==null&&(u(r),a=!0)}if(!e.isActive&&xt===null||(e.doDragOver(t,i),!e.isActive&&xt===null))return}finally{n.skipsUndoManager=o,a&&n.bd()}e.Bn=i,n.isReadOnly||!n.allowMove&&!n.allowCopy||!n.allowHorizontalScroll&&!n.allowVerticalScroll||n.gs(r.viewPoint)}Ao.prototype.findDragOverObject=function(e){var t=this;return ua(this.diagram,e,null,function(n){return n===null?n=!0:(n=n.part,n=!!(n===null||n instanceof Zr||n.layer.isTemporary||t.draggedParts&&t.draggedParts.contains(n)||t.copiedParts&&t.copiedParts.contains(n))),!n})},Ao.prototype.doUpdateCursor=function(e){var t=this.diagram;(e===null||this.Bn!==e)&&(!this.diagram.currentTool.isActive||this.mayCopy()?t.currentCursor=this.copyCursor:this.mayMove()?t.currentCursor=this.moveCursor:this.mayDragOut()&&(t.currentCursor=this.nodropCursor))};function nu(e,t,n){var i=!1,r=e.Cg.length,o=0<r?e.Cg[0]:null;if(n===o)return!1;t.handled=!1;for(var a=0;a<r;a++){var l=e.Cg[a],u=l.mouseDragLeave;if(u!==null&&(u(t,l,n),i=!0,t.handled))break}if(e.Cg.length=0,!e.isActive&&xt===null||n===null)return i;for(t.handled=!1,r=n;r!==null;)e.Cg.push(r),r=Nu(r);for(r=e.Cg.length,n=0;n<r&&(a=e.Cg[n],l=a.mouseDragEnter,l===null||(l(t,a,o),i=!0,!t.handled));n++);return i}function Nu(e){var t=e.panel;return t!==null?t:e instanceof Ci&&!(e instanceof qi)&&(e=e.containingGroup,e!==null&&e.handlesDragDropForMembers)?e:null}function Ws(e,t,n){var i=e.Oe;if(i===null)return null;var r=e.diagram.og(t,i.portGravity,function(f){return i.findValidLinkablePort(f,n)});e=he.alloc();var o=1/0,a=null;for(r=r.iterator;r.next();){var l=r.value;if(l.part!==null){var u=l.ga(Rr,e);u=t.Bf(u),u<o&&(a=l,o=u)}}return he.free(e),a}function ys(e,t){var n=e.draggedLink;if(n!==null&&!(2>n.pointsCount)){var i=e.diagram;if(!i.isReadOnly){var r=e.Oe;if(r!==null){var o=null,a=null;n.fromNode===null&&(o=Ws(e,n.i(0),!1),o!==null&&(a=o.part));var l=null,u=null;n.toNode===null&&(l=Ws(e,n.i(n.pointsCount-1),!0),l!==null&&(u=l.part)),r.isValidLink(a,o,u,l)?t?(n.defaultFromPoint=n.i(0),n.defaultToPoint=n.i(n.pointsCount-1),n.suspendsRouting=!1,n.fromNode=a,o!==null&&(n.fromPortId=o.portId),n.toNode=u,l!==null&&(n.toPortId=l.portId),n.fromPort!==i.Mx&&i.R("LinkRelinked",n,i.Mx),n.toPort!==i.Nx&&i.R("LinkRelinked",n,i.Nx)):E(r,a,o,u,l):E(r,null,null,null,null)}}}}Ao.prototype.doDragOver=function(){};function iu(e,t){var n=e.diagram;e.dragsLink&&ys(e,!0),Dl(e);var i=e.findDragOverObject(t),r=n.lastInput;if(r.targetObject=i,i!==null){r.handled=!1;for(var o=i;o!==null;){var a=o.mouseDrop;if(a!==null&&(a(r,o),r.handled))break;Au(e,r,o),o=Nu(o)}}else o=n.mouseDrop,o!==null&&o(r);if(e.isActive||xt!==null){for(r=(e.copiedParts||e.draggedParts).iterator;r.next();)o=r.key,o instanceof Xn&&o.linksConnected.each(function(l){l.suspendsRouting=!1});if(e.doDropOnto(t,i),e.isActive||xt!==null){for(e=Zt.alloc(),t=n.selection.iterator;t.next();)i=t.value,i instanceof Xn&&we(n,i,e);Zt.free(e)}}}function Au(e,t,n){e=e.diagram,n=n.part,!e.handlesDragDropForTopLevelParts||!n.isTopLevel||n instanceof qi||(n=e.mouseDrop,n!==null&&n(t))}function we(e,t,n){var i=!1;if(n=t.getAvoidableRect(n),e.viewportBounds.Re(n)&&(i=!0),e=e.Nu(n,function(r){return r.part},function(r){return r instanceof Pn},!0,function(r){return r instanceof Pn},i),e.count!==0)for(e=e.iterator;e.next();)n=e.value,!n.Td(t)&&n.isAvoiding&&n.bb()}Ao.prototype.doDropOnto=function(){},Ao.prototype.doMouseMove=function(){if(this.isActive){var e=this.diagram,t=e.lastInput;this.simulatedMouseMove(t.event,t.documentPoint,t.targetDiagram)||this.currentPart===null||this.draggedParts===null||(this.mayCopy()?(bl(this,!1),_h(e,this.copiedParts),Ys(this,this.copiedParts,!1),Tc(e,this.copiedParts)):this.mayMove()?(xl(this),Ys(this,this.draggedParts,!0)):this.mayDragOut()?(bl(this,!1),Ys(this,this.copiedParts,!1)):xl(this),mu(this,e.lastInput.documentPoint))}},Ao.prototype.doMouseUp=function(){if(this.isActive){var e=this.diagram,t=e.lastInput;if(!this.simulatedMouseUp(t.event,t.documentPoint,t.targetDiagram)){t=!1;var n=this.mayCopy();if(n&&this.copiedParts!==null?(xl(this),bl(this,!0),_h(e,this.copiedParts),Ys(this,this.copiedParts,!1),Tc(e,this.copiedParts),this.copiedParts!==null&&(e.R("ChangingSelection",e.selection),e.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(r){r.isSelected=!0}))):(t=!0,xl(this),this.mayMove()&&(Ys(this,this.draggedParts,!0),mu(this,e.lastInput.documentPoint))),this.Ym=!0,iu(this,e.lastInput.documentPoint),this.isActive){var i=n?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,t&&De(this),e.Ya(),Tc(e,this.draggedParts),this.transactionResult=n?"Copy":"Move",e.R(n?"SelectionCopied":"SelectionMoved",i)}this.stopTool(),n&&e.R("ChangedSelection",e.selection)}}},Ao.prototype.simulatedMouseMove=function(e,t,n){if(xt===null)return!1;var i=xt.diagram;n instanceof Y||(n=null);var r=_t;return n!==r&&(r!==null&&r!==i&&(r.ug(),xt.isDragOutStarted=!1,r=r.toolManager.findTool("Dragging"),r!==null&&r.doSimulatedDragLeave()),_t=n,n!==null&&n!==i&&(yl(),r=n.toolManager.findTool("Dragging"),r!==null&&(Ls.contains(r)||Ls.add(r),r.doSimulatedDragEnter())),this.doUpdateCursor(null)),n===null||n===i||!n.allowDrop||n.isReadOnly||!n.allowInsert?!1:(i=n.toolManager.findTool("Dragging"),i!==null&&(e!==null&&(e.targetTouches!==void 0&&(0<e.targetTouches.length?e=e.targetTouches[0]:0<e.changedTouches.length&&(e=e.changedTouches[0])),t=n.getMouse(e)),n.lastInput.documentPoint=t,n.lastInput.viewPoint=n.op(t),n.lastInput.down=!1,n.lastInput.up=!1,i.doSimulatedDragOver()),!0)},Ao.prototype.simulatedMouseUp=function(e,t,n){if(xt===null)return!1;var i=_t,r=xt.diagram;if(n===null)return xt.doCancel(),!0;if(n!==i){var o=i.toolManager.findTool("Dragging");if(i!==null&&i!==r&&o!==null)return i.ug(),xt.isDragOutStarted=!1,o.doSimulatedDragLeave(),!1;_t=n,i=n.toolManager.findTool("Dragging"),i!==null&&(yl(),Ls.contains(i)||Ls.add(i),i.doSimulatedDragEnter())}return n!==this.diagram?(e!==null?(e.targetTouches!==void 0&&(0<e.targetTouches.length?e=e.targetTouches[0]:0<e.changedTouches.length&&(e=e.changedTouches[0])),t=n.getMouse(e)):t===null&&(t=new he),n.lastInput.documentPoint=t,n.lastInput.viewPoint=n.op(t),n.lastInput.down=!1,n.lastInput.up=!0,e=n.toolManager.findTool("Dragging"),e!==null&&e.doSimulatedDrop(),e=xt,e!==null&&(n=e.mayCopy(),e.transactionResult=n?"Copy":"Move",e.stopTool()),!0):!1};function De(e){if(e.draggedParts!==null)for(var t=e.draggedParts.iterator;t.next();){var n=t.key;n instanceof Xn&&(n=n.containingGroup,n===null||n.placeholder===null||e.draggedParts.contains(n)||n.placeholder.v())}}Ao.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var e=this.diagram;if(e.isReadOnly||e.isModelReadOnly||!e.allowInsert||!e.allowCopy||(Mi?!e.lastInput.alt:!e.lastInput.control))return!1;for(e=e.selection.iterator;e.next();)if(e.value.canCopy())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canCopy())},Ao.prototype.mayDragOut=function(){if(!this.isCopyEnabled)return!1;var e=this.diagram;if(!e.allowDragOut||!e.allowCopy||e.allowMove)return!1;for(e=e.selection.iterator;e.next();)if(e.value.canCopy())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canCopy())},Ao.prototype.mayMove=function(){var e=this.diagram;if(e.isReadOnly||!e.allowMove)return!1;for(e=e.selection.iterator;e.next();)if(e.value.canMove())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canMove())},Ao.prototype.computeBorder=function(e,t,n){return this.Ym||this.draggedParts===null||this.draggedParts.contains(e)?null:n.assign(t)},Ao.prototype.Az=function(){return xt},Ao.prototype.mayDragIn=function(){var e=this.diagram;if(!e.allowDrop||e.isReadOnly||e.isModelReadOnly||!e.allowInsert)return!1;var t=xt;return!(t===null||t.diagram.model.dataFormat!==e.model.dataFormat)},Ao.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var e=this.diagram;e.animationManager.Cc(),ps(e),e.animationManager.Cc(),e=xt,e!==null&&(e.diagram.Ns=!1),this.doUpdateCursor(null)}},Ao.prototype.doSimulatedDragLeave=function(){var e=xt;e!==null&&e.doSimulatedDragOut(),this.doCancel()},Ao.prototype.doSimulatedDragOver=function(){var e=this.diagram;e.animationManager.Dm=!0;var t=xt;if(t!==null&&t.draggedParts!==null){if(!this.mayDragIn())return;dt(this,t.draggedParts.Lf(),!1,e.firstInput),Ys(this,this.copiedParts,!1),mu(this,e.lastInput.documentPoint)}e.animationManager.Dm=!1},Ao.prototype.doSimulatedDrop=function(){var e=this.diagram,t=xt;if(t!==null){var n=t.diagram;if(t.Ym=!0,xl(this),!this.mayDragIn())return;e.animationManager.Dm=!0,e.R("ChangingSelection",e.selection),this.Ea("Drop"),dt(this,t.draggedParts.Lf(),!0,e.lastInput),Ys(this,this.copiedParts,!1);var i=new Xt;this.copiedParts!==null&&(e.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(r){r.isSelected=!0,i.add(r)})),iu(this,e.lastInput.documentPoint),e.Ya(),this.copiedParts!==null&&(this.transactionResult="ExternalCopy"),this.copiedParts=null,e.doFocus(),e.R("ExternalObjectsDropped",i,n),this.stopTransaction(),e.R("ChangedSelection",e.selection)}e.animationManager.Dm=!1};function dt(e,t,n,i){if(e.copiedParts===null){var r=e.diagram;if(!r.isReadOnly&&!r.isModelReadOnly){r.skipsUndoManager=!n,r.partManager.addsToTemporaryLayer=!n,e.startPoint=i.documentPoint,n=r.Kj(t,r,!0);var o=Zt.alloc();r=i=1/0;for(var a=-1/0,l=-1/0,u=t.iterator;u.next();){var f=u.value;if(f.isVisible()){var p=f.location;f=p.x,p=p.y,isNaN(f)||isNaN(p)||(f<i&&(i=f),p<r&&(r=p),f>a&&(a=f),p>l&&(l=p))}}for(i===1/0?o.h(0,0,0,0):o.h(i,r,a-i,l-r),i=o.x+o.width/2,r=o.y+o.height/2,Zt.free(o),o=e.Fr,a=new Zn,l=he.alloc(),u=t.iterator;u.next();)f=u.value,f instanceof Pn&&f.canCopy()&&(p=n.I(f),p!==null&&(p.points=f.points,Eh(p,o.x-i,o.y-r),p.suspendsRouting=!0,a.add(p,e.Pd())));for(t=t.iterator;t.next();)f=t.value,f.Zc()&&f.canCopy()&&(u=n.I(f),u!==null&&(f=f.location,l.h(o.x-(i-f.x),o.y-(r-f.y)),u.location=l,u.Va(),a.add(u,e.Pd(l))));he.free(l),e.copiedParts=a,qu(e,a.Lf()),e.draggedLink!==null&&(n=e.draggedLink,t=n.routeBounds,Eh(n,e.startPoint.x-(t.x+t.width/2),e.startPoint.y-(t.y+t.height/2))),e.doUpdateCursor(null)}}}Ao.prototype.doSimulatedDragOut=function(){var e=this.diagram;e.Ns=!1,this.mayCopy()||this.mayMove()?e.currentCursor="":e.currentCursor=this.nodropCursor,this.Bn=null},Ao.prototype.computeMove=function(e,t,n,i){return n=this.diagram,n!==null?n.computeMove(e,t,this.dragOptions,i):new he},ht.Object.defineProperties(Ao.prototype,{isCopyEnabled:{get:function(){return this.ob},set:function(e){this.ob=e}},copiesEffectiveCollection:{get:function(){return this.u},set:function(e){this.u=e}},dragOptions:{get:function(){return this.ia},set:function(e){this.ia=e}},isGridSnapEnabled:{get:function(){return this.dragOptions.isGridSnapEnabled},set:function(e){this.dragOptions.isGridSnapEnabled=e}},isComplexRoutingRealtime:{get:function(){return this.hb},set:function(e){this.hb=e}},isGridSnapRealtime:{get:function(){return this.dragOptions.isGridSnapRealtime},set:function(e){this.dragOptions.isGridSnapRealtime=e}},gridSnapCellSize:{get:function(){return this.dragOptions.gridSnapCellSize},set:function(e){this.dragOptions.gridSnapCellSize.D(e)||(e=e.J(),this.dragOptions.gridSnapCellSize=e)}},gridSnapCellSpot:{get:function(){return this.dragOptions.gridSnapCellSpot},set:function(e){this.dragOptions.gridSnapCellSpot.D(e)||(e=e.J(),this.dragOptions.gridSnapCellSpot=e)}},gridSnapOrigin:{get:function(){return this.dragOptions.gridSnapOrigin},set:function(e){this.dragOptions.gridSnapOrigin.D(e)||(e=e.J(),this.dragOptions.gridSnapOrigin=e)}},dragsLink:{get:function(){return this.dragOptions.dragsLink},set:function(e){this.dragOptions.dragsLink=e}},dragsTree:{get:function(){return this.dragOptions.dragsTree},set:function(e){this.dragOptions.dragsTree=e}},copyCursor:{get:function(){return this.F},set:function(e){this.F=e}},moveCursor:{get:function(){return this.Oc},set:function(e){this.Oc=e}},nodropCursor:{get:function(){return this.Pc},set:function(e){this.Pc=e}},currentPart:{get:function(){return this.V},set:function(e){this.V=e}},copiedParts:{get:function(){return this.o},set:function(e){this.o=e}},draggedParts:{get:function(){return this.Ha},set:function(e){this.Ha=e}},draggingParts:{get:function(){return this.copiedParts!==null?this.copiedParts.Lf():this.draggedParts!==null?this.draggedParts.Lf():this.te}},draggedLink:{get:function(){return this.diagram.draggedLink},set:function(e){this.diagram.draggedLink=e}},isDragOutStarted:{get:function(){return this.Hb},set:function(e){this.Hb=e}},startPoint:{get:function(){return this.Fr},set:function(e){this.Fr.D(e)||this.Fr.assign(e)}},delay:{get:function(){return this.Ik},set:function(e){this.Ik=e}}}),Ao.prototype.getDraggingSource=Ao.prototype.Az;var xt=null,_t=null;Ao.className="DraggingTool",Ls=new qt,li("draggingTool",function(){return this.findTool("Dragging")},function(e){this.gb("Dragging",e,this.mouseMoveTools)}),Co.prototype.doCancel=function(){xt!==null&&xt.doCancel(),Ir.prototype.doCancel.call(this)};function Dt(){Ir.call(this),this.te=100,this.Ha=!1,this.u="pointer";var e=new Pn,t=new lr;t.isPanelMain=!0,t.stroke="blue",e.add(t),t=new lr,t.toArrow="Standard",t.fill="blue",t.stroke="blue",e.add(t),e.layerName="Tool",this.Ci=e,e=new Xn,t=new lr,t.portId="",t.figure="Rectangle",t.fill=null,t.stroke="magenta",t.strokeWidth=2,t.desiredSize=Uo,e.add(t),e.selectable=!1,e.layerName="Tool",this.Bi=e,this.j=t,e=new Xn,t=new lr,t.portId="",t.figure="Rectangle",t.fill=null,t.stroke="magenta",t.strokeWidth=2,t.desiredSize=Uo,e.add(t),e.selectable=!1,e.layerName="Tool",this.Di=e,this.o=t,this.Pc=this.Oc=this.ob=this.hb=this.Hb=null,this.ia=!0,this.hy=new Zn,this.Of=this.gj=this.Pf=null}yi(Dt,Ir),Dt.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},Dt.prototype.copyPortProperties=function(e,t,n,i,r){if(e!==null&&t!==null&&n!==null&&i!==null){var o=t.Df(),a=pi.alloc();a.width=t.naturalBounds.width*o,a.height=t.naturalBounds.height*o,i.desiredSize=a,pi.free(a),r?(i.toSpot=t.toSpot,i.toEndSegmentLength=t.toEndSegmentLength):(i.fromSpot=t.fromSpot,i.fromEndSegmentLength=t.fromEndSegmentLength),n.locationSpot=Rr,o=he.alloc(),n.location=t.ga(Rr,o),he.free(o),i.angle=t.li(),this.portTargeted!==null&&this.portTargeted(e,t,n,i,r)}},Dt.prototype.setNoTargetPortProperties=function(e,t,n){t!==null&&(t.desiredSize=Uo,t.fromSpot=Ui,t.toSpot=Ui),e!==null&&(e.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,e,t,n)},Dt.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},Dt.prototype.doMouseMove=function(){if(this.isActive){var e=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof Xn){var t=this.targetPort.part;this.isForwards?this.copyPortProperties(t,this.targetPort,this.temporaryToNode,this.temporaryToPort,!0):this.copyPortProperties(t,this.targetPort,this.temporaryFromNode,this.temporaryFromPort,!1)}else this.isForwards?this.setNoTargetPortProperties(this.temporaryToNode,this.temporaryToPort,!0):this.setNoTargetPortProperties(this.temporaryFromNode,this.temporaryFromPort,!1);(e.allowHorizontalScroll||e.allowVerticalScroll)&&e.gs(e.lastInput.viewPoint)}},Dt.prototype.findValidLinkablePort=function(e,t){if(e===null)return null;var n=e.part;if(!(n instanceof Xn))return null;for(;e!==null;){var i=t?e.toLinkable:e.fromLinkable;if(i===!0&&(e.portId!==null||e instanceof Xn)&&(t?this.isValidTo(n,e):this.isValidFrom(n,e)))return e;if(i===!1)break;e=e.panel}return null},Dt.prototype.findTargetPort=function(e){var t=this.diagram,n=t.lastInput.documentPoint,i=this.portGravity;0>=i&&(i=.1);var r=this,o=t.og(n,i,function(x){return r.findValidLinkablePort(x,e)},null,!0);for(i=1/0,t=null,o=o.iterator;o.next();){var a=o.value,l=a.part;if(l instanceof Xn){var u=a.ga(Rr,he.alloc()),f=n.x-u.x,p=n.y-u.y;he.free(u),u=f*f+p*p,u<i&&(f=this.validPortsCache.I(a),f!==null?f&&(t=a,i=u):e&&this.isValidLink(this.originalFromNode,this.originalFromPort,l,a)||!e&&this.isValidLink(l,a,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(a,!0),t=a,i=u):this.validPortsCache.add(a,!1))}}return t!==null&&(n=t.part,n instanceof Xn&&(n.layer===null||n.layer.allowLink))?t:null},Dt.prototype.isValidFrom=function(e,t){if(e===null||t===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(e.layer!==null&&!e.layer.allowLink||t.fromLinkable!==!0))return!1;var n=t.fromMaxLinks;if(1/0>n){if(this.originalLink!==null&&e===this.originalFromNode&&t===this.originalFromPort)return!0;if(t=t.portId,t===null&&(t=""),e.Mo(t).count>=n)return!1}return!0},Dt.prototype.isValidTo=function(e,t){if(e===null||t===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(e.layer!==null&&!e.layer.allowLink||t.toLinkable!==!0))return!1;var n=t.toMaxLinks;if(1/0>n){if(this.originalLink!==null&&e===this.originalToNode&&t===this.originalToPort)return!0;if(t=t.portId,t===null&&(t=""),e.Sd(t).count>=n)return!1}return!0},Dt.prototype.isInSameNode=function(e,t){return e===null||t===null?!1:e===t?!0:(e=e.part,t=t.part,e!==null&&e===t)},Dt.prototype.isLinked=function(e,t){if(e===null||t===null)return!1;var n=e.part;if(!(n instanceof Xn))return!1;e=e.portId,e===null&&(e="");var i=t.part;if(!(i instanceof Xn))return!1;for(t=t.portId,t===null&&(t=""),t=i.Sd(t);t.next();)if(i=t.value,i.fromNode===n&&i.fromPortId===e)return!0;return!1},Dt.prototype.isValidLink=function(e,t,n,i){if(!this.isValidFrom(e,t)||!this.isValidTo(n,i)||!(t===null||i===null||(t.fromLinkableSelfNode&&i.toLinkableSelfNode||!this.isInSameNode(t,i))&&(t.fromLinkableDuplicates&&i.toLinkableDuplicates||!this.isLinked(t,i)))||this.originalLink!==null&&(e!==null&&this.isLabelDependentOnLink(e,this.originalLink)||n!==null&&this.isLabelDependentOnLink(n,this.originalLink))||e!==null&&n!==null&&(e.data===null&&n.data!==null||e.data!==null&&n.data===null)||!this.isValidCycle(e,n,this.originalLink))return!1;if(e!==null){var r=e.linkValidation;if(r!==null&&!r(e,t,n,i,this.originalLink))return!1}return n!==null&&(r=n.linkValidation,r!==null&&!r(e,t,n,i,this.originalLink))?!1:(r=this.linkValidation,r!==null?r(e,t,n,i,this.originalLink):!0)},Dt.prototype.isLabelDependentOnLink=function(e,t){if(e===null)return!1;var n=e.labeledLink;if(n===null)return!1;if(n===t)return!0;var i=new Xt;return i.add(e),ve(this,n,t,i)};function ve(e,t,n,i){if(t===n)return!0;var r=t.fromNode;return r!==null&&r.isLinkLabel&&(i.add(r),ve(e,r.labeledLink,n,i))?!0:(t=t.toNode,!!(t!==null&&t.isLinkLabel&&(i.add(t),ve(e,t.labeledLink,n,i))))}Dt.prototype.isValidCycle=function(e,t,n){if(n===void 0&&(n=null),e===null||t===null)return this.isUnconnectedLinkValid;var i=this.diagram.validCycle;if(i!==Pd){if(i===dp){if(i=n||this.temporaryLink,i!==null&&!i.isTreeLink)return!0;for(i=t.linksConnected;i.next();){var r=i.value;if(r!==n&&r.isTreeLink&&r.toNode===t)return!1}return!bn(this,e,t,n,!0)}if(i===fp){if(i=n||this.temporaryLink,i!==null&&!i.isTreeLink)return!0;for(i=e.linksConnected;i.next();)if(r=i.value,r!==n&&r.isTreeLink&&r.fromNode===e)return!1;return!bn(this,e,t,n,!0)}if(i===up)return e===t?e=!0:(i=new Xt,i.add(t),e=ln(this,i,e,t,n)),!e;if(i===cp)return!bn(this,e,t,n,!1);if(i===hp)return e===t?e=!0:(i=new Xt,i.add(t),e=zn(this,i,e,t,n)),!e}return!0};function bn(e,t,n,i,r){if(t===n)return!0;if(t===null||n===null)return!1;for(var o=t.linksConnected;o.next();){var a=o.value;if(a!==i&&(!r||a.isTreeLink)&&a.toNode===t&&(a=a.fromNode,a!==t&&bn(e,a,n,i,r)))return!0}return!1}function ln(e,t,n,i,r){if(n===i)return!0;if(n===null||i===null||t.contains(n))return!1;t.add(n);for(var o=n.linksConnected;o.next();){var a=o.value;if(a!==r&&a.toNode===n&&(a=a.fromNode,a!==n&&ln(e,t,a,i,r)))return!0}return!1}function zn(e,t,n,i,r){if(n===i)return!0;if(n===null||i===null||t.contains(n))return!1;t.add(n);for(var o=n.linksConnected;o.next();){var a=o.value;if(a!==r){var l=a.fromNode;if(a=a.toNode,l=l===n?a:l,l!==n&&zn(e,t,l,i,r))return!0}}return!1}ht.Object.defineProperties(Dt.prototype,{portGravity:{get:function(){return this.te},set:function(e){0<=e&&(this.te=e)}},isUnconnectedLinkValid:{get:function(){return this.Ha},set:function(e){this.Ha=e}},linkingCursor:{get:function(){return this.u},set:function(e){this.u=e}},temporaryLink:{get:function(){return this.Ci},set:function(e){this.Ci=e}},temporaryFromNode:{get:function(){return this.Bi},set:function(e){(this.Bi=e)&&(this.j=e.port)}},temporaryFromPort:{get:function(){return this.j},set:function(e){if(this.j!==null){var t=this.j.panel;if(t!==null){var n=t.O.indexOf(this.j);t.mb(n),t.Gb(n,e)}}this.j=e}},temporaryToNode:{get:function(){return this.Di},set:function(e){(this.Di=e)&&(this.o=e.port)}},temporaryToPort:{get:function(){return this.o},set:function(e){if(this.o!==null){var t=this.o.panel;if(t!==null){var n=t.O.indexOf(this.o);t.mb(n),t.Gb(n,e)}}this.o=e}},originalLink:{get:function(){return this.Hb},set:function(e){this.Hb=e}},originalFromNode:{get:function(){return this.hb},set:function(e){this.hb=e}},originalFromPort:{get:function(){return this.ob},set:function(e){this.ob=e}},originalToNode:{get:function(){return this.Oc},set:function(e){this.Oc=e}},originalToPort:{get:function(){return this.Pc},set:function(e){this.Pc=e}},isForwards:{get:function(){return this.ia},set:function(e){this.ia=e}},validPortsCache:{get:function(){return this.hy}},targetPort:{get:function(){return this.Pf},set:function(e){this.Pf=e}},linkValidation:{get:function(){return this.gj},set:function(e){this.gj=e}},portTargeted:{get:function(){return this.Of},set:function(e){this.Of=e}}}),Dt.className="LinkingBaseTool";function jn(){Dt.call(this),this.name="Linking",this.V={},this.F=null,this.K=$n,this.Xd=null}yi(jn,Dt),jn.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;return e.isReadOnly||e.isModelReadOnly||!e.allowLink||!e.model.xs()||!e.lastInput.left||e.currentTool!==this&&!this.isBeyondDragSize()?!1:this.findLinkablePort()!==null},jn.prototype.findLinkablePort=function(){var e=this.diagram,t=this.startObject;if(t===null&&(t=e.ic(e.firstInput.documentPoint,null,null)),t===null||(e=t.part,!(e instanceof Xn)))return null;var n=this.direction;if(n===$n||n===hi){var i=this.findValidLinkablePort(t,!1);if(i!==null||this.startObject===e&&(i=e.port,this.findValidLinkablePort(i,!1)))return this.isForwards=!0,i}return(n===$n||n===gi)&&(t=this.findValidLinkablePort(t,!0),t!==null||this.startObject===e&&(t=e.port,this.findValidLinkablePort(t,!0)))?(this.isForwards=!1,t):null},jn.prototype.doActivate=function(){var e=this.diagram,t=this.findLinkablePort();t===null?this.stopTool():(this.Ea(this.name),e.isMouseCaptured=!0,e.currentCursor=this.linkingCursor,this.isForwards?(this.temporaryToNode!==null&&(this.temporaryToNode.location=e.lastInput.documentPoint),this.originalFromPort=t,t=this.originalFromPort.part,t instanceof Xn&&(this.originalFromNode=t),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1)):(this.temporaryFromNode!==null&&(this.temporaryFromNode.location=e.lastInput.documentPoint),this.originalToPort=t,t=this.originalToPort.part,t instanceof Xn&&(this.originalToNode=t),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0)),e.add(this.temporaryFromNode),this.temporaryFromNode&&this.temporaryFromNode.Va(),e.add(this.temporaryToNode),this.temporaryToNode&&this.temporaryToNode.Va(),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.temporaryLink.isTreeLink=this.isNewTreeLink(),this.temporaryLink.bb(),e.add(this.temporaryLink)),this.isActive=!0)},jn.prototype.doDeactivate=function(){this.isActive=!1;var e=this.diagram;e.remove(this.temporaryLink),e.remove(this.temporaryFromNode),e.remove(this.temporaryToNode),e.isMouseCaptured=!1,e.currentCursor="",this.stopTransaction()},jn.prototype.doStop=function(){Dt.prototype.doStop.call(this),this.startObject=null},jn.prototype.doMouseUp=function(){if(this.isActive){var e=this.diagram,t=this.transactionResult=null,n=null,i=null,r=null,o=null;try{var a=this.targetPort=this.findTargetPort(this.isForwards);if(a!==null){var l=a.part;l instanceof Xn&&(this.isForwards?(this.originalFromNode!==null&&(t=this.originalFromNode,n=this.originalFromPort),i=l,r=a):(t=l,n=a,this.originalToNode!==null&&(i=this.originalToNode,r=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(t=this.originalFromNode,n=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(i=this.originalToNode,r=this.originalToPort);t!==null||i!==null?(o=this.insertLink(t,n,i,r),o!==null?(a===null&&(this.isForwards?o.defaultToPoint=e.lastInput.documentPoint:o.defaultFromPoint=e.lastInput.documentPoint),e.allowSelect&&(e.R("ChangingSelection",e.selection),e.clearSelection(!0),o.isSelected=!0),this.transactionResult=this.name,e.R("LinkDrawn",o)):this.doNoLink(t,n,i,r)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),o&&e.allowSelect&&e.R("ChangedSelection",e.selection)}}},jn.prototype.isNewTreeLink=function(){var e=this.archetypeLinkData;if(e===null)return!0;if(e instanceof Pn)return e.isTreeLink;var t=this.diagram;return t===null?!0:(e=t.partManager.getLinkCategoryForData(e),t=t.partManager.findLinkTemplateForCategory(e),t!==null?t.isTreeLink:!0)},jn.prototype.insertLink=function(e,t,n,i){return this.diagram.partManager.insertLink(e,t,n,i)},jn.prototype.doNoLink=function(){},ht.Object.defineProperties(jn.prototype,{archetypeLinkData:{get:function(){return this.V},set:function(e){this.V=e}},archetypeLabelNodeData:{get:function(){return this.F},set:function(e){this.F=e}},direction:{get:function(){return this.K},set:function(e){this.K=e}},startObject:{get:function(){return this.Xd},set:function(e){this.Xd=e}}});var $n=new Yt(jn,"Either",0),hi=new Yt(jn,"ForwardsOnly",0),gi=new Yt(jn,"BackwardsOnly",0);jn.className="LinkingTool",jn.Either=$n,jn.ForwardsOnly=hi,jn.BackwardsOnly=gi;function ti(){Dt.call(this),this.name="Relinking";var e=new lr;e.figure="Diamond",e.desiredSize=ma,e.fill="lightblue",e.stroke="dodgerblue",e.cursor=this.linkingCursor,e.segmentIndex=0,this.V=e,e=new lr,e.figure="Diamond",e.desiredSize=ma,e.fill="lightblue",e.stroke="dodgerblue",e.cursor=this.linkingCursor,e.segmentIndex=-1,this.Xd=e,this.F=null,this.Ew=new Zt}yi(ti,Dt),ti.prototype.updateAdornments=function(e){if(e!==null&&e instanceof Pn){var t="RelinkFrom",n=null;if(e.isSelected&&!this.diagram.isReadOnly){var i=e.selectionObject;i!==null&&e.canRelinkFrom()&&e.actualBounds.w()&&e.isVisible()&&i.actualBounds.w()&&i.Ed()&&(n=e.Pj(t),n===null&&(n=this.makeAdornment(i,!1),e.bh(t,n)))}n===null&&e.Jf(t),t="RelinkTo",n=null,e.isSelected&&!this.diagram.isReadOnly&&(i=e.selectionObject,i!==null&&e.canRelinkTo()&&e.actualBounds.w()&&e.isVisible()&&i.actualBounds.w()&&i.Ed()&&(n=e.Pj(t),n===null?(n=this.makeAdornment(i,!0),e.bh(t,n)):n.v())),n===null&&e.Jf(t)}},ti.prototype.makeAdornment=function(e,t){var n=new Zr;return n.type=kn.Link,t=t?this.toHandleArchetype:this.fromHandleArchetype,t!==null&&n.add(t.copy()),n.adornedObject=e,n},ti.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;if(e.isReadOnly||e.isModelReadOnly||!e.allowRelink||!e.model.xs()||!e.lastInput.left)return!1;var t=this.findToolHandleAt(e.firstInput.documentPoint,"RelinkFrom");return t===null&&(t=this.findToolHandleAt(e.firstInput.documentPoint,"RelinkTo")),t!==null},ti.prototype.doActivate=function(){var e=this.diagram;if(this.originalLink===null){var t=this.handle;if(t===null&&(t=this.findToolHandleAt(e.firstInput.documentPoint,"RelinkFrom"),t===null&&(t=this.findToolHandleAt(e.firstInput.documentPoint,"RelinkTo"))),t===null)return;var n=t.part;if(!(n instanceof Zr&&n.adornedPart instanceof Pn))return;this.handle=t,this.isForwards=n===null||n.category==="RelinkTo",this.originalLink=n.adornedPart}this.Ea(this.name),e.isMouseCaptured=!0,e.currentCursor=this.linkingCursor,this.originalFromPort=this.originalLink.fromPort,this.originalFromNode=this.originalLink.fromNode,this.originalToPort=this.originalLink.toPort,this.originalToNode=this.originalLink.toNode,this.Ew.set(this.originalLink.actualBounds),this.originalLink!==null&&0<this.originalLink.pointsCount&&(this.originalLink.fromNode===null&&(this.temporaryFromPort!==null&&(this.temporaryFromPort.desiredSize=pa),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=pa),this.temporaryToNode!==null&&(this.temporaryToNode.location=this.originalLink.i(this.originalLink.pointsCount-1)))),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0),e.add(this.temporaryFromNode),e.add(this.temporaryToNode),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.copyLinkProperties(this.originalLink,this.temporaryLink),this.temporaryLink.bb(),e.add(this.temporaryLink)),this.isActive=!0},ti.prototype.copyLinkProperties=function(e,t){if(e!==null&&t!==null){t.adjusting=e.adjusting,t.corner=e.corner;var n=e.curve;(n===Lf||n===wh)&&(n=Nl),t.curve=n,t.curviness=e.curviness,t.isTreeLink=e.isTreeLink,t.points=e.points,t.routing=e.routing,t.smoothness=e.smoothness,t.fromSpot=e.fromSpot,t.fromEndSegmentLength=e.fromEndSegmentLength,t.fromShortLength=e.fromShortLength,t.toSpot=e.toSpot,t.toEndSegmentLength=e.toEndSegmentLength,t.toShortLength=e.toShortLength}},ti.prototype.doDeactivate=function(){this.isActive=!1;var e=this.diagram;e.remove(this.temporaryLink),e.remove(this.temporaryFromNode),e.remove(this.temporaryToNode),e.isMouseCaptured=!1,e.currentCursor="",this.stopTransaction()},ti.prototype.doStop=function(){Dt.prototype.doStop.call(this),this.handle=null},ti.prototype.doMouseUp=function(){if(this.isActive){var e=this.diagram;this.transactionResult=null;var t=this.originalFromNode,n=this.originalFromPort,i=this.originalToNode,r=this.originalToPort,o=this.originalLink;try{if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null){var a=this.targetPort.part;a instanceof Xn&&(this.isForwards?(i=a,r=this.targetPort):(t=a,n=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?r=i=null:n=t=null:o=null;o!==null?(this.reconnectLink(o,this.isForwards?i:t,this.isForwards?r:n,this.isForwards),this.targetPort===null&&(this.isForwards?o.defaultToPoint=e.lastInput.documentPoint:o.defaultFromPoint=e.lastInput.documentPoint,o.bb()),this.transactionResult=this.name,e.R("LinkRelinked",o,this.isForwards?this.originalToPort:this.originalFromPort)):this.doNoRelink(this.originalLink,this.isForwards),this.originalLink.Xo(this.Ew)}finally{this.stopTool()}}},ti.prototype.reconnectLink=function(e,t,n,i){return n=n!==null&&n.portId!==null?n.portId:"",i?(e.toNode=t,e.toPortId=n):(e.fromNode=t,e.fromPortId=n),!0},ti.prototype.doNoRelink=function(){};function E(e,t,n,i,r){t!==null?(e.copyPortProperties(t,n,e.temporaryFromNode,e.temporaryFromPort,!1),e.diagram.add(e.temporaryFromNode)):e.diagram.remove(e.temporaryFromNode),i!==null?(e.copyPortProperties(i,r,e.temporaryToNode,e.temporaryToPort,!0),e.diagram.add(e.temporaryToNode)):e.diagram.remove(e.temporaryToNode)}ht.Object.defineProperties(ti.prototype,{fromHandleArchetype:{get:function(){return this.V},set:function(e){this.V=e}},toHandleArchetype:{get:function(){return this.Xd},set:function(e){this.Xd=e}},handle:{get:function(){return this.F},set:function(e){if(e!==null&&!(e.part instanceof Zr))throw Error("new handle is not in an Adornment: "+e);this.F=e}}}),ti.className="RelinkingTool",li("linkingTool",function(){return this.findTool("Linking")},function(e){this.gb("Linking",e,this.mouseMoveTools)}),li("relinkingTool",function(){return this.findTool("Relinking")},function(e){this.gb("Relinking",e,this.mouseDownTools)});function P(){Ir.call(this),this.name="LinkReshaping";var e=new lr;e.figure="Rectangle",e.desiredSize=oa,e.fill="lightblue",e.stroke="dodgerblue",this.o=e,e=new lr,e.figure="Diamond",e.desiredSize=ma,e.fill="lightblue",e.stroke="dodgerblue",e.cursor="move",this.u=e,this.F=3,this.Ts=this.j=null,this.Fw=new he,this.Yq=new qt}yi(P,Ir),P.prototype.Ru=function(e){return e&&e.reshapingBehavior.value!==0?e.reshapingBehavior:J},P.prototype.om=function(e,t){e.reshapingBehavior=t},P.prototype.updateAdornments=function(e){if(e!==null&&e instanceof Pn){var t=null;if(e.isSelected&&!this.diagram.isReadOnly){var n=e.path;n!==null&&e.canReshape()&&e.actualBounds.w()&&e.isVisible()&&n.actualBounds.w()&&n.Ed()&&(t=e.Pj(this.name),t===null||t.Aw!==e.pointsCount||t.Uw!==e.resegmentable)&&(t=this.makeAdornment(n),t!==null&&(t.Aw=e.pointsCount,t.Uw=e.resegmentable,e.bh(this.name,t)))}t===null&&e.Jf(this.name)}},P.prototype.makeAdornment=function(e){var t=e.part,n=t.pointsCount,i=t.isOrthogonal,r=null;if(t.points!==null&&1<n){r=new Zr,r.type=kn.Link,n=t.firstPickIndex;var o=t.lastPickIndex,a=i?1:0;if(t.resegmentable&&t.computeCurve()!==Su)for(var l=n+a;l<o-a;l++){var u=this.makeResegmentHandle(e,l);u!==null&&(u.segmentIndex=l,u.segmentFraction=.5,u.fromMaxLinks=999,r.add(u))}for(a=n+1;a<o;a++)if(l=this.makeHandle(e,a),l!==null){if(l.segmentIndex=a,a!==n)if(a===n+1&&i){u=t.i(n);var f=t.i(n+1);qe.B(u.x,f.x)&&qe.B(u.y,f.y)&&(f=t.i(n-1)),qe.B(u.x,f.x)?(this.om(l,Ae),l.cursor="n-resize"):qe.B(u.y,f.y)&&(this.om(l,ge),l.cursor="w-resize")}else a===o-1&&i?(u=t.i(o-1),f=t.i(o),qe.B(u.x,f.x)&&qe.B(u.y,f.y)&&(u=t.i(o+1)),qe.B(u.x,f.x)?(this.om(l,Ae),l.cursor="n-resize"):qe.B(u.y,f.y)&&(this.om(l,ge),l.cursor="w-resize")):a!==o&&(this.om(l,He),l.cursor="move");r.add(l)}r.adornedObject=e}return r},P.prototype.makeHandle=function(){var e=this.handleArchetype;return e===null?null:e.copy()},P.prototype.makeResegmentHandle=function(){var e=this.midHandleArchetype;return e===null?null:e.copy()},P.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;return!e.isReadOnly&&e.allowReshape&&e.lastInput.left?this.findToolHandleAt(e.firstInput.documentPoint,this.name)!==null:!1},P.prototype.doActivate=function(){var e=this.diagram;if(this.handle===null&&(this.handle=this.findToolHandleAt(e.firstInput.documentPoint,this.name)),this.handle!==null){var t=this.handle.part.adornedPart;if(t instanceof Pn){if(this.Ts=t,e.isMouseCaptured=!0,this.Ea(this.name),t.resegmentable&&this.handle.fromMaxLinks===999){var n=t.points.copy(),i=this.getResegmentingPoint();if(n.Gb(this.handle.segmentIndex+1,i),t.isOrthogonal&&n.Gb(this.handle.segmentIndex+1,i),t.points=n,t.Wb(),t.updateAdornments(),this.handle=this.findToolHandleAt(e.firstInput.documentPoint,this.name),this.handle===null){this.doDeactivate();return}}this.Fw=t.i(this.handle.segmentIndex),this.Yq=t.points.copy(),this.isActive=!0}}},P.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},P.prototype.stopTransaction=function(){var e=this.diagram,t=Ir.prototype.stopTransaction.call(this);return t&&e.undoManager.transactionToUndo!==null&&e.undoManager.transactionToUndo.ak(),t},P.prototype.doCancel=function(){var e=this.adornedLink;e!==null&&(e.points=this.Yq),this.stopTool()},P.prototype.getResegmentingPoint=function(){return this.handle.ga(Rr)},P.prototype.doMouseMove=function(){var e=this.diagram;this.isActive&&(e=this.computeReshape(e.lastInput.documentPoint),this.reshape(e))},P.prototype.doMouseUp=function(){var e=this.diagram;if(this.isActive){var t=this.computeReshape(e.lastInput.documentPoint);if(this.reshape(t),t=this.adornedLink,t!==null&&t.resegmentable){var n=this.handle.segmentIndex,i=t.i(n-1),r=t.i(n),o=t.i(n+1);if(t.isOrthogonal){if(n>t.firstPickIndex+1&&n<t.lastPickIndex-1){var a=t.i(n-2);if(Math.abs(i.x-r.x)<this.resegmentingDistance&&Math.abs(i.y-r.y)<this.resegmentingDistance&&(W(this,a,i,r,o,!0)||W(this,a,i,r,o,!1))){var l=t.points.copy();W(this,a,i,r,o,!0)?(l.cd(n-2,new he(a.x,(o.y+a.y)/2)),l.cd(n+1,new he(o.x,(o.y+a.y)/2))):(l.cd(n-2,new he((o.x+a.x)/2,a.y)),l.cd(n+1,new he((o.x+a.x)/2,o.y))),l.mb(n),l.mb(n-1),t.points=l,t.Wb()}else a=t.i(n+2),Math.abs(r.x-o.x)<this.resegmentingDistance&&Math.abs(r.y-o.y)<this.resegmentingDistance&&(W(this,i,r,o,a,!0)||W(this,i,r,o,a,!1))&&(l=t.points.copy(),W(this,i,r,o,a,!0)?(l.cd(n-1,new he(i.x,(i.y+a.y)/2)),l.cd(n+2,new he(a.x,(i.y+a.y)/2))):(l.cd(n-1,new he((i.x+a.x)/2,i.y)),l.cd(n+2,new he((i.x+a.x)/2,a.y))),l.mb(n+1),l.mb(n),t.points=l,t.Wb())}}else a=he.alloc(),qe.qh(i.x,i.y,o.x,o.y,r.x,r.y,a)&&a.Bf(r)<this.resegmentingDistance*this.resegmentingDistance&&(i=t.points.copy(),i.mb(n),t.points=i,t.Wb()),he.free(a)}e.Ya(),this.transactionResult=this.name,e.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function W(e,t,n,i,r,o){return o?Math.abs(t.y-n.y)<e.resegmentingDistance&&Math.abs(n.y-i.y)<e.resegmentingDistance&&Math.abs(i.y-r.y)<e.resegmentingDistance:Math.abs(t.x-n.x)<e.resegmentingDistance&&Math.abs(n.x-i.x)<e.resegmentingDistance&&Math.abs(i.x-r.x)<e.resegmentingDistance}P.prototype.reshape=function(e){var t=this.adornedLink;t.uh();var n=this.handle.segmentIndex,i=this.Ru(this.handle);if(t.isOrthogonal)if(n===t.firstPickIndex+1)n=t.firstPickIndex+1,i===Ae?(t.L(n,t.i(n-1).x,e.y),t.L(n+1,t.i(n+2).x,e.y)):i===ge&&(t.L(n,e.x,t.i(n-1).y),t.L(n+1,e.x,t.i(n+2).y));else if(n===t.lastPickIndex-1)n=t.lastPickIndex-1,i===Ae?(t.L(n-1,t.i(n-2).x,e.y),t.L(n,t.i(n+1).x,e.y)):i===ge&&(t.L(n-1,e.x,t.i(n-2).y),t.L(n,e.x,t.i(n+1).y));else{i=n;var r=t.i(i),o=t.i(i-1),a=t.i(i+1);qe.B(o.x,r.x)&&qe.B(r.y,a.y)?(qe.B(o.x,t.i(i-2).x)&&!qe.B(o.y,t.i(i-2).y)?(t.m(i,e.x,o.y),n++,i++):t.L(i-1,e.x,o.y),qe.B(a.y,t.i(i+2).y)&&!qe.B(a.x,t.i(i+2).x)?t.m(i+1,a.x,e.y):t.L(i+1,a.x,e.y)):qe.B(o.y,r.y)&&qe.B(r.x,a.x)?(qe.B(o.y,t.i(i-2).y)&&!qe.B(o.x,t.i(i-2).x)?(t.m(i,o.x,e.y),n++,i++):t.L(i-1,o.x,e.y),qe.B(a.x,t.i(i+2).x)&&!qe.B(a.y,t.i(i+2).y)?t.m(i+1,e.x,a.y):t.L(i+1,e.x,a.y)):qe.B(o.x,r.x)&&qe.B(r.x,a.x)?(qe.B(o.x,t.i(i-2).x)&&!qe.B(o.y,t.i(i-2).y)?(t.m(i,e.x,o.y),n++,i++):t.L(i-1,e.x,o.y),qe.B(a.x,t.i(i+2).x)&&!qe.B(a.y,t.i(i+2).y)?t.m(i+1,e.x,a.y):t.L(i+1,e.x,a.y)):qe.B(o.y,r.y)&&qe.B(r.y,a.y)&&(qe.B(o.y,t.i(i-2).y)&&!qe.B(o.x,t.i(i-2).x)?(t.m(i,o.x,e.y),n++,i++):t.L(i-1,o.x,e.y),qe.B(a.y,t.i(i+2).y)&&!qe.B(a.x,t.i(i+2).x)?t.m(i+1,a.x,e.y):t.L(i+1,a.x,e.y)),t.L(n,e.x,e.y)}else t.L(n,e.x,e.y),i=t.fromNode,r=t.fromPort,i!==null&&(o=i.findVisibleNode(),o!==null&&o!==i&&(i=o,r=i.port)),n===1&&t.computeSpot(!0,r).Mc()&&(o=r.ga(Rr,he.alloc()),i=t.getLinkPointFromPoint(i,r,o,e,!0,he.alloc()),t.L(0,i.x,i.y),he.free(o),he.free(i)),i=t.toNode,r=t.toPort,i!==null&&(o=i.findVisibleNode(),o!==null&&o!==i&&(i=o,r=i.port)),n===t.pointsCount-2&&t.computeSpot(!1,r).Mc()&&(n=r.ga(Rr,he.alloc()),e=t.getLinkPointFromPoint(i,r,n,e,!1,he.alloc()),t.L(t.pointsCount-1,e.x,e.y),he.free(n),he.free(e));t.zf()},P.prototype.computeReshape=function(e){var t=this.adornedLink,n=this.handle.segmentIndex;switch(this.Ru(this.handle)){case He:return e;case Ae:return new he(t.i(n).x,e.y);case ge:return new he(e.x,t.i(n).y);default:case J:return t.i(n)}},ht.Object.defineProperties(P.prototype,{handleArchetype:{get:function(){return this.o},set:function(e){this.o=e}},midHandleArchetype:{get:function(){return this.u},set:function(e){this.u=e}},handle:{get:function(){return this.j},set:function(e){if(e!==null&&!(e.part instanceof Zr))throw Error("new handle is not in an Adornment: "+e);this.j=e}},adornedLink:{get:function(){return this.Ts}},resegmentingDistance:{get:function(){return this.F},set:function(e){this.F=e}},originalPoint:{get:function(){return this.Fw}},originalPoints:{get:function(){return this.Yq}}}),P.prototype.setReshapingBehavior=P.prototype.om,P.prototype.getReshapingBehavior=P.prototype.Ru;var J=new Yt(P,"None",0),ge=new Yt(P,"Horizontal",1),Ae=new Yt(P,"Vertical",2),He=new Yt(P,"All",3);P.className="LinkReshapingTool",P.None=J,P.Horizontal=ge,P.Vertical=Ae,P.All=He,li("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(e){this.gb("LinkReshaping",e,this.mouseDownTools)});function it(){Ir.call(this),this.name="Resizing",this.o=new pi(1,1).freeze(),this.j=new pi(9999,9999).freeze(),this.yg=new pi(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var e=new lr;e.alignmentFocus=Rr,e.figure="Rectangle",e.desiredSize=oa,e.fill="lightblue",e.stroke="dodgerblue",e.strokeWidth=1,e.cursor="pointer",this.F=e,this.u=null,this.Xq=new he,this.Dw=new pi,this.Tn=new he,this.rt=new pi(0,0),this.qt=new pi(1/0,1/0),this.pt=new pi(1,1)}yi(it,Ir),it.prototype.updateAdornments=function(e){if(!(e===null||e instanceof Pn)){if(e.isSelected&&!this.diagram.isReadOnly){var t=e.resizeObject,n=e.Pj(this.name);if(t!==null&&e.canResize()&&e.actualBounds.w()&&e.isVisible()&&t.actualBounds.w()&&t.Ed()&&((n===null||n.adornedObject!==t)&&(n=this.makeAdornment(t)),n!==null)){t=t.li(),Gh(e)&&this.updateResizeHandles(n,t),e.bh(this.name,n);return}}e.Jf(this.name)}},it.prototype.makeAdornment=function(e){var t=e.part.resizeAdornmentTemplate;if(t===null){t=new Zr,t.type=kn.Spot,t.locationSpot=Rr;var n=new Tl;n.isPanelMain=!0,t.add(n),t.add(this.makeHandle(e,Jo)),t.add(this.makeHandle(e,Vo)),t.add(this.makeHandle(e,Bo)),t.add(this.makeHandle(e,ws)),t.add(this.makeHandle(e,ia)),t.add(this.makeHandle(e,Ma)),t.add(this.makeHandle(e,Oa)),t.add(this.makeHandle(e,va))}else if(ju(t),t=t.copy(),t===null)return null;return t.adornedObject=e,t},it.prototype.makeHandle=function(e,t){return e=this.handleArchetype,e===null?null:(e=e.copy(),e.alignment=t,e)},it.prototype.updateResizeHandles=function(e,t){if(e!==null){if(!e.alignment.Xb()&&(e.cursor==="pointer"||0<e.cursor.indexOf("resize")))e:{var n=e.alignment;if(n.Mc()&&(n=Rr),0>=n.x)t=0>=n.y?t+225:1<=n.y?t+135:t+180;else if(1<=n.x)0>=n.y?t+=315:1<=n.y&&(t+=45);else if(0>=n.y)t+=270;else if(1<=n.y)t+=90;else break e;0>t?t+=360:360<=t&&(t-=360),e.cursor=22.5>t?"e-resize":67.5>t?"se-resize":112.5>t?"s-resize":157.5>t?"sw-resize":202.5>t?"w-resize":247.5>t?"nw-resize":292.5>t?"n-resize":337.5>t?"ne-resize":"e-resize"}else if(e instanceof kn)for(e=e.elements;e.next();)this.updateResizeHandles(e.value,t)}},it.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;return!e.isReadOnly&&e.allowResize&&e.lastInput.left?this.findToolHandleAt(e.firstInput.documentPoint,this.name)!==null:!1},it.prototype.doActivate=function(){var e=this.diagram;this.handle===null&&(this.handle=this.findToolHandleAt(e.firstInput.documentPoint,this.name)),this.handle!==null&&(this.adornedObject=this.handle.part.adornedObject,this.adornedObject!==null&&(e.isMouseCaptured=!0,e.animationManager.Cc(),this.Ea(this.name),this.Xq.set(this.adornedObject.ga(this.handle.alignment.gv())),this.Tn.set(this.adornedObject.part.location),this.Dw.set(this.adornedObject.desiredSize),this.pt=this.computeCellSize(),this.rt=this.computeMinSize(),this.qt=this.computeMaxSize(),this.isActive=!0))},it.prototype.doDeactivate=function(){var e=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=e.isMouseCaptured=!1},it.prototype.stopTransaction=function(){var e=this.diagram,t=Ir.prototype.stopTransaction.call(this);return t&&e.undoManager.transactionToUndo!==null&&e.undoManager.transactionToUndo.ak(),t},it.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},it.prototype.doMouseMove=function(){var e=this.diagram;if(this.isActive){var t=this.rt,n=this.qt,i=this.pt,r=this.adornedObject.qs(e.lastInput.documentPoint,he.alloc()),o=this.computeReshape();t=this.computeResize(r,this.handle.alignment,t,n,i,o),this.resize(t),e.bd(),he.free(r)}},it.prototype.doMouseUp=function(){var e=this.diagram;if(this.isActive){var t=this.rt,n=this.qt,i=this.pt,r=this.adornedObject.qs(e.lastInput.documentPoint,he.alloc()),o=this.computeReshape();t=this.computeResize(r,this.handle.alignment,t,n,i,o),this.resize(t),he.free(r),e.Ya(),this.transactionResult=this.name,e.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},it.prototype.resize=function(e){var t=this.diagram,n=this.adornedObject;if(n!==null){if(n.desiredSize=e.size,e=n.part,e.Va(),n=n.ga(this.handle.alignment.gv()),e instanceof qi){var i=new qt;if(i.add(e),!this.dragsMembers&&e.placeholder===null){var r=new c;r.dragsMembers=!1}t.moveParts(i,this.oppositePoint.copy().re(n),!0,r)}else e.location=e.location.copy().re(n).add(this.oppositePoint);t.bd()}},it.prototype.computeResize=function(e,t,n,i,r,o){t.Mc()&&(t=Rr);var a=this.adornedObject.naturalBounds,l=a.x,u=a.y,f=a.x+a.width,p=a.y+a.height,x=1;if(!o){x=a.width;var N=a.height;0>=x&&(x=1),0>=N&&(N=1),x=N/x}return N=he.alloc(),qe.No(e.x,e.y,l,u,r.width,r.height,N),e=a.copy(),0>=t.x?0>=t.y?(e.x=Math.max(N.x,f-i.width),e.x=Math.min(e.x,f-n.width),e.width=Math.max(f-e.x,n.width),e.y=Math.max(N.y,p-i.height),e.y=Math.min(e.y,p-n.height),e.height=Math.max(p-e.y,n.height),o||(1<=e.height/e.width?(e.height=Math.max(Math.min(x*e.width,i.height),n.height),e.width=e.height/x):(e.width=Math.max(Math.min(e.height/x,i.width),n.width),e.height=x*e.width),e.x=f-e.width,e.y=p-e.height)):1<=t.y?(e.x=Math.max(N.x,f-i.width),e.x=Math.min(e.x,f-n.width),e.width=Math.max(f-e.x,n.width),e.height=Math.max(Math.min(N.y-u,i.height),n.height),o||(1<=e.height/e.width?(e.height=Math.max(Math.min(x*e.width,i.height),n.height),e.width=e.height/x):(e.width=Math.max(Math.min(e.height/x,i.width),n.width),e.height=x*e.width),e.x=f-e.width)):(e.x=Math.max(N.x,f-i.width),e.x=Math.min(e.x,f-n.width),e.width=f-e.x,o||(e.height=Math.max(Math.min(x*e.width,i.height),n.height),e.width=e.height/x,e.y=u+.5*(p-u-e.height))):1<=t.x?0>=t.y?(e.width=Math.max(Math.min(N.x-l,i.width),n.width),e.y=Math.max(N.y,p-i.height),e.y=Math.min(e.y,p-n.height),e.height=Math.max(p-e.y,n.height),o||(1<=e.height/e.width?(e.height=Math.max(Math.min(x*e.width,i.height),n.height),e.width=e.height/x):(e.width=Math.max(Math.min(e.height/x,i.width),n.width),e.height=x*e.width),e.y=p-e.height)):1<=t.y?(e.width=Math.max(Math.min(N.x-l,i.width),n.width),e.height=Math.max(Math.min(N.y-u,i.height),n.height),o||(1<=e.height/e.width?(e.height=Math.max(Math.min(x*e.width,i.height),n.height),e.width=e.height/x):(e.width=Math.max(Math.min(e.height/x,i.width),n.width),e.height=x*e.width))):(e.width=Math.max(Math.min(N.x-l,i.width),n.width),o||(e.height=Math.max(Math.min(x*e.width,i.height),n.height),e.width=e.height/x,e.y=u+.5*(p-u-e.height))):0>=t.y?(e.y=Math.max(N.y,p-i.height),e.y=Math.min(e.y,p-n.height),e.height=p-e.y,o||(e.width=Math.max(Math.min(e.height/x,i.width),n.width),e.height=x*e.width,e.x=l+.5*(f-l-e.width))):1<=t.y&&(e.height=Math.max(Math.min(N.y-u,i.height),n.height),o||(e.width=Math.max(Math.min(e.height/x,i.width),n.width),e.height=x*e.width,e.x=l+.5*(f-l-e.width))),he.free(N),e},it.prototype.computeReshape=function(){var e=En;return this.adornedObject instanceof lr&&(e=Rg(this.adornedObject)),!(e===ci||this.diagram.lastInput.shift)},it.prototype.computeMinSize=function(){var e=this.adornedObject.minSize.copy(),t=this.minSize;return!isNaN(t.width)&&t.width>e.width&&(e.width=t.width),!isNaN(t.height)&&t.height>e.height&&(e.height=t.height),e},it.prototype.computeMaxSize=function(){var e=this.adornedObject.maxSize.copy(),t=this.maxSize;return!isNaN(t.width)&&t.width<e.width&&(e.width=t.width),!isNaN(t.height)&&t.height<e.height&&(e.height=t.height),e},it.prototype.computeCellSize=function(){var e=new pi(NaN,NaN),t=this.adornedObject.part;return t!==null&&(t=t.resizeCellSize,!isNaN(t.width)&&0<t.width&&(e.width=t.width),!isNaN(t.height)&&0<t.height&&(e.height=t.height)),t=this.cellSize,isNaN(e.width)&&!isNaN(t.width)&&0<t.width&&(e.width=t.width),isNaN(e.height)&&!isNaN(t.height)&&0<t.height&&(e.height=t.height),t=this.diagram,(isNaN(e.width)||isNaN(e.height))&&t&&(t=t.grid,t!==null&&t.visible&&this.isGridSnapEnabled&&(t=t.gridCellSize,isNaN(e.width)&&!isNaN(t.width)&&0<t.width&&(e.width=t.width),isNaN(e.height)&&!isNaN(t.height)&&0<t.height&&(e.height=t.height))),(isNaN(e.width)||e.width===0||e.width===1/0)&&(e.width=1),(isNaN(e.height)||e.height===0||e.height===1/0)&&(e.height=1),e},ht.Object.defineProperties(it.prototype,{handleArchetype:{get:function(){return this.F},set:function(e){this.F=e}},handle:{get:function(){return this.u},set:function(e){if(e!==null&&!(e.part instanceof Zr))throw Error("new handle is not in an Adornment: "+e);this.u=e}},adornedObject:{get:function(){return this.ue},set:function(e){if(e!==null&&e.part instanceof Zr)throw Error("new handle must not be in an Adornment: "+e);this.ue=e}},minSize:{get:function(){return this.o},set:function(e){if(!this.o.D(e)){var t=e.width;isNaN(t)&&(t=0),e=e.height,isNaN(e)&&(e=0),this.o.h(t,e)}}},maxSize:{get:function(){return this.j},set:function(e){if(!this.j.D(e)){var t=e.width;isNaN(t)&&(t=1/0),e=e.height,isNaN(e)&&(e=1/0),this.j.h(t,e)}}},cellSize:{get:function(){return this.yg},set:function(e){this.yg.D(e)||this.yg.assign(e)}},isGridSnapEnabled:{get:function(){return this.V},set:function(e){this.V=e}},dragsMembers:{get:function(){return this.ia},set:function(e){this.ia=e}},oppositePoint:{get:function(){return this.Xq},set:function(e){this.Xq.D(e)||this.Xq.assign(e)}},originalDesiredSize:{get:function(){return this.Dw}},originalLocation:{get:function(){return this.Tn}}}),it.className="ResizingTool",li("resizingTool",function(){return this.findTool("Resizing")},function(e){this.gb("Resizing",e,this.mouseDownTools)});function jt(){Ir.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new he,this.ue=null;var e=new lr;e.figure="Ellipse",e.desiredSize=ma,e.fill="lightblue",e.stroke="dodgerblue",e.strokeWidth=1,e.cursor="pointer",this.o=e,this.j=null,this.Cw=0,this.kr=new he(NaN,NaN),this.u=0,this.F=50}yi(jt,Ir),jt.prototype.updateAdornments=function(e){if(e!==null){if(e.ph()){var t=e.rotateObject;if(t===e||t===e.path||t.isPanelMain)return}if(e.isSelected&&!this.diagram.isReadOnly&&(t=e.rotateObject,t!==null&&e.canRotate()&&e.actualBounds.w()&&e.isVisible()&&t.actualBounds.w()&&t.Ed())){var n=e.Pj(this.name);if((n===null||n.adornedObject!==t)&&(n=this.makeAdornment(t)),n!==null){n.angle=t.li(),n.placeholder===null&&(n.location=this.computeAdornmentLocation(t)),e.bh(this.name,n);return}}e.Jf(this.name)}},jt.prototype.makeAdornment=function(e){var t=e.part.rotateAdornmentTemplate;if(t===null){t=new Zr,t.type=kn.Position,t.locationSpot=Rr;var n=this.handleArchetype;n!==null&&t.add(n.copy())}else if(ju(t),t=t.copy(),t===null)return null;return t.adornedObject=e,t},jt.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;return!e.isReadOnly&&e.allowRotate&&e.lastInput.left?this.findToolHandleAt(e.firstInput.documentPoint,this.name)!==null:!1},jt.prototype.doActivate=function(){var e=this.diagram;if(this.adornedObject===null){if(this.handle===null&&(this.handle=this.findToolHandleAt(e.firstInput.documentPoint,this.name)),this.handle===null)return;this.adornedObject=this.handle.part.adornedObject}this.adornedObject!==null&&(e.isMouseCaptured=!0,e.delaysLayout=!0,this.Ea(this.name),this.Cw=this.adornedObject.angle,this.kr=this.computeRotationPoint(this.adornedObject),this.Tn=this.adornedObject.part.location.copy(),this.isActive=!0)},jt.prototype.computeRotationPoint=function(e){var t=e.part,n=t.locationObject;return t.rotationSpot.sb()?e.ga(t.rotationSpot):e===t||e===n?n.ga(t.locationSpot):e.ga(Rr)},jt.prototype.computeAdornmentLocation=function(e){var t=this.rotationPoint;t.w()||(t=this.computeRotationPoint(e)),t=e.qs(t);var n=this.handleAngle;0>n?n+=360:360<=n&&(n-=360),n=Math.round(45*Math.round(n/45));var i=this.handleDistance;return n===0?t.x=e.naturalBounds.width+i:n===45?(t.x=e.naturalBounds.width+i,t.y=e.naturalBounds.height+i):n===90?t.y=e.naturalBounds.height+i:n===135?(t.x=-i,t.y=e.naturalBounds.height+i):n===180?t.x=-i:n===225?(t.x=-i,t.y=-i):n===270?t.y=-i:n===315&&(t.x=e.naturalBounds.width+i,t.y=-i),e.ga(t)},jt.prototype.doDeactivate=function(){var e=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new he(NaN,NaN),this.isActive=e.isMouseCaptured=!1},jt.prototype.stopTransaction=function(){var e=this.diagram,t=Ir.prototype.stopTransaction.call(this);return t&&e.undoManager.transactionToUndo!==null&&e.undoManager.transactionToUndo.ak(),t},jt.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},jt.prototype.doMouseMove=function(){var e=this.diagram;this.isActive&&(e=this.computeRotate(e.lastInput.documentPoint),this.rotate(e))},jt.prototype.doMouseUp=function(){var e=this.diagram;if(this.isActive){e.delaysLayout=!1;var t=this.computeRotate(e.lastInput.documentPoint);this.rotate(t),e.Ya(),this.transactionResult=this.name,e.R("PartRotated",this.adornedObject,this.originalAngle)}this.stopTool()},jt.prototype.rotate=function(e){var t=this.adornedObject;if(t!==null){t.angle=e,t=t.part,t.Va();var n=t.locationObject,i=t.rotateObject;(n===i||n.rg(i))&&(n=this.Tn.copy(),t.location=n.re(this.rotationPoint).rotate(e-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},jt.prototype.computeRotate=function(e){e=this.rotationPoint.ab(e)-this.handleAngle;var t=this.adornedObject.panel;t!==null&&(e-=t.li()),360<=e?e-=360:0>e&&(e+=360),t=Math.min(Math.abs(this.snapAngleMultiple),180);var n=Math.min(Math.abs(this.snapAngleEpsilon),t/2);return!this.diagram.lastInput.shift&&0<t&&0<n&&(e%t<n?e=Math.floor(e/t)*t:e%t>t-n&&(e=(Math.floor(e/t)+1)*t)),360<=e?e-=360:0>e&&(e+=360),e},ht.Object.defineProperties(jt.prototype,{handleArchetype:{get:function(){return this.o},set:function(e){this.o=e}},handle:{get:function(){return this.j},set:function(e){if(e!==null&&!(e.part instanceof Zr))throw Error("new handle is not in an Adornment: "+e);this.j=e}},adornedObject:{get:function(){return this.ue},set:function(e){if(e!==null&&e.part instanceof Zr)throw Error("new handle must not be in an Adornment: "+e);this.ue=e}},snapAngleMultiple:{get:function(){return this.ia},set:function(e){this.ia=e}},snapAngleEpsilon:{get:function(){return this.V},set:function(e){this.V=e}},originalAngle:{get:function(){return this.Cw}},rotationPoint:{get:function(){return this.kr},set:function(e){this.kr=e.copy()}},handleAngle:{get:function(){return this.u},set:function(e){this.u=e}},handleDistance:{get:function(){return this.F},set:function(e){this.F=e}}}),jt.className="RotatingTool",li("rotatingTool",function(){return this.findTool("Rotating")},function(e){this.gb("Rotating",e,this.mouseDownTools)});function Qt(){Ir.call(this),this.name="ClickSelecting"}yi(Qt,Ir),Qt.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},Qt.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},Qt.className="ClickSelectingTool";function bt(){Ir.call(this),this.name="Action",this.pk=null}yi(bt,Ir),bt.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram,t=e.lastInput,n=e.ic(t.documentPoint,function(i){for(;i.panel!==null&&!i.isActionable;)i=i.panel;return i});return n!==null&&n.isActionable?(this.pk=n,e.Ck=e.ic(t.documentPoint,null,null),!0):!1},bt.prototype.doMouseDown=function(){if(this.isActive){var e=this.diagram.lastInput,t=this.pk;t!==null&&(e.targetObject=t,t.actionDown!==null&&t.actionDown(e,t))}else this.canStart()&&this.doActivate()},bt.prototype.doMouseMove=function(){if(this.isActive){var e=this.diagram.lastInput,t=this.pk;t!==null&&(e.targetObject=t,t.actionMove!==null&&t.actionMove(e,t))}},bt.prototype.doMouseUp=function(){if(this.isActive){var e=this.diagram.lastInput,t=this.pk;if(t===null)return;e.targetObject=t,t.actionUp!==null&&t.actionUp(e,t),this.standardMouseClick(function(n){for(;n.panel!==null&&(!n.isActionable||n!==t);)n=n.panel;return n},function(n){return n===t})}this.stopTool()},bt.prototype.doCancel=function(){var e=this.diagram.lastInput,t=this.pk;t!==null&&(e.targetObject=t,t.actionCancel!==null&&t.actionCancel(e,t),this.stopTool())},bt.prototype.doStop=function(){this.pk=null},bt.className="ActionTool";function en(){Ir.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new he(0,0)}yi(en,Ir),en.prototype.canStart=function(){if(!this.isEnabled||this.archetypeNodeData===null)return!1;var e=this.diagram;if(e.isReadOnly||e.isModelReadOnly||!e.allowInsert||!e.lastInput.left||this.isBeyondDragSize())return!1;if(this.isDoubleClick){if(e.lastInput.clickCount===1&&(this.mw=e.lastInput.viewPoint.copy()),e.lastInput.clickCount!==2||this.isBeyondDragSize(this.mw))return!1}else if(e.lastInput.clickCount!==1)return!1;return!(e.currentTool!==this&&e.Ol(e.lastInput.documentPoint,!0)!==null)},en.prototype.doMouseUp=function(){var e=this.diagram;this.isActive&&this.insertPart(e.lastInput.documentPoint),this.stopTool()},en.prototype.insertPart=function(e){var t=this.diagram,n=this.archetypeNodeData;if(n===null)return null;var i=null;try{if(t.R("ChangingSelection",t.selection),this.Ea(this.name),n instanceof Ci)n.Zc()&&(ju(n),i=n.copy(),i!==null&&t.add(i));else if(n!==null){var r=t.model.copyNodeData(n);ot(r)&&(t.model.xf(r),i=t.Lc(r))}if(i!==null){var o=he.allocAt(e.x,e.y);this.isGridSnapEnabled&&Bh(this.diagram,i,e,o),i.location=o,t.allowSelect&&(t.clearSelection(!0),i.isSelected=!0),he.free(o)}t.Ya(),this.transactionResult=this.name,t.R("PartCreated",i)}finally{this.stopTransaction(),t.R("ChangedSelection",t.selection)}return i},ht.Object.defineProperties(en.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(e){this.Ri=e}},isDoubleClick:{get:function(){return this.o},set:function(e){this.o=e}},isGridSnapEnabled:{get:function(){return this.j},set:function(e){this.j=e}}}),en.className="ClickCreatingTool";function Gt(){Ir.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var e=new Ci;e.layerName="Tool",e.selectable=!1;var t=new lr;t.name="SHAPE",t.figure="Rectangle",t.fill=null,t.stroke="magenta",e.add(t),this.j=e}yi(Gt,Ir),Gt.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;if(!e.allowSelect)return!1;var t=e.lastInput;return!(!t.left||e.currentTool!==this&&(!this.isBeyondDragSize()||t.timestamp-e.firstInput.timestamp<this.delay||e.Ol(t.documentPoint,!0)!==null))},Gt.prototype.doActivate=function(){var e=this.diagram;this.isActive=!0,e.isMouseCaptured=!0,e.skipsUndoManager=!0,e.add(this.box),this.doMouseMove()},Gt.prototype.doDeactivate=function(){var e=this.diagram;e.ug(),e.remove(this.box),e.skipsUndoManager=!1,this.isActive=e.isMouseCaptured=!1},Gt.prototype.doMouseMove=function(){var e=this.diagram;if(this.isActive&&this.box!==null){var t=this.computeBoxBounds(),n=this.box.fb("SHAPE");n===null&&(n=this.box.Pb());var i=pi.alloc().h(t.width,t.height);n.desiredSize=i,this.box.mm(t.x,t.y,!1),pi.free(i),(e.allowHorizontalScroll||e.allowVerticalScroll)&&e.gs(e.lastInput.viewPoint)}},Gt.prototype.doMouseUp=function(){if(this.isActive){var e=this.diagram;e.remove(this.box);try{e.currentCursor="wait",e.R("ChangingSelection",e.selection),this.selectInRect(this.computeBoxBounds()),e.R("ChangedSelection",e.selection)}finally{e.currentCursor=""}}this.stopTool()},Gt.prototype.computeBoxBounds=function(){var e=this.diagram;return new Zt(e.firstInput.documentPoint,e.lastInput.documentPoint)},Gt.prototype.selectInRect=function(e){var t=this.diagram,n=t.lastInput;if(e=t.ux(e,this.isPartialInclusion),Mi?n.meta:n.control)if(n.shift)for(e=e.iterator;e.next();)t=e.value,t.isSelected&&(t.isSelected=!1);else for(e=e.iterator;e.next();)t=e.value,t.isSelected=!t.isSelected;else if(n.shift)for(e=e.iterator;e.next();)t=e.value,t.isSelected||(t.isSelected=!0);else{for(n=new qt,t=t.selection.iterator;t.next();){var i=t.value;e.contains(i)||n.add(i)}for(t=n.iterator;t.next();)t.value.isSelected=!1;for(e=e.iterator;e.next();)t=e.value,t.isSelected||(t.isSelected=!0)}},ht.Object.defineProperties(Gt.prototype,{delay:{get:function(){return this.Ik},set:function(e){this.Ik=e}},isPartialInclusion:{get:function(){return this.o},set:function(e){this.o=e}},box:{get:function(){return this.j},set:function(e){this.j=e}}}),Gt.className="DragSelectingTool";function wt(){Ir.call(this),this.name="Panning",this.Xt=new he,this.xy=new he,this.xg=!1;var e=this;this.Kw=function(){var t=e.diagram;t!==null&&t.removeEventListener(Ke.document,"scroll",e.Kw,!1),e.stopTool()}}yi(wt,Ir),wt.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;return!(!e.allowHorizontalScroll&&!e.allowVerticalScroll||!e.lastInput.left||e.currentTool!==this&&!this.isBeyondDragSize())},wt.prototype.doActivate=function(){var e=this.diagram;this.xg?(e.lastInput.bubbles=!0,e.addEventListener(Ke.document,"scroll",this.Kw,!1)):(e.currentCursor="move",e.isMouseCaptured=!0,this.Xt.assign(e.position)),this.isActive=!0},wt.prototype.doDeactivate=function(){var e=this.diagram;e.currentCursor="",this.isActive=e.isMouseCaptured=!1},wt.prototype.doCancel=function(){var e=this.diagram;e.position=this.Xt,e.isMouseCaptured=!1,this.stopTool()},wt.prototype.doMouseMove=function(){this.move()},wt.prototype.doMouseUp=function(){this.move(),this.stopTool()},wt.prototype.move=function(){var e=this.diagram;if(this.isActive&&e)if(this.xg)e.lastInput.bubbles=!0;else{var t=e.position,n=e.firstInput.documentPoint,i=e.lastInput.documentPoint,r=t.x+n.x-i.x;n=t.y+n.y-i.y,e.allowHorizontalScroll||(r=t.x),e.allowVerticalScroll||(n=t.y),e.position=this.xy.h(r,n)}},ht.Object.defineProperties(wt.prototype,{bubbles:{get:function(){return this.xg},set:function(e){this.xg=e}},originalPosition:{get:function(){return this.Xt}}}),wt.className="PanningTool",li("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(e){this.gb("ClickCreating",e,this.mouseUpTools)}),li("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(e){this.gb("ClickSelecting",e,this.mouseUpTools)}),li("panningTool",function(){return this.findTool("Panning")},function(e){this.gb("Panning",e,this.mouseMoveTools)}),li("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(e){this.gb("DragSelecting",e,this.mouseMoveTools)}),li("actionTool",function(){return this.findTool("Action")},function(e){this.gb("Action",e,this.mouseDownTools)});function ii(){this.F=this.u=this.j=this.o=null}ht.Object.defineProperties(ii.prototype,{mainElement:{get:function(){return this.u},set:function(e){this.u=e}},show:{get:function(){return this.o},set:function(e){this.o!==e&&(this.o=e)}},hide:{get:function(){return this.j},set:function(e){this.j!==e&&(this.j=e)}},valueFunction:{get:function(){return this.F},set:function(e){this.F=e}}}),ii.className="HTMLInfo";function ki(e,t,n){this.text=e,this.hx=t,this.visible=n}ki.className="ContextMenuButtonInfo";function ji(){Ir.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new he,this.jt=null,this.Et=!1;var e=this;this.tu=function(){e.stopTool()}}yi(ji,Ir);function si(e){var t=new ii;t.show=function(r,o,a){a.showDefaultContextMenu()},t.hide=function(r,o){o.hideDefaultContextMenu()},ui=t,e.tu=function(){e.stopTool()},t=Nt("div");var n=Nt("div");t.style.cssText="top: 0px;z-index:10002;position: fixed;display: none;text-align: center;left: 25%;width: 50%;background-color: #F5F5F5;padding: 16px;border: 16px solid #444;border-radius: 10px;margin-top: 10px",n.style.cssText="z-index:10001;position: fixed;display: none;top: 0;left: 0;width: 100%;height: 100%;background-color: black;opacity: 0.8;";var i=Nt("style");Ke.document.getElementsByTagName("head")[0].appendChild(i),i.sheet.insertRule(".goCXul { list-style: none; }",0),i.sheet.insertRule(".goCXli {font:700 1.5em Helvetica, Arial, sans-serif;position: relative;min-width: 60px; }",0),i.sheet.insertRule(".goCXa {color: #444;display: inline-block;padding: 4px;text-decoration: none;margin: 2px;border: 1px solid gray;border-radius: 10px; }",0),i=e.diagram,i!==null&&(i.addEventListener(t,"contextmenu",vi,!1),i.addEventListener(t,"selectstart",vi,!1),i.addEventListener(n,"contextmenu",vi,!1)),t.className="goCXforeground",n.className="goCXbackground",Ke.document.body&&(Ke.document.body.appendChild(t),Ke.document.body.appendChild(n)),dr=t,bo=n,io=!0}function vi(e){return e.preventDefault(),!1}ji.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;return this.isBeyondDragSize()||!e.lastInput.right||1<e.lastInput.clickCount?!1:!!(e.lastInput.isTouchEvent&&this.defaultTouchContextMenu!==null||this.findObjectWithContextMenu()!==null)},ji.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},ji.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},ji.prototype.findObjectWithContextMenu=function(e){e===void 0&&(e=null);var t=this.diagram,n=t.lastInput,i=null;if(e instanceof Y||(e instanceof st?i=e:i=t.ic(n.documentPoint,null,function(r){return!r.layer.isTemporary})),i!==null){for(e=i;e!==null;){if(e.contextMenu!==null)return e;e=e.panel}if(t.lastInput.isTouchEvent&&this.defaultTouchContextMenu)return i.part}else if(t.contextMenu!==null)return t;return null},ji.prototype.doActivate=function(){},ji.prototype.doMouseDown=function(){if(Ir.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof Zr){var e=this.diagram.toolManager.findTool("Action");e!==null&&e.canStart()&&(e.doActivate(),e.doMouseDown(),e.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&Pi(this)},ji.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof Zr){var e=this.diagram.toolManager.findTool("Action");e!==null&&e.canStart()&&(e.doActivate(),e.doCancel(),e.doDeactivate())}Pi(this)};function Pi(e){var t=e.diagram;if(e.isActive){var n=e.currentContextMenu;if(n!==null){var i=null;n instanceof ii||(i=t.ic(t.lastInput.documentPoint,null,null),i!==null&&i.rg(n)&&e.standardMouseClick(null,null)),e.maybeStopTool(i)}}else e.canStart()&&(Mr(e,!0),e.isActive||e.stopTool())}ji.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function Mr(e,t,n){if(n===void 0&&(n=null),!e.Et&&(e.Et=!0,t&&e.standardMouseSelect(),t=e.standardMouseClick(),e.Et=!1,!t)){if(e.isActive=!0,t=ui,n===null&&(n=e.findObjectWithContextMenu()),n!==null){var i=n.contextMenu;i!==null?(e.currentObject=n instanceof st?n:null,e.showContextMenu(i,e.currentObject)):t!==null&&e.showContextMenu(t,e.currentObject)}else t!==null&&e.showContextMenu(t,null);e.currentContextMenu instanceof Zr&&!e.currentContextMenu.visible&&e.stopTool()}}ji.prototype.doMouseMove=function(){var e=this.diagram.toolManager.findTool("Action");e!==null&&e.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},ji.prototype.showContextMenu=function(e,t){var n=this.diagram;if(e!==this.currentContextMenu&&this.hideContextMenu(),e instanceof Zr){e.layerName="Tool",e.selectable=!1,e.scale=1/n.scale,e.category=this.name,e.placeholder!==null&&(e.placeholder.scale=n.scale);var i=e.diagram;i!==null&&i!==n&&i.remove(e),n.add(e),t!==null?e.adornedObject=t:e.data=n.model,e.Va(),this.positionContextMenu(e,t)}else e instanceof ii&&e.show(t,n,this);this.currentContextMenu=e},ji.prototype.positionContextMenu=function(e){if(e.placeholder===null){var t=this.diagram,n=t.lastInput.documentPoint.copy(),i=e.measuredBounds,r=t.viewportBounds;t.lastInput.isTouchEvent&&(n.x-=i.width),n.x+i.width>r.right&&(n.x-=i.width+5/t.scale),n.x<r.x&&(n.x=r.x),n.y+i.height>r.bottom&&(n.y-=i.height+5/t.scale),n.y<r.y&&(n.y=r.y),e.position=n}},ji.prototype.hideContextMenu=function(){var e=this.diagram,t=this.currentContextMenu;t!==null&&(t instanceof Zr?(e.remove(t),this.ht!==null&&this.ht.Jf(t.category),t.data=null,t.adornedObject=null):t instanceof ii&&(t.hide!==null?t.hide(e,this):t.mainElement!==null&&(t.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function Xr(e){var t=new qt;return t.add(new ki("Copy",function(n){n.commandHandler.copySelection()},function(n){return n.commandHandler.canCopySelection()})),t.add(new ki("Cut",function(n){n.commandHandler.cutSelection()},function(n){return n.commandHandler.canCutSelection()})),t.add(new ki("Delete",function(n){n.commandHandler.deleteSelection()},function(n){return n.commandHandler.canDeleteSelection()})),t.add(new ki("Paste",function(n){n.commandHandler.pasteSelection(e.mouseDownPoint)},function(n){return n.commandHandler.canPasteSelection(e.mouseDownPoint)})),t.add(new ki("Select All",function(n){n.commandHandler.selectAll()},function(n){return n.commandHandler.canSelectAll()})),t.add(new ki("Undo",function(n){n.commandHandler.undo()},function(n){return n.commandHandler.canUndo()})),t.add(new ki("Redo",function(n){n.commandHandler.redo()},function(n){return n.commandHandler.canRedo()})),t.add(new ki("Scroll To Part",function(n){n.commandHandler.scrollToPart()},function(n){return n.commandHandler.canScrollToPart()})),t.add(new ki("Zoom To Fit",function(n){n.commandHandler.zoomToFit()},function(n){return n.commandHandler.canZoomToFit()})),t.add(new ki("Reset Zoom",function(n){n.commandHandler.resetZoom()},function(n){return n.commandHandler.canResetZoom()})),t.add(new ki("Group Selection",function(n){n.commandHandler.groupSelection()},function(n){return n.commandHandler.canGroupSelection()})),t.add(new ki("Ungroup Selection",function(n){n.commandHandler.ungroupSelection()},function(n){return n.commandHandler.canUngroupSelection()})),t.add(new ki("Edit Text",function(n){n.commandHandler.editTextBlock()},function(n){return n.commandHandler.canEditTextBlock()})),t}ji.prototype.showDefaultContextMenu=function(){var e=this.diagram;this.jt===null&&(this.jt=Xr(this)),dr.innerHTML="",bo.addEventListener("pointerdown",this.tu,!1);var t=this,n=Nt("ul");n.className="goCXul",dr.appendChild(n),n.innerHTML="";for(var i=this.jt.iterator;i.next();){var r=i.value,o=r.visible;if(typeof r.hx=="function"&&(typeof o!="function"||o(e))){o=Nt("li"),o.className="goCXli";var a=Nt("a");a.className="goCXa",a.href="#",a.ky=r.hx,a.addEventListener("pointerdown",function(l){return this.ky(e),t.stopTool(),l.preventDefault(),!1},!1),a.textContent=r.text,o.appendChild(a),n.appendChild(o)}}dr.style.display="block",bo.style.display="block"},ji.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===ui){dr.style.display="none",bo.style.display="none";var e=this.diagram;e!==null&&e.removeEventListener(bo,"pointerdown",this.tu,!1),this.currentContextMenu=null}},ht.Object.defineProperties(ji.prototype,{currentContextMenu:{get:function(){return this.j},set:function(e){this.j=e,this.ht=e instanceof Zr?e.adornedPart:null}},defaultTouchContextMenu:{get:function(){return io===!1&&ui===null&&Ea&&si(this),ui},set:function(e){e===null&&(io=!0),ui=e}},currentObject:{get:function(){return this.o},set:function(e){this.o=e}},mouseDownPoint:{get:function(){return this.yw}}});var ui=null,io=!1,bo=null,dr=null;ji.className="ContextMenuTool",li("contextMenuTool",function(){return this.findTool("ContextMenu")},function(e){this.gb("ContextMenu",e,this.mouseUpTools)});function Qi(){Ir.call(this),this.name="TextEditing",this.Zh=new Mo,this.ia=null,this.V=sr,this.vj=null,this.qa=$t,this.u=1,this.F=!0,this.o=null,this.j=new ii,this.kt=null,oo(this,this.j)}yi(Qi,Ir);function oo(e,t){if(Ea){var n=Nt("textarea");e.kt=n,n.addEventListener("input",function(){if(e.textBlock!==null){var i=e.Lx(this.value);this.style.width=20+i.measuredBounds.width*this.wA+"px",this.rows=i.lineCount}},!1),n.addEventListener("keydown",function(i){if(!i.isComposing&&e.textBlock!==null){var r=i.key;r==="Enter"?(e.textBlock.isMultiline===!1&&i.preventDefault(),e.acceptText(ir)):r==="Tab"?(e.acceptText(Gi),i.preventDefault()):r==="Escape"&&(e.doCancel(),e.diagram!==null&&e.diagram.doFocus())}},!1),n.addEventListener("focus",function(){if(e.currentTextEditor!==null&&e.state!==$t){var i=e.kt;e.qa===zr&&(e.qa=fo),typeof i.select=="function"&&e.selectsTextOnActivate&&(i.select(),i.setSelectionRange(0,9999))}},!1),n.addEventListener("blur",function(){if(e.currentTextEditor!==null&&e.state!==$t){var i=e.kt;typeof i.focus=="function"&&i.focus(),typeof i.select=="function"&&e.selectsTextOnActivate&&(i.select(),i.setSelectionRange(0,9999))}},!1),t.valueFunction=function(){return n.value},t.mainElement=n,t.show=function(i,r,o){if(i instanceof Mo&&o instanceof Qi)if(o.state===da)n.style.border="3px solid red",n.focus();else{var a=i.ga(Rr),l=r.position,u=r.scale,f=i.Df()*u;f<o.minimumEditorScale&&(f=o.minimumEditorScale);var p=i.naturalBounds.width*f+6,x=i.naturalBounds.height*f+2,N=(a.x-l.x)*u;a=(a.y-l.y)*u,l=i.verticalAlignment,u=(i.lineHeight+i.spacingAbove+i.spacingBelow)*i.lineCount*f,x=l.y*x-l.y*u+l.offsetY-(.5*x-.5*u)-u/2,n.value=i.text,r.div.style.font=i.font,n.style.position="absolute",n.style.zIndex="100",n.style.font="inherit",n.style.fontSize=100*f+"%",n.style.lineHeight="normal",n.style.width=p+"px",n.style.left=(N-p/2|0)-1+"px",n.style.top=(a+x|0)-1+"px",n.style.textAlign=i.textAlign,n.style.margin="0",n.style.padding="1px",n.style.border="0",n.style.outline="none",n.style.whiteSpace="pre-wrap",n.style.overflow="hidden",n.rows=i.lineCount,n.wA=f,n.className="goTXarea",r.div.appendChild(n),n.focus(),o.selectsTextOnActivate&&(n.select(),n.setSelectionRange(0,9999))}},t.hide=function(i){i.div.removeChild(n)}}}Qi.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;if(e===null||e.isReadOnly||es&&es!==this&&(es.acceptText(_r),es&&es!==this)||!e.lastInput.left||this.isBeyondDragSize())return!1;var t=e.ic(e.lastInput.documentPoint);return t!==null&&t instanceof Mo&&t.editable&&t.part.canEdit()?(t=t.part,!(t===null||this.starting===sr&&!t.isSelected||this.starting===ho&&2>e.lastInput.clickCount)):!1},Qi.prototype.doStart=function(){es=this,this.textBlock!==null&&this.doActivate()},Qi.prototype.doActivate=function(){if(!this.isActive){var e=this.diagram;if(e!==null){var t=this.textBlock;if(t===null&&(t=e.ic(e.lastInput.documentPoint)),t!==null&&t instanceof Mo&&(this.textBlock=t,t.part!==null)){e.animationManager.Cc(),this.isActive=!0,this.qa=zr;var n=this.defaultTextEditor;t.textEditor!==null&&(n=t.textEditor),this.Zh=this.textBlock.copy();var i=new Zt(this.textBlock.ga(Jo),this.textBlock.ga(Bo));e.tv(i),n.show(t,e,this),this.currentTextEditor=n}}}},Qi.prototype.doCancel=function(){this.stopTool()},Qi.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},Qi.prototype.doMouseDown=function(){this.isActive&&this.acceptText(_r)},Qi.prototype.acceptText=function(e){switch(e){case _r:this.qa===Ta?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===zr||this.qa===da||this.qa===fo)&&(this.qa=un,to(this));break;case pr:case ir:case Gi:(ir!==e||this.textBlock.isMultiline!==!0)&&(this.qa===zr||this.qa===da||this.qa===fo)&&(this.qa=un,to(this))}};function to(e){var t=e.textBlock,n=e.diagram,i=e.currentTextEditor;if(t!==null&&i!==null){var r=t.text,o="";i.valueFunction!==null&&(o=i.valueFunction()),e.isValidText(t,r,o)?(e.Ea(e.name),e.qa=Ta,e.transactionResult=e.name,t.text=o,e.doSuccess(r,o),n!==null&&n.R("TextEdited",t,r),e.stopTransaction(),e.stopTool(),n!==null&&n.doFocus()):(e.qa=da,e.doError(r,o))}}Qi.prototype.doError=function(e,t){var n=this.textBlock;n.errorFunction!==null&&n.errorFunction(this,e,t),(e=this.currentTextEditor)&&e.show(n,this.diagram,this)},Qi.prototype.doSuccess=function(e,t){var n=this.textBlock;n.textEdited!==null&&n.textEdited(n,e,t)},Qi.prototype.doDeactivate=function(){var e=this.diagram;e!==null&&(this.qa=$t,this.currentTextEditor!==null&&this.currentTextEditor.hide(e,this),this.textBlock=null,this.isActive=!1)},Qi.prototype.doStop=function(){es=null},Qi.prototype.isValidText=function(e,t,n){var i=this.textValidation;return i!==null&&!i(e,t,n)?!1:(i=e.textValidation,!!(i===null||i(e,t,n)))},Qi.prototype.Lx=function(e){var t=this.Zh;return t.text=e,t.measure(this.textBlock.Ih,1/0),t},ht.Object.defineProperties(Qi.prototype,{textBlock:{get:function(){return this.ia},set:function(e){this.ia=e}},currentTextEditor:{get:function(){return this.o},set:function(e){this.o=e}},defaultTextEditor:{get:function(){return this.j},set:function(e){this.j=e}},starting:{get:function(){return this.V},set:function(e){this.V=e}},textValidation:{get:function(){return this.vj},set:function(e){this.vj=e}},minimumEditorScale:{get:function(){return this.u},set:function(e){this.u=e}},selectsTextOnActivate:{get:function(){return this.F},set:function(e){this.F=e}},state:{get:function(){return this.qa},set:function(e){this.qa!==e&&(this.qa=e)}}}),Qi.prototype.measureTemporaryTextBlock=Qi.prototype.Lx;var pr=new Yt(Qi,"LostFocus",0),_r=new Yt(Qi,"MouseDown",1),Gi=new Yt(Qi,"Tab",2),ir=new Yt(Qi,"Enter",3),vr=new Yt(Qi,"SingleClick",0),sr=new Yt(Qi,"SingleClickSelected",1),ho=new Yt(Qi,"DoubleClick",2),$t=new Yt(Qi,"StateNone",0),zr=new Yt(Qi,"StateActive",1),fo=new Yt(Qi,"StateEditing",2),un=new Yt(Qi,"StateValidating",3),da=new Yt(Qi,"StateInvalid",4),Ta=new Yt(Qi,"StateValidated",5),es=null;Qi.className="TextEditingTool",Qi.LostFocus=pr,Qi.MouseDown=_r,Qi.Tab=Gi,Qi.Enter=ir,Qi.SingleClick=vr,Qi.SingleClickSelected=sr,Qi.DoubleClick=ho,Qi.StateNone=$t,Qi.StateActive=zr,Qi.StateEditing=fo,Qi.StateValidating=un,Qi.StateInvalid=da,Qi.StateValidated=Ta,li("textEditingTool",function(){return this.findTool("TextEditing")},function(e){this.gb("TextEditing",e,this.mouseUpTools)});function Fo(e){Yn||(nt(),Yn=!0),this.H=ft,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=wi,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new Xt,this.ce=new Gn,this.ce.Yd=this,this.Ei=new Xt,this.pu=new Xt,this.Sr=new Xt,this.pr=new Xt,e&&Object.assign(this,e)}Fo.prototype.Xe=function(e){this.H=e},Fo.prototype.canStart=function(){return!0};function qo(e,t){e.Jd&&e.canStart(t)&&(e.Zd.add(t),e.defaultAnimation.isAnimating&&e.Cc(),Ka(e.H),e.zb=!0)}function ta(e){if(e.Jd&&e.zb){var t=e.ce,n=e.H,i=e.Zd.contains("Model");i&&(e.Ok=!0,e.Pk===wi?(t.isViewportUnconstrained=!0,t.vc.clear(),t.add(n,"position",n.position.copy().offset(0,-200),n.position),t.add(n,"opacity",0,1)):e.Pk===Hr&&t.vc.clear(),e.Qw=!!(e.Pk===Cr&&n.du.D(n.pa)),n.R("InitialAnimationStarting",e)),i&&!e.Gh||t.vc.count===0?(e.Zd.clear(),e.zb=!1,t.vc.clear(),Hi(t,n),e.Ok=!1,n.N()):(e.Zd.clear(),n.kg=!1,i=t.vc.get(n),n.autoScale!==sl&&i!==null&&(delete i.start.scale,delete i.end.scale),Ke.requestAnimationFrame(function(){e.zb===!1||t.bc||(n.Gf("temporaryPixelRatio")&&$i(n),$r(n),e.zb=!1,t.start(),t.bc&&(Zo(e),n.Ya(),Rs(t,0),ps(n,!0),Sa(e),n.R("AnimationStarting",e)))}))}}function ya(e){return e.Zd.contains("Trigger")&&e.Zd.count===1}function zs(e,t,n,i){e.isTicking||ya(e)||t instanceof Pn&&(t.fromNode!==null||t.toNode!==null)||e.ce.add(t,"position",n,i,!1)}U=Fo.prototype,U.fv=function(e){return this.ce.fv(e)},U.Xu=function(e){return this.ce.Xu(e)};function ko(e,t){function n(){if(0<r.Sr.count&&(i.addAll(r.Sr),r.Sr.clear(),r.bc=!0),r.bc!==!1&&i.count!==0){r.pu.addAll(i);for(var o=r.pu.iterator;o.next();){var a=o.value;if(a.bc!==!1){e:if(0<a.yl.count)var l=!0;else{for(l=a.vc.iterator;l.next();){var u=l.key;if(u instanceof st&&u.diagram!==null||u instanceof Y){l=!0;break e}}l=!1}l?$o(a,!1):a.Xk=!0}}r.pu.clear(),r.bc!==!1&&(Zo(r),ps(r.H),Sa(r)),Ke.requestAnimationFrame(n)}}var i=e.Ei,r=e;e.bc?e.Sr.add(t):(e.bc=!0,i.add(t),Ke.requestAnimationFrame(function(){n()}))}function Ho(e){for(e=e.Ei.iterator;e.next();)e.value.Xk=!1}function Zo(e){if(!e.vq){var t=e.H;e.Ow=t.skipsUndoManager,e.cw=t.skipsModelSourceBindings,t.skipsUndoManager=!0,t.skipsModelSourceBindings=!0,e.vq=!0}}function Sa(e){var t=e.H;t.skipsUndoManager=e.Ow,t.skipsModelSourceBindings=e.cw,e.vq=!1}U.Cc=function(e){var t=this.ce;if(this.zb===!0&&(this.Ok=this.zb=!1,this.Zd.clear(),0<t.vc.count&&this.H.$b()),this.bc){if(t.Ml(!0),t.vc.clear(),Hi(t,null),e===!0)for(e=this.Ei.Fa(),t=0;t<e.length;t++)e[t].Ml(!0)}else t.vc.clear(),Hi(t,this.H)},U.Ml=function(e){e===this.defaultAnimation&&this.defaultAnimation.vc.clear(),this.Ei.remove(e),this.Ei.count===0&&(this.bc=!1,this.H.$b()),e===this.defaultAnimation&&(this.defaultAnimation.vc.clear(),this.H.R("AnimationFinished",this))},U.Cj=function(e,t){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(e,t),g(this,e))},U.Aj=function(e,t){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(e,t),Or(this.ce,t,"position",t.position,t.position),g(this,e))};function Ha(e,t,n){!e.zb||t.D(n)||ya(e)||(e.H.pi||(t=n.copy()),Or(e.ce,e.H,"position",t,n))}function d(e,t,n){t.fd&&(t.Tg=n,e.pr.add(t))}function g(e,t){for(t=t.findLinksConnected();t.next();){var n=t.value;n.fd&&(n.Tg=n.points.copy(),e.pr.add(n))}}function K(e,t,n,i,r){e===null&&(e=[0,0,0,0]),t===null&&(t=[0,0,0,0]);var o=e[0],a=e[1],l=e[2];e=e[3];var u=t[0],f=t[1],p=t[2];return t=t[3],l===0||l===100?(o=u,a=f):(p===0||p===100)&&(u=o,f=a),180<Math.abs(u-o)&&(u>o?o+=360:u+=360),o=r(n,o,u-o,i)%360,a=r(n,a,f-a,i),l=r(n,l,p-l,i),n=r(n,e,t-e,i),"hsla("+o+", "+a+"%, "+l+"%, "+n+")"}function nt(){function e(n,i,r,o,a,l){n.position=new he(o(a,i.x,r.x-i.x,l),o(a,i.y,r.y-i.y,l))}var t=new Zn;t.add("position:diagram",e),t.add("position",e),t.add("position:part",function(n,i,r,o,a,l){a<l?n.mm(o(a,i.x,r.x-i.x,l),o(a,i.y,r.y-i.y,l),!1):n.position=new he(o(a,i.x,r.x-i.x,l),o(a,i.y,r.y-i.y,l))}),t.add("location",function(n,i,r,o,a,l){a<l?n.mm(o(a,i.x,r.x-i.x,l),o(a,i.y,r.y-i.y,l),!0):n.location=new he(o(a,i.x,r.x-i.x,l),o(a,i.y,r.y-i.y,l))}),t.add("position:placeholder",function(n,i,r,o,a,l){a<l?n.mm(o(a,i.x,r.x-i.x,l),o(a,i.y,r.y-i.y,l),!1):n.position=new he(o(a,i.x,r.x-i.x,l),o(a,i.y,r.y-i.y,l))}),t.add("position:nodeCollapse",function(n,i,r,o,a,l){var u=n.actualBounds,f=r.actualBounds;r=f.x+f.width/2-u.width/2,u=f.y+f.height/2-u.height/2,a<l?n.mm(o(a,i.x,r-i.x,l),o(a,i.y,u-i.y,l),!1):n.position=new he(o(a,i.x,r-i.x,l),o(a,i.y,u-i.y,l))}),t.add("desiredSize",function(n,i,r,o,a,l){n.desiredSize=new Zt(o(a,i.width,r.width-i.width,l),o(a,i.height,r.height-i.height,l))}),t.add("width",function(n,i,r,o,a,l){n.width=o(a,i,r-i,l)}),t.add("height",function(n,i,r,o,a,l){n.height=o(a,i,r-i,l)}),t.add("fill",function(n,i,r,o,a,l){n.fill=K(i,r,a,l,o)}),t.add("stroke",function(n,i,r,o,a,l){n.stroke=K(i,r,a,l,o)}),t.add("strokeWidth",function(n,i,r,o,a,l){n.strokeWidth=o(a,i,r-i,l)}),t.add("strokeDashOffset",function(n,i,r,o,a,l){n.strokeDashOffset=o(a,i,r-i,l)}),t.add("background",function(n,i,r,o,a,l){n.background=K(i,r,a,l,o)}),t.add("areaBackground",function(n,i,r,o,a,l){n.areaBackground=K(i,r,a,l,o)}),t.add("opacity",function(n,i,r,o,a,l){n.opacity=o(a,i,r-i,l)}),t.add("scale",function(n,i,r,o,a,l){n.scale=o(a,i,r-i,l)}),t.add("angle",function(n,i,r,o,a,l){n.angle=o(a,i,r-i,l)}),gn=t}ht.Object.defineProperties(Fo.prototype,{animationReasons:{get:function(){return this.Zd}},isEnabled:{get:function(){return this.Jd},set:function(e){(this.Jd=e)&&this.Ei.each(function(t){t.isAnimating||t.runCount!==1/0||t.start()})}},duration:{get:function(){return this.Dg},set:function(e){1>e&&Lt(e,">= 1",Fo,"duration"),this.Dg=e}},isAnimating:{get:function(){return this.bc}},isTicking:{get:function(){return this.vq}},isInitial:{get:function(){return this.Gh},set:function(e){this.Gh=e}},defaultAnimation:{get:function(){return this.ce}},activeAnimations:{get:function(){return this.Ei}},initialAnimationStyle:{get:function(){return this.Pk},set:function(e){this.Pk=e}}}),Fo.prototype.stopAnimation=Fo.prototype.Cc;var gn=null,Yn=!1,wi=new Yt(Fo,"Default",1),Cr=new Yt(Fo,"AnimateLocations",2),Hr=new Yt(Fo,"None",3);Fo.className="AnimationManager",Fo.defineAnimationEffect=function(e,t){Yn||(nt(),Yn=!0),gn.add(e,t)},Fo.Default=wi,Fo.AnimateLocations=Cr,Fo.None=Hr;function Gn(e){this.vu=this.Nw=this.Yd=this.H=null,this.Xk=this.bc=this.j=!1,this.cn=this.Qd=0,this.Lp=this.ot=Ds,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=gr,this.vc=new Zn,this.Tt=new Zn,this.yl=new Xt,this.Ut=new Xt,this.dw=ph,e&&Object.assign(this,e)}Gn.prototype.suspend=function(){this.Xk=!0},Gn.prototype.advanceTo=function(e,t){t&&(this.Xk=!1),this.ho&&e>=this.Gd&&(this.Wk=!0,e-=this.Gd),this.gw=e,$o(this,!0),Zo(this.Yd),ps(this.H),Sa(this.Yd),this.H.redraw()};function Hi(e,t){if(e.Tt.clear(),e.Wk=!1,e.au=0,e.Gd=NaN,0<e.yl.count&&e.yl.clear(),0<e.Ut.count&&e.Ut.clear(),t!==null)for(e=t.links;e.next();)e.value.Tg=null}U=Gn.prototype,U.start=function(){if(this.vc.count===0||this.bc)return this;for(var e=this.H,t=this.vc.iterator;t.next();){var n=t.key;e===null&&(n instanceof Y?e=n:n instanceof st&&(e=n.diagram))}if(e!==null)this.H=e,this.Yd=e.animationManager;else return this;return t=this.Yd,t.isEnabled===!1?this:(this.Gd=isNaN(this.Dg)?t.duration:this.Dg,this.Lp=this.ot,t.Ok&&t.Pk===wi&&this===t.defaultAnimation&&(this.Lp=Ps,this.Gd=isNaN(this.Dg)?t.duration===600?900:t.duration:this.Dg),this.dw=e.scrollMode,this.isViewportUnconstrained&&(e.sj=Fd),Zo(t),this.yl.each(function(i){i.data=null,e.add(i)}),Sa(t),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,ko(t,this),this)},U.Iy=function(e,t){return e.Zc()?(this.yl.add(e),this.H=t,this):this},U.add=function(e,t,n,i,r){if(t==="position"&&n.Xa(i))return this;if(this.H===null&&(e instanceof Y?this.H=e:e instanceof st&&e.diagram!==null&&(this.H=e.diagram)),e instanceof Ci){if(!e.isAnimated)return this;t==="position"&&(t="position:part")}return Or(this,e,t,n,i,r),this};function Or(e,t,n,i,r,o){var a=e.vc;if(t instanceof Y&&n==="position"&&(n="position:diagram"),(n==="fill"||n==="stroke"||n==="background"||n==="areaBackground")&&(qc(i),mg(),i=[xu.j,xu.u,xu.o,xu.F],qc(r),mg(),r=[xu.j,xu.u,xu.o,xu.F]),a.contains(t)){var l=a.I(t),u=l.start,f=l.end;u[n]===void 0&&(u[n]=Vr(i)),f[n]=Vr(r)}else u={},f={},u[n]=Vr(i),f[n]=Vr(r),l=u.position,t instanceof st&&l instanceof he&&!l.w()&&t.diagram.animationManager.Zd.contains("Expand SubGraph")&&l.assign(f.position),l=new ol(u,f,o),a.add(t,l);a=u[n],a instanceof he&&!a.w()&&a.assign(e.o),o&&n.indexOf("position:")===0&&t instanceof Ci?l.Ku.location=Vr(t.location):o&&(l.Ku[n]=Vr(i))}function Vr(e){return e instanceof he||e instanceof pi?e.copy():e}U.fv=function(e){return this.bc?(e=this.vc.I(e),e!==null&&e.nv):!1},U.Xu=function(e){return this.bc?(e=this.vc.I(e),e!==null&&(e.start.position||e.start.location)):!1};function $o(e,t){if(!e.Xk||t){var n=e.Yd;if(e.bc!==!1){var i=+new Date,r=i>e.cn?e.Gd:i-e.Qd;t&&(r=e.gw,r<e.Gd?(e.Qd=+new Date-r,e.cn=e.Qd+e.Gd):r=e.Gd),Zo(n),Rs(e,r),ps(e.H,!0),Sa(n),i>e.cn&&(e.ho&&!e.Wk?(e.Qd=+new Date,e.cn=e.Qd+e.Gd,e.Wk=!0):e.Ml(!1))}}}function Rs(e,t){for(var n=e.Gd,i=e.vc.iterator,r=e.Wk;i.next();){var o=i.key;if(!(o instanceof st&&o.diagram===null)){var a=i.value,l=r?a.end:a.start;a=r?a.start:a.end;var u=gn,f;for(f in a)f==="position"&&(a["position:placeholder"]||a["position:nodeCollapse"])||u.get(f)===null||u.get(f)(o,l[f],a[f],e.Lp,t,n,e)}}}U.stop=function(){return this.bc?(this.Ml(!0),this):this},U.Ml=function(e){if(this.vu!==null&&this.vu.jo.remove(this.Nw),this.bc){var t=this.H,n=this.Yd;this.Xk=this.bc=n.Ok=!1,Zo(n);for(var i=this.vc,r=this.yl.iterator;r.next();)t.remove(r.value);for(r=this.Ut.iterator;r.next();)r.value.v();r=this.ho,i=i.iterator;for(var o=gn;i.next();){var a=i.key,l=i.value,u=r?l.end:l.start,f=r?l.start:l.end,p=l.Ku,x;for(x in f)if(o.get(x)!==null){var N=x;!l.Hu||N!=="position:nodeCollapse"&&N!=="position:placeholder"||(N="position"),o.get(N)(a,u[x],p[x]!==void 0?p[x]:l.Hu?u[x]:f[x],this.Lp,this.Gd,this.Gd,this)}l.Hu&&p.location!==void 0&&a instanceof Ci&&(a.location=p.location),l.nv&&a instanceof Ci&&a.Zb(!1)}if(t.As.clear(),Nr(t,!1),t.Ya(),t.N(),ps(t,!0),n.defaultAnimation===this){for(x=n.pr.iterator;x.next();)r=x.value,r.Tg!==null&&(r.points=r.Tg,r.Tg=null);n.pr.clear()}ps(t,!0),this.isViewportUnconstrained&&(t.scrollMode=this.dw),Sa(n),this.au++,!e&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),Hi(this,null),n.Ml(this),t.$b())}},U.Cj=function(e,t){var n=t.actualBounds,i=null;if(t instanceof qi&&(i=t.placeholder),i!==null?(n=i.ga(Jo),i=i.padding,n.x+=i.left,n.y+=i.top,this.add(e,"position",n,e.position,!1)):this.add(e,"position",new he(n.x+n.width/2,n.y+n.height/2),e.position,!1),this.add(e,"scale",.01,e.scale,!1),e instanceof qi)for(e=e.memberParts;e.next();)i=e.value,i instanceof Xn&&this.Cj(i,t)},U.Aj=function(e,t){if(e.isVisible()){var n=null;if(t instanceof qi&&(n=t.placeholder),n!==null){var i=n.ga(Jo);n=n.padding,i.x+=n.left,i.y+=n.top,this.add(e,"position:placeholder",e.position,i,!0)}else this.add(e,"position:nodeCollapse",e.position,t,!0);if(this.add(e,"scale",e.scale,.01,!0),i=this.vc,i.contains(e)&&(i.I(e).nv=!0),e instanceof qi)for(e=e.memberParts;e.next();)i=e.value,i instanceof Xn&&this.Aj(i,t)}},U.Ez=function(e){var t=this.Tt.get(e);return t===null&&(t={},this.Tt.add(e,t)),t},ht.Object.defineProperties(Gn.prototype,{duration:{get:function(){return this.Dg},set:function(e){1>e&&Lt(e,">= 1",Gn,"duration"),this.Dg=e}},reversible:{get:function(){return this.ho},set:function(e){this.ho=e}},runCount:{get:function(){return this.cu},set:function(e){0<e?this.cu=e:Ve("Animation.runCount value must be a positive integer.")}},finished:{get:function(){return this.dn},set:function(e){this.dn!==e&&(this.dn=e)}},easing:{get:function(){return this.ot},set:function(e){this.ot=e}},isViewportUnconstrained:{get:function(){return this.j},set:function(e){this.j=e}},isAnimating:{get:function(){return this.bc}}}),Gn.prototype.getTemporaryState=Gn.prototype.Ez,Gn.prototype.stop=Gn.prototype.stop,Gn.prototype.add=Gn.prototype.add,Gn.prototype.addTemporaryPart=Gn.prototype.Iy;function Ds(e,t,n,i){return e/=i/2,1>e?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t}function Ps(e,t,n,i){return e===i?t+n:n*(-Math.pow(2,-10*e/i)+1)+t}Gn.className="Animation",Gn.EaseLinear=function(e,t,n,i){return n*e/i+t},Gn.EaseInOutQuad=Ds,Gn.EaseInQuad=function(e,t,n,i){return n*(e/=i)*e+t},Gn.EaseOutQuad=function(e,t,n,i){return-n*(e/=i)*(e-2)+t},Gn.EaseInExpo=function(e,t,n,i){return e===0?t:n*Math.pow(2,10*(e/i-1))+t},Gn.EaseOutExpo=Ps;function ol(e,t,n){this.start=e,this.end=t,this.Ku={},this.Hu=n,this.nv=!1}ol.className="AnimationState";function Ts(e,t,n){this.xd=null,this.rf=e,this.so=n||ra,this.uk=null,t!==void 0&&(this.uk=t,n===void 0&&(this.so=Na))}Ts.prototype.copy=function(){var e=new Ts(this.rf);e.so=this.so;var t=this.uk;if(t!==null){var n={};t.duration!==void 0&&(n.duration=t.duration),t.finished!==void 0&&(n.finished=t.finished),t.easing!==void 0&&(n.easing=t.easing),e.uk=n}return e};function po(e,t){e=e.uk,e!==null&&(e.duration&&(t.duration=e.duration),e.finished&&(t.finished=e.finished),e.easing&&(t.easing=e.easing))}ht.Object.defineProperties(Ts.prototype,{propertyName:{get:function(){return this.rf},set:function(e){this.rf=e}},animationSettings:{get:function(){return this.uk},set:function(e){this.uk=e}},startCondition:{get:function(){return this.so},set:function(e){this.so=e}}});var ra=new Yt(Ts,"Default",1),Na=new Yt(Ts,"Immediate",2),A=new Yt(Ts,"Bundled",3);Ts.className="AnimationTrigger",Ts.Default=ra,Ts.Immediate=Na,Ts.Bundled=A;function m(e){Li(this),this.H=null,this.Pa=new qt,this.xa="",this.pb=1,this.o=!1,this.j=this.Uh=this.u=this.Oi=this.Ni=this.Mi=this.Li=this.Ji=this.Ki=this.Ii=this.Qi=this.Hi=this.Pi=this.Gi=this.Fi=!0,this.Zq=[],e&&Object.assign(this,e)}U=m.prototype,U.clear=function(){for(var e=this.Pa,t=0;t<e.length;t++){var n=e.s[t];n.Ig=null,el(n)}e.clear(),this.Zq.length=0},U.Xe=function(e){this.H=e},U.toString=function(e){e===void 0&&(e=0);var t='Layer "'+this.name+'"';if(0>=e)return t;for(var n=0,i=0,r=0,o=0,a=0,l=this.Pa.iterator;l.next();){var u=l.value;u instanceof qi?r++:u instanceof Xn?i++:u instanceof Pn?o++:u instanceof Zr?a++:n++}if(l="",0<n&&(l+=n+" Parts "),0<i&&(l+=i+" Nodes "),0<r&&(l+=r+" Groups "),0<o&&(l+=o+" Links "),0<a&&(l+=a+" Adornments "),1<e)for(e=this.Pa.iterator;e.next();)n=e.value,l+=`
`+n.toString(),i=n.data,i!==null&&Mt(i)&&(l+=" #"+Mt(i)),n instanceof Xn?l+=" "+xn(i):n instanceof Pn&&(l+=" "+xn(n.fromNode)+" "+xn(n.toNode));return t+" "+this.Pa.count+": "+l},U.ic=function(e,t,n){if(t===void 0&&(t=null),n===void 0&&(n=null),this.Uh===!1)return null;var i=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(e)&&(i=!0);for(var r=he.alloc(),o=this.Pa.s,a=o.length;a--;){var l=o[a];if((i!==!0||Gh(l)!==!1)&&l.isVisible()&&(r.assign(e),Ki(r,l.oe),l=l.ic(r,t,n),l!==null&&(t!==null&&(l=t(l)),l!==null&&(n===null||n(l)))))return he.free(r),l}return he.free(r),null},U.ji=function(e,t,n,i){if(t===void 0&&(t=null),n===void 0&&(n=null),i instanceof qt||i instanceof Xt||(i=new Xt),this.Uh===!1)return i;var r=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(e)&&(r=!0);for(var o=he.alloc(),a=this.Pa.s,l=a.length;l--;){var u=a[l];if((r!==!0||Gh(u)!==!1)&&u.isVisible()){o.assign(e),Ki(o,u.oe);var f=u;u.ji(o,t,n,i)&&(t!==null&&(f=t(f)),f===null||n!==null&&!n(f)||i.add(f))}}return he.free(o),i},U.Cf=function(e,t,n,i,r){if(t===void 0&&(t=null),n===void 0&&(n=null),i===void 0&&(i=!1),r instanceof qt||r instanceof Xt||(r=new Xt),this.Uh===!1)return r;var o=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(e)&&(o=!0);for(var a=this.Pa.s,l=a.length;l--;){var u=a[l];if((o!==!0||Gh(u)!==!1)&&u.isVisible()){var f=u;u.Cf(e,t,n,i,r)&&(t!==null&&(f=t(f)),f===null||n!==null&&!n(f)||r.add(f))}}return r},U.Nu=function(e,t,n,i,r,o,a){if(this.Uh===!1)return r;for(var l=this.Pa.s,u=l.length;u--;){var f=l[u];if((a!==!0||Gh(f)!==!1)&&o(f)&&f.isVisible()){var p=f;f.Cf(e,t,n,i,r)&&(t!==null&&(p=t(p)),p===null||n!==null&&!n(p)||r.add(p))}}return r},U.og=function(e,t,n,i,r,o){if(n===void 0&&(n=null),i===void 0&&(i=null),r===void 0&&(r=!0),r!==!1&&r!==!0&&((r instanceof qt||r instanceof Xt)&&(o=r),r=!0),o instanceof qt||o instanceof Xt||(o=new Xt),this.Uh===!1)return o;var a=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(e)&&(a=!0);for(var l=he.alloc(),u=he.alloc(),f=this.Pa.s,p=f.length;p--;){var x=f[p];if((a!==!0||Gh(x)!==!1)&&x.isVisible()){l.assign(e),Ki(l,x.oe),u.h(e.x+t,e.y),Ki(u,x.oe);var N=x;x.og(l,u,n,i,r,o)&&(n!==null&&(N=n(N)),N===null||i!==null&&!i(N)||o.add(N))}}return he.free(l),he.free(u),o},U.Fd=function(e,t){if(this.visible){var n=this.Pa.s,i=n.length;if(i!==0){e=Rt();for(var r=Rt(),o=0;o<i;o++){var a=n[o];if(a.vw=o,a instanceof Pn){if(a.fd===!1)continue}else if(a instanceof Zr&&a.adornedPart!==null)continue;var l=a.actualBounds;a.isVisible()&&Ot(l,t)?(a.Fd(!0),e.push(a)):(a.Fd(!1),a.adornments!==null&&0<a.adornments.count&&r.push(a))}for(t=0;t<e.length;t++)for(n=e[t],Gg(n),n=n.adornments;n.next();)i=n.value,i.measure(1/0,1/0),i.arrange(),i.Fd(!0);for(t=0;t<r.length;t++)Gg(r[t]);Jt(e),Jt(r)}}};function S(e,t){var n=1;return e.pb!==1&&(n=t.globalAlpha,t.globalAlpha=n*e.pb),n}U.gc=function(e,t,n){if(this.visible&&this.pb!==0&&(n===void 0&&(n=!0),n||!this.isTemporary)){n=this.Pa.s;var i=n.length;if(i!==0){if(e.isTemporary)for(var r=0;r<i;r++)n[r].Gj();r=S(this,e);var o=this.Zq;o.length=0;for(var a=t.scale,l=Zt.alloc(),u=0;u<i;u++)this.Oj(e,n[u],t,o,a,l,!0);if(Zt.free(l),e.isTemporary)for(t=0;t<i;t++)n[t].Gj();e.globalAlpha=r}}};function D(e,t,n,i,r){if(e.visible&&e.pb!==0&&(r||!e.isTemporary)){r=e.Pa.s;var o=r.length;if(o!==0){var a=S(e,t),l=e.Zq;l.length=0;for(var u=n.scale,f=Zt.alloc(),p=0;p<o;p++){var x=r[p];i.contains(x)&&e.Oj(t,x,n,l,u,f,!1)}Zt.free(f),t.globalAlpha=a}}}U.Oj=function(e,t,n,i,r,o,a){if(a&&!Gh(t))e.Hs(t);else{if(i!==null&&t instanceof Pn&&(t.isOrthogonal&&i.push(t),t.fd===!1)){e.Hs(t);return}for(a=!1,i=t.containingGroup;i!==null;)a?i.tb!==null&&o.Ex(i.tb):i.tb!==null&&(a=!0,o.assign(i.tb)),i=i.containingGroup;var l=t.actualBounds;if(i=!1,a&&t.isVisible()){if(!o.Yc(l)){e.Hs(t);return}i=!o.Re(l)}i&&(e.save(),e instanceof ru?e.bk=o.copy():(e.beginPath(),e.rect(o.x,o.y,o.width,o.height),e.clip())),l.width*r>n.Oq||l.height*r>n.Oq?t.gc(e,n):(r=t.actualBounds,o=t.naturalBounds,r.width===0||r.height===0||isNaN(r.x)||isNaN(r.y)||!t.isVisible()||(n=t.transform,t.areaBackground!==null&&(Aa(t,e,t.areaBackground,!0,!0,o,r),e.fillRect(r.x,r.y,r.width,r.height)),t.areaBackground===null&&t.background===null&&(Aa(t,e,"rgba(0,0,0,0.3)",!0,!1,o,r),e.fillRect(r.x,r.y,r.width,r.height)),t.background!==null&&(e.transform(n.m11,n.m12,n.m21,n.m22,n.dx,n.dy),Aa(t,e,t.background,!0,!1,o,r),e.fillRect(0,0,o.width/2,o.height/2),n.ws()||(t=1/(n.m11*n.m22-n.m12*n.m21),e.transform(n.m22*t,-n.m12*t,-n.m21*t,n.m11*t,t*(n.m21*n.dy-n.m22*n.dx),t*(n.m12*n.dx-n.m11*n.dy)))))),i&&(e.restore(),e.Vc(!0))}},U.g=function(e,t,n,i,r){var o=this.diagram;o!==null&&o.cb(So,e,this,t,n,i,r)},U.oi=function(e,t,n){var i=this.Pa;if(t.Ig=this,this===null&&el(t),e>=i.count)e=i.count;else if(i.M(e)===t)return-1;return i.Gb(e,t),t.Vo(n),i=this.diagram,i!==null&&(n?i.N():i.oi(t)),Z(this,e,t),e},U.pc=function(e,t,n){if(!n&&t.layer!==this&&t.layer!==null)return t.layer.pc(e,t,n);var i=this.Pa;if(0>e||e>=i.length){if(e=i.indexOf(t),0>e)return-1}else if(i.M(e)!==t&&(e=i.indexOf(t),0>e))return-1;return t.Wo(n),i.mb(e),i=this.diagram,i!==null&&(n?i.N():i.pc(t)),t.Ig=null,el(t),e};function Z(e,t,n){if(t=se(e,t,n),n instanceof qi&&n!==null&&isNaN(n.zOrder)){if(n.memberParts.count!==0){for(var i=-1,r=e.Pa.s,o=r.length,a=0;a<o;a++){var l=r[a];if(l===n&&(t=a,0<=i)||0>i&&l.containingGroup===n&&(i=a,0<=t))break}!(0>i)&&i<t&&(r=e.Pa,r.mb(t),r.Gb(i,n))}t=n.containingGroup,t!==null&&Z(e,-1,t)}n.svg!==null&&n.svg.remove()}function se(e,t,n){var i=n.zOrder;if(isNaN(i))return t;e=e.Pa;var r=e.count;if(1>=r)return t;if(0>t&&(t=e.indexOf(n)),0>t)return-1;for(var o=t-1,a=NaN;0<=o&&(a=e.M(o).zOrder,!!isNaN(a));)o--;for(var l=t+1,u=NaN;l<r&&(u=e.M(l).zOrder,!!isNaN(u));)l++;if(!isNaN(a)&&a>i)for(;;){if(o===-1||a<=i){if(o++,o===t)break;return e.mb(t),e.Gb(o,n),o}for(a=NaN;0<=--o&&(a=e.M(o).zOrder,isNaN(a)););}else if(!isNaN(u)&&u<i)for(;;){if(l===r||u>=i){if(l--,l===t)break;return e.mb(t),e.Gb(l,n),l}for(u=NaN;++l<r&&(u=e.M(l).zOrder,isNaN(u)););}return t}ht.Object.defineProperties(m.prototype,{parts:{get:function(){return this.Pa.iterator}},partsBackwards:{get:function(){return this.Pa.iteratorBackwards}},diagram:{get:function(){return this.H}},name:{get:function(){return this.xa},set:function(e){var t=this.xa;if(t!==e){var n=this.diagram;if(n!==null)for(t===""&&Ve("Cannot rename default Layer to: "+e),n=n.layers;n.next();)n.value.name===e&&Ve("Layer.name is already present in this diagram: "+e);for(this.xa=e,this.g("name",t,e),e=this.Pa.iterator;e.next();)e.value.layerName=this.xa}}},opacity:{get:function(){return this.pb},set:function(e){var t=this.pb;t!==e&&((0>e||1<e)&&Lt(e,"0 <= value <= 1",m,"opacity"),this.pb=e,this.g("opacity",t,e),e=this.diagram,e!==null&&e.N())}},isTemporary:{get:function(){return this.o},set:function(e){var t=this.o;t!==e&&((this.o=e)&&(this.isInDocumentBounds=!1),this.g("isTemporary",t,e))}},visible:{get:function(){return this.u},set:function(e){var t=this.u;if(t!==e){for(this.u=e,this.g("visible",t,e),t=this.Pa.iterator;t.next();)t.value.Zb(e);e=this.diagram,e!==null&&e.N()}}},pickable:{get:function(){return this.Uh},set:function(e){var t=this.Uh;t!==e&&(this.Uh=e,this.g("pickable",t,e))}},isInDocumentBounds:{get:function(){return this.j},set:function(e){this.j!==e&&(this.j=e,this.diagram!==null&&this.diagram.Ya())}},allowCopy:{get:function(){return this.Fi},set:function(e){var t=this.Fi;t!==e&&(this.Fi=e,this.g("allowCopy",t,e))}},allowDelete:{get:function(){return this.Gi},set:function(e){var t=this.Gi;t!==e&&(this.Gi=e,this.g("allowDelete",t,e))}},allowTextEdit:{get:function(){return this.Pi},set:function(e){var t=this.Pi;t!==e&&(this.Pi=e,this.g("allowTextEdit",t,e))}},allowGroup:{get:function(){return this.Hi},set:function(e){var t=this.Hi;t!==e&&(this.Hi=e,this.g("allowGroup",t,e))}},allowUngroup:{get:function(){return this.Qi},set:function(e){var t=this.Qi;t!==e&&(this.Qi=e,this.g("allowUngroup",t,e))}},allowLink:{get:function(){return this.Ii},set:function(e){var t=this.Ii;t!==e&&(this.Ii=e,this.g("allowLink",t,e))}},allowRelink:{get:function(){return this.Ki},set:function(e){var t=this.Ki;t!==e&&(this.Ki=e,this.g("allowRelink",t,e))}},allowMove:{get:function(){return this.Ji},set:function(e){var t=this.Ji;t!==e&&(this.Ji=e,this.g("allowMove",t,e))}},allowReshape:{get:function(){return this.Li},set:function(e){var t=this.Li;t!==e&&(this.Li=e,this.g("allowReshape",t,e))}},allowResize:{get:function(){return this.Mi},set:function(e){var t=this.Mi;t!==e&&(this.Mi=e,this.g("allowResize",t,e))}},allowRotate:{get:function(){return this.Ni},set:function(e){var t=this.Ni;t!==e&&(this.Ni=e,this.g("allowRotate",t,e))}},allowSelect:{get:function(){return this.Oi},set:function(e){var t=this.Oi;t!==e&&(this.Oi=e,this.g("allowSelect",t,e))}}}),m.prototype.findObjectsNear=m.prototype.og,m.prototype.findObjectsIn=m.prototype.Cf,m.prototype.findObjectsAt=m.prototype.ji,m.prototype.findObjectAt=m.prototype.ic,m.className="Layer";function Y(e,t){if(y0||(Js(),y0=!0),Li(this),ft=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,Ea){var n=this,i=function(){n.removeEventListener(Ke.document,"DOMContentLoaded",i,!1),n.setRTL()};Ke.document.body!==null?this.setRTL():n.addEventListener(Ke.document,"DOMContentLoaded",i,!1)}this.ol=null,pf.add("Model",so);var r=this;return this.Hb=function(o){var a=r.partManager;if(o.model===a.diagram.model&&a.diagram.aa){a.diagram.aa=!1;try{var l=o.change;o.modelChange===""&&l===So&&a.updateDataBindings(o.object,o.propertyName)}finally{a.diagram.aa=!0}}},this.Oc=function(o){r.partManager.doModelChanged(o)},this.hu=this.ku=null,Sn(this),this.model=bv(),this.Wg=!0,jr(this),this.layout=new Qo,this.Wg=!1,this.ck=this.ek=this.fk=this.dk=this.ui=this.aA=this.$j=this.Ov=null,this.hk=function(){},this.preventDefault=null,this.rn=!1,this.Yf=new b0,e!==void 0&&(typeof e=="string"||Ke.Element&&e instanceof Element?Ti(this,e):t=e),this.vb=!1,t&&this.nm(t),this}var ct,ft;function Sn(e){e.Yd=new Fo,e.Yd.Xe(e),e.Db=17,e.Gw=!1,e.tn=!1,e.bu="default",e.Wa=new qt,e.pj=new Zn,e.nl="default",e.Tx(),e.Sx(),e.pb=1,e.pa=new he(NaN,NaN).freeze(),e.du=new he(NaN,NaN),e.Ca=1,e.Pp=1,e.zt=new he(NaN,NaN).freeze(),e.At=NaN,e.Ot=1e-4,e.Mt=100,e.Ab=new nr,e.zu=new he(NaN,NaN).freeze(),e.ut=new Zt(NaN,NaN,NaN,NaN).freeze(),e.rj=new mi(0,0,0,0).freeze(),e.sj=ph,e.nu=!1,e.Zt=null,e.fu=null,e.yh=sl,e.zk=Kr,e.Fg=sl,e.pq=Kr,e.yt=Jo,e.Bt=Jo,e.Fc=!0,e.pn=!1,e.De=new Xt,e.Eh=new Zn,e.Xm=!0,e.vp=250,e.vk=-1,e.xp=new mi(16,16,16,16).freeze(),e.kg=!1,e.Jk=!1,e.fn=!0,e.bq=new Va,e.bq.diagram=e,e.Qg=new Va,e.Qg.diagram=e,e.cj=new Va,e.cj.diagram=e,e.zg=null,e.pf=null,e.qu=!1,cg(e),e.ai=new Xt,e.Ht=!0,e.uu=mh,e.pw=!1,e.wu=Pd,e.it="auto",e.Op="auto",e.zh=null,e.Fh=null,e.Bh=null,e.Qh=null,e.Oh=null,e.Nh=null,e.Qt=null,e.Lh=null,e.xt=!1,e.Mh=null,e.Ph=null,e.$h=null,e.Ch=null,e.Rt=!1,e.Yt={},e.oj=[null,null],e.Wg=!1,e.Iw=!1,e.ou=!1,e.lt=!1,e.rw=!0,e.ld=!1,e.$i=!1,e.Tw=!0,e.Ce=-2,e.Og=new Zn,e.Xn=new qt,e.Gg=!1,e.Jd=!0,e.Us=!0,e.Fi=!0,e.Gi=!0,e.Vs=!1,e.Ws=!0,e.Pi=!0,e.Hi=!0,e.Qi=!0,e.Ys=!0,e.Ii=!0,e.Ki=!0,e.Ji=!0,e.Li=!0,e.Mi=!0,e.Ni=!0,e.Oi=!0,e.Zs=!0,e.at=!0,e.qw=!1,e.Vk=!1,e.mn=!0,e.nn=!0,e.Xs=!0,e.$s=!0,e.iu=16,e.mu=16,e.qr=!1,e.gu=!1,e.lu=0,e.ju=0,e.yb=new mi(5).freeze(),e.Hw=new Xt().freeze(),e.Nt=999999999,e.nw=new Xt().freeze(),e.Zi=!0,e.Ee=!0,e.vd=!0,e.Be=!1,e.gf=!1,e.xh=!0,e.hf=!1,e.sy=new Xt,e.ow=new Xt,e.Xh=null,e.aw=new pi(8,8),e.bw=999,e.Bw=1,e.Jw=0,e.fc={scale:1,position:new he,bounds:new Zt,Py:new pi,bA:new pi,Oz:!1},e.fc.canvasSize=e.fc.Py,e.fc.newCanvasSize=e.fc.bA,e.fc.isScroll=!1,e.Rw=new Zt(NaN,NaN,NaN,NaN).freeze(),e.wo=new pi(NaN,NaN).freeze(),e.Sp=new Zt(NaN,NaN,NaN,NaN).freeze(),e.It=!1,e.Lg=new Zn;var t=new Xn,n=new Mo;n.bind(new Ba("text","",xn)),t.add(n),e.ny=t,e.Lg.add("",t),t=new Xn,n=new Mo,n.stroke="brown",n.bind(new Ba("text","",xn)),t.add(n),e.Lg.add("Comment",t),t=new Xn,t.selectable=!1,t.avoidable=!1,n=new lr,n.figure="Ellipse",n.fill="black",n.stroke=null,n.desiredSize=new pi(3,3).ja(),t.add(n),e.Lg.add("LinkLabel",t),e.Yi=new Zn,t=new qi,t.selectionObjectName="GROUPPANEL",t.type=kn.Vertical,n=new Mo,n.font="bold 12pt sans-serif",n.bind(new Ba("text","",xn)),t.add(n),n=new kn(kn.Auto),n.name="GROUPPANEL";var i=new lr;i.figure="Rectangle",i.fill="rgba(128,128,128,0.2)",i.stroke="black",n.add(i),i=new Tl,i.padding=new mi(5,5,5,5).ja(),n.add(i),t.add(n),e.ly=t,e.Yi.add("",t),e.Kh=new Zn,t=new Pn,n=new lr,n.isPanelMain=!0,t.add(n),n=new lr,n.toArrow="Standard",n.fill="black",n.stroke=null,n.strokeWidth=0,t.add(n),e.my=t,e.Kh.add("",t),t=new Pn,n=new lr,n.isPanelMain=!0,n.stroke="brown",t.add(n),e.Kh.add("Comment",t),t=new Zr,t.type=kn.Auto,n=new lr,n.fill=null,n.stroke="dodgerblue",n.strokeWidth=3,t.add(n),n=new Tl,n.margin=new mi(1.5,1.5,1.5,1.5).ja(),t.add(n),e.St=t,e.wt=t,t=new Zr,t.type=kn.Link,n=new lr,n.isPanelMain=!0,n.fill=null,n.stroke="dodgerblue",n.strokeWidth=3,t.add(n),e.Kt=t,e.fe=null,e.mq=!1,e.Ck=null,e.partManager=new so,e.toolManager=new Co,e.toolManager.initializeStandardTools(),e.defaultTool=e.toolManager,e.currentTool=e.defaultTool,e.nt=null,e.Wm=new c,e.Vt=null,e.Wt=null,e.Mr=!1,e.commandHandler=Qn(),e.eq=null,e.fq=Zi,e.Pw=!1,e.Mb=1,e.Yh=null,e.Oq=1,e.Sq=0,e.zw=[0,0,0,0,0],e.Tq=0,e.yq=1,e.tw=0,e.uw=new he,e.zy=500,e.wp=new he,e.wq=!1}Y.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),dd=null,Uh="",Bn(this,!1),this.Xn.clear(),Af(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function Bn(e,t){e.animationManager.Cc(!0),e.Hw=new Xt().freeze(),e.nw=new Xt().freeze();var n=e.skipsUndoManager,i=e.cc!==null&&e.cc!==void 0;i&&(e.skipsUndoManager=!0);var r=null;e.fe!==null&&(r=e.fe.part,r!==null&&e.remove(r));var o=[],a=e.Wa.length;if(t){for(t=0;t<a;t++)for(var l=e.Wa.s[t].parts;l.next();){var u=l.value;u!==r&&u.data===null&&o.push(u)}for(t=0;t<o.length;t++)e.remove(o[t])}for(t=0;t<a;t++)e.Wa.s[t].clear();return e.partManager.clear(),e.De.clear(),e.Eh.clear(),e.ai.clear(),e.Ck=null,e.Xn.clear(),Af(),e.Og.clear(),Yi=[],r!==null&&(e.add(r),e.partManager.parts.remove(r)),i&&(e.skipsUndoManager=n),o}function Qn(){return null}Y.prototype.reset=function(){this.clear(),this.vb=!0,Sn(this),Ac(this),this.Wg=!0,jr(this),this.layout=new Qo,this.Wg=!1,this.model=bv(),this.model.undoManager=new yo,this.vb=this.rn=!1,this.N()},Y.prototype.setRTL=function(e){e=e===void 0?this.div:e,e===null&&(e=Ke.document.body);var t=Nt("div");t.dir="rtl",t.style.cssText="font-size: 14px; width: 1px; height: 1px; position: absolute; top: -1000px; overflow: scroll;",t.textContent="A",e.appendChild(t);var n="reverse";0<t.scrollLeft?n="default":(t.scrollLeft=1,t.scrollLeft===0&&(n="negative")),e.removeChild(t),this.bu=n},Y.prototype.setScrollWidth=function(e){e=e===void 0?this.div:e,e===null&&(e=Ke.document.body);var t=0;if(Ea){var n=v0;t=ct,n===null&&(n=v0=Nt("p"),n.style.width="100%",n.style.height="200px",n.style.boxSizing="content-box",t=ct=Nt("div"),t.style.position="absolute",t.style.visibility="hidden",t.style.width="200px",t.style.height="150px",t.style.boxSizing="content-box",t.appendChild(n)),t.style.overflow="hidden",e.appendChild(t);var i=n.offsetWidth;t.style.overflow="scroll",n=n.offsetWidth,i===n&&(n=t.clientWidth),e.removeChild(t),t=i-n,t!==0||Mi||(t=11)}this.Db=t,this.Gw=!0},Y.prototype.qb=function(e){e.classType===Y&&(this.autoScale=e)},Y.prototype.toString=function(e){e===void 0&&(e=0);var t="";if(this.div&&this.div.id&&(t=this.div.id),t='Diagram "'+t+'"',0>=e)return t;for(var n=this.Wa.iterator;n.next();)t+=`
`+n.value.toString(e-1);return t};function Ti(e,t){if(Ea){if(t!=null||Ve("Diagram setup requires an argument DIV."),e.Ka!==null&&Ve("Diagram has already completed setup."),typeof t=="string"?e.Ka=Ke.document.getElementById(t):t instanceof HTMLDivElement?e.Ka=t:Ve("No DIV or DIV id supplied: "+t),e.Ka===null&&Ve("Invalid DIV id; could not get element with id: "+t),e.Ka.H!==void 0&&Ve("Invalid div id; div already has a Diagram associated with it."),!e.ol&&Ke.ResizeObserver){var n=Fn(function(){e.$b()},250);e.ol=new Ke.ResizeObserver(function(){n()}),e.ol.observe(e.Ka)}Ke.getComputedStyle(e.Ka,null).position==="static"&&(e.Ka.style.position="relative"),t=5;var i="rgba(2"+t+"5, 255, 255, 0)";t--,e.Ka.style["-webkit-tap-highlight-color"]=i,e.Ka.innerHTML="",e.Ka.H=e,e.Ka.goDiagram=e,e.Ka.go=Ke.go;var r=new $u(e);if(r.style!==void 0&&(r.style.position="absolute",r.style.top="0px",r.style.left="0px",Ke.getComputedStyle(e.Ka,null).getPropertyValue("direction")==="rtl"&&(e.tn=!0),r.style.zIndex="2",r.style.userSelect="none",r.style.MozUserSelect="none",r.style.touchAction="none",r.style.letterSpacing="normal !important",r.style.wordSpacing="normal !important"),e.ta=r,e.ib=r.context,i=e.ib,e.Mb=e.computePixelRatio(),e.viewSize.w()||(e.Aa=e.Ka.clientWidth||1,e.ya=e.Ka.clientHeight||1),Cc(e,e.Aa,e.ya),e.Ka.insertBefore(r.Oa,e.Ka.firstChild),r=new $u(null),r.width=1,r.height=1,e.jw=r,e.oy=r.context,Ea){r=Nt("div");var o=Nt("div");r.style.position="absolute",r.style.overflow="auto",r.style.width=e.Aa+"px",r.style.height=e.ya+"px",r.style.zIndex="1",o.style.position="absolute",o.style.width="1px",o.style.height="1px",e.Ka.appendChild(r),r.appendChild(o),r.onscroll=jo,r.addEventListener("pointerdown",Ra),r.H=e,r.uy=!0,r.vy=!0,e.ku=r,e.hu=o}e.hk=Fn(function(){e.Yh=null,e.N()},300),e.Ov=Fn(function(){$r(e)},250),e.preventDefault=function(a){return a.preventDefault(),!1},e.$j=function(a){if(e.isEnabled){var l=Ns(e,a,!0);l.bubbles=!0;var u=0,f=0;l.delta=0,a.deltaX!==void 0?(a.deltaX!==0&&(u=0<a.deltaX?1:-1),a.deltaY!==0&&(f=0<a.deltaY?1:-1),l.delta=Math.abs(a.deltaX)>Math.abs(a.deltaY)?-u:-f):a.wheelDeltaX!==void 0?(a.wheelDeltaX!==0&&(u=0<a.wheelDeltaX?-1:1),a.wheelDeltaY!==0&&(f=0<a.wheelDeltaY?-1:1),l.delta=Math.abs(a.wheelDeltaX)>Math.abs(a.wheelDeltaY)?-u:-f):a.wheelDelta!==void 0&&a.wheelDelta!==0&&(l.delta=0<a.wheelDelta?1:-1),e.doMouseWheel(),Fs(l,a)}},e.aA=function(a){e.isEnabled&&(e.Vk=!1,Ns(e,a,!0),a=e.currentTool,a.cancelWaitAfter(),a.standardMouseOver())},e.ui=function(a){if(e.isEnabled){e.Vk=!0;var l=e.Yt;l[a.pointerId]===void 0&&(l[a.pointerId]=a),l=e.oj;var u=!1;if(l[0]===null||l[0].pointerId!==a.pointerId&&l[0].pointerType===a.pointerType)if(l[1]!==null&&l[1].pointerId===a.pointerId)l[1]=a,u=!0;else if(l[0]===null)l[0]=a;else if(l[1]===null)l[1]=a,u=!0;else{a.preventDefault();return}else l[0]=a;(l=a.pointerType==="touch"||a.pointerType==="pen")&&(e.qu=!1,e.wq=!0);var f=u;u=Vl(e,a,!0,!1,!0,f),ku(e,a,u),u.targetDiagram=al(a,a.target),u.targetObject=null,f||u.clone(e.bq),f=e.uw,l=l?25:10,a.timeStamp-e.tw<e.zy&&!(Math.abs(f.x-a.screenX)>l||Math.abs(f.y-a.screenY)>l)?e.yq++:e.yq=1,u.clickCount=e.yq,e.tw=a.timeStamp,e.uw.sg(a.screenX,a.screenY),e.doMouseDown(),a.button===1?a.preventDefault():Fs(u,a)}},e.dk=function(a){if(e.isEnabled){e.Vk=!0;var l=e.oj;if(l[0]===null||l[0].pointerId!==a.pointerId&&l[0].pointerType===a.pointerType){if(l[1]!==null&&l[1].pointerId===a.pointerId){l[1]=a;return}if(l[0]===null)l[0]=a;else return}else l[0]=a;if(l[0].pointerId===a.pointerId){l=Vl(e,a,!1,!1,!1,l[1]!==null);var u=Ke.document.elementFromPoint(a.clientX,a.clientY)||null;u!==null&&u.shadowRoot!==void 0&&u.shadowRoot!==null&&(u=u.shadowRoot.elementFromPoint(a.clientX,a.clientY));var f=e,p=a;u&&u.H&&(p=a,f=u.H),l.targetDiagram=f,ku(e,p,l),l.targetObject=null,e.doMouseMove(),Fs(l,a)}}},e.fk=function(a){if(e.isEnabled){e.Vk=!0;var l=a.pointerType==="touch"||a.pointerType==="pen",u=e.Yt;if(l&&e.qu)delete u[a.pointerId],a.preventDefault();else if(u=e.oj,u[0]===null||u[0].pointerId!==a.pointerId&&u[0].pointerType===a.pointerType)u[1]!==null&&u[1].pointerId===a.pointerId&&(u[1]=null);else{u[0]=null,u=Vl(e,a,!1,!0,!0,!1);var f=Ke.document.elementFromPoint(a.clientX,a.clientY)||null;f!==null&&f.shadowRoot!==void 0&&f.shadowRoot!==null&&(f=f.shadowRoot.elementFromPoint(a.clientX,a.clientY)),f!==null&&f.H instanceof Y&&f.H!==e&&ku(f.H,a,u),f===null&&(f=a.target),ku(e,a,u),u.clickCount=e.yq,u.targetDiagram=al(a,f),u.targetObject=null,e.doMouseUp(),Fs(u,a),l&&(e.wq=!1)}}},e.ek=function(a){if(e.isEnabled){e.Vk=!1;var l=e.Yt;l[a.pointerId]&&delete l[a.pointerId],l=e.oj,l[0]!==null&&l[0].pointerId===a.pointerId&&(l[0]=null),l[1]!==null&&l[1].pointerId===a.pointerId&&(l[1]=null),a.pointerType!=="touch"&&a.pointerType!=="pen"&&(a=e.currentTool,a.cancelWaitAfter(),a.standardMouseOver())}},e.ck=function(a){var l=e.oj;l[0]!==null&&l[0].pointerId===a.pointerId?(l[0]=null,e.wq=!1):l[1]!==null&&l[1].pointerId===a.pointerId&&(l[1]=null)},e.Vp=i.Z["d"+_d[1]+_d[2]+"wI"+pd.slice(1,5)]["b"+Vb.slice(1,t)](i.Z,Bd,t,t),i.Vc(!0),Ni(e),e.nl==="svg"&&(t=e.pj.get("svg"),e.Ka.appendChild(t.Oa),e.ib=t.context)}}Y.prototype.addEventListener=function(e,t,n,i){e.addEventListener(t,n,{capture:i,passive:!1})},Y.prototype.removeEventListener=function(e,t,n,i){e.removeEventListener(t,n,{capture:i})};function Ni(e){var t=e.ta.Oa;t instanceof HTMLCanvasElement||(t=e.div),e.addEventListener(t,"pointerdown",e.ui,!1),e.addEventListener(t,"pointermove",e.dk,!1),e.addEventListener(t,"pointerup",e.fk,!1),e.addEventListener(t,"pointerout",e.ek,!1),e.addEventListener(t,"pointercancel",e.ck,!1),e.addEventListener(t,"pointerenter",e.bz,!1),e.addEventListener(t,"pointerleave",e.cz,!1),e.addEventListener(t,"wheel",e.$j,!1),e.addEventListener(t,"keydown",e.Qz,!1),e.addEventListener(t,"keyup",e.Rz,!1),e.addEventListener(t,"blur",e.Ny,!1),e.addEventListener(t,"focus",e.Oy,!1),e.addEventListener(t,"selectstart",function(n){return n.preventDefault(),!1},!1),e.addEventListener(t,"contextmenu",function(n){return n.preventDefault(),!1},!1),e.addEventListener(Ke,"resize",e.Ov,!1)}function $i(e){30<e.Sq&&(e.Yh=1)}function Nr(e,t){e.Yh!==null&&(e.Yh=null,t&&e.hk(),Hn&&Hn.nx||(e.Sq=0,e.zw=[0,0,0,0,0],e.Tq=0))}Y.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:Ke.devicePixelRatio||1},Y.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},Y.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},Y.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},Y.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},Y.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},Y.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},Y.prototype.doFocus=function(){this.focus()},Y.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var e=Ke.scrollX||Ke.pageXOffset,t=Ke.scrollY||Ke.pageYOffset;this.ta.focus(),Ke.scrollTo(e,t)}},Y.prototype.Oy=function(){this.H.R("GainedFocus")},Y.prototype.Ny=function(){this.H.R("LostFocus")};function $r(e){if(e.ta!==null){var t=e.Ka;if(t!==null&&t.clientWidth!==0&&t.clientHeight!==0){e.Gw||e.setScrollWidth();var n=e.gf?e.Db:0,i=e.Be?e.Db:0,r=e.Mb;e.Mb=e.computePixelRatio(),e.Mb!==r&&(e.pn=!0,e.$b()),(t.clientWidth!==e.Aa+n||t.clientHeight!==e.ya+i)&&(e.Ee=!0,e.Fc=!0,t=e.layout,t!==null&&t.isViewportSized&&e.autoScale===sl&&(e.Jk=!0,t.C()),e.ld||e.$b())}}}function jr(e){var t=new m;t.name="Background",e.Al(t),t=new m,t.name="",e.Al(t),t=new m,t.name="Foreground",e.Al(t),t=new m,t.name="Adornment",t.isTemporary=!0,t.isInDocumentBounds=!1,e.Al(t),t=new m,t.name="Tool",t.isTemporary=!0,t.isInDocumentBounds=!0,e.Al(t),t=new m,t.name="Grid",t.allowSelect=!1,t.pickable=!1,t.isTemporary=!0,t.isInDocumentBounds=!1,e.Ww(t,e.Qj("Background"))}function To(e){var t=new kn(kn.Grid);t.name="GRID";var n=new lr;return n.figure="LineH",n.stroke="lightgray",n.strokeWidth=.5,n.interval=1,t.add(n),n=new lr,n.figure="LineH",n.stroke="gray",n.strokeWidth=.5,n.interval=5,t.add(n),n=new lr,n.figure="LineH",n.stroke="gray",n.strokeWidth=1,n.interval=10,t.add(n),n=new lr,n.figure="LineV",n.stroke="lightgray",n.strokeWidth=.5,n.interval=1,t.add(n),n=new lr,n.figure="LineV",n.stroke="gray",n.strokeWidth=.5,n.interval=5,t.add(n),n=new lr,n.figure="LineV",n.stroke="gray",n.strokeWidth=1,n.interval=10,t.add(n),n=new Ci,n.add(t),n.layerName="Grid",n.zOrder=0,n.isInDocumentBounds=!1,n.isAnimated=!1,n.pickable=!1,n.locationObjectName="GRID",e.add(n),e.partManager.parts.remove(n),t.visible=!1,t}function jo(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):Iu(this.H)}function Ra(e){this.H.isEnabled?(this.H.lu=e.target.scrollTop,this.H.ju=e.target.scrollLeft):Iu(this.H)}Y.prototype.kx=function(e){if(this.ta!==null){var t=this.ku,n=this.hu;this.qr=!0;var i=this.documentBounds,r=this.viewportBounds,o=this.rj,a=i.x-o.left,l=i.y-o.top,u=i.width+o.left+o.right,f=i.height+o.top+o.bottom,p=i.right+o.right;o=i.bottom+o.bottom;var x=r.x;i=r.y;var N=r.width,R=r.height,_=r.right,V=r.bottom;r=this.scale;var xe=e.scrollLeft;if(this.tn)switch(this.bu){case"negative":xe=xe+e.scrollWidth-e.clientWidth;break;case"reverse":xe=e.scrollWidth-xe-e.clientWidth}var ue=xe;N<u||R<f?(xe=he.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==ue&&(xe.x=ue/r+a,this.ju=ue),this.allowVerticalScroll&&this.lu!==e.scrollTop&&(xe.y=e.scrollTop/r+l,this.lu=e.scrollTop),this.position=xe,he.free(xe),this.Ee=this.qr=!1):(xe=he.alloc(),e.uy&&this.allowHorizontalScroll&&(a<x&&(this.position=xe.h(ue+a,this.position.y)),p>_&&(this.position=xe.h(-(t.scrollWidth-this.Aa)+ue-this.Aa/r+p,this.position.y))),e.vy&&this.allowVerticalScroll&&(l<i&&(this.position=xe.h(this.position.x,e.scrollTop+l)),o>V&&(this.position=xe.h(this.position.x,-(t.scrollHeight-this.ya)+e.scrollTop-this.ya/r+o))),he.free(xe),this.vd=!0,this.Ee=this.qr=!1,i=this.documentBounds,r=this.viewportBounds,p=i.right,_=r.right,o=i.bottom,V=r.bottom,a=i.x,x=r.x,l=i.y,i=r.y,N>=u&&a>=x&&p<=_&&(n.style.width="1px"),R>=f&&l>=i&&o<=V&&(n.style.height="1px"))}},Y.prototype.computeBounds=function(e){return e===void 0&&(e=new Zt),Ka(this),na(this,e)};function na(e,t){if(e.fixedBounds.w())return t.assign(e.fixedBounds),t.Co(e.yb),t;for(var n=!0,i=e.Wa.s,r=i.length,o=0;o<r;o++){var a=i[o];if(a.visible&&a.isInDocumentBounds){a=a.Pa.s;for(var l=a.length,u=0;u<l;u++){var f=a[u];f.isInDocumentBounds&&f.isVisible()&&(f=f.actualBounds,f.w()&&(n?(n=!1,t.assign(f)):t.ed(f)))}}}return n&&t.h(0,0,0,0),t.Co(e.yb),t}Y.prototype.computePartsBounds=function(e,t){t===void 0&&(t=!1);var n=null;if(fn(e))for(var i=0;i<e.length;i++){var r=e[i];!t&&r instanceof Pn||(r.Va(),n===null?n=r.actualBounds.copy():n.ed(r.actualBounds))}else for(e=e.iterator;e.next();)i=e.value,!t&&i instanceof Pn||(i.Va(),n===null?n=i.actualBounds.copy():n.ed(i.actualBounds));return n===null?new Zt(NaN,NaN,0,0):n};function Yo(e,t){if((t||e.hf)&&!e.vb&&e.ta!==null&&e.documentBounds.w()){if(e.vb=!0,t){var n=e.initialPosition;if(n.w()){e.vb=!1,e.position=n;return}n=he.alloc(),n.xi(e.documentBounds,e.initialDocumentSpot);var i=e.viewportBounds;i=Zt.allocAt(0,0,i.width,i.height);var r=he.alloc();r.xi(i,e.initialViewportSpot),r.h(n.x-r.x,n.y-r.y),e.position=r,Zt.free(i),he.free(r),he.free(n)}n=e.yh,t&&e.Fg!==sl&&(n=e.Fg);var o=n!==sl?fa(e,n):e.scale;n=e.pa.x,i=e.pa.y,r=e.Aa/o;var a=e.ya/o,l=e.zk,u=e.pq;t&&!l.sb()&&(u.sb()||u.Xb())&&(l=u.Xb()?Rr:u),ls(e,e.documentBounds,r,a,l,t),t=e.scale,e.scale=o,e.vb=!1,o=e.viewportBounds,qe.B(o.x,n)&&qe.B(o.y,i)&&qe.B(o.width,r)&&qe.B(o.height,a)||e.onViewportBoundsChanged(new Zt(n,i,r,a),o,t,!1)}}function fa(e,t){var n=e.Pp;if(e.ta===null)return n;e.Va();var i=e.documentBounds;if(!i.w())return n;var r=i.width;i=i.height;var o=e.Aa+(e.gf?e.Db:0),a=e.ya+(e.Be?e.Db:0),l=o/r,u=a/i;return t===vu?(t=Math.min(u,l),t>n&&(t=n),t<e.minScale&&(t=e.minScale),t>e.maxScale&&(t=e.maxScale),t):t===Hh?(t=u>l?(a-e.Db)/i:(o-e.Db)/r,t>n&&(t=n),t<e.minScale&&(t=e.minScale),t>e.maxScale&&(t=e.maxScale),t):e.scale}Y.prototype.zoomToFit=function(){var e=this.sj;this.sj=ph,this.scale=fa(this,vu),e!==ph&&(Yo(this,!1),ls(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=e},U=Y.prototype,U.BA=function(e,t){t===void 0&&(t=vu);var n=e.width,i=e.height;if(!(n===0||i===0||isNaN(n)&&isNaN(i))){var r=1;if(t===vu||t===Hh)if(isNaN(n))r=this.viewportBounds.height*this.scale/i;else if(isNaN(i))r=this.viewportBounds.width*this.scale/n;else{r=this.Aa;var o=this.ya;r=t===Hh?o/i>r/n?(o-(this.Be?this.Db:0))/i:(r-(this.gf?this.Db:0))/n:Math.min(o/i,r/n)}this.scale=r,this.position=new he(e.x,e.y)}},U.Jy=function(e,t){this.Va();var n=this.documentBounds,i=this.viewportBounds;this.position=new he(n.x+(e.x*n.width+e.offsetX)-(t.x*i.width-t.offsetX),n.y+(e.y*n.height+e.offsetY)-(t.y*i.height-t.offsetY))},U.zz=function(e){if(e instanceof st){this.eq=e;var t=he.alloc();this.fq=this.op(e.ga(Jo,t)),he.free(t)}else this.eq=null,this.fq=Zi};function ls(e,t,n,i,r,o){var a=he.allocAt(e.pa.x,e.pa.y),l=a.x,u=a.y;if(e.eq!==null){var f=he.alloc();f=e.eq.ga(Jo,f),l=f.x-e.fq.x/e.scale,u=f.y-e.fq.y/e.scale,r=Ui,he.free(f)}(o||e.scrollMode===ph)&&(r.sb()&&(n>t.width&&(l=t.x+(r.x*t.width+r.offsetX)-(r.x*n-r.offsetX)),i>t.height&&(u=t.y+(r.y*t.height+r.offsetY)-(r.y*i-r.offsetY))),r=e.rj,o=n-t.width,n<t.width+r.left+r.right?(l=Math.min(l+n/2,t.right+Math.max(o,r.right)-n/2),l=Math.max(l,t.left-Math.max(o,r.left)+n/2),l-=n/2):l>t.left?l=t.left:l<t.right-n&&(l=t.right-n),n=i-t.height,i<t.height+r.top+r.bottom?(u=Math.min(u+i/2,t.bottom+Math.max(n,r.bottom)-i/2),u=Math.max(u,t.top-Math.max(n,r.top)+i/2),u-=i/2):u>t.top?u=t.top:u<t.bottom-i&&(u=t.bottom-i)),a.x=isFinite(l)?l:-e.yb.left,a.y=isFinite(u)?u:-e.yb.top,e.positionComputation!==null&&(t=e.positionComputation(e,a),a.x=t.x,a.y=t.y),Ha(e.Yd,e.pa,a),e.pa.h(a.x,a.y),Ac(e),he.free(a)}U.Ol=function(e,t){if(t===void 0&&(t=!0),t){if(e=ua(this,e,function(n){return n.part},function(n){return n.canSelect()}),e instanceof Ci)return e}else if(e=ua(this,e,function(n){return n.part}),e instanceof Ci)return e;return null},U.ic=function(e,t,n){t===void 0&&(t=null),n===void 0&&(n=null),Ka(this);for(var i=this.Wa.iteratorBackwards;i.next();){var r=i.value;if(r.visible&&(r=r.ic(e,t,n),r!==null))return r}return null};function ua(e,t,n,i){for(n===void 0&&(n=null),i===void 0&&(i=null),Ka(e),e=e.Wa.iteratorBackwards;e.next();){var r=e.value;if(r.visible&&!r.isTemporary&&(r=r.ic(t,n,i),r!==null))return r}return null}U.lz=function(e,t,n){return t===void 0&&(t=!0),Sl(this,e,function(i){return i.part},t?function(i){return i instanceof Ci&&i.canSelect()}:null,n)};function Sl(e,t,n,i,r){for(n===void 0&&(n=null),i===void 0&&(i=null),r instanceof qt||r instanceof Xt||(r=new Xt),Ka(e),e=e.Wa.iteratorBackwards;e.next();){var o=e.value;o.visible&&!o.isTemporary&&o.ji(t,n,i,r)}return r}U.ji=function(e,t,n,i){t===void 0&&(t=null),n===void 0&&(n=null),i instanceof qt||i instanceof Xt||(i=new Xt),Ka(this);for(var r=this.Wa.iteratorBackwards;r.next();){var o=r.value;o.visible&&o.ji(e,t,n,i)}return i},U.ux=function(e,t,n,i){return t===void 0&&(t=!1),n===void 0&&(n=!0),Us(this,e,function(r){return r instanceof Ci&&(!n||r.canSelect())},t,i)},U.Cf=function(e,t,n,i,r){t===void 0&&(t=null),n===void 0&&(n=null),i===void 0&&(i=!1),r instanceof qt||r instanceof Xt||(r=new Xt),Ka(this);for(var o=this.Wa.iteratorBackwards;o.next();){var a=o.value;a.visible&&a.Cf(e,t,n,i,r)}return r},U.Nu=function(e,t,n,i,r,o){var a=new Xt;Ka(this);for(var l=this.Wa.iteratorBackwards;l.next();){var u=l.value;u.visible&&u.Nu(e,t,n,i,a,r,o)}return a};function Us(e,t,n,i,r){var o=null;for(o===void 0&&(o=null),n===void 0&&(n=null),i===void 0&&(i=!1),r instanceof qt||r instanceof Xt||(r=new Xt),Ka(e),e=e.Wa.iteratorBackwards;e.next();){var a=e.value;a.visible&&!a.isTemporary&&a.Cf(t,o,n,i,r)}return r}U.mz=function(e,t,n,i,r){return n===void 0&&(n=!0),i===void 0&&(i=!0),us(this,e,t,function(o){return o instanceof Ci&&(!i||o.canSelect())},n,r)},U.og=function(e,t,n,i,r,o){n===void 0&&(n=null),i===void 0&&(i=null),r===void 0&&(r=!0),r!==!1&&r!==!0&&((r instanceof qt||r instanceof Xt)&&(o=r),r=!0),o instanceof qt||o instanceof Xt||(o=new Xt),Ka(this);for(var a=this.Wa.iteratorBackwards;a.next();){var l=a.value;l.visible&&l.og(e,t,n,i,r,o)}return o};function us(e,t,n,i,r,o){var a=null;for(a===void 0&&(a=null),i===void 0&&(i=null),r===void 0&&(r=!0),r!==!1&&r!==!0&&((r instanceof qt||r instanceof Xt)&&(o=r),r=!0),o instanceof qt||o instanceof Xt||(o=new Xt),Ka(e),e=e.Wa.iteratorBackwards;e.next();){var l=e.value;l.visible&&!l.isTemporary&&l.og(t,n,a,i,r,o)}return o}Y.prototype.acceptEvent=function(e){return Ns(this,e,e instanceof MouseEvent)};function Ns(e,t,n){var i=e.Qg;return e.Qg=e.cj,e.cj=i,i.diagram=e,i.event=t,n?ku(e,t,i):(i.viewPoint=e.Qg.viewPoint,i.documentPoint=e.Qg.documentPoint),e=0,t.ctrlKey&&(e+=1),t.altKey&&(e+=2),t.shiftKey&&(e+=4),t.metaKey&&(e+=8),i.modifiers=e,i.button=t.button,t.buttons!==void 0&&(i.buttons=t.buttons),Mi&&t.button===0&&t.ctrlKey&&(i.button=2),i.down=!1,i.up=!1,i.clickCount=1,i.delta=0,i.handled=!1,i.bubbles=!1,i.timestamp=t.timeStamp,i.isMultiTouch=!1,i.targetDiagram=al(t,t.target),i.targetObject=null,i}function al(e,t){return t===null?null:(t=t.H)?t:((t=e.path)||typeof e.composedPath!="function"||(t=e.composedPath()),t&&t[0]&&t[0].H?t[0].H:null)}function Vl(e,t,n,i,r,o){var a=e.Qg;return e.Qg=e.cj,e.cj=a,a.diagram=e,a.clickCount=1,e=a.delta=0,t.ctrlKey&&(e+=1),t.altKey&&(e+=2),t.shiftKey&&(e+=4),t.metaKey&&(e+=8),a.modifiers=e,a.event=t,a.timestamp=t.timeStamp,a.button=t.button,a.buttons=t.buttons,Mi&&t.button===0&&t.ctrlKey&&(a.button=2),a.down=n,a.up=i,a.handled=!1,a.bubbles=r,a.isMultiTouch=o,a}function Fs(e,t){return e.bubbles?!0:(t.stopPropagation!==void 0&&t.stopPropagation(),t.cancelable!==!1&&t.preventDefault(),t.cancelBubble=!0,!1)}Y.prototype.Qz=function(e){var t=this.H;if(!this.H.isEnabled)return!1;var n=Ns(t,e,!1);switch(n.key=String.fromCharCode(e.which),n.down=!0,e.which){case 8:n.key="Backspace";break;case 33:n.key="PageUp";break;case 34:n.key="PageDown";break;case 35:n.key="End";break;case 36:n.key="Home";break;case 37:n.key="Left";break;case 38:n.key="Up";break;case 39:n.key="Right";break;case 40:n.key="Down";break;case 45:n.key="Insert";break;case 46:n.key="Del";break;case 48:n.key="0";break;case 187:case 61:case 107:n.key="Add";break;case 189:case 173:case 109:n.key="Subtract";break;case 27:n.key="Esc"}return t.doKeyDown(),Fs(n,e)},Y.prototype.Rz=function(e){var t=this.H;if(!t.isEnabled)return!1;var n=Ns(t,e,!1);switch(n.key=String.fromCharCode(e.which),n.up=!0,e.which){case 8:n.key="Backspace";break;case 33:n.key="PageUp";break;case 34:n.key="PageDown";break;case 35:n.key="End";break;case 36:n.key="Home";break;case 37:n.key="Left";break;case 38:n.key="Up";break;case 39:n.key="Right";break;case 40:n.key="Down";break;case 45:n.key="Insert";break;case 46:n.key="Del"}return t.doKeyUp(),Fs(n,e)},Y.prototype.bz=function(e){var t=this.H;if(!t.isEnabled)return!1;var n=Ns(t,e,!0);return t.mouseEnter!==null&&t.mouseEnter(n),t.currentTool.standardMouseOver(),Fs(n,e)},Y.prototype.cz=function(e){var t=this.H;if(!t.isEnabled)return!1;var n=Ns(t,e,!0);return t.mouseLeave!==null&&t.mouseLeave(n),Fs(n,e)},Y.prototype.getMouse=function(e){var t=this.ta;if(t===null)return new he(0,0);var n=t.getBoundingClientRect();return t=e.clientX-this.Aa/n.width*n.left,e=e.clientY-this.ya/n.height*n.top,this.Ab!==null?Ki(new he(t,e),this.Ab):new he(t,e)};function ku(e,t,n){var i=e.ta,r=e.Aa,o=e.ya,a=0,l=0;i!==null&&(i=i.getBoundingClientRect(),a=t.clientX-r/i.width*i.left,l=t.clientY-o/i.height*i.top),n.viewPoint.h(a,l),e.Ab!==null?(t=he.allocAt(a,l),e.Ab.Cd(t),n.documentPoint.assign(t),he.free(t)):n.documentPoint.h(a,l)}function ec(e,t,n){if(e.oj[0]!==null){t=e.oj[t];var i=e.ta;i!==null&&(i=i.getBoundingClientRect(),n.h(t.clientX-e.Aa/i.width*i.left,t.clientY-e.ya/i.height*i.top))}}Y.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function Pc(e){e.ld||Ka(e),e.Va()}Y.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},U=Y.prototype,U.Pz=function(){return this.kg},U.Xy=function(e){e===void 0&&(e=null);var t=this.animationManager,n=t.isEnabled;t.Cc(),t.isEnabled=!1,ps(this),this.hf=!1,this.du=new he(NaN,NaN),t.isEnabled=n,this.ld=!0;var i=this;e!==null&&on(function(){i.ld=!1,qo(t,"Model"),e(i)},1)},U.$b=function(e){if(e===void 0&&(e=!1),this.kg!==!0&&!(this.vb||e===!1&&this.ld)){this.kg=!0;var t=this;Ke.requestAnimationFrame(function(){t.kg&&t.bd()})}},U.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),ps(this))};function Pl(e,t,n){!e.Ee||e.vb||e.animationManager.defaultAnimation.isAnimating||Iu(e)||(t&&Ka(e),n&&Yo(e,!1))}function ps(e,t){if(!e.ld&&(e.kg=!1,e.Ka!==null||e.wo.w())){e.ld=!0;var n=e.animationManager,i=e.Xn;if(!n.isAnimating&&i.length!==0){for(var r=i.s,o=r.length,a=0;a<o;a++){var l=r[a];Ya(l,!1),l.v()}i.clear()}i=e.ow,0<i.count&&(i.each(function(u){u.Nv()}),i.clear()),r=i=!1,n.defaultAnimation.isAnimating&&(r=!0,i=e.skipsUndoManager,e.skipsUndoManager=!0),n.zb||$r(e),Pl(e,!1,!0),e.fe!==null&&(e.fe.visible&&!e.mq&&(Nc(e),e.mq=!0),!e.fe.visible&&e.mq&&(e.mq=!1)),Ka(e),o=!1,(!e.hf||e.xh)&&(e.hf?ap(e,!e.Jk):(e.Ea("Initial Layout"),n.isEnabled===!1&&n.Cc(),ap(e,!1)),o=!0),e.Jk=!1,Ka(e),e.ou||Pc(e),Pl(e,!0,!1),a=!1,o?(n=Zt.alloc(),n.assign(e.viewportBounds),e.hf||(a=e.hf=!0,e.skipsUndoManager||(e.undoManager.isPendingClear=!0),e.undoManager.isPendingUnmodified=!0,Fl(e)),e.R("LayoutCompleted"),Pl(e,!0,!1),Zt.free(n)):n.Ok&&n.Qw&&(e.Fg!==sl?e.scale=fa(e,e.Fg):e.yh!==sl?e.scale=fa(e,e.yh):(n=e.initialScale,isFinite(n)&&0<n&&(e.scale=n)),Yo(e,!0)),o&&a&&e.eb("Initial Layout"),Ka(e),t||e.gc(e.ib),r&&(e.skipsUndoManager=i),e.ld=!1}}function Fl(e){if(e.Fg!==sl)e.scale=fa(e,e.Fg);else if(e.yh!==sl)e.scale=fa(e,e.yh);else{var t=e.initialScale;isFinite(t)&&0<t&&(e.scale=t)}Yo(e,!0),t=e.Wa.s,e.Fd(t,t.length,e,e.viewportBounds),e.R("InitialLayoutCompleted"),e.du.assign(e.pa),Nc(e)}function Ka(e){if(e.De.count!==0&&(e.ld||!e.animationManager.isTicking)){for(var t=0;23>t;t++){var n=e.De.iterator;if(n===null||e.De.count===0)break;e.De=new Xt,e.Nv(n,e.De)}e.nodes.each(function(i){i instanceof qi&&i.U&65536&&(i.U=i.U^65536)})}}U.Nv=function(e,t){for(e.reset();e.next();){var n=e.value;!n.Zc()||n instanceof qi||(n.si()?(n.measure(1/0,1/0),n.arrange()):t.add(n))}for(e.reset();e.next();)n=e.value,n instanceof qi&&n.isVisible()&&ea(this,n);for(e.reset();e.next();)n=e.value,n instanceof Pn&&n.isVisible()&&(n.si()?(n.measure(1/0,1/0),n.arrange()):t.add(n));for(e.reset();e.next();)n=e.value,n instanceof Zr&&n.isVisible()&&(n.si()?(n.measure(1/0,1/0),n.arrange()):t.add(n))};function ea(e,t){for(var n=Rt(),i=Rt(),r=t.memberParts;r.next();){var o=r.value;o.isVisible()&&(o instanceof qi?(bu(o)||wl(o)||jh(o))&&ea(e,o):o instanceof Pn?o.fromNode===t||o.toNode===t?i.push(o):n.push(o):(o.measure(1/0,1/0),o.arrange()))}for(e=n.length,r=0;r<e;r++)o=n[r],o.measure(1/0,1/0),o.arrange();for(Jt(n),t.measure(1/0,1/0),t.arrange(),e=i.length,t=0;t<e;t++)n=i[t],n.measure(1/0,1/0),n.arrange();Jt(i)}U.Fd=function(e,t,n,i){if(this.vd||this.animationManager.isAnimating)for(var r=0;r<t;r++)e[r].Fd(n,i)},U.gc=function(e){if(this.Ka!==null){if(this.ta===null&&Ve("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var t=this.animationManager;if(!t.zb&&(!t.isAnimating||t.isTicking)){Qs(this);var n=this.Aa,i=this.ya;if(e.Gv.resize(n,i,n,i),n=this.Wa.s,i=n.length,this.Fd(n,i,this,this.viewportBounds),this.Fc||t.isAnimating){t=this.pa;var r=this.Ca,o=Math.round(t.x*r)/r,a=Math.round(t.y*r)/r,l=this.Ab;for(l.reset(),r!==1&&l.scale(r),t.x===0&&t.y===0||l.translate(-o,-a),e.ti=null,oy(e,l.m11,l.m12,l.m21,l.m22,l.dx,l.dy),this.pb!==1&&(e.globalAlpha=this.pb),Hs(this,e),t=this.Mb,this.ta.context.setTransform(t,0,0,t,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya),t=0;t<i;t++)n[t].gc(e,this);e=!1,this.Yf?md(this.Yf,this)&&(e=this.Vp()):e=!0,e&&(nr.prototype.Cd=nr.prototype.Eu),this.Fc=this.vd=!1}}}}else e:if(o=this.animationManager,!o.zb&&(!o.isAnimating||o.isTicking)&&(n=new Date,Qs(this),this.Ka.style.opacity!=="0")){if(i=e!==this.ib,t=this.Wa.s,r=t.length,this.Fd(t,r,this,this.viewportBounds),i)e.Vc(!0),this.vd=!0;else if(!this.Fc&&!o.isAnimating)break e;o=this.Ab,o.reset(),a=this.Mb,l=this.pa;var u=this.Ca,f=Math.round(l.x*u)/u,p=Math.round(l.y*u)/u;for(u!==1&&o.scale(u),l.x===0&&l.y===0||o.translate(-f,-p),e.setTransform(a,0,0,a,0,0),e.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(e.globalAlpha=this.pb),Hs(this,e),l=0;l<r;l++)e.setTransform(a,0,0,a,0,0),e.transform(o.m11,o.m12,o.m21,o.m22,o.dx,o.dy),e.yc(),t[l].gc(e,this);if(t=!1,this.Yf?md(this.Yf,this)&&(t=this.Vp()):t=!0,t&&(nr.prototype.Cd=nr.prototype.Eu),i?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,t=+new Date-+n,i=Hn&&Hn.nx,n=this.zw,i||this.Yh===null){for(n[this.Tq]=t,this.Tq=(this.Tq+1)%n.length,r=t=0;r<n.length;r++)t+=n[r];this.Sq=t/n.length}if(this.pb!==1&&(e.globalAlpha=1),i)for(e.setTransform(1,0,0,1,0,0),i=0;i<n.length;i++)e.fillText(n[i].toString(),20,150+ +(20*i))}}};function ba(e,t,n,i,r,o,a,l,u,f){if(e.Ka!==null){e.ta===null&&Ve("No canvas specified"),a===void 0&&(a=null),l===void 0&&(l=null),u===void 0&&(u=!1),f===void 0&&(f=!1),Qs(e),e.ib.Vc(!0),e.vd=!0,e.$i=!0;var p=e.Ca;e.Ca=r;var x=e.Wa.s,N=x.length;try{var R=new Zt(o.x,o.y,i.width/r,i.height/r),_=R.copy();_.Co(n),Nc(e,_),Ka(e),e.Fd(x,N,e,R),t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,i.width,i.height),l!==null&&l!==""&&(t.fillStyle=l,t.ox(0,0,i.width,i.height));var V=e.Mb;t.scale(V,V);var xe=nr.alloc();xe.reset(),xe.translate(n.left,n.top),xe.scale(r),o.x===0&&o.y===0||xe.translate(-o.x,-o.y),t.setTransform(xe.m11,xe.m12,xe.m21,xe.m22,xe.dx,xe.dy),t.yc(),t instanceof ru&&oy(t,xe.m11,xe.m12,xe.m21,xe.m22,xe.dx,xe.dy),nr.free(xe),Hs(e,t),t.globalAlpha=e.pb;var ue=e.Qj("Grid");if(a){var Fe=new Xt,Ue=a.iterator;for(Ue.reset();Ue.next();){var We=Ue.value;We instanceof Ci&&(f||We.layer!==ue)&&(We.Gj(),Fe.add(We))}for(f=0;f<N;f++)D(x[f],t,e,Fe,u);Fe.each(function(At){return At.Gj()})}else for(Fe=0;Fe<N;Fe++){var rt=x[Fe];rt===ue?f&&rt.gc(t,e,!0):rt.gc(t,e,u)}e.$i=!1,e.Yf&&md(e.Yf,e)&&e.Vp()}finally{e.Ca=p,e.ib.Vc(!0),e.vd=!0,e.Fd(x,N,e,e.viewportBounds),Nc(e),e.ib instanceof ru&&(e.ib.Nj.PA(),e.redraw())}}}U.Gf=function(e){return this.Rg[e]},U.Xx=function(e,t){e==="minDrawingLength"&&(this.Oq=t),this.Rg[e]=t,this.redraw()},U.Tx=function(){this.Rg=new oe,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(Mi||lt),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function Hs(e,t){e=e.Rg,e!==null&&(e.imageSmoothingEnabled!==void 0&&t.Wx(!!e.imageSmoothingEnabled),e=e.defaultFont,e!=null&&(t.font=e))}U.Ql=function(e){return this.on[e]},U.sA=function(e,t){this.on[e]=t},U.Sx=function(){this.on=new oe,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},U.set=function(e){return Object.assign(this,e),this},U.Du=function(e){return this.nm(e)},U.nm=function(e){return Xs(this,e),this};function Xs(e,t){var n=e instanceof kn,i=e instanceof Y,r;for(r in t){r===""&&Ve("Setting properties requires non-empty property names");var o=e,a=r;if(n||i){var l=r.indexOf(".");if(0<l){var u=r.substring(0,l);n?o=e.fb(u):(o=e[u],o==null&&(o=e.toolManager[u])),ot(o)?a=r.substr(l+1):Ve("Unable to find object named: "+u+" in "+e.toString()+" when trying to set property: "+r)}}if(a[0]!=="_"&&!An(o,a))if(i&&a==="ModelChanged"){e.Yw(t[a]);continue}else if(i&&a==="Changed"){e.Pe(t[a]);continue}else if(i&&An(e.toolManager,a))o=e.toolManager;else if(i&&p0(e,a)){e.Bj(a,t[a]);continue}else if(e instanceof di&&a==="Changed"){e.Pe(t[a]);continue}else Ve('Trying to set undefined property "'+a+'" on object: '+o.toString());o[a]=t[r],a[0]==="_"&&o instanceof st&&o.Vw(a)}}U.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var e=this.Eh;for(this.Eh=new Zn,e=e.iterator;e.next();){var t=e.key;t.Xo(e.value),t.qc()}}this.N()}},U.N=function(e){if(e===void 0)this.Fc=!0,this.$b();else{var t=this.viewportBounds;e.w()&&t.Yc(e)&&(this.Fc=!0,this.$b())}this.R("InvalidateDraw")},Y.prototype.invalidateViewport=function(e,t){if(this.Fc!==!0)if(this.Fc=!0,this.nl==="svg")this.bd();else{var n=this.Gf("temporaryPixelRatio")===!0;if(this.Gf("viewportOptimizations")===!0&&this.scrollMode!==Fd&&this.rj.hi(0,0,0,0)&&t.width===e.width&&t.height===e.height){var i=this.scale,r=Math.max(e.y,t.y),o=Math.min(e.y+e.height,t.y+t.height);if(0<Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x))*i&&0<Math.max(0,o-r)*i){if(!(this.ld||(this.kg=!1,this.Ka===null||(this.ld=!0,this.documentBounds.w()||(i=Zt.alloc(),op(this,this.computeBounds(i)),Zt.free(i)),i=this.ta,i===null||i instanceof kc)))){var a=this.Mb;r=this.Aa*a;var l=this.ya*a,u=this.scale*a;o=Math.round(Math.round(t.x*u)-Math.round(e.x*u)),t=Math.round(Math.round(t.y*u)-Math.round(e.y*u)),u=this.jw,e=this.oy,u.width!==r&&(u.width=r),u.height!==l&&(u.height=l),e.clearRect(0,0,r,l),u=190*a;var f=70*a,p=Math.max(o,0),x=Math.max(t,0),N=Math.floor(r-p),R=Math.floor(l-x);e.drawImage(i.Oa,p,x,N,R,0,0,N,R),md(this.Yf,this)&&e.clearRect(0,0,u,f),i=Rt(),e=Rt(),R=Math.abs(o),N=Math.abs(t);var _=p===0?0:r-R;p=he.allocAt(_,0),R=he.allocAt(R+_,l),e.push(new Zt(Math.min(p.x,R.x),Math.min(p.y,R.y),Math.abs(p.x-R.x),Math.abs(p.y-R.y)));var V=this.Ab;if(V.reset(),V.scale(a,a),this.Ca!==1&&V.scale(this.Ca),a=this.pa,(a.x!==0||a.y!==0)&&isFinite(a.x)&&isFinite(a.y)&&V.translate(-a.x,-a.y),Ki(p,V),Ki(R,V),i.push(new Zt(Math.min(p.x,R.x),Math.min(p.y,R.y),Math.abs(p.x-R.x),Math.abs(p.y-R.y))),_=x===0?0:l-N,p.h(0,_),R.h(r,N+_),e.push(new Zt(Math.min(p.x,R.x),Math.min(p.y,R.y),Math.abs(p.x-R.x),Math.abs(p.y-R.y))),Ki(p,V),Ki(R,V),i.push(new Zt(Math.min(p.x,R.x),Math.min(p.y,R.y),Math.abs(p.x-R.x),Math.abs(p.y-R.y))),md(this.Yf,this)&&(r=0<o?0:-o,l=0<t?0:-t,p.h(r,l),R.h(u+r,f+l),e.push(new Zt(Math.min(p.x,R.x),Math.min(p.y,R.y),Math.abs(p.x-R.x),Math.abs(p.y-R.y))),Ki(p,V),Ki(R,V),i.push(new Zt(Math.min(p.x,R.x),Math.min(p.y,R.y),Math.abs(p.x-R.x),Math.abs(p.y-R.y)))),he.free(p),he.free(R),Pl(this,!1,!0),this.Ka===null&&Ve("No div specified"),this.ta===null&&Ve("No canvas specified"),!this.animationManager.zb&&(r=this.ib,this.Fc)){for(Qs(this),l=this.Mb,r.setTransform(1,0,0,1,0,0),r.clearRect(0,0,this.Aa*l,this.ya*l),r.drawImage(this.jw.Oa,0<o?0:Math.round(-o),0<t?0:Math.round(-t)),o=this.pa,a=this.Ca,u=Math.round(o.x*a)/a,f=Math.round(o.y*a)/a,t=this.Ab,t.reset(),a!==1&&t.scale(a),o.x===0&&o.y===0||t.translate(-u,-f),r.save(),r.beginPath(),o=e.length,a=0;a<o;a++)u=e[a],u.width!==0&&u.height!==0&&r.rect(Math.floor(u.x),Math.floor(u.y),Math.ceil(u.width),Math.ceil(u.height));for(r.clip(),r.setTransform(l,0,0,l,0,0),r.transform(t.m11,t.m12,t.m21,t.m22,t.dx,t.dy),r.yc(),t=this.Wa.s,o=t.length,this.Fd(t,o,this,this.viewportBounds),Hs(this,r),r.globalAlpha=this.pb,l=0;l<o;l++)if(a=t[l],u=i,a.visible&&a.pb!==0){f=S(a,r),x=a.Zq,x.length=0,p=this.scale,N=Zt.alloc(),R=a.Pa.s,V=R.length,_=u.length;for(var xe=0;xe<V;xe++){var ue=R[xe],Fe=Ed(ue,ue.actualBounds);e:{for(var Ue=2/p,We=4/p,rt=0;rt<_;rt++){var At=u[rt];if(At.width!==0&&At.height!==0&&Fe.Vu(At.x-Ue,At.y-Ue,At.width+We,At.height+We)){Fe=!0;break e}}Fe=!1}Fe&&a.Oj(r,ue,this,x,p,N,!0)}Zt.free(N),r.globalAlpha=f}r.restore(),r.Vc(!0),this.Yf&&md(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}Jt(i),Jt(e),this.ld=!1}}else this.bd();n&&($i(this),this.bd(),Nr(this,!0))}else n?($i(this),this.bd(),Nr(this,!0)):this.bd()}};function Qs(e){e.pn!==!1&&(e.pn=!1,Cc(e,e.Aa,e.ya))}function Cc(e,t,n){Ac(e);var i=e.Mb;e.ta.resize(t*i,n*i,t,n)&&(e.Fc=!0,e.ib.Vc(!0))}function Iu(e){var t=e.ta;if(t===null||e.wo.w())return!0;var n=e.Aa,i=e.ya,r=e.Ka,o=!1,a=e.gf?e.Db:0,l=e.Be?e.Db:0,u=r.clientWidth||n+a,f=r.clientHeight||i+l,p=e.viewportBounds;r=p.x;var x=p.y,N=p.width,R=p.height;if((u!==n+a||f!==i+l)&&(e.gf=!1,e.Be=!1,l=a=0,e.Aa=u,e.ya=f,o=e.pn=!0,Ac(e)),!e.hf||!e.viewportBounds.w())return!0;var _=e.ku,V=e.hu;if(e.Ee=!1,!(o||e.gf||e.Be||e.mn||e.nn))return!0;var xe=e.documentBounds,ue=0,Fe=0,Ue=0,We=0,rt=p.width,At=p.height,Kn=e.rj;e.contentAlignment.sb()?(xe.width>rt&&(ue=Kn.left,Fe=Kn.right),xe.height>At&&(Ue=Kn.top,We=Kn.bottom)):(ue=Kn.left,Fe=Kn.right,Ue=Kn.top,We=Kn.bottom);var ri=xe.width+ue+Fe,qn=xe.height+Ue+We;Kn=e.scale;var Rn=ri>u/Kn,mn=qn>f/Kn;if(!(o||e.gf||e.Be||Rn||mn))return!0;ue=xe.x-ue,u=p.x,Fe=xe.right+Fe,f=p.right+a,Ue=xe.y-Ue;var Ji=p.y;xe=xe.bottom+We,p=p.bottom+l;var Wi="1px";if(We="1px",e.scrollMode===ph&&(Rn||mn)&&(Rn&&e.hasHorizontalScrollbar&&e.allowHorizontalScroll&&(Rn=1,ue+1<u&&(Rn=Math.max((u-ue)*Kn+e.Aa,Rn)),Fe>f+1&&(Rn=Math.max((Fe-f)*Kn+e.Aa,Rn)),rt+a+1<ri&&(Rn=Math.max((ri-rt)*Kn+e.Aa,Rn)),Wi=Rn.toString()+"px"),mn&&e.hasVerticalScrollbar&&e.allowVerticalScroll&&(Rn=1,Ue+1<Ji&&(Rn=Math.max((Ji-Ue)*Kn+e.ya,Rn)),xe>p+1&&(Rn=Math.max((xe-p)*Kn+e.ya,Rn)),At+l+1<qn&&(Rn=Math.max((qn-At)*Kn+e.ya,Rn)),We=Rn.toString()+"px")),Rn=Wi!=="1px",mn=We!=="1px",Rn&&mn||!Rn&&!mn||(mn&&(f-=e.Db),Rn&&(p-=e.Db),ri<rt+a||!e.hasHorizontalScrollbar||!e.allowHorizontalScroll||(a=1,ue+1<u&&(a=Math.max((u-ue)*Kn+e.Aa,a)),Fe>f+1&&(a=Math.max((Fe-f)*Kn+e.Aa,a)),rt+1<ri&&(a=Math.max((ri-rt)*Kn+e.Aa,a)),Wi=a.toString()+"px"),Rn=Wi!=="1px",a=e.ya,Rn!==e.Be&&(a=Rn?e.ya-e.Db:e.ya+e.Db),qn<At+l||!e.hasVerticalScrollbar||!e.allowVerticalScroll||(l=1,Ue+1<Ji&&(l=Math.max((Ji-Ue)*Kn+a,l)),xe>p+1&&(l=Math.max((xe-p)*Kn+a,l)),At+1<qn&&(l=Math.max((qn-At)*Kn+a,l)),We=l.toString()+"px"),mn=We!=="1px"),e.qr&&Rn===e.Be&&mn===e.gf)return n===e.Aa&&i===e.ya||e.bd(),!1;if(Rn!==e.Be&&(Wi==="1px"?e.ya=e.ya+e.Db:e.ya=Math.max(e.ya-e.Db,1),o=!0),e.Be=Rn,V.style.width=Wi,mn!==e.gf&&(We==="1px"?e.Aa=e.Aa+e.Db:e.Aa=Math.max(e.Aa-e.Db,1),o=!0,e.tn&&(l=he.alloc(),mn?(t.style.left=e.Db+"px",e.position=l.h(e.pa.x+e.Db/e.scale,e.pa.y)):(t.style.left="0px",e.position=l.h(e.pa.x-e.Db/e.scale,e.pa.y)),he.free(l))),o&&Ac(e),e.gf=mn,V.style.height=We,e.gu=!0,o&&(e.pn=!0),t=_.scrollLeft,e.hasHorizontalScrollbar&&e.allowHorizontalScroll&&(rt+1<ri?t=(e.position.x-ue)*Kn:ue+1<u?t=_.scrollWidth-_.clientWidth:Fe>f+1&&(t=e.position.x*Kn)),e.tn)switch(e.bu){case"negative":t=-(_.scrollWidth-t-_.clientWidth);break;case"reverse":t=_.scrollWidth-t-_.clientWidth}return _.scrollLeft=t,e.hasVerticalScrollbar&&e.allowVerticalScroll&&(At+1<qn?_.scrollTop=(e.position.y-Ue)*Kn:Ue+1<Ji?_.scrollTop=_.scrollHeight-_.clientHeight:xe>p+1&&(_.scrollTop=e.position.y*Kn)),u=e.Aa,f=e.ya,_.style.width=u+(e.gf?e.Db:0)+"px",_.style.height=f+(e.Be?e.Db:0)+"px",n!==u||i!==f||e.animationManager.zb?(n=Zt.allocAt(r,x,N,R),e.onViewportBoundsChanged(n,e.viewportBounds,Kn,o),Zt.free(n),!1):!0}U=Y.prototype,U.add=function(e){var t=e.diagram;if(t!==this&&(t!==null&&Ve("Cannot add part "+e.toString()+" to "+this.toString()+". It is already a part of "+t.toString()),t=this.Qj(e.layerName),t===null&&(t=this.Qj("")),t===null&&Ve('Cannot add a Part when unable find a Layer named "'+e.layerName+'" and there is no default Layer'),e.layer!==t)){var n=t.oi(99999999,e,e.diagram===this);0<=n&&this.cb(Ko,"parts",t,null,e,null,n),t.isTemporary||this.Ya(),e.C(1),n=e.layerChanged,n!==null&&n(e,null,t)}},U.oi=function(e){this.partManager.oi(e);var t=this;bd(e,function(n){hd(t,n)}),(e instanceof Zr||e instanceof qi&&e.placeholder!==null)&&e.v(),e.data!==null&&bd(e,function(n){gv(t.partManager,n)}),wl(e)!==!0&&jh(e)!==!0||this.De.add(e),Zy(e,!0,this),Xy(e)?(e.actualBounds.w()&&this.N(Ed(e,e.actualBounds)),this.Ya()):e.isVisible()&&e.actualBounds.w()&&this.N(Ed(e,e.actualBounds)),this.$b()},U.pc=function(e){e.Ej(),this.partManager.pc(e);var t=this;e.data!==null&&bd(e,function(n){vv(t.partManager,n,t)}),this.De.remove(e),Xy(e)?(e.actualBounds.w()&&this.N(Ed(e,e.actualBounds)),this.Ya()):e.isVisible()&&e.actualBounds.w()&&this.N(Ed(e,e.actualBounds)),this.$b()},U.remove=function(e){Xc(this,e,!0)};function Xc(e,t,n){var i=t.layer;i!==null&&i.diagram===e&&(t.isSelected=!1,t.isHighlighted=!1,t.C(2),n&&t.Lj(),n=i.pc(-1,t,!1),0<=n&&e.cb(la,"parts",i,t,null,n,null),e=t.layerChanged,e!==null&&e(t,i,null))}U.Is=function(e,t){if(t===void 0&&(t=!1),fn(e))for(var n=e.length,i=0;i<n;i++){var r=e[i];t&&!r.canDelete()||this.remove(r)}else for(n=new Xt,n.addAll(e),e=n.iterator;e.next();)n=e.value,t&&!n.canDelete()||this.remove(n)},U.Kj=function(e,t,n){return n===void 0&&(n=!1),this.partManager.Kj(e,t,n)},Y.prototype.moveParts=function(e,t,n,i){if(n===void 0&&(n=!1),i===void 0&&(i=ch(this)),this.toolManager!==null){var r=new Zn;if(e!==null)if(fn(e))for(var o=0;o<e.length;o++)gu(this,r,e[o],n,i);else for(e=e.iterator;e.next();)gu(this,r,e.value,n,i);else{for(e=this.parts;e.next();)gu(this,r,e.value,n,i);for(e=this.nodes;e.next();)gu(this,r,e.value,n,i);for(e=this.links;e.next();)gu(this,r,e.value,n,i)}tc(this,r,t,i,n)}};function gu(e,t,n,i,r,o){if(!t.contains(n)&&(o===void 0&&(o=!1),!i||o||n.canMove()||n.canCopy()))if(r===void 0&&(r=ch(e)),n instanceof Xn){if(t.add(n,e.Pd(r,n,n.location)),n instanceof qi&&(n.placeholder!==null||r.dragsMembers))for(o=n.memberParts;o.next();)gu(e,t,o.value,i,r,r.groupsAlwaysMove);for(o=n.linksConnected;o.next();){var a=o.value;if(!t.contains(a)){var l=a.fromNode,u=a.toNode;l!==null&&t.contains(l)&&u!==null&&t.contains(u)&&gu(e,t,a,i,r)}}if(r.dragsTree)for(n=n.Ou();n.next();)gu(e,t,n.value,i,r)}else if(n instanceof Pn)for(t.add(n,e.Pd(r,n)),n=n.labelNodes;n.next();)gu(e,t,n.value,i,r);else n instanceof Zr||t.add(n,e.Pd(r,n,n.location))}function tc(e,t,n,i,r){if(t!==null&&t.count!==0){var o=he.alloc(),a=he.alloc();a.assign(n),isNaN(a.x)&&(a.x=0),isNaN(a.y)&&(a.y=0),(n=e.Mr)||_h(e,t);for(var l=Rt(),u=Rt(),f=t.iterator,p=he.alloc();f.next();){var x=f.key,N=f.value;if(x.Zc()){var R=hh(e,x,t);R!==null?l.push(new s(x,N,R)):(!r||x.canMove())&&(R=N.point,o.assign(R),e.computeMove(x,o.add(a),i,p),x.location=p,N.shifted===void 0&&(N.shifted=new he),N.shifted.assign(p.re(R)))}else f.key instanceof Pn&&u.push(f.sa)}for(he.free(p),r=l.length,f=0;f<r;f++)x=l[f],o.assign(x.info.point),x.Su.shifted===void 0&&(x.Su.shifted=new he),x.node.location=o.add(x.Su.shifted);for(r=he.alloc(),f=he.alloc(),x=u.length,N=0;N<x;N++){var _=u[N];if(R=_.key,R instanceof Pn)if(R.suspendsRouting){R.Tg=null,p=R.fromNode;var V=R.toNode;if(e.draggedLink!==null&&i.dragsLink)if(V=_.value.point,R.dragComputation===null)t.add(R,e.Pd(i,R,a)),Eh(R,a.x-V.x,a.y-V.y);else{_=he.allocAt(0,0),(p=R.i(0))&&p.w()&&_.assign(p);var xe=p=he.alloc().assign(_).add(a);i.isGridSnapEnabled&&(i.isGridSnapRealtime||e.lastInput.up)&&(xe=he.alloc(),Bh(e,R,p,xe,i)),p.assign(R.dragComputation(R,p,xe)).re(_),t.add(R,e.Pd(i,R,p)),Eh(R,p.x-V.x,p.y-V.y),he.free(_),he.free(p),xe!==p&&he.free(xe)}else p!==null&&(r.assign(p.location),xe=t.I(p),xe!==null&&r.re(xe.point)),V!==null&&(f.assign(V.location),xe=t.I(V),xe!==null&&f.re(xe.point)),p!==null&&V!==null?r.Xa(f)?(p=_.value.point,V=o,V.assign(r),V.re(p),t.add(R,e.Pd(i,R,r)),Eh(R,V.x,V.y)):(R.suspendsRouting=!1,R.bb()):(_=_.value.point,p=p!==null?r:V!==null?f:a,t.add(R,e.Pd(i,R,p)),Eh(R,p.x-_.x,p.y-_.y))}else(R.fromNode===null||R.toNode===null)&&(p=_.value.point,t.add(R,e.Pd(i,R,a)),Eh(R,a.x-p.x,a.y-p.y))}he.free(o),he.free(a),he.free(r),he.free(f),Jt(l),Jt(u),n||(Ka(e),Tc(e,t))}}Y.prototype.computeMove=function(e,t,n,i){if(i===void 0&&(i=new he),i.assign(t),e===null)return i;var r=t,o=n.isGridSnapEnabled;o&&(n.isGridSnapRealtime||this.lastInput.up)&&(r=he.alloc(),Bh(this,e,t,r,n)),n=e.dragComputation!==null?e.dragComputation(e,t,r):r;var a=e.minLocation,l=a.x;isNaN(l)&&(l=o?Math.round(1e3*e.location.x)/1e3:e.location.x),a=a.y,isNaN(a)&&(a=o?Math.round(1e3*e.location.y)/1e3:e.location.y);var u=e.maxLocation,f=u.x;return isNaN(f)&&(f=o?Math.round(1e3*e.location.x)/1e3:e.location.x),u=u.y,isNaN(u)&&(u=o?Math.round(1e3*e.location.y)/1e3:e.location.y),i.h(Math.max(l,Math.min(n.x,f)),Math.max(a,Math.min(n.y,u))),r!==t&&he.free(r),i};function ch(e){var t=e.toolManager.findTool("Dragging");return t!==null?t.dragOptions:e.Wm}function Bh(e,t,n,i,r){if(r===void 0&&(r=ch(e)),i.assign(n),t!==null){var o=e.grid;t=r.gridSnapCellSize,e=t.width,t=t.height;var a=r.gridSnapOrigin,l=a.x;if(a=a.y,r=r.gridSnapCellSpot,o!==null){var u=o.gridCellSize;isNaN(e)&&(e=u.width),isNaN(t)&&(t=u.height),o=o.gridOrigin,isNaN(l)&&(l=o.x),isNaN(a)&&(a=o.y)}o=he.allocAt(0,0),o.yi(0,0,e,t,r),qe.No(n.x,n.y,l+o.x,a+o.y,e,t,i),he.free(o)}}function _h(e,t){if(t!==null)for(e.Mr=!0,e=t.iterator;e.next();)t=e.key,t instanceof Pn&&(t.suspendsRouting=!0)}function Tc(e,t){if(t!==null){for(t=t.iterator;t.next();){var n=t.key;n instanceof Pn&&(n.suspendsRouting=!1,nv(n)&&n.bb())}e.Mr=!1}}function hh(e,t,n){return t=t.containingGroup,t!==null&&(e=hh(e,t,n),e!==null||(e=n.I(t),e!==null))?e:null}U=Y.prototype,U.Pd=function(e,t,n){if(n===void 0)return new Qc(gr);var i=e.isGridSnapEnabled;return e.groupsSnapMembers||t.containingGroup===null||(i=!1),i?new Qc(new he(Math.round(1e3*n.x)/1e3,Math.round(1e3*n.y)/1e3)):new Qc(n.copy())};function dh(e,t,n){if(t.diagram!==null&&t.diagram!==e&&Ve("Cannot share a Layer with another Diagram: "+t+" of "+t.diagram),n===null?t.diagram!==null&&Ve("Cannot add an existing Layer to this Diagram again: "+t):(n.diagram!==e&&Ve("Existing Layer must be in this Diagram: "+n+" not in "+n.diagram),t===n&&Ve("Cannot move a Layer before or after itself: "+t)),t.diagram!==e){t=t.name,e=e.Wa,n=e.count;for(var i=0;i<n;i++)e.M(i).name===t&&Ve("Cannot add Layer with the name '"+t+"'; a Layer with the same name is already present in this Diagram.")}}U.Al=function(e){dh(this,e,null),e.Xe(this);var t=this.Wa,n=t.count-1;if(!e.isTemporary)for(;0<=n&&t.M(n).isTemporary;)n--;return t.Gb(n+1,e),this.cc!==null&&this.cb(Ko,"layers",this,null,e,null,n+1),this.N(),this.Ya(),this},U.Ww=function(e,t){dh(this,e,t),e.Xe(this);var n=this.Wa,i=n.indexOf(e);0<=i&&(n.remove(e),this.cc!==null&&this.cb(la,"layers",this,e,null,i,null));var r=n.count,o;for(o=0;o<r;o++)if(n.M(o)===t){n.Gb(o,e);break}return this.cc!==null&&this.cb(Ko,"layers",this,null,e,null,o),this.N(),0>i&&this.Ya(),this},U.Cy=function(e,t){dh(this,e,t),e.Xe(this);var n=this.Wa,i=n.indexOf(e);0<=i&&(n.remove(e),this.cc!==null&&this.cb(la,"layers",this,e,null,i,null));var r=n.count,o;for(o=0;o<r;o++)if(n.M(o)===t){n.Gb(o+1,e);break}return this.cc!==null&&this.cb(Ko,"layers",this,null,e,null,o+1),this.N(),0>i&&this.Ya(),this},U.kA=function(e){if(e.diagram!==this&&Ve("Cannot remove a Layer from another Diagram: "+e+" of "+e.diagram),e.name!==""){var t=this.Wa,n=t.indexOf(e);if(t.remove(e)){for(t=e.Pa.copy().iterator;t.next();){var i=t.value,r=i.layerName;r!==e.name?i.layerName=r:i.layerName=""}this.cc!==null&&this.cb(la,"layers",this,e,null,n,null),this.N(),this.Ya()}}},U.Qj=function(e){for(var t=this.layers;t.next();){var n=t.value;if(n.name===e)return n}return null},U.Yw=function(e){return this.pf===null&&(this.pf=new qt),this.pf.add(e),this.model.Pe(e),this},U.mA=function(e){this.pf!==null&&(this.pf.remove(e),this.pf.count===0&&(this.pf=null)),this.model.ik(e)},U.Pe=function(e){return this.zg===null&&(this.zg=new qt),this.zg.add(e),this},U.ik=function(e){this.zg!==null&&(this.zg.remove(e),this.zg.count===0&&(this.zg=null))},U.ds=function(e){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(e),e.change!==vs&&(this.isModified=!0),this.zg!==null)for(var t=this.zg,n=t.length,i=0;i<n;i++)t.M(i)(e)},U.cb=function(e,t,n,i,r,o,a){o===void 0&&(o=null),a===void 0&&(a=null);var l=new Ro;l.diagram=this,l.change=e,l.propertyName=t,l.object=n,l.oldValue=i,l.oldParam=o,l.newValue=r,l.newParam=a,this.ds(l)},U.g=function(e,t,n,i,r){this.cb(So,e,this,t,n,i,r)},Y.prototype.changeState=function(e,t){if(e!==null&&e.diagram===this){var n=this.skipsModelSourceBindings;try{this.skipsModelSourceBindings=!0;var i=e.change;if(i===So){var r=e.object;if(Xo(r,e.propertyName,e.I(t)),r instanceof st){var o=r.part;o!==null&&o.Wb()}this.isModified=!0}else if(i===Ko){var a=e.object,l=e.newParam,u=e.newValue;if(a instanceof kn)if(typeof l=="number"&&u instanceof st){t?a.pc(l):a.Gb(l,u);var f=a.part;f!==null&&f.Wb()}else typeof l=="number"&&u instanceof Xa&&(u.isRow?Sy(a,l,t?void 0:u):Ey(a,l,t?void 0:u));else if(a instanceof m){var p=e.oldParam===!0;typeof l=="number"&&u instanceof Ci&&(t?(u.isSelected=!1,u.isHighlighted=!1,u.Wb(),a.pc(p?l:-1,u,p)):a.oi(l,u,p))}else a instanceof Y?typeof l=="number"&&u instanceof m&&(t?this.Wa.mb(l):(u.Xe(this),this.Wa.Gb(l,u))):Ve("unknown ChangedEvent.Insert object: "+e.toString());this.isModified=!0}else if(i===la){var x=e.object,N=e.oldParam,R=e.oldValue;if(x instanceof kn)typeof N=="number"&&R instanceof st?t?x.Gb(N,R):x.pc(N):typeof N=="number"&&R instanceof Xa&&(R.isRow?Sy(x,N,t?R:void 0):Ey(x,N,t?R:void 0));else if(x instanceof m){var _=e.newParam===!0;typeof N=="number"&&R instanceof Ci&&(t?0>x.Pa.indexOf(R)&&x.oi(N,R,_):(R.isSelected=!1,R.isHighlighted=!1,R.Wb(),x.pc(_?N:-1,R,_)))}else x instanceof Y?typeof N=="number"&&R instanceof m&&(t?(R.Xe(this),this.Wa.Gb(N,R)):this.Wa.mb(N)):Ve("unknown ChangedEvent.Remove object: "+e.toString());this.isModified=!0}else i!==vs&&Ve("unknown ChangedEvent: "+e.toString())}finally{this.skipsModelSourceBindings=n}}},Y.prototype.Ea=function(e){return this.undoManager.Ea(e)},Y.prototype.eb=function(e){return this.undoManager.eb(e)},Y.prototype.Kf=function(){return this.undoManager.Kf()},Y.prototype.commit=function(e,t){t===void 0&&(t="");var n=this.skipsUndoManager;t===null&&(this.skipsUndoManager=!0,t=""),this.undoManager.Ea(t);var i=!1;try{e(this),i=!0}finally{i?this.undoManager.eb(t):this.undoManager.Kf(),this.skipsUndoManager=n}},Y.prototype.updateAllTargetBindings=function(e){this.partManager.updateAllTargetBindings(e)},Y.prototype.rp=function(){this.partManager.rp()};function np(e,t,n){var i=e.animationManager;if(e.vb||e.ld)e.Ca=n,Ac(e),e.N(),e.Ee=!0,i.zb&&(ya(i)||i.ce.add(i.H,"scale",t,e.Ca));else if(e.ta===null)e.Ca=n,Ac(e);else{e.vb=!0;var r=e.viewportBounds.copy(),o=e.Aa,a=e.ya,l=e.zoomPoint.x,u=e.zoomPoint.y,f=e.contentAlignment;isNaN(l)&&(f.$c()?f.Hf(fl)?l=0:f.Hf(ja)&&(l=o-1):l=f.sb()?f.x*(o-1):o/2),isNaN(u)&&(f.$c()?f.Hf(Ia)?u=0:f.Hf(qa)&&(u=a-1):u=f.sb()?f.y*(a-1):a/2),e.scaleComputation===null||e.animationManager.defaultAnimation.isAnimating||(n=e.scaleComputation(e,n)),n<e.minScale&&(n=e.minScale),n>e.maxScale&&(n=e.maxScale),o=he.allocAt(e.pa.x+l/t-l/n,e.pa.y+u/t-u/n),e.position=o,he.free(o),e.Ca=n,Ac(e),e.vb=!1,e.onViewportBoundsChanged(r,e.viewportBounds,t,!1),Yo(e,!1),i.zb&&(ya(i)||i.ce.add(i.H,"scale",t,e.Ca))}}Y.prototype.onViewportBoundsChanged=function(e,t,n,i){if(!e.D(t)){i===void 0&&(i=!1),i||(this.Ee=!0),this.vd=!0;var r=this.layout;r===null||!r.isViewportSized||this.autoScale!==sl||e.width===t.width&&e.height===t.height||r.C(),r=this.currentTool,this.Vk===!0&&r instanceof Co&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Qu(r,this)),this.vb||this.invalidateViewport(e,t),Nc(this),this.fc.scale=n,this.fc.position.x=e.x,this.fc.position.y=e.y,this.fc.bounds.assign(e),this.fc.canvasSize.width=Math.round(e.width*n),this.fc.canvasSize.height=Math.round(e.height*n),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=i,this.R("ViewportBoundsChanged",this.fc,e),this.isVirtualized&&this.links.each(function(o){o.isAvoiding&&o.actualBounds.Yc(t)&&o.bb()})}};function Nc(e,t){var n=e.fe;if(n!==null&&n.visible){for(var i=pi.alloc(),r=1,o=1,a=n.O.s,l=a.length,u=0;u<l;u++){var f=a[u],p=Math.abs(f.interval);2>p||(Cg(f.figure)?o=o*p/qe.vx(o,p):r=r*p/qe.vx(r,p))}if(a=n.gridCellSize,i.h(o*a.width,r*a.height),t!==void 0)r=t.width,o=t.height,e=t.x,a=t.y;else{if(t=Zt.alloc(),e=e.viewportBounds,t.h(e.x,e.y,e.width,e.height),!t.w()){Zt.free(t);return}r=t.width,o=t.height,e=t.x,a=t.y,Zt.free(t)}n.width=r+2*i.width,n.height=o+2*i.height,t=he.alloc(),qe.No(e,a,0,0,i.width,i.height,t),t.offset(-i.width,-i.height),pi.free(i),n.part.location=t,he.free(t)}}Y.prototype.clearSelection=function(e){e===void 0&&(e=!1);var t=this.selection;if(t.count!==0){e||this.R("ChangingSelection",t);for(var n=t.Fa(),i=n.length,r=0;r<i;r++)n[r].isSelected=!1;t.ka(),t.clear(),t.freeze(),e||this.R("ChangedSelection",t)}},Y.prototype.select=function(e){e!==null&&e.diagram===this&&(!e.isSelected||1<this.selection.count)&&(this.R("ChangingSelection",this.selection),this.clearSelection(!0),e.isSelected=!0,this.R("ChangedSelection",this.selection))},Y.prototype.rA=function(e){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),fn(e))for(var t=e.length,n=0;n<t;n++){var i=e[n];i instanceof Ci||Ve("Diagram.selectCollection given something that is not a Part: "+i),i.isSelected=!0}else for(e=e.iterator;e.next();)t=e.value,t instanceof Ci||Ve("Diagram.selectCollection given something that is not a Part: "+t),t.isSelected=!0;this.R("ChangedSelection",this.selection)},Y.prototype.clearHighlighteds=function(){var e=this.highlighteds;if(0<e.count){for(var t=e.Fa(),n=t.length,i=0;i<n;i++)t[i].isHighlighted=!1;e.ka(),e.clear(),e.freeze()}},U=Y.prototype,U.Iz=function(e){e!==null&&e.diagram===this&&(!e.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),e.isHighlighted=!0)},U.Jz=function(e){e=new Xt().addAll(e);for(var t=this.highlighteds.copy().hp(e).iterator;t.next();)t.value.isHighlighted=!1;for(e=e.iterator;e.next();)t=e.value,t instanceof Ci||Ve("Diagram.highlightCollection given something that is not a Part: "+t),t.isHighlighted=!0},U.scroll=function(e,t,n){n===void 0&&(n=1);var i=t==="up"||t==="down",r=0,o=he.alloc();if(e==="pixel")r=n;else if(e==="line")r=n*(i?this.scrollVerticalLineChange:this.scrollHorizontalLineChange);else if(e==="page")e=i?this.viewportBounds.height:this.viewportBounds.width,e*=this.scale,e!==0&&(r=n*Math.max(e-(i?this.scrollVerticalLineChange:this.scrollHorizontalLineChange),0));else{if(e==="document"){r=this.documentBounds,n=this.viewportBounds,t==="up"?this.position=o.h(n.x,r.y):t==="left"?this.position=o.h(r.x,n.y):t==="down"?this.position=o.h(n.x,r.bottom-n.height):t==="right"&&(this.position=o.h(r.right-n.width,n.y)),he.free(o);return}Ve("scrolling unit must be 'pixel', 'line', 'page', or 'document', not: "+e)}r/=this.scale,n=this.position,t==="up"?this.position=o.h(n.x,n.y-r):t==="down"?this.position=o.h(n.x,n.y+r):t==="left"?this.position=o.h(n.x-r,n.y):t==="right"?this.position=o.h(n.x+r,n.y):Ve("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+t),he.free(o)},U.tv=function(e){var t=this.viewportBounds;t.Re(e)||(e=e.center,e.x-=t.width/2,e.y-=t.height/2,this.position=e)},U.es=function(e){var t=this.viewportBounds;e=e.center,e.x-=t.width/2,e.y-=t.height/2,this.position=e},U.op=function(e){var t=this.Ab;t.reset(),this.Ca!==1&&t.scale(this.Ca);var n=this.pa;return(n.x!==0||n.y!==0)&&isFinite(n.x)&&isFinite(n.y)&&t.translate(-n.x,-n.y),e.copy().transform(this.Ab)},U.zA=function(e){var t=this.Ab,n=e.x,i=e.y,r=n+e.width,o=i+e.height,a=t.m11,l=t.m12,u=t.m21,f=t.m22,p=t.dx,x=t.dy,N=n*a+i*u+p;t=n*l+i*f+x;var R=r*a+i*u+p;return e=r*l+i*f+x,i=n*a+o*u+p,n=n*l+o*f+x,a=r*a+o*u+p,r=r*l+o*f+x,o=Math.min(N,R),N=Math.max(N,R),R=Math.min(t,e),t=Math.max(t,e),o=Math.min(o,i),N=Math.max(N,i),R=Math.min(R,n),t=Math.max(t,n),o=Math.min(o,a),N=Math.max(N,a),R=Math.min(R,r),t=Math.max(t,r),new Zt(o,R,N-o,t-R)},U.Ps=function(e){var t=this.Ab;t.reset(),this.Ca!==1&&t.scale(this.Ca);var n=this.pa;return(n.x!==0||n.y!==0)&&isFinite(n.x)&&isFinite(n.y)&&t.translate(-n.x,-n.y),Ki(e.copy(),this.Ab)};function d0(e){var t=e.isModified;e.Tw!==t&&(e.Tw=t,e.R("Modified"))}function ip(e){return e=pf.get(e),e!==null?new e:new so}Y.prototype.doModelChanged=function(e){var t=this;if(e.model===this.model){var n=e.change,i=e.propertyName;if(n===vs&&i[0]==="S")if(i==="StartingFirstTransaction"){var r=this;e=this.toolManager,e.mouseDownTools.each(function(u){return u.diagram=r}),e.mouseMoveTools.each(function(u){return u.diagram=r}),e.mouseUpTools.each(function(u){return u.diagram=r}),this.ld||this.hf||(this.Jk=!0,this.fn&&(this.kg=!0))}else i==="StartingUndo"||i==="StartingRedo"?(e=this.animationManager,e.defaultAnimation.isAnimating&&!this.skipsUndoManager&&e.Cc(),this.R("ChangingSelection",this.selection)):i==="StartedTransaction"&&(e=this.animationManager,e.defaultAnimation.isAnimating&&!this.skipsUndoManager&&e.Cc());else if(this.aa){this.aa=!1;try{if(e.modelChange===""&&n===vs){(i==="FinishedUndo"||i==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),Ka(this));var o=this.animationManager;i==="RolledBackTransaction"&&o.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||ta(o),i==="CommittedTransaction"&&this.undoManager.isJustDiscarded&&(this.Ce=Math.min(this.Ce,this.undoManager.historyIndex-1)),i!=="CommittedTransaction"&&i!=="RolledBackTransaction"||!this.undoManager.isPendingUnmodified||setTimeout(function(){t.isModified=!1},1);var a=e.isTransactionFinished;if(a&&(d0(this),this.As.clear(),Ho(this.animationManager)),!this.Rt&&a&&this.lastInput.targetDiagram){this.Rt=!0;var l=this;on(function(){l.currentTool.standardMouseOver(),l.Rt=!1},10)}}}finally{this.aa=!0}}}};function hd(e,t){t=t.O.s;for(var n=t.length,i=0;i<n;i++)zh(e,t[i])}function zh(e,t){if(t instanceof Ul){var n=t.element;if(n!==null&&n instanceof HTMLImageElement){n.Bg instanceof Xt&&n.Bg.add(e);var i=t.Eg;if(i!==null&&i.sq===!0&&t.diagram!==null&&t.diagram.Xn.add(t),n.hn)if(n=n.getAttribute("src")||"",i=e.Og.I(n),i===null)i=[],i.push(t),e.Og.add(n,i);else{for(e=0;e<i.length;e++)if(i[e]===t)return;i.push(t)}}}}function rp(e,t){if(t instanceof Ul){var n=t.element;if(n!==null&&n instanceof HTMLImageElement&&n.hn){var i=n.getAttribute("src")||"",r=e.Og.I(i);if(r!==null){for(var o=0;o<r.length;o++)if(r[o]===t){r.splice(o,1),r.length===0&&(e.Og.remove(i),n.Fq&&n.removeEventListener("load",n.Fq),n.Yp&&n.removeEventListener("error",n.Yp),delete n.Fq,delete n.Yp,n.Bg instanceof Xt&&n.Bg.remove(e),Af(i));break}}}}}Y.prototype.Wd=function(){this.partManager.Wd()},Y.prototype.Aj=function(e,t){this.Yd.Aj(e,t)},Y.prototype.Cj=function(e,t){this.Yd.Cj(e,t)},Y.prototype.findPartForKey=function(e){return this.partManager.findPartForKey(e)},Y.prototype.Vb=function(e){return this.partManager.Vb(e)},Y.prototype.findLinkForKey=function(e){return this.partManager.findLinkForKey(e)},U=Y.prototype,U.Lc=function(e){return this.partManager.Lc(e)},U.ii=function(e){return this.partManager.ii(e)},U.Kc=function(e){return this.partManager.Kc(e)},U.ms=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.partManager.ms.apply(this.partManager,t instanceof Array?t:wr(Er(t)))},U.ls=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.partManager.ls.apply(this.partManager,t instanceof Array?t:wr(Er(t)))};function Ac(e){var t=e.pa,n=e.Ca;e.Rw.h(t.x,t.y,Math.max(e.Aa,0)/n,Math.max(e.ya,0)/n),e.vd=!0}function op(e,t){e.Zi=!1;var n=e.Sp;n.D(t)||(n=n.copy(),e.Sp.assign(t),Yo(e,!1),e.R("DocumentBoundsChanged",void 0,n),e.Ee=!0,e.N())}U.Va=function(){if(this.Zi){var e=Zt.alloc();op(this,this.computeBounds(e)),Zt.free(e)}},U.rz=function(){for(var e=new Xt,t=this.nodes;t.next();){var n=t.value;n.isTopLevel&&e.add(n)}for(t=this.links;t.next();)n=t.value,n.isTopLevel&&e.add(n);return e.iterator},U.qz=function(){return this.ai.iterator},U.Uz=function(e){Ka(this),e&&uf(this,!0),this.ld?ap(this,!1):(this.Jk=!0,ps(this))};function uf(e,t){for(var n=e.ai.iterator;n.next();)f0(e,n.value,t);e.layout&&(t?e.layout.isValidLayout=!1:e.layout.C())}function f0(e,t,n){if(t!==null){for(var i=t.gl.iterator;i.next();)f0(e,i.value,n);t.layout!==null&&(n?t.layout.isValidLayout=!1:t.layout.C())}}function ap(e,t){if(e.xh&&!e.lt){var n=e.aa;e.aa=!0;var i=e.undoManager.transactionLevel,r=e.layout,o=e.animationManager;try{i===0&&(e.undoManager.isInternalTransaction=!0,e.Ea("Layout")),1>=i&&!o.defaultAnimation.isAnimating&&!o.zb&&(t||qo(o,"Layout")),e.xh=!1;for(var a=e.ai.iterator;a.next();)sp(e,a.value,t,i);r.isValidLayout||(!t||r.isRealtime||r.isRealtime===null||i===0?(r.doLayout(e),Ka(e),r.isValidLayout=!0):e.xh=!0)}finally{t=e.undoManager.isInternalTransaction,i===0&&(e.eb("Layout"),e.undoManager.isInternalTransaction=!1),!t||i!==0&&i!==1||ta(o),e.aa=n}}}function sp(e,t,n,i){if(t!==null){for(var r=t.gl.iterator;r.next();)sp(e,r.value,n,i);r=t.layout,r===null||r.isValidLayout||(!n||r.isRealtime||i===0?(t.rh=!t.location.w(),r.doLayout(t),t.C(32),ea(e,t),r.isValidLayout=!0):e.xh=!0)}}U.yz=function(){for(var e=new qt,t=this.nodes;t.next();){var n=t.value;n.isTopLevel&&n.kh()===null&&e.add(n)}return e.iterator};function cg(e){function t(r){var o=r.toLowerCase(),a=new qt;n.add(r,a),n.add(o,a),i.add(r,r),i.add(o,r)}var n=new Zn,i=new Zn;t("InitialAnimationStarting"),t("AnimationStarting"),t("AnimationFinished"),t("BackgroundSingleClicked"),t("BackgroundDoubleClicked"),t("BackgroundContextClicked"),t("ClipboardChanged"),t("ClipboardPasted"),t("DocumentBoundsChanged"),t("ExternalObjectsDropped"),t("GainedFocus"),t("InitialLayoutCompleted"),t("LayoutCompleted"),t("LinkDrawn"),t("LinkRelinked"),t("LinkReshaped"),t("LostFocus"),t("Modified"),t("ObjectSingleClicked"),t("ObjectDoubleClicked"),t("ObjectContextClicked"),t("PartCreated"),t("PartResized"),t("PartRotated"),t("SelectionMoved"),t("SelectionCopied"),t("SelectionDeleting"),t("SelectionDeleted"),t("SelectionGrouped"),t("SelectionUngrouped"),t("ChangingSelection"),t("ChangedSelection"),t("SubGraphCollapsed"),t("SubGraphExpanded"),t("TextEdited"),t("TreeCollapsed"),t("TreeExpanded"),t("ViewportBoundsChanged"),t("InvalidateDraw"),e.iw=n,e.hw=i}function p0(e,t){var n=e.hw.I(t);return n!==null?n:e.hw.I(t.toLowerCase())}function cf(e,t){var n=e.iw.I(t);if(n!==null||(n=e.iw.I(t.toLowerCase()),n!==null))return n;Ve("Unknown DiagramEvent name: "+t)}U.Bj=function(e,t){return e=cf(this,e),e!==null&&e.add(t),this},U.am=function(e,t){e=cf(this,e),e!==null&&e.remove(t)},U.R=function(e,t,n){var i=cf(this,e),r=new eu;if(r.diagram=this,e=p0(this,e),e!==null&&(r.name=e),t!==void 0&&(r.subject=t),n!==void 0&&(r.parameter=n),t=i.length,t===1)i.M(0)(r);else if(t!==0)for(i=i.Fa(),n=0;n<t;n++)(0,i[n])(r)};function hf(e){if(e.animationManager.isTicking)return!1;var t=e.currentTool;return t===e.toolManager.findTool("Dragging")?!e.Mr||t.isComplexRoutingRealtime:!0}U.Yj=function(e,t){return df(this,!1,null,t||null).Yj(e.x,e.y,e.width,e.height)},Y.prototype.computeOccupiedArea=function(e){return this.isVirtualized?this.viewportBounds.copy():this.Zi?na(this,e):e.assign(this.documentBounds)};function df(e,t,n,i){var r=e.Xh;if(r===null&&(e.Xh=r=new Fp(e.avoidanceCellSize)),r.vs||r.group!==n||r.Yx!==i){if(r.Hx=Math.max(r.Os+1,Math.floor(e.avoidanceLimit/e.avoidanceCellSize.width)),r.Ix=Math.max(r.Os+1,Math.floor(e.avoidanceLimit/e.avoidanceCellSize.height)),n!==null&&(n=m0(e,n)),n===null){t=Zt.alloc(),e.computeOccupiedArea(t),t.Bc(100,100),r.initialize(t);for(var o=e.nodes;o.next();){var a=o.value,l=a.layer;l!==null&&l.visible&&!l.isTemporary&&ff(e,a,i,t)}Zt.free(t)}else{for(0<n.memberParts.count&&(t=e.computePartsBounds(n.memberParts,!1),t.Bc(20,20),r.initialize(t)),t=Zt.alloc(),o=n.memberParts;o.next();)a=o.value,a instanceof Xn&&ff(e,a,i,t);Zt.free(t)}r.group=n,r.Yx=i,r.vs=!1}else t&&m1(r);return r}function m0(e,t){return t.avoidable&&!t.isLinkLabel?t:t.containingGroup!==null?m0(e,t.containingGroup):null}function ff(e,t,n,i){if(t!==n&&t.isVisible()){if(t.avoidable&&!t.isLinkLabel){t=t.getAvoidableRect(i),e=e.Xh;var r=t.x,o=t.y;if(Rf(e,r,o))for(n=(o-e.Od)/e.sc|0,i=Math.min((r+t.width-e.Nd)/e.rc|0,e.di),t=Math.min((o+t.height-e.Od)/e.sc|0,e.ei),r=(r-e.Nd)/e.rc|0;r<=i;r++)if(o=e.ac[r],o.fill)o.fill(Ch,n,t+1);else for(var a=n;a<=t;a++)o[a]=Ch}else if(t instanceof qi)for(t=t.memberParts;t.next();)r=t.value,r instanceof Xn&&ff(e,r,n,i)}}function fh(e,t){e.Xh===null||e.Xh.vs||t!==void 0&&(!t.avoidable||t.isLinkLabel)||(e.Xh.vs=!0)}Y.prototype.gs=function(e){this.wp.assign(e),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():lp(this)};function lp(e){e.vk===-1&&(e.vk=on(function(){if(e.vk!==-1&&(e.ug(),e.lastInput.event!==null)){var t=e.computeAutoScrollPosition(e.wp);t.Xa(e.position)||(e.position=t,e.lastInput.documentPoint=e.Ps(e.wp),e.doMouseMove(),e.Zi=!0,t=Zt.alloc(),e.computeBounds(t),t.ed(e.documentBounds),op(e,t),Zt.free(t),e.Fc=!0,e.bd(),lp(e))}},e.vp))}Y.prototype.ug=function(){this.vk!==-1&&(Ke.clearTimeout(this.vk),this.vk=-1)},Y.prototype.computeAutoScrollPosition=function(e){var t=this.position,n=this.xp;if(0>=n.top&&0>=n.left&&0>=n.right&&0>=n.bottom)return t;var i=this.viewportBounds,r=this.scale;i=Zt.allocAt(0,0,i.width*r,i.height*r);var o=he.allocAt(0,0);if(e.x>=i.x&&e.x<i.x+n.left&&this.allowHorizontalScroll){var a=Math.max(this.scrollHorizontalLineChange,1);a|=0,o.x-=a,e.x<i.x+n.left/2&&(o.x-=a),e.x<i.x+n.left/4&&(o.x-=4*a)}else e.x<=i.x+i.width&&e.x>i.x+i.width-n.right&&this.allowHorizontalScroll&&(a=Math.max(this.scrollHorizontalLineChange,1),a|=0,o.x+=a,e.x>i.x+i.width-n.right/2&&(o.x+=a),e.x>i.x+i.width-n.right/4&&(o.x+=4*a));return e.y>=i.y&&e.y<i.y+n.top&&this.allowVerticalScroll?(a=Math.max(this.scrollVerticalLineChange,1),a|=0,o.y-=a,e.y<i.y+n.top/2&&(o.y-=a),e.y<i.y+n.top/4&&(o.y-=4*a)):e.y<=i.y+i.height&&e.y>i.y+i.height-n.bottom&&this.allowVerticalScroll&&(a=Math.max(this.scrollVerticalLineChange,1),a|=0,o.y+=a,e.y>i.y+i.height-n.bottom/2&&(o.y+=a),e.y>i.y+i.height-n.bottom/4&&(o.y+=4*a)),o.Xa(gr)||(t=new he(t.x+o.x/r,t.y+o.y/r)),Zt.free(i),he.free(o),t},U=Y.prototype,U.Cs=function(){return null},U.av=function(){return null},U.bs=function(e,t){this.pj.add(e,t)},U.Fu=function(e){(this.Pw=e)||this.nodes.each(function(t){t instanceof qi&&(t.$p=null)})};function Dd(e,t,n){function i(){var p=+new Date;for(o=!0,a.reset();a.next();)if(!a.value[0].al){o=!1;break}o||p-f>u?t(n,r,l):Ke.requestAnimationFrame(i)}for(var r=n.callback,o=!0,a=e.Og.iterator;a.next();)if(!a.value[0].al){o=!1;break}if(typeof r!="function"||o)return t(n,r,e);var l=e,u=n.callbackTimeout||300,f=+new Date;return Ke.requestAnimationFrame(function(){i()}),null}U.Wz=function(e){return Ea?(e===void 0&&(e={}),e.returnType="Image",this.Jx(e)):null},U.Jx=function(e){return e===void 0&&(e={}),Dd(this,this.Xz,e)},U.Xz=function(e,t,n){var i=g0(n,e,"canvas",null);if(i===null)return null;n=i.Z.canvas;var r=null;if(n!==null)switch(r=e.returnType,r===void 0?r="string":r=r.toLowerCase(),r){case pd+"data":r=i.getImageData(0,0,n.width,n.height);break;case pd:i=(e.document||document).createElement("img"),i.src=n.toDataURL(e.type,e.details),r=i;break;case"blob":return typeof t!="function"&&Ve('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof n.toBlob=="function"?(n.toBlob(t,e.type,e.details),"toBlob"):(t(null),null);default:r=n.toDataURL(e.type,e.details)}return typeof t=="function"?(t(r),null):r};function g0(e,t,n,i){if(e.animationManager.Cc(),e.bd(),e.ta===null)return null;typeof t!="object"&&Ve("properties argument must be an Object.");var r=t.size||null,o=t.scale||null;t.scale!==void 0&&isNaN(t.scale)&&(o="NaN");var a=t.maxSize;t.maxSize===void 0&&(a=n==="SVG"?new pi(1/0,1/0):new pi(2e3,2e3));var l=t.position||null,u=t.parts||null,f=t.padding===void 0?1:t.padding,p=t.background||null,x=t.omitTemporary;x===void 0&&(x=!0);var N=t.document||document,R=t.elementFinished||null,_=t.showTemporary;_===void 0&&(_=!x),t=t.showGrid,t===void 0&&(t=_),r!==null&&isNaN(r.width)&&isNaN(r.height)&&(r=null),typeof f=="number"?f=new mi(f):f instanceof mi||Ve("MakeImage padding must be a Margin or a number."),f.left=Math.max(f.left,0),f.right=Math.max(f.right,0),f.top=Math.max(f.top,0),f.bottom=Math.max(f.bottom,0),e.ib.Vc(!0),x=new $u(null,N,void 0,!0);var V=x.context;if(!(r||o||u||l))return x.width=e.Aa+Math.ceil(f.left+f.right),x.height=e.ya+Math.ceil(f.top+f.bottom),n==="SVG"?i===null?null:(i.resize(x.width,x.height,x.width,x.height),i.ownerDocument=N,i.hs=R,ba(e,i.context,f,new pi(x.width,x.height),e.Ca,e.pa,u,p,_,t),i.context):(e.Xm=!1,ba(e,V,f,new pi(x.width,x.height),e.Ca,e.pa,u,p,_,t),e.Xm=!0,x.context);var xe=e.Pp,ue=e.documentBounds.copy();if(ue.Fv(e.yb),_)for(var Fe=e.Wa.s,Ue=Fe.length,We=0;We<Ue;We++){var rt=Fe[We];if(rt.visible&&rt.isTemporary){rt=rt.Pa.s;for(var At=rt.length,Kn=0;Kn<At;Kn++){var ri=rt[Kn];ri.isInDocumentBounds&&ri.isVisible()&&(ri=ri.actualBounds,ri.w()&&ue.ed(ri))}}}if(Fe=new he(ue.x,ue.y),u!==null){for(Ue=new Zt(0,0,0,0),We=!0,rt=u.iterator,rt.reset();rt.next();)At=rt.value,At instanceof Ci&&(Kn=At.layer,Kn!==null&&!Kn.visible||Kn!==null&&!_&&Kn.isTemporary||!At.isVisible()||(At=At.actualBounds,At.w()&&(We?(We=!1,Ue.assign(At)):Ue.ed(At))));ue.width=Ue.width,ue.height=Ue.height,Fe.x=Ue.x,Fe.y=Ue.y}return l!==null&&l.w()&&(Fe=l,o||(o=xe)),Ue=l=0,f!==null&&(l=f.left+f.right,Ue=f.top+f.bottom),We=rt=0,r!==null&&(rt=r.width,We=r.height,isFinite(rt)&&(rt=Math.max(0,rt-l)),isFinite(We)&&(We=Math.max(0,We-Ue))),r!==null&&o!==null?(o==="NaN"&&(o=xe),r.w()?(r=rt,ue=We):isNaN(We)?(r=rt,ue=ue.height*o):(r=ue.width*o,ue=We)):r!==null?r.w()?(o=Math.min(rt/ue.width,We/ue.height),r=rt,ue=We):isNaN(We)?(o=rt/ue.width,r=rt,ue=ue.height*o):(o=We/ue.height,r=ue.width*o,ue=We):o!==null?o==="NaN"&&a.w()?(o=Math.min((a.width-l)/ue.width,(a.height-Ue)/ue.height),o>xe?(o=xe,r=ue.width,ue=ue.height):(r=a.width,ue=a.height)):(r=ue.width*o,ue=ue.height*o):(o=xe,r=ue.width,ue=ue.height),f!==null?(r+=l,ue+=Ue):f=new mi(0),a!==null&&(xe=a.width,a=a.height,isNaN(xe)&&(xe=2e3),isNaN(a)&&(a=2e3),isFinite(xe)&&(r=Math.min(r,xe)),isFinite(a)&&(ue=Math.min(ue,a))),x.width=Math.ceil(r),x.height=Math.ceil(ue),n==="SVG"?i===null?null:(i.resize(x.width,x.height,x.width,x.height),i.ownerDocument=N,i.hs=R,ba(e,i.context,f,new pi(Math.ceil(r),Math.ceil(ue)),o,Fe,u,p,_,t),i.context):(e.Xm=!1,ba(e,V,f,new pi(Math.ceil(r),Math.ceil(ue)),o,Fe,u,p,_,t),e.Xm=!0,x.context)}ht.Object.defineProperties(Y.prototype,{renderer:{get:function(){return this.nl},set:function(e){this instanceof w||(e===""&&(e="default"),e=e.toLowerCase(),e!==this.nl&&(this.nl=e,e==="default"||e==="canvas"?(e=this.pj.get("svg"),e!==null&&e.Oa.remove(),this.ta&&(this.ib=this.ta.context)):e==="svg"?(this.pj.contains("svg")?e=this.pj.get("svg"):(e=new kc(this,Ke.document),this.bs("svg",e)),this.div!==null&&this.div.appendChild(e.Oa),this.ib=e.context,this.ta&&(this.ta.context.setTransform(this.Mb,0,0,this.Mb,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya))):e!=="debug"||this.pj.contains("SVG")||(e=new kc(this,Ke.document),this.bs("SVG",e),e.Oa.style.backgroundColor="whitesmoke",this.div!==null&&this.div.after(e.Oa)),this.hk()))}},div:{get:function(){return this.Ka},set:function(e){if(this.Ka!==e){var t=this.Ka;t!==null?(t.H=void 0,t.goDiagram=void 0,t.go=void 0,t.innerHTML="",this.ta!==null&&(t=this.ta.Oa,this.removeEventListener(t,"pointermove",this.dk,!1),this.removeEventListener(t,"pointerdown",this.ui,!1),this.removeEventListener(t,"pointerup",this.fk,!1),this.removeEventListener(t,"pointerout",this.ek,!1),this.removeEventListener(t,"pointercancel",this.ck,!1),this.ta.mx()),this.ol&&(this.ol.disconnect(),this.ol=null),t=this.toolManager,t!==null&&(t.mouseDownTools.each(function(n){n.cancelWaitAfter()}),t.mouseMoveTools.each(function(n){n.cancelWaitAfter()}),t.mouseUpTools.each(function(n){n.cancelWaitAfter()})),t.cancelWaitAfter(),this.currentTool.doCancel(),this.ta=null,this.removeEventListener(Ke,"resize",this.Ov,!1),this.removeEventListener(Ke,"wheel",this.$j,!0),ft===this&&(ft=null)):this.ui===null&&(this.hf=!1),this.Ka=null,e!==null&&((t=e.H)&&(t.div=null),Ti(this,e),this.hk())}}},$w:{get:function(){return this.Sq}},pi:{get:function(){return this.hf}},draggedLink:{get:function(){return this.nt},set:function(e){this.nt!==e&&(this.nt=e,e!==null&&(this.Vt=e.fromPort,this.Wt=e.toPort))}},Mx:{get:function(){return this.Vt},set:function(e){this.Vt=e}},Nx:{get:function(){return this.Wt},set:function(e){this.Wt=e}},animationManager:{get:function(){return this.Yd}},undoManager:{get:function(){return this.cc.undoManager}},skipsUndoManager:{get:function(){return this.Wg},set:function(e){this.Wg=e,this.cc.skipsUndoManager=e}},delaysLayout:{get:function(){return this.lt},set:function(e){this.lt=e}},opacity:{get:function(){return this.pb},set:function(e){var t=this.pb;t!==e&&((0>e||1<e)&&Lt(e,"0 <= value <= 1",Y,"opacity"),this.pb=e,this.g("opacity",t,e),this.N())}},validCycle:{get:function(){return this.wu},set:function(e){var t=this.wu;t!==e&&(this.wu=e,this.g("validCycle",t,e))}},layers:{get:function(){return this.Wa.iterator}},isModelReadOnly:{get:function(){var e=this.cc;return e===null?!1:e.isReadOnly},set:function(e){var t=this.cc;t!==null&&(t.isReadOnly=e)}},isReadOnly:{get:function(){return this.Gg},set:function(e){var t=this.Gg;t!==e&&(this.Gg=e,this.g("isReadOnly",t,e))}},isEnabled:{get:function(){return this.Jd},set:function(e){var t=this.Jd;t!==e&&(this.Jd=e,this.g("isEnabled",t,e))}},allowClipboard:{get:function(){return this.Us},set:function(e){var t=this.Us;t!==e&&(this.Us=e,this.g("allowClipboard",t,e))}},allowCopy:{get:function(){return this.Fi},set:function(e){var t=this.Fi;t!==e&&(this.Fi=e,this.g("allowCopy",t,e))}},allowDelete:{get:function(){return this.Gi},set:function(e){var t=this.Gi;t!==e&&(this.Gi=e,this.g("allowDelete",t,e))}},allowDragOut:{get:function(){return this.Vs},set:function(e){var t=this.Vs;t!==e&&(this.Vs=e,this.g("allowDragOut",t,e))}},allowDrop:{get:function(){return this.Ws},set:function(e){var t=this.Ws;t!==e&&(this.Ws=e,this.g("allowDrop",t,e))}},allowTextEdit:{get:function(){return this.Pi},set:function(e){var t=this.Pi;t!==e&&(this.Pi=e,this.g("allowTextEdit",t,e))}},allowGroup:{get:function(){return this.Hi},set:function(e){var t=this.Hi;t!==e&&(this.Hi=e,this.g("allowGroup",t,e))}},allowUngroup:{get:function(){return this.Qi},set:function(e){var t=this.Qi;t!==e&&(this.Qi=e,this.g("allowUngroup",t,e))}},allowInsert:{get:function(){return this.Ys},set:function(e){var t=this.Ys;t!==e&&(this.Ys=e,this.g("allowInsert",t,e))}},allowLink:{get:function(){return this.Ii},set:function(e){var t=this.Ii;t!==e&&(this.Ii=e,this.g("allowLink",t,e))}},allowRelink:{get:function(){return this.Ki},set:function(e){var t=this.Ki;t!==e&&(this.Ki=e,this.g("allowRelink",t,e))}},allowMove:{get:function(){return this.Ji},set:function(e){var t=this.Ji;t!==e&&(this.Ji=e,this.g("allowMove",t,e))}},allowReshape:{get:function(){return this.Li},set:function(e){var t=this.Li;t!==e&&(this.Li=e,this.g("allowReshape",t,e))}},allowResize:{get:function(){return this.Mi},set:function(e){var t=this.Mi;t!==e&&(this.Mi=e,this.g("allowResize",t,e))}},allowRotate:{get:function(){return this.Ni},set:function(e){var t=this.Ni;t!==e&&(this.Ni=e,this.g("allowRotate",t,e))}},allowSelect:{get:function(){return this.Oi},set:function(e){var t=this.Oi;t!==e&&(this.Oi=e,this.g("allowSelect",t,e))}},allowUndo:{get:function(){return this.Zs},set:function(e){var t=this.Zs;t!==e&&(this.Zs=e,this.g("allowUndo",t,e))}},allowZoom:{get:function(){return this.at},set:function(e){var t=this.at;t!==e&&(this.at=e,this.g("allowZoom",t,e))}},hasVerticalScrollbar:{get:function(){return this.nn},set:function(e){var t=this.nn;t!==e&&(this.nn=e,this.Ee=!0,this.N(),this.g("hasVerticalScrollbar",t,e),Yo(this,!1))}},hasHorizontalScrollbar:{get:function(){return this.mn},set:function(e){var t=this.mn;t!==e&&(this.mn=e,this.Ee=!0,this.N(),this.g("hasHorizontalScrollbar",t,e),Yo(this,!1))}},allowHorizontalScroll:{get:function(){return this.Xs},set:function(e){var t=this.Xs;t!==e&&(this.Xs=e,this.g("allowHorizontalScroll",t,e),Yo(this,!1))}},allowVerticalScroll:{get:function(){return this.$s},set:function(e){var t=this.$s;t!==e&&(this.$s=e,this.g("allowVerticalScroll",t,e),Yo(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(e){var t=this.iu;t!==e&&(0>e&&Lt(e,">= 0",Y,"scrollHorizontalLineChange"),this.iu=e,this.g("scrollHorizontalLineChange",t,e))}},scrollVerticalLineChange:{get:function(){return this.mu},set:function(e){var t=this.mu;t!==e&&(0>e&&Lt(e,">= 0",Y,"scrollVerticalLineChange"),this.mu=e,this.g("scrollVerticalLineChange",t,e))}},lastInput:{get:function(){return this.cj},set:function(e){this.cj=e}},previousInput:{get:function(){return this.Qg},set:function(e){this.Qg=e}},firstInput:{get:function(){return this.bq},set:function(e){this.bq=e}},currentCursor:{get:function(){return this.it},set:function(e){if(e===""&&(e=this.Op),this.it!==e){var t=this.ta,n=this.Ka;if(t!==null&&n!==null){this.it=e;var i=t.style.cursor;t.style.cursor=e,n.style.cursor=e,t.style.cursor===i&&(t.style.cursor="-webkit-"+e,n.style.cursor="-webkit-"+e,t.style.cursor===i&&(t.style.cursor="-moz-"+e,n.style.cursor="-moz-"+e,t.style.cursor===i&&(t.style.cursor=e,n.style.cursor=e)))}}}},defaultCursor:{get:function(){return this.Op},set:function(e){e===""&&(e="auto");var t=this.Op;t!==e&&(this.Op=e,this.g("defaultCursor",t,e))}},click:{get:function(){return this.zh},set:function(e){var t=this.zh;t!==e&&(this.zh=e,this.g("click",t,e))}},doubleClick:{get:function(){return this.Fh},set:function(e){var t=this.Fh;t!==e&&(this.Fh=e,this.g("doubleClick",t,e))}},contextClick:{get:function(){return this.Bh},set:function(e){var t=this.Bh;t!==e&&(this.Bh=e,this.g("contextClick",t,e))}},mouseOver:{get:function(){return this.Qh},set:function(e){var t=this.Qh;t!==e&&(this.Qh=e,this.g("mouseOver",t,e))}},mouseHover:{get:function(){return this.Oh},set:function(e){var t=this.Oh;t!==e&&(this.Oh=e,this.g("mouseHover",t,e))}},mouseHold:{get:function(){return this.Nh},set:function(e){var t=this.Nh;t!==e&&(this.Nh=e,this.g("mouseHold",t,e))}},mouseDragOver:{get:function(){return this.Qt},set:function(e){var t=this.Qt;t!==e&&(this.Qt=e,this.g("mouseDragOver",t,e))}},mouseDrop:{get:function(){return this.Lh},set:function(e){var t=this.Lh;t!==e&&(this.Lh=e,this.g("mouseDrop",t,e))}},handlesDragDropForTopLevelParts:{get:function(){return this.xt},set:function(e){var t=this.xt;t!==e&&(this.xt=e,this.g("handlesDragDropForTopLevelParts",t,e))}},mouseEnter:{get:function(){return this.Mh},set:function(e){var t=this.Mh;t!==e&&(this.Mh=e,this.g("mouseEnter",t,e))}},mouseLeave:{get:function(){return this.Ph},set:function(e){var t=this.Ph;t!==e&&(this.Ph=e,this.g("mouseLeave",t,e))}},toolTip:{get:function(){return this.$h},set:function(e){var t=this.$h;t!==e&&(this.$h=e,this.g("toolTip",t,e))}},contextMenu:{get:function(){return this.Ch},set:function(e){var t=this.Ch;t!==e&&(this.Ch=e,this.g("contextMenu",t,e))}},commandHandler:{get:function(){return this.nb},set:function(e){this.nb!==e&&(this.nb=e,e.Xe(this))}},toolManager:{get:function(){return this.te},set:function(e){this.te!==e&&(this.te=e,e.diagram=this)}},defaultTool:{get:function(){return this.ob},set:function(e){var t=this.ob;t!==e&&(this.ob=e,e.diagram=this,this.currentTool===t&&(this.currentTool=e))}},currentTool:{get:function(){return this.hb},set:function(e){var t=this.hb;t&&(t.isActive&&t.doDeactivate(),t.cancelWaitAfter(),t.doStop()),e===null&&(e=this.defaultTool),e!==null&&(this.hb=e,e.diagram=this,e.doStart())}},selection:{get:function(){return this.Hw}},maxSelectionCount:{get:function(){return this.Nt},set:function(e){var t=this.Nt;if(t!==e)if(0<=e&&!isNaN(e)){if(this.Nt=e,this.g("maxSelectionCount",t,e),!this.undoManager.isUndoingRedoing&&(e=this.selection.count-e,0<e)){this.R("ChangingSelection",this.selection),t=this.selection.Fa();for(var n=0;n<e;n++)t[n].isSelected=!1;this.R("ChangedSelection",this.selection)}}else Lt(e,">= 0",Y,"maxSelectionCount")}},nodeSelectionAdornmentTemplate:{get:function(){return this.St},set:function(e){var t=this.St;t!==e&&(this.St=e,this.g("nodeSelectionAdornmentTemplate",t,e))}},groupSelectionAdornmentTemplate:{get:function(){return this.wt},set:function(e){var t=this.wt;t!==e&&(this.wt=e,this.g("groupSelectionAdornmentTemplate",t,e))}},linkSelectionAdornmentTemplate:{get:function(){return this.Kt},set:function(e){var t=this.Kt;t!==e&&(this.Kt=e,this.g("linkSelectionAdornmentTemplate",t,e))}},highlighteds:{get:function(){return this.nw}},isModified:{get:function(){var e=this.undoManager;return e.isEnabled?e.currentTransaction!==null?!0:this.rn&&this.Ce!==e.historyIndex:this.rn},set:function(e){if(this.rn!==e){this.rn=e;var t=this.undoManager;!e&&t.isEnabled&&(this.Ce=t.historyIndex),e||d0(this)}}},model:{get:function(){return this.cc},set:function(e){var t=this.cc;if(t!==e){this.currentTool.doCancel(),t&&t.undoManager!==e.undoManager&&t.undoManager.isInTransaction&&Ve("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var n=Bn(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var i=this.vb;this.vb=!0,qo(this.animationManager,"Model"),t&&(this.pf!==null&&this.pf.each(function(o){return t.ik(o)}),t.ik(this.Oc)),this.cc=e,this.partManager=ip(this.cc.type);for(var r=0;r<n.length;r++)this.add(n[r]);e.Pe(this.Hb),this.partManager.addAllModeledParts(),e.ik(this.Hb),e.Pe(this.Oc),this.pf!==null&&this.pf.each(function(o){return e.Pe(o)}),this.vb=i,this.Ya(),this.vb||this.N(),t&&e.undoManager.copyProperties(t.undoManager)}}},aa:{get:function(){return this.rw},set:function(e){this.rw=e}},As:{get:function(){return this.sy}},skipsModelSourceBindings:{get:function(){return this.Iw},set:function(e){this.Iw=e}},Ns:{get:function(){return this.ou},set:function(e){this.ou=e}},nodeTemplate:{get:function(){return this.Lg.I("")},set:function(e){var t=this.Lg.I("");t!==e&&(this.Lg.add("",e),this.g("nodeTemplate",t,e),this.undoManager.isUndoingRedoing||this.Wd())}},nodeTemplateMap:{get:function(){return this.Lg},set:function(e){var t=this.Lg;t!==e&&(this.Lg=e,this.g("nodeTemplateMap",t,e),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplate:{get:function(){return this.Yi.I("")},set:function(e){var t=this.Yi.I("");t!==e&&(this.Yi.add("",e),this.g("groupTemplate",t,e),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplateMap:{get:function(){return this.Yi},set:function(e){var t=this.Yi;t!==e&&(this.Yi=e,this.g("groupTemplateMap",t,e),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplate:{get:function(){return this.Kh.I("")},set:function(e){var t=this.Kh.I("");t!==e&&(this.Kh.add("",e),this.g("linkTemplate",t,e),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplateMap:{get:function(){return this.Kh},set:function(e){var t=this.Kh;t!==e&&(this.Kh=e,this.g("linkTemplateMap",t,e),this.undoManager.isUndoingRedoing||this.Wd())}},isMouseCaptured:{get:function(){return this.qw},set:function(e){var t=this.ta;t!==null&&(t=t.Oa,t instanceof SVGElement||(e?(this.lastInput.bubbles=!1,this.removeEventListener(t,"pointermove",this.dk,!1),this.removeEventListener(t,"pointerdown",this.ui,!1),this.removeEventListener(t,"pointerup",this.fk,!1),this.removeEventListener(t,"pointerout",this.ek,!1),this.removeEventListener(t,"pointercancel",this.ck,!1),this.addEventListener(Ke,"pointermove",this.dk,!0),this.addEventListener(Ke,"pointerdown",this.ui,!0),this.addEventListener(Ke,"pointerup",this.fk,!0),this.addEventListener(Ke,"pointerout",this.ek,!0),this.addEventListener(Ke,"pointercancel",this.ck,!0),this.removeEventListener(t,"wheel",this.$j,!1),this.addEventListener(Ke,"wheel",this.$j,!0),this.addEventListener(Ke,"selectstart",this.preventDefault,!1)):(this.removeEventListener(Ke,"pointermove",this.dk,!0),this.removeEventListener(Ke,"pointerdown",this.ui,!0),this.removeEventListener(Ke,"pointerup",this.fk,!0),this.removeEventListener(Ke,"pointerout",this.ek,!0),this.removeEventListener(Ke,"pointercancel",this.ck,!0),this.addEventListener(t,"pointermove",this.dk,!1),this.addEventListener(t,"pointerdown",this.ui,!1),this.addEventListener(t,"pointerup",this.fk,!1),this.addEventListener(t,"pointerout",this.ek,!1),this.addEventListener(t,"pointercancel",this.ck,!1),this.removeEventListener(Ke,"wheel",this.$j,!0),this.removeEventListener(Ke,"selectstart",this.preventDefault,!1),this.addEventListener(t,"wheel",this.$j,!1)),this.qw=e))}},position:{get:function(){return this.pa},set:function(e){var t=he.alloc().assign(this.pa);if(!t.D(e)){var n=this.viewportBounds.copy();this.pa.assign(e),Ha(this.animationManager,t,this.pa),this.vb||this.ta===null&&!this.wo.w()?Ac(this):(this.vb=!0,e=this.scale,ls(this,this.Sp,this.Aa/e,this.ya/e,this.zk,!1),this.vb=!1),this.vb||this.onViewportBoundsChanged(n,this.viewportBounds,this.Ca,!1)}he.free(t)}},initialPosition:{get:function(){return this.zt},set:function(e){this.zt.D(e)||(this.zt=e.J())}},initialScale:{get:function(){return this.At},set:function(e){this.At!==e&&(this.At=e)}},grid:{get:function(){return this.fe===null&&(this.fe=To(this)),this.fe},set:function(e){var t=this.fe;if(t!==e){t===null&&(t=this.fe=To(this)),e.type!==kn.Grid&&Ve("Diagram.grid must be a Panel of type Panel.Grid");var n=t.panel;n!==null&&n.remove(t),this.fe=e,e.name="GRID",n!==null&&n.add(e),Nc(this),this.N(),this.g("grid",t,e)}}},viewportBounds:{get:function(){return this.Rw}},viewSize:{get:function(){return this.wo},set:function(e){var t=this.viewSize;t.D(e)||(this.wo=e=e.J(),this.ya=this.Aa=0,e.w()?(this.Aa=e.width,this.ya=e.height):this.Ka!==null&&(this.Aa=this.Ka.clientWidth||1,this.ya=this.Ka.clientHeight||1),Ac(this),this.Ya(),this.g("viewSize",t,e),this.redraw())}},fixedBounds:{get:function(){return this.ut},set:function(e){var t=this.ut;t.D(e)||(e.width!==-1/0&&e.height!==1/0&&e.height!==-1/0||Ve("fixedBounds width/height must not be Infinity"),this.ut=e=e.J(),this.Ya(),this.g("fixedBounds",t,e))}},scrollMargin:{get:function(){return this.rj},set:function(e){typeof e=="number"&&(e=new mi(e));var t=this.rj;t.D(e)||(this.rj=e=e.J(),this.g("scrollMargin",t,e),this.hk())}},scrollMode:{get:function(){return this.sj},set:function(e){var t=this.sj;t!==e&&(this.sj=e,e===ph&&Yo(this,!1),this.g("scrollMode",t,e),this.Ee=!0,this.N())}},scrollsPageOnFocus:{get:function(){return this.nu},set:function(e){var t=this.nu;t!==e&&(this.nu=e,this.g("scrollsPageOnFocus",t,e))}},positionComputation:{get:function(){return this.Zt},set:function(e){var t=this.Zt;t!==e&&(this.Zt=e,Yo(this,!1),this.g("positionComputation",t,e))}},scaleComputation:{get:function(){return this.fu},set:function(e){var t=this.fu;t!==e&&(this.fu=e,np(this,this.scale,this.scale),this.g("scaleComputation",t,e))}},documentBounds:{get:function(){return this.Sp}},isVirtualized:{get:function(){return this.It},set:function(e){var t=this.It;t!==e&&(this.It=e,this.g("isVirtualized",t,e))}},scale:{get:function(){return this.Ca},set:function(e){var t=this.Ca;t!==e&&np(this,t,e)}},defaultScale:{get:function(){return this.Pp},set:function(e){this.Pp=e}},autoScale:{get:function(){return this.yh},set:function(e){var t=this.yh;t!==e&&(this.yh=e,this.g("autoScale",t,e),e!==sl&&Yo(this,!1))}},initialAutoScale:{get:function(){return this.Fg},set:function(e){var t=this.Fg;t!==e&&(this.Fg=e,this.g("initialAutoScale",t,e))}},initialViewportSpot:{get:function(){return this.Bt},set:function(e){var t=this.Bt;t!==e&&(e.sb()||Ve("initialViewportSpot must be a specific Spot: "+e),this.Bt=e,this.g("initialViewportSpot",t,e))}},initialDocumentSpot:{get:function(){return this.yt},set:function(e){var t=this.yt;t!==e&&(e.sb()||Ve("initialViewportSpot must be a specific Spot: "+e),this.yt=e,this.g("initialDocumentSpot",t,e))}},minScale:{get:function(){return this.Ot},set:function(e){var t=this.Ot;t!==e&&(0<e?(this.Ot=e,this.g("minScale",t,e),e>this.scale&&(this.scale=e)):Lt(e,"> 0",Y,"minScale"))}},maxScale:{get:function(){return this.Mt},set:function(e){var t=this.Mt;t!==e&&(0<e?(this.Mt=e,this.g("maxScale",t,e),e<this.scale&&(this.scale=e)):Lt(e,"> 0",Y,"maxScale"))}},zoomPoint:{get:function(){return this.zu},set:function(e){this.zu.D(e)||(this.zu=e=e.J())}},contentAlignment:{get:function(){return this.zk},set:function(e){var t=this.zk;t.D(e)||(this.zk=e=e.J(),this.g("contentAlignment",t,e),Yo(this,!1))}},initialContentAlignment:{get:function(){return this.pq},set:function(e){var t=this.pq;t.D(e)||(this.pq=e=e.J(),this.g("initialContentAlignment",t,e))}},padding:{get:function(){return this.yb},set:function(e){typeof e=="number"&&(e=new mi(e));var t=this.yb;t.D(e)||(this.yb=e=e.J(),this.Ya(),this.g("padding",t,e))}},partManager:{get:function(){return this.Pc},set:function(e){var t=this.Pc;t!==e&&(e.diagram!==null&&Ve("Cannot share PartManagers between Diagrams: "+e.toString()),t&&t.Xe(null),this.Pc=e,e.Xe(this))}},nodes:{get:function(){return this.partManager.nodes.iterator}},links:{get:function(){return this.partManager.links.iterator}},parts:{get:function(){return this.partManager.parts.iterator}},layout:{get:function(){return this.Sc},set:function(e){var t=this.Sc;t!==e&&(this.Sc=e,e.diagram=this,e.group=null,this.xh=!0,this.g("layout",t,e),this.$b())}},isTreePathToChildren:{get:function(){return this.Ht},set:function(e){var t=this.Ht;if(t!==e&&(this.Ht=e,this.g("isTreePathToChildren",t,e),!this.undoManager.isUndoingRedoing))for(e=this.nodes;e.next();)Np(e.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(e){var t=this.uu;t!==e&&(e!==mh&&e!==Za&&e!==mf&&Ve("Unknown Diagram.treeCollapsePolicy: "+e),this.uu=e,this.g("treeCollapsePolicy",t,e))}},Ue:{get:function(){return this.pw},set:function(e){this.pw=e}},avoidanceCellSize:{get:function(){return this.aw},set:function(e){this.Xh=null,this.aw=new pi(Math.max(1,e.width),Math.max(1,e.height))}},avoidanceLimit:{get:function(){return this.bw},set:function(e){this.bw=Math.max(1,e)}},autoScrollInterval:{get:function(){return this.vp},set:function(e){var t=this.vp;t!==e&&(this.vp=e,this.g("autoScrollInterval",t,e))}},autoScrollRegion:{get:function(){return this.xp},set:function(e){typeof e=="number"&&(e=new mi(e));var t=this.xp;t.D(e)||(this.xp=e=e.J(),this.Ya(),this.g("autoScrollRegion",t,e))}}}),ht.Object.defineProperties(Y,{licenseKey:{get:function(){return pp.jc()},set:function(e){pp.add(e.replace(/\s/g,""))}},version:{get:function(){return fd}}}),Y.prototype.makeImageData=Y.prototype.Jx,Y.prototype.makeImage=Y.prototype.Wz,Y.prototype.cacheGroupExternalLinks=Y.prototype.Fu,Y.prototype.addRenderer=Y.prototype.bs,Y.prototype.makeSVG=Y.prototype.av,Y.prototype.makeSvg=Y.prototype.Cs,Y.prototype.stopAutoScroll=Y.prototype.ug,Y.prototype.doAutoScroll=Y.prototype.gs,Y.prototype.isUnoccupied=Y.prototype.Yj,Y.prototype.raiseDiagramEvent=Y.prototype.R,Y.prototype.removeDiagramListener=Y.prototype.am,Y.prototype.addDiagramListener=Y.prototype.Bj,Y.prototype.findTreeRoots=Y.prototype.yz,Y.prototype.layoutDiagram=Y.prototype.Uz,Y.prototype.findTopLevelGroups=Y.prototype.qz,Y.prototype.findTopLevelNodesAndLinks=Y.prototype.rz,Y.prototype.ensureBounds=Y.prototype.Va,Y.prototype.findLinksByExample=Y.prototype.ls,Y.prototype.findNodesByExample=Y.prototype.ms,Y.prototype.findLinkForData=Y.prototype.Kc,Y.prototype.findNodeForData=Y.prototype.ii,Y.prototype.findPartForData=Y.prototype.Lc,Y.prototype.findLinkForKey=Y.prototype.findLinkForKey,Y.prototype.findNodeForKey=Y.prototype.Vb,Y.prototype.findPartForKey=Y.prototype.findPartForKey,Y.prototype.rebuildParts=Y.prototype.Wd,Y.prototype.transformViewToDoc=Y.prototype.Ps,Y.prototype.transformRectDocToView=Y.prototype.zA,Y.prototype.transformDocToView=Y.prototype.op,Y.prototype.centerRect=Y.prototype.es,Y.prototype.scrollToRect=Y.prototype.tv,Y.prototype.scroll=Y.prototype.scroll,Y.prototype.highlightCollection=Y.prototype.Jz,Y.prototype.highlight=Y.prototype.Iz,Y.prototype.selectCollection=Y.prototype.rA,Y.prototype.select=Y.prototype.select,Y.prototype.updateAllRelationshipsFromData=Y.prototype.rp,Y.prototype.updateAllTargetBindings=Y.prototype.updateAllTargetBindings,Y.prototype.commit=Y.prototype.commit,Y.prototype.rollbackTransaction=Y.prototype.Kf,Y.prototype.commitTransaction=Y.prototype.eb,Y.prototype.startTransaction=Y.prototype.Ea,Y.prototype.raiseChanged=Y.prototype.g,Y.prototype.raiseChangedEvent=Y.prototype.cb,Y.prototype.removeChangedListener=Y.prototype.ik,Y.prototype.addChangedListener=Y.prototype.Pe,Y.prototype.removeModelChangedListener=Y.prototype.mA,Y.prototype.addModelChangedListener=Y.prototype.Yw,Y.prototype.findLayer=Y.prototype.Qj,Y.prototype.removeLayer=Y.prototype.kA,Y.prototype.addLayerAfter=Y.prototype.Cy,Y.prototype.addLayerBefore=Y.prototype.Ww,Y.prototype.addLayer=Y.prototype.Al,Y.prototype.moveParts=Y.prototype.moveParts,Y.prototype.copyParts=Y.prototype.Kj,Y.prototype.removeParts=Y.prototype.Is,Y.prototype.remove=Y.prototype.remove,Y.prototype.add=Y.prototype.add,Y.prototype.clearDelayedGeometries=Y.prototype.bx,Y.prototype.setProperties=Y.prototype.nm,Y.prototype.attach=Y.prototype.Du,Y.prototype.set=Y.prototype.set,Y.prototype.resetInputOptions=Y.prototype.Sx,Y.prototype.setInputOption=Y.prototype.sA,Y.prototype.getInputOption=Y.prototype.Ql,Y.prototype.resetRenderingHints=Y.prototype.Tx,Y.prototype.setRenderingHint=Y.prototype.Xx,Y.prototype.getRenderingHint=Y.prototype.Gf,Y.prototype.maybeUpdate=Y.prototype.bd,Y.prototype.requestUpdate=Y.prototype.$b,Y.prototype.delayInitialization=Y.prototype.Xy,Y.prototype.isUpdateRequested=Y.prototype.Pz,Y.prototype.invalidateDocumentBounds=Y.prototype.Ya,Y.prototype.findObjectsNear=Y.prototype.og,Y.prototype.findPartsNear=Y.prototype.mz,Y.prototype.findObjectsIn=Y.prototype.Cf,Y.prototype.findPartsIn=Y.prototype.ux,Y.prototype.findObjectsAt=Y.prototype.ji,Y.prototype.findPartsAt=Y.prototype.lz,Y.prototype.findObjectAt=Y.prototype.ic,Y.prototype.findPartAt=Y.prototype.Ol,Y.prototype.focusObject=Y.prototype.zz,Y.prototype.alignDocument=Y.prototype.Jy,Y.prototype.zoomToRect=Y.prototype.BA,Y.prototype.zoomToFit=Y.prototype.zoomToFit,Y.prototype.diagramScroll=Y.prototype.kx,Y.prototype.focus=Y.prototype.focus;var pf=new Zn,v0=null,Ea=Ke.document!==void 0,dd=null,Uh="",sl=new Yt(Y,"None",0),vu=new Yt(Y,"Uniform",1),Hh=new Yt(Y,"UniformToFill",2),Pd=new Yt(Y,"CycleAll",10),up=new Yt(Y,"CycleNotDirected",11),cp=new Yt(Y,"CycleNotDirectedFast",12),hp=new Yt(Y,"CycleNotUndirected",13),dp=new Yt(Y,"CycleDestinationTree",14),fp=new Yt(Y,"CycleSourceTree",15),ph=new Yt(Y,"DocumentScroll",1),Fd=new Yt(Y,"InfiniteScroll",2),mh=new Yt(Y,"TreeParentCollapsed",21),Za=new Yt(Y,"AllParentsCollapsed",22),mf=new Yt(Y,"AnyParentsCollapsed",23),pp=new qt,fd="2.3.10",pd="image",Bd=null,y0=!1;function Js(){if(Ea){var e=Ke.document.createElement("canvas"),t=e.getContext("2d"),n=Nn("7ca11abfd022028846");t[n]=Nn("398c3597c01238");for(var i=["5da73c80a36455d7038e4972187c3cae51fd22",vn.Dx+"4ae6247590da4bb21c324ba3a84e385776",nr.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",qe.za],r=1;5>r;r++)t[Nn("7ca11abfd7330390")](Nn(i[r-1]),10,15*r);for(t[n]=Nn("39f046ebb36e4b"),n=1;5>n;n++)t[Nn("7ca11abfd7330390")](Nn(i[n-1]),10,15*n);(i.length!==4||i[0][0]!=="5"||i[3][0]!=="7")&&(nr.prototype.Cd=nr.prototype.Eu),Bd=e}}Y.className="Diagram",Y.fromDiv=function(e){var t=e;return typeof e=="string"&&(t=Ke.document.getElementById(e)),t instanceof HTMLDivElement&&t.H instanceof Y?t.H:null},Y.inherit=function(e,t){function n(){}if(Object.getPrototypeOf(e).prototype)throw Error(`Used go.Diagram.inherit defining already defined class
`+e);n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e},Y.useDOM=function(e){Ea=e?Ke.document!==void 0:!1},Y.isUsingDOM=function(){return Ea},Y.None=sl,Y.Uniform=vu,Y.UniformToFill=Hh,Y.CycleAll=Pd,Y.CycleNotDirected=up,Y.CycleNotDirectedFast=cp,Y.CycleNotUndirected=hp,Y.CycleDestinationTree=dp,Y.CycleSourceTree=fp,Y.DocumentScroll=ph,Y.InfiniteScroll=Fd,Y.TreeParentCollapsed=mh,Y.AllParentsCollapsed=Za,Y.AnyParentsCollapsed=mf;function b0(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function md(e,t){if(t.ib.setTransform(t.Mb,0,0,t.Mb,0,0),t.ib.yc(),e.Rc===null)e:{t="f";var n=Ke[Nn("76a715b2f73f148a")][Nn("72ba13b5")]||"";if(e.Rc=!0,Ea){var i=Y[Nn("76a115b6ed251eaf4692")];if(i)for(var r=pp.iterator;r.next()&&(i=r.value,i=Nn(i).split(Nn("39e9")),!(6>i.length));){var o=Nn(i[1]).split(".");if(i[4]!=="7da71ca0")break;var a=Nn(vn[Nn("6cae19")]).split(".");if(o[0]>a[0]||o[0]===a[0]&&o[1]>=a[1]){var l=Ke[Nn("74a900bae4370f8b51")][Nn("6fbb13a1c2311e8a57")].toLowerCase();if(a=l[Nn("73a612b6fb191d")](Nn("3aad1ab6e022098b4dc4")),o=Nn(i[2]),-1<a&&(l=l[Nn("73a612b6fb191d")](o.toLowerCase()+"/"),e.Rc=!(-1<l&&l<a),!e.Rc))break;for(a=n[Nn("76ad18b4f73e")],l=n[Nn("73a612b6fb191d")](Nn("35e7"))+2;l<a;l++)t+=n[l];if(a=t[Nn("73a612b6fb191d")](o),0>a&&o!==Nn("7da71ca0ad381e90")&&(a=t[Nn("73a612b6fb191d")](Nn("76a715b2ef3e149757"))),0>a&&(a=t[Nn("73a612b6fb191d")](Nn("76a715b2ef3e149757"))),0>a&&(a=t[Nn("73a612b6fb191d")](Nn("2bfa41fdb3784bca12"))),0>a&&(a=n[Nn("73a612b6fb191d")](Nn("7baa19a6f76c1988428554"))),e.Rc=!(0<=a&&a<t[Nn("73a612b6fb191d")](Nn("35"))||t[Nn("73a612b6fb191d")](Nn("35"))===-1),!e.Rc||n[Nn("73a612b6fb191d")](Nn("7fb002b6ed25128b4da25b2e"))&&(e.Rc=!(-1<n[Nn("73a612b6fb191d")](o)),!e.Rc)||(a=Ke[Nn("76a715b2f73f148a")][Nn("69ad17a1e03e")],l=a[Nn("73a612b6fb191d")](Nn("7fb002b6ed25128b4da25b2e")),-1<l&&(e.Rc=!(a[Nn("73a612b6fb191d")](o)>l),!e.Rc)))break;if(o[0]==="#"){a=Ke.document.createElement("div");for(var u=i[0].replace(/[A-Za-z]/g,"");4>u.length;)u+="9";if(l=u,u=u.substr(u.length-4),i="",i+=["gsh","gsf"][parseInt(u.substr(0,1),10)%2],i+=["Header","Background","Display","Feedback"][parseInt(u.substr(0,1),10)%4],a[Nn("79a417a0f0181a8946")]=i,Ke.document[Nn("78a712aa")]){Ke.document[Nn("78a712aa")][Nn("7bb806b6ed32388c4a875b")](a),u=Ke.getComputedStyle(a).getPropertyValue(Nn("78a704b7e62456904c9b12701b6532a8"));var f=Ke.getComputedStyle(a).getPropertyValue(Nn("75b817b0ea2202"));if(Ke.document[Nn("78a712aa")][Nn("68ad1bbcf533388c4a875b")](a),u){if(a=Ke[Nn("77a902b0eb1b1e804a8a")],f==="0."+parseInt(l,10)%100||u.indexOf(parseInt(o[1]+o[2],16))!==-1&&u.indexOf(parseInt(o[3]+o[4],16))!==-1){e.Rc=!1;break}else if(a&&a(Nn("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(i="."+i,o=0;o<document.styleSheets.length;o++){a=document.styleSheets[o].rules||document.styleSheets[o].cssRules;for(var p in a)if(i===a[p].selectorText){e.Rc=!1;break e}}}}else e.Rc=null,e.Rc=!1}}}else{for(p=n[Nn("76ad18b4f73e")],r=n[Nn("73a612b6fb191d")](Nn("35e7"))+2;r<p;r++)t+=n[r];n=t[Nn("73a612b6fb191d")](Nn("7da71ca0ad381e90")),e.Rc=!(0<=n&&n<t[Nn("73a612b6fb191d")](Nn("35")))}}}return 0<e.Rc&&e!==e.wy}b0.className="DiagramHelper";function Qc(e){this.j=e===void 0?new he:e,this.o=new he}ht.Object.defineProperties(Qc.prototype,{point:{get:function(){return this.j},set:function(e){this.j=e}},shifted:{get:function(){return this.o},set:function(e){this.o=e}}});var _d="DraggingInfo";Qc.className="DraggingInfo";function s(e,t,n){this.node=e,this.info=t,this.Su=n}s.className="DraggingNodeInfoPair";function c(){this.reset()}c.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new pi(NaN,NaN).freeze(),this.gridSnapCellSpot=Jo,this.gridSnapOrigin=new he(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},c.className="DraggingOptions";function b(e,t){if(typeof e=="string"||Ke.Element&&e instanceof Element)var n=Y.call(this,e)||this;else n=Y.call(this)||this,t=e;return y(n),t&&n.nm(t),n}yi(b,Y);function y(e){e.allowDragOut=!0,e.allowMove=!1,e.isReadOnly=!0,e.contentAlignment=Es,e.layout=new ks}b.prototype.reset=function(){Y.prototype.reset.call(this),y(this)},b.className="Palette";function w(e,t){if(typeof e=="string"||Ke.Element&&e instanceof Element)var n=Y.call(this,e)||this;else n=Y.call(this)||this,t=e;var i=n;n.animationManager.isEnabled=!1,n.vb=!0,n.V=null,n.mn=!1,n.nn=!1,n.F=!0,n.u=!0,n.ia=0,n.o=!1,n.ql=null,n.Xx("drawShadows",!1),e=new Ci;var r=new lr;return r.stroke="magenta",r.strokeWidth=2,r.fill="transparent",r.name="BOXSHAPE",e.selectable=!0,e.selectionAdorned=!1,e.selectionObjectName="BOXSHAPE",e.locationObjectName="BOXSHAPE",e.resizeObjectName="BOXSHAPE",e.cursor="move",e.add(r),n.j=e,n.allowCopy=!1,n.allowDelete=!1,n.allowSelect=!0,n.autoScrollRegion=new mi(0,0,0,0),n.pa.h(0,0),n.toolManager.gb("Dragging",new Se,n.toolManager.mouseMoveTools),n.click=function(){var o=i.observed;if(o!==null){var a=o.viewportBounds,l=i.lastInput.documentPoint;o.position=new he(l.x-a.width/2,l.y-a.height/2)}},n.Pf=function(){i.Ya(),ie(i)},n.Xd=function(){i.observed!==null&&(i.Ya(),i.N())},n.Ha=function(){1>i.updateDelay?i.N():i.o||(i.o=!0,setTimeout(function(){return i.redraw()},i.updateDelay))},n.Of=function(){i.observed!==null&&ie(i)},n.autoScale=vu,n.vb=!1,t&&Object.assign(n,t),n}yi(w,Y),w.prototype.computePixelRatio=function(){return 1},w.prototype.redraw=function(){if(this.o&&1<=this.updateDelay){this.o=!1;var e=this.ta,t=this.ib;if(e!==null&&t!==null){if(Qs(this),this.ql===null){var n=new $u(null);n.width=e.width,n.height=e.height,this.ql=n}try{this.ta=this.ql,this.ib=this.ta.context,this.ib.Vc(!0),this.ib.setTransform(1,0,0,1,0,0),this.ib.clearRect(0,0,this.ta.width,this.ta.height),H(this)}finally{this.ta=e,this.ib=t}}}Y.prototype.redraw.call(this)},w.prototype.gc=function(){if(this.Ka===null&&Ve("No div specified"),this.ta===null&&Ve("No canvas specified"),!(this.ta instanceof kc)&&(Gg(this.box),this.Fc)){var e=this.observed;if(e!==null&&!e.animationManager.defaultAnimation.isAnimating&&e.pi){Qs(this);var t=this.ta;e=this.ib,e.Vc(!0),e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,t.width,t.height),1>this.updateDelay?H(this):this.ql!==null&&(e.drawImage(this.ql.Oa,0,0),t=this.Ab,t.reset(),this.scale!==1&&t.scale(this.scale),this.position.x===0&&this.position.y===0||t.translate(-this.position.x,-this.position.y),e.scale(this.Mb,this.Mb),e.transform(t.m11,t.m12,t.m21,t.m22,t.dx,t.dy),e.yc()),t=this.Wa.s;for(var n=t.length,i=0;i<n;i++)t[i].gc(e,this);this.Fc=this.vd=!1}}};function H(e){var t=e.observed;if(t!==null){var n=e.drawsTemporaryLayers,i=e.drawsGrid&&n,r=t.grid;i&&r!==null&&r.visible&&!isNaN(r.width)&&!isNaN(r.height)&&(r=Zt.alloc().assign(e.viewportBounds).ed(t.viewportBounds),Nc(t,r),Zt.free(r),Ka(t));var o=e.Ab;o.reset(),e.scale!==1&&o.scale(e.scale),e.position.x===0&&e.position.y===0||o.translate(-e.position.x,-e.position.y),r=e.ib,r.scale(e.Mb,e.Mb),r.transform(o.m11,o.m12,o.m21,o.m22,o.dx,o.dy),r.yc(),t=t.Wa.s,o=t.length;for(var a=0;a<o;a++){var l=t[a],u=e;if(l.visible&&l.opacity!==0){var f=l.diagram.grid.part;if(!n&&l.isTemporary)i&&f.layer===l&&(l=S(l,r),f.gc(r,u),r.globalAlpha=l);else{for(var p=S(l,r),x=u.scale,N=Zt.alloc(),R=l.Pa.s,_=R.length,V=0;V<_;V++){var xe=R[V];(i||xe!==f)&&l.Oj(r,xe,u,null,x,N,!1)}Zt.free(N),r.globalAlpha=p}}}}}function ie(e){var t=e.box;if(t!==null){var n=e.observed;if(n!==null){e.Fc=!0,n=n.viewportBounds;var i=t.selectionObject,r=pi.alloc();r.h(n.width,n.height),i.desiredSize=r,pi.free(r),e=2/e.scale,i instanceof lr&&(i.strokeWidth=e),t.location=new he(n.x-e/2,n.y-e/2),t.isSelected=!0}}}w.prototype.computeBounds=function(){var e=this.observed;if(e===null)return xr;var t=e.documentBounds.copy();return t.ed(e.viewportBounds),t},w.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},w.prototype.onViewportBoundsChanged=function(e,t,n,i){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),ie(this),this.fc.scale=n,this.fc.position.x=e.x,this.fc.position.y=e.y,this.fc.bounds.assign(e),this.fc.Oz=i,this.R("ViewportBoundsChanged",this.fc,e))},ht.Object.defineProperties(w.prototype,{observed:{get:function(){return this.V},set:function(e){var t=this.V;if(e instanceof w&&Ve("Overview.observed Diagram may not be an Overview itself: "+e),t!==e){if(t!==null&&(this.remove(this.box),t.am("ViewportBoundsChanged",this.Pf),t.am("DocumentBoundsChanged",this.Xd),t.am("InvalidateDraw",this.Ha),t.am("AnimationFinished",this.Of)),this.V=e,e!==null&&(e.Bj("ViewportBoundsChanged",this.Pf),e.Bj("DocumentBoundsChanged",this.Xd),e.Bj("InvalidateDraw",this.Ha),e.Bj("AnimationFinished",this.Of),this.add(this.box)),this.Ya(),e===null){this.ql=null;var n=this.ta,i=this.ib;n&&i&&(i.setTransform(1,0,0,1,0,0),i.clearRect(0,0,n.width,n.height))}else this.Ha(null),ie(this),this.N();this.g("observed",t,e)}}},box:{get:function(){return this.j},set:function(e){var t=this.j;t!==e&&(this.j=e,this.remove(t),this.add(this.j),ie(this),this.g("box",t,e))}},drawsTemporaryLayers:{get:function(){return this.F},set:function(e){this.F!==e&&(this.F=e,this.redraw())}},drawsGrid:{get:function(){return this.u},set:function(e){this.u!==e&&(this.u=e,this.redraw())}},updateDelay:{get:function(){return this.ia},set:function(e){0>e&&(e=0),this.ia!==e&&(this.ia=e)}}}),w.className="Overview";function Se(){Ao.call(this),this.j=null}yi(Se,Ao),Se.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;if(e===null||!e.allowMove||!e.allowSelect)return!1;var t=e.observed;if(t===null)return!1;var n=e.lastInput;return!n.left||e.currentTool!==this&&(!this.isBeyondDragSize()||n.isTouchEvent&&n.timestamp-e.firstInput.timestamp<this.delay)?!1:(this.findDraggablePart()===null&&(n=t.viewportBounds,this.j=new he(n.width/2,n.height/2),e=e.firstInput.documentPoint,t.position=new he(e.x-this.j.x,e.y-this.j.y)),!0)},Se.prototype.doActivate=function(){this.j=null,Ao.prototype.doActivate.call(this)},Se.prototype.doUpdateCursor=function(){var e=this.diagram,t=e.box;t!==null&&t.cursor&&(e.currentCursor=t.cursor)},Se.prototype.moveParts=function(){var e=this.diagram,t=e.observed;if(t!==null){var n=e.box;if(n!==null){if(this.j===null){var i=e.firstInput.documentPoint;n=n.location,this.j=new he(i.x-n.x,i.y-n.y)}e=e.lastInput.documentPoint,t.position=new he(e.x-this.j.x,e.y-this.j.y)}}},Se.className="OverviewDraggingTool";function be(){Li(this),this.H=ft,this.Ha=this.u=this.o=!0,this.F=this.V=this.nb=this.ia=!1,this.ij=this.j=null,this.Hb=1.05,this.Jt=NaN,this.sw=null,this.Au=NaN,this.yu=xr,this.hb=!0,this.cg=null,this.ob=200}be.prototype.toString=function(){return"CommandHandler"},be.prototype.Xe=function(e){this.H=e},be.prototype.doKeyDown=function(){var e=this.diagram,t=e.lastInput,n=Mi?t.meta:t.control,i=t.shift,r=t.alt,o=t.key;!n||o!=="C"&&o!=="Insert"?n&&o==="X"||i&&o==="Del"?this.canCutSelection()&&this.cutSelection():n&&o==="V"||i&&o==="Insert"?this.canPasteSelection()&&this.pasteSelection():n&&o==="Y"||r&&i&&o==="Backspace"?this.canRedo()&&this.redo():n&&o==="Z"||r&&o==="Backspace"?this.canUndo()&&this.undo():o==="Del"||o==="Backspace"?this.canDeleteSelection()&&this.deleteSelection():n&&o==="A"?this.canSelectAll()&&this.selectAll():o==="Esc"?this.canStopCommand()&&this.stopCommand():o==="Up"?e.allowVerticalScroll&&(n?e.scroll("pixel","up"):e.scroll("line","up")):o==="Down"?e.allowVerticalScroll&&(n?e.scroll("pixel","down"):e.scroll("line","down")):o==="Left"?e.allowHorizontalScroll&&(n?e.scroll("pixel","left"):e.scroll("line","left")):o==="Right"?e.allowHorizontalScroll&&(n?e.scroll("pixel","right"):e.scroll("line","right")):o==="PageUp"?i&&e.allowHorizontalScroll?e.scroll("page","left"):e.allowVerticalScroll&&e.scroll("page","up"):o==="PageDown"?i&&e.allowHorizontalScroll?e.scroll("page","right"):e.allowVerticalScroll&&e.scroll("page","down"):o==="Home"?n&&e.allowVerticalScroll?e.scroll("document","up"):!n&&e.allowHorizontalScroll&&e.scroll("document","left"):o==="End"?n&&e.allowVerticalScroll?e.scroll("document","down"):!n&&e.allowHorizontalScroll&&e.scroll("document","right"):o===" "?this.canScrollToPart()&&this.scrollToPart():o==="Subtract"?this.canDecreaseZoom()&&this.decreaseZoom():o==="Add"?this.canIncreaseZoom()&&this.increaseZoom():n&&o==="0"?this.canResetZoom()&&this.resetZoom():i&&o==="Z"?this.canZoomToFit()&&this.zoomToFit():n&&!i&&o==="G"?this.canGroupSelection()&&this.groupSelection():n&&i&&o==="G"?this.canUngroupSelection()&&this.ungroupSelection():o==="F2"||t.event&&t.event.key==="F2"?this.canEditTextBlock()&&this.editTextBlock():o==="ContextMenu"||t.event&&t.event.key==="ContextMenu"?this.canShowContextMenu()&&this.showContextMenu():t.bubbles=!0:this.canCopySelection()&&this.copySelection()},be.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},be.prototype.stopCommand=function(){var e=this.diagram,t=e.currentTool;t instanceof Co&&e.allowSelect&&e.clearSelection(),t!==null&&t.doCancel()},be.prototype.canStopCommand=function(){return!0},be.prototype.selectAll=function(){var e=this.diagram;e.N();try{e.currentCursor="wait",e.R("ChangingSelection",e.selection);for(var t=e.parts;t.next();)t.value.isSelected=!0;for(var n=e.nodes;n.next();)n.value.isSelected=!0;for(var i=e.links;i.next();)i.value.isSelected=!0}finally{e.R("ChangedSelection",e.selection),e.currentCursor=""}},be.prototype.canSelectAll=function(){return this.diagram.allowSelect},be.prototype.deleteSelection=function(){var e=this.diagram;try{e.currentCursor="wait",e.R("ChangingSelection",e.selection),e.Ea("Delete"),e.R("SelectionDeleting",e.selection);for(var t=new Xt,n=e.selection.iterator;n.next();)Wh(t,n.value,!0,this.deletesTree?1/0:0,this.deletesConnectedLinks?null:!1,function(i){return i.canDelete()});e.Is(t,!0),e.R("SelectionDeleted",t)}finally{e.eb("Delete"),e.R("ChangedSelection",e.selection),e.currentCursor=""}},be.prototype.canDeleteSelection=function(){var e=this.diagram;return!(e.isReadOnly||e.isModelReadOnly||!e.allowDelete||e.selection.count===0)},be.prototype.copySelection=function(){var e=this.diagram,t=new Xt;for(e=e.selection.iterator;e.next();)Wh(t,e.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(n){return n.canCopy()});this.copyToClipboard(t)},be.prototype.canCopySelection=function(){var e=this.diagram;return!!(e.allowCopy&&e.allowClipboard&&e.selection.count!==0)},be.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},be.prototype.canCutSelection=function(){var e=this.diagram;return!!(!e.isReadOnly&&!e.isModelReadOnly&&e.allowCopy&&e.allowDelete&&e.allowClipboard&&e.selection.count!==0)},be.prototype.copyToClipboard=function(e){var t=this.diagram,n=null;if(e===null)dd=null,Uh="";else{n=t.model;var i=!1,r=!1,o=null;try{n.Tl()&&(i=n.Jj,n.Jj=this.copiesParentKey),n.Wj()&&(r=n.Ij,n.Ij=this.copiesGroupKey),o=t.Kj(e,null,!0)}finally{n.Tl()&&(n.Jj=i),n.Wj()&&(n.Ij=r),n=new qt,n.addAll(o),dd=n,Uh=t.model.dataFormat}}t.R("ClipboardChanged",n)},be.prototype.pasteFromClipboard=function(){var e=new Xt,t=dd;if(t===null)return e;var n=this.diagram;if(Uh!==n.model.dataFormat)return e;var i=n.model,r=!1,o=!1,a=null;try{i.Tl()&&(r=i.Jj,i.Jj=this.copiesParentKey),i.Wj()&&(o=i.Ij,i.Ij=this.copiesGroupKey),a=n.Kj(t,n,!1)}finally{for(i.Tl()&&(i.Jj=r),i.Wj()&&(i.Ij=o),t=a.iterator;t.next();)n=t.value,i=t.key,n.location.w()||(i.location.w()?n.location=i.location:!n.position.w()&&i.position.w()&&(n.position=i.position)),e.add(n)}return e},be.prototype.pasteSelection=function(e){e===void 0&&(e=null);var t=this.diagram;try{t.currentCursor="wait",t.R("ChangingSelection",t.selection),t.Ea("Paste");var n=this.pasteFromClipboard();0<n.count&&t.clearSelection(!0);for(var i=n.iterator;i.next();)i.value.isSelected=!0;if(e!==null){var r=t.computePartsBounds(t.selection);if(r.w()){var o=this.computeEffectiveCollection(t.selection,t.Wm);tc(t,o,new he(e.x-r.centerX,e.y-r.centerY),t.Wm,!1)}}t.R("ClipboardPasted",n)}finally{t.eb("Paste"),t.R("ChangedSelection",t.selection),t.currentCursor=""}},be.prototype.canPasteSelection=function(){var e=this.diagram;return!(e.isReadOnly||e.isModelReadOnly||!e.allowInsert||!e.allowClipboard||dd===null||dd.count===0||Uh!==e.model.dataFormat)},be.prototype.undo=function(){this.diagram.undoManager.undo()},be.prototype.canUndo=function(){var e=this.diagram;return e.isReadOnly||e.isModelReadOnly?!1:e.allowUndo&&e.undoManager.canUndo()},be.prototype.redo=function(){this.diagram.undoManager.redo()},be.prototype.canRedo=function(){var e=this.diagram;return e.isReadOnly||e.isModelReadOnly?!1:e.allowUndo&&e.undoManager.canRedo()},be.prototype.decreaseZoom=function(e){e===void 0&&(e=1/this.zoomFactor);var t=this.diagram;t.autoScale===sl&&(e=t.scale*e,e<t.minScale||e>t.maxScale||(t.scale=e))},be.prototype.canDecreaseZoom=function(e){e===void 0&&(e=1/this.zoomFactor);var t=this.diagram;return t.autoScale!==sl?!1:(e=t.scale*e,e<t.minScale||e>t.maxScale?!1:t.allowZoom)},be.prototype.increaseZoom=function(e){e===void 0&&(e=this.zoomFactor);var t=this.diagram;t.autoScale===sl&&(e=t.scale*e,e<t.minScale||e>t.maxScale||(t.scale=e))},be.prototype.canIncreaseZoom=function(e){e===void 0&&(e=this.zoomFactor);var t=this.diagram;return t.autoScale!==sl?!1:(e=t.scale*e,e<t.minScale||e>t.maxScale?!1:t.allowZoom)},be.prototype.resetZoom=function(e){e===void 0&&(e=this.defaultScale);var t=this.diagram;e<t.minScale||e>t.maxScale||(t.scale=e)},be.prototype.canResetZoom=function(e){e===void 0&&(e=this.defaultScale);var t=this.diagram;return e<t.minScale||e>t.maxScale?!1:t.allowZoom},be.prototype.zoomToFit=function(){var e=this.diagram,t=e.animationManager;t.Cc(),e.redraw();var n=e.position,i=e.scale;qo(t,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&i===this.Au&&!isNaN(this.Jt)&&e.documentBounds.D(this.yu)?(e.scale=this.Jt,e.position=this.sw,this.Au=NaN,this.yu=xr):(this.Jt=i,this.sw=n.copy(),e.zoomToFit(),this.Au=e.scale,this.yu=e.documentBounds.copy()),ta(t)},be.prototype.canZoomToFit=function(){return this.diagram.allowZoom},be.prototype.scrollToPart=function(e){e===void 0&&(e=null);var t=this.diagram;if(t.Va(),e===null){try{this.cg!==null&&(this.cg.next()?e=this.cg.value:this.cg=null)}catch(u){this.cg=null}e===null&&(0<t.highlighteds.count?this.cg=t.highlighteds.iterator:0<t.selection.count&&(this.cg=t.selection.iterator),this.cg!==null&&this.cg.next()&&(e=this.cg.value))}if(e!==null){var n=t.animationManager;qo(n,"Scroll To Part");var i=this.scrollToPartPause;if(0<i){var r=Ze(this,e,[e]);if(r.length===1)t.Ea(),t.es(e.actualBounds),t.eb("Scroll To Part");else{var o=function(){t.Ea();for(var u=r.pop();0<r.length&&u instanceof Xn&&u.isTreeExpanded&&(!(u instanceof qi)||u.isSubGraphExpanded);)u=r.pop();0<r.length?(u instanceof Ci&&t.tv(u.actualBounds),u instanceof Xn&&!u.isTreeExpanded&&(u.isTreeExpanded=!0),u instanceof qi&&!u.isSubGraphExpanded&&(u.isSubGraphExpanded=!0)):(u instanceof Ci&&t.es(u.actualBounds),t.am("LayoutCompleted",a)),t.eb("Scroll To Part")},a=function(){on(o,(n.isEnabled?n.duration:0)+i)};t.Bj("LayoutCompleted",a),o()}}else{var l=t.position.copy();t.es(e.actualBounds),l.Xa(t.position)&&n.Cc()}}};function Ze(e,t,n){if(t.isVisible())return n;if(t instanceof Zr)Ze(e,t.adornedPart,n);else if(t instanceof Pn){var i=t.fromNode;i!==null&&Ze(e,i,n),t=t.toNode,t!==null&&Ze(e,t,n)}else t instanceof Xn&&(i=t.labeledLink,i!==null&&Ze(e,i,n),i=t.pg(),i!==null&&(i.isTreeExpanded||i.wasTreeExpanded||n.push(i),Ze(e,i,n))),t=t.containingGroup,t!==null&&(t.isSubGraphExpanded||t.wasSubGraphExpanded||n.push(t),Ze(e,t,n));return n}be.prototype.canScrollToPart=function(e){return e===void 0&&(e=null),e!==null&&!(e instanceof Ci)?!1:(e=this.diagram,e.selection.count===0&&e.highlighteds.count===0?!1:e.allowHorizontalScroll&&e.allowVerticalScroll)},be.prototype.collapseTree=function(e){e===void 0&&(e=null);var t=this.diagram;try{t.Ea("Collapse Tree"),qo(t.animationManager,"Collapse Tree");var n=new qt;if(e!==null&&e.isTreeExpanded)e.collapseTree(),n.add(e);else if(e===null)for(var i=t.selection.iterator;i.next();){var r=i.value;r instanceof Xn&&r.isTreeExpanded&&(r.collapseTree(),n.add(r))}t.R("TreeCollapsed",n)}finally{t.eb("Collapse Tree")}},be.prototype.canCollapseTree=function(e){e===void 0&&(e=null);var t=this.diagram;if(t.isReadOnly)return!1;if(e!==null){if(!(e instanceof Xn&&e.isTreeExpanded))return!1;if(0<e.Qo().count)return!0}else for(e=t.selection.iterator;e.next();)if(t=e.value,t instanceof Xn&&t.isTreeExpanded&&0<t.Qo().count)return!0;return!1},be.prototype.expandTree=function(e){e===void 0&&(e=null);var t=this.diagram;try{t.Ea("Expand Tree"),qo(t.animationManager,"Expand Tree");var n=new qt;if(e!==null&&!e.isTreeExpanded)e.expandTree(),n.add(e);else if(e===null)for(var i=t.selection.iterator;i.next();){var r=i.value;r instanceof Xn&&!r.isTreeExpanded&&(r.expandTree(),n.add(r))}t.R("TreeExpanded",n)}finally{t.eb("Expand Tree")}},be.prototype.canExpandTree=function(e){e===void 0&&(e=null);var t=this.diagram;if(t.isReadOnly)return!1;if(e!==null){if(!(e instanceof Xn)||e.isTreeExpanded)return!1;if(0<e.Qo().count)return!0}else for(e=t.selection.iterator;e.next();)if(t=e.value,t instanceof Xn&&!t.isTreeExpanded&&0<t.Qo().count)return!0;return!1},be.prototype.groupSelection=function(){var e=this.diagram,t=e.model;if(t.Xj()){var n=this.archetypeGroupData;if(n!==null){var i=null;try{e.currentCursor="wait",e.R("ChangingSelection",e.selection),e.Ea("Group");for(var r=new qt,o=e.selection.iterator;o.next();){var a=o.value;a.Zc()&&a.canGroup()&&r.add(a)}for(var l=new qt,u=r.iterator;u.next();){var f=u.value;o=!1;for(var p=r.iterator;p.next();)if(f.Td(p.value)){o=!0;break}o||l.add(f)}if(0<l.count){var x=l.first().containingGroup;if(x!==null)for(;x!==null;){r=!1;for(var N=l.iterator;N.next();)if(!N.value.Td(x)){r=!0;break}if(r)x=x.containingGroup;else break}if(n instanceof qi)ju(n),i=n.copy(),i!==null&&e.add(i);else if(t.Yu(n)){var R=t.copyNodeData(n);ot(R)&&(t.xf(R),i=e.ii(R))}if(i!==null){x!==null&&this.isValidMember(x,i)&&(i.containingGroup=x);for(var _=l.iterator;_.next();){var V=_.value;this.isValidMember(i,V)&&(V.containingGroup=i)}e.clearSelection(!0),i.isSelected=!0}}e.R("SelectionGrouped",i)}finally{e.eb("Group"),e.R("ChangedSelection",e.selection),e.currentCursor=""}}}},be.prototype.canGroupSelection=function(){var e=this.diagram;if(e.isReadOnly||e.isModelReadOnly||!e.allowInsert||!e.allowGroup||!e.model.Xj()||this.archetypeGroupData===null)return!1;for(e=e.selection.iterator;e.next();){var t=e.value;if(t.Zc()&&t.canGroup())return!0}return!1};function Wt(e){var t=Rt();for(e=e.iterator;e.next();){var n=e.value;n instanceof Pn||t.push(n)}e=new Xt,n=t.length;for(var i=0;i<n;i++){for(var r=t[i],o=!0,a=0;a<n;a++)if(r.Td(t[a])){o=!1;break}o&&e.add(r)}return Jt(t),e}be.prototype.isValidMember=function(e,t){if(t===null||e===t||t instanceof Pn)return!1;if(e!==null){if(e===t||e.Td(t))return!1;var n=e.memberValidation;if(n!==null&&!n(e,t)||e.data===null&&t.data!==null||e.data!==null&&t.data===null)return!1}return n=this.memberValidation,n!==null?n(e,t):!0},be.prototype.ungroupSelection=function(e){e===void 0&&(e=null);var t=this.diagram,n=t.model;if(n.Xj())try{t.currentCursor="wait",t.R("ChangingSelection",t.selection),t.Ea("Ungroup");var i=new qt;if(e!==null)i.add(e);else for(var r=t.selection.iterator;r.next();){var o=r.value;o instanceof qi&&o.canUngroup()&&i.add(o)}var a=new qt;if(0<i.count){t.clearSelection(!0);for(var l=i.iterator;l.next();){var u=l.value;u.expandSubGraph();var f=u.containingGroup,p=f!==null&&f.data!==null?n.wa(f.data):void 0;a.addAll(u.memberParts);for(var x=a.iterator;x.next();){var N=x.value;if(N.isSelected=!0,!(N instanceof Pn)){var R=N.data;R!==null?n.mp(R,p):N.containingGroup=f}}t.remove(u)}}t.R("SelectionUngrouped",i,a)}finally{t.eb("Ungroup"),t.R("ChangedSelection",t.selection),t.currentCursor=""}},be.prototype.canUngroupSelection=function(e){e===void 0&&(e=null);var t=this.diagram;if(t.isReadOnly||t.isModelReadOnly||!t.allowDelete||!t.allowUngroup||!t.model.Xj())return!1;if(e!==null){if(!(e instanceof qi))return!1;if(e.canUngroup())return!0}else for(e=t.selection.iterator;e.next();)if(t=e.value,t instanceof qi&&t.canUngroup())return!0;return!1},be.prototype.addTopLevelParts=function(e,t){var n=!0;for(e=Wt(e).iterator;e.next();){var i=e.value;i.containingGroup!==null&&(!t||this.isValidMember(null,i)?i.containingGroup=null:n=!1)}return n},be.prototype.collapseSubGraph=function(e){e===void 0&&(e=null);var t=this.diagram;try{t.Ea("Collapse SubGraph"),qo(t.animationManager,"Collapse SubGraph");var n=new qt;if(e!==null&&e.isSubGraphExpanded)e.collapseSubGraph(),n.add(e);else if(e===null)for(var i=t.selection.iterator;i.next();){var r=i.value;r instanceof qi&&r.isSubGraphExpanded&&(r.collapseSubGraph(),n.add(r))}t.R("SubGraphCollapsed",n)}finally{t.eb("Collapse SubGraph")}},be.prototype.canCollapseSubGraph=function(e){e===void 0&&(e=null);var t=this.diagram;if(t.isReadOnly)return!1;if(e!==null)return!!(e instanceof qi&&e.isSubGraphExpanded);for(e=t.selection.iterator;e.next();)if(t=e.value,t instanceof qi&&t.isSubGraphExpanded)return!0;return!1},be.prototype.expandSubGraph=function(e){e===void 0&&(e=null);var t=this.diagram;try{t.Ea("Expand SubGraph"),qo(t.animationManager,"Expand SubGraph");var n=new qt;if(e!==null&&!e.isSubGraphExpanded)e.expandSubGraph(),n.add(e);else if(e===null)for(var i=t.selection.iterator;i.next();){var r=i.value;r instanceof qi&&!r.isSubGraphExpanded&&(r.expandSubGraph(),n.add(r))}t.R("SubGraphExpanded",n)}finally{t.eb("Expand SubGraph")}},be.prototype.canExpandSubGraph=function(e){e===void 0&&(e=null);var t=this.diagram;if(t.isReadOnly)return!1;if(e!==null)return e instanceof qi&&!e.isSubGraphExpanded;for(e=t.selection.iterator;e.next();)if(t=e.value,t instanceof qi&&!t.isSubGraphExpanded)return!0;return!1},be.prototype.editTextBlock=function(e){e===void 0&&(e=null);var t=this.diagram,n=t.toolManager.findTool("TextEditing");if(n!==null){if(e===null){e=null;for(var i=t.selection.iterator;i.next();){var r=i.value;if(r.canEdit()){e=r;break}}if(e===null)return;e=e.Nl(function(o){return o instanceof Mo&&o.editable})}e!==null&&(t.currentTool=null,n.textBlock=e,t.currentTool=n)}},be.prototype.canEditTextBlock=function(e){e===void 0&&(e=null);var t=this.diagram;if(t.isReadOnly||t.isModelReadOnly||!t.allowTextEdit||t.toolManager.findTool("TextEditing")===null)return!1;if(e!==null){if(!(e instanceof Mo))return!1;if(e=e.part,e!==null&&e.canEdit())return!0}else for(t=t.selection.iterator;t.next();)if(e=t.value,e.canEdit()&&(e=e.Nl(function(n){return n instanceof Mo&&n.editable}),e!==null))return!0;return!1},be.prototype.showContextMenu=function(e){var t=this.diagram,n=t.toolManager.findTool("ContextMenu");if(n!==null&&(e===void 0&&(e=0<t.selection.count?t.selection.first():t),e=n.findObjectWithContextMenu(e),e!==null)){var i=t.lastInput,r=null;e instanceof st?r=e.ga(Rr):t.viewportBounds.ca(i.documentPoint)||(r=t.viewportBounds,r=new he(r.x+r.width/2,r.y+r.height/2)),r!==null&&(i.viewPoint=t.op(r),i.documentPoint=r,i.left=!1,i.right=!0,i.up=!0),t.currentTool=n,Mr(n,!1,e)}},be.prototype.canShowContextMenu=function(e){var t=this.diagram,n=t.toolManager.findTool("ContextMenu");return n===null?!1:(e===void 0&&(e=0<t.selection.count?t.selection.first():t),n.findObjectWithContextMenu(e)!==null)},be.prototype.computeEffectiveCollection=function(e,t){var n=this.diagram,i=n.toolManager.findTool("Dragging"),r=n.currentTool===i;if(t===void 0&&(t=r?i.dragOptions:n.Wm),i=new Zn,e===null)return i;for(var o=e.iterator;o.next();)gu(n,i,o.value,r,t);if(n.draggedLink!==null&&t.dragsLink)return i;for(o=e.iterator;o.next();)e=o.value,e instanceof Pn&&(t=e.fromNode,t===null||i.contains(t)?(t=e.toNode,t===null||i.contains(t)||i.remove(e)):i.remove(e));return i},ht.Object.defineProperties(be.prototype,{diagram:{get:function(){return this.H}},copiesClipboardData:{get:function(){return this.o},set:function(e){this.o=e}},copiesConnectedLinks:{get:function(){return this.u},set:function(e){this.u=e}},deletesConnectedLinks:{get:function(){return this.Ha},set:function(e){this.Ha=e}},copiesTree:{get:function(){return this.ia},set:function(e){this.ia=e}},deletesTree:{get:function(){return this.nb},set:function(e){this.nb=e}},copiesParentKey:{get:function(){return this.V},set:function(e){this.V=e}},copiesGroupKey:{get:function(){return this.F},set:function(e){this.F=e}},archetypeGroupData:{get:function(){return this.j},set:function(e){this.j=e}},memberValidation:{get:function(){return this.ij},set:function(e){this.ij=e}},defaultScale:{get:function(){return this.diagram.defaultScale},set:function(e){this.diagram.defaultScale=e}},zoomFactor:{get:function(){return this.Hb},set:function(e){1<e||Ve("zoomFactor must be larger than 1.0, not: "+e),this.Hb=e}},isZoomToFitRestoreEnabled:{get:function(){return this.hb},set:function(e){this.hb=e}},scrollToPartPause:{get:function(){return this.ob},set:function(e){this.ob=e}}}),be.className="CommandHandler",Qn=function(){return new be};function st(){Li(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new he(NaN,NaN).freeze(),this.jd=ka,this.Ab=new nr,this.wh=new nr,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=Ja,this.uc=new Zt(NaN,NaN,NaN,NaN).freeze(),this.Ib=new Zt(NaN,NaN,NaN,NaN).freeze(),this.dc=new Zt(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=Kr,this.Ag=this.io=0,this.V=this.tb=this.Dh=this.A=this.Ua=null,this.Uc=!1,this.jo=this.Ng=null}var Tn,En,ci,bi,Di,er,Fr,Sr,Gr,mo;st.prototype.cloneProtected=function(e){e.l=this.l|6144,e.pb=this.pb,e.bn=this.bn,e.Ma=this.Ma,e.pa.assign(this.pa),e.jd=this.jd.J(),this.Lb!==null?e.Lb=this.Lb.copy():e.Lb=null,e.Ca=this.Ca,e.Kb=this.Kb,e.Kg=this.Kg.J(),e.uc.assign(this.uc),e.Ib.assign(this.Ib),e.dc.assign(this.dc),e.Yn=this.Yn,this.ba!==null&&(e.ba=this.ba.copy()),e.Jb=this.Jb.J(),e.sk=this.sk.J(),e.io=this.io,e.Ag=this.Ag,this.Ua!==null&&(e.Ua=this.Ua.copy()),this.A!==null&&(e.A=this.A.nc?this.A:this.A.copy()),this.Dh!==null&&(e.Dh=yt(this.Dh)),this.tb!==null&&(e.tb=this.tb.copy())},st.prototype.Vw=function(e){var t=this.Dh;if(fn(t)){for(var n=0;n<t.length;n++)if(t[n]===e)return}else this.Dh=t=[];t.push(e)},st.prototype.Af=function(e){e.Zn=null,e.Ng=null,e.v()},st.prototype.clone=function(){var e=new this.constructor;if(this.cloneProtected(e),this.Dh!==null)for(var t=0;t<this.Dh.length;t++){var n=this.Dh[t];e[n]=this[n]}return e},st.prototype.copy=function(){return this.clone()},U=st.prototype,U.qb=function(e){e.classType===Pn?e.name.indexOf("Orient")===0?this.segmentOrientation=e:Ve("Unknown Link enum value for GraphObject.segmentOrientation property: "+e):e.classType===st&&(this.stretch=e)},U.toString=function(){return mt(this.constructor)+"#"+Mt(this)},U.th=function(){this.A!==null&&(this.A.nc=!0)};function yr(e){e.A===null?e.A=new Ud:e.A.nc&&(e.A=e.A.copy())}U.Xc=function(){if(this.ba===null){var e=new mp;e.Xi=Ui,e.yj=Ui,e.Vi=10,e.wj=10,e.Wi=0,e.xj=0,this.ba=e}},U.cb=function(e,t,n,i,r,o,a){var l=this.part;if(l!==null&&(l.gk(e,t,n,i,r,o,a),n===this&&e===So&&Bs(this)&&zo(this,l,t),o=this.diagram,this.animationTriggers===null||o===null||!o.pi||o.undoManager.isUndoingRedoing||o.animationManager.Dm||(e=this.animationTriggers.get(t),e!==null&&o.animationManager.isEnabled&&!o.animationManager.isTicking&&(this.jo===null&&(this.jo=new Zn),a=o.undoManager.transactionLevel===0,e.startCondition===Na?a=!0:e.startCondition===A&&(a=!1),a?(o=new Gn,po(e,o),a=this.jo.get(e),a!==null&&a.stop(),this.jo.add(e,o),o.vu=this,o.Nw=e,o.add(this,t,i,r),o.start()):(qo(o.animationManager,"Trigger"),o.animationManager.defaultAnimation.add(this,t,i,r)))),this instanceof kn&&n===l&&(l.l&16777216)!==0&&l.data!==null))for(n=this.O.s,i=n.length,r=0;r<i;r++)l=n[r],l instanceof kn&&bd(l,function(u){u.data!==null&&u.l&16777216&&u.La(t)})};function zo(e,t,n){var i=e.ih();if(i!==null)for(var r=e.localBindings.iterator;r.next();){var o=r.value,a=null;if(o.sourceName!==null){if(a=B1(o,i,e),a===null)continue;o.sp(e,a,n,null)}else if(o.isToModel){var l=t.diagram;l===null||l.skipsModelSourceBindings||o.sp(e,l.model.modelData,n,i)}else{if(l=i.data,l===null)continue;var u=t.diagram;u===null||u.skipsModelSourceBindings||o.sp(e,l,n,i)}a===e&&(l=i.ks(o.Ai),l!==null&&o.Mv(l,a,n))}}U.ks=function(e){return this.bindingId===e?this:null},U.g=function(e,t,n){this.cb(So,e,this,t,n)},U.Ge=function(e,t,n,i){var r=this.uc;if(r.h(e,t,n,i),this.Ca!==1||this.Kb!==0){this.Lb===null&&(this.Lb=new nr);var o=this.Lb;o.reset(),this.no(o,e,t,n,i),o.pp(r)}};function cs(e,t,n,i){return e.pickable===!1?!1:(i.multiply(e.transform),n?e.Yc(t,i):e.fh(t,i))}U.tx=function(e,t,n){if(this.pickable===!1)return!1;var i=this.naturalBounds;return t=e.Bf(t),n?Lr(e.x,e.y,0,0,0,i.height)<=t||Lr(e.x,e.y,0,i.height,i.width,i.height)<=t||Lr(e.x,e.y,i.width,i.height,i.width,0)<=t||Lr(e.x,e.y,i.width,0,0,0)<=t:e.zd(0,0)<=t&&e.zd(0,i.height)<=t&&e.zd(i.width,0)<=t&&e.zd(i.width,i.height)<=t},U.se=function(){return!0},U.ca=function(e){var t=he.alloc();t.assign(e),this.transform.Ga(t);var n=this.actualBounds;if(!n.w())return he.free(t),!1;var i=this.diagram;if(i!==null&&i.wq){var r=i.Ql("extraTouchThreshold"),o=i.Ql("extraTouchArea"),a=o/2,l=this.naturalBounds;i=this.Df()*i.scale;var u=1/i;if(l.width*i<r&&l.height*i<r)return e=co(n.x-a*u,n.y-a*u,n.width+o*u,n.height+o*u,t.x,t.y),he.free(t),e}return r=!1,(this instanceof Zr||this instanceof lr?co(n.x-5,n.y-5,n.width+10,n.height+10,t.x,t.y):n.ca(t))&&(this.tb&&!this.tb.ca(t)?r=!1:this.areaBackground!==null&&n.ca(t)||this.Ma!==null&&this.dc.ca(e)?r=!0:r=this.gh(e)),he.free(t),r},U.gh=function(e){var t=this.naturalBounds;return co(0,0,t.width,t.height,e.x,e.y)},U.Re=function(e){if(this.angle===0)return this.actualBounds.Re(e);var t=this.naturalBounds;t=Zt.allocAt(0,0,t.width,t.height);var n=this.transform,i=!1,r=he.allocAt(e.x,e.y);return t.ca(n.Cd(r))&&(r.h(e.x,e.bottom),t.ca(n.Cd(r))&&(r.h(e.right,e.bottom),t.ca(n.Cd(r))&&(r.h(e.right,e.y),t.ca(n.Cd(r))&&(i=!0)))),he.free(r),Zt.free(t),i},U.fh=function(e,t){if(t===void 0)return e.Re(this.actualBounds);var n=this.naturalBounds,i=!1,r=he.allocAt(0,0);return e.ca(t.Ga(r))&&(r.h(0,n.height),e.ca(t.Ga(r))&&(r.h(n.width,n.height),e.ca(t.Ga(r))&&(r.h(n.width,0),e.ca(t.Ga(r))&&(i=!0)))),he.free(r),i},U.Yc=function(e,t){if(t===void 0&&(t=this.transform,this.angle===0))return e.Yc(this.actualBounds);var n=this.naturalBounds,i=he.allocAt(0,0),r=he.allocAt(0,n.height),o=he.allocAt(n.width,n.height),a=he.allocAt(n.width,0),l=!1;if(e.ca(t.Ga(i))||e.ca(t.Ga(r))||e.ca(t.Ga(o))||e.ca(t.Ga(a)))l=!0;else{n=Zt.allocAt(0,0,n.width,n.height);var u=he.allocAt(e.x,e.y);n.ca(t.Cd(u))?l=!0:(u.h(e.x,e.bottom),n.ca(t.Cd(u))?l=!0:(u.h(e.right,e.bottom),n.ca(t.Cd(u))?l=!0:(u.h(e.right,e.y),n.ca(t.Cd(u))&&(l=!0)))),he.free(u),Zt.free(n),!l&&(qe.us(e,i,r)||qe.us(e,r,o)||qe.us(e,o,a)||qe.us(e,a,i))&&(l=!0)}return he.free(i),he.free(r),he.free(o),he.free(a),l},U.ga=function(e,t){if(t===void 0&&(t=new he),e instanceof ai){var n=this.naturalBounds;t.h(e.x*n.width+e.offsetX,e.y*n.height+e.offsetY)}else t.set(e);return this.oe.Ga(t),t},U.mi=function(e){e===void 0&&(e=new Zt);var t=this.naturalBounds,n=this.oe,i=he.allocAt(0,0).transform(n);return e.h(i.x,i.y,0,0),i.h(t.width,0).transform(n),Pr(e,i.x,i.y,0,0),i.h(t.width,t.height).transform(n),Pr(e,i.x,i.y,0,0),i.h(0,t.height).transform(n),Pr(e,i.x,i.y,0,0),he.free(i),e},U.li=function(){var e=this.oe;return e.m11===1&&e.m12===0?e=0:(e=180*Math.atan2(e.m12,e.m11)/Math.PI,0>e&&(e+=360)),e},U.Df=function(){if(!(this.l&4096))return this.Kk;var e=this.Ca;return this.panel!==null?e*this.panel.Df():e},U.qs=function(e,t){return t===void 0&&(t=new he),t.assign(e),this.oe.Cd(t),t},U.rs=function(e,t,n){return this.Sj(e.x,e.y,t.x,t.y,n)},U.Sj=function(e,t,n,i,r){var o=this.transform,a=1/(o.m11*o.m22-o.m12*o.m21),l=o.m22*a,u=-o.m12*a,f=-o.m21*a,p=o.m11*a,x=a*(o.m21*o.dy-o.m22*o.dx),N=a*(o.m12*o.dx-o.m11*o.dy);return this.areaBackground!==null?(o=this.actualBounds,qe.Ff(o.left,o.top,o.right,o.bottom,e,t,n,i,r)):(a=e*l+t*f+x,e=e*u+t*p+N,t=n*l+i*f+x,n=n*u+i*p+N,r.h(0,0),i=this.naturalBounds,n=qe.Ff(0,0,i.width,i.height,a,e,t,n,r),r.transform(o),n)},st.prototype.measure=function(e,t,n,i){if(bu(this)!==!1){var r=this.Kg,o=r.right+r.left;r=r.top+r.bottom,e=Math.max(e-o,0),t=Math.max(t-r,0),n=Math.max((n||0)-o,0),i=Math.max((i||0)-r,0),o=this.angle,r=this.desiredSize;var a=this.kq();o===90||o===270?(e=isFinite(r.height)?r.height+a:e,t=isFinite(r.width)?r.width+a:t):(e=isFinite(r.width)?r.width+a:e,t=isFinite(r.height)?r.height+a:t),r=n||0,a=i||0;var l=this instanceof kn;switch(_l(this,!0)){case En:a=r=0,l&&(t=e=1/0);break;case Tn:isFinite(e)&&e>n&&(r=e),isFinite(t)&&t>i&&(a=t);break;case bi:isFinite(e)&&e>n&&(r=e),a=0,l&&(t=1/0);break;case Di:isFinite(t)&&t>i&&(a=t),r=0,l&&(e=1/0)}l=this.maxSize;var u=this.minSize;r>l.width&&u.width<l.width&&(r=l.width),a>l.height&&u.height<l.height&&(a=l.height),n=Math.max(r,u.width),i=Math.max(a,u.height),l.width<n&&(n=Math.min(u.width,n)),l.height<i&&(i=Math.min(u.height,i)),e=Math.min(l.width,e),t=Math.min(l.height,t),e=Math.max(n,e),t=Math.max(i,t),(o===90||o===270)&&(o=e,e=t,t=o,o=n,n=i,i=o),this.uc.ka(),this.Wl(e,t,n,i),this.uc.freeze(),this.uc.w()||Ve("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Ya(this,!1)}},st.prototype.Wl=function(){},st.prototype.Dd=function(){return!1},st.prototype.arrange=function(e,t,n,i,r){this.Uk();var o=Zt.alloc();o.assign(this.Ib),this.Ib.ka(),wl(this)===!1?this.Ib.h(e,t,n,i):this.eh(e,t,n,i),this.Ib.freeze(),r===void 0?this.tb=null:this.tb=r,n=!1,r!==void 0?n=!0:(r=this.panel,r!==null&&yh(r)&&(r=r.panel),r!==null&&(r=r.dc,i=this.measuredBounds,this.areaBackground!==null&&(i=this.Ib),n=t+i.height,i=e+i.width,n=!(0<=e+.05&&i<=r.width+.05&&0<=t+.05&&n<=r.height+.05),this instanceof Mo&&(e=this.naturalBounds,this.Lq>e.height||this.Cb>e.width))&&(n=!0)),this.l=n?this.l|256:this.l&-257,this.Ib.w()||Ve("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(o,this.Ib),Fc(this,!1),Zt.free(o)},U=st.prototype,U.eh=function(){};function ll(e,t,n,i,r){if(e.Ib.h(t,n,i,r),!e.desiredSize.w()){var o=e.uc;n=e.Kg,t=n.right+n.left;var a=n.top+n.bottom;switch(n=o.width+t,o=o.height+a,i+=t,r+=a,t=_l(e,!0),n===i&&o===r&&(t=En),t){case En:(n>i||o>r)&&(Ya(e,!0),e.measure(n>i?i:n,o>r?r:o,0,0));break;case Tn:Ya(e,!0),e.measure(i,r,0,0);break;case bi:Ya(e,!0),e.measure(i,o,0,0);break;case Di:Ya(e,!0),e.measure(n,r,0,0)}}}U.Xl=function(e,t){var n=this.part;n!==null&&n.diagram!==null&&(n.selectionObject!==this&&n.resizeObject!==this&&n.rotateObject!==this||Kg(n,!0),this.N(),uo(e,t)||(n.oh(),this.Pn(n)))},U.Pn=function(e){this.portId!==null&&(Kg(e,!0),e instanceof Xn&&e1(e,this))},U.gc=function(e,t){if(!Mu(this,e,t)&&this.visible){var n=this.opacity;if(n!==0){var i=1;n!==1&&(i=e.globalAlpha,e.globalAlpha=i*n);var r="";this.filter!==""&&(r=e.filter,e.filter=this.filter);var o=this instanceof kn&&yh(this),a=this.Ib;if(o){var l=this.Ib,u=this.dc,f=this.areaBackground,p=this.Ma;f===null&&p===null||e.yc(),f!==null&&(Aa(this,e,f,!0,!0,u,l),f instanceof ao&&f.type===Ru?(e.beginPath(),e.rect(l.x,l.y,l.width,l.height),e.ng(f)):e.fillRect(l.x,l.y,l.width,l.height)),p!==null&&(Aa(this,e,p,!0,!1,u,l),p instanceof ao&&p.type===Ru?(e.beginPath(),e.rect(l.x,l.y,l.width,l.height),e.ng(p)):e.fillRect(l.x,l.y,l.width,l.height)),this.hh(e,t)}if(!o&&(o||a.width!==0&&a.height!==0&&!isNaN(a.x)&&!isNaN(a.y))){o=this.transform,l=this.panel,this.l&4096&&As(this),f=this.part,u=!1;var x=0;f&&t.Gf("drawShadows")&&(u=f.isShadowed)&&(p=f.shadowOffset,x=Math.max(p.y,p.x)*t.scale*t.Mb),p=this.Dd();var N;if(!(N=t.$i||!p)){var R=this.naturalBounds;N=this.wh;var _=N.m11,V=N.m21,xe=N.dx,ue=N.m12,Fe=N.m22,Ue=N.dy,We,rt=We=0;N=We*_+rt*V+xe;var At=We*ue+rt*Fe+Ue;We=R.width+x,rt=0;var Kn=We*_+rt*V+xe;We=We*ue+rt*Fe+Ue,rt=Math.min(N,Kn);var ri=Math.min(At,We),qn=Math.max(N+0,Kn)-rt,Rn=Math.max(At+0,We)-ri;N=rt,At=ri,We=R.width+x,rt=R.height+x,Kn=We*_+rt*V+xe,We=We*ue+rt*Fe+Ue,rt=Math.min(N,Kn),ri=Math.min(At,We),qn=Math.max(N+qn,Kn)-rt,Rn=Math.max(At+Rn,We)-ri,N=rt,At=ri,We=0,rt=R.height+x,Kn=We*_+rt*V+xe,We=We*ue+rt*Fe+Ue,rt=Math.min(N,Kn),ri=Math.min(At,We),qn=Math.max(N+qn,Kn)-rt,Rn=Math.max(At+Rn,We)-ri,N=rt,At=ri,x=t.viewportBounds,R=x.x,_=x.y,N=!(N>x.width+R||R>qn+N||At>x.height+_||_>Rn+At)}if(N){if(N=(this.l&256)!==0,e.clipInsteadOfFill&&(N=!1),this instanceof Mo&&(e.font=this.font),N){if(At=l.se()?l.naturalBounds:l.actualBounds,qn=Math.max(a.x,At.x),Rn=Math.max(a.y,At.y),x=Math.min(a.right,At.right)-qn,R=Math.min(a.bottom,At.bottom)-Rn,_=this.tb,_!==null&&(qn=_.x,Rn=_.y,x=_.width,R=_.height),qn>a.width+a.x||a.x>At.width+At.x){n!==1&&(e.globalAlpha=i),this.filter!==""&&(e.filter=r);return}e.save(),e.beginPath(),e.rect(qn,Rn,x,R),e.clip()}if(p){if(!f.isVisible()){n!==1&&(e.globalAlpha=i),this.filter!==""&&(e.filter=r);return}u&&(At=f.shadowOffset,e.Ev(At.x*t.scale*this.scale*t.Mb,At.y*t.scale*this.scale*t.Mb,f.shadowBlur),Jc(e),e.shadowColor=f.shadowColor)}u&&this.shadowVisible===!0?Jc(e):u&&this.shadowVisible===!1&&Bc(e),f=this.naturalBounds,this.areaBackground!==null&&(e.yc(),yu(this,e,f,a)),e.transform(o.m11,o.m12,o.m21,o.m22,o.dx,o.dy),u&&bs(this,l)&&this.shadowVisible===null&&Bc(e),this.Ma!==null&&(e.yc(),Kl(this,e,f,a)),u&&(this.Ma!==null||this.areaBackground!==null||bs(this,l))?(nc(this,!0),this.shadowVisible===null&&Bc(e)):nc(this,!1),this.hh(e,t),u&&this.l&512&&Jc(e),p&&u&&Bc(e),N&&(e.restore(),e.Vc(this instanceof kn)),o.ws()||(t=1/(o.m11*o.m22-o.m12*o.m21),e.transform(o.m22*t,-o.m12*t,-o.m21*t,o.m11*t,t*(o.m21*o.dy-o.m22*o.dx),t*(o.m12*o.dx-o.m11*o.dy)))}}n!==1&&(e.globalAlpha=i),this.filter!==""&&(e.filter=r)}}};function bs(e,t){return t===null?!1:(yh(t)&&(t=t.panel),(t.l&512)!==0||(t.type===kn.Auto||t.type===kn.Spot)&&t.Pb()!==e)}U.Dv=function(){};function yu(e,t,n,i){Aa(e,t,e.areaBackground,!0,!0,n,i),e.areaBackground instanceof ao&&e.areaBackground.type===Ru?(t.beginPath(),t.rect(i.x,i.y,i.width,i.height),t.ng(e.areaBackground)):t.fillRect(i.x,i.y,i.width,i.height)}function Kl(e,t,n,i){var r=e.kq(),o=n.x,a=n.y,l=n.width+r,u=n.height+r;Aa(e,t,e.Ma,!0,!1,n,i),e.Ma instanceof ao&&e.Ma.type===Ru?(t.beginPath(),t.rect(o-r/2,a-r/2,l,u),t.ng(e.Ma)):t.fillRect(o-r/2,a-r/2,l,u)}function qs(e,t,n){for(var i=t.O.s,r=i.length,o=-1,a=0;a<r;a++)if(i[a]===e){o=a;break}if(e=o,e!==-1)if(e===0)t.svg.gd?t.svg.gd.after(n):t.svg.Ma?t.svg.Ma.after(n):t.type===kn.Table?(t=t.svg.getElementsByClassName("gojs-ts"),t=t.length!==0?t[0]:null,t!==null&&t.after(n)):t.svg.prepend(n);else{for(;e!==0&&!t.M(e-1).Ed();)e--;e===0?t.svg.prepend(n):(e=t.M(e-1).svg,e!==null?e.after(n):t.svg.appendChild(n))}}function Mu(e,t,n){if(!(t instanceof ru))return!1;if(!e.visible||e.opacity===0||e.Dd()&&!e.isVisible())return e.svg!==null&&e.svg.parentNode!==null&&e.svg.remove(),!0;var i=e.panel,r=e.nk(t);if(e.kk(t,n,r))return e.svg.parentElement!==null?(e.Dd()&&(t.ti=e.svg),!0):(e.Dd()?(t.ti!==null?t.ti.after(e.svg):t.Nj.prepend(e.svg),t.ti=e.svg):i&&qs(e,i,e.svg),!0);if(e.Dd()&&e.isShadowed){var o=e.shadowOffset;t.Ev(o.x*n.scale*e.scale*n.Mb,o.y*n.scale*e.scale*n.Mb,e.shadowBlur),Jc(t),t.shadowColor=e.shadowColor}e instanceof Mo&&(t.font=e.font),t.yd=null;var a=e.transform;o=e instanceof kn;var l=e instanceof kn?yh(e):!1;e.l&4096&&As(e);var u=e.Ib;if(t.rb.ha=[1,0,0,1,0,0],t.o=!1,r&&(t.o=!0,o&&l?(gp(t,1,0,0,1,0,0),e.svg=t.ad):o?(gp(t,a.m11,a.m12,a.m21,a.m22,a.dx,a.dy),e.svg=t.ad):gp(t,1,0,0,1,0,0)),r=e.naturalBounds,e.areaBackground!==null){var f=a.copy().Vj();t.rb.ha=[f.m11,f.m12,f.m21,f.m22,f.dx,f.dy],yu(e,t,r,u),t.rb.ha=[1,0,0,1,0,0],t.yd.gd=t.ad,t.yd.prepend(t.ad)}return o||(t.rb.ha=[a.m11,a.m12,a.m21,a.m22,a.dx,a.dy]),e.background!==null&&(o?(l&&(t.rb.ha=[a.m11,a.m12,a.m21,a.m22,a.dx,a.dy]),Kl(e,t,r,u),l&&(t.rb.ha=[1,0,0,1,0,0])):(t.rb.ha=[a.m11,a.m12,a.m21,a.m22,a.dx,a.dy],Kl(e,t,r,u)),t.yd.Ma=t.ad,t.yd.prepend(t.ad)),a=t.yd,r=e.part,l=!1,r&&n.Gf("drawShadows")&&(l=r.isShadowed),t.clipInsteadOfFill&&(l=!1),e.Dd()&&l&&Jc(t),l&&e.shadowVisible===!0?Jc(t):l&&e.shadowVisible===!1&&Bc(t),r=e.panel,l&&bs(e,r)&&e.shadowVisible===null&&Bc(t),t.Il&&(f=n.computePixelRatio(),f="drop-shadow("+t.shadowOffsetX/f+"px "+t.shadowOffsetY/f+"px "+t.shadowBlur/f/2+"px "+t.shadowColor+")",e.background!==null&&a.Ma.setAttributeNS(null,"filter",f),e.areaBackground!==null&&a.gd.setAttributeNS(null,"filter",f)),l&&(e.Ma!==null||e.areaBackground!==null||bs(e,r))?(nc(e,!0),e.shadowVisible===null&&Bc(t)):nc(e,!1),r=l,e.hh(t,n),o&&t.nh.pop(),t.o&&t.nh.pop(),a=t.Gv.hs,l=o?e.svg:t.yd,f=e.svg,!o&&f!==null&&l!==f&&f.parentNode===e.panel.svg?(e.svg.replaceWith(l),e.svg=l,l!==null&&e.$o(t,i,u,l),Bl(t,f),!0):(e.svg=l,a!==null&&l===null&&(S0(t),t.nh.pop()),l===null||(e.$o(t,i,u,l),t.Il&&(n=n.computePixelRatio(),e.Dv(l,"drop-shadow("+t.shadowOffsetX/n+"px "+t.shadowOffsetY/n+"px "+t.shadowBlur/n/2+"px "+t.shadowColor+")")),r&&e.l&512&&Jc(t),e.Dd()&&Bc(t),n=e.Dd()?e.opacity*t.globalAlpha:e.opacity,n!==1&&l.setAttributeNS(null,"opacity",n.toString()),e.filter!==""&&l.setAttributeNS(null,"filter",e.filter),e.Dd()?(t.ti?t.ti.after(l):t.Nj.prepend(l),t.ti=l):i!==null&&qs(e,i,l),a!==null&&a(e,l)),!0)}U.$o=function(e,t,n,i){var r=(this.l&256)!==0;if(e.clipInsteadOfFill&&(r=!1),r){var o=t.se()?t.naturalBounds:t.actualBounds;t=Math.max(n.x,o.x),r=Math.max(n.y,o.y);var a=Math.min(n.right,o.right)-t;n=Math.min(n.bottom,o.bottom)-r,o=this.tb,o!==null&&(t=o.x,r=o.y,a=o.width,n=o.height),o=i.getAttribute("clip-path");var l=null;o!==null&&(l=e.svg.getElementById(o.split("#")[1].slice(0,-1))),l===null?(o="CLIP"+Qr++,l=e.Ud("clipPath",{id:o}),t=e.Ud("rect",{x:t,y:r,width:a,height:n}),this instanceof kn&&(r=this.transform.copy().Vj(),t.setAttribute("transform","matrix("+r.m11+", "+r.m12+", "+r.m21+", "+r.m22+", "+r.dx+", "+r.dy+")")),l.appendChild(t),e.svg.appendChild(l),i.setAttributeNS(null,"clip-path","url(#"+o+")")):(e=l.firstElementChild,e.setAttribute("x",t.toString()),e.setAttribute("y",r.toString()),e.setAttribute("width",a.toString()),e.setAttribute("height",n.toString()))}else i.removeAttributeNS(null,"clip-path"),Bl(e,i)};function Bl(e,t){t=t.getAttribute("clip-path"),t!==null&&(e=e.svg.getElementById(t.split("#")[1].slice(0,-1)),e!==null&&e.remove())}function el(e){if(e.svg!==null){var t=e.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),n=e.svg.ownerDocument;if(t!==null){t=Er(t);for(var i=t.next();!i.done;i=t.next())i=n.getElementById(i.value.split("#")[1].slice(0,-1)),i!==null&&i.remove()}e.svg.remove()}}U.hh=function(){},U.lv=function(){this.Uc=!0},U.kk=function(e,t,n){if(this.Uc)return this.lv(),this.Uc=!1;if(t=this.svg,t===null)return!1;if(!this.visible)return t.remove(),!1;if(t.nodeName!=="g"&&n||t.nodeName==="g"&&!n)return!1;var i=this.transform,r=this instanceof kn?yh(this):!1;if(!(this instanceof kn&&r))if(this instanceof Ul){var o=this.bt;e.rb.ha=[i.m11,i.m12,i.m21,i.m22,i.dx,i.dy],o!==null&&ay(e,o[0],o[1],o[2],o[3],o[4],o[5],o[6],o[7]),n?t.lastElementChild.setAttributeNS(null,"transform",sy(e)):t.setAttributeNS(null,"transform",sy(e))}else if(!n||this instanceof kn)t.setAttributeNS(null,"transform","matrix("+i.m11+", "+i.m12+", "+i.m21+", "+i.m22+", "+i.dx+", "+i.dy+")");else if(this instanceof lr){o=t.getElementsByTagName("path");for(var a=0;a<o.length;a++)o[a].setAttributeNS(null,"transform","matrix("+i.m11+", "+i.m12+", "+i.m21+", "+i.m22+", "+i.dx+", "+i.dy+")")}else t.lastElementChild.setAttributeNS(null,"transform","matrix("+i.m11+", "+i.m12+", "+i.m21+", "+i.m22+", "+i.dx+", "+i.dy+")");return o=this.Dd()?this.opacity*e.globalAlpha:this.opacity,o===1?t.removeAttribute("opacity"):t.setAttributeNS(null,"opacity",o.toString()),e.rb.ha=[1,0,0,1,0,0],(this.areaBackground!==null||t.gd!==void 0)&&(o=t.gd,this.areaBackground===null?(t.gd.remove(),t.gd=void 0):(a=i.copy().Vj(),e.rb.ha=[a.m11,a.m12,a.m21,a.m22,a.dx,a.dy],yu(this,e,this.naturalBounds,this.actualBounds),e.rb.ha=[1,0,0,1,0,0],t.gd?(a=t.gd.getAttribute("filter"),a!==null&&e.ad.setAttribute("filter",a),t.gd.replaceWith(e.ad)):t.prepend(e.ad),t.gd=e.ad),o&&E0(e,o)),(this.background!==null||t.Ma!==void 0)&&(o=t.Ma,this.background===null?(E0(e,t.Ma),t.Ma.remove(),t.Ma=void 0):((r||n&&!(this instanceof kn))&&(e.rb.ha=[i.m11,i.m12,i.m21,i.m22,i.dx,i.dy]),Kl(this,e,this.naturalBounds,this.actualBounds),t.Ma?(E0(e,t.Ma),n=t.Ma.getAttribute("filter"),n!==null&&e.ad.setAttribute("filter",n),t.Ma.replaceWith(e.ad)):t.prepend(e.ad),t.Ma=e.ad),o&&E0(e,o)),this.$o(e,this.panel,this.actualBounds,t),!0},U.nk=function(e){if(this.background!==null||this.areaBackground!==null)return!0;var t=(this.l&256)!==0;return e.clipInsteadOfFill&&(t=!1),!!t};function Aa(e,t,n,i,r,o,a){if(n!==null){var l=1,u=1;if(typeof n=="string")i?t.fillStyle=n:t.strokeStyle=n;else if(n.type===vh)i?t.fillStyle=n.color:t.strokeStyle=n.color;else{var f=e.kq();if(l=o.width,u=o.height,r?(l=a.width,u=a.height):i||(l+=f,u+=f),(o=t instanceof yd)&&n.xe&&(n.type===Ef||n.yk===l&&n.ft===u))var p=n.xe;else{var x=0,N=0,R=0,_=0,V=0,xe=0;if(xe=V=0,r?(V=a.x,xe=a.y):i||(V-=f/2,xe-=f/2),x=n.start.x*l+n.start.offsetX,N=n.start.y*u+n.start.offsetY,R=n.end.x*l+n.end.offsetX,_=n.end.y*u+n.end.offsetY,x+=V,R+=V,N+=xe,_+=xe,n.type===eh)p=t.createLinearGradient(x,N,R,_);else if(n.type===Ru)xe=isNaN(n.endRadius)?Math.max(l,u)/2:n.endRadius,isNaN(n.startRadius)?(V=0,xe=Math.max(l,u)/2):V=n.startRadius,p=t.createRadialGradient(x,N,V,R,_,xe);else if(n.type===Ef)try{p=t.createPattern(n.pattern,"repeat")}catch(Fe){p=null}if(n.type!==Ef&&(r=n.colorStops,r!==null))for(r=r.iterator;r.next();)p.addColorStop(r.key,r.value);if(o&&(n.xe=p,p!==null&&(n.yk=l,n.ft=u),p===null&&n.type===Ef&&n.yk!==-1)){n.yk=-1;var ue=e.diagram;ue!==null&&n.yk===-1&&on(function(){ue.redraw()},600)}}i?t.fillStyle=p:t.strokeStyle=p}}}U.rg=function(e){if(e instanceof kn)e:{if(this!==e&&e!==null)for(var t=this.panel;t!==null;){if(t===e){e=!0;break e}t=t.panel}e=!1}else e=!1;return e},U.Ed=function(){if(!this.visible)return!1;var e=this.panel;return e!==null?e.Ed():!0},U.If=function(){for(var e=this instanceof kn?this:this.panel;e!==null&&e.isEnabled;)e=e.panel;return e===null};function As(e){if(e.l&2048){var t=e.Ab;if(t.reset(),!e.Ib.w()||!e.uc.w()){Hu(e,!1);return}if(t.translate(e.Ib.x-e.uc.x,e.Ib.y-e.uc.y),e.scale!==1||e.angle!==0){var n=e.naturalBounds;e.no(t,n.x,n.y,n.width,n.height)}Hu(e,!1),Ou(e,!0)}e.l&4096&&(t=e.panel,t===null?(e.wh.set(e.Ab),e.Kk=e.scale,Ou(e,!1)):t.oe!==null&&(n=e.wh,n.reset(),t.se()?n.multiply(t.wh):t.panel!==null&&n.multiply(t.panel.wh),n.multiply(e.Ab),e.Kk=e.scale*t.Kk,Ou(e,!1)))}U.no=function(e,t,n,i,r){if(this.Ca!==1&&e.scale(this.Ca),this.Kb!==0){var o=he.alloc();o.yi(t,n,i,r,Rr),e.rotate(this.Kb,o.x,o.y),he.free(o)}},U.v=function(e){if(!bu(this)){e===void 0&&(e=!1),Ya(this,!0),Fc(this,!0);var t=this.panel;t===null||e||t.v()}},U.Uj=function(){bu(this)||(Ya(this,!0),Fc(this,!0))};function El(e){if(!wl(e)){var t=e.panel;t!==null?t.v():e.Dd()&&(t=e.diagram,t!==null&&(t.De.add(e),e instanceof Xn&&e.Bd(),t.$b())),Fc(e,!0)}}U.Uk=function(){!(this.l&2048)&&(Hu(this,!0),Ou(this,!0))},U.Wu=function(){Ou(this,!0)},U.N=function(){var e=this.part;e!==null&&e.N()};function _l(e,t){var n=e.stretch,i=e.panel;return i!==null&&i.type===kn.Table?fc(e,i.Fb(e.row),i.Eb(e.column),t):i!==null&&i.type===kn.Auto&&i.Pb()===e?xs(e,Tn,t):n===er?i!==null?i.type===kn.Spot&&i.Pb()===e?xs(e,Tn,t):(n=i.defaultStretch,n===er?xs(e,En,t):xs(e,n,t)):xs(e,En,t):xs(e,n,t)}function fc(e,t,n,i){var r=e.stretch;if(r!==er)return xs(e,r,i);var o=r=null;switch(t.stretch){case Di:o=!0;break;case Tn:o=!0}switch(n.stretch){case bi:r=!0;break;case Tn:r=!0}return t=e.panel.defaultStretch,r===null&&(r=t===bi||t===Tn),o===null&&(o=t===Di||t===Tn),r===!0&&o===!0?xs(e,Tn,i):r===!0?xs(e,bi,i):o===!0?xs(e,Di,i):xs(e,En,i)}function xs(e,t,n){if(n)return t;if(t===En||(n=e.desiredSize,n.w()))return En;if(e=e.angle,!isNaN(n.width))if(e!==90&&e!==270){if(t===bi)return En;if(t===Tn)return Di}else{if(t===Di)return En;if(t===Tn)return bi}if(!isNaN(n.height))if(e!==90&&e!==270){if(t===Di)return En;if(t===Tn)return bi}else{if(t===bi)return En;if(t===Tn)return Di}return t}function nc(e,t){e.l=t?e.l|512:e.l&-513}function Bs(e){return(e.l&1024)!==0}function zd(e,t){e.l=t?e.l|1024:e.l&-1025}function Hu(e,t){e.l=t?e.l|2048:e.l&-2049}function Ou(e,t){e.l=t?e.l|4096:e.l&-4097}function bu(e){return(e.l&8192)!==0}function Ya(e,t){e.l=t?e.l|8192:e.l&-8193}function wl(e){return(e.l&16384)!==0}function Fc(e,t){e.l=t?e.l|16384:e.l&-16385}U.Gj=function(){this.svg=null},U.wi=function(e){this.Me=e,this.svg!==null&&this.svg.remove()},U.Av=function(){},U.zv=function(e){return this.pa=e,El(this),!0},U.mm=function(e,t){(this.pa.x!==e||this.pa.y!==t)&&(this.pa.h(e,t),this.Uk())},U.kq=function(){return 0};function gd(e){var t=e.part;if(t instanceof Xn&&(e.portId!==null||e===t.port)){var n=t.diagram;n===null||n.undoManager.isUndoingRedoing||e1(t,e)}}function ry(e){var t=e.diagram;t===null||t.undoManager.isUndoingRedoing||(e instanceof kn?e instanceof Xn?e.Bd():e.qm(e,function(n){gd(n)}):gd(e))}U.bind=function(e,t,n,i){var r=null;return typeof e=="string"?r=new Ba(e,t,n,i):r=e,r.xd=this,e=this.ih(),e!==null&&wy(e)&&Ve("Cannot add a Binding to a template that has already been copied: "+r),this.localBindings===null&&(this.localBindings=new qt),this.localBindings.add(r),this},U.set=function(e){return Object.assign(this,e),this},U.Du=function(e){return hg(this,e),this},U.apply=function(e){return e(this),this},U.nm=function(e){return Xs(this,e),this},U.pz=function(){return this.ih()},U.ih=function(){for(var e=this instanceof kn?this:this.panel;e!==null;){if(e.allBindings!==null)return e;e=e.panel}return null},U.Jv=function(e){return e.xd=this,this.animationTriggers===null&&(this.animationTriggers=new Zn),this.animationTriggers.add(e.propertyName,e),this};function Lu(e,t){for(var n=1;n<arguments.length;++n);n=arguments;var i=null,r=null;if(typeof e=="function")r=e;else if(typeof e=="string"){var o=gf.I(e);typeof o=="function"?(n=yt(arguments),i=o(n),ot(i)||Ve('GraphObject.make invoked object builder "'+e+'", but it did not return an Object')):r=Ke.go[e]}if(i===null&&(r!=null&&r.constructor||Ve("GraphObject.make requires a class function or GoJS class name or name of an object builder, not: "+e),i=new r),r=1,i instanceof Y&&1<n.length){o=i;var a=n[1];(typeof a=="string"||a instanceof HTMLDivElement)&&(Ti(o,a),r++)}for(;r<n.length;r++)o=n[r],o===void 0?Ve("Undefined value at argument "+r+" for object being constructed by GraphObject.make: "+i):hg(i,o);return i}function hg(e,t){if(typeof t=="string")if(e instanceof Mo)e.text=t;else if(e instanceof lr)e.figure=t;else if(e instanceof Ul)e.source=t;else if(e instanceof kn)t=ic.I(t),t!==null&&(e.type=t);else if(e instanceof ao){var n=zi(ao,t);n!==null?e.type=n:Ve("Unknown Brush type as an argument to GraphObject.make: "+t)}else e instanceof Dn?(t=zi(Dn,t),t!==null&&(e.type=t)):e instanceof Dr&&(t=zi(Dr,t),t!==null&&(e.type=t));else if(t instanceof st)e instanceof kn||Ve("A GraphObject can only be added to a Panel, not to: "+e),e.add(t);else if(t instanceof Xa){var i;t.isRow&&typeof e.getRowDefinition=="function"?i=e.getRowDefinition(t.index):t.isRow||typeof e.getColumnDefinition!="function"||(i=e.getColumnDefinition(t.index)),i instanceof Xa?_0(i,t):Ve("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+e)}else if(t instanceof Yt)typeof e.qb=="function"&&e.qb(t);else if(t instanceof ts)e.type=t;else if(t instanceof Ba)e instanceof st||e instanceof Xa?e.bind(t):Ve("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+e);else if(t instanceof Ts)e instanceof st?e.Jv(t):Ve("An AnimationTrigger can only be applied to a GraphObject, not to: "+e);else if(t instanceof Ca)e instanceof Dn&&e.type===Dn.o?e.figures.add(t):Ve("A PathFigure can only be added to a Path Geometry, not to: "+e);else if(t instanceof Dr)e instanceof Ca?e.segments.add(t):Ve("A PathSegment can only be added to a PathFigure, not to: "+e);else if(t instanceof Qo)e instanceof Y||e instanceof qi?e.layout=t:Ve("A Layout can only be assigned to a Diagram or a Group, not to: "+e);else if(Array.isArray(t))for(n=0;n<t.length;n++)hg(e,t[n]);else if(typeof t=="object"&&t!==null)if(e instanceof ao){n=new oe;for(var r in t)i=parseFloat(r),isNaN(i)?n[r]=t[r]:e.addColorStop(i,t[r]);Xs(e,n)}else if(e instanceof Xa){t.row!==void 0?(r=t.row,(r==null||r===1/0||isNaN(r)||0>r)&&Ve("Must specify non-negative integer row for RowColumnDefinition "+t+", not: "+r),e.isRow=!0,e.index=r):t.column!==void 0&&(r=t.column,(r==null||r===1/0||isNaN(r)||0>r)&&Ve("Must specify non-negative integer column for RowColumnDefinition "+t+", not: "+r),e.isRow=!1,e.index=r),r=new oe;for(n in t)n!=="row"&&n!=="column"&&(r[n]=t[n]);Xs(e,r)}else Xs(e,t);else Ve('Unknown initializer "'+t+'" for object being constructed by GraphObject.make: '+e)}function gh(e,t){gf.add(e,t)}function x0(e,t,n){n===void 0&&(n=null);var i=e[1];if(typeof n=="function"?n(i):typeof i=="string")return e.splice(1,1),i;if(t===void 0)throw Error("no "+(typeof n=="function"?"satisfactory":"string")+" argument for GraphObject builder "+e[0]);return t}ht.Object.defineProperties(st.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(e){this.bindingId!==e&&(this.A===null&&(this.A=new Ud),this.A.zp=e)}},localBindings:{get:function(){return this.A!==null?this.A.te:null},set:function(e){this.localBindings!==e&&(this.A===null&&(this.A=new Ud),this.A.te=e)}},srcBindings:{get:function(){return this.A!==null?this.A.wm:null},set:function(e){this.srcBindings!==e&&(this.A===null&&(this.A=new Ud),this.A.wm=e)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(e){var t=this.shadowVisible;t!==e&&(yr(this),this.A.Ci=e,this.Uc=!0,this.N(),this.g("shadowVisible",t,e))}},enabledChanged:{get:function(){return this.A!==null?this.A.Hb:null},set:function(e){var t=this.enabledChanged;t!==e&&(yr(this),this.A.Hb=e,this.g("enabledChanged",t,e))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:Nl},set:function(e){var t=this.segmentOrientation;t!==e&&(this.Ua===null&&(this.Ua=new $h),this.Ua.rr=e,this.v(),this.g("segmentOrientation",t,e),e===Nl&&(this.angle=0))}},segmentIndex:{get:function(){return this.Ua!==null?this.Ua.u:-1/0},set:function(e){e=Math.round(e);var t=this.segmentIndex;t!==e&&(this.Ua===null&&(this.Ua=new $h),this.Ua.u=e,this.v(),this.g("segmentIndex",t,e))}},segmentFraction:{get:function(){return this.Ua!==null?this.Ua.o:0},set:function(e){isNaN(e)||0>e?e=0:1<e&&(e=1);var t=this.segmentFraction;t!==e&&(this.Ua===null&&(this.Ua=new $h),this.Ua.o=e,this.v(),this.g("segmentFraction",t,e))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:gr},set:function(e){var t=this.segmentOffset;t.D(e)||(e=e.J(),this.Ua===null&&(this.Ua=new $h),this.Ua.F=e,this.v(),this.g("segmentOffset",t,e))}},stretch:{get:function(){return this.A!==null?this.A.hg:er},set:function(e){var t=this.stretch;t!==e&&(yr(this),this.A.hg=e,this.v(),this.g("stretch",t,e))}},name:{get:function(){return this.A!==null?this.A.xa:""},set:function(e){var t=this.name;t!==e&&(yr(this),this.A.xa=e,this.part!==null&&(this.part.Rh=null),this.g("name",t,e))}},opacity:{get:function(){return this.pb},set:function(e){var t=this.pb;t!==e&&((0>e||1<e)&&Lt(e,"0 <= value <= 1",st,"opacity"),this.pb=e,this.g("opacity",t,e),e=this.diagram,t=this.part,e!==null&&t!==null&&e.N(Ed(t,t.actualBounds)))}},filter:{get:function(){return this.bn},set:function(e){var t=this.bn;t!==e&&(this.bn=e,this.Uc=!0,this.g("filter",t,e),e=this.diagram,t=this.part,e!==null&&t!==null&&e.N(Ed(t,t.actualBounds)))}},visible:{get:function(){return(this.l&1)!==0},set:function(e){var t=(this.l&1)!==0;t!==e&&(this.l^=1,this.g("visible",t,e),t=this.panel,t!==null?t.v():this.Dd()&&this.Zb(e),this.N(),ry(this))}},pickable:{get:function(){return(this.l&2)!==0},set:function(e){var t=(this.l&2)!==0;t!==e&&(this.l^=2,this.g("pickable",t,e))}},fromLinkableDuplicates:{get:function(){return(this.l&4)!==0},set:function(e){var t=(this.l&4)!==0;t!==e&&(this.l^=4,this.g("fromLinkableDuplicates",t,e))}},fromLinkableSelfNode:{get:function(){return(this.l&8)!==0},set:function(e){var t=(this.l&8)!==0;t!==e&&(this.l^=8,this.g("fromLinkableSelfNode",t,e))}},toLinkableDuplicates:{get:function(){return(this.l&16)!==0},set:function(e){var t=(this.l&16)!==0;t!==e&&(this.l^=16,this.g("toLinkableDuplicates",t,e))}},toLinkableSelfNode:{get:function(){return(this.l&32)!==0},set:function(e){var t=(this.l&32)!==0;t!==e&&(this.l^=32,this.g("toLinkableSelfNode",t,e))}},isPanelMain:{get:function(){return(this.l&64)!==0},set:function(e){var t=(this.l&64)!==0;t!==e&&(this.l^=64,this.v(),this.g("isPanelMain",t,e))}},isActionable:{get:function(){return(this.l&128)!==0},set:function(e){var t=(this.l&128)!==0;t!==e&&(this.l^=128,this.g("isActionable",t,e))}},areaBackground:{get:function(){return this.A!==null?this.A.gd:null},set:function(e){var t=this.areaBackground;t!==e&&(e!==null&&$d(e,"GraphObject.areaBackground"),e instanceof ao&&e.freeze(),yr(this),this.A.gd=e,this.N(),this.g("areaBackground",t,e))}},background:{get:function(){return this.Ma},set:function(e){var t=this.Ma;t!==e&&(e!==null&&$d(e,"GraphObject.background"),e instanceof ao&&e.freeze(),this.Ma=e,this.N(),this.g("background",t,e))}},part:{get:function(){if(this.Dd())return this;if(this.Ng!==null)return this.Ng;var e;for(e=this.panel;e;){if(e instanceof Ci)return this.Ng=e;e=e.panel}return null}},svg:{get:function(){return this.V},set:function(e){this.V=e}},panel:{get:function(){return this.Me}},layer:{get:function(){var e=this.part;return e!==null?e.layer:null}},diagram:{get:function(){var e=this.part;return e!==null?e.diagram:null}},position:{get:function(){return this.pa},set:function(e){var t=e.x,n=e.y,i=this.pa,r=i.x;i=i.y,(r===t||isNaN(r)&&isNaN(t))&&(i===n||isNaN(i)&&isNaN(n))?this.Av():(e=e.copy(),this.zv(e,r,i)&&this.g("position",new he(r,i),e))}},actualBounds:{get:function(){return this.Ib}},scale:{get:function(){return this.Ca},set:function(e){var t=this.Ca;t!==e&&(0>=e&&Ve("GraphObject.scale for "+this+" must be greater than zero, not: "+e),this.Ca=e,this.v(),this.g("scale",t,e))}},angle:{get:function(){return this.Kb},set:function(e){var t=this.Kb;t!==e&&(e%=360,0>e&&(e+=360),t!==e&&(this.Kb=e,ry(this),this.v(),this.g("angle",t,e)))}},desiredSize:{get:function(){return this.jd},set:function(e){var t=e.width,n=e.height,i=this.jd,r=i.width,o=i.height;(r===t||isNaN(r)&&isNaN(t))&&(o===n||isNaN(o)&&isNaN(n))||(this.jd=e=e.J(),this.v(),this instanceof lr&&this.qc(),this.g("desiredSize",i,e),Bs(this)&&(e=this.part,e!==null&&(zo(this,e,"width"),zo(this,e,"height"))))}},width:{get:function(){return this.jd.width},set:function(e){var t=this.jd.width;t===e||isNaN(t)&&isNaN(e)||(t=this.jd,this.jd=e=new pi(e,this.jd.height).freeze(),this.v(),this instanceof lr&&this.qc(),this.g("desiredSize",t,e),Bs(this)&&(e=this.part,e!==null&&zo(this,e,"width")))}},height:{get:function(){return this.jd.height},set:function(e){var t=this.jd.height;t===e||isNaN(t)&&isNaN(e)||(t=this.jd,this.jd=e=new pi(this.jd.width,e).freeze(),this.v(),this instanceof lr&&this.qc(),this.g("desiredSize",t,e),Bs(this)&&(e=this.part,e!==null&&zo(this,e,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:pa},set:function(e){var t=this.minSize;t.D(e)||(e=e.copy(),isNaN(e.width)&&(e.width=0),isNaN(e.height)&&(e.height=0),e.freeze(),yr(this),this.A.u=e,this.v(),this.g("minSize",t,e))}},maxSize:{get:function(){return this.A!==null?this.A.o:is},set:function(e){var t=this.maxSize;t.D(e)||(e=e.copy(),isNaN(e.width)&&(e.width=1/0),isNaN(e.height)&&(e.height=1/0),e.freeze(),yr(this),this.A.o=e,this.v(),this.g("maxSize",t,e))}},measuredBounds:{get:function(){return this.uc}},naturalBounds:{get:function(){return this.dc}},margin:{get:function(){return this.Kg},set:function(e){typeof e=="number"&&(e=new mi(e));var t=this.Kg;t.D(e)||(this.Kg=e=e.J(),this.v(),this.g("margin",t,e))}},transform:{get:function(){return this.l&2048&&As(this),this.Ab}},oe:{get:function(){return this.l&4096&&As(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(e){this.animationTriggers!==e&&(yr(this),this.A.hb=e)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:En},set:function(e){this.reshapingBehavior!==e&&(yr(this),this.A.Pf=e)}},alignment:{get:function(){return this.Jb},set:function(e){var t=this.Jb;t.D(e)||(e.Mc()&&!e.Xb()&&Ve("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+e),this.Jb=e=e.J(),El(this),this.g("alignment",t,e))}},column:{get:function(){return this.Ag},set:function(e){e=Math.round(e);var t=this.Ag;t!==e&&(0>e&&Lt(e,">= 0",st,"column"),this.Ag=e,this.v(),this.g("column",t,e),this.svg!==null&&this.svg.remove())}},columnSpan:{get:function(){return this.A!==null?this.A.ob:1},set:function(e){e=Math.round(e);var t=this.columnSpan;t!==e&&(1>e&&Lt(e,">= 1",st,"columnSpan"),yr(this),this.A.ob=e,this.v(),this.g("columnSpan",t,e))}},row:{get:function(){return this.io},set:function(e){e=Math.round(e);var t=this.io;t!==e&&(0>e&&Lt(e,">= 0",st,"row"),this.io=e,this.v(),this.g("row",t,e),this.svg!==null&&this.svg.remove())}},rowSpan:{get:function(){return this.A!==null?this.A.Bi:1},set:function(e){e=Math.round(e);var t=this.rowSpan;t!==e&&(1>e&&Lt(e,">= 1",st,"rowSpan"),yr(this),this.A.Bi=e,this.v(),this.g("rowSpan",t,e))}},spanAllocation:{get:function(){return this.A!==null?this.A.Di:null},set:function(e){var t=this.spanAllocation;t!==e&&(yr(this),this.A.Di=e,this.v(),this.g("spanAllocation",t,e))}},alignmentFocus:{get:function(){return this.sk},set:function(e){var t=this.sk;t.D(e)||(this.sk=e=e.J(),this.v(),this.g("alignmentFocus",t,e))}},portId:{get:function(){return this.Yn},set:function(e){var t=this.Yn;if(t!==e){var n=this.part;n===null||n instanceof Xn||Ve("Cannot set portID on a Link: "+e),t!==null&&n!==null&&Qg(n,this),this.Yn=e,e!==null&&n!==null&&(n.Te=!0,i1(n,this)),this.g("portId",t,e)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Ui},set:function(e){var t=this.toSpot;t.D(e)||(e=e.J(),this.Xc(),this.ba.yj=e,this.g("toSpot",t,e),gd(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(e){var t=this.toEndSegmentLength;t!==e&&(0>e&&Lt(e,">= 0",st,"toEndSegmentLength"),this.Xc(),this.ba.wj=e,this.g("toEndSegmentLength",t,e),gd(this))}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:0},set:function(e){var t=this.toShortLength;t!==e&&(this.Xc(),this.ba.xj=e,this.g("toShortLength",t,e),gd(this))}},toLinkable:{get:function(){return this.ba!==null?this.ba.Tr:null},set:function(e){var t=this.toLinkable;t!==e&&(this.Xc(),this.ba.Tr=e,this.g("toLinkable",t,e))}},toMaxLinks:{get:function(){return this.ba!==null?this.ba.Ur:1/0},set:function(e){var t=this.toMaxLinks;t!==e&&(0>e&&Lt(e,">= 0",st,"toMaxLinks"),this.Xc(),this.ba.Ur=e,this.g("toMaxLinks",t,e))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Ui},set:function(e){var t=this.fromSpot;t.D(e)||(e=e.J(),this.Xc(),this.ba.Xi=e,this.g("fromSpot",t,e),gd(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(e){var t=this.fromEndSegmentLength;t!==e&&(0>e&&Lt(e,">= 0",st,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=e,this.g("fromEndSegmentLength",t,e),gd(this))}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:0},set:function(e){var t=this.fromShortLength;t!==e&&(this.Xc(),this.ba.Wi=e,this.g("fromShortLength",t,e),gd(this))}},fromLinkable:{get:function(){return this.ba!==null?this.ba.hq:null},set:function(e){var t=this.fromLinkable;t!==e&&(this.Xc(),this.ba.hq=e,this.g("fromLinkable",t,e))}},fromMaxLinks:{get:function(){return this.ba!==null?this.ba.iq:1/0},set:function(e){var t=this.fromMaxLinks;t!==e&&(0>e&&Lt(e,">= 0",st,"fromMaxLinks"),this.Xc(),this.ba.iq=e,this.g("fromMaxLinks",t,e))}},cursor:{get:function(){return this.A!==null?this.A.j:""},set:function(e){var t=this.cursor;t!==e&&(yr(this),this.A.j=e,this.g("cursor",t,e))}},click:{get:function(){return this.A!==null?this.A.zh:null},set:function(e){var t=this.click;t!==e&&(yr(this),this.A.zh=e,this.g("click",t,e))}},doubleClick:{get:function(){return this.A!==null?this.A.Fh:null},set:function(e){var t=this.doubleClick;t!==e&&(yr(this),this.A.Fh=e,this.g("doubleClick",t,e))}},contextClick:{get:function(){return this.A!==null?this.A.Bh:null},set:function(e){var t=this.contextClick;t!==e&&(yr(this),this.A.Bh=e,this.g("contextClick",t,e))}},mouseEnter:{get:function(){return this.A!==null?this.A.Mh:null},set:function(e){var t=this.mouseEnter;t!==e&&(yr(this),this.A.Mh=e,this.g("mouseEnter",t,e))}},mouseLeave:{get:function(){return this.A!==null?this.A.Ph:null},set:function(e){var t=this.mouseLeave;t!==e&&(yr(this),this.A.Ph=e,this.g("mouseLeave",t,e))}},mouseOver:{get:function(){return this.A!==null?this.A.Qh:null},set:function(e){var t=this.mouseOver;t!==e&&(yr(this),this.A.Qh=e,this.g("mouseOver",t,e))}},mouseHover:{get:function(){return this.A!==null?this.A.Oh:null},set:function(e){var t=this.mouseHover;t!==e&&(yr(this),this.A.Oh=e,this.g("mouseHover",t,e))}},mouseHold:{get:function(){return this.A!==null?this.A.Nh:null},set:function(e){var t=this.mouseHold;t!==e&&(yr(this),this.A.Nh=e,this.g("mouseHold",t,e))}},mouseDragEnter:{get:function(){return this.A!==null?this.A.Of:null},set:function(e){var t=this.mouseDragEnter;t!==e&&(yr(this),this.A.Of=e,this.g("mouseDragEnter",t,e))}},mouseDragLeave:{get:function(){return this.A!==null?this.A.Xd:null},set:function(e){var t=this.mouseDragLeave;t!==e&&(yr(this),this.A.Xd=e,this.g("mouseDragLeave",t,e))}},mouseDrop:{get:function(){return this.A!==null?this.A.Lh:null},set:function(e){var t=this.mouseDrop;t!==e&&(yr(this),this.A.Lh=e,this.g("mouseDrop",t,e))}},actionDown:{get:function(){return this.A!==null?this.A.V:null},set:function(e){var t=this.actionDown;t!==e&&(yr(this),this.A.V=e,this.g("actionDown",t,e))}},actionMove:{get:function(){return this.A!==null?this.A.ia:null},set:function(e){var t=this.actionMove;t!==e&&(yr(this),this.A.ia=e,this.g("actionMove",t,e))}},actionUp:{get:function(){return this.A!==null?this.A.Ha:null},set:function(e){var t=this.actionUp;t!==e&&(yr(this),this.A.Ha=e,this.g("actionUp",t,e))}},actionCancel:{get:function(){return this.A!==null?this.A.F:null},set:function(e){var t=this.actionCancel;t!==e&&(yr(this),this.A.F=e,this.g("actionCancel",t,e))}},toolTip:{get:function(){return this.A!==null?this.A.$h:null},set:function(e){var t=this.toolTip;t!==e&&(yr(this),this.A.$h=e,this.g("toolTip",t,e))}},contextMenu:{get:function(){return this.A!==null?this.A.Ch:null},set:function(e){var t=this.contextMenu;t!==e&&(yr(this),this.A.Ch=e,this.g("contextMenu",t,e))}}}),st.prototype.trigger=st.prototype.Jv,st.prototype.findBindingPanel=st.prototype.ih,st.prototype.findTemplateBinder=st.prototype.pz,st.prototype.setProperties=st.prototype.nm,st.prototype.apply=st.prototype.apply,st.prototype.attach=st.prototype.Du,st.prototype.set=st.prototype.set,st.prototype.isEnabledObject=st.prototype.If,st.prototype.isVisibleObject=st.prototype.Ed,st.prototype.isContainedBy=st.prototype.rg,st.prototype.getNearestIntersectionPoint=st.prototype.rs,st.prototype.getLocalPoint=st.prototype.qs,st.prototype.getDocumentScale=st.prototype.Df,st.prototype.getDocumentAngle=st.prototype.li,st.prototype.getDocumentBounds=st.prototype.mi,st.prototype.getDocumentPoint=st.prototype.ga,st.prototype.intersectsRect=st.prototype.Yc,st.prototype.containedInRect=st.prototype.fh,st.prototype.containsRect=st.prototype.Re,st.prototype.containsPoint=st.prototype.ca,st.prototype.raiseChanged=st.prototype.g,st.prototype.raiseChangedEvent=st.prototype.cb,st.prototype.addCopyProperty=st.prototype.Vw;var gf=null;st.className="GraphObject",gf=new Zn,gh("Button",function(){function e(n,i){return n.diagram.ic(n.documentPoint,function(r){for(;r.panel!==null&&!r.isActionable;)r=r.panel;return r},function(r){return r===i})!==null}var t=Lu(kn,kn.Auto,{isActionable:!0,enabledChanged:function(n,i){if(n instanceof kn){var r=n.fb("ButtonBorder");r!==null&&(r.fill=i?n._buttonFillNormal:n._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},Lu(lr,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new ai(0,0,2.76142374915397,2.761423749153969),spot2:new ai(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return t.mouseEnter=function(n,i){if(i.If()&&i instanceof kn&&(n=i.fb("ButtonBorder"),n instanceof lr)){var r=i._buttonFillOver;i._buttonFillNormal=n.fill,n.fill=r,r=i._buttonStrokeOver,i._buttonStrokeNormal=n.stroke,n.stroke=r}},t.mouseLeave=function(n,i){i.If()&&i instanceof kn&&(n=i.fb("ButtonBorder"),n instanceof lr&&(n.fill=i._buttonFillNormal,n.stroke=i._buttonStrokeNormal))},t.actionDown=function(n,i){if(i.If()&&i instanceof kn&&i._buttonFillPressed!==null&&n.button===0){var r=i.fb("ButtonBorder");if(r instanceof lr){n=n.diagram;var o=n.skipsUndoManager;n.skipsUndoManager=!0;var a=i._buttonFillPressed;i._buttonFillOver=r.fill,r.fill=a,a=i._buttonStrokePressed,i._buttonStrokeOver=r.stroke,r.stroke=a,n.skipsUndoManager=o}}},t.actionUp=function(n,i){if(i.If()&&i instanceof kn&&i._buttonFillPressed!==null&&n.button===0){var r=i.fb("ButtonBorder");if(r instanceof lr){var o=n.diagram,a=o.skipsUndoManager;o.skipsUndoManager=!0,e(n,i)?(r.fill=i._buttonFillOver,r.stroke=i._buttonStrokeOver):(r.fill=i._buttonFillNormal,r.stroke=i._buttonStrokeNormal),o.skipsUndoManager=a}}},t.actionCancel=function(n,i){if(i.If()&&i instanceof kn&&i._buttonFillPressed!==null){var r=i.fb("ButtonBorder");if(r instanceof lr){var o=n.diagram,a=o.skipsUndoManager;o.skipsUndoManager=!0,e(n,i)?(r.fill=i._buttonFillOver,r.stroke=i._buttonStrokeOver):(r.fill=i._buttonFillNormal,r.stroke=i._buttonStrokeNormal),o.skipsUndoManager=a}}},t.actionMove=function(n,i){if(i.If()&&i instanceof kn&&i._buttonFillPressed!==null){var r=n.diagram;if(r.firstInput.button===0&&(r.currentTool.standardMouseOver(),e(n,i)&&(n=i.fb("ButtonBorder"),n instanceof lr))){var o=r.skipsUndoManager;r.skipsUndoManager=!0;var a=i._buttonFillPressed;n.fill!==a&&(n.fill=a),a=i._buttonStrokePressed,n.stroke!==a&&(n.stroke=a),r.skipsUndoManager=o}}},t}),gh("TreeExpanderButton",function(){var e=Lu("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},Lu(lr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:ma},new Ba("figure","isTreeExpanded",function(t,n){return n=n.panel,t?n._treeExpandedFigure:n._treeCollapsedFigure}).cp()),{visible:!1},new Ba("visible","isTreeLeaf",function(t){return!t}).cp());return e.click=function(t,n){if(n=n.part,n instanceof Zr&&(n=n.adornedPart),n instanceof Xn){var i=n.diagram;if(i!==null){if(i=i.commandHandler,n.isTreeExpanded){if(!i.canCollapseTree(n))return}else if(!i.canExpandTree(n))return;t.handled=!0,n.isTreeExpanded?i.collapseTree(n):i.expandTree(n)}}},e}),gh("SubGraphExpanderButton",function(){var e=Lu("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},Lu(lr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:ma},new Ba("figure","isSubGraphExpanded",function(t,n){return n=n.panel,t?n._subGraphExpandedFigure:n._subGraphCollapsedFigure}).cp()));return e.click=function(t,n){if(n=n.part,n instanceof Zr&&(n=n.adornedPart),n instanceof qi){var i=n.diagram;if(i!==null){if(i=i.commandHandler,n.isSubGraphExpanded){if(!i.canCollapseSubGraph(n))return}else if(!i.canExpandSubGraph(n))return;t.handled=!0,n.isSubGraphExpanded?i.collapseSubGraph(n):i.expandSubGraph(n)}}},e}),gh("ToolTip",function(){return Lu(Zr,kn.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new he(0,3),shadowBlur:5},Lu(lr,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new ai(0,0,4,6),spot2:new ai(1,1,-4,-4)}))}),gh("ContextMenu",function(){return Lu(Zr,kn.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new he(0,3),shadowBlur:5},new Ba("background","",function(e){return e.adornedPart!==null&&e.placeholder!==null?null:"#F5F5F5"}))}),gh("ContextMenuButton",function(){var e=Lu("Button");e.stretch=bi;var t=e.fb("ButtonBorder");return t instanceof lr&&(t.figure="Rectangle",t.strokeWidth=0,t.spot1=new ai(0,0,2,3),t.spot2=new ai(1,1,-2,-2)),e}),gh("PanelExpanderButton",function(e){var t=x0(e,"COLLAPSIBLE"),n=Lu("Button",{_buttonExpandedFigure:"M0 0 M0 6 L4 2 8 6 M8 8",_buttonCollapsedFigure:"M0 0 M0 2 L4 6 8 2 M8 8",_buttonFillNormal:"rgba(0, 0, 0, 0)",_buttonStrokeNormal:null,_buttonFillOver:"rgba(0, 0, 0, .2)",_buttonStrokeOver:null,_buttonFillPressed:"rgba(0, 0, 0, .4)",_buttonStrokePressed:null},Lu(lr,{name:"ButtonIcon",strokeWidth:2},new Ba("geometryString","visible",function(i){return i?n._buttonExpandedFigure:n._buttonCollapsedFigure}).cp(t)));return e=n.fb("ButtonBorder"),e instanceof lr&&(e.stroke=null,e.fill="rgba(0, 0, 0, 0)"),n.click=function(i,r){var o=r.diagram;if(o!==null&&!o.isReadOnly){var a=r.ih();a===null&&(a=r.part),a!==null&&(r=a.fb(t),r!==null&&(i.handled=!0,o.Ea("Collapse/Expand Panel"),r.visible=!r.visible,o.eb("Collapse/Expand Panel")))}},n}),gh("CheckBoxButton",function(e){var t=x0(e);return e=Lu("Button",{desiredSize:new pi(14,14)},Lu(lr,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Tn,geometryStretch:ci,visible:!1},t!==""?new Ba("visible",t).Kx():[])),e.click=function(n,i){if(i instanceof kn){var r=n.diagram;if(!(r===null||r.isReadOnly||t!==""&&r.model.isReadOnly)){n.handled=!0;var o=i.fb("ButtonIcon");r.Ea("checkbox"),o.visible=!o.visible,typeof i._doClick=="function"&&i._doClick(n,i),r.eb("checkbox")}}},e}),gh("CheckBox",function(e){e=x0(e),e=Lu("CheckBoxButton",e,{name:"Button",isActionable:!1,margin:new mi(0,1,0,0)});var t=Lu(kn,"Horizontal",e,{isActionable:!0,cursor:e.cursor,margin:new mi(1),_buttonFillNormal:e._buttonFillNormal,_buttonStrokeNormal:e._buttonStrokeNormal,_buttonFillOver:e._buttonFillOver,_buttonStrokeOver:e._buttonStrokeOver,_buttonFillPressed:e._buttonFillPressed,_buttonStrokePressed:e._buttonStrokePressed,_buttonFillDisabled:e._buttonFillDisabled,mouseEnter:e.mouseEnter,mouseLeave:e.mouseLeave,actionDown:e.actionDown,actionUp:e.actionUp,actionCancel:e.actionCancel,actionMove:e.actionMove,click:e.click,_buttonClick:e.click});return e.mouseEnter=null,e.mouseLeave=null,e.actionDown=null,e.actionUp=null,e.actionCancel=null,e.actionMove=null,e.click=null,t}),st.None=En=new Yt(st,"None",0),st.Default=er=new Yt(st,"Default",0),st.Vertical=Di=new Yt(st,"Vertical",4),st.Horizontal=bi=new Yt(st,"Horizontal",5),st.Fill=Tn=new Yt(st,"Fill",3),st.Uniform=ci=new Yt(st,"Uniform",1),st.UniformToFill=Fr=new Yt(st,"UniformToFill",2),st.FlipVertical=Sr=new Yt(st,"FlipVertical",1),st.FlipHorizontal=Gr=new Yt(st,"FlipHorizontal",2),st.FlipBoth=mo=new Yt(st,"FlipBoth",3),st.make=Lu,st.getBuilders=function(){var e=new Zn,t;for(t in gf)if(t!==t.toLowerCase()){var n=gf.I(t);typeof n=="function"&&e.add(t,n)}return e.freeze(),e},st.defineBuilder=gh,st.build=function(e,t,n){for(var i=[],r=2;r<arguments.length;++r)i[r-2]=arguments[r];if(r=gf.I(e),typeof r=="function"&&(i=r([e].concat(i)),i instanceof st))return t&&i.set(t),i;Ve('GraphObject.build invoked object builder "'+e+'", but it did not return an Object')},st.takeBuilderArgument=x0;function Ud(){this.nc=!1,this.xa="",this.zp=-1,this.nb=this.wm=this.te=null,this.j="",this.hb=this.Di=this.Hb=this.Ch=this.$h=this.F=this.Ha=this.ia=this.V=this.Lh=this.Xd=this.Of=this.Nh=this.Oh=this.Qh=this.Ph=this.Mh=this.Bh=this.Fh=this.zh=null,this.u=pa,this.o=is,this.hg=er,this.ob=this.Bi=1,this.Pf=En,this.Pc=this.Ci=this.gd=null,this.Oc="category"}Ud.prototype.copy=function(){var e=new Ud;return e.xa=this.xa,e.zp=this.zp,e.te=this.te,e.nb=this.nb,e.j=this.j,e.zh=this.zh,e.Fh=this.Fh,e.Bh=this.Bh,e.Mh=this.Mh,e.Ph=this.Ph,e.Qh=this.Qh,e.Oh=this.Oh,e.Nh=this.Nh,e.Of=this.Of,e.Xd=this.Xd,e.Lh=this.Lh,e.V=this.V,e.ia=this.ia,e.Ha=this.Ha,e.F=this.F,e.$h=this.$h,e.Ch=this.Ch,e.Hb=this.Hb,e.Di=this.Di,e.hb=this.hb,e.u=this.u.J(),e.o=this.o.J(),e.hg=this.hg,e.Bi=this.Bi,e.ob=this.ob,e.Pf=this.Pf,e.gd=this.gd,e.Ci=this.Ci,e.Pc=this.Pc,e.Oc=this.Oc,e};function $h(){this.u=-1/0,this.o=0,this.F=gr,this.rr=Nl,this.j=this.V="None"}$h.prototype.copy=function(){var e=new $h;return e.u=this.u,e.o=this.o,e.F=this.F.J(),e.rr=this.rr,e.V=this.V,e.j=this.j,e},$h.className="LinkElementSettings";function mp(){this.yj=this.Xi=Kr,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}mp.prototype.copy=function(){var e=new mp;return e.Xi=this.Xi.J(),e.yj=this.yj.J(),e.Vi=this.Vi,e.wj=this.wj,e.Wi=this.Wi,e.xj=this.xj,e.hq=this.hq,e.Tr=this.Tr,e.iq=this.iq,e.Ur=this.Ur,e},mp.className="LinkSettings";function vd(){this.ha=[1,0,0,1,0,0]}vd.prototype.copy=function(){var e=new vd;return e.ha[0]=this.ha[0],e.ha[1]=this.ha[1],e.ha[2]=this.ha[2],e.ha[3]=this.ha[3],e.ha[4]=this.ha[4],e.ha[5]=this.ha[5],e},vd.prototype.translate=function(e,t){this.ha[4]+=this.ha[0]*e+this.ha[2]*t,this.ha[5]+=this.ha[1]*e+this.ha[3]*t},vd.prototype.scale=function(e,t){this.ha[0]*=e,this.ha[1]*=e,this.ha[2]*=t,this.ha[3]*=t},vd.prototype.rotate=function(e,t,n){if(360<=e?e-=360:0>e&&(e+=360),e!==0){if(this.translate(t,n),e===90){e=0;var i=1}else e===180?(e=-1,i=0):e===270?(e=0,i=-1):(i=e*Math.PI/180,e=Math.cos(i),i=Math.sin(i));var r=this.ha[1]*e+this.ha[3]*i,o=this.ha[0]*-i+this.ha[2]*e,a=this.ha[1]*-i+this.ha[3]*e;this.ha[0]=this.ha[0]*e+this.ha[2]*i,this.ha[1]=r,this.ha[2]=o,this.ha[3]=a,this.translate(-t,-n)}},vd.className="STransform";function Hd(e){this.type=e,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}Hd.prototype.addColorStop=function(e,t){this.gx.push({offset:e,color:t})},Hd.className="SGradient";function kc(e,t,n){this.ownerDocument=e=t===void 0?Ke.document:t,this.cA="http://www.w3.org/2000/svg",e!==void 0&&(this.Oa=this.Ud("svg",{width:"1px",height:"1px",viewBox:"0 0 1 1"}),this.style.display="block",this.style.letterSpacing="normal",this.style.wordSpacing="normal",this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink")),this.hs=null,this.context=new ru(this,n)}kc.prototype.resize=function(e,t,n,i){return this.width!==e||this.height!==t?(this.width=e,this.height=t,this.style.width=n+"px",this.style.height=i+"px",this.Oa.setAttributeNS(null,"width",n+"px"),this.Oa.setAttributeNS(null,"height",i+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+n+" "+i),this.context.ww.firstElementChild.setAttributeNS(null,"width",n+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",i+"px"),!0):!1},kc.prototype.Ud=function(e,t,n){if(e=this.ownerDocument.createElementNS(this.cA,e),ot(t))for(var i in t)e.setAttributeNS(i==="href"?"http://www.w3.org/1999/xlink":"",i,t[i]);return n!==void 0&&(e.textContent=n),e},kc.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},kc.prototype.focus=function(){this.Oa.focus()},kc.prototype.mx=function(){this.ownerDocument=null},ht.Object.defineProperties(kc.prototype,{width:{get:function(){return this.Oa.width.baseVal.value},set:function(e){this.Oa.setAttribute("width",e+"px")}},height:{get:function(){return this.Oa.height.baseVal.value},set:function(e){this.Oa.setAttribute("height",e+"px")}},style:{get:function(){return this.Oa.style}}}),kc.className="SVGSurface";function ru(e,t){this.Gv=e,this.svg=e.Oa,this.stack=[],this.nh=[],this.fillStyle="#000000",this.font="10px sans-serif",this.globalAlpha=1,this.lineCap="butt",this.lineDashOffset=0,this.lineJoin="miter",this.lineWidth=1,this.miterLimit=10,this.shadowBlur=0,this.shadowColor="rgba(0, 0, 0, 0)",this.shadowOffsetY=this.shadowOffsetX=0,this.Il=!1,this.strokeStyle="#000000",this.textAlign="start",this.clipInsteadOfFill=!1,this.Vg=this.Br=this.Ar=0,this.yd=this.ad=null,this.path=[],this.Yl={},this.Ct=!1,this.Yg=null,this.uj=0,this.rb=new vd,this.j=S0(this),this.Nj=S0(this,"gojs-diagram"),this.Hl=this.ti=null;var n=Qr++,i=this.Ud("clipPath",{id:"mainClip"+n});i.appendChild(this.Ud("rect",{x:0,y:0,width:e.width,height:e.height})),this.ww=i,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(i),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+n+")"),this.eA={},this.isTemporary=!!t,this.filter="",this.bk=null}function oy(e,t,n,i,r,o,a){e.Nj===void 0?gp(e,t,n,i,r,o,a):e.Nj.setAttribute("transform","matrix("+t+", "+n+", "+i+", "+r+", "+o+", "+a+")")}U=ru.prototype,U.arc=function(e,t,n,i,r,o,a,l){var u=2*Math.PI,f=u-1e-6,p=n*Math.cos(i),x=n*Math.sin(i),N=e+p,R=t+x,_=o?0:1;i=o?i-r:r-i,(1e-6<Math.abs(a-N)||1e-6<Math.abs(l-R))&&this.path.push(["L",N,+R]),0>i&&(i=i%u+u),i>f?(this.path.push(["A",n,n,0,1,_,e-p,t-x]),this.path.push(["A",n,n,0,1,_,N,R])):1e-6<i&&this.path.push(["A",n,n,0,+(i>=Math.PI),_,e+n*Math.cos(r),t+n*Math.sin(r)])},U.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},U.Se=function(e){this.addPath(this.path,this.rb,e||0)},U.bezierCurveTo=function(e,t,n,i,r,o){this.path.push(["C",e,t,n,i,r,o])},U.clearRect=function(){},U.clip=function(){this.Yl.clipPath=!0},U.closePath=function(){this.path.push(["z"])},U.createLinearGradient=function(e,t,n,i){var r=new Hd("linear");return r.x1=e,r.y1=t,r.x2=n,r.y2=i,r},U.createPattern=function(e){var t="";e instanceof HTMLCanvasElement&&(t=e.toDataURL()),e instanceof HTMLImageElement&&(t=e.getAttribute("src"));var n=this.eA;if(n[t])return"url(#"+n[t]+")";var i="PATTERN"+Qr++,r={x:0,y:0,width:e.width,height:e.height,href:t};return e=this.Ud("pattern",{width:e.width,height:e.height,id:i,patternUnits:"userSpaceOnUse"}),e.appendChild(this.Ud(pd,r)),this.svg.appendChild(e),n[t]=i,"url(#"+i+")"},U.createRadialGradient=function(e,t,n,i,r,o){var a=new Hd("radial");return a.x1=e,a.y1=t,a.r1=n,a.x2=i,a.y2=r,a.r2=o,a};function ay(e,t,n,i,r,o,a,l,u){i=l/i,r=u/r,o===0&&a===0||e.rb.translate(o,a),i===1&&r===1||e.rb.scale(i,r),t===0&&n===0||e.rb.translate(-t,-n)}U.drawImage=function(e,t,n,i,r,o,a,l,u){var f="";e instanceof HTMLCanvasElement&&(f=e.toDataURL()),e instanceof HTMLImageElement&&(f=e.getAttribute("src"));var p=e instanceof HTMLImageElement?e.naturalWidth:e.width;e=e instanceof HTMLImageElement?e.naturalHeight:e.height,i===void 0&&(o=t,a=n,l=i=p,u=r=e),i=i||0,r=r||0,l=l||0,u=u||0,ay(this,t,n,i,r,o||0,a||0,l,u),o={x:0,y:0,width:p||i,height:e||r,href:f},qe.$(i,l)&&qe.$(r,u)?f.toLowerCase().indexOf(".svg")===-1&&f.toLowerCase().indexOf("data:image/svg")===-1&&(o.preserveAspectRatio="xMidYMid slice"):o.preserveAspectRatio="none",(t!==0||n!==0||i!==p||r!==e)&&(i+=t,r+=n,o["clip-path"]="path('M "+t+","+n+" L "+i+" "+n+" L "+i+" "+r+" L "+t+" "+r+" z')"),vf(this,pd,o,this.rb),this.addElement(pd,o)},U.fill=function(e){e&&(this.Yl["fill-rule"]="evenodd"),dg(this,this.Yl)},U.ng=function(e,t){this.clipInsteadOfFill?this.clip():this.fill(t)},U.fillRect=function(e,t,n,i){e=[e,t,n,i],e={x:e[0],y:e[1],width:e[2],height:e[3]},vf(this,"fill",e,this.rb),this.addElement("rect",e)},U.ox=function(e,t,n,i){e={x:e,y:t,width:n,height:i},vf(this,"fill",e,this.rb),dg(this,e),this.svg.prepend(this.Ud("rect",e))},U.fillText=function(e,t,n){e=[e,t,n],t=this.textAlign,t==="left"?t="start":t==="right"?t="end":t==="center"&&(t="middle"),t={x:e[1],y:e[2],style:"font: "+this.font,"text-anchor":t},vf(this,"fill",t,this.rb),this.addElement("text",t,e[0])},U.lineTo=function(e,t){this.path.push(["L",e,t])},U.moveTo=function(e,t){this.path.push(["M",e,t])},U.quadraticCurveTo=function(e,t,n,i){this.path.push(["Q",e,t,n,i])},U.rect=function(e,t,n,i){this.path.push(["M",e,t],["L",e+n,t],["L",e+n,t+i],["L",e,t+i],["z"])},U.restore=function(){this.rb=this.stack.pop(),this.path=this.stack.pop();var e=this.stack.pop();this.fillStyle=e.fillStyle,this.font=e.font,this.globalAlpha=e.globalAlpha,this.lineCap=e.lineCap,this.lineDashOffset=e.lineDashOffset,this.lineJoin=e.lineJoin,this.lineWidth=e.lineWidth,this.miterLimit=e.miterLimit,this.shadowBlur=e.shadowBlur,this.shadowColor=e.shadowColor,this.shadowOffsetX=e.shadowOffsetX,this.shadowOffsetY=e.shadowOffsetY,this.strokeStyle=e.strokeStyle,this.textAlign=e.textAlign,this.bk=e.bk},U.save=function(){this.stack.push({fillStyle:this.fillStyle,font:this.font,globalAlpha:this.globalAlpha,lineCap:this.lineCap,lineDashOffset:this.lineDashOffset,lineJoin:this.lineJoin,lineWidth:this.lineWidth,miterLimit:this.miterLimit,shadowBlur:this.shadowBlur,shadowColor:this.shadowColor,shadowOffsetX:this.shadowOffsetX,shadowOffsetY:this.shadowOffsetY,strokeStyle:this.strokeStyle,textAlign:this.textAlign,bk:this.bk});for(var e=[],t=0;t<this.path.length;t++)e.push(this.path[t]);this.stack.push(e),this.stack.push(this.rb.copy())},U.setTransform=function(e,t,n,i,r,o){e===1&&t===0&&n===0&&i===1&&r===0&&o===0||gp(this,e,t,n,i,r,o)};function sy(e){return e=e.rb.ha,"matrix("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+")"}U.scale=function(e,t){this.rb.scale(e,t)},U.translate=function(e,t){this.rb.translate(e,t)},U.transform=function(){},U.yc=function(){},U.stroke=function(){uy(this,this.Yl)},U.jk=function(){this.clipInsteadOfFill||this.stroke()},U.Ud=function(e,t,n){return this.Gv.Ud(e,t,n)},U.addElement=function(e,t,n){return e=this.Ud(e,t,n),this.yd!==null?this.yd.appendChild(e):this.yd=e,this.ad=e};function vf(e,t,n,i){t==="fill"?dg(e,n):t==="stroke"&&uy(e,n),i!==null&&(e=i.ha,n.transform="matrix("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+")")}function dg(e,t){e.fillStyle instanceof Hd?t.fill=fg(e,e.fillStyle,!0):/^rgba\(/.test(e.fillStyle)?(e=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(e.fillStyle),t.fill="rgb("+e[1]+","+e[2]+","+e[3]+")",t["fill-opacity"]=e[4]):t.fill=e.fillStyle}function ly(e,t,n){n=n?"fill":"stroke",e.fillStyle instanceof Hd?t.setAttributeNS(null,"fill",fg(e,e.fillStyle,!0)):/^rgba\(/.test(e.fillStyle)?(e=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(e.fillStyle),t.setAttributeNS(null,n,"rgb("+e[1]+","+e[2]+","+e[3]+")"),t.setAttributeNS(null,n+"-opacity",e[4])):t.setAttributeNS(null,n,e.fillStyle)}function uy(e,t){if(e.strokeStyle instanceof Hd)t.stroke=fg(e,e.strokeStyle,!1);else if(/^rgba\(/.test(e.strokeStyle)){var n=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(e.strokeStyle);t.stroke="rgb("+n[1]+","+n[2]+","+n[3]+")",t["stroke-opacity"]=n[4]}else t.stroke=e.strokeStyle;t["stroke-width"]=e.lineWidth,t["stroke-linecap"]=e.lineCap,t["stroke-linejoin"]=e.lineJoin,t["stroke-miterlimit"]=e.miterLimit,e.Ct&&(t["stroke-dasharray"]=e.Yg.toString(),t["stroke-dashoffset"]=e.uj)}function fg(e,t,n){var i="";if(i=e.Hl!==null?e.Hl.getAttribute(n?"fill":"stroke"):null,i!==null&&i.indexOf("GRAD")!==-1?(i=i.split("#")[1].slice(0,-1),n=e.svg.getElementById(i),n!==null&&n.remove()):i="GRAD"+Qr++,t.type==="linear")n=e.Ud("linearGradient",{x1:t.x1,x2:t.x2,y1:t.y1,y2:t.y2,id:i,gradientUnits:"userSpaceOnUse"});else if(t.type==="radial")n=e.Ud("radialGradient",{x1:t.x1,x2:t.x2,y1:t.y1,y2:t.y2,r1:t.r1,r2:t.r2,id:i});else throw Error("invalid gradient");var r=t.gx;t=r.length;for(var o=[],a=0;a<t;a++){var l=r[a],u=l.color;l={offset:l.offset,"stop-color":u},/^rgba\(/.test(u)&&(u=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(u),l["stop-color"]="rgb("+u[1]+","+u[2]+","+u[3]+")",l["stop-opacity"]=u[4]),o.push(l)}for(o.sort(function(f,p){return f.offset>p.offset?1:-1}),r=0;r<t;r++)n.appendChild(e.Ud("stop",o[r]));return e.svg.appendChild(n),"url(#"+i+")"}U.addPath=function(e,t,n){for(var i=[],r=0;r<e.length;r++){var o=yt(e[r]),a=[o.shift()];if(a[0]==="A")a.push(o.shift()+","+o.shift(),o.shift(),o.shift()+","+o.shift(),o.shift()+","+o.shift());else for(;o.length;)a.push(o.shift()+","+o.shift());i.push(a.join(" "))}if(i=i.join(" "),e=this.Yl,e.clipPath)0<this.nh.length&&this.nh[this.nh.length-1].setAttributeNS(null,"clip-path",'path("'+i+'")');else if(e.d=i,vf(this,"",e,t),this.Hl!==null)if(t=this.Hl,t.nodeName!=="g")for(var l in e)l!=="transform"&&t.setAttributeNS(null,l,e[l]);else{l=t.getElementsByTagName("path");for(var u in e)u!=="transform"&&l[n].setAttributeNS(null,u,e[u])}else this.addElement("path",e)};function gp(e,t,n,i,r,o,a){var l=new vd;l.ha=[t,n,i,r,o,a],t={},vf(e,"g",t,l),l=e.addElement("g",t),e.nh.push(l)}function S0(e,t){var n={};return t&&(n.class=t),t=e.addElement("g",n),e.nh.push(t),t}U.Ev=function(e,t,n){this.Ar=e,this.Br=t,this.Vg=n};function Bc(e){e.Il=!1,e.shadowOffsetX=0,e.shadowOffsetY=0,e.shadowBlur=0}function Jc(e){e.Il=!0,e.shadowOffsetX=e.Ar,e.shadowOffsetY=e.Br,e.shadowBlur=e.Vg}U.js=function(e,t){this.Ct=!0,this.Yg=e,this.uj=t},U.fs=function(){this.Ct=!1},U.Vc=function(){},U.Wx=function(){},ru.prototype.rotate=function(e){this.rb.rotate(57.2958*e,0,0)},ru.prototype.getImageData=function(){return null},ru.prototype.measureText=function(){return null};function E0(e,t){t=t.getAttribute("fill"),t!==null&&(t=t.split("#"),t.length!==1&&(t=e.svg.getElementById(t[1].slice(0,-1)),t!==null&&e.svg.innerHTML.match(new RegExp(t.id,"g")).length===1&&t.remove()))}ru.prototype.Hs=function(e){e.svg!==null&&e.svg.parentNode===this.Nj&&e.svg.remove()},ru.className="SVGContext",Y.prototype.Cs=function(e){this.pj.contains("SVG")||this.bs("SVG",new kc(this,Ke.document));var t=new kc(this,Ke.document,!0);e===void 0&&(e=new oe);var n=this;return Dd(this,function(i,r){return i=g0(n,i,"SVG",t),i=i!==null?i.svg:null,typeof r=="function"?(r(i),null):i},e)},Y.prototype.makeSvg=Y.prototype.Cs,Y.prototype.av=function(e){return this.Cs(e)},Y.prototype.makeSVG=Y.prototype.av;function $u(e,t,n,i){this.ownerDocument=t=t===void 0?Ke.document:t,this.hs=null,t=t.createElement("canvas"),t.tabIndex=0,this.Oa=t,this.context=new yd(t,n,i),t.H=e}$u.prototype.resize=function(e,t,n,i){return this.width!==e||this.height!==t?(this.width=e,this.height=t,this.style.width=n+"px",this.style.height=i+"px",!0):!1},$u.prototype.toDataURL=function(e,t){return this.Oa.toDataURL(e,t)},$u.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},$u.prototype.focus=function(){this.Oa.focus()},$u.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},ht.Object.defineProperties($u.prototype,{width:{get:function(){return this.Oa.width},set:function(e){this.Oa.width=e}},height:{get:function(){return this.Oa.height},set:function(e){this.Oa.height=e}},style:{get:function(){return this.Oa.style}}}),$u.className="CanvasSurface";function yd(e,t,n){this.Z=e.getContext?e.getContext("2d",t):null,this.Z===null&&Ve("Browser does not support HTML Canvas Element"),this.ct=this.et=this.dt="",this.Hm=!1,this.Vg=this.Br=this.Ar=0,this.Il=!1,this.El=new nr,this.isTemporary=!!n}U=yd.prototype,U.Wx=function(e){this.Z.imageSmoothingEnabled=e},U.arc=function(e,t,n,i,r,o){this.Z.arc(e,t,n,i,r,o)},U.beginPath=function(){this.Z.beginPath()},U.Se=function(){},U.bezierCurveTo=function(e,t,n,i,r,o){this.Z.bezierCurveTo(e,t,n,i,r,o)},U.clearRect=function(e,t,n,i){this.yc(),this.Z.clearRect(e,t,n,i)},U.clip=function(){this.Z.clip()},U.closePath=function(){this.Z.closePath()},U.createLinearGradient=function(e,t,n,i){return this.Z.createLinearGradient(e,t,n,i)},U.createPattern=function(e,t){return this.Z.createPattern(e,t)},U.createRadialGradient=function(e,t,n,i,r,o){return this.Z.createRadialGradient(e,t,n,i,r,o)},U.drawImage=function(e,t,n,i,r,o,a,l,u){i===void 0?this.Z.drawImage(e,t,n):this.Z.drawImage(e,t,n,i,r,o,a,l,u)},U.fill=function(e){this.Z.fill(e?"evenodd":"nonzero")},U.fillRect=function(e,t,n,i){this.Z.fillRect(e,t,n,i)},U.ox=function(e,t,n,i){this.Z.fillRect(e,t,n,i)},U.fillText=function(e,t,n){this.Z.fillText(e,t,n)},U.getImageData=function(e,t,n,i){return this.Z.getImageData(e,t,n,i)},U.lineTo=function(e,t){this.Z.lineTo(e,t)},U.measureText=function(e){return this.Z.measureText(e)},U.moveTo=function(e,t){this.Z.moveTo(e,t)},U.quadraticCurveTo=function(e,t,n,i){this.Z.quadraticCurveTo(e,t,n,i)},U.rect=function(e,t,n,i){this.Z.rect(e,t,n,i)},U.restore=function(){this.Z.restore()},U.save=function(){this.yc(),this.Z.save()},yd.prototype.rotate=function(e){this.El.rotate(57.2958*e,0,0)},U=yd.prototype,U.setTransform=function(e,t,n,i,r,o){this.El.setTransform(e,t,n,i,r,o)},U.scale=function(e,t){this.El.scale(e,t)},U.translate=function(e,t){this.El.translate(e,t)},U.stroke=function(){this.Z.stroke()},U.transform=function(e,t,n,i,r,o){if(e!==1||t!==0||n!==0||i!==1||r!==0||o!==0){var a=this.El,l=a.m11*e+a.m21*t;e=a.m12*e+a.m22*t,t=a.m11*n+a.m21*i,n=a.m12*n+a.m22*i,a.dx=a.m11*r+a.m21*o+a.dx,a.dy=a.m12*r+a.m22*o+a.dy,a.m11=l,a.m12=e,a.m21=t,a.m22=n}},U.yc=function(){var e=this.El;this.Z.setTransform(e.m11,e.m12,e.m21,e.m22,e.dx,e.dy)},U.ng=function(e,t){if(e instanceof ao&&e.type===Ru){var n=e.yk;e=e.ft,e>n?(this.scale(n/e,1),this.translate((e-n)/2,0)):n>e&&(this.scale(1,e/n),this.translate(0,(n-e)/2)),this.Hm?this.clip():this.fill(t),e>n?(this.translate(-(e-n)/2,0),this.scale(1/(n/e),1)):n>e&&(this.translate(0,-(n-e)/2),this.scale(1,1/(e/n)))}else this.Hm?this.clip():this.fill(t)},U.jk=function(){this.Hm||this.stroke()},U.Ev=function(e,t,n){this.Ar=e,this.Br=t,this.Vg=n},U.js=function(e,t){var n=this.Z;n.setLineDash!==void 0&&(n.setLineDash(e),n.lineDashOffset=t)},U.fs=function(){var e=this.Z;e.setLineDash!==void 0&&(e.setLineDash(Mb),e.lineDashOffset=0)},U.Vc=function(e){e&&(this.dt=""),this.ct=this.et=""},U.Hs=function(){},ht.Object.defineProperties(yd.prototype,{fillStyle:{get:function(){return this.Z.fillStyle},set:function(e){this.ct!==e&&(this.ct=this.Z.fillStyle=e)}},font:{get:function(){return this.Z.font},set:function(e){this.dt!==e&&(this.dt=this.Z.font=e)}},globalAlpha:{get:function(){return this.Z.globalAlpha},set:function(e){this.Z.globalAlpha=e}},lineCap:{get:function(){return this.Z.lineCap},set:function(e){this.Z.lineCap=e}},lineDashOffset:{get:function(){return this.Z.lineDashOffset},set:function(e){this.Z.lineDashOffset=e}},lineJoin:{get:function(){return this.Z.lineJoin},set:function(e){this.Z.lineJoin=e}},lineWidth:{get:function(){return this.Z.lineWidth},set:function(e){this.Z.lineWidth=e}},miterLimit:{get:function(){return this.Z.miterLimit},set:function(e){this.Z.miterLimit=e}},shadowBlur:{get:function(){return this.Z.shadowBlur},set:function(e){this.Z.shadowBlur=e}},shadowColor:{get:function(){return this.Z.shadowColor},set:function(e){this.Z.shadowColor=e}},shadowOffsetX:{get:function(){return this.Z.shadowOffsetX},set:function(e){this.Z.shadowOffsetX=e}},shadowOffsetY:{get:function(){return this.Z.shadowOffsetY},set:function(e){this.Z.shadowOffsetY=e}},strokeStyle:{get:function(){return this.Z.strokeStyle},set:function(e){this.et!==e&&(this.et=this.Z.strokeStyle=e)}},textAlign:{get:function(){return this.Z.textAlign},set:function(e){this.Z.textAlign=e}},imageSmoothingEnabled:{get:function(){return this.Z.imageSmoothingEnabled},set:function(e){this.Z.imageSmoothingEnabled=e}},filter:{get:function(){return this.Z.filter},set:function(e){this.Z.filter=e===""?"none":e}},clipInsteadOfFill:{get:function(){return this.Hm},set:function(e){this.Hm=e}}});var Mb=Object.freeze([]);yd.className="CanvasSurfaceContext";function vp(){this.F=this.o=this.u=this.j=0}vp.className="ColorNumbers";function ao(e,t){Sf||(bg(),Sf=!0),Li(this),this._isFrozen=!1,e===void 0?(this.na=vh,this.xk="black"):typeof e=="string"?(this.na=vh,this.xk=e):(this.na=e,this.xk="black"),e=this.na,e===eh?(this.Qd=Es,this.Lk=Os):this.Lk=e===Ru?this.Qd=Rr:this.Qd=Ui,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,t&&Object.assign(this,t)}ao.prototype.copy=function(){var e=new ao;return e.na=this.na,e.xk=this.xk,e.Qd=this.Qd.J(),e.Lk=this.Lk.J(),e.Gr=this.Gr,e.Xp=this.Xp,this.we!==null&&(e.we=this.we.copy()),e.cr=this.cr,e},U=ao.prototype,U.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},U.ka=function(){return Object.isFrozen(this)&&Ve("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},U.qb=function(e){e.classType===ao&&(this.type=e)},U.toString=function(){var e="Brush(";if(this.type===vh)e+=this.color;else if(e=this.type===eh?e+"Linear ":this.type===Ru?e+"Radial ":this.type===Ef?e+"Pattern ":e+"(unknown) ",e+=this.start+" "+this.end,this.colorStops!==null)for(var t=this.colorStops.iterator;t.next();)e+=" "+t.key+":"+t.value;return e+")"},U.addColorStop=function(e,t){return this._isFrozen&&Ut(this),(typeof e!="number"||!isFinite(e)||1<e||0>e)&&Lt(e,"0 <= loc <= 1",ao,"addColorStop:loc"),this.we===null&&(this.we=new Zn),this.we.add(e,t),this.na===vh&&(this.type=eh),this.xe=null,this},U.Vz=function(e,t){if(this._isFrozen&&Ut(this),e=e===void 0||typeof e!="number"?.2:e,t=t===void 0?wf:t,this.type===vh)qc(this.color),this.color=bf(e,t);else if((this.type===eh||this.type===Ru)&&this.colorStops!==null)for(var n=this.colorStops.iterator;n.next();)qc(n.value),this.addColorStop(n.key,bf(e,t));return this};function cy(e,t,n){return t=t===void 0||typeof t!="number"?.2:t,n=n===void 0?wf:n,qc(e),bf(t,n)}U.Wy=function(e,t){if(this._isFrozen&&Ut(this),e=e===void 0||typeof e!="number"?.2:e,t=t===void 0?wf:t,this.type===vh)qc(this.color),this.color=bf(-e,t);else if((this.type===eh||this.type===Ru)&&this.colorStops!==null)for(var n=this.colorStops.iterator;n.next();)qc(n.value),this.addColorStop(n.key,bf(-e,t));return this};function hy(e,t,n){return t=t===void 0||typeof t!="number"?.2:t,n=n===void 0?wf:n,qc(e),bf(-t,n)}function pg(e,t,n){qc(e),e=Do.j;var i=Do.u,r=Do.o,o=Do.F;return qc(t),n===void 0&&(n=.5),"rgba("+Math.round((Do.j-e)*n+e)+", "+Math.round((Do.u-i)*n+i)+", "+Math.round((Do.o-r)*n+r)+", "+Math.round((Do.F-o)*n+o)+")"}U.Gx=function(){if(this.type===vh)return yf(this.color);if((this.type===eh||this.type===Ru)&&this.colorStops!==null){var e=this.colorStops;if(this.type===Ru)return yf(e.first().value);if(e.get(.5)!==null)return yf(e.get(.5));if(e.count===2)return e=e.Fa(),yf(pg(e[0].value,e[1].value));for(var t=e.iterator,n=-1,i=-1,r=1,o=1;t.next();){var a=t.key,l=Math.abs(.5-t.key);r>o&&l<r?(n=a,r=l):o>=r&&l<o&&(i=a,o=l)}return n>i&&(o=n,n=i,i=o,o=r),r=i-n,yf(pg(e.get(n),e.get(i),1-o/r))}return!1};function yf(e){return e?e instanceof ao?e.Gx():(qc(e),128>(299*Do.j+587*Do.u+114*Do.o)/1e3):!1}function bf(e,t){switch(t){case wf:t=100*gg(Do.j);var n=100*gg(Do.u),i=100*gg(Do.o);return Cl.j=.4124564*t+.3575761*n+.1804375*i,Cl.u=.2126729*t+.7151522*n+.072175*i,Cl.o=.0193339*t+.119192*n+.9503041*i,Cl.F=Do.F,t=yg(Cl.j/xf[0]),n=yg(Cl.u/xf[1]),i=yg(Cl.o/xf[2]),_c.j=116*n-16,_c.u=500*(t-n),_c.o=200*(n-i),_c.F=Cl.F,_c.j=Math.min(100,Math.max(0,_c.j+100*e)),e=(_c.j+16)/116,t=e-_c.o/200,Cl.j=xf[0]*dy(_c.u/500+e),Cl.u=xf[1]*(_c.j>w0*xg?Math.pow(e,3):_c.j/w0),Cl.o=xf[2]*dy(t),Cl.F=_c.F,e=-.969266*Cl.j+1.8760108*Cl.u+.041556*Cl.o,t=.0556434*Cl.j+-.2040259*Cl.u+1.0572252*Cl.o,Do.j=255*vg((3.2404542*Cl.j+-1.5371385*Cl.u+-.4985314*Cl.o)/100),Do.u=255*vg(e/100),Do.o=255*vg(t/100),Do.F=Cl.F,Do.j=Math.round(Do.j),255<Do.j?Do.j=255:0>Do.j&&(Do.j=0),Do.u=Math.round(Do.u),255<Do.u?Do.u=255:0>Do.u&&(Do.u=0),Do.o=Math.round(Do.o),255<Do.o?Do.o=255:0>Do.o&&(Do.o=0),"rgba("+Do.j+", "+Do.u+", "+Do.o+", "+Do.F+")";case fy:return mg(),xu.o=Math.min(100,Math.max(0,xu.o+100*e)),"hsla("+xu.j+", "+xu.u+"%, "+xu.o+"%, "+xu.F+")";default:Ve("Unknown color space: "+t)}}function qc(e){Sf||(bg(),Sf=!0);var t=Sg;if(t!==null){t.clearRect(0,0,1,1),t.fillStyle="#000000";var n=t.fillStyle;t.fillStyle=e,t.fillStyle!==n?(t.fillRect(0,0,1,1),e=t.getImageData(0,0,1,1).data,Do.j=e[0],Do.u=e[1],Do.o=e[2],Do.F=e[3]/255):(t.fillStyle="#FFFFFF",t.fillStyle=e,Do.j=0,Do.u=0,Do.o=0,Do.F=1)}}function mg(){var e=Do.j/255,t=Do.u/255,n=Do.o/255,i=Math.max(e,t,n),r=Math.min(e,t,n),o=i-r;if(r=(i+r)/2,o===0)var a=e=0;else{switch(i){case e:a=(t-n)/o%6;break;case t:a=(n-e)/o+2;break;case n:a=(e-t)/o+4}a*=60,0>a&&(a+=360),e=o/(1-Math.abs(2*r-1))}xu.j=Math.round(a),xu.u=Math.round(100*e),xu.o=Math.round(100*r),xu.F=Do.F}function gg(e){return e/=255,.04045>=e?e/12.92:Math.pow((e+.055)/1.055,2.4)}function vg(e){return .0031308>=e?12.92*e:1.055*Math.pow(e,1/2.4)-.055}function yg(e){return e>xg?Math.pow(e,1/3):(w0*e+16)/116}function dy(e){var t=e*e*e;return t>xg?t:(116*e-16)/w0}function $d(e,t){typeof e!="string"&&(e instanceof ao||Ve("Value for "+t+" must be a color string or a Brush, not "+e))}function bg(){Sg=Ea?new $u(null,void 0,{willReadFrequently:!0}).context:null}ht.Object.defineProperties(ao.prototype,{type:{get:function(){return this.na},set:function(e){this._isFrozen&&Ut(this,e),this.na=e,this.start.Mc()&&(e===eh?this.start=Es:e===Ru&&(this.start=Rr)),this.end.Mc()&&(e===eh?this.end=Os:e===Ru&&(this.end=Rr)),this.xe=null}},color:{get:function(){return this.xk},set:function(e){this._isFrozen&&Ut(this,e),this.xk=e,this.xe=null}},start:{get:function(){return this.Qd},set:function(e){this._isFrozen&&Ut(this,e),this.Qd=e.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(e){this._isFrozen&&Ut(this,e),this.Lk=e.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(e){this._isFrozen&&Ut(this,e),0>e&&Lt(e,">= zero",ao,"startRadius"),this.Gr=e,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(e){this._isFrozen&&Ut(this,e),0>e&&Lt(e,">= zero",ao,"endRadius"),this.Xp=e,this.xe=null}},colorStops:{get:function(){return this.we},set:function(e){this._isFrozen&&Ut(this,e),this.we=e,this.xe=null}},pattern:{get:function(){return this.cr},set:function(e){this._isFrozen&&Ut(this,e),this.cr=e,this.xe=null}}}),ao.prototype.isDark=ao.prototype.Gx,ao.prototype.darkenBy=ao.prototype.Wy,ao.prototype.lightenBy=ao.prototype.Vz,ao.prototype.addColorStop=ao.prototype.addColorStop;var xg=216/24389,w0=24389/27,xf=[95.047,100,108.883],Sg=null,Do=new vp,xu=new vp,Cl=new vp,_c=new vp,Sf=!1;ao.className="Brush";var vh;ao.Solid=vh=new Yt(ao,"Solid",0);var eh;ao.Linear=eh=new Yt(ao,"Linear",1);var Ru;ao.Radial=Ru=new Yt(ao,"Radial",2);var Ef;ao.Pattern=Ef=new Yt(ao,"Pattern",4);var wf;ao.Lab=wf=new Yt(ao,"Lab",5);var fy;ao.HSL=fy=new Yt(ao,"HSL",6),ao.randomColor=function(e,t){e===void 0&&(e=128),t===void 0&&(t=Math.max(e,255));var n=Math.abs(t-e);t=Math.floor(e+Math.random()*n).toString(16);var i=Math.floor(e+Math.random()*n).toString(16);return e=Math.floor(e+Math.random()*n).toString(16),2>t.length&&(t="0"+t),2>i.length&&(i="0"+i),2>e.length&&(e="0"+e),"#"+t+i+e},ao.isValidColor=function(e){if(e==="black")return!0;if(e==="")return!1;Sf||(bg(),Sf=!0);var t=Sg;if(t===null)return!0;t.fillStyle="#000000";var n=t.fillStyle;return t.fillStyle=e,t.fillStyle!==n?!0:(t.fillStyle="#FFFFFF",n=t.fillStyle,t.fillStyle=e,t.fillStyle!==n)},ao.lighten=function(e){return cy(e)},ao.lightenBy=cy,ao.darken=function(e){return hy(e)},ao.darkenBy=hy,ao.mix=pg,ao.isDark=yf;function ts(){this.xa="Base"}ts.prototype.measure=function(){},ts.prototype.Yz=function(e,t,n,i,r){e.measure(t,n,i,r)},ts.prototype.arrange=function(){},ts.prototype.Ly=function(e,t,n,i,r,o){e.arrange(t,n,i,r,o)},ts.prototype.iA=function(e){e.Uj()},ts.prototype.gc=function(){},ht.Object.defineProperties(ts.prototype,{name:{get:function(){return this.xa},set:function(e){this.xa=e}},classType:{get:function(){return kn}}}),ts.prototype.remeasureObject=ts.prototype.iA,ts.prototype.arrangeElement=ts.prototype.Ly,ts.prototype.measureElement=ts.prototype.Yz,ts.className="PanelLayout";function C0(){this.xa="Base"}yi(C0,ts),C0.prototype.measure=function(e,t,n,i,r,o,a){var l=i.length;e=th(e);for(var u=0;u<l;u++){var f=i[u];if(f.visible||f===e){var p=f.margin,x=p.right+p.left;p=p.top+p.bottom,f.measure(t,n,o,a);var N=f.measuredBounds;x=Math.max(N.width+x,0),p=Math.max(N.height+p,0),N=f.position.x;var R=f.position.y;isFinite(N)||(N=0),isFinite(R)||(R=0),f instanceof lr&&f.isGeometryPositioned&&(f=f.strokeWidth/2,N-=f,R-=f),Pr(r,N,R,x,p)}}},C0.prototype.arrange=function(e,t,n){var i=t.length,r=e.padding;for(e=n.x-r.left,n=n.y-r.top,r=0;r<i;r++){var o=t[r],a=o.measuredBounds,l=o.margin,u=o.position.x,f=o.position.y;if(u=isNaN(u)?-e:u-e,f=isNaN(f)?-n:f-n,o instanceof lr&&o.isGeometryPositioned){var p=o.strokeWidth/2;u-=p,f-=p}o.visible&&o.arrange(u+l.left,f+l.top,a.width,a.height)}};function T0(){this.xa="Base"}yi(T0,ts),T0.prototype.measure=function(e,t,n,i,r,o,a){var l=i.length;t=Rt(),o=th(e);for(var u=0;u<l;u++){var f=i[u];if(f.visible||f===o){var p=_l(f,!1);if(p!==En&&p!==bi)t.push(f);else{f.measure(1/0,n,0,a),p=f.margin,f=f.measuredBounds;var x=Math.max(f.height+p.top+p.bottom,0);r.width+=Math.max(f.width+p.right+p.left,0),r.height=Math.max(r.height,x)}}}for(i=t.length,e.desiredSize.height?n=Math.min(e.desiredSize.height,e.maxSize.height):r.height!==0&&(n=Math.min(r.height,e.maxSize.height)),e=0;e<i;e++)u=t[e],(u.visible||u===o)&&(p=u.margin,l=p.right+p.left,p=p.top+p.bottom,u.measure(1/0,n,0,a),u=u.measuredBounds,p=Math.max(u.height+p,0),r.width+=Math.max(u.width+l,0),r.height=Math.max(r.height,p));Jt(t)},T0.prototype.arrange=function(e,t,n){for(var i=t.length,r=e.padding,o=r.top,a=e.isOpposite,l=a?n.width:r.left,u=0;u<i;u++){var f=o,p=t[u];if(p.visible){var x=p.measuredBounds,N=p.margin,R=N.top+N.bottom,_=o+r.bottom,V=x.height,xe=_l(p,!1);(isNaN(p.desiredSize.height)&&xe===Tn||xe===Di)&&(V=Math.max(n.height-R-_,0)),R=V+R+_,_=p.alignment,_.Xb()&&(_=e.defaultAlignment),_.sb()||(_=Rr),a&&(l-=x.width+N.left+N.right),p.arrange(l+_.offsetX+N.left,f+_.offsetY+N.top+(n.height*_.y-R*_.y),x.width,V),a||(l+=x.width+N.left+N.right)}}};function N0(){this.xa="Base"}yi(N0,ts),N0.prototype.measure=function(e,t,n,i,r,o){var a=i.length;n=Rt();for(var l=th(e),u=0;u<a;u++){var f=i[u];if(f.visible||f===l){var p=_l(f,!1);if(p!==En&&p!==Di)n.push(f);else{var x=f.margin;p=x.right+x.left,x=x.top+x.bottom,f.measure(t,1/0,o,0),f=f.measuredBounds,Pa(r,Math.max(r.width,Math.max(f.width+p,0)),r.height+Math.max(f.height+x,0))}}}if(i=n.length,i!==0){for(e.desiredSize.width?t=Math.min(e.desiredSize.width,e.maxSize.width):r.width!==0&&(t=Math.min(r.width,e.maxSize.width)),e=0;e<i;e++)u=n[e],(u.visible||u===l)&&(f=u.margin,a=f.right+f.left,f=f.top+f.bottom,u.measure(t,1/0,o,0),u=u.measuredBounds,f=Math.max(u.height+f,0),r.width=Math.max(r.width,Math.max(u.width+a,0)),r.height+=f);Jt(n)}},N0.prototype.arrange=function(e,t,n){for(var i=t.length,r=e.padding,o=r.left,a=e.isOpposite,l=a?n.height:r.top,u=0;u<i;u++){var f=o,p=t[u];if(p.visible){var x=p.measuredBounds,N=p.margin,R=N.left+N.right,_=o+r.right,V=x.width,xe=_l(p,!1);(isNaN(p.desiredSize.width)&&xe===Tn||xe===bi)&&(V=Math.max(n.width-R-_,0)),R=V+R+_,_=p.alignment,_.Xb()&&(_=e.defaultAlignment),_.sb()||(_=Rr),a&&(l-=x.height+N.bottom+N.top),p.arrange(f+_.offsetX+N.left+(n.width*_.x-R*_.x),l+_.offsetY+N.top,V,x.height),a||(l+=x.height+N.bottom+N.top)}}};function A0(){this.xa="Base"}yi(A0,ts),A0.prototype.measure=function(e,t,n,i,r,o,a){var l=i.length,u=e.Pb(),f=u.margin,p=f.right+f.left,x=f.top+f.bottom;u.measure(t,n,o,a);var N=u.measuredBounds;o=N.width,a=N.height;var R=Math.max(o+p,0),_=Math.max(a+x,0),V=e.isClipping,xe=Zt.allocAt(-f.left,-f.top,R,_),ue=Zt.allocAt(0,0,o,a);Eg(u,ue,!0),o=ue.width,a=ue.height;for(var Fe=!0,Ue=th(e),We=0;We<l;We++){var rt=i[We];N=t;var At=n;if(rt!==u&&(rt.visible||rt===Ue)){f=rt.margin;var Kn=f.left,ri=f.top;switch(R=f.right+f.left,_=f.top+f.bottom,f=_l(rt,!1),f){case Tn:N=o,At=a,ri=Kn=_=R=0;break;case bi:N=o,Kn=R=0;break;case Di:At=a,ri=_=0}rt.measure(N,At,0,0),N=rt.measuredBounds,R=Math.max(N.width+R,0),_=Math.max(N.height+_,0),f=rt.alignment,f.Xb()&&(f=e.defaultAlignment),f.sb()||(f=Rr);var qn=rt.alignmentFocus;if(qn.Xb()&&(qn=Rr),At=null,rt instanceof kn&&rt.$e!==""&&(At=rt.fb(rt.$e),At===rt&&(At=null)),Kn=ue.x-Kn,ri=ue.y-ri,At!==null){for(rt.arrange(0,0,N.width,N.height),N=At.actualBounds,N=he.allocAt(N.x+(qn.x*N.width-qn.offsetX),N.y+(qn.y*N.height-qn.offsetY)),At=At.panel;At!==rt;)At.transform.Ga(N),At=At.panel;Kn+=f.x*o+f.offsetX-N.x,ri+=f.y*a+f.offsetY-N.y,he.free(N)}else Kn+=f.x*o+f.offsetX-(qn.x*N.width+qn.offsetX),ri+=f.y*a+f.offsetY-(qn.y*N.height+qn.offsetY);Fe?(Fe=!1,r.h(Kn,ri,R,_)):Pr(r,Kn,ri,R,_)}}switch(Fe?r.assign(xe):V?r.Uu(ue.x,ue.y,ue.width,ue.height):Pr(r,xe.x,xe.y,xe.width,xe.height),Zt.free(xe),Zt.free(ue),f=u.stretch,f===er&&(f=_l(u,!1)),f){case En:return;case Tn:if(!isFinite(t)&&!isFinite(n))return;break;case bi:if(!isFinite(t))return;break;case Di:if(!isFinite(n))return}for(N=u.measuredBounds,o=N.width,a=N.height,R=Math.max(o+p,0),_=Math.max(a+x,0),f=u.margin,ue=Zt.allocAt(-f.left,-f.top,R,_),Eg(u,ue,!0),o=ue.width,a=ue.height,t=0;t<l;t++)n=i[t],n===u||!n.visible&&n!==Ue||(f=n.margin,R=f.right+f.left,_=f.top+f.bottom,N=n.measuredBounds,R=Math.max(N.width+R,0),_=Math.max(N.height+_,0),p=n.alignment,p.Xb()&&(p=e.defaultAlignment),p.sb()||(p=Rr),n=n.alignmentFocus,n.Xb()&&(n=Rr),Fe?(Fe=!1,r.h(p.x*o+p.offsetX-(n.x*N.width+n.offsetX)-f.left,p.y*a+p.offsetY-(n.y*N.height+n.offsetY)-f.top,R,_)):Pr(r,p.x*o+p.offsetX-(n.x*N.width+n.offsetX)-f.left,p.y*a+p.offsetY-(n.y*N.height+n.offsetY)-f.top,R,_));Fe?r.assign(xe):V?r.Uu(ue.x,ue.y,ue.width,ue.height):Pr(r,xe.x,xe.y,xe.width,xe.height),Zt.free(ue)},A0.prototype.arrange=function(e,t,n){var i=t.length,r=e.Pb(),o=r.measuredBounds,a=o.width,l=o.height,u=e.padding;o=u.left,u=u.top;var f=o-n.x,p=u-n.y;for(r.arrange(f,p,a,l),a=Zt.allocAt(0,0,a,l),Eg(r,a,!1),l=0;l<i;l++){var x=t[l];if(x!==r){f=x.measuredBounds;var N=f.width,R=f.height;p=x.alignment,p.Xb()&&(p=e.defaultAlignment),p.sb()||(p=Rr);var _=x.alignmentFocus;if(_.Xb()&&(_=Rr),f=null,x instanceof kn&&x.$e!==""&&(f=x.fb(x.$e),f===x&&(f=null)),f!==null){var V=f.actualBounds;for(_=he.allocAt(V.x+(_.x*V.width-_.offsetX),V.y+(_.y*V.height-_.offsetY)),f=f.panel;f!==x;)f.transform.Ga(_),f=f.panel;f=p.x*a.width+p.offsetX-_.x,p=p.y*a.height+p.offsetY-_.y,he.free(_)}else f=p.x*a.width+p.offsetX-(_.x*N+_.offsetX),p=p.y*a.height+p.offsetY-(_.y*R+_.offsetY);f+=a.x-n.x,p+=a.y-n.y,x.visible&&x.arrange(o+f,u+p,N,R)}}Zt.free(a)};function Eg(e,t,n){var i=null;if(e instanceof kn&&e.$e!==""&&(i=e.fb(e.$e),i===e&&(i=null)),i!==null)for(n&&e.arrange(0,0,t.width,t.height),t.assign(i.actualBounds),i=i.panel;i!==e;)i.transform.pp(t),i=i.panel}function k0(){this.xa="Base"}yi(k0,ts),k0.prototype.measure=function(e,t,n,i,r,o,a){var l=i.length,u=e.Pb(),f=u.margin,p=t,x=n,N=f.right+f.left,R=f.top+f.bottom;u.measure(t,n,o,a),f=u.measuredBounds;var _=0,V=null;u instanceof lr&&(V=u,_=V.strokeWidth*V.scale);var xe=Math.max(f.width+N,0);f=Math.max(f.height+R,0);var ue=Ng(u),Fe=ue.x*xe+ue.offsetX;ue=ue.y*f+ue.offsetY;var Ue=Ag(u),We=Ue.x*xe+Ue.offsetX;for(Ue=Ue.y*f+Ue.offsetY,isFinite(t)&&(p=Math.max(Math.abs(Fe-We)-_,0)),isFinite(n)&&(x=Math.max(Math.abs(ue-Ue)-_,0)),_=pi.alloc(),_.h(0,0),e=th(e),Ue=0;Ue<l;Ue++)ue=i[Ue],ue===u||!ue.visible&&ue!==e||(f=ue.margin,xe=f.right+f.left,Fe=f.top+f.bottom,ue.measure(p,x,0,0),f=ue.measuredBounds,xe=Math.max(f.width+xe,0),f=Math.max(f.height+Fe,0),_.h(Math.max(xe,_.width),Math.max(f,_.height)));if(l===1)r.width=xe,r.height=f,pi.free(_);else{switch(ue=Ng(u),Ue=Ag(u),l=i=0,Ue.x!==ue.x&&Ue.y!==ue.y&&(i=_.width/Math.abs(Ue.x-ue.x),l=_.height/Math.abs(Ue.y-ue.y)),pi.free(_),_=0,V!==null&&(_=V.strokeWidth*V.scale,Rg(V)===ci&&(i=l=Math.max(i,l))),i+=Math.abs(ue.offsetX)+Math.abs(Ue.offsetX)+_,l+=Math.abs(ue.offsetY)+Math.abs(Ue.offsetY)+_,V=u.stretch,V===er&&(V=_l(u,!1)),V){case En:a=o=0;break;case Tn:isFinite(t)&&(i=t),isFinite(n)&&(l=n);break;case bi:isFinite(t)&&(i=t),a=0;break;case Di:o=0,isFinite(n)&&(l=n)}u.Uj(),u.measure(i,l,o,a),r.width=u.measuredBounds.width+N,r.height=u.measuredBounds.height+R}},k0.prototype.arrange=function(e,t){var n=t.length,i=e.Pb(),r=i.measuredBounds,o=Zt.alloc();o.h(0,0,1,1);var a=i.margin,l=a.left;a=a.top;var u=e.padding,f=u.left;u=u.top,i.arrange(f+l,u+a,r.width,r.height);var p=Ng(i),x=Ag(i),N=p.y*r.height+p.offsetY,R=x.x*r.width+x.offsetX;for(x=x.y*r.height+x.offsetY,o.x=p.x*r.width+p.offsetX,o.y=N,Pr(o,R,x,0,0),o.x+=l+f,o.y+=a+u,r=0;r<n;r++)l=t[r],l!==i&&(f=l.measuredBounds,a=l.margin,u=Math.max(f.width+a.right+a.left,0),p=Math.max(f.height+a.top+a.bottom,0),N=l.alignment,N.Xb()&&(N=e.defaultAlignment),N.sb()||(N=Rr),u=o.width*N.x+N.offsetX-u*N.x+a.left+o.x,a=o.height*N.y+N.offsetY-p*N.y+a.top+o.y,l.visible&&(co(o.x,o.y,o.width,o.height,u,a,f.width,f.height)?l.arrange(u,a,f.width,f.height):l.arrange(u,a,f.width,f.height,new Zt(o.x,o.y,o.width,o.height))));Zt.free(o)};function I0(){this.xa="Base",this.name="Table"}yi(I0,ts),I0.prototype.measure=function(e,t,n,i,r){for(var o=i.length,a=Rt(),l=Rt(),u=0;u<o;u++){var f=i[u],p=f instanceof kn?f:null;if(p!==null&&yh(p)&&f.visible){l.push(p);for(var x=p.O.s,N=x.length,R=0;R<N;R++){var _=x[R];p.type===kn.TableRow?_.row=f.row:p.type===kn.TableColumn&&(_.column=f.column),a.push(_)}}else a.push(f)}o=a.length,o===0&&(e.Fb(0),e.Eb(0));for(var V=[],xe=0;xe<o;xe++){var ue=a[xe];ue.visible&&(Ya(ue,!0),Fc(ue,!0),V[ue.row]||(V[ue.row]=[]),V[ue.row][ue.column]||(V[ue.row][ue.column]=[]),V[ue.row][ue.column].push(ue))}Jt(a);var Fe=Rt(),Ue=Rt(),We=Rt(),rt={count:0},At={count:0},Kn=t,ri=n,qn=e.rowDefs,Rn=e.colDefs,mn=null;o=qn.length;for(var Ji=0;Ji<o;Ji++)mn=qn[Ji],mn!==void 0&&(mn.actual=0);o=Rn.length;for(var Wi=0;Wi<o;Wi++)mn=Rn[Wi],mn!==void 0&&(mn.actual=0);for(var Jr=V.length,Io=0,hs=0;hs<Jr;hs++)V[hs]&&(Io=Math.max(Io,V[hs].length));var gs=Math.min(e.topIndex,Jr-1),ul=Math.min(e.leftIndex,Io-1),ds=0;Jr=V.length;for(var kh=th(e),_a=0;_a<Jr;_a++)if(V[_a]){Io=V[_a].length;var yc=e.Fb(_a);yc.actual=0;for(var cl=yc.oc=0;cl<Io;cl++)if(V[_a][cl]){var Ih=e.Eb(cl);Fe[cl]===void 0&&(Ih.actual=0,Ih.oc=0,Fe[cl]=!0);for(var wu=V[_a][cl],Vu=wu.length,su=0;su<Vu;su++){var Yl=wu[su];if(Yl.visible||Yl===kh){var nd=1<Yl.rowSpan||1<Yl.columnSpan;nd&&(_a<gs||cl<ul||Ue.push(Yl));var bc=Yl.margin,Vf=bc.right+bc.left,lu=bc.top+bc.bottom,hl=fc(Yl,yc,Ih,!1),r0=Yl.desiredSize,ef=!isNaN(r0.height),Oc=!isNaN(r0.width)&&ef;if(nd||hl===En||Oc||_a<gs||cl<ul||(rt[cl]!==void 0||hl!==Tn&&hl!==bi||(rt[cl]=-1,rt.count++),At[_a]!==void 0||hl!==Tn&&hl!==Di||(At[_a]=-1,At.count++),We.push(Yl)),Yl.measure(1/0,1/0,0,0),!(_a<gs||cl<ul)){var Xl=Yl.measuredBounds,Ad=Math.max(Xl.width+Vf,0),uu=Math.max(Xl.height+lu,0);if(Yl.rowSpan===1&&(hl===En||hl===bi)){mn=e.Fb(_a);var id=mn.Wc();ds=Math.max(uu-mn.actual,0),ds+id>ri&&(ds=Math.max(ri-id,0));var Jm=mn.oa===0;mn.oc=mn.oc+ds,mn.actual=mn.oa+ds,ri=Math.max(ri-(ds+(Jm?id:0)),0)}if(Yl.columnSpan===1&&(hl===En||hl===Di)){mn=e.Eb(cl);var o0=mn.Wc();ds=Math.max(Ad-mn.actual,0),ds+o0>Kn&&(ds=Math.max(Kn-o0,0));var Yv=mn.oa===0;mn.oc=mn.oc+ds,mn.actual=mn.oa+ds,Kn=Math.max(Kn-(ds+(Yv?o0:0)),0)}nd&&Yl.Uj()}}}}}Jt(Fe);var Kc=0,rh=0;o=e.columnCount;for(var tf=0;tf<o;tf++){var rd=Rn[tf];rd!==void 0&&(Kc+=isNaN(rd.Hc)?rd.oc:rd.Hc,rd.oc!==0&&(Kc+=rd.Wc()))}o=e.rowCount;for(var Kf=0;Kf<o;Kf++){var od=qn[Kf];od!==void 0&&(rh+=isNaN(od.Hc)?od.oc:od.Hc,od.oc!==0&&(rh+=od.Wc()))}Kn=Math.max(t-Kc,0);var Zc=ri=Math.max(n-rh,0),Mh=Kn;o=We.length;for(var Ql=0;Ql<o;Ql++){var Lc=We[Ql],qm=e.Fb(Lc.row),oh=e.Eb(Lc.column),Zf=Lc.measuredBounds,xc=Lc.margin,kd=xc.right+xc.left,Rc=xc.top+xc.bottom;rt[Lc.column]=oh.oc===0&&rt[Lc.column]!==void 0?Math.max(Zf.width+kd,rt[Lc.column]):null,At[Lc.row]=qm.oc===0&&At[Lc.row]!==void 0?Math.max(Zf.height+Rc,At[Lc.row]):null}var nf=0,Yf=0,uc;for(uc in At)uc!=="count"&&(nf+=At[uc]);for(uc in rt)uc!=="count"&&(Yf+=rt[uc]);for(var Is=pi.alloc(),a0=0;a0<o;a0++){var Ol=We[a0];if(Ol.visible||Ol===kh){var za=e.Fb(Ol.row),Ll=e.Eb(Ol.column),ah=0;isFinite(Ll.width)?ah=Ll.width:(isFinite(Kn)&&rt[Ol.column]!==null?Yf===0?ah=Ll.actual+Kn:ah=rt[Ol.column]/Yf*Mh:rt[Ol.column]!==null?ah=Kn:ah=Ll.actual||Kn,ah=Math.max(0,ah-Ll.Wc()));var Oh=0;switch(isFinite(za.height)?Oh=za.height:(isFinite(ri)&&At[Ol.row]!==null?nf===0?Oh=za.actual+ri:Oh=At[Ol.row]/nf*Zc:At[Ol.row]!==null?Oh=ri:Oh=za.actual||ri,Oh=Math.max(0,Oh-za.Wc())),Is.h(Math.max(Ll.minimum,Math.min(ah,Ll.maximum)),Math.max(za.minimum,Math.min(Oh,za.maximum))),hl=fc(Ol,za,Ll,!1),hl){case bi:Is.height=Math.max(Is.height,za.actual+ri);break;case Di:Is.width=Math.max(Is.width,Ll.actual+Kn)}var Id=Ol.margin,Xv=Id.right+Id.left,eg=Id.top+Id.bottom;Ol.Uj(),Ol.measure(Is.width,Is.height,Ll.minimum,za.minimum);var Xf=Ol.measuredBounds,Md=Math.max(Xf.width+Xv,0),rf=Math.max(Xf.height+eg,0);isFinite(Kn)&&(Md=Math.min(Md,Is.width)),isFinite(ri)&&(rf=Math.min(rf,Is.height));var Jl=0;Jl=za.actual,za.actual=Math.max(za.actual,rf),za.oc=Math.max(za.oc,rf),ds=za.actual-Jl,ri=Math.max(ri-ds,0),At[Ol.row]===null&&(Zc=Math.max(Zc-ds,0)),Jl=Ll.actual,Ll.actual=Math.max(Ll.actual,Md),Ll.oc=Math.max(Ll.oc,Md),ds=Ll.actual-Jl,Kn=Math.max(Kn-ds,0),rt[Ol.column]===null&&(Mh=Math.max(Mh-ds,0))}}Jt(We);var sh=pi.alloc(),Sc=Rt(),_u=Rt();if(o=Ue.length,o!==0){for(var ad=0;ad<Jr;ad++)if(V[ad]){Io=V[ad].length;var Qf=e.Fb(ad);Sc[ad]=Qf.actual;for(var sd=0;sd<Io;sd++)if(V[ad][sd]){var tg=e.Eb(sd);_u[sd]=tg.actual}}}for(var Jf=0;Jf<o;Jf++){var Da=Ue[Jf];if(Da.visible||Da===kh){var cc=e.Fb(Da.row),Ku=e.Eb(Da.column);switch(Is.h(Math.max(Ku.minimum,Math.min(t,Ku.maximum)),Math.max(cc.minimum,Math.min(n,cc.maximum))),hl=fc(Da,cc,Ku,!1),hl){case Tn:_u[Ku.index]!==0&&(Is.width=Math.min(Is.width,_u[Ku.index])),Sc[cc.index]!==0&&(Is.height=Math.min(Is.height,Sc[cc.index]));break;case bi:_u[Ku.index]!==0&&(Is.width=Math.min(Is.width,_u[Ku.index]));break;case Di:Sc[cc.index]!==0&&(Is.height=Math.min(Is.height,Sc[cc.index]))}isFinite(Ku.width)&&(Is.width=Ku.width),isFinite(cc.height)&&(Is.height=cc.height),sh.h(0,0);for(var ng=Ku.minimum,cu=cc.minimum,Lh=1;Lh<Da.rowSpan&&!(Da.row+Lh>=e.rowCount);Lh++)mn=e.Fb(Da.row+Lh),ds=0,ds=hl===Tn||hl===Di?Math.max(mn.minimum,Sc[Da.row+Lh]===0?mn.maximum:Math.min(Sc[Da.row+Lh],mn.maximum)):Math.max(mn.minimum,isNaN(mn.Hc)?mn.maximum:Math.min(mn.Hc,mn.maximum)),sh.height+=ds,cu+=mn.minimum;for(var Zu=1;Zu<Da.columnSpan&&!(Da.column+Zu>=e.columnCount);Zu++)mn=e.Eb(Da.column+Zu),ds=0,ds=hl===Tn||hl===bi?Math.max(mn.minimum,_u[Da.column+Zu]===0?mn.maximum:Math.min(_u[Da.column+Zu],mn.maximum)):Math.max(mn.minimum,isNaN(mn.Hc)?mn.maximum:Math.min(mn.Hc,mn.maximum)),sh.width+=ds,ng+=mn.minimum;Is.width+=sh.width,Is.height+=sh.height;var qf=Da.margin,ld=qf.right+qf.left,s0=qf.top+qf.bottom;Da.measure(Is.width,Is.height,ng,cu);for(var ep=Da.measuredBounds,Dc=Math.max(ep.width+ld,0),Od=Math.max(ep.height+s0,0),ud=0,tp=0;tp<Da.rowSpan&&!(Da.row+tp>=e.rowCount);tp++)mn=e.Fb(Da.row+tp),ud+=mn.total||0;if(ud<Od){var Rh=Od-ud,Yc=Od-ud;if(Da.spanAllocation!==null)for(var Dh=Da.spanAllocation,lh=0;lh<Da.rowSpan&&!(0>=Rh)&&!(Da.row+lh>=e.rowCount);lh++){mn=e.Fb(Da.row+lh);var Ph=mn.oa||0,Ld=Dh(Da,mn,Yc);mn.actual=Math.min(mn.maximum,Ph+Ld),mn.oa!==Ph&&(Rh-=mn.oa-Ph)}for(;0<Rh;){var Ec=mn.oa||0;if(isNaN(mn.height)&&mn.maximum>Ec&&(mn.actual=Math.min(mn.maximum,Ec+Rh),mn.oa!==Ec&&(Rh-=mn.oa-Ec)),mn.index===0)break;mn=e.Fb(mn.index-1)}}for(var of=0,Fh=0;Fh<Da.columnSpan&&!(Da.column+Fh>=e.columnCount);Fh++)mn=e.Eb(Da.column+Fh),of+=mn.total||0;if(of<Dc){var af=Dc-of,Qv=Dc-of;if(Da.spanAllocation!==null)for(var uh=Da.spanAllocation,Rd=0;Rd<Da.columnSpan&&!(0>=af)&&!(Da.column+Rd>=e.columnCount);Rd++){mn=e.Eb(Da.column+Rd);var l0=mn.oa||0,Jv=uh(Da,mn,Qv);mn.actual=Math.min(mn.maximum,l0+Jv),mn.oa!==l0&&(af-=mn.oa-l0)}for(;0<af;){var ig=mn.oa||0;if(isNaN(mn.width)&&mn.maximum>ig&&(mn.actual=Math.min(mn.maximum,ig+af),mn.oa!==ig&&(af-=mn.oa-ig)),mn.index===0)break;mn=e.Eb(mn.index-1)}}}}Jt(Ue),pi.free(sh),pi.free(Is),Sc!==void 0&&Jt(Sc),_u!==void 0&&Jt(_u);var sf=0,lf=0,rg=e.desiredSize,Tb=e.maxSize;hl=_l(e,!0);var u0=rh=Kc=0,c0=0;o=e.columnCount;for(var og=0;og<o;og++)Rn[og]!==void 0&&(mn=e.Eb(og),isFinite(mn.width)?(u0+=mn.width,u0+=mn.Wc()):z0(mn)===Sp?(u0+=mn.oa,u0+=mn.Wc()):mn.oa!==0&&(Kc+=mn.oa,Kc+=mn.Wc()));isFinite(rg.width)?sf=Math.min(rg.width,Tb.width):sf=hl!==En&&isFinite(t)?t:Kc,sf=Math.max(sf,e.minSize.width),sf=Math.max(sf-u0,0);for(var hx=Kc===0?1:Math.max(sf/Kc,1),ag=0;ag<o;ag++)Rn[ag]!==void 0&&(mn=e.Eb(ag),isFinite(mn.width)||z0(mn)===Sp||(mn.actual=mn.oa*hx),mn.position=r.width,mn.oa!==0&&(r.width+=mn.oa,r.width+=mn.Wc()));o=e.rowCount;for(var sg=0;sg<o;sg++)qn[sg]!==void 0&&(mn=e.Fb(sg),isFinite(mn.height)?(c0+=mn.height,c0+=mn.Wc()):z0(mn)===Sp?(c0+=mn.oa,c0+=mn.Wc()):mn.oa!==0&&(rh+=mn.oa,rh+=mn.Wc()));isFinite(rg.height)?lf=Math.min(rg.height,Tb.height):lf=hl!==En&&isFinite(n)?n:rh,lf=Math.max(lf,e.minSize.height),lf=Math.max(lf-c0,0);for(var dx=rh===0?1:Math.max(lf/rh,1),lg=0;lg<o;lg++)qn[lg]!==void 0&&(mn=e.Fb(lg),isFinite(mn.height)||z0(mn)===Sp||(mn.actual=mn.oa*dx),mn.position=r.height,mn.oa!==0&&(r.height+=mn.oa,r.height+=mn.Wc()));o=l.length;for(var qv=0;qv<o;qv++){var h0=l[qv],ey=0,ty=0;h0.type===kn.TableRow?(ey=r.width,mn=e.Fb(h0.row),ty=mn.actual):(mn=e.Eb(h0.column),ey=mn.actual,ty=r.height),h0.measuredBounds.h(0,0,ey,ty),Ya(h0,!1)}Jt(l),e.inRowsCols=V},I0.prototype.arrange=function(e,t,n){var i=t.length,r=e.padding,o=r.left;r=r.top;var a=e.inRowsCols;if(a!==null){for(var l,u,f=a.length,p=0,x=0;x<f;x++)a[x]&&(p=Math.max(p,a[x].length));u=e.rowDefs,l=e.colDefs;var N=x=0,R=Math.min(e.topIndex,f-1);if(0<u.length){for(;R!==f&&(u[R]===void 0||u[R].oa===0);)R++;R=Math.max(Math.min(R,f-1),0),x=-u[R].position}var _=Math.min(e.leftIndex,p-1);if(0<l.length){for(;_!==p&&(l[_]===void 0||l[_].oa===0);)_++;_=Math.max(Math.min(_,p-1),0),N=-l[_].position}for(var V=0,xe=0;V!==f&&u[V]===void 0;)V++;for(;xe!==f&&l[xe]===void 0;)xe++;p=e.part,e.Fb(V),e.Eb(xe);for(var ue=0;ue<t.length;ue++){var Fe=t[ue];if(Fe instanceof kn&&Fe.visible&&yh(Fe)){if(Fe.type===kn.TableRow){l=e.Fb(Fe.row);var Ue=e.Eb(xe)}else l=e.Fb(V),Ue=e.Eb(Fe.column);u=l.position+x+r,l.oa!==0&&(u+=l.Io(Math.max(V,R))),l=Ue.position+N+o,Ue.oa!==0&&(l+=Ue.Io(Math.max(xe,_))),Ue=Fe.measuredBounds,Fe.Uk(),Fe.actualBounds.ka();var We=Fe.actualBounds,rt=Zt.allocAt(We.x,We.y,We.width,We.height);We.x=Fe.type===kn.TableRow?o:l,We.y=Fe.type===kn.TableColumn?r:u,We.width=Ue.width,We.height=Ue.height,Fe.actualBounds.freeze(),Fc(Fe,!1),uo(rt,We)||p===null||(p.oh(),Fe.Pn(p)),Zt.free(rt)}}for(ue=pi.alloc(),Fe=0;Fe<f;Fe++)if(a[Fe]){for(p=a[Fe].length,Ue=e.Fb(Fe),u=Ue.position+x+r,Ue.oa!==0&&(u+=Ue.Io(Math.max(V,R))),We=0;We<p;We++)if(a[Fe][We]){rt=e.Eb(We),l=rt.position+N+o,rt.oa!==0&&(l+=rt.Io(Math.max(xe,_)));for(var At=a[Fe][We],Kn=At.length,ri=0;ri<Kn;ri++){var qn=At[ri],Rn=qn.measuredBounds;ue.h(0,0);for(var mn=1;mn<qn.rowSpan&&!(Fe+mn>=e.rowCount);mn++){var Ji=e.Fb(Fe+mn);Ji.oa!==0&&(ue.height+=Ji.total)}for(mn=1;mn<qn.columnSpan&&!(We+mn>=e.columnCount);mn++)Ji=e.Eb(We+mn),Ji.oa!==0&&(ue.width+=Ji.total);var Wi=rt.oa+ue.width,Jr=Ue.oa+ue.height;mn=l,Ji=u;var Io=Wi,hs=Jr,gs=l,ul=u,ds=Wi,kh=Jr;l+Wi>n.width&&(ds=Math.max(n.width-l,0)),u+Jr>n.height&&(kh=Math.max(n.height-u,0));var _a=qn.alignment;if(_a.Xb()){_a=e.defaultAlignment,_a.sb()||(_a=Rr);var yc=_a.x,cl=_a.y,Ih=_a.offsetX;_a=_a.offsetY;var wu=rt.alignment,Vu=Ue.alignment;wu.sb()&&(yc=wu.x,Ih=wu.offsetX),Vu.sb()&&(cl=Vu.y,_a=Vu.offsetY)}else yc=_a.x,cl=_a.y,Ih=_a.offsetX,_a=_a.offsetY;(isNaN(yc)||isNaN(cl))&&(cl=yc=.5,_a=Ih=0),wu=Rn.width,Vu=Rn.height;var su=qn.margin,Yl=su.left+su.right,nd=su.top+su.bottom,bc=fc(qn,Ue,rt,!1);!isNaN(qn.desiredSize.width)||bc!==Tn&&bc!==bi||(wu=Math.max(Wi-Yl,0)),!isNaN(qn.desiredSize.height)||bc!==Tn&&bc!==Di||(Vu=Math.max(Jr-nd,0)),Wi=qn.maxSize,Jr=qn.minSize,wu=Math.min(Wi.width,wu),Vu=Math.min(Wi.height,Vu),wu=Math.max(Jr.width,wu),Vu=Math.max(Jr.height,Vu),Wi=Vu+nd,mn+=Io*yc-(wu+Yl)*yc+Ih+su.left,Ji+=hs*cl-Wi*cl+_a+su.top,qn.visible&&(co(gs,ul,ds,kh,mn,Ji,Rn.width,Rn.height)?qn.arrange(mn,Ji,wu,Vu):qn.arrange(mn,Ji,wu,Vu,new Zt(gs,ul,ds,kh)))}}}for(pi.free(ue),e=0;e<i;e++)n=t[e],o=n instanceof kn?n:null,o!==null&&yh(o)&&(o=n.actualBounds,n.naturalBounds.ka(),n.naturalBounds.h(0,0,o.width,o.height),n.naturalBounds.freeze())}};function M0(){this.xa="Base"}yi(M0,ts),M0.prototype.measure=function(){},M0.prototype.arrange=function(){};function O0(){this.xa="Base"}yi(O0,ts),O0.prototype.measure=function(){},O0.prototype.arrange=function(){};function L0(){this.xa="Base"}yi(L0,ts),L0.prototype.measure=function(e,t,n,i,r,o,a){1<i.length&&Ve("Viewbox Panel cannot contain more than one GraphObject."),i=i[0],i.Ca=1,i.Uj(),i.measure(1/0,1/0,o,a);var l=i.measuredBounds,u=i.margin,f=u.right+u.left;if(u=u.top+u.bottom,isFinite(t)||isFinite(n)){var p=i.scale,x=l.width;l=l.height;var N=Math.max(t-f,0),R=Math.max(n-u,0),_=1;e.viewboxStretch===ci?x!==0&&l!==0&&(_=Math.min(N/x,R/l)):x!==0&&l!==0&&(_=Math.max(N/x,R/l)),_===0&&(_=1e-4),i.Ca*=_,p!==i.scale&&(Ya(i,!0),i.measure(1/0,1/0,o,a))}l=i.measuredBounds,r.width=isFinite(t)?t:Math.max(l.width+f,0),r.height=isFinite(n)?n:Math.max(l.height+u,0)},L0.prototype.arrange=function(e,t,n){t=t[0];var i=t.measuredBounds,r=t.margin,o=Math.max(i.width+(r.right+r.left),0);r=Math.max(i.height+(r.top+r.bottom),0);var a=t.alignment;a.Xb()&&(a=e.defaultAlignment),a.sb()||(a=Rr),t.arrange(n.width*a.x-o*a.x+a.offsetX,n.height*a.y-r*a.y+a.offsetY,i.width,i.height)};function yp(){this.xa="Base"}yi(yp,ts),yp.prototype.measure=function(){},yp.prototype.arrange=function(){},yp.prototype.gc=function(e,t,n){n=e.Df()*n.scale,0>=n&&(n=1);var i=e.gridCellSize,r=i.width;i=i.height;var o=e.naturalBounds,a=e.actualBounds,l=o.width,u=o.height,f=Math.ceil(l/r),p=Math.ceil(u/i),x=e.gridOrigin,N=x.x;x=x.y,t.save(),t.beginPath(),t.rect(0,0,l,u),t.clip(),t.Se();for(var R=[],_=e.O.s,V=_.length,xe=0;xe<V;xe++){var ue=_[xe],Fe=[];if(R.push(Fe),ue.visible){var Ue=ue.interval;if(!(0>Ue)){ue=Cg(ue.figure);for(var We=0;We<V;We++)if(We!==xe){var rt=_[We];rt.visible&&Cg(rt.figure)===ue&&(rt=rt.interval,rt>Ue&&Fe.push(rt))}}}}for(_=e.O.s,V=_.length,xe=0;xe<V;xe++){var At=_[xe];if(At.visible&&(Fe=At.interval||1,ue=Math.abs(Fe),!(2>r*ue*n))){if(Ue=At.segmentIndex,(!isFinite(Ue)||isNaN(Ue))&&(Ue=0),0>Ue&&(Ue=ue-Math.min(-Ue,ue)),Ue=Math.round(Ue%ue),ue=At.opacity,We=1,ue!==1){if(ue===0)continue;We=t.globalAlpha,t.globalAlpha=We*ue}rt=R[xe];var Kn=!1,ri=At.strokeDashArray;if(ri!==null&&(Kn=!0,t.js(ri,At.strokeDashOffset)),At.figure==="LineV"&&At.stroke!==null&&0<At.strokeWidth){for(t.lineWidth=At.strokeWidth,Aa(e,t,At.stroke,!1,!1,o,a),t.beginPath(),ri=At=Math.floor((N-r)/r);ri<=At+f;ri++){var qn=ri*r+N;0<=qn&&qn<=l&&R0(ri,Fe,Ue,rt)&&(t.moveTo(qn,0),t.lineTo(qn,u))}t.stroke(),t.Se()}else if(At.figure==="LineH"&&At.stroke!==null&&0<At.strokeWidth){for(t.lineWidth=At.strokeWidth,Aa(e,t,At.stroke,!1,!1,o,a),t.beginPath(),ri=At=Math.floor((x-i)/i);ri<=At+p;ri++)qn=ri*i+x,0<=qn&&qn<=u&&R0(ri,Fe,Ue,rt)&&(t.moveTo(0,qn),t.lineTo(l,qn));t.stroke(),t.Se()}else if(At.figure==="BarV"&&At.fill!==null)for(Aa(e,t,At.fill,!0,!1,o,a),At=At.width,isNaN(At)&&(At=r),qn=ri=Math.floor((N-r)/r);qn<=ri+f;qn++){var Rn=qn*r+N;0<=Rn+At&&Rn<=l&&R0(qn,Fe,Ue,rt)&&t.fillRect(Rn,0,At,u)}else if(At.figure==="BarH"&&At.fill!==null)for(Aa(e,t,At.fill,!0,!1,o,a),At=At.height,isNaN(At)&&(At=i),qn=ri=Math.floor((x-i)/i);qn<=ri+p;qn++)Rn=qn*i+x,0<=Rn+At&&Rn<=u&&R0(qn,Fe,Ue,rt)&&t.fillRect(0,Rn,l,At);Kn&&t.fs(),ue!==1&&(t.globalAlpha=We)}}t.restore(),t.Vc(!1)};function R0(e,t,n,i){if(0>t)return e%t===n;if(e%t!==n)return!1;t=i.length;for(var r=0;r<t;r++)if(e%i[r]===n)return!1;return!0}function D0(){this.xa="Base"}yi(D0,ts),D0.prototype.measure=function(e,t,n,i,r){var o=i.length;if(e instanceof Zr||e instanceof Pn){var a=null,l=null;if(e instanceof Pn&&(a=e),e instanceof Zr&&(l=e,a=l.adornedPart,e.j===null&&(e.j=[])),a instanceof Pn){var u=a;if(o===0)Pa(e.naturalBounds,0,0),e.measuredBounds.h(0,0,0,0);else{var f=e instanceof Zr?null:a.path;t=a.routeBounds,n=e.jg,n.h(0,0,t.width,t.height);var p=u.points,x=a.pointsCount;l!==null?l.Ul(!1):a!==null&&a.Ul(!1),l=t.width;var N=t.height,R=e.j;if(R.length=0,f!==null){py(e,l,N,f);var _=f.measuredBounds;n.ed(_),R.push(_)}_=nr.alloc();for(var V=he.alloc(),xe=he.alloc(),ue=0;ue<o;ue++){var Fe=i[ue];if(Fe!==f)if(Fe.isPanelMain&&Fe instanceof lr){py(e,l,N,Fe);var Ue=Fe.measuredBounds;n.ed(Ue),R.push(Ue)}else if(2>x)Fe.measure(1/0,1/0,0,0),Ue=Fe.measuredBounds,n.ed(Ue),R.push(Ue);else{var We=Fe.segmentIndex,rt=Fe.segmentFraction,At=Fe.alignmentFocus;At.Mc()&&(At=Rr);var Kn=Fe.segmentOrientation,ri=Fe.segmentOffset;if(isNaN(We)){var qn=u.ua;Ue=Rt(),qn.Qu(rt,Ue);var Rn=he.allocAt(Ue[0],Ue[1]);if(Rn.add(u.i(0)),qn.type===Dn.j?Rn.offset(-qn.startX,-qn.startY):(qn=qn.figures.first(),qn!==null&&Rn.offset(-qn.startX,-qn.startY)),qn=Ue[2],Kn!==Nl){var mn=u.computeAngle(Fe,Kn,qn);Fe.Kb=mn}mn=Rn.x-t.x;var Ji=Rn.y-t.y;he.free(Rn),Jt(Ue)}else if(We<-x||We>=x)Ue=he.alloc(),u.vg(),u.computeMidPoint(Ue),qn=u.midAngle,Kn!==Nl&&(mn=u.computeAngle(Fe,Kn,qn),Fe.Kb=mn),mn=Ue.x-t.x,Ji=Ue.y-t.y,he.free(Ue);else{if(mn=0,0<=We?(Ji=p.M(We),Ue=We<x-1?p.M(We+1):Ji):(mn=x+We,Ji=p.M(mn),Ue=0<mn?p.M(mn-1):Ji),Ji.Xa(Ue)){0<=We?(qn=0<We?p.M(We-1):Ji,mn=We<x-2?p.M(We+2):Ue):(qn=mn<x-1?p.M(mn+1):Ji,mn=1<mn?p.M(mn-2):Ue),Rn=qn.Bf(Ji);var Wi=Ue.Bf(mn);qn=Rn>Wi+10?0<=We?qn.ab(Ji):Ji.ab(qn):Wi>Rn+10?0<=We?Ue.ab(mn):mn.ab(Ue):0<=We?qn.ab(mn):mn.ab(qn)}else qn=0<=We?Ji.ab(Ue):Ue.ab(Ji);Kn!==Nl&&(mn=u.computeAngle(Fe,Kn,qn),Fe.Kb=mn),mn=Ji.x+(Ue.x-Ji.x)*rt-t.x,Ji=Ji.y+(Ue.y-Ji.y)*rt-t.y}Fe.measure(1/0,1/0,0,0),Ue=Fe.measuredBounds,Rn=Fe.naturalBounds;var Jr=0;Fe instanceof lr&&(Jr=Fe.strokeWidth),Wi=Rn.width+Jr;var Io=Rn.height+Jr;_.reset(),_.translate(-Ue.x,-Ue.y),_.scale(Fe.scale,Fe.scale),_.rotate(Kn===Nl?Fe.angle:qn,Wi/2,Io/2),Kn!==Op&&Kn!==Rp||_.rotate(90,Wi/2,Io/2),Kn!==Lp&&Kn!==Dp||_.rotate(-90,Wi/2,Io/2),Kn===cm&&(45<qn&&135>qn||225<qn&&315>qn)&&_.rotate(-qn,Wi/2,Io/2),Rn=new Zt(0,0,Wi,Io),V.xi(Rn,At),_.Ga(V),At=-V.x+Jr/2*Fe.scale,Fe=-V.y+Jr/2*Fe.scale,xe.assign(ri),Jr=isNaN(ri.x);var hs=isNaN(ri.y);if(Jr||hs){Wi=Wi/2+3,Io=Io/2+3;var gs=45<=qn&&135>=qn,ul=225<=qn&&315>=qn;Kn===Nl&&(gs||ul)?(xe.x=hs?Wi:ri.y,xe.y=Jr?Io:ri.x,gs?0<=We||isNaN(We)&&.5>rt||!Jr||(xe.y=-Io):ul&&((0<=We||isNaN(We)&&.5>rt)&&Jr&&(xe.y=-Io),hs&&(xe.x=-Wi))):(Jr&&(xe.x=0<=We||isNaN(We)&&.5>rt?Wi:-Wi),hs&&(xe.y=-Io),xe.rotate(qn))}else xe.rotate(qn);mn+=xe.x,Ji+=xe.y,Rn.set(Ue),Rn.h(mn+At,Ji+Fe,Ue.width,Ue.height),R.push(Rn),n.ed(Rn)}}if(a!==null)for(i=a.labelNodes;i.next();)i.value.measure(1/0,1/0);e.jg=n,e.position.h(t.x+n.x,t.y+n.y),Pa(r,n.width||0,n.height||0),nr.free(_),he.free(V),he.free(xe)}}}},D0.prototype.arrange=function(e,t){var n=t.length;if(e instanceof Zr||e instanceof Pn){var i=e,r=null;e instanceof Zr&&(r=e,i=r.adornedPart);var o=e instanceof Zr?null:i.path,a=e.j;if(a.length!==0){var l=0;if(o!==null&&l<a.length){var u=a[l];l++,o.arrange(u.x-e.jg.x,u.y-e.jg.y,u.width,u.height)}for(u=0;u<n;u++){var f=t[u];if(f!==o&&l<a.length){var p=a[l];l++,f.arrange(p.x-e.jg.x,p.y-e.jg.y,p.width,p.height)}}}if(t=i.points,n=t.count,2<=n&&e instanceof Pn)for(o=e.labelNodes;o.next();){var x=e;a=o.value,l=a.segmentIndex,u=a.segmentFraction;var N=a.alignmentFocus;if(f=a.segmentOrientation,p=a.segmentOffset,isNaN(l)){var R=x.ua,_=Rt();R.Qu(u,_);var V=he.allocAt(_[0],_[1]);V.add(x.i(0)),R.type===Dn.j||(R=R.figures.first()),V.offset(-R.startX,-R.startY),R=_[2],f!==Nl&&(x=x.computeAngle(a,f,R),a.angle=x),x=V.x;var xe=V.y;he.free(V),Jt(_)}else if(l<-n||l>=n)_=he.alloc(),R=x,xe=_,R.vg(),R.computeMidPoint(xe),R=x.midAngle,f!==Nl&&(x=x.computeAngle(a,f,R),a.angle=x),x=_.x,xe=_.y,he.free(_);else{if(V=0,0<=l?(_=t.s[l],xe=l<n-1?t.s[l+1]:_):(V=n+l,_=t.s[V],xe=0<V?t.s[V-1]:_),_.Xa(xe)){0<=l?(R=0<l?t.s[l-1]:_,V=l<n-2?t.s[l+2]:xe):(R=V<n-1?t.s[V+1]:_,V=1<V?t.s[V-2]:xe);var ue=R.Bf(_),Fe=xe.Bf(V);R=ue>Fe+10?0<=l?R.ab(_):_.ab(R):Fe>ue+10?0<=l?xe.ab(V):V.ab(xe):0<=l?R.ab(V):V.ab(R)}else R=0<=l?_.ab(xe):xe.ab(_);f!==Nl&&(x=x.computeAngle(a,f,R),a.angle=x),x=_.x+(xe.x-_.x)*u,xe=_.y+(xe.y-_.y)*u}if(N.ys())a.location=new he(x,xe);else{N.Mc()&&(N=Rr),_=nr.alloc(),_.reset(),_.scale(a.scale,a.scale),_.rotate(a.angle,0,0);var Ue=a.naturalBounds;V=Zt.allocAt(0,0,Ue.width,Ue.height),ue=he.alloc(),ue.xi(V,N),_.Ga(ue),N=-ue.x,Fe=-ue.y;var We=Ue.width,rt=Ue.height;Ue=he.alloc(),Ue.assign(p);var At=isNaN(p.x),Kn=isNaN(p.y);if(At||Kn){We=We/2+3,rt=rt/2+3;var ri=45<=R&&135>=R,qn=225<=R&&315>=R;f===Nl&&(ri||qn)?(Ue.x=Kn?We:p.y,Ue.y=At?rt:p.x,ri?0<=l||isNaN(l)&&.5>u||!At||(Ue.y=-rt):qn&&((0<=l||isNaN(l)&&.5>u)&&At&&(Ue.y=-rt),Kn&&(Ue.x=-We))):(At&&(Ue.x=0<=l||isNaN(l)&&.5>u?We:-We),Kn&&(Ue.y=-rt),Ue.rotate(R))}else Ue.rotate(R);x+=Ue.x,xe+=Ue.y,_.pp(V),N+=V.x,Fe+=V.y,l=he.allocAt(x+N,xe+Fe),a.move(l),he.free(l),he.free(Ue),he.free(ue),Zt.free(V),nr.free(_)}}r!==null?r.Ul(!1):i.Ul(!1),i=jy(e),e.location.h(e.position.x+i.x,e.position.y+i.y),he.free(i)}};function py(e,t,n,i){if(bu(i)!==!1){var r=i.strokeWidth;r===0&&e instanceof Zr&&e.type===kn.Link&&e.adornedObject instanceof lr&&(r=e.adornedObject.strokeWidth),r*=i.Ca,e instanceof Pn&&e.ua!==null?(e=e.geometry.bounds,i.Ge(e.x-r/2,e.y-r/2,e.width+r,e.height+r)):e instanceof Zr&&e.adornedPart.ua!==null?(e=e.adornedPart.ua.bounds,i.Ge(e.x-r/2,e.y-r/2,e.width+r,e.height+r)):i.Ge(-(r/2),-(r/2),t+r,n+r),r=i.desiredSize,r.w()||i.ua===null?i.dc.h(0,0,r.width,r.height):i.dc.assign(i.ua.bounds),Ya(i,!1)}}function bp(){this.xa="Base"}yi(bp,ts),bp.prototype.measure=function(e,t,n,i,r,o,a){var l=e.Pb();e.graduatedBounds=[];var u=l.margin,f=u.right+u.left,p=u.top+u.bottom;l.measure(t,n,o,a);var x=l.measuredBounds,N=new Zt(-u.left,-u.top,Math.max(x.width+f,0),Math.max(x.height+p,0));e.graduatedBounds.push(N),r.assign(N);for(var R=l.geometry,_=l.strokeWidth,V=R.flattenedSegments,xe=R.flattenedLengths,ue=R.flattenedTotalLength,Fe=V.length,Ue=0,We=0,rt=Rt(),At=0;At<Fe;At++){var Kn=V[At],ri=[];We=Ue=0;for(var qn=Kn.length,Rn=0;Rn<qn;Rn+=2){var mn=Kn[Rn],Ji=Kn[Rn+1];if(Rn!==0){var Wi=180*Math.atan2(Ji-We,mn-Ue)/Math.PI;0>Wi&&(Wi+=360),ri.push(Wi)}Ue=mn,We=Ji}rt.push(ri)}if(e.graduatedIntervals===null){for(var Jr=[],Io=e.O.s,hs=Io.length,gs=0;gs<hs;gs++){var ul=Io[gs],ds=[];if(Jr.push(ds),ul.visible){var kh=ul.interval;if(!(0>kh)){for(var _a=0;_a<hs;_a++)if(_a!==gs){var yc=Io[_a];if(yc.visible&&ul.constructor===yc.constructor){var cl=yc.interval;cl>kh&&ds.push(cl)}}}}}e.graduatedIntervals=Jr}var Ih=e.graduatedIntervals,wu=e.O.s,Vu=wu.length,su=0,Yl=0,nd=ue;e.graduatedMarks=[];for(var bc,Vf=0;Vf<Vu;Vf++){var lu=wu[Vf];if(bc=[],lu.visible&&lu!==l){var hl=Math.abs(lu.interval),r0=e.graduatedTickUnit;if(!(2>r0*hl*ue/e.graduatedRange&&lu.graduatedSkip===null)){var ef=xe[0][0],Oc=0,Xl=0;Yl=ue*lu.graduatedStart-1e-4,nd=ue*lu.graduatedEnd+1e-4;var Ad=r0*hl,uu=e.graduatedTickBase;if(uu<e.graduatedMin){var id=(e.graduatedMin-uu)/Ad;id=id%1===0?id:Math.floor(id+1),uu+=id*Ad}else uu>e.graduatedMin+Ad&&(uu-=Math.floor((uu-e.graduatedMin)/Ad)*Ad);for(var Jm=Ih[Vf],o0=uu,Yv=1e-6*e.graduatedMax,Kc=1;uu<=e.graduatedMax+Yv;Kc++){e:{for(var rh=Jm.length,tf=0;tf<rh;tf++){var rd=(uu-e.graduatedTickBase)%(Jm[tf]*e.graduatedTickUnit),Kf=1e-6*e.graduatedTickUnit;if(rd<Kf&&rd>-Kf){var od=!1;break e}}od=!0}if(od&&(uu>e.graduatedMax&&(uu=e.graduatedMax),lu.graduatedSkip===null||lu instanceof Mo&&!lu.graduatedSkip(uu,lu)||lu instanceof lr&&!lu.graduatedSkip(uu,lu))&&(su=(uu-e.graduatedMin)*ue/e.graduatedRange,su>ue&&(su=ue),Yl<=su&&su<=nd)){for(var Zc=rt[Oc][Xl],Mh=xe[Oc][Xl];Oc<xe.length;){for(;su>ef&&Xl<xe[Oc].length-1;)Xl++,Zc=rt[Oc][Xl],Mh=xe[Oc][Xl],ef+=Mh;if(su<=ef)break;Oc++,Xl=0,Zc=rt[Oc][Xl],Mh=xe[Oc][Xl],ef+=Mh}var Ql=V[Oc],Lc=Ql[2*Xl],qm=Ql[2*Xl+1],oh=(su-(ef-Mh))/Mh,Zf=new he(Lc+(Ql[2*Xl+2]-Lc)*oh+_/2-R.bounds.x,qm+(Ql[2*Xl+3]-qm)*oh+_/2-R.bounds.y);Zf.scale(l.scale,l.scale);e:{var xc=Zc,kd=rt[Oc];if(!(.5005>oh&&.4995<oh)){var Rc=xc;if(.5>oh?0<Xl?Rc=kd[Xl-1]:qe.$(Ql[0],Ql[Ql.length-2])&&qe.$(Ql[1],Ql[Ql.length-1])&&(Rc=kd[kd.length-1]):.5<oh&&(Xl+1<kd.length?Rc=kd[Xl+1]:qe.$(Ql[0],Ql[Ql.length-2])&&qe.$(Ql[1],Ql[Ql.length-1])&&(Rc=kd[0])),xc!==Rc){var nf=Math.abs(xc-Rc);if(180<nf&&(xc<Rc?xc+=360:Rc+=360,nf=Math.abs(xc-Rc)),5e-4>oh||.9995<oh){Zc=(xc+Rc)/2%360;break e}if(10>nf){var Yf=1-Math.abs(.5-oh);Zc=(xc*Yf+Rc*(1-Yf))%360;break e}}}Zc=xc}if(lu instanceof Mo){var uc="";lu.graduatedFunction!==null?(uc=lu.graduatedFunction(uu,lu),uc=uc!=null?uc.toString():""):uc=(+uu.toFixed(2)).toString(),uc!==""&&bc.push({$l:Zf,angle:Zc,text:uc})}else bc.push({$l:Zf,angle:Zc})}uu=o0+Kc*Ad}}}e.graduatedMarks.push(bc)}Jt(rt);var Is=e.graduatedMarks;if(Is!==null)for(var a0=i.length,Ol=0;Ol<a0;Ol++){var za=i[Ol],Ll=Is[Ol];if(za.visible&&za!==l&&Ll.length!==0){if(za instanceof lr){var ah=e,Oh=r,Id=za.alignmentFocus;Id.Mc()&&(Id=Es);var Xv=za.angle;za.Kb=0,za.measure(1/0,1/0,0,0),za.Kb=Xv;var eg=za.measuredBounds,Xf=eg.width,Md=eg.height,rf=Zt.allocAt(0,0,Xf,Md),Jl=he.alloc();Jl.xi(rf,Id),Zt.free(rf);for(var sh=-Jl.x,Sc=-Jl.y,_u=new Zt,ad=Ll.length,Qf=0;Qf<ad;Qf++)for(var sd=Ll[Qf],tg=sd.$l.x,Jf=sd.$l.y,Da=sd.angle,cc=0;4>cc;cc++){switch(cc){case 0:Jl.h(sh,Sc);break;case 1:Jl.h(sh+Xf,Sc);break;case 2:Jl.h(sh,Sc+Md);break;case 3:Jl.h(sh+Xf,Sc+Md)}Jl.rotate(Da+za.angle),Jl.offset(tg,Jf),Qf===0&&cc===0?_u.h(Jl.x,Jl.y,0,0):_u.Ye(Jl),Jl.offset(-tg,-Jf),Jl.rotate(-Da-za.angle)}he.free(Jl),ah.graduatedBounds!==null&&ah.graduatedBounds.push(_u),Pr(Oh,_u.x,_u.y,_u.width,_u.height)}else if(za instanceof Mo){var Ku=e,ng=r;Ku.temporaryTextBlock===null&&(Ku.temporaryTextBlock=new Mo);var cu=Ku.temporaryTextBlock;Iy(cu,za);var Lh=za.alignmentFocus;Lh.Mc()&&(Lh=Es);for(var Zu=za.segmentOrientation,qf=za.segmentOffset,ld=new Zt,s0=0,ep=0,Dc=0,Od=0,ud=0,tp=Ll.length,Rh=0;Rh<tp;Rh++){var Yc=Ll[Rh];s0=Yc.$l.x,ep=Yc.$l.y,Dc=Yc.angle,ud=Od=za.angle,Zu!==Nl&&(ud=Zu===Mp||Zu===um?Dc+za.angle:Dc,Od=Pn.computeAngle(Zu,ud)),cu.Kb=Od,cu.text=Yc.text||"",cu.measure(1/0,1/0,0,0);var Dh=cu.measuredBounds,lh=cu.naturalBounds,Ph=lh.width,Ld=lh.height,Ec=nr.alloc();Ec.reset(),Ec.translate(-Dh.x,-Dh.y),Ec.scale(cu.scale,cu.scale),Ec.rotate(ud,Ph/2,Ld/2),Zu!==Op&&Zu!==Rp||Ec.rotate(90,Ph/2,Ld/2),Zu!==Lp&&Zu!==Dp||Ec.rotate(-90,Ph/2,Ld/2),Zu===cm&&(45<Dc&&135>Dc||225<Dc&&315>Dc)&&Ec.rotate(-Dc,Ph/2,Ld/2);var of=Zt.allocAt(0,0,Ph,Ld),Fh=he.alloc();Fh.xi(of,Lh),Ec.Ga(Fh);var af=-Fh.x,Qv=-Fh.y,uh=he.alloc();uh.assign(qf),isNaN(uh.x)&&(uh.x=Ph/2+3),isNaN(uh.y)&&(uh.y=-(Ld/2+3)),uh.rotate(Dc),s0+=uh.x+af,ep+=uh.y+Qv;var Rd=new Zt(s0,ep,Dh.width,Dh.height),l0=new Zt(Dh.x,Dh.y,Dh.width,Dh.height),Jv=new Zt(lh.x,lh.y,lh.width,lh.height);Yc.Sz=Od,Yc.lineCount=cu.lineCount,Yc.lines=[cu.Cb,cu.Ih,cu.df,cu.Le,cu.Qc,cu.Qb,cu.ze],Yc.actualBounds=Rd,Yc.measuredBounds=l0,Yc.naturalBounds=Jv,Rh===0?ld.assign(Rd):ld.ed(Rd),he.free(uh),he.free(Fh),Zt.free(of),nr.free(Ec)}Ku.graduatedBounds!==null&&Ku.graduatedBounds.push(ld),Pr(ng,ld.x,ld.y,ld.width,ld.height)}Ya(za,!1)}}},bp.prototype.arrange=function(e,t,n){if(e.graduatedBounds!==null){var i=e.Pb(),r=e.graduatedMarks;if(r!==null){var o=e.graduatedBounds,a=0,l=o[a];a++,i!==null&&i.arrange(l.x-n.x,l.y-n.y,l.width,l.height);for(var u=t.length,f=0;f<u;f++){var p=t[f];l=r[f],p.visible&&p!==i&&l.length!==0&&(l=o[a],a++,p.arrange(l.x-n.x,l.y-n.y,l.width,l.height))}e.graduatedBounds=null}}},bp.prototype.gc=function(e,t,n){var i=n.$i;n.$i=!0;var r=e.naturalBounds,o=r.width,a=r.height;r=t instanceof ru,t.save(),t.beginPath(),t.rect(-1,-1,o+1,a+1),t.clip(),t.Se(),o=e.Pb(),o.gc(t,n),a=e.Df()*n.scale,0>=a&&(a=1);for(var l=o.actualBounds,u=e.O.s,f=e.graduatedMarks,p=u.length,x=0;x<p;x++){var N=u[x],R=f[x],_=R.length;if(N.visible&&N!==o&&R.length!==0){if(N instanceof lr){if(!(2>e.graduatedTickUnit*N.interval*o.geometry.flattenedTotalLength/e.graduatedRange*a&&N.graduatedSkip===null)){var V=N.measuredBounds,xe=N.strokeWidth*N.scale,ue=N.alignmentFocus;ue.Mc()&&(ue=Es);for(var Fe=0;Fe<_;Fe++){var Ue=R[Fe].$l,We=R[Fe].angle,rt=ue,At=N.Ab;At.reset(),At.translate(Ue.x+l.x,Ue.y+l.y),At.rotate(We+N.angle,0,0),At.translate(-V.width*rt.x+rt.offsetX+xe/2,-V.height*rt.y+rt.offsetY+xe/2),At.scale(N.scale,N.scale),Hu(N,!1),N.wh.set(N.Ab),N.Kk=N.scale,Ou(N,!1),N.gc(t,n),r&&(e.svg.appendChild(N.svg),N.svg=null),N.Ab.reset()}}}else if(N instanceof Mo)for(e.temporaryTextBlock===null&&(e.temporaryTextBlock=new Mo),V=e.temporaryTextBlock,Iy(V,N),xe=0;xe<_;xe++)ue=R[xe],ue.actualBounds&&ue.measuredBounds&&ue.naturalBounds&&(V.ec=ue.text||"",V.Kb=ue.Sz||0,V.Gc=ue.lineCount||0,Fe=ue.lines,Fe!==void 0&&(V.Cb=Fe[0],V.Ih=Fe[1],V.df=Fe[2],V.Le=Fe[3],V.Qc=Fe[4],V.Qb=Fe[5],V.ze=Fe[6]),ue.naturalBounds&&(V.dc=ue.naturalBounds),ue.actualBounds&&(Fe=ue.actualBounds,V.arrange(Fe.x,Fe.y,Fe.width,Fe.height)),Fe=ue.actualBounds,V.arrange(Fe.x,Fe.y,Fe.width,Fe.height),Ue=ue.measuredBounds,ue=ue.naturalBounds,We=V.Ab,We.reset(),We.translate(Fe.x+l.x,Fe.y+l.y),We.translate(-Ue.x,-Ue.y),V.no(We,ue.x,ue.y,ue.width,ue.height),Hu(V,!1),V.wh.set(V.Ab),V.Kk=V.scale,Ou(V,!1),V.Ng=N.part,V.Me=N.panel,V.gc(t,n),V.Me=null,V.Ng=null,r&&(e.svg.appendChild(V.svg),V.svg=null))}}n.$i=i,t.restore(),t.Vc(!0)};function kn(e,t){if(st.call(this),this.na=null,e===void 0)this.na=kn.Position;else if(typeof e=="string"){var n=ic.I(e);n!==null&&(this.na=n)}else e instanceof ts?this.na=e:e&&(this.na=kn.Position,t=e);this.na===null&&Ve("Panel type not specified or PanelLayout not loaded: "+e),this.l=this.l|4194304|(this.na===kn.Grid?1048576:0),this.O=new qt,this.yb=Ja,this.Tm=Kr,this.Uf=er,this.$g=null,this.$e="",this.jg=new Zt(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=ci,this.jn=$a,this.kn=gr,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,t&&Object.assign(this,t)}yi(kn,st),kn.prototype.cloneProtected=function(e){st.prototype.cloneProtected.call(this,e),e.na=this.na,e.yb=this.yb.J(),e.Tm=this.Tm.J(),e.Uf=this.Uf,e.$e=this.$e,e.jg.assign(this.jg),this.T!==null&&(e.T=this.T.copy(e)),e.xo=this.xo,e.jn=this.jn.J(),e.kn=this.kn.J(),this.ra!==null&&(e.ra=this.ra.copy()),e.ub=this.ub,e.zn=this.zn,e.Hh=this.Hh},kn.prototype.Af=function(e){st.prototype.Af.call(this,e),e.O=this.O;for(var t=e.O.s,n=t.length,i=0;i<n;i++)t[i].Me=e;e.$g=null},kn.prototype.copy=function(){var e=st.prototype.copy.call(this);if(e!==null){for(var t=this.O.s,n=t.length,i=0;i<n;i++){var r=t[i].copy();r.wi(e),r.Ng=null;var o=e.O,a=o.count;if(o.Gb(a,r),o=e.part,o!==null){o.Rh=null,r.portId!==null&&o instanceof Xn&&(o.Te=!0);var l=e.diagram;l!==null&&l.undoManager.isUndoingRedoing||o.cb(Ko,"elements",e,null,r,null,a)}}return e}return null},U=kn.prototype,U.toString=function(){return"Panel("+this.type.name+")#"+Mt(this)},U.Pn=function(e){st.prototype.Pn.call(this,e);for(var t=this.O.s,n=t.length,i=0;i<n;i++)t[i].Pn(e)},U.hh=function(e,t){if(this.na===kn.Grid)e.yc(),this.na.gc(this,e,t);else if(this.na===kn.Graduated)e.yc(),this.na.gc(this,e,t);else{if(this.na===kn.Table)if(e.yc(),e instanceof ru){var n=e.yd;e.yd=S0(e,"gojs-ts"),wg(this,e),e.nh.pop(),e.yd=n}else wg(this,e);(n=this.isClipping&&this.na===kn.Spot)&&e.save();for(var i=this.Pb(),r=this.O.s,o=r.length,a=0;a<o;a++){var l=r[a];n&&l===i&&(e.clipInsteadOfFill=!0),l.gc(e,t),n&&l===i&&(e.clipInsteadOfFill=!1)}n&&(e.restore(),e.Vc(!0))}};function wg(e,t){t.lineCap="butt";var n=0<e.rowCount?e.rowDefs:null,i=0<e.columnCount?e.colDefs:null;n!==null&&P0(e,t,!0,n,!0),i!==null&&P0(e,t,!1,i,!0),n!==null&&my(e,t,!0,n),i!==null&&my(e,t,!1,i),n!==null&&P0(e,t,!0,n,!1),i!==null&&P0(e,t,!1,i,!1)}function my(e,t,n,i){for(var r=i.length,o=e.actualBounds,a=e.naturalBounds,l=!0,u=0;u<r;u++){var f=i[u];if(f!==void 0&&f.actual!==0)if(l)l=!1;else{if(n){if(f.position>a.height)continue}else if(f.position>a.width)continue;var p=f.separatorStrokeWidth;isNaN(p)&&(p=n?e.defaultRowSeparatorStrokeWidth:e.defaultColumnSeparatorStrokeWidth);var x=f.separatorStroke;if(x===null&&(x=n?e.defaultRowSeparatorStroke:e.defaultColumnSeparatorStroke),p!==0&&x!==null){Aa(e,t,x,!1,!1,a,o),x=!1;var N=f.separatorDashArray;N===null&&(N=n?e.defaultRowSeparatorDashArray:e.defaultColumnSeparatorDashArray),N!==null&&(x=!0,t.js(N,0)),t.beginPath(),N=f.position+p,n?N>a.height&&(p-=N-a.height):N>a.width&&(p-=N-a.width),f=f.position+p/2,t.lineWidth=p,p=e.yb,n?(f+=p.top,N=a.width-p.right,t.moveTo(p.left,f),t.lineTo(N,f)):(f+=p.left,N=a.height-p.bottom,t.moveTo(f,p.top),t.lineTo(f,N)),t.stroke(),t.Se(),x&&t.fs()}}}}function P0(e,t,n,i,r){for(var o=i.length,a=e.actualBounds,l=e.naturalBounds,u=gy(e,!0),f=gy(e,!1),p=0;p<o;p++){var x=i[p];if(x!==void 0&&x.background!==null&&x.coversSeparators!==r&&x.actual!==0){var N=n?a.height:a.width;if(!(x.position>N)){var R=x.Wc(),_=x.separatorStrokeWidth;isNaN(_)&&(_=n?e.defaultRowSeparatorStrokeWidth:e.defaultColumnSeparatorStrokeWidth);var V=x.separatorStroke;V===null&&(V=n?e.defaultRowSeparatorStroke:e.defaultColumnSeparatorStroke),(V===null||x.index===(n?u:f))&&(_=0),R-=_,_=x.position+_,R+=x.actual,_+R>N&&(R=N-_),0>=R||(N=e.yb,Aa(e,t,x.background,!0,!1,l,a),n?t.fillRect(N.left,_+N.top,a.width-(N.left+N.right),R):t.fillRect(_+N.left,N.top,R,a.height-(N.top+N.bottom)))}}}}function gy(e,t){for(var n=t?e.rowCount:e.columnCount,i=0;i<n;i++){var r=t?e.rowDefs[i]:e.colDefs[i];if(r!==void 0)return r.index}return 0}function Cg(e){return e==="LineV"||e==="BarV"}U.lv=function(){for(var e=this.O.s,t=e.length,n=0;n<t;n++)e[n].lv();this.Uc=!0},U.kk=function(e,t,n){if(!st.prototype.kk.call(this,e,t,n))return!1;if(this.type===kn.Table)n=this.svg.getElementsByClassName("gojs-ts"),n=n.length!==0?n[0]:null,n!==null&&(n.innerHTML=""),e.yd=n,wg(this,e),e.yd=null;else if(this.na===kn.Grid||this.na===kn.Graduated)return this.svg.innerHTML="",this.svg.remove(),!1;n=this.O.s;for(var i=n.length,r=0;r<i;r++)n[r].gc(e,t);return!0},U.nk=function(){return!0},U.$o=function(e,t,n,i){if(!this.isClipping)if(this.Dd()&&e.bk!==null){e=e.bk,t=this.O.s;for(var r=0,o=0,a=0;a<t.length;a++)if(t[a].Ed()){var l=t[a].actualBounds;r=a===0?l.x:Math.min(l.x,r),o=a===0?l.y:Math.min(l.y,o)}i.setAttributeNS(null,"clip-path","path('M "+(e.x-n.x-r)+","+(e.y-n.y-o)+" l "+e.width+" 0 l 0 "+e.height+" l -"+e.width+" 0 z')")}else st.prototype.$o.call(this,e,t,n,i)},U.Sj=function(e,t,n,i,r){var o=this.se(),a=this.transform,l=1/(a.m11*a.m22-a.m12*a.m21),u=a.m22*l,f=-a.m12*l,p=-a.m21*l,x=a.m11*l,N=l*(a.m21*a.dy-a.m22*a.dx),R=l*(a.m12*a.dx-a.m11*a.dy);if(this.areaBackground!==null)return a=this.actualBounds,qe.Ff(a.left,a.top,a.right,a.bottom,e,t,n,i,r);if(this.background!==null)return o=e*u+t*p+N,l=e*f+t*x+R,e=n*u+i*p+N,u=n*f+i*x+R,r.h(0,0),n=this.naturalBounds,o=qe.Ff(0,0,n.width,n.height,o,l,e,u,r),r.transform(a),o;o||(u=1,p=f=0,x=1,R=N=0),l=e*u+t*p+N,e=e*f+t*x+R,u=n*u+i*p+N,n=n*f+i*x+R,r.h(u,n),i=(u-l)*(u-l)+(n-e)*(n-e),f=!1,x=this.O.s,R=x.length,p=he.alloc(),N=null,t=1/0;var _=null,V=this.isClipping&&this.na===kn.Spot;V&&(_=he.alloc(),N=this.Pb(),(f=N.Sj(l,e,u,n,_))&&(t=(l-_.x)*(l-_.x)+(e-_.y)*(e-_.y)));for(var xe=0;xe<R;xe++){var ue=x[xe];ue.visible&&ue!==N&&ue.Sj(l,e,u,n,p)&&(f=!0,ue=(l-p.x)*(l-p.x)+(e-p.y)*(e-p.y),ue<i&&(i=ue,r.set(p)))}return V&&(t>i&&r.set(_),he.free(_)),he.free(p),o&&r.transform(a),f},U.Gj=function(){for(var e=this.O.s,t=e.length,n=0;n<t;n++)e[n].Gj();st.prototype.Gj.call(this)},U.v=function(e){if(!bu(this)){st.prototype.v.call(this,e),e=null,(this.na===kn.Auto||this.na===kn.Link)&&(e=this.Pb());for(var t=this.O.s,n=t.length,i=0;i<n;i++){var r=t[i];if((r===e||r.isPanelMain)&&r.v(!0),!r.desiredSize.w()){var o=_l(r,!1);(r instanceof Tl||r instanceof kn||r instanceof Mo||o!==En)&&r.v(!0)}}}},U.Uj=function(){if(!bu(this)){Ya(this,!0),Fc(this,!0);for(var e=this.O.s,t=e.length,n=0;n<t;n++)e[n].Uj()}},U.Uk=function(){if(!(this.l&2048)){Hu(this,!0),Ou(this,!0);for(var e=this.O.s,t=e.length,n=0;n<t;n++)e[n].Wu()}},U.Wu=function(){Ou(this,!0);for(var e=this.O.s,t=e.length,n=0;n<t;n++)e[n].Wu()},U.Wl=function(e,t,n,i){var r=this.jg;r.h(0,0,0,0);var o=this.desiredSize,a=this.minSize;n===void 0&&(n=a.width,i=a.height),n=Math.max(n,a.width),i=Math.max(i,a.height);var l=this.maxSize;isNaN(o.width)||(e=Math.min(o.width,l.width)),isNaN(o.height)||(t=Math.min(o.height,l.height)),e=Math.max(n,e),t=Math.max(i,t);var u=this.yb;e=Math.max(e-u.left-u.right,0),t=Math.max(t-u.top-u.bottom,0);var f=this.O.s;f.length!==0&&this.na.measure(this,e,t,f,r,n,i),e=r.width+u.left+u.right,u=r.height+u.top+u.bottom,isFinite(o.width)&&(e=o.width),isFinite(o.height)&&(u=o.height),e=Math.min(l.width,e),u=Math.min(l.height,u),e=Math.max(a.width,e),u=Math.max(a.height,u),e=Math.max(n,e),u=Math.max(i,u),Pa(r,e,u),Pa(this.naturalBounds,e,u),this.Ge(0,0,e,u)},U.Pb=function(){if(this.$g===null){var e=this.O.s,t=e.length;if(t===0)return null;for(var n=0;n<t;n++){var i=e[n];if(i.isPanelMain===!0)return this.$g=i}this.$g=e[0]}return this.$g};function th(e){return e.part!==null?e.part.locationObject:null}U.eh=function(e,t,n,i){var r=this.O.s;if(this.actualBounds.h(e,t,n,i),r.length!==0){if(!this.desiredSize.w()){e=_l(this,!0);var o=this.measuredBounds;t=o.width,o=o.height;var a=this.Kg,l=a.left+a.right;switch(a=a.top+a.bottom,t===n&&o===i&&(e=En),e){case En:(t>n||o>i)&&(this.v(),this.measure(t>n?n:t,o>i?i:o,0,0));break;case Tn:this.v(!0),this.measure(n+l,i+a,0,0);break;case bi:this.v(!0),this.measure(n+l,o+a,0,0);break;case Di:this.v(!0),this.measure(t+l,i+a,0,0)}}this.na.arrange(this,r,this.jg)}},U.gh=function(e){var t=this.naturalBounds,n=th(this);if(co(0,0,t.width,t.height,e.x,e.y)){t=this.O.s;for(var i=t.length,r=he.allocAt(0,0);i--;){var o=t[i];if((o.visible||o===n)&&(Ki(r.set(e),o.transform),o.ca(r)))return he.free(r),!0}return he.free(r),!(this.Ma===null&&this.areaBackground===null)}return!1},U.ks=function(e){if(this.bindingId===e)return this;for(var t=this.O.s,n=t.length,i=0;i<n;i++){var r=t[i].ks(e);if(r!==null)return r}return null},U.qm=function(e,t){if(t(this,e),e instanceof kn){e=e.O.s;for(var n=e.length,i=0;i<n;i++)this.qm(e[i],t)}};function bd(e,t){vy(e,e,t)}function vy(e,t,n){n(t),t=t.O.s;for(var i=t.length,r=0;r<i;r++){var o=t[r];o instanceof kn&&vy(e,o,n)}}function Ob(e,t){yy(e,e,t)}function yy(e,t,n){if(n(t),t instanceof kn){t=t.O.s;for(var i=t.length,r=0;r<i;r++)yy(e,t[r],n)}}U.Nl=function(e){return by(this,this,e)};function by(e,t,n){if(n(t))return t;if(t instanceof kn){t=t.O.s;for(var i=t.length,r=0;r<i;r++){var o=by(e,t[r],n);if(o!==null)return o}}return null}U.fb=function(e){if(this.name===e)return this;var t=this.O.s,n=t.length;this.Hh===null&&this.itemTemplateMap===null||(n=xp(this));for(var i=0;i<n;i++){var r=t[i];if(r instanceof kn){var o=r.fb(e);if(o!==null)return o}if(r.name===e)return r}return null};function xy(e){e=e.O.s;for(var t=e.length,n=0,i=0;i<t;i++){var r=e[i];r instanceof kn?n=Math.max(n,xy(r)):r instanceof lr&&(n=Math.max(n,r.ig/2*r.strokeMiterLimit*r.Df()))}return n}U.se=function(){return!(this.type===kn.TableRow||this.type===kn.TableColumn)};function yh(e){return e.type===kn.TableRow||e.type===kn.TableColumn}U.ic=function(e,t,n){if(this.pickable===!1||(t===void 0&&(t=null),n===void 0&&(n=null),wl(this)))return null;var i=this.naturalBounds,r=1/this.Df(),o=this.se(),a=o?e:Ki(he.allocAt(e.x,e.y),this.transform),l=this.diagram,u=10,f=5;if(l!==null&&(u=l.Ql("extraTouchArea"),f=u/2),co(-(f*r),-(f*r),i.width+u*r,i.height+u*r,a.x,a.y)){if(!this.isAtomic){r=this.O.s;var p=r.length;if(l=he.alloc(),f=(u=this.isClipping&&this.na===kn.Spot)?this.Pb():null,u&&(f.se()?Ki(l.set(e),f.transform):l.set(e),!f.ca(l)))return he.free(l),o||he.free(a),null;for(var x=th(this);p--;){var N=r[p];if((N.visible||N===x)&&(N.se()?Ki(l.set(e),N.transform):l.set(e),!u||N!==f)){var R=null;if(N instanceof kn?R=N.ic(l,t,n):N.pickable===!0&&N.ca(l)&&(R=N),R!==null&&(t!==null&&(R=t(R)),R!==null&&(n===null||n(R))))return he.free(l),o||he.free(a),R}}he.free(l)}return this.background===null&&this.areaBackground===null?(o||he.free(a),null):(e=co(0,0,i.width,i.height,a.x,a.y)?this:null,o||he.free(a),e)}return o||he.free(a),null},U.ji=function(e,t,n,i){if(this.pickable===!1)return!1;t===void 0&&(t=null),n===void 0&&(n=null);var r=this.naturalBounds,o=this.se(),a=o?e:Ki(he.allocAt(e.x,e.y),this.transform);if(r=co(0,0,r.width,r.height,a.x,a.y),yh(this)||r){if(!this.isAtomic){for(var l=this.O.s,u=l.length,f=he.alloc(),p=th(this);u--;){var x=l[u];if(x.visible||x===p){x.se()?Ki(f.set(e),x.transform):f.set(e);var N=x;x=x instanceof kn?x:null,(x!==null?x.ji(f,t,n,i):N.ca(f))&&N.pickable!==!1&&(t!==null&&(N=t(N)),N===null||n!==null&&!n(N)||i.add(N))}}he.free(f)}return o||he.free(a),r&&(this.background!==null||this.areaBackground!==null)}return o||he.free(a),!1},U.Cf=function(e,t,n,i,r,o){if(this.pickable===!1)return!1;t===void 0&&(t=null),n===void 0&&(n=null);var a=o;if(o===void 0&&(a=nr.alloc(),a.reset()),a.multiply(this.transform),this.fh(e,a))return Tg(this,t,n,r),o===void 0&&nr.free(a),!0;if(this.Yc(e,a)){if(!this.isAtomic)for(var l=th(this),u=this.O.s,f=u.length;f--;){var p=u[f];if(p.visible||p===l){var x=p.actualBounds,N=this.naturalBounds;x.x>N.width||x.y>N.height||0>x.x+x.width||0>x.y+x.height||(x=p,p=p instanceof kn?p:null,N=nr.alloc(),N.set(a),(p!==null?p.Cf(e,t,n,i,r,N):cs(x,e,i,N))&&(t!==null&&(x=t(x)),x===null||n!==null&&!n(x)||r.add(x)),nr.free(N))}}return o===void 0&&nr.free(a),i}return o===void 0&&nr.free(a),!1};function Tg(e,t,n,i){for(var r=e.O.s,o=r.length;o--;){var a=r[o];if(a.visible){var l=a.actualBounds,u=e.naturalBounds;l.x>u.width||l.y>u.height||0>l.x+l.width||0>l.y+l.height||(a instanceof kn&&Tg(a,t,n,i),t!==null&&(a=t(a)),a===null||n!==null&&!n(a)||i.add(a))}}}U.og=function(e,t,n,i,r,o){if(this.pickable===!1)return!1;n===void 0&&(n=null),i===void 0&&(i=null);var a=this.naturalBounds,l=this.se(),u=l?e:Ki(he.allocAt(e.x,e.y),this.transform),f=l?t:Ki(he.allocAt(t.x,t.y),this.transform),p=u.Bf(f),x=0<u.x&&u.x<a.width&&0<u.y&&u.y<a.height||Lr(u.x,u.y,0,0,0,a.height)<=p||Lr(u.x,u.y,0,a.height,a.width,a.height)<=p||Lr(u.x,u.y,a.width,a.height,a.width,0)<=p||Lr(u.x,u.y,a.width,0,0,0)<=p;if(a=u.zd(0,0)<=p&&u.zd(0,a.height)<=p&&u.zd(a.width,0)<=p&&u.zd(a.width,a.height)<=p,l||(he.free(u),he.free(f)),x){if(!this.isAtomic){u=he.alloc(),f=he.alloc(),p=th(this);for(var N=this.O.s,R=N.length;R--;){var _=N[R];if(_.visible||_===p){var V=_.actualBounds,xe=this.naturalBounds;(!l||!(V.x>xe.width||V.y>xe.height||0>V.x+V.width||0>V.y+V.height))&&(_.se()?(V=_.transform,Ki(u.set(e),V),Ki(f.set(t),V)):(u.set(e),f.set(t)),V=_,_=_ instanceof kn?_:null,(_!==null?_.og(u,f,n,i,r,o):V.tx(u,f,r))&&(n!==null&&(V=n(V)),V===null||i!==null&&!i(V)||o.add(V)))}}he.free(u),he.free(f)}return r?x:a}return!1};function Ng(e){var t=null;return e instanceof lr&&(t=e.spot1,t===Kr&&(t=null),e=e.geometry,e!==null&&t===null&&(t=e.spot1)),t===null&&(t=Jo),t}function Ag(e){var t=null;return e instanceof lr&&(t=e.spot2,t===Kr&&(t=null),e=e.geometry,e!==null&&t===null&&(t=e.spot2)),t===null&&(t=Bo),t}U.add=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];for(n=0;n<t.length;n++)this.Gb(this.O.count,t[n]);return this},U.M=function(e){return this.O.M(e)},U.Gb=function(e,t){t instanceof Ci&&Ve("Cannot add a Part to a Panel: "+t+"; use a Panel instead"),(this===t||this.rg(t))&&(this===t&&Ve("Cannot make a Panel contain itself: "+this.toString()),Ve("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+t.toString()));var n=t.panel;if(n!==null&&n!==this&&Ve("Cannot add a GraphObject that already belongs to another Panel to this Panel: "+t.toString()+", already contained by "+n.toString()+", cannot be shared by this Panel: "+this.toString()),this.na!==kn.Grid||t instanceof lr||Ve("Can only add Shapes to a Grid Panel, not: "+t),this.na!==kn.Graduated||t instanceof lr||t instanceof Mo||Ve("Can only add Shapes or TextBlocks to a Graduated Panel, not: "+t),t.wi(this),t.Ng=null,this.itemArray!==null){var i=t.data;i!==null&&typeof i=="object"&&(this.ge===null&&(this.ge=new Zn),this.ge.add(i,t))}var r=this.O;if(i=-1,n===this){for(var o=-1,a=this.O.s,l=a.length,u=0;u<l;u++)if(a[u]===t){o=u;break}if(o!==-1){if(o===e||o+1>=r.count&&e>=r.count)return;r.mb(o),i=o}else Ve("element "+t.toString()+" has panel "+n.toString()+" but is not contained by it.")}(0>e||e>r.count)&&(e=r.count),r.Gb(e,t),(e===0||t.isPanelMain)&&(this.$g=null),bu(this)||this.v(),t.v(!1),t.portId!==null?this.Te=!0:t instanceof kn&&t.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||B0(this,t,!1),n=this.part,n!==null&&(n.Rh=null,n.ag=NaN,this.Te&&n instanceof Xn&&(n.Te=!0),n.Te&&n instanceof Xn&&(n.wc=null),r=this.diagram,r!==null&&r.undoManager.isUndoingRedoing||(i!==-1&&n.cb(la,"elements",this,t,null,i,null),n.cb(Ko,"elements",this,null,t,null,e)))};function kg(e,t){e.l=t?e.l|16777216:e.l&-16777217}U.remove=function(e){for(var t=this.O.s,n=t.length,i=-1,r=0;r<n;r++)if(t[r]===e){i=r;break}i!==-1&&this.pc(i,!0)},U.mb=function(e){0<=e&&this.pc(e,!0)},U.pc=function(e,t){var n=this.O,i=n.M(e);if(i.Ng=null,i.wi(null),this.ge!==null){var r=i.data;typeof r=="object"&&this.ge.remove(r)}n.mb(e),Ya(this,!1),this.v(),this.$g===i&&(this.$g=null),this.graduatedIntervals=null;var o=this.part;o!==null&&(o.Rh=null,o.ag=NaN,o.Wb(),o instanceof Xn&&(i instanceof kn?i.qm(i,function(a,l){Qg(o,l,t)}):Qg(o,i,t)),n=this.diagram,n!==null&&n.undoManager.isUndoingRedoing||o.cb(la,"elements",this,i,null,e,null))},U.Fb=function(e){0>e&&Lt(e,">= 0",kn,"getRowDefinition:idx"),e=Math.round(e);var t=this.rowDefs;if(t[e]===void 0){var n=new Xa;n.wi(this),n.isRow=!0,n.index=e,t[e]=n,this.cb(Ko,"rowdefs",this,null,n,null,e)}return t[e]},U.oA=function(e){if(0>e&&Lt(e,">= 0",kn,"removeRowDefinition:idx"),this.rowCount!==0){e=Math.round(e);var t=this.rowDefs,n=t[e];if(n){t[e]=void 0;for(var i=t.length-1;0<=i&&t[i--]===void 0;)t.length--;this.cb(la,"rowdefs",this,n,null,e,null),this.v()}}};function Sy(e,t,n){var i=e.rowDefs;if(!(0>t)){if(i[t]=n instanceof Xa?n:void 0,!n)for(t=i.length-1;0<=t&&i[t--]===void 0;)i.length--;e.v()}}U.Eb=function(e){0>e&&Lt(e,">= 0",kn,"getColumnDefinition:idx"),e=Math.round(e);var t=this.colDefs;if(t[e]===void 0){var n=new Xa;n.wi(this),n.isRow=!1,n.index=e,t[e]=n,this.cb(Ko,"coldefs",this,null,n,null,e)}return t[e]},U.jA=function(e){if(0>e&&Lt(e,">= 0",kn,"removeColumnDefinition:idx"),this.columnCount!==0){e=Math.round(e);var t=this.colDefs,n=t[e];if(n){t[e]=void 0;for(var i=t.length-1;0<=i&&t[i--]===void 0;)t.length--;this.cb(la,"coldefs",this,n,null,e,null),this.v()}}};function Ey(e,t,n){var i=e.colDefs;if(!(0>t)){if(i[t]=n instanceof Xa?n:void 0,!n)for(t=i.length-1;0<=t&&i[t--]===void 0;)i.length--;e.v()}}U.Gy=function(e){var t=null;return e.isRow?t=this.Fb(e.index):e.isRow||(t=this.Eb(e.index)),t&&_0(t,e),this},U.Hy=function(e,t){return(e=this.Fb(e))&&_0(e,new Xa(t)),this},U.By=function(e,t){return(e=this.Eb(e))&&_0(e,new Xa(t)),this},U.nz=function(e){if(0>e||this.type!==kn.Table||this.rowCount===0)return-1;for(var t=0,n=this.rowDefs,i=n.length,r=this.topIndex;r<i;r++){var o=n[r];if(o!==void 0&&(t+=o.total,e<t))break}return r},U.fz=function(e){if(0>e||this.type!==kn.Table||this.columnCount===0)return-1;for(var t=0,n=this.colDefs,i=n.length,r=this.leftIndex;r<i;r++){var o=n[r];if(o!==void 0&&(t+=o.total,e<t))break}return r},U.Fz=function(e,t){if(t===void 0&&(t=new he(NaN,NaN)),this.type!==kn.Graduated)return t.h(NaN,NaN),t;e=Math.min(Math.max(e,this.graduatedMin),this.graduatedMax);var n=this.Pb();return n.geometry.Pu((e-this.graduatedMin)/this.graduatedRange,t),n.transform.Ga(t)},U.Gz=function(e){if(this.type!==kn.Graduated)return NaN;var t=this.Pb();return t.transform.Cd(e),t.geometry.xx(e)*this.graduatedRange+this.graduatedMin};function wy(e){return e=e.allBindings,e!==null&&e._isFrozen}function ju(e){var t=e.allBindings;if(t===null)e.data!==null&&Ve("Template cannot have .data be non-null: "+e),e.allBindings=t=new qt;else if(t._isFrozen)return;var n=new qt;kg(e,!1),e.qm(e,function(f,p){p.th();var x=p.localBindings;if(x!==null)for(zd(p,!1),x=x.iterator;x.next();){var N=x.value;N.mode===$p&&zd(p,!0);var R=N.sourceName;R!==null&&(R==="/"&&kg(f,!0),R=B1(N,f,p),R!==null&&(n.add(R),R.srcBindings===null&&(R.srcBindings=new qt),R.srcBindings.add(N))),t.add(N)}if(p instanceof kn&&p.type===kn.Table){if(0<p.rowCount){for(f=p.rowDefs,x=f.length,N=0;N<x;N++)if(R=f[N],R!==void 0&&R.be!==null)for(var _=R.be.iterator;_.next();){var V=_.value;V.xd=R,V.to=2,V.wl=R.index,t.add(V)}}if(0<p.columnCount){for(p=p.colDefs,f=p.length,x=0;x<f;x++)if(N=p[x],N!==void 0&&N.be!==null)for(R=N.be.iterator;R.next();)_=R.value,_.xd=N,_.to=1,_.wl=N.index,t.add(_)}}});for(var i=n.iterator;i.next();){var r=i.value;if(r.srcBindings!==null){zd(r,!0);for(var o=r.srcBindings.iterator;o.next();){var a=o.value;r.localBindings===null&&(r.localBindings=new qt),r.localBindings.add(a)}}r.srcBindings=null}for(i=t.iterator;i.next();)if(r=i.value,o=r.xd,o!==null){r.xd=null;var l=r.targetProperty,u=l.indexOf(".");0<u&&o instanceof kn&&(a=l.substring(0,u),l=l.substr(u+1),u=o.fb(a),u!==null?(o=u,r.targetProperty=l):Wn('Warning: unable to find GraphObject named "'+a+'" for Binding: '+r.toString())),o instanceof Xa?(a=Mt(o.panel),r.Ai=a===void 0?-1:a,o.panel.bindingId=r.Ai):o instanceof st?(a=Mt(o),r.Ai=a===void 0?-1:a,o.bindingId=r.Ai):Ve("Unknown type of binding target: "+o)}t.freeze(),e instanceof Ci&&e.Zc()&&e.Va()}U.Uy=function(e){e===void 0&&(e=!1);var t=this.copy();return Ob(t,function(n){n instanceof kn&&(n.allBindings=null,n.ub=null);var i=n.localBindings;i!==null&&(n.localBindings=null,i.each(function(r){n.bind(r.copy())})),i=n.animationTriggers,i!==null&&(n.animationTriggers=null,i.each(function(r){n.Jv(r.value.copy())}))}),e&&ju(t),t},U.La=function(e){var t=this.allBindings;if(t!==null)for(e===void 0&&(e=""),t=t.iterator;t.next();){var n=t.value,i=n.sourceProperty;if((e===""||i===""||i===e)&&(i=n.targetProperty,n.converter!==null||i!=="")){i=this.data;var r=n.sourceName;if(r!==null){if(r==="")i=this;else if(r==="/")i=this;else if(r===".")i=this;else if(r==="..")i=this;else if(i=this.fb(r),i===null)continue}else if(n.isToModel)if(i=this.diagram,i!==null)i=i.model.modelData;else continue;var o=this,a=n.Ai;if(a!==-1){if(o=this.ks(a),o===null)continue}else n.xd!==null&&(o=n.xd);if(r==="/"?i=o.part:r==="."?i=o:r===".."&&(i=o.panel),r=n.to,r!==0){if(!(o instanceof kn))continue;r===1?o=o.Eb(n.wl):r===2&&(o=o.Fb(n.wl))}o!==void 0&&n.Mv(o,i)}}},U.sx=function(e){return e==null||this.ge===null?null:this.ge.I(e)};function Lb(e,t){e=e.O.s;for(var n=e.length,i=t.length,r=0,o=null;r<n&&(o=e[r],!(o instanceof kn&&o.data!==null));)r++,o=e[r];if(n-r!==i)return!0;if(o===null)return 0<i;for(var a=0;r<n&&a<i;){if(o=e[r],!(o instanceof kn)||o.data!==t[a])return!0;r++,a++}return!1}function xp(e){if(e.type===kn.Spot||e.type===kn.Auto)return Math.min(e.O.length,1);if(e.type===kn.Link){e=e.O;for(var t=e.length,n=0;n<t;n++){var i=e.M(n);if(!(i instanceof lr&&i.isPanelMain))break}return n}return e.type===kn.Table&&0<e.O.length&&(e=e.O.M(0),e.isPanelMain&&e instanceof kn&&yh(e))?1:0}U.mv=function(){for(var e=xp(this);this.O.length>e;)this.pc(this.O.length-1,!1);Cy(this,this.itemArray)};function Cy(e,t){var n=xp(e);if(t===null||t.length===0)for(;e.O.length>n;)e.pc(e.O.length-1,!1);else if(e.O.length<=n){n=t.length;for(var i=0;i<n;i++)F0(e,t[i],i,!0)}else{i=n;for(var r=0;r<t.length;r++,i++){var o=t[r],a=i<e.O.length?e.O.M(i):null;if(a instanceof kn){if(a.data!==o){var l=Mg(e,a.data),u=Mg(e,o),f=u!==l;f||(l=Og(e,l),f=Og(e,u)!==l),f?(e.pc(i,!1),F0(e,o,r,!1)):a.data=o}}else F0(e,o,r,!1)}for(;i<e.O.length;)e.pc(i,!1);e.$g=null,Ig(e,n,0),bu(e)||e.v(),e.graduatedIntervals=null,e.If()||B0(e,e,!1),t=e.part,t!==null&&(t.Rh=null,t.ag=NaN,e.Te&&t instanceof Xn&&(t.Te=!0),t.Te&&t instanceof Xn&&(t.wc=null))}}function F0(e,t,n,i){if(!(t==null||0>n)){var r=Mg(e,t);if(r=Og(e,r),r!==null){if(ju(r),r=r.copy(),r.l&16777216){var o=e.ih();o!==null&&kg(o,!0)}typeof t=="object"&&(e.ge===null&&(e.ge=new Zn),e.ge.add(t,r)),o=n+xp(e),e.Gb(o,r),i&&(r.ub=t,Ig(e,o,n),r.ub=null),r.data=t}}}function Ig(e,t,n){for(e=e.O;t<e.length;){var i=e.M(t);if(i instanceof kn){var r=t,o=n;i.type===kn.TableRow?i.row=r:i.type===kn.TableColumn&&(i.column=r),i.itemIndex=o}t++,n++}}function Mg(e,t){if(t===null)return"";if(e=e.itemCategoryProperty,typeof e=="function")e=e(t);else if(typeof e=="string"&&typeof t=="object"){if(e==="")return"";e=Fa(t,e)}else return"";if(e===void 0)return"";if(typeof e=="string")return e;Ve("Panel.getCategoryForItemData found a non-string category for "+t+": "+e)}function Og(e,t){var n=e.itemTemplateMap,i=null;return n!==null&&(i=n.I(t)),i===null&&(n!==null&&(i=n.I("")),i===null&&(Ty||(Ty=!0,Wn('No item template Panel found for category "'+t+'" on '+e),Wn(" Using default item template."),e=new kn,t=new Mo,t.bind(new Ba("text","",xn)),e.add(t),Ny=e),i=Ny)),i}function B0(e,t,n){var i=t.enabledChanged;if(i!==null&&i(t,n),t instanceof kn){t=t.O.s,i=t.length;for(var r=0;r<i;r++){var o=t[r];n&&o instanceof kn&&!o.isEnabled||B0(e,o,n)}}}function Ic(e,t){t.name=e,ic.add(e,t)}ht.Object.defineProperties(kn.prototype,{type:{get:function(){return this.na},set:function(e){var t=this.na;t!==e&&(this.na=e,this.isAtomic=this.na===kn.Grid,this.v(),this.g("type",t,e))}},elements:{get:function(){return this.O.iterator}},naturalBounds:{get:function(){return this.dc}},padding:{get:function(){return this.yb},set:function(e){typeof e=="number"?(0>e&&Lt(e,">= 0",kn,"padding"),e=new mi(e)):(0>e.left&&Lt(e.left,">= 0",kn,"padding:value.left"),0>e.right&&Lt(e.right,">= 0",kn,"padding:value.right"),0>e.top&&Lt(e.top,">= 0",kn,"padding:value.top"),0>e.bottom&&Lt(e.bottom,">= 0",kn,"padding:value.bottom"));var t=this.yb;t.D(e)||(this.yb=e=e.J(),this.v(),this.g("padding",t,e))}},defaultAlignment:{get:function(){return this.Tm},set:function(e){var t=this.Tm;t.D(e)||(this.Tm=e=e.J(),this.v(),this.g("defaultAlignment",t,e))}},defaultStretch:{get:function(){return this.Uf},set:function(e){var t=this.Uf;t!==e&&(this.Uf=e,this.v(),this.g("defaultStretch",t,e))}},defaultSeparatorPadding:{get:function(){return this.T!==null?this.T.Qp:Ja},set:function(e){typeof e=="number"&&(e=new mi(e));var t=this.defaultSeparatorPadding;t.D(e)||(e=e.J(),this.T===null&&(this.T=new Du),this.T.Qp=e,this.v(),this.g("defaultSeparatorPadding",t,e))}},defaultRowSeparatorStroke:{get:function(){return this.T!==null?this.T.ia:null},set:function(e){var t=this.defaultRowSeparatorStroke;t!==e&&(e===null||typeof e=="string"||e instanceof ao)&&(e instanceof ao&&e.freeze(),this.T===null&&(this.T=new Du),this.T.ia=e,this.N(),this.g("defaultRowSeparatorStroke",t,e))}},defaultRowSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.Ha:1},set:function(e){var t=this.defaultRowSeparatorStrokeWidth;t!==e&&isFinite(e)&&0<=e&&(this.T===null&&(this.T=new Du),this.T.Ha=e,this.v(),this.g("defaultRowSeparatorStrokeWidth",t,e))}},defaultRowSeparatorDashArray:{get:function(){return this.T!==null?this.T.V:null},set:function(e){var t=this.defaultRowSeparatorDashArray;if(t!==e){if(e!==null){for(var n=e.length,i=0,r=0;r<n;r++){var o=e[r];typeof o=="number"&&0<=o&&isFinite(o)||Ve("defaultRowSeparatorDashArray value "+o+" at index "+r+" must be a positive number or zero."),i+=o}if(i===0){if(t===null)return;e=null}}this.T===null&&(this.T=new Du),this.T.V=e,this.N(),this.g("defaultRowSeparatorDashArray",t,e)}}},defaultColumnSeparatorStroke:{get:function(){return this.T!==null?this.T.u:null},set:function(e){var t=this.defaultColumnSeparatorStroke;t!==e&&(e===null||typeof e=="string"||e instanceof ao)&&(e instanceof ao&&e.freeze(),this.T===null&&(this.T=new Du),this.T.u=e,this.N(),this.g("defaultColumnSeparatorStroke",t,e))}},defaultColumnSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.F:1},set:function(e){var t=this.defaultColumnSeparatorStrokeWidth;t!==e&&isFinite(e)&&0<=e&&(this.T===null&&(this.T=new Du),this.T.F=e,this.v(),this.g("defaultColumnSeparatorStrokeWidth",t,e))}},defaultColumnSeparatorDashArray:{get:function(){return this.T!==null?this.T.o:null},set:function(e){var t=this.defaultColumnSeparatorDashArray;if(t!==e){if(e!==null){for(var n=e.length,i=0,r=0;r<n;r++){var o=e[r];typeof o=="number"&&0<=o&&isFinite(o)||Ve("defaultColumnSeparatorDashArray value "+o+" at index "+r+" must be a positive number or zero."),i+=o}if(i===0){if(t===null)return;e=null}}this.T===null&&(this.T=new Du),this.T.o=e,this.N(),this.g("defaultColumnSeparatorDashArray",t,e)}}},inRowsCols:{get:function(){return this.T!==null?this.T.nb:null},set:function(e){this.T===null&&(this.T=new Du),this.T.nb=e}},viewboxStretch:{get:function(){return this.xo},set:function(e){var t=this.xo;t!==e&&(this.xo=e,this.v(),this.g("viewboxStretch",t,e))}},gridCellSize:{get:function(){return this.jn},set:function(e){var t=this.jn;if(!t.D(e)){e.w()&&e.width!==0&&e.height!==0||Ve("Invalid Panel.gridCellSize: "+e),this.jn=e.J();var n=this.diagram;n!==null&&this===n.grid&&Nc(n),this.N(),this.g("gridCellSize",t,e)}}},gridOrigin:{get:function(){return this.kn},set:function(e){var t=this.kn;if(!t.D(e)){e.w()||Ve("Invalid Panel.gridOrigin: "+e),this.kn=e.J();var n=this.diagram;n!==null&&this===n.grid&&Nc(n),this.N(),this.g("gridOrigin",t,e)}}},graduatedMin:{get:function(){return this.ra!==null?this.ra.lq:0},set:function(e){var t=this.graduatedMin;t!==e&&(this.ra===null&&(this.ra=new nh),this.ra.lq=e,this.v(),this.g("graduatedMin",t,e),Bs(this)&&(e=this.part,e!==null&&zo(this,e,"graduatedRange")))}},graduatedMax:{get:function(){return this.ra!==null?this.ra.F:100},set:function(e){var t=this.graduatedMax;t!==e&&(this.ra===null&&(this.ra=new nh),this.ra.F=e,this.v(),this.g("graduatedMax",t,e),Bs(this)&&(e=this.part,e!==null&&zo(this,e,"graduatedRange")))}},graduatedRange:{get:function(){return this.graduatedMax-this.graduatedMin}},graduatedTickUnit:{get:function(){return this.ra!==null?this.ra.ia:10},set:function(e){var t=this.graduatedTickUnit;t!==e&&0<e&&(this.ra===null&&(this.ra=new nh),this.ra.ia=e,this.v(),this.g("graduatedTickUnit",t,e))}},graduatedTickBase:{get:function(){return this.ra!==null?this.ra.V:0},set:function(e){var t=this.graduatedTickBase;t!==e&&(this.ra===null&&(this.ra=new nh),this.ra.V=e,this.v(),this.g("graduatedTickBase",t,e))}},graduatedMarks:{get:function(){return this.ra!==null?this.ra.u:null},set:function(e){this.ra!==null?this.ra.u=e:e!==null&&(this.ra=new nh,this.ra.u=e)}},graduatedBounds:{get:function(){return this.ra!==null?this.ra.j:null},set:function(e){this.ra!==null?this.ra.j=e:e!==null&&(this.ra=new nh,this.ra.j=e)}},graduatedIntervals:{get:function(){return this.ra!==null?this.ra.o:null},set:function(e){this.ra!==null?this.ra.o=e:e!==null&&(this.ra=new nh,this.ra.o=e)}},temporaryTextBlock:{get:function(){return this.ra!==null?this.ra.Zh:null},set:function(e){this.ra!==null?this.ra.Zh=e:e!==null&&(this.ra=new nh,this.ra.Zh=e)}},panelLayoutState:{get:function(){return this.F},set:function(e){this.F=e}},Te:{get:function(){return(this.l&8388608)!==0},set:function(e){(this.l&8388608)!==0!==e&&(this.l^=8388608)}},rowDefs:{get:function(){return this.T===null&&(this.T=new Du),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new Du),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:U0},set:function(e){var t=this.rowSizing;t!==e&&(this.T===null&&(this.T=new Du),this.T.ob=e,this.v(),this.g("rowSizing",t,e))}},columnSizing:{get:function(){return this.T!==null?this.T.j:U0},set:function(e){var t=this.columnSizing;t!==e&&(this.T===null&&(this.T=new Du),this.T.j=e,this.v(),this.g("columnSizing",t,e))}},topIndex:{get:function(){return this.T!==null?this.T.Hb:0},set:function(e){var t=this.topIndex;t!==e&&((!isFinite(e)||0>e)&&Ve("Panel.topIndex must be greater than zero and a real number, not: "+e),this.T===null&&(this.T=new Du),this.T.Hb=e,this.v(),this.g("topIndex",t,e))}},leftIndex:{get:function(){return this.T!==null?this.T.hb:0},set:function(e){var t=this.leftIndex;t!==e&&((!isFinite(e)||0>e)&&Ve("Panel.leftIndex must be greater than zero and a real number, not: "+e),this.T===null&&(this.T=new Du),this.T.hb=e,this.v(),this.g("leftIndex",t,e))}},data:{get:function(){return this.ub},set:function(e){var t=this.ub;if(t!==e){var n=this instanceof Ci&&!(this instanceof Zr);ju(this),this.ub=e;var i=this.diagram;i!==null&&(n?(n=i.partManager,this instanceof Pn?(t!==null&&n.bf.remove(t),e!==null&&n.bf.add(e,this)):this instanceof Ci&&(t!==null&&n.cf.remove(t),e!==null&&n.cf.add(e,this))):(n=this.panel,n!==null&&n.ge!==null&&(t!==null&&n.ge.remove(t),e!==null&&n.ge.add(e,this)))),this.g("data",t,e),i!==null&&i.undoManager.isUndoingRedoing||e!==null&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(e){var t=this.zn;t!==e&&(this.zn=e,this.g("itemIndex",t,e))}},allBindings:{get:function(){return this.A!==null?this.A.nb:null},set:function(e){this.localBindings!==e&&(this.A===null&&(this.A=new Ud),this.A.nb=e)}},itemArray:{get:function(){return this.Hh},set:function(e){var t=this.Hh;if(t!==e||e!==null&&Lb(this,e)){var n=this.diagram;t!==e&&(n!==null&&t!==null&&vv(n.partManager,this,n),this.Hh=e,n!==null&&e!==null&&gv(n.partManager,this)),this.g("itemArray",t,e),n!==null&&n.undoManager.isUndoingRedoing||Cy(this,e)}}},itemTemplate:{get:function(){return this.itemTemplateMap===null?null:this.itemTemplateMap.I("")},set:function(e){if(this.itemTemplateMap===null){if(e===null)return;this.itemTemplateMap=new Zn}var t=this.itemTemplateMap.I("");t!==e&&((e instanceof Ci||e.isPanelMain)&&Ve("Panel.itemTemplate must not be a Part or be Panel.isPanelMain: "+e),this.itemTemplateMap.add("",e),this.g("itemTemplate",t,e),e=this.diagram,e!==null&&e.undoManager.isUndoingRedoing||this.mv())}},itemTemplateMap:{get:function(){return this.A!==null?this.A.Pc:null},set:function(e){var t=this.itemTemplateMap;if(t!==e){for(var n=e.iterator;n.next(););yr(this),this.A.Pc=e,this.g("itemTemplateMap",t,e),e=this.diagram,e!==null&&e.undoManager.isUndoingRedoing||this.mv()}}},itemCategoryProperty:{get:function(){return this.A!==null?this.A.Oc:"category"},set:function(e){var t=this.itemCategoryProperty;t!==e&&(yr(this),this.A.Oc=e,this.g("itemCategoryProperty",t,e))}},isAtomic:{get:function(){return(this.l&1048576)!==0},set:function(e){var t=(this.l&1048576)!==0;t!==e&&(this.l^=1048576,this.g("isAtomic",t,e))}},isClipping:{get:function(){return(this.l&2097152)!==0},set:function(e){var t=(this.l&2097152)!==0;t!==e&&(this.l^=2097152,this instanceof qi&&(this.tb=null),this.v(),this.g("isClipping",t,e))}},isOpposite:{get:function(){return(this.l&33554432)!==0},set:function(e){var t=(this.l&33554432)!==0;t!==e&&(this.l^=33554432,this.v(),this.g("isOpposite",t,e))}},isEnabled:{get:function(){return(this.l&4194304)!==0},set:function(e){var t=(this.l&4194304)!==0;if(t!==e){var n=this.panel===null||this.panel.If();this.l^=4194304,this.g("isEnabled",t,e),t=this.diagram,t!==null&&t.undoManager.isUndoingRedoing||n&&B0(this,this,e)}}},alignmentFocusName:{get:function(){return this.$e},set:function(e){var t=this.$e;t!==e&&(this.$e=e,this.v(),this.g("alignmentFocusName",t,e))}}}),ht.Object.defineProperties(kn,{Position:{get:function(){return ic.I("Position")}},Horizontal:{get:function(){return ic.I("Horizontal")}},Vertical:{get:function(){return ic.I("Vertical")}},Spot:{get:function(){return ic.I("Spot")}},Auto:{get:function(){return ic.I("Auto")}},Table:{get:function(){return ic.I("Table")}},Viewbox:{get:function(){return ic.I("Viewbox")}},TableRow:{get:function(){return ic.I("TableRow")}},TableColumn:{get:function(){return ic.I("TableColumn")}},Link:{get:function(){return ic.I("Link")}},Grid:{get:function(){return ic.I("Grid")}},Graduated:{get:function(){return ic.I("Graduated")}}}),kn.prototype.rebuildItemElements=kn.prototype.mv,kn.prototype.findItemPanelForData=kn.prototype.sx,kn.prototype.updateTargetBindings=kn.prototype.La,kn.prototype.copyTemplate=kn.prototype.Uy,kn.prototype.graduatedValueForPoint=kn.prototype.Gz,kn.prototype.graduatedPointForValue=kn.prototype.Fz,kn.prototype.findColumnForLocalX=kn.prototype.fz,kn.prototype.findRowForLocalY=kn.prototype.nz,kn.prototype.addColumnDefinition=kn.prototype.By,kn.prototype.addRowDefinition=kn.prototype.Hy,kn.prototype.addRowColumnDefinition=kn.prototype.Gy,kn.prototype.removeColumnDefinition=kn.prototype.jA,kn.prototype.getColumnDefinition=kn.prototype.Eb,kn.prototype.removeRowDefinition=kn.prototype.oA,kn.prototype.getRowDefinition=kn.prototype.Fb,kn.prototype.removeAt=kn.prototype.mb,kn.prototype.remove=kn.prototype.remove,kn.prototype.insertAt=kn.prototype.Gb,kn.prototype.elt=kn.prototype.M,kn.prototype.add=kn.prototype.add,kn.prototype.findObject=kn.prototype.fb,kn.prototype.findInVisualTree=kn.prototype.Nl,kn.prototype.walkVisualTreeFrom=kn.prototype.qm,kn.prototype.findMainElement=kn.prototype.Pb;var Ty=!1,Ny=null,ic=new Zn;kn.className="Panel",kn.definePanelLayout=Ic,Ic("Position",new C0),Ic("Vertical",new N0),Ic("Auto",new k0),Ic("Link",new D0);function nh(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}nh.prototype.copy=function(){var e=new nh;return e.lq=this.lq,e.F=this.F,e.ia=this.ia,e.V=this.V,e.u=this.u,e.j=this.j,e.o=this.o,e.Zh=this.Zh,e},nh.className="GradPanelSettings";function Du(){this.Pc=[],this.Oc=[],this.j=this.ob=U0,this.hb=this.Hb=0,this.Qp=Ja,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}Du.prototype.copy=function(e){for(var t=new Du,n=this.Pc,i=n.length,r=t.Pc,o=0;o<i;o++)if(n[o]!==void 0){var a=n[o].copy();a.wi(e),r[o]=a}for(n=this.Oc,i=n.length,r=t.Oc,o=0;o<i;o++)n[o]!==void 0&&(a=n[o].copy(),a.wi(e),r[o]=a);return t.ob=this.ob,t.j=this.j,t.Hb=this.Hb,t.hb=this.hb,t.Qp=this.Qp.J(),t.Ha=this.Ha,t.ia=this.ia,t.V=this.V,t.F=this.F,t.u=this.u,t.o=this.o,t.nb=this.nb,t},Du.className="TablePanelSettings";function Xa(e){Li(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=Kr,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Lg,this.hg=er,this.lo=this.dg=null,this.mo=NaN,this.Ma=this.tj=null,this.Pm=!1,e&&(Object.assign(this,e),e.column!==void 0?(this.isRow=!1,this.index=e.column):e.row!==void 0&&(this.isRow=!0,this.index=e.row))}Xa.prototype.copy=function(){var e=new Xa;return e.uq=this.uq,e.Za=this.Za,e.Hc=this.Hc,e.jj=this.jj,e.hj=this.hj,e.Jb=this.Jb,e.oa=this.oa,e.oc=this.oc,e.pa=this.pa,e.hg=this.hg,e.oo=this.oo,this.dg===null?e.dg=null:e.dg=this.dg.J(),e.lo=this.lo,e.mo=this.mo,e.tj=null,this.tj!==null&&(e.separatorDashArray=yt(this.separatorDashArray)),e.Ma=this.Ma,e.Pm=this.Pm,e.be=this.be,e};function _0(e,t){t.isRow?e.height=t.height:e.width=t.width,e.minimum=t.minimum,e.maximum=t.maximum,e.alignment=t.alignment,e.stretch=t.stretch,e.sizing=t.sizing,e.dg=t.separatorPadding===null?null:t.separatorPadding.J(),e.separatorStroke=t.separatorStroke,e.separatorStrokeWidth=t.separatorStrokeWidth,e.tj=null,t.separatorDashArray&&(e.tj=yt(t.separatorDashArray)),e.background=t.background,e.coversSeparators=t.coversSeparators,e.be=t.be}U=Xa.prototype,U.qb=function(e){e.classType===Xa&&(this.sizing=e)},U.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+Mt(this)},U.wi=function(e){this.Me=e},U.Io=function(e){var t=0,n=this.Me;if(this.index!==e&&(e=this.separatorStroke,e===null&&n!==null&&(e=this.isRow?n.defaultRowSeparatorStroke:n.defaultColumnSeparatorStroke),e!==null&&(t=this.separatorStrokeWidth,isNaN(t)&&(n!==null?t=this.isRow?n.defaultRowSeparatorStrokeWidth:n.defaultColumnSeparatorStrokeWidth:t=0))),e=this.dg,e===null)if(n!==null)e=n.defaultSeparatorPadding;else return t;return t+(this.isRow?e.top:e.left)},U.Wc=function(){var e=0,t=this.Me,n=0,i=this.isRow;if(t!==null&&t.type===kn.Table)for(var r=i?t.rowDefs.length:t.colDefs.length,o=0;o<r;o++){var a=i?t.rowDefs[o]:t.colDefs[o];if(a!==void 0&&a.oa!==0){n=a.index;break}}if(this.index!==n&&(n=this.separatorStroke,n===null&&t!==null&&(n=i?t.defaultRowSeparatorStroke:t.defaultColumnSeparatorStroke),n!==null&&(e=this.separatorStrokeWidth,isNaN(e)&&(t!==null?e=i?t.defaultRowSeparatorStrokeWidth:t.defaultColumnSeparatorStrokeWidth:e=0))),i=this.dg,i===null)if(t!==null)i=t.defaultSeparatorPadding;else return e;return e+(this.isRow?i.top+i.bottom:i.left+i.right)},U.Ob=function(e,t,n){var i=this.Me;if(i!==null&&(i.cb(So,e,this,t,n,void 0,void 0),this.be!==null&&(t=i.diagram,t!==null&&!t.skipsModelSourceBindings&&(i=i.ih(),i!==null&&(t=i.data,t!==null)))))for(n=this.be.iterator;n.next();)n.value.sp(this,t,e,i)};function z0(e){if(e.sizing===Lg){var t=e.Me;return e.isRow?t.rowSizing:t.columnSizing}return e.sizing}U.bind=function(e,t,n,i){var r=null;return typeof e=="string"?r=new Ba(e,t,n,i):r=e,r.xd=this,e=this.panel,e!==null&&(t=e.ih(),t!==null&&wy(t)&&Ve("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+r+" on "+e)),this.be===null&&(this.be=new qt),this.be.add(r),this},ht.Object.defineProperties(Xa.prototype,{panel:{get:function(){return this.Me}},isRow:{get:function(){return this.uq},set:function(e){this.uq=e}},index:{get:function(){return this.Za},set:function(e){this.Za=e}},height:{get:function(){return this.Hc},set:function(e){var t=this.Hc;t!==e&&(0>e&&Lt(e,">= 0",Xa,"height"),this.Hc=e,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("height",t,e))}},width:{get:function(){return this.Hc},set:function(e){var t=this.Hc;t!==e&&(0>e&&Lt(e,">= 0",Xa,"width"),this.Hc=e,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("width",t,e))}},minimum:{get:function(){return this.jj},set:function(e){var t=this.jj;t!==e&&((0>e||!isFinite(e))&&Lt(e,">= 0",Xa,"minimum"),this.jj=e,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("minimum",t,e))}},maximum:{get:function(){return this.hj},set:function(e){var t=this.hj;t!==e&&(0>e&&Lt(e,">= 0",Xa,"maximum"),this.hj=e,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("maximum",t,e))}},alignment:{get:function(){return this.Jb},set:function(e){var t=this.Jb;t.D(e)||(this.Jb=e.J(),this.panel!==null&&this.panel.v(),this.Ob("alignment",t,e))}},stretch:{get:function(){return this.hg},set:function(e){var t=this.hg;t!==e&&(this.hg=e,this.panel!==null&&this.panel.v(),this.Ob("stretch",t,e))}},separatorPadding:{get:function(){return this.dg},set:function(e){typeof e=="number"&&(e=new mi(e));var t=this.dg;e!==null&&t!==null&&t.D(e)||(e!==null&&(e=e.J()),this.dg=e,this.panel!==null&&this.panel.v(),this.Ob("separatorPadding",t,e))}},separatorStroke:{get:function(){return this.lo},set:function(e){var t=this.lo;t!==e&&(e!==null&&$d(e,"RowColumnDefinition.separatorStroke"),e instanceof ao&&e.freeze(),this.lo=e,this.panel!==null&&this.panel.v(),this.Ob("separatorStroke",t,e))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(e){var t=this.mo;t!==e&&(this.mo=e,this.panel!==null&&this.panel.v(),this.Ob("separatorStrokeWidth",t,e))}},separatorDashArray:{get:function(){return this.tj},set:function(e){var t=this.tj;if(t!==e){if(e!==null){for(var n=e.length,i=0,r=0;r<n;r++){var o=e[r];typeof o=="number"&&0<=o&&isFinite(o)||Ve("separatorDashArray value "+o+" at index "+r+" must be a positive number or zero."),i+=o}if(i===0){if(t===null)return;e=null}}this.tj=e,this.panel!==null&&this.panel.N(),this.Ob("separatorDashArray",t,e)}}},background:{get:function(){return this.Ma},set:function(e){var t=this.Ma;t!==e&&(e!==null&&$d(e,"RowColumnDefinition.background"),e instanceof ao&&e.freeze(),this.Ma=e,this.panel!==null&&this.panel.N(),this.Ob("background",t,e))}},coversSeparators:{get:function(){return this.Pm},set:function(e){var t=this.Pm;t!==e&&(this.Pm=e,this.panel!==null&&this.panel.N(),this.Ob("coversSeparators",t,e))}},sizing:{get:function(){return this.oo},set:function(e){var t=this.oo;t!==e&&(this.oo=e,this.panel!==null&&this.panel.v(),this.Ob("sizing",t,e))}},actual:{get:function(){return this.oa},set:function(e){this.oa=isNaN(this.Hc)?Math.max(Math.min(this.hj,e),this.jj):Math.max(Math.min(this.hj,this.Hc),this.jj)}},measured:{get:function(){return this.oc},set:function(e){this.oc=e}},total:{get:function(){return this.oa+this.Wc()}},position:{get:function(){return this.pa},set:function(e){this.pa=e}}}),Xa.prototype.computeEffectiveSpacing=Xa.prototype.Wc,Xa.prototype.computeEffectiveSpacingTop=Xa.prototype.Io;var Lg=new Yt(Xa,"Default",0),Sp=new Yt(Xa,"None",1),U0=new Yt(Xa,"ProportionalExtra",2);Xa.className="RowColumnDefinition",Xa.Default=Lg,Xa.None=Sp,Xa.ProportionalExtra=U0;function lr(e,t){st.call(this),this.Rd=this.ua=null,this.an="None",this.xc=this.Ui="black",this.ig=1,this.Na=this.Yg=null,this.Vn=this.Un=NaN,this.fa=null,typeof e=="string"?this.figure=e:e&&Object.assign(this,e),t&&Object.assign(this,t)}yi(lr,st),lr.prototype.cloneProtected=function(e){st.prototype.cloneProtected.call(this,e),e.ua=this.ua,e.Rd=this.Rd,e.an=this.an,e.Ui=this.Ui,e.xc=this.xc,e.ig=this.ig,this.Yg!==null&&(e.Yg=yt(this.Yg)),this.Na!==null&&(e.Na=this.Na.nc?this.Na:this.Na.copy()),e.Un=this.Un,e.Vn=this.Vn,this.fa!==null&&(e.fa=this.fa.copy())};function xd(e){e.Na===null?e.Na=new Pg:e.Na.nc&&(e.Na=e.Na.copy())}U=lr.prototype,U.th=function(){st.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},U.qb=function(e){e===En||e===ci||e===Fr||e===er?this.geometryStretch=e:st.prototype.qb.call(this,e)},U.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+Mt(this)};function Cf(e,t,n,i){var r=n.length;if(!(4>r)){var o=i.measuredBounds,a=Math.max(1,o.width);o=o.height;for(var l=n[0],u=n[1],f,p,x,N,R,_,V=0,xe=Rt(),ue=2;ue<r;ue+=2)f=n[ue],p=n[ue+1],x=f-l,l=p-u,x===0&&(x=.001),N=l/x,R=Math.atan2(l,x),_=Math.sqrt(x*x+l*l),xe.push([x,R,N,_]),V+=_,l=f,u=p;l=n[0],u=n[1],x=i.measuredBounds.width,i instanceof lr&&(x-=i.strokeWidth),1>x&&(x=1),r=n=x,f=a/2,p=f!==0,ue=0,_=xe[ue],x=_[0],R=_[1],N=_[2],_=_[3];for(var Fe=0;.1<=V;){if(Fe===0&&(p?(r=n,r-=f,V-=f,p=!1):r=n,r===0&&(r=1)),r>V){Jt(xe);return}r>_?(Fe=r-_,r=_):Fe=0;var Ue=Math.sqrt(r*r/(1+N*N));if(0>x&&(Ue=-Ue),l+=Ue,u+=N*Ue,e.translate(l,u),e.rotate(R),e.translate(-(a/2),-(o/2)),Fe===0&&i.hh(e,t),e.translate(a/2,o/2),e.rotate(-R),e.translate(-l,-u),V-=r,_-=r,Fe!==0){if(ue++,ue===xe.length){Jt(xe);return}_=xe[ue],x=_[0],R=_[1],N=_[2],_=_[3],r=Fe}}Jt(xe)}}U.hh=function(e,t){var n=this.xc,i=this.Ui;if(n!==null||i!==null){var r=this.ua;if(r!==null){e.yc();var o=this.actualBounds,a=this.naturalBounds;i!==null&&Aa(this,e,i,!0,!1,a,o);var l=this.part,u=this.ig;if(n===null||u!==0||l===null||!this.isPanelMain&&l.Pb()!==this||(u=l.type===kn.Link&&l instanceof Zr&&l.category==="Selection"&&l.adornedObject instanceof lr&&l.adornedPart.Pb()===l.adornedObject?l.adornedObject.strokeWidth:0),u===0&&(n=null),n!==null&&u!==0&&(Aa(this,e,n,!1,!1,a,o),e.lineWidth=u,e.lineJoin=this.strokeJoin,e.lineCap=this.strokeCap,e.miterLimit=this.strokeMiterLimit),o=!1,l&&t.Gf("drawShadows")&&(o=l.isShadowed),e.Il===!1&&(o=!1),l=!0,n===null||i!==null&&i!=="transparent"||(l=!1),a=!1,u=this.strokeDashArray,u!==null&&(a=!0,e.js(u,this.strokeDashOffset)),r.type===Dn.j)e.beginPath(),e.moveTo(r.startX,r.startY),e.lineTo(r.endX,r.endY),n!==null&&e.jk(),e.Se();else if(r.type===Dn.u){var f=r.startX;u=r.startY;var p=r.endX,x=r.endY;r=Math.min(f,p);var N=Math.min(u,x);f=Math.abs(p-f),u=Math.abs(x-u),e.beginPath(),e.rect(r,N,f,u),i!==null&&e.ng(i),n!==null&&(l&&o&&Bc(e),e.jk(),l&&o&&Jc(e)),e.Se()}else if(r.type===Dn.F)f=r.startX,u=r.startY,p=r.endX,x=r.endY,r=Math.abs(p-f)/2,N=Math.abs(x-u)/2,f=Math.min(f,p)+r,u=Math.min(u,x)+N,e.beginPath(),e.moveTo(f,u-N),e.bezierCurveTo(f+qe.wg*r,u-N,f+r,u-qe.wg*N,f+r,u),e.bezierCurveTo(f+r,u+qe.wg*N,f+qe.wg*r,u+N,f,u+N),e.bezierCurveTo(f-qe.wg*r,u+N,f-r,u+qe.wg*N,f-r,u),e.bezierCurveTo(f-r,u-qe.wg*N,f-qe.wg*r,u-N,f,u-N),e.closePath(),i!==null&&e.ng(i),n!==null&&(l&&o&&Bc(e),e.jk(),l&&o&&Jc(e)),e.Se();else if(r.type===Dn.o)for(r=r.figures,u=r.length,N=0;N<u;N++){f=r.s[N],e.beginPath(),e.moveTo(f.startX,f.startY),p=f.segments.s,x=p.length;for(var R=null,_=0;_<x;_++){var V=p[_];switch(V.type){case Eo:e.moveTo(V.endX,V.endY);break;case vo:e.lineTo(V.endX,V.endY);break;case Wa:e.bezierCurveTo(V.point1X,V.point1Y,V.point2X,V.point2Y,V.endX,V.endY);break;case js:e.quadraticCurveTo(V.point1X,V.point1Y,V.endX,V.endY);break;case sa:if(V.radiusX===V.radiusY){var xe=Math.PI/180;e.arc(V.point1X,V.point1Y,V.radiusX,V.startAngle*xe,(V.startAngle+V.sweepAngle)*xe,0>V.sweepAngle,R!==null?R.endX:f.startX,R!==null?R.endY:f.startY)}else if(R=fs(V,f),xe=R.length,xe===0)e.lineTo(V.centerX,V.centerY);else for(var ue=0;ue<xe;ue++){var Fe=R[ue];ue===0&&e.lineTo(Fe[0],Fe[1]),e.bezierCurveTo(Fe[2],Fe[3],Fe[4],Fe[5],Fe[6],Fe[7])}break;case Gs:if(ue=xe=0,R!==null&&R.type===sa){if(R=fs(R,f),Fe=R.length,Fe===0){e.lineTo(V.endX,V.endY);break}R=R[Fe-1]||null,R!==null&&(xe=R[6],ue=R[7])}else xe=R!==null?R.endX:f.startX,ue=R!==null?R.endY:f.startY;if(R=as(V,f,xe,ue),xe=R.length,xe===0){e.lineTo(V.endX,V.endY);break}for(ue=0;ue<xe;ue++)Fe=R[ue],e.bezierCurveTo(Fe[2],Fe[3],Fe[4],Fe[5],Fe[6],Fe[7]);break;default:Ve("Segment not of valid type: "+V.type)}V.isClosed&&e.closePath(),R=V}p=f.isFilled,o?f.isShadowed?(p===!0&&i!=="transparent"&&i!==null&&e.ng(i,f.isEvenOdd),n!==null&&(p&&l&&Bc(e),e.jk(),p&&l&&Jc(e))):(Bc(e),p&&i!=="transparent"&&i!==null&&e.ng(i,f.isEvenOdd),n!==null&&e.jk(),Jc(e)):(p&&i!==null&&e.ng(i,f.isEvenOdd),n!==null&&e.jk()),e.Se(N)}if(a&&e.fs(),this.pathPattern!==null){if(n=this.pathPattern,n.measure(1/0,1/0),i=n.measuredBounds,n.arrange(0,0,i.width,i.height),o=this.geometry,e.save(),e.beginPath(),i=Rt(),o.type===Dn.j)i.push(o.startX),i.push(o.startY),i.push(o.endX),i.push(o.endY),Cf(e,t,i,n);else if(o.type===Dn.o)for(o=o.figures.iterator;o.next();){for(l=o.value,i.length=0,i.push(l.startX),i.push(l.startY),a=l.startX,r=l.startY,u=a,N=r,f=l.segments.s,p=f.length,x=0;x<p;x++){switch(_=f[x],_.type){case Eo:Cf(e,t,i,n),i.length=0,i.push(_.endX),i.push(_.endY),a=_.endX,r=_.endY,u=a,N=r;break;case vo:i.push(_.endX),i.push(_.endY),a=_.endX,r=_.endY;break;case Wa:qe.Qe(a,r,_.point1X,_.point1Y,_.point2X,_.point2Y,_.endX,_.endY,.5,i),a=_.endX,r=_.endY;break;case js:qe.ep(a,r,_.point1X,_.point1Y,_.endX,_.endY,.5,i),a=_.endX,r=_.endY;break;case sa:if(V=fs(_,l),R=V.length,R===0){i.push(_.centerX),i.push(_.centerY),a=_.centerX,r=_.centerY;break}for(xe=0;xe<R;xe++)ue=V[xe],qe.Qe(a,r,ue[2],ue[3],ue[4],ue[5],ue[6],ue[7],.5,i),a=ue[6],r=ue[7];break;case Gs:if(V=as(_,l,a,r),R=V.length,R===0){i.push(_.endX),i.push(_.endY),a=_.endX,r=_.endY;break}for(xe=0;xe<R;xe++)ue=V[xe],qe.Qe(a,r,ue[2],ue[3],ue[4],ue[5],ue[6],ue[7],.5,i),a=ue[6],r=ue[7];break;default:Ve("Segment not of valid type: "+_.type)}_.isClosed&&(i.push(u),i.push(N),Cf(e,t,i,n))}Cf(e,t,i,n)}else if(o.type===Dn.u)i.push(o.startX),i.push(o.startY),i.push(o.endX),i.push(o.startY),i.push(o.endX),i.push(o.endY),i.push(o.startX),i.push(o.endY),i.push(o.startX),i.push(o.startY),Cf(e,t,i,n);else if(o.type===Dn.F){if(r=new Ca,r.startX=o.endX,r.startY=(o.startY+o.endY)/2,a=new Dr(sa),a.startAngle=0,a.sweepAngle=360,a.centerX=(o.startX+o.endX)/2,a.centerY=(o.startY+o.endY)/2,a.radiusX=Math.abs(o.startX-o.endX)/2,a.radiusY=Math.abs(o.startY-o.endY)/2,r.add(a),o=fs(a,r),l=o.length,l===0)i.push(a.centerX),i.push(a.centerY);else for(a=r.startX,r=r.startY,u=0;u<l;u++)N=o[u],qe.Qe(a,r,N[2],N[3],N[4],N[5],N[6],N[7],.5,i),a=N[6],r=N[7];Cf(e,t,i,n)}Jt(i),e.restore(),e.Vc(!1)}}}},U.kk=function(e,t,n){return!st.prototype.kk.call(this,e,t,n)||this.xc===null&&this.Ui===null||this.ua===null||this.pathPattern!==null||this.geometry.figures.length!==this.svg.getElementsByTagName("path").length?!1:(e.Hl=this.svg,this.hh(e,t),e.Hl=null,!0)},U.nk=function(e){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:st.prototype.nk.call(this,e)},U.Dv=function(e,t){if(e.nodeName!=="g")e.setAttributeNS(null,"filter",t);else{e=e.getElementsByTagName("path");for(var n=0;n<e.length;n++)e[n].setAttributeNS(null,"filter",t)}},U.ga=function(e,t){if(t===void 0&&(t=new he),e instanceof ai){e.Mc()&&Ve("getDocumentPoint Spot must be a real, specific Spot, not: "+e.toString());var n=this.naturalBounds,i=this.strokeWidth;t.h(e.x*(n.width+i)-i/2+n.x+e.offsetX,e.y*(n.height+i)-i/2+n.y+e.offsetY)}else t.set(e);return this.oe.Ga(t),t},U.mi=function(e){e===void 0&&(e=new Zt);var t=this.naturalBounds,n=this.oe;t=Zt.allocAt(t.x,t.y,t.width,t.height);var i=this.strokeWidth;return t.Bc(i/2,i/2),i=he.allocAt(t.x,t.y).transform(n),e.h(i.x,i.y,0,0),i.h(t.right,t.y).transform(n),Pr(e,i.x,i.y,0,0),i.h(t.right,t.bottom).transform(n),Pr(e,i.x,i.y,0,0),i.h(t.x,t.bottom).transform(n),Pr(e,i.x,i.y,0,0),Zt.free(t),he.free(i),e},U.gh=function(e,t){var n=this.geometry;if(n===null||this.fill===null&&this.stroke===null)return!1;var i=n.bounds,r=this.strokeWidth/2;n.type!==Dn.j||t||(r+=2);var o=Zt.alloc();if(o.assign(i),o.Bc(r+2,r+2),!o.ca(e))return Zt.free(o),!1;if(i=r+1e-4,n.type===Dn.j)return this.stroke===null||(i=(n.endX-n.startX)*(e.x-n.startX)+(n.endY-n.startY)*(e.y-n.startY),0>(n.startX-n.endX)*(e.x-n.endX)+(n.startY-n.endY)*(e.y-n.endY)||0>i)?!1:(Zt.free(o),qe.Yb(n.startX,n.startY,n.endX,n.endY,r,e.x,e.y));if(n.type===Dn.u){t=n.startX;var a=n.startY,l=n.endX;if(n=n.endY,o.x=Math.min(t,l),o.y=Math.min(a,n),o.width=Math.abs(l-t),o.height=Math.abs(n-a),this.fill===null){if(o.Bc(-i,-i),o.ca(e))return Zt.free(o),!1;o.Bc(i,i)}return this.stroke!==null&&o.Bc(r,r),e=o.ca(e),Zt.free(o),e}if(n.type===Dn.F){a=n.startX,r=n.startY,l=n.endX;var u=n.endY;if(n=Math.min(a,l),t=Math.min(r,u),a=Math.abs(l-a)/2,r=Math.abs(u-r)/2,n=e.x-(n+a),t=e.y-(t+r),this.fill===null){if(a-=i,r-=i,0>=a||0>=r||1>=n*n/(a*a)+t*t/(r*r))return Zt.free(o),!1;a+=i,r+=i}return this.stroke!==null&&(a+=i,r+=i),Zt.free(o),0>=a||0>=r?!1:1>=n*n/(a*a)+t*t/(r*r)}if(n.type===Dn.o)return Zt.free(o),this.fill===null?gl(n,e.x,e.y,r):pl(n,e,r,1<this.strokeWidth,t);Ve("Unknown Geometry type: "+n.type)},U.Wl=function(e,t,n,i){var r=this.desiredSize,o=this.ig;if(e=Math.max(e,0),t=Math.max(t,0),this.Rd!==null)var a=this.geometry.bounds;else{var l=this.figure,u=Dg[l];if(u===void 0){var f=qe.Ze[l];typeof f=="string"&&(f=qe.Ze[f]),typeof f=="function"?(u=f(null,100,100),Dg[l]=u):Ve("Unsupported Figure: "+l)}a=u.bounds}l=a.width,u=a.height,f=a.width;var p=a.height;switch(_l(this,!0)){case En:i=n=0;break;case Tn:f=Math.max(e-o,0),p=Math.max(t-o,0);break;case bi:f=Math.max(e-o,0),i=0;break;case Di:n=0,p=Math.max(t-o,0)}isFinite(r.width)&&(f=r.width),isFinite(r.height)&&(p=r.height);var x=this.maxSize,N=this.minSize;switch(n=Math.max(n-o,N.width),i=Math.max(i-o,N.height),f=Math.min(x.width,f),p=Math.min(x.height,p),f=isFinite(f)?Math.max(n,f):Math.max(l,n),p=isFinite(p)?Math.max(i,p):Math.max(u,i),n=Rg(this),n){case En:break;case Tn:l=f,u=p;break;case ci:n=Math.min(f/l,p/u),isFinite(n)||(n=1),l*=n,u*=n;break;default:Ve(n+" is not a valid geometryStretch.")}this.Rd!==null?(l===0&&(l=.001),u===0&&(u=.001),n=this.Rd!==null?this.Rd:this.ua,a=n.bounds,i=l/a.width,a=u/a.height,isFinite(i)||(i=1),isFinite(a)||(a=1),this.ua=i===1&&a===1?n:n.copy().scale(i,a)):this.ua!==null&&qe.$(this.ua.Sk,e-o)&&qe.$(this.ua.Rk,t-o)||(this.ua=lr.makeGeometry(this,l,u)),a=this.ua.bounds,e===1/0||t===1/0?this.Ge(a.x-o/2,a.y-o/2,e===0&&l===0?0:a.width+o,t===0&&u===0?0:a.height+o):this.Ge(-(o/2),-(o/2),f+o,p+o),r.w()?(f=r.width,p=r.height,f=Math.min(x.width,f),p=Math.min(x.height,p),f=Math.max(N.width,f),p=Math.max(N.height,p),this.dc.h(0,0,f,p)):this.dc.assign(a)};function Rg(e){var t=e.geometryStretch;return e.Rd!==null?t===er?Tn:t:t===er?Dg[e.figure].defaultStretch:t}U.eh=function(e,t,n,i){ll(this,e,t,n,i)},U.rs=function(e,t,n){return this.Sj(e.x,e.y,t.x,t.y,n)},U.Sj=function(e,t,n,i,r){var o=this.transform,a=1/(o.m11*o.m22-o.m12*o.m21),l=o.m22*a,u=-o.m12*a,f=-o.m21*a,p=o.m11*a,x=a*(o.m21*o.dy-o.m22*o.dx),N=a*(o.m12*o.dx-o.m11*o.dy);o=e*l+t*f+x,a=e*u+t*p+N,l=n*l+i*f+x,u=n*u+i*p+N,x=this.ig/2,f=this.ua,f===null&&(this.measure(1/0,1/0),f=this.ua);var R=f.bounds;if(p=!1,f.type===Dn.j)if(1.5>=this.strokeWidth)p=qe.Ve(f.startX,f.startY,f.endX,f.endY,o,a,l,u,r);else{if(f.startX===f.endX?(i=x,p=0):(t=(f.endY-f.startY)/(f.endX-f.startX),p=x/Math.sqrt(1+t*t),i=p*t),t=Rt(),e=new he,qe.Ve(f.startX+i,f.startY+p,f.endX+i,f.endY+p,o,a,l,u,e)&&t.push(e),e=new he,qe.Ve(f.startX-i,f.startY-p,f.endX-i,f.endY-p,o,a,l,u,e)&&t.push(e),e=new he,qe.Ve(f.startX+i,f.startY+p,f.startX-i,f.startY-p,o,a,l,u,e)&&t.push(e),e=new he,qe.Ve(f.endX+i,f.endY+p,f.endX-i,f.endY-p,o,a,l,u,e)&&t.push(e),l=t.length,l===0)return Jt(t),!1;for(p=!0,u=1/0,i=0;i<l;i++)e=t[i],n=(e.x-o)*(e.x-o)+(e.y-a)*(e.y-a),n<u&&(u=n,r.x=e.x,r.y=e.y);Jt(t)}else if(f.type===Dn.u)p=qe.Ff(R.x-x,R.y-x,R.x+R.width+x,R.y+R.height+x,o,a,l,u,r);else if(f.type===Dn.F){t=Zt.allocAt(R.x,R.y,R.width,R.height).Bc(x,x);e:if(t.width===0)p=qe.Ve(t.x,t.y,t.x,t.y+t.height,o,a,l,u,r);else if(t.height===0)p=qe.Ve(t.x,t.y,t.x+t.width,t.y,o,a,l,u,r);else{if(e=t.width/2,f=t.height/2,i=t.x+e,p=t.y+f,n=9999,o!==l&&(n=(a-u)/(o-l)),9999>Math.abs(n)){if(u=a-p-n*(o-i),0>e*e*n*n+f*f-u*u){r.x=NaN,r.y=NaN,p=!1;break e}x=Math.sqrt(e*e*n*n+f*f-u*u),l=(-(e*e*n*u)+e*f*x)/(f*f+e*e*n*n)+i,e=(-(e*e*n*u)-e*f*x)/(f*f+e*e*n*n)+i,f=n*(l-i)+u+p,u=n*(e-i)+u+p,Math.abs((o-l)*(o-l))+Math.abs((a-f)*(a-f))<Math.abs((o-e)*(o-e))+Math.abs((a-u)*(a-u))?(r.x=l,r.y=f):(r.x=e,r.y=u)}else{if(l=f*f,u=o-i,l-=l/(e*e)*u*u,0>l){r.x=NaN,r.y=NaN,p=!1;break e}u=Math.sqrt(l),l=p+u,u=p-u,Math.abs(l-a)<Math.abs(u-a)?(r.x=o,r.y=l):(r.x=o,r.y=u)}p=!0}Zt.free(t)}else if(f.type===Dn.o){N=he.alloc();var _=l-o,V=u-a,xe=_*_+V*V,ue=o,Fe=a;if(0<xe&&R.contains(ue,Fe)&&(N.x=ue,N.y=Fe,this.ca(N)))for(_!==0&&.5>Math.abs(_)?(V*=.5/_,_=.5):V!==0&&.5>Math.abs(V)&&(_*=.5/V,V=.5),ue-=_,Fe-=V;R.contains(ue,Fe);)ue-=_,Fe-=V;for(r.x=l,r.y=u,V=0;V<f.figures.count;V++){var Ue=f.figures.s[V],We=Ue.isFilled?ue:o,rt=Ue.isFilled?Fe:a,At=Ue.segments;R=Ue.startX,_=Ue.startY;for(var Kn=R,ri=_,qn=0;qn<At.count;qn++){var Rn=At.s[qn],mn=Rn.type,Ji=Rn.endX,Wi=Rn.endY,Jr=!1;switch(mn){case Eo:Kn=Ji,ri=Wi;break;case vo:Jr=$0(R,_,Ji,Wi,We,rt,l,u,N);break;case Wa:Jr=qe.Eo(R,_,Rn.point1X,Rn.point1Y,Rn.point2X,Rn.point2Y,Ji,Wi,We,rt,l,u,.6,N);break;case js:Jr=qe.Eo(R,_,R+2/3*(Rn.point1X-R),_+2/3*(Rn.point1Y-_),Ji+2/3*(Rn.point1X-Ji),Wi+2/3*(Rn.point1Y-Wi),Ji,Wi,We,rt,l,u,.6,N);break;case sa:case Gs:mn=Rn.type===sa?fs(Rn,Ue):as(Rn,Ue,R,_);var Io=mn.length;if(Io===0){Jr=$0(R,_,Rn.type===sa?Rn.centerX:Rn.endX,Rn.type===sa?Rn.centerY:Rn.endY,We,rt,l,u,N);break}for(Wi=null,Ji=0;Ji<Io;Ji++){if(Wi=mn[Ji],Ji===0&&$0(R,_,Wi[0],Wi[1],We,rt,l,u,N)){var hs=H0(We,rt,N,xe,r);hs<xe&&(xe=hs,p=!0)}qe.Eo(Wi[0],Wi[1],Wi[2],Wi[3],Wi[4],Wi[5],Wi[6],Wi[7],We,rt,l,u,.6,N)&&(hs=H0(We,rt,N,xe,r),hs<xe&&(xe=hs,p=!0))}Ji=Wi[6],Wi=Wi[7];break;default:Ve("Unknown Segment type: "+mn)}R=Ji,_=Wi,Jr&&(Jr=H0(We,rt,N,xe,r),Jr<xe&&(xe=Jr,p=!0)),Rn.isClosed&&(Ji=Kn,Wi=ri,$0(R,_,Ji,Wi,We,rt,l,u,N)&&(Rn=H0(We,rt,N,xe,r),Rn<xe&&(xe=Rn,p=!0)))}}o=n-e,a=i-t,l=Math.sqrt(o*o+a*a),l!==0&&(o/=l,a/=l),r.x-=o*x,r.y-=a*x,he.free(N)}else Ve("Unknown Geometry type: "+f.type);return p?(this.transform.Ga(r),!0):!1};function H0(e,t,n,i,r){return e=n.x-e,t=n.y-t,t=e*e+t*t,t<i?(r.x=n.x,r.y=n.y,t):i}function $0(e,t,n,i,r,o,a,l,u){if(qe.$(e,n)&&qe.$(t,i)||qe.$(r,a)&&qe.$(o,l))return!1;var f=!1,p=(r-a)*(t-i)-(o-l)*(e-n);return p===0?!1:(u.x=((r*l-o*a)*(e-n)-(r-a)*(e*i-t*n))/p,u.y=((r*l-o*a)*(t-i)-(o-l)*(e*i-t*n))/p,(e>n?e-n:n-e)<(t>i?t-i:i-t)?(e=t<i?t:i,t=t<i?i:t,(u.y>e||qe.$(u.y,e))&&(u.y<t||qe.$(u.y,t))&&(f=!0)):(t=e<n?e:n,e=e<n?n:e,(u.x>t||qe.$(u.x,t))&&(u.x<e||qe.$(u.x,e))&&(f=!0)),f)}U.fh=function(e,t){if(t===void 0)return e.Re(this.actualBounds);var n=this.ua;n===null&&(this.measure(1/0,1/0),n=this.ua),n=n.bounds;var i=this.strokeWidth/2,r=!1,o=he.alloc();return o.h(n.x-i,n.y-i),e.ca(t.Ga(o))&&(o.h(n.x-i,n.bottom+i),e.ca(t.Ga(o))&&(o.h(n.right+i,n.bottom+i),e.ca(t.Ga(o))&&(o.h(n.right+i,n.y-i),e.ca(t.Ga(o))&&(r=!0)))),he.free(o),r},U.Yc=function(e,t){if(this.fh(e,t)||t===void 0&&(t=this.transform,e.Re(this.actualBounds)))return!0;var n=nr.alloc();n.set(t),n.Vj();var i=e.left,r=e.right,o=e.top;e=e.bottom;var a=he.alloc();if(a.h(i,o),n.Ga(a),this.gh(a,!0)||(a.h(r,o),n.Ga(a),this.gh(a,!0))||(a.h(i,e),n.Ga(a),this.gh(a,!0))||(a.h(r,e),n.Ga(a),this.gh(a,!0)))return he.free(a),!0;var l=he.alloc(),u=he.alloc();return n.set(t),n.bv(this.transform),n.Vj(),l.x=r,l.y=o,l.transform(n),a.x=i,a.y=o,a.transform(n),t=!1,Sd(this,a,l,u)?t=!0:(a.x=r,a.y=e,a.transform(n),Sd(this,a,l,u)?t=!0:(l.x=i,l.y=e,l.transform(n),Sd(this,a,l,u)?t=!0:(a.x=i,a.y=o,a.transform(n),Sd(this,a,l,u)&&(t=!0)))),he.free(a),nr.free(n),he.free(l),he.free(u),t};function Sd(e,t,n,i){if(!e.rs(t,n,i))return!1;e=t.x,t=t.y;var r=n.x,o=n.y;return n=i.x,i=i.y,e===r?(t<o?(e=t,t=o):e=o,i>=e&&i<=t):(e<r?(i=e,e=r):i=r,n>=i&&n<=e)}U.tx=function(e,t,n){function i(xe,ue){for(var Fe=xe.length,Ue=0;Ue<Fe;Ue+=2)if(ue.zd(xe[Ue],xe[Ue+1])>r)return!0;return!1}if(n&&this.fill!==null&&this.gh(e,!0))return!0;var r=e.Bf(t),o=r;if(1.5<this.strokeWidth&&(r=this.strokeWidth/2+Math.sqrt(r),r*=r),t=this.ua,t===null&&(this.measure(1/0,1/0),t=this.ua,t===null))return!1;if(!n){var a=t.bounds,l=a.x,u=a.y,f=a.x+a.width;if(a=a.y+a.height,Wr(e.x,e.y,l,u)<=r&&Wr(e.x,e.y,f,u)<=r&&Wr(e.x,e.y,l,a)<=r&&Wr(e.x,e.y,f,a)<=r)return!0}if(l=t.startX,u=t.startY,f=t.endX,a=t.endY,t.type===Dn.j){if(n=(l-f)*(e.x-f)+(u-a)*(e.y-a),Lr(e.x,e.y,l,u,f,a)<=(0<=(f-l)*(e.x-l)+(a-u)*(e.y-u)&&0<=n?r:o))return!0}else{if(t.type===Dn.u)return t=!1,n&&(t=Lr(e.x,e.y,l,u,l,a)<=r||Lr(e.x,e.y,l,u,f,u)<=r||Lr(e.x,e.y,f,u,f,a)<=r||Lr(e.x,e.y,l,a,f,a)<=r),t;if(t.type===Dn.F){t=e.x-(l+f)/2,o=e.y-(u+a)/2;var p=Math.abs(f-l)/2,x=Math.abs(a-u)/2;if(p===0||x===0)return Lr(e.x,e.y,l,u,f,a)<=r;if(n){if(e=qe.$y(p,x,t,o),e*e<=r)return!0}else return!(Wr(t,o,-p,0)>=r||Wr(t,o,0,-x)>=r||Wr(t,o,0,x)>=r||Wr(t,o,p,0)>=r)}else if(t.type===Dn.o){if(f=t.bounds,o=f.x,l=f.y,u=f.x+f.width,f=f.y+f.height,e.x>u&&e.x<o&&e.y>f&&e.y<l&&Lr(e.x,e.y,o,l,o,f)>r&&Lr(e.x,e.y,o,l,u,l)>r&&Lr(e.x,e.y,u,f,o,f)>r&&Lr(e.x,e.y,u,f,u,l)>r)return!1;if(o=Math.sqrt(r),n){if(this.fill===null?gl(t,e.x,e.y,o):pl(t,e,o,!0,!1))return!0}else{for(n=t.figures,t=0;t<n.count;t++){if(o=n.s[t],a=o.startX,p=o.startY,e.zd(a,p)>r)return!1;for(l=o.segments.s,u=l.length,f=0;f<u;f++)switch(x=l[f],x.type){case Eo:case vo:if(a=x.endX,p=x.endY,e.zd(a,p)>r)return!1;break;case Wa:var N=Rt();if(qe.Qe(a,p,x.point1X,x.point1Y,x.point2X,x.point2Y,x.endX,x.endY,.8,N),a=i(N,e),Jt(N),a||(a=x.endX,p=x.endY,e.zd(a,p)>r))return!1;break;case js:if(N=Rt(),qe.ep(a,p,x.point1X,x.point1Y,x.endX,x.endY,.8,N),a=i(N,e),Jt(N),a||(a=x.endX,p=x.endY,e.zd(a,p)>r))return!1;break;case sa:case Gs:N=x.type===sa?fs(x,o):as(x,o,a,p);var R=N.length;if(R===0){if(a=x.type===sa?x.centerX:x.endX,p=x.type===sa?x.centerY:x.endY,e.zd(a,p)>r)return!1;break}x=null;for(var _=Rt(),V=0;V<R;V++)if(x=N[V],_.length=0,qe.Qe(x[0],x[1],x[2],x[3],x[4],x[5],x[6],x[7],.8,_),i(_,e))return Jt(_),!1;Jt(_),x!==null&&(a=x[6],p=x[7]);break;default:Ve("Unknown Segment type: "+x.type)}}return!0}}}return!1},U.qc=function(){this.ua=null},U.kq=function(){return this.ig};function Ay(e){var t=e.diagram;t!==null&&t.undoManager.isUndoingRedoing||(e.segmentOrientation=Mp,e.toArrow!=="None"?(e.segmentIndex=-1,e.alignmentFocus=Ma):e.fromArrow!=="None"&&(e.segmentIndex=0,e.alignmentFocus=new ai(1-Ma.x,Ma.y)))}lr.makeGeometry=function(e,t,n){if(e.toArrow!=="None")var i=zc[e.toArrow];else e.fromArrow!=="None"?i=zc[e.fromArrow]:(i=qe.Ze[e.figure],typeof i=="string"&&(i=qe.Ze[i]),i===void 0&&Ve("Unknown Shape.figure: "+e.figure),i=i(e,t,n),i.Sk=t,i.Rk=n);if(i===null){var r=qe.Ze.Rectangle;typeof r=="function"&&(i=r(e,t,n))}return i};function ky(e){var t=zc[e];if(t===void 0){var n=e.toLowerCase();if(n==="none")return"None";if(t=zc[n],t===void 0){var i=null,r;for(r in qe.um)if(r.toLowerCase()===n){i=r;break}if(i!==null)return e=Dn.parse(qe.um[i],!1),zc[i]=e,n!==i&&(zc[n]=i),i}}return typeof t=="string"?t:t instanceof Dn?e:null}ht.Object.defineProperties(lr.prototype,{geometry:{get:function(){return this.ua!==null?this.ua:this.Rd},set:function(e){var t=this.ua,n=this.Rd;if(t!==e){e!==null?this.Rd=this.ua=e.freeze():this.Rd=this.ua=null;var i=this.part;i!==null&&(i.ag=NaN),this.v(),this.g("geometry",t||n,e),Bs(this)&&(e=this.part,e!==null&&zo(this,e,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(e){e=Dn.parse(e);var t=e.normalize();this.geometry=e,this.position=e=he.allocAt(-t.x,-t.y),he.free(e)}},isGeometryPositioned:{get:function(){return(this.l&1048576)!==0},set:function(e){var t=(this.l&1048576)!==0;t!==e&&(this.l^=1048576,this.v(),this.g("isGeometryPositioned",t,e))}},fill:{get:function(){return this.Ui},set:function(e){var t=this.Ui;t!==e&&(e!==null&&$d(e,"Shape.fill"),e instanceof ao&&e.freeze(),this.Ui=e,this.N(),this.g("fill",t,e))}},stroke:{get:function(){return this.xc},set:function(e){var t=this.xc;t!==e&&(e!==null&&$d(e,"Shape.stroke"),e instanceof ao&&e.freeze(),this.xc=e,this.N(),this.g("stroke",t,e))}},strokeWidth:{get:function(){return this.ig},set:function(e){var t=this.ig;if(t!==e)if(0<=e){this.ig=e,this.v();var n=this.part;n!==null&&(n.ag=NaN),this.g("strokeWidth",t,e)}else Lt(e,"value >= 0",lr,"strokeWidth:value")}},strokeCap:{get:function(){return this.Na!==null?this.Na.Hr:"butt"},set:function(e){var t=this.strokeCap;t!==e&&(typeof e!="string"||e!=="butt"&&e!=="round"&&e!=="square"?Lt(e,'"butt", "round", or "square"',lr,"strokeCap"):(xd(this),this.Na.Hr=e,this.N(),this.g("strokeCap",t,e)))}},strokeJoin:{get:function(){return this.Na!==null?this.Na.Ir:"miter"},set:function(e){var t=this.strokeJoin;t!==e&&(typeof e!="string"||e!=="miter"&&e!=="bevel"&&e!=="round"?Lt(e,'"miter", "bevel", or "round"',lr,"strokeJoin"):(xd(this),this.Na.Ir=e,this.N(),this.g("strokeJoin",t,e)))}},strokeMiterLimit:{get:function(){return this.Na!==null?this.Na.Jr:10},set:function(e){var t=this.strokeMiterLimit;if(t!==e&&1<=e){xd(this),this.Na.Jr=e,this.N();var n=this.part;n!==null&&(n.ag=NaN),this.g("strokeMiterLimit",t,e)}}},strokeDashArray:{get:function(){return this.Yg},set:function(e){var t=this.Yg;if(t!==e){if(e!==null){for(var n=e.length,i=0,r=0;r<n;r++){var o=e[r];0<=o&&isFinite(o)||Ve("strokeDashArray:value "+o+" at index "+r+" must be a positive number or zero."),i+=o}if(i===0){if(t===null)return;e=null}}this.Yg=e,this.N(),this.g("strokeDashArray",t,e)}}},strokeDashOffset:{get:function(){return this.Na!==null?this.Na.uj:0},set:function(e){var t=this.strokeDashOffset;t!==e&&0<=e&&(xd(this),this.Na.uj=e,this.N(),this.g("strokeDashOffset",t,e))}},figure:{get:function(){return this.an},set:function(e){var t=this.an;if(t!==e){var n=qe.Ze[e];typeof n=="function"?n=e:(n=qe.Ze[e.toLowerCase()])||Ve("Unknown Shape.figure: "+e),t!==n&&(e=this.part,e!==null&&(e.ag=NaN),this.an=n,this.Rd=null,this.qc(),this.v(),this.g("figure",t,n))}}},toArrow:{get:function(){return this.Ua!==null?this.Ua.V:"None"},set:function(e){var t=this.toArrow;if(e===!0?e="Standard":e===!1&&(e=""),t!==e){var n=ky(e);n===null?Ve("Unknown Shape.toArrow: "+e):t!==n&&(this.Ua===null&&(this.Ua=new $h),this.Ua.V=n,this.Rd=null,this.qc(),this.v(),Ay(this),this.g("toArrow",t,n))}}},fromArrow:{get:function(){return this.Ua!==null?this.Ua.j:"None"},set:function(e){var t=this.fromArrow;if(e===!0?e="Standard":e===!1&&(e=""),t!==e){var n=ky(e);n===null?Ve("Unknown Shape.fromArrow: "+e):t!==n&&(this.Ua===null&&(this.Ua=new $h),this.Ua.j=n,this.Rd=null,this.qc(),this.v(),Ay(this),this.g("fromArrow",t,n))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:Kr},set:function(e){var t=this.spot1;t.D(e)||(e=e.J(),xd(this),this.Na.fg=e,this.v(),this.g("spot1",t,e))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:Kr},set:function(e){var t=this.spot2;t.D(e)||(e=e.J(),xd(this),this.Na.gg=e,this.v(),this.g("spot2",t,e))}},parameter1:{get:function(){return this.Un},set:function(e){var t=this.Un;t!==e&&(this.Un=e,this.qc(),this.v(),this.g("parameter1",t,e))}},parameter2:{get:function(){return this.Vn},set:function(e){var t=this.Vn;t!==e&&(this.Vn=e,this.qc(),this.v(),this.g("parameter2",t,e))}},naturalBounds:{get:function(){return this.dc}},pathPattern:{get:function(){return this.Na!==null?this.Na.br:null},set:function(e){var t=this.pathPattern;t!==e&&(xd(this),this.Na.br=e,this.N(),this.g("pathPattern",t,e))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:er},set:function(e){var t=this.geometryStretch;t!==e&&(xd(this),this.Na.jq=e,this.v(),this.g("geometryStretch",t,e))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(e){var t=this.interval;if(e=Math.round(e),t!==e&&e!==0&&isFinite(e)){this.fa===null&&(this.fa=new Uc),this.fa.Tk=e;var n=this.diagram;n!==null&&this.panel===n.grid&&Nc(n),this.v(),n=this.panel,n!==null&&(n.graduatedIntervals=null),this.g("interval",t,e)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(e){var t=this.graduatedStart;t!==e&&(0>e?e=0:1<e&&(e=1),this.fa===null&&(this.fa=new Uc),this.fa.u=e,this.v(),this.g("graduatedStart",t,e))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(e){var t=this.graduatedEnd;t!==e&&(0>e?e=0:1<e&&(e=1),this.fa===null&&(this.fa=new Uc),this.fa.j=e,this.v(),this.g("graduatedEnd",t,e))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(e){var t=this.graduatedSkip;t!==e&&(this.fa===null&&(this.fa=new Uc),this.fa.o=e,this.v(),this.g("graduatedSkip",t,e))}}}),lr.prototype.intersectsRect=lr.prototype.Yc,lr.prototype.containedInRect=lr.prototype.fh,lr.prototype.getNearestIntersectionPoint=lr.prototype.rs,lr.prototype.getDocumentBounds=lr.prototype.mi,lr.prototype.getDocumentPoint=lr.prototype.ga;var zc=new oe,Dg=new oe;lr.className="Shape",lr.getFigureGenerators=function(){var e=new Zn,t;for(t in qe.Ze)t!==t.toLowerCase()&&e.add(t,qe.Ze[t]);return e.freeze(),e},lr.defineFigureGenerator=function(e,t){var n=e.toLowerCase(),i=qe.Ze;i[e]=t,i[n]=e},lr.getArrowheadGeometries=function(){var e=new Zn;for(i in qe.um)if(zc[i]===void 0){var t=Dn.parse(qe.um[i],!1);zc[i]=t,t=i.toLowerCase(),t!==i&&(zc[t]=i)}for(var n in zc)if(n!==n.toLowerCase()){var i=zc[n];i instanceof Dn&&e.add(n,i)}return e.freeze(),e},lr.defineArrowheadGeometry=function(e,t){var n=null;typeof t=="string"?n=Dn.parse(t,!1):n=t,t=e.toLowerCase(),t!=="none"&&e!==t||Ve("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+e);var i=zc;i[e]=n,i[t]=e};function Pg(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=er,this.gg=this.fg=Kr}Pg.prototype.copy=function(){var e=new Pg;return e.Hr=this.Hr,e.Ir=this.Ir,e.Jr=this.Jr,e.uj=this.uj,e.br=this.br,e.jq=this.jq,e.fg=this.fg.J(),e.gg=this.gg.J(),e};function Mo(e,t){return st.call(this),K0||(zl=Ea?new $u(null).context:null,K0=!0),this.l|=2097152,this.ec="",this.xc="black",this.Ae="13px sans-serif",this.Lq=this.Cb=this.Gc=0,this.da=this.fa=this.Gm=null,this.Ih=0,this.df=null,this.Le=0,this.ze=this.Qb=this.Qc=null,typeof e=="string"?this.text=e:e&&Object.assign(this,e),t&&Object.assign(this,t),this}yi(Mo,st),Mo.prototype.cloneProtected=function(e){st.prototype.cloneProtected.call(this,e),e.ec=this.ec,e.xc=this.xc,e.Ae=this.Ae,e.Gc=this.Gc,e.Cb=this.Cb,e.Lq=this.Lq,e.Gm=this.Gm,this.fa!==null&&(e.fa=this.fa.copy()),this.da!==null&&(e.da=this.da.nc?this.da:this.da.copy()),e.Ih=this.Ih,e.df=this.df,e.Le=this.Le,e.Qc=this.Qc,e.Qb=this.Qb,e.ze=this.ze};function Mc(e){e.da===null?e.da=new $g:e.da.nc&&(e.da=e.da.copy())}U=Mo.prototype,U.th=function(){st.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function Iy(e,t){e.l=t.l|6144,e.pb=t.opacity,e.Ma=t.background,e.areaBackground=t.areaBackground,e.jd=t.desiredSize.J(),e.minSize=t.minSize.J(),e.maxSize=t.maxSize.J(),t.Lb!==null?e.Lb=t.Lb.copy():e.Lb=null,e.Ca=t.scale,e.Kb=t.angle,e.stretch=t.stretch,e.Kg=t.margin.J(),e.Jb=t.alignment.J(),e.sk=t.alignmentFocus.J(),e.segmentFraction=t.segmentFraction,e.segmentOffset=t.segmentOffset.J(),e.segmentOrientation=t.segmentOrientation,t.tb!==null&&(e.tb=t.tb.copy()),e.shadowVisible=t.shadowVisible,e.ec=t.ec,e.xc=t.xc,e.Ae=t.Ae,e.fa!==null&&(e.fa=t.fa.copy()),t.da!==null&&(e.da=t.da.nc?t.da:t.da.copy()),e.Ih=t.Ih}U.qb=function(e){e.classType===Mo?this.wrap=e:st.prototype.qb.call(this,e)},U.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},U.v=function(){st.prototype.v.call(this)},U.hh=function(e,t){if(this.xc!==null&&this.ec.length!==0&&this.Ae!==null){var n=this.naturalBounds,i=this.actualBounds,r=n.width,o=n.height,a=wp(this),l=e.textAlign=this.textAlign,u=t.tn;l==="start"?l=u?"right":"left":l==="end"&&(l=u?"left":"right"),u=this.isUnderline;var f=this.isStrikethrough;Aa(this,e,this.xc,!0,!1,n,i),(u||f)&&Aa(this,e,this.xc,!1,!1,n,i),i=0,n=!1;var p=this.oe,x=p.dx-(a*p.m21+p.dx);p=p.dy-(a*p.m22+p.dy);var N=t.scale;switch(8>(x*x+p*p)*N*N&&(n=!0),t.ib!==e&&(n=!1),t.ib instanceof ru&&(n=!1),t.Gf("textGreeking")===!1&&(n=!1),t=this.spacingAbove,x=this.spacingBelow,this.flip){case Gr:e.translate(r,0),e.scale(-1,1);break;case Sr:e.translate(0,o),e.scale(1,-1);break;case mo:e.translate(r,o),e.scale(-1,-1)}if(e.yc(),p=this.Gc,N=(t+a+x)*p,o>N&&(i=this.verticalAlignment,i=i.y*o-i.y*N+i.offsetY),p===1&&this.ze!==null)x=this.Cb,x>r&&(x=r),this.Oj(this.ze,e,0,i+t,r,a,x,n,l,u,f);else if(this.Qc!==null&&this.Qb!==null)for(N=0;N<p;N++){var R=this.Qc[N];R>r&&(R=r),i+=t,this.Oj(this.Qb[N],e,0,i,r,a,R,n,l,u,f),i+=a+x}switch(this.flip){case Gr:e.scale(-1,1),e.translate(-r,0);break;case Sr:e.scale(1,-1),e.translate(0,-o);break;case mo:e.scale(-1,-1),e.translate(-r,-o)}}},U.Oj=function(e,t,n,i,r,o,a,l,u,f,p){var x=0;if(l)u==="left"?x=0:u==="right"?x=r-a:u==="center"&&(x=(r-a)/2),t.fillRect(n+x,i+.25*o,a,1);else{if(u==="left"?x=0:u==="right"?x=r:u==="center"&&(x=r/2),r=j0!==null?j0(this,o):.75*o,t.fillText(e,n+x,i+r),e=o/20|0,e===0&&(e=1),u==="right"?x-=a:u==="center"&&(x-=a/2),f){l=G0!==null?G0(this,o):.8*o,u=n+x,f=i+l,r=n+x+a,l=i+l;var N=e;t.beginPath(),t.lineWidth=N,t.moveTo(u,f),t.lineTo(r,l),t.stroke(),t.Se(),t instanceof ru&&t.ad.classList.add("gojs-td")}p&&(p=i+o-o/2.2|0,e%2!==0&&(p+=.5),i=n+x,o=p,n=n+x+a,a=p,x=e,t.beginPath(),t.lineWidth=x,t.moveTo(i,o),t.lineTo(n,a),t.stroke(),t.Se(),t instanceof ru&&t.ad.classList.add("gojs-td"))}},U.kk=function(e,t,n){if(!st.prototype.kk.call(this,e,t,n))return!1;if(Aa(this,e,this.xc,!0,!1,this.naturalBounds,this.actualBounds),n){if(this.svg.getElementsByTagName("text").length===0)return!0;for(t=this.svg.getElementsByClassName("gojs-td"),n=0;n<t.length;n++)ly(e,t[n],!1)}else t=this.svg,t.innerHTML=this.text,ly(e,t,!0);return!0},U.nk=function(e){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:st.prototype.nk.call(this,e)},U.Dv=function(e,t){if(e.nodeName!=="g")e.setAttributeNS(null,"filter",t);else{e=e.getElementsByTagName("text");for(var n=0;n<e.length;n++)e[n].setAttributeNS(null,"filter",t)}},U.Wl=function(e,t,n,i){var r=this.Gc;this.Ih=e,this.l&=-16777217;var o=this.Ae;zl!==null&&Fy!==o&&(Fy=zl.font=o),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var a;if(isNaN(this.desiredSize.width)){if(o=this.ec.replace(/\r\n/g,`
`).replace(/\r/g,`
`),o.length===0)o=8;else if(this.isMultiline){for(var l=a=0,u=!1;!u;){var f=o.indexOf(`
`,l);f===-1&&(f=o.length,u=!0),l=o.substr(l,f-l),this.formatting===Cp&&(l=l.trim()),a=Math.max(a,rc(l)),l=f+1}o=a}else a=o.indexOf(`
`,0),0<=a&&(o=o.substr(0,a)),o=rc(o);o=Math.min(o,e/this.scale)}else o=this.desiredSize.width;if(this.panel!==null&&(o=Math.min(o,this.panel.maxSize.width)),a=Oy(this,o),isNaN(this.desiredSize.height)?a=Math.min(a,t/this.scale):a=this.desiredSize.height,u=a,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===W0&&(t=this.Ae,t=this.overflow===W0?My(t):0,f=this.spacingAbove+this.spacingBelow,f=Math.max(0,wp(this)+f),u=Math.min(this.maxLines-1,Math.max(Math.floor(u/f+.01)-1,0)),!(u+1>=this.Qb.length))){for(this.l|=16777216,f=this.Qb[u],t=Math.max(1,e-t);rc(f)>t&&1<f.length;)f=f.substr(0,f.length-1);f+=Tp,t=rc(f),this.Qb[u]=f,this.Qb=this.Qb.slice(0,u+1),this.Qc[u]=t,this.Qc=this.Qc.slice(0,u+1),this.Le=this.Qb.length,this.Cb=Math.max(this.Cb,t),this.Gc=this.Le,this.Gc===1&&(this.ze=this.Qb[0])}(this.wrap===Ly||isNaN(this.desiredSize.width))&&(o=isNaN(e)?this.Cb:Math.min(e,this.Cb)),o=Math.max(n,o),a=Math.max(i,a),Pa(this.dc,o,a),this.Ge(0,0,o,a),this.svg!==null&&r!==this.Gc&&(this.Uc=!0)},U.eh=function(e,t,n,i){ll(this,e,t,n,i)};function Ep(e,t,n){e.ze===null?(e.ze=t,e.Cb=n):((e.Qb===null||e.Qc===null)&&(e.Qb=[],e.Qc=[],e.Qb.push(e.ze),e.Qc.push(e.Cb)),e.Qb.push(t),e.Qc.push(n),e.Qb.length>e.maxLines&&(e.l|=16777216))}function Fg(e,t,n,i){var r=e.formatting===Cp;r&&(t=t.trim());var o=0,a=e.Ae,l=e.spacingAbove+e.spacingBelow;l=Math.max(0,wp(e)+l);var u=e.overflow===W0?My(a):0;if(e.Gc>=e.maxLines)i!==null&&i.h(0,l);else if(a=t,e.wrap===Bg){e.Le=1;var f=rc(t);if(u===0||f<=n)e.Cb=Math.max(e.Cb,f),Ep(e,t,e.Cb),i!==null&&i.h(f,l);else{for(o=Tf(e,a),a=a.substr(o.length),t=Tf(e,a),f=rc(o+t);0<t.length&&f<=n;)o+=t,a=a.substr(t.length),t=Tf(e,a),f=o+t,r&&(f=f.trim()),f=rc(f);for(r&&(t=t.trim()),o+=t,n=Math.max(1,n-u);rc(o)>n&&1<o.length;)o=o.substr(0,o.length-1);e.l|=16777216,o+=Tp;var p=rc(o);e.Cb=p,Ep(e,o,p),i!==null&&i.h(p,l)}}else{for(u=0,a.length===0&&(u=1,Ep(e,a,0));0<a.length;){for(t=Tf(e,a),a=a.substr(t.length);rc(t)>n;){var x=1;for(f=rc(t.substr(0,x)),p=0;f<=n;)x++,p=f,f=rc(t.substr(0,x));if(x===1){var N=f;o=Math.max(o,f)}else N=p,o=Math.max(o,p);if(x--,1>x&&(x=1),Ep(e,t.substr(0,x),N),u++,t=t.substr(x),e.Gc+u>e.maxLines)break}for(p=Tf(e,a),f=rc(t+p);0<p.length&&f<=n;)t+=p,a=a.substr(p.length),p=Tf(e,a),f=t+p,r&&(f=f.trim()),f=rc(f);if(r&&(t=t.trim()),t!==""&&(t[t.length-1]==="\xAD"&&(t=t.substring(0,t.length-1)+"\u2010"),p.length===0?(x=f,o=Math.max(o,f)):(x=p=rc(t),o=Math.max(o,p)),Ep(e,t,x),u++,e.Gc+u>e.maxLines))break}e.Le=Math.min(e.maxLines,u),e.Cb=Math.max(e.Cb,o),i!==null&&i.h(e.Cb,l*e.Le)}}function Tf(e,t){if(e.wrap===Ry)return t.substr(0,1);for(var n=t.length,i=0,r=Rb;i<n&&!r.test(t.charAt(i));)i++;for(e.formatting===Dy&&(n=Math.min(n,i+1));i<n&&r.test(t.charAt(i));)i++;return i>=t.length?t:t.substr(0,i)}function rc(e){return zl===null?8*e.length:zl.measureText(e).width}function wp(e){if(e.df!==null)return e.df;var t=e.Ae;if(zl===null){var n=16;return e.df=n}return Ug[t]!==void 0&&5e3>Py?n=Ug[t]:(n=1.3*zl.measureText("M").width,Ug[t]=n,Py++),e.df=n}function My(e){if(zl===null)return 6;if(V0[e]!==void 0&&5e3>Hg)var t=V0[e];else t=zl.measureText(Tp).width,V0[e]=t,Hg++;return t}function Oy(e,t){var n=e.ec.replace(/\r\n/g,`
`).replace(/\r/g,`
`),i=e.spacingAbove+e.spacingBelow;if(i=Math.max(0,wp(e)+i),n.length===0)return e.Cb=0,e.Gc=1,i;if(!e.isMultiline){var r=n.indexOf(`
`,0);0<=r&&(n=n.substr(0,r))}r=0;for(var o=e.Gc=0,a,l=!1;!l;){if(a=n.indexOf(`
`,o),a===-1&&(a=n.length,l=!0),o<=a){if(o=n.substr(o,a-o),e.wrap!==Bg){e.Le=0;var u=pi.alloc();Fg(e,o,t,u),r+=u.height,pi.free(u),e.Gc+=e.Le}else Fg(e,o,t,null),r+=i,e.Gc++;e.Gc===e.maxLines&&(l=!0)}o=a+1}return e.Lq=r}ht.Object.defineProperties(Mo.prototype,{font:{get:function(){return this.Ae},set:function(e){var t=this.Ae;t!==e&&(this.Ae=e,this.df=null,this.v(),this.g("font",t,e))}},text:{get:function(){return this.ec},set:function(e){var t=this.ec;e!=null?e=e.toString():e="",t!==e&&(this.ec=e,this.v(),this.g("text",t,e),this.Uc=!0)}},textAlign:{get:function(){return this.da!==null?this.da.Or:"start"},set:function(e){var t=this.textAlign;t===e||e!=="start"&&e!=="end"&&e!=="left"&&e!=="right"&&e!=="center"||(Mc(this),this.da.Or=e,this.N(),this.g("textAlign",t,e))}},flip:{get:function(){return this.da!==null?this.da.Xf:En},set:function(e){var t=this.flip;t!==e&&(Mc(this),this.da.Xf=e,this.N(),this.g("flip",t,e))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:aa},set:function(e){var t=this.verticalAlignment;t.D(e)||(e=e.J(),Mc(this),this.da.Yr=e,El(this),this.g("verticalAlignment",t,e))}},naturalBounds:{get:function(){if(!this.dc.w()){var e=pi.alloc();Fg(this,this.ec,999999,e);var t=e.width;pi.free(e),e=Oy(this,t);var n=this.desiredSize;isNaN(n.width)||(t=n.width),isNaN(n.height)||(e=n.height),Pa(this.dc,t,e)}return this.dc}},isMultiline:{get:function(){return(this.l&2097152)!==0},set:function(e){var t=(this.l&2097152)!==0;t!==e&&(this.l^=2097152,this.v(),this.g("isMultiline",t,e))}},isUnderline:{get:function(){return(this.l&4194304)!==0},set:function(e){var t=(this.l&4194304)!==0;t!==e&&(this.l^=4194304,this.Uc=!0,this.N(),this.g("isUnderline",t,e))}},isStrikethrough:{get:function(){return(this.l&8388608)!==0},set:function(e){var t=(this.l&8388608)!==0;t!==e&&(this.l^=8388608,this.Uc=!0,this.N(),this.g("isStrikethrough",t,e))}},wrap:{get:function(){return this.da!==null?this.da.$r:_g},set:function(e){var t=this.wrap;t!==e&&(Mc(this),this.da.$r=e,this.v(),this.g("wrap",t,e))}},overflow:{get:function(){return this.da!==null?this.da.$q:zg},set:function(e){var t=this.overflow;t!==e&&(Mc(this),this.da.$q=e,this.v(),this.g("overflow",t,e))}},isOverflowed:{get:function(){return(this.l&16777216)!==0}},stroke:{get:function(){return this.xc},set:function(e){var t=this.xc;t!==e&&(e!==null&&$d(e,"TextBlock.stroke"),e instanceof ao&&e.freeze(),this.xc=e,this.N(),this.g("stroke",t,e))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return wp(this)}},editable:{get:function(){return(this.l&1048576)!==0},set:function(e){var t=(this.l&1048576)!==0;t!==e&&(this.l^=1048576,this.g("editable",t,e))}},textEditor:{get:function(){return this.da!==null?this.da.Qr:null},set:function(e){var t=this.textEditor;t!==e&&(Mc(this),this.da.Qr=e,this.g("textEditor",t,e))}},errorFunction:{get:function(){return this.da!==null?this.da.Hd:null},set:function(e){var t=this.errorFunction;t!==e&&(Mc(this),this.da.Hd=e,this.g("errorFunction",t,e))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(e){var t=this.interval;if(e=Math.round(e),t!==e&&e!==0&&isFinite(e)){this.fa===null&&(this.fa=new Uc),this.fa.Tk=e,this.v();var n=this.panel;n!==null&&(n.graduatedIntervals=null),this.g("interval",t,e)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(e){var t=this.graduatedStart;t!==e&&(0>e?e=0:1<e&&(e=1),this.fa===null&&(this.fa=new Uc),this.fa.u=e,this.v(),this.g("graduatedStart",t,e))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(e){var t=this.graduatedEnd;t!==e&&(0>e?e=0:1<e&&(e=1),this.fa===null&&(this.fa=new Uc),this.fa.j=e,this.v(),this.g("graduatedEnd",t,e))}},graduatedFunction:{get:function(){return this.fa!==null?this.fa.F:null},set:function(e){var t=this.graduatedFunction;t!==e&&(this.fa===null&&(this.fa=new Uc),this.fa.F=e,this.v(),this.g("graduatedFunction",t,e))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(e){var t=this.graduatedSkip;t!==e&&(this.fa===null&&(this.fa=new Uc),this.fa.o=e,this.v(),this.g("graduatedSkip",t,e))}},textValidation:{get:function(){return this.da!==null?this.da.vj:null},set:function(e){var t=this.textValidation;t!==e&&(Mc(this),this.da.vj=e,this.g("textValidation",t,e))}},textEdited:{get:function(){return this.da!==null?this.da.Pr:null},set:function(e){var t=this.textEdited;t!==e&&(Mc(this),this.da.Pr=e,this.g("textEdited",t,e))}},spacingAbove:{get:function(){return this.da!==null?this.da.Dr:0},set:function(e){var t=this.spacingAbove;t!==e&&(Mc(this),this.da.Dr=e,this.v(),this.g("spacingAbove",t,e))}},spacingBelow:{get:function(){return this.da!==null?this.da.Er:0},set:function(e){var t=this.spacingBelow;t!==e&&(Mc(this),this.da.Er=e,this.v(),this.g("spacingBelow",t,e))}},formatting:{get:function(){return this.da!==null?this.da.gq:Cp},set:function(e){var t=this.formatting;t!==e&&(Mc(this),this.da.gq=e,this.v(),this.g("formatting",t,e))}},maxLines:{get:function(){return this.da!==null?this.da.Jq:1/0},set:function(e){var t=this.maxLines;t!==e&&(e=Math.floor(e),0>=e&&Lt(e,"> 0",Mo,"maxLines"),Mc(this),this.da.Jq=e,this.v(),this.g("maxLines",t,e))}},metrics:{get:function(){return{arrSize:this.Qc!==null?this.Qc:[this.Cb],arrText:this.Qb!==null?this.Qb:[this.ze],maxLineWidth:this.Cb,fontHeight:this.df}}},choices:{get:function(){return this.Gm},set:function(e){var t=this.Gm;t!==e&&(this.Gm=e,this.g("choices",t,e))}}});var j0=null,G0=null,Bg=new Yt(Mo,"None",0),Ly=new Yt(Mo,"WrapFit",1),_g=new Yt(Mo,"WrapDesiredSize",2),Ry=new Yt(Mo,"WrapBreakAll",3),zg=new Yt(Mo,"OverflowClip",0),W0=new Yt(Mo,"OverflowEllipsis",1),Cp=new Yt(Mo,"FormatTrim",0),Dy=new Yt(Mo,"FormatNone",0),Rb=/[ \u200b\u00ad]/,Ug=new oe,Py=0,V0=new oe,Hg=0,Tp="...",Fy="",zl=null,K0=!1;Mo.className="TextBlock";function $g(){this.nc=!1,this.Hd=null,this.Xf=En,this.gq=Cp,this.Jq=1/0,this.$q=zg,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=aa,this.$r=_g}$g.prototype.copy=function(){var e=new $g;return e.Hd=this.Hd,e.Xf=this.Xf,e.gq=this.gq,e.Jq=this.Jq,e.$q=this.$q,e.Dr=this.Dr,e.Er=this.Er,e.Or=this.Or,e.Pr=this.Pr,e.Qr=this.Qr,e.vj=this.vj,e.Yr=this.Yr,e.$r=this.$r,e},Mo.getEllipsis=function(){return Tp},Mo.setEllipsis=function(e){Tp=e,V0=new oe,Hg=0},Mo.getBaseline=function(){return j0},Mo.setBaseline=function(e){j0=e},Mo.getUnderline=function(){return G0},Mo.setUnderline=function(e){G0=e},Mo.isValidFont=function(e){if(K0||(zl=Ea?new $u(null).context:null,K0=!0),zl===null)return!0;var t=zl.font;if(e===t||e==="10px sans-serif")return!0;zl.font="10px sans-serif",zl.font=e;var n=zl.font;if(n!=="10px sans-serif")return zl.font=t,!0;zl.font="19px serif";var i=zl.font;return zl.font=e,n=zl.font,zl.font=t,n!==i},Mo.FormatNone=Dy,Mo.FormatTrim=Cp,Mo.None=Bg,Mo.OverflowClip=zg,Mo.OverflowEllipsis=W0,Mo.WrapBreakAll=Ry,Mo.WrapDesiredSize=_g,Mo.WrapFit=Ly;function Uc(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}Uc.prototype.copy=function(){var e=new Uc;return e.Tk=this.Tk,e.u=this.u,e.j=this.j,e.F=this.F,e.o=this.o,e},Uc.className="GradElementSettings";function Ul(e,t){st.call(this),this.Eg=null,this.qo="",this.Xg=wn,this.Nk=Tn,this.Zg=this.Hd=null,this.Mk=Rr,this.Xf=En,this.vl=null,this.qn=!1,this.en=!0,this.al=!1,this.bt=this.rl=null,typeof e=="string"?this.source=e:e&&Object.assign(this,e),t&&Object.assign(this,t)}var Nf;yi(Ul,st),Ul.prototype.cloneProtected=function(e){st.prototype.cloneProtected.call(this,e),e.qo=this.qo,e.element=this.Eg,e.Xg=this.Xg.J(),e.Nk=this.Nk,e.Xf=this.Xf,e.Hd=this.Hd,e.Zg=this.Zg,e.Mk=this.Mk.J(),e.en=this.en,e.rl=this.rl},Ul.prototype.qb=function(e){e===En||e===ci||e===Fr?this.imageStretch=e:st.prototype.qb.call(this,e)},Ul.prototype.toString=function(){return"Picture("+this.source+")#"+Mt(this)};function Af(e){e===void 0&&(e=""),e!==""?Nf[e]&&(delete Nf[e],Z0--):(Nf=new oe,Z0=0)}function By(e,t){t.qy||(t.Fq=function(n){t.sq=!0,t.ln=!1;var i=t.Bg.copy();if(i!=null){for(i=i.iterator;i.next();){var r=i.value;r.N();var o=t.getAttribute("src")||"",a=r.Og.I(o);if(a!==null)for(var l=a.length,u=0;u<l;u++)o=a[u],r.Xn.add(o),o.Uc=!0,r.$b(),t.hn&&(t.eu===void 0&&(t.eu=n),o.Zg!==null&&o.Zg(o,n))}t.Bg.clear()}e.desiredSize.w()||(Ya(e,!1),e.v())},t.Yp=function(n){t.ln=n;var i=t.Bg.copy();if(i!=null){for(i=i.iterator;i.next();){var r=i.value,o=t.getAttribute("src")||"",a=r.Og.I(o);if(a!==null){r=a.length,o=Rt();for(var l=0;l<r;l++)o.push(a[l]);if(t.hn)for(l=0;l<r;l++)a=o[l],a.Hd!==null&&a.Hd(a,n);Jt(o)}}t.Bg.clear()}},t.addEventListener("load",t.Fq),t.addEventListener("error",t.Yp),t.qy=!0)}Ul.prototype.hA=function(){if(this.source!==""){Af(this.source);var e=this.source;this.source="",this.source=e}},Ul.prototype.redraw=function(){this.N(),this.Uc=!0},Ul.prototype.hh=function(e,t){var n=this.Eg;if(n!==null){var i=n.getAttribute("src");if(!(n instanceof HTMLImageElement&&(i===null||i==="")||n.ln instanceof Event&&e instanceof yd)){var r=e instanceof ru;i=this.naturalBounds;var o=0,a=0,l=this.qn,u=l?+n.width:n.naturalWidth;if(l=l?+n.height:n.naturalHeight,u===void 0&&n.videoWidth&&(u=n.videoWidth),l===void 0&&n.videoHeight&&(l=n.videoHeight),u=u||i.width,l=l||i.height,u!==0&&l!==0){var f=u,p=l;this.sourceRect.w()&&(o=this.Xg.x,a=this.Xg.y,u=this.Xg.width,l=this.Xg.height);var x=u,N=l,R=this.Nk,_=this.Mk;switch(R){case En:if(this.sourceRect.w())break;x>=i.width&&(o=o+_.offsetX+(x*_.x-i.width*_.x)),N>=i.height&&(a=a+_.offsetY+(N*_.y-i.height*_.y)),u=Math.min(i.width,x),l=Math.min(i.height,N);break;case Tn:x=i.width,N=i.height;break;case ci:case Fr:R===ci?(R=Math.min(i.height/N,i.width/x),x*=R,N*=R):R===Fr&&(R=Math.max(i.height/N,i.width/x),x*=R,N*=R,x>=i.width&&(o=(o+_.offsetX+(x*_.x-i.width*_.x)/x)*u),N>=i.height&&(a=(a+_.offsetY+(N*_.y-i.height*_.y)/N)*l),u*=1/(x/i.width),l*=1/(N/i.height),x=i.width,N=i.height)}R=this.Df()*t.scale;var V=x*R*N*R,xe=u*l/V,ue=n.__goCache;R=null;var Fe=Db;if(!r){if(n.sq&&ue!==void 0&&4<V&&xe>Fe*Fe)for(ue.gi===null&&(zy(ue,4,f,p,n),zy(ue,16,f,p,n)),r=ue.gi,f=r.length,p=0;p<f&&r[p].ratio*r[p].ratio<xe;p++)R=r[p];if(!t.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{r=new $u(null).context;try{r.drawImage(this.Eg,0,0)}catch(Ue){this.en=!1}try{r.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(Ue){this.vl=!0}}if(this.vl)return}}switch(r=x<i.width?_.offsetX+(i.width*_.x-x*_.x):0,_=N<i.height?_.offsetY+(i.height*_.y-N*_.y):0,this.flip){case Gr:e.translate(Math.min(i.width,x),0),e.scale(-1,1);break;case Sr:e.translate(0,Math.min(i.height,N)),e.scale(1,-1);break;case mo:e.translate(Math.min(i.width,x),Math.min(i.height,N)),e.scale(-1,-1)}if(e.yc(),t.Gf("pictureRatioOptimization")&&!t.$i&&ue!==void 0&&R!==null&&R.ratio!==1){e.save(),t=R.ratio;try{e.drawImage(R.source,o/t,a/t,Math.min(R.source.width,u/t),Math.min(R.source.height,l/t),r,_,Math.min(i.width,x),Math.min(i.height,N)),e instanceof ru&&(this.bt=[o/t,a/t,Math.min(R.source.width,u/t),Math.min(R.source.height,l/t),r,_,Math.min(i.width,x),Math.min(i.height,N)])}catch(Ue){this.en=!1}e.restore()}else try{e.drawImage(n,o,a,u,l,r,_,Math.min(i.width,x),Math.min(i.height,N)),e instanceof ru&&(this.bt=[o,a,u,l,r,_,Math.min(i.width,x),Math.min(i.height,N)])}catch(Ue){this.en=!1}switch(this.flip){case Gr:e.scale(-1,1),e.translate(-Math.min(i.width,x),0);break;case Sr:e.scale(1,-1),e.translate(0,-Math.min(i.height,N));break;case mo:e.scale(-1,-1),e.translate(-Math.min(i.width,x),-Math.min(i.height,N))}}}}},Ul.prototype.Wl=function(e,t,n,i){var r=this.desiredSize,o=_l(this,!0),a=this.Eg,l=this.qn,u=0,f=0;(l||!this.al&&a&&a.complete)&&(this.al=!0),a===null?(isFinite(r.width)||(e=0),isFinite(r.height)||(t=0)):(u=l?+a.width:a.naturalWidth,f=l?+a.height:a.naturalHeight),isFinite(r.width)||o===Tn||o===bi?(isFinite(e)||(this.sourceRect.w()?e=this.sourceRect.width:a!==null&&(e=u)),n=0):a!==null&&this.al!==!1&&(e=this.sourceRect.w()?this.sourceRect.width:u),isFinite(r.height)||o===Tn||o===Di?(isFinite(t)||(this.sourceRect.w()?t=this.sourceRect.height:a!==null&&(t=f)),i=0):a!==null&&this.al!==!1&&(t=this.sourceRect.w()?this.sourceRect.height:f),isFinite(r.width)&&(e=r.width),isFinite(r.height)&&(t=r.height),r=this.maxSize,o=this.minSize,n=Math.max(n||0,o.width),i=Math.max(i||0,o.height),e=Math.min(r.width,e),t=Math.min(r.height,t),e=Math.max(n,e),t=Math.max(i,t),a===null||a.complete||(isFinite(e)||(e=0),isFinite(t)||(t=0)),Pa(this.dc,e,t),this.Ge(0,0,e,t)},Ul.prototype.eh=function(e,t,n,i){ll(this,e,t,n,i)},ht.Object.defineProperties(Ul.prototype,{element:{get:function(){return this.Eg},set:function(e){var t=this.Eg;if(this.Uc=!0,t!==e){this.qn=e instanceof HTMLCanvasElement;var n=e instanceof HTMLImageElement;e===null||n||e instanceof HTMLVideoElement||this.qn||Ve("Picture.element must be an instance of Image, Canvas, or Video, not: "+e);var i=this.diagram;i!==null&&rp(i,this),this.Eg=e,e!==null&&n&&e.Bg===void 0&&(e.Bg=new Xt),i!==null&&n&&zh(i,this),e!==null&&(this.qn||e.complete===!0?(e.hn&&(e.ln instanceof Event&&this.Hd!==null?this.Hd(this,e.ln):e.sq===!0&&!e.ln&&this.Zg!==null&&e.eu&&this.Zg(this,e.eu)),e.sq=!0,this.desiredSize.w()||(Ya(this,!1),this.v())):n&&By(this,e)),this.g("element",t,e),this.N()}}},source:{get:function(){return this.qo},set:function(e){var t=this.qo;if(t!==e){this.Uc=!0,this.qo=e;var n=Nf;if(Ea){var i=null;if(n[e]!==void 0)i=n[e];else if(e!==""){30<Z0&&(Af(),n=Nf),i=Nt("img"),i.hn=!0,By(this,i);var r=this.rl;r!==null&&(i.crossOrigin=r(this)),i.src=e,n[e]=i,Z0++}this.element=i,i!==null&&i.__goCache===void 0&&(i.__goCache=new _y),this.v(),this.N()}this.g("source",t,e)}}},sourceCrossOrigin:{get:function(){return this.rl},set:function(e){if(this.rl!==e&&(this.rl=e,this.element!==null)){var t=this.element.getAttribute("src");e===null&&typeof t=="string"?this.element.crossOrigin=null:e!==null&&(this.element.crossOrigin=e(this)),this.element.src=t}}},sourceRect:{get:function(){return this.Xg},set:function(e){var t=this.Xg;t.D(e)||(this.Xg=e=e.J(),this.N(),this.g("sourceRect",t,e))}},imageStretch:{get:function(){return this.Nk},set:function(e){var t=this.Nk;t!==e&&(this.Nk=e,this.N(),this.g("imageStretch",t,e))}},flip:{get:function(){return this.Xf},set:function(e){var t=this.Xf;t!==e&&(this.Xf=e,this.N(),this.g("flip",t,e))}},imageAlignment:{get:function(){return this.Mk},set:function(e){var t=this.Mk;t.D(e)||(this.Mk=e=e.J(),this.N(),this.g("imageAlignment",t,e))}},errorFunction:{get:function(){return this.Hd},set:function(e){var t=this.Hd;t!==e&&(this.Hd=e,this.g("errorFunction",t,e))}},successFunction:{get:function(){return this.Zg},set:function(e){var t=this.Zg;t!==e&&(this.Zg=e,this.g("successFunction",t,e))}},naturalBounds:{get:function(){return this.dc}}}),Ul.prototype.redraw=Ul.prototype.redraw,Ul.prototype.reloadSource=Ul.prototype.hA;var Z0=0,Db=4;Ul.className="Picture",Nf=new oe,Ul.clearCache=Af;function _y(){this.gi=null}function zy(e,t,n,i,r){e.gi===null&&(e.gi=[]);var o=new $u(null),a=o.context,l=1/t;o.width=n/t,o.height=i/t,o.width!==0&&o.height!==0&&(t=new Uy(o.Oa,t),n=1,0<e.gi.length&&(n=e.gi[e.gi.length-1],r=n.source,n=n.ratio),a.setTransform(l*n,0,0,l*n,0,0),a.yc(),a.drawImage(r,0,0),e.gi.push(t))}_y.className="PictureCacheArray";function Uy(e,t){this.source=e,this.ratio=t}Uy.className="PictureCacheInstance";function kf(){this.os=new Dn,this.mc=null}kf.prototype.reset=function(e){e!==null?(e.ka(),this.os=e,e.figures.clear()):this.os=new Dn,this.mc=null};function If(e,t,n,i,r,o){e.mc=new Ca,e.mc.startX=t,e.mc.startY=n,e.mc.isFilled=i,e.mc.isEvenOdd=o||!1,e.os.figures.add(e.mc),r!==void 0&&(e.mc.isShadowed=r)}function Pb(e){var t=e.mc.segments.length;0<t&&e.mc.segments.M(t-1).close()}kf.prototype.moveTo=function(e,t,n){n===void 0&&(n=!1);var i=new Dr(Eo);i.endX=e,i.endY=t,n&&i.close(),this.mc.segments.add(i)},kf.prototype.lineTo=function(e,t,n){n===void 0&&(n=!1);var i=new Dr(vo);i.endX=e,i.endY=t,n&&i.close(),this.mc.segments.add(i)};function bh(e,t,n,i,r,o,a){var l;l===void 0&&(l=!1);var u=new Dr(Wa);u.point1X=t,u.point1Y=n,u.point2X=i,u.point2Y=r,u.endX=o,u.endY=a,l&&u.close(),e.mc.segments.add(u)}function Y0(e,t,n,i,r){var o;o===void 0&&(o=!1);var a=new Dr(js);a.point1X=t,a.point1Y=n,a.endX=i,a.endY=r,o&&a.close(),e.mc.segments.add(a)}kf.prototype.arcTo=function(e,t,n,i,r,o,a){o===void 0&&(o=0),a===void 0&&(a=!1);var l=new Dr(sa);l.startAngle=e,l.sweepAngle=t,l.centerX=n,l.centerY=i,l.radiusX=r,l.radiusY=o!==0?o:r,a&&l.close(),this.mc.segments.add(l)};function Fb(e,t,n,i,r,o,a,l){var u;u===void 0&&(u=!1),t=new Dr(Gs,a,l,t,n,i,r,o),u&&t.close(),e.mc.segments.add(t)}function Hy(e){var t=X0;return t!==null?(X0=null,t.reset(e),t):(t=new kf,t.reset(e),t)}var X0=null;kf.className="StreamGeometryContext";function tl(e,t){var n=e.toLowerCase(),i=qe.Ze;i[e]=t,i[n]=e}tl("Rectangle",function(e,t,n){e="r"+t+","+n;var i=qe.Mf[e];return i!==void 0||(i=new Dn(Dn.u),i.endX=t,i.endY=n,qe.Nf<qe.vm&&(qe.Mf[e]=i,qe.Nf++)),i}),tl("Square",function(e,t,n){e="s"+t+","+n;var i=qe.Mf[e];return i!==void 0||(i=new Dn(Dn.u),i.endX=t,i.endY=n,i.defaultStretch=ci,qe.Nf<qe.vm&&(qe.Mf[e]=i,qe.Nf++)),i}),tl("RoundedRectangle",function(e,t,n){e=e?e.parameter1:NaN,(isNaN(e)||0>e)&&(e=5),e=Math.min(e,t/3),e=Math.min(e,n/3);var i="rr"+t+","+n+","+e,r=qe.Mf[i];if(r!==void 0)return r;var o=e*qe.wg;return r=new Dn().add(new Ca(e,0,!0).add(new Dr(vo,t-e,0)).add(new Dr(Wa,t,e,t-o,0,t,o)).add(new Dr(vo,t,n-e)).add(new Dr(Wa,t-e,n,t,n-o,t-o,n)).add(new Dr(vo,e,n)).add(new Dr(Wa,0,n-e,o,n,0,n-o)).add(new Dr(vo,0,e)).add(new Dr(Wa,e,0,0,o,o,0).close())),1<o&&(r.spot1=new ai(0,0,o,o),r.spot2=new ai(1,1,-o,-o)),qe.Nf<qe.vm&&(qe.Mf[i]=r,qe.Nf++),r}),tl("Border","RoundedRectangle"),tl("Ellipse",function(e,t,n){e="e"+t+","+n;var i=qe.Mf[e];return i!==void 0||(i=new Dn(Dn.F),i.endX=t,i.endY=n,i.spot1=Gl,i.spot2=Vs,qe.Nf<qe.vm&&(qe.Mf[e]=i,qe.Nf++)),i}),tl("Circle",function(e,t,n){e="c"+t+","+n;var i=qe.Mf[e];return i!==void 0||(i=new Dn(Dn.F),i.endX=t,i.endY=n,i.spot1=Gl,i.spot2=Vs,i.defaultStretch=ci,qe.Nf<qe.vm&&(qe.Mf[e]=i,qe.Nf++)),i}),tl("TriangleRight",function(e,t,n){return new Dn().add(new Ca(0,0).add(new Dr(vo,t,.5*n)).add(new Dr(vo,0,n).close())).pm(0,.25,.5,.75)}),tl("TriangleDown",function(e,t,n){return new Dn().add(new Ca(0,0).add(new Dr(vo,t,0)).add(new Dr(vo,.5*t,n).close())).pm(.25,0,.75,.5)}),tl("TriangleLeft",function(e,t,n){return new Dn().add(new Ca(t,n).add(new Dr(vo,0,.5*n)).add(new Dr(vo,t,0).close())).pm(.5,.25,1,.75)}),tl("TriangleUp",function(e,t,n){return new Dn().add(new Ca(t,n).add(new Dr(vo,0,n)).add(new Dr(vo,.5*t,0).close())).pm(.25,.5,.75,1)}),tl("Triangle","TriangleUp"),tl("Diamond",function(e,t,n){return new Dn().add(new Ca(.5*t,0).add(new Dr(vo,0,.5*n)).add(new Dr(vo,.5*t,n)).add(new Dr(vo,t,.5*n).close())).pm(.25,.25,.75,.75)}),tl("LineH",function(e,t,n){return e=new Dn(Dn.j),e.startX=0,e.startY=n/2,e.endX=t,e.endY=n/2,e}),tl("LineV",function(e,t,n){return e=new Dn(Dn.j),e.startX=t/2,e.startY=0,e.endX=t/2,e.endY=n,e}),tl("None","Rectangle"),tl("BarH","Rectangle"),tl("BarV","Rectangle"),tl("MinusLine","LineH"),tl("PlusLine",function(e,t,n){return new Dn().add(new Ca(0,n/2,!1).add(new Dr(vo,t,n/2)).add(new Dr(Eo,t/2,0)).add(new Dr(vo,t/2,n)))}),tl("XLine",function(e,t,n){return new Dn().add(new Ca(0,n,!1).add(new Dr(vo,t,0)).add(new Dr(Eo,0,0)).add(new Dr(vo,t,n)))}),tl("LineRight",function(e,t,n){return new Dn().add(new Ca(.25*t,0,!1).add(new Dr(vo,.75*t,.5*n)).add(new Dr(vo,.25*t,n)))}),tl("LineDown",function(e,t,n){return new Dn().add(new Ca(0,.25*n,!1).add(new Dr(vo,.5*t,.75*n)).add(new Dr(vo,t,.25*n)))}),tl("LineLeft",function(e,t,n){return new Dn().add(new Ca(.75*t,0,!1).add(new Dr(vo,.25*t,.5*n)).add(new Dr(vo,.75*t,n)))}),tl("LineUp",function(e,t,n){return new Dn().add(new Ca(0,.75*n,!1).add(new Dr(vo,.5*t,.25*n)).add(new Dr(vo,t,.75*n)))}),qe.um={"":"",Standard:"F1 m 0,0 l 8,4 -8,4 2,-4 z",Backward:"F1 m 8,0 l -2,4 2,4 -8,-4 z",Triangle:"F1 m 0,0 l 8,4.62 -8,4.62 z",BackwardTriangle:"F1 m 8,4 l 0,4 -8,-4 8,-4 0,4 z",Boomerang:"F1 m 0,0 l 8,4 -8,4 4,-4 -4,-4 z",BackwardBoomerang:"F1 m 8,0 l -8,4 8,4 -4,-4 4,-4 z",SidewaysV:"m 0,0 l 8,4 -8,4 0,-1 6,-3 -6,-3 0,-1 z",BackwardV:"m 8,0 l -8,4 8,4 0,-1 -6,-3 6,-3 0,-1 z",OpenTriangle:"m 0,0 l 8,4 -8,4",BackwardOpenTriangle:"m 8,0 l -8,4 8,4",OpenTriangleLine:"m 0,0 l 8,4 -8,4 m 8.5,0 l 0,-8",BackwardOpenTriangleLine:"m 8,0 l -8,4 8,4 m -8.5,0 l 0,-8",OpenTriangleTop:"m 0,0 l 8,4 m 0,4",BackwardOpenTriangleTop:"m 8,0 l -8,4 m 0,4",OpenTriangleBottom:"m 0,8 l 8,-4",BackwardOpenTriangleBottom:"m 0,4 l 8,4",HalfTriangleTop:"F1 m 0,0 l 0,4 8,0 z m 0,8",BackwardHalfTriangleTop:"F1 m 8,0 l 0,4 -8,0 z m 0,8",HalfTriangleBottom:"F1 m 0,4 l 0,4 8,-4 z",BackwardHalfTriangleBottom:"F1 m 8,4 l 0,4 -8,-4 z",ForwardSemiCircle:"m 4,0 b 270 180 0 4 4",BackwardSemiCircle:"m 4,8 b 90 180 0 -4 4",Feather:"m 0,0 l 3,4 -3,4",BackwardFeather:"m 3,0 l -3,4 3,4",DoubleFeathers:"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4",BackwardDoubleFeathers:"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4",TripleFeathers:"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4 m 3,-8 l 3,4 -3,4",BackwardTripleFeathers:"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4 m 3,-8 l -3,4 3,4",ForwardSlash:"m 0,8 l 5,-8",BackSlash:"m 0,0 l 5,8",DoubleForwardSlash:"m 0,8 l 4,-8 m -2,8 l 4,-8",DoubleBackSlash:"m 0,0 l 4,8 m -2,-8 l 4,8",TripleForwardSlash:"m 0,8 l 4,-8 m -2,8 l 4,-8 m -2,8 l 4,-8",TripleBackSlash:"m 0,0 l 4,8 m -2,-8 l 4,8 m -2,-8 l 4,8",Fork:"m 0,4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4",BackwardFork:"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4",LineFork:"m 0,0 l 0,8 m 0,-4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4",BackwardLineFork:"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4 m 8,-8 l 0,8",CircleFork:"F1 m 6,4 b 0 360 -3 0 3 z m 0,0 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4",BackwardCircleFork:"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 6,0 b 0 360 -3 0 3",CircleLineFork:"F1 m 6,4 b 0 360 -3 0 3 z m 1,-4 l 0,8 m 0,-4 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4",BackwardCircleLineFork:"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 0,-4 l 0,8 m 7,-4 b 0 360 -3 0 3",Circle:"F1 m 8,4 b 0 360 -4 0 4 z",Block:"F1 m 0,0 l 0,8 8,0 0,-8 z",StretchedDiamond:"F1 m 0,3 l 5,-3 5,3 -5,3 -5,-3 z",Diamond:"F1 m 0,4 l 4,-4 4,4 -4,4 -4,-4 z",Chevron:"F1 m 0,0 l 5,0 3,4 -3,4 -5,0 3,-4 -3,-4 z",StretchedChevron:"F1 m 0,0 l 8,0 3,4 -3,4 -8,0 3,-4 -3,-4 z",NormalArrow:"F1 m 0,2 l 4,0 0,-2 4,4 -4,4 0,-2 -4,0 z",X:"m 0,0 l 8,8 m 0,-8 l -8,8",TailedNormalArrow:"F1 m 0,0 l 2,0 1,2 3,0 0,-2 2,4 -2,4 0,-2 -3,0 -1,2 -2,0 1,-4 -1,-4 z",DoubleTriangle:"F1 m 0,0 l 4,4 -4,4 0,-8 z m 4,0 l 4,4 -4,4 0,-8 z",BigEndArrow:"F1 m 0,0 l 5,2 0,-2 3,4 -3,4 0,-2 -5,2 0,-8 z",ConcaveTailArrow:"F1 m 0,2 h 4 v -2 l 4,4 -4,4 v -2 h -4 l 2,-2 -2,-2 z",RoundedTriangle:"F1 m 0,1 a 1,1 0 0 1 1,-1 l 7,3 a 0.5,1 0 0 1 0,2 l -7,3 a 1,1 0 0 1 -1,-1 l 0,-6 z",SimpleArrow:"F1 m 1,2 l -1,-2 2,0 1,2 -1,2 -2,0 1,-2 5,0 0,-2 2,2 -2,2 0,-2 z",AccelerationArrow:"F1 m 0,0 l 0,8 0.2,0 0,-8 -0.2,0 z m 2,0 l 0,8 1,0 0,-8 -1,0 z m 3,0 l 2,0 2,4 -2,4 -2,0 0,-8 z",BoxArrow:"F1 m 0,0 l 4,0 0,2 2,0 0,-2 2,4 -2,4 0,-2 -2,0 0,2 -4,0 0,-8 z",TriangleLine:"F1 m 8,4 l -8,-4 0,8 8,-4 z m 0.5,4 l 0,-8",CircleEndedArrow:"F1 m 10,4 l -2,-3 0,2 -2,0 0,2 2,0 0,2 2,-3 z m -4,0 b 0 360 -3 0 3 z",DynamicWidthArrow:"F1 m 0,3 l 2,0 2,-1 2,-2 2,4 -2,4 -2,-2 -2,-1 -2,0 0,-2 z",EquilibriumArrow:"m 0,3 l 8,0 -3,-3 m 3,5 l -8,0 3,3",FastForward:"F1 m 0,0 l 3.5,4 0,-4 3.5,4 0,-4 1,0 0,8 -1,0 0,-4 -3.5,4 0,-4 -3.5,4 0,-8 z",Kite:"F1 m 0,4 l 2,-4 6,4 -6,4 -2,-4 z",HalfArrowTop:"F1 m 0,0 l 4,4 4,0 -8,-4 z m 0,8",HalfArrowBottom:"F1 m 0,8 l 4,-4 4,0 -8,4 z",OpposingDirectionDoubleArrow:"F1 m 0,4 l 2,-4 0,2 4,0 0,-2 2,4 -2,4 0,-2 -4,0 0,2 -2,-4 z",PartialDoubleTriangle:"F1 m 0,0 4,3 0,-3 4,4 -4,4 0,-3 -4,3 0,-8 z",LineCircle:"F1 m 0,0 l 0,8 m 7 -4 b 0 360 -3 0 3 z",DoubleLineCircle:"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z",TripleLineCircle:"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z",CircleLine:"F1 m 6 4 b 0 360 -3 0 3 z m 1,-4 l 0,8",DiamondCircle:"F1 m 8,4 l -4,4 -4,-4 4,-4 4,4 m 8,0 b 0 360 -4 0 4 z",PlusCircle:"F1 m 8,4 b 0 360 -4 0 4 l -8 0 z m -4 -4 l 0 8",OpenRightTriangleTop:"m 8,0 l 0,4 -8,0 m 0,4",OpenRightTriangleBottom:"m 8,8 l 0,-4 -8,0",Line:"m 0,0 l 0,8",DoubleLine:"m 0,0 l 0,8 m 2,0 l 0,-8",TripleLine:"m 0,0 l 0,8 m 2,0 l 0,-8 m 2,0 l 0,8",PentagonArrow:"F1 m 8,4 l -4,-4 -4,0 0,8 4,0 4,-4 z"};function jg(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=ka,this.ir=null,this.jr="",this.lr=Kr,this.Gq="",this.Hq=Jo,this.Pq=br,this.Kq=cr,this.Up=null,this.Cq=127,this.zr=Br,this.yr="gray",this.Vg=4}jg.prototype.copy=function(){var e=new jg;return e.zq=this.zq,e.Kp=this.Kp,e.tr=this.tr,e.vr=this.vr,e.ur=this.ur,e.oq=this.oq,e.fr=this.fr,e.hr=this.hr,e.gr=this.gr.J(),e.ir=this.ir,e.jr=this.jr,e.lr=this.lr.J(),e.Gq=this.Gq,e.Hq=this.Hq.J(),e.Pq=this.Pq.J(),e.Kq=this.Kq.J(),e.Up=this.Up,e.Cq=this.Cq,e.zr=this.zr.J(),e.yr=this.yr,e.Vg=this.Vg,e};function Ci(e,t){e===void 0||e instanceof ts||typeof e=="string"?kn.call(this,e):(kn.call(this),e&&(t=e)),this.G=2408959,this.Tf="",this.P=null,this.Jg="",this.Qf=this.Ug=null,this.ec="",this.Ah=this.Ig=null,this.ke=new he(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new Zt,this.Rh=null,this.ag=NaN,t&&Object.assign(this,t)}yi(Ci,kn),Ci.prototype.cloneProtected=function(e){kn.prototype.cloneProtected.call(this,e),e.G=this.G&-4097|49152,e.Tf=this.Tf,this.P!==null&&(e.P=this.P.nc?this.P:this.P.copy()),e.Jg=this.Jg,e.Qf=null,e.ec=this.ec,e.ke.assign(this.ke),e.Ao=this.Ao},U=Ci.prototype,U.Af=function(e){kn.prototype.Af.call(this,e),e.oh(),e.Ug=null,e.nf=null,e.Rh=null},U.toString=function(){var e=mt(this.constructor)+"#"+Mt(this);return this.data!==null&&(e+="("+xn(this.data)+")"),e};function Hl(e){e.P===null?e.P=new jg:e.P.nc&&(e.P=e.P.copy())}U.th=function(){kn.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},U.gk=function(e,t,n,i,r,o,a){var l=this.diagram;l!==null&&(e===Ko&&t==="elements"?r instanceof kn?bd(r,function(u){gv(l.partManager,u),hd(l,u)}):zh(l,r):e===la&&t==="elements"&&(r instanceof kn?bd(r,function(u){vv(l.partManager,u,l)}):rp(l,r)),l.cb(e,t,n,i,r,o,a))},U.La=function(e){if(kn.prototype.La.call(this,e),this.data!==null){for(var t=this.O.s,n=t.length,i=0;i<n;i++){var r=t[i];r instanceof kn&&bd(r,function(o){o.data!==null&&o.La()})}for(t=this.adornments;t.next();)t.value.La(e)}},Ci.prototype.updateRelationshipsFromData=function(){var e;this.data!==null&&((e=this.diagram)===null||e===void 0||e.partManager.updateRelationshipsFromData(this))},Ci.prototype.Pj=function(e){var t=this.Qf;return t===null?null:t.I(e)},Ci.prototype.bh=function(e,t){if(t!==null){var n=null,i=this.Qf;if(i!==null&&(n=i.I(e)),n!==t){if(n!==null){var r=n.diagram;r!==null&&r.remove(n)}i===null&&(this.Qf=i=new Zn),t.Tf!==e&&(t.category=e),i.add(e,t),e=this.diagram,e!==null&&(e.add(t),e=t.adornedObject,e!==null&&(e=e.ih(),e!==null&&(t.data=e.data)))}}},Ci.prototype.Jf=function(e){var t=this.Qf;if(t!==null){var n=t.I(e);if(n!==null){var i=n.diagram;i!==null&&i.remove(n)}t.remove(e),t.count===0&&(this.Qf=null)}},Ci.prototype.Ej=function(){var e=this.Qf;if(e!==null){var t=Rt();for(e=e.iterator;e.next();)t.push(e.key);e=t.length;for(var n=0;n<e;n++)this.Jf(t[n]);Jt(t)}},Ci.prototype.updateAdornments=function(){var e=this.diagram;if(e!==null){for(var t=this.adornments;t.next();){var n=t.value;n.v(),n.placeholder&&n.placeholder.v()}e:{if(this.isSelected&&this.selectionAdorned&&(t=this.selectionObject,t!==null&&this.actualBounds.w()&&this.isVisible()&&t.Ed()&&t.actualBounds.w())){if(n=this.Pj("Selection"),n===null){if(n=this.selectionAdornmentTemplate,n===null&&(n=this.ph()?e.linkSelectionAdornmentTemplate:this instanceof qi?e.groupSelectionAdornmentTemplate:e.nodeSelectionAdornmentTemplate),!(n instanceof Zr))break e;ju(n),n=n.copy(),n!==null&&(this.ph()&&this.selectionObject===this.path&&(n.type=kn.Link),n.adornedObject=t)}if(n!==null){n.type===kn.Link&&n.v(),this.bh("Selection",n);break e}}this.Jf("Selection")}for(Bb(this,e),t=this.adornments;t.next();)t.value.La()}},Ci.prototype.Wb=function(){var e=this.diagram;e!==null&&(e.vd=!0,!(this.G&16384)&&(this.G|=16384))};function Gg(e){e.G&16384&&(e.updateAdornments(),e.G&=-16385)}function Bb(e,t){t.toolManager.mouseDownTools.each(function(n){n.isEnabled&&n.updateAdornments(e)}),t.toolManager.updateAdornments(e)}function Q0(e){if(jh(e)===!1){Vg(e,!0),e.Uk();var t=e.diagram;t!==null&&(t.De.add(e),t.$b())}}function $y(e){if(e.G|=2097152,jh(e)!==!1){var t=e.position,n=e.location;n.w()&&t.w()||Wy(e,t,n),n=e.Ib;var i=Zt.alloc().assign(n);n.ka(),n.x=t.x,n.y=t.y,n.freeze(),e.Xl(i,n),Zt.free(i),Vg(e,!1)}}Ci.prototype.Ge=function(e,t,n,i){var r=this.uc;r.h(e,t,n,i),this.Lb===null&&(this.Lb=new nr);var o=this.Lb;o.reset(),this.no(o,e,t,n,i),this.Lb=o,o.ws()||o.pp(r)},Ci.prototype.no=function(e,t,n,i,r){if(this.Ca!==1&&e.scale(this.Ca),this.Kb!==0){var o=Rr;this.locationSpot.sb()&&(o=this.locationSpot);var a=he.alloc();if(this.locationObject!==this)for(t=this.locationObject,n=t.naturalBounds,a.yi(n.x,n.y,n.width,n.height,o),t.Lb!==null&&t.Lb.Ga(a),a.offset(-t.measuredBounds.x,-t.measuredBounds.y),o=t.panel;o!==null&&o!==this;)o.Lb!==null&&o.Lb.Ga(a),a.offset(-o.measuredBounds.x,-o.measuredBounds.y),o=o.panel;else a.yi(t,n,i,r,o);e.rotate(this.Kb,a.x,a.y),he.free(a)}},Ci.prototype.move=function(e,t){t===!0?this.location=e:this.position=e},Ci.prototype.moveTo=function(e,t,n){e=he.allocAt(e,t),this.move(e,n),he.free(e)},Ci.prototype.isVisible=function(){if(!this.visible)return!1;var e=this.layer;if(e!==null){if(!e.visible)return!1;if(e=e.diagram,e!==null&&e.animationManager.fv(this))return!0}return e=this.containingGroup,!!(e===null||e.isSubGraphExpanded&&e.isVisible())},Ci.prototype.Zb=function(e){var t=this.diagram;e?(this.C(4),this.Wb(),t!==null&&t.De.add(this)):(this.C(8),this.Ej()),this.oh(),t!==null&&(t.Ya(),t.N())},Ci.prototype.fb=function(e){if(this.name===e)return this;var t=this.Rh;if(t===null&&(this.Rh=t=new Zn),t.I(e)!==null)return t.I(e);var n=kn.prototype.fb.call(this,e);return n!==null?(t.set(e,n),n):(t.set(e,null),null)};function xh(e,t,n,i){i===void 0&&(i=new he),n=n.Mc()?Rr:n;var r=t.naturalBounds;if(i.h(r.width*n.x+n.offsetX,r.height*n.y+n.offsetY),t===null||t===e)return i;for(t.transform.Ga(i),t=t.panel;t!==null&&t!==e;)t.transform.Ga(i),t=t.panel;return e.Lb!==null&&e.Lb.Ga(i),i.offset(-e.uc.x,-e.uc.y),i}Ci.prototype.mi=function(e){return e===void 0&&(e=new Zt),e.assign(this.actualBounds)},Ci.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function jy(e){var t=he.alloc(),n=e.locationObject,i=n.naturalBounds,r=n instanceof lr?n.strokeWidth:0;if(t.yi(0,0,i.width+r,i.height+r,e.locationSpot),n!==e)for(t.offset(-r/2,-r/2),n.transform.Ga(t),n=n.panel;n!==null&&n!==e;)n.transform.Ga(t),n=n.panel;return e.Lb!==null&&e.Lb.Ga(t),t.offset(-e.uc.x,-e.uc.y),t}function Ed(e,t){var n=e.py;isNaN(e.ag)&&(e.ag=xy(e));var i=e.ag,r=2*i;if(!e.isShadowed)return n.h(t.x-1-i,t.y-1-i,t.width+2+r,t.height+2+r),n;i=t.x,r=t.y;var o=t.width;t=t.height;var a=e.shadowBlur;return e=e.shadowOffset,o+=a,t+=a,i-=a/2,r-=a/2,0<e.x?o+=e.x:(i+=e.x,o-=e.x),0<e.y?t+=e.y:(r+=e.y,t-=e.y),n.h(i-1,r-1,o+2,t+2),n}Ci.prototype.arrange=function(){if(wl(this)===!1)$y(this);else{Fc(this,!1);var e=this.Ib,t=Zt.alloc();t.assign(e);var n=Gh(this);this.eh(0,0,this.uc.width,this.uc.height);var i=this.position;Wy(this,i,this.location),e.ka(),e.x=i.x,e.y=i.y,e.freeze(),this.Xl(t,e),t.D(e)?this.Fd(n):!this.Zc()||qe.B(t.width,e.width)&&qe.B(t.height,e.height)||0<=this.vw&&this.C(16),Zt.free(t),Vg(this,!1)}},U=Ci.prototype,U.Xl=function(e,t){var n=this.diagram;if(n!==null){var i=!1;if(n.Zi===!1&&e.w()){var r=Zt.alloc();r.assign(n.documentBounds),r.Fv(n.padding),e.x>r.x&&e.y>r.y&&e.right<r.right&&e.bottom<r.bottom&&t.x>r.x&&t.y>r.y&&t.right<r.right&&t.bottom<r.bottom&&(i=!0),Zt.free(r)}!(this.G&65536)&&e.D(t)||Zy(this,i,n),n.N(),!e.w()&&!t.w()||uo(e,t)||(this instanceof Xn&&!n.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},U.zv=function(e,t,n){if(this.ph()||!e.w())return!1;var i=this.diagram;return i!==null&&Gy(this,i,e,t,n),this.pa=e,this.G&=-2097153,!this.ke.w()||i!==null&&!i.animationManager.isTicking&&i.undoManager.isUndoingRedoing||(i=this.ke,this.ke=new he(i.x+(e.x-t),i.y+(e.y-n)),this.g("location",i,this.ke.copy())),jh(this)===!1&&wl(this)===!1&&(Q0(this),$y(this)),!0};function Gy(e,t,n,i,r){t===null||e instanceof Zr||(t=t.animationManager,t.zb&&zs(t,e,new he(i,r),n))}U.mm=function(e,t,n){var i=this.ke,r=this.pa;if(n){if(i.x===e&&i.y===t)return;jh(this)||wl(this)?r.h(NaN,NaN):r.h(r.x+e-i.x,r.y+t-i.y),i.h(e,t)}else{if(r.x===e&&r.y===t)return;i.h(i.x+e-r.x,i.y+t-r.y),r.h(e,t)}Q0(this)},U.Av=function(){this.G&=-2097153,Q0(this)};function Wy(e,t,n){var i=jy(e),r=e.diagram,o=n.w(),a=t.w();o&&a?e.G&2097152?Vy(e,t,n,r,i):Ky(e,t,n,r,i):o?Vy(e,t,n,r,i):a&&Ky(e,t,n,r,i),e.G|=2097152,he.free(i),e.Uk()}function Vy(e,t,n,i,r){var o=t.x,a=t.y;t.h(n.x-r.x,n.y-r.y),i!==null&&(n=i.animationManager,(i=n.defaultAnimation.isAnimating)||!n.zb||e instanceof Zr||zs(n,e,new he(o,a),t),i||t.x===o&&t.y===a||e.g("position",new he(o,a),t.copy()))}function Ky(e,t,n,i,r){var o=n.copy();n.h(t.x+r.x,t.y+r.y),n.D(o)||i===null||e.g("location",o,n.copy())}function Zy(e,t,n){Kg(e,!1),e instanceof Xn&&fh(n,e),e.layer.isTemporary||t||n.Ya(),t=e.Ib;var i=n.viewportBounds;i.w()?Gh(e)?(Ot(t,i)||e.Fd(!1),e.updateAdornments()):e.isVisible()&&t.Yc(i)?(e.Fd(!0),e.updateAdornments()):e.Wb():n.vd=!0}U.si=function(){return!0},U.Zc=function(){return!0},U.ph=function(){return!1},U.Dd=function(){return!0};function Wg(e,t,n,i){t.constructor===e.constructor||Qy||(Qy=!0,Wn('Should not change the class of the Part when changing category from "'+n+'" to "'+i+'"'),Wn(" Old class: "+mt(e.constructor)+", new class: "+mt(t.constructor)+", part: "+e.toString())),e.Ej();var r=e.data;n=e.layerName;var o=e.isSelected,a=e.isHighlighted,l=!0,u=!0,f=!1;e instanceof Xn&&(l=e.isTreeLeaf,u=e.isTreeExpanded,f=e.wasTreeExpanded),t.Af(e),t.cloneProtected(e),e.Tf=i,e.svg!==null&&(e.svg.remove(),e.svg=null,e.Uc=!0),e.v(),e.N(),t=e.diagram,i=!0,t!==null&&(i=t.skipsUndoManager,t.skipsUndoManager=!0),e.ub=r,e.G=o?e.G|4096:e.G&-4097,e.G=a?e.G|524288:e.G&-524289,e instanceof Xn&&(e.U=l?e.U|4:e.U&-5,e.U=u?e.U|1:e.U&-2,e.U=f?e.U|2:e.U&-3),r!==null&&e.La(),r=e.layerName,r!==n&&(e.Jg=n,e.layerName=r),t!==null&&(t.skipsUndoManager=i),e.Zc()&&e.C(64)}Ci.prototype.canCopy=function(){if(!this.copyable)return!1;var e=this.layer;return e===null?!0:e.allowCopy?(e=e.diagram,e===null?!0:!!e.allowCopy):!1},Ci.prototype.canDelete=function(){if(!this.deletable)return!1;var e=this.layer;return e===null?!0:e.allowDelete?(e=e.diagram,e===null?!0:!!e.allowDelete):!1},Ci.prototype.canEdit=function(){if(!this.textEditable)return!1;var e=this.layer;return e===null?!0:e.allowTextEdit?(e=e.diagram,e===null?!0:!!e.allowTextEdit):!1},Ci.prototype.canGroup=function(){if(!this.groupable)return!1;var e=this.layer;return e===null?!0:e.allowGroup?(e=e.diagram,e===null?!0:!!e.allowGroup):!1},Ci.prototype.canMove=function(){if(!this.movable)return!1;var e=this.layer;return e===null?!0:e.allowMove?(e=e.diagram,e===null?!0:!!e.allowMove):!1},Ci.prototype.canReshape=function(){if(!this.reshapable)return!1;var e=this.layer;return e===null?!0:e.allowReshape?(e=e.diagram,e===null?!0:!!e.allowReshape):!1},Ci.prototype.canResize=function(){if(!this.resizable)return!1;var e=this.layer;return e===null?!0:e.allowResize?(e=e.diagram,e===null?!0:!!e.allowResize):!1},Ci.prototype.canRotate=function(){if(!this.rotatable)return!1;var e=this.layer;return e===null?!0:e.allowRotate?(e=e.diagram,e===null?!0:!!e.allowRotate):!1},Ci.prototype.canSelect=function(){if(!this.selectable)return!1;var e=this.layer;return e===null?!0:e.allowSelect?(e=e.diagram,e===null?!0:!!e.allowSelect):!1};function jh(e){return(e.G&32768)!==0}function Vg(e,t){e.G=t?e.G|32768:e.G&-32769}function Kg(e,t){e.G=t?e.G|65536:e.G&-65537}function Gh(e){return(e.G&131072)!==0}U=Ci.prototype,U.Fd=function(e){this.G=e?this.G|131072:this.G&-131073};function J0(e,t){e.G=t?e.G|1048576:e.G&-1048577}U.oh=function(){var e=this.containingGroup;e!==null&&(e.v(),e.placeholder!==null&&e.placeholder.v(),e.Bd())},U.N=function(){var e=this.diagram;e!==null&&!wl(this)&&!jh(this)&&this.isVisible()&&this.Ib.w()&&e.N(Ed(this,this.Ib))},U.v=function(){kn.prototype.v.call(this);var e=this.diagram;e!==null&&(e.De.add(this),this instanceof Xn&&this.labeledLink!==null&&El(this.labeledLink),e.$b(!0))},U.Vo=function(e){e||(e=this.Ah,e!==null&&qg(e,this))},U.Wo=function(e){e||(e=this.Ah,e!==null&&ev(e,this))},U.Lj=function(){var e=this.data;if(e!==null){var t=this.diagram;t!==null&&(t=t.model,t!==null&&t.cm(e))}},U.oz=function(){return Zg(this,this)};function Zg(e,t){var n=t.containingGroup;return n!==null?1+Zg(e,n):t instanceof Xn&&(t=t.labeledLink,t!==null)?Zg(e,t):0}U.sz=function(){return Yy(this,this)};function Yy(e,t){var n=t.containingGroup;return n!==null||t instanceof Xn&&(n=t.labeledLink,n!==null)?Yy(e,n):t}U.Td=function(e){return e instanceof qi?Yg(this,this,e):!1};function Yg(e,t,n){if(t===n||n===null)return!1;var i=t.containingGroup;return i===null||i!==n&&!Yg(e,i,n)?t instanceof Xn&&(t=t.labeledLink,t!==null)?Yg(e,t,n):!1:!0}U.px=function(e){if(e===null)return null;if(this===e)return this.containingGroup;for(var t=this;t!==null;){if(t instanceof qi&&J0(t,!0),t instanceof Xn){var n=t.labeledLink;n!==null&&(t=n)}t=t.containingGroup}for(n=null,t=e;t!==null;){if(t.G&1048576){n=t;break}t instanceof Xn&&(e=t.labeledLink,e!==null&&(t=e)),t=t.containingGroup}for(t=this;t!==null;)t instanceof qi&&J0(t,!1),t instanceof Xn&&(e=t.labeledLink,e!==null&&(t=e)),t=t.containingGroup;return n},Ci.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var e=this.layer;return!(e!==null&&e.isTemporary||this instanceof Xn&&this.isLinkLabel)},Ci.prototype.C=function(e){if(e===void 0&&(e=16777215),this.isLayoutPositioned&&e&this.layoutConditions){var t=this.layer;t!==null&&t.isTemporary||this instanceof Xn&&this.isLinkLabel?t=!1:(t=this.diagram,t=!(t!==null&&t.undoManager.isUndoingRedoing))}else t=!1;if(t)if(t=this.Ah,t!==null){var n=t.layout;n!==null?n.C():t.C(e)}else e=this.diagram,e!==null&&(e=e.layout,e!==null&&e.C())};function Xy(e){return e.isVisible()?(e=e.layer,!(e!==null&&e.isTemporary)):!1}function Wh(e,t,n,i,r,o){if(o===void 0&&(o=null),!(e.contains(t)||o!==null&&!o(t)||t instanceof Zr)){if(e.add(t),t instanceof Xn){if(n&&t instanceof qi)for(var a=t.memberParts;a.next();)Wh(e,a.value,n,i,r,o);if(r!==!1)for(a=t.linksConnected;a.next();){var l=a.value;if(!e.contains(l)){var u=l.fromNode,f=l.toNode;u=u===null||e.contains(u),f=f===null||e.contains(f),(r?u&&f:u||f)&&Wh(e,l,n,i,r,o)}}if(1<i)for(t=t.Ou();t.next();)Wh(e,t.value,n,i-1,r,o)}else if(t instanceof Pn)for(t=t.labelNodes;t.next();)Wh(e,t.value,n,i,r,o)}}ht.Object.defineProperties(Ci.prototype,{key:{get:function(){var e=this.diagram;if(e!==null)return e.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?Tt:this.Qf.iteratorValues}},layer:{get:function(){return this.Ig}},diagram:{get:function(){var e=this.Ig;return e==null?null:e.diagram}},layerName:{get:function(){return this.Jg},set:function(e){var t=this.Jg;if(t!==e){var n=this.diagram;if((n===null||n.Qj(e)!==null&&!n.partManager.addsToTemporaryLayer)&&(this.Jg=e,n!==null&&n.Ya(),this.g("layerName",t,e),t=this.layer,t!==null&&t.name!==e&&(n=t.diagram,n!==null&&(e=n.Qj(e),e!==null&&e!==t)))){var i=t.pc(-1,this,!0);if(0<=i&&n.cb(la,"parts",t,this,null,i,!0),i=e.oi(99999999,this,!0),t.visible!==e.visible&&this.Zb(e.visible),0<=i&&n.cb(Ko,"parts",e,null,this,!0,i),i=this.layerChanged,i!==null){var r=n.aa;n.aa=!0,i(this,t,e),n.aa=r}}}}},layerChanged:{get:function(){return this.P!==null?this.P.zq:null},set:function(e){var t=this.layerChanged;t!==e&&(Hl(this),this.P.zq=e,this.g("layerChanged",t,e))}},zOrder:{get:function(){return this.Ao},set:function(e){var t=this.Ao;if(t!==e){this.Ao=e;var n=this.layer;n!==null&&Z(n,-1,this),this.g("zOrder",t,e),e=this.diagram,e!==null&&e.N()}}},locationObject:{get:function(){if(this.nf===null){var e=this.locationObjectName;e!==""?(e=this.fb(e),e!==null?this.nf=e:this.nf=this):this instanceof Zr?this.type!==kn.Link&&this.placeholder!==null?this.nf=this.placeholder:this.nf=this:this.nf=this}return this.nf.visible?this.nf:this}},minLocation:{get:function(){return this.P!==null?this.P.Pq:br},set:function(e){var t=this.minLocation;t.D(e)||(e=e.J(),Hl(this),this.P.Pq=e,this.g("minLocation",t,e))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:cr},set:function(e){var t=this.maxLocation;t.D(e)||(e=e.J(),Hl(this),this.P.Kq=e,this.g("maxLocation",t,e))}},locationObjectName:{get:function(){return this.P!==null?this.P.Gq:""},set:function(e){var t=this.locationObjectName;t!==e&&(Hl(this),this.P.Gq=e,this.nf=null,this.v(),this.g("locationObjectName",t,e))}},locationSpot:{get:function(){return this.P!==null?this.P.Hq:Jo},set:function(e){var t=this.locationSpot;t.D(e)||(e=e.J(),Hl(this),this.P.Hq=e,this.v(),this.g("locationSpot",t,e))}},location:{get:function(){return this.ke},set:function(e){var t=e.x,n=e.y,i=this.ke;if(!(i.x===t||isNaN(i.x)&&isNaN(t))||!(i.y===n||isNaN(i.y)&&isNaN(n))){if(e=e.copy(),t=e,this.ph())t=!1;else{if(this.ke=t,this.G|=2097152,wl(this)===!1&&(Q0(this),n=this.pa,n.w())){var r=this.diagram;if(r===null||r.animationManager.isTicking||!r.undoManager.isUndoingRedoing){var o=n.copy();n.h(n.x+(t.x-i.x),n.y+(t.y-i.y)),Gy(this,r,n,o.x,o.y),this.g("position",o,n.copy())}}t=!0}t&&this.g("location",i,e.copy())}}},category:{get:function(){return this.Tf},set:function(e){var t=this.Tf;if(t!==e){this.svg!==null&&(this.svg.remove(),this.Uc=!0);var n=this.diagram,i=this.data,r=null;if(n!==null&&i!==null&&!(this instanceof Zr)){var o=n.model.undoManager;o.isEnabled&&!o.isUndoingRedoing&&(r=this.clone(),r.O.addAll(this.O))}this.Tf=e,this.g("category",t,e),n===null||i===null||this instanceof Zr?this instanceof Zr&&(r=this.adornedPart,r!==null&&(e=r.Qf,e!==null&&e.remove(t),r.bh(this.category,this))):(o=n.model,o.undoManager.isUndoingRedoing||(this.ph()?(n.partManager.setLinkCategoryForData(i,e),n=n.partManager.findLinkTemplateForCategory(e),n!==null&&(ju(n),n=n.copy(),n!==null&&Wg(this,n,t,e))):(o!==null&&o.jm(i,e),n=E1(n.partManager,i,e),n!==null&&(ju(n),n=n.copy(),n===null||n instanceof Pn||(i=this.location.copy(),Wg(this,n,t,e),this.location.w()||(this.location=i)))),r!==null&&(t=this.clone(),t.O.addAll(this.O),this.g("self",r,t))))}}},self:{get:function(){return this},set:function(e){Wg(this,e,this.category,e.category)}},copyable:{get:function(){return(this.G&1)!==0},set:function(e){var t=(this.G&1)!==0;t!==e&&(this.G^=1,this.g("copyable",t,e))}},deletable:{get:function(){return(this.G&2)!==0},set:function(e){var t=(this.G&2)!==0;t!==e&&(this.G^=2,this.g("deletable",t,e))}},textEditable:{get:function(){return(this.G&4)!==0},set:function(e){var t=(this.G&4)!==0;t!==e&&(this.G^=4,this.g("textEditable",t,e),this.Wb())}},groupable:{get:function(){return(this.G&8)!==0},set:function(e){var t=(this.G&8)!==0;t!==e&&(this.G^=8,this.g("groupable",t,e))}},movable:{get:function(){return(this.G&16)!==0},set:function(e){var t=(this.G&16)!==0;t!==e&&(this.G^=16,this.g("movable",t,e))}},selectionAdorned:{get:function(){return(this.G&32)!==0},set:function(e){var t=(this.G&32)!==0;t!==e&&(this.G^=32,this.g("selectionAdorned",t,e),this.Wb())}},isInDocumentBounds:{get:function(){return(this.G&64)!==0},set:function(e){var t=(this.G&64)!==0;if(t!==e){this.G^=64;var n=this.diagram;n!==null&&n.Ya(),this.g("isInDocumentBounds",t,e)}}},isLayoutPositioned:{get:function(){return(this.G&128)!==0},set:function(e){var t=(this.G&128)!==0;t!==e&&(this.G^=128,this.g("isLayoutPositioned",t,e),this.C(e?4:8))}},selectable:{get:function(){return(this.G&256)!==0},set:function(e){var t=(this.G&256)!==0;t!==e&&(this.G^=256,this.g("selectable",t,e),this.Wb())}},reshapable:{get:function(){return(this.G&512)!==0},set:function(e){var t=(this.G&512)!==0;t!==e&&(this.G^=512,this.g("reshapable",t,e),this.Wb())}},resizable:{get:function(){return(this.G&1024)!==0},set:function(e){var t=(this.G&1024)!==0;t!==e&&(this.G^=1024,this.g("resizable",t,e),this.Wb())}},rotatable:{get:function(){return(this.G&2048)!==0},set:function(e){var t=(this.G&2048)!==0;t!==e&&(this.G^=2048,this.g("rotatable",t,e),this.Wb())}},isSelected:{get:function(){return(this.G&4096)!==0},set:function(e){var t=(this.G&4096)!==0;if(t!==e){var n=this.diagram;if(!e||this.canSelect()&&!(n!==null&&n.selection.count>=n.maxSelectionCount)){this.G^=4096;var i=!1;if(n!==null){i=n.skipsUndoManager,n.skipsUndoManager=!0;var r=n.selection;r.ka(),e?r.add(this):r.remove(this),r.freeze()}this.g("isSelected",t,e),this.Wb(),e=this.selectionChanged,e!==null&&e(this),n!==null&&(n.$b(),n.skipsUndoManager=i)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(e){var t=(this.G&524288)!==0;if(t!==e){this.G^=524288;var n=this.diagram;n!==null&&(n=n.highlighteds,n.ka(),e?n.add(this):n.remove(this),n.freeze()),this.g("isHighlighted",t,e),this.N(),e=this.highlightedChanged,e!==null&&e(this)}}},isShadowed:{get:function(){return(this.G&8192)!==0},set:function(e){var t=(this.G&8192)!==0;t!==e&&(this.G^=8192,this.Uc=!0,this.g("isShadowed",t,e),this.N())}},isAnimated:{get:function(){return(this.G&262144)!==0},set:function(e){var t=(this.G&262144)!==0;t!==e&&(this.G^=262144,this.g("isAnimated",t,e))}},highlightedChanged:{get:function(){return this.P!==null?this.P.oq:null},set:function(e){var t=this.highlightedChanged;t!==e&&(Hl(this),this.P.oq=e,this.g("highlightedChanged",t,e))}},selectionObjectName:{get:function(){return this.P!==null?this.P.vr:""},set:function(e){var t=this.selectionObjectName;t!==e&&(Hl(this),this.P.vr=e,this.Ug=null,this.g("selectionObjectName",t,e))}},selectionAdornmentTemplate:{get:function(){return this.P!==null?this.P.tr:null},set:function(e){var t=this.selectionAdornmentTemplate;t!==e&&(Hl(this),this.P.tr=e,this.g("selectionAdornmentTemplate",t,e))}},selectionObject:{get:function(){if(this.Ug===null){var e=this.selectionObjectName;e!==null&&e!==""?(e=this.fb(e),e!==null?this.Ug=e:this.Ug=this):this instanceof Pn?(e=this.path,e!==null?this.Ug=e:this.Ug=this):this.Ug=this}return this.Ug}},selectionChanged:{get:function(){return this.P!==null?this.P.ur:null},set:function(e){var t=this.selectionChanged;t!==e&&(Hl(this),this.P.ur=e,this.g("selectionChanged",t,e))}},resizeAdornmentTemplate:{get:function(){return this.P!==null?this.P.fr:null},set:function(e){var t=this.resizeAdornmentTemplate;t!==e&&(Hl(this),this.P.fr=e,this.g("resizeAdornmentTemplate",t,e))}},resizeObjectName:{get:function(){return this.P!==null?this.P.hr:""},set:function(e){var t=this.resizeObjectName;t!==e&&(Hl(this),this.P.hr=e,this.g("resizeObjectName",t,e))}},resizeObject:{get:function(){var e=this.resizeObjectName;return e!==""&&(e=this.fb(e),e!==null)?e:this}},resizeCellSize:{get:function(){return this.P!==null?this.P.gr:ka},set:function(e){var t=this.resizeCellSize;t.D(e)||(e=e.J(),Hl(this),this.P.gr=e,this.g("resizeCellSize",t,e))}},rotateAdornmentTemplate:{get:function(){return this.P!==null?this.P.ir:null},set:function(e){var t=this.rotateAdornmentTemplate;t!==e&&(Hl(this),this.P.ir=e,this.g("rotateAdornmentTemplate",t,e))}},rotateObjectName:{get:function(){return this.P!==null?this.P.jr:""},set:function(e){var t=this.rotateObjectName;t!==e&&(Hl(this),this.P.jr=e,this.g("rotateObjectName",t,e))}},rotateObject:{get:function(){var e=this.rotateObjectName;return e!==""&&(e=this.fb(e),e!==null)?e:this}},rotationSpot:{get:function(){return this.P!==null?this.P.lr:Kr},set:function(e){var t=this.rotationSpot;t.D(e)||(e=e.J(),Hl(this),this.P.lr=e,this.g("rotationSpot",t,e))}},text:{get:function(){return this.ec},set:function(e){var t=this.ec;t!==e&&(this.ec=e,this.g("text",t,e))}},containingGroup:{get:function(){return this.Ah},set:function(e){if(this.Zc()){var t=this.Ah;if(t!==e){e===null||this!==e&&!e.Td(this)||(this===e&&Ve("Cannot make a Group a member of itself: "+this.toString()),Ve("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+e.toString())),this.C(2);var n=this.diagram;if(t!==null?ev(t,this):this instanceof qi&&n!==null&&n.ai.remove(this),this.Ah=e,e!==null?qg(e,this):this instanceof qi&&n!==null&&n.ai.add(this),this.C(1),n!==null&&n.aa){var i=this.data,r=n.model;if(i!==null&&r.Xj()){var o=r.wa(e!==null?e.data:null);r.mp(i,o)}}if(i=this.containingGroupChanged,i!==null&&(r=!0,n!==null&&(r=n.aa,n.aa=!0),i(this,t,e),n!==null&&(n.aa=r)),this instanceof qi){for(n=new Xt,Wh(n,this,!0,0,!0),n=n.iterator;n.next();)if(i=n.value,i instanceof Xn)for(i=i.linksConnected;i.next();)Mf(i.value)}if(this instanceof Xn){for(n=this.linksConnected;n.next();)Mf(n.value);n=this.labeledLink,n!==null&&Mf(n)}this.g("containingGroup",t,e),e!==null&&(t=e.layer,t!==null&&Z(t,-1,e))}}else Ve("cannot set the Part.containingGroup of a Link or Adornment")}},containingGroupChanged:{get:function(){return this.P!==null?this.P.Kp:null},set:function(e){var t=this.containingGroupChanged;t!==e&&(Hl(this),this.P.Kp=e,this.g("containingGroupChanged",t,e))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof Xn&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(e){var t=this.layoutConditions;t!==e&&(Hl(this),this.P.Cq=e,this.g("layoutConditions",t,e))}},dragComputation:{get:function(){return this.P!==null?this.P.Up:null},set:function(e){var t=this.dragComputation;t!==e&&(Hl(this),this.P.Up=e,this.g("dragComputation",t,e))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:Br},set:function(e){var t=this.shadowOffset;t.D(e)||(e=e.J(),Hl(this),this.P.zr=e,this.N(),this.g("shadowOffset",t,e))}},shadowColor:{get:function(){return this.P!==null?this.P.yr:"gray"},set:function(e){var t=this.shadowColor;t!==e&&(Hl(this),this.P.yr=e,this.N(),this.g("shadowColor",t,e))}},shadowBlur:{get:function(){return this.P!==null?this.P.Vg:4},set:function(e){var t=this.shadowBlur;t!==e&&(Hl(this),this.P.Vg=e,this.N(),this.g("shadowBlur",t,e))}}}),Ci.prototype.invalidateLayout=Ci.prototype.C,Ci.prototype.findCommonContainingGroup=Ci.prototype.px,Ci.prototype.isMemberOf=Ci.prototype.Td,Ci.prototype.findTopLevelPart=Ci.prototype.sz,Ci.prototype.findSubGraphLevel=Ci.prototype.oz,Ci.prototype.ensureBounds=Ci.prototype.Va,Ci.prototype.getDocumentBounds=Ci.prototype.mi,Ci.prototype.findObject=Ci.prototype.fb,Ci.prototype.moveTo=Ci.prototype.moveTo,Ci.prototype.invalidateAdornments=Ci.prototype.Wb,Ci.prototype.clearAdornments=Ci.prototype.Ej,Ci.prototype.removeAdornment=Ci.prototype.Jf,Ci.prototype.addAdornment=Ci.prototype.bh,Ci.prototype.findAdornment=Ci.prototype.Pj,Ci.prototype.updateTargetBindings=Ci.prototype.La;var Qy=!1;Ci.className="Part",Ci.LayoutNone=0,Ci.LayoutAdded=1,Ci.LayoutRemoved=2,Ci.LayoutShown=4,Ci.LayoutHidden=8,Ci.LayoutNodeSized=16,Ci.LayoutGroupLayout=32,Ci.LayoutNodeReplaced=64,Ci.LayoutStandard=127,Ci.LayoutAll=16777215;function Zr(e,t){e===void 0||e instanceof ts||typeof e=="string"?Ci.call(this,e):(Ci.call(this),e&&(t=e)),this.G&=-257,this.Jg="Adornment",this.ue=null,this.Aw=0,this.Uw=!1,this.j=this.$a=null,t&&Object.assign(this,t)}yi(Zr,Ci),Zr.prototype.toString=function(){var e=this.adornedPart;return"Adornment("+this.category+")"+(e!==null?e.toString():"")},Zr.prototype.updateRelationshipsFromData=function(){},Zr.prototype.Ul=function(e){var t=this.adornedObject,n=t==null?void 0:t.part;if(n instanceof Pn&&t instanceof lr){t=n.path,n.Ul(e),e=t.geometry,n=this.O.s,t=n.length;for(var i=0;i<t;i++){var r=n[i];r.isPanelMain&&r instanceof lr&&(r.ua=e)}}},Zr.prototype.si=function(){var e=this.ue;return e===null?!0:(e=e.part,e===null||!wl(e))},Zr.prototype.Zc=function(){return!1},Zr.prototype.gk=function(e,t,n,i,r,o,a){if(e===Ko&&t==="elements"){if(r instanceof Tl)this.$a===null&&(this.$a=r);else if(r instanceof kn){var l=r.Nl(function(u){return u instanceof Tl});l instanceof Tl&&this.$a===null&&(this.$a=l)}}else e===la&&t==="elements"&&this.$a!==null&&(i===this.$a?this.$a=null:i instanceof kn&&this.$a.rg(i)&&(this.$a=null));Ci.prototype.gk.call(this,e,t,n,i,r,o,a)},Zr.prototype.updateAdornments=function(){},Zr.prototype.Lj=function(){},ht.Object.defineProperties(Zr.prototype,{placeholder:{get:function(){return this.$a}},adornedObject:{get:function(){return this.ue},set:function(e){var t=this.adornedPart,n=null;e!==null&&(n=e.part),t===null||e!==null&&t===n||t.Jf(this.category),this.ue=e,n!==null&&n.bh(this.category,this)}},adornedPart:{get:function(){var e=this.ue;return e!==null?e.part:null}},containingGroup:{get:function(){return null}}}),Zr.className="Adornment";function Xg(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=Ms,this.er=tm,this.Kr=this.ij=this.Nq=this.Mq=null}Xg.prototype.copy=function(){var e=new Xg;return e.Dq=this.Dq,e.Eq=this.Eq,e.gj=this.gj,e.Vr=this.Vr,e.yp=this.yp.J(),e.er=this.er,e.Mq=this.Mq,e.Nq=this.Nq,e.ij=this.ij,e.Kr=this.Kr,e};function Xn(e,t){e===void 0||e instanceof ts||typeof e=="string"?Ci.call(this,e):(Ci.call(this),e&&(t=e)),this.U=13,this.Ba=null,this.jb=new qt,this.wc=this.af=this.Yk=null,this.ci=!1,t&&Object.assign(this,t)}yi(Xn,Ci),Xn.prototype.cloneProtected=function(e){Ci.prototype.cloneProtected.call(this,e),e.U=this.U,this.Ba!==null&&(e.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},U=Xn.prototype,U.Af=function(e){Ci.prototype.Af.call(this,e),e.Bd(),e.af=this.af,e.wc=null};function Sh(e){e.Ba===null?e.Ba=new Xg:e.Ba.nc&&(e.Ba=e.Ba.copy())}U.th=function(){Ci.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function Jy(e,t){t!==null&&(e.af===null&&(e.af=new Xt),e.af.add(t))}function qy(e,t,n,i){if(t===null||e.af===null)return null;for(var r=e.af.iterator;r.next();){var o=r.value;if(o.Ds===e&&o.cv===t&&o.Ox===n&&o.Px===i||o.Ds===t&&o.cv===e&&o.Ox===i&&o.Px===n)return o}return null}U.Lz=function(e,t,n){t==null&&(t=""),n==null&&(n=""),e=qy(this,e,t,n),e!==null&&e.Sl()},U.gk=function(e,t,n,i,r,o,a){e===Ko&&t==="elements"?this.wc=null:e===la&&t==="elements"&&(this.wc=null),Ci.prototype.gk.call(this,e,t,n,i,r,o,a)},U.Bd=function(e){for(var t=this.linksConnected;t.next();){var n=t.value;e!==void 0&&e.contains(n)||(ou(n.fromPort),ou(n.toPort),n.bb())}};function e1(e,t){for(e=e.linksConnected;e.next();){var n=e.value;(n.fromPort===t||n.toPort===t)&&(ou(n.fromPort),ou(n.toPort),n.bb())}}function ou(e){if(e!==null){var t=e.Zn;t!==null&&t.Sl(),e=e.part,t=e.containingGroup,t===null||e.isVisible()||ou(t.port)}}U.si=function(){return!0},Xn.prototype.getAvoidableRect=function(e){return e.set(this.actualBounds),e.Co(this.avoidableMargin),e},Xn.prototype.findVisibleNode=function(){for(var e=this;e!==null&&!e.isVisible();)e=e.containingGroup;return e},Xn.prototype.isVisible=function(){if(!Ci.prototype.isVisible.call(this))return!1;var e=!0,t=mh,n=this.diagram;if(n!==null&&(e=n.isTreePathToChildren,t=n.treeCollapsePolicy),t===mh){if(e=this.pg(),e!==null&&!e.isTreeExpanded)return!1}else if(t===Za){if(e=e?this.Oo():this.Po(),0<e.count&&e.all(function(i){return!i.isTreeExpanded}))return!1}else if(t===mf&&(e=e?this.Oo():this.Po(),0<e.count&&e.any(function(i){return!i.isTreeExpanded})))return!1;return e=this.labeledLink,e!==null?e.isVisible():!0},Xn.prototype.Zb=function(e){Ci.prototype.Zb.call(this,e);for(var t=this.linksConnected;t.next();){var n=t.value;if(e&&this.containingGroup!==null){var i=n.To(this);i===null||i.Td(this.containingGroup)||n.bb()}n.Zb(e)}},Xn.prototype.qx=function(){var e=new Xt,t=new Xt;return t1(this,this,e,t),t.iterator};function t1(e,t,n,i){if(t!==null&&!n.has(t)){n.add(t);var r=!0,o=e.diagram;o!==null&&(r=o.isTreePathToChildren),t.linksConnected.each(function(a){a.isTreeLink?(r?a.fromNode===t:a.toNode===t)&&t1(e,r?a.toNode:a.fromNode,n,i):i.add(a)})}}Xn.prototype.findLinksConnected=function(e){if(e===void 0&&(e=null),e===null)return this.jb.iterator;var t=new Ln(this.jb),n=this;return t.predicate=function(i){return i.fromNode===n&&i.fromPortId===e||i.toNode===n&&i.toPortId===e},t},U=Xn.prototype,U.Mo=function(e){e===void 0&&(e=null);var t=new Ln(this.jb),n=this;return t.predicate=function(i){return i.fromNode!==n?!1:e===null?!0:i.fromPortId===e},t},U.Sd=function(e){e===void 0&&(e=null);var t=new Ln(this.jb),n=this;return t.predicate=function(i){return i.toNode!==n?!1:e===null?!0:i.toPortId===e},t},U.Mu=function(e){e===void 0&&(e=null);for(var t=null,n=null,i=this.jb.iterator;i.next();){var r=i.value;r.fromNode===this?(e===null||r.fromPortId===e)&&(r=r.toNode,t!==null?t.add(r):n!==null&&n!==r?(t=new Xt,t.add(n),t.add(r)):n=r):r.toNode!==this||e!==null&&r.toPortId!==e||(r=r.fromNode,t!==null?t.add(r):n!==null&&n!==r?(t=new Xt,t.add(n),t.add(r)):n=r)}return t!==null?t.iterator:n!==null?new fi(n):Tt},U.Po=function(e){e===void 0&&(e=null);for(var t=null,n=null,i=this.jb.iterator;i.next();){var r=i.value;r.fromNode!==this||e!==null&&r.fromPortId!==e||(r=r.toNode,t!==null?t.add(r):n!==null&&n!==r?(t=new Xt,t.add(n),t.add(r)):n=r)}return t!==null?t.iterator:n!==null?new fi(n):Tt},U.Oo=function(e){e===void 0&&(e=null);for(var t=null,n=null,i=this.jb.iterator;i.next();){var r=i.value;r.toNode!==this||e!==null&&r.toPortId!==e||(r=r.fromNode,t!==null?t.add(r):n!==null&&n!==r?(t=new Xt,t.add(n),t.add(r)):n=r)}return t!==null?t.iterator:n!==null?new fi(n):Tt},U.jz=function(e,t,n){t===void 0&&(t=null),n===void 0&&(n=null);var i=new Ln(this.jb),r=this;return i.predicate=function(o){return!((o.fromNode!==r||o.toNode!==e||t!==null&&o.fromPortId!==t||n!==null&&o.toPortId!==n)&&(o.fromNode!==e||o.toNode!==r||n!==null&&o.fromPortId!==n||t!==null&&o.toPortId!==t))},i},U.kz=function(e,t,n){t===void 0&&(t=null),n===void 0&&(n=null);var i=new Ln(this.jb),r=this;return i.predicate=function(o){return!(o.fromNode!==r||o.toNode!==e||t!==null&&o.fromPortId!==t||n!==null&&o.toPortId!==n)},i};function q0(e,t,n){ou(n);var i=e.jb.contains(t);if(i||e.jb.add(t),!i||t.fromNode===t.toNode){var r=e.linkConnected;if(r!==null){var o=!0,a=e.diagram;a!==null&&(o=a.aa,a.aa=!0),r(e,t,n),a!==null&&(a.aa=o)}}!i&&t.isTreeLink&&(n=t.fromNode,t=t.toNode,n!==null&&t!==null&&n!==t&&(i=!0,e=e.diagram,e!==null&&(i=e.isTreePathToChildren),r=i?t:n,o=i?n:t,r.ci||(r.ci=o),!o.isTreeLeaf||e!==null&&e.undoManager.isUndoingRedoing||(i?n===o&&(o.isTreeLeaf=!1):t===o&&(o.isTreeLeaf=!1))))}function em(e,t,n){ou(n);var i=e.jb.remove(t),r=null;if(i||t.toNode===t.fromNode){var o=e.linkDisconnected;if(r=e.diagram,o!==null){var a=!0;r!==null&&(a=r.aa,r.aa=!0),o(e,t,n),r!==null&&(r.aa=a)}}i&&t.isTreeLink&&(n=!0,r!==null&&(n=r.isTreePathToChildren),e=n?t.toNode:t.fromNode,t=n?t.fromNode:t.toNode,e!==null&&(e.ci=!1),t===null||t.isTreeLeaf||(t.jb.count===0?(t.ci=null,r!==null&&r.undoManager.isUndoingRedoing||(t.isTreeLeaf=!0)):Np(t)))}function Np(e){if(e.ci=!1,e.jb.count!==0){var t=!0,n=e.diagram;if(n===null||!n.undoManager.isUndoingRedoing){for(n!==null&&(t=n.isTreePathToChildren),n=e.jb.iterator;n.next();){var i=n.value;if(i.isTreeLink){if(t){if(i.fromNode===e){e.isTreeLeaf=!1;return}}else if(i.toNode===e){e.isTreeLeaf=!1;return}}}e.isTreeLeaf=!0}}}Xn.prototype.updateRelationshipsFromData=function(){var e=this.diagram;e!==null&&e.partManager.updateRelationshipsFromData(this)},U=Xn.prototype,U.Vo=function(e){Ci.prototype.Vo.call(this,e),e||(Np(this),e=this.Yk,e!==null&&c1(e,this))},U.Wo=function(e){Ci.prototype.Wo.call(this,e),e||(e=this.Yk,e!==null&&e.wd!==null&&(e.wd.remove(this),e.v()))},U.Lj=function(){if(0<this.jb.count){var e=this.diagram;if(e!==null)for(var t=e.commandHandler!==null?e.commandHandler.deletesConnectedLinks:!0,n=this.jb.copy().iterator;n.next();){var i=n.value;t?e.remove(i):(i.fromNode===this&&(i.fromNode=null),i.toNode===this&&(i.toNode=null))}}this.labeledLink=null,Ci.prototype.Lj.call(this)},U.ns=function(e){if(this.wc===null){if(e===""&&this.Te===!1)return this;n1(this)}var t=this.wc.I(e);return t!==null||e!==""&&(t=this.wc.I(""),t!==null)?t:this};function n1(e){e.wc===null?e.wc=new Zn:e.wc.clear(),e.qm(e,function(t,n){i1(t,n)}),e.wc.count===0&&e.wc.add("",e)}function i1(e,t){var n=t.portId;n!==null&&e.wc!==null&&e.wc.add(n,t)}function Qg(e,t,n){var i=t.portId;if(i!==null&&(e.wc!==null&&e.wc.remove(i),t=e.diagram,t!==null&&n)){for(n=null,e=e.findLinksConnected(i);e.next();)i=e.value,n===null&&(n=Rt()),n.push(i);if(n!==null){for(e=0;e<n.length;e++)t.remove(n[e]);Jt(n)}}}U.Nz=function(e){if(e===null||e===this)return!1;var t=!0,n=this.diagram;if(n!==null&&(t=n.isTreePathToChildren),n=this,t)for(;n!==e;){t=null;for(var i=n.jb.iterator;i.next();){var r=i.value;if(r.isTreeLink&&(t=r.fromNode,t!==n&&t!==this))break}if(t===this||t===null||t===n)return!1;n=t}else for(;n!==e;){for(t=null,i=n.jb.iterator;i.next()&&(r=i.value,!r.isTreeLink||(t=r.toNode,t===n||t===this)););if(t===this||t===null||t===n)return!1;n=t}return!0},U.xz=function(){var e=!0,t=this.diagram;if(t!==null&&(e=t.isTreePathToChildren),t=this,e)for(;;){e=null;for(var n=t.jb.iterator;n.next();){var i=n.value;if(i.isTreeLink&&(e=i.fromNode,e!==t&&e!==this))break}if(e===this)return this;if(e===null||e===t)return t;t=e}else for(;;){for(e=null,n=t.jb.iterator;n.next()&&(i=n.value,!i.isTreeLink||(e=i.toNode,e===t||e===this)););if(e===this)return this;if(e===null||e===t)return t;t=e}},U.gz=function(e){if(e===null)return null;if(this===e)return this;for(var t=this;t!==null;)J0(t,!0),t=t.pg();var n=null;for(t=e;t!==null;){if(t.G&1048576){n=t;break}t=t.pg()}for(t=this;t!==null;)J0(t,!1),t=t.pg();return n},U.kh=function(){var e=!0,t=this.diagram;if(t!==null&&(e=t.isTreePathToChildren),t=this.jb.iterator,e){for(;t.next();)if(e=t.value,e.isTreeLink&&e.fromNode!==this)return e}else for(;t.next();)if(e=t.value,e.isTreeLink&&e.toNode!==this)return e;return null},U.pg=function(){var e=this.ci;if(e===null)return null;if(e instanceof Xn)return e;e=this.diagram,e=e!==null?e.isTreePathToChildren:!0;for(var t=this.jb.iterator;t.next();){var n=t.value;if(n.isTreeLink&&(n=e?n.fromNode:n.toNode,n!==this))return this.ci=n}return this.ci=null},U.vz=function(){function e(n,i){i.add(n);var r=n.kh();r!==null&&(i.add(r),n=n.pg(),n!==null&&e(n,i))}var t=new Xt;return e(this,t),t},U.uz=function(){return r1(this,this)};function r1(e,t){return t=t.pg(),t===null?0:1+r1(e,t)}U.Qo=function(){var e=!0,t=this.diagram;t!==null&&(e=t.isTreePathToChildren),t=new Ln(this.jb);var n=this;return t.predicate=e?function(i){return!!(i.isTreeLink&&i.fromNode===n)}:function(i){return!!(i.isTreeLink&&i.toNode===n)},t},U.Ou=function(){var e=!0,t=this.diagram;t!==null&&(e=t.isTreePathToChildren);var n=t=null,i=this.jb.iterator;if(e)for(;i.next();)e=i.value,e.isTreeLink&&e.fromNode===this&&(e=e.toNode,t!==null?t.add(e):n!==null&&n!==e?(t=new qt,t.add(n),t.add(e)):n=e);else for(;i.next();)e=i.value,e.isTreeLink&&e.toNode===this&&(e=e.fromNode,t!==null?t.add(e):n!==null&&n!==e?(t=new qt,t.add(n),t.add(e)):n=e);return t!==null?t.iterator:n!==null?new fi(n):Tt},U.wz=function(e){e===void 0&&(e=1/0);var t=new Xt;return Wh(t,this,!1,e,!0),t},Xn.prototype.collapseTree=function(e){e===void 0&&(e=1),1>e&&(e=1);var t=this.diagram;if(t!==null&&!t.Ue){t.Ue=!0;var n=new Xt;n.add(this),o1(this,n,t.isTreePathToChildren,e,t,this,t.treeCollapsePolicy===mh),t.Ue=!1}};function o1(e,t,n,i,r,o,a){if(1<i)for(var l=n?e.Mo():e.Sd();l.next();){var u=l.value;u.isTreeLink&&(u=u.To(e),u===null||u===e||t.contains(u)||(t.add(u),o1(u,t,n,i-1,r,o,a)))}else a1(e,t,n,r,o,a)}function a1(e,t,n,i,r,o){for(var a=r===e?!0:e.isTreeExpanded,l=n?e.Mo():e.Sd(),u={};l.next();){var f=l.value;if(f.isTreeLink&&(f=f.To(e),f!==null&&f!==e)){var p=t.contains(f);if(p||t.add(f),a){var x=n?f.Oo():f.Po();u.uv=e,x.all(function(N){return function(R){return R===N.uv||!R.isTreeExpanded}}(u))&&i.Aj(f,r),f.oh(),f.Zb(!1)}f.isTreeExpanded&&(f.wasTreeExpanded=f.isTreeExpanded,p||a1(f,t,n,i,r,o))}u={uv:u.uv}}e.isTreeExpanded=!1}Xn.prototype.expandTree=function(e){e===void 0&&(e=2),2>e&&(e=2);var t=this.diagram;if(t!==null&&!t.Ue){t.Ue=!0;var n=new Xt;n.add(this),s1(this,n,t.isTreePathToChildren,e,t,this,t.treeCollapsePolicy===mh),t.Ue=!1}};function s1(e,t,n,i,r,o,a){for(var l=o===e?!1:e.isTreeExpanded,u=n?e.Mo():e.Sd(),f={};u.next();){var p=u.value;if(p.isTreeLink&&(l||p.fd||p.bb(),p=p.To(e),p!==null&&p!==e&&!t.contains(p))){if(t.add(p),!l){p.Zb(!0),p.oh();var x=n?p.Oo():p.Po();f.vv=e,x.all(function(N){return function(R){return R===N.vv||!R.isTreeExpanded}}(f))&&r.Cj(p,o)}(2<i||p.wasTreeExpanded)&&(p.wasTreeExpanded=!1,s1(p,t,n,i-1,r,o,a))}f={vv:f.vv}}e.isTreeExpanded=!0}ht.Object.defineProperties(Xn.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:tm},set:function(e){var t=this.portSpreading;t!==e&&(Sh(this),this.Ba.er=e,this.g("portSpreading",t,e),e=this.diagram,e!==null&&e.undoManager.isUndoingRedoing||this.Bd())}},avoidable:{get:function(){return(this.U&8)!==0},set:function(e){var t=(this.U&8)!==0;if(t!==e){this.U^=8;var n=this.diagram;n!==null&&fh(n,this),this.g("avoidable",t,e)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:Ms},set:function(e){typeof e=="number"&&(e=new mi(e));var t=this.avoidableMargin;if(!t.D(e)){e=e.J(),Sh(this),this.Ba.yp=e;var n=this.diagram;n!==null&&fh(n,this),this.g("avoidableMargin",t,e)}}},linksConnected:{get:function(){return this.jb.iterator}},linkConnected:{get:function(){return this.Ba!==null?this.Ba.Dq:null},set:function(e){var t=this.linkConnected;t!==e&&(Sh(this),this.Ba.Dq=e,this.g("linkConnected",t,e))}},linkDisconnected:{get:function(){return this.Ba!==null?this.Ba.Eq:null},set:function(e){var t=this.linkDisconnected;t!==e&&(Sh(this),this.Ba.Eq=e,this.g("linkDisconnected",t,e))}},linkValidation:{get:function(){return this.Ba!==null?this.Ba.gj:null},set:function(e){var t=this.linkValidation;t!==e&&(Sh(this),this.Ba.gj=e,this.g("linkValidation",t,e))}},isLinkLabel:{get:function(){return this.Yk!==null}},labeledLink:{get:function(){return this.Yk},set:function(e){var t=this.Yk;if(t!==e){var n=this.diagram,i=this.data;if(t!==null){if(t.wd!==null&&(t.wd.remove(this),t.v()),n!==null&&i!==null&&!n.undoManager.isUndoingRedoing){var r=t.data,o=n.model;if(r!==null&&o.ri()){var a=o.wa(i);a!==void 0&&o.Qx(r,a)}}this.containingGroup=null}this.Yk=e,e!==null&&(c1(e,this),n===null||i===null||n.undoManager.isUndoingRedoing||(r=e.data,n=n.model,r!==null&&n.ri()&&(i=n.wa(i),i!==void 0&&n.Bu(r,i))),this.containingGroup=e.containingGroup),El(this),this.g("labeledLink",t,e)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&n1(this),this.wc.iteratorValues}},isTreeExpanded:{get:function(){return(this.U&1)!==0},set:function(e){var t=(this.U&1)!==0;if(t!==e){this.U^=1;var n=this.diagram;if(this.g("isTreeExpanded",t,e),t=this.treeExpandedChanged,t!==null){var i=!0;n!==null&&(i=n.aa,n.aa=!0),t(this),n!==null&&(n.aa=i)}n!==null&&n.undoManager.isUndoingRedoing?this.Zb(e):e?this.expandTree():this.collapseTree()}}},wasTreeExpanded:{get:function(){return(this.U&2)!==0},set:function(e){var t=(this.U&2)!==0;t!==e&&(this.U^=2,this.g("wasTreeExpanded",t,e))}},treeExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Vr:null},set:function(e){var t=this.treeExpandedChanged;t!==e&&(Sh(this),this.Ba.Vr=e,this.g("treeExpandedChanged",t,e))}},isTreeLeaf:{get:function(){return(this.U&4)!==0},set:function(e){var t=(this.U&4)!==0;t!==e&&(this.U^=4,this.g("isTreeLeaf",t,e))}}}),Xn.prototype.expandTree=Xn.prototype.expandTree,Xn.prototype.collapseTree=Xn.prototype.collapseTree,Xn.prototype.findTreeParts=Xn.prototype.wz,Xn.prototype.findTreeChildrenNodes=Xn.prototype.Ou,Xn.prototype.findTreeChildrenLinks=Xn.prototype.Qo,Xn.prototype.findTreeLevel=Xn.prototype.uz,Xn.prototype.findTreeParentChain=Xn.prototype.vz,Xn.prototype.findTreeParentNode=Xn.prototype.pg,Xn.prototype.findTreeParentLink=Xn.prototype.kh,Xn.prototype.findCommonTreeParent=Xn.prototype.gz,Xn.prototype.findTreeRoot=Xn.prototype.xz,Xn.prototype.isInTreeOf=Xn.prototype.Nz,Xn.prototype.findPort=Xn.prototype.ns,Xn.prototype.findLinksTo=Xn.prototype.kz,Xn.prototype.findLinksBetween=Xn.prototype.jz,Xn.prototype.findNodesInto=Xn.prototype.Oo,Xn.prototype.findNodesOutOf=Xn.prototype.Po,Xn.prototype.findNodesConnected=Xn.prototype.Mu,Xn.prototype.findLinksInto=Xn.prototype.Sd,Xn.prototype.findLinksOutOf=Xn.prototype.Mo,Xn.prototype.findExternalTreeLinksConnected=Xn.prototype.qx,Xn.prototype.invalidateConnectedLinks=Xn.prototype.Bd,Xn.prototype.invalidateLinkBundle=Xn.prototype.Lz;var _b=new Yt(Xn,"SpreadingNone",10),tm=new Yt(Xn,"SpreadingEvenly",11),Jg=new Yt(Xn,"SpreadingPacked",12);Xn.className="Node",Xn.SpreadingNone=_b,Xn.SpreadingEvenly=tm,Xn.SpreadingPacked=Jg;function qi(e,t){e===void 0||e instanceof ts||typeof e=="string"?Xn.call(this,e):(Xn.call(this),e&&(t=e)),this.U|=4608,this.Gn=new Xt,this.$a=null,this.Sc=new Qo,this.Sc.group=this,this.gl=new Xt,this.tb=this.$p=null,t&&Object.assign(this,t)}yi(qi,Xn),qi.prototype.cloneProtected=function(e){Xn.prototype.cloneProtected.call(this,e),this.U=this.U&-32769;var t=e.Nl(function(n){return n instanceof Tl});t instanceof Tl?e.$a=t:e.$a=null,this.Sc!==null?(e.Sc=this.Sc.copy(),e.Sc.group=e):(e.Sc!==null&&(e.Sc.group=null),e.Sc=null),this.tb!==null&&(e.tb=this.tb.copy())},U=qi.prototype,U.Af=function(e){Xn.prototype.Af.call(this,e);var t=e.Rj();for(e=e.memberParts;e.next();){var n=e.value;if(n.v(),n.C(8),n.Ej(),n instanceof Xn)n.Bd(t);else if(n instanceof Pn)for(n=n.labelNodes;n.next();)n.value.Bd(t)}},U.gk=function(e,t,n,i,r,o,a){if(e===Ko&&t==="elements"){if(r instanceof Tl)this.$a===null?this.$a=r:this.$a!==r&&Ve("Cannot insert a second Placeholder into the visual tree of a Group.");else if(r instanceof kn){var l=r.Nl(function(u){return u instanceof Tl});l instanceof Tl&&(this.$a===null?this.$a=l:this.$a!==l&&Ve("Cannot insert a second Placeholder into the visual tree of a Group."))}}else e===la&&t==="elements"&&this.$a!==null&&(i===this.$a?this.$a=null:i instanceof kn&&this.$a.rg(i)&&(this.$a=null));Xn.prototype.gk.call(this,e,t,n,i,r,o,a)},U.Xl=function(e,t){Xn.prototype.Xl.call(this,e,t),this.isClipping&&this.type!==kn.Spot&&this.isSubGraphExpanded&&(e=this.resizeObject,e instanceof kn&&(e=e.Pb()),this.tb===null&&(this.tb=new Zt),e.mi(this.tb),e instanceof lr&&this.tb.Bc(-e.strokeWidth,-e.strokeWidth))},U.eh=function(e,t,n,i){this.nf=this.$a,Xn.prototype.eh.call(this,e,t,n,i)},U.Va=function(){var e=this;e.isSubGraphExpanded&&this.memberParts.each(function(t){!e.computesBoundsIncludingLinks&&t instanceof Pn||t.Va()}),Xn.prototype.Va.call(this)},U.si=function(){if(!Xn.prototype.si.call(this))return!1;for(var e=this.memberParts;e.next();){var t=e.value;if(t instanceof Xn){if(t.isVisible()&&wl(t))return!1}else if(t instanceof Pn&&t.isVisible()&&wl(t)&&t.fromNode!==this&&t.toNode!==this)return!1}return!0};function qg(e,t){if(e.Gn.add(t)){t instanceof qi&&e.gl.add(t);var n=e.memberAdded;if(n!==null){var i=!0,r=e.diagram;r!==null&&(i=r.aa,r.aa=!0),n(e,t),r!==null&&(r.aa=i)}e.isVisible()&&e.isSubGraphExpanded||t.Zb(!1)}t instanceof Pn&&!e.computesBoundsIncludingLinks||(t=e.$a,t===null&&(t=e),t.v())}function ev(e,t){if(e.Gn.remove(t)){t instanceof qi&&e.gl.remove(t);var n=e.memberRemoved;if(n!==null){var i=!0,r=e.diagram;r!==null&&(i=r.aa,r.aa=!0),n(e,t),r!==null&&(r.aa=i)}e.isVisible()&&e.isSubGraphExpanded||t.Zb(!0)}t instanceof Pn&&!e.computesBoundsIncludingLinks||(t=e.$a,t===null&&(t=e),t.v())}U.Lj=function(){if(0<this.Gn.count){var e=this.diagram;if(e!==null)for(var t=this.Gn.copy().iterator;t.next();)e.remove(t.value)}Xn.prototype.Lj.call(this)},qi.prototype.canAddMembers=function(e){var t=this.diagram;if(t===null)return!1;for(t=t.commandHandler,e=Wt(e).iterator;e.next();)if(!t.isValidMember(this,e.value))return!1;return!0},qi.prototype.addMembers=function(e,t){var n=this.diagram;if(n===null)return!1;n=n.commandHandler;var i=!0;for(e=Wt(e).iterator;e.next();){var r=e.value;!t||n.isValidMember(this,r)?r.containingGroup=this:i=!1}return i},qi.prototype.canUngroup=function(){if(!this.ungroupable)return!1;var e=this.layer;return e===null||!e.allowUngroup?!1:(e=e.diagram,!!(e===null||e.allowUngroup))},U=qi.prototype,U.Bd=function(e){var t=(this.U&65536)!==0;if(Xn.prototype.Bd.call(this,e),!t)for(!(this.U&65536)&&(this.U=this.U^65536),t=this.Lu();t.next();){var n=t.value;if(e===void 0||!e.contains(n)){var i=n.fromNode;i!==null&&i!==this&&i.Td(this)&&!i.isVisible()?(ou(n.fromPort),ou(n.toPort),n.bb()):(i=n.toNode,i!==null&&i!==this&&i.Td(this)&&!i.isVisible()&&(ou(n.fromPort),ou(n.toPort),n.bb()))}}},U.Lu=function(){var e=this.diagram!==null&&this.diagram.Pw;if(e&&this.$p!==null)return this.$p.iterator;var t=this.Rj();t.add(this);for(var n=new Xt,i=t.iterator;i.next();){var r=i.value;if(r instanceof Xn)for(r=r.linksConnected;r.next();){var o=r.value;t.contains(o)||n.add(o)}}return e&&(this.$p=n),n.iterator},U.iz=function(){var e=this.Rj();e.add(this);for(var t=new Xt,n=e.iterator;n.next();){var i=n.value;if(i instanceof Xn)for(i=i.linksConnected;i.next();){var r=i.value,o=r.fromNode;o===null||e.contains(o)&&o!==this||t.add(o),r=r.toNode,r===null||e.contains(r)&&r!==this||t.add(r)}}return t.iterator},U.hz=function(){function e(n,i){n!==null&&(i.add(n),e(n.containingGroup,i))}var t=new Xt;return e(this,t),t},U.Rj=function(){var e=new Xt;return Wh(e,this,!0,0,!0),e.remove(this),e},U.Zb=function(e){Xn.prototype.Zb.call(this,e);for(var t=this.memberParts;t.next();)t.value.Zb(e)},qi.prototype.collapseSubGraph=function(){var e=this.diagram;if(e!==null&&!e.Ue){e.Ue=!0;var t=this.Rj();l1(this,t,e,this),e.Ue=!1}};function l1(e,t,n,i){for(var r=e.memberParts;r.next();){var o=r.value;if(o.Zb(!1),o instanceof qi&&o.isSubGraphExpanded&&(o.wasSubGraphExpanded=o.isSubGraphExpanded,l1(o,t,n,i)),o instanceof Xn)o.Bd(t),n.Aj(o,i);else if(o instanceof Pn)for(o=o.labelNodes;o.next();)o.value.Bd(t)}e.isSubGraphExpanded=!1}qi.prototype.expandSubGraph=function(){var e=this.diagram;if(e!==null&&!e.Ue){e.Ue=!0;var t=this.Rj();u1(this,t,e,this),e.Ue=!1}};function u1(e,t,n,i){for(var r=e.memberParts;r.next();){var o=r.value;if(o.Zb(!0),o instanceof qi&&o.wasSubGraphExpanded&&(o.wasSubGraphExpanded=!1,u1(o,t,n,i)),o instanceof Xn)o.Bd(t),n.Cj(o,i);else if(o instanceof Pn)for(o=o.labelNodes;o.next();)o.value.Bd(t)}e.isSubGraphExpanded=!0}qi.prototype.move=function(e,t){t===void 0&&(t=!1);var n=t?this.location:this.position,i=n.x;n=n.y;var r=e.x,o=e.y;if(!(i===r||isNaN(i)&&isNaN(r))||!(n===o||isNaN(n)&&isNaN(o))){for(i=r-(isNaN(i)?0:i),n=o-(isNaN(n)?0:n),o=he.alloc(),Xn.prototype.move.call(this,e,t),e=new Xt,t=this.Rj().iterator;t.next();)r=t.value,r instanceof Pn&&(r.suspendsRouting&&e.add(r),r.fd||r.fromNode!==this&&r.toNode!==this)&&(r.suspendsRouting=!0);for(t.reset();t.next();)if(r=t.value,!(r.ph()||r instanceof Xn&&r.isLinkLabel)){var a=r.position,l=r.location;a.w()?(o.x=a.x+i,o.y=a.y+n,r.position=o):l.w()&&(o.x=l.x+i,o.y=l.y+n,r.location=o)}for(t.reset();t.next();)r=t.value,r instanceof Pn&&(r.suspendsRouting=e.contains(r),r.fd||r.fromNode!==this&&r.toNode!==this)&&(a=r.position,o.x=a.x+i,o.y=a.y+n,o.w()?r.move(o):r.bb(),nv(r)&&r.bb());he.free(o)}},ht.Object.defineProperties(qi.prototype,{placeholder:{get:function(){return this.$a}},computesBoundsAfterDrag:{get:function(){return(this.U&2048)!==0},set:function(e){var t=(this.U&2048)!==0;t!==e&&(this.U^=2048,this.g("computesBoundsAfterDrag",t,e))}},computesBoundsIncludingLinks:{get:function(){return(this.U&4096)!==0},set:function(e){var t=(this.U&4096)!==0;t!==e&&(this.U^=4096,this.g("computesBoundsIncludingLinks",t,e))}},computesBoundsIncludingLocation:{get:function(){return(this.U&8192)!==0},set:function(e){var t=(this.U&8192)!==0;t!==e&&(this.U^=8192,this.g("computesBoundsIncludingLocation",t,e))}},handlesDragDropForMembers:{get:function(){return(this.U&16384)!==0},set:function(e){var t=(this.U&16384)!==0;t!==e&&(this.U^=16384,this.g("handlesDragDropForMembers",t,e))}},memberParts:{get:function(){return this.Gn.iterator}},layout:{get:function(){return this.Sc},set:function(e){var t=this.Sc;if(t!==e){e!==null&&e.diagram!==null&&e.diagram.layout===e&&Ve("A layout cannot be both the Diagram.layout and a Group.layout: "+e),t!==null&&(t.diagram=null,t.group=null),this.Sc=e;var n=this.diagram;e!==null&&(e.diagram=n,e.group=this),n!==null&&(n.xh=!0),this.g("layout",t,e),n!==null&&n.$b()}}},memberAdded:{get:function(){return this.Ba!==null?this.Ba.Mq:null},set:function(e){var t=this.memberAdded;t!==e&&(Sh(this),this.Ba.Mq=e,this.g("memberAdded",t,e))}},memberRemoved:{get:function(){return this.Ba!==null?this.Ba.Nq:null},set:function(e){var t=this.memberRemoved;t!==e&&(Sh(this),this.Ba.Nq=e,this.g("memberRemoved",t,e))}},memberValidation:{get:function(){return this.Ba!==null?this.Ba.ij:null},set:function(e){var t=this.memberValidation;t!==e&&(Sh(this),this.Ba.ij=e,this.g("memberValidation",t,e))}},ungroupable:{get:function(){return(this.U&256)!==0},set:function(e){var t=(this.U&256)!==0;t!==e&&(this.U^=256,this.g("ungroupable",t,e))}},isSubGraphExpanded:{get:function(){return(this.U&512)!==0},set:function(e){var t=(this.U&512)!==0;if(t!==e){this.U^=512;var n=this.diagram;if(this.g("isSubGraphExpanded",t,e),t=this.subGraphExpandedChanged,t!==null){var i=!0;n!==null&&(i=n.aa,n.aa=!0),t(this),n!==null&&(n.aa=i)}n!==null&&n.undoManager.isUndoingRedoing?(this.$a!==null&&this.$a.v(),this.memberParts.each(function(r){r.updateAdornments()})):e?this.expandSubGraph():this.collapseSubGraph()}}},wasSubGraphExpanded:{get:function(){return(this.U&1024)!==0},set:function(e){var t=(this.U&1024)!==0;t!==e&&(this.U^=1024,this.g("wasSubGraphExpanded",t,e))}},subGraphExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Kr:null},set:function(e){var t=this.subGraphExpandedChanged;t!==e&&(Sh(this),this.Ba.Kr=e,this.g("subGraphExpandedChanged",t,e))}},rh:{get:function(){return(this.U&32768)!==0},set:function(e){(this.U&32768)!==0!==e&&(this.U^=32768)}}}),qi.prototype.expandSubGraph=qi.prototype.expandSubGraph,qi.prototype.collapseSubGraph=qi.prototype.collapseSubGraph,qi.prototype.findSubGraphParts=qi.prototype.Rj,qi.prototype.findContainingGroupChain=qi.prototype.hz,qi.prototype.findExternalNodesConnected=qi.prototype.iz,qi.prototype.findExternalLinksConnected=qi.prototype.Lu,qi.prototype.ensureBounds=qi.prototype.Va,qi.className="Group";function Tl(e){st.call(this),this.yb=Ja,this.ko=new Zt(NaN,NaN,NaN,NaN),e&&Object.assign(this,e)}yi(Tl,st),Tl.prototype.cloneProtected=function(e){st.prototype.cloneProtected.call(this,e),e.yb=this.yb.J(),e.ko=this.ko.copy()},Tl.prototype.gh=function(e){if(this.background===null&&this.areaBackground===null)return!1;var t=this.naturalBounds;return co(0,0,t.width,t.height,e.x,e.y)},Tl.prototype.Wl=function(){var e=this.part;if(e!==null&&(e instanceof qi||e instanceof Zr)||Ve("Placeholder is not inside a Group or Adornment."),e instanceof qi){var t=this.computeBorder(this.ko),n=this.minSize,i=this.dc;for(Pa(i,(isFinite(n.width)?Math.max(n.width,t.width):t.width)||0,(isFinite(n.height)?Math.max(n.height,t.height):t.height)||0),this.Ge(0,0,i.width,i.height),i=e.memberParts,n=!1;i.next();)if(i.value.isVisible()){n=!0;break}i=e.diagram,!n||i===null||i.animationManager.Xu(e)||isNaN(t.x)||isNaN(t.y)||(n=he.alloc(),n.xi(t,e.locationSpot),n.D(e.location)||(e.location=n),he.free(n))}else{t=this.dc,n=this.yb,i=n.left+n.right;var r=n.top+n.bottom,o=e.adornedObject;e.angle=o.li();var a=0;o instanceof lr&&(a=o.strokeWidth);var l=o.Df(),u=o.naturalBounds,f=(u.width+a)*l;a=(u.height+a)*l,e.type!==kn.Link&&(l=o.ga(e.category==="Selection"?Jo:e.locationSpot,he.alloc()),e.location=l,he.free(l)),isNaN(f)||isNaN(a)?(e=o.ga(Jo,he.alloc()),f=Zt.allocAt(e.x,e.y,0,0),f.Ye(o.ga(Bo,e)),f.Ye(o.ga(Vo,e)),f.Ye(o.ga(ws,e)),Pa(t,f.width+i||0,f.height+r||0),this.Ge(-n.left,-n.top,t.width,t.height),he.free(e),Zt.free(f)):(Pa(t,f+i||0,a+r||0),this.Ge(-n.left,-n.top,t.width,t.height))}},Tl.prototype.eh=function(e,t,n,i){this.actualBounds.h(e,t,n,i)},Tl.prototype.computeBorder=function(e){var t=this.part,n=t.diagram,i=n===null||!n.animationManager.isAnimating;if(n!==null&&t instanceof qi&&!t.layer.isTemporary&&t.computesBoundsAfterDrag&&this.ko.w()){var r=n.toolManager.findTool("Dragging");if(r===n.currentTool&&(n=r.computeBorder(t,this.ko,e),n!==null))return n}n=Zt.alloc(),r=this.computeMemberBounds(n);var o=this.yb;return t instanceof qi&&!t.isSubGraphExpanded?e.h(r.x-o.left,r.y-o.top,0,0):e.h(r.x-o.left,r.y-o.top,Math.max(r.width+o.left+o.right,0),Math.max(r.height+o.top+o.bottom,0)),Zt.free(n),i&&t instanceof qi&&t.computesBoundsIncludingLocation&&t.location.w()&&e.Ye(t.location),e},Tl.prototype.computeMemberBounds=function(e){if(!(this.part instanceof qi))return e.h(0,0,0,0),e;for(var t=this.part,n=1/0,i=1/0,r=-1/0,o=-1/0,a=t.memberParts;a.next();){var l=a.value;if(l.isVisible()){if(l instanceof Pn&&(!t.computesBoundsIncludingLinks||bu(l)||l.fromNode===t||l.toNode===t))continue;l=l.actualBounds,l.left<n&&(n=l.left),l.top<i&&(i=l.top),l.right>r&&(r=l.right),l.bottom>o&&(o=l.bottom)}}return isFinite(n)&&isFinite(i)?e.h(n,i,r-n,o-i):(t=t.location,e.h(t.x,t.y,0,0)),e},ht.Object.defineProperties(Tl.prototype,{padding:{get:function(){return this.yb},set:function(e){typeof e=="number"&&(e=new mi(e));var t=this.yb;t.D(e)||(this.yb=e=e.J(),this.g("padding",t,e),this.v())}}}),Tl.className="Placeholder";function Pn(e){Ci.call(this,kn.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=Nl,this.Om=0,this.Qm=Nl,this.Rm=NaN,this.qj=ov,this.po=.5,this.wd=null,this.Nb=new qt().freeze(),this.Tg=this.Mg=null,this.ml=new Zt,this.ua=new Dn,this.u=this.o=this.Sf=this.Wf=null,this.su=new he,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],e&&Object.assign(this,e)}yi(Pn,Ci),Pn.prototype.cloneProtected=function(e){Ci.prototype.cloneProtected.call(this,e),e.Qa=this.Qa&-113,e.ff=this.ff,e.gn=this.gn,e.vf=this.vf,e.uo=this.uo,e.qk=this.qk,e.Om=this.Om,e.Qm=this.Qm,e.Rm=this.Rm,e.qj=this.qj,e.po=this.po,this.ba!==null&&(e.ba=this.ba.copy())},U=Pn.prototype,U.Af=function(e){Ci.prototype.Af.call(this,e),this.ff=e.ff,this.vf=e.vf,e.Mg=null,e.bb(),e.Sf=this.Sf;var t=e.fromPort;t!==null&&ou(t),e=e.toPort,e!==null&&ou(e)},U.qb=function(e){e.classType===Pn?(e.value&2)===2?this.routing=e:e===Su||e===wh||e===Lf?this.curve=e:e===Ip||e===sm||e===lm?this.adjusting=e:e!==ov&&e!==Nl&&Ve("Unknown Link enum value for a Link property: "+e):Ci.prototype.qb.call(this,e)},U.Xc=function(){this.ba===null&&(this.ba=new mp)},U.si=function(){var e=this.fromNode;if(e!==null){var t=e.findVisibleNode();if(t!==null&&(e=t),wl(e)||jh(e))return!1}return e=this.toNode,!(e!==null&&(t=e.findVisibleNode(),t!==null&&(e=t),wl(e)||jh(e)))},U.zv=function(){return!1},U.Av=function(){},U.Zc=function(){return!1},Pn.prototype.computeAngle=function(e,t,n){return Pn.computeAngle(t,n)},Pn.computeAngle=function(e,t){switch(e){default:case Nl:e=0;break;case Mp:e=t;break;case Op:e=t+90;break;case Lp:e=t-90;break;case av:e=t+180;break;case um:e=qe.bp(t),90<e&&270>e&&(e-=180);break;case Rp:e=qe.bp(t+90),90<e&&270>e&&(e-=180);break;case Dp:e=qe.bp(t-90),90<e&&270>e&&(e-=180);break;case cm:if(e=qe.bp(t),45<e&&135>e||225<e&&315>e)return 0;90<e&&270>e&&(e-=180)}return qe.bp(e)};function Mf(e){var t=e.fromNode,n=e.toNode,i=null;if(t!==null?i=n!==null?t.px(n):t.containingGroup:n!==null?i=n.containingGroup:i=null,t=i,n=e.Ah,n!==t){n!==null&&ev(n,e),e.Ah=t,t!==null&&qg(t,e);var r=e.containingGroupChanged;if(r!==null){var o=!0,a=e.diagram;a!==null&&(o=a.aa,a.aa=!0),r(e,n,t),a!==null&&(a.aa=o)}!e.fd||e.Lw!==n&&e.Mw!==n||e.bb()}if(e.isLabeledLink)for(e=e.labelNodes;e.next();)e.value.containingGroup=i}U=Pn.prototype,U.oh=function(){var e=this.containingGroup;e!==null&&this.fromNode!==e&&this.toNode!==e&&e.computesBoundsIncludingLinks&&Ci.prototype.oh.call(this)},U.To=function(e){var t=this.fromNode;return e===t?this.toNode:t},U.Cz=function(e){var t=this.fromPort;return e===t?this.toPort:t};function c1(e,t){e.wd===null&&(e.wd=new Xt),e.wd.add(t),e.v()}U.Vo=function(e){if(Ci.prototype.Vo.call(this,e),wd(this)&&this.Xo(this.actualBounds),!e){e=this.ef;var t=null;e!==null&&(t=this.fromPort,q0(e,this,t));var n=this.uf;if(n!==null){var i=this.toPort;n===e&&i===t||q0(n,this,i)}Ap(this)}},U.Wo=function(e){if(Ci.prototype.Wo.call(this,e),wd(this)&&this.Xo(this.actualBounds),!e){e=this.ef;var t=null;e!==null&&(t=this.fromPort,em(e,this,t));var n=this.uf;if(n!==null){var i=this.toPort;n===e&&i===t||em(n,this,i)}kp(this)}},U.Lj=function(){if(this.fd=!0,this.wd!==null){var e=this.diagram;if(e!==null)for(var t=this.wd.copy().iterator;t.next();)e.remove(t.value)}this.data!==null&&(e=this.diagram,e!==null&&e.partManager.removeDataForLink(this))},Pn.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var e=this.diagram;e!==null&&e.partManager.updateRelationshipsFromData(this)}},Pn.prototype.move=function(e,t){var n=t?this.location:this.position,i=n.x;isNaN(i)&&(i=0);var r=n.y;for(isNaN(r)&&(r=0),i=e.x-i,r=e.y-r,t===!0?Ci.prototype.move.call(this,e,!1):(e=he.allocAt(n.x+i,n.y+r),Ci.prototype.move.call(this,e,!1),he.free(e)),Eh(this,i,r),e=this.labelNodes;e.next();)t=e.value,n=t.position,t.moveTo(n.x+i,n.y+r)},Pn.prototype.canRelinkFrom=function(){if(!this.relinkableFrom)return!1;var e=this.layer;return e===null?!0:e.allowRelink?(e=e.diagram,!!(e===null||e.allowRelink)):!1},Pn.prototype.canRelinkTo=function(){if(!this.relinkableTo)return!1;var e=this.layer;return e===null?!0:e.allowRelink?(e=e.diagram,!!(e===null||e.allowRelink)):!1},Pn.prototype.computeMidPoint=function(e){var t=this.pointsCount;if(t===0)return e.assign(Zi),e;if(t===1)return e.assign(this.i(0)),e;if(t===2){var n=this.i(0),i=this.i(1);return e.h((n.x+i.x)/2,(n.y+i.y)/2),e}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===Su))return this.ua.Pu(.5,e),e.add(this.i(0)),n=this.ua.figures.first(),e.offset(-n.startX,-n.startY),e;if(this.computeCurve()===Su){if(t===3){n=this.i(0),i=this.i(1);var r=this.i(2);return qe.ax(n.x,n.y,i.x,i.y,i.x,i.y,r.x,r.y,e),e}if(i=(t-1)/3|0,n=3*(i/2|0),i%2===1){i=this.i(n),r=this.i(n+1);var o=this.i(n+2);n=this.i(n+3),qe.ax(i.x,i.y,r.x,r.y,o.x,o.y,n.x,n.y,e)}else e.assign(this.i(n));return e}var a=this.flattenedLengths;for(n=this.flattenedTotalLength,r=o=i=0;i<n/2&&o<t&&(r=a[o],!(i+r>n/2));)i+=r,o++;return t=this.i(o),o=this.i(o+1),1>Math.abs(t.x-o.x)?t.y>o.y?e.h(t.x,t.y-(n/2-i)):e.h(t.x,t.y+(n/2-i)):1>Math.abs(t.y-o.y)?t.x>o.x?e.h(t.x-(n/2-i),t.y):e.h(t.x+(n/2-i),t.y):(n=(n/2-i)/r,e.h(t.x+n*(o.x-t.x),t.y+n*(o.y-t.y))),e},Pn.prototype.computeMidAngle=function(){var e=this.pointsCount;if(2>e)return NaN;if(e===2)return this.i(0).ab(this.i(1));if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===Su))return this.ua.wx(.5);if(this.computeCurve()===Su&&4<=e){var t=(e-1)/3|0,n=3*(t/2|0);if(t%2===1){n=Math.floor(n),e=this.i(n),t=this.i(n+1);var i=this.i(n+2);return n=this.i(n+3),qe.My(e.x,e.y,t.x,t.y,i.x,i.y,n.x,n.y)}if(0<n&&n+1<e)return this.i(n-1).ab(this.i(n+1))}t=this.flattenedLengths,i=this.flattenedTotalLength;var r=0;n=0;for(var o;r<i/2&&n<e&&(o=t[n],!(r+o>i/2));)r+=o,n++;if(t=this.i(n),i=this.i(n+1),1>Math.abs(t.x-i.x)&&1>Math.abs(t.y-i.y)){if(0<n&&n+2<e)return this.i(n-1).ab(this.i(n+2))}else{if(1>Math.abs(t.x-i.x))return t.y>i.y?270:90;if(1>Math.abs(t.y-i.y))return t.x>i.x?180:0}return t.ab(i)},U=Pn.prototype,U.i=function(e){return this.Nb.s[e]},U.dd=function(e,t){this.Nb.cd(e,t)},U.L=function(e,t,n){this.Nb.cd(e,new he(t,n))},U.Kz=function(e,t){this.Nb.Gb(e,t)},U.m=function(e,t,n){this.Nb.Gb(e,new he(t,n))},U.ne=function(e){this.Nb.add(e)},U.yf=function(e,t){this.Nb.add(new he(e,t))},U.pv=function(e){this.Nb.mb(e)},U.Fj=function(){this.Nb.clear()};function Eh(e,t,n){if(t!==0||n!==0)if(e.pointsCount===0)e.defaultFromPoint&&e.defaultFromPoint.offset(t,n),e.defaultToPoint&&e.defaultToPoint.offset(t,n);else{for(var i=e.fd,r=new qt,o=e.Nb.iterator;o.next();){var a=o.value;r.add(new he(a.x+t,a.y+n).freeze())}r.freeze(),o=e.Nb,e.Nb=r,a=e.diagram,isNaN(t)||isNaN(n)||a!==null&&a.animationManager.zb?e.v():(e.ke.h(e.ke.x+t,e.ke.y+n),e.pa.h(e.pa.x+t,e.pa.y+n),El(e)),i?nm(e):(e.defaultFromPoint&&(e.defaultFromPoint=e.i(0)),e.defaultToPoint&&(e.defaultToPoint=e.i(e.pointsCount-1))),a!==null&&a.animationManager.zb&&d(a.animationManager,e,r),e.g("points",o,r)}}U.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},U.zf=function(){if(this.Mg!==null){for(var e=this.Mg,t=this.Nb,n=1/0,i=1/0,r=e.s,o=r.length,a=0;a<o;a++){var l=r[a];n=Math.min(l.x,n),i=Math.min(l.y,i)}l=a=1/0;for(var u=t.s,f=u.length,p=0;p<f;p++){var x=u[p];a=Math.min(x.x,a),l=Math.min(x.y,l),x.freeze()}if(t.freeze(),f===o){for(o=0;o<f;o++)if(p=r[o],x=u[o],p.x-n!==x.x-a||p.y-i!==x.y-l){this.qc();break}}else this.qc();this.Mg=null,n=this.diagram,n!==null&&n.animationManager.zb&&d(n.animationManager,this,t),nm(this),this.g("points",e,t)}},U.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function nm(e){e.Nb.count===0?e.fd=!1:(e.fd=!0,e.cq=null,e.vt=NaN,e.defaultFromPoint=e.i(0),e.defaultToPoint=e.i(e.pointsCount-1),am(e,!1))}U.bb=function(){if(!this.suspendsRouting){var e=this.diagram;if(e){if(e.As.contains(this)||e.undoManager.isUndoingRedoing||(e=e.animationManager,e.isTicking&&!e.isAnimating))return;this.Tg===null||e.isTicking||(this.Tg=null)}e=this.path,e!==null&&(this.fd=!1,this.v(),e.v())}},U.vg=function(){if(!this.fd&&!this.computingPoints){var e=!0;try{this.computingPoints=!0,this.uh(),e=this.computePoints()}catch(t){this.computingPoints=!1,this.rv()}finally{this.computingPoints=!1,e?this.zf():this.rv()}}},Pn.prototype.computePoints=function(){if(this.diagram===null)return!1;var e=this.fromNode,t=null;if(e===null?(Wd||(Wd=new Xn,Wd.desiredSize=pa,Wd.Va()),this.defaultFromPoint&&(Wd.location=this.defaultFromPoint,Wd.Va(),t=e=Wd)):t=this.fromPort,t!==null&&!e.isVisible()){var n=e.findVisibleNode();n!==null&&n!==e?(e=n,t=n.port):e=n}if(this.Lw=e,e===null||!e.location.w())return!1;for(;!(t===null||t.actualBounds.w()&&t.Ed());)t=t.panel;if(t===null)return!1;var i=this.toNode,r=null;if(i===null?(Vd||(Vd=new Xn,Vd.desiredSize=pa,Vd.Va()),this.defaultToPoint&&(Vd.location=this.defaultToPoint,Vd.Va(),r=i=Vd)):r=this.toPort,r===null||i.isVisible()||(n=i.findVisibleNode(),n!==null&&n!==i?(i=n,r=n.port):i=n),this.Mw=i,i===null||!i.location.w())return!1;for(;!(r===null||r.actualBounds.w()&&r.Ed());)r=r.panel;if(r===null)return!1;var o=this.pointsCount,a=this.computeSpot(!0,t);n=this.computeSpot(!1,r);var l=Of(a),u=Of(n),f=t===r&&t!==null,p=this.isOrthogonal,x=this.curve===Su;this.Wf=f&&!p?x=!0:!1;var N=this.computeAdjusting()===Nl||f;if(!p&&!f&&l&&u){if(l=!1,!N&&3<=o&&(N=this.getLinkPoint(e,t,a,!0,!1,i,r),u=this.getLinkPoint(i,r,n,!1,!1,e,t),l=this.adjustPoints(0,N,o-1,u))&&(N=this.getLinkPoint(e,t,a,!0,!1,i,r),u=this.getLinkPoint(i,r,n,!1,!1,e,t),this.adjustPoints(0,N,o-1,u)),!l)if(this.Fj(),x){o=this.getLinkPoint(e,t,a,!0,!1,i,r),N=this.getLinkPoint(i,r,n,!1,!1,e,t),l=N.x-o.x,u=N.y-o.y,f=this.computeCurviness(),x=p=0;var R=o.x+l/3,_=o.y+u/3,V=R,xe=_;qe.B(u,0)?xe=0<l?xe-f:xe+f:(p=-l/u,x=Math.sqrt(f*f/(p*p+1)),0>f&&(x=-x),V=(0>u?-1:1)*x+R,xe=p*(V-R)+_),R=o.x+2*l/3,_=o.y+2*u/3;var ue=R,Fe=_;qe.B(u,0)?Fe=0<l?Fe-f:Fe+f:(ue=(0>u?-1:1)*x+R,Fe=p*(ue-R)+_),this.Fj(),this.ne(o),this.yf(V,xe),this.yf(ue,Fe),this.ne(N),this.dd(0,this.getLinkPoint(e,t,a,!0,!1,i,r)),this.dd(3,this.getLinkPoint(i,r,n,!1,!1,e,t))}else o=i,N=r,i=this.getLinkPoint(e,t,a,!0,!1,o,N),r=this.getLinkPoint(o,N,n,!1,!1,e,t),this.hasCurviness()?(N=r.x-i.x,n=r.y-i.y,a=this.computeCurviness(),e=i.x+N/2,t=i.y+n/2,o=e,l=t,qe.B(n,0)?l=0<N?l-a:l+a:(N=-N/n,o=Math.sqrt(a*a/(N*N+1)),0>a&&(o=-o),o=(0>n?-1:1)*o+e,l=N*(o-e)+t),this.ne(i),this.yf(o,l),this.ne(r)):(this.ne(i),this.ne(r),l=Zt.alloc(),t.mi(l),u=l.ca(r),N.mi(l),f=l.ca(i),(u||f)&&(a=t.ga(rm(a),new he),this.dd(0,this.getLinkPointFromPoint(e,t,a,r,!0,a)),n=N.ga(rm(n),new he),this.dd(1,this.getLinkPointFromPoint(o,N,n,i,!1,n))),Zt.free(l))}else{x=this.isAvoiding,N&&(p&&x||f)&&this.Fj();var Ue=f?this.computeCurviness():0;x=this.getLinkPoint(e,t,a,!0,p,i,r),R=V=_=0,(p||!l||f)&&(xe=this.computeEndSegmentLength(e,t,a,!0),R=this.getLinkDirection(e,t,x,a,!0,p,i,r),f&&(l||a.D(n)||!p&&a.x+n.x===1&&a.y+n.y===1)&&(R-=p?90:30,0>Ue&&(R-=180)),0>R?R+=360:360<=R&&(R-=360),f&&(xe+=Math.abs(Ue)*(p?1:2)),R===0?_=xe:R===90?V=xe:R===180?_=-xe:R===270?V=-xe:(_=xe*Math.cos(R*Math.PI/180),V=xe*Math.sin(R*Math.PI/180)),a.Mc()&&f&&(xe=t.ga(Rr,he.alloc()),ue=he.allocAt(xe.x+1e3*_,xe.y+1e3*V),this.getLinkPointFromPoint(e,t,xe,ue,!0,x),he.free(xe),he.free(ue))),xe=this.getLinkPoint(i,r,n,!1,p,e,t);var We=Fe=ue=0;if(p||!u||f){var rt=this.computeEndSegmentLength(i,r,n,!1);We=this.getLinkDirection(i,r,xe,n,!1,p,e,t),f&&(u||a.D(n)||!p&&a.x+n.x===1&&a.y+n.y===1)&&(We+=p?0:30,0>Ue&&(We+=180)),0>We?We+=360:360<=We&&(We-=360),f&&(rt+=Math.abs(Ue)*(p?1:2)),We===0?ue=rt:We===90?Fe=rt:We===180?ue=-rt:We===270?Fe=-rt:(ue=rt*Math.cos(We*Math.PI/180),Fe=rt*Math.sin(We*Math.PI/180)),n.Mc()&&f&&(n=r.ga(Rr,he.alloc()),a=he.allocAt(n.x+1e3*ue,n.y+1e3*Fe),this.getLinkPointFromPoint(i,r,n,a,!1,xe),he.free(n),he.free(a))}n=x,(p||!l||f)&&(n=new he(x.x+_,x.y+V)),a=xe,(p||!u||f)&&(a=new he(xe.x+ue,xe.y+Fe)),!N&&!p&&l&&3<o&&this.adjustPoints(0,x,o-2,a)?this.dd(o-1,xe):!N&&!p&&u&&3<o&&this.adjustPoints(1,n,o-1,xe)?this.dd(0,x):!N&&(p?6<=o:4<o)&&this.adjustPoints(1,n,o-2,a)?(this.dd(0,x),this.dd(o-1,xe)):(this.Fj(),this.ne(x),(p||!l||f)&&this.ne(n),p&&this.addOrthoPoints(n,R,a,We,e,i),(p||!u||f)&&this.ne(a),this.ne(xe))}return!0};function tv(e,t){return Math.abs(t.x-e.x)>Math.abs(t.y-e.y)?(t.x>=e.x?t.x=e.x+9e9:t.x=e.x-9e9,t.y=e.y):(t.y>=e.y?t.y=e.y+9e9:t.y=e.y-9e9,t.x=e.x),t}Pn.prototype.getLinkPointFromPoint=function(e,t,n,i,r,o){if(o===void 0&&(o=new he),e===null||t===null)return o.assign(n),o;if(e.isVisible()||(r=e.findVisibleNode(),r!==null&&r!==e&&(t=r.port)),e=null,r=t.panel,r===null||r.se()||(r=r.panel),r===null){r=i.x,i=i.y;var a=n.x;n=n.y}else{e=r.oe,r=1/(e.m11*e.m22-e.m12*e.m21),a=e.m22*r;var l=-e.m12*r,u=-e.m21*r,f=e.m11*r,p=r*(e.m21*e.dy-e.m22*e.dx),x=r*(e.m12*e.dx-e.m11*e.dy);r=i.x*a+i.y*u+p,i=i.x*l+i.y*f+x,a=n.x*a+n.y*u+p,n=n.x*l+n.y*f+x}return t.Sj(r,i,a,n,o),e!==null&&o.transform(e),o};function im(e,t){var n=t.Zn;return n===null&&(n=new Kd,n.port=t,n.node=t.part,t.Zn=n),y1(n,e)}Pn.prototype.getLinkPoint=function(e,t,n,i,r,o,a,l){if(l===void 0&&(l=new he),n.sb()&&!Of(n))return t.ga(n,l),l;if(n.$c()){var u=im(this,t);if(u!==null){if(l.assign(u.Zo),r&&this.routing===d1){var f=im(this,a);if(f!==null&&u.Gl<f.Gl){u=he.alloc(),f=he.alloc();var p=new Zt(t.ga(Jo,u),t.ga(Bo,f)),x=this.computeSpot(!i,a);e=this.getLinkPoint(o,a,x,!i,r,e,t,f),(n.Hf(fl)||n.Hf(ja))&&e.y>=p.y&&e.y<=p.y+p.height?l.y=e.y:(n.Hf(Ia)||n.Hf(qa))&&e.x>=p.x&&e.x<=p.x+p.width&&(l.x=e.x),he.free(u),he.free(f)}}return l}}return n=t.ga(rm(n),he.alloc()),this.pointsCount>(r?6:2)?(a=i?this.i(1):this.i(this.pointsCount-2),r&&(a=tv(n,a.copy()))):(u=this.computeSpot(!i,a),o=he.alloc(),a=a.ga(rm(u),o),r&&(a=tv(n,a)),he.free(o)),this.getLinkPointFromPoint(e,t,n,a,i,l),he.free(n),l},Pn.prototype.getLinkDirection=function(e,t,n,i,r,o,a,l){e:if(i.sb())var u=i.x>i.y?i.x>1-i.y?0:i.x<1-i.y?270:315:i.x<i.y?i.x>1-i.y?90:i.x<1-i.y?180:135:.5>i.x?225:.5<i.x?45:0;else{if(i.$c()&&(u=im(this,t),u!==null))switch(u.Nc){case 1:u=270;break e;case 2:u=180;break e;default:case 4:u=0;break e;case 8:u=90;break e}u=t.ga(Rr,he.alloc()),this.pointsCount>(o?6:2)?(l=r?this.i(1):this.i(this.pointsCount-2),l=o?tv(u,l.copy()):n):(n=he.alloc(),l=l.ga(Rr,n),he.free(n)),n=Math.abs(l.x-u.x)>Math.abs(l.y-u.y)?l.x>=u.x?0:180:l.y>=u.y?90:270,he.free(u),u=n}return i.Mc()&&a.Td(e)&&(u+=180,360<=u&&(u-=360)),Of(i)||(e=t.li(),e===0)||(45<=e&&135>e?u+=90:135<=e&&225>e?u+=180:225<=e&&315>e&&(u+=270),360<=u&&(u-=360)),u},Pn.prototype.computeEndSegmentLength=function(e,t,n,i){return t!==null&&n.$c()&&(e=im(this,t),e!==null)?e.Ju:(e=i?this.fromEndSegmentLength:this.toEndSegmentLength,t!==null&&isNaN(e)&&(e=i?t.fromEndSegmentLength:t.toEndSegmentLength),isNaN(e)&&(e=10),e)},Pn.prototype.computeSpot=function(e,t){return t===void 0&&(t=null),e?(e=t||this.fromPort,e===null?e=Rr:(t=this.fromSpot,t.Xb()&&(t=e.fromSpot),e=t===Kr?Ui:t)):(e=t||this.toPort,e===null?e=Rr:(t=this.toSpot,t.Xb()&&(t=e.toSpot),e=t===Kr?Ui:t)),e};function Of(e){return e===Ui||e.x===.5&&e.y===.5}function rm(e){return e.x===.5&&e.y===.5?e:Rr}Pn.prototype.computeOtherPoint=function(e,t){return this.computeAdjusting()!==Nl&&4<this.pointsCount?this.computeMidPoint(new he):(e=t.Zn,e=e!==null?y1(e,this):null,e!==null?e.Zo:t.ga(Rr))},Pn.prototype.computeShortLength=function(e){if(e){if(e=this.fromShortLength,isNaN(e)){var t=this.fromPort;t!==null&&(e=t.fromShortLength)}return isNaN(e)?0:e}return e=this.toShortLength,isNaN(e)&&(t=this.toPort,t!==null&&(e=t.toShortLength)),isNaN(e)?0:e},Pn.prototype.Cf=function(e,t,n,i,r,o){if(this.pickable===!1)return!1;t===void 0&&(t=null),n===void 0&&(n=null);var a=o;if(o===void 0&&(a=nr.alloc(),a.reset()),a.multiply(this.transform),this.fh(e,a))return Tg(this,t,n,r),o===void 0&&nr.free(a),!0;if(this.Yc(e,a)){var l=!1;if(!this.isAtomic)for(var u=this.O.s,f=u.length;f--;){var p=u[f];if(p.visible||p===this.locationObject){var x=p.actualBounds,N=this.naturalBounds;if(!(x.x>N.width||x.y>N.height||0>x.x+x.width||0>x.y+x.height)){if(x=nr.alloc(),x.set(a),p instanceof kn)l=p.Cf(e,t,n,i,r,x);else if(this.path===p){if(p instanceof lr)if(l=e,N=i,p.pickable===!1)l=!1;else if(x.multiply(p.transform),N)e:{var R=l,_=x;if(p.fh(R,_))l=!0;else{if(_===void 0&&(_=p.transform,R.Re(p.actualBounds))){l=!0;break e}l=R.left,N=R.right;var V=R.top;R=R.bottom;var xe=he.alloc(),ue=he.alloc(),Fe=he.alloc(),Ue=nr.alloc();Ue.set(_),Ue.bv(p.transform),Ue.Vj(),ue.x=N,ue.y=V,ue.transform(Ue),xe.x=l,xe.y=V,xe.transform(Ue),_=!1,Sd(p,xe,ue,Fe)?_=!0:(xe.x=N,xe.y=R,xe.transform(Ue),Sd(p,xe,ue,Fe)?_=!0:(ue.x=l,ue.y=R,ue.transform(Ue),Sd(p,xe,ue,Fe)?_=!0:(xe.x=l,xe.y=V,xe.transform(Ue),Sd(p,xe,ue,Fe)&&(_=!0)))),nr.free(Ue),he.free(xe),he.free(ue),he.free(Fe),l=_}}else l=p.fh(l,x)}else l=cs(p,e,i,x);l&&(N=p,t!==null&&(N=t(p)),N&&(n===null||n(N))&&r.add(N)),nr.free(x)}}}return o===void 0&&nr.free(a),l||this.background!==null||this.areaBackground!==null}return o===void 0&&nr.free(a),!1},Pn.prototype.computeCurve=function(){if(this.Wf===null){var e=this.fromPort,t=this.isOrthogonal;this.Wf=e!==null&&e===this.toPort&&!t}return this.Wf?Su:this.curve},Pn.prototype.computeCorner=function(){if(this.curve===Su)return 0;var e=this.corner;return(isNaN(e)||0>e)&&(e=10),e},Pn.prototype.findMidLabel=function(){for(var e=this.path,t=this.O.s,n=t.length,i=0;i<n;i++){var r=t[i];if(r!==e&&!r.isPanelMain&&(r.segmentIndex===-1/0||isNaN(r.segmentIndex)))return r}for(e=this.labelNodes;e.next();)if(t=e.value,t.segmentIndex===-1/0||isNaN(t.segmentIndex))return t;return null},Pn.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var e=p1;e=Math.max(e,this.computeThickness());var t=this.fromPort,n=this.toPort;if(t!==null&&n!==null){var i=this.findMidLabel();if(i!==null){var r=i.naturalBounds,o=i.margin,a=isNaN(r.width)?30:r.width*i.scale+o.left+o.right;r=isNaN(r.height)?14:r.height*i.scale+o.top+o.bottom,i=i.segmentOrientation,i===Mp||i===um||i===av?e=Math.max(e,r):i===Lp||i===Dp||i===Op||i===Rp?e=Math.max(e,a):(t=t.ga(Rr).ab(n.ga(Rr))/180*Math.PI,e=Math.max(e,Math.abs(Math.sin(t)*a)+Math.abs(Math.cos(t)*r)+1)),this.curve===Su&&(e*=1.333)}}return e},Pn.prototype.arrangeBundledLinks=function(e,t){if(t)for(t=0;t<e.length;t++){var n=e[t];n.computeAdjusting()===Nl&&n.bb()}},Pn.prototype.computeCurviness=function(){var e=this.curviness;if(isNaN(e)){e=f1;var t=this.Sf;if(t!==null){for(var n=Rt(),i=0,r=t.links,o=0;o<r.length;o++){var a=r[o].computeSpacing();n.push(a),i+=a}for(i=-i/2,o=0;o<r.length;o++){if(r[o]===this){e=i+n[o]/2;break}i+=n[o]}t.Ds===this.fromNode&&(e=-e),Jt(n)}}return e},Pn.prototype.computeThickness=function(){if(!this.isVisible())return 0;var e=this.path;return e!==null?Math.max(e.strokeWidth,1):1},Pn.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},Pn.prototype.adjustPoints=function(e,t,n,i){var r=this.computeAdjusting();if(this.isOrthogonal){if(r===sm)return!1;r===lm&&(r=Ip)}switch(r){case sm:var o=this.i(e),a=this.i(n);if(!o.Xa(t)||!a.Xa(i)){r=o.x,o=o.y;var l=a.x-r,u=a.y-o,f=Math.sqrt(l*l+u*u);if(!qe.$(f,0)){if(qe.$(l,0))var p=0>u?-Math.PI/2:Math.PI/2;else p=Math.atan(u/Math.abs(l)),0>l&&(p=Math.PI-p);a=t.x;var x=t.y;l=i.x-a;var N=i.y-x;for(u=Math.sqrt(l*l+N*N),qe.$(l,0)?N=0>N?-Math.PI/2:Math.PI/2:(N=Math.atan(N/Math.abs(l)),0>l&&(N=Math.PI-N)),f=u/f,p=N-p,this.dd(e,t),e+=1;e<n;e++)t=this.i(e),l=t.x-r,u=t.y-o,t=Math.sqrt(l*l+u*u),qe.$(t,0)||(qe.$(l,0)?u=0>u?-Math.PI/2:Math.PI/2:(u=Math.atan(u/Math.abs(l)),0>l&&(u=Math.PI-u)),l=u+p,t*=f,this.L(e,a+t*Math.cos(l),x+t*Math.sin(l)));this.dd(n,i)}}return!0;case lm:if(o=this.i(e),x=this.i(n),!o.Xa(t)||!x.Xa(i)){r=o.x,o=o.y,a=x.x,x=x.y,f=(a-r)*(a-r)+(x-o)*(x-o),l=t.x,p=t.y,u=i.x,N=i.y;var R=1;if(u-l!==0){var _=(N-p)/(u-l);R=Math.sqrt(1+1/(_*_))}else _=9e9;for(this.dd(e,t),e+=1;e<n;e++){t=this.i(e);var V=t.x,xe=t.y,ue=.5;f!==0&&(ue=((r-V)*(r-a)+(o-xe)*(o-x))/f);var Fe=r+ue*(a-r),Ue=o+ue*(x-o);t=Math.sqrt((V-Fe)*(V-Fe)+(xe-Ue)*(xe-Ue)),xe<_*(V-Fe)+Ue&&(t=-t),0<_&&(t=-t),V=l+ue*(u-l),ue=p+ue*(N-p),_!==0?(t=V+t/R,this.L(e,t,ue-(t-V)/_)):this.L(e,V,ue+t)}this.dd(n,i)}return!0;case Ip:e:{if(this.isOrthogonal&&(r=this.i(e),o=this.i(e+1),a=this.i(e+2),l=o.x,p=o.y,x=l,f=p,qe.B(r.y,o.y)?qe.B(o.x,a.x)?p=t.y:qe.B(o.y,a.y)&&(l=t.x):qe.B(r.x,o.x)&&(qe.B(o.y,a.y)?l=t.x:qe.B(o.x,a.x)&&(p=t.y)),this.L(e+1,l,p),r=this.i(n),o=this.i(n-1),a=this.i(n-2),l=o.x,p=o.y,u=l,N=p,qe.B(r.y,o.y)?qe.B(o.x,a.x)?p=i.y:qe.B(o.y,a.y)&&(l=i.x):qe.B(r.x,o.x)&&(qe.B(o.y,a.y)?l=i.x:qe.B(o.x,a.x)&&(p=i.y)),this.L(n-1,l,p),nv(this))){this.L(e+1,x,f),this.L(n-1,u,N),n=!1;break e}this.dd(e,t),this.dd(n,i),n=!0}return n;default:return!1}},Pn.prototype.addOrthoPoints=function(e,t,n,i,r,o){0>t?t+=360:360<=t&&(t-=360),0>i?i+=360:360<=i&&(i-=360);var a=i;t=315<=t||45>t?0:45<=t&&135>t?90:135<=t&&225>t?180:270,i=315<=i||45>i?0:45<=i&&135>i?90:135<=i&&225>i?180:270;var l=r.actualBounds.copy(),u=o.actualBounds.copy();if(l.w()&&u.w()){l.Bc(Pp,Pp),u.Bc(Pp,Pp),l.Ye(e),u.Ye(n);var f=he.alloc(),p=he.alloc();t===0?n.x>e.x||i===270&&n.y<e.y&&u.right>e.x||i===90&&n.y>e.y&&u.right>e.x?(f.h(n.x,e.y),p.h(n.x,(e.y+n.y)/2),i===180?(f.x=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!1),p.x=f.x,p.y=n.y):i===270&&n.y<e.y||i===90&&n.y>e.y?(f.x=e.x<u.left?this.computeMidOrthoPosition(e.x,e.y,u.left,n.y,!1):e.x<u.right&&(i===270&&e.y<u.top||i===90&&e.y>u.bottom)?this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!1):u.right,p.x=f.x,p.y=n.y):i===0&&e.x<u.left&&e.y>u.top&&e.y<u.bottom&&(f.x=e.x,f.y=e.y<n.y?Math.min(n.y,u.top):Math.max(n.y,u.bottom),p.y=f.y)):(f.h(e.x,n.y),p.h((e.x+n.x)/2,n.y),(i===180||i===90&&n.y<l.top||i===270&&n.y>l.bottom)&&(i===180&&(u.ca(e)||l.ca(n))?f.y=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!0):n.y<e.y&&(i===180||i===90)?f.y=this.computeMidOrthoPosition(e.x,l.top,n.x,Math.max(n.y,u.bottom),!0):n.y>e.y&&(i===180||i===270)&&(f.y=this.computeMidOrthoPosition(e.x,l.bottom,n.x,Math.min(n.y,u.top),!0)),p.x=n.x,p.y=f.y),f.y>l.top&&f.y<l.bottom&&(n.x>=l.left&&n.x<=e.x||e.x<=u.right&&e.x>=n.x?(i===90||i===270)&&(f.h(Math.max((e.x+n.x)/2,e.x),e.y),p.h(f.x,n.y)):(f.y=i===270||(i===0||i===180)&&n.y<e.y?Math.min(n.y,i===0?l.top:Math.min(l.top,u.top)):Math.max(n.y,i===0?l.bottom:Math.max(l.bottom,u.bottom)),p.x=n.x,p.y=f.y))):t===180?n.x<e.x||i===270&&n.y<e.y&&u.left<e.x||i===90&&n.y>e.y&&u.left<e.x?(f.h(n.x,e.y),p.h(n.x,(e.y+n.y)/2),i===0?(f.x=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!1),p.x=f.x,p.y=n.y):i===270&&n.y<e.y||i===90&&n.y>e.y?(f.x=e.x>u.right?this.computeMidOrthoPosition(e.x,e.y,u.right,n.y,!1):e.x>u.left&&(i===270&&e.y<u.top||i===90&&e.y>u.bottom)?this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!1):u.left,p.x=f.x,p.y=n.y):i===180&&e.x>u.right&&e.y>u.top&&e.y<u.bottom&&(f.x=e.x,f.y=e.y<n.y?Math.min(n.y,u.top):Math.max(n.y,u.bottom),p.y=f.y)):(f.h(e.x,n.y),p.h((e.x+n.x)/2,n.y),(i===0||i===90&&n.y<l.top||i===270&&n.y>l.bottom)&&(i===0&&(u.ca(e)||l.ca(n))?f.y=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!0):n.y<e.y&&(i===0||i===90)?f.y=this.computeMidOrthoPosition(e.x,l.top,n.x,Math.max(n.y,u.bottom),!0):n.y>e.y&&(i===0||i===270)&&(f.y=this.computeMidOrthoPosition(e.x,l.bottom,n.x,Math.min(n.y,u.top),!0)),p.x=n.x,p.y=f.y),f.y>l.top&&f.y<l.bottom&&(n.x<=l.right&&n.x>=e.x||e.x>=u.left&&e.x<=n.x?(i===90||i===270)&&(f.h(Math.min((e.x+n.x)/2,e.x),e.y),p.h(f.x,n.y)):(f.y=i===270||(i===0||i===180)&&n.y<e.y?Math.min(n.y,i===180?l.top:Math.min(l.top,u.top)):Math.max(n.y,i===180?l.bottom:Math.max(l.bottom,u.bottom)),p.x=n.x,p.y=f.y))):t===90?n.y>e.y||i===180&&n.x<e.x&&u.bottom>e.y||i===0&&n.x>e.x&&u.bottom>e.y?(f.h(e.x,n.y),p.h((e.x+n.x)/2,n.y),i===270?(f.y=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!0),p.x=n.x,p.y=f.y):i===180&&n.x<e.x||i===0&&n.x>e.x?(f.y=e.y<u.top?this.computeMidOrthoPosition(e.x,e.y,n.x,u.top,!0):e.y<u.bottom&&(i===180&&e.x<u.left||i===0&&e.x>u.right)?this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!0):u.bottom,p.x=n.x,p.y=f.y):i===90&&e.y<u.top&&e.x>u.left&&e.x<u.right&&(f.x=e.x<n.x?Math.min(n.x,u.left):Math.max(n.x,u.right),f.y=e.y,p.x=f.x)):(f.h(n.x,e.y),p.h(n.x,(e.y+n.y)/2),(i===270||i===0&&n.x<l.left||i===180&&n.x>l.right)&&(i===270&&(u.ca(e)||l.ca(n))?f.x=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!1):n.x<e.x&&(i===270||i===0)?f.x=this.computeMidOrthoPosition(l.left,e.y,Math.max(n.x,u.right),n.y,!1):n.x>e.x&&(i===270||i===180)&&(f.x=this.computeMidOrthoPosition(l.right,e.y,Math.min(n.x,u.left),n.y,!1)),p.x=f.x,p.y=n.y),f.x>l.left&&f.x<l.right&&(n.y>=l.top&&n.y<=e.y||e.y<=u.bottom&&e.y>=n.y?(i===0||i===180)&&(f.h(e.x,Math.max((e.y+n.y)/2,e.y)),p.h(n.x,f.y)):(f.x=i===180||(i===90||i===270)&&n.x<e.x?Math.min(n.x,i===90?l.left:Math.min(l.left,u.left)):Math.max(n.x,i===90?l.right:Math.max(l.right,u.right)),p.x=f.x,p.y=n.y))):n.y<e.y||i===180&&n.x<e.x&&u.top<e.y||i===0&&n.x>e.x&&u.top<e.y?(f.h(e.x,n.y),p.h((e.x+n.x)/2,n.y),i===90?(f.y=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!0),p.x=n.x,p.y=f.y):i===180&&n.x<e.x||i===0&&n.x>=e.x?(f.y=e.y>u.bottom?this.computeMidOrthoPosition(e.x,e.y,n.x,u.bottom,!0):e.y>u.top&&(i===180&&e.x<u.left||i===0&&e.x>u.right)?this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!0):u.top,p.x=n.x,p.y=f.y):i===270&&e.y>u.bottom&&e.x>u.left&&e.x<u.right&&(f.x=e.x<n.x?Math.min(n.x,u.left):Math.max(n.x,u.right),f.y=e.y,p.x=f.x)):(f.h(n.x,e.y),p.h(n.x,(e.y+n.y)/2),(i===90||i===0&&n.x<l.left||i===180&&n.x>l.right)&&(i===90&&(u.ca(e)||l.ca(n))?f.x=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!1):n.x<e.x&&(i===90||i===0)?f.x=this.computeMidOrthoPosition(l.left,e.y,Math.max(n.x,u.right),n.y,!1):n.x>e.x&&(i===90||i===180)&&(f.x=this.computeMidOrthoPosition(l.right,e.y,Math.min(n.x,u.left),n.y,!1)),p.x=f.x,p.y=n.y),f.x>l.left&&f.x<l.right&&(n.y<=l.bottom&&n.y>=e.y||e.y>=u.top&&e.y<=n.y?(i===0||i===180)&&(f.h(e.x,Math.min((e.y+n.y)/2,e.y)),p.h(n.x,f.y)):(f.x=i===180||(i===90||i===270)&&n.x<e.x?Math.min(n.x,i===270?l.left:Math.min(l.left,u.left)):Math.max(n.x,i===270?l.right:Math.max(l.right,u.right)),p.x=f.x,p.y=n.y)));var x=n;if(this.isAvoiding){var N=this.diagram;if(N===null||r===o||this.layer.isTemporary||!hf(N)||l.ca(x)&&!o.Td(r)||u.ca(e)&&!r.Td(o))t=!1;else{var R=df(N,!0,this.containingGroup,null);if(this.segmentIndex!==17&&R.Yj(Math.min(e.x,f.x),Math.min(e.y,f.y),Math.abs(e.x-f.x),Math.abs(e.y-f.y))&&R.Yj(Math.min(f.x,p.x),Math.min(f.y,p.y),Math.abs(f.x-p.x),Math.abs(f.y-p.y))&&R.Yj(Math.min(p.x,x.x),Math.min(p.y,x.y),Math.abs(p.x-x.x),Math.abs(p.y-x.y)))t=!1;else{r=e,o=x;var _=n=null;if(N.isVirtualized){N=R.bounds.copy(),N.Bc(-R.Ho,-R.Go);var V=he.alloc();Rf(R,e.x,e.y)||(qe.Ff(N.x,N.y,N.x+N.width,N.y+N.height,e.x,e.y,f.x,f.y,V)?(n=e=V.copy(),t=V.ab(f)):qe.Ff(N.x,N.y,N.x+N.width,N.y+N.height,f.x,f.y,p.x,p.y,V)?(n=e=V.copy(),t=V.ab(p)):qe.Ff(N.x,N.y,N.x+N.width,N.y+N.height,p.x,p.y,x.x,x.y,V)&&(n=e=V.copy(),t=V.ab(x))),Rf(R,x.x,x.y)||(qe.Ff(N.x,N.y,N.x+N.width,N.y+N.height,x.x,x.y,p.x,p.y,V)?(_=x=V.copy(),i=p.ab(V)):qe.Ff(N.x,N.y,N.x+N.width,N.y+N.height,p.x,p.y,f.x,f.y,V)?(_=x=V.copy(),i=f.ab(V)):qe.Ff(N.x,N.y,N.x+N.width,N.y+N.height,f.x,f.y,e.x,e.y,V)&&(_=x=V.copy(),i=e.ab(V))),he.free(V)}l=l.copy().ed(u),l.Bc(R.Ho*R.Os,R.Go*R.Os),g1(R,e,t,x,i,l,!0),u=Hc(R,x.x,x.y),!R.abort&&u>=Df&&(m1(R),l.Bc(R.Ho*R.Hx,R.Go*R.Ix),g1(R,e,t,x,i,l,!1),u=Hc(R,x.x,x.y)),!R.abort&&u<Df&&Hc(R,x.x,x.y)!==Ch?(iv(this,R,x.x,x.y,i,!0,a),l=this.i(2),4>this.pointsCount?(t===0||t===180?(l.x=e.x,l.y=x.y):(l.x=x.x,l.y=e.y),this.L(2,l.x,l.y),this.m(3,l.x,l.y)):(a=this.i(3),t===0||t===180?qe.B(l.x,a.x)?(l=t===0?Math.max(l.x,e.x):Math.min(l.x,e.x),this.L(2,l,e.y),this.L(3,l,a.y)):qe.B(l.y,a.y)?(Math.abs(e.y-l.y)<=R.Go/2&&(this.L(2,l.x,e.y),this.L(3,a.x,e.y)),this.m(2,l.x,e.y)):this.L(2,e.x,l.y):(t===90||t===270)&&(qe.B(l.y,a.y)?(l=t===90?Math.max(l.y,e.y):Math.min(l.y,e.y),this.L(2,e.x,l),this.L(3,a.x,l)):qe.B(l.x,a.x)?(Math.abs(e.x-l.x)<=R.Ho/2&&(this.L(2,e.x,l.y),this.L(3,e.x,a.y)),this.m(2,e.x,l.y)):this.L(2,l.x,e.y))),n!==null&&(e=this.i(1),a=this.i(2),e.x!==a.x&&e.y!==a.y?t===0||t===180?this.m(2,e.x,a.y):this.m(2,a.x,e.y):t===0||t===180?this.m(2,r.x,n.y):this.m(2,n.x,r.y)),_!==null&&(i===0||i===180?this.yf(o.x,_.y):this.yf(_.x,o.y)),t=!0):t=!1}}}else t=!1;t||(this.ne(f.copy()),this.ne(p.copy())),he.free(f),he.free(p)}},Pn.prototype.computeMidOrthoPosition=function(e,t,n,i,r){var o=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(o=this.computeCurviness()),r?(t+i)/2+o:(e+n)/2+o};function nv(e){if(e.diagram===null||!e.isAvoiding||!hf(e.diagram))return!1;var t=e.points.s,n=t.length;if(4>n)return!1;e=df(e.diagram,!0,e.containingGroup,null);for(var i=1;i<n-2;i++){var r=t[i],o=t[i+1];if(!e.Yj(Math.min(r.x,o.x),Math.min(r.y,o.y),Math.abs(r.x-o.x),Math.abs(r.y-o.y)))return!0}return!1}function iv(e,t,n,i,r,o,a){var l=t.Ho,u=t.Go,f=Hc(t,n,i),p=n,x=i;for(r===0?p+=l:r===90?x+=u:r===180?p-=l:x-=u,r!==a&&f>Cd&&Hc(t,p,x)!==f-1&&(Hc(t,n-l,i)===f-1?(r=180,p=n-l,x=i):Hc(t,n+l,i)===f-1?(r=0,p=n+l,x=i):Hc(t,n,i-u)===f-1?(r=270,p=n,x=i-u):Hc(t,n,i+u)===f-1&&(r=90,p=n,x=i+u));f>Cd&&Hc(t,p,x)===f-1;)n=p,i=x,r===0?p+=l:r===90?x+=u:r===180?p-=l:x-=u,--f;o?f>Cd&&(r===180||r===0?n=Math.floor(n/l)*l+l/2:(r===90||r===270)&&(i=Math.floor(i/u)*u+u/2)):(n=Math.floor(n/l)*l+l/2,i=Math.floor(i/u)*u+u/2),f>Cd&&(o=r,a=n,p=i,r===0?(o=90,p+=u):r===90?(o=180,a-=l):r===180?(o=270,p-=u):r===270&&(o=0,a+=l),Hc(t,a,p)===f-1?iv(e,t,a,p,o,!1,o):(a=n,p=i,r===0?(o=270,p-=u):r===90?(o=0,a+=l):r===180?(o=90,p+=u):r===270&&(o=180,a-=l),Hc(t,a,p)===f-1&&iv(e,t,a,p,o,!1,o))),e.yf(n,i)}Pn.prototype.ez=function(e){var t=e.x;e=e.y;for(var n=this.i(0),i=this.i(1),r=Lr(t,e,n.x,n.y,i.x,i.y),o=0,a=1;a<this.pointsCount-1;a++){n=this.i(a+1);var l=Lr(t,e,i.x,i.y,n.x,n.y);i=n,l<r&&(o=a,r=l)}return o},Pn.prototype.qc=function(){this.lk=!1,this.v()},Pn.prototype.Ul=function(e){if(!(!e&&(this.fd===!1||(e=this.Pb(),this.lk&&(e===null||e.geometry!==null))))&&(2>this.pointsCount?this.lk=!0:this.ua=this.makeGeometry(),e=this.path,e!==null)){e.ua=this.ua;for(var t=this.O.s,n=t.length,i=0;i<n;i++){var r=t[i];r!==e&&r.isPanelMain&&r instanceof lr&&(r.ua=this.ua)}}},Pn.prototype.makeGeometry=function(){var e=this.ua,t=this.pointsCount,n=!1,i=this.diagram;i!==null&&wd(this)&&i.Eh.contains(this)&&(this.ml.width!==0||this.ml.height!==0)&&(i.animationManager.isAnimating||i.currentTool!==i.toolManager)&&(n=!0);var r=this.i(0).copy(),o=r.copy();i=this.Nb.s;var a=this.computeCurve();if(a===Su&&3<=t&&!qe.$(this.smoothness,0))if(t===3){var l=this.i(1);i=Math.min(r.x,l.x);var u=Math.min(r.y,l.y);l=this.i(2),i=Math.min(i,l.x),u=Math.min(u,l.y)}else{if(this.isOrthogonal)for(u=0;u<t;u++)l=i[u],o.x=Math.min(l.x,o.x),o.y=Math.min(l.y,o.y);else for(i=3;i<t;i+=3)i+3>=t&&(i=t-1),u=this.i(i),o.x=Math.min(u.x,o.x),o.y=Math.min(u.y,o.y);i=o.x,u=o.y}else{for(u=0;u<t;u++)l=i[u],o.x=Math.min(l.x,o.x),o.y=Math.min(l.y,o.y);i=o.x,u=o.y}if(i-=this.su.x,u-=this.su.y,r.x-=i,r.y-=u,t!==2||wd(this)){if(e.type=Dn.o,l=Hy(e),this.computeShortLength(!0)!==0&&(r=jd(this,r,!0,o)),If(l,r.x,r.y,!1),a===Su&&3<=t&&!qe.$(this.smoothness,0))if(t===3)n=this.i(1),t=n.x-i,n=n.y-u,r=this.i(2).copy(),r.x-=i,r.y-=u,this.computeShortLength(!1)!==0&&(r=jd(this,r,!1,o)),bh(l,t,n,t,n,r.x,r.y);else if(this.isOrthogonal){t=he.allocAt(i,u),n=he.alloc(),n.assign(this.i(1)),o=he.allocAt(i,u),r=he.allocAt(i,u),a=this.i(0);for(var f,p=this.smoothness/3,x=1;x<this.pointsCount-1;x++){f=this.i(x);var N=a,R=f,_=this.i(rv(this,f,x,!1));if((!qe.$(N.x,R.x)||!qe.$(R.x,_.x))&&(!qe.$(N.y,R.y)||!qe.$(R.y,_.y))){var V=p;isNaN(V)&&(V=this.smoothness/3);var xe=N.x;N=N.y;var ue=R.x;R=R.y;var Fe=_.x;_=_.y;var Ue=V*om(xe,N,ue,R);V*=om(ue,R,Fe,_),qe.$(N,R)&&qe.$(ue,Fe)&&(ue>xe?_>R?(o.x=ue-Ue,o.y=R-Ue,r.x=ue+V,r.y=R+V):(o.x=ue-Ue,o.y=R+Ue,r.x=ue+V,r.y=R-V):_>R?(o.x=ue+Ue,o.y=R-Ue,r.x=ue-V,r.y=R+V):(o.x=ue+Ue,o.y=R+Ue,r.x=ue-V,r.y=R-V)),qe.$(xe,ue)&&qe.$(R,_)&&(R>N?(Fe>ue?(o.x=ue-Ue,o.y=R-Ue,r.x=ue+V):(o.x=ue+Ue,o.y=R-Ue,r.x=ue-V),r.y=R+V):(Fe>ue?(o.x=ue-Ue,o.y=R+Ue,r.x=ue+V):(o.x=ue+Ue,o.y=R+Ue,r.x=ue-V),r.y=R-V)),(qe.$(xe,ue)&&qe.$(ue,Fe)||qe.$(N,R)&&qe.$(R,_))&&(xe=.5*(xe+Fe),N=.5*(N+_),o.x=xe,o.y=N,r.x=xe,r.y=N),(x===1||x===2&&qe.$(a.x,this.i(0).x)&&qe.$(a.y,this.i(0).y))&&(n.x=.5*(a.x+f.x),n.y=.5*(a.y+f.y)),bh(l,n.x-i,n.y-u,o.x-i,o.y-u,f.x-i,f.y-u),t.set(o),n.set(r),a=f}}f=a.x,a=a.y,p=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(p=jd(this,p.copy(),!1,gr)),f=.5*(f+p.x),a=.5*(a+p.y),bh(l,r.x-i,r.y-u,f-i,a-u,p.x-i,p.y-u),he.free(t),he.free(n),he.free(o),he.free(r)}else for(n=3;n<t;n+=3)o=this.i(n-2),n+3>=t&&(n=t-1),r=this.i(n-1),a=this.i(n),n===t-1&&this.computeShortLength(!1)!==0&&(a=jd(this,a.copy(),!1,gr)),bh(l,o.x-i,o.y-u,r.x-i,r.y-u,a.x-i,a.y-u);else{for(o=he.alloc(),o.assign(this.i(0)),r=he.alloc(),r.assign(o),a=this.computeCorner(),x=1,f=0;x<t;){if(x=rv(this,o,x,1<x),p=this.i(x),x>=t-1){if(!o.D(p))this.computeShortLength(!1)!==0&&(p=jd(this,p.copy(),!1,gr)),Gd(this,l,-i,-u,o,p,n);else if(f===0)for(x=1;x<t;)r.assign(o),p=this.i(x++),Gd(this,l,-i,-u,o,p,n),o.assign(p);break}if(f=rv(this,p,x+1,x<t-3),x=-i,xe=-u,N=p,ue=this.i(f),V=n,qe.B(o.y,N.y)&&qe.B(N.x,ue.x))if(_=Math.min(a,Math.abs(N.x-r.x)/2),_=Ue=Math.min(_,Math.abs(ue.y-N.y)/2),qe.B(_,0))Gd(this,l,x,xe,o,N,V),o.assign(N);else{var We=N.x,rt=N.y;R=We,Fe=rt,N.x>o.x?We=N.x-_:We=N.x+_,ue.y>N.y?Fe=N.y+Ue:Fe=N.y-Ue,ue=he.allocAt(We,rt),Gd(this,l,x,xe,o,ue,V),he.free(ue),Y0(l,N.x+x,N.y+xe,R+x,Fe+xe),o.h(R,Fe)}else qe.B(o.x,N.x)&&qe.B(N.y,ue.y)?(_=Math.min(a,Math.abs(N.y-r.y)/2),_=Ue=Math.min(_,Math.abs(ue.x-N.x)/2),qe.B(Ue,0)?(Gd(this,l,x,xe,o,N,V),o.assign(N)):(We=N.x,rt=N.y,R=We,Fe=rt,N.y>o.y?rt=N.y-_:rt=N.y+_,ue.x>N.x?R=N.x+Ue:R=N.x-Ue,ue=he.allocAt(We,rt),Gd(this,l,x,xe,o,ue,V),he.free(ue),Y0(l,N.x+x,N.y+xe,R+x,Fe+xe),o.h(R,Fe))):(Gd(this,l,x,xe,o,N,V),o.assign(N));r.assign(p),x=f}he.free(o)}X0=l}else l=this.i(1).copy(),l.x-=i,l.y-=u,this.computeShortLength(!0)!==0&&(r=jd(this,r,!0,o)),this.computeShortLength(!1)!==0&&(l=jd(this,l,!1,o)),e.type=Dn.j,e.startX=r.x,e.startY=r.y,e.endX=l.x,e.endY=l.y;return this.lk=!0,e};function om(e,t,n,i){return e=n-e,isNaN(e)||e===1/0||e===-1/0?NaN:(0>e&&(e=-e),t=i-t,isNaN(t)||t===1/0||t===-1/0?NaN:(0>t&&(t=-t),qe.$(e,0)?t:qe.$(t,0)?e:Math.sqrt(e*e+t*t)))}function jd(e,t,n,i){var r=e.pointsCount;if(2>r)return t;if(n){var o=e.i(1);if(n=o.x-i.x,o=o.y-i.y,i=om(t.x,t.y,n,o),i===0)return t;r=r===2?.5*i:i,e=e.computeShortLength(!0),e>r&&(e=r),r=e*(o-t.y)/i,t.x+=e*(n-t.x)/i,t.y+=r}else{if(o=e.i(r-2),n=o.x-i.x,o=o.y-i.y,i=om(t.x,t.y,n,o),i===0)return t;r=r===2?.5*i:i,e=e.computeShortLength(!1),e>r&&(e=r),r=e*(t.y-o)/i,t.x-=e*(t.x-n)/i,t.y-=r}return t}function rv(e,t,n,i){for(var r=e.pointsCount,o=t;qe.$(t.x,o.x)&&qe.$(t.y,o.y);){if(n>=r)return r-1;o=e.i(n++)}if(!qe.$(t.x,o.x)&&!qe.$(t.y,o.y))return n-1;for(var a=o;qe.$(t.x,o.x)&&qe.$(o.x,a.x)&&(!i||(t.y>=o.y?o.y>=a.y:o.y<=a.y))||qe.$(t.y,o.y)&&qe.$(o.y,a.y)&&(!i||(t.x>=o.x?o.x>=a.x:o.x<=a.x));){if(n>=r)return r-1;a=e.i(n++)}return n-2}Pn.prototype.computeJumpLength=function(){return 10};function Gd(e,t,n,i,r,o,a){if(!a&&wd(e)){a=e.computeJumpLength();var l=a/2,u=[],f=0;if(e.isVisible()&&(f=zb(e,r,o,u)),0<f){if(qe.B(r.y,o.y))if(r.x<o.x)for(var p=0;p<f;){var x=Math.max(r.x,Math.min(u[p++]-l,o.x-a));t.lineTo(x+n,o.y+i);for(var N=x+n,R=Math.min(x+a,o.x);p<f&&(x=u[p],x<R+a);)p++,R=Math.min(x+l,o.x);x=o.y-a+i,R+=n;var _=o.y+i;e.curve===wh?If(t,R,_,!1):bh(t,N,x,R,x,R,_)}else for(--f;0<=f;){for(p=Math.min(r.x,Math.max(u[f--]+l,o.x+a)),t.lineTo(p+n,o.y+i),N=p+n,x=Math.max(p-a,o.x);0<=f&&(p=u[f],p>x-a);)f--,x=Math.max(p-l,o.x);p=o.y-a+i,x+=n,R=o.y+i,e.curve===wh?If(t,x,R,!1):bh(t,N,p,x,p,x,R)}else if(qe.B(r.x,o.x))if(r.y<o.y)for(p=0;p<f;){for(x=Math.max(r.y,Math.min(u[p++]-l,o.y-a)),t.lineTo(o.x+n,x+i),N=x+i,x=Math.min(x+a,o.y);p<f&&(R=u[p],R<x+a);)p++,x=Math.min(R+l,o.y);R=o.x-a+n,_=o.x+n,x+=i,e.curve===wh?If(t,_,x,!1):bh(t,R,N,R,x,_,x)}else for(--f;0<=f;){for(p=Math.min(r.y,Math.max(u[f--]+l,o.y+a)),t.lineTo(o.x+n,p+i),N=p+i,p=Math.max(p-a,o.y);0<=f&&(x=u[f],x>p-a);)f--,p=Math.max(x-l,o.y);x=o.x-a+n,R=o.x+n,p+=i,e.curve===wh?If(t,R,p,!1):bh(t,x,N,x,p,R,p)}}}t.lineTo(o.x+n,o.y+i)}function zb(e,t,n,i){var r=e.diagram;if(r===null||t.D(n))return 0;for(r=r.layers;r.next();){var o=r.value;if(o!==null&&o.visible){o=o.Pa.s;for(var a=o.length,l=0;l<a;l++){var u=o[l];if(u instanceof Pn){if(u===e)return 0<i.length&&i.sort(function(p,x){return p-x}),i.length;if(u.isVisible()&&wd(u)){var f=u.routeBounds;f.w()&&e.routeBounds.Yc(f)&&!e.usesSamePort(u)&&(f=u.path,f!==null&&f.Ed()&&Ub(t,n,i,u))}}}}}return 0<i.length&&i.sort(function(p,x){return p-x}),i.length}function Ub(e,t,n,i){for(var r=qe.B(e.y,t.y),o=i.pointsCount,a=i.i(0),l=he.alloc(),u=1;u<o;u++){var f=i.i(u);if(u<o-1){var p=i.i(u+1);if(a.y===f.y&&f.y===p.y){if(f.x>a.x&&p.x>=f.x||f.x<a.x&&p.x<=f.x)continue}else if(a.x===f.x&&f.x===p.x&&(f.y>a.y&&p.y>=f.y||f.y<a.y&&p.y<=f.y))continue}e:{p=e.x;var x=e.y,N=t.x,R=t.y,_=a.x;a=a.y;var V=f.x,xe=f.y;if(qe.B(p,N)){if(!qe.B(x,R)&&qe.B(a,xe)&&Math.min(x,R)<a&&Math.max(x,R)>a&&Math.min(_,V)<p&&Math.max(_,V)>p&&!qe.B(_,V)){l.x=p,l.y=a,p=!0;break e}}else if(qe.B(x,R)&&qe.B(_,V)&&Math.min(p,N)<_&&Math.max(p,N)>_&&Math.min(a,xe)<x&&Math.max(a,xe)>x&&!qe.B(a,xe)){l.x=_,l.y=x,p=!0;break e}l.x=0,l.y=0,p=!1}p&&(r?n.push(l.x):n.push(l.y)),a=f}he.free(l)}function wd(e){return e=e.curve,e===Lf||e===wh}function am(e,t){(t||wd(e))&&(t=e.diagram,t===null||t.animationManager.isTicking||t.Eh.contains(e)||e.ml.width===0&&e.ml.height===0||t.Eh.add(e,e.ml.copy()))}Pn.prototype.Xo=function(e){var t=this.layer;if(t!==null&&t.visible&&!t.isTemporary){var n=t.diagram;if(n!==null&&!n.animationManager.isTicking){var i=!1;for(n=n.layers;n.next();){var r=n.value;if(r.visible){if(r===t){i=!0;var o=!1;r=r.Pa.s;for(var a=r.length,l=0;l<a;l++){var u=r[l];u instanceof Pn&&(u===this?o=!0:o&&h1(this,u,e))}}else if(i)for(o=r.Pa.s,r=o.length,a=0;a<r;a++)l=o[a],l instanceof Pn&&h1(this,l,e)}}}}};function h1(e,t,n){if(t!==null&&t.lk&&t.fd&&wd(t)){var i=t.routeBounds;i.w()&&(e.routeBounds.Yc(i)||n.Yc(i))&&(e.usesSamePort(t)||t.qc())}}Pn.prototype.usesSamePort=function(e){var t=this.pointsCount,n=e.pointsCount;if(0<t&&0<n){var i=this.i(0),r=e.i(0);if(i.Xa(r)||(t=this.i(t-1),e=e.i(n-1),t.Xa(e)||i.Xa(e)||t.Xa(r)))return!0}else if(this.fromNode===e.fromNode||this.toNode===e.toNode||this.fromNode===e.toNode||this.toNode===e.fromNode)return!0;return!1},Pn.prototype.isVisible=function(){if(!Ci.prototype.isVisible.call(this))return!1;var e=this.containingGroup,t=!0,n=this.diagram;if(n!==null&&(t=n.isTreePathToChildren),n=this.fromNode,n!==null){if(this.isTreeLink&&t&&!n.isTreeExpanded)return!1;if(n===e)return!0;for(var i=n;i!==null;){if(i.labeledLink===this)return!0;i=i.containingGroup}if(n=n.findVisibleNode(),n===null||n===e)return!1}if(n=this.toNode,n!==null){if(this.isTreeLink&&!t&&!n.isTreeExpanded)return!1;if(n===e)return!0;for(t=n;t!==null;){if(t.labeledLink===this)return!0;t=t.containingGroup}if(t=n.findVisibleNode(),t===null||t===e)return!1}return!0},Pn.prototype.Zb=function(e){if(Ci.prototype.Zb.call(this,e),e&&am(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var t=this.wd.iterator;t.next();)t.value.Zb(e)},Pn.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?Ip:this.qk};function Ap(e){var t=e.ef;if(t!==null){var n=e.uf;if(n!==null&&isNaN(e.curviness)){for(var i=e.ff,r=e.vf,o=e=null,a=t.jb.s,l=a.length,u=0;u<l;u++){var f=a[u];(f.ef===t&&f.ff===i&&f.uf===n&&f.vf===r||f.ef===n&&f.ff===r&&f.uf===t&&f.vf===i)&&(o===null?o=f:(e===null&&(e=[],e.push(o)),e.push(f)))}if(e!==null){for(o=qy(t,n,i,r),o===null&&(o=new hm(t,i,n,r),Jy(t,o),Jy(n,o)),o.links=e,t=0;t<e.length;t++)e[t].Sf=o;o.Sl()}}}}function kp(e){var t=e.Sf;t!==null&&isNaN(e.curviness)&&(e.Sf=null,e=t.links.indexOf(e),0<=e&&(L(t.links,e),t.Sl()))}Pn.prototype.ph=function(){return!0},ht.Object.defineProperties(Pn.prototype,{fromNode:{get:function(){return this.ef},set:function(e){var t=this.ef;if(t!==e){var n=this.fromPort;t!==null&&(this.uf!==t&&em(t,this,n),kp(this),this.C(2)),this.ef=e,e!==null&&this.Zb(e.isVisible()),this.Wf=null,this.bb();var i=this.diagram;i!==null&&i.aa&&i.partManager.setFromNodeForLink(this,e,t);var r=this.fromPort,o=this.fromPortChanged;if(o!==null){var a=!0;i!==null&&(a=i.aa,i.aa=!0),o(this,n,r),i!==null&&(i.aa=a)}e!==null&&(this.uf!==e&&q0(e,this,r),Ap(this),this.C(1)),this.g("fromNode",t,e),Mf(this)}}},fromPortId:{get:function(){return this.ff},set:function(e){var t=this.ff;if(t!==e){var n=this.fromPort;n!==null&&ou(n),kp(this),this.ff=e;var i=this.fromPort;i!==null&&ou(i);var r=this.diagram;if(r!==null){var o=this.data,a=r.model;o!==null&&a.ri()&&a.xv(o,e)}n!==i&&(this.Wf=null,this.bb(),o=this.fromPortChanged,o!==null&&(a=!0,r!==null&&(a=r.aa,r.aa=!0),o(this,n,i),r!==null&&(r.aa=a))),Ap(this),this.g("fromPortId",t,e)}}},fromPort:{get:function(){var e=this.ef;return e===null?null:e.ns(this.ff)}},fromPortChanged:{get:function(){return this.gn},set:function(e){var t=this.gn;t!==e&&(this.gn=e,this.g("fromPortChanged",t,e))}},toNode:{get:function(){return this.uf},set:function(e){var t=this.uf;if(t!==e){var n=this.toPort;t!==null&&(this.ef!==t&&em(t,this,n),kp(this),this.C(2)),this.uf=e,e!==null&&this.Zb(e.isVisible()),this.Wf=null,this.bb();var i=this.diagram;i!==null&&i.aa&&i.partManager.setToNodeForLink(this,e,t);var r=this.toPort,o=this.toPortChanged;if(o!==null){var a=!0;i!==null&&(a=i.aa,i.aa=!0),o(this,n,r),i!==null&&(i.aa=a)}e!==null&&(this.ef!==e&&q0(e,this,r),Ap(this),this.C(1)),this.g("toNode",t,e),Mf(this)}}},toPortId:{get:function(){return this.vf},set:function(e){var t=this.vf;if(t!==e){var n=this.toPort;n!==null&&ou(n),kp(this),this.vf=e;var i=this.toPort;i!==null&&ou(i);var r=this.diagram;if(r!==null){var o=this.data,a=r.model;o!==null&&a.ri()&&a.Cv(o,e)}n!==i&&(this.Wf=null,this.bb(),o=this.toPortChanged,o!==null&&(a=!0,r!==null&&(a=r.aa,r.aa=!0),o(this,n,i),r!==null&&(r.aa=a))),Ap(this),this.g("toPortId",t,e)}}},toPort:{get:function(){var e=this.uf;return e===null?null:e.ns(this.vf)}},toPortChanged:{get:function(){return this.uo},set:function(e){var t=this.uo;t!==e&&(this.uo=e,this.g("toPortChanged",t,e))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Kr},set:function(e){var t=this.fromSpot;t.D(e)||(e=e.J(),this.Xc(),this.ba.Xi=e,this.g("fromSpot",t,e),(t.$c()||e.$c())&&this.fromNode!==null&&ou(this.fromPort),this.bb())}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:NaN},set:function(e){var t=this.fromEndSegmentLength;t!==e&&(0>e&&Lt(e,">= 0",Pn,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=e,this.g("fromEndSegmentLength",t,e),this.bb())}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:NaN},set:function(e){var t=this.fromShortLength;t!==e&&(this.Xc(),this.ba.Wi=e,this.qc(),this.g("fromShortLength",t,e))}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Kr},set:function(e){var t=this.toSpot;t.D(e)||(e=e.J(),this.Xc(),this.ba.yj=e,this.g("toSpot",t,e),(t.$c()||e.$c())&&this.toNode!==null&&ou(this.toPort),this.bb())}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:NaN},set:function(e){var t=this.toEndSegmentLength;t!==e&&(0>e&&Lt(e,">= 0",Pn,"toEndSegmentLength"),this.Xc(),this.ba.wj=e,this.g("toEndSegmentLength",t,e),this.bb())}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:NaN},set:function(e){var t=this.toShortLength;t!==e&&(this.Xc(),this.ba.xj=e,this.qc(),this.g("toShortLength",t,e))}},isLabeledLink:{get:function(){return this.wd===null?!1:0<this.wd.count}},labelNodes:{get:function(){return this.wd===null?Tt:this.wd.iterator}},relinkableFrom:{get:function(){return(this.Qa&1)!==0},set:function(e){var t=(this.Qa&1)!==0;t!==e&&(this.Qa^=1,this.g("relinkableFrom",t,e),this.Wb())}},relinkableTo:{get:function(){return(this.Qa&2)!==0},set:function(e){var t=(this.Qa&2)!==0;t!==e&&(this.Qa^=2,this.g("relinkableTo",t,e),this.Wb())}},resegmentable:{get:function(){return(this.Qa&4)!==0},set:function(e){var t=(this.Qa&4)!==0;t!==e&&(this.Qa^=4,this.g("resegmentable",t,e),this.Wb())}},isTreeLink:{get:function(){return(this.Qa&8)!==0},set:function(e){var t=(this.Qa&8)!==0;t!==e&&(this.Qa^=8,this.g("isTreeLink",t,e),this.fromNode!==null&&Np(this.fromNode),this.toNode!==null&&Np(this.toNode))}},path:{get:function(){var e=this.Pb();return e instanceof lr?e:null}},routeBounds:{get:function(){this.vg();var e=this.ml,t=1/0,n=1/0,i=this.pointsCount;if(i===0)e.h(NaN,NaN,0,0);else{if(i===1)i=this.i(0),t=Math.min(i.x,t),n=Math.min(i.y,n),e.h(i.x,i.y,0,0);else if(i===2){i=this.i(0);var r=this.i(1);t=Math.min(i.x,r.x),n=Math.min(i.y,r.y),e.h(i.x,i.y,0,0),e.Ye(r)}else if(this.computeCurve()===Su&&3<=i&&!this.isOrthogonal)if(r=this.i(0),t=r.x,n=r.y,e.h(t,n,0,0),i===3){i=this.i(1),t=Math.min(i.x,t),n=Math.min(i.y,n);var o=this.i(2);t=Math.min(o.x,t),n=Math.min(o.y,n),qe.Dl(r.x,r.y,i.x,i.y,i.x,i.y,o.x,o.y,.5,e)}else for(o=3;o<i;o+=3){var a=this.i(o-2);o+3>=i&&(o=i-1);var l=this.i(o-1),u=this.i(o);qe.Dl(r.x,r.y,a.x,a.y,l.x,l.y,u.x,u.y,.5,e),t=Math.min(u.x,t),n=Math.min(u.y,n),r=u}else for(r=this.i(0),o=this.i(1),t=Math.min(r.x,o.x),n=Math.min(r.y,o.y),e.h(r.x,r.y,0,0),e.Ye(o),r=2;r<i;r++)o=this.i(r),t=Math.min(o.x,t),n=Math.min(o.y,n),e.Ye(o);this.su.h(t-e.x,n-e.y)}return e}},midPoint:{get:function(){return this.vg(),this.computeMidPoint(new he)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||nm(this);for(var e=this.cq=[],t=this.pointsCount,n=0;n<t-1;n++){var i=this.i(n),r=this.i(n+1);qe.$(i.x,r.x)?(i=r.y-i.y,0>i&&(i=-i)):qe.$(i.y,r.y)?(i=r.x-i.x,0>i&&(i=-i)):i=Math.sqrt(i.Bf(r)),e.push(i)}}return this.cq}},flattenedTotalLength:{get:function(){var e=this.vt;if(isNaN(e)){for(var t=this.flattenedLengths,n=t.length,i=e=0;i<n;i++)e+=t[i];this.vt=e}return e}},points:{get:function(){return this.Nb},set:function(e){var t=this.Nb;if(t!==e){var n=null;if(Array.isArray(e)){var i=e.length%2===0;if(i){for(var r=0;r<e.length;r++)if(typeof e[r]!="number"||isNaN(e[r])){i=!1;break}}if(i)for(n=new qt,i=0;i<e.length/2;i++)r=new he(e[2*i],e[2*i+1]).freeze(),n.add(r);else{for(i=!0,r=0;r<e.length;r++){var o=e[r];if(!ot(o)||typeof o.x!="number"||isNaN(o.x)||typeof o.y!="number"||isNaN(o.y)){i=!1;break}}if(i)for(n=new qt,i=0;i<e.length;i++)r=e[i],n.add(new he(r.x,r.y).freeze())}}else if(e instanceof qt)for(n=e.copy(),e=n.iterator;e.next();)e.value.freeze();else Ve("Link.points value is not an instance of List or Array: "+e);n.freeze(),this.Nb=n,this.qc(),nm(this),e=this.diagram,e!==null&&(e.pi||e.undoManager.isUndoingRedoing||e.As.add(this),e.animationManager.zb&&d(e.animationManager,this,n)),this.g("points",t,n)}}},pointsCount:{get:function(){return this.Nb.count}},fd:{get:function(){return(this.Qa&16)!==0},set:function(e){(this.Qa&16)!==0!==e&&(this.Qa^=16)}},suspendsRouting:{get:function(){return(this.Qa&32)!==0},set:function(e){(this.Qa&32)!==0!==e&&(this.Qa^=32)}},computingPoints:{get:function(){return(this.Qa&64)!==0},set:function(e){(this.Qa&64)!==0!==e&&(this.Qa^=64)}},defaultFromPoint:{get:function(){return this.o},set:function(e){this.o=e.copy()}},defaultToPoint:{get:function(){return this.u},set:function(e){this.u=e.copy()}},isOrthogonal:{get:function(){return(this.qj.value&2)===2}},isAvoiding:{get:function(){return(this.qj.value&4)===4}},lk:{get:function(){return(this.Qa&128)!==0},set:function(e){(this.Qa&128)!==0!==e&&(this.Qa^=128)}},geometry:{get:function(){if(!this.lk){if(this.vg(),2>this.pointsCount)return this.lk=!0,this.ua;this.ua=this.makeGeometry()}return this.ua}},firstPickIndex:{get:function(){return 2>=this.pointsCount?0:this.isOrthogonal||!Of(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var e=this.pointsCount;return e===0?0:2>=e?e-1:this.isOrthogonal||!Of(this.computeSpot(!1))?e-2:e-1}},adjusting:{get:function(){return this.qk},set:function(e){var t=this.qk;t!==e&&(this.qk=e,this.g("adjusting",t,e))}},corner:{get:function(){return this.Om},set:function(e){var t=this.Om;t!==e&&(this.Om=e,this.qc(),this.g("corner",t,e))}},curve:{get:function(){return this.Qm},set:function(e){var t=this.Qm;t!==e&&(this.Qm=e,this.bb(),this.qc(),am(this,t===wh||t===Lf||e===wh||e===Lf),this.g("curve",t,e))}},curviness:{get:function(){return this.Rm},set:function(e){var t=this.Rm;t!==e&&(this.Rm=e,this.bb(),this.qc(),this.g("curviness",t,e))}},routing:{get:function(){return this.qj},set:function(e){var t=this.qj;t!==e&&(this.qj=e,this.Wf=null,this.bb(),am(this,(t.value&2)===2||(e.value&2)===2),this.g("routing",t,e))}},smoothness:{get:function(){return this.po},set:function(e){var t=this.po;t!==e&&(this.po=e,this.qc(),this.g("smoothness",t,e))}},key:{get:function(){var e=this.diagram;if(e!==null&&e.model.ri())return e.model.Ac(this.data)}}}),Pn.prototype.invalidateOtherJumpOvers=Pn.prototype.Xo,Pn.prototype.findClosestSegment=Pn.prototype.ez,Pn.prototype.updateRoute=Pn.prototype.vg,Pn.prototype.invalidateRoute=Pn.prototype.bb,Pn.prototype.rollbackRoute=Pn.prototype.rv,Pn.prototype.commitRoute=Pn.prototype.zf,Pn.prototype.startRoute=Pn.prototype.uh,Pn.prototype.clearPoints=Pn.prototype.Fj,Pn.prototype.removePoint=Pn.prototype.pv,Pn.prototype.addPointAt=Pn.prototype.yf,Pn.prototype.addPoint=Pn.prototype.ne,Pn.prototype.insertPointAt=Pn.prototype.m,Pn.prototype.insertPoint=Pn.prototype.Kz,Pn.prototype.setPointAt=Pn.prototype.L,Pn.prototype.setPoint=Pn.prototype.dd,Pn.prototype.getPoint=Pn.prototype.i,Pn.prototype.getOtherPort=Pn.prototype.Cz,Pn.prototype.getOtherNode=Pn.prototype.To;var Wd=null,Vd=null,ov=new Yt(Pn,"Normal",1),Hb=new Yt(Pn,"Orthogonal",2),$b=new Yt(Pn,"AvoidsNodes",6),d1=new Yt(Pn,"AvoidsNodesStraight",7),Nl=new Yt(Pn,"None",0),Su=new Yt(Pn,"Bezier",9),wh=new Yt(Pn,"JumpGap",10),Lf=new Yt(Pn,"JumpOver",11),Ip=new Yt(Pn,"End",17),sm=new Yt(Pn,"Scale",18),lm=new Yt(Pn,"Stretch",19),Mp=new Yt(Pn,"OrientAlong",21),Op=new Yt(Pn,"OrientPlus90",22),Lp=new Yt(Pn,"OrientMinus90",23),av=new Yt(Pn,"OrientOpposite",24),um=new Yt(Pn,"OrientUpright",25),Rp=new Yt(Pn,"OrientPlus90Upright",26),Dp=new Yt(Pn,"OrientMinus90Upright",27),cm=new Yt(Pn,"OrientUpright45",28),f1=16,p1=14,Pp=8;Pn.className="Link",Pn.Normal=ov,Pn.Orthogonal=Hb,Pn.AvoidsNodes=$b,Pn.AvoidsNodesStraight=d1,Pn.None=Nl,Pn.Bezier=Su,Pn.JumpGap=wh,Pn.JumpOver=Lf,Pn.End=Ip,Pn.Scale=sm,Pn.Stretch=lm,Pn.OrientAlong=Mp,Pn.OrientPlus90=Op,Pn.OrientMinus90=Lp,Pn.OrientOpposite=av,Pn.OrientUpright=um,Pn.OrientPlus90Upright=Rp,Pn.OrientMinus90Upright=Dp,Pn.OrientUpright45=cm,Pn.EndSegmentStep=8,Pn.CurvinessStart=f1,Pn.SpacingMin=p1,Pn.OrthoShortCut=Pp;function hm(e,t,n,i){Li(this),this.Fe=this.qq=!1,this.Ds=e,this.Ox=t,this.cv=n,this.Px=i,this.links=[]}hm.prototype.Sl=function(){if(!this.qq){var e=this.links;0<e.length&&(e=e[0].diagram,e!==null&&(e.ow.add(this),this.Fe=e.undoManager.isUndoingRedoing))}this.qq=!0},hm.prototype.Nv=function(){if(this.qq){this.qq=!1;var e=this.links;if(0<e.length){var t=e[0],n=t.diagram;n=n===null||n.pi&&!this.Fe,this.Fe=!1,t.arrangeBundledLinks(e,n),e.length===1&&(t.Sf=null,e.length=0)}e.length===0&&(e=this.Ds,this!==null&&e.af!==null&&e.af.remove(this),e=this.cv,this!==null&&e.af!==null&&e.af.remove(this))}},hm.className="LinkBundle";function Fp(e){Li(this),this.Yx=this.group=null,this.vs=!0,this.abort=!1,this.Od=this.Nd=1,this.Fn=this.En=-1,this.rc=e.width,this.sc=e.height,this.ac=null,this.ei=this.di=0,this.Os=11,this.Ix=this.Hx=22}Fp.prototype.initialize=function(e){if(!(0>=e.width||0>=e.height)){var t=e.y,n=e.x+e.width,i=e.y+e.height;if(this.Nd=Math.floor((e.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((t-this.sc)/this.sc)*this.sc,this.En=Math.ceil((n+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((i+2*this.sc)/this.sc)*this.sc,e=1+(Math.ceil((this.En-this.Nd)/this.rc)|0),t=1+(Math.ceil((this.Fn-this.Od)/this.sc)|0),this.ac===null||this.di<e-1||this.ei<t-1){for(n=[],i=0;i<=e;i++)n[i]=new Uint32Array(t);this.ac=n,this.di=e-1,this.ei=t-1}if(e=sv,this.ac!==null)for(t=0;t<=this.di;t++)if(n=this.ac[t],n.fill)n.fill(e);else for(i=0;i<=this.ei;i++)n[i]=e}};function Rf(e,t,n){return e.Nd<=t&&t<=e.En&&e.Od<=n&&n<=e.Fn}function Hc(e,t,n){return Rf(e,t,n)?(t-=e.Nd,t/=e.rc,n-=e.Od,n/=e.sc,e.ac[t|0][n|0]):sv}function m1(e){if(e.ac!==null)for(var t=0;t<=e.di;t++)for(var n=e.ac[t],i=0;i<=e.ei;i++)n[i]>=Cd&&(n[i]=sv)}Fp.prototype.Yj=function(e,t,n,i){if(e>this.En||e+n<this.Nd||t>this.Fn||t+i<this.Od)return!0;e=(e-this.Nd)/this.rc|0,t=(t-this.Od)/this.sc|0,n=Math.max(0,n)/this.rc+1|0;var r=Math.max(0,i)/this.sc+1|0;if(0>e&&(n+=e,e=0),0>t&&(r+=t,t=0),0>n||0>r)return!0;for(i=Math.min(e+n-1,this.di)|0,n=Math.min(t+r-1,this.ei)|0;e<=i;e++){r=this.ac[e];for(var o=t;o<=n;o++)if(r[o]===Ch)return!1}return!0};function $c(e,t,n,i,r,o,a,l,u){if(!(t<o||t>a||n<l||n>u)){var f=t|0,p=n|0,x=e.ac[f][p];if(x>=Cd&&x<Df)for(r?p+=i:f+=i,x+=1;o<=f&&f<=a&&l<=p&&p<=u&&!(x>=e.ac[f][p]);)e.ac[f][p]=x,x+=1,r?p+=i:f+=i;if(f=r?p:f,r)if(0<i)for(n+=i;n<f;n+=i)$c(e,t,n,1,!r,o,a,l,u),$c(e,t,n,-1,!r,o,a,l,u);else for(n+=i;n>f;n+=i)$c(e,t,n,1,!r,o,a,l,u),$c(e,t,n,-1,!r,o,a,l,u);else if(0<i)for(t+=i;t<f;t+=i)$c(e,t,n,1,!r,o,a,l,u),$c(e,t,n,-1,!r,o,a,l,u);else for(t+=i;t>f;t+=i)$c(e,t,n,1,!r,o,a,l,u),$c(e,t,n,-1,!r,o,a,l,u)}}function dm(e,t,n,i,r,o,a,l,u){t|=0,n|=0;var f=Ch,p=Cd;for(e.ac[t][n]=p;f===Ch&&t>o&&t<a&&n>l&&n<u;)p+=1,e.ac[t][n]=p,r?n+=i:t+=i,f=e.ac[t][n]}function fm(e,t,n,i,r,o,a,l,u){t|=0,n|=0;var f=Ch,p=Df;for(e.ac[t][n]=p;f===Ch&&t>o&&t<a&&n>l&&n<u;)e.ac[t][n]=p,r?n+=i:t+=i,f=e.ac[t][n]}function g1(e,t,n,i,r,o,a){if(e.ac!==null){e.abort=!1;var l=t.x,u=t.y;if(Rf(e,l,u)){l-=e.Nd,l/=e.rc,u-=e.Od,u/=e.sc;var f=i.x,p=i.y;if(Rf(e,f,p))if(f-=e.Nd,f/=e.rc,p-=e.Od,p/=e.sc,1>=Math.abs(l-f)&&1>=Math.abs(u-p))e.abort=!0;else{var x=o.x;i=o.y,t=o.x+o.width;var N=o.y+o.height;x-=e.Nd,x/=e.rc,i-=e.Od,i/=e.sc,t-=e.Nd,t/=e.rc,N-=e.Od,N/=e.sc,o=Math.max(0,Math.min(e.di,x|0)),t=Math.min(e.di,Math.max(0,t|0)),x=Math.max(0,Math.min(e.ei,i|0)),N=Math.min(e.ei,Math.max(0,N|0)),i=e.ac,l|=0,u|=0,f|=0,p|=0;var R=n===0||n===90?1:-1;if(n=n===90||n===270,i[l][u]===Ch?(dm(e,l,u,R,n,o,t,x,N),dm(e,l,u,1,!n,o,t,x,N),dm(e,l,u,-1,!n,o,t,x,N)):dm(e,l,u,R,n,l,u,l,u),i[f][p]===Ch?(fm(e,f,p,r===0||r===90?1:-1,r===90||r===270,o,t,x,N),fm(e,f,p,1,!(r===90||r===270),o,t,x,N),fm(e,f,p,-1,!(r===90||r===270),o,t,x,N)):fm(e,f,p,R,n,f,p,f,p),n=Rt(),a&&v1(e,f,p,r,l,u,n))for((n[0]!==f||n[1]!==p)&&(n.unshift(p),n.unshift(f)),(n[n.length-2]!==l||n[n.length-1]!==u)&&(n.push(l),n.push(u)),e=Cd,r=n[n.length-2],a=n[n.length-1],i[r][a]=e++,o=n.length-4;0<=o;o-=2)for(r=n[o+2],a=n[o+3],t=n[o],f=n[o+1];t>r?r++:t<r?r--:f>a?a++:f<a&&a--,i[r][a]=e++,r!==t||a!==f;);else $c(e,l,u,1,!1,o,t,x,N),$c(e,l,u,-1,!1,o,t,x,N),$c(e,l,u,1,!0,o,t,x,N),$c(e,l,u,-1,!0,o,t,x,N);Jt(n)}}}}function v1(e,t,n,i,r,o,a){for(var l=e.ac,u=t,f=n;;){if(u===r&&f===o)return!0;var p=u,x=f;if(i===0)if(p<r)p++;else break;else if(i===90)if(x<o)x++;else break;else if(i===180)if(p>r)p--;else break;else if(x>o)x--;else break;var N=l[p][x];if(N===0||N===lv)break;u=p,f=x}for(;;){if(p=i,x=u,N=f,i===0?N<o?(p=90,N++):N>o&&(p=270,N--):i===90?x<r?(p=0,x++):x>r&&(p=180,x--):i===180?N<o?(p=90,N++):N>o&&(p=270,N--):x<r?(p=0,x++):x>r&&(p=180,x--),x=l[x][N],p!==i&&x!==0&&x!==lv){if(a.push(u),a.push(f),v1(e,u,f,p,r,o,a))return!0;a.pop(),a.pop()}if(l[u][f]=lv,i===0){if(u===t)return!1;u--}else if(i===90){if(f===n)return!1;f--}else if(i===180){if(u===t)return!1;u++}else{if(f===n)return!1;f++}}}ht.Object.defineProperties(Fp.prototype,{bounds:{get:function(){return new Zt(this.Nd,this.Od,this.En-this.Nd,this.Fn-this.Od)}},Ho:{get:function(){return this.rc},set:function(e){0<e&&e!==this.rc&&(this.rc=e,this.initialize(this.bounds))}},Go:{get:function(){return this.sc},set:function(e){0<e&&e!==this.sc&&(this.sc=e,this.initialize(this.bounds))}}});var Ch=0,Cd=1,Df=999999,sv=Df+1,lv=Df+2;Fp.className="PositionArray";function Kd(){Li(this),this.port=this.node=null,this.pe=[],this.ap=!1}Kd.prototype.toString=function(){for(var e=this.pe,t=this.node.toString()+" "+e.length.toString()+":",n=0;n<e.length;n++){var i=e[n];i!==null&&(t+=`
`+i.toString())}return t};function jb(e,t,n,i){switch(t=t.offsetY,t){case 8:return 90;case 2:return 180;case 1:return 270;case 4:return 0}switch(t){case 9:return 180<n?270:90;case 6:return 90<n&&270>=n?180:0}switch(e=180*Math.atan2(e.height,e.width)/Math.PI,t){case 3:return n>e&&n<=180+e?180:270;case 5:return n>180-e&&n<=360-e?270:0;case 12:return n>e&&n<=180+e?90:0;case 10:return n>180-e&&n<=360-e?180:90;case 7:return 90<n&&n<=180+e?180:n>180+e&&n<=360-e?270:0;case 13:return 180<n&&n<=360-e?270:n>e&&180>=n?90:0;case 14:return n>e&&n<=180-e?90:n>180-e&&270>=n?180:0;case 11:return n>180-e&&n<=180+e?180:n>180+e?270:90}return i&&t!==15&&(n-=15,0>n&&(n+=360)),n>e&&n<180-e?90:n>=180-e&&n<=180+e?180:n>180+e&&n<360-e?270:0}Kd.prototype.Sl=function(){this.pe.length=0};function y1(e,t){var n=e.pe;if(n.length===0){e:if(!e.ap){n=e.ap,e.ap=!0;var i=null,r=e.node,o=r instanceof qi?r:null;if(o===null||o.isSubGraphExpanded)var a=r.isTreeExpanded?r.findLinksConnected(e.port.portId):r.qx();else{if(!o.actualBounds.w()){e.ap=n;break e}i=o,a=i.Lu()}o=e.pe.length=0;var l=e.port.ga(Jo,he.alloc()),u=e.port.ga(Bo,he.alloc());for(r=Zt.allocAt(l.x,l.y,0,0),r.Ye(u),he.free(l),he.free(u),l=he.allocAt(r.x+r.width/2,r.y+r.height/2),u=e.port.li(),a=a.iterator;a.next();){var f=a.value;if(f.isVisible()&&f.fromPort!==f.toPort){var p=f.fromPort===e.port||f.fromNode!==null&&f.fromNode.Td(i),x=f.computeSpot(p,e.port);if(x.$c()&&(p=p?f.toPort:f.fromPort,p!==null)){var N=p.part;if(N!==null){var R=N.findVisibleNode();R!==null&&R!==N&&(N=R,p=N.port),p=f.computeOtherPoint(N,p),N=l.ab(p),N-=u,0>N?N+=360:360<=N&&(N-=360),x=jb(r,x,N,f.isOrthogonal),x===0?(x=4,180<N&&(N-=360)):x===90?(x=8,270<N&&(N-=360)):x===180?x=2:(x=1,90>N&&(N+=360)),R=e.pe[o],R===void 0?(R=new uv(f,N,x),e.pe[o]=R):(R.link=f,R.angle=N,R.Nc=x),R.hv.set(p),o++}}}}for(he.free(l),e.pe.sort(Kd.prototype.j),u=e.pe.length,i=-1,o=l=0;o<u;o++)a=e.pe[o],a!==void 0&&(a.Nc!==i&&(i=a.Nc,l=0),a.Uo=l,l++);for(i=-1,l=0,o=u-1;0<=o;o--)u=e.pe[o],u!==void 0&&(u.Nc!==i&&(i=u.Nc,l=u.Uo+1),u.Gl=l);if(o=e.pe,x=e.port,i=e.node.portSpreading,l=he.alloc(),u=he.alloc(),a=he.alloc(),f=he.alloc(),x.ga(Jo,l),x.ga(Vo,u),x.ga(Bo,a),x.ga(ws,f),R=N=p=x=0,i===Jg)for(var _=0;_<o.length;_++){var V=o[_];if(V!==null){var xe=V.link.computeThickness();switch(V.Nc){case 8:N+=xe;break;case 2:R+=xe;break;case 1:x+=xe;break;default:case 4:p+=xe}}}var ue=_=0,Fe=1,Ue=V=0;for(xe=0;xe<o.length;xe++){var We=o[xe];if(We!==null){if(_!==We.Nc){switch(_=We.Nc,_){case 8:var rt=a;ue=f;break;case 2:rt=f,ue=l;break;case 1:rt=l,ue=u;break;default:case 4:rt=u,ue=a}switch(V=ue.x-rt.x,Ue=ue.y-rt.y,_){case 8:N>Math.abs(V)?(Fe=Math.abs(V)/N,N=Math.abs(V)):Fe=1;break;case 2:R>Math.abs(Ue)?(Fe=Math.abs(Ue)/R,R=Math.abs(Ue)):Fe=1;break;case 1:x>Math.abs(V)?(Fe=Math.abs(V)/x,x=Math.abs(V)):Fe=1;break;default:case 4:p>Math.abs(Ue)?(Fe=Math.abs(Ue)/p,p=Math.abs(Ue)):Fe=1}ue=0}var At=We.Zo;if(i===Jg){switch(We=We.link.computeThickness(),We*=Fe,At.set(rt),_){case 8:At.x=rt.x+V/2+N/2-ue-We/2;break;case 2:At.y=rt.y+Ue/2+R/2-ue-We/2;break;case 1:At.x=rt.x+V/2-x/2+ue+We/2;break;default:case 4:At.y=rt.y+Ue/2-p/2+ue+We/2}ue+=We}else{var Kn=.5;i===tm&&(Kn=(We.Uo+1)/(We.Gl+1)),At.x=rt.x+V*Kn,At.y=rt.y+Ue*Kn}}}for(he.free(l),he.free(u),he.free(a),he.free(f),rt=e.pe,o=0;o<rt.length;o++)i=rt[o],i!==null&&(i.Ju=e.computeEndSegmentLength(i));e.ap=n,Zt.free(r)}n=e.pe}for(e=0;e<n.length;e++)if(r=n[e],r!==null&&r.link===t)return r;return null}Kd.prototype.j=function(e,t){return e===t?0:e===null?-1:t===null?1:e.Nc<t.Nc?-1:e.Nc>t.Nc?1:e.angle<t.angle?-1:e.angle>t.angle?1:0},Kd.prototype.computeEndSegmentLength=function(e){var t=e.link,n=t.computeEndSegmentLength(this.node,this.port,Ui,t.fromPort===this.port),i=e.Uo;if(0>i)return n;var r=e.Gl;if(1>=r||!t.isOrthogonal)return n;t=e.hv;var o=e.Zo;return(e.Nc===2||e.Nc===8)&&(i=r-1-i),((e=e.Nc===2||e.Nc===4)?t.y<o.y:t.x<o.x)?n+8*i:(e?t.y===o.y:t.x===o.x)?n:n+8*(r-1-i)},Kd.className="Knot";function uv(e,t,n){this.link=e,this.angle=t,this.Nc=n,this.hv=new he,this.Gl=this.Uo=0,this.Zo=new he,this.Ju=0}uv.prototype.toString=function(){return this.link.toString()+" "+this.angle.toString()+" "+this.Nc.toString()+":"+this.Uo.toString()+"/"+this.Gl.toString()+" "+this.Zo.toString()+" "+this.Ju.toString()+" "+this.hv.toString()},uv.className="LinkInfo";function Qo(e){Li(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new he(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,e&&Object.assign(this,e)}Qo.prototype.cloneProtected=function(e){e.sn=this.sn,e.Gh=this.Gh,e.yn=this.yn,e.Am.assign(this.Am),e.vn=this.vn,e.un=this.un,e.Em=this.Em,e.xn=!0},Qo.prototype.copy=function(){var e=new this.constructor;return this.cloneProtected(e),e},Qo.prototype.qb=function(){},Qo.prototype.toString=function(){var e=mt(this.constructor);return e+="(",this.group!==null&&(e+=" in "+this.group),this.diagram!==null&&(e+=" for "+this.diagram),e+")"},Qo.prototype.C=function(){if(this.isValidLayout){var e=this.diagram;if(e!==null&&!e.undoManager.isUndoingRedoing){var t=e.animationManager;!t.isTicking&&(t.defaultAnimation.isAnimating&&t.Cc(),this.isOngoing&&e.pi||this.isInitial&&!e.pi)&&(this.isValidLayout=!1,e.$b())}}},Qo.prototype.createNetwork=function(){return new Oo(this)},Qo.prototype.makeNetwork=function(e){var t=this.createNetwork();return e instanceof Y?(t.lg(e.nodes,!0),t.lg(e.links,!0)):e instanceof qi?t.lg(e.memberParts):t.lg(e.iterator),t},Qo.prototype.updateParts=function(){this.isValidLayout=!0;var e=this.diagram;if(e===null&&this.network!==null)for(var t=this.network.vertexes.iterator;t.next();){var n=t.value.node;if(n!==null&&(e=n.diagram,e!==null))break}try{e!==null&&e.Ea("Layout"),this.commitLayout()}finally{e!==null&&e.eb("Layout")}},Qo.prototype.commitLayout=function(){if(this.network!==null){for(var e=this.network.vertexes.iterator;e.next();)e.value.commit();if(this.isRouting)for(e=this.network.edges.iterator;e.next();)e.value.commit()}},Qo.prototype.doLayout=function(e){var t=new Xt;e instanceof Y?(Vh(this,t,e.nodes,!0,this.rh,!0,!1,!0),Vh(this,t,e.parts,!0,this.rh,!0,!1,!0)):e instanceof qi?Vh(this,t,e.memberParts,!1,this.rh,!0,!1,!0):t.addAll(e.iterator),0<t.count&&(e=this.diagram,e!==null&&e.Ea("Layout"),this.doMinimalNoNetworkLayout(t),e!==null&&e.eb("Layout")),this.isValidLayout=!0},Qo.prototype.doMinimalNoNetworkLayout=function(e){var t=Math.ceil(Math.sqrt(e.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var n=this.arrangementOrigin.x,i=n,r=this.arrangementOrigin.y,o=0,a=0;for(e=e.iterator;e.next();){var l=e.value;Bp(l);var u=l.measuredBounds,f=u.width;u=u.height,l.moveTo(i,r),l instanceof qi&&(l.rh=!1),i+=Math.max(f,50)+20,a=Math.max(a,Math.max(u,50)),o>=t-1?(o=0,i=n,r+=a+20,a=0):o++}},Qo.prototype.doMinimalNetworkLayout=function(){var e=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var t=this.arrangementOrigin.x,n=t,i=this.arrangementOrigin.y,r=0,o=0,a=this.network.vertexes.iterator;a.next();){var l=a.value.node;if(!(l===null||l instanceof Pn)&&(Bp(l),this.rh(l))){var u=l.measuredBounds,f=u.width;u=u.height,l.moveTo(n,i),l instanceof qi&&(l.rh=!1),n+=Math.max(f,50)+20,o=Math.max(o,Math.max(u,50)),r>=e-1?(r=0,n=t,i+=o+20,o=0):r++}}},Qo.prototype.rh=function(e){return!!(!e.location.w()||e instanceof qi&&e.rh)};function Vh(e,t,n,i,r,o,a,l){for(n=n.iterator;n.next();){var u=n.value;i&&!u.isTopLevel||r!==null&&!r(u)||!u.canLayout()||(o&&u instanceof Xn?u.isLinkLabel||(u instanceof qi&&u.layout===null?Vh(e,t,u.memberParts,!1,r,o,a,l):(Bp(u),t.add(u))):a&&u instanceof Pn?t.add(u):!l||!u.Zc()||u instanceof Xn||(Bp(u),t.add(u)))}}function Bp(e){var t=e.actualBounds;(t.width===0||t.height===0||isNaN(t.width)||isNaN(t.height))&&e.Va()}Qo.prototype.ni=function(e,t){var n=this.boundsComputation;return n!==null?(t||(t=new Zt),n(e,this,t)):t?(t.set(e.actualBounds),t):e.actualBounds},Qo.prototype.ex=function(e){var t=new Xt;return e instanceof Y?(Vh(this,t,e.nodes,!0,null,!0,!0,!0),Vh(this,t,e.links,!0,null,!0,!0,!0),Vh(this,t,e.parts,!0,null,!0,!0,!0)):e instanceof qi?Vh(this,t,e.memberParts,!1,null,!0,!0,!0):Vh(this,t,e.iterator,!1,null,!0,!0,!0),t},Qo.prototype.initialOrigin=function(e){var t=this.group;if(t!==null){var n=t.position.copy();return(isNaN(n.x)||isNaN(n.y))&&n.set(e),t=t.placeholder,t!==null&&(n=t.ga(Jo),(isNaN(n.x)||isNaN(n.y))&&n.set(e),e=t.padding,n.x+=e.left,n.y+=e.top),n}return e},ht.Object.defineProperties(Qo.prototype,{diagram:{get:function(){return this.H},set:function(e){this.H=e}},group:{get:function(){return this.o},set:function(e){this.o!==e&&(this.o=e,e!==null&&(this.H=e.diagram))}},isOngoing:{get:function(){return this.sn},set:function(e){this.sn!==e&&(this.sn=e)}},isInitial:{get:function(){return this.Gh},set:function(e){this.Gh=e,e||(this.xn=!0)}},isViewportSized:{get:function(){return this.yn},set:function(e){this.yn!==e&&(this.yn=e)&&this.C()}},isRouting:{get:function(){return this.vn},set:function(e){this.vn!==e&&(this.vn=e)}},isRealtime:{get:function(){return this.un},set:function(e){this.un!==e&&(this.un=e)}},isValidLayout:{get:function(){return this.xn},set:function(e){this.xn!==e&&(this.xn=e,e||(e=this.diagram,e!==null&&(e.xh=!0)))}},network:{get:function(){return this.j},set:function(e){this.j!==e&&(this.j=e,e!==null&&(e.layout=this))}},boundsComputation:{get:function(){return this.Em},set:function(e){this.Em!==e&&(this.Em=e,this.C())}},arrangementOrigin:{get:function(){return this.Am},set:function(e){this.Am.D(e)||(this.Am.assign(e),this.C())}}}),Qo.prototype.collectParts=Qo.prototype.ex,Qo.prototype.getLayoutBounds=Qo.prototype.ni,Qo.prototype.invalidateLayout=Qo.prototype.C,Qo.className="Layout";function Oo(e){Li(this),this.Sc=e,this.wf=new Xt,this.ye=new Xt,this.Es=new Zn,this.zs=new Zn}Oo.prototype.clear=function(){if(this.wf)for(var e=this.wf.iterator;e.next();)e.value.clear();if(this.ye)for(e=this.ye.iterator;e.next();)e.value.clear();this.wf=new Xt,this.ye=new Xt,this.Es=new Zn,this.zs=new Zn},Oo.prototype.toString=function(e){e===void 0&&(e=0);var t="LayoutNetwork"+(this.layout!==null?"("+this.layout.toString()+")":"");if(0>=e)return t;if(t+=" vertexes: "+this.wf.count+" edges: "+this.ye.count,1<e){for(var n=this.wf.iterator;n.next();)t+=`
`+n.value.toString(e-1);for(n=this.ye.iterator;n.next();)t+=`
`+n.value.toString(e-1)}return t},Oo.prototype.createVertex=function(){return new ns(this)},Oo.prototype.createEdge=function(){return new au(this)},Oo.prototype.lg=function(e,t,n){if(e!==null){for(t===void 0&&(t=!1),n===void 0&&(n=null),n===null&&(n=function(a){if(a instanceof Xn)return!a.isLinkLabel;if(a instanceof Pn){var l=a.fromNode;return l===null||l.isLinkLabel?!1:(a=a.toNode,!(a===null||a.isLinkLabel))}return!1}),e=e.iterator;e.next();){var i=e.value;if(i instanceof Xn&&(!t||i.isTopLevel)&&i.canLayout()&&n(i)){if(i instanceof qi&&i.layout===null)this.lg(i.memberParts,!1);else if(this.ki(i)===null){var r=this.createVertex();r.node=i,this.dh(r)}}}for(e.reset();e.next();)if(i=e.value,i instanceof Pn&&(!t||i.isTopLevel)&&i.canLayout()&&n(i)&&this.Lo(i)===null){var o=i.fromNode;r=i.toNode,o!==null&&r!==null&&o!==r&&(o=this.findGroupVertex(o),r=this.findGroupVertex(r),o!==null&&r!==null&&this.Zj(o,r,i))}}},Oo.prototype.findGroupVertex=function(e){if(e===null)return null;var t=e.findVisibleNode();if(t===null)return null;if(e=this.ki(t),e!==null)return e;for(t=t.containingGroup;t!==null;){if(e=this.ki(t),e!==null)return e;t=t.containingGroup}return null},U=Oo.prototype,U.dh=function(e){if(e!==null){this.wf.add(e);var t=e.node;t!==null&&this.Es.add(t,e),e.network=this}},U.Bl=function(e){if(e===null)return null;var t=this.ki(e);return t===null&&(t=this.createVertex(),t.node=e,this.dh(t)),t},U.Iu=function(e){if(e!==null&&b1(this,e)){for(var t=e.tg,n=t.count-1;0<=n;n--){var i=t.M(n);this.Mj(i)}for(t=e.mg,e=t.count-1;0<=e;e--)n=t.M(e),this.Mj(n)}};function b1(e,t){if(t===null)return!1;var n=e.wf.remove(t);return n&&(t=t.node,t!==null&&e.Es.remove(t)),n}U.Zy=function(e){e!==null&&(e=this.ki(e),e!==null&&this.Iu(e))},U.ki=function(e){return e===null?null:this.Es.I(e)},U.Bo=function(e){if(e!==null){cv(this,e);var t=e.toVertex;t!==null&&t.Cl(e),t=e.fromVertex,t!==null&&t.zl(e)}};function cv(e,t){if(t!==null){e.ye.add(t);var n=t.link;n!==null&&e.Lo(n)===null&&e.zs.add(n,t),t.network=e}}U.Dy=function(e){if(e===null)return null;var t=e.fromNode,n=e.toNode,i=this.Lo(e);return i===null?(i=this.createEdge(),i.link=e,t!==null&&(i.fromVertex=this.Bl(t)),n!==null&&(i.toVertex=this.Bl(n)),this.Bo(i)):(t!==null?i.fromVertex=this.Bl(t):i.fromVertex=null,n!==null?i.toVertex=this.Bl(n):i.toVertex=null),i},U.Mj=function(e){if(e!==null){var t=e.toVertex;t!==null&&t.Kl(e),t=e.fromVertex,t!==null&&t.Jl(e),hv(this,e)}};function hv(e,t){t!==null&&e.ye.remove(t)&&(t=t.link,t!==null&&e.zs.remove(t))}U.Yy=function(e){e!==null&&(e=this.Lo(e),e!==null&&this.Mj(e))},U.Lo=function(e){return e===null?null:this.zs.I(e)},U.Zj=function(e,t,n){if(e===null||t===null)return null;if(e.network===this&&t.network===this){var i=this.createEdge();return i.link=n,i.fromVertex=e,i.toVertex=t,this.Bo(i),i}return null},U.gm=function(e){if(e!==null){var t=e.fromVertex,n=e.toVertex;t!==null&&n!==null&&(t.Jl(e),n.Kl(e),e.gm(),t.Cl(e),n.zl(e))}},U.Ko=function(){for(var e=Rt(),t=this.ye.iterator;t.next();){var n=t.value;n.fromVertex===n.toVertex&&e.push(n)}for(t=e.length,n=0;n<t;n++)this.Mj(e[n]);Jt(e)},Oo.prototype.deleteArtificialVertexes=function(){for(var e=Rt(),t=this.wf.iterator;t.next();){var n=t.value;n.node===null&&n.data===null&&e.push(n)}for(n=e.length,t=0;t<n;t++)this.Iu(e[t]);for(t=Rt(),n=this.ye.iterator;n.next();){var i=n.value;i.link===null&&i.data===null&&t.push(i)}for(n=t.length,i=0;i<n;i++)this.Mj(t[i]);Jt(e),Jt(t)};function Gb(e){for(var t=Rt(),n=e.ye.iterator;n.next();){var i=n.value;i.fromVertex!==null&&i.toVertex!==null||t.push(i)}for(n=t.length,i=0;i<n;i++)e.Mj(t[i]);Jt(t)}Oo.prototype.Zx=function(e){e===void 0&&(e=!0),e&&(this.deleteArtificialVertexes(),Gb(this),this.Ko()),e=new qt;for(var t=!0;t;){t=!1;for(var n=this.wf.iterator;n.next();){var i=n.value;if(0<i.tg.count||0<i.mg.count){t=this.layout.createNetwork(),e.add(t),dv(this,t,i),t=!0;break}}}return e.sort(function(r,o){return r===null||o===null||r===o?0:o.vertexes.count-r.vertexes.count}),e};function dv(e,t,n){if(n!==null&&n.network!==t){b1(e,n),t.dh(n);for(var i=n.sourceEdges;i.next();){var r=i.value;r.network!==t&&(hv(e,r),cv(t,r),dv(e,t,r.fromVertex))}for(i=n.destinationEdges;i.next();)n=i.value,n.network!==t&&(hv(e,n),cv(t,n),dv(e,t,n.toVertex))}}Oo.prototype.dz=function(){for(var e=new Xt,t=this.wf.iterator;t.next();)e.add(t.value.node);for(t=this.ye.iterator;t.next();)e.add(t.value.link);return e},ht.Object.defineProperties(Oo.prototype,{layout:{get:function(){return this.Sc},set:function(e){e!==null&&(this.Sc=e)}},vertexes:{get:function(){return this.wf}},edges:{get:function(){return this.ye}}}),Oo.prototype.findAllParts=Oo.prototype.dz,Oo.prototype.splitIntoSubNetworks=Oo.prototype.Zx,Oo.prototype.deleteSelfEdges=Oo.prototype.Ko,Oo.prototype.reverseEdge=Oo.prototype.gm,Oo.prototype.linkVertexes=Oo.prototype.Zj,Oo.prototype.findEdge=Oo.prototype.Lo,Oo.prototype.deleteLink=Oo.prototype.Yy,Oo.prototype.deleteEdge=Oo.prototype.Mj,Oo.prototype.addLink=Oo.prototype.Dy,Oo.prototype.addEdge=Oo.prototype.Bo,Oo.prototype.findVertex=Oo.prototype.ki,Oo.prototype.deleteNode=Oo.prototype.Zy,Oo.prototype.deleteVertex=Oo.prototype.Iu,Oo.prototype.addNode=Oo.prototype.Bl,Oo.prototype.addVertex=Oo.prototype.dh,Oo.prototype.addParts=Oo.prototype.lg,Oo.className="LayoutNetwork";function ns(e){Li(this),this.ob=e,this.j=new Zt(0,0,10,10).freeze(),this.o=new he(5,5).freeze(),this.Sh=this.ub=null,this.tg=new qt,this.mg=new qt}ns.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new qt,this.mg=new qt},ns.prototype.toString=function(e){e===void 0&&(e=0);var t="LayoutVertex#"+Mt(this);if(0<e&&(t+=this.node!==null?"("+this.node.toString()+")":"",1<e)){e="";for(var n=!0,i=this.tg.iterator;i.next();){var r=i.value;n?n=!1:e+=",",e+=r.toString(0)}for(r="",n=!0,i=this.mg.iterator;i.next();){var o=i.value;n?n=!1:r+=",",r+=o.toString(0)}t+=" sources: "+e+" destinations: "+r}return t},ns.prototype.commit=function(){var e=this.ub;if(e!==null){var t=this.bounds,n=e.bounds;ot(n)?(n.x=t.x,n.y=t.y,n.width=t.width,n.height=t.height):e.bounds=t.copy()}else if(e=this.node,e!==null){if(t=this.bounds,!(e instanceof qi)){n=Zt.alloc(),e.Va();var i=this.network.layout.ni(e,n),r=e.locationObject.ga(Rr);if(i.w()&&r.w()){e.moveTo(t.x+this.focusX-(r.x-i.x),t.y+this.focusY-(r.y-i.y)),Zt.free(n);return}Zt.free(n)}e.moveTo(t.x,t.y)}},ns.prototype.Cl=function(e){e!==null&&(this.tg.contains(e)||this.tg.add(e))},ns.prototype.Kl=function(e){e!==null&&this.tg.remove(e)},ns.prototype.zl=function(e){e!==null&&(this.mg.contains(e)||this.mg.add(e))},ns.prototype.Jl=function(e){e!==null&&this.mg.remove(e)};function fv(e,t){return e=e.Sh,t=t.Sh,e?t?(e=e.text,t=t.text,e<t?-1:e>t?1:0):1:t!==null?-1:0}ht.Object.defineProperties(ns.prototype,{sourceEdgesArrayAccess:{get:function(){return this.tg._dataArray}},destinationEdgesArrayAccess:{get:function(){return this.mg._dataArray}},data:{get:function(){return this.ub},set:function(e){if(this.ub=e,e!==null&&e.bounds){var t=e.bounds;e=t.x;var n=t.y,i=t.width;t=t.height,this.o.h(i/2,t/2),this.j.h(e,n,i,t)}}},node:{get:function(){return this.Sh},set:function(e){if(this.Sh!==e){this.Sh=e,e.Va();var t=this.network.layout,n=Zt.alloc(),i=t.ni(e,n);t=i.x;var r=i.y,o=i.width;if(i=i.height,isNaN(t)&&(t=0),isNaN(r)&&(r=0),this.j.h(t,r,o,i),Zt.free(n),!(e instanceof qi)&&(e=e.locationObject.ga(Rr),e.w())){this.o.h(e.x-t,e.y-r);return}this.o.h(o/2,i/2)}}},bounds:{get:function(){return this.j},set:function(e){this.j.D(e)||this.j.assign(e)}},focus:{get:function(){return this.o},set:function(e){this.o.D(e)||this.o.assign(e)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(e){var t=this.j;t.x+this.o.x!==e&&(t.ka(),t.x=e-this.o.x,t.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(e){var t=this.j;t.y+this.o.y!==e&&(t.ka(),t.y=e-this.o.y,t.freeze())}},focusX:{get:function(){return this.o.x},set:function(e){var t=this.o;t.x!==e&&(t.ka(),t.x=e,t.freeze())}},focusY:{get:function(){return this.o.y},set:function(e){var t=this.o;t.y!==e&&(t.ka(),t.y=e,t.freeze())}},x:{get:function(){return this.j.x},set:function(e){var t=this.j;t.x!==e&&(t.ka(),t.x=e,t.freeze())}},y:{get:function(){return this.j.y},set:function(e){var t=this.j;t.y!==e&&(t.ka(),t.y=e,t.freeze())}},width:{get:function(){return this.j.width},set:function(e){var t=this.j;t.width!==e&&(t.ka(),t.width=e,t.freeze())}},height:{get:function(){return this.j.height},set:function(e){var t=this.j;t.height!==e&&(t.ka(),t.height=e,t.freeze())}},network:{get:function(){return this.ob},set:function(e){this.ob=e}},sourceVertexes:{get:function(){for(var e=new Xt,t=this.sourceEdges;t.next();)e.add(t.value.fromVertex);return e.iterator}},destinationVertexes:{get:function(){for(var e=new Xt,t=this.destinationEdges;t.next();)e.add(t.value.toVertex);return e.iterator}},vertexes:{get:function(){for(var e=new Xt,t=this.sourceEdges;t.next();)e.add(t.value.fromVertex);for(t=this.destinationEdges;t.next();)e.add(t.value.toVertex);return e.iterator}},sourceEdges:{get:function(){return this.tg.iterator}},destinationEdges:{get:function(){return this.mg.iterator}},edges:{get:function(){for(var e=new qt,t=this.sourceEdges;t.next();)e.add(t.value);for(t=this.destinationEdges;t.next();)e.add(t.value);return e.iterator}},edgesCount:{get:function(){return this.tg.count+this.mg.count}}}),ns.prototype.deleteDestinationEdge=ns.prototype.Jl,ns.prototype.addDestinationEdge=ns.prototype.zl,ns.prototype.deleteSourceEdge=ns.prototype.Kl,ns.prototype.addSourceEdge=ns.prototype.Cl,ns.className="LayoutVertex",ns.standardComparer=fv,ns.smartComparer=function(e,t){if(e!==null){if(t!==null){e=e.Sh;var n=t.Sh;if(e!==null){if(n!==null){for(t=e.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),e=n.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),n=0;n<t.length;n++)if(e[n]!==""&&e[n]!==void 0){var i=parseFloat(t[n]),r=parseFloat(e[n]);if(isNaN(i))if(isNaN(r)){if(t[n].localeCompare(e[n])!==0)return t[n].localeCompare(e[n])}else return 1;else{if(isNaN(r))return-1;if(i-r!==0)return i-r}}else if(t[n]!=="")return 1;return e[n]!==""&&e[n]!==void 0?-1:0}return 1}return n!==null?-1:0}return 1}return t!==null?-1:0};function au(e){Li(this),this.nb=e,this.qd=this.kd=this.$k=this.ub=null}au.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},au.prototype.toString=function(e){e===void 0&&(e=0);var t="LayoutEdge#"+Mt(this);return 0<e&&(t+=this.$k!==null?"("+this.$k.toString()+")":"",1<e&&(t+=" "+(this.kd?this.kd.toString():"null")+" --> "+(this.qd?this.qd.toString():"null"))),t},au.prototype.gm=function(){var e=this.kd;this.kd=this.qd,this.qd=e},au.prototype.commit=function(){},au.prototype.Ax=function(e){return this.qd===e?this.kd:this.kd===e?this.qd:null},ht.Object.defineProperties(au.prototype,{network:{get:function(){return this.nb},set:function(e){this.nb=e}},data:{get:function(){return this.ub},set:function(e){this.ub!==e&&(this.ub=e)}},link:{get:function(){return this.$k},set:function(e){this.$k!==e&&(this.$k=e)}},fromVertex:{get:function(){return this.kd},set:function(e){this.kd!==e&&(this.kd=e)}},toVertex:{get:function(){return this.qd},set:function(e){this.qd!==e&&(this.qd=e)}}}),au.prototype.getOtherVertex=au.prototype.Ax,au.className="LayoutEdge";function ks(e){Qo.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new pi(NaN,NaN).freeze(),this.tf=new pi(10,10).freeze(),this.Jb=_p,this.Rb=mm,this.nd=zp,this.hd=x1,e&&Object.assign(this,e)}yi(ks,Qo),ks.prototype.cloneProtected=function(e){Qo.prototype.cloneProtected.call(this,e),e.zo=this.zo,e.yo=this.yo,e.yg.assign(this.yg),e.tf.assign(this.tf),e.Jb=this.Jb,e.Rb=this.Rb,e.nd=this.nd,e.hd=this.hd},ks.prototype.qb=function(e){e.classType===ks?e===zp||e===vm||e===pv||e===gm?this.sorting=e:e===mm||e===pc?this.arrangement=e:e===_p||e===pm?this.alignment=e:Ve("Unknown enum value: "+e):Qo.prototype.qb.call(this,e)},ks.prototype.doLayout=function(e){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var t=this.ex(e);e=this.diagram;for(var n=t.copy().iterator;n.next();){var i=n.value;if(!i.ph()||i.fromNode===null&&i.toNode===null){if(i.Va(),i instanceof qi)for(i=i.memberParts;i.next();)t.remove(i.value)}else t.remove(i)}var r=t.Fa();if(r.length!==0){switch(this.sorting){case gm:r.reverse();break;case zp:r.sort(this.comparer);break;case vm:r.sort(this.comparer),r.reverse()}var o=this.wrappingColumn;isNaN(o)&&(o=0);var a=this.wrappingWidth;switch(isNaN(a)&&e!==null?(t=e.padding,a=Math.max(e.viewportBounds.width-t.left-t.right,0)):a=Math.max(this.wrappingWidth,0),0>=o&&0>=a&&(o=1),t=this.spacing.width,isFinite(t)||(t=0),n=this.spacing.height,isFinite(n)||(n=0),e!==null&&e.Ea("Layout"),i=[],this.alignment){case pm:var l=t,u=n,f=Zt.alloc(),p=Math.max(this.cellSize.width,1);if(!isFinite(p))for(var x=p=0;x<r.length;x++){var N=this.ni(r[x],f);p=Math.max(p,N.width)}if(p=Math.max(p+l,1),x=Math.max(this.cellSize.height,1),!isFinite(x))for(N=x=0;N<r.length;N++){var R=this.ni(r[N],f);x=Math.max(x,R.height)}x=Math.max(x+u,1),N=this.arrangement;for(var _=R=this.arrangementOrigin.x,V=this.arrangementOrigin.y,xe=0,ue=0,Fe=0;Fe<r.length;Fe++){var Ue=r[Fe],We=this.ni(Ue,f),rt=Math.ceil((We.width+l)/p)*p,At=Math.ceil((We.height+u)/x)*x;switch(N){case pc:var Kn=Math.abs(_-We.width);break;default:Kn=_+We.width}switch((0<o&&xe>o-1||0<a&&0<xe&&Kn-R>a)&&(i.push(new Zt(0,V,a+l,ue)),xe=0,_=R,V+=ue,ue=0),ue=Math.max(ue,At),N){case pc:We=-We.width;break;default:We=0}switch(Ue.moveTo(_+We,V),N){case pc:_-=rt;break;default:_+=rt}xe++}i.push(new Zt(0,V,a+l,ue)),Zt.free(f);break;case _p:for(u=a,p=o,x=t,N=n,a=Zt.alloc(),R=Math.max(this.cellSize.width,1),o=V=f=0,l=he.alloc(),_=0;_<r.length;_++)ue=r[_],xe=this.ni(ue,a),ue=xh(ue,ue.locationObject,ue.locationSpot,l),f=Math.max(f,ue.x),V=Math.max(V,xe.width-ue.x),o=Math.max(o,ue.y);switch(_=this.arrangement,_){case pc:f+=x;break;default:V+=x}R=isFinite(R)?Math.max(R+x,1):Math.max(f+V,1);var ri=ue=this.arrangementOrigin.x;for(Fe=this.arrangementOrigin.y,V=0,u>=f&&(u-=f),f=Ue=0,rt=Math.max(this.cellSize.height,1),We=o=0,At=!0,xe=he.alloc(),Kn=0;Kn<r.length;Kn++){var qn=r[Kn],Rn=this.ni(qn,a),mn=xh(qn,qn.locationObject,qn.locationSpot,l);if(0<V)switch(_){case pc:ri=(ri-ue-(Rn.width-mn.x))/R,ri=qe.$(Math.round(ri),ri)?Math.round(ri):Math.floor(ri),ri=ri*R+ue;break;default:ri=(ri-ue+mn.x)/R,ri=qe.$(Math.round(ri),ri)?Math.round(ri):Math.ceil(ri),ri=ri*R+ue}else switch(_){case pc:Ue=ri+mn.x+Rn.width;break;default:Ue=ri-mn.x}switch(_){case pc:var Ji=-(ri+mn.x)+Ue;break;default:Ji=ri+Rn.width-mn.x-Ue}if(0<p&&V>p-1||0<u&&0<V&&Ji>u){for(i.push(new Zt(0,At?Fe-o:Fe,u+x,We+o+N)),ri=0;ri<V&&Kn!==V;ri++){Ji=r[Kn-V+ri];var Wi=xh(Ji,Ji.locationObject,Ji.locationSpot,xe);Ji.moveTo(Ji.position.x,Ji.position.y+o-Wi.y)}We+=N,Fe=At?Fe+We:Fe+(We+o),V=We=o=0,ri=ue,At=!1}switch(ri===ue&&(f=_===pc?Math.max(f,Rn.width-mn.x):Math.min(f,-mn.x)),o=Math.max(o,mn.y),We=Math.max(We,Rn.height-mn.y),isFinite(rt)&&(We=Math.max(We,Math.max(Rn.height,rt)-mn.y)),At?qn.moveTo(ri-mn.x,Fe-mn.y):qn.moveTo(ri-mn.x,Fe),_){case pc:ri-=mn.x+x;break;default:ri+=Rn.width-mn.x+x}V++}if(i.push(new Zt(0,Fe,u+x,(At?We:We+o)+N)),r.length!==V)for(u=0;u<V;u++)p=r[r.length-V+u],x=xh(p,p.locationObject,p.locationSpot,l),p.moveTo(p.position.x,p.position.y+o-x.y);if(he.free(l),he.free(xe),_===pc)for(r=0;r<i.length;r++)o=i[r],o.width+=f,o.x-=f;else for(r=0;r<i.length;r++)o=i[r],o.x>f&&(o.width+=o.x-f,o.x=f);Zt.free(a)}for(l=o=a=r=0;l<i.length;l++)u=i[l],r=Math.min(r,u.x),a=Math.min(a,u.y),o=Math.max(o,u.x+u.width);this.arrangement===pc?this.commitLayers(i,new he(r+t/2-(o+r),a-n/2)):this.commitLayers(i,new he(r-t/2,a-n/2)),e!==null&&e.eb("Layout"),this.isValidLayout=!0}},ks.prototype.commitLayers=function(){};function x1(e,t){return e=e.text,t=t.text,e<t?-1:e>t?1:0}ht.Object.defineProperties(ks.prototype,{wrappingWidth:{get:function(){return this.zo},set:function(e){this.zo!==e&&(0<e||isNaN(e))&&(this.zo=e,this.isViewportSized=isNaN(e),this.C())}},wrappingColumn:{get:function(){return this.yo},set:function(e){this.yo!==e&&(0<e||isNaN(e))&&(this.yo=e,this.C())}},cellSize:{get:function(){return this.yg},set:function(e){this.yg.D(e)||(this.yg.assign(e),this.C())}},spacing:{get:function(){return this.tf},set:function(e){this.tf.D(e)||(this.tf.assign(e),this.C())}},alignment:{get:function(){return this.Jb},set:function(e){this.Jb===e||e!==_p&&e!==pm||(this.Jb=e,this.C())}},arrangement:{get:function(){return this.Rb},set:function(e){this.Rb===e||e!==mm&&e!==pc||(this.Rb=e,this.C())}},sorting:{get:function(){return this.nd},set:function(e){this.nd===e||e!==pv&&e!==gm&&e!==zp&&e!==vm||(this.nd=e,this.C())}},comparer:{get:function(){return this.hd},set:function(e){this.hd!==e&&(this.hd=e,this.C())}}});var pm=new Yt(ks,"Position",0),_p=new Yt(ks,"Location",1),mm=new Yt(ks,"LeftToRight",2),pc=new Yt(ks,"RightToLeft",3),pv=new Yt(ks,"Forward",4),gm=new Yt(ks,"Reverse",5),zp=new Yt(ks,"Ascending",6),vm=new Yt(ks,"Descending",7);ks.className="GridLayout",ks.standardComparer=x1,ks.smartComparer=function(e,t){if(e!==null){if(t!==null){e=e.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),t=t.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/);for(var n=0;n<e.length;n++)if(t[n]!==""&&t[n]!==void 0){var i=parseFloat(e[n]),r=parseFloat(t[n]);if(isNaN(i))if(isNaN(r)){if(e[n].localeCompare(t[n])!==0)return e[n].localeCompare(t[n])}else return 1;else{if(isNaN(r))return-1;if(i-r!==0)return i-r}}else if(e[n]!=="")return 1;return t[n]!==""&&t[n]!==void 0?-1:0}return 1}return t!==null?-1:0},ks.Position=pm,ks.Location=_p,ks.LeftToRight=mm,ks.RightToLeft=pc,ks.Forward=pv,ks.Reverse=gm,ks.Ascending=zp,ks.Descending=vm;function so(){this.On=new Xt,this.Dn=new Xt,this.Pa=new Xt,this.cf=new Zn,this.bf=new Zn,this.aj=new Zn,this.H=null,this.tp=!1}U=so.prototype,U.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},U.Xe=function(e){this.H=e},U.oi=function(e){if(e instanceof Xn){if(this.On.add(e),e instanceof qi){var t=e.containingGroup;t===null?this.H.ai.add(e):t.gl.add(e),t=e.layout,t!==null&&(t.diagram=this.H)}}else e instanceof Pn?this.Dn.add(e):e instanceof Zr||this.Pa.add(e);t=e.data,t===null||e instanceof Zr||(e instanceof Pn?this.bf.add(t,e):this.cf.add(t,e))},U.pc=function(e){if(e.Ej(),e instanceof Xn){if(this.On.remove(e),e instanceof qi){var t=e.containingGroup;t===null?this.H.ai.remove(e):t.gl.remove(e),t=e.layout,t!==null&&(t.diagram=null)}}else e instanceof Pn?this.Dn.remove(e):e instanceof Zr||this.Pa.remove(e);t=e.data,t===null||e instanceof Zr||(e instanceof Pn?this.bf.remove(t):this.cf.remove(t))},U.Wd=function(){var e=this.H;if(e!==null){for(var t=e.nodeTemplateMap.iterator;t.next();){var n=t.value,i=t.key;(!n.Zc()||n instanceof qi)&&Ve('Invalid node template in Diagram.nodeTemplateMap: template for "'+i+'" must be a Node or a simple Part, not a Group or Link: '+n)}for(t=e.groupTemplateMap.iterator;t.next();)n=t.value,i=t.key,n instanceof qi||Ve('Invalid group template in Diagram.groupTemplateMap: template for "'+i+'" must be a Group, not a normal Node or Link: '+n);for(t=e.linkTemplateMap.iterator;t.next();)n=t.value,i=t.key,n instanceof Pn||Ve('Invalid link template in Diagram.linkTemplateMap: template for "'+i+'" must be a Link, not a normal Node or simple Part: '+n);for(t=Rt(),n=e.selection.iterator;n.next();)(i=n.value.data)&&t.push(i);for(n=Rt(),e=e.highlighteds.iterator;e.next();)(i=e.value.data)&&n.push(i);for(e=Rt(),i=this.nodes.iterator;i.next();){var r=i.value;r.data!==null&&(e.push(r.data),e.push(r.location))}for(i=this.links.iterator;i.next();)r=i.value,r.data!==null&&(e.push(r.data),e.push(r.location));for(i=this.parts.iterator;i.next();)r=i.value,r.data!==null&&(e.push(r.data),e.push(r.location));for(this.removeAllModeledParts(),this.addAllModeledParts(),i=0;i<t.length;i++)r=this.Lc(t[i]),r!==null&&(r.isSelected=!0);for(i=0;i<n.length;i++)r=this.Lc(n[i]),r!==null&&(r.isHighlighted=!0);for(i=0;i<e.length;i+=2)r=this.Lc(e[i]),r!==null&&(r.location=e[i+1]);Jt(t),Jt(n),Jt(e)}},so.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},so.prototype.addModeledParts=function(e,t){var n=this,i=this.diagram.model;e.forEach(function(r){i.lb(r)&&S1(n,r,!1)}),e.forEach(function(r){i.lb(r)&&n.resolveReferencesForData(r)}),t!==!1&&uf(this.diagram,!1)};function S1(e,t,n){if(t!=null&&!e.diagram.undoManager.isUndoingRedoing&&!e.cf.contains(t)){n===void 0&&(n=!0);e:{if(t!=null&&!e.H.undoManager.isUndoingRedoing&&!e.cf.contains(t)){var i=e.Ro(t),r=E1(e,t,i);if(r!==null&&(ju(r),r=r.copy(),r!==null)){var o=e.diagram.skipsModelSourceBindings;e.diagram.skipsModelSourceBindings=!0,r.Tf=i,r.ub=t,e.tp&&(r.Jg="Tool"),e.diagram.add(r),r.ub=null,r.data=t,e.diagram.skipsModelSourceBindings=o,i=r;break e}}i=null}i!==null&&n&&e.resolveReferencesForData(t)}}so.prototype.insertLink=function(){return null},so.prototype.resolveReferencesForData=function(){},so.prototype.Ro=function(e){return this.H.model.Ro(e)};function E1(e,t,n){e=e.H;var i=e.model;return i.Xj()&&i.Yu(t)?(t=e.groupTemplateMap.I(n),t===null&&(t=e.groupTemplateMap.I(""),t===null&&(T1||(T1=!0,Wn('No Group template found for category "'+n+'"'),Wn(" Using default group template")),t=e.ly))):(t=e.nodeTemplateMap.I(n),t===null&&(t=e.nodeTemplateMap.I(""),t===null&&(C1||(C1=!0,Wn('No Node template found for category "'+n+'"'),Wn(" Using default node template")),t=e.ny))),t}so.prototype.getLinkCategoryForData=function(){return""},so.prototype.setLinkCategoryForData=function(){},so.prototype.setFromNodeForLink=function(){},so.prototype.setToNodeForLink=function(){},so.prototype.findLinkTemplateForCategory=function(e){var t=this.H,n=t.linkTemplateMap.I(e);return n===null&&(n=t.linkTemplateMap.I(""),n===null&&(N1||(N1=!0,Wn('No Link template found for category "'+e+'"'),Wn(" Using default link template")),n=t.my)),n},so.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},so.prototype.Gs=function(e){var t=this;e.forEach(function(n){t.ip(n)})},so.prototype.ip=function(e){e=this.Lc(e),e!==null&&(Xc(this.diagram,e,!1),this.unresolveReferencesForPart(e))},so.prototype.unresolveReferencesForPart=function(){},so.prototype.removeDataForLink=function(){},so.prototype.findPartForKey=function(e){return e==null?null:(e=this.H.model.hc(e),e!==null?this.cf.I(e):null)},so.prototype.Vb=function(e){return e==null||(e=this.H.model.hc(e),e===null)?null:(e=this.cf.I(e),e instanceof Xn?e:null)},so.prototype.findLinkForKey=function(){return null},U=so.prototype,U.Lc=function(e){if(e===null)return null;var t=this.cf.I(e);return t!==null?t:t=this.bf.I(e)},U.ii=function(e){return e===null?null:(e=this.cf.I(e),e instanceof Xn?e:null)},U.Kc=function(e){return e===null?null:this.bf.I(e)},U.ms=function(e){for(var t=0;t<arguments.length;++t);t=new Xt;for(var n=this.On.iterator;n.next();){var i=n.value,r=i.data;if(r!==null)for(var o=0;o<arguments.length;o++){var a=arguments[o];if(ot(a)&&mv(this,r,a)){t.add(i);break}}}return t.iterator},U.ls=function(e){for(var t=0;t<arguments.length;++t);t=new Xt;for(var n=this.Dn.iterator;n.next();){var i=n.value,r=i.data;if(r!==null)for(var o=0;o<arguments.length;o++){var a=arguments[o];if(ot(a)&&mv(this,r,a)){t.add(i);break}}}return t.iterator};function mv(e,t,n){for(var i in n){var r=t[i],o=n[i];if(fn(o)){if(!fn(r)||r.length<o.length)return!1;for(var a=0;a<r.length;a++){var l=o[a];if(l!==void 0&&!w1(e,r[a],l))return!1}}else if(!w1(e,r,o))return!1}return!0}function w1(e,t,n){if(typeof n=="function"){if(!n(t))return!1}else if(n instanceof RegExp){if(!t||!n.test(t.toString()))return!1}else if(ot(t)&&ot(n)){if(!mv(e,t,n))return!1}else if(t!==n)return!1;return!0}so.prototype.doModelChanged=function(e){if(this.H){var t=this.H;if(e.model===t.model){var n=e.change;if(t.doModelChanged(e),t.aa){t.aa=!1;try{var i=e.modelChange;if(i!=="")if(n===So){if(i==="nodeCategory"){var r=this.Lc(e.object),o=e.newValue;r!==null&&typeof o=="string"&&(r.category=o)}else i==="nodeDataArray"&&(this.Gs(e.oldValue),this.addModeledParts(e.newValue));t.isModified=!0}else if(n===Ko){var a=e.newValue;i==="nodeDataArray"&&ot(a)&&S1(this,a),t.isModified=!0}else if(n===la){var l=e.oldValue;i==="nodeDataArray"&&ot(l)&&this.ip(l),t.isModified=!0}else n===vs&&(i==="SourceChanged"?e.object!==null?this.updateDataBindings(e.object,e.propertyName):(this.rp(),this.updateAllTargetBindings()):i==="ModelDisplaced"&&this.Wd());else if(n===So){var u=e.propertyName,f=e.object;f===t.model?(u==="nodeKeyProperty"||u==="nodeCategoryProperty")&&(t.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(f,u),t.isModified=!0}else if(n===Ko||n===la){var p=e.change===Ko,x=p?e.newParam:e.oldParam,N=p?e.newValue:e.oldValue,R=this.aj.I(e.object);if(Array.isArray(R))for(e=0;e<R.length;e++){var _=R[e];if(p)F0(_,N,x,!0);else if(!(0>x)){var V=x+xp(_);_.pc(V,!0),Ig(_,V,x)}}t.isModified=!0}}finally{t.aa=!0}}}}},so.prototype.updateAllTargetBindings=function(e){e===void 0&&(e="");for(var t=this.parts.iterator;t.next();)t.value.La(e);for(t=this.nodes.iterator;t.next();)t.value.La(e);for(t=this.links.iterator;t.next();)t.value.La(e)},so.prototype.rp=function(){for(var e=this.H.model,t=new Xt,n=e.nodeDataArray,i=0;i<n.length;i++)t.add(n[i]);var r=[];for(this.nodes.each(function(a){a.data===null||t.contains(a.data)||r.push(a.data)}),this.parts.each(function(a){a.data===null||t.contains(a.data)||r.push(a.data)}),r.forEach(function(a){P1(e,a,!1)}),i=0;i<n.length;i++){var o=n[i];this.Lc(o)===null&&D1(e,o,!1)}for(this.refreshDataBoundLinks(),n=this.parts.iterator;n.next();)n.value.updateRelationshipsFromData();for(n=this.nodes.iterator;n.next();)n.value.updateRelationshipsFromData();for(n=this.links.iterator;n.next();)n.value.updateRelationshipsFromData()},so.prototype.refreshDataBoundLinks=function(){},so.prototype.updateRelationshipsFromData=function(){},so.prototype.updateDataBindings=function(e,t){if(typeof t=="string"){var n=this.Lc(e);if(n!==null)n.La(t);else{n=null;for(var i=this.aj.iterator;i.next();){for(var r=i.value,o=0;o<r.length;o++){var a=r[o].sx(e);a!==null&&(n===null&&(n=Rt()),n.push(a))}if(n!==null)break}if(n!==null){for(i=0;i<n.length;i++)n[i].La(t);Jt(n)}}e===this.diagram.model.modelData&&this.updateAllTargetBindings(t)}};function gv(e,t){var n=t.Hh;if(fn(n)){var i=e.aj.I(n);if(i===null)i=[],i.push(t),e.aj.add(n,i);else{for(e=0;e<i.length;e++)if(i[e]===t)return;i.push(t)}}}function vv(e,t,n){bd(t,function(a){a=a.O.s;for(var l=a.length,u=0;u<l;u++)rp(n,a[u])});var i=t.Hh;if(fn(i)){var r=e.aj.I(i);if(r!==null){for(var o=0;o<r.length;o++)if(r[o]===t){r.splice(o,1),r.length===0&&e.aj.remove(i);break}}}}so.prototype.Kj=function(e,t,n){n===void 0&&(n=!1);var i=new Zn;if(fn(e))for(var r=0;r<e.length;r++)ym(this,e[r],t,i,n);else for(e=e.iterator;e.next();)ym(this,e.value,t,i,n);if(t!==null){n=t.model,e=t.toolManager.findTool("Dragging"),e=e!==null?e.dragOptions.dragsLink:t.Wm.dragsLink,r=new Xt;for(var o=new Zn,a=i.iterator;a.next();){var l=a.value;if(l instanceof Pn)e||l.fromNode!==null&&l.toNode!==null||r.add(l);else if(l instanceof Xn&&l.data!==null&&n.Tl()){var u=l;l=a.key;var f=l.pg();f!==null&&(f=i.I(f),f!==null?(n.qe(u.data,n.wa(f.data)),u=t.Kc(u.data),l=l.kh(),l!==null&&u!==null&&o.add(l,u)):n.qe(u.data,void 0))}}if(0<r.count&&t.Is(r,!1),0<o.count)for(n=o.iterator;n.next();)i.add(n.key,n.value)}if(t!==null&&this.H!==null&&(t=t.model,n=t.afterCopyFunction,n!==null)){var p=new Zn;i.each(function(x){x.key.data!==null&&p.add(x.key.data,x.value.data)}),n(p,t,this.H.model)}for(t=i.iterator;t.next();)t.value.La();return i};function ym(e,t,n,i,r){if(t===null||r&&!t.canCopy())return null;if(i.contains(t))return i.I(t);var o=e.copyPartData(t,n);if(!(o instanceof Ci))return null;if(o.isSelected=!1,o.isHighlighted=!1,i.add(t,o),t instanceof Xn){for(var a=t.linksConnected;a.next();){var l=a.value;if(l.fromNode===t){var u=i.I(l);u!==null&&(u.fromNode=o)}l.toNode===t&&(l=i.I(l),l!==null&&(l.toNode=o))}if(t instanceof qi&&o instanceof qi)for(t=t.memberParts;t.next();)a=ym(e,t.value,n,i,r),a instanceof Pn||a===null||(a.containingGroup=o)}else if(t instanceof Pn&&o instanceof Pn)for(a=t.fromNode,a!==null&&(a=i.I(a),a!==null&&(o.fromNode=a)),a=t.toNode,a!==null&&(a=i.I(a),a!==null&&(o.toNode=a)),t=t.labelNodes;t.next();)a=ym(e,t.value,n,i,r),a!==null&&a instanceof Xn&&(a.labeledLink=o);return o}so.prototype.copyPartData=function(e,t){var n=null,i=e.data;if(i!==null&&t!==null){var r=t.model;e instanceof Pn||(i=r.copyNodeData(i),ot(i)&&(r.xf(i),n=t.Lc(i)))}else ju(e),n=e.copy(),n!==null&&(r=this.H,t!==null?t.add(n):i!==null&&r!==null&&r.commandHandler!==null&&r.commandHandler.copiesClipboardData&&(t=r.model,r=null,n instanceof Pn||(r=t.copyNodeData(i)),ot(r)&&(n.data=r)));return n},ht.Object.defineProperties(so.prototype,{nodes:{get:function(){return this.On}},links:{get:function(){return this.Dn}},parts:{get:function(){return this.Pa}},diagram:{get:function(){return this.H}},addsToTemporaryLayer:{get:function(){return this.tp},set:function(e){this.tp=e}}}),so.prototype.updateAllRelationshipsFromData=so.prototype.rp,so.prototype.findLinksByExample=so.prototype.ls,so.prototype.findNodesByExample=so.prototype.ms,so.prototype.findLinkForData=so.prototype.Kc,so.prototype.findNodeForData=so.prototype.ii,so.prototype.findPartForData=so.prototype.Lc,so.prototype.findNodeForKey=so.prototype.Vb,so.prototype.removeModeledPart=so.prototype.ip,so.prototype.removeModeledParts=so.prototype.Gs,so.prototype.rebuildParts=so.prototype.Wd;var C1=!1,T1=!1,N1=!1;so.className="PartManager";function ms(e){so.apply(this,arguments)}yi(ms,so),ms.prototype.addAllModeledParts=function(){var e=this.diagram.model;this.addModeledParts(e.nodeDataArray),A1(this,e.linkDataArray)},ms.prototype.addModeledParts=function(e){for(so.prototype.addModeledParts.call(this,e,!1),e=this.links.iterator;e.next();)Mf(e.value);uf(this.diagram,!1)};function A1(e,t){t.forEach(function(n){k1(e,n)}),uf(e.diagram,!1)}function k1(e,t){if(t!=null&&!e.diagram.undoManager.isUndoingRedoing&&!e.bf.contains(t)){var n=e.getLinkCategoryForData(t),i=e.findLinkTemplateForCategory(n);if(i!==null){ju(i);var r=i.copy();if(r!==null){i=e.diagram.skipsModelSourceBindings,e.diagram.skipsModelSourceBindings=!0,r.Tf=n,r.ub=t,n=e.diagram.model;var o=Em(n,t,!0);o!==""&&(r.fromPortId=o),o=Eu(n,t,!0),o!==void 0&&(o=e.Vb(o),o instanceof Xn&&(r.fromNode=o)),o=Em(n,t,!1),o!==""&&(r.toPortId=o),o=Eu(n,t,!1),o!==void 0&&(o=e.Vb(o),o instanceof Xn&&(r.toNode=o)),n=n.Ef(t),Array.isArray(n)&&n.forEach(function(a){a=e.Vb(a),a!==null&&(a.labeledLink=r)}),e.tp&&(r.Jg="Tool"),e.diagram.add(r),r.ub=null,r.data=t,e.diagram.skipsModelSourceBindings=i}}}}ms.prototype.removeAllModeledParts=function(){var e=this.diagram.model;I1(this,e.linkDataArray),this.Gs(e.nodeDataArray)};function I1(e,t){t.forEach(function(n){e.ip(n)})}ms.prototype.getLinkCategoryForData=function(e){return this.diagram.model.ps(e)},ms.prototype.setLinkCategoryForData=function(e,t){return this.diagram.model.lp(e,t)},ms.prototype.setFromNodeForLink=function(e,t){var n=this.diagram.model;n.wv(e.data,n.wa(t!==null?t.data:null))},ms.prototype.setToNodeForLink=function(e,t){var n=this.diagram.model;n.Bv(e.data,n.wa(t!==null?t.data:null))},ms.prototype.removeDataForLink=function(e){this.diagram.model.bm(e.data)},ms.prototype.findPartForKey=function(e){var t=so.prototype.findPartForKey.call(this,e);return t===null&&(e=this.diagram.model.jh(e),e!==null)?this.bf.I(e):t},ms.prototype.findLinkForKey=function(e){return e==null?null:(e=this.diagram.model.jh(e),e!==null?this.bf.I(e):null)},ms.prototype.doModelChanged=function(e){var t=this;if(so.prototype.doModelChanged.call(this,e),this.diagram){var n=this.diagram;if(e.model===n.model){var i=e.change;if(n.aa){n.aa=!1;try{var r=e.modelChange;if(r!==""){if(i===So){if(r==="linkFromKey"){var o=this.Kc(e.object);if(o!==null){var a=this.Vb(e.newValue);o.fromNode=a}}else if(r==="linkToKey"){var l=this.Kc(e.object);if(l!==null){var u=this.Vb(e.newValue);l.toNode=u}}else if(r==="linkFromPortId"){var f=this.Kc(e.object);if(f!==null){var p=e.newValue;typeof p=="string"&&(f.fromPortId=p)}}else if(r==="linkToPortId"){var x=this.Kc(e.object);if(x!==null){var N=e.newValue;typeof N=="string"&&(x.toPortId=N)}}else if(r==="nodeGroupKey"){var R=this.Lc(e.object);if(R!==null){var _=e.newValue;if(_!==void 0){var V=this.Vb(_);V instanceof qi?R.containingGroup=V:R.containingGroup=null}else R.containingGroup=null}}else if(r==="linkLabelKeys"){var xe=this.Kc(e.object);if(xe!==null){var ue=e.oldValue,Fe=e.newValue;Array.isArray(ue)&&ue.forEach(function(mn){0<=Fe.indexOf(mn)||(mn=t.Vb(mn),mn!==null&&(mn.labeledLink=null))}),Array.isArray(Fe)&&Fe.forEach(function(mn){mn=t.Vb(mn),mn!==null&&(mn.labeledLink=xe)})}}else if(r==="linkCategory"){var Ue=this.Kc(e.object),We=e.newValue;Ue!==null&&typeof We=="string"&&(Ue.category=We)}else r==="linkDataArray"&&(I1(this,e.oldValue),A1(this,e.newValue));n.isModified=!0}else if(i===Ko){var rt=e.newValue;if(r==="linkDataArray"&&typeof rt=="object"&&rt!==null)k1(this,rt);else if(r==="linkLabelKeys"&&Zh(rt)){var At=this.Kc(e.object),Kn=this.Vb(rt);At!==null&&Kn!==null&&(Kn.labeledLink=At)}n.isModified=!0}else if(i===la){var ri=e.oldValue;if(r==="linkDataArray"&&typeof ri=="object"&&ri!==null)this.ip(ri);else if(r==="linkLabelKeys"&&Zh(ri)){var qn=this.Vb(ri);qn!==null&&(qn.labeledLink=null)}n.isModified=!0}}else if(i===So){var Rn=e.propertyName;e.object!==n.model||Rn!=="linkFromKeyProperty"&&Rn!=="linkToKeyProperty"&&Rn!=="linkFromPortIdProperty"&&Rn!=="linkToPortIdProperty"&&Rn!=="linkLabelKeysProperty"&&Rn!=="nodeIsGroupProperty"&&Rn!=="nodeGroupKeyProperty"&&Rn!=="linkCategoryProperty"||n.undoManager.isUndoingRedoing||this.Wd(),n.isModified=!0}}finally{n.aa=!0}}}}},ms.prototype.refreshDataBoundLinks=function(){var e=this,t=this.diagram.model,n=new Xt,i=t.linkDataArray;i.forEach(function(o){n.add(o)});var r=[];this.links.each(function(o){o.data===null||n.contains(o.data)||r.push(o.data)}),r.forEach(function(o){H1(t,o,!1)}),i.forEach(function(o){e.Kc(o)===null&&U1(t,o,!1)})},ms.prototype.updateRelationshipsFromData=function(e){var t=e.data;if(t!==null){var n=e.diagram;if(n!==null){var i=n.model;if(e instanceof Pn){var r=Eu(i,t,!0);if(r=n.Vb(r),e.fromNode=r,r=Eu(i,t,!1),r=n.Vb(r),e.toNode=r,t=i.Ef(t),0<t.length||0<e.labelNodes.count){if(t.length===1&&e.labelNodes.count===1){r=t[0];var o=e.labelNodes.first();if(i.wa(o.data)===r)return}r=new Xt().addAll(t);var a=new Xt;e.labelNodes.each(function(l){l.data!==null&&(l=i.wa(l.data),l!==void 0&&a.add(l))}),t=a.copy(),t.hp(r),r=r.copy(),r.hp(a),(0<t.count||0<r.count)&&(t.each(function(l){l=n.Vb(l),l!==null&&l.labeledLink===e&&(l.labeledLink=null)}),r.each(function(l){l=n.Vb(l),l!==null&&l.labeledLink!==e&&(l.labeledLink=e)}))}}else!(e instanceof Zr)&&(t=i.lh(t),t=n.findPartForKey(t),t===null||t instanceof qi)&&(e.containingGroup=t)}}},ms.prototype.resolveReferencesForData=function(e){var t=this.diagram.model,n=t.wa(e);if(n!==void 0){var i=Up(t,n),r=this.Lc(e);if(i!==null&&r!==null){i=i.iterator;for(var o={};i.next();){var a=i.value;t.lb(a)?r instanceof qi&&t.lh(a)===n&&(a=this.Lc(a),a!==null&&(a.containingGroup=r)):(o.link=this.Kc(a),o.link!==null&&r instanceof Xn&&(Eu(t,a,!0)===n&&(o.link.fromNode=r),Eu(t,a,!1)===n&&(o.link.toNode=r),a=t.Ef(a),Array.isArray(a)&&a.some(function(l){return function(u){return u===n?(r.labeledLink=l.link,!0):!1}}(o)))),o={link:o.link}}gc(t,n)}e=t.lh(e),e!==void 0&&(e=this.Vb(e),e instanceof qi&&(r.containingGroup=e))}},ms.prototype.unresolveReferencesForPart=function(e){var t=this.diagram.model;if(e instanceof Xn){var n=t.wa(e.data);if(n!==void 0){for(var i=e.linksConnected;i.next();)mc(t,n,i.value.data);if(e.isLinkLabel&&(i=e.labeledLink,i!==null&&mc(t,n,i.data)),e instanceof qi)for(e=e.memberParts;e.next();)i=e.value.data,t.lb(i)&&mc(t,n,i)}}},ms.prototype.copyPartData=function(e,t){var n=so.prototype.copyPartData.call(this,e,t);if(e instanceof Pn)if(e=e.data,e!==null&&t!==null){var i=t.model;e=i.Jo(e),typeof e=="object"&&e!==null&&(i.fi(e),n=t.Kc(e))}else n!==null&&(t=this.diagram,e!==null&&t!==null&&t.commandHandler!==null&&t.commandHandler.copiesClipboardData&&(t=t.model.Jo(e),typeof t=="object"&&t!==null&&(n.data=t)));return n},ms.prototype.insertLink=function(e,t,n,i){var r=this.diagram,o=r.model,a=r.toolManager.findTool("Linking"),l="";if(e!==null&&(t===null&&(t=e),l=t.portId,l===null&&(l="")),t="",n!==null&&(i===null&&(i=n),t=i.portId,t===null&&(t="")),i=a.archetypeLinkData,i instanceof Pn){if(ju(i),o=i.copy(),o!==null)return o.fromNode=e,o.fromPortId=l,o.toNode=n,o.toPortId=t,r.add(o),e=a.archetypeLabelNodeData,e instanceof Xn&&(ju(e),e=e.copy(),e!==null&&(e.labeledLink=o,r.add(e))),o}else if(i!==null&&(i=o.Jo(i),typeof i=="object"&&i!==null))return e!==null&&Ff(o,i,o.wa(e.data),!0),Bf(o,i,l,!0),n!==null&&Ff(o,i,o.wa(n.data),!1),Bf(o,i,t,!1),o.fi(i),e=a.archetypeLabelNodeData,e===null||e instanceof Xn||(e=o.copyNodeData(e),typeof e=="object"&&e!==null&&(o.xf(e),e=o.wa(e),e!==void 0&&o.Bu(i,e))),r.Kc(i);return null},ms.prototype.findLinkForKey=ms.prototype.findLinkForKey,ms.prototype.findPartForKey=ms.prototype.findPartForKey,ms.prototype.removeAllModeledParts=ms.prototype.removeAllModeledParts,ms.prototype.addModeledParts=ms.prototype.addModeledParts,ms.prototype.addAllModeledParts=ms.prototype.addAllModeledParts,ms.className="GraphLinksPartManager";function Pu(){so.apply(this,arguments),this.Sg=null}yi(Pu,so);function bm(e,t,n){if(t!==null&&n!==null&&n.kh()===null){var i=e.diagram.toolManager.findTool("Linking"),r=t,o=n;if(e.diagram.isTreePathToChildren||(r=n,o=t),(i===null||!bn(i,r,o,null,!0))&&(t=e.getLinkCategoryForData(n.data),i=e.findLinkTemplateForCategory(t),i!==null&&(ju(i),i=i.copy(),i!==null))){var a=e.diagram.skipsModelSourceBindings;e.diagram.skipsModelSourceBindings=!0,i.Tf=t,i.ub=n.data,i.fromNode=r,i.toNode=o,e.diagram.add(i),i.ub=null,i.data=n.data,e.diagram.skipsModelSourceBindings=a}}}Pu.prototype.getLinkCategoryForData=function(e){return this.diagram.model.ss(e)},Pu.prototype.setLinkCategoryForData=function(e,t){this.diagram.model.Ms(e,t)},Pu.prototype.setFromNodeForLink=function(e,t,n){var i=this.diagram.model;if(n===void 0&&(n=null),t=t!==null?t.data:null,this.diagram.isTreePathToChildren)i.qe(e.data,i.wa(t));else{var r=this.Sg;this.Sg=e,n!==null&&i.qe(n.data,void 0),i.qe(t,i.wa(e.toNode!==null?e.toNode.data:null)),this.Sg=r}},Pu.prototype.setToNodeForLink=function(e,t,n){var i=this.diagram.model;if(n===void 0&&(n=null),t=t!==null?t.data:null,this.diagram.isTreePathToChildren){var r=this.Sg;this.Sg=e,n!==null&&i.qe(n.data,void 0),i.qe(t,i.wa(e.fromNode!==null?e.fromNode.data:null)),this.Sg=r}else i.qe(e.data,i.wa(t))},Pu.prototype.removeDataForLink=function(e){this.diagram.model.qe(e.data,void 0)},Pu.prototype.findLinkForKey=function(e){return e==null?null:(e=this.diagram.model.hc(e),e!==null?this.bf.I(e):null)},Pu.prototype.doModelChanged=function(e){if(so.prototype.doModelChanged.call(this,e),this.diagram){var t=this.diagram;if(e.model===t.model){var n=e.change;if(t.aa){t.aa=!1;try{var i=e.modelChange;if(i!==""){if(n===So){if(i==="nodeParentKey"){var r=e.object,o=this.Vb(e.newValue),a=this.ii(r);if(this.Sg!==null)o!==null&&(this.Sg.data=r,this.Sg.category=this.getLinkCategoryForData(r));else if(a!==null){var l=a.kh();l!==null?o===null?t.remove(l):t.isTreePathToChildren?l.fromNode=o:l.toNode=o:bm(this,o,a)}}else if(i==="parentLinkCategory"){var u=this.ii(e.object),f=e.newValue;if(u!==null&&typeof f=="string"){var p=u.kh();p!==null&&(p.category=f)}}t.isModified=!0}}else if(n===So){var x=e.propertyName;e.object===t.model&&x==="nodeParentKeyProperty"&&(t.undoManager.isUndoingRedoing||this.Wd()),t.isModified=!0}}finally{t.aa=!0}}}}},Pu.prototype.updateRelationshipsFromData=function(e){var t=e.data;if(t!==null){var n=e.diagram;if(n!==null){var i=n.model;e instanceof Xn&&(t=i.mh(t),t=n.Vb(t),i=e.pg(),t!==i&&(i=e.kh(),t!==null?i!==null?n.isTreePathToChildren?i.fromNode=t:i.toNode=t:bm(this,t,e):i!==null&&Xc(n,i,!1)))}}},Pu.prototype.updateDataBindings=function(e,t){so.prototype.updateDataBindings.call(this,e,t),typeof t=="string"&&this.Lc(e)!==null&&(e=this.Kc(e),e!==null&&e.La(t))},Pu.prototype.resolveReferencesForData=function(e){var t=this.diagram.model,n=t.wa(e);if(n!==void 0){var i=Up(t,n),r=this.Lc(e);if(i!==null&&r!==null){for(i=i.iterator;i.next();){var o=i.value;t.lb(o)&&r instanceof Xn&&t.mh(o)===n&&bm(this,r,this.ii(o))}gc(t,n)}e=t.mh(e),e!==void 0&&r instanceof Xn&&(e=this.Vb(e),bm(this,e,r))}},Pu.prototype.unresolveReferencesForPart=function(e){var t=this.diagram.model;if(e instanceof Xn){var n=t.wa(e.data),i=this.Kc(e.data);if(i!==null){i.isSelected=!1,i.isHighlighted=!1;var r=i.layer;if(r!==null){var o=r.pc(-1,i,!1);0<=o&&this.diagram.cb(la,"parts",r,i,null,o,null),o=i.layerChanged,o!==null&&o(i,r,null)}}for(i=this.diagram.isTreePathToChildren,e=e.linksConnected;e.next();)r=e.value,r=(i?r.toNode:r.fromNode).data,t.lb(r)&&mc(t,n,r)}},Pu.prototype.insertLink=function(e,t,n){t=this.diagram.model;var i=e,r=n;return this.diagram.isTreePathToChildren||(i=n,r=e),i!==null&&r!==null?(t.qe(r.data,t.wa(i.data)),r.kh()):null},Pu.prototype.findLinkForKey=Pu.prototype.findLinkForKey,Pu.className="TreePartManager";function di(e,t){this.kl=new Xt,this.il=new Xt,this.Wv=`,
"insertedNodeKeys": `,this.jy=`,
"modifiedNodeData": `,this.Yv=`,
"removedNodeKeys": `,this.vh=null,Li(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new Zn,this.Th="key",this.Bk=this.bl=null,this.Jm=this.Km=!1,this.Mm=!0,this.xm=null,this.lj="category",this.Vf=new Zn,this.Lt=new qt,this.Wg=!1,this.o=null,this.undoManager=new yo,e!==void 0&&(fn(e)?this.nodeDataArray=e:t=e),t&&(Object.assign(this,t),e=t.Changed)&&(delete this.Changed,this.Pe(e))}di.prototype.cloneProtected=function(e){e.xa=this.xa,e.Sm=this.Sm,e.Gg=this.Gg,e.Th=this.Th,e.bl=this.bl,e.Bk=this.Bk,e.Km=this.Km,e.Jm=this.Jm,e.Mm=this.Mm,e.xm=this.xm,e.lj=this.lj},di.prototype.copy=function(){var e=new this.constructor;return this.cloneProtected(e),e},di.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},di.prototype.toString=function(e){if(e===void 0&&(e=0),1<e)return this.np();var t=(this.name!==""?this.name:"")+" Model";if(0<e){t+=`
node data:`,e=this.nodeDataArray;for(var n=e.length,i=0;i<n;i++){var r=e[i];t+=" "+this.wa(r)+":"+xn(r)}}return t},di.prototype.xA=function(e){e.change!==vs&&Ve("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+e.toString());var t=e.object;return e.isTransactionFinished&&t instanceof La?(O1(this,t),e=this.Qv(t,e.propertyName==="FinishedUndo"),this.vh=null,e):null},di.prototype.Qv=function(e,t){var n=this,i=!1,r=new Xt,o=new Xt,a=new Xt,l=this.vh;e.changes.each(function(x){x.model===n&&(x.modelChange==="nodeDataArray"?x.change===Ko?r.add(x.newValue):x.change===la&&a.add(x.oldValue):n.lb(x.object)?o.add(x.object):x.change!==So||n.modelData!==x.object&&x.propertyName!=="modelData"?x.object!==null&&(l&&l.contains(x.object)?l.get(x.object).each(function(N){n.lb(N)&&o.add(N)}):x.object instanceof di||n.ri()&&n.Jc(x.object)||L1(n,x.object).each(function(N){o.add(N)})):i=!0)});var u=this.il;u.clear(),r.each(function(x){u.add(n.wa(x)),t||o.add(x)});var f=this.kl;f.clear(),a.each(function(x){f.add(n.wa(x)),t&&o.add(x)}),e=n.cloneDeep(o.Fa());var p=null;return i&&(p===null&&(p={}),p.modelData=this.cloneDeep(this.modelData)),0<u.count&&(p===null&&(p={}),t?p.removedNodeKeys=u.Fa():p.insertedNodeKeys=u.Fa()),0<e.length&&(p===null&&(p={}),p.modifiedNodeData=e),0<f.count&&(p===null&&(p={}),t?p.insertedNodeKeys=f.Fa():p.removedNodeKeys=f.Fa()),f.clear(),u.clear(),p},di.prototype.cloneDeep=function(e){return Pf(this,e,!0)};function Pf(e,t,n,i,r,o){function a(x,N){l?(x.__gohashid===void 0&&o.push(x),i.set(x,N)):(x=Qr++,i.set(x,N),r.set(x,t))}if(!ot(t))return t;o||(o=[]);var l=Object.isExtensible(t);if(i||(i=new Zn),l){var u=i.get(t);if(u)return u}else for(r||(r=new Zn),u=r.iterator;u.next();){var f=u.key;if(u.value===t&&(f=i.get(f)))return f}if(Array.isArray(t)){u=[],a(t,u);for(var p=0;p<t.length;p++)u.push(Pf(e,t[p],!1,i,r,o))}else if(t instanceof he||t instanceof pi||t instanceof Zt||t instanceof mi||t instanceof ai)u=t.copy(),a(t,u);else{if(t instanceof ao||t instanceof Dn||t instanceof Yt)return t;if(t instanceof qt)u=new qt().addAll(Pf(e,t.Fa(),!1,i,r,o)),a(t,u);else if(t instanceof Xt)u=new Xt().addAll(Pf(e,t.Fa(),!1,i,r,o)),a(t,u);else if(t instanceof Zn)u=new Zn().addAll(Pf(e,t.Fa(),!1,i,r,o)),a(t,u);else if(t instanceof Date)u=new Date(t.getTime()),a(t,u);else if(t instanceof RegExp)u=new RegExp(t),a(t,u),u.lastIndex=t.lastIndex;else if(typeof t.copy=="function")u=t.copy(),a(t,u);else for(p in u={},a(t,u),t)p!=="__gohashid"&&(u[p]=Pf(e,t[p],!1,i,r,o))}return n&&o.forEach(function(x){delete x.__gohashid}),u}U=di.prototype,U.quote=function(e){return JSON.stringify(e).replace(/[\u007F-\uFFFF]/g,function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).substr(-4)})},U.rm=function(){var e="";return this.name!==""&&(e+=`,
"name": `+this.quote(this.name)),this.dataFormat!==""&&(e+=`,
"dataFormat": `+this.quote(this.dataFormat)),this.isReadOnly&&(e+=`,
"isReadOnly": `+this.isReadOnly),this.nodeKeyProperty!=="key"&&typeof this.nodeKeyProperty=="string"&&(e+=`,
"nodeKeyProperty": `+this.quote(this.nodeKeyProperty)),this.copiesArrays&&(e+=`,
"copiesArrays": true`),this.copiesArrayObjects&&(e+=`,
"copiesArrayObjects": true`),this.copiesKey||(e+=`,
"copiesKey": false`),this.nodeCategoryProperty!=="category"&&typeof this.nodeCategoryProperty=="string"&&(e+=`,
"nodeCategoryProperty": `+this.quote(this.nodeCategoryProperty)),e},U.gp=function(e){e.name&&(this.name=e.name),e.dataFormat&&(this.dataFormat=e.dataFormat),e.isReadOnly&&(this.isReadOnly=!0),e.nodeKeyProperty&&(this.nodeKeyProperty=e.nodeKeyProperty),e.copiesArrays&&(this.copiesArrays=!0),e.copiesArrayObjects&&(this.copiesArrayObjects=!0),e.copiesKey===!1&&(this.copiesKey=!1),e.nodeCategoryProperty&&(this.nodeCategoryProperty=e.nodeCategoryProperty)};function M1(e,t){t=t.modelData,ot(t)&&(e.dm(t),e.modelData=t)}U.Rv=function(){var e=this.modelData,t=!1,n;for(n in e)if(!R1(n,e[n])){t=!0;break}return e="",t&&(e=`,
"modelData": `+yv(this,this.modelData)),e+`,
"nodeDataArray": `+Kh(this,this.nodeDataArray,!0)},U.kv=function(e){M1(this,e),e=e.nodeDataArray,fn(e)&&(this.dm(e),this.nodeDataArray=e)};function O1(e,t){function n(r,o){if((o=o.part)&&(o=o.data,r!==o)){var a=i.get(r);a===null?(a=new Xt,a.add(o),i.add(r,a)):a.add(o)}}var i=e.vh;i===null&&(i=new Zn,t.changes.each(function(r){if(r.diagram!==null){var o=r.change;o===So?(r=r.object.panel)&&(o=r.data)&&n(o,r):(o===Ko||o===la)&&(r=r.object,(o=r.itemArray)&&n(o,r))}}),e.vh=i)}function L1(e,t){for(var n=new Xt,i=0;i<e.nodeDataArray.length;i++){var r=e.nodeDataArray[i];xm(e,t,r,r,n)}return n}function xm(e,t,n,i,r){if(Array.isArray(n))for(var o=0;o<n.length;o++){var a=n[o];if(a===t)return r.add(i),!0;if(xm(e,t,a,i,r))return!0}else if(ot(n)&&Object.getPrototypeOf(n)===Object.prototype)for(o in n){if(a=n[o],a===t)return r.add(i),!0;if(xm(e,t,a,i,r))return!0}return!1}U.Pv=function(e,t){var n=this,i=!1,r=new Xt,o=new Xt,a=new Xt,l=this.vh;e.changes.each(function(p){p.model===n&&(p.modelChange==="nodeDataArray"?p.change===Ko?r.add(p.newValue):p.change===la&&a.add(p.oldValue):n.lb(p.object)?o.add(p.object):p.change!==So||n.modelData!==p.object&&p.propertyName!=="modelData"?p.object!==null&&(l&&l.contains(p.object)?l.get(p.object).each(function(x){n.lb(x)&&o.add(x)}):p.object instanceof di||n.ri()&&n.Jc(p.object)||L1(n,p.object).each(function(x){o.add(x)})):i=!0)});var u=this.il;u.clear(),r.each(function(p){u.add(n.wa(p)),t||o.add(p)});var f=this.kl;return f.clear(),a.each(function(p){f.add(n.wa(p)),t&&o.add(p)}),e="",i&&(e+=`,
"modelData": `+yv(this,this.modelData)),0<u.count&&(e+=(t?this.Yv:this.Wv)+Kh(this,u.Fa(),!0)),0<o.count&&(e+=this.jy+Kh(this,o.Fa(),!0)),0<f.count&&(e+=(t?this.Wv:this.Yv)+Kh(this,f.Fa(),!0)),f.clear(),u.clear(),e},U.fp=function(e){(e.name!==void 0&&e.name!==this.name||e.dataFormat!==void 0&&e.dataFormat!==this.dataFormat||e.isReadOnly!==void 0&&e.isReadOnly!==this.isReadOnly||e.nodeKeyProperty!==void 0&&e.nodeKeyProperty!==this.nodeKeyProperty||e.copiesArrays!==void 0&&e.copiesArrays!==this.copiesArrays||e.copiesArrayObjects!==void 0&&e.copiesArrayObjects!==this.copiesArrayObjects||e.copiesKey!==void 0&&e.copiesKey!==this.copiesKey||e.nodeCategoryProperty!==void 0&&e.nodeCategoryProperty!==this.nodeCategoryProperty)&&Ve("applyIncrementalJson cannot change Model properties"),M1(this,e);var t=e.insertedNodeKeys,n=e.modifiedNodeData,i=new Zn;if(Array.isArray(n))for(var r=0;r<n.length;r++){var o=n[r],a=this.wa(o);a!=null&&i.set(a,o)}if(Array.isArray(t))for(r=t.length,o=0;o<r;o++){a=t[o];var l=this.hc(a);l===null&&(l=(l=i.get(a))?l:this.copyNodeData({}),this.km(l,a),this.xf(l))}if(Array.isArray(n)){for(t=n.length,i=0;i<t;i++)if(r=n[i],o=this.wa(r),o=this.hc(o),o!==null){for(var u in r)u==="__gohashid"||u===this.nodeKeyProperty||this.Wj()&&u===this.nodeIsGroupProperty||this.setDataProperty(o,u,r[u]);this.lm(r,o)}}if(e=e.removedNodeKeys,Array.isArray(e))for(n=e.length,u=0;u<n;u++)t=this.hc(e[u]),t!==null&&this.cm(t)},U.$x=function(e,t){e.change!==vs&&Ve("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+e.toString());var n=e.object;return e.isTransactionFinished&&n instanceof La?(t===void 0&&(t=Hp(this,this)),O1(this,n),e=this.Pv(n,e.propertyName==="FinishedUndo"),this.vh=null,t==="2"?'{ "incremental": 2'+e+"}":'{ "class": '+this.quote(t)+', "incremental": 1'+this.rm()+e+"}"):'{ "incremental": 0 }'},U.yA=function(e,t){return this.$x(e,t)},U.np=function(e){return e===void 0&&(e=Hp(this,this)),'{ "class": '+this.quote(e)+this.rm()+this.Rv()+"}"},U.toJSON=function(e){return this.np(e)},U.Zw=function(e){var t=null;if(typeof e=="string")try{t=Ke.JSON.parse(e)}catch(i){}else typeof e=="object"?t=e:Ve("Unable to modify a Model from: "+e);var n=t.incremental;typeof n!="number"&&Ve("Unable to apply non-incremental changes to Model: "+e),n!==0&&(this.Ea("applyIncrementalJson"),this.fp(t),this.eb("applyIncrementalJson"))},U.Ky=function(e){return this.Zw(e)},di.constructGraphLinksModel=function(){return new di},U=di.prototype,U.dm=function(e){if(fn(e))for(var t=e.length,n=0;n<t;n++){var i=e[n];if(ot(i)){var r=n;i=this.dm(i),Array.isArray(e)?e[r]=i:Ve("Cannot replace an object in an HTMLCollection or NodeList at "+r)}}else if(ot(e)){for(t in e)if(n=e[t],ot(n)&&(n=this.dm(n),e[t]=n,t==="points"&&Array.isArray(n))){for(r=n.length%2===0,i=0;i<n.length;i++)if(typeof n[i]!="number"){r=!1;break}if(r){for(r=new qt,i=0;i<n.length/2;i++)r.add(new he(n[2*i],n[2*i+1]));r.freeze(),e[t]=r}}return Wb(e)}return e},U.sm=function(e){return e===void 0?"undefined":e===null?"null":e===!0?"true":e===!1?"false":typeof e=="string"?this.quote(e):typeof e=="number"?e===1/0?"9e9999":e===-1/0?"-9e9999":isNaN(e)?'{"class":"NaN"}':e.toString():e instanceof Date?'{"class":"Date", "value":"'+e.toJSON()+'"}':e instanceof Number?this.sm(e.valueOf()):fn(e)?Kh(this,e):ot(e)?yv(this,e):typeof e=="function"?"null":e.toString()};function Kh(e,t,n){n===void 0&&(n=!1);var i=t.length;if(0>=i)return"[]";var r=new q;r.add("["),n&&1<i&&r.add(`
`);for(var o=0;o<i;o++){var a=t[o];a!==void 0&&(0<o&&(r.add(","),n&&r.add(`
`)),r.add(e.sm(a)))}return n&&1<i&&r.add(`
`),r.add("]"),r.toString()}function R1(e,t){return t===void 0||e==="__gohashid"||e[0]==="_"||typeof t=="function"}function Al(e){return isNaN(e)?"NaN":e===1/0?"9e9999":e===-1/0?"-9e9999":e}function yv(e,t){var n=t;if(n instanceof he)t={class:"go.Point",x:Al(n.x),y:Al(n.y)};else if(n instanceof pi)t={class:"go.Size",width:Al(n.width),height:Al(n.height)};else if(n instanceof Zt)t={class:"go.Rect",x:Al(n.x),y:Al(n.y),width:Al(n.width),height:Al(n.height)};else if(n instanceof mi)t={class:"go.Margin",top:Al(n.top),right:Al(n.right),bottom:Al(n.bottom),left:Al(n.left)};else if(n instanceof ai)n.sb()?t={class:"go.Spot",x:Al(n.x),y:Al(n.y),offsetX:Al(n.offsetX),offsetY:Al(n.offsetY)}:t={class:"go.Spot",enum:n.toString()};else if(n instanceof ao){if(t={class:"go.Brush",type:n.type.name},n.type===vh?t.color=n.color:(n.type===eh||n.type===Ru)&&(t.start=n.start,t.end=n.end,n.type===Ru&&(n.startRadius!==0&&(t.startRadius=Al(n.startRadius)),isNaN(n.endRadius)||(t.endRadius=Al(n.endRadius)))),n.colorStops!==null){var i={};for(n=n.colorStops.iterator;n.next();)i[n.key]=n.value;t.colorStops=i}}else n instanceof Dn?(t={class:"go.Geometry",type:n.type.name},n.startX!==0&&(t.startX=Al(n.startX)),n.startY!==0&&(t.startY=Al(n.startY)),n.endX!==0&&(t.endX=Al(n.endX)),n.endY!==0&&(t.endY=Al(n.endY)),n.spot1.D(Jo)||(t.spot1=n.spot1),n.spot2.D(Bo)||(t.spot2=n.spot2),n.type===Dn.o&&(t.path=Dn.ia(n))):n instanceof Yt&&(t={class:"go.EnumValue",classType:Hp(e,n.classType),name:n.name});i="{",n=!0;for(var r in t){var o=Fa(t,r);if(!R1(r,o))if(n?n=!1:i+=",",i+=e.quote(r)+":",r==="points"&&o instanceof qt){var a="[";for(o=o.iterator;o.next();){var l=o.value;1<a.length&&(a+=","),a+=e.sm(l.x),a+=",",a+=e.sm(l.y)}a+="]",i+=a}else i+=e.sm(o)}return i+"}"}function kl(e){return typeof e=="number"?e:e==="NaN"?NaN:e==="9e9999"?1/0:e==="-9e9999"?-1/0:parseFloat(e)}function Wb(e){if(typeof e!="object")return e;var t=e.class||"";if(t==="NaN")return NaN;if(t==="Date")return new Date(e.value);if(t.indexOf("go.")!==0)return e;t=t.substr(3);var n=e;if(t==="Point")n=new he(kl(e.x),kl(e.y));else if(t==="Size")n=new pi(kl(e.width),kl(e.height));else if(t==="Rect")n=new Zt(kl(e.x),kl(e.y),kl(e.width),kl(e.height));else if(t==="Margin")n=new mi(kl(e.top),kl(e.right),kl(e.bottom),kl(e.left));else if(t==="Spot")typeof e.enum=="string"?n=hc(e.enum):n=new ai(kl(e.x),kl(e.y),kl(e.offsetX),kl(e.offsetY));else if(t==="Brush"){if(n=new ao,n.type=zi(ao,e.type),typeof e.color=="string"&&(n.color=e.color),e.start instanceof ai&&(n.start=e.start),e.end instanceof ai&&(n.end=e.end),typeof e.startRadius=="number"&&(n.startRadius=kl(e.startRadius)),typeof e.endRadius=="number"&&(n.endRadius=kl(e.endRadius)),e=e.colorStops,ot(e))for(var i in e)n.addColorStop(parseFloat(i),e[i])}else t==="Geometry"?(n=null,typeof e.path=="string"?n=Dn.parse(e.path):n=new Dn,n.type=zi(Dn,e.type),typeof e.startX=="number"&&(n.startX=kl(e.startX)),typeof e.startY=="number"&&(n.startY=kl(e.startY)),typeof e.endX=="number"&&(n.endX=kl(e.endX)),typeof e.endY=="number"&&(n.endY=kl(e.endY)),e.spot1 instanceof ai&&(n.spot1=e.spot1),e.spot2 instanceof ai&&(n.spot2=e.spot2)):t==="EnumValue"&&(i=e.classType,i.indexOf("go.")===0&&(i=i.substr(3)),i=xv(i),typeof i=="function"&&(n=zi(i,e.name)));return n}U.Pe=function(e){return this.Lt.add(e),this},U.ik=function(e){this.Lt.remove(e)},U.ds=function(e){this.skipsUndoManager||this.undoManager.Tu(e);for(var t=this.Lt,n=t.length,i=0;i<n;i++)t.M(i)(e)},U.cb=function(e,t,n,i,r,o,a){Qa(this,"",e,t,n,i,r,o,a)},U.g=function(e,t,n,i,r){Qa(this,"",So,e,this,t,n,i,r)},U.Fs=function(e,t,n,i,r,o){Qa(this,"",So,t,e,n,i,r,o)};function Qa(e,t,n,i,r,o,a,l,u){l===void 0&&(l=null),u===void 0&&(u=null);var f=new Ro;f.model=e,f.change=n,f.modelChange=t,f.propertyName=i,f.object=r,f.oldValue=o,f.oldParam=l,f.newValue=a,f.newParam=u,e.ds(f)}di.prototype.changeState=function(e,t){if(e!==null&&e.model===this)if(e.change===So){var n=e.object,i=e.propertyName,r=e.I(t);i===this.nodeKeyProperty&&this.lb(n)&&(t=e.I(!t),t!==void 0&&this.kb.remove(t),r!==void 0&&this.kb.add(r,n)),Xo(n,i,r)}else e.change===Ko?(n=e.newParam,e.modelChange==="nodeDataArray"?(e=e.newValue,ot(e)&&typeof n=="number"&&(i=this.wa(e),t?(this.Tc[n]===e&&L(this.Tc,n),i!==void 0&&this.kb.remove(i)):(this.Tc[n]!==e&&je(this.Tc,n,e),i!==void 0&&this.kb.add(i,e)))):e.modelChange===""?((i=e.object)&&!fn(i)&&e.propertyName&&(i=Fa(e.object,e.propertyName)),fn(i)&&typeof n=="number"&&(e=e.newValue,t?L(i,n):je(i,n,e))):Ve("unknown ChangedEvent.Insert modelChange: "+e.toString())):e.change===la?(n=e.oldParam,e.modelChange==="nodeDataArray"?(e=e.oldValue,ot(e)&&typeof n=="number"&&(i=this.wa(e),t?(this.Tc[n]!==e&&je(this.Tc,n,e),i!==void 0&&this.kb.add(i,e)):(this.Tc[n]===e&&L(this.Tc,n),i!==void 0&&this.kb.remove(i)))):e.modelChange===""?((i=e.object)&&!fn(i)&&e.propertyName&&(i=Fa(e.object,e.propertyName)),fn(i)&&typeof n=="number"&&(e=e.oldValue,t?je(i,n,e):L(i,n))):Ve("unknown ChangedEvent.Remove modelChange: "+e.toString())):e.change!==vs&&Ve("unknown ChangedEvent: "+e.toString())},di.prototype.Ea=function(e){return this.undoManager.Ea(e)},di.prototype.eb=function(e){return this.undoManager.eb(e)},di.prototype.Kf=function(){return this.undoManager.Kf()},di.prototype.commit=function(e,t){t===void 0&&(t="");var n=this.skipsUndoManager;t===null&&(this.skipsUndoManager=!0,t=""),this.undoManager.Ea(t);var i=!1;try{e(this),i=!0}finally{i?this.undoManager.eb(t):this.undoManager.Kf(),this.skipsUndoManager=n}},U=di.prototype,U.La=function(e,t){t===void 0&&(t=""),Qa(this,"SourceChanged",vs,t,e,null,null)},U.wa=function(e){if(e!==null){var t=this.Th;if(t!==""&&(t=Fa(e,t),t!==void 0)){if(Zh(t))return t;Ve("Key value for node data "+e+" is not a number or a string: "+t)}}},U.km=function(e,t){if(e!==null){var n=this.Th;if(n!=="")if(this.lb(e)){var i=Fa(e,n);i!==t&&this.hc(t)===null&&(Xo(e,n,t),i!==void 0&&this.kb.remove(i),this.kb.add(t,e),Qa(this,"nodeKey",So,n,e,i,t),typeof n=="string"&&this.La(e,n),this.jp(i,t))}else Xo(e,n,t)}};function Zh(e){return typeof e=="number"||typeof e=="string"}U.lb=function(e){var t=this.wa(e);return t===void 0?!1:this.kb.I(t)===e},U.hc=function(e){return e===null&&Ve("Model.findNodeDataForKey:key must not be null"),e!==void 0&&Zh(e)?this.kb.I(e):null},U.$u=function(e){if(e!==null){var t=this.Th;if(t!==""){var n=this.wa(e);if(n===void 0||this.kb.contains(n)){var i=this.bl;if(i!==null&&(n=i(this,e),n!=null&&!this.kb.contains(n))){Xo(e,t,n);return}if(typeof n=="string"){for(i=2;this.kb.contains(n+i);)i++;Xo(e,t,n+i)}else if(n===void 0||typeof n=="number"){for(n=-this.kb.count-1;this.kb.contains(n);)n--;Xo(e,t,n)}}}}},U.xf=function(e){e!==null&&(Yr(e),this.lb(e)||D1(this,e,!0))};function D1(e,t,n){var i=e.wa(t);(i===void 0||e.kb.I(i)!==t)&&(e.$u(t),i=e.wa(t),i===void 0&&Ve("Model.makeNodeDataKeyUnique failed on "+t+". Data not added to Model."),e.kb.add(i,t),i=null,n&&(i=e.Tc.length,je(e.Tc,i,t)),Qa(e,"nodeDataArray",Ko,"nodeDataArray",e,null,t,null,i),e.fm(t),e.em(t))}U.Fy=function(e){if(fn(e))for(var t=e.length,n=0;n<t;n++)this.xf(e[n]);else for(e=e.iterator;e.next();)this.xf(e.value)},U.cm=function(e){e!==null&&P1(this,e,!0)};function P1(e,t,n){var i=e.wa(t);if(i!==void 0&&e.kb.remove(i),i=null,n){e:if(n=e.Tc,Array.isArray(n))i=n.indexOf(t);else{i=n.length;for(var r=0;r<i;r++)if(n[r]===t){i=r;break e}i=-1}if(0>i)return;L(e.Tc,i)}Qa(e,"nodeDataArray",la,"nodeDataArray",e,t,null,i,null),e.qp(t)}U.nA=function(e){if(fn(e))for(var t=e.length,n=0;n<t;n++)this.cm(e[n]);else for(e=e.iterator;e.next();)this.cm(e.value)},U.$z=function(e){if(e!==this.nodeDataArray&&fn(e)){var t=this.kl;t.clear(),t.addAll(this.kb.iteratorKeys);var n=this.il;n.clear();for(var i=e.length,r=0;r<i;r++){var o=e[r],a=this.wa(o);if(a!==void 0){n.add(a);var l=this.hc(a);l!==o&&(l!==null?(this.Do(l,o),this.lm(o,l)):(o=this.cloneDeep(o),this.km(o,a),this.xf(o)))}else a=this.cloneDeep(o),this.xf(a),n.add(this.wa(a))}for(e=t.iterator;e.next();)i=e.value,n.contains(i)||(i=this.hc(i))&&this.cm(i);t.clear(),n.clear()}},U.jp=function(e,t){t!==void 0&&(e=Up(this,e),e instanceof Xt&&this.Vf.add(t,e))},U.Lv=function(){},U.fm=function(){},U.em=function(){},U.qp=function(){};function mc(e,t,n){if(t!==void 0){var i=e.Vf.I(t);i===null&&(i=new Xt,e.Vf.add(t,i)),i.add(n)}}function gc(e,t,n){if(t!==void 0){var i=e.Vf.I(t);i instanceof Xt&&(n==null?e.Vf.remove(t):(i.remove(n),i.count===0&&e.Vf.remove(t)))}}function Up(e,t){return t===void 0?null:(e=e.Vf.I(t),e instanceof Xt?e:null)}U.Qy=function(e){e===void 0?this.Vf.clear():this.Vf.remove(e)},di.prototype.copyNodeData=function(e){if(e===null)return null;var t=this.Bk;return e=t!==null?t(e,this):Sm(this,e,!0),ot(e)&&Li(e),e};function Sm(e,t,n){if(e.copiesArrays&&Array.isArray(t)){var i=[];for(n=0;n<t.length;n++){var r=Sm(e,t[n],e.copiesArrayObjects);i.push(r)}return Li(i),i}if(n&&ot(t)){n=(n=t.constructor)?new n:{},r=e.copiesKey||typeof e.nodeKeyProperty!="string"?null:e.nodeKeyProperty;for(i in t)if(i==="__gohashid")n.__gohashid=void 0;else if(i===r)n[r]=void 0;else{var o=Fa(t,i),a=Hp(e,o);a==="GraphObject"||a==="Diagram"||a==="Layer"||a==="RowColumnDefinition"||a==="AnimationManager"||a==="Tool"||a==="CommandHandler"||a==="Layout"||a==="InputEvent"||a==="DiagramEvent"||o instanceof di||o instanceof yo||o instanceof La||o instanceof Ro||(o=Sm(e,o,!1)),Xo(n,i,o)}return Li(n),n}return t instanceof he||t instanceof pi||t instanceof Zt||t instanceof ai||t instanceof mi?t.copy():t}di.prototype.setDataProperty=function(e,t,n){if(this.lb(e)){if(t===this.nodeKeyProperty){this.km(e,n);return}if(t===this.nodeCategoryProperty){this.jm(e,n);return}}else!F1&&e instanceof st&&(F1=!0,Wn('Model.setDataProperty is modifying a GraphObject, "'+e.toString()+'"'),Wn(" Is that really your intent?"));var i=Fa(e,t);i!==n&&(Xo(e,t,n),this.Fs(e,t,i,n))},U=di.prototype,U.set=function(e,t,n){this.setDataProperty(e,t,n)},U.Do=function(e,t){if(t){var n=this.lb(e),i;for(i in t)i==="__gohashid"||n&&i===this.nodeKeyProperty||this.setDataProperty(e,i,t[i])}},U.Ay=function(e,t){this.ts(e,-1,t)},U.ts=function(e,t,n){0>t&&(t=e.length),je(e,t,n),Qa(this,"",Ko,"",e,null,n,null,t)},U.ov=function(e,t){t===void 0&&(t=-1),e===this.Tc&&Ve("Model.removeArrayItem should not be called on the Model.nodeDataArray"),t===-1&&(t=e.length-1);var n=e[t];L(e,t),Qa(this,"",la,"",e,n,null,t,null)},U.Ro=function(e){if(e===null)return"";var t=this.lj;if(t===""||(t=Fa(e,t),t===void 0))return"";if(typeof t=="string")return t;Ve("getCategoryForNodeData found a non-string category for "+e+": "+t)},U.jm=function(e,t){if(e!==null){var n=this.lj;if(n!=="")if(this.lb(e)){var i=Fa(e,n);i===void 0&&(i=""),i!==t&&(Xo(e,n,t),Qa(this,"nodeCategory",So,n,e,i,t))}else Xo(e,n,t)}},U.lm=function(e,t){this.jm(t,this.Ro(e))},U.Tl=function(){return!1},U.Wj=function(){return!1},U.ri=function(){return!1},U.xs=function(){return!1},U.Xj=function(){return!1};function bv(){return new di}function Hp(e,t){if(typeof t=="function"){if(t.className)return t.className;if(t.name)return t.name}else if(typeof t=="object"&&t!==null&&t.constructor)return Hp(e,t.constructor);return typeof t}function xv(e){return oc[e]?oc[e]:Ke.go!==void 0&&Ke.go[e]?Ke.go[e]:null}function Fa(e,t){if(!e||!t)return null;try{if(typeof t=="function")var n=t(e);else typeof e.getAttribute=="function"?(n=e.getAttribute(t),n===null&&(n=void 0)):n=e[t]}catch(i){}return n}function Xo(e,t,n){if(e&&t)try{typeof t=="function"?t(e,n):typeof e.setAttribute=="function"?e.setAttribute(t,n):e[t]=n}catch(i){}}ht.Object.defineProperties(di.prototype,{name:{get:function(){return this.xa},set:function(e){var t=this.xa;t!==e&&(this.xa=e,this.g("name",t,e))}},dataFormat:{get:function(){return this.Sm},set:function(e){var t=this.Sm;t!==e&&(this.Sm=e,this.g("dataFormat",t,e))}},isReadOnly:{get:function(){return this.Gg},set:function(e){var t=this.Gg;t!==e&&(this.Gg=e,this.g("isReadOnly",t,e))}},modelData:{get:function(){return this.j},set:function(e){var t=this.j;t!==e&&(this.j=e,this.g("modelData",t,e),this.La(e))}},undoManager:{get:function(){return this.o},set:function(e){var t=this.o;t!==e&&(t!==null&&t.Rx(this),this.o=e,e!==null&&e.Xw(this))}},skipsUndoManager:{get:function(){return this.Wg},set:function(e){this.Wg=e}},nodeKeyProperty:{get:function(){return this.Th},set:function(e){var t=this.Th;t!==e&&(e===""&&Ve("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&Ve("Cannot set Model.nodeKeyProperty when there is existing node data"),this.Th=e,this.g("nodeKeyProperty",t,e))}},makeUniqueKeyFunction:{get:function(){return this.bl},set:function(e){var t=this.bl;t!==e&&(this.bl=e,this.g("makeUniqueKeyFunction",t,e))}},nodeDataArray:{get:function(){return this.Tc},set:function(e){var t=this.Tc;if(t!==e){this.kb.clear(),this.Lv();for(var n=e.length,i=0;i<n;i++){var r=e[i];ot(r)||Ve("Model.nodeDataArray must only contain Objects, not: "+r),Yr(r)}for(this.Tc=e,i=new qt,r=0;r<n;r++){var o=e[r],a=this.wa(o);a===void 0||this.kb.I(a)!==null?i.add(o):this.kb.add(a,o)}for(i=i.iterator;i.next();)r=i.value,this.$u(r),o=this.wa(r),o!==void 0&&this.kb.add(o,r);for(Qa(this,"nodeDataArray",So,"nodeDataArray",this,t,e),t=0;t<n;t++)i=e[t],this.fm(i),this.em(i);Array.isArray(e)||(this.isReadOnly=!0)}}},copyNodeDataFunction:{get:function(){return this.Bk},set:function(e){var t=this.Bk;t!==e&&(this.Bk=e,this.g("copyNodeDataFunction",t,e))}},copiesArrays:{get:function(){return this.Km},set:function(e){var t=this.Km;t!==e&&(this.Km=e,this.g("copiesArrays",t,e))}},copiesArrayObjects:{get:function(){return this.Jm},set:function(e){var t=this.Jm;t!==e&&(this.Jm=e,this.g("copiesArrayObjects",t,e))}},copiesKey:{get:function(){return this.Mm},set:function(e){var t=this.Mm;t!==e&&(this.Mm=e,this.g("copiesKey",t,e))}},afterCopyFunction:{get:function(){return this.xm},set:function(e){var t=this.xm;t!==e&&(this.xm=e,this.g("afterCopyFunction",t,e))}},nodeCategoryProperty:{get:function(){return this.lj},set:function(e){var t=this.lj;t!==e&&(this.lj=e,this.g("nodeCategoryProperty",t,e))}},type:{get:function(){return"Model"}}}),di.prototype.setCategoryForNodeData=di.prototype.jm,di.prototype.getCategoryForNodeData=di.prototype.Ro,di.prototype.removeArrayItem=di.prototype.ov,di.prototype.insertArrayItem=di.prototype.ts,di.prototype.addArrayItem=di.prototype.Ay,di.prototype.assignAllDataProperties=di.prototype.Do,di.prototype.set=di.prototype.set,di.prototype.clearUnresolvedReferences=di.prototype.Qy,di.prototype.mergeNodeDataArray=di.prototype.$z,di.prototype.removeNodeDataCollection=di.prototype.nA,di.prototype.removeNodeData=di.prototype.cm,di.prototype.addNodeDataCollection=di.prototype.Fy,di.prototype.addNodeData=di.prototype.xf,di.prototype.makeNodeDataKeyUnique=di.prototype.$u,di.prototype.findNodeDataForKey=di.prototype.hc,di.prototype.containsNodeData=di.prototype.lb,di.prototype.setKeyForNodeData=di.prototype.km,di.prototype.getKeyForNodeData=di.prototype.wa,di.prototype.updateTargetBindings=di.prototype.La,di.prototype.commit=di.prototype.commit,di.prototype.rollbackTransaction=di.prototype.Kf,di.prototype.commitTransaction=di.prototype.eb,di.prototype.startTransaction=di.prototype.Ea,di.prototype.raiseDataChanged=di.prototype.Fs,di.prototype.raiseChanged=di.prototype.g,di.prototype.raiseChangedEvent=di.prototype.cb,di.prototype.removeChangedListener=di.prototype.ik,di.prototype.addChangedListener=di.prototype.Pe,di.prototype.writeJsonValue=di.prototype.sm,di.prototype.replaceJsonObjects=di.prototype.dm,di.prototype.applyIncrementalJSON=di.prototype.Ky,di.prototype.applyIncrementalJson=di.prototype.Zw,di.prototype.toJSON=di.prototype.toJSON,di.prototype.toJson=di.prototype.np,di.prototype.toIncrementalJSON=di.prototype.yA,di.prototype.toIncrementalJson=di.prototype.$x,di.prototype.toIncrementalData=di.prototype.xA,di.prototype.clear=di.prototype.clear;var F1=!1,oc={};di.className="Model",di.fromJSON=di.fromJson=function(e,t){t===void 0&&(t=null);var n=null;if(typeof e=="string")try{n=Ke.JSON.parse(e)}catch(o){}else typeof e=="object"?n=e:Ve("Unable to construct a Model from: "+e);if(t===null){e=null;var i=n.class;if(typeof i=="string")try{var r=null;i.indexOf("go.")===0?(i=i.substr(3),r=xv(i)):(r=xv(i),r===null&&(r=Ke[i])),typeof r=="function"&&(e=new r)}catch(o){}e===null||e instanceof di?t=e:Ve("Unable to construct a Model of declared class: "+n.class)}return t===null&&(t=di.constructGraphLinksModel()),t.gp(n),t.kv(n),t},di.safePropertyValue=Fa,di.safePropertySet=Xo,oc.Brush=ao,oc.ChangedEvent=Ro,oc.Geometry=Dn,oc.Margin=mi,oc.Panel=kn,oc.Point=he,oc.Rect=Zt,oc.Size=pi,oc.Spot=ai,oc.Transaction=La,oc.UndoManager=yo;function Ba(e,t,n,i){Li(this),this._isFrozen=!1,e===void 0&&(e=""),t===void 0&&(t=e),n===void 0&&(n=null),this.j=-1,this.xd=null,this.xl=e,this.wl=this.to=0,this.Cr=null,this.wn=!1,this.sl=t,this.Im=n,i===void 0?(this.el=_1,this.wk=null):(this.el=$p,this.wk=i),this.st=new Xt}Ba.prototype.copy=function(){var e=new Ba;return e.xl=this.xl,e.to=this.to,e.wl=this.wl,e.Cr=this.Cr,e.wn=this.wn,e.sl=this.sl,e.Im=this.Im,e.el=this.el,e.wk=this.wk,e},U=Ba.prototype,U.qb=function(e){e.classType===Ba&&(this.mode=e)},U.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},U.freeze=function(){return this._isFrozen=!0,this},U.ka=function(){return this._isFrozen=!1,this},U.Kx=function(e){return e===void 0&&(e=null),this.mode=$p,this.backConverter=e,this},U.cp=function(e){return e===void 0&&(e=""),this.sourceName=e,this.isToModel=!1,this},U.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function B1(e,t,n){return e=e.sourceName,e===null||e===""?t:e==="/"?n.part:e==="."?n:e===".."?n.panel:t.fb(e)}U.Mv=function(e,t,n){var i=this.sl;if(n===void 0||i===""||i===n){n=this.xl;var r=this.Im;if(r===null&&n==="")Wn("Binding error: target property is the empty string: "+this.toString());else{var o=t;if(i!==""&&(o=Fa(t,i)),o!==void 0)if(r===null)n!==""&&Xo(e,n,o);else try{if(n!==""){var a=r(o,e);Xo(e,n,a)}else r(o,e)}catch(l){}}}},U.sp=function(e,t,n,i){if(this.el===$p){var r=this.xl;if(n===void 0||r===n){n=this.sl;var o=this.wk,a=e;if(r!==""&&(a=Fa(e,r)),a!==void 0&&!this.st.contains(e))try{this.st.add(e);var l=i!==null?i.diagram:null,u=l!==null?l.model:null;if(o===null){if(n!=="")u!==null?u.setDataProperty(t,n,a):Xo(t,n,a);else if(u!==null&&i!==null&&0<=i.itemIndex&&i.panel!==null&&Array.isArray(i.panel.itemArray)){var f=i.itemIndex,p=i.panel.itemArray;u.ov(p,f),u.ts(p,f,a)}}else try{if(n!==""){var x=o(a,t,u);u!==null?u.setDataProperty(t,n,x):Xo(t,n,x)}else{var N=o(a,t,u);if(N!==void 0&&u!==null&&i!==null&&0<=i.itemIndex&&i.panel!==null&&Array.isArray(i.panel.itemArray)){var R=i.itemIndex,_=i.panel.itemArray;u.ov(_,R),u.ts(_,R,N)}}}catch(V){}}finally{this.st.remove(e)}}}},ht.Object.defineProperties(Ba.prototype,{Ai:{get:function(){return this.j},set:function(e){this._isFrozen&&Ut(this),this.j=e}},targetProperty:{get:function(){return this.xl},set:function(e){this._isFrozen&&Ut(this),this.xl=e}},sourceName:{get:function(){return this.Cr},set:function(e){this._isFrozen&&Ut(this),this.Cr=e,e!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(e){this._isFrozen&&Ut(this),this.wn=e}},sourceProperty:{get:function(){return this.sl},set:function(e){this._isFrozen&&Ut(this),this.sl=e}},converter:{get:function(){return this.Im},set:function(e){this._isFrozen&&Ut(this),this.Im=e}},backConverter:{get:function(){return this.wk},set:function(e){this._isFrozen&&Ut(this),this.wk=e}},mode:{get:function(){return this.el},set:function(e){this._isFrozen&&Ut(this),this.el=e}}}),Ba.prototype.updateSource=Ba.prototype.sp,Ba.prototype.updateTarget=Ba.prototype.Mv,Ba.prototype.ofModel=Ba.prototype.dA,Ba.prototype.ofObject=Ba.prototype.cp,Ba.prototype.makeTwoWay=Ba.prototype.Kx;var Vb="Binding",_1=new Yt(Ba,"OneWay",1),$p=new Yt(Ba,"TwoWay",2);Ba.className="Binding",Ba.parseEnum=function(e,t){return function(n){return n=zi(e,n),n===null?t:n}},Ba.toString=xn,Ba.OneWay=_1,Ba.TwoWay=$p;function Ur(e,t,n){di.call(this),this.Vv=`,
"insertedLinkKeys": `,this.iy=`,
"modifiedLinkData": `,this.Xv=`,
"removedLinkKeys": `,this.md=[],this.$f=new Xt,this.wb=new Zn,this.Jh="",this.Ri=this.Ak=this.cl=null,this.lf="from",this.mf="to",this.fj=this.ej="",this.dj="category",this.je="",this.jl="isGroup",this.Je="group",this.Lm=!1,t!==void 0&&(this.linkDataArray=t),e!==void 0&&(fn(e)?this.nodeDataArray=e:n=e),n&&(Object.assign(this,n),e=n.Changed)&&(delete this.Changed,this.Pe(e))}yi(Ur,di),Ur.constructGraphLinksModel=di.constructGraphLinksModel,Ur.prototype.cloneProtected=function(e){di.prototype.cloneProtected.call(this,e),e.Jh=this.Jh,e.cl=this.cl,e.Ak=this.Ak,e.lf=this.lf,e.mf=this.mf,e.ej=this.ej,e.fj=this.fj,e.dj=this.dj,e.je=this.je,e.jl=this.jl,e.Je=this.Je,e.Lm=this.Lm},U=Ur.prototype,U.clear=function(){di.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},U.toString=function(e){if(e===void 0&&(e=0),2<=e)return this.np();var t=(this.name!==""?this.name:"")+" GraphLinksModel";if(0<e){t+=`
node data:`,e=this.nodeDataArray;var n=e.length,i;for(i=0;i<n;i++){var r=e[i];t+=" "+this.wa(r)+":"+xn(r)}for(t+=`
link data:`,e=this.linkDataArray,n=e.length,i=0;i<n;i++)r=e[i],t+=" "+Eu(this,r,!0)+"-->"+Eu(this,r,!1)}return t},U.Qv=function(e,t){this.linkKeyProperty===""&&Ve("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var n=di.prototype.Qv.call(this,e,t),i=this,r=new Xt,o=new Xt,a=new Xt,l=this.vh;e.changes.each(function(p){p.model===i&&(p.modelChange==="linkDataArray"?p.change===Ko?r.add(p.newValue):p.change===la&&a.add(p.oldValue):i.Jc(p.object)?o.add(p.object):p.object!==null&&(p.object!==null&&l&&l.contains(p.object)?l.get(p.object).each(function(x){i.Jc(x)&&o.add(x)}):p.object instanceof di||i.lb(p.object)||z1(i,p.object).each(function(x){o.add(x)})))});var u=this.il;u.clear(),r.each(function(p){u.add(i.Ac(p)),t||o.add(p)});var f=this.kl;return f.clear(),a.each(function(p){f.add(i.Ac(p)),t&&o.add(p)}),e=i.cloneDeep(o.Fa()),0<u.count&&(n===null&&(n={}),t?n.removedLinkKeys=u.Fa():n.insertedLinkKeys=u.Fa()),0<e.length&&(n===null&&(n={}),n.modifiedLinkData=e),0<f.count&&(n===null&&(n={}),t?n.insertedLinkKeys=f.Fa():n.removedLinkKeys=f.Fa()),f.clear(),u.clear(),n},U.rm=function(){var e=di.prototype.rm.call(this),t="";return this.linkCategoryProperty!=="category"&&typeof this.linkCategoryProperty=="string"&&(t+=`,
"linkCategoryProperty": `+this.quote(this.linkCategoryProperty)),this.linkKeyProperty!==""&&typeof this.linkKeyProperty=="string"&&(t+=`,
"linkKeyProperty": `+this.quote(this.linkKeyProperty)),this.linkFromKeyProperty!=="from"&&typeof this.linkFromKeyProperty=="string"&&(t+=`,
"linkFromKeyProperty": `+this.quote(this.linkFromKeyProperty)),this.linkToKeyProperty!=="to"&&typeof this.linkToKeyProperty=="string"&&(t+=`,
"linkToKeyProperty": `+this.quote(this.linkToKeyProperty)),this.linkFromPortIdProperty!==""&&typeof this.linkFromPortIdProperty=="string"&&(t+=`,
"linkFromPortIdProperty": `+this.quote(this.linkFromPortIdProperty)),this.linkToPortIdProperty!==""&&typeof this.linkToPortIdProperty=="string"&&(t+=`,
"linkToPortIdProperty": `+this.quote(this.linkToPortIdProperty)),this.linkLabelKeysProperty!==""&&typeof this.linkLabelKeysProperty=="string"&&(t+=`,
"linkLabelKeysProperty": `+this.quote(this.linkLabelKeysProperty)),this.nodeIsGroupProperty!=="isGroup"&&typeof this.nodeIsGroupProperty=="string"&&(t+=`,
"nodeIsGroupProperty": `+this.quote(this.nodeIsGroupProperty)),this.nodeGroupKeyProperty!=="group"&&typeof this.nodeGroupKeyProperty=="string"&&(t+=`,
"nodeGroupKeyProperty": `+this.quote(this.nodeGroupKeyProperty)),e+t},U.gp=function(e){di.prototype.gp.call(this,e),e.linkKeyProperty&&(this.linkKeyProperty=e.linkKeyProperty),e.linkFromKeyProperty&&(this.linkFromKeyProperty=e.linkFromKeyProperty),e.linkToKeyProperty&&(this.linkToKeyProperty=e.linkToKeyProperty),e.linkFromPortIdProperty&&(this.linkFromPortIdProperty=e.linkFromPortIdProperty),e.linkToPortIdProperty&&(this.linkToPortIdProperty=e.linkToPortIdProperty),e.linkCategoryProperty&&(this.linkCategoryProperty=e.linkCategoryProperty),e.linkLabelKeysProperty&&(this.linkLabelKeysProperty=e.linkLabelKeysProperty),e.nodeIsGroupProperty&&(this.nodeIsGroupProperty=e.nodeIsGroupProperty),e.nodeGroupKeyProperty&&(this.nodeGroupKeyProperty=e.nodeGroupKeyProperty)},U.Rv=function(){var e=di.prototype.Rv.call(this),t=`,
"linkDataArray": `+Kh(this,this.linkDataArray,!0);return e+t},U.kv=function(e){di.prototype.kv.call(this,e),e=e.linkDataArray,Array.isArray(e)&&(this.dm(e),this.linkDataArray=e)};function z1(e,t){for(var n=new Xt,i=0;i<e.linkDataArray.length;i++){var r=e.linkDataArray[i];xm(e,t,r,r,n)}return n}U.Pv=function(e,t){this.linkKeyProperty===""&&Ve("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var n=di.prototype.Pv.call(this,e,t),i=this,r=new Xt,o=new Xt,a=new Xt,l=this.vh;e.changes.each(function(p){p.model===i&&(p.modelChange==="linkDataArray"?p.change===Ko?r.add(p.newValue):p.change===la&&a.add(p.oldValue):i.Jc(p.object)?o.add(p.object):p.object!==null&&(p.object!==null&&l&&l.contains(p.object)?l.get(p.object).each(function(x){i.Jc(x)&&o.add(x)}):p.object instanceof di||i.lb(p.object)||z1(i,p.object).each(function(x){o.add(x)})))});var u=this.il;u.clear(),r.each(function(p){u.add(i.Ac(p)),t||o.add(p)});var f=this.kl;return f.clear(),a.each(function(p){f.add(i.Ac(p)),t&&o.add(p)}),e=n,0<u.count&&(e+=(t?this.Xv:this.Vv)+Kh(this,u.Fa(),!0)),0<o.count&&(e+=this.iy+Kh(this,o.Fa(),!0)),0<f.count&&(e+=(t?this.Vv:this.Xv)+Kh(this,f.Fa(),!0)),f.clear(),u.clear(),e},U.fp=function(e){(e.linkCategoryProperty!==void 0&&e.linkCategoryProperty!==this.linkCategoryProperty||e.linkKeyProperty!==void 0&&e.linkKeyProperty!==this.linkKeyProperty||e.linkFromKeyProperty!==void 0&&e.linkFromKeyProperty!==this.linkFromKeyProperty||e.linkToKeyProperty!==void 0&&e.linkToKeyProperty!==this.linkToKeyProperty||e.linkFromPortIdProperty!==void 0&&e.linkFromPortIdProperty!==this.linkFromPortIdProperty||e.linkToPortIdProperty!==void 0&&e.linkToPortIdProperty!==this.linkToPortIdProperty||e.linkLabelKeysProperty!==void 0&&e.linkLabelKeysProperty!==this.linkLabelKeysProperty||e.nodeIsGroupProperty!==void 0&&e.nodeIsGroupProperty!==this.nodeIsGroupProperty||e.nodeGroupKeyProperty!==void 0&&e.nodeGroupKeyProperty!==this.nodeGroupKeyProperty)&&Ve("applyIncrementalJson cannot change Model properties"),di.prototype.fp.call(this,e);var t=e.insertedLinkKeys;if(Array.isArray(t))for(var n=t.length,i=0;i<n;i++){var r=t[i],o=this.jh(r);o===null&&(o=this.Jo({}),this.Ks(o,r),this.fi(o))}if(t=e.modifiedLinkData,Array.isArray(t)){for(n=t.length,i=0;i<n;i++)if(r=t[i],o=this.Ac(r),o=this.jh(o),o!==null){for(var a in r)a!=="__gohashid"&&a!==this.linkKeyProperty&&this.setDataProperty(o,a,r[a]);$1(this,r,o)}}if(e=e.removedLinkKeys,Array.isArray(e))for(a=e.length,t=0;t<a;t++)n=this.jh(e[t]),n!==null&&this.bm(n)},Ur.prototype.changeState=function(e,t){if(e!==null&&e.model===this){if(e.change===So){var n=e.object,i=e.propertyName;if(i===this.linkKeyProperty&&this.Jc(n)){var r=e.I(t);t=e.I(!t),t!==void 0&&this.wb.remove(t),r!==void 0&&this.wb.add(r,n),Xo(n,i,r);return}}else if(e.change===Ko){if(n=e.newParam,e.modelChange==="linkDataArray"){e=e.newValue,ot(e)&&typeof n=="number"&&(i=this.Ac(e),t?(this.$f.remove(e),this.md[n]===e&&this.md.splice(n,1),i!==void 0&&this.wb.remove(i)):(this.$f.add(e),this.md[n]!==e&&this.md.splice(n,0,e),i!==void 0&&this.wb.add(i,e)));return}if(e.modelChange==="linkLabelKeys"){i=this.Ef(e.object),Array.isArray(i)&&typeof n=="number"&&(t?(n=i.indexOf(e.newValue),0<=n&&i.splice(n,1)):0>i.indexOf(e.newValue)&&i.splice(n,0,e.newValue));return}}else if(e.change===la){if(n=e.oldParam,e.modelChange==="linkDataArray"){e=e.oldValue,ot(e)&&typeof n=="number"&&(i=this.Ac(e),t?(this.$f.add(e),this.md[n]!==e&&this.md.splice(n,0,e),i!==void 0&&this.wb.add(i,e)):(this.$f.remove(e),this.md[n]===e&&this.md.splice(n,1),i!==void 0&&this.wb.remove(i)));return}if(e.modelChange==="linkLabelKeys"){i=this.Ef(e.object),Array.isArray(i)&&typeof n=="number"&&(t?0>i.indexOf(e.newValue)&&i.splice(n,0,e.newValue):(n=i.indexOf(e.newValue),0<=n&&i.splice(n,1)));return}}di.prototype.changeState.call(this,e,t)}},U=Ur.prototype,U.Vl=function(e){if(e!==void 0){var t=this.Ri;if(t!==null){var n=this.hc(e);n===null&&(n=this.copyNodeData(t),Xo(n,this.nodeKeyProperty,e),this.xf(n))}return e}},U.yx=function(e){return Eu(this,e,!0)},U.wv=function(e,t){Ff(this,e,t,!0)},U.Bx=function(e){return Eu(this,e,!1)},U.Bv=function(e,t){Ff(this,e,t,!1)};function Eu(e,t,n){if(t!==null&&(e=n?e.lf:e.mf,e!==""&&(e=Fa(t,e),e!==void 0))){if(Zh(e))return e;Ve((n?"FromKey":"ToKey")+" value for link data "+t+" is not a number or a string: "+e)}}function Ff(e,t,n,i){if(n===null&&(n=void 0),t!==null){var r=i?e.lf:e.mf;if(r!=="")if(n=e.Vl(n),e.Jc(t)){var o=Fa(t,r);o!==n&&(gc(e,o,t),Xo(t,r,n),e.hc(n)===null&&mc(e,n,t),Qa(e,i?"linkFromKey":"linkToKey",So,r,t,o,n),typeof r=="string"&&e.La(t,r))}else Xo(t,r,n)}}U.zx=function(e){return Em(this,e,!0)},U.xv=function(e,t){Bf(this,e,t,!0)},U.Cx=function(e){return Em(this,e,!1)},U.Cv=function(e,t){Bf(this,e,t,!1)};function Em(e,t,n){return t===null||(e=n?e.ej:e.fj,e==="")?"":(t=Fa(t,e),t===void 0?"":t)}function Bf(e,t,n,i){if(t!==null){var r=i?e.ej:e.fj;if(r!=="")if(e.Jc(t)){var o=Fa(t,r);o===void 0&&(o=""),o!==n&&(Xo(t,r,n),Qa(e,i?"linkFromPortId":"linkToPortId",So,r,t,o,n),typeof r=="string"&&e.La(t,r))}else Xo(t,r,n)}}U.Ef=function(e){if(e===null)return wm;var t=this.je;return t===""?wm:(e=Fa(e,t),e===void 0?wm:e)},U.Ls=function(e,t){if(e!==null){var n=this.je;if(n!=="")if(this.Jc(e)){var i=Fa(e,n);if(i===void 0&&(i=wm),i!==t){if(Array.isArray(i))for(var r=i.length,o=0;o<r;o++)gc(this,i[o],e);for(Xo(e,n,t),r=t.length,o=0;o<r;o++){var a=t[o];this.hc(a)===null&&mc(this,a,e)}Qa(this,"linkLabelKeys",So,n,e,i,t),typeof n=="string"&&this.La(e,n)}}else Xo(e,n,t)}},U.Bu=function(e,t){if(t!=null&&e!==null){var n=this.je;if(n!==""){var i=Fa(e,n);if(i===void 0)n=[],n.push(t),this.Ls(e,n);else if(Array.isArray(i)){var r=i.indexOf(t);0<=r||(r=i.length,i.push(t),this.Jc(e)&&(this.hc(t)===null&&mc(this,t,e),Qa(this,"linkLabelKeys",Ko,n,e,null,t,null,r)))}else Ve(n+" property is not an Array; cannot addLabelKeyForLinkData: "+e)}}},U.Qx=function(e,t){if(t!=null&&e!==null){var n=this.je;if(n!==""){var i=Fa(e,n);if(Array.isArray(i)){var r=i.indexOf(t);0>r||(i.splice(r,1),this.Jc(e)&&(gc(this,t,e),Qa(this,"linkLabelKeys",la,n,e,t,null,r,null)))}else i!==void 0&&Ve(n+" property is not an Array; cannot removeLabelKeyforLinkData: "+e)}}},U.Ac=function(e){if(e!==null){var t=this.Jh;if(t!==""&&(t=Fa(e,t),t!==void 0)){if(Zh(t))return t;Ve("Key value for link data "+e+" is not a number or a string: "+t)}}},U.Ks=function(e,t){if(e!==null){var n=this.Jh;if(n!=="")if(this.Jc(e)){var i=Fa(e,n);i!==t&&this.jh(t)===null&&(Xo(e,n,t),i!==void 0&&this.wb.remove(i),this.wb.add(t,e),Qa(this,"linkKey",So,n,e,i,t),typeof n=="string"&&this.La(e,n))}else Xo(e,n,t)}},U.jh=function(e){return e===null&&Ve("GraphLinksModel.findLinkDataForKey:key must not be null"),e!==void 0&&Zh(e)?this.wb.I(e):null},U.Bs=function(e){if(e!==null){var t=this.Jh;if(t!==""){var n=this.Ac(e);if(n===void 0||this.wb.contains(n)){var i=this.cl;if(i!==null&&(n=i(this,e),n!=null&&!this.wb.contains(n))){Xo(e,t,n);return}if(typeof n=="string"){for(i=2;this.wb.contains(n+i);)i++;Xo(e,t,n+i)}else if(n===void 0||typeof n=="number"){for(n=-this.wb.count-1;this.wb.contains(n);)n--;Xo(e,t,n)}}}}},U.Jc=function(e){return e===null?!1:this.$f.contains(e)},U.fi=function(e){e!==null&&(Yr(e),this.Jc(e)||U1(this,e,!0))};function U1(e,t,n){if(e.linkKeyProperty!==""){var i=e.Ac(t);if(i!==void 0&&e.wb.I(i)===t)return;e.Bs(t),i=e.Ac(t),i===void 0&&Ve("GraphLinksModel.makeLinkDataKeyUnique failed on "+t+". Data not added to model."),e.wb.add(i,t)}e.$f.add(t),i=null,n&&(i=e.md.length,e.md.splice(i,0,t)),Qa(e,"linkDataArray",Ko,"linkDataArray",e,null,t,null,i),Sv(e,t)}U.Ey=function(e){if(Array.isArray(e))for(var t=e.length,n=0;n<t;n++)this.fi(e[n]);else for(e=e.iterator;e.next();)this.fi(e.value)},U.bm=function(e){e!==null&&H1(this,e,!0)};function H1(e,t,n){e.$f.remove(t);var i=e.Ac(t);if(i!==void 0&&e.wb.remove(i),i=null,n){if(i=e.md.indexOf(t),0>i)return;e.md.splice(i,1)}if(Qa(e,"linkDataArray",la,"linkDataArray",e,t,null,i,null),n=Eu(e,t,!0),gc(e,n,t),n=Eu(e,t,!1),gc(e,n,t),i=e.Ef(t),Array.isArray(i))for(var r=i.length,o=0;o<r;o++)n=i[o],gc(e,n,t)}U.lA=function(e){if(Array.isArray(e))for(var t=e.length,n=0;n<t;n++)this.bm(e[n]);else for(e=e.iterator;e.next();)this.bm(e.value)},U.Zz=function(e){if(this.linkKeyProperty===""&&Ve("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),e!==this.linkDataArray&&fn(e)){var t=this.kl;t.clear(),t.addAll(this.wb.iteratorKeys);var n=this.il;n.clear();for(var i=e.length,r=0;r<i;r++){var o=e[r],a=this.Ac(o);if(a!==void 0){n.add(a);var l=this.jh(a);l!==o&&(l!==null?(this.Do(l,o),$1(this,o,l)):(o=this.cloneDeep(o),this.Ks(o,a),this.fi(o)))}else a=this.cloneDeep(o),this.fi(a),n.add(this.Ac(a))}for(e=t.iterator;e.next();)i=e.value,n.contains(i)||(i=this.jh(i))&&this.bm(i);t.clear(),n.clear()}};function Sv(e,t){var n=Eu(e,t,!0);n=e.Vl(n),e.hc(n)===null&&mc(e,n,t),n=Eu(e,t,!1),n=e.Vl(n),e.hc(n)===null&&mc(e,n,t);var i=e.Ef(t);if(Array.isArray(i))for(var r=i.length,o=0;o<r;o++)n=i[o],e.hc(n)===null&&mc(e,n,t)}U.Jo=function(e){if(e===null)return null;var t=this.Ak;return e=t!==null?t(e,this):Sm(this,e,!0),ot(e)&&(Li(e),this.lf!==""&&Xo(e,this.lf,void 0),this.mf!==""&&Xo(e,this.mf,void 0),this.je!==""&&Xo(e,this.je,[])),e},U.Yu=function(e){if(e===null)return!1;var t=this.jl;return t===""?!1:!!Fa(e,t)},U.lh=function(e){if(e!==null){var t=this.Je;if(t!==""&&(t=Fa(e,t),t!==void 0)){if(Zh(t))return t;Ve("GroupKey value for node data "+e+" is not a number or a string: "+t)}}},U.mp=function(e,t){if(t===null&&(t=void 0),e!==null){var n=this.Je;if(n!=="")if(this.lb(e)){var i=Fa(e,n);i!==t&&(gc(this,i,e),Xo(e,n,t),this.hc(t)===null&&mc(this,t,e),Qa(this,"nodeGroupKey",So,n,e,i,t),typeof n=="string"&&this.La(e,n))}else Xo(e,n,t)}},Ur.prototype.copyNodeData=function(e){return e===null?null:(e=di.prototype.copyNodeData.call(this,e),this.Ij||this.Je===""||Fa(e,this.Je)===void 0||Xo(e,this.Je,void 0),e)},Ur.prototype.setDataProperty=function(e,t,n){if(this.lb(e)){if(t===this.nodeKeyProperty){this.km(e,n);return}if(t===this.nodeCategoryProperty){this.jm(e,n);return}if(t===this.nodeGroupKeyProperty){this.mp(e,n);return}}else if(this.Jc(e)){if(t===this.linkFromKeyProperty){Ff(this,e,n,!0);return}if(t===this.linkToKeyProperty){Ff(this,e,n,!1);return}if(t===this.linkFromPortIdProperty){Bf(this,e,n,!0);return}if(t===this.linkToPortIdProperty){Bf(this,e,n,!1);return}if(t===this.linkKeyProperty){this.Ks(e,n);return}if(t===this.linkCategoryProperty){this.lp(e,n);return}if(t===this.linkLabelKeysProperty){this.Ls(e,n);return}}var i=Fa(e,t);i!==n&&(Xo(e,t,n),this.Fs(e,t,i,n))},U=Ur.prototype,U.Do=function(e,t){if(t){var n=this.lb(e),i=this.Jc(e),r;for(r in t)r==="__gohashid"||n&&r===this.nodeKeyProperty||n&&r===this.nodeIsGroupProperty&&Fa(e,r)===t[r]||i&&r===this.linkKeyProperty||this.setDataProperty(e,r,t[r])}},U.jp=function(e,t){di.prototype.jp.call(this,e,t);for(var n=this.kb.iterator;n.next();)this.qv(n.value,e,t);for(n=this.$f.iterator;n.next();){var i=n.value,r=e,o=t;if(Eu(this,i,!0)===r){var a=this.lf;Xo(i,a,o),Qa(this,"linkFromKey",So,a,i,r,o),typeof a=="string"&&this.La(i,a)}if(Eu(this,i,!1)===r&&(a=this.mf,Xo(i,a,o),Qa(this,"linkToKey",So,a,i,r,o),typeof a=="string"&&this.La(i,a)),a=this.Ef(i),Array.isArray(a))for(var l=a.length,u=this.je,f=0;f<l;f++)a[f]===r&&(a[f]=o,Qa(this,"linkLabelKeys",Ko,u,i,r,o,f,f))}},U.qv=function(e,t,n){if(this.lh(e)===t){var i=this.Je;Xo(e,i,n),Qa(this,"nodeGroupKey",So,i,e,t,n),typeof i=="string"&&this.La(e,i)}},U.Lv=function(){di.prototype.Lv.call(this);for(var e=this.linkDataArray,t=e.length,n=0;n<t;n++)Sv(this,e[n])},U.fm=function(e){di.prototype.fm.call(this,e),e=this.wa(e);var t=Up(this,e);if(t!==null){var n=Rt();for(t=t.iterator;t.next();){var i=t.value;if(this.lb(i)){if(this.lh(i)===e){var r=this.Je;Qa(this,"nodeGroupKey",So,r,i,e,e),typeof r=="string"&&this.La(i,r),n.push(i)}}else if(Eu(this,i,!0)===e&&(r=this.lf,Qa(this,"linkFromKey",So,r,i,e,e),typeof r=="string"&&this.La(i,r),n.push(i)),Eu(this,i,!1)===e&&(r=this.mf,Qa(this,"linkToKey",So,r,i,e,e),typeof r=="string"&&this.La(i,r),n.push(i)),r=this.Ef(i),Array.isArray(r))for(var o=r.length,a=this.je,l=0;l<o;l++)r[l]===e&&(Qa(this,"linkLabelKeys",Ko,a,i,e,e,l,l),n.push(i))}for(t=0;t<n.length;t++)gc(this,e,n[t]);Jt(n)}},U.em=function(e){di.prototype.em.call(this,e);var t=this.lh(e);this.hc(t)===null&&mc(this,t,e)},U.qp=function(e){di.prototype.qp.call(this,e);var t=this.lh(e);gc(this,t,e)},U.ps=function(e){if(e===null)return"";var t=this.dj;if(t===""||(t=Fa(e,t),t===void 0))return"";if(typeof t=="string")return t;Ve("getCategoryForLinkData found a non-string category for "+e+": "+t)},Ur.prototype.getLinkCategoryForData=function(e){return this.ps(e)},Ur.prototype.lp=function(e,t){if(e!==null){var n=this.dj;if(n!=="")if(this.Jc(e)){var i=Fa(e,n);i===void 0&&(i=""),i!==t&&(Xo(e,n,t),Qa(this,"linkCategory",So,n,e,i,t),typeof n=="string"&&this.La(e,n))}else Xo(e,n,t)}},Ur.prototype.setLinkCategoryForData=function(e,t){this.lp(e,t)},U=Ur.prototype,U.lm=function(e,t){di.prototype.lm.call(this,e,t),this.mp(t,this.lh(e))};function $1(e,t,n){e.lp(n,e.ps(t)),e.wv(n,e.yx(t)),e.Bv(n,e.Bx(t)),e.Ls(n,e.Ef(t)),e.xv(n,e.zx(t)),e.Cv(n,e.Cx(t))}U.Wj=function(){return!0},U.ri=function(){return!0},U.xs=function(){return!0},U.Xj=function(){return!0},ht.Object.defineProperties(Ur.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(e){var t=this.Ri;t!==e&&(this.Ri=e,this.g("archetypeNodeData",t,e))}},linkFromKeyProperty:{get:function(){return this.lf},set:function(e){var t=this.lf;t!==e&&(this.lf=e,this.g("linkFromKeyProperty",t,e))}},linkToKeyProperty:{get:function(){return this.mf},set:function(e){var t=this.mf;t!==e&&(this.mf=e,this.g("linkToKeyProperty",t,e))}},linkFromPortIdProperty:{get:function(){return this.ej},set:function(e){var t=this.ej;t!==e&&(this.ej=e,this.g("linkFromPortIdProperty",t,e))}},linkToPortIdProperty:{get:function(){return this.fj},set:function(e){var t=this.fj;t!==e&&(this.fj=e,this.g("linkToPortIdProperty",t,e))}},linkLabelKeysProperty:{get:function(){return this.je},set:function(e){var t=this.je;t!==e&&(this.je=e,this.g("linkLabelKeysProperty",t,e))}},linkDataArray:{get:function(){return this.md},set:function(e){var t=this.md;if(t!==e){this.wb.clear();for(var n=e.length,i=0;i<n;i++){var r=e[i];ot(r)||Ve("GraphLinksModel.linkDataArray must only contain Objects, not: "+r),Yr(r)}if(this.md=e,this.linkKeyProperty!==""){for(i=new qt,r=0;r<n;r++){var o=e[r],a=this.Ac(o);a===void 0||this.wb.I(a)!==null?i.add(o):this.wb.add(a,o)}for(i=i.iterator;i.next();)r=i.value,this.Bs(r),o=this.Ac(r),o!==void 0&&this.wb.add(o,r)}for(i=new Xt,r=0;r<n;r++)i.add(e[r]);for(this.$f=i,Qa(this,"linkDataArray",So,"linkDataArray",this,t,e),t=0;t<n;t++)Sv(this,e[t])}}},linkKeyProperty:{get:function(){return this.Jh},set:function(e){var t=this.Jh;if(t!==e){this.Jh=e,this.wb.clear();for(var n=this.linkDataArray.length,i=0;i<n;i++){var r=this.linkDataArray[i],o=this.Ac(r);o===void 0&&(this.Bs(r),o=this.Ac(r)),o!==void 0&&this.wb.add(o,r)}this.g("linkKeyProperty",t,e)}}},makeUniqueLinkKeyFunction:{get:function(){return this.cl},set:function(e){var t=this.cl;t!==e&&(this.cl=e,this.g("makeUniqueLinkKeyFunction",t,e))}},copyLinkDataFunction:{get:function(){return this.Ak},set:function(e){var t=this.Ak;t!==e&&(this.Ak=e,this.g("copyLinkDataFunction",t,e))}},nodeIsGroupProperty:{get:function(){return this.jl},set:function(e){var t=this.jl;t!==e&&(this.jl=e,this.g("nodeIsGroupProperty",t,e))}},nodeGroupKeyProperty:{get:function(){return this.Je},set:function(e){var t=this.Je;t!==e&&(this.Je=e,this.g("nodeGroupKeyProperty",t,e))}},Ij:{get:function(){return this.Lm},set:function(e){this.Lm!==e&&(this.Lm=e)}},linkCategoryProperty:{get:function(){return this.dj},set:function(e){var t=this.dj;t!==e&&(this.dj=e,this.g("linkCategoryProperty",t,e))}},type:{get:function(){return"GraphLinksModel"}}}),Ur.prototype.setCategoryForLinkData=Ur.prototype.lp,Ur.prototype.getCategoryForLinkData=Ur.prototype.ps,Ur.prototype.assignAllDataProperties=Ur.prototype.Do,Ur.prototype.setGroupKeyForNodeData=Ur.prototype.mp,Ur.prototype.getGroupKeyForNodeData=Ur.prototype.lh,Ur.prototype.isGroupForNodeData=Ur.prototype.Yu,Ur.prototype.copyLinkData=Ur.prototype.Jo,Ur.prototype.mergeLinkDataArray=Ur.prototype.Zz,Ur.prototype.removeLinkDataCollection=Ur.prototype.lA,Ur.prototype.removeLinkData=Ur.prototype.bm,Ur.prototype.addLinkDataCollection=Ur.prototype.Ey,Ur.prototype.addLinkData=Ur.prototype.fi,Ur.prototype.containsLinkData=Ur.prototype.Jc,Ur.prototype.makeLinkDataKeyUnique=Ur.prototype.Bs,Ur.prototype.findLinkDataForKey=Ur.prototype.jh,Ur.prototype.setKeyForLinkData=Ur.prototype.Ks,Ur.prototype.getKeyForLinkData=Ur.prototype.Ac,Ur.prototype.removeLabelKeyForLinkData=Ur.prototype.Qx,Ur.prototype.addLabelKeyForLinkData=Ur.prototype.Bu,Ur.prototype.setLabelKeysForLinkData=Ur.prototype.Ls,Ur.prototype.getLabelKeysForLinkData=Ur.prototype.Ef,Ur.prototype.setToPortIdForLinkData=Ur.prototype.Cv,Ur.prototype.getToPortIdForLinkData=Ur.prototype.Cx,Ur.prototype.setFromPortIdForLinkData=Ur.prototype.xv,Ur.prototype.getFromPortIdForLinkData=Ur.prototype.zx,Ur.prototype.setToKeyForLinkData=Ur.prototype.Bv,Ur.prototype.getToKeyForLinkData=Ur.prototype.Bx,Ur.prototype.setFromKeyForLinkData=Ur.prototype.wv,Ur.prototype.getFromKeyForLinkData=Ur.prototype.yx,Ur.prototype.clear=Ur.prototype.clear;var wm=Object.freeze([]);Ur.className="GraphLinksModel",oc.GraphLinksModel=Ur,di.constructGraphLinksModel=di.constructGraphLinksModel=function(){return new Ur},di.initDiagramModel=bv=function(){return new Ur};function Il(e,t){di.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",e!==void 0&&(fn(e)?this.nodeDataArray=e:t=e),t&&(Object.assign(this,t),e=t.Changed)&&(delete this.Changed,this.Pe(e))}yi(Il,di),Il.constructGraphLinksModel=di.constructGraphLinksModel,Il.prototype.cloneProtected=function(e){di.prototype.cloneProtected.call(this,e),e.Ke=this.Ke,e.Nm=this.Nm,e.nj=this.nj},U=Il.prototype,U.toString=function(e){if(e===void 0&&(e=0),2<=e)return this.np();var t=(this.name!==""?this.name:"")+" TreeModel";if(0<e){t+=`
node data:`,e=this.nodeDataArray;for(var n=e.length,i=0;i<n;i++){var r=e[i];t+=" "+this.wa(r)+":"+xn(r)}}return t},U.rm=function(){var e=di.prototype.rm.call(this),t="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(t+=`,
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),e+t},U.gp=function(e){di.prototype.gp.call(this,e),e.nodeParentKeyProperty&&(this.nodeParentKeyProperty=e.nodeParentKeyProperty)},U.fp=function(e){e.nodeParentKeyProperty!==void 0&&e.nodeParentKeyProperty!==this.nodeParentKeyProperty&&Ve("applyIncrementalJson cannot change Model properties"),di.prototype.fp.call(this,e)},U.Vl=function(e){return e},U.mh=function(e){if(e!==null){var t=this.Ke;if(t!==""&&(t=Fa(e,t),t!==void 0)){if(Zh(t))return t;Ve("ParentKey value for node data "+e+" is not a number or a string: "+t)}}},U.qe=function(e,t){if(t===null&&(t=void 0),e!==null){var n=this.Ke;if(n!=="")if(t=this.Vl(t),this.lb(e)){var i=Fa(e,n);i!==t&&(gc(this,i,e),Xo(e,n,t),this.hc(t)===null&&mc(this,t,e),Qa(this,"nodeParentKey",So,n,e,i,t),typeof n=="string"&&this.La(e,n))}else Xo(e,n,t)}},U.ss=function(e){if(e===null)return"";var t=this.nj;return t===""||(t=Fa(e,t),t===void 0)?"":typeof t=="string"?t:(Ve("getParentLinkCategoryForNodeData found a non-string category for "+e+": "+t),"")},Il.prototype.getLinkCategoryForData=function(e){return this.ss(e)},Il.prototype.Ms=function(e,t){if(e!==null){var n=this.nj;if(n!=="")if(this.lb(e)){var i=Fa(e,n);i===void 0&&(i=""),i!==t&&(Xo(e,n,t),Qa(this,"parentLinkCategory",So,n,e,i,t),typeof n=="string"&&this.La(e,n))}else Xo(e,n,t)}},Il.prototype.setLinkCategoryForData=function(e,t){this.Ms(e,t)},Il.prototype.copyNodeData=function(e){return e===null?null:(e=di.prototype.copyNodeData.call(this,e),this.Jj||this.Ke===""||Fa(e,this.Ke)===void 0||Xo(e,this.Ke,void 0),e)},Il.prototype.setDataProperty=function(e,t,n){if(this.lb(e)){if(t===this.nodeKeyProperty){this.km(e,n);return}if(t===this.nodeCategoryProperty){this.jm(e,n);return}if(t===this.nodeParentKeyProperty){this.qe(e,n);return}}var i=Fa(e,t);i!==n&&(Xo(e,t,n),this.Fs(e,t,i,n))},U=Il.prototype,U.jp=function(e,t){di.prototype.jp.call(this,e,t);for(var n=this.kb.iterator;n.next();)this.qv(n.value,e,t)},U.qv=function(e,t,n){if(this.mh(e)===t){var i=this.Ke;Xo(e,i,n),Qa(this,"nodeParentKey",So,i,e,t,n),typeof i=="string"&&this.La(e,i)}},U.fm=function(e){di.prototype.fm.call(this,e),e=this.wa(e);var t=Up(this,e);if(t!==null){var n=Rt();for(t=t.iterator;t.next();){var i=t.value;if(this.lb(i)&&this.mh(i)===e){var r=this.Ke;Qa(this,"nodeParentKey",So,r,i,e,e),typeof r=="string"&&this.La(i,r),n.push(i)}}for(t=0;t<n.length;t++)gc(this,e,n[t]);Jt(n)}},U.em=function(e){di.prototype.em.call(this,e);var t=this.mh(e);t=this.Vl(t),this.hc(t)===null&&mc(this,t,e)},U.qp=function(e){di.prototype.qp.call(this,e);var t=this.mh(e);gc(this,t,e)},U.lm=function(e,t){di.prototype.lm.call(this,e,t),this.Ms(t,this.ss(e)),this.qe(t,this.mh(e))},U.Tl=function(){return!0},U.xs=function(){return!0},ht.Object.defineProperties(Il.prototype,{nodeParentKeyProperty:{get:function(){return this.Ke},set:function(e){var t=this.Ke;t!==e&&(this.Ke=e,this.g("nodeParentKeyProperty",t,e))}},Jj:{get:function(){return this.Nm},set:function(e){this.Nm!==e&&(this.Nm=e)}},parentLinkCategoryProperty:{get:function(){return this.nj},set:function(e){var t=this.nj;t!==e&&(this.nj=e,this.g("parentLinkCategoryProperty",t,e))}},linkCategoryProperty:{get:function(){return this.parentLinkCategoryProperty},set:function(e){this.parentLinkCategoryProperty=e}},type:{get:function(){return"TreeModel"}}}),Il.prototype.setParentLinkCategoryForNodeData=Il.prototype.Ms,Il.prototype.getParentLinkCategoryForNodeData=Il.prototype.ss,Il.prototype.setParentKeyForNodeData=Il.prototype.qe,Il.prototype.getParentKeyForNodeData=Il.prototype.mh,Il.className="TreeModel",oc.TreeModel=Il;function ca(e){Qo.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=ac,this.Ti=0,this.Zv=new he,this.Jp=this.me=0,this.Xr=new Vp,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=ac,this.K=Ml,this.nd=zf,this.hd=fv,this.tf=6,this.Nn=Mm,e&&Object.assign(this,e)}yi(ca,Qo),ca.prototype.cloneProtected=function(e){Qo.prototype.cloneProtected.call(this,e),e.eo=this.eo,e.Cm=this.Cm,e.ro=this.ro,e.ul=this.ul,e.Rb=this.Rb,e.K=this.K,e.nd=this.nd,e.hd=this.hd,e.tf=this.tf,e.Nn=this.Nn},ca.prototype.qb=function(e){e.classType===ca?e===km||e===Im||e===Nm||e===Am||e===zf?this.sorting=e:e===Td||e===_f||e===Ml||e===Xh?this.direction=e:e===Th||e===Yh||e===ac||e===sc?this.arrangement=e:(e===Zd||e===Mm)&&(this.nodeDiameterFormula=e):Qo.prototype.qb.call(this,e)},ca.prototype.createNetwork=function(){return new Uf(this)},ca.prototype.doLayout=function(e){if(this.network===null&&(this.network=this.makeNetwork(e)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),e=this.network.vertexes,1>=e.count)e.count===1&&(e=e.first(),e.centerX=0,e.centerY=0);else{var t=new qt;t.addAll(e.iterator),e=new qt;var n=new qt,i=this.sort(t),r,o,a=this.Jp,l=this.arrangement,u=this.nodeDiameterFormula,f=this.radius;(!isFinite(f)||0>=f)&&(f=NaN);var p=this.aspectRatio;(!isFinite(p)||0>=p)&&(p=1);var x=this.startAngle;isFinite(x)||(x=0);var N=this.sweepAngle;if((!isFinite(N)||360<N||1>N)&&(N=360),t=this.spacing,isFinite(t)||(t=NaN),l===sc&&u===Zd?l=ac:l===sc&&u!==Zd&&(l=this.arrangement),(this.direction===Td||this.direction===_f)&&this.sorting!==zf){for(u=0;!(u>=i.length)&&(e.add(i.M(u)),!(u+1>=i.length));u+=2)n.add(i.M(u+1));this.direction===Td?(this.arrangement===sc&&e.reverse(),i=new qt,i.addAll(e),i.addAll(n)):(this.arrangement===sc&&n.reverse(),i=new qt,i.addAll(n),i.addAll(e))}u=i.length;for(var R=o=r=0;R<i.length;R++){var _=x+N*o*(this.direction===Ml?1:-1)/u,V=i.M(R).diameter;isNaN(V)&&(V=Qh(i.M(R),_)),360>N&&(R===0||R===i.length-1)&&(V/=2),r+=V,o++}if(isNaN(f)||l===sc){if(isNaN(t)&&(t=6),l!==ac&&l!==sc){for(o=-1/0,a=0;a<u;a++)R=i.M(a),r=i.M(a===u-1?0:a+1),isNaN(R.diameter)&&Qh(R,0),isNaN(r.diameter)&&Qh(r,0),o=Math.max(o,(R.diameter+r.diameter)/2);a=o+t,l===Th?f=(o+t)/(2*Math.PI/u):f=Cm(this,a*(360<=N?u:u-1),p,x*Math.PI/180,N*Math.PI/180)}else f=Cm(this,r+(360<=N?u:u-1)*(l!==sc?t:1.6*t),p,x*Math.PI/180,N*Math.PI/180);o=f*p}else if(o=f*p,R=Ev(this,f,o,x*Math.PI/180,N*Math.PI/180),isNaN(t))(l===ac||l===sc)&&(t=(R-r)/(360<=N?u:u-1));else if(l===ac||l===sc)R=(R-r)/(360<=N?u:u-1),R<t?(f=Cm(this,r+t*(360<=N?u:u-1),p,x*Math.PI/180,N*Math.PI/180),o=f*p):t=R;else{for(a=-1/0,r=0;r<u;r++)_=i.M(r),V=i.M(r===u-1?0:r+1),isNaN(_.diameter)&&Qh(_,0),isNaN(V.diameter)&&Qh(V,0),a=Math.max(a,(_.diameter+V.diameter)/2);a+=t,r=Cm(this,a*(360<=N?u:u-1),p,x*Math.PI/180,N*Math.PI/180),r>f?(f=r,o=f*p):a=R/(360<=N?u:u-1)}if(this.kw=l,this.lc=f,this.Zm=p,this.lw=x,this.Wp=N,this.Ti=t,this.me=o,this.Jp=a,t=i,i=this.kw,l=this.lc,f=this.lw,p=this.Wp,x=this.Ti,N=this.me,u=this.Jp,this.direction!==Td&&this.direction!==_f||i!==sc)if(this.direction===Td||this.direction===_f){switch(a=0,i){case Yh:a=180*Tm(this,l,N,f,u)/Math.PI;break;case ac:u=t=0,a=e.first(),a!==null&&(t=Qh(a,Math.PI/2)),a=n.first(),a!==null&&(u=Qh(a,Math.PI/2)),a=180*Tm(this,l,N,f,x+(t+u)/2)/Math.PI;break;case Th:a=p/t.length}if(this.direction===Td){switch(i){case Yh:Wp(this,e,f,Xh);break;case ac:Gp(this,e,f,Xh);break;case Th:jp(this,e,p/2,f,Xh)}switch(i){case Yh:Wp(this,n,f+a,Ml);break;case ac:Gp(this,n,f+a,Ml);break;case Th:jp(this,n,p/2,f+a,Ml)}}else{switch(i){case Yh:Wp(this,n,f,Xh);break;case ac:Gp(this,n,f,Xh);break;case Th:jp(this,n,p/2,f,Xh)}switch(i){case Yh:Wp(this,e,f+a,Ml);break;case ac:Gp(this,e,f+a,Ml);break;case Th:jp(this,e,p/2,f+a,Ml)}}}else switch(i){case Yh:Wp(this,t,f,this.direction);break;case ac:Gp(this,t,f,this.direction);break;case Th:jp(this,t,p,f,this.direction);break;case sc:j1(this,t,p,f,this.direction)}else j1(this,t,p,f-p/2,Ml)}this.updateParts(),this.network=null,this.isValidLayout=!0};function jp(e,t,n,i,r){var o=e.Wp,a=e.lc;e=e.me,i=i*Math.PI/180,n=n*Math.PI/180;for(var l=t.length,u=0;u<l;u++){var f=i+(r===Ml?u*n/(360<=o?l:l-1):-(u*n)/l),p=t.M(u),x=a*Math.tan(f)/e;x=Math.sqrt((a*a+e*e*x*x)/(1+x*x)),p.centerX=x*Math.cos(f),p.centerY=x*Math.sin(f),p.actualAngle=180*f/Math.PI}}function Gp(e,t,n,i){var r=e.lc,o=e.me,a=e.Ti;n=n*Math.PI/180;for(var l=t.length,u=0;u<l;u++){var f=t.M(u),p=t.M(u===l-1?0:u+1),x=o*Math.sin(n);f.centerX=r*Math.cos(n),f.centerY=x,f.actualAngle=180*n/Math.PI,isNaN(f.diameter)&&Qh(f,0),isNaN(p.diameter)&&Qh(p,0),f=Tm(e,r,o,i===Ml?n:-n,(f.diameter+p.diameter)/2+a),n+=i===Ml?f:-f}}function Wp(e,t,n,i){var r=e.lc,o=e.me,a=e.Jp;n=n*Math.PI/180;for(var l=t.length,u=0;u<l;u++){var f=t.M(u);f.centerX=r*Math.cos(n),f.centerY=o*Math.sin(n),f.actualAngle=180*n/Math.PI,f=Tm(e,r,o,i===Ml?n:-n,a),n+=i===Ml?f:-f}}function j1(e,t,n,i,r){var o=e.Wp;if(e.mj=0,e.Xr=new Vp,360>n){for(o=i+(r===Ml?o:-o);0>o;)o+=360;o%=360,180<o&&(o-=360),o*=Math.PI/180,e.gt=o,W1(e,t,n,i,r)}else G1(e,t,n,i,r);e.Xr.commit(t)}function G1(e,t,n,i,r){var o=e.lc,a=e.Ti,l=e.Zm,u=o*Math.cos(i*Math.PI/180),f=e.me*Math.sin(i*Math.PI/180),p=t.Fa();if(p.length===3)p[0].centerX=o,p[0].centerY=0,p[1].centerX=p[0].centerX-p[0].width/2-p[1].width/2-a,p[1].y=p[0].y,p[2].centerX=(p[0].centerX+p[1].centerX)/2,p[2].y=p[0].y-p[2].height-a;else if(p.length===4)p[0].centerX=o,p[0].centerY=0,p[2].centerX=-p[0].centerX,p[2].centerY=p[0].centerY,p[1].centerX=0,p[1].y=Math.min(p[0].y,p[2].y)-p[1].height-a,p[3].centerX=0,p[3].y=Math.max(p[0].y+p[0].height+a,p[2].y+p[2].height+a);else{o=he.alloc();for(var x=0;x<p.length&&(p[x].centerX=u,p[x].centerY=f,!(x>=p.length-1));x++)V1(e,u,f,p,x,r,o)||K1(e,u,f,p,x,r,o),u=o.x,f=o.y;if(he.free(o),e.mj++,!(23<e.mj)){u=p[0].centerX,f=p[0].centerY,o=p[p.length-1].centerX,x=p[p.length-1].centerY;var N=Math.abs(u-o)-((p[0].width+p[p.length-1].width)/2+a),R=Math.abs(f-x)-((p[0].height+p[p.length-1].height)/2+a);a=0,1>Math.abs(R)?Math.abs(u-o)<(p[0].width+p[p.length-1].width)/2&&(a=0):a=0<R?R:1>Math.abs(N)?0:N,u=Math.abs(o)>Math.abs(x)?0<o!=f>x:0<x!=u<o,(u=r===Ml?u:!u)&&(a=-Math.abs(a),a=Math.min(a,-p[p.length-1].width),a=Math.min(a,-p[p.length-1].height)),e.Xr.compare(a,p),1<Math.abs(a)&&(e.lc=8>e.mj?e.lc-a/(2*Math.PI):5>p.length&&10<a?e.lc/2:e.lc-(0<a?1.7:-2.3),e.me=e.lc*l,G1(e,t,n,i,r))}}}function W1(e,t,n,i,r){for(var o=e.lc,a=e.me,l=e.Zm,u=o*Math.cos(i*Math.PI/180),f=a*Math.sin(i*Math.PI/180),p=he.alloc(),x=t.Fa(),N=0;N<x.length&&(x[N].centerX=u,x[N].centerY=f,!(N>=x.length-1));N++)V1(e,u,f,x,N,r,p)||K1(e,u,f,x,N,r,p),u=p.x,f=p.y;if(he.free(p),e.mj++,!(23<e.mj)){if(u=Math.atan2(f,u),u=r===Ml?e.gt-u:u-e.gt,u=Math.abs(u)<Math.abs(u-2*Math.PI)?u:u-2*Math.PI,o=u*(o+a)/2,a=e.Xr,Math.abs(o)<Math.abs(a.Pl))for(a.Pl=o,a.mk=[],a.tm=[],u=0;u<x.length;u++)a.mk[u]=x[u].bounds.x,a.tm[u]=x[u].bounds.y;1<Math.abs(o)&&(e.lc=8>e.mj?e.lc-o/(2*Math.PI):e.lc-(0<o?1.7:-2.3),e.me=e.lc*l,W1(e,t,n,i,r))}}function V1(e,t,n,i,r,o,a){var l=e.lc,u=e.me,f=0;e=(i[r].width+i[r+1].width)/2+e.Ti;var p=!1;if(0<=n!=(o===Ml)){if(o=t+e,o>l){if(o=t-e,o<-l)return a.x=o,a.y=f,!1;p=!0}}else if(o=t-e,o<-l){if(o=t+e,o>l)return a.x=o,a.y=f,!1;p=!0}return f=Math.sqrt(1-Math.min(1,o*o/(l*l)))*u,0>n!==p&&(f=-f),Math.abs(n-f)>(i[r].height+i[r+1].height)/2?(a.x=o,a.y=f,!1):(a.x=o,a.y=f,!0)}function K1(e,t,n,i,r,o,a){var l=e.lc,u=e.me,f=0;if(e=(i[r].height+i[r+1].height)/2+e.Ti,i=!1,0<=t!=(o===Ml)){if(o=n-e,o<-u){if(o=n+e,o>u){a.x=f,a.y=o;return}i=!0}}else if(o=n+e,o>u){if(o=n-e,o<-u){a.x=f,a.y=o;return}i=!0}f=Math.sqrt(1-Math.min(1,o*o/(u*u)))*l,0>t!==i&&(f=-f),a.x=f,a.y=o}ca.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},ca.prototype.commitNodes=function(){var e=this.group!==null&&this.group.placeholder!==null&&this.group.isSubGraphExpanded,t=e?this.group.location.copy():null,n=this.actualCenter;e?n=new he(0,0):(n.x=this.arrangementOrigin.x+this.lc,n.y=this.arrangementOrigin.y+this.me);for(var i=this.network.vertexes.iterator;i.next();){var r=i.value;r.x+=n.x,r.y+=n.y,r.commit()}e&&(this.group.Va(),e=this.group.position.copy(),n=this.group.location.copy(),t=t.re(n.re(e)),this.group.move(t),this.Zv=t.re(e))},ca.prototype.commitLinks=function(){for(var e=this.network.edges.iterator;e.next();)e.value.commit()};function Ev(e,t,n,i,r){var o=e.ty;if(.001>Math.abs(e.Zm-1))return i!==void 0&&r!==void 0?r*t:2*Math.PI*t;e=t>n?Math.sqrt(t*t-n*n)/t:Math.sqrt(n*n-t*t)/n;for(var a=0,l=i!==void 0&&r!==void 0?r/(o+1):Math.PI/(2*(o+1)),u=0,f=0;f<=o;f++){i!==void 0&&r!==void 0?u=i+f*r/o:u=f*Math.PI/(2*o);var p=Math.sin(u);a+=Math.sqrt(1-e*e*p*p)*l}return i!==void 0&&r!==void 0?(t>n?t:n)*a:4*(t>n?t:n)*a}function Cm(e,t,n,i,r){return t/(i!==void 0&&r!==void 0?Ev(e,1,n,i,r):Ev(e,1,n))}function Tm(e,t,n,i,r){if(.001>Math.abs(e.Zm-1))return r/t;var o=t>n?Math.sqrt(t*t-n*n)/t:Math.sqrt(n*n-t*t)/n,a=0;e=2*Math.PI/(700*e.network.vertexes.count),t>n&&(i+=Math.PI/2);for(var l=0;;l++){var u=Math.sin(i+l*e);if(a+=(t>n?t:n)*Math.sqrt(1-o*o*u*u)*e,a>=r)return l*e}}ca.prototype.sort=function(e){switch(this.sorting){case Nm:break;case Am:e.reverse();break;case km:e.sort(this.comparer);break;case Im:e.sort(this.comparer),e.reverse();break;case zf:return this.ak(Kb(e));default:Ve("Invalid sorting type.")}return e};function Kb(e){for(var t=[],n=0;n<e.length;n++)t.push(0);n=new qt;for(var i=0;i<e.length;i++){var r=-1,o=-1;if(i===0)for(var a=0;a<e.length;a++){var l=e.M(a).edgesCount;l>r&&(r=l,o=a)}else for(a=0;a<e.length;a++)l=t[a],l>r&&(r=l,o=a);for(n.add(e.M(o)),t[o]=-1,o=e.M(o),a=o.sourceEdges;a.next();)r=e.indexOf(a.value.fromVertex),0>r||0<=t[r]&&t[r]++;for(o=o.destinationEdges;o.next();)r=e.indexOf(o.value.toVertex),0>r||0<=t[r]&&t[r]++}return n}ca.prototype.ak=function(e){for(var t=[],n=0;n<e.length;n++){var i=e.M(n);t[n]=[];for(var r,o=i.destinationEdges;o.next();)r=e.indexOf(o.value.toVertex),r!==n&&0>t[n].indexOf(r)&&t[n].push(r);for(i=i.sourceEdges;i.next();)r=e.indexOf(i.value.fromVertex),r!==n&&0>t[n].indexOf(r)&&t[n].push(r)}for(o=[],n=0;n<t.length;n++)o[n]=0;n=[];var a=[],l=[];i=[],r=new qt;for(var u=0,f=0;f<t.length;f++){var p=t[f].length;if(p===1)i.push(f);else if(p===0)r.add(e.M(f));else{if(u===0)n.push(f);else{for(var x=p=1/0,N=-1,R=[],_=0;_<n.length;_++)0>t[n[_]].indexOf(n[_===n.length-1?0:_+1])&&R.push(_===n.length-1?0:_+1);if(R.length===0)for(_=0;_<n.length;_++)R.push(_);for(_=0;_<R.length;_++){for(var V=R[_],xe=t[f],ue=0,Fe=0;Fe<a.length;Fe++){var Ue=o[a[Fe]],We=o[l[Fe]];if(Ue<We){var rt=Ue;Ue=We}else rt=We;if(rt<V&&V<=Ue)for(We=0;We<xe.length;We++){var At=xe[We];0>n.indexOf(At)||rt<o[At]&&o[At]<Ue||rt===o[At]||Ue===o[At]||ue++}else for(We=0;We<xe.length;We++)At=xe[We],0>n.indexOf(At)||rt<o[At]&&o[At]<Ue&&rt!==o[At]&&Ue!==o[At]&&ue++}for(xe=ue,Fe=ue=0;Fe<t[f].length;Fe++)rt=n.indexOf(t[f][Fe]),0<=rt&&(rt=Math.abs(V-(rt>=V?rt+1:rt)),ue+=rt<n.length+1-rt?rt:n.length+1-rt);for(Fe=0;Fe<a.length;Fe++)rt=o[a[Fe]],Ue=o[l[Fe]],rt>=V&&rt++,Ue>=V&&Ue++,rt>Ue&&(We=Ue,Ue=rt,rt=We),Ue-rt<(n.length+2)/2==(rt<V&&V<=Ue)&&ue++;(xe<p||xe===p&&ue<x)&&(p=xe,x=ue,N=V)}for(n.splice(N,0,f),p=0;p<n.length;p++)o[n[p]]=p;for(p=0;p<t[f].length;p++)x=t[f][p],0<=n.indexOf(x)&&(a.push(f),l.push(x))}u++}}for(a=n.length;;){for(o=!0,l=0;l<i.length;l++)if(u=i[l],f=t[u][0],p=n.indexOf(f),0<=p){for(N=x=0;N<t[f].length;N++)R=n.indexOf(t[f][N]),0>R||R===p||(_=R>p?R-p:p-R,x+=R<p!=_>a-_?1:-1);n.splice(0>x?p:p+1,0,u),i.splice(l,1),l--}else o=!1;if(o)break;n.push(i[0]),i.splice(0,1)}for(t=0;t<n.length;t++)r.add(e.M(n[t]));return r},ht.Object.defineProperties(ca.prototype,{radius:{get:function(){return this.eo},set:function(e){this.eo!==e&&(0<e||isNaN(e))&&(this.eo=e,this.C())}},aspectRatio:{get:function(){return this.Cm},set:function(e){this.Cm!==e&&0<e&&(this.Cm=e,this.C())}},startAngle:{get:function(){return this.ro},set:function(e){this.ro!==e&&(this.ro=e,this.C())}},sweepAngle:{get:function(){return this.ul},set:function(e){this.ul!==e&&(0<e&&360>=e?this.ul=e:this.ul=360,this.C())}},arrangement:{get:function(){return this.Rb},set:function(e){this.Rb===e||e!==sc&&e!==ac&&e!==Yh&&e!==Th||(this.Rb=e,this.C())}},direction:{get:function(){return this.K},set:function(e){this.K===e||e!==Ml&&e!==Xh&&e!==Td&&e!==_f||(this.K=e,this.C())}},sorting:{get:function(){return this.nd},set:function(e){this.nd===e||e!==Nm&&e!==Am&&e!==km&&!Im&&e!==zf||(this.nd=e,this.C())}},comparer:{get:function(){return this.hd},set:function(e){this.hd!==e&&(this.hd=e,this.C())}},spacing:{get:function(){return this.tf},set:function(e){this.tf!==e&&(this.tf=e,this.C())}},nodeDiameterFormula:{get:function(){return this.Nn},set:function(e){this.Nn===e||e!==Mm&&e!==Zd||(this.Nn=e,this.C())}},actualXRadius:{get:function(){return this.lc}},actualYRadius:{get:function(){return this.me}},actualSpacing:{get:function(){return this.Ti}},actualCenter:{get:function(){return this.Zv}}});var ac=new Yt(ca,"ConstantSpacing",0),Yh=new Yt(ca,"ConstantDistance",1),Th=new Yt(ca,"ConstantAngle",2),sc=new Yt(ca,"Packed",3),Ml=new Yt(ca,"Clockwise",4),Xh=new Yt(ca,"Counterclockwise",5),Td=new Yt(ca,"BidirectionalLeft",6),_f=new Yt(ca,"BidirectionalRight",7),Nm=new Yt(ca,"Forwards",8),Am=new Yt(ca,"Reverse",9),km=new Yt(ca,"Ascending",10),Im=new Yt(ca,"Descending",11),zf=new Yt(ca,"Optimized",12),Mm=new Yt(ca,"Pythagorean",13),Zd=new Yt(ca,"Circular",14);ca.className="CircularLayout",ca.ConstantSpacing=ac,ca.ConstantDistance=Yh,ca.ConstantAngle=Th,ca.Packed=sc,ca.Clockwise=Ml,ca.Counterclockwise=Xh,ca.BidirectionalLeft=Td,ca.BidirectionalRight=_f,ca.Forwards=Nm,ca.Reverse=Am,ca.Ascending=km,ca.Descending=Im,ca.Optimized=zf,ca.Pythagorean=Mm,ca.Circular=Zd;function Vp(){this.Pl=-1/0,this.tm=this.mk=null}Vp.prototype.compare=function(e,t){if(0<e&&0>this.Pl||Math.abs(e)<Math.abs(this.Pl)&&!(0>e&&0<this.Pl))for(this.Pl=e,this.mk=[],this.tm=[],e=0;e<t.length;e++)this.mk[e]=t[e].bounds.x,this.tm[e]=t[e].bounds.y},Vp.prototype.commit=function(e){if(this.mk!==null&&this.tm!==null)for(var t=0;t<this.mk.length;t++){var n=e.M(t);n.x=this.mk[t],n.y=this.tm[t]}},Vp.className="VertexArrangement";function Uf(e){Oo.call(this,e)}yi(Uf,Oo),Uf.prototype.createVertex=function(){return new Kp(this)},Uf.prototype.createEdge=function(){return new Om(this)},Uf.className="CircularNetwork";function Kp(e){ns.call(this,e),this.u=this.Si=NaN}yi(Kp,ns);function Qh(e,t){var n=e.network;if(n===null)return NaN;if(n=n.layout,n===null)return NaN;if(n.arrangement===sc)if(n.nodeDiameterFormula===Zd)e.Si=Math.max(e.width,e.height);else{if(n=Math.abs(Math.sin(t)),t=Math.abs(Math.cos(t)),n===0)return e.width;if(t===0)return e.height;e.Si=Math.min(e.height/n,e.width/t)}else e.Si=n.nodeDiameterFormula===Zd?Math.max(e.width,e.height):Math.sqrt(e.width*e.width+e.height*e.height);return e.Si}ht.Object.defineProperties(Kp.prototype,{diameter:{get:function(){return this.Si},set:function(e){this.Si!==e&&(this.Si=e)}},actualAngle:{get:function(){return this.u},set:function(e){this.u!==e&&(this.u=e)}}}),Kp.className="CircularVertex";function Om(e){au.call(this,e)}yi(Om,au),Om.className="CircularEdge";function $s(e){Qo.call(this),this.ah=null,this.An=0,this.$d=new pi(100,100).freeze(),this.Bm=!1,this.sf=!0,this.td=!1,this.dl=100,this.$m=1,this.Zf=1e3,this.In=10,this.fo=Math,this.Hk=.05,this.Gk=50,this.Ek=150,this.Fk=0,this.Vm=10,this.Um=5,e&&Object.assign(this,e)}yi($s,Qo),$s.prototype.cloneProtected=function(e){Qo.prototype.cloneProtected.call(this,e),e.$d.assign(this.$d),e.Bm=this.Bm,e.sf=this.sf,e.td=this.td,e.dl=this.dl,e.$m=this.$m,e.Zf=this.Zf,e.In=this.In,e.fo=this.fo,e.Hk=this.Hk,e.Gk=this.Gk,e.Ek=this.Ek,e.Fk=this.Fk,e.Vm=this.Vm,e.Um=this.Um},$s.prototype.createNetwork=function(){return new Yd(this)},$s.prototype.doLayout=function(e){if(this.network===null&&(this.network=this.makeNetwork(e)),e=this.maxIterations,0<this.network.vertexes.count){this.network.Ko();for(var t=this.network.vertexes.iterator;t.next();){var n=t.value;n.charge=this.electricalCharge(n),n.mass=this.gravitationalMass(n)}for(t=this.network.edges.iterator;t.next();)n=t.value,n.stiffness=this.springStiffness(n),n.length=this.springLength(n);if(this.Cu(),this.An=0,this.needsClusterLayout()){t=this.network,n=t.Zx();for(var i=n.iterator;i.next();){this.network=i.value;for(var r=this.network.vertexes.iterator;r.next();){var o=r.value;o.Vd=o.vertexes.count,o.sh=1,o.Hj=null,o.We=null}Z1(this,0,e)}this.network=t;var a=i=n.iterator;i=this.arrangementSpacing;var l=a.count,u=!0;o=r=0;for(var f=Rt(),p=0;p<l+t.vertexes.count+2;p++)f[p]=null;l=0,a.reset();for(var x=Zt.alloc();a.next();)if(p=a.value,this.computeBounds(p,x),u)u=!1,r=x.x+x.width/2,o=x.y+x.height/2,f[0]=new he(x.x+x.width+i.width,x.y),f[1]=new he(x.x,x.y+x.height+i.height),l=2;else{var N=Y1(f,l,r,o,x.width,x.height,i),R=f[N],_=new he(R.x+x.width+i.width,R.y),V=new he(R.x,R.y+x.height+i.height);for(N+1<l&&f.splice(N+1,0,null),f[N]=_,f[N+1]=V,l++,N=R.x-x.x,R=R.y-x.y,p=p.vertexes.iterator;p.next();)_=p.value,_.centerX+=N,_.centerY+=R}for(Zt.free(x),p=t.vertexes.iterator;p.next();)a=p.value,N=a.bounds,2>l?(r=N.x+N.width/2,o=N.y+N.height/2,f[0]=new he(N.x+N.width+i.width,N.y),f[1]=new he(N.x,N.y+N.height+i.height),l=2):(u=Y1(f,l,r,o,N.width,N.height,i),x=f[u],R=new he(x.x+N.width+i.width,x.y),N=new he(x.x,x.y+N.height+i.height),u+1<l&&f.splice(u+1,0,null),f[u]=R,f[u+1]=N,l++,a.centerX=x.x+a.width/2,a.centerY=x.y+a.height/2);for(Jt(f),i=n.iterator;i.next();){for(n=i.value,r=n.vertexes.iterator;r.next();)t.dh(r.value);for(n=n.edges.iterator;n.next();)t.Bo(n.value)}}Q1(this,e),this.updateParts()}this.dl=e,this.network=null,this.isValidLayout=!0},$s.prototype.needsClusterLayout=function(){if(3>this.network.vertexes.count)return!1;for(var e=0,t=0,n=this.network.vertexes.first().bounds,i=this.network.vertexes.iterator;i.next();){if(i.value.bounds.Yc(n)&&(e++,2<e))return!0;if(10<t)break;t++}return!1},$s.prototype.computeBounds=function(e,t){var n=!0;for(e=e.vertexes.iterator;e.next();){var i=e.value;n?(n=!1,t.set(i.bounds)):t.ed(i.bounds)}return t};function Z1(e,t,n){if(Zb(e,t)){var i=e.Zf;e.Zf*=1+1/(t+1);var r=Yb(e,t),o=Math.max(0,Math.max(Math.min(e.network.vertexes.count,n*(t+1)/11),10));for(e.maxIterations+=o,Z1(e,t+1,n),Q1(e,o),Xb(e,r),t=r.vertexes.Fa(),t.sort(function(a,l){return a===null||l===null||a===l?0:l.Vd-a.Vd}),n=0;n<t.length;n++)Qb(e,t[n]);e.Zf=i}}function Zb(e,t){if(10<t||3>e.network.vertexes.count)return!1;for(e.ah=e.network.vertexes.Fa(),e=e.ah,e.sort(function(n,i){return n===null||i===null||n===i?0:i.Vd-n.Vd}),t=e.length-1;0<=t&&1>=e[t].Vd;)t--;return 1<e.length-t}function Yb(e,t){for(var n=e.network,i=new Yd(e),r=0;r<e.ah.length;r++){var o=e.ah[r];if(1<o.Vd){i.dh(o);var a=new J1;a.Rs=o.Vd,a.Ss=o.width,a.Qs=o.height,a.Sv=o.focus.x,a.Tv=o.focus.y,o.We===null&&(o.We=new qt),o.We.add(a),o.sv=o.We.count-1}else break}for(o=n.edges.iterator;o.next();){var l=o.value;r=l.fromVertex,a=l.toVertex,r.network===i&&a.network===i?i.Bo(l):r.network===i?(l=r.Hj,l===null&&(l=new qt,r.Hj=l),l.add(a),r.Vd--,r.sh+=a.sh):a.network===i&&(l=a.Hj,l===null&&(l=new qt,a.Hj=l),l.add(r),a.Vd--,a.sh+=r.sh)}for(r=i.edges.iterator;r.next();)o=r.value,o.length*=Math.max(1,qe.sqrt((o.fromVertex.sh+o.toVertex.sh)/(4*t+1)));for(t=i.vertexes.iterator;t.next();){r=t.value;var u=r.Hj;if(u!==null&&0<u.count&&(a=r.We.M(r.We.count-1).Rs-r.Vd,!(0>=a))){for(var f=l=0,p=u.count-a;p<u.count;p++){var x=u.M(p),N=null;for(o=x.edges.iterator;o.next();){var R=o.value;if(R.Ax(x)===r){N=R;break}}N!==null&&(f+=N.length,l+=x.width*x.height)}o=r.centerX,u=r.centerY,p=r.width,x=r.height,N=r.focus,R=p*x,1>R&&(R=1),l=qe.sqrt((l+R+f*f*4/(a*a))/R),a=(l-1)*p/2,l=(l-1)*x/2,r.bounds=new Zt(o-N.x-a,u-N.y-l,p+2*a,x+2*l),r.focus=new he(N.x+a,N.y+l)}}return e.network=i,n}function Xb(e,t){for(var n=e.network.vertexes.iterator;n.next();){var i=n.value;if(i.network=t,i.We!==null){var r=i.We.M(i.sv);i.Vd=r.Rs;var o=r.Sv,a=r.Tv;i.bounds=new Zt(i.centerX-o,i.centerY-a,r.Ss,r.Qs),i.focus=new he(o,a),i.sv--}}for(n=e.network.edges.iterator;n.next();)n.value.network=t;e.network=t}function Qb(e,t){var n=t.Hj;if(n!==null&&n.count!==0){var i=t.centerX,r=t.centerY,o=t.width,a=t.height;t.We!==null&&0<t.We.count&&(a=t.We.M(0),o=a.Ss,a=a.Qs),o=qe.sqrt(o*o+a*a)/2;for(var l=!1,u=a=0,f=0,p=t.vertexes.iterator;p.next();){var x=p.value;1>=x.Vd?u++:(l=!0,f++,a+=Math.atan2(t.centerY-x.centerY,t.centerX-x.centerX))}if(u!==0){for(0<f&&(a/=f),f=t=0,t=l?2*Math.PI/(u+1):2*Math.PI/u,u%2===0&&(f=t/2),1<n.count&&n.sort(function(R,_){return R===null||_===null||R===_?0:_.width*_.height-R.width*R.height}),l=u%2===0?0:1,n=n.iterator;n.next();)if(u=n.value,!(1<u.Vd||e.isFixed(u))){for(p=null,x=u.edges.iterator;x.next();){p=x.value;break}x=u.width;var N=u.height;x=qe.sqrt(x*x+N*N)/2,p=o+p.length+x,x=a+(t*(l/2>>1)+f)*(l%2===0?1:-1),u.centerX=i+p*Math.cos(x),u.centerY=r+p*Math.sin(x),l++}}}}function Y1(e,t,n,i,r,o,a){var l=9e19,u=-1,f=0;e:for(;f<t;f++){var p=e[f],x=p.x-n,N=p.y-i;if(x=x*x+N*N,x<l){for(N=f-1;0<=N;N--)if(e[N].y>p.y&&e[N].x-p.x<r+a.width)continue e;for(N=f+1;N<t;N++)if(e[N].x>p.x&&e[N].y-p.y<o+a.height)continue e;u=f,l=x}}return u}$s.prototype.Cu=function(){if(this.comments)for(var e=this.network.vertexes.iterator;e.next();)this.addComments(e.value)},$s.prototype.addComments=function(e){var t=e.node;if(t!==null)for(t=t.Mu();t.next();){var n=t.value;if(n.category==="Comment"&&n.isVisible()){var i=this.network.ki(n);i===null&&(i=this.network.Bl(n)),i.charge=this.defaultCommentElectricalCharge,n=null;for(var r=i.destinationEdges;r.next();){var o=r.value;if(o.toVertex===e){n=o;break}}if(n===null){for(r=i.sourceEdges;r.next();)if(o=r.value,o.fromVertex===e){n=o;break}}n===null&&(n=this.network.Zj(e,i,null)),n.length=this.defaultCommentSpringLength}}};function X1(e,t){var n=e.bounds,i=n.x;e=n.y;var r=n.width;n=n.height;var o=t.bounds,a=o.x;t=o.y;var l=o.width;return o=o.height,i+r<a?e>t+o?(n=i+r-a,e=e-t-o,qe.sqrt(n*n+e*e)):e+n<t?(i=i+r-a,e=e+n-t,qe.sqrt(i*i+e*e)):a-(i+r):i>a+l?e>t+o?(n=i-a-l,e=e-t-o,qe.sqrt(n*n+e*e)):e+n<t?(i=i-a-l,e=e+n-t,qe.sqrt(i*i+e*e)):i-(a+l):e>t+o?e-(t+o):e+n<t?t-(e+n):.1}function Q1(e,t){for(e.ah=null,t=e.An+t;e.An<t&&(e.An++,Jb(e)););e.ah=null}function Jb(e){e.ah===null&&(e.ah=e.network.vertexes.Fa());var t=e.ah;if(0>=t.length)return!1;var n=t[0];n.forceX=0,n.forceY=0;for(var i=n.centerX,r=i,o=n=n.centerY,a=1;a<t.length;a++){var l=t[a];l.forceX=0,l.forceY=0;var u=l.centerX;l=l.centerY,i=Math.min(i,u),r=Math.max(r,u),n=Math.min(n,l),o=Math.max(o,l)}(r=r-i>o-n)?t.sort(function(V,xe){return V===null||xe===null||V===xe?0:V.centerX-xe.centerX}):t.sort(function(V,xe){return V===null||xe===null||V===xe?0:V.centerY-xe.centerY}),n=e.Zf;var f=i=l=0;for(o=0;o<t.length;o++){a=t[o],i=a.bounds,l=a.focus,u=i.x+l.x;var p=i.y+l.y;i=a.charge*e.electricalFieldX(u,p),f=a.charge*e.electricalFieldY(u,p),i+=a.mass*e.gravitationalFieldX(u,p),f+=a.mass*e.gravitationalFieldY(u,p),a.forceX+=i,a.forceY+=f;for(var x=o+1;x<t.length;x++){var N=t[x];if(N!==a){i=N.bounds,l=N.focus,f=i.x+l.x;var R=i.y+l.y;if(u-f>n||f-u>n){if(r)break}else if(p-R>n||R-p>n){if(!r)break}else{var _=X1(a,N);1>_?(i=e.randomNumberGenerator,i===null&&(e.randomNumberGenerator=i=new Lm),_=i.random(),l=i.random(),u>f?(i=Math.abs(N.bounds.right-a.bounds.x),i=(1+i)*_):u<f?(i=Math.abs(N.bounds.x-a.bounds.right),i=-(1+i)*_):(i=Math.max(N.width,a.width),i=(1+i)*_-i/2),p>R?(f=Math.abs(N.bounds.bottom-a.bounds.y),f=(1+f)*l):u<f?(f=Math.abs(N.bounds.y-a.bounds.bottom),f=-(1+f)*l):(f=Math.max(N.height,a.height),f=(1+f)*l-f/2)):(l=-(a.charge*N.charge)/(_*_),i=(f-u)/_*l,f=(R-p)/_*l),a.forceX+=i,a.forceY+=f,N.forceX-=i,N.forceY-=f}}}}for(r=e.network.edges.iterator;r.next();)l=r.value,n=l.fromVertex,o=l.toVertex,a=n.bounds,u=n.focus,i=a.x+u.x,a=a.y+u.y,p=o.bounds,x=o.focus,u=p.x+x.x,p=p.y+x.y,x=X1(n,o),1>x?(x=e.randomNumberGenerator,x===null&&(e.randomNumberGenerator=x=new Lm),l=x.random(),x=x.random(),i=(i>u?1:-1)*(1+(o.width>n.width?o.width:n.width))*l,f=(a>p?1:-1)*(1+(o.height>n.height?o.height:n.height))*x):(l=l.stiffness*(x-l.length),i=(u-i)/x*l,f=(p-a)/x*l),n.forceX+=i,n.forceY+=f,o.forceX-=i,o.forceY-=f;for(r=i=0;r<t.length;r++)n=t[r],e.isFixed(n)?e.moveFixedVertex(n):i=Math.max(i,e.moveVertex(n)||0);return i>e.epsilonDistance*e.epsilonDistance}$s.prototype.moveVertex=function(e){var t=e.forceX,n=e.forceY,i=this.moveLimit;return t<-i?t=-i:t>i&&(t=i),n<-i?n=-i:n>i&&(n=i),e.centerX+=t,e.centerY+=n,t*t+n*n},$s.prototype.moveFixedVertex=function(){},$s.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},$s.prototype.yv=function(){if(this.setsPortSpots)for(var e=this.network.edges.iterator;e.next();){var t=e.value.link;t!==null&&(t.fromSpot=Kr,t.toSpot=Kr)}},$s.prototype.commitNodes=function(){var e=0,t=0;if(this.arrangesToOrigin){var n=Zt.alloc();this.computeBounds(this.network,n),t=this.arrangementOrigin,e=t.x-n.x,t=t.y-n.y,Zt.free(n)}n=Zt.alloc();for(var i=this.network.vertexes.iterator;i.next();){var r=i.value;(e!==0||t!==0)&&(n.assign(r.bounds),n.x+=e,n.y+=t,r.bounds=n),r.commit()}Zt.free(n)},$s.prototype.commitLinks=function(){for(var e=this.network.edges.iterator;e.next();)e.value.commit()},$s.prototype.springStiffness=function(e){return e=e.stiffness,isNaN(e)?this.Hk:e},$s.prototype.springLength=function(e){return e=e.length,isNaN(e)?this.Gk:e},$s.prototype.electricalCharge=function(e){return e=e.charge,isNaN(e)?this.Ek:e},$s.prototype.electricalFieldX=function(){return 0},$s.prototype.electricalFieldY=function(){return 0},$s.prototype.gravitationalMass=function(e){return e=e.mass,isNaN(e)?this.Fk:e},$s.prototype.gravitationalFieldX=function(){return 0},$s.prototype.gravitationalFieldY=function(){return 0},$s.prototype.isFixed=function(e){return e.isFixed},ht.Object.defineProperties($s.prototype,{currentIteration:{get:function(){return this.An}},arrangementSpacing:{get:function(){return this.$d},set:function(e){this.$d.D(e)||(this.$d.assign(e),this.C())}},arrangesToOrigin:{get:function(){return this.Bm},set:function(e){this.Bm!==e&&(this.Bm=e,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(e){this.sf!==e&&(this.sf=e,this.C())}},comments:{get:function(){return this.td},set:function(e){this.td!==e&&(this.td=e,this.C())}},maxIterations:{get:function(){return this.dl},set:function(e){this.dl!==e&&0<=e&&(this.dl=e,this.C())}},epsilonDistance:{get:function(){return this.$m},set:function(e){this.$m!==e&&0<e&&(this.$m=e,this.C())}},infinityDistance:{get:function(){return this.Zf},set:function(e){this.Zf!==e&&1<e&&(this.Zf=e,this.C())}},moveLimit:{get:function(){return this.In},set:function(e){this.In!==e&&1<e&&(this.In=e,this.C())}},randomNumberGenerator:{get:function(){return this.fo},set:function(e){this.fo!==e&&(e!==null&&typeof e.random!="function"&&Ve('ForceDirectedLayout.randomNumberGenerator must have a "random()" function on it: '+e),this.fo=e)}},defaultSpringStiffness:{get:function(){return this.Hk},set:function(e){this.Hk!==e&&(this.Hk=e,this.C())}},defaultSpringLength:{get:function(){return this.Gk},set:function(e){this.Gk!==e&&(this.Gk=e,this.C())}},defaultElectricalCharge:{get:function(){return this.Ek},set:function(e){this.Ek!==e&&(this.Ek=e,this.C())}},defaultGravitationalMass:{get:function(){return this.Fk},set:function(e){this.Fk!==e&&(this.Fk=e,this.C())}},defaultCommentSpringLength:{get:function(){return this.Vm},set:function(e){this.Vm!==e&&(this.Vm=e,this.C())}},defaultCommentElectricalCharge:{get:function(){return this.Um},set:function(e){this.Um!==e&&(this.Um=e,this.C())}}}),$s.className="ForceDirectedLayout";function J1(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}J1.className="ForceDirectedSubnet";function Yd(e){Oo.call(this,e)}yi(Yd,Oo),Yd.prototype.createVertex=function(){return new Zp(this)},Yd.prototype.createEdge=function(){return new Yp(this)},Yd.className="ForceDirectedNetwork";function Zp(e){ns.call(this,e),this.ia=!1,this.Ha=this.u=NaN,this.sh=this.Vd=this.V=this.F=0,this.We=this.Hj=null,this.sv=0}yi(Zp,ns),ht.Object.defineProperties(Zp.prototype,{isFixed:{get:function(){return this.ia},set:function(e){this.ia!==e&&(this.ia=e)}},charge:{get:function(){return this.u},set:function(e){this.u!==e&&(this.u=e)}},mass:{get:function(){return this.Ha},set:function(e){this.Ha!==e&&(this.Ha=e)}},forceX:{get:function(){return this.F},set:function(e){this.F!==e&&(this.F=e)}},forceY:{get:function(){return this.V},set:function(e){this.V!==e&&(this.V=e)}}}),Zp.className="ForceDirectedVertex";function Yp(e){au.call(this,e),this.j=this.o=NaN}yi(Yp,au),ht.Object.defineProperties(Yp.prototype,{stiffness:{get:function(){return this.o},set:function(e){this.o!==e&&(this.o=e)}},length:{get:function(){return this.j},set:function(e){this.j!==e&&(this.j=e)}}}),Yp.className="ForceDirectedEdge";function Lm(){var e=0;e===void 0&&(e=42),this.seed=e,this.ay=48271,this.ey=2147483647,this.Q=44488.07041494893,this.gy=3399,this.by=1/2147483647,this.random()}Lm.prototype.random=function(){var e=this.seed%this.Q*this.ay-this.seed/this.Q*this.gy;return 0<e?this.seed=e:this.seed=e+this.ey,this.seed*this.by},Lm.className="RandomNumberGenerator";function lo(e){Qo.call(this),this.kc=this.ie=25,this.K=0,this.Dk=Bm,this.Zk=_m,this.Qk=zm,this.bj=4,this.rk=Um,this.bg=15,this.sf=!0,this.Cn=4,this.Ra=this.Iq=this.Ia=-1,this.Md=this.Hn=0,this.Ta=this.Kd=this.Ld=this.he=this.tc=null,this.Kn=0,this.Jn=this.kj=null,this.le=0,this.fl=null,this.Rf=new he,this.He=[],this.He.length=100,this.xw=this.ve=0,e&&Object.assign(this,e)}yi(lo,Qo),lo.prototype.cloneProtected=function(e){Qo.prototype.cloneProtected.call(this,e),e.ie=this.ie,e.kc=this.kc,e.K=this.K,e.Dk=this.Dk,e.Zk=this.Zk,e.Qk=this.Qk,e.bj=this.bj,e.rk=this.rk,e.bg=this.bg,e.sf=this.sf,e.Cn=this.Cn,e.ve=this.ve},lo.prototype.qb=function(e){e.classType===lo?e.name.indexOf("Aggressive")===0?this.aggressiveOption=e:e.name.indexOf("Cycle")===0?this.cycleRemoveOption=e:e.name.indexOf("Init")===0?this.initializeOption=e:e.name.indexOf("Layer")===0?this.layeringOption=e:Ve("Unknown enum value: "+e):Qo.prototype.qb.call(this,e)},lo.prototype.createNetwork=function(){return new $f(this)},lo.prototype.doLayout=function(e){for(this.network===null&&(this.network=this.makeNetwork(e)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),this.Iq=-1,this.Md=this.Hn=0,this.fl=this.Jn=this.kj=null,e=0;e<this.He.length;e++)this.He[e]=null;if(0<this.network.vertexes.count){for(this.network.Ko(),this.cycleRemoveOption!==Qp&&this.removeCycles(),e=this.network.vertexes.iterator;e.next();)e.value.layer=-1;for(this.Ia=-1,this.assignLayers(),e.reset();e.next();)this.Ia=Math.max(this.Ia,e.value.layer);this.cycleRemoveOption===Qp&&this.removeCycles(),e=this.network;for(var t=[],n=e.edges.iterator;n.next();){var i=n.value;i.valid=!1,t.push(i)}for(n=0;n<t.length;n++){i=t[n];var r=i.fromVertex,o=i.toVertex;if(!(i.valid||(r.node===null&&r.data===null||o.node===null&&o.data===null)&&r.layer===o.layer)){var a=0,l=0,u=0,f=0;if(i.link!==null){if(l=i.link,l===null)continue;var p=r.node;if(a=o.node,p===null||a===null)continue;var x=l.fromNode;u=l.toNode;for(var N=l.fromPort;N!==null&&!N.Ed();)N=N.panel;for(l=l.toPort;l!==null&&!l.Ed();)l=l.panel;if(i.rev){f=x;var R=N;x=u,N=l,u=f,l=R}var _=r.focus;f=o.focus;var V=i.rev?o.bounds:r.bounds;R=he.alloc(),p!==x?V.w()&&x.isVisible()?x.actualBounds.w()?(xh(x,N,Rr,R),R.x+=x.actualBounds.x-V.x,R.y+=x.actualBounds.y-V.y):(xh(x,N,Rr,R),R.w()||R.assign(_)):R.assign(_):V.w()?(xh(x,N,Rr,R),R.w()||R.assign(_)):R.assign(_),x=i.rev?r.bounds:o.bounds,p=he.alloc(),a!==u?x.w()&&u.isVisible()?u.actualBounds.w()?(xh(u,l,Rr,p),p.x+=u.actualBounds.x-x.x,p.y+=u.actualBounds.y-x.y):(xh(u,l,Rr,p),p.w()||p.assign(f)):p.assign(f):x.w()?(xh(u,l,Rr,p),p.w()||p.assign(f)):p.assign(f),this.K===90||this.K===270?(a=Math.round((R.x-_.x)/this.kc),u=R.x,l=Math.round((p.x-f.x)/this.kc),f=p.x):(a=Math.round((R.y-_.y)/this.kc),u=R.y,l=Math.round((p.y-f.y)/this.kc),f=p.y),he.free(R),he.free(p),i.portFromColOffset=a,i.portFromPos=u,i.portToColOffset=l,i.portToPos=f}else i.portFromColOffset=0,i.portFromPos=0,i.portToColOffset=0,i.portToPos=0;if(R=r.layer,p=o.layer,x=0,V=i.link,V!==null){var xe=V.fromPort,ue=V.toPort;if(xe!==null&&ue!==null){var Fe=V.fromNode;if(N=V.toNode,Fe!==null&&N!==null){var Ue=Fm(this,!0),We=Fm(this,!1),rt=this.setsPortSpots?Ue:V.computeSpot(!0,xe);_=this.setsPortSpots?We:V.computeSpot(!1,ue);var At=V.isOrthogonal;rt.$c()&&rt.Hf(We)&&_.$c()&&_.Hf(Ue)?x=0:(Ue=V.getLinkPoint(Fe,xe,rt,!0,At,N,ue,he.alloc()),We=V.getLinkDirection(Fe,xe,Ue,rt,!0,At,N,ue),he.free(Ue),rt.ys()||We!==sb(this,i,!0)?this.setsPortSpots&&Fe!==null&&Fe.ports.count===1&&i.rev&&(x+=1):x+=1,rt=V.getLinkPoint(N,ue,_,!1,At,Fe,xe,he.alloc()),V=V.getLinkDirection(N,ue,rt,_,!1,At,Fe,xe),he.free(rt),_.ys()||V!==sb(this,i,!1)?this.setsPortSpots&&N!==null&&N.ports.count===1&&i.rev&&(x+=2):x+=2)}}}if(N=x,x=N===1||N===3,(N=N===2||N===3)&&(_=e.createVertex(),_.node=null,_.Dj=1,_.layer=R,_.near=r,e.dh(_),r=e.Zj(r,_,i.link),r.valid=!1,r.rev=i.rev,r.portFromColOffset=a,r.portToColOffset=0,r.portFromPos=u,r.portToPos=0,r=_),V=1,x&&V--,R-p>V&&0<R){for(i.valid=!1,_=e.createVertex(),_.node=null,_.Dj=2,_.layer=R-1,e.dh(_),r=e.Zj(r,_,i.link),r.valid=!0,r.rev=i.rev,r.portFromColOffset=N?0:a,r.portToColOffset=0,r.portFromPos=N?0:u,r.portToPos=0,r=_,R--;R-p>V&&0<R;)_=e.createVertex(),_.node=null,_.Dj=3,_.layer=R-1,e.dh(_),r=e.Zj(r,_,i.link),r.valid=!0,r.rev=i.rev,r.portFromColOffset=0,r.portToColOffset=0,r.portFromPos=0,r.portToPos=0,r=_,R--;r=e.Zj(_,o,i.link),r.valid=!x,x&&(_.near=o),r.rev=i.rev,r.portFromColOffset=0,r.portToColOffset=l,r.portFromPos=0,r.portToPos=f}else i.valid=!0}}for(e=this.tc=[],t=0;t<=this.Ia;t++)e[t]=0;for(t=this.network.vertexes.iterator;t.next();)t.value.index=-1;for(this.initializeIndices(),this.Iq=-1,n=this.Md=this.Hn=0;n<=this.Ia;n++)e[n]>e[this.Md]&&(this.Iq=e[n]-1,this.Md=n),e[n]<e[this.Hn]&&(this.Hn=n);for(this.fl=[],n=0;n<e.length;n++)this.fl[n]=[];for(t.reset();t.next();)e=t.value,this.fl[e.layer][e.index]=e;for(this.Ra=-1,e=0;e<=this.Ia;e++){for(t=Jh(this,e),n=0,i=this.tc[e],o=0;o<i;o++)r=t[o],n+=this.nodeMinColumnSpace(r,!0),r.column=n,n+=1,n+=this.nodeMinColumnSpace(r,!1);this.Ra=Math.max(this.Ra,n-1),qh(this,e,t)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},lo.prototype.linkMinLength=function(){return 1};function wv(e){var t=e.fromVertex.node||e.fromVertex.data;return e=e.toVertex.node||e.toVertex.data,t===null&&e===null?8:t===null||e===null?4:1}lo.prototype.nodeMinLayerSpace=function(e,t){return e.node===null&&e.data===null?0:this.K===90||this.K===270?t?e.focus.y+10:e.bounds.height-e.focus.y+10:t?e.focus.x+10:e.bounds.width-e.focus.x+10},lo.prototype.nodeMinColumnSpace=function(e,t){if(e.node===null&&e.data===null)return 0;var n=t?e.ev:e.dv;return n!==null?n:(n=this.K,n===90||n===270?t?e.ev=e.focus.x/this.kc+1|0:e.dv=(e.bounds.width-e.focus.x)/this.kc+1|0:t?e.ev=e.focus.y/this.kc+1|0:e.dv=(e.bounds.height-e.focus.y)/this.kc+1|0)};function $l(e){e.kj===null&&(e.kj=[]);for(var t=0,n=e.network.vertexes.iterator;n.next();){var i=n.value;e.kj[t]=i.layer,t++,e.kj[t]=i.column,t++,e.kj[t]=i.index,t++}return e.kj}function Fu(e,t){var n=0;for(e=e.network.vertexes.iterator;e.next();){var i=e.value;i.layer=t[n],n++,i.column=t[n],n++,i.index=t[n],n++}}function q1(e,t,n){var i=Jh(e,t),r=e.tc[t];(e.Jn===null||e.Jn.length<r*r)&&(e.Jn=[]);for(var o=e.Jn,a=0;a<r;a++){var l=0,u=i[a],f=u.near;if(f!==null&&f.layer===u.layer)if(u=f.index,u>a)for(var p=a+1;p<u;p++){var x=i[p];x.near===f&&x.Dj===f.Dj||l++}else for(p=a-1;p>u;p--)x=i[p],x.near===f&&x.Dj===f.Dj||l++;var N;if(0<=n)for(u=i[a].sourceEdgesArrayAccess,f=0;f<u.length;f++){var R=u[f];if(R.valid&&R.fromVertex.layer!==t)for(x=R.fromVertex.index,p=R.portToPos,R=R.portFromPos,N=f+1;N<u.length;N++){var _=u[N];if(_.valid&&_.fromVertex.layer!==t){var V=_.fromVertex.index,xe=_.portToPos;_=_.portFromPos,p<xe&&(x>V||x===V&&R>_)&&l++,xe<p&&(V>x||V===x&&_>R)&&l++}}}if(0>=n){for(u=i[a].destinationEdgesArrayAccess,f=0;f<u.length;f++)if(R=u[f],R.valid&&R.toVertex.layer!==t)for(x=R.toVertex.index,p=R.portToPos,R=R.portFromPos,N=f+1;N<u.length;N++)_=u[N],_.valid&&_.toVertex.layer!==t&&(V=_.toVertex.index,xe=_.portToPos,_=_.portFromPos,R<_&&(x>V||x===V&&p>xe)&&l++,_<R&&(V>x||V===x&&xe>p)&&l++)}for(o[a*r+a]=l,u=a+1;u<r;u++){var ue=0,Fe=0;if(0<=n){l=i[a].sourceEdgesArrayAccess;var Ue=i[u].sourceEdgesArrayAccess;for(f=0;f<l.length;f++)if(R=l[f],R.valid&&R.fromVertex.layer!==t)for(x=R.fromVertex.index,R=R.portFromPos,N=0;N<Ue.length;N++)_=Ue[N],_.valid&&_.fromVertex.layer!==t&&(V=_.fromVertex.index,_=_.portFromPos,(x<V||x===V&&R<_)&&Fe++,(V<x||V===x&&_<R)&&ue++)}if(0>=n){for(l=i[a].destinationEdgesArrayAccess,Ue=i[u].destinationEdgesArrayAccess,f=0;f<l.length;f++)if(R=l[f],R.valid&&R.toVertex.layer!==t)for(x=R.toVertex.index,p=R.portToPos,N=0;N<Ue.length;N++)_=Ue[N],_.valid&&_.toVertex.layer!==t&&(V=_.toVertex.index,xe=_.portToPos,(x<V||x===V&&p<xe)&&Fe++,(V<x||V===x&&xe<p)&&ue++)}o[a*r+u]=ue,o[u*r+a]=Fe}}return qh(e,t,i),o}lo.prototype.countCrossings=function(){for(var e=0,t=0;t<=this.Ia;t++)for(var n=q1(this,t,1),i=this.tc[t],r=0;r<i;r++)for(var o=r;o<i;o++)e+=n[r*i+o];return e};function Rm(e){for(var t=0,n=0;n<=e.Ia;n++){for(var i=e,r=n,o=Jh(i,r),a=i.tc[r],l=0,u=0;u<a;u++){var f=o[u].destinationEdgesArrayAccess;if(f!==null)for(var p=0;p<f.length;p++){var x=f[p];if(x.valid&&x.toVertex.layer!==r){var N=x.fromVertex.column+x.portFromColOffset,R=x.toVertex.column+x.portToColOffset;l+=(Math.abs(N-R)+1)*wv(x)}}}qh(i,r,o),t+=l}return t}lo.prototype.normalize=function(){var e=1/0;this.Ra=-1;for(var t=this.network.vertexes.iterator;t.next();){var n=t.value;e=Math.min(e,n.column-this.nodeMinColumnSpace(n,!0)),this.Ra=Math.max(this.Ra,n.column+this.nodeMinColumnSpace(n,!1))}for(t.reset();t.next();)t.value.column-=e;this.Ra-=e};function Cv(e,t,n){for(var i=Jh(e,t),r=e.tc[t],o=[],a=0;a<r;a++){var l=i[a],u=null;0>=n&&(u=l.sourceEdgesArrayAccess);var f=null;0<=n&&(f=l.destinationEdgesArrayAccess);var p=0,x=0,N=l.near;if(N!==null&&N.layer===l.layer&&(p+=N.column-1,x++),u!==null)for(N=0;N<u.length;N++){l=u[N];var R=l.fromVertex;l.valid&&!l.rev&&R.layer!==t&&(p+=R.column,x++)}if(f!==null)for(u=0;u<f.length;u++)l=f[u],N=l.toVertex,l.valid&&!l.rev&&N.layer!==t&&(p+=N.column,x++);o[a]=x===0?-1:p/x}return qh(e,t,i),o}function eb(e,t,n){for(var i=Jh(e,t),r=e.tc[t],o=[],a=0;a<r;a++){var l=i[a],u=null;0>=n&&(u=l.sourceEdgesArrayAccess);var f=null;0<=n&&(f=l.destinationEdgesArrayAccess);var p=0,x=[],N=l.near;if(N!==null&&N.layer===l.layer&&(x[p]=N.column-1,p++),l=void 0,u!==null)for(N=0;N<u.length;N++){l=u[N];var R=l.fromVertex;l.valid&&!l.rev&&R.layer!==t&&(x[p]=R.column+l.portFromColOffset,p++)}if(f!==null)for(u=0;u<f.length;u++)l=f[u],N=l.toVertex,l.valid&&!l.rev&&N.layer!==t&&(x[p]=N.column+l.portToColOffset,p++);p===0?o[a]=-1:(x.sort(function(_,V){return _-V}),f=p>>1,o[a]=p&1?x[f]:x[f-1]+x[f]>>1)}return qh(e,t,i),o}function Xp(e,t,n,i,r,o){if(t.component===i){if(t.component=n,r)for(var a=t.destinationEdges;a.next();){var l=a.value,u=l.toVertex,f=t.layer-u.layer;l=e.linkMinLength(l),f===l&&Xp(e,u,n,i,r,o)}if(o)for(a=t.sourceEdges;a.next();)l=a.value,u=l.fromVertex,f=u.layer-t.layer,l=e.linkMinLength(l),f===l&&Xp(e,u,n,i,r,o)}}function Tv(e,t,n,i,r,o){if(t.component===i){if(t.component=n,r)for(var a=t.destinationEdges;a.next();)Tv(e,a.value.toVertex,n,i,r,o);if(o)for(t=t.sourceEdges;t.next();)Tv(e,t.value.fromVertex,n,i,r,o)}}lo.prototype.removeCycles=function(){for(var e=this.network.edges.iterator;e.next();)e.value.rev=!1;switch(this.Dk){default:case kv:e=this.network;var t=0,n=e.vertexes.count-1,i=[];i.length=n+1;for(var r=e.vertexes.iterator;r.next();)r.value.valid=!0;for(;qb(e)!==null;){for(r=tb(e);r!==null;)i[n]=r,n--,r.valid=!1,r=tb(e);for(r=nb(e);r!==null;)i[t]=r,t++,r.valid=!1,r=nb(e);r=null;for(var o=0,a=this.network.vertexes.iterator;a.next();){var l=a.value;if(l.valid){for(var u=0,f=l.destinationEdges;f.next();)f.value.toVertex.valid&&u++;f=0;for(var p=l.sourceEdges;p.next();)p.value.fromVertex.valid&&f++;(r===null||o<u-f)&&(r=l,o=u-f)}}r!==null&&(i[t]=r,t++,r.valid=!1)}for(t=0;t<e.vertexes.count;t++)i[t].index=t;for(i=e.edges.iterator;i.next();)t=i.value,t.fromVertex.index>t.toVertex.index&&(e.gm(t),t.rev=!0);break;case Bm:for(i=this.network.vertexes.iterator;i.next();)e=i.value,e.Ll=-1,e.finish=-1;for(e=this.network.edges.iterator;e.next();)e.value.forest=!1;for(this.Kn=0,i.reset();i.next();)t=i.value,t.sourceEdges.count===0&&Nv(this,t);for(i.reset();i.next();)t=i.value,t.Ll===-1&&Nv(this,t);for(e.reset();e.next();)i=e.value,i.forest||(t=i.fromVertex,n=t.finish,r=i.toVertex,o=r.finish,r.Ll<t.Ll&&n<o&&(this.network.gm(i),i.rev=!0));break;case Qp:for(e=this.network,t=e.vertexes.iterator,i=1/0;t.next();)i=Math.min(i,t.value.layer);if(1/0>i){if(0>i)for(t.reset();t.next();)t.value.layer-=i;for(i=[],t.reset();t.next();)n=t.value,r=i[n.layer],r===void 0?i[n.layer]=[n]:r.push(n);for(n=t=0;n<i.length;n++)if(r=i[n],!r||r.length===0)t++;else if(0<n)for(o=0;o<r.length;o++)r[o].layer-=t;for(i=e.edges.iterator;i.next();)t=i.value,t.fromVertex.layer<t.toVertex.layer&&(e.gm(t),t.rev=!0)}}};function qb(e){for(e=e.vertexes.iterator;e.next();){var t=e.value;if(t.valid)return t}return null}function tb(e){for(e=e.vertexes.iterator;e.next();){var t=e.value;if(t.valid){for(var n=!0,i=t.destinationEdges;i.next();)if(i.value.toVertex.valid){n=!1;break}if(n)return t}}return null}function nb(e){for(e=e.vertexes.iterator;e.next();){var t=e.value;if(t.valid){for(var n=!0,i=t.sourceEdges;i.next();)if(i.value.fromVertex.valid){n=!1;break}if(n)return t}}return null}function Nv(e,t){t.Ll=e.Kn,e.Kn++;for(var n=t.destinationEdges;n.next();){var i=n.value,r=i.toVertex;r.Ll===-1&&(i.forest=!0,Nv(e,r))}t.finish=e.Kn,e.Kn++}lo.prototype.assignLayers=function(){switch(this.Zk){case Iv:ib(this);break;case Mv:for(var e,t=this.network.vertexes.iterator;t.next();)e=ob(this,t.value),this.Ia=Math.max(e,this.Ia);for(t.reset();t.next();)e=t.value,e.layer=this.Ia-e.layer;break;default:case _m:for(ib(this),t=this.network.vertexes.iterator;t.next();)t.value.valid=!1;for(t.reset();t.next();)e=t.value,e.sourceEdges.count===0&&ab(this,e);for(e=1/0,t.reset();t.next();)e=Math.min(e,t.value.layer);for(this.Ia=-1,t.reset();t.next();){var n=t.value;n.layer-=e,this.Ia=Math.max(this.Ia,n.layer)}}};function ib(e){for(var t=e.network.vertexes.iterator;t.next();){var n=rb(e,t.value);e.Ia=Math.max(n,e.Ia)}}function rb(e,t){var n=0;if(t.layer===-1){for(var i=t.destinationEdges;i.next();){var r=i.value,o=r.toVertex;r=e.linkMinLength(r),n=Math.max(n,rb(e,o)+r)}t.layer=n}else n=t.layer;return n}function ob(e,t){var n=0;if(t.layer===-1){for(var i=t.sourceEdges;i.next();){var r=i.value,o=r.fromVertex;r=e.linkMinLength(r),n=Math.max(n,ob(e,o)+r)}t.layer=n}else n=t.layer;return n}function ab(e,t){if(!t.valid){t.valid=!0;for(var n=t.destinationEdges;n.next();)ab(e,n.value.toVertex);for(n=e.network.vertexes.iterator;n.next();)n.value.component=-1;for(var i=t.sourceEdgesArrayAccess,r=i.length,o=0;o<r;o++){var a=i[o],l=a.fromVertex,u=a.toVertex;a=e.linkMinLength(a),l.layer-u.layer>a&&Xp(e,l,0,-1,!0,!1)}for(Xp(e,t,1,-1,!0,!0);t.component!==0;){for(o=0,i=1/0,l=0,u=null,a=e.network.vertexes.iterator;a.next();){var f=a.value;if(f.component===1){var p=0,x=!1,N=f.sourceEdgesArrayAccess;r=N.length;for(var R=0;R<r;R++){var _=N[R],V=_.fromVertex;p+=1,V.component!==1&&(o+=1,V=V.layer-f.layer,_=e.linkMinLength(_),i=Math.min(i,V-_))}for(N=f.destinationEdgesArrayAccess,r=N.length,R=0;R<r;R++)_=N[R].toVertex,--p,_.component!==1?--o:x=!0;(u===null||p<l)&&!x&&(u=f,l=p)}}if(0<o){for(n.reset();n.next();)r=n.value,r.component===1&&(r.layer+=i);t.component=0}else u.component=0}for(n=e.network.vertexes.iterator;n.next();)n.value.component=-1;for(Xp(e,t,1,-1,!0,!1);t.component!==0;){for(i=0,r=1/0,o=0,l=null,u=e.network.vertexes.iterator;u.next();)if(a=u.value,a.component===1){for(f=0,p=!1,N=a.sourceEdgesArrayAccess,x=N.length,R=0;R<x;R++)_=N[R].fromVertex,f+=1,_.component!==1?i+=1:p=!0;for(N=a.destinationEdgesArrayAccess,x=N.length,R=0;R<x;R++)_=N[R],V=_.toVertex,--f,V.component!==1&&(--i,V=a.layer-V.layer,_=e.linkMinLength(_),r=Math.min(r,V-_));(l===null||f>o)&&!p&&(l=a,o=f)}if(0>i){for(n.reset();n.next();)i=n.value,i.component===1&&(i.layer-=r);t.component=0}else l.component=0}}}function sb(e,t,n){return e.K===90?n&&!t.rev||!n&&t.rev?270:90:e.K===180?n&&!t.rev||!n&&t.rev?0:180:e.K===270?n&&!t.rev||!n&&t.rev?90:270:n&&!t.rev||!n&&t.rev?180:0}lo.prototype.initializeIndices=function(){switch(this.Qk){default:case Lv:for(var e=this.network.vertexes.iterator;e.next();){var t=e.value,n=t.layer;t.index=this.tc[n],this.tc[n]++}break;case zm:for(e=this.network.vertexes.iterator,t=this.Ia;0<=t;t--)for(e.reset();e.next();)n=e.value,n.layer===t&&n.index===-1&&lb(this,n);break;case Ov:for(e=this.network.vertexes.iterator,t=0;t<=this.Ia;t++)for(e.reset();e.next();)n=e.value,n.layer===t&&n.index===-1&&ub(this,n)}};function lb(e,t){var n=t.layer;for(t.index=e.tc[n],e.tc[n]++,t=t.destinationEdgesArrayAccess,n=!0;n;){n=!1;for(var i=0;i<t.length-1;i++){var r=t[i],o=t[i+1];r.portFromColOffset>o.portFromColOffset&&(n=!0,t[i]=o,t[i+1]=r)}}for(n=0;n<t.length;n++)i=t[n],i.valid&&(i=i.toVertex,i.index===-1&&lb(e,i))}function ub(e,t){var n=t.layer;t.index=e.tc[n],e.tc[n]++,t=t.sourceEdgesArrayAccess;for(var i=!0;i;)for(i=!1,n=0;n<t.length-1;n++){var r=t[n],o=t[n+1];r.portToColOffset>o.portToColOffset&&(i=!0,t[n]=o,t[n+1]=r)}for(n=0;n<t.length;n++)i=t[n],i.valid&&(i=i.fromVertex,i.index===-1&&ub(e,i))}lo.prototype.reduceCrossings=function(){var e=this.countCrossings(),t=$l(this),n,i;for(n=0;n<this.bj;n++){for(i=0;i<=this.Ia;i++)Dm(this,i,1),Gu(this,i,1);var r=this.countCrossings();for(r<e&&(e=r,t=$l(this)),i=this.Ia;0<=i;i--)Dm(this,i,-1),Gu(this,i,-1);r=this.countCrossings(),r<e&&(e=r,t=$l(this))}for(Fu(this,t),n=0;n<this.bj;n++){for(i=0;i<=this.Ia;i++)Dm(this,i,0),Gu(this,i,0);for(r=this.countCrossings(),r<e&&(e=r,t=$l(this)),i=this.Ia;0<=i;i--)Dm(this,i,0),Gu(this,i,0);r=this.countCrossings(),r<e&&(e=r,t=$l(this))}Fu(this,t);var o,a,l;switch(this.rk){case Rv:break;case Dv:for(l=e+1;(i=this.countCrossings())<l;)for(l=i,n=this.Ia;0<=n;n--)for(a=0;a<=n;a++){for(o=!0;o;)for(o=!1,i=n;i>=a;i--)o=Gu(this,i,-1)||o;for(r=this.countCrossings(),r>=e?Fu(this,t):(e=r,t=$l(this)),o=!0;o;)for(o=!1,i=n;i>=a;i--)o=Gu(this,i,1)||o;for(r=this.countCrossings(),r>=e?Fu(this,t):(e=r,t=$l(this)),o=!0;o;)for(o=!1,i=a;i<=n;i++)o=Gu(this,i,1)||o;for(r>=e?Fu(this,t):(e=r,t=$l(this)),o=!0;o;)for(o=!1,i=a;i<=n;i++)o=Gu(this,i,-1)||o;for(r>=e?Fu(this,t):(e=r,t=$l(this)),o=!0;o;)for(o=!1,i=n;i>=a;i--)o=Gu(this,i,0)||o;for(r>=e?Fu(this,t):(e=r,t=$l(this)),o=!0;o;)for(o=!1,i=a;i<=n;i++)o=Gu(this,i,0)||o;r>=e?Fu(this,t):(e=r,t=$l(this))}break;default:case Um:for(n=this.Ia,a=0,l=e+1;(i=this.countCrossings())<l;){for(l=i,o=!0;o;)for(o=!1,i=n;i>=a;i--)o=Gu(this,i,-1)||o;for(r=this.countCrossings(),r>=e?Fu(this,t):(e=r,t=$l(this)),o=!0;o;)for(o=!1,i=n;i>=a;i--)o=Gu(this,i,1)||o;for(r=this.countCrossings(),r>=e?Fu(this,t):(e=r,t=$l(this)),o=!0;o;)for(o=!1,i=a;i<=n;i++)o=Gu(this,i,1)||o;for(r>=e?Fu(this,t):(e=r,t=$l(this)),o=!0;o;)for(o=!1,i=a;i<=n;i++)o=Gu(this,i,-1)||o;for(r>=e?Fu(this,t):(e=r,t=$l(this)),o=!0;o;)for(o=!1,i=n;i>=a;i--)o=Gu(this,i,0)||o;for(r>=e?Fu(this,t):(e=r,t=$l(this)),o=!0;o;)for(o=!1,i=a;i<=n;i++)o=Gu(this,i,0)||o;r>=e?Fu(this,t):(e=r,t=$l(this))}}Fu(this,t)};function Dm(e,t,n){var i=Jh(e,t),r=e.tc[t],o=eb(e,t,n),a=Cv(e,t,n);for(n=0;n<r;n++)a[n]===-1&&(a[n]=i[n].column),o[n]===-1&&(o[n]=i[n].column);for(var l=!0,u;l;)for(l=!1,n=0;n<r-1;n++)(o[n+1]<o[n]||o[n+1]===o[n]&&a[n+1]<a[n])&&(l=!0,u=o[n],o[n]=o[n+1],o[n+1]=u,u=a[n],a[n]=a[n+1],a[n+1]=u,u=i[n],i[n]=i[n+1],i[n+1]=u);for(n=o=0;n<r;n++)u=i[n],u.index=n,o+=e.nodeMinColumnSpace(u,!0),u.column=o,o+=1,o+=e.nodeMinColumnSpace(u,!1);qh(e,t,i)}function Gu(e,t,n){var i=Jh(e,t),r=e.tc[t];n=q1(e,t,n);var o,a=[];for(o=0;o<r;o++)a[o]=-1;var l=[];for(o=0;o<r;o++)l[o]=-1;for(var u=!1,f=!0;f;)for(f=!1,o=0;o<r-1;o++){var p=n[i[o].index*r+i[o+1].index],x=n[i[o+1].index*r+i[o].index],N=0,R=0,_=i[o].column,V=i[o+1].column,xe=e.nodeMinColumnSpace(i[o],!0),ue=e.nodeMinColumnSpace(i[o],!1),Fe=e.nodeMinColumnSpace(i[o+1],!0),Ue=e.nodeMinColumnSpace(i[o+1],!1);xe=_-xe+Fe,ue=V-ue+Ue;var We=i[o].sourceEdges.iterator;for(We.reset();We.next();)if(Fe=We.value,Ue=Fe.fromVertex,Fe.valid&&Ue.layer===t){for(Fe=0;i[Fe]!==Ue;)Fe++;Fe<o&&(N+=2*(o-Fe),R+=2*(o+1-Fe)),Fe===o+1&&(N+=1),Fe>o+1&&(N+=4*(Fe-o),R+=4*(Fe-(o+1)))}for(We=i[o].destinationEdges.iterator,We.reset();We.next();)if(Fe=We.value,Ue=Fe.toVertex,Fe.valid&&Ue.layer===t){for(Fe=0;i[Fe]!==Ue;)Fe++;Fe===o+1&&(R+=1)}for(We=i[o+1].sourceEdges.iterator,We.reset();We.next();)if(Fe=We.value,Ue=Fe.fromVertex,Fe.valid&&Ue.layer===t){for(Fe=0;i[Fe]!==Ue;)Fe++;Fe<o&&(N+=2*(o+1-Fe),R+=2*(o-Fe)),Fe===o&&(R+=1),Fe>o+1&&(N+=4*(Fe-(o+1)),R+=4*(Fe-o))}for(We=i[o+1].destinationEdges.iterator,We.reset();We.next();)if(Fe=We.value,Ue=Fe.toVertex,Fe.valid&&Ue.layer===t){for(Fe=0;i[Fe]!==Ue;)Fe++;Fe===o&&(N+=1)}Fe=Ue=0,We=a[i[o].index];var rt=l[i[o].index],At=a[i[o+1].index],Kn=l[i[o+1].index];We!==-1&&(Ue+=Math.abs(We-_),Fe+=Math.abs(We-ue)),rt!==-1&&(Ue+=Math.abs(rt-_),Fe+=Math.abs(rt-ue)),At!==-1&&(Ue+=Math.abs(At-V),Fe+=Math.abs(At-xe)),Kn!==-1&&(Ue+=Math.abs(Kn-V),Fe+=Math.abs(Kn-xe)),(R<N-.5||R===N&&x<p-.5||R===N&&x===p&&Fe<Ue-.5)&&(f=u=!0,i[o].column=ue,i[o+1].column=xe,p=i[o],i[o]=i[o+1],i[o+1]=p)}for(o=0;o<r;o++)i[o].index=o;return qh(e,t,i),u}lo.prototype.straightenAndPack=function(){if(this.ve===0){var e=(this.bg&1)!==0,t=(this.bg&sx)!==0;if(1e3<this.network.edges.count&&t&&(e=!1),e){var n=[];for(t=0;t<=this.Ia;t++)n[t]=0;for(var i,r=this.network.vertexes.iterator;r.next();){var o=r.value;t=o.layer,i=o.column,o=this.nodeMinColumnSpace(o,!1),n[t]=Math.max(n[t],i+o)}for(r.reset();r.next();)o=r.value,t=o.layer,i=o.column,o.column=(8*(this.Ra-n[t])>>1)+8*i;this.Ra*=8}if(this.bg&2)for(n=!0;n;){for(n=!1,t=this.Md+1;t<=this.Ia;t++)n=Hf(this,t,1)||n;for(t=this.Md-1;0<=t;t--)n=Hf(this,t,-1)||n;n=Hf(this,this.Md,0)||n}if(this.bg&4){for(t=this.Md+1;t<=this.Ia;t++)Av(this,t,1);for(t=this.Md-1;0<=t;t--)Av(this,t,-1);Av(this,this.Md,0)}if(e&&(cb(this,-1),cb(this,1)),this.bg&2)for(n=!0;n;){for(n=!1,n=Hf(this,this.Md,0)||n,t=this.Md+1;t<=this.Ia;t++)n=Hf(this,t,0)||n;for(t=this.Md-1;0<=t;t--)n=Hf(this,t,0)||n}}else ix(this)};function Hf(e,t,n){for(var i=!1;ex(e,t,n);)i=!0;return i}function ex(e,t,n){var i,r=Jh(e,t),o=e.tc[t],a=Cv(e,t,-1);if(0<n)for(i=0;i<o;i++)a[i]=-1;var l=Cv(e,t,1);if(0>n)for(i=0;i<o;i++)l[i]=-1;for(var u=!1,f=!0;f;)for(f=!1,i=0;i<o;i++){var p=r[i].column,x=e.nodeMinColumnSpace(r[i],!0),N=e.nodeMinColumnSpace(r[i],!1),R=0;0>i-1||p-r[i-1].column-1>x+e.nodeMinColumnSpace(r[i-1],!1)?R=p-1:R=p,x=i+1>=o||r[i+1].column-p-1>N+e.nodeMinColumnSpace(r[i+1],!0)?p+1:p;var _=N=0,V=0;if(0>=n)for(var xe=r[i].sourceEdges.iterator;xe.next();){var ue=xe.value,Fe=ue.fromVertex;if(ue.valid&&Fe.layer!==t){var Ue=wv(ue),We=ue.portFromColOffset;ue=ue.portToColOffset,Fe=Fe.column,N+=(Math.abs(p+ue-(Fe+We))+1)*Ue,_+=(Math.abs(R+ue-(Fe+We))+1)*Ue,V+=(Math.abs(x+ue-(Fe+We))+1)*Ue}}if(0<=n)for(xe=r[i].destinationEdges.iterator;xe.next();)ue=xe.value,Fe=ue.toVertex,ue.valid&&Fe.layer!==t&&(Ue=wv(ue),We=ue.portFromColOffset,ue=ue.portToColOffset,Fe=Fe.column,N+=(Math.abs(p+We-(Fe+ue))+1)*Ue,_+=(Math.abs(R+We-(Fe+ue))+1)*Ue,V+=(Math.abs(x+We-(Fe+ue))+1)*Ue);ue=We=Ue=0,xe=a[r[i].index],Fe=l[r[i].index],xe!==-1&&(Ue+=Math.abs(xe-p),We+=Math.abs(xe-R),ue+=Math.abs(xe-x)),Fe!==-1&&(Ue+=Math.abs(Fe-p),We+=Math.abs(Fe-R),ue+=Math.abs(Fe-x)),_<N||_===N&&We<Ue?(f=u=!0,r[i].column=R):(V<N||V===N&&ue<Ue)&&(f=u=!0,r[i].column=x)}return qh(e,t,r),e.normalize(),u}function Av(e,t,n){var i=Jh(e,t),r=e.tc[t],o=eb(e,t,n),a=[];for(n=0;n<r;n++)a[n]=o[n];for(o=!0;o;)for(o=!1,n=0;n<r;n++){var l=i[n].column,u=e.nodeMinColumnSpace(i[n],!0),f=e.nodeMinColumnSpace(i[n],!1),p=0;if(a[n]===-1)if(n===0&&n===r-1)p=l;else if(n===0){var x=i[n+1].column;x-l===f+e.nodeMinColumnSpace(i[n+1],!0)?p=l-1:p=l}else n===r-1?(x=i[n-1].column,p=l-x===u+e.nodeMinColumnSpace(i[n-1],!1)?l+1:l):(x=i[n-1].column,u=x+e.nodeMinColumnSpace(i[n-1],!1)+u+1,x=i[n+1].column,f=x-e.nodeMinColumnSpace(i[n+1],!0)-f-1,p=(u+f)/2|0);else n===0&&n===r-1?p=a[n]:n===0?(x=i[n+1].column,f=x-e.nodeMinColumnSpace(i[n+1],!0)-f-1,p=Math.min(a[n],f)):n===r-1?(x=i[n-1].column,u=x+e.nodeMinColumnSpace(i[n-1],!1)+u+1,p=Math.max(a[n],u)):(x=i[n-1].column,u=x+e.nodeMinColumnSpace(i[n-1],!1)+u+1,x=i[n+1].column,f=x-e.nodeMinColumnSpace(i[n+1],!0)-f-1,u<a[n]&&a[n]<f?p=a[n]:u>=a[n]?p=u:f<=a[n]&&(p=f));p!==l&&(o=!0,i[n].column=p)}qh(e,t,i),e.normalize()}function tx(e,t){for(var n=!0,i=e.network.vertexes.iterator;i.next();){var r=i.value,o=e.nodeMinColumnSpace(r,!0),a=e.nodeMinColumnSpace(r,!1);if(r.column-o<=t&&r.column+a>=t){n=!1;break}}if(e=!1,n)for(i.reset();i.next();)n=i.value,n.column>t&&(--n.column,e=!0);return e}function nx(e,t){var n=t+1,i,r=[],o=[];for(i=0;i<=e.Ia;i++)r[i]=!1,o[i]=!1;for(var a=e.network.vertexes.iterator;a.next();){i=a.value;var l=i.column-e.nodeMinColumnSpace(i,!0),u=i.column+e.nodeMinColumnSpace(i,!1);l<=t&&u>=t&&(r[i.layer]=!0),l<=n&&u>=n&&(o[i.layer]=!0)}for(l=!0,n=!1,i=0;i<=e.Ia;i++)l=l&&!(r[i]&&o[i]);if(l)for(a.reset();a.next();)e=a.value,e.column>t&&(--e.column,n=!0);return n}function cb(e,t){for(var n=0;n<=e.Ra;n++)for(;tx(e,n););for(e.normalize(),n=0;n<e.Ra;n++)for(;nx(e,n););e.normalize();var i;if(0<t)for(n=0;n<=e.Ra;n++){var r=$l(e),o=Rm(e);for(i=o+1;o<i;){i=o,hb(e,n,1);var a=Rm(e);a>o?Fu(e,r):a<o&&(o=a,r=$l(e))}}if(0>t)for(n=e.Ra;0<=n;n--)for(r=$l(e),o=Rm(e),i=o+1;o<i;)i=o,hb(e,n,-1),a=Rm(e),a>o?Fu(e,r):a<o&&(o=a,r=$l(e));e.normalize()}function hb(e,t,n){e.le=0;for(var i=e.network.vertexes.iterator;i.next();)i.value.component=-1;if(0<n)for(i.reset();i.next();){var r=i.value;r.column-e.nodeMinColumnSpace(r,!0)<=t&&(r.component=e.le)}if(0>n)for(i.reset();i.next();)r=i.value,r.column+e.nodeMinColumnSpace(r,!1)>=t&&(r.component=e.le);for(e.le++,i.reset();i.next();)t=i.value,t.component===-1&&(Tv(e,t,e.le,-1,!0,!0),e.le++);var o;for(t=[],o=0;o<e.le*e.le;o++)t[o]=!1;for(r=[],o=0;o<(e.Ia+1)*(e.Ra+1);o++)r[o]=-1;for(i.reset();i.next();){o=i.value;for(var a=o.layer,l=Math.max(0,o.column-e.nodeMinColumnSpace(o,!0)),u=Math.min(e.Ra,o.column+e.nodeMinColumnSpace(o,!1));l<=u;l++)r[a*(e.Ra+1)+l]=o.component}for(o=0;o<=e.Ia;o++){if(0<n)for(a=0;a<e.Ra;a++)r[o*(e.Ra+1)+a]!==-1&&r[o*(e.Ra+1)+a+1]!==-1&&r[o*(e.Ra+1)+a]!==r[o*(e.Ra+1)+a+1]&&(t[r[o*(e.Ra+1)+a]*e.le+r[o*(e.Ra+1)+a+1]]=!0);if(0>n)for(a=e.Ra;0<a;a--)r[o*(e.Ra+1)+a]!==-1&&r[o*(e.Ra+1)+a-1]!==-1&&r[o*(e.Ra+1)+a]!==r[o*(e.Ra+1)+a-1]&&(t[r[o*(e.Ra+1)+a]*e.le+r[o*(e.Ra+1)+a-1]]=!0)}for(r=[],o=0;o<e.le;o++)r[o]=!0;for(a=[],a.push(0);a.length!==0;)if(u=a[a.length-1],a.pop(),r[u])for(r[u]=!1,o=0;o<e.le;o++)t[u*e.le+o]&&a.splice(0,0,o);if(0<n)for(i.reset();i.next();)e=i.value,r[e.component]&&--e.column;if(0>n)for(i.reset();i.next();)n=i.value,r[n.component]&&(n.column+=1)}function ix(e){for(var t=Rt(),n=e.fl.length,i=0;i<=n;i++)t[i]=[];for(i=e.network.vertexes.iterator;i.next();){var r=i.value;t[n-r.layer][r.index]=r}n=new Xt,rx(t,n);var o=null,a=null,l=null,u=null,f=(e.ve&1)!==0,p=(e.ve&2)!==0,x=(e.ve&4)!==0,N=(e.ve&8)!==0;for(f&&(e.verticalAlignment(t,n,!0),o=Pm(e,t,!0,!1)),t.reverse(),x&&(e.verticalAlignment(t,n,!1),l=Pm(e,t,!1,!1)),i=Er(t),r=i.next();!r.done;r=i.next())r.value.reverse();N&&(e.verticalAlignment(t,n,!1),u=Pm(e,t,!1,!0)),t.reverse(),p&&(e.verticalAlignment(t,n,!0),a=Pm(e,t,!0,!0)),Jt(t),e.u(o,a,l,u),e.network.vertexes.each(function(R){var _=Rt();f&&_.push(o.get(R)),p&&_.push(a.get(R)),x&&_.push(l.get(R)),N&&_.push(u.get(R)),_.sort(function(xe,ue){return xe-ue});var V=_.length;V=(_[Math.floor((V-1)/2)]+_[Math.ceil((V-1)/2)])/2,Jt(_),R.zc=V})}function rx(e,t){for(var n=e.length,i=1;i<n-1;i++)for(var r=0,o=0,a=e[i],l=e[i+1],u=0;o<l.length;u++){var f=l[u];e:{if(f.node===null){var p=Pv(f);if(0<p.length){p=p[0].node===null;break e}}p=!1}var x=p;if(u===l.length-1||x){for(p=a.length-1,x&&(p=Pv(f)[0].index);o<=u;){if(f=l[o],!f.bo){x=[];for(var N=Er(f.sourceEdgesArrayAccess),R=N.next();!R.done;R=N.next())R=R.value,R.valid&&x.push(R);f.bo=x}for(f=Er(f.bo),x=f.next();!x.done;x=f.next())x=x.value,N=x.fromVertex.index,(N<r||N>p)&&t.add(x);o++}r=p}}}lo.prototype.verticalAlignment=function(e,t,n){ox(e),e=Er(e);for(var i=e.next();!i.done;i=e.next()){var r=-1;i=Er(i.value);for(var o=i.next();!o.done;o=i.next()){o=o.value;var a=n?Pv(o):lx(o),l=a.length;if(0<l){a.sort(function(x,N){return x.vi-N.vi});var u=(l-1)/2;for(l=Math.floor(u),u=Math.ceil(u);l<=u;l++)if(o.align===o){var f=a[l],p=void 0;p=n?Hm(f,o):Hm(o,f),!t.contains(p)&&r<f.vi&&(f.align=o,o.root=f.root,o.align=f.root,r=f.vi)}}}}};function ox(e){for(var t=0;t<e.length;t++)for(var n=e[t],i=0;i<n.length;i++){var r=n[i];r.root=r,r.align=r,r.Tz=t,r.vi=i}}function Pm(e,t,n,i){for(var r=e.K===90||e.K===270,o=Er(t),a=o.next();!a.done;a=o.next()){var l=Er(a.value);for(a=l.next();!a.done;a=l.next())a=a.value,a.sd=a,a.shift=1/0,a.zc=NaN,a.qg=0}for(a=e.K===90||e.K===270,o=Er(t),l=o.next();!l.done;l=o.next()){l=Er(l.value);for(var u=l.next();!u.done;u=l.next())if(u=u.value,u.root===u){for(var f=0,p=u;p.align!==u;){var x=p.align,N=a?p.width:p.height,R=a?x.width:x.height;if(n){var _=Hm(p,x),V=_.portFromPos,xe=_.portToPos;_.link!==null&&(p.node&&p.node!==_.link.fromNode&&(V=a?p.focusX:p.focusY),x.node&&x.node!==_.link.toNode&&(xe=a?x.focusX:x.focusY))}else _=Hm(x,p),V=_.portToPos,xe=_.portFromPos,_.link!==null&&(p.node&&p.node!==_.link.toNode&&(V=a?p.focusX:p.focusY),x.node&&x.node!==_.link.fromNode&&(xe=a?x.focusX:x.focusY));N=i?p.qg+(N-V)-(R-xe):p.qg+V-xe,x.qg=N,f=Math.min(f,N),p=p.align}p=u;do p.qg=p.qg-f,p=p.align;while(p!==u)}}for(n=Er(t),a=n.next();!a.done;a=n.next())for(o=Er(a.value),a=o.next();!a.done;a=o.next())a=a.value,a.root===a&&db(e,a,t);for(n=0;n<t.length;n++)if(!(0>=t[n].length)&&(a=t[n][0],a.sd===a)){a.sd.shift===1/0&&(a.sd.shift=0),a=n,l=0;do{for(o=t[a][l];o.align!==o.root;)o=o.align,a++,0<o.vi&&(l=fb(o,t),l.sd.shift=Math.min(l.sd.shift,o.sd.shift+o.zc+o.qg-(l.zc+l.qg+(r?l.width:l.height)+e.columnSpacing)));l=o.vi+1}while(a<t.length&&l<t[a].length&&o.sd===t[a][l].sd)}for(e=new Zn,t=Er(t),a=t.next();!a.done;a=t.next())for(n=Er(a.value),a=n.next();!a.done;a=n.next())a=a.value,a.zc=a.zc+a.sd.shift+a.qg,o=r?a.width:a.height,e.add(a,i?-a.zc-o:a.zc);return e}function db(e,t,n){if(isNaN(t.zc)){t.zc=0;var i=t;do{if(0<i.vi){var r=fb(i,n),o=r.root;db(e,o,n),t.sd===t&&(t.sd=o.sd);var a=e.K===90||e.K===270?r.width:r.height;t.sd===o.sd&&(t.zc=Math.max(t.zc,o.zc+r.qg+a-i.qg+e.columnSpacing))}i=i.align}while(i!==t);for(;i.align!==t;)i=i.align,i.zc=t.zc,i.sd=t.sd}}function fb(e,t){var n=e.Tz;return e=e.vi,1>e&&Ve("Could not determine previous vertex in layer"),t[n][e-1]}lo.prototype.u=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];n=-1;for(var i=Rt(),r=Rt(),o=1/0,a=0;4>a;a++)if(t[a]){var l=ax(this,t[a],i,r,a);l<o&&(n=a,o=l)}for(o={},a=0;4>a;o={delta:o.delta},a++)t[a]&&(o.delta=a===0||a===2?i[n]-i[a]:r[n]-r[a],o.delta!==0&&t[a].each(function(u){return function(f){f.value+=u.delta}}(o)));Jt(i),Jt(r)};function ax(e,t,n,i,r){if(!t||t.count===0)return n[r]=0,i[r]=0,1/0;var o=1/0,a=-1/0;return t.each(function(l){var u=l.key;l=l.value,u=e.K===90||e.K===270?u.width:u.height,l<o&&(o=l),l+u>a&&(a=l+u)}),n[r]=o,i[r]=a,a-o}lo.prototype.commitLayout=function(){if(this.setsPortSpots)for(var e=Fm(this,!0),t=Fm(this,!1),n=this.network.edges.iterator;n.next();){var i=n.value.link;i!==null&&(i.fromSpot=e,i.toSpot=t)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function Fm(e,t){return e.K===270?t?ia:Oa:e.K===90?t?Oa:ia:e.K===180?t?va:Ma:t?Ma:va}lo.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var e=0;e<=this.Ia;e++)this.he[e]=0,this.Ld[e]=0,this.Kd[e]=0,this.Ta[e]=0;for(e=this.network.vertexes.iterator;e.next();){var t=e.value,n=t.layer;this.he[n]=Math.max(this.he[n],this.nodeMinLayerSpace(t,!0)),this.Ld[n]=Math.max(this.Ld[n],this.nodeMinLayerSpace(t,!1))}t=0,n=this.ie;for(var i=0;i<=this.Ia;i++){var r=n;0>=this.he[i]+this.Ld[i]&&(r=0),0<i&&(t+=r/2),this.K===90||this.K===0?(t+=this.Ld[i],this.Kd[i]=t,t+=this.he[i]):(t+=this.he[i],this.Kd[i]=t,t+=this.Ld[i]),i<this.Ia&&(t+=r/2),this.Ta[i]=t}for(n=t,t=this.arrangementOrigin,i=0;i<=this.Ia;i++)this.K===270?this.Kd[i]=t.y+this.Kd[i]:this.K===90?(this.Kd[i]=t.y+n-this.Kd[i],this.Ta[i]=n-this.Ta[i]):this.K===180?this.Kd[i]=t.x+this.Kd[i]:(this.Kd[i]=t.x+n-this.Kd[i],this.Ta[i]=n-this.Ta[i]);n=this.ve!==0,e.reset(),i=this.K===270||this.K===90;for(var o=1/0,a=r=1/0,l=-1/0;e.next();){var u=e.value,f=u.layer,p=u.column|0;i?(a=t.x+this.kc*p,f=this.Kd[f]):(a=this.Kd[f],f=t.y+this.kc*p),u.centerX=a,u.centerY=f,n&&isFinite(u.zc)&&(i?u.node?u.x=t.x+u.zc:u.centerX=t.x+u.zc:u.node?u.y=t.y+u.zc:u.centerY=t.y+u.zc),o=Math.min(u.x,o),r=Math.min(u.y,r),i?(a=o,l=Math.max(l,u.bounds.right)):(a=r,l=Math.max(l,u.bounds.bottom))}for(this.xw=l-a,o=t.x-o,t=t.y-r,this.Rf=new he(n&&i?0:o,n&&!i?0:t),e.reset();e.next();)n=e.value,n.x+=o,n.y+=t,n.commit()},lo.prototype.Gu=function(){for(var e=0,t=this.ie,n=0;n<=this.Ia;n++)e+=this.he[n],e+=this.Ld[n];e+=this.Ia*t,t=[],n=this.ve!==0?this.xw:this.kc*this.Ra;for(var i=this.maxLayer;0<=i;i--)this.K===270?i===0?t.push(new Zt(0,0,n,Math.abs(this.Ta[0]))):t.push(new Zt(0,this.Ta[i-1],n,Math.abs(this.Ta[i-1]-this.Ta[i]))):this.K===90?i===0?t.push(new Zt(0,this.Ta[0],n,Math.abs(this.Ta[0]-e))):t.push(new Zt(0,this.Ta[i],n,Math.abs(this.Ta[i-1]-this.Ta[i]))):this.K===180?i===0?t.push(new Zt(0,0,Math.abs(this.Ta[0]),n)):t.push(new Zt(this.Ta[i-1],0,Math.abs(this.Ta[i-1]-this.Ta[i]),n)):i===0?t.push(new Zt(this.Ta[0],0,Math.abs(this.Ta[0]-e),n)):t.push(new Zt(this.Ta[i],0,Math.abs(this.Ta[i-1]-this.Ta[i]),n));this.commitLayers(t,this.Rf)},lo.prototype.commitLayers=function(){},lo.prototype.commitLinks=function(){for(var e=this.network.edges.iterator,t;e.next();)t=e.value.link,t!==null&&(t.uh(),t.Fj(),t.zf());for(e.reset();e.next();)t=e.value.link,t!==null&&t.vg();for(e.reset();e.next();){var n=e.value;if(t=n.link,t!==null){t.uh();var i=t,r=i.fromNode,o=i.toNode,a=i.fromPort,l=i.toPort;if(r!==null){var u=r.findVisibleNode();u!==null&&u!==r&&(r=u,a=u.port)}o!==null&&(u=o.findVisibleNode(),u!==null&&u!==o&&(o=u,l=u.port));var f=t.computeSpot(!0,a);u=t.computeSpot(!1,l);var p=n.fromVertex,x=n.toVertex;if(n.valid)t.curve===Su&&t.pointsCount===4&&(p.column===x.column&&this.alignOption===0?(n=t.getLinkPoint(r,a,f,!0,!1,o,l),l=t.getLinkPoint(o,l,u,!1,!1,r,a),n.w()||n.set(r.actualBounds.center),l.w()||l.set(o.actualBounds.center),t.Fj(),t.yf(n.x,n.y),t.yf((2*n.x+l.x)/3,(2*n.y+l.y)/3),t.yf((n.x+2*l.x)/3,(n.y+2*l.y)/3),t.yf(l.x,l.y)):(n=i=!1,a!==null&&f===Ui&&(i=!0),l!==null&&u===Ui&&(n=!0),(i||n)&&(u=null,i&&(u=t.getLinkPointFromPoint(r,a,a.ga(Rr),t.i(3),!0),u.w()||u.set(r.actualBounds.center),t.L(0,u.x,u.y)),r=null,n&&(r=t.getLinkPointFromPoint(o,l,l.ga(Rr),t.i(0),!1),r.w()||r.set(o.actualBounds.center),t.L(3,r.x,r.y)),u&&(o=t.i(2),t.L(1,(2*u.x+o.x)/3,(2*u.y+o.y)/3)),r&&(o=t.i(1),t.L(2,(2*r.x+o.x)/3,(2*r.y+o.y)/3))))),t.zf();else if(p.layer===x.layer)t.zf();else{var N=!1,R=!1,_=this.ie,V=t.firstPickIndex+1;if(t.isOrthogonal){R=!0;var xe=t.pointsCount;4<xe&&t.points.removeRange(2,xe-3)}else if(t.curve===Su)N=!0,xe=t.pointsCount,4<xe&&t.points.removeRange(2,xe-3),xe===4&&(V=2);else{xe=t.pointsCount;var ue=f===Ui,Fe=u===Ui;2<xe&&ue&&Fe?t.points.removeRange(1,xe-2):3<xe&&ue&&!Fe?t.points.removeRange(1,xe-3):3<xe&&!ue&&Fe?t.points.removeRange(2,xe-2):4<xe&&!ue&&!Fe&&t.points.removeRange(2,xe-3)}if(n.rev){for(;x!==null&&p!==x;){var Ue=xe=null;for(ue=x.sourceEdges.iterator;ue.next()&&(Fe=ue.value,Fe.link!==n.link||(xe=Fe.fromVertex,Ue=Fe.toVertex,xe.node!==null)););if(xe===null)break;if(xe!==p){ue=t.i(V-1).x,Fe=t.i(V-1).y;var We=xe.centerX,rt=xe.centerY;if(R)this.K===180||this.K===0?V===t.firstPickIndex+1?(t.m(V++,ue,Fe),t.m(V++,ue,rt)):(Ue!==null?Ue.centerY:Fe)!==rt&&(Ue=this.Ta[xe.layer-1]+this.Rf.x,t.m(V++,Ue,Fe),t.m(V++,Ue,rt)):V===t.firstPickIndex+1?(t.m(V++,ue,Fe),t.m(V++,We,Fe)):(Ue!==null?Ue.centerX:ue)!==We&&(Ue=this.Ta[xe.layer-1]+this.Rf.y,t.m(V++,ue,Ue),t.m(V++,We,Ue));else if(V===t.firstPickIndex+1){Ue=Math.max(10,this.he[x.layer]);var At=Math.max(10,this.Ld[x.layer]);if(N)this.K===180?We<=x.bounds.x?(x=x.bounds.x,t.m(V++,x-Ue,rt),t.m(V++,x,rt),t.m(V++,x+At,rt)):(t.m(V++,We-Ue,rt),t.m(V++,We,rt),t.m(V++,We+At,rt)):this.K===90?rt>=x.bounds.bottom?(x=x.bounds.y+x.bounds.height,t.m(V++,We,x+At),t.m(V++,We,x),t.m(V++,We,x-Ue)):(t.m(V++,We,rt+At),t.m(V++,We,rt),t.m(V++,We,rt-Ue)):this.K===270?rt<=x.bounds.y?(x=x.bounds.y,t.m(V++,We,x-Ue),t.m(V++,We,x),t.m(V++,We,x+At)):(t.m(V++,We,rt-Ue),t.m(V++,We,rt),t.m(V++,We,rt+At)):this.K===0&&(We>=x.bounds.right?(x=x.bounds.x+x.bounds.width,t.m(V++,x+At,rt),t.m(V++,x,rt),t.m(V++,x-Ue,rt)):(t.m(V++,We+At,rt),t.m(V++,We,rt),t.m(V++,We-Ue,rt)));else{t.m(V++,ue,Fe);var Kn=0;this.K===180||this.K===0?((this.K===180?We>=x.bounds.right:We<=x.bounds.x)&&(Kn=(this.K===0?-Ue:At)/2),t.m(V++,ue+Kn,rt)):((this.K===270?rt>=x.bounds.bottom:rt<=x.bounds.y)&&(Kn=(this.K===90?-Ue:At)/2),t.m(V++,We,Fe+Kn)),t.m(V++,We,rt)}}else Ue=Math.max(10,this.he[xe.layer]),At=Math.max(10,this.Ld[xe.layer]),N?this.K===180?(t.m(V++,We-Ue-_,rt),t.m(V++,Math.min(We-Ue+_/2,We),rt),t.m(V++,We,rt),t.m(V++,We,rt),t.m(V++,Math.max(We+At-_/2,We),rt),t.m(V++,We+At+_,rt)):this.K===90?(t.m(V++,We,rt+At+_),t.m(V++,We,Math.max(rt+At-_/2,rt)),t.m(V++,We,rt),t.m(V++,We,rt),t.m(V++,We,Math.min(rt-Ue+_/2,rt)),t.m(V++,We,rt-Ue-_)):this.K===270?(t.m(V++,We,rt-Ue-_),t.m(V++,We,Math.min(rt-Ue+_/2,rt)),t.m(V++,We,rt),t.m(V++,We,rt),t.m(V++,We,Math.max(rt+At-_/2,rt)),t.m(V++,We,rt+At+_)):(t.m(V++,We+At+_,rt),t.m(V++,Math.max(We+At-_/2,We),rt),t.m(V++,We,rt),t.m(V++,We,rt),t.m(V++,Math.min(We-Ue+_/2,We),rt),t.m(V++,We-Ue-_,rt)):t.m(V++,We,rt)}x=xe}(l===null||f!==Ui||R)&&(ue=t.i(V-1).x,Fe=t.i(V-1).y,We=t.i(V).x,rt=t.i(V).y,R?(_=this.Ld[p.layer],this.K===180||this.K===0?(R=Fe,R>=p.bounds.y&&R<=p.bounds.bottom&&(this.K===180?We>=p.bounds.x:We<=p.bounds.right)&&(x=p.centerX+(this.K===180?-_:_),R<p.bounds.y+p.bounds.height/2?R=p.bounds.y-this.kc/2:R=p.bounds.bottom+this.kc/2,t.m(V++,x,Fe),t.m(V++,x,R)),t.m(V++,We,R)):(R=ue,R>=p.bounds.x&&R<=p.bounds.right&&(this.K===270?rt>=p.bounds.y:rt<=p.bounds.bottom)&&(x=p.centerY+(this.K===270?-_:_),R<p.bounds.x+p.bounds.width/2?R=p.bounds.x-this.kc/2:R=p.bounds.right+this.kc/2,t.m(V++,ue,x),t.m(V++,R,x)),t.m(V++,R,rt)),t.m(V++,We,rt)):N?(Ue=Math.max(10,this.he[p.layer]),At=Math.max(10,this.Ld[p.layer]),this.K===180&&We>=p.bounds.x?(x=p.bounds.x+p.bounds.width,t.L(V-2,x,Fe),t.L(V-1,x+At,Fe)):this.K===90&&rt<=p.bounds.bottom?(x=p.bounds.y,t.L(V-2,ue,x),t.L(V-1,ue,x-Ue)):this.K===270&&rt>=p.bounds.y?(x=p.bounds.y+p.bounds.height,t.L(V-2,ue,x),t.L(V-1,ue,x+At)):this.K===0&&We<=p.bounds.right&&(x=p.bounds.x,t.L(V-2,x,Fe),t.L(V-1,x-Ue,Fe))):(Ue=Math.max(10,this.he[p.layer]),At=Math.max(10,this.Ld[p.layer]),R=0,this.K===180||this.K===0?((this.K===180?We<=p.bounds.x:We>=p.bounds.right)&&(R=(this.K===0?At:-Ue)/2),t.m(V++,We+R,Fe)):((this.K===270?rt<=p.bounds.y:rt>=p.bounds.bottom)&&(R=(this.K===90?At:-Ue)/2),t.m(V++,ue,rt+R)),t.m(V++,We,rt)))}else{for(;p!==null&&p!==x;){for(Ue=xe=null,p=p.destinationEdges.iterator;p.next()&&(ue=p.value,ue.link!==n.link||(xe=ue.toVertex,Ue=ue.fromVertex,Ue.node!==null&&(Ue=null),xe.node!==null)););if(xe===null)break;xe!==x&&(ue=t.i(V-1).x,Fe=t.i(V-1).y,We=xe.centerX,rt=xe.centerY,R?this.K===180||this.K===0?(Ue!==null?Ue.centerY:Fe)!==rt&&(Ue=this.Ta[xe.layer]+this.Rf.x,V===t.firstPickIndex+1&&(Ue=this.K===0?Math.max(Ue,ue):Math.min(Ue,ue)),t.m(V++,Ue,Fe),t.m(V++,Ue,rt)):(Ue!==null?Ue.centerX:ue)!==We&&(Ue=this.Ta[xe.layer]+this.Rf.y,V===t.firstPickIndex+1&&(Ue=this.K===90?Math.max(Ue,Fe):Math.min(Ue,Fe)),t.m(V++,ue,Ue),t.m(V++,We,Ue)):(Ue=Math.max(10,this.he[xe.layer]),At=Math.max(10,this.Ld[xe.layer]),N?this.K===180?(t.m(V++,We+At+_,rt),t.m(V++,Math.max(We+At-_/2,We),rt),t.m(V++,We,rt),t.m(V++,We,rt),t.m(V++,Math.min(We-Ue+_/2,We),rt),t.m(V++,We-Ue-_,rt)):this.K===90?(t.m(V++,We,rt-Ue-_),t.m(V++,We,Math.min(rt-Ue+_/2,rt)),t.m(V++,We,rt),t.m(V++,We,rt),t.m(V++,We,Math.max(rt+At-_/2,rt)),t.m(V++,We,rt+At+_)):this.K===270?(t.m(V++,We,rt+At+_),t.m(V++,We,Math.max(rt+At-_/2,rt)),t.m(V++,We,rt),t.m(V++,We,rt),t.m(V++,We,Math.min(rt-Ue+_/2,rt)),t.m(V++,We,rt-Ue-_)):(t.m(V++,We-Ue-_,rt),t.m(V++,Math.min(We-Ue+_/2,We),rt),t.m(V++,We,rt),t.m(V++,We,rt),t.m(V++,Math.max(We+At-_/2,We),rt),t.m(V++,We+At+_,rt)):this.K===180?(t.m(V++,We+At,rt),t.m(V++,We-Ue,rt)):this.K===90?(t.m(V++,We,rt-Ue),t.m(V++,We,rt+At)):this.K===270?(t.m(V++,We,rt+At),t.m(V++,We,rt-Ue)):(t.m(V++,We-Ue,rt),t.m(V++,We+At,rt)))),p=xe}R&&(ue=t.i(V-1).x,Fe=t.i(V-1).y,We=t.i(V).x,rt=t.i(V).y,this.K===180||this.K===0?Fe!==rt&&(Ue=this.K===0?Math.min(Math.max((We+ue)/2,this.Ta[x.layer]+this.Rf.x),We):Math.max(Math.min((We+ue)/2,this.Ta[x.layer]+this.Rf.x),We),t.m(V++,Ue,Fe),t.m(V++,Ue,rt)):ue!==We&&(Ue=this.K===90?Math.min(Math.max((rt+Fe)/2,this.Ta[x.layer]+this.Rf.y),rt):Math.max(Math.min((rt+Fe)/2,this.Ta[x.layer]+this.Rf.y),rt),t.m(V++,ue,Ue),t.m(V++,We,Ue)))}i!==null&&N&&4<=t.pointsCount&&(a!==null&&(a=f===Ui?t.getLinkPointFromPoint(r,a,a.ga(Rr),t.i(3),!0):t.i(0),f===Ui&&(f=t.i(2),i=t.i(3),this.direction===90||this.direction===270?(t.L(1,(a.x+f.x)/2,f.y),t.L(2,i.x,(f.y+i.y)/2)):(t.L(1,f.x,(a.y+f.y)/2),t.L(2,(f.x+i.x)/2,i.y))),a.w()||a.set(r.actualBounds.center),t.L(0,a.x,a.y)),l!==null&&(r=u===Ui?t.getLinkPointFromPoint(o,l,l.ga(Rr),t.i(t.pointsCount-4),!1):t.i(t.pointsCount-1),u===Ui&&(l=t.i(t.pointsCount-3),u=t.i(t.pointsCount-4),this.direction===90||this.direction===270?(t.L(t.pointsCount-2,(r.x+l.x)/2,l.y),t.L(t.pointsCount-2,u.x,(l.y+u.y)/2)):(t.L(t.pointsCount-2,l.x,(r.y+l.y)/2),t.L(t.pointsCount-3,(l.x+u.x)/2,u.y))),r.w()||r.set(o.actualBounds.center),t.L(t.pointsCount-1,r.x,r.y))),t.zf(),n.commit()}}}this.avoidOrthogonalOverlaps()},lo.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var e=new qt,t=this.network.edges.iterator;t.next();){var n=t.value.link;n!==null&&n.isOrthogonal&&!e.contains(n)&&e.add(n)}if(0<e.count)if(this.K===90||this.K===270){for(t=0,n=[],e=e.iterator;e.next();){var i=e.value;if(i!==null&&i.isOrthogonal)for(var r=2;r<i.pointsCount-3;r++){var o=i.i(r),a=i.i(r+1);if(this.B(o.y,a.y)&&!this.B(o.x,a.x)){var l=new ed;l.layer=Math.floor(o.y/2);var u=i.i(0),f=i.i(i.pointsCount-1);if(l.first=u.x*u.x+u.y,l.jc=f.x*f.x+f.y,l.rd=Math.min(o.x,a.x),l.Ic=Math.max(o.x,a.x),l.index=r,l.link=i,r+2<i.pointsCount){u=i.i(r-1),f=i.i(r+2);var p=0;u.y<o.y?p=f.y<o.y?3:o.x<a.x?2:1:u.y>o.y&&(p=f.y>o.y?0:a.x<o.x?2:1),l.j=p}n.push(l)}}}if(1<n.length)for(n.sort(this.Vx),e=0;e<n.length;){for(o=n[e].layer,i=e+1;i<n.length&&n[i].layer===o;)i++;if(1<i-e)for(o=e;o<i;){for(a=n[o].Ic,r=e+1;r<i&&n[r].rd<a;)a=Math.max(a,n[r].Ic),r++;if(a=r-o,1<a){for(this.zi(n,this.Js,o,o+a),p=1,l=n[o].jc,u=o;u<r;u++)f=n[u],f.jc!==l&&(p++,l=f.jc);this.zi(n,this.Ux,o,o+a);var x=1;for(l=n[o].first,u=o;u<r;u++)f=n[u],f.first!==l&&(x++,l=f.first);for(u=!0,f=x,p<x?(u=!1,f=p,l=n[o].jc,this.zi(n,this.Js,o,o+a)):l=n[o].first,p=0,x=o;x<r;x++){var N=n[x];(u?N.first:N.jc)!==l&&(p++,l=u?N.first:N.jc);var R=N.link;o=R.i(N.index),a=R.i(N.index+1);var _=this.linkSpacing*(p-(f-1)/2);t++,R.uh(),R.L(N.index,o.x,o.y+_),R.L(N.index+1,a.x,a.y+_),R.zf()}}o=r}e=i}}else{for(t=0,n=[],e=e.iterator;e.next();)if(i=e.value,i!==null&&i.isOrthogonal)for(r=2;r<i.pointsCount-3;r++)o=i.i(r),a=i.i(r+1),this.B(o.x,a.x)&&!this.B(o.y,a.y)&&(l=new ed,l.layer=Math.floor(o.x/2),u=i.i(0),f=i.i(i.pointsCount-1),l.first=u.x+u.y*u.y,l.jc=f.x+f.y*f.y,l.rd=Math.min(o.y,a.y),l.Ic=Math.max(o.y,a.y),l.index=r,l.link=i,r+2<i.pointsCount&&(u=i.i(r-1),f=i.i(r+2),p=0,u.x<o.x?p=f.x<o.x?3:o.y<a.y?2:1:u.x>o.x&&(p=f.x>o.x?0:a.y<o.y?2:1),l.j=p),n.push(l));if(1<n.length)for(n.sort(this.Vx),e=0;e<n.length;){for(o=n[e].layer,i=e+1;i<n.length&&n[i].layer===o;)i++;if(1<i-e)for(o=e;o<i;){for(a=n[o].Ic,r=e+1;r<i&&n[r].rd<a;)a=Math.max(a,n[r].Ic),r++;if(a=r-o,1<a){for(this.zi(n,this.Js,o,o+a),p=1,l=n[o].jc,u=o;u<r;u++)f=n[u],f.jc!==l&&(p++,l=f.jc);for(this.zi(n,this.Ux,o,o+a),x=1,l=n[o].first,u=o;u<r;u++)f=n[u],f.first!==l&&(x++,l=f.first);for(u=!0,f=x,p<x?(u=!1,f=p,l=n[o].jc,this.zi(n,this.Js,o,o+a)):l=n[o].first,p=0,x=o;x<r;x++)N=n[x],(u?N.first:N.jc)!==l&&(p++,l=u?N.first:N.jc),R=N.link,o=R.i(N.index),a=R.i(N.index+1),_=this.linkSpacing*(p-(f-1)/2),t++,R.uh(),R.L(N.index,o.x+_,o.y),R.L(N.index+1,a.x+_,a.y),R.zf()}o=r}e=i}}}},U=lo.prototype,U.Vx=function(e,t){return e instanceof ed&&t instanceof ed&&e!==t?e.layer<t.layer?-1:e.layer>t.layer?1:e.rd<t.rd?-1:e.rd>t.rd?1:e.Ic<t.Ic?-1:e.Ic>t.Ic?1:0:0},U.Ux=function(e,t){return e instanceof ed&&t instanceof ed&&e!==t?e.first<t.first?-1:e.first>t.first||e.j<t.j?1:e.j>t.j||e.rd<t.rd?-1:e.rd>t.rd?1:e.Ic<t.Ic?-1:e.Ic>t.Ic?1:0:0},U.Js=function(e,t){return e instanceof ed&&t instanceof ed&&e!==t?e.jc<t.jc?-1:e.jc>t.jc||e.j<t.j?1:e.j>t.j||e.rd<t.rd?-1:e.rd>t.rd?1:e.Ic<t.Ic?-1:e.Ic>t.Ic?1:0:0},U.B=function(e,t){return e-=t,-1<e&&1>e},U.zi=function(e,t,n,i){var r=e.length,o=i-n;if(!(1>=o))if((0>n||n>=r-1)&&Ve("not in range 0 <= from < length: "+n),o===2)i=e[n],r=e[n+1],0<t(i,r)&&(e[n]=r,e[n+1]=i);else if(n===0)if(i>=r)e.sort(t);else for(n=e.slice(0,i),n.sort(t),t=0;t<i;t++)e[t]=n[t];else if(i>=r)for(i=e.slice(n),i.sort(t),t=n;t<r;t++)e[t]=i[t-n];else for(r=e.slice(n,i),r.sort(t),t=n;t<i;t++)e[t]=r[t-n]};function Jh(e,t){var n=e.tc[t];if(n>=e.He.length){for(var i=[],r=0;r<e.He.length;r++)i[r]=e.He[r];e.He=i}for(e.He[n]===void 0||e.He[n]===null?i=[]:(i=e.He[n],e.He[n]=null),e=e.fl[t],t=0;t<e.length;t++)n=e[t],i[n.index]=n;return i}function qh(e,t,n){e.He[e.tc[t]]=n}ht.Object.defineProperties(lo.prototype,{layerSpacing:{get:function(){return this.ie},set:function(e){this.ie!==e&&0<=e&&(this.ie=e,this.C())}},columnSpacing:{get:function(){return this.kc},set:function(e){this.kc!==e&&0<e&&(this.kc=e,this.C())}},direction:{get:function(){return this.K},set:function(e){this.K!==e&&(e===0||e===90||e===180||e===270?(this.K=e,this.C()):Ve("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(e){this.Dk===e||e!==kv&&e!==Bm&&e!==Qp||(this.Dk=e,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(e){this.Zk===e||e!==_m&&e!==Iv&&e!==Mv||(this.Zk=e,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(e){this.Qk===e||e!==zm&&e!==Ov&&e!==Lv||(this.Qk=e,this.C())}},iterations:{get:function(){return this.bj},set:function(e){this.bj!==e&&0<=e&&(this.bj=e,this.C())}},aggressiveOption:{get:function(){return this.rk},set:function(e){this.rk===e||e!==Rv&&e!==Um&&e!==Dv||(this.rk=e,this.C())}},packOption:{get:function(){return this.bg},set:function(e){this.bg!==e&&0<=e&&8>e&&(this.bg=e,this.C())}},alignOption:{get:function(){return this.ve},set:function(e){this.ve!==e&&0<=e&&16>e&&(this.ve=e,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(e){this.sf!==e&&(this.sf=e,this.C())}},linkSpacing:{get:function(){return this.Cn},set:function(e){this.Cn!==e&&0<=e&&(this.Cn=e,this.C())}},maxLayer:{get:function(){return this.Ia}},maxIndex:{get:function(){return this.Iq}},maxColumn:{get:function(){return this.Ra}},minIndexLayer:{get:function(){return this.Hn}},maxIndexLayer:{get:function(){return this.Md}}});var Bm=new Yt(lo,"CycleDepthFirst",0),kv=new Yt(lo,"CycleGreedy",1),Qp=new Yt(lo,"CycleFromLayers",2),_m=new Yt(lo,"LayerOptimalLinkLength",0),Iv=new Yt(lo,"LayerLongestPathSink",1),Mv=new Yt(lo,"LayerLongestPathSource",2),zm=new Yt(lo,"InitDepthFirstOut",0),Ov=new Yt(lo,"InitDepthFirstIn",1),Lv=new Yt(lo,"InitNaive",2),Rv=new Yt(lo,"AggressiveNone",0),Um=new Yt(lo,"AggressiveLess",1),Dv=new Yt(lo,"AggressiveMore",2),sx=8;lo.className="LayeredDigraphLayout",lo.CycleDepthFirst=Bm,lo.CycleGreedy=kv,lo.CycleFromLayers=Qp,lo.LayerOptimalLinkLength=_m,lo.LayerLongestPathSink=Iv,lo.LayerLongestPathSource=Mv,lo.InitDepthFirstOut=zm,lo.InitDepthFirstIn=Ov,lo.InitNaive=Lv,lo.AggressiveNone=Rv,lo.AggressiveLess=Um,lo.AggressiveMore=Dv,lo.PackNone=0,lo.PackExpand=1,lo.PackStraighten=2,lo.PackMedian=4,lo.PackAll=15,lo.AlignNone=0,lo.AlignUpperLeft=1,lo.AlignUpperRight=2,lo.AlignLowerLeft=4,lo.AlignLowerRight=8,lo.AlignAll=15;function ed(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}ed.className="SegInfo";function $f(e){Oo.call(this,e)}yi($f,Oo),$f.prototype.createVertex=function(){return new Bu(this)},$f.prototype.createEdge=function(){return new Jp(this)},$f.className="LayeredDigraphNetwork";function Bu(e){ns.call(this,e),this.$n=this.bo=this.ao=this.co=null,this.Za=this.Ag=this.Ig=-1,this.u=NaN,this.F=null,this.valid=!1,this.finish=this.Ll=NaN,this.Dj=0,this.dv=this.ev=null}yi(Bu,ns);function pb(e,t){return e.index-t.index}function Hm(e,t){if(!e.$n){for(var n=[],i=Er(e.destinationEdgesArrayAccess),r=i.next();!r.done;r=i.next())r=r.value,r.valid&&n.push(r);e.$n=n}for(e=Er(e.$n),n=e.next();!n.done;n=e.next())if(n=n.value,n.toVertex===t)return n;Ve("Unable to find destination edge to given vertex")}function Pv(e){if(!e.co){for(var t=[],n=Er(e.sourceEdgesArrayAccess),i=n.next();!i.done;i=n.next())i=i.value,i.valid&&t.push(i.fromVertex);t.sort(pb),e.co=t}return e.co}function lx(e){if(!e.ao){for(var t=[],n=Er(e.destinationEdgesArrayAccess),i=n.next();!i.done;i=n.next())i=i.value,i.valid&&t.push(i.toVertex);t.sort(pb),e.ao=t}return e.ao}Bu.prototype.Cl=function(e){ns.prototype.Cl.call(this,e),this.bo=this.co=null},Bu.prototype.Kl=function(e){ns.prototype.Kl.call(this,e),this.bo=this.co=null},Bu.prototype.zl=function(e){ns.prototype.zl.call(this,e),this.$n=this.ao=null},Bu.prototype.Jl=function(e){ns.prototype.Jl.call(this,e),this.$n=this.ao=null},ht.Object.defineProperties(Bu.prototype,{layer:{get:function(){return this.Ig},set:function(e){this.Ig!==e&&(this.Ig=e)}},column:{get:function(){return this.Ag},set:function(e){this.Ag!==e&&(this.Ag=e)}},index:{get:function(){return this.Za},set:function(e){this.Za!==e&&(this.Za=e)}},component:{get:function(){return this.u},set:function(e){this.u!==e&&(this.u=e)}},near:{get:function(){return this.F},set:function(e){this.F!==e&&(this.F=e)}}}),Bu.prototype.deleteDestinationEdge=Bu.prototype.Jl,Bu.prototype.addDestinationEdge=Bu.prototype.zl,Bu.prototype.deleteSourceEdge=Bu.prototype.Kl,Bu.prototype.addSourceEdge=Bu.prototype.Cl,Bu.className="LayeredDigraphVertex";function Jp(e){au.call(this,e),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}yi(Jp,au),ht.Object.defineProperties(Jp.prototype,{fromVertex:{get:function(){return this.kd},set:function(e){this.kd!==e&&(this.kd=e)}},toVertex:{get:function(){return this.qd},set:function(e){this.qd!==e&&(this.qd=e)}},valid:{get:function(){return this.Ha},set:function(e){this.Ha!==e&&(this.Ha=e)}},rev:{get:function(){return this.ia},set:function(e){this.ia!==e&&(this.ia=e)}},forest:{get:function(){return this.j},set:function(e){this.j!==e&&(this.j=e)}},portFromPos:{get:function(){return this.u},set:function(e){this.u!==e&&(this.u=e)}},portToPos:{get:function(){return this.V},set:function(e){this.V!==e&&(this.V=e)}},portFromColOffset:{get:function(){return this.o},set:function(e){this.o!==e&&(this.o=e)}},portToColOffset:{get:function(){return this.F},set:function(e){this.F!==e&&(this.F=e)}}}),Jp.className="LayeredDigraphEdge";function Ar(e){Qo.call(this),this.Ub=new Xt,this.Wn=Wm,this.ud=jc,this.vo=Km,this.Bq=Vv,this.$v=[],this.td=!0,this.Rb=Zm,this.$d=new pi(10,10).freeze();var t=new qd(this);this.W=new Wu(t),this.Y=new Wu(t),this.ru=[],e&&Object.assign(this,e)}yi(Ar,Qo),Ar.prototype.cloneProtected=function(e){Qo.prototype.cloneProtected.call(this,e),e.Wn=this.Wn,e.vo=this.vo,e.Bq=this.Bq,e.td=this.td,e.Rb=this.Rb,e.$d.assign(this.$d),e.W.copyInheritedPropertiesFrom(this.W),e.Y.copyInheritedPropertiesFrom(this.Y)},Ar.prototype.qb=function(e){e.classType===Ar?e.name.indexOf("Alignment")===0?this.alignment=e:e.name.indexOf("Arrangement")===0?this.arrangement=e:e.name.indexOf("Compaction")===0?this.compaction=e:e.name.indexOf("Path")===0?this.path=e:e.name.indexOf("Sorting")===0?this.sorting=e:e.name.indexOf("Style")===0?this.treeStyle=e:Ve("Unknown enum value: "+e):Qo.prototype.qb.call(this,e)},Ar.prototype.createNetwork=function(){return new qd(this)},Ar.prototype.makeNetwork=function(e){function t(i){if(i instanceof Xn)return!i.isLinkLabel&&i.category!=="Comment";if(i instanceof Pn){var r=i.fromNode;return r===null||r.isLinkLabel||r.category==="Comment"?!1:(i=i.toNode,!(i===null||i.isLinkLabel||i.category==="Comment"))}return!1}var n=this.createNetwork();return e instanceof Y?(n.lg(e.nodes,!0,t),n.lg(e.links,!0,t)):e instanceof qi?n.lg(e.memberParts,!1,t):n.lg(e.iterator,!1,t),n},Ar.prototype.doLayout=function(e){this.network===null&&(this.network=this.makeNetwork(e)),this.arrangement!==Ym&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var t=this.diagram;if(t===null&&e instanceof Y&&(t=e),this.path===Wm&&t!==null?this.ud=t.isTreePathToChildren?jc:Qd:this.ud=this.path===Wm?jc:this.path,0<this.network.vertexes.count){for(this.network.Ko(),e=this.network.vertexes.iterator;e.next();)t=e.value,t.initialized=!1,t.level=0,t.parent=null,t.children=[];if(0<this.Ub.count){for(e=new Xt,t=this.Ub.iterator;t.next();){var n=t.value;n instanceof Xn?(n=this.network.ki(n),n!==null&&e.add(n)):n instanceof Wu&&e.add(n)}this.Ub=e}for(this.Ub.count===0&&this.findRoots(),e=this.Ub.copy().iterator;e.next();)t=e.value,t.initialized||(t.initialized=!0,Fv(this,t));for(t=this.network.vertexes,e=null;e=ux(t),0<e.count;)t=mb(this,e),t!==null&&this.Ub.add(t),t.initialized=!0,Fv(this,t),t=e;for(e=this.Ub.iterator;e.next();)t=e.value,t instanceof Wu&&vb(this,t);for(e=this.Ub.iterator;e.next();)t=e.value,t instanceof Wu&&yb(this,t);for(e=this.Ub.iterator;e.next();)t=e.value,t instanceof Wu&&bb(this,t);if(this.Cu(),this.layerStyle===Xm){for(e=[],t=this.network.vertexes.iterator;t.next();){n=t.value;var i=n.parent;i===null&&(i=n),i=i.angle===0||i.angle===180;var r=e[n.level];r===void 0&&(r=0),e[n.level]=Math.max(r,i?n.width:n.height)}for(t=0;t<e.length;t++)e[t]===void 0&&(e[t]=0);for(this.$v=e,t=this.network.vertexes.iterator;t.next();)n=t.value,i=n.parent,i===null&&(i=n),i.angle===0||i.angle===180?(i.angle===180&&(n.focusX+=e[n.level]-n.width),n.width=e[n.level]):(i.angle===270&&(n.focusY+=e[n.level]-n.height),n.height=e[n.level])}else if(this.layerStyle===Kv)for(e=this.network.vertexes.iterator;e.next();){for(t=e.value,n=t.angle===0||t.angle===180,i=-1,r=0;r<t.children.length;r++){var o=t.children[r];i=Math.max(i,n?o.width:o.height)}if(0<=i)for(r=0;r<t.children.length;r++)o=t.children[r],n?(t.angle===180&&(o.focusX+=i-o.width),o.width=i):(t.angle===270&&(o.focusY+=i-o.height),o.height=i)}for(e=this.Ub.iterator;e.next();)t=e.value,t instanceof Wu&&this.layoutTree(t);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new Xt,this.isValidLayout=!0};function ux(e){var t=new Xt;for(e=e.iterator;e.next();){var n=e.value;n.initialized||t.add(n)}return t}Ar.prototype.findRoots=function(){for(var e=this.network.vertexes,t=e.iterator;t.next();){var n=t.value;switch(this.ud){case jc:n.sourceEdges.count===0&&this.Ub.add(n);break;case Qd:n.destinationEdges.count===0&&this.Ub.add(n);break;default:Ve("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(e=mb(this,e),e!==null&&this.Ub.add(e))};function mb(e,t){var n=999999,i=null;for(t=t.iterator;t.next();){var r=t.value;switch(e.ud){case jc:r.sourceEdges.count<n&&(n=r.sourceEdges.count,i=r);break;case Qd:r.destinationEdges.count<n&&(n=r.destinationEdges.count,i=r);break;default:Ve("Unhandled path value "+e.ud.toString())}}return i}function Fv(e,t){if(t!==null){switch(e.ud){case jc:if(0<t.destinationEdges.count){for(var n=new qt,i=t.destinationVertexes;i.next();){var r=i.value;gb(e,t,r)&&n.add(r)}0<n.count&&(t.children=n.Fa())}break;case Qd:if(0<t.sourceEdges.count){for(n=new qt,i=t.sourceVertexes;i.next();)r=i.value,gb(e,t,r)&&n.add(r);0<n.count&&(t.children=n.Fa())}break;default:Ve("Unhandled path value"+e.ud.toString())}for(n=t.children,i=n.length,r=0;r<i;r++){var o=n[r];o.initialized=!0,o.level=t.level+1,o.parent=t,e.Ub.remove(o)}for(t=0;t<i;t++)Fv(e,n[t])}}function gb(e,t,n){if(n.initialized){if(t===null)var i=!1;else{for(i=t.parent;i!==null&&i!==n;)i=i.parent;i=i===n}if(i||n.level>t.level)return!1;e.removeChild(n.parent,n)}return!0}Ar.prototype.removeChild=function(e,t){if(e!==null&&t!==null){for(var n=e.children,i=0,r=0;r<n.length;r++)n[r]===t&&i++;if(0<i){i=Array(n.length-i);for(var o=r=0;o<n.length;o++)n[o]!==t&&(i[r++]=n[o]);e.children=i}}};function vb(e,t){if(t!==null){e.initializeTreeVertexValues(t),t.alignment===Vc&&e.sortTreeVertexChildren(t);for(var n=0,i=t.childrenCount,r=0,o=t.children,a=o.length,l=0;l<a;l++){var u=o[l];vb(e,u),n+=u.descendantCount+1,i=Math.max(i,u.maxChildrenCount),r=Math.max(r,u.maxGenerationCount)}t.descendantCount=n,t.maxChildrenCount=i,t.maxGenerationCount=0<i?r+1:0}}function cx(e,t){switch(e.vo){default:case Km:return t.parent!==null?t.parent:e.W;case Gv:return t.parent===null?e.W:t.parent.parent===null?e.Y:t.parent;case jv:return t.parent!==null?t.parent.parent!==null?t.parent.parent:e.Y:e.W;case $v:var n=!0;if(t.childrenCount===0)n=!1;else for(var i=t.children,r=i.length,o=0;o<r;o++)if(0<i[o].childrenCount){n=!1;break}return n&&t.parent!==null?e.Y:t.parent!==null?t.parent:e.W}}Ar.prototype.initializeTreeVertexValues=function(e){if(e.copyInheritedPropertiesFrom(cx(this,e)),e.parent!==null&&e.parent.alignment===Vc){for(var t=e.angle,n=e.parent.children,i=0;i<n.length&&e!==n[i];)i++;i%2===0?i!==n.length-1&&(t=t===90?180:t===180?270:t===270?180:270):t=t===90?0:t===180?90:t===270?0:90,e.angle=t}e.initialized=!0};function yb(e,t){if(t!==null){e.assignTreeVertexValues(t),t=t.children;for(var n=t.length,i=0;i<n;i++)yb(e,t[i])}}Ar.prototype.assignTreeVertexValues=function(){};function bb(e,t){if(t!==null){t.alignment!==Vc&&e.sortTreeVertexChildren(t),t=t.children;for(var n=t.length,i=0;i<n;i++)bb(e,t[i])}}Ar.prototype.sortTreeVertexChildren=function(e){switch(e.sorting){case jf:break;case e0:e.children.reverse();break;case t0:e.children.sort(e.comparer);break;case n0:e.children.sort(e.comparer),e.children.reverse();break;default:Ve("Unhandled sorting value "+e.sorting.toString())}},Ar.prototype.Cu=function(){if(this.comments)for(var e=this.network.vertexes.iterator;e.next();)this.addComments(e.value)},Ar.prototype.addComments=function(e){var t=e.angle,n=e.parent,i=0,r=!1;n!==null&&(i=n.angle,r=n.alignment,r=td(r)),t=t===90||t===270,i=i===90||i===270,n=e.childrenCount===0;var o=0,a=0,l=0,u=e.commentSpacing;if(e.node!==null)for(var f=e.node.Mu();f.next();){var p=f.value;p.category==="Comment"&&p.canLayout()&&(e.comments===null&&(e.comments=[]),e.comments.push(p),p.Va(),p=p.measuredBounds,t&&!n||!r&&!i&&n||r&&i&&n?(o=Math.max(o,p.width),a+=p.height+Math.abs(l)):(o+=p.width+Math.abs(l),a=Math.max(a,p.height)),l=u)}e.comments!==null&&(t&&!n||!r&&!i&&n||r&&i&&n?(o+=Math.abs(e.commentMargin),a=Math.max(0,a-e.height)):(a+=Math.abs(e.commentMargin),o=Math.max(0,o-e.width)),r=Zt.allocAt(0,0,e.bounds.width+o,e.bounds.height+a),e.bounds=r,Zt.free(r))};function td(e){return e===Nh||e===Vc||e===Ah||e===ih}function qp(e){return e===Nh||e===Vc}function Bv(e){var t=e.parent;if(t!==null){var n=t.alignment;if(td(n)){if(qp(n)){for(t=t.children,n=0;n<t.length&&e!==t[n];)n++;return n%2===0}if(n===Ah)return!0}}return!1}Ar.prototype.layoutComments=function(e){if(e.comments!==null){var t=e.node.measuredBounds,n=e.parent,i=e.angle,r=0,o=!1;n!==null&&(r=n.angle,o=n.alignment,o=td(o)),i=i===90||i===270,n=r===90||r===270;for(var a=e.childrenCount===0,l=Bv(e),u=0,f=e.comments,p=f.length,x=he.alloc(),N=0;N<p;N++){var R=f[N],_=R.measuredBounds;if(i&&!a||!o&&!n&&a||o&&n&&a){if(135<r&&!o||n&&l)if(0<=e.commentMargin)for(x.h(e.bounds.x-e.commentMargin-_.width,e.bounds.y+u),R.move(x),R=R.Sd();R.next();){var V=R.value;V.fromSpot=va,V.toSpot=Ma}else for(x.h(e.bounds.x+2*e.focus.x-e.commentMargin,e.bounds.y+u),R.move(x),R=R.Sd();R.next();)V=R.value,V.fromSpot=Ma,V.toSpot=va;else if(0<=e.commentMargin)for(x.h(e.bounds.x+2*e.focus.x+e.commentMargin,e.bounds.y+u),R.move(x),R=R.Sd();R.next();)V=R.value,V.fromSpot=Ma,V.toSpot=va;else for(x.h(e.bounds.x+e.commentMargin-_.width,e.bounds.y+u),R.move(x),R=R.Sd();R.next();)V=R.value,V.fromSpot=va,V.toSpot=Ma;u=0<=e.commentSpacing?u+(_.height+e.commentSpacing):u+(e.commentSpacing-_.height)}else{if(135<r&&!o||!n&&l)if(0<=e.commentMargin)for(x.h(e.bounds.x+u,e.bounds.y-e.commentMargin-_.height),R.move(x),R=R.Sd();R.next();)V=R.value,V.fromSpot=ia,V.toSpot=Oa;else for(x.h(e.bounds.x+u,e.bounds.y+2*e.focus.y-e.commentMargin),R.move(x),R=R.Sd();R.next();)V=R.value,V.fromSpot=Oa,V.toSpot=ia;else if(0<=e.commentMargin)for(x.h(e.bounds.x+u,e.bounds.y+2*e.focus.y+e.commentMargin),R.move(x),R=R.Sd();R.next();)V=R.value,V.fromSpot=Oa,V.toSpot=ia;else for(x.h(e.bounds.x+u,e.bounds.y+e.commentMargin-_.height),R.move(x),R=R.Sd();R.next();)V=R.value,V.fromSpot=ia,V.toSpot=Oa;u=0<=e.commentSpacing?u+(_.width+e.commentSpacing):u+(e.commentSpacing-_.width)}}if(he.free(x),t=u-e.commentSpacing-(i?t.height:t.width),this.ud===jc)for(e=e.destinationEdges;e.next();)r=e.value.link,r===null||r.isAvoiding||(r.fromEndSegmentLength=0<t?t:NaN);else for(e=e.sourceEdges;e.next();)r=e.value.link,r===null||r.isAvoiding||(r.toEndSegmentLength=0<t?t:NaN)}},Ar.prototype.layoutTree=function(e){if(e!==null){for(var t=e.children,n=t.length,i=0;i<n;i++)this.layoutTree(t[i]);switch(e.compaction){case Vm:xb(this,e);break;case i0:if(e.alignment===Vc)xb(this,e);else if(e.childrenCount===0)i=e.parent,n=!1,t=0,i!==null&&(t=i.angle,n=i.alignment,n=td(n)),i=Bv(e),e.S.h(0,0),e.Da.h(e.width,e.height),e.parent===null||e.comments===null||(t!==180&&t!==270||n)&&!i?e.la.h(0,0):t===180&&!n||(t===90||t===270)&&i?e.la.h(e.width-2*e.focus.x,0):e.la.h(0,e.height-2*e.focus.y),e.Yo=null,e.kp=null;else{var r=lc(e);t=r===90||r===270;var o=0,a=e.children,l=a.length;for(n=0;n<l;n++)i=a[n],o=Math.max(o,t?i.Da.width:i.Da.height);var u=e.alignment;i=u===Gc;var f=u===Wc,p=td(u),x=Math.max(0,e.breadthLimit);n=this.computeLayerSpacing(e);var N=e.nodeSpacing,R=this.computeNodeIndent(e),_=e.rowSpacing,V=0;(i||f||e.hm||e.im&&e.maxGenerationCount===1)&&(V=Math.max(0,e.rowIndent)),i=e.width;var xe=e.height,ue=0,Fe=0,Ue=0,We=null,rt=null,At=0,Kn=0,ri=0,qn=0,Rn=0,mn=0,Ji=0,Wi=0;if(p&&!qp(u)&&135<r&&a.reverse(),qp(u))if(1<l)for(var Jr=0;Jr<l;Jr++)Jr%2===0&&Jr!==l-1&&(Wi=Math.max(Wi,t?a[Jr].Da.width:a[Jr].Da.height));else l===1&&(Wi=t?a[0].Da.width:a[0].Da.height);if(p){switch(u){case Nh:Fe=135>r?Sb(this,e,a,Wi,ue,Fe):Eb(this,e,a,Wi,ue,Fe),Wi=Fe.x,ue=Fe.width,Fe=Fe.height;break;case Ah:for(We=0;We<l;We++)rt=a[We],x=rt.Da,Ue=mn===0?0:_,t?(rt.S.h(o-x.width,qn+Ue),ue=Math.max(ue,x.width),Fe=Math.max(Fe,qn+Ue+x.height),qn+=Ue+x.height):(rt.S.h(ri+Ue,o-x.height),ue=Math.max(ue,ri+Ue+x.width),Fe=Math.max(Fe,x.height),ri+=Ue+x.width),mn++;break;case ih:for(We=0;We<l;We++)rt=a[We],o=rt.Da,x=mn===0?0:_,t?(rt.S.h(N/2+e.focus.x,qn+x),ue=Math.max(ue,o.width),Fe=Math.max(Fe,qn+x+o.height),qn+=x+o.height):(rt.S.h(ri+x,N/2+e.focus.y),ue=Math.max(ue,ri+x+o.width),Fe=Math.max(Fe,o.height),ri+=x+o.width),mn++}We=Zl(this,2),rt=Zl(this,2),t?(We[0].h(0,0),We[1].h(0,Fe),rt[0].h(ue,0)):(We[0].h(0,0),We[1].h(ue,0),rt[0].h(0,Fe)),rt[1].h(ue,Fe)}else for(Jr=0;Jr<l;Jr++){var Io=a[Jr],hs=Io.Da;if(t){0<x&&0<mn&&ri+N+hs.width>x&&(ri<o&&Nd(e,u,o-ri,0,Ji,Jr-1),Rn++,mn=0,Ji=Jr,Ue=Fe,ri=0,qn=135<r?-Fe-_:Fe+_),jm(this,Io,0,qn);var gs=0;if(mn===0)We=Io.Yo,rt=Io.kp,At=hs.width,Kn=hs.height,(We===null||rt===null||r!==lc(Io))&&(We=Zl(this,2),rt=Zl(this,2),We[0].h(0,0),We[1].h(0,Kn),rt[0].h(At,0),rt[1].h(At,Kn));else{var ul=Rt();Kn=wb(this,e,Io,We,rt,At,Kn,ul),gs=Kn.x,We=ul[0],rt=ul[1],At=Kn.width,Kn=Kn.height,Jt(ul),ri<hs.width&&0>gs&&(Xd(e,-gs,0,Ji,Jr-1),Gm(We,-gs,0),Gm(rt,-gs,0),gs=0)}Io.S.h(gs,qn),ue=Math.max(ue,At),Fe=Math.max(Fe,Ue+(Rn===0?0:_)+hs.height),ri=At}else 0<x&&0<mn&&qn+N+hs.height>x&&(qn<o&&Nd(e,u,0,o-qn,Ji,Jr-1),Rn++,mn=0,Ji=Jr,Ue=ue,qn=0,ri=135<r?-ue-_:ue+_),jm(this,Io,ri,0),gs=0,mn===0?(We=Io.Yo,rt=Io.kp,At=hs.width,Kn=hs.height,(We===null||rt===null||r!==lc(Io))&&(We=Zl(this,2),rt=Zl(this,2),We[0].h(0,0),We[1].h(At,0),rt[0].h(0,Kn),rt[1].h(At,Kn))):(ul=Rt(),Kn=wb(this,e,Io,We,rt,At,Kn,ul),gs=Kn.x,We=ul[0],rt=ul[1],At=Kn.width,Kn=Kn.height,Jt(ul),qn<hs.height&&0>gs&&(Xd(e,0,-gs,Ji,Jr-1),Gm(We,0,-gs),Gm(rt,0,-gs),gs=0)),Io.S.h(ri,gs),Fe=Math.max(Fe,Kn),ue=Math.max(ue,Ue+(Rn===0?0:_)+hs.width),qn=Kn;mn++}switch(0<Rn&&(t?(Fe+=Math.max(0,n),ri<ue&&Nd(e,u,ue-ri,0,Ji,l-1),0<V&&(f||Xd(e,V,0,0,l-1),ue+=V)):(ue+=Math.max(0,n),qn<Fe&&Nd(e,u,0,Fe-qn,Ji,l-1),0<V&&(f||Xd(e,0,V,0,l-1),Fe+=V))),V=f=0,u){case Gf:t?f+=ue/2-e.focus.x-R/2:V+=Fe/2-e.focus.y-R/2;break;case Jd:0<Rn?t?f+=ue/2-e.focus.x-R/2:V+=Fe/2-e.focus.y-R/2:t?(Wi=a[0].S.x+a[0].la.x,f+=Wi+(a[l-1].S.x+a[l-1].la.x+2*a[l-1].focus.x-Wi)/2-e.focus.x-R/2):(Wi=a[0].S.y+a[0].la.y,V+=Wi+(a[l-1].S.y+a[l-1].la.y+2*a[l-1].focus.y-Wi)/2-e.focus.y-R/2);break;case Gc:t?(f-=R,ue+=R):(V-=R,Fe+=R);break;case Wc:t?(f+=ue-e.width+R,ue+=R):(V+=Fe-e.height+R,Fe+=R);break;case Nh:t?1<l?f+=Wi+N/2-e.focus.x:f+=a[0].focus.x-e.focus.x+a[0].la.x:1<l?V+=Wi+N/2-e.focus.y:V+=a[0].focus.y-e.focus.y+a[0].la.y;break;case Ah:t?f+=ue+N/2-e.focus.x:V+=Fe+N/2-e.focus.y;break;case ih:break;default:Fe=this.customAlignment(e,f,V,ue,Fe),f=Fe[0],V=Fe[1],ue=Fe[2],Fe=Fe[3]}for(R=0;R<l;R++)Wi=a[R],t?Wi.S.h(Wi.S.x+Wi.la.x-f,Wi.S.y+(135<r?(p?-Fe:-Wi.Da.height)+Wi.la.y-n:xe+n+Wi.la.y)):Wi.S.h(Wi.S.x+(135<r?(p?-ue:-Wi.Da.width)+Wi.la.x-n:i+n+Wi.la.x),Wi.S.y+Wi.la.y-V);if(l=a=0,p?t?(ue=_v(e,ue,f),0>f&&(f=0),135<r&&(V+=Fe+n),Fe+=xe+n,u===ih&&(a+=N/2+e.focus.x),l+=xe+n):(135<r&&(f+=ue+n),ue+=i+n,Fe=zv(e,Fe,V),0>V&&(V=0),u===ih&&(l+=N/2+e.focus.y),a+=i+n):t?(e.comments===null?i>ue&&(ue=Uv(u,i-ue,0),a=ue.x,l=ue.y,ue=i,f=0):ue=_v(e,ue,f),0>f&&(a-=f,f=0),135<r&&(V+=Fe+n),Fe=Math.max(Math.max(Fe,xe),Fe+xe+n),l+=xe+n):(135<r&&(f+=ue+n),ue=Math.max(Math.max(ue,i),ue+i+n),e.comments===null?xe>Fe&&(Fe=Uv(u,0,xe-Fe),a=Fe.x,l=Fe.y,Fe=xe,V=0):Fe=zv(e,Fe,V),0>V&&(l-=V,V=0),a+=i+n),0<Rn)r=Zl(this,4),Rn=Zl(this,4),t?(r[2].h(0,xe+n),r[3].h(r[2].x,Fe),Rn[2].h(ue,r[2].y),Rn[3].h(Rn[2].x,r[3].y)):(r[2].h(i+n,0),r[3].h(ue,r[2].y),Rn[2].h(r[2].x,Fe),Rn[3].h(r[3].x,Rn[2].y));else{for(r=Zl(this,We.length+2),Rn=Zl(this,rt.length+2),u=0;u<We.length;u++)p=We[u],r[u+2].h(p.x+a,p.y+l);for(u=0;u<rt.length;u++)p=rt[u],Rn[u+2].h(p.x+a,p.y+l)}t?(r[0].h(f,0),r[1].h(r[0].x,xe),r[2].y<r[1].y&&(r[2].x>r[0].x?r[2].assign(r[1]):r[1].assign(r[2])),r[3].y<r[2].y&&(r[3].x>r[0].x?r[3].assign(r[2]):r[2].assign(r[3])),Rn[0].h(f+i,0),Rn[1].h(Rn[0].x,xe),Rn[2].y<Rn[1].y&&(Rn[2].x<Rn[0].x?Rn[2].assign(Rn[1]):Rn[1].assign(Rn[2])),Rn[3].y<Rn[2].y&&(Rn[3].x<Rn[0].x?Rn[3].assign(Rn[2]):Rn[2].assign(Rn[3])),r[2].y-=n/2,Rn[2].y-=n/2):(r[0].h(0,V),r[1].h(i,r[0].y),r[2].x<r[1].x&&(r[2].y>r[0].y?r[2].assign(r[1]):r[1].assign(r[2])),r[3].x<r[2].x&&(r[3].y>r[0].y?r[3].assign(r[2]):r[2].assign(r[3])),Rn[0].h(0,V+xe),Rn[1].h(i,Rn[0].y),Rn[2].x<Rn[1].x&&(Rn[2].y<Rn[0].y?Rn[2].assign(Rn[1]):Rn[1].assign(Rn[2])),Rn[3].x<Rn[2].x&&(Rn[3].y<Rn[0].y?Rn[3].assign(Rn[2]):Rn[2].assign(Rn[3])),r[2].x-=n/2,Rn[2].x-=n/2),vc(this,We),vc(this,rt),e.Yo=r,e.kp=Rn,e.la.h(f,V),e.Da.h(ue,Fe)}break;default:Ve("Unhandled compaction value "+e.compaction.toString())}}};function xb(e,t){if(t.childrenCount===0){var n=!1,i=0;t.parent!==null&&(i=t.parent.angle,n=t.parent.alignment,n=td(n));var r=Bv(t);t.S.h(0,0),t.Da.h(t.width,t.height),t.parent===null||t.comments===null||(i!==180&&i!==270||n)&&!r?t.la.h(0,0):i===180&&!n||(i===90||i===270)&&r?t.la.h(t.width-2*t.focus.x,0):t.la.h(0,t.height-2*t.focus.y)}else{i=lc(t),n=i===90||i===270;var o=0;r=t.children;for(var a=r.length,l=0;l<a;l++){var u=r[l];o=Math.max(o,n?u.Da.width:u.Da.height)}var f=t.alignment,p=f===Gc,x=f===Wc;l=td(f);var N=Math.max(0,t.breadthLimit);u=e.computeLayerSpacing(t);var R=t.nodeSpacing,_=e.computeNodeIndent(t),V=p||x?0:_/2,xe=t.rowSpacing,ue=0;(p||x||t.hm||t.im&&t.maxGenerationCount===1)&&(ue=Math.max(0,t.rowIndent)),p=t.width;var Fe=t.height,Ue=0,We=0,rt=0,At=0,Kn=0,ri=0,qn=0,Rn=0,mn=0,Ji=0;if(l&&!qp(f)&&135<i&&r.reverse(),qp(f))if(1<a)for(var Wi=0;Wi<a;Wi++){var Jr=r[Wi],Io=Jr.Da;Wi%2===0&&Wi!==a-1?mn=Math.max(mn,(n?Io.width:Io.height)+e.computeBusNodeSpacing(Jr)-R):Wi%2!==0&&(Ji=Math.max(Ji,(n?Io.width:Io.height)+e.computeBusNodeSpacing(Jr)-R))}else a===1&&(mn=n?r[0].Da.width:r[0].Da.height);if(l)switch(f){case Nh:case Vc:We=135>i?Sb(e,t,r,mn,Ue,We):Eb(e,t,r,mn,Ue,We),mn=We.x,Ue=We.width,We=We.height;break;case Ah:for(N=0;N<a;N++)V=r[N],rt=V.Da,Ji=qn===0?0:xe,n?(V.S.h(o-rt.width,Kn+Ji),Ue=Math.max(Ue,rt.width),We=Math.max(We,Kn+Ji+rt.height),Kn+=Ji+rt.height):(V.S.h(At+Ji,o-rt.height),Ue=Math.max(Ue,At+Ji+rt.width),We=Math.max(We,rt.height),At+=Ji+rt.width),qn++;break;case ih:for(o=0;o<a;o++)N=r[o],V=N.Da,rt=qn===0?0:xe,n?(N.S.h(R/2+t.focus.x,Kn+rt),Ue=Math.max(Ue,V.width),We=Math.max(We,Kn+rt+V.height),Kn+=rt+V.height):(N.S.h(At+rt,R/2+t.focus.y),Ue=Math.max(Ue,At+rt+V.width),We=Math.max(We,V.height),At+=rt+V.width),qn++}else for(Ji=0;Ji<a;Ji++)Wi=r[Ji],Jr=Wi.Da,n?(0<N&&0<qn&&At+R+Jr.width>N&&(At<o&&Nd(t,f,o-At,0,Rn,Ji-1),ri++,qn=0,Rn=Ji,rt=We,At=0,Kn=135<i?-We-xe:We+xe),Io=qn===0?V:R,jm(e,Wi,0,Kn),Wi.S.h(At+Io,Kn),Ue=Math.max(Ue,At+Io+Jr.width),We=Math.max(We,rt+(ri===0?0:xe)+Jr.height),At+=Io+Jr.width):(0<N&&0<qn&&Kn+R+Jr.height>N&&(Kn<o&&Nd(t,f,0,o-Kn,Rn,Ji-1),ri++,qn=0,Rn=Ji,rt=Ue,Kn=0,At=135<i?-Ue-xe:Ue+xe),Io=qn===0?V:R,jm(e,Wi,At,0),Wi.S.h(At,Kn+Io),We=Math.max(We,Kn+Io+Jr.height),Ue=Math.max(Ue,rt+(ri===0?0:xe)+Jr.width),Kn+=Io+Jr.height),qn++;switch(0<ri&&(n?(We+=Math.max(0,u),At<Ue&&Nd(t,f,Ue-At,0,Rn,a-1),0<ue&&(x||Xd(t,ue,0,0,a-1),Ue+=ue)):(Ue+=Math.max(0,u),Kn<We&&Nd(t,f,0,We-Kn,Rn,a-1),0<ue&&(x||Xd(t,0,ue,0,a-1),We+=ue))),ue=x=0,f){case Gf:n?x+=Ue/2-t.focus.x-_/2:ue+=We/2-t.focus.y-_/2;break;case Jd:0<ri?n?x+=Ue/2-t.focus.x-_/2:ue+=We/2-t.focus.y-_/2:n?(e=r[0].S.x+r[0].la.x,x+=e+(r[a-1].S.x+r[a-1].la.x+2*r[a-1].focus.x-e)/2-t.focus.x-_/2):(e=r[0].S.y+r[0].la.y,ue+=e+(r[a-1].S.y+r[a-1].la.y+2*r[a-1].focus.y-e)/2-t.focus.y-_/2);break;case Gc:n?(x-=_,Ue+=_):(ue-=_,We+=_);break;case Wc:n?(x+=Ue-t.width+_,Ue+=_):(ue+=We-t.height+_,We+=_);break;case Nh:case Vc:n?1<a?x+=mn+R/2-t.focus.x:x+=r[0].focus.x-t.focus.x+r[0].la.x:1<a?ue+=mn+R/2-t.focus.y:ue+=r[0].focus.y-t.focus.y+r[0].la.y;break;case Ah:n?x+=Ue+R/2-t.focus.x:ue+=We+R/2-t.focus.y;break;case ih:break;default:e=e.customAlignment(t,x,ue,Ue,We),x=e[0],ue=e[1],Ue=e[2],We=e[3]}for(e=0;e<a;e++)_=r[e],n?_.S.h(_.S.x+_.la.x-x,_.S.y+(135<i?(l?-We:-_.Da.height)+_.la.y-u:Fe+u+_.la.y)):_.S.h(_.S.x+(135<i?(l?-Ue:-_.Da.width)+_.la.x-u:p+u+_.la.x),_.S.y+_.la.y-ue);n?(Ue=_v(t,Ue,x),0>x&&(x=0),135<i&&(ue+=We+u),We=Math.max(Math.max(We,Fe),We+Fe+u)):(135<i&&(x+=Ue+u),Ue=Math.max(Math.max(Ue,p),Ue+p+u),We=zv(t,We,ue),0>ue&&(ue=0)),t.la.h(x,ue),t.Da.h(Ue,We)}}Ar.prototype.customAlignment=function(e,t,n,i,r){return[t,n,i,r]};function Sb(e,t,n,i,r,o){var a=n.length;if(a===0)return new Zt(i,0,r,o);if(a===1)return t=n[0],r=t.Da.width,o=t.Da.height,new Zt(i,0,r,o);for(var l=t.nodeSpacing,u=t.rowSpacing,f=lc(t)===90,p=0,x=0,N=0,R=0;R<a;R++)if(!(R%2!==0||1<a&&R===a-1)){var _=n[R],V=_.Da,xe=p===0?0:u;if(f){var ue=e.computeBusNodeSpacing(_)-l;_.S.h(i-(V.width+ue),N+xe),r=Math.max(r,V.width+ue),o=Math.max(o,N+xe+V.height),N+=xe+V.height}else ue=e.computeBusNodeSpacing(_)-l,_.S.h(x+xe,i-(V.height+ue)),o=Math.max(o,V.height+ue),r=Math.max(r,x+xe+V.width),x+=xe+V.width;p++}for(p=0,_=x,R=N,f?(x=i+l,N=0):(x=0,N=i+l),V=0;V<a;V++)if(V%2!==0){xe=n[V],ue=xe.Da;var Fe=p===0?0:u;if(f){var Ue=e.computeBusNodeSpacing(xe)-l;xe.S.h(x+Ue,N+Fe),r=Math.max(r,x+ue.width+Ue),o=Math.max(o,N+Fe+ue.height),N+=Fe+ue.height}else Ue=e.computeBusNodeSpacing(xe)-l,xe.S.h(x+Fe,N+Ue),r=Math.max(r,x+Fe+ue.width),o=Math.max(o,N+ue.height+Ue),x+=Fe+ue.width;p++}return 1<a&&a%2===1&&(n=n[a-1],a=n.Da,e=e.computeBusLastRowSpacing(n,f?Math.max(Math.abs(R),Math.abs(N)):Math.max(Math.abs(_),Math.abs(x))),f?(n.S.h(i+l/2-n.focus.x-n.la.x,o+e),f=i+l/2-n.focus.x-n.la.x,r=Math.max(r,f+a.width),0>f&&(r-=f),o=Math.max(o,Math.max(R,N)+e+a.height),0>n.S.x&&(i=$m(t,n.S.x,!1,i,l))):(n.S.h(r+e,i+l/2-n.focus.y-n.la.y),r=Math.max(r,Math.max(_,x)+e+a.width),N=i+l/2-n.focus.y-n.la.y,o=Math.max(o,N+a.height),0>N&&(o-=N),0>n.S.y&&(i=$m(t,n.S.y,!0,i,l)))),new Zt(i,0,r,o)}function Eb(e,t,n,i,r,o){var a=n.length;if(a===0)return new Zt(i,0,r,o);if(a===1)return n=n[0],r=n.Da.width,o=n.Da.height,new Zt(i,0,r,o);for(var l=t.nodeSpacing,u=t.rowSpacing,f=lc(t)===270,p=0,x=0,N=0,R=0;R<a;R++)if(!(R%2!==0||1<a&&R===a-1)){var _=n[R],V=_.Da,xe=p===0?0:u;if(f){var ue=e.computeBusNodeSpacing(_)-l;N-=xe+V.height,_.S.h(i-(V.width+ue),N),r=Math.max(r,V.width+ue),o=Math.max(o,Math.abs(N))}else ue=e.computeBusNodeSpacing(_)-l,x-=xe+V.width,_.S.h(x,i-(V.height+ue)),o=Math.max(o,V.height+ue),r=Math.max(r,Math.abs(x));p++}for(p=0,_=x,R=N,f?(x=i+l,N=0):(x=0,N=i+l),V=0;V<a;V++)if(V%2!==0){xe=n[V],ue=xe.Da;var Fe=p===0?0:u;if(f){var Ue=e.computeBusNodeSpacing(xe)-l;N-=Fe+ue.height,xe.S.h(x+Ue,N),r=Math.max(r,x+ue.width+Ue),o=Math.max(o,Math.abs(N))}else Ue=e.computeBusNodeSpacing(xe)-l,x-=Fe+ue.width,xe.S.h(x,N+Ue),o=Math.max(o,N+ue.height+Ue),r=Math.max(r,Math.abs(x));p++}for(1<a&&a%2===1&&(u=n[a-1],p=u.Da,e=e.computeBusLastRowSpacing(u,f?Math.max(Math.abs(R),Math.abs(N)):Math.max(Math.abs(_),Math.abs(x))),f?(u.S.h(i+l/2-u.focus.x-u.la.x,-o-p.height-e),x=i+l/2-u.focus.x-u.la.x,r=Math.max(r,x+p.width),0>x&&(r-=x),o=Math.max(o,Math.abs(Math.min(R,N))+e+p.height),0>u.S.x&&(i=$m(t,u.S.x,!1,i,l))):(u.S.h(-r-p.width-e,i+l/2-u.focus.y-u.la.y),r=Math.max(r,Math.abs(Math.min(_,x))+e+p.width),N=i+l/2-u.focus.y-u.la.y,o=Math.max(o,N+p.height),0>N&&(o-=N),0>u.S.y&&(i=$m(t,u.S.y,!0,i,l)))),t=0;t<a;t++)l=n[t],f?l.S.h(l.S.x,l.S.y+o):l.S.h(l.S.x+r,l.S.y);return new Zt(i,0,r,o)}Ar.prototype.computeBusNodeSpacing=function(e){return e.parent===null?0:e.parent.nodeSpacing},Ar.prototype.computeBusLastRowSpacing=function(e){return e.parent===null?0:e.parent.rowSpacing};function $m(e,t,n,i,r){e=e.children;for(var o=e.length,a=0;a<o;a++)n?e[a].S.h(e[a].S.x,e[a].S.y-t):e[a].S.h(e[a].S.x-t,e[a].S.y);return t=e[o-1],Math.max(i,n?t.la.y+t.focus.y-r/2:t.la.x+t.focus.x-r/2)}function _v(e,t,n){switch(e.alignment){case Jd:case Gf:return n+e.width>t&&(t=n+e.width),0>n&&(t-=n),t;case Gc:return e.width>t?e.width:t;case Wc:return 2*e.focus.x>t?e.width:t+e.width-2*e.focus.x;case Nh:case Vc:return Math.max(e.width,Math.max(t,n+e.width)-Math.min(0,n));case Ah:return e.width-e.focus.x+e.nodeSpacing/2+t;case ih:return Math.max(e.width,e.focus.x+e.nodeSpacing/2+t);default:return t}}function zv(e,t,n){switch(e.alignment){case Jd:case Gf:return n+e.height>t&&(t=n+e.height),0>n&&(t-=n),t;case Gc:return e.height>t?e.height:t;case Wc:return 2*e.focus.y>t?e.height:t+e.height-2*e.focus.y;case Nh:case Vc:return Math.max(e.height,Math.max(t,n+e.height)-Math.min(0,n));case Ah:return e.height-e.focus.y+e.nodeSpacing/2+t;case ih:return Math.max(e.height,e.focus.y+e.nodeSpacing/2+t);default:return t}}function Uv(e,t,n){switch(e){case Gf:t/=2,n/=2;break;case Jd:t/=2,n/=2;break;case Gc:n=t=0;break;case Wc:break;default:Ve("Unhandled alignment value "+e.toString())}return new he(t,n)}function Nd(e,t,n,i,r,o){t=Uv(t,n,i),Xd(e,t.x,t.y,r,o)}function Xd(e,t,n,i,r){if(t!==0||n!==0)for(e=e.children;i<=r;i++){var o=e[i].S;o.x+=t,o.y+=n}}function jm(e,t,n,i){var r=t.parent;switch(e.ud){case jc:for(e=t.sourceEdges;e.next();)t=e.value,t.fromVertex===r&&t.relativePoint.h(n,i);break;case Qd:for(e=t.destinationEdges;e.next();)t=e.value,t.toVertex===r&&t.relativePoint.h(n,i);break;default:Ve("Unhandled path value "+e.ud.toString())}}function Gm(e,t,n){for(var i=0;i<e.length;i++){var r=e[i];r.x+=t,r.y+=n}}function wb(e,t,n,i,r,o,a,l){var u=lc(t),f=u===90||u===270,p=t.nodeSpacing;t=i;var x=r;i=o;var N=a,R=n.Yo,_=n.kp;a=n.Da;var V=f?Math.max(N,a.height):Math.max(i,a.width);if((R===null||u!==lc(n))&&(R=Zl(e,2),_=Zl(e,2),f?(R[0].h(0,0),R[1].h(0,a.height),_[0].h(a.width,0),_[1].h(_[0].x,R[1].y)):(R[0].h(0,0),R[1].h(a.width,0),_[0].h(0,a.height),_[1].h(R[1].x,_[0].y))),f){if(N=9999999,!(x===null||2>x.length||R===null||2>R.length))for(r=n=0;n<x.length&&r<R.length;){o=x[n];var xe=R[r];u=xe.x,f=xe.y,u+=i;var ue=o;n+1<x.length&&(ue=x[n+1]);var Fe=xe;xe=Fe.x,Fe=Fe.y,r+1<R.length&&(Fe=R[r+1],xe=Fe.x,Fe=Fe.y,xe+=i);var Ue=N;o.y===f?Ue=u-o.x:o.y>f&&o.y<Fe?Ue=u+(o.y-f)/(Fe-f)*(xe-u)-o.x:f>o.y&&f<ue.y&&(Ue=u-(o.x+(f-o.y)/(ue.y-o.y)*(ue.x-o.x))),Ue<N&&(N=Ue),ue.y<=o.y?n++:Fe<=f?r++:(ue.y<=Fe&&n++,Fe<=ue.y&&r++)}if(N=i-N,N+=p,n=R,r=N,t===null||2>t.length||n===null||2>n.length)i=null;else{for(p=Zl(e,t.length+n.length),i=o=u=0;o<n.length&&n[o].y<t[0].y;)f=n[o++],p[i++].h(f.x+r,f.y);for(;u<t.length;)f=t[u++],p[i++].h(f.x,f.y);for(u=t[t.length-1].y;o<n.length&&n[o].y<=u;)o++;for(;o<n.length&&n[o].y>u;)f=n[o++],p[i++].h(f.x+r,f.y);for(n=Zl(e,i),u=0;u<i;u++)n[u].assign(p[u]);vc(e,p),i=n}if(o=_,u=N,x===null||2>x.length||o===null||2>o.length)r=null;else{for(p=Zl(e,x.length+o.length),r=f=n=0;n<x.length&&x[n].y<o[0].y;)ue=x[n++],p[r++].h(ue.x,ue.y);for(;f<o.length;)ue=o[f++],p[r++].h(ue.x+u,ue.y);for(o=o[o.length-1].y;n<x.length&&x[n].y<=o;)n++;for(;n<x.length&&x[n].y>o;)u=x[n++],p[r++].h(u.x,u.y);for(o=Zl(e,r),n=0;n<r;n++)o[n].assign(p[n]);vc(e,p),r=o}return o=Math.max(0,N)+a.width,a=V,vc(e,t),vc(e,R),vc(e,x),vc(e,_),l[0]=i,l[1]=r,new Zt(N,0,o,a)}if(i=9999999,!(x===null||2>x.length||R===null||2>R.length))for(r=n=0;n<x.length&&r<R.length;)o=x[n],xe=R[r],u=xe.x,f=xe.y,f+=N,ue=o,n+1<x.length&&(ue=x[n+1]),Fe=xe,xe=Fe.x,Fe=Fe.y,r+1<R.length&&(Fe=R[r+1],xe=Fe.x,Fe=Fe.y,Fe+=N),Ue=i,o.x===u?Ue=f-o.y:o.x>u&&o.x<xe?Ue=f+(o.x-u)/(xe-u)*(Fe-f)-o.y:u>o.x&&u<ue.x&&(Ue=f-(o.y+(u-o.x)/(ue.x-o.x)*(ue.y-o.y))),Ue<i&&(i=Ue),ue.x<=o.x?n++:xe<=u?r++:(ue.x<=xe&&n++,xe<=ue.x&&r++);if(N-=i,N+=p,n=R,r=N,t===null||2>t.length||n===null||2>n.length)i=null;else{for(p=Zl(e,t.length+n.length),i=o=u=0;o<n.length&&n[o].x<t[0].x;)f=n[o++],p[i++].h(f.x,f.y+r);for(;u<t.length;)f=t[u++],p[i++].h(f.x,f.y);for(u=t[t.length-1].x;o<n.length&&n[o].x<=u;)o++;for(;o<n.length&&n[o].x>u;)f=n[o++],p[i++].h(f.x,f.y+r);for(n=Zl(e,i),u=0;u<i;u++)n[u].assign(p[u]);vc(e,p),i=n}if(o=_,u=N,x===null||2>x.length||o===null||2>o.length)r=null;else{for(p=Zl(e,x.length+o.length),r=f=n=0;n<x.length&&x[n].x<o[0].x;)ue=x[n++],p[r++].h(ue.x,ue.y);for(;f<o.length;)ue=o[f++],p[r++].h(ue.x,ue.y+u);for(o=o[o.length-1].x;n<x.length&&x[n].x<=o;)n++;for(;n<x.length&&x[n].x>o;)u=x[n++],p[r++].h(u.x,u.y);for(o=Zl(e,r),n=0;n<r;n++)o[n].assign(p[n]);vc(e,p),r=o}return o=V,a=Math.max(0,N)+a.height,vc(e,t),vc(e,R),vc(e,x),vc(e,_),l[0]=i,l[1]=r,new Zt(N,0,o,a)}function Zl(e,t){if(e=e.ru[t],e!==void 0&&(e=e.pop(),e!==void 0))return e;e=[];for(var n=0;n<t;n++)e[n]=new he;return e}function vc(e,t){var n=t.length,i=e.ru[n];i===void 0&&(i=[],e.ru[n]=i),i.push(t)}Ar.prototype.arrangeTrees=function(){if(this.Rb===Ym)for(var e=this.Ub.iterator;e.next();){var t=e.value;if(t instanceof Wu){var n=t.node;if(n!==null){var i=n.position;n=i.x,i=i.y,isFinite(n)||(n=0),isFinite(i)||(i=0),Hv(this,t,n,i)}}}else{for(e=[],t=this.Ub.iterator;t.next();)n=t.value,n instanceof Wu&&e.push(n);switch(this.sorting){case jf:break;case e0:e.reverse();break;case t0:e.sort(this.comparer);break;case n0:e.sort(this.comparer),e.reverse();break;default:Ve("Unhandled sorting value "+this.sorting.toString())}for(n=this.arrangementOrigin,t=n.x,n=n.y,i=0;i<e.length;i++){var r=e[i];switch(Hv(this,r,t+r.la.x,n+r.la.y),this.Rb){case Zm:n+=r.Da.height+this.$d.height;break;case Wv:t+=r.Da.width+this.$d.width;break;default:Ve("Unhandled arrangement value "+this.Rb.toString())}}}};function Hv(e,t,n,i){if(t!==null){t.x=n,t.y=i,t=t.children;for(var r=t.length,o=0;o<r;o++){var a=t[o];Hv(e,a,n+a.S.x,i+a.S.y)}}}Ar.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},Ar.prototype.commitNodes=function(){for(var e=this.network.vertexes.iterator;e.next();)e.value.commit();for(e.reset();e.next();)this.layoutComments(e.value)},Ar.prototype.Gu=function(){if(this.layerStyle===Xm){for(var e=this.$v,t=[],n=null,i=this.network.vertexes.iterator;i.next();){var r=i.value;n===null?n=r.bounds.copy():n.ed(r.bounds);var o=t[r.level];o===void 0?o=this.computeLayerSpacing(r):o=Math.max(o,this.computeLayerSpacing(r)),t[r.level]=o}for(i=0;i<t.length;i++)t[i]===void 0&&(t[i]=0);if(this.angle===90||this.angle===270?(n.Bc(this.nodeSpacing/2,this.layerSpacing),i=new he(-this.nodeSpacing/2,-this.layerSpacing/2)):(n.Bc(this.layerSpacing,this.nodeSpacing/2),i=new he(-this.layerSpacing/2,-this.nodeSpacing/2)),r=[],n=this.angle===90||this.angle===270?n.width:n.height,o=0,this.angle===180||this.angle===270)for(var a=0;a<e.length;a++)o+=e[a]+t[a];for(a=0;a<e.length;a++){var l=e[a]+t[a];this.angle===270?(o-=l,r.push(new Zt(0,o,n,l))):this.angle===90?(r.push(new Zt(0,o,n,l)),o+=l):this.angle===180?(o-=l,r.push(new Zt(o,0,l,n))):(r.push(new Zt(o,0,l,n)),o+=l)}this.commitLayers(r,i)}},Ar.prototype.commitLayers=function(){},Ar.prototype.commitLinks=function(){for(var e=this.network.edges.iterator;e.next();)e.value.commit()},Ar.prototype.yv=function(){for(var e=this.Ub.iterator;e.next();){var t=e.value;t instanceof Wu&&Cb(this,t)}};function Cb(e,t){if(t!==null){e.setPortSpots(t),t=t.children;for(var n=t.length,i=0;i<n;i++)Cb(e,t[i])}}Ar.prototype.setPortSpots=function(e){var t=e.alignment;if(td(t)){var n=this.ud===jc,i=lc(e);switch(i){case 0:var r=Ma;break;case 90:r=Oa;break;case 180:r=va;break;default:r=ia}var o=e.children,a=o.length;switch(t){case Nh:case Vc:for(t=0;t<a;t++){var l=o[t];if(l=(n?l.sourceEdges:l.destinationEdges).first(),l!==null&&(l=l.link,l!==null)){var u=i===90||i===270?va:ia;if(a===1||t===a-1&&a%2===1)switch(i){case 0:u=va;break;case 90:u=ia;break;case 180:u=Ma;break;default:u=Oa}else t%2===0&&(u=i===90||i===270?Ma:Oa);n?(e.setsPortSpot&&(l.fromSpot=r),e.setsChildPortSpot&&(l.toSpot=u)):(e.setsPortSpot&&(l.fromSpot=u),e.setsChildPortSpot&&(l.toSpot=r))}}break;case Ah:for(i=i===90||i===270?Ma:Oa,o=n?e.destinationEdges:e.sourceEdges;o.next();)a=o.value.link,a!==null&&(n?(e.setsPortSpot&&(a.fromSpot=r),e.setsChildPortSpot&&(a.toSpot=i)):(e.setsPortSpot&&(a.fromSpot=i),e.setsChildPortSpot&&(a.toSpot=r)));break;case ih:for(i=i===90||i===270?va:ia,o=n?e.destinationEdges:e.sourceEdges;o.next();)a=o.value.link,a!==null&&(n?(e.setsPortSpot&&(a.fromSpot=r),e.setsChildPortSpot&&(a.toSpot=i)):(e.setsPortSpot&&(a.fromSpot=i),e.setsChildPortSpot&&(a.toSpot=r)))}}else if(n=lc(e),this.ud===jc){for(r=e.destinationEdges;r.next();)if(i=r.value.link,i!==null){if(e.setsPortSpot)if(e.portSpot.Xb())switch(n){case 0:i.fromSpot=Ma;break;case 90:i.fromSpot=Oa;break;case 180:i.fromSpot=va;break;default:i.fromSpot=ia}else i.fromSpot=e.portSpot;if(e.setsChildPortSpot)if(e.childPortSpot.Xb())switch(n){case 0:i.toSpot=va;break;case 90:i.toSpot=ia;break;case 180:i.toSpot=Ma;break;default:i.toSpot=Oa}else i.toSpot=e.childPortSpot}}else for(r=e.sourceEdges;r.next();)if(i=r.value.link,i!==null){if(e.setsPortSpot)if(e.portSpot.Xb())switch(n){case 0:i.toSpot=Ma;break;case 90:i.toSpot=Oa;break;case 180:i.toSpot=va;break;default:i.toSpot=ia}else i.toSpot=e.portSpot;if(e.setsChildPortSpot)if(e.childPortSpot.Xb())switch(n){case 0:i.fromSpot=va;break;case 90:i.fromSpot=ia;break;case 180:i.fromSpot=Ma;break;default:i.fromSpot=Oa}else i.fromSpot=e.childPortSpot}};function lc(e){return e=e.angle,45>=e?0:135>=e?90:225>=e?180:315>=e?270:0}Ar.prototype.computeLayerSpacing=function(e){var t=lc(e);t=t===90||t===270;var n=e.layerSpacing;if(0<e.layerSpacingParentOverlap){var i=Math.min(1,e.layerSpacingParentOverlap);n-=t?e.height*i:e.width*i}return n<(t?-e.height:-e.width)&&(n=t?-e.height:-e.width),n},Ar.prototype.computeNodeIndent=function(e){var t=lc(e),n=e.nodeIndent;if(0<e.nodeIndentPastParent){var i=Math.min(1,e.nodeIndentPastParent);n+=t===90||t===270?e.width*i:e.height*i}return n=Math.max(0,n)},ht.Object.defineProperties(Ar.prototype,{roots:{get:function(){return this.Ub},set:function(e){this.Ub!==e&&(this.Ub=e,this.C())}},path:{get:function(){return this.Wn},set:function(e){this.Wn!==e&&(this.Wn=e,this.C())}},treeStyle:{get:function(){return this.vo},set:function(e){this.Rb===e||e!==Km&&e!==jv&&e!==$v&&e!==Gv||(this.vo=e,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(e){this.Rb===e||e!==Vv&&e!==Kv&&e!==Xm||(this.Bq=e,this.C())}},comments:{get:function(){return this.td},set:function(e){this.td!==e&&(this.td=e,this.C())}},arrangement:{get:function(){return this.Rb},set:function(e){this.Rb===e||e!==Zm&&e!==Wv&&e!==Ym||(this.Rb=e,this.C())}},arrangementSpacing:{get:function(){return this.$d},set:function(e){this.$d.D(e)||(this.$d.assign(e),this.C())}},rootDefaults:{get:function(){return this.W},set:function(e){this.W!==e&&(this.W=e,this.C())}},alternateDefaults:{get:function(){return this.Y},set:function(e){this.Y!==e&&(this.Y=e,this.C())}},sorting:{get:function(){return this.W.sorting},set:function(e){this.W.sorting===e||e!==jf&&e!==e0&&e!==t0&&!n0||(this.W.sorting=e,this.C())}},comparer:{get:function(){return this.W.comparer},set:function(e){this.W.comparer!==e&&(this.W.comparer=e,this.C())}},angle:{get:function(){return this.W.angle},set:function(e){this.W.angle!==e&&(e===0||e===90||e===180||e===270?(this.W.angle=e,this.C()):Ve("TreeLayout.angle must be 0, 90, 180, or 270"))}},alignment:{get:function(){return this.W.alignment},set:function(e){this.W.alignment!==e&&(this.W.alignment=e,this.C())}},nodeIndent:{get:function(){return this.W.nodeIndent},set:function(e){this.W.nodeIndent!==e&&0<=e&&(this.W.nodeIndent=e,this.C())}},nodeIndentPastParent:{get:function(){return this.W.nodeIndentPastParent},set:function(e){this.W.nodeIndentPastParent!==e&&0<=e&&1>=e&&(this.W.nodeIndentPastParent=e,this.C())}},nodeSpacing:{get:function(){return this.W.nodeSpacing},set:function(e){this.W.nodeSpacing!==e&&(this.W.nodeSpacing=e,this.C())}},layerSpacing:{get:function(){return this.W.layerSpacing},set:function(e){this.W.layerSpacing!==e&&(this.W.layerSpacing=e,this.C())}},layerSpacingParentOverlap:{get:function(){return this.W.layerSpacingParentOverlap},set:function(e){this.W.layerSpacingParentOverlap!==e&&0<=e&&1>=e&&(this.W.layerSpacingParentOverlap=e,this.C())}},compaction:{get:function(){return this.W.compaction},set:function(e){this.W.compaction===e||e!==Vm&&e!==i0||(this.W.compaction=e,this.C())}},breadthLimit:{get:function(){return this.W.breadthLimit},set:function(e){this.W.breadthLimit!==e&&0<=e&&(this.W.breadthLimit=e,this.C())}},rowSpacing:{get:function(){return this.W.rowSpacing},set:function(e){this.W.rowSpacing!==e&&(this.W.rowSpacing=e,this.C())}},rowIndent:{get:function(){return this.W.rowIndent},set:function(e){this.W.rowIndent!==e&&0<=e&&(this.W.rowIndent=e,this.C())}},commentSpacing:{get:function(){return this.W.commentSpacing},set:function(e){this.W.commentSpacing!==e&&(this.W.commentSpacing=e,this.C())}},commentMargin:{get:function(){return this.W.commentMargin},set:function(e){this.W.commentMargin!==e&&(this.W.commentMargin=e,this.C())}},setsPortSpot:{get:function(){return this.W.setsPortSpot},set:function(e){this.W.setsPortSpot!==e&&(this.W.setsPortSpot=e,this.C())}},portSpot:{get:function(){return this.W.portSpot},set:function(e){this.W.portSpot.D(e)||(this.W.portSpot=e,this.C())}},setsChildPortSpot:{get:function(){return this.W.setsChildPortSpot},set:function(e){this.W.setsChildPortSpot!==e&&(this.W.setsChildPortSpot=e,this.C())}},childPortSpot:{get:function(){return this.W.childPortSpot},set:function(e){this.W.childPortSpot.D(e)||(this.W.childPortSpot=e,this.C())}},alternateSorting:{get:function(){return this.Y.sorting},set:function(e){this.Y.sorting===e||e!==jf&&e!==e0&&e!==t0&&!n0||(this.Y.sorting=e,this.C())}},alternateComparer:{get:function(){return this.Y.comparer},set:function(e){this.Y.comparer!==e&&(this.Y.comparer=e,this.C())}},alternateAngle:{get:function(){return this.Y.angle},set:function(e){this.Y.angle===e||e!==0&&e!==90&&e!==180&&e!==270||(this.Y.angle=e,this.C())}},alternateAlignment:{get:function(){return this.Y.alignment},set:function(e){this.Y.alignment!==e&&(this.Y.alignment=e,this.C())}},alternateNodeIndent:{get:function(){return this.Y.nodeIndent},set:function(e){this.Y.nodeIndent!==e&&0<=e&&(this.Y.nodeIndent=e,this.C())}},alternateNodeIndentPastParent:{get:function(){return this.Y.nodeIndentPastParent},set:function(e){this.Y.nodeIndentPastParent!==e&&0<=e&&1>=e&&(this.Y.nodeIndentPastParent=e,this.C())}},alternateNodeSpacing:{get:function(){return this.Y.nodeSpacing},set:function(e){this.Y.nodeSpacing!==e&&(this.Y.nodeSpacing=e,this.C())}},alternateLayerSpacing:{get:function(){return this.Y.layerSpacing},set:function(e){this.Y.layerSpacing!==e&&(this.Y.layerSpacing=e,this.C())}},alternateLayerSpacingParentOverlap:{get:function(){return this.Y.layerSpacingParentOverlap},set:function(e){this.Y.layerSpacingParentOverlap!==e&&0<=e&&1>=e&&(this.Y.layerSpacingParentOverlap=e,this.C())}},alternateCompaction:{get:function(){return this.Y.compaction},set:function(e){this.Y.compaction===e||e!==Vm&&e!==i0||(this.Y.compaction=e,this.C())}},alternateBreadthLimit:{get:function(){return this.Y.breadthLimit},set:function(e){this.Y.breadthLimit!==e&&0<=e&&(this.Y.breadthLimit=e,this.C())}},alternateRowSpacing:{get:function(){return this.Y.rowSpacing},set:function(e){this.Y.rowSpacing!==e&&(this.Y.rowSpacing=e,this.C())}},alternateRowIndent:{get:function(){return this.Y.rowIndent},set:function(e){this.Y.rowIndent!==e&&0<=e&&(this.Y.rowIndent=e,this.C())}},alternateCommentSpacing:{get:function(){return this.Y.commentSpacing},set:function(e){this.Y.commentSpacing!==e&&(this.Y.commentSpacing=e,this.C())}},alternateCommentMargin:{get:function(){return this.Y.commentMargin},set:function(e){this.Y.commentMargin!==e&&(this.Y.commentMargin=e,this.C())}},alternateSetsPortSpot:{get:function(){return this.Y.setsPortSpot},set:function(e){this.Y.setsPortSpot!==e&&(this.Y.setsPortSpot=e,this.C())}},alternatePortSpot:{get:function(){return this.Y.portSpot},set:function(e){this.Y.portSpot.D(e)||(this.Y.portSpot=e,this.C())}},alternateSetsChildPortSpot:{get:function(){return this.Y.setsChildPortSpot},set:function(e){this.Y.setsChildPortSpot!==e&&(this.Y.setsChildPortSpot=e,this.C())}},alternateChildPortSpot:{get:function(){return this.Y.childPortSpot},set:function(e){this.Y.childPortSpot.D(e)||(this.Y.childPortSpot=e,this.C())}}});var Wm=new Yt(Ar,"PathDefault",-1),jc=new Yt(Ar,"PathDestination",0),Qd=new Yt(Ar,"PathSource",1),jf=new Yt(Ar,"SortingForwards",10),e0=new Yt(Ar,"SortingReverse",11),t0=new Yt(Ar,"SortingAscending",12),n0=new Yt(Ar,"SortingDescending",13),Gf=new Yt(Ar,"AlignmentCenterSubtrees",20),Jd=new Yt(Ar,"AlignmentCenterChildren",21),Gc=new Yt(Ar,"AlignmentStart",22),Wc=new Yt(Ar,"AlignmentEnd",23),Nh=new Yt(Ar,"AlignmentBus",24),Vc=new Yt(Ar,"AlignmentBusBranching",25),Ah=new Yt(Ar,"AlignmentTopLeftBus",26),ih=new Yt(Ar,"AlignmentBottomRightBus",27),Vm=new Yt(Ar,"CompactionNone",30),i0=new Yt(Ar,"CompactionBlock",31),Km=new Yt(Ar,"StyleLayered",40),$v=new Yt(Ar,"StyleLastParents",41),jv=new Yt(Ar,"StyleAlternating",42),Gv=new Yt(Ar,"StyleRootOnly",43),Zm=new Yt(Ar,"ArrangementVertical",50),Wv=new Yt(Ar,"ArrangementHorizontal",51),Ym=new Yt(Ar,"ArrangementFixedRoots",52),Vv=new Yt(Ar,"LayerIndividual",60),Kv=new Yt(Ar,"LayerSiblings",61),Xm=new Yt(Ar,"LayerUniform",62);Ar.className="TreeLayout",Ar.PathDefault=Wm,Ar.PathDestination=jc,Ar.PathSource=Qd,Ar.SortingForwards=jf,Ar.SortingReverse=e0,Ar.SortingAscending=t0,Ar.SortingDescending=n0,Ar.AlignmentCenterSubtrees=Gf,Ar.AlignmentCenterChildren=Jd,Ar.AlignmentStart=Gc,Ar.AlignmentEnd=Wc,Ar.AlignmentBus=Nh,Ar.AlignmentBusBranching=Vc,Ar.AlignmentTopLeftBus=Ah,Ar.AlignmentBottomRightBus=ih,Ar.CompactionNone=Vm,Ar.CompactionBlock=i0,Ar.StyleLayered=Km,Ar.StyleLastParents=$v,Ar.StyleAlternating=jv,Ar.StyleRootOnly=Gv,Ar.ArrangementVertical=Zm,Ar.ArrangementHorizontal=Wv,Ar.ArrangementFixedRoots=Ym,Ar.LayerIndividual=Vv,Ar.LayerSiblings=Kv,Ar.LayerUniform=Xm;function qd(e){Oo.call(this,e)}yi(qd,Oo),qd.prototype.createVertex=function(){return new Wu(this)},qd.prototype.createEdge=function(){return new Wf(this)},qd.className="TreeNetwork";function Wu(e){ns.call(this,e),this.V=!1,this.hb=null,this.u=[],this.nb=this.Ha=this.F=this.ia=0,this.td=null,this.S=new he(0,0),this.Da=new pi(0,0),this.la=new he(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=jf,this.hd=fv,this.Kb=0,this.Jb=Jd,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=i0,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=Kr,this.wr=!0,this.Dp=Kr}yi(Wu,ns),Wu.prototype.copyInheritedPropertiesFrom=function(e){e!==null&&(this.nd=e.sorting,this.hd=e.comparer,this.Kb=e.angle,this.Jb=e.alignment,this.Uq=e.nodeIndent,this.Vq=e.nodeIndentPastParent,this.Wq=e.nodeSpacing,this.ie=e.layerSpacing,this.Aq=e.layerSpacingParentOverlap,this.Hp=e.compaction,this.Ap=e.breadthLimit,this.nr=e.rowSpacing,this.mr=e.rowIndent,this.Gp=e.commentSpacing,this.Fp=e.commentMargin,this.xr=e.setsPortSpot,this.dr=e.portSpot,this.wr=e.setsChildPortSpot,this.Dp=e.childPortSpot)},ht.Object.defineProperties(Wu.prototype,{initialized:{get:function(){return this.V},set:function(e){this.V!==e&&(this.V=e)}},parent:{get:function(){return this.hb},set:function(e){this.hb!==e&&(this.hb=e)}},children:{get:function(){return this.u},set:function(e){if(this.u!==e){if(e!==null)for(var t=e.length,n=0;n<t;n++);this.u=e}}},level:{get:function(){return this.ia},set:function(e){this.ia!==e&&(this.ia=e)}},descendantCount:{get:function(){return this.F},set:function(e){this.F!==e&&(this.F=e)}},maxChildrenCount:{get:function(){return this.Ha},set:function(e){this.Ha!==e&&(this.Ha=e)}},maxGenerationCount:{get:function(){return this.nb},set:function(e){this.nb!==e&&(this.nb=e)}},comments:{get:function(){return this.td},set:function(e){if(this.td!==e){if(e!==null)for(var t=e.length,n=0;n<t;n++);this.td=e}}},sorting:{get:function(){return this.nd},set:function(e){this.nd!==e&&(this.nd=e)}},comparer:{get:function(){return this.hd},set:function(e){this.hd!==e&&(this.hd=e)}},angle:{get:function(){return this.Kb},set:function(e){this.Kb!==e&&(this.Kb=e)}},alignment:{get:function(){return this.Jb},set:function(e){this.Jb!==e&&(this.Jb=e)}},nodeIndent:{get:function(){return this.Uq},set:function(e){this.Uq!==e&&(this.Uq=e)}},nodeIndentPastParent:{get:function(){return this.Vq},set:function(e){this.Vq!==e&&(this.Vq=e)}},nodeSpacing:{get:function(){return this.Wq},set:function(e){this.Wq!==e&&(this.Wq=e)}},layerSpacing:{get:function(){return this.ie},set:function(e){this.ie!==e&&(this.ie=e)}},layerSpacingParentOverlap:{get:function(){return this.Aq},set:function(e){this.Aq!==e&&(this.Aq=e)}},compaction:{get:function(){return this.Hp},set:function(e){this.Hp!==e&&(this.Hp=e)}},breadthLimit:{get:function(){return this.Ap},set:function(e){this.Ap!==e&&(this.Ap=e)}},rowSpacing:{get:function(){return this.nr},set:function(e){this.nr!==e&&(this.nr=e)}},rowIndent:{get:function(){return this.mr},set:function(e){this.mr!==e&&(this.mr=e)}},commentSpacing:{get:function(){return this.Gp},set:function(e){this.Gp!==e&&(this.Gp=e)}},commentMargin:{get:function(){return this.Fp},set:function(e){this.Fp!==e&&(this.Fp=e)}},setsPortSpot:{get:function(){return this.xr},set:function(e){this.xr!==e&&(this.xr=e)}},portSpot:{get:function(){return this.dr},set:function(e){this.dr.D(e)||(this.dr=e)}},setsChildPortSpot:{get:function(){return this.wr},set:function(e){this.wr!==e&&(this.wr=e)}},childPortSpot:{get:function(){return this.Dp},set:function(e){this.Dp.D(e)||(this.Dp=e)}},childrenCount:{get:function(){return this.children.length}},relativePosition:{get:function(){return this.S},set:function(e){this.S.set(e)}},subtreeSize:{get:function(){return this.Da},set:function(e){this.Da.set(e)}},subtreeOffset:{get:function(){return this.la},set:function(e){this.la.set(e)}}}),Wu.className="TreeVertex";function Wf(e){au.call(this,e),this.$t=new he(0,0)}yi(Wf,au),Wf.prototype.commit=function(){var e=this.link;if(e!==null&&!e.isAvoiding){var t=this.network.layout,n=null,i=null;switch(t.ud){case jc:n=this.fromVertex,i=this.toVertex;break;case Qd:n=this.toVertex,i=this.fromVertex;break;default:Ve("Unhandled path value "+t.ud.toString())}if(n!==null&&i!==null){var r=this.$t;if(r.x!==0||r.y!==0||n.qA){i=n.bounds;var o=lc(n),a=t.computeLayerSpacing(n),l=n.rowSpacing;e.vg();var u=e.curve===Su,f=e.isOrthogonal,p;if(e.uh(),f||u){for(p=2;4<e.pointsCount;)e.pv(2);var x=e.i(1),N=e.i(2)}else{for(p=1;3<e.pointsCount;)e.pv(1);x=e.i(0),N=e.i(e.pointsCount-1)}var R=e.i(e.pointsCount-1);o===0?(n.alignment===Wc?(o=i.bottom+r.y,r.y===0&&x.y>R.y+n.rowIndent&&(o=Math.min(o,Math.max(x.y,o-t.computeNodeIndent(n))))):n.alignment===Gc?(o=i.top+r.y,r.y===0&&x.y<R.y-n.rowIndent&&(o=Math.max(o,Math.min(x.y,o+t.computeNodeIndent(n))))):o=n.hm||n.im&&n.maxGenerationCount===1?i.top-n.la.y+r.y:i.y+i.height/2+r.y,u?(e.m(p,x.x,o),p++,e.m(p,i.right+a,o),p++,e.m(p,i.right+a+(r.x-l)/3,o),p++,e.m(p,i.right+a+2*(r.x-l)/3,o),p++,e.m(p,i.right+a+(r.x-l),o),p++,e.m(p,N.x,o)):(f&&(e.m(p,i.right+a/2,x.y),p++),e.m(p,i.right+a/2,o),p++,e.m(p,i.right+a+r.x-(f?l/2:l),o),p++,f&&e.m(p,e.i(p-1).x,N.y))):o===90?(n.alignment===Wc?(o=i.right+r.x,r.x===0&&x.x>R.x+n.rowIndent&&(o=Math.min(o,Math.max(x.x,o-t.computeNodeIndent(n))))):n.alignment===Gc?(o=i.left+r.x,r.x===0&&x.x<R.x-n.rowIndent&&(o=Math.max(o,Math.min(x.x,o+t.computeNodeIndent(n))))):o=n.hm||n.im&&n.maxGenerationCount===1?i.left-n.la.x+r.x:i.x+i.width/2+r.x,u?(e.m(p,o,x.y),p++,e.m(p,o,i.bottom+a),p++,e.m(p,o,i.bottom+a+(r.y-l)/3),p++,e.m(p,o,i.bottom+a+2*(r.y-l)/3),p++,e.m(p,o,i.bottom+a+(r.y-l)),p++,e.m(p,o,N.y)):(f&&(e.m(p,x.x,i.bottom+a/2),p++),e.m(p,o,i.bottom+a/2),p++,e.m(p,o,i.bottom+a+r.y-(f?l/2:l)),p++,f&&e.m(p,N.x,e.i(p-1).y))):o===180?(n.alignment===Wc?(o=i.bottom+r.y,r.y===0&&x.y>R.y+n.rowIndent&&(o=Math.min(o,Math.max(x.y,o-t.computeNodeIndent(n))))):n.alignment===Gc?(o=i.top+r.y,r.y===0&&x.y<R.y-n.rowIndent&&(o=Math.max(o,Math.min(x.y,o+t.computeNodeIndent(n))))):o=n.hm||n.im&&n.maxGenerationCount===1?i.top-n.la.y+r.y:i.y+i.height/2+r.y,u?(e.m(p,x.x,o),p++,e.m(p,i.left-a,o),p++,e.m(p,i.left-a+(r.x+l)/3,o),p++,e.m(p,i.left-a+2*(r.x+l)/3,o),p++,e.m(p,i.left-a+(r.x+l),o),p++,e.m(p,N.x,o)):(f&&(e.m(p,i.left-a/2,x.y),p++),e.m(p,i.left-a/2,o),p++,e.m(p,i.left-a+r.x+(f?l/2:l),o),p++,f&&e.m(p,e.i(p-1).x,N.y))):o===270?(n.alignment===Wc?(o=i.right+r.x,r.x===0&&x.x>R.x+n.rowIndent&&(o=Math.min(o,Math.max(x.x,o-t.computeNodeIndent(n))))):n.alignment===Gc?(o=i.left+r.x,r.x===0&&x.x<R.x-n.rowIndent&&(o=Math.max(o,Math.min(x.x,o+t.computeNodeIndent(n))))):o=n.hm||n.im&&n.maxGenerationCount===1?i.left-n.la.x+r.x:i.x+i.width/2+r.x,u?(e.m(p,o,x.y),p++,e.m(p,o,i.top-a),p++,e.m(p,o,i.top-a+(r.y+l)/3),p++,e.m(p,o,i.top-a+2*(r.y+l)/3),p++,e.m(p,o,i.top-a+(r.y+l)),p++,e.m(p,o,N.y)):(f&&(e.m(p,x.x,i.top-a/2),p++),e.m(p,o,i.top-a/2),p++,e.m(p,o,i.top-a+r.y+(f?l/2:l)),p++,f&&e.m(p,N.x,e.i(p-1).y))):Ve("Invalid angle "+o),e.zf()}else r=i,e=this.link,i=this.network.layout,t=lc(n),t!==lc(r)&&(a=i.computeLayerSpacing(n),l=n.bounds,n=r.bounds,t===0&&n.left-l.right<a+1||t===90&&n.top-l.bottom<a+1||t===180&&l.left-n.right<a+1||t===270&&l.top-n.bottom<a+1||(e.vg(),n=e.curve===Su,r=e.isOrthogonal,i=td(this.fromVertex.alignment),e.uh(),t===0?(t=l.right+a/2,n?e.pointsCount===4&&(n=e.i(3).y,e.L(1,t-20,e.i(1).y),e.m(2,t-20,n),e.m(3,t,n),e.m(4,t+20,n),e.L(5,e.i(5).x,n)):r?i?e.L(3,e.i(2).x,e.i(4).y):e.pointsCount===6&&(e.L(2,t,e.i(2).y),e.L(3,t,e.i(3).y)):e.pointsCount===4?e.m(2,t,e.i(2).y):e.pointsCount===3?e.L(1,t,e.i(2).y):e.pointsCount===2&&e.m(1,t,e.i(1).y)):t===90?(t=l.bottom+a/2,n?e.pointsCount===4&&(n=e.i(3).x,e.L(1,e.i(1).x,t-20),e.m(2,n,t-20),e.m(3,n,t),e.m(4,n,t+20),e.L(5,n,e.i(5).y)):r?i?e.L(3,e.i(2).x,e.i(4).y):e.pointsCount===6&&(e.L(2,e.i(2).x,t),e.L(3,e.i(3).x,t)):e.pointsCount===4?e.m(2,e.i(2).x,t):e.pointsCount===3?e.L(1,e.i(2).x,t):e.pointsCount===2&&e.m(1,e.i(1).x,t)):t===180?(t=l.left-a/2,n?e.pointsCount===4&&(n=e.i(3).y,e.L(1,t+20,e.i(1).y),e.m(2,t+20,n),e.m(3,t,n),e.m(4,t-20,n),e.L(5,e.i(5).x,n)):r?i?e.L(3,e.i(2).x,e.i(4).y):e.pointsCount===6&&(e.L(2,t,e.i(2).y),e.L(3,t,e.i(3).y)):e.pointsCount===4?e.m(2,t,e.i(2).y):e.pointsCount===3?e.L(1,t,e.i(2).y):e.pointsCount===2&&e.m(1,t,e.i(1).y)):t===270&&(t=l.top-a/2,n?e.pointsCount===4&&(n=e.i(3).x,e.L(1,e.i(1).x,t+20),e.m(2,n,t+20),e.m(3,n,t),e.m(4,n,t-20),e.L(5,n,e.i(5).y)):r?i?e.L(3,e.i(2).x,e.i(4).y):e.pointsCount===6&&(e.L(2,e.i(2).x,t),e.L(3,e.i(3).x,t)):e.pointsCount===4?e.m(2,e.i(2).x,t):e.pointsCount===3?e.L(1,e.i(2).x,t):e.pointsCount===2&&e.m(1,e.i(1).x,t)),e.zf()))}}},ht.Object.defineProperties(Wf.prototype,{fromVertex:{get:function(){return this.kd},set:function(e){this.kd!==e&&(this.kd=e)}},toVertex:{get:function(){return this.qd},set:function(e){this.qd!==e&&(this.qd=e)}},relativePoint:{get:function(){return this.$t},set:function(e){this.$t.set(e)}}}),Wf.className="TreeEdge",Co.prototype.initializeStandardTools=function(){this.gb("Action",new bt,this.mouseDownTools),this.gb("Relinking",new ti,this.mouseDownTools),this.gb("LinkReshaping",new P,this.mouseDownTools),this.gb("Rotating",new jt,this.mouseDownTools),this.gb("Resizing",new it,this.mouseDownTools),this.gb("Linking",new jn,this.mouseMoveTools),this.gb("Dragging",new Ao,this.mouseMoveTools),this.gb("DragSelecting",new Gt,this.mouseMoveTools),this.gb("Panning",new wt,this.mouseMoveTools),this.gb("ContextMenu",new ji,this.mouseUpTools),this.gb("TextEditing",new Qi,this.mouseUpTools),this.gb("ClickCreating",new en,this.mouseUpTools),this.gb("ClickSelecting",new Qt,this.mouseUpTools)},Ic("Horizontal",new T0),Ic("Spot",new A0),Ic("Table",new I0),Ic("Viewbox",new L0),Ic("TableRow",new M0),Ic("TableColumn",new O0),Ic("Graduated",new bp),Ic("Grid",new yp),pf.add("GraphLinksModel",ms),pf.add("TreeModel",Pu);var Qm=Ke.go,Zv={get licenseKey(){return Y.licenseKey},set licenseKey(e){Y.licenseKey=e},get version(){return Y.version},Group:qi,EnumValue:Yt,List:qt,Set:Xt,Map:Zn,Point:he,Size:pi,Rect:Zt,Margin:mi,Spot:ai,Geometry:Dn,PathFigure:Ca,PathSegment:Dr,InputEvent:Va,DiagramEvent:eu,ChangedEvent:Ro,Model:di,GraphLinksModel:Ur,TreeModel:Il,Binding:Ba,Transaction:La,UndoManager:yo,CommandHandler:be,Tool:Ir,DraggingTool:Ao,DraggingInfo:Qc,DraggingOptions:c,LinkingBaseTool:Dt,LinkingTool:jn,RelinkingTool:ti,LinkReshapingTool:P,ResizingTool:it,RotatingTool:jt,ClickSelectingTool:Qt,ActionTool:bt,ClickCreatingTool:en,HTMLInfo:ii,ContextMenuTool:ji,DragSelectingTool:Gt,PanningTool:wt,TextEditingTool:Qi,ToolManager:Co,Animation:Gn,AnimationManager:Fo,AnimationTrigger:Ts,Layer:m,Diagram:Y,Palette:b,Overview:w,Brush:ao,GraphObject:st,Panel:kn,RowColumnDefinition:Xa,Shape:lr,TextBlock:Mo,Picture:Ul,Part:Ci,Adornment:Zr,Node:Xn,Link:Pn,Placeholder:Tl,Layout:Qo,LayoutNetwork:Oo,LayoutVertex:ns,LayoutEdge:au,GridLayout:ks,PanelLayout:ts,CircularLayout:ca,CircularNetwork:Uf,CircularVertex:Kp,CircularEdge:Om,ForceDirectedLayout:$s,ForceDirectedNetwork:Yd,ForceDirectedVertex:Zp,ForceDirectedEdge:Yp,LayeredDigraphLayout:lo,LayeredDigraphNetwork:$f,LayeredDigraphVertex:Bu,LayeredDigraphEdge:Jp,TreeLayout:Ar,TreeNetwork:qd,TreeVertex:Wu,TreeEdge:Wf};typeof Qm=="object"&&Qm.version&&Wn("WARNING: a `go` object on the root object is already defined. "+("Debug"in Qm?"debug ":"")+"version: "+Qm.version+", replaced with version: "+Zv.version),Y.prototype.go=Zv,Ke.go=Zv,typeof X.exports=="object"&&(X.exports=typeof h.g!="undefined"?h.g.go:self.go)}();var v=typeof h.g!="undefined"?h.g.go:self.go;const I=typeof h.g!="undefined"?h.g.go:self.go,O=I.Group,B=I.EnumValue,G=I.List,F=I.Set,M=I.Map,de=I.Point,ae=I.Size,te=I.Rect,Ne=I.Margin,Ee=I.Spot,Xe=I.Geometry,Oe=I.PathFigure,Ce=I.PathSegment,Ie=I.InputEvent,Re=I.DiagramEvent,fe=I.ChangedEvent,me=I.Model,ye=I.GraphLinksModel,pe=I.TreeModel,ke=I.Binding,ee=I.Transaction,Te=I.UndoManager,Me=I.CommandHandler,Le=I.Tool,Je=I.DraggingTool,Ye=I.DraggingInfo,ne=I.LinkingBaseTool,at=I.LinkingTool,Ge=I.RelinkingTool,Pt=I.LinkReshapingTool,gt=I.ResizingTool,kt=I.RotatingTool,Ct=I.ClickSelectingTool,Cn=I.ActionTool,Qe=I.ClickCreatingTool,le=I.HTMLInfo,ce=I.ContextMenuTool,Ht=I.DragSelectingTool,Vt=I.PanningTool,St=I.TextEditingTool,sn=I.ToolManager,Ft=I.Animation,oi=I.AnimationManager,On=I.AnimationTrigger,ni=I.Layer,Jn=I.Diagram,Mn=I.Palette,In=I.Overview,re=I.Brush,z=I.GraphObject,k=I.Panel,j=I.RowColumnDefinition,Q=I.Shape,T=I.TextBlock,_e=I.TextBlockMetrics,It=I.Picture,$e=I.Part,Pe=I.Adornment,vt=I.Node,ut=I.Link,tt=I.Placeholder,Et=I.Layout,pn=I.LayoutNetwork,nn=I.LayoutVertex,Kt=I.LayoutEdge,hn=I.GridLayout,an=I.PanelLayout,et=I.CircularLayout,zt=I.CircularNetwork,dn=I.CircularVertex,rn=I.CircularEdge,ze=I.ForceDirectedLayout,Un=I.ForceDirectedNetwork,yn=I.ForceDirectedVertex,Bt=I.ForceDirectedEdge,Si=I.LayeredDigraphLayout,_i=I.LayeredDigraphNetwork,Ii=I.LayeredDigraphVertex,cn=I.LayeredDigraphEdge,fr=I.TreeLayout,Xi=I.TreeNetwork,ei=I.TreeVertex,Tr=I.TreeEdge,ur=I.version},46963:function(X){"use strict";X.exports=h;var C=/[#.]/g;function h(v,I){for(var O=v||"",B=I||"div",G={},F=0,M,de,ae;F<O.length;)C.lastIndex=F,ae=C.exec(O),M=O.slice(F,ae?ae.index:O.length),M&&(de?de==="#"?G.id=M:G.className?G.className.push(M):G.className=[M]:B=M,F+=M.length),ae&&(de=ae[0],F++);return{type:"element",tagName:B,properties:G,children:[]}}},5641:function(X,C,h){"use strict";var v=h(88914),I=h(47178),O=h(46963),B=h(92848).Q,G=h(58951).Q;X.exports=M;var F={}.hasOwnProperty;function M(Ce,Ie,Re){var fe=Re?Oe(Re):null;return me;function me(pe,ke){var ee=O(pe,Ie),Te=Array.prototype.slice.call(arguments,2),Me=ee.tagName.toLowerCase(),Le;if(ee.tagName=fe&&F.call(fe,Me)?fe[Me]:Me,ke&&de(ke,ee)&&(Te.unshift(ke),ke=null),ke)for(Le in ke)ye(ee.properties,Le,ke[Le]);return te(ee.children,Te),ee.tagName==="template"&&(ee.content={type:"root",children:ee.children},ee.children=[]),ee}function ye(pe,ke,ee){var Te,Me,Le;ee==null||ee!==ee||(Te=v(Ce,ke),Me=Te.property,Le=ee,typeof Le=="string"&&(Te.spaceSeparated?Le=B(Le):Te.commaSeparated?Le=G(Le):Te.commaOrSpaceSeparated&&(Le=B(G(Le).join(" ")))),Me==="style"&&typeof ee!="string"&&(Le=Xe(Le)),Me==="className"&&pe.className&&(Le=pe.className.concat(Le)),pe[Me]=Ne(Te,Me,Le))}}function de(Ce,Ie){return typeof Ce=="string"||"length"in Ce||ae(Ie.tagName,Ce)}function ae(Ce,Ie){var Re=Ie.type;return Ce==="input"||!Re||typeof Re!="string"?!1:typeof Ie.children=="object"&&"length"in Ie.children?!0:(Re=Re.toLowerCase(),Ce==="button"?Re!=="menu"&&Re!=="submit"&&Re!=="reset"&&Re!=="button":"value"in Ie)}function te(Ce,Ie){var Re,fe;if(typeof Ie=="string"||typeof Ie=="number"){Ce.push({type:"text",value:String(Ie)});return}if(typeof Ie=="object"&&"length"in Ie){for(Re=-1,fe=Ie.length;++Re<fe;)te(Ce,Ie[Re]);return}if(typeof Ie!="object"||!("type"in Ie))throw new Error("Expected node, nodes, or string, got `"+Ie+"`");Ce.push(Ie)}function Ne(Ce,Ie,Re){var fe,me,ye;if(typeof Re!="object"||!("length"in Re))return Ee(Ce,Ie,Re);for(me=Re.length,fe=-1,ye=[];++fe<me;)ye[fe]=Ee(Ce,Ie,Re[fe]);return ye}function Ee(Ce,Ie,Re){var fe=Re;return Ce.number||Ce.positiveNumber?!isNaN(fe)&&fe!==""&&(fe=Number(fe)):(Ce.boolean||Ce.overloadedBoolean)&&typeof fe=="string"&&(fe===""||I(Re)===I(Ie))&&(fe=!0),fe}function Xe(Ce){var Ie=[],Re;for(Re in Ce)Ie.push([Re,Ce[Re]].join(": "));return Ie.join("; ")}function Oe(Ce){for(var Ie=Ce.length,Re=-1,fe={},me;++Re<Ie;)me=Ce[Re],fe[me.toLowerCase()]=me;return fe}},82073:function(X,C,h){"use strict";var v=h(18795),I=h(5641),O=I(v,"div");O.displayName="html",X.exports=O},43621:function(X,C,h){"use strict";X.exports=h(82073)},93193:function(X){var C=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,h=/\n/g,v=/^\s*/,I=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,O=/^:\s*/,B=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,G=/^[;\s]*/,F=/^\s+|\s+$/g,M=`
`,de="/",ae="*",te="",Ne="comment",Ee="declaration";X.exports=function(Oe,Ce){if(typeof Oe!="string")throw new TypeError("First argument must be a string");if(!Oe)return[];Ce=Ce||{};var Ie=1,Re=1;function fe(ne){var at=ne.match(h);at&&(Ie+=at.length);var Ge=ne.lastIndexOf(M);Re=~Ge?ne.length-Ge:Re+ne.length}function me(){var ne={line:Ie,column:Re};return function(at){return at.position=new ye(ne),Te(),at}}function ye(ne){this.start=ne,this.end={line:Ie,column:Re},this.source=Ce.source}ye.prototype.content=Oe;var pe=[];function ke(ne){var at=new Error(Ce.source+":"+Ie+":"+Re+": "+ne);if(at.reason=ne,at.filename=Ce.source,at.line=Ie,at.column=Re,at.source=Oe,Ce.silent)pe.push(at);else throw at}function ee(ne){var at=ne.exec(Oe);if(at){var Ge=at[0];return fe(Ge),Oe=Oe.slice(Ge.length),at}}function Te(){ee(v)}function Me(ne){var at;for(ne=ne||[];at=Le();)at!==!1&&ne.push(at);return ne}function Le(){var ne=me();if(!(de!=Oe.charAt(0)||ae!=Oe.charAt(1))){for(var at=2;te!=Oe.charAt(at)&&(ae!=Oe.charAt(at)||de!=Oe.charAt(at+1));)++at;if(at+=2,te===Oe.charAt(at-1))return ke("End of comment missing");var Ge=Oe.slice(2,at-2);return Re+=2,fe(Ge),Oe=Oe.slice(at),Re+=2,ne({type:Ne,comment:Ge})}}function Je(){var ne=me(),at=ee(I);if(at){if(Le(),!ee(O))return ke("property missing ':'");var Ge=ee(B),Pt=ne({type:Ee,property:Xe(at[0].replace(C,te)),value:Ge?Xe(Ge[0].replace(C,te)):te});return ee(G),Pt}}function Ye(){var ne=[];Me(ne);for(var at;at=Je();)at!==!1&&(ne.push(at),Me(ne));return ne}return Te(),Ye()};function Xe(Oe){return Oe?Oe.replace(F,te):te}},91241:function(X){"use strict";X.exports=C;function C(h){var v=typeof h=="string"?h.charCodeAt(0):h;return v>=97&&v<=122||v>=65&&v<=90}},21127:function(X,C,h){"use strict";var v=h(91241),I=h(22347);X.exports=O;function O(B){return v(B)||I(B)}},22347:function(X){"use strict";X.exports=C;function C(h){var v=typeof h=="string"?h.charCodeAt(0):h;return v>=48&&v<=57}},65207:function(X){"use strict";X.exports=C;function C(h){var v=typeof h=="string"?h.charCodeAt(0):h;return v>=97&&v<=102||v>=65&&v<=70||v>=48&&v<=57}},2859:function(X,C,h){"use strict";h.d(C,{hP:function(){return In}});var v=function(re,z){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,j){k.__proto__=j}||function(k,j){for(var Q in j)Object.prototype.hasOwnProperty.call(j,Q)&&(k[Q]=j[Q])})(re,z)};function I(re,z){function k(){this.constructor=re}v(re,z),re.prototype=z===null?Object.create(z):(k.prototype=z.prototype,new k)}function O(re,z,k,j){return new(k||(k=Promise))(function(Q,T){function _e(Pe){try{$e(j.next(Pe))}catch(vt){T(vt)}}function It(Pe){try{$e(j.throw(Pe))}catch(vt){T(vt)}}function $e(Pe){var vt;Pe.done?Q(Pe.value):(vt=Pe.value,vt instanceof k?vt:new k(function(ut){ut(vt)})).then(_e,It)}$e((j=j.apply(re,z||[])).next())})}function B(re,z){var k,j,Q,T,_e={label:0,sent:function(){if(1&Q[0])throw Q[1];return Q[1]},trys:[],ops:[]};return T={next:It(0),throw:It(1),return:It(2)},typeof Symbol=="function"&&(T[Symbol.iterator]=function(){return this}),T;function It($e){return function(Pe){return function(vt){if(k)throw new TypeError("Generator is already executing.");for(;_e;)try{if(k=1,j&&(Q=2&vt[0]?j.return:vt[0]?j.throw||((Q=j.return)&&Q.call(j),0):j.next)&&!(Q=Q.call(j,vt[1])).done)return Q;switch(j=0,Q&&(vt=[2&vt[0],Q.value]),vt[0]){case 0:case 1:Q=vt;break;case 4:return _e.label++,{value:vt[1],done:!1};case 5:_e.label++,j=vt[1],vt=[0];continue;case 7:vt=_e.ops.pop(),_e.trys.pop();continue;default:if(Q=_e.trys,!((Q=Q.length>0&&Q[Q.length-1])||vt[0]!==6&&vt[0]!==2)){_e=0;continue}if(vt[0]===3&&(!Q||vt[1]>Q[0]&&vt[1]<Q[3])){_e.label=vt[1];break}if(vt[0]===6&&_e.label<Q[1]){_e.label=Q[1],Q=vt;break}if(Q&&_e.label<Q[2]){_e.label=Q[2],_e.ops.push(vt);break}Q[2]&&_e.ops.pop(),_e.trys.pop();continue}vt=z.call(re,_e)}catch(ut){vt=[6,ut],j=0}finally{k=Q=0}if(5&vt[0])throw vt[1];return{value:vt[0]?vt[1]:void 0,done:!0}}([$e,Pe])}}}function G(){for(var re=0,z=0,k=arguments.length;z<k;z++)re+=arguments[z].length;var j=Array(re),Q=0;for(z=0;z<k;z++)for(var T=arguments[z],_e=0,It=T.length;_e<It;_e++,Q++)j[Q]=T[_e];return j}var F=function(){function re(){}return re.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},re.setAttributes=function(z,k){for(var j=0,Q=k;j<Q.length;j++){var T=Q[j],_e=T[0],It=T[1];z.setAttribute(_e,It)}},re.createRect=function(z,k,j){var Q=document.createElementNS("http://www.w3.org/2000/svg","rect");return Q.setAttribute("width",z.toString()),Q.setAttribute("height",k.toString()),j&&re.setAttributes(Q,j),Q},re.createLine=function(z,k,j,Q,T){var _e=document.createElementNS("http://www.w3.org/2000/svg","line");return _e.setAttribute("x1",z.toString()),_e.setAttribute("y1",k.toString()),_e.setAttribute("x2",j.toString()),_e.setAttribute("y2",Q.toString()),T&&re.setAttributes(_e,T),_e},re.createPolygon=function(z,k){var j=document.createElementNS("http://www.w3.org/2000/svg","polygon");return j.setAttribute("points",z),k&&re.setAttributes(j,k),j},re.createCircle=function(z,k){var j=document.createElementNS("http://www.w3.org/2000/svg","circle");return j.setAttribute("cx",(z/2).toString()),j.setAttribute("cy",(z/2).toString()),j.setAttribute("r",z.toString()),k&&re.setAttributes(j,k),j},re.createEllipse=function(z,k,j){var Q=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Q.setAttribute("cx",(z/2).toString()),Q.setAttribute("cy",(k/2).toString()),Q.setAttribute("rx",(z/2).toString()),Q.setAttribute("ry",(k/2).toString()),j&&re.setAttributes(Q,j),Q},re.createGroup=function(z){var k=document.createElementNS("http://www.w3.org/2000/svg","g");return z&&re.setAttributes(k,z),k},re.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},re.createMarker=function(z,k,j,Q,T,_e,It){var $e=document.createElementNS("http://www.w3.org/2000/svg","marker");return re.setAttributes($e,[["id",z],["orient",k],["markerWidth",j.toString()],["markerHeight",Q.toString()],["refX",T.toString()],["refY",_e.toString()]]),$e.appendChild(It),$e},re.createText=function(z){var k=document.createElementNS("http://www.w3.org/2000/svg","text");return k.setAttribute("x","0"),k.setAttribute("y","0"),z&&re.setAttributes(k,z),k},re.createTSpan=function(z,k){var j=document.createElementNS("http://www.w3.org/2000/svg","tspan");return j.textContent=z,k&&re.setAttributes(j,k),j},re.createImage=function(z){var k=document.createElementNS("http://www.w3.org/2000/svg","image");return z&&re.setAttributes(k,z),k},re.createPoint=function(z,k){var j=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return j.x=z,j.y=k,j},re.createPath=function(z,k){var j=document.createElementNS("http://www.w3.org/2000/svg","path");return j.setAttribute("d",z),k&&re.setAttributes(j,k),j},re}(),M=function(){function re(){}return re.addKey=function(z){re.key=z},Object.defineProperty(re,"isLicensed",{get:function(){return!!re.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(re.key)},enumerable:!1,configurable:!0}),re}(),de=function(){function re(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return re.prototype.rasterize=function(z,k,j){var Q=this;return new Promise(function(T){var _e=j!==void 0?j:document.createElement("canvas");z===null&&(Q.markersOnly=!0,Q.naturalSize=!1);var It=document.createElementNS("http://www.w3.org/2000/svg","svg");It.setAttribute("xmlns","http://www.w3.org/2000/svg"),It.setAttribute("width",k.width.baseVal.valueAsString),It.setAttribute("height",k.height.baseVal.valueAsString),It.setAttribute("viewBox","0 0 "+k.viewBox.baseVal.width.toString()+" "+k.viewBox.baseVal.height.toString()),It.innerHTML=k.innerHTML,Q.naturalSize===!0?(It.width.baseVal.value=z.naturalWidth,It.height.baseVal.value=z.naturalHeight):Q.width!==void 0&&Q.height!==void 0&&(It.width.baseVal.value=Q.width,It.height.baseVal.value=Q.height),_e.width=It.width.baseVal.value,_e.height=It.height.baseVal.value;var $e=It.outerHTML,Pe=_e.getContext("2d");Q.markersOnly!==!0&&Pe.drawImage(z,0,0,_e.width,_e.height);var vt=window.URL,ut=new Image(_e.width,_e.height);ut.setAttribute("crossOrigin","anonymous");var tt=new Blob([$e],{type:"image/svg+xml"}),Et=vt.createObjectURL(tt);ut.onload=function(){Pe.drawImage(ut,0,0),vt.revokeObjectURL(Et);var pn=_e.toDataURL(Q.imageType,Q.imageQuality);T(pn)},ut.src=Et})},re}(),ae=function(){},te=function(){function re(z){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+z+"_"}return Object.defineProperty(re.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),re.prototype.addClass=function(z){return this.styleSheet===void 0&&this.addStyleSheet(),z.name=""+this.classNamePrefix+z.localName,this.classes.push(z),this.styleSheet.sheet.insertRule("."+z.name+" {"+z.style+"}",this.styleSheet.sheet.cssRules.length),z},re.prototype.addRule=function(z){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(z),this.styleSheet.sheet.insertRule(z.selector+" {"+z.style+"}",this.styleSheet.sheet.cssRules.length)},re.prototype.addStyleSheet=function(){var z;this.styleSheet=document.createElement("style"),((z=this.styleSheetRoot)!==null&&z!==void 0?z:document.head).appendChild(this.styleSheet),this.addRule(new Ne("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Ne("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new Ne("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new Ee("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new Ee("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},re.prototype.removeStyleSheet=function(){var z;this.styleSheet&&(((z=this.styleSheetRoot)!==null&&z!==void 0?z:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},re}(),Ne=function(re,z){this.selector=re,this.style=z},Ee=function(re,z){this.localName=re,this.style=z},Xe=function(){function re(z,k,j,Q,T){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=z,this.displayMode=k,this.markerItems=j,this.uiStyleSettings=Q,this.styles=T,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return re.prototype.show=function(z){var k=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=z,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var j=document.createElement("div");j.className=this.toolbarBlockStyleClass.name,j.style.whiteSpace="nowrap",this.uiContainer.appendChild(j),this.addActionButton(j,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(j,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(j,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(j,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(j,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(j,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(j,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(j,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(T){var _e=document.createElement("div");_e.className=""+k.toolbarButtonStyleClass.name,_e.setAttribute("data-type-name",T.typeName),_e.innerHTML=T.icon,_e.addEventListener("click",function(){k.markerToolbarButtonClicked(_e,T)}),k.buttons.push(_e),k.markerButtons.push(_e)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var Q=document.createElement("div");Q.className=this.toolbarBlockStyleClass.name,Q.style.whiteSpace="nowrap",Q.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Q),this.addActionButton(Q,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(Q,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},re.prototype.addButtonClickListener=function(z){this.buttonClickListeners.push(z)},re.prototype.removeButtonClickListener=function(z){this.buttonClickListeners.indexOf(z)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(z),1)},re.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},re.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var z=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var k=0;k<this.markerButtons.length;k++)k<z||k===z&&this.markerButtons.length-1===z?this.markerButtonBlock.appendChild(this.markerButtons[k]):(k===z&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[k]))}},re.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},re.prototype.resetButtonStyles=function(){var z=this;this.buttons.forEach(function(k){k.className=k.className.replace(z.uiStyleSettings.toolbarButtonStyleColorsClassName?z.uiStyleSettings.toolbarButtonStyleColorsClassName:z.toolbarButtonStyleColorsClass.name,"").trim(),k.className=k.className.replace(z.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?z.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:z.toolbarActiveButtonStyleColorsClass.name,"").trim(),k.className+=" "+(z.uiStyleSettings.toolbarButtonStyleColorsClassName?z.uiStyleSettings.toolbarButtonStyleColorsClassName:z.toolbarButtonStyleColorsClass.name)})},re.prototype.addActionButton=function(z,k,j){var Q=this,T=document.createElement("div");switch(T.className=""+this.toolbarButtonStyleClass.name,T.innerHTML=k,T.setAttribute("data-action",j),T.addEventListener("click",function(){Q.actionToolbarButtonClicked(T,j)}),j){case"select":T.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":T.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":T.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":T.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":T.style.fill=this.uiStyleSettings.closeButtonColor}z.appendChild(T),this.buttons.push(T)},re.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Ee("toolbar",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
height: `+this.uiStyleSettings.toolbarHeight+`px;
box-sizing: content-box;
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolbarStyleColorsClass=this.styles.addClass(new Ee("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Ee("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Ee("toolbar-overflow-block",`
position: absolute;
top: `+this.uiStyleSettings.toolbarHeight+`px;
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
z-index: 10;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new Ee("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var z=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Ee("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*z)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*z)+`px;
padding: `+z+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new Ee("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Ee("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new Ne("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new Ne("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},re.prototype.markerToolbarButtonClicked=function(z,k){this.setActiveButton(z),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(j){return j("marker",k)}),this.markerButtonOverflowBlock.style.display="none"},re.prototype.actionToolbarButtonClicked=function(z,k){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(j){return j("action",k)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},re.prototype.setActiveButton=function(z){this.resetButtonStyles(),z.className=z.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),z.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},re.prototype.setActiveMarkerButton=function(z){var k=this.markerButtons.find(function(j){return j.getAttribute("data-type-name")===z});k&&this.setActiveButton(k)},re.prototype.setCurrentMarker=function(z){var k=this;this.currentMarker=z,this.buttons.filter(function(j){return/delete|notes/.test(j.getAttribute("data-action"))}).forEach(function(j){k.currentMarker===void 0?(j.style.fillOpacity="0.4",j.style.pointerEvents="none"):(j.style.fillOpacity="1",j.style.pointerEvents="all")})},re}(),Oe=function(){function re(z,k,j,Q){this.panels=[],this.panelButtons=[],this.markerjsContainer=z,this.displayMode=k,this.uiStyleSettings=j,this.styles=Q,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return re.prototype.addStyles=function(){var z;this.toolboxStyleClass=this.styles.addClass(new Ee("toolbox",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: column;
font-family: sans-serif;
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
box-sizing: content-box;
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolboxStyleColorsClass=this.styles.addClass(new Ee("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var k=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Ee("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Ee("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Ee("toolbox-panel-row",`
display: flex;
`+(this.displayMode==="inline"?"position: absolute;":"")+`
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
cursor: default;
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
`+(this.displayMode==="inline"?"width: 100%;":"")+`
box-sizing: content-box;
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new Ee("toolbox-panel-row_colors",`
background-color: `+((z=this.uiStyleSettings.toolboxBackgroundColor)!==null&&z!==void 0?z:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Ee("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*k)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*k)+`px;
padding: `+k+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Ee("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Ee("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new Ne("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new Ne("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},re.prototype.show=function(z){var k;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=z,this.uiContainer.className=this.toolboxStyleClass.name+" "+((k=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&k!==void 0?k:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},re.prototype.setPanelButtons=function(z){var k,j,Q=this;this.panels=z,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((k=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&k!==void 0?k:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((j=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&j!==void 0?j:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(T){var _e;T.uiStyleSettings=Q.uiStyleSettings;var It=document.createElement("div");It.className=Q.toolboxButtonStyleClass.name+" "+((_e=Q.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&_e!==void 0?_e:Q.toolboxButtonStyleColorsClass.name),It.innerHTML=T.icon,It.title=T.title,It.addEventListener("click",function(){Q.panelButtonClick(T)}),Q.panelButtons.push(It),Q.buttonRow.appendChild(It)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},re.prototype.panelButtonClick=function(z){var k=this,j=-1;if(z!==this.activePanel){j=this.panels.indexOf(z),this.panelRow.innerHTML="";var Q=z.getUi();Q.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Q),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=z}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){k.displayMode==="inline"?k.panelRow.style.display="none":k.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(T,_e){var It,$e;T.className=k.toolboxButtonStyleClass.name+" "+(_e===j?""+((It=k.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&It!==void 0?It:k.toolboxActiveButtonStyleColorsClass.name):""+(($e=k.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&$e!==void 0?$e:k.toolboxButtonStyleColorsClass.name))})},re}(),Ce=function(re,z){this.title=re,this.icon=z},Ie=function(re){function z(k,j,Q,T){var _e=re.call(this,k,T||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return _e.colors=[],_e.addTransparent=!1,_e.colorBoxes=[],_e.colors=j,_e.currentColor=Q,_e.setCurrentColor=_e.setCurrentColor.bind(_e),_e.getColorBox=_e.getColorBox.bind(_e),_e}return I(z,re),z.prototype.getUi=function(){var k=this,j=document.createElement("div");return j.style.overflow="hidden",j.style.whiteSpace="nowrap",this.colors.forEach(function(Q){var T=k.getColorBox(Q);j.appendChild(T),k.colorBoxes.push(T)}),j},z.prototype.getColorBox=function(k){var j=this,Q=this.uiStyleSettings.toolbarHeight/4,T=this.uiStyleSettings.toolbarHeight-Q,_e=document.createElement("div");_e.style.display="inline-block",_e.style.boxSizing="content-box",_e.style.width=T-2+"px",_e.style.height=T-2+"px",_e.style.padding="1px",_e.style.marginRight="2px",_e.style.marginBottom="2px",_e.style.borderWidth="2px",_e.style.borderStyle="solid",_e.style.borderRadius=(T+2)/2+"px",_e.style.borderColor=k===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",_e.addEventListener("click",function(){j.setCurrentColor(k,_e)});var It=document.createElement("div");return It.style.display="inline-block",It.style.width=T-2+"px",It.style.height=T-2+"px",It.style.backgroundColor=k,It.style.borderRadius=T/2+"px",k==="transparent"&&(It.style.fill=this.uiStyleSettings.toolboxAccentColor,It.innerHTML=`<svg viewBox="0 0 24 24">
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
</svg>`),_e.appendChild(It),_e},z.prototype.setCurrentColor=function(k,j){var Q=this;this.currentColor=k,this.colorBoxes.forEach(function(T){T.style.borderColor=T===j?Q.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(k)},z}(Ce),Re=function(){function re(z,k,j){this._state="new",this._isSelected=!1,this._container=z,this._overlayContainer=k,this.globalSettings=j,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(re.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),re.prototype.ownsTarget=function(z){return!1},Object.defineProperty(re.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),re.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},re.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},re.prototype.pointerDown=function(z,k){},re.prototype.dblClick=function(z,k){},re.prototype.manipulate=function(z){},re.prototype.pointerUp=function(z){this.stateChanged()},re.prototype.dispose=function(){},re.prototype.addMarkerVisualToContainer=function(z){this.container.childNodes.length>0?this.container.insertBefore(z,this.container.childNodes[0]):this.container.appendChild(z)},re.prototype.getState=function(){return{typeName:re.typeName,state:this.state,notes:this.notes}},re.prototype.restoreState=function(z){this._state=z.state,this.notes=z.notes},re.prototype.scale=function(z,k){},re.prototype.colorChanged=function(z){this.onColorChanged&&this.onColorChanged(z),this.stateChanged()},re.prototype.fillColorChanged=function(z){this.onFillColorChanged&&this.onFillColorChanged(z),this.stateChanged()},re.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var z=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),z.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(z)&&this.onStateChanged(this)}},re.typeName="MarkerBase",re}(),fe=function(){function re(){this.findGripByVisual=this.findGripByVisual.bind(this)}return re.prototype.findGripByVisual=function(z){return this.topLeft.ownsTarget(z)?this.topLeft:this.topCenter.ownsTarget(z)?this.topCenter:this.topRight.ownsTarget(z)?this.topRight:this.centerLeft.ownsTarget(z)?this.centerLeft:this.centerRight.ownsTarget(z)?this.centerRight:this.bottomLeft.ownsTarget(z)?this.bottomLeft:this.bottomCenter.ownsTarget(z)?this.bottomCenter:this.bottomRight.ownsTarget(z)?this.bottomRight:void 0},re}(),me=function(){function re(){this.GRIP_SIZE=10,this.visual=F.createGroup(),this.visual.appendChild(F.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(F.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return re.prototype.ownsTarget=function(z){return z===this.visual||z===this.visual.childNodes[0]||z===this.visual.childNodes[1]},re}(),ye=function(){function re(){}return re.toITransformMatrix=function(z){return{a:z.a,b:z.b,c:z.c,d:z.d,e:z.e,f:z.f}},re.toSVGMatrix=function(z,k){return z.a=k.a,z.b=k.b,z.c=k.c,z.d=k.d,z.e=k.e,z.f=k.f,z},re}(),pe=function(re){function z(k,j,Q){var T=re.call(this,k,j,Q)||this;return T.left=0,T.top=0,T.width=0,T.height=0,T.defaultSize={x:50,y:20},T.offsetX=0,T.offsetY=0,T.rotationAngle=0,T.CB_DISTANCE=10,T._suppressMarkerCreateEvent=!1,T.container.transform.baseVal.appendItem(F.createTransform()),T.setupControlBox(),T}return I(z,re),Object.defineProperty(z.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"visual",{get:function(){return this._visual},set:function(k){this._visual=k;var j=F.createTransform();this._visual.transform.baseVal.appendItem(j)},enumerable:!1,configurable:!0}),z.prototype.ownsTarget=function(k){return!!re.prototype.ownsTarget.call(this,k)||!!(this.controlGrips.findGripByVisual(k)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(k))},z.prototype.pointerDown=function(k,j){re.prototype.pointerDown.call(this,k,j),this.state==="new"&&(this.left=k.x,this.top=k.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Q=this.unrotatePoint(k);if(this.manipulationStartX=Q.x,this.manipulationStartY=Q.y,this.offsetX=Q.x-this.left,this.offsetY=Q.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(j),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(j)){this.activeGrip=this.rotatorGrip;var T=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=T.x-this.width/2,this.top=T.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var _e=this.container.transform.baseVal.getItem(0);_e.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(_e,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},z.prototype.pointerUp=function(k){var j=this.state;re.prototype.pointerUp.call(this,k),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(k),this._state="select",j==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},z.prototype.moveVisual=function(k){this.visual.style.transform="translate("+k.x+"px, "+k.y+"px)"},z.prototype.manipulate=function(k){var j=this.unrotatePoint(k);this.state==="creating"?this.resize(k):this.state==="move"?(this.left=this.manipulationStartLeft+(j.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(j.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(j):this.state==="rotate"&&this.rotate(k)},z.prototype.resize=function(k){var j=this.manipulationStartLeft,Q=this.manipulationStartWidth,T=this.manipulationStartTop,_e=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:j=this.manipulationStartLeft+k.x-this.manipulationStartX,Q=this.manipulationStartWidth+this.manipulationStartLeft-j;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Q=this.manipulationStartWidth+k.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:T=this.manipulationStartTop+k.y-this.manipulationStartY,_e=this.manipulationStartHeight+this.manipulationStartTop-T;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:_e=this.manipulationStartHeight+k.y-this.manipulationStartY}Q>=0?(this.left=j,this.width=Q):(this.left=j+Q,this.width=-Q),_e>=0?(this.top=T,this.height=_e):(this.top=T+_e,this.height=-_e),this.setSize()},z.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},z.prototype.rotate=function(k){if(Math.abs(k.x-this.centerX)>.1){var j=Math.sign(k.x-this.centerX);this.rotationAngle=180*Math.atan((k.y-this.centerY)/(k.x-this.centerX))/Math.PI+90*j,this.applyRotation()}},z.prototype.applyRotation=function(){var k=this.container.transform.baseVal.getItem(0);k.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(k,0)},z.prototype.rotatePoint=function(k){if(this.rotationAngle===0)return k;var j=this.container.getCTM(),Q=F.createPoint(k.x,k.y);return{x:(Q=Q.matrixTransform(j)).x,y:Q.y}},z.prototype.unrotatePoint=function(k){if(this.rotationAngle===0)return k;var j=this.container.getCTM();j=j.inverse();var Q=F.createPoint(k.x,k.y);return{x:(Q=Q.matrixTransform(j)).x,y:Q.y}},z.prototype.select=function(){re.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},z.prototype.deselect=function(){re.prototype.deselect.call(this),this.controlBox.style.display="none"},z.prototype.setupControlBox=function(){this.controlBox=F.createGroup();var k=F.createTransform();k.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(k),this.container.appendChild(this.controlBox),this.controlRect=F.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=F.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new fe,this.addControlGrips(),this.controlBox.style.display="none"},z.prototype.adjustControlBox=function(){var k=this.controlBox.transform.baseVal.getItem(0);k.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(k,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},z.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},z.prototype.createGrip=function(){var k=new me;return k.visual.transform.baseVal.appendItem(F.createTransform()),this.controlBox.appendChild(k.visual),k},z.prototype.positionGrips=function(){var k=this.controlGrips.topLeft.GRIP_SIZE,j=-k/2,Q=j,T=(this.width+this.CB_DISTANCE)/2-k/2,_e=(this.height+this.CB_DISTANCE)/2-k/2,It=this.height+this.CB_DISTANCE-k/2,$e=this.width+this.CB_DISTANCE-k/2;this.positionGrip(this.controlGrips.topLeft.visual,j,Q),this.positionGrip(this.controlGrips.topCenter.visual,T,Q),this.positionGrip(this.controlGrips.topRight.visual,$e,Q),this.positionGrip(this.controlGrips.centerLeft.visual,j,_e),this.positionGrip(this.controlGrips.centerRight.visual,$e,_e),this.positionGrip(this.controlGrips.bottomLeft.visual,j,It),this.positionGrip(this.controlGrips.bottomCenter.visual,T,It),this.positionGrip(this.controlGrips.bottomRight.visual,$e,It),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,T,Q-3*this.CB_DISTANCE)},z.prototype.positionGrip=function(k,j,Q){var T=k.transform.baseVal.getItem(0);T.setTranslate(j,Q),k.transform.baseVal.replaceItem(T,0)},z.prototype.hideControlBox=function(){this.controlBox.style.display="none"},z.prototype.showControlBox=function(){this.controlBox.style.display=""},z.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:ye.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:ye.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},re.prototype.getState.call(this))},z.prototype.restoreState=function(k){re.prototype.restoreState.call(this,k);var j=k;this.left=j.left,this.top=j.top,this.width=j.width,this.height=j.height,this.rotationAngle=j.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(ye.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,j.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(ye.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,j.containerTransformMatrix))},z.prototype.scale=function(k,j){re.prototype.scale.call(this,k,j);var Q=this.rotatePoint({x:this.left,y:this.top}),T=this.unrotatePoint({x:Q.x*k,y:Q.y*j});this.left=T.x,this.top=T.y,this.width=this.width*k,this.height=this.height*j,this.adjustControlBox()},z}(Re),ke=function(re){function z(k,j,Q){var T=re.call(this,k,j,Q)||this;return T.fillColor="transparent",T.strokeColor="transparent",T.strokeWidth=0,T.strokeDasharray="",T.opacity=1,T.setStrokeColor=T.setStrokeColor.bind(T),T.setFillColor=T.setFillColor.bind(T),T.setStrokeWidth=T.setStrokeWidth.bind(T),T.setStrokeDasharray=T.setStrokeDasharray.bind(T),T.createVisual=T.createVisual.bind(T),T}return I(z,re),z.prototype.ownsTarget=function(k){return!(!re.prototype.ownsTarget.call(this,k)&&k!==this.visual)},z.prototype.createVisual=function(){this.visual=F.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},z.prototype.pointerDown=function(k,j){re.prototype.pointerDown.call(this,k,j),this.state==="new"&&(this.createVisual(),this.moveVisual(k),this._state="creating")},z.prototype.manipulate=function(k){re.prototype.manipulate.call(this,k)},z.prototype.resize=function(k){re.prototype.resize.call(this,k),this.setSize()},z.prototype.setSize=function(){re.prototype.setSize.call(this),F.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},z.prototype.pointerUp=function(k){re.prototype.pointerUp.call(this,k),this.setSize()},z.prototype.setStrokeColor=function(k){this.strokeColor=k,this.visual&&F.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(k),this.stateChanged()},z.prototype.setFillColor=function(k){this.fillColor=k,this.visual&&F.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},z.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.visual&&F.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},z.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.visual&&F.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},z.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},re.prototype.getState.call(this))},z.prototype.restoreState=function(k){var j=k;this.fillColor=j.fillColor,this.strokeColor=j.strokeColor,this.strokeWidth=j.strokeWidth,this.strokeDasharray=j.strokeDasharray,this.opacity=j.opacity,this.createVisual(),re.prototype.restoreState.call(this,k),this.setSize()},z.prototype.scale=function(k,j){re.prototype.scale.call(this,k,j),this.setSize()},z.title="Rectangle marker",z}(pe),ee=function(re){function z(k,j,Q,T){var _e=re.call(this,k,T||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return _e.widths=[],_e.widthBoxes=[],_e.widths=j,_e.currentWidth=Q,_e.setCurrentWidth=_e.setCurrentWidth.bind(_e),_e}return I(z,re),z.prototype.getUi=function(){var k=this,j=document.createElement("div");return j.style.display="flex",j.style.overflow="hidden",j.style.flexGrow="2",this.widths.forEach(function(Q){var T=document.createElement("div");T.style.display="flex",T.style.flexGrow="2",T.style.alignItems="center",T.style.justifyContent="space-between",T.style.padding="5px",T.style.borderWidth="2px",T.style.borderStyle="solid",T.style.borderColor=Q===k.currentWidth?k.uiStyleSettings.toolboxAccentColor:"transparent",T.addEventListener("click",function(){k.setCurrentWidth(Q,T)}),j.appendChild(T);var _e=document.createElement("div");_e.innerText=Q.toString(),_e.style.marginRight="5px",T.appendChild(_e);var It=document.createElement("div");It.style.minHeight="20px",It.style.flexGrow="2",It.style.display="flex",It.style.alignItems="center";var $e=document.createElement("hr");$e.style.minWidth="20px",$e.style.border="0px",$e.style.borderTop=Q+"px solid "+k.uiStyleSettings.toolboxColor,$e.style.flexGrow="2",It.appendChild($e),T.appendChild(It),k.widthBoxes.push(T)}),j},z.prototype.setCurrentWidth=function(k,j){var Q=this;this.currentWidth=k,this.widthBoxes.forEach(function(T){T.style.borderColor=T===j?Q.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},z}(Ce),Te=function(re){function z(k,j,Q,T){var _e=re.call(this,k,T||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return _e.styles=[],_e.styleBoxes=[],_e.styles=j,_e.currentStyle=Q,_e.setCurrentStyle=_e.setCurrentStyle.bind(_e),_e}return I(z,re),z.prototype.getUi=function(){var k=this,j=document.createElement("div");return j.style.display="flex",j.style.overflow="hidden",j.style.flexGrow="2",this.styles.forEach(function(Q){var T=document.createElement("div");T.style.display="flex",T.style.alignItems="center",T.style.justifyContent="space-between",T.style.padding="5px",T.style.borderWidth="2px",T.style.borderStyle="solid",T.style.overflow="hidden",T.style.maxWidth=100/k.styles.length-5+"%",T.style.borderColor=Q===k.currentStyle?k.uiStyleSettings.toolboxAccentColor:"transparent",T.addEventListener("click",function(){k.setCurrentStyle(Q,T)}),j.appendChild(T);var _e=document.createElement("div");_e.style.minHeight="20px",_e.style.flexGrow="2",_e.style.overflow="hidden";var It=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+k.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(Q!==""?'stroke-dasharray="'+Q+'"':"")+` />
</svg>`;_e.innerHTML=It,T.appendChild(_e),k.styleBoxes.push(T)}),j},z.prototype.setCurrentStyle=function(k,j){var Q=this;this.currentStyle=k,this.styleBoxes.forEach(function(T){T.style.borderColor=T===j?Q.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},z}(Ce),Me=function(re){function z(k,j,Q){var T=re.call(this,k,j,Q)||this;return T.strokeColor=Q.defaultColor,T.strokeWidth=Q.defaultStrokeWidth,T.strokeDasharray=Q.defaultStrokeDasharray,T.strokePanel=new Ie("Line color",Q.defaultColorSet,Q.defaultColor),T.strokePanel.onColorChanged=T.setStrokeColor,T.strokeWidthPanel=new ee("Line width",Q.defaultStrokeWidths,Q.defaultStrokeWidth),T.strokeWidthPanel.onWidthChanged=T.setStrokeWidth,T.strokeStylePanel=new Te("Line style",Q.defaultStrokeDasharrays,Q.defaultStrokeDasharray),T.strokeStylePanel.onStyleChanged=T.setStrokeDasharray,T}return I(z,re),Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var k=re.prototype.getState.call(this);return k.typeName=z.typeName,k},z.typeName="FrameMarker",z.title="Frame marker",z.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',z}(ke),Le=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},Je=function(re){function z(k,j,Q){var T=re.call(this,k,j,Q)||this;return T.x1=0,T.y1=0,T.x2=0,T.y2=0,T.defaultLength=50,T.manipulationStartX=0,T.manipulationStartY=0,T.manipulationStartX1=0,T.manipulationStartY1=0,T.manipulationStartX2=0,T.manipulationStartY2=0,T.setupControlBox(),T}return I(z,re),z.prototype.ownsTarget=function(k){return!!re.prototype.ownsTarget.call(this,k)||!(!this.grip1.ownsTarget(k)&&!this.grip2.ownsTarget(k))},z.prototype.pointerDown=function(k,j){re.prototype.pointerDown.call(this,k,j),this.manipulationStartX=k.x,this.manipulationStartY=k.y,this.state==="new"&&(this.x1=k.x,this.y1=k.y,this.x2=k.x,this.y2=k.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(j)?this.activeGrip=this.grip1:this.grip2.ownsTarget(j)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},z.prototype.pointerUp=function(k){var j=this.state;re.prototype.pointerUp.call(this,k),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(k),this._state="select",j==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},z.prototype.adjustVisual=function(){},z.prototype.manipulate=function(k){this.state==="creating"?this.resize(k):this.state==="move"?(this.x1=this.manipulationStartX1+k.x-this.manipulationStartX,this.y1=this.manipulationStartY1+k.y-this.manipulationStartY,this.x2=this.manipulationStartX2+k.x-this.manipulationStartX,this.y2=this.manipulationStartY2+k.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(k)},z.prototype.resize=function(k){switch(this.activeGrip){case this.grip1:this.x1=k.x,this.y1=k.y;break;case this.grip2:case void 0:this.x2=k.x,this.y2=k.y}this.adjustVisual(),this.adjustControlBox()},z.prototype.select=function(){re.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},z.prototype.deselect=function(){re.prototype.deselect.call(this),this.controlBox.style.display="none"},z.prototype.setupControlBox=function(){this.controlBox=F.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},z.prototype.adjustControlBox=function(){this.positionGrips()},z.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},z.prototype.createGrip=function(){var k=new me;return k.visual.transform.baseVal.appendItem(F.createTransform()),this.controlBox.appendChild(k.visual),k},z.prototype.positionGrips=function(){var k=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-k/2,this.y1-k/2),this.positionGrip(this.grip2.visual,this.x2-k/2,this.y2-k/2)},z.prototype.positionGrip=function(k,j,Q){var T=k.transform.baseVal.getItem(0);T.setTranslate(j,Q),k.transform.baseVal.replaceItem(T,0)},z.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},re.prototype.getState.call(this))},z.prototype.restoreState=function(k){re.prototype.restoreState.call(this,k);var j=k;this.x1=j.x1,this.y1=j.y1,this.x2=j.x2,this.y2=j.y2},z.prototype.scale=function(k,j){re.prototype.scale.call(this,k,j),this.x1=this.x1*k,this.y1=this.y1*j,this.x2=this.x2*k,this.y2=this.y2*j,this.adjustVisual(),this.adjustControlBox()},z}(Re),Ye=function(re){function z(k,j,Q){var T=re.call(this,k,j,Q)||this;return T.strokeColor="transparent",T.strokeWidth=0,T.strokeDasharray="",T.setStrokeColor=T.setStrokeColor.bind(T),T.setStrokeWidth=T.setStrokeWidth.bind(T),T.setStrokeDasharray=T.setStrokeDasharray.bind(T),T.strokeColor=Q.defaultColor,T.strokeWidth=Q.defaultStrokeWidth,T.strokeDasharray=Q.defaultStrokeDasharray,T.strokePanel=new Ie("Line color",Q.defaultColorSet,Q.defaultColor),T.strokePanel.onColorChanged=T.setStrokeColor,T.strokeWidthPanel=new ee("Line width",Q.defaultStrokeWidths,Q.defaultStrokeWidth),T.strokeWidthPanel.onWidthChanged=T.setStrokeWidth,T.strokeStylePanel=new Te("Line style",Q.defaultStrokeDasharrays,Q.defaultStrokeDasharray),T.strokeStylePanel.onStyleChanged=T.setStrokeDasharray,T}return I(z,re),z.prototype.ownsTarget=function(k){return!(!re.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.selectorLine&&k!==this.visibleLine)},z.prototype.createVisual=function(){this.visual=F.createGroup(),this.selectorLine=F.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=F.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},z.prototype.pointerDown=function(k,j){re.prototype.pointerDown.call(this,k,j),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},z.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),F.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),F.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),F.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},z.prototype.setStrokeColor=function(k){this.strokeColor=k,this.adjustVisual(),this.colorChanged(k)},z.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.adjustVisual()},z.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.adjustVisual(),this.stateChanged()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var k=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},re.prototype.getState.call(this));return k.typeName=z.typeName,k},z.prototype.restoreState=function(k){re.prototype.restoreState.call(this,k);var j=k;this.strokeColor=j.strokeColor,this.strokeWidth=j.strokeWidth,this.strokeDasharray=j.strokeDasharray,this.createVisual(),this.adjustVisual()},z.typeName="LineMarker",z.title="Line marker",z.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',z}(Je),ne=function(re){function z(k,j,Q,T){var _e=re.call(this,k,T||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return _e.fonts=[],_e.fontBoxes=[],_e.fonts=j,_e.currentFont=Q,_e.setCurrentFont=_e.setCurrentFont.bind(_e),_e}return I(z,re),z.prototype.getUi=function(){var k=this,j=document.createElement("div");return j.style.overflow="hidden",j.style.flexGrow="2",this.fonts.forEach(function(Q){var T=document.createElement("div");T.style.display="inline-block",T.style.alignItems="center",T.style.justifyContent="space-between",T.style.padding="5px",T.style.borderWidth="2px",T.style.borderStyle="solid",T.style.overflow="hidden",T.style.maxWidth=100/k.fonts.length-5+"%",T.style.borderColor=Q===k.currentFont?k.uiStyleSettings.toolboxAccentColor:"transparent",T.addEventListener("click",function(){k.setCurrentFont(Q,T)}),j.appendChild(T);var _e=document.createElement("div");_e.style.display="flex",_e.style.minHeight="20px",_e.style.flexGrow="2",_e.style.fontFamily=Q,_e.style.overflow="hidden";var It=document.createElement("div");It.style.whiteSpace="nowrap",It.style.overflow="hidden",It.style.textOverflow="ellipsis",It.innerHTML="The quick brown fox jumps over the lazy dog",_e.appendChild(It),T.appendChild(_e),k.fontBoxes.push(T)}),j},z.prototype.setCurrentFont=function(k,j){var Q=this;this.currentFont=k,this.fontBoxes.forEach(function(T){T.style.borderColor=T===j?Q.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},z}(Ce),at=function(re){function z(k,j,Q){var T=re.call(this,k,j,Q)||this;return T.color="transparent",T.padding=5,T.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",T.text=T.DEFAULT_TEXT,T.isMoved=!1,T.color=Q.defaultColor,T.fontFamily=Q.defaultFontFamily,T.defaultSize={x:100,y:30},T.setColor=T.setColor.bind(T),T.setFont=T.setFont.bind(T),T.renderText=T.renderText.bind(T),T.sizeText=T.sizeText.bind(T),T.textEditDivClicked=T.textEditDivClicked.bind(T),T.showTextEditor=T.showTextEditor.bind(T),T.setSize=T.setSize.bind(T),T.positionTextEditor=T.positionTextEditor.bind(T),T.colorPanel=new Ie("Color",Q.defaultColorSet,Q.defaultColor),T.colorPanel.onColorChanged=T.setColor,T.fontFamilyPanel=new ne("Font",Q.defaultFontFamilies,Q.defaultFontFamily),T.fontFamilyPanel.onFontChanged=T.setFont,T}return I(z,re),z.prototype.ownsTarget=function(k){if(re.prototype.ownsTarget.call(this,k)||k===this.visual||k===this.textElement||k===this.bgRectangle)return!0;var j=!1;return this.textElement.childNodes.forEach(function(Q){Q===k&&(j=!0)}),j},z.prototype.createVisual=function(){this.visual=F.createGroup(),this.bgRectangle=F.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=F.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(F.createTransform()),this.textElement.transform.baseVal.appendItem(F.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},z.prototype.pointerDown=function(k,j){re.prototype.pointerDown.call(this,k,j),this.isMoved=!1,this.pointerDownPoint=k,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(k),this._state="creating")},z.prototype.renderText=function(){var k=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(j){k.textElement.appendChild(F.createTSpan(j.trim()===""?" ":j.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},z.prototype.getTextScale=function(){var k=this.textElement.getBBox(),j=1;if(k.width>0&&k.height>0){var Q=(1*this.width-this.width*this.padding*2/100)/k.width,T=(1*this.height-this.height*this.padding*2/100)/k.height;j=Math.min(Q,T)}return j},z.prototype.getTextPosition=function(k){var j=this.textElement.getBBox(),Q=0,T=0;return j.width>0&&j.height>0&&(Q=(this.width-j.width*k)/2,T=this.height/2-j.height*k/2),{x:Q,y:T}},z.prototype.sizeText=function(){var k=this.textElement.getBBox(),j=this.getTextScale(),Q=this.getTextPosition(j);Q.y-=k.y*j,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Q.x+"px, "+Q.y+"px) scale("+j+", "+j+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Q.x,Q.y),this.textElement.transform.baseVal.getItem(1).setScale(j,j))},z.prototype.manipulate=function(k){re.prototype.manipulate.call(this,k),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(k.x-this.pointerDownPoint.x)>5||Math.abs(k.y-this.pointerDownPoint.y)>5)},z.prototype.resize=function(k){re.prototype.resize.call(this,k),this.isMoved=!0,this.setSize(),this.sizeText()},z.prototype.setSize=function(){re.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(F.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),F.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},z.prototype.pointerUp=function(k){var j=this.state;j==="creating"&&(this._suppressMarkerCreateEvent=!0),re.prototype.pointerUp.call(this,k),this.setSize(),(j==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},z.prototype.showTextEditor=function(){var k=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(j){j.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var j=Number.parseFloat(k.textEditor.style.fontSize);k.textEditor.clientWidth>=Number.parseInt(k.textEditor.style.maxWidth)&&j>.9;)j-=.1,k.textEditor.style.fontSize=Math.max(j,.9)+"em"}),this.textEditor.addEventListener("keyup",function(j){j.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(j){if(j.clipboardData){var Q=j.clipboardData.getData("text"),T=window.getSelection();if(!T.rangeCount)return!1;T.deleteFromDocument(),T.getRangeAt(0).insertNode(document.createTextNode(Q)),j.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){k.textEditDivClicked(k.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},z.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var k=this.getTextScale(),j=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Q=this.textElement.getBBox(),T={x:Q.width*k,y:Q.height*k};j.x-=T.x/2,j.y-=T.y/2,this.textEditor.style.top=j.y+"px",this.textEditor.style.left=j.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-j.x+"px",this.textEditor.style.fontSize=Math.max(16*k,12)+"px",this.textElement.style.display="none"}},z.prototype.textEditDivClicked=function(k){this.text=k.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},z.prototype.select=function(){re.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},z.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),re.prototype.deselect.call(this)},z.prototype.dblClick=function(k,j){re.prototype.dblClick.call(this,k,j),this.showTextEditor()},z.prototype.setColor=function(k){this.textElement&&F.setAttributes(this.textElement,[["fill",k]]),this.color=k,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(k)},z.prototype.setFont=function(k){this.textElement&&F.setAttributes(this.textElement,[["font-family",k]]),this.fontFamily=k,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},z.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},z.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var k=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},re.prototype.getState.call(this));return k.typeName=z.typeName,k},z.prototype.restoreState=function(k){var j=k;this.color=j.color,this.fontFamily=j.fontFamily,this.padding=j.padding,this.text=j.text,this.createVisual(),re.prototype.restoreState.call(this,k),this.setSize()},z.prototype.scale=function(k,j){re.prototype.scale.call(this,k,j),this.setSize(),this.sizeText(),this.positionTextEditor()},z.typeName="TextMarker",z.title="Text marker",z.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',z}(pe),Ge=function(re){function z(k,j,Q){var T=re.call(this,k,j,Q)||this;return T.color="transparent",T.lineWidth=3,T.drawing=!1,T.pixelRatio=1,T.color=Q.defaultColor,T.lineWidth=Q.defaultStrokeWidth,T.pixelRatio=Q.freehandPixelRatio,T.setColor=T.setColor.bind(T),T.addCanvas=T.addCanvas.bind(T),T.finishCreation=T.finishCreation.bind(T),T.setLineWidth=T.setLineWidth.bind(T),T.colorPanel=new Ie("Color",Q.defaultColorSet,Q.defaultColor),T.colorPanel.onColorChanged=T.setColor,T.lineWidthPanel=new ee("Line width",Q.defaultStrokeWidths,Q.defaultStrokeWidth),T.lineWidthPanel.onWidthChanged=T.setLineWidth,T}return I(z,re),z.prototype.ownsTarget=function(k){return!(!re.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.drawingImage)},z.prototype.createVisual=function(){this.visual=F.createGroup(),this.drawingImage=F.createImage(),this.visual.appendChild(this.drawingImage);var k=F.createTransform();this.visual.transform.baseVal.appendItem(k),this.addMarkerVisualToContainer(this.visual)},z.prototype.pointerDown=function(k,j){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(k.x,k.y),this.drawing=!0):re.prototype.pointerDown.call(this,k,j)},z.prototype.manipulate=function(k){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(k.x,k.y),this.canvasContext.stroke()):re.prototype.manipulate.call(this,k)},z.prototype.resize=function(k){re.prototype.resize.call(this,k),F.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),F.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},z.prototype.pointerUp=function(k){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):re.prototype.pointerUp.call(this,k)},z.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},z.prototype.select=function(){this.state==="creating"&&this.finishCreation(),re.prototype.select.call(this)},z.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),re.prototype.deselect.call(this)},z.prototype.finishCreation=function(){for(var k=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),j=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Q=j[0],T=j[1],_e=j[2],It=j[3],$e=!1,Pe=0;Pe<this.canvasElement.height;Pe++)for(var vt=0;vt<this.canvasElement.width;vt++)k.data[Pe*this.canvasElement.width*4+4*vt+3]>0&&($e=!0,Pe<T&&(T=Pe),vt<Q&&(Q=vt),Pe>It&&(It=Pe),vt>_e&&(_e=vt));if($e){this.left=Q/this.pixelRatio,this.top=T/this.pixelRatio,this.width=(_e-Q)/this.pixelRatio,this.height=(It-T)/this.pixelRatio;var ut=document.createElement("canvas");ut.width=_e-Q,ut.height=It-T,ut.getContext("2d").putImageData(this.canvasContext.getImageData(Q,T,_e-Q,It-T),0,0),this.drawingImgUrl=ut.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},z.prototype.setDrawingImage=function(){F.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),F.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},z.prototype.setColor=function(k){this.color=k,this.colorChanged(k)},z.prototype.setLineWidth=function(k){this.lineWidth=k},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var k=Object.assign({drawingImgUrl:this.drawingImgUrl},re.prototype.getState.call(this));return k.typeName=z.typeName,k},z.prototype.restoreState=function(k){this.createVisual(),re.prototype.restoreState.call(this,k),this.drawingImgUrl=k.drawingImgUrl,this.setDrawingImage()},z.prototype.scale=function(k,j){re.prototype.scale.call(this,k,j),this.setDrawingImage()},z.typeName="FreehandMarker",z.title="Freehand marker",z.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',z}(pe),Pt=function(re){function z(k,j,Q){var T=re.call(this,k,Q||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return T.typeBoxes=[],T.currentType=j,T.setCurrentType=T.setCurrentType.bind(T),T}return I(z,re),z.prototype.getUi=function(){var k=this,j=document.createElement("div");j.style.display="flex",j.style.overflow="hidden",j.style.flexGrow="2";for(var Q=function(It){var $e="both";switch(It){case 0:$e="both";break;case 1:$e="start";break;case 2:$e="end";break;case 3:$e="none"}var Pe=document.createElement("div");if(Pe.style.display="flex",Pe.style.flexGrow="2",Pe.style.alignItems="center",Pe.style.justifyContent="space-between",Pe.style.padding="5px",Pe.style.borderWidth="2px",Pe.style.borderStyle="solid",Pe.style.borderColor=$e===T.currentType?T.uiStyleSettings.toolboxAccentColor:"transparent",Pe.addEventListener("click",function(){k.setCurrentType($e,Pe)}),j.appendChild(Pe),$e==="both"||$e==="start"){var vt=document.createElement("div");vt.style.display="flex",vt.style.alignItems="center",vt.style.minHeight="20px",vt.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,5 10,0 10,10" fill="`+(T.uiStyleSettings!==void 0?T.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,vt.style.marginLeft="5px",Pe.appendChild(vt)}var ut=document.createElement("div");ut.style.display="flex",ut.style.alignItems="center",ut.style.minHeight="20px",ut.style.flexGrow="2";var tt=document.createElement("hr");if(tt.style.minWidth="20px",tt.style.border="0px",tt.style.borderTop="3px solid "+(T.uiStyleSettings!==void 0?T.uiStyleSettings.toolboxColor:"#eeeeee"),tt.style.flexGrow="2",ut.appendChild(tt),Pe.appendChild(ut),$e==="both"||$e==="end"){var Et=document.createElement("div");Et.style.display="flex",Et.style.alignItems="center",Et.style.minHeight="20px",Et.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,0 10,5 0,10" fill="`+(T.uiStyleSettings!==void 0?T.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Et.style.marginRight="5px",Pe.appendChild(Et)}T.typeBoxes.push(Pe)},T=this,_e=0;_e<4;_e++)Q(_e);return j},z.prototype.setCurrentType=function(k,j){var Q=this;this.currentType=k,this.typeBoxes.forEach(function(T){T.style.borderColor=T===j?Q.uiStyleSettings!==void 0?Q.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},z}(Ce),gt=function(re){function z(k,j,Q){var T=re.call(this,k,j,Q)||this;return T.arrowType="end",T.arrowBaseHeight=10,T.arrowBaseWidth=10,T.getArrowPoints=T.getArrowPoints.bind(T),T.setArrowType=T.setArrowType.bind(T),T.arrowTypePanel=new Pt("Arrow type","end"),T.arrowTypePanel.onArrowTypeChanged=T.setArrowType,T}return I(z,re),z.prototype.ownsTarget=function(k){return!(!re.prototype.ownsTarget.call(this,k)&&k!==this.arrow1&&k!==this.arrow2)},z.prototype.getArrowPoints=function(k,j){var Q=this.arrowBaseWidth+2*this.strokeWidth,T=this.arrowBaseHeight+2*this.strokeWidth;return k-Q/2+","+(j+T/2)+" "+k+","+(j-T/2)+" "+(k+Q/2)+","+(j+T/2)},z.prototype.createTips=function(){this.arrow1=F.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(F.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=F.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(F.createTransform()),this.visual.appendChild(this.arrow2)},z.prototype.pointerDown=function(k,j){re.prototype.pointerDown.call(this,k,j),this.state==="creating"&&this.createTips()},z.prototype.adjustVisual=function(){if(re.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",F.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),F.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var k=0;Math.abs(this.x1-this.x2)>.1&&(k=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var j=this.arrow1.transform.baseVal.getItem(0);j.setRotate(k,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(j,0);var Q=this.arrow2.transform.baseVal.getItem(0);Q.setRotate(k+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Q,0)}},z.prototype.setArrowType=function(k){this.arrowType=k,this.adjustVisual(),this.stateChanged()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var k=Object.assign({arrowType:this.arrowType},re.prototype.getState.call(this));return k.typeName=z.typeName,k},z.prototype.restoreState=function(k){re.prototype.restoreState.call(this,k);var j=k;this.arrowType=j.arrowType,this.createTips(),this.adjustVisual()},z.typeName="ArrowMarker",z.title="Arrow marker",z.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',z}(Ye),kt=function(re){function z(k,j,Q){var T=re.call(this,k,j,Q)||this;return T.fillColor=Q.defaultFillColor,T.strokeWidth=0,T.fillPanel=new Ie("Color",Q.defaultColorSet,Q.defaultFillColor),T.fillPanel.onColorChanged=T.setFillColor,T}return I(z,re),Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var k=re.prototype.getState.call(this);return k.typeName=z.typeName,k},z.typeName="CoverMarker",z.title="Cover marker",z.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',z}(ke),Ct=function(re){function z(k,j,Q,T){var _e=re.call(this,k,T||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return _e.opacities=[],_e.opacityBoxes=[],_e.opacities=j,_e.currentOpacity=Q,_e.setCurrentOpacity=_e.setCurrentOpacity.bind(_e),_e}return I(z,re),z.prototype.getUi=function(){var k=this,j=document.createElement("div");return j.style.display="flex",j.style.overflow="hidden",j.style.flexGrow="2",j.style.justifyContent="space-between",this.opacities.forEach(function(Q){var T=document.createElement("div");T.style.display="flex",T.style.alignItems="center",T.style.justifyContent="center",T.style.padding="5px",T.style.borderWidth="2px",T.style.borderStyle="solid",T.style.borderColor=Q===k.currentOpacity?k.uiStyleSettings.toolboxAccentColor:"transparent",T.addEventListener("click",function(){k.setCurrentOpacity(Q,T)}),j.appendChild(T);var _e=document.createElement("div");_e.innerText=100*Q+"%",T.appendChild(_e),k.opacityBoxes.push(T)}),j},z.prototype.setCurrentOpacity=function(k,j){var Q=this;this.currentOpacity=k,this.opacityBoxes.forEach(function(T){T.style.borderColor=T===j?Q.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},z}(Ce),Cn=function(re){function z(k,j,Q){var T=re.call(this,k,j,Q)||this;return T.setOpacity=T.setOpacity.bind(T),T.fillColor=Q.defaultHighlightColor,T.strokeWidth=0,T.opacity=Q.defaultHighlightOpacity,T.fillPanel=new Ie("Color",Q.defaultColorSet,T.fillColor),T.fillPanel.onColorChanged=T.setFillColor,T.opacityPanel=new Ct("Opacity",Q.defaultOpacitySteps,T.opacity),T.opacityPanel.onOpacityChanged=T.setOpacity,T}return I(z,re),z.prototype.setOpacity=function(k){this.opacity=k,this.visual&&F.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var k=re.prototype.getState.call(this);return k.typeName=z.typeName,k},z.typeName="HighlightMarker",z.title="Highlight marker",z.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',z}(kt),Qe='<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>',le='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',ce=function(re){function z(k,j,Q){var T=re.call(this,k,j,Q)||this;return T.bgColor="transparent",T.tipPosition={x:0,y:0},T.tipBase1Position={x:0,y:0},T.tipBase2Position={x:0,y:0},T.tipMoving=!1,T.color=Q.defaultStrokeColor,T.bgColor=Q.defaultFillColor,T.fontFamily=Q.defaultFontFamily,T.defaultSize={x:100,y:30},T.setBgColor=T.setBgColor.bind(T),T.getTipPoints=T.getTipPoints.bind(T),T.positionTip=T.positionTip.bind(T),T.setTipPoints=T.setTipPoints.bind(T),T.colorPanel=new Ie("Text color",Q.defaultColorSet,T.color,Qe),T.colorPanel.onColorChanged=T.setColor,T.bgColorPanel=new Ie("Fill color",Q.defaultColorSet,T.bgColor,le),T.bgColorPanel.onColorChanged=T.setBgColor,T.fontFamilyPanel=new ne("Font",Q.defaultFontFamilies,Q.defaultFontFamily),T.fontFamilyPanel.onFontChanged=T.setFont,T.tipGrip=new me,T.tipGrip.visual.transform.baseVal.appendItem(F.createTransform()),T.controlBox.appendChild(T.tipGrip.visual),T}return I(z,re),z.prototype.ownsTarget=function(k){return re.prototype.ownsTarget.call(this,k)||this.tipGrip.ownsTarget(k)||this.tip===k},z.prototype.createTip=function(){F.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=F.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},z.prototype.pointerDown=function(k,j){this.state==="new"&&re.prototype.pointerDown.call(this,k,j),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(j)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):re.prototype.pointerDown.call(this,k,j)},z.prototype.pointerUp=function(k){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,re.prototype.pointerUp.call(this,k);else{var j=this.state==="creating";re.prototype.pointerUp.call(this,k),this.setTipPoints(j),this.positionTip()}},z.prototype.manipulate=function(k){if(this.tipMoving){var j=this.unrotatePoint(k);this.tipPosition={x:j.x-this.manipulationStartLeft,y:j.y-this.manipulationStartTop},this.positionTip()}else re.prototype.manipulate.call(this,k)},z.prototype.setBgColor=function(k){this.bgRectangle&&this.tip&&(F.setAttributes(this.bgRectangle,[["fill",k]]),F.setAttributes(this.tip,[["fill",k]])),this.bgColor=k,this.fillColorChanged(k)},z.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},z.prototype.setTipPoints=function(k){k===void 0&&(k=!1);var j=Math.min(this.height/2,15),Q=this.height/5;k&&(this.tipPosition={x:j+Q/2,y:this.height+20});var T=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?T<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(Q=this.width/5,j=Math.min(this.width/2,15),this.tipBase1Position={x:j,y:0},this.tipBase2Position={x:j+Q,y:0}):(this.tipBase1Position={x:0,y:j},this.tipBase2Position={x:0,y:j+Q}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?T<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(Q=this.width/5,j=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-j-Q,y:0},this.tipBase2Position={x:this.width-j,y:0}):(this.tipBase1Position={x:this.width,y:j},this.tipBase2Position={x:this.width,y:j+Q}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?T<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(Q=this.width/5,j=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-j-Q,y:this.height},this.tipBase2Position={x:this.width-j,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-j-Q},this.tipBase2Position={x:this.width,y:this.height-j}):T<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(Q=this.width/5,j=Math.min(this.width/2,15),this.tipBase1Position={x:j,y:this.height},this.tipBase2Position={x:j+Q,y:this.height}):(this.tipBase1Position={x:0,y:this.height-j},this.tipBase2Position={x:0,y:this.height-j-Q})},z.prototype.resize=function(k){re.prototype.resize.call(this,k),this.positionTip()},z.prototype.positionTip=function(){F.setAttributes(this.tip,[["points",this.getTipPoints()]]);var k=this.tipGrip.visual.transform.baseVal.getItem(0);k.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(k,0)},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),z.prototype.select=function(){this.positionTip(),re.prototype.select.call(this)},z.prototype.getState=function(){var k=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},re.prototype.getState.call(this));return k.typeName=z.typeName,k},z.prototype.restoreState=function(k){var j=k;this.bgColor=j.bgColor,this.tipPosition=j.tipPosition,re.prototype.restoreState.call(this,k),this.createTip(),this.setTipPoints()},z.prototype.scale=function(k,j){re.prototype.scale.call(this,k,j),this.tipPosition={x:this.tipPosition.x*k,y:this.tipPosition.y*j},this.positionTip()},z.typeName="CalloutMarker",z.title="Callout marker",z.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',z}(at),Ht=function(re){function z(k,j,Q){var T=re.call(this,k,j,Q)||this;return T.fillColor="transparent",T.strokeColor="transparent",T.strokeWidth=0,T.strokeDasharray="",T.opacity=1,T.strokeColor=Q.defaultColor,T.strokeWidth=Q.defaultStrokeWidth,T.strokeDasharray=Q.defaultStrokeDasharray,T.fillColor=Q.defaultFillColor,T.setStrokeColor=T.setStrokeColor.bind(T),T.setFillColor=T.setFillColor.bind(T),T.setStrokeWidth=T.setStrokeWidth.bind(T),T.setStrokeDasharray=T.setStrokeDasharray.bind(T),T.setOpacity=T.setOpacity.bind(T),T.createVisual=T.createVisual.bind(T),T.strokePanel=new Ie("Line color",G(Q.defaultColorSet,["transparent"]),Q.defaultColor),T.strokePanel.onColorChanged=T.setStrokeColor,T.fillPanel=new Ie("Fill color",G(Q.defaultColorSet,["transparent"]),T.fillColor,le),T.fillPanel.onColorChanged=T.setFillColor,T.strokeWidthPanel=new ee("Line width",Q.defaultStrokeWidths,Q.defaultStrokeWidth),T.strokeWidthPanel.onWidthChanged=T.setStrokeWidth,T.strokeStylePanel=new Te("Line style",Q.defaultStrokeDasharrays,Q.defaultStrokeDasharray),T.strokeStylePanel.onStyleChanged=T.setStrokeDasharray,T.opacityPanel=new Ct("Opacity",Q.defaultOpacitySteps,T.opacity),T.opacityPanel.onOpacityChanged=T.setOpacity,T}return I(z,re),z.prototype.ownsTarget=function(k){return!(!re.prototype.ownsTarget.call(this,k)&&k!==this.visual)},z.prototype.createVisual=function(){this.visual=F.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},z.prototype.pointerDown=function(k,j){re.prototype.pointerDown.call(this,k,j),this.state==="new"&&(this.createVisual(),this.moveVisual(k),this._state="creating")},z.prototype.manipulate=function(k){re.prototype.manipulate.call(this,k)},z.prototype.resize=function(k){re.prototype.resize.call(this,k),this.setSize()},z.prototype.setSize=function(){re.prototype.setSize.call(this),F.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},z.prototype.pointerUp=function(k){re.prototype.pointerUp.call(this,k),this.setSize()},z.prototype.setStrokeColor=function(k){this.strokeColor=k,this.visual&&F.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(k),this.stateChanged()},z.prototype.setFillColor=function(k){this.fillColor=k,this.visual&&F.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(k),this.stateChanged()},z.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.visual&&F.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},z.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.visual&&F.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},z.prototype.setOpacity=function(k){this.opacity=k,this.visual&&F.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var k=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},re.prototype.getState.call(this));return k.typeName=z.typeName,k},z.prototype.restoreState=function(k){var j=k;this.fillColor=j.fillColor,this.strokeColor=j.strokeColor,this.strokeWidth=j.strokeWidth,this.strokeDasharray=j.strokeDasharray,this.opacity=j.opacity,this.createVisual(),re.prototype.restoreState.call(this,k),this.setSize()},z.prototype.scale=function(k,j){re.prototype.scale.call(this,k,j),this.setSize()},z.typeName="EllipseMarker",z.title="Ellipse marker",z.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',z}(pe),Vt=function(re){function z(k,j,Q){return re.call(this,k,j,Q)||this}return I(z,re),Object.defineProperty(z.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),z.prototype.ownsTarget=function(k){return!(!re.prototype.ownsTarget.call(this,k)&&k!==this.tip1&&k!==this.tip2)},z.prototype.createTips=function(){this.tip1=F.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(F.createTransform()),this.visual.appendChild(this.tip1),this.tip2=F.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(F.createTransform()),this.visual.appendChild(this.tip2)},z.prototype.pointerDown=function(k,j){re.prototype.pointerDown.call(this,k,j),this.state==="creating"&&this.createTips()},z.prototype.adjustVisual=function(){if(re.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(F.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),F.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var k=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),j=this.tip1.transform.baseVal.getItem(0);j.setRotate(k,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(j,0);var Q=this.tip2.transform.baseVal.getItem(0);Q.setRotate(k+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Q,0)}},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var k=re.prototype.getState.call(this);return k.typeName=z.typeName,k},z.prototype.restoreState=function(k){re.prototype.restoreState.call(this,k),this.createTips(),this.adjustVisual()},z.typeName="MeasurementMarker",z.title="Measurement marker",z.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',z}(Ye),St=function(re){function z(k,j,Q){var T=re.call(this,k,j,Q)||this;return T.strokePanel.colors=Q.defaultColorSet,T.fillColor="transparent",T}return I(z,re),Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var k=re.prototype.getState.call(this);return k.typeName=z.typeName,k},z.typeName="EllipseFrameMarker",z.title="Ellipse frame marker",z.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',z}(Ht),sn=function(){function re(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(re.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),re.prototype.addUndoStep=function(z){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(z)||(this.undoStack.push(z),JSON.stringify(this.lastRedoStep)!==JSON.stringify(z)&&this.redoStack.splice(0,this.redoStack.length))},re.prototype.replaceLastUndoStep=function(z){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=z)},re.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},re.prototype.undo=function(){if(this.undoStack.length>1){var z=this.undoStack.pop();return z!==void 0&&this.redoStack.push(z),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},re.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},re}(),Ft=function(re){function z(k,j,Q){var T=re.call(this,k,j,Q)||this;return T.strokeColor="transparent",T.strokeWidth=0,T.strokeDasharray="",T.curveX=0,T.curveY=0,T.manipulationStartCurveX=0,T.manipulationStartCurveY=0,T.setStrokeColor=T.setStrokeColor.bind(T),T.setStrokeWidth=T.setStrokeWidth.bind(T),T.setStrokeDasharray=T.setStrokeDasharray.bind(T),T.positionGrips=T.positionGrips.bind(T),T.addControlGrips=T.addControlGrips.bind(T),T.adjustVisual=T.adjustVisual.bind(T),T.setupControlBox=T.setupControlBox.bind(T),T.resize=T.resize.bind(T),T.strokeColor=Q.defaultColor,T.strokeWidth=Q.defaultStrokeWidth,T.strokeDasharray=Q.defaultStrokeDasharray,T.strokePanel=new Ie("Line color",Q.defaultColorSet,Q.defaultColor),T.strokePanel.onColorChanged=T.setStrokeColor,T.strokeWidthPanel=new ee("Line width",Q.defaultStrokeWidths,Q.defaultStrokeWidth),T.strokeWidthPanel.onWidthChanged=T.setStrokeWidth,T.strokeStylePanel=new Te("Line style",Q.defaultStrokeDasharrays,Q.defaultStrokeDasharray),T.strokeStylePanel.onStyleChanged=T.setStrokeDasharray,T}return I(z,re),z.prototype.ownsTarget=function(k){return!(!re.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.selectorCurve&&k!==this.visibleCurve&&!this.curveGrip.ownsTarget(k))},z.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},z.prototype.createVisual=function(){this.visual=F.createGroup(),this.selectorCurve=F.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=F.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},z.prototype.pointerDown=function(k,j){re.prototype.pointerDown.call(this,k,j),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=k.x,this.curveY=k.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(j)&&(this.activeGrip=this.curveGrip,this._state="resize")},z.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),F.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),F.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),F.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},z.prototype.setupControlBox=function(){re.prototype.setupControlBox.call(this),this.curveControlLine1=F.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=F.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},z.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,re.prototype.addControlGrips.call(this)},z.prototype.positionGrips=function(){re.prototype.positionGrips.call(this);var k=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-k/2,this.curveY-k/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},z.prototype.manipulate=function(k){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+k.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+k.y-this.manipulationStartY),re.prototype.manipulate.call(this,k)},z.prototype.resize=function(k){this.activeGrip===this.curveGrip&&(this.curveX=k.x,this.curveY=k.y),re.prototype.resize.call(this,k),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},z.prototype.setStrokeColor=function(k){this.strokeColor=k,this.adjustVisual(),this.colorChanged(k)},z.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.adjustVisual()},z.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.adjustVisual()},z.prototype.scale=function(k,j){this.curveX=this.curveX*k,this.curveY=this.curveY*j,re.prototype.scale.call(this,k,j)},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var k=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},re.prototype.getState.call(this));return k.typeName=z.typeName,k},z.prototype.restoreState=function(k){re.prototype.restoreState.call(this,k);var j=k;this.strokeColor=j.strokeColor,this.strokeWidth=j.strokeWidth,this.strokeDasharray=j.strokeDasharray,this.curveX=j.curveX,this.curveY=j.curveY,this.createVisual(),this.adjustVisual()},z.typeName="CurveMarker",z.title="Curve marker",z.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',z}(Je),oi=function(re){function z(k,j,Q){var T=re.call(this,k,j,Q)||this;return T.fillColor="transparent",T.strokeColor="transparent",T.strokeWidth=0,T.strokeDasharray="",T.textColor="transparent",T.fontSize="1rem",T.isMoved=!1,T.captionText="Caption",T.PADDING=5,T.captionBoxWidth=0,T.captionBoxHeight=0,T.strokeColor=Q.defaultColor,T.strokeWidth=Q.defaultStrokeWidth,T.strokeDasharray=Q.defaultStrokeDasharray,T.fillColor=Q.defaultFillColor,T.textColor=Q.defaultStrokeColor,T.fontFamily=Q.defaultFontFamily,T.fontSize=Q.defaultCaptionFontSize,T.captionText=Q.defaultCaptionText,T.setStrokeColor=T.setStrokeColor.bind(T),T.setFillColor=T.setFillColor.bind(T),T.setStrokeWidth=T.setStrokeWidth.bind(T),T.setStrokeDasharray=T.setStrokeDasharray.bind(T),T.createVisual=T.createVisual.bind(T),T.sizeCaption=T.sizeCaption.bind(T),T.setCaptionText=T.setCaptionText.bind(T),T.showTextEditor=T.showTextEditor.bind(T),T.positionTextEditor=T.positionTextEditor.bind(T),T.finishTextEditing=T.finishTextEditing.bind(T),T.setFont=T.setFont.bind(T),T.setTextColor=T.setTextColor.bind(T),T.strokePanel=new Ie("Line color",G(Q.defaultColorSet,["transparent"]),T.strokeColor),T.strokePanel.onColorChanged=T.setStrokeColor,T.fillPanel=new Ie("Fill color",G(Q.defaultColorSet,["transparent"]),T.fillColor,le),T.fillPanel.onColorChanged=T.setFillColor,T.strokeWidthPanel=new ee("Line width",Q.defaultStrokeWidths,Q.defaultStrokeWidth),T.strokeWidthPanel.onWidthChanged=T.setStrokeWidth,T.strokeStylePanel=new Te("Line style",Q.defaultStrokeDasharrays,Q.defaultStrokeDasharray),T.strokeStylePanel.onStyleChanged=T.setStrokeDasharray,T.fontFamilyPanel=new ne("Font",Q.defaultFontFamilies,Q.defaultFontFamily),T.fontFamilyPanel.onFontChanged=T.setFont,T.textColorPanel=new Ie("Text color",Q.defaultColorSet,T.textColor,Qe),T.textColorPanel.onColorChanged=T.setTextColor,T}return I(z,re),z.prototype.ownsTarget=function(k){return!(!re.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.frame&&k!==this.captionBg&&k!==this.captionElement)},z.prototype.createVisual=function(){this.visual=F.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=F.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=F.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=F.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},z.prototype.setCaptionText=function(k){this.captionText=k,this.captionElement.textContent=this.captionText,this.sizeCaption()},z.prototype.pointerDown=function(k,j){re.prototype.pointerDown.call(this,k,j),this.isMoved=!1,this.pointerDownPoint=k,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(k),this._state="creating")},z.prototype.manipulate=function(k){re.prototype.manipulate.call(this,k),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(k.x-this.pointerDownPoint.x)>5||Math.abs(k.y-this.pointerDownPoint.y)>5)},z.prototype.resize=function(k){re.prototype.resize.call(this,k),this.setSize()},z.prototype.sizeCaption=function(){var k=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=k.width+2*this.PADDING,this.captionBoxHeight=k.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),F.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),F.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},z.prototype.showTextEditor=function(){var k=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(j){j.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(j){j.key==="Enter"&&k.finishTextEditing(k.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(j){j.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){k.finishTextEditing(k.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){k.finishTextEditing(k.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},z.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},z.prototype.finishTextEditing=function(k){this.setCaptionText(k.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},z.prototype.setFont=function(k){this.captionElement&&F.setAttributes(this.captionElement,[["font-family",k]]),this.fontFamily=k,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},z.prototype.setTextColor=function(k){this.captionElement&&F.setAttributes(this.captionElement,[["fill",k]]),this.textColor=k,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},z.prototype.setSize=function(){re.prototype.setSize.call(this),F.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},z.prototype.pointerUp=function(k){re.prototype.pointerUp.call(this,k),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},z.prototype.dblClick=function(k,j){re.prototype.dblClick.call(this,k,j),this.showTextEditor()},z.prototype.setStrokeColor=function(k){this.strokeColor=k,this.frame&&F.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(k),this.stateChanged()},z.prototype.setFillColor=function(k){this.fillColor=k,this.captionBg&&F.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(k),this.stateChanged()},z.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.frame&&F.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},z.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.frame&&F.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var k=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},re.prototype.getState.call(this));return k.typeName=this.typeName,k},z.prototype.restoreState=function(k){var j=k;this.fillColor=j.fillColor,this.strokeColor=j.strokeColor,this.strokeWidth=j.strokeWidth,this.strokeDasharray=j.strokeDasharray,this.textColor=j.textColor,this.fontFamily=j.fontFamily,this.captionText=j.captionText,this.fontSize=j.fontSize,this.createVisual(),re.prototype.restoreState.call(this,k),this.setSize()},z.prototype.scale=function(k,j){re.prototype.scale.call(this,k,j),this.setSize()},z.typeName="CaptionFrameMarker",z.title="Caption frame marker",z.icon='<svg viewBox="0 0 24 24"><path d="M5 3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2H5m0 2h14v14H5V5m2 2v2h10V7H7z"/></svg>',z}(pe),On=function(){function re(z,k){k===void 0&&(k=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=z,this.cancelable=k}return Object.defineProperty(re.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),re.prototype.preventDefault=function(){this._defaultPrevented=!0},re}(),ni=function(re){function z(k,j,Q){var T=re.call(this,k,!1)||this;return T.dataUrl=j,T.state=Q,T}return I(z,re),z}(On),Jn=function(re){function z(k,j,Q){Q===void 0&&(Q=!1);var T=re.call(this,k,Q)||this;return T.marker=j,T}return I(z,re),z}(On),Mn=function(){function re(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return re.prototype.addEventListener=function(z,k){this[z].push(k)},re.prototype.removeEventListener=function(z,k){var j=this[z].indexOf(k);j>-1&&this[z].splice(j,1)},re}(),In=function(){function re(z){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Le,this._isOpen=!1,this.undoRedoManager=new sn,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new Mn,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=re.instanceCounter++,this.styles=new te(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=z,this.targetRoot=document.body,this.width=z.clientWidth,this.height=z.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(re.prototype,"ALL_MARKER_TYPES",{get:function(){return[Me,Ge,gt,at,St,Ht,Cn,ce,Vt,kt,Ye,Ft,oi]},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Me,Ge,gt,at,Ht,Cn,ce]},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Me,Ge,gt,at,Cn]},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(z){var k=this;this._availableMarkerTypes.splice(0),z.forEach(function(j){if(typeof j=="string"){var Q=k.ALL_MARKER_TYPES.find(function(T){return T.typeName===j});Q!==void 0&&k._availableMarkerTypes.push(Q)}else k._availableMarkerTypes.push(j)})},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(z){this._zoomLevel=z,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),re.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),M.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},re.prototype.show=function(){var z=this;this.styles.styleSheetRoot===void 0&&ae.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=ae.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(k){return k(new On(z))})},re.prototype.render=function(){return O(this,void 0,void 0,function(){var z;return B(this,function(k){switch(k.label){case 0:return this.setCurrentMarker(),(z=new de).naturalSize=this.renderAtNaturalSize,z.imageType=this.renderImageType,z.imageQuality=this.renderImageQuality,z.markersOnly=this.renderMarkersOnly,z.width=this.renderWidth,z.height=this.renderHeight,[4,z.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return k.sent(),[4,z.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,k.sent()]}})})},re.prototype.close=function(z){var k=this;if(z===void 0&&(z=!1),this.isOpen){var j=!1;z||this.eventListeners.beforeclose.forEach(function(Q){var T=new On(k,!0);Q(T),T.defaultPrevented&&(j=!0)}),j||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(Q){return Q(new On(k))}),this.detachEvents(),this._isOpen=!1)}},re.prototype.addMarkersToToolbar=function(){for(var z,k=[],j=0;j<arguments.length;j++)k[j]=arguments[j];(z=this._availableMarkerTypes).push.apply(z,k)},re.prototype.addRenderEventListener=function(z){this.addEventListener("render",function(k){z(k.dataUrl,k.state)})},re.prototype.removeRenderEventListener=function(z){},re.prototype.addCloseEventListener=function(z){this.addEventListener("close",function(){z()})},re.prototype.removeCloseEventListener=function(z){},re.prototype.setupResizeObserver=function(){var z=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){z.resize(z.target.clientWidth,z.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return z.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},re.prototype.onPopupTargetResize=function(){var z=1*this.target.clientWidth/this.target.clientHeight,k=this.editorCanvas.clientWidth/z>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*z:this.editorCanvas.clientWidth,j=k<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/z;this.resize(k,j)},re.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},re.prototype.resize=function(z,k){this._isResizing=!0;var j=z/this.imageWidth,Q=k/this.imageHeight;this.imageWidth=Math.round(z),this.imageHeight=Math.round(k),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(j,Q),this._isResizing=!1},re.prototype.scaleMarkers=function(z,k){var j,Q=this;this._currentMarker&&this._currentMarker instanceof at?this._currentMarker.scale(z,k):(j=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(T){T!==Q._currentMarker&&T.scale(z,k)}),j!==void 0&&this.setCurrentMarker(j)},re.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},re.prototype.setTopLeft=function(){var z=this.editingTarget.getBoundingClientRect(),k=this.editorCanvas.getBoundingClientRect();this.left=z.left-k.left,this.top=z.top-k.top},re.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},re.prototype.addDefs=function(){for(var z,k=[],j=0;j<arguments.length;j++)k[j]=arguments[j];this.defs=F.createDefs(),this.addDefsToImage(),(z=this.defs).append.apply(z,k)},re.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},re.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},re.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},re.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},re.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},re.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},re.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},re.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var z=document.createElement("a");z.href="https://markerjs.com/",z.target="_blank",z.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',z.title="Powered by marker.js",z.style.display="grid",z.style.alignItems="center",z.style.justifyItems="center",z.style.padding="3px",z.style.width="20px",z.style.height="20px",this.logoUI.appendChild(z),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},re.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},re.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},re.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},re.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var z=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=z+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new Xe(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new Oe(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},re.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},re.prototype.removeMarker=function(z){this.markerImage.removeChild(z.container),this.markers.indexOf(z)>-1&&this.markers.splice(this.markers.indexOf(z),1),z.dispose()},re.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},re.prototype.toolbarButtonClicked=function(z,k){if(z==="marker"&&k!==void 0)this.createNewMarker(k);else if(z==="action")switch(k){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},re.prototype.deleteSelectedMarker=function(){var z=this;if(this._currentMarker!==void 0){var k=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Q){var T=new Jn(z,z._currentMarker,!0);Q(T),T.defaultPrevented&&(k=!0)}),!k){var j=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(Q){return Q(new Jn(z,j))})}}},re.prototype.clear=function(){var z=this,k=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(_e){var It=new Jn(z,void 0,!0);_e(It),It.defaultPrevented&&(k=!0)}),!k)){this.setCurrentMarker();for(var j=function(_e){var It=Q.markers[_e];Q.setCurrentMarker(Q.markers[_e]),Q._currentMarker.dispose(),Q.markerImage.removeChild(Q._currentMarker.container),Q.markers.splice(Q.markers.indexOf(Q._currentMarker),1),Q.eventListeners.markerdelete.forEach(function($e){return $e(new Jn(z,It))})},Q=this,T=this.markers.length-1;T>=0;T--)j(T);this.addUndoStep()}},Object.defineProperty(re.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),re.prototype.showNotesEditor=function(){var z;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(z=this._currentMarker.notes)!==null&&z!==void 0?z:"",this.overlayContainer.appendChild(this.notesArea))},re.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},re.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},re.prototype.addUndoStep=function(){var z=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var k=this.getState(),j=this.undoRedoManager.getLastUndoStep();if(!j||j.width===k.width&&j.height===k.height){var Q=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(k),Q<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(T){return T(new On(z))})}else this.undoRedoManager.replaceLastUndoStep(k),this.eventListeners.statechange.forEach(function(T){return T(new On(z))})}},re.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},re.prototype.undoStep=function(){var z=this,k=this.undoRedoManager.undo();k!==void 0&&(this.restoreState(k),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(j){return j(new On(z))}))},re.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},re.prototype.redoStep=function(){var z=this,k=this.undoRedoManager.redo();k!==void 0&&(this.restoreState(k),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(j){return j(new On(z))}))},re.prototype.stepZoom=function(){var z=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=z<this.zoomSteps.length-1?this.zoomSteps[z+1]:this.zoomSteps[0]},re.prototype.panTo=function(z){this.contentDiv.scrollBy({left:this.prevPanPoint.x-z.x,top:this.prevPanPoint.y-z.y}),this.prevPanPoint=z},re.prototype.startRenderAndClose=function(){return O(this,void 0,void 0,function(){var z,k,j=this;return B(this,function(Q){switch(Q.label){case 0:return[4,this.render()];case 1:return z=Q.sent(),k=this.getState(),this.eventListeners.render.forEach(function(T){return T(new ni(j,z,k))}),this.close(!0),[2]}})})},re.prototype.getState=function(z){z===!0&&this.setCurrentMarker();var k={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(j){return k.markers.push(j.getState())}),k},re.prototype.restoreState=function(z){var k=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);z.markers.forEach(function(j){var Q=k._availableMarkerTypes.find(function(_e){return _e.typeName===j.typeName});if(Q!==void 0){var T=k.addNewMarker(Q);T.restoreState(j),k.markers.push(T)}}),z.width&&z.height&&(z.width!==this.imageWidth||z.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/z.width,this.imageHeight/z.height),this.eventListeners.restorestate.forEach(function(j){return j(new On(k))})},re.prototype.addNewMarker=function(z){var k=F.createGroup();return this.markerImage.appendChild(k),new z(k,this.overlayContainer,this.settings)},re.prototype.createNewMarker=function(z){var k,j=this;(k=typeof z=="string"?this._availableMarkerTypes.find(function(Q){return Q.typeName===z}):z)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(k),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(k.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(Q){return Q(new Jn(j,j._currentMarker))}))},re.prototype.markerCreated=function(z){var k=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(z),this.setCurrentMarker(z),z instanceof Ge&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Ge):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(j){return j(new Jn(k,k._currentMarker))})},re.prototype.colorChanged=function(z){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=z,this.settings.defaultStrokeColor=z)},re.prototype.fillColorChanged=function(z){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=z)},re.prototype.markerStateChanged=function(z){var k=this;this.eventListeners.markerchange.forEach(function(j){return j(new Jn(k,z))})},re.prototype.setCurrentMarker=function(z){var k=this;this._currentMarker!==z&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(j){return j(new Jn(k,k._currentMarker))})),this._currentMarker=z,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(j){return j(new Jn(k,k._currentMarker))}))},re.prototype.onPointerDown=function(z){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||z.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var k=this.markers.find(function(j){return j.ownsTarget(z.target)});k!==void 0?(this.setCurrentMarker(k),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(z.clientX,z.clientY),z.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:z.clientX,y:z.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(z.clientX,z.clientY))},re.prototype.onDblClick=function(z){if(this._isFocused||this.focus(),this.mode==="select"){var k=this.markers.find(function(j){return j.ownsTarget(z.target)});k!==void 0&&k!==this._currentMarker&&this.setCurrentMarker(k),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(z.clientX,z.clientY),z.target):this.setCurrentMarker()}},re.prototype.onPointerMove=function(z){this.touchPoints!==1&&z.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||z.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(z.clientX,z.clientY)):this.zoomLevel>1&&this.panTo({x:z.clientX,y:z.clientY}))},re.prototype.onPointerUp=function(z){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(z.clientX,z.clientY)),this.isDragging=!1,this.addUndoStep()},re.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},re.prototype.onKeyUp=function(z){this._currentMarker===void 0||this.notesArea!==void 0||z.key!=="Delete"&&z.key!=="Backspace"||this.deleteSelectedMarker()},re.prototype.clientToLocalCoordinates=function(z,k){var j=this.markerImage.getBoundingClientRect();return{x:(z-j.left)/this.zoomLevel,y:(k-j.top)/this.zoomLevel}},re.prototype.onWindowResize=function(){this.positionUI()},re.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var z=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=z+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},re.prototype.addLicenseKey=function(z){M.addKey(z)},re.prototype.addEventListener=function(z,k){this.eventListeners.addEventListener(z,k)},re.prototype.removeEventListener=function(z,k){this.eventListeners.removeEventListener(z,k)},re.prototype.renderState=function(z){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(z),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(re.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),re.prototype.focus=function(){var z=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(k){return k(new On(z))}))},re.prototype.blur=function(){var z=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(k){return k(new On(z))}))},re.instanceCounter=0,re}()},67842:function(X){"use strict";var C,h=59;X.exports=v;function v(I){var O="&"+I+";",B;return C=C||document.createElement("i"),C.innerHTML=O,B=C.textContent,B.charCodeAt(B.length-1)===h&&I!=="semi"||B===O?!1:B}},12256:function(X,C,h){"use strict";var v=h(47854),I=h(80501),O=h(22347),B=h(65207),G=h(21127),F=h(67842);X.exports=Cn;var M={}.hasOwnProperty,de=String.fromCharCode,ae=Function.prototype,te={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},Ne=9,Ee=10,Xe=12,Oe=32,Ce=38,Ie=59,Re=60,fe=61,me=35,ye=88,pe=120,ke=65533,ee="named",Te="hexadecimal",Me="decimal",Le={};Le[Te]=16,Le[Me]=10;var Je={};Je[ee]=G,Je[Me]=O,Je[Te]=B;var Ye=1,ne=2,at=3,Ge=4,Pt=5,gt=6,kt=7,Ct={};Ct[Ye]="Named character references must be terminated by a semicolon",Ct[ne]="Numeric character references must be terminated by a semicolon",Ct[at]="Named character references cannot be empty",Ct[Ge]="Numeric character references cannot be empty",Ct[Pt]="Named character references must be known",Ct[gt]="Numeric character references cannot be disallowed",Ct[kt]="Numeric character references cannot be outside the permissible Unicode range";function Cn(Ht,Vt){var St={},sn,Ft;Vt||(Vt={});for(Ft in te)sn=Vt[Ft],St[Ft]=sn==null?te[Ft]:sn;return(St.position.indent||St.position.start)&&(St.indent=St.position.indent||[],St.position=St.position.start),Qe(Ht,St)}function Qe(Ht,Vt){var St=Vt.additional,sn=Vt.nonTerminated,Ft=Vt.text,oi=Vt.reference,On=Vt.warning,ni=Vt.textContext,Jn=Vt.referenceContext,Mn=Vt.warningContext,In=Vt.position,re=Vt.indent||[],z=Ht.length,k=0,j=-1,Q=In.column||1,T=In.line||1,_e="",It=[],$e,Pe,vt,ut,tt,Et,pn,nn,Kt,hn,an,et,zt,dn,rn,ze,Un,yn,Bt;for(typeof St=="string"&&(St=St.charCodeAt(0)),ze=Si(),nn=On?_i:ae,k--,z++;++k<z;)if(tt===Ee&&(Q=re[j]||1),tt=Ht.charCodeAt(k),tt===Ce){if(pn=Ht.charCodeAt(k+1),pn===Ne||pn===Ee||pn===Xe||pn===Oe||pn===Ce||pn===Re||pn!==pn||St&&pn===St){_e+=de(tt),Q++;continue}for(zt=k+1,et=zt,Bt=zt,pn===me?(Bt=++et,pn=Ht.charCodeAt(Bt),pn===ye||pn===pe?(dn=Te,Bt=++et):dn=Me):dn=ee,$e="",an="",ut="",rn=Je[dn],Bt--;++Bt<z&&(pn=Ht.charCodeAt(Bt),!!rn(pn));)ut+=de(pn),dn===ee&&M.call(v,ut)&&($e=ut,an=v[ut]);vt=Ht.charCodeAt(Bt)===Ie,vt&&(Bt++,Pe=dn===ee?F(ut):!1,Pe&&($e=ut,an=Pe)),yn=1+Bt-zt,!vt&&!sn||(ut?dn===ee?(vt&&!an?nn(Pt,1):($e!==ut&&(Bt=et+$e.length,yn=1+Bt-et,vt=!1),vt||(Kt=$e?Ye:at,Vt.attribute?(pn=Ht.charCodeAt(Bt),pn===fe?(nn(Kt,yn),an=null):G(pn)?an=null:nn(Kt,yn)):nn(Kt,yn))),Et=an):(vt||nn(ne,yn),Et=parseInt(ut,Le[dn]),le(Et)?(nn(kt,yn),Et=de(ke)):Et in I?(nn(gt,yn),Et=I[Et]):(hn="",ce(Et)&&nn(gt,yn),Et>65535&&(Et-=65536,hn+=de(Et>>>10|55296),Et=56320|Et&1023),Et=hn+de(Et))):dn!==ee&&nn(Ge,yn)),Et?(Ii(),ze=Si(),k=Bt-1,Q+=Bt-zt+1,It.push(Et),Un=Si(),Un.offset++,oi&&oi.call(Jn,Et,{start:ze,end:Un},Ht.slice(zt-1,Bt)),ze=Un):(ut=Ht.slice(zt-1,Bt),_e+=ut,Q+=ut.length,k=Bt-1)}else tt===10&&(T++,j++,Q=0),tt===tt?(_e+=de(tt),Q++):Ii();return It.join("");function Si(){return{line:T,column:Q,offset:k+(In.offset||0)}}function _i(cn,fr){var Xi=Si();Xi.column+=fr,Xi.offset+=fr,On.call(Mn,Ct[cn],Xi,cn)}function Ii(){_e&&(It.push(_e),Ft&&Ft.call(ni,_e,{start:ze,end:Si()}),_e="")}}function le(Ht){return Ht>=55296&&Ht<=57343||Ht>1114111}function ce(Ht){return Ht>=1&&Ht<=8||Ht===11||Ht>=13&&Ht<=31||Ht>=127&&Ht<=159||Ht>=64976&&Ht<=65007||(Ht&65535)===65535||(Ht&65535)===65534}},68398:function(X,C,h){var v=typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope?self:{};var I=function(O){var B=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,G=0,F={},M={manual:O.Prism&&O.Prism.manual,disableWorkerMessageHandler:O.Prism&&O.Prism.disableWorkerMessageHandler,util:{encode:function fe(me){return me instanceof de?new de(me.type,fe(me.content),me.alias):Array.isArray(me)?me.map(fe):me.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(fe){return Object.prototype.toString.call(fe).slice(8,-1)},objId:function(fe){return fe.__id||Object.defineProperty(fe,"__id",{value:++G}),fe.__id},clone:function fe(me,ye){ye=ye||{};var pe,ke;switch(M.util.type(me)){case"Object":if(ke=M.util.objId(me),ye[ke])return ye[ke];pe={},ye[ke]=pe;for(var ee in me)me.hasOwnProperty(ee)&&(pe[ee]=fe(me[ee],ye));return pe;case"Array":return ke=M.util.objId(me),ye[ke]?ye[ke]:(pe=[],ye[ke]=pe,me.forEach(function(Te,Me){pe[Me]=fe(Te,ye)}),pe);default:return me}},getLanguage:function(fe){for(;fe;){var me=B.exec(fe.className);if(me)return me[1].toLowerCase();fe=fe.parentElement}return"none"},setLanguage:function(fe,me){fe.className=fe.className.replace(RegExp(B,"gi"),""),fe.classList.add("language-"+me)},currentScript:function(){if(typeof document=="undefined")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(pe){var fe=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(pe.stack)||[])[1];if(fe){var me=document.getElementsByTagName("script");for(var ye in me)if(me[ye].src==fe)return me[ye]}return null}},isActive:function(fe,me,ye){for(var pe="no-"+me;fe;){var ke=fe.classList;if(ke.contains(me))return!0;if(ke.contains(pe))return!1;fe=fe.parentElement}return!!ye}},languages:{plain:F,plaintext:F,text:F,txt:F,extend:function(fe,me){var ye=M.util.clone(M.languages[fe]);for(var pe in me)ye[pe]=me[pe];return ye},insertBefore:function(fe,me,ye,pe){pe=pe||M.languages;var ke=pe[fe],ee={};for(var Te in ke)if(ke.hasOwnProperty(Te)){if(Te==me)for(var Me in ye)ye.hasOwnProperty(Me)&&(ee[Me]=ye[Me]);ye.hasOwnProperty(Te)||(ee[Te]=ke[Te])}var Le=pe[fe];return pe[fe]=ee,M.languages.DFS(M.languages,function(Je,Ye){Ye===Le&&Je!=fe&&(this[Je]=ee)}),ee},DFS:function fe(me,ye,pe,ke){ke=ke||{};var ee=M.util.objId;for(var Te in me)if(me.hasOwnProperty(Te)){ye.call(me,Te,me[Te],pe||Te);var Me=me[Te],Le=M.util.type(Me);Le==="Object"&&!ke[ee(Me)]?(ke[ee(Me)]=!0,fe(Me,ye,null,ke)):Le==="Array"&&!ke[ee(Me)]&&(ke[ee(Me)]=!0,fe(Me,ye,Te,ke))}}},plugins:{},highlightAll:function(fe,me){M.highlightAllUnder(document,fe,me)},highlightAllUnder:function(fe,me,ye){var pe={callback:ye,container:fe,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};M.hooks.run("before-highlightall",pe),pe.elements=Array.prototype.slice.apply(pe.container.querySelectorAll(pe.selector)),M.hooks.run("before-all-elements-highlight",pe);for(var ke=0,ee;ee=pe.elements[ke++];)M.highlightElement(ee,me===!0,pe.callback)},highlightElement:function(fe,me,ye){var pe=M.util.getLanguage(fe),ke=M.languages[pe];M.util.setLanguage(fe,pe);var ee=fe.parentElement;ee&&ee.nodeName.toLowerCase()==="pre"&&M.util.setLanguage(ee,pe);var Te=fe.textContent,Me={element:fe,language:pe,grammar:ke,code:Te};function Le(Ye){Me.highlightedCode=Ye,M.hooks.run("before-insert",Me),Me.element.innerHTML=Me.highlightedCode,M.hooks.run("after-highlight",Me),M.hooks.run("complete",Me),ye&&ye.call(Me.element)}if(M.hooks.run("before-sanity-check",Me),ee=Me.element.parentElement,ee&&ee.nodeName.toLowerCase()==="pre"&&!ee.hasAttribute("tabindex")&&ee.setAttribute("tabindex","0"),!Me.code){M.hooks.run("complete",Me),ye&&ye.call(Me.element);return}if(M.hooks.run("before-highlight",Me),!Me.grammar){Le(M.util.encode(Me.code));return}if(me&&O.Worker){var Je=new Worker(M.filename);Je.onmessage=function(Ye){Le(Ye.data)},Je.postMessage(JSON.stringify({language:Me.language,code:Me.code,immediateClose:!0}))}else Le(M.highlight(Me.code,Me.grammar,Me.language))},highlight:function(fe,me,ye){var pe={code:fe,grammar:me,language:ye};if(M.hooks.run("before-tokenize",pe),!pe.grammar)throw new Error('The language "'+pe.language+'" has no grammar.');return pe.tokens=M.tokenize(pe.code,pe.grammar),M.hooks.run("after-tokenize",pe),de.stringify(M.util.encode(pe.tokens),pe.language)},tokenize:function(fe,me){var ye=me.rest;if(ye){for(var pe in ye)me[pe]=ye[pe];delete me.rest}var ke=new Ne;return Ee(ke,ke.head,fe),te(fe,ke,me,ke.head,0),Oe(ke)},hooks:{all:{},add:function(fe,me){var ye=M.hooks.all;ye[fe]=ye[fe]||[],ye[fe].push(me)},run:function(fe,me){var ye=M.hooks.all[fe];if(!(!ye||!ye.length))for(var pe=0,ke;ke=ye[pe++];)ke(me)}},Token:de};O.Prism=M;function de(fe,me,ye,pe){this.type=fe,this.content=me,this.alias=ye,this.length=(pe||"").length|0}de.stringify=function fe(me,ye){if(typeof me=="string")return me;if(Array.isArray(me)){var pe="";return me.forEach(function(Le){pe+=fe(Le,ye)}),pe}var ke={type:me.type,content:fe(me.content,ye),tag:"span",classes:["token",me.type],attributes:{},language:ye},ee=me.alias;ee&&(Array.isArray(ee)?Array.prototype.push.apply(ke.classes,ee):ke.classes.push(ee)),M.hooks.run("wrap",ke);var Te="";for(var Me in ke.attributes)Te+=" "+Me+'="'+(ke.attributes[Me]||"").replace(/"/g,"&quot;")+'"';return"<"+ke.tag+' class="'+ke.classes.join(" ")+'"'+Te+">"+ke.content+"</"+ke.tag+">"};function ae(fe,me,ye,pe){fe.lastIndex=me;var ke=fe.exec(ye);if(ke&&pe&&ke[1]){var ee=ke[1].length;ke.index+=ee,ke[0]=ke[0].slice(ee)}return ke}function te(fe,me,ye,pe,ke,ee){for(var Te in ye)if(!(!ye.hasOwnProperty(Te)||!ye[Te])){var Me=ye[Te];Me=Array.isArray(Me)?Me:[Me];for(var Le=0;Le<Me.length;++Le){if(ee&&ee.cause==Te+","+Le)return;var Je=Me[Le],Ye=Je.inside,ne=!!Je.lookbehind,at=!!Je.greedy,Ge=Je.alias;if(at&&!Je.pattern.global){var Pt=Je.pattern.toString().match(/[imsuy]*$/)[0];Je.pattern=RegExp(Je.pattern.source,Pt+"g")}for(var gt=Je.pattern||Je,kt=pe.next,Ct=ke;kt!==me.tail&&!(ee&&Ct>=ee.reach);Ct+=kt.value.length,kt=kt.next){var Cn=kt.value;if(me.length>fe.length)return;if(!(Cn instanceof de)){var Qe=1,le;if(at){if(le=ae(gt,Ct,fe,ne),!le||le.index>=fe.length)break;var St=le.index,ce=le.index+le[0].length,Ht=Ct;for(Ht+=kt.value.length;St>=Ht;)kt=kt.next,Ht+=kt.value.length;if(Ht-=kt.value.length,Ct=Ht,kt.value instanceof de)continue;for(var Vt=kt;Vt!==me.tail&&(Ht<ce||typeof Vt.value=="string");Vt=Vt.next)Qe++,Ht+=Vt.value.length;Qe--,Cn=fe.slice(Ct,Ht),le.index-=Ct}else if(le=ae(gt,0,Cn,ne),!le)continue;var St=le.index,sn=le[0],Ft=Cn.slice(0,St),oi=Cn.slice(St+sn.length),On=Ct+Cn.length;ee&&On>ee.reach&&(ee.reach=On);var ni=kt.prev;Ft&&(ni=Ee(me,ni,Ft),Ct+=Ft.length),Xe(me,ni,Qe);var Jn=new de(Te,Ye?M.tokenize(sn,Ye):sn,Ge,sn);if(kt=Ee(me,ni,Jn),oi&&Ee(me,kt,oi),Qe>1){var Mn={cause:Te+","+Le,reach:On};te(fe,me,ye,kt.prev,Ct,Mn),ee&&Mn.reach>ee.reach&&(ee.reach=Mn.reach)}}}}}}function Ne(){var fe={value:null,prev:null,next:null},me={value:null,prev:fe,next:null};fe.next=me,this.head=fe,this.tail=me,this.length=0}function Ee(fe,me,ye){var pe=me.next,ke={value:ye,prev:me,next:pe};return me.next=ke,pe.prev=ke,fe.length++,ke}function Xe(fe,me,ye){for(var pe=me.next,ke=0;ke<ye&&pe!==fe.tail;ke++)pe=pe.next;me.next=pe,pe.prev=me,fe.length-=ke}function Oe(fe){for(var me=[],ye=fe.head.next;ye!==fe.tail;)me.push(ye.value),ye=ye.next;return me}if(!O.document)return O.addEventListener&&(M.disableWorkerMessageHandler||O.addEventListener("message",function(fe){var me=JSON.parse(fe.data),ye=me.language,pe=me.code,ke=me.immediateClose;O.postMessage(M.highlight(pe,M.languages[ye],ye)),ke&&O.close()},!1)),M;var Ce=M.util.currentScript();Ce&&(M.filename=Ce.src,Ce.hasAttribute("data-manual")&&(M.manual=!0));function Ie(){M.manual||M.highlightAll()}if(!M.manual){var Re=document.readyState;Re==="loading"||Re==="interactive"&&Ce&&Ce.defer?document.addEventListener("DOMContentLoaded",Ie):window.requestAnimationFrame?window.requestAnimationFrame(Ie):window.setTimeout(Ie,16)}return M}(v);X.exports&&(X.exports=I),typeof h.g!="undefined"&&(h.g.Prism=I)},88914:function(X,C,h){"use strict";var v=h(47178),I=h(19095),O=h(1969),B="data";X.exports=de;var G=/^data[-\w.:]+$/i,F=/-[a-z]/g,M=/[A-Z]/g;function de(Xe,Oe){var Ce=v(Oe),Ie=Oe,Re=O;return Ce in Xe.normal?Xe.property[Xe.normal[Ce]]:(Ce.length>4&&Ce.slice(0,4)===B&&G.test(Oe)&&(Oe.charAt(4)==="-"?Ie=ae(Oe):Oe=te(Oe),Re=I),new Re(Ie,Oe))}function ae(Xe){var Oe=Xe.slice(5).replace(F,Ee);return B+Oe.charAt(0).toUpperCase()+Oe.slice(1)}function te(Xe){var Oe=Xe.slice(4);return F.test(Oe)?Xe:(Oe=Oe.replace(M,Ne),Oe.charAt(0)!=="-"&&(Oe="-"+Oe),B+Oe)}function Ne(Xe){return"-"+Xe.toLowerCase()}function Ee(Xe){return Xe.charAt(1).toUpperCase()}},18795:function(X,C,h){"use strict";var v=h(83576),I=h(8179),O=h(59780),B=h(68244),G=h(20019),F=h(38567);X.exports=v([O,I,B,G,F])},20019:function(X,C,h){"use strict";var v=h(70167),I=h(79318),O=v.booleanish,B=v.number,G=v.spaceSeparated;X.exports=I({transform:F,properties:{ariaActiveDescendant:null,ariaAtomic:O,ariaAutoComplete:null,ariaBusy:O,ariaChecked:O,ariaColCount:B,ariaColIndex:B,ariaColSpan:B,ariaControls:G,ariaCurrent:null,ariaDescribedBy:G,ariaDetails:null,ariaDisabled:O,ariaDropEffect:G,ariaErrorMessage:null,ariaExpanded:O,ariaFlowTo:G,ariaGrabbed:O,ariaHasPopup:null,ariaHidden:O,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:G,ariaLevel:B,ariaLive:null,ariaModal:O,ariaMultiLine:O,ariaMultiSelectable:O,ariaOrientation:null,ariaOwns:G,ariaPlaceholder:null,ariaPosInSet:B,ariaPressed:O,ariaReadOnly:O,ariaRelevant:null,ariaRequired:O,ariaRoleDescription:G,ariaRowCount:B,ariaRowIndex:B,ariaRowSpan:B,ariaSelected:O,ariaSetSize:B,ariaSort:null,ariaValueMax:B,ariaValueMin:B,ariaValueNow:B,ariaValueText:null,role:null}});function F(M,de){return de==="role"?de:"aria-"+de.slice(4).toLowerCase()}},38567:function(X,C,h){"use strict";var v=h(70167),I=h(79318),O=h(85804),B=v.boolean,G=v.overloadedBoolean,F=v.booleanish,M=v.number,de=v.spaceSeparated,ae=v.commaSeparated;X.exports=I({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:O,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ae,acceptCharset:de,accessKey:de,action:null,allow:null,allowFullScreen:B,allowPaymentRequest:B,allowUserMedia:B,alt:null,as:null,async:B,autoCapitalize:null,autoComplete:de,autoFocus:B,autoPlay:B,capture:B,charSet:null,checked:B,cite:null,className:de,cols:M,colSpan:null,content:null,contentEditable:F,controls:B,controlsList:de,coords:M|ae,crossOrigin:null,data:null,dateTime:null,decoding:null,default:B,defer:B,dir:null,dirName:null,disabled:B,download:G,draggable:F,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:B,formTarget:null,headers:de,height:M,hidden:B,high:M,href:null,hrefLang:null,htmlFor:de,httpEquiv:de,id:null,imageSizes:null,imageSrcSet:ae,inputMode:null,integrity:null,is:null,isMap:B,itemId:null,itemProp:de,itemRef:de,itemScope:B,itemType:de,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:B,low:M,manifest:null,max:null,maxLength:M,media:null,method:null,min:null,minLength:M,multiple:B,muted:B,name:null,nonce:null,noModule:B,noValidate:B,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:B,optimum:M,pattern:null,ping:de,placeholder:null,playsInline:B,poster:null,preload:null,readOnly:B,referrerPolicy:null,rel:de,required:B,reversed:B,rows:M,rowSpan:M,sandbox:de,scope:null,scoped:B,seamless:B,selected:B,shape:null,size:M,sizes:null,slot:null,span:M,spellCheck:F,src:null,srcDoc:null,srcLang:null,srcSet:ae,start:M,step:null,style:null,tabIndex:M,target:null,title:null,translate:null,type:null,typeMustMatch:B,useMap:null,value:F,width:M,wrap:null,align:null,aLink:null,archive:de,axis:null,background:null,bgColor:null,border:M,borderColor:null,bottomMargin:M,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:B,declare:B,event:null,face:null,frame:null,frameBorder:null,hSpace:M,leftMargin:M,link:null,longDesc:null,lowSrc:null,marginHeight:M,marginWidth:M,noResize:B,noHref:B,noShade:B,noWrap:B,object:null,profile:null,prompt:null,rev:null,rightMargin:M,rules:null,scheme:null,scrolling:F,standby:null,summary:null,text:null,topMargin:M,valueType:null,version:null,vAlign:null,vLink:null,vSpace:M,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:B,disableRemotePlayback:B,prefix:null,property:null,results:M,security:null,unselectable:null}})},85804:function(X,C,h){"use strict";var v=h(56432);X.exports=I;function I(O,B){return v(O,B.toLowerCase())}},56432:function(X){"use strict";X.exports=C;function C(h,v){return v in h?h[v]:v}},79318:function(X,C,h){"use strict";var v=h(47178),I=h(44347),O=h(19095);X.exports=B;function B(G){var F=G.space,M=G.mustUseProperty||[],de=G.attributes||{},ae=G.properties,te=G.transform,Ne={},Ee={},Xe,Oe;for(Xe in ae)Oe=new O(Xe,te(de,Xe),ae[Xe],F),M.indexOf(Xe)!==-1&&(Oe.mustUseProperty=!0),Ne[Xe]=Oe,Ee[v(Xe)]=Xe,Ee[v(Oe.attribute)]=Xe;return new I(Ne,Ee,F)}},19095:function(X,C,h){"use strict";var v=h(1969),I=h(70167);X.exports=G,G.prototype=new v,G.prototype.defined=!0;var O=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],B=O.length;function G(M,de,ae,te){var Ne=-1,Ee;for(F(this,"space",te),v.call(this,M,de);++Ne<B;)Ee=O[Ne],F(this,Ee,(ae&I[Ee])===I[Ee])}function F(M,de,ae){ae&&(M[de]=ae)}},1969:function(X){"use strict";X.exports=h;var C=h.prototype;C.space=null,C.attribute=null,C.property=null,C.boolean=!1,C.booleanish=!1,C.overloadedBoolean=!1,C.number=!1,C.commaSeparated=!1,C.spaceSeparated=!1,C.commaOrSpaceSeparated=!1,C.mustUseProperty=!1,C.defined=!1;function h(v,I){this.property=v,this.attribute=I}},83576:function(X,C,h){"use strict";var v=h(97270),I=h(44347);X.exports=O;function O(B){for(var G=B.length,F=[],M=[],de=-1,ae,te;++de<G;)ae=B[de],F.push(ae.property),M.push(ae.normal),te=ae.space;return new I(v.apply(null,F),v.apply(null,M),te)}},44347:function(X){"use strict";X.exports=h;var C=h.prototype;C.space=null,C.normal={},C.property={};function h(v,I,O){this.property=v,this.normal=I,O&&(this.space=O)}},70167:function(X,C){"use strict";var h=0;C.boolean=v(),C.booleanish=v(),C.overloadedBoolean=v(),C.number=v(),C.spaceSeparated=v(),C.commaSeparated=v(),C.commaOrSpaceSeparated=v();function v(){return Math.pow(2,++h)}},8179:function(X,C,h){"use strict";var v=h(79318);X.exports=v({space:"xlink",transform:I,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function I(O,B){return"xlink:"+B.slice(5).toLowerCase()}},59780:function(X,C,h){"use strict";var v=h(79318);X.exports=v({space:"xml",transform:I,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function I(O,B){return"xml:"+B.slice(3).toLowerCase()}},68244:function(X,C,h){"use strict";var v=h(79318),I=h(85804);X.exports=v({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:I,properties:{xmlns:null,xmlnsXLink:null}})},47178:function(X){"use strict";X.exports=C;function C(h){return h.toLowerCase()}},17115:function(X,C,h){"use strict";h.d(C,{ZP:function(){return M}});var v=h(72071),I=h(59301),O=h(47273),B=0,G=(0,O.Z)();function F(){var de;return G?(de=B,B+=1):de="TEST_OR_SSR",de}function M(de){var ae=I.useState(),te=(0,v.Z)(ae,2),Ne=te[0],Ee=te[1];return I.useEffect(function(){Ee("rc_select_".concat(F()))},[]),de||Ne}},77861:function(X,C,h){"use strict";h.d(C,{Ac:function(){return Et},Xo:function(){return Bt},Wx:function(){return _i},ZP:function(){return Vn},lk:function(){return pe}});var v=h(96663),I=h(19127),O=h(90493),B=h(44127),G=h(72071),F=h(6620),M=h(20135),de=h(18929),ae=h(48736),te=h(59301),Ne=h(92310),Ee=h.n(Ne),Xe=h(34280),Oe=h(49658),Ce=h(10228),Ie=h(8654),Re=function(Ke){var vn=Ke.className,Fn=Ke.customizeIcon,on=Ke.customizeIconProps,Nt=Ke.onMouseDown,Ve=Ke.onClick,Ut=Ke.children,Lt;return typeof Fn=="function"?Lt=Fn(on):Lt=Fn,te.createElement("span",{className:vn,onMouseDown:function(ot){ot.preventDefault(),Nt&&Nt(ot)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Ve,"aria-hidden":!0},Lt!==void 0?Lt:te.createElement("span",{className:Ee()(vn.split(/\s+/).map(function(Wn){return"".concat(Wn,"-icon")}))},Ut))},fe=Re;function me(pt,Ke,vn,Fn,on){var Nt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Ve=arguments.length>6?arguments[6]:void 0,Ut=arguments.length>7?arguments[7]:void 0,Lt=te.useMemo(function(){if((0,M.Z)(Fn)==="object")return Fn.clearIcon;if(on)return on},[Fn,on]),Wn=te.useMemo(function(){return!!(!Nt&&Fn&&(vn.length||Ve)&&!(Ut==="combobox"&&Ve===""))},[Fn,Nt,vn.length,Ve,Ut]);return{allowClear:Wn,clearIcon:te.createElement(fe,{className:"".concat(pt,"-clear"),onMouseDown:Ke,customizeIcon:Lt},"\xD7")}}var ye=te.createContext(null);function pe(){return te.useContext(ye)}function ke(){var pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Ke=te.useState(!1),vn=(0,G.Z)(Ke,2),Fn=vn[0],on=vn[1],Nt=te.useRef(null),Ve=function(){window.clearTimeout(Nt.current)};te.useEffect(function(){return Ve},[]);var Ut=function(Wn,ot){Ve(),Nt.current=window.setTimeout(function(){on(Wn),ot&&ot()},pt)};return[Fn,Ut,Ve]}function ee(){var pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Ke=te.useRef(null),vn=te.useRef(null);te.useEffect(function(){return function(){window.clearTimeout(vn.current)}},[]);function Fn(on){(on||Ke.current===null)&&(Ke.current=on),window.clearTimeout(vn.current),vn.current=window.setTimeout(function(){Ke.current=null},pt)}return[function(){return Ke.current},Fn]}function Te(pt,Ke,vn,Fn){var on=te.useRef(null);on.current={open:Ke,triggerOpen:vn,customizedTrigger:Fn},te.useEffect(function(){function Nt(Ve){var Ut;if(!((Ut=on.current)!==null&&Ut!==void 0&&Ut.customizedTrigger)){var Lt=Ve.target;Lt.shadowRoot&&Ve.composed&&(Lt=Ve.composedPath()[0]||Lt),on.current.open&&pt().filter(function(Wn){return Wn}).every(function(Wn){return!Wn.contains(Lt)&&Wn!==Lt})&&on.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Nt),function(){return window.removeEventListener("mousedown",Nt)}},[])}var Me=h(26112),Le=h(11780),Je=function(Ke,vn){var Fn,on,Nt=Ke.prefixCls,Ve=Ke.id,Ut=Ke.inputElement,Lt=Ke.disabled,Wn=Ke.tabIndex,ot=Ke.autoFocus,fn=Ke.autoComplete,yt=Ke.editable,je=Ke.activeDescendantId,L=Ke.value,Rt=Ke.maxLength,Jt=Ke.onKeyDown,mt=Ke.onMouseDown,xn=Ke.onChange,An=Ke.onPaste,li=Ke.onCompositionStart,Nn=Ke.onCompositionEnd,lt=Ke.open,Mi=Ke.attrs,Yi=Ut||te.createElement("input",null),Yt=Yi,zi=Yt.ref,q=Yt.props,oe=q.onKeyDown,Hn=q.onChange,Be=q.onMouseDown,Tt=q.onCompositionStart,fi=q.onCompositionEnd,Ln=q.style;return(0,ae.Kp)(!("maxLength"in Yi.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Yi=te.cloneElement(Yi,(0,B.Z)((0,B.Z)((0,B.Z)({type:"search"},q),{},{id:Ve,ref:(0,Ie.sQ)(vn,zi),disabled:Lt,tabIndex:Wn,autoComplete:fn||"off",autoFocus:ot,className:Ee()("".concat(Nt,"-selection-search-input"),(Fn=Yi)===null||Fn===void 0||(on=Fn.props)===null||on===void 0?void 0:on.className),role:"combobox","aria-label":"Search","aria-expanded":lt||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Ve,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Ve,"_list"),"aria-activedescendant":lt?je:void 0},Mi),{},{value:yt?L:"",maxLength:Rt,readOnly:!yt,unselectable:yt?null:"on",style:(0,B.Z)((0,B.Z)({},Ln),{},{opacity:yt?null:0}),onKeyDown:function(qt){Jt(qt),oe&&oe(qt)},onMouseDown:function(qt){mt(qt),Be&&Be(qt)},onChange:function(qt){xn(qt),Hn&&Hn(qt)},onCompositionStart:function(qt){li(qt),Tt&&Tt(qt)},onCompositionEnd:function(qt){Nn(qt),fi&&fi(qt)},onPaste:An})),Yi},Ye=te.forwardRef(Je);Ye.displayName="Input";var ne=Ye;function at(pt){return Array.isArray(pt)?pt:pt!==void 0?[pt]:[]}var Ge=typeof window!="undefined"&&window.document&&window.document.documentElement,Pt=Ge;function gt(pt){return pt!=null}function kt(pt){return!pt&&pt!==0}function Ct(pt){return["string","number"].includes((0,M.Z)(pt))}function Cn(pt){var Ke=void 0;return pt&&(Ct(pt.title)?Ke=pt.title.toString():Ct(pt.label)&&(Ke=pt.label.toString())),Ke}function Qe(pt,Ke){Pt?te.useLayoutEffect(pt,Ke):te.useEffect(pt,Ke)}function le(pt){var Ke;return(Ke=pt.key)!==null&&Ke!==void 0?Ke:pt.value}var ce=function(Ke){Ke.preventDefault(),Ke.stopPropagation()},Ht=function(Ke){var vn=Ke.id,Fn=Ke.prefixCls,on=Ke.values,Nt=Ke.open,Ve=Ke.searchValue,Ut=Ke.autoClearSearchValue,Lt=Ke.inputRef,Wn=Ke.placeholder,ot=Ke.disabled,fn=Ke.mode,yt=Ke.showSearch,je=Ke.autoFocus,L=Ke.autoComplete,Rt=Ke.activeDescendantId,Jt=Ke.tabIndex,mt=Ke.removeIcon,xn=Ke.maxTagCount,An=Ke.maxTagTextLength,li=Ke.maxTagPlaceholder,Nn=li===void 0?function(gr){return"+ ".concat(gr.length," ...")}:li,lt=Ke.tagRender,Mi=Ke.onToggleOpen,Yi=Ke.onRemove,Yt=Ke.onInputChange,zi=Ke.onInputPaste,q=Ke.onInputKeyDown,oe=Ke.onInputMouseDown,Hn=Ke.onInputCompositionStart,Be=Ke.onInputCompositionEnd,Tt=te.useRef(null),fi=(0,te.useState)(0),Ln=(0,G.Z)(fi,2),Fi=Ln[0],qt=Ln[1],xi=(0,te.useState)(!1),Xt=(0,G.Z)(xi,2),Li=Xt[0],Yr=Xt[1],Mt="".concat(Fn,"-selection"),Qr=Nt||fn==="multiple"&&Ut===!1||fn==="tags"?Ve:"",tn=fn==="tags"||fn==="multiple"&&Ut===!1||yt&&(Nt||Li);Qe(function(){qt(Tt.current.scrollWidth)},[Qr]);function Oi(gr,br,cr,Br,Zi){return te.createElement("span",{className:Ee()("".concat(Mt,"-item"),(0,O.Z)({},"".concat(Mt,"-item-disabled"),cr)),title:Cn(gr)},te.createElement("span",{className:"".concat(Mt,"-item-content")},br),Br&&te.createElement(fe,{className:"".concat(Mt,"-item-remove"),onMouseDown:ce,onClick:Zi,customizeIcon:mt},"\xD7"))}function Ei(gr,br,cr,Br,Zi){var Ri=function(hr){ce(hr),Mi(!Nt)};return te.createElement("span",{onMouseDown:Ri},lt({label:br,value:gr,disabled:cr,closable:Br,onClose:Zi}))}function or(gr){var br=gr.disabled,cr=gr.label,Br=gr.value,Zi=!ot&&!br,Ri=cr;if(typeof An=="number"&&(typeof cr=="string"||typeof cr=="number")){var Ai=String(Ri);Ai.length>An&&(Ri="".concat(Ai.slice(0,An),"..."))}var hr=function(Lr){Lr&&Lr.stopPropagation(),Yi(gr)};return typeof lt=="function"?Ei(Br,Ri,br,Zi,hr):Oi(gr,Ri,br,Zi,hr)}function tr(gr){var br=typeof Nn=="function"?Nn(gr):Nn;return Oi({title:br},br,!1)}var Zn=te.createElement("div",{className:"".concat(Mt,"-search"),style:{width:Fi},onFocus:function(){Yr(!0)},onBlur:function(){Yr(!1)}},te.createElement(ne,{ref:Lt,open:Nt,prefixCls:Fn,id:vn,inputElement:null,disabled:ot,autoFocus:je,autoComplete:L,editable:tn,activeDescendantId:Rt,value:Qr,onKeyDown:q,onMouseDown:oe,onChange:Yt,onPaste:zi,onCompositionStart:Hn,onCompositionEnd:Be,tabIndex:Jt,attrs:(0,Me.Z)(Ke,!0)}),te.createElement("span",{ref:Tt,className:"".concat(Mt,"-search-mirror"),"aria-hidden":!0},Qr,"\xA0")),he=te.createElement(Le.Z,{prefixCls:"".concat(Mt,"-overflow"),data:on,renderItem:or,renderRest:tr,suffix:Zn,itemKey:le,maxCount:xn});return te.createElement(te.Fragment,null,he,!on.length&&!Qr&&te.createElement("span",{className:"".concat(Mt,"-placeholder")},Wn))},Vt=Ht,St=function(Ke){var vn=Ke.inputElement,Fn=Ke.prefixCls,on=Ke.id,Nt=Ke.inputRef,Ve=Ke.disabled,Ut=Ke.autoFocus,Lt=Ke.autoComplete,Wn=Ke.activeDescendantId,ot=Ke.mode,fn=Ke.open,yt=Ke.values,je=Ke.placeholder,L=Ke.tabIndex,Rt=Ke.showSearch,Jt=Ke.searchValue,mt=Ke.activeValue,xn=Ke.maxLength,An=Ke.onInputKeyDown,li=Ke.onInputMouseDown,Nn=Ke.onInputChange,lt=Ke.onInputPaste,Mi=Ke.onInputCompositionStart,Yi=Ke.onInputCompositionEnd,Yt=Ke.title,zi=te.useState(!1),q=(0,G.Z)(zi,2),oe=q[0],Hn=q[1],Be=ot==="combobox",Tt=Be||Rt,fi=yt[0],Ln=Jt||"";Be&&mt&&!oe&&(Ln=mt),te.useEffect(function(){Be&&Hn(!1)},[Be,mt]);var Fi=ot!=="combobox"&&!fn&&!Rt?!1:!!Ln,qt=Yt===void 0?Cn(fi):Yt,xi=function(){if(fi)return null;var Li=Fi?{visibility:"hidden"}:void 0;return te.createElement("span",{className:"".concat(Fn,"-selection-placeholder"),style:Li},je)};return te.createElement(te.Fragment,null,te.createElement("span",{className:"".concat(Fn,"-selection-search")},te.createElement(ne,{ref:Nt,prefixCls:Fn,id:on,open:fn,inputElement:vn,disabled:Ve,autoFocus:Ut,autoComplete:Lt,editable:Tt,activeDescendantId:Wn,value:Ln,onKeyDown:An,onMouseDown:li,onChange:function(Li){Hn(!0),Nn(Li)},onPaste:lt,onCompositionStart:Mi,onCompositionEnd:Yi,tabIndex:L,attrs:(0,Me.Z)(Ke,!0),maxLength:Be?xn:void 0})),!Be&&fi?te.createElement("span",{className:"".concat(Fn,"-selection-item"),title:qt,style:Fi?{visibility:"hidden"}:void 0},fi.label):null,xi())},sn=St;function Ft(pt){return![Ce.Z.ESC,Ce.Z.SHIFT,Ce.Z.BACKSPACE,Ce.Z.TAB,Ce.Z.WIN_KEY,Ce.Z.ALT,Ce.Z.META,Ce.Z.WIN_KEY_RIGHT,Ce.Z.CTRL,Ce.Z.SEMICOLON,Ce.Z.EQUALS,Ce.Z.CAPS_LOCK,Ce.Z.CONTEXT_MENU,Ce.Z.F1,Ce.Z.F2,Ce.Z.F3,Ce.Z.F4,Ce.Z.F5,Ce.Z.F6,Ce.Z.F7,Ce.Z.F8,Ce.Z.F9,Ce.Z.F10,Ce.Z.F11,Ce.Z.F12].includes(pt)}var oi=function(Ke,vn){var Fn=(0,te.useRef)(null),on=(0,te.useRef)(!1),Nt=Ke.prefixCls,Ve=Ke.open,Ut=Ke.mode,Lt=Ke.showSearch,Wn=Ke.tokenWithEnter,ot=Ke.autoClearSearchValue,fn=Ke.onSearch,yt=Ke.onSearchSubmit,je=Ke.onToggleOpen,L=Ke.onInputKeyDown,Rt=Ke.domRef;te.useImperativeHandle(vn,function(){return{focus:function(){Fn.current.focus()},blur:function(){Fn.current.blur()}}});var Jt=ee(0),mt=(0,G.Z)(Jt,2),xn=mt[0],An=mt[1],li=function(Ln){var Fi=Ln.which;(Fi===Ce.Z.UP||Fi===Ce.Z.DOWN)&&Ln.preventDefault(),L&&L(Ln),Fi===Ce.Z.ENTER&&Ut==="tags"&&!on.current&&!Ve&&(yt==null||yt(Ln.target.value)),Ft(Fi)&&je(!0)},Nn=function(){An(!0)},lt=(0,te.useRef)(null),Mi=function(Ln){fn(Ln,!0,on.current)!==!1&&je(!0)},Yi=function(){on.current=!0},Yt=function(Ln){on.current=!1,Ut!=="combobox"&&Mi(Ln.target.value)},zi=function(Ln){var Fi=Ln.target.value;if(Wn&&lt.current&&/[\r\n]/.test(lt.current)){var qt=lt.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Fi=Fi.replace(qt,lt.current)}lt.current=null,Mi(Fi)},q=function(Ln){var Fi=Ln.clipboardData,qt=Fi.getData("text");lt.current=qt},oe=function(Ln){var Fi=Ln.target;if(Fi!==Fn.current){var qt=document.body.style.msTouchAction!==void 0;qt?setTimeout(function(){Fn.current.focus()}):Fn.current.focus()}},Hn=function(Ln){var Fi=xn();Ln.target!==Fn.current&&!Fi&&Ut!=="combobox"&&Ln.preventDefault(),(Ut!=="combobox"&&(!Lt||!Fi)||!Ve)&&(Ve&&ot!==!1&&fn("",!0,!1),je())},Be={inputRef:Fn,onInputKeyDown:li,onInputMouseDown:Nn,onInputChange:zi,onInputPaste:q,onInputCompositionStart:Yi,onInputCompositionEnd:Yt},Tt=Ut==="multiple"||Ut==="tags"?te.createElement(Vt,(0,v.Z)({},Ke,Be)):te.createElement(sn,(0,v.Z)({},Ke,Be));return te.createElement("div",{ref:Rt,className:"".concat(Nt,"-selector"),onClick:oe,onMouseDown:Hn},Tt)},On=te.forwardRef(oi);On.displayName="Selector";var ni=On,Jn=h(35593),Mn=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],In=function(Ke){var vn=Ke===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:vn,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:vn,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:vn,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:vn,adjustY:1},htmlRegion:"scroll"}}},re=function(Ke,vn){var Fn=Ke.prefixCls,on=Ke.disabled,Nt=Ke.visible,Ve=Ke.children,Ut=Ke.popupElement,Lt=Ke.animation,Wn=Ke.transitionName,ot=Ke.dropdownStyle,fn=Ke.dropdownClassName,yt=Ke.direction,je=yt===void 0?"ltr":yt,L=Ke.placement,Rt=Ke.builtinPlacements,Jt=Ke.dropdownMatchSelectWidth,mt=Ke.dropdownRender,xn=Ke.dropdownAlign,An=Ke.getPopupContainer,li=Ke.empty,Nn=Ke.getTriggerDOMNode,lt=Ke.onPopupVisibleChange,Mi=Ke.onPopupMouseEnter,Yi=(0,F.Z)(Ke,Mn),Yt="".concat(Fn,"-dropdown"),zi=Ut;mt&&(zi=mt(Ut));var q=te.useMemo(function(){return Rt||In(Jt)},[Rt,Jt]),oe=Lt?"".concat(Yt,"-").concat(Lt):Wn,Hn=typeof Jt=="number",Be=te.useMemo(function(){return Hn?null:Jt===!1?"minWidth":"width"},[Jt,Hn]),Tt=ot;Hn&&(Tt=(0,B.Z)((0,B.Z)({},Tt),{},{width:Jt}));var fi=te.useRef(null);return te.useImperativeHandle(vn,function(){return{getPopupElement:function(){return fi.current}}}),te.createElement(Jn.Z,(0,v.Z)({},Yi,{showAction:lt?["click"]:[],hideAction:lt?["click"]:[],popupPlacement:L||(je==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:q,prefixCls:Yt,popupTransitionName:oe,popup:te.createElement("div",{ref:fi,onMouseEnter:Mi},zi),stretch:Be,popupAlign:xn,popupVisible:Nt,getPopupContainer:An,popupClassName:Ee()(fn,(0,O.Z)({},"".concat(Yt,"-empty"),li)),popupStyle:Tt,getTriggerDOMNode:Nn,onPopupVisibleChange:lt}),Ve)},z=te.forwardRef(re);z.displayName="SelectTrigger";var k=z,j=h(4537);function Q(pt,Ke){var vn=pt.key,Fn;return"value"in pt&&(Fn=pt.value),vn!=null?vn:Fn!==void 0?Fn:"rc-index-key-".concat(Ke)}function T(pt,Ke){var vn=pt||{},Fn=vn.label,on=vn.value,Nt=vn.options,Ve=vn.groupLabel,Ut=Fn||(Ke?"children":"label");return{label:Ut,value:on||"value",options:Nt||"options",groupLabel:Ve||Ut}}function _e(pt){var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},vn=Ke.fieldNames,Fn=Ke.childrenAsData,on=[],Nt=T(vn,!1),Ve=Nt.label,Ut=Nt.value,Lt=Nt.options,Wn=Nt.groupLabel;function ot(fn,yt){fn.forEach(function(je){if(yt||!(Lt in je)){var L=je[Ut];on.push({key:Q(je,on.length),groupOption:yt,data:je,label:je[Ve],value:L})}else{var Rt=je[Wn];Rt===void 0&&Fn&&(Rt=je.label),on.push({key:Q(je,on.length),group:!0,data:je,label:Rt}),ot(je[Lt],!0)}})}return ot(pt,!1),on}function It(pt){var Ke=(0,B.Z)({},pt);return"props"in Ke||Object.defineProperty(Ke,"props",{get:function(){return(0,ae.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Ke}}),Ke}function $e(pt,Ke){if(!Ke||!Ke.length)return null;var vn=!1;function Fn(Nt,Ve){var Ut=(0,j.Z)(Ve),Lt=Ut[0],Wn=Ut.slice(1);if(!Lt)return[Nt];var ot=Nt.split(Lt);return vn=vn||ot.length>1,ot.reduce(function(fn,yt){return[].concat((0,I.Z)(fn),(0,I.Z)(Fn(yt,Wn)))},[]).filter(function(fn){return fn})}var on=Fn(pt,Ke);return vn?on:null}var Pe=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],vt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function ut(pt){return pt==="tags"||pt==="multiple"}var tt=te.forwardRef(function(pt,Ke){var vn,Fn,on=pt.id,Nt=pt.prefixCls,Ve=pt.className,Ut=pt.showSearch,Lt=pt.tagRender,Wn=pt.direction,ot=pt.omitDomProps,fn=pt.displayValues,yt=pt.onDisplayValuesChange,je=pt.emptyOptions,L=pt.notFoundContent,Rt=L===void 0?"Not Found":L,Jt=pt.onClear,mt=pt.mode,xn=pt.disabled,An=pt.loading,li=pt.getInputElement,Nn=pt.getRawInputElement,lt=pt.open,Mi=pt.defaultOpen,Yi=pt.onDropdownVisibleChange,Yt=pt.activeValue,zi=pt.onActiveValueChange,q=pt.activeDescendantId,oe=pt.searchValue,Hn=pt.autoClearSearchValue,Be=pt.onSearch,Tt=pt.onSearchSplit,fi=pt.tokenSeparators,Ln=pt.allowClear,Fi=pt.suffixIcon,qt=pt.clearIcon,xi=pt.OptionList,Xt=pt.animation,Li=pt.transitionName,Yr=pt.dropdownStyle,Mt=pt.dropdownClassName,Qr=pt.dropdownMatchSelectWidth,tn=pt.dropdownRender,Oi=pt.dropdownAlign,Ei=pt.placement,or=pt.builtinPlacements,tr=pt.getPopupContainer,Zn=pt.showAction,he=Zn===void 0?[]:Zn,gr=pt.onFocus,br=pt.onBlur,cr=pt.onKeyUp,Br=pt.onKeyDown,Zi=pt.onMouseDown,Ri=(0,F.Z)(pt,Pe),Ai=ut(mt),hr=(Ut!==void 0?Ut:Ai)||mt==="combobox",Ki=(0,B.Z)({},Ri);vt.forEach(function(Kr){delete Ki[Kr]}),ot==null||ot.forEach(function(Kr){delete Ki[Kr]});var Lr=te.useState(!1),Wr=(0,G.Z)(Lr,2),eo=Wr[0],Lo=Wr[1];te.useEffect(function(){Lo((0,Oe.Z)())},[]);var pi=te.useRef(null),pa=te.useRef(null),Uo=te.useRef(null),oa=te.useRef(null),ma=te.useRef(null),$a=ke(),is=(0,G.Z)($a,3),ka=is[0],ss=is[1],Ua=is[2];te.useImperativeHandle(Ke,function(){var Kr,wo;return{focus:(Kr=oa.current)===null||Kr===void 0?void 0:Kr.focus,blur:(wo=oa.current)===null||wo===void 0?void 0:wo.blur,scrollTo:function(aa){var ro;return(ro=ma.current)===null||ro===void 0?void 0:ro.scrollTo(aa)}}});var Go=te.useMemo(function(){var Kr;if(mt!=="combobox")return oe;var wo=(Kr=fn[0])===null||Kr===void 0?void 0:Kr.value;return typeof wo=="string"||typeof wo=="number"?String(wo):""},[oe,mt,fn]),Zt=mt==="combobox"&&typeof li=="function"&&li()||null,Pa=typeof Nn=="function"&&Nn(),ql=(0,Ie.x1)(pa,Pa==null||(vn=Pa.props)===null||vn===void 0?void 0:vn.ref),nl=te.useState(!1),uo=(0,G.Z)(nl,2),No=uo[0],go=uo[1];(0,Xe.Z)(function(){go(!0)},[]);var Ot=(0,de.Z)(!1,{defaultValue:Mi,value:lt}),Pr=(0,G.Z)(Ot,2),co=Pr[0],xa=Pr[1],xr=No?co:!1,wn=!Rt&&je;(xn||wn&&xr&&mt==="combobox")&&(xr=!1);var ar=wn?!1:xr,mi=te.useCallback(function(Kr){var wo=Kr!==void 0?Kr:!xr;xn||(xa(wo),xr!==wo&&(Yi==null||Yi(wo)))},[xn,xr,xa,Yi]),Wo=te.useMemo(function(){return(fi||[]).some(function(Kr){return[`
`,`\r
`].includes(Kr)})},[fi]),ga=function(wo,ha,aa){var ro=!0,ia=wo;zi==null||zi(null);var va=aa?null:$e(wo,fi);return mt!=="combobox"&&va&&(ia="",Tt==null||Tt(va),mi(!1),ro=!1),Be&&Go!==ia&&Be(ia,{source:ha?"typing":"effect"}),ro},Ja=function(wo){!wo||!wo.trim()||Be(wo,{source:"submit"})};te.useEffect(function(){!xr&&!Ai&&mt!=="combobox"&&ga("",!1,!1)},[xr]),te.useEffect(function(){co&&xn&&xa(!1),xn&&ss(!1)},[xn]);var Ms=ee(),Ss=(0,G.Z)(Ms,2),ai=Ss[0],Ui=Ss[1],Jo=function(wo){var ha=ai(),aa=wo.which;if(aa===Ce.Z.ENTER&&(mt!=="combobox"&&wo.preventDefault(),xr||mi(!0)),Ui(!!Go),aa===Ce.Z.BACKSPACE&&!ha&&Ai&&!Go&&fn.length){for(var ro=(0,I.Z)(fn),ia=null,va=ro.length-1;va>=0;va-=1){var Ma=ro[va];if(!Ma.disabled){ro.splice(va,1),ia=Ma;break}}ia&&yt(ro,{type:"remove",values:[ia]})}for(var Oa=arguments.length,Gl=new Array(Oa>1?Oa-1:0),Vs=1;Vs<Oa;Vs++)Gl[Vs-1]=arguments[Vs];if(xr&&ma.current){var wa;(wa=ma.current).onKeyDown.apply(wa,[wo].concat(Gl))}Br==null||Br.apply(void 0,[wo].concat(Gl))},Es=function(wo){for(var ha=arguments.length,aa=new Array(ha>1?ha-1:0),ro=1;ro<ha;ro++)aa[ro-1]=arguments[ro];if(xr&&ma.current){var ia;(ia=ma.current).onKeyUp.apply(ia,[wo].concat(aa))}cr==null||cr.apply(void 0,[wo].concat(aa))},Vo=function(wo){var ha=fn.filter(function(aa){return aa!==wo});yt(ha,{type:"remove",values:[wo]})},rs=te.useRef(!1),Rr=function(){ss(!0),xn||(gr&&!rs.current&&gr.apply(void 0,arguments),he.includes("focus")&&mi(!0)),rs.current=!0},dl=function(){ss(!1,function(){rs.current=!1,mi(!1)}),!xn&&(Go&&(mt==="tags"?Be(Go,{source:"submit"}):mt==="multiple"&&Be("",{source:"blur"})),br&&br.apply(void 0,arguments))},ws=[];te.useEffect(function(){return function(){ws.forEach(function(Kr){return clearTimeout(Kr)}),ws.splice(0,ws.length)}},[]);var Os=function(wo){var ha,aa=wo.target,ro=(ha=Uo.current)===null||ha===void 0?void 0:ha.getPopupElement();if(ro&&ro.contains(aa)){var ia=setTimeout(function(){var Gl=ws.indexOf(ia);if(Gl!==-1&&ws.splice(Gl,1),Ua(),!eo&&!ro.contains(document.activeElement)){var Vs;(Vs=oa.current)===null||Vs===void 0||Vs.focus()}});ws.push(ia)}for(var va=arguments.length,Ma=new Array(va>1?va-1:0),Oa=1;Oa<va;Oa++)Ma[Oa-1]=arguments[Oa];Zi==null||Zi.apply(void 0,[wo].concat(Ma))},Bo=te.useState({}),Ia=(0,G.Z)(Bo,2),fl=Ia[1];function ja(){fl({})}var qa;Pa&&(qa=function(wo){mi(wo)}),Te(function(){var Kr;return[pi.current,(Kr=Uo.current)===null||Kr===void 0?void 0:Kr.getPopupElement()]},ar,mi,!!Pa);var Rl=te.useMemo(function(){return(0,B.Z)((0,B.Z)({},pt),{},{notFoundContent:Rt,open:xr,triggerOpen:ar,id:on,showSearch:hr,multiple:Ai,toggleOpen:mi})},[pt,Rt,ar,xr,on,hr,Ai,mi]),_o=!!Fi||An,il;_o&&(il=te.createElement(fe,{className:Ee()("".concat(Nt,"-arrow"),(0,O.Z)({},"".concat(Nt,"-arrow-loading"),An)),customizeIcon:Fi,customizeIconProps:{loading:An,searchValue:Go,open:xr,focused:ka,showSearch:hr}}));var rl=function(){var wo;Jt==null||Jt(),(wo=oa.current)===null||wo===void 0||wo.focus(),yt([],{type:"clear",values:fn}),ga("",!1,!1)},hu=me(Nt,rl,fn,Ln,qt,xn,Go,mt),Ga=hu.allowClear,os=hu.clearIcon,_s=te.createElement(xi,{ref:ma}),Vi=Ee()(Nt,Ve,(Fn={},(0,O.Z)(Fn,"".concat(Nt,"-focused"),ka),(0,O.Z)(Fn,"".concat(Nt,"-multiple"),Ai),(0,O.Z)(Fn,"".concat(Nt,"-single"),!Ai),(0,O.Z)(Fn,"".concat(Nt,"-allow-clear"),Ln),(0,O.Z)(Fn,"".concat(Nt,"-show-arrow"),_o),(0,O.Z)(Fn,"".concat(Nt,"-disabled"),xn),(0,O.Z)(Fn,"".concat(Nt,"-loading"),An),(0,O.Z)(Fn,"".concat(Nt,"-open"),xr),(0,O.Z)(Fn,"".concat(Nt,"-customize-input"),Zt),(0,O.Z)(Fn,"".concat(Nt,"-show-search"),hr),Fn)),Cs=te.createElement(k,{ref:Uo,disabled:xn,prefixCls:Nt,visible:ar,popupElement:_s,animation:Xt,transitionName:Li,dropdownStyle:Yr,dropdownClassName:Mt,direction:Wn,dropdownMatchSelectWidth:Qr,dropdownRender:tn,dropdownAlign:Oi,placement:Ei,builtinPlacements:or,getPopupContainer:tr,empty:je,getTriggerDOMNode:function(){return pa.current},onPopupVisibleChange:qa,onPopupMouseEnter:ja},Pa?te.cloneElement(Pa,{ref:ql}):te.createElement(ni,(0,v.Z)({},pt,{domRef:pa,prefixCls:Nt,inputElement:Zt,ref:oa,id:on,showSearch:hr,autoClearSearchValue:Hn,mode:mt,activeDescendantId:q,tagRender:Lt,values:fn,open:xr,onToggleOpen:mi,activeValue:Yt,searchValue:Go,onSearch:ga,onSearchSubmit:Ja,onRemove:Vo,tokenWithEnter:Wo}))),jl;return Pa?jl=Cs:jl=te.createElement("div",(0,v.Z)({className:Vi},Ki,{ref:pi,onMouseDown:Os,onKeyDown:Jo,onKeyUp:Es,onFocus:Rr,onBlur:dl}),ka&&!xr&&te.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(fn.map(function(Kr){var wo=Kr.label,ha=Kr.value;return["number","string"].includes((0,M.Z)(wo))?wo:ha}).join(", "))),Cs,il,Ga&&os),te.createElement(ye.Provider,{value:Rl},jl)}),Et=tt,pn=function(pt,Ke){var vn=te.useRef({values:new Map,options:new Map}),Fn=te.useMemo(function(){var Nt=vn.current,Ve=Nt.values,Ut=Nt.options,Lt=pt.map(function(fn){if(fn.label===void 0){var yt;return(0,B.Z)((0,B.Z)({},fn),{},{label:(yt=Ve.get(fn.value))===null||yt===void 0?void 0:yt.label})}return fn}),Wn=new Map,ot=new Map;return Lt.forEach(function(fn){Wn.set(fn.value,fn),ot.set(fn.value,Ke.get(fn.value)||Ut.get(fn.value))}),vn.current.values=Wn,vn.current.options=ot,Lt},[pt,Ke]),on=te.useCallback(function(Nt){return Ke.get(Nt)||vn.current.options.get(Nt)},[Ke]);return[Fn,on]};function nn(pt,Ke){return at(pt).join("").toUpperCase().includes(Ke)}var Kt=function(pt,Ke,vn,Fn,on){return te.useMemo(function(){if(!vn||Fn===!1)return pt;var Nt=Ke.options,Ve=Ke.label,Ut=Ke.value,Lt=[],Wn=typeof Fn=="function",ot=vn.toUpperCase(),fn=Wn?Fn:function(je,L){return on?nn(L[on],ot):L[Nt]?nn(L[Ve!=="children"?Ve:"label"],ot):nn(L[Ut],ot)},yt=Wn?function(je){return It(je)}:function(je){return je};return pt.forEach(function(je){if(je[Nt]){var L=fn(vn,yt(je));if(L)Lt.push(je);else{var Rt=je[Nt].filter(function(Jt){return fn(vn,yt(Jt))});Rt.length&&Lt.push((0,B.Z)((0,B.Z)({},je),{},(0,O.Z)({},Nt,Rt)))}return}fn(vn,yt(je))&&Lt.push(je)}),Lt},[pt,Fn,on,vn,Ke])},hn=h(17115),an=h(11592),et=["children","value"],zt=["children"];function dn(pt){var Ke=pt,vn=Ke.key,Fn=Ke.props,on=Fn.children,Nt=Fn.value,Ve=(0,F.Z)(Fn,et);return(0,B.Z)({key:vn,value:Nt!==void 0?Nt:vn,children:on},Ve)}function rn(pt){var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,an.Z)(pt).map(function(vn,Fn){if(!te.isValidElement(vn)||!vn.type)return null;var on=vn,Nt=on.type.isSelectOptGroup,Ve=on.key,Ut=on.props,Lt=Ut.children,Wn=(0,F.Z)(Ut,zt);return Ke||!Nt?dn(vn):(0,B.Z)((0,B.Z)({key:"__RC_SELECT_GRP__".concat(Ve===null?Fn:Ve,"__"),label:Ve},Wn),{},{options:rn(Lt)})}).filter(function(vn){return vn})}function ze(pt,Ke,vn,Fn,on){return te.useMemo(function(){var Nt=pt,Ve=!pt;Ve&&(Nt=rn(Ke));var Ut=new Map,Lt=new Map,Wn=function(yt,je,L){L&&typeof L=="string"&&yt.set(je[L],je)};function ot(fn){for(var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,je=0;je<fn.length;je+=1){var L=fn[je];!L[vn.options]||yt?(Ut.set(L[vn.value],L),Wn(Lt,L,vn.label),Wn(Lt,L,Fn),Wn(Lt,L,on)):ot(L[vn.options],!0)}}return ot(Nt),{options:Nt,valueOptions:Ut,labelOptions:Lt}},[pt,Ke,vn,Fn,on])}function Un(pt){var Ke=te.useRef();Ke.current=pt;var vn=te.useCallback(function(){return Ke.current.apply(Ke,arguments)},[]);return vn}var yn=function(){return null};yn.isSelectOptGroup=!0;var Bt=yn,Si=function(){return null};Si.isSelectOption=!0;var _i=Si,Ii=h(80547),cn=h(2738),fr=h(24916),Xi=te.createContext(null),ei=Xi;function Tr(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var ur=["disabled","title","children","style","className"];function U(pt){return typeof pt=="string"||typeof pt=="number"}var mr=function(Ke,vn){var Fn=pe(),on=Fn.prefixCls,Nt=Fn.id,Ve=Fn.open,Ut=Fn.multiple,Lt=Fn.mode,Wn=Fn.searchValue,ot=Fn.toggleOpen,fn=Fn.notFoundContent,yt=Fn.onPopupScroll,je=te.useContext(ei),L=je.flattenOptions,Rt=je.onActiveValue,Jt=je.defaultActiveFirstOption,mt=je.onSelect,xn=je.menuItemSelectedIcon,An=je.rawValues,li=je.fieldNames,Nn=je.virtual,lt=je.direction,Mi=je.listHeight,Yi=je.listItemHeight,Yt="".concat(on,"-item"),zi=(0,Ii.Z)(function(){return L},[Ve,L],function(Oi,Ei){return Ei[0]&&Oi[1]!==Ei[1]}),q=te.useRef(null),oe=function(Ei){Ei.preventDefault()},Hn=function(Ei){q.current&&q.current.scrollTo(typeof Ei=="number"?{index:Ei}:Ei)},Be=function(Ei){for(var or=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,tr=zi.length,Zn=0;Zn<tr;Zn+=1){var he=(Ei+Zn*or+tr)%tr,gr=zi[he],br=gr.group,cr=gr.data;if(!br&&!cr.disabled)return he}return-1},Tt=te.useState(function(){return Be(0)}),fi=(0,G.Z)(Tt,2),Ln=fi[0],Fi=fi[1],qt=function(Ei){var or=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Fi(Ei);var tr={source:or?"keyboard":"mouse"},Zn=zi[Ei];if(!Zn){Rt(null,-1,tr);return}Rt(Zn.value,Ei,tr)};(0,te.useEffect)(function(){qt(Jt!==!1?Be(0):-1)},[zi.length,Wn]);var xi=te.useCallback(function(Oi){return An.has(Oi)&&Lt!=="combobox"},[Lt,(0,I.Z)(An).toString(),An.size]);(0,te.useEffect)(function(){var Oi=setTimeout(function(){if(!Ut&&Ve&&An.size===1){var or=Array.from(An)[0],tr=zi.findIndex(function(Zn){var he=Zn.data;return he.value===or});tr!==-1&&(qt(tr),Hn(tr))}});if(Ve){var Ei;(Ei=q.current)===null||Ei===void 0||Ei.scrollTo(void 0)}return function(){return clearTimeout(Oi)}},[Ve,Wn,L.length]);var Xt=function(Ei){Ei!==void 0&&mt(Ei,{selected:!An.has(Ei)}),Ut||ot(!1)};if(te.useImperativeHandle(vn,function(){return{onKeyDown:function(Ei){var or=Ei.which,tr=Ei.ctrlKey;switch(or){case Ce.Z.N:case Ce.Z.P:case Ce.Z.UP:case Ce.Z.DOWN:{var Zn=0;if(or===Ce.Z.UP?Zn=-1:or===Ce.Z.DOWN?Zn=1:Tr()&&tr&&(or===Ce.Z.N?Zn=1:or===Ce.Z.P&&(Zn=-1)),Zn!==0){var he=Be(Ln+Zn,Zn);Hn(he),qt(he,!0)}break}case Ce.Z.ENTER:{var gr=zi[Ln];gr&&!gr.data.disabled?Xt(gr.value):Xt(void 0),Ve&&Ei.preventDefault();break}case Ce.Z.ESC:ot(!1),Ve&&Ei.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Ei){Hn(Ei)}}}),zi.length===0)return te.createElement("div",{role:"listbox",id:"".concat(Nt,"_list"),className:"".concat(Yt,"-empty"),onMouseDown:oe},fn);var Li=Object.keys(li).map(function(Oi){return li[Oi]}),Yr=function(Ei){return Ei.label};function Mt(Oi,Ei){var or=Oi.group;return{role:or?"presentation":"option",id:"".concat(Nt,"_list_").concat(Ei)}}var Qr=function(Ei){var or=zi[Ei];if(!or)return null;var tr=or.data||{},Zn=tr.value,he=or.group,gr=(0,Me.Z)(tr,!0),br=Yr(or);return or?te.createElement("div",(0,v.Z)({"aria-label":typeof br=="string"&&!he?br:null},gr,{key:Ei},Mt(or,Ei),{"aria-selected":xi(Zn)}),Zn):null},tn={role:"listbox",id:"".concat(Nt,"_list")};return te.createElement(te.Fragment,null,Nn&&te.createElement("div",(0,v.Z)({},tn,{style:{height:0,width:0,overflow:"hidden"}}),Qr(Ln-1),Qr(Ln),Qr(Ln+1)),te.createElement(fr.Z,{itemKey:"key",ref:q,data:zi,height:Mi,itemHeight:Yi,fullHeight:!1,onMouseDown:oe,onScroll:yt,virtual:Nn,direction:lt,innerProps:Nn?null:tn},function(Oi,Ei){var or,tr=Oi.group,Zn=Oi.groupOption,he=Oi.data,gr=Oi.label,br=Oi.value,cr=he.key;if(tr){var Br,Zi=(Br=he.title)!==null&&Br!==void 0?Br:U(gr)?gr.toString():void 0;return te.createElement("div",{className:Ee()(Yt,"".concat(Yt,"-group")),title:Zi},gr!==void 0?gr:cr)}var Ri=he.disabled,Ai=he.title,hr=he.children,Ki=he.style,Lr=he.className,Wr=(0,F.Z)(he,ur),eo=(0,cn.Z)(Wr,Li),Lo=xi(br),pi="".concat(Yt,"-option"),pa=Ee()(Yt,pi,Lr,(or={},(0,O.Z)(or,"".concat(pi,"-grouped"),Zn),(0,O.Z)(or,"".concat(pi,"-active"),Ln===Ei&&!Ri),(0,O.Z)(or,"".concat(pi,"-disabled"),Ri),(0,O.Z)(or,"".concat(pi,"-selected"),Lo),or)),Uo=Yr(Oi),oa=!xn||typeof xn=="function"||Lo,ma=typeof Uo=="number"?Uo:Uo||br,$a=U(ma)?ma.toString():void 0;return Ai!==void 0&&($a=Ai),te.createElement("div",(0,v.Z)({},(0,Me.Z)(eo),Nn?{}:Mt(Oi,Ei),{"aria-selected":Lo,className:pa,title:$a,onMouseMove:function(){Ln===Ei||Ri||qt(Ei)},onClick:function(){Ri||Xt(br)},style:Ki}),te.createElement("div",{className:"".concat(pi,"-content")},ma),te.isValidElement(xn)||Lo,oa&&te.createElement(fe,{className:"".concat(Yt,"-option-state"),customizeIcon:xn,customizeIconProps:{isSelected:Lo}},Lo?"\u2713":null))}))},Er=te.forwardRef(mr);Er.displayName="OptionList";var wr=Er;function qr(pt){var Ke=pt.mode,vn=pt.options,Fn=pt.children,on=pt.backfill,Nt=pt.allowClear,Ve=pt.placeholder,Ut=pt.getInputElement,Lt=pt.showSearch,Wn=pt.onSearch,ot=pt.defaultOpen,fn=pt.autoFocus,yt=pt.labelInValue,je=pt.value,L=pt.inputValue,Rt=pt.optionLabelProp,Jt=isMultiple(Ke),mt=Lt!==void 0?Lt:Jt||Ke==="combobox",xn=vn||convertChildrenToData(Fn);if(warning(Ke!=="tags"||xn.every(function(lt){return!lt.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Ke==="tags"||Ke==="combobox"){var An=xn.some(function(lt){return lt.options?lt.options.some(function(Mi){return typeof("value"in Mi?Mi.value:Mi.key)=="number"}):typeof("value"in lt?lt.value:lt.key)=="number"});warning(!An,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Ke!=="combobox"||!Rt,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Ke==="combobox"||!on,"`backfill` only works with `combobox` mode."),warning(Ke==="combobox"||!Ut,"`getInputElement` only work with `combobox` mode."),noteOnce(Ke!=="combobox"||!Ut||!Nt||!Ve,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Wn&&!mt&&Ke!=="combobox"&&Ke!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!ot||fn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),je!=null){var li=toArray(je);warning(!yt||li.every(function(lt){return _typeof(lt)==="object"&&("key"in lt||"value"in lt)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Jt||Array.isArray(je),"`value` should be array when `mode` is `multiple` or `tags`")}if(Fn){var Nn=null;toNodeArray(Fn).some(function(lt){if(!React.isValidElement(lt)||!lt.type)return!1;var Mi=lt,Yi=Mi.type;if(Yi.isSelectOption)return!1;if(Yi.isSelectOptGroup){var Yt=toNodeArray(lt.props.children).every(function(zi){return!React.isValidElement(zi)||!lt.type||zi.type.isSelectOption?!0:(Nn=zi.type,!1)});return!Yt}return Nn=Yi,!0}),Nn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Nn.displayName||Nn.name||Nn,"`.")),warning(L===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function xo(pt,Ke){if(pt){var vn=function Fn(on){for(var Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ve=0;Ve<on.length;Ve++){var Ut=on[Ve];if(Ut[Ke==null?void 0:Ke.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Nt&&Array.isArray(Ut[Ke==null?void 0:Ke.options])&&Fn(Ut[Ke==null?void 0:Ke.options],!0))break}};vn(pt)}}var kr=null,no=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],rr=["inputValue"];function Bi(pt){return!pt||(0,M.Z)(pt)!=="object"}var yi=te.forwardRef(function(pt,Ke){var vn=pt.id,Fn=pt.mode,on=pt.prefixCls,Nt=on===void 0?"rc-select":on,Ve=pt.backfill,Ut=pt.fieldNames,Lt=pt.inputValue,Wn=pt.searchValue,ot=pt.onSearch,fn=pt.autoClearSearchValue,yt=fn===void 0?!0:fn,je=pt.onSelect,L=pt.onDeselect,Rt=pt.dropdownMatchSelectWidth,Jt=Rt===void 0?!0:Rt,mt=pt.filterOption,xn=pt.filterSort,An=pt.optionFilterProp,li=pt.optionLabelProp,Nn=pt.options,lt=pt.children,Mi=pt.defaultActiveFirstOption,Yi=pt.menuItemSelectedIcon,Yt=pt.virtual,zi=pt.direction,q=pt.listHeight,oe=q===void 0?200:q,Hn=pt.listItemHeight,Be=Hn===void 0?20:Hn,Tt=pt.value,fi=pt.defaultValue,Ln=pt.labelInValue,Fi=pt.onChange,qt=(0,F.Z)(pt,no),xi=(0,hn.ZP)(vn),Xt=ut(Fn),Li=!!(!Nn&&lt),Yr=te.useMemo(function(){return mt===void 0&&Fn==="combobox"?!1:mt},[mt,Fn]),Mt=te.useMemo(function(){return T(Ut,Li)},[JSON.stringify(Ut),Li]),Qr=(0,de.Z)("",{value:Wn!==void 0?Wn:Lt,postState:function(wn){return wn||""}}),tn=(0,G.Z)(Qr,2),Oi=tn[0],Ei=tn[1],or=ze(Nn,lt,Mt,An,li),tr=or.valueOptions,Zn=or.labelOptions,he=or.options,gr=te.useCallback(function(xr){var wn=at(xr);return wn.map(function(ar){var mi,Wo,ga,Ja,Ms;if(Bi(ar))mi=ar;else{var Ss;ga=ar.key,Wo=ar.label,mi=(Ss=ar.value)!==null&&Ss!==void 0?Ss:ga}var ai=tr.get(mi);if(ai){var Ui;if(Wo===void 0&&(Wo=ai==null?void 0:ai[li||Mt.label]),ga===void 0&&(ga=(Ui=ai==null?void 0:ai.key)!==null&&Ui!==void 0?Ui:mi),Ja=ai==null?void 0:ai.disabled,Ms=ai==null?void 0:ai.title,0)var Jo}return{label:Wo,value:mi,key:ga,disabled:Ja,title:Ms}})},[Mt,li,tr]),br=(0,de.Z)(fi,{value:Tt}),cr=(0,G.Z)(br,2),Br=cr[0],Zi=cr[1],Ri=te.useMemo(function(){var xr,wn=gr(Br);return Fn==="combobox"&&kt((xr=wn[0])===null||xr===void 0?void 0:xr.value)?[]:wn},[Br,gr,Fn]),Ai=pn(Ri,tr),hr=(0,G.Z)(Ai,2),Ki=hr[0],Lr=hr[1],Wr=te.useMemo(function(){if(!Fn&&Ki.length===1){var xr=Ki[0];if(xr.value===null&&(xr.label===null||xr.label===void 0))return[]}return Ki.map(function(wn){var ar;return(0,B.Z)((0,B.Z)({},wn),{},{label:(ar=wn.label)!==null&&ar!==void 0?ar:wn.value})})},[Fn,Ki]),eo=te.useMemo(function(){return new Set(Ki.map(function(xr){return xr.value}))},[Ki]);te.useEffect(function(){if(Fn==="combobox"){var xr,wn=(xr=Ki[0])===null||xr===void 0?void 0:xr.value;Ei(gt(wn)?String(wn):"")}},[Ki]);var Lo=Un(function(xr,wn){var ar,mi=wn!=null?wn:xr;return ar={},(0,O.Z)(ar,Mt.value,xr),(0,O.Z)(ar,Mt.label,mi),ar}),pi=te.useMemo(function(){if(Fn!=="tags")return he;var xr=(0,I.Z)(he),wn=function(mi){return tr.has(mi)};return(0,I.Z)(Ki).sort(function(ar,mi){return ar.value<mi.value?-1:1}).forEach(function(ar){var mi=ar.value;wn(mi)||xr.push(Lo(mi,ar.label))}),xr},[Lo,he,tr,Ki,Fn]),pa=Kt(pi,Mt,Oi,Yr,An),Uo=te.useMemo(function(){return Fn!=="tags"||!Oi||pa.some(function(xr){return xr[An||"value"]===Oi})||pa.some(function(xr){return xr[Mt.value]===Oi})?pa:[Lo(Oi)].concat((0,I.Z)(pa))},[Lo,An,Fn,pa,Oi,Mt]),oa=te.useMemo(function(){return xn?(0,I.Z)(Uo).sort(function(xr,wn){return xn(xr,wn)}):Uo},[Uo,xn]),ma=te.useMemo(function(){return _e(oa,{fieldNames:Mt,childrenAsData:Li})},[oa,Mt,Li]),$a=function(wn){var ar=gr(wn);if(Zi(ar),Fi&&(ar.length!==Ki.length||ar.some(function(ga,Ja){var Ms;return((Ms=Ki[Ja])===null||Ms===void 0?void 0:Ms.value)!==(ga==null?void 0:ga.value)}))){var mi=Ln?ar:ar.map(function(ga){return ga.value}),Wo=ar.map(function(ga){return It(Lr(ga.value))});Fi(Xt?mi:mi[0],Xt?Wo:Wo[0])}},is=te.useState(null),ka=(0,G.Z)(is,2),ss=ka[0],Ua=ka[1],Go=te.useState(0),Zt=(0,G.Z)(Go,2),Pa=Zt[0],ql=Zt[1],nl=Mi!==void 0?Mi:Fn!=="combobox",uo=te.useCallback(function(xr,wn){var ar=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},mi=ar.source,Wo=mi===void 0?"keyboard":mi;ql(wn),Ve&&Fn==="combobox"&&xr!==null&&Wo==="keyboard"&&Ua(String(xr))},[Ve,Fn]),No=function(wn,ar,mi){var Wo=function(){var rs,Rr=Lr(wn);return[Ln?{label:Rr==null?void 0:Rr[Mt.label],value:wn,key:(rs=Rr==null?void 0:Rr.key)!==null&&rs!==void 0?rs:wn}:wn,It(Rr)]};if(ar&&je){var ga=Wo(),Ja=(0,G.Z)(ga,2),Ms=Ja[0],Ss=Ja[1];je(Ms,Ss)}else if(!ar&&L&&mi!=="clear"){var ai=Wo(),Ui=(0,G.Z)(ai,2),Jo=Ui[0],Es=Ui[1];L(Jo,Es)}},go=Un(function(xr,wn){var ar,mi=Xt?wn.selected:!0;mi?ar=Xt?[].concat((0,I.Z)(Ki),[xr]):[xr]:ar=Ki.filter(function(Wo){return Wo.value!==xr}),$a(ar),No(xr,mi),Fn==="combobox"?Ua(""):(!ut||yt)&&(Ei(""),Ua(""))}),Ot=function(wn,ar){$a(wn);var mi=ar.type,Wo=ar.values;(mi==="remove"||mi==="clear")&&Wo.forEach(function(ga){No(ga.value,!1,mi)})},Pr=function(wn,ar){if(Ei(wn),Ua(null),ar.source==="submit"){var mi=(wn||"").trim();if(mi){var Wo=Array.from(new Set([].concat((0,I.Z)(eo),[mi])));$a(Wo),No(mi,!0),Ei("")}return}ar.source!=="blur"&&(Fn==="combobox"&&$a(wn),ot==null||ot(wn))},co=function(wn){var ar=wn;Fn!=="tags"&&(ar=wn.map(function(Wo){var ga=Zn.get(Wo);return ga==null?void 0:ga.value}).filter(function(Wo){return Wo!==void 0}));var mi=Array.from(new Set([].concat((0,I.Z)(eo),(0,I.Z)(ar))));$a(mi),mi.forEach(function(Wo){No(Wo,!0)})},xa=te.useMemo(function(){var xr=Yt!==!1&&Jt!==!1;return(0,B.Z)((0,B.Z)({},or),{},{flattenOptions:ma,onActiveValue:uo,defaultActiveFirstOption:nl,onSelect:go,menuItemSelectedIcon:Yi,rawValues:eo,fieldNames:Mt,virtual:xr,direction:zi,listHeight:oe,listItemHeight:Be,childrenAsData:Li})},[or,ma,uo,nl,go,Yi,eo,Mt,Yt,Jt,oe,Be,Li]);return te.createElement(ei.Provider,{value:xa},te.createElement(Et,(0,v.Z)({},qt,{id:xi,prefixCls:Nt,ref:Ke,omitDomProps:rr,mode:Fn,displayValues:Wr,onDisplayValuesChange:Ot,direction:zi,searchValue:Oi,onSearch:Pr,autoClearSearchValue:yt,onSearchSplit:co,dropdownMatchSelectWidth:Jt,OptionList:wr,emptyOptions:!ma.length,activeValue:ss,activeDescendantId:"".concat(xi,"_list_").concat(Pa)})))}),ht=yi;ht.Option=_i,ht.OptGroup=Bt;var _n=ht,Vn=_n},9296:function(X,C,h){"use strict";h.r(C),h.d(C,{ResizableTextArea:function(){return Ye},default:function(){return kt}});var v=h(96663),I=h(44127),O=h(90493),B=h(20135),G=h(72071),F=h(6620),M=h(19127),de=h(92310),ae=h.n(de),te=h(93681),Ne=h(5643),Ee=h(18929),Xe=h(59301),Oe=h(29301),Ce=h(34280),Ie=h(16089),Re=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
pointer-events: none !important;
`,fe=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],me={},ye;function pe(Ct){var Cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Qe=Ct.getAttribute("id")||Ct.getAttribute("data-reactid")||Ct.getAttribute("name");if(Cn&&me[Qe])return me[Qe];var le=window.getComputedStyle(Ct),ce=le.getPropertyValue("box-sizing")||le.getPropertyValue("-moz-box-sizing")||le.getPropertyValue("-webkit-box-sizing"),Ht=parseFloat(le.getPropertyValue("padding-bottom"))+parseFloat(le.getPropertyValue("padding-top")),Vt=parseFloat(le.getPropertyValue("border-bottom-width"))+parseFloat(le.getPropertyValue("border-top-width")),St=fe.map(function(Ft){return"".concat(Ft,":").concat(le.getPropertyValue(Ft))}).join(";"),sn={sizingStyle:St,paddingSize:Ht,borderSize:Vt,boxSizing:ce};return Cn&&Qe&&(me[Qe]=sn),sn}function ke(Ct){var Cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,le=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ye||(ye=document.createElement("textarea"),ye.setAttribute("tab-index","-1"),ye.setAttribute("aria-hidden","true"),document.body.appendChild(ye)),Ct.getAttribute("wrap")?ye.setAttribute("wrap",Ct.getAttribute("wrap")):ye.removeAttribute("wrap");var ce=pe(Ct,Cn),Ht=ce.paddingSize,Vt=ce.borderSize,St=ce.boxSizing,sn=ce.sizingStyle;ye.setAttribute("style","".concat(sn,";").concat(Re)),ye.value=Ct.value||Ct.placeholder||"";var Ft=void 0,oi=void 0,On,ni=ye.scrollHeight;if(St==="border-box"?ni+=Vt:St==="content-box"&&(ni-=Ht),Qe!==null||le!==null){ye.value=" ";var Jn=ye.scrollHeight-Ht;Qe!==null&&(Ft=Jn*Qe,St==="border-box"&&(Ft=Ft+Ht+Vt),ni=Math.max(Ft,ni)),le!==null&&(oi=Jn*le,St==="border-box"&&(oi=oi+Ht+Vt),On=ni>oi?"":"hidden",ni=Math.min(oi,ni))}var Mn={height:ni,overflowY:On,resize:"none"};return Ft&&(Mn.minHeight=Ft),oi&&(Mn.maxHeight=oi),Mn}var ee=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Te=0,Me=1,Le=2,Je=Xe.forwardRef(function(Ct,Cn){var Qe=Ct,le=Qe.prefixCls,ce=Qe.onPressEnter,Ht=Qe.defaultValue,Vt=Qe.value,St=Qe.autoSize,sn=Qe.onResize,Ft=Qe.className,oi=Qe.style,On=Qe.disabled,ni=Qe.onChange,Jn=Qe.onInternalAutoSize,Mn=(0,F.Z)(Qe,ee),In=(0,Ee.Z)(Ht,{value:Vt,postState:function(Bt){return Bt!=null?Bt:""}}),re=(0,G.Z)(In,2),z=re[0],k=re[1],j=function(Bt){k(Bt.target.value),ni==null||ni(Bt)},Q=Xe.useRef();Xe.useImperativeHandle(Cn,function(){return{textArea:Q.current}});var T=Xe.useMemo(function(){return St&&(0,B.Z)(St)==="object"?[St.minRows,St.maxRows]:[]},[St]),_e=(0,G.Z)(T,2),It=_e[0],$e=_e[1],Pe=!!St,vt=function(){try{if(document.activeElement===Q.current){var Bt=Q.current,Si=Bt.selectionStart,_i=Bt.selectionEnd,Ii=Bt.scrollTop;Q.current.setSelectionRange(Si,_i),Q.current.scrollTop=Ii}}catch(cn){}},ut=Xe.useState(Le),tt=(0,G.Z)(ut,2),Et=tt[0],pn=tt[1],nn=Xe.useState(),Kt=(0,G.Z)(nn,2),hn=Kt[0],an=Kt[1],et=function(){pn(Te)};(0,Ce.Z)(function(){Pe&&et()},[Vt,It,$e,Pe]),(0,Ce.Z)(function(){if(Et===Te)pn(Me);else if(Et===Me){var yn=ke(Q.current,!1,It,$e);pn(Le),an(yn)}else vt()},[Et]);var zt=Xe.useRef(),dn=function(){Ie.Z.cancel(zt.current)},rn=function(Bt){Et===Le&&(sn==null||sn(Bt),St&&(dn(),zt.current=(0,Ie.Z)(function(){et()})))};Xe.useEffect(function(){return dn},[]);var ze=Pe?hn:null,Un=(0,I.Z)((0,I.Z)({},oi),ze);return(Et===Te||Et===Me)&&(Un.overflowY="hidden",Un.overflowX="hidden"),Xe.createElement(Oe.Z,{onResize:rn,disabled:!(St||sn)},Xe.createElement("textarea",(0,v.Z)({},Mn,{ref:Q,style:Un,className:ae()(le,Ft,(0,O.Z)({},"".concat(le,"-disabled"),On)),disabled:On,value:z,onChange:j})))}),Ye=Je,ne=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function at(Ct,Cn){return(0,M.Z)(Ct||"").slice(0,Cn).join("")}function Ge(Ct,Cn,Qe,le){var ce=Qe;return Ct?ce=at(Qe,le):(0,M.Z)(Cn||"").length<Qe.length&&(0,M.Z)(Qe||"").length>le&&(ce=Cn),ce}var Pt=Xe.forwardRef(function(Ct,Cn){var Qe,le=Ct.defaultValue,ce=Ct.value,Ht=Ct.onFocus,Vt=Ct.onBlur,St=Ct.onChange,sn=Ct.allowClear,Ft=Ct.maxLength,oi=Ct.onCompositionStart,On=Ct.onCompositionEnd,ni=Ct.suffix,Jn=Ct.prefixCls,Mn=Jn===void 0?"rc-textarea":Jn,In=Ct.classes,re=Ct.showCount,z=Ct.className,k=Ct.style,j=Ct.disabled,Q=Ct.hidden,T=Ct.classNames,_e=Ct.styles,It=Ct.onResize,$e=(0,F.Z)(Ct,ne),Pe=(0,Ee.Z)(le,{value:ce,defaultValue:le}),vt=(0,G.Z)(Pe,2),ut=vt[0],tt=vt[1],Et=(0,Xe.useRef)(null),pn=Xe.useState(!1),nn=(0,G.Z)(pn,2),Kt=nn[0],hn=nn[1],an=Xe.useState(!1),et=(0,G.Z)(an,2),zt=et[0],dn=et[1],rn=Xe.useRef(),ze=Xe.useRef(0),Un=Xe.useState(null),yn=(0,G.Z)(Un,2),Bt=yn[0],Si=yn[1],_i=function(){var Bi;(Bi=Et.current)===null||Bi===void 0||Bi.textArea.focus()};(0,Xe.useImperativeHandle)(Cn,function(){return{resizableTextArea:Et.current,focus:_i,blur:function(){var Bi;(Bi=Et.current)===null||Bi===void 0||Bi.textArea.blur()}}}),(0,Xe.useEffect)(function(){hn(function(rr){return!j&&rr})},[j]);var Ii=Number(Ft)>0,cn=function(Bi){dn(!0),rn.current=ut,ze.current=Bi.currentTarget.selectionStart,oi==null||oi(Bi)},fr=function(Bi){dn(!1);var yi=Bi.currentTarget.value;if(Ii){var ht,_n=ze.current>=Ft+1||ze.current===((ht=rn.current)===null||ht===void 0?void 0:ht.length);yi=Ge(_n,rn.current,yi,Ft)}yi!==ut&&(tt(yi),(0,Ne.rJ)(Bi.currentTarget,Bi,St,yi)),On==null||On(Bi)},Xi=function(Bi){var yi=Bi.target.value;if(!zt&&Ii){var ht=Bi.target.selectionStart>=Ft+1||Bi.target.selectionStart===yi.length||!Bi.target.selectionStart;yi=Ge(ht,ut,yi,Ft)}tt(yi),(0,Ne.rJ)(Bi.currentTarget,Bi,St,yi)},ei=function(Bi){var yi=$e.onPressEnter,ht=$e.onKeyDown;Bi.key==="Enter"&&yi&&yi(Bi),ht==null||ht(Bi)},Tr=function(Bi){hn(!0),Ht==null||Ht(Bi)},ur=function(Bi){hn(!1),Vt==null||Vt(Bi)},U=function(Bi){var yi;tt(""),_i(),(0,Ne.rJ)((yi=Et.current)===null||yi===void 0?void 0:yi.textArea,Bi,St)},mr=(0,Ne.D7)(ut);!zt&&Ii&&ce==null&&(mr=at(mr,Ft));var Er=ni,wr;if(re){var qr=(0,M.Z)(mr).length;(0,B.Z)(re)==="object"?wr=re.formatter({value:mr,count:qr,maxLength:Ft}):wr="".concat(qr).concat(Ii?" / ".concat(Ft):""),Er=Xe.createElement(Xe.Fragment,null,Er,Xe.createElement("span",{className:ae()("".concat(Mn,"-data-count"),T==null?void 0:T.count),style:_e==null?void 0:_e.count},wr))}var xo=function(Bi){var yi;It==null||It(Bi),(yi=Et.current)!==null&&yi!==void 0&&yi.textArea.style.height&&Si(!0)},kr=!$e.autoSize&&!re&&!sn,no=Xe.createElement(te.BaseInput,{value:mr,allowClear:sn,handleReset:U,suffix:Er,prefixCls:Mn,classes:{affixWrapper:ae()(In==null?void 0:In.affixWrapper,(Qe={},(0,O.Z)(Qe,"".concat(Mn,"-show-count"),re),(0,O.Z)(Qe,"".concat(Mn,"-textarea-allow-clear"),sn),Qe))},disabled:j,focused:Kt,className:z,style:(0,I.Z)((0,I.Z)({},k),Bt&&!kr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof wr=="string"?wr:void 0}},hidden:Q,inputElement:Xe.createElement(Ye,(0,v.Z)({},$e,{onKeyDown:ei,onChange:Xi,onFocus:Tr,onBlur:ur,onCompositionStart:cn,onCompositionEnd:fr,className:T==null?void 0:T.textarea,style:(0,I.Z)((0,I.Z)({},_e==null?void 0:_e.textarea),{},{resize:k==null?void 0:k.resize}),disabled:j,prefixCls:Mn,onResize:xo,ref:Et}))});return no}),gt=Pt,kt=gt},39417:function(X,C,h){"use strict";h.d(C,{Z:function(){return Me}});var v=h(96663),I=h(90493),O=h(6620),B=h(44127),G=h(52884),F=h(95727),M=h(89866),de=h(65711),ae=h(85745),te=h(92310),Ne=h.n(te),Ee=h(26112),Xe=h(59301),Oe=h(39378),Ce=function(Je){for(var Ye=Je.prefixCls,ne=Je.level,at=Je.isStart,Ge=Je.isEnd,Pt="".concat(Ye,"-indent-unit"),gt=[],kt=0;kt<ne;kt+=1){var Ct;gt.push(Xe.createElement("span",{key:kt,className:Ne()(Pt,(Ct={},(0,I.Z)(Ct,"".concat(Pt,"-start"),at[kt]),(0,I.Z)(Ct,"".concat(Pt,"-end"),Ge[kt]),Ct))}))}return Xe.createElement("span",{"aria-hidden":"true",className:"".concat(Ye,"-indent")},gt)},Ie=Xe.memo(Ce),Re=h(67841),fe=h(71430),me=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ye="open",pe="close",ke="---",ee=function(Le){(0,de.Z)(Ye,Le);var Je=(0,ae.Z)(Ye);function Ye(){var ne;(0,G.Z)(this,Ye);for(var at=arguments.length,Ge=new Array(at),Pt=0;Pt<at;Pt++)Ge[Pt]=arguments[Pt];return ne=Je.call.apply(Je,[this].concat(Ge)),ne.state={dragNodeHighlight:!1},ne.selectHandle=void 0,ne.cacheIndent=void 0,ne.onSelectorClick=function(gt){var kt=ne.props.context.onNodeClick;kt(gt,(0,fe.F)(ne.props)),ne.isSelectable()?ne.onSelect(gt):ne.onCheck(gt)},ne.onSelectorDoubleClick=function(gt){var kt=ne.props.context.onNodeDoubleClick;kt(gt,(0,fe.F)(ne.props))},ne.onSelect=function(gt){if(!ne.isDisabled()){var kt=ne.props.context.onNodeSelect;kt(gt,(0,fe.F)(ne.props))}},ne.onCheck=function(gt){if(!ne.isDisabled()){var kt=ne.props,Ct=kt.disableCheckbox,Cn=kt.checked,Qe=ne.props.context.onNodeCheck;if(!(!ne.isCheckable()||Ct)){var le=!Cn;Qe(gt,(0,fe.F)(ne.props),le)}}},ne.onMouseEnter=function(gt){var kt=ne.props.context.onNodeMouseEnter;kt(gt,(0,fe.F)(ne.props))},ne.onMouseLeave=function(gt){var kt=ne.props.context.onNodeMouseLeave;kt(gt,(0,fe.F)(ne.props))},ne.onContextMenu=function(gt){var kt=ne.props.context.onNodeContextMenu;kt(gt,(0,fe.F)(ne.props))},ne.onDragStart=function(gt){var kt=ne.props.context.onNodeDragStart;gt.stopPropagation(),ne.setState({dragNodeHighlight:!0}),kt(gt,(0,M.Z)(ne));try{gt.dataTransfer.setData("text/plain","")}catch(Ct){}},ne.onDragEnter=function(gt){var kt=ne.props.context.onNodeDragEnter;gt.preventDefault(),gt.stopPropagation(),kt(gt,(0,M.Z)(ne))},ne.onDragOver=function(gt){var kt=ne.props.context.onNodeDragOver;gt.preventDefault(),gt.stopPropagation(),kt(gt,(0,M.Z)(ne))},ne.onDragLeave=function(gt){var kt=ne.props.context.onNodeDragLeave;gt.stopPropagation(),kt(gt,(0,M.Z)(ne))},ne.onDragEnd=function(gt){var kt=ne.props.context.onNodeDragEnd;gt.stopPropagation(),ne.setState({dragNodeHighlight:!1}),kt(gt,(0,M.Z)(ne))},ne.onDrop=function(gt){var kt=ne.props.context.onNodeDrop;gt.preventDefault(),gt.stopPropagation(),ne.setState({dragNodeHighlight:!1}),kt(gt,(0,M.Z)(ne))},ne.onExpand=function(gt){var kt=ne.props,Ct=kt.loading,Cn=kt.context.onNodeExpand;Ct||Cn(gt,(0,fe.F)(ne.props))},ne.setSelectHandle=function(gt){ne.selectHandle=gt},ne.getNodeState=function(){var gt=ne.props.expanded;return ne.isLeaf()?null:gt?ye:pe},ne.hasChildren=function(){var gt=ne.props.eventKey,kt=ne.props.context.keyEntities,Ct=(0,Re.Z)(kt,gt)||{},Cn=Ct.children;return!!(Cn||[]).length},ne.isLeaf=function(){var gt=ne.props,kt=gt.isLeaf,Ct=gt.loaded,Cn=ne.props.context.loadData,Qe=ne.hasChildren();return kt===!1?!1:kt||!Cn&&!Qe||Cn&&Ct&&!Qe},ne.isDisabled=function(){var gt=ne.props.disabled,kt=ne.props.context.disabled;return!!(kt||gt)},ne.isCheckable=function(){var gt=ne.props.checkable,kt=ne.props.context.checkable;return!kt||gt===!1?!1:kt},ne.syncLoadData=function(gt){var kt=gt.expanded,Ct=gt.loading,Cn=gt.loaded,Qe=ne.props.context,le=Qe.loadData,ce=Qe.onNodeLoad;Ct||le&&kt&&!ne.isLeaf()&&!ne.hasChildren()&&!Cn&&ce((0,fe.F)(ne.props))},ne.isDraggable=function(){var gt=ne.props,kt=gt.data,Ct=gt.context.draggable;return!!(Ct&&(!Ct.nodeDraggable||Ct.nodeDraggable(kt)))},ne.renderDragHandler=function(){var gt=ne.props.context,kt=gt.draggable,Ct=gt.prefixCls;return kt!=null&&kt.icon?Xe.createElement("span",{className:"".concat(Ct,"-draggable-icon")},kt.icon):null},ne.renderSwitcherIconDom=function(gt){var kt=ne.props.switcherIcon,Ct=ne.props.context.switcherIcon,Cn=kt||Ct;return typeof Cn=="function"?Cn((0,B.Z)((0,B.Z)({},ne.props),{},{isLeaf:gt})):Cn},ne.renderSwitcher=function(){var gt=ne.props.expanded,kt=ne.props.context.prefixCls;if(ne.isLeaf()){var Ct=ne.renderSwitcherIconDom(!0);return Ct!==!1?Xe.createElement("span",{className:Ne()("".concat(kt,"-switcher"),"".concat(kt,"-switcher-noop"))},Ct):null}var Cn=Ne()("".concat(kt,"-switcher"),"".concat(kt,"-switcher_").concat(gt?ye:pe)),Qe=ne.renderSwitcherIconDom(!1);return Qe!==!1?Xe.createElement("span",{onClick:ne.onExpand,className:Cn},Qe):null},ne.renderCheckbox=function(){var gt=ne.props,kt=gt.checked,Ct=gt.halfChecked,Cn=gt.disableCheckbox,Qe=ne.props.context.prefixCls,le=ne.isDisabled(),ce=ne.isCheckable();if(!ce)return null;var Ht=typeof ce!="boolean"?ce:null;return Xe.createElement("span",{className:Ne()("".concat(Qe,"-checkbox"),kt&&"".concat(Qe,"-checkbox-checked"),!kt&&Ct&&"".concat(Qe,"-checkbox-indeterminate"),(le||Cn)&&"".concat(Qe,"-checkbox-disabled")),onClick:ne.onCheck},Ht)},ne.renderIcon=function(){var gt=ne.props.loading,kt=ne.props.context.prefixCls;return Xe.createElement("span",{className:Ne()("".concat(kt,"-iconEle"),"".concat(kt,"-icon__").concat(ne.getNodeState()||"docu"),gt&&"".concat(kt,"-icon_loading"))})},ne.renderSelector=function(){var gt=ne.state.dragNodeHighlight,kt=ne.props,Ct=kt.title,Cn=Ct===void 0?ke:Ct,Qe=kt.selected,le=kt.icon,ce=kt.loading,Ht=kt.data,Vt=ne.props.context,St=Vt.prefixCls,sn=Vt.showIcon,Ft=Vt.icon,oi=Vt.loadData,On=Vt.titleRender,ni=ne.isDisabled(),Jn="".concat(St,"-node-content-wrapper"),Mn;if(sn){var In=le||Ft;Mn=In?Xe.createElement("span",{className:Ne()("".concat(St,"-iconEle"),"".concat(St,"-icon__customize"))},typeof In=="function"?In(ne.props):In):ne.renderIcon()}else oi&&ce&&(Mn=ne.renderIcon());var re;typeof Cn=="function"?re=Cn(Ht):On?re=On(Ht):re=Cn;var z=Xe.createElement("span",{className:"".concat(St,"-title")},re);return Xe.createElement("span",{ref:ne.setSelectHandle,title:typeof Cn=="string"?Cn:"",className:Ne()("".concat(Jn),"".concat(Jn,"-").concat(ne.getNodeState()||"normal"),!ni&&(Qe||gt)&&"".concat(St,"-node-selected")),onMouseEnter:ne.onMouseEnter,onMouseLeave:ne.onMouseLeave,onContextMenu:ne.onContextMenu,onClick:ne.onSelectorClick,onDoubleClick:ne.onSelectorDoubleClick},Mn,z,ne.renderDropIndicator())},ne.renderDropIndicator=function(){var gt=ne.props,kt=gt.disabled,Ct=gt.eventKey,Cn=ne.props.context,Qe=Cn.draggable,le=Cn.dropLevelOffset,ce=Cn.dropPosition,Ht=Cn.prefixCls,Vt=Cn.indent,St=Cn.dropIndicatorRender,sn=Cn.dragOverNodeKey,Ft=Cn.direction,oi=!!Qe,On=!kt&&oi&&sn===Ct,ni=Vt!=null?Vt:ne.cacheIndent;return ne.cacheIndent=Vt,On?St({dropPosition:ce,dropLevelOffset:le,indent:ni,prefixCls:Ht,direction:Ft}):null},ne}return(0,F.Z)(Ye,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var at=this.props.selectable,Ge=this.props.context.selectable;return typeof at=="boolean"?at:Ge}},{key:"render",value:function(){var at,Ge=this.props,Pt=Ge.eventKey,gt=Ge.className,kt=Ge.style,Ct=Ge.dragOver,Cn=Ge.dragOverGapTop,Qe=Ge.dragOverGapBottom,le=Ge.isLeaf,ce=Ge.isStart,Ht=Ge.isEnd,Vt=Ge.expanded,St=Ge.selected,sn=Ge.checked,Ft=Ge.halfChecked,oi=Ge.loading,On=Ge.domRef,ni=Ge.active,Jn=Ge.data,Mn=Ge.onMouseMove,In=Ge.selectable,re=(0,O.Z)(Ge,me),z=this.props.context,k=z.prefixCls,j=z.filterTreeNode,Q=z.keyEntities,T=z.dropContainerKey,_e=z.dropTargetKey,It=z.draggingNodeKey,$e=this.isDisabled(),Pe=(0,Ee.Z)(re,{aria:!0,data:!0}),vt=(0,Re.Z)(Q,Pt)||{},ut=vt.level,tt=Ht[Ht.length-1],Et=this.isDraggable(),pn=!$e&&Et,nn=It===Pt,Kt=In!==void 0?{"aria-selected":!!In}:void 0;return Xe.createElement("div",(0,v.Z)({ref:On,className:Ne()(gt,"".concat(k,"-treenode"),(at={},(0,I.Z)(at,"".concat(k,"-treenode-disabled"),$e),(0,I.Z)(at,"".concat(k,"-treenode-switcher-").concat(Vt?"open":"close"),!le),(0,I.Z)(at,"".concat(k,"-treenode-checkbox-checked"),sn),(0,I.Z)(at,"".concat(k,"-treenode-checkbox-indeterminate"),Ft),(0,I.Z)(at,"".concat(k,"-treenode-selected"),St),(0,I.Z)(at,"".concat(k,"-treenode-loading"),oi),(0,I.Z)(at,"".concat(k,"-treenode-active"),ni),(0,I.Z)(at,"".concat(k,"-treenode-leaf-last"),tt),(0,I.Z)(at,"".concat(k,"-treenode-draggable"),Et),(0,I.Z)(at,"dragging",nn),(0,I.Z)(at,"drop-target",_e===Pt),(0,I.Z)(at,"drop-container",T===Pt),(0,I.Z)(at,"drag-over",!$e&&Ct),(0,I.Z)(at,"drag-over-gap-top",!$e&&Cn),(0,I.Z)(at,"drag-over-gap-bottom",!$e&&Qe),(0,I.Z)(at,"filter-node",j&&j((0,fe.F)(this.props))),at)),style:kt,draggable:pn,"aria-grabbed":nn,onDragStart:pn?this.onDragStart:void 0,onDragEnter:Et?this.onDragEnter:void 0,onDragOver:Et?this.onDragOver:void 0,onDragLeave:Et?this.onDragLeave:void 0,onDrop:Et?this.onDrop:void 0,onDragEnd:Et?this.onDragEnd:void 0,onMouseMove:Mn},Kt,Pe),Xe.createElement(Ie,{prefixCls:k,level:ut,isStart:ce,isEnd:Ht}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Ye}(Xe.Component),Te=function(Je){return Xe.createElement(Oe.k.Consumer,null,function(Ye){return Xe.createElement(ee,(0,v.Z)({},Je,{context:Ye}))})};Te.displayName="TreeNode",Te.isTreeNode=1;var Me=Te},39378:function(X,C,h){"use strict";h.d(C,{k:function(){return I}});var v=h(59301),I=v.createContext(null)},43858:function(X,C,h){"use strict";h.d(C,{O:function(){return Me.Z},Z:function(){return z}});var v=h(96663),I=h(90493),O=h(20135),B=h(44127),G=h(19127),F=h(52884),M=h(95727),de=h(89866),ae=h(65711),te=h(85745),Ne=h(92310),Ee=h.n(Ne),Xe=h(10228),Oe=h(26112),Ce=h(48736),Ie=h(59301),Re=h(39378);function fe(k){var j=k.dropPosition,Q=k.dropLevelOffset,T=k.indent,_e={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(j){case-1:_e.top=0,_e.left=-Q*T;break;case 1:_e.bottom=0,_e.left=-Q*T;break;case 0:_e.bottom=0,_e.left=T;break}return Ie.createElement("div",{style:_e})}function me(k){if(k==null)throw new TypeError("Cannot destructure "+k)}var ye=h(72071),pe=h(6620),ke=h(34280),ee=h(24916),Te=h(77900),Me=h(39417);function Le(k,j){var Q=Ie.useState(!1),T=(0,ye.Z)(Q,2),_e=T[0],It=T[1];Ie.useLayoutEffect(function(){if(_e)return k(),function(){j()}},[_e]),Ie.useLayoutEffect(function(){return It(!0),function(){It(!1)}},[])}var Je=h(71430),Ye=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],ne=function(j,Q){var T=j.className,_e=j.style,It=j.motion,$e=j.motionNodes,Pe=j.motionType,vt=j.onMotionStart,ut=j.onMotionEnd,tt=j.active,Et=j.treeNodeRequiredProps,pn=(0,pe.Z)(j,Ye),nn=Ie.useState(!0),Kt=(0,ye.Z)(nn,2),hn=Kt[0],an=Kt[1],et=Ie.useContext(Re.k),zt=et.prefixCls,dn=$e&&Pe!=="hide";(0,ke.Z)(function(){$e&&dn!==hn&&an(dn)},[$e]);var rn=function(){$e&&vt()},ze=Ie.useRef(!1),Un=function(){$e&&!ze.current&&(ze.current=!0,ut())};Le(rn,Un);var yn=function(Si){dn===Si&&Un()};return $e?Ie.createElement(Te.default,(0,v.Z)({ref:Q,visible:hn},It,{motionAppear:Pe==="show",onVisibleChanged:yn}),function(Bt,Si){var _i=Bt.className,Ii=Bt.style;return Ie.createElement("div",{ref:Si,className:Ee()("".concat(zt,"-treenode-motion"),_i),style:Ii},$e.map(function(cn){var fr=(0,v.Z)({},(me(cn.data),cn.data)),Xi=cn.title,ei=cn.key,Tr=cn.isStart,ur=cn.isEnd;delete fr.children;var U=(0,Je.H8)(ei,Et);return Ie.createElement(Me.Z,(0,v.Z)({},fr,U,{title:Xi,active:tt,data:cn.data,key:ei,isStart:Tr,isEnd:ur}))}))}):Ie.createElement(Me.Z,(0,v.Z)({domRef:Q,className:T,style:_e},pn,{active:tt}))};ne.displayName="MotionTreeNode";var at=Ie.forwardRef(ne),Ge=at;function Pt(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Q=k.length,T=j.length;if(Math.abs(Q-T)!==1)return{add:!1,key:null};function _e(It,$e){var Pe=new Map;It.forEach(function(ut){Pe.set(ut,!0)});var vt=$e.filter(function(ut){return!Pe.has(ut)});return vt.length===1?vt[0]:null}return Q<T?{add:!0,key:_e(k,j)}:{add:!1,key:_e(j,k)}}function gt(k,j,Q){var T=k.findIndex(function(Pe){return Pe.key===Q}),_e=k[T+1],It=j.findIndex(function(Pe){return Pe.key===Q});if(_e){var $e=j.findIndex(function(Pe){return Pe.key===_e.key});return j.slice(It+1,$e)}return j.slice(It+1)}var kt=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],Ct={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Cn=function(){},Qe="RC_TREE_MOTION_".concat(Math.random()),le={key:Qe},ce={key:Qe,level:0,index:0,pos:"0",node:le,nodes:[le]},Ht={parent:null,children:[],pos:ce.pos,data:le,title:null,key:Qe,isStart:[],isEnd:[]};function Vt(k,j,Q,T){return j===!1||!Q?k:k.slice(0,Math.ceil(Q/T)+1)}function St(k){var j=k.key,Q=k.pos;return(0,Je.km)(j,Q)}function sn(k){for(var j=String(k.data.key),Q=k;Q.parent;)Q=Q.parent,j="".concat(Q.data.key," > ").concat(j);return j}var Ft=Ie.forwardRef(function(k,j){var Q=k.prefixCls,T=k.data,_e=k.selectable,It=k.checkable,$e=k.expandedKeys,Pe=k.selectedKeys,vt=k.checkedKeys,ut=k.loadedKeys,tt=k.loadingKeys,Et=k.halfCheckedKeys,pn=k.keyEntities,nn=k.disabled,Kt=k.dragging,hn=k.dragOverNodeKey,an=k.dropPosition,et=k.motion,zt=k.height,dn=k.itemHeight,rn=k.virtual,ze=k.focusable,Un=k.activeItem,yn=k.focused,Bt=k.tabIndex,Si=k.onKeyDown,_i=k.onFocus,Ii=k.onBlur,cn=k.onActiveChange,fr=k.onListChangeStart,Xi=k.onListChangeEnd,ei=(0,pe.Z)(k,kt),Tr=Ie.useRef(null),ur=Ie.useRef(null);Ie.useImperativeHandle(j,function(){return{scrollTo:function(fn){Tr.current.scrollTo(fn)},getIndentWidth:function(){return ur.current.offsetWidth}}});var U=Ie.useState($e),mr=(0,ye.Z)(U,2),Er=mr[0],wr=mr[1],qr=Ie.useState(T),xo=(0,ye.Z)(qr,2),kr=xo[0],no=xo[1],rr=Ie.useState(T),Bi=(0,ye.Z)(rr,2),yi=Bi[0],ht=Bi[1],_n=Ie.useState([]),Vn=(0,ye.Z)(_n,2),pt=Vn[0],Ke=Vn[1],vn=Ie.useState(null),Fn=(0,ye.Z)(vn,2),on=Fn[0],Nt=Fn[1],Ve=Ie.useRef(T);Ve.current=T;function Ut(){var ot=Ve.current;no(ot),ht(ot),Ke([]),Nt(null),Xi()}(0,ke.Z)(function(){wr($e);var ot=Pt(Er,$e);if(ot.key!==null)if(ot.add){var fn=kr.findIndex(function(mt){var xn=mt.key;return xn===ot.key}),yt=Vt(gt(kr,T,ot.key),rn,zt,dn),je=kr.slice();je.splice(fn+1,0,Ht),ht(je),Ke(yt),Nt("show")}else{var L=T.findIndex(function(mt){var xn=mt.key;return xn===ot.key}),Rt=Vt(gt(T,kr,ot.key),rn,zt,dn),Jt=T.slice();Jt.splice(L+1,0,Ht),ht(Jt),Ke(Rt),Nt("hide")}else kr!==T&&(no(T),ht(T))},[$e,T]),Ie.useEffect(function(){Kt||Ut()},[Kt]);var Lt=et?yi:T,Wn={expandedKeys:$e,selectedKeys:Pe,loadedKeys:ut,loadingKeys:tt,checkedKeys:vt,halfCheckedKeys:Et,dragOverNodeKey:hn,dropPosition:an,keyEntities:pn};return Ie.createElement(Ie.Fragment,null,yn&&Un&&Ie.createElement("span",{style:Ct,"aria-live":"assertive"},sn(Un)),Ie.createElement("div",null,Ie.createElement("input",{style:Ct,disabled:ze===!1||nn,tabIndex:ze!==!1?Bt:null,onKeyDown:Si,onFocus:_i,onBlur:Ii,value:"",onChange:Cn,"aria-label":"for screen reader"})),Ie.createElement("div",{className:"".concat(Q,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},Ie.createElement("div",{className:"".concat(Q,"-indent")},Ie.createElement("div",{ref:ur,className:"".concat(Q,"-indent-unit")}))),Ie.createElement(ee.Z,(0,v.Z)({},ei,{data:Lt,itemKey:St,height:zt,fullHeight:!1,virtual:rn,itemHeight:dn,prefixCls:"".concat(Q,"-list"),ref:Tr,onVisibleChange:function(fn,yt){var je=new Set(fn),L=yt.filter(function(Rt){return!je.has(Rt)});L.some(function(Rt){return St(Rt)===Qe})&&Ut()}}),function(ot){var fn=ot.pos,yt=(0,v.Z)({},(me(ot.data),ot.data)),je=ot.title,L=ot.key,Rt=ot.isStart,Jt=ot.isEnd,mt=(0,Je.km)(L,fn);delete yt.key,delete yt.children;var xn=(0,Je.H8)(mt,Wn);return Ie.createElement(Ge,(0,v.Z)({},yt,xn,{title:je,active:!!Un&&L===Un.key,pos:fn,data:ot.data,isStart:Rt,isEnd:Jt,motion:et,motionNodes:L===Qe?pt:null,motionType:on,onMotionStart:fr,onMotionEnd:Ut,treeNodeRequiredProps:Wn,onMouseMove:function(){cn(null)}}))}))});Ft.displayName="NodeList";var oi=Ft,On=h(35654),ni=h(90782),Jn=h(67841),Mn=10,In=function(k){(0,ae.Z)(Q,k);var j=(0,te.Z)(Q);function Q(){var T;(0,F.Z)(this,Q);for(var _e=arguments.length,It=new Array(_e),$e=0;$e<_e;$e++)It[$e]=arguments[$e];return T=j.call.apply(j,[this].concat(It)),T.destroyed=!1,T.delayedDragEnterLogic=void 0,T.loadingRetryTimes={},T.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,Je.w$)()},T.dragStartMousePosition=null,T.dragNode=void 0,T.currentMouseOverDroppableNodeKey=null,T.listRef=Ie.createRef(),T.onNodeDragStart=function(Pe,vt){var ut=T.state,tt=ut.expandedKeys,Et=ut.keyEntities,pn=T.props.onDragStart,nn=vt.props.eventKey;T.dragNode=vt,T.dragStartMousePosition={x:Pe.clientX,y:Pe.clientY};var Kt=(0,On._5)(tt,nn);T.setState({draggingNodeKey:nn,dragChildrenKeys:(0,On.wA)(nn,Et),indent:T.listRef.current.getIndentWidth()}),T.setExpandedKeys(Kt),window.addEventListener("dragend",T.onWindowDragEnd),pn==null||pn({event:Pe,node:(0,Je.F)(vt.props)})},T.onNodeDragEnter=function(Pe,vt){var ut=T.state,tt=ut.expandedKeys,Et=ut.keyEntities,pn=ut.dragChildrenKeys,nn=ut.flattenNodes,Kt=ut.indent,hn=T.props,an=hn.onDragEnter,et=hn.onExpand,zt=hn.allowDrop,dn=hn.direction,rn=vt.props,ze=rn.pos,Un=rn.eventKey,yn=(0,de.Z)(T),Bt=yn.dragNode;if(T.currentMouseOverDroppableNodeKey!==Un&&(T.currentMouseOverDroppableNodeKey=Un),!Bt){T.resetDragState();return}var Si=(0,On.OM)(Pe,Bt,vt,Kt,T.dragStartMousePosition,zt,nn,Et,tt,dn),_i=Si.dropPosition,Ii=Si.dropLevelOffset,cn=Si.dropTargetKey,fr=Si.dropContainerKey,Xi=Si.dropTargetPos,ei=Si.dropAllowed,Tr=Si.dragOverNodeKey;if(pn.indexOf(cn)!==-1||!ei){T.resetDragState();return}if(T.delayedDragEnterLogic||(T.delayedDragEnterLogic={}),Object.keys(T.delayedDragEnterLogic).forEach(function(ur){clearTimeout(T.delayedDragEnterLogic[ur])}),Bt.props.eventKey!==vt.props.eventKey&&(Pe.persist(),T.delayedDragEnterLogic[ze]=window.setTimeout(function(){if(T.state.draggingNodeKey!==null){var ur=(0,G.Z)(tt),U=(0,Jn.Z)(Et,vt.props.eventKey);U&&(U.children||[]).length&&(ur=(0,On.L0)(tt,vt.props.eventKey)),"expandedKeys"in T.props||T.setExpandedKeys(ur),et==null||et(ur,{node:(0,Je.F)(vt.props),expanded:!0,nativeEvent:Pe.nativeEvent})}},800)),Bt.props.eventKey===cn&&Ii===0){T.resetDragState();return}T.setState({dragOverNodeKey:Tr,dropPosition:_i,dropLevelOffset:Ii,dropTargetKey:cn,dropContainerKey:fr,dropTargetPos:Xi,dropAllowed:ei}),an==null||an({event:Pe,node:(0,Je.F)(vt.props),expandedKeys:tt})},T.onNodeDragOver=function(Pe,vt){var ut=T.state,tt=ut.dragChildrenKeys,Et=ut.flattenNodes,pn=ut.keyEntities,nn=ut.expandedKeys,Kt=ut.indent,hn=T.props,an=hn.onDragOver,et=hn.allowDrop,zt=hn.direction,dn=(0,de.Z)(T),rn=dn.dragNode;if(rn){var ze=(0,On.OM)(Pe,rn,vt,Kt,T.dragStartMousePosition,et,Et,pn,nn,zt),Un=ze.dropPosition,yn=ze.dropLevelOffset,Bt=ze.dropTargetKey,Si=ze.dropContainerKey,_i=ze.dropAllowed,Ii=ze.dropTargetPos,cn=ze.dragOverNodeKey;tt.indexOf(Bt)!==-1||!_i||(rn.props.eventKey===Bt&&yn===0?T.state.dropPosition===null&&T.state.dropLevelOffset===null&&T.state.dropTargetKey===null&&T.state.dropContainerKey===null&&T.state.dropTargetPos===null&&T.state.dropAllowed===!1&&T.state.dragOverNodeKey===null||T.resetDragState():Un===T.state.dropPosition&&yn===T.state.dropLevelOffset&&Bt===T.state.dropTargetKey&&Si===T.state.dropContainerKey&&Ii===T.state.dropTargetPos&&_i===T.state.dropAllowed&&cn===T.state.dragOverNodeKey||T.setState({dropPosition:Un,dropLevelOffset:yn,dropTargetKey:Bt,dropContainerKey:Si,dropTargetPos:Ii,dropAllowed:_i,dragOverNodeKey:cn}),an==null||an({event:Pe,node:(0,Je.F)(vt.props)}))}},T.onNodeDragLeave=function(Pe,vt){T.currentMouseOverDroppableNodeKey===vt.props.eventKey&&!Pe.currentTarget.contains(Pe.relatedTarget)&&(T.resetDragState(),T.currentMouseOverDroppableNodeKey=null);var ut=T.props.onDragLeave;ut==null||ut({event:Pe,node:(0,Je.F)(vt.props)})},T.onWindowDragEnd=function(Pe){T.onNodeDragEnd(Pe,null,!0),window.removeEventListener("dragend",T.onWindowDragEnd)},T.onNodeDragEnd=function(Pe,vt){var ut=T.props.onDragEnd;T.setState({dragOverNodeKey:null}),T.cleanDragState(),ut==null||ut({event:Pe,node:(0,Je.F)(vt.props)}),T.dragNode=null,window.removeEventListener("dragend",T.onWindowDragEnd)},T.onNodeDrop=function(Pe,vt){var ut,tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Et=T.state,pn=Et.dragChildrenKeys,nn=Et.dropPosition,Kt=Et.dropTargetKey,hn=Et.dropTargetPos,an=Et.dropAllowed;if(an){var et=T.props.onDrop;if(T.setState({dragOverNodeKey:null}),T.cleanDragState(),Kt!==null){var zt=(0,B.Z)((0,B.Z)({},(0,Je.H8)(Kt,T.getTreeNodeRequiredProps())),{},{active:((ut=T.getActiveItem())===null||ut===void 0?void 0:ut.key)===Kt,data:(0,Jn.Z)(T.state.keyEntities,Kt).node}),dn=pn.indexOf(Kt)!==-1;(0,Ce.ZP)(!dn,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var rn=(0,On.yx)(hn),ze={event:Pe,node:(0,Je.F)(zt),dragNode:T.dragNode?(0,Je.F)(T.dragNode.props):null,dragNodesKeys:[T.dragNode.props.eventKey].concat(pn),dropToGap:nn!==0,dropPosition:nn+Number(rn[rn.length-1])};tt||et==null||et(ze),T.dragNode=null}}},T.cleanDragState=function(){var Pe=T.state.draggingNodeKey;Pe!==null&&T.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),T.dragStartMousePosition=null,T.currentMouseOverDroppableNodeKey=null},T.triggerExpandActionExpand=function(Pe,vt){var ut=T.state,tt=ut.expandedKeys,Et=ut.flattenNodes,pn=vt.expanded,nn=vt.key,Kt=vt.isLeaf;if(!(Kt||Pe.shiftKey||Pe.metaKey||Pe.ctrlKey)){var hn=Et.filter(function(et){return et.key===nn})[0],an=(0,Je.F)((0,B.Z)((0,B.Z)({},(0,Je.H8)(nn,T.getTreeNodeRequiredProps())),{},{data:hn.data}));T.setExpandedKeys(pn?(0,On._5)(tt,nn):(0,On.L0)(tt,nn)),T.onNodeExpand(Pe,an)}},T.onNodeClick=function(Pe,vt){var ut=T.props,tt=ut.onClick,Et=ut.expandAction;Et==="click"&&T.triggerExpandActionExpand(Pe,vt),tt==null||tt(Pe,vt)},T.onNodeDoubleClick=function(Pe,vt){var ut=T.props,tt=ut.onDoubleClick,Et=ut.expandAction;Et==="doubleClick"&&T.triggerExpandActionExpand(Pe,vt),tt==null||tt(Pe,vt)},T.onNodeSelect=function(Pe,vt){var ut=T.state.selectedKeys,tt=T.state,Et=tt.keyEntities,pn=tt.fieldNames,nn=T.props,Kt=nn.onSelect,hn=nn.multiple,an=vt.selected,et=vt[pn.key],zt=!an;zt?hn?ut=(0,On.L0)(ut,et):ut=[et]:ut=(0,On._5)(ut,et);var dn=ut.map(function(rn){var ze=(0,Jn.Z)(Et,rn);return ze?ze.node:null}).filter(function(rn){return rn});T.setUncontrolledState({selectedKeys:ut}),Kt==null||Kt(ut,{event:"select",selected:zt,node:vt,selectedNodes:dn,nativeEvent:Pe.nativeEvent})},T.onNodeCheck=function(Pe,vt,ut){var tt=T.state,Et=tt.keyEntities,pn=tt.checkedKeys,nn=tt.halfCheckedKeys,Kt=T.props,hn=Kt.checkStrictly,an=Kt.onCheck,et=vt.key,zt,dn={event:"check",node:vt,checked:ut,nativeEvent:Pe.nativeEvent};if(hn){var rn=ut?(0,On.L0)(pn,et):(0,On._5)(pn,et),ze=(0,On._5)(nn,et);zt={checked:rn,halfChecked:ze},dn.checkedNodes=rn.map(function(Ii){return(0,Jn.Z)(Et,Ii)}).filter(function(Ii){return Ii}).map(function(Ii){return Ii.node}),T.setUncontrolledState({checkedKeys:rn})}else{var Un=(0,ni.S)([].concat((0,G.Z)(pn),[et]),!0,Et),yn=Un.checkedKeys,Bt=Un.halfCheckedKeys;if(!ut){var Si=new Set(yn);Si.delete(et);var _i=(0,ni.S)(Array.from(Si),{checked:!1,halfCheckedKeys:Bt},Et);yn=_i.checkedKeys,Bt=_i.halfCheckedKeys}zt=yn,dn.checkedNodes=[],dn.checkedNodesPositions=[],dn.halfCheckedKeys=Bt,yn.forEach(function(Ii){var cn=(0,Jn.Z)(Et,Ii);if(cn){var fr=cn.node,Xi=cn.pos;dn.checkedNodes.push(fr),dn.checkedNodesPositions.push({node:fr,pos:Xi})}}),T.setUncontrolledState({checkedKeys:yn},!1,{halfCheckedKeys:Bt})}an==null||an(zt,dn)},T.onNodeLoad=function(Pe){var vt=Pe.key,ut=new Promise(function(tt,Et){T.setState(function(pn){var nn=pn.loadedKeys,Kt=nn===void 0?[]:nn,hn=pn.loadingKeys,an=hn===void 0?[]:hn,et=T.props,zt=et.loadData,dn=et.onLoad;if(!zt||Kt.indexOf(vt)!==-1||an.indexOf(vt)!==-1)return null;var rn=zt(Pe);return rn.then(function(){var ze=T.state.loadedKeys,Un=(0,On.L0)(ze,vt);dn==null||dn(Un,{event:"load",node:Pe}),T.setUncontrolledState({loadedKeys:Un}),T.setState(function(yn){return{loadingKeys:(0,On._5)(yn.loadingKeys,vt)}}),tt()}).catch(function(ze){if(T.setState(function(yn){return{loadingKeys:(0,On._5)(yn.loadingKeys,vt)}}),T.loadingRetryTimes[vt]=(T.loadingRetryTimes[vt]||0)+1,T.loadingRetryTimes[vt]>=Mn){var Un=T.state.loadedKeys;(0,Ce.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),T.setUncontrolledState({loadedKeys:(0,On.L0)(Un,vt)}),tt()}Et(ze)}),{loadingKeys:(0,On.L0)(an,vt)}})});return ut.catch(function(){}),ut},T.onNodeMouseEnter=function(Pe,vt){var ut=T.props.onMouseEnter;ut==null||ut({event:Pe,node:vt})},T.onNodeMouseLeave=function(Pe,vt){var ut=T.props.onMouseLeave;ut==null||ut({event:Pe,node:vt})},T.onNodeContextMenu=function(Pe,vt){var ut=T.props.onRightClick;ut&&(Pe.preventDefault(),ut({event:Pe,node:vt}))},T.onFocus=function(){var Pe=T.props.onFocus;T.setState({focused:!0});for(var vt=arguments.length,ut=new Array(vt),tt=0;tt<vt;tt++)ut[tt]=arguments[tt];Pe==null||Pe.apply(void 0,ut)},T.onBlur=function(){var Pe=T.props.onBlur;T.setState({focused:!1}),T.onActiveChange(null);for(var vt=arguments.length,ut=new Array(vt),tt=0;tt<vt;tt++)ut[tt]=arguments[tt];Pe==null||Pe.apply(void 0,ut)},T.getTreeNodeRequiredProps=function(){var Pe=T.state,vt=Pe.expandedKeys,ut=Pe.selectedKeys,tt=Pe.loadedKeys,Et=Pe.loadingKeys,pn=Pe.checkedKeys,nn=Pe.halfCheckedKeys,Kt=Pe.dragOverNodeKey,hn=Pe.dropPosition,an=Pe.keyEntities;return{expandedKeys:vt||[],selectedKeys:ut||[],loadedKeys:tt||[],loadingKeys:Et||[],checkedKeys:pn||[],halfCheckedKeys:nn||[],dragOverNodeKey:Kt,dropPosition:hn,keyEntities:an}},T.setExpandedKeys=function(Pe){var vt=T.state,ut=vt.treeData,tt=vt.fieldNames,Et=(0,Je.oH)(ut,Pe,tt);T.setUncontrolledState({expandedKeys:Pe,flattenNodes:Et},!0)},T.onNodeExpand=function(Pe,vt){var ut=T.state.expandedKeys,tt=T.state,Et=tt.listChanging,pn=tt.fieldNames,nn=T.props,Kt=nn.onExpand,hn=nn.loadData,an=vt.expanded,et=vt[pn.key];if(!Et){var zt=ut.indexOf(et),dn=!an;if((0,Ce.ZP)(an&&zt!==-1||!an&&zt===-1,"Expand state not sync with index check"),dn?ut=(0,On.L0)(ut,et):ut=(0,On._5)(ut,et),T.setExpandedKeys(ut),Kt==null||Kt(ut,{node:vt,expanded:dn,nativeEvent:Pe.nativeEvent}),dn&&hn){var rn=T.onNodeLoad(vt);rn&&rn.then(function(){var ze=(0,Je.oH)(T.state.treeData,ut,pn);T.setUncontrolledState({flattenNodes:ze})}).catch(function(){var ze=T.state.expandedKeys,Un=(0,On._5)(ze,et);T.setExpandedKeys(Un)})}}},T.onListChangeStart=function(){T.setUncontrolledState({listChanging:!0})},T.onListChangeEnd=function(){setTimeout(function(){T.setUncontrolledState({listChanging:!1})})},T.onActiveChange=function(Pe){var vt=T.state.activeKey,ut=T.props.onActiveChange;vt!==Pe&&(T.setState({activeKey:Pe}),Pe!==null&&T.scrollTo({key:Pe}),ut==null||ut(Pe))},T.getActiveItem=function(){var Pe=T.state,vt=Pe.activeKey,ut=Pe.flattenNodes;return vt===null?null:ut.find(function(tt){var Et=tt.key;return Et===vt})||null},T.offsetActiveKey=function(Pe){var vt=T.state,ut=vt.flattenNodes,tt=vt.activeKey,Et=ut.findIndex(function(Kt){var hn=Kt.key;return hn===tt});Et===-1&&Pe<0&&(Et=ut.length),Et=(Et+Pe+ut.length)%ut.length;var pn=ut[Et];if(pn){var nn=pn.key;T.onActiveChange(nn)}else T.onActiveChange(null)},T.onKeyDown=function(Pe){var vt=T.state,ut=vt.activeKey,tt=vt.expandedKeys,Et=vt.checkedKeys,pn=vt.fieldNames,nn=T.props,Kt=nn.onKeyDown,hn=nn.checkable,an=nn.selectable;switch(Pe.which){case Xe.Z.UP:{T.offsetActiveKey(-1),Pe.preventDefault();break}case Xe.Z.DOWN:{T.offsetActiveKey(1),Pe.preventDefault();break}}var et=T.getActiveItem();if(et&&et.data){var zt=T.getTreeNodeRequiredProps(),dn=et.data.isLeaf===!1||!!(et.data[pn.children]||[]).length,rn=(0,Je.F)((0,B.Z)((0,B.Z)({},(0,Je.H8)(ut,zt)),{},{data:et.data,active:!0}));switch(Pe.which){case Xe.Z.LEFT:{dn&&tt.includes(ut)?T.onNodeExpand({},rn):et.parent&&T.onActiveChange(et.parent.key),Pe.preventDefault();break}case Xe.Z.RIGHT:{dn&&!tt.includes(ut)?T.onNodeExpand({},rn):et.children&&et.children.length&&T.onActiveChange(et.children[0].key),Pe.preventDefault();break}case Xe.Z.ENTER:case Xe.Z.SPACE:{hn&&!rn.disabled&&rn.checkable!==!1&&!rn.disableCheckbox?T.onNodeCheck({},rn,!Et.includes(ut)):!hn&&an&&!rn.disabled&&rn.selectable!==!1&&T.onNodeSelect({},rn);break}}}Kt==null||Kt(Pe)},T.setUncontrolledState=function(Pe){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ut=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!T.destroyed){var tt=!1,Et=!0,pn={};Object.keys(Pe).forEach(function(nn){if(nn in T.props){Et=!1;return}tt=!0,pn[nn]=Pe[nn]}),tt&&(!vt||Et)&&T.setState((0,B.Z)((0,B.Z)({},pn),ut))}},T.scrollTo=function(Pe){T.listRef.current.scrollTo(Pe)},T}return(0,M.Z)(Q,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var _e=this.props.activeKey;_e!==void 0&&_e!==this.state.activeKey&&(this.setState({activeKey:_e}),_e!==null&&this.scrollTo({key:_e}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var _e,It=this.state,$e=It.focused,Pe=It.flattenNodes,vt=It.keyEntities,ut=It.draggingNodeKey,tt=It.activeKey,Et=It.dropLevelOffset,pn=It.dropContainerKey,nn=It.dropTargetKey,Kt=It.dropPosition,hn=It.dragOverNodeKey,an=It.indent,et=this.props,zt=et.prefixCls,dn=et.className,rn=et.style,ze=et.showLine,Un=et.focusable,yn=et.tabIndex,Bt=yn===void 0?0:yn,Si=et.selectable,_i=et.showIcon,Ii=et.icon,cn=et.switcherIcon,fr=et.draggable,Xi=et.checkable,ei=et.checkStrictly,Tr=et.disabled,ur=et.motion,U=et.loadData,mr=et.filterTreeNode,Er=et.height,wr=et.itemHeight,qr=et.virtual,xo=et.titleRender,kr=et.dropIndicatorRender,no=et.onContextMenu,rr=et.onScroll,Bi=et.direction,yi=et.rootClassName,ht=et.rootStyle,_n=(0,Oe.Z)(this.props,{aria:!0,data:!0}),Vn;return fr&&((0,O.Z)(fr)==="object"?Vn=fr:typeof fr=="function"?Vn={nodeDraggable:fr}:Vn={}),Ie.createElement(Re.k.Provider,{value:{prefixCls:zt,selectable:Si,showIcon:_i,icon:Ii,switcherIcon:cn,draggable:Vn,draggingNodeKey:ut,checkable:Xi,checkStrictly:ei,disabled:Tr,keyEntities:vt,dropLevelOffset:Et,dropContainerKey:pn,dropTargetKey:nn,dropPosition:Kt,dragOverNodeKey:hn,indent:an,direction:Bi,dropIndicatorRender:kr,loadData:U,filterTreeNode:mr,titleRender:xo,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},Ie.createElement("div",{role:"tree",className:Ee()(zt,dn,yi,(_e={},(0,I.Z)(_e,"".concat(zt,"-show-line"),ze),(0,I.Z)(_e,"".concat(zt,"-focused"),$e),(0,I.Z)(_e,"".concat(zt,"-active-focused"),tt!==null),_e)),style:ht},Ie.createElement(oi,(0,v.Z)({ref:this.listRef,prefixCls:zt,style:rn,data:Pe,disabled:Tr,selectable:Si,checkable:!!Xi,motion:ur,dragging:ut!==null,height:Er,itemHeight:wr,virtual:qr,focusable:Un,focused:$e,tabIndex:Bt,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:no,onScroll:rr},this.getTreeNodeRequiredProps(),_n))))}}],[{key:"getDerivedStateFromProps",value:function(_e,It){var $e=It.prevProps,Pe={prevProps:_e};function vt(Un){return!$e&&Un in _e||$e&&$e[Un]!==_e[Un]}var ut,tt=It.fieldNames;if(vt("fieldNames")&&(tt=(0,Je.w$)(_e.fieldNames),Pe.fieldNames=tt),vt("treeData")?ut=_e.treeData:vt("children")&&((0,Ce.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),ut=(0,Je.zn)(_e.children)),ut){Pe.treeData=ut;var Et=(0,Je.I8)(ut,{fieldNames:tt});Pe.keyEntities=(0,B.Z)((0,I.Z)({},Qe,ce),Et.keyEntities)}var pn=Pe.keyEntities||It.keyEntities;if(vt("expandedKeys")||$e&&vt("autoExpandParent"))Pe.expandedKeys=_e.autoExpandParent||!$e&&_e.defaultExpandParent?(0,On.r7)(_e.expandedKeys,pn):_e.expandedKeys;else if(!$e&&_e.defaultExpandAll){var nn=(0,B.Z)({},pn);delete nn[Qe],Pe.expandedKeys=Object.keys(nn).map(function(Un){return nn[Un].key})}else!$e&&_e.defaultExpandedKeys&&(Pe.expandedKeys=_e.autoExpandParent||_e.defaultExpandParent?(0,On.r7)(_e.defaultExpandedKeys,pn):_e.defaultExpandedKeys);if(Pe.expandedKeys||delete Pe.expandedKeys,ut||Pe.expandedKeys){var Kt=(0,Je.oH)(ut||It.treeData,Pe.expandedKeys||It.expandedKeys,tt);Pe.flattenNodes=Kt}if(_e.selectable&&(vt("selectedKeys")?Pe.selectedKeys=(0,On.BT)(_e.selectedKeys,_e):!$e&&_e.defaultSelectedKeys&&(Pe.selectedKeys=(0,On.BT)(_e.defaultSelectedKeys,_e))),_e.checkable){var hn;if(vt("checkedKeys")?hn=(0,On.E6)(_e.checkedKeys)||{}:!$e&&_e.defaultCheckedKeys?hn=(0,On.E6)(_e.defaultCheckedKeys)||{}:ut&&(hn=(0,On.E6)(_e.checkedKeys)||{checkedKeys:It.checkedKeys,halfCheckedKeys:It.halfCheckedKeys}),hn){var an=hn,et=an.checkedKeys,zt=et===void 0?[]:et,dn=an.halfCheckedKeys,rn=dn===void 0?[]:dn;if(!_e.checkStrictly){var ze=(0,ni.S)(zt,!0,pn);zt=ze.checkedKeys,rn=ze.halfCheckedKeys}Pe.checkedKeys=zt,Pe.halfCheckedKeys=rn}}return vt("loadedKeys")&&(Pe.loadedKeys=_e.loadedKeys),Pe}}]),Q}(Ie.Component);In.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:fe,allowDrop:function(){return!0},expandAction:!1},In.TreeNode=Me.Z;var re=In,z=re},35654:function(X,C,h){"use strict";h.d(C,{BT:function(){return Ie},E6:function(){return me},L0:function(){return te},OM:function(){return Ce},_5:function(){return ae},r7:function(){return ye},wA:function(){return Ee},yx:function(){return Ne}});var v=h(19127),I=h(20135),O=h(48736),B=h(59301),G=h(39417),F=h(67841),M=h(71430),de=null;function ae(pe,ke){if(!pe)return[];var ee=pe.slice(),Te=ee.indexOf(ke);return Te>=0&&ee.splice(Te,1),ee}function te(pe,ke){var ee=(pe||[]).slice();return ee.indexOf(ke)===-1&&ee.push(ke),ee}function Ne(pe){return pe.split("-")}function Ee(pe,ke){var ee=[],Te=(0,F.Z)(ke,pe);function Me(){var Le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Le.forEach(function(Je){var Ye=Je.key,ne=Je.children;ee.push(Ye),Me(ne)})}return Me(Te.children),ee}function Xe(pe){if(pe.parent){var ke=Ne(pe.pos);return Number(ke[ke.length-1])===pe.parent.children.length-1}return!1}function Oe(pe){var ke=Ne(pe.pos);return Number(ke[ke.length-1])===0}function Ce(pe,ke,ee,Te,Me,Le,Je,Ye,ne,at){var Ge,Pt=pe.clientX,gt=pe.clientY,kt=pe.target.getBoundingClientRect(),Ct=kt.top,Cn=kt.height,Qe=(at==="rtl"?-1:1)*(((Me==null?void 0:Me.x)||0)-Pt),le=(Qe-12)/Te,ce=(0,F.Z)(Ye,ee.props.eventKey);if(gt<Ct+Cn/2){var Ht=Je.findIndex(function(z){return z.key===ce.key}),Vt=Ht<=0?0:Ht-1,St=Je[Vt].key;ce=(0,F.Z)(Ye,St)}var sn=ce.key,Ft=ce,oi=ce.key,On=0,ni=0;if(!ne.includes(sn))for(var Jn=0;Jn<le&&Xe(ce);Jn+=1)ce=ce.parent,ni+=1;var Mn=ke.props.data,In=ce.node,re=!0;return Oe(ce)&&ce.level===0&&gt<Ct+Cn/2&&Le({dragNode:Mn,dropNode:In,dropPosition:-1})&&ce.key===ee.props.eventKey?On=-1:(Ft.children||[]).length&&ne.includes(oi)?Le({dragNode:Mn,dropNode:In,dropPosition:0})?On=0:re=!1:ni===0?le>-1.5?Le({dragNode:Mn,dropNode:In,dropPosition:1})?On=1:re=!1:Le({dragNode:Mn,dropNode:In,dropPosition:0})?On=0:Le({dragNode:Mn,dropNode:In,dropPosition:1})?On=1:re=!1:Le({dragNode:Mn,dropNode:In,dropPosition:1})?On=1:re=!1,{dropPosition:On,dropLevelOffset:ni,dropTargetKey:ce.key,dropTargetPos:ce.pos,dragOverNodeKey:oi,dropContainerKey:On===0?null:((Ge=ce.parent)===null||Ge===void 0?void 0:Ge.key)||null,dropAllowed:re}}function Ie(pe,ke){if(pe){var ee=ke.multiple;return ee?pe.slice():pe.length?[pe[0]]:pe}}var Re=function(ke){return ke};function fe(pe,ke){if(!pe)return[];var ee=ke||{},Te=ee.processProps,Me=Te===void 0?Re:Te,Le=Array.isArray(pe)?pe:[pe];return Le.map(function(Je){var Ye=Je.children,ne=_objectWithoutProperties(Je,de),at=fe(Ye,ke);return React.createElement(TreeNode,_extends({key:ne.key},Me(ne)),at)})}function me(pe){if(!pe)return null;var ke;if(Array.isArray(pe))ke={checkedKeys:pe,halfCheckedKeys:void 0};else if((0,I.Z)(pe)==="object")ke={checkedKeys:pe.checked||void 0,halfCheckedKeys:pe.halfChecked||void 0};else return(0,O.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return ke}function ye(pe,ke){var ee=new Set;function Te(Me){if(!ee.has(Me)){var Le=(0,F.Z)(ke,Me);if(Le){ee.add(Me);var Je=Le.parent,Ye=Le.node;Ye.disabled||Je&&Te(Je.key)}}}return(pe||[]).forEach(function(Me){Te(Me)}),(0,v.Z)(ee)}},90782:function(X,C,h){"use strict";h.d(C,{S:function(){return M}});var v=h(48736),I=h(67841);function O(de,ae){var te=new Set;return de.forEach(function(Ne){ae.has(Ne)||te.add(Ne)}),te}function B(de){var ae=de||{},te=ae.disabled,Ne=ae.disableCheckbox,Ee=ae.checkable;return!!(te||Ne)||Ee===!1}function G(de,ae,te,Ne){for(var Ee=new Set(de),Xe=new Set,Oe=0;Oe<=te;Oe+=1){var Ce=ae.get(Oe)||new Set;Ce.forEach(function(me){var ye=me.key,pe=me.node,ke=me.children,ee=ke===void 0?[]:ke;Ee.has(ye)&&!Ne(pe)&&ee.filter(function(Te){return!Ne(Te.node)}).forEach(function(Te){Ee.add(Te.key)})})}for(var Ie=new Set,Re=te;Re>=0;Re-=1){var fe=ae.get(Re)||new Set;fe.forEach(function(me){var ye=me.parent,pe=me.node;if(!(Ne(pe)||!me.parent||Ie.has(me.parent.key))){if(Ne(me.parent.node)){Ie.add(ye.key);return}var ke=!0,ee=!1;(ye.children||[]).filter(function(Te){return!Ne(Te.node)}).forEach(function(Te){var Me=Te.key,Le=Ee.has(Me);ke&&!Le&&(ke=!1),!ee&&(Le||Xe.has(Me))&&(ee=!0)}),ke&&Ee.add(ye.key),ee&&Xe.add(ye.key),Ie.add(ye.key)}})}return{checkedKeys:Array.from(Ee),halfCheckedKeys:Array.from(O(Xe,Ee))}}function F(de,ae,te,Ne,Ee){for(var Xe=new Set(de),Oe=new Set(ae),Ce=0;Ce<=Ne;Ce+=1){var Ie=te.get(Ce)||new Set;Ie.forEach(function(ye){var pe=ye.key,ke=ye.node,ee=ye.children,Te=ee===void 0?[]:ee;!Xe.has(pe)&&!Oe.has(pe)&&!Ee(ke)&&Te.filter(function(Me){return!Ee(Me.node)}).forEach(function(Me){Xe.delete(Me.key)})})}Oe=new Set;for(var Re=new Set,fe=Ne;fe>=0;fe-=1){var me=te.get(fe)||new Set;me.forEach(function(ye){var pe=ye.parent,ke=ye.node;if(!(Ee(ke)||!ye.parent||Re.has(ye.parent.key))){if(Ee(ye.parent.node)){Re.add(pe.key);return}var ee=!0,Te=!1;(pe.children||[]).filter(function(Me){return!Ee(Me.node)}).forEach(function(Me){var Le=Me.key,Je=Xe.has(Le);ee&&!Je&&(ee=!1),!Te&&(Je||Oe.has(Le))&&(Te=!0)}),ee||Xe.delete(pe.key),Te&&Oe.add(pe.key),Re.add(pe.key)}})}return{checkedKeys:Array.from(Xe),halfCheckedKeys:Array.from(O(Oe,Xe))}}function M(de,ae,te,Ne){var Ee=[],Xe;Ne?Xe=Ne:Xe=B;var Oe=new Set(de.filter(function(fe){var me=!!(0,I.Z)(te,fe);return me||Ee.push(fe),me})),Ce=new Map,Ie=0;Object.keys(te).forEach(function(fe){var me=te[fe],ye=me.level,pe=Ce.get(ye);pe||(pe=new Set,Ce.set(ye,pe)),pe.add(me),Ie=Math.max(Ie,ye)}),(0,v.ZP)(!Ee.length,"Tree missing follow keys: ".concat(Ee.slice(0,100).map(function(fe){return"'".concat(fe,"'")}).join(", ")));var Re;return ae===!0?Re=G(Oe,Ce,Ie,Xe):Re=F(Oe,ae.halfCheckedKeys,Ce,Ie,Xe),Re}},67841:function(X,C,h){"use strict";h.d(C,{Z:function(){return v}});function v(I,O){return I[O]}},71430:function(X,C,h){"use strict";h.d(C,{F:function(){return ye},H8:function(){return me},I8:function(){return fe},km:function(){return Ee},oH:function(){return Ie},w$:function(){return Xe},zn:function(){return Ce}});var v=h(20135),I=h(19127),O=h(44127),B=h(6620),G=h(11592),F=h(2738),M=h(48736),de=h(67841),ae=["children"];function te(pe,ke){return"".concat(pe,"-").concat(ke)}function Ne(pe){return pe&&pe.type&&pe.type.isTreeNode}function Ee(pe,ke){return pe!=null?pe:ke}function Xe(pe){var ke=pe||{},ee=ke.title,Te=ke._title,Me=ke.key,Le=ke.children,Je=ee||"title";return{title:Je,_title:Te||[Je],key:Me||"key",children:Le||"children"}}function Oe(pe,ke){var ee=new Map;function Te(Me){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Me||[]).forEach(function(Je){var Ye=Je[ke.key],ne=Je[ke.children];warning(Ye!=null,"Tree node must have a certain key: [".concat(Le).concat(Ye,"]"));var at=String(Ye);warning(!ee.has(at)||Ye===null||Ye===void 0,"Same 'key' exist in the Tree: ".concat(at)),ee.set(at,!0),Te(ne,"".concat(Le).concat(at," > "))})}Te(pe)}function Ce(pe){function ke(ee){var Te=(0,G.Z)(ee);return Te.map(function(Me){if(!Ne(Me))return(0,M.ZP)(!Me,"Tree/TreeNode can only accept TreeNode as children."),null;var Le=Me.key,Je=Me.props,Ye=Je.children,ne=(0,B.Z)(Je,ae),at=(0,O.Z)({key:Le},ne),Ge=ke(Ye);return Ge.length&&(at.children=Ge),at}).filter(function(Me){return Me})}return ke(pe)}function Ie(pe,ke,ee){var Te=Xe(ee),Me=Te._title,Le=Te.key,Je=Te.children,Ye=new Set(ke===!0?[]:ke),ne=[];function at(Ge){var Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ge.map(function(gt,kt){for(var Ct=te(Pt?Pt.pos:"0",kt),Cn=Ee(gt[Le],Ct),Qe,le=0;le<Me.length;le+=1){var ce=Me[le];if(gt[ce]!==void 0){Qe=gt[ce];break}}var Ht=(0,O.Z)((0,O.Z)({},(0,F.Z)(gt,[].concat((0,I.Z)(Me),[Le,Je]))),{},{title:Qe,key:Cn,parent:Pt,pos:Ct,children:null,data:gt,isStart:[].concat((0,I.Z)(Pt?Pt.isStart:[]),[kt===0]),isEnd:[].concat((0,I.Z)(Pt?Pt.isEnd:[]),[kt===Ge.length-1])});return ne.push(Ht),ke===!0||Ye.has(Cn)?Ht.children=at(gt[Je]||[],Ht):Ht.children=[],Ht})}return at(pe),ne}function Re(pe,ke,ee){var Te={};(0,v.Z)(ee)==="object"?Te=ee:Te={externalGetKey:ee},Te=Te||{};var Me=Te,Le=Me.childrenPropName,Je=Me.externalGetKey,Ye=Me.fieldNames,ne=Xe(Ye),at=ne.key,Ge=ne.children,Pt=Le||Ge,gt;Je?typeof Je=="string"?gt=function(Cn){return Cn[Je]}:typeof Je=="function"&&(gt=function(Cn){return Je(Cn)}):gt=function(Cn,Qe){return Ee(Cn[at],Qe)};function kt(Ct,Cn,Qe,le){var ce=Ct?Ct[Pt]:pe,Ht=Ct?te(Qe.pos,Cn):"0",Vt=Ct?[].concat((0,I.Z)(le),[Ct]):[];if(Ct){var St=gt(Ct,Ht),sn={node:Ct,index:Cn,pos:Ht,key:St,parentPos:Qe.node?Qe.pos:null,level:Qe.level+1,nodes:Vt};ke(sn)}ce&&ce.forEach(function(Ft,oi){kt(Ft,oi,{node:Ct,pos:Ht,level:Qe?Qe.level+1:-1},Vt)})}kt(null)}function fe(pe){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ee=ke.initWrapper,Te=ke.processEntity,Me=ke.onProcessFinished,Le=ke.externalGetKey,Je=ke.childrenPropName,Ye=ke.fieldNames,ne=arguments.length>2?arguments[2]:void 0,at=Le||ne,Ge={},Pt={},gt={posEntities:Ge,keyEntities:Pt};return ee&&(gt=ee(gt)||gt),Re(pe,function(kt){var Ct=kt.node,Cn=kt.index,Qe=kt.pos,le=kt.key,ce=kt.parentPos,Ht=kt.level,Vt=kt.nodes,St={node:Ct,nodes:Vt,index:Cn,key:le,pos:Qe,level:Ht},sn=Ee(le,Qe);Ge[Qe]=St,Pt[sn]=St,St.parent=Ge[ce],St.parent&&(St.parent.children=St.parent.children||[],St.parent.children.push(St)),Te&&Te(St,gt)},{externalGetKey:at,childrenPropName:Je,fieldNames:Ye}),Me&&Me(gt),gt}function me(pe,ke){var ee=ke.expandedKeys,Te=ke.selectedKeys,Me=ke.loadedKeys,Le=ke.loadingKeys,Je=ke.checkedKeys,Ye=ke.halfCheckedKeys,ne=ke.dragOverNodeKey,at=ke.dropPosition,Ge=ke.keyEntities,Pt=(0,de.Z)(Ge,pe),gt={eventKey:pe,expanded:ee.indexOf(pe)!==-1,selected:Te.indexOf(pe)!==-1,loaded:Me.indexOf(pe)!==-1,loading:Le.indexOf(pe)!==-1,checked:Je.indexOf(pe)!==-1,halfChecked:Ye.indexOf(pe)!==-1,pos:String(Pt?Pt.pos:""),dragOver:ne===pe&&at===0,dragOverGapTop:ne===pe&&at===-1,dragOverGapBottom:ne===pe&&at===1};return gt}function ye(pe){var ke=pe.data,ee=pe.expanded,Te=pe.selected,Me=pe.checked,Le=pe.loaded,Je=pe.loading,Ye=pe.halfChecked,ne=pe.dragOver,at=pe.dragOverGapTop,Ge=pe.dragOverGapBottom,Pt=pe.pos,gt=pe.active,kt=pe.eventKey,Ct=(0,O.Z)((0,O.Z)({},ke),{},{expanded:ee,selected:Te,checked:Me,loaded:Le,loading:Je,halfChecked:Ye,dragOver:ne,dragOverGapTop:at,dragOverGapBottom:Ge,pos:Pt,active:gt,key:kt});return"props"in Ct||Object.defineProperty(Ct,"props",{get:function(){return(0,M.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),pe}}),Ct}},8224:function(X,C,h){"use strict";h.d(C,{Z:function(){return I}});var v=h(4676);function I(O,B,G,F){var M=v.unstable_batchedUpdates?function(ae){v.unstable_batchedUpdates(G,ae)}:G;return O!=null&&O.addEventListener&&O.addEventListener(B,M,F),{remove:function(){O!=null&&O.removeEventListener&&O.removeEventListener(B,M,F)}}}},55468:function(X,C,h){"use strict";h.d(C,{g1:function(){return Ne},os:function(){return Xe}});var v=/margin|padding|width|height|max|min|offset/,I={left:!0,top:!0},O={cssFloat:1,styleFloat:1,float:1};function B(Oe){return Oe.nodeType===1?Oe.ownerDocument.defaultView.getComputedStyle(Oe,null):{}}function G(Oe,Ce,Ie){if(Ce=Ce.toLowerCase(),Ie==="auto"){if(Ce==="height")return Oe.offsetHeight;if(Ce==="width")return Oe.offsetWidth}return Ce in I||(I[Ce]=v.test(Ce)),I[Ce]?parseFloat(Ie)||0:Ie}function F(Oe,Ce){var Ie=arguments.length,Re=B(Oe);return Ce=O[Ce]?"cssFloat"in Oe.style?"cssFloat":"styleFloat":Ce,Ie===1?Re:G(Oe,Ce,Re[Ce]||Oe.style[Ce])}function M(Oe,Ce,Ie){var Re=arguments.length;if(Ce=O[Ce]?"cssFloat"in Oe.style?"cssFloat":"styleFloat":Ce,Re===3)return typeof Ie=="number"&&v.test(Ce)&&(Ie="".concat(Ie,"px")),Oe.style[Ce]=Ie,Ie;for(var fe in Ce)Ce.hasOwnProperty(fe)&&M(Oe,fe,Ce[fe]);return B(Oe)}function de(Oe){return Oe===document.body?document.documentElement.clientWidth:Oe.offsetWidth}function ae(Oe){return Oe===document.body?window.innerHeight||document.documentElement.clientHeight:Oe.offsetHeight}function te(){var Oe=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),Ce=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Oe,height:Ce}}function Ne(){var Oe=document.documentElement.clientWidth,Ce=window.innerHeight||document.documentElement.clientHeight;return{width:Oe,height:Ce}}function Ee(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Xe(Oe){var Ce=Oe.getBoundingClientRect(),Ie=document.documentElement;return{left:Ce.left+(window.pageXOffset||Ie.scrollLeft)-(Ie.clientLeft||document.body.clientLeft||0),top:Ce.top+(window.pageYOffset||Ie.scrollTop)-(Ie.clientTop||document.body.clientTop||0)}}},24514:function(X,C,h){"use strict";h.d(C,{G:function(){return B}});var v=h(47273),I=function(F){if((0,v.Z)()&&window.document.documentElement){var M=Array.isArray(F)?F:[F],de=window.document.documentElement;return M.some(function(ae){return ae in de.style})}return!1},O=function(F,M){if(!I(F))return!1;var de=document.createElement("div"),ae=de.style[F];return de.style[F]=M,de.style[F]!==ae};function B(G,F){return!Array.isArray(G)&&F!==void 0?O(G,F):I(G)}},24916:function(X,C,h){"use strict";h.d(C,{Z:function(){return In}});var v=h(96663),I=h(20135),O=h(44127),B=h(90493),G=h(72071),F=h(6620),M=h(92310),de=h.n(M),ae=h(29301),te=h(70425),Ne=h(34280),Ee=h(59301),Xe=h(4676),Oe=Ee.forwardRef(function(re,z){var k=re.height,j=re.offsetY,Q=re.offsetX,T=re.children,_e=re.prefixCls,It=re.onInnerResize,$e=re.innerProps,Pe=re.rtl,vt=re.extra,ut={},tt={display:"flex",flexDirection:"column"};return j!==void 0&&(ut={height:k,position:"relative",overflow:"hidden"},tt=(0,O.Z)((0,O.Z)({},tt),{},(0,B.Z)((0,B.Z)((0,B.Z)((0,B.Z)((0,B.Z)({transform:"translateY(".concat(j,"px)")},Pe?"marginRight":"marginLeft",-Q),"position","absolute"),"left",0),"right",0),"top",0))),Ee.createElement("div",{style:ut},Ee.createElement(ae.Z,{onResize:function(pn){var nn=pn.offsetHeight;nn&&It&&It()}},Ee.createElement("div",(0,v.Z)({style:tt,className:de()((0,B.Z)({},"".concat(_e,"-holder-inner"),_e)),ref:z},$e),T,vt)))});Oe.displayName="Filler";var Ce=Oe;function Ie(re){var z=re.children,k=re.setRef,j=Ee.useCallback(function(Q){k(Q)},[]);return Ee.cloneElement(z,{ref:j})}function Re(re,z,k,j,Q,T,_e,It){var $e=It.getKey;return re.slice(z,k+1).map(function(Pe,vt){var ut=z+vt,tt=_e(Pe,ut,{style:{width:j},offsetX:Q}),Et=$e(Pe);return Ee.createElement(Ie,{key:Et,setRef:function(nn){return T(Pe,nn)}},tt)})}function fe(re,z,k,j){var Q=k-re,T=z-k,_e=Math.min(Q,T)*2;if(j<=_e){var It=Math.floor(j/2);return j%2?k+It+1:k-It}return Q>T?k-(j-T):k+(j-Q)}function me(re,z,k){var j=re.length,Q=z.length,T,_e;if(j===0&&Q===0)return null;j<Q?(T=re,_e=z):(T=z,_e=re);var It={__EMPTY_ITEM__:!0};function $e(pn){return pn!==void 0?k(pn):It}for(var Pe=null,vt=Math.abs(j-Q)!==1,ut=0;ut<_e.length;ut+=1){var tt=$e(T[ut]),Et=$e(_e[ut]);if(tt!==Et){Pe=ut,vt=vt||tt!==$e(_e[ut+1]);break}}return Pe===null?null:{index:Pe,multiple:vt}}function ye(re,z,k){var j=Ee.useState(re),Q=(0,G.Z)(j,2),T=Q[0],_e=Q[1],It=Ee.useState(null),$e=(0,G.Z)(It,2),Pe=$e[0],vt=$e[1];return Ee.useEffect(function(){var ut=me(T||[],re||[],z);(ut==null?void 0:ut.index)!==void 0&&(k==null||k(ut.index),vt(re[ut.index])),_e(re)},[re]),[Pe]}var pe=h(16089),ke=(typeof navigator=="undefined"?"undefined":(0,I.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),ee=ke,Te=function(re,z,k,j){var Q=(0,Ee.useRef)(!1),T=(0,Ee.useRef)(null);function _e(){clearTimeout(T.current),Q.current=!0,T.current=setTimeout(function(){Q.current=!1},50)}var It=(0,Ee.useRef)({top:re,bottom:z,left:k,right:j});return It.current.top=re,It.current.bottom=z,It.current.left=k,It.current.right=j,function($e,Pe){var vt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ut=$e?Pe<0&&It.current.left||Pe>0&&It.current.right:Pe<0&&It.current.top||Pe>0&&It.current.bottom;return vt&&ut?(clearTimeout(T.current),Q.current=!1):(!ut||Q.current)&&_e(),!Q.current&&ut}};function Me(re,z,k,j,Q,T,_e){var It=(0,Ee.useRef)(0),$e=(0,Ee.useRef)(null),Pe=(0,Ee.useRef)(null),vt=(0,Ee.useRef)(!1),ut=Te(z,k,j,Q);function tt(an,et){if(pe.Z.cancel($e.current),!ut(!1,et)){var zt=an;if(!zt._virtualHandled)zt._virtualHandled=!0;else return;It.current+=et,Pe.current=et,ee||zt.preventDefault(),$e.current=(0,pe.Z)(function(){var dn=vt.current?10:1;_e(It.current*dn,!1),It.current=0})}}function Et(an,et){_e(et,!0),ee||an.preventDefault()}var pn=(0,Ee.useRef)(null),nn=(0,Ee.useRef)(null);function Kt(an){if(re){pe.Z.cancel(nn.current),nn.current=(0,pe.Z)(function(){pn.current=null},2);var et=an.deltaX,zt=an.deltaY,dn=an.shiftKey,rn=et,ze=zt;(pn.current==="sx"||!pn.current&&dn&&zt&&!et)&&(rn=zt,ze=0,pn.current="sx");var Un=Math.abs(rn),yn=Math.abs(ze);pn.current===null&&(pn.current=T&&Un>yn?"x":"y"),pn.current==="y"?tt(an,ze):Et(an,rn)}}function hn(an){re&&(vt.current=an.detail===Pe.current)}return[Kt,hn]}function Le(re,z,k,j){var Q=Ee.useMemo(function(){return[new Map,[]]},[re,k.id,j]),T=(0,G.Z)(Q,2),_e=T[0],It=T[1],$e=function(vt){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:vt,tt=_e.get(vt),Et=_e.get(ut);if(tt===void 0||Et===void 0)for(var pn=re.length,nn=It.length;nn<pn;nn+=1){var Kt,hn=re[nn],an=z(hn);_e.set(an,nn);var et=(Kt=k.get(an))!==null&&Kt!==void 0?Kt:j;if(It[nn]=(It[nn-1]||0)+et,an===vt&&(tt=nn),an===ut&&(Et=nn),tt!==void 0&&Et!==void 0)break}return{top:It[tt-1]||0,bottom:It[Et]}};return $e}var Je=h(52884),Ye=h(95727),ne=function(){function re(){(0,Je.Z)(this,re),(0,B.Z)(this,"maps",void 0),(0,B.Z)(this,"id",0),(0,B.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,Ye.Z)(re,[{key:"set",value:function(k,j){this.maps[k]=j,this.id+=1,this.diffKeys.add(k)}},{key:"get",value:function(k){return this.maps[k]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),re}(),at=ne;function Ge(re){var z=parseFloat(re);return isNaN(z)?0:z}function Pt(re,z,k){var j=Ee.useState(0),Q=(0,G.Z)(j,2),T=Q[0],_e=Q[1],It=(0,Ee.useRef)(new Map),$e=(0,Ee.useRef)(new at),Pe=(0,Ee.useRef)(0);function vt(){Pe.current+=1}function ut(){var Et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;vt();var pn=function(){var hn=!1;It.current.forEach(function(an,et){if(an&&an.offsetParent){var zt=an.offsetHeight,dn=getComputedStyle(an),rn=dn.marginTop,ze=dn.marginBottom,Un=Ge(rn),yn=Ge(ze),Bt=zt+Un+yn;$e.current.get(et)!==Bt&&($e.current.set(et,Bt),hn=!0)}}),hn&&_e(function(an){return an+1})};if(Et)pn();else{Pe.current+=1;var nn=Pe.current;Promise.resolve().then(function(){nn===Pe.current&&pn()})}}function tt(Et,pn){var nn=re(Et),Kt=It.current.get(nn);pn?(It.current.set(nn,pn),ut()):It.current.delete(nn),!Kt!=!pn&&(pn?z==null||z(Et):k==null||k(Et))}return(0,Ee.useEffect)(function(){return vt},[]),[tt,ut,$e.current,T]}var gt=14/15;function kt(re,z,k){var j=(0,Ee.useRef)(!1),Q=(0,Ee.useRef)(0),T=(0,Ee.useRef)(0),_e=(0,Ee.useRef)(null),It=(0,Ee.useRef)(null),$e,Pe=function(Et){if(j.current){var pn=Math.ceil(Et.touches[0].pageX),nn=Math.ceil(Et.touches[0].pageY),Kt=Q.current-pn,hn=T.current-nn,an=Math.abs(Kt)>Math.abs(hn);an?Q.current=pn:T.current=nn;var et=k(an,an?Kt:hn,!1,Et);et&&Et.preventDefault(),clearInterval(It.current),et&&(It.current=setInterval(function(){an?Kt*=gt:hn*=gt;var zt=Math.floor(an?Kt:hn);(!k(an,zt,!0)||Math.abs(zt)<=.1)&&clearInterval(It.current)},16))}},vt=function(){j.current=!1,$e()},ut=function(Et){$e(),Et.touches.length===1&&!j.current&&(j.current=!0,Q.current=Math.ceil(Et.touches[0].pageX),T.current=Math.ceil(Et.touches[0].pageY),_e.current=Et.target,_e.current.addEventListener("touchmove",Pe,{passive:!1}),_e.current.addEventListener("touchend",vt,{passive:!0}))};$e=function(){_e.current&&(_e.current.removeEventListener("touchmove",Pe),_e.current.removeEventListener("touchend",vt))},(0,Ne.Z)(function(){return re&&z.current.addEventListener("touchstart",ut,{passive:!0}),function(){var tt;(tt=z.current)===null||tt===void 0||tt.removeEventListener("touchstart",ut),$e(),clearInterval(It.current)}},[re])}function Ct(re){return Math.floor(Math.pow(re,.5))}function Cn(re,z){var k="touches"in re?re.touches[0]:re;return k[z?"pageX":"pageY"]-window[z?"scrollX":"scrollY"]}function Qe(re,z,k){Ee.useEffect(function(){var j=z.current;if(re&&j){var Q=!1,T,_e,It=function(){pe.Z.cancel(T)},$e=function tt(){It(),T=(0,pe.Z)(function(){k(_e),tt()})},Pe=function(Et){if(!Et.target.draggable){var pn=Et;pn._virtualHandled||(pn._virtualHandled=!0,Q=!0)}},vt=function(){Q=!1,It()},ut=function(Et){if(Q){var pn=Cn(Et,!1),nn=j.getBoundingClientRect(),Kt=nn.top,hn=nn.bottom;if(pn<=Kt){var an=Kt-pn;_e=-Ct(an),$e()}else if(pn>=hn){var et=pn-hn;_e=Ct(et),$e()}else It()}};return j.addEventListener("mousedown",Pe),j.ownerDocument.addEventListener("mouseup",vt),j.ownerDocument.addEventListener("mousemove",ut),function(){j.removeEventListener("mousedown",Pe),j.ownerDocument.removeEventListener("mouseup",vt),j.ownerDocument.removeEventListener("mousemove",ut),It()}}},[re])}var le=10;function ce(re,z,k,j,Q,T,_e,It){var $e=Ee.useRef(),Pe=Ee.useState(null),vt=(0,G.Z)(Pe,2),ut=vt[0],tt=vt[1];return(0,Ne.Z)(function(){if(ut&&ut.times<le){if(!re.current){tt(function(ur){return(0,O.Z)({},ur)});return}T();var Et=ut.targetAlign,pn=ut.originAlign,nn=ut.index,Kt=ut.offset,hn=re.current.clientHeight,an=!1,et=Et,zt=null;if(hn){for(var dn=Et||pn,rn=0,ze=0,Un=0,yn=Math.min(z.length-1,nn),Bt=0;Bt<=yn;Bt+=1){var Si=Q(z[Bt]);ze=rn;var _i=k.get(Si);Un=ze+(_i===void 0?j:_i),rn=Un}for(var Ii=dn==="top"?Kt:hn-Kt,cn=yn;cn>=0;cn-=1){var fr=Q(z[cn]),Xi=k.get(fr);if(Xi===void 0){an=!0;break}if(Ii-=Xi,Ii<=0)break}switch(dn){case"top":zt=ze-Kt;break;case"bottom":zt=Un-hn+Kt;break;default:{var ei=re.current.scrollTop,Tr=ei+hn;ze<ei?et="top":Un>Tr&&(et="bottom")}}zt!==null&&_e(zt),zt!==ut.lastTop&&(an=!0)}an&&tt((0,O.Z)((0,O.Z)({},ut),{},{times:ut.times+1,targetAlign:et,lastTop:zt}))}},[ut,re.current]),function(Et){if(Et==null){It();return}if(pe.Z.cancel($e.current),typeof Et=="number")_e(Et);else if(Et&&(0,I.Z)(Et)==="object"){var pn,nn=Et.align;"index"in Et?pn=Et.index:pn=z.findIndex(function(an){return Q(an)===Et.key});var Kt=Et.offset,hn=Kt===void 0?0:Kt;tt({times:0,index:pn,offset:hn,originAlign:nn})}}}var Ht=Ee.forwardRef(function(re,z){var k=re.prefixCls,j=re.rtl,Q=re.scrollOffset,T=re.scrollRange,_e=re.onStartMove,It=re.onStopMove,$e=re.onScroll,Pe=re.horizontal,vt=re.spinSize,ut=re.containerSize,tt=re.style,Et=re.thumbStyle,pn=re.showScrollBar,nn=Ee.useState(!1),Kt=(0,G.Z)(nn,2),hn=Kt[0],an=Kt[1],et=Ee.useState(null),zt=(0,G.Z)(et,2),dn=zt[0],rn=zt[1],ze=Ee.useState(null),Un=(0,G.Z)(ze,2),yn=Un[0],Bt=Un[1],Si=!j,_i=Ee.useRef(),Ii=Ee.useRef(),cn=Ee.useState(pn),fr=(0,G.Z)(cn,2),Xi=fr[0],ei=fr[1],Tr=Ee.useRef(),ur=function(){pn===!0||pn===!1||(clearTimeout(Tr.current),ei(!0),Tr.current=setTimeout(function(){ei(!1)},3e3))},U=T-ut||0,mr=ut-vt||0,Er=Ee.useMemo(function(){if(Q===0||U===0)return 0;var ht=Q/U;return ht*mr},[Q,U,mr]),wr=function(_n){_n.stopPropagation(),_n.preventDefault()},qr=Ee.useRef({top:Er,dragging:hn,pageY:dn,startTop:yn});qr.current={top:Er,dragging:hn,pageY:dn,startTop:yn};var xo=function(_n){an(!0),rn(Cn(_n,Pe)),Bt(qr.current.top),_e(),_n.stopPropagation(),_n.preventDefault()};Ee.useEffect(function(){var ht=function(Ke){Ke.preventDefault()},_n=_i.current,Vn=Ii.current;return _n.addEventListener("touchstart",ht,{passive:!1}),Vn.addEventListener("touchstart",xo,{passive:!1}),function(){_n.removeEventListener("touchstart",ht),Vn.removeEventListener("touchstart",xo)}},[]);var kr=Ee.useRef();kr.current=U;var no=Ee.useRef();no.current=mr,Ee.useEffect(function(){if(hn){var ht,_n=function(Ke){var vn=qr.current,Fn=vn.dragging,on=vn.pageY,Nt=vn.startTop;pe.Z.cancel(ht);var Ve=_i.current.getBoundingClientRect(),Ut=ut/(Pe?Ve.width:Ve.height);if(Fn){var Lt=(Cn(Ke,Pe)-on)*Ut,Wn=Nt;!Si&&Pe?Wn-=Lt:Wn+=Lt;var ot=kr.current,fn=no.current,yt=fn?Wn/fn:0,je=Math.ceil(yt*ot);je=Math.max(je,0),je=Math.min(je,ot),ht=(0,pe.Z)(function(){$e(je,Pe)})}},Vn=function(){an(!1),It()};return window.addEventListener("mousemove",_n,{passive:!0}),window.addEventListener("touchmove",_n,{passive:!0}),window.addEventListener("mouseup",Vn,{passive:!0}),window.addEventListener("touchend",Vn,{passive:!0}),function(){window.removeEventListener("mousemove",_n),window.removeEventListener("touchmove",_n),window.removeEventListener("mouseup",Vn),window.removeEventListener("touchend",Vn),pe.Z.cancel(ht)}}},[hn]),Ee.useEffect(function(){return ur(),function(){clearTimeout(Tr.current)}},[Q]),Ee.useImperativeHandle(z,function(){return{delayHidden:ur}});var rr="".concat(k,"-scrollbar"),Bi={position:"absolute",visibility:Xi?null:"hidden"},yi={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Pe?(Bi.height=8,Bi.left=0,Bi.right=0,Bi.bottom=0,yi.height="100%",yi.width=vt,Si?yi.left=Er:yi.right=Er):(Bi.width=8,Bi.top=0,Bi.bottom=0,Si?Bi.right=0:Bi.left=0,yi.width="100%",yi.height=vt,yi.top=Er),Ee.createElement("div",{ref:_i,className:de()(rr,(0,B.Z)((0,B.Z)((0,B.Z)({},"".concat(rr,"-horizontal"),Pe),"".concat(rr,"-vertical"),!Pe),"".concat(rr,"-visible"),Xi)),style:(0,O.Z)((0,O.Z)({},Bi),tt),onMouseDown:wr,onMouseMove:ur},Ee.createElement("div",{ref:Ii,className:de()("".concat(rr,"-thumb"),(0,B.Z)({},"".concat(rr,"-thumb-moving"),hn)),style:(0,O.Z)((0,O.Z)({},yi),Et),onMouseDown:xo}))}),Vt=Ht,St=20;function sn(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,k=re/z*re;return isNaN(k)&&(k=0),k=Math.max(k,St),Math.floor(k)}var Ft=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],oi=[],On={overflowY:"auto",overflowAnchor:"none"};function ni(re,z){var k=re.prefixCls,j=k===void 0?"rc-virtual-list":k,Q=re.className,T=re.height,_e=re.itemHeight,It=re.fullHeight,$e=It===void 0?!0:It,Pe=re.style,vt=re.data,ut=re.children,tt=re.itemKey,Et=re.virtual,pn=re.direction,nn=re.scrollWidth,Kt=re.component,hn=Kt===void 0?"div":Kt,an=re.onScroll,et=re.onVirtualScroll,zt=re.onVisibleChange,dn=re.innerProps,rn=re.extraRender,ze=re.styles,Un=re.showScrollBar,yn=Un===void 0?"optional":Un,Bt=(0,F.Z)(re,Ft),Si=Ee.useCallback(function(Ri){return typeof tt=="function"?tt(Ri):Ri==null?void 0:Ri[tt]},[tt]),_i=Pt(Si,null,null),Ii=(0,G.Z)(_i,4),cn=Ii[0],fr=Ii[1],Xi=Ii[2],ei=Ii[3],Tr=!!(Et!==!1&&T&&_e),ur=Ee.useMemo(function(){return Object.values(Xi.maps).reduce(function(Ri,Ai){return Ri+Ai},0)},[Xi.id,Xi.maps]),U=Tr&&vt&&(Math.max(_e*vt.length,ur)>T||!!nn),mr=pn==="rtl",Er=de()(j,(0,B.Z)({},"".concat(j,"-rtl"),mr),Q),wr=vt||oi,qr=(0,Ee.useRef)(),xo=(0,Ee.useRef)(),kr=(0,Ee.useRef)(),no=(0,Ee.useState)(0),rr=(0,G.Z)(no,2),Bi=rr[0],yi=rr[1],ht=(0,Ee.useState)(0),_n=(0,G.Z)(ht,2),Vn=_n[0],pt=_n[1],Ke=(0,Ee.useState)(!1),vn=(0,G.Z)(Ke,2),Fn=vn[0],on=vn[1],Nt=function(){on(!0)},Ve=function(){on(!1)},Ut={getKey:Si};function Lt(Ri){yi(function(Ai){var hr;typeof Ri=="function"?hr=Ri(Ai):hr=Ri;var Ki=Be(hr);return qr.current.scrollTop=Ki,Ki})}var Wn=(0,Ee.useRef)({start:0,end:wr.length}),ot=(0,Ee.useRef)(),fn=ye(wr,Si),yt=(0,G.Z)(fn,1),je=yt[0];ot.current=je;var L=Ee.useMemo(function(){if(!Tr)return{scrollHeight:void 0,start:0,end:wr.length-1,offset:void 0};if(!U){var Ri;return{scrollHeight:((Ri=xo.current)===null||Ri===void 0?void 0:Ri.offsetHeight)||0,start:0,end:wr.length-1,offset:void 0}}for(var Ai=0,hr,Ki,Lr,Wr=wr.length,eo=0;eo<Wr;eo+=1){var Lo=wr[eo],pi=Si(Lo),pa=Xi.get(pi),Uo=Ai+(pa===void 0?_e:pa);Uo>=Bi&&hr===void 0&&(hr=eo,Ki=Ai),Uo>Bi+T&&Lr===void 0&&(Lr=eo),Ai=Uo}return hr===void 0&&(hr=0,Ki=0,Lr=Math.ceil(T/_e)),Lr===void 0&&(Lr=wr.length-1),Lr=Math.min(Lr+1,wr.length-1),{scrollHeight:Ai,start:hr,end:Lr,offset:Ki}},[U,Tr,Bi,wr,ei,T]),Rt=L.scrollHeight,Jt=L.start,mt=L.end,xn=L.offset;Wn.current.start=Jt,Wn.current.end=mt,Ee.useLayoutEffect(function(){var Ri=Xi.getRecord();if(Ri.size===1){var Ai=Array.from(Ri)[0],hr=wr[Jt];if(hr){var Ki=Si(hr);if(Ki===Ai){var Lr=Xi.get(Ai),Wr=Lr-_e;Lt(function(eo){return eo+Wr})}}}Xi.resetRecord()},[Rt]);var An=Ee.useState({width:0,height:T}),li=(0,G.Z)(An,2),Nn=li[0],lt=li[1],Mi=function(Ai){lt({width:Ai.offsetWidth,height:Ai.offsetHeight})},Yi=(0,Ee.useRef)(),Yt=(0,Ee.useRef)(),zi=Ee.useMemo(function(){return sn(Nn.width,nn)},[Nn.width,nn]),q=Ee.useMemo(function(){return sn(Nn.height,Rt)},[Nn.height,Rt]),oe=Rt-T,Hn=(0,Ee.useRef)(oe);Hn.current=oe;function Be(Ri){var Ai=Ri;return Number.isNaN(Hn.current)||(Ai=Math.min(Ai,Hn.current)),Ai=Math.max(Ai,0),Ai}var Tt=Bi<=0,fi=Bi>=oe,Ln=Vn<=0,Fi=Vn>=nn,qt=Te(Tt,fi,Ln,Fi),xi=function(){return{x:mr?-Vn:Vn,y:Bi}},Xt=(0,Ee.useRef)(xi()),Li=(0,te.useEvent)(function(Ri){if(et){var Ai=(0,O.Z)((0,O.Z)({},xi()),Ri);(Xt.current.x!==Ai.x||Xt.current.y!==Ai.y)&&(et(Ai),Xt.current=Ai)}});function Yr(Ri,Ai){var hr=Ri;Ai?((0,Xe.flushSync)(function(){pt(hr)}),Li()):Lt(hr)}function Mt(Ri){var Ai=Ri.currentTarget.scrollTop;Ai!==Bi&&Lt(Ai),an==null||an(Ri),Li()}var Qr=function(Ai){var hr=Ai,Ki=nn?nn-Nn.width:0;return hr=Math.max(hr,0),hr=Math.min(hr,Ki),hr},tn=(0,te.useEvent)(function(Ri,Ai){Ai?((0,Xe.flushSync)(function(){pt(function(hr){var Ki=hr+(mr?-Ri:Ri);return Qr(Ki)})}),Li()):Lt(function(hr){var Ki=hr+Ri;return Ki})}),Oi=Me(Tr,Tt,fi,Ln,Fi,!!nn,tn),Ei=(0,G.Z)(Oi,2),or=Ei[0],tr=Ei[1];kt(Tr,qr,function(Ri,Ai,hr,Ki){var Lr=Ki;return qt(Ri,Ai,hr)?!1:!Lr||!Lr._virtualHandled?(Lr&&(Lr._virtualHandled=!0),or({preventDefault:function(){},deltaX:Ri?Ai:0,deltaY:Ri?0:Ai}),!0):!1}),Qe(U,qr,function(Ri){Lt(function(Ai){return Ai+Ri})}),(0,Ne.Z)(function(){function Ri(hr){var Ki=Tt&&hr.detail<0,Lr=fi&&hr.detail>0;Tr&&!Ki&&!Lr&&hr.preventDefault()}var Ai=qr.current;return Ai.addEventListener("wheel",or,{passive:!1}),Ai.addEventListener("DOMMouseScroll",tr,{passive:!0}),Ai.addEventListener("MozMousePixelScroll",Ri,{passive:!1}),function(){Ai.removeEventListener("wheel",or),Ai.removeEventListener("DOMMouseScroll",tr),Ai.removeEventListener("MozMousePixelScroll",Ri)}},[Tr,Tt,fi]),(0,Ne.Z)(function(){if(nn){var Ri=Qr(Vn);pt(Ri),Li({x:Ri})}},[Nn.width,nn]);var Zn=function(){var Ai,hr;(Ai=Yi.current)===null||Ai===void 0||Ai.delayHidden(),(hr=Yt.current)===null||hr===void 0||hr.delayHidden()},he=ce(qr,wr,Xi,_e,Si,function(){return fr(!0)},Lt,Zn);Ee.useImperativeHandle(z,function(){return{nativeElement:kr.current,getScrollInfo:xi,scrollTo:function(Ai){function hr(Ki){return Ki&&(0,I.Z)(Ki)==="object"&&("left"in Ki||"top"in Ki)}hr(Ai)?(Ai.left!==void 0&&pt(Qr(Ai.left)),he(Ai.top)):he(Ai)}}}),(0,Ne.Z)(function(){if(zt){var Ri=wr.slice(Jt,mt+1);zt(Ri,wr)}},[Jt,mt,wr]);var gr=Le(wr,Si,Xi,_e),br=rn==null?void 0:rn({start:Jt,end:mt,virtual:U,offsetX:Vn,offsetY:xn,rtl:mr,getSize:gr}),cr=Re(wr,Jt,mt,nn,Vn,cn,ut,Ut),Br=null;T&&(Br=(0,O.Z)((0,B.Z)({},$e?"height":"maxHeight",T),On),Tr&&(Br.overflowY="hidden",nn&&(Br.overflowX="hidden"),Fn&&(Br.pointerEvents="none")));var Zi={};return mr&&(Zi.dir="rtl"),Ee.createElement("div",(0,v.Z)({ref:kr,style:(0,O.Z)((0,O.Z)({},Pe),{},{position:"relative"}),className:Er},Zi,Bt),Ee.createElement(ae.Z,{onResize:Mi},Ee.createElement(hn,{className:"".concat(j,"-holder"),style:Br,ref:qr,onScroll:Mt,onMouseEnter:Zn},Ee.createElement(Ce,{prefixCls:j,height:Rt,offsetX:Vn,offsetY:xn,scrollWidth:nn,onInnerResize:fr,ref:xo,innerProps:dn,rtl:mr,extra:br},cr))),U&&Rt>T&&Ee.createElement(Vt,{ref:Yi,prefixCls:j,scrollOffset:Bi,scrollRange:Rt,rtl:mr,onScroll:Yr,onStartMove:Nt,onStopMove:Ve,spinSize:q,containerSize:Nn.height,style:ze==null?void 0:ze.verticalScrollBar,thumbStyle:ze==null?void 0:ze.verticalScrollBarThumb,showScrollBar:yn}),U&&nn>Nn.width&&Ee.createElement(Vt,{ref:Yt,prefixCls:j,scrollOffset:Vn,scrollRange:nn,rtl:mr,onScroll:Yr,onStartMove:Nt,onStopMove:Ve,spinSize:zi,containerSize:Nn.width,horizontal:!0,style:ze==null?void 0:ze.horizontalScrollBar,thumbStyle:ze==null?void 0:ze.horizontalScrollBarThumb,showScrollBar:yn}))}var Jn=Ee.forwardRef(ni);Jn.displayName="List";var Mn=Jn,In=Mn},77596:function(X,C,h){"use strict";h.d(C,{Z:function(){return le}});var v=h(6620),I=h(19127),O=h(90493),B=h(59301),G=h(96663);function F(ce,Ht){var Vt=Object.keys(ce);if(Object.getOwnPropertySymbols){var St=Object.getOwnPropertySymbols(ce);Ht&&(St=St.filter(function(sn){return Object.getOwnPropertyDescriptor(ce,sn).enumerable})),Vt.push.apply(Vt,St)}return Vt}function M(ce){for(var Ht=1;Ht<arguments.length;Ht++){var Vt=arguments[Ht]!=null?arguments[Ht]:{};Ht%2?F(Object(Vt),!0).forEach(function(St){(0,O.Z)(ce,St,Vt[St])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ce,Object.getOwnPropertyDescriptors(Vt)):F(Object(Vt)).forEach(function(St){Object.defineProperty(ce,St,Object.getOwnPropertyDescriptor(Vt,St))})}return ce}function de(ce){var Ht=ce.length;if(Ht===0||Ht===1)return ce;if(Ht===2)return[ce[0],ce[1],"".concat(ce[0],".").concat(ce[1]),"".concat(ce[1],".").concat(ce[0])];if(Ht===3)return[ce[0],ce[1],ce[2],"".concat(ce[0],".").concat(ce[1]),"".concat(ce[0],".").concat(ce[2]),"".concat(ce[1],".").concat(ce[0]),"".concat(ce[1],".").concat(ce[2]),"".concat(ce[2],".").concat(ce[0]),"".concat(ce[2],".").concat(ce[1]),"".concat(ce[0],".").concat(ce[1],".").concat(ce[2]),"".concat(ce[0],".").concat(ce[2],".").concat(ce[1]),"".concat(ce[1],".").concat(ce[0],".").concat(ce[2]),"".concat(ce[1],".").concat(ce[2],".").concat(ce[0]),"".concat(ce[2],".").concat(ce[0],".").concat(ce[1]),"".concat(ce[2],".").concat(ce[1],".").concat(ce[0])];if(Ht>=4)return[ce[0],ce[1],ce[2],ce[3],"".concat(ce[0],".").concat(ce[1]),"".concat(ce[0],".").concat(ce[2]),"".concat(ce[0],".").concat(ce[3]),"".concat(ce[1],".").concat(ce[0]),"".concat(ce[1],".").concat(ce[2]),"".concat(ce[1],".").concat(ce[3]),"".concat(ce[2],".").concat(ce[0]),"".concat(ce[2],".").concat(ce[1]),"".concat(ce[2],".").concat(ce[3]),"".concat(ce[3],".").concat(ce[0]),"".concat(ce[3],".").concat(ce[1]),"".concat(ce[3],".").concat(ce[2]),"".concat(ce[0],".").concat(ce[1],".").concat(ce[2]),"".concat(ce[0],".").concat(ce[1],".").concat(ce[3]),"".concat(ce[0],".").concat(ce[2],".").concat(ce[1]),"".concat(ce[0],".").concat(ce[2],".").concat(ce[3]),"".concat(ce[0],".").concat(ce[3],".").concat(ce[1]),"".concat(ce[0],".").concat(ce[3],".").concat(ce[2]),"".concat(ce[1],".").concat(ce[0],".").concat(ce[2]),"".concat(ce[1],".").concat(ce[0],".").concat(ce[3]),"".concat(ce[1],".").concat(ce[2],".").concat(ce[0]),"".concat(ce[1],".").concat(ce[2],".").concat(ce[3]),"".concat(ce[1],".").concat(ce[3],".").concat(ce[0]),"".concat(ce[1],".").concat(ce[3],".").concat(ce[2]),"".concat(ce[2],".").concat(ce[0],".").concat(ce[1]),"".concat(ce[2],".").concat(ce[0],".").concat(ce[3]),"".concat(ce[2],".").concat(ce[1],".").concat(ce[0]),"".concat(ce[2],".").concat(ce[1],".").concat(ce[3]),"".concat(ce[2],".").concat(ce[3],".").concat(ce[0]),"".concat(ce[2],".").concat(ce[3],".").concat(ce[1]),"".concat(ce[3],".").concat(ce[0],".").concat(ce[1]),"".concat(ce[3],".").concat(ce[0],".").concat(ce[2]),"".concat(ce[3],".").concat(ce[1],".").concat(ce[0]),"".concat(ce[3],".").concat(ce[1],".").concat(ce[2]),"".concat(ce[3],".").concat(ce[2],".").concat(ce[0]),"".concat(ce[3],".").concat(ce[2],".").concat(ce[1]),"".concat(ce[0],".").concat(ce[1],".").concat(ce[2],".").concat(ce[3]),"".concat(ce[0],".").concat(ce[1],".").concat(ce[3],".").concat(ce[2]),"".concat(ce[0],".").concat(ce[2],".").concat(ce[1],".").concat(ce[3]),"".concat(ce[0],".").concat(ce[2],".").concat(ce[3],".").concat(ce[1]),"".concat(ce[0],".").concat(ce[3],".").concat(ce[1],".").concat(ce[2]),"".concat(ce[0],".").concat(ce[3],".").concat(ce[2],".").concat(ce[1]),"".concat(ce[1],".").concat(ce[0],".").concat(ce[2],".").concat(ce[3]),"".concat(ce[1],".").concat(ce[0],".").concat(ce[3],".").concat(ce[2]),"".concat(ce[1],".").concat(ce[2],".").concat(ce[0],".").concat(ce[3]),"".concat(ce[1],".").concat(ce[2],".").concat(ce[3],".").concat(ce[0]),"".concat(ce[1],".").concat(ce[3],".").concat(ce[0],".").concat(ce[2]),"".concat(ce[1],".").concat(ce[3],".").concat(ce[2],".").concat(ce[0]),"".concat(ce[2],".").concat(ce[0],".").concat(ce[1],".").concat(ce[3]),"".concat(ce[2],".").concat(ce[0],".").concat(ce[3],".").concat(ce[1]),"".concat(ce[2],".").concat(ce[1],".").concat(ce[0],".").concat(ce[3]),"".concat(ce[2],".").concat(ce[1],".").concat(ce[3],".").concat(ce[0]),"".concat(ce[2],".").concat(ce[3],".").concat(ce[0],".").concat(ce[1]),"".concat(ce[2],".").concat(ce[3],".").concat(ce[1],".").concat(ce[0]),"".concat(ce[3],".").concat(ce[0],".").concat(ce[1],".").concat(ce[2]),"".concat(ce[3],".").concat(ce[0],".").concat(ce[2],".").concat(ce[1]),"".concat(ce[3],".").concat(ce[1],".").concat(ce[0],".").concat(ce[2]),"".concat(ce[3],".").concat(ce[1],".").concat(ce[2],".").concat(ce[0]),"".concat(ce[3],".").concat(ce[2],".").concat(ce[0],".").concat(ce[1]),"".concat(ce[3],".").concat(ce[2],".").concat(ce[1],".").concat(ce[0])]}var ae={};function te(ce){if(ce.length===0||ce.length===1)return ce;var Ht=ce.join(".");return ae[Ht]||(ae[Ht]=de(ce)),ae[Ht]}function Ne(ce){var Ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Vt=arguments.length>2?arguments[2]:void 0,St=ce.filter(function(Ft){return Ft!=="token"}),sn=te(St);return sn.reduce(function(Ft,oi){return M(M({},Ft),Vt[oi])},Ht)}function Ee(ce){return ce.join(" ")}function Xe(ce,Ht){var Vt=0;return function(St){return Vt+=1,St.map(function(sn,Ft){return Oe({node:sn,stylesheet:ce,useInlineStyles:Ht,key:"code-segment-".concat(Vt,"-").concat(Ft)})})}}function Oe(ce){var Ht=ce.node,Vt=ce.stylesheet,St=ce.style,sn=St===void 0?{}:St,Ft=ce.useInlineStyles,oi=ce.key,On=Ht.properties,ni=Ht.type,Jn=Ht.tagName,Mn=Ht.value;if(ni==="text")return Mn;if(Jn){var In=Xe(Vt,Ft),re;if(!Ft)re=M(M({},On),{},{className:Ee(On.className)});else{var z=Object.keys(Vt).reduce(function(T,_e){return _e.split(".").forEach(function(It){T.includes(It)||T.push(It)}),T},[]),k=On.className&&On.className.includes("token")?["token"]:[],j=On.className&&k.concat(On.className.filter(function(T){return!z.includes(T)}));re=M(M({},On),{},{className:Ee(j)||void 0,style:Ne(On.className,Object.assign({},On.style,sn),Vt)})}var Q=In(Ht.children);return B.createElement(Jn,(0,G.Z)({key:oi},re),Q)}}var Ce=function(ce,Ht){var Vt=ce.listLanguages();return Vt.indexOf(Ht)!==-1},Ie=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function Re(ce,Ht){var Vt=Object.keys(ce);if(Object.getOwnPropertySymbols){var St=Object.getOwnPropertySymbols(ce);Ht&&(St=St.filter(function(sn){return Object.getOwnPropertyDescriptor(ce,sn).enumerable})),Vt.push.apply(Vt,St)}return Vt}function fe(ce){for(var Ht=1;Ht<arguments.length;Ht++){var Vt=arguments[Ht]!=null?arguments[Ht]:{};Ht%2?Re(Object(Vt),!0).forEach(function(St){(0,O.Z)(ce,St,Vt[St])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ce,Object.getOwnPropertyDescriptors(Vt)):Re(Object(Vt)).forEach(function(St){Object.defineProperty(ce,St,Object.getOwnPropertyDescriptor(Vt,St))})}return ce}var me=/\n/g;function ye(ce){return ce.match(me)}function pe(ce){var Ht=ce.lines,Vt=ce.startingLineNumber,St=ce.style;return Ht.map(function(sn,Ft){var oi=Ft+Vt;return B.createElement("span",{key:"line-".concat(Ft),className:"react-syntax-highlighter-line-number",style:typeof St=="function"?St(oi):St},"".concat(oi,`
`))})}function ke(ce){var Ht=ce.codeString,Vt=ce.codeStyle,St=ce.containerStyle,sn=St===void 0?{float:"left",paddingRight:"10px"}:St,Ft=ce.numberStyle,oi=Ft===void 0?{}:Ft,On=ce.startingLineNumber;return B.createElement("code",{style:Object.assign({},Vt,sn)},pe({lines:Ht.replace(/\n$/,"").split(`
`),style:oi,startingLineNumber:On}))}function ee(ce){return"".concat(ce.toString().length,".25em")}function Te(ce,Ht){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(ce),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:Ht},children:[{type:"text",value:ce}]}}function Me(ce,Ht,Vt){var St={display:"inline-block",minWidth:ee(Vt),paddingRight:"1em",textAlign:"right",userSelect:"none"},sn=typeof ce=="function"?ce(Ht):ce,Ft=fe(fe({},St),sn);return Ft}function Le(ce){var Ht=ce.children,Vt=ce.lineNumber,St=ce.lineNumberStyle,sn=ce.largestLineNumber,Ft=ce.showInlineLineNumbers,oi=ce.lineProps,On=oi===void 0?{}:oi,ni=ce.className,Jn=ni===void 0?[]:ni,Mn=ce.showLineNumbers,In=ce.wrapLongLines,re=ce.wrapLines,z=re===void 0?!1:re,k=z?fe({},typeof On=="function"?On(Vt):On):{};if(k.className=k.className?[].concat((0,I.Z)(k.className.trim().split(/\s+/)),(0,I.Z)(Jn)):Jn,Vt&&Ft){var j=Me(St,Vt,sn);Ht.unshift(Te(Vt,j))}return In&Mn&&(k.style=fe({display:"flex"},k.style)),{type:"element",tagName:"span",properties:k,children:Ht}}function Je(ce){for(var Ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Vt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],St=0;St<ce.length;St++){var sn=ce[St];if(sn.type==="text")Vt.push(Le({children:[sn],className:(0,I.Z)(new Set(Ht))}));else if(sn.children){var Ft=Ht.concat(sn.properties.className);Je(sn.children,Ft).forEach(function(oi){return Vt.push(oi)})}}return Vt}function Ye(ce,Ht,Vt,St,sn,Ft,oi,On,ni){var Jn,Mn=Je(ce.value),In=[],re=-1,z=0;function k(Pe,vt){var ut=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return Le({children:Pe,lineNumber:vt,lineNumberStyle:On,largestLineNumber:oi,showInlineLineNumbers:sn,lineProps:Vt,className:ut,showLineNumbers:St,wrapLongLines:ni,wrapLines:Ht})}function j(Pe,vt){if(St&&vt&&sn){var ut=Me(On,vt,oi);Pe.unshift(Te(vt,ut))}return Pe}function Q(Pe,vt){var ut=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return Ht||ut.length>0?k(Pe,vt,ut):j(Pe,vt)}for(var T=function(){var vt=Mn[z],ut=vt.children[0].value,tt=ye(ut);if(tt){var Et=ut.split(`
`);Et.forEach(function(pn,nn){var Kt=St&&In.length+Ft,hn={type:"text",value:"".concat(pn,`
`)};if(nn===0){var an=Mn.slice(re+1,z).concat(Le({children:[hn],className:vt.properties.className})),et=Q(an,Kt);In.push(et)}else if(nn===Et.length-1){var zt=Mn[z+1]&&Mn[z+1].children&&Mn[z+1].children[0],dn={type:"text",value:"".concat(pn)};if(zt){var rn=Le({children:[dn],className:vt.properties.className});Mn.splice(z+1,0,rn)}else{var ze=[dn],Un=Q(ze,Kt,vt.properties.className);In.push(Un)}}else{var yn=[hn],Bt=Q(yn,Kt,vt.properties.className);In.push(Bt)}}),re=z}z++};z<Mn.length;)T();if(re!==Mn.length-1){var _e=Mn.slice(re+1,Mn.length);if(_e&&_e.length){var It=St&&In.length+Ft,$e=Q(_e,It);In.push($e)}}return Ht?In:(Jn=[]).concat.apply(Jn,In)}function ne(ce){var Ht=ce.rows,Vt=ce.stylesheet,St=ce.useInlineStyles;return Ht.map(function(sn,Ft){return Oe({node:sn,stylesheet:Vt,useInlineStyles:St,key:"code-segement".concat(Ft)})})}function at(ce){return ce&&typeof ce.highlightAuto!="undefined"}function Ge(ce){var Ht=ce.astGenerator,Vt=ce.language,St=ce.code,sn=ce.defaultCodeValue;if(at(Ht)){var Ft=Ce(Ht,Vt);return Vt==="text"?{value:sn,language:"text"}:Ft?Ht.highlight(Vt,St):Ht.highlightAuto(St)}try{return Vt&&Vt!=="text"?{value:Ht.highlight(St,Vt)}:{value:sn}}catch(oi){return{value:sn}}}function Pt(ce,Ht){return function(St){var sn=St.language,Ft=St.children,oi=St.style,On=oi===void 0?Ht:oi,ni=St.customStyle,Jn=ni===void 0?{}:ni,Mn=St.codeTagProps,In=Mn===void 0?{className:sn?"language-".concat(sn):void 0,style:fe(fe({},On['code[class*="language-"]']),On['code[class*="language-'.concat(sn,'"]')])}:Mn,re=St.useInlineStyles,z=re===void 0?!0:re,k=St.showLineNumbers,j=k===void 0?!1:k,Q=St.showInlineLineNumbers,T=Q===void 0?!0:Q,_e=St.startingLineNumber,It=_e===void 0?1:_e,$e=St.lineNumberContainerStyle,Pe=St.lineNumberStyle,vt=Pe===void 0?{}:Pe,ut=St.wrapLines,tt=St.wrapLongLines,Et=tt===void 0?!1:tt,pn=St.lineProps,nn=pn===void 0?{}:pn,Kt=St.renderer,hn=St.PreTag,an=hn===void 0?"pre":hn,et=St.CodeTag,zt=et===void 0?"code":et,dn=St.code,rn=dn===void 0?(Array.isArray(Ft)?Ft[0]:Ft)||"":dn,ze=St.astGenerator,Un=(0,v.Z)(St,Ie);ze=ze||ce;var yn=j?B.createElement(ke,{containerStyle:$e,codeStyle:In.style||{},numberStyle:vt,startingLineNumber:It,codeString:rn}):null,Bt=On.hljs||On['pre[class*="language-"]']||{backgroundColor:"#fff"},Si=at(ze)?"hljs":"prismjs",_i=z?Object.assign({},Un,{style:Object.assign({},Bt,Jn)}):Object.assign({},Un,{className:Un.className?"".concat(Si," ").concat(Un.className):Si,style:Object.assign({},Jn)});if(Et?In.style=fe({whiteSpace:"pre-wrap"},In.style):In.style=fe({whiteSpace:"pre"},In.style),!ze)return B.createElement(an,_i,yn,B.createElement(zt,In,rn));(ut===void 0&&Kt||Et)&&(ut=!0),Kt=Kt||ne;var Ii=[{type:"text",value:rn}],cn=Ge({astGenerator:ze,language:sn,code:rn,defaultCodeValue:Ii});cn.language===null&&(cn.value=Ii);var fr=cn.value.length;fr===1&&cn.value[0].type==="text"&&(fr=cn.value[0].value.split(`
`).length);var Xi=fr+It,ei=Ye(cn,ut,nn,j,T,It,Xi,vt,Et);return B.createElement(an,_i,B.createElement(zt,In,!T&&yn,Kt({rows:ei,stylesheet:On,useInlineStyles:z})))}}var gt={'code[class*="language-"]':{color:"black",background:"none",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"black",background:"#f5f2f0",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},':not(pre) > code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}},kt=h(11594),Ct=h.n(kt),Cn=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","asciidoc","asm6502","asmatmel","aspnet","autohotkey","autoit","avisynth","avro-idl","bash","basic","batch","bbcode","bicep","birb","bison","bnf","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","clike","clojure","cmake","cobol","coffeescript","concurnas","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cypher","d","dart","dataweave","dax","dhall","diff","django","dns-zone-file","docker","dot","ebnf","editorconfig","eiffel","ejs","elixir","elm","erb","erlang","etlua","excel-formula","factor","false","firestore-security-rules","flow","fortran","fsharp","ftl","gap","gcode","gdscript","gedcom","gherkin","git","glsl","gml","gn","go-module","go","graphql","groovy","haml","handlebars","haskell","haxe","hcl","hlsl","hoon","hpkp","hsts","http","ichigojam","icon","icu-message-format","idris","iecst","ignore","inform7","ini","io","j","java","javadoc","javadoclike","javascript","javastacktrace","jexl","jolie","jq","js-extras","js-templates","jsdoc","json","json5","jsonp","jsstacktrace","jsx","julia","keepalived","keyman","kotlin","kumir","kusto","latex","latte","less","lilypond","liquid","lisp","livescript","llvm","log","lolcode","lua","magma","makefile","markdown","markup-templating","markup","matlab","maxscript","mel","mermaid","mizar","mongodb","monkey","moonscript","n1ql","n4js","nand2tetris-hdl","naniscript","nasm","neon","nevod","nginx","nim","nix","nsis","objectivec","ocaml","opencl","openqasm","oz","parigp","parser","pascal","pascaligo","pcaxis","peoplecode","perl","php-extras","php","phpdoc","plsql","powerquery","powershell","processing","prolog","promql","properties","protobuf","psl","pug","puppet","pure","purebasic","purescript","python","q","qml","qore","qsharp","r","racket","reason","regex","rego","renpy","rest","rip","roboconf","robotframework","ruby","rust","sas","sass","scala","scheme","scss","shell-session","smali","smalltalk","smarty","sml","solidity","solution-file","soy","sparql","splunk-spl","sqf","sql","squirrel","stan","stylus","swift","systemd","t4-cs","t4-templating","t4-vb","tap","tcl","textile","toml","tremor","tsx","tt2","turtle","twig","typescript","typoscript","unrealscript","uorazor","uri","v","vala","vbnet","velocity","verilog","vhdl","vim","visual-basic","warpscript","wasm","web-idl","wiki","wolfram","wren","xeora","xml-doc","xojo","xquery","yaml","yang","zig"],Qe=Pt(Ct(),gt);Qe.supportedLanguages=Cn;var le=Qe},14179:function(X,C){"use strict";C.Z={'pre[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",background:"#1e1e1e"},'code[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#264F78"},'code[class*="language-"]::selection':{textShadow:"none",background:"#264F78"},'pre[class*="language-"] *::selection':{textShadow:"none",background:"#264F78"},'code[class*="language-"] *::selection':{textShadow:"none",background:"#264F78"},':not(pre) > code[class*="language-"]':{padding:".1em .3em",borderRadius:".3em",color:"#db4c69",background:"#1e1e1e"},".namespace":{Opacity:".7"},"doctype.doctype-tag":{color:"#569CD6"},"doctype.name":{color:"#9cdcfe"},comment:{color:"#6a9955"},prolog:{color:"#6a9955"},punctuation:{color:"#d4d4d4"},".language-html .language-css .token.punctuation":{color:"#d4d4d4"},".language-html .language-javascript .token.punctuation":{color:"#d4d4d4"},property:{color:"#9cdcfe"},tag:{color:"#569cd6"},boolean:{color:"#569cd6"},number:{color:"#b5cea8"},constant:{color:"#9cdcfe"},symbol:{color:"#b5cea8"},inserted:{color:"#b5cea8"},unit:{color:"#b5cea8"},selector:{color:"#d7ba7d"},"attr-name":{color:"#9cdcfe"},string:{color:"#ce9178"},char:{color:"#ce9178"},builtin:{color:"#ce9178"},deleted:{color:"#ce9178"},".language-css .token.string.url":{textDecoration:"underline"},operator:{color:"#d4d4d4"},entity:{color:"#569cd6"},"operator.arrow":{color:"#569CD6"},atrule:{color:"#ce9178"},"atrule.rule":{color:"#c586c0"},"atrule.url":{color:"#9cdcfe"},"atrule.url.function":{color:"#dcdcaa"},"atrule.url.punctuation":{color:"#d4d4d4"},keyword:{color:"#569CD6"},"keyword.module":{color:"#c586c0"},"keyword.control-flow":{color:"#c586c0"},function:{color:"#dcdcaa"},"function.maybe-class-name":{color:"#dcdcaa"},regex:{color:"#d16969"},important:{color:"#569cd6"},italic:{fontStyle:"italic"},"class-name":{color:"#4ec9b0"},"maybe-class-name":{color:"#4ec9b0"},console:{color:"#9cdcfe"},parameter:{color:"#9cdcfe"},interpolation:{color:"#9cdcfe"},"punctuation.interpolation-punctuation":{color:"#569cd6"},variable:{color:"#9cdcfe"},"imports.maybe-class-name":{color:"#9cdcfe"},"exports.maybe-class-name":{color:"#9cdcfe"},escape:{color:"#d7ba7d"},"tag.punctuation":{color:"#808080"},cdata:{color:"#808080"},"attr-value":{color:"#ce9178"},"attr-value.punctuation":{color:"#ce9178"},"attr-value.punctuation.attr-equals":{color:"#d4d4d4"},namespace:{color:"#4ec9b0"},'pre[class*="language-javascript"]':{color:"#9cdcfe"},'code[class*="language-javascript"]':{color:"#9cdcfe"},'pre[class*="language-jsx"]':{color:"#9cdcfe"},'code[class*="language-jsx"]':{color:"#9cdcfe"},'pre[class*="language-typescript"]':{color:"#9cdcfe"},'code[class*="language-typescript"]':{color:"#9cdcfe"},'pre[class*="language-tsx"]':{color:"#9cdcfe"},'code[class*="language-tsx"]':{color:"#9cdcfe"},'pre[class*="language-css"]':{color:"#ce9178"},'code[class*="language-css"]':{color:"#ce9178"},'pre[class*="language-html"]':{color:"#d4d4d4"},'code[class*="language-html"]':{color:"#d4d4d4"},".language-regex .token.anchor":{color:"#dcdcaa"},".language-html .token.punctuation":{color:"#808080"},'pre[class*="language-"] > code[class*="language-"]':{position:"relative",zIndex:"1"},".line-highlight.line-highlight":{background:"#f7ebc6",boxShadow:"inset 5px 0 0 #f7d87c",zIndex:"0"}}},19524:function(X,C,h){"use strict";h(84126);var v=h(59301),I=60103;if(C.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var O=Symbol.for;I=O("react.element"),C.Fragment=O("react.fragment")}var B=v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,G=Object.prototype.hasOwnProperty,F={key:!0,ref:!0,__self:!0,__source:!0};function M(de,ae,te){var Ne,Ee={},Xe=null,Oe=null;te!==void 0&&(Xe=""+te),ae.key!==void 0&&(Xe=""+ae.key),ae.ref!==void 0&&(Oe=ae.ref);for(Ne in ae)G.call(ae,Ne)&&!F.hasOwnProperty(Ne)&&(Ee[Ne]=ae[Ne]);if(de&&de.defaultProps)for(Ne in ae=de.defaultProps,ae)Ee[Ne]===void 0&&(Ee[Ne]=ae[Ne]);return{$$typeof:I,type:de,key:Xe,ref:Oe,props:Ee,_owner:B.current}}C.jsx=M,C.jsxs=M},37712:function(X,C,h){"use strict";X.exports=h(19524)},95489:function(X,C,h){"use strict";var v=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof h.g=="object"?h.g:{},I=ke();v.Prism={manual:!0,disableWorkerMessageHandler:!0};var O=h(43621),B=h(12256),G=h(68398),F=h(70614),M=h(54212),de=h(9720),ae=h(88786);I();var te={}.hasOwnProperty;function Ne(){}Ne.prototype=G;var Ee=new Ne;X.exports=Ee,Ee.highlight=Ce,Ee.register=Xe,Ee.alias=Oe,Ee.registered=Ie,Ee.listLanguages=Re,Xe(F),Xe(M),Xe(de),Xe(ae),Ee.util.encode=ye,Ee.Token.stringify=fe;function Xe(ee){if(typeof ee!="function"||!ee.displayName)throw new Error("Expected `function` for `grammar`, got `"+ee+"`");Ee.languages[ee.displayName]===void 0&&ee(Ee)}function Oe(ee,Te){var Me=Ee.languages,Le=ee,Je,Ye,ne,at;Te&&(Le={},Le[ee]=Te);for(Je in Le)for(Ye=Le[Je],Ye=typeof Ye=="string"?[Ye]:Ye,ne=Ye.length,at=-1;++at<ne;)Me[Ye[at]]=Me[Je]}function Ce(ee,Te){var Me=G.highlight,Le;if(typeof ee!="string")throw new Error("Expected `string` for `value`, got `"+ee+"`");if(Ee.util.type(Te)==="Object")Le=Te,Te=null;else{if(typeof Te!="string")throw new Error("Expected `string` for `name`, got `"+Te+"`");if(te.call(Ee.languages,Te))Le=Ee.languages[Te];else throw new Error("Unknown language: `"+Te+"` is not registered")}return Me.call(this,ee,Le,Te)}function Ie(ee){if(typeof ee!="string")throw new Error("Expected `string` for `language`, got `"+ee+"`");return te.call(Ee.languages,ee)}function Re(){var ee=Ee.languages,Te=[],Me;for(Me in ee)te.call(ee,Me)&&typeof ee[Me]=="object"&&Te.push(Me);return Te}function fe(ee,Te,Me){var Le;return typeof ee=="string"?{type:"text",value:ee}:Ee.util.type(ee)==="Array"?me(ee,Te):(Le={type:ee.type,content:Ee.Token.stringify(ee.content,Te,Me),tag:"span",classes:["token",ee.type],attributes:{},language:Te,parent:Me},ee.alias&&(Le.classes=Le.classes.concat(ee.alias)),Ee.hooks.run("wrap",Le),O(Le.tag+"."+Le.classes.join("."),pe(Le.attributes),Le.content))}function me(ee,Te){for(var Me=[],Le=ee.length,Je=-1,Ye;++Je<Le;)Ye=ee[Je],Ye!==""&&Ye!==null&&Ye!==void 0&&Me.push(Ye);for(Je=-1,Le=Me.length;++Je<Le;)Ye=Me[Je],Me[Je]=Ee.Token.stringify(Ye,Te,Me);return Me}function ye(ee){return ee}function pe(ee){var Te;for(Te in ee)ee[Te]=B(ee[Te]);return ee}function ke(){var ee="Prism"in v,Te=ee?v.Prism:void 0;return Me;function Me(){ee?v.Prism=Te:delete v.Prism,ee=void 0,Te=void 0}}},11594:function(X,C,h){"use strict";var v=h(95489);X.exports=v,v.register(h(79007)),v.register(h(15465)),v.register(h(42746)),v.register(h(93281)),v.register(h(95143)),v.register(h(65924)),v.register(h(65043)),v.register(h(43556)),v.register(h(14901)),v.register(h(4248)),v.register(h(17758)),v.register(h(33335)),v.register(h(17427)),v.register(h(22956)),v.register(h(56007)),v.register(h(45652)),v.register(h(33819)),v.register(h(84230)),v.register(h(20803)),v.register(h(65235)),v.register(h(52406)),v.register(h(79571)),v.register(h(3058)),v.register(h(51422)),v.register(h(1618)),v.register(h(2505)),v.register(h(51274)),v.register(h(23796)),v.register(h(13979)),v.register(h(87994)),v.register(h(47035)),v.register(h(36142)),v.register(h(85290)),v.register(h(7407)),v.register(h(79440)),v.register(h(7110)),v.register(h(73435)),v.register(h(91372)),v.register(h(63663)),v.register(h(92987)),v.register(h(91657)),v.register(h(34367)),v.register(h(35348)),v.register(h(26841)),v.register(h(87071)),v.register(h(13652)),v.register(h(87648)),v.register(h(10617)),v.register(h(5348)),v.register(h(71053)),v.register(h(69820)),v.register(h(41929)),v.register(h(51837)),v.register(h(4182)),v.register(h(22117)),v.register(h(95627)),v.register(h(34265)),v.register(h(50618)),v.register(h(32126)),v.register(h(26737)),v.register(h(90134)),v.register(h(51348)),v.register(h(60841)),v.register(h(42857)),v.register(h(81269)),v.register(h(31134)),v.register(h(83125)),v.register(h(9438)),v.register(h(27771)),v.register(h(86549)),v.register(h(37079)),v.register(h(59250)),v.register(h(81226)),v.register(h(65245)),v.register(h(25040)),v.register(h(40284)),v.register(h(39187)),v.register(h(34302)),v.register(h(90515)),v.register(h(33534)),v.register(h(9885)),v.register(h(76364)),v.register(h(56452)),v.register(h(8477)),v.register(h(58230)),v.register(h(66192)),v.register(h(81084)),v.register(h(50318)),v.register(h(95769)),v.register(h(14155)),v.register(h(92823)),v.register(h(63092)),v.register(h(21550)),v.register(h(29710)),v.register(h(2050)),v.register(h(67967)),v.register(h(29138)),v.register(h(67915)),v.register(h(54853)),v.register(h(68330)),v.register(h(76823)),v.register(h(86712)),v.register(h(72252)),v.register(h(78634)),v.register(h(43583)),v.register(h(23328)),v.register(h(74494)),v.register(h(46745)),v.register(h(22152)),v.register(h(83698)),v.register(h(26619)),v.register(h(53990)),v.register(h(7093)),v.register(h(4005)),v.register(h(53510)),v.register(h(24799)),v.register(h(97443)),v.register(h(80746)),v.register(h(17015)),v.register(h(89246)),v.register(h(487)),v.register(h(79539)),v.register(h(15628)),v.register(h(14320)),v.register(h(73222)),v.register(h(92486)),v.register(h(24103)),v.register(h(40604)),v.register(h(23109)),v.register(h(32082)),v.register(h(77674)),v.register(h(37524)),v.register(h(6658)),v.register(h(24824)),v.register(h(22776)),v.register(h(89700)),v.register(h(99296)),v.register(h(39940)),v.register(h(34973)),v.register(h(98135)),v.register(h(36907)),v.register(h(3567)),v.register(h(23763)),v.register(h(29509)),v.register(h(40472)),v.register(h(44695)),v.register(h(53885)),v.register(h(51478)),v.register(h(16928)),v.register(h(13586)),v.register(h(37164)),v.register(h(25153)),v.register(h(33245)),v.register(h(32218)),v.register(h(65626)),v.register(h(60090)),v.register(h(40722)),v.register(h(37783)),v.register(h(41224)),v.register(h(71365)),v.register(h(42846)),v.register(h(32964)),v.register(h(78830)),v.register(h(88799)),v.register(h(66791)),v.register(h(41735)),v.register(h(13490)),v.register(h(7383)),v.register(h(66894)),v.register(h(45779)),v.register(h(27734)),v.register(h(91889)),v.register(h(55965)),v.register(h(37326)),v.register(h(92949)),v.register(h(5681)),v.register(h(70696)),v.register(h(35790)),v.register(h(25777)),v.register(h(65889)),v.register(h(53852)),v.register(h(97719)),v.register(h(63839)),v.register(h(67623)),v.register(h(32530)),v.register(h(8938)),v.register(h(55259)),v.register(h(67411)),v.register(h(15375)),v.register(h(12093)),v.register(h(83588)),v.register(h(94127)),v.register(h(21294)),v.register(h(38709)),v.register(h(15008)),v.register(h(96549)),v.register(h(5221)),v.register(h(27447)),v.register(h(73191)),v.register(h(75542)),v.register(h(50323)),v.register(h(44298)),v.register(h(9634)),v.register(h(75266)),v.register(h(48139)),v.register(h(97534)),v.register(h(90826)),v.register(h(63919)),v.register(h(68862)),v.register(h(39523)),v.register(h(31207)),v.register(h(75308)),v.register(h(45315)),v.register(h(13794)),v.register(h(41299)),v.register(h(98177)),v.register(h(48780)),v.register(h(79793)),v.register(h(52085)),v.register(h(65411)),v.register(h(84750)),v.register(h(88216)),v.register(h(66433)),v.register(h(34855)),v.register(h(12998)),v.register(h(10202)),v.register(h(41186)),v.register(h(68963)),v.register(h(5569)),v.register(h(69435)),v.register(h(42766)),v.register(h(46449)),v.register(h(89032)),v.register(h(40241)),v.register(h(24812)),v.register(h(16747)),v.register(h(73584)),v.register(h(79243)),v.register(h(31788)),v.register(h(60871)),v.register(h(21023)),v.register(h(14693)),v.register(h(8743)),v.register(h(1689)),v.register(h(69210)),v.register(h(58710)),v.register(h(60452)),v.register(h(92784)),v.register(h(36489)),v.register(h(78380)),v.register(h(10409)),v.register(h(6539)),v.register(h(82028)),v.register(h(62282)),v.register(h(55686)),v.register(h(70889)),v.register(h(37116)),v.register(h(66963)),v.register(h(21078)),v.register(h(96198)),v.register(h(17723)),v.register(h(67771)),v.register(h(30307)),v.register(h(8921)),v.register(h(13429)),v.register(h(65197)),v.register(h(88904)),v.register(h(35)),v.register(h(86095)),v.register(h(76998)),v.register(h(14409)),v.register(h(33460)),v.register(h(28108))},79007:function(X){"use strict";X.exports=C,C.displayName="abap",C.aliases=[];function C(h){h.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:SCIENTIFIC_WITH_LEADING_ZERO|SCALE_PRESERVING_SCIENTIFIC|RMC_COMMUNICATION_FAILURE|END-ENHANCEMENT-SECTION|MULTIPLY-CORRESPONDING|SUBTRACT-CORRESPONDING|VERIFICATION-MESSAGE|DIVIDE-CORRESPONDING|ENHANCEMENT-SECTION|CURRENCY_CONVERSION|RMC_SYSTEM_FAILURE|START-OF-SELECTION|MOVE-CORRESPONDING|RMC_INVALID_STATUS|CUSTOMER-FUNCTION|END-OF-DEFINITION|ENHANCEMENT-POINT|SYSTEM-EXCEPTIONS|ADD-CORRESPONDING|SCALE_PRESERVING|SELECTION-SCREEN|CURSOR-SELECTION|END-OF-SELECTION|LOAD-OF-PROGRAM|SCROLL-BOUNDARY|SELECTION-TABLE|EXCEPTION-TABLE|IMPLEMENTATIONS|PARAMETER-TABLE|RIGHT-JUSTIFIED|UNIT_CONVERSION|AUTHORITY-CHECK|LIST-PROCESSING|SIGN_AS_POSTFIX|COL_BACKGROUND|IMPLEMENTATION|INTERFACE-POOL|TRANSFORMATION|IDENTIFICATION|ENDENHANCEMENT|LINE-SELECTION|INITIALIZATION|LEFT-JUSTIFIED|SELECT-OPTIONS|SELECTION-SETS|COMMUNICATION|CORRESPONDING|DECIMAL_SHIFT|PRINT-CONTROL|VALUE-REQUEST|CHAIN-REQUEST|FUNCTION-POOL|FIELD-SYMBOLS|FUNCTIONALITY|INVERTED-DATE|SELECTION-SET|CLASS-METHODS|OUTPUT-LENGTH|CLASS-CODING|COL_NEGATIVE|ERRORMESSAGE|FIELD-GROUPS|HELP-REQUEST|NO-EXTENSION|NO-TOPOFPAGE|REDEFINITION|DISPLAY-MODE|ENDINTERFACE|EXIT-COMMAND|FIELD-SYMBOL|NO-SCROLLING|SHORTDUMP-ID|ACCESSPOLICY|CLASS-EVENTS|COL_POSITIVE|DECLARATIONS|ENHANCEMENTS|FILTER-TABLE|SWITCHSTATES|SYNTAX-CHECK|TRANSPORTING|ASYNCHRONOUS|SYNTAX-TRACE|TOKENIZATION|USER-COMMAND|WITH-HEADING|ABAP-SOURCE|BREAK-POINT|CHAIN-INPUT|COMPRESSION|FIXED-POINT|NEW-SECTION|NON-UNICODE|OCCURRENCES|RESPONSIBLE|SYSTEM-CALL|TRACE-TABLE|ABBREVIATED|CHAR-TO-HEX|END-OF-FILE|ENDFUNCTION|ENVIRONMENT|ASSOCIATION|COL_HEADING|EDITOR-CALL|END-OF-PAGE|ENGINEERING|IMPLEMENTED|INTENSIFIED|RADIOBUTTON|SYSTEM-EXIT|TOP-OF-PAGE|TRANSACTION|APPLICATION|CONCATENATE|DESTINATION|ENHANCEMENT|IMMEDIATELY|NO-GROUPING|PRECOMPILED|REPLACEMENT|TITLE-LINES|ACTIVATION|BYTE-ORDER|CLASS-POOL|CONNECTION|CONVERSION|DEFINITION|DEPARTMENT|EXPIRATION|INHERITING|MESSAGE-ID|NO-HEADING|PERFORMING|QUEUE-ONLY|RIGHTSPACE|SCIENTIFIC|STATUSINFO|STRUCTURES|SYNCPOINTS|WITH-TITLE|ATTRIBUTES|BOUNDARIES|CLASS-DATA|COL_NORMAL|DD\/MM\/YYYY|DESCENDING|INTERFACES|LINE-COUNT|MM\/DD\/YYYY|NON-UNIQUE|PRESERVING|SELECTIONS|STATEMENTS|SUBROUTINE|TRUNCATION|TYPE-POOLS|ARITHMETIC|BACKGROUND|ENDPROVIDE|EXCEPTIONS|IDENTIFIER|INDEX-LINE|OBLIGATORY|PARAMETERS|PERCENTAGE|PUSHBUTTON|RESOLUTION|COMPONENTS|DEALLOCATE|DISCONNECT|DUPLICATES|FIRST-LINE|HEAD-LINES|NO-DISPLAY|OCCURRENCE|RESPECTING|RETURNCODE|SUBMATCHES|TRACE-FILE|ASCENDING|BYPASSING|ENDMODULE|EXCEPTION|EXCLUDING|EXPORTING|INCREMENT|MATCHCODE|PARAMETER|PARTIALLY|PREFERRED|REFERENCE|REPLACING|RETURNING|SELECTION|SEPARATED|SPECIFIED|STATEMENT|TIMESTAMP|TYPE-POOL|ACCEPTING|APPENDAGE|ASSIGNING|COL_GROUP|COMPARING|CONSTANTS|DANGEROUS|IMPORTING|INSTANCES|LEFTSPACE|LOG-POINT|QUICKINFO|READ-ONLY|SCROLLING|SQLSCRIPT|STEP-LOOP|TOP-LINES|TRANSLATE|APPENDING|AUTHORITY|CHARACTER|COMPONENT|CONDITION|DIRECTORY|DUPLICATE|MESSAGING|RECEIVING|SUBSCREEN|ACCORDING|COL_TOTAL|END-LINES|ENDMETHOD|ENDSELECT|EXPANDING|EXTENSION|INCLUDING|INFOTYPES|INTERFACE|INTERVALS|LINE-SIZE|PF-STATUS|PROCEDURE|PROTECTED|REQUESTED|RESUMABLE|RIGHTPLUS|SAP-SPOOL|SECONDARY|STRUCTURE|SUBSTRING|TABLEVIEW|NUMOFCHAR|ADJACENT|ANALYSIS|ASSIGNED|BACKWARD|CHANNELS|CHECKBOX|CONTINUE|CRITICAL|DATAINFO|DD\/MM\/YY|DURATION|ENCODING|ENDCLASS|FUNCTION|LEFTPLUS|LINEFEED|MM\/DD\/YY|OVERFLOW|RECEIVED|SKIPPING|SORTABLE|STANDARD|SUBTRACT|SUPPRESS|TABSTRIP|TITLEBAR|TRUNCATE|UNASSIGN|WHENEVER|ANALYZER|COALESCE|COMMENTS|CONDENSE|DECIMALS|DEFERRED|ENDWHILE|EXPLICIT|KEYWORDS|MESSAGES|POSITION|PRIORITY|RECEIVER|RENAMING|TIMEZONE|TRAILING|ALLOCATE|CENTERED|CIRCULAR|CONTROLS|CURRENCY|DELETING|DESCRIBE|DISTANCE|ENDCATCH|EXPONENT|EXTENDED|GENERATE|IGNORING|INCLUDES|INTERNAL|MAJOR-ID|MODIFIER|NEW-LINE|OPTIONAL|PROPERTY|ROLLBACK|STARTING|SUPPLIED|ABSTRACT|CHANGING|CONTEXTS|CREATING|CUSTOMER|DATABASE|DAYLIGHT|DEFINING|DISTINCT|DIVISION|ENABLING|ENDCHAIN|ESCAPING|HARMLESS|IMPLICIT|INACTIVE|LANGUAGE|MINOR-ID|MULTIPLY|NEW-PAGE|NO-TITLE|POS_HIGH|SEPARATE|TEXTPOOL|TRANSFER|SELECTOR|DBMAXLEN|ITERATOR|ARCHIVE|BIT-XOR|BYTE-CO|COLLECT|COMMENT|CURRENT|DEFAULT|DISPLAY|ENDFORM|EXTRACT|LEADING|LISTBOX|LOCATOR|MEMBERS|METHODS|NESTING|POS_LOW|PROCESS|PROVIDE|RAISING|RESERVE|SECONDS|SUMMARY|VISIBLE|BETWEEN|BIT-AND|BYTE-CS|CLEANUP|COMPUTE|CONTROL|CONVERT|DATASET|ENDCASE|FORWARD|HEADERS|HOTSPOT|INCLUDE|INVERSE|KEEPING|NO-ZERO|OBJECTS|OVERLAY|PADDING|PATTERN|PROGRAM|REFRESH|SECTION|SUMMING|TESTING|VERSION|WINDOWS|WITHOUT|BIT-NOT|BYTE-CA|BYTE-NA|CASTING|CONTEXT|COUNTRY|DYNAMIC|ENABLED|ENDLOOP|EXECUTE|FRIENDS|HANDLER|HEADING|INITIAL|\*-INPUT|LOGFILE|MAXIMUM|MINIMUM|NO-GAPS|NO-SIGN|PRAGMAS|PRIMARY|PRIVATE|REDUCED|REPLACE|REQUEST|RESULTS|UNICODE|WARNING|ALIASES|BYTE-CN|BYTE-NS|CALLING|COL_KEY|COLUMNS|CONNECT|ENDEXEC|ENTRIES|EXCLUDE|FILTERS|FURTHER|HELP-ID|LOGICAL|MAPPING|MESSAGE|NAMETAB|OPTIONS|PACKAGE|PERFORM|RECEIVE|STATICS|VARYING|BINDING|CHARLEN|GREATER|XSTRLEN|ACCEPT|APPEND|DETAIL|ELSEIF|ENDING|ENDTRY|FORMAT|FRAMES|GIVING|HASHED|HEADER|IMPORT|INSERT|MARGIN|MODULE|NATIVE|OBJECT|OFFSET|REMOTE|RESUME|SAVING|SIMPLE|SUBMIT|TABBED|TOKENS|UNIQUE|UNPACK|UPDATE|WINDOW|YELLOW|ACTUAL|ASPECT|CENTER|CURSOR|DELETE|DIALOG|DIVIDE|DURING|ERRORS|EVENTS|EXTEND|FILTER|HANDLE|HAVING|IGNORE|LITTLE|MEMORY|NO-GAP|OCCURS|OPTION|PERSON|PLACES|PUBLIC|REDUCE|REPORT|RESULT|SINGLE|SORTED|SWITCH|SYNTAX|TARGET|VALUES|WRITER|ASSERT|BLOCKS|BOUNDS|BUFFER|CHANGE|COLUMN|COMMIT|CONCAT|COPIES|CREATE|DDMMYY|DEFINE|ENDIAN|ESCAPE|EXPAND|KERNEL|LAYOUT|LEGACY|LEVELS|MMDDYY|NUMBER|OUTPUT|RANGES|READER|RETURN|SCREEN|SEARCH|SELECT|SHARED|SOURCE|STABLE|STATIC|SUBKEY|SUFFIX|TABLES|UNWIND|YYMMDD|ASSIGN|BACKUP|BEFORE|BINARY|BIT-OR|BLANKS|CLIENT|CODING|COMMON|DEMAND|DYNPRO|EXCEPT|EXISTS|EXPORT|FIELDS|GLOBAL|GROUPS|LENGTH|LOCALE|MEDIUM|METHOD|MODIFY|NESTED|OTHERS|REJECT|SCROLL|SUPPLY|SYMBOL|ENDFOR|STRLEN|ALIGN|BEGIN|BOUND|ENDAT|ENTRY|EVENT|FINAL|FLUSH|GRANT|INNER|SHORT|USING|WRITE|AFTER|BLACK|BLOCK|CLOCK|COLOR|COUNT|DUMMY|EMPTY|ENDDO|ENDON|GREEN|INDEX|INOUT|LEAVE|LEVEL|LINES|MODIF|ORDER|OUTER|RANGE|RESET|RETRY|RIGHT|SMART|SPLIT|STYLE|TABLE|THROW|UNDER|UNTIL|UPPER|UTF-8|WHERE|ALIAS|BLANK|CLEAR|CLOSE|EXACT|FETCH|FIRST|FOUND|GROUP|LLANG|LOCAL|OTHER|REGEX|SPOOL|TITLE|TYPES|VALID|WHILE|ALPHA|BOXED|CATCH|CHAIN|CHECK|CLASS|COVER|ENDIF|EQUIV|FIELD|FLOOR|FRAME|INPUT|LOWER|MATCH|NODES|PAGES|PRINT|RAISE|ROUND|SHIFT|SPACE|SPOTS|STAMP|STATE|TASKS|TIMES|TRMAC|ULINE|UNION|VALUE|WIDTH|EQUAL|LOG10|TRUNC|BLOB|CASE|CEIL|CLOB|COND|EXIT|FILE|GAPS|HOLD|INCL|INTO|KEEP|KEYS|LAST|LINE|LONG|LPAD|MAIL|MODE|OPEN|PINK|READ|ROWS|TEST|THEN|ZERO|AREA|BACK|BADI|BYTE|CAST|EDIT|EXEC|FAIL|FIND|FKEQ|FONT|FREE|GKEQ|HIDE|INIT|ITNO|LATE|LOOP|MAIN|MARK|MOVE|NEXT|NULL|RISK|ROLE|UNIT|WAIT|ZONE|BASE|CALL|CODE|DATA|DATE|FKGE|GKGE|HIGH|KIND|LEFT|LIST|MASK|MESH|NAME|NODE|PACK|PAGE|POOL|SEND|SIGN|SIZE|SOME|STOP|TASK|TEXT|TIME|USER|VARY|WITH|WORD|BLUE|CONV|COPY|DEEP|ELSE|FORM|FROM|HINT|ICON|JOIN|LIKE|LOAD|ONLY|PART|SCAN|SKIP|SORT|TYPE|UNIX|VIEW|WHEN|WORK|ACOS|ASIN|ATAN|COSH|EACH|FRAC|LESS|RTTI|SINH|SQRT|TANH|AVG|BIT|DIV|ISO|LET|OUT|PAD|SQL|ALL|CI_|CPI|END|LOB|LPI|MAX|MIN|NEW|OLE|RUN|SET|\?TO|YES|ABS|ADD|AND|BIG|FOR|HDB|JOB|LOW|NOT|SAP|TRY|VIA|XML|ANY|GET|IDS|KEY|MOD|OFF|PUT|RAW|RED|REF|SUM|TAB|XSD|CNT|COS|EXP|LOG|SIN|TAN|XOR|AT|CO|CP|DO|GT|ID|IF|NS|OR|BT|CA|CS|GE|NA|NB|EQ|IN|LT|NE|NO|OF|ON|PF|TO|AS|BY|CN|IS|LE|NP|UP|E|I|M|O|Z|C|X)\b/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}},15465:function(X){"use strict";X.exports=C,C.displayName="abnf",C.aliases=[];function C(h){(function(v){var I="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";v.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+I+"|<"+I+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(h)}},42746:function(X){"use strict";X.exports=C,C.displayName="actionscript",C.aliases=[];function C(h){h.languages.actionscript=h.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),h.languages.actionscript["class-name"].alias="function",delete h.languages.actionscript.parameter,delete h.languages.actionscript["literal-property"],h.languages.markup&&h.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:h.languages.markup}})}},93281:function(X){"use strict";X.exports=C,C.displayName="ada",C.aliases=[];function C(h){h.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],"attr-name":/\b'\w+/,keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}},95143:function(X){"use strict";X.exports=C,C.displayName="agda",C.aliases=[];function C(h){(function(v){v.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(h)}},65924:function(X){"use strict";X.exports=C,C.displayName="al",C.aliases=[];function C(h){h.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}},65043:function(X){"use strict";X.exports=C,C.displayName="antlr4",C.aliases=["g4"];function C(h){h.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},h.languages.g4=h.languages.antlr4}},43556:function(X){"use strict";X.exports=C,C.displayName="apacheconf",C.aliases=[];function C(h){h.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}},14901:function(X,C,h){"use strict";var v=h(69435);X.exports=I,I.displayName="apex",I.aliases=[];function I(O){O.register(v),function(B){var G=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,F=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!<keyword>))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(/<keyword>/g,function(){return G.source});function M(ae){return RegExp(ae.replace(/<CLASS-NAME>/g,function(){return F}),"i")}var de={keyword:G,punctuation:/[()\[\]{};,:.<>]/};B.languages.apex={comment:B.languages.clike.comment,string:B.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:B.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:M(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)<CLASS-NAME>/.source),lookbehind:!0,inside:de},{pattern:M(/(\(\s*)<CLASS-NAME>(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:de},{pattern:M(/<CLASS-NAME>(?=\s*\w+\s*[;=,(){:])/.source),inside:de}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:G,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<<?=?|>{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(O)}},4248:function(X){"use strict";X.exports=C,C.displayName="apl",C.aliases=[];function C(h){h.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}},17758:function(X){"use strict";X.exports=C,C.displayName="applescript",C.aliases=[];function C(h){h.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}},33335:function(X){"use strict";X.exports=C,C.displayName="aql",C.aliases=[];function C(h){h.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}},17427:function(X,C,h){"use strict";var v=h(87071);X.exports=I,I.displayName="arduino",I.aliases=["ino"];function I(O){O.register(v),O.languages.arduino=O.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),O.languages.ino=O.languages.arduino}},22956:function(X){"use strict";X.exports=C,C.displayName="arff",C.aliases=[];function C(h){h.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}},56007:function(X){"use strict";X.exports=C,C.displayName="asciidoc",C.aliases=["adoc"];function C(h){(function(v){var I={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},O=v.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:I,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)<?\d*>/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:I.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:I,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function B(G){G=G.split(" ");for(var F={},M=0,de=G.length;M<de;M++)F[G[M]]=O[G[M]];return F}I.inside.interpreted.inside.rest=B("macro inline replacement entity"),O["passthrough-block"].inside.rest=B("macro"),O["literal-block"].inside.rest=B("callout"),O.table.inside.rest=B("comment-block passthrough-block literal-block other-block list-punctuation indented-block comment title attribute-entry attributes hr page-break admonition list-label callout macro inline replacement entity line-continuation"),O["other-block"].inside.rest=B("table list-punctuation indented-block comment attribute-entry attributes hr page-break admonition list-label macro inline replacement entity line-continuation"),O.title.inside.rest=B("macro inline replacement entity"),v.hooks.add("wrap",function(G){G.type==="entity"&&(G.attributes.title=G.content.value.replace(/&amp;/,"&"))}),v.languages.adoc=v.languages.asciidoc})(h)}},45652:function(X){"use strict";X.exports=C,C.displayName="asm6502",C.aliases=[];function C(h){h.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"property"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,"op-code":{pattern:/\b(?:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA|adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{1,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[xya]\b/i,alias:"variable"},punctuation:/[(),:]/}}},33819:function(X){"use strict";X.exports=C,C.displayName="asmatmel",C.aliases=[];function C(h){h.languages.asmatmel={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},constant:/\b(?:PORT[A-Z]|DDR[A-Z]|(?:DD|P)[A-Z](?:\d|[0-2]\d|3[01]))\b/,directive:{pattern:/\.\w+(?= )/,alias:"property"},"r-register":{pattern:/\br(?:\d|[12]\d|3[01])\b/,alias:"variable"},"op-code":{pattern:/\b(?:ADC|ADD|ADIW|AND|ANDI|ASR|BCLR|BLD|BRBC|BRBS|BRCC|BRCS|BREAK|BREQ|BRGE|BRHC|BRHS|BRID|BRIE|BRLO|BRLT|BRMI|BRNE|BRPL|BRSH|BRTC|BRTS|BRVC|BRVS|BSET|BST|CALL|CBI|CBR|CLC|CLH|CLI|CLN|CLR|CLS|CLT|CLV|CLZ|COM|CP|CPC|CPI|CPSE|DEC|DES|EICALL|EIJMP|ELPM|EOR|FMUL|FMULS|FMULSU|ICALL|IJMP|IN|INC|JMP|LAC|LAS|LAT|LD|LD[A-Za-z0-9]|LPM|LSL|LSR|MOV|MOVW|MUL|MULS|MULSU|NEG|NOP|OR|ORI|OUT|POP|PUSH|RCALL|RET|RETI|RJMP|ROL|ROR|SBC|SBCI|SBI|SBIC|SBIS|SBIW|SBR|SBRC|SBRS|SEC|SEH|SEI|SEN|SER|SES|SET|SEV|SEZ|SLEEP|SPM|ST|ST[A-Z0-9]|SUB|SUBI|SWAP|TST|WDR|XCH|adc|add|adiw|and|andi|asr|bclr|bld|brbc|brbs|brcc|brcs|break|breq|brge|brhc|brhs|brid|brie|brlo|brlt|brmi|brne|brpl|brsh|brtc|brts|brvc|brvs|bset|bst|call|cbi|cbr|clc|clh|cli|cln|clr|cls|clt|clv|clz|com|cp|cpc|cpi|cpse|dec|des|eicall|eijmp|elpm|eor|fmul|fmuls|fmulsu|icall|ijmp|in|inc|jmp|lac|las|lat|ld|ld[a-z0-9]|lpm|lsl|lsr|mov|movw|mul|muls|mulsu|neg|nop|or|ori|out|pop|push|rcall|ret|reti|rjmp|rol|ror|sbc|sbci|sbi|sbic|sbis|sbiw|sbr|sbrc|sbrs|sec|seh|sei|sen|ser|ses|set|sev|sez|sleep|spm|st|st[a-zA-Z0-9]|sub|subi|swap|tst|wdr|xch)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{2,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[acznvshtixy]\b/i,alias:"variable"},operator:/>>=?|<<=?|&&?|\|\|?|[-+*/%&|^!=<>?]=?/,punctuation:/[(),:]/}}},84230:function(X,C,h){"use strict";var v=h(87648);X.exports=I,I.displayName="aspnet",I.aliases=[];function I(O){O.register(v),O.languages.aspnet=O.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:O.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:O.languages.csharp}}}),O.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,O.languages.insertBefore("inside","punctuation",{directive:O.languages.aspnet.directive},O.languages.aspnet.tag.inside["attr-value"]),O.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),O.languages.insertBefore("aspnet",O.languages.javascript?"script":"tag",{"asp-script":{pattern:/(<script(?=.*runat=['"]?server\b)[^>]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:O.languages.csharp||{}}})}},20803:function(X){"use strict";X.exports=C,C.displayName="autohotkey",C.aliases=[];function C(h){h.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,selector:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,important:/#\b(?:AllowSameLineComments|ClipboardTimeout|CommentFlag|DerefChar|ErrorStdOut|EscapeChar|HotkeyInterval|HotkeyModifierTimeout|Hotstring|If|IfTimeout|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Include|IncludeAgain|InputLevel|InstallKeybdHook|InstallMouseHook|KeyHistory|MaxHotkeysPerInterval|MaxMem|MaxThreads|MaxThreadsBuffer|MaxThreadsPerHotkey|MenuMaskKey|NoEnv|NoTrayIcon|Persistent|SingleInstance|UseHook|Warn|WinActivateForce)\b/i,keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}},65235:function(X){"use strict";X.exports=C,C.displayName="autoit",C.aliases=[];function C(h){h.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}},52406:function(X){"use strict";X.exports=C,C.displayName="avisynth",C.aliases=["avs"];function C(h){(function(v){function I(ae,te){return ae.replace(/<<(\d+)>>/g,function(Ne,Ee){return te[+Ee]})}function O(ae,te,Ne){return RegExp(I(ae,te),Ne||"")}var B=/bool|clip|float|int|string|val/.source,G=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),F=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),M=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),de=[G,F,M].join("|");v.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:O(/\b(?:<<0>>)\s+("?)\w+\1/.source,[B],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:O(/\b(?:<<0>>)\b/.source,[de],"i"),alias:"function"},"type-cast":{pattern:O(/\b(?:<<0>>)(?=\s*\()/.source,[B],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},v.languages.avs=v.languages.avisynth})(h)}},79571:function(X){"use strict";X.exports=C,C.displayName="avroIdl",C.aliases=[];function C(h){h.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},h.languages.avdl=h.languages["avro-idl"]}},3058:function(X){"use strict";X.exports=C,C.displayName="bash",C.aliases=["shell"];function C(h){(function(v){var I="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",O={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},B={bash:O,environment:{pattern:RegExp("\\$"+I),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+I),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};v.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+I),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:B},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:O}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:B},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:B.entity}}],environment:{pattern:RegExp("\\$?"+I),alias:"constant"},variable:B.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},O.inside=v.languages.bash;for(var G=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],F=B.variable[1].inside,M=0;M<G.length;M++)F[G[M]]=v.languages.bash[G[M]];v.languages.shell=v.languages.bash})(h)}},51422:function(X){"use strict";X.exports=C,C.displayName="basic",C.aliases=[];function C(h){h.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}},1618:function(X){"use strict";X.exports=C,C.displayName="batch",C.aliases=[];function C(h){(function(v){var I=/%%?[~:\w]+%?|!\S+!/,O={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},B=/"(?:[\\"]"|[^"])*"(?!")/,G=/(?:\b|-)\d+\b/;v.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:B,parameter:O,variable:I,number:G,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:B,parameter:O,variable:I,number:G,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:B,parameter:O,variable:[I,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:G,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:B,parameter:O,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:I,number:G,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(h)}},2505:function(X){"use strict";X.exports=C,C.displayName="bbcode",C.aliases=["shortcode"];function C(h){h.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},h.languages.shortcode=h.languages.bbcode}},51274:function(X){"use strict";X.exports=C,C.displayName="bicep",C.aliases=[];function C(h){h.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},h.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=h.languages.bicep}},23796:function(X){"use strict";X.exports=C,C.displayName="birb",C.aliases=[];function C(h){h.languages.birb=h.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),h.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}},13979:function(X,C,h){"use strict";var v=h(79440);X.exports=I,I.displayName="bison",I.aliases=[];function I(O){O.register(v),O.languages.bison=O.languages.extend("c",{}),O.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:O.languages.c}},comment:O.languages.c.comment,string:O.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}},87994:function(X){"use strict";X.exports=C,C.displayName="bnf",C.aliases=["rbnf"];function C(h){h.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},h.languages.rbnf=h.languages.bnf}},47035:function(X){"use strict";X.exports=C,C.displayName="brainfuck",C.aliases=[];function C(h){h.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}},36142:function(X){"use strict";X.exports=C,C.displayName="brightscript",C.aliases=[];function C(h){h.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},h.languages.brightscript["directive-statement"].inside.expression.inside=h.languages.brightscript}},85290:function(X){"use strict";X.exports=C,C.displayName="bro",C.aliases=[];function C(h){h.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}},7407:function(X){"use strict";X.exports=C,C.displayName="bsl",C.aliases=[];function C(h){h.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},h.languages.oscript=h.languages.bsl}},79440:function(X){"use strict";X.exports=C,C.displayName="c",C.aliases=[];function C(h){h.languages.c=h.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),h.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),h.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},h.languages.c.string],char:h.languages.c.char,comment:h.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:h.languages.c}}}}),h.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete h.languages.c.boolean}},7110:function(X){"use strict";X.exports=C,C.displayName="cfscript",C.aliases=[];function C(h){h.languages.cfscript=h.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|<=?|>=?|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|[?:]/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),h.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete h.languages.cfscript["class-name"],h.languages.cfc=h.languages.cfscript}},73435:function(X,C,h){"use strict";var v=h(87071);X.exports=I,I.displayName="chaiscript",I.aliases=[];function I(O){O.register(v),O.languages.chaiscript=O.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[O.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),O.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),O.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:O.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}},91372:function(X){"use strict";X.exports=C,C.displayName="cil",C.aliases=[];function C(h){h.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}},9720:function(X){"use strict";X.exports=C,C.displayName="clike",C.aliases=[];function C(h){h.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}},63663:function(X){"use strict";X.exports=C,C.displayName="clojure",C.aliases=[];function C(h){h.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}},92987:function(X){"use strict";X.exports=C,C.displayName="cmake",C.aliases=[];function C(h){h.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_(?:BINARY_DIR|DESCRIPTION|HOMEPAGE_URL|NAME|SOURCE_DIR|VERSION|VERSION_(?:MAJOR|MINOR|PATCH|TWEAK))|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE|XCODE_VERSION))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|GLOBAL_KEYWORD|GLOBAL_PROJECT_TYPES|GLOBAL_ROOTNAMESPACE|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}},91657:function(X){"use strict";X.exports=C,C.displayName="cobol",C.aliases=[];function C(h){h.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}},34367:function(X){"use strict";X.exports=C,C.displayName="coffeescript",C.aliases=["coffee"];function C(h){(function(v){var I=/#(?!\{).+/,O={pattern:/#\{[^}]+\}/,alias:"variable"};v.languages.coffeescript=v.languages.extend("javascript",{comment:I,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:O}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),v.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:I,interpolation:O}}}),v.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:v.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:O}}]}),v.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete v.languages.coffeescript["template-string"],v.languages.coffee=v.languages.coffeescript})(h)}},35348:function(X){"use strict";X.exports=C,C.displayName="concurnas",C.aliases=["conc"];function C(h){h.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},h.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:h.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:h.languages.concurnas},string:/[\s\S]+/}}}),h.languages.conc=h.languages.concurnas}},26841:function(X){"use strict";X.exports=C,C.displayName="coq",C.aliases=[];function C(h){(function(v){for(var I=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|<self>)*\*\)/.source,O=0;O<2;O++)I=I.replace(/<self>/g,function(){return I});I=I.replace(/<self>/g,"[]"),v.languages.coq={comment:RegExp(I),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|<comment>)*\]/.source.replace(/<comment>/g,function(){return I})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(I),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(h)}},87071:function(X,C,h){"use strict";var v=h(79440);X.exports=I,I.displayName="cpp",I.aliases=[];function I(O){O.register(v),function(B){var G=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,F=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return G.source});B.languages.cpp=B.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return G.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:G,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),B.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return F})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),B.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:B.languages.cpp}}}}),B.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),B.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:B.languages.extend("cpp",{})}}),B.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},B.languages.cpp["base-clause"])}(O)}},13652:function(X,C,h){"use strict";var v=h(75308);X.exports=I,I.displayName="crystal",I.aliases=[];function I(O){O.register(v),function(B){B.languages.crystal=B.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,B.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),B.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:B.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:B.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(O)}},87648:function(X){"use strict";X.exports=C,C.displayName="csharp",C.aliases=["dotnet","cs"];function C(h){(function(v){function I(Cn,Qe){return Cn.replace(/<<(\d+)>>/g,function(le,ce){return"(?:"+Qe[+ce]+")"})}function O(Cn,Qe,le){return RegExp(I(Cn,Qe),le||"")}function B(Cn,Qe){for(var le=0;le<Qe;le++)Cn=Cn.replace(/<<self>>/g,function(){return"(?:"+Cn+")"});return Cn.replace(/<<self>>/g,"[^\\s\\S]")}var G={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function F(Cn){return"\\b(?:"+Cn.trim().replace(/ /g,"|")+")\\b"}var M=F(G.typeDeclaration),de=RegExp(F(G.type+" "+G.typeDeclaration+" "+G.contextual+" "+G.other)),ae=F(G.typeDeclaration+" "+G.contextual+" "+G.other),te=F(G.type+" "+G.typeDeclaration+" "+G.other),Ne=B(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),Ee=B(/\((?:[^()]|<<self>>)*\)/.source,2),Xe=/@?\b[A-Za-z_]\w*\b/.source,Oe=I(/<<0>>(?:\s*<<1>>)?/.source,[Xe,Ne]),Ce=I(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[ae,Oe]),Ie=/\[\s*(?:,\s*)*\]/.source,Re=I(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[Ce,Ie]),fe=I(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[Ne,Ee,Ie]),me=I(/\(<<0>>+(?:,<<0>>+)+\)/.source,[fe]),ye=I(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[me,Ce,Ie]),pe={keyword:de,punctuation:/[<>()?,.:[\]]/},ke=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,ee=/"(?:\\.|[^\\"\r\n])*"/.source,Te=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;v.languages.csharp=v.languages.extend("clike",{string:[{pattern:O(/(^|[^$\\])<<0>>/.source,[Te]),lookbehind:!0,greedy:!0},{pattern:O(/(^|[^@$\\])<<0>>/.source,[ee]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:O(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[Ce]),lookbehind:!0,inside:pe},{pattern:O(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[Xe,ye]),lookbehind:!0,inside:pe},{pattern:O(/(\busing\s+)<<0>>(?=\s*=)/.source,[Xe]),lookbehind:!0},{pattern:O(/(\b<<0>>\s+)<<1>>/.source,[M,Oe]),lookbehind:!0,inside:pe},{pattern:O(/(\bcatch\s*\(\s*)<<0>>/.source,[Ce]),lookbehind:!0,inside:pe},{pattern:O(/(\bwhere\s+)<<0>>/.source,[Xe]),lookbehind:!0},{pattern:O(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[Re]),lookbehind:!0,inside:pe},{pattern:O(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[ye,te,Xe]),inside:pe}],keyword:de,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),v.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),v.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:O(/([(,]\s*)<<0>>(?=\s*:)/.source,[Xe]),lookbehind:!0,alias:"punctuation"}}),v.languages.insertBefore("csharp","class-name",{namespace:{pattern:O(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[Xe]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:O(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[Ee]),lookbehind:!0,alias:"class-name",inside:pe},"return-type":{pattern:O(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[ye,Ce]),inside:pe,alias:"class-name"},"constructor-invocation":{pattern:O(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[ye]),lookbehind:!0,inside:pe,alias:"class-name"},"generic-method":{pattern:O(/<<0>>\s*<<1>>(?=\s*\()/.source,[Xe,Ne]),inside:{function:O(/^<<0>>/.source,[Xe]),generic:{pattern:RegExp(Ne),alias:"class-name",inside:pe}}},"type-list":{pattern:O(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[M,Oe,Xe,ye,de.source,Ee,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:O(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[Oe,Ee]),lookbehind:!0,greedy:!0,inside:v.languages.csharp},keyword:de,"class-name":{pattern:RegExp(ye),greedy:!0,inside:pe},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var Me=ee+"|"+ke,Le=I(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[Me]),Je=B(I(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[Le]),2),Ye=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,ne=I(/<<0>>(?:\s*\(<<1>>*\))?/.source,[Ce,Je]);v.languages.insertBefore("csharp","class-name",{attribute:{pattern:O(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[Ye,ne]),lookbehind:!0,greedy:!0,inside:{target:{pattern:O(/^<<0>>(?=\s*:)/.source,[Ye]),alias:"keyword"},"attribute-arguments":{pattern:O(/\(<<0>>*\)/.source,[Je]),inside:v.languages.csharp},"class-name":{pattern:RegExp(Ce),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var at=/:[^}\r\n]+/.source,Ge=B(I(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[Le]),2),Pt=I(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Ge,at]),gt=B(I(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[Me]),2),kt=I(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[gt,at]);function Ct(Cn,Qe){return{interpolation:{pattern:O(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[Cn]),lookbehind:!0,inside:{"format-string":{pattern:O(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[Qe,at]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:v.languages.csharp}}},string:/[\s\S]+/}}v.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:O(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[Pt]),lookbehind:!0,greedy:!0,inside:Ct(Pt,Ge)},{pattern:O(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[kt]),lookbehind:!0,greedy:!0,inside:Ct(kt,gt)}],char:{pattern:RegExp(ke),greedy:!0}}),v.languages.dotnet=v.languages.cs=v.languages.csharp})(h)}},10617:function(X,C,h){"use strict";var v=h(87648);X.exports=I,I.displayName="cshtml",I.aliases=["razor"];function I(O){O.register(v),function(B){var G=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,F=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function M(Re,fe){for(var me=0;me<fe;me++)Re=Re.replace(/<self>/g,function(){return"(?:"+Re+")"});return Re.replace(/<self>/g,"[^\\s\\S]").replace(/<str>/g,"(?:"+F+")").replace(/<comment>/g,"(?:"+G+")")}var de=M(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source,2),ae=M(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source,2),te=M(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source,2),Ne=M(/<(?:[^<>'"@/]|<str>|<comment>|<self>)*>/.source,2),Ee=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,Xe=/(?!\d)[^\s>\/=$<%]+/.source+Ee+/\s*\/?>/.source,Oe=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+Ee+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+Xe+"|"+M(/<\1/.source+Ee+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+Xe+"|<self>")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/</.source+Xe+")";B.languages.cshtml=B.languages.extend("markup",{});var Ce=B.languages.insertBefore("csharp","string",{html:{pattern:RegExp(Oe),greedy:!0,inside:B.languages.cshtml}},{csharp:B.languages.extend("csharp",{})}),Ie={pattern:/\S[\s\S]*/,alias:"language-csharp",inside:Ce};B.languages.insertBefore("cshtml","prolog",{"razor-comment":{pattern:/@\*[\s\S]*?\*@/,greedy:!0,alias:"comment"},block:{pattern:RegExp(/(^|[^@])@/.source+"(?:"+[te,/(?:code|functions)\s*/.source+te,/(?:for|foreach|lock|switch|using|while)\s*/.source+de+/\s*/.source+te,/do\s*/.source+te+/\s*while\s*/.source+de+/(?:\s*;)?/.source,/try\s*/.source+te+/\s*catch\s*/.source+de+/\s*/.source+te+/\s*finally\s*/.source+te,/if\s*/.source+de+/\s*/.source+te+"(?:"+/\s*else/.source+"(?:"+/\s+if\s*/.source+de+")?"+/\s*/.source+te+")*"].join("|")+")"),lookbehind:!0,greedy:!0,inside:{keyword:/^@\w*/,csharp:Ie}},directive:{pattern:/^([ \t]*)@(?:addTagHelper|attribute|implements|inherits|inject|layout|model|namespace|page|preservewhitespace|removeTagHelper|section|tagHelperPrefix|using)(?=\s).*/m,lookbehind:!0,greedy:!0,inside:{keyword:/^@\w+/,csharp:Ie}},value:{pattern:RegExp(/(^|[^@])@/.source+/(?:await\b\s*)?/.source+"(?:"+/\w+\b/.source+"|"+de+")(?:"+/[?!]?\.\w+\b/.source+"|"+de+"|"+ae+"|"+Ne+de+")*"),lookbehind:!0,greedy:!0,alias:"variable",inside:{keyword:/^@/,csharp:Ie}},"delegate-operator":{pattern:/(^|[^@])@(?=<)/,lookbehind:!0,alias:"operator"}}),B.languages.razor=B.languages.cshtml}(O)}},5348:function(X){"use strict";X.exports=C,C.displayName="csp",C.aliases=[];function C(h){(function(v){function I(O){return RegExp(/([ \t])/.source+"(?:"+O+")"+/(?=[\s;]|$)/.source,"i")}v.languages.csp={directive:{pattern:/(^|[\s;])(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|prefetch|script|style|worker)-src|disown-opener|form-action|frame-(?:ancestors|options)|input-protection(?:-(?:clip|selectors))?|navigate-to|plugin-types|policy-uri|referrer|reflected-xss|report-(?:to|uri)|require-sri-for|sandbox|(?:script|style)-src-(?:attr|elem)|upgrade-insecure-requests)(?=[\s;]|$)/i,lookbehind:!0,alias:"property"},scheme:{pattern:I(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:I(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:I(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:I(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:I(/[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source+"|"+/\*[^\s;,']*/.source+"|"+/[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source),lookbehind:!0,alias:"url",inside:{important:/\*/}},keyword:[{pattern:I(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:I(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}})(h)}},71053:function(X){"use strict";X.exports=C,C.displayName="cssExtras",C.aliases=[];function C(h){(function(v){var I=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,O;v.languages.css.selector={pattern:v.languages.css.selector.pattern,lookbehind:!0,inside:O={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+I.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[I,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},v.languages.css.atrule.inside["selector-function-argument"].inside=O,v.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var B={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},G={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};v.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:B,number:G,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:B,number:G})})(h)}},54212:function(X){"use strict";X.exports=C,C.displayName="css",C.aliases=[];function C(h){(function(v){var I=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;v.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+I.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+I.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+I.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:I,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},v.languages.css.atrule.inside.rest=v.languages.css;var O=v.languages.markup;O&&(O.tag.addInlined("style","css"),O.tag.addAttribute("style","css"))})(h)}},69820:function(X){"use strict";X.exports=C,C.displayName="csv",C.aliases=[];function C(h){h.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}},41929:function(X){"use strict";X.exports=C,C.displayName="cypher",C.aliases=[];function C(h){h.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}},51837:function(X){"use strict";X.exports=C,C.displayName="d",C.aliases=[];function C(h){h.languages.d=h.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),h.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),h.languages.insertBefore("d","keyword",{property:/\B@\w*/}),h.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}},4182:function(X){"use strict";X.exports=C,C.displayName="dart",C.aliases=[];function C(h){(function(v){var I=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],O=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,B={pattern:RegExp(O+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};v.languages.dart=v.languages.extend("clike",{"class-name":[B,{pattern:RegExp(O+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:B.inside}],keyword:I,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),v.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:v.languages.dart}}},string:/[\s\S]+/}},string:void 0}),v.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),v.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":B,keyword:I,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(h)}},22117:function(X){"use strict";X.exports=C,C.displayName="dataweave",C.aliases=[];function C(h){(function(v){v.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(h)}},95627:function(X){"use strict";X.exports=C,C.displayName="dax",C.aliases=[];function C(h){h.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}},34265:function(X){"use strict";X.exports=C,C.displayName="dhall",C.aliases=[];function C(h){h.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},h.languages.dhall.string.inside.interpolation.inside.expression.inside=h.languages.dhall}},50618:function(X){"use strict";X.exports=C,C.displayName="diff",C.aliases=[];function C(h){(function(v){v.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var I={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(I).forEach(function(O){var B=I[O],G=[];/^\w+$/.test(O)||G.push(/\w+/.exec(O)[0]),O==="diff"&&G.push("bold"),v.languages.diff[O]={pattern:RegExp("^(?:["+B+`].*(?:\r
?|
|(?![\\s\\S])))+`,"m"),alias:G,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(O)[0]}}}}),Object.defineProperty(v.languages.diff,"PREFIXES",{value:I})})(h)}},32126:function(X,C,h){"use strict";var v=h(51478);X.exports=I,I.displayName="django",I.aliases=["jinja2"];function I(O){O.register(v),function(B){B.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var G=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,F=B.languages["markup-templating"];B.hooks.add("before-tokenize",function(M){F.buildPlaceholders(M,"django",G)}),B.hooks.add("after-tokenize",function(M){F.tokenizePlaceholders(M,"django")}),B.languages.jinja2=B.languages.django,B.hooks.add("before-tokenize",function(M){F.buildPlaceholders(M,"jinja2",G)}),B.hooks.add("after-tokenize",function(M){F.tokenizePlaceholders(M,"jinja2")})}(O)}},26737:function(X){"use strict";X.exports=C,C.displayName="dnsZoneFile",C.aliases=[];function C(h){h.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},h.languages["dns-zone"]=h.languages["dns-zone-file"]}},90134:function(X){"use strict";X.exports=C,C.displayName="docker",C.aliases=["dockerfile"];function C(h){(function(v){var I=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,O=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,function(){return I}),B=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,G=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,function(){return B}),F={pattern:RegExp(B),greedy:!0},M={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function de(ae,te){return ae=ae.replace(/<OPT>/g,function(){return G}).replace(/<SP>/g,function(){return O}),RegExp(ae,te)}v.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:de(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[F,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:de(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:de(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:de(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:M,string:F,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:M},v.languages.dockerfile=v.languages.docker})(h)}},51348:function(X){"use strict";X.exports=C,C.displayName="dot",C.aliases=["gv"];function C(h){(function(v){var I="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!<!--)<(?:[^<>"']|"[^"]*"|'[^']*')+>|<!--(?:[^-]|-(?!->))*-->)*>/.source].join("|")+")",O={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:v.languages.markup}};function B(G,F){return RegExp(G.replace(/<ID>/g,function(){return I}),F)}v.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:B(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)<ID>/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:O},"attr-value":{pattern:B(/(=[ \t\r\n]*)<ID>/.source),lookbehind:!0,greedy:!0,inside:O},"attr-name":{pattern:B(/([\[;, \t\r\n])<ID>(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:O},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:B(/(^|[^-.\w\x80-\uFFFF\\])<ID>/.source),lookbehind:!0,greedy:!0,inside:O},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},v.languages.gv=v.languages.dot})(h)}},60841:function(X){"use strict";X.exports=C,C.displayName="ebnf",C.aliases=[];function C(h){h.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}},42857:function(X){"use strict";X.exports=C,C.displayName="editorconfig",C.aliases=[];function C(h){h.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}},81269:function(X){"use strict";X.exports=C,C.displayName="eiffel",C.aliases=[];function C(h){h.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}},31134:function(X,C,h){"use strict";var v=h(51478);X.exports=I,I.displayName="ejs",I.aliases=["eta"];function I(O){O.register(v),function(B){B.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:B.languages.javascript}},B.hooks.add("before-tokenize",function(G){var F=/<%(?!%)[\s\S]+?%>/g;B.languages["markup-templating"].buildPlaceholders(G,"ejs",F)}),B.hooks.add("after-tokenize",function(G){B.languages["markup-templating"].tokenizePlaceholders(G,"ejs")}),B.languages.eta=B.languages.ejs}(O)}},83125:function(X){"use strict";X.exports=C,C.displayName="elixir",C.aliases=[];function C(h){h.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},h.languages.elixir.string.forEach(function(v){v.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:h.languages.elixir}}}})}},9438:function(X){"use strict";X.exports=C,C.displayName="elm",C.aliases=[];function C(h){h.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}},27771:function(X,C,h){"use strict";var v=h(75308),I=h(51478);X.exports=O,O.displayName="erb",O.aliases=[];function O(B){B.register(v),B.register(I),function(G){G.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:G.languages.ruby}},G.hooks.add("before-tokenize",function(F){var M=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;G.languages["markup-templating"].buildPlaceholders(F,"erb",M)}),G.hooks.add("after-tokenize",function(F){G.languages["markup-templating"].tokenizePlaceholders(F,"erb")})}(B)}},86549:function(X){"use strict";X.exports=C,C.displayName="erlang",C.aliases=[];function C(h){h.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}},37079:function(X,C,h){"use strict";var v=h(29509),I=h(51478);X.exports=O,O.displayName="etlua",O.aliases=[];function O(B){B.register(v),B.register(I),function(G){G.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:G.languages.lua}},G.hooks.add("before-tokenize",function(F){var M=/<%[\s\S]+?%>/g;G.languages["markup-templating"].buildPlaceholders(F,"etlua",M)}),G.hooks.add("after-tokenize",function(F){G.languages["markup-templating"].tokenizePlaceholders(F,"etlua")})}(B)}},59250:function(X){"use strict";X.exports=C,C.displayName="excelFormula",C.aliases=[];function C(h){h.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"keyword"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"property",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"property"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},h.languages.xlsx=h.languages.xls=h.languages["excel-formula"]}},81226:function(X){"use strict";X.exports=C,C.displayName="factor",C.aliases=[];function C(h){(function(v){var I={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},O={number:/\\[^\s']|%\w/},B={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:I},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:I},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:I}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:O.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:O},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:O}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:O}},G=function(ae){return(ae+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},F=function(ae){return new RegExp("(^|\\s)(?:"+ae.map(G).join("|")+")(?=\\s|$)")},M={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","<wrapper>","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated","<PRIVATE",">>>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","<slice>","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","<iota>","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","<reversed>","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","<repetition>","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","<fp-nan>","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(M).forEach(function(ae){B[ae].pattern=F(M[ae])});var de=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","input<sequence","append-outputs","drop-inputs","inputs","smart-2reduce","drop-outputs","smart-reduce","preserving","smart-when","outputs","append-outputs-as","smart-unless","smart-if*","sum-outputs","input<sequence-unsafe","output>sequence"];B.combinators.pattern=F(de),v.languages.factor=B})(h)}},65245:function(X){"use strict";X.exports=C,C.displayName="$false",C.aliases=[];function C(h){(function(v){v.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()<BDO®]/,alias:"bold"}}})(h)}},25040:function(X){"use strict";X.exports=C,C.displayName="firestoreSecurityRules",C.aliases=[];function C(h){h.languages["firestore-security-rules"]=h.languages.extend("clike",{comment:/\/\/.*/,keyword:/\b(?:allow|function|if|match|null|return|rules_version|service)\b/,operator:/&&|\|\||[<>!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete h.languages["firestore-security-rules"]["class-name"],h.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}},40284:function(X){"use strict";X.exports=C,C.displayName="flow",C.aliases=[];function C(h){(function(v){v.languages.flow=v.languages.extend("javascript",{}),v.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),v.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete v.languages.flow.parameter,v.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(v.languages.flow.keyword)||(v.languages.flow.keyword=[v.languages.flow.keyword]),v.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(h)}},39187:function(X){"use strict";X.exports=C,C.displayName="fortran",C.aliases=[];function C(h){h.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}},34302:function(X){"use strict";X.exports=C,C.displayName="fsharp",C.aliases=[];function C(h){h.languages.fsharp=h.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|<?\|{1,3}>?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),h.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),h.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),h.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:h.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}},90515:function(X,C,h){"use strict";var v=h(51478);X.exports=I,I.displayName="ftl",I.aliases=[];function I(O){O.register(v),function(B){for(var G=/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,F=0;F<2;F++)G=G.replace(/<expr>/g,function(){return G});G=G.replace(/<expr>/g,/[^\s\S]/.source);var M={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:<expr>))*\})*\1/.source.replace(/<expr>/g,function(){return G})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:<expr>))*\}/.source.replace(/<expr>/g,function(){return G})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};M.string[1].inside.interpolation.inside.rest=M,B.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:M}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:M}}}},B.hooks.add("before-tokenize",function(de){var ae=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,function(){return G}),"gi");B.languages["markup-templating"].buildPlaceholders(de,"ftl",ae)}),B.hooks.add("after-tokenize",function(de){B.languages["markup-templating"].tokenizePlaceholders(de,"ftl")})}(O)}},33534:function(X){"use strict";X.exports=C,C.displayName="gap",C.aliases=[];function C(h){h.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},h.languages.gap.shell.inside.gap.inside=h.languages.gap}},9885:function(X){"use strict";X.exports=C,C.displayName="gcode",C.aliases=[];function C(h){h.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}},76364:function(X){"use strict";X.exports=C,C.displayName="gdscript",C.aliases=[];function C(h){h.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}},56452:function(X){"use strict";X.exports=C,C.displayName="gedcom",C.aliases=[];function C(h){h.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},tag:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"string"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}},8477:function(X){"use strict";X.exports=C,C.displayName="gherkin",C.aliases=[];function C(h){(function(v){var I=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;v.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+I+")(?:"+I+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(I),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(h)}},58230:function(X){"use strict";X.exports=C,C.displayName="git",C.aliases=[];function C(h){h.languages.git={comment:/^#.*/m,deleted:/^[-].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}},66192:function(X,C,h){"use strict";var v=h(79440);X.exports=I,I.displayName="glsl",I.aliases=[];function I(O){O.register(v),O.languages.glsl=O.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}},81084:function(X){"use strict";X.exports=C,C.displayName="gml",C.aliases=[];function C(h){h.languages.gamemakerlanguage=h.languages.gml=h.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}},50318:function(X){"use strict";X.exports=C,C.displayName="gn",C.aliases=["gni"];function C(h){h.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},h.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=h.languages.gn,h.languages.gni=h.languages.gn}},95769:function(X){"use strict";X.exports=C,C.displayName="goModule",C.aliases=[];function C(h){h.languages["go-mod"]=h.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}},14155:function(X){"use strict";X.exports=C,C.displayName="go",C.aliases=[];function C(h){h.languages.go=h.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),h.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete h.languages.go["class-name"]}},92823:function(X){"use strict";X.exports=C,C.displayName="graphql",C.aliases=[];function C(h){h.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:h.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},h.hooks.add("after-tokenize",function(I){if(I.language!=="graphql")return;var O=I.tokens.filter(function(Ie){return typeof Ie!="string"&&Ie.type!=="comment"&&Ie.type!=="scalar"}),B=0;function G(Ie){return O[B+Ie]}function F(Ie,Re){Re=Re||0;for(var fe=0;fe<Ie.length;fe++){var me=G(fe+Re);if(!me||me.type!==Ie[fe])return!1}return!0}function M(Ie,Re){for(var fe=1,me=B;me<O.length;me++){var ye=O[me],pe=ye.content;if(ye.type==="punctuation"&&typeof pe=="string"){if(Ie.test(pe))fe++;else if(Re.test(pe)&&(fe--,fe===0))return me}}return-1}function de(Ie,Re){var fe=Ie.alias;fe?Array.isArray(fe)||(Ie.alias=fe=[fe]):Ie.alias=fe=[],fe.push(Re)}for(;B<O.length;){var ae=O[B++];if(ae.type==="keyword"&&ae.content==="mutation"){var te=[];if(F(["definition-mutation","punctuation"])&&G(1).content==="("){B+=2;var Ne=M(/^\($/,/^\)$/);if(Ne===-1)continue;for(;B<Ne;B++){var Ee=G(0);Ee.type==="variable"&&(de(Ee,"variable-input"),te.push(Ee.content))}B=Ne+1}if(F(["punctuation","property-query"])&&G(0).content==="{"&&(B++,de(G(0),"property-mutation"),te.length>0)){var Xe=M(/^\{$/,/^\}$/);if(Xe===-1)continue;for(var Oe=B;Oe<Xe;Oe++){var Ce=O[Oe];Ce.type==="variable"&&te.indexOf(Ce.content)>=0&&de(Ce,"variable-input")}}}}})}},63092:function(X){"use strict";X.exports=C,C.displayName="groovy",C.aliases=[];function C(h){h.languages.groovy=h.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),h.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),h.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),h.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),h.hooks.add("wrap",function(v){if(v.language==="groovy"&&v.type==="string"){var I=v.content.value[0];if(I!="'"){var O=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;I==="$"&&(O=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),v.content.value=v.content.value.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),v.content=h.highlight(v.content.value,{expression:{pattern:O,lookbehind:!0,inside:h.languages.groovy}}),v.classes.push(I==="/"?"regex":"gstring")}}})}},21550:function(X,C,h){"use strict";var v=h(75308);X.exports=I,I.displayName="haml",I.aliases=[];function I(O){O.register(v),function(B){B.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:B.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:B.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:B.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:B.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:B.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:B.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:B.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var G="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",F=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],M={},de=0,ae=F.length;de<ae;de++){var te=F[de];te=typeof te=="string"?{filter:te,language:te}:te,B.languages[te.language]&&(M["filter-"+te.filter]={pattern:RegExp(G.replace("{{filter_name}}",function(){return te.filter})),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"},text:{pattern:/[\s\S]+/,alias:[te.language,"language-"+te.language],inside:B.languages[te.language]}}})}B.languages.insertBefore("haml","filter",M)}(O)}},29710:function(X,C,h){"use strict";var v=h(51478);X.exports=I,I.displayName="handlebars",I.aliases=["hbs"];function I(O){O.register(v),function(B){B.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},B.hooks.add("before-tokenize",function(G){var F=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;B.languages["markup-templating"].buildPlaceholders(G,"handlebars",F)}),B.hooks.add("after-tokenize",function(G){B.languages["markup-templating"].tokenizePlaceholders(G,"handlebars")}),B.languages.hbs=B.languages.handlebars}(O)}},2050:function(X){"use strict";X.exports=C,C.displayName="haskell",C.aliases=["hs"];function C(h){h.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},h.languages.hs=h.languages.haskell}},67967:function(X){"use strict";X.exports=C,C.displayName="haxe",C.aliases=[];function C(h){h.languages.haxe=h.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<<?|>{1,3}|[-+*/%!=&|^])=?|[?:~]/}),h.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:h.languages.haxe}}},string:/[\s\S]+/}}}),h.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:h.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),h.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}},29138:function(X){"use strict";X.exports=C,C.displayName="hcl",C.aliases=[];function C(h){h.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}},67915:function(X,C,h){"use strict";var v=h(79440);X.exports=I,I.displayName="hlsl",I.aliases=[];function I(O){O.register(v),O.languages.hlsl=O.languages.extend("c",{"class-name":[O.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}},54853:function(X){"use strict";X.exports=C,C.displayName="hoon",C.aliases=[];function C(h){h.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}},68330:function(X){"use strict";X.exports=C,C.displayName="hpkp",C.aliases=[];function C(h){h.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}},76823:function(X){"use strict";X.exports=C,C.displayName="hsts",C.aliases=[];function C(h){h.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}},86712:function(X){"use strict";X.exports=C,C.displayName="http",C.aliases=[];function C(h){(function(v){function I(te){return RegExp("(^(?:"+te+"):[ ]*(?![ ]))[^]+","i")}v.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:v.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:I(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:v.languages.csp},{pattern:I(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:v.languages.hpkp},{pattern:I(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:v.languages.hsts},{pattern:I(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var O=v.languages,B={"application/javascript":O.javascript,"application/json":O.json||O.javascript,"application/xml":O.xml,"text/xml":O.xml,"text/html":O.html,"text/css":O.css,"text/plain":O.plain},G={"application/json":!0,"application/xml":!0};function F(te){var Ne=te.replace(/^[a-z]+\//,""),Ee="\\w+/(?:[\\w.-]+\\+)+"+Ne+"(?![+\\w.-])";return"(?:"+te+"|"+Ee+")"}var M;for(var de in B)if(B[de]){M=M||{};var ae=G[de]?F(de):de;M[de.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+ae+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:B[de]}}M&&v.languages.insertBefore("http","header",M)})(h)}},72252:function(X){"use strict";X.exports=C,C.displayName="ichigojam",C.aliases=[];function C(h){h.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}},78634:function(X){"use strict";X.exports=C,C.displayName="icon",C.aliases=[];function C(h){h.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|<?=?)|>>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}},43583:function(X){"use strict";X.exports=C,C.displayName="icuMessageFormat",C.aliases=[];function C(h){(function(v){function I(de,ae){return ae<=0?/[]/.source:de.replace(/<SELF>/g,function(){return I(de,ae-1)})}var O=/'[{}:=,](?:[^']|'')*'(?!')/,B={pattern:/''/,greedy:!0,alias:"operator"},G={pattern:O,greedy:!0,inside:{escape:B}},F=I(/\{(?:[^{}']|'(?![{},'])|''|<STR>|<SELF>)*\}/.source.replace(/<STR>/g,function(){return O.source}),8),M={pattern:RegExp(F),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};v.languages["icu-message-format"]={argument:{pattern:RegExp(F),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":M,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":M,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+I(/(?:[^{}']|'[^']*'|\{(?:<SELF>)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:B,string:G},M.inside.message.inside=v.languages["icu-message-format"],v.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=v.languages["icu-message-format"]})(h)}},23328:function(X,C,h){"use strict";var v=h(2050);X.exports=I,I.displayName="idris",I.aliases=["idr"];function I(O){O.register(v),O.languages.idris=O.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),O.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),O.languages.idr=O.languages.idris}},74494:function(X){"use strict";X.exports=C,C.displayName="iecst",C.aliases=[];function C(h){h.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}},46745:function(X){"use strict";X.exports=C,C.displayName="ignore",C.aliases=["gitignore","hgignore","npmignore"];function C(h){(function(v){v.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},v.languages.gitignore=v.languages.ignore,v.languages.hgignore=v.languages.ignore,v.languages.npmignore=v.languages.ignore})(h)}},22152:function(X){"use strict";X.exports=C,C.displayName="inform7",C.aliases=[];function C(h){h.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},h.languages.inform7.string.inside.substitution.inside.rest=h.languages.inform7,h.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}},83698:function(X){"use strict";X.exports=C,C.displayName="ini",C.aliases=[];function C(h){h.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}},26619:function(X){"use strict";X.exports=C,C.displayName="io",C.aliases=[];function C(h){h.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<<?=?|:?:?=|\+\+?|--?|\*\*?|\/\/?|%|\|\|?|&&?|\b(?:and|not|or|return)\b|@@?|\?\??|\.\./,punctuation:/[{}[\];(),.:]/}}},53990:function(X){"use strict";X.exports=C,C.displayName="j",C.aliases=[];function C(h){h.languages.j={comment:{pattern:/\bNB\..*/,greedy:!0},string:{pattern:/'(?:''|[^'\r\n])*'/,greedy:!0},keyword:/\b(?:(?:CR|LF|adverb|conjunction|def|define|dyad|monad|noun|verb)\b|(?:assert|break|case|catch[dt]?|continue|do|else|elseif|end|fcase|for|for_\w+|goto_\w+|if|label_\w+|return|select|throw|try|while|whilst)\.)/,verb:{pattern:/(?!\^:|;\.|[=!][.:])(?:\{(?:\.|::?)?|p(?:\.\.?|:)|[=!\]]|[<>+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}},7093:function(X){"use strict";X.exports=C,C.displayName="java",C.aliases=[];function C(h){(function(v){var I=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,O=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,B={pattern:RegExp(O+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};v.languages.java=v.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[B,{pattern:RegExp(O+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:B.inside}],keyword:I,function:[v.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),v.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),v.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":B,keyword:I,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return I.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(h)}},4005:function(X,C,h){"use strict";var v=h(7093),I=h(53510);X.exports=O,O.displayName="javadoc",O.aliases=[];function O(B){B.register(v),B.register(I),function(G){var F=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,M=/#\s*\w+(?:\s*\([^()]*\))?/.source,de=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*<mem>)?|<mem>/.source.replace(/<mem>/g,function(){return M});G.languages.javadoc=G.languages.extend("javadoclike",{}),G.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+de+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:G.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:F,lookbehind:!0,inside:G.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!<code>)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:F,lookbehind:!0,inside:{tag:G.languages.markup.tag,entity:G.languages.markup.entity,code:{pattern:/.+/,inside:G.languages.java,alias:"language-java"}}}}}],tag:G.languages.markup.tag,entity:G.languages.markup.entity}),G.languages.javadoclike.addSupport("java",G.languages.javadoc)}(B)}},53510:function(X){"use strict";X.exports=C,C.displayName="javadoclike",C.aliases=[];function C(h){(function(v){var I=v.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function O(G,F){var M="doc-comment",de=v.languages[G];if(de){var ae=de[M];if(!ae){var te={};te[M]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},de=v.languages.insertBefore(G,"comment",te),ae=de[M]}if(ae instanceof RegExp&&(ae=de[M]={pattern:ae}),Array.isArray(ae))for(var Ne=0,Ee=ae.length;Ne<Ee;Ne++)ae[Ne]instanceof RegExp&&(ae[Ne]={pattern:ae[Ne]}),F(ae[Ne]);else F(ae)}}function B(G,F){typeof G=="string"&&(G=[G]),G.forEach(function(M){O(M,function(de){de.inside||(de.inside={}),de.inside.rest=F})})}Object.defineProperty(I,"addSupport",{value:B}),I.addSupport(["java","javascript","php"],I)})(h)}},88786:function(X){"use strict";X.exports=C,C.displayName="javascript",C.aliases=["js"];function C(h){h.languages.javascript=h.languages.extend("clike",{"class-name":[h.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),h.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,h.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:h.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:h.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:h.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:h.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:h.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),h.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:h.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),h.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),h.languages.markup&&(h.languages.markup.tag.addInlined("script","javascript"),h.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),h.languages.js=h.languages.javascript}},24799:function(X){"use strict";X.exports=C,C.displayName="javastacktrace",C.aliases=[];function C(h){h.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:<init>)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:<init>|[\w$]+)\()/,function:/(?:<init>|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}},97443:function(X){"use strict";X.exports=C,C.displayName="jexl",C.aliases=[];function C(h){h.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}},80746:function(X){"use strict";X.exports=C,C.displayName="jolie",C.aliases=[];function C(h){h.languages.jolie=h.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),h.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}},17015:function(X){"use strict";X.exports=C,C.displayName="jq",C.aliases=[];function C(h){(function(v){var I=/\\\((?:[^()]|\([^()]*\))*\)/.source,O=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return I})),B={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+I),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},G=v.languages.jq={comment:/#.*/,property:{pattern:RegExp(O.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:B},string:{pattern:O,lookbehind:!0,greedy:!0,inside:B},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};B.interpolation.inside.content.inside=G})(h)}},89246:function(X){"use strict";X.exports=C,C.displayName="jsExtras",C.aliases=[];function C(h){(function(v){v.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+v.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),v.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+v.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),v.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function I(de,ae){return RegExp(de.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),ae)}v.languages.insertBefore("javascript","keyword",{imports:{pattern:I(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:v.languages.javascript},exports:{pattern:I(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:v.languages.javascript}}),v.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),v.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),v.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:I(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var O=["function","function-variable","method","method-variable","property-access"],B=0;B<O.length;B++){var G=O[B],F=v.languages.javascript[G];v.util.type(F)==="RegExp"&&(F=v.languages.javascript[G]={pattern:F});var M=F.inside||{};F.inside=M,M["maybe-class-name"]=/^[A-Z][\s\S]*/}})(h)}},487:function(X){"use strict";X.exports=C,C.displayName="jsTemplates",C.aliases=[];function C(h){(function(v){var I=v.languages.javascript["template-string"],O=I.pattern.source,B=I.inside.interpolation,G=B.inside["interpolation-punctuation"],F=B.pattern.source;function M(Oe,Ce){if(v.languages[Oe])return{pattern:RegExp("((?:"+Ce+")\\s*)"+O),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:Oe}}}}v.languages.javascript["template-string"]=[M("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),M("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),M("svg",/\bsvg/.source),M("markdown",/\b(?:markdown|md)/.source),M("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),M("sql",/\bsql/.source),I].filter(Boolean);function de(Oe,Ce){return"___"+Ce.toUpperCase()+"_"+Oe+"___"}function ae(Oe,Ce,Ie){var Re={code:Oe,grammar:Ce,language:Ie};return v.hooks.run("before-tokenize",Re),Re.tokens=v.tokenize(Re.code,Re.grammar),v.hooks.run("after-tokenize",Re),Re.tokens}function te(Oe){var Ce={};Ce["interpolation-punctuation"]=G;var Ie=v.tokenize(Oe,Ce);if(Ie.length===3){var Re=[1,1];Re.push.apply(Re,ae(Ie[1],v.languages.javascript,"javascript")),Ie.splice.apply(Ie,Re)}return new v.Token("interpolation",Ie,B.alias,Oe)}function Ne(Oe,Ce,Ie){var Re=v.tokenize(Oe,{interpolation:{pattern:RegExp(F),lookbehind:!0}}),fe=0,me={},ye=Re.map(function(Te){if(typeof Te=="string")return Te;for(var Me=Te.content,Le;Oe.indexOf(Le=de(fe++,Ie))!==-1;);return me[Le]=Me,Le}).join(""),pe=ae(ye,Ce,Ie),ke=Object.keys(me);fe=0;function ee(Te){for(var Me=0;Me<Te.length;Me++){if(fe>=ke.length)return;var Le=Te[Me];if(typeof Le=="string"||typeof Le.content=="string"){var Je=ke[fe],Ye=typeof Le=="string"?Le:Le.content,ne=Ye.indexOf(Je);if(ne!==-1){++fe;var at=Ye.substring(0,ne),Ge=te(me[Je]),Pt=Ye.substring(ne+Je.length),gt=[];if(at&&gt.push(at),gt.push(Ge),Pt){var kt=[Pt];ee(kt),gt.push.apply(gt,kt)}typeof Le=="string"?(Te.splice.apply(Te,[Me,1].concat(gt)),Me+=gt.length-1):Le.content=gt}}else{var Ct=Le.content;Array.isArray(Ct)?ee(Ct):ee([Ct])}}}return ee(pe),new v.Token(Ie,pe,"language-"+Ie,Oe)}var Ee={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};v.hooks.add("after-tokenize",function(Oe){if(!(Oe.language in Ee))return;function Ce(Ie){for(var Re=0,fe=Ie.length;Re<fe;Re++){var me=Ie[Re];if(typeof me!="string"){var ye=me.content;if(!Array.isArray(ye)){typeof ye!="string"&&Ce([ye]);continue}if(me.type==="template-string"){var pe=ye[1];if(ye.length===3&&typeof pe!="string"&&pe.type==="embedded-code"){var ke=Xe(pe),ee=pe.alias,Te=Array.isArray(ee)?ee[0]:ee,Me=v.languages[Te];if(!Me)continue;ye[1]=Ne(ke,Me,Te)}}else Ce(ye)}}}Ce(Oe.tokens)});function Xe(Oe){return typeof Oe=="string"?Oe:Array.isArray(Oe)?Oe.map(Xe).join(""):Xe(Oe.content)}})(h)}},79539:function(X,C,h){"use strict";var v=h(53510),I=h(92784);X.exports=O,O.displayName="jsdoc",O.aliases=[];function O(B){B.register(v),B.register(I),function(G){var F=G.languages.javascript,M=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,de="(@(?:arg|argument|param|property)\\s+(?:"+M+"\\s+)?)";G.languages.jsdoc=G.languages.extend("javadoclike",{parameter:{pattern:RegExp(de+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),G.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(de+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:F,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return M})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+M),lookbehind:!0,inside:{string:F.string,number:F.number,boolean:F.boolean,keyword:G.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:F,alias:"language-javascript"}}}}),G.languages.javadoclike.addSupport("javascript",G.languages.jsdoc)}(B)}},15628:function(X){"use strict";X.exports=C,C.displayName="json",C.aliases=["webmanifest"];function C(h){h.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},h.languages.webmanifest=h.languages.json}},14320:function(X,C,h){"use strict";var v=h(15628);X.exports=I,I.displayName="json5",I.aliases=[];function I(O){O.register(v),function(B){var G=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;B.languages.json5=B.languages.extend("json",{property:[{pattern:RegExp(G.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:G,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(O)}},73222:function(X,C,h){"use strict";var v=h(15628);X.exports=I,I.displayName="jsonp",I.aliases=[];function I(O){O.register(v),O.languages.jsonp=O.languages.extend("json",{punctuation:/[{}[\]();,.]/}),O.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}},92486:function(X){"use strict";X.exports=C,C.displayName="jsstacktrace",C.aliases=[];function C(h){h.languages.jsstacktrace={"error-message":{pattern:/^\S.*/m,alias:"string"},"stack-frame":{pattern:/(^[ \t]+)at[ \t].*/m,lookbehind:!0,inside:{"not-my-code":{pattern:/^at[ \t]+(?!\s)(?:node\.js|<unknown>|.*(?:node_modules|\(<anonymous>\)|\(<unknown>|<anonymous>$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}},24103:function(X){"use strict";X.exports=C,C.displayName="jsx",C.aliases=[];function C(h){(function(v){var I=v.util.clone(v.languages.javascript),O=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,B=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,G=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function F(ae,te){return ae=ae.replace(/<S>/g,function(){return O}).replace(/<BRACES>/g,function(){return B}).replace(/<SPREAD>/g,function(){return G}),RegExp(ae,te)}G=F(G).source,v.languages.jsx=v.languages.extend("markup",I),v.languages.jsx.tag.pattern=F(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),v.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,v.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,v.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,v.languages.jsx.tag.inside.comment=I.comment,v.languages.insertBefore("inside","attr-name",{spread:{pattern:F(/<SPREAD>/.source),inside:v.languages.jsx}},v.languages.jsx.tag),v.languages.insertBefore("inside","special-attr",{script:{pattern:F(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:v.languages.jsx}}},v.languages.jsx.tag);var M=function(ae){return ae?typeof ae=="string"?ae:typeof ae.content=="string"?ae.content:ae.content.map(M).join(""):""},de=function(ae){for(var te=[],Ne=0;Ne<ae.length;Ne++){var Ee=ae[Ne],Xe=!1;if(typeof Ee!="string"&&(Ee.type==="tag"&&Ee.content[0]&&Ee.content[0].type==="tag"?Ee.content[0].content[0].content==="</"?te.length>0&&te[te.length-1].tagName===M(Ee.content[0].content[1])&&te.pop():Ee.content[Ee.content.length-1].content==="/>"||te.push({tagName:M(Ee.content[0].content[1]),openedBraces:0}):te.length>0&&Ee.type==="punctuation"&&Ee.content==="{"?te[te.length-1].openedBraces++:te.length>0&&te[te.length-1].openedBraces>0&&Ee.type==="punctuation"&&Ee.content==="}"?te[te.length-1].openedBraces--:Xe=!0),(Xe||typeof Ee=="string")&&te.length>0&&te[te.length-1].openedBraces===0){var Oe=M(Ee);Ne<ae.length-1&&(typeof ae[Ne+1]=="string"||ae[Ne+1].type==="plain-text")&&(Oe+=M(ae[Ne+1]),ae.splice(Ne+1,1)),Ne>0&&(typeof ae[Ne-1]=="string"||ae[Ne-1].type==="plain-text")&&(Oe=M(ae[Ne-1])+Oe,ae.splice(Ne-1,1),Ne--),ae[Ne]=new v.Token("plain-text",Oe,null,Oe)}Ee.content&&typeof Ee.content!="string"&&de(Ee.content)}};v.hooks.add("after-tokenize",function(ae){ae.language!=="jsx"&&ae.language!=="tsx"||de(ae.tokens)})})(h)}},40604:function(X){"use strict";X.exports=C,C.displayName="julia",C.aliases=[];function C(h){h.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}},23109:function(X){"use strict";X.exports=C,C.displayName="keepalived",C.aliases=[];function C(h){h.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}<ipv4>|(?:[\da-f]{1,4}:){0,5}:<ipv4>|::(?:[\da-f]{1,4}:){0,5}<ipv4>|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|<ipv4>(?:\/\d{1,2})?)\b/.source.replace(/<ipv4>/g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}},32082:function(X){"use strict";X.exports=C,C.displayName="keyman",C.aliases=[];function C(h){h.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|nomatch|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}},77674:function(X){"use strict";X.exports=C,C.displayName="kotlin",C.aliases=["kt","kts"];function C(h){(function(v){v.languages.kotlin=v.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete v.languages.kotlin["class-name"];var I={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:v.languages.kotlin}};v.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:I},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:I},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete v.languages.kotlin.string,v.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),v.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),v.languages.kt=v.languages.kotlin,v.languages.kts=v.languages.kotlin})(h)}},37524:function(X){"use strict";X.exports=C,C.displayName="kumir",C.aliases=["kum"];function C(h){(function(v){var I=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function O(B,G){return RegExp(B.replace(/<nonId>/g,I),G)}v.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:O(/(^|[<nonId>])(?:да|нет)(?=[<nonId>]|$)/.source),lookbehind:!0},"operator-word":{pattern:O(/(^|[<nonId>])(?:и|или|не)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:O(/(^|[<nonId>])знач(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:O(/(^|[<nonId>])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:O(/(^|[<nonId>])(?:компл|сканкод|файл|цвет)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:O(/(^|[<nonId>])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[<nonId>]|$)/.source),lookbehind:!0},name:{pattern:O(/(^|[<nonId>])[^\d<nonId>][^<nonId>]*(?:\x20+[^<nonId>]+)*(?=[<nonId>]|$)/.source),lookbehind:!0},number:{pattern:O(/(^|[<nonId>])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[<nonId>]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},v.languages.kum=v.languages.kumir})(h)}},6658:function(X){"use strict";X.exports=C,C.displayName="kusto",C.aliases=[];function C(h){h.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}},24824:function(X){"use strict";X.exports=C,C.displayName="latex",C.aliases=["tex","context"];function C(h){(function(v){var I=/\\(?:[^a-z()[\]]|[a-z*]+)/i,O={"equation-command":{pattern:I,alias:"regex"}};v.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:O,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:O,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:I,alias:"selector"},punctuation:/[[\]{}&]/},v.languages.tex=v.languages.latex,v.languages.context=v.languages.latex})(h)}},22776:function(X,C,h){"use strict";var v=h(51478),I=h(53852);X.exports=O,O.displayName="latte",O.aliases=[];function O(B){B.register(v),B.register(I),function(G){G.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:G.languages.php}};var F=G.languages.extend("markup",{});G.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:G.languages.php}}}}}},F.tag),G.hooks.add("before-tokenize",function(M){if(M.language==="latte"){var de=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;G.languages["markup-templating"].buildPlaceholders(M,"latte",de),M.grammar=F}}),G.hooks.add("after-tokenize",function(M){G.languages["markup-templating"].tokenizePlaceholders(M,"latte")})}(B)}},89700:function(X){"use strict";X.exports=C,C.displayName="less",C.aliases=[];function C(h){h.languages.less=h.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),h.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}},99296:function(X,C,h){"use strict";var v=h(48780);X.exports=I,I.displayName="lilypond",I.aliases=[];function I(O){O.register(v),function(B){for(var G=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|<expr>)*\)/.source,F=5,M=0;M<F;M++)G=G.replace(/<expr>/g,function(){return G});G=G.replace(/<expr>/g,/[^\s\S]/.source);var de=B.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|<expr>))/.source.replace(/<expr>/g,function(){return G}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:B.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};de["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=de,B.languages.ly=de}(O)}},39940:function(X,C,h){"use strict";var v=h(51478);X.exports=I,I.displayName="liquid",I.aliases=[];function I(O){O.register(v),O.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},O.hooks.add("before-tokenize",function(B){var G=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,F=!1;O.languages["markup-templating"].buildPlaceholders(B,"liquid",G,function(M){var de=/^\{%-?\s*(\w+)/.exec(M);if(de){var ae=de[1];if(ae==="raw"&&!F)return F=!0,!0;if(ae==="endraw")return F=!1,!0}return!F})}),O.hooks.add("after-tokenize",function(B){O.languages["markup-templating"].tokenizePlaceholders(B,"liquid")})}},34973:function(X){"use strict";X.exports=C,C.displayName="lisp",C.aliases=[];function C(h){(function(v){function I(Oe){return RegExp(/(\()/.source+"(?:"+Oe+")"+/(?=[\s\)])/.source)}function O(Oe){return RegExp(/([\s([])/.source+"(?:"+Oe+")"+/(?=[\s)])/.source)}var B=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,G="&"+B,F="(\\()",M="(?=\\))",de="(?=\\s)",ae=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,te={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+B+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+B),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+B),alias:"property"},splice:{pattern:RegExp(",@?"+B),alias:["symbol","variable"]},keyword:[{pattern:RegExp(F+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+de),lookbehind:!0},{pattern:RegExp(F+"(?:append|by|collect|concat|do|finally|for|in|return)"+de),lookbehind:!0}],declare:{pattern:I(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:I(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:O(/nil|t/.source),lookbehind:!0},number:{pattern:O(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(F+"def(?:const|custom|group|var)\\s+"+B),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(B)}},defun:{pattern:RegExp(F+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+B+/\s+\(/.source+ae+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+B),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(F+"lambda\\s+\\(\\s*(?:&?"+B+"(?:\\s+&?"+B+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(F+B),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},Ne={"lisp-marker":RegExp(G),varform:{pattern:RegExp(/\(/.source+B+/\s+(?=\S)/.source+ae+/\)/.source),inside:te},argument:{pattern:RegExp(/(^|[\s(])/.source+B),lookbehind:!0,alias:"variable"},rest:te},Ee="\\S+(?:\\s+\\S+)*",Xe={pattern:RegExp(F+ae+M),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+Ee),inside:Ne},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+Ee),inside:Ne},keys:{pattern:RegExp("&key\\s+"+Ee+"(?:\\s+&allow-other-keys)?"),inside:Ne},argument:{pattern:RegExp(B),alias:"variable"},punctuation:/[()]/}};te.lambda.inside.arguments=Xe,te.defun.inside.arguments=v.util.clone(Xe),te.defun.inside.arguments.inside.sublist=Xe,v.languages.lisp=te,v.languages.elisp=te,v.languages.emacs=te,v.languages["emacs-lisp"]=te})(h)}},98135:function(X){"use strict";X.exports=C,C.displayName="livescript",C.aliases=[];function C(h){h.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<<?<?|--?!?|~~?!?|[|=?])?|>[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},h.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=h.languages.livescript}},36907:function(X){"use strict";X.exports=C,C.displayName="llvm",C.aliases=[];function C(h){(function(v){v.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(h)}},3567:function(X){"use strict";X.exports=C,C.displayName="log",C.aliases=[];function C(h){h.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:h.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}},23763:function(X){"use strict";X.exports=C,C.displayName="lolcode",C.aliases=[];function C(h){h.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}},29509:function(X){"use strict";X.exports=C,C.displayName="lua",C.aliases=[];function C(h){h.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}},40472:function(X){"use strict";X.exports=C,C.displayName="magma",C.aliases=[];function C(h){h.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}},44695:function(X){"use strict";X.exports=C,C.displayName="makefile",C.aliases=[];function C(h){h.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}},53885:function(X){"use strict";X.exports=C,C.displayName="markdown",C.aliases=["md"];function C(h){(function(v){var I=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function O(Ne){return Ne=Ne.replace(/<inner>/g,function(){return I}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+Ne+")")}var B=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,G=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return B}),F=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;v.languages.markdown=v.languages.extend("markup",{}),v.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:v.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+G+F+"(?:"+G+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+G+F+")(?:"+G+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(B),inside:v.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+G+")"+F+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+G+"$"),inside:{"table-header":{pattern:RegExp(B),alias:"important",inside:v.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:O(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:O(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:O(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:O(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(Ne){["url","bold","italic","strike","code-snippet"].forEach(function(Ee){Ne!==Ee&&(v.languages.markdown[Ne].inside.content.inside[Ee]=v.languages.markdown[Ee])})}),v.hooks.add("after-tokenize",function(Ne){if(Ne.language!=="markdown"&&Ne.language!=="md")return;function Ee(Xe){if(!(!Xe||typeof Xe=="string"))for(var Oe=0,Ce=Xe.length;Oe<Ce;Oe++){var Ie=Xe[Oe];if(Ie.type!=="code"){Ee(Ie.content);continue}var Re=Ie.content[1],fe=Ie.content[3];if(Re&&fe&&Re.type==="code-language"&&fe.type==="code-block"&&typeof Re.content=="string"){var me=Re.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");me=(/[a-z][\w-]*/i.exec(me)||[""])[0].toLowerCase();var ye="language-"+me;fe.alias?typeof fe.alias=="string"?fe.alias=[fe.alias,ye]:fe.alias.push(ye):fe.alias=[ye]}}}Ee(Ne.tokens)}),v.hooks.add("wrap",function(Ne){if(Ne.type==="code-block"){for(var Ee="",Xe=0,Oe=Ne.classes.length;Xe<Oe;Xe++){var Ce=Ne.classes[Xe],Ie=/language-(.+)/.exec(Ce);if(Ie){Ee=Ie[1];break}}var Re=v.languages[Ee];if(Re)Ne.content=v.highlight(te(Ne.content.value),Re,Ee);else if(Ee&&Ee!=="none"&&v.plugins.autoloader){var fe="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);Ne.attributes.id=fe,v.plugins.autoloader.loadLanguages(Ee,function(){var me=document.getElementById(fe);me&&(me.innerHTML=v.highlight(me.textContent,v.languages[Ee],Ee))})}}});var M=RegExp(v.languages.markup.tag.pattern.source,"gi"),de={amp:"&",lt:"<",gt:">",quot:'"'},ae=String.fromCodePoint||String.fromCharCode;function te(Ne){var Ee=Ne.replace(M,"");return Ee=Ee.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(Xe,Oe){if(Oe=Oe.toLowerCase(),Oe[0]==="#"){var Ce;return Oe[1]==="x"?Ce=parseInt(Oe.slice(2),16):Ce=Number(Oe.slice(1)),ae(Ce)}else{var Ie=de[Oe];return Ie||Xe}}),Ee}v.languages.md=v.languages.markdown})(h)}},51478:function(X){"use strict";X.exports=C,C.displayName="markupTemplating",C.aliases=[];function C(h){(function(v){function I(O,B){return"___"+O.toUpperCase()+B+"___"}Object.defineProperties(v.languages["markup-templating"]={},{buildPlaceholders:{value:function(O,B,G,F){if(O.language===B){var M=O.tokenStack=[];O.code=O.code.replace(G,function(de){if(typeof F=="function"&&!F(de))return de;for(var ae=M.length,te;O.code.indexOf(te=I(B,ae))!==-1;)++ae;return M[ae]=de,te}),O.grammar=v.languages.markup}}},tokenizePlaceholders:{value:function(O,B){if(O.language!==B||!O.tokenStack)return;O.grammar=v.languages[B];var G=0,F=Object.keys(O.tokenStack);function M(de){for(var ae=0;ae<de.length&&!(G>=F.length);ae++){var te=de[ae];if(typeof te=="string"||te.content&&typeof te.content=="string"){var Ne=F[G],Ee=O.tokenStack[Ne],Xe=typeof te=="string"?te:te.content,Oe=I(B,Ne),Ce=Xe.indexOf(Oe);if(Ce>-1){++G;var Ie=Xe.substring(0,Ce),Re=new v.Token(B,v.tokenize(Ee,O.grammar),"language-"+B,Ee),fe=Xe.substring(Ce+Oe.length),me=[];Ie&&me.push.apply(me,M([Ie])),me.push(Re),fe&&me.push.apply(me,M([fe])),typeof te=="string"?de.splice.apply(de,[ae,1].concat(me)):te.content=me}}else te.content&&M(te.content)}return de}M(O.tokens)}}})})(h)}},70614:function(X){"use strict";X.exports=C,C.displayName="markup",C.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function C(h){h.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},h.languages.markup.tag.inside["attr-value"].inside.entity=h.languages.markup.entity,h.languages.markup.doctype.inside["internal-subset"].inside=h.languages.markup,h.hooks.add("wrap",function(v){v.type==="entity"&&(v.attributes.title=v.content.value.replace(/&amp;/,"&"))}),Object.defineProperty(h.languages.markup.tag,"addInlined",{value:function(I,O){var B={};B["language-"+O]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:h.languages[O]},B.cdata=/^<!\[CDATA\[|\]\]>$/i;var G={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:B}};G["language-"+O]={pattern:/[\s\S]+/,inside:h.languages[O]};var F={};F[I]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return I}),"i"),lookbehind:!0,greedy:!0,inside:G},h.languages.insertBefore("markup","cdata",F)}}),Object.defineProperty(h.languages.markup.tag,"addAttribute",{value:function(v,I){h.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+v+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[I,"language-"+I],inside:h.languages[I]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),h.languages.html=h.languages.markup,h.languages.mathml=h.languages.markup,h.languages.svg=h.languages.markup,h.languages.xml=h.languages.extend("markup",{}),h.languages.ssml=h.languages.xml,h.languages.atom=h.languages.xml,h.languages.rss=h.languages.xml}},16928:function(X){"use strict";X.exports=C,C.displayName="matlab",C.aliases=[];function C(h){h.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}},13586:function(X){"use strict";X.exports=C,C.displayName="maxscript",C.aliases=[];function C(h){(function(v){var I=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;v.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+I.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+I.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:I,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(h)}},37164:function(X){"use strict";X.exports=C,C.displayName="mel",C.aliases=[];function C(h){h.languages.mel={comment:/\/\/.*/,code:{pattern:/`(?:\\.|[^\\`\r\n])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:/\b\w+(?=\()|\b(?:CBG|HfAddAttractorToAS|HfAssignAS|HfBuildEqualMap|HfBuildFurFiles|HfBuildFurImages|HfCancelAFR|HfConnectASToHF|HfCreateAttractor|HfDeleteAS|HfEditAS|HfPerformCreateAS|HfRemoveAttractorFromAS|HfSelectAttached|HfSelectAttractors|HfUnAssignAS|Mayatomr|about|abs|addAttr|addAttributeEditorNodeHelp|addDynamic|addNewShelfTab|addPP|addPanelCategory|addPrefixToName|advanceToNextDrivenKey|affectedNet|affects|aimConstraint|air|alias|aliasAttr|align|alignCtx|alignCurve|alignSurface|allViewFit|ambientLight|angle|angleBetween|animCone|animCurveEditor|animDisplay|animView|annotate|appendStringArray|applicationName|applyAttrPreset|applyTake|arcLenDimContext|arcLengthDimension|arclen|arrayMapper|art3dPaintCtx|artAttrCtx|artAttrPaintVertexCtx|artAttrSkinPaintCtx|artAttrTool|artBuildPaintMenu|artFluidAttrCtx|artPuttyCtx|artSelectCtx|artSetPaintCtx|artUserPaintCtx|assignCommand|assignInputDevice|assignViewportFactories|attachCurve|attachDeviceAttr|attachSurface|attrColorSliderGrp|attrCompatibility|attrControlGrp|attrEnumOptionMenu|attrEnumOptionMenuGrp|attrFieldGrp|attrFieldSliderGrp|attrNavigationControlGrp|attrPresetEditWin|attributeExists|attributeInfo|attributeMenu|attributeQuery|autoKeyframe|autoPlace|bakeClip|bakeFluidShading|bakePartialHistory|bakeResults|bakeSimulation|basename|basenameEx|batchRender|bessel|bevel|bevelPlus|binMembership|bindSkin|blend2|blendShape|blendShapeEditor|blendShapePanel|blendTwoAttr|blindDataType|boneLattice|boundary|boxDollyCtx|boxZoomCtx|bufferCurve|buildBookmarkMenu|buildKeyframeMenu|button|buttonManip|cacheFile|cacheFileCombine|cacheFileMerge|cacheFileTrack|camera|cameraView|canCreateManip|canvas|capitalizeString|catch|catchQuiet|ceil|changeSubdivComponentDisplayLevel|changeSubdivRegion|channelBox|character|characterMap|characterOutlineEditor|characterize|chdir|checkBox|checkBoxGrp|checkDefaultRenderGlobals|choice|circle|circularFillet|clamp|clear|clearCache|clip|clipEditor|clipEditorCurrentTimeCtx|clipSchedule|clipSchedulerOutliner|clipTrimBefore|closeCurve|closeSurface|cluster|cmdFileOutput|cmdScrollFieldExecuter|cmdScrollFieldReporter|cmdShell|coarsenSubdivSelectionList|collision|color|colorAtPoint|colorEditor|colorIndex|colorIndexSliderGrp|colorSliderButtonGrp|colorSliderGrp|columnLayout|commandEcho|commandLine|commandPort|compactHairSystem|componentEditor|compositingInterop|computePolysetVolume|condition|cone|confirmDialog|connectAttr|connectControl|connectDynamic|connectJoint|connectionInfo|constrain|constrainValue|constructionHistory|container|containsMultibyte|contextInfo|control|convertFromOldLayers|convertIffToPsd|convertLightmap|convertSolidTx|convertTessellation|convertUnit|copyArray|copyFlexor|copyKey|copySkinWeights|cos|cpButton|cpCache|cpClothSet|cpCollision|cpConstraint|cpConvClothToMesh|cpForces|cpGetSolverAttr|cpPanel|cpProperty|cpRigidCollisionFilter|cpSeam|cpSetEdit|cpSetSolverAttr|cpSolver|cpSolverTypes|cpTool|cpUpdateClothUVs|createDisplayLayer|createDrawCtx|createEditor|createLayeredPsdFile|createMotionField|createNewShelf|createNode|createRenderLayer|createSubdivRegion|cross|crossProduct|ctxAbort|ctxCompletion|ctxEditMode|ctxTraverse|currentCtx|currentTime|currentTimeCtx|currentUnit|curve|curveAddPtCtx|curveCVCtx|curveEPCtx|curveEditorCtx|curveIntersect|curveMoveEPCtx|curveOnSurface|curveSketchCtx|cutKey|cycleCheck|cylinder|dagPose|date|defaultLightListCheckBox|defaultNavigation|defineDataServer|defineVirtualDevice|deformer|deg_to_rad|delete|deleteAttr|deleteShadingGroupsAndMaterials|deleteShelfTab|deleteUI|deleteUnusedBrushes|delrandstr|detachCurve|detachDeviceAttr|detachSurface|deviceEditor|devicePanel|dgInfo|dgdirty|dgeval|dgtimer|dimWhen|directKeyCtx|directionalLight|dirmap|dirname|disable|disconnectAttr|disconnectJoint|diskCache|displacementToPoly|displayAffected|displayColor|displayCull|displayLevelOfDetail|displayPref|displayRGBColor|displaySmoothness|displayStats|displayString|displaySurface|distanceDimContext|distanceDimension|doBlur|dolly|dollyCtx|dopeSheetEditor|dot|dotProduct|doubleProfileBirailSurface|drag|dragAttrContext|draggerContext|dropoffLocator|duplicate|duplicateCurve|duplicateSurface|dynCache|dynControl|dynExport|dynExpression|dynGlobals|dynPaintEditor|dynParticleCtx|dynPref|dynRelEdPanel|dynRelEditor|dynamicLoad|editAttrLimits|editDisplayLayerGlobals|editDisplayLayerMembers|editRenderLayerAdjustment|editRenderLayerGlobals|editRenderLayerMembers|editor|editorTemplate|effector|emit|emitter|enableDevice|encodeString|endString|endsWith|env|equivalent|equivalentTol|erf|error|eval|evalDeferred|evalEcho|event|exactWorldBoundingBox|exclusiveLightCheckBox|exec|executeForEachObject|exists|exp|expression|expressionEditorListen|extendCurve|extendSurface|extrude|fcheck|fclose|feof|fflush|fgetline|fgetword|file|fileBrowserDialog|fileDialog|fileExtension|fileInfo|filetest|filletCurve|filter|filterCurve|filterExpand|filterStudioImport|findAllIntersections|findAnimCurves|findKeyframe|findMenuItem|findRelatedSkinCluster|finder|firstParentOf|fitBspline|flexor|floatEq|floatField|floatFieldGrp|floatScrollBar|floatSlider|floatSlider2|floatSliderButtonGrp|floatSliderGrp|floor|flow|fluidCacheInfo|fluidEmitter|fluidVoxelInfo|flushUndo|fmod|fontDialog|fopen|formLayout|format|fprint|frameLayout|fread|freeFormFillet|frewind|fromNativePath|fwrite|gamma|gauss|geometryConstraint|getApplicationVersionAsFloat|getAttr|getClassification|getDefaultBrush|getFileList|getFluidAttr|getInputDeviceRange|getMayaPanelTypes|getModifiers|getPanel|getParticleAttr|getPluginResource|getenv|getpid|glRender|glRenderEditor|globalStitch|gmatch|goal|gotoBindPose|grabColor|gradientControl|gradientControlNoAttr|graphDollyCtx|graphSelectContext|graphTrackCtx|gravity|grid|gridLayout|group|groupObjectsByName|hardenPointCurve|hardware|hardwareRenderPanel|headsUpDisplay|headsUpMessage|help|helpLine|hermite|hide|hilite|hitTest|hotBox|hotkey|hotkeyCheck|hsv_to_rgb|hudButton|hudSlider|hudSliderButton|hwReflectionMap|hwRender|hwRenderLoad|hyperGraph|hyperPanel|hyperShade|hypot|iconTextButton|iconTextCheckBox|iconTextRadioButton|iconTextRadioCollection|iconTextScrollList|iconTextStaticLabel|ikHandle|ikHandleCtx|ikHandleDisplayScale|ikSolver|ikSplineHandleCtx|ikSystem|ikSystemInfo|ikfkDisplayMethod|illustratorCurves|image|imfPlugins|inheritTransform|insertJoint|insertJointCtx|insertKeyCtx|insertKnotCurve|insertKnotSurface|instance|instanceable|instancer|intField|intFieldGrp|intScrollBar|intSlider|intSliderGrp|interToUI|internalVar|intersect|iprEngine|isAnimCurve|isConnected|isDirty|isParentOf|isSameObject|isTrue|isValidObjectName|isValidString|isValidUiName|isolateSelect|itemFilter|itemFilterAttr|itemFilterRender|itemFilterType|joint|jointCluster|jointCtx|jointDisplayScale|jointLattice|keyTangent|keyframe|keyframeOutliner|keyframeRegionCurrentTimeCtx|keyframeRegionDirectKeyCtx|keyframeRegionDollyCtx|keyframeRegionInsertKeyCtx|keyframeRegionMoveKeyCtx|keyframeRegionScaleKeyCtx|keyframeRegionSelectKeyCtx|keyframeRegionSetKeyCtx|keyframeRegionTrackCtx|keyframeStats|lassoContext|lattice|latticeDeformKeyCtx|launch|launchImageEditor|layerButton|layeredShaderPort|layeredTexturePort|layout|layoutDialog|lightList|lightListEditor|lightListPanel|lightlink|lineIntersection|linearPrecision|linstep|listAnimatable|listAttr|listCameras|listConnections|listDeviceAttachments|listHistory|listInputDeviceAxes|listInputDeviceButtons|listInputDevices|listMenuAnnotation|listNodeTypes|listPanelCategories|listRelatives|listSets|listTransforms|listUnselected|listerEditor|loadFluid|loadNewShelf|loadPlugin|loadPluginLanguageResources|loadPrefObjects|localizedPanelLabel|lockNode|loft|log|longNameOf|lookThru|ls|lsThroughFilter|lsType|lsUI|mag|makeIdentity|makeLive|makePaintable|makeRoll|makeSingleSurface|makeTubeOn|makebot|manipMoveContext|manipMoveLimitsCtx|manipOptions|manipRotateContext|manipRotateLimitsCtx|manipScaleContext|manipScaleLimitsCtx|marker|match|max|memory|menu|menuBarLayout|menuEditor|menuItem|menuItemToShelf|menuSet|menuSetPref|messageLine|min|minimizeApp|mirrorJoint|modelCurrentTimeCtx|modelEditor|modelPanel|mouse|movIn|movOut|move|moveIKtoFK|moveKeyCtx|moveVertexAlongDirection|multiProfileBirailSurface|mute|nParticle|nameCommand|nameField|namespace|namespaceInfo|newPanelItems|newton|nodeCast|nodeIconButton|nodeOutliner|nodePreset|nodeType|noise|nonLinear|normalConstraint|normalize|nurbsBoolean|nurbsCopyUVSet|nurbsCube|nurbsEditUV|nurbsPlane|nurbsSelect|nurbsSquare|nurbsToPoly|nurbsToPolygonsPref|nurbsToSubdiv|nurbsToSubdivPref|nurbsUVSet|nurbsViewDirectionVector|objExists|objectCenter|objectLayer|objectType|objectTypeUI|obsoleteProc|oceanNurbsPreviewPlane|offsetCurve|offsetCurveOnSurface|offsetSurface|openGLExtension|openMayaPref|optionMenu|optionMenuGrp|optionVar|orbit|orbitCtx|orientConstraint|outlinerEditor|outlinerPanel|overrideModifier|paintEffectsDisplay|pairBlend|palettePort|paneLayout|panel|panelConfiguration|panelHistory|paramDimContext|paramDimension|paramLocator|parent|parentConstraint|particle|particleExists|particleInstancer|particleRenderInfo|partition|pasteKey|pathAnimation|pause|pclose|percent|performanceOptions|pfxstrokes|pickWalk|picture|pixelMove|planarSrf|plane|play|playbackOptions|playblast|plugAttr|plugNode|pluginInfo|pluginResourceUtil|pointConstraint|pointCurveConstraint|pointLight|pointMatrixMult|pointOnCurve|pointOnSurface|pointPosition|poleVectorConstraint|polyAppend|polyAppendFacetCtx|polyAppendVertex|polyAutoProjection|polyAverageNormal|polyAverageVertex|polyBevel|polyBlendColor|polyBlindData|polyBoolOp|polyBridgeEdge|polyCacheMonitor|polyCheck|polyChipOff|polyClipboard|polyCloseBorder|polyCollapseEdge|polyCollapseFacet|polyColorBlindData|polyColorDel|polyColorPerVertex|polyColorSet|polyCompare|polyCone|polyCopyUV|polyCrease|polyCreaseCtx|polyCreateFacet|polyCreateFacetCtx|polyCube|polyCut|polyCutCtx|polyCylinder|polyCylindricalProjection|polyDelEdge|polyDelFacet|polyDelVertex|polyDuplicateAndConnect|polyDuplicateEdge|polyEditUV|polyEditUVShell|polyEvaluate|polyExtrudeEdge|polyExtrudeFacet|polyExtrudeVertex|polyFlipEdge|polyFlipUV|polyForceUV|polyGeoSampler|polyHelix|polyInfo|polyInstallAction|polyLayoutUV|polyListComponentConversion|polyMapCut|polyMapDel|polyMapSew|polyMapSewMove|polyMergeEdge|polyMergeEdgeCtx|polyMergeFacet|polyMergeFacetCtx|polyMergeUV|polyMergeVertex|polyMirrorFace|polyMoveEdge|polyMoveFacet|polyMoveFacetUV|polyMoveUV|polyMoveVertex|polyNormal|polyNormalPerVertex|polyNormalizeUV|polyOptUvs|polyOptions|polyOutput|polyPipe|polyPlanarProjection|polyPlane|polyPlatonicSolid|polyPoke|polyPrimitive|polyPrism|polyProjection|polyPyramid|polyQuad|polyQueryBlindData|polyReduce|polySelect|polySelectConstraint|polySelectConstraintMonitor|polySelectCtx|polySelectEditCtx|polySeparate|polySetToFaceNormal|polySewEdge|polyShortestPathCtx|polySmooth|polySoftEdge|polySphere|polySphericalProjection|polySplit|polySplitCtx|polySplitEdge|polySplitRing|polySplitVertex|polyStraightenUVBorder|polySubdivideEdge|polySubdivideFacet|polyToSubdiv|polyTorus|polyTransfer|polyTriangulate|polyUVSet|polyUnite|polyWedgeFace|popen|popupMenu|pose|pow|preloadRefEd|print|progressBar|progressWindow|projFileViewer|projectCurve|projectTangent|projectionContext|projectionManip|promptDialog|propModCtx|propMove|psdChannelOutliner|psdEditTextureFile|psdExport|psdTextureFile|putenv|pwd|python|querySubdiv|quit|rad_to_deg|radial|radioButton|radioButtonGrp|radioCollection|radioMenuItemCollection|rampColorPort|rand|randomizeFollicles|randstate|rangeControl|readTake|rebuildCurve|rebuildSurface|recordAttr|recordDevice|redo|reference|referenceEdit|referenceQuery|refineSubdivSelectionList|refresh|refreshAE|registerPluginResource|rehash|reloadImage|removeJoint|removeMultiInstance|removePanelCategory|rename|renameAttr|renameSelectionList|renameUI|render|renderGlobalsNode|renderInfo|renderLayerButton|renderLayerParent|renderLayerPostProcess|renderLayerUnparent|renderManip|renderPartition|renderQualityNode|renderSettings|renderThumbnailUpdate|renderWindowEditor|renderWindowSelectContext|renderer|reorder|reorderDeformers|requires|reroot|resampleFluid|resetAE|resetPfxToPolyCamera|resetTool|resolutionNode|retarget|reverseCurve|reverseSurface|revolve|rgb_to_hsv|rigidBody|rigidSolver|roll|rollCtx|rootOf|rot|rotate|rotationInterpolation|roundConstantRadius|rowColumnLayout|rowLayout|runTimeCommand|runup|sampleImage|saveAllShelves|saveAttrPreset|saveFluid|saveImage|saveInitialState|saveMenu|savePrefObjects|savePrefs|saveShelf|saveToolSettings|scale|scaleBrushBrightness|scaleComponents|scaleConstraint|scaleKey|scaleKeyCtx|sceneEditor|sceneUIReplacement|scmh|scriptCtx|scriptEditorInfo|scriptJob|scriptNode|scriptTable|scriptToShelf|scriptedPanel|scriptedPanelType|scrollField|scrollLayout|sculpt|searchPathArray|seed|selLoadSettings|select|selectContext|selectCurveCV|selectKey|selectKeyCtx|selectKeyframeRegionCtx|selectMode|selectPref|selectPriority|selectType|selectedNodes|selectionConnection|separator|setAttr|setAttrEnumResource|setAttrMapping|setAttrNiceNameResource|setConstraintRestPosition|setDefaultShadingGroup|setDrivenKeyframe|setDynamic|setEditCtx|setEditor|setFluidAttr|setFocus|setInfinity|setInputDeviceMapping|setKeyCtx|setKeyPath|setKeyframe|setKeyframeBlendshapeTargetWts|setMenuMode|setNodeNiceNameResource|setNodeTypeFlag|setParent|setParticleAttr|setPfxToPolyCamera|setPluginResource|setProject|setStampDensity|setStartupMessage|setState|setToolTo|setUITemplate|setXformManip|sets|shadingConnection|shadingGeometryRelCtx|shadingLightRelCtx|shadingNetworkCompare|shadingNode|shapeCompare|shelfButton|shelfLayout|shelfTabLayout|shellField|shortNameOf|showHelp|showHidden|showManipCtx|showSelectionInTitle|showShadingGroupAttrEditor|showWindow|sign|simplify|sin|singleProfileBirailSurface|size|sizeBytes|skinCluster|skinPercent|smoothCurve|smoothTangentSurface|smoothstep|snap2to2|snapKey|snapMode|snapTogetherCtx|snapshot|soft|softMod|softModCtx|sort|sound|soundControl|source|spaceLocator|sphere|sphrand|spotLight|spotLightPreviewPort|spreadSheetEditor|spring|sqrt|squareSurface|srtContext|stackTrace|startString|startsWith|stitchAndExplodeShell|stitchSurface|stitchSurfacePoints|strcmp|stringArrayCatenate|stringArrayContains|stringArrayCount|stringArrayInsertAtIndex|stringArrayIntersector|stringArrayRemove|stringArrayRemoveAtIndex|stringArrayRemoveDuplicates|stringArrayRemoveExact|stringArrayToString|stringToStringArray|strip|stripPrefixFromName|stroke|subdAutoProjection|subdCleanTopology|subdCollapse|subdDuplicateAndConnect|subdEditUV|subdListComponentConversion|subdMapCut|subdMapSewMove|subdMatchTopology|subdMirror|subdToBlind|subdToPoly|subdTransferUVsToCache|subdiv|subdivCrease|subdivDisplaySmoothness|substitute|substituteAllString|substituteGeometry|substring|surface|surfaceSampler|surfaceShaderList|swatchDisplayPort|switchTable|symbolButton|symbolCheckBox|sysFile|system|tabLayout|tan|tangentConstraint|texLatticeDeformContext|texManipContext|texMoveContext|texMoveUVShellContext|texRotateContext|texScaleContext|texSelectContext|texSelectShortestPathCtx|texSmudgeUVContext|texWinToolCtx|text|textCurves|textField|textFieldButtonGrp|textFieldGrp|textManip|textScrollList|textToShelf|textureDisplacePlane|textureHairColor|texturePlacementContext|textureWindow|threadCount|threePointArcCtx|timeControl|timePort|timerX|toNativePath|toggle|toggleAxis|toggleWindowVisibility|tokenize|tokenizeList|tolerance|tolower|toolButton|toolCollection|toolDropped|toolHasOptions|toolPropertyWindow|torus|toupper|trace|track|trackCtx|transferAttributes|transformCompare|transformLimits|translator|trim|trunc|truncateFluidCache|truncateHairCache|tumble|tumbleCtx|turbulence|twoPointArcCtx|uiRes|uiTemplate|unassignInputDevice|undo|undoInfo|ungroup|uniform|unit|unloadPlugin|untangleUV|untitledFileName|untrim|upAxis|updateAE|userCtx|uvLink|uvSnapshot|validateShelfName|vectorize|view2dToolCtx|viewCamera|viewClipPlane|viewFit|viewHeadOn|viewLookAt|viewManip|viewPlace|viewSet|visor|volumeAxis|vortex|waitCursor|warning|webBrowser|webBrowserPrefs|whatIs|window|windowPref|wire|wireContext|workspace|wrinkle|wrinkleContext|writeTake|xbmLangPathList|xform)\b/,operator:[/\+[+=]?|-[-=]?|&&|\|\||[<>]=|[*\/!=]=?|[%^]/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,:;?\[\](){}]/},h.languages.mel.code.inside.rest=h.languages.mel}},25153:function(X){"use strict";X.exports=C,C.displayName="mermaid",C.aliases=[];function C(h){h.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[<ox](?:==+|--+|-\.*-)[>ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}},33245:function(X){"use strict";X.exports=C,C.displayName="mizar",C.aliases=[];function C(h){h.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}},32218:function(X){"use strict";X.exports=C,C.displayName="mongodb",C.aliases=[];function C(h){(function(v){var I=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],O=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];I=I.map(function(G){return G.replace("$","\\$")});var B="(?:"+I.join("|")+")\\b";v.languages.mongodb=v.languages.extend("javascript",{}),v.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+B+"(?:\\1)?$")}}}),v.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},v.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+O.join("|")+")\\b"),alias:"keyword"}})})(h)}},65626:function(X){"use strict";X.exports=C,C.displayName="monkey",C.aliases=[];function C(h){h.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}},60090:function(X){"use strict";X.exports=C,C.displayName="moonscript",C.aliases=["moon"];function C(h){h.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},h.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=h.languages.moonscript,h.languages.moon=h.languages.moonscript}},40722:function(X){"use strict";X.exports=C,C.displayName="n1ql",C.aliases=[];function C(h){h.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}},37783:function(X){"use strict";X.exports=C,C.displayName="n4js",C.aliases=["n4jsd"];function C(h){h.languages.n4js=h.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),h.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),h.languages.n4jsd=h.languages.n4js}},41224:function(X){"use strict";X.exports=C,C.displayName="nand2tetrisHdl",C.aliases=[];function C(h){h.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}},71365:function(X){"use strict";X.exports=C,C.displayName="naniscript",C.aliases=[];function C(h){(function(v){var I=/\{[^\r\n\[\]{}]*\}/,O={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:I,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};v.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:I,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:O}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:I,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:O},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},v.languages.nani=v.languages.naniscript,v.hooks.add("after-tokenize",function(F){var M=F.tokens;M.forEach(function(de){if(typeof de!="string"&&de.type==="generic-text"){var ae=G(de);B(ae)||(de.type="bad-line",de.content=ae)}})});function B(F){for(var M="[]{}",de=[],ae=0;ae<F.length;ae++){var te=F[ae],Ne=M.indexOf(te);if(Ne!==-1){if(Ne%2===0)de.push(Ne+1);else if(de.pop()!==Ne)return!1}}return de.length===0}function G(F){return typeof F=="string"?F:Array.isArray(F)?F.map(G).join(""):G(F.content)}})(h)}},42846:function(X){"use strict";X.exports=C,C.displayName="nasm",C.aliases=[];function C(h){h.languages.nasm={comment:/;.*$/m,string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,label:{pattern:/(^\s*)[A-Za-z._?$][\w.?$@~#]*:/m,lookbehind:!0,alias:"function"},keyword:[/\[?BITS (?:16|32|64)\]?/,{pattern:/(^\s*)section\s*[a-z.]+:?/im,lookbehind:!0},/(?:extern|global)[^;\r\n]*/i,/(?:CPU|DEFAULT|FLOAT).*$/m],register:{pattern:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s)\b/i,alias:"variable"},number:/(?:\b|(?=\$))(?:0[hx](?:\.[\da-f]+|[\da-f]+(?:\.[\da-f]+)?)(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-\/%<>=&|$!]/}}},32964:function(X){"use strict";X.exports=C,C.displayName="neon",C.aliases=[];function C(h){h.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"atrule"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}},78830:function(X){"use strict";X.exports=C,C.displayName="nevod",C.aliases=[];function C(h){h.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}},88799:function(X){"use strict";X.exports=C,C.displayName="nginx",C.aliases=[];function C(h){(function(v){var I=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;v.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:I}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:I}},punctuation:/[{};]/}})(h)}},66791:function(X){"use strict";X.exports=C,C.displayName="nim",C.aliases=[];function C(h){h.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}},41735:function(X){"use strict";X.exports=C,C.displayName="nix",C.aliases=[];function C(h){h.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},h.languages.nix.string.inside.interpolation.inside=h.languages.nix}},13490:function(X){"use strict";X.exports=C,C.displayName="nsis",C.aliases=[];function C(h){h.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|LabelAddress|TempFileName)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}},7383:function(X,C,h){"use strict";var v=h(79440);X.exports=I,I.displayName="objectivec",I.aliases=["objc"];function I(O){O.register(v),O.languages.objectivec=O.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete O.languages.objectivec["class-name"],O.languages.objc=O.languages.objectivec}},66894:function(X){"use strict";X.exports=C,C.displayName="ocaml",C.aliases=[];function C(h){h.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}},45779:function(X,C,h){"use strict";var v=h(79440);X.exports=I,I.displayName="opencl",I.aliases=[];function I(O){O.register(v),function(B){B.languages.opencl=B.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),B.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var G={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};B.languages.insertBefore("c","keyword",G),B.languages.cpp&&(G["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},B.languages.insertBefore("cpp","keyword",G))}(O)}},27734:function(X){"use strict";X.exports=C,C.displayName="openqasm",C.aliases=["qasm"];function C(h){h.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},h.languages.qasm=h.languages.openqasm}},91889:function(X){"use strict";X.exports=C,C.displayName="oz",C.aliases=[];function C(h){h.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|<?:?)|>=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}},55965:function(X){"use strict";X.exports=C,C.displayName="parigp",C.aliases=[];function C(h){h.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var v=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return v=v.map(function(I){return I.split("").join(" *")}).join("|"),RegExp("\\b(?:"+v+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}},37326:function(X){"use strict";X.exports=C,C.displayName="parser",C.aliases=[];function C(h){(function(v){var I=v.languages.parser=v.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});I=v.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:I.keyword,variable:I.variable,function:I.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:I.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:I.punctuation}}}),v.languages.insertBefore("inside","punctuation",{expression:I.expression,keyword:I.keyword,variable:I.variable,function:I.function,escape:I.escape,"parser-punctuation":{pattern:I.punctuation,alias:"punctuation"}},I.tag.inside["attr-value"])})(h)}},92949:function(X){"use strict";X.exports=C,C.displayName="pascal",C.aliases=["objectpascal"];function C(h){h.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},h.languages.pascal.asm.inside=h.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),h.languages.objectpascal=h.languages.pascal}},5681:function(X){"use strict";X.exports=C,C.displayName="pascaligo",C.aliases=[];function C(h){(function(v){var I=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,O=/(?:\b\w+(?:<braces>)?|<braces>)/.source.replace(/<braces>/g,function(){return I}),B=v.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)<type>/.source.replace(/<type>/g,function(){return O}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/<type>(?=\s+is\b)/.source.replace(/<type>/g,function(){return O}),"i"),inside:null},{pattern:RegExp(/(:\s*)<type>/.source.replace(/<type>/g,function(){return O})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},G=["comment","keyword","builtin","operator","punctuation"].reduce(function(F,M){return F[M]=B[M],F},{});B["class-name"].forEach(function(F){F.inside=G})})(h)}},70696:function(X){"use strict";X.exports=C,C.displayName="pcaxis",C.aliases=["px"];function C(h){h.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},h.languages.px=h.languages.pcaxis}},35790:function(X){"use strict";X.exports=C,C.displayName="peoplecode",C.aliases=["pcode"];function C(h){h.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},h.languages.pcode=h.languages.peoplecode}},25777:function(X){"use strict";X.exports=C,C.displayName="perl",C.aliases=[];function C(h){(function(v){var I=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;v.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,I].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,I].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,I+/\s*/.source+I].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(h)}},65889:function(X,C,h){"use strict";var v=h(53852);X.exports=I,I.displayName="phpExtras",I.aliases=[];function I(O){O.register(v),O.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}},53852:function(X,C,h){"use strict";var v=h(51478);X.exports=I,I.displayName="php",I.aliases=[];function I(O){O.register(v),function(B){var G=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,F=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],M=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,de=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,ae=/[{}\[\](),:;]/;B.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:G,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:F,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:M,operator:de,punctuation:ae};var te={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:B.languages.php},Ne=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:te}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:te}}];B.languages.insertBefore("php","variable",{string:Ne,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:G,string:Ne,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:F,number:M,operator:de,punctuation:ae}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),B.hooks.add("before-tokenize",function(Ee){if(/<\?/.test(Ee.code)){var Xe=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;B.languages["markup-templating"].buildPlaceholders(Ee,"php",Xe)}}),B.hooks.add("after-tokenize",function(Ee){B.languages["markup-templating"].tokenizePlaceholders(Ee,"php")})}(O)}},97719:function(X,C,h){"use strict";var v=h(53852),I=h(53510);X.exports=O,O.displayName="phpdoc",O.aliases=[];function O(B){B.register(v),B.register(I),function(G){var F=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;G.languages.phpdoc=G.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+F+"\\s+)?)\\$\\w+"),lookbehind:!0}}),G.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+F),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),G.languages.javadoclike.addSupport("php",G.languages.phpdoc)}(B)}},63839:function(X,C,h){"use strict";var v=h(69435);X.exports=I,I.displayName="plsql",I.aliases=[];function I(O){O.register(v),O.languages.plsql=O.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),O.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}},67623:function(X){"use strict";X.exports=C,C.displayName="powerquery",C.aliases=[];function C(h){h.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},h.languages.pq=h.languages.powerquery,h.languages.mscript=h.languages.powerquery}},32530:function(X){"use strict";X.exports=C,C.displayName="powershell",C.aliases=[];function C(h){(function(v){var I=v.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};I.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:I},boolean:I.boolean,variable:I.variable}})(h)}},8938:function(X){"use strict";X.exports=C,C.displayName="processing",C.aliases=[];function C(h){h.languages.processing=h.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),h.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}},55259:function(X){"use strict";X.exports=C,C.displayName="prolog",C.aliases=[];function C(h){h.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}},67411:function(X){"use strict";X.exports=C,C.displayName="promql",C.aliases=[];function C(h){(function(v){var I=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],O=["on","ignoring","group_right","group_left","by","without"],B=["offset"],G=I.concat(O,B);v.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+O.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+G.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(h)}},15375:function(X){"use strict";X.exports=C,C.displayName="properties",C.aliases=[];function C(h){h.languages.properties={comment:/^[ \t]*[#!].*$/m,"attr-value":{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0},"attr-name":/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,punctuation:/[=:]/}}},12093:function(X){"use strict";X.exports=C,C.displayName="protobuf",C.aliases=[];function C(h){(function(v){var I=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;v.languages.protobuf=v.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),v.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:I}},builtin:I,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})})(h)}},83588:function(X){"use strict";X.exports=C,C.displayName="psl",C.aliases=[];function C(h){h.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}},94127:function(X){"use strict";X.exports=C,C.displayName="pug",C.aliases=[];function C(h){(function(v){v.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:v.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:v.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:v.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:v.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:v.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:v.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:v.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:v.languages.javascript}],punctuation:/[.\-!=|]+/};for(var I=/(^([\t ]*)):<filter_name>(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,O=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],B={},G=0,F=O.length;G<F;G++){var M=O[G];M=typeof M=="string"?{filter:M,language:M}:M,v.languages[M.language]&&(B["filter-"+M.filter]={pattern:RegExp(I.replace("<filter_name>",function(){return M.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[M.language,"language-"+M.language],inside:v.languages[M.language]}}})}v.languages.insertBefore("pug","filter",B)})(h)}},21294:function(X){"use strict";X.exports=C,C.displayName="puppet",C.aliases=[];function C(h){(function(v){v.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var I=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:v.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];v.languages.puppet.heredoc[0].inside.interpolation=I,v.languages.puppet.string.inside["double-quoted"].inside.interpolation=I})(h)}},38709:function(X){"use strict";X.exports=C,C.displayName="pure",C.aliases=[];function C(h){(function(v){v.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var I=["c",{lang:"c++",alias:"cpp"},"fortran"],O=/%< *-\*- *<lang>\d* *-\*-[\s\S]+?%>/.source;I.forEach(function(B){var G=B;if(typeof B!="string"&&(G=B.alias,B=B.lang),v.languages[G]){var F={};F["inline-lang-"+G]={pattern:RegExp(O.replace("<lang>",B.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:v.util.clone(v.languages.pure["inline-lang"].inside)},F["inline-lang-"+G].inside.rest=v.util.clone(v.languages[G]),v.languages.insertBefore("pure","inline-lang",F)}}),v.languages.c&&(v.languages.pure["inline-lang"].inside.rest=v.util.clone(v.languages.c))})(h)}},15008:function(X){"use strict";X.exports=C,C.displayName="purebasic",C.aliases=[];function C(h){h.languages.purebasic=h.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+|-[>-]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|?\||[~^%?*/@]/}),h.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete h.languages.purebasic["class-name"],delete h.languages.purebasic.boolean,h.languages.pbfasm=h.languages.purebasic}},96549:function(X,C,h){"use strict";var v=h(2050);X.exports=I,I.displayName="purescript",I.aliases=["purs"];function I(O){O.register(v),O.languages.purescript=O.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[O.languages.haskell.operator[0],O.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),O.languages.purs=O.languages.purescript}},5221:function(X){"use strict";X.exports=C,C.displayName="python",C.aliases=["py"];function C(h){h.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},h.languages.python["string-interpolation"].inside.interpolation.inside.rest=h.languages.python,h.languages.py=h.languages.python}},27447:function(X){"use strict";X.exports=C,C.displayName="q",C.aliases=[];function C(h){h.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}},73191:function(X){"use strict";X.exports=C,C.displayName="qml",C.aliases=[];function C(h){(function(v){for(var I=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,O=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,B=/(?:[^\\()[\]{}"'/]|<string>|\/(?![*/])|<comment>|\(<expr>*\)|\[<expr>*\]|\{<expr>*\}|\\[\s\S])/.source.replace(/<string>/g,function(){return I}).replace(/<comment>/g,function(){return O}),G=0;G<2;G++)B=B.replace(/<expr>/g,function(){return B});B=B.replace(/<expr>/g,"[^\\s\\S]"),v.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(<js>*\)\s*\{<js>*\}/.source.replace(/<js>/g,function(){return B}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:v.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}])<js>)+/.source.replace(/<js>/g,function(){return B}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:v.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(h)}},75542:function(X){"use strict";X.exports=C,C.displayName="qore",C.aliases=[];function C(h){h.languages.qore=h.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}},50323:function(X){"use strict";X.exports=C,C.displayName="qsharp",C.aliases=["qs"];function C(h){(function(v){function I(Xe,Oe){return Xe.replace(/<<(\d+)>>/g,function(Ce,Ie){return"(?:"+Oe[+Ie]+")"})}function O(Xe,Oe,Ce){return RegExp(I(Xe,Oe),Ce||"")}function B(Xe,Oe){for(var Ce=0;Ce<Oe;Ce++)Xe=Xe.replace(/<<self>>/g,function(){return"(?:"+Xe+")"});return Xe.replace(/<<self>>/g,"[^\\s\\S]")}var G={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function F(Xe){return"\\b(?:"+Xe.trim().replace(/ /g,"|")+")\\b"}var M=RegExp(F(G.type+" "+G.other)),de=/\b[A-Za-z_]\w*\b/.source,ae=I(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[de]),te={keyword:M,punctuation:/[<>()?,.:[\]]/},Ne=/"(?:\\.|[^\\"])*"/.source;v.languages.qsharp=v.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:O(/(^|[^$\\])<<0>>/.source,[Ne]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:O(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[ae]),lookbehind:!0,inside:te},{pattern:O(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[ae]),lookbehind:!0,inside:te}],keyword:M,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),v.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var Ee=B(I(/\{(?:[^"{}]|<<0>>|<<self>>)*\}/.source,[Ne]),2);v.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:O(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[Ee]),greedy:!0,inside:{interpolation:{pattern:O(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[Ee]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:v.languages.qsharp}}},string:/[\s\S]+/}}})})(h),h.languages.qs=h.languages.qsharp}},44298:function(X){"use strict";X.exports=C,C.displayName="r",C.aliases=[];function C(h){h.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}},9634:function(X,C,h){"use strict";var v=h(48780);X.exports=I,I.displayName="racket",I.aliases=["rkt"];function I(O){O.register(v),O.languages.racket=O.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),O.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),O.languages.rkt=O.languages.racket}},75266:function(X){"use strict";X.exports=C,C.displayName="reason",C.aliases=[];function C(h){h.languages.reason=h.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),h.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete h.languages.reason.function}},48139:function(X){"use strict";X.exports=C,C.displayName="regex",C.aliases=[];function C(h){(function(v){var I={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},O=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,B={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},G={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},F="(?:[^\\\\-]|"+O.source+")",M=RegExp(F+"-"+F),de={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};v.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:M,inside:{escape:O,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":I,"char-set":G,escape:O}},"special-escape":I,"char-set":B,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":de}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:O,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":de}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(h)}},97534:function(X){"use strict";X.exports=C,C.displayName="rego",C.aliases=[];function C(h){h.languages.rego={comment:/#.*/,property:{pattern:/(^|[^\\.])(?:"(?:\\.|[^\\"\r\n])*"|`[^`]*`|\b[a-z_]\w*\b)(?=\s*:(?!=))/i,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:as|default|else|import|not|null|package|set(?=\s*\()|some|with)\b/,boolean:/\b(?:false|true)\b/,function:{pattern:/\b[a-z_]\w*\b(?:\s*\.\s*\b[a-z_]\w*\b)*(?=\s*\()/i,inside:{namespace:/\b\w+\b(?=\s*\.)/,punctuation:/\./}},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,operator:/[-+*/%|&]|[<>:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}},90826:function(X){"use strict";X.exports=C,C.displayName="renpy",C.aliases=["rpy"];function C(h){h.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},h.languages.rpy=h.languages.renpy}},63919:function(X){"use strict";X.exports=C,C.displayName="rest",C.aliases=[];function C(h){h.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}},68862:function(X){"use strict";X.exports=C,C.displayName="rip",C.aliases=[];function C(h){h.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}},39523:function(X){"use strict";X.exports=C,C.displayName="roboconf",C.aliases=[];function C(h){h.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}},31207:function(X){"use strict";X.exports=C,C.displayName="robotframework",C.aliases=[];function C(h){(function(v){var I={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},O={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function B(de,ae){var te={};te["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var Ne in ae)te[Ne]=ae[Ne];return te.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},te.variable=O,te.comment=I,{pattern:RegExp(/^ ?\*{3}[ \t]*<name>[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(/<name>/g,function(){return de}),"im"),alias:"section",inside:te}}var G={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},F={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:O}},M={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:O}};v.languages.robotframework={settings:B("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:B("Variables"),"test-cases":B("Test Cases",{"test-name":F,documentation:G,property:M}),keywords:B("Keywords",{"keyword-name":F,documentation:G,property:M}),tasks:B("Tasks",{"task-name":F,documentation:G,property:M}),comment:I},v.languages.robot=v.languages.robotframework})(h)}},75308:function(X){"use strict";X.exports=C,C.displayName="ruby",C.aliases=["rb"];function C(h){(function(v){v.languages.ruby=v.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),v.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var I={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:v.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete v.languages.ruby.function;var O="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",B=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;v.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+O+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:I,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:I,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+B),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+B+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),v.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+O),greedy:!0,inside:{interpolation:I,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:I,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:I,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+O),greedy:!0,inside:{interpolation:I,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:I,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete v.languages.ruby.string,v.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),v.languages.rb=v.languages.ruby})(h)}},45315:function(X){"use strict";X.exports=C,C.displayName="rust",C.aliases=[];function C(h){(function(v){for(var I=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,O=0;O<2;O++)I=I.replace(/<self>/g,function(){return I});I=I.replace(/<self>/g,function(){return/[^\s\S]/.source}),v.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+I),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},v.languages.rust["closure-params"].inside.rest=v.languages.rust,v.languages.rust.attribute.inside.string=v.languages.rust.string})(h)}},13794:function(X){"use strict";X.exports=C,C.displayName="sas",C.aliases=[];function C(h){(function(v){var I=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,O=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,B={pattern:RegExp(I+"[bx]"),alias:"number"},G={pattern:/&[a-z_]\w*/i},F={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},M={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},de=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],ae={pattern:RegExp(I),greedy:!0},te=/[$%@.(){}\[\];,\\]/,Ne={pattern:/%?\b\w+(?=\()/,alias:"keyword"},Ee={function:Ne,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":G,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:O,"numeric-constant":B,punctuation:te,string:ae},Xe={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},Oe={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},Ce={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},Ie={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},Re=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,fe={pattern:RegExp(/(^|\s)(?:action\s+)?(?:<act>)\.[a-z]+\b[^;]+/.source.replace(/<act>/g,function(){return Re}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:<act>)\.[a-z]+\b/.source.replace(/<act>/g,function(){return Re}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:de,function:Ne,"arg-value":Ee["arg-value"],operator:Ee.operator,argument:Ee.arg,number:O,"numeric-constant":B,punctuation:te,string:ae}},me={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};v.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:<str>|[^;"'])+;/.source.replace(/<str>/g,function(){return I}),"im"),alias:"language-sql",inside:v.languages.sql},"global-statements":Ce,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:O,"numeric-constant":B,punctuation:te,string:ae}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:de,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return I}),"im"),lookbehind:!0,alias:"language-groovy",inside:v.languages.groovy},keyword:me,"submit-statement":Ie,"global-statements":Ce,number:O,"numeric-constant":B,punctuation:te,string:ae}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:de,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return I}),"im"),lookbehind:!0,alias:"language-lua",inside:v.languages.lua},keyword:me,"submit-statement":Ie,"global-statements":Ce,number:O,"numeric-constant":B,punctuation:te,string:ae}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:de,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:Ee}},"cas-actions":fe,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:Ee},step:M,keyword:me,function:Ne,format:Xe,altformat:Oe,"global-statements":Ce,number:O,"numeric-constant":B,punctuation:te,string:ae}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|<str>)+;/.source.replace(/<str>/g,function(){return I}),"im"),lookbehind:!0,inside:Ee},"macro-keyword":F,"macro-variable":G,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":F,"macro-variable":G,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:te}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:de,number:O,"numeric-constant":B}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:Ee},"cas-actions":fe,comment:de,function:Ne,format:Xe,altformat:Oe,"numeric-constant":B,datetime:{pattern:RegExp(I+"(?:dt?|t)"),alias:"number"},string:ae,step:M,keyword:me,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:O,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:te}})(h)}},41299:function(X){"use strict";X.exports=C,C.displayName="sass",C.aliases=[];function C(h){(function(v){v.languages.sass=v.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),v.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete v.languages.sass.atrule;var I=/\$[-\w]+|#\{\$[-\w]+\}/,O=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];v.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:I,operator:O}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:I,operator:O,important:v.languages.sass.important}}}),delete v.languages.sass.property,delete v.languages.sass.important,v.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(h)}},98177:function(X,C,h){"use strict";var v=h(7093);X.exports=I,I.displayName="scala",I.aliases=[];function I(O){O.register(v),O.languages.scala=O.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),O.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:O.languages.scala}}},string:/[\s\S]+/}}}),delete O.languages.scala["class-name"],delete O.languages.scala.function}},48780:function(X){"use strict";X.exports=C,C.displayName="scheme",C.aliases=[];function C(h){(function(v){v.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(I({"<ureal dec>":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"<real dec>":/[+-]?<ureal dec>|[+-](?:inf|nan)\.0/.source,"<imaginary dec>":/[+-](?:<ureal dec>|(?:inf|nan)\.0)?i/.source,"<complex dec>":/<real dec>(?:@<real dec>|<imaginary dec>)?|<imaginary dec>/.source,"<num dec>":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?<complex dec>/.source,"<ureal box>":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"<real box>":/[+-]?<ureal box>|[+-](?:inf|nan)\.0/.source,"<imaginary box>":/[+-](?:<ureal box>|(?:inf|nan)\.0)?i/.source,"<complex box>":/<real box>(?:@<real box>|<imaginary box>)?|<imaginary box>/.source,"<num box>":/#[box](?:#[ei])?|(?:#[ei])?#[box]<complex box>/.source,"<number>":/(^|[()\[\]\s])(?:<num dec>|<num box>)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function I(O){for(var B in O)O[B]=O[B].replace(/<[\w\s]+>/g,function(G){return"(?:"+O[G].trim()+")"});return O[B]}})(h)}},79793:function(X){"use strict";X.exports=C,C.displayName="scss",C.aliases=[];function C(h){h.languages.scss=h.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),h.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),h.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),h.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),h.languages.scss.atrule.inside.rest=h.languages.scss}},52085:function(X,C,h){"use strict";var v=h(3058);X.exports=I,I.displayName="shellSession",I.aliases=[];function I(O){O.register(v),function(B){var G=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");B.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<<str>>)+/.source.replace(/<<str>>/g,function(){return G}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:B.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},B.languages["sh-session"]=B.languages.shellsession=B.languages["shell-session"]}(O)}},65411:function(X){"use strict";X.exports=C,C.displayName="smali",C.aliases=[];function C(h){h.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}},84750:function(X){"use strict";X.exports=C,C.displayName="smalltalk",C.aliases=[];function C(h){h.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}},88216:function(X,C,h){"use strict";var v=h(51478);X.exports=I,I.displayName="smarty",I.aliases=[];function I(O){O.register(v),function(B){B.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:B.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},B.languages.smarty["embedded-php"].inside.smarty.inside=B.languages.smarty,B.languages.smarty.string[0].inside.interpolation.inside.expression.inside=B.languages.smarty;var G=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,F=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>)*\})*\})*\}/.source.replace(/<str>/g,function(){return G.source}),"g");B.hooks.add("before-tokenize",function(M){var de="{literal}",ae="{/literal}",te=!1;B.languages["markup-templating"].buildPlaceholders(M,"smarty",F,function(Ne){return Ne===ae&&(te=!1),te?!1:(Ne===de&&(te=!0),!0)})}),B.hooks.add("after-tokenize",function(M){B.languages["markup-templating"].tokenizePlaceholders(M,"smarty")})}(O)}},66433:function(X){"use strict";X.exports=C,C.displayName="sml",C.aliases=["smlnj"];function C(h){(function(v){var I=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;v.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)<TERMINAL>(?:\s*(?:(?:\*|->)\s*<TERMINAL>|,\s*<TERMINAL>(?:(?=<NOT-LAST>)|(?!<NOT-LAST>)\s+<LONG-ID>)))*/.source.replace(/<NOT-LAST>/g,function(){return/\s*(?:[*,]|->)/.source}).replace(/<TERMINAL>/g,function(){return/(?:'[\w']*|<LONG-ID>|\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+<LONG-ID>)*/.source}).replace(/<LONG-ID>/g,function(){return/(?!<KEYWORD>)[a-z\d_][\w'.]*/.source}).replace(/<KEYWORD>/g,function(){return I.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:I,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},v.languages.sml["class-name"][0].inside=v.languages.sml,v.languages.smlnj=v.languages.sml})(h)}},34855:function(X){"use strict";X.exports=C,C.displayName="solidity",C.aliases=["sol"];function C(h){h.languages.solidity=h.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),h.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),h.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),h.languages.sol=h.languages.solidity}},12998:function(X){"use strict";X.exports=C,C.displayName="solutionFile",C.aliases=[];function C(h){(function(v){var I={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};v.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:I}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:I}},guid:I,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},v.languages.sln=v.languages["solution-file"]})(h)}},10202:function(X,C,h){"use strict";var v=h(51478);X.exports=I,I.displayName="soy",I.aliases=[];function I(O){O.register(v),function(B){var G=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,F=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;B.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:G,greedy:!0},number:F,punctuation:/[\[\].?]/}},string:{pattern:G,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:F,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},B.hooks.add("before-tokenize",function(M){var de=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,ae="{literal}",te="{/literal}",Ne=!1;B.languages["markup-templating"].buildPlaceholders(M,"soy",de,function(Ee){return Ee===te&&(Ne=!1),Ne?!1:(Ee===ae&&(Ne=!0),!0)})}),B.hooks.add("after-tokenize",function(M){B.languages["markup-templating"].tokenizePlaceholders(M,"soy")})}(O)}},41186:function(X,C,h){"use strict";var v=h(58710);X.exports=I,I.displayName="sparql",I.aliases=["rq"];function I(O){O.register(v),O.languages.sparql=O.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),O.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),O.languages.rq=O.languages.sparql}},68963:function(X){"use strict";X.exports=C,C.displayName="splunkSpl",C.aliases=[];function C(h){h.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}},5569:function(X){"use strict";X.exports=C,C.displayName="sqf",C.aliases=[];function C(h){h.languages.sqf=h.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),h.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:h.languages.sqf.comment}}}),delete h.languages.sqf["class-name"]}},69435:function(X){"use strict";X.exports=C,C.displayName="sql",C.aliases=[];function C(h){h.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}},42766:function(X){"use strict";X.exports=C,C.displayName="squirrel",C.aliases=[];function C(h){h.languages.squirrel=h.languages.extend("clike",{comment:[h.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),h.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),h.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}},46449:function(X){"use strict";X.exports=C,C.displayName="stan",C.aliases=[];function C(h){(function(v){var I=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;v.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+I.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,I],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},v.languages.stan.constraint.inside.expression.inside=v.languages.stan})(h)}},89032:function(X){"use strict";X.exports=C,C.displayName="stylus",C.aliases=[];function C(h){(function(v){var I={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},O={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},B={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:I,number:O,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:I,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:O,punctuation:/[{}()\[\];:,]/};B.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:B}},B.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:B}},v.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:B}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:B}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:B}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:B.interpolation}},rest:B}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:B.interpolation,comment:B.comment,punctuation:/[{},]/}},func:B.func,string:B.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:B.interpolation,punctuation:/[{}()\[\];:.]/}})(h)}},40241:function(X){"use strict";X.exports=C,C.displayName="swift",C.aliases=[];function C(h){h.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},h.languages.swift["string-literal"].forEach(function(v){v.inside.interpolation.inside=h.languages.swift})}},24812:function(X){"use strict";X.exports=C,C.displayName="systemd",C.aliases=[];function C(h){(function(v){var I={pattern:/^[;#].*/m,greedy:!0},O=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;v.languages.systemd={comment:I,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+O+`|(?=[^"\r
]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+O+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:I,quoted:{pattern:RegExp(/(^|\s)/.source+O),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(h)}},16747:function(X,C,h){"use strict";var v=h(73584),I=h(87648);X.exports=O,O.displayName="t4Cs",O.aliases=[];function O(B){B.register(v),B.register(I),B.languages.t4=B.languages["t4-cs"]=B.languages["t4-templating"].createT4("csharp")}},73584:function(X){"use strict";X.exports=C,C.displayName="t4Templating",C.aliases=[];function C(h){(function(v){function I(B,G,F){return{pattern:RegExp("<#"+B+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+B+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:G,alias:F}}}}function O(B){var G=v.languages[B],F="language-"+B;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:I("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:I("=",G,F),"class-feature":I("\\+",G,F),standard:I("",G,F)}}}}v.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:O})})(h)}},79243:function(X,C,h){"use strict";var v=h(73584),I=h(55686);X.exports=O,O.displayName="t4Vb",O.aliases=[];function O(B){B.register(v),B.register(I),B.languages["t4-vb"]=B.languages["t4-templating"].createT4("vbnet")}},31788:function(X,C,h){"use strict";var v=h(14409);X.exports=I,I.displayName="tap",I.aliases=[];function I(O){O.register(v),O.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:O.languages.yaml,alias:"language-yaml"}}}},60871:function(X){"use strict";X.exports=C,C.displayName="tcl",C.aliases=[];function C(h){h.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}},21023:function(X){"use strict";X.exports=C,C.displayName="textile",C.aliases=[];function C(h){(function(v){var I=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,O=/\)|\((?![^|()\n]+\))/.source;function B(Ne,Ee){return RegExp(Ne.replace(/<MOD>/g,function(){return"(?:"+I+")"}).replace(/<PAR>/g,function(){return"(?:"+O+")"}),Ee||"")}var G={css:{pattern:/\{[^{}]+\}/,inside:{rest:v.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},F=v.languages.textile=v.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:B(/^[a-z]\w*(?:<MOD>|<PAR>|[<>=])*\./.source),inside:{modifier:{pattern:B(/(^[a-z]\w*)(?:<MOD>|<PAR>|[<>=])+(?=\.)/.source),lookbehind:!0,inside:G},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:B(/^[*#]+<MOD>*\s+\S.*/.source,"m"),inside:{modifier:{pattern:B(/(^[*#]+)<MOD>+/.source),lookbehind:!0,inside:G},punctuation:/^[*#]+/}},table:{pattern:B(/^(?:(?:<MOD>|<PAR>|[<>=^~])+\.\s*)?(?:\|(?:(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.|(?!(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:B(/(^|\|(?:\r?\n|\r)?)(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:G},punctuation:/\||^\./}},inline:{pattern:B(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])<MOD>*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:B(/(^(\*\*?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:B(/(^(__?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:B(/(^\?\?<MOD>*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:B(/(^@<MOD>*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:B(/(^\+<MOD>*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:B(/(^-<MOD>*).+?(?=-)/.source),lookbehind:!0},span:{pattern:B(/(^%<MOD>*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:B(/(^\*\*|__|\?\?|[*_%@+\-^~])<MOD>+/.source),lookbehind:!0,inside:G},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:B(/"<MOD>*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:B(/(^"<MOD>*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:B(/(^")<MOD>+/.source),lookbehind:!0,inside:G},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:B(/!(?:<MOD>|<PAR>|[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:B(/(^!(?:<MOD>|<PAR>|[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:B(/(^!)(?:<MOD>|<PAR>|[<>=])+/.source),lookbehind:!0,inside:G},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),M=F.phrase.inside,de={inline:M.inline,link:M.link,image:M.image,footnote:M.footnote,acronym:M.acronym,mark:M.mark};F.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var ae=M.inline.inside;ae.bold.inside=de,ae.italic.inside=de,ae.inserted.inside=de,ae.deleted.inside=de,ae.span.inside=de;var te=M.table.inside;te.inline=de.inline,te.link=de.link,te.image=de.image,te.footnote=de.footnote,te.acronym=de.acronym,te.mark=de.mark})(h)}},14693:function(X){"use strict";X.exports=C,C.displayName="toml",C.aliases=[];function C(h){(function(v){var I=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function O(B){return B.replace(/__/g,function(){return I})}v.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(O(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(O(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(h)}},8743:function(X){"use strict";X.exports=C,C.displayName="tremor",C.aliases=[];function C(h){(function(v){v.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var I=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;v.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+I+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+I+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(I),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:v.languages.tremor}}},string:/[\s\S]+/}},v.languages.troy=v.languages.tremor,v.languages.trickle=v.languages.tremor})(h)}},1689:function(X,C,h){"use strict";var v=h(24103),I=h(92784);X.exports=O,O.displayName="tsx",O.aliases=[];function O(B){B.register(v),B.register(I),function(G){var F=G.util.clone(G.languages.typescript);G.languages.tsx=G.languages.extend("jsx",F),delete G.languages.tsx.parameter,delete G.languages.tsx["literal-property"];var M=G.languages.tsx.tag;M.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+M.pattern.source+")",M.pattern.flags),M.lookbehind=!0}(B)}},69210:function(X,C,h){"use strict";var v=h(51478);X.exports=I,I.displayName="tt2",I.aliases=[];function I(O){O.register(v),function(B){B.languages.tt2=B.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),B.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),B.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),B.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete B.languages.tt2.string,B.hooks.add("before-tokenize",function(G){var F=/\[%[\s\S]+?%\]/g;B.languages["markup-templating"].buildPlaceholders(G,"tt2",F)}),B.hooks.add("after-tokenize",function(G){B.languages["markup-templating"].tokenizePlaceholders(G,"tt2")})}(O)}},58710:function(X){"use strict";X.exports=C,C.displayName="turtle",C.aliases=[];function C(h){h.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},h.languages.trig=h.languages.turtle}},60452:function(X,C,h){"use strict";var v=h(51478);X.exports=I,I.displayName="twig",I.aliases=[];function I(O){O.register(v),O.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},O.hooks.add("before-tokenize",function(B){if(B.language==="twig"){var G=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;O.languages["markup-templating"].buildPlaceholders(B,"twig",G)}}),O.hooks.add("after-tokenize",function(B){O.languages["markup-templating"].tokenizePlaceholders(B,"twig")})}},92784:function(X){"use strict";X.exports=C,C.displayName="typescript",C.aliases=["ts"];function C(h){(function(v){v.languages.typescript=v.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),v.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete v.languages.typescript.parameter,delete v.languages.typescript["literal-property"];var I=v.languages.extend("typescript",{});delete I["class-name"],v.languages.typescript["class-name"].inside=I,v.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:I}}}}),v.languages.ts=v.languages.typescript})(h)}},36489:function(X){"use strict";X.exports=C,C.displayName="typoscript",C.aliases=["tsconfig"];function C(h){(function(v){var I=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;v.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern:/<INCLUDE_TYPOSCRIPT:\s*source\s*=\s*(?:"[^"\r\n]*"|'[^'\r\n]*')\s*>/,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:I}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:I,number:/^\d+$/,punctuation:/[,|:]/}},keyword:I,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},v.languages.tsconfig=v.languages.typoscript})(h)}},78380:function(X){"use strict";X.exports=C,C.displayName="unrealscript",C.aliases=["uc","uscript"];function C(h){h.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},h.languages.uc=h.languages.uscript=h.languages.unrealscript}},10409:function(X){"use strict";X.exports=C,C.displayName="uorazor",C.aliases=[];function C(h){h.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}},6539:function(X){"use strict";X.exports=C,C.displayName="uri",C.aliases=["url"];function C(h){h.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},h.languages.url=h.languages.uri}},82028:function(X){"use strict";X.exports=C,C.displayName="v",C.aliases=[];function C(h){(function(v){var I={pattern:/[\s\S]+/,inside:null};v.languages.v=v.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":I}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),I.inside=v.languages.v,v.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),v.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),v.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:v.languages.v.generic.inside}}}})})(h)}},62282:function(X){"use strict";X.exports=C,C.displayName="vala",C.aliases=[];function C(h){h.languages.vala=h.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),h.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:h.languages.vala}},string:/[\s\S]+/}}}),h.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:h.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}},55686:function(X,C,h){"use strict";var v=h(51422);X.exports=I,I.displayName="vbnet",I.aliases=[];function I(O){O.register(v),O.languages.vbnet=O.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}},70889:function(X){"use strict";X.exports=C,C.displayName="velocity",C.aliases=[];function C(h){(function(v){v.languages.velocity=v.languages.extend("markup",{});var I={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};I.variable.inside={string:I.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:I.number,boolean:I.boolean,punctuation:I.punctuation},v.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:I}},variable:I.variable}),v.languages.velocity.tag.inside["attr-value"].inside.rest=v.languages.velocity})(h)}},37116:function(X){"use strict";X.exports=C,C.displayName="verilog",C.aliases=[];function C(h){h.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}},66963:function(X){"use strict";X.exports=C,C.displayName="vhdl",C.aliases=[];function C(h){h.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,constant:/\b(?:library|use)\b/i,keyword:/\b(?:'active|'ascending|'base|'delayed|'driving|'driving_value|'event|'high|'image|'instance_name|'last_active|'last_event|'last_value|'left|'leftof|'length|'low|'path_name|'pos|'pred|'quiet|'range|'reverse_range|'right|'rightof|'simple_name|'stable|'succ|'transaction|'val|'value|access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}},21078:function(X){"use strict";X.exports=C,C.displayName="vim",C.aliases=[];function C(h){h.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}},96198:function(X){"use strict";X.exports=C,C.displayName="visualBasic",C.aliases=[];function C(h){h.languages["visual-basic"]={comment:{pattern:/(?:[']|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},h.languages.vb=h.languages["visual-basic"],h.languages.vba=h.languages["visual-basic"]}},17723:function(X){"use strict";X.exports=C,C.displayName="warpscript",C.aliases=[];function C(h){h.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}},67771:function(X){"use strict";X.exports=C,C.displayName="wasm",C.aliases=[];function C(h){h.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}},30307:function(X){"use strict";X.exports=C,C.displayName="webIdl",C.aliases=[];function C(h){(function(v){var I=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,O="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+I+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,B={};v.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+I),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:B},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+O),lookbehind:!0,inside:B},{pattern:RegExp("("+/\bcallback\s+/.source+I+/\s*=\s*/.source+")"+O),lookbehind:!0,inside:B},{pattern:RegExp(/(\btypedef\b\s*)/.source+O),lookbehind:!0,inside:B},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+I),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+I),lookbehind:!0},RegExp(I+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+I),lookbehind:!0},{pattern:RegExp(O+"(?="+/\s*(?:\.{3}\s*)?/.source+I+/\s*[(),;=]/.source+")"),inside:B}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var G in v.languages["web-idl"])G!=="class-name"&&(B[G]=v.languages["web-idl"][G]);v.languages.webidl=v.languages["web-idl"]})(h)}},8921:function(X){"use strict";X.exports=C,C.displayName="wiki",C.aliases=[];function C(h){h.languages.wiki=h.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:h.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),h.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:h.languages.markup.tag.inside}}}})}},13429:function(X){"use strict";X.exports=C,C.displayName="wolfram",C.aliases=["mathematica","wl","nb"];function C(h){h.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\^|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},h.languages.mathematica=h.languages.wolfram,h.languages.wl=h.languages.wolfram,h.languages.nb=h.languages.wolfram}},65197:function(X){"use strict";X.exports=C,C.displayName="wren",C.aliases=[];function C(h){h.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},h.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:h.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}},88904:function(X){"use strict";X.exports=C,C.displayName="xeora",C.aliases=["xeoracube"];function C(h){(function(v){v.languages.xeora=v.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),v.languages.insertBefore("inside","punctuation",{variable:v.languages.xeora["function-inline"].inside.variable},v.languages.xeora["function-block"]),v.languages.xeoracube=v.languages.xeora})(h)}},35:function(X){"use strict";X.exports=C,C.displayName="xmlDoc",C.aliases=[];function C(h){(function(v){function I(F,M){v.languages[F]&&v.languages.insertBefore(F,"comment",{"doc-comment":M})}var O=v.languages.markup.tag,B={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:O}},G={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:O}};I("csharp",B),I("fsharp",B),I("vbnet",G)})(h)}},86095:function(X){"use strict";X.exports=C,C.displayName="xojo",C.aliases=[];function C(h){h.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}},76998:function(X){"use strict";X.exports=C,C.displayName="xquery",C.aliases=[];function C(h){(function(v){v.languages.xquery=v.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),v.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,v.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,v.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,v.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:v.languages.xquery,alias:"language-xquery"};var I=function(B){return typeof B=="string"?B:typeof B.content=="string"?B.content:B.content.map(I).join("")},O=function(B){for(var G=[],F=0;F<B.length;F++){var M=B[F],de=!1;if(typeof M!="string"&&(M.type==="tag"&&M.content[0]&&M.content[0].type==="tag"?M.content[0].content[0].content==="</"?G.length>0&&G[G.length-1].tagName===I(M.content[0].content[1])&&G.pop():M.content[M.content.length-1].content==="/>"||G.push({tagName:I(M.content[0].content[1]),openedBraces:0}):G.length>0&&M.type==="punctuation"&&M.content==="{"&&(!B[F+1]||B[F+1].type!=="punctuation"||B[F+1].content!=="{")&&(!B[F-1]||B[F-1].type!=="plain-text"||B[F-1].content!=="{")?G[G.length-1].openedBraces++:G.length>0&&G[G.length-1].openedBraces>0&&M.type==="punctuation"&&M.content==="}"?G[G.length-1].openedBraces--:M.type!=="comment"&&(de=!0)),(de||typeof M=="string")&&G.length>0&&G[G.length-1].openedBraces===0){var ae=I(M);F<B.length-1&&(typeof B[F+1]=="string"||B[F+1].type==="plain-text")&&(ae+=I(B[F+1]),B.splice(F+1,1)),F>0&&(typeof B[F-1]=="string"||B[F-1].type==="plain-text")&&(ae=I(B[F-1])+ae,B.splice(F-1,1),F--),/^\s+$/.test(ae)?B[F]=ae:B[F]=new v.Token("plain-text",ae,null,ae)}M.content&&typeof M.content!="string"&&O(M.content)}};v.hooks.add("after-tokenize",function(B){B.language==="xquery"&&O(B.tokens)})})(h)}},14409:function(X){"use strict";X.exports=C,C.displayName="yaml",C.aliases=["yml"];function C(h){(function(v){var I=/[*&][^\s[\]{},]+/,O=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,B="(?:"+O.source+"(?:[ ]+"+I.source+")?|"+I.source+"(?:[ ]+"+O.source+")?)",G=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),F=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function M(de,ae){ae=(ae||"").replace(/m/g,"")+"m";var te=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return B}).replace(/<<value>>/g,function(){return de});return RegExp(te,ae)}v.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return B})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return B}).replace(/<<key>>/g,function(){return"(?:"+G+"|"+F+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:M(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:M(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:M(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:M(F),lookbehind:!0,greedy:!0},number:{pattern:M(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:O,important:I,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},v.languages.yml=v.languages.yaml})(h)}},33460:function(X){"use strict";X.exports=C,C.displayName="yang",C.aliases=[];function C(h){h.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}},28108:function(X){"use strict";X.exports=C,C.displayName="zig",C.aliases=[];function C(h){(function(v){function I(ae){return function(){return ae}}var O=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,B="\\b(?!"+O.source+")(?!\\d)\\w+\\b",G=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,F=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*<ALIGN>|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(/<ALIGN>/g,I(G)),M=/(?:\bpromise\b|(?:\berror\.)?<ID>(?:\.<ID>)*(?!\s+<ID>))/.source.replace(/<ID>/g,I(B)),de="(?!\\s)(?:!?\\s*(?:"+F+"\\s*)*"+M+")+";v.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?[=;,)])|<TYPE>(?=\s*(?:<ALIGN>\s*)?\{)/.source.replace(/<TYPE>/g,I(de)).replace(/<ALIGN>/g,I(G))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?;)/.source.replace(/<TYPE>/g,I(de)).replace(/<ALIGN>/g,I(G))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:O,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},v.languages.zig["class-name"].forEach(function(ae){ae.inside===null&&(ae.inside=v.languages.zig)})})(h)}},92848:function(X,C){"use strict";var h;C.Q=B,h=G;var v="",I=" ",O=/[ \t\n\r\f]+/g;function B(F){var M=String(F||v).trim();return M===v?[]:M.split(O)}function G(F){return F.join(I).trim()}},77179:function(X,C,h){"use strict";var v=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}},I=v(h(58970)),O=h(39159);function B(G,F){var M={};return!G||typeof G!="string"||(0,I.default)(G,function(de,ae){de&&ae&&(M[(0,O.camelCase)(de,F)]=ae)}),M}B.default=B,X.exports=B},39159:function(X,C){"use strict";Object.defineProperty(C,"__esModule",{value:!0}),C.camelCase=void 0;var h=/^--[a-zA-Z0-9_-]+$/,v=/-([a-z])/g,I=/^[^-]+$/,O=/^-(webkit|moz|ms|o|khtml)-/,B=/^-(ms)-/,G=function(ae){return!ae||I.test(ae)||h.test(ae)},F=function(ae,te){return te.toUpperCase()},M=function(ae,te){return"".concat(te,"-")},de=function(ae,te){return te===void 0&&(te={}),G(ae)?ae:(ae=ae.toLowerCase(),te.reactCompat?ae=ae.replace(B,M):ae=ae.replace(O,M),ae.replace(v,F))};C.camelCase=de},58970:function(X,C,h){"use strict";var v=this&&this.__importDefault||function(B){return B&&B.__esModule?B:{default:B}};Object.defineProperty(C,"__esModule",{value:!0}),C.default=O;var I=v(h(93193));function O(B,G){var F=null;if(!B||typeof B!="string")return F;var M=(0,I.default)(B),de=typeof G=="function";return M.forEach(function(ae){if(ae.type==="declaration"){var te=ae.property,Ne=ae.value;de?G(te,Ne,ae):Ne&&(F=F||{},F[te]=Ne)}}),F}},97270:function(X){X.exports=h;var C=Object.prototype.hasOwnProperty;function h(){for(var v={},I=0;I<arguments.length;I++){var O=arguments[I];for(var B in O)C.call(O,B)&&(v[B]=O[B])}return v}},90302:function(X,C,h){"use strict";h.d(C,{ZP:function(){return pe}});const v=-1,I=0,O=1,B=2,G=3,F=4,M=5,de=6,ae=7,te=8,Ne=typeof self=="object"?self:globalThis,Ee=(ke,ee)=>{const Te=(Le,Je)=>(ke.set(Je,Le),Le),Me=Le=>{if(ke.has(Le))return ke.get(Le);const[Je,Ye]=ee[Le];switch(Je){case I:case v:return Te(Ye,Le);case O:{const ne=Te([],Le);for(const at of Ye)ne.push(Me(at));return ne}case B:{const ne=Te({},Le);for(const[at,Ge]of Ye)ne[Me(at)]=Me(Ge);return ne}case G:return Te(new Date(Ye),Le);case F:{const{source:ne,flags:at}=Ye;return Te(new RegExp(ne,at),Le)}case M:{const ne=Te(new Map,Le);for(const[at,Ge]of Ye)ne.set(Me(at),Me(Ge));return ne}case de:{const ne=Te(new Set,Le);for(const at of Ye)ne.add(Me(at));return ne}case ae:{const{name:ne,message:at}=Ye;return Te(new Ne[ne](at),Le)}case te:return Te(BigInt(Ye),Le);case"BigInt":return Te(Object(BigInt(Ye)),Le);case"ArrayBuffer":return Te(new Uint8Array(Ye).buffer,Ye);case"DataView":{const{buffer:ne}=new Uint8Array(Ye);return Te(new DataView(ne),Ye)}}return Te(new Ne[Je](Ye),Le)};return Me},Xe=ke=>Ee(new Map,ke)(0),Oe="",{toString:Ce}={},{keys:Ie}=Object,Re=ke=>{const ee=typeof ke;if(ee!=="object"||!ke)return[I,ee];const Te=Ce.call(ke).slice(8,-1);switch(Te){case"Array":return[O,Oe];case"Object":return[B,Oe];case"Date":return[G,Oe];case"RegExp":return[F,Oe];case"Map":return[M,Oe];case"Set":return[de,Oe];case"DataView":return[O,Te]}return Te.includes("Array")?[O,Te]:Te.includes("Error")?[ae,Te]:[B,Te]},fe=([ke,ee])=>ke===I&&(ee==="function"||ee==="symbol"),me=(ke,ee,Te,Me)=>{const Le=(Ye,ne)=>{const at=Me.push(Ye)-1;return Te.set(ne,at),at},Je=Ye=>{if(Te.has(Ye))return Te.get(Ye);let[ne,at]=Re(Ye);switch(ne){case I:{let Pt=Ye;switch(at){case"bigint":ne=te,Pt=Ye.toString();break;case"function":case"symbol":if(ke)throw new TypeError("unable to serialize "+at);Pt=null;break;case"undefined":return Le([v],Ye)}return Le([ne,Pt],Ye)}case O:{if(at){let kt=Ye;return at==="DataView"?kt=new Uint8Array(Ye.buffer):at==="ArrayBuffer"&&(kt=new Uint8Array(Ye)),Le([at,[...kt]],Ye)}const Pt=[],gt=Le([ne,Pt],Ye);for(const kt of Ye)Pt.push(Je(kt));return gt}case B:{if(at)switch(at){case"BigInt":return Le([at,Ye.toString()],Ye);case"Boolean":case"Number":case"String":return Le([at,Ye.valueOf()],Ye)}if(ee&&"toJSON"in Ye)return Je(Ye.toJSON());const Pt=[],gt=Le([ne,Pt],Ye);for(const kt of Ie(Ye))(ke||!fe(Re(Ye[kt])))&&Pt.push([Je(kt),Je(Ye[kt])]);return gt}case G:return Le([ne,Ye.toISOString()],Ye);case F:{const{source:Pt,flags:gt}=Ye;return Le([ne,{source:Pt,flags:gt}],Ye)}case M:{const Pt=[],gt=Le([ne,Pt],Ye);for(const[kt,Ct]of Ye)(ke||!(fe(Re(kt))||fe(Re(Ct))))&&Pt.push([Je(kt),Je(Ct)]);return gt}case de:{const Pt=[],gt=Le([ne,Pt],Ye);for(const kt of Ye)(ke||!fe(Re(kt)))&&Pt.push(Je(kt));return gt}}const{message:Ge}=Ye;return Le([ne,{name:at,message:Ge}],Ye)};return Je},ye=(ke,{json:ee,lossy:Te}={})=>{const Me=[];return me(!(ee||Te),!!ee,new Map,Me)(ke),Me};var pe=typeof structuredClone=="function"?(ke,ee)=>ee&&("json"in ee||"lossy"in ee)?Xe(ye(ke,ee)):structuredClone(ke):(ke,ee)=>Xe(ye(ke,ee))},11630:function(X,C,h){"use strict";h.d(C,{P:function(){return I},Q:function(){return v}});function v(O){const B=[],G=String(O||"");let F=G.indexOf(","),M=0,de=!1;for(;!de;){F===-1&&(F=G.length,de=!0);const ae=G.slice(M,F).trim();(ae||!de)&&B.push(ae),M=F+1,F=G.indexOf(",",M)}return B}function I(O,B){const G=B||{};return(O[O.length-1]===""?[...O,""]:O).join((G.padRight?" ":"")+","+(G.padLeft===!1?"":" ")).trim()}},87342:function(X,C,h){"use strict";h.d(C,{ok:function(){return O},t1:function(){return B}});function v(G){return G}function I(){}function O(){}function B(){}},81994:function(X,C,h){"use strict";h.d(C,{h:function(){return Ie},s:function(){return Re}});var v=h(58222),I=h(11630);const O=/[#.]/g;function B(fe,me){const ye=fe||"",pe={};let ke=0,ee,Te;for(;ke<ye.length;){O.lastIndex=ke;const Me=O.exec(ye),Le=ye.slice(ke,Me?Me.index:ye.length);Le&&(ee?ee==="#"?pe.id=Le:Array.isArray(pe.className)?pe.className.push(Le):pe.className=[Le]:Te=Le,ke+=Le.length),Me&&(ee=Me[0],ke++)}return{type:"element",tagName:Te||me||"div",properties:pe,children:[]}}var G=h(84837),F=h(64326),M=h(71523);function de(fe,me,ye){const pe=ye?Oe(ye):void 0;function ke(ee,Te,...Me){let Le;if(ee==null){Le={type:"root",children:[]};const Je=Te;Me.unshift(Je)}else{Le=B(ee,me);const Je=Le.tagName.toLowerCase(),Ye=pe?pe.get(Je):void 0;if(Le.tagName=Ye||Je,ae(Te))Me.unshift(Te);else for(const[ne,at]of Object.entries(Te))te(fe,Le.properties,ne,at)}for(const Je of Me)Ne(Le.children,Je);return Le.type==="element"&&Le.tagName==="template"&&(Le.content={type:"root",children:Le.children},Le.children=[]),Le}return ke}function ae(fe){if(fe===null||typeof fe!="object"||Array.isArray(fe))return!0;if(typeof fe.type!="string")return!1;const me=fe,ye=Object.keys(fe);for(const pe of ye){const ke=me[pe];if(ke&&typeof ke=="object"){if(!Array.isArray(ke))return!0;const ee=ke;for(const Te of ee)if(typeof Te!="number"&&typeof Te!="string")return!0}}return!!("children"in fe&&Array.isArray(fe.children))}function te(fe,me,ye,pe){const ke=(0,G.s)(fe,ye);let ee;if(pe!=null){if(typeof pe=="number"){if(Number.isNaN(pe))return;ee=pe}else typeof pe=="boolean"?ee=pe:typeof pe=="string"?ke.spaceSeparated?ee=(0,M.Q)(pe):ke.commaSeparated?ee=(0,I.Q)(pe):ke.commaOrSpaceSeparated?ee=(0,M.Q)((0,I.Q)(pe).join(" ")):ee=Ee(ke,ke.property,pe):Array.isArray(pe)?ee=[...pe]:ee=ke.property==="style"?Xe(pe):String(pe);if(Array.isArray(ee)){const Te=[];for(const Me of ee)Te.push(Ee(ke,ke.property,Me));ee=Te}ke.property==="className"&&Array.isArray(me.className)&&(ee=me.className.concat(ee)),me[ke.property]=ee}}function Ne(fe,me){if(me!=null)if(typeof me=="number"||typeof me=="string")fe.push({type:"text",value:String(me)});else if(Array.isArray(me))for(const ye of me)Ne(fe,ye);else if(typeof me=="object"&&"type"in me)me.type==="root"?Ne(fe,me.children):fe.push(me);else throw new Error("Expected node, nodes, or string, got `"+me+"`")}function Ee(fe,me,ye){if(typeof ye=="string"){if(fe.number&&ye&&!Number.isNaN(Number(ye)))return Number(ye);if((fe.boolean||fe.overloadedBoolean)&&(ye===""||(0,F.F)(ye)===(0,F.F)(me)))return!0}return ye}function Xe(fe){const me=[];for(const[ye,pe]of Object.entries(fe))me.push([ye,pe].join(": "));return me.join("; ")}function Oe(fe){const me=new Map;for(const ye of fe)me.set(ye.toLowerCase(),ye);return me}const Ce=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","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","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],Ie=de(v.dy,"div"),Re=de(v.YP,"g",Ce)},26735:function(X,C,h){"use strict";h.d(C,{f:function(){return I}});var v=h(80722);function I(O,B,G,F){const M=F?F-1:Number.POSITIVE_INFINITY;let de=0;return ae;function ae(Ne){return(0,v.xz)(Ne)?(O.enter(G),te(Ne)):B(Ne)}function te(Ne){return(0,v.xz)(Ne)&&de++<M?(O.consume(Ne),te):(O.exit(G),B(Ne))}}},80722:function(X,C,h){"use strict";h.d(C,{AF:function(){return F},Av:function(){return B},B8:function(){return Ee},Ch:function(){return de},H$:function(){return I},Xh:function(){return Ne},jv:function(){return v},n9:function(){return O},pY:function(){return G},sR:function(){return M},xz:function(){return te},z3:function(){return ae}});const v=Xe(/[A-Za-z]/),I=Xe(/[\dA-Za-z]/),O=Xe(/[#-'*+\--9=?A-Z^-~]/);function B(Oe){return Oe!==null&&(Oe<32||Oe===127)}const G=Xe(/\d/),F=Xe(/[\dA-Fa-f]/),M=Xe(/[!-/:-@[-`{-~]/);function de(Oe){return Oe!==null&&Oe<-2}function ae(Oe){return Oe!==null&&(Oe<0||Oe===32)}function te(Oe){return Oe===-2||Oe===-1||Oe===32}const Ne=Xe(new RegExp("\\p{P}|\\p{S}","u")),Ee=Xe(/\s/);function Xe(Oe){return Ce;function Ce(Ie){return Ie!==null&&Ie>-1&&Oe.test(String.fromCharCode(Ie))}}},58222:function(X,C,h){"use strict";h.d(C,{dy:function(){return Ce},YP:function(){return Ie}});class v{constructor(fe,me,ye){this.normal=me,this.property=fe,ye&&(this.space=ye)}}v.prototype.normal={},v.prototype.property={},v.prototype.space=void 0;function I(Re,fe){const me={},ye={};for(const pe of Re)Object.assign(me,pe.property),Object.assign(ye,pe.normal);return new v(me,ye,fe)}var O=h(64326),B=h(95516);function G(Re){const fe={},me={};for(const[ye,pe]of Object.entries(Re.properties)){const ke=new B.I(ye,Re.transform(Re.attributes||{},ye),pe,Re.space);Re.mustUseProperty&&Re.mustUseProperty.includes(ye)&&(ke.mustUseProperty=!0),fe[ye]=ke,me[(0,O.F)(ye)]=ye,me[(0,O.F)(ke.attribute)]=ye}return new v(fe,me,Re.space)}var F=h(56488);const M=G({properties:{ariaActiveDescendant:null,ariaAtomic:F.booleanish,ariaAutoComplete:null,ariaBusy:F.booleanish,ariaChecked:F.booleanish,ariaColCount:F.number,ariaColIndex:F.number,ariaColSpan:F.number,ariaControls:F.spaceSeparated,ariaCurrent:null,ariaDescribedBy:F.spaceSeparated,ariaDetails:null,ariaDisabled:F.booleanish,ariaDropEffect:F.spaceSeparated,ariaErrorMessage:null,ariaExpanded:F.booleanish,ariaFlowTo:F.spaceSeparated,ariaGrabbed:F.booleanish,ariaHasPopup:null,ariaHidden:F.booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:F.spaceSeparated,ariaLevel:F.number,ariaLive:null,ariaModal:F.booleanish,ariaMultiLine:F.booleanish,ariaMultiSelectable:F.booleanish,ariaOrientation:null,ariaOwns:F.spaceSeparated,ariaPlaceholder:null,ariaPosInSet:F.number,ariaPressed:F.booleanish,ariaReadOnly:F.booleanish,ariaRelevant:null,ariaRequired:F.booleanish,ariaRoleDescription:F.spaceSeparated,ariaRowCount:F.number,ariaRowIndex:F.number,ariaRowSpan:F.number,ariaSelected:F.booleanish,ariaSetSize:F.number,ariaSort:null,ariaValueMax:F.number,ariaValueMin:F.number,ariaValueNow:F.number,ariaValueText:null,role:null},transform(Re,fe){return fe==="role"?fe:"aria-"+fe.slice(4).toLowerCase()}});function de(Re,fe){return fe in Re?Re[fe]:fe}function ae(Re,fe){return de(Re,fe.toLowerCase())}const te=G({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:F.commaSeparated,acceptCharset:F.spaceSeparated,accessKey:F.spaceSeparated,action:null,allow:null,allowFullScreen:F.boolean,allowPaymentRequest:F.boolean,allowUserMedia:F.boolean,alt:null,as:null,async:F.boolean,autoCapitalize:null,autoComplete:F.spaceSeparated,autoFocus:F.boolean,autoPlay:F.boolean,blocking:F.spaceSeparated,capture:null,charSet:null,checked:F.boolean,cite:null,className:F.spaceSeparated,cols:F.number,colSpan:null,content:null,contentEditable:F.booleanish,controls:F.boolean,controlsList:F.spaceSeparated,coords:F.number|F.commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:F.boolean,defer:F.boolean,dir:null,dirName:null,disabled:F.boolean,download:F.overloadedBoolean,draggable:F.booleanish,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:F.boolean,formTarget:null,headers:F.spaceSeparated,height:F.number,hidden:F.boolean,high:F.number,href:null,hrefLang:null,htmlFor:F.spaceSeparated,httpEquiv:F.spaceSeparated,id:null,imageSizes:null,imageSrcSet:null,inert:F.boolean,inputMode:null,integrity:null,is:null,isMap:F.boolean,itemId:null,itemProp:F.spaceSeparated,itemRef:F.spaceSeparated,itemScope:F.boolean,itemType:F.spaceSeparated,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:F.boolean,low:F.number,manifest:null,max:null,maxLength:F.number,media:null,method:null,min:null,minLength:F.number,multiple:F.boolean,muted:F.boolean,name:null,nonce:null,noModule:F.boolean,noValidate:F.boolean,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:F.boolean,optimum:F.number,pattern:null,ping:F.spaceSeparated,placeholder:null,playsInline:F.boolean,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:F.boolean,referrerPolicy:null,rel:F.spaceSeparated,required:F.boolean,reversed:F.boolean,rows:F.number,rowSpan:F.number,sandbox:F.spaceSeparated,scope:null,scoped:F.boolean,seamless:F.boolean,selected:F.boolean,shadowRootClonable:F.boolean,shadowRootDelegatesFocus:F.boolean,shadowRootMode:null,shape:null,size:F.number,sizes:null,slot:null,span:F.number,spellCheck:F.booleanish,src:null,srcDoc:null,srcLang:null,srcSet:null,start:F.number,step:null,style:null,tabIndex:F.number,target:null,title:null,translate:null,type:null,typeMustMatch:F.boolean,useMap:null,value:F.booleanish,width:F.number,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:F.spaceSeparated,axis:null,background:null,bgColor:null,border:F.number,borderColor:null,bottomMargin:F.number,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:F.boolean,declare:F.boolean,event:null,face:null,frame:null,frameBorder:null,hSpace:F.number,leftMargin:F.number,link:null,longDesc:null,lowSrc:null,marginHeight:F.number,marginWidth:F.number,noResize:F.boolean,noHref:F.boolean,noShade:F.boolean,noWrap:F.boolean,object:null,profile:null,prompt:null,rev:null,rightMargin:F.number,rules:null,scheme:null,scrolling:F.booleanish,standby:null,summary:null,text:null,topMargin:F.number,valueType:null,version:null,vAlign:null,vLink:null,vSpace:F.number,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:F.boolean,disableRemotePlayback:F.boolean,prefix:null,property:null,results:F.number,security:null,unselectable:null},space:"html",transform:ae}),Ne=G({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:F.commaOrSpaceSeparated,accentHeight:F.number,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:F.number,amplitude:F.number,arabicForm:null,ascent:F.number,attributeName:null,attributeType:null,azimuth:F.number,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:F.number,by:null,calcMode:null,capHeight:F.number,className:F.spaceSeparated,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:F.number,diffuseConstant:F.number,direction:null,display:null,dur:null,divisor:F.number,dominantBaseline:null,download:F.boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:F.number,enableBackground:null,end:null,event:null,exponent:F.number,externalResourcesRequired:null,fill:null,fillOpacity:F.number,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:F.commaSeparated,g2:F.commaSeparated,glyphName:F.commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:F.number,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:F.number,horizOriginX:F.number,horizOriginY:F.number,id:null,ideographic:F.number,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:F.number,k:F.number,k1:F.number,k2:F.number,k3:F.number,k4:F.number,kernelMatrix:F.commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:F.number,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:F.number,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:F.number,overlineThickness:F.number,paintOrder:null,panose1:null,path:null,pathLength:F.number,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:F.spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:F.number,pointsAtY:F.number,pointsAtZ:F.number,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:F.commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:F.commaOrSpaceSeparated,rev:F.commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:F.commaOrSpaceSeparated,requiredFeatures:F.commaOrSpaceSeparated,requiredFonts:F.commaOrSpaceSeparated,requiredFormats:F.commaOrSpaceSeparated,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:F.number,specularExponent:F.number,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:F.number,strikethroughThickness:F.number,string:null,stroke:null,strokeDashArray:F.commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:F.number,strokeOpacity:F.number,strokeWidth:null,style:null,surfaceScale:F.number,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:F.commaOrSpaceSeparated,tabIndex:F.number,tableValues:null,target:null,targetX:F.number,targetY:F.number,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:F.commaOrSpaceSeparated,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:F.number,underlineThickness:F.number,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:F.number,values:null,vAlphabetic:F.number,vMathematical:F.number,vectorEffect:null,vHanging:F.number,vIdeographic:F.number,version:null,vertAdvY:F.number,vertOriginX:F.number,vertOriginY:F.number,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:F.number,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:de}),Ee=G({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(Re,fe){return"xlink:"+fe.slice(5).toLowerCase()}}),Xe=G({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ae}),Oe=G({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(Re,fe){return"xml:"+fe.slice(3).toLowerCase()}}),Ce=I([M,te,Ee,Xe,Oe],"html"),Ie=I([M,Ne,Ee,Xe,Oe],"svg")},84837:function(X,C,h){"use strict";h.d(C,{s:function(){return M}});var v=h(95516),I=h(56038),O=h(64326);const B=/[A-Z]/g,G=/-[a-z]/g,F=/^data[-\w.:]+$/i;function M(te,Ne){const Ee=(0,O.F)(Ne);let Xe=Ne,Oe=I.k;if(Ee in te.normal)return te.property[te.normal[Ee]];if(Ee.length>4&&Ee.slice(0,4)==="data"&&F.test(Ne)){if(Ne.charAt(4)==="-"){const Ce=Ne.slice(5).replace(G,ae);Xe="data"+Ce.charAt(0).toUpperCase()+Ce.slice(1)}else{const Ce=Ne.slice(4);if(!G.test(Ce)){let Ie=Ce.replace(B,de);Ie.charAt(0)!=="-"&&(Ie="-"+Ie),Ne="data"+Ie}}Oe=v.I}return new Oe(Xe,Ne)}function de(te){return"-"+te.toLowerCase()}function ae(te){return te.charAt(1).toUpperCase()}},64326:function(X,C,h){"use strict";h.d(C,{F:function(){return v}});function v(I){return I.toLowerCase()}},95516:function(X,C,h){"use strict";h.d(C,{I:function(){return B}});var v=h(56038),I=h(56488);const O=Object.keys(I);class B extends v.k{constructor(M,de,ae,te){let Ne=-1;if(super(M,de),G(this,"space",te),typeof ae=="number")for(;++Ne<O.length;){const Ee=O[Ne];G(this,O[Ne],(ae&I[Ee])===I[Ee])}}}B.prototype.defined=!0;function G(F,M,de){de&&(F[M]=de)}},56038:function(X,C,h){"use strict";h.d(C,{k:function(){return v}});class v{constructor(O,B){this.attribute=B,this.property=O}}v.prototype.attribute="",v.prototype.booleanish=!1,v.prototype.boolean=!1,v.prototype.commaOrSpaceSeparated=!1,v.prototype.commaSeparated=!1,v.prototype.defined=!1,v.prototype.mustUseProperty=!1,v.prototype.number=!1,v.prototype.overloadedBoolean=!1,v.prototype.property="",v.prototype.spaceSeparated=!1,v.prototype.space=void 0},56488:function(X,C,h){"use strict";h.r(C),h.d(C,{boolean:function(){return I},booleanish:function(){return O},commaOrSpaceSeparated:function(){return de},commaSeparated:function(){return M},number:function(){return G},overloadedBoolean:function(){return B},spaceSeparated:function(){return F}});let v=0;const I=ae(),O=ae(),B=ae(),G=ae(),F=ae(),M=ae(),de=ae();function ae(){return ny(2,++v)}},72719:function(X,C,h){"use strict";h.d(C,{UG:function(){return ln}});var v={};h.r(v),h.d(v,{attentionMarkers:function(){return ga},contentInitial:function(){return xa},disable:function(){return Ja},document:function(){return co},flow:function(){return wn},flowInitial:function(){return xr},insideSpan:function(){return Wo},string:function(){return ar},text:function(){return mi}});var I=h(87342),O=h(11630);const B=/[$_\p{ID_Start}]/u,G=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,F=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,M=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,de=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ae={};function te(E){return E?B.test(String.fromCodePoint(E)):!1}function Ne(E,P){const J=(P||ae).jsx?F:G;return E?J.test(String.fromCodePoint(E)):!1}function Ee(E,P){return((P||ae).jsx?de:M).test(E)}const Xe=/[ \t\n\f\r]/g;function Oe(E){return typeof E=="object"?E.type==="text"?Ce(E.value):!1:Ce(E)}function Ce(E){return E.replace(Xe,"")===""}var Ie=h(58222),Re=h(84837);const fe={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var me=h(71523),ye=h(77179),pe=h(17970);function ke(E){return!E||typeof E!="object"?"":"position"in E||"type"in E?Te(E.position):"start"in E||"end"in E?Te(E):"line"in E||"column"in E?ee(E):""}function ee(E){return Me(E&&E.line)+":"+Me(E&&E.column)}function Te(E){return ee(E&&E.start)+"-"+ee(E&&E.end)}function Me(E){return E&&typeof E=="number"?E:1}class Le extends Error{constructor(P,W,J){super(),typeof W=="string"&&(J=W,W=void 0);let ge="",Ae={},He=!1;if(W&&("line"in W&&"column"in W?Ae={place:W}:"start"in W&&"end"in W?Ae={place:W}:"type"in W?Ae={ancestors:[W],place:W.position}:Ae=Po({},W)),typeof P=="string"?ge=P:!Ae.cause&&P&&(He=!0,ge=P.message,Ae.cause=P),!Ae.ruleId&&!Ae.source&&typeof J=="string"){const jt=J.indexOf(":");jt===-1?Ae.ruleId=J:(Ae.source=J.slice(0,jt),Ae.ruleId=J.slice(jt+1))}if(!Ae.place&&Ae.ancestors&&Ae.ancestors){const jt=Ae.ancestors[Ae.ancestors.length-1];jt&&(Ae.place=jt.position)}const it=Ae.place&&"start"in Ae.place?Ae.place.start:Ae.place;this.ancestors=Ae.ancestors||void 0,this.cause=Ae.cause||void 0,this.column=it?it.column:void 0,this.fatal=void 0,this.file,this.message=ge,this.line=it?it.line:void 0,this.name=ke(Ae.place)||"1:1",this.place=Ae.place||void 0,this.reason=this.message,this.ruleId=Ae.ruleId||void 0,this.source=Ae.source||void 0,this.stack=He&&Ae.cause&&typeof Ae.cause.stack=="string"?Ae.cause.stack:"",this.actual,this.expected,this.note,this.url}}Le.prototype.file="",Le.prototype.name="",Le.prototype.reason="",Le.prototype.message="",Le.prototype.stack="",Le.prototype.column=void 0,Le.prototype.line=void 0,Le.prototype.ancestors=void 0,Le.prototype.cause=void 0,Le.prototype.fatal=void 0,Le.prototype.place=void 0,Le.prototype.ruleId=void 0,Le.prototype.source=void 0;const Je={}.hasOwnProperty,Ye=new Map,ne=/[A-Z]/g,at=new Set(["table","tbody","thead","tfoot","tr"]),Ge=new Set(["td","th"]),Pt="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function gt(E,P){if(!P||P.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const W=P.filePath||void 0;let J;if(P.development){if(typeof P.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");J=Ft(W,P.jsxDEV)}else{if(typeof P.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof P.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");J=sn(W,P.jsx,P.jsxs)}const ge={Fragment:P.Fragment,ancestors:[],components:P.components||{},create:J,elementAttributeNameCase:P.elementAttributeNameCase||"react",evaluater:P.createEvaluater?P.createEvaluater():void 0,filePath:W,ignoreInvalidStyle:P.ignoreInvalidStyle||!1,passKeys:P.passKeys!==!1,passNode:P.passNode||!1,schema:P.space==="svg"?Ie.YP:Ie.dy,stylePropertyNameCase:P.stylePropertyNameCase||"dom",tableCellAlignToStyle:P.tableCellAlignToStyle!==!1},Ae=kt(ge,E,void 0);return Ae&&typeof Ae!="string"?Ae:ge.create(E,ge.Fragment,{children:Ae||void 0},void 0)}function kt(E,P,W){if(P.type==="element")return Ct(E,P,W);if(P.type==="mdxFlowExpression"||P.type==="mdxTextExpression")return Cn(E,P);if(P.type==="mdxJsxFlowElement"||P.type==="mdxJsxTextElement")return le(E,P,W);if(P.type==="mdxjsEsm")return Qe(E,P);if(P.type==="root")return ce(E,P,W);if(P.type==="text")return Ht(E,P)}function Ct(E,P,W){const J=E.schema;let ge=J;P.tagName.toLowerCase()==="svg"&&J.space==="html"&&(ge=Ie.YP,E.schema=ge),E.ancestors.push(P);const Ae=In(E,P.tagName,!1),He=oi(E,P);let it=ni(E,P);return at.has(P.tagName)&&(it=it.filter(function(jt){return typeof jt=="string"?!Oe(jt):!0})),Vt(E,He,Ae,P),St(He,it),E.ancestors.pop(),E.schema=J,E.create(P,Ae,He,W)}function Cn(E,P){if(P.data&&P.data.estree&&E.evaluater){const J=P.data.estree.body[0];return(0,I.ok)(J.type==="ExpressionStatement"),E.evaluater.evaluateExpression(J.expression)}re(E,P.position)}function Qe(E,P){if(P.data&&P.data.estree&&E.evaluater)return E.evaluater.evaluateProgram(P.data.estree);re(E,P.position)}function le(E,P,W){const J=E.schema;let ge=J;P.name==="svg"&&J.space==="html"&&(ge=Ie.YP,E.schema=ge),E.ancestors.push(P);const Ae=P.name===null?E.Fragment:In(E,P.name,!0),He=On(E,P),it=ni(E,P);return Vt(E,He,Ae,P),St(He,it),E.ancestors.pop(),E.schema=J,E.create(P,Ae,He,W)}function ce(E,P,W){const J={};return St(J,ni(E,P)),E.create(P,E.Fragment,J,W)}function Ht(E,P){return P.value}function Vt(E,P,W,J){typeof W!="string"&&W!==E.Fragment&&E.passNode&&(P.node=J)}function St(E,P){if(P.length>0){const W=P.length>1?P:P[0];W&&(E.children=W)}}function sn(E,P,W){return J;function J(ge,Ae,He,it){const Qt=Array.isArray(He.children)?W:P;return it?Qt(Ae,He,it):Qt(Ae,He)}}function Ft(E,P){return W;function W(J,ge,Ae,He){const it=Array.isArray(Ae.children),jt=(0,pe.Pk)(J);return P(ge,Ae,He,it,{columnNumber:jt?jt.column-1:void 0,fileName:E,lineNumber:jt?jt.line:void 0},void 0)}}function oi(E,P){const W={};let J,ge;for(ge in P.properties)if(ge!=="children"&&Je.call(P.properties,ge)){const Ae=Jn(E,ge,P.properties[ge]);if(Ae){const[He,it]=Ae;E.tableCellAlignToStyle&&He==="align"&&typeof it=="string"&&Ge.has(P.tagName)?J=it:W[He]=it}}if(J){const Ae=W.style||(W.style={});Ae[E.stylePropertyNameCase==="css"?"text-align":"textAlign"]=J}return W}function On(E,P){const W={};for(const J of P.attributes)if(J.type==="mdxJsxExpressionAttribute")if(J.data&&J.data.estree&&E.evaluater){const Ae=J.data.estree.body[0];(0,I.ok)(Ae.type==="ExpressionStatement");const He=Ae.expression;(0,I.ok)(He.type==="ObjectExpression");const it=He.properties[0];(0,I.ok)(it.type==="SpreadElement"),Object.assign(W,E.evaluater.evaluateExpression(it.argument))}else re(E,P.position);else{const ge=J.name;let Ae;if(J.value&&typeof J.value=="object")if(J.value.data&&J.value.data.estree&&E.evaluater){const it=J.value.data.estree.body[0];(0,I.ok)(it.type==="ExpressionStatement"),Ae=E.evaluater.evaluateExpression(it.expression)}else re(E,P.position);else Ae=J.value===null?!0:J.value;W[ge]=Ae}return W}function ni(E,P){const W=[];let J=-1;const ge=E.passKeys?new Map:Ye;for(;++J<P.children.length;){const Ae=P.children[J];let He;if(E.passKeys){const jt=Ae.type==="element"?Ae.tagName:Ae.type==="mdxJsxFlowElement"||Ae.type==="mdxJsxTextElement"?Ae.name:void 0;if(jt){const Qt=ge.get(jt)||0;He=jt+"-"+Qt,ge.set(jt,Qt+1)}}const it=kt(E,Ae,He);it!==void 0&&W.push(it)}return W}function Jn(E,P,W){const J=(0,Re.s)(E.schema,P);if(!(W==null||typeof W=="number"&&Number.isNaN(W))){if(Array.isArray(W)&&(W=J.commaSeparated?(0,O.P)(W):(0,me.P)(W)),J.property==="style"){let ge=typeof W=="object"?W:Mn(E,String(W));return E.stylePropertyNameCase==="css"&&(ge=z(ge)),["style",ge]}return[E.elementAttributeNameCase==="react"&&J.space?fe[J.property]||J.property:J.attribute,W]}}function Mn(E,P){try{return ye(P,{reactCompat:!0})}catch(W){if(E.ignoreInvalidStyle)return{};const J=W,ge=new Le("Cannot parse `style` attribute",{ancestors:E.ancestors,cause:J,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw ge.file=E.filePath||void 0,ge.url=Pt+"#cannot-parse-style-attribute",ge}}function In(E,P,W){let J;if(!W)J={type:"Literal",value:P};else if(P.includes(".")){const ge=P.split(".");let Ae=-1,He;for(;++Ae<ge.length;){const it=Ee(ge[Ae])?{type:"Identifier",name:ge[Ae]}:{type:"Literal",value:ge[Ae]};He=He?{type:"MemberExpression",object:He,property:it,computed:!!(Ae&&it.type==="Literal"),optional:!1}:it}(0,I.ok)(He,"always a result"),J=He}else J=Ee(P)&&!/^[a-z]/.test(P)?{type:"Identifier",name:P}:{type:"Literal",value:P};if(J.type==="Literal"){const ge=J.value;return Je.call(E.components,ge)?E.components[ge]:ge}if(E.evaluater)return E.evaluater.evaluateExpression(J);re(E)}function re(E,P){const W=new Le("Cannot handle MDX estrees without `createEvaluater`",{ancestors:E.ancestors,place:P,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw W.file=E.filePath||void 0,W.url=Pt+"#cannot-handle-mdx-estrees-without-createevaluater",W}function z(E){const P={};let W;for(W in E)Je.call(E,W)&&(P[k(W)]=E[W]);return P}function k(E){let P=E.replace(ne,j);return P.slice(0,3)==="ms-"&&(P="-"+P),P}function j(E){return"-"+E.toLowerCase()}const Q={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var T=h(37712),_e=h(59301);const It={};function $e(E,P){const W=P||It,J=typeof W.includeImageAlt=="boolean"?W.includeImageAlt:!0,ge=typeof W.includeHtml=="boolean"?W.includeHtml:!0;return Pe(E,J,ge)}function Pe(E,P,W){if(ut(E)){if("value"in E)return E.type==="html"&&!W?"":E.value;if(P&&"alt"in E&&E.alt)return E.alt;if("children"in E)return vt(E.children,P,W)}return Array.isArray(E)?vt(E,P,W):""}function vt(E,P,W){const J=[];let ge=-1;for(;++ge<E.length;)J[ge]=Pe(E[ge],P,W);return J.join("")}function ut(E){return!!(E&&typeof E=="object")}function tt(E,P,W,J){const ge=E.length;let Ae=0,He;if(P<0?P=-P>ge?0:ge+P:P=P>ge?ge:P,W=W>0?W:0,J.length<1e4)He=Array.from(J),He.unshift(P,W),E.splice(...He);else for(W&&E.splice(P,W);Ae<J.length;)He=J.slice(Ae,Ae+1e4),He.unshift(P,0),E.splice(...He),Ae+=1e4,P+=1e4}function Et(E,P){return E.length>0?(tt(E,E.length,0,P),E):P}class pn{constructor(P){this.left=P?[...P]:[],this.right=[]}get(P){if(P<0||P>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+P+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return P<this.left.length?this.left[P]:this.right[this.right.length-P+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(P,W){const J=W==null?Number.POSITIVE_INFINITY:W;return J<this.left.length?this.left.slice(P,J):P>this.left.length?this.right.slice(this.right.length-J+this.left.length,this.right.length-P+this.left.length).reverse():this.left.slice(P).concat(this.right.slice(this.right.length-J+this.left.length).reverse())}splice(P,W,J){const ge=W||0;this.setCursor(Math.trunc(P));const Ae=this.right.splice(this.right.length-ge,Number.POSITIVE_INFINITY);return J&&nn(this.left,J),Ae.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(P){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(P)}pushMany(P){this.setCursor(Number.POSITIVE_INFINITY),nn(this.left,P)}unshift(P){this.setCursor(0),this.right.push(P)}unshiftMany(P){this.setCursor(0),nn(this.right,P.reverse())}setCursor(P){if(!(P===this.left.length||P>this.left.length&&this.right.length===0||P<0&&this.left.length===0))if(P<this.left.length){const W=this.left.splice(P,Number.POSITIVE_INFINITY);nn(this.right,W.reverse())}else{const W=this.right.splice(this.left.length+this.right.length-P,Number.POSITIVE_INFINITY);nn(this.left,W.reverse())}}}function nn(E,P){let W=0;if(P.length<1e4)E.push(...P);else for(;W<P.length;)E.push(...P.slice(W,W+1e4)),W+=1e4}function Kt(E){const P={};let W=-1,J,ge,Ae,He,it,jt,Qt;const bt=new pn(E);for(;++W<bt.length;){for(;W in P;)W=P[W];if(J=bt.get(W),W&&J[1].type==="chunkFlow"&&bt.get(W-1)[1].type==="listItemPrefix"&&(jt=J[1]._tokenizer.events,Ae=0,Ae<jt.length&&jt[Ae][1].type==="lineEndingBlank"&&(Ae+=2),Ae<jt.length&&jt[Ae][1].type==="content"))for(;++Ae<jt.length&&jt[Ae][1].type!=="content";)jt[Ae][1].type==="chunkText"&&(jt[Ae][1]._isInFirstContentOfListItem=!0,Ae++);if(J[0]==="enter")J[1].contentType&&(Object.assign(P,hn(bt,W)),W=P[W],Qt=!0);else if(J[1]._container){for(Ae=W,ge=void 0;Ae--;)if(He=bt.get(Ae),He[1].type==="lineEnding"||He[1].type==="lineEndingBlank")He[0]==="enter"&&(ge&&(bt.get(ge)[1].type="lineEndingBlank"),He[1].type="lineEnding",ge=Ae);else if(!(He[1].type==="linePrefix"||He[1].type==="listItemIndent"))break;ge&&(J[1].end=Po({},bt.get(ge)[1].start),it=bt.slice(ge,W),it.unshift(J),bt.splice(ge,W-ge+1,it))}}return tt(E,0,Number.POSITIVE_INFINITY,bt.slice(0)),!Qt}function hn(E,P){const W=E.get(P)[1],J=E.get(P)[2];let ge=P-1;const Ae=[];let He=W._tokenizer;He||(He=J.parser[W.contentType](W.start),W._contentTypeTextTrailing&&(He._contentTypeTextTrailing=!0));const it=He.events,jt=[],Qt={};let bt,en,Gt=-1,wt=W,ii=0,ki=0;const ji=[ki];for(;wt;){for(;E.get(++ge)[1]!==wt;);Ae.push(ge),wt._tokenizer||(bt=J.sliceStream(wt),wt.next||bt.push(null),en&&He.defineSkip(wt.start),wt._isInFirstContentOfListItem&&(He._gfmTasklistFirstContentOfListItem=!0),He.write(bt),wt._isInFirstContentOfListItem&&(He._gfmTasklistFirstContentOfListItem=void 0)),en=wt,wt=wt.next}for(wt=W;++Gt<it.length;)it[Gt][0]==="exit"&&it[Gt-1][0]==="enter"&&it[Gt][1].type===it[Gt-1][1].type&&it[Gt][1].start.line!==it[Gt][1].end.line&&(ki=Gt+1,ji.push(ki),wt._tokenizer=void 0,wt.previous=void 0,wt=wt.next);for(He.events=[],wt?(wt._tokenizer=void 0,wt.previous=void 0):ji.pop(),Gt=ji.length;Gt--;){const si=it.slice(ji[Gt],ji[Gt+1]),vi=Ae.pop();jt.push([vi,vi+si.length-1]),E.splice(vi,2,si)}for(jt.reverse(),Gt=-1;++Gt<jt.length;)Qt[ii+jt[Gt][0]]=ii+jt[Gt][1],ii+=jt[Gt][1]-jt[Gt][0]-1;return Qt}function an(E){for(;!Kt(E););return E}const et={}.hasOwnProperty;function zt(E){const P={};let W=-1;for(;++W<E.length;)dn(P,E[W]);return P}function dn(E,P){let W;for(W in P){const ge=(et.call(E,W)?E[W]:void 0)||(E[W]={}),Ae=P[W];let He;if(Ae)for(He in Ae){et.call(ge,He)||(ge[He]=[]);const it=Ae[He];rn(ge[He],Array.isArray(it)?it:it?[it]:[])}}}function rn(E,P){let W=-1;const J=[];for(;++W<P.length;)(P[W].add==="after"?E:J).push(P[W]);tt(E,0,0,J)}function ze(E){const P={};let W=-1;for(;++W<E.length;)Un(P,E[W]);return P}function Un(E,P){let W;for(W in P){const ge=(et.call(E,W)?E[W]:void 0)||(E[W]={}),Ae=P[W];let He;if(Ae)for(He in Ae)ge[He]=Ae[He]}}var yn=h(26735),Bt=h(80722);const Si={tokenize:_i};function _i(E){const P=E.attempt(this.parser.constructs.contentInitial,J,ge);let W;return P;function J(it){if(it===null){E.consume(it);return}return E.enter("lineEnding"),E.consume(it),E.exit("lineEnding"),(0,yn.f)(E,P,"linePrefix")}function ge(it){return E.enter("paragraph"),Ae(it)}function Ae(it){const jt=E.enter("chunkText",{contentType:"text",previous:W});return W&&(W.next=jt),W=jt,He(it)}function He(it){if(it===null){E.exit("chunkText"),E.exit("paragraph"),E.consume(it);return}return(0,Bt.Ch)(it)?(E.consume(it),E.exit("chunkText"),Ae):(E.consume(it),He)}}const Ii={tokenize:fr},cn={tokenize:Xi};function fr(E){const P=this,W=[];let J=0,ge,Ae,He;return it;function it(Pi){if(J<W.length){const Mr=W[J];return P.containerState=Mr[1],E.attempt(Mr[0].continuation,jt,Qt)(Pi)}return Qt(Pi)}function jt(Pi){if(J++,P.containerState._closeFlow){P.containerState._closeFlow=void 0,ge&&vi();const Mr=P.events.length;let Xr=Mr,ui;for(;Xr--;)if(P.events[Xr][0]==="exit"&&P.events[Xr][1].type==="chunkFlow"){ui=P.events[Xr][1].end;break}si(J);let io=Mr;for(;io<P.events.length;)P.events[io][1].end=Po({},ui),io++;return tt(P.events,Xr+1,0,P.events.slice(Mr)),P.events.length=io,Qt(Pi)}return it(Pi)}function Qt(Pi){if(J===W.length){if(!ge)return Gt(Pi);if(ge.currentConstruct&&ge.currentConstruct.concrete)return ii(Pi);P.interrupt=!!(ge.currentConstruct&&!ge._gfmTableDynamicInterruptHack)}return P.containerState={},E.check(cn,bt,en)(Pi)}function bt(Pi){return ge&&vi(),si(J),Gt(Pi)}function en(Pi){return P.parser.lazy[P.now().line]=J!==W.length,He=P.now().offset,ii(Pi)}function Gt(Pi){return P.containerState={},E.attempt(cn,wt,ii)(Pi)}function wt(Pi){return J++,W.push([P.currentConstruct,P.containerState]),Gt(Pi)}function ii(Pi){if(Pi===null){ge&&vi(),si(0),E.consume(Pi);return}return ge=ge||P.parser.flow(P.now()),E.enter("chunkFlow",{_tokenizer:ge,contentType:"flow",previous:Ae}),ki(Pi)}function ki(Pi){if(Pi===null){ji(E.exit("chunkFlow"),!0),si(0),E.consume(Pi);return}return(0,Bt.Ch)(Pi)?(E.consume(Pi),ji(E.exit("chunkFlow")),J=0,P.interrupt=void 0,it):(E.consume(Pi),ki)}function ji(Pi,Mr){const Xr=P.sliceStream(Pi);if(Mr&&Xr.push(null),Pi.previous=Ae,Ae&&(Ae.next=Pi),Ae=Pi,ge.defineSkip(Pi.start),ge.write(Xr),P.parser.lazy[Pi.start.line]){let ui=ge.events.length;for(;ui--;)if(ge.events[ui][1].start.offset<He&&(!ge.events[ui][1].end||ge.events[ui][1].end.offset>He))return;const io=P.events.length;let bo=io,dr,Qi;for(;bo--;)if(P.events[bo][0]==="exit"&&P.events[bo][1].type==="chunkFlow"){if(dr){Qi=P.events[bo][1].end;break}dr=!0}for(si(J),ui=io;ui<P.events.length;)P.events[ui][1].end=Po({},Qi),ui++;tt(P.events,bo+1,0,P.events.slice(io)),P.events.length=ui}}function si(Pi){let Mr=W.length;for(;Mr-- >Pi;){const Xr=W[Mr];P.containerState=Xr[1],Xr[0].exit.call(P,E)}W.length=Pi}function vi(){ge.write([null]),Ae=void 0,ge=void 0,P.containerState._closeFlow=void 0}}function Xi(E,P,W){return(0,yn.f)(E,E.attempt(this.parser.constructs.document,P,W),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const ei={partial:!0,tokenize:Tr};function Tr(E,P,W){return J;function J(Ae){return(0,Bt.xz)(Ae)?(0,yn.f)(E,ge,"linePrefix")(Ae):ge(Ae)}function ge(Ae){return Ae===null||(0,Bt.Ch)(Ae)?P(Ae):W(Ae)}}const ur={resolve:mr,tokenize:Er},U={partial:!0,tokenize:wr};function mr(E){return Kt(E),E}function Er(E,P){let W;return J;function J(it){return E.enter("content"),W=E.enter("chunkContent",{contentType:"content"}),ge(it)}function ge(it){return it===null?Ae(it):(0,Bt.Ch)(it)?E.check(U,He,Ae)(it):(E.consume(it),ge)}function Ae(it){return E.exit("chunkContent"),E.exit("content"),P(it)}function He(it){return E.consume(it),E.exit("chunkContent"),W.next=E.enter("chunkContent",{contentType:"content",previous:W}),W=W.next,ge}}function wr(E,P,W){const J=this;return ge;function ge(He){return E.exit("chunkContent"),E.enter("lineEnding"),E.consume(He),E.exit("lineEnding"),(0,yn.f)(E,Ae,"linePrefix")}function Ae(He){if(He===null||(0,Bt.Ch)(He))return W(He);const it=J.events[J.events.length-1];return!J.parser.constructs.disable.null.includes("codeIndented")&&it&&it[1].type==="linePrefix"&&it[2].sliceSerialize(it[1],!0).length>=4?P(He):E.interrupt(J.parser.constructs.flow,W,P)(He)}}const qr={tokenize:xo};function xo(E){const P=this,W=E.attempt(ei,J,E.attempt(this.parser.constructs.flowInitial,ge,(0,yn.f)(E,E.attempt(this.parser.constructs.flow,ge,E.attempt(ur,ge)),"linePrefix")));return W;function J(Ae){if(Ae===null){E.consume(Ae);return}return E.enter("lineEndingBlank"),E.consume(Ae),E.exit("lineEndingBlank"),P.currentConstruct=void 0,W}function ge(Ae){if(Ae===null){E.consume(Ae);return}return E.enter("lineEnding"),E.consume(Ae),E.exit("lineEnding"),P.currentConstruct=void 0,W}}const kr={resolveAll:yi()},no=Bi("string"),rr=Bi("text");function Bi(E){return{resolveAll:yi(E==="text"?ht:void 0),tokenize:P};function P(W){const J=this,ge=this.parser.constructs[E],Ae=W.attempt(ge,He,it);return He;function He(bt){return Qt(bt)?Ae(bt):it(bt)}function it(bt){if(bt===null){W.consume(bt);return}return W.enter("data"),W.consume(bt),jt}function jt(bt){return Qt(bt)?(W.exit("data"),Ae(bt)):(W.consume(bt),jt)}function Qt(bt){if(bt===null)return!0;const en=ge[bt];let Gt=-1;if(en)for(;++Gt<en.length;){const wt=en[Gt];if(!wt.previous||wt.previous.call(J,J.previous))return!0}return!1}}}function yi(E){return P;function P(W,J){let ge=-1,Ae;for(;++ge<=W.length;)Ae===void 0?W[ge]&&W[ge][1].type==="data"&&(Ae=ge,ge++):(!W[ge]||W[ge][1].type!=="data")&&(ge!==Ae+2&&(W[Ae][1].end=W[ge-1][1].end,W.splice(Ae+2,ge-Ae-2),ge=Ae+2),Ae=void 0);return E?E(W,J):W}}function ht(E,P){let W=0;for(;++W<=E.length;)if((W===E.length||E[W][1].type==="lineEnding")&&E[W-1][1].type==="data"){const J=E[W-1][1],ge=P.sliceStream(J);let Ae=ge.length,He=-1,it=0,jt;for(;Ae--;){const Qt=ge[Ae];if(typeof Qt=="string"){for(He=Qt.length;Qt.charCodeAt(He-1)===32;)it++,He--;if(He)break;He=-1}else if(Qt===-2)jt=!0,it++;else if(Qt!==-1){Ae++;break}}if(P._contentTypeTextTrailing&&W===E.length&&(it=0),it){const Qt={type:W===E.length||jt||it<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:Ae?He:J.start._bufferIndex+He,_index:J.start._index+Ae,line:J.end.line,column:J.end.column-it,offset:J.end.offset-it},end:Po({},J.end)};J.end=Po({},Qt.start),J.start.offset===J.end.offset?Object.assign(J,Qt):(E.splice(W,0,["enter",Qt,P],["exit",Qt,P]),W+=2)}W++}return E}const _n={name:"thematicBreak",tokenize:Vn};function Vn(E,P,W){let J=0,ge;return Ae;function Ae(Qt){return E.enter("thematicBreak"),He(Qt)}function He(Qt){return ge=Qt,it(Qt)}function it(Qt){return Qt===ge?(E.enter("thematicBreakSequence"),jt(Qt)):J>=3&&(Qt===null||(0,Bt.Ch)(Qt))?(E.exit("thematicBreak"),P(Qt)):W(Qt)}function jt(Qt){return Qt===ge?(E.consume(Qt),J++,jt):(E.exit("thematicBreakSequence"),(0,Bt.xz)(Qt)?(0,yn.f)(E,it,"whitespace")(Qt):it(Qt))}}const pt={continuation:{tokenize:on},exit:Ve,name:"list",tokenize:Fn},Ke={partial:!0,tokenize:Ut},vn={partial:!0,tokenize:Nt};function Fn(E,P,W){const J=this,ge=J.events[J.events.length-1];let Ae=ge&&ge[1].type==="linePrefix"?ge[2].sliceSerialize(ge[1],!0).length:0,He=0;return it;function it(wt){const ii=J.containerState.type||(wt===42||wt===43||wt===45?"listUnordered":"listOrdered");if(ii==="listUnordered"?!J.containerState.marker||wt===J.containerState.marker:(0,Bt.pY)(wt)){if(J.containerState.type||(J.containerState.type=ii,E.enter(ii,{_container:!0})),ii==="listUnordered")return E.enter("listItemPrefix"),wt===42||wt===45?E.check(_n,W,Qt)(wt):Qt(wt);if(!J.interrupt||wt===49)return E.enter("listItemPrefix"),E.enter("listItemValue"),jt(wt)}return W(wt)}function jt(wt){return(0,Bt.pY)(wt)&&++He<10?(E.consume(wt),jt):(!J.interrupt||He<2)&&(J.containerState.marker?wt===J.containerState.marker:wt===41||wt===46)?(E.exit("listItemValue"),Qt(wt)):W(wt)}function Qt(wt){return E.enter("listItemMarker"),E.consume(wt),E.exit("listItemMarker"),J.containerState.marker=J.containerState.marker||wt,E.check(ei,J.interrupt?W:bt,E.attempt(Ke,Gt,en))}function bt(wt){return J.containerState.initialBlankLine=!0,Ae++,Gt(wt)}function en(wt){return(0,Bt.xz)(wt)?(E.enter("listItemPrefixWhitespace"),E.consume(wt),E.exit("listItemPrefixWhitespace"),Gt):W(wt)}function Gt(wt){return J.containerState.size=Ae+J.sliceSerialize(E.exit("listItemPrefix"),!0).length,P(wt)}}function on(E,P,W){const J=this;return J.containerState._closeFlow=void 0,E.check(ei,ge,Ae);function ge(it){return J.containerState.furtherBlankLines=J.containerState.furtherBlankLines||J.containerState.initialBlankLine,(0,yn.f)(E,P,"listItemIndent",J.containerState.size+1)(it)}function Ae(it){return J.containerState.furtherBlankLines||!(0,Bt.xz)(it)?(J.containerState.furtherBlankLines=void 0,J.containerState.initialBlankLine=void 0,He(it)):(J.containerState.furtherBlankLines=void 0,J.containerState.initialBlankLine=void 0,E.attempt(vn,P,He)(it))}function He(it){return J.containerState._closeFlow=!0,J.interrupt=void 0,(0,yn.f)(E,E.attempt(pt,P,W),"linePrefix",J.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(it)}}function Nt(E,P,W){const J=this;return(0,yn.f)(E,ge,"listItemIndent",J.containerState.size+1);function ge(Ae){const He=J.events[J.events.length-1];return He&&He[1].type==="listItemIndent"&&He[2].sliceSerialize(He[1],!0).length===J.containerState.size?P(Ae):W(Ae)}}function Ve(E){E.exit(this.containerState.type)}function Ut(E,P,W){const J=this;return(0,yn.f)(E,ge,"listItemPrefixWhitespace",J.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function ge(Ae){const He=J.events[J.events.length-1];return!(0,Bt.xz)(Ae)&&He&&He[1].type==="listItemPrefixWhitespace"?P(Ae):W(Ae)}}const Lt={continuation:{tokenize:ot},exit:fn,name:"blockQuote",tokenize:Wn};function Wn(E,P,W){const J=this;return ge;function ge(He){if(He===62){const it=J.containerState;return it.open||(E.enter("blockQuote",{_container:!0}),it.open=!0),E.enter("blockQuotePrefix"),E.enter("blockQuoteMarker"),E.consume(He),E.exit("blockQuoteMarker"),Ae}return W(He)}function Ae(He){return(0,Bt.xz)(He)?(E.enter("blockQuotePrefixWhitespace"),E.consume(He),E.exit("blockQuotePrefixWhitespace"),E.exit("blockQuotePrefix"),P):(E.exit("blockQuotePrefix"),P(He))}}function ot(E,P,W){const J=this;return ge;function ge(He){return(0,Bt.xz)(He)?(0,yn.f)(E,Ae,"linePrefix",J.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(He):Ae(He)}function Ae(He){return E.attempt(Lt,P,W)(He)}}function fn(E){E.exit("blockQuote")}function yt(E,P,W,J,ge,Ae,He,it,jt){const Qt=jt||Number.POSITIVE_INFINITY;let bt=0;return en;function en(si){return si===60?(E.enter(J),E.enter(ge),E.enter(Ae),E.consume(si),E.exit(Ae),Gt):si===null||si===32||si===41||(0,Bt.Av)(si)?W(si):(E.enter(J),E.enter(He),E.enter(it),E.enter("chunkString",{contentType:"string"}),ki(si))}function Gt(si){return si===62?(E.enter(Ae),E.consume(si),E.exit(Ae),E.exit(ge),E.exit(J),P):(E.enter(it),E.enter("chunkString",{contentType:"string"}),wt(si))}function wt(si){return si===62?(E.exit("chunkString"),E.exit(it),Gt(si)):si===null||si===60||(0,Bt.Ch)(si)?W(si):(E.consume(si),si===92?ii:wt)}function ii(si){return si===60||si===62||si===92?(E.consume(si),wt):wt(si)}function ki(si){return!bt&&(si===null||si===41||(0,Bt.z3)(si))?(E.exit("chunkString"),E.exit(it),E.exit(He),E.exit(J),P(si)):bt<Qt&&si===40?(E.consume(si),bt++,ki):si===41?(E.consume(si),bt--,ki):si===null||si===32||si===40||(0,Bt.Av)(si)?W(si):(E.consume(si),si===92?ji:ki)}function ji(si){return si===40||si===41||si===92?(E.consume(si),ki):ki(si)}}function je(E,P,W,J,ge,Ae){const He=this;let it=0,jt;return Qt;function Qt(wt){return E.enter(J),E.enter(ge),E.consume(wt),E.exit(ge),E.enter(Ae),bt}function bt(wt){return it>999||wt===null||wt===91||wt===93&&!jt||wt===94&&!it&&"_hiddenFootnoteSupport"in He.parser.constructs?W(wt):wt===93?(E.exit(Ae),E.enter(ge),E.consume(wt),E.exit(ge),E.exit(J),P):(0,Bt.Ch)(wt)?(E.enter("lineEnding"),E.consume(wt),E.exit("lineEnding"),bt):(E.enter("chunkString",{contentType:"string"}),en(wt))}function en(wt){return wt===null||wt===91||wt===93||(0,Bt.Ch)(wt)||it++>999?(E.exit("chunkString"),bt(wt)):(E.consume(wt),jt||(jt=!(0,Bt.xz)(wt)),wt===92?Gt:en)}function Gt(wt){return wt===91||wt===92||wt===93?(E.consume(wt),it++,en):en(wt)}}function L(E,P,W,J,ge,Ae){let He;return it;function it(Gt){return Gt===34||Gt===39||Gt===40?(E.enter(J),E.enter(ge),E.consume(Gt),E.exit(ge),He=Gt===40?41:Gt,jt):W(Gt)}function jt(Gt){return Gt===He?(E.enter(ge),E.consume(Gt),E.exit(ge),E.exit(J),P):(E.enter(Ae),Qt(Gt))}function Qt(Gt){return Gt===He?(E.exit(Ae),jt(He)):Gt===null?W(Gt):(0,Bt.Ch)(Gt)?(E.enter("lineEnding"),E.consume(Gt),E.exit("lineEnding"),(0,yn.f)(E,Qt,"linePrefix")):(E.enter("chunkString",{contentType:"string"}),bt(Gt))}function bt(Gt){return Gt===He||Gt===null||(0,Bt.Ch)(Gt)?(E.exit("chunkString"),Qt(Gt)):(E.consume(Gt),Gt===92?en:bt)}function en(Gt){return Gt===He||Gt===92?(E.consume(Gt),bt):bt(Gt)}}function Rt(E,P){let W;return J;function J(ge){return(0,Bt.Ch)(ge)?(E.enter("lineEnding"),E.consume(ge),E.exit("lineEnding"),W=!0,J):(0,Bt.xz)(ge)?(0,yn.f)(E,J,W?"linePrefix":"lineSuffix")(ge):P(ge)}}function Jt(E){return E.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const mt={name:"definition",tokenize:An},xn={partial:!0,tokenize:li};function An(E,P,W){const J=this;let ge;return Ae;function Ae(wt){return E.enter("definition"),He(wt)}function He(wt){return je.call(J,E,it,W,"definitionLabel","definitionLabelMarker","definitionLabelString")(wt)}function it(wt){return ge=Jt(J.sliceSerialize(J.events[J.events.length-1][1]).slice(1,-1)),wt===58?(E.enter("definitionMarker"),E.consume(wt),E.exit("definitionMarker"),jt):W(wt)}function jt(wt){return(0,Bt.z3)(wt)?Rt(E,Qt)(wt):Qt(wt)}function Qt(wt){return yt(E,bt,W,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(wt)}function bt(wt){return E.attempt(xn,en,en)(wt)}function en(wt){return(0,Bt.xz)(wt)?(0,yn.f)(E,Gt,"whitespace")(wt):Gt(wt)}function Gt(wt){return wt===null||(0,Bt.Ch)(wt)?(E.exit("definition"),J.parser.defined.push(ge),P(wt)):W(wt)}}function li(E,P,W){return J;function J(it){return(0,Bt.z3)(it)?Rt(E,ge)(it):W(it)}function ge(it){return L(E,Ae,W,"definitionTitle","definitionTitleMarker","definitionTitleString")(it)}function Ae(it){return(0,Bt.xz)(it)?(0,yn.f)(E,He,"whitespace")(it):He(it)}function He(it){return it===null||(0,Bt.Ch)(it)?P(it):W(it)}}const Nn={name:"codeIndented",tokenize:Mi},lt={partial:!0,tokenize:Yi};function Mi(E,P,W){const J=this;return ge;function ge(Qt){return E.enter("codeIndented"),(0,yn.f)(E,Ae,"linePrefix",5)(Qt)}function Ae(Qt){const bt=J.events[J.events.length-1];return bt&&bt[1].type==="linePrefix"&&bt[2].sliceSerialize(bt[1],!0).length>=4?He(Qt):W(Qt)}function He(Qt){return Qt===null?jt(Qt):(0,Bt.Ch)(Qt)?E.attempt(lt,He,jt)(Qt):(E.enter("codeFlowValue"),it(Qt))}function it(Qt){return Qt===null||(0,Bt.Ch)(Qt)?(E.exit("codeFlowValue"),He(Qt)):(E.consume(Qt),it)}function jt(Qt){return E.exit("codeIndented"),P(Qt)}}function Yi(E,P,W){const J=this;return ge;function ge(He){return J.parser.lazy[J.now().line]?W(He):(0,Bt.Ch)(He)?(E.enter("lineEnding"),E.consume(He),E.exit("lineEnding"),ge):(0,yn.f)(E,Ae,"linePrefix",5)(He)}function Ae(He){const it=J.events[J.events.length-1];return it&&it[1].type==="linePrefix"&&it[2].sliceSerialize(it[1],!0).length>=4?P(He):(0,Bt.Ch)(He)?ge(He):W(He)}}const Yt={name:"headingAtx",resolve:zi,tokenize:q};function zi(E,P){let W=E.length-2,J=3,ge,Ae;return E[J][1].type==="whitespace"&&(J+=2),W-2>J&&E[W][1].type==="whitespace"&&(W-=2),E[W][1].type==="atxHeadingSequence"&&(J===W-1||W-4>J&&E[W-2][1].type==="whitespace")&&(W-=J+1===W?2:4),W>J&&(ge={type:"atxHeadingText",start:E[J][1].start,end:E[W][1].end},Ae={type:"chunkText",start:E[J][1].start,end:E[W][1].end,contentType:"text"},tt(E,J,W-J+1,[["enter",ge,P],["enter",Ae,P],["exit",Ae,P],["exit",ge,P]])),E}function q(E,P,W){let J=0;return ge;function ge(bt){return E.enter("atxHeading"),Ae(bt)}function Ae(bt){return E.enter("atxHeadingSequence"),He(bt)}function He(bt){return bt===35&&J++<6?(E.consume(bt),He):bt===null||(0,Bt.z3)(bt)?(E.exit("atxHeadingSequence"),it(bt)):W(bt)}function it(bt){return bt===35?(E.enter("atxHeadingSequence"),jt(bt)):bt===null||(0,Bt.Ch)(bt)?(E.exit("atxHeading"),P(bt)):(0,Bt.xz)(bt)?(0,yn.f)(E,it,"whitespace")(bt):(E.enter("atxHeadingText"),Qt(bt))}function jt(bt){return bt===35?(E.consume(bt),jt):(E.exit("atxHeadingSequence"),it(bt))}function Qt(bt){return bt===null||bt===35||(0,Bt.z3)(bt)?(E.exit("atxHeadingText"),it(bt)):(E.consume(bt),Qt)}}const oe={name:"setextUnderline",resolveTo:Hn,tokenize:Be};function Hn(E,P){let W=E.length,J,ge,Ae;for(;W--;)if(E[W][0]==="enter"){if(E[W][1].type==="content"){J=W;break}E[W][1].type==="paragraph"&&(ge=W)}else E[W][1].type==="content"&&E.splice(W,1),!Ae&&E[W][1].type==="definition"&&(Ae=W);const He={type:"setextHeading",start:Po({},E[J][1].start),end:Po({},E[E.length-1][1].end)};return E[ge][1].type="setextHeadingText",Ae?(E.splice(ge,0,["enter",He,P]),E.splice(Ae+1,0,["exit",E[J][1],P]),E[J][1].end=Po({},E[Ae][1].end)):E[J][1]=He,E.push(["exit",He,P]),E}function Be(E,P,W){const J=this;let ge;return Ae;function Ae(Qt){let bt=J.events.length,en;for(;bt--;)if(J.events[bt][1].type!=="lineEnding"&&J.events[bt][1].type!=="linePrefix"&&J.events[bt][1].type!=="content"){en=J.events[bt][1].type==="paragraph";break}return!J.parser.lazy[J.now().line]&&(J.interrupt||en)?(E.enter("setextHeadingLine"),ge=Qt,He(Qt)):W(Qt)}function He(Qt){return E.enter("setextHeadingLineSequence"),it(Qt)}function it(Qt){return Qt===ge?(E.consume(Qt),it):(E.exit("setextHeadingLineSequence"),(0,Bt.xz)(Qt)?(0,yn.f)(E,jt,"lineSuffix")(Qt):jt(Qt))}function jt(Qt){return Qt===null||(0,Bt.Ch)(Qt)?(E.exit("setextHeadingLine"),P(Qt)):W(Qt)}}const Tt=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],fi=["pre","script","style","textarea"],Ln={concrete:!0,name:"htmlFlow",resolveTo:xi,tokenize:Xt},Fi={partial:!0,tokenize:Yr},qt={partial:!0,tokenize:Li};function xi(E){let P=E.length;for(;P--&&!(E[P][0]==="enter"&&E[P][1].type==="htmlFlow"););return P>1&&E[P-2][1].type==="linePrefix"&&(E[P][1].start=E[P-2][1].start,E[P+1][1].start=E[P-2][1].start,E.splice(P-2,2)),E}function Xt(E,P,W){const J=this;let ge,Ae,He,it,jt;return Qt;function Qt(un){return bt(un)}function bt(un){return E.enter("htmlFlow"),E.enter("htmlFlowData"),E.consume(un),en}function en(un){return un===33?(E.consume(un),Gt):un===47?(E.consume(un),Ae=!0,ki):un===63?(E.consume(un),ge=3,J.interrupt?P:$t):(0,Bt.jv)(un)?(E.consume(un),He=String.fromCharCode(un),ji):W(un)}function Gt(un){return un===45?(E.consume(un),ge=2,wt):un===91?(E.consume(un),ge=5,it=0,ii):(0,Bt.jv)(un)?(E.consume(un),ge=4,J.interrupt?P:$t):W(un)}function wt(un){return un===45?(E.consume(un),J.interrupt?P:$t):W(un)}function ii(un){const da="CDATA[";return un===da.charCodeAt(it++)?(E.consume(un),it===da.length?J.interrupt?P:to:ii):W(un)}function ki(un){return(0,Bt.jv)(un)?(E.consume(un),He=String.fromCharCode(un),ji):W(un)}function ji(un){if(un===null||un===47||un===62||(0,Bt.z3)(un)){const da=un===47,Ta=He.toLowerCase();return!da&&!Ae&&fi.includes(Ta)?(ge=1,J.interrupt?P(un):to(un)):Tt.includes(He.toLowerCase())?(ge=6,da?(E.consume(un),si):J.interrupt?P(un):to(un)):(ge=7,J.interrupt&&!J.parser.lazy[J.now().line]?W(un):Ae?vi(un):Pi(un))}return un===45||(0,Bt.H$)(un)?(E.consume(un),He+=String.fromCharCode(un),ji):W(un)}function si(un){return un===62?(E.consume(un),J.interrupt?P:to):W(un)}function vi(un){return(0,Bt.xz)(un)?(E.consume(un),vi):Qi(un)}function Pi(un){return un===47?(E.consume(un),Qi):un===58||un===95||(0,Bt.jv)(un)?(E.consume(un),Mr):(0,Bt.xz)(un)?(E.consume(un),Pi):Qi(un)}function Mr(un){return un===45||un===46||un===58||un===95||(0,Bt.H$)(un)?(E.consume(un),Mr):Xr(un)}function Xr(un){return un===61?(E.consume(un),ui):(0,Bt.xz)(un)?(E.consume(un),Xr):Pi(un)}function ui(un){return un===null||un===60||un===61||un===62||un===96?W(un):un===34||un===39?(E.consume(un),jt=un,io):(0,Bt.xz)(un)?(E.consume(un),ui):bo(un)}function io(un){return un===jt?(E.consume(un),jt=null,dr):un===null||(0,Bt.Ch)(un)?W(un):(E.consume(un),io)}function bo(un){return un===null||un===34||un===39||un===47||un===60||un===61||un===62||un===96||(0,Bt.z3)(un)?Xr(un):(E.consume(un),bo)}function dr(un){return un===47||un===62||(0,Bt.xz)(un)?Pi(un):W(un)}function Qi(un){return un===62?(E.consume(un),oo):W(un)}function oo(un){return un===null||(0,Bt.Ch)(un)?to(un):(0,Bt.xz)(un)?(E.consume(un),oo):W(un)}function to(un){return un===45&&ge===2?(E.consume(un),ir):un===60&&ge===1?(E.consume(un),vr):un===62&&ge===4?(E.consume(un),zr):un===63&&ge===3?(E.consume(un),$t):un===93&&ge===5?(E.consume(un),ho):(0,Bt.Ch)(un)&&(ge===6||ge===7)?(E.exit("htmlFlowData"),E.check(Fi,fo,pr)(un)):un===null||(0,Bt.Ch)(un)?(E.exit("htmlFlowData"),pr(un)):(E.consume(un),to)}function pr(un){return E.check(qt,_r,fo)(un)}function _r(un){return E.enter("lineEnding"),E.consume(un),E.exit("lineEnding"),Gi}function Gi(un){return un===null||(0,Bt.Ch)(un)?pr(un):(E.enter("htmlFlowData"),to(un))}function ir(un){return un===45?(E.consume(un),$t):to(un)}function vr(un){return un===47?(E.consume(un),He="",sr):to(un)}function sr(un){if(un===62){const da=He.toLowerCase();return fi.includes(da)?(E.consume(un),zr):to(un)}return(0,Bt.jv)(un)&&He.length<8?(E.consume(un),He+=String.fromCharCode(un),sr):to(un)}function ho(un){return un===93?(E.consume(un),$t):to(un)}function $t(un){return un===62?(E.consume(un),zr):un===45&&ge===2?(E.consume(un),$t):to(un)}function zr(un){return un===null||(0,Bt.Ch)(un)?(E.exit("htmlFlowData"),fo(un)):(E.consume(un),zr)}function fo(un){return E.exit("htmlFlow"),P(un)}}function Li(E,P,W){const J=this;return ge;function ge(He){return(0,Bt.Ch)(He)?(E.enter("lineEnding"),E.consume(He),E.exit("lineEnding"),Ae):W(He)}function Ae(He){return J.parser.lazy[J.now().line]?W(He):P(He)}}function Yr(E,P,W){return J;function J(ge){return E.enter("lineEnding"),E.consume(ge),E.exit("lineEnding"),E.attempt(ei,P,W)}}const Mt={partial:!0,tokenize:Oi},Qr={concrete:!0,name:"codeFenced",tokenize:tn};function tn(E,P,W){const J=this,ge={partial:!0,tokenize:Xr};let Ae=0,He=0,it;return jt;function jt(ui){return Qt(ui)}function Qt(ui){const io=J.events[J.events.length-1];return Ae=io&&io[1].type==="linePrefix"?io[2].sliceSerialize(io[1],!0).length:0,it=ui,E.enter("codeFenced"),E.enter("codeFencedFence"),E.enter("codeFencedFenceSequence"),bt(ui)}function bt(ui){return ui===it?(He++,E.consume(ui),bt):He<3?W(ui):(E.exit("codeFencedFenceSequence"),(0,Bt.xz)(ui)?(0,yn.f)(E,en,"whitespace")(ui):en(ui))}function en(ui){return ui===null||(0,Bt.Ch)(ui)?(E.exit("codeFencedFence"),J.interrupt?P(ui):E.check(Mt,ki,Mr)(ui)):(E.enter("codeFencedFenceInfo"),E.enter("chunkString",{contentType:"string"}),Gt(ui))}function Gt(ui){return ui===null||(0,Bt.Ch)(ui)?(E.exit("chunkString"),E.exit("codeFencedFenceInfo"),en(ui)):(0,Bt.xz)(ui)?(E.exit("chunkString"),E.exit("codeFencedFenceInfo"),(0,yn.f)(E,wt,"whitespace")(ui)):ui===96&&ui===it?W(ui):(E.consume(ui),Gt)}function wt(ui){return ui===null||(0,Bt.Ch)(ui)?en(ui):(E.enter("codeFencedFenceMeta"),E.enter("chunkString",{contentType:"string"}),ii(ui))}function ii(ui){return ui===null||(0,Bt.Ch)(ui)?(E.exit("chunkString"),E.exit("codeFencedFenceMeta"),en(ui)):ui===96&&ui===it?W(ui):(E.consume(ui),ii)}function ki(ui){return E.attempt(ge,Mr,ji)(ui)}function ji(ui){return E.enter("lineEnding"),E.consume(ui),E.exit("lineEnding"),si}function si(ui){return Ae>0&&(0,Bt.xz)(ui)?(0,yn.f)(E,vi,"linePrefix",Ae+1)(ui):vi(ui)}function vi(ui){return ui===null||(0,Bt.Ch)(ui)?E.check(Mt,ki,Mr)(ui):(E.enter("codeFlowValue"),Pi(ui))}function Pi(ui){return ui===null||(0,Bt.Ch)(ui)?(E.exit("codeFlowValue"),vi(ui)):(E.consume(ui),Pi)}function Mr(ui){return E.exit("codeFenced"),P(ui)}function Xr(ui,io,bo){let dr=0;return Qi;function Qi(Gi){return ui.enter("lineEnding"),ui.consume(Gi),ui.exit("lineEnding"),oo}function oo(Gi){return ui.enter("codeFencedFence"),(0,Bt.xz)(Gi)?(0,yn.f)(ui,to,"linePrefix",J.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Gi):to(Gi)}function to(Gi){return Gi===it?(ui.enter("codeFencedFenceSequence"),pr(Gi)):bo(Gi)}function pr(Gi){return Gi===it?(dr++,ui.consume(Gi),pr):dr>=He?(ui.exit("codeFencedFenceSequence"),(0,Bt.xz)(Gi)?(0,yn.f)(ui,_r,"whitespace")(Gi):_r(Gi)):bo(Gi)}function _r(Gi){return Gi===null||(0,Bt.Ch)(Gi)?(ui.exit("codeFencedFence"),io(Gi)):bo(Gi)}}}function Oi(E,P,W){const J=this;return ge;function ge(He){return He===null?W(He):(E.enter("lineEnding"),E.consume(He),E.exit("lineEnding"),Ae)}function Ae(He){return J.parser.lazy[J.now().line]?W(He):P(He)}}const Ei=document.createElement("i");function or(E){const P="&"+E+";";Ei.innerHTML=P;const W=Ei.textContent;return W.charCodeAt(W.length-1)===59&&E!=="semi"||W===P?!1:W}const tr={name:"characterReference",tokenize:Zn};function Zn(E,P,W){const J=this;let ge=0,Ae,He;return it;function it(en){return E.enter("characterReference"),E.enter("characterReferenceMarker"),E.consume(en),E.exit("characterReferenceMarker"),jt}function jt(en){return en===35?(E.enter("characterReferenceMarkerNumeric"),E.consume(en),E.exit("characterReferenceMarkerNumeric"),Qt):(E.enter("characterReferenceValue"),Ae=31,He=Bt.H$,bt(en))}function Qt(en){return en===88||en===120?(E.enter("characterReferenceMarkerHexadecimal"),E.consume(en),E.exit("characterReferenceMarkerHexadecimal"),E.enter("characterReferenceValue"),Ae=6,He=Bt.AF,bt):(E.enter("characterReferenceValue"),Ae=7,He=Bt.pY,bt(en))}function bt(en){if(en===59&&ge){const Gt=E.exit("characterReferenceValue");return He===Bt.H$&&!or(J.sliceSerialize(Gt))?W(en):(E.enter("characterReferenceMarker"),E.consume(en),E.exit("characterReferenceMarker"),E.exit("characterReference"),P)}return He(en)&&ge++<Ae?(E.consume(en),bt):W(en)}}const he={name:"characterEscape",tokenize:gr};function gr(E,P,W){return J;function J(Ae){return E.enter("characterEscape"),E.enter("escapeMarker"),E.consume(Ae),E.exit("escapeMarker"),ge}function ge(Ae){return(0,Bt.sR)(Ae)?(E.enter("characterEscapeValue"),E.consume(Ae),E.exit("characterEscapeValue"),E.exit("characterEscape"),P):W(Ae)}}const br={name:"lineEnding",tokenize:cr};function cr(E,P){return W;function W(J){return E.enter("lineEnding"),E.consume(J),E.exit("lineEnding"),(0,yn.f)(E,P,"linePrefix")}}function Br(E,P,W){const J=[];let ge=-1;for(;++ge<E.length;){const Ae=E[ge].resolveAll;Ae&&!J.includes(Ae)&&(P=Ae(P,W),J.push(Ae))}return P}const Zi={name:"labelEnd",resolveAll:Ki,resolveTo:Lr,tokenize:Wr},Ri={tokenize:eo},Ai={tokenize:Lo},hr={tokenize:pi};function Ki(E){let P=-1;const W=[];for(;++P<E.length;){const J=E[P][1];if(W.push(E[P]),J.type==="labelImage"||J.type==="labelLink"||J.type==="labelEnd"){const ge=J.type==="labelImage"?4:2;J.type="data",P+=ge}}return E.length!==W.length&&tt(E,0,E.length,W),E}function Lr(E,P){let W=E.length,J=0,ge,Ae,He,it;for(;W--;)if(ge=E[W][1],Ae){if(ge.type==="link"||ge.type==="labelLink"&&ge._inactive)break;E[W][0]==="enter"&&ge.type==="labelLink"&&(ge._inactive=!0)}else if(He){if(E[W][0]==="enter"&&(ge.type==="labelImage"||ge.type==="labelLink")&&!ge._balanced&&(Ae=W,ge.type!=="labelLink")){J=2;break}}else ge.type==="labelEnd"&&(He=W);const jt={type:E[Ae][1].type==="labelLink"?"link":"image",start:Po({},E[Ae][1].start),end:Po({},E[E.length-1][1].end)},Qt={type:"label",start:Po({},E[Ae][1].start),end:Po({},E[He][1].end)},bt={type:"labelText",start:Po({},E[Ae+J+2][1].end),end:Po({},E[He-2][1].start)};return it=[["enter",jt,P],["enter",Qt,P]],it=Et(it,E.slice(Ae+1,Ae+J+3)),it=Et(it,[["enter",bt,P]]),it=Et(it,Br(P.parser.constructs.insideSpan.null,E.slice(Ae+J+4,He-3),P)),it=Et(it,[["exit",bt,P],E[He-2],E[He-1],["exit",Qt,P]]),it=Et(it,E.slice(He+1)),it=Et(it,[["exit",jt,P]]),tt(E,Ae,E.length,it),E}function Wr(E,P,W){const J=this;let ge=J.events.length,Ae,He;for(;ge--;)if((J.events[ge][1].type==="labelImage"||J.events[ge][1].type==="labelLink")&&!J.events[ge][1]._balanced){Ae=J.events[ge][1];break}return it;function it(Gt){return Ae?Ae._inactive?en(Gt):(He=J.parser.defined.includes(Jt(J.sliceSerialize({start:Ae.end,end:J.now()}))),E.enter("labelEnd"),E.enter("labelMarker"),E.consume(Gt),E.exit("labelMarker"),E.exit("labelEnd"),jt):W(Gt)}function jt(Gt){return Gt===40?E.attempt(Ri,bt,He?bt:en)(Gt):Gt===91?E.attempt(Ai,bt,He?Qt:en)(Gt):He?bt(Gt):en(Gt)}function Qt(Gt){return E.attempt(hr,bt,en)(Gt)}function bt(Gt){return P(Gt)}function en(Gt){return Ae._balanced=!0,W(Gt)}}function eo(E,P,W){return J;function J(en){return E.enter("resource"),E.enter("resourceMarker"),E.consume(en),E.exit("resourceMarker"),ge}function ge(en){return(0,Bt.z3)(en)?Rt(E,Ae)(en):Ae(en)}function Ae(en){return en===41?bt(en):yt(E,He,it,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(en)}function He(en){return(0,Bt.z3)(en)?Rt(E,jt)(en):bt(en)}function it(en){return W(en)}function jt(en){return en===34||en===39||en===40?L(E,Qt,W,"resourceTitle","resourceTitleMarker","resourceTitleString")(en):bt(en)}function Qt(en){return(0,Bt.z3)(en)?Rt(E,bt)(en):bt(en)}function bt(en){return en===41?(E.enter("resourceMarker"),E.consume(en),E.exit("resourceMarker"),E.exit("resource"),P):W(en)}}function Lo(E,P,W){const J=this;return ge;function ge(it){return je.call(J,E,Ae,He,"reference","referenceMarker","referenceString")(it)}function Ae(it){return J.parser.defined.includes(Jt(J.sliceSerialize(J.events[J.events.length-1][1]).slice(1,-1)))?P(it):W(it)}function He(it){return W(it)}}function pi(E,P,W){return J;function J(Ae){return E.enter("reference"),E.enter("referenceMarker"),E.consume(Ae),E.exit("referenceMarker"),ge}function ge(Ae){return Ae===93?(E.enter("referenceMarker"),E.consume(Ae),E.exit("referenceMarker"),E.exit("reference"),P):W(Ae)}}const pa={name:"labelStartImage",resolveAll:Zi.resolveAll,tokenize:Uo};function Uo(E,P,W){const J=this;return ge;function ge(it){return E.enter("labelImage"),E.enter("labelImageMarker"),E.consume(it),E.exit("labelImageMarker"),Ae}function Ae(it){return it===91?(E.enter("labelMarker"),E.consume(it),E.exit("labelMarker"),E.exit("labelImage"),He):W(it)}function He(it){return it===94&&"_hiddenFootnoteSupport"in J.parser.constructs?W(it):P(it)}}function oa(E){if(E===null||(0,Bt.z3)(E)||(0,Bt.B8)(E))return 1;if((0,Bt.Xh)(E))return 2}const ma={name:"attention",resolveAll:$a,tokenize:is};function $a(E,P){let W=-1,J,ge,Ae,He,it,jt,Qt,bt;for(;++W<E.length;)if(E[W][0]==="enter"&&E[W][1].type==="attentionSequence"&&E[W][1]._close){for(J=W;J--;)if(E[J][0]==="exit"&&E[J][1].type==="attentionSequence"&&E[J][1]._open&&P.sliceSerialize(E[J][1]).charCodeAt(0)===P.sliceSerialize(E[W][1]).charCodeAt(0)){if((E[J][1]._close||E[W][1]._open)&&(E[W][1].end.offset-E[W][1].start.offset)%3&&!((E[J][1].end.offset-E[J][1].start.offset+E[W][1].end.offset-E[W][1].start.offset)%3))continue;jt=E[J][1].end.offset-E[J][1].start.offset>1&&E[W][1].end.offset-E[W][1].start.offset>1?2:1;const en=Po({},E[J][1].end),Gt=Po({},E[W][1].start);ka(en,-jt),ka(Gt,jt),He={type:jt>1?"strongSequence":"emphasisSequence",start:en,end:Po({},E[J][1].end)},it={type:jt>1?"strongSequence":"emphasisSequence",start:Po({},E[W][1].start),end:Gt},Ae={type:jt>1?"strongText":"emphasisText",start:Po({},E[J][1].end),end:Po({},E[W][1].start)},ge={type:jt>1?"strong":"emphasis",start:Po({},He.start),end:Po({},it.end)},E[J][1].end=Po({},He.start),E[W][1].start=Po({},it.end),Qt=[],E[J][1].end.offset-E[J][1].start.offset&&(Qt=Et(Qt,[["enter",E[J][1],P],["exit",E[J][1],P]])),Qt=Et(Qt,[["enter",ge,P],["enter",He,P],["exit",He,P],["enter",Ae,P]]),Qt=Et(Qt,Br(P.parser.constructs.insideSpan.null,E.slice(J+1,W),P)),Qt=Et(Qt,[["exit",Ae,P],["enter",it,P],["exit",it,P],["exit",ge,P]]),E[W][1].end.offset-E[W][1].start.offset?(bt=2,Qt=Et(Qt,[["enter",E[W][1],P],["exit",E[W][1],P]])):bt=0,tt(E,J-1,W-J+3,Qt),W=J+Qt.length-bt-2;break}}for(W=-1;++W<E.length;)E[W][1].type==="attentionSequence"&&(E[W][1].type="data");return E}function is(E,P){const W=this.parser.constructs.attentionMarkers.null,J=this.previous,ge=oa(J);let Ae;return He;function He(jt){return Ae=jt,E.enter("attentionSequence"),it(jt)}function it(jt){if(jt===Ae)return E.consume(jt),it;const Qt=E.exit("attentionSequence"),bt=oa(jt),en=!bt||bt===2&&ge||W.includes(jt),Gt=!ge||ge===2&&bt||W.includes(J);return Qt._open=!!(Ae===42?en:en&&(ge||!Gt)),Qt._close=!!(Ae===42?Gt:Gt&&(bt||!en)),P(jt)}}function ka(E,P){E.column+=P,E.offset+=P,E._bufferIndex+=P}const ss={name:"autolink",tokenize:Ua};function Ua(E,P,W){let J=0;return ge;function ge(wt){return E.enter("autolink"),E.enter("autolinkMarker"),E.consume(wt),E.exit("autolinkMarker"),E.enter("autolinkProtocol"),Ae}function Ae(wt){return(0,Bt.jv)(wt)?(E.consume(wt),He):wt===64?W(wt):Qt(wt)}function He(wt){return wt===43||wt===45||wt===46||(0,Bt.H$)(wt)?(J=1,it(wt)):Qt(wt)}function it(wt){return wt===58?(E.consume(wt),J=0,jt):(wt===43||wt===45||wt===46||(0,Bt.H$)(wt))&&J++<32?(E.consume(wt),it):(J=0,Qt(wt))}function jt(wt){return wt===62?(E.exit("autolinkProtocol"),E.enter("autolinkMarker"),E.consume(wt),E.exit("autolinkMarker"),E.exit("autolink"),P):wt===null||wt===32||wt===60||(0,Bt.Av)(wt)?W(wt):(E.consume(wt),jt)}function Qt(wt){return wt===64?(E.consume(wt),bt):(0,Bt.n9)(wt)?(E.consume(wt),Qt):W(wt)}function bt(wt){return(0,Bt.H$)(wt)?en(wt):W(wt)}function en(wt){return wt===46?(E.consume(wt),J=0,bt):wt===62?(E.exit("autolinkProtocol").type="autolinkEmail",E.enter("autolinkMarker"),E.consume(wt),E.exit("autolinkMarker"),E.exit("autolink"),P):Gt(wt)}function Gt(wt){if((wt===45||(0,Bt.H$)(wt))&&J++<63){const ii=wt===45?Gt:en;return E.consume(wt),ii}return W(wt)}}const Go={name:"htmlText",tokenize:Zt};function Zt(E,P,W){const J=this;let ge,Ae,He;return it;function it($t){return E.enter("htmlText"),E.enter("htmlTextData"),E.consume($t),jt}function jt($t){return $t===33?(E.consume($t),Qt):$t===47?(E.consume($t),Xr):$t===63?(E.consume($t),Pi):(0,Bt.jv)($t)?(E.consume($t),bo):W($t)}function Qt($t){return $t===45?(E.consume($t),bt):$t===91?(E.consume($t),Ae=0,ii):(0,Bt.jv)($t)?(E.consume($t),vi):W($t)}function bt($t){return $t===45?(E.consume($t),wt):W($t)}function en($t){return $t===null?W($t):$t===45?(E.consume($t),Gt):(0,Bt.Ch)($t)?(He=en,vr($t)):(E.consume($t),en)}function Gt($t){return $t===45?(E.consume($t),wt):en($t)}function wt($t){return $t===62?ir($t):$t===45?Gt($t):en($t)}function ii($t){const zr="CDATA[";return $t===zr.charCodeAt(Ae++)?(E.consume($t),Ae===zr.length?ki:ii):W($t)}function ki($t){return $t===null?W($t):$t===93?(E.consume($t),ji):(0,Bt.Ch)($t)?(He=ki,vr($t)):(E.consume($t),ki)}function ji($t){return $t===93?(E.consume($t),si):ki($t)}function si($t){return $t===62?ir($t):$t===93?(E.consume($t),si):ki($t)}function vi($t){return $t===null||$t===62?ir($t):(0,Bt.Ch)($t)?(He=vi,vr($t)):(E.consume($t),vi)}function Pi($t){return $t===null?W($t):$t===63?(E.consume($t),Mr):(0,Bt.Ch)($t)?(He=Pi,vr($t)):(E.consume($t),Pi)}function Mr($t){return $t===62?ir($t):Pi($t)}function Xr($t){return(0,Bt.jv)($t)?(E.consume($t),ui):W($t)}function ui($t){return $t===45||(0,Bt.H$)($t)?(E.consume($t),ui):io($t)}function io($t){return(0,Bt.Ch)($t)?(He=io,vr($t)):(0,Bt.xz)($t)?(E.consume($t),io):ir($t)}function bo($t){return $t===45||(0,Bt.H$)($t)?(E.consume($t),bo):$t===47||$t===62||(0,Bt.z3)($t)?dr($t):W($t)}function dr($t){return $t===47?(E.consume($t),ir):$t===58||$t===95||(0,Bt.jv)($t)?(E.consume($t),Qi):(0,Bt.Ch)($t)?(He=dr,vr($t)):(0,Bt.xz)($t)?(E.consume($t),dr):ir($t)}function Qi($t){return $t===45||$t===46||$t===58||$t===95||(0,Bt.H$)($t)?(E.consume($t),Qi):oo($t)}function oo($t){return $t===61?(E.consume($t),to):(0,Bt.Ch)($t)?(He=oo,vr($t)):(0,Bt.xz)($t)?(E.consume($t),oo):dr($t)}function to($t){return $t===null||$t===60||$t===61||$t===62||$t===96?W($t):$t===34||$t===39?(E.consume($t),ge=$t,pr):(0,Bt.Ch)($t)?(He=to,vr($t)):(0,Bt.xz)($t)?(E.consume($t),to):(E.consume($t),_r)}function pr($t){return $t===ge?(E.consume($t),ge=void 0,Gi):$t===null?W($t):(0,Bt.Ch)($t)?(He=pr,vr($t)):(E.consume($t),pr)}function _r($t){return $t===null||$t===34||$t===39||$t===60||$t===61||$t===96?W($t):$t===47||$t===62||(0,Bt.z3)($t)?dr($t):(E.consume($t),_r)}function Gi($t){return $t===47||$t===62||(0,Bt.z3)($t)?dr($t):W($t)}function ir($t){return $t===62?(E.consume($t),E.exit("htmlTextData"),E.exit("htmlText"),P):W($t)}function vr($t){return E.exit("htmlTextData"),E.enter("lineEnding"),E.consume($t),E.exit("lineEnding"),sr}function sr($t){return(0,Bt.xz)($t)?(0,yn.f)(E,ho,"linePrefix",J.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($t):ho($t)}function ho($t){return E.enter("htmlTextData"),He($t)}}const Pa={name:"labelStartLink",resolveAll:Zi.resolveAll,tokenize:ql};function ql(E,P,W){const J=this;return ge;function ge(He){return E.enter("labelLink"),E.enter("labelMarker"),E.consume(He),E.exit("labelMarker"),E.exit("labelLink"),Ae}function Ae(He){return He===94&&"_hiddenFootnoteSupport"in J.parser.constructs?W(He):P(He)}}const nl={name:"hardBreakEscape",tokenize:uo};function uo(E,P,W){return J;function J(Ae){return E.enter("hardBreakEscape"),E.consume(Ae),ge}function ge(Ae){return(0,Bt.Ch)(Ae)?(E.exit("hardBreakEscape"),P(Ae)):W(Ae)}}const No={name:"codeText",previous:Ot,resolve:go,tokenize:Pr};function go(E){let P=E.length-4,W=3,J,ge;if((E[W][1].type==="lineEnding"||E[W][1].type==="space")&&(E[P][1].type==="lineEnding"||E[P][1].type==="space")){for(J=W;++J<P;)if(E[J][1].type==="codeTextData"){E[W][1].type="codeTextPadding",E[P][1].type="codeTextPadding",W+=2,P-=2;break}}for(J=W-1,P++;++J<=P;)ge===void 0?J!==P&&E[J][1].type!=="lineEnding"&&(ge=J):(J===P||E[J][1].type==="lineEnding")&&(E[ge][1].type="codeTextData",J!==ge+2&&(E[ge][1].end=E[J-1][1].end,E.splice(ge+2,J-ge-2),P-=J-ge-2,J=ge+2),ge=void 0);return E}function Ot(E){return E!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Pr(E,P,W){const J=this;let ge=0,Ae,He;return it;function it(Gt){return E.enter("codeText"),E.enter("codeTextSequence"),jt(Gt)}function jt(Gt){return Gt===96?(E.consume(Gt),ge++,jt):(E.exit("codeTextSequence"),Qt(Gt))}function Qt(Gt){return Gt===null?W(Gt):Gt===32?(E.enter("space"),E.consume(Gt),E.exit("space"),Qt):Gt===96?(He=E.enter("codeTextSequence"),Ae=0,en(Gt)):(0,Bt.Ch)(Gt)?(E.enter("lineEnding"),E.consume(Gt),E.exit("lineEnding"),Qt):(E.enter("codeTextData"),bt(Gt))}function bt(Gt){return Gt===null||Gt===32||Gt===96||(0,Bt.Ch)(Gt)?(E.exit("codeTextData"),Qt(Gt)):(E.consume(Gt),bt)}function en(Gt){return Gt===96?(E.consume(Gt),Ae++,en):Ae===ge?(E.exit("codeTextSequence"),E.exit("codeText"),P(Gt)):(He.type="codeTextData",bt(Gt))}}const co={42:pt,43:pt,45:pt,48:pt,49:pt,50:pt,51:pt,52:pt,53:pt,54:pt,55:pt,56:pt,57:pt,62:Lt},xa={91:mt},xr={[-2]:Nn,[-1]:Nn,32:Nn},wn={35:Yt,42:_n,45:[oe,_n],60:Ln,61:oe,95:_n,96:Qr,126:Qr},ar={38:tr,92:he},mi={[-5]:br,[-4]:br,[-3]:br,33:pa,38:tr,42:ma,60:[ss,Go],91:Pa,92:[nl,he],93:Zi,95:ma,96:No},Wo={null:[ma,kr]},ga={null:[42,95]},Ja={null:[]};function Ms(E,P,W){let J={_bufferIndex:-1,_index:0,line:W&&W.line||1,column:W&&W.column||1,offset:W&&W.offset||0};const ge={},Ae=[];let He=[],it=[],jt=!0;const Qt={attempt:dr(io),check:dr(bo),consume:Mr,enter:Xr,exit:ui,interrupt:dr(bo,{interrupt:!0})},bt={code:null,containerState:{},defineSkip:si,events:[],now:ji,parser:E,previous:null,sliceSerialize:ii,sliceStream:ki,write:wt};let en=P.tokenize.call(bt,Qt),Gt;return P.resolveAll&&Ae.push(P),bt;function wt(pr){return He=Et(He,pr),vi(),He[He.length-1]!==null?[]:(Qi(P,0),bt.events=Br(Ae,bt.events,bt),bt.events)}function ii(pr,_r){return ai(ki(pr),_r)}function ki(pr){return Ss(He,pr)}function ji(){const{_bufferIndex:pr,_index:_r,line:Gi,column:ir,offset:vr}=J;return{_bufferIndex:pr,_index:_r,line:Gi,column:ir,offset:vr}}function si(pr){ge[pr.line]=pr.column,to()}function vi(){let pr;for(;J._index<He.length;){const _r=He[J._index];if(typeof _r=="string")for(pr=J._index,J._bufferIndex<0&&(J._bufferIndex=0);J._index===pr&&J._bufferIndex<_r.length;)Pi(_r.charCodeAt(J._bufferIndex));else Pi(_r)}}function Pi(pr){jt=void 0,Gt=pr,en=en(pr)}function Mr(pr){(0,Bt.Ch)(pr)?(J.line++,J.column=1,J.offset+=pr===-3?2:1,to()):pr!==-1&&(J.column++,J.offset++),J._bufferIndex<0?J._index++:(J._bufferIndex++,J._bufferIndex===He[J._index].length&&(J._bufferIndex=-1,J._index++)),bt.previous=pr,jt=!0}function Xr(pr,_r){const Gi=_r||{};return Gi.type=pr,Gi.start=ji(),bt.events.push(["enter",Gi,bt]),it.push(Gi),Gi}function ui(pr){const _r=it.pop();return _r.end=ji(),bt.events.push(["exit",_r,bt]),_r}function io(pr,_r){Qi(pr,_r.from)}function bo(pr,_r){_r.restore()}function dr(pr,_r){return Gi;function Gi(ir,vr,sr){let ho,$t,zr,fo;return Array.isArray(ir)?da(ir):"tokenize"in ir?da([ir]):un(ir);function un(qo){return ta;function ta(ya){const zs=ya!==null&&qo[ya],ko=ya!==null&&qo.null,Ho=[...Array.isArray(zs)?zs:zs?[zs]:[],...Array.isArray(ko)?ko:ko?[ko]:[]];return da(Ho)(ya)}}function da(qo){return ho=qo,$t=0,qo.length===0?sr:Ta(qo[$t])}function Ta(qo){return ta;function ta(ya){return fo=oo(),zr=qo,qo.partial||(bt.currentConstruct=qo),qo.name&&bt.parser.constructs.disable.null.includes(qo.name)?Fo(ya):qo.tokenize.call(_r?Object.assign(Object.create(bt),_r):bt,Qt,es,Fo)(ya)}}function es(qo){return jt=!0,pr(zr,fo),vr}function Fo(qo){return jt=!0,fo.restore(),++$t<ho.length?Ta(ho[$t]):sr}}}function Qi(pr,_r){pr.resolveAll&&!Ae.includes(pr)&&Ae.push(pr),pr.resolve&&tt(bt.events,_r,bt.events.length-_r,pr.resolve(bt.events.slice(_r),bt)),pr.resolveTo&&(bt.events=pr.resolveTo(bt.events,bt))}function oo(){const pr=ji(),_r=bt.previous,Gi=bt.currentConstruct,ir=bt.events.length,vr=Array.from(it);return{from:ir,restore:sr};function sr(){J=pr,bt.previous=_r,bt.currentConstruct=Gi,bt.events.length=ir,it=vr,to()}}function to(){J.line in ge&&J.column<2&&(J.column=ge[J.line],J.offset+=ge[J.line]-1)}}function Ss(E,P){const W=P.start._index,J=P.start._bufferIndex,ge=P.end._index,Ae=P.end._bufferIndex;let He;if(W===ge)He=[E[W].slice(J,Ae)];else{if(He=E.slice(W,ge),J>-1){const it=He[0];typeof it=="string"?He[0]=it.slice(J):He.shift()}Ae>0&&He.push(E[ge].slice(0,Ae))}return He}function ai(E,P){let W=-1;const J=[];let ge;for(;++W<E.length;){const Ae=E[W];let He;if(typeof Ae=="string")He=Ae;else switch(Ae){case-5:{He="\r";break}case-4:{He=`
`;break}case-3:{He=`\r
`;break}case-2:{He=P?" ":" ";break}case-1:{if(!P&&ge)continue;He=" ";break}default:He=String.fromCharCode(Ae)}ge=Ae===-2,J.push(He)}return J.join("")}function Ui(E){const J={constructs:zt([v,...(E||{}).extensions||[]]),content:ge(Si),defined:[],document:ge(Ii),flow:ge(qr),lazy:{},string:ge(no),text:ge(rr)};return J;function ge(Ae){return He;function He(it){return Ms(J,Ae,it)}}}const Jo=/[\0\t\n\r]/g;function Es(){let E=1,P="",W=!0,J;return ge;function ge(Ae,He,it){const jt=[];let Qt,bt,en,Gt,wt;for(Ae=P+(typeof Ae=="string"?Ae.toString():new TextDecoder(He||void 0).decode(Ae)),en=0,P="",W&&(Ae.charCodeAt(0)===65279&&en++,W=void 0);en<Ae.length;){if(Jo.lastIndex=en,Qt=Jo.exec(Ae),Gt=Qt&&Qt.index!==void 0?Qt.index:Ae.length,wt=Ae.charCodeAt(Gt),!Qt){P=Ae.slice(en);break}if(wt===10&&en===Gt&&J)jt.push(-3),J=void 0;else switch(J&&(jt.push(-5),J=void 0),en<Gt&&(jt.push(Ae.slice(en,Gt)),E+=Gt-en),wt){case 0:{jt.push(65533),E++;break}case 9:{for(bt=Math.ceil(E/4)*4,jt.push(-2);E++<bt;)jt.push(-1);break}case 10:{jt.push(-4),E=1;break}default:J=!0,E=1}en=Gt+1}return it&&(J&&jt.push(-5),P&&jt.push(P),jt.push(null)),jt}}function Vo(E,P){const W=Number.parseInt(E,P);return W<9||W===11||W>13&&W<32||W>126&&W<160||W>55295&&W<57344||W>64975&&W<65008||(W&65535)===65535||(W&65535)===65534||W>1114111?"\uFFFD":String.fromCodePoint(W)}const rs=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Rr(E){return E.replace(rs,dl)}function dl(E,P,W){if(P)return P;if(W.charCodeAt(0)===35){const ge=W.charCodeAt(1),Ae=ge===120||ge===88;return Vo(W.slice(Ae?2:1),Ae?16:10)}return or(W)||E}const ws={}.hasOwnProperty;function Os(E,P,W){return typeof P!="string"&&(W=P,P=void 0),Bo(W)(an(Ui(W).document().write(Es()(E,P,!0))))}function Bo(E){const P={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:Ae(K),autolinkProtocol:dr,autolinkEmail:dr,atxHeading:Ae(Sa),blockQuote:Ae(ya),characterEscape:dr,characterReference:dr,codeFenced:Ae(zs),codeFencedFenceInfo:He,codeFencedFenceMeta:He,codeIndented:Ae(zs,He),codeText:Ae(ko,He),codeTextData:dr,data:dr,codeFlowValue:dr,definition:Ae(Ho),definitionDestinationString:He,definitionLabelString:He,definitionTitleString:He,emphasis:Ae(Zo),hardBreakEscape:Ae(Ha),hardBreakTrailing:Ae(Ha),htmlFlow:Ae(d,He),htmlFlowData:dr,htmlText:Ae(d,He),htmlTextData:dr,image:Ae(g),label:He,link:Ae(K),listItem:Ae(gn),listItemValue:Gt,listOrdered:Ae(nt,en),listUnordered:Ae(nt),paragraph:Ae(Yn),reference:un,referenceString:He,resourceDestinationString:He,resourceTitleString:He,setextHeading:Ae(Sa),strong:Ae(wi),thematicBreak:Ae(Hr)},exit:{atxHeading:jt(),atxHeadingSequence:Xr,autolink:jt(),autolinkEmail:ta,autolinkProtocol:qo,blockQuote:jt(),characterEscapeValue:Qi,characterReferenceMarkerHexadecimal:Ta,characterReferenceMarkerNumeric:Ta,characterReferenceValue:es,characterReference:Fo,codeFenced:jt(ji),codeFencedFence:ki,codeFencedFenceInfo:wt,codeFencedFenceMeta:ii,codeFlowValue:Qi,codeIndented:jt(si),codeText:jt(Gi),codeTextData:Qi,data:Qi,definition:jt(),definitionDestinationString:Mr,definitionLabelString:vi,definitionTitleString:Pi,emphasis:jt(),hardBreakEscape:jt(to),hardBreakTrailing:jt(to),htmlFlow:jt(pr),htmlFlowData:Qi,htmlText:jt(_r),htmlTextData:Qi,image:jt(vr),label:ho,labelText:sr,lineEnding:oo,link:jt(ir),listItem:jt(),listOrdered:jt(),listUnordered:jt(),paragraph:jt(),referenceString:da,resourceDestinationString:$t,resourceTitleString:zr,resource:fo,setextHeading:jt(bo),setextHeadingLineSequence:io,setextHeadingText:ui,strong:jt(),thematicBreak:jt()}};fl(P,(E||{}).mdastExtensions||[]);const W={};return J;function J(Gn){let Hi={type:"root",children:[]};const Or={stack:[Hi],tokenStack:[],config:P,enter:it,exit:Qt,buffer:He,resume:bt,data:W},Vr=[];let $o=-1;for(;++$o<Gn.length;)if(Gn[$o][1].type==="listOrdered"||Gn[$o][1].type==="listUnordered")if(Gn[$o][0]==="enter")Vr.push($o);else{const Rs=Vr.pop();$o=ge(Gn,Rs,$o)}for($o=-1;++$o<Gn.length;){const Rs=P[Gn[$o][0]];ws.call(Rs,Gn[$o][1].type)&&Rs[Gn[$o][1].type].call(Object.assign({sliceSerialize:Gn[$o][2].sliceSerialize},Or),Gn[$o][1])}if(Or.tokenStack.length>0){const Rs=Or.tokenStack[Or.tokenStack.length-1];(Rs[1]||qa).call(Or,void 0,Rs[0])}for(Hi.position={start:Ia(Gn.length>0?Gn[0][1].start:{line:1,column:1,offset:0}),end:Ia(Gn.length>0?Gn[Gn.length-2][1].end:{line:1,column:1,offset:0})},$o=-1;++$o<P.transforms.length;)Hi=P.transforms[$o](Hi)||Hi;return Hi}function ge(Gn,Hi,Or){let Vr=Hi-1,$o=-1,Rs=!1,Ds,Ps,ol,Ts;for(;++Vr<=Or;){const po=Gn[Vr];switch(po[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{po[0]==="enter"?$o++:$o--,Ts=void 0;break}case"lineEndingBlank":{po[0]==="enter"&&(Ds&&!Ts&&!$o&&!ol&&(ol=Vr),Ts=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ts=void 0}if(!$o&&po[0]==="enter"&&po[1].type==="listItemPrefix"||$o===-1&&po[0]==="exit"&&(po[1].type==="listUnordered"||po[1].type==="listOrdered")){if(Ds){let ra=Vr;for(Ps=void 0;ra--;){const Na=Gn[ra];if(Na[1].type==="lineEnding"||Na[1].type==="lineEndingBlank"){if(Na[0]==="exit")continue;Ps&&(Gn[Ps][1].type="lineEndingBlank",Rs=!0),Na[1].type="lineEnding",Ps=ra}else if(!(Na[1].type==="linePrefix"||Na[1].type==="blockQuotePrefix"||Na[1].type==="blockQuotePrefixWhitespace"||Na[1].type==="blockQuoteMarker"||Na[1].type==="listItemIndent"))break}ol&&(!Ps||ol<Ps)&&(Ds._spread=!0),Ds.end=Object.assign({},Ps?Gn[Ps][1].start:po[1].end),Gn.splice(Ps||Vr,0,["exit",Ds,po[2]]),Vr++,Or++}if(po[1].type==="listItemPrefix"){const ra={type:"listItem",_spread:!1,start:Object.assign({},po[1].start),end:void 0};Ds=ra,Gn.splice(Vr,0,["enter",ra,po[2]]),Vr++,Or++,ol=void 0,Ts=!0}}}return Gn[Hi][1]._spread=Rs,Or}function Ae(Gn,Hi){return Or;function Or(Vr){it.call(this,Gn(Vr),Vr),Hi&&Hi.call(this,Vr)}}function He(){this.stack.push({type:"fragment",children:[]})}function it(Gn,Hi,Or){this.stack[this.stack.length-1].children.push(Gn),this.stack.push(Gn),this.tokenStack.push([Hi,Or||void 0]),Gn.position={start:Ia(Hi.start),end:void 0}}function jt(Gn){return Hi;function Hi(Or){Gn&&Gn.call(this,Or),Qt.call(this,Or)}}function Qt(Gn,Hi){const Or=this.stack.pop(),Vr=this.tokenStack.pop();if(Vr)Vr[0].type!==Gn.type&&(Hi?Hi.call(this,Gn,Vr[0]):(Vr[1]||qa).call(this,Gn,Vr[0]));else throw new Error("Cannot close `"+Gn.type+"` ("+ke({start:Gn.start,end:Gn.end})+"): it\u2019s not open");Or.position.end=Ia(Gn.end)}function bt(){return $e(this.stack.pop())}function en(){this.data.expectingFirstListItemValue=!0}function Gt(Gn){if(this.data.expectingFirstListItemValue){const Hi=this.stack[this.stack.length-2];Hi.start=Number.parseInt(this.sliceSerialize(Gn),10),this.data.expectingFirstListItemValue=void 0}}function wt(){const Gn=this.resume(),Hi=this.stack[this.stack.length-1];Hi.lang=Gn}function ii(){const Gn=this.resume(),Hi=this.stack[this.stack.length-1];Hi.meta=Gn}function ki(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function ji(){const Gn=this.resume(),Hi=this.stack[this.stack.length-1];Hi.value=Gn.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function si(){const Gn=this.resume(),Hi=this.stack[this.stack.length-1];Hi.value=Gn.replace(/(\r?\n|\r)$/g,"")}function vi(Gn){const Hi=this.resume(),Or=this.stack[this.stack.length-1];Or.label=Hi,Or.identifier=Jt(this.sliceSerialize(Gn)).toLowerCase()}function Pi(){const Gn=this.resume(),Hi=this.stack[this.stack.length-1];Hi.title=Gn}function Mr(){const Gn=this.resume(),Hi=this.stack[this.stack.length-1];Hi.url=Gn}function Xr(Gn){const Hi=this.stack[this.stack.length-1];if(!Hi.depth){const Or=this.sliceSerialize(Gn).length;Hi.depth=Or}}function ui(){this.data.setextHeadingSlurpLineEnding=!0}function io(Gn){const Hi=this.stack[this.stack.length-1];Hi.depth=this.sliceSerialize(Gn).codePointAt(0)===61?1:2}function bo(){this.data.setextHeadingSlurpLineEnding=void 0}function dr(Gn){const Or=this.stack[this.stack.length-1].children;let Vr=Or[Or.length-1];(!Vr||Vr.type!=="text")&&(Vr=Cr(),Vr.position={start:Ia(Gn.start),end:void 0},Or.push(Vr)),this.stack.push(Vr)}function Qi(Gn){const Hi=this.stack.pop();Hi.value+=this.sliceSerialize(Gn),Hi.position.end=Ia(Gn.end)}function oo(Gn){const Hi=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Or=Hi.children[Hi.children.length-1];Or.position.end=Ia(Gn.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&P.canContainEols.includes(Hi.type)&&(dr.call(this,Gn),Qi.call(this,Gn))}function to(){this.data.atHardBreak=!0}function pr(){const Gn=this.resume(),Hi=this.stack[this.stack.length-1];Hi.value=Gn}function _r(){const Gn=this.resume(),Hi=this.stack[this.stack.length-1];Hi.value=Gn}function Gi(){const Gn=this.resume(),Hi=this.stack[this.stack.length-1];Hi.value=Gn}function ir(){const Gn=this.stack[this.stack.length-1];if(this.data.inReference){const Hi=this.data.referenceType||"shortcut";Gn.type+="Reference",Gn.referenceType=Hi,delete Gn.url,delete Gn.title}else delete Gn.identifier,delete Gn.label;this.data.referenceType=void 0}function vr(){const Gn=this.stack[this.stack.length-1];if(this.data.inReference){const Hi=this.data.referenceType||"shortcut";Gn.type+="Reference",Gn.referenceType=Hi,delete Gn.url,delete Gn.title}else delete Gn.identifier,delete Gn.label;this.data.referenceType=void 0}function sr(Gn){const Hi=this.sliceSerialize(Gn),Or=this.stack[this.stack.length-2];Or.label=Rr(Hi),Or.identifier=Jt(Hi).toLowerCase()}function ho(){const Gn=this.stack[this.stack.length-1],Hi=this.resume(),Or=this.stack[this.stack.length-1];if(this.data.inReference=!0,Or.type==="link"){const Vr=Gn.children;Or.children=Vr}else Or.alt=Hi}function $t(){const Gn=this.resume(),Hi=this.stack[this.stack.length-1];Hi.url=Gn}function zr(){const Gn=this.resume(),Hi=this.stack[this.stack.length-1];Hi.title=Gn}function fo(){this.data.inReference=void 0}function un(){this.data.referenceType="collapsed"}function da(Gn){const Hi=this.resume(),Or=this.stack[this.stack.length-1];Or.label=Hi,Or.identifier=Jt(this.sliceSerialize(Gn)).toLowerCase(),this.data.referenceType="full"}function Ta(Gn){this.data.characterReferenceType=Gn.type}function es(Gn){const Hi=this.sliceSerialize(Gn),Or=this.data.characterReferenceType;let Vr;Or?(Vr=Vo(Hi,Or==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Vr=or(Hi);const $o=this.stack[this.stack.length-1];$o.value+=Vr}function Fo(Gn){const Hi=this.stack.pop();Hi.position.end=Ia(Gn.end)}function qo(Gn){Qi.call(this,Gn);const Hi=this.stack[this.stack.length-1];Hi.url=this.sliceSerialize(Gn)}function ta(Gn){Qi.call(this,Gn);const Hi=this.stack[this.stack.length-1];Hi.url="mailto:"+this.sliceSerialize(Gn)}function ya(){return{type:"blockquote",children:[]}}function zs(){return{type:"code",lang:null,meta:null,value:""}}function ko(){return{type:"inlineCode",value:""}}function Ho(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Zo(){return{type:"emphasis",children:[]}}function Sa(){return{type:"heading",depth:0,children:[]}}function Ha(){return{type:"break"}}function d(){return{type:"html",value:""}}function g(){return{type:"image",title:null,url:"",alt:null}}function K(){return{type:"link",title:null,url:"",children:[]}}function nt(Gn){return{type:"list",ordered:Gn.type==="listOrdered",start:null,spread:Gn._spread,children:[]}}function gn(Gn){return{type:"listItem",spread:Gn._spread,checked:null,children:[]}}function Yn(){return{type:"paragraph",children:[]}}function wi(){return{type:"strong",children:[]}}function Cr(){return{type:"text",value:""}}function Hr(){return{type:"thematicBreak"}}}function Ia(E){return{line:E.line,column:E.column,offset:E.offset}}function fl(E,P){let W=-1;for(;++W<P.length;){const J=P[W];Array.isArray(J)?fl(E,J):ja(E,J)}}function ja(E,P){let W;for(W in P)if(ws.call(P,W))switch(W){case"canContainEols":{const J=P[W];J&&E[W].push(...J);break}case"transforms":{const J=P[W];J&&E[W].push(...J);break}case"enter":case"exit":{const J=P[W];J&&Object.assign(E[W],J);break}}}function qa(E,P){throw E?new Error("Cannot close `"+E.type+"` ("+ke({start:E.start,end:E.end})+"): a different token (`"+P.type+"`, "+ke({start:P.start,end:P.end})+") is open"):new Error("Cannot close document, a token (`"+P.type+"`, "+ke({start:P.start,end:P.end})+") is still open")}function Rl(E){const P=this;P.parser=W;function W(J){return Os(J,cd(Po(Po({},P.data("settings")),E),{extensions:P.data("micromarkExtensions")||[],mdastExtensions:P.data("fromMarkdownExtensions")||[]}))}}var _o=h(90302);function il(E,P){const W=encode(rl(E||""));if(!P)return W;const J=W.indexOf(":"),ge=W.indexOf("?"),Ae=W.indexOf("#"),He=W.indexOf("/");return J<0||He>-1&&J>He||ge>-1&&J>ge||Ae>-1&&J>Ae||P.test(W.slice(0,J))?W:""}function rl(E){const P=[];let W=-1,J=0,ge=0;for(;++W<E.length;){const Ae=E.charCodeAt(W);let He="";if(Ae===37&&(0,Bt.H$)(E.charCodeAt(W+1))&&(0,Bt.H$)(E.charCodeAt(W+2)))ge=2;else if(Ae<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(Ae))||(He=String.fromCharCode(Ae));else if(Ae>55295&&Ae<57344){const it=E.charCodeAt(W+1);Ae<56320&&it>56319&&it<57344?(He=String.fromCharCode(Ae,it),ge=1):He="\uFFFD"}else He=String.fromCharCode(Ae);He&&(P.push(E.slice(J,W),encodeURIComponent(He)),J=W+ge+1,He=""),ge&&(W+=ge,ge=0)}return P.join("")+E.slice(J)}function hu(E,P){const W=[{type:"text",value:"\u21A9"}];return P>1&&W.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(P)}]}),W}function Ga(E,P){return"Back to reference "+(E+1)+(P>1?"-"+P:"")}function os(E){const P=typeof E.options.clobberPrefix=="string"?E.options.clobberPrefix:"user-content-",W=E.options.footnoteBackContent||hu,J=E.options.footnoteBackLabel||Ga,ge=E.options.footnoteLabel||"Footnotes",Ae=E.options.footnoteLabelTagName||"h2",He=E.options.footnoteLabelProperties||{className:["sr-only"]},it=[];let jt=-1;for(;++jt<E.footnoteOrder.length;){const Qt=E.footnoteById.get(E.footnoteOrder[jt]);if(!Qt)continue;const bt=E.all(Qt),en=String(Qt.identifier).toUpperCase(),Gt=rl(en.toLowerCase());let wt=0;const ii=[],ki=E.footnoteCounts.get(en);for(;ki!==void 0&&++wt<=ki;){ii.length>0&&ii.push({type:"text",value:" "});let vi=typeof W=="string"?W:W(jt,wt);typeof vi=="string"&&(vi={type:"text",value:vi}),ii.push({type:"element",tagName:"a",properties:{href:"#"+P+"fnref-"+Gt+(wt>1?"-"+wt:""),dataFootnoteBackref:"",ariaLabel:typeof J=="string"?J:J(jt,wt),className:["data-footnote-backref"]},children:Array.isArray(vi)?vi:[vi]})}const ji=bt[bt.length-1];if(ji&&ji.type==="element"&&ji.tagName==="p"){const vi=ji.children[ji.children.length-1];vi&&vi.type==="text"?vi.value+=" ":ji.children.push({type:"text",value:" "}),ji.children.push(...ii)}else bt.push(...ii);const si={type:"element",tagName:"li",properties:{id:P+"fn-"+Gt},children:E.wrap(bt,!0)};E.patch(Qt,si),it.push(si)}if(it.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:Ae,properties:cd(Po({},(0,_o.ZP)(He)),{id:"footnote-label"}),children:[{type:"text",value:ge}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:E.wrap(it,!0)},{type:"text",value:`
`}]}}var _s=h(10528);function Vi(E,P){const W={type:"element",tagName:"blockquote",properties:{},children:E.wrap(E.all(P),!0)};return E.patch(P,W),E.applyData(P,W)}function Cs(E,P){const W={type:"element",tagName:"br",properties:{},children:[]};return E.patch(P,W),[E.applyData(P,W),{type:"text",value:`
`}]}function jl(E,P){const W=P.value?P.value+`
`:"",J={};P.lang&&(J.className=["language-"+P.lang]);let ge={type:"element",tagName:"code",properties:J,children:[{type:"text",value:W}]};return P.meta&&(ge.data={meta:P.meta}),E.patch(P,ge),ge=E.applyData(P,ge),ge={type:"element",tagName:"pre",properties:{},children:[ge]},E.patch(P,ge),ge}function Kr(E,P){const W={type:"element",tagName:"del",properties:{},children:E.all(P)};return E.patch(P,W),E.applyData(P,W)}function wo(E,P){const W={type:"element",tagName:"em",properties:{},children:E.all(P)};return E.patch(P,W),E.applyData(P,W)}function ha(E,P){const W=typeof E.options.clobberPrefix=="string"?E.options.clobberPrefix:"user-content-",J=String(P.identifier).toUpperCase(),ge=rl(J.toLowerCase()),Ae=E.footnoteOrder.indexOf(J);let He,it=E.footnoteCounts.get(J);it===void 0?(it=0,E.footnoteOrder.push(J),He=E.footnoteOrder.length):He=Ae+1,it+=1,E.footnoteCounts.set(J,it);const jt={type:"element",tagName:"a",properties:{href:"#"+W+"fn-"+ge,id:W+"fnref-"+ge+(it>1?"-"+it:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(He)}]};E.patch(P,jt);const Qt={type:"element",tagName:"sup",properties:{},children:[jt]};return E.patch(P,Qt),E.applyData(P,Qt)}function aa(E,P){const W={type:"element",tagName:"h"+P.depth,properties:{},children:E.all(P)};return E.patch(P,W),E.applyData(P,W)}function ro(E,P){if(E.options.allowDangerousHtml){const W={type:"raw",value:P.value};return E.patch(P,W),E.applyData(P,W)}}function ia(E,P){const W=P.referenceType;let J="]";if(W==="collapsed"?J+="[]":W==="full"&&(J+="["+(P.label||P.identifier)+"]"),P.type==="imageReference")return[{type:"text",value:"!["+P.alt+J}];const ge=E.all(P),Ae=ge[0];Ae&&Ae.type==="text"?Ae.value="["+Ae.value:ge.unshift({type:"text",value:"["});const He=ge[ge.length-1];return He&&He.type==="text"?He.value+=J:ge.push({type:"text",value:J}),ge}function va(E,P){const W=String(P.identifier).toUpperCase(),J=E.definitionById.get(W);if(!J)return ia(E,P);const ge={src:rl(J.url||""),alt:P.alt};J.title!==null&&J.title!==void 0&&(ge.title=J.title);const Ae={type:"element",tagName:"img",properties:ge,children:[]};return E.patch(P,Ae),E.applyData(P,Ae)}function Ma(E,P){const W={src:rl(P.url)};P.alt!==null&&P.alt!==void 0&&(W.alt=P.alt),P.title!==null&&P.title!==void 0&&(W.title=P.title);const J={type:"element",tagName:"img",properties:W,children:[]};return E.patch(P,J),E.applyData(P,J)}function Oa(E,P){const W={type:"text",value:P.value.replace(/\r?\n|\r/g," ")};E.patch(P,W);const J={type:"element",tagName:"code",properties:{},children:[W]};return E.patch(P,J),E.applyData(P,J)}function Gl(E,P){const W=String(P.identifier).toUpperCase(),J=E.definitionById.get(W);if(!J)return ia(E,P);const ge={href:rl(J.url||"")};J.title!==null&&J.title!==void 0&&(ge.title=J.title);const Ae={type:"element",tagName:"a",properties:ge,children:E.all(P)};return E.patch(P,Ae),E.applyData(P,Ae)}function Vs(E,P){const W={href:rl(P.url)};P.title!==null&&P.title!==void 0&&(W.title=P.title);const J={type:"element",tagName:"a",properties:W,children:E.all(P)};return E.patch(P,J),E.applyData(P,J)}function wa(E,P,W){const J=E.all(P),ge=W?hc(W):zu(P),Ae={},He=[];if(typeof P.checked=="boolean"){const bt=J[0];let en;bt&&bt.type==="element"&&bt.tagName==="p"?en=bt:(en={type:"element",tagName:"p",properties:{},children:[]},J.unshift(en)),en.children.length>0&&en.children.unshift({type:"text",value:" "}),en.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:P.checked,disabled:!0},children:[]}),Ae.className=["task-list-item"]}let it=-1;for(;++it<J.length;){const bt=J[it];(ge||it!==0||bt.type!=="element"||bt.tagName!=="p")&&He.push({type:"text",value:`
`}),bt.type==="element"&&bt.tagName==="p"&&!ge?He.push(...bt.children):He.push(bt)}const jt=J[J.length-1];jt&&(ge||jt.type!=="element"||jt.tagName!=="p")&&He.push({type:"text",value:`
`});const Qt={type:"element",tagName:"li",properties:Ae,children:He};return E.patch(P,Qt),E.applyData(P,Qt)}function hc(E){let P=!1;if(E.type==="list"){P=E.spread||!1;const W=E.children;let J=-1;for(;!P&&++J<W.length;)P=zu(W[J])}return P}function zu(E){const P=E.spread;return P==null?E.children.length>1:P}function du(E,P){const W={},J=E.all(P);let ge=-1;for(typeof P.start=="number"&&P.start!==1&&(W.start=P.start);++ge<J.length;){const He=J[ge];if(He.type==="element"&&He.tagName==="li"&&He.properties&&Array.isArray(He.properties.className)&&He.properties.className.includes("task-list-item")){W.className=["contains-task-list"];break}}const Ae={type:"element",tagName:P.ordered?"ol":"ul",properties:W,children:E.wrap(J,!0)};return E.patch(P,Ae),E.applyData(P,Ae)}function nr(E,P){const W={type:"element",tagName:"p",properties:{},children:E.all(P)};return E.patch(P,W),E.applyData(P,W)}function Ks(E,P){const W={type:"root",children:E.wrap(E.all(P))};return E.patch(P,W),E.applyData(P,W)}function qe(E,P){const W={type:"element",tagName:"strong",properties:{},children:E.all(P)};return E.patch(P,W),E.applyData(P,W)}function Dn(E,P){const W=E.all(P),J=W.shift(),ge=[];if(J){const He={type:"element",tagName:"thead",properties:{},children:E.wrap([J],!0)};E.patch(P.children[0],He),ge.push(He)}if(W.length>0){const He={type:"element",tagName:"tbody",properties:{},children:E.wrap(W,!0)},it=(0,pe.Pk)(P.children[1]),jt=(0,pe.rb)(P.children[P.children.length-1]);it&&jt&&(He.position={start:it,end:jt}),ge.push(He)}const Ae={type:"element",tagName:"table",properties:{},children:E.wrap(ge,!0)};return E.patch(P,Ae),E.applyData(P,Ae)}function Cu(E,P,W){const J=W?W.children:void 0,Ae=(J?J.indexOf(P):1)===0?"th":"td",He=W&&W.type==="table"?W.align:void 0,it=He?He.length:P.children.length;let jt=-1;const Qt=[];for(;++jt<it;){const en=P.children[jt],Gt={},wt=He?He[jt]:void 0;wt&&(Gt.align=wt);let ii={type:"element",tagName:Ae,properties:Gt,children:[]};en&&(ii.children=E.all(en),E.patch(en,ii),ii=E.applyData(en,ii)),Qt.push(ii)}const bt={type:"element",tagName:"tr",properties:{},children:E.wrap(Qt,!0)};return E.patch(P,bt),E.applyData(P,bt)}function Yu(E,P){const W={type:"element",tagName:"td",properties:{},children:E.all(P)};return E.patch(P,W),E.applyData(P,W)}const pl=9,ml=32;function gl(E){const P=String(E),W=/\r?\n|\r/g;let J=W.exec(P),ge=0;const Ae=[];for(;J;)Ae.push(Xu(P.slice(ge,J.index),ge>0,!0),J[0]),ge=J.index+J[0].length,J=W.exec(P);return Ae.push(Xu(P.slice(ge),ge>0,!1)),Ae.join("")}function Xu(E,P,W){let J=0,ge=E.length;if(P){let Ae=E.codePointAt(J);for(;Ae===pl||Ae===ml;)J++,Ae=E.codePointAt(J)}if(W){let Ae=E.codePointAt(ge-1);for(;Ae===pl||Ae===ml;)ge--,Ae=E.codePointAt(ge-1)}return ge>J?E.slice(J,ge):""}function Tu(E,P){const W={type:"text",value:gl(String(P.value))};return E.patch(P,W),E.applyData(P,W)}function Ca(E,P){const W={type:"element",tagName:"hr",properties:{},children:[]};return E.patch(P,W),E.applyData(P,W)}const Dr={blockquote:Vi,break:Cs,code:jl,delete:Kr,emphasis:wo,footnoteReference:ha,heading:aa,html:ro,imageReference:va,image:Ma,inlineCode:Oa,linkReference:Gl,link:Vs,listItem:wa,list:du,paragraph:nr,root:Ks,strong:qe,table:Dn,tableCell:Yu,tableRow:Cu,text:Tu,thematicBreak:Ca,toml:fs,yaml:fs,definition:fs,footnoteDefinition:fs};function fs(){}const as={}.hasOwnProperty,Eo={};function vo(E,P){const W=P||Eo,J=new Map,ge=new Map,Ae=new Map,He=Po(Po({},Dr),W.handlers),it={all:Qt,applyData:js,definitionById:J,footnoteById:ge,footnoteCounts:Ae,footnoteOrder:[],handlers:He,one:jt,options:W,patch:Wa,wrap:Gs};return(0,_s.Vn)(E,function(bt){if(bt.type==="definition"||bt.type==="footnoteDefinition"){const en=bt.type==="definition"?J:ge,Gt=String(bt.identifier).toUpperCase();en.has(Gt)||en.set(Gt,bt)}}),it;function jt(bt,en){const Gt=bt.type,wt=it.handlers[Gt];if(as.call(it.handlers,Gt)&&wt)return wt(it,bt,en);if(it.options.passThrough&&it.options.passThrough.includes(Gt)){if("children"in bt){const ki=bt,{children:ji}=ki,si=Ib(ki,["children"]),vi=(0,_o.ZP)(si);return vi.children=it.all(bt),vi}return(0,_o.ZP)(bt)}return(it.options.unknownHandler||sa)(it,bt,en)}function Qt(bt){const en=[];if("children"in bt){const Gt=bt.children;let wt=-1;for(;++wt<Gt.length;){const ii=it.one(Gt[wt],bt);if(ii){if(wt&&Gt[wt-1].type==="break"&&(!Array.isArray(ii)&&ii.type==="text"&&(ii.value=Va(ii.value)),!Array.isArray(ii)&&ii.type==="element")){const ki=ii.children[0];ki&&ki.type==="text"&&(ki.value=Va(ki.value))}Array.isArray(ii)?en.push(...ii):en.push(ii)}}}return en}}function Wa(E,P){E.position&&(P.position=(0,pe.FK)(E))}function js(E,P){let W=P;if(E&&E.data){const J=E.data.hName,ge=E.data.hChildren,Ae=E.data.hProperties;if(typeof J=="string")if(W.type==="element")W.tagName=J;else{const He="children"in W?W.children:[W];W={type:"element",tagName:J,properties:{},children:He}}W.type==="element"&&Ae&&Object.assign(W.properties,(0,_o.ZP)(Ae)),"children"in W&&W.children&&ge!==null&&ge!==void 0&&(W.children=ge)}return W}function sa(E,P){const W=P.data||{},J="value"in P&&!(as.call(W,"hProperties")||as.call(W,"hChildren"))?{type:"text",value:P.value}:{type:"element",tagName:"div",properties:{},children:E.all(P)};return E.patch(P,J),E.applyData(P,J)}function Gs(E,P){const W=[];let J=-1;for(P&&W.push({type:"text",value:`
`});++J<E.length;)J&&W.push({type:"text",value:`
`}),W.push(E[J]);return P&&E.length>0&&W.push({type:"text",value:`
`}),W}function Va(E){let P=0,W=E.charCodeAt(P);for(;W===9||W===32;)P++,W=E.charCodeAt(P);return E.slice(P)}function eu(E,P){const W=vo(E,P),J=W.one(E,void 0),ge=os(W),Ae=Array.isArray(J)?{type:"root",children:J}:J||{type:"root",children:[]};return ge&&((0,I.ok)("children"in Ae),Ae.children.push({type:"text",value:`
`},ge)),Ae}function Ro(E,P){return E&&"run"in E?function(W,J){return iy(this,null,function*(){const ge=eu(W,Po({file:J},P));yield E.run(ge,J)})}:function(W,J){return eu(W,Po({file:J},E||P))}}function vs(E){if(E)throw E}var So=h(58847);function Ko(E){if(typeof E!="object"||E===null)return!1;const P=Object.getPrototypeOf(E);return(P===null||P===Object.prototype||Object.getPrototypeOf(P)===null)&&!(Symbol.toStringTag in E)&&!(Symbol.iterator in E)}function la(){const E=[],P={run:W,use:J};return P;function W(...ge){let Ae=-1;const He=ge.pop();if(typeof He!="function")throw new TypeError("Expected function as last argument, not "+He);it(null,...ge);function it(jt,...Qt){const bt=E[++Ae];let en=-1;if(jt){He(jt);return}for(;++en<ge.length;)(Qt[en]===null||Qt[en]===void 0)&&(Qt[en]=ge[en]);ge=Qt,bt?La(bt,it)(...Qt):He(null,...Qt)}}function J(ge){if(typeof ge!="function")throw new TypeError("Expected `middelware` to be a function, not "+ge);return E.push(ge),P}}function La(E,P){let W;return J;function J(...He){const it=E.length>He.length;let jt;it&&He.push(ge);try{jt=E.apply(this,He)}catch(Qt){const bt=Qt;if(it&&W)throw bt;return ge(bt)}it||(jt&&jt.then&&typeof jt.then=="function"?jt.then(Ae,ge):jt instanceof Error?ge(jt):Ae(jt))}function ge(He,...it){W||(W=!0,P(He,...it))}function Ae(He){ge(null,He)}}const yo={basename:fu,dirname:Ir,extname:dc,join:Co,sep:"/"};function fu(E,P){if(P!==void 0&&typeof P!="string")throw new TypeError('"ext" argument must be a string');tu(E);let W=0,J=-1,ge=E.length,Ae;if(P===void 0||P.length===0||P.length>E.length){for(;ge--;)if(E.codePointAt(ge)===47){if(Ae){W=ge+1;break}}else J<0&&(Ae=!0,J=ge+1);return J<0?"":E.slice(W,J)}if(P===E)return"";let He=-1,it=P.length-1;for(;ge--;)if(E.codePointAt(ge)===47){if(Ae){W=ge+1;break}}else He<0&&(Ae=!0,He=ge+1),it>-1&&(E.codePointAt(ge)===P.codePointAt(it--)?it<0&&(J=ge):(it=-1,J=He));return W===J?J=He:J<0&&(J=E.length),E.slice(W,J)}function Ir(E){if(tu(E),E.length===0)return".";let P=-1,W=E.length,J;for(;--W;)if(E.codePointAt(W)===47){if(J){P=W;break}}else J||(J=!0);return P<0?E.codePointAt(0)===47?"/":".":P===1&&E.codePointAt(0)===47?"//":E.slice(0,P)}function dc(E){tu(E);let P=E.length,W=-1,J=0,ge=-1,Ae=0,He;for(;P--;){const it=E.codePointAt(P);if(it===47){if(He){J=P+1;break}continue}W<0&&(He=!0,W=P+1),it===46?ge<0?ge=P:Ae!==1&&(Ae=1):ge>-1&&(Ae=-1)}return ge<0||W<0||Ae===0||Ae===1&&ge===W-1&&ge===J+1?"":E.slice(ge,W)}function Co(...E){let P=-1,W;for(;++P<E.length;)tu(E[P]),E[P]&&(W=W===void 0?E[P]:W+"/"+E[P]);return W===void 0?".":Qu(W)}function Qu(E){tu(E);const P=E.codePointAt(0)===47;let W=Ju(E,!P);return W.length===0&&!P&&(W="."),W.length>0&&E.codePointAt(E.length-1)===47&&(W+="/"),P?"/"+W:W}function Ju(E,P){let W="",J=0,ge=-1,Ae=0,He=-1,it,jt;for(;++He<=E.length;){if(He<E.length)it=E.codePointAt(He);else{if(it===47)break;it=47}if(it===47){if(!(ge===He-1||Ae===1))if(ge!==He-1&&Ae===2){if(W.length<2||J!==2||W.codePointAt(W.length-1)!==46||W.codePointAt(W.length-2)!==46){if(W.length>2){if(jt=W.lastIndexOf("/"),jt!==W.length-1){jt<0?(W="",J=0):(W=W.slice(0,jt),J=W.length-1-W.lastIndexOf("/")),ge=He,Ae=0;continue}}else if(W.length>0){W="",J=0,ge=He,Ae=0;continue}}P&&(W=W.length>0?W+"/..":"..",J=2)}else W.length>0?W+="/"+E.slice(ge+1,He):W=E.slice(ge+1,He),J=He-ge-1;ge=He,Ae=0}else it===46&&Ae>-1?Ae++:Ae=-1}return W}function tu(E){if(typeof E!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(E))}const wc={cwd:Uu};function Uu(){return"/"}function vl(E){return!!(E!==null&&typeof E=="object"&&"href"in E&&E.href&&"protocol"in E&&E.protocol&&E.auth===void 0)}function Zs(E){if(typeof E=="string")E=new URL(E);else if(!vl(E)){const P=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+E+"`");throw P.code="ERR_INVALID_ARG_TYPE",P}if(E.protocol!=="file:"){const P=new TypeError("The URL must be of scheme file");throw P.code="ERR_INVALID_URL_SCHEME",P}return Ao(E)}function Ao(E){if(E.hostname!==""){const J=new TypeError('File URL host must be "localhost" or empty on darwin');throw J.code="ERR_INVALID_FILE_URL_HOST",J}const P=E.pathname;let W=-1;for(;++W<P.length;)if(P.codePointAt(W)===37&&P.codePointAt(W+1)===50){const J=P.codePointAt(W+2);if(J===70||J===102){const ge=new TypeError("File URL path must not include encoded / characters");throw ge.code="ERR_INVALID_FILE_URL_PATH",ge}}return decodeURIComponent(P)}const Ls=["history","path","basename","stem","extname","dirname"];class qu{constructor(P){let W;P?vl(P)?W={path:P}:typeof P=="string"||xl(P)?W={value:P}:W=P:W={},this.cwd="cwd"in W?"":wc.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let J=-1;for(;++J<Ls.length;){const Ae=Ls[J];Ae in W&&W[Ae]!==void 0&&W[Ae]!==null&&(this[Ae]=Ae==="history"?[...W[Ae]]:W[Ae])}let ge;for(ge in W)Ls.includes(ge)||(this[ge]=W[ge])}get basename(){return typeof this.path=="string"?yo.basename(this.path):void 0}set basename(P){yl(P,"basename"),Dl(P,"basename"),this.path=yo.join(this.dirname||"",P)}get dirname(){return typeof this.path=="string"?yo.dirname(this.path):void 0}set dirname(P){bl(this.basename,"dirname"),this.path=yo.join(P||"",this.basename)}get extname(){return typeof this.path=="string"?yo.extname(this.path):void 0}set extname(P){if(Dl(P,"extname"),bl(this.dirname,"extname"),P){if(P.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(P.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=yo.join(this.dirname,this.stem+(P||""))}get path(){return this.history[this.history.length-1]}set path(P){vl(P)&&(P=Zs(P)),yl(P,"path"),this.path!==P&&this.history.push(P)}get stem(){return typeof this.path=="string"?yo.basename(this.path,this.extname):void 0}set stem(P){yl(P,"stem"),Dl(P,"stem"),this.path=yo.join(this.dirname||"",P+(this.extname||""))}fail(P,W,J){const ge=this.message(P,W,J);throw ge.fatal=!0,ge}info(P,W,J){const ge=this.message(P,W,J);return ge.fatal=void 0,ge}message(P,W,J){const ge=new Le(P,W,J);return this.path&&(ge.name=this.path+":"+ge.name,ge.file=this.path),ge.fatal=!1,this.messages.push(ge),ge}toString(P){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(P||void 0).decode(this.value)}}function Dl(E,P){if(E&&E.includes(yo.sep))throw new Error("`"+P+"` cannot be a path: did not expect `"+yo.sep+"`")}function yl(E,P){if(!E)throw new Error("`"+P+"` cannot be empty")}function bl(E,P){if(!E)throw new Error("Setting `"+P+"` requires `path` to be set too")}function xl(E){return!!(E&&typeof E=="object"&&"byteLength"in E&&"byteOffset"in E)}const pu=function(E){const J=this.constructor.prototype,ge=J[E],Ae=function(){return ge.apply(Ae,arguments)};return Object.setPrototypeOf(Ae,J),Ae},Ys={}.hasOwnProperty;class Wl extends pu{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=la()}copy(){const P=new Wl;let W=-1;for(;++W<this.attachers.length;){const J=this.attachers[W];P.use(...J)}return P.data(So(!0,{},this.namespace)),P}data(P,W){return typeof P=="string"?arguments.length===2?(Ws("data",this.frozen),this.namespace[P]=W,this):Ys.call(this.namespace,P)&&this.namespace[P]||void 0:P?(Ws("data",this.frozen),this.namespace=P,this):this.namespace}freeze(){if(this.frozen)return this;const P=this;for(;++this.freezeIndex<this.attachers.length;){const[W,...J]=this.attachers[this.freezeIndex];if(J[0]===!1)continue;J[0]===!0&&(J[0]=void 0);const ge=W.call(P,...J);typeof ge=="function"&&this.transformers.use(ge)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(P){this.freeze();const W=Au(P),J=this.parser||this.Parser;return nu("parse",J),J(String(W),W)}process(P,W){const J=this;return this.freeze(),nu("process",this.parser||this.Parser),Nu("process",this.compiler||this.Compiler),W?ge(void 0,W):new Promise(ge);function ge(Ae,He){const it=Au(P),jt=J.parse(it);J.run(jt,it,function(bt,en,Gt){if(bt||!en||!Gt)return Qt(bt);const wt=en,ii=J.stringify(wt,Gt);De(ii)?Gt.value=ii:Gt.result=ii,Qt(bt,Gt)});function Qt(bt,en){bt||!en?He(bt):Ae?Ae(en):((0,I.ok)(W,"`done` is defined if `resolve` is not"),W(void 0,en))}}}processSync(P){let W=!1,J;return this.freeze(),nu("processSync",this.parser||this.Parser),Nu("processSync",this.compiler||this.Compiler),this.process(P,ge),iu("processSync","process",W),(0,I.ok)(J,"we either bailed on an error or have a tree"),J;function ge(Ae,He){W=!0,vs(Ae),J=He}}run(P,W,J){ys(P),this.freeze();const ge=this.transformers;return!J&&typeof W=="function"&&(J=W,W=void 0),J?Ae(void 0,J):new Promise(Ae);function Ae(He,it){(0,I.ok)(typeof W!="function","`file` can\u2019t be a `done` anymore, we checked");const jt=Au(W);ge.run(P,jt,Qt);function Qt(bt,en,Gt){const wt=en||P;bt?it(bt):He?He(wt):((0,I.ok)(J,"`done` is defined if `resolve` is not"),J(void 0,wt,Gt))}}}runSync(P,W){let J=!1,ge;return this.run(P,W,Ae),iu("runSync","run",J),(0,I.ok)(ge,"we either bailed on an error or have a tree"),ge;function Ae(He,it){vs(He),ge=it,J=!0}}stringify(P,W){this.freeze();const J=Au(W),ge=this.compiler||this.Compiler;return Nu("stringify",ge),ys(P),ge(P,J)}use(P,...W){const J=this.attachers,ge=this.namespace;if(Ws("use",this.frozen),P!=null)if(typeof P=="function")jt(P,W);else if(typeof P=="object")Array.isArray(P)?it(P):He(P);else throw new TypeError("Expected usable value, not `"+P+"`");return this;function Ae(Qt){if(typeof Qt=="function")jt(Qt,[]);else if(typeof Qt=="object")if(Array.isArray(Qt)){const[bt,...en]=Qt;jt(bt,en)}else He(Qt);else throw new TypeError("Expected usable value, not `"+Qt+"`")}function He(Qt){if(!("plugins"in Qt)&&!("settings"in Qt))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");it(Qt.plugins),Qt.settings&&(ge.settings=So(!0,ge.settings,Qt.settings))}function it(Qt){let bt=-1;if(Qt!=null)if(Array.isArray(Qt))for(;++bt<Qt.length;){const en=Qt[bt];Ae(en)}else throw new TypeError("Expected a list of plugins, not `"+Qt+"`")}function jt(Qt,bt){let en=-1,Gt=-1;for(;++en<J.length;)if(J[en][0]===Qt){Gt=en;break}if(Gt===-1)J.push([Qt,...bt]);else if(bt.length>0){let[wt,...ii]=bt;const ki=J[Gt][1];Ko(ki)&&Ko(wt)&&(wt=So(!0,ki,wt)),J[Gt]=[Qt,wt,...ii]}}}}const mu=new Wl().freeze();function nu(E,P){if(typeof P!="function")throw new TypeError("Cannot `"+E+"` without `parser`")}function Nu(E,P){if(typeof P!="function")throw new TypeError("Cannot `"+E+"` without `compiler`")}function Ws(E,P){if(P)throw new Error("Cannot call `"+E+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function ys(E){if(!Ko(E)||typeof E.type!="string")throw new TypeError("Expected node, got `"+E+"`")}function iu(E,P,W){if(!W)throw new Error("`"+E+"` finished async. Use `"+P+"` instead")}function Au(E){return we(E)?E:new qu(E)}function we(E){return!!(E&&typeof E=="object"&&"message"in E&&"messages"in E)}function De(E){return typeof E=="string"||dt(E)}function dt(E){return!!(E&&typeof E=="object"&&"byteLength"in E&&"byteOffset"in E)}const xt="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",_t=[],Dt={allowDangerousHtml:!0},ve=/^(https?|ircs?|mailto|xmpp)$/i,bn=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function ln(E){const P=$n(E),W=hi(E);return gi(P.runSync(P.parse(W),W),E)}function zn(E){return iy(this,null,function*(){const P=$n(E),W=hi(E),J=yield P.run(P.parse(W),W);return gi(J,E)})}function jn(E){const P=$n(E),[W,J]=useState(void 0),[ge,Ae]=useState(void 0);if(useEffect(function(){const He=hi(E);P.run(P.parse(He),He,function(it,jt){J(it),Ae(jt)})},[E.children,E.rehypePlugins,E.remarkPlugins,E.remarkRehypeOptions]),W)throw W;return ge?gi(ge,E):createElement(Fragment)}function $n(E){const P=E.rehypePlugins||_t,W=E.remarkPlugins||_t,J=E.remarkRehypeOptions?Po(Po({},E.remarkRehypeOptions),Dt):Dt;return mu().use(Rl).use(W).use(Ro,J).use(P)}function hi(E){const P=E.children||"",W=new qu;return typeof P=="string"?W.value=P:(0,I.t1)("Unexpected value `"+P+"` for `children` prop, expected `string`"),W}function gi(E,P){const W=P.allowedElements,J=P.allowElement,ge=P.components,Ae=P.disallowedElements,He=P.skipHtml,it=P.unwrapDisallowed,jt=P.urlTransform||ti;for(const bt of bn)Object.hasOwn(P,bt.from)&&(0,I.t1)("Unexpected `"+bt.from+"` prop, "+(bt.to?"use `"+bt.to+"` instead":"remove it")+" (see <"+xt+"#"+bt.id+"> for more info)");return W&&Ae&&(0,I.t1)("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),P.className&&(E={type:"element",tagName:"div",properties:{className:P.className},children:E.type==="root"?E.children:[E]}),(0,_s.Vn)(E,Qt),gt(E,{Fragment:T.Fragment,components:ge,ignoreInvalidStyle:!0,jsx:T.jsx,jsxs:T.jsxs,passKeys:!0,passNode:!0});function Qt(bt,en,Gt){if(bt.type==="raw"&&Gt&&typeof en=="number")return He?Gt.children.splice(en,1):Gt.children[en]={type:"text",value:bt.value},en;if(bt.type==="element"){let wt;for(wt in Q)if(Object.hasOwn(Q,wt)&&Object.hasOwn(bt.properties,wt)){const ii=bt.properties[wt],ki=Q[wt];(ki===null||ki.includes(bt.tagName))&&(bt.properties[wt]=jt(String(ii||""),wt,bt))}}if(bt.type==="element"){let wt=W?!W.includes(bt.tagName):Ae?Ae.includes(bt.tagName):!1;if(!wt&&J&&typeof en=="number"&&(wt=!J(bt,en,Gt)),wt&&Gt&&typeof en=="number")return it&&bt.children?Gt.children.splice(en,1,...bt.children):Gt.children.splice(en,1),en}}}function ti(E){const P=E.indexOf(":"),W=E.indexOf("?"),J=E.indexOf("#"),ge=E.indexOf("/");return P===-1||ge!==-1&&P>ge||W!==-1&&P>W||J!==-1&&P>J||ve.test(E.slice(0,P))?E:""}},35328:function(X,C,h){"use strict";h.d(C,{Z:function(){return Na}});var v=h(81994),I=h(43309);function O(A,m){return B(A,m||{})||{type:"root",children:[]}}function B(A,m){const S=G(A,m);return S&&m.afterTransform&&m.afterTransform(A,S),S}function G(A,m){switch(A.nodeType){case 1:return te(A,m);case 3:return de(A);case 8:return ae(A);case 9:return F(A,m);case 10:return M();case 11:return F(A,m);default:return}}function F(A,m){return{type:"root",children:Ne(A,m)}}function M(){return{type:"doctype"}}function de(A){return{type:"text",value:A.nodeValue||""}}function ae(A){return{type:"comment",value:A.nodeValue||""}}function te(A,m){const S=A.namespaceURI,D=S===I.t.svg?v.s:v.h,Z=S===I.t.html?A.tagName.toLowerCase():A.tagName,se=S===I.t.html&&Z==="template"?A.content:A,Y=A.getAttributeNames(),ct={};let ft=-1;for(;++ft<Y.length;)ct[Y[ft]]=A.getAttribute(Y[ft])||"";return D(Z,ct,Ne(se,m))}function Ne(A,m){const S=A.childNodes,D=[];let Z=-1;for(;++Z<S.length;){const se=B(S[Z],m);se!==void 0&&D.push(se)}return D}const Ee=new DOMParser;function Xe(A,m){const S=m!=null&&m.fragment?Oe(A):Ee.parseFromString(A,"text/html");return O(S)}function Oe(A){const m=document.createElement("template");return m.innerHTML=A,m.content}var Ce=h(10502);const Ie=function(A,m,S){const D=(0,Ce.O)(S);if(!A||!A.type||!A.children)throw new Error("Expected parent node");if(typeof m=="number"){if(m<0||m===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(m=A.children.indexOf(m),m<0)throw new Error("Expected child node or index");for(;++m<A.children.length;)if(D(A.children[m],m,A))return A.children[m]},Re=function(A,m,S,D,Z){const se=fe(m);if(S!=null&&(typeof S!="number"||S<0||S===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite `index`");if(D!=null&&(!D.type||!D.children))throw new Error("Expected valid `parent`");if(S==null!=(D==null))throw new Error("Expected both `index` and `parent`");return ee(A)?se.call(Z,A,S,D):!1},fe=function(A){if(A==null)return ke;if(typeof A=="string")return ye(A);if(typeof A=="object")return me(A);if(typeof A=="function")return pe(A);throw new Error("Expected function, string, or array as `test`")};function me(A){const m=[];let S=-1;for(;++S<A.length;)m[S]=fe(A[S]);return pe(D);function D(...Z){let se=-1;for(;++se<m.length;)if(m[se].apply(this,Z))return!0;return!1}}function ye(A){return pe(m);function m(S){return S.tagName===A}}function pe(A){return m;function m(S,D,Z){return!!(ee(S)&&A.call(this,S,typeof D=="number"?D:void 0,Z||void 0))}}function ke(A){return!!(A&&typeof A=="object"&&"type"in A&&A.type==="element"&&"tagName"in A&&typeof A.tagName=="string")}function ee(A){return A!==null&&typeof A=="object"&&"type"in A&&"tagName"in A}const Te=/\n/g,Me=/[\t ]+/g,Le=fe("br"),Je=fe(Ht),Ye=fe("p"),ne=fe("tr"),at=fe(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",ce,Vt]),Ge=fe(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function Pt(A,m){const S=m||{},D="children"in A?A.children:[],Z=Ge(A),se=le(A,{whitespace:S.whitespace||"normal",breakBefore:!1,breakAfter:!1}),Y=[];(A.type==="text"||A.type==="comment")&&Y.push(...Ct(A,{whitespace:se,breakBefore:!0,breakAfter:!0}));let ct=-1;for(;++ct<D.length;)Y.push(...gt(D[ct],A,{whitespace:se,breakBefore:ct?void 0:Z,breakAfter:ct<D.length-1?Le(D[ct+1]):Z}));const ft=[];let Sn;for(ct=-1;++ct<Y.length;){const Bn=Y[ct];typeof Bn=="number"?Sn!==void 0&&Bn>Sn&&(Sn=Bn):Bn&&(Sn!==void 0&&Sn>-1&&ft.push(`
`.repeat(Sn)||" "),Sn=-1,ft.push(Bn))}return ft.join("")}function gt(A,m,S){return A.type==="element"?kt(A,m,S):A.type==="text"?S.whitespace==="normal"?Ct(A,S):Cn(A):[]}function kt(A,m,S){const D=le(A,S),Z=A.children||[];let se=-1,Y=[];if(at(A))return Y;let ct,ft;for(Le(A)||ne(A)&&Ie(m,A,ne)?ft=`
`:Ye(A)?(ct=2,ft=2):Ge(A)&&(ct=1,ft=1);++se<Z.length;)Y=Y.concat(gt(Z[se],A,{whitespace:D,breakBefore:se?void 0:ct,breakAfter:se<Z.length-1?Le(Z[se+1]):ft}));return Je(A)&&Ie(m,A,Je)&&Y.push(" "),ct&&Y.unshift(ct),ft&&Y.push(ft),Y}function Ct(A,m){const S=String(A.value),D=[],Z=[];let se=0;for(;se<=S.length;){Te.lastIndex=se;const ft=Te.exec(S),Sn=ft&&"index"in ft?ft.index:S.length;D.push(Qe(S.slice(se,Sn).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),se===0?m.breakBefore:!0,Sn===S.length?m.breakAfter:!0)),se=Sn+1}let Y=-1,ct;for(;++Y<D.length;)D[Y].charCodeAt(D[Y].length-1)===8203||Y<D.length-1&&D[Y+1].charCodeAt(0)===8203?(Z.push(D[Y]),ct=void 0):D[Y]?(typeof ct=="number"&&Z.push(ct),Z.push(D[Y]),ct=0):(Y===0||Y===D.length-1)&&Z.push(0);return Z}function Cn(A){return[String(A.value)]}function Qe(A,m,S){const D=[];let Z=0,se;for(;Z<A.length;){Me.lastIndex=Z;const Y=Me.exec(A);se=Y?Y.index:A.length,!Z&&!se&&Y&&!m&&D.push(""),Z!==se&&D.push(A.slice(Z,se)),Z=Y?se+Y[0].length:se}return Z!==se&&!S&&D.push(""),D.join(" ")}function le(A,m){if(A.type==="element"){const S=A.properties||{};switch(A.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return S.wrap?"pre-wrap":"pre";case"td":case"th":return S.noWrap?"nowrap":m.whitespace;case"textarea":return"pre-wrap";default:}}return m.whitespace}function ce(A){return!!(A.properties||{}).hidden}function Ht(A){return A.tagName==="td"||A.tagName==="th"}function Vt(A){return A.tagName==="dialog"&&!(A.properties||{}).open}class St{constructor(m,S,D){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=m,this.start=S,this.end=D}static range(m,S){return S?!m||!m.loc||!S.loc||m.loc.lexer!==S.loc.lexer?null:new St(m.loc.lexer,m.loc.start,S.loc.end):m&&m.loc}}class sn{constructor(m,S){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=m,this.loc=S}range(m,S){return new sn(S,St.range(this,m))}}class Ft{constructor(m,S){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var D="KaTeX parse error: "+m,Z,se,Y=S&&S.loc;if(Y&&Y.start<=Y.end){var ct=Y.lexer.input;Z=Y.start,se=Y.end,Z===ct.length?D+=" at end of input: ":D+=" at position "+(Z+1)+": ";var ft=ct.slice(Z,se).replace(/[^]/g,"$&\u0332"),Sn;Z>15?Sn="\u2026"+ct.slice(Z-15,Z):Sn=ct.slice(0,Z);var Bn;se+15<ct.length?Bn=ct.slice(se,se+15)+"\u2026":Bn=ct.slice(se),D+=Sn+ft+Bn}var Qn=new Error(D);return Qn.name="ParseError",Qn.__proto__=Ft.prototype,Qn.position=Z,Z!=null&&se!=null&&(Qn.length=se-Z),Qn.rawMessage=m,Qn}}Ft.prototype.__proto__=Error.prototype;var oi=function(m,S){return m.indexOf(S)!==-1},On=function(m,S){return m===void 0?S:m},ni=/([A-Z])/g,Jn=function(m){return m.replace(ni,"-$1").toLowerCase()},Mn={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},In=/[&><"']/g;function re(A){return String(A).replace(In,m=>Mn[m])}var z=function A(m){return m.type==="ordgroup"||m.type==="color"?m.body.length===1?A(m.body[0]):m:m.type==="font"?A(m.body):m},k=function(m){var S=z(m);return S.type==="mathord"||S.type==="textord"||S.type==="atom"},j=function(m){if(!m)throw new Error("Expected non-null, but got "+String(m));return m},Q=function(m){var S=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(m);return S?S[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(S[1])?null:S[1].toLowerCase():"_relative"},T={contains:oi,deflt:On,escape:re,hyphenate:Jn,getBaseElem:z,isCharacterBox:k,protocolFromUrl:Q},_e={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:A=>"#"+A},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(A,m)=>(m.push(A),m)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:A=>Math.max(0,A),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:A=>Math.max(0,A),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:A=>Math.max(0,A),cli:"-e, --max-expand <n>",cliProcessor:A=>A==="Infinity"?1/0:parseInt(A)},globalGroup:{type:"boolean",cli:!1}};function It(A){if(A.default)return A.default;var m=A.type,S=Array.isArray(m)?m[0]:m;if(typeof S!="string")return S.enum[0];switch(S){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class $e{constructor(m){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,m=m||{};for(var S in _e)if(_e.hasOwnProperty(S)){var D=_e[S];this[S]=m[S]!==void 0?D.processor?D.processor(m[S]):m[S]:It(D)}}reportNonstrict(m,S,D){var Z=this.strict;if(typeof Z=="function"&&(Z=Z(m,S,D)),!(!Z||Z==="ignore")){if(Z===!0||Z==="error")throw new Ft("LaTeX-incompatible input and strict mode is set to 'error': "+(S+" ["+m+"]"),D);Z==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(S+" ["+m+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+Z+"': "+S+" ["+m+"]"))}}useStrictBehavior(m,S,D){var Z=this.strict;if(typeof Z=="function")try{Z=Z(m,S,D)}catch(se){Z="error"}return!Z||Z==="ignore"?!1:Z===!0||Z==="error"?!0:Z==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(S+" ["+m+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+Z+"': "+S+" ["+m+"]")),!1)}isTrusted(m){if(m.url&&!m.protocol){var S=T.protocolFromUrl(m.url);if(S==null)return!1;m.protocol=S}var D=typeof this.trust=="function"?this.trust(m):this.trust;return!!D}}class Pe{constructor(m,S,D){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=m,this.size=S,this.cramped=D}sup(){return an[et[this.id]]}sub(){return an[zt[this.id]]}fracNum(){return an[dn[this.id]]}fracDen(){return an[rn[this.id]]}cramp(){return an[ze[this.id]]}text(){return an[Un[this.id]]}isTight(){return this.size>=2}}var vt=0,ut=1,tt=2,Et=3,pn=4,nn=5,Kt=6,hn=7,an=[new Pe(vt,0,!1),new Pe(ut,0,!0),new Pe(tt,1,!1),new Pe(Et,1,!0),new Pe(pn,2,!1),new Pe(nn,2,!0),new Pe(Kt,3,!1),new Pe(hn,3,!0)],et=[pn,nn,pn,nn,Kt,hn,Kt,hn],zt=[nn,nn,nn,nn,hn,hn,hn,hn],dn=[tt,Et,pn,nn,Kt,hn,Kt,hn],rn=[Et,Et,nn,nn,hn,hn,hn,hn],ze=[ut,ut,Et,Et,nn,nn,hn,hn],Un=[vt,ut,tt,Et,tt,Et,tt,Et],yn={DISPLAY:an[vt],TEXT:an[tt],SCRIPT:an[pn],SCRIPTSCRIPT:an[Kt]},Bt=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Si(A){for(var m=0;m<Bt.length;m++)for(var S=Bt[m],D=0;D<S.blocks.length;D++){var Z=S.blocks[D];if(A>=Z[0]&&A<=Z[1])return S.name}return null}var _i=[];Bt.forEach(A=>A.blocks.forEach(m=>_i.push(...m)));function Ii(A){for(var m=0;m<_i.length;m+=2)if(A>=_i[m]&&A<=_i[m+1])return!0;return!1}var cn=80,fr=function(m,S){return"M95,"+(622+m+S)+`
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
c69,-144,104.5,-217.7,106.5,-221
l`+m/2.075+" -"+m+`
c5.3,-9.3,12,-14,20,-14
H400000v`+(40+m)+`H845.2724
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
M`+(834+m)+" "+S+"h400000v"+(40+m)+"h-400000z"},Xi=function(m,S){return"M263,"+(601+m+S)+`c0.7,0,18,39.7,52,119
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
c340,-704.7,510.7,-1060.3,512,-1067
l`+m/2.084+" -"+m+`
c4.7,-7.3,11,-11,19,-11
H40000v`+(40+m)+`H1012.3
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
M`+(1001+m)+" "+S+"h400000v"+(40+m)+"h-400000z"},ei=function(m,S){return"M983 "+(10+m+S)+`
l`+m/3.13+" -"+m+`
c4,-6.7,10,-10,18,-10 H400000v`+(40+m)+`
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
M`+(1001+m)+" "+S+"h400000v"+(40+m)+"h-400000z"},Tr=function(m,S){return"M424,"+(2398+m+S)+`
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
l`+m/4.223+" -"+m+`c4,-6.7,10,-10,18,-10 H400000
v`+(40+m)+`H1014.6
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2z M`+(1001+m)+" "+S+`
h400000v`+(40+m)+"h-400000z"},ur=function(m,S){return"M473,"+(2713+m+S)+`
c339.3,-1799.3,509.3,-2700,510,-2702 l`+m/5.298+" -"+m+`
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+m)+`H1017.7
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
606zM`+(1001+m)+" "+S+"h400000v"+(40+m)+"H1017.7z"},U=function(m){var S=m/2;return"M400000 "+m+" H0 L"+S+" 0 l65 45 L145 "+(m-80)+" H400000z"},mr=function(m,S,D){var Z=D-54-S-m;return"M702 "+(m+S)+"H400000"+(40+m)+`
H742v`+Z+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
219 661 l218 661zM702 `+S+"H400000v"+(40+m)+"H742z"},Er=function(m,S,D){S=1e3*S;var Z="";switch(m){case"sqrtMain":Z=fr(S,cn);break;case"sqrtSize1":Z=Xi(S,cn);break;case"sqrtSize2":Z=ei(S,cn);break;case"sqrtSize3":Z=Tr(S,cn);break;case"sqrtSize4":Z=ur(S,cn);break;case"sqrtTall":Z=mr(S,cn,D)}return Z},wr=function(m,S){switch(m){case"\u239C":return"M291 0 H417 V"+S+" H291z M291 0 H417 V"+S+" H291z";case"\u2223":return"M145 0 H188 V"+S+" H145z M145 0 H188 V"+S+" H145z";case"\u2225":return"M145 0 H188 V"+S+" H145z M145 0 H188 V"+S+" H145z"+("M367 0 H410 V"+S+" H367z M367 0 H410 V"+S+" H367z");case"\u239F":return"M457 0 H583 V"+S+" H457z M457 0 H583 V"+S+" H457z";case"\u23A2":return"M319 0 H403 V"+S+" H319z M319 0 H403 V"+S+" H319z";case"\u23A5":return"M263 0 H347 V"+S+" H263z M263 0 H347 V"+S+" H263z";case"\u23AA":return"M384 0 H504 V"+S+" H384z M384 0 H504 V"+S+" H384z";case"\u23D0":return"M312 0 H355 V"+S+" H312z M312 0 H355 V"+S+" H312z";case"\u2016":return"M257 0 H300 V"+S+" H257z M257 0 H300 V"+S+" H257z"+("M478 0 H521 V"+S+" H478z M478 0 H521 V"+S+" H478z");default:return""}},qr={doubleleftarrow:`M262 157
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
435 0h399565z`,leftgroupunder:`M400000 262
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},xo=function(m,S){switch(m){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+S+` v1759 h347 v-84
H403z M403 1759 V0 H319 V1759 v`+S+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+S+` v1759 H0 v84 H347z
M347 1759 V0 H263 V1759 v`+S+" v1759 h84z";case"vert":return"M145 15 v585 v"+S+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-S+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+S+" v585 h43z";case"doublevert":return"M145 15 v585 v"+S+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-S+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+S+` v585 h43z
M367 15 v585 v`+S+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-S+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+S+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+S+` v1715 h263 v84 H319z
MM319 602 V0 H403 V602 v`+S+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+S+` v1799 H0 v-84 H319z
MM319 602 V0 H403 V602 v`+S+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+S+` v602 h84z
M403 1759 V0 H319 V1759 v`+S+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+S+` v602 h84z
M347 1759 V0 h-84 V1759 v`+S+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
-36,557 l0,`+(S+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
l0,-`+(S+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(S+9)+`
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
l0,-`+(S+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class kr{constructor(m){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=m,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(m){return T.contains(this.classes,m)}toNode(){for(var m=document.createDocumentFragment(),S=0;S<this.children.length;S++)m.appendChild(this.children[S].toNode());return m}toMarkup(){for(var m="",S=0;S<this.children.length;S++)m+=this.children[S].toMarkup();return m}toText(){var m=S=>S.toText();return this.children.map(m).join("")}}var no={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},rr={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Bi={\u00C5:"A",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};function yi(A,m){no[A]=m}function ht(A,m,S){if(!no[m])throw new Error("Font metrics not found for font: "+m+".");var D=A.charCodeAt(0),Z=no[m][D];if(!Z&&A[0]in Bi&&(D=Bi[A[0]].charCodeAt(0),Z=no[m][D]),!Z&&S==="text"&&Ii(D)&&(Z=no[m][77]),Z)return{depth:Z[0],height:Z[1],italic:Z[2],skew:Z[3],width:Z[4]}}var _n={};function Vn(A){var m;if(A>=5?m=0:A>=3?m=1:m=2,!_n[m]){var S=_n[m]={cssEmPerMu:rr.quad[m]/18};for(var D in rr)rr.hasOwnProperty(D)&&(S[D]=rr[D][m])}return _n[m]}var pt=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Ke=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],vn=function(m,S){return S.size<2?m:pt[m-1][S.size-1]};class Fn{constructor(m){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=m.style,this.color=m.color,this.size=m.size||Fn.BASESIZE,this.textSize=m.textSize||this.size,this.phantom=!!m.phantom,this.font=m.font||"",this.fontFamily=m.fontFamily||"",this.fontWeight=m.fontWeight||"",this.fontShape=m.fontShape||"",this.sizeMultiplier=Ke[this.size-1],this.maxSize=m.maxSize,this.minRuleThickness=m.minRuleThickness,this._fontMetrics=void 0}extend(m){var S={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var D in m)m.hasOwnProperty(D)&&(S[D]=m[D]);return new Fn(S)}havingStyle(m){return this.style===m?this:this.extend({style:m,size:vn(this.textSize,m)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(m){return this.size===m&&this.textSize===m?this:this.extend({style:this.style.text(),size:m,textSize:m,sizeMultiplier:Ke[m-1]})}havingBaseStyle(m){m=m||this.style.text();var S=vn(Fn.BASESIZE,m);return this.size===S&&this.textSize===Fn.BASESIZE&&this.style===m?this:this.extend({style:m,size:S})}havingBaseSizing(){var m;switch(this.style.id){case 4:case 5:m=3;break;case 6:case 7:m=1;break;default:m=6}return this.extend({style:this.style.text(),size:m})}withColor(m){return this.extend({color:m})}withPhantom(){return this.extend({phantom:!0})}withFont(m){return this.extend({font:m})}withTextFontFamily(m){return this.extend({fontFamily:m,font:""})}withTextFontWeight(m){return this.extend({fontWeight:m,font:""})}withTextFontShape(m){return this.extend({fontShape:m,font:""})}sizingClasses(m){return m.size!==this.size?["sizing","reset-size"+m.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Fn.BASESIZE?["sizing","reset-size"+this.size,"size"+Fn.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=Vn(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Fn.BASESIZE=6;var on={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Nt={ex:!0,em:!0,mu:!0},Ve=function(m){return typeof m!="string"&&(m=m.unit),m in on||m in Nt||m==="ex"},Ut=function(m,S){var D;if(m.unit in on)D=on[m.unit]/S.fontMetrics().ptPerEm/S.sizeMultiplier;else if(m.unit==="mu")D=S.fontMetrics().cssEmPerMu;else{var Z;if(S.style.isTight()?Z=S.havingStyle(S.style.text()):Z=S,m.unit==="ex")D=Z.fontMetrics().xHeight;else if(m.unit==="em")D=Z.fontMetrics().quad;else throw new Ft("Invalid unit: '"+m.unit+"'");Z!==S&&(D*=Z.sizeMultiplier/S.sizeMultiplier)}return Math.min(m.number*D,S.maxSize)},Lt=function(m){return+m.toFixed(4)+"em"},Wn=function(m){return m.filter(S=>S).join(" ")},ot=function(m,S,D){if(this.classes=m||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=D||{},S){S.style.isTight()&&this.classes.push("mtight");var Z=S.getColor();Z&&(this.style.color=Z)}},fn=function(m){var S=document.createElement(m);S.className=Wn(this.classes);for(var D in this.style)this.style.hasOwnProperty(D)&&(S.style[D]=this.style[D]);for(var Z in this.attributes)this.attributes.hasOwnProperty(Z)&&S.setAttribute(Z,this.attributes[Z]);for(var se=0;se<this.children.length;se++)S.appendChild(this.children[se].toNode());return S},yt=/[\s"'>/=\x00-\x1f]/,je=function(m){var S="<"+m;this.classes.length&&(S+=' class="'+T.escape(Wn(this.classes))+'"');var D="";for(var Z in this.style)this.style.hasOwnProperty(Z)&&(D+=T.hyphenate(Z)+":"+this.style[Z]+";");D&&(S+=' style="'+T.escape(D)+'"');for(var se in this.attributes)if(this.attributes.hasOwnProperty(se)){if(yt.test(se))throw new Ft("Invalid attribute name '"+se+"'");S+=" "+se+'="'+T.escape(this.attributes[se])+'"'}S+=">";for(var Y=0;Y<this.children.length;Y++)S+=this.children[Y].toMarkup();return S+="</"+m+">",S};class L{constructor(m,S,D,Z){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,ot.call(this,m,D,Z),this.children=S||[]}setAttribute(m,S){this.attributes[m]=S}hasClass(m){return T.contains(this.classes,m)}toNode(){return fn.call(this,"span")}toMarkup(){return je.call(this,"span")}}class Rt{constructor(m,S,D,Z){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,ot.call(this,S,Z),this.children=D||[],this.setAttribute("href",m)}setAttribute(m,S){this.attributes[m]=S}hasClass(m){return T.contains(this.classes,m)}toNode(){return fn.call(this,"a")}toMarkup(){return je.call(this,"a")}}class Jt{constructor(m,S,D){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=S,this.src=m,this.classes=["mord"],this.style=D}hasClass(m){return T.contains(this.classes,m)}toNode(){var m=document.createElement("img");m.src=this.src,m.alt=this.alt,m.className="mord";for(var S in this.style)this.style.hasOwnProperty(S)&&(m.style[S]=this.style[S]);return m}toMarkup(){var m='<img src="'+T.escape(this.src)+'"'+(' alt="'+T.escape(this.alt)+'"'),S="";for(var D in this.style)this.style.hasOwnProperty(D)&&(S+=T.hyphenate(D)+":"+this.style[D]+";");return S&&(m+=' style="'+T.escape(S)+'"'),m+="'/>",m}}var mt={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"};class xn{constructor(m,S,D,Z,se,Y,ct,ft){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=m,this.height=S||0,this.depth=D||0,this.italic=Z||0,this.skew=se||0,this.width=Y||0,this.classes=ct||[],this.style=ft||{},this.maxFontSize=0;var Sn=Si(this.text.charCodeAt(0));Sn&&this.classes.push(Sn+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=mt[this.text])}hasClass(m){return T.contains(this.classes,m)}toNode(){var m=document.createTextNode(this.text),S=null;this.italic>0&&(S=document.createElement("span"),S.style.marginRight=Lt(this.italic)),this.classes.length>0&&(S=S||document.createElement("span"),S.className=Wn(this.classes));for(var D in this.style)this.style.hasOwnProperty(D)&&(S=S||document.createElement("span"),S.style[D]=this.style[D]);return S?(S.appendChild(m),S):m}toMarkup(){var m=!1,S="<span";this.classes.length&&(m=!0,S+=' class="',S+=T.escape(Wn(this.classes)),S+='"');var D="";this.italic>0&&(D+="margin-right:"+this.italic+"em;");for(var Z in this.style)this.style.hasOwnProperty(Z)&&(D+=T.hyphenate(Z)+":"+this.style[Z]+";");D&&(m=!0,S+=' style="'+T.escape(D)+'"');var se=T.escape(this.text);return m?(S+=">",S+=se,S+="</span>",S):se}}class An{constructor(m,S){this.children=void 0,this.attributes=void 0,this.children=m||[],this.attributes=S||{}}toNode(){var m="http://www.w3.org/2000/svg",S=document.createElementNS(m,"svg");for(var D in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,D)&&S.setAttribute(D,this.attributes[D]);for(var Z=0;Z<this.children.length;Z++)S.appendChild(this.children[Z].toNode());return S}toMarkup(){var m='<svg xmlns="http://www.w3.org/2000/svg"';for(var S in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,S)&&(m+=" "+S+'="'+T.escape(this.attributes[S])+'"');m+=">";for(var D=0;D<this.children.length;D++)m+=this.children[D].toMarkup();return m+="</svg>",m}}class li{constructor(m,S){this.pathName=void 0,this.alternate=void 0,this.pathName=m,this.alternate=S}toNode(){var m="http://www.w3.org/2000/svg",S=document.createElementNS(m,"path");return this.alternate?S.setAttribute("d",this.alternate):S.setAttribute("d",qr[this.pathName]),S}toMarkup(){return this.alternate?'<path d="'+T.escape(this.alternate)+'"/>':'<path d="'+T.escape(qr[this.pathName])+'"/>'}}class Nn{constructor(m){this.attributes=void 0,this.attributes=m||{}}toNode(){var m="http://www.w3.org/2000/svg",S=document.createElementNS(m,"line");for(var D in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,D)&&S.setAttribute(D,this.attributes[D]);return S}toMarkup(){var m="<line";for(var S in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,S)&&(m+=" "+S+'="'+T.escape(this.attributes[S])+'"');return m+="/>",m}}function lt(A){if(A instanceof xn)return A;throw new Error("Expected symbolNode but got "+String(A)+".")}function Mi(A){if(A instanceof L)return A;throw new Error("Expected span<HtmlDomNode> but got "+String(A)+".")}var Yi={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Yt={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},zi={math:{},text:{}};function q(A,m,S,D,Z,se){zi[A][Z]={font:m,group:S,replace:D},se&&D&&(zi[A][D]=zi[A][Z])}var oe="math",Hn="text",Be="main",Tt="ams",fi="accent-token",Ln="bin",Fi="close",qt="inner",xi="mathord",Xt="op-token",Li="open",Yr="punct",Mt="rel",Qr="spacing",tn="textord";q(oe,Be,Mt,"\u2261","\\equiv",!0),q(oe,Be,Mt,"\u227A","\\prec",!0),q(oe,Be,Mt,"\u227B","\\succ",!0),q(oe,Be,Mt,"\u223C","\\sim",!0),q(oe,Be,Mt,"\u22A5","\\perp"),q(oe,Be,Mt,"\u2AAF","\\preceq",!0),q(oe,Be,Mt,"\u2AB0","\\succeq",!0),q(oe,Be,Mt,"\u2243","\\simeq",!0),q(oe,Be,Mt,"\u2223","\\mid",!0),q(oe,Be,Mt,"\u226A","\\ll",!0),q(oe,Be,Mt,"\u226B","\\gg",!0),q(oe,Be,Mt,"\u224D","\\asymp",!0),q(oe,Be,Mt,"\u2225","\\parallel"),q(oe,Be,Mt,"\u22C8","\\bowtie",!0),q(oe,Be,Mt,"\u2323","\\smile",!0),q(oe,Be,Mt,"\u2291","\\sqsubseteq",!0),q(oe,Be,Mt,"\u2292","\\sqsupseteq",!0),q(oe,Be,Mt,"\u2250","\\doteq",!0),q(oe,Be,Mt,"\u2322","\\frown",!0),q(oe,Be,Mt,"\u220B","\\ni",!0),q(oe,Be,Mt,"\u221D","\\propto",!0),q(oe,Be,Mt,"\u22A2","\\vdash",!0),q(oe,Be,Mt,"\u22A3","\\dashv",!0),q(oe,Be,Mt,"\u220B","\\owns"),q(oe,Be,Yr,".","\\ldotp"),q(oe,Be,Yr,"\u22C5","\\cdotp"),q(oe,Be,tn,"#","\\#"),q(Hn,Be,tn,"#","\\#"),q(oe,Be,tn,"&","\\&"),q(Hn,Be,tn,"&","\\&"),q(oe,Be,tn,"\u2135","\\aleph",!0),q(oe,Be,tn,"\u2200","\\forall",!0),q(oe,Be,tn,"\u210F","\\hbar",!0),q(oe,Be,tn,"\u2203","\\exists",!0),q(oe,Be,tn,"\u2207","\\nabla",!0),q(oe,Be,tn,"\u266D","\\flat",!0),q(oe,Be,tn,"\u2113","\\ell",!0),q(oe,Be,tn,"\u266E","\\natural",!0),q(oe,Be,tn,"\u2663","\\clubsuit",!0),q(oe,Be,tn,"\u2118","\\wp",!0),q(oe,Be,tn,"\u266F","\\sharp",!0),q(oe,Be,tn,"\u2662","\\diamondsuit",!0),q(oe,Be,tn,"\u211C","\\Re",!0),q(oe,Be,tn,"\u2661","\\heartsuit",!0),q(oe,Be,tn,"\u2111","\\Im",!0),q(oe,Be,tn,"\u2660","\\spadesuit",!0),q(oe,Be,tn,"\xA7","\\S",!0),q(Hn,Be,tn,"\xA7","\\S"),q(oe,Be,tn,"\xB6","\\P",!0),q(Hn,Be,tn,"\xB6","\\P"),q(oe,Be,tn,"\u2020","\\dag"),q(Hn,Be,tn,"\u2020","\\dag"),q(Hn,Be,tn,"\u2020","\\textdagger"),q(oe,Be,tn,"\u2021","\\ddag"),q(Hn,Be,tn,"\u2021","\\ddag"),q(Hn,Be,tn,"\u2021","\\textdaggerdbl"),q(oe,Be,Fi,"\u23B1","\\rmoustache",!0),q(oe,Be,Li,"\u23B0","\\lmoustache",!0),q(oe,Be,Fi,"\u27EF","\\rgroup",!0),q(oe,Be,Li,"\u27EE","\\lgroup",!0),q(oe,Be,Ln,"\u2213","\\mp",!0),q(oe,Be,Ln,"\u2296","\\ominus",!0),q(oe,Be,Ln,"\u228E","\\uplus",!0),q(oe,Be,Ln,"\u2293","\\sqcap",!0),q(oe,Be,Ln,"\u2217","\\ast"),q(oe,Be,Ln,"\u2294","\\sqcup",!0),q(oe,Be,Ln,"\u25EF","\\bigcirc",!0),q(oe,Be,Ln,"\u2219","\\bullet",!0),q(oe,Be,Ln,"\u2021","\\ddagger"),q(oe,Be,Ln,"\u2240","\\wr",!0),q(oe,Be,Ln,"\u2A3F","\\amalg"),q(oe,Be,Ln,"&","\\And"),q(oe,Be,Mt,"\u27F5","\\longleftarrow",!0),q(oe,Be,Mt,"\u21D0","\\Leftarrow",!0),q(oe,Be,Mt,"\u27F8","\\Longleftarrow",!0),q(oe,Be,Mt,"\u27F6","\\longrightarrow",!0),q(oe,Be,Mt,"\u21D2","\\Rightarrow",!0),q(oe,Be,Mt,"\u27F9","\\Longrightarrow",!0),q(oe,Be,Mt,"\u2194","\\leftrightarrow",!0),q(oe,Be,Mt,"\u27F7","\\longleftrightarrow",!0),q(oe,Be,Mt,"\u21D4","\\Leftrightarrow",!0),q(oe,Be,Mt,"\u27FA","\\Longleftrightarrow",!0),q(oe,Be,Mt,"\u21A6","\\mapsto",!0),q(oe,Be,Mt,"\u27FC","\\longmapsto",!0),q(oe,Be,Mt,"\u2197","\\nearrow",!0),q(oe,Be,Mt,"\u21A9","\\hookleftarrow",!0),q(oe,Be,Mt,"\u21AA","\\hookrightarrow",!0),q(oe,Be,Mt,"\u2198","\\searrow",!0),q(oe,Be,Mt,"\u21BC","\\leftharpoonup",!0),q(oe,Be,Mt,"\u21C0","\\rightharpoonup",!0),q(oe,Be,Mt,"\u2199","\\swarrow",!0),q(oe,Be,Mt,"\u21BD","\\leftharpoondown",!0),q(oe,Be,Mt,"\u21C1","\\rightharpoondown",!0),q(oe,Be,Mt,"\u2196","\\nwarrow",!0),q(oe,Be,Mt,"\u21CC","\\rightleftharpoons",!0),q(oe,Tt,Mt,"\u226E","\\nless",!0),q(oe,Tt,Mt,"\uE010","\\@nleqslant"),q(oe,Tt,Mt,"\uE011","\\@nleqq"),q(oe,Tt,Mt,"\u2A87","\\lneq",!0),q(oe,Tt,Mt,"\u2268","\\lneqq",!0),q(oe,Tt,Mt,"\uE00C","\\@lvertneqq"),q(oe,Tt,Mt,"\u22E6","\\lnsim",!0),q(oe,Tt,Mt,"\u2A89","\\lnapprox",!0),q(oe,Tt,Mt,"\u2280","\\nprec",!0),q(oe,Tt,Mt,"\u22E0","\\npreceq",!0),q(oe,Tt,Mt,"\u22E8","\\precnsim",!0),q(oe,Tt,Mt,"\u2AB9","\\precnapprox",!0),q(oe,Tt,Mt,"\u2241","\\nsim",!0),q(oe,Tt,Mt,"\uE006","\\@nshortmid"),q(oe,Tt,Mt,"\u2224","\\nmid",!0),q(oe,Tt,Mt,"\u22AC","\\nvdash",!0),q(oe,Tt,Mt,"\u22AD","\\nvDash",!0),q(oe,Tt,Mt,"\u22EA","\\ntriangleleft"),q(oe,Tt,Mt,"\u22EC","\\ntrianglelefteq",!0),q(oe,Tt,Mt,"\u228A","\\subsetneq",!0),q(oe,Tt,Mt,"\uE01A","\\@varsubsetneq"),q(oe,Tt,Mt,"\u2ACB","\\subsetneqq",!0),q(oe,Tt,Mt,"\uE017","\\@varsubsetneqq"),q(oe,Tt,Mt,"\u226F","\\ngtr",!0),q(oe,Tt,Mt,"\uE00F","\\@ngeqslant"),q(oe,Tt,Mt,"\uE00E","\\@ngeqq"),q(oe,Tt,Mt,"\u2A88","\\gneq",!0),q(oe,Tt,Mt,"\u2269","\\gneqq",!0),q(oe,Tt,Mt,"\uE00D","\\@gvertneqq"),q(oe,Tt,Mt,"\u22E7","\\gnsim",!0),q(oe,Tt,Mt,"\u2A8A","\\gnapprox",!0),q(oe,Tt,Mt,"\u2281","\\nsucc",!0),q(oe,Tt,Mt,"\u22E1","\\nsucceq",!0),q(oe,Tt,Mt,"\u22E9","\\succnsim",!0),q(oe,Tt,Mt,"\u2ABA","\\succnapprox",!0),q(oe,Tt,Mt,"\u2246","\\ncong",!0),q(oe,Tt,Mt,"\uE007","\\@nshortparallel"),q(oe,Tt,Mt,"\u2226","\\nparallel",!0),q(oe,Tt,Mt,"\u22AF","\\nVDash",!0),q(oe,Tt,Mt,"\u22EB","\\ntriangleright"),q(oe,Tt,Mt,"\u22ED","\\ntrianglerighteq",!0),q(oe,Tt,Mt,"\uE018","\\@nsupseteqq"),q(oe,Tt,Mt,"\u228B","\\supsetneq",!0),q(oe,Tt,Mt,"\uE01B","\\@varsupsetneq"),q(oe,Tt,Mt,"\u2ACC","\\supsetneqq",!0),q(oe,Tt,Mt,"\uE019","\\@varsupsetneqq"),q(oe,Tt,Mt,"\u22AE","\\nVdash",!0),q(oe,Tt,Mt,"\u2AB5","\\precneqq",!0),q(oe,Tt,Mt,"\u2AB6","\\succneqq",!0),q(oe,Tt,Mt,"\uE016","\\@nsubseteqq"),q(oe,Tt,Ln,"\u22B4","\\unlhd"),q(oe,Tt,Ln,"\u22B5","\\unrhd"),q(oe,Tt,Mt,"\u219A","\\nleftarrow",!0),q(oe,Tt,Mt,"\u219B","\\nrightarrow",!0),q(oe,Tt,Mt,"\u21CD","\\nLeftarrow",!0),q(oe,Tt,Mt,"\u21CF","\\nRightarrow",!0),q(oe,Tt,Mt,"\u21AE","\\nleftrightarrow",!0),q(oe,Tt,Mt,"\u21CE","\\nLeftrightarrow",!0),q(oe,Tt,Mt,"\u25B3","\\vartriangle"),q(oe,Tt,tn,"\u210F","\\hslash"),q(oe,Tt,tn,"\u25BD","\\triangledown"),q(oe,Tt,tn,"\u25CA","\\lozenge"),q(oe,Tt,tn,"\u24C8","\\circledS"),q(oe,Tt,tn,"\xAE","\\circledR"),q(Hn,Tt,tn,"\xAE","\\circledR"),q(oe,Tt,tn,"\u2221","\\measuredangle",!0),q(oe,Tt,tn,"\u2204","\\nexists"),q(oe,Tt,tn,"\u2127","\\mho"),q(oe,Tt,tn,"\u2132","\\Finv",!0),q(oe,Tt,tn,"\u2141","\\Game",!0),q(oe,Tt,tn,"\u2035","\\backprime"),q(oe,Tt,tn,"\u25B2","\\blacktriangle"),q(oe,Tt,tn,"\u25BC","\\blacktriangledown"),q(oe,Tt,tn,"\u25A0","\\blacksquare"),q(oe,Tt,tn,"\u29EB","\\blacklozenge"),q(oe,Tt,tn,"\u2605","\\bigstar"),q(oe,Tt,tn,"\u2222","\\sphericalangle",!0),q(oe,Tt,tn,"\u2201","\\complement",!0),q(oe,Tt,tn,"\xF0","\\eth",!0),q(Hn,Be,tn,"\xF0","\xF0"),q(oe,Tt,tn,"\u2571","\\diagup"),q(oe,Tt,tn,"\u2572","\\diagdown"),q(oe,Tt,tn,"\u25A1","\\square"),q(oe,Tt,tn,"\u25A1","\\Box"),q(oe,Tt,tn,"\u25CA","\\Diamond"),q(oe,Tt,tn,"\xA5","\\yen",!0),q(Hn,Tt,tn,"\xA5","\\yen",!0),q(oe,Tt,tn,"\u2713","\\checkmark",!0),q(Hn,Tt,tn,"\u2713","\\checkmark"),q(oe,Tt,tn,"\u2136","\\beth",!0),q(oe,Tt,tn,"\u2138","\\daleth",!0),q(oe,Tt,tn,"\u2137","\\gimel",!0),q(oe,Tt,tn,"\u03DD","\\digamma",!0),q(oe,Tt,tn,"\u03F0","\\varkappa"),q(oe,Tt,Li,"\u250C","\\@ulcorner",!0),q(oe,Tt,Fi,"\u2510","\\@urcorner",!0),q(oe,Tt,Li,"\u2514","\\@llcorner",!0),q(oe,Tt,Fi,"\u2518","\\@lrcorner",!0),q(oe,Tt,Mt,"\u2266","\\leqq",!0),q(oe,Tt,Mt,"\u2A7D","\\leqslant",!0),q(oe,Tt,Mt,"\u2A95","\\eqslantless",!0),q(oe,Tt,Mt,"\u2272","\\lesssim",!0),q(oe,Tt,Mt,"\u2A85","\\lessapprox",!0),q(oe,Tt,Mt,"\u224A","\\approxeq",!0),q(oe,Tt,Ln,"\u22D6","\\lessdot"),q(oe,Tt,Mt,"\u22D8","\\lll",!0),q(oe,Tt,Mt,"\u2276","\\lessgtr",!0),q(oe,Tt,Mt,"\u22DA","\\lesseqgtr",!0),q(oe,Tt,Mt,"\u2A8B","\\lesseqqgtr",!0),q(oe,Tt,Mt,"\u2251","\\doteqdot"),q(oe,Tt,Mt,"\u2253","\\risingdotseq",!0),q(oe,Tt,Mt,"\u2252","\\fallingdotseq",!0),q(oe,Tt,Mt,"\u223D","\\backsim",!0),q(oe,Tt,Mt,"\u22CD","\\backsimeq",!0),q(oe,Tt,Mt,"\u2AC5","\\subseteqq",!0),q(oe,Tt,Mt,"\u22D0","\\Subset",!0),q(oe,Tt,Mt,"\u228F","\\sqsubset",!0),q(oe,Tt,Mt,"\u227C","\\preccurlyeq",!0),q(oe,Tt,Mt,"\u22DE","\\curlyeqprec",!0),q(oe,Tt,Mt,"\u227E","\\precsim",!0),q(oe,Tt,Mt,"\u2AB7","\\precapprox",!0),q(oe,Tt,Mt,"\u22B2","\\vartriangleleft"),q(oe,Tt,Mt,"\u22B4","\\trianglelefteq"),q(oe,Tt,Mt,"\u22A8","\\vDash",!0),q(oe,Tt,Mt,"\u22AA","\\Vvdash",!0),q(oe,Tt,Mt,"\u2323","\\smallsmile"),q(oe,Tt,Mt,"\u2322","\\smallfrown"),q(oe,Tt,Mt,"\u224F","\\bumpeq",!0),q(oe,Tt,Mt,"\u224E","\\Bumpeq",!0),q(oe,Tt,Mt,"\u2267","\\geqq",!0),q(oe,Tt,Mt,"\u2A7E","\\geqslant",!0),q(oe,Tt,Mt,"\u2A96","\\eqslantgtr",!0),q(oe,Tt,Mt,"\u2273","\\gtrsim",!0),q(oe,Tt,Mt,"\u2A86","\\gtrapprox",!0),q(oe,Tt,Ln,"\u22D7","\\gtrdot"),q(oe,Tt,Mt,"\u22D9","\\ggg",!0),q(oe,Tt,Mt,"\u2277","\\gtrless",!0),q(oe,Tt,Mt,"\u22DB","\\gtreqless",!0),q(oe,Tt,Mt,"\u2A8C","\\gtreqqless",!0),q(oe,Tt,Mt,"\u2256","\\eqcirc",!0),q(oe,Tt,Mt,"\u2257","\\circeq",!0),q(oe,Tt,Mt,"\u225C","\\triangleq",!0),q(oe,Tt,Mt,"\u223C","\\thicksim"),q(oe,Tt,Mt,"\u2248","\\thickapprox"),q(oe,Tt,Mt,"\u2AC6","\\supseteqq",!0),q(oe,Tt,Mt,"\u22D1","\\Supset",!0),q(oe,Tt,Mt,"\u2290","\\sqsupset",!0),q(oe,Tt,Mt,"\u227D","\\succcurlyeq",!0),q(oe,Tt,Mt,"\u22DF","\\curlyeqsucc",!0),q(oe,Tt,Mt,"\u227F","\\succsim",!0),q(oe,Tt,Mt,"\u2AB8","\\succapprox",!0),q(oe,Tt,Mt,"\u22B3","\\vartriangleright"),q(oe,Tt,Mt,"\u22B5","\\trianglerighteq"),q(oe,Tt,Mt,"\u22A9","\\Vdash",!0),q(oe,Tt,Mt,"\u2223","\\shortmid"),q(oe,Tt,Mt,"\u2225","\\shortparallel"),q(oe,Tt,Mt,"\u226C","\\between",!0),q(oe,Tt,Mt,"\u22D4","\\pitchfork",!0),q(oe,Tt,Mt,"\u221D","\\varpropto"),q(oe,Tt,Mt,"\u25C0","\\blacktriangleleft"),q(oe,Tt,Mt,"\u2234","\\therefore",!0),q(oe,Tt,Mt,"\u220D","\\backepsilon"),q(oe,Tt,Mt,"\u25B6","\\blacktriangleright"),q(oe,Tt,Mt,"\u2235","\\because",!0),q(oe,Tt,Mt,"\u22D8","\\llless"),q(oe,Tt,Mt,"\u22D9","\\gggtr"),q(oe,Tt,Ln,"\u22B2","\\lhd"),q(oe,Tt,Ln,"\u22B3","\\rhd"),q(oe,Tt,Mt,"\u2242","\\eqsim",!0),q(oe,Be,Mt,"\u22C8","\\Join"),q(oe,Tt,Mt,"\u2251","\\Doteq",!0),q(oe,Tt,Ln,"\u2214","\\dotplus",!0),q(oe,Tt,Ln,"\u2216","\\smallsetminus"),q(oe,Tt,Ln,"\u22D2","\\Cap",!0),q(oe,Tt,Ln,"\u22D3","\\Cup",!0),q(oe,Tt,Ln,"\u2A5E","\\doublebarwedge",!0),q(oe,Tt,Ln,"\u229F","\\boxminus",!0),q(oe,Tt,Ln,"\u229E","\\boxplus",!0),q(oe,Tt,Ln,"\u22C7","\\divideontimes",!0),q(oe,Tt,Ln,"\u22C9","\\ltimes",!0),q(oe,Tt,Ln,"\u22CA","\\rtimes",!0),q(oe,Tt,Ln,"\u22CB","\\leftthreetimes",!0),q(oe,Tt,Ln,"\u22CC","\\rightthreetimes",!0),q(oe,Tt,Ln,"\u22CF","\\curlywedge",!0),q(oe,Tt,Ln,"\u22CE","\\curlyvee",!0),q(oe,Tt,Ln,"\u229D","\\circleddash",!0),q(oe,Tt,Ln,"\u229B","\\circledast",!0),q(oe,Tt,Ln,"\u22C5","\\centerdot"),q(oe,Tt,Ln,"\u22BA","\\intercal",!0),q(oe,Tt,Ln,"\u22D2","\\doublecap"),q(oe,Tt,Ln,"\u22D3","\\doublecup"),q(oe,Tt,Ln,"\u22A0","\\boxtimes",!0),q(oe,Tt,Mt,"\u21E2","\\dashrightarrow",!0),q(oe,Tt,Mt,"\u21E0","\\dashleftarrow",!0),q(oe,Tt,Mt,"\u21C7","\\leftleftarrows",!0),q(oe,Tt,Mt,"\u21C6","\\leftrightarrows",!0),q(oe,Tt,Mt,"\u21DA","\\Lleftarrow",!0),q(oe,Tt,Mt,"\u219E","\\twoheadleftarrow",!0),q(oe,Tt,Mt,"\u21A2","\\leftarrowtail",!0),q(oe,Tt,Mt,"\u21AB","\\looparrowleft",!0),q(oe,Tt,Mt,"\u21CB","\\leftrightharpoons",!0),q(oe,Tt,Mt,"\u21B6","\\curvearrowleft",!0),q(oe,Tt,Mt,"\u21BA","\\circlearrowleft",!0),q(oe,Tt,Mt,"\u21B0","\\Lsh",!0),q(oe,Tt,Mt,"\u21C8","\\upuparrows",!0),q(oe,Tt,Mt,"\u21BF","\\upharpoonleft",!0),q(oe,Tt,Mt,"\u21C3","\\downharpoonleft",!0),q(oe,Be,Mt,"\u22B6","\\origof",!0),q(oe,Be,Mt,"\u22B7","\\imageof",!0),q(oe,Tt,Mt,"\u22B8","\\multimap",!0),q(oe,Tt,Mt,"\u21AD","\\leftrightsquigarrow",!0),q(oe,Tt,Mt,"\u21C9","\\rightrightarrows",!0),q(oe,Tt,Mt,"\u21C4","\\rightleftarrows",!0),q(oe,Tt,Mt,"\u21A0","\\twoheadrightarrow",!0),q(oe,Tt,Mt,"\u21A3","\\rightarrowtail",!0),q(oe,Tt,Mt,"\u21AC","\\looparrowright",!0),q(oe,Tt,Mt,"\u21B7","\\curvearrowright",!0),q(oe,Tt,Mt,"\u21BB","\\circlearrowright",!0),q(oe,Tt,Mt,"\u21B1","\\Rsh",!0),q(oe,Tt,Mt,"\u21CA","\\downdownarrows",!0),q(oe,Tt,Mt,"\u21BE","\\upharpoonright",!0),q(oe,Tt,Mt,"\u21C2","\\downharpoonright",!0),q(oe,Tt,Mt,"\u21DD","\\rightsquigarrow",!0),q(oe,Tt,Mt,"\u21DD","\\leadsto"),q(oe,Tt,Mt,"\u21DB","\\Rrightarrow",!0),q(oe,Tt,Mt,"\u21BE","\\restriction"),q(oe,Be,tn,"\u2018","`"),q(oe,Be,tn,"$","\\$"),q(Hn,Be,tn,"$","\\$"),q(Hn,Be,tn,"$","\\textdollar"),q(oe,Be,tn,"%","\\%"),q(Hn,Be,tn,"%","\\%"),q(oe,Be,tn,"_","\\_"),q(Hn,Be,tn,"_","\\_"),q(Hn,Be,tn,"_","\\textunderscore"),q(oe,Be,tn,"\u2220","\\angle",!0),q(oe,Be,tn,"\u221E","\\infty",!0),q(oe,Be,tn,"\u2032","\\prime"),q(oe,Be,tn,"\u25B3","\\triangle"),q(oe,Be,tn,"\u0393","\\Gamma",!0),q(oe,Be,tn,"\u0394","\\Delta",!0),q(oe,Be,tn,"\u0398","\\Theta",!0),q(oe,Be,tn,"\u039B","\\Lambda",!0),q(oe,Be,tn,"\u039E","\\Xi",!0),q(oe,Be,tn,"\u03A0","\\Pi",!0),q(oe,Be,tn,"\u03A3","\\Sigma",!0),q(oe,Be,tn,"\u03A5","\\Upsilon",!0),q(oe,Be,tn,"\u03A6","\\Phi",!0),q(oe,Be,tn,"\u03A8","\\Psi",!0),q(oe,Be,tn,"\u03A9","\\Omega",!0),q(oe,Be,tn,"A","\u0391"),q(oe,Be,tn,"B","\u0392"),q(oe,Be,tn,"E","\u0395"),q(oe,Be,tn,"Z","\u0396"),q(oe,Be,tn,"H","\u0397"),q(oe,Be,tn,"I","\u0399"),q(oe,Be,tn,"K","\u039A"),q(oe,Be,tn,"M","\u039C"),q(oe,Be,tn,"N","\u039D"),q(oe,Be,tn,"O","\u039F"),q(oe,Be,tn,"P","\u03A1"),q(oe,Be,tn,"T","\u03A4"),q(oe,Be,tn,"X","\u03A7"),q(oe,Be,tn,"\xAC","\\neg",!0),q(oe,Be,tn,"\xAC","\\lnot"),q(oe,Be,tn,"\u22A4","\\top"),q(oe,Be,tn,"\u22A5","\\bot"),q(oe,Be,tn,"\u2205","\\emptyset"),q(oe,Tt,tn,"\u2205","\\varnothing"),q(oe,Be,xi,"\u03B1","\\alpha",!0),q(oe,Be,xi,"\u03B2","\\beta",!0),q(oe,Be,xi,"\u03B3","\\gamma",!0),q(oe,Be,xi,"\u03B4","\\delta",!0),q(oe,Be,xi,"\u03F5","\\epsilon",!0),q(oe,Be,xi,"\u03B6","\\zeta",!0),q(oe,Be,xi,"\u03B7","\\eta",!0),q(oe,Be,xi,"\u03B8","\\theta",!0),q(oe,Be,xi,"\u03B9","\\iota",!0),q(oe,Be,xi,"\u03BA","\\kappa",!0),q(oe,Be,xi,"\u03BB","\\lambda",!0),q(oe,Be,xi,"\u03BC","\\mu",!0),q(oe,Be,xi,"\u03BD","\\nu",!0),q(oe,Be,xi,"\u03BE","\\xi",!0),q(oe,Be,xi,"\u03BF","\\omicron",!0),q(oe,Be,xi,"\u03C0","\\pi",!0),q(oe,Be,xi,"\u03C1","\\rho",!0),q(oe,Be,xi,"\u03C3","\\sigma",!0),q(oe,Be,xi,"\u03C4","\\tau",!0),q(oe,Be,xi,"\u03C5","\\upsilon",!0),q(oe,Be,xi,"\u03D5","\\phi",!0),q(oe,Be,xi,"\u03C7","\\chi",!0),q(oe,Be,xi,"\u03C8","\\psi",!0),q(oe,Be,xi,"\u03C9","\\omega",!0),q(oe,Be,xi,"\u03B5","\\varepsilon",!0),q(oe,Be,xi,"\u03D1","\\vartheta",!0),q(oe,Be,xi,"\u03D6","\\varpi",!0),q(oe,Be,xi,"\u03F1","\\varrho",!0),q(oe,Be,xi,"\u03C2","\\varsigma",!0),q(oe,Be,xi,"\u03C6","\\varphi",!0),q(oe,Be,Ln,"\u2217","*",!0),q(oe,Be,Ln,"+","+"),q(oe,Be,Ln,"\u2212","-",!0),q(oe,Be,Ln,"\u22C5","\\cdot",!0),q(oe,Be,Ln,"\u2218","\\circ",!0),q(oe,Be,Ln,"\xF7","\\div",!0),q(oe,Be,Ln,"\xB1","\\pm",!0),q(oe,Be,Ln,"\xD7","\\times",!0),q(oe,Be,Ln,"\u2229","\\cap",!0),q(oe,Be,Ln,"\u222A","\\cup",!0),q(oe,Be,Ln,"\u2216","\\setminus",!0),q(oe,Be,Ln,"\u2227","\\land"),q(oe,Be,Ln,"\u2228","\\lor"),q(oe,Be,Ln,"\u2227","\\wedge",!0),q(oe,Be,Ln,"\u2228","\\vee",!0),q(oe,Be,tn,"\u221A","\\surd"),q(oe,Be,Li,"\u27E8","\\langle",!0),q(oe,Be,Li,"\u2223","\\lvert"),q(oe,Be,Li,"\u2225","\\lVert"),q(oe,Be,Fi,"?","?"),q(oe,Be,Fi,"!","!"),q(oe,Be,Fi,"\u27E9","\\rangle",!0),q(oe,Be,Fi,"\u2223","\\rvert"),q(oe,Be,Fi,"\u2225","\\rVert"),q(oe,Be,Mt,"=","="),q(oe,Be,Mt,":",":"),q(oe,Be,Mt,"\u2248","\\approx",!0),q(oe,Be,Mt,"\u2245","\\cong",!0),q(oe,Be,Mt,"\u2265","\\ge"),q(oe,Be,Mt,"\u2265","\\geq",!0),q(oe,Be,Mt,"\u2190","\\gets"),q(oe,Be,Mt,">","\\gt",!0),q(oe,Be,Mt,"\u2208","\\in",!0),q(oe,Be,Mt,"\uE020","\\@not"),q(oe,Be,Mt,"\u2282","\\subset",!0),q(oe,Be,Mt,"\u2283","\\supset",!0),q(oe,Be,Mt,"\u2286","\\subseteq",!0),q(oe,Be,Mt,"\u2287","\\supseteq",!0),q(oe,Tt,Mt,"\u2288","\\nsubseteq",!0),q(oe,Tt,Mt,"\u2289","\\nsupseteq",!0),q(oe,Be,Mt,"\u22A8","\\models"),q(oe,Be,Mt,"\u2190","\\leftarrow",!0),q(oe,Be,Mt,"\u2264","\\le"),q(oe,Be,Mt,"\u2264","\\leq",!0),q(oe,Be,Mt,"<","\\lt",!0),q(oe,Be,Mt,"\u2192","\\rightarrow",!0),q(oe,Be,Mt,"\u2192","\\to"),q(oe,Tt,Mt,"\u2271","\\ngeq",!0),q(oe,Tt,Mt,"\u2270","\\nleq",!0),q(oe,Be,Qr,"\xA0","\\ "),q(oe,Be,Qr,"\xA0","\\space"),q(oe,Be,Qr,"\xA0","\\nobreakspace"),q(Hn,Be,Qr,"\xA0","\\ "),q(Hn,Be,Qr,"\xA0"," "),q(Hn,Be,Qr,"\xA0","\\space"),q(Hn,Be,Qr,"\xA0","\\nobreakspace"),q(oe,Be,Qr,null,"\\nobreak"),q(oe,Be,Qr,null,"\\allowbreak"),q(oe,Be,Yr,",",","),q(oe,Be,Yr,";",";"),q(oe,Tt,Ln,"\u22BC","\\barwedge",!0),q(oe,Tt,Ln,"\u22BB","\\veebar",!0),q(oe,Be,Ln,"\u2299","\\odot",!0),q(oe,Be,Ln,"\u2295","\\oplus",!0),q(oe,Be,Ln,"\u2297","\\otimes",!0),q(oe,Be,tn,"\u2202","\\partial",!0),q(oe,Be,Ln,"\u2298","\\oslash",!0),q(oe,Tt,Ln,"\u229A","\\circledcirc",!0),q(oe,Tt,Ln,"\u22A1","\\boxdot",!0),q(oe,Be,Ln,"\u25B3","\\bigtriangleup"),q(oe,Be,Ln,"\u25BD","\\bigtriangledown"),q(oe,Be,Ln,"\u2020","\\dagger"),q(oe,Be,Ln,"\u22C4","\\diamond"),q(oe,Be,Ln,"\u22C6","\\star"),q(oe,Be,Ln,"\u25C3","\\triangleleft"),q(oe,Be,Ln,"\u25B9","\\triangleright"),q(oe,Be,Li,"{","\\{"),q(Hn,Be,tn,"{","\\{"),q(Hn,Be,tn,"{","\\textbraceleft"),q(oe,Be,Fi,"}","\\}"),q(Hn,Be,tn,"}","\\}"),q(Hn,Be,tn,"}","\\textbraceright"),q(oe,Be,Li,"{","\\lbrace"),q(oe,Be,Fi,"}","\\rbrace"),q(oe,Be,Li,"[","\\lbrack",!0),q(Hn,Be,tn,"[","\\lbrack",!0),q(oe,Be,Fi,"]","\\rbrack",!0),q(Hn,Be,tn,"]","\\rbrack",!0),q(oe,Be,Li,"(","\\lparen",!0),q(oe,Be,Fi,")","\\rparen",!0),q(Hn,Be,tn,"<","\\textless",!0),q(Hn,Be,tn,">","\\textgreater",!0),q(oe,Be,Li,"\u230A","\\lfloor",!0),q(oe,Be,Fi,"\u230B","\\rfloor",!0),q(oe,Be,Li,"\u2308","\\lceil",!0),q(oe,Be,Fi,"\u2309","\\rceil",!0),q(oe,Be,tn,"\\","\\backslash"),q(oe,Be,tn,"\u2223","|"),q(oe,Be,tn,"\u2223","\\vert"),q(Hn,Be,tn,"|","\\textbar",!0),q(oe,Be,tn,"\u2225","\\|"),q(oe,Be,tn,"\u2225","\\Vert"),q(Hn,Be,tn,"\u2225","\\textbardbl"),q(Hn,Be,tn,"~","\\textasciitilde"),q(Hn,Be,tn,"\\","\\textbackslash"),q(Hn,Be,tn,"^","\\textasciicircum"),q(oe,Be,Mt,"\u2191","\\uparrow",!0),q(oe,Be,Mt,"\u21D1","\\Uparrow",!0),q(oe,Be,Mt,"\u2193","\\downarrow",!0),q(oe,Be,Mt,"\u21D3","\\Downarrow",!0),q(oe,Be,Mt,"\u2195","\\updownarrow",!0),q(oe,Be,Mt,"\u21D5","\\Updownarrow",!0),q(oe,Be,Xt,"\u2210","\\coprod"),q(oe,Be,Xt,"\u22C1","\\bigvee"),q(oe,Be,Xt,"\u22C0","\\bigwedge"),q(oe,Be,Xt,"\u2A04","\\biguplus"),q(oe,Be,Xt,"\u22C2","\\bigcap"),q(oe,Be,Xt,"\u22C3","\\bigcup"),q(oe,Be,Xt,"\u222B","\\int"),q(oe,Be,Xt,"\u222B","\\intop"),q(oe,Be,Xt,"\u222C","\\iint"),q(oe,Be,Xt,"\u222D","\\iiint"),q(oe,Be,Xt,"\u220F","\\prod"),q(oe,Be,Xt,"\u2211","\\sum"),q(oe,Be,Xt,"\u2A02","\\bigotimes"),q(oe,Be,Xt,"\u2A01","\\bigoplus"),q(oe,Be,Xt,"\u2A00","\\bigodot"),q(oe,Be,Xt,"\u222E","\\oint"),q(oe,Be,Xt,"\u222F","\\oiint"),q(oe,Be,Xt,"\u2230","\\oiiint"),q(oe,Be,Xt,"\u2A06","\\bigsqcup"),q(oe,Be,Xt,"\u222B","\\smallint"),q(Hn,Be,qt,"\u2026","\\textellipsis"),q(oe,Be,qt,"\u2026","\\mathellipsis"),q(Hn,Be,qt,"\u2026","\\ldots",!0),q(oe,Be,qt,"\u2026","\\ldots",!0),q(oe,Be,qt,"\u22EF","\\@cdots",!0),q(oe,Be,qt,"\u22F1","\\ddots",!0),q(oe,Be,tn,"\u22EE","\\varvdots"),q(Hn,Be,tn,"\u22EE","\\varvdots"),q(oe,Be,fi,"\u02CA","\\acute"),q(oe,Be,fi,"\u02CB","\\grave"),q(oe,Be,fi,"\xA8","\\ddot"),q(oe,Be,fi,"~","\\tilde"),q(oe,Be,fi,"\u02C9","\\bar"),q(oe,Be,fi,"\u02D8","\\breve"),q(oe,Be,fi,"\u02C7","\\check"),q(oe,Be,fi,"^","\\hat"),q(oe,Be,fi,"\u20D7","\\vec"),q(oe,Be,fi,"\u02D9","\\dot"),q(oe,Be,fi,"\u02DA","\\mathring"),q(oe,Be,xi,"\uE131","\\@imath"),q(oe,Be,xi,"\uE237","\\@jmath"),q(oe,Be,tn,"\u0131","\u0131"),q(oe,Be,tn,"\u0237","\u0237"),q(Hn,Be,tn,"\u0131","\\i",!0),q(Hn,Be,tn,"\u0237","\\j",!0),q(Hn,Be,tn,"\xDF","\\ss",!0),q(Hn,Be,tn,"\xE6","\\ae",!0),q(Hn,Be,tn,"\u0153","\\oe",!0),q(Hn,Be,tn,"\xF8","\\o",!0),q(Hn,Be,tn,"\xC6","\\AE",!0),q(Hn,Be,tn,"\u0152","\\OE",!0),q(Hn,Be,tn,"\xD8","\\O",!0),q(Hn,Be,fi,"\u02CA","\\'"),q(Hn,Be,fi,"\u02CB","\\`"),q(Hn,Be,fi,"\u02C6","\\^"),q(Hn,Be,fi,"\u02DC","\\~"),q(Hn,Be,fi,"\u02C9","\\="),q(Hn,Be,fi,"\u02D8","\\u"),q(Hn,Be,fi,"\u02D9","\\."),q(Hn,Be,fi,"\xB8","\\c"),q(Hn,Be,fi,"\u02DA","\\r"),q(Hn,Be,fi,"\u02C7","\\v"),q(Hn,Be,fi,"\xA8",'\\"'),q(Hn,Be,fi,"\u02DD","\\H"),q(Hn,Be,fi,"\u25EF","\\textcircled");var Oi={"--":!0,"---":!0,"``":!0,"''":!0};q(Hn,Be,tn,"\u2013","--",!0),q(Hn,Be,tn,"\u2013","\\textendash"),q(Hn,Be,tn,"\u2014","---",!0),q(Hn,Be,tn,"\u2014","\\textemdash"),q(Hn,Be,tn,"\u2018","`",!0),q(Hn,Be,tn,"\u2018","\\textquoteleft"),q(Hn,Be,tn,"\u2019","'",!0),q(Hn,Be,tn,"\u2019","\\textquoteright"),q(Hn,Be,tn,"\u201C","``",!0),q(Hn,Be,tn,"\u201C","\\textquotedblleft"),q(Hn,Be,tn,"\u201D","''",!0),q(Hn,Be,tn,"\u201D","\\textquotedblright"),q(oe,Be,tn,"\xB0","\\degree",!0),q(Hn,Be,tn,"\xB0","\\degree"),q(Hn,Be,tn,"\xB0","\\textdegree",!0),q(oe,Be,tn,"\xA3","\\pounds"),q(oe,Be,tn,"\xA3","\\mathsterling",!0),q(Hn,Be,tn,"\xA3","\\pounds"),q(Hn,Be,tn,"\xA3","\\textsterling",!0),q(oe,Tt,tn,"\u2720","\\maltese"),q(Hn,Tt,tn,"\u2720","\\maltese");for(var Ei='0123456789/@."',or=0;or<Ei.length;or++){var tr=Ei.charAt(or);q(oe,Be,tn,tr,tr)}for(var Zn='0123456789!@*()-=+";:?/.,',he=0;he<Zn.length;he++){var gr=Zn.charAt(he);q(Hn,Be,tn,gr,gr)}for(var br="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",cr=0;cr<br.length;cr++){var Br=br.charAt(cr);q(oe,Be,xi,Br,Br),q(Hn,Be,tn,Br,Br)}q(oe,Tt,tn,"C","\u2102"),q(Hn,Tt,tn,"C","\u2102"),q(oe,Tt,tn,"H","\u210D"),q(Hn,Tt,tn,"H","\u210D"),q(oe,Tt,tn,"N","\u2115"),q(Hn,Tt,tn,"N","\u2115"),q(oe,Tt,tn,"P","\u2119"),q(Hn,Tt,tn,"P","\u2119"),q(oe,Tt,tn,"Q","\u211A"),q(Hn,Tt,tn,"Q","\u211A"),q(oe,Tt,tn,"R","\u211D"),q(Hn,Tt,tn,"R","\u211D"),q(oe,Tt,tn,"Z","\u2124"),q(Hn,Tt,tn,"Z","\u2124"),q(oe,Be,xi,"h","\u210E"),q(Hn,Be,xi,"h","\u210E");for(var Zi="",Ri=0;Ri<br.length;Ri++){var Ai=br.charAt(Ri);Zi=String.fromCharCode(55349,56320+Ri),q(oe,Be,xi,Ai,Zi),q(Hn,Be,tn,Ai,Zi),Zi=String.fromCharCode(55349,56372+Ri),q(oe,Be,xi,Ai,Zi),q(Hn,Be,tn,Ai,Zi),Zi=String.fromCharCode(55349,56424+Ri),q(oe,Be,xi,Ai,Zi),q(Hn,Be,tn,Ai,Zi),Zi=String.fromCharCode(55349,56580+Ri),q(oe,Be,xi,Ai,Zi),q(Hn,Be,tn,Ai,Zi),Zi=String.fromCharCode(55349,56684+Ri),q(oe,Be,xi,Ai,Zi),q(Hn,Be,tn,Ai,Zi),Zi=String.fromCharCode(55349,56736+Ri),q(oe,Be,xi,Ai,Zi),q(Hn,Be,tn,Ai,Zi),Zi=String.fromCharCode(55349,56788+Ri),q(oe,Be,xi,Ai,Zi),q(Hn,Be,tn,Ai,Zi),Zi=String.fromCharCode(55349,56840+Ri),q(oe,Be,xi,Ai,Zi),q(Hn,Be,tn,Ai,Zi),Zi=String.fromCharCode(55349,56944+Ri),q(oe,Be,xi,Ai,Zi),q(Hn,Be,tn,Ai,Zi),Ri<26&&(Zi=String.fromCharCode(55349,56632+Ri),q(oe,Be,xi,Ai,Zi),q(Hn,Be,tn,Ai,Zi),Zi=String.fromCharCode(55349,56476+Ri),q(oe,Be,xi,Ai,Zi),q(Hn,Be,tn,Ai,Zi))}Zi="\u{1D55C}",q(oe,Be,xi,"k",Zi),q(Hn,Be,tn,"k",Zi);for(var hr=0;hr<10;hr++){var Ki=hr.toString();Zi=String.fromCharCode(55349,57294+hr),q(oe,Be,xi,Ki,Zi),q(Hn,Be,tn,Ki,Zi),Zi=String.fromCharCode(55349,57314+hr),q(oe,Be,xi,Ki,Zi),q(Hn,Be,tn,Ki,Zi),Zi=String.fromCharCode(55349,57324+hr),q(oe,Be,xi,Ki,Zi),q(Hn,Be,tn,Ki,Zi),Zi=String.fromCharCode(55349,57334+hr),q(oe,Be,xi,Ki,Zi),q(Hn,Be,tn,Ki,Zi)}for(var Lr="\xD0\xDE\xFE",Wr=0;Wr<Lr.length;Wr++){var eo=Lr.charAt(Wr);q(oe,Be,xi,eo,eo),q(Hn,Be,tn,eo,eo)}var Lo=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],pi=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],pa=function(m,S){var D=m.charCodeAt(0),Z=m.charCodeAt(1),se=(D-55296)*1024+(Z-56320)+65536,Y=S==="math"?0:1;if(119808<=se&&se<120484){var ct=Math.floor((se-119808)/26);return[Lo[ct][2],Lo[ct][Y]]}else if(120782<=se&&se<=120831){var ft=Math.floor((se-120782)/10);return[pi[ft][2],pi[ft][Y]]}else{if(se===120485||se===120486)return[Lo[0][2],Lo[0][Y]];if(120486<se&&se<120782)return["",""];throw new Ft("Unsupported character: "+m)}},Uo=function(m,S,D){return zi[D][m]&&zi[D][m].replace&&(m=zi[D][m].replace),{value:m,metrics:ht(m,S,D)}},oa=function(m,S,D,Z,se){var Y=Uo(m,S,D),ct=Y.metrics;m=Y.value;var ft;if(ct){var Sn=ct.italic;(D==="text"||Z&&Z.font==="mathit")&&(Sn=0),ft=new xn(m,ct.height,ct.depth,Sn,ct.skew,ct.width,se)}else typeof console!="undefined"&&console.warn("No character metrics "+("for '"+m+"' in style '"+S+"' and mode '"+D+"'")),ft=new xn(m,0,0,0,0,0,se);if(Z){ft.maxFontSize=Z.sizeMultiplier,Z.style.isTight()&&ft.classes.push("mtight");var Bn=Z.getColor();Bn&&(ft.style.color=Bn)}return ft},ma=function(m,S,D,Z){return Z===void 0&&(Z=[]),D.font==="boldsymbol"&&Uo(m,"Main-Bold",S).metrics?oa(m,"Main-Bold",S,D,Z.concat(["mathbf"])):m==="\\"||zi[S][m].font==="main"?oa(m,"Main-Regular",S,D,Z):oa(m,"AMS-Regular",S,D,Z.concat(["amsrm"]))},$a=function(m,S,D,Z,se){return se!=="textord"&&Uo(m,"Math-BoldItalic",S).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},is=function(m,S,D){var Z=m.mode,se=m.text,Y=["mord"],ct=Z==="math"||Z==="text"&&S.font,ft=ct?S.font:S.fontFamily,Sn="",Bn="";if(se.charCodeAt(0)===55349&&([Sn,Bn]=pa(se,Z)),Sn.length>0)return oa(se,Sn,Z,S,Y.concat(Bn));if(ft){var Qn,Ti;if(ft==="boldsymbol"){var Ni=$a(se,Z,S,Y,D);Qn=Ni.fontName,Ti=[Ni.fontClass]}else ct?(Qn=co[ft].fontName,Ti=[ft]):(Qn=Pr(ft,S.fontWeight,S.fontShape),Ti=[ft,S.fontWeight,S.fontShape]);if(Uo(se,Qn,Z).metrics)return oa(se,Qn,Z,S,Y.concat(Ti));if(Oi.hasOwnProperty(se)&&Qn.slice(0,10)==="Typewriter"){for(var $i=[],Nr=0;Nr<se.length;Nr++)$i.push(oa(se[Nr],Qn,Z,S,Y.concat(Ti)));return nl($i)}}if(D==="mathord")return oa(se,"Math-Italic",Z,S,Y.concat(["mathnormal"]));if(D==="textord"){var $r=zi[Z][se]&&zi[Z][se].font;if($r==="ams"){var jr=Pr("amsrm",S.fontWeight,S.fontShape);return oa(se,jr,Z,S,Y.concat("amsrm",S.fontWeight,S.fontShape))}else if($r==="main"||!$r){var To=Pr("textrm",S.fontWeight,S.fontShape);return oa(se,To,Z,S,Y.concat(S.fontWeight,S.fontShape))}else{var jo=Pr($r,S.fontWeight,S.fontShape);return oa(se,jo,Z,S,Y.concat(jo,S.fontWeight,S.fontShape))}}else throw new Error("unexpected type: "+D+" in makeOrd")},ka=(A,m)=>{if(Wn(A.classes)!==Wn(m.classes)||A.skew!==m.skew||A.maxFontSize!==m.maxFontSize)return!1;if(A.classes.length===1){var S=A.classes[0];if(S==="mbin"||S==="mord")return!1}for(var D in A.style)if(A.style.hasOwnProperty(D)&&A.style[D]!==m.style[D])return!1;for(var Z in m.style)if(m.style.hasOwnProperty(Z)&&A.style[Z]!==m.style[Z])return!1;return!0},ss=A=>{for(var m=0;m<A.length-1;m++){var S=A[m],D=A[m+1];S instanceof xn&&D instanceof xn&&ka(S,D)&&(S.text+=D.text,S.height=Math.max(S.height,D.height),S.depth=Math.max(S.depth,D.depth),S.italic=D.italic,A.splice(m+1,1),m--)}return A},Ua=function(m){for(var S=0,D=0,Z=0,se=0;se<m.children.length;se++){var Y=m.children[se];Y.height>S&&(S=Y.height),Y.depth>D&&(D=Y.depth),Y.maxFontSize>Z&&(Z=Y.maxFontSize)}m.height=S,m.depth=D,m.maxFontSize=Z},Go=function(m,S,D,Z){var se=new L(m,S,D,Z);return Ua(se),se},Zt=(A,m,S,D)=>new L(A,m,S,D),Pa=function(m,S,D){var Z=Go([m],[],S);return Z.height=Math.max(D||S.fontMetrics().defaultRuleThickness,S.minRuleThickness),Z.style.borderBottomWidth=Lt(Z.height),Z.maxFontSize=1,Z},ql=function(m,S,D,Z){var se=new Rt(m,S,D,Z);return Ua(se),se},nl=function(m){var S=new kr(m);return Ua(S),S},uo=function(m,S){return m instanceof kr?Go([],[m],S):m},No=function(m){if(m.positionType==="individualShift"){for(var S=m.children,D=[S[0]],Z=-S[0].shift-S[0].elem.depth,se=Z,Y=1;Y<S.length;Y++){var ct=-S[Y].shift-se-S[Y].elem.depth,ft=ct-(S[Y-1].elem.height+S[Y-1].elem.depth);se=se+ct,D.push({type:"kern",size:ft}),D.push(S[Y])}return{children:D,depth:Z}}var Sn;if(m.positionType==="top"){for(var Bn=m.positionData,Qn=0;Qn<m.children.length;Qn++){var Ti=m.children[Qn];Bn-=Ti.type==="kern"?Ti.size:Ti.elem.height+Ti.elem.depth}Sn=Bn}else if(m.positionType==="bottom")Sn=-m.positionData;else{var Ni=m.children[0];if(Ni.type!=="elem")throw new Error('First child must have type "elem".');if(m.positionType==="shift")Sn=-Ni.elem.depth-m.positionData;else if(m.positionType==="firstBaseline")Sn=-Ni.elem.depth;else throw new Error("Invalid positionType "+m.positionType+".")}return{children:m.children,depth:Sn}},go=function(m,S){for(var{children:D,depth:Z}=No(m),se=0,Y=0;Y<D.length;Y++){var ct=D[Y];if(ct.type==="elem"){var ft=ct.elem;se=Math.max(se,ft.maxFontSize,ft.height)}}se+=2;var Sn=Go(["pstrut"],[]);Sn.style.height=Lt(se);for(var Bn=[],Qn=Z,Ti=Z,Ni=Z,$i=0;$i<D.length;$i++){var Nr=D[$i];if(Nr.type==="kern")Ni+=Nr.size;else{var $r=Nr.elem,jr=Nr.wrapperClasses||[],To=Nr.wrapperStyle||{},jo=Go(jr,[Sn,$r],void 0,To);jo.style.top=Lt(-se-Ni-$r.depth),Nr.marginLeft&&(jo.style.marginLeft=Nr.marginLeft),Nr.marginRight&&(jo.style.marginRight=Nr.marginRight),Bn.push(jo),Ni+=$r.height+$r.depth}Qn=Math.min(Qn,Ni),Ti=Math.max(Ti,Ni)}var Ra=Go(["vlist"],Bn);Ra.style.height=Lt(Ti);var na;if(Qn<0){var Yo=Go([],[]),fa=Go(["vlist"],[Yo]);fa.style.height=Lt(-Qn);var ls=Go(["vlist-s"],[new xn("\u200B")]);na=[Go(["vlist-r"],[Ra,ls]),Go(["vlist-r"],[fa])]}else na=[Go(["vlist-r"],[Ra])];var ua=Go(["vlist-t"],na);return na.length===2&&ua.classes.push("vlist-t2"),ua.height=Ti,ua.depth=-Qn,ua},Ot=(A,m)=>{var S=Go(["mspace"],[],m),D=Ut(A,m);return S.style.marginRight=Lt(D),S},Pr=function(m,S,D){var Z="";switch(m){case"amsrm":Z="AMS";break;case"textrm":Z="Main";break;case"textsf":Z="SansSerif";break;case"texttt":Z="Typewriter";break;default:Z=m}var se;return S==="textbf"&&D==="textit"?se="BoldItalic":S==="textbf"?se="Bold":S==="textit"?se="Italic":se="Regular",Z+"-"+se},co={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},xa={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},xr=function(m,S){var[D,Z,se]=xa[m],Y=new li(D),ct=new An([Y],{width:Lt(Z),height:Lt(se),style:"width:"+Lt(Z),viewBox:"0 0 "+1e3*Z+" "+1e3*se,preserveAspectRatio:"xMinYMin"}),ft=Zt(["overlay"],[ct],S);return ft.height=se,ft.style.height=Lt(se),ft.style.width=Lt(Z),ft},wn={fontMap:co,makeSymbol:oa,mathsym:ma,makeSpan:Go,makeSvgSpan:Zt,makeLineSpan:Pa,makeAnchor:ql,makeFragment:nl,wrapFragment:uo,makeVList:go,makeOrd:is,makeGlue:Ot,staticSvg:xr,svgData:xa,tryCombineChars:ss},ar={number:3,unit:"mu"},mi={number:4,unit:"mu"},Wo={number:5,unit:"mu"},ga={mord:{mop:ar,mbin:mi,mrel:Wo,minner:ar},mop:{mord:ar,mop:ar,mrel:Wo,minner:ar},mbin:{mord:mi,mop:mi,mopen:mi,minner:mi},mrel:{mord:Wo,mop:Wo,mopen:Wo,minner:Wo},mopen:{},mclose:{mop:ar,mbin:mi,mrel:Wo,minner:ar},mpunct:{mord:ar,mop:ar,mrel:Wo,mopen:ar,mclose:ar,mpunct:ar,minner:ar},minner:{mord:ar,mop:ar,mbin:mi,mrel:Wo,mopen:ar,mpunct:ar,minner:ar}},Ja={mord:{mop:ar},mop:{mord:ar,mop:ar},mbin:{},mrel:{},mopen:{},mclose:{mop:ar},mpunct:{},minner:{mop:ar}},Ms={},Ss={},ai={};function Ui(A){for(var{type:m,names:S,props:D,handler:Z,htmlBuilder:se,mathmlBuilder:Y}=A,ct={type:m,numArgs:D.numArgs,argTypes:D.argTypes,allowedInArgument:!!D.allowedInArgument,allowedInText:!!D.allowedInText,allowedInMath:D.allowedInMath===void 0?!0:D.allowedInMath,numOptionalArgs:D.numOptionalArgs||0,infix:!!D.infix,primitive:!!D.primitive,handler:Z},ft=0;ft<S.length;++ft)Ms[S[ft]]=ct;m&&(se&&(Ss[m]=se),Y&&(ai[m]=Y))}function Jo(A){var{type:m,htmlBuilder:S,mathmlBuilder:D}=A;Ui({type:m,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:S,mathmlBuilder:D})}var Es=function(m){return m.type==="ordgroup"&&m.body.length===1?m.body[0]:m},Vo=function(m){return m.type==="ordgroup"?m.body:[m]},rs=wn.makeSpan,Rr=["leftmost","mbin","mopen","mrel","mop","mpunct"],dl=["rightmost","mrel","mclose","mpunct"],ws={display:yn.DISPLAY,text:yn.TEXT,script:yn.SCRIPT,scriptscript:yn.SCRIPTSCRIPT},Os={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Bo=function(m,S,D,Z){Z===void 0&&(Z=[null,null]);for(var se=[],Y=0;Y<m.length;Y++){var ct=_o(m[Y],S);if(ct instanceof kr){var ft=ct.children;se.push(...ft)}else se.push(ct)}if(wn.tryCombineChars(se),!D)return se;var Sn=S;if(m.length===1){var Bn=m[0];Bn.type==="sizing"?Sn=S.havingSize(Bn.size):Bn.type==="styling"&&(Sn=S.havingStyle(ws[Bn.style]))}var Qn=rs([Z[0]||"leftmost"],[],S),Ti=rs([Z[1]||"rightmost"],[],S),Ni=D==="root";return Ia(se,($i,Nr)=>{var $r=Nr.classes[0],jr=$i.classes[0];$r==="mbin"&&T.contains(dl,jr)?Nr.classes[0]="mord":jr==="mbin"&&T.contains(Rr,$r)&&($i.classes[0]="mord")},{node:Qn},Ti,Ni),Ia(se,($i,Nr)=>{var $r=qa(Nr),jr=qa($i),To=$r&&jr?$i.hasClass("mtight")?Ja[$r][jr]:ga[$r][jr]:null;if(To)return wn.makeGlue(To,Sn)},{node:Qn},Ti,Ni),se},Ia=function A(m,S,D,Z,se){Z&&m.push(Z);for(var Y=0;Y<m.length;Y++){var ct=m[Y],ft=fl(ct);if(ft){A(ft.children,S,D,null,se);continue}var Sn=!ct.hasClass("mspace");if(Sn){var Bn=S(ct,D.node);Bn&&(D.insertAfter?D.insertAfter(Bn):(m.unshift(Bn),Y++))}Sn?D.node=ct:se&&ct.hasClass("newline")&&(D.node=rs(["leftmost"])),D.insertAfter=(Qn=>Ti=>{m.splice(Qn+1,0,Ti),Y++})(Y)}Z&&m.pop()},fl=function(m){return m instanceof kr||m instanceof Rt||m instanceof L&&m.hasClass("enclosing")?m:null},ja=function A(m,S){var D=fl(m);if(D){var Z=D.children;if(Z.length){if(S==="right")return A(Z[Z.length-1],"right");if(S==="left")return A(Z[0],"left")}}return m},qa=function(m,S){return m?(S&&(m=ja(m,S)),Os[m.classes[0]]||null):null},Rl=function(m,S){var D=["nulldelimiter"].concat(m.baseSizingClasses());return rs(S.concat(D))},_o=function(m,S,D){if(!m)return rs();if(Ss[m.type]){var Z=Ss[m.type](m,S);if(D&&S.size!==D.size){Z=rs(S.sizingClasses(D),[Z],S);var se=S.sizeMultiplier/D.sizeMultiplier;Z.height*=se,Z.depth*=se}return Z}else throw new Ft("Got group of unknown type: '"+m.type+"'")};function il(A,m){var S=rs(["base"],A,m),D=rs(["strut"]);return D.style.height=Lt(S.height+S.depth),S.depth&&(D.style.verticalAlign=Lt(-S.depth)),S.children.unshift(D),S}function rl(A,m){var S=null;A.length===1&&A[0].type==="tag"&&(S=A[0].tag,A=A[0].body);var D=Bo(A,m,"root"),Z;D.length===2&&D[1].hasClass("tag")&&(Z=D.pop());for(var se=[],Y=[],ct=0;ct<D.length;ct++)if(Y.push(D[ct]),D[ct].hasClass("mbin")||D[ct].hasClass("mrel")||D[ct].hasClass("allowbreak")){for(var ft=!1;ct<D.length-1&&D[ct+1].hasClass("mspace")&&!D[ct+1].hasClass("newline");)ct++,Y.push(D[ct]),D[ct].hasClass("nobreak")&&(ft=!0);ft||(se.push(il(Y,m)),Y=[])}else D[ct].hasClass("newline")&&(Y.pop(),Y.length>0&&(se.push(il(Y,m)),Y=[]),se.push(D[ct]));Y.length>0&&se.push(il(Y,m));var Sn;S?(Sn=il(Bo(S,m,!0)),Sn.classes=["tag"],se.push(Sn)):Z&&se.push(Z);var Bn=rs(["katex-html"],se);if(Bn.setAttribute("aria-hidden","true"),Sn){var Qn=Sn.children[0];Qn.style.height=Lt(Bn.height+Bn.depth),Bn.depth&&(Qn.style.verticalAlign=Lt(-Bn.depth))}return Bn}function hu(A){return new kr(A)}class Ga{constructor(m,S,D){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=m,this.attributes={},this.children=S||[],this.classes=D||[]}setAttribute(m,S){this.attributes[m]=S}getAttribute(m){return this.attributes[m]}toNode(){var m=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var S in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,S)&&m.setAttribute(S,this.attributes[S]);this.classes.length>0&&(m.className=Wn(this.classes));for(var D=0;D<this.children.length;D++)if(this.children[D]instanceof os&&this.children[D+1]instanceof os){for(var Z=this.children[D].toText()+this.children[++D].toText();this.children[D+1]instanceof os;)Z+=this.children[++D].toText();m.appendChild(new os(Z).toNode())}else m.appendChild(this.children[D].toNode());return m}toMarkup(){var m="<"+this.type;for(var S in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,S)&&(m+=" "+S+'="',m+=T.escape(this.attributes[S]),m+='"');this.classes.length>0&&(m+=' class ="'+T.escape(Wn(this.classes))+'"'),m+=">";for(var D=0;D<this.children.length;D++)m+=this.children[D].toMarkup();return m+="</"+this.type+">",m}toText(){return this.children.map(m=>m.toText()).join("")}}class os{constructor(m){this.text=void 0,this.text=m}toNode(){return document.createTextNode(this.text)}toMarkup(){return T.escape(this.toText())}toText(){return this.text}}class _s{constructor(m){this.width=void 0,this.character=void 0,this.width=m,m>=.05555&&m<=.05556?this.character="\u200A":m>=.1666&&m<=.1667?this.character="\u2009":m>=.2222&&m<=.2223?this.character="\u2005":m>=.2777&&m<=.2778?this.character="\u2005\u200A":m>=-.05556&&m<=-.05555?this.character="\u200A\u2063":m>=-.1667&&m<=-.1666?this.character="\u2009\u2063":m>=-.2223&&m<=-.2222?this.character="\u205F\u2063":m>=-.2778&&m<=-.2777?this.character="\u2005\u2063":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var m=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return m.setAttribute("width",Lt(this.width)),m}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+Lt(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var Vi={MathNode:Ga,TextNode:os,SpaceNode:_s,newDocumentFragment:hu},Cs=function(m,S,D){return zi[S][m]&&zi[S][m].replace&&m.charCodeAt(0)!==55349&&!(Oi.hasOwnProperty(m)&&D&&(D.fontFamily&&D.fontFamily.slice(4,6)==="tt"||D.font&&D.font.slice(4,6)==="tt"))&&(m=zi[S][m].replace),new Vi.TextNode(m)},jl=function(m){return m.length===1?m[0]:new Vi.MathNode("mrow",m)},Kr=function(m,S){if(S.fontFamily==="texttt")return"monospace";if(S.fontFamily==="textsf")return S.fontShape==="textit"&&S.fontWeight==="textbf"?"sans-serif-bold-italic":S.fontShape==="textit"?"sans-serif-italic":S.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(S.fontShape==="textit"&&S.fontWeight==="textbf")return"bold-italic";if(S.fontShape==="textit")return"italic";if(S.fontWeight==="textbf")return"bold";var D=S.font;if(!D||D==="mathnormal")return null;var Z=m.mode;if(D==="mathit")return"italic";if(D==="boldsymbol")return m.type==="textord"?"bold":"bold-italic";if(D==="mathbf")return"bold";if(D==="mathbb")return"double-struck";if(D==="mathsfit")return"sans-serif-italic";if(D==="mathfrak")return"fraktur";if(D==="mathscr"||D==="mathcal")return"script";if(D==="mathsf")return"sans-serif";if(D==="mathtt")return"monospace";var se=m.text;if(T.contains(["\\imath","\\jmath"],se))return null;zi[Z][se]&&zi[Z][se].replace&&(se=zi[Z][se].replace);var Y=wn.fontMap[D].fontName;return ht(se,Y,Z)?wn.fontMap[D].variant:null};function wo(A){if(!A)return!1;if(A.type==="mi"&&A.children.length===1){var m=A.children[0];return m instanceof os&&m.text==="."}else if(A.type==="mo"&&A.children.length===1&&A.getAttribute("separator")==="true"&&A.getAttribute("lspace")==="0em"&&A.getAttribute("rspace")==="0em"){var S=A.children[0];return S instanceof os&&S.text===","}else return!1}var ha=function(m,S,D){if(m.length===1){var Z=ro(m[0],S);return D&&Z instanceof Ga&&Z.type==="mo"&&(Z.setAttribute("lspace","0em"),Z.setAttribute("rspace","0em")),[Z]}for(var se=[],Y,ct=0;ct<m.length;ct++){var ft=ro(m[ct],S);if(ft instanceof Ga&&Y instanceof Ga){if(ft.type==="mtext"&&Y.type==="mtext"&&ft.getAttribute("mathvariant")===Y.getAttribute("mathvariant")){Y.children.push(...ft.children);continue}else if(ft.type==="mn"&&Y.type==="mn"){Y.children.push(...ft.children);continue}else if(wo(ft)&&Y.type==="mn"){Y.children.push(...ft.children);continue}else if(ft.type==="mn"&&wo(Y))ft.children=[...Y.children,...ft.children],se.pop();else if((ft.type==="msup"||ft.type==="msub")&&ft.children.length>=1&&(Y.type==="mn"||wo(Y))){var Sn=ft.children[0];Sn instanceof Ga&&Sn.type==="mn"&&(Sn.children=[...Y.children,...Sn.children],se.pop())}else if(Y.type==="mi"&&Y.children.length===1){var Bn=Y.children[0];if(Bn instanceof os&&Bn.text==="\u0338"&&(ft.type==="mo"||ft.type==="mi"||ft.type==="mn")){var Qn=ft.children[0];Qn instanceof os&&Qn.text.length>0&&(Qn.text=Qn.text.slice(0,1)+"\u0338"+Qn.text.slice(1),se.pop())}}}se.push(ft),Y=ft}return se},aa=function(m,S,D){return jl(ha(m,S,D))},ro=function(m,S){if(!m)return new Vi.MathNode("mrow");if(ai[m.type]){var D=ai[m.type](m,S);return D}else throw new Ft("Got group of unknown type: '"+m.type+"'")};function ia(A,m,S,D,Z){var se=ha(A,S),Y;se.length===1&&se[0]instanceof Ga&&T.contains(["mrow","mtable"],se[0].type)?Y=se[0]:Y=new Vi.MathNode("mrow",se);var ct=new Vi.MathNode("annotation",[new Vi.TextNode(m)]);ct.setAttribute("encoding","application/x-tex");var ft=new Vi.MathNode("semantics",[Y,ct]),Sn=new Vi.MathNode("math",[ft]);Sn.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),D&&Sn.setAttribute("display","block");var Bn=Z?"katex":"katex-mathml";return wn.makeSpan([Bn],[Sn])}var va=function(m){return new Fn({style:m.displayMode?yn.DISPLAY:yn.TEXT,maxSize:m.maxSize,minRuleThickness:m.minRuleThickness})},Ma=function(m,S){if(S.displayMode){var D=["katex-display"];S.leqno&&D.push("leqno"),S.fleqn&&D.push("fleqn"),m=wn.makeSpan(D,[m])}return m},Oa=function(m,S,D){var Z=va(D),se;if(D.output==="mathml")return ia(m,S,Z,D.displayMode,!0);if(D.output==="html"){var Y=rl(m,Z);se=wn.makeSpan(["katex"],[Y])}else{var ct=ia(m,S,Z,D.displayMode,!1),ft=rl(m,Z);se=wn.makeSpan(["katex"],[ct,ft])}return Ma(se,D)},Gl=function(m,S,D){var Z=va(D),se=rl(m,Z),Y=wn.makeSpan(["katex"],[se]);return Ma(Y,D)},Vs={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xrightleftarrows:"\u21C4",xrightequilibrium:"\u21CC",xleftequilibrium:"\u21CB","\\cdrightarrow":"\u2192","\\cdleftarrow":"\u2190","\\cdlongequal":"="},wa=function(m){var S=new Vi.MathNode("mo",[new Vi.TextNode(Vs[m.replace(/^\\/,"")])]);return S.setAttribute("stretchy","true"),S},hc={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},zu=function(m){return m.type==="ordgroup"?m.body.length:1},du=function(m,S){function D(){var ct=4e5,ft=m.label.slice(1);if(T.contains(["widehat","widecheck","widetilde","utilde"],ft)){var Sn=m,Bn=zu(Sn.base),Qn,Ti,Ni;if(Bn>5)ft==="widehat"||ft==="widecheck"?(Qn=420,ct=2364,Ni=.42,Ti=ft+"4"):(Qn=312,ct=2340,Ni=.34,Ti="tilde4");else{var $i=[1,1,2,2,3,3][Bn];ft==="widehat"||ft==="widecheck"?(ct=[0,1062,2364,2364,2364][$i],Qn=[0,239,300,360,420][$i],Ni=[0,.24,.3,.3,.36,.42][$i],Ti=ft+$i):(ct=[0,600,1033,2339,2340][$i],Qn=[0,260,286,306,312][$i],Ni=[0,.26,.286,.3,.306,.34][$i],Ti="tilde"+$i)}var Nr=new li(Ti),$r=new An([Nr],{width:"100%",height:Lt(Ni),viewBox:"0 0 "+ct+" "+Qn,preserveAspectRatio:"none"});return{span:wn.makeSvgSpan([],[$r],S),minWidth:0,height:Ni}}else{var jr=[],To=hc[ft],[jo,Ra,na]=To,Yo=na/1e3,fa=jo.length,ls,ua;if(fa===1){var Sl=To[3];ls=["hide-tail"],ua=[Sl]}else if(fa===2)ls=["halfarrow-left","halfarrow-right"],ua=["xMinYMin","xMaxYMin"];else if(fa===3)ls=["brace-left","brace-center","brace-right"],ua=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
`+fa+" children.");for(var Us=0;Us<fa;Us++){var us=new li(jo[Us]),Ns=new An([us],{width:"400em",height:Lt(Yo),viewBox:"0 0 "+ct+" "+na,preserveAspectRatio:ua[Us]+" slice"}),al=wn.makeSvgSpan([ls[Us]],[Ns],S);if(fa===1)return{span:al,minWidth:Ra,height:Yo};al.style.height=Lt(Yo),jr.push(al)}return{span:wn.makeSpan(["stretchy"],jr,S),minWidth:Ra,height:Yo}}}var{span:Z,minWidth:se,height:Y}=D();return Z.height=Y,Z.style.height=Lt(Y),se>0&&(Z.style.minWidth=Lt(se)),Z},nr=function(m,S,D,Z,se){var Y,ct=m.height+m.depth+D+Z;if(/fbox|color|angl/.test(S)){if(Y=wn.makeSpan(["stretchy",S],[],se),S==="fbox"){var ft=se.color&&se.getColor();ft&&(Y.style.borderColor=ft)}}else{var Sn=[];/^[bx]cancel$/.test(S)&&Sn.push(new Nn({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(S)&&Sn.push(new Nn({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var Bn=new An(Sn,{width:"100%",height:Lt(ct)});Y=wn.makeSvgSpan([],[Bn],se)}return Y.height=ct,Y.style.height=Lt(ct),Y},Ks={encloseSpan:nr,mathMLnode:wa,svgSpan:du};function qe(A,m){if(!A||A.type!==m)throw new Error("Expected node of type "+m+", but got "+(A?"node of type "+A.type:String(A)));return A}function Dn(A){var m=Cu(A);if(!m)throw new Error("Expected node of symbol group type, but got "+(A?"node of type "+A.type:String(A)));return m}function Cu(A){return A&&(A.type==="atom"||Yt.hasOwnProperty(A.type))?A:null}var Yu=(A,m)=>{var S,D,Z;A&&A.type==="supsub"?(D=qe(A.base,"accent"),S=D.base,A.base=S,Z=Mi(_o(A,m)),A.base=D):(D=qe(A,"accent"),S=D.base);var se=_o(S,m.havingCrampedStyle()),Y=D.isShifty&&T.isCharacterBox(S),ct=0;if(Y){var ft=T.getBaseElem(S),Sn=_o(ft,m.havingCrampedStyle());ct=lt(Sn).skew}var Bn=D.label==="\\c",Qn=Bn?se.height+se.depth:Math.min(se.height,m.fontMetrics().xHeight),Ti;if(D.isStretchy)Ti=Ks.svgSpan(D,m),Ti=wn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:se},{type:"elem",elem:Ti,wrapperClasses:["svg-align"],wrapperStyle:ct>0?{width:"calc(100% - "+Lt(2*ct)+")",marginLeft:Lt(2*ct)}:void 0}]},m);else{var Ni,$i;D.label==="\\vec"?(Ni=wn.staticSvg("vec",m),$i=wn.svgData.vec[1]):(Ni=wn.makeOrd({mode:D.mode,text:D.label},m,"textord"),Ni=lt(Ni),Ni.italic=0,$i=Ni.width,Bn&&(Qn+=Ni.depth)),Ti=wn.makeSpan(["accent-body"],[Ni]);var Nr=D.label==="\\textcircled";Nr&&(Ti.classes.push("accent-full"),Qn=se.height);var $r=ct;Nr||($r-=$i/2),Ti.style.left=Lt($r),D.label==="\\textcircled"&&(Ti.style.top=".2em"),Ti=wn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:se},{type:"kern",size:-Qn},{type:"elem",elem:Ti}]},m)}var jr=wn.makeSpan(["mord","accent"],[Ti],m);return Z?(Z.children[0]=jr,Z.height=Math.max(jr.height,Z.height),Z.classes[0]="mord",Z):jr},pl=(A,m)=>{var S=A.isStretchy?Ks.mathMLnode(A.label):new Vi.MathNode("mo",[Cs(A.label,A.mode)]),D=new Vi.MathNode("mover",[ro(A.base,m),S]);return D.setAttribute("accent","true"),D},ml=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(A=>"\\"+A).join("|"));Ui({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(A,m)=>{var S=Es(m[0]),D=!ml.test(A.funcName),Z=!D||A.funcName==="\\widehat"||A.funcName==="\\widetilde"||A.funcName==="\\widecheck";return{type:"accent",mode:A.parser.mode,label:A.funcName,isStretchy:D,isShifty:Z,base:S}},htmlBuilder:Yu,mathmlBuilder:pl}),Ui({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(A,m)=>{var S=m[0],D=A.parser.mode;return D==="math"&&(A.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+A.funcName+" works only in text mode"),D="text"),{type:"accent",mode:D,label:A.funcName,isStretchy:!1,isShifty:!0,base:S}},htmlBuilder:Yu,mathmlBuilder:pl}),Ui({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(A,m)=>{var{parser:S,funcName:D}=A,Z=m[0];return{type:"accentUnder",mode:S.mode,label:D,base:Z}},htmlBuilder:(A,m)=>{var S=_o(A.base,m),D=Ks.svgSpan(A,m),Z=A.label==="\\utilde"?.12:0,se=wn.makeVList({positionType:"top",positionData:S.height,children:[{type:"elem",elem:D,wrapperClasses:["svg-align"]},{type:"kern",size:Z},{type:"elem",elem:S}]},m);return wn.makeSpan(["mord","accentunder"],[se],m)},mathmlBuilder:(A,m)=>{var S=Ks.mathMLnode(A.label),D=new Vi.MathNode("munder",[ro(A.base,m),S]);return D.setAttribute("accentunder","true"),D}});var gl=A=>{var m=new Vi.MathNode("mpadded",A?[A]:[]);return m.setAttribute("width","+0.6em"),m.setAttribute("lspace","0.3em"),m};Ui({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(A,m,S){var{parser:D,funcName:Z}=A;return{type:"xArrow",mode:D.mode,label:Z,body:m[0],below:S[0]}},htmlBuilder(A,m){var S=m.style,D=m.havingStyle(S.sup()),Z=wn.wrapFragment(_o(A.body,D,m),m),se=A.label.slice(0,2)==="\\x"?"x":"cd";Z.classes.push(se+"-arrow-pad");var Y;A.below&&(D=m.havingStyle(S.sub()),Y=wn.wrapFragment(_o(A.below,D,m),m),Y.classes.push(se+"-arrow-pad"));var ct=Ks.svgSpan(A,m),ft=-m.fontMetrics().axisHeight+.5*ct.height,Sn=-m.fontMetrics().axisHeight-.5*ct.height-.111;(Z.depth>.25||A.label==="\\xleftequilibrium")&&(Sn-=Z.depth);var Bn;if(Y){var Qn=-m.fontMetrics().axisHeight+Y.height+.5*ct.height+.111;Bn=wn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Z,shift:Sn},{type:"elem",elem:ct,shift:ft},{type:"elem",elem:Y,shift:Qn}]},m)}else Bn=wn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Z,shift:Sn},{type:"elem",elem:ct,shift:ft}]},m);return Bn.children[0].children[0].children[1].classes.push("svg-align"),wn.makeSpan(["mrel","x-arrow"],[Bn],m)},mathmlBuilder(A,m){var S=Ks.mathMLnode(A.label);S.setAttribute("minsize",A.label.charAt(0)==="x"?"1.75em":"3.0em");var D;if(A.body){var Z=gl(ro(A.body,m));if(A.below){var se=gl(ro(A.below,m));D=new Vi.MathNode("munderover",[S,se,Z])}else D=new Vi.MathNode("mover",[S,Z])}else if(A.below){var Y=gl(ro(A.below,m));D=new Vi.MathNode("munder",[S,Y])}else D=gl(),D=new Vi.MathNode("mover",[S,D]);return D}});var Xu=wn.makeSpan;function Tu(A,m){var S=Bo(A.body,m,!0);return Xu([A.mclass],S,m)}function Ca(A,m){var S,D=ha(A.body,m);return A.mclass==="minner"?S=new Vi.MathNode("mpadded",D):A.mclass==="mord"?A.isCharacterBox?(S=D[0],S.type="mi"):S=new Vi.MathNode("mi",D):(A.isCharacterBox?(S=D[0],S.type="mo"):S=new Vi.MathNode("mo",D),A.mclass==="mbin"?(S.attributes.lspace="0.22em",S.attributes.rspace="0.22em"):A.mclass==="mpunct"?(S.attributes.lspace="0em",S.attributes.rspace="0.17em"):A.mclass==="mopen"||A.mclass==="mclose"?(S.attributes.lspace="0em",S.attributes.rspace="0em"):A.mclass==="minner"&&(S.attributes.lspace="0.0556em",S.attributes.width="+0.1111em")),S}Ui({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(A,m){var{parser:S,funcName:D}=A,Z=m[0];return{type:"mclass",mode:S.mode,mclass:"m"+D.slice(5),body:Vo(Z),isCharacterBox:T.isCharacterBox(Z)}},htmlBuilder:Tu,mathmlBuilder:Ca});var Dr=A=>{var m=A.type==="ordgroup"&&A.body.length?A.body[0]:A;return m.type==="atom"&&(m.family==="bin"||m.family==="rel")?"m"+m.family:"mord"};Ui({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(A,m){var{parser:S}=A;return{type:"mclass",mode:S.mode,mclass:Dr(m[0]),body:Vo(m[1]),isCharacterBox:T.isCharacterBox(m[1])}}}),Ui({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(A,m){var{parser:S,funcName:D}=A,Z=m[1],se=m[0],Y;D!=="\\stackrel"?Y=Dr(Z):Y="mrel";var ct={type:"op",mode:Z.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:D!=="\\stackrel",body:Vo(Z)},ft={type:"supsub",mode:se.mode,base:ct,sup:D==="\\underset"?null:se,sub:D==="\\underset"?se:null};return{type:"mclass",mode:S.mode,mclass:Y,body:[ft],isCharacterBox:T.isCharacterBox(ft)}},htmlBuilder:Tu,mathmlBuilder:Ca}),Ui({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(A,m){var{parser:S}=A;return{type:"pmb",mode:S.mode,mclass:Dr(m[0]),body:Vo(m[0])}},htmlBuilder(A,m){var S=Bo(A.body,m,!0),D=wn.makeSpan([A.mclass],S,m);return D.style.textShadow="0.02em 0.01em 0.04px",D},mathmlBuilder(A,m){var S=ha(A.body,m),D=new Vi.MathNode("mstyle",S);return D.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),D}});var fs={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},as=()=>({type:"styling",body:[],mode:"math",style:"display"}),Eo=A=>A.type==="textord"&&A.text==="@",vo=(A,m)=>(A.type==="mathord"||A.type==="atom")&&A.text===m;function Wa(A,m,S){var D=fs[A];switch(D){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return S.callFunction(D,[m[0]],[m[1]]);case"\\uparrow":case"\\downarrow":{var Z=S.callFunction("\\\\cdleft",[m[0]],[]),se={type:"atom",text:D,mode:"math",family:"rel"},Y=S.callFunction("\\Big",[se],[]),ct=S.callFunction("\\\\cdright",[m[1]],[]),ft={type:"ordgroup",mode:"math",body:[Z,Y,ct]};return S.callFunction("\\\\cdparent",[ft],[])}case"\\\\cdlongequal":return S.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var Sn={type:"textord",text:"\\Vert",mode:"math"};return S.callFunction("\\Big",[Sn],[])}default:return{type:"textord",text:" ",mode:"math"}}}function js(A){var m=[];for(A.gullet.beginGroup(),A.gullet.macros.set("\\cr","\\\\\\relax"),A.gullet.beginGroup();;){m.push(A.parseExpression(!1,"\\\\")),A.gullet.endGroup(),A.gullet.beginGroup();var S=A.fetch().text;if(S==="&"||S==="\\\\")A.consume();else if(S==="\\end"){m[m.length-1].length===0&&m.pop();break}else throw new Ft("Expected \\\\ or \\cr or \\end",A.nextToken)}for(var D=[],Z=[D],se=0;se<m.length;se++){for(var Y=m[se],ct=as(),ft=0;ft<Y.length;ft++)if(!Eo(Y[ft]))ct.body.push(Y[ft]);else{D.push(ct),ft+=1;var Sn=Dn(Y[ft]).text,Bn=new Array(2);if(Bn[0]={type:"ordgroup",mode:"math",body:[]},Bn[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(Sn)>-1))if("<>AV".indexOf(Sn)>-1)for(var Qn=0;Qn<2;Qn++){for(var Ti=!0,Ni=ft+1;Ni<Y.length;Ni++){if(vo(Y[Ni],Sn)){Ti=!1,ft=Ni;break}if(Eo(Y[Ni]))throw new Ft("Missing a "+Sn+" character to complete a CD arrow.",Y[Ni]);Bn[Qn].body.push(Y[Ni])}if(Ti)throw new Ft("Missing a "+Sn+" character to complete a CD arrow.",Y[ft])}else throw new Ft('Expected one of "<>AV=|." after @',Y[ft]);var $i=Wa(Sn,Bn,A),Nr={type:"styling",body:[$i],mode:"math",style:"display"};D.push(Nr),ct=as()}se%2===0?D.push(ct):D.shift(),D=[],Z.push(D)}A.gullet.endGroup(),A.gullet.endGroup();var $r=new Array(Z[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:Z,arraystretch:1,addJot:!0,rowGaps:[null],cols:$r,colSeparationType:"CD",hLinesBeforeRow:new Array(Z.length+1).fill([])}}Ui({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(A,m){var{parser:S,funcName:D}=A;return{type:"cdlabel",mode:S.mode,side:D.slice(4),label:m[0]}},htmlBuilder(A,m){var S=m.havingStyle(m.style.sup()),D=wn.wrapFragment(_o(A.label,S,m),m);return D.classes.push("cd-label-"+A.side),D.style.bottom=Lt(.8-D.depth),D.height=0,D.depth=0,D},mathmlBuilder(A,m){var S=new Vi.MathNode("mrow",[ro(A.label,m)]);return S=new Vi.MathNode("mpadded",[S]),S.setAttribute("width","0"),A.side==="left"&&S.setAttribute("lspace","-1width"),S.setAttribute("voffset","0.7em"),S=new Vi.MathNode("mstyle",[S]),S.setAttribute("displaystyle","false"),S.setAttribute("scriptlevel","1"),S}}),Ui({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(A,m){var{parser:S}=A;return{type:"cdlabelparent",mode:S.mode,fragment:m[0]}},htmlBuilder(A,m){var S=wn.wrapFragment(_o(A.fragment,m),m);return S.classes.push("cd-vert-arrow"),S},mathmlBuilder(A,m){return new Vi.MathNode("mrow",[ro(A.fragment,m)])}}),Ui({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(A,m){for(var{parser:S}=A,D=qe(m[0],"ordgroup"),Z=D.body,se="",Y=0;Y<Z.length;Y++){var ct=qe(Z[Y],"textord");se+=ct.text}var ft=parseInt(se),Sn;if(isNaN(ft))throw new Ft("\\@char has non-numeric argument "+se);if(ft<0||ft>=1114111)throw new Ft("\\@char with invalid code point "+se);return ft<=65535?Sn=String.fromCharCode(ft):(ft-=65536,Sn=String.fromCharCode((ft>>10)+55296,(ft&1023)+56320)),{type:"textord",mode:S.mode,text:Sn}}});var sa=(A,m)=>{var S=Bo(A.body,m.withColor(A.color),!1);return wn.makeFragment(S)},Gs=(A,m)=>{var S=ha(A.body,m.withColor(A.color)),D=new Vi.MathNode("mstyle",S);return D.setAttribute("mathcolor",A.color),D};Ui({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(A,m){var{parser:S}=A,D=qe(m[0],"color-token").color,Z=m[1];return{type:"color",mode:S.mode,color:D,body:Vo(Z)}},htmlBuilder:sa,mathmlBuilder:Gs}),Ui({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(A,m){var{parser:S,breakOnTokenText:D}=A,Z=qe(m[0],"color-token").color;S.gullet.macros.set("\\current@color",Z);var se=S.parseExpression(!0,D);return{type:"color",mode:S.mode,color:Z,body:se}},htmlBuilder:sa,mathmlBuilder:Gs}),Ui({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(A,m,S){var{parser:D}=A,Z=D.gullet.future().text==="["?D.parseSizeGroup(!0):null,se=!D.settings.displayMode||!D.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:D.mode,newLine:se,size:Z&&qe(Z,"size").value}},htmlBuilder(A,m){var S=wn.makeSpan(["mspace"],[],m);return A.newLine&&(S.classes.push("newline"),A.size&&(S.style.marginTop=Lt(Ut(A.size,m)))),S},mathmlBuilder(A,m){var S=new Vi.MathNode("mspace");return A.newLine&&(S.setAttribute("linebreak","newline"),A.size&&S.setAttribute("height",Lt(Ut(A.size,m)))),S}});var Va={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},eu=A=>{var m=A.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(m))throw new Ft("Expected a control sequence",A);return m},Ro=A=>{var m=A.gullet.popToken();return m.text==="="&&(m=A.gullet.popToken(),m.text===" "&&(m=A.gullet.popToken())),m},vs=(A,m,S,D)=>{var Z=A.gullet.macros.get(S.text);Z==null&&(S.noexpand=!0,Z={tokens:[S],numArgs:0,unexpandable:!A.gullet.isExpandable(S.text)}),A.gullet.macros.set(m,Z,D)};Ui({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(A){var{parser:m,funcName:S}=A;m.consumeSpaces();var D=m.fetch();if(Va[D.text])return(S==="\\global"||S==="\\\\globallong")&&(D.text=Va[D.text]),qe(m.parseFunction(),"internal");throw new Ft("Invalid token after macro prefix",D)}}),Ui({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(A){var{parser:m,funcName:S}=A,D=m.gullet.popToken(),Z=D.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(Z))throw new Ft("Expected a control sequence",D);for(var se=0,Y,ct=[[]];m.gullet.future().text!=="{";)if(D=m.gullet.popToken(),D.text==="#"){if(m.gullet.future().text==="{"){Y=m.gullet.future(),ct[se].push("{");break}if(D=m.gullet.popToken(),!/^[1-9]$/.test(D.text))throw new Ft('Invalid argument number "'+D.text+'"');if(parseInt(D.text)!==se+1)throw new Ft('Argument number "'+D.text+'" out of order');se++,ct.push([])}else{if(D.text==="EOF")throw new Ft("Expected a macro definition");ct[se].push(D.text)}var{tokens:ft}=m.gullet.consumeArg();return Y&&ft.unshift(Y),(S==="\\edef"||S==="\\xdef")&&(ft=m.gullet.expandTokens(ft),ft.reverse()),m.gullet.macros.set(Z,{tokens:ft,numArgs:se,delimiters:ct},S===Va[S]),{type:"internal",mode:m.mode}}}),Ui({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(A){var{parser:m,funcName:S}=A,D=eu(m.gullet.popToken());m.gullet.consumeSpaces();var Z=Ro(m);return vs(m,D,Z,S==="\\\\globallet"),{type:"internal",mode:m.mode}}}),Ui({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(A){var{parser:m,funcName:S}=A,D=eu(m.gullet.popToken()),Z=m.gullet.popToken(),se=m.gullet.popToken();return vs(m,D,se,S==="\\\\globalfuture"),m.gullet.pushToken(se),m.gullet.pushToken(Z),{type:"internal",mode:m.mode}}});var So=function(m,S,D){var Z=zi.math[m]&&zi.math[m].replace,se=ht(Z||m,S,D);if(!se)throw new Error("Unsupported symbol "+m+" and font size "+S+".");return se},Ko=function(m,S,D,Z){var se=D.havingBaseStyle(S),Y=wn.makeSpan(Z.concat(se.sizingClasses(D)),[m],D),ct=se.sizeMultiplier/D.sizeMultiplier;return Y.height*=ct,Y.depth*=ct,Y.maxFontSize=se.sizeMultiplier,Y},la=function(m,S,D){var Z=S.havingBaseStyle(D),se=(1-S.sizeMultiplier/Z.sizeMultiplier)*S.fontMetrics().axisHeight;m.classes.push("delimcenter"),m.style.top=Lt(se),m.height-=se,m.depth+=se},La=function(m,S,D,Z,se,Y){var ct=wn.makeSymbol(m,"Main-Regular",se,Z),ft=Ko(ct,S,Z,Y);return D&&la(ft,Z,S),ft},yo=function(m,S,D,Z){return wn.makeSymbol(m,"Size"+S+"-Regular",D,Z)},fu=function(m,S,D,Z,se,Y){var ct=yo(m,S,se,Z),ft=Ko(wn.makeSpan(["delimsizing","size"+S],[ct],Z),yn.TEXT,Z,Y);return D&&la(ft,Z,yn.TEXT),ft},Ir=function(m,S,D){var Z;S==="Size1-Regular"?Z="delim-size1":Z="delim-size4";var se=wn.makeSpan(["delimsizinginner",Z],[wn.makeSpan([],[wn.makeSymbol(m,S,D)])]);return{type:"elem",elem:se}},dc=function(m,S,D){var Z=no["Size4-Regular"][m.charCodeAt(0)]?no["Size4-Regular"][m.charCodeAt(0)][4]:no["Size1-Regular"][m.charCodeAt(0)][4],se=new li("inner",wr(m,Math.round(1e3*S))),Y=new An([se],{width:Lt(Z),height:Lt(S),style:"width:"+Lt(Z),viewBox:"0 0 "+1e3*Z+" "+Math.round(1e3*S),preserveAspectRatio:"xMinYMin"}),ct=wn.makeSvgSpan([],[Y],D);return ct.height=S,ct.style.height=Lt(S),ct.style.width=Lt(Z),{type:"elem",elem:ct}},Co=.008,Qu={type:"kern",size:-1*Co},Ju=["|","\\lvert","\\rvert","\\vert"],tu=["\\|","\\lVert","\\rVert","\\Vert"],wc=function(m,S,D,Z,se,Y){var ct,ft,Sn,Bn,Qn="",Ti=0;ct=Sn=Bn=m,ft=null;var Ni="Size1-Regular";m==="\\uparrow"?Sn=Bn="\u23D0":m==="\\Uparrow"?Sn=Bn="\u2016":m==="\\downarrow"?ct=Sn="\u23D0":m==="\\Downarrow"?ct=Sn="\u2016":m==="\\updownarrow"?(ct="\\uparrow",Sn="\u23D0",Bn="\\downarrow"):m==="\\Updownarrow"?(ct="\\Uparrow",Sn="\u2016",Bn="\\Downarrow"):T.contains(Ju,m)?(Sn="\u2223",Qn="vert",Ti=333):T.contains(tu,m)?(Sn="\u2225",Qn="doublevert",Ti=556):m==="["||m==="\\lbrack"?(ct="\u23A1",Sn="\u23A2",Bn="\u23A3",Ni="Size4-Regular",Qn="lbrack",Ti=667):m==="]"||m==="\\rbrack"?(ct="\u23A4",Sn="\u23A5",Bn="\u23A6",Ni="Size4-Regular",Qn="rbrack",Ti=667):m==="\\lfloor"||m==="\u230A"?(Sn=ct="\u23A2",Bn="\u23A3",Ni="Size4-Regular",Qn="lfloor",Ti=667):m==="\\lceil"||m==="\u2308"?(ct="\u23A1",Sn=Bn="\u23A2",Ni="Size4-Regular",Qn="lceil",Ti=667):m==="\\rfloor"||m==="\u230B"?(Sn=ct="\u23A5",Bn="\u23A6",Ni="Size4-Regular",Qn="rfloor",Ti=667):m==="\\rceil"||m==="\u2309"?(ct="\u23A4",Sn=Bn="\u23A5",Ni="Size4-Regular",Qn="rceil",Ti=667):m==="("||m==="\\lparen"?(ct="\u239B",Sn="\u239C",Bn="\u239D",Ni="Size4-Regular",Qn="lparen",Ti=875):m===")"||m==="\\rparen"?(ct="\u239E",Sn="\u239F",Bn="\u23A0",Ni="Size4-Regular",Qn="rparen",Ti=875):m==="\\{"||m==="\\lbrace"?(ct="\u23A7",ft="\u23A8",Bn="\u23A9",Sn="\u23AA",Ni="Size4-Regular"):m==="\\}"||m==="\\rbrace"?(ct="\u23AB",ft="\u23AC",Bn="\u23AD",Sn="\u23AA",Ni="Size4-Regular"):m==="\\lgroup"||m==="\u27EE"?(ct="\u23A7",Bn="\u23A9",Sn="\u23AA",Ni="Size4-Regular"):m==="\\rgroup"||m==="\u27EF"?(ct="\u23AB",Bn="\u23AD",Sn="\u23AA",Ni="Size4-Regular"):m==="\\lmoustache"||m==="\u23B0"?(ct="\u23A7",Bn="\u23AD",Sn="\u23AA",Ni="Size4-Regular"):(m==="\\rmoustache"||m==="\u23B1")&&(ct="\u23AB",Bn="\u23A9",Sn="\u23AA",Ni="Size4-Regular");var $i=So(ct,Ni,se),Nr=$i.height+$i.depth,$r=So(Sn,Ni,se),jr=$r.height+$r.depth,To=So(Bn,Ni,se),jo=To.height+To.depth,Ra=0,na=1;if(ft!==null){var Yo=So(ft,Ni,se);Ra=Yo.height+Yo.depth,na=2}var fa=Nr+jo+Ra,ls=Math.max(0,Math.ceil((S-fa)/(na*jr))),ua=fa+ls*na*jr,Sl=Z.fontMetrics().axisHeight;D&&(Sl*=Z.sizeMultiplier);var Us=ua/2-Sl,us=[];if(Qn.length>0){var Ns=ua-Nr-jo,al=Math.round(ua*1e3),Vl=xo(Qn,Math.round(Ns*1e3)),Fs=new li(Qn,Vl),ku=(Ti/1e3).toFixed(3)+"em",ec=(al/1e3).toFixed(3)+"em",Pc=new An([Fs],{width:ku,height:ec,viewBox:"0 0 "+Ti+" "+al}),Pl=wn.makeSvgSpan([],[Pc],Z);Pl.height=al/1e3,Pl.style.width=ku,Pl.style.height=ec,us.push({type:"elem",elem:Pl})}else{if(us.push(Ir(Bn,Ni,se)),us.push(Qu),ft===null){var ps=ua-Nr-jo+2*Co;us.push(dc(Sn,ps,Z))}else{var Fl=(ua-Nr-jo-Ra)/2+2*Co;us.push(dc(Sn,Fl,Z)),us.push(Qu),us.push(Ir(ft,Ni,se)),us.push(Qu),us.push(dc(Sn,Fl,Z))}us.push(Qu),us.push(Ir(ct,Ni,se))}var Ka=Z.havingBaseStyle(yn.TEXT),ea=wn.makeVList({positionType:"bottom",positionData:Us,children:us},Ka);return Ko(wn.makeSpan(["delimsizing","mult"],[ea],Ka),yn.TEXT,Z,Y)},Uu=80,vl=.08,Zs=function(m,S,D,Z,se){var Y=Er(m,Z,D),ct=new li(m,Y),ft=new An([ct],{width:"400em",height:Lt(S),viewBox:"0 0 400000 "+D,preserveAspectRatio:"xMinYMin slice"});return wn.makeSvgSpan(["hide-tail"],[ft],se)},Ao=function(m,S){var D=S.havingBaseSizing(),Z=mu("\\surd",m*D.sizeMultiplier,Ys,D),se=D.sizeMultiplier,Y=Math.max(0,S.minRuleThickness-S.fontMetrics().sqrtRuleThickness),ct,ft=0,Sn=0,Bn=0,Qn;return Z.type==="small"?(Bn=1e3+1e3*Y+Uu,m<1?se=1:m<1.4&&(se=.7),ft=(1+Y+vl)/se,Sn=(1+Y)/se,ct=Zs("sqrtMain",ft,Bn,Y,S),ct.style.minWidth="0.853em",Qn=.833/se):Z.type==="large"?(Bn=(1e3+Uu)*yl[Z.size],Sn=(yl[Z.size]+Y)/se,ft=(yl[Z.size]+Y+vl)/se,ct=Zs("sqrtSize"+Z.size,ft,Bn,Y,S),ct.style.minWidth="1.02em",Qn=1/se):(ft=m+Y+vl,Sn=m+Y,Bn=Math.floor(1e3*m+Y)+Uu,ct=Zs("sqrtTall",ft,Bn,Y,S),ct.style.minWidth="0.742em",Qn=1.056),ct.height=Sn,ct.style.height=Lt(ft),{span:ct,advanceWidth:Qn,ruleWidth:(S.fontMetrics().sqrtRuleThickness+Y)*se}},Ls=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],qu=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],Dl=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],yl=[0,1.2,1.8,2.4,3],bl=function(m,S,D,Z,se){if(m==="<"||m==="\\lt"||m==="\u27E8"?m="\\langle":(m===">"||m==="\\gt"||m==="\u27E9")&&(m="\\rangle"),T.contains(Ls,m)||T.contains(Dl,m))return fu(m,S,!1,D,Z,se);if(T.contains(qu,m))return wc(m,yl[S],!1,D,Z,se);throw new Ft("Illegal delimiter: '"+m+"'")},xl=[{type:"small",style:yn.SCRIPTSCRIPT},{type:"small",style:yn.SCRIPT},{type:"small",style:yn.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],pu=[{type:"small",style:yn.SCRIPTSCRIPT},{type:"small",style:yn.SCRIPT},{type:"small",style:yn.TEXT},{type:"stack"}],Ys=[{type:"small",style:yn.SCRIPTSCRIPT},{type:"small",style:yn.SCRIPT},{type:"small",style:yn.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Wl=function(m){if(m.type==="small")return"Main-Regular";if(m.type==="large")return"Size"+m.size+"-Regular";if(m.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+m.type+"' here.")},mu=function(m,S,D,Z){for(var se=Math.min(2,3-Z.style.size),Y=se;Y<D.length&&D[Y].type!=="stack";Y++){var ct=So(m,Wl(D[Y]),"math"),ft=ct.height+ct.depth;if(D[Y].type==="small"){var Sn=Z.havingBaseStyle(D[Y].style);ft*=Sn.sizeMultiplier}if(ft>S)return D[Y]}return D[D.length-1]},nu=function(m,S,D,Z,se,Y){m==="<"||m==="\\lt"||m==="\u27E8"?m="\\langle":(m===">"||m==="\\gt"||m==="\u27E9")&&(m="\\rangle");var ct;T.contains(Dl,m)?ct=xl:T.contains(Ls,m)?ct=Ys:ct=pu;var ft=mu(m,S,ct,Z);return ft.type==="small"?La(m,ft.style,D,Z,se,Y):ft.type==="large"?fu(m,ft.size,D,Z,se,Y):wc(m,S,D,Z,se,Y)},Nu=function(m,S,D,Z,se,Y){var ct=Z.fontMetrics().axisHeight*Z.sizeMultiplier,ft=901,Sn=5/Z.fontMetrics().ptPerEm,Bn=Math.max(S-ct,D+ct),Qn=Math.max(Bn/500*ft,2*Bn-Sn);return nu(m,Qn,!0,Z,se,Y)},Ws={sqrtImage:Ao,sizedDelim:bl,sizeToMaxHeight:yl,customSizedDelim:nu,leftRightDelim:Nu},ys={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},iu=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27E8","\\rangle","\u27E9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Au(A,m){var S=Cu(A);if(S&&T.contains(iu,S.text))return S;throw S?new Ft("Invalid delimiter '"+S.text+"' after '"+m.funcName+"'",A):new Ft("Invalid delimiter type '"+A.type+"'",A)}Ui({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(A,m)=>{var S=Au(m[0],A);return{type:"delimsizing",mode:A.parser.mode,size:ys[A.funcName].size,mclass:ys[A.funcName].mclass,delim:S.text}},htmlBuilder:(A,m)=>A.delim==="."?wn.makeSpan([A.mclass]):Ws.sizedDelim(A.delim,A.size,m,A.mode,[A.mclass]),mathmlBuilder:A=>{var m=[];A.delim!=="."&&m.push(Cs(A.delim,A.mode));var S=new Vi.MathNode("mo",m);A.mclass==="mopen"||A.mclass==="mclose"?S.setAttribute("fence","true"):S.setAttribute("fence","false"),S.setAttribute("stretchy","true");var D=Lt(Ws.sizeToMaxHeight[A.size]);return S.setAttribute("minsize",D),S.setAttribute("maxsize",D),S}});function we(A){if(!A.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Ui({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(A,m)=>{var S=A.parser.gullet.macros.get("\\current@color");if(S&&typeof S!="string")throw new Ft("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:A.parser.mode,delim:Au(m[0],A).text,color:S}}}),Ui({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(A,m)=>{var S=Au(m[0],A),D=A.parser;++D.leftrightDepth;var Z=D.parseExpression(!1);--D.leftrightDepth,D.expect("\\right",!1);var se=qe(D.parseFunction(),"leftright-right");return{type:"leftright",mode:D.mode,body:Z,left:S.text,right:se.delim,rightColor:se.color}},htmlBuilder:(A,m)=>{we(A);for(var S=Bo(A.body,m,!0,["mopen","mclose"]),D=0,Z=0,se=!1,Y=0;Y<S.length;Y++)S[Y].isMiddle?se=!0:(D=Math.max(S[Y].height,D),Z=Math.max(S[Y].depth,Z));D*=m.sizeMultiplier,Z*=m.sizeMultiplier;var ct;if(A.left==="."?ct=Rl(m,["mopen"]):ct=Ws.leftRightDelim(A.left,D,Z,m,A.mode,["mopen"]),S.unshift(ct),se)for(var ft=1;ft<S.length;ft++){var Sn=S[ft],Bn=Sn.isMiddle;Bn&&(S[ft]=Ws.leftRightDelim(Bn.delim,D,Z,Bn.options,A.mode,[]))}var Qn;if(A.right===".")Qn=Rl(m,["mclose"]);else{var Ti=A.rightColor?m.withColor(A.rightColor):m;Qn=Ws.leftRightDelim(A.right,D,Z,Ti,A.mode,["mclose"])}return S.push(Qn),wn.makeSpan(["minner"],S,m)},mathmlBuilder:(A,m)=>{we(A);var S=ha(A.body,m);if(A.left!=="."){var D=new Vi.MathNode("mo",[Cs(A.left,A.mode)]);D.setAttribute("fence","true"),S.unshift(D)}if(A.right!=="."){var Z=new Vi.MathNode("mo",[Cs(A.right,A.mode)]);Z.setAttribute("fence","true"),A.rightColor&&Z.setAttribute("mathcolor",A.rightColor),S.push(Z)}return jl(S)}}),Ui({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(A,m)=>{var S=Au(m[0],A);if(!A.parser.leftrightDepth)throw new Ft("\\middle without preceding \\left",S);return{type:"middle",mode:A.parser.mode,delim:S.text}},htmlBuilder:(A,m)=>{var S;if(A.delim===".")S=Rl(m,[]);else{S=Ws.sizedDelim(A.delim,1,m,A.mode,[]);var D={delim:A.delim,options:m};S.isMiddle=D}return S},mathmlBuilder:(A,m)=>{var S=A.delim==="\\vert"||A.delim==="|"?Cs("|","text"):Cs(A.delim,A.mode),D=new Vi.MathNode("mo",[S]);return D.setAttribute("fence","true"),D.setAttribute("lspace","0.05em"),D.setAttribute("rspace","0.05em"),D}});var De=(A,m)=>{var S=wn.wrapFragment(_o(A.body,m),m),D=A.label.slice(1),Z=m.sizeMultiplier,se,Y=0,ct=T.isCharacterBox(A.body);if(D==="sout")se=wn.makeSpan(["stretchy","sout"]),se.height=m.fontMetrics().defaultRuleThickness/Z,Y=-.5*m.fontMetrics().xHeight;else if(D==="phase"){var ft=Ut({number:.6,unit:"pt"},m),Sn=Ut({number:.35,unit:"ex"},m),Bn=m.havingBaseSizing();Z=Z/Bn.sizeMultiplier;var Qn=S.height+S.depth+ft+Sn;S.style.paddingLeft=Lt(Qn/2+ft);var Ti=Math.floor(1e3*Qn*Z),Ni=U(Ti),$i=new An([new li("phase",Ni)],{width:"400em",height:Lt(Ti/1e3),viewBox:"0 0 400000 "+Ti,preserveAspectRatio:"xMinYMin slice"});se=wn.makeSvgSpan(["hide-tail"],[$i],m),se.style.height=Lt(Qn),Y=S.depth+ft+Sn}else{/cancel/.test(D)?ct||S.classes.push("cancel-pad"):D==="angl"?S.classes.push("anglpad"):S.classes.push("boxpad");var Nr=0,$r=0,jr=0;/box/.test(D)?(jr=Math.max(m.fontMetrics().fboxrule,m.minRuleThickness),Nr=m.fontMetrics().fboxsep+(D==="colorbox"?0:jr),$r=Nr):D==="angl"?(jr=Math.max(m.fontMetrics().defaultRuleThickness,m.minRuleThickness),Nr=4*jr,$r=Math.max(0,.25-S.depth)):(Nr=ct?.2:0,$r=Nr),se=Ks.encloseSpan(S,D,Nr,$r,m),/fbox|boxed|fcolorbox/.test(D)?(se.style.borderStyle="solid",se.style.borderWidth=Lt(jr)):D==="angl"&&jr!==.049&&(se.style.borderTopWidth=Lt(jr),se.style.borderRightWidth=Lt(jr)),Y=S.depth+$r,A.backgroundColor&&(se.style.backgroundColor=A.backgroundColor,A.borderColor&&(se.style.borderColor=A.borderColor))}var To;if(A.backgroundColor)To=wn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:se,shift:Y},{type:"elem",elem:S,shift:0}]},m);else{var jo=/cancel|phase/.test(D)?["svg-align"]:[];To=wn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:S,shift:0},{type:"elem",elem:se,shift:Y,wrapperClasses:jo}]},m)}return/cancel/.test(D)&&(To.height=S.height,To.depth=S.depth),/cancel/.test(D)&&!ct?wn.makeSpan(["mord","cancel-lap"],[To],m):wn.makeSpan(["mord"],[To],m)},dt=(A,m)=>{var S=0,D=new Vi.MathNode(A.label.indexOf("colorbox")>-1?"mpadded":"menclose",[ro(A.body,m)]);switch(A.label){case"\\cancel":D.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":D.setAttribute("notation","downdiagonalstrike");break;case"\\phase":D.setAttribute("notation","phasorangle");break;case"\\sout":D.setAttribute("notation","horizontalstrike");break;case"\\fbox":D.setAttribute("notation","box");break;case"\\angl":D.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(S=m.fontMetrics().fboxsep*m.fontMetrics().ptPerEm,D.setAttribute("width","+"+2*S+"pt"),D.setAttribute("height","+"+2*S+"pt"),D.setAttribute("lspace",S+"pt"),D.setAttribute("voffset",S+"pt"),A.label==="\\fcolorbox"){var Z=Math.max(m.fontMetrics().fboxrule,m.minRuleThickness);D.setAttribute("style","border: "+Z+"em solid "+String(A.borderColor))}break;case"\\xcancel":D.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return A.backgroundColor&&D.setAttribute("mathbackground",A.backgroundColor),D};Ui({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(A,m,S){var{parser:D,funcName:Z}=A,se=qe(m[0],"color-token").color,Y=m[1];return{type:"enclose",mode:D.mode,label:Z,backgroundColor:se,body:Y}},htmlBuilder:De,mathmlBuilder:dt}),Ui({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(A,m,S){var{parser:D,funcName:Z}=A,se=qe(m[0],"color-token").color,Y=qe(m[1],"color-token").color,ct=m[2];return{type:"enclose",mode:D.mode,label:Z,backgroundColor:Y,borderColor:se,body:ct}},htmlBuilder:De,mathmlBuilder:dt}),Ui({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(A,m){var{parser:S}=A;return{type:"enclose",mode:S.mode,label:"\\fbox",body:m[0]}}}),Ui({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(A,m){var{parser:S,funcName:D}=A,Z=m[0];return{type:"enclose",mode:S.mode,label:D,body:Z}},htmlBuilder:De,mathmlBuilder:dt}),Ui({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(A,m){var{parser:S}=A;return{type:"enclose",mode:S.mode,label:"\\angl",body:m[0]}}});var xt={};function _t(A){for(var{type:m,names:S,props:D,handler:Z,htmlBuilder:se,mathmlBuilder:Y}=A,ct={type:m,numArgs:D.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:Z},ft=0;ft<S.length;++ft)xt[S[ft]]=ct;se&&(Ss[m]=se),Y&&(ai[m]=Y)}var Dt={};function ve(A,m){Dt[A]=m}function bn(A){var m=[];A.consumeSpaces();var S=A.fetch().text;for(S==="\\relax"&&(A.consume(),A.consumeSpaces(),S=A.fetch().text);S==="\\hline"||S==="\\hdashline";)A.consume(),m.push(S==="\\hdashline"),A.consumeSpaces(),S=A.fetch().text;return m}var ln=A=>{var m=A.parser.settings;if(!m.displayMode)throw new Ft("{"+A.envName+"} can be used only in display mode.")};function zn(A){if(A.indexOf("ed")===-1)return A.indexOf("*")===-1}function jn(A,m,S){var{hskipBeforeAndAfter:D,addJot:Z,cols:se,arraystretch:Y,colSeparationType:ct,autoTag:ft,singleRow:Sn,emptySingleRow:Bn,maxNumCols:Qn,leqno:Ti}=m;if(A.gullet.beginGroup(),Sn||A.gullet.macros.set("\\cr","\\\\\\relax"),!Y){var Ni=A.gullet.expandMacroAsText("\\arraystretch");if(Ni==null)Y=1;else if(Y=parseFloat(Ni),!Y||Y<0)throw new Ft("Invalid \\arraystretch: "+Ni)}A.gullet.beginGroup();var $i=[],Nr=[$i],$r=[],jr=[],To=ft!=null?[]:void 0;function jo(){ft&&A.gullet.macros.set("\\@eqnsw","1",!0)}function Ra(){To&&(A.gullet.macros.get("\\df@tag")?(To.push(A.subparse([new sn("\\df@tag")])),A.gullet.macros.set("\\df@tag",void 0,!0)):To.push(!!ft&&A.gullet.macros.get("\\@eqnsw")==="1"))}for(jo(),jr.push(bn(A));;){var na=A.parseExpression(!1,Sn?"\\end":"\\\\");A.gullet.endGroup(),A.gullet.beginGroup(),na={type:"ordgroup",mode:A.mode,body:na},S&&(na={type:"styling",mode:A.mode,style:S,body:[na]}),$i.push(na);var Yo=A.fetch().text;if(Yo==="&"){if(Qn&&$i.length===Qn){if(Sn||ct)throw new Ft("Too many tab characters: &",A.nextToken);A.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}A.consume()}else if(Yo==="\\end"){Ra(),$i.length===1&&na.type==="styling"&&na.body[0].body.length===0&&(Nr.length>1||!Bn)&&Nr.pop(),jr.length<Nr.length+1&&jr.push([]);break}else if(Yo==="\\\\"){A.consume();var fa=void 0;A.gullet.future().text!==" "&&(fa=A.parseSizeGroup(!0)),$r.push(fa?fa.value:null),Ra(),jr.push(bn(A)),$i=[],Nr.push($i),jo()}else throw new Ft("Expected & or \\\\ or \\cr or \\end",A.nextToken)}return A.gullet.endGroup(),A.gullet.endGroup(),{type:"array",mode:A.mode,addJot:Z,arraystretch:Y,body:Nr,cols:se,rowGaps:$r,hskipBeforeAndAfter:D,hLinesBeforeRow:jr,colSeparationType:ct,tags:To,leqno:Ti}}function $n(A){return A.slice(0,1)==="d"?"display":"text"}var hi=function(m,S){var D,Z,se=m.body.length,Y=m.hLinesBeforeRow,ct=0,ft=new Array(se),Sn=[],Bn=Math.max(S.fontMetrics().arrayRuleWidth,S.minRuleThickness),Qn=1/S.fontMetrics().ptPerEm,Ti=5*Qn;if(m.colSeparationType&&m.colSeparationType==="small"){var Ni=S.havingStyle(yn.SCRIPT).sizeMultiplier;Ti=.2778*(Ni/S.sizeMultiplier)}var $i=m.colSeparationType==="CD"?Ut({number:3,unit:"ex"},S):12*Qn,Nr=3*Qn,$r=m.arraystretch*$i,jr=.7*$r,To=.3*$r,jo=0;function Ra(hh){for(var dh=0;dh<hh.length;++dh)dh>0&&(jo+=.25),Sn.push({pos:jo,isDashed:hh[dh]})}for(Ra(Y[0]),D=0;D<m.body.length;++D){var na=m.body[D],Yo=jr,fa=To;ct<na.length&&(ct=na.length);var ls=new Array(na.length);for(Z=0;Z<na.length;++Z){var ua=_o(na[Z],S);fa<ua.depth&&(fa=ua.depth),Yo<ua.height&&(Yo=ua.height),ls[Z]=ua}var Sl=m.rowGaps[D],Us=0;Sl&&(Us=Ut(Sl,S),Us>0&&(Us+=To,fa<Us&&(fa=Us),Us=0)),m.addJot&&(fa+=Nr),ls.height=Yo,ls.depth=fa,jo+=Yo,ls.pos=jo,jo+=fa+Us,ft[D]=ls,Ra(Y[D+1])}var us=jo/2+S.fontMetrics().axisHeight,Ns=m.cols||[],al=[],Vl,Fs,ku=[];if(m.tags&&m.tags.some(hh=>hh))for(D=0;D<se;++D){var ec=ft[D],Pc=ec.pos-us,Pl=m.tags[D],ps=void 0;Pl===!0?ps=wn.makeSpan(["eqn-num"],[],S):Pl===!1?ps=wn.makeSpan([],[],S):ps=wn.makeSpan([],Bo(Pl,S,!0),S),ps.depth=ec.depth,ps.height=ec.height,ku.push({type:"elem",elem:ps,shift:Pc})}for(Z=0,Fs=0;Z<ct||Fs<Ns.length;++Z,++Fs){for(var Fl=Ns[Fs]||{},Ka=!0;Fl.type==="separator";){if(Ka||(Vl=wn.makeSpan(["arraycolsep"],[]),Vl.style.width=Lt(S.fontMetrics().doubleRuleSep),al.push(Vl)),Fl.separator==="|"||Fl.separator===":"){var ea=Fl.separator==="|"?"solid":"dashed",ba=wn.makeSpan(["vertical-separator"],[],S);ba.style.height=Lt(jo),ba.style.borderRightWidth=Lt(Bn),ba.style.borderRightStyle=ea,ba.style.margin="0 "+Lt(-Bn/2);var Hs=jo-us;Hs&&(ba.style.verticalAlign=Lt(-Hs)),al.push(ba)}else throw new Ft("Invalid separator type: "+Fl.separator);Fs++,Fl=Ns[Fs]||{},Ka=!1}if(!(Z>=ct)){var Xs=void 0;(Z>0||m.hskipBeforeAndAfter)&&(Xs=T.deflt(Fl.pregap,Ti),Xs!==0&&(Vl=wn.makeSpan(["arraycolsep"],[]),Vl.style.width=Lt(Xs),al.push(Vl)));var Qs=[];for(D=0;D<se;++D){var Cc=ft[D],Iu=Cc[Z];if(Iu){var Xc=Cc.pos-us;Iu.depth=Cc.depth,Iu.height=Cc.height,Qs.push({type:"elem",elem:Iu,shift:Xc})}}Qs=wn.makeVList({positionType:"individualShift",children:Qs},S),Qs=wn.makeSpan(["col-align-"+(Fl.align||"c")],[Qs]),al.push(Qs),(Z<ct-1||m.hskipBeforeAndAfter)&&(Xs=T.deflt(Fl.postgap,Ti),Xs!==0&&(Vl=wn.makeSpan(["arraycolsep"],[]),Vl.style.width=Lt(Xs),al.push(Vl)))}}if(ft=wn.makeSpan(["mtable"],al),Sn.length>0){for(var gu=wn.makeLineSpan("hline",S,Bn),tc=wn.makeLineSpan("hdashline",S,Bn),ch=[{type:"elem",elem:ft,shift:0}];Sn.length>0;){var Bh=Sn.pop(),_h=Bh.pos-us;Bh.isDashed?ch.push({type:"elem",elem:tc,shift:_h}):ch.push({type:"elem",elem:gu,shift:_h})}ft=wn.makeVList({positionType:"individualShift",children:ch},S)}if(ku.length===0)return wn.makeSpan(["mord"],[ft],S);var Tc=wn.makeVList({positionType:"individualShift",children:ku},S);return Tc=wn.makeSpan(["tag"],[Tc],S),wn.makeFragment([ft,Tc])},gi={c:"center ",l:"left ",r:"right "},ti=function(m,S){for(var D=[],Z=new Vi.MathNode("mtd",[],["mtr-glue"]),se=new Vi.MathNode("mtd",[],["mml-eqn-num"]),Y=0;Y<m.body.length;Y++){for(var ct=m.body[Y],ft=[],Sn=0;Sn<ct.length;Sn++)ft.push(new Vi.MathNode("mtd",[ro(ct[Sn],S)]));m.tags&&m.tags[Y]&&(ft.unshift(Z),ft.push(Z),m.leqno?ft.unshift(se):ft.push(se)),D.push(new Vi.MathNode("mtr",ft))}var Bn=new Vi.MathNode("mtable",D),Qn=m.arraystretch===.5?.1:.16+m.arraystretch-1+(m.addJot?.09:0);Bn.setAttribute("rowspacing",Lt(Qn));var Ti="",Ni="";if(m.cols&&m.cols.length>0){var $i=m.cols,Nr="",$r=!1,jr=0,To=$i.length;$i[0].type==="separator"&&(Ti+="top ",jr=1),$i[$i.length-1].type==="separator"&&(Ti+="bottom ",To-=1);for(var jo=jr;jo<To;jo++)$i[jo].type==="align"?(Ni+=gi[$i[jo].align],$r&&(Nr+="none "),$r=!0):$i[jo].type==="separator"&&$r&&(Nr+=$i[jo].separator==="|"?"solid ":"dashed ",$r=!1);Bn.setAttribute("columnalign",Ni.trim()),/[sd]/.test(Nr)&&Bn.setAttribute("columnlines",Nr.trim())}if(m.colSeparationType==="align"){for(var Ra=m.cols||[],na="",Yo=1;Yo<Ra.length;Yo++)na+=Yo%2?"0em ":"1em ";Bn.setAttribute("columnspacing",na.trim())}else m.colSeparationType==="alignat"||m.colSeparationType==="gather"?Bn.setAttribute("columnspacing","0em"):m.colSeparationType==="small"?Bn.setAttribute("columnspacing","0.2778em"):m.colSeparationType==="CD"?Bn.setAttribute("columnspacing","0.5em"):Bn.setAttribute("columnspacing","1em");var fa="",ls=m.hLinesBeforeRow;Ti+=ls[0].length>0?"left ":"",Ti+=ls[ls.length-1].length>0?"right ":"";for(var ua=1;ua<ls.length-1;ua++)fa+=ls[ua].length===0?"none ":ls[ua][0]?"dashed ":"solid ";return/[sd]/.test(fa)&&Bn.setAttribute("rowlines",fa.trim()),Ti!==""&&(Bn=new Vi.MathNode("menclose",[Bn]),Bn.setAttribute("notation",Ti.trim())),m.arraystretch&&m.arraystretch<1&&(Bn=new Vi.MathNode("mstyle",[Bn]),Bn.setAttribute("scriptlevel","1")),Bn},E=function(m,S){m.envName.indexOf("ed")===-1&&ln(m);var D=[],Z=m.envName.indexOf("at")>-1?"alignat":"align",se=m.envName==="split",Y=jn(m.parser,{cols:D,addJot:!0,autoTag:se?void 0:zn(m.envName),emptySingleRow:!0,colSeparationType:Z,maxNumCols:se?2:void 0,leqno:m.parser.settings.leqno},"display"),ct,ft=0,Sn={type:"ordgroup",mode:m.mode,body:[]};if(S[0]&&S[0].type==="ordgroup"){for(var Bn="",Qn=0;Qn<S[0].body.length;Qn++){var Ti=qe(S[0].body[Qn],"textord");Bn+=Ti.text}ct=Number(Bn),ft=ct*2}var Ni=!ft;Y.body.forEach(function(jr){for(var To=1;To<jr.length;To+=2){var jo=qe(jr[To],"styling"),Ra=qe(jo.body[0],"ordgroup");Ra.body.unshift(Sn)}if(Ni)ft<jr.length&&(ft=jr.length);else{var na=jr.length/2;if(ct<na)throw new Ft("Too many math in a row: "+("expected "+ct+", but got "+na),jr[0])}});for(var $i=0;$i<ft;++$i){var Nr="r",$r=0;$i%2===1?Nr="l":$i>0&&Ni&&($r=1),D[$i]={type:"align",align:Nr,pregap:$r,postgap:0}}return Y.colSeparationType=Ni?"align":"alignat",Y};_t({type:"array",names:["array","darray"],props:{numArgs:1},handler(A,m){var S=Cu(m[0]),D=S?[m[0]]:qe(m[0],"ordgroup").body,Z=D.map(function(Y){var ct=Dn(Y),ft=ct.text;if("lcr".indexOf(ft)!==-1)return{type:"align",align:ft};if(ft==="|")return{type:"separator",separator:"|"};if(ft===":")return{type:"separator",separator:":"};throw new Ft("Unknown column alignment: "+ft,Y)}),se={cols:Z,hskipBeforeAndAfter:!0,maxNumCols:Z.length};return jn(A.parser,se,$n(A.envName))},htmlBuilder:hi,mathmlBuilder:ti}),_t({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(A){var m={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[A.envName.replace("*","")],S="c",D={hskipBeforeAndAfter:!1,cols:[{type:"align",align:S}]};if(A.envName.charAt(A.envName.length-1)==="*"){var Z=A.parser;if(Z.consumeSpaces(),Z.fetch().text==="["){if(Z.consume(),Z.consumeSpaces(),S=Z.fetch().text,"lcr".indexOf(S)===-1)throw new Ft("Expected l or c or r",Z.nextToken);Z.consume(),Z.consumeSpaces(),Z.expect("]"),Z.consume(),D.cols=[{type:"align",align:S}]}}var se=jn(A.parser,D,$n(A.envName)),Y=Math.max(0,...se.body.map(ct=>ct.length));return se.cols=new Array(Y).fill({type:"align",align:S}),m?{type:"leftright",mode:A.mode,body:[se],left:m[0],right:m[1],rightColor:void 0}:se},htmlBuilder:hi,mathmlBuilder:ti}),_t({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(A){var m={arraystretch:.5},S=jn(A.parser,m,"script");return S.colSeparationType="small",S},htmlBuilder:hi,mathmlBuilder:ti}),_t({type:"array",names:["subarray"],props:{numArgs:1},handler(A,m){var S=Cu(m[0]),D=S?[m[0]]:qe(m[0],"ordgroup").body,Z=D.map(function(Y){var ct=Dn(Y),ft=ct.text;if("lc".indexOf(ft)!==-1)return{type:"align",align:ft};throw new Ft("Unknown column alignment: "+ft,Y)});if(Z.length>1)throw new Ft("{subarray} can contain only one column");var se={cols:Z,hskipBeforeAndAfter:!1,arraystretch:.5};if(se=jn(A.parser,se,"script"),se.body.length>0&&se.body[0].length>1)throw new Ft("{subarray} can contain only one column");return se},htmlBuilder:hi,mathmlBuilder:ti}),_t({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(A){var m={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},S=jn(A.parser,m,$n(A.envName));return{type:"leftright",mode:A.mode,body:[S],left:A.envName.indexOf("r")>-1?".":"\\{",right:A.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:hi,mathmlBuilder:ti}),_t({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:E,htmlBuilder:hi,mathmlBuilder:ti}),_t({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(A){T.contains(["gather","gather*"],A.envName)&&ln(A);var m={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:zn(A.envName),emptySingleRow:!0,leqno:A.parser.settings.leqno};return jn(A.parser,m,"display")},htmlBuilder:hi,mathmlBuilder:ti}),_t({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:E,htmlBuilder:hi,mathmlBuilder:ti}),_t({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(A){ln(A);var m={autoTag:zn(A.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:A.parser.settings.leqno};return jn(A.parser,m,"display")},htmlBuilder:hi,mathmlBuilder:ti}),_t({type:"array",names:["CD"],props:{numArgs:0},handler(A){return ln(A),js(A.parser)},htmlBuilder:hi,mathmlBuilder:ti}),ve("\\nonumber","\\gdef\\@eqnsw{0}"),ve("\\notag","\\nonumber"),Ui({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(A,m){throw new Ft(A.funcName+" valid only within array environment")}});var P=xt;Ui({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(A,m){var{parser:S,funcName:D}=A,Z=m[0];if(Z.type!=="ordgroup")throw new Ft("Invalid environment name",Z);for(var se="",Y=0;Y<Z.body.length;++Y)se+=qe(Z.body[Y],"textord").text;if(D==="\\begin"){if(!P.hasOwnProperty(se))throw new Ft("No such environment: "+se,Z);var ct=P[se],{args:ft,optArgs:Sn}=S.parseArguments("\\begin{"+se+"}",ct),Bn={mode:S.mode,envName:se,parser:S},Qn=ct.handler(Bn,ft,Sn);S.expect("\\end",!1);var Ti=S.nextToken,Ni=qe(S.parseFunction(),"environment");if(Ni.name!==se)throw new Ft("Mismatch: \\begin{"+se+"} matched by \\end{"+Ni.name+"}",Ti);return Qn}return{type:"environment",mode:S.mode,name:se,nameGroup:Z}}});var W=(A,m)=>{var S=A.font,D=m.withFont(S);return _o(A.body,D)},J=(A,m)=>{var S=A.font,D=m.withFont(S);return ro(A.body,D)},ge={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Ui({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(A,m)=>{var{parser:S,funcName:D}=A,Z=Es(m[0]),se=D;return se in ge&&(se=ge[se]),{type:"font",mode:S.mode,font:se.slice(1),body:Z}},htmlBuilder:W,mathmlBuilder:J}),Ui({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(A,m)=>{var{parser:S}=A,D=m[0],Z=T.isCharacterBox(D);return{type:"mclass",mode:S.mode,mclass:Dr(D),body:[{type:"font",mode:S.mode,font:"boldsymbol",body:D}],isCharacterBox:Z}}}),Ui({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(A,m)=>{var{parser:S,funcName:D,breakOnTokenText:Z}=A,{mode:se}=S,Y=S.parseExpression(!0,Z),ct="math"+D.slice(1);return{type:"font",mode:se,font:ct,body:{type:"ordgroup",mode:S.mode,body:Y}}},htmlBuilder:W,mathmlBuilder:J});var Ae=(A,m)=>{var S=m;return A==="display"?S=S.id>=yn.SCRIPT.id?S.text():yn.DISPLAY:A==="text"&&S.size===yn.DISPLAY.size?S=yn.TEXT:A==="script"?S=yn.SCRIPT:A==="scriptscript"&&(S=yn.SCRIPTSCRIPT),S},He=(A,m)=>{var S=Ae(A.size,m.style),D=S.fracNum(),Z=S.fracDen(),se;se=m.havingStyle(D);var Y=_o(A.numer,se,m);if(A.continued){var ct=8.5/m.fontMetrics().ptPerEm,ft=3.5/m.fontMetrics().ptPerEm;Y.height=Y.height<ct?ct:Y.height,Y.depth=Y.depth<ft?ft:Y.depth}se=m.havingStyle(Z);var Sn=_o(A.denom,se,m),Bn,Qn,Ti;A.hasBarLine?(A.barSize?(Qn=Ut(A.barSize,m),Bn=wn.makeLineSpan("frac-line",m,Qn)):Bn=wn.makeLineSpan("frac-line",m),Qn=Bn.height,Ti=Bn.height):(Bn=null,Qn=0,Ti=m.fontMetrics().defaultRuleThickness);var Ni,$i,Nr;S.size===yn.DISPLAY.size||A.size==="display"?(Ni=m.fontMetrics().num1,Qn>0?$i=3*Ti:$i=7*Ti,Nr=m.fontMetrics().denom1):(Qn>0?(Ni=m.fontMetrics().num2,$i=Ti):(Ni=m.fontMetrics().num3,$i=3*Ti),Nr=m.fontMetrics().denom2);var $r;if(Bn){var To=m.fontMetrics().axisHeight;Ni-Y.depth-(To+.5*Qn)<$i&&(Ni+=$i-(Ni-Y.depth-(To+.5*Qn))),To-.5*Qn-(Sn.height-Nr)<$i&&(Nr+=$i-(To-.5*Qn-(Sn.height-Nr)));var jo=-(To-.5*Qn);$r=wn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Sn,shift:Nr},{type:"elem",elem:Bn,shift:jo},{type:"elem",elem:Y,shift:-Ni}]},m)}else{var jr=Ni-Y.depth-(Sn.height-Nr);jr<$i&&(Ni+=.5*($i-jr),Nr+=.5*($i-jr)),$r=wn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Sn,shift:Nr},{type:"elem",elem:Y,shift:-Ni}]},m)}se=m.havingStyle(S),$r.height*=se.sizeMultiplier/m.sizeMultiplier,$r.depth*=se.sizeMultiplier/m.sizeMultiplier;var Ra;S.size===yn.DISPLAY.size?Ra=m.fontMetrics().delim1:S.size===yn.SCRIPTSCRIPT.size?Ra=m.havingStyle(yn.SCRIPT).fontMetrics().delim2:Ra=m.fontMetrics().delim2;var na,Yo;return A.leftDelim==null?na=Rl(m,["mopen"]):na=Ws.customSizedDelim(A.leftDelim,Ra,!0,m.havingStyle(S),A.mode,["mopen"]),A.continued?Yo=wn.makeSpan([]):A.rightDelim==null?Yo=Rl(m,["mclose"]):Yo=Ws.customSizedDelim(A.rightDelim,Ra,!0,m.havingStyle(S),A.mode,["mclose"]),wn.makeSpan(["mord"].concat(se.sizingClasses(m)),[na,wn.makeSpan(["mfrac"],[$r]),Yo],m)},it=(A,m)=>{var S=new Vi.MathNode("mfrac",[ro(A.numer,m),ro(A.denom,m)]);if(!A.hasBarLine)S.setAttribute("linethickness","0px");else if(A.barSize){var D=Ut(A.barSize,m);S.setAttribute("linethickness",Lt(D))}var Z=Ae(A.size,m.style);if(Z.size!==m.style.size){S=new Vi.MathNode("mstyle",[S]);var se=Z.size===yn.DISPLAY.size?"true":"false";S.setAttribute("displaystyle",se),S.setAttribute("scriptlevel","0")}if(A.leftDelim!=null||A.rightDelim!=null){var Y=[];if(A.leftDelim!=null){var ct=new Vi.MathNode("mo",[new Vi.TextNode(A.leftDelim.replace("\\",""))]);ct.setAttribute("fence","true"),Y.push(ct)}if(Y.push(S),A.rightDelim!=null){var ft=new Vi.MathNode("mo",[new Vi.TextNode(A.rightDelim.replace("\\",""))]);ft.setAttribute("fence","true"),Y.push(ft)}return jl(Y)}return S};Ui({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(A,m)=>{var{parser:S,funcName:D}=A,Z=m[0],se=m[1],Y,ct=null,ft=null,Sn="auto";switch(D){case"\\dfrac":case"\\frac":case"\\tfrac":Y=!0;break;case"\\\\atopfrac":Y=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":Y=!1,ct="(",ft=")";break;case"\\\\bracefrac":Y=!1,ct="\\{",ft="\\}";break;case"\\\\brackfrac":Y=!1,ct="[",ft="]";break;default:throw new Error("Unrecognized genfrac command")}switch(D){case"\\dfrac":case"\\dbinom":Sn="display";break;case"\\tfrac":case"\\tbinom":Sn="text";break}return{type:"genfrac",mode:S.mode,continued:!1,numer:Z,denom:se,hasBarLine:Y,leftDelim:ct,rightDelim:ft,size:Sn,barSize:null}},htmlBuilder:He,mathmlBuilder:it}),Ui({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(A,m)=>{var{parser:S,funcName:D}=A,Z=m[0],se=m[1];return{type:"genfrac",mode:S.mode,continued:!0,numer:Z,denom:se,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),Ui({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(A){var{parser:m,funcName:S,token:D}=A,Z;switch(S){case"\\over":Z="\\frac";break;case"\\choose":Z="\\binom";break;case"\\atop":Z="\\\\atopfrac";break;case"\\brace":Z="\\\\bracefrac";break;case"\\brack":Z="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:m.mode,replaceWith:Z,token:D}}});var jt=["display","text","script","scriptscript"],Qt=function(m){var S=null;return m.length>0&&(S=m,S=S==="."?null:S),S};Ui({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(A,m){var{parser:S}=A,D=m[4],Z=m[5],se=Es(m[0]),Y=se.type==="atom"&&se.family==="open"?Qt(se.text):null,ct=Es(m[1]),ft=ct.type==="atom"&&ct.family==="close"?Qt(ct.text):null,Sn=qe(m[2],"size"),Bn,Qn=null;Sn.isBlank?Bn=!0:(Qn=Sn.value,Bn=Qn.number>0);var Ti="auto",Ni=m[3];if(Ni.type==="ordgroup"){if(Ni.body.length>0){var $i=qe(Ni.body[0],"textord");Ti=jt[Number($i.text)]}}else Ni=qe(Ni,"textord"),Ti=jt[Number(Ni.text)];return{type:"genfrac",mode:S.mode,numer:D,denom:Z,continued:!1,hasBarLine:Bn,barSize:Qn,leftDelim:Y,rightDelim:ft,size:Ti}},htmlBuilder:He,mathmlBuilder:it}),Ui({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(A,m){var{parser:S,funcName:D,token:Z}=A;return{type:"infix",mode:S.mode,replaceWith:"\\\\abovefrac",size:qe(m[0],"size").value,token:Z}}}),Ui({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(A,m)=>{var{parser:S,funcName:D}=A,Z=m[0],se=j(qe(m[1],"infix").size),Y=m[2],ct=se.number>0;return{type:"genfrac",mode:S.mode,numer:Z,denom:Y,continued:!1,hasBarLine:ct,barSize:se,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:He,mathmlBuilder:it});var bt=(A,m)=>{var S=m.style,D,Z;A.type==="supsub"?(D=A.sup?_o(A.sup,m.havingStyle(S.sup()),m):_o(A.sub,m.havingStyle(S.sub()),m),Z=qe(A.base,"horizBrace")):Z=qe(A,"horizBrace");var se=_o(Z.base,m.havingBaseStyle(yn.DISPLAY)),Y=Ks.svgSpan(Z,m),ct;if(Z.isOver?(ct=wn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:se},{type:"kern",size:.1},{type:"elem",elem:Y}]},m),ct.children[0].children[0].children[1].classes.push("svg-align")):(ct=wn.makeVList({positionType:"bottom",positionData:se.depth+.1+Y.height,children:[{type:"elem",elem:Y},{type:"kern",size:.1},{type:"elem",elem:se}]},m),ct.children[0].children[0].children[0].classes.push("svg-align")),D){var ft=wn.makeSpan(["mord",Z.isOver?"mover":"munder"],[ct],m);Z.isOver?ct=wn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:ft},{type:"kern",size:.2},{type:"elem",elem:D}]},m):ct=wn.makeVList({positionType:"bottom",positionData:ft.depth+.2+D.height+D.depth,children:[{type:"elem",elem:D},{type:"kern",size:.2},{type:"elem",elem:ft}]},m)}return wn.makeSpan(["mord",Z.isOver?"mover":"munder"],[ct],m)},en=(A,m)=>{var S=Ks.mathMLnode(A.label);return new Vi.MathNode(A.isOver?"mover":"munder",[ro(A.base,m),S])};Ui({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(A,m){var{parser:S,funcName:D}=A;return{type:"horizBrace",mode:S.mode,label:D,isOver:/^\\over/.test(D),base:m[0]}},htmlBuilder:bt,mathmlBuilder:en}),Ui({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(A,m)=>{var{parser:S}=A,D=m[1],Z=qe(m[0],"url").url;return S.settings.isTrusted({command:"\\href",url:Z})?{type:"href",mode:S.mode,href:Z,body:Vo(D)}:S.formatUnsupportedCmd("\\href")},htmlBuilder:(A,m)=>{var S=Bo(A.body,m,!1);return wn.makeAnchor(A.href,[],S,m)},mathmlBuilder:(A,m)=>{var S=aa(A.body,m);return S instanceof Ga||(S=new Ga("mrow",[S])),S.setAttribute("href",A.href),S}}),Ui({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(A,m)=>{var{parser:S}=A,D=qe(m[0],"url").url;if(!S.settings.isTrusted({command:"\\url",url:D}))return S.formatUnsupportedCmd("\\url");for(var Z=[],se=0;se<D.length;se++){var Y=D[se];Y==="~"&&(Y="\\textasciitilde"),Z.push({type:"textord",mode:"text",text:Y})}var ct={type:"text",mode:S.mode,font:"\\texttt",body:Z};return{type:"href",mode:S.mode,href:D,body:Vo(ct)}}}),Ui({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(A,m){var{parser:S}=A;return{type:"hbox",mode:S.mode,body:Vo(m[0])}},htmlBuilder(A,m){var S=Bo(A.body,m,!1);return wn.makeFragment(S)},mathmlBuilder(A,m){return new Vi.MathNode("mrow",ha(A.body,m))}}),Ui({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(A,m)=>{var{parser:S,funcName:D,token:Z}=A,se=qe(m[0],"raw").string,Y=m[1];S.settings.strict&&S.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var ct,ft={};switch(D){case"\\htmlClass":ft.class=se,ct={command:"\\htmlClass",class:se};break;case"\\htmlId":ft.id=se,ct={command:"\\htmlId",id:se};break;case"\\htmlStyle":ft.style=se,ct={command:"\\htmlStyle",style:se};break;case"\\htmlData":{for(var Sn=se.split(","),Bn=0;Bn<Sn.length;Bn++){var Qn=Sn[Bn].split("=");if(Qn.length!==2)throw new Ft("Error parsing key-value for \\htmlData");ft["data-"+Qn[0].trim()]=Qn[1].trim()}ct={command:"\\htmlData",attributes:ft};break}default:throw new Error("Unrecognized html command")}return S.settings.isTrusted(ct)?{type:"html",mode:S.mode,attributes:ft,body:Vo(Y)}:S.formatUnsupportedCmd(D)},htmlBuilder:(A,m)=>{var S=Bo(A.body,m,!1),D=["enclosing"];A.attributes.class&&D.push(...A.attributes.class.trim().split(/\s+/));var Z=wn.makeSpan(D,S,m);for(var se in A.attributes)se!=="class"&&A.attributes.hasOwnProperty(se)&&Z.setAttribute(se,A.attributes[se]);return Z},mathmlBuilder:(A,m)=>aa(A.body,m)}),Ui({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(A,m)=>{var{parser:S}=A;return{type:"htmlmathml",mode:S.mode,html:Vo(m[0]),mathml:Vo(m[1])}},htmlBuilder:(A,m)=>{var S=Bo(A.html,m,!1);return wn.makeFragment(S)},mathmlBuilder:(A,m)=>aa(A.mathml,m)});var Gt=function(m){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(m))return{number:+m,unit:"bp"};var S=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(m);if(!S)throw new Ft("Invalid size: '"+m+"' in \\includegraphics");var D={number:+(S[1]+S[2]),unit:S[3]};if(!Ve(D))throw new Ft("Invalid unit: '"+D.unit+"' in \\includegraphics.");return D};Ui({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(A,m,S)=>{var{parser:D}=A,Z={number:0,unit:"em"},se={number:.9,unit:"em"},Y={number:0,unit:"em"},ct="";if(S[0])for(var ft=qe(S[0],"raw").string,Sn=ft.split(","),Bn=0;Bn<Sn.length;Bn++){var Qn=Sn[Bn].split("=");if(Qn.length===2){var Ti=Qn[1].trim();switch(Qn[0].trim()){case"alt":ct=Ti;break;case"width":Z=Gt(Ti);break;case"height":se=Gt(Ti);break;case"totalheight":Y=Gt(Ti);break;default:throw new Ft("Invalid key: '"+Qn[0]+"' in \\includegraphics.")}}}var Ni=qe(m[0],"url").url;return ct===""&&(ct=Ni,ct=ct.replace(/^.*[\\/]/,""),ct=ct.substring(0,ct.lastIndexOf("."))),D.settings.isTrusted({command:"\\includegraphics",url:Ni})?{type:"includegraphics",mode:D.mode,alt:ct,width:Z,height:se,totalheight:Y,src:Ni}:D.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(A,m)=>{var S=Ut(A.height,m),D=0;A.totalheight.number>0&&(D=Ut(A.totalheight,m)-S);var Z=0;A.width.number>0&&(Z=Ut(A.width,m));var se={height:Lt(S+D)};Z>0&&(se.width=Lt(Z)),D>0&&(se.verticalAlign=Lt(-D));var Y=new Jt(A.src,A.alt,se);return Y.height=S,Y.depth=D,Y},mathmlBuilder:(A,m)=>{var S=new Vi.MathNode("mglyph",[]);S.setAttribute("alt",A.alt);var D=Ut(A.height,m),Z=0;if(A.totalheight.number>0&&(Z=Ut(A.totalheight,m)-D,S.setAttribute("valign",Lt(-Z))),S.setAttribute("height",Lt(D+Z)),A.width.number>0){var se=Ut(A.width,m);S.setAttribute("width",Lt(se))}return S.setAttribute("src",A.src),S}}),Ui({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(A,m){var{parser:S,funcName:D}=A,Z=qe(m[0],"size");if(S.settings.strict){var se=D[1]==="m",Y=Z.value.unit==="mu";se?(Y||S.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+D+" supports only mu units, "+("not "+Z.value.unit+" units")),S.mode!=="math"&&S.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+D+" works only in math mode")):Y&&S.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+D+" doesn't support mu units")}return{type:"kern",mode:S.mode,dimension:Z.value}},htmlBuilder(A,m){return wn.makeGlue(A.dimension,m)},mathmlBuilder(A,m){var S=Ut(A.dimension,m);return new Vi.SpaceNode(S)}}),Ui({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(A,m)=>{var{parser:S,funcName:D}=A,Z=m[0];return{type:"lap",mode:S.mode,alignment:D.slice(5),body:Z}},htmlBuilder:(A,m)=>{var S;A.alignment==="clap"?(S=wn.makeSpan([],[_o(A.body,m)]),S=wn.makeSpan(["inner"],[S],m)):S=wn.makeSpan(["inner"],[_o(A.body,m)]);var D=wn.makeSpan(["fix"],[]),Z=wn.makeSpan([A.alignment],[S,D],m),se=wn.makeSpan(["strut"]);return se.style.height=Lt(Z.height+Z.depth),Z.depth&&(se.style.verticalAlign=Lt(-Z.depth)),Z.children.unshift(se),Z=wn.makeSpan(["thinbox"],[Z],m),wn.makeSpan(["mord","vbox"],[Z],m)},mathmlBuilder:(A,m)=>{var S=new Vi.MathNode("mpadded",[ro(A.body,m)]);if(A.alignment!=="rlap"){var D=A.alignment==="llap"?"-1":"-0.5";S.setAttribute("lspace",D+"width")}return S.setAttribute("width","0px"),S}}),Ui({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(A,m){var{funcName:S,parser:D}=A,Z=D.mode;D.switchMode("math");var se=S==="\\("?"\\)":"$",Y=D.parseExpression(!1,se);return D.expect(se),D.switchMode(Z),{type:"styling",mode:D.mode,style:"text",body:Y}}}),Ui({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(A,m){throw new Ft("Mismatched "+A.funcName)}});var wt=(A,m)=>{switch(m.style.size){case yn.DISPLAY.size:return A.display;case yn.TEXT.size:return A.text;case yn.SCRIPT.size:return A.script;case yn.SCRIPTSCRIPT.size:return A.scriptscript;default:return A.text}};Ui({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(A,m)=>{var{parser:S}=A;return{type:"mathchoice",mode:S.mode,display:Vo(m[0]),text:Vo(m[1]),script:Vo(m[2]),scriptscript:Vo(m[3])}},htmlBuilder:(A,m)=>{var S=wt(A,m),D=Bo(S,m,!1);return wn.makeFragment(D)},mathmlBuilder:(A,m)=>{var S=wt(A,m);return aa(S,m)}});var ii=(A,m,S,D,Z,se,Y)=>{A=wn.makeSpan([],[A]);var ct=S&&T.isCharacterBox(S),ft,Sn;if(m){var Bn=_o(m,D.havingStyle(Z.sup()),D);Sn={elem:Bn,kern:Math.max(D.fontMetrics().bigOpSpacing1,D.fontMetrics().bigOpSpacing3-Bn.depth)}}if(S){var Qn=_o(S,D.havingStyle(Z.sub()),D);ft={elem:Qn,kern:Math.max(D.fontMetrics().bigOpSpacing2,D.fontMetrics().bigOpSpacing4-Qn.height)}}var Ti;if(Sn&&ft){var Ni=D.fontMetrics().bigOpSpacing5+ft.elem.height+ft.elem.depth+ft.kern+A.depth+Y;Ti=wn.makeVList({positionType:"bottom",positionData:Ni,children:[{type:"kern",size:D.fontMetrics().bigOpSpacing5},{type:"elem",elem:ft.elem,marginLeft:Lt(-se)},{type:"kern",size:ft.kern},{type:"elem",elem:A},{type:"kern",size:Sn.kern},{type:"elem",elem:Sn.elem,marginLeft:Lt(se)},{type:"kern",size:D.fontMetrics().bigOpSpacing5}]},D)}else if(ft){var $i=A.height-Y;Ti=wn.makeVList({positionType:"top",positionData:$i,children:[{type:"kern",size:D.fontMetrics().bigOpSpacing5},{type:"elem",elem:ft.elem,marginLeft:Lt(-se)},{type:"kern",size:ft.kern},{type:"elem",elem:A}]},D)}else if(Sn){var Nr=A.depth+Y;Ti=wn.makeVList({positionType:"bottom",positionData:Nr,children:[{type:"elem",elem:A},{type:"kern",size:Sn.kern},{type:"elem",elem:Sn.elem,marginLeft:Lt(se)},{type:"kern",size:D.fontMetrics().bigOpSpacing5}]},D)}else return A;var $r=[Ti];if(ft&&se!==0&&!ct){var jr=wn.makeSpan(["mspace"],[],D);jr.style.marginRight=Lt(se),$r.unshift(jr)}return wn.makeSpan(["mop","op-limits"],$r,D)},ki=["\\smallint"],ji=(A,m)=>{var S,D,Z=!1,se;A.type==="supsub"?(S=A.sup,D=A.sub,se=qe(A.base,"op"),Z=!0):se=qe(A,"op");var Y=m.style,ct=!1;Y.size===yn.DISPLAY.size&&se.symbol&&!T.contains(ki,se.name)&&(ct=!0);var ft;if(se.symbol){var Sn=ct?"Size2-Regular":"Size1-Regular",Bn="";if((se.name==="\\oiint"||se.name==="\\oiiint")&&(Bn=se.name.slice(1),se.name=Bn==="oiint"?"\\iint":"\\iiint"),ft=wn.makeSymbol(se.name,Sn,"math",m,["mop","op-symbol",ct?"large-op":"small-op"]),Bn.length>0){var Qn=ft.italic,Ti=wn.staticSvg(Bn+"Size"+(ct?"2":"1"),m);ft=wn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:ft,shift:0},{type:"elem",elem:Ti,shift:ct?.08:0}]},m),se.name="\\"+Bn,ft.classes.unshift("mop"),ft.italic=Qn}}else if(se.body){var Ni=Bo(se.body,m,!0);Ni.length===1&&Ni[0]instanceof xn?(ft=Ni[0],ft.classes[0]="mop"):ft=wn.makeSpan(["mop"],Ni,m)}else{for(var $i=[],Nr=1;Nr<se.name.length;Nr++)$i.push(wn.mathsym(se.name[Nr],se.mode,m));ft=wn.makeSpan(["mop"],$i,m)}var $r=0,jr=0;return(ft instanceof xn||se.name==="\\oiint"||se.name==="\\oiiint")&&!se.suppressBaseShift&&($r=(ft.height-ft.depth)/2-m.fontMetrics().axisHeight,jr=ft.italic),Z?ii(ft,S,D,m,Y,jr,$r):($r&&(ft.style.position="relative",ft.style.top=Lt($r)),ft)},si=(A,m)=>{var S;if(A.symbol)S=new Ga("mo",[Cs(A.name,A.mode)]),T.contains(ki,A.name)&&S.setAttribute("largeop","false");else if(A.body)S=new Ga("mo",ha(A.body,m));else{S=new Ga("mi",[new os(A.name.slice(1))]);var D=new Ga("mo",[Cs("\u2061","text")]);A.parentIsSupSub?S=new Ga("mrow",[S,D]):S=hu([S,D])}return S},vi={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};Ui({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A04","\u2A06"],props:{numArgs:0},handler:(A,m)=>{var{parser:S,funcName:D}=A,Z=D;return Z.length===1&&(Z=vi[Z]),{type:"op",mode:S.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:Z}},htmlBuilder:ji,mathmlBuilder:si}),Ui({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(A,m)=>{var{parser:S}=A,D=m[0];return{type:"op",mode:S.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Vo(D)}},htmlBuilder:ji,mathmlBuilder:si});var Pi={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};Ui({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(A){var{parser:m,funcName:S}=A;return{type:"op",mode:m.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:S}},htmlBuilder:ji,mathmlBuilder:si}),Ui({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(A){var{parser:m,funcName:S}=A;return{type:"op",mode:m.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:S}},htmlBuilder:ji,mathmlBuilder:si}),Ui({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler(A){var{parser:m,funcName:S}=A,D=S;return D.length===1&&(D=Pi[D]),{type:"op",mode:m.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:D}},htmlBuilder:ji,mathmlBuilder:si});var Mr=(A,m)=>{var S,D,Z=!1,se;A.type==="supsub"?(S=A.sup,D=A.sub,se=qe(A.base,"operatorname"),Z=!0):se=qe(A,"operatorname");var Y;if(se.body.length>0){for(var ct=se.body.map(Qn=>{var Ti=Qn.text;return typeof Ti=="string"?{type:"textord",mode:Qn.mode,text:Ti}:Qn}),ft=Bo(ct,m.withFont("mathrm"),!0),Sn=0;Sn<ft.length;Sn++){var Bn=ft[Sn];Bn instanceof xn&&(Bn.text=Bn.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}Y=wn.makeSpan(["mop"],ft,m)}else Y=wn.makeSpan(["mop"],[],m);return Z?ii(Y,S,D,m,m.style,0,0):Y},Xr=(A,m)=>{for(var S=ha(A.body,m.withFont("mathrm")),D=!0,Z=0;Z<S.length;Z++){var se=S[Z];if(!(se instanceof Vi.SpaceNode))if(se instanceof Vi.MathNode)switch(se.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var Y=se.children[0];se.children.length===1&&Y instanceof Vi.TextNode?Y.text=Y.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):D=!1;break}default:D=!1}else D=!1}if(D){var ct=S.map(Bn=>Bn.toText()).join("");S=[new Vi.TextNode(ct)]}var ft=new Vi.MathNode("mi",S);ft.setAttribute("mathvariant","normal");var Sn=new Vi.MathNode("mo",[Cs("\u2061","text")]);return A.parentIsSupSub?new Vi.MathNode("mrow",[ft,Sn]):Vi.newDocumentFragment([ft,Sn])};Ui({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(A,m)=>{var{parser:S,funcName:D}=A,Z=m[0];return{type:"operatorname",mode:S.mode,body:Vo(Z),alwaysHandleSupSub:D==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Mr,mathmlBuilder:Xr}),ve("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),Jo({type:"ordgroup",htmlBuilder(A,m){return A.semisimple?wn.makeFragment(Bo(A.body,m,!1)):wn.makeSpan(["mord"],Bo(A.body,m,!0),m)},mathmlBuilder(A,m){return aa(A.body,m,!0)}}),Ui({type:"overline",names:["\\overline"],props:{numArgs:1},handler(A,m){var{parser:S}=A,D=m[0];return{type:"overline",mode:S.mode,body:D}},htmlBuilder(A,m){var S=_o(A.body,m.havingCrampedStyle()),D=wn.makeLineSpan("overline-line",m),Z=m.fontMetrics().defaultRuleThickness,se=wn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:S},{type:"kern",size:3*Z},{type:"elem",elem:D},{type:"kern",size:Z}]},m);return wn.makeSpan(["mord","overline"],[se],m)},mathmlBuilder(A,m){var S=new Vi.MathNode("mo",[new Vi.TextNode("\u203E")]);S.setAttribute("stretchy","true");var D=new Vi.MathNode("mover",[ro(A.body,m),S]);return D.setAttribute("accent","true"),D}}),Ui({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(A,m)=>{var{parser:S}=A,D=m[0];return{type:"phantom",mode:S.mode,body:Vo(D)}},htmlBuilder:(A,m)=>{var S=Bo(A.body,m.withPhantom(),!1);return wn.makeFragment(S)},mathmlBuilder:(A,m)=>{var S=ha(A.body,m);return new Vi.MathNode("mphantom",S)}}),Ui({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(A,m)=>{var{parser:S}=A,D=m[0];return{type:"hphantom",mode:S.mode,body:D}},htmlBuilder:(A,m)=>{var S=wn.makeSpan([],[_o(A.body,m.withPhantom())]);if(S.height=0,S.depth=0,S.children)for(var D=0;D<S.children.length;D++)S.children[D].height=0,S.children[D].depth=0;return S=wn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:S}]},m),wn.makeSpan(["mord"],[S],m)},mathmlBuilder:(A,m)=>{var S=ha(Vo(A.body),m),D=new Vi.MathNode("mphantom",S),Z=new Vi.MathNode("mpadded",[D]);return Z.setAttribute("height","0px"),Z.setAttribute("depth","0px"),Z}}),Ui({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(A,m)=>{var{parser:S}=A,D=m[0];return{type:"vphantom",mode:S.mode,body:D}},htmlBuilder:(A,m)=>{var S=wn.makeSpan(["inner"],[_o(A.body,m.withPhantom())]),D=wn.makeSpan(["fix"],[]);return wn.makeSpan(["mord","rlap"],[S,D],m)},mathmlBuilder:(A,m)=>{var S=ha(Vo(A.body),m),D=new Vi.MathNode("mphantom",S),Z=new Vi.MathNode("mpadded",[D]);return Z.setAttribute("width","0px"),Z}}),Ui({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(A,m){var{parser:S}=A,D=qe(m[0],"size").value,Z=m[1];return{type:"raisebox",mode:S.mode,dy:D,body:Z}},htmlBuilder(A,m){var S=_o(A.body,m),D=Ut(A.dy,m);return wn.makeVList({positionType:"shift",positionData:-D,children:[{type:"elem",elem:S}]},m)},mathmlBuilder(A,m){var S=new Vi.MathNode("mpadded",[ro(A.body,m)]),D=A.dy.number+A.dy.unit;return S.setAttribute("voffset",D),S}}),Ui({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(A){var{parser:m}=A;return{type:"internal",mode:m.mode}}}),Ui({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(A,m,S){var{parser:D}=A,Z=S[0],se=qe(m[0],"size"),Y=qe(m[1],"size");return{type:"rule",mode:D.mode,shift:Z&&qe(Z,"size").value,width:se.value,height:Y.value}},htmlBuilder(A,m){var S=wn.makeSpan(["mord","rule"],[],m),D=Ut(A.width,m),Z=Ut(A.height,m),se=A.shift?Ut(A.shift,m):0;return S.style.borderRightWidth=Lt(D),S.style.borderTopWidth=Lt(Z),S.style.bottom=Lt(se),S.width=D,S.height=Z+se,S.depth=-se,S.maxFontSize=Z*1.125*m.sizeMultiplier,S},mathmlBuilder(A,m){var S=Ut(A.width,m),D=Ut(A.height,m),Z=A.shift?Ut(A.shift,m):0,se=m.color&&m.getColor()||"black",Y=new Vi.MathNode("mspace");Y.setAttribute("mathbackground",se),Y.setAttribute("width",Lt(S)),Y.setAttribute("height",Lt(D));var ct=new Vi.MathNode("mpadded",[Y]);return Z>=0?ct.setAttribute("height",Lt(Z)):(ct.setAttribute("height",Lt(Z)),ct.setAttribute("depth",Lt(-Z))),ct.setAttribute("voffset",Lt(Z)),ct}});function ui(A,m,S){for(var D=Bo(A,m,!1),Z=m.sizeMultiplier/S.sizeMultiplier,se=0;se<D.length;se++){var Y=D[se].classes.indexOf("sizing");Y<0?Array.prototype.push.apply(D[se].classes,m.sizingClasses(S)):D[se].classes[Y+1]==="reset-size"+m.size&&(D[se].classes[Y+1]="reset-size"+S.size),D[se].height*=Z,D[se].depth*=Z}return wn.makeFragment(D)}var io=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],bo=(A,m)=>{var S=m.havingSize(A.size);return ui(A.body,S,m)};Ui({type:"sizing",names:io,props:{numArgs:0,allowedInText:!0},handler:(A,m)=>{var{breakOnTokenText:S,funcName:D,parser:Z}=A,se=Z.parseExpression(!1,S);return{type:"sizing",mode:Z.mode,size:io.indexOf(D)+1,body:se}},htmlBuilder:bo,mathmlBuilder:(A,m)=>{var S=m.havingSize(A.size),D=ha(A.body,S),Z=new Vi.MathNode("mstyle",D);return Z.setAttribute("mathsize",Lt(S.sizeMultiplier)),Z}}),Ui({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(A,m,S)=>{var{parser:D}=A,Z=!1,se=!1,Y=S[0]&&qe(S[0],"ordgroup");if(Y)for(var ct="",ft=0;ft<Y.body.length;++ft){var Sn=Y.body[ft];if(ct=Sn.text,ct==="t")Z=!0;else if(ct==="b")se=!0;else{Z=!1,se=!1;break}}else Z=!0,se=!0;var Bn=m[0];return{type:"smash",mode:D.mode,body:Bn,smashHeight:Z,smashDepth:se}},htmlBuilder:(A,m)=>{var S=wn.makeSpan([],[_o(A.body,m)]);if(!A.smashHeight&&!A.smashDepth)return S;if(A.smashHeight&&(S.height=0,S.children))for(var D=0;D<S.children.length;D++)S.children[D].height=0;if(A.smashDepth&&(S.depth=0,S.children))for(var Z=0;Z<S.children.length;Z++)S.children[Z].depth=0;var se=wn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:S}]},m);return wn.makeSpan(["mord"],[se],m)},mathmlBuilder:(A,m)=>{var S=new Vi.MathNode("mpadded",[ro(A.body,m)]);return A.smashHeight&&S.setAttribute("height","0px"),A.smashDepth&&S.setAttribute("depth","0px"),S}}),Ui({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(A,m,S){var{parser:D}=A,Z=S[0],se=m[0];return{type:"sqrt",mode:D.mode,body:se,index:Z}},htmlBuilder(A,m){var S=_o(A.body,m.havingCrampedStyle());S.height===0&&(S.height=m.fontMetrics().xHeight),S=wn.wrapFragment(S,m);var D=m.fontMetrics(),Z=D.defaultRuleThickness,se=Z;m.style.id<yn.TEXT.id&&(se=m.fontMetrics().xHeight);var Y=Z+se/4,ct=S.height+S.depth+Y+Z,{span:ft,ruleWidth:Sn,advanceWidth:Bn}=Ws.sqrtImage(ct,m),Qn=ft.height-Sn;Qn>S.height+S.depth+Y&&(Y=(Y+Qn-S.height-S.depth)/2);var Ti=ft.height-S.height-Y-Sn;S.style.paddingLeft=Lt(Bn);var Ni=wn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:S,wrapperClasses:["svg-align"]},{type:"kern",size:-(S.height+Ti)},{type:"elem",elem:ft},{type:"kern",size:Sn}]},m);if(A.index){var $i=m.havingStyle(yn.SCRIPTSCRIPT),Nr=_o(A.index,$i,m),$r=.6*(Ni.height-Ni.depth),jr=wn.makeVList({positionType:"shift",positionData:-$r,children:[{type:"elem",elem:Nr}]},m),To=wn.makeSpan(["root"],[jr]);return wn.makeSpan(["mord","sqrt"],[To,Ni],m)}else return wn.makeSpan(["mord","sqrt"],[Ni],m)},mathmlBuilder(A,m){var{body:S,index:D}=A;return D?new Vi.MathNode("mroot",[ro(S,m),ro(D,m)]):new Vi.MathNode("msqrt",[ro(S,m)])}});var dr={display:yn.DISPLAY,text:yn.TEXT,script:yn.SCRIPT,scriptscript:yn.SCRIPTSCRIPT};Ui({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(A,m){var{breakOnTokenText:S,funcName:D,parser:Z}=A,se=Z.parseExpression(!0,S),Y=D.slice(1,D.length-5);return{type:"styling",mode:Z.mode,style:Y,body:se}},htmlBuilder(A,m){var S=dr[A.style],D=m.havingStyle(S).withFont("");return ui(A.body,D,m)},mathmlBuilder(A,m){var S=dr[A.style],D=m.havingStyle(S),Z=ha(A.body,D),se=new Vi.MathNode("mstyle",Z),Y={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},ct=Y[A.style];return se.setAttribute("scriptlevel",ct[0]),se.setAttribute("displaystyle",ct[1]),se}});var Qi=function(m,S){var D=m.base;if(D)if(D.type==="op"){var Z=D.limits&&(S.style.size===yn.DISPLAY.size||D.alwaysHandleSupSub);return Z?ji:null}else if(D.type==="operatorname"){var se=D.alwaysHandleSupSub&&(S.style.size===yn.DISPLAY.size||D.limits);return se?Mr:null}else{if(D.type==="accent")return T.isCharacterBox(D.base)?Yu:null;if(D.type==="horizBrace"){var Y=!m.sub;return Y===D.isOver?bt:null}else return null}else return null};Jo({type:"supsub",htmlBuilder(A,m){var S=Qi(A,m);if(S)return S(A,m);var{base:D,sup:Z,sub:se}=A,Y=_o(D,m),ct,ft,Sn=m.fontMetrics(),Bn=0,Qn=0,Ti=D&&T.isCharacterBox(D);if(Z){var Ni=m.havingStyle(m.style.sup());ct=_o(Z,Ni,m),Ti||(Bn=Y.height-Ni.fontMetrics().supDrop*Ni.sizeMultiplier/m.sizeMultiplier)}if(se){var $i=m.havingStyle(m.style.sub());ft=_o(se,$i,m),Ti||(Qn=Y.depth+$i.fontMetrics().subDrop*$i.sizeMultiplier/m.sizeMultiplier)}var Nr;m.style===yn.DISPLAY?Nr=Sn.sup1:m.style.cramped?Nr=Sn.sup3:Nr=Sn.sup2;var $r=m.sizeMultiplier,jr=Lt(.5/Sn.ptPerEm/$r),To=null;if(ft){var jo=A.base&&A.base.type==="op"&&A.base.name&&(A.base.name==="\\oiint"||A.base.name==="\\oiiint");(Y instanceof xn||jo)&&(To=Lt(-Y.italic))}var Ra;if(ct&&ft){Bn=Math.max(Bn,Nr,ct.depth+.25*Sn.xHeight),Qn=Math.max(Qn,Sn.sub2);var na=Sn.defaultRuleThickness,Yo=4*na;if(Bn-ct.depth-(ft.height-Qn)<Yo){Qn=Yo-(Bn-ct.depth)+ft.height;var fa=.8*Sn.xHeight-(Bn-ct.depth);fa>0&&(Bn+=fa,Qn-=fa)}var ls=[{type:"elem",elem:ft,shift:Qn,marginRight:jr,marginLeft:To},{type:"elem",elem:ct,shift:-Bn,marginRight:jr}];Ra=wn.makeVList({positionType:"individualShift",children:ls},m)}else if(ft){Qn=Math.max(Qn,Sn.sub1,ft.height-.8*Sn.xHeight);var ua=[{type:"elem",elem:ft,marginLeft:To,marginRight:jr}];Ra=wn.makeVList({positionType:"shift",positionData:Qn,children:ua},m)}else if(ct)Bn=Math.max(Bn,Nr,ct.depth+.25*Sn.xHeight),Ra=wn.makeVList({positionType:"shift",positionData:-Bn,children:[{type:"elem",elem:ct,marginRight:jr}]},m);else throw new Error("supsub must have either sup or sub.");var Sl=qa(Y,"right")||"mord";return wn.makeSpan([Sl],[Y,wn.makeSpan(["msupsub"],[Ra])],m)},mathmlBuilder(A,m){var S=!1,D,Z;A.base&&A.base.type==="horizBrace"&&(Z=!!A.sup,Z===A.base.isOver&&(S=!0,D=A.base.isOver)),A.base&&(A.base.type==="op"||A.base.type==="operatorname")&&(A.base.parentIsSupSub=!0);var se=[ro(A.base,m)];A.sub&&se.push(ro(A.sub,m)),A.sup&&se.push(ro(A.sup,m));var Y;if(S)Y=D?"mover":"munder";else if(A.sub)if(A.sup){var Sn=A.base;Sn&&Sn.type==="op"&&Sn.limits&&m.style===yn.DISPLAY||Sn&&Sn.type==="operatorname"&&Sn.alwaysHandleSupSub&&(m.style===yn.DISPLAY||Sn.limits)?Y="munderover":Y="msubsup"}else{var ft=A.base;ft&&ft.type==="op"&&ft.limits&&(m.style===yn.DISPLAY||ft.alwaysHandleSupSub)||ft&&ft.type==="operatorname"&&ft.alwaysHandleSupSub&&(ft.limits||m.style===yn.DISPLAY)?Y="munder":Y="msub"}else{var ct=A.base;ct&&ct.type==="op"&&ct.limits&&(m.style===yn.DISPLAY||ct.alwaysHandleSupSub)||ct&&ct.type==="operatorname"&&ct.alwaysHandleSupSub&&(ct.limits||m.style===yn.DISPLAY)?Y="mover":Y="msup"}return new Vi.MathNode(Y,se)}}),Jo({type:"atom",htmlBuilder(A,m){return wn.mathsym(A.text,A.mode,m,["m"+A.family])},mathmlBuilder(A,m){var S=new Vi.MathNode("mo",[Cs(A.text,A.mode)]);if(A.family==="bin"){var D=Kr(A,m);D==="bold-italic"&&S.setAttribute("mathvariant",D)}else A.family==="punct"?S.setAttribute("separator","true"):(A.family==="open"||A.family==="close")&&S.setAttribute("stretchy","false");return S}});var oo={mi:"italic",mn:"normal",mtext:"normal"};Jo({type:"mathord",htmlBuilder(A,m){return wn.makeOrd(A,m,"mathord")},mathmlBuilder(A,m){var S=new Vi.MathNode("mi",[Cs(A.text,A.mode,m)]),D=Kr(A,m)||"italic";return D!==oo[S.type]&&S.setAttribute("mathvariant",D),S}}),Jo({type:"textord",htmlBuilder(A,m){return wn.makeOrd(A,m,"textord")},mathmlBuilder(A,m){var S=Cs(A.text,A.mode,m),D=Kr(A,m)||"normal",Z;return A.mode==="text"?Z=new Vi.MathNode("mtext",[S]):/[0-9]/.test(A.text)?Z=new Vi.MathNode("mn",[S]):A.text==="\\prime"?Z=new Vi.MathNode("mo",[S]):Z=new Vi.MathNode("mi",[S]),D!==oo[Z.type]&&Z.setAttribute("mathvariant",D),Z}});var to={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},pr={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Jo({type:"spacing",htmlBuilder(A,m){if(pr.hasOwnProperty(A.text)){var S=pr[A.text].className||"";if(A.mode==="text"){var D=wn.makeOrd(A,m,"textord");return D.classes.push(S),D}else return wn.makeSpan(["mspace",S],[wn.mathsym(A.text,A.mode,m)],m)}else{if(to.hasOwnProperty(A.text))return wn.makeSpan(["mspace",to[A.text]],[],m);throw new Ft('Unknown type of space "'+A.text+'"')}},mathmlBuilder(A,m){var S;if(pr.hasOwnProperty(A.text))S=new Vi.MathNode("mtext",[new Vi.TextNode("\xA0")]);else{if(to.hasOwnProperty(A.text))return new Vi.MathNode("mspace");throw new Ft('Unknown type of space "'+A.text+'"')}return S}});var _r=()=>{var A=new Vi.MathNode("mtd",[]);return A.setAttribute("width","50%"),A};Jo({type:"tag",mathmlBuilder(A,m){var S=new Vi.MathNode("mtable",[new Vi.MathNode("mtr",[_r(),new Vi.MathNode("mtd",[aa(A.body,m)]),_r(),new Vi.MathNode("mtd",[aa(A.tag,m)])])]);return S.setAttribute("width","100%"),S}});var Gi={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},ir={"\\textbf":"textbf","\\textmd":"textmd"},vr={"\\textit":"textit","\\textup":"textup"},sr=(A,m)=>{var S=A.font;if(S){if(Gi[S])return m.withTextFontFamily(Gi[S]);if(ir[S])return m.withTextFontWeight(ir[S]);if(S==="\\emph")return m.fontShape==="textit"?m.withTextFontShape("textup"):m.withTextFontShape("textit")}else return m;return m.withTextFontShape(vr[S])};Ui({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(A,m){var{parser:S,funcName:D}=A,Z=m[0];return{type:"text",mode:S.mode,body:Vo(Z),font:D}},htmlBuilder(A,m){var S=sr(A,m),D=Bo(A.body,S,!0);return wn.makeSpan(["mord","text"],D,S)},mathmlBuilder(A,m){var S=sr(A,m);return aa(A.body,S)}}),Ui({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(A,m){var{parser:S}=A;return{type:"underline",mode:S.mode,body:m[0]}},htmlBuilder(A,m){var S=_o(A.body,m),D=wn.makeLineSpan("underline-line",m),Z=m.fontMetrics().defaultRuleThickness,se=wn.makeVList({positionType:"top",positionData:S.height,children:[{type:"kern",size:Z},{type:"elem",elem:D},{type:"kern",size:3*Z},{type:"elem",elem:S}]},m);return wn.makeSpan(["mord","underline"],[se],m)},mathmlBuilder(A,m){var S=new Vi.MathNode("mo",[new Vi.TextNode("\u203E")]);S.setAttribute("stretchy","true");var D=new Vi.MathNode("munder",[ro(A.body,m),S]);return D.setAttribute("accentunder","true"),D}}),Ui({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(A,m){var{parser:S}=A;return{type:"vcenter",mode:S.mode,body:m[0]}},htmlBuilder(A,m){var S=_o(A.body,m),D=m.fontMetrics().axisHeight,Z=.5*(S.height-D-(S.depth+D));return wn.makeVList({positionType:"shift",positionData:Z,children:[{type:"elem",elem:S}]},m)},mathmlBuilder(A,m){return new Vi.MathNode("mpadded",[ro(A.body,m)],["vcenter"])}}),Ui({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(A,m,S){throw new Ft("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(A,m){for(var S=ho(A),D=[],Z=m.havingStyle(m.style.text()),se=0;se<S.length;se++){var Y=S[se];Y==="~"&&(Y="\\textasciitilde"),D.push(wn.makeSymbol(Y,"Typewriter-Regular",A.mode,Z,["mord","texttt"]))}return wn.makeSpan(["mord","text"].concat(Z.sizingClasses(m)),wn.tryCombineChars(D),Z)},mathmlBuilder(A,m){var S=new Vi.TextNode(ho(A)),D=new Vi.MathNode("mtext",[S]);return D.setAttribute("mathvariant","monospace"),D}});var ho=A=>A.body.replace(/ /g,A.star?"\u2423":"\xA0"),$t=Ms,zr=`[ \r
]`,fo="\\\\[a-zA-Z@]+",un="\\\\[^\uD800-\uDFFF]",da="("+fo+")"+zr+"*",Ta=`\\\\(
|[ \r ]+
?)[ \r ]*`,es="[\u0300-\u036F]",Fo=new RegExp(es+"+$"),qo="("+zr+"+)|"+(Ta+"|")+"([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(es+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(es+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+da)+("|"+un+")");class ta{constructor(m,S){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=m,this.settings=S,this.tokenRegex=new RegExp(qo,"g"),this.catcodes={"%":14,"~":13}}setCatcode(m,S){this.catcodes[m]=S}lex(){var m=this.input,S=this.tokenRegex.lastIndex;if(S===m.length)return new sn("EOF",new St(this,S,S));var D=this.tokenRegex.exec(m);if(D===null||D.index!==S)throw new Ft("Unexpected character: '"+m[S]+"'",new sn(m[S],new St(this,S,S+1)));var Z=D[6]||D[3]||(D[2]?"\\ ":" ");if(this.catcodes[Z]===14){var se=m.indexOf(`
`,this.tokenRegex.lastIndex);return se===-1?(this.tokenRegex.lastIndex=m.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=se+1,this.lex()}return new sn(Z,new St(this,S,this.tokenRegex.lastIndex))}}class ya{constructor(m,S){m===void 0&&(m={}),S===void 0&&(S={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=S,this.builtins=m,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Ft("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var m=this.undefStack.pop();for(var S in m)m.hasOwnProperty(S)&&(m[S]==null?delete this.current[S]:this.current[S]=m[S])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(m){return this.current.hasOwnProperty(m)||this.builtins.hasOwnProperty(m)}get(m){return this.current.hasOwnProperty(m)?this.current[m]:this.builtins[m]}set(m,S,D){if(D===void 0&&(D=!1),D){for(var Z=0;Z<this.undefStack.length;Z++)delete this.undefStack[Z][m];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][m]=S)}else{var se=this.undefStack[this.undefStack.length-1];se&&!se.hasOwnProperty(m)&&(se[m]=this.current[m])}S==null?delete this.current[m]:this.current[m]=S}}var zs=Dt;ve("\\noexpand",function(A){var m=A.popToken();return A.isExpandable(m.text)&&(m.noexpand=!0,m.treatAsRelax=!0),{tokens:[m],numArgs:0}}),ve("\\expandafter",function(A){var m=A.popToken();return A.expandOnce(!0),{tokens:[m],numArgs:0}}),ve("\\@firstoftwo",function(A){var m=A.consumeArgs(2);return{tokens:m[0],numArgs:0}}),ve("\\@secondoftwo",function(A){var m=A.consumeArgs(2);return{tokens:m[1],numArgs:0}}),ve("\\@ifnextchar",function(A){var m=A.consumeArgs(3);A.consumeSpaces();var S=A.future();return m[0].length===1&&m[0][0].text===S.text?{tokens:m[1],numArgs:0}:{tokens:m[2],numArgs:0}}),ve("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),ve("\\TextOrMath",function(A){var m=A.consumeArgs(2);return A.mode==="text"?{tokens:m[0],numArgs:0}:{tokens:m[1],numArgs:0}});var ko={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};ve("\\char",function(A){var m=A.popToken(),S,D="";if(m.text==="'")S=8,m=A.popToken();else if(m.text==='"')S=16,m=A.popToken();else if(m.text==="`")if(m=A.popToken(),m.text[0]==="\\")D=m.text.charCodeAt(1);else{if(m.text==="EOF")throw new Ft("\\char` missing argument");D=m.text.charCodeAt(0)}else S=10;if(S){if(D=ko[m.text],D==null||D>=S)throw new Ft("Invalid base-"+S+" digit "+m.text);for(var Z;(Z=ko[A.future().text])!=null&&Z<S;)D*=S,D+=Z,A.popToken()}return"\\@char{"+D+"}"});var Ho=(A,m,S,D)=>{var Z=A.consumeArg().tokens;if(Z.length!==1)throw new Ft("\\newcommand's first argument must be a macro name");var se=Z[0].text,Y=A.isDefined(se);if(Y&&!m)throw new Ft("\\newcommand{"+se+"} attempting to redefine "+(se+"; use \\renewcommand"));if(!Y&&!S)throw new Ft("\\renewcommand{"+se+"} when command "+se+" does not yet exist; use \\newcommand");var ct=0;if(Z=A.consumeArg().tokens,Z.length===1&&Z[0].text==="["){for(var ft="",Sn=A.expandNextToken();Sn.text!=="]"&&Sn.text!=="EOF";)ft+=Sn.text,Sn=A.expandNextToken();if(!ft.match(/^\s*[0-9]+\s*$/))throw new Ft("Invalid number of arguments: "+ft);ct=parseInt(ft),Z=A.consumeArg().tokens}return Y&&D||A.macros.set(se,{tokens:Z,numArgs:ct}),""};ve("\\newcommand",A=>Ho(A,!1,!0,!1)),ve("\\renewcommand",A=>Ho(A,!0,!1,!1)),ve("\\providecommand",A=>Ho(A,!0,!0,!0)),ve("\\message",A=>{var m=A.consumeArgs(1)[0];return console.log(m.reverse().map(S=>S.text).join("")),""}),ve("\\errmessage",A=>{var m=A.consumeArgs(1)[0];return console.error(m.reverse().map(S=>S.text).join("")),""}),ve("\\show",A=>{var m=A.popToken(),S=m.text;return console.log(m,A.macros.get(S),$t[S],zi.math[S],zi.text[S]),""}),ve("\\bgroup","{"),ve("\\egroup","}"),ve("~","\\nobreakspace"),ve("\\lq","`"),ve("\\rq","'"),ve("\\aa","\\r a"),ve("\\AA","\\r A"),ve("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),ve("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),ve("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),ve("\u212C","\\mathscr{B}"),ve("\u2130","\\mathscr{E}"),ve("\u2131","\\mathscr{F}"),ve("\u210B","\\mathscr{H}"),ve("\u2110","\\mathscr{I}"),ve("\u2112","\\mathscr{L}"),ve("\u2133","\\mathscr{M}"),ve("\u211B","\\mathscr{R}"),ve("\u212D","\\mathfrak{C}"),ve("\u210C","\\mathfrak{H}"),ve("\u2128","\\mathfrak{Z}"),ve("\\Bbbk","\\Bbb{k}"),ve("\xB7","\\cdotp"),ve("\\llap","\\mathllap{\\textrm{#1}}"),ve("\\rlap","\\mathrlap{\\textrm{#1}}"),ve("\\clap","\\mathclap{\\textrm{#1}}"),ve("\\mathstrut","\\vphantom{(}"),ve("\\underbar","\\underline{\\text{#1}}"),ve("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),ve("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),ve("\\ne","\\neq"),ve("\u2260","\\neq"),ve("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),ve("\u2209","\\notin"),ve("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),ve("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),ve("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),ve("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),ve("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),ve("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),ve("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),ve("\u27C2","\\perp"),ve("\u203C","\\mathclose{!\\mkern-0.8mu!}"),ve("\u220C","\\notni"),ve("\u231C","\\ulcorner"),ve("\u231D","\\urcorner"),ve("\u231E","\\llcorner"),ve("\u231F","\\lrcorner"),ve("\xA9","\\copyright"),ve("\xAE","\\textregistered"),ve("\uFE0F","\\textregistered"),ve("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),ve("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),ve("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),ve("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),ve("\\vdots","{\\varvdots\\rule{0pt}{15pt}}"),ve("\u22EE","\\vdots"),ve("\\varGamma","\\mathit{\\Gamma}"),ve("\\varDelta","\\mathit{\\Delta}"),ve("\\varTheta","\\mathit{\\Theta}"),ve("\\varLambda","\\mathit{\\Lambda}"),ve("\\varXi","\\mathit{\\Xi}"),ve("\\varPi","\\mathit{\\Pi}"),ve("\\varSigma","\\mathit{\\Sigma}"),ve("\\varUpsilon","\\mathit{\\Upsilon}"),ve("\\varPhi","\\mathit{\\Phi}"),ve("\\varPsi","\\mathit{\\Psi}"),ve("\\varOmega","\\mathit{\\Omega}"),ve("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),ve("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),ve("\\boxed","\\fbox{$\\displaystyle{#1}$}"),ve("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),ve("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),ve("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),ve("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}"),ve("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var Zo={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};ve("\\dots",function(A){var m="\\dotso",S=A.expandAfterFuture().text;return S in Zo?m=Zo[S]:(S.slice(0,4)==="\\not"||S in zi.math&&T.contains(["bin","rel"],zi.math[S].group))&&(m="\\dotsb"),m});var Sa={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};ve("\\dotso",function(A){var m=A.future().text;return m in Sa?"\\ldots\\,":"\\ldots"}),ve("\\dotsc",function(A){var m=A.future().text;return m in Sa&&m!==","?"\\ldots\\,":"\\ldots"}),ve("\\cdots",function(A){var m=A.future().text;return m in Sa?"\\@cdots\\,":"\\@cdots"}),ve("\\dotsb","\\cdots"),ve("\\dotsm","\\cdots"),ve("\\dotsi","\\!\\cdots"),ve("\\dotsx","\\ldots\\,"),ve("\\DOTSI","\\relax"),ve("\\DOTSB","\\relax"),ve("\\DOTSX","\\relax"),ve("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),ve("\\,","\\tmspace+{3mu}{.1667em}"),ve("\\thinspace","\\,"),ve("\\>","\\mskip{4mu}"),ve("\\:","\\tmspace+{4mu}{.2222em}"),ve("\\medspace","\\:"),ve("\\;","\\tmspace+{5mu}{.2777em}"),ve("\\thickspace","\\;"),ve("\\!","\\tmspace-{3mu}{.1667em}"),ve("\\negthinspace","\\!"),ve("\\negmedspace","\\tmspace-{4mu}{.2222em}"),ve("\\negthickspace","\\tmspace-{5mu}{.277em}"),ve("\\enspace","\\kern.5em "),ve("\\enskip","\\hskip.5em\\relax"),ve("\\quad","\\hskip1em\\relax"),ve("\\qquad","\\hskip2em\\relax"),ve("\\tag","\\@ifstar\\tag@literal\\tag@paren"),ve("\\tag@paren","\\tag@literal{({#1})}"),ve("\\tag@literal",A=>{if(A.macros.get("\\df@tag"))throw new Ft("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),ve("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),ve("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),ve("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),ve("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),ve("\\newline","\\\\\\relax"),ve("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Ha=Lt(no["Main-Regular"][84][1]-.7*no["Main-Regular"][65][1]);ve("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Ha+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),ve("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Ha+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),ve("\\hspace","\\@ifstar\\@hspacer\\@hspace"),ve("\\@hspace","\\hskip #1\\relax"),ve("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),ve("\\ordinarycolon",":"),ve("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),ve("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),ve("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),ve("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),ve("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),ve("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),ve("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),ve("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),ve("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),ve("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),ve("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),ve("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),ve("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),ve("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),ve("\u2237","\\dblcolon"),ve("\u2239","\\eqcolon"),ve("\u2254","\\coloneqq"),ve("\u2255","\\eqqcolon"),ve("\u2A74","\\Coloneqq"),ve("\\ratio","\\vcentcolon"),ve("\\coloncolon","\\dblcolon"),ve("\\colonequals","\\coloneqq"),ve("\\coloncolonequals","\\Coloneqq"),ve("\\equalscolon","\\eqqcolon"),ve("\\equalscoloncolon","\\Eqqcolon"),ve("\\colonminus","\\coloneq"),ve("\\coloncolonminus","\\Coloneq"),ve("\\minuscolon","\\eqcolon"),ve("\\minuscoloncolon","\\Eqcolon"),ve("\\coloncolonapprox","\\Colonapprox"),ve("\\coloncolonsim","\\Colonsim"),ve("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),ve("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),ve("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),ve("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),ve("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),ve("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),ve("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),ve("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),ve("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),ve("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),ve("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),ve("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),ve("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),ve("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),ve("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),ve("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),ve("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),ve("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),ve("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),ve("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),ve("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),ve("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),ve("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),ve("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),ve("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),ve("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),ve("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),ve("\\imath","\\html@mathml{\\@imath}{\u0131}"),ve("\\jmath","\\html@mathml{\\@jmath}{\u0237}"),ve("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),ve("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),ve("\u27E6","\\llbracket"),ve("\u27E7","\\rrbracket"),ve("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),ve("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),ve("\u2983","\\lBrace"),ve("\u2984","\\rBrace"),ve("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`\u29B5}}"),ve("\u29B5","\\minuso"),ve("\\darr","\\downarrow"),ve("\\dArr","\\Downarrow"),ve("\\Darr","\\Downarrow"),ve("\\lang","\\langle"),ve("\\rang","\\rangle"),ve("\\uarr","\\uparrow"),ve("\\uArr","\\Uparrow"),ve("\\Uarr","\\Uparrow"),ve("\\N","\\mathbb{N}"),ve("\\R","\\mathbb{R}"),ve("\\Z","\\mathbb{Z}"),ve("\\alef","\\aleph"),ve("\\alefsym","\\aleph"),ve("\\Alpha","\\mathrm{A}"),ve("\\Beta","\\mathrm{B}"),ve("\\bull","\\bullet"),ve("\\Chi","\\mathrm{X}"),ve("\\clubs","\\clubsuit"),ve("\\cnums","\\mathbb{C}"),ve("\\Complex","\\mathbb{C}"),ve("\\Dagger","\\ddagger"),ve("\\diamonds","\\diamondsuit"),ve("\\empty","\\emptyset"),ve("\\Epsilon","\\mathrm{E}"),ve("\\Eta","\\mathrm{H}"),ve("\\exist","\\exists"),ve("\\harr","\\leftrightarrow"),ve("\\hArr","\\Leftrightarrow"),ve("\\Harr","\\Leftrightarrow"),ve("\\hearts","\\heartsuit"),ve("\\image","\\Im"),ve("\\infin","\\infty"),ve("\\Iota","\\mathrm{I}"),ve("\\isin","\\in"),ve("\\Kappa","\\mathrm{K}"),ve("\\larr","\\leftarrow"),ve("\\lArr","\\Leftarrow"),ve("\\Larr","\\Leftarrow"),ve("\\lrarr","\\leftrightarrow"),ve("\\lrArr","\\Leftrightarrow"),ve("\\Lrarr","\\Leftrightarrow"),ve("\\Mu","\\mathrm{M}"),ve("\\natnums","\\mathbb{N}"),ve("\\Nu","\\mathrm{N}"),ve("\\Omicron","\\mathrm{O}"),ve("\\plusmn","\\pm"),ve("\\rarr","\\rightarrow"),ve("\\rArr","\\Rightarrow"),ve("\\Rarr","\\Rightarrow"),ve("\\real","\\Re"),ve("\\reals","\\mathbb{R}"),ve("\\Reals","\\mathbb{R}"),ve("\\Rho","\\mathrm{P}"),ve("\\sdot","\\cdot"),ve("\\sect","\\S"),ve("\\spades","\\spadesuit"),ve("\\sub","\\subset"),ve("\\sube","\\subseteq"),ve("\\supe","\\supseteq"),ve("\\Tau","\\mathrm{T}"),ve("\\thetasym","\\vartheta"),ve("\\weierp","\\wp"),ve("\\Zeta","\\mathrm{Z}"),ve("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),ve("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),ve("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),ve("\\bra","\\mathinner{\\langle{#1}|}"),ve("\\ket","\\mathinner{|{#1}\\rangle}"),ve("\\braket","\\mathinner{\\langle{#1}\\rangle}"),ve("\\Bra","\\left\\langle#1\\right|"),ve("\\Ket","\\left|#1\\right\\rangle");var d=A=>m=>{var S=m.consumeArg().tokens,D=m.consumeArg().tokens,Z=m.consumeArg().tokens,se=m.consumeArg().tokens,Y=m.macros.get("|"),ct=m.macros.get("\\|");m.macros.beginGroup();var ft=Qn=>Ti=>{A&&(Ti.macros.set("|",Y),Z.length&&Ti.macros.set("\\|",ct));var Ni=Qn;if(!Qn&&Z.length){var $i=Ti.future();$i.text==="|"&&(Ti.popToken(),Ni=!0)}return{tokens:Ni?Z:D,numArgs:0}};m.macros.set("|",ft(!1)),Z.length&&m.macros.set("\\|",ft(!0));var Sn=m.consumeArg().tokens,Bn=m.expandTokens([...se,...Sn,...S]);return m.macros.endGroup(),{tokens:Bn.reverse(),numArgs:0}};ve("\\bra@ket",d(!1)),ve("\\bra@set",d(!0)),ve("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),ve("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),ve("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),ve("\\angln","{\\angl n}"),ve("\\blue","\\textcolor{##6495ed}{#1}"),ve("\\orange","\\textcolor{##ffa500}{#1}"),ve("\\pink","\\textcolor{##ff00af}{#1}"),ve("\\red","\\textcolor{##df0030}{#1}"),ve("\\green","\\textcolor{##28ae7b}{#1}"),ve("\\gray","\\textcolor{gray}{#1}"),ve("\\purple","\\textcolor{##9d38bd}{#1}"),ve("\\blueA","\\textcolor{##ccfaff}{#1}"),ve("\\blueB","\\textcolor{##80f6ff}{#1}"),ve("\\blueC","\\textcolor{##63d9ea}{#1}"),ve("\\blueD","\\textcolor{##11accd}{#1}"),ve("\\blueE","\\textcolor{##0c7f99}{#1}"),ve("\\tealA","\\textcolor{##94fff5}{#1}"),ve("\\tealB","\\textcolor{##26edd5}{#1}"),ve("\\tealC","\\textcolor{##01d1c1}{#1}"),ve("\\tealD","\\textcolor{##01a995}{#1}"),ve("\\tealE","\\textcolor{##208170}{#1}"),ve("\\greenA","\\textcolor{##b6ffb0}{#1}"),ve("\\greenB","\\textcolor{##8af281}{#1}"),ve("\\greenC","\\textcolor{##74cf70}{#1}"),ve("\\greenD","\\textcolor{##1fab54}{#1}"),ve("\\greenE","\\textcolor{##0d923f}{#1}"),ve("\\goldA","\\textcolor{##ffd0a9}{#1}"),ve("\\goldB","\\textcolor{##ffbb71}{#1}"),ve("\\goldC","\\textcolor{##ff9c39}{#1}"),ve("\\goldD","\\textcolor{##e07d10}{#1}"),ve("\\goldE","\\textcolor{##a75a05}{#1}"),ve("\\redA","\\textcolor{##fca9a9}{#1}"),ve("\\redB","\\textcolor{##ff8482}{#1}"),ve("\\redC","\\textcolor{##f9685d}{#1}"),ve("\\redD","\\textcolor{##e84d39}{#1}"),ve("\\redE","\\textcolor{##bc2612}{#1}"),ve("\\maroonA","\\textcolor{##ffbde0}{#1}"),ve("\\maroonB","\\textcolor{##ff92c6}{#1}"),ve("\\maroonC","\\textcolor{##ed5fa6}{#1}"),ve("\\maroonD","\\textcolor{##ca337c}{#1}"),ve("\\maroonE","\\textcolor{##9e034e}{#1}"),ve("\\purpleA","\\textcolor{##ddd7ff}{#1}"),ve("\\purpleB","\\textcolor{##c6b9fc}{#1}"),ve("\\purpleC","\\textcolor{##aa87ff}{#1}"),ve("\\purpleD","\\textcolor{##7854ab}{#1}"),ve("\\purpleE","\\textcolor{##543b78}{#1}"),ve("\\mintA","\\textcolor{##f5f9e8}{#1}"),ve("\\mintB","\\textcolor{##edf2df}{#1}"),ve("\\mintC","\\textcolor{##e0e5cc}{#1}"),ve("\\grayA","\\textcolor{##f6f7f7}{#1}"),ve("\\grayB","\\textcolor{##f0f1f2}{#1}"),ve("\\grayC","\\textcolor{##e3e5e6}{#1}"),ve("\\grayD","\\textcolor{##d6d8da}{#1}"),ve("\\grayE","\\textcolor{##babec2}{#1}"),ve("\\grayF","\\textcolor{##888d93}{#1}"),ve("\\grayG","\\textcolor{##626569}{#1}"),ve("\\grayH","\\textcolor{##3b3e40}{#1}"),ve("\\grayI","\\textcolor{##21242c}{#1}"),ve("\\kaBlue","\\textcolor{##314453}{#1}"),ve("\\kaGreen","\\textcolor{##71B307}{#1}");var g={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class K{constructor(m,S,D){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=S,this.expansionCount=0,this.feed(m),this.macros=new ya(zs,S.macros),this.mode=D,this.stack=[]}feed(m){this.lexer=new ta(m,this.settings)}switchMode(m){this.mode=m}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(m){this.stack.push(m)}pushTokens(m){this.stack.push(...m)}scanArgument(m){var S,D,Z;if(m){if(this.consumeSpaces(),this.future().text!=="[")return null;S=this.popToken(),{tokens:Z,end:D}=this.consumeArg(["]"])}else({tokens:Z,start:S,end:D}=this.consumeArg());return this.pushToken(new sn("EOF",D.loc)),this.pushTokens(Z),S.range(D,"")}consumeSpaces(){for(;;){var m=this.future();if(m.text===" ")this.stack.pop();else break}}consumeArg(m){var S=[],D=m&&m.length>0;D||this.consumeSpaces();var Z=this.future(),se,Y=0,ct=0;do{if(se=this.popToken(),S.push(se),se.text==="{")++Y;else if(se.text==="}"){if(--Y,Y===-1)throw new Ft("Extra }",se)}else if(se.text==="EOF")throw new Ft("Unexpected end of input in a macro argument, expected '"+(m&&D?m[ct]:"}")+"'",se);if(m&&D)if((Y===0||Y===1&&m[ct]==="{")&&se.text===m[ct]){if(++ct,ct===m.length){S.splice(-ct,ct);break}}else ct=0}while(Y!==0||D);return Z.text==="{"&&S[S.length-1].text==="}"&&(S.pop(),S.shift()),S.reverse(),{tokens:S,start:Z,end:se}}consumeArgs(m,S){if(S){if(S.length!==m+1)throw new Ft("The length of delimiters doesn't match the number of args!");for(var D=S[0],Z=0;Z<D.length;Z++){var se=this.popToken();if(D[Z]!==se.text)throw new Ft("Use of the macro doesn't match its definition",se)}}for(var Y=[],ct=0;ct<m;ct++)Y.push(this.consumeArg(S&&S[ct+1]).tokens);return Y}countExpansion(m){if(this.expansionCount+=m,this.expansionCount>this.settings.maxExpand)throw new Ft("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(m){var S=this.popToken(),D=S.text,Z=S.noexpand?null:this._getExpansion(D);if(Z==null||m&&Z.unexpandable){if(m&&Z==null&&D[0]==="\\"&&!this.isDefined(D))throw new Ft("Undefined control sequence: "+D);return this.pushToken(S),!1}this.countExpansion(1);var se=Z.tokens,Y=this.consumeArgs(Z.numArgs,Z.delimiters);if(Z.numArgs){se=se.slice();for(var ct=se.length-1;ct>=0;--ct){var ft=se[ct];if(ft.text==="#"){if(ct===0)throw new Ft("Incomplete placeholder at end of macro body",ft);if(ft=se[--ct],ft.text==="#")se.splice(ct+1,1);else if(/^[1-9]$/.test(ft.text))se.splice(ct,2,...Y[+ft.text-1]);else throw new Ft("Not a valid argument number",ft)}}}return this.pushTokens(se),se.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var m=this.stack.pop();return m.treatAsRelax&&(m.text="\\relax"),m}throw new Error}expandMacro(m){return this.macros.has(m)?this.expandTokens([new sn(m)]):void 0}expandTokens(m){var S=[],D=this.stack.length;for(this.pushTokens(m);this.stack.length>D;)if(this.expandOnce(!0)===!1){var Z=this.stack.pop();Z.treatAsRelax&&(Z.noexpand=!1,Z.treatAsRelax=!1),S.push(Z)}return this.countExpansion(S.length),S}expandMacroAsText(m){var S=this.expandMacro(m);return S&&S.map(D=>D.text).join("")}_getExpansion(m){var S=this.macros.get(m);if(S==null)return S;if(m.length===1){var D=this.lexer.catcodes[m];if(D!=null&&D!==13)return}var Z=typeof S=="function"?S(this):S;if(typeof Z=="string"){var se=0;if(Z.indexOf("#")!==-1)for(var Y=Z.replace(/##/g,"");Y.indexOf("#"+(se+1))!==-1;)++se;for(var ct=new ta(Z,this.settings),ft=[],Sn=ct.lex();Sn.text!=="EOF";)ft.push(Sn),Sn=ct.lex();ft.reverse();var Bn={tokens:ft,numArgs:se};return Bn}return Z}isDefined(m){return this.macros.has(m)||$t.hasOwnProperty(m)||zi.math.hasOwnProperty(m)||zi.text.hasOwnProperty(m)||g.hasOwnProperty(m)}isExpandable(m){var S=this.macros.get(m);return S!=null?typeof S=="string"||typeof S=="function"||!S.unexpandable:$t.hasOwnProperty(m)&&!$t[m].primitive}}var nt=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,gn=Object.freeze({"\u208A":"+","\u208B":"-","\u208C":"=","\u208D":"(","\u208E":")","\u2080":"0","\u2081":"1","\u2082":"2","\u2083":"3","\u2084":"4","\u2085":"5","\u2086":"6","\u2087":"7","\u2088":"8","\u2089":"9","\u2090":"a","\u2091":"e","\u2095":"h","\u1D62":"i","\u2C7C":"j","\u2096":"k","\u2097":"l","\u2098":"m","\u2099":"n","\u2092":"o","\u209A":"p","\u1D63":"r","\u209B":"s","\u209C":"t","\u1D64":"u","\u1D65":"v","\u2093":"x","\u1D66":"\u03B2","\u1D67":"\u03B3","\u1D68":"\u03C1","\u1D69":"\u03D5","\u1D6A":"\u03C7","\u207A":"+","\u207B":"-","\u207C":"=","\u207D":"(","\u207E":")","\u2070":"0","\xB9":"1","\xB2":"2","\xB3":"3","\u2074":"4","\u2075":"5","\u2076":"6","\u2077":"7","\u2078":"8","\u2079":"9","\u1D2C":"A","\u1D2E":"B","\u1D30":"D","\u1D31":"E","\u1D33":"G","\u1D34":"H","\u1D35":"I","\u1D36":"J","\u1D37":"K","\u1D38":"L","\u1D39":"M","\u1D3A":"N","\u1D3C":"O","\u1D3E":"P","\u1D3F":"R","\u1D40":"T","\u1D41":"U","\u2C7D":"V","\u1D42":"W","\u1D43":"a","\u1D47":"b","\u1D9C":"c","\u1D48":"d","\u1D49":"e","\u1DA0":"f","\u1D4D":"g",\u02B0:"h","\u2071":"i",\u02B2:"j","\u1D4F":"k",\u02E1:"l","\u1D50":"m",\u207F:"n","\u1D52":"o","\u1D56":"p",\u02B3:"r",\u02E2:"s","\u1D57":"t","\u1D58":"u","\u1D5B":"v",\u02B7:"w",\u02E3:"x",\u02B8:"y","\u1DBB":"z","\u1D5D":"\u03B2","\u1D5E":"\u03B3","\u1D5F":"\u03B4","\u1D60":"\u03D5","\u1D61":"\u03C7","\u1DBF":"\u03B8"}),Yn={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030C":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030A":{text:"\\r",math:"\\mathring"},"\u030B":{text:"\\H"},"\u0327":{text:"\\c"}},wi={\u00E1:"a\u0301",\u00E0:"a\u0300",\u00E4:"a\u0308",\u01DF:"a\u0308\u0304",\u00E3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1EAF:"a\u0306\u0301",\u1EB1:"a\u0306\u0300",\u1EB5:"a\u0306\u0303",\u01CE:"a\u030C",\u00E2:"a\u0302",\u1EA5:"a\u0302\u0301",\u1EA7:"a\u0302\u0300",\u1EAB:"a\u0302\u0303",\u0227:"a\u0307",\u01E1:"a\u0307\u0304",\u00E5:"a\u030A",\u01FB:"a\u030A\u0301",\u1E03:"b\u0307",\u0107:"c\u0301",\u1E09:"c\u0327\u0301",\u010D:"c\u030C",\u0109:"c\u0302",\u010B:"c\u0307",\u00E7:"c\u0327",\u010F:"d\u030C",\u1E0B:"d\u0307",\u1E11:"d\u0327",\u00E9:"e\u0301",\u00E8:"e\u0300",\u00EB:"e\u0308",\u1EBD:"e\u0303",\u0113:"e\u0304",\u1E17:"e\u0304\u0301",\u1E15:"e\u0304\u0300",\u0115:"e\u0306",\u1E1D:"e\u0327\u0306",\u011B:"e\u030C",\u00EA:"e\u0302",\u1EBF:"e\u0302\u0301",\u1EC1:"e\u0302\u0300",\u1EC5:"e\u0302\u0303",\u0117:"e\u0307",\u0229:"e\u0327",\u1E1F:"f\u0307",\u01F5:"g\u0301",\u1E21:"g\u0304",\u011F:"g\u0306",\u01E7:"g\u030C",\u011D:"g\u0302",\u0121:"g\u0307",\u0123:"g\u0327",\u1E27:"h\u0308",\u021F:"h\u030C",\u0125:"h\u0302",\u1E23:"h\u0307",\u1E29:"h\u0327",\u00ED:"i\u0301",\u00EC:"i\u0300",\u00EF:"i\u0308",\u1E2F:"i\u0308\u0301",\u0129:"i\u0303",\u012B:"i\u0304",\u012D:"i\u0306",\u01D0:"i\u030C",\u00EE:"i\u0302",\u01F0:"j\u030C",\u0135:"j\u0302",\u1E31:"k\u0301",\u01E9:"k\u030C",\u0137:"k\u0327",\u013A:"l\u0301",\u013E:"l\u030C",\u013C:"l\u0327",\u1E3F:"m\u0301",\u1E41:"m\u0307",\u0144:"n\u0301",\u01F9:"n\u0300",\u00F1:"n\u0303",\u0148:"n\u030C",\u1E45:"n\u0307",\u0146:"n\u0327",\u00F3:"o\u0301",\u00F2:"o\u0300",\u00F6:"o\u0308",\u022B:"o\u0308\u0304",\u00F5:"o\u0303",\u1E4D:"o\u0303\u0301",\u1E4F:"o\u0303\u0308",\u022D:"o\u0303\u0304",\u014D:"o\u0304",\u1E53:"o\u0304\u0301",\u1E51:"o\u0304\u0300",\u014F:"o\u0306",\u01D2:"o\u030C",\u00F4:"o\u0302",\u1ED1:"o\u0302\u0301",\u1ED3:"o\u0302\u0300",\u1ED7:"o\u0302\u0303",\u022F:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030B",\u1E55:"p\u0301",\u1E57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030C",\u1E59:"r\u0307",\u0157:"r\u0327",\u015B:"s\u0301",\u1E65:"s\u0301\u0307",\u0161:"s\u030C",\u1E67:"s\u030C\u0307",\u015D:"s\u0302",\u1E61:"s\u0307",\u015F:"s\u0327",\u1E97:"t\u0308",\u0165:"t\u030C",\u1E6B:"t\u0307",\u0163:"t\u0327",\u00FA:"u\u0301",\u00F9:"u\u0300",\u00FC:"u\u0308",\u01D8:"u\u0308\u0301",\u01DC:"u\u0308\u0300",\u01D6:"u\u0308\u0304",\u01DA:"u\u0308\u030C",\u0169:"u\u0303",\u1E79:"u\u0303\u0301",\u016B:"u\u0304",\u1E7B:"u\u0304\u0308",\u016D:"u\u0306",\u01D4:"u\u030C",\u00FB:"u\u0302",\u016F:"u\u030A",\u0171:"u\u030B",\u1E7D:"v\u0303",\u1E83:"w\u0301",\u1E81:"w\u0300",\u1E85:"w\u0308",\u0175:"w\u0302",\u1E87:"w\u0307",\u1E98:"w\u030A",\u1E8D:"x\u0308",\u1E8B:"x\u0307",\u00FD:"y\u0301",\u1EF3:"y\u0300",\u00FF:"y\u0308",\u1EF9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1E8F:"y\u0307",\u1E99:"y\u030A",\u017A:"z\u0301",\u017E:"z\u030C",\u1E91:"z\u0302",\u017C:"z\u0307",\u00C1:"A\u0301",\u00C0:"A\u0300",\u00C4:"A\u0308",\u01DE:"A\u0308\u0304",\u00C3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1EAE:"A\u0306\u0301",\u1EB0:"A\u0306\u0300",\u1EB4:"A\u0306\u0303",\u01CD:"A\u030C",\u00C2:"A\u0302",\u1EA4:"A\u0302\u0301",\u1EA6:"A\u0302\u0300",\u1EAA:"A\u0302\u0303",\u0226:"A\u0307",\u01E0:"A\u0307\u0304",\u00C5:"A\u030A",\u01FA:"A\u030A\u0301",\u1E02:"B\u0307",\u0106:"C\u0301",\u1E08:"C\u0327\u0301",\u010C:"C\u030C",\u0108:"C\u0302",\u010A:"C\u0307",\u00C7:"C\u0327",\u010E:"D\u030C",\u1E0A:"D\u0307",\u1E10:"D\u0327",\u00C9:"E\u0301",\u00C8:"E\u0300",\u00CB:"E\u0308",\u1EBC:"E\u0303",\u0112:"E\u0304",\u1E16:"E\u0304\u0301",\u1E14:"E\u0304\u0300",\u0114:"E\u0306",\u1E1C:"E\u0327\u0306",\u011A:"E\u030C",\u00CA:"E\u0302",\u1EBE:"E\u0302\u0301",\u1EC0:"E\u0302\u0300",\u1EC4:"E\u0302\u0303",\u0116:"E\u0307",\u0228:"E\u0327",\u1E1E:"F\u0307",\u01F4:"G\u0301",\u1E20:"G\u0304",\u011E:"G\u0306",\u01E6:"G\u030C",\u011C:"G\u0302",\u0120:"G\u0307",\u0122:"G\u0327",\u1E26:"H\u0308",\u021E:"H\u030C",\u0124:"H\u0302",\u1E22:"H\u0307",\u1E28:"H\u0327",\u00CD:"I\u0301",\u00CC:"I\u0300",\u00CF:"I\u0308",\u1E2E:"I\u0308\u0301",\u0128:"I\u0303",\u012A:"I\u0304",\u012C:"I\u0306",\u01CF:"I\u030C",\u00CE:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1E30:"K\u0301",\u01E8:"K\u030C",\u0136:"K\u0327",\u0139:"L\u0301",\u013D:"L\u030C",\u013B:"L\u0327",\u1E3E:"M\u0301",\u1E40:"M\u0307",\u0143:"N\u0301",\u01F8:"N\u0300",\u00D1:"N\u0303",\u0147:"N\u030C",\u1E44:"N\u0307",\u0145:"N\u0327",\u00D3:"O\u0301",\u00D2:"O\u0300",\u00D6:"O\u0308",\u022A:"O\u0308\u0304",\u00D5:"O\u0303",\u1E4C:"O\u0303\u0301",\u1E4E:"O\u0303\u0308",\u022C:"O\u0303\u0304",\u014C:"O\u0304",\u1E52:"O\u0304\u0301",\u1E50:"O\u0304\u0300",\u014E:"O\u0306",\u01D1:"O\u030C",\u00D4:"O\u0302",\u1ED0:"O\u0302\u0301",\u1ED2:"O\u0302\u0300",\u1ED6:"O\u0302\u0303",\u022E:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030B",\u1E54:"P\u0301",\u1E56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030C",\u1E58:"R\u0307",\u0156:"R\u0327",\u015A:"S\u0301",\u1E64:"S\u0301\u0307",\u0160:"S\u030C",\u1E66:"S\u030C\u0307",\u015C:"S\u0302",\u1E60:"S\u0307",\u015E:"S\u0327",\u0164:"T\u030C",\u1E6A:"T\u0307",\u0162:"T\u0327",\u00DA:"U\u0301",\u00D9:"U\u0300",\u00DC:"U\u0308",\u01D7:"U\u0308\u0301",\u01DB:"U\u0308\u0300",\u01D5:"U\u0308\u0304",\u01D9:"U\u0308\u030C",\u0168:"U\u0303",\u1E78:"U\u0303\u0301",\u016A:"U\u0304",\u1E7A:"U\u0304\u0308",\u016C:"U\u0306",\u01D3:"U\u030C",\u00DB:"U\u0302",\u016E:"U\u030A",\u0170:"U\u030B",\u1E7C:"V\u0303",\u1E82:"W\u0301",\u1E80:"W\u0300",\u1E84:"W\u0308",\u0174:"W\u0302",\u1E86:"W\u0307",\u1E8C:"X\u0308",\u1E8A:"X\u0307",\u00DD:"Y\u0301",\u1EF2:"Y\u0300",\u0178:"Y\u0308",\u1EF8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u0302",\u1E8E:"Y\u0307",\u0179:"Z\u0301",\u017D:"Z\u030C",\u1E90:"Z\u0302",\u017B:"Z\u0307",\u03AC:"\u03B1\u0301",\u1F70:"\u03B1\u0300",\u1FB1:"\u03B1\u0304",\u1FB0:"\u03B1\u0306",\u03AD:"\u03B5\u0301",\u1F72:"\u03B5\u0300",\u03AE:"\u03B7\u0301",\u1F74:"\u03B7\u0300",\u03AF:"\u03B9\u0301",\u1F76:"\u03B9\u0300",\u03CA:"\u03B9\u0308",\u0390:"\u03B9\u0308\u0301",\u1FD2:"\u03B9\u0308\u0300",\u1FD1:"\u03B9\u0304",\u1FD0:"\u03B9\u0306",\u03CC:"\u03BF\u0301",\u1F78:"\u03BF\u0300",\u03CD:"\u03C5\u0301",\u1F7A:"\u03C5\u0300",\u03CB:"\u03C5\u0308",\u03B0:"\u03C5\u0308\u0301",\u1FE2:"\u03C5\u0308\u0300",\u1FE1:"\u03C5\u0304",\u1FE0:"\u03C5\u0306",\u03CE:"\u03C9\u0301",\u1F7C:"\u03C9\u0300",\u038E:"\u03A5\u0301",\u1FEA:"\u03A5\u0300",\u03AB:"\u03A5\u0308",\u1FE9:"\u03A5\u0304",\u1FE8:"\u03A5\u0306",\u038F:"\u03A9\u0301",\u1FFA:"\u03A9\u0300"};class Cr{constructor(m,S){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new K(m,S,this.mode),this.settings=S,this.leftrightDepth=0}expect(m,S){if(S===void 0&&(S=!0),this.fetch().text!==m)throw new Ft("Expected '"+m+"', got '"+this.fetch().text+"'",this.fetch());S&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(m){this.mode=m,this.gullet.switchMode(m)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var m=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),m}finally{this.gullet.endGroups()}}subparse(m){var S=this.nextToken;this.consume(),this.gullet.pushToken(new sn("}")),this.gullet.pushTokens(m);var D=this.parseExpression(!1);return this.expect("}"),this.nextToken=S,D}parseExpression(m,S){for(var D=[];;){this.mode==="math"&&this.consumeSpaces();var Z=this.fetch();if(Cr.endOfExpression.indexOf(Z.text)!==-1||S&&Z.text===S||m&&$t[Z.text]&&$t[Z.text].infix)break;var se=this.parseAtom(S);if(se){if(se.type==="internal")continue}else break;D.push(se)}return this.mode==="text"&&this.formLigatures(D),this.handleInfixNodes(D)}handleInfixNodes(m){for(var S=-1,D,Z=0;Z<m.length;Z++)if(m[Z].type==="infix"){if(S!==-1)throw new Ft("only one infix operator per group",m[Z].token);S=Z,D=m[Z].replaceWith}if(S!==-1&&D){var se,Y,ct=m.slice(0,S),ft=m.slice(S+1);ct.length===1&&ct[0].type==="ordgroup"?se=ct[0]:se={type:"ordgroup",mode:this.mode,body:ct},ft.length===1&&ft[0].type==="ordgroup"?Y=ft[0]:Y={type:"ordgroup",mode:this.mode,body:ft};var Sn;return D==="\\\\abovefrac"?Sn=this.callFunction(D,[se,m[S],Y],[]):Sn=this.callFunction(D,[se,Y],[]),[Sn]}else return m}handleSupSubscript(m){var S=this.fetch(),D=S.text;this.consume(),this.consumeSpaces();var Z=this.parseGroup(m);if(!Z)throw new Ft("Expected group after '"+D+"'",S);return Z}formatUnsupportedCmd(m){for(var S=[],D=0;D<m.length;D++)S.push({type:"textord",mode:"text",text:m[D]});var Z={type:"text",mode:this.mode,body:S},se={type:"color",mode:this.mode,color:this.settings.errorColor,body:[Z]};return se}parseAtom(m){var S=this.parseGroup("atom",m);if(this.mode==="text")return S;for(var D,Z;;){this.consumeSpaces();var se=this.fetch();if(se.text==="\\limits"||se.text==="\\nolimits"){if(S&&S.type==="op"){var Y=se.text==="\\limits";S.limits=Y,S.alwaysHandleSupSub=!0}else if(S&&S.type==="operatorname")S.alwaysHandleSupSub&&(S.limits=se.text==="\\limits");else throw new Ft("Limit controls must follow a math operator",se);this.consume()}else if(se.text==="^"){if(D)throw new Ft("Double superscript",se);D=this.handleSupSubscript("superscript")}else if(se.text==="_"){if(Z)throw new Ft("Double subscript",se);Z=this.handleSupSubscript("subscript")}else if(se.text==="'"){if(D)throw new Ft("Double superscript",se);var ct={type:"textord",mode:this.mode,text:"\\prime"},ft=[ct];for(this.consume();this.fetch().text==="'";)ft.push(ct),this.consume();this.fetch().text==="^"&&ft.push(this.handleSupSubscript("superscript")),D={type:"ordgroup",mode:this.mode,body:ft}}else if(gn[se.text]){var Sn=nt.test(se.text),Bn=[];for(Bn.push(new sn(gn[se.text])),this.consume();;){var Qn=this.fetch().text;if(!gn[Qn]||nt.test(Qn)!==Sn)break;Bn.unshift(new sn(gn[Qn])),this.consume()}var Ti=this.subparse(Bn);Sn?Z={type:"ordgroup",mode:"math",body:Ti}:D={type:"ordgroup",mode:"math",body:Ti}}else break}return D||Z?{type:"supsub",mode:this.mode,base:S,sup:D,sub:Z}:S}parseFunction(m,S){var D=this.fetch(),Z=D.text,se=$t[Z];if(!se)return null;if(this.consume(),S&&S!=="atom"&&!se.allowedInArgument)throw new Ft("Got function '"+Z+"' with no arguments"+(S?" as "+S:""),D);if(this.mode==="text"&&!se.allowedInText)throw new Ft("Can't use function '"+Z+"' in text mode",D);if(this.mode==="math"&&se.allowedInMath===!1)throw new Ft("Can't use function '"+Z+"' in math mode",D);var{args:Y,optArgs:ct}=this.parseArguments(Z,se);return this.callFunction(Z,Y,ct,D,m)}callFunction(m,S,D,Z,se){var Y={funcName:m,parser:this,token:Z,breakOnTokenText:se},ct=$t[m];if(ct&&ct.handler)return ct.handler(Y,S,D);throw new Ft("No function handler for "+m)}parseArguments(m,S){var D=S.numArgs+S.numOptionalArgs;if(D===0)return{args:[],optArgs:[]};for(var Z=[],se=[],Y=0;Y<D;Y++){var ct=S.argTypes&&S.argTypes[Y],ft=Y<S.numOptionalArgs;(S.primitive&&ct==null||S.type==="sqrt"&&Y===1&&se[0]==null)&&(ct="primitive");var Sn=this.parseGroupOfType("argument to '"+m+"'",ct,ft);if(ft)se.push(Sn);else if(Sn!=null)Z.push(Sn);else throw new Ft("Null argument, please report this as a bug")}return{args:Z,optArgs:se}}parseGroupOfType(m,S,D){switch(S){case"color":return this.parseColorGroup(D);case"size":return this.parseSizeGroup(D);case"url":return this.parseUrlGroup(D);case"math":case"text":return this.parseArgumentGroup(D,S);case"hbox":{var Z=this.parseArgumentGroup(D,"text");return Z!=null?{type:"styling",mode:Z.mode,body:[Z],style:"text"}:null}case"raw":{var se=this.parseStringGroup("raw",D);return se!=null?{type:"raw",mode:"text",string:se.text}:null}case"primitive":{if(D)throw new Ft("A primitive argument cannot be optional");var Y=this.parseGroup(m);if(Y==null)throw new Ft("Expected group as "+m,this.fetch());return Y}case"original":case null:case void 0:return this.parseArgumentGroup(D);default:throw new Ft("Unknown group type as "+m,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(m,S){var D=this.gullet.scanArgument(S);if(D==null)return null;for(var Z="",se;(se=this.fetch()).text!=="EOF";)Z+=se.text,this.consume();return this.consume(),D.text=Z,D}parseRegexGroup(m,S){for(var D=this.fetch(),Z=D,se="",Y;(Y=this.fetch()).text!=="EOF"&&m.test(se+Y.text);)Z=Y,se+=Z.text,this.consume();if(se==="")throw new Ft("Invalid "+S+": '"+D.text+"'",D);return D.range(Z,se)}parseColorGroup(m){var S=this.parseStringGroup("color",m);if(S==null)return null;var D=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(S.text);if(!D)throw new Ft("Invalid color: '"+S.text+"'",S);var Z=D[0];return/^[0-9a-f]{6}$/i.test(Z)&&(Z="#"+Z),{type:"color-token",mode:this.mode,color:Z}}parseSizeGroup(m){var S,D=!1;if(this.gullet.consumeSpaces(),!m&&this.gullet.future().text!=="{"?S=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):S=this.parseStringGroup("size",m),!S)return null;!m&&S.text.length===0&&(S.text="0pt",D=!0);var Z=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(S.text);if(!Z)throw new Ft("Invalid size: '"+S.text+"'",S);var se={number:+(Z[1]+Z[2]),unit:Z[3]};if(!Ve(se))throw new Ft("Invalid unit: '"+se.unit+"'",S);return{type:"size",mode:this.mode,value:se,isBlank:D}}parseUrlGroup(m){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var S=this.parseStringGroup("url",m);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),S==null)return null;var D=S.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:D}}parseArgumentGroup(m,S){var D=this.gullet.scanArgument(m);if(D==null)return null;var Z=this.mode;S&&this.switchMode(S),this.gullet.beginGroup();var se=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var Y={type:"ordgroup",mode:this.mode,loc:D.loc,body:se};return S&&this.switchMode(Z),Y}parseGroup(m,S){var D=this.fetch(),Z=D.text,se;if(Z==="{"||Z==="\\begingroup"){this.consume();var Y=Z==="{"?"}":"\\endgroup";this.gullet.beginGroup();var ct=this.parseExpression(!1,Y),ft=this.fetch();this.expect(Y),this.gullet.endGroup(),se={type:"ordgroup",mode:this.mode,loc:St.range(D,ft),body:ct,semisimple:Z==="\\begingroup"||void 0}}else if(se=this.parseFunction(S,m)||this.parseSymbol(),se==null&&Z[0]==="\\"&&!g.hasOwnProperty(Z)){if(this.settings.throwOnError)throw new Ft("Undefined control sequence: "+Z,D);se=this.formatUnsupportedCmd(Z),this.consume()}return se}formLigatures(m){for(var S=m.length-1,D=0;D<S;++D){var Z=m[D],se=Z.text;se==="-"&&m[D+1].text==="-"&&(D+1<S&&m[D+2].text==="-"?(m.splice(D,3,{type:"textord",mode:"text",loc:St.range(Z,m[D+2]),text:"---"}),S-=2):(m.splice(D,2,{type:"textord",mode:"text",loc:St.range(Z,m[D+1]),text:"--"}),S-=1)),(se==="'"||se==="`")&&m[D+1].text===se&&(m.splice(D,2,{type:"textord",mode:"text",loc:St.range(Z,m[D+1]),text:se+se}),S-=1)}}parseSymbol(){var m=this.fetch(),S=m.text;if(/^\\verb[^a-zA-Z]/.test(S)){this.consume();var D=S.slice(5),Z=D.charAt(0)==="*";if(Z&&(D=D.slice(1)),D.length<2||D.charAt(0)!==D.slice(-1))throw new Ft(`\\verb assertion failed --
please report what input caused this bug`);return D=D.slice(1,-1),{type:"verb",mode:"text",body:D,star:Z}}wi.hasOwnProperty(S[0])&&!zi[this.mode][S[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+S[0]+'" used in math mode',m),S=wi[S[0]]+S.slice(1));var se=Fo.exec(S);se&&(S=S.substring(0,se.index),S==="i"?S="\u0131":S==="j"&&(S="\u0237"));var Y;if(zi[this.mode][S]){this.settings.strict&&this.mode==="math"&&Lr.indexOf(S)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+S[0]+'" used in math mode',m);var ct=zi[this.mode][S].group,ft=St.range(m),Sn;if(Yi.hasOwnProperty(ct)){var Bn=ct;Sn={type:"atom",mode:this.mode,family:Bn,loc:ft,text:S}}else Sn={type:ct,mode:this.mode,loc:ft,text:S};Y=Sn}else if(S.charCodeAt(0)>=128)this.settings.strict&&(Ii(S.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+S[0]+'" used in math mode',m):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+S[0]+'"'+(" ("+S.charCodeAt(0)+")"),m)),Y={type:"textord",mode:"text",loc:St.range(m),text:S};else return null;if(this.consume(),se)for(var Qn=0;Qn<se[0].length;Qn++){var Ti=se[0][Qn];if(!Yn[Ti])throw new Ft("Unknown accent ' "+Ti+"'",m);var Ni=Yn[Ti][this.mode]||Yn[Ti].text;if(!Ni)throw new Ft("Accent "+Ti+" unsupported in "+this.mode+" mode",m);Y={type:"accent",mode:this.mode,loc:St.range(m),label:Ni,isStretchy:!1,isShifty:!0,base:Y}}return Y}}Cr.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var Hr=function(m,S){if(!(typeof m=="string"||m instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var D=new Cr(m,S);delete D.gullet.macros.current["\\df@tag"];var Z=D.parse();if(delete D.gullet.macros.current["\\current@color"],delete D.gullet.macros.current["\\color"],D.gullet.macros.get("\\df@tag")){if(!S.displayMode)throw new Ft("\\tag works only in display equations");Z=[{type:"tag",mode:"text",body:Z,tag:D.subparse([new sn("\\df@tag")])}]}return Z},Gn=function(m,S,D){S.textContent="";var Z=$o(m,D).toNode();S.appendChild(Z)};typeof document!="undefined"&&document.compatMode!=="CSS1Compat"&&(typeof console!="undefined"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),Gn=function(){throw new Ft("KaTeX doesn't work in quirks mode.")});var Hi=function(m,S){var D=$o(m,S).toMarkup();return D},Or=function(m,S){var D=new $e(S);return Hr(m,D)},Vr=function(m,S,D){if(D.throwOnError||!(m instanceof Ft))throw m;var Z=wn.makeSpan(["katex-error"],[new xn(S)]);return Z.setAttribute("title",m.toString()),Z.setAttribute("style","color:"+D.errorColor),Z},$o=function(m,S){var D=new $e(S);try{var Z=Hr(m,D);return Oa(Z,m,D)}catch(se){return Vr(se,m,D)}},Rs=function(m,S){var D=new $e(S);try{var Z=Hr(m,D);return Gl(Z,m,D)}catch(se){return Vr(se,m,D)}},Ds="0.16.21",Ps={Span:L,Anchor:Rt,SymbolNode:xn,SvgNode:An,PathNode:li,LineNode:Nn},ol={version:Ds,render:Gn,renderToString:Hi,ParseError:Ft,SETTINGS_SCHEMA:_e,__parse:Or,__renderToDomTree:$o,__renderToHTMLTree:Rs,__setFontMetrics:yi,__defineSymbol:q,__defineFunction:Ui,__defineMacro:ve,__domTree:Ps},Ts=h(2348);const po={},ra=[];function Na(A){const m=A||po;return function(S,D){(0,Ts.S4)(S,"element",function(Z,se){const Y=Array.isArray(Z.properties.className)?Z.properties.className:ra,ct=Y.includes("language-math"),ft=Y.includes("math-display"),Sn=Y.includes("math-inline");let Bn=ft;if(!ct&&!ft&&!Sn)return;let Qn=se[se.length-1],Ti=Z;if(Z.tagName==="code"&&ct&&Qn&&Qn.type==="element"&&Qn.tagName==="pre"&&(Ti=Qn,Qn=se[se.length-2],Bn=!0),!Qn)return;const Ni=Pt(Ti,{whitespace:"pre"});let $i;try{$i=ol.renderToString(Ni,cd(Po({},m),{displayMode:Bn,throwOnError:!0}))}catch($r){const jr=$r,To=jr.name.toLowerCase();D.message("Could not render math with KaTeX",{ancestors:[...se,Z],cause:jr,place:Z.position,ruleId:To,source:"rehype-katex"});try{$i=ol.renderToString(Ni,cd(Po({},m),{displayMode:Bn,strict:"ignore",throwOnError:!1}))}catch(jo){$i=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(m.errorColor||"#cc0000"),title:String($r)},children:[{type:"text",value:Ni}]}]}}typeof $i=="string"&&($i=Xe($i,{fragment:!0}).children);const Nr=Qn.children.indexOf(Ti);return Qn.children.splice(Nr,1,...$i),Ts.AM})}}},93772:function(X,C,h){"use strict";h.d(C,{Z:function(){return Ha}});var v={};h.r(v),h.d(v,{boolean:function(){return Le},booleanish:function(){return Je},commaOrSpaceSeparated:function(){return Pt},commaSeparated:function(){return Ge},number:function(){return ne},overloadedBoolean:function(){return Ye},spaceSeparated:function(){return at}});var I=h(90302),O=h(87342),B=h(81994),G=h(58222),F=h(84837);function M(d){const g=String(d),K=[];return{toOffset:gn,toPoint:nt};function nt(Yn){if(typeof Yn=="number"&&Yn>-1&&Yn<=g.length){let wi=0;for(;;){let Cr=K[wi];if(Cr===void 0){const Hr=de(g,K[wi-1]);Cr=Hr===-1?g.length+1:Hr+1,K[wi]=Cr}if(Cr>Yn)return{line:wi+1,column:Yn-(wi>0?K[wi-1]:0)+1,offset:Yn};wi++}}}function gn(Yn){if(Yn&&typeof Yn.line=="number"&&typeof Yn.column=="number"&&!Number.isNaN(Yn.line)&&!Number.isNaN(Yn.column)){for(;K.length<Yn.line;){const Cr=K[K.length-1],Hr=de(g,Cr),Gn=Hr===-1?g.length+1:Hr+1;if(Cr===Gn)break;K.push(Gn)}const wi=(Yn.line>1?K[Yn.line-2]:0)+Yn.column-1;if(wi<K[Yn.line-1])return wi}}}function de(d,g){const K=d.indexOf("\r",g),nt=d.indexOf(`
`,g);return nt===-1?K:K===-1||K+1===nt?nt:K<nt?K:nt}var ae=h(43309);const te={}.hasOwnProperty,Ne=Object.prototype;function Ee(d,g){const K=g||{};return Xe({file:K.file||void 0,location:!1,schema:K.space==="svg"?G.YP:G.dy,verbose:K.verbose||!1},d)}function Xe(d,g){let K;switch(g.nodeName){case"#comment":{const nt=g;return K={type:"comment",value:nt.data},Ie(d,nt,K),K}case"#document":case"#document-fragment":{const nt=g,gn="mode"in nt?nt.mode==="quirks"||nt.mode==="limited-quirks":!1;if(K={type:"root",children:Oe(d,g.childNodes),data:{quirksMode:gn}},d.file&&d.location){const Yn=String(d.file),wi=M(Yn),Cr=wi.toPoint(0),Hr=wi.toPoint(Yn.length);(0,O.ok)(Cr,"expected `start`"),(0,O.ok)(Hr,"expected `end`"),K.position={start:Cr,end:Hr}}return K}case"#documentType":{const nt=g;return K={type:"doctype"},Ie(d,nt,K),K}case"#text":{const nt=g;return K={type:"text",value:nt.value},Ie(d,nt,K),K}default:return K=Ce(d,g),K}}function Oe(d,g){let K=-1;const nt=[];for(;++K<g.length;){const gn=Xe(d,g[K]);nt.push(gn)}return nt}function Ce(d,g){const K=d.schema;d.schema=g.namespaceURI===ae.t.svg?G.YP:G.dy;let nt=-1;const gn={};for(;++nt<g.attrs.length;){const Cr=g.attrs[nt],Hr=(Cr.prefix?Cr.prefix+":":"")+Cr.name;te.call(Ne,Hr)||(gn[Hr]=Cr.value)}const wi=(d.schema.space==="svg"?B.s:B.h)(g.tagName,gn,Oe(d,g.childNodes));if(Ie(d,g,wi),wi.tagName==="template"){const Cr=g,Hr=Cr.sourceCodeLocation,Gn=Hr&&Hr.startTag&&fe(Hr.startTag),Hi=Hr&&Hr.endTag&&fe(Hr.endTag),Or=Xe(d,Cr.content);Gn&&Hi&&d.file&&(Or.position={start:Gn.end,end:Hi.start}),wi.content=Or}return d.schema=K,wi}function Ie(d,g,K){if("sourceCodeLocation"in g&&g.sourceCodeLocation&&d.file){const nt=Re(d,K,g.sourceCodeLocation);nt&&(d.location=!0,K.position=nt)}}function Re(d,g,K){const nt=fe(K);if(g.type==="element"){const gn=g.children[g.children.length-1];if(nt&&!K.endTag&&gn&&gn.position&&gn.position.end&&(nt.end=Object.assign({},gn.position.end)),d.verbose){const Yn={};let wi;if(K.attrs)for(wi in K.attrs)te.call(K.attrs,wi)&&(Yn[(0,F.s)(d.schema,wi).property]=fe(K.attrs[wi]));(0,O.ok)(K.startTag,"a start tag should exist");const Cr=fe(K.startTag),Hr=K.endTag?fe(K.endTag):void 0,Gn={opening:Cr};Hr&&(Gn.closing=Hr),Gn.properties=Yn,g.data={position:Gn}}}return nt}function fe(d){const g=me({line:d.startLine,column:d.startCol,offset:d.startOffset}),K=me({line:d.endLine,column:d.endCol,offset:d.endOffset});return g||K?{start:g,end:K}:void 0}function me(d){return d.line&&d.column?d:void 0}var ye=h(11630);class pe{constructor(g,K,nt){this.property=g,this.normal=K,nt&&(this.space=nt)}}pe.prototype.property={},pe.prototype.normal={},pe.prototype.space=null;function ke(d,g){const K={},nt={};let gn=-1;for(;++gn<d.length;)Object.assign(K,d[gn].property),Object.assign(nt,d[gn].normal);return new pe(K,nt,g)}function ee(d){return d.toLowerCase()}class Te{constructor(g,K){this.property=g,this.attribute=K}}Te.prototype.space=null,Te.prototype.boolean=!1,Te.prototype.booleanish=!1,Te.prototype.overloadedBoolean=!1,Te.prototype.number=!1,Te.prototype.commaSeparated=!1,Te.prototype.spaceSeparated=!1,Te.prototype.commaOrSpaceSeparated=!1,Te.prototype.mustUseProperty=!1,Te.prototype.defined=!1;let Me=0;const Le=gt(),Je=gt(),Ye=gt(),ne=gt(),at=gt(),Ge=gt(),Pt=gt();function gt(){return ny(2,++Me)}const kt=Object.keys(v);class Ct extends Te{constructor(g,K,nt,gn){let Yn=-1;if(super(g,K),Cn(this,"space",gn),typeof nt=="number")for(;++Yn<kt.length;){const wi=kt[Yn];Cn(this,kt[Yn],(nt&v[wi])===v[wi])}}}Ct.prototype.defined=!0;function Cn(d,g,K){K&&(d[g]=K)}const Qe={}.hasOwnProperty;function le(d){const g={},K={};let nt;for(nt in d.properties)if(Qe.call(d.properties,nt)){const gn=d.properties[nt],Yn=new Ct(nt,d.transform(d.attributes||{},nt),gn,d.space);d.mustUseProperty&&d.mustUseProperty.includes(nt)&&(Yn.mustUseProperty=!0),g[nt]=Yn,K[ee(nt)]=nt,K[ee(Yn.attribute)]=nt}return new pe(g,K,d.space)}const ce=le({space:"xlink",transform(d,g){return"xlink:"+g.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Ht=le({space:"xml",transform(d,g){return"xml:"+g.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Vt(d,g){return g in d?d[g]:g}function St(d,g){return Vt(d,g.toLowerCase())}const sn=le({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:St,properties:{xmlns:null,xmlnsXLink:null}}),Ft=le({transform(d,g){return g==="role"?g:"aria-"+g.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Je,ariaAutoComplete:null,ariaBusy:Je,ariaChecked:Je,ariaColCount:ne,ariaColIndex:ne,ariaColSpan:ne,ariaControls:at,ariaCurrent:null,ariaDescribedBy:at,ariaDetails:null,ariaDisabled:Je,ariaDropEffect:at,ariaErrorMessage:null,ariaExpanded:Je,ariaFlowTo:at,ariaGrabbed:Je,ariaHasPopup:null,ariaHidden:Je,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:at,ariaLevel:ne,ariaLive:null,ariaModal:Je,ariaMultiLine:Je,ariaMultiSelectable:Je,ariaOrientation:null,ariaOwns:at,ariaPlaceholder:null,ariaPosInSet:ne,ariaPressed:Je,ariaReadOnly:Je,ariaRelevant:null,ariaRequired:Je,ariaRoleDescription:at,ariaRowCount:ne,ariaRowIndex:ne,ariaRowSpan:ne,ariaSelected:Je,ariaSetSize:ne,ariaSort:null,ariaValueMax:ne,ariaValueMin:ne,ariaValueNow:ne,ariaValueText:null,role:null}}),oi=le({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:St,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ge,acceptCharset:at,accessKey:at,action:null,allow:null,allowFullScreen:Le,allowPaymentRequest:Le,allowUserMedia:Le,alt:null,as:null,async:Le,autoCapitalize:null,autoComplete:at,autoFocus:Le,autoPlay:Le,blocking:at,capture:null,charSet:null,checked:Le,cite:null,className:at,cols:ne,colSpan:null,content:null,contentEditable:Je,controls:Le,controlsList:at,coords:ne|Ge,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Le,defer:Le,dir:null,dirName:null,disabled:Le,download:Ye,draggable:Je,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Le,formTarget:null,headers:at,height:ne,hidden:Le,high:ne,href:null,hrefLang:null,htmlFor:at,httpEquiv:at,id:null,imageSizes:null,imageSrcSet:null,inert:Le,inputMode:null,integrity:null,is:null,isMap:Le,itemId:null,itemProp:at,itemRef:at,itemScope:Le,itemType:at,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Le,low:ne,manifest:null,max:null,maxLength:ne,media:null,method:null,min:null,minLength:ne,multiple:Le,muted:Le,name:null,nonce:null,noModule:Le,noValidate:Le,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Le,optimum:ne,pattern:null,ping:at,placeholder:null,playsInline:Le,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Le,referrerPolicy:null,rel:at,required:Le,reversed:Le,rows:ne,rowSpan:ne,sandbox:at,scope:null,scoped:Le,seamless:Le,selected:Le,shadowRootClonable:Le,shadowRootDelegatesFocus:Le,shadowRootMode:null,shape:null,size:ne,sizes:null,slot:null,span:ne,spellCheck:Je,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ne,step:null,style:null,tabIndex:ne,target:null,title:null,translate:null,type:null,typeMustMatch:Le,useMap:null,value:Je,width:ne,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:at,axis:null,background:null,bgColor:null,border:ne,borderColor:null,bottomMargin:ne,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Le,declare:Le,event:null,face:null,frame:null,frameBorder:null,hSpace:ne,leftMargin:ne,link:null,longDesc:null,lowSrc:null,marginHeight:ne,marginWidth:ne,noResize:Le,noHref:Le,noShade:Le,noWrap:Le,object:null,profile:null,prompt:null,rev:null,rightMargin:ne,rules:null,scheme:null,scrolling:Je,standby:null,summary:null,text:null,topMargin:ne,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ne,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Le,disableRemotePlayback:Le,prefix:null,property:null,results:ne,security:null,unselectable:null}}),On=le({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Vt,properties:{about:Pt,accentHeight:ne,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ne,amplitude:ne,arabicForm:null,ascent:ne,attributeName:null,attributeType:null,azimuth:ne,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ne,by:null,calcMode:null,capHeight:ne,className:at,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ne,diffuseConstant:ne,direction:null,display:null,dur:null,divisor:ne,dominantBaseline:null,download:Le,dx:null,dy:null,edgeMode:null,editable:null,elevation:ne,enableBackground:null,end:null,event:null,exponent:ne,externalResourcesRequired:null,fill:null,fillOpacity:ne,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ge,g2:Ge,glyphName:Ge,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ne,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ne,horizOriginX:ne,horizOriginY:ne,id:null,ideographic:ne,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ne,k:ne,k1:ne,k2:ne,k3:ne,k4:ne,kernelMatrix:Pt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ne,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ne,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ne,overlineThickness:ne,paintOrder:null,panose1:null,path:null,pathLength:ne,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:at,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ne,pointsAtY:ne,pointsAtZ:ne,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Pt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Pt,rev:Pt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Pt,requiredFeatures:Pt,requiredFonts:Pt,requiredFormats:Pt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ne,specularExponent:ne,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ne,strikethroughThickness:ne,string:null,stroke:null,strokeDashArray:Pt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ne,strokeOpacity:ne,strokeWidth:null,style:null,surfaceScale:ne,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Pt,tabIndex:ne,tableValues:null,target:null,targetX:ne,targetY:ne,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Pt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ne,underlineThickness:ne,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ne,values:null,vAlphabetic:ne,vMathematical:ne,vectorEffect:null,vHanging:ne,vIdeographic:ne,version:null,vertAdvY:ne,vertOriginX:ne,vertOriginY:ne,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ne,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),ni=ke([Ht,ce,sn,Ft,oi],"html"),Jn=ke([Ht,ce,sn,Ft,On],"svg"),Mn=/^data[-\w.:]+$/i,In=/-[a-z]/g,re=/[A-Z]/g;function z(d,g){const K=ee(g);let nt=g,gn=Te;if(K in d.normal)return d.property[d.normal[K]];if(K.length>4&&K.slice(0,4)==="data"&&Mn.test(g)){if(g.charAt(4)==="-"){const Yn=g.slice(5).replace(In,j);nt="data"+Yn.charAt(0).toUpperCase()+Yn.slice(1)}else{const Yn=g.slice(4);if(!In.test(Yn)){let wi=Yn.replace(re,k);wi.charAt(0)!=="-"&&(wi="-"+wi),g="data"+wi}}gn=Ct}return new gn(nt,g)}function k(d){return"-"+d.toLowerCase()}function j(d){return d.charAt(1).toUpperCase()}var Q=h(71523);const T={}.hasOwnProperty;function _e(d,g){const K=g||{};function nt(gn,...Yn){let wi=nt.invalid;const Cr=nt.handlers;if(gn&&T.call(gn,d)){const Hr=String(gn[d]);wi=T.call(Cr,Hr)?Cr[Hr]:nt.unknown}if(wi)return wi.call(this,gn,...Yn)}return nt.handlers=K.handlers||{},nt.invalid=K.invalid,nt.unknown=K.unknown,nt}const It={},$e={}.hasOwnProperty,Pe=_e("type",{handlers:{root:ut,element:Kt,text:pn,comment:nn,doctype:Et}});function vt(d,g){const nt=(g||It).space;return Pe(d,nt==="svg"?Jn:ni)}function ut(d,g){const K={nodeName:"#document",mode:(d.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return K.childNodes=an(d.children,K,g),et(d,K),K}function tt(d,g){const K={nodeName:"#document-fragment",childNodes:[]};return K.childNodes=an(d.children,K,g),et(d,K),K}function Et(d){const g={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return et(d,g),g}function pn(d){const g={nodeName:"#text",value:d.value,parentNode:null};return et(d,g),g}function nn(d){const g={nodeName:"#comment",data:d.value,parentNode:null};return et(d,g),g}function Kt(d,g){const K=g;let nt=K;d.type==="element"&&d.tagName.toLowerCase()==="svg"&&K.space==="html"&&(nt=Jn);const gn=[];let Yn;if(d.properties){for(Yn in d.properties)if(Yn!=="children"&&$e.call(d.properties,Yn)){const Hr=hn(nt,Yn,d.properties[Yn]);Hr&&gn.push(Hr)}}const wi=nt.space;(0,O.ok)(wi);const Cr={nodeName:d.tagName,tagName:d.tagName,attrs:gn,namespaceURI:ae.t[wi],childNodes:[],parentNode:null};return Cr.childNodes=an(d.children,Cr,nt),et(d,Cr),d.tagName==="template"&&d.content&&(Cr.content=tt(d.content,nt)),Cr}function hn(d,g,K){const nt=z(d,g);if(K===!1||K===null||K===void 0||typeof K=="number"&&Number.isNaN(K)||!K&&nt.boolean)return;Array.isArray(K)&&(K=nt.commaSeparated?(0,ye.P)(K):(0,Q.P)(K));const gn={name:nt.attribute,value:K===!0?"":String(K)};if(nt.space&&nt.space!=="html"&&nt.space!=="svg"){const Yn=gn.name.indexOf(":");Yn<0?gn.prefix="":(gn.name=gn.name.slice(Yn+1),gn.prefix=nt.attribute.slice(0,Yn)),gn.namespace=ae.t[nt.space]}return gn}function an(d,g,K){let nt=-1;const gn=[];if(d)for(;++nt<d.length;){const Yn=Pe(d[nt],K);Yn.parentNode=g,gn.push(Yn)}return gn}function et(d,g){const K=d.position;K&&K.start&&K.end&&((0,O.ok)(typeof K.start.offset=="number"),(0,O.ok)(typeof K.end.offset=="number"),g.sourceCodeLocation={startLine:K.start.line,startCol:K.start.column,startOffset:K.start.offset,endLine:K.end.line,endCol:K.end.column,endOffset:K.end.offset})}const zt=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],dn=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),rn="\uFFFD";var ze;(function(d){d[d.EOF=-1]="EOF",d[d.NULL=0]="NULL",d[d.TABULATION=9]="TABULATION",d[d.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",d[d.LINE_FEED=10]="LINE_FEED",d[d.FORM_FEED=12]="FORM_FEED",d[d.SPACE=32]="SPACE",d[d.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",d[d.QUOTATION_MARK=34]="QUOTATION_MARK",d[d.AMPERSAND=38]="AMPERSAND",d[d.APOSTROPHE=39]="APOSTROPHE",d[d.HYPHEN_MINUS=45]="HYPHEN_MINUS",d[d.SOLIDUS=47]="SOLIDUS",d[d.DIGIT_0=48]="DIGIT_0",d[d.DIGIT_9=57]="DIGIT_9",d[d.SEMICOLON=59]="SEMICOLON",d[d.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",d[d.EQUALS_SIGN=61]="EQUALS_SIGN",d[d.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",d[d.QUESTION_MARK=63]="QUESTION_MARK",d[d.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",d[d.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",d[d.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",d[d.GRAVE_ACCENT=96]="GRAVE_ACCENT",d[d.LATIN_SMALL_A=97]="LATIN_SMALL_A",d[d.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(ze||(ze={}));const Un={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function yn(d){return d>=55296&&d<=57343}function Bt(d){return d>=56320&&d<=57343}function Si(d,g){return(d-55296)*1024+9216+g}function _i(d){return d!==32&&d!==10&&d!==13&&d!==9&&d!==12&&d>=1&&d<=31||d>=127&&d<=159}function Ii(d){return d>=64976&&d<=65007||dn.has(d)}var cn;(function(d){d.controlCharacterInInputStream="control-character-in-input-stream",d.noncharacterInInputStream="noncharacter-in-input-stream",d.surrogateInInputStream="surrogate-in-input-stream",d.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",d.endTagWithAttributes="end-tag-with-attributes",d.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",d.unexpectedSolidusInTag="unexpected-solidus-in-tag",d.unexpectedNullCharacter="unexpected-null-character",d.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",d.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",d.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",d.missingEndTagName="missing-end-tag-name",d.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",d.unknownNamedCharacterReference="unknown-named-character-reference",d.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",d.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",d.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",d.eofBeforeTagName="eof-before-tag-name",d.eofInTag="eof-in-tag",d.missingAttributeValue="missing-attribute-value",d.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",d.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",d.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",d.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",d.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",d.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",d.missingDoctypePublicIdentifier="missing-doctype-public-identifier",d.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",d.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",d.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",d.cdataInHtmlContent="cdata-in-html-content",d.incorrectlyOpenedComment="incorrectly-opened-comment",d.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",d.eofInDoctype="eof-in-doctype",d.nestedComment="nested-comment",d.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",d.eofInComment="eof-in-comment",d.incorrectlyClosedComment="incorrectly-closed-comment",d.eofInCdata="eof-in-cdata",d.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",d.nullCharacterReference="null-character-reference",d.surrogateCharacterReference="surrogate-character-reference",d.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",d.controlCharacterReference="control-character-reference",d.noncharacterCharacterReference="noncharacter-character-reference",d.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",d.missingDoctypeName="missing-doctype-name",d.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",d.duplicateAttribute="duplicate-attribute",d.nonConformingDoctype="non-conforming-doctype",d.missingDoctype="missing-doctype",d.misplacedDoctype="misplaced-doctype",d.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",d.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",d.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",d.openElementsLeftAfterEof="open-elements-left-after-eof",d.abandonedHeadElementChild="abandoned-head-element-child",d.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",d.nestedNoscriptInHead="nested-noscript-in-head",d.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(cn||(cn={}));const fr=65536;class Xi{constructor(g){this.handler=g,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=fr,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(g,K){const{line:nt,col:gn,offset:Yn}=this,wi=gn+K,Cr=Yn+K;return{code:g,startLine:nt,endLine:nt,startCol:wi,endCol:wi,startOffset:Cr,endOffset:Cr}}_err(g){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(g,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(g){if(this.pos!==this.html.length-1){const K=this.html.charCodeAt(this.pos+1);if(Bt(K))return this.pos++,this._addGap(),Si(g,K)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,ze.EOF;return this._err(cn.surrogateInInputStream),g}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(g,K){this.html.length>0?this.html+=g:this.html=g,this.endOfChunkHit=!1,this.lastChunkWritten=K}insertHtmlAtCurrentPos(g){this.html=this.html.substring(0,this.pos+1)+g+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(g,K){if(this.pos+g.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(K)return this.html.startsWith(g,this.pos);for(let nt=0;nt<g.length;nt++)if((this.html.charCodeAt(this.pos+nt)|32)!==g.charCodeAt(nt))return!1;return!0}peek(g){const K=this.pos+g;if(K>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,ze.EOF;const nt=this.html.charCodeAt(K);return nt===ze.CARRIAGE_RETURN?ze.LINE_FEED:nt}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,ze.EOF;let g=this.html.charCodeAt(this.pos);return g===ze.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,ze.LINE_FEED):g===ze.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,yn(g)&&(g=this._processSurrogate(g)),this.handler.onParseError===null||g>31&&g<127||g===ze.LINE_FEED||g===ze.CARRIAGE_RETURN||g>159&&g<64976||this._checkForProblematicCharacters(g),g)}_checkForProblematicCharacters(g){_i(g)?this._err(cn.controlCharacterInInputStream):Ii(g)&&this._err(cn.noncharacterInInputStream)}retreat(g){for(this.pos-=g;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var ei;(function(d){d[d.CHARACTER=0]="CHARACTER",d[d.NULL_CHARACTER=1]="NULL_CHARACTER",d[d.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",d[d.START_TAG=3]="START_TAG",d[d.END_TAG=4]="END_TAG",d[d.COMMENT=5]="COMMENT",d[d.DOCTYPE=6]="DOCTYPE",d[d.EOF=7]="EOF",d[d.HIBERNATION=8]="HIBERNATION"})(ei||(ei={}));function Tr(d,g){for(let K=d.attrs.length-1;K>=0;K--)if(d.attrs[K].name===g)return d.attrs[K].value;return null}var ur=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(d=>d.charCodeAt(0))),U=new Uint16Array("\u0200aglq \x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(d=>d.charCodeAt(0))),mr;const Er=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),wr=(mr=String.fromCodePoint)!==null&&mr!==void 0?mr:function(d){let g="";return d>65535&&(d-=65536,g+=String.fromCharCode(d>>>10&1023|55296),d=56320|d&1023),g+=String.fromCharCode(d),g};function qr(d){var g;return d>=55296&&d<=57343||d>1114111?65533:(g=Er.get(d))!==null&&g!==void 0?g:d}function xo(d){return wr(qr(d))}var kr;(function(d){d[d.NUM=35]="NUM",d[d.SEMI=59]="SEMI",d[d.EQUALS=61]="EQUALS",d[d.ZERO=48]="ZERO",d[d.NINE=57]="NINE",d[d.LOWER_A=97]="LOWER_A",d[d.LOWER_F=102]="LOWER_F",d[d.LOWER_X=120]="LOWER_X",d[d.LOWER_Z=122]="LOWER_Z",d[d.UPPER_A=65]="UPPER_A",d[d.UPPER_F=70]="UPPER_F",d[d.UPPER_Z=90]="UPPER_Z"})(kr||(kr={}));const no=32;var rr;(function(d){d[d.VALUE_LENGTH=49152]="VALUE_LENGTH",d[d.BRANCH_LENGTH=16256]="BRANCH_LENGTH",d[d.JUMP_TABLE=127]="JUMP_TABLE"})(rr||(rr={}));function Bi(d){return d>=kr.ZERO&&d<=kr.NINE}function yi(d){return d>=kr.UPPER_A&&d<=kr.UPPER_F||d>=kr.LOWER_A&&d<=kr.LOWER_F}function ht(d){return d>=kr.UPPER_A&&d<=kr.UPPER_Z||d>=kr.LOWER_A&&d<=kr.LOWER_Z||Bi(d)}function _n(d){return d===kr.EQUALS||ht(d)}var Vn;(function(d){d[d.EntityStart=0]="EntityStart",d[d.NumericStart=1]="NumericStart",d[d.NumericDecimal=2]="NumericDecimal",d[d.NumericHex=3]="NumericHex",d[d.NamedEntity=4]="NamedEntity"})(Vn||(Vn={}));var pt;(function(d){d[d.Legacy=0]="Legacy",d[d.Strict=1]="Strict",d[d.Attribute=2]="Attribute"})(pt||(pt={}));class Ke{constructor(g,K,nt){this.decodeTree=g,this.emitCodePoint=K,this.errors=nt,this.state=Vn.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=pt.Strict}startEntity(g){this.decodeMode=g,this.state=Vn.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(g,K){switch(this.state){case Vn.EntityStart:return g.charCodeAt(K)===kr.NUM?(this.state=Vn.NumericStart,this.consumed+=1,this.stateNumericStart(g,K+1)):(this.state=Vn.NamedEntity,this.stateNamedEntity(g,K));case Vn.NumericStart:return this.stateNumericStart(g,K);case Vn.NumericDecimal:return this.stateNumericDecimal(g,K);case Vn.NumericHex:return this.stateNumericHex(g,K);case Vn.NamedEntity:return this.stateNamedEntity(g,K)}}stateNumericStart(g,K){return K>=g.length?-1:(g.charCodeAt(K)|no)===kr.LOWER_X?(this.state=Vn.NumericHex,this.consumed+=1,this.stateNumericHex(g,K+1)):(this.state=Vn.NumericDecimal,this.stateNumericDecimal(g,K))}addToNumericResult(g,K,nt,gn){if(K!==nt){const Yn=nt-K;this.result=this.result*Math.pow(gn,Yn)+parseInt(g.substr(K,Yn),gn),this.consumed+=Yn}}stateNumericHex(g,K){const nt=K;for(;K<g.length;){const gn=g.charCodeAt(K);if(Bi(gn)||yi(gn))K+=1;else return this.addToNumericResult(g,nt,K,16),this.emitNumericEntity(gn,3)}return this.addToNumericResult(g,nt,K,16),-1}stateNumericDecimal(g,K){const nt=K;for(;K<g.length;){const gn=g.charCodeAt(K);if(Bi(gn))K+=1;else return this.addToNumericResult(g,nt,K,10),this.emitNumericEntity(gn,2)}return this.addToNumericResult(g,nt,K,10),-1}emitNumericEntity(g,K){var nt;if(this.consumed<=K)return(nt=this.errors)===null||nt===void 0||nt.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(g===kr.SEMI)this.consumed+=1;else if(this.decodeMode===pt.Strict)return 0;return this.emitCodePoint(qr(this.result),this.consumed),this.errors&&(g!==kr.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(g,K){const{decodeTree:nt}=this;let gn=nt[this.treeIndex],Yn=(gn&rr.VALUE_LENGTH)>>14;for(;K<g.length;K++,this.excess++){const wi=g.charCodeAt(K);if(this.treeIndex=Fn(nt,gn,this.treeIndex+Math.max(1,Yn),wi),this.treeIndex<0)return this.result===0||this.decodeMode===pt.Attribute&&(Yn===0||_n(wi))?0:this.emitNotTerminatedNamedEntity();if(gn=nt[this.treeIndex],Yn=(gn&rr.VALUE_LENGTH)>>14,Yn!==0){if(wi===kr.SEMI)return this.emitNamedEntityData(this.treeIndex,Yn,this.consumed+this.excess);this.decodeMode!==pt.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var g;const{result:K,decodeTree:nt}=this,gn=(nt[K]&rr.VALUE_LENGTH)>>14;return this.emitNamedEntityData(K,gn,this.consumed),(g=this.errors)===null||g===void 0||g.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(g,K,nt){const{decodeTree:gn}=this;return this.emitCodePoint(K===1?gn[g]&~rr.VALUE_LENGTH:gn[g+1],nt),K===3&&this.emitCodePoint(gn[g+2],nt),nt}end(){var g;switch(this.state){case Vn.NamedEntity:return this.result!==0&&(this.decodeMode!==pt.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Vn.NumericDecimal:return this.emitNumericEntity(0,2);case Vn.NumericHex:return this.emitNumericEntity(0,3);case Vn.NumericStart:return(g=this.errors)===null||g===void 0||g.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Vn.EntityStart:return 0}}}function vn(d){let g="";const K=new Ke(d,nt=>g+=wr(nt));return function(gn,Yn){let wi=0,Cr=0;for(;(Cr=gn.indexOf("&",Cr))>=0;){g+=gn.slice(wi,Cr),K.startEntity(Yn);const Gn=K.write(gn,Cr+1);if(Gn<0){wi=Cr+K.end();break}wi=Cr+Gn,Cr=Gn===0?wi+1:wi}const Hr=g+gn.slice(wi);return g="",Hr}}function Fn(d,g,K,nt){const gn=(g&rr.BRANCH_LENGTH)>>7,Yn=g&rr.JUMP_TABLE;if(gn===0)return Yn!==0&&nt===Yn?K:-1;if(Yn){const Hr=nt-Yn;return Hr<0||Hr>=gn?-1:d[K+Hr]-1}let wi=K,Cr=wi+gn-1;for(;wi<=Cr;){const Hr=wi+Cr>>>1,Gn=d[Hr];if(Gn<nt)wi=Hr+1;else if(Gn>nt)Cr=Hr-1;else return d[Hr+gn]}return-1}const on=vn(ur),Nt=vn(U);function Ve(d,g=pt.Legacy){return on(d,g)}function Ut(d){return on(d,pt.Attribute)}function Lt(d){return on(d,pt.Strict)}function Wn(d){return Nt(d,pt.Strict)}var ot;(function(d){d.HTML="http://www.w3.org/1999/xhtml",d.MATHML="http://www.w3.org/1998/Math/MathML",d.SVG="http://www.w3.org/2000/svg",d.XLINK="http://www.w3.org/1999/xlink",d.XML="http://www.w3.org/XML/1998/namespace",d.XMLNS="http://www.w3.org/2000/xmlns/"})(ot||(ot={}));var fn;(function(d){d.TYPE="type",d.ACTION="action",d.ENCODING="encoding",d.PROMPT="prompt",d.NAME="name",d.COLOR="color",d.FACE="face",d.SIZE="size"})(fn||(fn={}));var yt;(function(d){d.NO_QUIRKS="no-quirks",d.QUIRKS="quirks",d.LIMITED_QUIRKS="limited-quirks"})(yt||(yt={}));var je;(function(d){d.A="a",d.ADDRESS="address",d.ANNOTATION_XML="annotation-xml",d.APPLET="applet",d.AREA="area",d.ARTICLE="article",d.ASIDE="aside",d.B="b",d.BASE="base",d.BASEFONT="basefont",d.BGSOUND="bgsound",d.BIG="big",d.BLOCKQUOTE="blockquote",d.BODY="body",d.BR="br",d.BUTTON="button",d.CAPTION="caption",d.CENTER="center",d.CODE="code",d.COL="col",d.COLGROUP="colgroup",d.DD="dd",d.DESC="desc",d.DETAILS="details",d.DIALOG="dialog",d.DIR="dir",d.DIV="div",d.DL="dl",d.DT="dt",d.EM="em",d.EMBED="embed",d.FIELDSET="fieldset",d.FIGCAPTION="figcaption",d.FIGURE="figure",d.FONT="font",d.FOOTER="footer",d.FOREIGN_OBJECT="foreignObject",d.FORM="form",d.FRAME="frame",d.FRAMESET="frameset",d.H1="h1",d.H2="h2",d.H3="h3",d.H4="h4",d.H5="h5",d.H6="h6",d.HEAD="head",d.HEADER="header",d.HGROUP="hgroup",d.HR="hr",d.HTML="html",d.I="i",d.IMG="img",d.IMAGE="image",d.INPUT="input",d.IFRAME="iframe",d.KEYGEN="keygen",d.LABEL="label",d.LI="li",d.LINK="link",d.LISTING="listing",d.MAIN="main",d.MALIGNMARK="malignmark",d.MARQUEE="marquee",d.MATH="math",d.MENU="menu",d.META="meta",d.MGLYPH="mglyph",d.MI="mi",d.MO="mo",d.MN="mn",d.MS="ms",d.MTEXT="mtext",d.NAV="nav",d.NOBR="nobr",d.NOFRAMES="noframes",d.NOEMBED="noembed",d.NOSCRIPT="noscript",d.OBJECT="object",d.OL="ol",d.OPTGROUP="optgroup",d.OPTION="option",d.P="p",d.PARAM="param",d.PLAINTEXT="plaintext",d.PRE="pre",d.RB="rb",d.RP="rp",d.RT="rt",d.RTC="rtc",d.RUBY="ruby",d.S="s",d.SCRIPT="script",d.SEARCH="search",d.SECTION="section",d.SELECT="select",d.SOURCE="source",d.SMALL="small",d.SPAN="span",d.STRIKE="strike",d.STRONG="strong",d.STYLE="style",d.SUB="sub",d.SUMMARY="summary",d.SUP="sup",d.TABLE="table",d.TBODY="tbody",d.TEMPLATE="template",d.TEXTAREA="textarea",d.TFOOT="tfoot",d.TD="td",d.TH="th",d.THEAD="thead",d.TITLE="title",d.TR="tr",d.TRACK="track",d.TT="tt",d.U="u",d.UL="ul",d.SVG="svg",d.VAR="var",d.WBR="wbr",d.XMP="xmp"})(je||(je={}));var L;(function(d){d[d.UNKNOWN=0]="UNKNOWN",d[d.A=1]="A",d[d.ADDRESS=2]="ADDRESS",d[d.ANNOTATION_XML=3]="ANNOTATION_XML",d[d.APPLET=4]="APPLET",d[d.AREA=5]="AREA",d[d.ARTICLE=6]="ARTICLE",d[d.ASIDE=7]="ASIDE",d[d.B=8]="B",d[d.BASE=9]="BASE",d[d.BASEFONT=10]="BASEFONT",d[d.BGSOUND=11]="BGSOUND",d[d.BIG=12]="BIG",d[d.BLOCKQUOTE=13]="BLOCKQUOTE",d[d.BODY=14]="BODY",d[d.BR=15]="BR",d[d.BUTTON=16]="BUTTON",d[d.CAPTION=17]="CAPTION",d[d.CENTER=18]="CENTER",d[d.CODE=19]="CODE",d[d.COL=20]="COL",d[d.COLGROUP=21]="COLGROUP",d[d.DD=22]="DD",d[d.DESC=23]="DESC",d[d.DETAILS=24]="DETAILS",d[d.DIALOG=25]="DIALOG",d[d.DIR=26]="DIR",d[d.DIV=27]="DIV",d[d.DL=28]="DL",d[d.DT=29]="DT",d[d.EM=30]="EM",d[d.EMBED=31]="EMBED",d[d.FIELDSET=32]="FIELDSET",d[d.FIGCAPTION=33]="FIGCAPTION",d[d.FIGURE=34]="FIGURE",d[d.FONT=35]="FONT",d[d.FOOTER=36]="FOOTER",d[d.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",d[d.FORM=38]="FORM",d[d.FRAME=39]="FRAME",d[d.FRAMESET=40]="FRAMESET",d[d.H1=41]="H1",d[d.H2=42]="H2",d[d.H3=43]="H3",d[d.H4=44]="H4",d[d.H5=45]="H5",d[d.H6=46]="H6",d[d.HEAD=47]="HEAD",d[d.HEADER=48]="HEADER",d[d.HGROUP=49]="HGROUP",d[d.HR=50]="HR",d[d.HTML=51]="HTML",d[d.I=52]="I",d[d.IMG=53]="IMG",d[d.IMAGE=54]="IMAGE",d[d.INPUT=55]="INPUT",d[d.IFRAME=56]="IFRAME",d[d.KEYGEN=57]="KEYGEN",d[d.LABEL=58]="LABEL",d[d.LI=59]="LI",d[d.LINK=60]="LINK",d[d.LISTING=61]="LISTING",d[d.MAIN=62]="MAIN",d[d.MALIGNMARK=63]="MALIGNMARK",d[d.MARQUEE=64]="MARQUEE",d[d.MATH=65]="MATH",d[d.MENU=66]="MENU",d[d.META=67]="META",d[d.MGLYPH=68]="MGLYPH",d[d.MI=69]="MI",d[d.MO=70]="MO",d[d.MN=71]="MN",d[d.MS=72]="MS",d[d.MTEXT=73]="MTEXT",d[d.NAV=74]="NAV",d[d.NOBR=75]="NOBR",d[d.NOFRAMES=76]="NOFRAMES",d[d.NOEMBED=77]="NOEMBED",d[d.NOSCRIPT=78]="NOSCRIPT",d[d.OBJECT=79]="OBJECT",d[d.OL=80]="OL",d[d.OPTGROUP=81]="OPTGROUP",d[d.OPTION=82]="OPTION",d[d.P=83]="P",d[d.PARAM=84]="PARAM",d[d.PLAINTEXT=85]="PLAINTEXT",d[d.PRE=86]="PRE",d[d.RB=87]="RB",d[d.RP=88]="RP",d[d.RT=89]="RT",d[d.RTC=90]="RTC",d[d.RUBY=91]="RUBY",d[d.S=92]="S",d[d.SCRIPT=93]="SCRIPT",d[d.SEARCH=94]="SEARCH",d[d.SECTION=95]="SECTION",d[d.SELECT=96]="SELECT",d[d.SOURCE=97]="SOURCE",d[d.SMALL=98]="SMALL",d[d.SPAN=99]="SPAN",d[d.STRIKE=100]="STRIKE",d[d.STRONG=101]="STRONG",d[d.STYLE=102]="STYLE",d[d.SUB=103]="SUB",d[d.SUMMARY=104]="SUMMARY",d[d.SUP=105]="SUP",d[d.TABLE=106]="TABLE",d[d.TBODY=107]="TBODY",d[d.TEMPLATE=108]="TEMPLATE",d[d.TEXTAREA=109]="TEXTAREA",d[d.TFOOT=110]="TFOOT",d[d.TD=111]="TD",d[d.TH=112]="TH",d[d.THEAD=113]="THEAD",d[d.TITLE=114]="TITLE",d[d.TR=115]="TR",d[d.TRACK=116]="TRACK",d[d.TT=117]="TT",d[d.U=118]="U",d[d.UL=119]="UL",d[d.SVG=120]="SVG",d[d.VAR=121]="VAR",d[d.WBR=122]="WBR",d[d.XMP=123]="XMP"})(L||(L={}));const Rt=new Map([[je.A,L.A],[je.ADDRESS,L.ADDRESS],[je.ANNOTATION_XML,L.ANNOTATION_XML],[je.APPLET,L.APPLET],[je.AREA,L.AREA],[je.ARTICLE,L.ARTICLE],[je.ASIDE,L.ASIDE],[je.B,L.B],[je.BASE,L.BASE],[je.BASEFONT,L.BASEFONT],[je.BGSOUND,L.BGSOUND],[je.BIG,L.BIG],[je.BLOCKQUOTE,L.BLOCKQUOTE],[je.BODY,L.BODY],[je.BR,L.BR],[je.BUTTON,L.BUTTON],[je.CAPTION,L.CAPTION],[je.CENTER,L.CENTER],[je.CODE,L.CODE],[je.COL,L.COL],[je.COLGROUP,L.COLGROUP],[je.DD,L.DD],[je.DESC,L.DESC],[je.DETAILS,L.DETAILS],[je.DIALOG,L.DIALOG],[je.DIR,L.DIR],[je.DIV,L.DIV],[je.DL,L.DL],[je.DT,L.DT],[je.EM,L.EM],[je.EMBED,L.EMBED],[je.FIELDSET,L.FIELDSET],[je.FIGCAPTION,L.FIGCAPTION],[je.FIGURE,L.FIGURE],[je.FONT,L.FONT],[je.FOOTER,L.FOOTER],[je.FOREIGN_OBJECT,L.FOREIGN_OBJECT],[je.FORM,L.FORM],[je.FRAME,L.FRAME],[je.FRAMESET,L.FRAMESET],[je.H1,L.H1],[je.H2,L.H2],[je.H3,L.H3],[je.H4,L.H4],[je.H5,L.H5],[je.H6,L.H6],[je.HEAD,L.HEAD],[je.HEADER,L.HEADER],[je.HGROUP,L.HGROUP],[je.HR,L.HR],[je.HTML,L.HTML],[je.I,L.I],[je.IMG,L.IMG],[je.IMAGE,L.IMAGE],[je.INPUT,L.INPUT],[je.IFRAME,L.IFRAME],[je.KEYGEN,L.KEYGEN],[je.LABEL,L.LABEL],[je.LI,L.LI],[je.LINK,L.LINK],[je.LISTING,L.LISTING],[je.MAIN,L.MAIN],[je.MALIGNMARK,L.MALIGNMARK],[je.MARQUEE,L.MARQUEE],[je.MATH,L.MATH],[je.MENU,L.MENU],[je.META,L.META],[je.MGLYPH,L.MGLYPH],[je.MI,L.MI],[je.MO,L.MO],[je.MN,L.MN],[je.MS,L.MS],[je.MTEXT,L.MTEXT],[je.NAV,L.NAV],[je.NOBR,L.NOBR],[je.NOFRAMES,L.NOFRAMES],[je.NOEMBED,L.NOEMBED],[je.NOSCRIPT,L.NOSCRIPT],[je.OBJECT,L.OBJECT],[je.OL,L.OL],[je.OPTGROUP,L.OPTGROUP],[je.OPTION,L.OPTION],[je.P,L.P],[je.PARAM,L.PARAM],[je.PLAINTEXT,L.PLAINTEXT],[je.PRE,L.PRE],[je.RB,L.RB],[je.RP,L.RP],[je.RT,L.RT],[je.RTC,L.RTC],[je.RUBY,L.RUBY],[je.S,L.S],[je.SCRIPT,L.SCRIPT],[je.SEARCH,L.SEARCH],[je.SECTION,L.SECTION],[je.SELECT,L.SELECT],[je.SOURCE,L.SOURCE],[je.SMALL,L.SMALL],[je.SPAN,L.SPAN],[je.STRIKE,L.STRIKE],[je.STRONG,L.STRONG],[je.STYLE,L.STYLE],[je.SUB,L.SUB],[je.SUMMARY,L.SUMMARY],[je.SUP,L.SUP],[je.TABLE,L.TABLE],[je.TBODY,L.TBODY],[je.TEMPLATE,L.TEMPLATE],[je.TEXTAREA,L.TEXTAREA],[je.TFOOT,L.TFOOT],[je.TD,L.TD],[je.TH,L.TH],[je.THEAD,L.THEAD],[je.TITLE,L.TITLE],[je.TR,L.TR],[je.TRACK,L.TRACK],[je.TT,L.TT],[je.U,L.U],[je.UL,L.UL],[je.SVG,L.SVG],[je.VAR,L.VAR],[je.WBR,L.WBR],[je.XMP,L.XMP]]);function Jt(d){var g;return(g=Rt.get(d))!==null&&g!==void 0?g:L.UNKNOWN}const mt=L,xn={[ot.HTML]:new Set([mt.ADDRESS,mt.APPLET,mt.AREA,mt.ARTICLE,mt.ASIDE,mt.BASE,mt.BASEFONT,mt.BGSOUND,mt.BLOCKQUOTE,mt.BODY,mt.BR,mt.BUTTON,mt.CAPTION,mt.CENTER,mt.COL,mt.COLGROUP,mt.DD,mt.DETAILS,mt.DIR,mt.DIV,mt.DL,mt.DT,mt.EMBED,mt.FIELDSET,mt.FIGCAPTION,mt.FIGURE,mt.FOOTER,mt.FORM,mt.FRAME,mt.FRAMESET,mt.H1,mt.H2,mt.H3,mt.H4,mt.H5,mt.H6,mt.HEAD,mt.HEADER,mt.HGROUP,mt.HR,mt.HTML,mt.IFRAME,mt.IMG,mt.INPUT,mt.LI,mt.LINK,mt.LISTING,mt.MAIN,mt.MARQUEE,mt.MENU,mt.META,mt.NAV,mt.NOEMBED,mt.NOFRAMES,mt.NOSCRIPT,mt.OBJECT,mt.OL,mt.P,mt.PARAM,mt.PLAINTEXT,mt.PRE,mt.SCRIPT,mt.SECTION,mt.SELECT,mt.SOURCE,mt.STYLE,mt.SUMMARY,mt.TABLE,mt.TBODY,mt.TD,mt.TEMPLATE,mt.TEXTAREA,mt.TFOOT,mt.TH,mt.THEAD,mt.TITLE,mt.TR,mt.TRACK,mt.UL,mt.WBR,mt.XMP]),[ot.MATHML]:new Set([mt.MI,mt.MO,mt.MN,mt.MS,mt.MTEXT,mt.ANNOTATION_XML]),[ot.SVG]:new Set([mt.TITLE,mt.FOREIGN_OBJECT,mt.DESC]),[ot.XLINK]:new Set,[ot.XML]:new Set,[ot.XMLNS]:new Set},An=new Set([mt.H1,mt.H2,mt.H3,mt.H4,mt.H5,mt.H6]),li=new Set([je.STYLE,je.SCRIPT,je.XMP,je.IFRAME,je.NOEMBED,je.NOFRAMES,je.PLAINTEXT]);function Nn(d,g){return li.has(d)||g&&d===je.NOSCRIPT}var lt;(function(d){d[d.DATA=0]="DATA",d[d.RCDATA=1]="RCDATA",d[d.RAWTEXT=2]="RAWTEXT",d[d.SCRIPT_DATA=3]="SCRIPT_DATA",d[d.PLAINTEXT=4]="PLAINTEXT",d[d.TAG_OPEN=5]="TAG_OPEN",d[d.END_TAG_OPEN=6]="END_TAG_OPEN",d[d.TAG_NAME=7]="TAG_NAME",d[d.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",d[d.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",d[d.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",d[d.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",d[d.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",d[d.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",d[d.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",d[d.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",d[d.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",d[d.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",d[d.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",d[d.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",d[d.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",d[d.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",d[d.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",d[d.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",d[d.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",d[d.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",d[d.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",d[d.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",d[d.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",d[d.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",d[d.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",d[d.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",d[d.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",d[d.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",d[d.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",d[d.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",d[d.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",d[d.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",d[d.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",d[d.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",d[d.BOGUS_COMMENT=40]="BOGUS_COMMENT",d[d.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",d[d.COMMENT_START=42]="COMMENT_START",d[d.COMMENT_START_DASH=43]="COMMENT_START_DASH",d[d.COMMENT=44]="COMMENT",d[d.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",d[d.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",d[d.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",d[d.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",d[d.COMMENT_END_DASH=49]="COMMENT_END_DASH",d[d.COMMENT_END=50]="COMMENT_END",d[d.COMMENT_END_BANG=51]="COMMENT_END_BANG",d[d.DOCTYPE=52]="DOCTYPE",d[d.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",d[d.DOCTYPE_NAME=54]="DOCTYPE_NAME",d[d.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",d[d.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",d[d.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",d[d.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",d[d.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",d[d.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",d[d.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",d[d.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",d[d.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",d[d.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",d[d.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",d[d.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",d[d.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",d[d.CDATA_SECTION=68]="CDATA_SECTION",d[d.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",d[d.CDATA_SECTION_END=70]="CDATA_SECTION_END",d[d.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",d[d.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(lt||(lt={}));const Mi={DATA:lt.DATA,RCDATA:lt.RCDATA,RAWTEXT:lt.RAWTEXT,SCRIPT_DATA:lt.SCRIPT_DATA,PLAINTEXT:lt.PLAINTEXT,CDATA_SECTION:lt.CDATA_SECTION};function Yi(d){return d>=ze.DIGIT_0&&d<=ze.DIGIT_9}function Yt(d){return d>=ze.LATIN_CAPITAL_A&&d<=ze.LATIN_CAPITAL_Z}function zi(d){return d>=ze.LATIN_SMALL_A&&d<=ze.LATIN_SMALL_Z}function q(d){return zi(d)||Yt(d)}function oe(d){return q(d)||Yi(d)}function Hn(d){return d+32}function Be(d){return d===ze.SPACE||d===ze.LINE_FEED||d===ze.TABULATION||d===ze.FORM_FEED}function Tt(d){return Be(d)||d===ze.SOLIDUS||d===ze.GREATER_THAN_SIGN}function fi(d){return d===ze.NULL?cn.nullCharacterReference:d>1114111?cn.characterReferenceOutsideUnicodeRange:yn(d)?cn.surrogateCharacterReference:Ii(d)?cn.noncharacterCharacterReference:_i(d)||d===ze.CARRIAGE_RETURN?cn.controlCharacterReference:null}class Ln{constructor(g,K){this.options=g,this.handler=K,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=lt.DATA,this.returnState=lt.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Xi(K),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Ke(ur,(nt,gn)=>{this.preprocessor.pos=this.entityStartPos+gn-1,this._flushCodePointConsumedAsCharacterReference(nt)},K.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(cn.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:nt=>{this._err(cn.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+nt)},validateNumericCharacterReference:nt=>{const gn=fi(nt);gn&&this._err(gn,1)}}:void 0)}_err(g,K=0){var nt,gn;(gn=(nt=this.handler).onParseError)===null||gn===void 0||gn.call(nt,this.preprocessor.getError(g,K))}getCurrentLocation(g){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-g,startOffset:this.preprocessor.offset-g,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const g=this._consume();this._ensureHibernation()||this._callState(g)}this.inLoop=!1}}pause(){this.paused=!0}resume(g){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||g==null||g())}write(g,K,nt){this.active=!0,this.preprocessor.write(g,K),this._runParsingLoop(),this.paused||nt==null||nt()}insertHtmlAtCurrentPos(g){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(g),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(g){this.consumedAfterSnapshot+=g;for(let K=0;K<g;K++)this.preprocessor.advance()}_consumeSequenceIfMatch(g,K){return this.preprocessor.startsWith(g,K)?(this._advanceBy(g.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:ei.START_TAG,tagName:"",tagID:L.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:ei.END_TAG,tagName:"",tagID:L.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(g){this.currentToken={type:ei.COMMENT,data:"",location:this.getCurrentLocation(g)}}_createDoctypeToken(g){this.currentToken={type:ei.DOCTYPE,name:g,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(g,K){this.currentCharacterToken={type:g,chars:K,location:this.currentLocation}}_createAttr(g){this.currentAttr={name:g,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var g,K;const nt=this.currentToken;if(Tr(nt,this.currentAttr.name)===null){if(nt.attrs.push(this.currentAttr),nt.location&&this.currentLocation){const gn=(g=(K=nt.location).attrs)!==null&&g!==void 0?g:K.attrs=Object.create(null);gn[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(cn.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(g){this._emitCurrentCharacterToken(g.location),this.currentToken=null,g.location&&(g.location.endLine=this.preprocessor.line,g.location.endCol=this.preprocessor.col+1,g.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const g=this.currentToken;this.prepareToken(g),g.tagID=Jt(g.tagName),g.type===ei.START_TAG?(this.lastStartTagName=g.tagName,this.handler.onStartTag(g)):(g.attrs.length>0&&this._err(cn.endTagWithAttributes),g.selfClosing&&this._err(cn.endTagWithTrailingSolidus),this.handler.onEndTag(g)),this.preprocessor.dropParsedChunk()}emitCurrentComment(g){this.prepareToken(g),this.handler.onComment(g),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(g){this.prepareToken(g),this.handler.onDoctype(g),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(g){if(this.currentCharacterToken){switch(g&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=g.startLine,this.currentCharacterToken.location.endCol=g.startCol,this.currentCharacterToken.location.endOffset=g.startOffset),this.currentCharacterToken.type){case ei.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case ei.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case ei.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const g=this.getCurrentLocation(0);g&&(g.endLine=g.startLine,g.endCol=g.startCol,g.endOffset=g.startOffset),this._emitCurrentCharacterToken(g),this.handler.onEof({type:ei.EOF,location:g}),this.active=!1}_appendCharToCurrentCharacterToken(g,K){if(this.currentCharacterToken)if(this.currentCharacterToken.type===g){this.currentCharacterToken.chars+=K;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(g,K)}_emitCodePoint(g){const K=Be(g)?ei.WHITESPACE_CHARACTER:g===ze.NULL?ei.NULL_CHARACTER:ei.CHARACTER;this._appendCharToCurrentCharacterToken(K,String.fromCodePoint(g))}_emitChars(g){this._appendCharToCurrentCharacterToken(ei.CHARACTER,g)}_startCharacterReference(){this.returnState=this.state,this.state=lt.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?pt.Attribute:pt.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===lt.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===lt.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===lt.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(g){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(g):this._emitCodePoint(g)}_callState(g){switch(this.state){case lt.DATA:{this._stateData(g);break}case lt.RCDATA:{this._stateRcdata(g);break}case lt.RAWTEXT:{this._stateRawtext(g);break}case lt.SCRIPT_DATA:{this._stateScriptData(g);break}case lt.PLAINTEXT:{this._statePlaintext(g);break}case lt.TAG_OPEN:{this._stateTagOpen(g);break}case lt.END_TAG_OPEN:{this._stateEndTagOpen(g);break}case lt.TAG_NAME:{this._stateTagName(g);break}case lt.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(g);break}case lt.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(g);break}case lt.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(g);break}case lt.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(g);break}case lt.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(g);break}case lt.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(g);break}case lt.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(g);break}case lt.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(g);break}case lt.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(g);break}case lt.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(g);break}case lt.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(g);break}case lt.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(g);break}case lt.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(g);break}case lt.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(g);break}case lt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(g);break}case lt.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(g);break}case lt.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(g);break}case lt.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(g);break}case lt.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(g);break}case lt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(g);break}case lt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(g);break}case lt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(g);break}case lt.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(g);break}case lt.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(g);break}case lt.ATTRIBUTE_NAME:{this._stateAttributeName(g);break}case lt.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(g);break}case lt.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(g);break}case lt.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(g);break}case lt.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(g);break}case lt.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(g);break}case lt.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(g);break}case lt.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(g);break}case lt.BOGUS_COMMENT:{this._stateBogusComment(g);break}case lt.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(g);break}case lt.COMMENT_START:{this._stateCommentStart(g);break}case lt.COMMENT_START_DASH:{this._stateCommentStartDash(g);break}case lt.COMMENT:{this._stateComment(g);break}case lt.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(g);break}case lt.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(g);break}case lt.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(g);break}case lt.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(g);break}case lt.COMMENT_END_DASH:{this._stateCommentEndDash(g);break}case lt.COMMENT_END:{this._stateCommentEnd(g);break}case lt.COMMENT_END_BANG:{this._stateCommentEndBang(g);break}case lt.DOCTYPE:{this._stateDoctype(g);break}case lt.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(g);break}case lt.DOCTYPE_NAME:{this._stateDoctypeName(g);break}case lt.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(g);break}case lt.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(g);break}case lt.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(g);break}case lt.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(g);break}case lt.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(g);break}case lt.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(g);break}case lt.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(g);break}case lt.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(g);break}case lt.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(g);break}case lt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(g);break}case lt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(g);break}case lt.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(g);break}case lt.BOGUS_DOCTYPE:{this._stateBogusDoctype(g);break}case lt.CDATA_SECTION:{this._stateCdataSection(g);break}case lt.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(g);break}case lt.CDATA_SECTION_END:{this._stateCdataSectionEnd(g);break}case lt.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case lt.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(g);break}default:throw new Error("Unknown state")}}_stateData(g){switch(g){case ze.LESS_THAN_SIGN:{this.state=lt.TAG_OPEN;break}case ze.AMPERSAND:{this._startCharacterReference();break}case ze.NULL:{this._err(cn.unexpectedNullCharacter),this._emitCodePoint(g);break}case ze.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(g)}}_stateRcdata(g){switch(g){case ze.AMPERSAND:{this._startCharacterReference();break}case ze.LESS_THAN_SIGN:{this.state=lt.RCDATA_LESS_THAN_SIGN;break}case ze.NULL:{this._err(cn.unexpectedNullCharacter),this._emitChars(rn);break}case ze.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(g)}}_stateRawtext(g){switch(g){case ze.LESS_THAN_SIGN:{this.state=lt.RAWTEXT_LESS_THAN_SIGN;break}case ze.NULL:{this._err(cn.unexpectedNullCharacter),this._emitChars(rn);break}case ze.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(g)}}_stateScriptData(g){switch(g){case ze.LESS_THAN_SIGN:{this.state=lt.SCRIPT_DATA_LESS_THAN_SIGN;break}case ze.NULL:{this._err(cn.unexpectedNullCharacter),this._emitChars(rn);break}case ze.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(g)}}_statePlaintext(g){switch(g){case ze.NULL:{this._err(cn.unexpectedNullCharacter),this._emitChars(rn);break}case ze.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(g)}}_stateTagOpen(g){if(q(g))this._createStartTagToken(),this.state=lt.TAG_NAME,this._stateTagName(g);else switch(g){case ze.EXCLAMATION_MARK:{this.state=lt.MARKUP_DECLARATION_OPEN;break}case ze.SOLIDUS:{this.state=lt.END_TAG_OPEN;break}case ze.QUESTION_MARK:{this._err(cn.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=lt.BOGUS_COMMENT,this._stateBogusComment(g);break}case ze.EOF:{this._err(cn.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(cn.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=lt.DATA,this._stateData(g)}}_stateEndTagOpen(g){if(q(g))this._createEndTagToken(),this.state=lt.TAG_NAME,this._stateTagName(g);else switch(g){case ze.GREATER_THAN_SIGN:{this._err(cn.missingEndTagName),this.state=lt.DATA;break}case ze.EOF:{this._err(cn.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(cn.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=lt.BOGUS_COMMENT,this._stateBogusComment(g)}}_stateTagName(g){const K=this.currentToken;switch(g){case ze.SPACE:case ze.LINE_FEED:case ze.TABULATION:case ze.FORM_FEED:{this.state=lt.BEFORE_ATTRIBUTE_NAME;break}case ze.SOLIDUS:{this.state=lt.SELF_CLOSING_START_TAG;break}case ze.GREATER_THAN_SIGN:{this.state=lt.DATA,this.emitCurrentTagToken();break}case ze.NULL:{this._err(cn.unexpectedNullCharacter),K.tagName+=rn;break}case ze.EOF:{this._err(cn.eofInTag),this._emitEOFToken();break}default:K.tagName+=String.fromCodePoint(Yt(g)?Hn(g):g)}}_stateRcdataLessThanSign(g){g===ze.SOLIDUS?this.state=lt.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=lt.RCDATA,this._stateRcdata(g))}_stateRcdataEndTagOpen(g){q(g)?(this.state=lt.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(g)):(this._emitChars("</"),this.state=lt.RCDATA,this._stateRcdata(g))}handleSpecialEndTag(g){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const K=this.currentToken;switch(K.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case ze.SPACE:case ze.LINE_FEED:case ze.TABULATION:case ze.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=lt.BEFORE_ATTRIBUTE_NAME,!1;case ze.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=lt.SELF_CLOSING_START_TAG,!1;case ze.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=lt.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(g){this.handleSpecialEndTag(g)&&(this._emitChars("</"),this.state=lt.RCDATA,this._stateRcdata(g))}_stateRawtextLessThanSign(g){g===ze.SOLIDUS?this.state=lt.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=lt.RAWTEXT,this._stateRawtext(g))}_stateRawtextEndTagOpen(g){q(g)?(this.state=lt.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(g)):(this._emitChars("</"),this.state=lt.RAWTEXT,this._stateRawtext(g))}_stateRawtextEndTagName(g){this.handleSpecialEndTag(g)&&(this._emitChars("</"),this.state=lt.RAWTEXT,this._stateRawtext(g))}_stateScriptDataLessThanSign(g){switch(g){case ze.SOLIDUS:{this.state=lt.SCRIPT_DATA_END_TAG_OPEN;break}case ze.EXCLAMATION_MARK:{this.state=lt.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=lt.SCRIPT_DATA,this._stateScriptData(g)}}_stateScriptDataEndTagOpen(g){q(g)?(this.state=lt.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(g)):(this._emitChars("</"),this.state=lt.SCRIPT_DATA,this._stateScriptData(g))}_stateScriptDataEndTagName(g){this.handleSpecialEndTag(g)&&(this._emitChars("</"),this.state=lt.SCRIPT_DATA,this._stateScriptData(g))}_stateScriptDataEscapeStart(g){g===ze.HYPHEN_MINUS?(this.state=lt.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=lt.SCRIPT_DATA,this._stateScriptData(g))}_stateScriptDataEscapeStartDash(g){g===ze.HYPHEN_MINUS?(this.state=lt.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=lt.SCRIPT_DATA,this._stateScriptData(g))}_stateScriptDataEscaped(g){switch(g){case ze.HYPHEN_MINUS:{this.state=lt.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case ze.LESS_THAN_SIGN:{this.state=lt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case ze.NULL:{this._err(cn.unexpectedNullCharacter),this._emitChars(rn);break}case ze.EOF:{this._err(cn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(g)}}_stateScriptDataEscapedDash(g){switch(g){case ze.HYPHEN_MINUS:{this.state=lt.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case ze.LESS_THAN_SIGN:{this.state=lt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case ze.NULL:{this._err(cn.unexpectedNullCharacter),this.state=lt.SCRIPT_DATA_ESCAPED,this._emitChars(rn);break}case ze.EOF:{this._err(cn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=lt.SCRIPT_DATA_ESCAPED,this._emitCodePoint(g)}}_stateScriptDataEscapedDashDash(g){switch(g){case ze.HYPHEN_MINUS:{this._emitChars("-");break}case ze.LESS_THAN_SIGN:{this.state=lt.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case ze.GREATER_THAN_SIGN:{this.state=lt.SCRIPT_DATA,this._emitChars(">");break}case ze.NULL:{this._err(cn.unexpectedNullCharacter),this.state=lt.SCRIPT_DATA_ESCAPED,this._emitChars(rn);break}case ze.EOF:{this._err(cn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=lt.SCRIPT_DATA_ESCAPED,this._emitCodePoint(g)}}_stateScriptDataEscapedLessThanSign(g){g===ze.SOLIDUS?this.state=lt.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:q(g)?(this._emitChars("<"),this.state=lt.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(g)):(this._emitChars("<"),this.state=lt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(g))}_stateScriptDataEscapedEndTagOpen(g){q(g)?(this.state=lt.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(g)):(this._emitChars("</"),this.state=lt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(g))}_stateScriptDataEscapedEndTagName(g){this.handleSpecialEndTag(g)&&(this._emitChars("</"),this.state=lt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(g))}_stateScriptDataDoubleEscapeStart(g){if(this.preprocessor.startsWith(Un.SCRIPT,!1)&&Tt(this.preprocessor.peek(Un.SCRIPT.length))){this._emitCodePoint(g);for(let K=0;K<Un.SCRIPT.length;K++)this._emitCodePoint(this._consume());this.state=lt.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=lt.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(g))}_stateScriptDataDoubleEscaped(g){switch(g){case ze.HYPHEN_MINUS:{this.state=lt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case ze.LESS_THAN_SIGN:{this.state=lt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case ze.NULL:{this._err(cn.unexpectedNullCharacter),this._emitChars(rn);break}case ze.EOF:{this._err(cn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(g)}}_stateScriptDataDoubleEscapedDash(g){switch(g){case ze.HYPHEN_MINUS:{this.state=lt.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case ze.LESS_THAN_SIGN:{this.state=lt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case ze.NULL:{this._err(cn.unexpectedNullCharacter),this.state=lt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(rn);break}case ze.EOF:{this._err(cn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=lt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(g)}}_stateScriptDataDoubleEscapedDashDash(g){switch(g){case ze.HYPHEN_MINUS:{this._emitChars("-");break}case ze.LESS_THAN_SIGN:{this.state=lt.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case ze.GREATER_THAN_SIGN:{this.state=lt.SCRIPT_DATA,this._emitChars(">");break}case ze.NULL:{this._err(cn.unexpectedNullCharacter),this.state=lt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(rn);break}case ze.EOF:{this._err(cn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=lt.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(g)}}_stateScriptDataDoubleEscapedLessThanSign(g){g===ze.SOLIDUS?(this.state=lt.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=lt.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(g))}_stateScriptDataDoubleEscapeEnd(g){if(this.preprocessor.startsWith(Un.SCRIPT,!1)&&Tt(this.preprocessor.peek(Un.SCRIPT.length))){this._emitCodePoint(g);for(let K=0;K<Un.SCRIPT.length;K++)this._emitCodePoint(this._consume());this.state=lt.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=lt.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(g))}_stateBeforeAttributeName(g){switch(g){case ze.SPACE:case ze.LINE_FEED:case ze.TABULATION:case ze.FORM_FEED:break;case ze.SOLIDUS:case ze.GREATER_THAN_SIGN:case ze.EOF:{this.state=lt.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(g);break}case ze.EQUALS_SIGN:{this._err(cn.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=lt.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=lt.ATTRIBUTE_NAME,this._stateAttributeName(g)}}_stateAttributeName(g){switch(g){case ze.SPACE:case ze.LINE_FEED:case ze.TABULATION:case ze.FORM_FEED:case ze.SOLIDUS:case ze.GREATER_THAN_SIGN:case ze.EOF:{this._leaveAttrName(),this.state=lt.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(g);break}case ze.EQUALS_SIGN:{this._leaveAttrName(),this.state=lt.BEFORE_ATTRIBUTE_VALUE;break}case ze.QUOTATION_MARK:case ze.APOSTROPHE:case ze.LESS_THAN_SIGN:{this._err(cn.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(g);break}case ze.NULL:{this._err(cn.unexpectedNullCharacter),this.currentAttr.name+=rn;break}default:this.currentAttr.name+=String.fromCodePoint(Yt(g)?Hn(g):g)}}_stateAfterAttributeName(g){switch(g){case ze.SPACE:case ze.LINE_FEED:case ze.TABULATION:case ze.FORM_FEED:break;case ze.SOLIDUS:{this.state=lt.SELF_CLOSING_START_TAG;break}case ze.EQUALS_SIGN:{this.state=lt.BEFORE_ATTRIBUTE_VALUE;break}case ze.GREATER_THAN_SIGN:{this.state=lt.DATA,this.emitCurrentTagToken();break}case ze.EOF:{this._err(cn.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=lt.ATTRIBUTE_NAME,this._stateAttributeName(g)}}_stateBeforeAttributeValue(g){switch(g){case ze.SPACE:case ze.LINE_FEED:case ze.TABULATION:case ze.FORM_FEED:break;case ze.QUOTATION_MARK:{this.state=lt.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case ze.APOSTROPHE:{this.state=lt.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case ze.GREATER_THAN_SIGN:{this._err(cn.missingAttributeValue),this.state=lt.DATA,this.emitCurrentTagToken();break}default:this.state=lt.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(g)}}_stateAttributeValueDoubleQuoted(g){switch(g){case ze.QUOTATION_MARK:{this.state=lt.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case ze.AMPERSAND:{this._startCharacterReference();break}case ze.NULL:{this._err(cn.unexpectedNullCharacter),this.currentAttr.value+=rn;break}case ze.EOF:{this._err(cn.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(g)}}_stateAttributeValueSingleQuoted(g){switch(g){case ze.APOSTROPHE:{this.state=lt.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case ze.AMPERSAND:{this._startCharacterReference();break}case ze.NULL:{this._err(cn.unexpectedNullCharacter),this.currentAttr.value+=rn;break}case ze.EOF:{this._err(cn.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(g)}}_stateAttributeValueUnquoted(g){switch(g){case ze.SPACE:case ze.LINE_FEED:case ze.TABULATION:case ze.FORM_FEED:{this._leaveAttrValue(),this.state=lt.BEFORE_ATTRIBUTE_NAME;break}case ze.AMPERSAND:{this._startCharacterReference();break}case ze.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=lt.DATA,this.emitCurrentTagToken();break}case ze.NULL:{this._err(cn.unexpectedNullCharacter),this.currentAttr.value+=rn;break}case ze.QUOTATION_MARK:case ze.APOSTROPHE:case ze.LESS_THAN_SIGN:case ze.EQUALS_SIGN:case ze.GRAVE_ACCENT:{this._err(cn.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(g);break}case ze.EOF:{this._err(cn.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(g)}}_stateAfterAttributeValueQuoted(g){switch(g){case ze.SPACE:case ze.LINE_FEED:case ze.TABULATION:case ze.FORM_FEED:{this._leaveAttrValue(),this.state=lt.BEFORE_ATTRIBUTE_NAME;break}case ze.SOLIDUS:{this._leaveAttrValue(),this.state=lt.SELF_CLOSING_START_TAG;break}case ze.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=lt.DATA,this.emitCurrentTagToken();break}case ze.EOF:{this._err(cn.eofInTag),this._emitEOFToken();break}default:this._err(cn.missingWhitespaceBetweenAttributes),this.state=lt.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(g)}}_stateSelfClosingStartTag(g){switch(g){case ze.GREATER_THAN_SIGN:{const K=this.currentToken;K.selfClosing=!0,this.state=lt.DATA,this.emitCurrentTagToken();break}case ze.EOF:{this._err(cn.eofInTag),this._emitEOFToken();break}default:this._err(cn.unexpectedSolidusInTag),this.state=lt.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(g)}}_stateBogusComment(g){const K=this.currentToken;switch(g){case ze.GREATER_THAN_SIGN:{this.state=lt.DATA,this.emitCurrentComment(K);break}case ze.EOF:{this.emitCurrentComment(K),this._emitEOFToken();break}case ze.NULL:{this._err(cn.unexpectedNullCharacter),K.data+=rn;break}default:K.data+=String.fromCodePoint(g)}}_stateMarkupDeclarationOpen(g){this._consumeSequenceIfMatch(Un.DASH_DASH,!0)?(this._createCommentToken(Un.DASH_DASH.length+1),this.state=lt.COMMENT_START):this._consumeSequenceIfMatch(Un.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Un.DOCTYPE.length+1),this.state=lt.DOCTYPE):this._consumeSequenceIfMatch(Un.CDATA_START,!0)?this.inForeignNode?this.state=lt.CDATA_SECTION:(this._err(cn.cdataInHtmlContent),this._createCommentToken(Un.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=lt.BOGUS_COMMENT):this._ensureHibernation()||(this._err(cn.incorrectlyOpenedComment),this._createCommentToken(2),this.state=lt.BOGUS_COMMENT,this._stateBogusComment(g))}_stateCommentStart(g){switch(g){case ze.HYPHEN_MINUS:{this.state=lt.COMMENT_START_DASH;break}case ze.GREATER_THAN_SIGN:{this._err(cn.abruptClosingOfEmptyComment),this.state=lt.DATA;const K=this.currentToken;this.emitCurrentComment(K);break}default:this.state=lt.COMMENT,this._stateComment(g)}}_stateCommentStartDash(g){const K=this.currentToken;switch(g){case ze.HYPHEN_MINUS:{this.state=lt.COMMENT_END;break}case ze.GREATER_THAN_SIGN:{this._err(cn.abruptClosingOfEmptyComment),this.state=lt.DATA,this.emitCurrentComment(K);break}case ze.EOF:{this._err(cn.eofInComment),this.emitCurrentComment(K),this._emitEOFToken();break}default:K.data+="-",this.state=lt.COMMENT,this._stateComment(g)}}_stateComment(g){const K=this.currentToken;switch(g){case ze.HYPHEN_MINUS:{this.state=lt.COMMENT_END_DASH;break}case ze.LESS_THAN_SIGN:{K.data+="<",this.state=lt.COMMENT_LESS_THAN_SIGN;break}case ze.NULL:{this._err(cn.unexpectedNullCharacter),K.data+=rn;break}case ze.EOF:{this._err(cn.eofInComment),this.emitCurrentComment(K),this._emitEOFToken();break}default:K.data+=String.fromCodePoint(g)}}_stateCommentLessThanSign(g){const K=this.currentToken;switch(g){case ze.EXCLAMATION_MARK:{K.data+="!",this.state=lt.COMMENT_LESS_THAN_SIGN_BANG;break}case ze.LESS_THAN_SIGN:{K.data+="<";break}default:this.state=lt.COMMENT,this._stateComment(g)}}_stateCommentLessThanSignBang(g){g===ze.HYPHEN_MINUS?this.state=lt.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=lt.COMMENT,this._stateComment(g))}_stateCommentLessThanSignBangDash(g){g===ze.HYPHEN_MINUS?this.state=lt.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=lt.COMMENT_END_DASH,this._stateCommentEndDash(g))}_stateCommentLessThanSignBangDashDash(g){g!==ze.GREATER_THAN_SIGN&&g!==ze.EOF&&this._err(cn.nestedComment),this.state=lt.COMMENT_END,this._stateCommentEnd(g)}_stateCommentEndDash(g){const K=this.currentToken;switch(g){case ze.HYPHEN_MINUS:{this.state=lt.COMMENT_END;break}case ze.EOF:{this._err(cn.eofInComment),this.emitCurrentComment(K),this._emitEOFToken();break}default:K.data+="-",this.state=lt.COMMENT,this._stateComment(g)}}_stateCommentEnd(g){const K=this.currentToken;switch(g){case ze.GREATER_THAN_SIGN:{this.state=lt.DATA,this.emitCurrentComment(K);break}case ze.EXCLAMATION_MARK:{this.state=lt.COMMENT_END_BANG;break}case ze.HYPHEN_MINUS:{K.data+="-";break}case ze.EOF:{this._err(cn.eofInComment),this.emitCurrentComment(K),this._emitEOFToken();break}default:K.data+="--",this.state=lt.COMMENT,this._stateComment(g)}}_stateCommentEndBang(g){const K=this.currentToken;switch(g){case ze.HYPHEN_MINUS:{K.data+="--!",this.state=lt.COMMENT_END_DASH;break}case ze.GREATER_THAN_SIGN:{this._err(cn.incorrectlyClosedComment),this.state=lt.DATA,this.emitCurrentComment(K);break}case ze.EOF:{this._err(cn.eofInComment),this.emitCurrentComment(K),this._emitEOFToken();break}default:K.data+="--!",this.state=lt.COMMENT,this._stateComment(g)}}_stateDoctype(g){switch(g){case ze.SPACE:case ze.LINE_FEED:case ze.TABULATION:case ze.FORM_FEED:{this.state=lt.BEFORE_DOCTYPE_NAME;break}case ze.GREATER_THAN_SIGN:{this.state=lt.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(g);break}case ze.EOF:{this._err(cn.eofInDoctype),this._createDoctypeToken(null);const K=this.currentToken;K.forceQuirks=!0,this.emitCurrentDoctype(K),this._emitEOFToken();break}default:this._err(cn.missingWhitespaceBeforeDoctypeName),this.state=lt.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(g)}}_stateBeforeDoctypeName(g){if(Yt(g))this._createDoctypeToken(String.fromCharCode(Hn(g))),this.state=lt.DOCTYPE_NAME;else switch(g){case ze.SPACE:case ze.LINE_FEED:case ze.TABULATION:case ze.FORM_FEED:break;case ze.NULL:{this._err(cn.unexpectedNullCharacter),this._createDoctypeToken(rn),this.state=lt.DOCTYPE_NAME;break}case ze.GREATER_THAN_SIGN:{this._err(cn.missingDoctypeName),this._createDoctypeToken(null);const K=this.currentToken;K.forceQuirks=!0,this.emitCurrentDoctype(K),this.state=lt.DATA;break}case ze.EOF:{this._err(cn.eofInDoctype),this._createDoctypeToken(null);const K=this.currentToken;K.forceQuirks=!0,this.emitCurrentDoctype(K),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(g)),this.state=lt.DOCTYPE_NAME}}_stateDoctypeName(g){const K=this.currentToken;switch(g){case ze.SPACE:case ze.LINE_FEED:case ze.TABULATION:case ze.FORM_FEED:{this.state=lt.AFTER_DOCTYPE_NAME;break}case ze.GREATER_THAN_SIGN:{this.state=lt.DATA,this.emitCurrentDoctype(K);break}case ze.NULL:{this._err(cn.unexpectedNullCharacter),K.name+=rn;break}case ze.EOF:{this._err(cn.eofInDoctype),K.forceQuirks=!0,this.emitCurrentDoctype(K),this._emitEOFToken();break}default:K.name+=String.fromCodePoint(Yt(g)?Hn(g):g)}}_stateAfterDoctypeName(g){const K=this.currentToken;switch(g){case ze.SPACE:case ze.LINE_FEED:case ze.TABULATION:case ze.FORM_FEED:break;case ze.GREATER_THAN_SIGN:{this.state=lt.DATA,this.emitCurrentDoctype(K);break}case ze.EOF:{this._err(cn.eofInDoctype),K.forceQuirks=!0,this.emitCurrentDoctype(K),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Un.PUBLIC,!1)?this.state=lt.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Un.SYSTEM,!1)?this.state=lt.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(cn.invalidCharacterSequenceAfterDoctypeName),K.forceQuirks=!0,this.state=lt.BOGUS_DOCTYPE,this._stateBogusDoctype(g))}}_stateAfterDoctypePublicKeyword(g){const K=this.currentToken;switch(g){case ze.SPACE:case ze.LINE_FEED:case ze.TABULATION:case ze.FORM_FEED:{this.state=lt.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case ze.QUOTATION_MARK:{this._err(cn.missingWhitespaceAfterDoctypePublicKeyword),K.publicId="",this.state=lt.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case ze.APOSTROPHE:{this._err(cn.missingWhitespaceAfterDoctypePublicKeyword),K.publicId="",this.state=lt.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case ze.GREATER_THAN_SIGN:{this._err(cn.missingDoctypePublicIdentifier),K.forceQuirks=!0,this.state=lt.DATA,this.emitCurrentDoctype(K);break}case ze.EOF:{this._err(cn.eofInDoctype),K.forceQuirks=!0,this.emitCurrentDoctype(K),this._emitEOFToken();break}default:this._err(cn.missingQuoteBeforeDoctypePublicIdentifier),K.forceQuirks=!0,this.state=lt.BOGUS_DOCTYPE,this._stateBogusDoctype(g)}}_stateBeforeDoctypePublicIdentifier(g){const K=this.currentToken;switch(g){case ze.SPACE:case ze.LINE_FEED:case ze.TABULATION:case ze.FORM_FEED:break;case ze.QUOTATION_MARK:{K.publicId="",this.state=lt.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case ze.APOSTROPHE:{K.publicId="",this.state=lt.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case ze.GREATER_THAN_SIGN:{this._err(cn.missingDoctypePublicIdentifier),K.forceQuirks=!0,this.state=lt.DATA,this.emitCurrentDoctype(K);break}case ze.EOF:{this._err(cn.eofInDoctype),K.forceQuirks=!0,this.emitCurrentDoctype(K),this._emitEOFToken();break}default:this._err(cn.missingQuoteBeforeDoctypePublicIdentifier),K.forceQuirks=!0,this.state=lt.BOGUS_DOCTYPE,this._stateBogusDoctype(g)}}_stateDoctypePublicIdentifierDoubleQuoted(g){const K=this.currentToken;switch(g){case ze.QUOTATION_MARK:{this.state=lt.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case ze.NULL:{this._err(cn.unexpectedNullCharacter),K.publicId+=rn;break}case ze.GREATER_THAN_SIGN:{this._err(cn.abruptDoctypePublicIdentifier),K.forceQuirks=!0,this.emitCurrentDoctype(K),this.state=lt.DATA;break}case ze.EOF:{this._err(cn.eofInDoctype),K.forceQuirks=!0,this.emitCurrentDoctype(K),this._emitEOFToken();break}default:K.publicId+=String.fromCodePoint(g)}}_stateDoctypePublicIdentifierSingleQuoted(g){const K=this.currentToken;switch(g){case ze.APOSTROPHE:{this.state=lt.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case ze.NULL:{this._err(cn.unexpectedNullCharacter),K.publicId+=rn;break}case ze.GREATER_THAN_SIGN:{this._err(cn.abruptDoctypePublicIdentifier),K.forceQuirks=!0,this.emitCurrentDoctype(K),this.state=lt.DATA;break}case ze.EOF:{this._err(cn.eofInDoctype),K.forceQuirks=!0,this.emitCurrentDoctype(K),this._emitEOFToken();break}default:K.publicId+=String.fromCodePoint(g)}}_stateAfterDoctypePublicIdentifier(g){const K=this.currentToken;switch(g){case ze.SPACE:case ze.LINE_FEED:case ze.TABULATION:case ze.FORM_FEED:{this.state=lt.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case ze.GREATER_THAN_SIGN:{this.state=lt.DATA,this.emitCurrentDoctype(K);break}case ze.QUOTATION_MARK:{this._err(cn.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),K.systemId="",this.state=lt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case ze.APOSTROPHE:{this._err(cn.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),K.systemId="",this.state=lt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case ze.EOF:{this._err(cn.eofInDoctype),K.forceQuirks=!0,this.emitCurrentDoctype(K),this._emitEOFToken();break}default:this._err(cn.missingQuoteBeforeDoctypeSystemIdentifier),K.forceQuirks=!0,this.state=lt.BOGUS_DOCTYPE,this._stateBogusDoctype(g)}}_stateBetweenDoctypePublicAndSystemIdentifiers(g){const K=this.currentToken;switch(g){case ze.SPACE:case ze.LINE_FEED:case ze.TABULATION:case ze.FORM_FEED:break;case ze.GREATER_THAN_SIGN:{this.emitCurrentDoctype(K),this.state=lt.DATA;break}case ze.QUOTATION_MARK:{K.systemId="",this.state=lt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case ze.APOSTROPHE:{K.systemId="",this.state=lt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case ze.EOF:{this._err(cn.eofInDoctype),K.forceQuirks=!0,this.emitCurrentDoctype(K),this._emitEOFToken();break}default:this._err(cn.missingQuoteBeforeDoctypeSystemIdentifier),K.forceQuirks=!0,this.state=lt.BOGUS_DOCTYPE,this._stateBogusDoctype(g)}}_stateAfterDoctypeSystemKeyword(g){const K=this.currentToken;switch(g){case ze.SPACE:case ze.LINE_FEED:case ze.TABULATION:case ze.FORM_FEED:{this.state=lt.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case ze.QUOTATION_MARK:{this._err(cn.missingWhitespaceAfterDoctypeSystemKeyword),K.systemId="",this.state=lt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case ze.APOSTROPHE:{this._err(cn.missingWhitespaceAfterDoctypeSystemKeyword),K.systemId="",this.state=lt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case ze.GREATER_THAN_SIGN:{this._err(cn.missingDoctypeSystemIdentifier),K.forceQuirks=!0,this.state=lt.DATA,this.emitCurrentDoctype(K);break}case ze.EOF:{this._err(cn.eofInDoctype),K.forceQuirks=!0,this.emitCurrentDoctype(K),this._emitEOFToken();break}default:this._err(cn.missingQuoteBeforeDoctypeSystemIdentifier),K.forceQuirks=!0,this.state=lt.BOGUS_DOCTYPE,this._stateBogusDoctype(g)}}_stateBeforeDoctypeSystemIdentifier(g){const K=this.currentToken;switch(g){case ze.SPACE:case ze.LINE_FEED:case ze.TABULATION:case ze.FORM_FEED:break;case ze.QUOTATION_MARK:{K.systemId="",this.state=lt.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case ze.APOSTROPHE:{K.systemId="",this.state=lt.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case ze.GREATER_THAN_SIGN:{this._err(cn.missingDoctypeSystemIdentifier),K.forceQuirks=!0,this.state=lt.DATA,this.emitCurrentDoctype(K);break}case ze.EOF:{this._err(cn.eofInDoctype),K.forceQuirks=!0,this.emitCurrentDoctype(K),this._emitEOFToken();break}default:this._err(cn.missingQuoteBeforeDoctypeSystemIdentifier),K.forceQuirks=!0,this.state=lt.BOGUS_DOCTYPE,this._stateBogusDoctype(g)}}_stateDoctypeSystemIdentifierDoubleQuoted(g){const K=this.currentToken;switch(g){case ze.QUOTATION_MARK:{this.state=lt.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case ze.NULL:{this._err(cn.unexpectedNullCharacter),K.systemId+=rn;break}case ze.GREATER_THAN_SIGN:{this._err(cn.abruptDoctypeSystemIdentifier),K.forceQuirks=!0,this.emitCurrentDoctype(K),this.state=lt.DATA;break}case ze.EOF:{this._err(cn.eofInDoctype),K.forceQuirks=!0,this.emitCurrentDoctype(K),this._emitEOFToken();break}default:K.systemId+=String.fromCodePoint(g)}}_stateDoctypeSystemIdentifierSingleQuoted(g){const K=this.currentToken;switch(g){case ze.APOSTROPHE:{this.state=lt.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case ze.NULL:{this._err(cn.unexpectedNullCharacter),K.systemId+=rn;break}case ze.GREATER_THAN_SIGN:{this._err(cn.abruptDoctypeSystemIdentifier),K.forceQuirks=!0,this.emitCurrentDoctype(K),this.state=lt.DATA;break}case ze.EOF:{this._err(cn.eofInDoctype),K.forceQuirks=!0,this.emitCurrentDoctype(K),this._emitEOFToken();break}default:K.systemId+=String.fromCodePoint(g)}}_stateAfterDoctypeSystemIdentifier(g){const K=this.currentToken;switch(g){case ze.SPACE:case ze.LINE_FEED:case ze.TABULATION:case ze.FORM_FEED:break;case ze.GREATER_THAN_SIGN:{this.emitCurrentDoctype(K),this.state=lt.DATA;break}case ze.EOF:{this._err(cn.eofInDoctype),K.forceQuirks=!0,this.emitCurrentDoctype(K),this._emitEOFToken();break}default:this._err(cn.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=lt.BOGUS_DOCTYPE,this._stateBogusDoctype(g)}}_stateBogusDoctype(g){const K=this.currentToken;switch(g){case ze.GREATER_THAN_SIGN:{this.emitCurrentDoctype(K),this.state=lt.DATA;break}case ze.NULL:{this._err(cn.unexpectedNullCharacter);break}case ze.EOF:{this.emitCurrentDoctype(K),this._emitEOFToken();break}default:}}_stateCdataSection(g){switch(g){case ze.RIGHT_SQUARE_BRACKET:{this.state=lt.CDATA_SECTION_BRACKET;break}case ze.EOF:{this._err(cn.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(g)}}_stateCdataSectionBracket(g){g===ze.RIGHT_SQUARE_BRACKET?this.state=lt.CDATA_SECTION_END:(this._emitChars("]"),this.state=lt.CDATA_SECTION,this._stateCdataSection(g))}_stateCdataSectionEnd(g){switch(g){case ze.GREATER_THAN_SIGN:{this.state=lt.DATA;break}case ze.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=lt.CDATA_SECTION,this._stateCdataSection(g)}}_stateCharacterReference(){let g=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(g<0)if(this.preprocessor.lastChunkWritten)g=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}g===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(ze.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&oe(this.preprocessor.peek(1))?lt.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(g){oe(g)?this._flushCodePointConsumedAsCharacterReference(g):(g===ze.SEMICOLON&&this._err(cn.unknownNamedCharacterReference),this.state=this.returnState,this._callState(g))}}const Fi=new Set([L.DD,L.DT,L.LI,L.OPTGROUP,L.OPTION,L.P,L.RB,L.RP,L.RT,L.RTC]),qt=new Set([...Fi,L.CAPTION,L.COLGROUP,L.TBODY,L.TD,L.TFOOT,L.TH,L.THEAD,L.TR]),xi=new Set([L.APPLET,L.CAPTION,L.HTML,L.MARQUEE,L.OBJECT,L.TABLE,L.TD,L.TEMPLATE,L.TH]),Xt=new Set([...xi,L.OL,L.UL]),Li=new Set([...xi,L.BUTTON]),Yr=new Set([L.ANNOTATION_XML,L.MI,L.MN,L.MO,L.MS,L.MTEXT]),Mt=new Set([L.DESC,L.FOREIGN_OBJECT,L.TITLE]),Qr=new Set([L.TR,L.TEMPLATE,L.HTML]),tn=new Set([L.TBODY,L.TFOOT,L.THEAD,L.TEMPLATE,L.HTML]),Oi=new Set([L.TABLE,L.TEMPLATE,L.HTML]),Ei=new Set([L.TD,L.TH]);class or{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(g,K,nt){this.treeAdapter=K,this.handler=nt,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=L.UNKNOWN,this.current=g}_indexOf(g){return this.items.lastIndexOf(g,this.stackTop)}_isInTemplate(){return this.currentTagId===L.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===ot.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(g,K){this.stackTop++,this.items[this.stackTop]=g,this.current=g,this.tagIDs[this.stackTop]=K,this.currentTagId=K,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(g,K,!0)}pop(){const g=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(g,!0)}replace(g,K){const nt=this._indexOf(g);this.items[nt]=K,nt===this.stackTop&&(this.current=K)}insertAfter(g,K,nt){const gn=this._indexOf(g)+1;this.items.splice(gn,0,K),this.tagIDs.splice(gn,0,nt),this.stackTop++,gn===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,gn===this.stackTop)}popUntilTagNamePopped(g){let K=this.stackTop+1;do K=this.tagIDs.lastIndexOf(g,K-1);while(K>0&&this.treeAdapter.getNamespaceURI(this.items[K])!==ot.HTML);this.shortenToLength(K<0?0:K)}shortenToLength(g){for(;this.stackTop>=g;){const K=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(K,this.stackTop<g)}}popUntilElementPopped(g){const K=this._indexOf(g);this.shortenToLength(K<0?0:K)}popUntilPopped(g,K){const nt=this._indexOfTagNames(g,K);this.shortenToLength(nt<0?0:nt)}popUntilNumberedHeaderPopped(){this.popUntilPopped(An,ot.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Ei,ot.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(g,K){for(let nt=this.stackTop;nt>=0;nt--)if(g.has(this.tagIDs[nt])&&this.treeAdapter.getNamespaceURI(this.items[nt])===K)return nt;return-1}clearBackTo(g,K){const nt=this._indexOfTagNames(g,K);this.shortenToLength(nt+1)}clearBackToTableContext(){this.clearBackTo(Oi,ot.HTML)}clearBackToTableBodyContext(){this.clearBackTo(tn,ot.HTML)}clearBackToTableRowContext(){this.clearBackTo(Qr,ot.HTML)}remove(g){const K=this._indexOf(g);K>=0&&(K===this.stackTop?this.pop():(this.items.splice(K,1),this.tagIDs.splice(K,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(g,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===L.BODY?this.items[1]:null}contains(g){return this._indexOf(g)>-1}getCommonAncestor(g){const K=this._indexOf(g)-1;return K>=0?this.items[K]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===L.HTML}hasInDynamicScope(g,K){for(let nt=this.stackTop;nt>=0;nt--){const gn=this.tagIDs[nt];switch(this.treeAdapter.getNamespaceURI(this.items[nt])){case ot.HTML:{if(gn===g)return!0;if(K.has(gn))return!1;break}case ot.SVG:{if(Mt.has(gn))return!1;break}case ot.MATHML:{if(Yr.has(gn))return!1;break}}}return!0}hasInScope(g){return this.hasInDynamicScope(g,xi)}hasInListItemScope(g){return this.hasInDynamicScope(g,Xt)}hasInButtonScope(g){return this.hasInDynamicScope(g,Li)}hasNumberedHeaderInScope(){for(let g=this.stackTop;g>=0;g--){const K=this.tagIDs[g];switch(this.treeAdapter.getNamespaceURI(this.items[g])){case ot.HTML:{if(An.has(K))return!0;if(xi.has(K))return!1;break}case ot.SVG:{if(Mt.has(K))return!1;break}case ot.MATHML:{if(Yr.has(K))return!1;break}}}return!0}hasInTableScope(g){for(let K=this.stackTop;K>=0;K--)if(this.treeAdapter.getNamespaceURI(this.items[K])===ot.HTML)switch(this.tagIDs[K]){case g:return!0;case L.TABLE:case L.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let g=this.stackTop;g>=0;g--)if(this.treeAdapter.getNamespaceURI(this.items[g])===ot.HTML)switch(this.tagIDs[g]){case L.TBODY:case L.THEAD:case L.TFOOT:return!0;case L.TABLE:case L.HTML:return!1}return!0}hasInSelectScope(g){for(let K=this.stackTop;K>=0;K--)if(this.treeAdapter.getNamespaceURI(this.items[K])===ot.HTML)switch(this.tagIDs[K]){case g:return!0;case L.OPTION:case L.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;Fi.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;qt.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(g){for(;this.currentTagId!==g&&qt.has(this.currentTagId);)this.pop()}}const tr=3;var Zn;(function(d){d[d.Marker=0]="Marker",d[d.Element=1]="Element"})(Zn||(Zn={}));const he={type:Zn.Marker};class gr{constructor(g){this.treeAdapter=g,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(g,K){const nt=[],gn=K.length,Yn=this.treeAdapter.getTagName(g),wi=this.treeAdapter.getNamespaceURI(g);for(let Cr=0;Cr<this.entries.length;Cr++){const Hr=this.entries[Cr];if(Hr.type===Zn.Marker)break;const{element:Gn}=Hr;if(this.treeAdapter.getTagName(Gn)===Yn&&this.treeAdapter.getNamespaceURI(Gn)===wi){const Hi=this.treeAdapter.getAttrList(Gn);Hi.length===gn&&nt.push({idx:Cr,attrs:Hi})}}return nt}_ensureNoahArkCondition(g){if(this.entries.length<tr)return;const K=this.treeAdapter.getAttrList(g),nt=this._getNoahArkConditionCandidates(g,K);if(nt.length<tr)return;const gn=new Map(K.map(wi=>[wi.name,wi.value]));let Yn=0;for(let wi=0;wi<nt.length;wi++){const Cr=nt[wi];Cr.attrs.every(Hr=>gn.get(Hr.name)===Hr.value)&&(Yn+=1,Yn>=tr&&this.entries.splice(Cr.idx,1))}}insertMarker(){this.entries.unshift(he)}pushElement(g,K){this._ensureNoahArkCondition(g),this.entries.unshift({type:Zn.Element,element:g,token:K})}insertElementAfterBookmark(g,K){const nt=this.entries.indexOf(this.bookmark);this.entries.splice(nt,0,{type:Zn.Element,element:g,token:K})}removeEntry(g){const K=this.entries.indexOf(g);K>=0&&this.entries.splice(K,1)}clearToLastMarker(){const g=this.entries.indexOf(he);g>=0?this.entries.splice(0,g+1):this.entries.length=0}getElementEntryInScopeWithTagName(g){const K=this.entries.find(nt=>nt.type===Zn.Marker||this.treeAdapter.getTagName(nt.element)===g);return K&&K.type===Zn.Element?K:null}getElementEntry(g){return this.entries.find(K=>K.type===Zn.Element&&K.element===g)}}const br={createDocument(){return{nodeName:"#document",mode:yt.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(d,g,K){return{nodeName:d,tagName:d,attrs:K,namespaceURI:g,childNodes:[],parentNode:null}},createCommentNode(d){return{nodeName:"#comment",data:d,parentNode:null}},createTextNode(d){return{nodeName:"#text",value:d,parentNode:null}},appendChild(d,g){d.childNodes.push(g),g.parentNode=d},insertBefore(d,g,K){const nt=d.childNodes.indexOf(K);d.childNodes.splice(nt,0,g),g.parentNode=d},setTemplateContent(d,g){d.content=g},getTemplateContent(d){return d.content},setDocumentType(d,g,K,nt){const gn=d.childNodes.find(Yn=>Yn.nodeName==="#documentType");if(gn)gn.name=g,gn.publicId=K,gn.systemId=nt;else{const Yn={nodeName:"#documentType",name:g,publicId:K,systemId:nt,parentNode:null};br.appendChild(d,Yn)}},setDocumentMode(d,g){d.mode=g},getDocumentMode(d){return d.mode},detachNode(d){if(d.parentNode){const g=d.parentNode.childNodes.indexOf(d);d.parentNode.childNodes.splice(g,1),d.parentNode=null}},insertText(d,g){if(d.childNodes.length>0){const K=d.childNodes[d.childNodes.length-1];if(br.isTextNode(K)){K.value+=g;return}}br.appendChild(d,br.createTextNode(g))},insertTextBefore(d,g,K){const nt=d.childNodes[d.childNodes.indexOf(K)-1];nt&&br.isTextNode(nt)?nt.value+=g:br.insertBefore(d,br.createTextNode(g),K)},adoptAttributes(d,g){const K=new Set(d.attrs.map(nt=>nt.name));for(let nt=0;nt<g.length;nt++)K.has(g[nt].name)||d.attrs.push(g[nt])},getFirstChild(d){return d.childNodes[0]},getChildNodes(d){return d.childNodes},getParentNode(d){return d.parentNode},getAttrList(d){return d.attrs},getTagName(d){return d.tagName},getNamespaceURI(d){return d.namespaceURI},getTextNodeContent(d){return d.value},getCommentNodeContent(d){return d.data},getDocumentTypeNodeName(d){return d.name},getDocumentTypeNodePublicId(d){return d.publicId},getDocumentTypeNodeSystemId(d){return d.systemId},isTextNode(d){return d.nodeName==="#text"},isCommentNode(d){return d.nodeName==="#comment"},isDocumentTypeNode(d){return d.nodeName==="#documentType"},isElementNode(d){return Object.prototype.hasOwnProperty.call(d,"tagName")},setNodeSourceCodeLocation(d,g){d.sourceCodeLocation=g},getNodeSourceCodeLocation(d){return d.sourceCodeLocation},updateNodeSourceCodeLocation(d,g){d.sourceCodeLocation=Po(Po({},d.sourceCodeLocation),g)}},cr="html",Br="about:legacy-compat",Zi="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Ri=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],Ai=[...Ri,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],hr=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Ki=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Lr=[...Ki,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Wr(d,g){return g.some(K=>d.startsWith(K))}function eo(d){return d.name===cr&&d.publicId===null&&(d.systemId===null||d.systemId===Br)}function Lo(d){if(d.name!==cr)return yt.QUIRKS;const{systemId:g}=d;if(g&&g.toLowerCase()===Zi)return yt.QUIRKS;let{publicId:K}=d;if(K!==null){if(K=K.toLowerCase(),hr.has(K))return yt.QUIRKS;let nt=g===null?Ai:Ri;if(Wr(K,nt))return yt.QUIRKS;if(nt=g===null?Ki:Lr,Wr(K,nt))return yt.LIMITED_QUIRKS}return yt.NO_QUIRKS}const pi={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},pa="definitionurl",Uo="definitionURL",oa=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(d=>[d.toLowerCase(),d])),ma=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:ot.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:ot.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:ot.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:ot.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:ot.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:ot.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:ot.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:ot.XML}],["xml:space",{prefix:"xml",name:"space",namespace:ot.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:ot.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:ot.XMLNS}]]),$a=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(d=>[d.toLowerCase(),d])),is=new Set([L.B,L.BIG,L.BLOCKQUOTE,L.BODY,L.BR,L.CENTER,L.CODE,L.DD,L.DIV,L.DL,L.DT,L.EM,L.EMBED,L.H1,L.H2,L.H3,L.H4,L.H5,L.H6,L.HEAD,L.HR,L.I,L.IMG,L.LI,L.LISTING,L.MENU,L.META,L.NOBR,L.OL,L.P,L.PRE,L.RUBY,L.S,L.SMALL,L.SPAN,L.STRONG,L.STRIKE,L.SUB,L.SUP,L.TABLE,L.TT,L.U,L.UL,L.VAR]);function ka(d){const g=d.tagID;return g===L.FONT&&d.attrs.some(({name:nt})=>nt===fn.COLOR||nt===fn.SIZE||nt===fn.FACE)||is.has(g)}function ss(d){for(let g=0;g<d.attrs.length;g++)if(d.attrs[g].name===pa){d.attrs[g].name=Uo;break}}function Ua(d){for(let g=0;g<d.attrs.length;g++){const K=oa.get(d.attrs[g].name);K!=null&&(d.attrs[g].name=K)}}function Go(d){for(let g=0;g<d.attrs.length;g++){const K=ma.get(d.attrs[g].name);K&&(d.attrs[g].prefix=K.prefix,d.attrs[g].name=K.name,d.attrs[g].namespace=K.namespace)}}function Zt(d){const g=$a.get(d.tagName);g!=null&&(d.tagName=g,d.tagID=Jt(d.tagName))}function Pa(d,g){return g===ot.MATHML&&(d===L.MI||d===L.MO||d===L.MN||d===L.MS||d===L.MTEXT)}function ql(d,g,K){if(g===ot.MATHML&&d===L.ANNOTATION_XML){for(let nt=0;nt<K.length;nt++)if(K[nt].name===fn.ENCODING){const gn=K[nt].value.toLowerCase();return gn===pi.TEXT_HTML||gn===pi.APPLICATION_XML}}return g===ot.SVG&&(d===L.FOREIGN_OBJECT||d===L.DESC||d===L.TITLE)}function nl(d,g,K,nt){return(!nt||nt===ot.HTML)&&ql(d,g,K)||(!nt||nt===ot.MATHML)&&Pa(d,g)}const uo="hidden",No=8,go=3;var Ot;(function(d){d[d.INITIAL=0]="INITIAL",d[d.BEFORE_HTML=1]="BEFORE_HTML",d[d.BEFORE_HEAD=2]="BEFORE_HEAD",d[d.IN_HEAD=3]="IN_HEAD",d[d.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",d[d.AFTER_HEAD=5]="AFTER_HEAD",d[d.IN_BODY=6]="IN_BODY",d[d.TEXT=7]="TEXT",d[d.IN_TABLE=8]="IN_TABLE",d[d.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",d[d.IN_CAPTION=10]="IN_CAPTION",d[d.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",d[d.IN_TABLE_BODY=12]="IN_TABLE_BODY",d[d.IN_ROW=13]="IN_ROW",d[d.IN_CELL=14]="IN_CELL",d[d.IN_SELECT=15]="IN_SELECT",d[d.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",d[d.IN_TEMPLATE=17]="IN_TEMPLATE",d[d.AFTER_BODY=18]="AFTER_BODY",d[d.IN_FRAMESET=19]="IN_FRAMESET",d[d.AFTER_FRAMESET=20]="AFTER_FRAMESET",d[d.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",d[d.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(Ot||(Ot={}));const Pr={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},co=new Set([L.TABLE,L.TBODY,L.TFOOT,L.THEAD,L.TR]),xa={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:br,onParseError:null};class xr{constructor(g,K,nt=null,gn=null){this.fragmentContext=nt,this.scriptHandler=gn,this.currentToken=null,this.stopped=!1,this.insertionMode=Ot.INITIAL,this.originalInsertionMode=Ot.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options=Po(Po({},xa),g),this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=K!=null?K:this.treeAdapter.createDocument(),this.tokenizer=new Ln(this.options,this),this.activeFormattingElements=new gr(this.treeAdapter),this.fragmentContextID=nt?Jt(this.treeAdapter.getTagName(nt)):L.UNKNOWN,this._setContextModes(nt!=null?nt:this.document,this.fragmentContextID),this.openElements=new or(this.document,this.treeAdapter,this)}static parse(g,K){const nt=new this(K);return nt.tokenizer.write(g,!0),nt.document}static getFragmentParser(g,K){const nt=Po(Po({},xa),K);g!=null||(g=nt.treeAdapter.createElement(je.TEMPLATE,ot.HTML,[]));const gn=nt.treeAdapter.createElement("documentmock",ot.HTML,[]),Yn=new this(nt,gn,g);return Yn.fragmentContextID===L.TEMPLATE&&Yn.tmplInsertionModeStack.unshift(Ot.IN_TEMPLATE),Yn._initTokenizerForFragmentParsing(),Yn._insertFakeRootElement(),Yn._resetInsertionMode(),Yn._findFormInFragmentContext(),Yn}getFragment(){const g=this.treeAdapter.getFirstChild(this.document),K=this.treeAdapter.createDocumentFragment();return this._adoptNodes(g,K),K}_err(g,K,nt){var gn;if(!this.onParseError)return;const Yn=(gn=g.location)!==null&&gn!==void 0?gn:Pr,wi={code:K,startLine:Yn.startLine,startCol:Yn.startCol,startOffset:Yn.startOffset,endLine:nt?Yn.startLine:Yn.endLine,endCol:nt?Yn.startCol:Yn.endCol,endOffset:nt?Yn.startOffset:Yn.endOffset};this.onParseError(wi)}onItemPush(g,K,nt){var gn,Yn;(Yn=(gn=this.treeAdapter).onItemPush)===null||Yn===void 0||Yn.call(gn,g),nt&&this.openElements.stackTop>0&&this._setContextModes(g,K)}onItemPop(g,K){var nt,gn;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(g,this.currentToken),(gn=(nt=this.treeAdapter).onItemPop)===null||gn===void 0||gn.call(nt,g,this.openElements.current),K){let Yn,wi;this.openElements.stackTop===0&&this.fragmentContext?(Yn=this.fragmentContext,wi=this.fragmentContextID):{current:Yn,currentTagId:wi}=this.openElements,this._setContextModes(Yn,wi)}}_setContextModes(g,K){const nt=g===this.document||this.treeAdapter.getNamespaceURI(g)===ot.HTML;this.currentNotInHTML=!nt,this.tokenizer.inForeignNode=!nt&&!this._isIntegrationPoint(K,g)}_switchToTextParsing(g,K){this._insertElement(g,ot.HTML),this.tokenizer.state=K,this.originalInsertionMode=this.insertionMode,this.insertionMode=Ot.TEXT}switchToPlaintextParsing(){this.insertionMode=Ot.TEXT,this.originalInsertionMode=Ot.IN_BODY,this.tokenizer.state=Mi.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let g=this.fragmentContext;for(;g;){if(this.treeAdapter.getTagName(g)===je.FORM){this.formElement=g;break}g=this.treeAdapter.getParentNode(g)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==ot.HTML))switch(this.fragmentContextID){case L.TITLE:case L.TEXTAREA:{this.tokenizer.state=Mi.RCDATA;break}case L.STYLE:case L.XMP:case L.IFRAME:case L.NOEMBED:case L.NOFRAMES:case L.NOSCRIPT:{this.tokenizer.state=Mi.RAWTEXT;break}case L.SCRIPT:{this.tokenizer.state=Mi.SCRIPT_DATA;break}case L.PLAINTEXT:{this.tokenizer.state=Mi.PLAINTEXT;break}default:}}_setDocumentType(g){const K=g.name||"",nt=g.publicId||"",gn=g.systemId||"";if(this.treeAdapter.setDocumentType(this.document,K,nt,gn),g.location){const wi=this.treeAdapter.getChildNodes(this.document).find(Cr=>this.treeAdapter.isDocumentTypeNode(Cr));wi&&this.treeAdapter.setNodeSourceCodeLocation(wi,g.location)}}_attachElementToTree(g,K){if(this.options.sourceCodeLocationInfo){const nt=K&&cd(Po({},K),{startTag:K});this.treeAdapter.setNodeSourceCodeLocation(g,nt)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(g);else{const nt=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(nt,g)}}_appendElement(g,K){const nt=this.treeAdapter.createElement(g.tagName,K,g.attrs);this._attachElementToTree(nt,g.location)}_insertElement(g,K){const nt=this.treeAdapter.createElement(g.tagName,K,g.attrs);this._attachElementToTree(nt,g.location),this.openElements.push(nt,g.tagID)}_insertFakeElement(g,K){const nt=this.treeAdapter.createElement(g,ot.HTML,[]);this._attachElementToTree(nt,null),this.openElements.push(nt,K)}_insertTemplate(g){const K=this.treeAdapter.createElement(g.tagName,ot.HTML,g.attrs),nt=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(K,nt),this._attachElementToTree(K,g.location),this.openElements.push(K,g.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(nt,null)}_insertFakeRootElement(){const g=this.treeAdapter.createElement(je.HTML,ot.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(g,null),this.treeAdapter.appendChild(this.openElements.current,g),this.openElements.push(g,L.HTML)}_appendCommentNode(g,K){const nt=this.treeAdapter.createCommentNode(g.data);this.treeAdapter.appendChild(K,nt),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(nt,g.location)}_insertCharacters(g){let K,nt;if(this._shouldFosterParentOnInsertion()?({parent:K,beforeElement:nt}=this._findFosterParentingLocation(),nt?this.treeAdapter.insertTextBefore(K,g.chars,nt):this.treeAdapter.insertText(K,g.chars)):(K=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(K,g.chars)),!g.location)return;const gn=this.treeAdapter.getChildNodes(K),Yn=nt?gn.lastIndexOf(nt):gn.length,wi=gn[Yn-1];if(this.treeAdapter.getNodeSourceCodeLocation(wi)){const{endLine:Hr,endCol:Gn,endOffset:Hi}=g.location;this.treeAdapter.updateNodeSourceCodeLocation(wi,{endLine:Hr,endCol:Gn,endOffset:Hi})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(wi,g.location)}_adoptNodes(g,K){for(let nt=this.treeAdapter.getFirstChild(g);nt;nt=this.treeAdapter.getFirstChild(g))this.treeAdapter.detachNode(nt),this.treeAdapter.appendChild(K,nt)}_setEndLocation(g,K){if(this.treeAdapter.getNodeSourceCodeLocation(g)&&K.location){const nt=K.location,gn=this.treeAdapter.getTagName(g),Yn=K.type===ei.END_TAG&&gn===K.tagName?{endTag:Po({},nt),endLine:nt.endLine,endCol:nt.endCol,endOffset:nt.endOffset}:{endLine:nt.startLine,endCol:nt.startCol,endOffset:nt.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(g,Yn)}}shouldProcessStartTagTokenInForeignContent(g){if(!this.currentNotInHTML)return!1;let K,nt;return this.openElements.stackTop===0&&this.fragmentContext?(K=this.fragmentContext,nt=this.fragmentContextID):{current:K,currentTagId:nt}=this.openElements,g.tagID===L.SVG&&this.treeAdapter.getTagName(K)===je.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(K)===ot.MATHML?!1:this.tokenizer.inForeignNode||(g.tagID===L.MGLYPH||g.tagID===L.MALIGNMARK)&&!this._isIntegrationPoint(nt,K,ot.HTML)}_processToken(g){switch(g.type){case ei.CHARACTER:{this.onCharacter(g);break}case ei.NULL_CHARACTER:{this.onNullCharacter(g);break}case ei.COMMENT:{this.onComment(g);break}case ei.DOCTYPE:{this.onDoctype(g);break}case ei.START_TAG:{this._processStartTag(g);break}case ei.END_TAG:{this.onEndTag(g);break}case ei.EOF:{this.onEof(g);break}case ei.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(g);break}}}_isIntegrationPoint(g,K,nt){const gn=this.treeAdapter.getNamespaceURI(K),Yn=this.treeAdapter.getAttrList(K);return nl(g,gn,Yn,nt)}_reconstructActiveFormattingElements(){const g=this.activeFormattingElements.entries.length;if(g){const K=this.activeFormattingElements.entries.findIndex(gn=>gn.type===Zn.Marker||this.openElements.contains(gn.element)),nt=K<0?g-1:K-1;for(let gn=nt;gn>=0;gn--){const Yn=this.activeFormattingElements.entries[gn];this._insertElement(Yn.token,this.treeAdapter.getNamespaceURI(Yn.element)),Yn.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Ot.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(L.P),this.openElements.popUntilTagNamePopped(L.P)}_resetInsertionMode(){for(let g=this.openElements.stackTop;g>=0;g--)switch(g===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[g]){case L.TR:{this.insertionMode=Ot.IN_ROW;return}case L.TBODY:case L.THEAD:case L.TFOOT:{this.insertionMode=Ot.IN_TABLE_BODY;return}case L.CAPTION:{this.insertionMode=Ot.IN_CAPTION;return}case L.COLGROUP:{this.insertionMode=Ot.IN_COLUMN_GROUP;return}case L.TABLE:{this.insertionMode=Ot.IN_TABLE;return}case L.BODY:{this.insertionMode=Ot.IN_BODY;return}case L.FRAMESET:{this.insertionMode=Ot.IN_FRAMESET;return}case L.SELECT:{this._resetInsertionModeForSelect(g);return}case L.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case L.HTML:{this.insertionMode=this.headElement?Ot.AFTER_HEAD:Ot.BEFORE_HEAD;return}case L.TD:case L.TH:{if(g>0){this.insertionMode=Ot.IN_CELL;return}break}case L.HEAD:{if(g>0){this.insertionMode=Ot.IN_HEAD;return}break}}this.insertionMode=Ot.IN_BODY}_resetInsertionModeForSelect(g){if(g>0)for(let K=g-1;K>0;K--){const nt=this.openElements.tagIDs[K];if(nt===L.TEMPLATE)break;if(nt===L.TABLE){this.insertionMode=Ot.IN_SELECT_IN_TABLE;return}}this.insertionMode=Ot.IN_SELECT}_isElementCausesFosterParenting(g){return co.has(g)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let g=this.openElements.stackTop;g>=0;g--){const K=this.openElements.items[g];switch(this.openElements.tagIDs[g]){case L.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(K)===ot.HTML)return{parent:this.treeAdapter.getTemplateContent(K),beforeElement:null};break}case L.TABLE:{const nt=this.treeAdapter.getParentNode(K);return nt?{parent:nt,beforeElement:K}:{parent:this.openElements.items[g-1],beforeElement:null}}default:}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(g){const K=this._findFosterParentingLocation();K.beforeElement?this.treeAdapter.insertBefore(K.parent,g,K.beforeElement):this.treeAdapter.appendChild(K.parent,g)}_isSpecialElement(g,K){const nt=this.treeAdapter.getNamespaceURI(g);return xn[nt].has(K)}onCharacter(g){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){J(this,g);return}switch(this.insertionMode){case Ot.INITIAL:{Vo(this,g);break}case Ot.BEFORE_HTML:{dl(this,g);break}case Ot.BEFORE_HEAD:{Bo(this,g);break}case Ot.IN_HEAD:{qa(this,g);break}case Ot.IN_HEAD_NO_SCRIPT:{il(this,g);break}case Ot.AFTER_HEAD:{Ga(this,g);break}case Ot.IN_BODY:case Ot.IN_CAPTION:case Ot.IN_CELL:case Ot.IN_TEMPLATE:{Vi(this,g);break}case Ot.TEXT:case Ot.IN_SELECT:case Ot.IN_SELECT_IN_TABLE:{this._insertCharacters(g);break}case Ot.IN_TABLE:case Ot.IN_TABLE_BODY:case Ot.IN_ROW:{Ir(this,g);break}case Ot.IN_TABLE_TEXT:{Dl(this,g);break}case Ot.IN_COLUMN_GROUP:{mu(this,g);break}case Ot.AFTER_BODY:{zn(this,g);break}case Ot.AFTER_AFTER_BODY:{E(this,g);break}default:}}onNullCharacter(g){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){W(this,g);return}switch(this.insertionMode){case Ot.INITIAL:{Vo(this,g);break}case Ot.BEFORE_HTML:{dl(this,g);break}case Ot.BEFORE_HEAD:{Bo(this,g);break}case Ot.IN_HEAD:{qa(this,g);break}case Ot.IN_HEAD_NO_SCRIPT:{il(this,g);break}case Ot.AFTER_HEAD:{Ga(this,g);break}case Ot.TEXT:{this._insertCharacters(g);break}case Ot.IN_TABLE:case Ot.IN_TABLE_BODY:case Ot.IN_ROW:{Ir(this,g);break}case Ot.IN_COLUMN_GROUP:{mu(this,g);break}case Ot.AFTER_BODY:{zn(this,g);break}case Ot.AFTER_AFTER_BODY:{E(this,g);break}default:}}onComment(g){if(this.skipNextNewLine=!1,this.currentNotInHTML){Ss(this,g);return}switch(this.insertionMode){case Ot.INITIAL:case Ot.BEFORE_HTML:case Ot.BEFORE_HEAD:case Ot.IN_HEAD:case Ot.IN_HEAD_NO_SCRIPT:case Ot.AFTER_HEAD:case Ot.IN_BODY:case Ot.IN_TABLE:case Ot.IN_CAPTION:case Ot.IN_COLUMN_GROUP:case Ot.IN_TABLE_BODY:case Ot.IN_ROW:case Ot.IN_CELL:case Ot.IN_SELECT:case Ot.IN_SELECT_IN_TABLE:case Ot.IN_TEMPLATE:case Ot.IN_FRAMESET:case Ot.AFTER_FRAMESET:{Ss(this,g);break}case Ot.IN_TABLE_TEXT:{yl(this,g);break}case Ot.AFTER_BODY:{ai(this,g);break}case Ot.AFTER_AFTER_BODY:case Ot.AFTER_AFTER_FRAMESET:{Ui(this,g);break}default:}}onDoctype(g){switch(this.skipNextNewLine=!1,this.insertionMode){case Ot.INITIAL:{Es(this,g);break}case Ot.BEFORE_HEAD:case Ot.IN_HEAD:case Ot.IN_HEAD_NO_SCRIPT:case Ot.AFTER_HEAD:{this._err(g,cn.misplacedDoctype);break}case Ot.IN_TABLE_TEXT:{yl(this,g);break}default:}}onStartTag(g){this.skipNextNewLine=!1,this.currentToken=g,this._processStartTag(g),g.selfClosing&&!g.ackSelfClosing&&this._err(g,cn.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(g){this.shouldProcessStartTagTokenInForeignContent(g)?Ae(this,g):this._startTagOutsideForeignContent(g)}_startTagOutsideForeignContent(g){switch(this.insertionMode){case Ot.INITIAL:{Vo(this,g);break}case Ot.BEFORE_HTML:{rs(this,g);break}case Ot.BEFORE_HEAD:{ws(this,g);break}case Ot.IN_HEAD:{Ia(this,g);break}case Ot.IN_HEAD_NO_SCRIPT:{Rl(this,g);break}case Ot.AFTER_HEAD:{rl(this,g);break}case Ot.IN_BODY:{Eo(this,g);break}case Ot.IN_TABLE:{Zs(this,g);break}case Ot.IN_TABLE_TEXT:{yl(this,g);break}case Ot.IN_CAPTION:{xl(this,g);break}case Ot.IN_COLUMN_GROUP:{Ys(this,g);break}case Ot.IN_TABLE_BODY:{nu(this,g);break}case Ot.IN_ROW:{Ws(this,g);break}case Ot.IN_CELL:{iu(this,g);break}case Ot.IN_SELECT:{we(this,g);break}case Ot.IN_SELECT_IN_TABLE:{dt(this,g);break}case Ot.IN_TEMPLATE:{_t(this,g);break}case Ot.AFTER_BODY:{bn(this,g);break}case Ot.IN_FRAMESET:{jn(this,g);break}case Ot.AFTER_FRAMESET:{hi(this,g);break}case Ot.AFTER_AFTER_BODY:{ti(this,g);break}case Ot.AFTER_AFTER_FRAMESET:{P(this,g);break}default:}}onEndTag(g){this.skipNextNewLine=!1,this.currentToken=g,this.currentNotInHTML?He(this,g):this._endTagOutsideForeignContent(g)}_endTagOutsideForeignContent(g){switch(this.insertionMode){case Ot.INITIAL:{Vo(this,g);break}case Ot.BEFORE_HTML:{Rr(this,g);break}case Ot.BEFORE_HEAD:{Os(this,g);break}case Ot.IN_HEAD:{fl(this,g);break}case Ot.IN_HEAD_NO_SCRIPT:{_o(this,g);break}case Ot.AFTER_HEAD:{hu(this,g);break}case Ot.IN_BODY:{la(this,g);break}case Ot.TEXT:{yo(this,g);break}case Ot.IN_TABLE:{Ao(this,g);break}case Ot.IN_TABLE_TEXT:{yl(this,g);break}case Ot.IN_CAPTION:{pu(this,g);break}case Ot.IN_COLUMN_GROUP:{Wl(this,g);break}case Ot.IN_TABLE_BODY:{Nu(this,g);break}case Ot.IN_ROW:{ys(this,g);break}case Ot.IN_CELL:{Au(this,g);break}case Ot.IN_SELECT:{De(this,g);break}case Ot.IN_SELECT_IN_TABLE:{xt(this,g);break}case Ot.IN_TEMPLATE:{Dt(this,g);break}case Ot.AFTER_BODY:{ln(this,g);break}case Ot.IN_FRAMESET:{$n(this,g);break}case Ot.AFTER_FRAMESET:{gi(this,g);break}case Ot.AFTER_AFTER_BODY:{E(this,g);break}default:}}onEof(g){switch(this.insertionMode){case Ot.INITIAL:{Vo(this,g);break}case Ot.BEFORE_HTML:{dl(this,g);break}case Ot.BEFORE_HEAD:{Bo(this,g);break}case Ot.IN_HEAD:{qa(this,g);break}case Ot.IN_HEAD_NO_SCRIPT:{il(this,g);break}case Ot.AFTER_HEAD:{Ga(this,g);break}case Ot.IN_BODY:case Ot.IN_TABLE:case Ot.IN_CAPTION:case Ot.IN_COLUMN_GROUP:case Ot.IN_TABLE_BODY:case Ot.IN_ROW:case Ot.IN_CELL:case Ot.IN_SELECT:case Ot.IN_SELECT_IN_TABLE:{La(this,g);break}case Ot.TEXT:{fu(this,g);break}case Ot.IN_TABLE_TEXT:{yl(this,g);break}case Ot.IN_TEMPLATE:{ve(this,g);break}case Ot.AFTER_BODY:case Ot.IN_FRAMESET:case Ot.AFTER_FRAMESET:case Ot.AFTER_AFTER_BODY:case Ot.AFTER_AFTER_FRAMESET:{Jo(this,g);break}default:}}onWhitespaceCharacter(g){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,g.chars.charCodeAt(0)===ze.LINE_FEED)){if(g.chars.length===1)return;g.chars=g.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(g);return}switch(this.insertionMode){case Ot.IN_HEAD:case Ot.IN_HEAD_NO_SCRIPT:case Ot.AFTER_HEAD:case Ot.TEXT:case Ot.IN_COLUMN_GROUP:case Ot.IN_SELECT:case Ot.IN_SELECT_IN_TABLE:case Ot.IN_FRAMESET:case Ot.AFTER_FRAMESET:{this._insertCharacters(g);break}case Ot.IN_BODY:case Ot.IN_CAPTION:case Ot.IN_CELL:case Ot.IN_TEMPLATE:case Ot.AFTER_BODY:case Ot.AFTER_AFTER_BODY:case Ot.AFTER_AFTER_FRAMESET:{_s(this,g);break}case Ot.IN_TABLE:case Ot.IN_TABLE_BODY:case Ot.IN_ROW:{Ir(this,g);break}case Ot.IN_TABLE_TEXT:{qu(this,g);break}default:}}}function wn(d,g){let K=d.activeFormattingElements.getElementEntryInScopeWithTagName(g.tagName);return K?d.openElements.contains(K.element)?d.openElements.hasInScope(g.tagID)||(K=null):(d.activeFormattingElements.removeEntry(K),K=null):Ko(d,g),K}function ar(d,g){let K=null,nt=d.openElements.stackTop;for(;nt>=0;nt--){const gn=d.openElements.items[nt];if(gn===g.element)break;d._isSpecialElement(gn,d.openElements.tagIDs[nt])&&(K=gn)}return K||(d.openElements.shortenToLength(nt<0?0:nt),d.activeFormattingElements.removeEntry(g)),K}function mi(d,g,K){let nt=g,gn=d.openElements.getCommonAncestor(g);for(let Yn=0,wi=gn;wi!==K;Yn++,wi=gn){gn=d.openElements.getCommonAncestor(wi);const Cr=d.activeFormattingElements.getElementEntry(wi),Hr=Cr&&Yn>=go;!Cr||Hr?(Hr&&d.activeFormattingElements.removeEntry(Cr),d.openElements.remove(wi)):(wi=Wo(d,Cr),nt===g&&(d.activeFormattingElements.bookmark=Cr),d.treeAdapter.detachNode(nt),d.treeAdapter.appendChild(wi,nt),nt=wi)}return nt}function Wo(d,g){const K=d.treeAdapter.getNamespaceURI(g.element),nt=d.treeAdapter.createElement(g.token.tagName,K,g.token.attrs);return d.openElements.replace(g.element,nt),g.element=nt,nt}function ga(d,g,K){const nt=d.treeAdapter.getTagName(g),gn=Jt(nt);if(d._isElementCausesFosterParenting(gn))d._fosterParentElement(K);else{const Yn=d.treeAdapter.getNamespaceURI(g);gn===L.TEMPLATE&&Yn===ot.HTML&&(g=d.treeAdapter.getTemplateContent(g)),d.treeAdapter.appendChild(g,K)}}function Ja(d,g,K){const nt=d.treeAdapter.getNamespaceURI(K.element),{token:gn}=K,Yn=d.treeAdapter.createElement(gn.tagName,nt,gn.attrs);d._adoptNodes(g,Yn),d.treeAdapter.appendChild(g,Yn),d.activeFormattingElements.insertElementAfterBookmark(Yn,gn),d.activeFormattingElements.removeEntry(K),d.openElements.remove(K.element),d.openElements.insertAfter(g,Yn,gn.tagID)}function Ms(d,g){for(let K=0;K<No;K++){const nt=wn(d,g);if(!nt)break;const gn=ar(d,nt);if(!gn)break;d.activeFormattingElements.bookmark=nt;const Yn=mi(d,gn,nt.element),wi=d.openElements.getCommonAncestor(nt.element);d.treeAdapter.detachNode(Yn),wi&&ga(d,wi,Yn),Ja(d,gn,nt)}}function Ss(d,g){d._appendCommentNode(g,d.openElements.currentTmplContentOrNode)}function ai(d,g){d._appendCommentNode(g,d.openElements.items[0])}function Ui(d,g){d._appendCommentNode(g,d.document)}function Jo(d,g){if(d.stopped=!0,g.location){const K=d.fragmentContext?0:2;for(let nt=d.openElements.stackTop;nt>=K;nt--)d._setEndLocation(d.openElements.items[nt],g);if(!d.fragmentContext&&d.openElements.stackTop>=0){const nt=d.openElements.items[0],gn=d.treeAdapter.getNodeSourceCodeLocation(nt);if(gn&&!gn.endTag&&(d._setEndLocation(nt,g),d.openElements.stackTop>=1)){const Yn=d.openElements.items[1],wi=d.treeAdapter.getNodeSourceCodeLocation(Yn);wi&&!wi.endTag&&d._setEndLocation(Yn,g)}}}}function Es(d,g){d._setDocumentType(g);const K=g.forceQuirks?yt.QUIRKS:Lo(g);eo(g)||d._err(g,cn.nonConformingDoctype),d.treeAdapter.setDocumentMode(d.document,K),d.insertionMode=Ot.BEFORE_HTML}function Vo(d,g){d._err(g,cn.missingDoctype,!0),d.treeAdapter.setDocumentMode(d.document,yt.QUIRKS),d.insertionMode=Ot.BEFORE_HTML,d._processToken(g)}function rs(d,g){g.tagID===L.HTML?(d._insertElement(g,ot.HTML),d.insertionMode=Ot.BEFORE_HEAD):dl(d,g)}function Rr(d,g){const K=g.tagID;(K===L.HTML||K===L.HEAD||K===L.BODY||K===L.BR)&&dl(d,g)}function dl(d,g){d._insertFakeRootElement(),d.insertionMode=Ot.BEFORE_HEAD,d._processToken(g)}function ws(d,g){switch(g.tagID){case L.HTML:{Eo(d,g);break}case L.HEAD:{d._insertElement(g,ot.HTML),d.headElement=d.openElements.current,d.insertionMode=Ot.IN_HEAD;break}default:Bo(d,g)}}function Os(d,g){const K=g.tagID;K===L.HEAD||K===L.BODY||K===L.HTML||K===L.BR?Bo(d,g):d._err(g,cn.endTagWithoutMatchingOpenElement)}function Bo(d,g){d._insertFakeElement(je.HEAD,L.HEAD),d.headElement=d.openElements.current,d.insertionMode=Ot.IN_HEAD,d._processToken(g)}function Ia(d,g){switch(g.tagID){case L.HTML:{Eo(d,g);break}case L.BASE:case L.BASEFONT:case L.BGSOUND:case L.LINK:case L.META:{d._appendElement(g,ot.HTML),g.ackSelfClosing=!0;break}case L.TITLE:{d._switchToTextParsing(g,Mi.RCDATA);break}case L.NOSCRIPT:{d.options.scriptingEnabled?d._switchToTextParsing(g,Mi.RAWTEXT):(d._insertElement(g,ot.HTML),d.insertionMode=Ot.IN_HEAD_NO_SCRIPT);break}case L.NOFRAMES:case L.STYLE:{d._switchToTextParsing(g,Mi.RAWTEXT);break}case L.SCRIPT:{d._switchToTextParsing(g,Mi.SCRIPT_DATA);break}case L.TEMPLATE:{d._insertTemplate(g),d.activeFormattingElements.insertMarker(),d.framesetOk=!1,d.insertionMode=Ot.IN_TEMPLATE,d.tmplInsertionModeStack.unshift(Ot.IN_TEMPLATE);break}case L.HEAD:{d._err(g,cn.misplacedStartTagForHeadElement);break}default:qa(d,g)}}function fl(d,g){switch(g.tagID){case L.HEAD:{d.openElements.pop(),d.insertionMode=Ot.AFTER_HEAD;break}case L.BODY:case L.BR:case L.HTML:{qa(d,g);break}case L.TEMPLATE:{ja(d,g);break}default:d._err(g,cn.endTagWithoutMatchingOpenElement)}}function ja(d,g){d.openElements.tmplCount>0?(d.openElements.generateImpliedEndTagsThoroughly(),d.openElements.currentTagId!==L.TEMPLATE&&d._err(g,cn.closingOfElementWithOpenChildElements),d.openElements.popUntilTagNamePopped(L.TEMPLATE),d.activeFormattingElements.clearToLastMarker(),d.tmplInsertionModeStack.shift(),d._resetInsertionMode()):d._err(g,cn.endTagWithoutMatchingOpenElement)}function qa(d,g){d.openElements.pop(),d.insertionMode=Ot.AFTER_HEAD,d._processToken(g)}function Rl(d,g){switch(g.tagID){case L.HTML:{Eo(d,g);break}case L.BASEFONT:case L.BGSOUND:case L.HEAD:case L.LINK:case L.META:case L.NOFRAMES:case L.STYLE:{Ia(d,g);break}case L.NOSCRIPT:{d._err(g,cn.nestedNoscriptInHead);break}default:il(d,g)}}function _o(d,g){switch(g.tagID){case L.NOSCRIPT:{d.openElements.pop(),d.insertionMode=Ot.IN_HEAD;break}case L.BR:{il(d,g);break}default:d._err(g,cn.endTagWithoutMatchingOpenElement)}}function il(d,g){const K=g.type===ei.EOF?cn.openElementsLeftAfterEof:cn.disallowedContentInNoscriptInHead;d._err(g,K),d.openElements.pop(),d.insertionMode=Ot.IN_HEAD,d._processToken(g)}function rl(d,g){switch(g.tagID){case L.HTML:{Eo(d,g);break}case L.BODY:{d._insertElement(g,ot.HTML),d.framesetOk=!1,d.insertionMode=Ot.IN_BODY;break}case L.FRAMESET:{d._insertElement(g,ot.HTML),d.insertionMode=Ot.IN_FRAMESET;break}case L.BASE:case L.BASEFONT:case L.BGSOUND:case L.LINK:case L.META:case L.NOFRAMES:case L.SCRIPT:case L.STYLE:case L.TEMPLATE:case L.TITLE:{d._err(g,cn.abandonedHeadElementChild),d.openElements.push(d.headElement,L.HEAD),Ia(d,g),d.openElements.remove(d.headElement);break}case L.HEAD:{d._err(g,cn.misplacedStartTagForHeadElement);break}default:Ga(d,g)}}function hu(d,g){switch(g.tagID){case L.BODY:case L.HTML:case L.BR:{Ga(d,g);break}case L.TEMPLATE:{ja(d,g);break}default:d._err(g,cn.endTagWithoutMatchingOpenElement)}}function Ga(d,g){d._insertFakeElement(je.BODY,L.BODY),d.insertionMode=Ot.IN_BODY,os(d,g)}function os(d,g){switch(g.type){case ei.CHARACTER:{Vi(d,g);break}case ei.WHITESPACE_CHARACTER:{_s(d,g);break}case ei.COMMENT:{Ss(d,g);break}case ei.START_TAG:{Eo(d,g);break}case ei.END_TAG:{la(d,g);break}case ei.EOF:{La(d,g);break}default:}}function _s(d,g){d._reconstructActiveFormattingElements(),d._insertCharacters(g)}function Vi(d,g){d._reconstructActiveFormattingElements(),d._insertCharacters(g),d.framesetOk=!1}function Cs(d,g){d.openElements.tmplCount===0&&d.treeAdapter.adoptAttributes(d.openElements.items[0],g.attrs)}function jl(d,g){const K=d.openElements.tryPeekProperlyNestedBodyElement();K&&d.openElements.tmplCount===0&&(d.framesetOk=!1,d.treeAdapter.adoptAttributes(K,g.attrs))}function Kr(d,g){const K=d.openElements.tryPeekProperlyNestedBodyElement();d.framesetOk&&K&&(d.treeAdapter.detachNode(K),d.openElements.popAllUpToHtmlElement(),d._insertElement(g,ot.HTML),d.insertionMode=Ot.IN_FRAMESET)}function wo(d,g){d.openElements.hasInButtonScope(L.P)&&d._closePElement(),d._insertElement(g,ot.HTML)}function ha(d,g){d.openElements.hasInButtonScope(L.P)&&d._closePElement(),An.has(d.openElements.currentTagId)&&d.openElements.pop(),d._insertElement(g,ot.HTML)}function aa(d,g){d.openElements.hasInButtonScope(L.P)&&d._closePElement(),d._insertElement(g,ot.HTML),d.skipNextNewLine=!0,d.framesetOk=!1}function ro(d,g){const K=d.openElements.tmplCount>0;(!d.formElement||K)&&(d.openElements.hasInButtonScope(L.P)&&d._closePElement(),d._insertElement(g,ot.HTML),K||(d.formElement=d.openElements.current))}function ia(d,g){d.framesetOk=!1;const K=g.tagID;for(let nt=d.openElements.stackTop;nt>=0;nt--){const gn=d.openElements.tagIDs[nt];if(K===L.LI&&gn===L.LI||(K===L.DD||K===L.DT)&&(gn===L.DD||gn===L.DT)){d.openElements.generateImpliedEndTagsWithExclusion(gn),d.openElements.popUntilTagNamePopped(gn);break}if(gn!==L.ADDRESS&&gn!==L.DIV&&gn!==L.P&&d._isSpecialElement(d.openElements.items[nt],gn))break}d.openElements.hasInButtonScope(L.P)&&d._closePElement(),d._insertElement(g,ot.HTML)}function va(d,g){d.openElements.hasInButtonScope(L.P)&&d._closePElement(),d._insertElement(g,ot.HTML),d.tokenizer.state=Mi.PLAINTEXT}function Ma(d,g){d.openElements.hasInScope(L.BUTTON)&&(d.openElements.generateImpliedEndTags(),d.openElements.popUntilTagNamePopped(L.BUTTON)),d._reconstructActiveFormattingElements(),d._insertElement(g,ot.HTML),d.framesetOk=!1}function Oa(d,g){const K=d.activeFormattingElements.getElementEntryInScopeWithTagName(je.A);K&&(Ms(d,g),d.openElements.remove(K.element),d.activeFormattingElements.removeEntry(K)),d._reconstructActiveFormattingElements(),d._insertElement(g,ot.HTML),d.activeFormattingElements.pushElement(d.openElements.current,g)}function Gl(d,g){d._reconstructActiveFormattingElements(),d._insertElement(g,ot.HTML),d.activeFormattingElements.pushElement(d.openElements.current,g)}function Vs(d,g){d._reconstructActiveFormattingElements(),d.openElements.hasInScope(L.NOBR)&&(Ms(d,g),d._reconstructActiveFormattingElements()),d._insertElement(g,ot.HTML),d.activeFormattingElements.pushElement(d.openElements.current,g)}function wa(d,g){d._reconstructActiveFormattingElements(),d._insertElement(g,ot.HTML),d.activeFormattingElements.insertMarker(),d.framesetOk=!1}function hc(d,g){d.treeAdapter.getDocumentMode(d.document)!==yt.QUIRKS&&d.openElements.hasInButtonScope(L.P)&&d._closePElement(),d._insertElement(g,ot.HTML),d.framesetOk=!1,d.insertionMode=Ot.IN_TABLE}function zu(d,g){d._reconstructActiveFormattingElements(),d._appendElement(g,ot.HTML),d.framesetOk=!1,g.ackSelfClosing=!0}function du(d){const g=Tr(d,fn.TYPE);return g!=null&&g.toLowerCase()===uo}function nr(d,g){d._reconstructActiveFormattingElements(),d._appendElement(g,ot.HTML),du(g)||(d.framesetOk=!1),g.ackSelfClosing=!0}function Ks(d,g){d._appendElement(g,ot.HTML),g.ackSelfClosing=!0}function qe(d,g){d.openElements.hasInButtonScope(L.P)&&d._closePElement(),d._appendElement(g,ot.HTML),d.framesetOk=!1,g.ackSelfClosing=!0}function Dn(d,g){g.tagName=je.IMG,g.tagID=L.IMG,zu(d,g)}function Cu(d,g){d._insertElement(g,ot.HTML),d.skipNextNewLine=!0,d.tokenizer.state=Mi.RCDATA,d.originalInsertionMode=d.insertionMode,d.framesetOk=!1,d.insertionMode=Ot.TEXT}function Yu(d,g){d.openElements.hasInButtonScope(L.P)&&d._closePElement(),d._reconstructActiveFormattingElements(),d.framesetOk=!1,d._switchToTextParsing(g,Mi.RAWTEXT)}function pl(d,g){d.framesetOk=!1,d._switchToTextParsing(g,Mi.RAWTEXT)}function ml(d,g){d._switchToTextParsing(g,Mi.RAWTEXT)}function gl(d,g){d._reconstructActiveFormattingElements(),d._insertElement(g,ot.HTML),d.framesetOk=!1,d.insertionMode=d.insertionMode===Ot.IN_TABLE||d.insertionMode===Ot.IN_CAPTION||d.insertionMode===Ot.IN_TABLE_BODY||d.insertionMode===Ot.IN_ROW||d.insertionMode===Ot.IN_CELL?Ot.IN_SELECT_IN_TABLE:Ot.IN_SELECT}function Xu(d,g){d.openElements.currentTagId===L.OPTION&&d.openElements.pop(),d._reconstructActiveFormattingElements(),d._insertElement(g,ot.HTML)}function Tu(d,g){d.openElements.hasInScope(L.RUBY)&&d.openElements.generateImpliedEndTags(),d._insertElement(g,ot.HTML)}function Ca(d,g){d.openElements.hasInScope(L.RUBY)&&d.openElements.generateImpliedEndTagsWithExclusion(L.RTC),d._insertElement(g,ot.HTML)}function Dr(d,g){d._reconstructActiveFormattingElements(),ss(g),Go(g),g.selfClosing?d._appendElement(g,ot.MATHML):d._insertElement(g,ot.MATHML),g.ackSelfClosing=!0}function fs(d,g){d._reconstructActiveFormattingElements(),Ua(g),Go(g),g.selfClosing?d._appendElement(g,ot.SVG):d._insertElement(g,ot.SVG),g.ackSelfClosing=!0}function as(d,g){d._reconstructActiveFormattingElements(),d._insertElement(g,ot.HTML)}function Eo(d,g){switch(g.tagID){case L.I:case L.S:case L.B:case L.U:case L.EM:case L.TT:case L.BIG:case L.CODE:case L.FONT:case L.SMALL:case L.STRIKE:case L.STRONG:{Gl(d,g);break}case L.A:{Oa(d,g);break}case L.H1:case L.H2:case L.H3:case L.H4:case L.H5:case L.H6:{ha(d,g);break}case L.P:case L.DL:case L.OL:case L.UL:case L.DIV:case L.DIR:case L.NAV:case L.MAIN:case L.MENU:case L.ASIDE:case L.CENTER:case L.FIGURE:case L.FOOTER:case L.HEADER:case L.HGROUP:case L.DIALOG:case L.DETAILS:case L.ADDRESS:case L.ARTICLE:case L.SEARCH:case L.SECTION:case L.SUMMARY:case L.FIELDSET:case L.BLOCKQUOTE:case L.FIGCAPTION:{wo(d,g);break}case L.LI:case L.DD:case L.DT:{ia(d,g);break}case L.BR:case L.IMG:case L.WBR:case L.AREA:case L.EMBED:case L.KEYGEN:{zu(d,g);break}case L.HR:{qe(d,g);break}case L.RB:case L.RTC:{Tu(d,g);break}case L.RT:case L.RP:{Ca(d,g);break}case L.PRE:case L.LISTING:{aa(d,g);break}case L.XMP:{Yu(d,g);break}case L.SVG:{fs(d,g);break}case L.HTML:{Cs(d,g);break}case L.BASE:case L.LINK:case L.META:case L.STYLE:case L.TITLE:case L.SCRIPT:case L.BGSOUND:case L.BASEFONT:case L.TEMPLATE:{Ia(d,g);break}case L.BODY:{jl(d,g);break}case L.FORM:{ro(d,g);break}case L.NOBR:{Vs(d,g);break}case L.MATH:{Dr(d,g);break}case L.TABLE:{hc(d,g);break}case L.INPUT:{nr(d,g);break}case L.PARAM:case L.TRACK:case L.SOURCE:{Ks(d,g);break}case L.IMAGE:{Dn(d,g);break}case L.BUTTON:{Ma(d,g);break}case L.APPLET:case L.OBJECT:case L.MARQUEE:{wa(d,g);break}case L.IFRAME:{pl(d,g);break}case L.SELECT:{gl(d,g);break}case L.OPTION:case L.OPTGROUP:{Xu(d,g);break}case L.NOEMBED:case L.NOFRAMES:{ml(d,g);break}case L.FRAMESET:{Kr(d,g);break}case L.TEXTAREA:{Cu(d,g);break}case L.NOSCRIPT:{d.options.scriptingEnabled?ml(d,g):as(d,g);break}case L.PLAINTEXT:{va(d,g);break}case L.COL:case L.TH:case L.TD:case L.TR:case L.HEAD:case L.FRAME:case L.TBODY:case L.TFOOT:case L.THEAD:case L.CAPTION:case L.COLGROUP:break;default:as(d,g)}}function vo(d,g){if(d.openElements.hasInScope(L.BODY)&&(d.insertionMode=Ot.AFTER_BODY,d.options.sourceCodeLocationInfo)){const K=d.openElements.tryPeekProperlyNestedBodyElement();K&&d._setEndLocation(K,g)}}function Wa(d,g){d.openElements.hasInScope(L.BODY)&&(d.insertionMode=Ot.AFTER_BODY,ln(d,g))}function js(d,g){const K=g.tagID;d.openElements.hasInScope(K)&&(d.openElements.generateImpliedEndTags(),d.openElements.popUntilTagNamePopped(K))}function sa(d){const g=d.openElements.tmplCount>0,{formElement:K}=d;g||(d.formElement=null),(K||g)&&d.openElements.hasInScope(L.FORM)&&(d.openElements.generateImpliedEndTags(),g?d.openElements.popUntilTagNamePopped(L.FORM):K&&d.openElements.remove(K))}function Gs(d){d.openElements.hasInButtonScope(L.P)||d._insertFakeElement(je.P,L.P),d._closePElement()}function Va(d){d.openElements.hasInListItemScope(L.LI)&&(d.openElements.generateImpliedEndTagsWithExclusion(L.LI),d.openElements.popUntilTagNamePopped(L.LI))}function eu(d,g){const K=g.tagID;d.openElements.hasInScope(K)&&(d.openElements.generateImpliedEndTagsWithExclusion(K),d.openElements.popUntilTagNamePopped(K))}function Ro(d){d.openElements.hasNumberedHeaderInScope()&&(d.openElements.generateImpliedEndTags(),d.openElements.popUntilNumberedHeaderPopped())}function vs(d,g){const K=g.tagID;d.openElements.hasInScope(K)&&(d.openElements.generateImpliedEndTags(),d.openElements.popUntilTagNamePopped(K),d.activeFormattingElements.clearToLastMarker())}function So(d){d._reconstructActiveFormattingElements(),d._insertFakeElement(je.BR,L.BR),d.openElements.pop(),d.framesetOk=!1}function Ko(d,g){const K=g.tagName,nt=g.tagID;for(let gn=d.openElements.stackTop;gn>0;gn--){const Yn=d.openElements.items[gn],wi=d.openElements.tagIDs[gn];if(nt===wi&&(nt!==L.UNKNOWN||d.treeAdapter.getTagName(Yn)===K)){d.openElements.generateImpliedEndTagsWithExclusion(nt),d.openElements.stackTop>=gn&&d.openElements.shortenToLength(gn);break}if(d._isSpecialElement(Yn,wi))break}}function la(d,g){switch(g.tagID){case L.A:case L.B:case L.I:case L.S:case L.U:case L.EM:case L.TT:case L.BIG:case L.CODE:case L.FONT:case L.NOBR:case L.SMALL:case L.STRIKE:case L.STRONG:{Ms(d,g);break}case L.P:{Gs(d);break}case L.DL:case L.UL:case L.OL:case L.DIR:case L.DIV:case L.NAV:case L.PRE:case L.MAIN:case L.MENU:case L.ASIDE:case L.BUTTON:case L.CENTER:case L.FIGURE:case L.FOOTER:case L.HEADER:case L.HGROUP:case L.DIALOG:case L.ADDRESS:case L.ARTICLE:case L.DETAILS:case L.SEARCH:case L.SECTION:case L.SUMMARY:case L.LISTING:case L.FIELDSET:case L.BLOCKQUOTE:case L.FIGCAPTION:{js(d,g);break}case L.LI:{Va(d);break}case L.DD:case L.DT:{eu(d,g);break}case L.H1:case L.H2:case L.H3:case L.H4:case L.H5:case L.H6:{Ro(d);break}case L.BR:{So(d);break}case L.BODY:{vo(d,g);break}case L.HTML:{Wa(d,g);break}case L.FORM:{sa(d);break}case L.APPLET:case L.OBJECT:case L.MARQUEE:{vs(d,g);break}case L.TEMPLATE:{ja(d,g);break}default:Ko(d,g)}}function La(d,g){d.tmplInsertionModeStack.length>0?ve(d,g):Jo(d,g)}function yo(d,g){var K;g.tagID===L.SCRIPT&&((K=d.scriptHandler)===null||K===void 0||K.call(d,d.openElements.current)),d.openElements.pop(),d.insertionMode=d.originalInsertionMode}function fu(d,g){d._err(g,cn.eofInElementThatCanContainOnlyText),d.openElements.pop(),d.insertionMode=d.originalInsertionMode,d.onEof(g)}function Ir(d,g){if(co.has(d.openElements.currentTagId))switch(d.pendingCharacterTokens.length=0,d.hasNonWhitespacePendingCharacterToken=!1,d.originalInsertionMode=d.insertionMode,d.insertionMode=Ot.IN_TABLE_TEXT,g.type){case ei.CHARACTER:{Dl(d,g);break}case ei.WHITESPACE_CHARACTER:{qu(d,g);break}}else Ls(d,g)}function dc(d,g){d.openElements.clearBackToTableContext(),d.activeFormattingElements.insertMarker(),d._insertElement(g,ot.HTML),d.insertionMode=Ot.IN_CAPTION}function Co(d,g){d.openElements.clearBackToTableContext(),d._insertElement(g,ot.HTML),d.insertionMode=Ot.IN_COLUMN_GROUP}function Qu(d,g){d.openElements.clearBackToTableContext(),d._insertFakeElement(je.COLGROUP,L.COLGROUP),d.insertionMode=Ot.IN_COLUMN_GROUP,Ys(d,g)}function Ju(d,g){d.openElements.clearBackToTableContext(),d._insertElement(g,ot.HTML),d.insertionMode=Ot.IN_TABLE_BODY}function tu(d,g){d.openElements.clearBackToTableContext(),d._insertFakeElement(je.TBODY,L.TBODY),d.insertionMode=Ot.IN_TABLE_BODY,nu(d,g)}function wc(d,g){d.openElements.hasInTableScope(L.TABLE)&&(d.openElements.popUntilTagNamePopped(L.TABLE),d._resetInsertionMode(),d._processStartTag(g))}function Uu(d,g){du(g)?d._appendElement(g,ot.HTML):Ls(d,g),g.ackSelfClosing=!0}function vl(d,g){!d.formElement&&d.openElements.tmplCount===0&&(d._insertElement(g,ot.HTML),d.formElement=d.openElements.current,d.openElements.pop())}function Zs(d,g){switch(g.tagID){case L.TD:case L.TH:case L.TR:{tu(d,g);break}case L.STYLE:case L.SCRIPT:case L.TEMPLATE:{Ia(d,g);break}case L.COL:{Qu(d,g);break}case L.FORM:{vl(d,g);break}case L.TABLE:{wc(d,g);break}case L.TBODY:case L.TFOOT:case L.THEAD:{Ju(d,g);break}case L.INPUT:{Uu(d,g);break}case L.CAPTION:{dc(d,g);break}case L.COLGROUP:{Co(d,g);break}default:Ls(d,g)}}function Ao(d,g){switch(g.tagID){case L.TABLE:{d.openElements.hasInTableScope(L.TABLE)&&(d.openElements.popUntilTagNamePopped(L.TABLE),d._resetInsertionMode());break}case L.TEMPLATE:{ja(d,g);break}case L.BODY:case L.CAPTION:case L.COL:case L.COLGROUP:case L.HTML:case L.TBODY:case L.TD:case L.TFOOT:case L.TH:case L.THEAD:case L.TR:break;default:Ls(d,g)}}function Ls(d,g){const K=d.fosterParentingEnabled;d.fosterParentingEnabled=!0,os(d,g),d.fosterParentingEnabled=K}function qu(d,g){d.pendingCharacterTokens.push(g)}function Dl(d,g){d.pendingCharacterTokens.push(g),d.hasNonWhitespacePendingCharacterToken=!0}function yl(d,g){let K=0;if(d.hasNonWhitespacePendingCharacterToken)for(;K<d.pendingCharacterTokens.length;K++)Ls(d,d.pendingCharacterTokens[K]);else for(;K<d.pendingCharacterTokens.length;K++)d._insertCharacters(d.pendingCharacterTokens[K]);d.insertionMode=d.originalInsertionMode,d._processToken(g)}const bl=new Set([L.CAPTION,L.COL,L.COLGROUP,L.TBODY,L.TD,L.TFOOT,L.TH,L.THEAD,L.TR]);function xl(d,g){const K=g.tagID;bl.has(K)?d.openElements.hasInTableScope(L.CAPTION)&&(d.openElements.generateImpliedEndTags(),d.openElements.popUntilTagNamePopped(L.CAPTION),d.activeFormattingElements.clearToLastMarker(),d.insertionMode=Ot.IN_TABLE,Zs(d,g)):Eo(d,g)}function pu(d,g){const K=g.tagID;switch(K){case L.CAPTION:case L.TABLE:{d.openElements.hasInTableScope(L.CAPTION)&&(d.openElements.generateImpliedEndTags(),d.openElements.popUntilTagNamePopped(L.CAPTION),d.activeFormattingElements.clearToLastMarker(),d.insertionMode=Ot.IN_TABLE,K===L.TABLE&&Ao(d,g));break}case L.BODY:case L.COL:case L.COLGROUP:case L.HTML:case L.TBODY:case L.TD:case L.TFOOT:case L.TH:case L.THEAD:case L.TR:break;default:la(d,g)}}function Ys(d,g){switch(g.tagID){case L.HTML:{Eo(d,g);break}case L.COL:{d._appendElement(g,ot.HTML),g.ackSelfClosing=!0;break}case L.TEMPLATE:{Ia(d,g);break}default:mu(d,g)}}function Wl(d,g){switch(g.tagID){case L.COLGROUP:{d.openElements.currentTagId===L.COLGROUP&&(d.openElements.pop(),d.insertionMode=Ot.IN_TABLE);break}case L.TEMPLATE:{ja(d,g);break}case L.COL:break;default:mu(d,g)}}function mu(d,g){d.openElements.currentTagId===L.COLGROUP&&(d.openElements.pop(),d.insertionMode=Ot.IN_TABLE,d._processToken(g))}function nu(d,g){switch(g.tagID){case L.TR:{d.openElements.clearBackToTableBodyContext(),d._insertElement(g,ot.HTML),d.insertionMode=Ot.IN_ROW;break}case L.TH:case L.TD:{d.openElements.clearBackToTableBodyContext(),d._insertFakeElement(je.TR,L.TR),d.insertionMode=Ot.IN_ROW,Ws(d,g);break}case L.CAPTION:case L.COL:case L.COLGROUP:case L.TBODY:case L.TFOOT:case L.THEAD:{d.openElements.hasTableBodyContextInTableScope()&&(d.openElements.clearBackToTableBodyContext(),d.openElements.pop(),d.insertionMode=Ot.IN_TABLE,Zs(d,g));break}default:Zs(d,g)}}function Nu(d,g){const K=g.tagID;switch(g.tagID){case L.TBODY:case L.TFOOT:case L.THEAD:{d.openElements.hasInTableScope(K)&&(d.openElements.clearBackToTableBodyContext(),d.openElements.pop(),d.insertionMode=Ot.IN_TABLE);break}case L.TABLE:{d.openElements.hasTableBodyContextInTableScope()&&(d.openElements.clearBackToTableBodyContext(),d.openElements.pop(),d.insertionMode=Ot.IN_TABLE,Ao(d,g));break}case L.BODY:case L.CAPTION:case L.COL:case L.COLGROUP:case L.HTML:case L.TD:case L.TH:case L.TR:break;default:Ao(d,g)}}function Ws(d,g){switch(g.tagID){case L.TH:case L.TD:{d.openElements.clearBackToTableRowContext(),d._insertElement(g,ot.HTML),d.insertionMode=Ot.IN_CELL,d.activeFormattingElements.insertMarker();break}case L.CAPTION:case L.COL:case L.COLGROUP:case L.TBODY:case L.TFOOT:case L.THEAD:case L.TR:{d.openElements.hasInTableScope(L.TR)&&(d.openElements.clearBackToTableRowContext(),d.openElements.pop(),d.insertionMode=Ot.IN_TABLE_BODY,nu(d,g));break}default:Zs(d,g)}}function ys(d,g){switch(g.tagID){case L.TR:{d.openElements.hasInTableScope(L.TR)&&(d.openElements.clearBackToTableRowContext(),d.openElements.pop(),d.insertionMode=Ot.IN_TABLE_BODY);break}case L.TABLE:{d.openElements.hasInTableScope(L.TR)&&(d.openElements.clearBackToTableRowContext(),d.openElements.pop(),d.insertionMode=Ot.IN_TABLE_BODY,Nu(d,g));break}case L.TBODY:case L.TFOOT:case L.THEAD:{(d.openElements.hasInTableScope(g.tagID)||d.openElements.hasInTableScope(L.TR))&&(d.openElements.clearBackToTableRowContext(),d.openElements.pop(),d.insertionMode=Ot.IN_TABLE_BODY,Nu(d,g));break}case L.BODY:case L.CAPTION:case L.COL:case L.COLGROUP:case L.HTML:case L.TD:case L.TH:break;default:Ao(d,g)}}function iu(d,g){const K=g.tagID;bl.has(K)?(d.openElements.hasInTableScope(L.TD)||d.openElements.hasInTableScope(L.TH))&&(d._closeTableCell(),Ws(d,g)):Eo(d,g)}function Au(d,g){const K=g.tagID;switch(K){case L.TD:case L.TH:{d.openElements.hasInTableScope(K)&&(d.openElements.generateImpliedEndTags(),d.openElements.popUntilTagNamePopped(K),d.activeFormattingElements.clearToLastMarker(),d.insertionMode=Ot.IN_ROW);break}case L.TABLE:case L.TBODY:case L.TFOOT:case L.THEAD:case L.TR:{d.openElements.hasInTableScope(K)&&(d._closeTableCell(),ys(d,g));break}case L.BODY:case L.CAPTION:case L.COL:case L.COLGROUP:case L.HTML:break;default:la(d,g)}}function we(d,g){switch(g.tagID){case L.HTML:{Eo(d,g);break}case L.OPTION:{d.openElements.currentTagId===L.OPTION&&d.openElements.pop(),d._insertElement(g,ot.HTML);break}case L.OPTGROUP:{d.openElements.currentTagId===L.OPTION&&d.openElements.pop(),d.openElements.currentTagId===L.OPTGROUP&&d.openElements.pop(),d._insertElement(g,ot.HTML);break}case L.HR:{d.openElements.currentTagId===L.OPTION&&d.openElements.pop(),d.openElements.currentTagId===L.OPTGROUP&&d.openElements.pop(),d._appendElement(g,ot.HTML),g.ackSelfClosing=!0;break}case L.INPUT:case L.KEYGEN:case L.TEXTAREA:case L.SELECT:{d.openElements.hasInSelectScope(L.SELECT)&&(d.openElements.popUntilTagNamePopped(L.SELECT),d._resetInsertionMode(),g.tagID!==L.SELECT&&d._processStartTag(g));break}case L.SCRIPT:case L.TEMPLATE:{Ia(d,g);break}default:}}function De(d,g){switch(g.tagID){case L.OPTGROUP:{d.openElements.stackTop>0&&d.openElements.currentTagId===L.OPTION&&d.openElements.tagIDs[d.openElements.stackTop-1]===L.OPTGROUP&&d.openElements.pop(),d.openElements.currentTagId===L.OPTGROUP&&d.openElements.pop();break}case L.OPTION:{d.openElements.currentTagId===L.OPTION&&d.openElements.pop();break}case L.SELECT:{d.openElements.hasInSelectScope(L.SELECT)&&(d.openElements.popUntilTagNamePopped(L.SELECT),d._resetInsertionMode());break}case L.TEMPLATE:{ja(d,g);break}default:}}function dt(d,g){const K=g.tagID;K===L.CAPTION||K===L.TABLE||K===L.TBODY||K===L.TFOOT||K===L.THEAD||K===L.TR||K===L.TD||K===L.TH?(d.openElements.popUntilTagNamePopped(L.SELECT),d._resetInsertionMode(),d._processStartTag(g)):we(d,g)}function xt(d,g){const K=g.tagID;K===L.CAPTION||K===L.TABLE||K===L.TBODY||K===L.TFOOT||K===L.THEAD||K===L.TR||K===L.TD||K===L.TH?d.openElements.hasInTableScope(K)&&(d.openElements.popUntilTagNamePopped(L.SELECT),d._resetInsertionMode(),d.onEndTag(g)):De(d,g)}function _t(d,g){switch(g.tagID){case L.BASE:case L.BASEFONT:case L.BGSOUND:case L.LINK:case L.META:case L.NOFRAMES:case L.SCRIPT:case L.STYLE:case L.TEMPLATE:case L.TITLE:{Ia(d,g);break}case L.CAPTION:case L.COLGROUP:case L.TBODY:case L.TFOOT:case L.THEAD:{d.tmplInsertionModeStack[0]=Ot.IN_TABLE,d.insertionMode=Ot.IN_TABLE,Zs(d,g);break}case L.COL:{d.tmplInsertionModeStack[0]=Ot.IN_COLUMN_GROUP,d.insertionMode=Ot.IN_COLUMN_GROUP,Ys(d,g);break}case L.TR:{d.tmplInsertionModeStack[0]=Ot.IN_TABLE_BODY,d.insertionMode=Ot.IN_TABLE_BODY,nu(d,g);break}case L.TD:case L.TH:{d.tmplInsertionModeStack[0]=Ot.IN_ROW,d.insertionMode=Ot.IN_ROW,Ws(d,g);break}default:d.tmplInsertionModeStack[0]=Ot.IN_BODY,d.insertionMode=Ot.IN_BODY,Eo(d,g)}}function Dt(d,g){g.tagID===L.TEMPLATE&&ja(d,g)}function ve(d,g){d.openElements.tmplCount>0?(d.openElements.popUntilTagNamePopped(L.TEMPLATE),d.activeFormattingElements.clearToLastMarker(),d.tmplInsertionModeStack.shift(),d._resetInsertionMode(),d.onEof(g)):Jo(d,g)}function bn(d,g){g.tagID===L.HTML?Eo(d,g):zn(d,g)}function ln(d,g){var K;if(g.tagID===L.HTML){if(d.fragmentContext||(d.insertionMode=Ot.AFTER_AFTER_BODY),d.options.sourceCodeLocationInfo&&d.openElements.tagIDs[0]===L.HTML){d._setEndLocation(d.openElements.items[0],g);const nt=d.openElements.items[1];nt&&!(!((K=d.treeAdapter.getNodeSourceCodeLocation(nt))===null||K===void 0)&&K.endTag)&&d._setEndLocation(nt,g)}}else zn(d,g)}function zn(d,g){d.insertionMode=Ot.IN_BODY,os(d,g)}function jn(d,g){switch(g.tagID){case L.HTML:{Eo(d,g);break}case L.FRAMESET:{d._insertElement(g,ot.HTML);break}case L.FRAME:{d._appendElement(g,ot.HTML),g.ackSelfClosing=!0;break}case L.NOFRAMES:{Ia(d,g);break}default:}}function $n(d,g){g.tagID===L.FRAMESET&&!d.openElements.isRootHtmlElementCurrent()&&(d.openElements.pop(),!d.fragmentContext&&d.openElements.currentTagId!==L.FRAMESET&&(d.insertionMode=Ot.AFTER_FRAMESET))}function hi(d,g){switch(g.tagID){case L.HTML:{Eo(d,g);break}case L.NOFRAMES:{Ia(d,g);break}default:}}function gi(d,g){g.tagID===L.HTML&&(d.insertionMode=Ot.AFTER_AFTER_FRAMESET)}function ti(d,g){g.tagID===L.HTML?Eo(d,g):E(d,g)}function E(d,g){d.insertionMode=Ot.IN_BODY,os(d,g)}function P(d,g){switch(g.tagID){case L.HTML:{Eo(d,g);break}case L.NOFRAMES:{Ia(d,g);break}default:}}function W(d,g){g.chars=rn,d._insertCharacters(g)}function J(d,g){d._insertCharacters(g),d.framesetOk=!1}function ge(d){for(;d.treeAdapter.getNamespaceURI(d.openElements.current)!==ot.HTML&&!d._isIntegrationPoint(d.openElements.currentTagId,d.openElements.current);)d.openElements.pop()}function Ae(d,g){if(ka(g))ge(d),d._startTagOutsideForeignContent(g);else{const K=d._getAdjustedCurrentElement(),nt=d.treeAdapter.getNamespaceURI(K);nt===ot.MATHML?ss(g):nt===ot.SVG&&(Zt(g),Ua(g)),Go(g),g.selfClosing?d._appendElement(g,nt):d._insertElement(g,nt),g.ackSelfClosing=!0}}function He(d,g){if(g.tagID===L.P||g.tagID===L.BR){ge(d),d._endTagOutsideForeignContent(g);return}for(let K=d.openElements.stackTop;K>0;K--){const nt=d.openElements.items[K];if(d.treeAdapter.getNamespaceURI(nt)===ot.HTML){d._endTagOutsideForeignContent(g);break}const gn=d.treeAdapter.getTagName(nt);if(gn.toLowerCase()===g.tagName){g.tagName=gn,d.openElements.shortenToLength(K);break}}}const it=/["&'<>$\x80-\uFFFF]/g,jt=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]),Qt=String.prototype.codePointAt!=null?(d,g)=>d.codePointAt(g):(d,g)=>(d.charCodeAt(g)&64512)===55296?(d.charCodeAt(g)-55296)*1024+d.charCodeAt(g+1)-56320+65536:d.charCodeAt(g);function bt(d){let g="",K=0,nt;for(;(nt=it.exec(d))!==null;){const gn=nt.index,Yn=d.charCodeAt(gn),wi=jt.get(Yn);wi!==void 0?(g+=d.substring(K,gn)+wi,K=gn+1):(g+=`${d.substring(K,gn)}&#x${Qt(d,gn).toString(16)};`,K=it.lastIndex+=+((Yn&64512)===55296))}return g+d.substr(K)}const en=null;function Gt(d,g){return function(nt){let gn,Yn=0,wi="";for(;gn=d.exec(nt);)Yn!==gn.index&&(wi+=nt.substring(Yn,gn.index)),wi+=g.get(gn[0].charCodeAt(0)),Yn=gn.index+1;return wi+nt.substring(Yn)}}const wt=Gt(/[&<>'"]/g,jt),ii=Gt(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),ki=Gt(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]])),ji=new Set([je.AREA,je.BASE,je.BASEFONT,je.BGSOUND,je.BR,je.COL,je.EMBED,je.FRAME,je.HR,je.IMG,je.INPUT,je.KEYGEN,je.LINK,je.META,je.PARAM,je.SOURCE,je.TRACK,je.WBR]);function si(d,g){return g.treeAdapter.isElementNode(d)&&g.treeAdapter.getNamespaceURI(d)===NS.HTML&&ji.has(g.treeAdapter.getTagName(d))}const vi={treeAdapter:br,scriptingEnabled:!0};function Pi(d,g){const K=Po(Po({},vi),g);return si(d,K)?"":Xr(d,K)}function Mr(d,g){const K=Po(Po({},vi),g);return ui(d,K)}function Xr(d,g){let K="";const nt=g.treeAdapter.isElementNode(d)&&g.treeAdapter.getTagName(d)===$.TEMPLATE&&g.treeAdapter.getNamespaceURI(d)===NS.HTML?g.treeAdapter.getTemplateContent(d):d,gn=g.treeAdapter.getChildNodes(nt);if(gn)for(const Yn of gn)K+=ui(Yn,g);return K}function ui(d,g){return g.treeAdapter.isElementNode(d)?io(d,g):g.treeAdapter.isTextNode(d)?dr(d,g):g.treeAdapter.isCommentNode(d)?Qi(d,g):g.treeAdapter.isDocumentTypeNode(d)?oo(d,g):""}function io(d,g){const K=g.treeAdapter.getTagName(d);return`<${K}${bo(d,g)}>${si(d,g)?"":`${Xr(d,g)}</${K}>`}`}function bo(d,{treeAdapter:g}){let K="";for(const nt of g.getAttrList(d)){if(K+=" ",nt.namespace)switch(nt.namespace){case NS.XML:{K+=`xml:${nt.name}`;break}case NS.XMLNS:{nt.name!=="xmlns"&&(K+="xmlns:"),K+=nt.name;break}case NS.XLINK:{K+=`xlink:${nt.name}`;break}default:K+=`${nt.prefix}:${nt.name}`}else K+=nt.name;K+=`="${escapeAttribute(nt.value)}"`}return K}function dr(d,g){const{treeAdapter:K}=g,nt=K.getTextNodeContent(d),gn=K.getParentNode(d),Yn=gn&&K.isElementNode(gn)&&K.getTagName(gn);return Yn&&K.getNamespaceURI(gn)===NS.HTML&&hasUnescapedText(Yn,g.scriptingEnabled)?nt:escapeText(nt)}function Qi(d,{treeAdapter:g}){return`<!--${g.getCommentNodeContent(d)}-->`}function oo(d,{treeAdapter:g}){return`<!DOCTYPE ${g.getDocumentTypeNodeName(d)}>`}function to(d,g){return Parser.parse(d,g)}function pr(d,g,K){typeof d=="string"&&(K=g,g=d,d=null);const nt=Parser.getFragmentParser(d,K);return nt.tokenizer.write(g,!0),nt.getFragment()}var _r=h(17970),Gi=h(10528);const ir=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,vr=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),sr={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function ho(d,g){const K=Ho(d),nt=_e("type",{handlers:{root:zr,element:fo,text:un,comment:es,doctype:da,raw:Fo},unknown:qo}),gn={parser:K?new xr(sr):xr.getFragmentParser(void 0,sr),handle(Cr){nt(Cr,gn)},stitches:!1,options:g||{}};nt(d,gn),ta(gn,(0,_r.Pk)());const Yn=K?gn.parser.document:gn.parser.getFragment(),wi=Ee(Yn,{file:gn.options.file});return gn.stitches&&(0,Gi.Vn)(wi,"comment",function(Cr,Hr,Gn){const Hi=Cr;if(Hi.value.stitch&&Gn&&Hr!==void 0){const Or=Gn.children;return Or[Hr]=Hi.value.stitch,Hr}}),wi.type==="root"&&wi.children.length===1&&wi.children[0].type===d.type?wi.children[0]:wi}function $t(d,g){let K=-1;if(d)for(;++K<d.length;)g.handle(d[K])}function zr(d,g){$t(d.children,g)}function fo(d,g){zs(d,g),$t(d.children,g),ko(d,g)}function un(d,g){g.parser.tokenizer.state>4&&(g.parser.tokenizer.state=0);const K={type:ei.CHARACTER,chars:d.value,location:Zo(d)};ta(g,(0,_r.Pk)(d)),g.parser.currentToken=K,g.parser._processToken(g.parser.currentToken)}function da(d,g){const K={type:ei.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Zo(d)};ta(g,(0,_r.Pk)(d)),g.parser.currentToken=K,g.parser._processToken(g.parser.currentToken)}function Ta(d,g){g.stitches=!0;const K=Sa(d);if("children"in d&&"children"in K){const nt=ho({type:"root",children:d.children},g.options);K.children=nt.children}es({type:"comment",value:{stitch:K}},g)}function es(d,g){const K=d.value,nt={type:ei.COMMENT,data:K,location:Zo(d)};ta(g,(0,_r.Pk)(d)),g.parser.currentToken=nt,g.parser._processToken(g.parser.currentToken)}function Fo(d,g){if(g.parser.tokenizer.preprocessor.html="",g.parser.tokenizer.preprocessor.pos=-1,g.parser.tokenizer.preprocessor.lastGapPos=-2,g.parser.tokenizer.preprocessor.gapStack=[],g.parser.tokenizer.preprocessor.skipNextNewLine=!1,g.parser.tokenizer.preprocessor.lastChunkWritten=!1,g.parser.tokenizer.preprocessor.endOfChunkHit=!1,g.parser.tokenizer.preprocessor.isEol=!1,ya(g,(0,_r.Pk)(d)),g.parser.tokenizer.write(g.options.tagfilter?d.value.replace(ir,"&lt;$1$2"):d.value,!1),g.parser.tokenizer._runParsingLoop(),g.parser.tokenizer.state===72||g.parser.tokenizer.state===78){g.parser.tokenizer.preprocessor.lastChunkWritten=!0;const K=g.parser.tokenizer._consume();g.parser.tokenizer._callState(K)}}function qo(d,g){const K=d;if(g.options.passThrough&&g.options.passThrough.includes(K.type))Ta(K,g);else{let nt="";throw vr.has(K.type)&&(nt=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+K.type+"` node"+nt)}}function ta(d,g){ya(d,g);const K=d.parser.tokenizer.currentCharacterToken;K&&K.location&&(K.location.endLine=d.parser.tokenizer.preprocessor.line,K.location.endCol=d.parser.tokenizer.preprocessor.col+1,K.location.endOffset=d.parser.tokenizer.preprocessor.offset+1,d.parser.currentToken=K,d.parser._processToken(d.parser.currentToken)),d.parser.tokenizer.paused=!1,d.parser.tokenizer.inLoop=!1,d.parser.tokenizer.active=!1,d.parser.tokenizer.returnState=Mi.DATA,d.parser.tokenizer.charRefCode=-1,d.parser.tokenizer.consumedAfterSnapshot=-1,d.parser.tokenizer.currentLocation=null,d.parser.tokenizer.currentCharacterToken=null,d.parser.tokenizer.currentToken=null,d.parser.tokenizer.currentAttr={name:"",value:""}}function ya(d,g){if(g&&g.offset!==void 0){const K={startLine:g.line,startCol:g.column,startOffset:g.offset,endLine:-1,endCol:-1,endOffset:-1};d.parser.tokenizer.preprocessor.lineStartPos=-g.column+1,d.parser.tokenizer.preprocessor.droppedBufferSize=g.offset,d.parser.tokenizer.preprocessor.line=g.line,d.parser.tokenizer.currentLocation=K}}function zs(d,g){const K=d.tagName.toLowerCase();if(g.parser.tokenizer.state===Mi.PLAINTEXT)return;ta(g,(0,_r.Pk)(d));const nt=g.parser.openElements.current;let gn="namespaceURI"in nt?nt.namespaceURI:ae.t.html;gn===ae.t.html&&K==="svg"&&(gn=ae.t.svg);const Yn=vt(cd(Po({},d),{children:[]}),{space:gn===ae.t.svg?"svg":"html"}),wi={type:ei.START_TAG,tagName:K,tagID:Jt(K),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in Yn?Yn.attrs:[],location:Zo(d)};g.parser.currentToken=wi,g.parser._processToken(g.parser.currentToken),g.parser.tokenizer.lastStartTagName=K}function ko(d,g){const K=d.tagName.toLowerCase();if(!g.parser.tokenizer.inForeignNode&&zt.includes(K)||g.parser.tokenizer.state===Mi.PLAINTEXT)return;ta(g,(0,_r.rb)(d));const nt={type:ei.END_TAG,tagName:K,tagID:Jt(K),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Zo(d)};g.parser.currentToken=nt,g.parser._processToken(g.parser.currentToken),K===g.parser.tokenizer.lastStartTagName&&(g.parser.tokenizer.state===Mi.RCDATA||g.parser.tokenizer.state===Mi.RAWTEXT||g.parser.tokenizer.state===Mi.SCRIPT_DATA)&&(g.parser.tokenizer.state=Mi.DATA)}function Ho(d){const g=d.type==="root"?d.children[0]:d;return!!(g&&(g.type==="doctype"||g.type==="element"&&g.tagName.toLowerCase()==="html"))}function Zo(d){const g=(0,_r.Pk)(d)||{line:void 0,column:void 0,offset:void 0},K=(0,_r.rb)(d)||{line:void 0,column:void 0,offset:void 0};return{startLine:g.line,startCol:g.column,startOffset:g.offset,endLine:K.line,endCol:K.column,endOffset:K.offset}}function Sa(d){return"children"in d?(0,I.ZP)(cd(Po({},d),{children:[]})):(0,I.ZP)(d)}function Ha(d){return function(g,K){return ho(g,cd(Po({},d),{file:K}))}}},10787:function(X,C,h){"use strict";h.d(C,{Z:function(){return te}});function v(Ne){if(typeof Ne!="string")throw new TypeError("Expected a string");return Ne.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var I=h(2348),O=h(10502);function B(Ne,Ee,Xe){const Oe=Xe||{},Ce=(0,O.O)(Oe.ignore||[]),Ie=G(Ee);let Re=-1;for(;++Re<Ie.length;)(0,I.S4)(Ne,"text",fe);function fe(ye,pe){let ke=-1,ee;for(;++ke<pe.length;){const Te=pe[ke],Me=ee?ee.children:void 0;if(Ce(Te,Me?Me.indexOf(Te):void 0,ee))return;ee=Te}if(ee)return me(ye,pe)}function me(ye,pe){const ke=pe[pe.length-1],ee=Ie[Re][0],Te=Ie[Re][1];let Me=0;const Je=ke.children.indexOf(ye);let Ye=!1,ne=[];ee.lastIndex=0;let at=ee.exec(ye.value);for(;at;){const Ge=at.index,Pt={index:at.index,input:at.input,stack:[...pe,ye]};let gt=Te(...at,Pt);if(typeof gt=="string"&&(gt=gt.length>0?{type:"text",value:gt}:void 0),gt===!1?ee.lastIndex=Ge+1:(Me!==Ge&&ne.push({type:"text",value:ye.value.slice(Me,Ge)}),Array.isArray(gt)?ne.push(...gt):gt&&ne.push(gt),Me=Ge+at[0].length,Ye=!0),!ee.global)break;at=ee.exec(ye.value)}return Ye?(Me<ye.value.length&&ne.push({type:"text",value:ye.value.slice(Me)}),ke.children.splice(Je,1,...ne)):ne=[ye],Je+ne.length}}function G(Ne){const Ee=[];if(!Array.isArray(Ne))throw new TypeError("Expected find and replace tuple or list of tuples");const Xe=!Ne[0]||Array.isArray(Ne[0])?Ne:[Ne];let Oe=-1;for(;++Oe<Xe.length;){const Ce=Xe[Oe];Ee.push([F(Ce[0]),M(Ce[1])])}return Ee}function F(Ne){return typeof Ne=="string"?new RegExp(v(Ne),"g"):Ne}function M(Ne){return typeof Ne=="function"?Ne:function(){return Ne}}function de(Ne){B(Ne,[/\r?\n|\r/g,ae])}function ae(){return{type:"break"}}function te(){return function(Ne){de(Ne)}}},30084:function(X,C,h){"use strict";h.d(C,{Z:function(){return Ie}});var v=h(87342);function I(Re,fe){const me=String(Re);let ye=me.indexOf(fe),pe=ye,ke=0,ee=0;if(typeof fe!="string")throw new TypeError("Expected substring");for(;ye!==-1;)ye===pe?++ke>ee&&(ee=ke):ke=1,pe=ye+fe.length,ye=me.indexOf(fe,pe);return ee}function O(){return{enter:{mathFlow:Re,mathFlowFenceMeta:fe,mathText:ke},exit:{mathFlow:pe,mathFlowFence:ye,mathFlowFenceMeta:me,mathFlowValue:Te,mathText:ee,mathTextData:Te}};function Re(Me){const Le={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[Le]}},Me)}function fe(){this.buffer()}function me(){const Me=this.resume(),Le=this.stack[this.stack.length-1];(0,v.ok)(Le.type==="math"),Le.meta=Me}function ye(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function pe(Me){const Le=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),Je=this.stack[this.stack.length-1];(0,v.ok)(Je.type==="math"),this.exit(Me),Je.value=Le;const Ye=Je.data.hChildren[0];(0,v.ok)(Ye.type==="element"),(0,v.ok)(Ye.tagName==="code"),Ye.children.push({type:"text",value:Le}),this.data.mathFlowInside=void 0}function ke(Me){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},Me),this.buffer()}function ee(Me){const Le=this.resume(),Je=this.stack[this.stack.length-1];(0,v.ok)(Je.type==="inlineMath"),this.exit(Me),Je.value=Le,Je.data.hChildren.push({type:"text",value:Le})}function Te(Me){this.config.enter.data.call(this,Me),this.config.exit.data.call(this,Me)}}function B(Re){let fe=(Re||{}).singleDollarTextMath;return fe==null&&(fe=!0),ye.peek=pe,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
`,inConstruct:"mathFlowMeta"},{character:"$",after:fe?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:me,inlineMath:ye}};function me(ke,ee,Te,Me){const Le=ke.value||"",Je=Te.createTracker(Me),Ye="$".repeat(Math.max(I(Le,"$")+1,2)),ne=Te.enter("mathFlow");let at=Je.move(Ye);if(ke.meta){const Ge=Te.enter("mathFlowMeta");at+=Je.move(Te.safe(ke.meta,Po({after:`
`,before:at,encode:["$"]},Je.current()))),Ge()}return at+=Je.move(`
`),Le&&(at+=Je.move(Le+`
`)),at+=Je.move(Ye),ne(),at}function ye(ke,ee,Te){let Me=ke.value||"",Le=1;for(fe||Le++;new RegExp("(^|[^$])"+"\\$".repeat(Le)+"([^$]|$)").test(Me);)Le++;const Je="$".repeat(Le);/[^ \r\n]/.test(Me)&&(/^[ \r\n]/.test(Me)&&/[ \r\n]$/.test(Me)||/^\$|\$$/.test(Me))&&(Me=" "+Me+" ");let Ye=-1;for(;++Ye<Te.unsafe.length;){const ne=Te.unsafe[Ye];if(!ne.atBreak)continue;const at=Te.compilePattern(ne);let Ge;for(;Ge=at.exec(Me);){let Pt=Ge.index;Me.codePointAt(Pt)===10&&Me.codePointAt(Pt-1)===13&&Pt--,Me=Me.slice(0,Pt)+" "+Me.slice(Ge.index+1)}}return Je+Me+Je}function pe(){return"$"}}var G=h(26735),F=h(80722);const M={tokenize:ae,concrete:!0,name:"mathFlow"},de={tokenize:te,partial:!0};function ae(Re,fe,me){const ye=this,pe=ye.events[ye.events.length-1],ke=pe&&pe[1].type==="linePrefix"?pe[2].sliceSerialize(pe[1],!0).length:0;let ee=0;return Te;function Te(Ct){return Re.enter("mathFlow"),Re.enter("mathFlowFence"),Re.enter("mathFlowFenceSequence"),Me(Ct)}function Me(Ct){return Ct===36?(Re.consume(Ct),ee++,Me):ee<2?me(Ct):(Re.exit("mathFlowFenceSequence"),(0,G.f)(Re,Le,"whitespace")(Ct))}function Le(Ct){return Ct===null||(0,F.Ch)(Ct)?Ye(Ct):(Re.enter("mathFlowFenceMeta"),Re.enter("chunkString",{contentType:"string"}),Je(Ct))}function Je(Ct){return Ct===null||(0,F.Ch)(Ct)?(Re.exit("chunkString"),Re.exit("mathFlowFenceMeta"),Ye(Ct)):Ct===36?me(Ct):(Re.consume(Ct),Je)}function Ye(Ct){return Re.exit("mathFlowFence"),ye.interrupt?fe(Ct):Re.attempt(de,ne,gt)(Ct)}function ne(Ct){return Re.attempt({tokenize:kt,partial:!0},gt,at)(Ct)}function at(Ct){return(ke?(0,G.f)(Re,Ge,"linePrefix",ke+1):Ge)(Ct)}function Ge(Ct){return Ct===null?gt(Ct):(0,F.Ch)(Ct)?Re.attempt(de,ne,gt)(Ct):(Re.enter("mathFlowValue"),Pt(Ct))}function Pt(Ct){return Ct===null||(0,F.Ch)(Ct)?(Re.exit("mathFlowValue"),Ge(Ct)):(Re.consume(Ct),Pt)}function gt(Ct){return Re.exit("mathFlow"),fe(Ct)}function kt(Ct,Cn,Qe){let le=0;return(0,G.f)(Ct,ce,"linePrefix",ye.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function ce(St){return Ct.enter("mathFlowFence"),Ct.enter("mathFlowFenceSequence"),Ht(St)}function Ht(St){return St===36?(le++,Ct.consume(St),Ht):le<ee?Qe(St):(Ct.exit("mathFlowFenceSequence"),(0,G.f)(Ct,Vt,"whitespace")(St))}function Vt(St){return St===null||(0,F.Ch)(St)?(Ct.exit("mathFlowFence"),Cn(St)):Qe(St)}}}function te(Re,fe,me){const ye=this;return pe;function pe(ee){return ee===null?fe(ee):(Re.enter("lineEnding"),Re.consume(ee),Re.exit("lineEnding"),ke)}function ke(ee){return ye.parser.lazy[ye.now().line]?me(ee):fe(ee)}}function Ne(Re){let me=(Re||{}).singleDollarTextMath;return me==null&&(me=!0),{tokenize:ye,resolve:Ee,previous:Xe,name:"mathText"};function ye(pe,ke,ee){const Te=this;let Me=0,Le,Je;return Ye;function Ye(gt){return pe.enter("mathText"),pe.enter("mathTextSequence"),ne(gt)}function ne(gt){return gt===36?(pe.consume(gt),Me++,ne):Me<2&&!me?ee(gt):(pe.exit("mathTextSequence"),at(gt))}function at(gt){return gt===null?ee(gt):gt===36?(Je=pe.enter("mathTextSequence"),Le=0,Pt(gt)):gt===32?(pe.enter("space"),pe.consume(gt),pe.exit("space"),at):(0,F.Ch)(gt)?(pe.enter("lineEnding"),pe.consume(gt),pe.exit("lineEnding"),at):(pe.enter("mathTextData"),Ge(gt))}function Ge(gt){return gt===null||gt===32||gt===36||(0,F.Ch)(gt)?(pe.exit("mathTextData"),at(gt)):(pe.consume(gt),Ge)}function Pt(gt){return gt===36?(pe.consume(gt),Le++,Pt):Le===Me?(pe.exit("mathTextSequence"),pe.exit("mathText"),ke(gt)):(Je.type="mathTextData",Ge(gt))}}}function Ee(Re){let fe=Re.length-4,me=3,ye,pe;if((Re[me][1].type==="lineEnding"||Re[me][1].type==="space")&&(Re[fe][1].type==="lineEnding"||Re[fe][1].type==="space")){for(ye=me;++ye<fe;)if(Re[ye][1].type==="mathTextData"){Re[fe][1].type="mathTextPadding",Re[me][1].type="mathTextPadding",me+=2,fe-=2;break}}for(ye=me-1,fe++;++ye<=fe;)pe===void 0?ye!==fe&&Re[ye][1].type!=="lineEnding"&&(pe=ye):(ye===fe||Re[ye][1].type==="lineEnding")&&(Re[pe][1].type="mathTextData",ye!==pe+2&&(Re[pe][1].end=Re[ye-1][1].end,Re.splice(pe+2,ye-pe-2),fe-=ye-pe-2,ye=pe+2),pe=void 0);return Re}function Xe(Re){return Re!==36||this.events[this.events.length-1][1].type==="characterEscape"}function Oe(Re){return{flow:{36:M},text:{36:Ne(Re)}}}const Ce={};function Ie(Re){const fe=this,me=Re||Ce,ye=fe.data(),pe=ye.micromarkExtensions||(ye.micromarkExtensions=[]),ke=ye.fromMarkdownExtensions||(ye.fromMarkdownExtensions=[]),ee=ye.toMarkdownExtensions||(ye.toMarkdownExtensions=[]);pe.push(Oe(me)),ke.push(O()),ee.push(B(me))}},16722:function(X,C,h){"use strict";h.d(C,{Z:function(){return de}});const v=ae=>typeof ae=="object"&&ae!=null&&ae.nodeType===1,I=(ae,te)=>(!te||ae!=="hidden")&&ae!=="visible"&&ae!=="clip",O=(ae,te)=>{if(ae.clientHeight<ae.scrollHeight||ae.clientWidth<ae.scrollWidth){const Ne=getComputedStyle(ae,null);return I(Ne.overflowY,te)||I(Ne.overflowX,te)||(Ee=>{const Xe=(Oe=>{if(!Oe.ownerDocument||!Oe.ownerDocument.defaultView)return null;try{return Oe.ownerDocument.defaultView.frameElement}catch(Ce){return null}})(Ee);return!!Xe&&(Xe.clientHeight<Ee.scrollHeight||Xe.clientWidth<Ee.scrollWidth)})(ae)}return!1},B=(ae,te,Ne,Ee,Xe,Oe,Ce,Ie)=>Oe<ae&&Ce>te||Oe>ae&&Ce<te?0:Oe<=ae&&Ie<=Ne||Ce>=te&&Ie>=Ne?Oe-ae-Ee:Ce>te&&Ie<Ne||Oe<ae&&Ie>Ne?Ce-te+Xe:0,G=ae=>{const te=ae.parentElement;return te==null?ae.getRootNode().host||null:te},F=(ae,te)=>{var Ne,Ee,Xe,Oe;if(typeof document=="undefined")return[];const{scrollMode:Ce,block:Ie,inline:Re,boundary:fe,skipOverflowHiddenElements:me}=te,ye=typeof fe=="function"?fe:Vt=>Vt!==fe;if(!v(ae))throw new TypeError("Invalid target");const pe=document.scrollingElement||document.documentElement,ke=[];let ee=ae;for(;v(ee)&&ye(ee);){if(ee=G(ee),ee===pe){ke.push(ee);break}ee!=null&&ee===document.body&&O(ee)&&!O(document.documentElement)||ee!=null&&O(ee,me)&&ke.push(ee)}const Te=(Ee=(Ne=window.visualViewport)==null?void 0:Ne.width)!=null?Ee:innerWidth,Me=(Oe=(Xe=window.visualViewport)==null?void 0:Xe.height)!=null?Oe:innerHeight,{scrollX:Le,scrollY:Je}=window,{height:Ye,width:ne,top:at,right:Ge,bottom:Pt,left:gt}=ae.getBoundingClientRect(),{top:kt,right:Ct,bottom:Cn,left:Qe}=(Vt=>{const St=window.getComputedStyle(Vt);return{top:parseFloat(St.scrollMarginTop)||0,right:parseFloat(St.scrollMarginRight)||0,bottom:parseFloat(St.scrollMarginBottom)||0,left:parseFloat(St.scrollMarginLeft)||0}})(ae);let le=Ie==="start"||Ie==="nearest"?at-kt:Ie==="end"?Pt+Cn:at+Ye/2-kt+Cn,ce=Re==="center"?gt+ne/2-Qe+Ct:Re==="end"?Ge+Ct:gt-Qe;const Ht=[];for(let Vt=0;Vt<ke.length;Vt++){const St=ke[Vt],{height:sn,width:Ft,top:oi,right:On,bottom:ni,left:Jn}=St.getBoundingClientRect();if(Ce==="if-needed"&&at>=0&&gt>=0&&Pt<=Me&&Ge<=Te&&(St===pe&&!O(St)||at>=oi&&Pt<=ni&&gt>=Jn&&Ge<=On))return Ht;const Mn=getComputedStyle(St),In=parseInt(Mn.borderLeftWidth,10),re=parseInt(Mn.borderTopWidth,10),z=parseInt(Mn.borderRightWidth,10),k=parseInt(Mn.borderBottomWidth,10);let j=0,Q=0;const T="offsetWidth"in St?St.offsetWidth-St.clientWidth-In-z:0,_e="offsetHeight"in St?St.offsetHeight-St.clientHeight-re-k:0,It="offsetWidth"in St?St.offsetWidth===0?0:Ft/St.offsetWidth:0,$e="offsetHeight"in St?St.offsetHeight===0?0:sn/St.offsetHeight:0;if(pe===St)j=Ie==="start"?le:Ie==="end"?le-Me:Ie==="nearest"?B(Je,Je+Me,Me,re,k,Je+le,Je+le+Ye,Ye):le-Me/2,Q=Re==="start"?ce:Re==="center"?ce-Te/2:Re==="end"?ce-Te:B(Le,Le+Te,Te,In,z,Le+ce,Le+ce+ne,ne),j=Math.max(0,j+Je),Q=Math.max(0,Q+Le);else{j=Ie==="start"?le-oi-re:Ie==="end"?le-ni+k+_e:Ie==="nearest"?B(oi,ni,sn,re,k+_e,le,le+Ye,Ye):le-(oi+sn/2)+_e/2,Q=Re==="start"?ce-Jn-In:Re==="center"?ce-(Jn+Ft/2)+T/2:Re==="end"?ce-On+z+T:B(Jn,On,Ft,In,z+T,ce,ce+ne,ne);const{scrollLeft:Pe,scrollTop:vt}=St;j=$e===0?0:Math.max(0,Math.min(vt+j/$e,St.scrollHeight-sn/$e+_e)),Q=It===0?0:Math.max(0,Math.min(Pe+Q/It,St.scrollWidth-Ft/It+T)),le+=vt-j,ce+=Pe-Q}Ht.push({el:St,top:j,left:Q})}return Ht},M=ae=>ae===!1?{block:"end",inline:"nearest"}:(te=>te===Object(te)&&Object.keys(te).length!==0)(ae)?ae:{block:"start",inline:"nearest"};function de(ae,te){if(!ae.isConnected||!(Xe=>{let Oe=Xe;for(;Oe&&Oe.parentNode;){if(Oe.parentNode===document)return!0;Oe=Oe.parentNode instanceof ShadowRoot?Oe.parentNode.host:Oe.parentNode}return!1})(ae))return;const Ne=(Xe=>{const Oe=window.getComputedStyle(Xe);return{top:parseFloat(Oe.scrollMarginTop)||0,right:parseFloat(Oe.scrollMarginRight)||0,bottom:parseFloat(Oe.scrollMarginBottom)||0,left:parseFloat(Oe.scrollMarginLeft)||0}})(ae);if((Xe=>typeof Xe=="object"&&typeof Xe.behavior=="function")(te))return te.behavior(F(ae,te));const Ee=typeof te=="boolean"||te==null?void 0:te.behavior;for(const{el:Xe,top:Oe,left:Ce}of F(ae,M(te))){const Ie=Oe-Ne.top+Ne.bottom,Re=Ce-Ne.left+Ne.right;Xe.scroll({top:Ie,left:Re,behavior:Ee})}}},71523:function(X,C,h){"use strict";h.d(C,{P:function(){return I},Q:function(){return v}});function v(O){const B=String(O||"").trim();return B?B.split(/[ \t\n\r\f]+/g):[]}function I(O){return O.join(" ").trim()}},10502:function(X,C,h){"use strict";h.d(C,{O:function(){return I}});const v=function(ae,te,Ne,Ee,Xe){const Oe=I(te);if(Ne!=null&&(typeof Ne!="number"||Ne<0||Ne===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if(Ee!=null&&(!v(Ee)||!Ee.children))throw new Error("Expected parent node");if(Ee==null!=(Ne==null))throw new Error("Expected both parent and index");return de(ae)?Oe.call(Xe,ae,Ne,Ee):!1},I=function(ae){if(ae==null)return M;if(typeof ae=="function")return F(ae);if(typeof ae=="object")return Array.isArray(ae)?O(ae):B(ae);if(typeof ae=="string")return G(ae);throw new Error("Expected function, string, or object as test")};function O(ae){const te=[];let Ne=-1;for(;++Ne<ae.length;)te[Ne]=I(ae[Ne]);return F(Ee);function Ee(...Xe){let Oe=-1;for(;++Oe<te.length;)if(te[Oe].apply(this,Xe))return!0;return!1}}function B(ae){const te=ae;return F(Ne);function Ne(Ee){const Xe=Ee;let Oe;for(Oe in ae)if(Xe[Oe]!==te[Oe])return!1;return!0}}function G(ae){return F(te);function te(Ne){return Ne&&Ne.type===ae}}function F(ae){return te;function te(Ne,Ee,Xe){return!!(de(Ne)&&ae.call(this,Ne,typeof Ee=="number"?Ee:void 0,Xe||void 0))}}function M(){return!0}function de(ae){return ae!==null&&typeof ae=="object"&&"type"in ae}},17970:function(X,C,h){"use strict";h.d(C,{FK:function(){return B},Pk:function(){return I},rb:function(){return v}});const v=O("end"),I=O("start");function O(G){return F;function F(M){const de=M&&M.position&&M.position[G]||{};if(typeof de.line=="number"&&de.line>0&&typeof de.column=="number"&&de.column>0)return{line:de.line,column:de.column,offset:typeof de.offset=="number"&&de.offset>-1?de.offset:void 0}}}function B(G){const F=I(G),M=v(G);if(F&&M)return{start:F,end:M}}},2348:function(X,C,h){"use strict";h.d(C,{AM:function(){return F},S4:function(){return M}});var v=h(10502);function I(ae){return ae}const O=[],B=!0,G=!1,F="skip";function M(ae,te,Ne,Ee){let Xe;typeof te=="function"&&typeof Ne!="function"?(Ee=Ne,Ne=te):Xe=te;const Oe=(0,v.O)(Xe),Ce=Ee?-1:1;Ie(ae,void 0,[])();function Ie(Re,fe,me){const ye=Re&&typeof Re=="object"?Re:{};if(typeof ye.type=="string"){const ke=typeof ye.tagName=="string"?ye.tagName:typeof ye.name=="string"?ye.name:void 0;Object.defineProperty(pe,"name",{value:"node ("+(Re.type+(ke?"<"+ke+">":""))+")"})}return pe;function pe(){let ke=O,ee,Te,Me;if((!te||Oe(Re,fe,me[me.length-1]||void 0))&&(ke=de(Ne(Re,me)),ke[0]===G))return ke;if("children"in Re&&Re.children){const Le=Re;if(Le.children&&ke[0]!==F)for(Te=(Ee?Le.children.length:-1)+Ce,Me=me.concat(Le);Te>-1&&Te<Le.children.length;){const Je=Le.children[Te];if(ee=Ie(Je,Te,Me)(),ee[0]===G)return ee;Te=typeof ee[1]=="number"?ee[1]:Te+Ce}}return ke}}}function de(ae){return Array.isArray(ae)?ae:typeof ae=="number"?[B,ae]:ae==null?O:[ae]}},10528:function(X,C,h){"use strict";h.d(C,{Vn:function(){return I}});var v=h(2348);function I(O,B,G,F){let M,de,ae;typeof B=="function"&&typeof G!="function"?(de=void 0,ae=B,M=G):(de=B,ae=G,M=F),(0,v.S4)(O,de,te,M);function te(Ne,Ee){const Xe=Ee[Ee.length-1],Oe=Xe?Xe.children.indexOf(Ne):void 0;return ae(Ne,Oe,Xe)}}},43309:function(X,C,h){"use strict";h.d(C,{t:function(){return v}});const v={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},47854:function(X){"use strict";X.exports=JSON.parse('{"AElig":"\xC6","AMP":"&","Aacute":"\xC1","Acirc":"\xC2","Agrave":"\xC0","Aring":"\xC5","Atilde":"\xC3","Auml":"\xC4","COPY":"\xA9","Ccedil":"\xC7","ETH":"\xD0","Eacute":"\xC9","Ecirc":"\xCA","Egrave":"\xC8","Euml":"\xCB","GT":">","Iacute":"\xCD","Icirc":"\xCE","Igrave":"\xCC","Iuml":"\xCF","LT":"<","Ntilde":"\xD1","Oacute":"\xD3","Ocirc":"\xD4","Ograve":"\xD2","Oslash":"\xD8","Otilde":"\xD5","Ouml":"\xD6","QUOT":"\\"","REG":"\xAE","THORN":"\xDE","Uacute":"\xDA","Ucirc":"\xDB","Ugrave":"\xD9","Uuml":"\xDC","Yacute":"\xDD","aacute":"\xE1","acirc":"\xE2","acute":"\xB4","aelig":"\xE6","agrave":"\xE0","amp":"&","aring":"\xE5","atilde":"\xE3","auml":"\xE4","brvbar":"\xA6","ccedil":"\xE7","cedil":"\xB8","cent":"\xA2","copy":"\xA9","curren":"\xA4","deg":"\xB0","divide":"\xF7","eacute":"\xE9","ecirc":"\xEA","egrave":"\xE8","eth":"\xF0","euml":"\xEB","frac12":"\xBD","frac14":"\xBC","frac34":"\xBE","gt":">","iacute":"\xED","icirc":"\xEE","iexcl":"\xA1","igrave":"\xEC","iquest":"\xBF","iuml":"\xEF","laquo":"\xAB","lt":"<","macr":"\xAF","micro":"\xB5","middot":"\xB7","nbsp":"\xA0","not":"\xAC","ntilde":"\xF1","oacute":"\xF3","ocirc":"\xF4","ograve":"\xF2","ordf":"\xAA","ordm":"\xBA","oslash":"\xF8","otilde":"\xF5","ouml":"\xF6","para":"\xB6","plusmn":"\xB1","pound":"\xA3","quot":"\\"","raquo":"\xBB","reg":"\xAE","sect":"\xA7","shy":"\xAD","sup1":"\xB9","sup2":"\xB2","sup3":"\xB3","szlig":"\xDF","thorn":"\xFE","times":"\xD7","uacute":"\xFA","ucirc":"\xFB","ugrave":"\xF9","uml":"\xA8","uuml":"\xFC","yacute":"\xFD","yen":"\xA5","yuml":"\xFF"}')},80501:function(X){"use strict";X.exports=JSON.parse('{"0":"\uFFFD","128":"\u20AC","130":"\u201A","131":"\u0192","132":"\u201E","133":"\u2026","134":"\u2020","135":"\u2021","136":"\u02C6","137":"\u2030","138":"\u0160","139":"\u2039","140":"\u0152","142":"\u017D","145":"\u2018","146":"\u2019","147":"\u201C","148":"\u201D","149":"\u2022","150":"\u2013","151":"\u2014","152":"\u02DC","153":"\u2122","154":"\u0161","155":"\u203A","156":"\u0153","158":"\u017E","159":"\u0178"}')}}]);
}());