|
|
!(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=(Q,C,d)=>C in Q?fx(Q,C,{enumerable:!0,configurable:!0,writable:!0,value:d}):Q[C]=d,Bo=(Q,C)=>{for(var d in C||(C={}))Ab.call(C,d)&&Nb(Q,d,C[d]);if(ug)for(var d of ug(C))kb.call(C,d)&&Nb(Q,d,C[d]);return Q},cd=(Q,C)=>px(Q,mx(C));var Ib=(Q,C)=>{var d={};for(var b in Q)Ab.call(Q,b)&&C.indexOf(b)<0&&(d[b]=Q[b]);if(Q!=null&&ug)for(var b of ug(Q))C.indexOf(b)<0&&kb.call(Q,b)&&(d[b]=Q[b]);return d};var iy=(Q,C,d)=>new Promise((b,I)=>{var O=_=>{try{W(d.next(_))}catch(M){I(M)}},z=_=>{try{W(d.throw(_))}catch(M){I(M)}},W=_=>_.done?b(_.value):Promise.resolve(_.value).then(O,z);W((d=d.apply(Q,C)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[1314],{89489:function(Q,C,d){"use strict";d.d(C,{Z:function(){return pe}});var b=d(92413),I=d(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"},z=O,W=d(7657),_=function(ne,Pe){return I.createElement(W.Z,(0,b.Z)({},ne,{ref:Pe,icon:z}))},M=I.forwardRef(_),pe=M},59477:function(Q,C,d){"use strict";d.d(C,{Z:function(){return pe}});var b=d(92413),I=d(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"},z=O,W=d(7657),_=function(ne,Pe){return I.createElement(W.Z,(0,b.Z)({},ne,{ref:Pe,icon:z}))},M=I.forwardRef(_),pe=M},40001:function(Q,C,d){"use strict";d.d(C,{Z:function(){return pe}});var b=d(92413),I=d(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"},z=O,W=d(7657),_=function(ne,Pe){return I.createElement(W.Z,(0,b.Z)({},ne,{ref:Pe,icon:z}))},M=I.forwardRef(_),pe=M},26227:function(Q,C,d){"use strict";d.d(C,{Z:function(){return pe}});var b=d(92413),I=d(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"},z=O,W=d(7657),_=function(ne,Pe){return I.createElement(W.Z,(0,b.Z)({},ne,{ref:Pe,icon:z}))},M=I.forwardRef(_),pe=M},49198:function(Q,C,d){"use strict";d.d(C,{Z:function(){return pe}});var b=d(92413),I=d(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"},z=O,W=d(7657),_=function(ne,Pe){return I.createElement(W.Z,(0,b.Z)({},ne,{ref:Pe,icon:z}))},M=I.forwardRef(_),pe=M},41464:function(Q,C,d){"use strict";d.d(C,{Z:function(){return pe}});var b=d(92413),I=d(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"},z=O,W=d(7657),_=function(ne,Pe){return I.createElement(W.Z,(0,b.Z)({},ne,{ref:Pe,icon:z}))},M=I.forwardRef(_),pe=M},73331:function(Q,C,d){"use strict";d.d(C,{Z:function(){return pe}});var b=d(92413),I=d(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"},z=O,W=d(7657),_=function(ne,Pe){return I.createElement(W.Z,(0,b.Z)({},ne,{ref:Pe,icon:z}))},M=I.forwardRef(_),pe=M},15277:function(Q,C,d){"use strict";d.d(C,{Z:function(){return pe}});var b=d(92413),I=d(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"},z=O,W=d(7657),_=function(ne,Pe){return I.createElement(W.Z,(0,b.Z)({},ne,{ref:Pe,icon:z}))},M=I.forwardRef(_),pe=M},52671:function(Q,C,d){"use strict";d.d(C,{Z:function(){return pe}});var b=d(92413),I=d(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"},z=O,W=d(7657),_=function(ne,Pe){return I.createElement(W.Z,(0,b.Z)({},ne,{ref:Pe,icon:z}))},M=I.forwardRef(_),pe=M},8657:function(Q,C,d){"use strict";d.d(C,{Z:function(){return pe}});var b=d(92413),I=d(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"},z=O,W=d(7657),_=function(ne,Pe){return I.createElement(W.Z,(0,b.Z)({},ne,{ref:Pe,icon:z}))},M=I.forwardRef(_),pe=M},56082:function(Q,C,d){"use strict";d.d(C,{Z:function(){return pe}});var b=d(92413),I=d(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"},z=O,W=d(7657),_=function(ne,Pe){return I.createElement(W.Z,(0,b.Z)({},ne,{ref:Pe,icon:z}))},M=I.forwardRef(_),pe=M},33853:function(Q,C,d){"use strict";d.d(C,{Z:function(){return pe}});var b=d(92413),I=d(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"},z=O,W=d(7657),_=function(ne,Pe){return I.createElement(W.Z,(0,b.Z)({},ne,{ref:Pe,icon:z}))},M=I.forwardRef(_),pe=M},15075:function(Q,C,d){"use strict";d.d(C,{Z:function(){return pe}});var b=d(92413),I=d(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"},z=O,W=d(7657),_=function(ne,Pe){return I.createElement(W.Z,(0,b.Z)({},ne,{ref:Pe,icon:z}))},M=I.forwardRef(_),pe=M},43531:function(Q,C,d){"use strict";d.d(C,{Z:function(){return pe}});var b=d(92413),I=d(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"},z=O,W=d(7657),_=function(ne,Pe){return I.createElement(W.Z,(0,b.Z)({},ne,{ref:Pe,icon:z}))},M=I.forwardRef(_),pe=M},61485:function(Q,C,d){"use strict";d.d(C,{Z:function(){return pe}});var b=d(92413),I=d(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"},z=O,W=d(7657),_=function(ne,Pe){return I.createElement(W.Z,(0,b.Z)({},ne,{ref:Pe,icon:z}))},M=I.forwardRef(_),pe=M},38819:function(Q,C,d){"use strict";d.d(C,{Z:function(){return pe}});var b=d(92413),I=d(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"},z=O,W=d(7657),_=function(ne,Pe){return I.createElement(W.Z,(0,b.Z)({},ne,{ref:Pe,icon:z}))},M=I.forwardRef(_),pe=M},47472:function(Q,C,d){"use strict";d.d(C,{Z:function(){return pe}});var b=d(92413),I=d(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"},z=O,W=d(7657),_=function(ne,Pe){return I.createElement(W.Z,(0,b.Z)({},ne,{ref:Pe,icon:z}))},M=I.forwardRef(_),pe=M},32050:function(Q,C,d){"use strict";d.d(C,{Z:function(){return pe}});var b=d(92413),I=d(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"},z=O,W=d(7657),_=function(ne,Pe){return I.createElement(W.Z,(0,b.Z)({},ne,{ref:Pe,icon:z}))},M=I.forwardRef(_),pe=M},78780:function(){"use strict"},19136:function(){"use strict"},50371:function(Q,C){"use strict";function d(){const b=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(z=>{const W=O[z];W!==void 0&&(b[z]=W)})}return b}C.Z=d},13845:function(Q,C,d){"use strict";d.d(C,{F:function(){return b},Z:function(){return I}});function b(O){return O!=null&&O===O.window}function I(O,z){var W,_;if(typeof window=="undefined")return 0;const M=z?"scrollTop":"scrollLeft";let pe=0;return b(O)?pe=O[z?"pageYOffset":"pageXOffset"]:O instanceof Document?pe=O.documentElement[M]:(O instanceof HTMLElement||O)&&(pe=O[M]),O&&!b(O)&&typeof pe!="number"&&(pe=(_=((W=O.ownerDocument)!==null&&W!==void 0?W:O).documentElement)===null||_===void 0?void 0:_[M]),pe}},56762:function(Q,C,d){"use strict";d.d(C,{Z:function(){return I}});var b=d(59301);function I(){const[,O]=b.useReducer(z=>z+1,0);return O}},68031:function(Q,C,d){"use strict";d.d(C,{Z:function(){return z}});var b=d(16089);function I(W,_,M,pe){const ue=M-_;return W/=pe/2,W<1?ue/2*W*W*W+_:ue/2*((W-=2)*W*W+2)+_}var O=d(13845);function z(W){let _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:M=()=>window,callback:pe,duration:ue=450}=_,ne=M(),Pe=(0,O.Z)(ne,!0),ke=Date.now(),rt=()=>{const Ie=Date.now()-ke,De=I(Ie>ue?ue:Ie,Pe,W,ue);(0,O.F)(ne)?ne.scrollTo(window.pageXOffset,De):ne instanceof Document||ne.constructor.name==="HTMLDocument"?ne.documentElement.scrollTop=De:ne.scrollTop=De,Ie<ue?(0,b.Z)(rt):typeof pe=="function"&&pe()};(0,b.Z)(rt)}},24905:function(Q,C,d){"use strict";d.d(C,{default:function(){return Ce}});var b=d(92310),I=d.n(b),O=d(5630),z=d(59301),W=d(36355),_=d(1684),M=d(32441),ue=z.createContext(null),ne=d(98447),Pe=d(14088),ke=d(4572),rt=function(Ne,Le){var Ke={};for(var nt in Ne)Object.prototype.hasOwnProperty.call(Ne,nt)&&Le.indexOf(nt)<0&&(Ke[nt]=Ne[nt]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,nt=Object.getOwnPropertySymbols(Ne);ie<nt.length;ie++)Le.indexOf(nt[ie])<0&&Object.prototype.propertyIsEnumerable.call(Ne,nt[ie])&&(Ke[nt[ie]]=Ne[nt[ie]]);return Ke};const Ue=(Ne,Le)=>{var Ke;const{prefixCls:nt,className:ie,rootClassName:at,children:Ze,indeterminate:Bt=!1,style:bt,onMouseEnter:kt,onMouseLeave:Tt,skipGroup:wn=!1,disabled:Xe}=Ne,se=rt(Ne,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:le,direction:_t,checkbox:jt}=z.useContext(W.E_),yt=z.useContext(ue),{isFormItemInput:ln}=z.useContext(M.aM),Dt=z.useContext(_.Z),ui=(Ke=(yt==null?void 0:yt.disabled)||Xe)!==null&&Ke!==void 0?Ke:Dt,On=z.useRef(se.value);z.useEffect(()=>{yt==null||yt.registerValue(se.value)},[]),z.useEffect(()=>{if(!wn)return se.value!==On.current&&(yt==null||yt.cancelValue(On.current),yt==null||yt.registerValue(se.value),On.current=se.value),()=>yt==null?void 0:yt.cancelValue(se.value)},[se.value]);const ri=le("checkbox",nt),[Xn,Tn]=(0,ne.ZP)(ri),Nn=Object.assign({},se);yt&&!wn&&(Nn.onChange=function(){se.onChange&&se.onChange.apply(se,arguments),yt.toggleOption&&yt.toggleOption({label:Ze,value:se.value})},Nn.name=yt.name,Nn.checked=yt.value.includes(se.value));const xe=I()(`${ri}-wrapper`,{[`${ri}-rtl`]:_t==="rtl",[`${ri}-wrapper-checked`]:Nn.checked,[`${ri}-wrapper-disabled`]:ui,[`${ri}-wrapper-in-form-item`]:ln},jt==null?void 0:jt.className,ie,at,Tn),P=I()({[`${ri}-indeterminate`]:Bt},ke.A,Tn),k=Bt?"mixed":void 0;return Xn(z.createElement(Pe.Z,{component:"Checkbox",disabled:ui},z.createElement("label",{className:xe,style:Object.assign(Object.assign({},jt==null?void 0:jt.style),bt),onMouseEnter:kt,onMouseLeave:Tt},z.createElement(O.Z,Object.assign({"aria-checked":k},Nn,{prefixCls:ri,className:P,disabled:ui,ref:Le})),Ze!==void 0&&z.createElement("span",null,Ze))))};var De=z.forwardRef(Ue),Fe=d(26407),de=d(2738),me=function(Ne,Le){var Ke={};for(var nt in Ne)Object.prototype.hasOwnProperty.call(Ne,nt)&&Le.indexOf(nt)<0&&(Ke[nt]=Ne[nt]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,nt=Object.getOwnPropertySymbols(Ne);ie<nt.length;ie++)Le.indexOf(nt[ie])<0&&Object.prototype.propertyIsEnumerable.call(Ne,nt[ie])&&(Ke[nt[ie]]=Ne[nt[ie]]);return Ke};const we=(Ne,Le)=>{const{defaultValue:Ke,children:nt,options:ie=[],prefixCls:at,className:Ze,rootClassName:Bt,style:bt,onChange:kt}=Ne,Tt=me(Ne,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:wn,direction:Xe}=z.useContext(W.E_),[se,le]=z.useState(Tt.value||Ke||[]),[_t,jt]=z.useState([]);z.useEffect(()=>{"value"in Tt&&le(Tt.value||[])},[Tt.value]);const yt=z.useMemo(()=>ie.map(j=>typeof j=="string"||typeof j=="number"?{label:j,value:j}:j),[ie]),ln=j=>{jt(X=>X.filter(N=>N!==j))},Dt=j=>{jt(X=>[].concat((0,Fe.Z)(X),[j]))},ui=j=>{const X=se.indexOf(j.value),N=(0,Fe.Z)(se);X===-1?N.push(j.value):N.splice(X,1),"value"in Tt||le(N),kt==null||kt(N.filter(Re=>_t.includes(Re)).sort((Re,wt)=>{const ze=yt.findIndex(mt=>mt.value===Re),Oe=yt.findIndex(mt=>mt.value===wt);return ze-Oe}))},On=wn("checkbox",at),ri=`${On}-group`,[Xn,Tn]=(0,ne.ZP)(On),Nn=(0,de.Z)(Tt,["value","disabled"]),xe=ie.length?yt.map(j=>z.createElement(De,{prefixCls:On,key:j.value.toString(),disabled:"disabled"in j?j.disabled:Tt.disabled,value:j.value,checked:se.includes(j.value),onChange:j.onChange,className:`${ri}-item`,style:j.style,title:j.title},j.label)):nt,P={toggleOption:ui,value:se,disabled:Tt.disabled,name:Tt.name,registerValue:Dt,cancelValue:ln},k=I()(ri,{[`${ri}-rtl`]:Xe==="rtl"},Ze,Bt,Tn);return Xn(z.createElement("div",Object.assign({className:k,style:bt},Nn,{ref:Le}),z.createElement(ue.Provider,{value:P},xe)))},ge=z.forwardRef(we);var Te=z.memo(ge);const ee=De;ee.Group=Te,ee.__ANT_CHECKBOX=!0;var Ce=ee},98447:function(Q,C,d){"use strict";d.d(C,{C2:function(){return W}});var b=d(17313),I=d(37613),O=d(83116);const z=_=>{const{checkboxCls:M}=_,pe=`${M}-wrapper`;return[{[`${M}-group`]:Object.assign(Object.assign({},(0,b.Wf)(_)),{display:"inline-flex",flexWrap:"wrap",columnGap:_.marginXS,[`> ${_.antCls}-row`]:{flex:1}}),[pe]:Object.assign(Object.assign({},(0,b.Wf)(_)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${pe}`]:{marginInlineStart:0},[`&${pe}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[M]:Object.assign(Object.assign({},(0,b.Wf)(_)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:_.borderRadiusSM,alignSelf:"center",[`${M}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${M}-inner`]:Object.assign({},(0,b.oN)(_))},[`${M}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:_.checkboxSize,height:_.checkboxSize,direction:"ltr",backgroundColor:_.colorBgContainer,border:`${_.lineWidth}px ${_.lineType} ${_.colorBorder}`,borderRadius:_.borderRadiusSM,borderCollapse:"separate",transition:`all ${_.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:_.checkboxSize/14*5,height:_.checkboxSize/14*8,border:`${_.lineWidthBold}px solid ${_.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${_.motionDurationFast} ${_.motionEaseInBack}, opacity ${_.motionDurationFast}`}},"& + span":{paddingInlineStart:_.paddingXS,paddingInlineEnd:_.paddingXS}})},{[`
|
|
|
${pe}:not(${pe}-disabled),
|
|
|
${M}:not(${M}-disabled)
|
|
|
`]:{[`&:hover ${M}-inner`]:{borderColor:_.colorPrimary}},[`${pe}:not(${pe}-disabled)`]:{[`&:hover ${M}-checked:not(${M}-disabled) ${M}-inner`]:{backgroundColor:_.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${M}-checked:not(${M}-disabled):after`]:{borderColor:_.colorPrimaryHover}}},{[`${M}-checked`]:{[`${M}-inner`]:{backgroundColor:_.colorPrimary,borderColor:_.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${_.motionDurationMid} ${_.motionEaseOutBack} ${_.motionDurationFast}`}}},[`
|
|
|
${pe}-checked:not(${pe}-disabled),
|
|
|
${M}-checked:not(${M}-disabled)
|
|
|
`]:{[`&:hover ${M}-inner`]:{backgroundColor:_.colorPrimaryHover,borderColor:"transparent"}}},{[M]:{"&-indeterminate":{[`${M}-inner`]:{backgroundColor:_.colorBgContainer,borderColor:_.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:_.fontSizeLG/2,height:_.fontSizeLG/2,backgroundColor:_.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${pe}-disabled`]:{cursor:"not-allowed"},[`${M}-disabled`]:{[`&, ${M}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${M}-inner`]:{background:_.colorBgContainerDisabled,borderColor:_.colorBorder,"&:after":{borderColor:_.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:_.colorTextDisabled},[`&${M}-indeterminate ${M}-inner::after`]:{background:_.colorTextDisabled}}}]};function W(_,M){const pe=(0,I.TS)(M,{checkboxCls:`.${_}`,checkboxSize:M.controlInteractiveSize});return[z(pe)]}C.ZP=(0,O.Z)("Checkbox",(_,M)=>{let{prefixCls:pe}=M;return[W(pe,_)]})},93891:function(Q,C,d){"use strict";var b=d(59301),I=d(36355),O=d(64165);const z=W=>{const{componentName:_}=W,{getPrefixCls:M}=(0,b.useContext)(I.E_),pe=M("empty");switch(_){case"Table":case"List":return b.createElement(O.Z,{image:O.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return b.createElement(O.Z,{image:O.Z.PRESENTED_IMAGE_SIMPLE,className:`${pe}-small`});default:return b.createElement(O.Z,null)}};C.Z=z},43428:function(Q,C,d){"use strict";d.d(C,{Z:function(){return Xn}});var b=d(92310),I=d.n(b),O=d(33708),z=d(33606),W=d(43403),_=d(34280),M=d(59301),pe=M.createContext(null),ue=M.createContext({}),ne=pe,Pe=d(400),ke=d(92413),rt=d(77900),Ue=d(10228),Ie=d(26112),De=d(70425),Fe=function(Nn){var xe=Nn.prefixCls,P=Nn.className,k=Nn.style,j=Nn.children,X=Nn.containerRef,N=Nn.id,Re=Nn.onMouseEnter,wt=Nn.onMouseOver,ze=Nn.onMouseLeave,Oe=Nn.onClick,mt=Nn.onKeyDown,lt=Nn.onKeyUp,Qe={onMouseEnter:Re,onMouseOver:wt,onMouseLeave:ze,onClick:Oe,onKeyDown:mt,onKeyUp:lt},Ct=M.useContext(ue),nn=Ct.panel,Yt=(0,De.useComposeRef)(nn,X);return M.createElement(M.Fragment,null,M.createElement("div",(0,ke.Z)({id:N,className:I()("".concat(xe,"-content"),P),style:(0,O.Z)({},k),"aria-modal":"true",role:"dialog",ref:Yt},Qe),j))},de=Fe,me=d(48736);function we(Tn){return typeof Tn=="string"&&String(Number(Tn))===Tn?((0,me.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Tn)):Tn}function ge(Tn){warning(!("wrapperClassName"in Tn),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Tn.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Te={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function ee(Tn,Nn){var xe,P,k,j,X=Tn.prefixCls,N=Tn.open,Re=Tn.placement,wt=Tn.inline,ze=Tn.push,Oe=Tn.forceRender,mt=Tn.autoFocus,lt=Tn.keyboard,Qe=Tn.rootClassName,Ct=Tn.rootStyle,nn=Tn.zIndex,Yt=Tn.className,Ot=Tn.id,on=Tn.style,hn=Tn.motion,Ve=Tn.width,Pt=Tn.height,Xt=Tn.children,qt=Tn.contentWrapperStyle,He=Tn.mask,Rn=Tn.maskClosable,Cn=Tn.maskMotion,Gn=Tn.maskClassName,Ci=Tn.maskStyle,ci=Tn.afterOpenChange,sn=Tn.onClose,rn=Tn.onMouseEnter,cr=Tn.onMouseOver,yr=Tn.onMouseLeave,Zn=Tn.onClick,Mr=Tn.onKeyDown,rr=Tn.onKeyUp,U=M.useRef(),mr=M.useRef(),lr=M.useRef();M.useImperativeHandle(Nn,function(){return U.current});var _r=function(Kn){var pt=Kn.keyCode,gn=Kn.shiftKey;switch(pt){case Ue.Z.TAB:{if(pt===Ue.Z.TAB){if(!gn&&document.activeElement===lr.current){var tn;(tn=mr.current)===null||tn===void 0||tn.focus({preventScroll:!0})}else if(gn&&document.activeElement===mr.current){var xi;(xi=lr.current)===null||xi===void 0||xi.focus({preventScroll:!0})}}break}case Ue.Z.ESC:{sn&<&&(Kn.stopPropagation(),sn(Kn));break}}};M.useEffect(function(){if(N&&mt){var ti;(ti=U.current)===null||ti===void 0||ti.focus({preventScroll:!0})}},[N]);var Hr=M.useState(!1),uo=(0,z.Z)(Hr,2),Tr=uo[0],Jr=uo[1],fr=M.useContext(ne),Xi;ze===!1?Xi={distance:0}:ze===!0?Xi={}:Xi=ze||{};var di=(xe=(P=(k=Xi)===null||k===void 0?void 0:k.distance)!==null&&P!==void 0?P:fr==null?void 0:fr.pushDistance)!==null&&xe!==void 0?xe:180,ht=M.useMemo(function(){return{pushDistance:di,push:function(){Jr(!0)},pull:function(){Jr(!1)}}},[di]);M.useEffect(function(){if(N){var ti;fr==null||(ti=fr.push)===null||ti===void 0||ti.call(fr)}else{var Kn;fr==null||(Kn=fr.pull)===null||Kn===void 0||Kn.call(fr)}},[N]),M.useEffect(function(){return function(){var ti;fr==null||(ti=fr.pull)===null||ti===void 0||ti.call(fr)}},[]);var _n=He&&M.createElement(rt.default,(0,ke.Z)({key:"mask"},Cn,{visible:N}),function(ti,Kn){var pt=ti.className,gn=ti.style;return M.createElement("div",{className:I()("".concat(X,"-mask"),pt,Gn),style:(0,O.Z)((0,O.Z)({},gn),Ci),onClick:Rn&&N?sn:void 0,ref:Kn})}),Hn=typeof hn=="function"?hn(Re):hn,gt={};if(Tr&&di)switch(Re){case"top":gt.transform="translateY(".concat(di,"px)");break;case"bottom":gt.transform="translateY(".concat(-di,"px)");break;case"left":gt.transform="translateX(".concat(di,"px)");break;default:gt.transform="translateX(".concat(-di,"px)");break}Re==="left"||Re==="right"?gt.width=we(Ve):gt.height=we(Pt);var Ge={onMouseEnter:rn,onMouseOver:cr,onMouseLeave:yr,onClick:Zn,onKeyDown:Mr,onKeyUp:rr},fn=M.createElement(rt.default,(0,ke.Z)({key:"panel"},Hn,{visible:N,forceRender:Oe,onVisibleChanged:function(Kn){ci==null||ci(Kn)},removeOnLeave:!1,leavedClassName:"".concat(X,"-content-wrapper-hidden")}),function(ti,Kn){var pt=ti.className,gn=ti.style;return M.createElement("div",(0,ke.Z)({className:I()("".concat(X,"-content-wrapper"),pt),style:(0,O.Z)((0,O.Z)((0,O.Z)({},gt),gn),qt)},(0,Ie.Z)(Tn,{data:!0})),M.createElement(de,(0,ke.Z)({id:Ot,containerRef:Kn,prefixCls:X,className:Yt,style:on},Ge),Xt))}),Sn=(0,O.Z)({},Ct);return nn&&(Sn.zIndex=nn),M.createElement(ne.Provider,{value:ht},M.createElement("div",{className:I()(X,"".concat(X,"-").concat(Re),Qe,(j={},(0,Pe.Z)(j,"".concat(X,"-open"),N),(0,Pe.Z)(j,"".concat(X,"-inline"),wt),j)),style:Sn,tabIndex:-1,ref:U,onKeyDown:_r},_n,M.createElement("div",{tabIndex:0,ref:mr,style:Te,"aria-hidden":"true","data-sentinel":"start"}),fn,M.createElement("div",{tabIndex:0,ref:lr,style:Te,"aria-hidden":"true","data-sentinel":"end"})))}var Ce=M.forwardRef(ee),Ne=Ce,Le=function(Nn){var xe=Nn.open,P=xe===void 0?!1:xe,k=Nn.prefixCls,j=k===void 0?"rc-drawer":k,X=Nn.placement,N=X===void 0?"right":X,Re=Nn.autoFocus,wt=Re===void 0?!0:Re,ze=Nn.keyboard,Oe=ze===void 0?!0:ze,mt=Nn.width,lt=mt===void 0?378:mt,Qe=Nn.mask,Ct=Qe===void 0?!0:Qe,nn=Nn.maskClosable,Yt=nn===void 0?!0:nn,Ot=Nn.getContainer,on=Nn.forceRender,hn=Nn.afterOpenChange,Ve=Nn.destroyOnClose,Pt=Nn.onMouseEnter,Xt=Nn.onMouseOver,qt=Nn.onMouseLeave,He=Nn.onClick,Rn=Nn.onKeyDown,Cn=Nn.onKeyUp,Gn=Nn.panelRef,Ci=M.useState(!1),ci=(0,z.Z)(Ci,2),sn=ci[0],rn=ci[1],cr=M.useState(!1),yr=(0,z.Z)(cr,2),Zn=yr[0],Mr=yr[1];(0,_.Z)(function(){Mr(!0)},[]);var rr=Zn?P:!1,U=M.useRef(),mr=M.useRef();(0,_.Z)(function(){rr&&(mr.current=document.activeElement)},[rr]);var lr=function(Jr){var fr;if(rn(Jr),hn==null||hn(Jr),!Jr&&mr.current&&!((fr=U.current)!==null&&fr!==void 0&&fr.contains(mr.current))){var Xi;(Xi=mr.current)===null||Xi===void 0||Xi.focus({preventScroll:!0})}},_r=M.useMemo(function(){return{panel:Gn}},[Gn]);if(!on&&!sn&&!rr&&Ve)return null;var Hr={onMouseEnter:Pt,onMouseOver:Xt,onMouseLeave:qt,onClick:He,onKeyDown:Rn,onKeyUp:Cn},uo=(0,O.Z)((0,O.Z)({},Nn),{},{open:rr,prefixCls:j,placement:N,autoFocus:wt,keyboard:Oe,width:lt,mask:Ct,maskClosable:Yt,inline:Ot===!1,afterOpenChange:lr,ref:U},Hr);return M.createElement(ue.Provider,{value:_r},M.createElement(W.Z,{open:rr||on||sn,autoDestroy:!1,getContainer:Ot,autoLock:Ct&&(rr||sn)},M.createElement(Ne,uo)))},Ke=Le,nt=Ke,ie=d(62892),at=d(36355),Ze=d(32441),Bt=d(47729),kt=Tn=>{const{prefixCls:Nn,title:xe,footer:P,extra:k,closeIcon:j,closable:X,onClose:N,headerStyle:Re,drawerStyle:wt,bodyStyle:ze,footerStyle:Oe,children:mt}=Tn,lt=M.useCallback(Ot=>M.createElement("button",{type:"button",onClick:N,"aria-label":"Close",className:`${Nn}-close`},Ot),[N]),[Qe,Ct]=(0,Bt.Z)(X,j,lt,void 0,!0),nn=M.useMemo(()=>!xe&&!Qe?null:M.createElement("div",{style:Re,className:I()(`${Nn}-header`,{[`${Nn}-header-close-only`]:Qe&&!xe&&!k})},M.createElement("div",{className:`${Nn}-header-title`},Ct,xe&&M.createElement("div",{className:`${Nn}-title`},xe)),k&&M.createElement("div",{className:`${Nn}-extra`},k)),[Qe,Ct,k,Re,Nn,xe]),Yt=M.useMemo(()=>{if(!P)return null;const Ot=`${Nn}-footer`;return M.createElement("div",{className:Ot,style:Oe},P)},[P,Oe,Nn]);return M.createElement("div",{className:`${Nn}-wrapper-body`,style:wt},nn,M.createElement("div",{className:`${Nn}-body`,style:ze},mt),Yt)},Tt=d(33234),wn=d(83116),Xe=d(37613),le=Tn=>{const{componentCls:Nn,motionDurationSlow:xe}=Tn,P={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${xe}`}}};return{[Nn]:{[`${Nn}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${xe}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${Nn}-panel-motion`]:{"&-left":[P,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[P,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[P,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[P,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const _t=Tn=>{const{componentCls:Nn,zIndexPopup:xe,colorBgMask:P,colorBgElevated:k,motionDurationSlow:j,motionDurationMid:X,padding:N,paddingLG:Re,fontSizeLG:wt,lineHeightLG:ze,lineWidth:Oe,lineType:mt,colorSplit:lt,marginSM:Qe,colorIcon:Ct,colorIconHover:nn,colorText:Yt,fontWeightStrong:Ot,footerPaddingBlock:on,footerPaddingInline:hn}=Tn,Ve=`${Nn}-content-wrapper`;return{[Nn]:{position:"fixed",inset:0,zIndex:xe,pointerEvents:"none","&-pure":{position:"relative",background:k,[`&${Nn}-left`]:{boxShadow:Tn.boxShadowDrawerLeft},[`&${Nn}-right`]:{boxShadow:Tn.boxShadowDrawerRight},[`&${Nn}-top`]:{boxShadow:Tn.boxShadowDrawerUp},[`&${Nn}-bottom`]:{boxShadow:Tn.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${Nn}-mask`]:{position:"absolute",inset:0,zIndex:xe,background:P,pointerEvents:"auto"},[Ve]:{position:"absolute",zIndex:xe,maxWidth:"100vw",transition:`all ${j}`,"&-hidden":{display:"none"}},[`&-left > ${Ve}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Tn.boxShadowDrawerLeft},[`&-right > ${Ve}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Tn.boxShadowDrawerRight},[`&-top > ${Ve}`]:{top:0,insetInline:0,boxShadow:Tn.boxShadowDrawerUp},[`&-bottom > ${Ve}`]:{bottom:0,insetInline:0,boxShadow:Tn.boxShadowDrawerDown},[`${Nn}-content`]:{width:"100%",height:"100%",overflow:"auto",background:k,pointerEvents:"auto"},[`${Nn}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${Nn}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${N}px ${Re}px`,fontSize:wt,lineHeight:ze,borderBottom:`${Oe}px ${mt} ${lt}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${Nn}-extra`]:{flex:"none"},[`${Nn}-close`]:{display:"inline-block",marginInlineEnd:Qe,color:Ct,fontWeight:Ot,fontSize:wt,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${X}`,textRendering:"auto","&:focus, &:hover":{color:nn,textDecoration:"none"}},[`${Nn}-title`]:{flex:1,margin:0,color:Yt,fontWeight:Tn.fontWeightStrong,fontSize:wt,lineHeight:ze},[`${Nn}-body`]:{flex:1,minWidth:0,minHeight:0,padding:Re,overflow:"auto"},[`${Nn}-footer`]:{flexShrink:0,padding:`${on}px ${hn}px`,borderTop:`${Oe}px ${mt} ${lt}`},"&-rtl":{direction:"rtl"}}}};var jt=(0,wn.Z)("Drawer",Tn=>{const Nn=(0,Xe.TS)(Tn,{});return[_t(Nn),le(Nn)]},Tn=>({zIndexPopup:Tn.zIndexPopupBase,footerPaddingBlock:Tn.paddingXS,footerPaddingInline:Tn.padding})),yt=d(11575),ln=function(Tn,Nn){var xe={};for(var P in Tn)Object.prototype.hasOwnProperty.call(Tn,P)&&Nn.indexOf(P)<0&&(xe[P]=Tn[P]);if(Tn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var k=0,P=Object.getOwnPropertySymbols(Tn);k<P.length;k++)Nn.indexOf(P[k])<0&&Object.prototype.propertyIsEnumerable.call(Tn,P[k])&&(xe[P[k]]=Tn[P[k]]);return xe};const Dt=null,ui={distance:180},On=Tn=>{var Nn;const{rootClassName:xe,width:P,height:k,size:j="default",mask:X=!0,push:N=ui,open:Re,afterOpenChange:wt,onClose:ze,prefixCls:Oe,getContainer:mt,style:lt,className:Qe,visible:Ct,afterVisibleChange:nn}=Tn,Yt=ln(Tn,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:Ot,getPrefixCls:on,direction:hn,drawer:Ve}=M.useContext(at.E_),Pt=on("drawer",Oe),[Xt,qt]=jt(Pt),He=mt===void 0&&Ot?()=>Ot(document.body):mt,Rn=I()({"no-mask":!X,[`${Pt}-rtl`]:hn==="rtl"},xe,qt),Cn=M.useMemo(()=>P!=null?P:j==="large"?736:378,[P,j]),Gn=M.useMemo(()=>k!=null?k:j==="large"?736:378,[k,j]),Ci={motionName:(0,ie.m)(Pt,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},ci=rn=>({motionName:(0,ie.m)(Pt,`panel-motion-${rn}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),sn=(0,yt.H)();return Xt(M.createElement(Tt.BR,null,M.createElement(Ze.Ux,{status:!0,override:!0},M.createElement(nt,Object.assign({prefixCls:Pt,onClose:ze,maskMotion:Ci,motion:ci},Yt,{open:Re!=null?Re:Ct,mask:X,push:N,width:Cn,height:Gn,style:Object.assign(Object.assign({},Ve==null?void 0:Ve.style),lt),className:I()(Ve==null?void 0:Ve.className,Qe),rootClassName:Rn,getContainer:He,afterOpenChange:wt!=null?wt:nn,panelRef:sn}),M.createElement(kt,Object.assign({prefixCls:Pt},Yt,{onClose:ze}))))))},ri=Tn=>{const{prefixCls:Nn,style:xe,className:P,placement:k="right"}=Tn,j=ln(Tn,["prefixCls","style","className","placement"]),{getPrefixCls:X}=M.useContext(at.E_),N=X("drawer",Nn),[Re,wt]=jt(N),ze=I()(N,`${N}-pure`,`${N}-${k}`,wt,P);return Re(M.createElement("div",{className:ze,style:xe},M.createElement(kt,Object.assign({prefixCls:N},j))))};On._InternalPanelDoNotUseOrYouWillBeFired=ri;var Xn=On},91857:function(Q,C,d){"use strict";var b=d(59301),I=d(38819),O=d(92310),z=d.n(O),W=d(31561),_=d(70425),M=d(18929),pe=d(2738),ue=d(79676),ne=d(53487),Pe=d(92343),ke=d(36355),rt=d(20834),Ue=d(40875),Ie=d(88088),De=d(47211);const Fe=null,de=Te=>{const{menu:ee,arrow:Ce,prefixCls:Ne,children:Le,trigger:Ke,disabled:nt,dropdownRender:ie,getPopupContainer:at,overlayClassName:Ze,rootClassName:Bt,open:bt,onOpenChange:kt,visible:Tt,onVisibleChange:wn,mouseEnterDelay:Xe=.15,mouseLeaveDelay:se=.1,autoAdjustOverflow:le=!0,placement:_t="",overlay:jt,transitionName:yt}=Te,{getPopupContainer:ln,getPrefixCls:Dt,direction:ui}=b.useContext(ke.E_),On=b.useMemo(()=>{const Qe=Dt();return yt!==void 0?yt:_t.includes("top")?`${Qe}-slide-down`:`${Qe}-slide-up`},[Dt,_t,yt]),ri=b.useMemo(()=>_t?_t.includes("Center")?_t.slice(0,_t.indexOf("Center")):_t:ui==="rtl"?"bottomRight":"bottomLeft",[_t,ui]),Xn=Dt("dropdown",Ne),[Tn,Nn]=(0,De.Z)(Xn),[,xe]=(0,Ie.Z)(),P=b.Children.only(Le),k=(0,Pe.Tm)(P,{className:z()(`${Xn}-trigger`,{[`${Xn}-rtl`]:ui==="rtl"},P.props.className),disabled:nt}),j=nt?[]:Ke;let X;j&&j.includes("contextMenu")&&(X=!0);const[N,Re]=(0,M.Z)(!1,{value:bt!=null?bt:Tt}),wt=(0,_.useEvent)(Qe=>{kt==null||kt(Qe),wn==null||wn(Qe),Re(Qe)}),ze=z()(Ze,Bt,Nn,{[`${Xn}-rtl`]:ui==="rtl"}),Oe=(0,ue.Z)({arrowPointAtCenter:typeof Ce=="object"&&Ce.pointAtCenter,autoAdjustOverflow:le,offset:xe.marginXXS,arrowWidth:Ce?xe.sizePopupArrow:0,borderRadius:xe.borderRadius}),mt=b.useCallback(()=>{Re(!1)},[]),lt=()=>{let Qe;return ee!=null&&ee.items?Qe=b.createElement(rt.default,Object.assign({},ee)):typeof jt=="function"?Qe=jt():Qe=jt,ie&&(Qe=ie(Qe)),Qe=b.Children.only(typeof Qe=="string"?b.createElement("span",null,Qe):Qe),b.createElement(Ue.J,{prefixCls:`${Xn}-menu`,expandIcon:b.createElement("span",{className:`${Xn}-menu-submenu-arrow`},b.createElement(I.Z,{className:`${Xn}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:mt,validator:Ct=>{let{mode:nn}=Ct}},Qe)};return Tn(b.createElement(W.Z,Object.assign({alignPoint:X},(0,pe.Z)(Te,["rootClassName"]),{mouseEnterDelay:Xe,mouseLeaveDelay:se,visible:N,builtinPlacements:Oe,arrow:!!Ce,overlayClassName:ze,prefixCls:Xn,getPopupContainer:at||ln,transitionName:On,trigger:j,overlay:lt,placement:ri,onVisibleChange:wt}),k))};function me(Te){return Object.assign(Object.assign({},Te),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const we=(0,ne.Z)(de,"dropdown",Te=>Te,me),ge=Te=>b.createElement(we,Object.assign({},Te),b.createElement("span",null));de._InternalPanelDoNotUseOrYouWillBeFired=ge,C.Z=de},38854:function(Q,C,d){"use strict";d.d(C,{Z:function(){return Ie}});var b=d(91857),I=d(92310),O=d.n(I),z=d(59301),W=d(18785),_=d(3113),M=d(36355),pe=d(81327),ue=d(33234),ne=d(47211),Pe=function(De,Fe){var de={};for(var me in De)Object.prototype.hasOwnProperty.call(De,me)&&Fe.indexOf(me)<0&&(de[me]=De[me]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,me=Object.getOwnPropertySymbols(De);we<me.length;we++)Fe.indexOf(me[we])<0&&Object.prototype.propertyIsEnumerable.call(De,me[we])&&(de[me[we]]=De[me[we]]);return de};const ke=De=>{const{getPopupContainer:Fe,getPrefixCls:de,direction:me}=z.useContext(M.E_),{prefixCls:we,type:ge="default",danger:Te,disabled:ee,loading:Ce,onClick:Ne,htmlType:Le,children:Ke,className:nt,menu:ie,arrow:at,autoFocus:Ze,overlay:Bt,trigger:bt,align:kt,open:Tt,onOpenChange:wn,placement:Xe,getPopupContainer:se,href:le,icon:_t=z.createElement(W.Z,null),title:jt,buttonsRender:yt=lt=>lt,mouseEnterDelay:ln,mouseLeaveDelay:Dt,overlayClassName:ui,overlayStyle:On,destroyPopupOnHide:ri,dropdownRender:Xn}=De,Tn=Pe(De,["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"]),Nn=de("dropdown",we),xe=`${Nn}-button`,[P,k]=(0,ne.Z)(Nn),j={menu:ie,arrow:at,autoFocus:Ze,align:kt,disabled:ee,trigger:ee?[]:bt,onOpenChange:wn,getPopupContainer:se||Fe,mouseEnterDelay:ln,mouseLeaveDelay:Dt,overlayClassName:ui,overlayStyle:On,destroyPopupOnHide:ri,dropdownRender:Xn},{compactSize:X,compactItemClassnames:N}=(0,ue.ri)(Nn,me),Re=O()(xe,N,nt,k);"overlay"in De&&(j.overlay=Bt),"open"in De&&(j.open=Tt),"placement"in De?j.placement=Xe:j.placement=me==="rtl"?"bottomLeft":"bottomRight";const wt=z.createElement(_.ZP,{type:ge,danger:Te,disabled:ee,loading:Ce,onClick:Ne,htmlType:Le,href:le,title:jt},Ke),ze=z.createElement(_.ZP,{type:ge,danger:Te,icon:_t}),[Oe,mt]=yt([wt,ze]);return P(z.createElement(pe.Z.Compact,Object.assign({className:Re,size:X,block:!0},Tn),Oe,z.createElement(b.Z,Object.assign({},j),mt)))};ke.__ANT_BUTTON=!0;var rt=ke;const Ue=b.Z;Ue.Button=rt;var Ie=Ue},47211:function(Q,C,d){"use strict";d.d(C,{Z:function(){return Pe}});var b=d(17313),I=d(13826),O=d(92899),z=d(29878),W=d(19447),_=d(83116),M=d(37613),ue=ke=>{const{componentCls:rt,menuCls:Ue,colorError:Ie,colorTextLightSolid:De}=ke,Fe=`${Ue}-item`;return{[`${rt}, ${rt}-menu-submenu`]:{[`${Ue} ${Fe}`]:{[`&${Fe}-danger:not(${Fe}-disabled)`]:{color:Ie,"&:hover":{color:De,backgroundColor:Ie}}}}}};const ne=ke=>{const{componentCls:rt,menuCls:Ue,zIndexPopup:Ie,dropdownArrowDistance:De,sizePopupArrow:Fe,antCls:de,iconCls:me,motionDurationMid:we,dropdownPaddingVertical:ge,fontSize:Te,dropdownEdgeChildPadding:ee,colorTextDisabled:Ce,fontSizeIcon:Ne,controlPaddingHorizontal:Le,colorBgElevated:Ke}=ke;return[{[rt]:Object.assign(Object.assign({},(0,b.Wf)(ke)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Ie,display:"block","&::before":{position:"absolute",insetBlock:-De+Fe/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${de}-btn`]:{[`& > ${me}-down, & > ${de}-btn-icon > ${me}-down`]:{fontSize:Ne}},[`${rt}-wrap`]:{position:"relative",[`${de}-btn > ${me}-down`]:{fontSize:Ne},[`${me}-down::before`]:{transition:`transform ${we}`}},[`${rt}-wrap-open`]:{[`${me}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${de}-slide-down-enter${de}-slide-down-enter-active${rt}-placement-bottomLeft,
|
|
|
&${de}-slide-down-appear${de}-slide-down-appear-active${rt}-placement-bottomLeft,
|
|
|
&${de}-slide-down-enter${de}-slide-down-enter-active${rt}-placement-bottom,
|
|
|
&${de}-slide-down-appear${de}-slide-down-appear-active${rt}-placement-bottom,
|
|
|
&${de}-slide-down-enter${de}-slide-down-enter-active${rt}-placement-bottomRight,
|
|
|
&${de}-slide-down-appear${de}-slide-down-appear-active${rt}-placement-bottomRight`]:{animationName:I.fJ},[`&${de}-slide-up-enter${de}-slide-up-enter-active${rt}-placement-topLeft,
|
|
|
&${de}-slide-up-appear${de}-slide-up-appear-active${rt}-placement-topLeft,
|
|
|
&${de}-slide-up-enter${de}-slide-up-enter-active${rt}-placement-top,
|
|
|
&${de}-slide-up-appear${de}-slide-up-appear-active${rt}-placement-top,
|
|
|
&${de}-slide-up-enter${de}-slide-up-enter-active${rt}-placement-topRight,
|
|
|
&${de}-slide-up-appear${de}-slide-up-appear-active${rt}-placement-topRight`]:{animationName:I.Qt},[`&${de}-slide-down-leave${de}-slide-down-leave-active${rt}-placement-bottomLeft,
|
|
|
&${de}-slide-down-leave${de}-slide-down-leave-active${rt}-placement-bottom,
|
|
|
&${de}-slide-down-leave${de}-slide-down-leave-active${rt}-placement-bottomRight`]:{animationName:I.Uw},[`&${de}-slide-up-leave${de}-slide-up-leave-active${rt}-placement-topLeft,
|
|
|
&${de}-slide-up-leave${de}-slide-up-leave-active${rt}-placement-top,
|
|
|
&${de}-slide-up-leave${de}-slide-up-leave-active${rt}-placement-topRight`]:{animationName:I.ly}})},(0,W.ZP)(ke,{colorBg:Ke,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${rt} ${Ue}`]:{position:"relative",margin:0},[`${Ue}-submenu-popup`]:{position:"absolute",zIndex:Ie,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${rt}, ${rt}-menu-submenu`]:{[Ue]:Object.assign(Object.assign({padding:ee,listStyleType:"none",backgroundColor:Ke,backgroundClip:"padding-box",borderRadius:ke.borderRadiusLG,outline:"none",boxShadow:ke.boxShadowSecondary},(0,b.Qy)(ke)),{[`${Ue}-item-group-title`]:{padding:`${ge}px ${Le}px`,color:ke.colorTextDescription,transition:`all ${we}`},[`${Ue}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Ue}-item-icon`]:{minWidth:Te,marginInlineEnd:ke.marginXS,fontSize:ke.fontSizeSM},[`${Ue}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${we}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${Ue}-item, ${Ue}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ge}px ${Le}px`,color:ke.colorText,fontWeight:"normal",fontSize:Te,lineHeight:ke.lineHeight,cursor:"pointer",transition:`all ${we}`,borderRadius:ke.borderRadiusSM,"&:hover, &-active":{backgroundColor:ke.controlItemBgHover}},(0,b.Qy)(ke)),{"&-selected":{color:ke.colorPrimary,backgroundColor:ke.controlItemBgActive,"&:hover, &-active":{backgroundColor:ke.controlItemBgActiveHover}},"&-disabled":{color:Ce,cursor:"not-allowed","&:hover":{color:Ce,backgroundColor:Ke,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ke.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:ke.colorSplit},[`${rt}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:ke.paddingXS,[`${rt}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:ke.colorTextDescription,fontSize:Ne,fontStyle:"normal"}}}),[`${Ue}-item-group-list`]:{margin:`0 ${ke.marginXS}px`,padding:0,listStyle:"none"},[`${Ue}-submenu-title`]:{paddingInlineEnd:Le+ke.fontSizeSM},[`${Ue}-submenu-vertical`]:{position:"relative"},[`${Ue}-submenu${Ue}-submenu-disabled ${rt}-menu-submenu-title`]:{[`&, ${rt}-menu-submenu-arrow-icon`]:{color:Ce,backgroundColor:Ke,cursor:"not-allowed"}},[`${Ue}-submenu-selected ${rt}-menu-submenu-title`]:{color:ke.colorPrimary}})}},[(0,I.oN)(ke,"slide-up"),(0,I.oN)(ke,"slide-down"),(0,O.Fm)(ke,"move-up"),(0,O.Fm)(ke,"move-down"),(0,z._y)(ke,"zoom-big")]]};var Pe=(0,_.Z)("Dropdown",(ke,rt)=>{let{rootPrefixCls:Ue}=rt;const{marginXXS:Ie,sizePopupArrow:De,controlHeight:Fe,fontSize:de,lineHeight:me,paddingXXS:we,componentCls:ge,borderRadiusLG:Te}=ke,ee=(Fe-de*me)/2,{dropdownArrowOffset:Ce}=(0,W.fS)({contentRadius:Te}),Ne=(0,M.TS)(ke,{menuCls:`${ge}-menu`,rootPrefixCls:Ue,dropdownArrowDistance:De/2+Ie,dropdownArrowOffset:Ce,dropdownPaddingVertical:ee,dropdownEdgeChildPadding:we});return[ne(Ne),ue(Ne)]},ke=>({zIndexPopup:ke.zIndexPopupBase+50}))},64165:function(Q,C,d){"use strict";d.d(C,{Z:function(){return we}});var b=d(92310),I=d.n(b),O=d(59301),z=d(36355),W=d(9763),_=d(64993),M=d(88088),ue=()=>{const[,ge]=(0,M.Z)(),ee=new _.C(ge.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"}))))},Pe=()=>{const[,ge]=(0,M.Z)(),{colorFill:Te,colorFillTertiary:ee,colorFillQuaternary:Ce,colorBgContainer:Ne}=ge,{borderColor:Le,shadowColor:Ke,contentColor:nt}=(0,O.useMemo)(()=>({borderColor:new _.C(Te).onBackground(Ne).toHexShortString(),shadowColor:new _.C(ee).onBackground(Ne).toHexShortString(),contentColor:new _.C(Ce).onBackground(Ne).toHexShortString()}),[Te,ee,Ce,Ne]);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:Ke,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:nt}))))},ke=d(83116),rt=d(37613);const Ue=ge=>{const{componentCls:Te,margin:ee,marginXS:Ce,marginXL:Ne,fontSize:Le,lineHeight:Ke}=ge;return{[Te]:{marginInline:Ce,fontSize:Le,lineHeight:Ke,textAlign:"center",[`${Te}-image`]:{height:ge.emptyImgHeight,marginBottom:Ce,opacity:ge.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Te}-description`]:{color:ge.colorText},[`${Te}-footer`]:{marginTop:ee},"&-normal":{marginBlock:Ne,color:ge.colorTextDisabled,[`${Te}-description`]:{color:ge.colorTextDisabled},[`${Te}-image`]:{height:ge.emptyImgHeightMD}},"&-small":{marginBlock:Ce,color:ge.colorTextDisabled,[`${Te}-image`]:{height:ge.emptyImgHeightSM}}}}};var Ie=(0,ke.Z)("Empty",ge=>{const{componentCls:Te,controlHeightLG:ee}=ge,Ce=(0,rt.TS)(ge,{emptyImgCls:`${Te}-img`,emptyImgHeight:ee*2.5,emptyImgHeightMD:ee,emptyImgHeightSM:ee*.875});return[Ue(Ce)]}),De=function(ge,Te){var ee={};for(var Ce in ge)Object.prototype.hasOwnProperty.call(ge,Ce)&&Te.indexOf(Ce)<0&&(ee[Ce]=ge[Ce]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,Ce=Object.getOwnPropertySymbols(ge);Ne<Ce.length;Ne++)Te.indexOf(Ce[Ne])<0&&Object.prototype.propertyIsEnumerable.call(ge,Ce[Ne])&&(ee[Ce[Ne]]=ge[Ce[Ne]]);return ee};const Fe=O.createElement(ue,null),de=O.createElement(Pe,null),me=ge=>{var{className:Te,rootClassName:ee,prefixCls:Ce,image:Ne=Fe,description:Le,children:Ke,imageStyle:nt,style:ie}=ge,at=De(ge,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:Ze,direction:Bt,empty:bt}=O.useContext(z.E_),kt=Ze("empty",Ce),[Tt,wn]=Ie(kt),[Xe]=(0,W.Z)("Empty"),se=typeof Le!="undefined"?Le:Xe==null?void 0:Xe.description,le=typeof se=="string"?se:"empty";let _t=null;return typeof Ne=="string"?_t=O.createElement("img",{alt:le,src:Ne}):_t=Ne,Tt(O.createElement("div",Object.assign({className:I()(wn,kt,bt==null?void 0:bt.className,{[`${kt}-normal`]:Ne===de,[`${kt}-rtl`]:Bt==="rtl"},Te,ee),style:Object.assign(Object.assign({},bt==null?void 0:bt.style),ie)},at),O.createElement("div",{className:`${kt}-image`,style:nt},_t),se&&O.createElement("div",{className:`${kt}-description`},se),Ke&&O.createElement("div",{className:`${kt}-footer`},Ke)))};me.PRESENTED_IMAGE_DEFAULT=Fe,me.PRESENTED_IMAGE_SIMPLE=de;var we=me},78241:function(Q,C,d){"use strict";d.d(C,{default:function(){return di}});var b=d(26407),I=d(92310),O=d.n(I),z=d(77900),W=d(59301),_=d(62892),M=d(32441);function pe(ht){const[_n,Hn]=W.useState(ht);return W.useEffect(()=>{const gt=setTimeout(()=>{Hn(ht)},ht.length?0:10);return()=>{clearTimeout(gt)}},[ht]),_n}var ue=d(17313),ne=d(29878),Pe=d(8378),ke=d(37613),rt=d(83116),Ie=ht=>{const{componentCls:_n}=ht,Hn=`${_n}-show-help`,gt=`${_n}-show-help-item`;return{[Hn]:{transition:`opacity ${ht.motionDurationSlow} ${ht.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[gt]:{overflow:"hidden",transition:`height ${ht.motionDurationSlow} ${ht.motionEaseInOut},
|
|
|
opacity ${ht.motionDurationSlow} ${ht.motionEaseInOut},
|
|
|
transform ${ht.motionDurationSlow} ${ht.motionEaseInOut} !important`,[`&${gt}-appear, &${gt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${gt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const De=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}}),Fe=(ht,_n)=>{const{formItemCls:Hn}=ht;return{[Hn]:{[`${Hn}-label > label`]:{height:_n},[`${Hn}-control-input`]:{minHeight:_n}}}},de=ht=>{const{componentCls:_n}=ht;return{[ht.componentCls]:Object.assign(Object.assign(Object.assign({},(0,ue.Wf)(ht)),De(ht)),{[`${_n}-text`]:{display:"inline-block",paddingInlineEnd:ht.paddingSM},"&-small":Object.assign({},Fe(ht,ht.controlHeightSM)),"&-large":Object.assign({},Fe(ht,ht.controlHeightLG))})}},me=ht=>{const{formItemCls:_n,iconCls:Hn,componentCls:gt,rootPrefixCls:Ge,labelRequiredMarkColor:fn,labelColor:Sn,labelFontSize:ti,labelHeight:Kn,labelColonMarginInlineStart:pt,labelColonMarginInlineEnd:gn,itemMarginBottom:tn}=ht;return{[_n]:Object.assign(Object.assign({},(0,ue.Wf)(ht)),{marginBottom:tn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${Ge}-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:Kn,color:Sn,fontSize:ti,[`> ${Hn}`]:{fontSize:ht.fontSize,verticalAlign:"top"},[`&${_n}-required:not(${_n}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:ht.marginXXS,color:fn,fontSize:ht.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${gt}-hide-required-mark &`]:{display:"none"}},[`${_n}-optional`]:{display:"inline-block",marginInlineStart:ht.marginXXS,color:ht.colorTextDescription,[`${gt}-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:pt,marginInlineEnd:gn},[`&${_n}-no-colon::after`]:{content:'"\\a0"'}}},[`${_n}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Ge}-col-'"]):not([class*="' ${Ge}-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:ne.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}}})}},we=ht=>{const{componentCls:_n,formItemCls:Hn}=ht;return{[`${_n}-horizontal`]:{[`${Hn}-label`]:{flexGrow:0},[`${Hn}-control`]:{flex:"1 1 0",minWidth:0},[`${Hn}-label[class$='-24'], ${Hn}-label[class*='-24 ']`]:{[`& + ${Hn}-control`]:{minWidth:"unset"}}}}},ge=ht=>{const{componentCls:_n,formItemCls:Hn}=ht;return{[`${_n}-inline`]:{display:"flex",flexWrap:"wrap",[Hn]:{flex:"none",marginInlineEnd:ht.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${Hn}-label,
|
|
|
> ${Hn}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Hn}-label`]:{flex:"none"},[`${_n}-text`]:{display:"inline-block"},[`${Hn}-has-feedback`]:{display:"inline-block"}}}}},Te=ht=>({padding:ht.verticalLabelPadding,margin:ht.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),ee=ht=>{const{componentCls:_n,formItemCls:Hn,rootPrefixCls:gt}=ht;return{[`${Hn} ${Hn}-label`]:Te(ht),[_n]:{[Hn]:{flexWrap:"wrap",[`${Hn}-label, ${Hn}-control`]:{[`&:not([class*=" ${gt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Ce=ht=>{const{componentCls:_n,formItemCls:Hn,rootPrefixCls:gt}=ht;return{[`${_n}-vertical`]:{[Hn]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${_n}-item-control`]:{width:"100%"}}},[`${_n}-vertical ${Hn}-label,
|
|
|
.${gt}-col-24${Hn}-label,
|
|
|
.${gt}-col-xl-24${Hn}-label`]:Te(ht),[`@media (max-width: ${ht.screenXSMax}px)`]:[ee(ht),{[_n]:{[`.${gt}-col-xs-24${Hn}-label`]:Te(ht)}}],[`@media (max-width: ${ht.screenSMMax}px)`]:{[_n]:{[`.${gt}-col-sm-24${Hn}-label`]:Te(ht)}},[`@media (max-width: ${ht.screenMDMax}px)`]:{[_n]:{[`.${gt}-col-md-24${Hn}-label`]:Te(ht)}},[`@media (max-width: ${ht.screenLGMax}px)`]:{[_n]:{[`.${gt}-col-lg-24${Hn}-label`]:Te(ht)}}}},Ne=(ht,_n)=>(0,ke.TS)(ht,{formItemCls:`${ht.componentCls}-item`,rootPrefixCls:_n});var Le=(0,rt.Z)("Form",(ht,_n)=>{let{rootPrefixCls:Hn}=_n;const gt=Ne(ht,Hn);return[de(gt),me(gt),Ie(gt),we(gt),ge(gt),Ce(gt),(0,Pe.Z)(gt),ne.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 Ke=[];function nt(ht,_n,Hn){let gt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof ht=="string"?ht:`${_n}-${gt}`,error:ht,errorStatus:Hn}}var at=ht=>{let{help:_n,helpStatus:Hn,errors:gt=Ke,warnings:Ge=Ke,className:fn,fieldId:Sn,onVisibleChanged:ti}=ht;const{prefixCls:Kn}=W.useContext(M.Rk),pt=`${Kn}-item-explain`,[,gn]=Le(Kn),tn=(0,W.useMemo)(()=>(0,_.Z)(Kn),[Kn]),xi=pe(gt),ft=pe(Ge),Fn=W.useMemo(()=>_n!=null?[nt(_n,"help",Hn)]:[].concat((0,b.Z)(xi.map((qe,D)=>nt(qe,"error","error",D))),(0,b.Z)(ft.map((qe,D)=>nt(qe,"warning","warning",D)))),[_n,Hn,xi,ft]),Mt={};return Sn&&(Mt.id=`${Sn}_help`),W.createElement(z.default,{motionDeadline:tn.motionDeadline,motionName:`${Kn}-show-help`,visible:!!Fn.length,onVisibleChanged:ti},qe=>{const{className:D,style:Gt}=qe;return W.createElement("div",Object.assign({},Mt,{className:O()(pt,D,fn,gn),style:Gt,role:"alert"}),W.createElement(z.CSSMotionList,Object.assign({keys:Fn},(0,_.Z)(Kn),{motionName:`${Kn}-show-help-item`,component:!1}),dn=>{const{key:xt,error:En,errorStatus:Mn,className:ki,style:Un}=dn;return W.createElement("div",{key:xt,className:O()(ki,{[`${pt}-${Mn}`]:Mn}),style:Un},En)}))})},Ze=d(95013),Bt=d(36355),bt=d(1684),kt=d(52946),Tt=d(19716),wn=d(16722);const Xe=["parentNode"],se="form_item";function le(ht){return ht===void 0||ht===!1?[]:Array.isArray(ht)?ht:[ht]}function _t(ht,_n){if(!ht.length)return;const Hn=ht.join("_");return _n?`${_n}_${Hn}`:Xe.includes(Hn)?`${se}_${Hn}`:Hn}function jt(ht,_n,Hn,gt,Ge,fn){let Sn=gt;return fn!==void 0?Sn=fn:Hn.validating?Sn="validating":ht.length?Sn="error":_n.length?Sn="warning":(Hn.touched||Ge&&Hn.validated)&&(Sn="success"),Sn}function yt(ht){return le(ht).join("_")}function ln(ht){const[_n]=(0,Ze.useForm)(),Hn=W.useRef({}),gt=W.useMemo(()=>ht!=null?ht:Object.assign(Object.assign({},_n),{__INTERNAL__:{itemRef:Ge=>fn=>{const Sn=yt(Ge);fn?Hn.current[Sn]=fn:delete Hn.current[Sn]}},scrollToField:function(Ge){let fn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Sn=le(Ge),ti=_t(Sn,gt.__INTERNAL__.name),Kn=ti?document.getElementById(ti):null;Kn&&(0,wn.Z)(Kn,Object.assign({scrollMode:"if-needed",block:"nearest"},fn))},getFieldInstance:Ge=>{const fn=yt(Ge);return Hn.current[fn]}}),[ht,_n]);return[gt]}var Dt=d(28726),ui=function(ht,_n){var Hn={};for(var gt in ht)Object.prototype.hasOwnProperty.call(ht,gt)&&_n.indexOf(gt)<0&&(Hn[gt]=ht[gt]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,gt=Object.getOwnPropertySymbols(ht);Ge<gt.length;Ge++)_n.indexOf(gt[Ge])<0&&Object.prototype.propertyIsEnumerable.call(ht,gt[Ge])&&(Hn[gt[Ge]]=ht[gt[Ge]]);return Hn};const On=(ht,_n)=>{const Hn=W.useContext(bt.Z),{getPrefixCls:gt,direction:Ge,form:fn}=W.useContext(Bt.E_),{prefixCls:Sn,className:ti,rootClassName:Kn,size:pt,disabled:gn=Hn,form:tn,colon:xi,labelAlign:ft,labelWrap:Fn,labelCol:Mt,wrapperCol:qe,hideRequiredMark:D,layout:Gt="horizontal",scrollToFirstError:dn,requiredMark:xt,onFinishFailed:En,name:Mn,style:ki,feedbackIcons:Un}=ht,ot=ui(ht,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Bi=(0,Tt.Z)(pt),hr=W.useContext(Dt.Z),Kt=(0,W.useMemo)(()=>xt!==void 0?xt:fn&&fn.requiredMark!==void 0?fn.requiredMark:!D,[D,xt,fn]),Qi=xi!=null?xi:fn==null?void 0:fn.colon,J=gt("form",Sn),[ae,Yn]=Le(J),_e=O()(J,`${J}-${Gt}`,{[`${J}-hide-required-mark`]:Kt===!1,[`${J}-rtl`]:Ge==="rtl",[`${J}-${Bi}`]:Bi},Yn,fn==null?void 0:fn.className,ti,Kn),[Et]=ln(tn),{__INTERNAL__:Ni}=Et;Ni.name=Mn;const Pn=(0,W.useMemo)(()=>({name:Mn,labelAlign:ft,labelCol:Mt,labelWrap:Fn,wrapperCol:qe,vertical:Gt==="vertical",colon:Qi,requiredMark:Kt,itemRef:Ni.itemRef,form:Et,feedbackIcons:Un}),[Mn,ft,Mt,qe,Gt,Qi,Kt,Et,Un]);W.useImperativeHandle(_n,()=>Et);const Ki=(Ii,Wt)=>{if(Ii){let Yi={block:"nearest"};typeof Ii=="object"&&(Yi=Ii),Et.scrollToField(Wt,Yi)}},Zt=Ii=>{if(En==null||En(Ii),Ii.errorFields.length){const Wt=Ii.errorFields[0].name;if(dn!==void 0){Ki(dn,Wt);return}fn&&fn.scrollToFirstError!==void 0&&Ki(fn.scrollToFirstError,Wt)}};return ae(W.createElement(bt.n,{disabled:gn},W.createElement(kt.q,{size:Bi},W.createElement(M.RV,Object.assign({},{validateMessages:hr}),W.createElement(M.q3.Provider,{value:Pn},W.createElement(Ze.default,Object.assign({id:Mn},ot,{name:Mn,onFinishFailed:Zt,form:Et,style:Object.assign(Object.assign({},fn==null?void 0:fn.style),ki),className:_e})))))))};var Xn=W.forwardRef(On),Tn=d(41799),Nn=d(8654),xe=d(92343),P=d(11592);function k(ht){if(typeof ht=="function")return ht;const _n=(0,P.Z)(ht);return _n.length<=1?_n[0]:_n}const j=()=>{const{status:ht,errors:_n=[],warnings:Hn=[]}=(0,W.useContext)(M.aM);return{status:ht,errors:_n,warnings:Hn}};j.Context=M.aM;var X=j,N=d(16089);function Re(ht){const[_n,Hn]=W.useState(ht),gt=(0,W.useRef)(null),Ge=(0,W.useRef)([]),fn=(0,W.useRef)(!1);W.useEffect(()=>(fn.current=!1,()=>{fn.current=!0,N.Z.cancel(gt.current),gt.current=null}),[]);function Sn(ti){fn.current||(gt.current===null&&(Ge.current=[],gt.current=(0,N.Z)(()=>{gt.current=null,Hn(Kn=>{let pt=Kn;return Ge.current.forEach(gn=>{pt=gn(pt)}),pt})})),Ge.current.push(ti))}return[_n,Sn]}function wt(){const{itemRef:ht}=W.useContext(M.q3),_n=W.useRef({});function Hn(gt,Ge){const fn=Ge&&typeof Ge=="object"&&Ge.ref,Sn=gt.join("_");return(_n.current.name!==Sn||_n.current.originRef!==fn)&&(_n.current.name=Sn,_n.current.originRef=fn,_n.current.ref=(0,Nn.sQ)(ht(gt),fn)),_n.current.ref}return Hn}var ze=d(29194),Oe=d(34280),mt=d(2738),lt=d(27382),Qe=d(37028);const Ct=ht=>{const{formItemCls:_n}=ht;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${_n}-control`]:{display:"flex"}}}};var nn=(0,rt.b)(["Form","item-item"],(ht,_n)=>{let{rootPrefixCls:Hn}=_n;const gt=Ne(ht,Hn);return[Ct(gt)]}),Ot=ht=>{const{prefixCls:_n,status:Hn,wrapperCol:gt,children:Ge,errors:fn,warnings:Sn,_internalItemRender:ti,extra:Kn,help:pt,fieldId:gn,marginBottom:tn,onErrorVisibleChanged:xi}=ht,ft=`${_n}-item`,Fn=W.useContext(M.q3),Mt=gt||Fn.wrapperCol||{},qe=O()(`${ft}-control`,Mt.className),D=W.useMemo(()=>Object.assign({},Fn),[Fn]);delete D.labelCol,delete D.wrapperCol;const Gt=W.createElement("div",{className:`${ft}-control-input`},W.createElement("div",{className:`${ft}-control-input-content`},Ge)),dn=W.useMemo(()=>({prefixCls:_n,status:Hn}),[_n,Hn]),xt=tn!==null||fn.length||Sn.length?W.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},W.createElement(M.Rk.Provider,{value:dn},W.createElement(at,{fieldId:gn,errors:fn,warnings:Sn,help:pt,helpStatus:Hn,className:`${ft}-explain-connected`,onVisibleChanged:xi})),!!tn&&W.createElement("div",{style:{width:0,height:tn}})):null,En={};gn&&(En.id=`${gn}_extra`);const Mn=Kn?W.createElement("div",Object.assign({},En,{className:`${ft}-extra`}),Kn):null,ki=ti&&ti.mark==="pro_table_render"&&ti.render?ti.render(ht,{input:Gt,errorList:xt,extra:Mn}):W.createElement(W.Fragment,null,Gt,xt,Mn);return W.createElement(M.q3.Provider,{value:D},W.createElement(Qe.Z,Object.assign({},Mt,{className:qe}),ki),W.createElement(nn,{prefixCls:_n}))},on=d(61485),hn=d(31724),Ve=d(9763),Pt=d(6848),Xt=function(ht,_n){var Hn={};for(var gt in ht)Object.prototype.hasOwnProperty.call(ht,gt)&&_n.indexOf(gt)<0&&(Hn[gt]=ht[gt]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,gt=Object.getOwnPropertySymbols(ht);Ge<gt.length;Ge++)_n.indexOf(gt[Ge])<0&&Object.prototype.propertyIsEnumerable.call(ht,gt[Ge])&&(Hn[gt[Ge]]=ht[gt[Ge]]);return Hn};function qt(ht){return ht?typeof ht=="object"&&!W.isValidElement(ht)?ht:{title:ht}:null}var Rn=ht=>{let{prefixCls:_n,label:Hn,htmlFor:gt,labelCol:Ge,labelAlign:fn,colon:Sn,required:ti,requiredMark:Kn,tooltip:pt}=ht;var gn;const[tn]=(0,Ve.Z)("Form"),{vertical:xi,labelAlign:ft,labelCol:Fn,labelWrap:Mt,colon:qe}=W.useContext(M.q3);if(!Hn)return null;const D=Ge||Fn||{},Gt=fn||ft,dn=`${_n}-item-label`,xt=O()(dn,Gt==="left"&&`${dn}-left`,D.className,{[`${dn}-wrap`]:!!Mt});let En=Hn;const Mn=Sn===!0||qe!==!1&&Sn!==!1;Mn&&!xi&&typeof Hn=="string"&&Hn.trim()!==""&&(En=Hn.replace(/[:|:]\s*$/,""));const Un=qt(pt);if(Un){const{icon:Kt=W.createElement(on.Z,null)}=Un,Qi=Xt(Un,["icon"]),J=W.createElement(Pt.Z,Object.assign({},Qi),W.cloneElement(Kt,{className:`${_n}-item-tooltip`,title:""}));En=W.createElement(W.Fragment,null,En,J)}const ot=Kn==="optional",Bi=typeof Kn=="function";Bi?En=Kn(En,{required:!!ti}):ot&&!ti&&(En=W.createElement(W.Fragment,null,En,W.createElement("span",{className:`${_n}-item-optional`,title:""},(tn==null?void 0:tn.optional)||((gn=hn.Z.Form)===null||gn===void 0?void 0:gn.optional))));const hr=O()({[`${_n}-item-required`]:ti,[`${_n}-item-required-mark-optional`]:ot||Bi,[`${_n}-item-no-colon`]:!Mn});return W.createElement(Qe.Z,Object.assign({},D,{className:xt}),W.createElement("label",{htmlFor:gt,className:hr,title:typeof Hn=="string"?Hn:""},En))},Cn=d(29679),Gn=d(19248),Ci=d(96512),ci=d(58617);const sn={success:Cn.Z,warning:Ci.Z,error:Gn.Z,validating:ci.Z};function rn(ht){let{children:_n,errors:Hn,warnings:gt,hasFeedback:Ge,validateStatus:fn,prefixCls:Sn,meta:ti,noStyle:Kn}=ht;const pt=`${Sn}-item`,{feedbackIcons:gn}=W.useContext(M.q3),tn=jt(Hn,gt,ti,null,!!Ge,fn),{isFormItemInput:xi,status:ft}=W.useContext(M.aM),Fn=W.useMemo(()=>{var Mt;let qe;if(Ge){const dn=Ge!==!0&&Ge.icons||gn,xt=tn&&((Mt=dn==null?void 0:dn({status:tn,errors:Hn,warnings:gt}))===null||Mt===void 0?void 0:Mt[tn]),En=tn&&sn[tn];qe=xt!==!1&&En?W.createElement("span",{className:O()(`${pt}-feedback-icon`,`${pt}-feedback-icon-${tn}`)},xt||W.createElement(En,null)):null}let D=!0,Gt=tn||"";return Kn&&(D=xi,Gt=(tn!=null?tn:ft)||""),{status:Gt,errors:Hn,warnings:gt,hasFeedback:!!Ge,feedbackIcon:qe,isFormItemInput:D}},[tn,Ge,Kn,xi,ft]);return W.createElement(M.aM.Provider,{value:Fn},_n)}var cr=function(ht,_n){var Hn={};for(var gt in ht)Object.prototype.hasOwnProperty.call(ht,gt)&&_n.indexOf(gt)<0&&(Hn[gt]=ht[gt]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,gt=Object.getOwnPropertySymbols(ht);Ge<gt.length;Ge++)_n.indexOf(gt[Ge])<0&&Object.prototype.propertyIsEnumerable.call(ht,gt[Ge])&&(Hn[gt[Ge]]=ht[gt[Ge]]);return Hn};function yr(ht){const{prefixCls:_n,className:Hn,rootClassName:gt,style:Ge,help:fn,errors:Sn,warnings:ti,validateStatus:Kn,meta:pt,hasFeedback:gn,hidden:tn,children:xi,fieldId:ft,required:Fn,isRequired:Mt,onSubItemMetaChange:qe}=ht,D=cr(ht,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),Gt=`${_n}-item`,{requiredMark:dn}=W.useContext(M.q3),xt=W.useRef(null),En=pe(Sn),Mn=pe(ti),ki=fn!=null,Un=!!(ki||Sn.length||ti.length),ot=!!xt.current&&(0,ze.Z)(xt.current),[Bi,hr]=W.useState(null);(0,Oe.Z)(()=>{if(Un&&xt.current){const Yn=getComputedStyle(xt.current);hr(parseInt(Yn.marginBottom,10))}},[Un,ot]);const Kt=Yn=>{Yn||hr(null)},J=function(){let Yn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const _e=Yn?En:pt.errors,Et=Yn?Mn:pt.warnings;return jt(_e,Et,pt,"",!!gn,Kn)}(),ae=O()(Gt,Hn,gt,{[`${Gt}-with-help`]:ki||En.length||Mn.length,[`${Gt}-has-feedback`]:J&&gn,[`${Gt}-has-success`]:J==="success",[`${Gt}-has-warning`]:J==="warning",[`${Gt}-has-error`]:J==="error",[`${Gt}-is-validating`]:J==="validating",[`${Gt}-hidden`]:tn});return W.createElement("div",{className:ae,style:Ge,ref:xt},W.createElement(lt.Z,Object.assign({className:`${Gt}-row`},(0,mt.Z)(D,["_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"])),W.createElement(Rn,Object.assign({htmlFor:ft},ht,{requiredMark:dn,required:Fn!=null?Fn:Mt,prefixCls:_n})),W.createElement(Ot,Object.assign({},ht,pt,{errors:En,warnings:Mn,prefixCls:_n,status:J,help:fn,marginBottom:Bi,onErrorVisibleChanged:Kt}),W.createElement(M.qI.Provider,{value:qe},W.createElement(rn,{prefixCls:_n,meta:pt,errors:pt.errors,warnings:pt.warnings,hasFeedback:gn,validateStatus:J},xi)))),!!Bi&&W.createElement("div",{className:`${Gt}-margin-offset`,style:{marginBottom:-Bi}}))}const Zn="__SPLIT__",Mr=null,rr=W.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((Hn,gt)=>Hn===_n.childProps[gt]));function U(ht){return ht!=null}function mr(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function lr(ht){const{name:_n,noStyle:Hn,className:gt,dependencies:Ge,prefixCls:fn,shouldUpdate:Sn,rules:ti,children:Kn,required:pt,label:gn,messageVariables:tn,trigger:xi="onChange",validateTrigger:ft,hidden:Fn,help:Mt}=ht,{getPrefixCls:qe}=W.useContext(Bt.E_),{name:D}=W.useContext(M.q3),Gt=k(Kn),dn=typeof Gt=="function",xt=W.useContext(M.qI),{validateTrigger:En}=W.useContext(Ze.FieldContext),Mn=ft!==void 0?ft:En,ki=U(_n),Un=qe("form",fn),[ot,Bi]=Le(Un),hr=W.useContext(Ze.ListContext),Kt=W.useRef(),[Qi,J]=Re({}),[ae,Yn]=(0,Tn.Z)(()=>mr()),_e=Wt=>{const Yi=hr==null?void 0:hr.getKey(Wt.name);if(Yn(Wt.destroy?mr():Wt,!0),Hn&&Mt!==!1&&xt){let io=Wt.name;if(Wt.destroy)io=Kt.current||io;else if(Yi!==void 0){const[It,Mo]=Yi;io=[It].concat((0,b.Z)(Mo)),Kt.current=io}xt(Wt,io)}},Et=(Wt,Yi)=>{J(io=>{const It=Object.assign({},io),Jt=[].concat((0,b.Z)(Wt.name.slice(0,-1)),(0,b.Z)(Yi)).join(Zn);return Wt.destroy?delete It[Jt]:It[Jt]=Wt,It})},[Ni,Pn]=W.useMemo(()=>{const Wt=(0,b.Z)(ae.errors),Yi=(0,b.Z)(ae.warnings);return Object.values(Qi).forEach(io=>{Wt.push.apply(Wt,(0,b.Z)(io.errors||[])),Yi.push.apply(Yi,(0,b.Z)(io.warnings||[]))}),[Wt,Yi]},[Qi,ae.errors,ae.warnings]),Ki=wt();function Zt(Wt,Yi,io){return Hn&&!Fn?W.createElement(rn,{prefixCls:Un,hasFeedback:ht.hasFeedback,validateStatus:ht.validateStatus,meta:ae,errors:Ni,warnings:Pn,noStyle:!0},Wt):W.createElement(yr,Object.assign({key:"row"},ht,{className:O()(gt,Bi),prefixCls:Un,fieldId:Yi,isRequired:io,errors:Ni,warnings:Pn,meta:ae,onSubItemMetaChange:Et}),Wt)}if(!ki&&!dn&&!Ge)return ot(Zt(Gt));let Ii={};return typeof gn=="string"?Ii.label=gn:_n&&(Ii.label=String(_n)),tn&&(Ii=Object.assign(Object.assign({},Ii),tn)),ot(W.createElement(Ze.Field,Object.assign({},ht,{messageVariables:Ii,trigger:xi,validateTrigger:Mn,onMetaChange:_e}),(Wt,Yi,io)=>{const It=le(_n).length&&Yi?Yi.name:[],Mo=_t(It,D),Jt=pt!==void 0?pt:!!(ti&&ti.some(Sr=>{if(Sr&&typeof Sr=="object"&&Sr.required&&!Sr.warningOnly)return!0;if(typeof Sr=="function"){const Or=Sr(io);return Or&&Or.required&&!Or.warningOnly}return!1})),_i=Object.assign({},Wt);let Li=null;if(Array.isArray(Gt)&&ki)Li=Gt;else if(!(dn&&(!(Sn||Ge)||ki))){if(!(Ge&&!dn&&!ki))if((0,xe.l$)(Gt)){const Sr=Object.assign(Object.assign({},Gt.props),_i);if(Sr.id||(Sr.id=Mo),Mt||Ni.length>0||Pn.length>0||ht.extra){const ce=[];(Mt||Ni.length>0)&&ce.push(`${Mo}_help`),ht.extra&&ce.push(`${Mo}_extra`),Sr["aria-describedby"]=ce.join(" ")}Ni.length>0&&(Sr["aria-invalid"]="true"),Jt&&(Sr["aria-required"]="true"),(0,Nn.Yr)(Gt)&&(Sr.ref=Ki(It,Gt)),new Set([].concat((0,b.Z)(le(xi)),(0,b.Z)(le(Mn)))).forEach(ce=>{Sr[ce]=function(){for(var Ar,eo,br,fo,qi,Xr=arguments.length,Ri=new Array(Xr),Vi=0;Vi<Xr;Vi++)Ri[Vi]=arguments[Vi];(br=_i[ce])===null||br===void 0||(Ar=br).call.apply(Ar,[_i].concat(Ri)),(qi=(fo=Gt.props)[ce])===null||qi===void 0||(eo=qi).call.apply(eo,[fo].concat(Ri))}});const qn=[Sr["aria-required"],Sr["aria-invalid"],Sr["aria-describedby"]];Li=W.createElement(rr,{value:_i[ht.valuePropName||"value"],update:Gt,childProps:qn},(0,xe.Tm)(Gt,Sr))}else dn&&(Sn||Ge)&&!ki?Li=Gt(io):Li=Gt}return Zt(Li,Mo,Jt)}))}const _r=lr;_r.useStatus=X;var Hr=_r,uo=function(ht,_n){var Hn={};for(var gt in ht)Object.prototype.hasOwnProperty.call(ht,gt)&&_n.indexOf(gt)<0&&(Hn[gt]=ht[gt]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,gt=Object.getOwnPropertySymbols(ht);Ge<gt.length;Ge++)_n.indexOf(gt[Ge])<0&&Object.prototype.propertyIsEnumerable.call(ht,gt[Ge])&&(Hn[gt[Ge]]=ht[gt[Ge]]);return Hn},Jr=ht=>{var{prefixCls:_n,children:Hn}=ht,gt=uo(ht,["prefixCls","children"]);const{getPrefixCls:Ge}=W.useContext(Bt.E_),fn=Ge("form",_n),Sn=W.useMemo(()=>({prefixCls:fn,status:"error"}),[fn]);return W.createElement(Ze.List,Object.assign({},gt),(ti,Kn,pt)=>W.createElement(M.Rk.Provider,{value:Sn},Hn(ti.map(gn=>Object.assign(Object.assign({},gn),{fieldKey:gn.key})),Kn,{errors:pt.errors,warnings:pt.warnings})))};function fr(){const{form:ht}=(0,W.useContext)(M.q3);return ht}const Xi=Xn;Xi.Item=Hr,Xi.List=Jr,Xi.ErrorList=at,Xi.useForm=ln,Xi.useFormInstance=fr,Xi.useWatch=Ze.useWatch,Xi.Provider=M.RV,Xi.create=()=>{};var di=Xi},8628:function(Q,C,d){"use strict";var b=d(59301),I=d(34280),O=d(56762),z=d(69507);function W(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const M=(0,b.useRef)({}),pe=(0,O.Z)(),ue=(0,z.ZP)();return(0,I.Z)(()=>{const ne=ue.subscribe(Pe=>{M.current=Pe,_&&pe()});return()=>ue.unsubscribe(ne)},[]),M.current}C.Z=W},9432:function(Q,C,d){"use strict";d.d(C,{Z:function(){return me},n:function(){return Fe}});var b=d(19248),I=d(92310),O=d.n(I),z=d(93681),W=d(8654),_=d(59301),M=d(19080),pe=d(36355),ue=d(1684),ne=d(19716),Pe=d(32441),ke=d(33234),rt=d(59412),Ue=d(9937);function Ie(we){return!!(we.prefix||we.suffix||we.allowClear)}var De=function(we,ge){var Te={};for(var ee in we)Object.prototype.hasOwnProperty.call(we,ee)&&ge.indexOf(ee)<0&&(Te[ee]=we[ee]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,ee=Object.getOwnPropertySymbols(we);Ce<ee.length;Ce++)ge.indexOf(ee[Ce])<0&&Object.prototype.propertyIsEnumerable.call(we,ee[Ce])&&(Te[ee[Ce]]=we[ee[Ce]]);return Te};function Fe(we,ge){if(!we)return;we.focus(ge);const{cursor:Te}=ge||{};if(Te){const ee=we.value.length;switch(Te){case"start":we.setSelectionRange(0,0);break;case"end":we.setSelectionRange(ee,ee);break;default:we.setSelectionRange(0,ee);break}}}var me=(0,_.forwardRef)((we,ge)=>{var Te;const{prefixCls:ee,bordered:Ce=!0,status:Ne,size:Le,disabled:Ke,onBlur:nt,onFocus:ie,suffix:at,allowClear:Ze,addonAfter:Bt,addonBefore:bt,className:kt,style:Tt,styles:wn,rootClassName:Xe,onChange:se,classNames:le}=we,_t=De(we,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:jt,direction:yt,input:ln}=_.useContext(pe.E_),Dt=jt("input",ee),ui=(0,_.useRef)(null),[On,ri]=(0,Ue.ZP)(Dt),{compactSize:Xn,compactItemClassnames:Tn}=(0,ke.ri)(Dt,yt),Nn=(0,ne.Z)(nn=>{var Yt;return(Yt=Le!=null?Le:Xn)!==null&&Yt!==void 0?Yt:nn}),xe=_.useContext(ue.Z),P=Ke!=null?Ke:xe,{status:k,hasFeedback:j,feedbackIcon:X}=(0,_.useContext)(Pe.aM),N=(0,M.F)(k,Ne),Re=Ie(we)||!!j,wt=(0,_.useRef)(Re);(0,_.useEffect)(()=>{var nn;Re&&wt.current,wt.current=Re},[Re]);const ze=(0,rt.Z)(ui,!0),Oe=nn=>{ze(),nt==null||nt(nn)},mt=nn=>{ze(),ie==null||ie(nn)},lt=nn=>{ze(),se==null||se(nn)},Qe=(j||at)&&_.createElement(_.Fragment,null,at,j&&X);let Ct;return typeof Ze=="object"&&(Ze!=null&&Ze.clearIcon)?Ct=Ze:Ze&&(Ct={clearIcon:_.createElement(b.Z,null)}),On(_.createElement(z.default,Object.assign({ref:(0,W.sQ)(ge,ui),prefixCls:Dt,autoComplete:ln==null?void 0:ln.autoComplete},_t,{disabled:P,onBlur:Oe,onFocus:mt,style:Object.assign(Object.assign({},ln==null?void 0:ln.style),Tt),styles:Object.assign(Object.assign({},ln==null?void 0:ln.styles),wn),suffix:Qe,allowClear:Ct,className:O()(kt,Xe,Tn,ln==null?void 0:ln.className),onChange:lt,addonAfter:Bt&&_.createElement(ke.BR,null,_.createElement(Pe.Ux,{override:!0,status:!0},Bt)),addonBefore:bt&&_.createElement(ke.BR,null,_.createElement(Pe.Ux,{override:!0,status:!0},bt)),classNames:Object.assign(Object.assign(Object.assign({},le),ln==null?void 0:ln.classNames),{input:O()({[`${Dt}-sm`]:Nn==="small",[`${Dt}-lg`]:Nn==="large",[`${Dt}-rtl`]:yt==="rtl",[`${Dt}-borderless`]:!Ce},!Re&&(0,M.Z)(Dt,N),le==null?void 0:le.input,(Te=ln==null?void 0:ln.classNames)===null||Te===void 0?void 0:Te.input,ri)}),classes:{affixWrapper:O()({[`${Dt}-affix-wrapper-sm`]:Nn==="small",[`${Dt}-affix-wrapper-lg`]:Nn==="large",[`${Dt}-affix-wrapper-rtl`]:yt==="rtl",[`${Dt}-affix-wrapper-borderless`]:!Ce},(0,M.Z)(`${Dt}-affix-wrapper`,N,j),ri),wrapper:O()({[`${Dt}-group-rtl`]:yt==="rtl"},ri),group:O()({[`${Dt}-group-wrapper-sm`]:Nn==="small",[`${Dt}-group-wrapper-lg`]:Nn==="large",[`${Dt}-group-wrapper-rtl`]:yt==="rtl",[`${Dt}-group-wrapper-disabled`]:P},(0,M.Z)(`${Dt}-group-wrapper`,N,j),ri)}})))})},1643:function(Q,C,d){"use strict";var b=d(19248),I=d(92310),O=d.n(I),z=d(9296),W=d(59301),_=d(19080),M=d(36355),pe=d(1684),ue=d(19716),ne=d(32441),Pe=d(9432),ke=d(9937),rt=function(Ie,De){var Fe={};for(var de in Ie)Object.prototype.hasOwnProperty.call(Ie,de)&&De.indexOf(de)<0&&(Fe[de]=Ie[de]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,de=Object.getOwnPropertySymbols(Ie);me<de.length;me++)De.indexOf(de[me])<0&&Object.prototype.propertyIsEnumerable.call(Ie,de[me])&&(Fe[de[me]]=Ie[de[me]]);return Fe};const Ue=(0,W.forwardRef)((Ie,De)=>{const{prefixCls:Fe,bordered:de=!0,size:me,disabled:we,status:ge,allowClear:Te,showCount:ee,classNames:Ce,rootClassName:Ne,className:Le}=Ie,Ke=rt(Ie,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:nt,direction:ie}=W.useContext(M.E_),at=(0,ue.Z)(me),Ze=W.useContext(pe.Z),Bt=we!=null?we:Ze,{status:bt,hasFeedback:kt,feedbackIcon:Tt}=W.useContext(ne.aM),wn=(0,_.F)(bt,ge),Xe=W.useRef(null);W.useImperativeHandle(De,()=>{var yt;return{resizableTextArea:(yt=Xe.current)===null||yt===void 0?void 0:yt.resizableTextArea,focus:ln=>{var Dt,ui;(0,Pe.n)((ui=(Dt=Xe.current)===null||Dt===void 0?void 0:Dt.resizableTextArea)===null||ui===void 0?void 0:ui.textArea,ln)},blur:()=>{var ln;return(ln=Xe.current)===null||ln===void 0?void 0:ln.blur()}}});const se=nt("input",Fe);let le;typeof Te=="object"&&(Te!=null&&Te.clearIcon)?le=Te:Te&&(le={clearIcon:W.createElement(b.Z,null)});const[_t,jt]=(0,ke.ZP)(se);return _t(W.createElement(z.default,Object.assign({},Ke,{disabled:Bt,allowClear:le,className:O()(Le,Ne),classes:{affixWrapper:O()(`${se}-textarea-affix-wrapper`,{[`${se}-affix-wrapper-rtl`]:ie==="rtl",[`${se}-affix-wrapper-borderless`]:!de,[`${se}-affix-wrapper-sm`]:at==="small",[`${se}-affix-wrapper-lg`]:at==="large",[`${se}-textarea-show-count`]:ee},(0,_.Z)(`${se}-affix-wrapper`,wn),jt)},classNames:Object.assign(Object.assign({},Ce),{textarea:O()({[`${se}-borderless`]:!de,[`${se}-sm`]:at==="small",[`${se}-lg`]:at==="large"},(0,_.Z)(se,wn),jt,Ce==null?void 0:Ce.textarea)}),prefixCls:se,suffix:kt&&W.createElement("span",{className:`${se}-textarea-suffix`},Tt),showCount:ee,ref:Xe})))});C.Z=Ue},59412:function(Q,C,d){"use strict";d.d(C,{Z:function(){return I}});var b=d(59301);function I(O,z){const W=(0,b.useRef)([]),_=()=>{W.current.push(setTimeout(()=>{var M,pe,ue,ne;!((M=O.current)===null||M===void 0)&&M.input&&((pe=O.current)===null||pe===void 0?void 0:pe.input.getAttribute("type"))==="password"&&(!((ue=O.current)===null||ue===void 0)&&ue.input.hasAttribute("value"))&&((ne=O.current)===null||ne===void 0||ne.input.removeAttribute("value"))}))};return(0,b.useEffect)(()=>(z&&_(),()=>W.current.forEach(M=>{M&&clearTimeout(M)})),[]),_}},92832:function(Q,C,d){"use strict";d.d(C,{default:function(){return at}});var b=d(92310),I=d.n(b),O=d(59301),z=d(36355),W=d(32441),_=d(9937),pe=Ze=>{const{getPrefixCls:Bt,direction:bt}=(0,O.useContext)(z.E_),{prefixCls:kt,className:Tt}=Ze,wn=Bt("input-group",kt),Xe=Bt("input"),[se,le]=(0,_.ZP)(Xe),_t=I()(wn,{[`${wn}-lg`]:Ze.size==="large",[`${wn}-sm`]:Ze.size==="small",[`${wn}-compact`]:Ze.compact,[`${wn}-rtl`]:bt==="rtl"},le,Tt),jt=(0,O.useContext)(W.aM),yt=(0,O.useMemo)(()=>Object.assign(Object.assign({},jt),{isFormItemInput:!1}),[jt]);return se(O.createElement("span",{className:_t,style:Ze.style,onMouseEnter:Ze.onMouseEnter,onMouseLeave:Ze.onMouseLeave,onFocus:Ze.onFocus,onBlur:Ze.onBlur},O.createElement(W.aM.Provider,{value:yt},Ze.children)))},ue=d(9432),ne=d(73331),Pe=d(15277),ke=d(2738),rt=d(8654),Ue=d(59412),Ie=function(Ze,Bt){var bt={};for(var kt in Ze)Object.prototype.hasOwnProperty.call(Ze,kt)&&Bt.indexOf(kt)<0&&(bt[kt]=Ze[kt]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Tt=0,kt=Object.getOwnPropertySymbols(Ze);Tt<kt.length;Tt++)Bt.indexOf(kt[Tt])<0&&Object.prototype.propertyIsEnumerable.call(Ze,kt[Tt])&&(bt[kt[Tt]]=Ze[kt[Tt]]);return bt};const De=Ze=>Ze?O.createElement(Pe.Z,null):O.createElement(ne.Z,null),Fe={click:"onClick",hover:"onMouseOver"};var me=O.forwardRef((Ze,Bt)=>{const{visibilityToggle:bt=!0}=Ze,kt=typeof bt=="object"&&bt.visible!==void 0,[Tt,wn]=(0,O.useState)(()=>kt?bt.visible:!1),Xe=(0,O.useRef)(null);O.useEffect(()=>{kt&&wn(bt.visible)},[kt,bt]);const se=(0,Ue.Z)(Xe),le=()=>{const{disabled:P}=Ze;P||(Tt&&se(),wn(k=>{var j;const X=!k;return typeof bt=="object"&&((j=bt.onVisibleChange)===null||j===void 0||j.call(bt,X)),X}))},_t=P=>{const{action:k="click",iconRender:j=De}=Ze,X=Fe[k]||"",N=j(Tt),Re={[X]:le,className:`${P}-icon`,key:"passwordIcon",onMouseDown:wt=>{wt.preventDefault()},onMouseUp:wt=>{wt.preventDefault()}};return O.cloneElement(O.isValidElement(N)?N:O.createElement("span",null,N),Re)},{className:jt,prefixCls:yt,inputPrefixCls:ln,size:Dt}=Ze,ui=Ie(Ze,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:On}=O.useContext(z.E_),ri=On("input",ln),Xn=On("input-password",yt),Tn=bt&&_t(Xn),Nn=I()(Xn,jt,{[`${Xn}-${Dt}`]:!!Dt}),xe=Object.assign(Object.assign({},(0,ke.Z)(ui,["suffix","iconRender","visibilityToggle"])),{type:Tt?"text":"password",className:Nn,prefixCls:ri,suffix:Tn});return Dt&&(xe.size=Dt),O.createElement(ue.Z,Object.assign({ref:(0,rt.sQ)(Bt,Xe)},xe))}),we=d(47472),ge=d(92343),Te=d(3113),ee=d(19716),Ce=d(33234),Ne=function(Ze,Bt){var bt={};for(var kt in Ze)Object.prototype.hasOwnProperty.call(Ze,kt)&&Bt.indexOf(kt)<0&&(bt[kt]=Ze[kt]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Tt=0,kt=Object.getOwnPropertySymbols(Ze);Tt<kt.length;Tt++)Bt.indexOf(kt[Tt])<0&&Object.prototype.propertyIsEnumerable.call(Ze,kt[Tt])&&(bt[kt[Tt]]=Ze[kt[Tt]]);return bt},Ke=O.forwardRef((Ze,Bt)=>{const{prefixCls:bt,inputPrefixCls:kt,className:Tt,size:wn,suffix:Xe,enterButton:se=!1,addonAfter:le,loading:_t,disabled:jt,onSearch:yt,onChange:ln,onCompositionStart:Dt,onCompositionEnd:ui}=Ze,On=Ne(Ze,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:ri,direction:Xn}=O.useContext(z.E_),Tn=O.useRef(!1),Nn=ri("input-search",bt),xe=ri("input",kt),{compactSize:P}=(0,Ce.ri)(Nn,Xn),k=(0,ee.Z)(Ot=>{var on;return(on=wn!=null?wn:P)!==null&&on!==void 0?on:Ot}),j=O.useRef(null),X=Ot=>{Ot&&Ot.target&&Ot.type==="click"&&yt&&yt(Ot.target.value,Ot,{source:"clear"}),ln&&ln(Ot)},N=Ot=>{var on;document.activeElement===((on=j.current)===null||on===void 0?void 0:on.input)&&Ot.preventDefault()},Re=Ot=>{var on,hn;yt&&yt((hn=(on=j.current)===null||on===void 0?void 0:on.input)===null||hn===void 0?void 0:hn.value,Ot,{source:"input"})},wt=Ot=>{Tn.current||_t||Re(Ot)},ze=typeof se=="boolean"?O.createElement(we.Z,null):null,Oe=`${Nn}-button`;let mt;const lt=se||{},Qe=lt.type&<.type.__ANT_BUTTON===!0;Qe||lt.type==="button"?mt=(0,ge.Tm)(lt,Object.assign({onMouseDown:N,onClick:Ot=>{var on,hn;(hn=(on=lt==null?void 0:lt.props)===null||on===void 0?void 0:on.onClick)===null||hn===void 0||hn.call(on,Ot),Re(Ot)},key:"enterButton"},Qe?{className:Oe,size:k}:{})):mt=O.createElement(Te.ZP,{className:Oe,type:se?"primary":void 0,size:k,disabled:jt,key:"enterButton",onMouseDown:N,onClick:Re,loading:_t,icon:ze},se),le&&(mt=[mt,(0,ge.Tm)(le,{key:"addonAfter"})]);const Ct=I()(Nn,{[`${Nn}-rtl`]:Xn==="rtl",[`${Nn}-${k}`]:!!k,[`${Nn}-with-button`]:!!se},Tt),nn=Ot=>{Tn.current=!0,Dt==null||Dt(Ot)},Yt=Ot=>{Tn.current=!1,ui==null||ui(Ot)};return O.createElement(ue.Z,Object.assign({ref:(0,rt.sQ)(j,Bt),onPressEnter:wt},On,{size:k,onCompositionStart:nn,onCompositionEnd:Yt,prefixCls:xe,addonAfter:mt,suffix:Xe,onChange:X,className:Ct,disabled:jt}))}),nt=d(1643);const ie=ue.Z;ie.Group=pe,ie.Search=Ke,ie.TextArea=nt.Z,ie.Password=me;var at=ie},45818:function(Q,C,d){"use strict";d.d(C,{D:function(){return we},Z:function(){return ee}});var b=d(92413),I=d(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"},z=O,W=d(7657),_=function(Ne,Le){return I.createElement(W.Z,(0,b.Z)({},Ne,{ref:Le,icon:z}))},M=I.forwardRef(_),pe=M,ue=d(33853),ne=d(38819),Pe=d(92310),ke=d.n(Pe),rt=d(2738),Ie=Ce=>!isNaN(parseFloat(Ce))&&isFinite(Ce),De=d(36355),Fe=d(84966),de=function(Ce,Ne){var Le={};for(var Ke in Ce)Object.prototype.hasOwnProperty.call(Ce,Ke)&&Ne.indexOf(Ke)<0&&(Le[Ke]=Ce[Ke]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Ke=Object.getOwnPropertySymbols(Ce);nt<Ke.length;nt++)Ne.indexOf(Ke[nt])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Ke[nt])&&(Le[Ke[nt]]=Ce[Ke[nt]]);return Le};const me={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},we=I.createContext({}),ge=(()=>{let Ce=0;return function(){let Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ce+=1,`${Ne}${Ce}`}})();var ee=I.forwardRef((Ce,Ne)=>{const{prefixCls:Le,className:Ke,trigger:nt,children:ie,defaultCollapsed:at=!1,theme:Ze="dark",style:Bt={},collapsible:bt=!1,reverseArrow:kt=!1,width:Tt=200,collapsedWidth:wn=80,zeroWidthTriggerStyle:Xe,breakpoint:se,onCollapse:le,onBreakpoint:_t}=Ce,jt=de(Ce,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:yt}=(0,I.useContext)(Fe.Gs),[ln,Dt]=(0,I.useState)("collapsed"in Ce?Ce.collapsed:at),[ui,On]=(0,I.useState)(!1);(0,I.useEffect)(()=>{"collapsed"in Ce&&Dt(Ce.collapsed)},[Ce.collapsed]);const ri=(k,j)=>{"collapsed"in Ce||Dt(k),le==null||le(k,j)},Xn=(0,I.useRef)();Xn.current=k=>{On(k.matches),_t==null||_t(k.matches),ln!==k.matches&&ri(k.matches,"responsive")},(0,I.useEffect)(()=>{function k(X){return Xn.current(X)}let j;if(typeof window!="undefined"){const{matchMedia:X}=window;if(X&&se&&se in me){j=X(`(max-width: ${me[se]})`);try{j.addEventListener("change",k)}catch(N){j.addListener(k)}k(j)}}return()=>{try{j==null||j.removeEventListener("change",k)}catch(X){j==null||j.removeListener(k)}}},[se]),(0,I.useEffect)(()=>{const k=ge("ant-sider-");return yt.addSider(k),()=>yt.removeSider(k)},[]);const Tn=()=>{ri(!ln,"clickTrigger")},{getPrefixCls:Nn}=(0,I.useContext)(De.E_),xe=()=>{const k=Nn("layout-sider",Le),j=(0,rt.Z)(jt,["collapsed"]),X=ln?wn:Tt,N=Ie(X)?`${X}px`:String(X),Re=parseFloat(String(wn||0))===0?I.createElement("span",{onClick:Tn,className:ke()(`${k}-zero-width-trigger`,`${k}-zero-width-trigger-${kt?"right":"left"}`),style:Xe},nt||I.createElement(pe,null)):null,Oe={expanded:kt?I.createElement(ne.Z,null):I.createElement(ue.Z,null),collapsed:kt?I.createElement(ue.Z,null):I.createElement(ne.Z,null)}[ln?"collapsed":"expanded"],mt=nt!==null?Re||I.createElement("div",{className:`${k}-trigger`,onClick:Tn,style:{width:N}},nt||Oe):null,lt=Object.assign(Object.assign({},Bt),{flex:`0 0 ${N}`,maxWidth:N,minWidth:N,width:N}),Qe=ke()(k,`${k}-${Ze}`,{[`${k}-collapsed`]:!!ln,[`${k}-has-trigger`]:bt&&nt!==null&&!Re,[`${k}-below`]:!!ui,[`${k}-zero-width`]:parseFloat(N)===0},Ke);return I.createElement("aside",Object.assign({className:Qe},j,{style:lt,ref:Ne}),I.createElement("div",{className:`${k}-children`},ie),bt||ui&&Re?mt:null)},P=I.useMemo(()=>({siderCollapsed:ln}),[ln]);return I.createElement(we.Provider,{value:P},xe())})},84966:function(Q,C,d){"use strict";d.d(C,{VY:function(){return we},$_:function(){return me},h4:function(){return de},Gs:function(){return rt},ZP:function(){return ge}});var b=d(26407),I=d(92310),O=d.n(I),z=d(2738),W=d(59301),_=d(36355),M=d(83116),ue=Te=>{const{componentCls:ee,bodyBg:Ce,lightSiderBg:Ne,lightTriggerBg:Le,lightTriggerColor:Ke}=Te;return{[`${ee}-sider-light`]:{background:Ne,[`${ee}-sider-trigger`]:{color:Ke,background:Le},[`${ee}-sider-zero-width-trigger`]:{color:Ke,background:Le,border:`1px solid ${Ce}`,borderInlineStart:0}}}};const ne=Te=>{const{antCls:ee,componentCls:Ce,colorText:Ne,triggerColor:Le,footerBg:Ke,triggerBg:nt,headerHeight:ie,headerPadding:at,headerColor:Ze,footerPadding:Bt,triggerHeight:bt,zeroTriggerHeight:kt,zeroTriggerWidth:Tt,motionDurationMid:wn,motionDurationSlow:Xe,fontSize:se,borderRadius:le,bodyBg:_t,headerBg:jt,siderBg:yt}=Te;return{[Ce]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:_t,"&, *":{boxSizing:"border-box"},[`&${Ce}-has-sider`]:{flexDirection:"row",[`> ${Ce}, > ${Ce}-content`]:{width:0}},[`${Ce}-header, &${Ce}-footer`]:{flex:"0 0 auto"},[`${Ce}-sider`]:{position:"relative",minWidth:0,background:yt,transition:`all ${wn}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${ee}-menu${ee}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:bt},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:bt,color:Le,lineHeight:`${bt}px`,textAlign:"center",background:nt,cursor:"pointer",transition:`all ${wn}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:ie,insetInlineEnd:-Tt,zIndex:1,width:Tt,height:kt,color:Le,fontSize:Te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:yt,borderStartStartRadius:0,borderStartEndRadius:le,borderEndEndRadius:le,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Xe} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Xe}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Tt,borderStartStartRadius:le,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:le}}}}},ue(Te)),{"&-rtl":{direction:"rtl"}}),[`${Ce}-header`]:{height:ie,padding:at,color:Ze,lineHeight:`${ie}px`,background:jt,[`${ee}-menu`]:{lineHeight:"inherit"}},[`${Ce}-footer`]:{padding:Bt,color:Ne,fontSize:se,background:Ke},[`${Ce}-content`]:{flex:"auto",minHeight:0}}};var Pe=(0,M.Z)("Layout",Te=>[ne(Te)],Te=>{const{colorBgLayout:ee,controlHeight:Ce,controlHeightLG:Ne,colorText:Le,controlHeightSM:Ke,marginXXS:nt,colorTextLightSolid:ie,colorBgContainer:at}=Te,Ze=Ne*1.25;return{colorBgHeader:"#001529",colorBgBody:ee,colorBgTrigger:"#002140",bodyBg:ee,headerBg:"#001529",headerHeight:Ce*2,headerPadding:`0 ${Ze}px`,headerColor:Le,footerPadding:`${Ke}px ${Ze}px`,footerBg:ee,siderBg:"#001529",triggerHeight:Ne+nt*2,triggerBg:"#002140",triggerColor:ie,zeroTriggerWidth:Ne,zeroTriggerHeight:Ne,lightSiderBg:at,lightTriggerBg:at,lightTriggerColor:Le}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),ke=function(Te,ee){var Ce={};for(var Ne in Te)Object.prototype.hasOwnProperty.call(Te,Ne)&&ee.indexOf(Ne)<0&&(Ce[Ne]=Te[Ne]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,Ne=Object.getOwnPropertySymbols(Te);Le<Ne.length;Le++)ee.indexOf(Ne[Le])<0&&Object.prototype.propertyIsEnumerable.call(Te,Ne[Le])&&(Ce[Ne[Le]]=Te[Ne[Le]]);return Ce};const rt=W.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function Ue(Te){let{suffixCls:ee,tagName:Ce,displayName:Ne}=Te;return Le=>W.forwardRef((nt,ie)=>W.createElement(Le,Object.assign({ref:ie,suffixCls:ee,tagName:Ce},nt)))}const Ie=W.forwardRef((Te,ee)=>{const{prefixCls:Ce,suffixCls:Ne,className:Le,tagName:Ke}=Te,nt=ke(Te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:ie}=W.useContext(_.E_),at=ie("layout",Ce),[Ze,Bt]=Pe(at),bt=Ne?`${at}-${Ne}`:at;return Ze(W.createElement(Ke,Object.assign({className:O()(Ce||bt,Le,Bt),ref:ee},nt)))}),De=W.forwardRef((Te,ee)=>{const{direction:Ce}=W.useContext(_.E_),[Ne,Le]=W.useState([]),{prefixCls:Ke,className:nt,rootClassName:ie,children:at,hasSider:Ze,tagName:Bt,style:bt}=Te,kt=ke(Te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Tt=(0,z.Z)(kt,["suffixCls"]),{getPrefixCls:wn,layout:Xe}=W.useContext(_.E_),se=wn("layout",Ke),[le,_t]=Pe(se),jt=O()(se,{[`${se}-has-sider`]:typeof Ze=="boolean"?Ze:Ne.length>0,[`${se}-rtl`]:Ce==="rtl"},Xe==null?void 0:Xe.className,nt,ie,_t),yt=W.useMemo(()=>({siderHook:{addSider:ln=>{Le(Dt=>[].concat((0,b.Z)(Dt),[ln]))},removeSider:ln=>{Le(Dt=>Dt.filter(ui=>ui!==ln))}}}),[]);return le(W.createElement(rt.Provider,{value:yt},W.createElement(Bt,Object.assign({ref:ee,className:jt,style:Object.assign(Object.assign({},Xe==null?void 0:Xe.style),bt)},Tt),at)))}),Fe=Ue({tagName:"div",displayName:"Layout"})(De),de=Ue({suffixCls:"header",tagName:"header",displayName:"Header"})(Ie),me=Ue({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Ie),we=Ue({suffixCls:"content",tagName:"main",displayName:"Content"})(Ie);var ge=Fe},40875:function(Q,C,d){"use strict";d.d(C,{J:function(){return _}});var b=d(59301),I=d(33234),O=d(70425),z=function(M,pe){var ue={};for(var ne in M)Object.prototype.hasOwnProperty.call(M,ne)&&pe.indexOf(ne)<0&&(ue[ne]=M[ne]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,ne=Object.getOwnPropertySymbols(M);Pe<ne.length;Pe++)pe.indexOf(ne[Pe])<0&&Object.prototype.propertyIsEnumerable.call(M,ne[Pe])&&(ue[ne[Pe]]=M[ne[Pe]]);return ue};const W=b.createContext(null),_=b.forwardRef((M,pe)=>{const{children:ue}=M,ne=z(M,["children"]),Pe=b.useContext(W),ke=b.useMemo(()=>Object.assign(Object.assign({},Pe),ne),[Pe,ne.prefixCls,ne.mode,ne.selectable]);return b.createElement(W.Provider,{value:ke},b.createElement(I.BR,null,(0,O.supportNodeRef)(ue)?b.cloneElement(ue,{ref:pe}):ue))});C.Z=W},20834:function(Q,C,d){"use strict";d.d(C,{default:function(){return P}});var b=d(15285),I=d(59301),O=d(45818),z=d(92310),W=d.n(z),_=d(36355),M=function(k,j){var X={};for(var N in k)Object.prototype.hasOwnProperty.call(k,N)&&j.indexOf(N)<0&&(X[N]=k[N]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,N=Object.getOwnPropertySymbols(k);Re<N.length;Re++)j.indexOf(N[Re])<0&&Object.prototype.propertyIsEnumerable.call(k,N[Re])&&(X[N[Re]]=k[N[Re]]);return X},ue=k=>{const{prefixCls:j,className:X,dashed:N}=k,Re=M(k,["prefixCls","className","dashed"]),{getPrefixCls:wt}=I.useContext(_.E_),ze=wt("menu",j),Oe=W()({[`${ze}-item-divider-dashed`]:!!N},X);return I.createElement(b.iz,Object.assign({className:Oe},Re))},ne=d(11592),Pe=d(2738),ke=d(6848),rt=d(92343),Ie=(0,I.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Fe=k=>{var j;const{className:X,children:N,icon:Re,title:wt,danger:ze}=k,{prefixCls:Oe,firstLevel:mt,direction:lt,disableMenuItemTitleTooltip:Qe,inlineCollapsed:Ct}=I.useContext(Ie),nn=Pt=>{const Xt=I.createElement("span",{className:`${Oe}-title-content`},N);return(!Re||(0,rt.l$)(N)&&N.type==="span")&&N&&Pt&&mt&&typeof N=="string"?I.createElement("div",{className:`${Oe}-inline-collapsed-noicon`},N.charAt(0)):Xt},{siderCollapsed:Yt}=I.useContext(O.D);let Ot=wt;typeof wt=="undefined"?Ot=mt?N:"":wt===!1&&(Ot="");const on={title:Ot};!Yt&&!Ct&&(on.title=null,on.open=!1);const hn=(0,ne.Z)(N).length;let Ve=I.createElement(b.ck,Object.assign({},(0,Pe.Z)(k,["title","icon","danger"]),{className:W()({[`${Oe}-item-danger`]:ze,[`${Oe}-item-only-child`]:(Re?hn+1:hn)===1},X),title:typeof wt=="string"?wt:void 0}),(0,rt.Tm)(Re,{className:W()((0,rt.l$)(Re)?(j=Re.props)===null||j===void 0?void 0:j.className:"",`${Oe}-item-icon`)}),nn(Ct));return Qe||(Ve=I.createElement(ke.Z,Object.assign({},on,{placement:lt==="rtl"?"left":"right",overlayClassName:`${Oe}-inline-collapsed-tooltip`}),Ve)),Ve},me=k=>{var j;const{popupClassName:X,icon:N,title:Re,theme:wt}=k,ze=I.useContext(Ie),{prefixCls:Oe,inlineCollapsed:mt,theme:lt}=ze,Qe=(0,b.Xl)();let Ct;if(!N)Ct=mt&&!Qe.length&&Re&&typeof Re=="string"?I.createElement("div",{className:`${Oe}-inline-collapsed-noicon`},Re.charAt(0)):I.createElement("span",{className:`${Oe}-title-content`},Re);else{const Yt=(0,rt.l$)(Re)&&Re.type==="span";Ct=I.createElement(I.Fragment,null,(0,rt.Tm)(N,{className:W()((0,rt.l$)(N)?(j=N.props)===null||j===void 0?void 0:j.className:"",`${Oe}-item-icon`)}),Yt?Re:I.createElement("span",{className:`${Oe}-title-content`},Re))}const nn=I.useMemo(()=>Object.assign(Object.assign({},ze),{firstLevel:!1}),[ze]);return I.createElement(Ie.Provider,{value:nn},I.createElement(b.Wd,Object.assign({},(0,Pe.Z)(k,["icon"]),{title:Ct,popupClassName:W()(Oe,X,`${Oe}-${wt||lt}`)})))},we=d(18785),ge=d(70425),Te=d(62892),ee=d(40875),Ce=function(k,j){var X={};for(var N in k)Object.prototype.hasOwnProperty.call(k,N)&&j.indexOf(N)<0&&(X[N]=k[N]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,N=Object.getOwnPropertySymbols(k);Re<N.length;Re++)j.indexOf(N[Re])<0&&Object.prototype.propertyIsEnumerable.call(k,N[Re])&&(X[N[Re]]=k[N[Re]]);return X};function Ne(k){return(k||[]).map((j,X)=>{if(j&&typeof j=="object"){const N=j,{label:Re,children:wt,key:ze,type:Oe}=N,mt=Ce(N,["label","children","key","type"]),lt=ze!=null?ze:`tmp-${X}`;return wt||Oe==="group"?Oe==="group"?I.createElement(b.BW,Object.assign({key:lt},mt,{title:Re}),Ne(wt)):I.createElement(me,Object.assign({key:lt},mt,{title:Re}),Ne(wt)):Oe==="divider"?I.createElement(ue,Object.assign({key:lt},mt)):I.createElement(Fe,Object.assign({key:lt},mt),Re)}return null}).filter(j=>j)}function Le(k){return I.useMemo(()=>k&&Ne(k),[k])}var Ke=d(64993),nt=d(17313),ie=d(8378),at=d(13826),Ze=d(29878),Bt=d(83116),bt=d(37613),Tt=k=>{const{componentCls:j,motionDurationSlow:X,horizontalLineHeight:N,colorSplit:Re,lineWidth:wt,lineType:ze,itemPaddingInline:Oe}=k;return{[`${j}-horizontal`]:{lineHeight:N,border:0,borderBottom:`${wt}px ${ze} ${Re}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${j}-item, ${j}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Oe},[`> ${j}-item:hover,
|
|
|
> ${j}-item-active,
|
|
|
> ${j}-submenu ${j}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${j}-item, ${j}-submenu-title`]:{transition:[`border-color ${X}`,`background ${X}`].join(",")},[`${j}-submenu-arrow`]:{display:"none"}}}},Xe=k=>{let{componentCls:j,menuArrowOffset:X}=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(-${X})`},"&::after":{transform:`rotate(45deg) translateY(${X})`}}}}};const se=k=>Object.assign({},(0,nt.oN)(k));var _t=(k,j)=>{const{componentCls:X,itemColor:N,itemSelectedColor:Re,groupTitleColor:wt,itemBg:ze,subMenuItemBg:Oe,itemSelectedBg:mt,activeBarHeight:lt,activeBarWidth:Qe,activeBarBorderWidth:Ct,motionDurationSlow:nn,motionEaseInOut:Yt,motionEaseOut:Ot,itemPaddingInline:on,motionDurationMid:hn,itemHoverColor:Ve,lineType:Pt,colorSplit:Xt,itemDisabledColor:qt,dangerItemColor:He,dangerItemHoverColor:Rn,dangerItemSelectedColor:Cn,dangerItemActiveBg:Gn,dangerItemSelectedBg:Ci,itemHoverBg:ci,itemActiveBg:sn,menuSubMenuBg:rn,horizontalItemSelectedColor:cr,horizontalItemSelectedBg:yr,horizontalItemBorderRadius:Zn,horizontalItemHoverBg:Mr,popupBg:rr}=k;return{[`${X}-${j}, ${X}-${j} > ${X}`]:{color:N,background:ze,[`&${X}-root:focus-visible`]:Object.assign({},se(k)),[`${X}-item-group-title`]:{color:wt},[`${X}-submenu-selected`]:{[`> ${X}-submenu-title`]:{color:Re}},[`${X}-item-disabled, ${X}-submenu-disabled`]:{color:`${qt} !important`},[`${X}-item:not(${X}-item-selected):not(${X}-submenu-selected)`]:{[`&:hover, > ${X}-submenu-title:hover`]:{color:Ve}},[`&:not(${X}-horizontal)`]:{[`${X}-item:not(${X}-item-selected)`]:{"&:hover":{backgroundColor:ci},"&:active":{backgroundColor:sn}},[`${X}-submenu-title`]:{"&:hover":{backgroundColor:ci},"&:active":{backgroundColor:sn}}},[`${X}-item-danger`]:{color:He,[`&${X}-item:hover`]:{[`&:not(${X}-item-selected):not(${X}-submenu-selected)`]:{color:Rn}},[`&${X}-item:active`]:{background:Gn}},[`${X}-item a`]:{"&, &:hover":{color:"inherit"}},[`${X}-item-selected`]:{color:Re,[`&${X}-item-danger`]:{color:Cn},"a, a:hover":{color:"inherit"}},[`& ${X}-item-selected`]:{backgroundColor:mt,[`&${X}-item-danger`]:{backgroundColor:Ci}},[`${X}-item, ${X}-submenu-title`]:{[`&:not(${X}-item-disabled):focus-visible`]:Object.assign({},se(k))},[`&${X}-submenu > ${X}`]:{backgroundColor:rn},[`&${X}-popup > ${X}`]:{backgroundColor:rr},[`&${X}-horizontal`]:Object.assign(Object.assign({},j==="dark"?{borderBottom:0}:{}),{[`> ${X}-item, > ${X}-submenu`]:{top:Ct,marginTop:-Ct,marginBottom:0,borderRadius:Zn,"&::after":{position:"absolute",insetInline:on,bottom:0,borderBottom:`${lt}px solid transparent`,transition:`border-color ${nn} ${Yt}`,content:'""'},"&:hover, &-active, &-open":{background:Mr,"&::after":{borderBottomWidth:lt,borderBottomColor:cr}},"&-selected":{color:cr,backgroundColor:yr,"&:hover":{backgroundColor:yr},"&::after":{borderBottomWidth:lt,borderBottomColor:cr}}}}),[`&${X}-root`]:{[`&${X}-inline, &${X}-vertical`]:{borderInlineEnd:`${Ct}px ${Pt} ${Xt}`}},[`&${X}-inline`]:{[`${X}-sub${X}-inline`]:{background:Oe},[`${X}-item, ${X}-submenu-title`]:Ct&&Qe?{width:`calc(100% + ${Ct}px)`}:{},[`${X}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Qe}px solid ${Re}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${hn} ${Ot}`,`opacity ${hn} ${Ot}`].join(","),content:'""'},[`&${X}-item-danger`]:{"&::after":{borderInlineEndColor:Cn}}},[`${X}-selected, ${X}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${hn} ${Yt}`,`opacity ${hn} ${Yt}`].join(",")}}}}}};const jt=k=>{const{componentCls:j,itemHeight:X,itemMarginInline:N,padding:Re,menuArrowSize:wt,marginXS:ze,itemMarginBlock:Oe}=k,mt=Re+wt+ze;return{[`${j}-item`]:{position:"relative",overflow:"hidden"},[`${j}-item, ${j}-submenu-title`]:{height:X,lineHeight:`${X}px`,paddingInline:Re,overflow:"hidden",textOverflow:"ellipsis",marginInline:N,marginBlock:Oe,width:`calc(100% - ${N*2}px)`},[`> ${j}-item,
|
|
|
> ${j}-submenu > ${j}-submenu-title`]:{height:X,lineHeight:`${X}px`},[`${j}-item-group-list ${j}-submenu-title,
|
|
|
${j}-submenu-title`]:{paddingInlineEnd:mt}}};var ln=k=>{const{componentCls:j,iconCls:X,itemHeight:N,colorTextLightSolid:Re,dropdownWidth:wt,controlHeightLG:ze,motionDurationMid:Oe,motionEaseOut:mt,paddingXL:lt,itemMarginInline:Qe,fontSizeLG:Ct,motionDurationSlow:nn,paddingXS:Yt,boxShadowSecondary:Ot,collapsedWidth:on,collapsedIconSize:hn}=k,Ve={height:N,lineHeight:`${N}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[j]:{"&-inline, &-vertical":Object.assign({[`&${j}-root`]:{boxShadow:"none"}},jt(k))},[`${j}-submenu-popup`]:{[`${j}-vertical`]:Object.assign(Object.assign({},jt(k)),{boxShadow:Ot})}},{[`${j}-submenu-popup ${j}-vertical${j}-sub`]:{minWidth:wt,maxHeight:`calc(100vh - ${ze*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 ${nn}`,`background ${nn}`,`padding ${Oe} ${mt}`].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`]:Ve,[`& ${j}-item-group-title`]:{paddingInlineStart:lt}},[`${j}-item`]:Ve}},{[`${j}-inline-collapsed`]:{width:on,[`&${j}-root`]:{[`${j}-item, ${j}-submenu ${j}-submenu-title`]:{[`> ${j}-inline-collapsed-noicon`]:{fontSize:Ct,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% - ${Ct/2}px - ${Qe}px)`,textOverflow:"clip",[`
|
|
|
${j}-submenu-arrow,
|
|
|
${j}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${j}-item-icon, ${X}`]:{margin:0,fontSize:hn,lineHeight:`${N}px`,"+ span":{display:"inline-block",opacity:0}}},[`${j}-item-icon, ${X}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${j}-item-icon, ${X}`]:{display:"none"},"a, a:hover":{color:Re}},[`${j}-item-group-title`]:Object.assign(Object.assign({},nt.vS),{paddingInline:Yt})}}]};const Dt=k=>{const{componentCls:j,motionDurationSlow:X,motionDurationMid:N,motionEaseInOut:Re,motionEaseOut:wt,iconCls:ze,iconSize:Oe,iconMarginInlineEnd:mt}=k;return{[`${j}-item, ${j}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${X}`,`background ${X}`,`padding ${X} ${Re}`].join(","),[`${j}-item-icon, ${ze}`]:{minWidth:Oe,fontSize:Oe,transition:[`font-size ${N} ${wt}`,`margin ${X} ${Re}`,`color ${X}`].join(","),"+ span":{marginInlineStart:mt,opacity:1,transition:[`opacity ${X} ${Re}`,`margin ${X}`,`color ${X}`].join(",")}},[`${j}-item-icon`]:Object.assign({},(0,nt.Ro)()),[`&${j}-item-only-child`]:{[`> ${ze}, > ${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"}}}},ui=k=>{const{componentCls:j,motionDurationSlow:X,motionEaseInOut:N,borderRadius:Re,menuArrowSize:wt,menuArrowOffset:ze}=k;return{[`${j}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:k.margin,width:wt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${X} ${N}, opacity ${X}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:wt*.6,height:wt*.15,backgroundColor:"currentcolor",borderRadius:Re,transition:[`background ${X} ${N}`,`transform ${X} ${N}`,`top ${X} ${N}`,`color ${X} ${N}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${ze})`},"&::after":{transform:`rotate(-45deg) translateY(${ze})`}}}}},On=k=>{const{antCls:j,componentCls:X,fontSize:N,motionDurationSlow:Re,motionDurationMid:wt,motionEaseInOut:ze,paddingXS:Oe,padding:mt,colorSplit:lt,lineWidth:Qe,zIndexPopup:Ct,borderRadiusLG:nn,subMenuItemBorderRadius:Yt,menuArrowSize:Ot,menuArrowOffset:on,lineType:hn,menuPanelMaskInset:Ve,groupTitleLineHeight:Pt,groupTitleFontSize:Xt}=k;return[{"":{[`${X}`]:Object.assign(Object.assign({},(0,nt.dF)()),{"&-hidden":{display:"none"}})},[`${X}-submenu-hidden`]:{display:"none"}},{[X]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,nt.Wf)(k)),(0,nt.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:N,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Re} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${X}-item`]:{flex:"none"}},[`${X}-item, ${X}-submenu, ${X}-submenu-title`]:{borderRadius:k.itemBorderRadius},[`${X}-item-group-title`]:{padding:`${Oe}px ${mt}px`,fontSize:Xt,lineHeight:Pt,transition:`all ${Re}`},[`&-horizontal ${X}-submenu`]:{transition:[`border-color ${Re} ${ze}`,`background ${Re} ${ze}`].join(",")},[`${X}-submenu, ${X}-submenu-inline`]:{transition:[`border-color ${Re} ${ze}`,`background ${Re} ${ze}`,`padding ${wt} ${ze}`].join(",")},[`${X}-submenu ${X}-sub`]:{cursor:"initial",transition:[`background ${Re} ${ze}`,`padding ${Re} ${ze}`].join(",")},[`${X}-title-content`]:{transition:`color ${Re}`},[`${X}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${X}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:lt,borderStyle:hn,borderWidth:0,borderTopWidth:Qe,marginBlock:Qe,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Dt(k)),{[`${X}-item-group`]:{[`${X}-item-group-list`]:{margin:0,padding:0,[`${X}-item, ${X}-submenu-title`]:{paddingInline:`${N*2}px ${mt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ct,borderRadius:nn,boxShadow:"none",transformOrigin:"0 0",[`&${X}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Ve}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Ve},"\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},[`> ${X}`]:Object.assign(Object.assign(Object.assign({borderRadius:nn},Dt(k)),ui(k)),{[`${X}-item, ${X}-submenu > ${X}-submenu-title`]:{borderRadius:Yt},[`${X}-submenu-title::after`]:{transition:`transform ${Re} ${ze}`}})}}),ui(k)),{[`&-inline-collapsed ${X}-submenu-arrow,
|
|
|
&-inline ${X}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${on})`},"&::after":{transform:`rotate(45deg) translateX(-${on})`}},[`${X}-submenu-open${X}-submenu-inline > ${X}-submenu-title > ${X}-submenu-arrow`]:{transform:`translateY(-${Ot*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${on})`},"&::before":{transform:`rotate(45deg) translateX(${on})`}}})},{[`${j}-layout-header`]:{[X]:{lineHeight:"inherit"}}}]};var ri=(k,j)=>(0,Bt.Z)("Menu",N=>{if(j===!1)return[];const{colorBgElevated:Re,colorPrimary:wt,colorTextLightSolid:ze,controlHeightLG:Oe,fontSize:mt,darkItemColor:lt,darkDangerItemColor:Qe,darkItemBg:Ct,darkSubMenuItemBg:nn,darkItemSelectedColor:Yt,darkItemSelectedBg:Ot,darkDangerItemSelectedBg:on,darkItemHoverBg:hn,darkGroupTitleColor:Ve,darkItemHoverColor:Pt,darkItemDisabledColor:Xt,darkDangerItemHoverColor:qt,darkDangerItemSelectedColor:He,darkDangerItemActiveBg:Rn}=N,Cn=mt/7*5,Gn=(0,bt.TS)(N,{menuArrowSize:Cn,menuHorizontalHeight:Oe*1.15,menuArrowOffset:`${Cn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Re}),Ci=(0,bt.TS)(Gn,{itemColor:lt,itemHoverColor:Pt,groupTitleColor:Ve,itemSelectedColor:Yt,itemBg:Ct,popupBg:Ct,subMenuItemBg:nn,itemActiveBg:"transparent",itemSelectedBg:Ot,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:hn,itemDisabledColor:Xt,dangerItemColor:Qe,dangerItemHoverColor:qt,dangerItemSelectedColor:He,dangerItemActiveBg:Rn,dangerItemSelectedBg:on,menuSubMenuBg:nn,horizontalItemSelectedColor:ze,horizontalItemSelectedBg:wt});return[On(Gn),Tt(Gn),ln(Gn),_t(Gn,"light"),_t(Ci,"dark"),Xe(Gn),(0,ie.Z)(Gn),(0,at.oN)(Gn,"slide-up"),(0,at.oN)(Gn,"slide-down"),(0,Ze._y)(Gn,"zoom-big")]},N=>{const{colorPrimary:Re,colorError:wt,colorTextDisabled:ze,colorErrorBg:Oe,colorText:mt,colorTextDescription:lt,colorBgContainer:Qe,colorFillAlter:Ct,colorFillContent:nn,lineWidth:Yt,lineWidthBold:Ot,controlItemBgActive:on,colorBgTextHover:hn,controlHeightLG:Ve,lineHeight:Pt,colorBgElevated:Xt,marginXXS:qt,padding:He,fontSize:Rn,controlHeightSM:Cn,fontSizeLG:Gn,colorTextLightSolid:Ci,colorErrorHover:ci}=N,sn=new Ke.C(Ci).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:N.zIndexPopupBase+50,radiusItem:N.borderRadiusLG,itemBorderRadius:N.borderRadiusLG,radiusSubMenuItem:N.borderRadiusSM,subMenuItemBorderRadius:N.borderRadiusSM,colorItemText:mt,itemColor:mt,colorItemTextHover:mt,itemHoverColor:mt,colorItemTextHoverHorizontal:Re,horizontalItemHoverColor:Re,colorGroupTitle:lt,groupTitleColor:lt,colorItemTextSelected:Re,itemSelectedColor:Re,colorItemTextSelectedHorizontal:Re,horizontalItemSelectedColor:Re,colorItemBg:Qe,itemBg:Qe,colorItemBgHover:hn,itemHoverBg:hn,colorItemBgActive:nn,itemActiveBg:on,colorSubItemBg:Ct,subMenuItemBg:Ct,colorItemBgSelected:on,itemSelectedBg:on,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Ot,activeBarHeight:Ot,colorActiveBarBorderSize:Yt,activeBarBorderWidth:Yt,colorItemTextDisabled:ze,itemDisabledColor:ze,colorDangerItemText:wt,dangerItemColor:wt,colorDangerItemTextHover:wt,dangerItemHoverColor:wt,colorDangerItemTextSelected:wt,dangerItemSelectedColor:wt,colorDangerItemBgActive:Oe,dangerItemActiveBg:Oe,colorDangerItemBgSelected:Oe,dangerItemSelectedBg:Oe,itemMarginInline:N.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Ve,groupTitleLineHeight:Pt,collapsedWidth:Ve*2,popupBg:Xt,itemMarginBlock:qt,itemPaddingInline:He,horizontalLineHeight:`${Ve*1.15}px`,iconSize:Rn,iconMarginInlineEnd:Cn-Rn,collapsedIconSize:Gn,groupTitleFontSize:Rn,darkItemDisabledColor:new Ke.C(Ci).setAlpha(.25).toRgbString(),darkItemColor:sn,darkDangerItemColor:wt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Ci,darkItemSelectedBg:Re,darkDangerItemSelectedBg:wt,darkItemHoverBg:"transparent",darkGroupTitleColor:sn,darkItemHoverColor:Ci,darkDangerItemHoverColor:ci,darkDangerItemSelectedColor:Ci,darkDangerItemActiveBg:wt}},{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),Xn=function(k,j){var X={};for(var N in k)Object.prototype.hasOwnProperty.call(k,N)&&j.indexOf(N)<0&&(X[N]=k[N]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,N=Object.getOwnPropertySymbols(k);Re<N.length;Re++)j.indexOf(N[Re])<0&&Object.prototype.propertyIsEnumerable.call(k,N[Re])&&(X[N[Re]]=k[N[Re]]);return X},Nn=(0,I.forwardRef)((k,j)=>{var X,N;const Re=I.useContext(ee.Z),wt=Re||{},{getPrefixCls:ze,getPopupContainer:Oe,direction:mt,menu:lt}=I.useContext(_.E_),Qe=ze(),{prefixCls:Ct,className:nn,style:Yt,theme:Ot="light",expandIcon:on,_internalDisableMenuItemTitleTooltip:hn,inlineCollapsed:Ve,siderCollapsed:Pt,items:Xt,children:qt,rootClassName:He,mode:Rn,selectable:Cn,onClick:Gn,overflowedIndicatorPopupClassName:Ci}=k,ci=Xn(k,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),sn=(0,Pe.Z)(ci,["collapsedWidth"]),rn=Le(Xt)||qt;(X=wt.validator)===null||X===void 0||X.call(wt,{mode:Rn});const cr=(0,ge.useEvent)(function(){var Tr;Gn==null||Gn.apply(void 0,arguments),(Tr=wt.onClick)===null||Tr===void 0||Tr.call(wt)}),yr=wt.mode||Rn,Zn=Cn!=null?Cn:wt.selectable,Mr=I.useMemo(()=>Pt!==void 0?Pt:Ve,[Ve,Pt]),rr={horizontal:{motionName:`${Qe}-slide-up`},inline:(0,Te.Z)(Qe),other:{motionName:`${Qe}-zoom-big`}},U=ze("menu",Ct||wt.prefixCls),[mr,lr]=ri(U,!Re),_r=W()(`${U}-${Ot}`,lt==null?void 0:lt.className,nn);let Hr;if(typeof on=="function")Hr=on;else if(on===null||on===!1)Hr=null;else if(wt.expandIcon===null||wt.expandIcon===!1)Hr=null;else{const Tr=on!=null?on:wt.expandIcon;Hr=(0,rt.Tm)(Tr,{className:W()(`${U}-submenu-expand-icon`,(0,rt.l$)(Tr)?(N=Tr.props)===null||N===void 0?void 0:N.className:"")})}const uo=I.useMemo(()=>({prefixCls:U,inlineCollapsed:Mr||!1,direction:mt,firstLevel:!0,theme:Ot,mode:yr,disableMenuItemTitleTooltip:hn}),[U,Mr,mt,hn,Ot]);return mr(I.createElement(ee.Z.Provider,{value:null},I.createElement(Ie.Provider,{value:uo},I.createElement(b.ZP,Object.assign({getPopupContainer:Oe,overflowedIndicator:I.createElement(we.Z,null),overflowedIndicatorPopupClassName:W()(U,`${U}-${Ot}`,Ci),mode:yr,selectable:Zn,onClick:cr},sn,{inlineCollapsed:Mr,style:Object.assign(Object.assign({},lt==null?void 0:lt.style),Yt),className:_r,prefixCls:U,direction:mt,defaultMotions:rr,expandIcon:Hr,ref:j,rootClassName:W()(He,lr)}),rn))))});const xe=(0,I.forwardRef)((k,j)=>{const X=(0,I.useRef)(null),N=I.useContext(O.D);return(0,I.useImperativeHandle)(j,()=>({menu:X.current,focus:Re=>{var wt;(wt=X.current)===null||wt===void 0||wt.focus(Re)}})),I.createElement(Nn,Object.assign({ref:X},k,N))});xe.Item=Fe,xe.SubMenu=me,xe.Divider=ue,xe.ItemGroup=b.BW;var P=xe},58421:function(Q,C,d){"use strict";d.d(C,{Z:function(){return wt}});var b=d(92413),I=d(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"},z=O,W=d(7657),_=function(Oe,mt){return I.createElement(W.Z,(0,b.Z)({},Oe,{ref:mt,icon:z}))},M=I.forwardRef(_),pe=M,ue=d(49198),ne=d(33853),Pe=d(38819),ke=d(92310),rt=d.n(ke),Ue=d(400),Ie=d(33708),De=d(6909),Fe=d(4771),de=d(9427),me=d(25440),we=d(26112),ge={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},Te=ge,ee=d(91735),Ce=function(ze){(0,de.Z)(mt,ze);var Oe=(0,me.Z)(mt);function mt(){var lt;(0,De.Z)(this,mt);for(var Qe=arguments.length,Ct=new Array(Qe),nn=0;nn<Qe;nn++)Ct[nn]=arguments[nn];return lt=Oe.call.apply(Oe,[this].concat(Ct)),lt.state={goInputText:""},lt.getValidValue=function(){var Yt=lt.state.goInputText;return!Yt||Number.isNaN(Yt)?void 0:Number(Yt)},lt.buildOptionText=function(Yt){return"".concat(Yt," ").concat(lt.props.locale.items_per_page)},lt.changeSize=function(Yt){lt.props.changeSize(Number(Yt))},lt.handleChange=function(Yt){lt.setState({goInputText:Yt.target.value})},lt.handleBlur=function(Yt){var Ot=lt.props,on=Ot.goButton,hn=Ot.quickGo,Ve=Ot.rootPrefixCls,Pt=lt.state.goInputText;on||Pt===""||(lt.setState({goInputText:""}),!(Yt.relatedTarget&&(Yt.relatedTarget.className.indexOf("".concat(Ve,"-item-link"))>=0||Yt.relatedTarget.className.indexOf("".concat(Ve,"-item"))>=0))&&hn(lt.getValidValue()))},lt.go=function(Yt){var Ot=lt.state.goInputText;Ot!==""&&(Yt.keyCode===Te.ENTER||Yt.type==="click")&&(lt.setState({goInputText:""}),lt.props.quickGo(lt.getValidValue()))},lt}return(0,Fe.Z)(mt,[{key:"getPageSizeOptions",value:function(){var Qe=this.props,Ct=Qe.pageSize,nn=Qe.pageSizeOptions;return nn.some(function(Yt){return Yt.toString()===Ct.toString()})?nn:nn.concat([Ct.toString()]).sort(function(Yt,Ot){var on=Number.isNaN(Number(Yt))?0:Number(Yt),hn=Number.isNaN(Number(Ot))?0:Number(Ot);return on-hn})}},{key:"render",value:function(){var Qe=this,Ct=this.props,nn=Ct.pageSize,Yt=Ct.locale,Ot=Ct.rootPrefixCls,on=Ct.changeSize,hn=Ct.quickGo,Ve=Ct.goButton,Pt=Ct.selectComponentClass,Xt=Ct.buildOptionText,qt=Ct.selectPrefixCls,He=Ct.disabled,Rn=this.state.goInputText,Cn="".concat(Ot,"-options"),Gn=Pt,Ci=null,ci=null,sn=null;if(!on&&!hn)return null;var rn=this.getPageSizeOptions();if(on&&Gn){var cr=rn.map(function(yr,Zn){return I.createElement(Gn.Option,{key:Zn,value:yr.toString()},(Xt||Qe.buildOptionText)(yr))});Ci=I.createElement(Gn,{disabled:He,prefixCls:qt,showSearch:!1,className:"".concat(Cn,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(nn||rn[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Zn){return Zn.parentNode},"aria-label":Yt.page_size,defaultOpen:!1},cr)}return hn&&(Ve&&(sn=typeof Ve=="boolean"?I.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:He,className:"".concat(Cn,"-quick-jumper-button")},Yt.jump_to_confirm):I.createElement("span",{onClick:this.go,onKeyUp:this.go},Ve)),ci=I.createElement("div",{className:"".concat(Cn,"-quick-jumper")},Yt.jump_to,I.createElement("input",{disabled:He,type:"text",value:Rn,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Yt.page}),Yt.page,sn)),I.createElement("li",{className:"".concat(Cn)},Ci,ci)}}]),mt}(I.Component);Ce.defaultProps={pageSizeOptions:["10","20","50","100"]};var Ne=Ce,Le=function(Oe){var mt,lt=Oe.rootPrefixCls,Qe=Oe.page,Ct=Oe.active,nn=Oe.className,Yt=Oe.showTitle,Ot=Oe.onClick,on=Oe.onKeyPress,hn=Oe.itemRender,Ve="".concat(lt,"-item"),Pt=rt()(Ve,"".concat(Ve,"-").concat(Qe),(mt={},(0,Ue.Z)(mt,"".concat(Ve,"-active"),Ct),(0,Ue.Z)(mt,"".concat(Ve,"-disabled"),!Qe),(0,Ue.Z)(mt,Oe.className,nn),mt)),Xt=function(){Ot(Qe)},qt=function(Cn){on(Cn,Ot,Qe)},He=hn(Qe,"page",I.createElement("a",{rel:"nofollow"},Qe));return He?I.createElement("li",{title:Yt?Qe.toString():null,className:Pt,onClick:Xt,onKeyPress:qt,tabIndex:0},He):null},Ke=Le;function nt(){}function ie(ze){var Oe=Number(ze);return typeof Oe=="number"&&!Number.isNaN(Oe)&&isFinite(Oe)&&Math.floor(Oe)===Oe}var at=function(Oe,mt,lt){return lt};function Ze(ze,Oe,mt){var lt=typeof ze=="undefined"?Oe.pageSize:ze;return Math.floor((mt.total-1)/lt)+1}var Bt=function(ze){(0,de.Z)(mt,ze);var Oe=(0,me.Z)(mt);function mt(lt){var Qe;(0,De.Z)(this,mt),Qe=Oe.call(this,lt),Qe.paginationNode=I.createRef(),Qe.getJumpPrevPage=function(){return Math.max(1,Qe.state.current-(Qe.props.showLessItems?3:5))},Qe.getJumpNextPage=function(){return Math.min(Ze(void 0,Qe.state,Qe.props),Qe.state.current+(Qe.props.showLessItems?3:5))},Qe.getItemIcon=function(on,hn){var Ve=Qe.props.prefixCls,Pt=on||I.createElement("button",{type:"button","aria-label":hn,className:"".concat(Ve,"-item-link")});return typeof on=="function"&&(Pt=I.createElement(on,(0,Ie.Z)({},Qe.props))),Pt},Qe.isValid=function(on){var hn=Qe.props.total;return ie(on)&&on!==Qe.state.current&&ie(hn)&&hn>0},Qe.shouldDisplayQuickJumper=function(){var on=Qe.props,hn=on.showQuickJumper,Ve=on.total,Pt=Qe.state.pageSize;return Ve<=Pt?!1:hn},Qe.handleKeyDown=function(on){(on.keyCode===Te.ARROW_UP||on.keyCode===Te.ARROW_DOWN)&&on.preventDefault()},Qe.handleKeyUp=function(on){var hn=Qe.getValidValue(on),Ve=Qe.state.currentInputValue;hn!==Ve&&Qe.setState({currentInputValue:hn}),on.keyCode===Te.ENTER?Qe.handleChange(hn):on.keyCode===Te.ARROW_UP?Qe.handleChange(hn-1):on.keyCode===Te.ARROW_DOWN&&Qe.handleChange(hn+1)},Qe.handleBlur=function(on){var hn=Qe.getValidValue(on);Qe.handleChange(hn)},Qe.changePageSize=function(on){var hn=Qe.state.current,Ve=Ze(on,Qe.state,Qe.props);hn=hn>Ve?Ve:hn,Ve===0&&(hn=Qe.state.current),typeof on=="number"&&("pageSize"in Qe.props||Qe.setState({pageSize:on}),"current"in Qe.props||Qe.setState({current:hn,currentInputValue:hn})),Qe.props.onShowSizeChange(hn,on),"onChange"in Qe.props&&Qe.props.onChange&&Qe.props.onChange(hn,on)},Qe.handleChange=function(on){var hn=Qe.props,Ve=hn.disabled,Pt=hn.onChange,Xt=Qe.state,qt=Xt.pageSize,He=Xt.current,Rn=Xt.currentInputValue;if(Qe.isValid(on)&&!Ve){var Cn=Ze(void 0,Qe.state,Qe.props),Gn=on;return on>Cn?Gn=Cn:on<1&&(Gn=1),"current"in Qe.props||Qe.setState({current:Gn}),Gn!==Rn&&Qe.setState({currentInputValue:Gn}),Pt(Gn,qt),Gn}return He},Qe.prev=function(){Qe.hasPrev()&&Qe.handleChange(Qe.state.current-1)},Qe.next=function(){Qe.hasNext()&&Qe.handleChange(Qe.state.current+1)},Qe.jumpPrev=function(){Qe.handleChange(Qe.getJumpPrevPage())},Qe.jumpNext=function(){Qe.handleChange(Qe.getJumpNextPage())},Qe.hasPrev=function(){return Qe.state.current>1},Qe.hasNext=function(){return Qe.state.current<Ze(void 0,Qe.state,Qe.props)},Qe.runIfEnter=function(on,hn){if(on.key==="Enter"||on.charCode===13){for(var Ve=arguments.length,Pt=new Array(Ve>2?Ve-2:0),Xt=2;Xt<Ve;Xt++)Pt[Xt-2]=arguments[Xt];hn.apply(void 0,Pt)}},Qe.runIfEnterPrev=function(on){Qe.runIfEnter(on,Qe.prev)},Qe.runIfEnterNext=function(on){Qe.runIfEnter(on,Qe.next)},Qe.runIfEnterJumpPrev=function(on){Qe.runIfEnter(on,Qe.jumpPrev)},Qe.runIfEnterJumpNext=function(on){Qe.runIfEnter(on,Qe.jumpNext)},Qe.handleGoTO=function(on){(on.keyCode===Te.ENTER||on.type==="click")&&Qe.handleChange(Qe.state.currentInputValue)},Qe.renderPrev=function(on){var hn=Qe.props,Ve=hn.prevIcon,Pt=hn.itemRender,Xt=Pt(on,"prev",Qe.getItemIcon(Ve,"prev page")),qt=!Qe.hasPrev();return(0,I.isValidElement)(Xt)?(0,I.cloneElement)(Xt,{disabled:qt}):Xt},Qe.renderNext=function(on){var hn=Qe.props,Ve=hn.nextIcon,Pt=hn.itemRender,Xt=Pt(on,"next",Qe.getItemIcon(Ve,"next page")),qt=!Qe.hasNext();return(0,I.isValidElement)(Xt)?(0,I.cloneElement)(Xt,{disabled:qt}):Xt};var Ct=lt.onChange!==nt,nn="current"in lt;nn&&!Ct&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Yt=lt.defaultCurrent;"current"in lt&&(Yt=lt.current);var Ot=lt.defaultPageSize;return"pageSize"in lt&&(Ot=lt.pageSize),Yt=Math.min(Yt,Ze(Ot,void 0,lt)),Qe.state={current:Yt,currentInputValue:Yt,pageSize:Ot},Qe}return(0,Fe.Z)(mt,[{key:"componentDidUpdate",value:function(Qe,Ct){var nn=this.props.prefixCls;if(Ct.current!==this.state.current&&this.paginationNode.current){var Yt=this.paginationNode.current.querySelector(".".concat(nn,"-item-").concat(Ct.current));if(Yt&&document.activeElement===Yt){var Ot;Yt==null||(Ot=Yt.blur)===null||Ot===void 0||Ot.call(Yt)}}}},{key:"getValidValue",value:function(Qe){var Ct=Qe.target.value,nn=Ze(void 0,this.state,this.props),Yt=this.state.currentInputValue,Ot;return Ct===""?Ot=Ct:Number.isNaN(Number(Ct))?Ot=Yt:Ct>=nn?Ot=nn:Ot=Number(Ct),Ot}},{key:"getShowSizeChanger",value:function(){var Qe=this.props,Ct=Qe.showSizeChanger,nn=Qe.total,Yt=Qe.totalBoundaryShowSizeChanger;return typeof Ct!="undefined"?Ct:nn>Yt}},{key:"render",value:function(){var Qe=this.props,Ct=Qe.prefixCls,nn=Qe.className,Yt=Qe.style,Ot=Qe.disabled,on=Qe.hideOnSinglePage,hn=Qe.total,Ve=Qe.locale,Pt=Qe.showQuickJumper,Xt=Qe.showLessItems,qt=Qe.showTitle,He=Qe.showTotal,Rn=Qe.simple,Cn=Qe.itemRender,Gn=Qe.showPrevNextJumpers,Ci=Qe.jumpPrevIcon,ci=Qe.jumpNextIcon,sn=Qe.selectComponentClass,rn=Qe.selectPrefixCls,cr=Qe.pageSizeOptions,yr=this.state,Zn=yr.current,Mr=yr.pageSize,rr=yr.currentInputValue;if(on===!0&&hn<=Mr)return null;var U=Ze(void 0,this.state,this.props),mr=[],lr=null,_r=null,Hr=null,uo=null,Tr=null,Jr=Pt&&Pt.goButton,fr=Xt?1:2,Xi=Zn-1>0?Zn-1:0,di=Zn+1<U?Zn+1:U,ht=(0,we.Z)(this.props,{aria:!0,data:!0}),_n=He&&I.createElement("li",{className:"".concat(Ct,"-total-text")},He(hn,[hn===0?0:(Zn-1)*Mr+1,Zn*Mr>hn?hn:Zn*Mr]));if(Rn){Jr&&(typeof Jr=="boolean"?Tr=I.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Ve.jump_to_confirm):Tr=I.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Jr),Tr=I.createElement("li",{title:qt?"".concat(Ve.jump_to).concat(Zn,"/").concat(U):null,className:"".concat(Ct,"-simple-pager")},Tr));var Hn=this.renderPrev(Xi);return I.createElement("ul",(0,b.Z)({className:rt()(Ct,"".concat(Ct,"-simple"),(0,Ue.Z)({},"".concat(Ct,"-disabled"),Ot),nn),style:Yt,ref:this.paginationNode},ht),_n,Hn?I.createElement("li",{title:qt?Ve.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:rt()("".concat(Ct,"-prev"),(0,Ue.Z)({},"".concat(Ct,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Hn):null,I.createElement("li",{title:qt?"".concat(Zn,"/").concat(U):null,className:"".concat(Ct,"-simple-pager")},I.createElement("input",{type:"text",value:rr,disabled:Ot,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),I.createElement("span",{className:"".concat(Ct,"-slash")},"/"),U),I.createElement("li",{title:qt?Ve.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:rt()("".concat(Ct,"-next"),(0,Ue.Z)({},"".concat(Ct,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(di)),Tr)}if(U<=3+fr*2){var gt={locale:Ve,rootPrefixCls:Ct,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:qt,itemRender:Cn};U||mr.push(I.createElement(Ke,(0,b.Z)({},gt,{key:"noPager",page:1,className:"".concat(Ct,"-item-disabled")})));for(var Ge=1;Ge<=U;Ge+=1){var fn=Zn===Ge;mr.push(I.createElement(Ke,(0,b.Z)({},gt,{key:Ge,page:Ge,active:fn})))}}else{var Sn=Xt?Ve.prev_3:Ve.prev_5,ti=Xt?Ve.next_3:Ve.next_5,Kn=Cn(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Ci,"prev page")),pt=Cn(this.getJumpNextPage(),"jump-next",this.getItemIcon(ci,"next page"));Gn&&(lr=Kn?I.createElement("li",{title:qt?Sn:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:rt()("".concat(Ct,"-jump-prev"),(0,Ue.Z)({},"".concat(Ct,"-jump-prev-custom-icon"),!!Ci))},Kn):null,_r=pt?I.createElement("li",{title:qt?ti:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:rt()("".concat(Ct,"-jump-next"),(0,Ue.Z)({},"".concat(Ct,"-jump-next-custom-icon"),!!ci))},pt):null),uo=I.createElement(Ke,{locale:Ve,last:!0,rootPrefixCls:Ct,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:U,page:U,active:!1,showTitle:qt,itemRender:Cn}),Hr=I.createElement(Ke,{locale:Ve,rootPrefixCls:Ct,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:qt,itemRender:Cn});var gn=Math.max(1,Zn-fr),tn=Math.min(Zn+fr,U);Zn-1<=fr&&(tn=1+fr*2),U-Zn<=fr&&(gn=U-fr*2);for(var xi=gn;xi<=tn;xi+=1){var ft=Zn===xi;mr.push(I.createElement(Ke,{locale:Ve,rootPrefixCls:Ct,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:xi,page:xi,active:ft,showTitle:qt,itemRender:Cn}))}Zn-1>=fr*2&&Zn!==3&&(mr[0]=(0,I.cloneElement)(mr[0],{className:"".concat(Ct,"-item-after-jump-prev")}),mr.unshift(lr)),U-Zn>=fr*2&&Zn!==U-2&&(mr[mr.length-1]=(0,I.cloneElement)(mr[mr.length-1],{className:"".concat(Ct,"-item-before-jump-next")}),mr.push(_r)),gn!==1&&mr.unshift(Hr),tn!==U&&mr.push(uo)}var Fn=!this.hasPrev()||!U,Mt=!this.hasNext()||!U,qe=this.renderPrev(Xi),D=this.renderNext(di);return I.createElement("ul",(0,b.Z)({className:rt()(Ct,nn,(0,Ue.Z)({},"".concat(Ct,"-disabled"),Ot)),style:Yt,ref:this.paginationNode},ht),_n,qe?I.createElement("li",{title:qt?Ve.prev_page:null,onClick:this.prev,tabIndex:Fn?null:0,onKeyPress:this.runIfEnterPrev,className:rt()("".concat(Ct,"-prev"),(0,Ue.Z)({},"".concat(Ct,"-disabled"),Fn)),"aria-disabled":Fn},qe):null,mr,D?I.createElement("li",{title:qt?Ve.next_page:null,onClick:this.next,tabIndex:Mt?null:0,onKeyPress:this.runIfEnterNext,className:rt()("".concat(Ct,"-next"),(0,Ue.Z)({},"".concat(Ct,"-disabled"),Mt)),"aria-disabled":Mt},D):null,I.createElement(Ne,{disabled:Ot,locale:Ve,rootPrefixCls:Ct,selectComponentClass:sn,selectPrefixCls:rn,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Zn,pageSize:Mr,pageSizeOptions:cr,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Jr}))}}],[{key:"getDerivedStateFromProps",value:function(Qe,Ct){var nn={};if("current"in Qe&&(nn.current=Qe.current,Qe.current!==Ct.current&&(nn.currentInputValue=nn.current)),"pageSize"in Qe&&Qe.pageSize!==Ct.pageSize){var Yt=Ct.current,Ot=Ze(Qe.pageSize,Ct,Qe);Yt=Yt>Ot?Ot:Yt,"current"in Qe||(nn.current=Yt,nn.currentInputValue=Yt),nn.pageSize=Qe.pageSize}return nn}}]),mt}(I.Component);Bt.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:nt,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:nt,locale:ee.Z,style:{},itemRender:at,totalBoundaryShowSizeChanger:50};var bt=Bt,kt=d(22075),Tt=d(36355),wn=d(19716),Xe=d(8628),se=d(9763),le=d(57809);const _t=ze=>I.createElement(le.default,Object.assign({},ze,{showSearch:!0,size:"small"})),jt=ze=>I.createElement(le.default,Object.assign({},ze,{showSearch:!0,size:"middle"}));_t.Option=le.default.Option,jt.Option=le.default.Option;var yt=d(9937),ln=d(17313),Dt=d(83116),ui=d(37613);const On=ze=>{const{componentCls:Oe}=ze;return{[`${Oe}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Oe}-item-link`]:{color:ze.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Oe}-item-link`]:{color:ze.colorTextDisabled,cursor:"not-allowed"}}},[`&${Oe}-disabled`]:{cursor:"not-allowed",[`${Oe}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:ze.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:ze.colorBorder,backgroundColor:ze.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:ze.itemActiveBgDisabled},a:{color:ze.itemActiveColorDisabled}}},[`${Oe}-item-link`]:{color:ze.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Oe}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Oe}-simple-pager`]:{color:ze.colorTextDisabled},[`${Oe}-jump-prev, ${Oe}-jump-next`]:{[`${Oe}-item-link-icon`]:{opacity:0},[`${Oe}-item-ellipsis`]:{opacity:1}}},[`&${Oe}-simple`]:{[`${Oe}-prev, ${Oe}-next`]:{[`&${Oe}-disabled ${Oe}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},ri=ze=>{const{componentCls:Oe}=ze;return{[`&${Oe}-mini ${Oe}-total-text, &${Oe}-mini ${Oe}-simple-pager`]:{height:ze.itemSizeSM,lineHeight:`${ze.itemSizeSM}px`},[`&${Oe}-mini ${Oe}-item`]:{minWidth:ze.itemSizeSM,height:ze.itemSizeSM,margin:0,lineHeight:`${ze.itemSizeSM-2}px`},[`&${Oe}-mini:not(${Oe}-disabled) ${Oe}-item:not(${Oe}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:ze.colorBgTextHover},"&:active":{backgroundColor:ze.colorBgTextActive}},[`&${Oe}-mini ${Oe}-prev, &${Oe}-mini ${Oe}-next`]:{minWidth:ze.itemSizeSM,height:ze.itemSizeSM,margin:0,lineHeight:`${ze.itemSizeSM}px`},[`&${Oe}-mini:not(${Oe}-disabled)`]:{[`${Oe}-prev, ${Oe}-next`]:{[`&:hover ${Oe}-item-link`]:{backgroundColor:ze.colorBgTextHover},[`&:active ${Oe}-item-link`]:{backgroundColor:ze.colorBgTextActive},[`&${Oe}-disabled:hover ${Oe}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${Oe}-mini ${Oe}-prev ${Oe}-item-link,
|
|
|
&${Oe}-mini ${Oe}-next ${Oe}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:ze.itemSizeSM,lineHeight:`${ze.itemSizeSM}px`}},[`&${Oe}-mini ${Oe}-jump-prev, &${Oe}-mini ${Oe}-jump-next`]:{height:ze.itemSizeSM,marginInlineEnd:0,lineHeight:`${ze.itemSizeSM}px`},[`&${Oe}-mini ${Oe}-options`]:{marginInlineStart:ze.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:ze.miniOptionsSizeChangerTop},"&-quick-jumper":{height:ze.itemSizeSM,lineHeight:`${ze.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,yt.x0)(ze)),{width:ze.paginationMiniQuickJumperInputWidth,height:ze.controlHeightSM})}}}},Xn=ze=>{const{componentCls:Oe}=ze;return{[`
|
|
|
&${Oe}-simple ${Oe}-prev,
|
|
|
&${Oe}-simple ${Oe}-next
|
|
|
`]:{height:ze.itemSizeSM,lineHeight:`${ze.itemSizeSM}px`,verticalAlign:"top",[`${Oe}-item-link`]:{height:ze.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:ze.colorBgTextHover},"&:active":{backgroundColor:ze.colorBgTextActive},"&::after":{height:ze.itemSizeSM,lineHeight:`${ze.itemSizeSM}px`}}},[`&${Oe}-simple ${Oe}-simple-pager`]:{display:"inline-block",height:ze.itemSizeSM,marginInlineEnd:ze.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:ze.marginXS,padding:`0 ${ze.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:ze.itemInputBg,border:`${ze.lineWidth}px ${ze.lineType} ${ze.colorBorder}`,borderRadius:ze.borderRadius,outline:"none",transition:`border-color ${ze.motionDurationMid}`,color:"inherit","&:hover":{borderColor:ze.colorPrimary},"&:focus":{borderColor:ze.colorPrimaryHover,boxShadow:`${ze.inputOutlineOffset}px 0 ${ze.controlOutlineWidth}px ${ze.controlOutline}`},"&[disabled]":{color:ze.colorTextDisabled,backgroundColor:ze.colorBgContainerDisabled,borderColor:ze.colorBorder,cursor:"not-allowed"}}}}},Tn=ze=>{const{componentCls:Oe}=ze;return{[`${Oe}-jump-prev, ${Oe}-jump-next`]:{outline:0,[`${Oe}-item-container`]:{position:"relative",[`${Oe}-item-link-icon`]:{color:ze.colorPrimary,fontSize:ze.fontSizeSM,opacity:0,transition:`all ${ze.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Oe}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:ze.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:ze.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:ze.paginationEllipsisTextIndent,opacity:1,transition:`all ${ze.motionDurationMid}`}},"&:hover":{[`${Oe}-item-link-icon`]:{opacity:1},[`${Oe}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${Oe}-prev,
|
|
|
${Oe}-jump-prev,
|
|
|
${Oe}-jump-next
|
|
|
`]:{marginInlineEnd:ze.marginXS},[`
|
|
|
${Oe}-prev,
|
|
|
${Oe}-next,
|
|
|
${Oe}-jump-prev,
|
|
|
${Oe}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:ze.itemSize,height:ze.itemSize,color:ze.colorText,fontFamily:ze.fontFamily,lineHeight:`${ze.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:ze.borderRadius,cursor:"pointer",transition:`all ${ze.motionDurationMid}`},[`${Oe}-prev, ${Oe}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:ze.colorText,cursor:"pointer",userSelect:"none"},[`${Oe}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:ze.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${ze.lineWidth}px ${ze.lineType} transparent`,borderRadius:ze.borderRadius,outline:"none",transition:`all ${ze.motionDurationMid}`},[`&:hover ${Oe}-item-link`]:{backgroundColor:ze.colorBgTextHover},[`&:active ${Oe}-item-link`]:{backgroundColor:ze.colorBgTextActive},[`&${Oe}-disabled:hover`]:{[`${Oe}-item-link`]:{backgroundColor:"transparent"}}},[`${Oe}-slash`]:{marginInlineEnd:ze.paginationSlashMarginInlineEnd,marginInlineStart:ze.paginationSlashMarginInlineStart},[`${Oe}-options`]:{display:"inline-block",marginInlineStart:ze.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:ze.controlHeight,marginInlineStart:ze.marginXS,lineHeight:`${ze.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,yt.ik)(ze)),{width:ze.controlHeightLG*1.25,height:ze.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:ze.marginXS,marginInlineEnd:ze.marginXS})}}}},Nn=ze=>{const{componentCls:Oe}=ze;return{[`${Oe}-item`]:{display:"inline-block",minWidth:ze.itemSize,height:ze.itemSize,marginInlineEnd:ze.marginXS,fontFamily:ze.fontFamily,lineHeight:`${ze.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${ze.lineWidth}px ${ze.lineType} transparent`,borderRadius:ze.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${ze.paginationItemPaddingInline}px`,color:ze.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Oe}-item-active)`]:{"&:hover":{transition:`all ${ze.motionDurationMid}`,backgroundColor:ze.colorBgTextHover},"&:active":{backgroundColor:ze.colorBgTextActive}},"&-active":{fontWeight:ze.fontWeightStrong,backgroundColor:ze.itemActiveBg,borderColor:ze.colorPrimary,a:{color:ze.colorPrimary},"&:hover":{borderColor:ze.colorPrimaryHover},"&:hover a":{color:ze.colorPrimaryHover}}}}},xe=ze=>{const{componentCls:Oe}=ze;return{[Oe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ln.Wf)(ze)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Oe}-total-text`]:{display:"inline-block",height:ze.itemSize,marginInlineEnd:ze.marginXS,lineHeight:`${ze.itemSize-2}px`,verticalAlign:"middle"}}),Nn(ze)),Tn(ze)),Xn(ze)),ri(ze)),On(ze)),{[`@media only screen and (max-width: ${ze.screenLG}px)`]:{[`${Oe}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${ze.screenSM}px)`]:{[`${Oe}-options`]:{display:"none"}}}),[`&${ze.componentCls}-rtl`]:{direction:"rtl"}}},P=ze=>{const{componentCls:Oe}=ze;return{[`${Oe}${Oe}-disabled:not(${Oe}-mini)`]:{"&, &:hover":{[`${Oe}-item-link`]:{borderColor:ze.colorBorder}},"&:focus-visible":{[`${Oe}-item-link`]:{borderColor:ze.colorBorder}},[`${Oe}-item, ${Oe}-item-link`]:{backgroundColor:ze.colorBgContainerDisabled,borderColor:ze.colorBorder,[`&:hover:not(${Oe}-item-active)`]:{backgroundColor:ze.colorBgContainerDisabled,borderColor:ze.colorBorder,a:{color:ze.colorTextDisabled}},[`&${Oe}-item-active`]:{backgroundColor:ze.itemActiveBgDisabled}},[`${Oe}-prev, ${Oe}-next`]:{"&:hover button":{backgroundColor:ze.colorBgContainerDisabled,borderColor:ze.colorBorder,color:ze.colorTextDisabled},[`${Oe}-item-link`]:{backgroundColor:ze.colorBgContainerDisabled,borderColor:ze.colorBorder}}},[`${Oe}:not(${Oe}-mini)`]:{[`${Oe}-prev, ${Oe}-next`]:{"&:hover button":{borderColor:ze.colorPrimaryHover,backgroundColor:ze.itemBg},[`${Oe}-item-link`]:{backgroundColor:ze.itemLinkBg,borderColor:ze.colorBorder},[`&:hover ${Oe}-item-link`]:{borderColor:ze.colorPrimary,backgroundColor:ze.itemBg,color:ze.colorPrimary},[`&${Oe}-disabled`]:{[`${Oe}-item-link`]:{borderColor:ze.colorBorder,color:ze.colorTextDisabled}}},[`${Oe}-item`]:{backgroundColor:ze.itemBg,border:`${ze.lineWidth}px ${ze.lineType} ${ze.colorBorder}`,[`&:hover:not(${Oe}-item-active)`]:{borderColor:ze.colorPrimary,backgroundColor:ze.itemBg,a:{color:ze.colorPrimary}},"&-active":{borderColor:ze.colorPrimary}}}}},k=ze=>{const{componentCls:Oe}=ze;return{[`${Oe}:not(${Oe}-disabled)`]:{[`${Oe}-item`]:Object.assign({},(0,ln.Qy)(ze)),[`${Oe}-jump-prev, ${Oe}-jump-next`]:{"&:focus-visible":Object.assign({[`${Oe}-item-link-icon`]:{opacity:1},[`${Oe}-item-ellipsis`]:{opacity:0}},(0,ln.oN)(ze))},[`${Oe}-prev, ${Oe}-next`]:{[`&:focus-visible ${Oe}-item-link`]:Object.assign({},(0,ln.oN)(ze))}}}};var j=(0,Dt.Z)("Pagination",ze=>{const Oe=(0,ui.TS)(ze,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:ze.marginXXS/2,paginationMiniQuickJumperInputWidth:ze.controlHeightLG*1.1,paginationItemPaddingInline:ze.marginXXS*1.5,paginationEllipsisLetterSpacing:ze.marginXXS/2,paginationSlashMarginInlineStart:ze.marginXXS,paginationSlashMarginInlineEnd:ze.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,yt.e5)(ze),(0,yt.TM)(ze));return[xe(Oe),k(Oe),ze.wireframe&&P(Oe)]},ze=>({itemBg:ze.colorBgContainer,itemSize:ze.controlHeight,itemSizeSM:ze.controlHeightSM,itemActiveBg:ze.colorBgContainer,itemLinkBg:ze.colorBgContainer,itemActiveColorDisabled:ze.colorTextDisabled,itemActiveBgDisabled:ze.controlItemBgActiveDisabled,itemInputBg:ze.colorBgContainer,miniOptionsSizeChangerTop:0})),X=function(ze,Oe){var mt={};for(var lt in ze)Object.prototype.hasOwnProperty.call(ze,lt)&&Oe.indexOf(lt)<0&&(mt[lt]=ze[lt]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,lt=Object.getOwnPropertySymbols(ze);Qe<lt.length;Qe++)Oe.indexOf(lt[Qe])<0&&Object.prototype.propertyIsEnumerable.call(ze,lt[Qe])&&(mt[lt[Qe]]=ze[lt[Qe]]);return mt},Re=ze=>{const{prefixCls:Oe,selectPrefixCls:mt,className:lt,rootClassName:Qe,style:Ct,size:nn,locale:Yt,selectComponentClass:Ot,responsive:on,showSizeChanger:hn}=ze,Ve=X(ze,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Pt}=(0,Xe.Z)(on),{getPrefixCls:Xt,direction:qt,pagination:He={}}=I.useContext(Tt.E_),Rn=Xt("pagination",Oe),[Cn,Gn]=j(Rn),Ci=hn!=null?hn:He.showSizeChanger,ci=I.useMemo(()=>{const U=I.createElement("span",{className:`${Rn}-item-ellipsis`},"\u2022\u2022\u2022"),mr=I.createElement("button",{className:`${Rn}-item-link`,type:"button",tabIndex:-1},qt==="rtl"?I.createElement(Pe.Z,null):I.createElement(ne.Z,null)),lr=I.createElement("button",{className:`${Rn}-item-link`,type:"button",tabIndex:-1},qt==="rtl"?I.createElement(ne.Z,null):I.createElement(Pe.Z,null)),_r=I.createElement("a",{className:`${Rn}-item-link`},I.createElement("div",{className:`${Rn}-item-container`},qt==="rtl"?I.createElement(ue.Z,{className:`${Rn}-item-link-icon`}):I.createElement(pe,{className:`${Rn}-item-link-icon`}),U)),Hr=I.createElement("a",{className:`${Rn}-item-link`},I.createElement("div",{className:`${Rn}-item-container`},qt==="rtl"?I.createElement(pe,{className:`${Rn}-item-link-icon`}):I.createElement(ue.Z,{className:`${Rn}-item-link-icon`}),U));return{prevIcon:mr,nextIcon:lr,jumpPrevIcon:_r,jumpNextIcon:Hr}},[qt,Rn]),[sn]=(0,se.Z)("Pagination",kt.Z),rn=Object.assign(Object.assign({},sn),Yt),cr=(0,wn.Z)(nn),yr=cr==="small"||!!(Pt&&!cr&&on),Zn=Xt("select",mt),Mr=rt()({[`${Rn}-mini`]:yr,[`${Rn}-rtl`]:qt==="rtl"},He==null?void 0:He.className,lt,Qe,Gn),rr=Object.assign(Object.assign({},He==null?void 0:He.style),Ct);return Cn(I.createElement(bt,Object.assign({},ci,Ve,{style:rr,prefixCls:Rn,selectPrefixCls:Zn,className:Mr,selectComponentClass:Ot||(yr?_t:jt),locale:rn,showSizeChanger:Ci})))},wt=Re},93948:function(Q,C,d){"use strict";d.d(C,{Z:function(){return hn}});var b=d(59301),I=d(29679),O=d(40001),z=d(19248),W=d(99267),_=d(92310),M=d.n(_),pe=d(2738),ue=d(36355),ne=d(92413),Pe=d(33708),ke=d(37061),rt={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Ue=function(){var Pt=(0,b.useRef)([]),Xt=(0,b.useRef)(null);return(0,b.useEffect)(function(){var qt=Date.now(),He=!1;Pt.current.forEach(function(Rn){if(Rn){He=!0;var Cn=Rn.style;Cn.transitionDuration=".3s, .3s, .3s, .06s",Xt.current&&qt-Xt.current<100&&(Cn.transitionDuration="0s, 0s")}}),He&&(Xt.current=Date.now())}),Pt.current},Ie=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],De=function(Pt){var Xt=(0,Pe.Z)((0,Pe.Z)({},rt),Pt),qt=Xt.className,He=Xt.percent,Rn=Xt.prefixCls,Cn=Xt.strokeColor,Gn=Xt.strokeLinecap,Ci=Xt.strokeWidth,ci=Xt.style,sn=Xt.trailColor,rn=Xt.trailWidth,cr=Xt.transition,yr=(0,ke.Z)(Xt,Ie);delete yr.gapPosition;var Zn=Array.isArray(He)?He:[He],Mr=Array.isArray(Cn)?Cn:[Cn],rr=Ue(),U=Ci/2,mr=100-Ci/2,lr="M ".concat(Gn==="round"?U:0,",").concat(U,`
|
|
|
L `).concat(Gn==="round"?mr:100,",").concat(U),_r="0 0 100 ".concat(Ci),Hr=0;return b.createElement("svg",(0,ne.Z)({className:M()("".concat(Rn,"-line"),qt),viewBox:_r,preserveAspectRatio:"none",style:ci},yr),b.createElement("path",{className:"".concat(Rn,"-line-trail"),d:lr,strokeLinecap:Gn,stroke:sn,strokeWidth:rn||Ci,fillOpacity:"0"}),Zn.map(function(uo,Tr){var Jr=1;switch(Gn){case"round":Jr=1-Ci/100;break;case"square":Jr=1-Ci/2/100;break;default:Jr=1;break}var fr={strokeDasharray:"".concat(uo*Jr,"px, 100px"),strokeDashoffset:"-".concat(Hr,"px"),transition:cr||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Xi=Mr[Tr]||Mr[Mr.length-1];return Hr+=uo,b.createElement("path",{key:Tr,className:"".concat(Rn,"-line-path"),d:lr,strokeLinecap:Gn,stroke:Xi,strokeWidth:Ci,fillOpacity:"0",ref:function(ht){rr[Tr]=ht},style:fr})}))},Fe=De,de=d(39559),me=d(33606),we=d(47273),ge=0,Te=(0,we.Z)();function ee(){var Ve;return Te?(Ve=ge,ge+=1):Ve="TEST_OR_SSR",Ve}var Ce=function(Ve){var Pt=b.useState(),Xt=(0,me.Z)(Pt,2),qt=Xt[0],He=Xt[1];return b.useEffect(function(){He("rc_progress_".concat(ee()))},[]),Ve||qt},Ne=function(Pt){var Xt=Pt.bg,qt=Pt.children;return b.createElement("div",{style:{width:"100%",height:"100%",background:Xt}},qt)};function Le(Ve,Pt){return Object.keys(Ve).map(function(Xt){var qt=parseFloat(Xt),He="".concat(Math.floor(qt*Pt),"%");return"".concat(Ve[Xt]," ").concat(He)})}var Ke=b.forwardRef(function(Ve,Pt){var Xt=Ve.prefixCls,qt=Ve.color,He=Ve.gradientId,Rn=Ve.radius,Cn=Ve.style,Gn=Ve.ptg,Ci=Ve.strokeLinecap,ci=Ve.strokeWidth,sn=Ve.size,rn=Ve.gapDegree,cr=qt&&(0,de.Z)(qt)==="object",yr=cr?"#FFF":void 0,Zn=sn/2,Mr=b.createElement("circle",{className:"".concat(Xt,"-circle-path"),r:Rn,cx:Zn,cy:Zn,stroke:yr,strokeLinecap:Ci,strokeWidth:ci,opacity:Gn===0?0:1,style:Cn,ref:Pt});if(!cr)return Mr;var rr="".concat(He,"-conic"),U=rn?"".concat(180+rn/2,"deg"):"0deg",mr=Le(qt,(360-rn)/360),lr=Le(qt,1),_r="conic-gradient(from ".concat(U,", ").concat(mr.join(", "),")"),Hr="linear-gradient(to ".concat(rn?"bottom":"top",", ").concat(lr.join(", "),")");return b.createElement(b.Fragment,null,b.createElement("mask",{id:rr},Mr),b.createElement("foreignObject",{x:0,y:0,width:sn,height:sn,mask:"url(#".concat(rr,")")},b.createElement(Ne,{bg:Hr},b.createElement(Ne,{bg:_r}))))}),nt=Ke,ie=100,at=function(Pt,Xt,qt,He,Rn,Cn,Gn,Ci,ci,sn){var rn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,cr=qt/100*360*((360-Cn)/360),yr=Cn===0?0:{bottom:0,top:180,left:90,right:-90}[Gn],Zn=(100-He)/100*Xt;ci==="round"&&He!==100&&(Zn+=sn/2,Zn>=Xt&&(Zn=Xt-.01));var Mr=ie/2;return{stroke:typeof Ci=="string"?Ci:void 0,strokeDasharray:"".concat(Xt,"px ").concat(Pt),strokeDashoffset:Zn+rn,transform:"rotate(".concat(Rn+cr+yr,"deg)"),transformOrigin:"".concat(Mr,"px ").concat(Mr,"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}},Ze=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Bt(Ve){var Pt=Ve!=null?Ve:[];return Array.isArray(Pt)?Pt:[Pt]}var bt=function(Pt){var Xt=(0,Pe.Z)((0,Pe.Z)({},rt),Pt),qt=Xt.id,He=Xt.prefixCls,Rn=Xt.steps,Cn=Xt.strokeWidth,Gn=Xt.trailWidth,Ci=Xt.gapDegree,ci=Ci===void 0?0:Ci,sn=Xt.gapPosition,rn=Xt.trailColor,cr=Xt.strokeLinecap,yr=Xt.style,Zn=Xt.className,Mr=Xt.strokeColor,rr=Xt.percent,U=(0,ke.Z)(Xt,Ze),mr=ie/2,lr=Ce(qt),_r="".concat(lr,"-gradient"),Hr=mr-Cn/2,uo=Math.PI*2*Hr,Tr=ci>0?90+ci/2:-90,Jr=uo*((360-ci)/360),fr=(0,de.Z)(Rn)==="object"?Rn:{count:Rn,space:2},Xi=fr.count,di=fr.space,ht=Bt(rr),_n=Bt(Mr),Hn=_n.find(function(pt){return pt&&(0,de.Z)(pt)==="object"}),gt=Hn&&(0,de.Z)(Hn)==="object",Ge=gt?"butt":cr,fn=at(uo,Jr,0,100,Tr,ci,sn,rn,Ge,Cn),Sn=Ue(),ti=function(){var gn=0;return ht.map(function(tn,xi){var ft=_n[xi]||_n[_n.length-1],Fn=at(uo,Jr,gn,tn,Tr,ci,sn,ft,Ge,Cn);return gn+=tn,b.createElement(nt,{key:xi,color:ft,ptg:tn,radius:Hr,prefixCls:He,gradientId:_r,style:Fn,strokeLinecap:Ge,strokeWidth:Cn,gapDegree:ci,ref:function(qe){Sn[xi]=qe},size:ie})}).reverse()},Kn=function(){var gn=Math.round(Xi*(ht[0]/100)),tn=100/Xi,xi=0;return new Array(Xi).fill(null).map(function(ft,Fn){var Mt=Fn<=gn-1?_n[0]:rn,qe=Mt&&(0,de.Z)(Mt)==="object"?"url(#".concat(_r,")"):void 0,D=at(uo,Jr,xi,tn,Tr,ci,sn,Mt,"butt",Cn,di);return xi+=(Jr-D.strokeDashoffset+di)*100/Jr,b.createElement("circle",{key:Fn,className:"".concat(He,"-circle-path"),r:Hr,cx:mr,cy:mr,stroke:qe,strokeWidth:Cn,opacity:1,style:D,ref:function(dn){Sn[Fn]=dn}})})};return b.createElement("svg",(0,ne.Z)({className:M()("".concat(He,"-circle"),Zn),viewBox:"0 0 ".concat(ie," ").concat(ie),style:yr,id:qt,role:"presentation"},U),!Xi&&b.createElement("circle",{className:"".concat(He,"-circle-trail"),r:Hr,cx:mr,cy:mr,stroke:rn,strokeLinecap:Ge,strokeWidth:Gn||Cn,style:fn}),Xi?Kn():ti())},kt=bt,Tt={Line:Fe,Circle:kt},wn=d(6848),Xe=d(93398);function se(Ve){return!Ve||Ve<0?0:Ve>100?100:Ve}function le(Ve){let{success:Pt,successPercent:Xt}=Ve,qt=Xt;return Pt&&"progress"in Pt&&(qt=Pt.progress),Pt&&"percent"in Pt&&(qt=Pt.percent),qt}const _t=Ve=>{let{percent:Pt,success:Xt,successPercent:qt}=Ve;const He=se(le({success:Xt,successPercent:qt}));return[He,se(se(Pt)-He)]},jt=Ve=>{let{success:Pt={},strokeColor:Xt}=Ve;const{strokeColor:qt}=Pt;return[qt||Xe.presetPrimaryColors.green,Xt||null]},yt=(Ve,Pt,Xt)=>{var qt,He,Rn,Cn;let Gn=-1,Ci=-1;if(Pt==="step"){const ci=Xt.steps,sn=Xt.strokeWidth;typeof Ve=="string"||typeof Ve=="undefined"?(Gn=Ve==="small"?2:14,Ci=sn!=null?sn:8):typeof Ve=="number"?[Gn,Ci]=[Ve,Ve]:[Gn=14,Ci=8]=Ve,Gn*=ci}else if(Pt==="line"){const ci=Xt==null?void 0:Xt.strokeWidth;typeof Ve=="string"||typeof Ve=="undefined"?Ci=ci||(Ve==="small"?6:8):typeof Ve=="number"?[Gn,Ci]=[Ve,Ve]:[Gn=-1,Ci=8]=Ve}else(Pt==="circle"||Pt==="dashboard")&&(typeof Ve=="string"||typeof Ve=="undefined"?[Gn,Ci]=Ve==="small"?[60,60]:[120,120]:typeof Ve=="number"?[Gn,Ci]=[Ve,Ve]:(Gn=(He=(qt=Ve[0])!==null&&qt!==void 0?qt:Ve[1])!==null&&He!==void 0?He:120,Ci=(Cn=(Rn=Ve[0])!==null&&Rn!==void 0?Rn:Ve[1])!==null&&Cn!==void 0?Cn:120));return[Gn,Ci]},ln=3,Dt=Ve=>ln/Ve*100;var On=Ve=>{const{prefixCls:Pt,trailColor:Xt=null,strokeLinecap:qt="round",gapPosition:He,gapDegree:Rn,width:Cn=120,type:Gn,children:Ci,success:ci,size:sn=Cn}=Ve,[rn,cr]=yt(sn,"circle");let{strokeWidth:yr}=Ve;yr===void 0&&(yr=Math.max(Dt(rn),6));const Zn={width:rn,height:cr,fontSize:rn*.15+6},Mr=b.useMemo(()=>{if(Rn||Rn===0)return Rn;if(Gn==="dashboard")return 75},[Rn,Gn]),rr=He||Gn==="dashboard"&&"bottom"||void 0,U=Object.prototype.toString.call(Ve.strokeColor)==="[object Object]",mr=jt({success:ci,strokeColor:Ve.strokeColor}),lr=M()(`${Pt}-inner`,{[`${Pt}-circle-gradient`]:U}),_r=b.createElement(kt,{percent:_t(Ve),strokeWidth:yr,trailWidth:yr,strokeColor:mr,strokeLinecap:qt,trailColor:Xt,prefixCls:Pt,gapDegree:Mr,gapPosition:rr});return b.createElement("div",{className:lr,style:Zn},rn<=20?b.createElement(wn.Z,{title:Ci},b.createElement("span",null,_r)):b.createElement(b.Fragment,null,_r,Ci))},ri=function(Ve,Pt){var Xt={};for(var qt in Ve)Object.prototype.hasOwnProperty.call(Ve,qt)&&Pt.indexOf(qt)<0&&(Xt[qt]=Ve[qt]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,qt=Object.getOwnPropertySymbols(Ve);He<qt.length;He++)Pt.indexOf(qt[He])<0&&Object.prototype.propertyIsEnumerable.call(Ve,qt[He])&&(Xt[qt[He]]=Ve[qt[He]]);return Xt};const Xn=Ve=>{let Pt=[];return Object.keys(Ve).forEach(Xt=>{const qt=parseFloat(Xt.replace(/%/g,""));isNaN(qt)||Pt.push({key:qt,value:Ve[Xt]})}),Pt=Pt.sort((Xt,qt)=>Xt.key-qt.key),Pt.map(Xt=>{let{key:qt,value:He}=Xt;return`${He} ${qt}%`}).join(", ")},Tn=(Ve,Pt)=>{const{from:Xt=Xe.presetPrimaryColors.blue,to:qt=Xe.presetPrimaryColors.blue,direction:He=Pt==="rtl"?"to left":"to right"}=Ve,Rn=ri(Ve,["from","to","direction"]);if(Object.keys(Rn).length!==0){const Cn=Xn(Rn);return{backgroundImage:`linear-gradient(${He}, ${Cn})`}}return{backgroundImage:`linear-gradient(${He}, ${Xt}, ${qt})`}};var xe=Ve=>{const{prefixCls:Pt,direction:Xt,percent:qt,size:He,strokeWidth:Rn,strokeColor:Cn,strokeLinecap:Gn="round",children:Ci,trailColor:ci=null,success:sn}=Ve,rn=Cn&&typeof Cn!="string"?Tn(Cn,Xt):{backgroundColor:Cn},cr=Gn==="square"||Gn==="butt"?0:void 0,yr={backgroundColor:ci||void 0,borderRadius:cr},Zn=He!=null?He:[-1,Rn||(He==="small"?6:8)],[Mr,rr]=yt(Zn,"line",{strokeWidth:Rn}),U=Object.assign({width:`${se(qt)}%`,height:rr,borderRadius:cr},rn),mr=le(Ve),lr={width:`${se(mr)}%`,height:rr,borderRadius:cr,backgroundColor:sn==null?void 0:sn.strokeColor},_r={width:Mr<0?"100%":Mr,height:rr};return b.createElement(b.Fragment,null,b.createElement("div",{className:`${Pt}-outer`,style:_r},b.createElement("div",{className:`${Pt}-inner`,style:yr},b.createElement("div",{className:`${Pt}-bg`,style:U}),mr!==void 0?b.createElement("div",{className:`${Pt}-success-bg`,style:lr}):null)),Ci)},k=Ve=>{const{size:Pt,steps:Xt,percent:qt=0,strokeWidth:He=8,strokeColor:Rn,trailColor:Cn=null,prefixCls:Gn,children:Ci}=Ve,ci=Math.round(Xt*(qt/100)),sn=Pt==="small"?2:14,rn=Pt!=null?Pt:[sn,He],[cr,yr]=yt(rn,"step",{steps:Xt,strokeWidth:He}),Zn=cr/Xt,Mr=new Array(Xt);for(let rr=0;rr<Xt;rr++){const U=Array.isArray(Rn)?Rn[rr]:Rn;Mr[rr]=b.createElement("div",{key:rr,className:M()(`${Gn}-steps-item`,{[`${Gn}-steps-item-active`]:rr<=ci-1}),style:{backgroundColor:rr<=ci-1?U:Cn,width:Zn,height:yr}})}return b.createElement("div",{className:`${Gn}-steps-outer`},Mr,Ci)},j=d(93083),X=d(17313),N=d(83116),Re=d(37613);const wt=Ve=>{const Pt=Ve?"100%":"-100%";return new j.Keyframes(`antProgress${Ve?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Pt}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Pt}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},ze=Ve=>{const{componentCls:Pt,iconCls:Xt}=Ve;return{[Pt]:Object.assign(Object.assign({},(0,X.Wf)(Ve)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Ve.fontSize,marginInlineEnd:Ve.marginXS,marginBottom:Ve.marginXS},[`${Pt}-outer`]:{display:"inline-block",width:"100%"},[`&${Pt}-show-info`]:{[`${Pt}-outer`]:{marginInlineEnd:`calc(-2em - ${Ve.marginXS}px)`,paddingInlineEnd:`calc(2em + ${Ve.paddingXS}px)`}},[`${Pt}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:Ve.remainingColor,borderRadius:Ve.lineBorderRadius},[`${Pt}-inner:not(${Pt}-circle-gradient)`]:{[`${Pt}-circle-path`]:{stroke:Ve.defaultColor}},[`${Pt}-success-bg, ${Pt}-bg`]:{position:"relative",backgroundColor:Ve.defaultColor,borderRadius:Ve.lineBorderRadius,transition:`all ${Ve.motionDurationSlow} ${Ve.motionEaseInOutCirc}`},[`${Pt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Ve.colorSuccess},[`${Pt}-text`]:{display:"inline-block",width:"2em",marginInlineStart:Ve.marginXS,color:Ve.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Xt]:{fontSize:Ve.fontSize}},[`&${Pt}-status-active`]:{[`${Pt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Ve.colorBgContainer,borderRadius:Ve.lineBorderRadius,opacity:0,animationName:wt(),animationDuration:Ve.progressActiveMotionDuration,animationTimingFunction:Ve.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Pt}-rtl${Pt}-status-active`]:{[`${Pt}-bg::before`]:{animationName:wt(!0)}},[`&${Pt}-status-exception`]:{[`${Pt}-bg`]:{backgroundColor:Ve.colorError},[`${Pt}-text`]:{color:Ve.colorError}},[`&${Pt}-status-exception ${Pt}-inner:not(${Pt}-circle-gradient)`]:{[`${Pt}-circle-path`]:{stroke:Ve.colorError}},[`&${Pt}-status-success`]:{[`${Pt}-bg`]:{backgroundColor:Ve.colorSuccess},[`${Pt}-text`]:{color:Ve.colorSuccess}},[`&${Pt}-status-success ${Pt}-inner:not(${Pt}-circle-gradient)`]:{[`${Pt}-circle-path`]:{stroke:Ve.colorSuccess}}})}},Oe=Ve=>{const{componentCls:Pt,iconCls:Xt}=Ve;return{[Pt]:{[`${Pt}-circle-trail`]:{stroke:Ve.remainingColor},[`&${Pt}-circle ${Pt}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Pt}-circle ${Pt}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Ve.circleTextColor,fontSize:Ve.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Xt]:{fontSize:`${Ve.fontSize/Ve.fontSizeSM}em`}},[`${Pt}-circle&-status-exception`]:{[`${Pt}-text`]:{color:Ve.colorError}},[`${Pt}-circle&-status-success`]:{[`${Pt}-text`]:{color:Ve.colorSuccess}}},[`${Pt}-inline-circle`]:{lineHeight:1,[`${Pt}-inner`]:{verticalAlign:"bottom"}}}},mt=Ve=>{const{componentCls:Pt}=Ve;return{[Pt]:{[`${Pt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Ve.progressStepMinWidth,marginInlineEnd:Ve.progressStepMarginInlineEnd,backgroundColor:Ve.remainingColor,transition:`all ${Ve.motionDurationSlow}`,"&-active":{backgroundColor:Ve.defaultColor}}}}}},lt=Ve=>{const{componentCls:Pt,iconCls:Xt}=Ve;return{[Pt]:{[`${Pt}-small&-line, ${Pt}-small&-line ${Pt}-text ${Xt}`]:{fontSize:Ve.fontSizeSM}}}};var Qe=(0,N.Z)("Progress",Ve=>{const Pt=Ve.marginXXS/2,Xt=(0,Re.TS)(Ve,{progressStepMarginInlineEnd:Pt,progressStepMinWidth:Pt,progressActiveMotionDuration:"2.4s"});return[ze(Xt),Oe(Xt),mt(Xt),lt(Xt)]},Ve=>({circleTextColor:Ve.colorText,defaultColor:Ve.colorInfo,remainingColor:Ve.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Ct=function(Ve,Pt){var Xt={};for(var qt in Ve)Object.prototype.hasOwnProperty.call(Ve,qt)&&Pt.indexOf(qt)<0&&(Xt[qt]=Ve[qt]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,qt=Object.getOwnPropertySymbols(Ve);He<qt.length;He++)Pt.indexOf(qt[He])<0&&Object.prototype.propertyIsEnumerable.call(Ve,qt[He])&&(Xt[qt[He]]=Ve[qt[He]]);return Xt};const nn=null,Yt=["normal","exception","active","success"];var on=b.forwardRef((Ve,Pt)=>{const{prefixCls:Xt,className:qt,rootClassName:He,steps:Rn,strokeColor:Cn,percent:Gn=0,size:Ci="default",showInfo:ci=!0,type:sn="line",status:rn,format:cr,style:yr}=Ve,Zn=Ct(Ve,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Mr=b.useMemo(()=>{var ht,_n;const Hn=le(Ve);return parseInt(Hn!==void 0?(ht=Hn!=null?Hn:0)===null||ht===void 0?void 0:ht.toString():(_n=Gn!=null?Gn:0)===null||_n===void 0?void 0:_n.toString(),10)},[Gn,Ve.success,Ve.successPercent]),rr=b.useMemo(()=>!Yt.includes(rn)&&Mr>=100?"success":rn||"normal",[rn,Mr]),{getPrefixCls:U,direction:mr,progress:lr}=b.useContext(ue.E_),_r=U("progress",Xt),[Hr,uo]=Qe(_r),Tr=b.useMemo(()=>{if(!ci)return null;const ht=le(Ve);let _n;const Hn=cr||(Ge=>`${Ge}%`),gt=sn==="line";return cr||rr!=="exception"&&rr!=="success"?_n=Hn(se(Gn),se(ht)):rr==="exception"?_n=gt?b.createElement(z.Z,null):b.createElement(W.Z,null):rr==="success"&&(_n=gt?b.createElement(I.Z,null):b.createElement(O.Z,null)),b.createElement("span",{className:`${_r}-text`,title:typeof _n=="string"?_n:void 0},_n)},[ci,Gn,Mr,rr,sn,_r,cr]),Jr=Array.isArray(Cn)?Cn[0]:Cn,fr=typeof Cn=="string"||Array.isArray(Cn)?Cn:void 0;let Xi;sn==="line"?Xi=Rn?b.createElement(k,Object.assign({},Ve,{strokeColor:fr,prefixCls:_r,steps:Rn}),Tr):b.createElement(xe,Object.assign({},Ve,{strokeColor:Jr,prefixCls:_r,direction:mr}),Tr):(sn==="circle"||sn==="dashboard")&&(Xi=b.createElement(On,Object.assign({},Ve,{strokeColor:Jr,prefixCls:_r,progressStatus:rr}),Tr));const di=M()(_r,`${_r}-status-${rr}`,`${_r}-${sn==="dashboard"&&"circle"||Rn&&"steps"||sn}`,{[`${_r}-inline-circle`]:sn==="circle"&&yt(Ci,"circle")[0]<=20,[`${_r}-show-info`]:ci,[`${_r}-${Ci}`]:typeof Ci=="string",[`${_r}-rtl`]:mr==="rtl"},lr==null?void 0:lr.className,qt,He,uo);return Hr(b.createElement("div",Object.assign({ref:Pt,style:Object.assign(Object.assign({},lr==null?void 0:lr.style),yr),className:di,role:"progressbar","aria-valuenow":Mr},(0,pe.Z)(Zn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Xi))}),hn=on},57809:function(Q,C,d){"use strict";var b=d(92310),I=d.n(b),O=d(77861),z=d(2738),W=d(59301),_=d(53487),M=d(62892),pe=d(19080),ue=d(36355),ne=d(1684),Pe=d(93891),ke=d(19716),rt=d(32441),Ue=d(33234),Ie=d(14154),De=d(58582),Fe=d(84443),de=d(66339),me=function(Ce,Ne){var Le={};for(var Ke in Ce)Object.prototype.hasOwnProperty.call(Ce,Ke)&&Ne.indexOf(Ke)<0&&(Le[Ke]=Ce[Ke]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Ke=Object.getOwnPropertySymbols(Ce);nt<Ke.length;nt++)Ne.indexOf(Ke[nt])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Ke[nt])&&(Le[Ke[nt]]=Ce[Ke[nt]]);return Le};const we="SECRET_COMBOBOX_MODE_DO_NOT_USE",ge=(Ce,Ne)=>{var Le,{prefixCls:Ke,bordered:nt=!0,className:ie,rootClassName:at,getPopupContainer:Ze,popupClassName:Bt,dropdownClassName:bt,listHeight:kt=256,placement:Tt,listItemHeight:wn=24,size:Xe,disabled:se,notFoundContent:le,status:_t,builtinPlacements:jt,dropdownMatchSelectWidth:yt,popupMatchSelectWidth:ln,direction:Dt,style:ui,allowClear:On}=Ce,ri=me(Ce,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:Xn,getPrefixCls:Tn,renderEmpty:Nn,direction:xe,virtual:P,popupMatchSelectWidth:k,popupOverflow:j,select:X}=W.useContext(ue.E_),N=Tn("select",Ke),Re=Tn(),wt=Dt!=null?Dt:xe,{compactSize:ze,compactItemClassnames:Oe}=(0,Ue.ri)(N,wt),[mt,lt]=(0,Ie.Z)(N),Qe=W.useMemo(()=>{const{mode:rr}=ri;if(rr!=="combobox")return rr===we?"combobox":rr},[ri.mode]),Ct=Qe==="multiple"||Qe==="tags",nn=(0,Fe.Z)(ri.suffixIcon,ri.showArrow),Yt=(Le=ln!=null?ln:yt)!==null&&Le!==void 0?Le:k,{status:Ot,hasFeedback:on,isFormItemInput:hn,feedbackIcon:Ve}=W.useContext(rt.aM),Pt=(0,pe.F)(Ot,_t);let Xt;le!==void 0?Xt=le:Qe==="combobox"?Xt=null:Xt=(Nn==null?void 0:Nn("Select"))||W.createElement(Pe.Z,{componentName:"Select"});const{suffixIcon:qt,itemIcon:He,removeIcon:Rn,clearIcon:Cn}=(0,de.Z)(Object.assign(Object.assign({},ri),{multiple:Ct,hasFeedback:on,feedbackIcon:Ve,showSuffixIcon:nn,prefixCls:N,showArrow:ri.showArrow,componentName:"Select"})),Gn=On===!0?{clearIcon:Cn}:On,Ci=(0,z.Z)(ri,["suffixIcon","itemIcon"]),ci=I()(Bt||bt,{[`${N}-dropdown-${wt}`]:wt==="rtl"},at,lt),sn=(0,ke.Z)(rr=>{var U;return(U=Xe!=null?Xe:ze)!==null&&U!==void 0?U:rr}),rn=W.useContext(ne.Z),cr=se!=null?se:rn,yr=I()({[`${N}-lg`]:sn==="large",[`${N}-sm`]:sn==="small",[`${N}-rtl`]:wt==="rtl",[`${N}-borderless`]:!nt,[`${N}-in-form-item`]:hn},(0,pe.Z)(N,Pt,on),Oe,X==null?void 0:X.className,ie,at,lt),Zn=W.useMemo(()=>Tt!==void 0?Tt:wt==="rtl"?"bottomRight":"bottomLeft",[Tt,wt]),Mr=(0,De.Z)(jt,j);return mt(W.createElement(O.ZP,Object.assign({ref:Ne,virtual:P,showSearch:X==null?void 0:X.showSearch},Ci,{style:Object.assign(Object.assign({},X==null?void 0:X.style),ui),dropdownMatchSelectWidth:Yt,builtinPlacements:Mr,transitionName:(0,M.m)(Re,"slide-up",ri.transitionName),listHeight:kt,listItemHeight:wn,mode:Qe,prefixCls:N,placement:Zn,direction:wt,suffixIcon:qt,menuItemSelectedIcon:He,removeIcon:Rn,allowClear:Gn,notFoundContent:Xt,className:yr,getPopupContainer:Ze||Xn,dropdownClassName:ci,disabled:cr})))},Te=W.forwardRef(ge),ee=(0,_.Z)(Te);Te.SECRET_COMBOBOX_MODE_DO_NOT_USE=we,Te.Option=O.Wx,Te.OptGroup=O.Xo,Te._InternalPanelDoNotUseOrYouWillBeFired=ee,C.default=Te},14154:function(Q,C,d){"use strict";d.d(C,{Z:function(){return Te}});var b=d(17313),I=d(74207),O=d(37613),z=d(83116),W=d(13826),_=d(92899);const M=ee=>{const{optionHeight:Ce,optionFontSize:Ne,optionLineHeight:Le,optionPadding:Ke}=ee;return{position:"relative",display:"block",minHeight:Ce,padding:Ke,color:ee.colorText,fontWeight:"normal",fontSize:Ne,lineHeight:Le,boxSizing:"border-box"}};var ue=ee=>{const{antCls:Ce,componentCls:Ne}=ee,Le=`${Ne}-item`,Ke=`&${Ce}-slide-up-enter${Ce}-slide-up-enter-active`,nt=`&${Ce}-slide-up-appear${Ce}-slide-up-appear-active`,ie=`&${Ce}-slide-up-leave${Ce}-slide-up-leave-active`,at=`${Ne}-dropdown-placement-`;return[{[`${Ne}-dropdown`]:Object.assign(Object.assign({},(0,b.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,[`
|
|
|
${Ke}${at}bottomLeft,
|
|
|
${nt}${at}bottomLeft
|
|
|
`]:{animationName:W.fJ},[`
|
|
|
${Ke}${at}topLeft,
|
|
|
${nt}${at}topLeft,
|
|
|
${Ke}${at}topRight,
|
|
|
${nt}${at}topRight
|
|
|
`]:{animationName:W.Qt},[`${ie}${at}bottomLeft`]:{animationName:W.Uw},[`
|
|
|
${ie}${at}topLeft,
|
|
|
${ie}${at}topRight
|
|
|
`]:{animationName:W.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"},b.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,W.oN)(ee,"slide-up"),(0,W.oN)(ee,"slide-down"),(0,_.Fm)(ee,"move-up"),(0,_.Fm)(ee,"move-down")]};const ne=2,Pe=ee=>{let{controlHeightSM:Ce,controlHeight:Ne,lineWidth:Le}=ee;const Ke=(Ne-Ce)/2-Le,nt=Math.ceil(Ke/2);return[Ke,nt]};function ke(ee,Ce){const{componentCls:Ne,iconCls:Le}=ee,Ke=`${Ne}-selection-overflow`,nt=ee.multipleSelectItemHeight,[ie]=Pe(ee),at=Ce?`${Ne}-${Ce}`:"";return{[`${Ne}-multiple${at}`]:{fontSize:ee.fontSize,[Ke]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${Ne}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${ie-ne}px ${ne*2}px`,borderRadius:ee.borderRadius,[`${Ne}-show-search&`]:{cursor:"text"},[`${Ne}-disabled&`]:{background:ee.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${ne}px 0`,lineHeight:`${nt}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${Ne}-show-arrow ${Ne}-selector,
|
|
|
&${Ne}-allow-clear ${Ne}-selector
|
|
|
`]:{paddingInlineEnd:ee.fontSizeIcon+ee.controlPaddingHorizontal},[`${Ne}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:nt,marginTop:ne,marginBottom:ne,lineHeight:`${nt-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:ne*2,paddingInlineStart:ee.paddingXS,paddingInlineEnd:ee.paddingXS/2,[`${Ne}-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,b.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}})},[`${Ke}-item + ${Ke}-item`]:{[`${Ne}-selection-search`]:{marginInlineStart:0}},[`${Ne}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:ee.inputPaddingHorizontalBase-ie,"\n &-input,\n &-mirror\n ":{height:nt,fontFamily:ee.fontFamily,lineHeight:`${nt}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"}},[`${Ne}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:ee.inputPaddingHorizontalBase,insetInlineEnd:ee.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${ee.motionDurationSlow}`}}}}var Ue=ee=>{const{componentCls:Ce}=ee,Ne=(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}),[,Ke]=Pe(ee);return[ke(ee),ke(Ne,"sm"),{[`${Ce}-multiple${Ce}-sm`]:{[`${Ce}-selection-placeholder`]:{insetInline:ee.controlPaddingHorizontalSM-ee.lineWidth},[`${Ce}-selection-search`]:{marginInlineStart:Ke}}},ke(Le,"lg")]};function Ie(ee,Ce){const{componentCls:Ne,inputPaddingHorizontalBase:Le,borderRadius:Ke}=ee,nt=ee.controlHeight-ee.lineWidth*2,ie=Math.ceil(ee.fontSize*1.25),at=Ce?`${Ne}-${Ce}`:"";return{[`${Ne}-single${at}`]:{fontSize:ee.fontSize,[`${Ne}-selector`]:Object.assign(Object.assign({},(0,b.Wf)(ee)),{display:"flex",borderRadius:Ke,[`${Ne}-selection-search`]:{position:"absolute",top:0,insetInlineStart:Le,insetInlineEnd:Le,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${Ne}-selection-item,
|
|
|
${Ne}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${nt}px`,transition:`all ${ee.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${nt}px`}},[`${Ne}-selection-item`]:{position:"relative",userSelect:"none"},[`${Ne}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Ne}-selection-item:after`,`${Ne}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${Ne}-show-arrow ${Ne}-selection-item,
|
|
|
&${Ne}-show-arrow ${Ne}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:ie},[`&${Ne}-open ${Ne}-selection-item`]:{color:ee.colorTextPlaceholder},[`&:not(${Ne}-customize-input)`]:{[`${Ne}-selector`]:{width:"100%",height:ee.controlHeight,padding:`0 ${Le}px`,[`${Ne}-selection-search-input`]:{height:nt},"&:after":{lineHeight:`${nt}px`}}},[`&${Ne}-customize-input`]:{[`${Ne}-selector`]:{"&:after":{display:"none"},[`${Ne}-selection-search`]:{position:"static",width:"100%"},[`${Ne}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Le}px`,"&:after":{display:"none"}}}}}}}function De(ee){const{componentCls:Ce}=ee,Ne=ee.controlPaddingHorizontalSM-ee.lineWidth;return[Ie(ee),Ie((0,O.TS)(ee,{controlHeight:ee.controlHeightSM,borderRadius:ee.borderRadiusSM}),"sm"),{[`${Ce}-single${Ce}-sm`]:{[`&:not(${Ce}-customize-input)`]:{[`${Ce}-selection-search`]:{insetInlineStart:Ne,insetInlineEnd:Ne},[`${Ce}-selector`]:{padding:`0 ${Ne}px`},[`&${Ce}-show-arrow ${Ce}-selection-search`]:{insetInlineEnd:Ne+ee.fontSize*1.5},[`
|
|
|
&${Ce}-show-arrow ${Ce}-selection-item,
|
|
|
&${Ce}-show-arrow ${Ce}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:ee.fontSize*1.5}}}},Ie((0,O.TS)(ee,{controlHeight:ee.singleItemHeightLG,fontSize:ee.fontSizeLG,borderRadius:ee.borderRadiusLG}),"lg")]}const Fe=ee=>{const{componentCls:Ce,selectorBg:Ne}=ee;return{position:"relative",backgroundColor:Ne,border:`${ee.lineWidth}px ${ee.lineType} ${ee.colorBorder}`,transition:`all ${ee.motionDurationMid} ${ee.motionEaseInOut}`,input:{cursor:"pointer"},[`${Ce}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Ce}-disabled&`]:{color:ee.colorTextDisabled,background:ee.colorBgContainerDisabled,cursor:"not-allowed",[`${Ce}-multiple&`]:{background:ee.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},de=function(ee,Ce){let Ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:Le,borderHoverColor:Ke,outlineColor:nt,antCls:ie}=Ce,at=Ne?{[`${Le}-selector`]:{borderColor:Ke}}:{};return{[ee]:{[`&:not(${Le}-disabled):not(${Le}-customize-input):not(${ie}-pagination-size-changer)`]:Object.assign(Object.assign({},at),{[`${Le}-focused& ${Le}-selector`]:{borderColor:Ke,boxShadow:`0 0 0 ${Ce.controlOutlineWidth}px ${nt}`,outline:0},[`&:hover ${Le}-selector`]:{borderColor:Ke}})}}},me=ee=>{const{componentCls:Ce}=ee;return{[`${Ce}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},we=ee=>{const{componentCls:Ce,inputPaddingHorizontalBase:Ne,iconCls:Le}=ee;return{[Ce]:Object.assign(Object.assign({},(0,b.Wf)(ee)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Ce}-customize-input) ${Ce}-selector`]:Object.assign(Object.assign({},Fe(ee)),me(ee)),[`${Ce}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},b.vS),[`${Ce}-selection-placeholder`]:Object.assign(Object.assign({},b.vS),{flex:1,color:ee.colorTextPlaceholder,pointerEvents:"none"}),[`${Ce}-arrow`]:Object.assign(Object.assign({},(0,b.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ne,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(${Ce}-suffix)`]:{pointerEvents:"auto"}},[`${Ce}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Ce}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ne,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":{[`${Ce}-clear`]:{opacity:1}}}),[`${Ce}-has-feedback`]:{[`${Ce}-clear`]:{insetInlineEnd:Ne+ee.fontSize+ee.paddingXS}}}},ge=ee=>{const{componentCls:Ce}=ee;return[{[Ce]:{[`&-borderless ${Ce}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Ce}-in-form-item`]:{width:"100%"}}},we(ee),De(ee),Ue(ee),ue(ee),{[`${Ce}-rtl`]:{direction:"rtl"}},de(Ce,(0,O.TS)(ee,{borderHoverColor:ee.colorPrimaryHover,outlineColor:ee.controlOutline})),de(`${Ce}-status-error`,(0,O.TS)(ee,{borderHoverColor:ee.colorErrorHover,outlineColor:ee.colorErrorOutline}),!0),de(`${Ce}-status-warning`,(0,O.TS)(ee,{borderHoverColor:ee.colorWarningHover,outlineColor:ee.colorWarningOutline}),!0),(0,I.c)(ee,{borderElCls:`${Ce}-selector`,focusElCls:`${Ce}-focused`})]};var Te=(0,z.Z)("Select",(ee,Ce)=>{let{rootPrefixCls:Ne}=Ce;const Le=(0,O.TS)(ee,{rootPrefixCls:Ne,inputPaddingHorizontalBase:ee.paddingSM-1,multipleSelectItemHeight:ee.multipleItemHeight});return[ge(Le)]},ee=>{const{fontSize:Ce,lineHeight:Ne,controlHeight:Le,controlPaddingHorizontal:Ke,zIndexPopupBase:nt,colorText:ie,fontWeightStrong:at,controlItemBgActive:Ze,controlItemBgHover:Bt,colorBgContainer:bt,colorFillSecondary:kt,controlHeightLG:Tt,controlHeightSM:wn,colorBgContainerDisabled:Xe,colorTextDisabled:se}=ee;return{zIndexPopup:nt+50,optionSelectedColor:ie,optionSelectedFontWeight:at,optionSelectedBg:Ze,optionActiveBg:Bt,optionPadding:`${(Le-Ce*Ne)/2}px ${Ke}px`,optionFontSize:Ce,optionLineHeight:Ne,optionHeight:Le,selectorBg:bt,clearBg:bt,singleItemHeightLG:Tt,multipleItemBg:kt,multipleItemBorderColor:"transparent",multipleItemHeight:wn,multipleItemHeightLG:Le,multipleSelectorBgDisabled:Xe,multipleItemColorDisabled:se,multipleItemBorderColorDisabled:"transparent"}})},58582:function(Q,C,d){"use strict";d.d(C,{Z:function(){return I}});const b=O=>{const W={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:O==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},W),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},W),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},W),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},W),{points:["br","tr"],offset:[0,-4]})}};function I(O,z){return O||b(z)}},84443:function(Q,C,d){"use strict";d.d(C,{Z:function(){return b}});function b(I,O){return O!==void 0?O:I!==null}},66339:function(Q,C,d){"use strict";d.d(C,{Z:function(){return pe}});var b=d(40001),I=d(19248),O=d(99267),z=d(84105),W=d(58617),_=d(47472),M=d(59301);function pe(ue){let{suffixIcon:ne,clearIcon:Pe,menuItemSelectedIcon:ke,removeIcon:rt,loading:Ue,multiple:Ie,hasFeedback:De,prefixCls:Fe,showSuffixIcon:de,feedbackIcon:me,showArrow:we,componentName:ge}=ue;const Te=Pe!=null?Pe:M.createElement(I.Z,null),ee=Ke=>ne===null&&!De&&!we?null:M.createElement(M.Fragment,null,de!==!1&&Ke,De&&me);let Ce=null;if(ne!==void 0)Ce=ee(ne);else if(Ue)Ce=ee(M.createElement(W.Z,{spin:!0}));else{const Ke=`${Fe}-suffix`;Ce=nt=>{let{open:ie,showSearch:at}=nt;return ee(ie&&at?M.createElement(_.Z,{className:Ke}):M.createElement(z.Z,{className:Ke}))}}let Ne=null;ke!==void 0?Ne=ke:Ie?Ne=M.createElement(b.Z,null):Ne=null;let Le=null;return rt!==void 0?Le=rt:Le=M.createElement(O.Z,null),{clearIcon:Te,suffixIcon:Ce,itemIcon:Ne,removeIcon:Le}}},81327:function(Q,C,d){"use strict";d.d(C,{Z:function(){return Fe}});var b=d(59301),I=d(92310),O=d.n(I),z=d(11592),W=d(36355),_=d(33234);const M=b.createContext({latestIndex:0}),pe=M.Provider;var ne=de=>{let{className:me,index:we,children:ge,split:Te,style:ee}=de;const{latestIndex:Ce}=b.useContext(M);return ge==null?null:b.createElement(b.Fragment,null,b.createElement("div",{className:me,style:ee},ge),we<Ce&&Te&&b.createElement("span",{className:`${me}-split`},Te))},Pe=d(2856);function ke(de){return["small","middle","large"].includes(de)}function rt(de){return de?typeof de=="number"&&!Number.isNaN(de):!1}var Ue=function(de,me){var we={};for(var ge in de)Object.prototype.hasOwnProperty.call(de,ge)&&me.indexOf(ge)<0&&(we[ge]=de[ge]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,ge=Object.getOwnPropertySymbols(de);Te<ge.length;Te++)me.indexOf(ge[Te])<0&&Object.prototype.propertyIsEnumerable.call(de,ge[Te])&&(we[ge[Te]]=de[ge[Te]]);return we};const De=b.forwardRef((de,me)=>{var we,ge;const{getPrefixCls:Te,space:ee,direction:Ce}=b.useContext(W.E_),{size:Ne=(ee==null?void 0:ee.size)||"small",align:Le,className:Ke,rootClassName:nt,children:ie,direction:at="horizontal",prefixCls:Ze,split:Bt,style:bt,wrap:kt=!1,classNames:Tt,styles:wn}=de,Xe=Ue(de,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[se,le]=Array.isArray(Ne)?Ne:[Ne,Ne],_t=ke(le),jt=ke(se),yt=rt(le),ln=rt(se),Dt=(0,z.Z)(ie,{keepEmpty:!0}),ui=Le===void 0&&at==="horizontal"?"center":Le,On=Te("space",Ze),[ri,Xn]=(0,Pe.Z)(On),Tn=O()(On,ee==null?void 0:ee.className,Xn,`${On}-${at}`,{[`${On}-rtl`]:Ce==="rtl",[`${On}-align-${ui}`]:ui,[`${On}-gap-row-${le}`]:_t,[`${On}-gap-col-${se}`]:jt},Ke,nt),Nn=O()(`${On}-item`,(we=Tt==null?void 0:Tt.item)!==null&&we!==void 0?we:(ge=ee==null?void 0:ee.classNames)===null||ge===void 0?void 0:ge.item);let xe=0;const P=Dt.map((X,N)=>{var Re,wt;X!=null&&(xe=N);const ze=X&&X.key||`${Nn}-${N}`;return b.createElement(ne,{className:Nn,key:ze,index:N,split:Bt,style:(Re=wn==null?void 0:wn.item)!==null&&Re!==void 0?Re:(wt=ee==null?void 0:ee.styles)===null||wt===void 0?void 0:wt.item},X)}),k=b.useMemo(()=>({latestIndex:xe}),[xe]);if(Dt.length===0)return null;const j={};return kt&&(j.flexWrap="wrap"),!jt&&ln&&(j.columnGap=se),!_t&&yt&&(j.rowGap=le),ri(b.createElement("div",Object.assign({ref:me,className:Tn,style:Object.assign(Object.assign(Object.assign({},j),ee==null?void 0:ee.style),bt)},Xe),b.createElement(pe,{value:k},P)))});De.Compact=_.ZP;var Fe=De},15969:function(Q,C,d){"use strict";d.d(C,{N:function(){return b}});const b=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(Q,C,d){"use strict";d.d(C,{Z:function(){return at}});var b=d(58617),I=d(92310),O=d.n(I),z=d(92413),W=d(400),_=d(33606),M=d(37061),pe=d(59301),ue=d(18929),ne=d(10228),Pe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],ke=pe.forwardRef(function(Ze,Bt){var bt,kt=Ze.prefixCls,Tt=kt===void 0?"rc-switch":kt,wn=Ze.className,Xe=Ze.checked,se=Ze.defaultChecked,le=Ze.disabled,_t=Ze.loadingIcon,jt=Ze.checkedChildren,yt=Ze.unCheckedChildren,ln=Ze.onClick,Dt=Ze.onChange,ui=Ze.onKeyDown,On=(0,M.Z)(Ze,Pe),ri=(0,ue.Z)(!1,{value:Xe,defaultValue:se}),Xn=(0,_.Z)(ri,2),Tn=Xn[0],Nn=Xn[1];function xe(X,N){var Re=Tn;return le||(Re=X,Nn(Re),Dt==null||Dt(Re,N)),Re}function P(X){X.which===ne.Z.LEFT?xe(!1,X):X.which===ne.Z.RIGHT&&xe(!0,X),ui==null||ui(X)}function k(X){var N=xe(!Tn,X);ln==null||ln(N,X)}var j=O()(Tt,wn,(bt={},(0,W.Z)(bt,"".concat(Tt,"-checked"),Tn),(0,W.Z)(bt,"".concat(Tt,"-disabled"),le),bt));return pe.createElement("button",(0,z.Z)({},On,{type:"button",role:"switch","aria-checked":Tn,disabled:le,className:j,ref:Bt,onKeyDown:P,onClick:k}),_t,pe.createElement("span",{className:"".concat(Tt,"-inner")},pe.createElement("span",{className:"".concat(Tt,"-inner-checked")},jt),pe.createElement("span",{className:"".concat(Tt,"-inner-unchecked")},yt)))});ke.displayName="Switch";var rt=ke,Ue=d(14088),Ie=d(36355),De=d(1684),Fe=d(19716),de=d(64993),me=d(17313),we=d(83116),ge=d(37613);const Te=Ze=>{const{componentCls:Bt,trackHeightSM:bt,trackPadding:kt,trackMinWidthSM:Tt,innerMinMarginSM:wn,innerMaxMarginSM:Xe,handleSizeSM:se}=Ze,le=`${Bt}-inner`;return{[Bt]:{[`&${Bt}-small`]:{minWidth:Tt,height:bt,lineHeight:`${bt}px`,[`${Bt}-inner`]:{paddingInlineStart:Xe,paddingInlineEnd:wn,[`${le}-checked`]:{marginInlineStart:`calc(-100% + ${se+kt*2}px - ${Xe*2}px)`,marginInlineEnd:`calc(100% - ${se+kt*2}px + ${Xe*2}px)`},[`${le}-unchecked`]:{marginTop:-bt,marginInlineStart:0,marginInlineEnd:0}},[`${Bt}-handle`]:{width:se,height:se},[`${Bt}-loading-icon`]:{top:(se-Ze.switchLoadingIconSize)/2,fontSize:Ze.switchLoadingIconSize},[`&${Bt}-checked`]:{[`${Bt}-inner`]:{paddingInlineStart:wn,paddingInlineEnd:Xe,[`${le}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${le}-unchecked`]:{marginInlineStart:`calc(100% - ${se+kt*2}px + ${Xe*2}px)`,marginInlineEnd:`calc(-100% + ${se+kt*2}px - ${Xe*2}px)`}},[`${Bt}-handle`]:{insetInlineStart:`calc(100% - ${se+kt}px)`}},[`&:not(${Bt}-disabled):active`]:{[`&:not(${Bt}-checked) ${le}`]:{[`${le}-unchecked`]:{marginInlineStart:Ze.marginXXS/2,marginInlineEnd:-Ze.marginXXS/2}},[`&${Bt}-checked ${le}`]:{[`${le}-checked`]:{marginInlineStart:-Ze.marginXXS/2,marginInlineEnd:Ze.marginXXS/2}}}}}}},ee=Ze=>{const{componentCls:Bt,handleSize:bt}=Ze;return{[Bt]:{[`${Bt}-loading-icon${Ze.iconCls}`]:{position:"relative",top:(bt-Ze.fontSize)/2,color:Ze.switchLoadingIconColor,verticalAlign:"top"},[`&${Bt}-checked ${Bt}-loading-icon`]:{color:Ze.switchColor}}}},Ce=Ze=>{const{componentCls:Bt,motion:bt,trackPadding:kt,handleBg:Tt,handleShadow:wn,handleSize:Xe}=Ze,se=`${Bt}-handle`;return{[Bt]:{[se]:{position:"absolute",top:kt,insetInlineStart:kt,width:Xe,height:Xe,transition:`all ${Ze.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Tt,borderRadius:Xe/2,boxShadow:wn,transition:`all ${Ze.switchDuration} ease-in-out`,content:'""'}},[`&${Bt}-checked ${se}`]:{insetInlineStart:`calc(100% - ${Xe+kt}px)`},[`&:not(${Bt}-disabled):active`]:bt?{[`${se}::before`]:{insetInlineEnd:Ze.switchHandleActiveInset,insetInlineStart:0},[`&${Bt}-checked ${se}::before`]:{insetInlineEnd:0,insetInlineStart:Ze.switchHandleActiveInset}}:{}}}},Ne=Ze=>{const{componentCls:Bt,trackHeight:bt,trackPadding:kt,innerMinMargin:Tt,innerMaxMargin:wn,handleSize:Xe}=Ze,se=`${Bt}-inner`;return{[Bt]:{[se]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:wn,paddingInlineEnd:Tt,transition:`padding-inline-start ${Ze.switchDuration} ease-in-out, padding-inline-end ${Ze.switchDuration} ease-in-out`,[`${se}-checked, ${se}-unchecked`]:{display:"block",color:Ze.colorTextLightSolid,fontSize:Ze.fontSizeSM,transition:`margin-inline-start ${Ze.switchDuration} ease-in-out, margin-inline-end ${Ze.switchDuration} ease-in-out`,pointerEvents:"none"},[`${se}-checked`]:{marginInlineStart:`calc(-100% + ${Xe+kt*2}px - ${wn*2}px)`,marginInlineEnd:`calc(100% - ${Xe+kt*2}px + ${wn*2}px)`},[`${se}-unchecked`]:{marginTop:-bt,marginInlineStart:0,marginInlineEnd:0}},[`&${Bt}-checked ${se}`]:{paddingInlineStart:Tt,paddingInlineEnd:wn,[`${se}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${se}-unchecked`]:{marginInlineStart:`calc(100% - ${Xe+kt*2}px + ${wn*2}px)`,marginInlineEnd:`calc(-100% + ${Xe+kt*2}px - ${wn*2}px)`}},[`&:not(${Bt}-disabled):active`]:{[`&:not(${Bt}-checked) ${se}`]:{[`${se}-unchecked`]:{marginInlineStart:kt*2,marginInlineEnd:-kt*2}},[`&${Bt}-checked ${se}`]:{[`${se}-checked`]:{marginInlineStart:-kt*2,marginInlineEnd:kt*2}}}}}},Le=Ze=>{const{componentCls:Bt,trackHeight:bt,trackMinWidth:kt}=Ze;return{[Bt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,me.Wf)(Ze)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:kt,height:bt,lineHeight:`${bt}px`,verticalAlign:"middle",background:Ze.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Ze.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Bt}-disabled)`]:{background:Ze.colorTextTertiary}}),(0,me.Qy)(Ze)),{[`&${Bt}-checked`]:{background:Ze.switchColor,[`&:hover:not(${Bt}-disabled)`]:{background:Ze.colorPrimaryHover}},[`&${Bt}-loading, &${Bt}-disabled`]:{cursor:"not-allowed",opacity:Ze.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Bt}-rtl`]:{direction:"rtl"}})}};var Ke=(0,we.Z)("Switch",Ze=>{const Bt=(0,ge.TS)(Ze,{switchDuration:Ze.motionDurationMid,switchColor:Ze.colorPrimary,switchDisabledOpacity:Ze.opacityLoading,switchLoadingIconSize:Ze.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${Ze.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Le(Bt),Ne(Bt),Ce(Bt),ee(Bt),Te(Bt)]},Ze=>{const{fontSize:Bt,lineHeight:bt,controlHeight:kt,colorWhite:Tt}=Ze,wn=Bt*bt,Xe=kt/2,se=2,le=wn-se*2,_t=Xe-se*2;return{trackHeight:wn,trackHeightSM:Xe,trackMinWidth:le*2+se*4,trackMinWidthSM:_t*2+se*2,trackPadding:se,handleBg:Tt,handleSize:le,handleSizeSM:_t,handleShadow:`0 2px 4px 0 ${new de.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:le/2,innerMaxMargin:le+se+se*2,innerMinMarginSM:_t/2,innerMaxMarginSM:_t+se+se*2}}),nt=function(Ze,Bt){var bt={};for(var kt in Ze)Object.prototype.hasOwnProperty.call(Ze,kt)&&Bt.indexOf(kt)<0&&(bt[kt]=Ze[kt]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Tt=0,kt=Object.getOwnPropertySymbols(Ze);Tt<kt.length;Tt++)Bt.indexOf(kt[Tt])<0&&Object.prototype.propertyIsEnumerable.call(Ze,kt[Tt])&&(bt[kt[Tt]]=Ze[kt[Tt]]);return bt};const ie=pe.forwardRef((Ze,Bt)=>{const{prefixCls:bt,size:kt,disabled:Tt,loading:wn,className:Xe,rootClassName:se,style:le}=Ze,_t=nt(Ze,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:jt,direction:yt,switch:ln}=pe.useContext(Ie.E_),Dt=pe.useContext(De.Z),ui=(Tt!=null?Tt:Dt)||wn,On=jt("switch",bt),ri=pe.createElement("div",{className:`${On}-handle`},wn&&pe.createElement(b.Z,{className:`${On}-loading-icon`})),[Xn,Tn]=Ke(On),Nn=(0,Fe.Z)(kt),xe=O()(ln==null?void 0:ln.className,{[`${On}-small`]:Nn==="small",[`${On}-loading`]:wn,[`${On}-rtl`]:yt==="rtl"},Xe,se,Tn),P=Object.assign(Object.assign({},ln==null?void 0:ln.style),le);return Xn(pe.createElement(Ue.Z,{component:"Switch"},pe.createElement(rt,Object.assign({},_t,{prefixCls:On,className:xe,style:P,disabled:ui,ref:Bt,loadingIcon:ri}))))});ie.__ANT_SWITCH=!0;var at=ie},1710:function(Q,C,d){"use strict";d.d(C,{default:function(){return zu}});var b={},I="rc-table-internal-hook",O=d(33606),z=d(6089),W=d(34280),_=d(13697),M=d(59301),pe=d(4676);function ue(Se){var Ae=M.createContext(void 0),ut=function(Lt){var Nt=Lt.value,fe=Lt.children,cn=M.useRef(Nt);cn.current=Nt;var en=M.useState(function(){return{getValue:function(){return cn.current},listeners:new Set}}),Dn=(0,O.Z)(en,1),Bn=Dn[0];return(0,W.Z)(function(){(0,pe.unstable_batchedUpdates)(function(){Bn.listeners.forEach(function(zn){zn(Nt)})})},[Nt]),M.createElement(Ae.Provider,{value:Bn},fe)};return{Context:Ae,Provider:ut,defaultValue:Se}}function ne(Se,Ae){var ut=(0,z.Z)(typeof Ae=="function"?Ae:function(zn){if(Ae===void 0)return zn;if(!Array.isArray(Ae))return zn[Ae];var fi={};return Ae.forEach(function(gi){fi[gi]=zn[gi]}),fi}),vt=M.useContext(Se==null?void 0:Se.Context),Lt=vt||{},Nt=Lt.listeners,fe=Lt.getValue,cn=M.useRef();cn.current=ut(vt?fe():Se==null?void 0:Se.defaultValue);var en=M.useState({}),Dn=(0,O.Z)(en,2),Bn=Dn[1];return(0,W.Z)(function(){if(!vt)return;function zn(fi){var gi=ut(fi);(0,_.Z)(cn.current,gi,!0)||Bn({})}return Nt.add(zn),function(){Nt.delete(zn)}},[vt]),cn.current}var Pe=d(92413),ke=d(8654);function rt(){var Se=M.createContext(null);function Ae(){return M.useContext(Se)}function ut(Lt,Nt){var fe=(0,ke.Yr)(Lt),cn=function(Dn,Bn){var zn=fe?{ref:Bn}:{},fi=M.useRef(0),gi=M.useRef(Dn),Jn=Ae();return Jn!==null?M.createElement(Lt,(0,Pe.Z)({},Dn,zn)):((!Nt||Nt(gi.current,Dn))&&(fi.current+=1),gi.current=Dn,M.createElement(Se.Provider,{value:fi.current},M.createElement(Lt,(0,Pe.Z)({},Dn,zn))))};return fe?M.forwardRef(cn):cn}function vt(Lt,Nt){var fe=(0,ke.Yr)(Lt),cn=function(Dn,Bn){var zn=fe?{ref:Bn}:{};return Ae(),M.createElement(Lt,(0,Pe.Z)({},Dn,zn))};return fe?M.memo(M.forwardRef(cn),Nt):M.memo(cn,Nt)}return{makeImmutable:ut,responseImmutable:vt,useImmutableMark:Ae}}var Ue=rt(),Ie=Ue.makeImmutable,De=Ue.responseImmutable,Fe=Ue.useImmutableMark,de=rt(),me=de.makeImmutable,we=de.responseImmutable,ge=de.useImmutableMark,Te=ue(),ee=Te;function Ce(Se,Ae){var ut=M.useRef(0);ut.current+=1;var vt=M.useRef(Se),Lt=[];Object.keys(Se||{}).map(function(fe){var cn;(Se==null?void 0:Se[fe])!==((cn=vt.current)===null||cn===void 0?void 0:cn[fe])&&Lt.push(fe)}),vt.current=Se;var Nt=M.useRef([]);return Lt.length&&(Nt.current=Lt),M.useDebugValue(ut.current),M.useDebugValue(Nt.current.join(", ")),Ae&&console.log("".concat(Ae,":"),ut.current,Nt.current),ut.current}var Ne=null,Le=M.memo(function(){var Se=Ce();return M.createElement("h1",null,"Render Times: ",Se)});Le.displayName="RenderBlock";var Ke=d(39559),nt=d(33708),ie=d(400),at=d(92310),Ze=d.n(at),Bt=d(80547),bt=d(97938),kt=d(48736),Tt=M.createContext({renderWithProps:!1}),wn=Tt,Xe="RC_TABLE_KEY";function se(Se){return Se==null?[]:Array.isArray(Se)?Se:[Se]}function le(Se){var Ae=[],ut={};return Se.forEach(function(vt){for(var Lt=vt||{},Nt=Lt.key,fe=Lt.dataIndex,cn=Nt||se(fe).join("-")||Xe;ut[cn];)cn="".concat(cn,"_next");ut[cn]=!0,Ae.push(cn)}),Ae}function _t(Se){return Se!=null}function jt(Se){return Se&&(0,Ke.Z)(Se)==="object"&&!Array.isArray(Se)&&!M.isValidElement(Se)}function yt(Se,Ae,ut,vt,Lt,Nt){var fe=M.useContext(wn),cn=ge(),en=(0,Bt.Z)(function(){if(_t(vt))return[vt];var Dn=Ae==null||Ae===""?[]:Array.isArray(Ae)?Ae:[Ae],Bn=(0,bt.Z)(Se,Dn),zn=Bn,fi=void 0;if(Lt){var gi=Lt(Bn,Se,ut);jt(gi)?(zn=gi.children,fi=gi.props,fe.renderWithProps=!0):zn=gi}return[zn,fi]},[cn,Se,vt,Ae,Lt,ut],function(Dn,Bn){if(Nt){var zn=(0,O.Z)(Dn,2),fi=zn[1],gi=(0,O.Z)(Bn,2),Jn=gi[1];return Nt(Jn,fi)}return fe.renderWithProps?!0:!(0,_.Z)(Dn,Bn,!0)});return en}function ln(Se,Ae,ut,vt){var Lt=Se+Ae-1;return Se<=vt&&Lt>=ut}function Dt(Se,Ae){return ne(ee,function(ut){var vt=ln(Se,Ae||1,ut.hoverStartRow,ut.hoverEndRow);return[vt,ut.onHover]})}var ui=function(Ae){var ut=Ae.ellipsis,vt=Ae.rowType,Lt=Ae.children,Nt,fe=ut===!0?{showTitle:!0}:ut;return fe&&(fe.showTitle||vt==="header")&&(typeof Lt=="string"||typeof Lt=="number"?Nt=Lt.toString():M.isValidElement(Lt)&&typeof Lt.props.children=="string"&&(Nt=Lt.props.children)),Nt};function On(Se){var Ae,ut,vt,Lt,Nt,fe,cn,en,Dn=Se.component,Bn=Se.children,zn=Se.ellipsis,fi=Se.scope,gi=Se.prefixCls,Jn=Se.className,Fi=Se.align,ai=Se.record,zi=Se.render,E=Se.dataIndex,F=Se.renderIndex,G=Se.shouldCellUpdate,q=Se.index,he=Se.rowType,Ee=Se.colSpan,$e=Se.rowSpan,et=Se.fixLeft,Ft=Se.fixRight,At=Se.firstFixLeft,ct=Se.lastFixLeft,$t=Se.firstFixRight,Vt=Se.lastFixRight,Rt=Se.appendNode,yi=Se.additionalProps,si=yi===void 0?{}:yi,sr=Se.isSticky,Si="".concat(gi,"-cell"),Cr=ne(ee,["supportSticky","allColumnsFixedLeft"]),ji=Cr.supportSticky,to=Cr.allColumnsFixedLeft,oo=yt(ai,E,F,Bn,zi,G),ei=(0,O.Z)(oo,2),Zi=ei[0],Kr=ei[1],Zr={},Qr=typeof et=="number"&&ji,No=typeof Ft=="number"&&ji;Qr&&(Zr.position="sticky",Zr.left=et),No&&(Zr.position="sticky",Zr.right=Ft);var tr=(Ae=(ut=(vt=Kr==null?void 0:Kr.colSpan)!==null&&vt!==void 0?vt:si.colSpan)!==null&&ut!==void 0?ut:Ee)!==null&&Ae!==void 0?Ae:1,Ai=(Lt=(Nt=(fe=Kr==null?void 0:Kr.rowSpan)!==null&&fe!==void 0?fe:si.rowSpan)!==null&&Nt!==void 0?Nt:$e)!==null&&Lt!==void 0?Lt:1,Gi=Dt(q,Ai),Mi=(0,O.Z)(Gi,2),jr=Mi[0],Wi=Mi[1],Lr=function(ss){var Ps;ai&&Wi(q,q+Ai-1),si==null||(Ps=si.onMouseEnter)===null||Ps===void 0||Ps.call(si,ss)},so=function(ss){var Ps;ai&&Wi(-1,-1),si==null||(Ps=si.onMouseLeave)===null||Ps===void 0||Ps.call(si,ss)};if(tr===0||Ai===0)return null;var Qt=(cn=si.title)!==null&&cn!==void 0?cn:ui({rowType:he,ellipsis:zn,children:Zi}),ms=Ze()(Si,Jn,(en={},(0,ie.Z)(en,"".concat(Si,"-fix-left"),Qr&&ji),(0,ie.Z)(en,"".concat(Si,"-fix-left-first"),At&&ji),(0,ie.Z)(en,"".concat(Si,"-fix-left-last"),ct&&ji),(0,ie.Z)(en,"".concat(Si,"-fix-left-all"),ct&&to&&ji),(0,ie.Z)(en,"".concat(Si,"-fix-right"),No&&ji),(0,ie.Z)(en,"".concat(Si,"-fix-right-first"),$t&&ji),(0,ie.Z)(en,"".concat(Si,"-fix-right-last"),Vt&&ji),(0,ie.Z)(en,"".concat(Si,"-ellipsis"),zn),(0,ie.Z)(en,"".concat(Si,"-with-append"),Rt),(0,ie.Z)(en,"".concat(Si,"-fix-sticky"),(Qr||No)&&sr&&ji),(0,ie.Z)(en,"".concat(Si,"-row-hover"),!Kr&&jr),en),si.className,Kr==null?void 0:Kr.className),gs={};Fi&&(gs.textAlign=Fi);var vn=(0,nt.Z)((0,nt.Z)((0,nt.Z)((0,nt.Z)({},Zr),si.style),gs),Kr==null?void 0:Kr.style),co=Zi;return(0,Ke.Z)(co)==="object"&&!Array.isArray(co)&&!M.isValidElement(co)&&(co=null),zn&&(ct||$t)&&(co=M.createElement("span",{className:"".concat(Si,"-content")},co)),M.createElement(Dn,(0,Pe.Z)({},Kr,si,{className:ms,style:vn,title:Qt,scope:fi,onMouseEnter:Lr,onMouseLeave:so,colSpan:tr!==1?tr:null,rowSpan:Ai!==1?Ai:null}),Rt,co)}var ri=M.memo(On);function Xn(Se,Ae,ut,vt,Lt,Nt){var fe=ut[Se]||{},cn=ut[Ae]||{},en,Dn;fe.fixed==="left"?en=vt.left[Lt==="rtl"?Ae:Se]:cn.fixed==="right"&&(Dn=vt.right[Lt==="rtl"?Se:Ae]);var Bn=!1,zn=!1,fi=!1,gi=!1,Jn=ut[Ae+1],Fi=ut[Se-1],ai=!(Nt!=null&&Nt.children);if(Lt==="rtl"){if(en!==void 0){var zi=Fi&&Fi.fixed==="left";gi=!zi&&ai}else if(Dn!==void 0){var E=Jn&&Jn.fixed==="right";fi=!E&&ai}}else if(en!==void 0){var F=Jn&&Jn.fixed==="left";Bn=!F&&ai}else if(Dn!==void 0){var G=Fi&&Fi.fixed==="right";zn=!G&&ai}return{fixLeft:en,fixRight:Dn,lastFixLeft:Bn,firstFixRight:zn,lastFixRight:fi,firstFixLeft:gi,isSticky:vt.isSticky}}var Tn=M.createContext({}),Nn=Tn;function xe(Se){var Ae=Se.className,ut=Se.index,vt=Se.children,Lt=Se.colSpan,Nt=Lt===void 0?1:Lt,fe=Se.rowSpan,cn=Se.align,en=ne(ee,["prefixCls","direction"]),Dn=en.prefixCls,Bn=en.direction,zn=M.useContext(Nn),fi=zn.scrollColumnIndex,gi=zn.stickyOffsets,Jn=zn.flattenColumns,Fi=zn.columns,ai=ut+Nt-1,zi=ai+1===fi?Nt+1:Nt,E=Xn(ut,ut+zi-1,Jn,gi,Bn,Fi==null?void 0:Fi[ut]);return M.createElement(ri,(0,Pe.Z)({className:Ae,index:ut,component:"td",prefixCls:Dn,record:null,dataIndex:null,align:cn,colSpan:zi,rowSpan:fe,render:function(){return vt}},E))}var P=d(37061),k=["children"];function j(Se){var Ae=Se.children,ut=(0,P.Z)(Se,k);return M.createElement("tr",ut,Ae)}function X(Se){var Ae=Se.children;return Ae}X.Row=j,X.Cell=xe;var N=X;function Re(Se){var Ae=Se.children,ut=Se.stickyOffsets,vt=Se.flattenColumns,Lt=Se.columns,Nt=ne(ee,"prefixCls"),fe=vt.length-1,cn=vt[fe],en=M.useMemo(function(){return{stickyOffsets:ut,flattenColumns:vt,scrollColumnIndex:cn!=null&&cn.scrollbar?fe:null,columns:Lt}},[cn,vt,fe,ut,Lt]);return M.createElement(Nn.Provider,{value:en},M.createElement("tfoot",{className:"".concat(Nt,"-summary")},Ae))}var wt=we(Re),ze=N,Oe=d(70425),mt=d(29301),lt=d(29194),Qe=d(24514),Ct=d(75152),nn=d(26112);function Yt(Se,Ae,ut,vt,Lt,Nt,fe){Se.push({record:Ae,indent:ut,index:fe});var cn=Nt(Ae),en=Lt==null?void 0:Lt.has(cn);if(Ae&&Array.isArray(Ae[vt])&&en)for(var Dn=0;Dn<Ae[vt].length;Dn+=1)Yt(Se,Ae[vt][Dn],ut+1,vt,Lt,Nt,Dn)}function Ot(Se,Ae,ut,vt){var Lt=M.useMemo(function(){if(ut!=null&&ut.size){for(var Nt=[],fe=0;fe<(Se==null?void 0:Se.length);fe+=1){var cn=Se[fe];Yt(Nt,cn,0,Ae,ut,vt,fe)}return Nt}return Se==null?void 0:Se.map(function(en,Dn){return{record:en,indent:0,index:Dn}})},[Se,Ae,ut,vt]);return Lt}function on(Se){var Ae=Se.prefixCls,ut=Se.children,vt=Se.component,Lt=Se.cellComponent,Nt=Se.className,fe=Se.expanded,cn=Se.colSpan,en=Se.isEmpty,Dn=ne(ee,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Bn=Dn.scrollbarSize,zn=Dn.fixHeader,fi=Dn.fixColumn,gi=Dn.componentWidth,Jn=Dn.horizonScroll,Fi=ut;return(en?Jn&&gi:fi)&&(Fi=M.createElement("div",{style:{width:gi-(zn?Bn:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Ae,"-expanded-row-fixed")},Fi)),M.createElement(vt,{className:Nt,style:{display:fe?null:"none"}},M.createElement(ri,{component:Lt,prefixCls:Ae,colSpan:cn},Fi))}var hn=on;function Ve(Se,Ae,ut,vt){var Lt=ne(ee,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Nt=Lt.flattenColumns,fe=Lt.expandableType,cn=Lt.expandedKeys,en=Lt.childrenColumnName,Dn=Lt.onTriggerExpand,Bn=Lt.rowExpandable,zn=Lt.onRow,fi=Lt.expandRowByClick,gi=Lt.rowClassName,Jn=fe==="nest",Fi=fe==="row"&&(!Bn||Bn(Se)),ai=Fi||Jn,zi=cn&&cn.has(Ae),E=en&&Se&&Se[en],F=(0,Oe.useEvent)(Dn),G=zn==null?void 0:zn(Se,ut),q=G==null?void 0:G.onClick,he=function(Ft){fi&&ai&&Dn(Se,Ft);for(var At=arguments.length,ct=new Array(At>1?At-1:0),$t=1;$t<At;$t++)ct[$t-1]=arguments[$t];q==null||q.apply(void 0,[Ft].concat(ct))},Ee;typeof gi=="string"?Ee=gi:typeof gi=="function"&&(Ee=gi(Se,ut,vt));var $e=le(Nt);return(0,nt.Z)((0,nt.Z)({},Lt),{},{columnsKey:$e,nestExpandable:Jn,expanded:zi,hasNestChildren:E,record:Se,onTriggerExpand:F,rowSupportExpand:Fi,expandable:ai,rowProps:(0,nt.Z)((0,nt.Z)({},G),{},{className:Ze()(Ee,G==null?void 0:G.className),onClick:he})})}function Pt(Se,Ae,ut,vt,Lt){var Nt=Se.record,fe=Se.prefixCls,cn=Se.columnsKey,en=Se.fixedInfoList,Dn=Se.expandIconColumnIndex,Bn=Se.nestExpandable,zn=Se.indentSize,fi=Se.expandIcon,gi=Se.expanded,Jn=Se.hasNestChildren,Fi=Se.onTriggerExpand,ai=cn[ut],zi=en[ut],E;ut===(Dn||0)&&Bn&&(E=M.createElement(M.Fragment,null,M.createElement("span",{style:{paddingLeft:"".concat(zn*vt,"px")},className:"".concat(fe,"-row-indent indent-level-").concat(vt)}),fi({prefixCls:fe,expanded:gi,expandable:Jn,record:Nt,onExpand:Fi})));var F;return Ae.onCell&&(F=Ae.onCell(Nt,Lt)),{key:ai,fixedInfo:zi,appendCellNode:E,additionalCellProps:F||{}}}function Xt(Se){var Ae=Se.className,ut=Se.style,vt=Se.record,Lt=Se.index,Nt=Se.renderIndex,fe=Se.rowKey,cn=Se.indent,en=cn===void 0?0:cn,Dn=Se.rowComponent,Bn=Se.cellComponent,zn=Se.scopeCellComponent,fi=Ve(vt,fe,Lt,en),gi=fi.prefixCls,Jn=fi.flattenColumns,Fi=fi.expandedRowClassName,ai=fi.expandedRowRender,zi=fi.rowProps,E=fi.expanded,F=fi.rowSupportExpand,G=M.useState(!1),q=(0,O.Z)(G,2),he=q[0],Ee=q[1];M.useEffect(function(){E&&Ee(!0)},[E]);var $e=M.createElement(Dn,(0,Pe.Z)({},zi,{"data-row-key":fe,className:Ze()(Ae,"".concat(gi,"-row"),"".concat(gi,"-row-level-").concat(en),zi==null?void 0:zi.className),style:(0,nt.Z)((0,nt.Z)({},ut),zi==null?void 0:zi.style)}),Jn.map(function(ct,$t){var Vt=ct.render,Rt=ct.dataIndex,yi=ct.className,si=Pt(fi,ct,$t,en,Lt),sr=si.key,Si=si.fixedInfo,Cr=si.appendCellNode,ji=si.additionalCellProps;return M.createElement(ri,(0,Pe.Z)({className:yi,ellipsis:ct.ellipsis,align:ct.align,scope:ct.rowScope,component:ct.rowScope?zn:Bn,prefixCls:gi,key:sr,record:vt,index:Lt,renderIndex:Nt,dataIndex:Rt,render:Vt,shouldCellUpdate:ct.shouldCellUpdate},Si,{appendNode:Cr,additionalProps:ji}))})),et;if(F&&(he||E)){var Ft=ai(vt,Lt,en+1,E),At=Fi&&Fi(vt,Lt,en);et=M.createElement(hn,{expanded:E,className:Ze()("".concat(gi,"-expanded-row"),"".concat(gi,"-expanded-row-level-").concat(en+1),At),prefixCls:gi,component:Dn,cellComponent:Bn,colSpan:Jn.length,isEmpty:!1},Ft)}return M.createElement(M.Fragment,null,$e,et)}Xt.displayName="BodyRow";var qt=we(Xt);function He(Se){var Ae=Se.columnKey,ut=Se.onColumnResize,vt=M.useRef();return M.useEffect(function(){vt.current&&ut(Ae,vt.current.offsetWidth)},[]),M.createElement(mt.Z,{data:Ae},M.createElement("td",{ref:vt,style:{padding:0,border:0,height:0}},M.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Rn(Se){var Ae=Se.prefixCls,ut=Se.columnsKey,vt=Se.onColumnResize;return M.createElement("tr",{"aria-hidden":"true",className:"".concat(Ae,"-measure-row"),style:{height:0,fontSize:0}},M.createElement(mt.Z.Collection,{onBatchResize:function(Nt){Nt.forEach(function(fe){var cn=fe.data,en=fe.size;vt(cn,en.offsetWidth)})}},ut.map(function(Lt){return M.createElement(He,{key:Lt,columnKey:Lt,onColumnResize:vt})})))}function Cn(Se){var Ae=Se.data,ut=Se.measureColumnWidth,vt=ne(ee,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Lt=vt.prefixCls,Nt=vt.getComponent,fe=vt.onColumnResize,cn=vt.flattenColumns,en=vt.getRowKey,Dn=vt.expandedKeys,Bn=vt.childrenColumnName,zn=vt.emptyNode,fi=Ot(Ae,Bn,Dn,en),gi=M.useRef({renderWithProps:!1}),Jn=Nt(["body","wrapper"],"tbody"),Fi=Nt(["body","row"],"tr"),ai=Nt(["body","cell"],"td"),zi=Nt(["body","cell"],"th"),E;Ae.length?E=fi.map(function(G,q){var he=G.record,Ee=G.indent,$e=G.index,et=en(he,q);return M.createElement(qt,{key:et,rowKey:et,record:he,index:q,renderIndex:$e,rowComponent:Fi,cellComponent:ai,scopeCellComponent:zi,getRowKey:en,indent:Ee})}):E=M.createElement(hn,{expanded:!0,className:"".concat(Lt,"-placeholder"),prefixCls:Lt,component:Fi,cellComponent:ai,colSpan:cn.length,isEmpty:!0},zn);var F=le(cn);return M.createElement(wn.Provider,{value:gi.current},M.createElement(Jn,{className:"".concat(Lt,"-tbody")},ut&&M.createElement(Rn,{prefixCls:Lt,columnsKey:F,onColumnResize:fe}),E))}Cn.displayName="Body";var Gn=we(Cn),Ci=["expandable"],ci="RC_TABLE_INTERNAL_COL_DEFINE";function sn(Se){var Ae=Se.expandable,ut=(0,P.Z)(Se,Ci),vt;return"expandable"in Se?vt=(0,nt.Z)((0,nt.Z)({},ut),Ae):vt=ut,vt.showExpandColumn===!1&&(vt.expandIconColumnIndex=-1),vt}var rn=["columnType"];function cr(Se){for(var Ae=Se.colWidths,ut=Se.columns,vt=Se.columCount,Lt=[],Nt=vt||ut.length,fe=!1,cn=Nt-1;cn>=0;cn-=1){var en=Ae[cn],Dn=ut&&ut[cn],Bn=Dn&&Dn[ci];if(en||Bn||fe){var zn=Bn||{},fi=zn.columnType,gi=(0,P.Z)(zn,rn);Lt.unshift(M.createElement("col",(0,Pe.Z)({key:cn,style:{width:en}},gi))),fe=!0}}return M.createElement("colgroup",null,Lt)}var yr=cr,Zn=d(26407),Mr=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function rr(Se,Ae){return(0,M.useMemo)(function(){for(var ut=[],vt=0;vt<Ae;vt+=1){var Lt=Se[vt];if(Lt!==void 0)ut[vt]=Lt;else return null}return ut},[Se.join("_"),Ae])}var U=M.forwardRef(function(Se,Ae){var ut=Se.className,vt=Se.noData,Lt=Se.columns,Nt=Se.flattenColumns,fe=Se.colWidths,cn=Se.columCount,en=Se.stickyOffsets,Dn=Se.direction,Bn=Se.fixHeader,zn=Se.stickyTopOffset,fi=Se.stickyBottomOffset,gi=Se.stickyClassName,Jn=Se.onScroll,Fi=Se.maxContentScroll,ai=Se.children,zi=(0,P.Z)(Se,Mr),E=ne(ee,["prefixCls","scrollbarSize","isSticky"]),F=E.prefixCls,G=E.scrollbarSize,q=E.isSticky,he=q&&!Bn?0:G,Ee=M.useRef(null),$e=M.useCallback(function(yi){(0,ke.mH)(Ae,yi),(0,ke.mH)(Ee,yi)},[]);M.useEffect(function(){var yi;function si(sr){var Si=sr,Cr=Si.currentTarget,ji=Si.deltaX;ji&&(Jn({currentTarget:Cr,scrollLeft:Cr.scrollLeft+ji}),sr.preventDefault())}return(yi=Ee.current)===null||yi===void 0||yi.addEventListener("wheel",si),function(){var sr;(sr=Ee.current)===null||sr===void 0||sr.removeEventListener("wheel",si)}},[]);var et=M.useMemo(function(){return Nt.every(function(yi){return yi.width})},[Nt]),Ft=Nt[Nt.length-1],At={fixed:Ft?Ft.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(F,"-cell-scrollbar")}}},ct=(0,M.useMemo)(function(){return he?[].concat((0,Zn.Z)(Lt),[At]):Lt},[he,Lt]),$t=(0,M.useMemo)(function(){return he?[].concat((0,Zn.Z)(Nt),[At]):Nt},[he,Nt]),Vt=(0,M.useMemo)(function(){var yi=en.right,si=en.left;return(0,nt.Z)((0,nt.Z)({},en),{},{left:Dn==="rtl"?[].concat((0,Zn.Z)(si.map(function(sr){return sr+he})),[0]):si,right:Dn==="rtl"?yi:[].concat((0,Zn.Z)(yi.map(function(sr){return sr+he})),[0]),isSticky:q})},[he,en,q]),Rt=rr(fe,cn);return M.createElement("div",{style:(0,nt.Z)({overflow:"hidden"},q?{top:zn,bottom:fi}:{}),ref:$e,className:Ze()(ut,(0,ie.Z)({},gi,!!gi))},M.createElement("table",{style:{tableLayout:"fixed",visibility:vt||Rt?null:"hidden"}},(!vt||!Fi||et)&&M.createElement(yr,{colWidths:Rt?[].concat((0,Zn.Z)(Rt),[he]):[],columCount:cn+1,columns:$t}),ai((0,nt.Z)((0,nt.Z)({},zi),{},{stickyOffsets:Vt,columns:ct,flattenColumns:$t}))))});U.displayName="FixedHolder";var mr=M.memo(U);function lr(Se){var Ae=Se.cells,ut=Se.stickyOffsets,vt=Se.flattenColumns,Lt=Se.rowComponent,Nt=Se.cellComponent,fe=Se.tdCellComponent,cn=Se.onHeaderRow,en=Se.index,Dn=ne(ee,["prefixCls","direction"]),Bn=Dn.prefixCls,zn=Dn.direction,fi;cn&&(fi=cn(Ae.map(function(Jn){return Jn.column}),en));var gi=le(Ae.map(function(Jn){return Jn.column}));return M.createElement(Lt,fi,Ae.map(function(Jn,Fi){var ai=Jn.column,zi=Xn(Jn.colStart,Jn.colEnd,vt,ut,zn,ai),E;return ai&&ai.onHeaderCell&&(E=Jn.column.onHeaderCell(ai)),M.createElement(ri,(0,Pe.Z)({},Jn,{scope:ai.title?Jn.colSpan>1?"colgroup":"col":null,ellipsis:ai.ellipsis,align:ai.align,component:ai.title?Nt:fe,prefixCls:Bn,key:gi[Fi]},zi,{additionalProps:E,rowType:"header"}))}))}lr.displayName="HeaderRow";var _r=lr;function Hr(Se){var Ae=[];function ut(fe,cn){var en=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Ae[en]=Ae[en]||[];var Dn=cn,Bn=fe.filter(Boolean).map(function(zn){var fi={key:zn.key,className:zn.className||"",children:zn.title,column:zn,colStart:Dn},gi=1,Jn=zn.children;return Jn&&Jn.length>0&&(gi=ut(Jn,Dn,en+1).reduce(function(Fi,ai){return Fi+ai},0),fi.hasSubColumns=!0),"colSpan"in zn&&(gi=zn.colSpan),"rowSpan"in zn&&(fi.rowSpan=zn.rowSpan),fi.colSpan=gi,fi.colEnd=fi.colStart+gi-1,Ae[en].push(fi),Dn+=gi,gi});return Bn}ut(Se,0);for(var vt=Ae.length,Lt=function(cn){Ae[cn].forEach(function(en){!("rowSpan"in en)&&!en.hasSubColumns&&(en.rowSpan=vt-cn)})},Nt=0;Nt<vt;Nt+=1)Lt(Nt);return Ae}function uo(Se){var Ae=Se.stickyOffsets,ut=Se.columns,vt=Se.flattenColumns,Lt=Se.onHeaderRow,Nt=ne(ee,["prefixCls","getComponent"]),fe=Nt.prefixCls,cn=Nt.getComponent,en=M.useMemo(function(){return Hr(ut)},[ut]),Dn=cn(["header","wrapper"],"thead"),Bn=cn(["header","row"],"tr"),zn=cn(["header","cell"],"th"),fi=cn(["header","cell"],"td");return M.createElement(Dn,{className:"".concat(fe,"-thead")},en.map(function(gi,Jn){var Fi=M.createElement(_r,{key:Jn,flattenColumns:vt,cells:gi,stickyOffsets:Ae,rowComponent:Bn,cellComponent:zn,tdCellComponent:fi,onHeaderRow:Lt,index:Jn});return Fi}))}var Tr=we(uo),Jr=d(11592);function fr(Se){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Ae=="number"?Ae:Ae.endsWith("%")?Se*parseFloat(Ae)/100:null}function Xi(Se,Ae){return M.useMemo(function(){if(Ae&&Ae>0){var ut=0,vt=0;Se.forEach(function(Dn){var Bn=fr(Ae,Dn.width);Bn?ut+=Bn:vt+=1});var Lt=Ae-ut,Nt=vt,fe=Lt/vt,cn=0,en=Se.map(function(Dn){var Bn=(0,nt.Z)({},Dn),zn=fr(Ae,Bn.width);if(zn)Bn.width=zn;else{var fi=Math.floor(fe);Bn.width=Nt===1?Lt:fi,Lt-=fi,Nt-=1}return cn+=Bn.width,Bn});return[en,cn]}return[Se,Ae]},[Se,Ae])}var di=["children"],ht=["fixed"];function _n(Se){return(0,Jr.Z)(Se).filter(function(Ae){return M.isValidElement(Ae)}).map(function(Ae){var ut=Ae.key,vt=Ae.props,Lt=vt.children,Nt=(0,P.Z)(vt,di),fe=(0,nt.Z)({key:ut},Nt);return Lt&&(fe.children=_n(Lt)),fe})}function Hn(Se){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Se.filter(function(ut){return ut&&(0,Ke.Z)(ut)==="object"}).reduce(function(ut,vt,Lt){var Nt=vt.fixed,fe=Nt===!0?"left":Nt,cn="".concat(Ae,"-").concat(Lt),en=vt.children;return en&&en.length>0?[].concat((0,Zn.Z)(ut),(0,Zn.Z)(Hn(en,cn).map(function(Dn){return(0,nt.Z)({fixed:fe},Dn)}))):[].concat((0,Zn.Z)(ut),[(0,nt.Z)((0,nt.Z)({key:cn},vt),{},{fixed:fe})])},[])}function gt(Se){for(var Ae=!0,ut=0;ut<Se.length;ut+=1){var vt=Se[ut];if(Ae&&vt.fixed!=="left")Ae=!1;else if(!Ae&&vt.fixed==="left"){warning(!1,"Index ".concat(ut-1," of `columns` missing `fixed='left'` prop."));break}}for(var Lt=!0,Nt=Se.length-1;Nt>=0;Nt-=1){var fe=Se[Nt];if(Lt&&fe.fixed!=="right")Lt=!1;else if(!Lt&&fe.fixed==="right"){warning(!1,"Index ".concat(Nt+1," of `columns` missing `fixed='right'` prop."));break}}}function Ge(Se){return Se.map(function(Ae){var ut=Ae.fixed,vt=(0,P.Z)(Ae,ht),Lt=ut;return ut==="left"?Lt="right":ut==="right"&&(Lt="left"),(0,nt.Z)({fixed:Lt},vt)})}function fn(Se,Ae){var ut=Se.prefixCls,vt=Se.columns,Lt=Se.children,Nt=Se.expandable,fe=Se.expandedKeys,cn=Se.columnTitle,en=Se.getRowKey,Dn=Se.onTriggerExpand,Bn=Se.expandIcon,zn=Se.rowExpandable,fi=Se.expandIconColumnIndex,gi=Se.direction,Jn=Se.expandRowByClick,Fi=Se.columnWidth,ai=Se.fixed,zi=Se.scrollWidth,E=M.useMemo(function(){return vt||_n(Lt)},[vt,Lt]),F=M.useMemo(function(){if(Nt){var Ft,At=E.slice();if(!At.includes(b)){var ct=fi||0;ct>=0&&At.splice(ct,0,b)}var $t=At.indexOf(b);At=At.filter(function(si,sr){return si!==b||sr===$t});var Vt=E[$t],Rt;(ai==="left"||ai)&&!fi?Rt="left":(ai==="right"||ai)&&fi===E.length?Rt="right":Rt=Vt?Vt.fixed:null;var yi=(Ft={},(0,ie.Z)(Ft,ci,{className:"".concat(ut,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,ie.Z)(Ft,"title",cn),(0,ie.Z)(Ft,"fixed",Rt),(0,ie.Z)(Ft,"className","".concat(ut,"-row-expand-icon-cell")),(0,ie.Z)(Ft,"width",Fi),(0,ie.Z)(Ft,"render",function(sr,Si,Cr){var ji=en(Si,Cr),to=fe.has(ji),oo=zn?zn(Si):!0,ei=Bn({prefixCls:ut,expanded:to,expandable:oo,record:Si,onExpand:Dn});return Jn?M.createElement("span",{onClick:function(Kr){return Kr.stopPropagation()}},ei):ei}),Ft);return At.map(function(si){return si===b?yi:si})}return E.filter(function(si){return si!==b})},[Nt,E,en,fe,Bn,gi]),G=M.useMemo(function(){var Ft=F;return Ae&&(Ft=Ae(Ft)),Ft.length||(Ft=[{render:function(){return null}}]),Ft},[Ae,F,gi]),q=M.useMemo(function(){return gi==="rtl"?Ge(Hn(G)):Hn(G)},[G,gi,zi]),he=Xi(q,zi),Ee=(0,O.Z)(he,2),$e=Ee[0],et=Ee[1];return[G,$e,et]}var Sn=fn;function ti(Se){var Ae,ut=Se.prefixCls,vt=Se.record,Lt=Se.onExpand,Nt=Se.expanded,fe=Se.expandable,cn="".concat(ut,"-row-expand-icon");if(!fe)return M.createElement("span",{className:Ze()(cn,"".concat(ut,"-row-spaced"))});var en=function(Bn){Lt(vt,Bn),Bn.stopPropagation()};return M.createElement("span",{className:Ze()(cn,(Ae={},(0,ie.Z)(Ae,"".concat(ut,"-row-expanded"),Nt),(0,ie.Z)(Ae,"".concat(ut,"-row-collapsed"),!Nt),Ae)),onClick:en})}function Kn(Se,Ae,ut){var vt=[];function Lt(Nt){(Nt||[]).forEach(function(fe,cn){vt.push(Ae(fe,cn)),Lt(fe[ut])})}return Lt(Se),vt}function pt(Se,Ae,ut){var vt=sn(Se),Lt=vt.expandIcon,Nt=vt.expandedRowKeys,fe=vt.defaultExpandedRowKeys,cn=vt.defaultExpandAllRows,en=vt.expandedRowRender,Dn=vt.onExpand,Bn=vt.onExpandedRowsChange,zn=vt.childrenColumnName,fi=Lt||ti,gi=zn||"children",Jn=M.useMemo(function(){return en?"row":Se.expandable&&Se.internalHooks===I&&Se.expandable.__PARENT_RENDER_ICON__||Ae.some(function(q){return q&&(0,Ke.Z)(q)==="object"&&q[gi]})?"nest":!1},[!!en,Ae]),Fi=M.useState(function(){return fe||(cn?Kn(Ae,ut,gi):[])}),ai=(0,O.Z)(Fi,2),zi=ai[0],E=ai[1],F=M.useMemo(function(){return new Set(Nt||zi||[])},[Nt,zi]),G=M.useCallback(function(q){var he=ut(q,Ae.indexOf(q)),Ee,$e=F.has(he);$e?(F.delete(he),Ee=(0,Zn.Z)(F)):Ee=[].concat((0,Zn.Z)(F),[he]),E(Ee),Dn&&Dn(!$e,q),Bn&&Bn(Ee)},[ut,F,Ae,Dn,Bn]);return[vt,Jn,F,fi,gi,G]}function gn(Se,Ae,ut,vt){var Lt=Se.map(function(Nt,fe){return Xn(fe,fe,Se,Ae,ut,vt==null?void 0:vt[fe])});return(0,Bt.Z)(function(){return Lt},[Lt],function(Nt,fe){return!(0,_.Z)(Nt,fe)})}function tn(Se){var Ae=(0,M.useRef)(Se),ut=(0,M.useState)({}),vt=(0,O.Z)(ut,2),Lt=vt[1],Nt=(0,M.useRef)(null),fe=(0,M.useRef)([]);function cn(en){fe.current.push(en);var Dn=Promise.resolve();Nt.current=Dn,Dn.then(function(){if(Nt.current===Dn){var Bn=fe.current,zn=Ae.current;fe.current=[],Bn.forEach(function(fi){Ae.current=fi(Ae.current)}),Nt.current=null,zn!==Ae.current&&Lt({})}})}return(0,M.useEffect)(function(){return function(){Nt.current=null}},[]),[Ae.current,cn]}function xi(Se){var Ae=(0,M.useRef)(Se||null),ut=(0,M.useRef)();function vt(){window.clearTimeout(ut.current)}function Lt(fe){Ae.current=fe,vt(),ut.current=window.setTimeout(function(){Ae.current=null,ut.current=void 0},100)}function Nt(){return Ae.current}return(0,M.useEffect)(function(){return vt},[]),[Lt,Nt]}function ft(){var Se=M.useState(-1),Ae=(0,O.Z)(Se,2),ut=Ae[0],vt=Ae[1],Lt=M.useState(-1),Nt=(0,O.Z)(Lt,2),fe=Nt[0],cn=Nt[1],en=M.useCallback(function(Dn,Bn){vt(Dn),cn(Bn)},[]);return[ut,fe,en]}var Fn=d(47273),Mt=(0,Fn.Z)()?window:null;function qe(Se,Ae){var ut=(0,Ke.Z)(Se)==="object"?Se:{},vt=ut.offsetHeader,Lt=vt===void 0?0:vt,Nt=ut.offsetSummary,fe=Nt===void 0?0:Nt,cn=ut.offsetScroll,en=cn===void 0?0:cn,Dn=ut.getContainer,Bn=Dn===void 0?function(){return Mt}:Dn,zn=Bn()||Mt;return M.useMemo(function(){var fi=!!Se;return{isSticky:fi,stickyClassName:fi?"".concat(Ae,"-sticky-holder"):"",offsetHeader:Lt,offsetSummary:fe,offsetScroll:en,container:zn}},[en,Lt,fe,Ae,zn])}function D(Se,Ae,ut){var vt=(0,M.useMemo)(function(){for(var Lt=[],Nt=[],fe=0,cn=0,en=0;en<Ae;en+=1)if(ut==="rtl"){Nt[en]=cn,cn+=Se[en]||0;var Dn=Ae-en-1;Lt[Dn]=fe,fe+=Se[Dn]||0}else{Lt[en]=fe,fe+=Se[en]||0;var Bn=Ae-en-1;Nt[Bn]=cn,cn+=Se[Bn]||0}return{left:Lt,right:Nt}},[Se,Ae,ut]);return vt}var Gt=D;function dn(Se){var Ae=Se.className,ut=Se.children;return M.createElement("div",{className:Ae},ut)}var xt=dn,En=d(8224),Mn=d(55468),ki=function(Ae,ut){var vt,Lt,Nt=Ae.scrollBodyRef,fe=Ae.onScroll,cn=Ae.offsetScroll,en=Ae.container,Dn=ne(ee,"prefixCls"),Bn=((vt=Nt.current)===null||vt===void 0?void 0:vt.scrollWidth)||0,zn=((Lt=Nt.current)===null||Lt===void 0?void 0:Lt.clientWidth)||0,fi=Bn&&zn*(zn/Bn),gi=M.useRef(),Jn=tn({scrollLeft:0,isHiddenScrollBar:!1}),Fi=(0,O.Z)(Jn,2),ai=Fi[0],zi=Fi[1],E=M.useRef({delta:0,x:0}),F=M.useState(!1),G=(0,O.Z)(F,2),q=G[0],he=G[1],Ee=function(){he(!1)},$e=function($t){$t.persist(),E.current.delta=$t.pageX-ai.scrollLeft,E.current.x=0,he(!0),$t.preventDefault()},et=function($t){var Vt,Rt=$t||((Vt=window)===null||Vt===void 0?void 0:Vt.event),yi=Rt.buttons;if(!q||yi===0){q&&he(!1);return}var si=E.current.x+$t.pageX-E.current.x-E.current.delta;si<=0&&(si=0),si+fi>=zn&&(si=zn-fi),fe({scrollLeft:si/zn*(Bn+2)}),E.current.x=$t.pageX},Ft=function(){if(Nt.current){var $t=(0,Mn.os)(Nt.current).top,Vt=$t+Nt.current.offsetHeight,Rt=en===window?document.documentElement.scrollTop+window.innerHeight:(0,Mn.os)(en).top+en.clientHeight;Vt-(0,Ct.Z)()<=Rt||$t>=Rt-cn?zi(function(yi){return(0,nt.Z)((0,nt.Z)({},yi),{},{isHiddenScrollBar:!0})}):zi(function(yi){return(0,nt.Z)((0,nt.Z)({},yi),{},{isHiddenScrollBar:!1})})}},At=function($t){zi(function(Vt){return(0,nt.Z)((0,nt.Z)({},Vt),{},{scrollLeft:$t/Bn*zn||0})})};return M.useImperativeHandle(ut,function(){return{setScrollLeft:At}}),M.useEffect(function(){var ct=(0,En.Z)(document.body,"mouseup",Ee,!1),$t=(0,En.Z)(document.body,"mousemove",et,!1);return Ft(),function(){ct.remove(),$t.remove()}},[fi,q]),M.useEffect(function(){var ct=(0,En.Z)(en,"scroll",Ft,!1),$t=(0,En.Z)(window,"resize",Ft,!1);return function(){ct.remove(),$t.remove()}},[en]),M.useEffect(function(){ai.isHiddenScrollBar||zi(function(ct){var $t=Nt.current;return $t?(0,nt.Z)((0,nt.Z)({},ct),{},{scrollLeft:$t.scrollLeft/$t.scrollWidth*$t.clientWidth}):ct})},[ai.isHiddenScrollBar]),Bn<=zn||!fi||ai.isHiddenScrollBar?null:M.createElement("div",{style:{height:(0,Ct.Z)(),width:zn,bottom:cn},className:"".concat(Dn,"-sticky-scroll")},M.createElement("div",{onMouseDown:$e,ref:gi,className:Ze()("".concat(Dn,"-sticky-scroll-bar"),(0,ie.Z)({},"".concat(Dn,"-sticky-scroll-bar-active"),q)),style:{width:"".concat(fi,"px"),transform:"translate3d(".concat(ai.scrollLeft,"px, 0, 0)")}}))},Un=M.forwardRef(ki);function ot(Se){return null}var Bi=ot;function hr(Se){return null}var Kt=hr,Qi="rc-table",J=[],ae={};function Yn(){return"No Data"}function _e(Se){var Ae,ut=(0,nt.Z)({rowKey:"key",prefixCls:Qi,emptyText:Yn},Se),vt=ut.prefixCls,Lt=ut.className,Nt=ut.rowClassName,fe=ut.style,cn=ut.data,en=ut.rowKey,Dn=ut.scroll,Bn=ut.tableLayout,zn=ut.direction,fi=ut.title,gi=ut.footer,Jn=ut.summary,Fi=ut.caption,ai=ut.id,zi=ut.showHeader,E=ut.components,F=ut.emptyText,G=ut.onRow,q=ut.onHeaderRow,he=ut.internalHooks,Ee=ut.transformColumns,$e=ut.internalRefs,et=ut.tailor,Ft=ut.sticky,At=cn||J,ct=!!At.length,$t=he===I,Vt=M.useCallback(function(Xo,ys){return(0,bt.Z)(E,Xo)||ys},[E]),Rt=M.useMemo(function(){return typeof en=="function"?en:function(Xo){var ys=Xo&&Xo[en];return ys}},[en]),yi=Vt(["body"]),si=ft(),sr=(0,O.Z)(si,3),Si=sr[0],Cr=sr[1],ji=sr[2],to=pt(ut,At,Rt),oo=(0,O.Z)(to,6),ei=oo[0],Zi=oo[1],Kr=oo[2],Zr=oo[3],Qr=oo[4],No=oo[5],tr=Dn==null?void 0:Dn.x,Ai=M.useState(0),Gi=(0,O.Z)(Ai,2),Mi=Gi[0],jr=Gi[1],Wi=Sn((0,nt.Z)((0,nt.Z)((0,nt.Z)({},ut),ei),{},{expandable:!!ei.expandedRowRender,columnTitle:ei.columnTitle,expandedKeys:Kr,getRowKey:Rt,onTriggerExpand:No,expandIcon:Zr,expandIconColumnIndex:ei.expandIconColumnIndex,direction:zn,scrollWidth:$t&&et&&typeof tr=="number"?tr:null}),$t?Ee:null),Lr=(0,O.Z)(Wi,3),so=Lr[0],Qt=Lr[1],ms=Lr[2],gs=ms!=null?ms:tr,vn=M.useMemo(function(){return{columns:so,flattenColumns:Qt}},[so,Qt]),co=M.useRef(),Ds=M.useRef(),ss=M.useRef(),Ps=M.useRef(),zs=M.useRef(),Oo=M.useState(!1),So=(0,O.Z)(Oo,2),Ao=So[0],es=So[1],Us=M.useState(!1),h=(0,O.Z)(Us,2),g=h[0],K=h[1],Je=tn(new Map),un=(0,O.Z)(Je,2),jn=un[0],bi=un[1],gr=le(Qt),Dr=gr.map(function(Xo){return jn.get(Xo)}),Gr=M.useMemo(function(){return Dr},[Dr.join("_")]),Is=Gt(Gr,Qt.length,zn),vs=Dn&&_t(Dn.y),ni=Dn&&_t(gs)||!!ei.fixed,nr=ni&&Qt.some(function(Xo){var ys=Xo.fixed;return ys}),mo=M.useRef(),ko=qe(Ft,vt),ts=ko.isSticky,Sa=ko.offsetHeader,pa=ko.offsetSummary,yo=ko.offsetScroll,as=ko.stickyClassName,Hs=ko.container,T=M.useMemo(function(){return Jn==null?void 0:Jn(At)},[Jn,At]),m=(vs||ts)&&M.isValidElement(T)&&T.type===N&&T.props.fixed,S,R,Y;vs&&(R={overflowY:"scroll",maxHeight:Dn.y}),ni&&(S={overflowX:"auto"},vs||(R={overflowY:"hidden"}),Y={width:gs===!0?"auto":gs,minWidth:"100%"});var re=M.useCallback(function(Xo,ys){(0,lt.Z)(co.current)&&bi(function(za){if(za.get(Xo)!==ys){var qa=new Map(za);return qa.set(Xo,ys),qa}return za})},[]),Z=xi(null),st=(0,O.Z)(Z,2),dt=st[0],pn=st[1];function Ln(Xo,ys){ys&&(typeof ys=="function"?ys(Xo):ys.scrollLeft!==Xo&&(ys.scrollLeft=Xo,ys.scrollLeft!==Xo&&setTimeout(function(){ys.scrollLeft=Xo},0)))}var Vn=(0,z.Z)(function(Xo){var ys=Xo.currentTarget,za=Xo.scrollLeft,qa=zn==="rtl",el=typeof za=="number"?za:ys.scrollLeft,Cc=ys||ae;if(!pn()||pn()===Cc){var ku;dt(Cc),Ln(el,Ds.current),Ln(el,ss.current),Ln(el,zs.current),Ln(el,(ku=mo.current)===null||ku===void 0?void 0:ku.setScrollLeft)}var Xc=ys||Ds.current;if(Xc){var pu=Xc.scrollWidth,tc=Xc.clientWidth;if(pu===tc){es(!1),K(!1);return}qa?(es(-el<pu-tc),K(-el>0)):(es(el>0),K(el<pu-tc))}}),wi=function(){ni&&ss.current?Vn({currentTarget:ss.current}):(es(!1),K(!1))},Ti=function(ys){var za=ys.width;za!==Mi&&(wi(),jr(co.current?co.current.offsetWidth:za))},Pi=M.useRef(!1);M.useEffect(function(){Pi.current&&wi()},[ni,cn,so.length]),M.useEffect(function(){Pi.current=!0},[]);var vr=M.useState(0),Pr=(0,O.Z)(vr,2),Fr=Pr[0],Eo=Pr[1],Ho=M.useState(!0),Ms=(0,O.Z)(Ho,2),Jo=Ms[0],$o=Ms[1];M.useEffect(function(){(!et||!$t)&&(ss.current instanceof Element?Eo((0,Ct.o)(ss.current).width):Eo((0,Ct.o)(Ps.current).width)),$o((0,Qe.G)("position","sticky"))},[]),M.useEffect(function(){$t&&$e&&($e.body.current=ss.current)});var ds=M.useCallback(function(Xo){return M.createElement(M.Fragment,null,M.createElement(Tr,Xo),m==="top"&&M.createElement(wt,Xo,T))},[m,T]),oa=M.useCallback(function(Xo){return M.createElement(wt,Xo,T)},[T]),ls=Vt(["table"],"table"),yl=M.useMemo(function(){return Bn||(nr?gs==="max-content"?"auto":"fixed":vs||ts||Qt.some(function(Xo){var ys=Xo.ellipsis;return ys})?"fixed":"auto")},[vs,nr,Qt,Bn,ts]),_a,sa={colWidths:Gr,columCount:Qt.length,stickyOffsets:Is,onHeaderRow:q,fixHeader:vs,scroll:Dn},Aa=M.useMemo(function(){return ct?null:typeof F=="function"?F():F},[ct,F]),ll=M.createElement(Gn,{data:At,measureColumnWidth:vs||ni||ts}),Kl=M.createElement(yr,{colWidths:Qt.map(function(Xo){var ys=Xo.width;return ys}),columns:Qt}),Fa=Fi!=null?M.createElement("caption",{className:"".concat(vt,"-caption")},Fi):void 0,Au=(0,nn.Z)(ut,{data:!0}),ec=(0,nn.Z)(ut,{aria:!0});if(vs||ts){var Pc;typeof yi=="function"?(Pc=yi(At,{scrollbarSize:Fr,ref:ss,onScroll:Vn}),sa.colWidths=Qt.map(function(Xo,ys){var za=Xo.width,qa=ys===Qt.length-1?za-Fr:za;return typeof qa=="number"&&!Number.isNaN(qa)?qa:0})):Pc=M.createElement("div",{style:(0,nt.Z)((0,nt.Z)({},S),R),onScroll:Vn,ref:ss,className:Ze()("".concat(vt,"-body"))},M.createElement(ls,(0,Pe.Z)({style:(0,nt.Z)((0,nt.Z)({},Y),{},{tableLayout:yl})},ec),Fa,Kl,ll,!m&&T&&M.createElement(wt,{stickyOffsets:Is,flattenColumns:Qt,columns:so},T)));var Fl=(0,nt.Z)((0,nt.Z)((0,nt.Z)({noData:!At.length,maxContentScroll:ni&&gs==="max-content"},sa),vn),{},{direction:zn,stickyClassName:as,onScroll:Vn});_a=M.createElement(M.Fragment,null,zi!==!1&&M.createElement(mr,(0,Pe.Z)({},Fl,{stickyTopOffset:Sa,className:"".concat(vt,"-header"),ref:Ds}),ds),Pc,m&&m!=="top"&&M.createElement(mr,(0,Pe.Z)({},Fl,{stickyBottomOffset:pa,className:"".concat(vt,"-summary"),ref:zs}),oa),ts&&M.createElement(Un,{ref:mo,offsetScroll:yo,scrollBodyRef:ss,onScroll:Vn,container:Hs}))}else _a=M.createElement("div",{style:(0,nt.Z)((0,nt.Z)({},S),R),className:Ze()("".concat(vt,"-content")),onScroll:Vn,ref:ss},M.createElement(ls,(0,Pe.Z)({style:(0,nt.Z)((0,nt.Z)({},Y),{},{tableLayout:yl})},ec),Fa,Kl,zi!==!1&&M.createElement(Tr,(0,Pe.Z)({},sa,vn)),ll,T&&M.createElement(wt,{stickyOffsets:Is,flattenColumns:Qt,columns:so},T)));var ma=M.createElement("div",(0,Pe.Z)({className:Ze()(vt,Lt,(Ae={},(0,ie.Z)(Ae,"".concat(vt,"-rtl"),zn==="rtl"),(0,ie.Z)(Ae,"".concat(vt,"-ping-left"),Ao),(0,ie.Z)(Ae,"".concat(vt,"-ping-right"),g),(0,ie.Z)(Ae,"".concat(vt,"-layout-fixed"),Bn==="fixed"),(0,ie.Z)(Ae,"".concat(vt,"-fixed-header"),vs),(0,ie.Z)(Ae,"".concat(vt,"-fixed-column"),nr),(0,ie.Z)(Ae,"".concat(vt,"-scroll-horizontal"),ni),(0,ie.Z)(Ae,"".concat(vt,"-has-fix-left"),Qt[0]&&Qt[0].fixed),(0,ie.Z)(Ae,"".concat(vt,"-has-fix-right"),Qt[Qt.length-1]&&Qt[Qt.length-1].fixed==="right"),Ae)),style:fe,id:ai,ref:co},Au),fi&&M.createElement(xt,{className:"".concat(vt,"-title")},fi(At)),M.createElement("div",{ref:Ps,className:"".concat(vt,"-container")},_a),gi&&M.createElement(xt,{className:"".concat(vt,"-footer")},gi(At)));ni&&(ma=M.createElement(mt.Z,{onResize:Ti},ma));var Bl=gn(Qt,Is,zn,so),Ks=M.useMemo(function(){return{scrollX:gs,prefixCls:vt,getComponent:Vt,scrollbarSize:Fr,direction:zn,fixedInfoList:Bl,isSticky:ts,supportSticky:Jo,componentWidth:Mi,fixHeader:vs,fixColumn:nr,horizonScroll:ni,tableLayout:yl,rowClassName:Nt,expandedRowClassName:ei.expandedRowClassName,expandIcon:Zr,expandableType:Zi,expandRowByClick:ei.expandRowByClick,expandedRowRender:ei.expandedRowRender,onTriggerExpand:No,expandIconColumnIndex:ei.expandIconColumnIndex,indentSize:ei.indentSize,allColumnsFixedLeft:Qt.every(function(Xo){return Xo.fixed==="left"}),emptyNode:Aa,columns:so,flattenColumns:Qt,onColumnResize:re,hoverStartRow:Si,hoverEndRow:Cr,onHover:ji,rowExpandable:ei.rowExpandable,onRow:G,getRowKey:Rt,expandedKeys:Kr,childrenColumnName:Qr}},[gs,vt,Vt,Fr,zn,Bl,ts,Jo,Mi,vs,nr,ni,yl,Nt,ei.expandedRowClassName,Zr,Zi,ei.expandRowByClick,ei.expandedRowRender,No,ei.expandIconColumnIndex,ei.indentSize,Aa,so,Qt,re,Si,Cr,ji,ei.rowExpandable,G,Rt,Kr,Qr]);return M.createElement(ee.Provider,{value:Ks},ma)}function Et(Se){return me(_e,Se)}var Ni=Et();Ni.EXPAND_COLUMN=b,Ni.INTERNAL_HOOKS=I,Ni.Column=Bi,Ni.ColumnGroup=Kt,Ni.Summary=ze;var Pn=Ni,Ki=d(4409),Zt=ue(null),Ii=ue(null);function Wt(Se,Ae,ut){var vt=Ae||1;return ut[Se+vt]-(ut[Se]||0)}function Yi(Se){var Ae=Se.rowInfo,ut=Se.column,vt=Se.colIndex,Lt=Se.indent,Nt=Se.index,fe=Se.renderIndex,cn=Se.record,en=Se.style,Dn=Se.className,Bn=Se.inverse,zn=Se.getHeight,fi=ut.render,gi=ut.dataIndex,Jn=ut.className,Fi=ut.width,ai=ne(Ii,["columnsOffset"]),zi=ai.columnsOffset,E=Pt(Ae,ut,vt,Lt,Nt),F=E.key,G=E.fixedInfo,q=E.appendCellNode,he=E.additionalCellProps,Ee=he.style,$e=he.colSpan,et=$e===void 0?1:$e,Ft=he.rowSpan,At=Ft===void 0?1:Ft,ct=vt-1,$t=Wt(ct,et,zi),Vt=et>1?Fi-$t:0,Rt=(0,nt.Z)((0,nt.Z)((0,nt.Z)({},Ee),en),{},{flex:"0 0 ".concat($t,"px"),width:"".concat($t,"px"),marginRight:Vt,pointerEvents:"auto"}),yi=M.useMemo(function(){return Bn?At<=1:et===0||At===0||At>1},[At,et,Bn]);yi?Rt.visibility="hidden":Bn&&(Rt.height=zn==null?void 0:zn(At));var si=yi?function(){return null}:fi,sr={};return(At===0||et===0)&&(sr.rowSpan=1,sr.colSpan=1),M.createElement(ri,(0,Pe.Z)({className:Ze()(Jn,Dn),ellipsis:ut.ellipsis,align:ut.align,scope:ut.rowScope,component:"div",prefixCls:Ae.prefixCls,key:F,record:cn,index:Nt,renderIndex:fe,dataIndex:gi,render:si,shouldCellUpdate:ut.shouldCellUpdate},G,{appendNode:q,additionalProps:(0,nt.Z)((0,nt.Z)({},he),{},{style:Rt},sr)}))}var io=Yi,It=["data","index","className","rowKey","style","extra","getHeight"],Mo=M.forwardRef(function(Se,Ae){var ut=Se.data,vt=Se.index,Lt=Se.className,Nt=Se.rowKey,fe=Se.style,cn=Se.extra,en=Se.getHeight,Dn=(0,P.Z)(Se,It),Bn=ut.record,zn=ut.indent,fi=ut.index,gi=ne(ee,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Jn=gi.scrollX,Fi=gi.flattenColumns,ai=gi.prefixCls,zi=gi.fixColumn,E=gi.componentWidth,F=Ve(Bn,Nt,vt,zn),G=F.rowSupportExpand,q=F.expanded,he=F.rowProps,Ee=F.expandedRowRender,$e=F.expandedRowClassName,et;if(G&&q){var Ft=Ee(Bn,vt,zn+1,q),At=$e==null?void 0:$e(Bn,vt,zn),ct={};zi&&(ct={style:(0,ie.Z)({},"--virtual-width","".concat(E,"px"))});var $t="".concat(ai,"-expanded-row-cell");et=M.createElement("div",{className:Ze()("".concat(ai,"-expanded-row"),"".concat(ai,"-expanded-row-level-").concat(zn+1),At)},M.createElement(ri,{component:"div",prefixCls:ai,className:Ze()($t,(0,ie.Z)({},"".concat($t,"-fixed"),zi)),additionalProps:ct},Ft))}var Vt=(0,nt.Z)((0,nt.Z)({},fe),{},{width:Jn});cn&&(Vt.position="absolute",Vt.pointerEvents="none");var Rt=M.createElement("div",(0,Pe.Z)({},he,Dn,{ref:G?null:Ae,className:Ze()(Lt,"".concat(ai,"-row"),he==null?void 0:he.className,(0,ie.Z)({},"".concat(ai,"-row-extra"),cn)),style:(0,nt.Z)((0,nt.Z)({},Vt),he==null?void 0:he.style)}),Fi.map(function(yi,si){return M.createElement(io,{key:si,rowInfo:F,column:yi,colIndex:si,indent:zn,index:vt,renderIndex:fi,record:Bn,inverse:cn,getHeight:en})}));return G?M.createElement("div",{ref:Ae},Rt,et):Rt}),Jt=we(Mo),_i=Jt,Li=M.forwardRef(function(Se,Ae){var ut=Se.data,vt=Se.onScroll,Lt=ne(ee,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),Nt=Lt.flattenColumns,fe=Lt.onColumnResize,cn=Lt.getRowKey,en=Lt.expandedKeys,Dn=Lt.prefixCls,Bn=Lt.childrenColumnName,zn=Lt.emptyNode,fi=Lt.scrollX,gi=ne(Zt),Jn=gi.scrollY,Fi=gi.listItemHeight,ai=M.useRef(),zi=Ot(ut,Bn,en,cn),E=M.useMemo(function(){var et=0;return Nt.map(function(Ft){var At=Ft.width,ct=Ft.key;return et+=At,[ct,At,et]})},[Nt]),F=M.useMemo(function(){return E.map(function(et){return et[2]})},[E]);M.useEffect(function(){E.forEach(function(et){var Ft=(0,O.Z)(et,2),At=Ft[0],ct=Ft[1];fe(At,ct)})},[E]),M.useImperativeHandle(Ae,function(){var et={};return Object.defineProperty(et,"scrollLeft",{get:function(){var At;return((At=ai.current)===null||At===void 0?void 0:At.getScrollInfo().x)||0},set:function(At){var ct;(ct=ai.current)===null||ct===void 0||ct.scrollTo({left:At})}}),et});var G=function(Ft,At){var ct,$t=(ct=zi[At])===null||ct===void 0?void 0:ct.record,Vt=Ft.onCell;if(Vt){var Rt,yi=Vt($t,At);return(Rt=yi==null?void 0:yi.rowSpan)!==null&&Rt!==void 0?Rt:1}return 1},q=function(Ft){var At=Ft.start,ct=Ft.end,$t=Ft.getSize,Vt=Ft.offsetY;if(ct<0)return null;for(var Rt=Nt.filter(function(tr){return G(tr,At)===0}),yi=At,si=function(Ai){if(Rt=Rt.filter(function(Gi){return G(Gi,Ai)===0}),!Rt.length)return yi=Ai,"break"},sr=At;sr>=0;sr-=1){var Si=si(sr);if(Si==="break")break}for(var Cr=Nt.filter(function(tr){return G(tr,ct)!==1}),ji=ct,to=function(Ai){if(Cr=Cr.filter(function(Gi){return G(Gi,Ai)!==1}),!Cr.length)return ji=Math.max(Ai-1,ct),"break"},oo=ct;oo<zi.length;oo+=1){var ei=to(oo);if(ei==="break")break}for(var Zi=[],Kr=function(Ai){var Gi=zi[Ai];if(!Gi)return"continue";Nt.some(function(Mi){return G(Mi,Ai)>1})&&Zi.push(Ai)},Zr=yi;Zr<=ji;Zr+=1)var Qr=Kr(Zr);var No=Zi.map(function(tr){var Ai=zi[tr],Gi=cn(Ai.record,tr),Mi=function(Lr){var so=tr+Lr-1,Qt=cn(zi[so].record,so),ms=$t(Gi,Qt);return ms.bottom-ms.top},jr=$t(Gi);return M.createElement(_i,{key:tr,data:Ai,rowKey:Gi,index:tr,style:{top:-Vt+jr.top},extra:!0,getHeight:Mi})});return No},he=M.useMemo(function(){return{columnsOffset:F}},[F]),Ee="".concat(Dn,"-tbody"),$e;return zi.length?$e=M.createElement(Ki.Z,{fullHeight:!1,ref:ai,className:Ze()(Ee,"".concat(Ee,"-virtual")),height:Jn,itemHeight:Fi||24,data:zi,itemKey:function(Ft){return cn(Ft.record)},scrollWidth:fi,onVirtualScroll:function(Ft){var At=Ft.x;vt({scrollLeft:At})},extraRender:q},function(et,Ft,At){var ct=cn(et.record,Ft);return M.createElement(_i,(0,Pe.Z)({data:et,rowKey:ct,index:Ft},At))}):$e=M.createElement("div",{className:Ze()("".concat(Dn,"-placeholder"))},M.createElement(ri,{component:"div",prefixCls:Dn},zn)),M.createElement(Ii.Provider,{value:he},$e)}),Sr=we(Li),Or=Sr,qn=function(Ae,ut){var vt=ut.ref,Lt=ut.onScroll;return M.createElement(Or,{ref:vt,data:Ae,onScroll:Lt})},ce=100;function Ar(Se){var Ae=Se.columns,ut=Se.scroll,vt=Se.prefixCls,Lt=vt===void 0?Qi:vt,Nt=Se.className,fe=Se.listItemHeight,cn=ut||{},en=cn.x,Dn=cn.y;typeof en!="number"&&(en=((Ae||[]).length+1)*ce),typeof Dn!="number"&&(Dn=500);var Bn=M.useMemo(function(){return{scrollY:Dn,listItemHeight:fe}},[Dn,fe]);return M.createElement(Zt.Provider,{value:Bn},M.createElement(Pn,(0,Pe.Z)({},Se,{className:Ze()(Nt,"".concat(Lt,"-virtual")),scroll:(0,nt.Z)((0,nt.Z)({},ut),{},{x:en}),components:{body:qn},columns:Ae,internalHooks:I,tailor:!0})))}function eo(Se){return me(Ar,Se)}var br=eo(),fo=null;function qi(Se){return null}var Xr=qi;function Ri(Se){return null}var Vi=Ri,Hi=d(2738),$r=d(68031),Vr=d(36355),wo=d(93891),Ko=d(19716),mi=d(8628),Rs=d(31724),fs=d(58421),cs=d(71418),Bs=d(88088);function ca(Se){return function(ut){let{prefixCls:vt,onExpand:Lt,record:Nt,expanded:fe,expandable:cn}=ut;const en=`${vt}-row-expand-icon`;return M.createElement("button",{type:"button",onClick:Dn=>{Lt(Nt,Dn),Dn.stopPropagation()},className:Ze()(en,{[`${en}-spaced`]:!cn,[`${en}-expanded`]:cn&&fe,[`${en}-collapsed`]:cn&&!fe}),"aria-label":fe?Se.collapse:Se.expand,"aria-expanded":fe})}}var Ya=ca;function ra(Se,Ae){return"key"in Se&&Se.key!==void 0&&Se.key!==null?Se.key:Se.dataIndex?Array.isArray(Se.dataIndex)?Se.dataIndex.join("."):Se.dataIndex:Ae}function Ha(Se,Ae){return Ae?`${Ae}-${Se}`:`${Se}`}function ya(Se,Ae){return typeof Se=="function"?Se(Ae):Se}function ns(Se,Ae){const ut=ya(Se,Ae);return Object.prototype.toString.call(ut)==="[object Object]"?"":ut}var Ht={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"},Ws=Ht,Eu=d(7657),Ml=function(Ae,ut){return M.createElement(Eu.Z,(0,Pe.Z)({},Ae,{ref:ut,icon:Ws}))},po=M.forwardRef(Ml),_o=po,Ss=d(56762);function Ut(Se){const Ae=M.useRef(Se),ut=(0,Ss.Z)();return[()=>Ae.current,vt=>{Ae.current=vt,ut()}]}var zr=d(3113),Co=d(24905),ba=d(38854),Er=d(64165),yn=d(20834),pr=d(40875),pi=d(5112),Yo=d(17574),Ns=d(47472),ha=d(92832);function Oa(Se){let{value:Ae,onChange:ut,filterSearch:vt,tablePrefixCls:Lt,locale:Nt}=Se;return vt?M.createElement("div",{className:`${Lt}-filter-dropdown-search`},M.createElement(ha.default,{prefix:M.createElement(Ns.Z,null),placeholder:Nt.filterSearchPlaceholder,onChange:ut,value:Ae,htmlSize:1,className:`${Lt}-filter-dropdown-search-input`})):null}var Ca=Oa,oi=d(10228);const Di=Se=>{const{keyCode:Ae}=Se;Ae===oi.Z.ENTER&&Se.stopPropagation()};var Ta=M.forwardRef((Se,Ae)=>M.createElement("div",{className:Se.className,onClick:ut=>ut.stopPropagation(),onKeyDown:Di,ref:Ae},Se.children));function Go(Se){let Ae=[];return(Se||[]).forEach(ut=>{let{value:vt,children:Lt}=ut;Ae.push(vt),Lt&&(Ae=[].concat((0,Zn.Z)(Ae),(0,Zn.Z)(Go(Lt))))}),Ae}function Js(Se){return Se.some(Ae=>{let{children:ut}=Ae;return ut})}function kr(Se,Ae){return typeof Ae=="string"||typeof Ae=="number"?Ae==null?void 0:Ae.toString().toLowerCase().includes(Se.trim().toLowerCase()):!1}function ol(Se){let{filters:Ae,prefixCls:ut,filteredKeys:vt,filterMultiple:Lt,searchValue:Nt,filterSearch:fe}=Se;return Ae.map((cn,en)=>{const Dn=String(cn.value);if(cn.children)return{key:Dn||en,label:cn.text,popupClassName:`${ut}-dropdown-submenu`,children:ol({filters:cn.children,prefixCls:ut,filteredKeys:vt,filterMultiple:Lt,searchValue:Nt,filterSearch:fe})};const Bn=Lt?Co.default:pi.ZP,zn={key:cn.value!==void 0?Dn:en,label:M.createElement(M.Fragment,null,M.createElement(Bn,{checked:vt.includes(Dn)}),M.createElement("span",null,cn.text))};return Nt.trim()?typeof fe=="function"?fe(Nt,cn)?zn:null:kr(Nt,cn.text)?zn:null:zn})}function La(Se){var Ae,ut;const{tablePrefixCls:vt,prefixCls:Lt,column:Nt,dropdownPrefixCls:fe,columnKey:cn,filterMultiple:en,filterMode:Dn="menu",filterSearch:Bn=!1,filterState:zn,triggerFilter:fi,locale:gi,children:Jn,getPopupContainer:Fi}=Se,{filterDropdownOpen:ai,onFilterDropdownOpenChange:zi,filterResetToDefaultFilteredValue:E,defaultFilteredValue:F,filterDropdownVisible:G,onFilterDropdownVisibleChange:q}=Nt,[he,Ee]=M.useState(!1),$e=!!(zn&&(!((Ae=zn.filteredKeys)===null||Ae===void 0)&&Ae.length||zn.forceFiltered)),et=Wi=>{Ee(Wi),zi==null||zi(Wi),q==null||q(Wi)},Ft=(ut=ai!=null?ai:G)!==null&&ut!==void 0?ut:he,At=zn==null?void 0:zn.filteredKeys,[ct,$t]=Ut(At||[]),Vt=Wi=>{let{selectedKeys:Lr}=Wi;$t(Lr)},Rt=(Wi,Lr)=>{let{node:so,checked:Qt}=Lr;Vt(en?{selectedKeys:Wi}:{selectedKeys:Qt&&so.key?[so.key]:[]})};M.useEffect(()=>{he&&Vt({selectedKeys:At||[]})},[At]);const[yi,si]=M.useState([]),sr=Wi=>{si(Wi)},[Si,Cr]=M.useState(""),ji=Wi=>{const{value:Lr}=Wi.target;Cr(Lr)};M.useEffect(()=>{he||Cr("")},[he]);const to=Wi=>{const Lr=Wi&&Wi.length?Wi:null;if(Lr===null&&(!zn||!zn.filteredKeys)||(0,_.Z)(Lr,zn==null?void 0:zn.filteredKeys,!0))return null;fi({column:Nt,key:cn,filteredKeys:Lr})},oo=()=>{et(!1),to(ct())},ei=function(){let{confirm:Wi,closeDropdown:Lr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Wi&&to([]),Lr&&et(!1),Cr(""),$t(E?(F||[]).map(so=>String(so)):[])},Zi=function(){let{closeDropdown:Wi}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Wi&&et(!1),to(ct())},Kr=Wi=>{Wi&&At!==void 0&&$t(At||[]),et(Wi),!Wi&&!Nt.filterDropdown&&oo()},Zr=Ze()({[`${fe}-menu-without-submenu`]:!Js(Nt.filters||[])}),Qr=Wi=>{if(Wi.target.checked){const Lr=Go(Nt==null?void 0:Nt.filters).map(so=>String(so));$t(Lr)}else $t([])},No=Wi=>{let{filters:Lr}=Wi;return(Lr||[]).map((so,Qt)=>{const ms=String(so.value),gs={title:so.text,key:so.value!==void 0?ms:Qt};return so.children&&(gs.children=No({filters:so.children})),gs})},tr=Wi=>{var Lr;return Object.assign(Object.assign({},Wi),{text:Wi.title,value:Wi.key,children:((Lr=Wi.children)===null||Lr===void 0?void 0:Lr.map(so=>tr(so)))||[]})};let Ai;if(typeof Nt.filterDropdown=="function")Ai=Nt.filterDropdown({prefixCls:`${fe}-custom`,setSelectedKeys:Wi=>Vt({selectedKeys:Wi}),selectedKeys:ct(),confirm:Zi,clearFilters:ei,filters:Nt.filters,visible:Ft,close:()=>{et(!1)}});else if(Nt.filterDropdown)Ai=Nt.filterDropdown;else{const Wi=ct()||[],Lr=()=>(Nt.filters||[]).length===0?M.createElement(Er.Z,{image:Er.Z.PRESENTED_IMAGE_SIMPLE,description:gi.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):Dn==="tree"?M.createElement(M.Fragment,null,M.createElement(Ca,{filterSearch:Bn,value:Si,onChange:ji,tablePrefixCls:vt,locale:gi}),M.createElement("div",{className:`${vt}-filter-dropdown-tree`},en?M.createElement(Co.default,{checked:Wi.length===Go(Nt.filters).length,indeterminate:Wi.length>0&&Wi.length<Go(Nt.filters).length,className:`${vt}-filter-dropdown-checkall`,onChange:Qr},gi.filterCheckall):null,M.createElement(Yo.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:en,checkStrictly:!en,className:`${fe}-menu`,onCheck:Rt,checkedKeys:Wi,selectedKeys:Wi,showIcon:!1,treeData:No({filters:Nt.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Si.trim()?Qt=>typeof Bn=="function"?Bn(Si,tr(Qt)):kr(Si,Qt.title):void 0}))):M.createElement(M.Fragment,null,M.createElement(Ca,{filterSearch:Bn,value:Si,onChange:ji,tablePrefixCls:vt,locale:gi}),M.createElement(yn.default,{selectable:!0,multiple:en,prefixCls:`${fe}-menu`,className:Zr,onSelect:Vt,onDeselect:Vt,selectedKeys:Wi,getPopupContainer:Fi,openKeys:yi,onOpenChange:sr,items:ol({filters:Nt.filters||[],filterSearch:Bn,prefixCls:Lt,filteredKeys:ct(),filterMultiple:en,searchValue:Si})})),so=()=>E?(0,_.Z)((F||[]).map(Qt=>String(Qt)),Wi,!0):Wi.length===0;Ai=M.createElement(M.Fragment,null,Lr(),M.createElement("div",{className:`${Lt}-dropdown-btns`},M.createElement(zr.ZP,{type:"link",size:"small",disabled:so(),onClick:()=>ei()},gi.filterReset),M.createElement(zr.ZP,{type:"primary",size:"small",onClick:oo},gi.filterConfirm)))}Nt.filterDropdown&&(Ai=M.createElement(pr.J,{selectable:void 0},Ai));const Gi=()=>M.createElement(Ta,{className:`${Lt}-dropdown`},Ai);let Mi;typeof Nt.filterIcon=="function"?Mi=Nt.filterIcon($e):Nt.filterIcon?Mi=Nt.filterIcon:Mi=M.createElement(_o,null);const{direction:jr}=M.useContext(Vr.E_);return M.createElement("div",{className:`${Lt}-column`},M.createElement("span",{className:`${vt}-column-title`},Jn),M.createElement(ba.Z,{dropdownRender:Gi,trigger:["click"],open:Ft,onOpenChange:Kr,getPopupContainer:Fi,placement:jr==="rtl"?"bottomLeft":"bottomRight"},M.createElement("span",{role:"button",tabIndex:-1,className:Ze()(`${Lt}-trigger`,{active:$e}),onClick:Wi=>{Wi.stopPropagation()}},Mi)))}var Ra=La;function zo(Se,Ae,ut){let vt=[];return(Se||[]).forEach((Lt,Nt)=>{var fe;const cn=Ha(Nt,ut);if(Lt.filters||"filterDropdown"in Lt||"onFilter"in Lt)if("filteredValue"in Lt){let en=Lt.filteredValue;"filterDropdown"in Lt||(en=(fe=en==null?void 0:en.map(String))!==null&&fe!==void 0?fe:en),vt.push({column:Lt,key:ra(Lt,cn),filteredKeys:en,forceFiltered:Lt.filtered})}else vt.push({column:Lt,key:ra(Lt,cn),filteredKeys:Ae&&Lt.defaultFilteredValue?Lt.defaultFilteredValue:void 0,forceFiltered:Lt.filtered});"children"in Lt&&(vt=[].concat((0,Zn.Z)(vt),(0,Zn.Z)(zo(Lt.children,Ae,cn))))}),vt}function qs(Se,Ae,ut,vt,Lt,Nt,fe,cn){return ut.map((en,Dn)=>{const Bn=Ha(Dn,cn),{filterMultiple:zn=!0,filterMode:fi,filterSearch:gi}=en;let Jn=en;if(Jn.filters||Jn.filterDropdown){const Fi=ra(Jn,Bn),ai=vt.find(zi=>{let{key:E}=zi;return Fi===E});Jn=Object.assign(Object.assign({},Jn),{title:zi=>M.createElement(Ra,{tablePrefixCls:Se,prefixCls:`${Se}-filter`,dropdownPrefixCls:Ae,column:Jn,columnKey:Fi,filterState:ai,filterMultiple:zn,filterMode:fi,filterSearch:gi,triggerFilter:Nt,locale:Lt,getPopupContainer:fe},ya(en.title,zi))})}return"children"in Jn&&(Jn=Object.assign(Object.assign({},Jn),{children:qs(Se,Ae,Jn.children,vt,Lt,Nt,fe,Bn)})),Jn})}function Ol(Se){const Ae={};return Se.forEach(ut=>{let{key:vt,filteredKeys:Lt,column:Nt}=ut;const{filters:fe,filterDropdown:cn}=Nt;if(cn)Ae[vt]=Lt||null;else if(Array.isArray(Lt)){const en=Go(fe);Ae[vt]=en.filter(Dn=>Lt.includes(String(Dn)))}else Ae[vt]=null}),Ae}function Vs(Se,Ae){return Ae.reduce((ut,vt)=>{const{column:{onFilter:Lt,filters:Nt},filteredKeys:fe}=vt;return Lt&&fe&&fe.length?ut.filter(cn=>fe.some(en=>{const Dn=Go(Nt),Bn=Dn.findIndex(fi=>String(fi)===String(en)),zn=Bn!==-1?Dn[Bn]:en;return Lt(zn,cn)})):ut},Se)}const As=Se=>Se.flatMap(Ae=>"children"in Ae?[Ae].concat((0,Zn.Z)(As(Ae.children||[]))):[Ae]);function pl(Se){let{prefixCls:Ae,dropdownPrefixCls:ut,mergedColumns:vt,onFilterChange:Lt,getPopupContainer:Nt,locale:fe}=Se;const cn=M.useMemo(()=>As(vt||[]),[vt]),[en,Dn]=M.useState(()=>zo(cn,!0)),Bn=M.useMemo(()=>{const Jn=zo(cn,!1);if(Jn.length===0)return Jn;let Fi=!0,ai=!0;if(Jn.forEach(zi=>{let{filteredKeys:E}=zi;E!==void 0?Fi=!1:ai=!1}),Fi){const zi=(cn||[]).map((E,F)=>ra(E,Ha(F)));return en.filter(E=>{let{key:F}=E;return zi.includes(F)}).map(E=>{const F=cn[zi.findIndex(G=>G===E.key)];return Object.assign(Object.assign({},E),{column:Object.assign(Object.assign({},E.column),F),forceFiltered:F.filtered})})}return Jn},[cn,en]),zn=M.useMemo(()=>Ol(Bn),[Bn]),fi=Jn=>{const Fi=Bn.filter(ai=>{let{key:zi}=ai;return zi!==Jn.key});Fi.push(Jn),Dn(Fi),Lt(Ol(Fi),Fi)};return[Jn=>qs(Ae,ut,Jn,Bn,fe,fi,Nt),Bn,zn]}var Wo=pl;function $a(Se,Ae,ut){const vt=M.useRef({});function Lt(Nt){if(!vt.current||vt.current.data!==Se||vt.current.childrenColumnName!==Ae||vt.current.getRowKey!==ut){let cn=function(en){en.forEach((Dn,Bn)=>{const zn=ut(Dn,Bn);fe.set(zn,Dn),Dn&&typeof Dn=="object"&&Ae in Dn&&cn(Dn[Ae]||[])})};const fe=new Map;cn(Se),vt.current={data:Se,childrenColumnName:Ae,kvMap:fe,getRowKey:ut}}return vt.current.kvMap.get(Nt)}return[Lt]}var wu=d(50371),Ll=function(Se,Ae){var ut={};for(var vt in Se)Object.prototype.hasOwnProperty.call(Se,vt)&&Ae.indexOf(vt)<0&&(ut[vt]=Se[vt]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,vt=Object.getOwnPropertySymbols(Se);Lt<vt.length;Lt++)Ae.indexOf(vt[Lt])<0&&Object.prototype.propertyIsEnumerable.call(Se,vt[Lt])&&(ut[vt[Lt]]=Se[vt[Lt]]);return ut};const ea=10;function Ls(Se,Ae){const ut={current:Se.current,pageSize:Se.pageSize};return Object.keys(Ae&&typeof Ae=="object"?Ae:{}).forEach(Lt=>{const Nt=Se[Lt];typeof Nt!="function"&&(ut[Lt]=Nt)}),ut}function ja(Se,Ae,ut){const vt=ut&&typeof ut=="object"?ut:{},{total:Lt=0}=vt,Nt=Ll(vt,["total"]),[fe,cn]=(0,M.useState)(()=>({current:"defaultCurrent"in Nt?Nt.defaultCurrent:1,pageSize:"defaultPageSize"in Nt?Nt.defaultPageSize:ea})),en=(0,wu.Z)(fe,Nt,{total:Lt>0?Lt:Se}),Dn=Math.ceil((Lt||Se)/en.pageSize);en.current>Dn&&(en.current=Dn||1);const Bn=(fi,gi)=>{cn({current:fi!=null?fi:1,pageSize:gi||en.pageSize})},zn=(fi,gi)=>{var Jn;ut&&((Jn=ut.onChange)===null||Jn===void 0||Jn.call(ut,fi,gi)),Bn(fi,gi),Ae(fi,gi||(en==null?void 0:en.pageSize))};return ut===!1?[{},()=>{}]:[Object.assign(Object.assign({},en),{onChange:zn}),Bn]}var $i=ja,Na=d(84105),Rl=d(35654),Ur=d(90782),bo=d(71430),hs=d(18929);const is={},qr="SELECT_ALL",rs="SELECT_INVERT",ps="SELECT_NONE",ks=[],Es=(Se,Ae)=>{let ut=[];return(Ae||[]).forEach(vt=>{ut.push(vt),vt&&typeof vt=="object"&&Se in vt&&(ut=[].concat((0,Zn.Z)(ut),(0,Zn.Z)(Es(Se,vt[Se]))))}),ut};var Za=(Se,Ae)=>{const{preserveSelectedRowKeys:ut,selectedRowKeys:vt,defaultSelectedRowKeys:Lt,getCheckboxProps:Nt,onChange:fe,onSelect:cn,onSelectAll:en,onSelectInvert:Dn,onSelectNone:Bn,onSelectMultiple:zn,columnWidth:fi,type:gi,selections:Jn,fixed:Fi,renderCell:ai,hideSelectAll:zi,checkStrictly:E=!0}=Ae||{},{prefixCls:F,data:G,pageData:q,getRecordByKey:he,getRowKey:Ee,expandType:$e,childrenColumnName:et,locale:Ft,getPopupContainer:At}=Se,[ct,$t]=(0,hs.Z)(vt||Lt||ks,{value:vt}),Vt=M.useRef(new Map),Rt=(0,M.useCallback)(tr=>{if(ut){const Ai=new Map;tr.forEach(Gi=>{let Mi=he(Gi);!Mi&&Vt.current.has(Gi)&&(Mi=Vt.current.get(Gi)),Ai.set(Gi,Mi)}),Vt.current=Ai}},[he,ut]);M.useEffect(()=>{Rt(ct)},[ct]);const{keyEntities:yi}=(0,M.useMemo)(()=>{if(E)return{keyEntities:null};let tr=G;if(ut){const Ai=new Set(G.map((Mi,jr)=>Ee(Mi,jr))),Gi=Array.from(Vt.current).reduce((Mi,jr)=>{let[Wi,Lr]=jr;return Ai.has(Wi)?Mi:Mi.concat(Lr)},[]);tr=[].concat((0,Zn.Z)(tr),(0,Zn.Z)(Gi))}return(0,bo.I8)(tr,{externalGetKey:Ee,childrenPropName:et})},[G,Ee,E,et,ut]),si=(0,M.useMemo)(()=>Es(et,q),[et,q]),sr=(0,M.useMemo)(()=>{const tr=new Map;return si.forEach((Ai,Gi)=>{const Mi=Ee(Ai,Gi),jr=(Nt?Nt(Ai):null)||{};tr.set(Mi,jr)}),tr},[si,Ee,Nt]),Si=(0,M.useCallback)(tr=>{var Ai;return!!(!((Ai=sr.get(Ee(tr)))===null||Ai===void 0)&&Ai.disabled)},[sr,Ee]),[Cr,ji]=(0,M.useMemo)(()=>{if(E)return[ct||[],[]];const{checkedKeys:tr,halfCheckedKeys:Ai}=(0,Ur.S)(ct,!0,yi,Si);return[tr||[],Ai]},[ct,E,yi,Si]),to=(0,M.useMemo)(()=>{const tr=gi==="radio"?Cr.slice(0,1):Cr;return new Set(tr)},[Cr,gi]),oo=(0,M.useMemo)(()=>gi==="radio"?new Set:new Set(ji),[ji,gi]),[ei,Zi]=(0,M.useState)(null);M.useEffect(()=>{Ae||$t(ks)},[!!Ae]);const Kr=(0,M.useCallback)((tr,Ai)=>{let Gi,Mi;Rt(tr),ut?(Gi=tr,Mi=tr.map(jr=>Vt.current.get(jr))):(Gi=[],Mi=[],tr.forEach(jr=>{const Wi=he(jr);Wi!==void 0&&(Gi.push(jr),Mi.push(Wi))})),$t(Gi),fe==null||fe(Gi,Mi,{type:Ai})},[$t,he,fe,ut]),Zr=(0,M.useCallback)((tr,Ai,Gi,Mi)=>{if(cn){const jr=Gi.map(Wi=>he(Wi));cn(he(tr),Ai,jr,Mi)}Kr(Gi,"single")},[cn,he,Kr]),Qr=(0,M.useMemo)(()=>!Jn||zi?null:(Jn===!0?[qr,rs,ps]:Jn).map(Ai=>Ai===qr?{key:"all",text:Ft.selectionAll,onSelect(){Kr(G.map((Gi,Mi)=>Ee(Gi,Mi)).filter(Gi=>{const Mi=sr.get(Gi);return!(Mi!=null&&Mi.disabled)||to.has(Gi)}),"all")}}:Ai===rs?{key:"invert",text:Ft.selectInvert,onSelect(){const Gi=new Set(to);q.forEach((jr,Wi)=>{const Lr=Ee(jr,Wi),so=sr.get(Lr);so!=null&&so.disabled||(Gi.has(Lr)?Gi.delete(Lr):Gi.add(Lr))});const Mi=Array.from(Gi);Dn&&Dn(Mi),Kr(Mi,"invert")}}:Ai===ps?{key:"none",text:Ft.selectNone,onSelect(){Bn==null||Bn(),Kr(Array.from(to).filter(Gi=>{const Mi=sr.get(Gi);return Mi==null?void 0:Mi.disabled}),"none")}}:Ai).map(Ai=>Object.assign(Object.assign({},Ai),{onSelect:function(){for(var Gi,Mi,jr=arguments.length,Wi=new Array(jr),Lr=0;Lr<jr;Lr++)Wi[Lr]=arguments[Lr];(Mi=Ai.onSelect)===null||Mi===void 0||(Gi=Mi).call.apply(Gi,[Ai].concat(Wi)),Zi(null)}})),[Jn,to,q,Ee,Dn,Kr]);return[(0,M.useCallback)(tr=>{var Ai;if(!Ae)return tr.filter(Oo=>Oo!==is);let Gi=(0,Zn.Z)(tr);const Mi=new Set(to),jr=si.map(Ee).filter(Oo=>!sr.get(Oo).disabled),Wi=jr.every(Oo=>Mi.has(Oo)),Lr=jr.some(Oo=>Mi.has(Oo)),so=()=>{const Oo=[];Wi?jr.forEach(Ao=>{Mi.delete(Ao),Oo.push(Ao)}):jr.forEach(Ao=>{Mi.has(Ao)||(Mi.add(Ao),Oo.push(Ao))});const So=Array.from(Mi);en==null||en(!Wi,So.map(Ao=>he(Ao)),Oo.map(Ao=>he(Ao))),Kr(So,"all"),Zi(null)};let Qt;if(gi!=="radio"){let Oo;if(Qr){const h={getPopupContainer:At,items:Qr.map((g,K)=>{const{key:Je,text:un,onSelect:jn}=g;return{key:Je!=null?Je:K,onClick:()=>{jn==null||jn(jr)},label:un}})};Oo=M.createElement("div",{className:`${F}-selection-extra`},M.createElement(ba.Z,{menu:h,getPopupContainer:At},M.createElement("span",null,M.createElement(Na.Z,null))))}const So=si.map((h,g)=>{const K=Ee(h,g),Je=sr.get(K)||{};return Object.assign({checked:Mi.has(K)},Je)}).filter(h=>{let{disabled:g}=h;return g}),Ao=!!So.length&&So.length===si.length,es=Ao&&So.every(h=>{let{checked:g}=h;return g}),Us=Ao&&So.some(h=>{let{checked:g}=h;return g});Qt=!zi&&M.createElement("div",{className:`${F}-selection`},M.createElement(Co.default,{checked:Ao?es:!!si.length&&Wi,indeterminate:Ao?!es&&Us:!Wi&&Lr,onChange:so,disabled:si.length===0||Ao,"aria-label":Oo?"Custom selection":"Select all",skipGroup:!0}),Oo)}let ms;gi==="radio"?ms=(Oo,So,Ao)=>{const es=Ee(So,Ao),Us=Mi.has(es);return{node:M.createElement(pi.ZP,Object.assign({},sr.get(es),{checked:Us,onClick:h=>h.stopPropagation(),onChange:h=>{Mi.has(es)||Zr(es,!0,[es],h.nativeEvent)}})),checked:Us}}:ms=(Oo,So,Ao)=>{var es;const Us=Ee(So,Ao),h=Mi.has(Us),g=oo.has(Us),K=sr.get(Us);let Je;return $e==="nest"?Je=g:Je=(es=K==null?void 0:K.indeterminate)!==null&&es!==void 0?es:g,{node:M.createElement(Co.default,Object.assign({},K,{indeterminate:Je,checked:h,skipGroup:!0,onClick:un=>un.stopPropagation(),onChange:un=>{let{nativeEvent:jn}=un;const{shiftKey:bi}=jn;let gr=-1,Dr=-1;if(bi&&E){const Gr=new Set([ei,Us]);jr.some((Is,vs)=>{if(Gr.has(Is))if(gr===-1)gr=vs;else return Dr=vs,!0;return!1})}if(Dr!==-1&&gr!==Dr&&E){const Gr=jr.slice(gr,Dr+1),Is=[];h?Gr.forEach(ni=>{Mi.has(ni)&&(Is.push(ni),Mi.delete(ni))}):Gr.forEach(ni=>{Mi.has(ni)||(Is.push(ni),Mi.add(ni))});const vs=Array.from(Mi);zn==null||zn(!h,vs.map(ni=>he(ni)),Is.map(ni=>he(ni))),Kr(vs,"multiple")}else{const Gr=Cr;if(E){const Is=h?(0,Rl._5)(Gr,Us):(0,Rl.L0)(Gr,Us);Zr(Us,!h,Is,jn)}else{const Is=(0,Ur.S)([].concat((0,Zn.Z)(Gr),[Us]),!0,yi,Si),{checkedKeys:vs,halfCheckedKeys:ni}=Is;let nr=vs;if(h){const mo=new Set(vs);mo.delete(Us),nr=(0,Ur.S)(Array.from(mo),{checked:!1,halfCheckedKeys:ni},yi,Si).checkedKeys}Zr(Us,!h,nr,jn)}}Zi(h?null:Us)}})),checked:h}};const gs=(Oo,So,Ao)=>{const{node:es,checked:Us}=ms(Oo,So,Ao);return ai?ai(Us,So,Ao,es):es};if(!Gi.includes(is))if(Gi.findIndex(Oo=>{var So;return((So=Oo[ci])===null||So===void 0?void 0:So.columnType)==="EXPAND_COLUMN"})===0){const[Oo,...So]=Gi;Gi=[Oo,is].concat((0,Zn.Z)(So))}else Gi=[is].concat((0,Zn.Z)(Gi));const vn=Gi.indexOf(is);Gi=Gi.filter((Oo,So)=>Oo!==is||So===vn);const co=Gi[vn-1],Ds=Gi[vn+1];let ss=Fi;ss===void 0&&((Ds==null?void 0:Ds.fixed)!==void 0?ss=Ds.fixed:(co==null?void 0:co.fixed)!==void 0&&(ss=co.fixed)),ss&&co&&((Ai=co[ci])===null||Ai===void 0?void 0:Ai.columnType)==="EXPAND_COLUMN"&&co.fixed===void 0&&(co.fixed=ss);const Ps=Ze()(`${F}-selection-col`,{[`${F}-selection-col-with-dropdown`]:Jn&&gi==="checkbox"}),zs={fixed:ss,width:fi,className:`${F}-selection-column`,title:Ae.columnTitle||Qt,render:gs,onCell:Ae.onCell,[ci]:{className:Ps}};return Gi.map(Oo=>Oo===is?zs:Oo)},[Ee,si,Ae,Cr,to,oo,fi,Qr,$e,ei,sr,zn,Zr,Si]),to]},ws=d(89489),hc=d(59477),Yu=d(6848);const lu="ascend",or="descend";function Ga(Se){return typeof Se.sorter=="object"&&typeof Se.sorter.multiple=="number"?Se.sorter.multiple:!1}function Ye(Se){return typeof Se=="function"?Se:Se&&typeof Se=="object"&&Se.compare?Se.compare:!1}function kn(Se,Ae){return Ae?Se[Se.indexOf(Ae)+1]:Se[0]}function Cu(Se,Ae,ut){let vt=[];function Lt(Nt,fe){vt.push({column:Nt,key:ra(Nt,fe),multiplePriority:Ga(Nt),sortOrder:Nt.sortOrder})}return(Se||[]).forEach((Nt,fe)=>{const cn=Ha(fe,ut);Nt.children?("sortOrder"in Nt&&Lt(Nt,cn),vt=[].concat((0,Zn.Z)(vt),(0,Zn.Z)(Cu(Nt.children,Ae,cn)))):Nt.sorter&&("sortOrder"in Nt?Lt(Nt,cn):Ae&&Nt.defaultSortOrder&&vt.push({column:Nt,key:ra(Nt,cn),multiplePriority:Ga(Nt),sortOrder:Nt.defaultSortOrder}))}),vt}function Zu(Se,Ae,ut,vt,Lt,Nt,fe,cn){return(Ae||[]).map((en,Dn)=>{const Bn=Ha(Dn,cn);let zn=en;if(zn.sorter){const fi=zn.sortDirections||Lt,gi=zn.showSorterTooltip===void 0?fe:zn.showSorterTooltip,Jn=ra(zn,Bn),Fi=ut.find($e=>{let{key:et}=$e;return et===Jn}),ai=Fi?Fi.sortOrder:null,zi=kn(fi,ai);let E;if(en.sortIcon)E=en.sortIcon({sortOrder:ai});else{const $e=fi.includes(lu)&&M.createElement(hc.Z,{className:Ze()(`${Se}-column-sorter-up`,{active:ai===lu})}),et=fi.includes(or)&&M.createElement(ws.Z,{className:Ze()(`${Se}-column-sorter-down`,{active:ai===or})});E=M.createElement("span",{className:Ze()(`${Se}-column-sorter`,{[`${Se}-column-sorter-full`]:!!($e&&et)})},M.createElement("span",{className:`${Se}-column-sorter-inner`,"aria-hidden":"true"},$e,et))}const{cancelSort:F,triggerAsc:G,triggerDesc:q}=Nt||{};let he=F;zi===or?he=q:zi===lu&&(he=G);const Ee=typeof gi=="object"?gi:{title:he};zn=Object.assign(Object.assign({},zn),{className:Ze()(zn.className,{[`${Se}-column-sort`]:ai}),title:$e=>{const et=M.createElement("div",{className:`${Se}-column-sorters`},M.createElement("span",{className:`${Se}-column-title`},ya(en.title,$e)),E);return gi?M.createElement(Yu.Z,Object.assign({},Ee),et):et},onHeaderCell:$e=>{const et=en.onHeaderCell&&en.onHeaderCell($e)||{},Ft=et.onClick,At=et.onKeyDown;et.onClick=Vt=>{vt({column:en,key:Jn,sortOrder:zi,multiplePriority:Ga(en)}),Ft==null||Ft(Vt)},et.onKeyDown=Vt=>{Vt.keyCode===oi.Z.ENTER&&(vt({column:en,key:Jn,sortOrder:zi,multiplePriority:Ga(en)}),At==null||At(Vt))};const ct=ns(en.title,{}),$t=ct==null?void 0:ct.toString();return ai?et["aria-sort"]=ai==="ascend"?"ascending":"descending":et["aria-label"]=$t||"",et.className=Ze()(et.className,`${Se}-column-has-sorters`),et.tabIndex=0,en.ellipsis&&(et.title=(ct!=null?ct:"").toString()),et}})}return"children"in zn&&(zn=Object.assign(Object.assign({},zn),{children:Zu(Se,zn.children,ut,vt,Lt,Nt,fe,Bn)})),zn})}function Dl(Se){const{column:Ae,sortOrder:ut}=Se;return{column:Ae,order:ut,field:Ae.dataIndex,columnKey:Ae.key}}function Pl(Se){const Ae=Se.filter(ut=>{let{sortOrder:vt}=ut;return vt}).map(Dl);return Ae.length===0&&Se.length?Object.assign(Object.assign({},Dl(Se[Se.length-1])),{column:void 0}):Ae.length<=1?Ae[0]||{}:Ae}function ml(Se,Ae,ut){const vt=Ae.slice().sort((fe,cn)=>cn.multiplePriority-fe.multiplePriority),Lt=Se.slice(),Nt=vt.filter(fe=>{let{column:{sorter:cn},sortOrder:en}=fe;return Ye(cn)&&en});return Nt.length?Lt.sort((fe,cn)=>{for(let en=0;en<Nt.length;en+=1){const Dn=Nt[en],{column:{sorter:Bn},sortOrder:zn}=Dn,fi=Ye(Bn);if(fi&&zn){const gi=fi(fe,cn,zn);if(gi!==0)return zn===lu?gi:-gi}}return 0}).map(fe=>{const cn=fe[ut];return cn?Object.assign(Object.assign({},fe),{[ut]:ml(cn,Ae,ut)}):fe}):Lt}function Xu(Se){let{prefixCls:Ae,mergedColumns:ut,onSorterChange:vt,sortDirections:Lt,tableLocale:Nt,showSorterTooltip:fe}=Se;const[cn,en]=M.useState(Cu(ut,!0)),Dn=M.useMemo(()=>{let Jn=!0;const Fi=Cu(ut,!1);if(!Fi.length)return cn;const ai=[];function zi(F){Jn?ai.push(F):ai.push(Object.assign(Object.assign({},F),{sortOrder:null}))}let E=null;return Fi.forEach(F=>{E===null?(zi(F),F.sortOrder&&(F.multiplePriority===!1?Jn=!1:E=!0)):(E&&F.multiplePriority!==!1||(Jn=!1),zi(F))}),ai},[ut,cn]),Bn=M.useMemo(()=>{const Jn=Dn.map(Fi=>{let{column:ai,sortOrder:zi}=Fi;return{column:ai,order:zi}});return{sortColumns:Jn,sortColumn:Jn[0]&&Jn[0].column,sortOrder:Jn[0]&&Jn[0].order}},[Dn]);function zn(Jn){let Fi;Jn.multiplePriority===!1||!Dn.length||Dn[0].multiplePriority===!1?Fi=[Jn]:Fi=[].concat((0,Zn.Z)(Dn.filter(ai=>{let{key:zi}=ai;return zi!==Jn.key})),[Jn]),en(Fi),vt(Pl(Fi),Fi)}return[Jn=>Zu(Ae,Jn,Dn,zn,Lt,Nt,fe),Dn,Bn,()=>Pl(Dn)]}function uu(Se,Ae){return Se.map(ut=>{const vt=Object.assign({},ut);return vt.title=ya(ut.title,Ae),"children"in vt&&(vt.children=uu(vt.children,Ae)),vt})}function Cs(Se){return[M.useCallback(ut=>uu(ut,Se),[Se])]}var Nr=Et((Se,Ae)=>{const{_renderTimes:ut}=Se,{_renderTimes:vt}=Ae;return ut!==vt}),Da=eo((Se,Ae)=>{const{_renderTimes:ut}=Se,{_renderTimes:vt}=Ae;return ut!==vt}),da=d(64993),go=d(17313),ro=d(83116),_s=d(37613),os=Se=>{const{componentCls:Ae}=Se,ut=`${Se.lineWidth}px ${Se.lineType} ${Se.tableBorderColor}`,vt=(Lt,Nt,fe)=>({[`&${Ae}-${Lt}`]:{[`> ${Ae}-container`]:{[`> ${Ae}-content, > ${Ae}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${Ae}-expanded-row-fixed`]:{margin:`-${Nt}px -${fe+Se.lineWidth}px`}}}}}});return{[`${Ae}-wrapper`]:{[`${Ae}${Ae}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${Ae}-title`]:{border:ut,borderBottom:0},[`> ${Ae}-container`]:{borderInlineStart:ut,borderTop:ut,[`
|
|
|
> ${Ae}-content,
|
|
|
> ${Ae}-header,
|
|
|
> ${Ae}-body,
|
|
|
> ${Ae}-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:ut},"> thead":{"> tr:not(:last-child) > th":{borderBottom:ut},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${Ae}-cell-fix-right-first::after`]:{borderInlineEnd:ut}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${Ae}-expanded-row-fixed`]:{margin:`-${Se.tablePaddingVertical}px -${Se.tablePaddingHorizontal+Se.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:Se.lineWidth,bottom:0,borderInlineEnd:ut,content:'""'}}}}}},[`&${Ae}-scroll-horizontal`]:{[`> ${Ae}-container > ${Ae}-body`]:{"> table > tbody":{[`
|
|
|
> tr${Ae}-expanded-row,
|
|
|
> tr${Ae}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},vt("middle",Se.tablePaddingVerticalMiddle,Se.tablePaddingHorizontalMiddle)),vt("small",Se.tablePaddingVerticalSmall,Se.tablePaddingHorizontalSmall)),{[`> ${Ae}-footer`]:{border:ut,borderTop:0}}),[`${Ae}-cell`]:{[`${Ae}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Se.lineWidth}px 0 ${Se.lineWidth}px ${Se.tableHeaderBg}`}},[`${Ae}-bordered ${Ae}-cell-scrollbar`]:{borderInlineEnd:ut}}}},ta=Se=>{const{componentCls:Ae}=Se;return{[`${Ae}-wrapper`]:{[`${Ae}-cell-ellipsis`]:Object.assign(Object.assign({},go.vS),{wordBreak:"keep-all",[`
|
|
|
&${Ae}-cell-fix-left-last,
|
|
|
&${Ae}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${Ae}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${Ae}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Do=Se=>{const{componentCls:Ae}=Se;return{[`${Ae}-wrapper`]:{[`${Ae}-tbody > tr${Ae}-placeholder`]:{textAlign:"center",color:Se.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:Se.colorBgContainer}}}}},xa=d(15969),Zo=Se=>{const{componentCls:Ae,antCls:ut,controlInteractiveSize:vt,motionDurationSlow:Lt,lineWidth:Nt,paddingXS:fe,lineType:cn,tableBorderColor:en,tableExpandIconBg:Dn,tableExpandColumnWidth:Bn,borderRadius:zn,fontSize:fi,fontSizeSM:gi,lineHeight:Jn,tablePaddingVertical:Fi,tablePaddingHorizontal:ai,tableExpandedRowBg:zi,paddingXXS:E}=Se,F=vt/2-Nt,G=F*2+Nt*3,q=`${Nt}px ${cn} ${en}`,he=E-Nt;return{[`${Ae}-wrapper`]:{[`${Ae}-expand-icon-col`]:{width:Bn},[`${Ae}-row-expand-icon-cell`]:{textAlign:"center",[`${Ae}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${Ae}-row-indent`]:{height:1,float:"left"},[`${Ae}-row-expand-icon`]:Object.assign(Object.assign({},(0,xa.N)(Se)),{position:"relative",float:"left",boxSizing:"border-box",width:G,height:G,padding:0,color:"inherit",lineHeight:`${G}px`,background:Dn,border:q,borderRadius:zn,transform:`scale(${vt/G})`,transition:`all ${Lt}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${Lt} ease-out`,content:'""'},"&::before":{top:F,insetInlineEnd:he,insetInlineStart:he,height:Nt},"&::after":{top:he,bottom:he,insetInlineStart:F,width:Nt,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"}}),[`${Ae}-row-indent + ${Ae}-row-expand-icon`]:{marginTop:(fi*Jn-Nt*3)/2-Math.ceil((gi*1.4-Nt*3)/2),marginInlineEnd:fe},[`tr${Ae}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:zi}},[`${ut}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${Ae}-expanded-row-fixed`]:{position:"relative",margin:`-${Fi}px -${ai}px`,padding:`${Fi}px ${ai}px`}}}},bs=Se=>{const{componentCls:Ae,antCls:ut,iconCls:vt,tableFilterDropdownWidth:Lt,tableFilterDropdownSearchWidth:Nt,paddingXXS:fe,paddingXS:cn,colorText:en,lineWidth:Dn,lineType:Bn,tableBorderColor:zn,tableHeaderIconColor:fi,fontSizeSM:gi,tablePaddingHorizontal:Jn,borderRadius:Fi,motionDurationSlow:ai,colorTextDescription:zi,colorPrimary:E,tableHeaderFilterActiveBg:F,colorTextDisabled:G,tableFilterDropdownBg:q,tableFilterDropdownHeight:he,controlItemBgHover:Ee,controlItemBgActive:$e,boxShadowSecondary:et,filterDropdownMenuBg:Ft}=Se,At=`${ut}-dropdown`,ct=`${Ae}-filter-dropdown`,$t=`${ut}-tree`,Vt=`${Dn}px ${Bn} ${zn}`;return[{[`${Ae}-wrapper`]:{[`${Ae}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${Ae}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-fe,marginInline:`${fe}px ${-Jn/2}px`,padding:`0 ${fe}px`,color:fi,fontSize:gi,borderRadius:Fi,cursor:"pointer",transition:`all ${ai}`,"&:hover":{color:zi,background:F},"&.active":{color:E}}}},{[`${ut}-dropdown`]:{[ct]:Object.assign(Object.assign({},(0,go.Wf)(Se)),{minWidth:Lt,backgroundColor:q,borderRadius:Fi,boxShadow:et,overflow:"hidden",[`${At}-menu`]:{maxHeight:he,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Ft,"&:empty::after":{display:"block",padding:`${cn}px 0`,color:G,fontSize:gi,textAlign:"center",content:'"Not Found"'}},[`${ct}-tree`]:{paddingBlock:`${cn}px 0`,paddingInline:cn,[$t]:{padding:0},[`${$t}-treenode ${$t}-node-content-wrapper:hover`]:{backgroundColor:Ee},[`${$t}-treenode-checkbox-checked ${$t}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:$e}}},[`${ct}-search`]:{padding:cn,borderBottom:Vt,"&-input":{input:{minWidth:Nt},[vt]:{color:G}}},[`${ct}-checkall`]:{width:"100%",marginBottom:fe,marginInlineStart:fe},[`${ct}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${cn-Dn}px ${cn}px`,overflow:"hidden",borderTop:Vt}})}},{[`${ut}-dropdown ${ct}, ${ct}-submenu`]:{[`${ut}-checkbox-wrapper + span`]:{paddingInlineStart:cn,color:en},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},hu=Se=>{const{componentCls:Ae,lineWidth:ut,colorSplit:vt,motionDurationSlow:Lt,zIndexTableFixed:Nt,tableBg:fe,zIndexTableSticky:cn}=Se,en=vt;return{[`${Ae}-wrapper`]:{[`
|
|
|
${Ae}-cell-fix-left,
|
|
|
${Ae}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:Nt,background:fe},[`
|
|
|
${Ae}-cell-fix-left-first::after,
|
|
|
${Ae}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-ut,width:30,transform:"translateX(100%)",transition:`box-shadow ${Lt}`,content:'""',pointerEvents:"none"},[`${Ae}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${Ae}-cell-fix-right-first::after,
|
|
|
${Ae}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:-ut,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Lt}`,content:'""',pointerEvents:"none"},[`${Ae}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:cn+1,width:30,transition:`box-shadow ${Lt}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${Ae}-ping-left`]:{[`&:not(${Ae}-has-fix-left) ${Ae}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${en}`}},[`
|
|
|
${Ae}-cell-fix-left-first::after,
|
|
|
${Ae}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${en}`},[`${Ae}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${Ae}-ping-right`]:{[`&:not(${Ae}-has-fix-right) ${Ae}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${en}`}},[`
|
|
|
${Ae}-cell-fix-right-first::after,
|
|
|
${Ae}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${en}`}}}}},sl=Se=>{const{componentCls:Ae,antCls:ut}=Se;return{[`${Ae}-wrapper`]:{[`${Ae}-pagination${ut}-pagination`]:{margin:`${Se.margin}px 0`},[`${Ae}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:Se.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Qu=Se=>{const{componentCls:Ae,tableRadius:ut}=Se;return{[`${Ae}-wrapper`]:{[Ae]:{[`${Ae}-title, ${Ae}-header`]:{borderRadius:`${ut}px ${ut}px 0 0`},[`${Ae}-title + ${Ae}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${Ae}-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:ut,borderStartEndRadius:ut,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:ut},"> *:last-child":{borderStartEndRadius:ut}}},"&-footer":{borderRadius:`0 0 ${ut}px ${ut}px`}}}}},qu=Se=>{const{componentCls:Ae}=Se;return{[`${Ae}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${Ae}-pagination-left`]:{justifyContent:"flex-end"},[`${Ae}-pagination-right`]:{justifyContent:"flex-start"},[`${Ae}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${Ae}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${Ae}-row-indent`]:{float:"right"}}}}},_u=Se=>{const{componentCls:Ae,antCls:ut,iconCls:vt,fontSizeIcon:Lt,padding:Nt,paddingXS:fe,tableHeaderIconColor:cn,tableHeaderIconColorHover:en,tableSelectionColumnWidth:Dn}=Se;return{[`${Ae}-wrapper`]:{[`${Ae}-selection-col`]:{width:Dn,[`&${Ae}-selection-col-with-dropdown`]:{width:Dn+Lt+Nt/4}},[`${Ae}-bordered ${Ae}-selection-col`]:{width:Dn+fe*2,[`&${Ae}-selection-col-with-dropdown`]:{width:Dn+Lt+Nt/4+fe*2}},[`
|
|
|
table tr th${Ae}-selection-column,
|
|
|
table tr td${Ae}-selection-column
|
|
|
`]:{paddingInlineEnd:Se.paddingXS,paddingInlineStart:Se.paddingXS,textAlign:"center",[`${ut}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Ae}-selection-column${Ae}-cell-fix-left`]:{zIndex:Se.zIndexTableFixed+1},[`table tr th${Ae}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${Ae}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${Ae}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${Se.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${Se.tablePaddingHorizontal/4}px`,[vt]:{color:cn,fontSize:Lt,verticalAlign:"baseline","&:hover":{color:en}}}}}},Qa=Se=>{const{componentCls:Ae}=Se,ut=(vt,Lt,Nt,fe)=>({[`${Ae}${Ae}-${vt}`]:{fontSize:fe,[`
|
|
|
${Ae}-title,
|
|
|
${Ae}-footer,
|
|
|
${Ae}-cell,
|
|
|
${Ae}-thead > tr > th,
|
|
|
${Ae}-tbody > tr > th,
|
|
|
${Ae}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${Lt}px ${Nt}px`},[`${Ae}-filter-trigger`]:{marginInlineEnd:`-${Nt/2}px`},[`${Ae}-expanded-row-fixed`]:{margin:`-${Lt}px -${Nt}px`},[`${Ae}-tbody`]:{[`${Ae}-wrapper:only-child ${Ae}`]:{marginBlock:`-${Lt}px`,marginInline:`${Se.tableExpandColumnWidth-Nt}px -${Nt}px`}},[`${Ae}-selection-column`]:{paddingInlineStart:`${Nt/4}px`}}});return{[`${Ae}-wrapper`]:Object.assign(Object.assign({},ut("middle",Se.tablePaddingVerticalMiddle,Se.tablePaddingHorizontalMiddle,Se.tableFontSizeMiddle)),ut("small",Se.tablePaddingVerticalSmall,Se.tablePaddingHorizontalSmall,Se.tableFontSizeSmall))}},Pa=Se=>{const{componentCls:Ae,marginXXS:ut,fontSizeIcon:vt,tableHeaderIconColor:Lt,tableHeaderIconColorHover:Nt}=Se;return{[`${Ae}-wrapper`]:{[`${Ae}-thead th${Ae}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${Se.motionDurationSlow}`,"&:hover":{background:Se.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:Se.colorPrimary},[`
|
|
|
&${Ae}-cell-fix-left:hover,
|
|
|
&${Ae}-cell-fix-right:hover
|
|
|
`]:{background:Se.tableFixedHeaderSortActiveBg}},[`${Ae}-thead th${Ae}-column-sort`]:{background:Se.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${Ae}-column-sort`]:{background:Se.tableBodySortBg},[`${Ae}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${Ae}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${Ae}-column-sorter`]:{marginInlineStart:ut,color:Lt,fontSize:0,transition:`color ${Se.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:vt,"&.active":{color:Se.colorPrimary}},[`${Ae}-column-sorter-up + ${Ae}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${Ae}-column-sorters:hover ${Ae}-column-sorter`]:{color:Nt}}}},eu=Se=>{const{componentCls:Ae,opacityLoading:ut,tableScrollThumbBg:vt,tableScrollThumbBgHover:Lt,tableScrollThumbSize:Nt,tableScrollBg:fe,zIndexTableSticky:cn,stickyScrollBarBorderRadius:en}=Se,Dn=`${Se.lineWidth}px ${Se.lineType} ${Se.tableBorderColor}`;return{[`${Ae}-wrapper`]:{[`${Ae}-sticky`]:{"&-holder":{position:"sticky",zIndex:cn,background:Se.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Nt}px !important`,zIndex:cn,display:"flex",alignItems:"center",background:fe,borderTop:Dn,opacity:ut,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Nt,backgroundColor:vt,borderRadius:en,transition:`all ${Se.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Lt}}}}}}},vl=Se=>{const{componentCls:Ae,lineWidth:ut,tableBorderColor:vt}=Se,Lt=`${ut}px ${Se.lineType} ${vt}`;return{[`${Ae}-wrapper`]:{[`${Ae}-summary`]:{position:"relative",zIndex:Se.zIndexTableFixed,background:Se.tableBg,"> tr":{"> th, > td":{borderBottom:Lt}}},[`div${Ae}-summary`]:{boxShadow:`0 -${ut}px 0 ${vt}`}}}},Wl=Se=>{const{componentCls:Ae}=Se,ut=`${Se.lineWidth}px ${Se.lineType} ${Se.tableBorderColor}`,vt=`${Ae}-expanded-row-cell`;return{[`${Ae}-wrapper`]:{[`${Ae}-tbody-virtual`]:{[`${Ae}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${Ae}-cell`]:{borderBottom:ut},[`${Ae}-expanded-row`]:{[`${vt}${vt}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${Se.lineWidth}px)`,borderInlineEnd:"none"}}},[`${Ae}-bordered`]:{[`${Ae}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:ut,position:"absolute"},[`${Ae}-cell`]:{borderInlineEnd:ut,[`&${Ae}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-Se.lineWidth,borderInlineStart:ut}}}}}}};const Ka=Se=>{const{componentCls:Ae,fontWeightStrong:ut,tablePaddingVertical:vt,tablePaddingHorizontal:Lt,lineWidth:Nt,lineType:fe,tableBorderColor:cn,tableFontSize:en,tableBg:Dn,tableRadius:Bn,tableHeaderTextColor:zn,motionDurationMid:fi,tableHeaderBg:gi,tableHeaderCellSplitColor:Jn,tableRowHoverBg:Fi,tableSelectedRowBg:ai,tableSelectedRowHoverBg:zi,tableFooterTextColor:E,tableFooterBg:F,paddingContentVerticalLG:G}=Se,q=`${Nt}px ${fe} ${cn}`;return{[`${Ae}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,go.dF)()),{[Ae]:Object.assign(Object.assign({},(0,go.Wf)(Se)),{fontSize:en,background:Dn,borderRadius:`${Bn}px ${Bn}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${Bn}px ${Bn}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${Ae}-cell,
|
|
|
${Ae}-thead > tr > th,
|
|
|
${Ae}-tbody > tr > th,
|
|
|
${Ae}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${G}px ${Lt}px`,overflowWrap:"break-word"},[`${Ae}-title`]:{padding:`${vt}px ${Lt}px`},[`${Ae}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:zn,fontWeight:ut,textAlign:"start",background:gi,borderBottom:q,transition:`background ${fi} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${Ae}-selection-column):not(${Ae}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:Jn,transform:"translateY(-50%)",transition:`background-color ${fi}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${Ae}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${fi}, border-color ${fi}`,borderBottom:q,[`
|
|
|
> ${Ae}-wrapper:only-child,
|
|
|
> ${Ae}-expanded-row-fixed > ${Ae}-wrapper:only-child
|
|
|
`]:{[Ae]:{marginBlock:`-${vt}px`,marginInline:`${Se.tableExpandColumnWidth-Lt}px -${Lt}px`,[`${Ae}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:zn,fontWeight:ut,textAlign:"start",background:gi,borderBottom:q,transition:`background ${fi} ease`},[`
|
|
|
&${Ae}-row:hover > th,
|
|
|
&${Ae}-row:hover > td,
|
|
|
> th${Ae}-cell-row-hover,
|
|
|
> td${Ae}-cell-row-hover
|
|
|
`]:{background:Fi},[`&${Ae}-row-selected`]:{"> th, > td":{background:ai},"&:hover > th, &:hover > td":{background:zi}}}},[`${Ae}-footer`]:{padding:`${vt}px ${Lt}px`,color:E,background:F}})}};var du=(0,ro.Z)("Table",Se=>{const{colorTextHeading:Ae,colorSplit:ut,colorIcon:vt,colorIconHover:Lt,opacityLoading:Nt,colorBgContainer:fe,controlInteractiveSize:cn,headerBg:en,headerColor:Dn,headerSortActiveBg:Bn,headerSortHoverBg:zn,bodySortBg:fi,rowHoverBg:gi,rowSelectedBg:Jn,rowSelectedHoverBg:Fi,rowExpandedBg:ai,cellPaddingBlock:zi,cellPaddingInline:E,cellPaddingBlockMD:F,cellPaddingInlineMD:G,cellPaddingBlockSM:q,cellPaddingInlineSM:he,borderColor:Ee,footerBg:$e,footerColor:et,headerBorderRadius:Ft,cellFontSize:At,cellFontSizeMD:ct,cellFontSizeSM:$t,headerSplitColor:Vt,fixedHeaderSortActiveBg:Rt,headerFilterHoverBg:yi,filterDropdownBg:si,expandIconBg:sr,selectionColumnWidth:Si,stickyScrollBarBg:Cr}=Se,ji=new da.C(vt),to=new da.C(Lt),oo=2,ei=(0,_s.TS)(Se,{tableFontSize:At,tableBg:fe,tableRadius:Ft,tablePaddingVertical:zi,tablePaddingHorizontal:E,tablePaddingVerticalMiddle:F,tablePaddingHorizontalMiddle:G,tablePaddingVerticalSmall:q,tablePaddingHorizontalSmall:he,tableBorderColor:Ee,tableHeaderTextColor:Dn,tableHeaderBg:en,tableFooterTextColor:et,tableFooterBg:$e,tableHeaderCellSplitColor:Vt,tableHeaderSortBg:Bn,tableHeaderSortHoverBg:zn,tableHeaderIconColor:ji.clone().setAlpha(ji.getAlpha()*Nt).toRgbString(),tableHeaderIconColorHover:to.clone().setAlpha(to.getAlpha()*Nt).toRgbString(),tableBodySortBg:fi,tableFixedHeaderSortActiveBg:Rt,tableHeaderFilterActiveBg:yi,tableFilterDropdownBg:si,tableRowHoverBg:gi,tableSelectedRowBg:Jn,tableSelectedRowHoverBg:Fi,zIndexTableFixed:oo,zIndexTableSticky:oo+1,tableFontSizeMiddle:ct,tableFontSizeSmall:$t,tableSelectionColumnWidth:Si,tableExpandIconBg:sr,tableExpandColumnWidth:cn+2*Se.padding,tableExpandedRowBg:ai,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Cr,tableScrollThumbBgHover:Ae,tableScrollBg:ut});return[Ka(ei),sl(ei),vl(ei),Pa(ei),bs(ei),os(ei),Qu(ei),Zo(ei),vl(ei),Do(ei),_u(ei),hu(ei),eu(ei),ta(ei),Qa(ei),qu(ei),Wl(ei)]},Se=>{const{colorFillAlter:Ae,colorBgContainer:ut,colorTextHeading:vt,colorFillSecondary:Lt,colorFillContent:Nt,controlItemBgActive:fe,controlItemBgActiveHover:cn,padding:en,paddingSM:Dn,paddingXS:Bn,colorBorderSecondary:zn,borderRadiusLG:fi,fontSize:gi,controlHeight:Jn,colorTextPlaceholder:Fi}=Se,ai=new da.C(Lt).onBackground(ut).toHexShortString(),zi=new da.C(Nt).onBackground(ut).toHexShortString(),E=new da.C(Ae).onBackground(ut).toHexShortString();return{headerBg:E,headerColor:vt,headerSortActiveBg:ai,headerSortHoverBg:zi,bodySortBg:E,rowHoverBg:E,rowSelectedBg:fe,rowSelectedHoverBg:cn,rowExpandedBg:Ae,cellPaddingBlock:en,cellPaddingInline:en,cellPaddingBlockMD:Dn,cellPaddingInlineMD:Bn,cellPaddingBlockSM:Bn,cellPaddingInlineSM:Bn,borderColor:zn,headerBorderRadius:fi,footerBg:E,footerColor:vt,cellFontSize:gi,cellFontSizeMD:gi,cellFontSizeSM:gi,headerSplitColor:zn,fixedHeaderSortActiveBg:ai,headerFilterHoverBg:Nt,filterDropdownMenuBg:ut,filterDropdownBg:ut,expandIconBg:ut,selectionColumnWidth:Jn,stickyScrollBarBg:Fi,stickyScrollBarBorderRadius:100}});const fu=[],Tu=(Se,Ae)=>{const{prefixCls:ut,className:vt,rootClassName:Lt,style:Nt,size:fe,bordered:cn,dropdownPrefixCls:en,dataSource:Dn,pagination:Bn,rowSelection:zn,rowKey:fi="key",rowClassName:gi,columns:Jn,children:Fi,childrenColumnName:ai,onChange:zi,getPopupContainer:E,loading:F,expandIcon:G,expandable:q,expandedRowRender:he,expandIconColumnIndex:Ee,indentSize:$e,scroll:et,sortDirections:Ft,locale:At,showSorterTooltip:ct=!0,virtual:$t}=Se,Vt=M.useMemo(()=>Jn||_n(Fi),[Jn,Fi]),Rt=M.useMemo(()=>Vt.some(yo=>yo.responsive),[Vt]),yi=(0,mi.Z)(Rt),si=M.useMemo(()=>{const yo=new Set(Object.keys(yi).filter(as=>yi[as]));return Vt.filter(as=>!as.responsive||as.responsive.some(Hs=>yo.has(Hs)))},[Vt,yi]),sr=(0,Hi.Z)(Se,["className","style","columns"]),{locale:Si=Rs.Z,direction:Cr,table:ji,renderEmpty:to,getPrefixCls:oo,getPopupContainer:ei}=M.useContext(Vr.E_),Zi=(0,Ko.Z)(fe),Kr=Object.assign(Object.assign({},Si.Table),At),Zr=Dn||fu,Qr=oo("table",ut),No=oo("dropdown",en),tr=Object.assign({childrenColumnName:ai,expandIconColumnIndex:Ee},q),{childrenColumnName:Ai="children"}=tr,Gi=M.useMemo(()=>Zr.some(yo=>yo==null?void 0:yo[Ai])?"nest":he||q&&q.expandedRowRender?"row":null,[Zr]),Mi={body:M.useRef()},jr=M.useMemo(()=>typeof fi=="function"?fi:yo=>yo==null?void 0:yo[fi],[fi]),[Wi]=$a(Zr,Ai,jr),Lr={},so=function(yo,as){let Hs=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var T,m,S;const R=Object.assign(Object.assign({},Lr),yo);Hs&&((T=Lr.resetPagination)===null||T===void 0||T.call(Lr),!((m=R.pagination)===null||m===void 0)&&m.current&&(R.pagination.current=1),Bn&&Bn.onChange&&Bn.onChange(1,(S=R.pagination)===null||S===void 0?void 0:S.pageSize)),et&&et.scrollToFirstRowOnChange!==!1&&Mi.body.current&&(0,$r.Z)(0,{getContainer:()=>Mi.body.current}),zi==null||zi(R.pagination,R.filters,R.sorter,{currentDataSource:Vs(ml(Zr,R.sorterStates,Ai),R.filterStates),action:as})},Qt=(yo,as)=>{so({sorter:yo,sorterStates:as},"sort",!1)},[ms,gs,vn,co]=Xu({prefixCls:Qr,mergedColumns:si,onSorterChange:Qt,sortDirections:Ft||["ascend","descend"],tableLocale:Kr,showSorterTooltip:ct}),Ds=M.useMemo(()=>ml(Zr,gs,Ai),[Zr,gs]);Lr.sorter=co(),Lr.sorterStates=gs;const ss=(yo,as)=>{so({filters:yo,filterStates:as},"filter",!0)},[Ps,zs,Oo]=Wo({prefixCls:Qr,locale:Kr,dropdownPrefixCls:No,mergedColumns:si,onFilterChange:ss,getPopupContainer:E||ei}),So=Vs(Ds,zs);Lr.filters=Oo,Lr.filterStates=zs;const Ao=M.useMemo(()=>{const yo={};return Object.keys(Oo).forEach(as=>{Oo[as]!==null&&(yo[as]=Oo[as])}),Object.assign(Object.assign({},vn),{filters:yo})},[vn,Oo]),[es]=Cs(Ao),Us=(yo,as)=>{so({pagination:Object.assign(Object.assign({},Lr.pagination),{current:yo,pageSize:as})},"paginate")},[h,g]=$i(So.length,Us,Bn);Lr.pagination=Bn===!1?{}:Ls(h,Bn),Lr.resetPagination=g;const K=M.useMemo(()=>{if(Bn===!1||!h.pageSize)return So;const{current:yo=1,total:as,pageSize:Hs=ea}=h;return So.length<as?So.length>Hs?So.slice((yo-1)*Hs,yo*Hs):So:So.slice((yo-1)*Hs,yo*Hs)},[!!Bn,So,h&&h.current,h&&h.pageSize,h&&h.total]),[Je,un]=Za({prefixCls:Qr,data:So,pageData:K,getRowKey:jr,getRecordByKey:Wi,expandType:Gi,childrenColumnName:Ai,locale:Kr,getPopupContainer:E||ei},zn),jn=(yo,as,Hs)=>{let T;return typeof gi=="function"?T=Ze()(gi(yo,as,Hs)):T=Ze()(gi),Ze()({[`${Qr}-row-selected`]:un.has(jr(yo,as))},T)};tr.__PARENT_RENDER_ICON__=tr.expandIcon,tr.expandIcon=tr.expandIcon||G||Ya(Kr),Gi==="nest"&&tr.expandIconColumnIndex===void 0?tr.expandIconColumnIndex=zn?1:0:tr.expandIconColumnIndex>0&&zn&&(tr.expandIconColumnIndex-=1),typeof tr.indentSize!="number"&&(tr.indentSize=typeof $e=="number"?$e:15);const bi=M.useCallback(yo=>es(Je(Ps(ms(yo)))),[ms,Ps,Je]);let gr,Dr;if(Bn!==!1&&(h!=null&&h.total)){let yo;h.size?yo=h.size:yo=Zi==="small"||Zi==="middle"?"small":void 0;const as=m=>M.createElement(fs.Z,Object.assign({},h,{className:Ze()(`${Qr}-pagination ${Qr}-pagination-${m}`,h.className),size:yo})),Hs=Cr==="rtl"?"left":"right",{position:T}=h;if(T!==null&&Array.isArray(T)){const m=T.find(Y=>Y.includes("top")),S=T.find(Y=>Y.includes("bottom")),R=T.every(Y=>`${Y}`=="none");!m&&!S&&!R&&(Dr=as(Hs)),m&&(gr=as(m.toLowerCase().replace("top",""))),S&&(Dr=as(S.toLowerCase().replace("bottom","")))}else Dr=as(Hs)}let Gr;typeof F=="boolean"?Gr={spinning:F}:typeof F=="object"&&(Gr=Object.assign({spinning:!0},F));const[Is,vs]=du(Qr),[,ni]=(0,Bs.Z)(),nr=Ze()(`${Qr}-wrapper`,ji==null?void 0:ji.className,{[`${Qr}-wrapper-rtl`]:Cr==="rtl"},vt,Lt,vs),mo=Object.assign(Object.assign({},ji==null?void 0:ji.style),Nt),ko=At&&At.emptyText||(to==null?void 0:to("Table"))||M.createElement(wo.Z,{componentName:"Table"}),ts=$t?Da:Nr,Sa={},pa=M.useMemo(()=>{const{fontSize:yo,lineHeight:as,padding:Hs,paddingXS:T,paddingSM:m}=ni,S=Math.floor(yo*as);switch(Zi){case"large":return Hs*2+S;case"small":return T*2+S;default:return m*2+S}},[ni,Zi]);return $t&&(Sa.listItemHeight=pa),Is(M.createElement("div",{ref:Ae,className:nr,style:mo},M.createElement(cs.Z,Object.assign({spinning:!1},Gr),gr,M.createElement(ts,Object.assign({},Sa,sr,{columns:si,direction:Cr,expandable:tr,prefixCls:Qr,className:Ze()({[`${Qr}-middle`]:Zi==="middle",[`${Qr}-small`]:Zi==="small",[`${Qr}-bordered`]:cn,[`${Qr}-empty`]:Zr.length===0}),data:K,rowKey:jr,rowClassName:jn,emptyText:ko,internalHooks:I,internalRefs:Mi,transformColumns:bi})),Dr)))};var Nu=M.forwardRef(Tu);const al=(Se,Ae)=>{const ut=M.useRef(0);return ut.current+=1,M.createElement(Nu,Object.assign({},Se,{ref:Ae,_renderTimes:ut.current}))},fa=M.forwardRef(al);fa.SELECTION_COLUMN=is,fa.EXPAND_COLUMN=b,fa.SELECTION_ALL=qr,fa.SELECTION_INVERT=rs,fa.SELECTION_NONE=ps,fa.Column=Xr,fa.ColumnGroup=Vi,fa.Summary=ze;var Vl=fa,zu=Vl},17574:function(Q,C,d){"use strict";d.d(C,{default:function(){return Xe}});var b=d(23130),I=d(26407),O=d(52671),z=d(8657),W=d(92413),_=d(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"},pe=M,ue=d(7657),ne=function(le,_t){return _.createElement(ue.Z,(0,W.Z)({},le,{ref:_t,icon:pe}))},Pe=_.forwardRef(ne),ke=Pe,rt=d(92310),Ue=d.n(rt),Ie=d(35654),De=d(71430),Fe=d(36355),de=d(56082),me=d(62892),we=d(20648);const ge=4;function Te(se){const{dropPosition:le,dropLevelOffset:_t,prefixCls:jt,indent:yt,direction:ln="ltr"}=se,Dt=ln==="ltr"?"left":"right",ui=ln==="ltr"?"right":"left",On={[Dt]:-_t*yt+ge,[ui]:0};switch(le){case-1:On.top=-3;break;case 1:On.bottom=-3;break;default:On.bottom=-3,On[Dt]=yt+ge;break}return _.createElement("div",{style:On,className:`${jt}-drop-indicator`})}var ee=d(71997),Ne=_.forwardRef((se,le)=>{const{getPrefixCls:_t,direction:jt,virtual:yt,tree:ln}=_.useContext(Fe.E_),{prefixCls:Dt,className:ui,showIcon:On=!1,showLine:ri,switcherIcon:Xn,blockNode:Tn=!1,children:Nn,checkable:xe=!1,selectable:P=!0,draggable:k,motion:j,style:X}=se,N=_t("tree",Dt),Re=_t(),wt=j!=null?j:Object.assign(Object.assign({},(0,me.Z)(Re)),{motionAppear:!1}),ze=Object.assign(Object.assign({},se),{checkable:xe,selectable:P,showIcon:On,motion:wt,blockNode:Tn,showLine:!!ri,dropIndicatorRender:Te}),[Oe,mt]=(0,we.ZP)(N),lt=_.useMemo(()=>{if(!k)return!1;let Ct={};switch(typeof k){case"function":Ct.nodeDraggable=k;break;case"object":Ct=Object.assign({},k);break;default:break}return Ct.icon!==!1&&(Ct.icon=Ct.icon||_.createElement(de.Z,null)),Ct},[k]),Qe=Ct=>_.createElement(ee.Z,{prefixCls:N,switcherIcon:Xn,treeNodeProps:Ct,showLine:ri});return Oe(_.createElement(b.Z,Object.assign({itemHeight:20,ref:le,virtual:yt},ze,{style:Object.assign(Object.assign({},ln==null?void 0:ln.style),X),prefixCls:N,className:Ue()({[`${N}-icon-hide`]:!On,[`${N}-block-node`]:Tn,[`${N}-unselectable`]:!P,[`${N}-rtl`]:jt==="rtl"},ln==null?void 0:ln.className,ui,mt),direction:jt,checkable:xe&&_.createElement("span",{className:`${N}-checkbox-inner`}),selectable:P,switcherIcon:Qe,draggable:lt}),Nn))}),Le;(function(se){se[se.None=0]="None",se[se.Start=1]="Start",se[se.End=2]="End"})(Le||(Le={}));function Ke(se,le){function _t(jt){const{key:yt,children:ln}=jt;le(yt,jt)!==!1&&Ke(ln||[],le)}se.forEach(_t)}function nt(se){let{treeData:le,expandedKeys:_t,startKey:jt,endKey:yt}=se;const ln=[];let Dt=Le.None;if(jt&&jt===yt)return[jt];if(!jt||!yt)return[];function ui(On){return On===jt||On===yt}return Ke(le,On=>{if(Dt===Le.End)return!1;if(ui(On)){if(ln.push(On),Dt===Le.None)Dt=Le.Start;else if(Dt===Le.Start)return Dt=Le.End,!1}else Dt===Le.Start&&ln.push(On);return _t.includes(On)}),ln}function ie(se,le){const _t=(0,I.Z)(le),jt=[];return Ke(se,(yt,ln)=>{const Dt=_t.indexOf(yt);return Dt!==-1&&(jt.push(ln),_t.splice(Dt,1)),!!_t.length}),jt}var at=function(se,le){var _t={};for(var jt in se)Object.prototype.hasOwnProperty.call(se,jt)&&le.indexOf(jt)<0&&(_t[jt]=se[jt]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yt=0,jt=Object.getOwnPropertySymbols(se);yt<jt.length;yt++)le.indexOf(jt[yt])<0&&Object.prototype.propertyIsEnumerable.call(se,jt[yt])&&(_t[jt[yt]]=se[jt[yt]]);return _t};function Ze(se){const{isLeaf:le,expanded:_t}=se;return le?_.createElement(O.Z,null):_t?_.createElement(z.Z,null):_.createElement(ke,null)}function Bt(se){let{treeData:le,children:_t}=se;return le||(0,De.zn)(_t)}const bt=(se,le)=>{var{defaultExpandAll:_t,defaultExpandParent:jt,defaultExpandedKeys:yt}=se,ln=at(se,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Dt=_.useRef(),ui=_.useRef(),On=()=>{const{keyEntities:lt}=(0,De.I8)(Bt(ln));let Qe;return _t?Qe=Object.keys(lt):jt?Qe=(0,Ie.r7)(ln.expandedKeys||yt||[],lt):Qe=ln.expandedKeys||yt,Qe},[ri,Xn]=_.useState(ln.selectedKeys||ln.defaultSelectedKeys||[]),[Tn,Nn]=_.useState(()=>On());_.useEffect(()=>{"selectedKeys"in ln&&Xn(ln.selectedKeys)},[ln.selectedKeys]),_.useEffect(()=>{"expandedKeys"in ln&&Nn(ln.expandedKeys)},[ln.expandedKeys]);const xe=(lt,Qe)=>{var Ct;return"expandedKeys"in ln||Nn(lt),(Ct=ln.onExpand)===null||Ct===void 0?void 0:Ct.call(ln,lt,Qe)},P=(lt,Qe)=>{var Ct;const{multiple:nn}=ln,{node:Yt,nativeEvent:Ot}=Qe,{key:on=""}=Yt,hn=Bt(ln),Ve=Object.assign(Object.assign({},Qe),{selected:!0}),Pt=(Ot==null?void 0:Ot.ctrlKey)||(Ot==null?void 0:Ot.metaKey),Xt=Ot==null?void 0:Ot.shiftKey;let qt;nn&&Pt?(qt=lt,Dt.current=on,ui.current=qt,Ve.selectedNodes=ie(hn,qt)):nn&&Xt?(qt=Array.from(new Set([].concat((0,I.Z)(ui.current||[]),(0,I.Z)(nt({treeData:hn,expandedKeys:Tn,startKey:on,endKey:Dt.current}))))),Ve.selectedNodes=ie(hn,qt)):(qt=[on],Dt.current=on,ui.current=qt,Ve.selectedNodes=ie(hn,qt)),(Ct=ln.onSelect)===null||Ct===void 0||Ct.call(ln,qt,Ve),"selectedKeys"in ln||Xn(qt)},{getPrefixCls:k,direction:j}=_.useContext(Fe.E_),{prefixCls:X,className:N,showIcon:Re=!0,expandAction:wt="click"}=ln,ze=at(ln,["prefixCls","className","showIcon","expandAction"]),Oe=k("tree",X),mt=Ue()(`${Oe}-directory`,{[`${Oe}-directory-rtl`]:j==="rtl"},N);return _.createElement(Ne,Object.assign({icon:Ze,ref:le,blockNode:!0},ze,{showIcon:Re,expandAction:wt,prefixCls:Oe,className:mt,expandedKeys:Tn,selectedKeys:ri,onSelect:P,onExpand:xe}))};var Tt=_.forwardRef(bt);const wn=Ne;wn.DirectoryTree=Tt,wn.TreeNode=b.O;var Xe=wn},20648:function(Q,C,d){"use strict";d.d(C,{TM:function(){return rt},Yk:function(){return ke}});var b=d(93083),I=d(98447),O=d(17313),z=d(8378),W=d(37613),_=d(83116);const M=new b.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),pe=(Ue,Ie)=>({[`.${Ue}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${Ie.motionDurationSlow}`}}}),ue=(Ue,Ie)=>({[`.${Ue}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:Ie.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${Ie.lineWidthBold}px solid ${Ie.colorPrimary}`,borderRadius:"50%",content:'""'}}}),ne=(Ue,Ie)=>{const{treeCls:De,treeNodeCls:Fe,treeNodePadding:de,titleHeight:me,nodeSelectedBg:we,nodeHoverBg:ge}=Ie,Te=Ie.paddingXS;return{[De]:Object.assign(Object.assign({},(0,O.Wf)(Ie)),{background:Ie.colorBgContainer,borderRadius:Ie.borderRadius,transition:`background-color ${Ie.motionDurationSlow}`,[`&${De}-rtl`]:{[`${De}-switcher`]:{"&_close":{[`${De}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${De}-active-focused)`]:Object.assign({},(0,O.oN)(Ie)),[`${De}-list-holder-inner`]:{alignItems:"flex-start"},[`&${De}-block-node`]:{[`${De}-list-holder-inner`]:{alignItems:"stretch",[`${De}-node-content-wrapper`]:{flex:"auto"},[`${Fe}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:de,insetInlineStart:0,border:`1px solid ${Ie.colorPrimary}`,opacity:0,animationName:M,animationDuration:Ie.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${Fe}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${de}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${De}-node-content-wrapper`]:{color:Ie.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${De}-node-content-wrapper`]:Object.assign({},(0,O.oN)(Ie)),[`&:not(${Fe}-disabled).filter-node ${De}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${De}-draggable-icon`]:{flexShrink:0,width:me,lineHeight:`${me}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${Ie.motionDurationSlow}`,[`${Fe}:hover &`]:{opacity:.45}},[`&${Fe}-disabled`]:{[`${De}-draggable-icon`]:{visibility:"hidden"}}}},[`${De}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:me}},[`${De}-draggable-icon`]:{visibility:"hidden"},[`${De}-switcher`]:Object.assign(Object.assign({},pe(Ue,Ie)),{position:"relative",flex:"none",alignSelf:"stretch",width:me,margin:0,lineHeight:`${me}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${De}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:Ie.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:me/2,bottom:-de,marginInlineStart:-1,borderInlineEnd:`1px solid ${Ie.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:me/2*.8,height:me/2,borderBottom:`1px solid ${Ie.colorBorder}`,content:'""'}}}),[`${De}-checkbox`]:{top:"initial",marginInlineEnd:Te},[`${De}-node-content-wrapper, ${De}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:me,margin:0,padding:`0 ${Ie.paddingXS/2}px`,color:"inherit",lineHeight:`${me}px`,background:"transparent",borderRadius:Ie.borderRadius,cursor:"pointer",transition:`all ${Ie.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:ge},[`&${De}-node-selected`]:{backgroundColor:we},[`${De}-iconEle`]:{display:"inline-block",width:me,height:me,lineHeight:`${me}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${De}-unselectable ${De}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${De}-node-content-wrapper`]:Object.assign({lineHeight:`${me}px`,userSelect:"none"},ue(Ue,Ie)),[`${Fe}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${Ie.colorPrimary}`}},"&-show-line":{[`${De}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:me/2,bottom:-de,borderInlineEnd:`1px solid ${Ie.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${De}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${Fe}-leaf-last`]:{[`${De}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${me/2}px !important`}}}}})}},Pe=Ue=>{const{treeCls:Ie,treeNodeCls:De,treeNodePadding:Fe,directoryNodeSelectedBg:de,directoryNodeSelectedColor:me}=Ue;return{[`${Ie}${Ie}-directory`]:{[De]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:Fe,insetInlineStart:0,transition:`background-color ${Ue.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:Ue.controlItemBgHover}},"> *":{zIndex:1},[`${Ie}-switcher`]:{transition:`color ${Ue.motionDurationMid}`},[`${Ie}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${Ie}-node-selected`]:{color:me,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:de},[`${Ie}-switcher`]:{color:me},[`${Ie}-node-content-wrapper`]:{color:me,background:"transparent"}}}}}},ke=(Ue,Ie)=>{const De=`.${Ue}`,Fe=`${De}-treenode`,de=Ie.paddingXS/2,me=(0,W.TS)(Ie,{treeCls:De,treeNodeCls:Fe,treeNodePadding:de});return[ne(Ue,me),Pe(me)]},rt=Ue=>{const{controlHeightSM:Ie}=Ue;return{titleHeight:Ie,nodeHoverBg:Ue.controlItemBgHover,nodeSelectedBg:Ue.controlItemBgActive}};C.ZP=(0,_.Z)("Tree",(Ue,Ie)=>{let{prefixCls:De}=Ie;return[{[Ue.componentCls]:(0,I.C2)(`${De}-checkbox`,Ue)},ke(De,Ue),(0,z.Z)(Ue)]},Ue=>{const{colorTextLightSolid:Ie,colorPrimary:De}=Ue;return Object.assign(Object.assign({},rt(Ue)),{directoryNodeSelectedColor:Ie,directoryNodeSelectedBg:De})})},71997:function(Q,C,d){"use strict";d.d(C,{Z:function(){return Fe}});var b=d(92413),I=d(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"},z=O,W=d(7657),_=function(me,we){return I.createElement(W.Z,(0,b.Z)({},me,{ref:we,icon:z}))},M=I.forwardRef(_),pe=M,ue=d(52671),ne=d(58617),Pe=d(15075),ke=d(43531),rt=d(92310),Ue=d.n(rt),Ie=d(92343),Fe=de=>{const{prefixCls:me,switcherIcon:we,treeNodeProps:ge,showLine:Te}=de,{isLeaf:ee,expanded:Ce,loading:Ne}=ge;if(Ne)return I.createElement(ne.Z,{className:`${me}-switcher-loading-icon`});let Le;if(Te&&typeof Te=="object"&&(Le=Te.showLeafIcon),ee){if(!Te)return null;if(typeof Le!="boolean"&&Le){const ie=typeof Le=="function"?Le(ge):Le,at=`${me}-switcher-line-custom-icon`;return(0,Ie.l$)(ie)?(0,Ie.Tm)(ie,{className:Ue()(ie.props.className||"",at)}):ie}return Le?I.createElement(ue.Z,{className:`${me}-switcher-line-icon`}):I.createElement("span",{className:`${me}-switcher-leaf-line`})}const Ke=`${me}-switcher-icon`,nt=typeof we=="function"?we(ge):we;return(0,Ie.l$)(nt)?(0,Ie.Tm)(nt,{className:Ue()(nt.props.className||"",Ke)}):nt!==void 0?nt:Te?Ce?I.createElement(Pe.Z,{className:`${me}-switcher-line-icon`}):I.createElement(ke.Z,{className:`${me}-switcher-line-icon`}):I.createElement(pe,{className:Ke})}},54580:function(Q,C,d){"use strict";d.d(C,{default:function(){return Fn}});var b=d(59301),I=d(26407),O=d(92310),z=d.n(O),W=d(92413),_=d(6909),M=d(4771),pe=d(9427),ue=d(25440),ne=d(400),Pe=d(37061),ke=d(85195),rt=d(39559),Ue=d(20569),Ie=d(26112);function De(Mt,qe){var D="cannot ".concat(Mt.method," ").concat(Mt.action," ").concat(qe.status,"'"),Gt=new Error(D);return Gt.status=qe.status,Gt.method=Mt.method,Gt.url=Mt.action,Gt}function Fe(Mt){var qe=Mt.responseText||Mt.response;if(!qe)return qe;try{return JSON.parse(qe)}catch(D){return qe}}function de(Mt){var qe=new XMLHttpRequest;Mt.onProgress&&qe.upload&&(qe.upload.onprogress=function(xt){xt.total>0&&(xt.percent=xt.loaded/xt.total*100),Mt.onProgress(xt)});var D=new FormData;Mt.data&&Object.keys(Mt.data).forEach(function(dn){var xt=Mt.data[dn];if(Array.isArray(xt)){xt.forEach(function(En){D.append("".concat(dn,"[]"),En)});return}D.append(dn,xt)}),Mt.file instanceof Blob?D.append(Mt.filename,Mt.file,Mt.file.name):D.append(Mt.filename,Mt.file),qe.onerror=function(xt){Mt.onError(xt)},qe.onload=function(){return qe.status<200||qe.status>=300?Mt.onError(De(Mt,qe),Fe(qe)):Mt.onSuccess(Fe(qe),qe)},qe.open(Mt.method,Mt.action,!0),Mt.withCredentials&&"withCredentials"in qe&&(qe.withCredentials=!0);var Gt=Mt.headers||{};return Gt["X-Requested-With"]!==null&&qe.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Gt).forEach(function(dn){Gt[dn]!==null&&qe.setRequestHeader(dn,Gt[dn])}),qe.send(D),{abort:function(){qe.abort()}}}var me=+new Date,we=0;function ge(){return"rc-upload-".concat(me,"-").concat(++we)}var Te=d(48736),ee=function(Mt,qe){if(Mt&&qe){var D=Array.isArray(qe)?qe:qe.split(","),Gt=Mt.name||"",dn=Mt.type||"",xt=dn.replace(/\/.*$/,"");return D.some(function(En){var Mn=En.trim();if(/^\*(\/\*)?$/.test(En))return!0;if(Mn.charAt(0)==="."){var ki=Gt.toLowerCase(),Un=Mn.toLowerCase(),ot=[Un];return(Un===".jpg"||Un===".jpeg")&&(ot=[".jpg",".jpeg"]),ot.some(function(Bi){return ki.endsWith(Bi)})}return/\/\*$/.test(Mn)?xt===Mn.replace(/\/.*$/,""):dn===Mn?!0:/^\w+$/.test(Mn)?((0,Te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Mn,"'.Skip for check.")),!0):!1})}return!0};function Ce(Mt,qe){var D=Mt.createReader(),Gt=[];function dn(){D.readEntries(function(xt){var En=Array.prototype.slice.apply(xt);Gt=Gt.concat(En);var Mn=!En.length;Mn?qe(Gt):dn()})}dn()}var Ne=function(qe,D,Gt){var dn=function xt(En,Mn){En&&(En.path=Mn||"",En.isFile?En.file(function(ki){Gt(ki)&&(En.fullPath&&!ki.webkitRelativePath&&(Object.defineProperties(ki,{webkitRelativePath:{writable:!0}}),ki.webkitRelativePath=En.fullPath.replace(/^\//,""),Object.defineProperties(ki,{webkitRelativePath:{writable:!1}})),D([ki]))}):En.isDirectory&&Ce(En,function(ki){ki.forEach(function(Un){xt(Un,"".concat(Mn).concat(En.name,"/"))})}))};qe.forEach(function(xt){dn(xt.webkitGetAsEntry())})},Le=Ne,Ke=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],nt=function(Mt){(0,pe.Z)(D,Mt);var qe=(0,ue.Z)(D);function D(){var Gt;(0,_.Z)(this,D);for(var dn=arguments.length,xt=new Array(dn),En=0;En<dn;En++)xt[En]=arguments[En];return Gt=qe.call.apply(qe,[this].concat(xt)),Gt.state={uid:ge()},Gt.reqs={},Gt.fileInput=void 0,Gt._isMounted=void 0,Gt.onChange=function(Mn){var ki=Gt.props,Un=ki.accept,ot=ki.directory,Bi=Mn.target.files,hr=(0,I.Z)(Bi).filter(function(Kt){return!ot||ee(Kt,Un)});Gt.uploadFiles(hr),Gt.reset()},Gt.onClick=function(Mn){var ki=Gt.fileInput;if(ki){var Un=Mn.target,ot=Gt.props.onClick;if(Un&&Un.tagName==="BUTTON"){var Bi=ki.parentNode;Bi.focus(),Un.blur()}ki.click(),ot&&ot(Mn)}},Gt.onKeyDown=function(Mn){Mn.key==="Enter"&&Gt.onClick(Mn)},Gt.onFileDrop=function(Mn){var ki=Gt.props.multiple;if(Mn.preventDefault(),Mn.type!=="dragover")if(Gt.props.directory)Le(Array.prototype.slice.call(Mn.dataTransfer.items),Gt.uploadFiles,function(ot){return ee(ot,Gt.props.accept)});else{var Un=(0,I.Z)(Mn.dataTransfer.files).filter(function(ot){return ee(ot,Gt.props.accept)});ki===!1&&(Un=Un.slice(0,1)),Gt.uploadFiles(Un)}},Gt.uploadFiles=function(Mn){var ki=(0,I.Z)(Mn),Un=ki.map(function(ot){return ot.uid=ge(),Gt.processFile(ot,ki)});Promise.all(Un).then(function(ot){var Bi=Gt.props.onBatchStart;Bi==null||Bi(ot.map(function(hr){var Kt=hr.origin,Qi=hr.parsedFile;return{file:Kt,parsedFile:Qi}})),ot.filter(function(hr){return hr.parsedFile!==null}).forEach(function(hr){Gt.post(hr)})})},Gt.processFile=function(){var Mn=(0,Ue.Z)((0,ke.Z)().mark(function ki(Un,ot){var Bi,hr,Kt,Qi,J,ae,Yn,_e,Et;return(0,ke.Z)().wrap(function(Pn){for(;;)switch(Pn.prev=Pn.next){case 0:if(Bi=Gt.props.beforeUpload,hr=Un,!Bi){Pn.next=14;break}return Pn.prev=3,Pn.next=6,Bi(Un,ot);case 6:hr=Pn.sent,Pn.next=12;break;case 9:Pn.prev=9,Pn.t0=Pn.catch(3),hr=!1;case 12:if(hr!==!1){Pn.next=14;break}return Pn.abrupt("return",{origin:Un,parsedFile:null,action:null,data:null});case 14:if(Kt=Gt.props.action,typeof Kt!="function"){Pn.next=21;break}return Pn.next=18,Kt(Un);case 18:Qi=Pn.sent,Pn.next=22;break;case 21:Qi=Kt;case 22:if(J=Gt.props.data,typeof J!="function"){Pn.next=29;break}return Pn.next=26,J(Un);case 26:ae=Pn.sent,Pn.next=30;break;case 29:ae=J;case 30:return Yn=((0,rt.Z)(hr)==="object"||typeof hr=="string")&&hr?hr:Un,Yn instanceof File?_e=Yn:_e=new File([Yn],Un.name,{type:Un.type}),Et=_e,Et.uid=Un.uid,Pn.abrupt("return",{origin:Un,data:ae,parsedFile:Et,action:Qi});case 35:case"end":return Pn.stop()}},ki,null,[[3,9]])}));return function(ki,Un){return Mn.apply(this,arguments)}}(),Gt.saveFileInput=function(Mn){Gt.fileInput=Mn},Gt}return(0,M.Z)(D,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(dn){var xt=this,En=dn.data,Mn=dn.origin,ki=dn.action,Un=dn.parsedFile;if(this._isMounted){var ot=this.props,Bi=ot.onStart,hr=ot.customRequest,Kt=ot.name,Qi=ot.headers,J=ot.withCredentials,ae=ot.method,Yn=Mn.uid,_e=hr||de,Et={action:ki,filename:Kt,data:En,file:Un,headers:Qi,withCredentials:J,method:ae||"post",onProgress:function(Pn){var Ki=xt.props.onProgress;Ki==null||Ki(Pn,Un)},onSuccess:function(Pn,Ki){var Zt=xt.props.onSuccess;Zt==null||Zt(Pn,Un,Ki),delete xt.reqs[Yn]},onError:function(Pn,Ki){var Zt=xt.props.onError;Zt==null||Zt(Pn,Ki,Un),delete xt.reqs[Yn]}};Bi(Mn),this.reqs[Yn]=_e(Et)}}},{key:"reset",value:function(){this.setState({uid:ge()})}},{key:"abort",value:function(dn){var xt=this.reqs;if(dn){var En=dn.uid?dn.uid:dn;xt[En]&&xt[En].abort&&xt[En].abort(),delete xt[En]}else Object.keys(xt).forEach(function(Mn){xt[Mn]&&xt[Mn].abort&&xt[Mn].abort(),delete xt[Mn]})}},{key:"render",value:function(){var dn=this.props,xt=dn.component,En=dn.prefixCls,Mn=dn.className,ki=dn.disabled,Un=dn.id,ot=dn.style,Bi=dn.multiple,hr=dn.accept,Kt=dn.capture,Qi=dn.children,J=dn.directory,ae=dn.openFileDialogOnClick,Yn=dn.onMouseEnter,_e=dn.onMouseLeave,Et=(0,Pe.Z)(dn,Ke),Ni=z()((0,ne.Z)((0,ne.Z)((0,ne.Z)({},En,!0),"".concat(En,"-disabled"),ki),Mn,Mn)),Pn=J?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Ki=ki?{}:{onClick:ae?this.onClick:function(){},onKeyDown:ae?this.onKeyDown:function(){},onMouseEnter:Yn,onMouseLeave:_e,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return b.createElement(xt,(0,W.Z)({},Ki,{className:Ni,role:"button",style:ot}),b.createElement("input",(0,W.Z)({},(0,Ie.Z)(Et,{aria:!0,data:!0}),{id:Un,disabled:ki,type:"file",ref:this.saveFileInput,onClick:function(Ii){return Ii.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:hr},Pn,{multiple:Bi,onChange:this.onChange},Kt!=null?{capture:Kt}:{})),Qi)}}]),D}(b.Component),ie=nt;function at(){}var Ze=function(Mt){(0,pe.Z)(D,Mt);var qe=(0,ue.Z)(D);function D(){var Gt;(0,_.Z)(this,D);for(var dn=arguments.length,xt=new Array(dn),En=0;En<dn;En++)xt[En]=arguments[En];return Gt=qe.call.apply(qe,[this].concat(xt)),Gt.uploader=void 0,Gt.saveUploader=function(Mn){Gt.uploader=Mn},Gt}return(0,M.Z)(D,[{key:"abort",value:function(dn){this.uploader.abort(dn)}},{key:"render",value:function(){return b.createElement(ie,(0,W.Z)({},this.props,{ref:this.saveUploader}))}}]),D}(b.Component);Ze.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 Bt=Ze,bt=Bt,kt=d(18929),Tt=d(4676),wn=d(36355),Xe=d(1684),se=d(9763),le=d(31724),_t={icon:function(qe,D){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:D}},{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:qe}}]}},name:"file",theme:"twotone"},jt=_t,yt=d(7657),ln=function(qe,D){return b.createElement(yt.Z,(0,W.Z)({},qe,{ref:D,icon:jt}))},Dt=b.forwardRef(ln),ui=Dt,On=d(58617),ri={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"},Xn=ri,Tn=function(qe,D){return b.createElement(yt.Z,(0,W.Z)({},qe,{ref:D,icon:Xn}))},Nn=b.forwardRef(Tn),xe=Nn,P={icon:function(qe,D){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:qe}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:D}},{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:D}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:D}},{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:qe}}]}},name:"picture",theme:"twotone"},k=P,j=function(qe,D){return b.createElement(yt.Z,(0,W.Z)({},qe,{ref:D,icon:k}))},X=b.forwardRef(j),N=X,Re=d(77900),wt=d(56762),ze=d(62892),Oe=d(92343),mt=d(3113);function lt(Mt){return Object.assign(Object.assign({},Mt),{lastModified:Mt.lastModified,lastModifiedDate:Mt.lastModifiedDate,name:Mt.name,size:Mt.size,type:Mt.type,uid:Mt.uid,percent:0,originFileObj:Mt})}function Qe(Mt,qe){const D=(0,I.Z)(qe),Gt=D.findIndex(dn=>{let{uid:xt}=dn;return xt===Mt.uid});return Gt===-1?D.push(Mt):D[Gt]=Mt,D}function Ct(Mt,qe){const D=Mt.uid!==void 0?"uid":"name";return qe.filter(Gt=>Gt[D]===Mt[D])[0]}function nn(Mt,qe){const D=Mt.uid!==void 0?"uid":"name",Gt=qe.filter(dn=>dn[D]!==Mt[D]);return Gt.length===qe.length?null:Gt}const Yt=function(){const qe=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Gt=qe[qe.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Gt)||[""])[0]},Ot=Mt=>Mt.indexOf("image/")===0,on=Mt=>{if(Mt.type&&!Mt.thumbUrl)return Ot(Mt.type);const qe=Mt.thumbUrl||Mt.url||"",D=Yt(qe);return/^data:image\//.test(qe)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(D)?!0:!(/^data:/.test(qe)||D)},hn=200;function Ve(Mt){return new Promise(qe=>{if(!Mt.type||!Ot(Mt.type)){qe("");return}const D=document.createElement("canvas");D.width=hn,D.height=hn,D.style.cssText=`position: fixed; left: 0; top: 0; width: ${hn}px; height: ${hn}px; z-index: 9999; display: none;`,document.body.appendChild(D);const Gt=D.getContext("2d"),dn=new Image;if(dn.onload=()=>{const{width:xt,height:En}=dn;let Mn=hn,ki=hn,Un=0,ot=0;xt>En?(ki=En*(hn/xt),ot=-(ki-Mn)/2):(Mn=xt*(hn/En),Un=-(Mn-ki)/2),Gt.drawImage(dn,Un,ot,Mn,ki);const Bi=D.toDataURL();document.body.removeChild(D),window.URL.revokeObjectURL(dn.src),qe(Bi)},dn.crossOrigin="anonymous",Mt.type.startsWith("image/svg+xml")){const xt=new FileReader;xt.onload=()=>{xt.result&&(dn.src=xt.result)},xt.readAsDataURL(Mt)}else if(Mt.type.startsWith("image/gif")){const xt=new FileReader;xt.onload=()=>{xt.result&&qe(xt.result)},xt.readAsDataURL(Mt)}else dn.src=window.URL.createObjectURL(Mt)})}var Pt=d(26227),Xt=d(41464),qt=d(15277),He=d(93948),Rn=d(6848),Gn=b.forwardRef((Mt,qe)=>{let{prefixCls:D,className:Gt,style:dn,locale:xt,listType:En,file:Mn,items:ki,progress:Un,iconRender:ot,actionIconRender:Bi,itemRender:hr,isImgUrl:Kt,showPreviewIcon:Qi,showRemoveIcon:J,showDownloadIcon:ae,previewIcon:Yn,removeIcon:_e,downloadIcon:Et,onPreview:Ni,onDownload:Pn,onClose:Ki}=Mt;var Zt,Ii;const{status:Wt}=Mn,[Yi,io]=b.useState(Wt);b.useEffect(()=>{Wt!=="removed"&&io(Wt)},[Wt]);const[It,Mo]=b.useState(!1);b.useEffect(()=>{const Vr=setTimeout(()=>{Mo(!0)},300);return()=>{clearTimeout(Vr)}},[]);const Jt=ot(Mn);let _i=b.createElement("div",{className:`${D}-icon`},Jt);if(En==="picture"||En==="picture-card"||En==="picture-circle")if(Yi==="uploading"||!Mn.thumbUrl&&!Mn.url){const Vr=z()(`${D}-list-item-thumbnail`,{[`${D}-list-item-file`]:Yi!=="uploading"});_i=b.createElement("div",{className:Vr},Jt)}else{const Vr=Kt!=null&&Kt(Mn)?b.createElement("img",{src:Mn.thumbUrl||Mn.url,alt:Mn.name,className:`${D}-list-item-image`,crossOrigin:Mn.crossOrigin}):Jt,wo=z()(`${D}-list-item-thumbnail`,{[`${D}-list-item-file`]:Kt&&!Kt(Mn)});_i=b.createElement("a",{className:wo,onClick:Ko=>Ni(Mn,Ko),href:Mn.url||Mn.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Vr)}const Li=z()(`${D}-list-item`,`${D}-list-item-${Yi}`),Sr=typeof Mn.linkProps=="string"?JSON.parse(Mn.linkProps):Mn.linkProps,Or=J?Bi((typeof _e=="function"?_e(Mn):_e)||b.createElement(Pt.Z,null),()=>Ki(Mn),D,xt.removeFile):null,qn=ae&&Yi==="done"?Bi((typeof Et=="function"?Et(Mn):Et)||b.createElement(Xt.Z,null),()=>Pn(Mn),D,xt.downloadFile):null,ce=En!=="picture-card"&&En!=="picture-circle"&&b.createElement("span",{key:"download-delete",className:z()(`${D}-list-item-actions`,{picture:En==="picture"})},qn,Or),Ar=z()(`${D}-list-item-name`),eo=Mn.url?[b.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Ar,title:Mn.name},Sr,{href:Mn.url,onClick:Vr=>Ni(Mn,Vr)}),Mn.name),ce]:[b.createElement("span",{key:"view",className:Ar,onClick:Vr=>Ni(Mn,Vr),title:Mn.name},Mn.name),ce],br={pointerEvents:"none",opacity:.5},fo=Qi?b.createElement("a",{href:Mn.url||Mn.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Mn.url||Mn.thumbUrl?void 0:br,onClick:Vr=>Ni(Mn,Vr),title:xt.previewFile},typeof Yn=="function"?Yn(Mn):Yn||b.createElement(qt.Z,null)):null,qi=(En==="picture-card"||En==="picture-circle")&&Yi!=="uploading"&&b.createElement("span",{className:`${D}-list-item-actions`},fo,Yi==="done"&&qn,Or),{getPrefixCls:Xr}=b.useContext(wn.E_),Ri=Xr(),Vi=b.createElement("div",{className:Li},_i,eo,qi,It&&b.createElement(Re.default,{motionName:`${Ri}-fade`,visible:Yi==="uploading",motionDeadline:2e3},Vr=>{let{className:wo}=Vr;const Ko="percent"in Mn?b.createElement(He.Z,Object.assign({},Un,{type:"line",percent:Mn.percent,"aria-label":Mn["aria-label"],"aria-labelledby":Mn["aria-labelledby"]})):null;return b.createElement("div",{className:z()(`${D}-list-item-progress`,wo)},Ko)})),Hi=Mn.response&&typeof Mn.response=="string"?Mn.response:((Zt=Mn.error)===null||Zt===void 0?void 0:Zt.statusText)||((Ii=Mn.error)===null||Ii===void 0?void 0:Ii.message)||xt.uploadError,$r=Yi==="error"?b.createElement(Rn.Z,{title:Hi,getPopupContainer:Vr=>Vr.parentNode},Vi):Vi;return b.createElement("div",{className:z()(`${D}-list-item-container`,Gt),style:dn,ref:qe},hr?hr($r,Mn,ki,{download:Pn.bind(null,Mn),preview:Ni.bind(null,Mn),remove:Ki.bind(null,Mn)}):$r)});const Ci=(Mt,qe)=>{const{listType:D="text",previewFile:Gt=Ve,onPreview:dn,onDownload:xt,onRemove:En,locale:Mn,iconRender:ki,isImageUrl:Un=on,prefixCls:ot,items:Bi=[],showPreviewIcon:hr=!0,showRemoveIcon:Kt=!0,showDownloadIcon:Qi=!1,removeIcon:J,previewIcon:ae,downloadIcon:Yn,progress:_e={size:[-1,2],showInfo:!1},appendAction:Et,appendActionVisible:Ni=!0,itemRender:Pn,disabled:Ki}=Mt,Zt=(0,wt.Z)(),[Ii,Wt]=b.useState(!1);b.useEffect(()=>{D!=="picture"&&D!=="picture-card"&&D!=="picture-circle"||(Bi||[]).forEach(br=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(br.originFileObj instanceof File||br.originFileObj instanceof Blob)||br.thumbUrl!==void 0||(br.thumbUrl="",Gt&&Gt(br.originFileObj).then(fo=>{br.thumbUrl=fo||"",Zt()}))})},[D,Bi,Gt]),b.useEffect(()=>{Wt(!0)},[]);const Yi=(br,fo)=>{if(dn)return fo==null||fo.preventDefault(),dn(br)},io=br=>{typeof xt=="function"?xt(br):br.url&&window.open(br.url)},It=br=>{En==null||En(br)},Mo=br=>{if(ki)return ki(br,D);const fo=br.status==="uploading",qi=Un&&Un(br)?b.createElement(N,null):b.createElement(ui,null);let Xr=fo?b.createElement(On.Z,null):b.createElement(xe,null);return D==="picture"?Xr=fo?b.createElement(On.Z,null):qi:(D==="picture-card"||D==="picture-circle")&&(Xr=fo?Mn.uploading:qi),Xr},Jt=(br,fo,qi,Xr)=>{const Ri={type:"text",size:"small",title:Xr,onClick:Vi=>{fo(),(0,Oe.l$)(br)&&br.props.onClick&&br.props.onClick(Vi)},className:`${qi}-list-item-action`,disabled:Ki};if((0,Oe.l$)(br)){const Vi=(0,Oe.Tm)(br,Object.assign(Object.assign({},br.props),{onClick:()=>{}}));return b.createElement(mt.ZP,Object.assign({},Ri,{icon:Vi}))}return b.createElement(mt.ZP,Object.assign({},Ri),b.createElement("span",null,br))};b.useImperativeHandle(qe,()=>({handlePreview:Yi,handleDownload:io}));const{getPrefixCls:_i}=b.useContext(wn.E_),Li=_i("upload",ot),Sr=_i(),Or=z()(`${Li}-list`,`${Li}-list-${D}`),qn=(0,I.Z)(Bi.map(br=>({key:br.uid,file:br})));let Ar={motionDeadline:2e3,motionName:`${Li}-${D==="picture-card"||D==="picture-circle"?"animate-inline":"animate"}`,keys:qn,motionAppear:Ii};const eo=b.useMemo(()=>{const br=Object.assign({},(0,ze.Z)(Sr));return delete br.onAppearEnd,delete br.onEnterEnd,delete br.onLeaveEnd,br},[Sr]);return D!=="picture-card"&&D!=="picture-circle"&&(Ar=Object.assign(Object.assign({},eo),Ar)),b.createElement("div",{className:Or},b.createElement(Re.CSSMotionList,Object.assign({},Ar,{component:!1}),br=>{let{key:fo,file:qi,className:Xr,style:Ri}=br;return b.createElement(Gn,{key:fo,locale:Mn,prefixCls:Li,className:Xr,style:Ri,file:qi,items:Bi,progress:_e,listType:D,isImgUrl:Un,showPreviewIcon:hr,showRemoveIcon:Kt,showDownloadIcon:Qi,removeIcon:J,previewIcon:ae,downloadIcon:Yn,iconRender:Mo,actionIconRender:Jt,itemRender:Pn,onPreview:Yi,onDownload:io,onClose:It})}),Et&&b.createElement(Re.default,Object.assign({},Ar,{visible:Ni,forceRender:!0}),br=>{let{className:fo,style:qi}=br;return(0,Oe.Tm)(Et,Xr=>({className:z()(Xr.className,fo),style:Object.assign(Object.assign(Object.assign({},qi),{pointerEvents:fo?"none":void 0}),Xr.style)}))}))};var sn=b.forwardRef(Ci),rn=d(17313),cr=d(8378),yr=d(83116),Zn=d(37613),rr=Mt=>{const{componentCls:qe,iconCls:D}=Mt;return{[`${qe}-wrapper`]:{[`${qe}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:Mt.colorFillAlter,border:`${Mt.lineWidth}px dashed ${Mt.colorBorder}`,borderRadius:Mt.borderRadiusLG,cursor:"pointer",transition:`border-color ${Mt.motionDurationSlow}`,[qe]:{padding:`${Mt.padding}px 0`},[`${qe}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${qe}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${qe}-disabled):hover`]:{borderColor:Mt.colorPrimaryHover},[`p${qe}-drag-icon`]:{marginBottom:Mt.margin,[D]:{color:Mt.colorPrimary,fontSize:Mt.uploadThumbnailSize}},[`p${qe}-text`]:{margin:`0 0 ${Mt.marginXXS}px`,color:Mt.colorTextHeading,fontSize:Mt.fontSizeLG},[`p${qe}-hint`]:{color:Mt.colorTextDescription,fontSize:Mt.fontSize},[`&${qe}-disabled`]:{cursor:"not-allowed",[`p${qe}-drag-icon ${D},
|
|
|
p${qe}-text,
|
|
|
p${qe}-hint
|
|
|
`]:{color:Mt.colorTextDisabled}}}}}},mr=Mt=>{const{componentCls:qe,antCls:D,iconCls:Gt,fontSize:dn,lineHeight:xt}=Mt,En=`${qe}-list-item`,Mn=`${En}-actions`,ki=`${En}-action`,Un=Math.round(dn*xt);return{[`${qe}-wrapper`]:{[`${qe}-list`]:Object.assign(Object.assign({},(0,rn.dF)()),{lineHeight:Mt.lineHeight,[En]:{position:"relative",height:Mt.lineHeight*dn,marginTop:Mt.marginXS,fontSize:dn,display:"flex",alignItems:"center",transition:`background-color ${Mt.motionDurationSlow}`,"&:hover":{backgroundColor:Mt.controlItemBgHover},[`${En}-name`]:Object.assign(Object.assign({},rn.vS),{padding:`0 ${Mt.paddingXS}px`,lineHeight:xt,flex:"auto",transition:`all ${Mt.motionDurationSlow}`}),[Mn]:{[ki]:{opacity:0},[`${ki}${D}-btn-sm`]:{height:Un,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
|
${ki}:focus-visible,
|
|
|
&.picture ${ki}
|
|
|
`]:{opacity:1},[Gt]:{color:Mt.actionsColor,transition:`all ${Mt.motionDurationSlow}`},[`&:hover ${Gt}`]:{color:Mt.colorText}},[`${qe}-icon ${Gt}`]:{color:Mt.colorTextDescription,fontSize:dn},[`${En}-progress`]:{position:"absolute",bottom:-Mt.uploadProgressOffset,width:"100%",paddingInlineStart:dn+Mt.paddingXS,fontSize:dn,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${En}:hover ${ki}`]:{opacity:1,color:Mt.colorText},[`${En}-error`]:{color:Mt.colorError,[`${En}-name, ${qe}-icon ${Gt}`]:{color:Mt.colorError},[Mn]:{[`${Gt}, ${Gt}:hover`]:{color:Mt.colorError},[ki]:{opacity:1}}},[`${qe}-list-item-container`]:{transition:`opacity ${Mt.motionDurationSlow}, height ${Mt.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},lr=d(93083),_r=d(1950);const Hr=new lr.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),uo=new lr.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Jr=Mt=>{const{componentCls:qe}=Mt,D=`${qe}-animate-inline`;return[{[`${qe}-wrapper`]:{[`${D}-appear, ${D}-enter, ${D}-leave`]:{animationDuration:Mt.motionDurationSlow,animationTimingFunction:Mt.motionEaseInOutCirc,animationFillMode:"forwards"},[`${D}-appear, ${D}-enter`]:{animationName:Hr},[`${D}-leave`]:{animationName:uo}}},{[`${qe}-wrapper`]:(0,_r.J$)(Mt)},Hr,uo]},fr=d(93398),Xi=d(64993);const di=Mt=>{const{componentCls:qe,iconCls:D,uploadThumbnailSize:Gt,uploadProgressOffset:dn}=Mt,xt=`${qe}-list`,En=`${xt}-item`;return{[`${qe}-wrapper`]:{[`
|
|
|
${xt}${xt}-picture,
|
|
|
${xt}${xt}-picture-card,
|
|
|
${xt}${xt}-picture-circle
|
|
|
`]:{[En]:{position:"relative",height:Gt+Mt.lineWidth*2+Mt.paddingXS*2,padding:Mt.paddingXS,border:`${Mt.lineWidth}px ${Mt.lineType} ${Mt.colorBorder}`,borderRadius:Mt.borderRadiusLG,"&:hover":{background:"transparent"},[`${En}-thumbnail`]:Object.assign(Object.assign({},rn.vS),{width:Gt,height:Gt,lineHeight:`${Gt+Mt.paddingSM}px`,textAlign:"center",flex:"none",[D]:{fontSize:Mt.fontSizeHeading2,color:Mt.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${En}-progress`]:{bottom:dn,width:`calc(100% - ${Mt.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Gt+Mt.paddingXS}},[`${En}-error`]:{borderColor:Mt.colorError,[`${En}-thumbnail ${D}`]:{[`svg path[fill='${fr.blue[0]}']`]:{fill:Mt.colorErrorBg},[`svg path[fill='${fr.blue.primary}']`]:{fill:Mt.colorError}}},[`${En}-uploading`]:{borderStyle:"dashed",[`${En}-name`]:{marginBottom:dn}}},[`${xt}${xt}-picture-circle ${En}`]:{[`&, &::before, ${En}-thumbnail`]:{borderRadius:"50%"}}}}},ht=Mt=>{const{componentCls:qe,iconCls:D,fontSizeLG:Gt,colorTextLightSolid:dn}=Mt,xt=`${qe}-list`,En=`${xt}-item`,Mn=Mt.uploadPicCardSize;return{[`
|
|
|
${qe}-wrapper${qe}-picture-card-wrapper,
|
|
|
${qe}-wrapper${qe}-picture-circle-wrapper
|
|
|
`]:Object.assign(Object.assign({},(0,rn.dF)()),{display:"inline-block",width:"100%",[`${qe}${qe}-select`]:{width:Mn,height:Mn,marginInlineEnd:Mt.marginXS,marginBottom:Mt.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:Mt.colorFillAlter,border:`${Mt.lineWidth}px dashed ${Mt.colorBorder}`,borderRadius:Mt.borderRadiusLG,cursor:"pointer",transition:`border-color ${Mt.motionDurationSlow}`,[`> ${qe}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${qe}-disabled):hover`]:{borderColor:Mt.colorPrimary}},[`${xt}${xt}-picture-card, ${xt}${xt}-picture-circle`]:{[`${xt}-item-container`]:{display:"inline-block",width:Mn,height:Mn,marginBlock:`0 ${Mt.marginXS}px`,marginInline:`0 ${Mt.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[En]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${Mt.paddingXS*2}px)`,height:`calc(100% - ${Mt.paddingXS*2}px)`,backgroundColor:Mt.colorBgMask,opacity:0,transition:`all ${Mt.motionDurationSlow}`,content:'" "'}},[`${En}:hover`]:{[`&::before, ${En}-actions`]:{opacity:1}},[`${En}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${Mt.motionDurationSlow}`,[`${D}-eye, ${D}-download, ${D}-delete`]:{zIndex:10,width:Gt,margin:`0 ${Mt.marginXXS}px`,fontSize:Gt,cursor:"pointer",transition:`all ${Mt.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${En}-actions, ${En}-actions:hover`]:{[`${D}-eye, ${D}-download, ${D}-delete`]:{color:new Xi.C(dn).setAlpha(.65).toRgbString(),"&:hover":{color:dn}}},[`${En}-thumbnail, ${En}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${En}-name`]:{display:"none",textAlign:"center"},[`${En}-file + ${En}-name`]:{position:"absolute",bottom:Mt.margin,display:"block",width:`calc(100% - ${Mt.paddingXS*2}px)`},[`${En}-uploading`]:{[`&${En}`]:{backgroundColor:Mt.colorFillAlter},[`&::before, ${D}-eye, ${D}-download, ${D}-delete`]:{display:"none"}},[`${En}-progress`]:{bottom:Mt.marginXL,width:`calc(100% - ${Mt.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${qe}-wrapper${qe}-picture-circle-wrapper`]:{[`${qe}${qe}-select`]:{borderRadius:"50%"}}}};var Hn=Mt=>{const{componentCls:qe}=Mt;return{[`${qe}-rtl`]:{direction:"rtl"}}};const gt=Mt=>{const{componentCls:qe,colorTextDisabled:D}=Mt;return{[`${qe}-wrapper`]:Object.assign(Object.assign({},(0,rn.Wf)(Mt)),{[qe]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${qe}-select`]:{display:"inline-block"},[`${qe}-disabled`]:{color:D,cursor:"not-allowed"}})}};var Ge=(0,yr.Z)("Upload",Mt=>{const{fontSizeHeading3:qe,fontSize:D,lineHeight:Gt,lineWidth:dn,controlHeightLG:xt}=Mt,En=Math.round(D*Gt),Mn=(0,Zn.TS)(Mt,{uploadThumbnailSize:qe*2,uploadProgressOffset:En/2+dn,uploadPicCardSize:xt*2.55});return[gt(Mn),rr(Mn),di(Mn),ht(Mn),mr(Mn),Jr(Mn),Hn(Mn),(0,cr.Z)(Mn)]},Mt=>({actionsColor:Mt.colorTextDescription})),fn=function(Mt,qe,D,Gt){function dn(xt){return xt instanceof D?xt:new D(function(En){En(xt)})}return new(D||(D=Promise))(function(xt,En){function Mn(ot){try{Un(Gt.next(ot))}catch(Bi){En(Bi)}}function ki(ot){try{Un(Gt.throw(ot))}catch(Bi){En(Bi)}}function Un(ot){ot.done?xt(ot.value):dn(ot.value).then(Mn,ki)}Un((Gt=Gt.apply(Mt,qe||[])).next())})};const Sn=`__LIST_IGNORE_${Date.now()}__`,ti=(Mt,qe)=>{const{fileList:D,defaultFileList:Gt,onRemove:dn,showUploadList:xt=!0,listType:En="text",onPreview:Mn,onDownload:ki,onChange:Un,onDrop:ot,previewFile:Bi,disabled:hr,locale:Kt,iconRender:Qi,isImageUrl:J,progress:ae,prefixCls:Yn,className:_e,type:Et="select",children:Ni,style:Pn,itemRender:Ki,maxCount:Zt,data:Ii={},multiple:Wt=!1,action:Yi="",accept:io="",supportServerRender:It=!0,rootClassName:Mo}=Mt,Jt=b.useContext(Xe.Z),_i=hr!=null?hr:Jt,[Li,Sr]=(0,kt.Z)(Gt||[],{value:D,postState:po=>po!=null?po:[]}),[Or,qn]=b.useState("drop"),ce=b.useRef(null);b.useMemo(()=>{const po=Date.now();(D||[]).forEach((_o,Ss)=>{!_o.uid&&!Object.isFrozen(_o)&&(_o.uid=`__AUTO__${po}_${Ss}__`)})},[D]);const Ar=(po,_o,Ss)=>{let Ut=(0,I.Z)(_o),zr=!1;Zt===1?Ut=Ut.slice(-1):Zt&&(zr=Ut.length>Zt,Ut=Ut.slice(0,Zt)),(0,Tt.flushSync)(()=>{Sr(Ut)});const Co={file:po,fileList:Ut};Ss&&(Co.event=Ss),(!zr||Ut.some(ba=>ba.uid===po.uid))&&(0,Tt.flushSync)(()=>{Un==null||Un(Co)})},eo=(po,_o)=>fn(void 0,void 0,void 0,function*(){const{beforeUpload:Ss,transformFile:Ut}=Mt;let zr=po;if(Ss){const Co=yield Ss(po,_o);if(Co===!1)return!1;if(delete po[Sn],Co===Sn)return Object.defineProperty(po,Sn,{value:!0,configurable:!0}),!1;typeof Co=="object"&&Co&&(zr=Co)}return Ut&&(zr=yield Ut(zr)),zr}),br=po=>{const _o=po.filter(zr=>!zr.file[Sn]);if(!_o.length)return;const Ss=_o.map(zr=>lt(zr.file));let Ut=(0,I.Z)(Li);Ss.forEach(zr=>{Ut=Qe(zr,Ut)}),Ss.forEach((zr,Co)=>{let ba=zr;if(_o[Co].parsedFile)zr.status="uploading";else{const{originFileObj:Er}=zr;let yn;try{yn=new File([Er],Er.name,{type:Er.type})}catch(pr){yn=new Blob([Er],{type:Er.type}),yn.name=Er.name,yn.lastModifiedDate=new Date,yn.lastModified=new Date().getTime()}yn.uid=zr.uid,ba=yn}Ar(ba,Ut)})},fo=(po,_o,Ss)=>{try{typeof po=="string"&&(po=JSON.parse(po))}catch(Co){}if(!Ct(_o,Li))return;const Ut=lt(_o);Ut.status="done",Ut.percent=100,Ut.response=po,Ut.xhr=Ss;const zr=Qe(Ut,Li);Ar(Ut,zr)},qi=(po,_o)=>{if(!Ct(_o,Li))return;const Ss=lt(_o);Ss.status="uploading",Ss.percent=po.percent;const Ut=Qe(Ss,Li);Ar(Ss,Ut,po)},Xr=(po,_o,Ss)=>{if(!Ct(Ss,Li))return;const Ut=lt(Ss);Ut.error=po,Ut.response=_o,Ut.status="error";const zr=Qe(Ut,Li);Ar(Ut,zr)},Ri=po=>{let _o;Promise.resolve(typeof dn=="function"?dn(po):dn).then(Ss=>{var Ut;if(Ss===!1)return;const zr=nn(po,Li);zr&&(_o=Object.assign(Object.assign({},po),{status:"removed"}),Li==null||Li.forEach(Co=>{const ba=_o.uid!==void 0?"uid":"name";Co[ba]===_o[ba]&&!Object.isFrozen(Co)&&(Co.status="removed")}),(Ut=ce.current)===null||Ut===void 0||Ut.abort(_o),Ar(_o,zr))})},Vi=po=>{qn(po.type),po.type==="drop"&&(ot==null||ot(po))};b.useImperativeHandle(qe,()=>({onBatchStart:br,onSuccess:fo,onProgress:qi,onError:Xr,fileList:Li,upload:ce.current}));const{getPrefixCls:Hi,direction:$r,upload:Vr}=b.useContext(wn.E_),wo=Hi("upload",Yn),Ko=Object.assign(Object.assign({onBatchStart:br,onError:Xr,onProgress:qi,onSuccess:fo},Mt),{data:Ii,multiple:Wt,action:Yi,accept:io,supportServerRender:It,prefixCls:wo,disabled:_i,beforeUpload:eo,onChange:void 0});delete Ko.className,delete Ko.style,(!Ni||_i)&&delete Ko.id;const[mi,Rs]=Ge(wo),[fs]=(0,se.Z)("Upload",le.Z.Upload),{showRemoveIcon:cs,showPreviewIcon:Bs,showDownloadIcon:ca,removeIcon:Ya,previewIcon:ra,downloadIcon:Ha}=typeof xt=="boolean"?{}:xt,ya=(po,_o)=>xt?b.createElement(sn,{prefixCls:wo,listType:En,items:Li,previewFile:Bi,onPreview:Mn,onDownload:ki,onRemove:Ri,showRemoveIcon:!_i&&cs,showPreviewIcon:Bs,showDownloadIcon:ca,removeIcon:Ya,previewIcon:ra,downloadIcon:Ha,iconRender:Qi,locale:Object.assign(Object.assign({},fs),Kt),isImageUrl:J,progress:ae,appendAction:po,appendActionVisible:_o,itemRender:Ki,disabled:_i}):po,ns=z()(`${wo}-wrapper`,_e,Mo,Rs,Vr==null?void 0:Vr.className,{[`${wo}-rtl`]:$r==="rtl",[`${wo}-picture-card-wrapper`]:En==="picture-card",[`${wo}-picture-circle-wrapper`]:En==="picture-circle"}),Ht=Object.assign(Object.assign({},Vr==null?void 0:Vr.style),Pn);if(Et==="drag"){const po=z()(Rs,wo,`${wo}-drag`,{[`${wo}-drag-uploading`]:Li.some(_o=>_o.status==="uploading"),[`${wo}-drag-hover`]:Or==="dragover",[`${wo}-disabled`]:_i,[`${wo}-rtl`]:$r==="rtl"});return mi(b.createElement("span",{className:ns},b.createElement("div",{className:po,style:Ht,onDrop:Vi,onDragOver:Vi,onDragLeave:Vi},b.createElement(bt,Object.assign({},Ko,{ref:ce,className:`${wo}-btn`}),b.createElement("div",{className:`${wo}-drag-container`},Ni))),ya()))}const Ws=z()(wo,`${wo}-select`,{[`${wo}-disabled`]:_i}),Ml=(po=>b.createElement("div",{className:Ws,style:po},b.createElement(bt,Object.assign({},Ko,{ref:ce}))))(Ni?void 0:{display:"none"});return mi(En==="picture-card"||En==="picture-circle"?b.createElement("span",{className:ns},ya(Ml,!!Ni)):b.createElement("span",{className:ns},Ml,ya()))};var pt=b.forwardRef(ti),gn=function(Mt,qe){var D={};for(var Gt in Mt)Object.prototype.hasOwnProperty.call(Mt,Gt)&&qe.indexOf(Gt)<0&&(D[Gt]=Mt[Gt]);if(Mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dn=0,Gt=Object.getOwnPropertySymbols(Mt);dn<Gt.length;dn++)qe.indexOf(Gt[dn])<0&&Object.prototype.propertyIsEnumerable.call(Mt,Gt[dn])&&(D[Gt[dn]]=Mt[Gt[dn]]);return D},xi=b.forwardRef((Mt,qe)=>{var{style:D,height:Gt}=Mt,dn=gn(Mt,["style","height"]);return b.createElement(pt,Object.assign({ref:qe},dn,{type:"drag",style:Object.assign(Object.assign({},D),{height:Gt})}))});const ft=pt;ft.Dragger=xi,ft.LIST_IGNORE=Sn;var Fn=ft},99498:function(Q,C,d){(function(b){b(d(89780))})(function(b){b.defineOption("placeholder","",function(pe,ue,ne){var Pe=ne&&ne!=b.Init;if(ue&&!Pe)pe.on("blur",W),pe.on("change",_),pe.on("swapDoc",_),b.on(pe.getInputField(),"compositionupdate",pe.state.placeholderCompose=function(){z(pe)}),_(pe);else if(!ue&&Pe){pe.off("blur",W),pe.off("change",_),pe.off("swapDoc",_),b.off(pe.getInputField(),"compositionupdate",pe.state.placeholderCompose),I(pe);var ke=pe.getWrapperElement();ke.className=ke.className.replace(" CodeMirror-empty","")}ue&&!pe.hasFocus()&&W(pe)});function I(pe){pe.state.placeholder&&(pe.state.placeholder.parentNode.removeChild(pe.state.placeholder),pe.state.placeholder=null)}function O(pe){I(pe);var ue=pe.state.placeholder=document.createElement("pre");ue.style.cssText="height: 0; overflow: visible",ue.style.direction=pe.getOption("direction"),ue.className="CodeMirror-placeholder CodeMirror-line-like";var ne=pe.getOption("placeholder");typeof ne=="string"&&(ne=document.createTextNode(ne)),ue.appendChild(ne),pe.display.lineSpace.insertBefore(ue,pe.display.lineSpace.firstChild)}function z(pe){setTimeout(function(){var ue=!1,ne=pe.getInputField();ne.nodeName=="TEXTAREA"?ue=!ne.value:pe.lineCount()==1&&(ue=!/[^\u200b]/.test(ne.querySelector(".CodeMirror-line").textContent)),ue?O(pe):I(pe)},20)}function W(pe){M(pe)&&O(pe)}function _(pe){var ue=pe.getWrapperElement(),ne=M(pe);ue.className=ue.className.replace(" CodeMirror-empty","")+(ne?" CodeMirror-empty":""),ne?O(pe):I(pe)}function M(pe){return pe.lineCount()===1&&pe.getLine(0)===""}})},25717:function(Q,C,d){(function(b){b(d(89780))})(function(b){var I={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},O=b.Pos;b.defineOption("autoCloseBrackets",!1,function(Ie,De,Fe){Fe&&Fe!=b.Init&&(Ie.removeKeyMap(W),Ie.state.closeBrackets=null),De&&(_(z(De,"pairs")),Ie.state.closeBrackets=De,Ie.addKeyMap(W))});function z(Ie,De){return De=="pairs"&&typeof Ie=="string"?Ie:typeof Ie=="object"&&Ie[De]!=null?Ie[De]:I[De]}var W={Backspace:ue,Enter:ne};function _(Ie){for(var De=0;De<Ie.length;De++){var Fe=Ie.charAt(De),de="'"+Fe+"'";W[de]||(W[de]=M(Fe))}}_(I.pairs+"`");function M(Ie){return function(De){return ke(De,Ie)}}function pe(Ie){var De=Ie.state.closeBrackets;if(!De||De.override)return De;var Fe=Ie.getModeAt(Ie.getCursor());return Fe.closeBrackets||De}function ue(Ie){var De=pe(Ie);if(!De||Ie.getOption("disableInput"))return b.Pass;for(var Fe=z(De,"pairs"),de=Ie.listSelections(),me=0;me<de.length;me++){if(!de[me].empty())return b.Pass;var we=rt(Ie,de[me].head);if(!we||Fe.indexOf(we)%2!=0)return b.Pass}for(var me=de.length-1;me>=0;me--){var ge=de[me].head;Ie.replaceRange("",O(ge.line,ge.ch-1),O(ge.line,ge.ch+1),"+delete")}}function ne(Ie){var De=pe(Ie),Fe=De&&z(De,"explode");if(!Fe||Ie.getOption("disableInput"))return b.Pass;for(var de=Ie.listSelections(),me=0;me<de.length;me++){if(!de[me].empty())return b.Pass;var we=rt(Ie,de[me].head);if(!we||Fe.indexOf(we)%2!=0)return b.Pass}Ie.operation(function(){var ge=Ie.lineSeparator()||`
|
|
|
`;Ie.replaceSelection(ge+ge,null),Ie.execCommand("goCharLeft"),de=Ie.listSelections();for(var Te=0;Te<de.length;Te++){var ee=de[Te].head.line;Ie.indentLine(ee,null,!0),Ie.indentLine(ee+1,null,!0)}})}function Pe(Ie){var De=b.cmpPos(Ie.anchor,Ie.head)>0;return{anchor:new O(Ie.anchor.line,Ie.anchor.ch+(De?-1:1)),head:new O(Ie.head.line,Ie.head.ch+(De?1:-1))}}function ke(Ie,De){var Fe=pe(Ie);if(!Fe||Ie.getOption("disableInput"))return b.Pass;var de=z(Fe,"pairs"),me=de.indexOf(De);if(me==-1)return b.Pass;for(var we=z(Fe,"closeBefore"),ge=z(Fe,"triples"),Te=de.charAt(me+1)==De,ee=Ie.listSelections(),Ce=me%2==0,Ne,Le=0;Le<ee.length;Le++){var Ke=ee[Le],nt=Ke.head,ie,at=Ie.getRange(nt,O(nt.line,nt.ch+1));if(Ce&&!Ke.empty())ie="surround";else if((Te||!Ce)&&at==De)Te&&Ue(Ie,nt)?ie="both":ge.indexOf(De)>=0&&Ie.getRange(nt,O(nt.line,nt.ch+3))==De+De+De?ie="skipThree":ie="skip";else if(Te&&nt.ch>1&&ge.indexOf(De)>=0&&Ie.getRange(O(nt.line,nt.ch-2),nt)==De+De){if(nt.ch>2&&/\bstring/.test(Ie.getTokenTypeAt(O(nt.line,nt.ch-2))))return b.Pass;ie="addFour"}else if(Te){var Ze=nt.ch==0?" ":Ie.getRange(O(nt.line,nt.ch-1),nt);if(!b.isWordChar(at)&&Ze!=De&&!b.isWordChar(Ze))ie="both";else return b.Pass}else if(Ce&&(at.length===0||/\s/.test(at)||we.indexOf(at)>-1))ie="both";else return b.Pass;if(!Ne)Ne=ie;else if(Ne!=ie)return b.Pass}var Bt=me%2?de.charAt(me-1):De,bt=me%2?De:de.charAt(me+1);Ie.operation(function(){if(Ne=="skip")Ie.execCommand("goCharRight");else if(Ne=="skipThree")for(var kt=0;kt<3;kt++)Ie.execCommand("goCharRight");else if(Ne=="surround"){for(var Tt=Ie.getSelections(),kt=0;kt<Tt.length;kt++)Tt[kt]=Bt+Tt[kt]+bt;Ie.replaceSelections(Tt,"around"),Tt=Ie.listSelections().slice();for(var kt=0;kt<Tt.length;kt++)Tt[kt]=Pe(Tt[kt]);Ie.setSelections(Tt)}else Ne=="both"?(Ie.replaceSelection(Bt+bt,null),Ie.triggerElectric(Bt+bt),Ie.execCommand("goCharLeft")):Ne=="addFour"&&(Ie.replaceSelection(Bt+Bt+Bt+Bt,"before"),Ie.execCommand("goCharRight"))})}function rt(Ie,De){var Fe=Ie.getRange(O(De.line,De.ch-1),O(De.line,De.ch+1));return Fe.length==2?Fe:null}function Ue(Ie,De){var Fe=Ie.getTokenAt(O(De.line,De.ch+1));return/\bstring/.test(Fe.type)&&Fe.start==De.ch&&(De.ch==0||!/\bstring/.test(Ie.getTokenTypeAt(De)))}})},6313:function(Q,C,d){(function(b){b(d(89780),d(32855))})(function(b){b.defineOption("autoCloseTags",!1,function(ue,ne,Pe){if(Pe!=b.Init&&Pe&&ue.removeKeyMap("autoCloseTags"),!!ne){var ke={name:"autoCloseTags"};(typeof ne!="object"||ne.whenClosing!==!1)&&(ke["'/'"]=function(rt){return _(rt)}),(typeof ne!="object"||ne.whenOpening!==!1)&&(ke["'>'"]=function(rt){return z(rt)}),ue.addKeyMap(ke)}});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 z(ue){if(ue.getOption("disableInput"))return b.Pass;for(var ne=ue.listSelections(),Pe=[],ke=ue.getOption("autoCloseTags"),rt=0;rt<ne.length;rt++){if(!ne[rt].empty())return b.Pass;var Ue=ne[rt].head,Ie=ue.getTokenAt(Ue),De=b.innerMode(ue.getMode(),Ie.state),Fe=De.state,de=De.mode.xmlCurrentTag&&De.mode.xmlCurrentTag(Fe),me=de&&de.name;if(!me)return b.Pass;var we=De.mode.configuration=="html",ge=typeof ke=="object"&&ke.dontCloseTags||we&&I,Te=typeof ke=="object"&&ke.indentTags||we&&O;Ie.end>Ue.ch&&(me=me.slice(0,me.length-Ie.end+Ue.ch));var ee=me.toLowerCase();if(!me||Ie.type=="string"&&(Ie.end!=Ue.ch||!/[\"\']/.test(Ie.string.charAt(Ie.string.length-1))||Ie.string.length==1)||Ie.type=="tag"&&de.close||Ie.string.indexOf("/")==Ue.ch-Ie.start-1||ge&&M(ge,ee)>-1||pe(ue,De.mode.xmlCurrentContext&&De.mode.xmlCurrentContext(Fe)||[],me,Ue,!0))return b.Pass;var Ce=typeof ke=="object"&&ke.emptyTags;if(Ce&&M(Ce,me)>-1){Pe[rt]={text:"/>",newPos:b.Pos(Ue.line,Ue.ch+2)};continue}var Ne=Te&&M(Te,ee)>-1;Pe[rt]={indent:Ne,text:">"+(Ne?`
|
|
|
|
|
|
`:"")+"</"+me+">",newPos:Ne?b.Pos(Ue.line+1,0):b.Pos(Ue.line,Ue.ch+1)}}for(var Le=typeof ke=="object"&&ke.dontIndentOnAutoClose,rt=ne.length-1;rt>=0;rt--){var Ke=Pe[rt];ue.replaceRange(Ke.text,ne[rt].head,ne[rt].anchor,"+insert");var nt=ue.listSelections().slice(0);nt[rt]={head:Ke.newPos,anchor:Ke.newPos},ue.setSelections(nt),!Le&&Ke.indent&&(ue.indentLine(Ke.newPos.line,null,!0),ue.indentLine(Ke.newPos.line+1,null,!0))}}function W(ue,ne){for(var Pe=ue.listSelections(),ke=[],rt=ne?"/":"</",Ue=ue.getOption("autoCloseTags"),Ie=typeof Ue=="object"&&Ue.dontIndentOnSlash,De=0;De<Pe.length;De++){if(!Pe[De].empty())return b.Pass;var Fe=Pe[De].head,de=ue.getTokenAt(Fe),me=b.innerMode(ue.getMode(),de.state),we=me.state;if(ne&&(de.type=="string"||de.string.charAt(0)!="<"||de.start!=Fe.ch-1))return b.Pass;var ge,Te=me.mode.name!="xml"&&ue.getMode().name=="htmlmixed";if(Te&&me.mode.name=="javascript")ge=rt+"script";else if(Te&&me.mode.name=="css")ge=rt+"style";else{var ee=me.mode.xmlCurrentContext&&me.mode.xmlCurrentContext(we);if(!ee||ee.length&&pe(ue,ee,ee[ee.length-1],Fe))return b.Pass;ge=rt+ee[ee.length-1]}ue.getLine(Fe.line).charAt(de.end)!=">"&&(ge+=">"),ke[De]=ge}if(ue.replaceSelections(ke),Pe=ue.listSelections(),!Ie)for(var De=0;De<Pe.length;De++)(De==Pe.length-1||Pe[De].head.line<Pe[De+1].head.line)&&ue.indentLine(Pe[De].head.line)}function _(ue){return ue.getOption("disableInput")?b.Pass:W(ue,!0)}b.commands.closeTag=function(ue){return W(ue)};function M(ue,ne){if(ue.indexOf)return ue.indexOf(ne);for(var Pe=0,ke=ue.length;Pe<ke;++Pe)if(ue[Pe]==ne)return Pe;return-1}function pe(ue,ne,Pe,ke,rt){if(!b.scanForClosingTag)return!1;var Ue=Math.min(ue.lastLine()+1,ke.line+500),Ie=b.scanForClosingTag(ue,ke,null,Ue);if(!Ie||Ie.tag!=Pe)return!1;for(var De=rt?1:0,Fe=ne.length-1;Fe>=0&&ne[Fe]==Pe;Fe--)++De;ke=Ie.to;for(var Fe=1;Fe<De;Fe++){var de=b.scanForClosingTag(ue,ke,null,Ue);if(!de||de.tag!=Pe)return!1;ke=de.to}return!0}})},32855:function(Q,C,d){(function(b){b(d(89780))})(function(b){"use strict";var I=b.Pos;function O(Fe,de){return Fe.line-de.line||Fe.ch-de.ch}var z="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",W=z+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",_=new RegExp("<(/?)(["+z+"]["+W+"]*)","g");function M(Fe,de,me,we){this.line=de,this.ch=me,this.cm=Fe,this.text=Fe.getLine(de),this.min=we?Math.max(we.from,Fe.firstLine()):Fe.firstLine(),this.max=we?Math.min(we.to-1,Fe.lastLine()):Fe.lastLine()}function pe(Fe,de){var me=Fe.cm.getTokenTypeAt(I(Fe.line,de));return me&&/\btag\b/.test(me)}function ue(Fe){if(!(Fe.line>=Fe.max))return Fe.ch=0,Fe.text=Fe.cm.getLine(++Fe.line),!0}function ne(Fe){if(!(Fe.line<=Fe.min))return Fe.text=Fe.cm.getLine(--Fe.line),Fe.ch=Fe.text.length,!0}function Pe(Fe){for(;;){var de=Fe.text.indexOf(">",Fe.ch);if(de==-1){if(ue(Fe))continue;return}if(!pe(Fe,de+1)){Fe.ch=de+1;continue}var me=Fe.text.lastIndexOf("/",de),we=me>-1&&!/\S/.test(Fe.text.slice(me+1,de));return Fe.ch=de+1,we?"selfClose":"regular"}}function ke(Fe){for(;;){var de=Fe.ch?Fe.text.lastIndexOf("<",Fe.ch-1):-1;if(de==-1){if(ne(Fe))continue;return}if(!pe(Fe,de+1)){Fe.ch=de;continue}_.lastIndex=de,Fe.ch=de;var me=_.exec(Fe.text);if(me&&me.index==de)return me}}function rt(Fe){for(;;){_.lastIndex=Fe.ch;var de=_.exec(Fe.text);if(!de){if(ue(Fe))continue;return}if(!pe(Fe,de.index+1)){Fe.ch=de.index+1;continue}return Fe.ch=de.index+de[0].length,de}}function Ue(Fe){for(;;){var de=Fe.ch?Fe.text.lastIndexOf(">",Fe.ch-1):-1;if(de==-1){if(ne(Fe))continue;return}if(!pe(Fe,de+1)){Fe.ch=de;continue}var me=Fe.text.lastIndexOf("/",de),we=me>-1&&!/\S/.test(Fe.text.slice(me+1,de));return Fe.ch=de+1,we?"selfClose":"regular"}}function Ie(Fe,de){for(var me=[];;){var we=rt(Fe),ge,Te=Fe.line,ee=Fe.ch-(we?we[0].length:0);if(!we||!(ge=Pe(Fe)))return;if(ge!="selfClose")if(we[1]){for(var Ce=me.length-1;Ce>=0;--Ce)if(me[Ce]==we[2]){me.length=Ce;break}if(Ce<0&&(!de||de==we[2]))return{tag:we[2],from:I(Te,ee),to:I(Fe.line,Fe.ch)}}else me.push(we[2])}}function De(Fe,de){for(var me=[];;){var we=Ue(Fe);if(!we)return;if(we=="selfClose"){ke(Fe);continue}var ge=Fe.line,Te=Fe.ch,ee=ke(Fe);if(!ee)return;if(ee[1])me.push(ee[2]);else{for(var Ce=me.length-1;Ce>=0;--Ce)if(me[Ce]==ee[2]){me.length=Ce;break}if(Ce<0&&(!de||de==ee[2]))return{tag:ee[2],from:I(Fe.line,Fe.ch),to:I(ge,Te)}}}}b.registerHelper("fold","xml",function(Fe,de){for(var me=new M(Fe,de.line,0);;){var we=rt(me);if(!we||me.line!=de.line)return;var ge=Pe(me);if(!ge)return;if(!we[1]&&ge!="selfClose"){var Te=I(me.line,me.ch),ee=Ie(me,we[2]);return ee&&O(ee.from,Te)>0?{from:Te,to:ee.from}:null}}}),b.findMatchingTag=function(Fe,de,me){var we=new M(Fe,de.line,de.ch,me);if(!(we.text.indexOf(">")==-1&&we.text.indexOf("<")==-1)){var ge=Pe(we),Te=ge&&I(we.line,we.ch),ee=ge&&ke(we);if(!(!ge||!ee||O(we,de)>0)){var Ce={from:I(we.line,we.ch),to:Te,tag:ee[2]};return ge=="selfClose"?{open:Ce,close:null,at:"open"}:ee[1]?{open:De(we,ee[2]),close:Ce,at:"close"}:(we=new M(Fe,Te.line,Te.ch,me),{open:Ce,close:Ie(we,ee[2]),at:"open"})}}},b.findEnclosingTag=function(Fe,de,me,we){for(var ge=new M(Fe,de.line,de.ch,me);;){var Te=De(ge,we);if(!Te)break;var ee=new M(Fe,de.line,de.ch,me),Ce=Ie(ee,Te.tag);if(Ce)return{open:Te,close:Ce}}},b.scanForClosingTag=function(Fe,de,me,we){var ge=new M(Fe,de.line,de.ch,we?{from:0,to:we}:null);return Ie(ge,me)}})},89780:function(Q){(function(C,d){Q.exports=d()})(this,function(){"use strict";var C=navigator.userAgent,d=navigator.platform,b=/gecko\/\d/i.test(C),I=/MSIE \d/.test(C),O=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(C),z=/Edge\/(\d+)/.exec(C),W=I||O||z,_=W&&(I?document.documentMode||6:+(z||O)[1]),M=!z&&/WebKit\//.test(C),pe=M&&/Qt\/\d+\.\d+/.test(C),ue=!z&&/Chrome\//.test(C),ne=/Opera\//.test(C),Pe=/Apple Computer/.test(navigator.vendor),ke=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(C),rt=/PhantomJS/.test(C),Ue=!z&&/AppleWebKit/.test(C)&&/Mobile\/\w+/.test(C),Ie=/Android/.test(C),De=Ue||Ie||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(C),Fe=Ue||/Mac/.test(d),de=/\bCrOS\b/.test(C),me=/win/i.test(d),we=ne&&C.match(/Version\/(\d*\.\d*)/);we&&(we=Number(we[1])),we&&we>=15&&(ne=!1,M=!0);var ge=Fe&&(pe||ne&&(we==null||we<12.11)),Te=b||W&&_>=9;function ee(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var Ce=function(a,c){var y=a.className,v=ee(c).exec(y);if(v){var w=y.slice(v.index+v[0].length);a.className=y.slice(0,v.index)+(w?v[1]+w:"")}};function Ne(a){for(var c=a.childNodes.length;c>0;--c)a.removeChild(a.firstChild);return a}function Le(a,c){return Ne(a).appendChild(c)}function Ke(a,c,y,v){var w=document.createElement(a);if(y&&(w.className=y),v&&(w.style.cssText=v),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 nt(a,c,y,v){var w=Ke(a,c,y,v);return w.setAttribute("role","presentation"),w}var ie;document.createRange?ie=function(a,c,y,v){var w=document.createRange();return w.setEnd(v||a,y),w.setStart(a,c),w}:ie=function(a,c,y){var v=document.body.createTextRange();try{v.moveToElementText(a.parentNode)}catch(w){return v}return v.collapse(!0),v.moveEnd("character",y),v.moveStart("character",c),v};function at(a,c){if(c.nodeType==3&&(c=c.parentNode),a.contains)return a.contains(c);do if(c.nodeType==11&&(c=c.host),c==a)return!0;while(c=c.parentNode)}function Ze(){var a;try{a=document.activeElement}catch(c){a=document.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function Bt(a,c){var y=a.className;ee(c).test(y)||(a.className+=(y?" ":"")+c)}function bt(a,c){for(var y=a.split(" "),v=0;v<y.length;v++)y[v]&&!ee(y[v]).test(c)&&(c+=" "+y[v]);return c}var kt=function(a){a.select()};Ue?kt=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:W&&(kt=function(a){try{a.select()}catch(c){}});function Tt(a){var c=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,c)}}function wn(a,c,y){c||(c={});for(var v in a)a.hasOwnProperty(v)&&(y!==!1||!c.hasOwnProperty(v))&&(c[v]=a[v]);return c}function Xe(a,c,y,v,w){c==null&&(c=a.search(/[^\s\u00a0]/),c==-1&&(c=a.length));for(var H=v||0,te=w||0;;){var be=a.indexOf(" ",H);if(be<0||be>=c)return te+(c-H);te+=be-H,te+=y-te%y,H=be+1}}var se=function(){this.id=null,this.f=null,this.time=0,this.handler=Tt(this.onTimeout,this)};se.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},se.prototype.set=function(a,c){this.f=c;var y=+new Date+a;(!this.id||y<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,a),this.time=y)};function le(a,c){for(var y=0;y<a.length;++y)if(a[y]==c)return y;return-1}var _t=50,jt={toString:function(){return"CodeMirror.Pass"}},yt={scroll:!1},ln={origin:"*mouse"},Dt={origin:"+move"};function ui(a,c,y){for(var v=0,w=0;;){var H=a.indexOf(" ",v);H==-1&&(H=a.length);var te=H-v;if(H==a.length||w+te>=c)return v+Math.min(te,c-w);if(w+=H-v,w+=y-w%y,v=H+1,w>=c)return v}}var On=[""];function ri(a){for(;On.length<=a;)On.push(Xn(On)+" ");return On[a]}function Xn(a){return a[a.length-1]}function Tn(a,c){for(var y=[],v=0;v<a.length;v++)y[v]=c(a[v],v);return y}function Nn(a,c,y){for(var v=0,w=y(c);v<a.length&&y(a[v])<=w;)v++;a.splice(v,0,c)}function xe(){}function P(a,c){var y;return Object.create?y=Object.create(a):(xe.prototype=a,y=new xe),c&&wn(c,y),y}var k=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function j(a){return/\w/.test(a)||a>"\x80"&&(a.toUpperCase()!=a.toLowerCase()||k.test(a))}function X(a,c){return c?c.source.indexOf("\\w")>-1&&j(a)?!0:c.test(a):j(a)}function N(a){for(var c in a)if(a.hasOwnProperty(c)&&a[c])return!1;return!0}var Re=/[\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 wt(a){return a.charCodeAt(0)>=768&&Re.test(a)}function ze(a,c,y){for(;(y<0?c>0:c<a.length)&&wt(a.charAt(c));)c+=y;return c}function Oe(a,c,y){for(var v=c>y?-1:1;;){if(c==y)return c;var w=(c+y)/2,H=v<0?Math.ceil(w):Math.floor(w);if(H==c)return a(H)?c:y;a(H)?y=H:c=H+v}}function mt(a,c,y,v){if(!a)return v(c,y,"ltr",0);for(var w=!1,H=0;H<a.length;++H){var te=a[H];(te.from<y&&te.to>c||c==y&&te.to==c)&&(v(Math.max(te.from,c),Math.min(te.to,y),te.level==1?"rtl":"ltr",H),w=!0)}w||v(c,y,"ltr")}var lt=null;function Qe(a,c,y){var v;lt=null;for(var w=0;w<a.length;++w){var H=a[w];if(H.from<c&&H.to>c)return w;H.to==c&&(H.from!=H.to&&y=="before"?v=w:lt=w),H.from==c&&(H.from!=H.to&&y!="before"?v=w:lt=w)}return v!=null?v:lt}var Ct=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",c="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function y(We){return We<=247?a.charAt(We):1424<=We&&We<=1524?"R":1536<=We&&We<=1785?c.charAt(We-1536):1774<=We&&We<=2220?"r":8192<=We&&We<=8203?"w":We==8204?"b":"L"}var v=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,w=/[stwN]/,H=/[LRr]/,te=/[Lb1n]/,be=/[1n]/;function ve(We,zt,it){this.level=We,this.from=zt,this.to=it}return function(We,zt){var it=zt=="ltr"?"L":"R";if(We.length==0||zt=="ltr"&&!v.test(We))return!1;for(var bn=We.length,mn=[],li=0;li<bn;++li)mn.push(y(We.charCodeAt(li)));for(var vi=0,Oi=it;vi<bn;++vi){var ir=mn[vi];ir=="m"?mn[vi]=Oi:Oi=ir}for(var Ir=0,dr=it;Ir<bn;++Ir){var Br=mn[Ir];Br=="1"&&dr=="r"?mn[Ir]="n":H.test(Br)&&(dr=Br,Br=="r"&&(mn[Ir]="R"))}for(var ho=1,ur=mn[0];ho<bn-1;++ho){var Uo=mn[ho];Uo=="+"&&ur=="1"&&mn[ho+1]=="1"?mn[ho]="1":Uo==","&&ur==mn[ho+1]&&(ur=="1"||ur=="n")&&(mn[ho]=ur),ur=Uo}for(var aa=0;aa<bn;++aa){var cl=mn[aa];if(cl==",")mn[aa]="N";else if(cl=="%"){var Ea=void 0;for(Ea=aa+1;Ea<bn&&mn[Ea]=="%";++Ea);for(var gu=aa&&mn[aa-1]=="!"||Ea<bn&&mn[Ea]=="1"?"1":"N",Yl=aa;Yl<Ea;++Yl)mn[Yl]=gu;aa=Ea-1}}for(var nl=0,Iu=it;nl<bn;++nl){var _l=mn[nl];Iu=="L"&&_l=="1"?mn[nl]="L":H.test(_l)&&(Iu=_l)}for(var il=0;il<bn;++il)if(w.test(mn[il])){var Ts=void 0;for(Ts=il+1;Ts<bn&&w.test(mn[Ts]);++Ts);for(var ka=(il?mn[il-1]:it)=="L",bl=(Ts<bn?mn[Ts]:it)=="L",zl=ka==bl?ka?"L":"R":it,fc=il;fc<Ts;++fc)mn[fc]=zl;il=Ts-1}for(var wa=[],nc,Ba=0;Ba<bn;)if(te.test(mn[Ba])){var zd=Ba;for(++Ba;Ba<bn&&te.test(mn[Ba]);++Ba);wa.push(new ve(0,zd,Ba))}else{var Uu=Ba,Mu=wa.length,vu=zt=="rtl"?1:0;for(++Ba;Ba<bn&&mn[Ba]!="L";++Ba);for(var Zs=Uu;Zs<Ba;)if(be.test(mn[Zs])){Uu<Zs&&(wa.splice(Mu,0,new ve(1,Uu,Zs)),Mu+=vu);var xl=Zs;for(++Zs;Zs<Ba&&be.test(mn[Zs]);++Zs);wa.splice(Mu,0,new ve(2,xl,Zs)),Mu+=vu,Uu=Zs}else++Zs;Uu<Ba&&wa.splice(Mu,0,new ve(1,Uu,Ba))}return zt=="ltr"&&(wa[0].level==1&&(nc=We.match(/^\s+/))&&(wa[0].from=nc[0].length,wa.unshift(new ve(0,0,nc[0].length))),Xn(wa).level==1&&(nc=We.match(/\s+$/))&&(Xn(wa).to-=nc[0].length,wa.push(new ve(0,bn-nc[0].length,bn)))),zt=="rtl"?wa.reverse():wa}}();function nn(a,c){var y=a.order;return y==null&&(y=a.order=Ct(a.text,c)),y}var Yt=[],Ot=function(a,c,y){if(a.addEventListener)a.addEventListener(c,y,!1);else if(a.attachEvent)a.attachEvent("on"+c,y);else{var v=a._handlers||(a._handlers={});v[c]=(v[c]||Yt).concat(y)}};function on(a,c){return a._handlers&&a._handlers[c]||Yt}function hn(a,c,y){if(a.removeEventListener)a.removeEventListener(c,y,!1);else if(a.detachEvent)a.detachEvent("on"+c,y);else{var v=a._handlers,w=v&&v[c];if(w){var H=le(w,y);H>-1&&(v[c]=w.slice(0,H).concat(w.slice(H+1)))}}}function Ve(a,c){var y=on(a,c);if(y.length)for(var v=Array.prototype.slice.call(arguments,2),w=0;w<y.length;++w)y[w].apply(null,v)}function Pt(a,c,y){return typeof c=="string"&&(c={type:c,preventDefault:function(){this.defaultPrevented=!0}}),Ve(a,y||c.type,a,c),Gn(c)||c.codemirrorIgnore}function Xt(a){var c=a._handlers&&a._handlers.cursorActivity;if(c)for(var y=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]),v=0;v<c.length;++v)le(y,c[v])==-1&&y.push(c[v])}function qt(a,c){return on(a,c).length>0}function He(a){a.prototype.on=function(c,y){Ot(this,c,y)},a.prototype.off=function(c,y){hn(this,c,y)}}function Rn(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function Cn(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function Gn(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function Ci(a){Rn(a),Cn(a)}function ci(a){return a.target||a.srcElement}function sn(a){var c=a.which;return c==null&&(a.button&1?c=1:a.button&2?c=3:a.button&4&&(c=2)),Fe&&a.ctrlKey&&c==1&&(c=3),c}var rn=function(){if(W&&_<9)return!1;var a=Ke("div");return"draggable"in a||"dragDrop"in a}(),cr;function yr(a){if(cr==null){var c=Ke("span","\u200B");Le(a,Ke("span",[c,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(cr=c.offsetWidth<=1&&c.offsetHeight>2&&!(W&&_<8))}var y=cr?Ke("span","\u200B"):Ke("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return y.setAttribute("cm-text",""),y}var Zn;function Mr(a){if(Zn!=null)return Zn;var c=Le(a,document.createTextNode("A\u062EA")),y=ie(c,0,1).getBoundingClientRect(),v=ie(c,1,2).getBoundingClientRect();return Ne(a),!y||y.left==y.right?!1:Zn=v.right-y.right<3}var rr=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(a){for(var c=0,y=[],v=a.length;c<=v;){var w=a.indexOf(`
|
|
|
`,c);w==-1&&(w=a.length);var H=a.slice(c,a.charAt(w-1)=="\r"?w-1:w),te=H.indexOf("\r");te!=-1?(y.push(H.slice(0,te)),c+=te+1):(y.push(H),c=w+1)}return y}:function(a){return a.split(/\r\n?|\n/)},U=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch(c){return!1}}:function(a){var c;try{c=a.ownerDocument.selection.createRange()}catch(y){}return!c||c.parentElement()!=a?!1:c.compareEndPoints("StartToEnd",c)!=0},mr=function(){var a=Ke("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),lr=null;function _r(a){if(lr!=null)return lr;var c=Le(a,Ke("span","x")),y=c.getBoundingClientRect(),v=ie(c,0,1).getBoundingClientRect();return lr=Math.abs(y.left-v.left)>1}var Hr={},uo={};function Tr(a,c){arguments.length>2&&(c.dependencies=Array.prototype.slice.call(arguments,2)),Hr[a]=c}function Jr(a,c){uo[a]=c}function fr(a){if(typeof a=="string"&&uo.hasOwnProperty(a))a=uo[a];else if(a&&typeof a.name=="string"&&uo.hasOwnProperty(a.name)){var c=uo[a.name];typeof c=="string"&&(c={name:c}),a=P(c,a),a.name=c.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return fr("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return fr("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function Xi(a,c){c=fr(c);var y=Hr[c.name];if(!y)return Xi(a,"text/plain");var v=y(a,c);if(di.hasOwnProperty(c.name)){var w=di[c.name];for(var H in w)w.hasOwnProperty(H)&&(v.hasOwnProperty(H)&&(v["_"+H]=v[H]),v[H]=w[H])}if(v.name=c.name,c.helperType&&(v.helperType=c.helperType),c.modeProps)for(var te in c.modeProps)v[te]=c.modeProps[te];return v}var di={};function ht(a,c){var y=di.hasOwnProperty(a)?di[a]:di[a]={};wn(c,y)}function _n(a,c){if(c===!0)return c;if(a.copyState)return a.copyState(c);var y={};for(var v in c){var w=c[v];w instanceof Array&&(w=w.concat([])),y[v]=w}return y}function Hn(a,c){for(var y;a.innerMode&&(y=a.innerMode(c),!(!y||y.mode==a));)c=y.state,a=y.mode;return y||{mode:a,state:c}}function gt(a,c,y){return a.startState?a.startState(c,y):!0}var Ge=function(a,c,y){this.pos=this.start=0,this.string=a,this.tabSize=c||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=y};Ge.prototype.eol=function(){return this.pos>=this.string.length},Ge.prototype.sol=function(){return this.pos==this.lineStart},Ge.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ge.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ge.prototype.eat=function(a){var c=this.string.charAt(this.pos),y;if(typeof a=="string"?y=c==a:y=c&&(a.test?a.test(c):a(c)),y)return++this.pos,c},Ge.prototype.eatWhile=function(a){for(var c=this.pos;this.eat(a););return this.pos>c},Ge.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},Ge.prototype.skipToEnd=function(){this.pos=this.string.length},Ge.prototype.skipTo=function(a){var c=this.string.indexOf(a,this.pos);if(c>-1)return this.pos=c,!0},Ge.prototype.backUp=function(a){this.pos-=a},Ge.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Xe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Xe(this.string,this.lineStart,this.tabSize):0)},Ge.prototype.indentation=function(){return Xe(this.string,null,this.tabSize)-(this.lineStart?Xe(this.string,this.lineStart,this.tabSize):0)},Ge.prototype.match=function(a,c,y){if(typeof a=="string"){var v=function(te){return y?te.toLowerCase():te},w=this.string.substr(this.pos,a.length);if(v(w)==v(a))return c!==!1&&(this.pos+=a.length),!0}else{var H=this.string.slice(this.pos).match(a);return H&&H.index>0?null:(H&&c!==!1&&(this.pos+=H[0].length),H)}},Ge.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ge.prototype.hideFirstChars=function(a,c){this.lineStart+=a;try{return c()}finally{this.lineStart-=a}},Ge.prototype.lookAhead=function(a){var c=this.lineOracle;return c&&c.lookAhead(a)},Ge.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function fn(a,c){if(c-=a.first,c<0||c>=a.size)throw new Error("There is no line "+(c+a.first)+" in the document.");for(var y=a;!y.lines;)for(var v=0;;++v){var w=y.children[v],H=w.chunkSize();if(c<H){y=w;break}c-=H}return y.lines[c]}function Sn(a,c,y){var v=[],w=c.line;return a.iter(c.line,y.line+1,function(H){var te=H.text;w==y.line&&(te=te.slice(0,y.ch)),w==c.line&&(te=te.slice(c.ch)),v.push(te),++w}),v}function ti(a,c,y){var v=[];return a.iter(c,y,function(w){v.push(w.text)}),v}function Kn(a,c){var y=c-a.height;if(y)for(var v=a;v;v=v.parent)v.height+=y}function pt(a){if(a.parent==null)return null;for(var c=a.parent,y=le(c.lines,a),v=c.parent;v;c=v,v=v.parent)for(var w=0;v.children[w]!=c;++w)y+=v.children[w].chunkSize();return y+c.first}function gn(a,c){var y=a.first;e:do{for(var v=0;v<a.children.length;++v){var w=a.children[v],H=w.height;if(c<H){a=w;continue e}c-=H,y+=w.chunkSize()}return y}while(!a.lines);for(var te=0;te<a.lines.length;++te){var be=a.lines[te],ve=be.height;if(c<ve)break;c-=ve}return y+te}function tn(a,c){return c>=a.first&&c<a.first+a.size}function xi(a,c){return String(a.lineNumberFormatter(c+a.firstLineNumber))}function ft(a,c,y){if(y===void 0&&(y=null),!(this instanceof ft))return new ft(a,c,y);this.line=a,this.ch=c,this.sticky=y}function Fn(a,c){return a.line-c.line||a.ch-c.ch}function Mt(a,c){return a.sticky==c.sticky&&Fn(a,c)==0}function qe(a){return ft(a.line,a.ch)}function D(a,c){return Fn(a,c)<0?c:a}function Gt(a,c){return Fn(a,c)<0?a:c}function dn(a,c){return Math.max(a.first,Math.min(c,a.first+a.size-1))}function xt(a,c){if(c.line<a.first)return ft(a.first,0);var y=a.first+a.size-1;return c.line>y?ft(y,fn(a,y).text.length):En(c,fn(a,c.line).text.length)}function En(a,c){var y=a.ch;return y==null||y>c?ft(a.line,c):y<0?ft(a.line,0):a}function Mn(a,c){for(var y=[],v=0;v<c.length;v++)y[v]=xt(a,c[v]);return y}var ki=function(a,c){this.state=a,this.lookAhead=c},Un=function(a,c,y,v){this.state=c,this.doc=a,this.line=y,this.maxLookAhead=v||0,this.baseTokens=null,this.baseTokenPos=1};Un.prototype.lookAhead=function(a){var c=this.doc.getLine(this.line+a);return c!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),c},Un.prototype.baseToken=function(a){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=a;)this.baseTokenPos+=2;var c=this.baseTokens[this.baseTokenPos+1];return{type:c&&c.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-a}},Un.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Un.fromSaved=function(a,c,y){return c instanceof ki?new Un(a,_n(a.mode,c.state),y,c.lookAhead):new Un(a,_n(a.mode,c),y)},Un.prototype.save=function(a){var c=a!==!1?_n(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ki(c,this.maxLookAhead):c};function ot(a,c,y,v){var w=[a.state.modeGen],H={};Et(a,c.text,a.doc.mode,y,function(We,zt){return w.push(We,zt)},H,v);for(var te=y.state,be=function(We){y.baseTokens=w;var zt=a.state.overlays[We],it=1,bn=0;y.state=!0,Et(a,c.text,zt.mode,y,function(mn,li){for(var vi=it;bn<mn;){var Oi=w[it];Oi>mn&&w.splice(it,1,mn,w[it+1],Oi),it+=2,bn=Math.min(mn,Oi)}if(li)if(zt.opaque)w.splice(vi,it-vi,mn,"overlay "+li),it=vi+2;else for(;vi<it;vi+=2){var ir=w[vi+1];w[vi+1]=(ir?ir+" ":"")+"overlay "+li}},H),y.state=te,y.baseTokens=null,y.baseTokenPos=1},ve=0;ve<a.state.overlays.length;++ve)be(ve);return{styles:w,classes:H.bgClass||H.textClass?H:null}}function Bi(a,c,y){if(!c.styles||c.styles[0]!=a.state.modeGen){var v=hr(a,pt(c)),w=c.text.length>a.options.maxHighlightLength&&_n(a.doc.mode,v.state),H=ot(a,c,v);w&&(v.state=w),c.stateAfter=v.save(!w),c.styles=H.styles,H.classes?c.styleClasses=H.classes:c.styleClasses&&(c.styleClasses=null),y===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return c.styles}function hr(a,c,y){var v=a.doc,w=a.display;if(!v.mode.startState)return new Un(v,!0,c);var H=Ni(a,c,y),te=H>v.first&&fn(v,H-1).stateAfter,be=te?Un.fromSaved(v,te,H):new Un(v,gt(v.mode),H);return v.iter(H,c,function(ve){Kt(a,ve.text,be);var We=be.line;ve.stateAfter=We==c-1||We%5==0||We>=w.viewFrom&&We<w.viewTo?be.save():null,be.nextLine()}),y&&(v.modeFrontier=be.line),be}function Kt(a,c,y,v){var w=a.doc.mode,H=new Ge(c,a.options.tabSize,y);for(H.start=H.pos=v||0,c==""&&Qi(w,y.state);!H.eol();)J(w,H,y.state),H.start=H.pos}function Qi(a,c){if(a.blankLine)return a.blankLine(c);if(a.innerMode){var y=Hn(a,c);if(y.mode.blankLine)return y.mode.blankLine(y.state)}}function J(a,c,y,v){for(var w=0;w<10;w++){v&&(v[0]=Hn(a,y).mode);var H=a.token(c,y);if(c.pos>c.start)return H}throw new Error("Mode "+a.name+" failed to advance stream.")}var ae=function(a,c,y){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=c||null,this.state=y};function Yn(a,c,y,v){var w=a.doc,H=w.mode,te;c=xt(w,c);var be=fn(w,c.line),ve=hr(a,c.line,y),We=new Ge(be.text,a.options.tabSize,ve),zt;for(v&&(zt=[]);(v||We.pos<c.ch)&&!We.eol();)We.start=We.pos,te=J(H,We,ve.state),v&&zt.push(new ae(We,te,_n(w.mode,ve.state)));return v?zt:new ae(We,te,ve.state)}function _e(a,c){if(a)for(;;){var y=a.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!y)break;a=a.slice(0,y.index)+a.slice(y.index+y[0].length);var v=y[1]?"bgClass":"textClass";c[v]==null?c[v]=y[2]:new RegExp("(?:^|\\s)"+y[2]+"(?:$|\\s)").test(c[v])||(c[v]+=" "+y[2])}return a}function Et(a,c,y,v,w,H,te){var be=y.flattenSpans;be==null&&(be=a.options.flattenSpans);var ve=0,We=null,zt=new Ge(c,a.options.tabSize,v),it,bn=a.options.addModeClass&&[null];for(c==""&&_e(Qi(y,v.state),H);!zt.eol();){if(zt.pos>a.options.maxHighlightLength?(be=!1,te&&Kt(a,c,v,zt.pos),zt.pos=c.length,it=null):it=_e(J(y,zt,v.state,bn),H),bn){var mn=bn[0].name;mn&&(it="m-"+(it?mn+" "+it:mn))}if(!be||We!=it){for(;ve<zt.start;)ve=Math.min(zt.start,ve+5e3),w(ve,We);We=it}zt.start=zt.pos}for(;ve<zt.pos;){var li=Math.min(zt.pos,ve+5e3);w(li,We),ve=li}}function Ni(a,c,y){for(var v,w,H=a.doc,te=y?-1:c-(a.doc.mode.innerMode?1e3:100),be=c;be>te;--be){if(be<=H.first)return H.first;var ve=fn(H,be-1),We=ve.stateAfter;if(We&&(!y||be+(We instanceof ki?We.lookAhead:0)<=H.modeFrontier))return be;var zt=Xe(ve.text,null,a.options.tabSize);(w==null||v>zt)&&(w=be-1,v=zt)}return w}function Pn(a,c){if(a.modeFrontier=Math.min(a.modeFrontier,c),!(a.highlightFrontier<c-10)){for(var y=a.first,v=c-1;v>y;v--){var w=fn(a,v).stateAfter;if(w&&(!(w instanceof ki)||v+w.lookAhead<c)){y=v+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,y)}}var Ki=!1,Zt=!1;function Ii(){Ki=!0}function Wt(){Zt=!0}function Yi(a,c,y){this.marker=a,this.from=c,this.to=y}function io(a,c){if(a)for(var y=0;y<a.length;++y){var v=a[y];if(v.marker==c)return v}}function It(a,c){for(var y,v=0;v<a.length;++v)a[v]!=c&&(y||(y=[])).push(a[v]);return y}function Mo(a,c){a.markedSpans=a.markedSpans?a.markedSpans.concat([c]):[c],c.marker.attachLine(a)}function Jt(a,c,y){var v;if(a)for(var w=0;w<a.length;++w){var H=a[w],te=H.marker,be=H.from==null||(te.inclusiveLeft?H.from<=c:H.from<c);if(be||H.from==c&&te.type=="bookmark"&&(!y||!H.marker.insertLeft)){var ve=H.to==null||(te.inclusiveRight?H.to>=c:H.to>c);(v||(v=[])).push(new Yi(te,H.from,ve?null:H.to))}}return v}function _i(a,c,y){var v;if(a)for(var w=0;w<a.length;++w){var H=a[w],te=H.marker,be=H.to==null||(te.inclusiveRight?H.to>=c:H.to>c);if(be||H.from==c&&te.type=="bookmark"&&(!y||H.marker.insertLeft)){var ve=H.from==null||(te.inclusiveLeft?H.from<=c:H.from<c);(v||(v=[])).push(new Yi(te,ve?null:H.from-c,H.to==null?null:H.to-c))}}return v}function Li(a,c){if(c.full)return null;var y=tn(a,c.from.line)&&fn(a,c.from.line).markedSpans,v=tn(a,c.to.line)&&fn(a,c.to.line).markedSpans;if(!y&&!v)return null;var w=c.from.ch,H=c.to.ch,te=Fn(c.from,c.to)==0,be=Jt(y,w,te),ve=_i(v,H,te),We=c.text.length==1,zt=Xn(c.text).length+(We?w:0);if(be)for(var it=0;it<be.length;++it){var bn=be[it];if(bn.to==null){var mn=io(ve,bn.marker);mn?We&&(bn.to=mn.to==null?null:mn.to+zt):bn.to=w}}if(ve)for(var li=0;li<ve.length;++li){var vi=ve[li];if(vi.to!=null&&(vi.to+=zt),vi.from==null){var Oi=io(be,vi.marker);Oi||(vi.from=zt,We&&(be||(be=[])).push(vi))}else vi.from+=zt,We&&(be||(be=[])).push(vi)}be&&(be=Sr(be)),ve&&ve!=be&&(ve=Sr(ve));var ir=[be];if(!We){var Ir=c.text.length-2,dr;if(Ir>0&&be)for(var Br=0;Br<be.length;++Br)be[Br].to==null&&(dr||(dr=[])).push(new Yi(be[Br].marker,null,null));for(var ho=0;ho<Ir;++ho)ir.push(dr);ir.push(ve)}return ir}function Sr(a){for(var c=0;c<a.length;++c){var y=a[c];y.from!=null&&y.from==y.to&&y.marker.clearWhenEmpty!==!1&&a.splice(c--,1)}return a.length?a:null}function Or(a,c,y){var v=null;if(a.iter(c.line,y.line+1,function(mn){if(mn.markedSpans)for(var li=0;li<mn.markedSpans.length;++li){var vi=mn.markedSpans[li].marker;vi.readOnly&&(!v||le(v,vi)==-1)&&(v||(v=[])).push(vi)}}),!v)return null;for(var w=[{from:c,to:y}],H=0;H<v.length;++H)for(var te=v[H],be=te.find(0),ve=0;ve<w.length;++ve){var We=w[ve];if(!(Fn(We.to,be.from)<0||Fn(We.from,be.to)>0)){var zt=[ve,1],it=Fn(We.from,be.from),bn=Fn(We.to,be.to);(it<0||!te.inclusiveLeft&&!it)&&zt.push({from:We.from,to:be.from}),(bn>0||!te.inclusiveRight&&!bn)&&zt.push({from:be.to,to:We.to}),w.splice.apply(w,zt),ve+=zt.length-3}}return w}function qn(a){var c=a.markedSpans;if(c){for(var y=0;y<c.length;++y)c[y].marker.detachLine(a);a.markedSpans=null}}function ce(a,c){if(c){for(var y=0;y<c.length;++y)c[y].marker.attachLine(a);a.markedSpans=c}}function Ar(a){return a.inclusiveLeft?-1:0}function eo(a){return a.inclusiveRight?1:0}function br(a,c){var y=a.lines.length-c.lines.length;if(y!=0)return y;var v=a.find(),w=c.find(),H=Fn(v.from,w.from)||Ar(a)-Ar(c);if(H)return-H;var te=Fn(v.to,w.to)||eo(a)-eo(c);return te||c.id-a.id}function fo(a,c){var y=Zt&&a.markedSpans,v;if(y)for(var w=void 0,H=0;H<y.length;++H)w=y[H],w.marker.collapsed&&(c?w.from:w.to)==null&&(!v||br(v,w.marker)<0)&&(v=w.marker);return v}function qi(a){return fo(a,!0)}function Xr(a){return fo(a,!1)}function Ri(a,c){var y=Zt&&a.markedSpans,v;if(y)for(var w=0;w<y.length;++w){var H=y[w];H.marker.collapsed&&(H.from==null||H.from<c)&&(H.to==null||H.to>c)&&(!v||br(v,H.marker)<0)&&(v=H.marker)}return v}function Vi(a,c,y,v,w){var H=fn(a,c),te=Zt&&H.markedSpans;if(te)for(var be=0;be<te.length;++be){var ve=te[be];if(ve.marker.collapsed){var We=ve.marker.find(0),zt=Fn(We.from,y)||Ar(ve.marker)-Ar(w),it=Fn(We.to,v)||eo(ve.marker)-eo(w);if(!(zt>=0&&it<=0||zt<=0&&it>=0)&&(zt<=0&&(ve.marker.inclusiveRight&&w.inclusiveLeft?Fn(We.to,y)>=0:Fn(We.to,y)>0)||zt>=0&&(ve.marker.inclusiveRight&&w.inclusiveLeft?Fn(We.from,v)<=0:Fn(We.from,v)<0)))return!0}}}function Hi(a){for(var c;c=qi(a);)a=c.find(-1,!0).line;return a}function $r(a){for(var c;c=Xr(a);)a=c.find(1,!0).line;return a}function Vr(a){for(var c,y;c=Xr(a);)a=c.find(1,!0).line,(y||(y=[])).push(a);return y}function wo(a,c){var y=fn(a,c),v=Hi(y);return y==v?c:pt(v)}function Ko(a,c){if(c>a.lastLine())return c;var y=fn(a,c),v;if(!mi(a,y))return c;for(;v=Xr(y);)y=v.find(1,!0).line;return pt(y)+1}function mi(a,c){var y=Zt&&c.markedSpans;if(y){for(var v=void 0,w=0;w<y.length;++w)if(v=y[w],!!v.marker.collapsed){if(v.from==null)return!0;if(!v.marker.widgetNode&&v.from==0&&v.marker.inclusiveLeft&&Rs(a,c,v))return!0}}}function Rs(a,c,y){if(y.to==null){var v=y.marker.find(1,!0);return Rs(a,v.line,io(v.line.markedSpans,y.marker))}if(y.marker.inclusiveRight&&y.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==y.to&&(w.to==null||w.to!=y.from)&&(w.marker.inclusiveLeft||y.marker.inclusiveRight)&&Rs(a,c,w))return!0}function fs(a){a=Hi(a);for(var c=0,y=a.parent,v=0;v<y.lines.length;++v){var w=y.lines[v];if(w==a)break;c+=w.height}for(var H=y.parent;H;y=H,H=y.parent)for(var te=0;te<H.children.length;++te){var be=H.children[te];if(be==y)break;c+=be.height}return c}function cs(a){if(a.height==0)return 0;for(var c=a.text.length,y,v=a;y=qi(v);){var w=y.find(0,!0);v=w.from.line,c+=w.from.ch-w.to.ch}for(v=a;y=Xr(v);){var H=y.find(0,!0);c-=v.text.length-H.from.ch,v=H.to.line,c+=v.text.length-H.to.ch}return c}function Bs(a){var c=a.display,y=a.doc;c.maxLine=fn(y,y.first),c.maxLineLength=cs(c.maxLine),c.maxLineChanged=!0,y.iter(function(v){var w=cs(v);w>c.maxLineLength&&(c.maxLineLength=w,c.maxLine=v)})}var ca=function(a,c,y){this.text=a,ce(this,c),this.height=y?y(this):1};ca.prototype.lineNo=function(){return pt(this)},He(ca);function Ya(a,c,y,v){a.text=c,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),qn(a),ce(a,y);var w=v?v(a):1;w!=a.height&&Kn(a,w)}function ra(a){a.parent=null,qn(a)}var Ha={},ya={};function ns(a,c){if(!a||/^\s*$/.test(a))return null;var y=c.addModeClass?ya:Ha;return y[a]||(y[a]=a.replace(/\S+/g,"cm-$&"))}function Ht(a,c){var y=nt("span",null,null,M?"padding-right: .1px":null),v={pre:nt("pre",[y],"CodeMirror-line"),content:y,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.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,te=void 0;v.pos=0,v.addToken=Eu,Mr(a.display.measure)&&(te=nn(H,a.doc.direction))&&(v.addToken=po(v.addToken,te)),v.map=[];var be=c!=a.display.externalMeasured&&pt(H);Ss(H,v,Bi(a,H,be)),H.styleClasses&&(H.styleClasses.bgClass&&(v.bgClass=bt(H.styleClasses.bgClass,v.bgClass||"")),H.styleClasses.textClass&&(v.textClass=bt(H.styleClasses.textClass,v.textClass||""))),v.map.length==0&&v.map.push(0,0,v.content.appendChild(yr(a.display.measure))),w==0?(c.measure.map=v.map,c.measure.cache={}):((c.measure.maps||(c.measure.maps=[])).push(v.map),(c.measure.caches||(c.measure.caches=[])).push({}))}if(M){var ve=v.content.lastChild;(/\bcm-tab\b/.test(ve.className)||ve.querySelector&&ve.querySelector(".cm-tab"))&&(v.content.className="cm-tab-wrap-hack")}return Ve(a,"renderLine",a,c.line,v.pre),v.pre.className&&(v.textClass=bt(v.pre.className,v.textClass||"")),v}function Ws(a){var c=Ke("span","\u2022","cm-invalidchar");return c.title="\\u"+a.charCodeAt(0).toString(16),c.setAttribute("aria-label",c.title),c}function Eu(a,c,y,v,w,H,te){if(c){var be=a.splitSpaces?Ml(c,a.trailingSpace):c,ve=a.cm.state.specialChars,We=!1,zt;if(!ve.test(c))a.col+=c.length,zt=document.createTextNode(be),a.map.push(a.pos,a.pos+c.length,zt),W&&_<9&&(We=!0),a.pos+=c.length;else{zt=document.createDocumentFragment();for(var it=0;;){ve.lastIndex=it;var bn=ve.exec(c),mn=bn?bn.index-it:c.length-it;if(mn){var li=document.createTextNode(be.slice(it,it+mn));W&&_<9?zt.appendChild(Ke("span",[li])):zt.appendChild(li),a.map.push(a.pos,a.pos+mn,li),a.col+=mn,a.pos+=mn}if(!bn)break;it+=mn+1;var vi=void 0;if(bn[0]==" "){var Oi=a.cm.options.tabSize,ir=Oi-a.col%Oi;vi=zt.appendChild(Ke("span",ri(ir),"cm-tab")),vi.setAttribute("role","presentation"),vi.setAttribute("cm-text"," "),a.col+=ir}else bn[0]=="\r"||bn[0]==`
|
|
|
`?(vi=zt.appendChild(Ke("span",bn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),vi.setAttribute("cm-text",bn[0]),a.col+=1):(vi=a.cm.options.specialCharPlaceholder(bn[0]),vi.setAttribute("cm-text",bn[0]),W&&_<9?zt.appendChild(Ke("span",[vi])):zt.appendChild(vi),a.col+=1);a.map.push(a.pos,a.pos+1,vi),a.pos++}}if(a.trailingSpace=be.charCodeAt(c.length-1)==32,y||v||w||We||H||te){var Ir=y||"";v&&(Ir+=v),w&&(Ir+=w);var dr=Ke("span",[zt],Ir,H);if(te)for(var Br in te)te.hasOwnProperty(Br)&&Br!="style"&&Br!="class"&&dr.setAttribute(Br,te[Br]);return a.content.appendChild(dr)}a.content.appendChild(zt)}}function Ml(a,c){if(a.length>1&&!/ /.test(a))return a;for(var y=c,v="",w=0;w<a.length;w++){var H=a.charAt(w);H==" "&&y&&(w==a.length-1||a.charCodeAt(w+1)==32)&&(H="\xA0"),v+=H,y=H==" "}return v}function po(a,c){return function(y,v,w,H,te,be,ve){w=w?w+" cm-force-border":"cm-force-border";for(var We=y.pos,zt=We+v.length;;){for(var it=void 0,bn=0;bn<c.length&&(it=c[bn],!(it.to>We&&it.from<=We));bn++);if(it.to>=zt)return a(y,v,w,H,te,be,ve);a(y,v.slice(0,it.to-We),w,H,null,be,ve),H=null,v=v.slice(it.to-We),We=it.to}}}function _o(a,c,y,v){var w=!v&&y.widgetNode;w&&a.map.push(a.pos,a.pos+c,w),!v&&a.cm.display.input.needsContentAttribute&&(w||(w=a.content.appendChild(document.createElement("span"))),w.setAttribute("cm-marker",y.id)),w&&(a.cm.display.input.setUneditable(w),a.content.appendChild(w)),a.pos+=c,a.trailingSpace=!1}function Ss(a,c,y){var v=a.markedSpans,w=a.text,H=0;if(!v){for(var te=1;te<y.length;te+=2)c.addToken(c,w.slice(H,H=y[te]),ns(y[te+1],c.cm.options));return}for(var be=w.length,ve=0,We=1,zt="",it,bn,mn=0,li,vi,Oi,ir,Ir;;){if(mn==ve){li=vi=Oi=bn="",Ir=null,ir=null,mn=1/0;for(var dr=[],Br=void 0,ho=0;ho<v.length;++ho){var ur=v[ho],Uo=ur.marker;if(Uo.type=="bookmark"&&ur.from==ve&&Uo.widgetNode)dr.push(Uo);else if(ur.from<=ve&&(ur.to==null||ur.to>ve||Uo.collapsed&&ur.to==ve&&ur.from==ve)){if(ur.to!=null&&ur.to!=ve&&mn>ur.to&&(mn=ur.to,vi=""),Uo.className&&(li+=" "+Uo.className),Uo.css&&(bn=(bn?bn+";":"")+Uo.css),Uo.startStyle&&ur.from==ve&&(Oi+=" "+Uo.startStyle),Uo.endStyle&&ur.to==mn&&(Br||(Br=[])).push(Uo.endStyle,ur.to),Uo.title&&((Ir||(Ir={})).title=Uo.title),Uo.attributes)for(var aa in Uo.attributes)(Ir||(Ir={}))[aa]=Uo.attributes[aa];Uo.collapsed&&(!ir||br(ir.marker,Uo)<0)&&(ir=ur)}else ur.from>ve&&mn>ur.from&&(mn=ur.from)}if(Br)for(var cl=0;cl<Br.length;cl+=2)Br[cl+1]==mn&&(vi+=" "+Br[cl]);if(!ir||ir.from==ve)for(var Ea=0;Ea<dr.length;++Ea)_o(c,0,dr[Ea]);if(ir&&(ir.from||0)==ve){if(_o(c,(ir.to==null?be+1:ir.to)-ve,ir.marker,ir.from==null),ir.to==null)return;ir.to==ve&&(ir=!1)}}if(ve>=be)break;for(var gu=Math.min(be,mn);;){if(zt){var Yl=ve+zt.length;if(!ir){var nl=Yl>gu?zt.slice(0,gu-ve):zt;c.addToken(c,nl,it?it+li:li,Oi,ve+nl.length==mn?vi:"",bn,Ir)}if(Yl>=gu){zt=zt.slice(gu-ve),ve=gu;break}ve=Yl,Oi=""}zt=w.slice(H,H=y[We++]),it=ns(y[We++],c.cm.options)}}}function Ut(a,c,y){this.line=c,this.rest=Vr(c),this.size=this.rest?pt(Xn(this.rest))-y+1:1,this.node=this.text=null,this.hidden=mi(a,c)}function zr(a,c,y){for(var v=[],w,H=c;H<y;H=w){var te=new Ut(a.doc,fn(a.doc,H),H);w=H+te.size,v.push(te)}return v}var Co=null;function ba(a){Co?Co.ops.push(a):a.ownsGroup=Co={ops:[a],delayedCallbacks:[]}}function Er(a){var c=a.delayedCallbacks,y=0;do{for(;y<c.length;y++)c[y].call(null);for(var v=0;v<a.ops.length;v++){var w=a.ops[v];if(w.cursorActivityHandlers)for(;w.cursorActivityCalled<w.cursorActivityHandlers.length;)w.cursorActivityHandlers[w.cursorActivityCalled++].call(null,w.cm)}}while(y<c.length)}function yn(a,c){var y=a.ownsGroup;if(y)try{Er(y)}finally{Co=null,c(y)}}var pr=null;function pi(a,c){var y=on(a,c);if(y.length){var v=Array.prototype.slice.call(arguments,2),w;Co?w=Co.delayedCallbacks:pr?w=pr:(w=pr=[],setTimeout(Yo,0));for(var H=function(be){w.push(function(){return y[be].apply(null,v)})},te=0;te<y.length;++te)H(te)}}function Yo(){var a=pr;pr=null;for(var c=0;c<a.length;++c)a[c]()}function Ns(a,c,y,v){for(var w=0;w<c.changes.length;w++){var H=c.changes[w];H=="text"?oi(a,c):H=="gutter"?Qo(a,c,y,v):H=="class"?Di(a,c):H=="widget"&&Ta(a,c,v)}c.changes=null}function ha(a){return a.node==a.text&&(a.node=Ke("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),W&&_<8&&(a.node.style.zIndex=2)),a.node}function Oa(a,c){var y=c.bgClass?c.bgClass+" "+(c.line.bgClass||""):c.line.bgClass;if(y&&(y+=" CodeMirror-linebackground"),c.background)y?c.background.className=y:(c.background.parentNode.removeChild(c.background),c.background=null);else if(y){var v=ha(c);c.background=v.insertBefore(Ke("div",null,y),v.firstChild),a.display.input.setUneditable(c.background)}}function Ca(a,c){var y=a.display.externalMeasured;return y&&y.line==c.line?(a.display.externalMeasured=null,c.measure=y.measure,y.built):Ht(a,c)}function oi(a,c){var y=c.text.className,v=Ca(a,c);c.text==c.node&&(c.node=v.pre),c.text.parentNode.replaceChild(v.pre,c.text),c.text=v.pre,v.bgClass!=c.bgClass||v.textClass!=c.textClass?(c.bgClass=v.bgClass,c.textClass=v.textClass,Di(a,c)):y&&(c.text.className=y)}function Di(a,c){Oa(a,c),c.line.wrapClass?ha(c).className=c.line.wrapClass:c.node!=c.text&&(c.node.className="");var y=c.textClass?c.textClass+" "+(c.line.textClass||""):c.line.textClass;c.text.className=y||""}function Qo(a,c,y,v){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=ha(c);c.gutterBackground=Ke("div",null,"CodeMirror-gutter-background "+c.line.gutterClass,"left: "+(a.options.fixedGutter?v.fixedPos:-v.gutterTotalWidth)+"px; width: "+v.gutterTotalWidth+"px"),a.display.input.setUneditable(c.gutterBackground),w.insertBefore(c.gutterBackground,c.text)}var H=c.line.gutterMarkers;if(a.options.lineNumbers||H){var te=ha(c),be=c.gutter=Ke("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?v.fixedPos:-v.gutterTotalWidth)+"px");if(a.display.input.setUneditable(be),te.insertBefore(be,c.text),c.line.gutterClass&&(be.className+=" "+c.line.gutterClass),a.options.lineNumbers&&(!H||!H["CodeMirror-linenumbers"])&&(c.lineNumber=be.appendChild(Ke("div",xi(a.options,y),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+v.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),H)for(var ve=0;ve<a.display.gutterSpecs.length;++ve){var We=a.display.gutterSpecs[ve].className,zt=H.hasOwnProperty(We)&&H[We];zt&&be.appendChild(Ke("div",[zt],"CodeMirror-gutter-elt","left: "+v.gutterLeft[We]+"px; width: "+v.gutterWidth[We]+"px"))}}}function Ta(a,c,y){c.alignable&&(c.alignable=null);for(var v=ee("CodeMirror-linewidget"),w=c.node.firstChild,H=void 0;w;w=H)H=w.nextSibling,v.test(w.className)&&c.node.removeChild(w);Js(a,c,y)}function Go(a,c,y,v){var w=Ca(a,c);return c.text=c.node=w.pre,w.bgClass&&(c.bgClass=w.bgClass),w.textClass&&(c.textClass=w.textClass),Di(a,c),Qo(a,c,y,v),Js(a,c,v),c.node}function Js(a,c,y){if(kr(a,c.line,c,y,!0),c.rest)for(var v=0;v<c.rest.length;v++)kr(a,c.rest[v],c,y,!1)}function kr(a,c,y,v,w){if(c.widgets)for(var H=ha(y),te=0,be=c.widgets;te<be.length;++te){var ve=be[te],We=Ke("div",[ve.node],"CodeMirror-linewidget"+(ve.className?" "+ve.className:""));ve.handleMouseEvents||We.setAttribute("cm-ignore-events","true"),ol(ve,We,y,v),a.display.input.setUneditable(We),w&&ve.above?H.insertBefore(We,y.gutter||y.text):H.appendChild(We),pi(ve,"redraw")}}function ol(a,c,y,v){if(a.noHScroll){(y.alignable||(y.alignable=[])).push(c);var w=v.wrapperWidth;c.style.left=v.fixedPos+"px",a.coverGutter||(w-=v.gutterTotalWidth,c.style.paddingLeft=v.gutterTotalWidth+"px"),c.style.width=w+"px"}a.coverGutter&&(c.style.zIndex=5,c.style.position="relative",a.noHScroll||(c.style.marginLeft=-v.gutterTotalWidth+"px"))}function La(a){if(a.height!=null)return a.height;var c=a.doc.cm;if(!c)return 0;if(!at(document.body,a.node)){var y="position: relative;";a.coverGutter&&(y+="margin-left: -"+c.display.gutters.offsetWidth+"px;"),a.noHScroll&&(y+="width: "+c.display.wrapper.clientWidth+"px;"),Le(c.display.measure,Ke("div",[a.node],null,y))}return a.height=a.node.parentNode.offsetHeight}function Ra(a,c){for(var y=ci(c);y!=a.wrapper;y=y.parentNode)if(!y||y.nodeType==1&&y.getAttribute("cm-ignore-events")=="true"||y.parentNode==a.sizer&&y!=a.mover)return!0}function zo(a){return a.lineSpace.offsetTop}function qs(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function Ol(a){if(a.cachedPaddingH)return a.cachedPaddingH;var c=Le(a.measure,Ke("pre","x","CodeMirror-line-like")),y=window.getComputedStyle?window.getComputedStyle(c):c.currentStyle,v={left:parseInt(y.paddingLeft),right:parseInt(y.paddingRight)};return!isNaN(v.left)&&!isNaN(v.right)&&(a.cachedPaddingH=v),v}function Vs(a){return _t-a.display.nativeBarWidth}function As(a){return a.display.scroller.clientWidth-Vs(a)-a.display.barWidth}function pl(a){return a.display.scroller.clientHeight-Vs(a)-a.display.barHeight}function Wo(a,c,y){var v=a.options.lineWrapping,w=v&&As(a);if(!c.measure.heights||v&&c.measure.width!=w){var H=c.measure.heights=[];if(v){c.measure.width=w;for(var te=c.text.firstChild.getClientRects(),be=0;be<te.length-1;be++){var ve=te[be],We=te[be+1];Math.abs(ve.bottom-We.bottom)>2&&H.push((ve.bottom+We.top)/2-y.top)}}H.push(y.bottom-y.top)}}function $a(a,c,y){if(a.line==c)return{map:a.measure.map,cache:a.measure.cache};for(var v=0;v<a.rest.length;v++)if(a.rest[v]==c)return{map:a.measure.maps[v],cache:a.measure.caches[v]};for(var w=0;w<a.rest.length;w++)if(pt(a.rest[w])>y)return{map:a.measure.maps[w],cache:a.measure.caches[w],before:!0}}function wu(a,c){c=Hi(c);var y=pt(c),v=a.display.externalMeasured=new Ut(a.doc,c,y);v.lineN=y;var w=v.built=Ht(a,v);return v.text=w.pre,Le(a.display.lineMeasure,w.pre),v}function Ll(a,c,y,v){return ja(a,Ls(a,c),y,v)}function ea(a,c){if(c>=a.display.viewFrom&&c<a.display.viewTo)return a.display.view[da(a,c)];var y=a.display.externalMeasured;if(y&&c>=y.lineN&&c<y.lineN+y.size)return y}function Ls(a,c){var y=pt(c),v=ea(a,y);v&&!v.text?v=null:v&&v.changes&&(Ns(a,v,y,Xu(a)),a.curOp.forceUpdate=!0),v||(v=wu(a,c));var w=$a(v,c,y);return{line:c,view:v,rect:null,map:w.map,cache:w.cache,before:w.before,hasHeights:!1}}function ja(a,c,y,v,w){c.before&&(y=-1);var H=y+(v||""),te;return c.cache.hasOwnProperty(H)?te=c.cache[H]:(c.rect||(c.rect=c.view.text.getBoundingClientRect()),c.hasHeights||(Wo(a,c.view,c.rect),c.hasHeights=!0),te=Ur(a,c,y,v),te.bogus||(c.cache[H]=te)),{left:te.left,right:te.right,top:w?te.rtop:te.top,bottom:w?te.rbottom:te.bottom}}var $i={left:0,right:0,top:0,bottom:0};function Na(a,c,y){for(var v,w,H,te,be,ve,We=0;We<a.length;We+=3)if(be=a[We],ve=a[We+1],c<be?(w=0,H=1,te="left"):c<ve?(w=c-be,H=w+1):(We==a.length-3||c==ve&&a[We+3]>c)&&(H=ve-be,w=H-1,c>=ve&&(te="right")),w!=null){if(v=a[We+2],be==ve&&y==(v.insertLeft?"left":"right")&&(te=y),y=="left"&&w==0)for(;We&&a[We-2]==a[We-3]&&a[We-1].insertLeft;)v=a[(We-=3)+2],te="left";if(y=="right"&&w==ve-be)for(;We<a.length-3&&a[We+3]==a[We+4]&&!a[We+5].insertLeft;)v=a[(We+=3)+2],te="right";break}return{node:v,start:w,end:H,collapse:te,coverStart:be,coverEnd:ve}}function Rl(a,c){var y=$i;if(c=="left")for(var v=0;v<a.length&&(y=a[v]).left==y.right;v++);else for(var w=a.length-1;w>=0&&(y=a[w]).left==y.right;w--);return y}function Ur(a,c,y,v){var w=Na(c.map,y,v),H=w.node,te=w.start,be=w.end,ve=w.collapse,We;if(H.nodeType==3){for(var zt=0;zt<4;zt++){for(;te&&wt(c.line.text.charAt(w.coverStart+te));)--te;for(;w.coverStart+be<w.coverEnd&&wt(c.line.text.charAt(w.coverStart+be));)++be;if(W&&_<9&&te==0&&be==w.coverEnd-w.coverStart?We=H.parentNode.getBoundingClientRect():We=Rl(ie(H,te,be).getClientRects(),v),We.left||We.right||te==0)break;be=te,te=te-1,ve="right"}W&&_<11&&(We=bo(a.display.measure,We))}else{te>0&&(ve=v="right");var it;a.options.lineWrapping&&(it=H.getClientRects()).length>1?We=it[v=="right"?it.length-1:0]:We=H.getBoundingClientRect()}if(W&&_<9&&!te&&(!We||!We.left&&!We.right)){var bn=H.parentNode.getClientRects()[0];bn?We={left:bn.left,right:bn.left+ml(a.display),top:bn.top,bottom:bn.bottom}:We=$i}for(var mn=We.top-c.rect.top,li=We.bottom-c.rect.top,vi=(mn+li)/2,Oi=c.view.measure.heights,ir=0;ir<Oi.length-1&&!(vi<Oi[ir]);ir++);var Ir=ir?Oi[ir-1]:0,dr=Oi[ir],Br={left:(ve=="right"?We.right:We.left)-c.rect.left,right:(ve=="left"?We.left:We.right)-c.rect.left,top:Ir,bottom:dr};return!We.left&&!We.right&&(Br.bogus=!0),a.options.singleCursorHeightPerLine||(Br.rtop=mn,Br.rbottom=li),Br}function bo(a,c){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!_r(a))return c;var y=screen.logicalXDPI/screen.deviceXDPI,v=screen.logicalYDPI/screen.deviceYDPI;return{left:c.left*y,right:c.right*y,top:c.top*v,bottom:c.bottom*v}}function hs(a){if(a.measure&&(a.measure.cache={},a.measure.heights=null,a.rest))for(var c=0;c<a.rest.length;c++)a.measure.caches[c]={}}function is(a){a.display.externalMeasure=null,Ne(a.display.lineMeasure);for(var c=0;c<a.display.view.length;c++)hs(a.display.view[c])}function qr(a){is(a),a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null,a.options.lineWrapping||(a.display.maxLineChanged=!0),a.display.lineNumChars=null}function rs(){return ue&&Ie?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function ps(){return ue&&Ie?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function ks(a){var c=0;if(a.widgets)for(var y=0;y<a.widgets.length;++y)a.widgets[y].above&&(c+=La(a.widgets[y]));return c}function Es(a,c,y,v,w){if(!w){var H=ks(c);y.top+=H,y.bottom+=H}if(v=="line")return y;v||(v="local");var te=fs(c);if(v=="local"?te+=zo(a.display):te-=a.display.viewOffset,v=="page"||v=="window"){var be=a.display.lineSpace.getBoundingClientRect();te+=be.top+(v=="window"?0:ps());var ve=be.left+(v=="window"?0:rs());y.left+=ve,y.right+=ve}return y.top+=te,y.bottom+=te,y}function Gl(a,c,y){if(y=="div")return c;var v=c.left,w=c.top;if(y=="page")v-=rs(),w-=ps();else if(y=="local"||!y){var H=a.display.sizer.getBoundingClientRect();v+=H.left,w+=H.top}var te=a.display.lineSpace.getBoundingClientRect();return{left:v-te.left,top:w-te.top}}function Za(a,c,y,v,w){return v||(v=fn(a.doc,c.line)),Es(a,v,Ll(a,v,c.ch,w),y)}function ws(a,c,y,v,w,H){v=v||fn(a.doc,c.line),w||(w=Ls(a,v));function te(li,vi){var Oi=ja(a,w,li,vi?"right":"left",H);return vi?Oi.left=Oi.right:Oi.right=Oi.left,Es(a,v,Oi,y)}var be=nn(v,a.doc.direction),ve=c.ch,We=c.sticky;if(ve>=v.text.length?(ve=v.text.length,We="before"):ve<=0&&(ve=0,We="after"),!be)return te(We=="before"?ve-1:ve,We=="before");function zt(li,vi,Oi){var ir=be[vi],Ir=ir.level==1;return te(Oi?li-1:li,Ir!=Oi)}var it=Qe(be,ve,We),bn=lt,mn=zt(ve,it,We=="before");return bn!=null&&(mn.other=zt(ve,bn,We!="before")),mn}function hc(a,c){var y=0;c=xt(a.doc,c),a.options.lineWrapping||(y=ml(a.display)*c.ch);var v=fn(a.doc,c.line),w=fs(v)+zo(a.display);return{left:y,right:y,top:w,bottom:w+v.height}}function Yu(a,c,y,v,w){var H=ft(a,c,y);return H.xRel=w,v&&(H.outside=v),H}function lu(a,c,y){var v=a.doc;if(y+=a.display.viewOffset,y<0)return Yu(v.first,0,null,-1,-1);var w=gn(v,y),H=v.first+v.size-1;if(w>H)return Yu(v.first+v.size-1,fn(v,H).text.length,null,1,1);c<0&&(c=0);for(var te=fn(v,w);;){var be=kn(a,te,w,c,y),ve=Ri(te,be.ch+(be.xRel>0||be.outside>0?1:0));if(!ve)return be;var We=ve.find(1);if(We.line==w)return We;te=fn(v,w=We.line)}}function or(a,c,y,v){v-=ks(c);var w=c.text.length,H=Oe(function(te){return ja(a,y,te-1).bottom<=v},w,0);return w=Oe(function(te){return ja(a,y,te).top>v},H,w),{begin:H,end:w}}function Ga(a,c,y,v){y||(y=Ls(a,c));var w=Es(a,c,ja(a,y,v),"line").top;return or(a,c,y,w)}function Ye(a,c,y,v){return a.bottom<=y?!1:a.top>y?!0:(v?a.left:a.right)>c}function kn(a,c,y,v,w){w-=fs(c);var H=Ls(a,c),te=ks(c),be=0,ve=c.text.length,We=!0,zt=nn(c,a.doc.direction);if(zt){var it=(a.options.lineWrapping?Zu:Cu)(a,c,y,H,zt,v,w);We=it.level!=1,be=We?it.from:it.to-1,ve=We?it.to:it.from-1}var bn=null,mn=null,li=Oe(function(ho){var ur=ja(a,H,ho);return ur.top+=te,ur.bottom+=te,Ye(ur,v,w,!1)?(ur.top<=w&&ur.left<=v&&(bn=ho,mn=ur),!0):!1},be,ve),vi,Oi,ir=!1;if(mn){var Ir=v-mn.left<mn.right-v,dr=Ir==We;li=bn+(dr?0:1),Oi=dr?"after":"before",vi=Ir?mn.left:mn.right}else{!We&&(li==ve||li==be)&&li++,Oi=li==0?"after":li==c.text.length?"before":ja(a,H,li-(We?1:0)).bottom+te<=w==We?"after":"before";var Br=ws(a,ft(y,li,Oi),"line",c,H);vi=Br.left,ir=w<Br.top?-1:w>=Br.bottom?1:0}return li=ze(c.text,li,1),Yu(y,li,Oi,ir,v-vi)}function Cu(a,c,y,v,w,H,te){var be=Oe(function(it){var bn=w[it],mn=bn.level!=1;return Ye(ws(a,ft(y,mn?bn.to:bn.from,mn?"before":"after"),"line",c,v),H,te,!0)},0,w.length-1),ve=w[be];if(be>0){var We=ve.level!=1,zt=ws(a,ft(y,We?ve.from:ve.to,We?"after":"before"),"line",c,v);Ye(zt,H,te,!0)&&zt.top>te&&(ve=w[be-1])}return ve}function Zu(a,c,y,v,w,H,te){var be=or(a,c,v,te),ve=be.begin,We=be.end;/\s/.test(c.text.charAt(We-1))&&We--;for(var zt=null,it=null,bn=0;bn<w.length;bn++){var mn=w[bn];if(!(mn.from>=We||mn.to<=ve)){var li=mn.level!=1,vi=ja(a,v,li?Math.min(We,mn.to)-1:Math.max(ve,mn.from)).right,Oi=vi<H?H-vi+1e9:vi-H;(!zt||it>Oi)&&(zt=mn,it=Oi)}}return zt||(zt=w[w.length-1]),zt.from<ve&&(zt={from:ve,to:zt.to,level:zt.level}),zt.to>We&&(zt={from:zt.from,to:We,level:zt.level}),zt}var Dl;function Pl(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(Dl==null){Dl=Ke("pre",null,"CodeMirror-line-like");for(var c=0;c<49;++c)Dl.appendChild(document.createTextNode("x")),Dl.appendChild(Ke("br"));Dl.appendChild(document.createTextNode("x"))}Le(a.measure,Dl);var y=Dl.offsetHeight/50;return y>3&&(a.cachedTextHeight=y),Ne(a.measure),y||1}function ml(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var c=Ke("span","xxxxxxxxxx"),y=Ke("pre",[c],"CodeMirror-line-like");Le(a.measure,y);var v=c.getBoundingClientRect(),w=(v.right-v.left)/10;return w>2&&(a.cachedCharWidth=w),w||10}function Xu(a){for(var c=a.display,y={},v={},w=c.gutters.clientLeft,H=c.gutters.firstChild,te=0;H;H=H.nextSibling,++te){var be=a.display.gutterSpecs[te].className;y[be]=H.offsetLeft+H.clientLeft+w,v[be]=H.clientWidth}return{fixedPos:uu(c),gutterTotalWidth:c.gutters.offsetWidth,gutterLeft:y,gutterWidth:v,wrapperWidth:c.wrapper.clientWidth}}function uu(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function Cs(a){var c=Pl(a.display),y=a.options.lineWrapping,v=y&&Math.max(5,a.display.scroller.clientWidth/ml(a.display)-3);return function(w){if(mi(a.doc,w))return 0;var H=0;if(w.widgets)for(var te=0;te<w.widgets.length;te++)w.widgets[te].height&&(H+=w.widgets[te].height);return y?H+(Math.ceil(w.text.length/v)||1)*c:H+c}}function Nr(a){var c=a.doc,y=Cs(a);c.iter(function(v){var w=y(v);w!=v.height&&Kn(v,w)})}function Da(a,c,y,v){var w=a.display;if(!y&&ci(c).getAttribute("cm-not-content")=="true")return null;var H,te,be=w.lineSpace.getBoundingClientRect();try{H=c.clientX-be.left,te=c.clientY-be.top}catch(it){return null}var ve=lu(a,H,te),We;if(v&&ve.xRel>0&&(We=fn(a.doc,ve.line).text).length==ve.ch){var zt=Xe(We,We.length,a.options.tabSize)-We.length;ve=ft(ve.line,Math.max(0,Math.round((H-Ol(a.display).left)/ml(a.display))-zt))}return ve}function da(a,c){if(c>=a.display.viewTo||(c-=a.display.viewFrom,c<0))return null;for(var y=a.display.view,v=0;v<y.length;v++)if(c-=y[v].size,c<0)return v}function go(a,c,y,v){c==null&&(c=a.doc.first),y==null&&(y=a.doc.first+a.doc.size),v||(v=0);var w=a.display;if(v&&y<w.viewTo&&(w.updateLineNumbers==null||w.updateLineNumbers>c)&&(w.updateLineNumbers=c),a.curOp.viewChanged=!0,c>=w.viewTo)Zt&&wo(a.doc,c)<w.viewTo&&_s(a);else if(y<=w.viewFrom)Zt&&Ko(a.doc,y+v)>w.viewFrom?_s(a):(w.viewFrom+=v,w.viewTo+=v);else if(c<=w.viewFrom&&y>=w.viewTo)_s(a);else if(c<=w.viewFrom){var H=Wa(a,y,y+v,1);H?(w.view=w.view.slice(H.index),w.viewFrom=H.lineN,w.viewTo+=v):_s(a)}else if(y>=w.viewTo){var te=Wa(a,c,c,-1);te?(w.view=w.view.slice(0,te.index),w.viewTo=te.lineN):_s(a)}else{var be=Wa(a,c,c,-1),ve=Wa(a,y,y+v,1);be&&ve?(w.view=w.view.slice(0,be.index).concat(zr(a,be.lineN,ve.lineN)).concat(w.view.slice(ve.index)),w.viewTo+=v):_s(a)}var We=w.externalMeasured;We&&(y<We.lineN?We.lineN+=v:c<We.lineN+We.size&&(w.externalMeasured=null))}function ro(a,c,y){a.curOp.viewChanged=!0;var v=a.display,w=a.display.externalMeasured;if(w&&c>=w.lineN&&c<w.lineN+w.size&&(v.externalMeasured=null),!(c<v.viewFrom||c>=v.viewTo)){var H=v.view[da(a,c)];if(H.node!=null){var te=H.changes||(H.changes=[]);le(te,y)==-1&&te.push(y)}}}function _s(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function Wa(a,c,y,v){var w=da(a,c),H,te=a.display.view;if(!Zt||y==a.doc.first+a.doc.size)return{index:w,lineN:y};for(var be=a.display.viewFrom,ve=0;ve<w;ve++)be+=te[ve].size;if(be!=c){if(v>0){if(w==te.length-1)return null;H=be+te[w].size-c,w++}else H=be-c;c+=H,y+=H}for(;wo(a.doc,y)!=y;){if(w==(v<0?0:te.length-1))return null;y+=v*te[w-(v<0?1:0)].size,w+=v}return{index:w,lineN:y}}function os(a,c,y){var v=a.display,w=v.view;w.length==0||c>=v.viewTo||y<=v.viewFrom?(v.view=zr(a,c,y),v.viewFrom=c):(v.viewFrom>c?v.view=zr(a,c,v.viewFrom).concat(v.view):v.viewFrom<c&&(v.view=v.view.slice(da(a,c))),v.viewFrom=c,v.viewTo<y?v.view=v.view.concat(zr(a,v.viewTo,y)):v.viewTo>y&&(v.view=v.view.slice(0,da(a,y)))),v.viewTo=y}function Va(a){for(var c=a.display.view,y=0,v=0;v<c.length;v++){var w=c[v];!w.hidden&&(!w.node||w.changes)&&++y}return y}function ta(a){a.display.input.showSelection(a.display.input.prepareSelection())}function cu(a,c){c===void 0&&(c=!0);for(var y=a.doc,v={},w=v.cursors=document.createDocumentFragment(),H=v.selection=document.createDocumentFragment(),te=0;te<y.sel.ranges.length;te++)if(!(!c&&te==y.sel.primIndex)){var be=y.sel.ranges[te];if(!(be.from().line>=a.display.viewTo||be.to().line<a.display.viewFrom)){var ve=be.empty();(ve||a.options.showCursorWhenSelecting)&&Do(a,be.head,w),ve||vo(a,be,H)}}return v}function Do(a,c,y){var v=ws(a,c,"div",null,null,!a.options.singleCursorHeightPerLine),w=y.appendChild(Ke("div","\xA0","CodeMirror-cursor"));if(w.style.left=v.left+"px",w.style.top=v.top+"px",w.style.height=Math.max(0,v.bottom-v.top)*a.options.cursorHeight+"px",v.other){var H=y.appendChild(Ke("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));H.style.display="",H.style.left=v.other.left+"px",H.style.top=v.other.top+"px",H.style.height=(v.other.bottom-v.other.top)*.85+"px"}}function xa(a,c){return a.top-c.top||a.left-c.left}function vo(a,c,y){var v=a.display,w=a.doc,H=document.createDocumentFragment(),te=Ol(a.display),be=te.left,ve=Math.max(v.sizerWidth,As(a)-v.sizer.offsetLeft)-te.right,We=w.direction=="ltr";function zt(dr,Br,ho,ur){Br<0&&(Br=0),Br=Math.round(Br),ur=Math.round(ur),H.appendChild(Ke("div",null,"CodeMirror-selected","position: absolute; left: "+dr+`px;
|
|
|
top: `+Br+"px; width: "+(ho==null?ve-dr:ho)+`px;
|
|
|
height: `+(ur-Br)+"px"))}function it(dr,Br,ho){var ur=fn(w,dr),Uo=ur.text.length,aa,cl;function Ea(nl,Iu){return Za(a,ft(dr,nl),"div",ur,Iu)}function gu(nl,Iu,_l){var il=Ga(a,ur,null,nl),Ts=Iu=="ltr"==(_l=="after")?"left":"right",ka=_l=="after"?il.begin:il.end-(/\s/.test(ur.text.charAt(il.end-1))?2:1);return Ea(ka,Ts)[Ts]}var Yl=nn(ur,w.direction);return mt(Yl,Br||0,ho==null?Uo:ho,function(nl,Iu,_l,il){var Ts=_l=="ltr",ka=Ea(nl,Ts?"left":"right"),bl=Ea(Iu-1,Ts?"right":"left"),zl=Br==null&&nl==0,fc=ho==null&&Iu==Uo,wa=il==0,nc=!Yl||il==Yl.length-1;if(bl.top-ka.top<=3){var Ba=(We?zl:fc)&&wa,zd=(We?fc:zl)&&nc,Uu=Ba?be:(Ts?ka:bl).left,Mu=zd?ve:(Ts?bl:ka).right;zt(Uu,ka.top,Mu-Uu,ka.bottom)}else{var vu,Zs,xl,Fc;Ts?(vu=We&&zl&&wa?be:ka.left,Zs=We?ve:gu(nl,_l,"before"),xl=We?be:gu(Iu,_l,"after"),Fc=We&&fc&&nc?ve:bl.right):(vu=We?gu(nl,_l,"before"):be,Zs=!We&&zl&&wa?ve:ka.right,xl=!We&&fc&&nc?be:bl.left,Fc=We?gu(Iu,_l,"after"):ve),zt(vu,ka.top,Zs-vu,ka.bottom),ka.bottom<bl.top&&zt(be,ka.bottom,null,bl.top),zt(xl,bl.top,Fc-xl,bl.bottom)}(!aa||xa(ka,aa)<0)&&(aa=ka),xa(bl,aa)<0&&(aa=bl),(!cl||xa(ka,cl)<0)&&(cl=ka),xa(bl,cl)<0&&(cl=bl)}),{start:aa,end:cl}}var bn=c.from(),mn=c.to();if(bn.line==mn.line)it(bn.line,bn.ch,mn.ch);else{var li=fn(w,bn.line),vi=fn(w,mn.line),Oi=Hi(li)==Hi(vi),ir=it(bn.line,bn.ch,Oi?li.text.length+1:null).end,Ir=it(mn.line,Oi?0:null,mn.ch).start;Oi&&(ir.top<Ir.top-2?(zt(ir.right,ir.top,null,ir.bottom),zt(be,Ir.top,Ir.left,Ir.bottom)):zt(ir.right,ir.top,Ir.left-ir.right,ir.bottom)),ir.bottom<Ir.top&&zt(be,ir.bottom,null,Ir.top)}y.appendChild(H)}function Zo(a){if(a.state.focused){var c=a.display;clearInterval(c.blinker);var y=!0;c.cursorDiv.style.visibility="",a.options.cursorBlinkRate>0?c.blinker=setInterval(function(){a.hasFocus()||hu(a),c.cursorDiv.style.visibility=(y=!y)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(c.cursorDiv.style.visibility="hidden")}}function qo(a){a.state.focused||(a.display.input.focus(),Po(a))}function bs(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,hu(a))},100)}function Po(a,c){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(Ve(a,"focus",a,c),a.state.focused=!0,Bt(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),M&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),Zo(a))}function hu(a,c){a.state.delayingBlurEvent||(a.state.focused&&(Ve(a,"blur",a,c),a.state.focused=!1,Ce(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function wr(a){for(var c=a.display,y=c.lineDiv.offsetTop,v=0;v<c.view.length;v++){var w=c.view[v],H=a.options.lineWrapping,te=void 0,be=0;if(!w.hidden){if(W&&_<8){var ve=w.node.offsetTop+w.node.offsetHeight;te=ve-y,y=ve}else{var We=w.node.getBoundingClientRect();te=We.bottom-We.top,!H&&w.text.firstChild&&(be=w.text.firstChild.getBoundingClientRect().right-We.left-1)}var zt=w.line.height-te;if((zt>.005||zt<-.005)&&(Kn(w.line,te),sl(w.line),w.rest))for(var it=0;it<w.rest.length;it++)sl(w.rest[it]);if(be>a.display.sizerWidth){var bn=Math.ceil(be/ml(a.display));bn>a.display.maxLineLength&&(a.display.maxLineLength=bn,a.display.maxLine=w.line,a.display.maxLineChanged=!0)}}}}function sl(a){if(a.widgets)for(var c=0;c<a.widgets.length;++c){var y=a.widgets[c],v=y.node.parentNode;v&&(y.height=v.offsetHeight)}}function xo(a,c,y){var v=y&&y.top!=null?Math.max(0,y.top):a.scroller.scrollTop;v=Math.floor(v-zo(a));var w=y&&y.bottom!=null?y.bottom:v+a.wrapper.clientHeight,H=gn(c,v),te=gn(c,w);if(y&&y.ensure){var be=y.ensure.from.line,ve=y.ensure.to.line;be<H?(H=be,te=gn(c,fs(fn(c,be))+a.wrapper.clientHeight)):Math.min(ve,c.lastLine())>=te&&(H=gn(c,fs(fn(c,ve))-a.wrapper.clientHeight),te=ve)}return{from:H,to:Math.max(te,H+1)}}function Qu(a,c){if(!Pt(a,"scrollCursorIntoView")){var y=a.display,v=y.sizer.getBoundingClientRect(),w=null;if(c.top+v.top<0?w=!0:c.bottom+v.top>(window.innerHeight||document.documentElement.clientHeight)&&(w=!1),w!=null&&!rt){var H=Ke("div","\u200B",null,`position: absolute;
|
|
|
top: `+(c.top-y.viewOffset-zo(a.display))+`px;
|
|
|
height: `+(c.bottom-c.top+Vs(a)+y.barHeight)+`px;
|
|
|
left: `+c.left+"px; width: "+Math.max(2,c.right-c.left)+"px;");a.display.lineSpace.appendChild(H),H.scrollIntoView(w),a.display.lineSpace.removeChild(H)}}}function Ju(a,c,y,v){v==null&&(v=0);var w;!a.options.lineWrapping&&c==y&&(c=c.ch?ft(c.line,c.sticky=="before"?c.ch-1:c.ch,"after"):c,y=c.sticky=="before"?ft(c.line,c.ch+1,"before"):c);for(var H=0;H<5;H++){var te=!1,be=ws(a,c),ve=!y||y==c?be:ws(a,y);w={left:Math.min(be.left,ve.left),top:Math.min(be.top,ve.top)-v,right:Math.max(be.left,ve.left),bottom:Math.max(be.bottom,ve.bottom)+v};var We=wc(a,w),zt=a.doc.scrollTop,it=a.doc.scrollLeft;if(We.scrollTop!=null&&(eu(a,We.scrollTop),Math.abs(a.doc.scrollTop-zt)>1&&(te=!0)),We.scrollLeft!=null&&(vl(a,We.scrollLeft),Math.abs(a.doc.scrollLeft-it)>1&&(te=!0)),!te)break}return w}function qu(a,c){var y=wc(a,c);y.scrollTop!=null&&eu(a,y.scrollTop),y.scrollLeft!=null&&vl(a,y.scrollLeft)}function wc(a,c){var y=a.display,v=Pl(a.display);c.top<0&&(c.top=0);var w=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:y.scroller.scrollTop,H=pl(a),te={};c.bottom-c.top>H&&(c.bottom=c.top+H);var be=a.doc.height+qs(y),ve=c.top<v,We=c.bottom>be-v;if(c.top<w)te.scrollTop=ve?0:c.top;else if(c.bottom>w+H){var zt=Math.min(c.top,(We?be:c.bottom)-H);zt!=w&&(te.scrollTop=zt)}var it=a.options.fixedGutter?0:y.gutters.offsetWidth,bn=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:y.scroller.scrollLeft-it,mn=As(a)-y.gutters.offsetWidth,li=c.right-c.left>mn;return li&&(c.right=c.left+mn),c.left<10?te.scrollLeft=0:c.left<bn?te.scrollLeft=Math.max(0,c.left+it-(li?0:10)):c.right>mn+bn-3&&(te.scrollLeft=c.right+(li?0:10)-mn),te}function _u(a,c){c!=null&&(Pa(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+c)}function Xa(a){Pa(a);var c=a.getCursor();a.curOp.scrollToPos={from:c,to:c,margin:a.options.cursorScrollMargin}}function Qa(a,c,y){(c!=null||y!=null)&&Pa(a),c!=null&&(a.curOp.scrollLeft=c),y!=null&&(a.curOp.scrollTop=y)}function To(a,c){Pa(a),a.curOp.scrollToPos=c}function Pa(a){var c=a.curOp.scrollToPos;if(c){a.curOp.scrollToPos=null;var y=hc(a,c.from),v=hc(a,c.to);dc(a,y,v,c.margin)}}function dc(a,c,y,v){var w=wc(a,{left:Math.min(c.left,y.left),top:Math.min(c.top,y.top)-v,right:Math.max(c.right,y.right),bottom:Math.max(c.bottom,y.bottom)+v});Qa(a,w.scrollLeft,w.scrollTop)}function eu(a,c){Math.abs(a.doc.scrollTop-c)<2||(b||zi(a,{top:c}),gl(a,c,!0),b&&zi(a),Dn(a,100))}function gl(a,c,y){c=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,c)),!(a.display.scroller.scrollTop==c&&!y)&&(a.doc.scrollTop=c,a.display.scrollbars.setScrollTop(c),a.display.scroller.scrollTop!=c&&(a.display.scroller.scrollTop=c))}function vl(a,c,y,v){c=Math.max(0,Math.min(c,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((y?c==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-c)<2)&&!v)&&(a.doc.scrollLeft=c,q(a),a.display.scroller.scrollLeft!=c&&(a.display.scroller.scrollLeft=c),a.display.scrollbars.setScrollLeft(c))}function Ja(a){var c=a.display,y=c.gutters.offsetWidth,v=Math.round(a.doc.height+qs(a.display));return{clientHeight:c.scroller.clientHeight,viewHeight:c.wrapper.clientHeight,scrollWidth:c.scroller.scrollWidth,clientWidth:c.scroller.clientWidth,viewWidth:c.wrapper.clientWidth,barLeft:a.options.fixedGutter?y:0,docHeight:v,scrollHeight:v+Vs(a)+c.barHeight,nativeBarWidth:c.nativeBarWidth,gutterWidth:y}}var Wl=function(a,c,y){this.cm=y;var v=this.vert=Ke("div",[Ke("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),w=this.horiz=Ke("div",[Ke("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");v.tabIndex=w.tabIndex=-1,a(v),a(w),Ot(v,"scroll",function(){v.clientHeight&&c(v.scrollTop,"vertical")}),Ot(w,"scroll",function(){w.clientWidth&&c(w.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,W&&_<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Wl.prototype.update=function(a){var c=a.scrollWidth>a.clientWidth+1,y=a.scrollHeight>a.clientHeight+1,v=a.nativeBarWidth;if(y){this.vert.style.display="block",this.vert.style.bottom=c?v+"px":"0";var w=a.viewHeight-(c?v:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.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=y?v+"px":"0",this.horiz.style.left=a.barLeft+"px";var H=a.viewWidth-a.barLeft-(y?v:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+H)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(v==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:y?v:0,bottom:c?v:0}},Wl.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Wl.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Wl.prototype.zeroWidthHack=function(){var a=Fe&&!ke?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new se,this.disableVert=new se},Wl.prototype.enableZeroWidthBar=function(a,c,y){a.style.pointerEvents="auto";function v(){var w=a.getBoundingClientRect(),H=y=="vert"?document.elementFromPoint(w.right-1,(w.top+w.bottom)/2):document.elementFromPoint((w.right+w.left)/2,w.bottom-1);H!=a?a.style.pointerEvents="none":c.set(1e3,v)}c.set(1e3,v)},Wl.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var Ka=function(){};Ka.prototype.update=function(){return{bottom:0,right:0}},Ka.prototype.setScrollLeft=function(){},Ka.prototype.setScrollTop=function(){},Ka.prototype.clear=function(){};function du(a,c){c||(c=Ja(a));var y=a.display.barWidth,v=a.display.barHeight;fu(a,c);for(var w=0;w<4&&y!=a.display.barWidth||v!=a.display.barHeight;w++)y!=a.display.barWidth&&a.options.lineWrapping&&wr(a),fu(a,Ja(a)),y=a.display.barWidth,v=a.display.barHeight}function fu(a,c){var y=a.display,v=y.scrollbars.update(c);y.sizer.style.paddingRight=(y.barWidth=v.right)+"px",y.sizer.style.paddingBottom=(y.barHeight=v.bottom)+"px",y.heightForcer.style.borderBottom=v.bottom+"px solid transparent",v.right&&v.bottom?(y.scrollbarFiller.style.display="block",y.scrollbarFiller.style.height=v.bottom+"px",y.scrollbarFiller.style.width=v.right+"px"):y.scrollbarFiller.style.display="",v.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(y.gutterFiller.style.display="block",y.gutterFiller.style.height=v.bottom+"px",y.gutterFiller.style.width=c.gutterWidth+"px"):y.gutterFiller.style.display=""}var Tu={native:Wl,null:Ka};function Nu(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&Ce(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new Tu[a.options.scrollbarStyle](function(c){a.display.wrapper.insertBefore(c,a.display.scrollbarFiller),Ot(c,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),c.setAttribute("cm-not-content","true")},function(c,y){y=="horizontal"?vl(a,c):eu(a,c)},a),a.display.scrollbars.addClass&&Bt(a.display.wrapper,a.display.scrollbars.addClass)}var al=0;function fa(a){a.curOp={cm:a,viewChanged:!1,startHeight:a.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:++al},ba(a.curOp)}function Vl(a){var c=a.curOp;c&&yn(c,function(y){for(var v=0;v<y.ops.length;v++)y.ops[v].cm.curOp=null;zu(y)})}function zu(a){for(var c=a.ops,y=0;y<c.length;y++)Se(c[y]);for(var v=0;v<c.length;v++)Ae(c[v]);for(var w=0;w<c.length;w++)ut(c[w]);for(var H=0;H<c.length;H++)vt(c[H]);for(var te=0;te<c.length;te++)Lt(c[te])}function Se(a){var c=a.cm,y=c.display;fi(c),a.updateMaxLine&&Bs(c),a.mustUpdate=a.viewChanged||a.forceUpdate||a.scrollTop!=null||a.scrollToPos&&(a.scrollToPos.from.line<y.viewFrom||a.scrollToPos.to.line>=y.viewTo)||y.maxLineChanged&&c.options.lineWrapping,a.update=a.mustUpdate&&new zn(c,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function Ae(a){a.updatedDisplay=a.mustUpdate&&Fi(a.cm,a.update)}function ut(a){var c=a.cm,y=c.display;a.updatedDisplay&&wr(c),a.barMeasure=Ja(c),y.maxLineChanged&&!c.options.lineWrapping&&(a.adjustWidthTo=Ll(c,y.maxLine,y.maxLine.text.length).left+3,c.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(y.scroller.clientWidth,y.sizer.offsetLeft+a.adjustWidthTo+Vs(c)+c.display.barWidth),a.maxScrollLeft=Math.max(0,y.sizer.offsetLeft+a.adjustWidthTo-As(c))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=y.input.prepareSelection())}function vt(a){var c=a.cm;a.adjustWidthTo!=null&&(c.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft<c.doc.scrollLeft&&vl(c,Math.min(c.display.scroller.scrollLeft,a.maxScrollLeft),!0),c.display.maxLineChanged=!1);var y=a.focus&&a.focus==Ze();a.preparedSelection&&c.display.input.showSelection(a.preparedSelection,y),(a.updatedDisplay||a.startHeight!=c.doc.height)&&du(c,a.barMeasure),a.updatedDisplay&&G(c,a.barMeasure),a.selectionChanged&&Zo(c),c.state.focused&&a.updateInput&&c.display.input.reset(a.typing),y&&qo(a.cm)}function Lt(a){var c=a.cm,y=c.display,v=c.doc;if(a.updatedDisplay&&ai(c,a.update),y.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(y.wheelStartX=y.wheelStartY=null),a.scrollTop!=null&&gl(c,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&vl(c,a.scrollLeft,!0,!0),a.scrollToPos){var w=Ju(c,xt(v,a.scrollToPos.from),xt(v,a.scrollToPos.to),a.scrollToPos.margin);Qu(c,w)}var H=a.maybeHiddenMarkers,te=a.maybeUnhiddenMarkers;if(H)for(var be=0;be<H.length;++be)H[be].lines.length||Ve(H[be],"hide");if(te)for(var ve=0;ve<te.length;++ve)te[ve].lines.length&&Ve(te[ve],"unhide");y.wrapper.offsetHeight&&(v.scrollTop=c.display.scroller.scrollTop),a.changeObjs&&Ve(c,"changes",c,a.changeObjs),a.update&&a.update.finish()}function Nt(a,c){if(a.curOp)return c();fa(a);try{return c()}finally{Vl(a)}}function fe(a,c){return function(){if(a.curOp)return c.apply(a,arguments);fa(a);try{return c.apply(a,arguments)}finally{Vl(a)}}}function cn(a){return function(){if(this.curOp)return a.apply(this,arguments);fa(this);try{return a.apply(this,arguments)}finally{Vl(this)}}}function en(a){return function(){var c=this.cm;if(!c||c.curOp)return a.apply(this,arguments);fa(c);try{return a.apply(this,arguments)}finally{Vl(c)}}}function Dn(a,c){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(c,Tt(Bn,a))}function Bn(a){var c=a.doc;if(!(c.highlightFrontier>=a.display.viewTo)){var y=+new Date+a.options.workTime,v=hr(a,c.highlightFrontier),w=[];c.iter(v.line,Math.min(c.first+c.size,a.display.viewTo+500),function(H){if(v.line>=a.display.viewFrom){var te=H.styles,be=H.text.length>a.options.maxHighlightLength?_n(c.mode,v.state):null,ve=ot(a,H,v,!0);be&&(v.state=be),H.styles=ve.styles;var We=H.styleClasses,zt=ve.classes;zt?H.styleClasses=zt:We&&(H.styleClasses=null);for(var it=!te||te.length!=H.styles.length||We!=zt&&(!We||!zt||We.bgClass!=zt.bgClass||We.textClass!=zt.textClass),bn=0;!it&&bn<te.length;++bn)it=te[bn]!=H.styles[bn];it&&w.push(v.line),H.stateAfter=v.save(),v.nextLine()}else H.text.length<=a.options.maxHighlightLength&&Kt(a,H.text,v),H.stateAfter=v.line%5==0?v.save():null,v.nextLine();if(+new Date>y)return Dn(a,a.options.workDelay),!0}),c.highlightFrontier=v.line,c.modeFrontier=Math.max(c.modeFrontier,v.line),w.length&&Nt(a,function(){for(var H=0;H<w.length;H++)ro(a,w[H],"text")})}}var zn=function(a,c,y){var v=a.display;this.viewport=c,this.visible=xo(v,a.doc,c),this.editorIsHidden=!v.wrapper.offsetWidth,this.wrapperHeight=v.wrapper.clientHeight,this.wrapperWidth=v.wrapper.clientWidth,this.oldDisplayWidth=As(a),this.force=y,this.dims=Xu(a),this.events=[]};zn.prototype.signal=function(a,c){qt(a,c)&&this.events.push(arguments)},zn.prototype.finish=function(){for(var a=0;a<this.events.length;a++)Ve.apply(null,this.events[a])};function fi(a){var c=a.display;!c.scrollbarsClipped&&c.scroller.offsetWidth&&(c.nativeBarWidth=c.scroller.offsetWidth-c.scroller.clientWidth,c.heightForcer.style.height=Vs(a)+"px",c.sizer.style.marginBottom=-c.nativeBarWidth+"px",c.sizer.style.borderRightWidth=Vs(a)+"px",c.scrollbarsClipped=!0)}function gi(a){if(a.hasFocus())return null;var c=Ze();if(!c||!at(a.display.lineDiv,c))return null;var y={activeElt:c};if(window.getSelection){var v=window.getSelection();v.anchorNode&&v.extend&&at(a.display.lineDiv,v.anchorNode)&&(y.anchorNode=v.anchorNode,y.anchorOffset=v.anchorOffset,y.focusNode=v.focusNode,y.focusOffset=v.focusOffset)}return y}function Jn(a){if(!(!a||!a.activeElt||a.activeElt==Ze())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&at(document.body,a.anchorNode)&&at(document.body,a.focusNode))){var c=window.getSelection(),y=document.createRange();y.setEnd(a.anchorNode,a.anchorOffset),y.collapse(!1),c.removeAllRanges(),c.addRange(y),c.extend(a.focusNode,a.focusOffset)}}function Fi(a,c){var y=a.display,v=a.doc;if(c.editorIsHidden)return _s(a),!1;if(!c.force&&c.visible.from>=y.viewFrom&&c.visible.to<=y.viewTo&&(y.updateLineNumbers==null||y.updateLineNumbers>=y.viewTo)&&y.renderedView==y.view&&Va(a)==0)return!1;he(a)&&(_s(a),c.dims=Xu(a));var w=v.first+v.size,H=Math.max(c.visible.from-a.options.viewportMargin,v.first),te=Math.min(w,c.visible.to+a.options.viewportMargin);y.viewFrom<H&&H-y.viewFrom<20&&(H=Math.max(v.first,y.viewFrom)),y.viewTo>te&&y.viewTo-te<20&&(te=Math.min(w,y.viewTo)),Zt&&(H=wo(a.doc,H),te=Ko(a.doc,te));var be=H!=y.viewFrom||te!=y.viewTo||y.lastWrapHeight!=c.wrapperHeight||y.lastWrapWidth!=c.wrapperWidth;os(a,H,te),y.viewOffset=fs(fn(a.doc,y.viewFrom)),a.display.mover.style.top=y.viewOffset+"px";var ve=Va(a);if(!be&&ve==0&&!c.force&&y.renderedView==y.view&&(y.updateLineNumbers==null||y.updateLineNumbers>=y.viewTo))return!1;var We=gi(a);return ve>4&&(y.lineDiv.style.display="none"),E(a,y.updateLineNumbers,c.dims),ve>4&&(y.lineDiv.style.display=""),y.renderedView=y.view,Jn(We),Ne(y.cursorDiv),Ne(y.selectionDiv),y.gutters.style.height=y.sizer.style.minHeight=0,be&&(y.lastWrapHeight=c.wrapperHeight,y.lastWrapWidth=c.wrapperWidth,Dn(a,400)),y.updateLineNumbers=null,!0}function ai(a,c){for(var y=c.viewport,v=!0;;v=!1){if(!v||!a.options.lineWrapping||c.oldDisplayWidth==As(a)){if(y&&y.top!=null&&(y={top:Math.min(a.doc.height+qs(a.display)-pl(a),y.top)}),c.visible=xo(a.display,a.doc,y),c.visible.from>=a.display.viewFrom&&c.visible.to<=a.display.viewTo)break}else v&&(c.visible=xo(a.display,a.doc,y));if(!Fi(a,c))break;wr(a);var w=Ja(a);ta(a),du(a,w),G(a,w),c.force=!1}c.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(c.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function zi(a,c){var y=new zn(a,c);if(Fi(a,y)){wr(a),ai(a,y);var v=Ja(a);ta(a),du(a,v),G(a,v),y.finish()}}function E(a,c,y){var v=a.display,w=a.options.lineNumbers,H=v.lineDiv,te=H.firstChild;function be(li){var vi=li.nextSibling;return M&&Fe&&a.display.currentWheelTarget==li?li.style.display="none":li.parentNode.removeChild(li),vi}for(var ve=v.view,We=v.viewFrom,zt=0;zt<ve.length;zt++){var it=ve[zt];if(!it.hidden)if(!it.node||it.node.parentNode!=H){var bn=Go(a,it,We,y);H.insertBefore(bn,te)}else{for(;te!=it.node;)te=be(te);var mn=w&&c!=null&&c<=We&&it.lineNumber;it.changes&&(le(it.changes,"gutter")>-1&&(mn=!1),Ns(a,it,We,y)),mn&&(Ne(it.lineNumber),it.lineNumber.appendChild(document.createTextNode(xi(a.options,We)))),te=it.node.nextSibling}We+=it.size}for(;te;)te=be(te)}function F(a){var c=a.gutters.offsetWidth;a.sizer.style.marginLeft=c+"px"}function G(a,c){a.display.sizer.style.minHeight=c.docHeight+"px",a.display.heightForcer.style.top=c.docHeight+"px",a.display.gutters.style.height=c.docHeight+a.display.barHeight+Vs(a)+"px"}function q(a){var c=a.display,y=c.view;if(!(!c.alignWidgets&&(!c.gutters.firstChild||!a.options.fixedGutter))){for(var v=uu(c)-c.scroller.scrollLeft+a.doc.scrollLeft,w=c.gutters.offsetWidth,H=v+"px",te=0;te<y.length;te++)if(!y[te].hidden){a.options.fixedGutter&&(y[te].gutter&&(y[te].gutter.style.left=H),y[te].gutterBackground&&(y[te].gutterBackground.style.left=H));var be=y[te].alignable;if(be)for(var ve=0;ve<be.length;ve++)be[ve].style.left=H}a.options.fixedGutter&&(c.gutters.style.left=v+w+"px")}}function he(a){if(!a.options.lineNumbers)return!1;var c=a.doc,y=xi(a.options,c.first+c.size-1),v=a.display;if(y.length!=v.lineNumChars){var w=v.measure.appendChild(Ke("div",[Ke("div",y)],"CodeMirror-linenumber CodeMirror-gutter-elt")),H=w.firstChild.offsetWidth,te=w.offsetWidth-H;return v.lineGutter.style.width="",v.lineNumInnerWidth=Math.max(H,v.lineGutter.offsetWidth-te)+1,v.lineNumWidth=v.lineNumInnerWidth+te,v.lineNumChars=v.lineNumInnerWidth?y.length:-1,v.lineGutter.style.width=v.lineNumWidth+"px",F(a.display),!0}return!1}function Ee(a,c){for(var y=[],v=!1,w=0;w<a.length;w++){var H=a[w],te=null;if(typeof H!="string"&&(te=H.style,H=H.className),H=="CodeMirror-linenumbers")if(c)v=!0;else continue;y.push({className:H,style:te})}return c&&!v&&y.push({className:"CodeMirror-linenumbers",style:null}),y}function $e(a){var c=a.gutters,y=a.gutterSpecs;Ne(c),a.lineGutter=null;for(var v=0;v<y.length;++v){var w=y[v],H=w.className,te=w.style,be=c.appendChild(Ke("div",null,"CodeMirror-gutter "+H));te&&(be.style.cssText=te),H=="CodeMirror-linenumbers"&&(a.lineGutter=be,be.style.width=(a.lineNumWidth||1)+"px")}c.style.display=y.length?"":"none",F(a)}function et(a){$e(a.display),go(a),q(a)}function Ft(a,c,y,v){var w=this;this.input=y,w.scrollbarFiller=Ke("div",null,"CodeMirror-scrollbar-filler"),w.scrollbarFiller.setAttribute("cm-not-content","true"),w.gutterFiller=Ke("div",null,"CodeMirror-gutter-filler"),w.gutterFiller.setAttribute("cm-not-content","true"),w.lineDiv=nt("div",null,"CodeMirror-code"),w.selectionDiv=Ke("div",null,null,"position: relative; z-index: 1"),w.cursorDiv=Ke("div",null,"CodeMirror-cursors"),w.measure=Ke("div",null,"CodeMirror-measure"),w.lineMeasure=Ke("div",null,"CodeMirror-measure"),w.lineSpace=nt("div",[w.measure,w.lineMeasure,w.selectionDiv,w.cursorDiv,w.lineDiv],null,"position: relative; outline: none");var H=nt("div",[w.lineSpace],"CodeMirror-lines");w.mover=Ke("div",[H],null,"position: relative"),w.sizer=Ke("div",[w.mover],"CodeMirror-sizer"),w.sizerWidth=null,w.heightForcer=Ke("div",null,null,"position: absolute; height: "+_t+"px; width: 1px;"),w.gutters=Ke("div",null,"CodeMirror-gutters"),w.lineGutter=null,w.scroller=Ke("div",[w.sizer,w.heightForcer,w.gutters],"CodeMirror-scroll"),w.scroller.setAttribute("tabIndex","-1"),w.wrapper=Ke("div",[w.scrollbarFiller,w.gutterFiller,w.scroller],"CodeMirror"),W&&_<8&&(w.gutters.style.zIndex=-1,w.scroller.style.paddingRight=0),!M&&!(b&&De)&&(w.scroller.draggable=!0),a&&(a.appendChild?a.appendChild(w.wrapper):a(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=Ee(v.gutters,v.lineNumbers),$e(w),y.init(w)}var At=0,ct=null;W?ct=-.53:b?ct=15:ue?ct=-.7:Pe&&(ct=-1/3);function $t(a){var c=a.wheelDeltaX,y=a.wheelDeltaY;return c==null&&a.detail&&a.axis==a.HORIZONTAL_AXIS&&(c=a.detail),y==null&&a.detail&&a.axis==a.VERTICAL_AXIS?y=a.detail:y==null&&(y=a.wheelDelta),{x:c,y}}function Vt(a){var c=$t(a);return c.x*=ct,c.y*=ct,c}function Rt(a,c){var y=$t(c),v=y.x,w=y.y,H=a.display,te=H.scroller,be=te.scrollWidth>te.clientWidth,ve=te.scrollHeight>te.clientHeight;if(v&&be||w&&ve){if(w&&Fe&&M){e:for(var We=c.target,zt=H.view;We!=te;We=We.parentNode)for(var it=0;it<zt.length;it++)if(zt[it].node==We){a.display.currentWheelTarget=We;break e}}if(v&&!b&&!ne&&ct!=null){w&&ve&&eu(a,Math.max(0,te.scrollTop+w*ct)),vl(a,Math.max(0,te.scrollLeft+v*ct)),(!w||w&&ve)&&Rn(c),H.wheelStartX=null;return}if(w&&ct!=null){var bn=w*ct,mn=a.doc.scrollTop,li=mn+H.wrapper.clientHeight;bn<0?mn=Math.max(0,mn+bn-50):li=Math.min(a.doc.height,li+bn+50),zi(a,{top:mn,bottom:li})}At<20&&(H.wheelStartX==null?(H.wheelStartX=te.scrollLeft,H.wheelStartY=te.scrollTop,H.wheelDX=v,H.wheelDY=w,setTimeout(function(){if(H.wheelStartX!=null){var vi=te.scrollLeft-H.wheelStartX,Oi=te.scrollTop-H.wheelStartY,ir=Oi&&H.wheelDY&&Oi/H.wheelDY||vi&&H.wheelDX&&vi/H.wheelDX;H.wheelStartX=H.wheelStartY=null,ir&&(ct=(ct*At+ir)/(At+1),++At)}},200)):(H.wheelDX+=v,H.wheelDY+=w))}}var yi=function(a,c){this.ranges=a,this.primIndex=c};yi.prototype.primary=function(){return this.ranges[this.primIndex]},yi.prototype.equals=function(a){if(a==this)return!0;if(a.primIndex!=this.primIndex||a.ranges.length!=this.ranges.length)return!1;for(var c=0;c<this.ranges.length;c++){var y=this.ranges[c],v=a.ranges[c];if(!Mt(y.anchor,v.anchor)||!Mt(y.head,v.head))return!1}return!0},yi.prototype.deepCopy=function(){for(var a=[],c=0;c<this.ranges.length;c++)a[c]=new si(qe(this.ranges[c].anchor),qe(this.ranges[c].head));return new yi(a,this.primIndex)},yi.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},yi.prototype.contains=function(a,c){c||(c=a);for(var y=0;y<this.ranges.length;y++){var v=this.ranges[y];if(Fn(c,v.from())>=0&&Fn(a,v.to())<=0)return y}return-1};var si=function(a,c){this.anchor=a,this.head=c};si.prototype.from=function(){return Gt(this.anchor,this.head)},si.prototype.to=function(){return D(this.anchor,this.head)},si.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function sr(a,c,y){var v=a&&a.options.selectionsMayTouch,w=c[y];c.sort(function(bn,mn){return Fn(bn.from(),mn.from())}),y=le(c,w);for(var H=1;H<c.length;H++){var te=c[H],be=c[H-1],ve=Fn(be.to(),te.from());if(v&&!te.empty()?ve>0:ve>=0){var We=Gt(be.from(),te.from()),zt=D(be.to(),te.to()),it=be.empty()?te.from()==te.head:be.from()==be.head;H<=y&&--y,c.splice(--H,2,new si(it?zt:We,it?We:zt))}}return new yi(c,y)}function Si(a,c){return new yi([new si(a,c||a)],0)}function Cr(a){return a.text?ft(a.from.line+a.text.length-1,Xn(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function ji(a,c){if(Fn(a,c.from)<0)return a;if(Fn(a,c.to)<=0)return Cr(c);var y=a.line+c.text.length-(c.to.line-c.from.line)-1,v=a.ch;return a.line==c.to.line&&(v+=Cr(c).ch-c.to.ch),ft(y,v)}function to(a,c){for(var y=[],v=0;v<a.sel.ranges.length;v++){var w=a.sel.ranges[v];y.push(new si(ji(w.anchor,c),ji(w.head,c)))}return sr(a.cm,y,a.sel.primIndex)}function oo(a,c,y){return a.line==c.line?ft(y.line,a.ch-c.ch+y.ch):ft(y.line+(a.line-c.line),a.ch)}function ei(a,c,y){for(var v=[],w=ft(a.first,0),H=w,te=0;te<c.length;te++){var be=c[te],ve=oo(be.from,w,H),We=oo(Cr(be),w,H);if(w=be.to,H=We,y=="around"){var zt=a.sel.ranges[te],it=Fn(zt.head,zt.anchor)<0;v[te]=new si(it?We:ve,it?ve:We)}else v[te]=new si(ve,ve)}return new yi(v,a.sel.primIndex)}function Zi(a){a.doc.mode=Xi(a.options,a.doc.modeOption),Kr(a)}function Kr(a){a.doc.iter(function(c){c.stateAfter&&(c.stateAfter=null),c.styles&&(c.styles=null)}),a.doc.modeFrontier=a.doc.highlightFrontier=a.doc.first,Dn(a,100),a.state.modeGen++,a.curOp&&go(a)}function Zr(a,c){return c.from.ch==0&&c.to.ch==0&&Xn(c.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function Qr(a,c,y,v){function w(Ir){return y?y[Ir]:null}function H(Ir,dr,Br){Ya(Ir,dr,Br,v),pi(Ir,"change",Ir,c)}function te(Ir,dr){for(var Br=[],ho=Ir;ho<dr;++ho)Br.push(new ca(We[ho],w(ho),v));return Br}var be=c.from,ve=c.to,We=c.text,zt=fn(a,be.line),it=fn(a,ve.line),bn=Xn(We),mn=w(We.length-1),li=ve.line-be.line;if(c.full)a.insert(0,te(0,We.length)),a.remove(We.length,a.size-We.length);else if(Zr(a,c)){var vi=te(0,We.length-1);H(it,it.text,mn),li&&a.remove(be.line,li),vi.length&&a.insert(be.line,vi)}else if(zt==it)if(We.length==1)H(zt,zt.text.slice(0,be.ch)+bn+zt.text.slice(ve.ch),mn);else{var Oi=te(1,We.length-1);Oi.push(new ca(bn+zt.text.slice(ve.ch),mn,v)),H(zt,zt.text.slice(0,be.ch)+We[0],w(0)),a.insert(be.line+1,Oi)}else if(We.length==1)H(zt,zt.text.slice(0,be.ch)+We[0]+it.text.slice(ve.ch),w(0)),a.remove(be.line+1,li);else{H(zt,zt.text.slice(0,be.ch)+We[0],w(0)),H(it,bn+it.text.slice(ve.ch),mn);var ir=te(1,We.length-1);li>1&&a.remove(be.line+1,li-1),a.insert(be.line+1,ir)}pi(a,"change",a,c)}function No(a,c,y){function v(w,H,te){if(w.linked)for(var be=0;be<w.linked.length;++be){var ve=w.linked[be];if(ve.doc!=H){var We=te&&ve.sharedHist;y&&!We||(c(ve.doc,We),v(ve.doc,w,We))}}}v(a,null,!0)}function tr(a,c){if(c.cm)throw new Error("This document is already in use.");a.doc=c,c.cm=a,Nr(a),Zi(a),Ai(a),a.options.lineWrapping||Bs(a),a.options.mode=c.modeOption,go(a)}function Ai(a){(a.doc.direction=="rtl"?Bt:Ce)(a.display.lineDiv,"CodeMirror-rtl")}function Gi(a){Nt(a,function(){Ai(a),go(a)})}function Mi(a){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=a||1}function jr(a,c){var y={from:qe(c.from),to:Cr(c),text:Sn(a,c.from,c.to)};return vn(a,y,c.from.line,c.to.line+1),No(a,function(v){return vn(v,y,c.from.line,c.to.line+1)},!0),y}function Wi(a){for(;a.length;){var c=Xn(a);if(c.ranges)a.pop();else break}}function Lr(a,c){if(c)return Wi(a.done),Xn(a.done);if(a.done.length&&!Xn(a.done).ranges)return Xn(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),Xn(a.done)}function so(a,c,y,v){var w=a.history;w.undone.length=0;var H=+new Date,te,be;if((w.lastOp==v||w.lastOrigin==c.origin&&c.origin&&(c.origin.charAt(0)=="+"&&w.lastModTime>H-(a.cm?a.cm.options.historyEventDelay:500)||c.origin.charAt(0)=="*"))&&(te=Lr(w,w.lastOp==v)))be=Xn(te.changes),Fn(c.from,c.to)==0&&Fn(c.from,be.to)==0?be.to=Cr(c):te.changes.push(jr(a,c));else{var ve=Xn(w.done);for((!ve||!ve.ranges)&&gs(a.sel,w.done),te={changes:[jr(a,c)],generation:w.generation},w.done.push(te);w.done.length>w.undoDepth;)w.done.shift(),w.done[0].ranges||w.done.shift()}w.done.push(y),w.generation=++w.maxGeneration,w.lastModTime=w.lastSelTime=H,w.lastOp=w.lastSelOp=v,w.lastOrigin=w.lastSelOrigin=c.origin,be||Ve(a,"historyAdded")}function Qt(a,c,y,v){var w=c.charAt(0);return w=="*"||w=="+"&&y.ranges.length==v.ranges.length&&y.somethingSelected()==v.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function ms(a,c,y,v){var w=a.history,H=v&&v.origin;y==w.lastSelOp||H&&w.lastSelOrigin==H&&(w.lastModTime==w.lastSelTime&&w.lastOrigin==H||Qt(a,H,Xn(w.done),c))?w.done[w.done.length-1]=c:gs(c,w.done),w.lastSelTime=+new Date,w.lastSelOrigin=H,w.lastSelOp=y,v&&v.clearRedo!==!1&&Wi(w.undone)}function gs(a,c){var y=Xn(c);y&&y.ranges&&y.equals(a)||c.push(a)}function vn(a,c,y,v){var w=c["spans_"+a.id],H=0;a.iter(Math.max(a.first,y),Math.min(a.first+a.size,v),function(te){te.markedSpans&&((w||(w=c["spans_"+a.id]={}))[H]=te.markedSpans),++H})}function co(a){if(!a)return null;for(var c,y=0;y<a.length;++y)a[y].marker.explicitlyCleared?c||(c=a.slice(0,y)):c&&c.push(a[y]);return c?c.length?c:null:a}function Ds(a,c){var y=c["spans_"+a.id];if(!y)return null;for(var v=[],w=0;w<c.text.length;++w)v.push(co(y[w]));return v}function ss(a,c){var y=Ds(a,c),v=Li(a,c);if(!y)return v;if(!v)return y;for(var w=0;w<y.length;++w){var H=y[w],te=v[w];if(H&&te)e:for(var be=0;be<te.length;++be){for(var ve=te[be],We=0;We<H.length;++We)if(H[We].marker==ve.marker)continue e;H.push(ve)}else te&&(y[w]=te)}return y}function Ps(a,c,y){for(var v=[],w=0;w<a.length;++w){var H=a[w];if(H.ranges){v.push(y?yi.prototype.deepCopy.call(H):H);continue}var te=H.changes,be=[];v.push({changes:be});for(var ve=0;ve<te.length;++ve){var We=te[ve],zt=void 0;if(be.push({from:We.from,to:We.to,text:We.text}),c)for(var it in We)(zt=it.match(/^spans_(\d+)$/))&&le(c,Number(zt[1]))>-1&&(Xn(be)[it]=We[it],delete We[it])}}return v}function zs(a,c,y,v){if(v){var w=a.anchor;if(y){var H=Fn(c,w)<0;H!=Fn(y,w)<0?(w=c,c=y):H!=Fn(c,y)<0&&(c=y)}return new si(w,c)}else return new si(y||c,c)}function Oo(a,c,y,v,w){w==null&&(w=a.cm&&(a.cm.display.shift||a.extend)),g(a,new yi([zs(a.sel.primary(),c,y,w)],0),v)}function So(a,c,y){for(var v=[],w=a.cm&&(a.cm.display.shift||a.extend),H=0;H<a.sel.ranges.length;H++)v[H]=zs(a.sel.ranges[H],c[H],null,w);var te=sr(a.cm,v,a.sel.primIndex);g(a,te,y)}function Ao(a,c,y,v){var w=a.sel.ranges.slice(0);w[c]=y,g(a,sr(a.cm,w,a.sel.primIndex),v)}function es(a,c,y,v){g(a,Si(c,y),v)}function Us(a,c,y){var v={ranges:c.ranges,update:function(w){this.ranges=[];for(var H=0;H<w.length;H++)this.ranges[H]=new si(xt(a,w[H].anchor),xt(a,w[H].head))},origin:y&&y.origin};return Ve(a,"beforeSelectionChange",a,v),a.cm&&Ve(a.cm,"beforeSelectionChange",a.cm,v),v.ranges!=c.ranges?sr(a.cm,v.ranges,v.ranges.length-1):c}function h(a,c,y){var v=a.history.done,w=Xn(v);w&&w.ranges?(v[v.length-1]=c,K(a,c,y)):g(a,c,y)}function g(a,c,y){K(a,c,y),ms(a,a.sel,a.cm?a.cm.curOp.id:NaN,y)}function K(a,c,y){(qt(a,"beforeSelectionChange")||a.cm&&qt(a.cm,"beforeSelectionChange"))&&(c=Us(a,c,y));var v=y&&y.bias||(Fn(c.primary().head,a.sel.primary().head)<0?-1:1);Je(a,jn(a,c,v,!0)),!(y&&y.scroll===!1)&&a.cm&&Xa(a.cm)}function Je(a,c){c.equals(a.sel)||(a.sel=c,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,Xt(a.cm)),pi(a,"cursorActivity",a))}function un(a){Je(a,jn(a,a.sel,null,!1))}function jn(a,c,y,v){for(var w,H=0;H<c.ranges.length;H++){var te=c.ranges[H],be=c.ranges.length==a.sel.ranges.length&&a.sel.ranges[H],ve=gr(a,te.anchor,be&&be.anchor,y,v),We=gr(a,te.head,be&&be.head,y,v);(w||ve!=te.anchor||We!=te.head)&&(w||(w=c.ranges.slice(0,H)),w[H]=new si(ve,We))}return w?sr(a.cm,w,c.primIndex):c}function bi(a,c,y,v,w){var H=fn(a,c.line);if(H.markedSpans)for(var te=0;te<H.markedSpans.length;++te){var be=H.markedSpans[te],ve=be.marker,We="selectLeft"in ve?!ve.selectLeft:ve.inclusiveLeft,zt="selectRight"in ve?!ve.selectRight:ve.inclusiveRight;if((be.from==null||(We?be.from<=c.ch:be.from<c.ch))&&(be.to==null||(zt?be.to>=c.ch:be.to>c.ch))){if(w&&(Ve(ve,"beforeCursorEnter"),ve.explicitlyCleared))if(H.markedSpans){--te;continue}else break;if(!ve.atomic)continue;if(y){var it=ve.find(v<0?1:-1),bn=void 0;if((v<0?zt:We)&&(it=Dr(a,it,-v,it&&it.line==c.line?H:null)),it&&it.line==c.line&&(bn=Fn(it,y))&&(v<0?bn<0:bn>0))return bi(a,it,c,v,w)}var mn=ve.find(v<0?-1:1);return(v<0?We:zt)&&(mn=Dr(a,mn,v,mn.line==c.line?H:null)),mn?bi(a,mn,c,v,w):null}}return c}function gr(a,c,y,v,w){var H=v||1,te=bi(a,c,y,H,w)||!w&&bi(a,c,y,H,!0)||bi(a,c,y,-H,w)||!w&&bi(a,c,y,-H,!0);return te||(a.cantEdit=!0,ft(a.first,0))}function Dr(a,c,y,v){return y<0&&c.ch==0?c.line>a.first?xt(a,ft(c.line-1)):null:y>0&&c.ch==(v||fn(a,c.line)).text.length?c.line<a.first+a.size-1?ft(c.line+1,0):null:new ft(c.line,c.ch+y)}function Gr(a){a.setSelection(ft(a.firstLine(),0),ft(a.lastLine()),yt)}function Is(a,c,y){var v={canceled:!1,from:c.from,to:c.to,text:c.text,origin:c.origin,cancel:function(){return v.canceled=!0}};return y&&(v.update=function(w,H,te,be){w&&(v.from=xt(a,w)),H&&(v.to=xt(a,H)),te&&(v.text=te),be!==void 0&&(v.origin=be)}),Ve(a,"beforeChange",a,v),a.cm&&Ve(a.cm,"beforeChange",a.cm,v),v.canceled?(a.cm&&(a.cm.curOp.updateInput=2),null):{from:v.from,to:v.to,text:v.text,origin:v.origin}}function vs(a,c,y){if(a.cm){if(!a.cm.curOp)return fe(a.cm,vs)(a,c,y);if(a.cm.state.suppressEdits)return}if(!((qt(a,"beforeChange")||a.cm&&qt(a.cm,"beforeChange"))&&(c=Is(a,c,!0),!c))){var v=Ki&&!y&&Or(a,c.from,c.to);if(v)for(var w=v.length-1;w>=0;--w)ni(a,{from:v[w].from,to:v[w].to,text:w?[""]:c.text,origin:c.origin});else ni(a,c)}}function ni(a,c){if(!(c.text.length==1&&c.text[0]==""&&Fn(c.from,c.to)==0)){var y=to(a,c);so(a,c,y,a.cm?a.cm.curOp.id:NaN),ko(a,c,y,Li(a,c));var v=[];No(a,function(w,H){!H&&le(v,w.history)==-1&&(as(w.history,c),v.push(w.history)),ko(w,c,null,Li(w,c))})}}function nr(a,c,y){var v=a.cm&&a.cm.state.suppressEdits;if(!(v&&!y)){for(var w=a.history,H,te=a.sel,be=c=="undo"?w.done:w.undone,ve=c=="undo"?w.undone:w.done,We=0;We<be.length&&(H=be[We],!(y?H.ranges&&!H.equals(a.sel):!H.ranges));We++);if(We!=be.length){for(w.lastOrigin=w.lastSelOrigin=null;;)if(H=be.pop(),H.ranges){if(gs(H,ve),y&&!H.equals(a.sel)){g(a,H,{clearRedo:!1});return}te=H}else if(v){be.push(H);return}else break;var zt=[];gs(te,ve),ve.push({changes:zt,generation:w.generation}),w.generation=H.generation||++w.maxGeneration;for(var it=qt(a,"beforeChange")||a.cm&&qt(a.cm,"beforeChange"),bn=function(vi){var Oi=H.changes[vi];if(Oi.origin=c,it&&!Is(a,Oi,!1))return be.length=0,{};zt.push(jr(a,Oi));var ir=vi?to(a,Oi):Xn(be);ko(a,Oi,ir,ss(a,Oi)),!vi&&a.cm&&a.cm.scrollIntoView({from:Oi.from,to:Cr(Oi)});var Ir=[];No(a,function(dr,Br){!Br&&le(Ir,dr.history)==-1&&(as(dr.history,Oi),Ir.push(dr.history)),ko(dr,Oi,null,ss(dr,Oi))})},mn=H.changes.length-1;mn>=0;--mn){var li=bn(mn);if(li)return li.v}}}}function mo(a,c){if(c!=0&&(a.first+=c,a.sel=new yi(Tn(a.sel.ranges,function(w){return new si(ft(w.anchor.line+c,w.anchor.ch),ft(w.head.line+c,w.head.ch))}),a.sel.primIndex),a.cm)){go(a.cm,a.first,a.first-c,c);for(var y=a.cm.display,v=y.viewFrom;v<y.viewTo;v++)ro(a.cm,v,"gutter")}}function ko(a,c,y,v){if(a.cm&&!a.cm.curOp)return fe(a.cm,ko)(a,c,y,v);if(c.to.line<a.first){mo(a,c.text.length-1-(c.to.line-c.from.line));return}if(!(c.from.line>a.lastLine())){if(c.from.line<a.first){var w=c.text.length-1-(a.first-c.from.line);mo(a,w),c={from:ft(a.first,0),to:ft(c.to.line+w,c.to.ch),text:[Xn(c.text)],origin:c.origin}}var H=a.lastLine();c.to.line>H&&(c={from:c.from,to:ft(H,fn(a,H).text.length),text:[c.text[0]],origin:c.origin}),c.removed=Sn(a,c.from,c.to),y||(y=to(a,c)),a.cm?ts(a.cm,c,v):Qr(a,c,v),K(a,y,yt),a.cantEdit&&gr(a,ft(a.firstLine(),0))&&(a.cantEdit=!1)}}function ts(a,c,y){var v=a.doc,w=a.display,H=c.from,te=c.to,be=!1,ve=H.line;a.options.lineWrapping||(ve=pt(Hi(fn(v,H.line))),v.iter(ve,te.line+1,function(mn){if(mn==w.maxLine)return be=!0,!0})),v.sel.contains(c.from,c.to)>-1&&Xt(a),Qr(v,c,y,Cs(a)),a.options.lineWrapping||(v.iter(ve,H.line+c.text.length,function(mn){var li=cs(mn);li>w.maxLineLength&&(w.maxLine=mn,w.maxLineLength=li,w.maxLineChanged=!0,be=!1)}),be&&(a.curOp.updateMaxLine=!0)),Pn(v,H.line),Dn(a,400);var We=c.text.length-(te.line-H.line)-1;c.full?go(a):H.line==te.line&&c.text.length==1&&!Zr(a.doc,c)?ro(a,H.line,"text"):go(a,H.line,te.line+1,We);var zt=qt(a,"changes"),it=qt(a,"change");if(it||zt){var bn={from:H,to:te,text:c.text,removed:c.removed,origin:c.origin};it&&pi(a,"change",a,bn),zt&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(bn)}a.display.selForContextMenu=null}function Sa(a,c,y,v,w){var H;v||(v=y),Fn(v,y)<0&&(H=[v,y],y=H[0],v=H[1]),typeof c=="string"&&(c=a.splitLines(c)),vs(a,{from:y,to:v,text:c,origin:w})}function pa(a,c,y,v){y<a.line?a.line+=v:c<a.line&&(a.line=c,a.ch=0)}function yo(a,c,y,v){for(var w=0;w<a.length;++w){var H=a[w],te=!0;if(H.ranges){H.copied||(H=a[w]=H.deepCopy(),H.copied=!0);for(var be=0;be<H.ranges.length;be++)pa(H.ranges[be].anchor,c,y,v),pa(H.ranges[be].head,c,y,v);continue}for(var ve=0;ve<H.changes.length;++ve){var We=H.changes[ve];if(y<We.from.line)We.from=ft(We.from.line+v,We.from.ch),We.to=ft(We.to.line+v,We.to.ch);else if(c<=We.to.line){te=!1;break}}te||(a.splice(0,w+1),w=0)}}function as(a,c){var y=c.from.line,v=c.to.line,w=c.text.length-(v-y)-1;yo(a.done,y,v,w),yo(a.undone,y,v,w)}function Hs(a,c,y,v){var w=c,H=c;return typeof c=="number"?H=fn(a,dn(a,c)):w=pt(c),w==null?null:(v(H,w)&&a.cm&&ro(a.cm,w,y),H)}function T(a){this.lines=a,this.parent=null;for(var c=0,y=0;y<a.length;++y)a[y].parent=this,c+=a[y].height;this.height=c}T.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,c){for(var y=a,v=a+c;y<v;++y){var w=this.lines[y];this.height-=w.height,ra(w),pi(w,"delete")}this.lines.splice(a,c)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,c,y){this.height+=y,this.lines=this.lines.slice(0,a).concat(c).concat(this.lines.slice(a));for(var v=0;v<c.length;++v)c[v].parent=this},iterN:function(a,c,y){for(var v=a+c;a<v;++a)if(y(this.lines[a]))return!0}};function m(a){this.children=a;for(var c=0,y=0,v=0;v<a.length;++v){var w=a[v];c+=w.chunkSize(),y+=w.height,w.parent=this}this.size=c,this.height=y,this.parent=null}m.prototype={chunkSize:function(){return this.size},removeInner:function(a,c){this.size-=c;for(var y=0;y<this.children.length;++y){var v=this.children[y],w=v.chunkSize();if(a<w){var H=Math.min(c,w-a),te=v.height;if(v.removeInner(a,H),this.height-=te-v.height,w==H&&(this.children.splice(y--,1),v.parent=null),(c-=H)==0)break;a=0}else a-=w}if(this.size-c<25&&(this.children.length>1||!(this.children[0]instanceof T))){var be=[];this.collapse(be),this.children=[new T(be)],this.children[0].parent=this}},collapse:function(a){for(var c=0;c<this.children.length;++c)this.children[c].collapse(a)},insertInner:function(a,c,y){this.size+=c.length,this.height+=y;for(var v=0;v<this.children.length;++v){var w=this.children[v],H=w.chunkSize();if(a<=H){if(w.insertInner(a,c,y),w.lines&&w.lines.length>50){for(var te=w.lines.length%25+25,be=te;be<w.lines.length;){var ve=new T(w.lines.slice(be,be+=25));w.height-=ve.height,this.children.splice(++v,0,ve),ve.parent=this}w.lines=w.lines.slice(0,te),this.maybeSpill()}break}a-=H}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var c=a.children.splice(a.children.length-5,5),y=new m(c);if(a.parent){a.size-=y.size,a.height-=y.height;var w=le(a.parent.children,a);a.parent.children.splice(w+1,0,y)}else{var v=new m(a.children);v.parent=a,a.children=[v,y],a=v}y.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,c,y){for(var v=0;v<this.children.length;++v){var w=this.children[v],H=w.chunkSize();if(a<H){var te=Math.min(c,H-a);if(w.iterN(a,te,y))return!0;if((c-=te)==0)break;a=0}else a-=H}}};var S=function(a,c,y){if(y)for(var v in y)y.hasOwnProperty(v)&&(this[v]=y[v]);this.doc=a,this.node=c};S.prototype.clear=function(){var a=this.doc.cm,c=this.line.widgets,y=this.line,v=pt(y);if(!(v==null||!c)){for(var w=0;w<c.length;++w)c[w]==this&&c.splice(w--,1);c.length||(y.widgets=null);var H=La(this);Kn(y,Math.max(0,y.height-H)),a&&(Nt(a,function(){R(a,y,-H),ro(a,v,"widget")}),pi(a,"lineWidgetCleared",a,this,v))}},S.prototype.changed=function(){var a=this,c=this.height,y=this.doc.cm,v=this.line;this.height=null;var w=La(this)-c;w&&(mi(this.doc,v)||Kn(v,v.height+w),y&&Nt(y,function(){y.curOp.forceUpdate=!0,R(y,v,w),pi(y,"lineWidgetChanged",y,a,pt(v))}))},He(S);function R(a,c,y){fs(c)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&_u(a,y)}function Y(a,c,y,v){var w=new S(a,y,v),H=a.cm;return H&&w.noHScroll&&(H.display.alignWidgets=!0),Hs(a,c,"widget",function(te){var be=te.widgets||(te.widgets=[]);if(w.insertAt==null?be.push(w):be.splice(Math.min(be.length-1,Math.max(0,w.insertAt)),0,w),w.line=te,H&&!mi(a,te)){var ve=fs(te)<a.scrollTop;Kn(te,te.height+La(w)),ve&&_u(H,w.height),H.curOp.forceUpdate=!0}return!0}),H&&pi(H,"lineWidgetAdded",H,w,typeof c=="number"?c:pt(c)),w}var re=0,Z=function(a,c){this.lines=[],this.type=c,this.doc=a,this.id=++re};Z.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,c=a&&!a.curOp;if(c&&fa(a),qt(this,"clear")){var y=this.find();y&&pi(this,"clear",y.from,y.to)}for(var v=null,w=null,H=0;H<this.lines.length;++H){var te=this.lines[H],be=io(te.markedSpans,this);a&&!this.collapsed?ro(a,pt(te),"text"):a&&(be.to!=null&&(w=pt(te)),be.from!=null&&(v=pt(te))),te.markedSpans=It(te.markedSpans,be),be.from==null&&this.collapsed&&!mi(this.doc,te)&&a&&Kn(te,Pl(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var ve=0;ve<this.lines.length;++ve){var We=Hi(this.lines[ve]),zt=cs(We);zt>a.display.maxLineLength&&(a.display.maxLine=We,a.display.maxLineLength=zt,a.display.maxLineChanged=!0)}v!=null&&a&&this.collapsed&&go(a,v,w+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&un(a.doc)),a&&pi(a,"markerCleared",a,this,v,w),c&&Vl(a),this.parent&&this.parent.clear()}},Z.prototype.find=function(a,c){a==null&&this.type=="bookmark"&&(a=1);for(var y,v,w=0;w<this.lines.length;++w){var H=this.lines[w],te=io(H.markedSpans,this);if(te.from!=null&&(y=ft(c?H:pt(H),te.from),a==-1))return y;if(te.to!=null&&(v=ft(c?H:pt(H),te.to),a==1))return v}return y&&{from:y,to:v}},Z.prototype.changed=function(){var a=this,c=this.find(-1,!0),y=this,v=this.doc.cm;!c||!v||Nt(v,function(){var w=c.line,H=pt(c.line),te=ea(v,H);if(te&&(hs(te),v.curOp.selectionChanged=v.curOp.forceUpdate=!0),v.curOp.updateMaxLine=!0,!mi(y.doc,w)&&y.height!=null){var be=y.height;y.height=null;var ve=La(y)-be;ve&&Kn(w,w.height+ve)}pi(v,"markerChanged",v,a)})},Z.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var c=this.doc.cm.curOp;(!c.maybeHiddenMarkers||le(c.maybeHiddenMarkers,this)==-1)&&(c.maybeUnhiddenMarkers||(c.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},Z.prototype.detachLine=function(a){if(this.lines.splice(le(this.lines,a),1),!this.lines.length&&this.doc.cm){var c=this.doc.cm.curOp;(c.maybeHiddenMarkers||(c.maybeHiddenMarkers=[])).push(this)}},He(Z);function st(a,c,y,v,w){if(v&&v.shared)return pn(a,c,y,v,w);if(a.cm&&!a.cm.curOp)return fe(a.cm,st)(a,c,y,v,w);var H=new Z(a,w),te=Fn(c,y);if(v&&wn(v,H,!1),te>0||te==0&&H.clearWhenEmpty!==!1)return H;if(H.replacedWith&&(H.collapsed=!0,H.widgetNode=nt("span",[H.replacedWith],"CodeMirror-widget"),v.handleMouseEvents||H.widgetNode.setAttribute("cm-ignore-events","true"),v.insertLeft&&(H.widgetNode.insertLeft=!0)),H.collapsed){if(Vi(a,c.line,c,y,H)||c.line!=y.line&&Vi(a,y.line,c,y,H))throw new Error("Inserting collapsed marker partially overlapping an existing one");Wt()}H.addToHistory&&so(a,{from:c,to:y,origin:"markText"},a.sel,NaN);var be=c.line,ve=a.cm,We;if(a.iter(be,y.line+1,function(it){ve&&H.collapsed&&!ve.options.lineWrapping&&Hi(it)==ve.display.maxLine&&(We=!0),H.collapsed&&be!=c.line&&Kn(it,0),Mo(it,new Yi(H,be==c.line?c.ch:null,be==y.line?y.ch:null)),++be}),H.collapsed&&a.iter(c.line,y.line+1,function(it){mi(a,it)&&Kn(it,0)}),H.clearOnEnter&&Ot(H,"beforeCursorEnter",function(){return H.clear()}),H.readOnly&&(Ii(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),H.collapsed&&(H.id=++re,H.atomic=!0),ve){if(We&&(ve.curOp.updateMaxLine=!0),H.collapsed)go(ve,c.line,y.line+1);else if(H.className||H.startStyle||H.endStyle||H.css||H.attributes||H.title)for(var zt=c.line;zt<=y.line;zt++)ro(ve,zt,"text");H.atomic&&un(ve.doc),pi(ve,"markerAdded",ve,H)}return H}var dt=function(a,c){this.markers=a,this.primary=c;for(var y=0;y<a.length;++y)a[y].parent=this};dt.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var a=0;a<this.markers.length;++a)this.markers[a].clear();pi(this,"clear")}},dt.prototype.find=function(a,c){return this.primary.find(a,c)},He(dt);function pn(a,c,y,v,w){v=wn(v),v.shared=!1;var H=[st(a,c,y,v,w)],te=H[0],be=v.widgetNode;return No(a,function(ve){be&&(v.widgetNode=be.cloneNode(!0)),H.push(st(ve,xt(ve,c),xt(ve,y),v,w));for(var We=0;We<ve.linked.length;++We)if(ve.linked[We].isParent)return;te=Xn(H)}),new dt(H,te)}function Ln(a){return a.findMarks(ft(a.first,0),a.clipPos(ft(a.lastLine())),function(c){return c.parent})}function Vn(a,c){for(var y=0;y<c.length;y++){var v=c[y],w=v.find(),H=a.clipPos(w.from),te=a.clipPos(w.to);if(Fn(H,te)){var be=st(a,H,te,v.primary,v.primary.type);v.markers.push(be),be.parent=v}}}function wi(a){for(var c=function(v){var w=a[v],H=[w.primary.doc];No(w.primary.doc,function(ve){return H.push(ve)});for(var te=0;te<w.markers.length;te++){var be=w.markers[te];le(H,be.doc)==-1&&(be.parent=null,w.markers.splice(te--,1))}},y=0;y<a.length;y++)c(y)}var Ti=0,Pi=function(a,c,y,v,w){if(!(this instanceof Pi))return new Pi(a,c,y,v,w);y==null&&(y=0),m.call(this,[new T([new ca("",null)])]),this.first=y,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=y;var H=ft(y,0);this.sel=Si(H),this.history=new Mi(null),this.id=++Ti,this.modeOption=c,this.lineSep=v,this.direction=w=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),Qr(this,{from:H,to:H,text:a}),g(this,Si(H),yt)};Pi.prototype=P(m.prototype,{constructor:Pi,iter:function(a,c,y){y?this.iterN(a-this.first,c-a,y):this.iterN(this.first,this.first+this.size,a)},insert:function(a,c){for(var y=0,v=0;v<c.length;++v)y+=c[v].height;this.insertInner(a-this.first,c,y)},remove:function(a,c){this.removeInner(a-this.first,c)},getValue:function(a){var c=ti(this,this.first,this.first+this.size);return a===!1?c:c.join(a||this.lineSeparator())},setValue:en(function(a){var c=ft(this.first,0),y=this.first+this.size-1;vs(this,{from:c,to:ft(y,fn(this,y).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&Qa(this.cm,0,0),g(this,Si(c),yt)}),replaceRange:function(a,c,y,v){c=xt(this,c),y=y?xt(this,y):c,Sa(this,a,c,y,v)},getRange:function(a,c,y){var v=Sn(this,xt(this,a),xt(this,c));return y===!1?v:v.join(y||this.lineSeparator())},getLine:function(a){var c=this.getLineHandle(a);return c&&c.text},getLineHandle:function(a){if(tn(this,a))return fn(this,a)},getLineNumber:function(a){return pt(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=fn(this,a)),Hi(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return xt(this,a)},getCursor:function(a){var c=this.sel.primary(),y;return a==null||a=="head"?y=c.head:a=="anchor"?y=c.anchor:a=="end"||a=="to"||a===!1?y=c.to():y=c.from(),y},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:en(function(a,c,y){es(this,xt(this,typeof a=="number"?ft(a,c||0):a),null,y)}),setSelection:en(function(a,c,y){es(this,xt(this,a),xt(this,c||a),y)}),extendSelection:en(function(a,c,y){Oo(this,xt(this,a),c&&xt(this,c),y)}),extendSelections:en(function(a,c){So(this,Mn(this,a),c)}),extendSelectionsBy:en(function(a,c){var y=Tn(this.sel.ranges,a);So(this,Mn(this,y),c)}),setSelections:en(function(a,c,y){if(a.length){for(var v=[],w=0;w<a.length;w++)v[w]=new si(xt(this,a[w].anchor),xt(this,a[w].head));c==null&&(c=Math.min(a.length-1,this.sel.primIndex)),g(this,sr(this.cm,v,c),y)}}),addSelection:en(function(a,c,y){var v=this.sel.ranges.slice(0);v.push(new si(xt(this,a),xt(this,c||a))),g(this,sr(this.cm,v,v.length-1),y)}),getSelection:function(a){for(var c=this.sel.ranges,y,v=0;v<c.length;v++){var w=Sn(this,c[v].from(),c[v].to());y=y?y.concat(w):w}return a===!1?y:y.join(a||this.lineSeparator())},getSelections:function(a){for(var c=[],y=this.sel.ranges,v=0;v<y.length;v++){var w=Sn(this,y[v].from(),y[v].to());a!==!1&&(w=w.join(a||this.lineSeparator())),c[v]=w}return c},replaceSelection:function(a,c,y){for(var v=[],w=0;w<this.sel.ranges.length;w++)v[w]=a;this.replaceSelections(v,c,y||"+input")},replaceSelections:en(function(a,c,y){for(var v=[],w=this.sel,H=0;H<w.ranges.length;H++){var te=w.ranges[H];v[H]={from:te.from(),to:te.to(),text:this.splitLines(a[H]),origin:y}}for(var be=c&&c!="end"&&ei(this,v,c),ve=v.length-1;ve>=0;ve--)vs(this,v[ve]);be?h(this,be):this.cm&&Xa(this.cm)}),undo:en(function(){nr(this,"undo")}),redo:en(function(){nr(this,"redo")}),undoSelection:en(function(){nr(this,"undo",!0)}),redoSelection:en(function(){nr(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,c=0,y=0,v=0;v<a.done.length;v++)a.done[v].ranges||++c;for(var w=0;w<a.undone.length;w++)a.undone[w].ranges||++y;return{undo:c,redo:y}},clearHistory:function(){var a=this;this.history=new Mi(this.history.maxGeneration),No(this,function(c){return c.history=a.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(a){return a&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(a){return this.history.generation==(a||this.cleanGeneration)},getHistory:function(){return{done:Ps(this.history.done),undone:Ps(this.history.undone)}},setHistory:function(a){var c=this.history=new Mi(this.history.maxGeneration);c.done=Ps(a.done.slice(0),null,!0),c.undone=Ps(a.undone.slice(0),null,!0)},setGutterMarker:en(function(a,c,y){return Hs(this,a,"gutter",function(v){var w=v.gutterMarkers||(v.gutterMarkers={});return w[c]=y,!y&&N(w)&&(v.gutterMarkers=null),!0})}),clearGutter:en(function(a){var c=this;this.iter(function(y){y.gutterMarkers&&y.gutterMarkers[a]&&Hs(c,y,"gutter",function(){return y.gutterMarkers[a]=null,N(y.gutterMarkers)&&(y.gutterMarkers=null),!0})})}),lineInfo:function(a){var c;if(typeof a=="number"){if(!tn(this,a)||(c=a,a=fn(this,a),!a))return null}else if(c=pt(a),c==null)return null;return{line:c,handle:a,text:a.text,gutterMarkers:a.gutterMarkers,textClass:a.textClass,bgClass:a.bgClass,wrapClass:a.wrapClass,widgets:a.widgets}},addLineClass:en(function(a,c,y){return Hs(this,a,c=="gutter"?"gutter":"class",function(v){var w=c=="text"?"textClass":c=="background"?"bgClass":c=="gutter"?"gutterClass":"wrapClass";if(!v[w])v[w]=y;else{if(ee(y).test(v[w]))return!1;v[w]+=" "+y}return!0})}),removeLineClass:en(function(a,c,y){return Hs(this,a,c=="gutter"?"gutter":"class",function(v){var w=c=="text"?"textClass":c=="background"?"bgClass":c=="gutter"?"gutterClass":"wrapClass",H=v[w];if(H)if(y==null)v[w]=null;else{var te=H.match(ee(y));if(!te)return!1;var be=te.index+te[0].length;v[w]=H.slice(0,te.index)+(!te.index||be==H.length?"":" ")+H.slice(be)||null}else return!1;return!0})}),addLineWidget:en(function(a,c,y){return Y(this,a,c,y)}),removeLineWidget:function(a){a.clear()},markText:function(a,c,y){return st(this,xt(this,a),xt(this,c),y,y&&y.type||"range")},setBookmark:function(a,c){var y={replacedWith:c&&(c.nodeType==null?c.widget:c),insertLeft:c&&c.insertLeft,clearWhenEmpty:!1,shared:c&&c.shared,handleMouseEvents:c&&c.handleMouseEvents};return a=xt(this,a),st(this,a,a,y,"bookmark")},findMarksAt:function(a){a=xt(this,a);var c=[],y=fn(this,a.line).markedSpans;if(y)for(var v=0;v<y.length;++v){var w=y[v];(w.from==null||w.from<=a.ch)&&(w.to==null||w.to>=a.ch)&&c.push(w.marker.parent||w.marker)}return c},findMarks:function(a,c,y){a=xt(this,a),c=xt(this,c);var v=[],w=a.line;return this.iter(a.line,c.line+1,function(H){var te=H.markedSpans;if(te)for(var be=0;be<te.length;be++){var ve=te[be];!(ve.to!=null&&w==a.line&&a.ch>=ve.to||ve.from==null&&w!=a.line||ve.from!=null&&w==c.line&&ve.from>=c.ch)&&(!y||y(ve.marker))&&v.push(ve.marker.parent||ve.marker)}++w}),v},getAllMarks:function(){var a=[];return this.iter(function(c){var y=c.markedSpans;if(y)for(var v=0;v<y.length;++v)y[v].from!=null&&a.push(y[v].marker)}),a},posFromIndex:function(a){var c,y=this.first,v=this.lineSeparator().length;return this.iter(function(w){var H=w.text.length+v;if(H>a)return c=a,!0;a-=H,++y}),xt(this,ft(y,c))},indexFromPos:function(a){a=xt(this,a);var c=a.ch;if(a.line<this.first||a.ch<0)return 0;var y=this.lineSeparator().length;return this.iter(this.first,a.line,function(v){c+=v.text.length+y}),c},copy:function(a){var c=new Pi(ti(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,a&&(c.history.undoDepth=this.history.undoDepth,c.setHistory(this.getHistory())),c},linkedDoc:function(a){a||(a={});var c=this.first,y=this.first+this.size;a.from!=null&&a.from>c&&(c=a.from),a.to!=null&&a.to<y&&(y=a.to);var v=new Pi(ti(this,c,y),a.mode||this.modeOption,c,this.lineSep,this.direction);return a.sharedHist&&(v.history=this.history),(this.linked||(this.linked=[])).push({doc:v,sharedHist:a.sharedHist}),v.linked=[{doc:this,isParent:!0,sharedHist:a.sharedHist}],Vn(v,Ln(this)),v},unlinkDoc:function(a){if(a instanceof xs&&(a=a.doc),this.linked)for(var c=0;c<this.linked.length;++c){var y=this.linked[c];if(y.doc==a){this.linked.splice(c,1),a.unlinkDoc(this),wi(Ln(this));break}}if(a.history==this.history){var v=[a.id];No(a,function(w){return v.push(w.id)},!0),a.history=new Mi(null),a.history.done=Ps(this.history.done,v),a.history.undone=Ps(this.history.undone,v)}},iterLinkedDocs:function(a){No(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):rr(a)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:en(function(a){a!="rtl"&&(a="ltr"),a!=this.direction&&(this.direction=a,this.iter(function(c){return c.order=null}),this.cm&&Gi(this.cm))})}),Pi.prototype.eachLine=Pi.prototype.iter;var vr=0;function Pr(a){var c=this;if(Ho(c),!(Pt(c,a)||Ra(c.display,a))){Rn(a),W&&(vr=+new Date);var y=Da(c,a,!0),v=a.dataTransfer.files;if(!(!y||c.isReadOnly()))if(v&&v.length&&window.FileReader&&window.File)for(var w=v.length,H=Array(w),te=0,be=function(){++te==w&&fe(c,function(){y=xt(c.doc,y);var mn={from:y,to:y,text:c.doc.splitLines(H.filter(function(li){return li!=null}).join(c.doc.lineSeparator())),origin:"paste"};vs(c.doc,mn),h(c.doc,Si(xt(c.doc,y),xt(c.doc,Cr(mn))))})()},ve=function(mn,li){if(c.options.allowDropFileTypes&&le(c.options.allowDropFileTypes,mn.type)==-1){be();return}var vi=new FileReader;vi.onerror=function(){return be()},vi.onload=function(){var Oi=vi.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Oi)){be();return}H[li]=Oi,be()},vi.readAsText(mn)},We=0;We<v.length;We++)ve(v[We],We);else{if(c.state.draggingText&&c.doc.sel.contains(y)>-1){c.state.draggingText(a),setTimeout(function(){return c.display.input.focus()},20);return}try{var zt=a.dataTransfer.getData("Text");if(zt){var it;if(c.state.draggingText&&!c.state.draggingText.copy&&(it=c.listSelections()),K(c.doc,Si(y,y)),it)for(var bn=0;bn<it.length;++bn)Sa(c.doc,"",it[bn].anchor,it[bn].head,"drag");c.replaceSelection(zt,"around","paste"),c.display.input.focus()}}catch(mn){}}}}function Fr(a,c){if(W&&(!a.state.draggingText||+new Date-vr<100)){Ci(c);return}if(!(Pt(a,c)||Ra(a.display,c))&&(c.dataTransfer.setData("Text",a.getSelection()),c.dataTransfer.effectAllowed="copyMove",c.dataTransfer.setDragImage&&!Pe)){var y=Ke("img",null,null,"position: fixed; left: 0; top: 0;");y.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ne&&(y.width=y.height=1,a.display.wrapper.appendChild(y),y._top=y.offsetTop),c.dataTransfer.setDragImage(y,0,0),ne&&y.parentNode.removeChild(y)}}function Eo(a,c){var y=Da(a,c);if(y){var v=document.createDocumentFragment();Do(a,y,v),a.display.dragCursor||(a.display.dragCursor=Ke("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),Le(a.display.dragCursor,v)}}function Ho(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function Ms(a){if(document.getElementsByClassName){for(var c=document.getElementsByClassName("CodeMirror"),y=[],v=0;v<c.length;v++){var w=c[v].CodeMirror;w&&y.push(w)}y.length&&y[0].operation(function(){for(var H=0;H<y.length;H++)a(y[H])})}}var Jo=!1;function $o(){Jo||(ds(),Jo=!0)}function ds(){var a;Ot(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,Ms(oa)},100))}),Ot(window,"blur",function(){return Ms(hu)})}function oa(a){var c=a.display;c.cachedCharWidth=c.cachedTextHeight=c.cachedPaddingH=null,c.scrollbarsClipped=!1,a.setSize()}for(var ls={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"},yl=0;yl<10;yl++)ls[yl+48]=ls[yl+96]=String(yl);for(var _a=65;_a<=90;_a++)ls[_a]=String.fromCharCode(_a);for(var sa=1;sa<=12;sa++)ls[sa+111]=ls[sa+63235]="F"+sa;var Aa={};Aa.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"},Aa.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"},Aa.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"},Aa.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"]},Aa.default=Fe?Aa.macDefault:Aa.pcDefault;function ll(a){var c=a.split(/-(?!$)/);a=c[c.length-1];for(var y,v,w,H,te=0;te<c.length-1;te++){var be=c[te];if(/^(cmd|meta|m)$/i.test(be))H=!0;else if(/^a(lt)?$/i.test(be))y=!0;else if(/^(c|ctrl|control)$/i.test(be))v=!0;else if(/^s(hift)?$/i.test(be))w=!0;else throw new Error("Unrecognized modifier name: "+be)}return y&&(a="Alt-"+a),v&&(a="Ctrl-"+a),H&&(a="Cmd-"+a),w&&(a="Shift-"+a),a}function Kl(a){var c={};for(var y in a)if(a.hasOwnProperty(y)){var v=a[y];if(/^(name|fallthrough|(de|at)tach)$/.test(y))continue;if(v=="..."){delete a[y];continue}for(var w=Tn(y.split(" "),ll),H=0;H<w.length;H++){var te=void 0,be=void 0;H==w.length-1?(be=w.join(" "),te=v):(be=w.slice(0,H+1).join(" "),te="...");var ve=c[be];if(!ve)c[be]=te;else if(ve!=te)throw new Error("Inconsistent bindings for "+be)}delete a[y]}for(var We in c)a[We]=c[We];return a}function Fa(a,c,y,v){c=Fl(c);var w=c.call?c.call(a,v):c[a];if(w===!1)return"nothing";if(w==="...")return"multi";if(w!=null&&y(w))return"handled";if(c.fallthrough){if(Object.prototype.toString.call(c.fallthrough)!="[object Array]")return Fa(a,c.fallthrough,y,v);for(var H=0;H<c.fallthrough.length;H++){var te=Fa(a,c.fallthrough[H],y,v);if(te)return te}}}function Au(a){var c=typeof a=="string"?a:ls[a.keyCode];return c=="Ctrl"||c=="Alt"||c=="Shift"||c=="Mod"}function ec(a,c,y){var v=a;return c.altKey&&v!="Alt"&&(a="Alt-"+a),(ge?c.metaKey:c.ctrlKey)&&v!="Ctrl"&&(a="Ctrl-"+a),(ge?c.ctrlKey:c.metaKey)&&v!="Mod"&&(a="Cmd-"+a),!y&&c.shiftKey&&v!="Shift"&&(a="Shift-"+a),a}function Pc(a,c){if(ne&&a.keyCode==34&&a.char)return!1;var y=ls[a.keyCode];return y==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(y=a.code),ec(y,a,c))}function Fl(a){return typeof a=="string"?Aa[a]:a}function ma(a,c){for(var y=a.doc.sel.ranges,v=[],w=0;w<y.length;w++){for(var H=c(y[w]);v.length&&Fn(H.from,Xn(v).to)<=0;){var te=v.pop();if(Fn(te.from,H.from)<0){H.from=te.from;break}}v.push(H)}Nt(a,function(){for(var be=v.length-1;be>=0;be--)Sa(a.doc,"",v[be].from,v[be].to,"+delete");Xa(a)})}function Bl(a,c,y){var v=ze(a.text,c+y,y);return v<0||v>a.text.length?null:v}function Ks(a,c,y){var v=Bl(a,c.ch,y);return v==null?null:new ft(c.line,v,y<0?"after":"before")}function Xo(a,c,y,v,w){if(a){c.doc.direction=="rtl"&&(w=-w);var H=nn(y,c.doc.direction);if(H){var te=w<0?Xn(H):H[0],be=w<0==(te.level==1),ve=be?"after":"before",We;if(te.level>0||c.doc.direction=="rtl"){var zt=Ls(c,y);We=w<0?y.text.length-1:0;var it=ja(c,zt,We).top;We=Oe(function(bn){return ja(c,zt,bn).top==it},w<0==(te.level==1)?te.from:te.to-1,We),ve=="before"&&(We=Bl(y,We,1))}else We=w<0?te.to:te.from;return new ft(v,We,ve)}}return new ft(v,w<0?y.text.length:0,w<0?"before":"after")}function ys(a,c,y,v){var w=nn(c,a.doc.direction);if(!w)return Ks(c,y,v);y.ch>=c.text.length?(y.ch=c.text.length,y.sticky="before"):y.ch<=0&&(y.ch=0,y.sticky="after");var H=Qe(w,y.ch,y.sticky),te=w[H];if(a.doc.direction=="ltr"&&te.level%2==0&&(v>0?te.to>y.ch:te.from<y.ch))return Ks(c,y,v);var be=function(ir,Ir){return Bl(c,ir instanceof ft?ir.ch:ir,Ir)},ve,We=function(ir){return a.options.lineWrapping?(ve=ve||Ls(a,c),Ga(a,c,ve,ir)):{begin:0,end:c.text.length}},zt=We(y.sticky=="before"?be(y,-1):y.ch);if(a.doc.direction=="rtl"||te.level==1){var it=te.level==1==v<0,bn=be(y,it?1:-1);if(bn!=null&&(it?bn<=te.to&&bn<=zt.end:bn>=te.from&&bn>=zt.begin)){var mn=it?"before":"after";return new ft(y.line,bn,mn)}}var li=function(ir,Ir,dr){for(var Br=function(aa,cl){return cl?new ft(y.line,be(aa,1),"before"):new ft(y.line,aa,"after")};ir>=0&&ir<w.length;ir+=Ir){var ho=w[ir],ur=Ir>0==(ho.level!=1),Uo=ur?dr.begin:be(dr.end,-1);if(ho.from<=Uo&&Uo<ho.to||(Uo=ur?ho.from:be(ho.to,-1),dr.begin<=Uo&&Uo<dr.end))return Br(Uo,ur)}},vi=li(H+v,v,zt);if(vi)return vi;var Oi=v>0?zt.end:be(zt.begin,-1);return Oi!=null&&!(v>0&&Oi==c.text.length)&&(vi=li(v>0?0:w.length-1,v,We(Oi)),vi)?vi:null}var za={selectAll:Gr,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),yt)},killLine:function(a){return ma(a,function(c){if(c.empty()){var y=fn(a.doc,c.head.line).text.length;return c.head.ch==y&&c.head.line<a.lastLine()?{from:c.head,to:ft(c.head.line+1,0)}:{from:c.head,to:ft(c.head.line,y)}}else return{from:c.from(),to:c.to()}})},deleteLine:function(a){return ma(a,function(c){return{from:ft(c.from().line,0),to:xt(a.doc,ft(c.to().line+1,0))}})},delLineLeft:function(a){return ma(a,function(c){return{from:ft(c.from().line,0),to:c.from()}})},delWrappedLineLeft:function(a){return ma(a,function(c){var y=a.charCoords(c.head,"div").top+5,v=a.coordsChar({left:0,top:y},"div");return{from:v,to:c.from()}})},delWrappedLineRight:function(a){return ma(a,function(c){var y=a.charCoords(c.head,"div").top+5,v=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:y},"div");return{from:c.from(),to:v}})},undo:function(a){return a.undo()},redo:function(a){return a.redo()},undoSelection:function(a){return a.undoSelection()},redoSelection:function(a){return a.redoSelection()},goDocStart:function(a){return a.extendSelection(ft(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(ft(a.lastLine()))},goLineStart:function(a){return a.extendSelectionsBy(function(c){return qa(a,c.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(c){return Cc(a,c.head)},{origin:"+move",bias:1})},goLineEnd:function(a){return a.extendSelectionsBy(function(c){return el(a,c.head.line)},{origin:"+move",bias:-1})},goLineRight:function(a){return a.extendSelectionsBy(function(c){var y=a.cursorCoords(c.head,"div").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:y},"div")},Dt)},goLineLeft:function(a){return a.extendSelectionsBy(function(c){var y=a.cursorCoords(c.head,"div").top+5;return a.coordsChar({left:0,top:y},"div")},Dt)},goLineLeftSmart:function(a){return a.extendSelectionsBy(function(c){var y=a.cursorCoords(c.head,"div").top+5,v=a.coordsChar({left:0,top:y},"div");return v.ch<a.getLine(v.line).search(/\S/)?Cc(a,c.head):v},Dt)},goLineUp:function(a){return a.moveV(-1,"line")},goLineDown:function(a){return a.moveV(1,"line")},goPageUp:function(a){return a.moveV(-1,"page")},goPageDown:function(a){return a.moveV(1,"page")},goCharLeft:function(a){return a.moveH(-1,"char")},goCharRight:function(a){return a.moveH(1,"char")},goColumnLeft:function(a){return a.moveH(-1,"column")},goColumnRight:function(a){return a.moveH(1,"column")},goWordLeft:function(a){return a.moveH(-1,"word")},goGroupRight:function(a){return a.moveH(1,"group")},goGroupLeft:function(a){return a.moveH(-1,"group")},goWordRight:function(a){return a.moveH(1,"word")},delCharBefore:function(a){return a.deleteH(-1,"codepoint")},delCharAfter:function(a){return a.deleteH(1,"char")},delWordBefore:function(a){return a.deleteH(-1,"word")},delWordAfter:function(a){return a.deleteH(1,"word")},delGroupBefore:function(a){return a.deleteH(-1,"group")},delGroupAfter:function(a){return a.deleteH(1,"group")},indentAuto:function(a){return a.indentSelection("smart")},indentMore:function(a){return a.indentSelection("add")},indentLess:function(a){return a.indentSelection("subtract")},insertTab:function(a){return a.replaceSelection(" ")},insertSoftTab:function(a){for(var c=[],y=a.listSelections(),v=a.options.tabSize,w=0;w<y.length;w++){var H=y[w].from(),te=Xe(a.getLine(H.line),H.ch,v);c.push(ri(v-te%v))}a.replaceSelections(c)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return Nt(a,function(){for(var c=a.listSelections(),y=[],v=0;v<c.length;v++)if(c[v].empty()){var w=c[v].head,H=fn(a.doc,w.line).text;if(H){if(w.ch==H.length&&(w=new ft(w.line,w.ch-1)),w.ch>0)w=new ft(w.line,w.ch+1),a.replaceRange(H.charAt(w.ch-1)+H.charAt(w.ch-2),ft(w.line,w.ch-2),w,"+transpose");else if(w.line>a.doc.first){var te=fn(a.doc,w.line-1).text;te&&(w=new ft(w.line,1),a.replaceRange(H.charAt(0)+a.doc.lineSeparator()+te.charAt(te.length-1),ft(w.line-1,te.length-1),w,"+transpose"))}}y.push(new si(w,w))}a.setSelections(y)})},newlineAndIndent:function(a){return Nt(a,function(){for(var c=a.listSelections(),y=c.length-1;y>=0;y--)a.replaceRange(a.doc.lineSeparator(),c[y].anchor,c[y].head,"+input");c=a.listSelections();for(var v=0;v<c.length;v++)a.indentLine(c[v].from().line,null,!0);Xa(a)})},openLine:function(a){return a.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function qa(a,c){var y=fn(a.doc,c),v=Hi(y);return v!=y&&(c=pt(v)),Xo(!0,a,v,c,1)}function el(a,c){var y=fn(a.doc,c),v=$r(y);return v!=y&&(c=pt(v)),Xo(!0,a,y,c,-1)}function Cc(a,c){var y=qa(a,c.line),v=fn(a.doc,y.line),w=nn(v,a.doc.direction);if(!w||w[0].level==0){var H=Math.max(y.ch,v.text.search(/\S/)),te=c.line==y.line&&c.ch<=H&&c.ch;return ft(y.line,te?0:H,y.sticky)}return y}function ku(a,c,y){if(typeof c=="string"&&(c=za[c],!c))return!1;a.display.input.ensurePolled();var v=a.display.shift,w=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),y&&(a.display.shift=!1),w=c(a)!=jt}finally{a.display.shift=v,a.state.suppressEdits=!1}return w}function Xc(a,c,y){for(var v=0;v<a.state.keyMaps.length;v++){var w=Fa(c,a.state.keyMaps[v],y,a);if(w)return w}return a.options.extraKeys&&Fa(c,a.options.extraKeys,y,a)||Fa(c,a.options.keyMap,y,a)}var pu=new se;function tc(a,c,y,v){var w=a.state.keySeq;if(w){if(Au(c))return"handled";if(/\'$/.test(c)?a.state.keySeq=null:pu.set(50,function(){a.state.keySeq==w&&(a.state.keySeq=null,a.display.input.reset())}),ch(a,w+" "+c,y,v))return!0}return ch(a,c,y,v)}function ch(a,c,y,v){var w=Xc(a,c,v);return w=="multi"&&(a.state.keySeq=c),w=="handled"&&pi(a,"keyHandled",a,c,y),(w=="handled"||w=="multi")&&(Rn(y),Zo(a)),!!w}function Bh(a,c){var y=Pc(c,!0);return y?c.shiftKey&&!a.state.keySeq?tc(a,"Shift-"+y,c,function(v){return ku(a,v,!0)})||tc(a,y,c,function(v){if(typeof v=="string"?/^go[A-Z]/.test(v):v.motion)return ku(a,v)}):tc(a,y,c,function(v){return ku(a,v)}):!1}function _h(a,c,y){return tc(a,"'"+y+"'",c,function(v){return ku(a,v,!0)})}var Tc=null;function hh(a){var c=this;if(!(a.target&&a.target!=c.display.input.getField())&&(c.curOp.focus=Ze(),!Pt(c,a))){W&&_<11&&a.keyCode==27&&(a.returnValue=!1);var y=a.keyCode;c.display.shift=y==16||a.shiftKey;var v=Bh(c,a);ne&&(Tc=v?y:null,!v&&y==88&&!mr&&(Fe?a.metaKey:a.ctrlKey)&&c.replaceSelection("",null,"cut")),b&&!Fe&&!v&&y==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),y==18&&!/\bCodeMirror-crosshair\b/.test(c.display.lineDiv.className)&&dh(c)}}function dh(a){var c=a.display.lineDiv;Bt(c,"CodeMirror-crosshair");function y(v){(v.keyCode==18||!v.altKey)&&(Ce(c,"CodeMirror-crosshair"),hn(document,"keyup",y),hn(document,"mouseover",y))}Ot(document,"keyup",y),Ot(document,"mouseover",y)}function np(a){a.keyCode==16&&(this.doc.sel.shift=!1),Pt(this,a)}function Nc(a){var c=this;if(!(a.target&&a.target!=c.display.input.getField())&&!(Ra(c.display,a)||Pt(c,a)||a.ctrlKey&&!a.altKey||Fe&&a.metaKey)){var y=a.keyCode,v=a.charCode;if(ne&&y==Tc){Tc=null,Rn(a);return}if(!(ne&&(!a.which||a.which<10)&&Bh(c,a))){var w=String.fromCharCode(v==null?y:v);w!="\b"&&(_h(c,a,w)||c.display.input.onKeyPress(a))}}}var d0=400,ip=function(a,c,y){this.time=a,this.pos=c,this.button=y};ip.prototype.compare=function(a,c,y){return this.time+d0>a&&Fn(c,this.pos)==0&&y==this.button};var hd,zh;function rp(a,c){var y=+new Date;return zh&&zh.compare(y,a,c)?(hd=zh=null,"triple"):hd&&hd.compare(y,a,c)?(zh=new ip(y,a,c),hd=null,"double"):(hd=new ip(y,a,c),zh=null,"single")}function Ac(a){var c=this,y=c.display;if(!(Pt(c,a)||y.activeTouch&&y.input.supportsTouch())){if(y.input.ensurePolled(),y.shift=a.shiftKey,Ra(y,a)){M||(y.scroller.draggable=!1,setTimeout(function(){return y.scroller.draggable=!0},100));return}if(!hf(c,a)){var v=Da(c,a),w=sn(a),H=v?rp(v,w):"single";window.focus(),w==1&&c.state.selectingText&&c.state.selectingText(a),!(v&&op(c,w,v,H,a))&&(w==1?v?f0(c,v,H,a):ci(a)==y.scroller&&Rn(a):w==2?(v&&Oo(c.doc,v),setTimeout(function(){return y.input.focus()},20)):w==3&&(Te?c.display.input.onContextMenu(a):bs(c)))}}}function op(a,c,y,v,w){var H="Click";return v=="double"?H="Double"+H:v=="triple"&&(H="Triple"+H),H=(c==1?"Left":c==2?"Middle":"Right")+H,tc(a,ec(H,w),w,function(te){if(typeof te=="string"&&(te=za[te]),!te)return!1;var be=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),be=te(a,y)!=jt}finally{a.state.suppressEdits=!1}return be})}function uf(a,c,y){var v=a.getOption("configureMouse"),w=v?v(a,c,y):{};if(w.unit==null){var H=de?y.shiftKey&&y.metaKey:y.altKey;w.unit=H?"rectangle":c=="single"?"char":c=="double"?"word":"line"}return(w.extend==null||a.doc.extend)&&(w.extend=a.doc.extend||y.shiftKey),w.addNew==null&&(w.addNew=Fe?y.metaKey:y.ctrlKey),w.moveOnDrag==null&&(w.moveOnDrag=!(Fe?y.altKey:y.ctrlKey)),w}function f0(a,c,y,v){W?setTimeout(Tt(qo,a),0):a.curOp.focus=Ze();var w=uf(a,y,v),H=a.doc.sel,te;a.options.dragDrop&&rn&&!a.isReadOnly()&&y=="single"&&(te=H.contains(c))>-1&&(Fn((te=H.ranges[te]).from(),c)<0||c.xRel>0)&&(Fn(te.to(),c)>0||c.xRel<0)?sp(a,v,c,w):cg(a,v,c,w)}function sp(a,c,y,v){var w=a.display,H=!1,te=fe(a,function(We){M&&(w.scroller.draggable=!1),a.state.draggingText=!1,hn(w.wrapper.ownerDocument,"mouseup",te),hn(w.wrapper.ownerDocument,"mousemove",be),hn(w.scroller,"dragstart",ve),hn(w.scroller,"drop",te),H||(Rn(We),v.addNew||Oo(a.doc,y,null,null,v.extend),M&&!Pe||W&&_==9?setTimeout(function(){w.wrapper.ownerDocument.body.focus({preventScroll:!0}),w.input.focus()},20):w.input.focus())}),be=function(We){H=H||Math.abs(c.clientX-We.clientX)+Math.abs(c.clientY-We.clientY)>=10},ve=function(){return H=!0};M&&(w.scroller.draggable=!0),a.state.draggingText=te,te.copy=!v.moveOnDrag,w.scroller.dragDrop&&w.scroller.dragDrop(),Ot(w.wrapper.ownerDocument,"mouseup",te),Ot(w.wrapper.ownerDocument,"mousemove",be),Ot(w.scroller,"dragstart",ve),Ot(w.scroller,"drop",te),bs(a),setTimeout(function(){return w.input.focus()},20)}function ap(a,c,y){if(y=="char")return new si(c,c);if(y=="word")return a.findWordAt(c);if(y=="line")return new si(ft(c.line,0),xt(a.doc,ft(c.line+1,0)));var v=y(a,c);return new si(v.from,v.to)}function cg(a,c,y,v){var w=a.display,H=a.doc;Rn(c);var te,be,ve=H.sel,We=ve.ranges;if(v.addNew&&!v.extend?(be=H.sel.contains(y),be>-1?te=We[be]:te=new si(y,y)):(te=H.sel.primary(),be=H.sel.primIndex),v.unit=="rectangle")v.addNew||(te=new si(y,y)),y=Da(a,c,!0,!0),be=-1;else{var zt=ap(a,y,v.unit);v.extend?te=zs(te,zt.anchor,zt.head,v.extend):te=zt}v.addNew?be==-1?(be=We.length,g(H,sr(a,We.concat([te]),be),{scroll:!1,origin:"*mouse"})):We.length>1&&We[be].empty()&&v.unit=="char"&&!v.extend?(g(H,sr(a,We.slice(0,be).concat(We.slice(be+1)),0),{scroll:!1,origin:"*mouse"}),ve=H.sel):Ao(H,be,te,ln):(be=0,g(H,new yi([te],0),ln),ve=H.sel);var it=y;function bn(dr){if(Fn(it,dr)!=0)if(it=dr,v.unit=="rectangle"){for(var Br=[],ho=a.options.tabSize,ur=Xe(fn(H,y.line).text,y.ch,ho),Uo=Xe(fn(H,dr.line).text,dr.ch,ho),aa=Math.min(ur,Uo),cl=Math.max(ur,Uo),Ea=Math.min(y.line,dr.line),gu=Math.min(a.lastLine(),Math.max(y.line,dr.line));Ea<=gu;Ea++){var Yl=fn(H,Ea).text,nl=ui(Yl,aa,ho);aa==cl?Br.push(new si(ft(Ea,nl),ft(Ea,nl))):Yl.length>nl&&Br.push(new si(ft(Ea,nl),ft(Ea,ui(Yl,cl,ho))))}Br.length||Br.push(new si(y,y)),g(H,sr(a,ve.ranges.slice(0,be).concat(Br),be),{origin:"*mouse",scroll:!1}),a.scrollIntoView(dr)}else{var Iu=te,_l=ap(a,dr,v.unit),il=Iu.anchor,Ts;Fn(_l.anchor,il)>0?(Ts=_l.head,il=Gt(Iu.from(),_l.anchor)):(Ts=_l.anchor,il=D(Iu.to(),_l.head));var ka=ve.ranges.slice(0);ka[be]=p0(a,new si(xt(H,il),Ts)),g(H,sr(a,ka,be),ln)}}var mn=w.wrapper.getBoundingClientRect(),li=0;function vi(dr){var Br=++li,ho=Da(a,dr,!0,v.unit=="rectangle");if(ho)if(Fn(ho,it)!=0){a.curOp.focus=Ze(),bn(ho);var ur=xo(w,H);(ho.line>=ur.to||ho.line<ur.from)&&setTimeout(fe(a,function(){li==Br&&vi(dr)}),150)}else{var Uo=dr.clientY<mn.top?-20:dr.clientY>mn.bottom?20:0;Uo&&setTimeout(fe(a,function(){li==Br&&(w.scroller.scrollTop+=Uo,vi(dr))}),50)}}function Oi(dr){a.state.selectingText=!1,li=1/0,dr&&(Rn(dr),w.input.focus()),hn(w.wrapper.ownerDocument,"mousemove",ir),hn(w.wrapper.ownerDocument,"mouseup",Ir),H.history.lastSelOrigin=null}var ir=fe(a,function(dr){dr.buttons===0||!sn(dr)?Oi(dr):vi(dr)}),Ir=fe(a,Oi);a.state.selectingText=Ir,Ot(w.wrapper.ownerDocument,"mousemove",ir),Ot(w.wrapper.ownerDocument,"mouseup",Ir)}function p0(a,c){var y=c.anchor,v=c.head,w=fn(a.doc,y.line);if(Fn(y,v)==0&&y.sticky==v.sticky)return c;var H=nn(w);if(!H)return c;var te=Qe(H,y.ch,y.sticky),be=H[te];if(be.from!=y.ch&&be.to!=y.ch)return c;var ve=te+(be.from==y.ch==(be.level!=1)?0:1);if(ve==0||ve==H.length)return c;var We;if(v.line!=y.line)We=(v.line-y.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var zt=Qe(H,v.ch,v.sticky),it=zt-te||(v.ch-y.ch)*(be.level==1?-1:1);zt==ve-1||zt==ve?We=it<0:We=it>0}var bn=H[ve+(We?-1:0)],mn=We==(bn.level==1),li=mn?bn.from:bn.to,vi=mn?"after":"before";return y.ch==li&&y.sticky==vi?c:new si(new ft(y.line,li,vi),v)}function cf(a,c,y,v){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(bn){return!1}if(w>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;v&&Rn(c);var te=a.display,be=te.lineDiv.getBoundingClientRect();if(H>be.bottom||!qt(a,y))return Gn(c);H-=be.top-te.viewOffset;for(var ve=0;ve<a.display.gutterSpecs.length;++ve){var We=te.gutters.childNodes[ve];if(We&&We.getBoundingClientRect().right>=w){var zt=gn(a.doc,H),it=a.display.gutterSpecs[ve];return Ve(a,y,a,zt,it.className,c),Gn(c)}}}function hf(a,c){return cf(a,c,"gutterClick",!0)}function df(a,c){Ra(a.display,c)||m0(a,c)||Pt(a,c,"contextmenu")||Te||a.display.input.onContextMenu(c)}function m0(a,c){return qt(a,"gutterContextMenu")?cf(a,c,"gutterContextMenu",!1):!1}function ff(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),qr(a)}var fh={toString:function(){return"CodeMirror.Init"}},lp={},Dd={};function g0(a){var c=a.optionHandlers;function y(v,w,H,te){a.defaults[v]=w,H&&(c[v]=te?function(be,ve,We){We!=fh&&H(be,ve,We)}:H)}a.defineOption=y,a.Init=fh,y("value","",function(v,w){return v.setValue(w)},!0),y("mode",null,function(v,w){v.doc.modeOption=w,Zi(v)},!0),y("indentUnit",2,Zi,!0),y("indentWithTabs",!1),y("smartIndent",!0),y("tabSize",4,function(v){Kr(v),qr(v),go(v)},!0),y("lineSeparator",null,function(v,w){if(v.doc.lineSep=w,!!w){var H=[],te=v.doc.first;v.doc.iter(function(ve){for(var We=0;;){var zt=ve.text.indexOf(w,We);if(zt==-1)break;We=zt+w.length,H.push(ft(te,zt))}te++});for(var be=H.length-1;be>=0;be--)Sa(v.doc,w,H[be],ft(H[be].line,H[be].ch+w.length))}}),y("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(v,w,H){v.state.specialChars=new RegExp(w.source+(w.test(" ")?"":"| "),"g"),H!=fh&&v.refresh()}),y("specialCharPlaceholder",Ws,function(v){return v.refresh()},!0),y("electricChars",!0),y("inputStyle",De?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),y("spellcheck",!1,function(v,w){return v.getInputField().spellcheck=w},!0),y("autocorrect",!1,function(v,w){return v.getInputField().autocorrect=w},!0),y("autocapitalize",!1,function(v,w){return v.getInputField().autocapitalize=w},!0),y("rtlMoveVisually",!me),y("wholeLineUpdateBefore",!0),y("theme","default",function(v){ff(v),et(v)},!0),y("keyMap","default",function(v,w,H){var te=Fl(w),be=H!=fh&&Fl(H);be&&be.detach&&be.detach(v,te),te.attach&&te.attach(v,be||null)}),y("extraKeys",null),y("configureMouse",null),y("lineWrapping",!1,v0,!0),y("gutters",[],function(v,w){v.display.gutterSpecs=Ee(w,v.options.lineNumbers),et(v)},!0),y("fixedGutter",!0,function(v,w){v.display.gutters.style.left=w?uu(v.display)+"px":"0",v.refresh()},!0),y("coverGutterNextToScrollbar",!1,function(v){return du(v)},!0),y("scrollbarStyle","native",function(v){Nu(v),du(v),v.display.scrollbars.setScrollTop(v.doc.scrollTop),v.display.scrollbars.setScrollLeft(v.doc.scrollLeft)},!0),y("lineNumbers",!1,function(v,w){v.display.gutterSpecs=Ee(v.options.gutters,w),et(v)},!0),y("firstLineNumber",1,et,!0),y("lineNumberFormatter",function(v){return v},et,!0),y("showCursorWhenSelecting",!1,ta,!0),y("resetSelectionOnContextMenu",!0),y("lineWiseCopyCut",!0),y("pasteLinesPerSelection",!0),y("selectionsMayTouch",!1),y("readOnly",!1,function(v,w){w=="nocursor"&&(hu(v),v.display.input.blur()),v.display.input.readOnlyChanged(w)}),y("screenReaderLabel",null,function(v,w){w=w===""?null:w,v.display.input.screenReaderLabelChanged(w)}),y("disableInput",!1,function(v,w){w||v.display.input.reset()},!0),y("dragDrop",!0,pf),y("allowDropFileTypes",null),y("cursorBlinkRate",530),y("cursorScrollMargin",0),y("cursorHeight",1,ta,!0),y("singleCursorHeightPerLine",!0,ta,!0),y("workTime",100),y("workDelay",100),y("flattenSpans",!0,Kr,!0),y("addModeClass",!1,Kr,!0),y("pollInterval",100),y("undoDepth",200,function(v,w){return v.doc.history.undoDepth=w}),y("historyEventDelay",1250),y("viewportMargin",10,function(v){return v.refresh()},!0),y("maxHighlightLength",1e4,Kr,!0),y("moveInputWithCursor",!0,function(v,w){w||v.display.input.resetPosition()}),y("tabindex",null,function(v,w){return v.display.input.getField().tabIndex=w||""}),y("autofocus",null),y("direction","ltr",function(v,w){return v.doc.setDirection(w)},!0),y("phrases",null)}function pf(a,c,y){var v=y&&y!=fh;if(!c!=!v){var w=a.display.dragFunctions,H=c?Ot:hn;H(a.display.scroller,"dragstart",w.start),H(a.display.scroller,"dragenter",w.enter),H(a.display.scroller,"dragover",w.over),H(a.display.scroller,"dragleave",w.leave),H(a.display.scroller,"drop",w.drop)}}function v0(a){a.options.lineWrapping?(Bt(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(Ce(a.display.wrapper,"CodeMirror-wrap"),Bs(a)),Nr(a),go(a),qr(a),setTimeout(function(){return du(a)},100)}function xs(a,c){var y=this;if(!(this instanceof xs))return new xs(a,c);this.options=c=c?wn(c):{},wn(lp,c,!1);var v=c.value;typeof v=="string"?v=new Pi(v,c.mode,null,c.lineSeparator,c.direction):c.mode&&(v.modeOption=c.mode),this.doc=v;var w=new xs.inputStyles[c.inputStyle](this),H=this.display=new Ft(a,v,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 se,keySeq:null,specialChars:null},c.autofocus&&!De&&H.input.focus(),W&&_<11&&setTimeout(function(){return y.display.input.reset(!0)},20),dd(this),$o(),fa(this),this.curOp.forceUpdate=!0,tr(this,v),c.autofocus&&!De||this.hasFocus()?setTimeout(function(){y.hasFocus()&&!y.state.focused&&Po(y)},20):hu(this);for(var te in Dd)Dd.hasOwnProperty(te)&&Dd[te](this,c[te],fh);he(this),c.finishInit&&c.finishInit(this);for(var be=0;be<Uh.length;++be)Uh[be](this);Vl(this),M&&c.lineWrapping&&getComputedStyle(H.lineDiv).textRendering=="optimizelegibility"&&(H.lineDiv.style.textRendering="auto")}xs.defaults=lp,xs.optionHandlers=Dd;function dd(a){var c=a.display;Ot(c.scroller,"mousedown",fe(a,Ac)),W&&_<11?Ot(c.scroller,"dblclick",fe(a,function(ve){if(!Pt(a,ve)){var We=Da(a,ve);if(!(!We||hf(a,ve)||Ra(a.display,ve))){Rn(ve);var zt=a.findWordAt(We);Oo(a.doc,zt.anchor,zt.head)}}})):Ot(c.scroller,"dblclick",function(ve){return Pt(a,ve)||Rn(ve)}),Ot(c.scroller,"contextmenu",function(ve){return df(a,ve)}),Ot(c.input.getField(),"contextmenu",function(ve){c.scroller.contains(ve.target)||df(a,ve)});var y,v={end:0};function w(){c.activeTouch&&(y=setTimeout(function(){return c.activeTouch=null},1e3),v=c.activeTouch,v.end=+new Date)}function H(ve){if(ve.touches.length!=1)return!1;var We=ve.touches[0];return We.radiusX<=1&&We.radiusY<=1}function te(ve,We){if(We.left==null)return!0;var zt=We.left-ve.left,it=We.top-ve.top;return zt*zt+it*it>20*20}Ot(c.scroller,"touchstart",function(ve){if(!Pt(a,ve)&&!H(ve)&&!hf(a,ve)){c.input.ensurePolled(),clearTimeout(y);var We=+new Date;c.activeTouch={start:We,moved:!1,prev:We-v.end<=300?v:null},ve.touches.length==1&&(c.activeTouch.left=ve.touches[0].pageX,c.activeTouch.top=ve.touches[0].pageY)}}),Ot(c.scroller,"touchmove",function(){c.activeTouch&&(c.activeTouch.moved=!0)}),Ot(c.scroller,"touchend",function(ve){var We=c.activeTouch;if(We&&!Ra(c,ve)&&We.left!=null&&!We.moved&&new Date-We.start<300){var zt=a.coordsChar(c.activeTouch,"page"),it;!We.prev||te(We,We.prev)?it=new si(zt,zt):!We.prev.prev||te(We,We.prev.prev)?it=a.findWordAt(zt):it=new si(ft(zt.line,0),xt(a.doc,ft(zt.line+1,0))),a.setSelection(it.anchor,it.head),a.focus(),Rn(ve)}w()}),Ot(c.scroller,"touchcancel",w),Ot(c.scroller,"scroll",function(){c.scroller.clientHeight&&(eu(a,c.scroller.scrollTop),vl(a,c.scroller.scrollLeft,!0),Ve(a,"scroll",a))}),Ot(c.scroller,"mousewheel",function(ve){return Rt(a,ve)}),Ot(c.scroller,"DOMMouseScroll",function(ve){return Rt(a,ve)}),Ot(c.wrapper,"scroll",function(){return c.wrapper.scrollTop=c.wrapper.scrollLeft=0}),c.dragFunctions={enter:function(ve){Pt(a,ve)||Ci(ve)},over:function(ve){Pt(a,ve)||(Eo(a,ve),Ci(ve))},start:function(ve){return Fr(a,ve)},drop:fe(a,Pr),leave:function(ve){Pt(a,ve)||Ho(a)}};var be=c.input.getField();Ot(be,"keyup",function(ve){return np.call(a,ve)}),Ot(be,"keydown",fe(a,hh)),Ot(be,"keypress",fe(a,Nc)),Ot(be,"focus",function(ve){return Po(a,ve)}),Ot(be,"blur",function(ve){return hu(a,ve)})}var Uh=[];xs.defineInitHook=function(a){return Uh.push(a)};function ul(a,c,y,v){var w=a.doc,H;y==null&&(y="add"),y=="smart"&&(w.mode.indent?H=hr(a,c).state:y="prev");var te=a.options.tabSize,be=fn(w,c),ve=Xe(be.text,null,te);be.stateAfter&&(be.stateAfter=null);var We=be.text.match(/^\s*/)[0],zt;if(!v&&!/\S/.test(be.text))zt=0,y="not";else if(y=="smart"&&(zt=w.mode.indent(H,be.text.slice(We.length),be.text),zt==jt||zt>150)){if(!v)return;y="prev"}y=="prev"?c>w.first?zt=Xe(fn(w,c-1).text,null,te):zt=0:y=="add"?zt=ve+a.options.indentUnit:y=="subtract"?zt=ve-a.options.indentUnit:typeof y=="number"&&(zt=ve+y),zt=Math.max(0,zt);var it="",bn=0;if(a.options.indentWithTabs)for(var mn=Math.floor(zt/te);mn;--mn)bn+=te,it+=" ";if(bn<zt&&(it+=ri(zt-bn)),it!=We)return Sa(w,it,ft(c,0),ft(c,We.length),"+input"),be.stateAfter=null,!0;for(var li=0;li<w.sel.ranges.length;li++){var vi=w.sel.ranges[li];if(vi.head.line==c&&vi.head.ch<We.length){var Oi=ft(c,We.length);Ao(w,li,new si(Oi,Oi));break}}}var mu=null;function Hh(a){mu=a}function Pd(a,c,y,v,w){var H=a.doc;a.display.shift=!1,v||(v=H.sel);var te=+new Date-200,be=w=="paste"||a.state.pasteIncoming>te,ve=rr(c),We=null;if(be&&v.ranges.length>1)if(mu&&mu.text.join(`
|
|
|
`)==c){if(v.ranges.length%mu.text.length==0){We=[];for(var zt=0;zt<mu.text.length;zt++)We.push(H.splitLines(mu.text[zt]))}}else ve.length==v.ranges.length&&a.options.pasteLinesPerSelection&&(We=Tn(ve,function(ir){return[ir]}));for(var it=a.curOp.updateInput,bn=v.ranges.length-1;bn>=0;bn--){var mn=v.ranges[bn],li=mn.from(),vi=mn.to();mn.empty()&&(y&&y>0?li=ft(li.line,li.ch-y):a.state.overwrite&&!be?vi=ft(vi.line,Math.min(fn(H,vi.line).text.length,vi.ch+Xn(ve).length)):be&&mu&&mu.lineWise&&mu.text.join(`
|
|
|
`)==ve.join(`
|
|
|
`)&&(li=vi=ft(li.line,0)));var Oi={from:li,to:vi,text:We?We[bn%We.length]:ve,origin:w||(be?"paste":a.state.cutIncoming>te?"cut":"+input")};vs(a.doc,Oi),pi(a,"inputRead",a,Oi)}c&&!be&&cp(a,c),Xa(a),a.curOp.updateInput<2&&(a.curOp.updateInput=it),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function up(a,c){var y=a.clipboardData&&a.clipboardData.getData("Text");if(y)return a.preventDefault(),!c.isReadOnly()&&!c.options.disableInput&&Nt(c,function(){return Pd(c,y,0,null,"paste")}),!0}function cp(a,c){if(!(!a.options.electricChars||!a.options.smartIndent))for(var y=a.doc.sel,v=y.ranges.length-1;v>=0;v--){var w=y.ranges[v];if(!(w.head.ch>100||v&&y.ranges[v-1].head.line==w.head.line)){var H=a.getModeAt(w.head),te=!1;if(H.electricChars){for(var be=0;be<H.electricChars.length;be++)if(c.indexOf(H.electricChars.charAt(be))>-1){te=ul(a,w.head.line,"smart");break}}else H.electricInput&&H.electricInput.test(fn(a.doc,w.head.line).text.slice(0,w.head.ch))&&(te=ul(a,w.head.line,"smart"));te&&pi(a,"electricInput",a,w.head.line)}}}function hp(a){for(var c=[],y=[],v=0;v<a.doc.sel.ranges.length;v++){var w=a.doc.sel.ranges[v].head.line,H={anchor:ft(w,0),head:ft(w+1,0)};y.push(H),c.push(a.getRange(H.anchor,H.head))}return{text:c,ranges:y}}function dp(a,c,y,v){a.setAttribute("autocorrect",y?"":"off"),a.setAttribute("autocapitalize",v?"":"off"),a.setAttribute("spellcheck",!!c)}function fp(){var a=Ke("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),c=Ke("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return M?a.style.width="1000px":a.setAttribute("wrap","off"),Ue&&(a.style.border="1px solid black"),dp(a),c}function ph(a){var c=a.optionHandlers,y=a.helpers={};a.prototype={constructor:a,focus:function(){window.focus(),this.display.input.focus()},setOption:function(v,w){var H=this.options,te=H[v];H[v]==w&&v!="mode"||(H[v]=w,c.hasOwnProperty(v)&&fe(this,c[v])(this,w,te),Ve(this,"optionChange",this,v))},getOption:function(v){return this.options[v]},getDoc:function(){return this.doc},addKeyMap:function(v,w){this.state.keyMaps[w?"push":"unshift"](Fl(v))},removeKeyMap:function(v){for(var w=this.state.keyMaps,H=0;H<w.length;++H)if(w[H]==v||w[H].name==v)return w.splice(H,1),!0},addOverlay:cn(function(v,w){var H=v.token?v:a.getMode(this.options,v);if(H.startState)throw new Error("Overlays may not be stateful.");Nn(this.state.overlays,{mode:H,modeSpec:v,opaque:w&&w.opaque,priority:w&&w.priority||0},function(te){return te.priority}),this.state.modeGen++,go(this)}),removeOverlay:cn(function(v){for(var w=this.state.overlays,H=0;H<w.length;++H){var te=w[H].modeSpec;if(te==v||typeof v=="string"&&te.name==v){w.splice(H,1),this.state.modeGen++,go(this);return}}}),indentLine:cn(function(v,w,H){typeof w!="string"&&typeof w!="number"&&(w==null?w=this.options.smartIndent?"smart":"prev":w=w?"add":"subtract"),tn(this.doc,v)&&ul(this,v,w,H)}),indentSelection:cn(function(v){for(var w=this.doc.sel.ranges,H=-1,te=0;te<w.length;te++){var be=w[te];if(be.empty())be.head.line>H&&(ul(this,be.head.line,v,!0),H=be.head.line,te==this.doc.sel.primIndex&&Xa(this));else{var ve=be.from(),We=be.to(),zt=Math.max(H,ve.line);H=Math.min(this.lastLine(),We.line-(We.ch?0:1))+1;for(var it=zt;it<H;++it)ul(this,it,v);var bn=this.doc.sel.ranges;ve.ch==0&&w.length==bn.length&&bn[te].from().ch>0&&Ao(this.doc,te,new si(ve,bn[te].to()),yt)}}}),getTokenAt:function(v,w){return Yn(this,v,w)},getLineTokens:function(v,w){return Yn(this,ft(v),w,!0)},getTokenTypeAt:function(v){v=xt(this.doc,v);var w=Bi(this,fn(this.doc,v.line)),H=0,te=(w.length-1)/2,be=v.ch,ve;if(be==0)ve=w[2];else for(;;){var We=H+te>>1;if((We?w[We*2-1]:0)>=be)te=We;else if(w[We*2+1]<be)H=We+1;else{ve=w[We*2+2];break}}var zt=ve?ve.indexOf("overlay "):-1;return zt<0?ve:zt==0?null:ve.slice(0,zt-1)},getModeAt:function(v){var w=this.doc.mode;return w.innerMode?a.innerMode(w,this.getTokenAt(v).state).mode:w},getHelper:function(v,w){return this.getHelpers(v,w)[0]},getHelpers:function(v,w){var H=[];if(!y.hasOwnProperty(w))return H;var te=y[w],be=this.getModeAt(v);if(typeof be[w]=="string")te[be[w]]&&H.push(te[be[w]]);else if(be[w])for(var ve=0;ve<be[w].length;ve++){var We=te[be[w][ve]];We&&H.push(We)}else be.helperType&&te[be.helperType]?H.push(te[be.helperType]):te[be.name]&&H.push(te[be.name]);for(var zt=0;zt<te._global.length;zt++){var it=te._global[zt];it.pred(be,this)&&le(H,it.val)==-1&&H.push(it.val)}return H},getStateAfter:function(v,w){var H=this.doc;return v=dn(H,v==null?H.first+H.size-1:v),hr(this,v+1,w).state},cursorCoords:function(v,w){var H,te=this.doc.sel.primary();return v==null?H=te.head:typeof v=="object"?H=xt(this.doc,v):H=v?te.from():te.to(),ws(this,H,w||"page")},charCoords:function(v,w){return Za(this,xt(this.doc,v),w||"page")},coordsChar:function(v,w){return v=Gl(this,v,w||"page"),lu(this,v.left,v.top)},lineAtHeight:function(v,w){return v=Gl(this,{top:v,left:0},w||"page").top,gn(this.doc,v+this.display.viewOffset)},heightAtLine:function(v,w,H){var te=!1,be;if(typeof v=="number"){var ve=this.doc.first+this.doc.size-1;v<this.doc.first?v=this.doc.first:v>ve&&(v=ve,te=!0),be=fn(this.doc,v)}else be=v;return Es(this,be,{top:0,left:0},w||"page",H||te).top+(te?this.doc.height-fs(be):0)},defaultTextHeight:function(){return Pl(this.display)},defaultCharWidth:function(){return ml(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(v,w,H,te,be){var ve=this.display;v=ws(this,xt(this.doc,v));var We=v.bottom,zt=v.left;if(w.style.position="absolute",w.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(w),ve.sizer.appendChild(w),te=="over")We=v.top;else if(te=="above"||te=="near"){var it=Math.max(ve.wrapper.clientHeight,this.doc.height),bn=Math.max(ve.sizer.clientWidth,ve.lineSpace.clientWidth);(te=="above"||v.bottom+w.offsetHeight>it)&&v.top>w.offsetHeight?We=v.top-w.offsetHeight:v.bottom+w.offsetHeight<=it&&(We=v.bottom),zt+w.offsetWidth>bn&&(zt=bn-w.offsetWidth)}w.style.top=We+"px",w.style.left=w.style.right="",be=="right"?(zt=ve.sizer.clientWidth-w.offsetWidth,w.style.right="0px"):(be=="left"?zt=0:be=="middle"&&(zt=(ve.sizer.clientWidth-w.offsetWidth)/2),w.style.left=zt+"px"),H&&qu(this,{left:zt,top:We,right:zt+w.offsetWidth,bottom:We+w.offsetHeight})},triggerOnKeyDown:cn(hh),triggerOnKeyPress:cn(Nc),triggerOnKeyUp:np,triggerOnMouseDown:cn(Ac),execCommand:function(v){if(za.hasOwnProperty(v))return za[v].call(null,this)},triggerElectric:cn(function(v){cp(this,v)}),findPosH:function(v,w,H,te){var be=1;w<0&&(be=-1,w=-w);for(var ve=xt(this.doc,v),We=0;We<w&&(ve=Fd(this.doc,ve,be,H,te),!ve.hitSide);++We);return ve},moveH:cn(function(v,w){var H=this;this.extendSelectionsBy(function(te){return H.display.shift||H.doc.extend||te.empty()?Fd(H.doc,te.head,v,w,H.options.rtlMoveVisually):v<0?te.from():te.to()},Dt)}),deleteH:cn(function(v,w){var H=this.doc.sel,te=this.doc;H.somethingSelected()?te.replaceSelection("",null,"+delete"):ma(this,function(be){var ve=Fd(te,be.head,v,w,!1);return v<0?{from:ve,to:be.head}:{from:be.head,to:ve}})}),findPosV:function(v,w,H,te){var be=1,ve=te;w<0&&(be=-1,w=-w);for(var We=xt(this.doc,v),zt=0;zt<w;++zt){var it=ws(this,We,"div");if(ve==null?ve=it.left:it.left=ve,We=mh(this,it,be,H),We.hitSide)break}return We},moveV:cn(function(v,w){var H=this,te=this.doc,be=[],ve=!this.display.shift&&!te.extend&&te.sel.somethingSelected();if(te.extendSelectionsBy(function(zt){if(ve)return v<0?zt.from():zt.to();var it=ws(H,zt.head,"div");zt.goalColumn!=null&&(it.left=zt.goalColumn),be.push(it.left);var bn=mh(H,it,v,w);return w=="page"&&zt==te.sel.primary()&&_u(H,Za(H,bn,"div").top-it.top),bn},Dt),be.length)for(var We=0;We<te.sel.ranges.length;We++)te.sel.ranges[We].goalColumn=be[We]}),findWordAt:function(v){var w=this.doc,H=fn(w,v.line).text,te=v.ch,be=v.ch;if(H){var ve=this.getHelper(v,"wordChars");(v.sticky=="before"||be==H.length)&&te?--te:++be;for(var We=H.charAt(te),zt=X(We,ve)?function(it){return X(it,ve)}:/\s/.test(We)?function(it){return/\s/.test(it)}:function(it){return!/\s/.test(it)&&!X(it)};te>0&&zt(H.charAt(te-1));)--te;for(;be<H.length&&zt(H.charAt(be));)++be}return new si(ft(v.line,te),ft(v.line,be))},toggleOverwrite:function(v){v!=null&&v==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Bt(this.display.cursorDiv,"CodeMirror-overwrite"):Ce(this.display.cursorDiv,"CodeMirror-overwrite"),Ve(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Ze()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:cn(function(v,w){Qa(this,v,w)}),getScrollInfo:function(){var v=this.display.scroller;return{left:v.scrollLeft,top:v.scrollTop,height:v.scrollHeight-Vs(this)-this.display.barHeight,width:v.scrollWidth-Vs(this)-this.display.barWidth,clientHeight:pl(this),clientWidth:As(this)}},scrollIntoView:cn(function(v,w){v==null?(v={from:this.doc.sel.primary().head,to:null},w==null&&(w=this.options.cursorScrollMargin)):typeof v=="number"?v={from:ft(v,0),to:null}:v.from==null&&(v={from:v,to:null}),v.to||(v.to=v.from),v.margin=w||0,v.from.line!=null?To(this,v):dc(this,v.from,v.to,v.margin)}),setSize:cn(function(v,w){var H=this,te=function(ve){return typeof ve=="number"||/^\d+$/.test(String(ve))?ve+"px":ve};v!=null&&(this.display.wrapper.style.width=te(v)),w!=null&&(this.display.wrapper.style.height=te(w)),this.options.lineWrapping&&is(this);var be=this.display.viewFrom;this.doc.iter(be,this.display.viewTo,function(ve){if(ve.widgets){for(var We=0;We<ve.widgets.length;We++)if(ve.widgets[We].noHScroll){ro(H,be,"widget");break}}++be}),this.curOp.forceUpdate=!0,Ve(this,"refresh",this)}),operation:function(v){return Nt(this,v)},startOperation:function(){return fa(this)},endOperation:function(){return Vl(this)},refresh:cn(function(){var v=this.display.cachedTextHeight;go(this),this.curOp.forceUpdate=!0,qr(this),Qa(this,this.doc.scrollLeft,this.doc.scrollTop),F(this.display),(v==null||Math.abs(v-Pl(this.display))>.5||this.options.lineWrapping)&&Nr(this),Ve(this,"refresh",this)}),swapDoc:cn(function(v){var w=this.doc;return w.cm=null,this.state.selectingText&&this.state.selectingText(),tr(this,v),qr(this),this.display.input.reset(),Qa(this,v.scrollLeft,v.scrollTop),this.curOp.forceScroll=!0,pi(this,"swapDoc",this,w),w}),phrase:function(v){var w=this.options.phrases;return w&&Object.prototype.hasOwnProperty.call(w,v)?w[v]:v},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}},He(a),a.registerHelper=function(v,w,H){y.hasOwnProperty(v)||(y[v]=a[v]={_global:[]}),y[v][w]=H},a.registerGlobalHelper=function(v,w,H,te){a.registerHelper(v,w,te),y[v]._global.push({pred:H,val:te})}}function Fd(a,c,y,v,w){var H=c,te=y,be=fn(a,c.line),ve=w&&a.direction=="rtl"?-y:y;function We(){var Ir=c.line+ve;return Ir<a.first||Ir>=a.first+a.size?!1:(c=new ft(Ir,c.ch,c.sticky),be=fn(a,Ir))}function zt(Ir){var dr;if(v=="codepoint"){var Br=be.text.charCodeAt(c.ch+(v>0?0:-1));isNaN(Br)?dr=null:dr=new ft(c.line,Math.max(0,Math.min(be.text.length,c.ch+y*(Br>=55296&&Br<56320?2:1))),-y)}else w?dr=ys(a.cm,be,c,y):dr=Ks(be,c,y);if(dr==null)if(!Ir&&We())c=Xo(w,a.cm,be,c.line,ve);else return!1;else c=dr;return!0}if(v=="char"||v=="codepoint")zt();else if(v=="column")zt(!0);else if(v=="word"||v=="group")for(var it=null,bn=v=="group",mn=a.cm&&a.cm.getHelper(c,"wordChars"),li=!0;!(y<0&&!zt(!li));li=!1){var vi=be.text.charAt(c.ch)||`
|
|
|
`,Oi=X(vi,mn)?"w":bn&&vi==`
|
|
|
`?"n":!bn||/\s/.test(vi)?null:"p";if(bn&&!li&&!Oi&&(Oi="s"),it&&it!=Oi){y<0&&(y=1,zt(),c.sticky="after");break}if(Oi&&(it=Oi),y>0&&!zt(!li))break}var ir=gr(a,c,H,te,!0);return Mt(H,ir)&&(ir.hitSide=!0),ir}function mh(a,c,y,v){var w=a.doc,H=c.left,te;if(v=="page"){var be=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),ve=Math.max(be-.5*Pl(a.display),3);te=(y>0?c.bottom:c.top)+y*ve}else v=="line"&&(te=y>0?c.bottom+3:c.top-3);for(var We;We=lu(a,H,te),!!We.outside;){if(y<0?te<=0:te>=w.height){We.hitSide=!0;break}te+=y*5}return We}var Ys=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new se,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ys.prototype.init=function(a){var c=this,y=this,v=y.cm,w=y.div=a.lineDiv;dp(w,v.options.spellcheck,v.options.autocorrect,v.options.autocapitalize);function H(be){for(var ve=be.target;ve;ve=ve.parentNode){if(ve==w)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ve.className))break}return!1}Ot(w,"paste",function(be){!H(be)||Pt(v,be)||up(be,v)||_<=11&&setTimeout(fe(v,function(){return c.updateFromDOM()}),20)}),Ot(w,"compositionstart",function(be){c.composing={data:be.data,done:!1}}),Ot(w,"compositionupdate",function(be){c.composing||(c.composing={data:be.data,done:!1})}),Ot(w,"compositionend",function(be){c.composing&&(be.data!=c.composing.data&&c.readFromDOMSoon(),c.composing.done=!0)}),Ot(w,"touchstart",function(){return y.forceCompositionEnd()}),Ot(w,"input",function(){c.composing||c.readFromDOMSoon()});function te(be){if(!(!H(be)||Pt(v,be))){if(v.somethingSelected())Hh({lineWise:!1,text:v.getSelections()}),be.type=="cut"&&v.replaceSelection("",null,"cut");else if(v.options.lineWiseCopyCut){var ve=hp(v);Hh({lineWise:!0,text:ve.text}),be.type=="cut"&&v.operation(function(){v.setSelections(ve.ranges,0,yt),v.replaceSelection("",null,"cut")})}else return;if(be.clipboardData){be.clipboardData.clearData();var We=mu.text.join(`
|
|
|
`);if(be.clipboardData.setData("Text",We),be.clipboardData.getData("Text")==We){be.preventDefault();return}}var zt=fp(),it=zt.firstChild;v.display.lineSpace.insertBefore(zt,v.display.lineSpace.firstChild),it.value=mu.text.join(`
|
|
|
`);var bn=document.activeElement;kt(it),setTimeout(function(){v.display.lineSpace.removeChild(zt),bn.focus(),bn==w&&y.showPrimarySelection()},50)}}Ot(w,"copy",te),Ot(w,"cut",te)},Ys.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},Ys.prototype.prepareSelection=function(){var a=cu(this.cm,!1);return a.focus=document.activeElement==this.div,a},Ys.prototype.showSelection=function(a,c){!a||!this.cm.display.view.length||((a.focus||c)&&this.showPrimarySelection(),this.showMultipleSelections(a))},Ys.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ys.prototype.showPrimarySelection=function(){var a=this.getSelection(),c=this.cm,y=c.doc.sel.primary(),v=y.from(),w=y.to();if(c.display.viewTo==c.display.viewFrom||v.line>=c.display.viewTo||w.line<c.display.viewFrom){a.removeAllRanges();return}var H=Bd(c,a.anchorNode,a.anchorOffset),te=Bd(c,a.focusNode,a.focusOffset);if(!(H&&!H.bad&&te&&!te.bad&&Fn(Gt(H,te),v)==0&&Fn(D(H,te),w)==0)){var be=c.display.view,ve=v.line>=c.display.viewFrom&&mf(c,v)||{node:be[0].measure.map[2],offset:0},We=w.line<c.display.viewTo&&mf(c,w);if(!We){var zt=be[be.length-1].measure,it=zt.maps?zt.maps[zt.maps.length-1]:zt.map;We={node:it[it.length-1],offset:it[it.length-2]-it[it.length-3]}}if(!ve||!We){a.removeAllRanges();return}var bn=a.rangeCount&&a.getRangeAt(0),mn;try{mn=ie(ve.node,ve.offset,We.offset,We.node)}catch(li){}mn&&(!b&&c.state.focused?(a.collapse(ve.node,ve.offset),mn.collapsed||(a.removeAllRanges(),a.addRange(mn))):(a.removeAllRanges(),a.addRange(mn)),bn&&a.anchorNode==null?a.addRange(bn):b&&this.startGracePeriod()),this.rememberSelection()}},Ys.prototype.startGracePeriod=function(){var a=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){a.gracePeriod=!1,a.selectionChanged()&&a.cm.operation(function(){return a.cm.curOp.selectionChanged=!0})},20)},Ys.prototype.showMultipleSelections=function(a){Le(this.cm.display.cursorDiv,a.cursors),Le(this.cm.display.selectionDiv,a.selection)},Ys.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},Ys.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var c=a.getRangeAt(0).commonAncestorContainer;return at(this.div,c)},Ys.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ys.prototype.blur=function(){this.div.blur()},Ys.prototype.getField=function(){return this.div},Ys.prototype.supportsTouch=function(){return!0},Ys.prototype.receivedFocus=function(){var a=this;this.selectionInEditor()?this.pollSelection():Nt(this.cm,function(){return a.cm.curOp.selectionChanged=!0});function c(){a.cm.state.focused&&(a.pollSelection(),a.polling.set(a.cm.options.pollInterval,c))}this.polling.set(this.cm.options.pollInterval,c)},Ys.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},Ys.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),c=this.cm;if(Ie&&ue&&this.cm.display.gutterSpecs.length&&pp(a.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var y=Bd(c,a.anchorNode,a.anchorOffset),v=Bd(c,a.focusNode,a.focusOffset);y&&v&&Nt(c,function(){g(c.doc,Si(y,v),yt),(y.bad||v.bad)&&(c.curOp.selectionChanged=!0)})}}},Ys.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var a=this.cm,c=a.display,y=a.doc.sel.primary(),v=y.from(),w=y.to();if(v.ch==0&&v.line>a.firstLine()&&(v=ft(v.line-1,fn(a.doc,v.line-1).length)),w.ch==fn(a.doc,w.line).text.length&&w.line<a.lastLine()&&(w=ft(w.line+1,0)),v.line<c.viewFrom||w.line>c.viewTo-1)return!1;var H,te,be;v.line==c.viewFrom||(H=da(a,v.line))==0?(te=pt(c.view[0].line),be=c.view[0].node):(te=pt(c.view[H].line),be=c.view[H-1].node.nextSibling);var ve=da(a,w.line),We,zt;if(ve==c.view.length-1?(We=c.viewTo-1,zt=c.lineDiv.lastChild):(We=pt(c.view[ve+1].line)-1,zt=c.view[ve+1].node.previousSibling),!be)return!1;for(var it=a.doc.splitLines(pd(a,be,zt,te,We)),bn=Sn(a.doc,ft(te,0),ft(We,fn(a.doc,We).text.length));it.length>1&&bn.length>1;)if(Xn(it)==Xn(bn))it.pop(),bn.pop(),We--;else if(it[0]==bn[0])it.shift(),bn.shift(),te++;else break;for(var mn=0,li=0,vi=it[0],Oi=bn[0],ir=Math.min(vi.length,Oi.length);mn<ir&&vi.charCodeAt(mn)==Oi.charCodeAt(mn);)++mn;for(var Ir=Xn(it),dr=Xn(bn),Br=Math.min(Ir.length-(it.length==1?mn:0),dr.length-(bn.length==1?mn:0));li<Br&&Ir.charCodeAt(Ir.length-li-1)==dr.charCodeAt(dr.length-li-1);)++li;if(it.length==1&&bn.length==1&&te==v.line)for(;mn&&mn>v.ch&&Ir.charCodeAt(Ir.length-li-1)==dr.charCodeAt(dr.length-li-1);)mn--,li++;it[it.length-1]=Ir.slice(0,Ir.length-li).replace(/^\u200b+/,""),it[0]=it[0].slice(mn).replace(/\u200b+$/,"");var ho=ft(te,mn),ur=ft(We,bn.length?Xn(bn).length-li:0);if(it.length>1||it[0]||Fn(ho,ur))return Sa(a.doc,it,ho,ur,"+input"),!0},Ys.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ys.prototype.reset=function(){this.forceCompositionEnd()},Ys.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ys.prototype.readFromDOMSoon=function(){var a=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(a.readDOMTimeout=null,a.composing)if(a.composing.done)a.composing=null;else return;a.updateFromDOM()},80))},Ys.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&Nt(this.cm,function(){return go(a.cm)})},Ys.prototype.setUneditable=function(a){a.contentEditable="false"},Ys.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||fe(this.cm,Pd)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},Ys.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},Ys.prototype.onContextMenu=function(){},Ys.prototype.resetPosition=function(){},Ys.prototype.needsContentAttribute=!0;function mf(a,c){var y=ea(a,c.line);if(!y||y.hidden)return null;var v=fn(a.doc,c.line),w=$a(y,v,c.line),H=nn(v,a.doc.direction),te="left";if(H){var be=Qe(H,c.ch);te=be%2?"right":"left"}var ve=Na(w.map,c.ch,te);return ve.offset=ve.collapse=="right"?ve.end:ve.start,ve}function pp(a){for(var c=a;c;c=c.parentNode)if(/CodeMirror-gutter-wrapper/.test(c.className))return!0;return!1}function fd(a,c){return c&&(a.bad=!0),a}function pd(a,c,y,v,w){var H="",te=!1,be=a.doc.lineSeparator(),ve=!1;function We(mn){return function(li){return li.id==mn}}function zt(){te&&(H+=be,ve&&(H+=be),te=ve=!1)}function it(mn){mn&&(zt(),H+=mn)}function bn(mn){if(mn.nodeType==1){var li=mn.getAttribute("cm-text");if(li){it(li);return}var vi=mn.getAttribute("cm-marker"),Oi;if(vi){var ir=a.findMarks(ft(v,0),ft(w+1,0),We(+vi));ir.length&&(Oi=ir[0].find(0))&&it(Sn(a.doc,Oi.from,Oi.to).join(be));return}if(mn.getAttribute("contenteditable")=="false")return;var Ir=/^(pre|div|p|li|table|br)$/i.test(mn.nodeName);if(!/^br$/i.test(mn.nodeName)&&mn.textContent.length==0)return;Ir&&zt();for(var dr=0;dr<mn.childNodes.length;dr++)bn(mn.childNodes[dr]);/^(pre|p)$/i.test(mn.nodeName)&&(ve=!0),Ir&&(te=!0)}else mn.nodeType==3&&it(mn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;bn(c),c!=y;)c=c.nextSibling,ve=!1;return H}function Bd(a,c,y){var v;if(c==a.display.lineDiv){if(v=a.display.lineDiv.childNodes[y],!v)return fd(a.clipPos(ft(a.display.viewTo-1)),!0);c=null,y=0}else for(v=c;;v=v.parentNode){if(!v||v==a.display.lineDiv)return null;if(v.parentNode&&v.parentNode==a.display.lineDiv)break}for(var w=0;w<a.display.view.length;w++){var H=a.display.view[w];if(H.node==v)return y0(H,c,y)}}function y0(a,c,y){var v=a.text.firstChild,w=!1;if(!c||!at(v,c))return fd(ft(pt(a.line),0),!0);if(c==v&&(w=!0,c=v.childNodes[y],y=0,!c)){var H=a.rest?Xn(a.rest):a.line;return fd(ft(pt(H),H.text.length),w)}var te=c.nodeType==3?c:null,be=c;for(!te&&c.childNodes.length==1&&c.firstChild.nodeType==3&&(te=c.firstChild,y&&(y=te.nodeValue.length));be.parentNode!=v;)be=be.parentNode;var ve=a.measure,We=ve.maps;function zt(Oi,ir,Ir){for(var dr=-1;dr<(We?We.length:0);dr++)for(var Br=dr<0?ve.map:We[dr],ho=0;ho<Br.length;ho+=3){var ur=Br[ho+2];if(ur==Oi||ur==ir){var Uo=pt(dr<0?a.line:a.rest[dr]),aa=Br[ho]+Ir;return(Ir<0||ur!=Oi)&&(aa=Br[ho+(Ir?1:0)]),ft(Uo,aa)}}}var it=zt(te,be,y);if(it)return fd(it,w);for(var bn=be.nextSibling,mn=te?te.nodeValue.length-y:0;bn;bn=bn.nextSibling){if(it=zt(bn,bn.firstChild,0),it)return fd(ft(it.line,it.ch-mn),w);mn+=bn.textContent.length}for(var li=be.previousSibling,vi=y;li;li=li.previousSibling){if(it=zt(li,li.firstChild,-1),it)return fd(ft(it.line,it.ch+vi),w);vi+=li.textContent.length}}var tl=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new se,this.hasSelection=!1,this.composing=null};tl.prototype.init=function(a){var c=this,y=this,v=this.cm;this.createField(a);var w=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),Ue&&(w.style.width="0px"),Ot(w,"input",function(){W&&_>=9&&c.hasSelection&&(c.hasSelection=null),y.poll()}),Ot(w,"paste",function(te){Pt(v,te)||up(te,v)||(v.state.pasteIncoming=+new Date,y.fastPoll())});function H(te){if(!Pt(v,te)){if(v.somethingSelected())Hh({lineWise:!1,text:v.getSelections()});else if(v.options.lineWiseCopyCut){var be=hp(v);Hh({lineWise:!0,text:be.text}),te.type=="cut"?v.setSelections(be.ranges,null,yt):(y.prevInput="",w.value=be.text.join(`
|
|
|
`),kt(w))}else return;te.type=="cut"&&(v.state.cutIncoming=+new Date)}}Ot(w,"cut",H),Ot(w,"copy",H),Ot(a.scroller,"paste",function(te){if(!(Ra(a,te)||Pt(v,te))){if(!w.dispatchEvent){v.state.pasteIncoming=+new Date,y.focus();return}var be=new Event("paste");be.clipboardData=te.clipboardData,w.dispatchEvent(be)}}),Ot(a.lineSpace,"selectstart",function(te){Ra(a,te)||Rn(te)}),Ot(w,"compositionstart",function(){var te=v.getCursor("from");y.composing&&y.composing.range.clear(),y.composing={start:te,range:v.markText(te,v.getCursor("to"),{className:"CodeMirror-composing"})}}),Ot(w,"compositionend",function(){y.composing&&(y.poll(),y.composing.range.clear(),y.composing=null)})},tl.prototype.createField=function(a){this.wrapper=fp(),this.textarea=this.wrapper.firstChild},tl.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},tl.prototype.prepareSelection=function(){var a=this.cm,c=a.display,y=a.doc,v=cu(a);if(a.options.moveInputWithCursor){var w=ws(a,y.sel.primary().head,"div"),H=c.wrapper.getBoundingClientRect(),te=c.lineDiv.getBoundingClientRect();v.teTop=Math.max(0,Math.min(c.wrapper.clientHeight-10,w.top+te.top-H.top)),v.teLeft=Math.max(0,Math.min(c.wrapper.clientWidth-10,w.left+te.left-H.left))}return v},tl.prototype.showSelection=function(a){var c=this.cm,y=c.display;Le(y.cursorDiv,a.cursors),Le(y.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},tl.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var c=this.cm;if(c.somethingSelected()){this.prevInput="";var y=c.getSelection();this.textarea.value=y,c.state.focused&&kt(this.textarea),W&&_>=9&&(this.hasSelection=y)}else a||(this.prevInput=this.textarea.value="",W&&_>=9&&(this.hasSelection=null))}},tl.prototype.getField=function(){return this.textarea},tl.prototype.supportsTouch=function(){return!1},tl.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!De||Ze()!=this.textarea))try{this.textarea.focus()}catch(a){}},tl.prototype.blur=function(){this.textarea.blur()},tl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},tl.prototype.receivedFocus=function(){this.slowPoll()},tl.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},tl.prototype.fastPoll=function(){var a=!1,c=this;c.pollingFast=!0;function y(){var v=c.poll();!v&&!a?(a=!0,c.polling.set(60,y)):(c.pollingFast=!1,c.slowPoll())}c.polling.set(20,y)},tl.prototype.poll=function(){var a=this,c=this.cm,y=this.textarea,v=this.prevInput;if(this.contextMenuPending||!c.state.focused||U(y)&&!v&&!this.composing||c.isReadOnly()||c.options.disableInput||c.state.keySeq)return!1;var w=y.value;if(w==v&&!c.somethingSelected())return!1;if(W&&_>=9&&this.hasSelection===w||Fe&&/[\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&&!v&&(v="\u200B"),H==8666)return this.reset(),this.cm.execCommand("undo")}for(var te=0,be=Math.min(v.length,w.length);te<be&&v.charCodeAt(te)==w.charCodeAt(te);)++te;return Nt(c,function(){Pd(c,w.slice(te),v.length-te,null,a.composing?"*compose":null),w.length>1e3||w.indexOf(`
|
|
|
`)>-1?y.value=a.prevInput="":a.prevInput=w,a.composing&&(a.composing.range.clear(),a.composing.range=c.markText(a.composing.start,c.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},tl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},tl.prototype.onKeyPress=function(){W&&_>=9&&(this.hasSelection=null),this.fastPoll()},tl.prototype.onContextMenu=function(a){var c=this,y=c.cm,v=y.display,w=c.textarea;c.contextMenuPending&&c.contextMenuPending();var H=Da(y,a),te=v.scroller.scrollTop;if(!H||ne)return;var be=y.options.resetSelectionOnContextMenu;be&&y.doc.sel.contains(H)==-1&&fe(y,g)(y.doc,Si(H),yt);var ve=w.style.cssText,We=c.wrapper.style.cssText,zt=c.wrapper.offsetParent.getBoundingClientRect();c.wrapper.style.cssText="position: static",w.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(a.clientY-zt.top-5)+"px; left: "+(a.clientX-zt.left-5)+`px;
|
|
|
z-index: 1000; background: `+(W?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var it;M&&(it=window.scrollY),v.input.focus(),M&&window.scrollTo(null,it),v.input.reset(),y.somethingSelected()||(w.value=c.prevInput=" "),c.contextMenuPending=mn,v.selForContextMenu=y.doc.sel,clearTimeout(v.detectingSelectAll);function bn(){if(w.selectionStart!=null){var vi=y.somethingSelected(),Oi="\u200B"+(vi?w.value:"");w.value="\u21DA",w.value=Oi,c.prevInput=vi?"":"\u200B",w.selectionStart=1,w.selectionEnd=Oi.length,v.selForContextMenu=y.doc.sel}}function mn(){if(c.contextMenuPending==mn&&(c.contextMenuPending=!1,c.wrapper.style.cssText=We,w.style.cssText=ve,W&&_<9&&v.scrollbars.setScrollTop(v.scroller.scrollTop=te),w.selectionStart!=null)){(!W||W&&_<9)&&bn();var vi=0,Oi=function(){v.selForContextMenu==y.doc.sel&&w.selectionStart==0&&w.selectionEnd>0&&c.prevInput=="\u200B"?fe(y,Gr)(y):vi++<10?v.detectingSelectAll=setTimeout(Oi,500):(v.selForContextMenu=null,v.input.reset())};v.detectingSelectAll=setTimeout(Oi,200)}}if(W&&_>=9&&bn(),Te){Ci(a);var li=function(){hn(window,"mouseup",li),setTimeout(mn,20)};Ot(window,"mouseup",li)}else setTimeout(mn,50)},tl.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},tl.prototype.setUneditable=function(){},tl.prototype.needsContentAttribute=!1;function b0(a,c){if(c=c?wn(c):{},c.value=a.value,!c.tabindex&&a.tabIndex&&(c.tabindex=a.tabIndex),!c.placeholder&&a.placeholder&&(c.placeholder=a.placeholder),c.autofocus==null){var y=Ze();c.autofocus=y==a||a.getAttribute("autofocus")!=null&&y==document.body}function v(){a.value=be.getValue()}var w;if(a.form&&(Ot(a.form,"submit",v),!c.leaveSubmitMethodAlone)){var H=a.form;w=H.submit;try{var te=H.submit=function(){v(),H.submit=w,H.submit(),H.submit=te}}catch(ve){}}c.finishInit=function(ve){ve.save=v,ve.getTextArea=function(){return a},ve.toTextArea=function(){ve.toTextArea=isNaN,v(),a.parentNode.removeChild(ve.getWrapperElement()),a.style.display="",a.form&&(hn(a.form,"submit",v),!c.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=w))}},a.style.display="none";var be=xs(function(ve){return a.parentNode.insertBefore(ve,a.nextSibling)},c);return be}function md(a){a.off=hn,a.on=Ot,a.wheelEventPixels=Vt,a.Doc=Pi,a.splitLines=rr,a.countColumn=Xe,a.findColumn=ui,a.isWordChar=j,a.Pass=jt,a.signal=Ve,a.Line=ca,a.changeEnd=Cr,a.scrollbarModel=Tu,a.Pos=ft,a.cmpPos=Fn,a.modes=Hr,a.mimeModes=uo,a.resolveMode=fr,a.getMode=Xi,a.modeExtensions=di,a.extendMode=ht,a.copyState=_n,a.startState=gt,a.innerMode=Hn,a.commands=za,a.keyMap=Aa,a.keyName=Pc,a.isModifierKey=Au,a.lookupKey=Fa,a.normalizeKeyMap=Kl,a.StringStream=Ge,a.SharedTextMarker=dt,a.TextMarker=Z,a.LineWidget=S,a.e_preventDefault=Rn,a.e_stopPropagation=Cn,a.e_stop=Ci,a.addClass=Bt,a.contains=at,a.rmClass=Ce,a.keyNames=ls}g0(xs),ph(xs);var Qc="iter insert remove copy getEditor constructor".split(" ");for(var _d in Pi.prototype)Pi.prototype.hasOwnProperty(_d)&&le(Qc,_d)<0&&(xs.prototype[_d]=function(a){return function(){return a.apply(this.doc,arguments)}}(Pi.prototype[_d]));return He(Pi),xs.inputStyles={textarea:tl,contenteditable:Ys},xs.defineMode=function(a){!xs.defaults.mode&&a!="null"&&(xs.defaults.mode=a),Tr.apply(this,arguments)},xs.defineMIME=Jr,xs.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),xs.defineMIME("text/plain","null"),xs.defineExtension=function(a,c){xs.prototype[a]=c},xs.defineDocExtension=function(a,c){Pi.prototype[a]=c},xs.fromTextArea=b0,md(xs),xs.version="5.58.2",xs})},25419:function(Q,C,d){(function(b){b(d(89780),d(15525),d(98101))})(function(b){"use strict";b.defineMode("markdown",function(I,O){var z=b.getMode(I,"text/html"),W=z.name=="null";function _(Xe){if(b.findModeByName){var se=b.findModeByName(Xe);se&&(Xe=se.mime||se.mimes[0])}var le=b.getMode(I,Xe);return le.name=="null"?null:le}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 pe in M)M.hasOwnProperty(pe)&&O.tokenTypeOverrides[pe]&&(M[pe]=O.tokenTypeOverrides[pe]);var ue=/^([*\-_])(?:\s*\1){2,}\s*$/,ne=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Pe=/^\[(x| )\](?=\s)/i,ke=O.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,rt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Ue=/^[^#!\[\]*_\\<>` "'(~:]+/,Ie=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,De=/^\s*\[[^\]]+?\]:.*$/,Fe=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,de=" ";function me(Xe,se,le){return se.f=se.inline=le,le(Xe,se)}function we(Xe,se,le){return se.f=se.block=le,le(Xe,se)}function ge(Xe){return!Xe||!/\S/.test(Xe.string)}function Te(Xe){if(Xe.linkTitle=!1,Xe.linkHref=!1,Xe.linkText=!1,Xe.em=!1,Xe.strong=!1,Xe.strikethrough=!1,Xe.quote=0,Xe.indentedCode=!1,Xe.f==Ce){var se=W;if(!se){var le=b.innerMode(z,Xe.htmlState);se=le.mode.name=="xml"&&le.state.tagStart===null&&!le.state.context&&le.state.tokenize.isInText}se&&(Xe.f=nt,Xe.block=ee,Xe.htmlState=null)}return Xe.trailingSpace=0,Xe.trailingSpaceNewLine=!1,Xe.prevLine=Xe.thisLine,Xe.thisLine={stream:null},null}function ee(Xe,se){var le=Xe.column()===se.indentation,_t=ge(se.prevLine.stream),jt=se.indentedCode,yt=se.prevLine.hr,ln=se.list!==!1,Dt=(se.listStack[se.listStack.length-1]||0)+3;se.indentedCode=!1;var ui=se.indentation;if(se.indentationDiff===null&&(se.indentationDiff=se.indentation,ln)){for(se.list=null;ui<se.listStack[se.listStack.length-1];)se.listStack.pop(),se.listStack.length?se.indentation=se.listStack[se.listStack.length-1]:se.list=!1;se.list!==!1&&(se.indentationDiff=ui-se.listStack[se.listStack.length-1])}var On=!_t&&!yt&&!se.prevLine.header&&(!ln||!jt)&&!se.prevLine.fencedCodeEnd,ri=(se.list===!1||yt||_t)&&se.indentation<=Dt&&Xe.match(ue),Xn=null;if(se.indentationDiff>=4&&(jt||se.prevLine.fencedCodeEnd||se.prevLine.header||_t))return Xe.skipToEnd(),se.indentedCode=!0,M.code;if(Xe.eatSpace())return null;if(le&&se.indentation<=Dt&&(Xn=Xe.match(ke))&&Xn[1].length<=6)return se.quote=0,se.header=Xn[1].length,se.thisLine.header=!0,O.highlightFormatting&&(se.formatting="header"),se.f=se.inline,Le(se);if(se.indentation<=Dt&&Xe.eat(">"))return se.quote=le?1:se.quote+1,O.highlightFormatting&&(se.formatting="quote"),Xe.eatSpace(),Le(se);if(!ri&&!se.setext&&le&&se.indentation<=Dt&&(Xn=Xe.match(ne))){var Tn=Xn[1]?"ol":"ul";return se.indentation=ui+Xe.current().length,se.list=!0,se.quote=0,se.listStack.push(se.indentation),se.em=!1,se.strong=!1,se.code=!1,se.strikethrough=!1,O.taskLists&&Xe.match(Pe,!1)&&(se.taskList=!0),se.f=se.inline,O.highlightFormatting&&(se.formatting=["list","list-"+Tn]),Le(se)}else{if(le&&se.indentation<=Dt&&(Xn=Xe.match(Ie,!0)))return se.quote=0,se.fencedEndRE=new RegExp(Xn[1]+"+ *$"),se.localMode=O.fencedCodeBlockHighlighting&&_(Xn[2]||O.fencedCodeBlockDefaultMode),se.localMode&&(se.localState=b.startState(se.localMode)),se.f=se.block=Ne,O.highlightFormatting&&(se.formatting="code-block"),se.code=-1,Le(se);if(se.setext||(!On||!ln)&&!se.quote&&se.list===!1&&!se.code&&!ri&&!De.test(Xe.string)&&(Xn=Xe.lookAhead(1))&&(Xn=Xn.match(rt)))return se.setext?(se.header=se.setext,se.setext=0,Xe.skipToEnd(),O.highlightFormatting&&(se.formatting="header")):(se.header=Xn[0].charAt(0)=="="?1:2,se.setext=se.header),se.thisLine.header=!0,se.f=se.inline,Le(se);if(ri)return Xe.skipToEnd(),se.hr=!0,se.thisLine.hr=!0,M.hr;if(Xe.peek()==="[")return me(Xe,se,bt)}return me(Xe,se,se.inline)}function Ce(Xe,se){var le=z.token(Xe,se.htmlState);if(!W){var _t=b.innerMode(z,se.htmlState);(_t.mode.name=="xml"&&_t.state.tagStart===null&&!_t.state.context&&_t.state.tokenize.isInText||se.md_inside&&Xe.current().indexOf(">")>-1)&&(se.f=nt,se.block=ee,se.htmlState=null)}return le}function Ne(Xe,se){var le=se.listStack[se.listStack.length-1]||0,_t=se.indentation<le,jt=le+3;if(se.fencedEndRE&&se.indentation<=jt&&(_t||Xe.match(se.fencedEndRE))){O.highlightFormatting&&(se.formatting="code-block");var yt;return _t||(yt=Le(se)),se.localMode=se.localState=null,se.block=ee,se.f=nt,se.fencedEndRE=null,se.code=0,se.thisLine.fencedCodeEnd=!0,_t?we(Xe,se,se.block):yt}else return se.localMode?se.localMode.token(Xe,se.localState):(Xe.skipToEnd(),M.code)}function Le(Xe){var se=[];if(Xe.formatting){se.push(M.formatting),typeof Xe.formatting=="string"&&(Xe.formatting=[Xe.formatting]);for(var le=0;le<Xe.formatting.length;le++)se.push(M.formatting+"-"+Xe.formatting[le]),Xe.formatting[le]==="header"&&se.push(M.formatting+"-"+Xe.formatting[le]+"-"+Xe.header),Xe.formatting[le]==="quote"&&(!O.maxBlockquoteDepth||O.maxBlockquoteDepth>=Xe.quote?se.push(M.formatting+"-"+Xe.formatting[le]+"-"+Xe.quote):se.push("error"))}if(Xe.taskOpen)return se.push("meta"),se.length?se.join(" "):null;if(Xe.taskClosed)return se.push("property"),se.length?se.join(" "):null;if(Xe.linkHref?se.push(M.linkHref,"url"):(Xe.strong&&se.push(M.strong),Xe.em&&se.push(M.em),Xe.strikethrough&&se.push(M.strikethrough),Xe.emoji&&se.push(M.emoji),Xe.linkText&&se.push(M.linkText),Xe.code&&se.push(M.code),Xe.image&&se.push(M.image),Xe.imageAltText&&se.push(M.imageAltText,"link"),Xe.imageMarker&&se.push(M.imageMarker)),Xe.header&&se.push(M.header,M.header+"-"+Xe.header),Xe.quote&&(se.push(M.quote),!O.maxBlockquoteDepth||O.maxBlockquoteDepth>=Xe.quote?se.push(M.quote+"-"+Xe.quote):se.push(M.quote+"-"+O.maxBlockquoteDepth)),Xe.list!==!1){var _t=(Xe.listStack.length-1)%3;_t?_t===1?se.push(M.list2):se.push(M.list3):se.push(M.list1)}return Xe.trailingSpaceNewLine?se.push("trailing-space-new-line"):Xe.trailingSpace&&se.push("trailing-space-"+(Xe.trailingSpace%2?"a":"b")),se.length?se.join(" "):null}function Ke(Xe,se){if(Xe.match(Ue,!0))return Le(se)}function nt(Xe,se){var le=se.text(Xe,se);if(typeof le!="undefined")return le;if(se.list)return se.list=null,Le(se);if(se.taskList){var _t=Xe.match(Pe,!0)[1]===" ";return _t?se.taskOpen=!0:se.taskClosed=!0,O.highlightFormatting&&(se.formatting="task"),se.taskList=!1,Le(se)}if(se.taskOpen=!1,se.taskClosed=!1,se.header&&Xe.match(/^#+$/,!0))return O.highlightFormatting&&(se.formatting="header"),Le(se);var jt=Xe.next();if(se.linkTitle){se.linkTitle=!1;var yt=jt;jt==="("&&(yt=")"),yt=(yt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var ln="^\\s*(?:[^"+yt+"\\\\]+|\\\\\\\\|\\\\.)"+yt;if(Xe.match(new RegExp(ln),!0))return M.linkHref}if(jt==="`"){var Dt=se.formatting;O.highlightFormatting&&(se.formatting="code"),Xe.eatWhile("`");var ui=Xe.current().length;if(se.code==0&&(!se.quote||ui==1))return se.code=ui,Le(se);if(ui==se.code){var On=Le(se);return se.code=0,On}else return se.formatting=Dt,Le(se)}else if(se.code)return Le(se);if(jt==="\\"&&(Xe.next(),O.highlightFormatting)){var ri=Le(se),Xn=M.formatting+"-escape";return ri?ri+" "+Xn:Xn}if(jt==="!"&&Xe.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return se.imageMarker=!0,se.image=!0,O.highlightFormatting&&(se.formatting="image"),Le(se);if(jt==="["&&se.imageMarker&&Xe.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return se.imageMarker=!1,se.imageAltText=!0,O.highlightFormatting&&(se.formatting="image"),Le(se);if(jt==="]"&&se.imageAltText){O.highlightFormatting&&(se.formatting="image");var ri=Le(se);return se.imageAltText=!1,se.image=!1,se.inline=se.f=at,ri}if(jt==="["&&!se.image)return se.linkText&&Xe.match(/^.*?\]/)||(se.linkText=!0,O.highlightFormatting&&(se.formatting="link")),Le(se);if(jt==="]"&&se.linkText){O.highlightFormatting&&(se.formatting="link");var ri=Le(se);return se.linkText=!1,se.inline=se.f=Xe.match(/\(.*?\)| ?\[.*?\]/,!1)?at:nt,ri}if(jt==="<"&&Xe.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){se.f=se.inline=ie,O.highlightFormatting&&(se.formatting="link");var ri=Le(se);return ri?ri+=" ":ri="",ri+M.linkInline}if(jt==="<"&&Xe.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){se.f=se.inline=ie,O.highlightFormatting&&(se.formatting="link");var ri=Le(se);return ri?ri+=" ":ri="",ri+M.linkEmail}if(O.xml&&jt==="<"&&Xe.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Tn=Xe.string.indexOf(">",Xe.pos);if(Tn!=-1){var Nn=Xe.string.substring(Xe.start,Tn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Nn)&&(se.md_inside=!0)}return Xe.backUp(1),se.htmlState=b.startState(z),we(Xe,se,Ce)}if(O.xml&&jt==="<"&&Xe.match(/^\/\w*?>/))return se.md_inside=!1,"tag";if(jt==="*"||jt==="_"){for(var xe=1,P=Xe.pos==1?" ":Xe.string.charAt(Xe.pos-2);xe<3&&Xe.eat(jt);)xe++;var k=Xe.peek()||" ",j=!/\s/.test(k)&&(!Fe.test(k)||/\s/.test(P)||Fe.test(P)),X=!/\s/.test(P)&&(!Fe.test(P)||/\s/.test(k)||Fe.test(k)),N=null,Re=null;if(xe%2&&(!se.em&&j&&(jt==="*"||!X||Fe.test(P))?N=!0:se.em==jt&&X&&(jt==="*"||!j||Fe.test(k))&&(N=!1)),xe>1&&(!se.strong&&j&&(jt==="*"||!X||Fe.test(P))?Re=!0:se.strong==jt&&X&&(jt==="*"||!j||Fe.test(k))&&(Re=!1)),Re!=null||N!=null){O.highlightFormatting&&(se.formatting=N==null?"strong":Re==null?"em":"strong em"),N===!0&&(se.em=jt),Re===!0&&(se.strong=jt);var On=Le(se);return N===!1&&(se.em=!1),Re===!1&&(se.strong=!1),On}}else if(jt===" "&&(Xe.eat("*")||Xe.eat("_"))){if(Xe.peek()===" ")return Le(se);Xe.backUp(1)}if(O.strikethrough){if(jt==="~"&&Xe.eatWhile(jt)){if(se.strikethrough){O.highlightFormatting&&(se.formatting="strikethrough");var On=Le(se);return se.strikethrough=!1,On}else if(Xe.match(/^[^\s]/,!1))return se.strikethrough=!0,O.highlightFormatting&&(se.formatting="strikethrough"),Le(se)}else if(jt===" "&&Xe.match(/^~~/,!0)){if(Xe.peek()===" ")return Le(se);Xe.backUp(2)}}if(O.emoji&&jt===":"&&Xe.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){se.emoji=!0,O.highlightFormatting&&(se.formatting="emoji");var wt=Le(se);return se.emoji=!1,wt}return jt===" "&&(Xe.match(/^ +$/,!1)?se.trailingSpace++:se.trailingSpace&&(se.trailingSpaceNewLine=!0)),Le(se)}function ie(Xe,se){var le=Xe.next();if(le===">"){se.f=se.inline=nt,O.highlightFormatting&&(se.formatting="link");var _t=Le(se);return _t?_t+=" ":_t="",_t+M.linkInline}return Xe.match(/^[^>]+/,!0),M.linkInline}function at(Xe,se){if(Xe.eatSpace())return null;var le=Xe.next();return le==="("||le==="["?(se.f=se.inline=Bt(le==="("?")":"]"),O.highlightFormatting&&(se.formatting="link-string"),se.linkHref=!0,Le(se)):"error"}var Ze={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Bt(Xe){return function(se,le){var _t=se.next();if(_t===Xe){le.f=le.inline=nt,O.highlightFormatting&&(le.formatting="link-string");var jt=Le(le);return le.linkHref=!1,jt}return se.match(Ze[Xe]),le.linkHref=!0,Le(le)}}function bt(Xe,se){return Xe.match(/^([^\]\\]|\\.)*\]:/,!1)?(se.f=kt,Xe.next(),O.highlightFormatting&&(se.formatting="link"),se.linkText=!0,Le(se)):me(Xe,se,nt)}function kt(Xe,se){if(Xe.match(/^\]:/,!0)){se.f=se.inline=Tt,O.highlightFormatting&&(se.formatting="link");var le=Le(se);return se.linkText=!1,le}return Xe.match(/^([^\]\\]|\\.)+/,!0),M.linkText}function Tt(Xe,se){return Xe.eatSpace()?null:(Xe.match(/^[^\s]+/,!0),Xe.peek()===void 0?se.linkTitle=!0:Xe.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),se.f=se.inline=nt,M.linkHref+" url")}var wn={startState:function(){return{f:ee,prevLine:{stream:null},thisLine:{stream:null},block:ee,htmlState:null,indentation:0,inline:nt,text:Ke,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(Xe){return{f:Xe.f,prevLine:Xe.prevLine,thisLine:Xe.thisLine,block:Xe.block,htmlState:Xe.htmlState&&b.copyState(z,Xe.htmlState),indentation:Xe.indentation,localMode:Xe.localMode,localState:Xe.localMode?b.copyState(Xe.localMode,Xe.localState):null,inline:Xe.inline,text:Xe.text,formatting:!1,linkText:Xe.linkText,linkTitle:Xe.linkTitle,linkHref:Xe.linkHref,code:Xe.code,em:Xe.em,strong:Xe.strong,strikethrough:Xe.strikethrough,emoji:Xe.emoji,header:Xe.header,setext:Xe.setext,hr:Xe.hr,taskList:Xe.taskList,list:Xe.list,listStack:Xe.listStack.slice(0),quote:Xe.quote,indentedCode:Xe.indentedCode,trailingSpace:Xe.trailingSpace,trailingSpaceNewLine:Xe.trailingSpaceNewLine,md_inside:Xe.md_inside,fencedEndRE:Xe.fencedEndRE}},token:function(Xe,se){if(se.formatting=!1,Xe!=se.thisLine.stream){if(se.header=0,se.hr=!1,Xe.match(/^\s*$/,!0))return Te(se),null;if(se.prevLine=se.thisLine,se.thisLine={stream:Xe},se.taskList=!1,se.trailingSpace=0,se.trailingSpaceNewLine=!1,!se.localState&&(se.f=se.block,se.f!=Ce)){var le=Xe.match(/^\s*/,!0)[0].replace(/\t/g,de).length;if(se.indentation=le,se.indentationDiff=null,le>0)return null}}return se.f(Xe,se)},innerMode:function(Xe){return Xe.block==Ce?{state:Xe.htmlState,mode:z}:Xe.localState?{state:Xe.localState,mode:Xe.localMode}:{state:Xe,mode:wn}},indent:function(Xe,se,le){return Xe.block==Ce&&z.indent?z.indent(Xe.htmlState,se,le):Xe.localState&&Xe.localMode.indent?Xe.localMode.indent(Xe.localState,se,le):b.Pass},blankLine:Te,getType:Le,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return wn},"xml"),b.defineMIME("text/markdown","markdown"),b.defineMIME("text/x-markdown","markdown")})},98101:function(Q,C,d){(function(b){b(d(89780))})(function(b){"use strict";b.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<b.modeInfo.length;I++){var O=b.modeInfo[I];O.mimes&&(O.mime=O.mimes[0])}b.findModeByMIME=function(z){z=z.toLowerCase();for(var W=0;W<b.modeInfo.length;W++){var _=b.modeInfo[W];if(_.mime==z)return _;if(_.mimes){for(var M=0;M<_.mimes.length;M++)if(_.mimes[M]==z)return _}}if(/\+xml$/.test(z))return b.findModeByMIME("application/xml");if(/\+json$/.test(z))return b.findModeByMIME("application/json")},b.findModeByExtension=function(z){z=z.toLowerCase();for(var W=0;W<b.modeInfo.length;W++){var _=b.modeInfo[W];if(_.ext){for(var M=0;M<_.ext.length;M++)if(_.ext[M]==z)return _}}},b.findModeByFileName=function(z){for(var W=0;W<b.modeInfo.length;W++){var _=b.modeInfo[W];if(_.file&&_.file.test(z))return _}var M=z.lastIndexOf("."),pe=M>-1&&z.substring(M+1,z.length);if(pe)return b.findModeByExtension(pe)},b.findModeByName=function(z){z=z.toLowerCase();for(var W=0;W<b.modeInfo.length;W++){var _=b.modeInfo[W];if(_.name.toLowerCase()==z)return _;if(_.alias){for(var M=0;M<_.alias.length;M++)if(_.alias[M].toLowerCase()==z)return _}}}})},67549:function(Q,C,d){(function(b){b(d(89780))})(function(b){"use strict";b.defineMode("stex",function(I,O){"use strict";function z(Ue,Ie){Ue.cmdState.push(Ie)}function W(Ue){return Ue.cmdState.length>0?Ue.cmdState[Ue.cmdState.length-1]:null}function _(Ue){var Ie=Ue.cmdState.pop();Ie&&Ie.closeBracket()}function M(Ue){for(var Ie=Ue.cmdState,De=Ie.length-1;De>=0;De--){var Fe=Ie[De];if(Fe.name!="DEFAULT")return Fe}return{styleIdentifier:function(){return null}}}function pe(Ue,Ie,De){return function(){this.name=Ue,this.bracketNo=0,this.style=Ie,this.styles=De,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var ue={};ue.importmodule=pe("importmodule","tag",["string","builtin"]),ue.documentclass=pe("documentclass","tag",["","atom"]),ue.usepackage=pe("usepackage","tag",["atom"]),ue.begin=pe("begin","tag",["atom"]),ue.end=pe("end","tag",["atom"]),ue.label=pe("label","tag",["atom"]),ue.ref=pe("ref","tag",["atom"]),ue.eqref=pe("eqref","tag",["atom"]),ue.cite=pe("cite","tag",["atom"]),ue.bibitem=pe("bibitem","tag",["atom"]),ue.Bibitem=pe("Bibitem","tag",["atom"]),ue.RBibitem=pe("RBibitem","tag",["atom"]),ue.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function ne(Ue,Ie){Ue.f=Ie}function Pe(Ue,Ie){var De;if(Ue.match(/^\\[a-zA-Z@]+/)){var Fe=Ue.current().slice(1);return De=ue.hasOwnProperty(Fe)?ue[Fe]:ue.DEFAULT,De=new De,z(Ie,De),ne(Ie,rt),De.style}if(Ue.match(/^\\[$&%#{}_]/)||Ue.match(/^\\[,;!\/\\]/))return"tag";if(Ue.match("\\["))return ne(Ie,function(me,we){return ke(me,we,"\\]")}),"keyword";if(Ue.match("\\("))return ne(Ie,function(me,we){return ke(me,we,"\\)")}),"keyword";if(Ue.match("$$"))return ne(Ie,function(me,we){return ke(me,we,"$$")}),"keyword";if(Ue.match("$"))return ne(Ie,function(me,we){return ke(me,we,"$")}),"keyword";var de=Ue.next();if(de=="%")return Ue.skipToEnd(),"comment";if(de=="}"||de=="]"){if(De=W(Ie),De)De.closeBracket(de),ne(Ie,rt);else return"error";return"bracket"}else return de=="{"||de=="["?(De=ue.DEFAULT,De=new De,z(Ie,De),"bracket"):/\d/.test(de)?(Ue.eatWhile(/[\w.%]/),"atom"):(Ue.eatWhile(/[\w\-_]/),De=M(Ie),De.name=="begin"&&(De.argument=Ue.current()),De.styleIdentifier())}function ke(Ue,Ie,De){if(Ue.eatSpace())return null;if(De&&Ue.match(De))return ne(Ie,Pe),"keyword";if(Ue.match(/^\\[a-zA-Z@]+/))return"tag";if(Ue.match(/^[a-zA-Z]+/))return"variable-2";if(Ue.match(/^\\[$&%#{}_]/)||Ue.match(/^\\[,;!\/]/)||Ue.match(/^[\^_&]/))return"tag";if(Ue.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Ue.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var Fe=Ue.next();return Fe=="{"||Fe=="}"||Fe=="["||Fe=="]"||Fe=="("||Fe==")"?"bracket":Fe=="%"?(Ue.skipToEnd(),"comment"):"error"}function rt(Ue,Ie){var De=Ue.peek(),Fe;return De=="{"||De=="["?(Fe=W(Ie),Fe.openBracket(De),Ue.eat(De),ne(Ie,Pe),"bracket"):/[ \t\r]/.test(De)?(Ue.eat(De),null):(ne(Ie,Pe),_(Ie),Pe(Ue,Ie))}return{startState:function(){var Ue=O.inMathMode?function(Ie,De){return ke(Ie,De)}:Pe;return{cmdState:[],f:Ue}},copyState:function(Ue){return{cmdState:Ue.cmdState.slice(),f:Ue.f}},token:function(Ue,Ie){return Ie.f(Ue,Ie)},blankLine:function(Ue){Ue.f=Pe,Ue.cmdState.length=0},lineComment:"%"}}),b.defineMIME("text/x-stex","stex"),b.defineMIME("text/x-latex","stex")})},15525:function(Q,C,d){(function(b){b(d(89780))})(function(b){"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};b.defineMode("xml",function(z,W){var _=z.indentUnit,M={},pe=W.htmlMode?I:O;for(var ue in pe)M[ue]=pe[ue];for(var ue in W)M[ue]=W[ue];var ne,Pe;function ke(ie,at){function Ze(kt){return at.tokenize=kt,kt(ie,at)}var Bt=ie.next();if(Bt=="<")return ie.eat("!")?ie.eat("[")?ie.match("CDATA[")?Ze(Ie("atom","]]>")):null:ie.match("--")?Ze(Ie("comment","-->")):ie.match("DOCTYPE",!0,!0)?(ie.eatWhile(/[\w\._\-]/),Ze(De(1))):null:ie.eat("?")?(ie.eatWhile(/[\w\._\-]/),at.tokenize=Ie("meta","?>"),"meta"):(ne=ie.eat("/")?"closeTag":"openTag",at.tokenize=rt,"tag bracket");if(Bt=="&"){var bt;return ie.eat("#")?ie.eat("x")?bt=ie.eatWhile(/[a-fA-F\d]/)&&ie.eat(";"):bt=ie.eatWhile(/[\d]/)&&ie.eat(";"):bt=ie.eatWhile(/[\w\.\-:]/)&&ie.eat(";"),bt?"atom":"error"}else return ie.eatWhile(/[^&<]/),null}ke.isInText=!0;function rt(ie,at){var Ze=ie.next();if(Ze==">"||Ze=="/"&&ie.eat(">"))return at.tokenize=ke,ne=Ze==">"?"endTag":"selfcloseTag","tag bracket";if(Ze=="=")return ne="equals",null;if(Ze=="<"){at.tokenize=ke,at.state=we,at.tagName=at.tagStart=null;var Bt=at.tokenize(ie,at);return Bt?Bt+" tag error":"tag error"}else return/[\'\"]/.test(Ze)?(at.tokenize=Ue(Ze),at.stringStartCol=ie.column(),at.tokenize(ie,at)):(ie.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ue(ie){var at=function(Ze,Bt){for(;!Ze.eol();)if(Ze.next()==ie){Bt.tokenize=rt;break}return"string"};return at.isInAttribute=!0,at}function Ie(ie,at){return function(Ze,Bt){for(;!Ze.eol();){if(Ze.match(at)){Bt.tokenize=ke;break}Ze.next()}return ie}}function De(ie){return function(at,Ze){for(var Bt;(Bt=at.next())!=null;){if(Bt=="<")return Ze.tokenize=De(ie+1),Ze.tokenize(at,Ze);if(Bt==">")if(ie==1){Ze.tokenize=ke;break}else return Ze.tokenize=De(ie-1),Ze.tokenize(at,Ze)}return"meta"}}function Fe(ie,at,Ze){this.prev=ie.context,this.tagName=at,this.indent=ie.indented,this.startOfLine=Ze,(M.doNotIndent.hasOwnProperty(at)||ie.context&&ie.context.noIndent)&&(this.noIndent=!0)}function de(ie){ie.context&&(ie.context=ie.context.prev)}function me(ie,at){for(var Ze;;){if(!ie.context||(Ze=ie.context.tagName,!M.contextGrabbers.hasOwnProperty(Ze)||!M.contextGrabbers[Ze].hasOwnProperty(at)))return;de(ie)}}function we(ie,at,Ze){return ie=="openTag"?(Ze.tagStart=at.column(),ge):ie=="closeTag"?Te:we}function ge(ie,at,Ze){return ie=="word"?(Ze.tagName=at.current(),Pe="tag",Ne):M.allowMissingTagName&&ie=="endTag"?(Pe="tag bracket",Ne(ie,at,Ze)):(Pe="error",ge)}function Te(ie,at,Ze){if(ie=="word"){var Bt=at.current();return Ze.context&&Ze.context.tagName!=Bt&&M.implicitlyClosed.hasOwnProperty(Ze.context.tagName)&&de(Ze),Ze.context&&Ze.context.tagName==Bt||M.matchClosing===!1?(Pe="tag",ee):(Pe="tag error",Ce)}else return M.allowMissingTagName&&ie=="endTag"?(Pe="tag bracket",ee(ie,at,Ze)):(Pe="error",Ce)}function ee(ie,at,Ze){return ie!="endTag"?(Pe="error",ee):(de(Ze),we)}function Ce(ie,at,Ze){return Pe="error",ee(ie,at,Ze)}function Ne(ie,at,Ze){if(ie=="word")return Pe="attribute",Le;if(ie=="endTag"||ie=="selfcloseTag"){var Bt=Ze.tagName,bt=Ze.tagStart;return Ze.tagName=Ze.tagStart=null,ie=="selfcloseTag"||M.autoSelfClosers.hasOwnProperty(Bt)?me(Ze,Bt):(me(Ze,Bt),Ze.context=new Fe(Ze,Bt,bt==Ze.indented)),we}return Pe="error",Ne}function Le(ie,at,Ze){return ie=="equals"?Ke:(M.allowMissing||(Pe="error"),Ne(ie,at,Ze))}function Ke(ie,at,Ze){return ie=="string"?nt:ie=="word"&&M.allowUnquoted?(Pe="string",Ne):(Pe="error",Ne(ie,at,Ze))}function nt(ie,at,Ze){return ie=="string"?nt:Ne(ie,at,Ze)}return{startState:function(ie){var at={tokenize:ke,state:we,indented:ie||0,tagName:null,tagStart:null,context:null};return ie!=null&&(at.baseIndent=ie),at},token:function(ie,at){if(!at.tagName&&ie.sol()&&(at.indented=ie.indentation()),ie.eatSpace())return null;ne=null;var Ze=at.tokenize(ie,at);return(Ze||ne)&&Ze!="comment"&&(Pe=null,at.state=at.state(ne||Ze,ie,at),Pe&&(Ze=Pe=="error"?Ze+" error":Pe)),Ze},indent:function(ie,at,Ze){var Bt=ie.context;if(ie.tokenize.isInAttribute)return ie.tagStart==ie.indented?ie.stringStartCol+1:ie.indented+_;if(Bt&&Bt.noIndent)return b.Pass;if(ie.tokenize!=rt&&ie.tokenize!=ke)return Ze?Ze.match(/^(\s*)/)[0].length:0;if(ie.tagName)return M.multilineTagIndentPastTag!==!1?ie.tagStart+ie.tagName.length+2:ie.tagStart+_*(M.multilineTagIndentFactor||1);if(M.alignCDATA&&/<!\[CDATA\[/.test(at))return 0;var bt=at&&/^<(\/)?([\w_:\.-]*)/.exec(at);if(bt&&bt[1])for(;Bt;)if(Bt.tagName==bt[2]){Bt=Bt.prev;break}else if(M.implicitlyClosed.hasOwnProperty(Bt.tagName))Bt=Bt.prev;else break;else if(bt)for(;Bt;){var kt=M.contextGrabbers[Bt.tagName];if(kt&&kt.hasOwnProperty(bt[2]))Bt=Bt.prev;else break}for(;Bt&&Bt.prev&&!Bt.startOfLine;)Bt=Bt.prev;return Bt?Bt.indent+_:ie.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:M.htmlMode?"html":"xml",helperType:M.htmlMode?"html":"xml",skipAttribute:function(ie){ie.state==Ke&&(ie.state=Ne)},xmlCurrentTag:function(ie){return ie.tagName?{name:ie.tagName,close:ie.type=="closeTag"}:null},xmlCurrentContext:function(ie){for(var at=[],Ze=ie.context;Ze;Ze=Ze.prev)Ze.tagName&&at.push(Ze.tagName);return at.reverse()}}}),b.defineMIME("text/xml","xml"),b.defineMIME("application/xml","xml"),b.mimeModes.hasOwnProperty("text/html")||b.defineMIME("text/html",{name:"xml",htmlMode:!0})})},58951:function(Q,C){"use strict";var d;C.Q=z,d=W;var b=",",I=" ",O="";function z(_){for(var M=[],pe=String(_||O),ue=pe.indexOf(b),ne=0,Pe=!1,ke;!Pe;)ue===-1&&(ue=pe.length,Pe=!0),ke=pe.slice(ne,ue).trim(),(ke||!Pe)&&M.push(ke),ne=ue+1,ue=pe.indexOf(b,ne);return M}function W(_,M){var pe=M||{},ue=pe.padLeft===!1?O:I,ne=pe.padRight?I:O;return _[_.length-1]===O&&(_=_.concat(O)),_.join(ne+b+ue).trim()}},86204:function(Q){"use strict";var C=typeof Reflect=="object"?Reflect:null,d=C&&typeof C.apply=="function"?C.apply:function(we,ge,Te){return Function.prototype.apply.call(we,ge,Te)},b;C&&typeof C.ownKeys=="function"?b=C.ownKeys:Object.getOwnPropertySymbols?b=function(we){return Object.getOwnPropertyNames(we).concat(Object.getOwnPropertySymbols(we))}:b=function(we){return Object.getOwnPropertyNames(we)};function I(me){console&&console.warn&&console.warn(me)}var O=Number.isNaN||function(we){return we!==we};function z(){z.init.call(this)}Q.exports=z,Q.exports.once=De,z.EventEmitter=z,z.prototype._events=void 0,z.prototype._eventsCount=0,z.prototype._maxListeners=void 0;var W=10;function _(me){if(typeof me!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof me)}Object.defineProperty(z,"defaultMaxListeners",{enumerable:!0,get:function(){return W},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+".");W=me}}),z.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},z.prototype.setMaxListeners=function(we){if(typeof we!="number"||we<0||O(we))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+we+".");return this._maxListeners=we,this};function M(me){return me._maxListeners===void 0?z.defaultMaxListeners:me._maxListeners}z.prototype.getMaxListeners=function(){return M(this)},z.prototype.emit=function(we){for(var ge=[],Te=1;Te<arguments.length;Te++)ge.push(arguments[Te]);var ee=we==="error",Ce=this._events;if(Ce!==void 0)ee=ee&&Ce.error===void 0;else if(!ee)return!1;if(ee){var Ne;if(ge.length>0&&(Ne=ge[0]),Ne instanceof Error)throw Ne;var Le=new Error("Unhandled error."+(Ne?" ("+Ne.message+")":""));throw Le.context=Ne,Le}var Ke=Ce[we];if(Ke===void 0)return!1;if(typeof Ke=="function")d(Ke,this,ge);else for(var nt=Ke.length,ie=rt(Ke,nt),Te=0;Te<nt;++Te)d(ie[Te],this,ge);return!0};function pe(me,we,ge,Te){var ee,Ce,Ne;if(_(ge),Ce=me._events,Ce===void 0?(Ce=me._events=Object.create(null),me._eventsCount=0):(Ce.newListener!==void 0&&(me.emit("newListener",we,ge.listener?ge.listener:ge),Ce=me._events),Ne=Ce[we]),Ne===void 0)Ne=Ce[we]=ge,++me._eventsCount;else if(typeof Ne=="function"?Ne=Ce[we]=Te?[ge,Ne]:[Ne,ge]:Te?Ne.unshift(ge):Ne.push(ge),ee=M(me),ee>0&&Ne.length>ee&&!Ne.warned){Ne.warned=!0;var Le=new Error("Possible EventEmitter memory leak detected. "+Ne.length+" "+String(we)+" listeners added. Use emitter.setMaxListeners() to increase limit");Le.name="MaxListenersExceededWarning",Le.emitter=me,Le.type=we,Le.count=Ne.length,I(Le)}return me}z.prototype.addListener=function(we,ge){return pe(this,we,ge,!1)},z.prototype.on=z.prototype.addListener,z.prototype.prependListener=function(we,ge){return pe(this,we,ge,!0)};function ue(){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 ne(me,we,ge){var Te={fired:!1,wrapFn:void 0,target:me,type:we,listener:ge},ee=ue.bind(Te);return ee.listener=ge,Te.wrapFn=ee,ee}z.prototype.once=function(we,ge){return _(ge),this.on(we,ne(this,we,ge)),this},z.prototype.prependOnceListener=function(we,ge){return _(ge),this.prependListener(we,ne(this,we,ge)),this},z.prototype.removeListener=function(we,ge){var Te,ee,Ce,Ne,Le;if(_(ge),ee=this._events,ee===void 0)return this;if(Te=ee[we],Te===void 0)return this;if(Te===ge||Te.listener===ge)--this._eventsCount===0?this._events=Object.create(null):(delete ee[we],ee.removeListener&&this.emit("removeListener",we,Te.listener||ge));else if(typeof Te!="function"){for(Ce=-1,Ne=Te.length-1;Ne>=0;Ne--)if(Te[Ne]===ge||Te[Ne].listener===ge){Le=Te[Ne].listener,Ce=Ne;break}if(Ce<0)return this;Ce===0?Te.shift():Ue(Te,Ce),Te.length===1&&(ee[we]=Te[0]),ee.removeListener!==void 0&&this.emit("removeListener",we,Le||ge)}return this},z.prototype.off=z.prototype.removeListener,z.prototype.removeAllListeners=function(we){var ge,Te,ee;if(Te=this._events,Te===void 0)return this;if(Te.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):Te[we]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete Te[we]),this;if(arguments.length===0){var Ce=Object.keys(Te),Ne;for(ee=0;ee<Ce.length;++ee)Ne=Ce[ee],Ne!=="removeListener"&&this.removeAllListeners(Ne);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(ge=Te[we],typeof ge=="function")this.removeListener(we,ge);else if(ge!==void 0)for(ee=ge.length-1;ee>=0;ee--)this.removeListener(we,ge[ee]);return this};function Pe(me,we,ge){var Te=me._events;if(Te===void 0)return[];var ee=Te[we];return ee===void 0?[]:typeof ee=="function"?ge?[ee.listener||ee]:[ee]:ge?Ie(ee):rt(ee,ee.length)}z.prototype.listeners=function(we){return Pe(this,we,!0)},z.prototype.rawListeners=function(we){return Pe(this,we,!1)},z.listenerCount=function(me,we){return typeof me.listenerCount=="function"?me.listenerCount(we):ke.call(me,we)},z.prototype.listenerCount=ke;function ke(me){var we=this._events;if(we!==void 0){var ge=we[me];if(typeof ge=="function")return 1;if(ge!==void 0)return ge.length}return 0}z.prototype.eventNames=function(){return this._eventsCount>0?b(this._events):[]};function rt(me,we){for(var ge=new Array(we),Te=0;Te<we;++Te)ge[Te]=me[Te];return ge}function Ue(me,we){for(;we+1<me.length;we++)me[we]=me[we+1];me.pop()}function Ie(me){for(var we=new Array(me.length),ge=0;ge<we.length;++ge)we[ge]=me[ge].listener||me[ge];return we}function De(me,we){return new Promise(function(ge,Te){function ee(Ne){me.removeListener(we,Ce),Te(Ne)}function Ce(){typeof me.removeListener=="function"&&me.removeListener("error",ee),ge([].slice.call(arguments))}de(me,we,Ce,{once:!0}),we!=="error"&&Fe(me,ee,{once:!0})})}function Fe(me,we,ge){typeof me.on=="function"&&de(me,"error",we,ge)}function de(me,we,ge,Te){if(typeof me.on=="function")Te.once?me.once(we,ge):me.on(we,ge);else if(typeof me.addEventListener=="function")me.addEventListener(we,function ee(Ce){Te.once&&me.removeEventListener(we,ee),ge(Ce)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof me)}},58847:function(Q){"use strict";var C=Object.prototype.hasOwnProperty,d=Object.prototype.toString,b=Object.defineProperty,I=Object.getOwnPropertyDescriptor,O=function(pe){return typeof Array.isArray=="function"?Array.isArray(pe):d.call(pe)==="[object Array]"},z=function(pe){if(!pe||d.call(pe)!=="[object Object]")return!1;var ue=C.call(pe,"constructor"),ne=pe.constructor&&pe.constructor.prototype&&C.call(pe.constructor.prototype,"isPrototypeOf");if(pe.constructor&&!ue&&!ne)return!1;var Pe;for(Pe in pe);return typeof Pe=="undefined"||C.call(pe,Pe)},W=function(pe,ue){b&&ue.name==="__proto__"?b(pe,ue.name,{enumerable:!0,configurable:!0,value:ue.newValue,writable:!0}):pe[ue.name]=ue.newValue},_=function(pe,ue){if(ue==="__proto__")if(C.call(pe,ue)){if(I)return I(pe,ue).value}else return;return pe[ue]};Q.exports=function M(){var pe,ue,ne,Pe,ke,rt,Ue=arguments[0],Ie=1,De=arguments.length,Fe=!1;for(typeof Ue=="boolean"&&(Fe=Ue,Ue=arguments[1]||{},Ie=2),(Ue==null||typeof Ue!="object"&&typeof Ue!="function")&&(Ue={});Ie<De;++Ie)if(pe=arguments[Ie],pe!=null)for(ue in pe)ne=_(Ue,ue),Pe=_(pe,ue),Ue!==Pe&&(Fe&&Pe&&(z(Pe)||(ke=O(Pe)))?(ke?(ke=!1,rt=ne&&O(ne)?ne:[]):rt=ne&&z(ne)?ne:{},W(Ue,{name:ue,newValue:M(Fe,rt,Pe)})):typeof Pe!="undefined"&&W(Ue,{name:ue,newValue:Pe}));return Ue}},12378:function(Q,C,d){"use strict";d.d(C,{$u:function(){return ue},BD:function(){return xe},E9:function(){return pe},FF:function(){return cr},FJ:function(){return we},Hn:function(){return me},KX:function(){return Te},NB:function(){return mt},S0:function(){return Xn},UL:function(){return ne},Vk:function(){return de},Vm:function(){return Qe},YI:function(){return Tn},ZA:function(){return O},Zt:function(){return Pe},al:function(){return N},bn:function(){return X},bx:function(){return P},g2:function(){return Nn},h1:function(){return Ke},hD:function(){return He},l4:function(){return _},rU:function(){return lt},s_:function(){return k},uz:function(){return Oe},z6:function(){return ke}}),Q=d.hmd(Q),function(){var U;function mr(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}function lr(e){var t=typeof Symbol!="undefined"&&Symbol.iterator&&e[Symbol.iterator];return t?t.call(e):{next:mr(e)}}function _r(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}var Hr=typeof Object.create=="function"?Object.create:function(e){function t(){}return t.prototype=e,new t},uo;if(typeof Object.setPrototypeOf=="function")uo=Object.setPrototypeOf;else{var Tr;e:{var Jr={a:!0},fr={};try{fr.__proto__=Jr,Tr=fr.a;break e}catch(e){}Tr=!1}uo=Tr?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+" is not extensible");return e}:null}var Xi=uo;function di(e,t){if(e.prototype=Hr(t.prototype),e.prototype.constructor=e,Xi)Xi(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 d.g!="undefined"&&d.g!=null?d.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},Hn=typeof Object.defineProperties=="function"?Object.defineProperty:function(e,t,n){e!=Array.prototype&&e!=Object.prototype&&(e[t]=n.value)};function gt(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&&Hn(n,e,{writable:!0,value:t})}}gt("Object.assign",function(e){return e||_n}),gt("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 Ge=typeof globalThis=="object"&&globalThis||typeof d.g=="object"&&d.g.global===d.g&&d.g||typeof self=="object"&&self.self===self&&self||{};Ge.requestAnimationFrame===void 0&&(Ge.setImmediate===void 0?Ge.requestAnimationFrame=function(e){Ge.setTimeout(e,0)}:Ge.requestAnimationFrame=Ge.setImmediate);function fn(){}function Sn(e,t){var n=-1;return function(){var i=this,r=arguments;n!==-1&&Ge.clearTimeout(n),n=ti(function(){n=-1,e.apply(i,r)},t)}}function ti(e,t){return Ge.setTimeout(e,t)}function Kn(e){return Ge.document.createElement(e)}function pt(e){throw Error(e)}function gn(e,t){e="The object is frozen, so its properties cannot be set: "+e.toString(),t!==void 0&&(e+=" to value: "+t),pt(e)}function tn(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),pt(n+" is not in the range "+t+": "+e)}function xi(e){Ge.console&&Ge.console.log(e)}function ft(e){return typeof e=="object"&&e!==null}function Fn(e){return Array.isArray(e)||Ge.NodeList&&e instanceof Ge.NodeList||Ge.HTMLCollection&&e instanceof Ge.HTMLCollection}function Mt(e){return Array.prototype.slice.call(e)}function qe(e,t,n){Array.isArray(e)?t>=e.length?e.push(n):e.splice(t,0,n):pt("Cannot insert an object into an HTMLCollection or NodeList: "+n+" at "+t)}function D(e,t){Array.isArray(e)?t>=e.length?e.pop():e.splice(t,1):pt("Cannot remove an object from an HTMLCollection or NodeList at "+t)}function Gt(){var e=hr.pop();return e===void 0?[]:e}function dn(e){e.length=0,hr.push(e)}function xt(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(ft(e)&&e.constructor)return xt(e.constructor);return typeof e}function En(e){var t=e;return ft(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 Mn(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 ki(e,t,n){Object.defineProperty(xo.prototype,e,{get:t,set:n})}function Un(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="",s=0;s<e.length;s++)n=(n+1)%256,i=(i+t[n])%256,r=t[n],t[n]=t[i],t[i]=r,o+=String.fromCharCode(e.charCodeAt(s)^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 ot=Ge.navigator!==void 0&&0<Ge.navigator.userAgent.indexOf("Trident/7"),Bi=Ge.navigator!==void 0&&Ge.navigator.platform!==void 0&&Ge.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,hr=[];Object.freeze([]),fn.className="Util",fn.Dx="32ab5ff3b26f42dc0ed90f21472913b5",fn.adym="gojs.net",fn.vfo="28e645fdb266",fn.className="Util";function Kt(e,t,n){Yi(this),this.j=e,this.xa=t,this.o=n}Kt.prototype.toString=function(){return"EnumValue."+this.xa};function Qi(e,t){return t==null||t===""?null:e[t]}ht.Object.defineProperties(Kt.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),Kt.className="EnumValue";function J(){this.ew=[]}J.prototype.toString=function(){return this.ew.join("")},J.prototype.add=function(e){e!==""&&this.ew.push(e)},J.className="StringBuilder";function ae(){}ae.className="PropertyCollection";var Yn={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(e){Ge.console&&Ge.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(s,l){return function(){throw Error("Property "+s.Zl[l.Tj]+" of "+s.x+" is read-only.")}}(t,r)})}}}t={Zl:t.Zl,x:t.x}}}};function _e(){}_e.prototype.reset=function(){},_e.prototype.next=function(){return!1},_e.prototype.Ad=function(){return!1},_e.prototype.first=function(){return null},_e.prototype.any=function(){return!1},_e.prototype.all=function(){return!0},_e.prototype.each=function(){return this},_e.prototype.map=function(){return this},_e.prototype.filter=function(){return this},_e.prototype.de=function(){},_e.prototype.toString=function(){return"EmptyIterator"},ht.Object.defineProperties(_e.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),_e.prototype.first=_e.prototype.first,_e.prototype.hasNext=_e.prototype.Ad,_e.prototype.next=_e.prototype.next,_e.prototype.reset=_e.prototype.reset;var Et=null;_e.className="EmptyIterator",Et=new _e;function Ni(e){this.key=-1,this.value=e}Ni.prototype.reset=function(){this.key=-1},Ni.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},Ni.prototype.Ad=function(){return this.next()},Ni.prototype.first=function(){return this.key=0,this.value},Ni.prototype.any=function(e){return this.key=-1,e(this.value)},Ni.prototype.all=function(e){return this.key=-1,e(this.value)},Ni.prototype.each=function(e){return this.key=-1,e(this.value),this},Ni.prototype.map=function(e){return new Ni(e(this.value))},Ni.prototype.filter=function(e){return e(this.value)?new Ni(this.value):Et},Ni.prototype.de=function(){this.value=null},Ni.prototype.toString=function(){return"SingletonIterator("+this.value+")"},ht.Object.defineProperties(Ni.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),Ni.prototype.first=Ni.prototype.first,Ni.prototype.hasNext=Ni.prototype.Ad,Ni.prototype.next=Ni.prototype.next,Ni.prototype.reset=Ni.prototype.reset,Ni.className="SingletonIterator";function Pn(e){this.Bb=e,this.qf=null,e.Sa=null,this.qa=e.Ja,this.Za=-1}Pn.prototype.reset=function(){var e=this.Bb;e.Sa=null,this.qa=e.Ja,this.Za=-1},Pn.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},Pn.prototype.Ad=function(){return this.next()},Pn.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},Pn.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},Pn.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},Pn.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},Pn.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 s=t[o];(r===null||r(s))&&n.push(e(s))}return e=new Zt,e.s=n,e.xb(),e.iterator},Pn.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 s=t[o];(r===null||r(s))&&e(s)&&n.push(s)}return e=new Zt,e.s=n,e.xb(),e.iterator},Pn.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},Pn.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},ht.Object.defineProperties(Pn.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}}}),Pn.prototype.first=Pn.prototype.first,Pn.prototype.hasNext=Pn.prototype.Ad,Pn.prototype.next=Pn.prototype.next,Pn.prototype.reset=Pn.prototype.reset,Pn.className="ListIterator";function Ki(e){this.Bb=e,e.Hg=null,this.qa=e.Ja,this.Za=e.s.length}Ki.prototype.reset=function(){var e=this.Bb;e.Hg=null,this.qa=e.Ja,this.Za=e.s.length},Ki.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)},Ki.prototype.Ad=function(){return this.next()},Ki.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},Ki.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},Ki.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},Ki.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},Ki.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 Zt,e.s=n,e.xb(),e.iterator},Ki.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 Zt,e.s=n,e.xb(),e.iterator},Ki.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},Ki.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},ht.Object.defineProperties(Ki.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),Ki.prototype.first=Ki.prototype.first,Ki.prototype.hasNext=Ki.prototype.Ad,Ki.prototype.next=Ki.prototype.next,Ki.prototype.reset=Ki.prototype.reset,Ki.className="ListIteratorBackwards";function Zt(e){Yi(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof e=="string"&&pt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),e!==void 0&&this.addAll(e)}U=Zt.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()#"+It(this)},U.add=function(e){return e===null?this:(this._isFrozen&&gn(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&&gn(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&&gn(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)&&tn(e,"0 <= i < length",Zt,"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)&&tn(e,"0 <= i < length",Zt,"setElt:i"),this._isFrozen&&gn(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&&gn(this);var e=this.s;return 0<e.length?e.pop():null},Zt.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},Zt.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},Zt.prototype.each=function(e){for(var t=this.s,n=t.length,i=0;i<n;i++)e(t[i]);return this},Zt.prototype.map=function(e){for(var t=new Zt,n=[],i=this.s,r=i.length,o=0;o<r;o++)n.push(e(i[o]));return t.s=n,t.xb(),t},Zt.prototype.filter=function(e){for(var t=new Zt,n=[],i=this.s,r=i.length,o=0;o<r;o++){var s=i[o];e(s)&&n.push(s)}return t.s=n,t.xb(),t},U=Zt.prototype,U.Gb=function(e,t){0>e&&tn(e,">= 0",Zt,"insertAt:i"),this._isFrozen&&gn(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&&gn(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)&&tn(e,"0 <= i < length",Zt,"removeAt:i"),this._isFrozen&&gn(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&&gn(this);for(var r=e,o=t+1;o<i;)n[r++]=n[o++];return n.length=i-(t-e+1),this.xb(),this},Zt.prototype.copy=function(){var e=new Zt,t=this.s;return 0<t.length&&(e.s=Array.prototype.slice.call(t)),e},U=Zt.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 Wt,t=this.s,n=this.count,i=0;i<n;i++)e.add(t[i]);return e},U.sort=function(e){return this._isFrozen&&gn(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&&gn(this);var o=n-t;if(1>=o)return this;if((0>t||t>=r-1)&&tn(t,"0 <= from < length",Zt,"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&&gn(this),this.s.reverse(),this.xb(),this},ht.Object.defineProperties(Zt.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 Et;var e=this.Sa;return e!==null?(e.reset(),e):new Pn(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return Et;var e=this.Hg;return e!==null?(e.reset(),e):new Ki(this)}}}),Zt.prototype.reverse=Zt.prototype.reverse,Zt.prototype.sortRange=Zt.prototype.zi,Zt.prototype.sort=Zt.prototype.sort,Zt.prototype.toSet=Zt.prototype.Iv,Zt.prototype.toArray=Zt.prototype.Fa,Zt.prototype.removeRange=Zt.prototype.removeRange,Zt.prototype.removeAt=Zt.prototype.mb,Zt.prototype.delete=Zt.prototype.delete,Zt.prototype.remove=Zt.prototype.remove,Zt.prototype.insertAt=Zt.prototype.Gb,Zt.prototype.pop=Zt.prototype.pop,Zt.prototype.last=Zt.prototype.jc,Zt.prototype.first=Zt.prototype.first,Zt.prototype.set=Zt.prototype.set,Zt.prototype.setElt=Zt.prototype.cd,Zt.prototype.get=Zt.prototype.get,Zt.prototype.elt=Zt.prototype.M,Zt.prototype.indexOf=Zt.prototype.indexOf,Zt.prototype.has=Zt.prototype.has,Zt.prototype.contains=Zt.prototype.contains,Zt.prototype.clear=Zt.prototype.clear,Zt.prototype.addAll=Zt.prototype.addAll,Zt.prototype.push=Zt.prototype.push,Zt.prototype.add=Zt.prototype.add,Zt.prototype.thaw=Zt.prototype.ka,Zt.prototype.freeze=Zt.prototype.freeze,Zt.className="List";function Ii(e){this.eg=e,e.Sa=null,this.qa=e.Ja,this.sa=null}Ii.prototype.reset=function(){var e=this.eg;e.Sa=null,this.qa=e.Ja,this.sa=null},Ii.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)},Ii.prototype.Ad=function(){return this.next()},Ii.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},Ii.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},Ii.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},Ii.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},Ii.prototype.map=function(e){var t=this.eg;t.Sa=null;var n=new Zt;for(t=t.ea;t!==null;)n.add(e(t.value)),t=t.va;return n.iterator},Ii.prototype.filter=function(e){var t=this.eg;t.Sa=null;var n=new Zt;for(t=t.ea;t!==null;){var i=t.value;e(i)&&n.add(i),t=t.va}return n.iterator},Ii.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},Ii.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},ht.Object.defineProperties(Ii.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),Ii.prototype.first=Ii.prototype.first,Ii.prototype.hasNext=Ii.prototype.Ad,Ii.prototype.next=Ii.prototype.next,Ii.prototype.reset=Ii.prototype.reset,Ii.className="SetIterator";function Wt(e){Yi(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof e=="string"&&pt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),e!==void 0&&this.addAll(e)}U=Wt.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()#"+It(this)},U.add=function(e){if(e===null)return this;this._isFrozen&&gn(this,e);var t=e;return ft(e)&&(t=io(e)),this.Tb[t]===void 0&&(this.Sb++,e=new Sr(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&&gn(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 ft(e)&&(t=It(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},Wt.prototype.any=function(e){for(var t=this.ea;t!==null;){if(e(t.value))return!0;t=t.va}return!1},Wt.prototype.all=function(e){for(var t=this.ea;t!==null;){if(!e(t.value))return!1;t=t.va}return!0},Wt.prototype.each=function(e){for(var t=this.ea;t!==null;)e(t.value),t=t.va;return this},Wt.prototype.map=function(e){for(var t=new Wt,n=this.ea;n!==null;)t.add(e(n.value)),n=n.va;return t},Wt.prototype.filter=function(e){for(var t=new Wt,n=this.ea;n!==null;){var i=n.value;e(i)&&t.add(i),n=n.va}return t},U=Wt.prototype,U.remove=function(e){if(e===null)return!1;this._isFrozen&&gn(this,e);var t=e;if(ft(e)&&(t=It(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&&gn(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&&gn(this);var t=new Wt;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&&gn(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},Wt.prototype.copy=function(){var e=new Wt,t=this.Tb,n;for(n in t)e.add(t[n].value);return e},Wt.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},Wt.prototype.Hv=function(){var e=new Zt,t=this.Tb,n;for(n in t)e.add(t[n].value);return e};function Yi(e){e.__gohashid=Mo++}function io(e){var t=e.__gohashid;return t===void 0&&(t=Mo++,e.__gohashid=t),t}function It(e){return e.__gohashid}ht.Object.defineProperties(Wt.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return Et;var e=this.Sa;return e!==null?(e.reset(),e):new Ii(this)}}}),Wt.prototype.toList=Wt.prototype.Hv,Wt.prototype.toArray=Wt.prototype.Fa,Wt.prototype.clear=Wt.prototype.clear,Wt.prototype.retainAll=Wt.prototype.pA,Wt.prototype.removeAll=Wt.prototype.hp,Wt.prototype.delete=Wt.prototype.delete,Wt.prototype.remove=Wt.prototype.remove,Wt.prototype.first=Wt.prototype.first,Wt.prototype.containsAny=Wt.prototype.Ty,Wt.prototype.containsAll=Wt.prototype.Sy,Wt.prototype.has=Wt.prototype.has,Wt.prototype.contains=Wt.prototype.contains,Wt.prototype.addAll=Wt.prototype.addAll,Wt.prototype.add=Wt.prototype.add,Wt.prototype.thaw=Wt.prototype.ka,Wt.prototype.freeze=Wt.prototype.freeze;var Mo=1;Wt.className="Set",Wt.uniqueHash=Yi,Wt.hashIdUnique=io,Wt.hashId=It;function Jt(e){this.ma=e,this.qa=e.Ja,this.sa=null}Jt.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Jt.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)},Jt.prototype.Ad=function(){return this.next()},Jt.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},Jt.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},Jt.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},Jt.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},Jt.prototype.map=function(e){var t=this.ma;this.sa=null;var n=new Zt;for(t=t.ea;t!==null;)n.add(e(t.key)),t=t.va;return n.iterator},Jt.prototype.filter=function(e){var t=this.ma;this.sa=null;var n=new Zt;for(t=t.ea;t!==null;){var i=t.key;e(i)&&n.add(i),t=t.va}return n.iterator},Jt.prototype.de=function(){this.value=this.key=null,this.qa=-1},Jt.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},ht.Object.defineProperties(Jt.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Jt.prototype.first=Jt.prototype.first,Jt.prototype.hasNext=Jt.prototype.Ad,Jt.prototype.next=Jt.prototype.next,Jt.prototype.reset=Jt.prototype.reset,Jt.className="MapKeySetIterator";function _i(e){Wt.call(this),Yi(this),this._isFrozen=!0,this.ma=e}di(_i,Wt),U=_i.prototype,U.freeze=function(){return this},U.ka=function(){return this},U.toString=function(){return"MapKeySet("+this.ma.toString()+")"},U.add=function(){pt("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(){pt("This Set is read-only: "+this.toString())},U.delete=function(e){return this.remove(e)},U.clear=function(){pt("This Set is read-only: "+this.toString())},U.first=function(){var e=this.ma.ea;return e!==null?e.key:null},_i.prototype.any=function(e){for(var t=this.ma.ea;t!==null;){if(e(t.key))return!0;t=t.va}return!1},_i.prototype.all=function(e){for(var t=this.ma.ea;t!==null;){if(!e(t.key))return!1;t=t.va}return!0},_i.prototype.each=function(e){for(var t=this.ma.ea;t!==null;)e(t.key),t=t.va;return this},_i.prototype.map=function(e){for(var t=new Wt,n=this.ma.ea;n!==null;)t.add(e(n.key)),n=n.va;return t},_i.prototype.filter=function(e){for(var t=new Wt,n=this.ma.ea;n!==null;){var i=n.key;e(i)&&t.add(i),n=n.va}return t},_i.prototype.copy=function(){return new _i(this.ma)},_i.prototype.Iv=function(){var e=new Wt,t=this.ma.Tb,n;for(n in t)e.add(t[n].key);return e},_i.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},_i.prototype.Hv=function(){var e=new Zt,t=this.ma.Tb,n;for(n in t)e.add(t[n].key);return e},ht.Object.defineProperties(_i.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?Et:new Jt(this.ma)}}}),_i.prototype.toList=_i.prototype.Hv,_i.prototype.toArray=_i.prototype.Fa,_i.prototype.toSet=_i.prototype.Iv,_i.prototype.first=_i.prototype.first,_i.prototype.clear=_i.prototype.clear,_i.prototype.delete=_i.prototype.delete,_i.prototype.remove=_i.prototype.remove,_i.prototype.has=_i.prototype.has,_i.prototype.contains=_i.prototype.contains,_i.prototype.add=_i.prototype.add,_i.prototype.thaw=_i.prototype.ka,_i.prototype.freeze=_i.prototype.freeze,_i.className="MapKeySet";function Li(e){this.ma=e,e.jf=null,this.qa=e.Ja,this.sa=null}Li.prototype.reset=function(){var e=this.ma;e.jf=null,this.qa=e.Ja,this.sa=null},Li.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)},Li.prototype.Ad=function(){return this.next()},Li.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},Li.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},Li.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},Li.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},Li.prototype.map=function(e){var t=this.ma;this.sa=t.jf=null;var n=new Zt;for(t=t.ea;t!==null;)n.add(e(t.value)),t=t.va;return n.iterator},Li.prototype.filter=function(e){var t=this.ma;this.sa=t.jf=null;var n=new Zt;for(t=t.ea;t!==null;){var i=t.value;e(i)&&n.add(i),t=t.va}return n.iterator},Li.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},Li.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},ht.Object.defineProperties(Li.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Li.prototype.first=Li.prototype.first,Li.prototype.hasNext=Li.prototype.Ad,Li.prototype.next=Li.prototype.next,Li.prototype.reset=Li.prototype.reset,Li.className="MapValueSetIterator";function Sr(e,t){this.key=e,this.value=t,this.ll=this.va=null}Sr.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Sr.className="KeyValuePair";function Or(e){this.ma=e,e.Sa=null,this.qa=e.Ja,this.sa=null}Or.prototype.reset=function(){var e=this.ma;e.Sa=null,this.qa=e.Ja,this.sa=null},Or.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)},Or.prototype.Ad=function(){return this.next()},Or.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},Or.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},Or.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},Or.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},Or.prototype.map=function(e){var t=this.ma;this.sa=t.Sa=null;var n=new Zt;for(t=t.ea;t!==null;)n.add(e(t)),t=t.va;return n.iterator},Or.prototype.filter=function(e){var t=this.ma;this.sa=t.Sa=null;var n=new Zt;for(t=t.ea;t!==null;)e(t)&&n.add(t),t=t.va;return n.iterator},Or.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},Or.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},ht.Object.defineProperties(Or.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Or.prototype.first=Or.prototype.first,Or.prototype.hasNext=Or.prototype.Ad,Or.prototype.next=Or.prototype.next,Or.prototype.reset=Or.prototype.reset,Or.className="MapIterator";function qn(e){Yi(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"&&pt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),e!==void 0&&this.addAll(e)}U=qn.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()#"+It(this)},U.add=function(e,t){this._isFrozen&&gn(this,e);var n=e;ft(e)&&(n=io(e));var i=this.Tb[n];return i===void 0?(this.Sb++,e=new Sr(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 qn)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},qn.prototype.any=function(e){for(var t=this.ea;t!==null;){if(e(t))return!0;t=t.va}return!1},qn.prototype.all=function(e){for(var t=this.ea;t!==null;){if(!e(t))return!1;t=t.va}return!0},qn.prototype.each=function(e){for(var t=this.ea;t!==null;)e(t),t=t.va;return this},qn.prototype.map=function(e){for(var t=new qn,n=this.ea;n!==null;)t.add(n.key,e(n)),n=n.va;return t},qn.prototype.filter=function(e){for(var t=new qn,n=this.ea;n!==null;)e(n)&&t.add(n.key,n.value),n=n.va;return t},U=qn.prototype,U.contains=function(e){var t=e;return ft(e)&&(t=It(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 ft(e)&&(t=It(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&&gn(this,e);var t=e;if(ft(e)&&(t=It(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&&gn(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()},qn.prototype.copy=function(){var e=new qn,t=this.Tb,n;for(n in t){var i=t[n];e.add(i.key,i.value)}return e},qn.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 Sr(r.key,r.value),n++}return t},qn.prototype.Lf=function(){return new _i(this)},ht.Object.defineProperties(qn.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return Et;var e=this.Sa;return e!==null?(e.reset(),e):new Or(this)}},iteratorKeys:{get:function(){return 0>=this.count?Et:new Jt(this)}},iteratorValues:{get:function(){if(0>=this.count)return Et;var e=this.jf;return e!==null?(e.reset(),e):new Li(this)}}}),qn.prototype.toKeySet=qn.prototype.Lf,qn.prototype.toArray=qn.prototype.Fa,qn.prototype.clear=qn.prototype.clear,qn.prototype.delete=qn.prototype.delete,qn.prototype.remove=qn.prototype.remove,qn.prototype.get=qn.prototype.get,qn.prototype.getValue=qn.prototype.I,qn.prototype.has=qn.prototype.has,qn.prototype.contains=qn.prototype.contains,qn.prototype.first=qn.prototype.first,qn.prototype.addAll=qn.prototype.addAll,qn.prototype.set=qn.prototype.set,qn.prototype.add=qn.prototype.add,qn.prototype.thaw=qn.prototype.ka,qn.prototype.freeze=qn.prototype.freeze,qn.className="Map";function ce(e,t){e===void 0?this.y=this.x=0:typeof e=="number"&&typeof t=="number"?(this.x=e,this.y=t):pt("Invalid arguments to Point constructor: "+e+", "+t),this._isFrozen=!1}var Ar,eo,br,fo,qi;ce.prototype.assign=function(e){return this.x=e.x,this.y=e.y,this},ce.prototype.h=function(e,t){return this.x=e,this.y=t,this},ce.prototype.sg=function(e,t){return this.x=e,this.y=t,this},ce.prototype.set=function(e){return this.x=e.x,this.y=e.y,this},ce.prototype.copy=function(){var e=new ce;return e.x=this.x,e.y=this.y,e},U=ce.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)&&pt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Xr(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 ce(n,r)}return new ce}function Ri(e){return e.x.toString()+" "+e.y.toString()}U.toString=function(){return"Point("+this.x+","+this.y+")"},U.D=function(e){return e instanceof ce?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 Ye.B(this.x,e.x)&&Ye.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},ce.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=ce.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 Vi(e.x-this.x,e.y-this.y)},U.direction=function(e,t){return Vi(e-this.x,t-this.y)};function Vi(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 Ye.Fl(e.x,e.y,t.x,t.y,this.x,this.y)},U.fA=function(e,t,n,i){return Ye.qh(e,t,n,i,this.x,this.y,this),this},U.gA=function(e,t){return Ye.qh(e.x,e.y,t.x,t.y,this.x,this.y,this),this},U.uA=function(e,t,n,i){return Ye.No(this.x,this.y,e,t,n,i,this),this},U.vA=function(e,t){return Ye.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 Hi(e,t){return t.Cd(e),e}function $r(e,t,n,i,r,o){var s=r-n,l=o-i,u=s*s+l*l;n-=e,i-=t;var f=-n*s-i*l;return 0>=f||f>=u?(s=r-e,l=o-t,Math.min(n*n+i*i,s*s+l*l)):(e=s*i-l*n,e*e/u)}function Vr(e,t,n,i){return e=n-e,t=i-t,e*e+t*t}function wo(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)},ce.alloc=function(){var e=Ko.pop();return e===void 0?new ce:e},ce.allocAt=function(e,t){var n=Ko.pop();return n===void 0?new ce(e,t):(n.x=e,n.y=t,n)},ce.free=function(e){Ko.push(e)},ce.prototype.isReal=ce.prototype.w,ce.prototype.setSpot=ce.prototype.yi,ce.prototype.setRectSpot=ce.prototype.xi,ce.prototype.snapToGridPoint=ce.prototype.vA,ce.prototype.snapToGrid=ce.prototype.uA,ce.prototype.projectOntoLineSegmentPoint=ce.prototype.gA,ce.prototype.projectOntoLineSegment=ce.prototype.fA,ce.intersectingLineSegments=function(e,t,n,i,r,o,s,l){return Ye.Rl(e,t,n,i,r,o,s,l)},ce.prototype.compareWithLineSegmentPoint=ce.prototype.Ry,ce.compareWithLineSegment=function(e,t,n,i,r,o){return Ye.Fl(e,t,n,i,r,o)},ce.prototype.direction=ce.prototype.direction,ce.prototype.directionPoint=ce.prototype.ab,ce.prototype.normalize=ce.prototype.normalize,ce.prototype.distanceSquared=ce.prototype.zd,ce.prototype.distanceSquaredPoint=ce.prototype.Bf,ce.prototype.scale=ce.prototype.scale,ce.prototype.rotate=ce.prototype.rotate,ce.prototype.offset=ce.prototype.offset,ce.prototype.subtract=ce.prototype.re,ce.prototype.add=ce.prototype.add,ce.prototype.equalsApprox=ce.prototype.Xa,ce.prototype.equalTo=ce.prototype.hi,ce.prototype.equals=ce.prototype.D,ce.prototype.set=ce.prototype.set,ce.prototype.setTo=ce.prototype.sg;var Ko=[];ce.className="Point",ce.parse=Xr,ce.stringify=Ri,ce.distanceLineSegmentSquared=$r,ce.distanceSquared=Vr,ce.direction=wo,ce.Origin=Ar=new ce(0,0).ja(),ce.InfiniteTopLeft=eo=new ce(-1/0,-1/0).ja(),ce.InfiniteBottomRight=br=new ce(1/0,1/0).ja(),ce.SixPoint=fo=new ce(6,6).ja(),ce.NoPoint=qi=new ce(NaN,NaN).ja(),ce.parse=Xr,ce.stringify=Ri,ce.distanceLineSegmentSquared=$r,ce.distanceSquared=Vr,ce.direction=wo;function mi(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):pt("Invalid arguments to Size constructor: "+e+", "+t),this._isFrozen=!1}var Rs,fs,cs,Bs,ca,Ya,ra;mi.prototype.assign=function(e){return this.width=e.width,this.height=e.height,this},mi.prototype.h=function(e,t){return this.width=e,this.height=t,this},mi.prototype.sg=function(e,t){return this.width=e,this.height=t,this},mi.prototype.set=function(e){return this.width=e.width,this.height=e.height,this},mi.prototype.copy=function(){var e=new mi;return e.width=this.width,e.height=this.height,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)&&pt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ha(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 mi(n,r)}return new mi}function ya(e){return e.width.toString()+" "+e.height.toString()}U.toString=function(){return"Size("+this.width+","+this.height+")"},U.D=function(e){return e instanceof mi?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 Ye.B(this.width,e.width)&&Ye.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)},mi.alloc=function(){var e=ns.pop();return e===void 0?new mi:e},mi.free=function(e){ns.push(e)},mi.prototype.isReal=mi.prototype.w,mi.prototype.inflate=mi.prototype.Bc,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 ns=[];mi.className="Size",mi.parse=Ha,mi.stringify=ya,mi.ZeroSize=Rs=new mi(0,0).ja(),mi.OneSize=fs=new mi(1,1).ja(),mi.SixSize=cs=new mi(6,6).ja(),mi.EightSize=Bs=new mi(8,8).ja(),mi.TenSize=ca=new mi(10,10).ja(),mi.InfiniteSize=Ya=new mi(1/0,1/0).ja(),mi.NoSize=ra=new mi(NaN,NaN).ja(),mi.parse=Ha,mi.stringify=ya;function Ht(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 ce?(n=e.x,e=e.y,t instanceof ce?(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 mi?(this.x=n,this.y=e,this.width=t.width,this.height=t.height):pt("Incorrect second argument supplied to Rect constructor "+t)):pt("Invalid arguments to Rect constructor: "+e+", "+t+", "+n+", "+i),this._isFrozen=!1}U=Ht.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 Ws(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},Ht.prototype.copy=function(){var e=new Ht;return e.x=this.x,e.y=this.y,e.width=this.width,e.height=this.height,e},U=Ht.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)&&pt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Eu(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 s=0;e[t]==="";)t++;return(i=e[t++])&&(s=parseFloat(i)),new Ht(n,r,o,s)}return new Ht}function Ml(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 Ht?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 Ye.B(this.x,e.x)&&Ye.B(this.y,e.y)&&Ye.B(this.width,e.width)&&Ye.B(this.height,e.height)};function po(e,t){return Ye.$(e.x,t.x)&&Ye.$(e.y,t.y)&&Ye.$(e.width,t.width)&&Ye.$(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 _o(this,t,e,t,e)},U.Co=function(e){return _o(this,e.top,e.right,e.bottom,e.left)},U.Fv=function(e){return _o(this,-e.top,-e.right,-e.bottom,-e.left)},U.Hz=function(e,t,n,i){return _o(this,e,t,n,i)};function _o(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 Ss(this,e.x,e.y,e.width,e.height)},U.Uu=function(e,t,n,i){return Ss(this,e,t,n,i)};function Ss(e,t,n,i,r){var o=Math.max(e.x,t),s=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=s,e.width=Math.max(0,t-o),e.height=Math.max(0,n-s),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 Ut(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 zr(this,e.x,e.y,0,0)},U.ed=function(e){return zr(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),zr(this,e,t,n,i)};function zr(e,t,n,i,r){var o=Math.min(e.x,t),s=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=s,e.width=t-o,e.height=n-s,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,s,l){return s===void 0&&(s=0),l===void 0&&(l=0),e<=r&&r+s<=e+n&&t<=o&&o+l<=t+i}function ba(e,t,n,i,r,o,s,l){return e>s+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},Ht.alloc=function(){var e=pr.pop();return e===void 0?new Ht:e},Ht.allocAt=function(e,t,n,i){var r=pr.pop();return r===void 0?new Ht(e,t,n,i):r.h(e,t,n,i)},Ht.free=function(e){pr.push(e)},ht.Object.defineProperties(Ht.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 ce(this.x,this.y)},set:function(e){this.x=e.x,this.y=e.y}},size:{get:function(){return new mi(this.width,this.height)},set:function(e){this.width=e.width,this.height=e.height}},center:{get:function(){return new ce(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}}}),Ht.prototype.isEmpty=Ht.prototype.Mz,Ht.prototype.isReal=Ht.prototype.w,Ht.intersectsLineSegment=function(e,t,n,i,r,o,s,l){return Ye.Fx(e,t,n,i,r,o,s,l)},Ht.prototype.setSpot=Ht.prototype.yi,Ht.prototype.union=Ht.prototype.Kv,Ht.prototype.unionRect=Ht.prototype.ed,Ht.prototype.unionPoint=Ht.prototype.Ye,Ht.prototype.intersects=Ht.prototype.Vu,Ht.prototype.intersectsRect=Ht.prototype.Yc,Ht.prototype.intersect=Ht.prototype.Uu,Ht.prototype.intersectRect=Ht.prototype.Ex,Ht.prototype.grow=Ht.prototype.Hz,Ht.prototype.subtractMargin=Ht.prototype.Fv,Ht.prototype.addMargin=Ht.prototype.Co,Ht.prototype.inflate=Ht.prototype.Bc,Ht.prototype.offset=Ht.prototype.offset,Ht.prototype.contains=Ht.prototype.contains,Ht.prototype.containsRect=Ht.prototype.Re,Ht.prototype.containsPoint=Ht.prototype.ca,Ht.prototype.equalsApprox=Ht.prototype.Xa,Ht.prototype.equalTo=Ht.prototype.hi,Ht.prototype.equals=Ht.prototype.D,Ht.prototype.setSize=Ht.prototype.tA,Ht.prototype.setPoint=Ht.prototype.dd,Ht.prototype.set=Ht.prototype.set,Ht.prototype.setTo=Ht.prototype.sg;var Er=null,yn=null,pr=[];Ht.className="Rect",Ht.parse=Eu,Ht.stringify=Ml,Ht.contains=Co,Ht.intersects=ba,Ht.ZeroRect=Er=new Ht(0,0,0,0).ja(),Ht.NoRect=yn=new Ht(NaN,NaN,NaN,NaN).ja(),Ht.parse=Eu,Ht.stringify=Ml,Ht.contains=Co,Ht.intersects=ba;function pi(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):pt("Invalid arguments to Margin constructor: "+e+", "+t+", "+n+", "+i),this._isFrozen=!1}pi.prototype.assign=function(e){return this.top=e.top,this.right=e.right,this.bottom=e.bottom,this.left=e.left,this},pi.prototype.sg=function(e,t,n,i){return this.top=e,this.right=t,this.bottom=n,this.left=i,this},pi.prototype.set=function(e){return this.top=e.top,this.right=e.right,this.bottom=e.bottom,this.left=e.left,this},pi.prototype.copy=function(){var e=new pi;return e.top=this.top,e.right=this.right,e.bottom=this.bottom,e.left=this.left,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)&&pt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Yo(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 pi;for(var r=NaN;e[t]==="";)t++;if((i=e[t++])&&(r=parseFloat(i)),isNaN(r))return new pi(n);for(var o=NaN;e[t]==="";)t++;if((i=e[t++])&&(o=parseFloat(i)),isNaN(o))return new pi(n,r);for(var s=NaN;e[t]==="";)t++;return(i=e[t++])&&(s=parseFloat(i)),isNaN(s)?new pi(n,r):new pi(n,r,o,s)}return new pi}function Ns(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 pi?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 Ye.B(this.top,e.top)&&Ye.B(this.right,e.right)&&Ye.B(this.bottom,e.bottom)&&Ye.B(this.left,e.left)},U.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},pi.alloc=function(){var e=Ca.pop();return e===void 0?new pi:e},pi.free=function(e){Ca.push(e)},pi.prototype.isReal=pi.prototype.w,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 ha=null,Oa=null,Ca=[];pi.className="Margin",pi.parse=Yo,pi.stringify=Ns,pi.ZeroMargin=ha=new pi(0,0,0,0).ja(),pi.TwoMargin=Oa=new pi(2,2,2,2).ja(),pi.parse=Yo,pi.stringify=Ns;function oi(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 Di,Qo,Ta,Go,Js,kr,ol,La,Ra,zo,qs,Ol,Vs,As,pl,Wo,$a,wu,Ll,ea,Ls,ja,$i,Na,Rl,Ur,bo,hs,is,qr,rs,ps,ks,Es,Gl,Za;oi.prototype.assign=function(e){return this.x=e.x,this.y=e.y,this.offsetX=e.offsetX,this.offsetY=e.offsetY,this},oi.prototype.sg=function(e,t,n,i){return this.x=e,this.y=t,this.offsetX=n,this.offsetY=i,this},oi.prototype.set=function(e){return this.x=e.x,this.y=e.y,this.offsetX=e.offsetX,this.offsetY=e.offsetY,this},oi.prototype.copy=function(){var e=new oi;return e.x=this.x,e.y=this.y,e.offsetX=this.offsetX,e.offsetY=this.offsetY,e},U=oi.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)&&pt("cannot thaw constant: "+this),this._isFrozen=!1,this};function ws(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 Di;if(e==="TopLeft")return Qo;if(e==="Top"||e==="TopCenter"||e==="MiddleTop")return Ta;if(e==="TopRight")return Go;if(e==="Left"||e==="LeftCenter"||e==="MiddleLeft")return Js;if(e==="Center")return kr;if(e==="Right"||e==="RightCenter"||e==="MiddleRight")return ol;if(e==="BottomLeft")return La;if(e==="Bottom"||e==="BottomCenter"||e==="MiddleBottom")return Ra;if(e==="BottomRight")return zo;if(e==="TopSide")return qs;if(e==="LeftSide")return Ol;if(e==="RightSide")return Vs;if(e==="BottomSide")return As;if(e==="TopBottomSides")return pl;if(e==="LeftRightSides")return Wo;if(e==="TopLeftSides")return $a;if(e==="TopRightSides")return wu;if(e==="BottomLeftSides")return Ll;if(e==="BottomRightSides")return ea;if(e==="NotTopSide")return Ls;if(e==="NotLeftSide")return ja;if(e==="NotRightSide")return $i;if(e==="NotBottomSide")return Na;if(e==="AllSides")return Rl;if(e==="Default")return Ur;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 s=0;e[t]==="";)t++;return i=e[t++],i!==void 0&&0<i.length&&(s=parseFloat(i)),new oi(n,r,o,s)}return new oi}function Yu(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(Di)?"None":this.D(Qo)?"TopLeft":this.D(Ta)?"Top":this.D(Go)?"TopRight":this.D(Js)?"Left":this.D(kr)?"Center":this.D(ol)?"Right":this.D(La)?"BottomLeft":this.D(Ra)?"Bottom":this.D(zo)?"BottomRight":this.D(qs)?"TopSide":this.D(Ol)?"LeftSide":this.D(Vs)?"RightSide":this.D(As)?"BottomSide":this.D(pl)?"TopBottomSides":this.D(Wo)?"LeftRightSides":this.D($a)?"TopLeftSides":this.D(wu)?"TopRightSides":this.D(Ll)?"BottomLeftSides":this.D(ea)?"BottomRightSides":this.D(Ls)?"NotTopSide":this.D(ja)?"NotLeftSide":this.D($i)?"NotRightSide":this.D(Na)?"NotBottomSide":this.D(Rl)?"AllSides":this.D(Ur)?"Default":"None"},U.D=function(e){return e instanceof oi?(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 oi(.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(bo))e=Ol;else if(e.D(hs))e=Vs;else if(e.D(is))e=qs;else if(e.D(qr))e=As;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},oi.alloc=function(){var e=lu.pop();return e===void 0?new oi:e},oi.free=function(e){lu.push(e)},oi.prototype.isDefault=oi.prototype.Xb,oi.prototype.isNone=oi.prototype.ys,oi.prototype.isSide=oi.prototype.$c,oi.prototype.isNoSpot=oi.prototype.Mc,oi.prototype.isSpot=oi.prototype.sb,oi.prototype.includesSide=oi.prototype.Hf,oi.prototype.opposite=oi.prototype.gv,oi.prototype.equals=oi.prototype.D,oi.prototype.set=oi.prototype.set,oi.prototype.setTo=oi.prototype.sg;var lu=[];oi.className="Spot",oi.parse=hc,oi.stringify=Yu,oi.None=Di=ws(new oi(0,0,0,0),0).ja(),oi.Default=Ur=ws(new oi(0,0,-1,0),-1).ja(),oi.TopLeft=Qo=new oi(0,0,0,0).ja(),oi.TopCenter=Ta=new oi(.5,0,0,0).ja(),oi.TopRight=Go=new oi(1,0,0,0).ja(),oi.LeftCenter=Js=new oi(0,.5,0,0).ja(),oi.Center=kr=new oi(.5,.5,0,0).ja(),oi.RightCenter=ol=new oi(1,.5,0,0).ja(),oi.BottomLeft=La=new oi(0,1,0,0).ja(),oi.BottomCenter=Ra=new oi(.5,1,0,0).ja(),oi.BottomRight=zo=new oi(1,1,0,0).ja(),oi.MiddleTop=rs=Ta,oi.MiddleLeft=ps=Js,oi.MiddleRight=ks=ol,oi.MiddleBottom=Es=Ra,oi.Top=is=Ta,oi.Left=bo=Js,oi.Right=hs=ol,oi.Bottom=qr=Ra,oi.TopSide=qs=ws(new oi(0,0,1,1),1).ja(),oi.LeftSide=Ol=ws(new oi(0,0,1,2),1).ja(),oi.RightSide=Vs=ws(new oi(0,0,1,4),1).ja(),oi.BottomSide=As=ws(new oi(0,0,1,8),1).ja(),oi.TopBottomSides=pl=ws(new oi(0,0,1,9),1).ja(),oi.LeftRightSides=Wo=ws(new oi(0,0,1,6),1).ja(),oi.TopLeftSides=$a=ws(new oi(0,0,1,3),1).ja(),oi.TopRightSides=wu=ws(new oi(0,0,1,5),1).ja(),oi.BottomLeftSides=Ll=ws(new oi(0,0,1,10),1).ja(),oi.BottomRightSides=ea=ws(new oi(0,0,1,12),1).ja(),oi.NotTopSide=Ls=ws(new oi(0,0,1,14),1).ja(),oi.NotLeftSide=ja=ws(new oi(0,0,1,13),1).ja(),oi.NotRightSide=$i=ws(new oi(0,0,1,11),1).ja(),oi.NotBottomSide=Na=ws(new oi(0,0,1,7),1).ja(),oi.AllSides=Rl=ws(new oi(0,0,1,15),1).ja(),Gl=new oi(.156,.156).ja(),Za=new oi(.844,.844).ja(),oi.parse=hc,oi.stringify=Yu;function or(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}or.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},or.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},or.prototype.copy=function(){var e=new or;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},or.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},or.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},or.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},or.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},or.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},or.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,s=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*s+this.m21*e+this.dx,this.dy=this.m12*s+this.m22*e+this.dy,this.m11=t,this.m12=n,this.m21=i,this.m22=r,this},or.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},or.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,s=this.m12*-i+this.m22*e;return this.m11=this.m11*e+this.m21*i,this.m12=r,this.m21=o,this.m22=s,this.translate(-t,-n),this},U=or.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,s=this.m12,l=this.m21,u=this.m22,f=this.dx,p=this.dy,x=t*o+n*l+f,A=t*s+n*u+p,L=i*o+n*l+f,B=i*s+n*u+p;return n=t*o+r*l+f,t=t*s+r*u+p,o=i*o+r*l+f,i=i*s+r*u+p,r=Math.min(x,L),x=Math.max(x,L),L=Math.min(A,B),A=Math.max(A,B),r=Math.min(r,n),x=Math.max(x,n),L=Math.min(L,t),A=Math.max(A,t),r=Math.min(r,o),x=Math.max(x,o),L=Math.min(L,i),A=Math.max(A,i),e.h(r,L,x-r,A-L),e},or.alloc=function(){var e=Ga.pop();return e===void 0?new or:e},or.free=function(e){Ga.push(e)},or.prototype.transformRect=or.prototype.pp,or.prototype.transformPoint=or.prototype.Ga,or.prototype.scale=or.prototype.scale,or.prototype.translate=or.prototype.translate,or.prototype.rotate=or.prototype.rotate,or.prototype.invert=or.prototype.Vj,or.prototype.multiplyInverted=or.prototype.bv,or.prototype.multiply=or.prototype.multiply,or.prototype.reset=or.prototype.reset,or.prototype.isIdentity=or.prototype.ws,or.prototype.equals=or.prototype.D,or.prototype.setTransform=or.prototype.setTransform,or.prototype.set=or.prototype.set;var Ga=[];or.className="Transform",or.xF="54a702f3e53909c447824c6706603faf4c";var Ye={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(e){if(0>=e)return 0;var t=Ye.Uv;if(t===null){t=[];for(var n=0;2e3>=n;n++)t[n]=Math.sqrt(n);Ye.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,s){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<=s&&s<=p&&e-r<=o&&o<=e+r;if(t===i)return l<=o&&o<=u&&t-r<=s&&s<=t+r;if(u+=r,l-=r,l<=o&&o<=u&&(p+=r,f-=r,f<=s&&s<=p))if(u-l>p-f)if(e-n>r||n-e>r){if(o=(i-t)/(n-e)*(o-e)+t,o-r<=s&&s<=o+r)return!0}else return!0;else if(t-i>r||i-t>r){if(s=(n-e)/(i-t)*(s-t)+e,s-r<=o&&o<=s+r)return!0}else return!0;return!1},cs:function(e,t,n,i,r,o,s,l,u,f,p,x){if(Ye.Yb(e,t,s,l,x,n,i)&&Ye.Yb(e,t,s,l,x,r,o))return Ye.Yb(e,t,s,l,x,f,p);var A=(e+n)/2,L=(t+i)/2,B=(n+r)/2,V=(i+o)/2;r=(r+s)/2,o=(o+l)/2,i=(A+B)/2,n=(L+V)/2,B=(B+r)/2,V=(V+o)/2;var ye=(i+B)/2,oe=(n+V)/2;return Ye.cs(e,t,A,L,i,n,ye,oe,u,f,p,x)||Ye.cs(ye,oe,B,V,r,o,s,l,u,f,p,x)},ax:function(e,t,n,i,r,o,s,l,u){var f=(n+r)/2,p=(i+o)/2;return u.h((((e+n)/2+f)/2+(f+(r+s)/2)/2)/2,(((t+i)/2+p)/2+(p+(o+l)/2)/2)/2),u},My:function(e,t,n,i,r,o,s,l){var u=(n+r)/2,f=(i+o)/2;return wo(((e+n)/2+u)/2,((t+i)/2+f)/2,(u+(r+s)/2)/2,(f+(o+l)/2)/2)},Dl:function(e,t,n,i,r,o,s,l,u,f){if(Ye.Yb(e,t,s,l,u,n,i)&&Ye.Yb(e,t,s,l,u,r,o))zr(f,e,t,0,0),zr(f,s,l,0,0);else{var p=(e+n)/2,x=(t+i)/2,A=(n+r)/2,L=(i+o)/2;r=(r+s)/2,o=(o+l)/2,i=(p+A)/2,n=(x+L)/2,A=(A+r)/2,L=(L+o)/2;var B=(i+A)/2,V=(n+L)/2;Ye.Dl(e,t,p,x,i,n,B,V,u,f),Ye.Dl(B,V,A,L,r,o,s,l,u,f)}return f},Qe:function(e,t,n,i,r,o,s,l,u,f){if(Ye.Yb(e,t,s,l,u,n,i)&&Ye.Yb(e,t,s,l,u,r,o))f.length===0&&(f.push(e),f.push(t)),f.push(s),f.push(l);else{var p=(e+n)/2,x=(t+i)/2,A=(n+r)/2,L=(i+o)/2;r=(r+s)/2,o=(o+l)/2,i=(p+A)/2,n=(x+L)/2,A=(A+r)/2,L=(L+o)/2;var B=(i+A)/2,V=(n+L)/2;Ye.Qe(e,t,p,x,i,n,B,V,u,f),Ye.Qe(B,V,A,L,r,o,s,l,u,f)}return f},jv:function(e,t,n,i,r,o,s,l,u,f){if(Ye.Yb(e,t,r,o,f,n,i))return Ye.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 A=(p+n)/2,L=(x+i)/2;return Ye.jv(e,t,p,x,A,L,s,l,u,f)||Ye.jv(A,L,n,i,r,o,s,l,u,f)},OA:function(e,t,n,i,r,o,s){return s.h(((e+n)/2+(n+r)/2)/2,((t+i)/2+(i+o)/2)/2),s},iv:function(e,t,n,i,r,o,s,l){if(Ye.Yb(e,t,r,o,s,n,i))zr(l,e,t,0,0),zr(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;Ye.iv(e,t,u,f,p,x,s,l),Ye.iv(p,x,n,i,r,o,s,l)}return l},ep:function(e,t,n,i,r,o,s,l){if(Ye.Yb(e,t,r,o,s,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;Ye.ep(e,t,u,f,p,x,s,l),Ye.ep(p,x,n,i,r,o,s,l)}return l},Eo:function(e,t,n,i,r,o,s,l,u,f,p,x,A,L){if(Ye.Yb(e,t,s,l,A,n,i)&&Ye.Yb(e,t,s,l,A,r,o))return!Ye.Rl(e,t,s,l,u,f,p,x)||(A=(e-s)*(f-x)-(t-l)*(u-p),A===0)?!1:(L.h(((e*l-t*s)*(u-p)-(e-s)*(u*x-f*p))/A,((e*l-t*s)*(f-x)-(t-l)*(u*x-f*p))/A),!0);var B=(e+n)/2,V=(t+i)/2,ye=(n+r)/2,oe=(i+o)/2;r=(r+s)/2,o=(o+l)/2,i=(B+ye)/2,n=(V+oe)/2,ye=(ye+r)/2,oe=(oe+o)/2;var Me=(i+ye)/2,Be=(n+oe)/2,je=1/0,tt=!1,St=0,$n=0;return Ye.Eo(e,t,B,V,i,n,Me,Be,u,f,p,x,A,L)&&(e=(L.x-u)*(L.x-u)+(L.y-f)*(L.y-f),e<je&&(je=e,tt=!0,St=L.x,$n=L.y)),Ye.Eo(Me,Be,ye,oe,r,o,s,l,u,f,p,x,A,L)&&(L.x-u)*(L.x-u)+(L.y-f)*(L.y-f)<je&&(tt=!0,St=L.x,$n=L.y),tt&&(L.x=St,L.y=$n),tt},Fo:function(e,t,n,i,r,o,s,l,u,f,p,x,A){var L=0;if(Ye.Yb(e,t,s,l,A,n,i)&&Ye.Yb(e,t,s,l,A,r,o)){if(A=(e-s)*(f-x)-(t-l)*(u-p),A===0)return L;var B=((e*l-t*s)*(u-p)-(e-s)*(u*x-f*p))/A,V=((e*l-t*s)*(f-x)-(t-l)*(u*x-f*p))/A;if(B>=p)return L;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 L}else if(e<s?(u=e,e=s):u=s,B<u||B>e)return L;0<A?L++:0>A&&L--}else{B=(e+n)/2,V=(t+i)/2;var ye=(n+r)/2,oe=(i+o)/2;r=(r+s)/2,o=(o+l)/2,i=(B+ye)/2,n=(V+oe)/2,ye=(ye+r)/2,oe=(oe+o)/2;var Me=(i+ye)/2,Be=(n+oe)/2;L+=Ye.Fo(e,t,B,V,i,n,Me,Be,u,f,p,x,A),L+=Ye.Fo(Me,Be,ye,oe,r,o,s,l,u,f,p,x,A)}return L},qh:function(e,t,n,i,r,o,s){return Ye.$(e,n)?(t<i?(n=t,t=i):n=i,o<n?(s.h(e,n),!1):o>t?(s.h(e,t),!1):(s.h(e,o),!0)):Ye.$(t,i)?(e<n?(i=e,e=n):i=n,r<i?(s.h(i,t),!1):r>e?(s.h(e,t),!1):(s.h(r,t),!0)):(r=((e-r)*(e-n)+(t-o)*(t-i))/((n-e)*(n-e)+(i-t)*(i-t)),-5e-6>r?(s.h(e,t),!1):1.000005<r?(s.h(n,i),!1):(s.h(e+r*(n-e),t+r*(i-t)),!0))},Ve:function(e,t,n,i,r,o,s,l,u){return Ye.B(e,n)&&Ye.B(t,i)?(u.h(e,t),!1):Ye.$(r,s)?Ye.$(e,n)?(Ye.qh(e,t,n,i,r,o,u),!1):Ye.qh(e,t,n,i,r,(i-t)/(n-e)*(r-e)+t,u):(l=(l-o)/(s-r),Ye.$(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)):(s=(i-t)/(n-e),Ye.$(l,s)?(Ye.qh(e,t,n,i,r,o,u),!1):(r=(s*e-l*r+o-t)/(s-l),Ye.$(s,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)):Ye.qh(e,t,n,i,r,s*(r-e)+t,u))))},MA:function(e,t,n,i,r){return Ye.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,s,l,u,f){function p(ye,oe){var Me=(ye-e)*(ye-e)+(oe-t)*(oe-t);Me<x&&(x=Me,u.h(ye,oe))}var x=1/0;p(u.x,u.y);var A=0,L=0,B=0,V=0;if(r<s?(A=r,L=s):(A=s,L=r),o<l?(B=r,V=s):(B=s,V=r),A=(L-A)/2+f,f=(V-B)/2+f,r=(r+s)/2,o=(o+l)/2,A===0||f===0)return u;if(.5>(n>e?n-e:e-n)){if(A=1-(n-r)*(n-r)/(A*A),0>A)return u;A=Math.sqrt(A),i=-f*A+o,p(n,f*A+o),p(n,i)}else{if(n=(i-t)/(n-e),i=1/(A*A)+n*n/(f*f),l=2*n*(t-n*e)/(f*f)-2*n*o/(f*f)-2*r/(A*A),A=l*l-4*i*(2*n*e*o/(f*f)-2*t*o/(f*f)+o*o/(f*f)+r*r/(A*A)-1+(t-n*e)*(t-n*e)/(f*f)),0>A)return u;A=Math.sqrt(A),f=(-l+A)/(2*i),p(f,n*f-n*e+t),A=(-l-A)/(2*i),p(A,n*A-n*e+t)}return u},Ff:function(e,t,n,i,r,o,s,l,u){var f=1e21,p=e,x=t;if(Ye.Ve(e,t,e,i,r,o,s,l,u)){var A=(u.x-r)*(u.x-r)+(u.y-o)*(u.y-o);A<f&&(f=A,p=u.x,x=u.y)}return Ye.Ve(n,t,n,i,r,o,s,l,u)&&(A=(u.x-r)*(u.x-r)+(u.y-o)*(u.y-o),A<f&&(f=A,p=u.x,x=u.y)),Ye.Ve(e,t,n,t,r,o,s,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)),Ye.Ve(e,i,n,i,r,o,s,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 Ye.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,s,l){var u=e+n,f=t+i;return r===s?(o<l?(s=o,o=l):s=l,e<=r&&r<=u&&s<=f&&o>=t):o===l?(r<s?(l=r,r=s):l=s,t<=o&&o<=f&&l<=u&&r>=e):!!(Co(e,t,n,i,r,o)||Co(e,t,n,i,s,l)||Ye.Rl(e,t,u,t,r,o,s,l)||Ye.Rl(u,t,u,f,r,o,s,l)||Ye.Rl(u,f,e,f,r,o,s,l)||Ye.Rl(e,f,e,t,r,o,s,l))},Rl:function(e,t,n,i,r,o,s,l){return e===n&&t===i&&r===s&&o===l?e===r&&t===o:0>=Ye.Fl(e,t,n,i,r,o)*Ye.Fl(e,t,n,i,s,l)&&0>=Ye.Fl(r,o,s,l,e,t)*Ye.Fl(r,o,s,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 s=Math.PI;o||(i*=s/180,r*=s/180);var l=i>r?-1:1;o=[];var u=s/2,f=i;if(i=Math.min(2*s,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(Ye.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,s=e*Math.cos(o),l=e*Math.sin(o),u=-l,f=s*s+u*u,p=f+s*s+u*l;return f=4/3*(Math.sqrt(2*f*p)-p)/(s*l-u*s),l=s-f*u,s=u+f*s,u=-s,f=o+t,o=Math.cos(f),f=Math.sin(f),[i+e*Math.cos(t),r+e*Math.sin(t),i+l*o-s*f,r+l*f+s*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,s){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),s.h(l,e),s},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 s=1,l=0;else s=0,l=1;var u=s===0?e:t,f=s===0?n:i;return(s===0?r:o)&&(f=-f),s=l,n=s===0?n:i,(s===0?r:o)&&(n=-n),Ye.az(u,s===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 s=t*i,l=-o+s,u=-o+Math.sqrt(e*e+s*s);t=l;for(var f=0;9999999999>f&&(t=.5*(l+u),!(t===l||t===u));++f){var p=e/(t+r),x=s/(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 ae,um:new ae,Mf:new ae,Nf:0,vm:100};Ye.za=Ye.AA;function kn(e){Yi(this),this.l=2,e===void 0&&(e=kn.o),this.na=e,this.Ec=this.Dc=this.pd=this.od=0,e===kn.o?this.ee=new Zt:(kn.V===null&&(kn.V=new Zt().freeze()),this.ee=kn.V),this.aq=this.ee.Ja,this.Ip=new Ht().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=Qo,this.gg=zo,this.Rk=this.Sk=NaN,this.Uf=bn}kn.prototype.copy=function(){var e=new kn;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===kn.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},kn.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},kn.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==kn.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},kn.prototype.ka=function(){if(Object.isFrozen(this)&&pt("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==kn.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},kn.prototype.Xa=function(e){if(!(e instanceof kn))return!1;if(this.type!==e.type)return this.type===kn.j&&e.type===kn.o?Cu(this,e):e.type===kn.j&&this.type===kn.o?Cu(e,this):!1;if(this.type===kn.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 Ye.B(this.startX,e.startX)&&Ye.B(this.startY,e.startY)&&Ye.B(this.endX,e.endX)&&Ye.B(this.endY,e.endY)};function Cu(e,t){return e.type!==kn.j||t.type!==kn.o?!1:!!(t.figures.count===1&&(t=t.figures.M(0),t.segments.count===1&&Ye.B(e.startX,t.startX)&&Ye.B(e.startY,t.startY)&&(t=t.segments.M(0),t.type===ro&&Ye.B(e.endX,t.endX)&&Ye.B(e.endY,t.endY))))}kn.ia=function(e){return e.toString()},kn.prototype.qb=function(e){e.classType===kn&&(this.type=e)},kn.prototype.toString=function(e){switch(e===void 0&&(e=-1),this.type){case kn.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 kn.u:var t=new Ht(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 kn.F:if(t=new Ht(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 kn.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()}},kn.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},kn.parse=function(e,t){function n(){return V>=je-1?!0:f[V+1].match(tt)!==null}function i(){return V++,f[V]}function r(Ji){var Ui=parseFloat(i()),Yr=parseFloat(i());ye===ye.toLowerCase()&&(Ui=Be.x+Ui,Yr=Be.y+Yr),Ji.h(Ui,Yr)}function o(){return r(Be),Be}function s(){return r(Me),Me}function l(){var Ji=oe.toLowerCase();return Ji!=="c"&&Ji!=="s"&&Ji!=="q"&&Ji!=="t"?Be:new ce(2*Be.x-Me.x,2*Be.y-Me.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=Gt();for(var x="",A=!1,L=0;L<p.length;L++){var B=p[L];B!=="."||A?B==="."?(u.push(x),x="."):x+=B:(A=!0,x+=B)}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,dn(u)}}var V=-1,ye="",oe="";u=new ce(0,0);var Me=new ce(0,0),Be=new ce(0,0),je=f.length;e=Hy(null),A=x=p=!1,L=!0,B=null;for(var tt=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(V>=je-1);)if(oe=ye,ye=i(),ye!=="")switch(ye.toUpperCase()){case"X":L=!0,x=p=!1;break;case"M":for(B=o(),e.mc===null||L===!0?(If(e,B.x,B.y,p,!x,A),L=!1):e.moveTo(B.x,B.y),u.assign(Be);!n();)B=o(),e.lineTo(B.x,B.y);break;case"L":for(;!n();)B=o(),e.lineTo(B.x,B.y);break;case"H":for(;!n();)Be=new ce((ye===ye.toLowerCase()?Be.x:0)+parseFloat(i()),Be.y),e.lineTo(Be.x,Be.y);break;case"V":for(;!n();)Be=new ce(Be.x,(ye===ye.toLowerCase()?Be.y:0)+parseFloat(i())),e.lineTo(Be.x,Be.y);break;case"C":for(;!n();){B=new ce,r(B);var St=s(),$n=o();bh(e,B.x,B.y,St.x,St.y,$n.x,$n.y)}break;case"S":for(;!n();)B=l(),St=s(),$n=o(),bh(e,B.x,B.y,St.x,St.y,$n.x,$n.y);break;case"Q":for(;!n();)B=s(),St=o(),Z0(e,B.x,B.y,St.x,St.y);break;case"T":for(;!n();)Me=B=l(),St=o(),Z0(e,B.x,B.y,St.x,St.y);break;case"B":for(;!n();){B=parseFloat(i()),St=parseFloat(i()),$n=parseFloat(i());var ii=parseFloat(i()),Qn=parseFloat(i()),An=Qn,an=!1;n()||(An=parseFloat(i()),n()||(an=parseFloat(i())!==0)),ye===ye.toLowerCase()&&($n+=Be.x,ii+=Be.y),e.arcTo(B,St,$n,ii,Qn,An,an)}break;case"A":for(;!n();)B=Math.abs(parseFloat(i())),St=Math.abs(parseFloat(i())),$n=parseFloat(i()),Qn=ii=!1,an=An=0,An=i(),An.length===1?(ii=!!parseFloat(An),Qn=!!parseFloat(i()),An=parseFloat(i())):An.length===2?(ii=!!parseFloat(An[0]),Qn=!!parseFloat(An[1]),An=parseFloat(i())):(ii=!!parseFloat(An[0]),Qn=!!parseFloat(An[1]),An=parseFloat(An.slice(2))),an=parseFloat(i()),ye===ye.toLowerCase()&&(An=Be.x+An,an=Be.y+an),Be.h(An,an),Fb(e,B,St,$n,ii,Qn,An,an);break;case"Z":Pb(e),Be.assign(u);break;case"F":for(B="",St=1;f[V+St];)if(f[V+St]==="0")A=!0,St++;else if(f[V+St].match(/[Uu]/)!==null)St++;else if(f[V+St].match(tt)===null)St++;else{B=f[V+St];break}B.match(/[Mm]/)?p=!0:0<e.mc.segments.length&&(e.mc.isFilled=!0);break;case"U":for(B="",St=1;f[V+St];)if(f[V+St].match(/[Ff]/)!==null)St++;else if(f[V+St].match(tt)===null)St++;else{B=f[V+St];break}B.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},kn.Ha=function(e,t){for(var n=e.length,i=ce.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}ce.free(i)},kn.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===kn.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},kn.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===kn.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 s=i[o];s._isInvalidBounds=!1,s.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),Zu(this,e,!1),zr(e,0,0,0,0),e.freeze()},kn.prototype.ix=function(){var e=new Ht;return Zu(this,e,!0),e};function Zu(e,t,n){switch(e.type){case kn.j:case kn.u:case kn.F:n?t.h(e.od,e.pd,0,0):zr(t,e.od,e.pd,0,0),zr(t,e.Dc,e.Ec,0,0);break;case kn.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):zr(t,o.startX,o.startY,0,0);for(var s=o.segments.s,l=s.length,u=o.startX,f=o.startY,p=0;p<l;p++){var x=s[p];switch(x.type){case ro:case go:u=x.endX,f=x.endY,zr(t,u,f,0,0);break;case _s:Ye.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 Wa:Ye.iv(u,f,x.point1X,x.point1Y,x.endX,x.endY,.5,t),u=x.endX,f=x.endY;break;case os:case Va:var A=x.type===os?Da(x,o):da(x,o,u,f),L=A.length;if(L===0){u=x.type===os?x.centerX:x.endX,f=x.type===os?x.centerY:x.endY,zr(t,u,f,0,0);break}x=null;for(var B=0;B<L;B++)x=A[B],Ye.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:pt("Unknown Segment type: "+x.type)}}}break;default:pt("Unknown Geometry type: "+e.type)}}kn.prototype.normalize=function(){this._isFrozen&&gn(this);var e=this.ix();return this.offset(-e.x,-e.y),new ce(-e.x,-e.y)},kn.prototype.offset=function(e,t){return this._isFrozen&&gn(this),this.transform(1,0,0,1,e,t),this},kn.prototype.scale=function(e,t){return this._isFrozen&&gn(this),this.transform(e,0,0,t,0,0),this},kn.prototype.rotate=function(e,t,n){this._isFrozen&&gn(this),t===void 0&&(t=0),n===void 0&&(n=0);var i=or.alloc();return i.reset(),i.rotate(e,t,n),this.transform(i.m11,i.m12,i.m21,i.m22,i.dx,i.dy),or.free(i),this},U=kn.prototype,U.transform=function(e,t,n,i,r,o){switch(this.type){case kn.j:case kn.u:case kn.F:var s=this.od,l=this.pd;this.od=s*e+l*n+r,this.pd=s*t+l*i+o,s=this.Dc,l=this.Ec,this.Dc=s*e+l*n+r,this.Ec=s*t+l*i+o;break;case kn.o:for(var u=this.figures.s,f=u.length,p=0;p<f;p++){var x=u[p];s=x.startX,l=x.startY,x.startX=s*e+l*n+r,x.startY=s*t+l*i+o,x=x.segments.s;for(var A=x.length,L=0;L<A;L++){var B=x[L];switch(B.type){case ro:case go:s=B.endX,l=B.endY,B.endX=s*e+l*n+r,B.endY=s*t+l*i+o;break;case _s:s=B.point1X,l=B.point1Y,B.point1X=s*e+l*n+r,B.point1Y=s*t+l*i+o,s=B.point2X,l=B.point2Y,B.point2X=s*e+l*n+r,B.point2Y=s*t+l*i+o,s=B.endX,l=B.endY,B.endX=s*e+l*n+r,B.endY=s*t+l*i+o;break;case Wa:s=B.point1X,l=B.point1Y,B.point1X=s*e+l*n+r,B.point1Y=s*t+l*i+o,s=B.endX,l=B.endY,B.endX=s*e+l*n+r,B.endY=s*t+l*i+o;break;case os:s=B.centerX,l=B.centerY,B.centerX=s*e+l*n+r,B.centerY=s*t+l*i+o,t!==0&&(s=180*Math.atan2(t,e)/Math.PI,0>s&&(s+=360),B.startAngle+=s),0>e&&(B.startAngle=180-B.startAngle,B.sweepAngle=-B.sweepAngle),0>i&&(B.startAngle=-B.startAngle,B.sweepAngle=-B.sweepAngle),B.radiusX*=Math.sqrt(e*e+n*n),B.radiusY!==void 0&&(B.radiusY*=Math.sqrt(t*t+i*i));break;case Va:if(s=B.endX,l=B.endY,B.endX=s*e+l*n+r,B.endY=s*t+l*i+o,B.radiusX===0||B.radiusY===0)break;t!==0&&(s=180*Math.atan2(t,e)/Math.PI,0>s&&(s+=360),B.xAxisRotation+=s),0>e&&(B.xAxisRotation=180-B.xAxisRotation,B.isClockwiseArc=!B.isClockwiseArc),0>i&&(B.xAxisRotation=-B.xAxisRotation,B.isClockwiseArc=!B.isClockwiseArc),B.radiusX*=Math.sqrt(e*e+n*n),B.radiusY*=Math.sqrt(t*t+i*i);break;default:pt("Unknown Segment type: "+B.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 kn.j:return Ye.Yb(n,i,r,o,t,e.x,e.y);case kn.u:var s=Ht.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=s.ca(e),Ht.free(s),e;case kn.F:s=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:(s=e.x-(s+n),l=e.y-(l+t),1>=s*s/(n*n)+l*l/(t*t));case kn.o:return Dl(this,e,t,!0,!1);default:return!1}};function Dl(e,t,n,i,r){var o=t.x;t=t.y;for(var s=e.bounds.x-20,l=0,u,f,p,x,A=e.figures.s,L=A.length,B=0;B<L;B++){var V=A[B],ye=!V.isEvenOdd;if(V.isFilled){if(i&&V.ca(o,t,n))return!0;var oe=V.segments;u=V.startX,f=V.startY;for(var Me=u,Be=f,je=oe.s,tt=0;tt<=oe.length;tt++){var St=void 0;if(tt!==oe.length){St=je[tt];var $n=St.type;e=St.endX,x=St.endY}else $n=ro,e=Me,x=Be;switch($n){case go:if(Me=Pl(o,t,s,t,u,f,Me,Be),isNaN(Me))return!0;l+=Me,Me=e,Be=x;break;case ro:if(u=Pl(o,t,s,t,u,f,e,x),isNaN(u))return!0;l+=u;break;case _s:p=Ye.Fo(u,f,St.point1X,St.point1Y,St.point2X,St.point2Y,e,x,s,t,o,t,.5),l+=p;break;case Wa:p=Ye.Fo(u,f,(u+2*St.point1X)/3,(f+2*St.point1Y)/3,(2*St.point1X+e)/3,(2*St.point1Y+x)/3,e,x,s,t,o,t,.5),l+=p;break;case os:case Va:$n=St.type===os?Da(St,V):da(St,V,u,f);var ii=$n.length;if(ii===0){if(u=Pl(o,t,s,t,u,f,St.type===os?St.centerX:St.endX,St.type===os?St.centerY:St.endY),isNaN(u))return!0;l+=u;break}St=null;for(var Qn=0;Qn<ii;Qn++){if(St=$n[Qn],Qn===0){if(p=Pl(o,t,s,t,u,f,St[0],St[1]),isNaN(p))return!0;l+=p}p=Ye.Fo(St[0],St[1],St[2],St[3],St[4],St[5],St[6],St[7],s,t,o,t,.5),l+=p}St!==null&&(e=St[6],x=St[7]);break;default:pt("Unknown Segment type: "+St.type)}u=e,f=x}if(ye){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 Pl(e,t,n,i,r,o,s,l){if(Ye.Yb(r,o,s,l,.05,e,t))return NaN;var u=(e-n)*(o-l);if(u===0)return 0;var f=((e*i-t*n)*(r-s)-(e-n)*(r*l-o*s))/u;if(t=(e*i-t*n)*(o-l)/u,f>=e)return 0;if((r>s?r-s:s-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<s){if(f<r||f>s)return 0}else if(f<s||f>r)return 0;return 0<u?1:-1}function ml(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 ce),this.type===kn.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,s=0,l=0;l<r;l++){var u=i[l],f=u.length;for(e=0;e<f;e++){var p=u[e];if(s+p>=o)return i=o-s,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;s+=p}}return t},U.wx=function(e){if(0>e?e=0:1<e&&(e=1),this.type===kn.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,s=0;s<i;s++){var l=n[s],u=l.length;for(e=0;e<u;e++){var f=l[e];if(o+f>=r)return r=t[s],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===kn.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,s=0,l=0;l<r;l++){var u=i[l],f=u.length;for(e=0;e<f;e++){var p=u[e];if(s+p>=o)return i=o-s,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;s+=p}}return t},U.xx=function(e){if(this.type===kn.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 s=n;i=r}else s=r,i=n;return e<=s?s===n?0:1:e>=i?i===n?0:1:Math.abs(e-n)/(i-s)}if(n===r)return t<i?s=t:(s=i,i=t),o<=s?s===t?0:1:o>=i?i===t?0:1:Math.abs(o-t)/(i-s);s=(i-t)*(i-t)+(r-n)*(r-n);var l=ce.alloc();return Ye.qh(t,n,i,r,o,e,l),e=l.x,o=l.y,ce.free(l),Math.sqrt(((e-t)*(e-t)+(o-n)*(o-n))/s)}}else if(this.type===kn.u){s=this.startX,l=this.startY;var u=this.endX;if(r=this.endY,s!==u||l!==r){t=u-s,n=r-l,o=2*t+2*n,i=e.x,e=e.y,i=Math.min(Math.max(i,s),u),e=Math.min(Math.max(e,l),r),s=Math.abs(i-s),u=Math.abs(i-u),l=Math.abs(e-l),r=Math.abs(e-r);var f=Math.min(s,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===s)return(2*t+2*n-e)/o}}else{t=this.flattenedSegments,n=this.flattenedLengths,o=this.flattenedTotalLength,i=ce.alloc(),r=1/0,l=s=0,u=t.length;for(var p=f=0,x=0;x<u;x++)for(var A=t[x],L=n[x],B=A.length,V=0;V<B;V+=2){var ye=A[V],oe=A[V+1];if(V!==0){Ye.qh(f,p,ye,oe,e.x,e.y,i);var Me=(i.x-e.x)*(i.x-e.x)+(i.y-e.y)*(i.y-e.y);Me<r&&(r=Me,s=l,s+=Math.sqrt((i.x-f)*(i.x-f)+(i.y-p)*(i.y-p))),l+=L[(V-2)/2]}f=ye,p=oe}return ce.free(i),e=s/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===kn.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===kn.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===kn.F){var o=new Cs;o.startX=e.endX,o.startY=(e.startY+e.endY)/2;var s=new Nr(os);if(s.startAngle=0,s.sweepAngle=360,s.centerX=(e.startX+e.endX)/2,s.centerY=(e.startY+e.endY)/2,s.radiusX=Math.abs(e.startX-e.endX)/2,s.radiusY=Math.abs(e.startY-e.endY)/2,o.add(s),e=Da(s,o),r=e.length,r===0)i.push(s.centerX),i.push(s.centerY);else{s=o.startX,o=o.startY;for(var l=0;l<r;l++){var u=e[l];Ye.Qe(s,o,u[2],u[3],u[4],u[5],u[6],u[7],.5,i),s=u[6],o=u[7]}}t.push(i),n.push(uu(i))}else for(e=e.figures.iterator;e.next();){r=e.value,i=[],i.push(r.startX),i.push(r.startY),s=r.startX,o=r.startY,l=s,u=o;for(var f=r.segments.s,p=f.length,x=0;x<p;x++){var A=f[x];switch(A.type){case go:4<=i.length&&(t.push(i),n.push(uu(i))),i=[],i.push(A.endX),i.push(A.endY),s=A.endX,o=A.endY,l=s,u=o;break;case ro:i.push(A.endX),i.push(A.endY),s=A.endX,o=A.endY;break;case _s:Ye.Qe(s,o,A.point1X,A.point1Y,A.point2X,A.point2Y,A.endX,A.endY,.5,i),s=A.endX,o=A.endY;break;case Wa:Ye.ep(s,o,A.point1X,A.point1Y,A.endX,A.endY,.5,i),s=A.endX,o=A.endY;break;case os:var L=Da(A,r),B=L.length;if(B===0){i.push(A.centerX),i.push(A.centerY),s=A.centerX,o=A.centerY;break}for(var V=0;V<B;V++){var ye=L[V];Ye.Qe(s,o,ye[2],ye[3],ye[4],ye[5],ye[6],ye[7],.5,i),s=ye[6],o=ye[7]}break;case Va:if(L=da(A,r,s,o),B=L.length,V=A.endX,ye=A.endY,B===0){i.push(V),i.push(ye),s=V,o=ye;break}for(V=0;V<B;V++)ye=L[V],Ye.Qe(s,o,ye[2],ye[3],ye[4],ye[5],ye[6],ye[7],.5,i),s=ye[6],o=ye[7];break;default:pt("Segment not of valid type: "+A.type)}A.isClosed&&(i.push(l),i.push(u))}4<=i.length&&(t.push(i),n.push(uu(i)))}}}function uu(e){for(var t=[],n=0,i=0,r=e.length,o=0;o<r;o+=2){var s=e[o],l=e[o+1];o!==0&&t.push(Math.sqrt(Vr(n,i,s,l))),n=s,i=l}return t}U.add=function(e){return this.ee.add(e),this},U.pm=function(e,t,n,i,r,o,s,l){return this._isFrozen&&gn(this),this.fg=new oi(e,t,r,o).freeze(),this.gg=new oi(n,i,s,l).freeze(),this},ht.Object.defineProperties(kn.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===kn.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===kn.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,s=0;s<o;s++)e+=r[s]}this.zm=e}return e}},type:{get:function(){return this.na},set:function(e){this.na!==e&&(this._isFrozen&&gn(this,e),this.na=e,e===kn.o?this.ee=new Zt:(kn.V===null&&(kn.V=new Zt().freeze()),this.ee=kn.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(e){this.od!==e&&(this._isFrozen&&gn(this,e),this.od=e,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(e){this.pd!==e&&(this._isFrozen&&gn(this,e),this.pd=e,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(e){this.Dc!==e&&(this._isFrozen&&gn(this,e),this.Dc=e,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(e){this.Ec!==e&&(this._isFrozen&&gn(this,e),this.Ec=e,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(e){this.ee!==e&&(this._isFrozen&&gn(this,e),this.ee=e,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(e){this._isFrozen&&gn(this,e),this.fg=e.J()}},spot2:{get:function(){return this.gg},set:function(e){this._isFrozen&&gn(this,e),this.gg=e.J()}},defaultStretch:{get:function(){return this.Uf},set:function(e){this._isFrozen&&gn(this,e),this.Uf=e}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),kn.prototype.setSpots=kn.prototype.pm,kn.prototype.add=kn.prototype.add,kn.prototype.getFractionForPoint=kn.prototype.xx,kn.prototype.getPointAndAngleAlongPath=kn.prototype.Qu,kn.prototype.getAngleAlongPath=kn.prototype.wx,kn.prototype.getPointAlongPath=kn.prototype.Pu,kn.prototype.containsPoint=kn.prototype.ca,kn.prototype.transform=kn.prototype.transform,kn.prototype.rotate=kn.prototype.rotate,kn.prototype.scale=kn.prototype.scale,kn.prototype.offset=kn.prototype.offset,kn.prototype.normalize=kn.prototype.normalize,kn.prototype.computeBoundsWithoutOrigin=kn.prototype.ix,kn.prototype.equalsApprox=kn.prototype.Xa,kn.className="Geometry",kn.j=new Kt(kn,"Line",0),kn.u=new Kt(kn,"Rectangle",1),kn.F=new Kt(kn,"Ellipse",2),kn.o=new Kt(kn,"Path",3),kn.V=null,kn.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",kn.className="Geometry",kn.stringify=kn.ia,kn.fillPath=kn.nb,kn.parse=kn.parse,kn.Line=kn.j,kn.Rectangle=kn.u,kn.Ellipse=kn.F,kn.Path=kn.o;function Cs(e,t,n,i,r){Yi(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 Zt,this.sr=this.pl.Ja,this.fw=null}Cs.prototype.copy=function(){var e=new Cs;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=Cs.prototype,U.Xa=function(e){if(!(e instanceof Cs&&Ye.B(this.startX,e.startX)&&Ye.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,s=r,l=this.segments.s,u=l.length,f=0;f<u;f++){var p=l[f];switch(p.type){case go:o=p.endX,s=p.endY,i=p.endX,r=p.endY;break;case ro:if(Ye.Yb(i,r,p.endX,p.endY,n,e,t))return!0;i=p.endX,r=p.endY;break;case _s:if(Ye.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 Wa:if(Ye.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 os:case Va:var x=p.type===os?Da(p,this):da(p,this,i,r),A=x.length,L=p.type===os?p.centerX:p.endX,B=p.type===os?p.centerY:p.endY;if(A===0){if(Ye.Yb(i,r,L,B,n,e,t))return!0;i=L,r=B;break}for(L=null,B=0;B<A;B++)if(L=x[B],B===0&&Ye.Yb(i,r,L[0],L[1],n,e,t)||Ye.cs(L[0],L[1],L[2],L[3],L[4],L[5],L[6],L[7],.5,e,t,n))return!0;L!==null&&(i=L[6],r=L[7]);break;default:pt("Unknown Segment type: "+p.type)}if(p.isClosed&&(i!==o||r!==s)&&Ye.Yb(i,r,o,s,n,e,t))return!0}return!1},ht.Object.defineProperties(Cs.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&&gn(this,e),this.l=e?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(e){this._isFrozen&&gn(this,e),this.l=e?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(e){this._isFrozen&&gn(this,e),this.l=e?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(e){this._isFrozen&&gn(this,e),this.od=e,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(e){this._isFrozen&&gn(this,e),this.pd=e,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(e){this._isFrozen&&gn(this,e),this.pl=e,this._isInvalidBounds=!0}}}),Cs.prototype.add=Cs.prototype.add,Cs.prototype.equalsApprox=Cs.prototype.Xa,Cs.className="PathFigure";function Nr(e,t,n,i,r,o,s,l){Yi(this),e===void 0&&(e=ro),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),s===void 0&&(s=0),e===Va?(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 s=="boolean"?s&&(this.isLargeArc=!0):typeof s=="number"&&s&&(this.isLargeArc=!0),l&&(this.isClockwiseArc=!0)):(this.Ne=i,this.Vh=r,e===os&&(o=Math.max(o,0)),this.Wh=o,typeof s=="number"?(e===os&&(s=Math.max(s,0)),this.Pg=s):this.Pg=0),this.ae=null}Nr.prototype.copy=function(){var e=new Nr;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=Nr.prototype,U.Xa=function(e){if(!(e instanceof Nr)||this.type!==e.type||this.isClosed!==e.isClosed)return!1;switch(this.type){case go:case ro:return Ye.B(this.endX,e.endX)&&Ye.B(this.endY,e.endY);case _s:return Ye.B(this.endX,e.endX)&&Ye.B(this.endY,e.endY)&&Ye.B(this.point1X,e.point1X)&&Ye.B(this.point1Y,e.point1Y)&&Ye.B(this.point2X,e.point2X)&&Ye.B(this.point2Y,e.point2Y);case Wa:return Ye.B(this.endX,e.endX)&&Ye.B(this.endY,e.endY)&&Ye.B(this.point1X,e.point1X)&&Ye.B(this.point1Y,e.point1Y);case os:return Ye.B(this.startAngle,e.startAngle)&&Ye.B(this.sweepAngle,e.sweepAngle)&&Ye.B(this.centerX,e.centerX)&&Ye.B(this.centerY,e.centerY)&&Ye.B(this.radiusX,e.radiusX)&&Ye.B(this.radiusY,e.radiusY);case Va:return this.isClockwiseArc===e.isClockwiseArc&&this.isLargeArc===e.isLargeArc&&Ye.B(this.xAxisRotation,e.xAxisRotation)&&Ye.B(this.endX,e.endX)&&Ye.B(this.endY,e.endY)&&Ye.B(this.radiusX,e.radiusX)&&Ye.B(this.radiusY,e.radiusY);default:return!1}},U.qb=function(e){e.classType===Nr&&(this.type=e)},U.toString=function(e){switch(e===void 0&&(e=-1),this.type){case go:e=0>e?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(e)+" "+this.endY.toFixed(e);break;case ro:e=0>e?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(e)+" "+this.endY.toFixed(e);break;case _s: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 Wa: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 os: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 Va: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 Da(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=Ye.jx(0,0,n<i?n:i,e.startAngle,e.startAngle+e.sweepAngle,!1);if(n!==i){var s=or.alloc();s.reset(),n<i?s.scale(1,i/n):s.scale(n/i,1),kn.Ha(o,s),or.free(s)}for(n=o.length,i=0;i<n;i++)s=o[i],s[0]+=t,s[1]+=r,s[2]+=t,s[3]+=r,s[4]+=t,s[5]+=r,s[6]+=t,s[7]+=r;return e.ae=o,e.ae}function da(e,t,n,i){function r(V,ye,oe,Me){return(V*Me<ye*oe?-1:1)*Math.acos((V*oe+ye*Me)/(Math.sqrt(V*V+ye*ye)*Math.sqrt(oe*oe+Me*Me)))}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 s=Math.PI/180*e.Ne,l=e.isLargeArc,u=e.isClockwiseArc,f=e.Dc,p=e.Ec,x=Math.cos(s),A=Math.sin(s),L=x*(n-f)/2+A*(i-p)/2;s=-A*(n-f)/2+x*(i-p)/2;var B=L*L/(t*t)+s*s/(o*o);return 1<B&&(t*=Math.sqrt(B),o*=Math.sqrt(B)),B=(l===u?-1:1)*Math.sqrt((t*t*o*o-t*t*s*s-o*o*L*L)/(t*t*s*s+o*o*L*L)),isNaN(B)&&(B=0),l=B*t*s/o,B=B*-o*L/t,isNaN(l)&&(l=0),isNaN(B)&&(B=0),n=(n+f)/2+x*l-A*B,i=(i+p)/2+A*l+x*B,p=r(1,0,(L-l)/t,(s-B)/o),x=(L-l)/t,f=(s-B)/o,L=(-L-l)/t,l=(-s-B)/o,s=r(x,f,L,l),L=(x*L+f*l)/(Math.sqrt(x*x+f*f)*Math.sqrt(L*L+l*l)),-1>=L?s=Math.PI:1<=L&&(s=0),!u&&0<s&&(s-=2*Math.PI),u&&0>s&&(s+=2*Math.PI),u=t>o?1:t/o,L=t>o?o/t:1,t=Ye.jx(0,0,t>o?t:o,p,p+s,!0),o=or.alloc(),o.reset(),o.translate(n,i),o.rotate(e.Ne,0,0),o.scale(u,L),kn.Ha(t,o),or.free(o),e.ae=t,e.ae}ht.Object.defineProperties(Nr.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&&gn(this,e),this.na=e,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(e){this._isFrozen&&gn(this,e),this.Dc=e,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(e){this._isFrozen&&gn(this,e),this.Ec=e,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(e){this._isFrozen&&gn(this,e),this.Ne=e,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(e){this._isFrozen&&gn(this,e),this.Vh=e,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(e){this._isFrozen&&gn(this,e),this.Wh=e,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(e){this._isFrozen&&gn(this,e),this.Pg=e,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(e){this._isFrozen&&gn(this,e),this.Ne=e,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(e){this._isFrozen&&gn(this,e),this.Vh=e,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(e){0>e&&tn(e,">= zero",Nr,"radiusX"),this._isFrozen&&gn(this,e),this.Wh=e,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(e){0>e&&tn(e,">= zero",Nr,"radiusY"),this._isFrozen&&gn(this,e),this.Pg=e,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(e){this._isFrozen&&gn(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&&gn(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&&gn(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&&gn(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&&gn(this,e),e%=360,0>e&&(e+=360),this.Ne=e,this._isInvalidBounds=!0}}}),Nr.prototype.equalsApprox=Nr.prototype.Xa;var go=new Kt(Nr,"Move",0),ro=new Kt(Nr,"Line",1),_s=new Kt(Nr,"Bezier",2),Wa=new Kt(Nr,"QuadraticBezier",3),os=new Kt(Nr,"Arc",4),Va=new Kt(Nr,"SvgArc",4);Nr.className="PathSegment",Nr.Move=go,Nr.Line=ro,Nr.Bezier=_s,Nr.QuadraticBezier=Wa,Nr.Arc=os,Nr.SvgArc=Va;function ta(){this.H=null,this.xu=new ce(0,0).freeze(),this.mt=new ce(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}ta.prototype.copy=function(){var e=new ta;return this.clone(e)},ta.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},ta.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},ta.prototype.So=function(e,t){var n=this.diagram;return n===null||ec(n,e,t),t},ta.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(ta.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}}}),ta.prototype.getMultiTouchDocumentPoint=ta.prototype.Bz,ta.prototype.getMultiTouchViewPoint=ta.prototype.So,ta.className="InputEvent";function cu(){this.H=null,this.xa="",this.ar=this.Lr=null}cu.prototype.copy=function(){var e=new cu;return e.H=this.H,e.xa=this.xa,e.Lr=this.Lr,e.ar=this.ar,e},cu.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(cu.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}}}),cu.className="DiagramEvent";function Do(){this.Fm=vo,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}Do.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},Do.prototype.copy=function(){var e=new Do;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=ft(t)&&typeof t.J=="function"?t.J():t,t=this.Rn,e.Rn=ft(t)&&typeof t.J=="function"?t.J():t,t=this.Mn,e.Mn=ft(t)&&typeof t.J=="function"?t.J():t,t=this.Ln,e.Ln=ft(t)&&typeof t.J=="function"?t.J():t,e},Do.prototype.qb=function(e){e.classType===Do&&(this.change=e)},Do.prototype.toString=function(){var e="";return e=this.change===xa?e+"* ":this.change===vo?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===xa?this.oldValue!==null&&(e+=" "+this.oldValue):(this.object!==null&&(e+=En(this.object)),this.oldValue!==null&&(e+=" old: "+En(this.oldValue)),this.oldParam!==null&&(e+=" "+this.oldParam),this.newValue!==null&&(e+=" new: "+En(this.newValue)),this.newParam!==null&&(e+=" "+this.newParam)),e},Do.prototype.I=function(e){return e?this.oldValue:this.newValue},Do.prototype.Dz=function(e){return e?this.oldParam:this.newParam},Do.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},Do.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},Do.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},Do.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},ht.Object.defineProperties(Do.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===xa&&(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}}}),Do.prototype.redo=Do.prototype.redo,Do.prototype.canRedo=Do.prototype.canRedo,Do.prototype.undo=Do.prototype.undo,Do.prototype.canUndo=Do.prototype.canUndo,Do.prototype.getParam=Do.prototype.Dz,Do.prototype.getValue=Do.prototype.I,Do.prototype.clear=Do.prototype.clear;var xa=new Kt(Do,"Transaction",-1),vo=new Kt(Do,"Property",0),Zo=new Kt(Do,"Insert",1),qo=new Kt(Do,"Remove",2);Do.className="ChangedEvent",Do.Transaction=xa,Do.Property=vo,Do.Insert=Zo,Do.Remove=qo;function bs(){this.o=new Zt().freeze(),this.xa="",this.j=!1}bs.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},bs.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()},bs.prototype.canUndo=function(){return this.isComplete},bs.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()}},bs.prototype.canRedo=function(){return this.isComplete},bs.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()}},bs.prototype.ak=function(){if(this.isComplete){var e=this.changes;e.ka();for(var t=new qn,n=0;n<e.count;n++){var i=e.M(n);if(i!==null&&i.change===vo&&i.object){var r=t.get(i.object);r||(r=new qn,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(bs.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}}}),bs.prototype.optimize=bs.prototype.ak,bs.prototype.redo=bs.prototype.redo,bs.prototype.canRedo=bs.prototype.canRedo,bs.prototype.undo=bs.prototype.undo,bs.prototype.canUndo=bs.prototype.canUndo,bs.prototype.clear=bs.prototype.clear,bs.className="Transaction";function Po(){this.Pt=new Wt,this.Jd=!1,this.u=new Zt().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new Zt().freeze(),this.hl=new Zt,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}Po.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},Po.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},Po.prototype.copyProperties=function(e){this.isEnabled=e.isEnabled,this.maxHistoryLength=e.maxHistoryLength,this.checksTransactionLevel=e.checksTransactionLevel},U=Po.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=""),hu(this,!0,e)},U.Kf=function(){return hu(this,!1,"")};function hu(e,t,n){if(e.isUndoingRedoing)return!1;e.checksTransactionLevel&&1>e.transactionLevel&&xi("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 s=e.Ie.count;0<s&&(n===""&&(n=e.Ie.M(0)),e.Ie.ka(),e.Ie.mb(s-1),e.Ie.freeze()),s=e.hl.count,0<s&&(o=e.hl.M(s-1),e.hl.mb(s-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()}},Po.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var e=this.transactionToUndo;return!!(e!==null&&e.canUndo())},Po.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){xi("undo error: "+t.toString())}finally{this.Ob("FinishedUndo","Undo",e),this.Fe=!1}}},Po.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var e=this.transactionToRedo;return!!(e!==null&&e.canRedo())},Po.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){xi("redo error: "+t.toString())}finally{this.Ob("FinishedRedo","Redo",e),this.Fe=!1}}},Po.prototype.Ob=function(e,t,n){n===void 0&&(n=null);var i=new Do;for(i.change=xa,i.propertyName=e,i.object=n,i.oldValue=t,e=this.models;e.next();)t=e.value,i.model=t,t.ds(i)},Po.prototype.Tu=function(e){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(e)){var t=this.currentTransaction;t===null&&(this.Np=t=new bs);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||xi("Change not within a transaction: "+n.toString()))}},Po.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(Po.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}}}),Po.prototype.handleChanged=Po.prototype.Tu,Po.prototype.redo=Po.prototype.redo,Po.prototype.undo=Po.prototype.undo,Po.prototype.canUndo=Po.prototype.canUndo,Po.prototype.discardHistoryAfterIndex=Po.prototype.lx,Po.prototype.rollbackTransaction=Po.prototype.Kf,Po.prototype.commitTransaction=Po.prototype.eb,Po.prototype.startTransaction=Po.prototype.Ea,Po.prototype.removeModel=Po.prototype.Rx,Po.prototype.addModel=Po.prototype.Xw,Po.prototype.clear=Po.prototype.clear,Po.className="UndoManager";function wr(){Yi(this),this.H=dt,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new ta,this.Zr=-1}wr.prototype.toString=function(){return this.name!==""?this.name+" Tool":xt(this.constructor)},wr.prototype.updateAdornments=function(){},wr.prototype.canStart=function(){return this.isEnabled},wr.prototype.doStart=function(){},wr.prototype.doActivate=function(){this.isActive=!0},wr.prototype.doDeactivate=function(){this.isActive=!1},wr.prototype.doStop=function(){},wr.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},wr.prototype.stopTool=function(){var e=this.diagram;e.currentTool===this&&(e.currentTool=null,e.currentCursor="")},wr.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},wr.prototype.doMouseMove=function(){},wr.prototype.doMouseUp=function(){this.stopTool()},wr.prototype.doMouseWheel=function(){},wr.prototype.canStartMultiTouch=function(){return!0},wr.prototype.standardPinchZoomStart=function(){var e=this.diagram,t=e.lastInput,n=t.So(0,ce.allocAt(NaN,NaN)),i=t.So(1,ce.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}ce.free(n),ce.free(i)},wr.prototype.standardPinchZoomMove=function(){var e=this.diagram,t=e.lastInput,n=t.So(0,ce.allocAt(NaN,NaN)),i=t.So(1,ce.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 ce((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 s=e.commandHandler;if(o!==e.scale&&s.canResetZoom(o)){var l=e.zoomPoint;e.zoomPoint=r,s.resetZoom(o),e.zoomPoint=l}t.bubbles=!1}ce.free(n),ce.free(i)},wr.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},wr.prototype.doKeyUp=function(){},wr.prototype.Ea=function(e){return e===void 0&&(e=this.name),this.transactionResult=null,this.diagram.Ea(e)},wr.prototype.stopTransaction=function(){var e=this.diagram;return this.transactionResult===null?e.Kf():e.eb(this.transactionResult)},wr.prototype.standardMouseSelect=function(){var e=this.diagram;if(e.allowSelect){var t=e.lastInput,n=e.Ol(t.documentPoint,!1);if(n!==null){if(Bi?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||(Bi?t.meta:t.control)||t.shift||e.clearSelection()}},wr.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,sl(e,i,n),i.handled};function sl(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)}}}wr.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,s=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=s,t.handled=!1;i!==null&&(s=i.mouseEnter,!(s!==null&&(o===i||o!==null&&o.rg(i)||(s(t,i,o),r=!0,t.handled))));)i=i.panel;i=e.Ck}if(i!==null){for(o=i,s="";o!==null&&(s=o.cursor,s==="");)o=o.panel;for(e.currentCursor=s,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}},wr.prototype.doUpdateCursor=function(){var e=this.diagram;e&&(e.currentCursor="")},wr.prototype.doCurrentObjectChanged=function(){},wr.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===qu&&!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===qu&&t.shift||r===Ju&&!t.control){i=e.position.copy();var o=t.event;r=o.deltaMode;var s=o.deltaX;o=o.deltaY;var l="pixel";if(s===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"}s!==0&&e.allowHorizontalScroll&&(s*=e.scrollHorizontalLineChange/16,e.scroll(l,0<s?"right":"left",Math.abs(s))),o!==0&&e.allowVerticalScroll&&(o*=e.scrollVerticalLineChange/16,e.scroll(l,0<o?"down":"up",Math.abs(o)))}this.doWheelChange(e,i,t)}}},wr.prototype.doWheelChange=function(e,t,n){e.position.D(t)&&n.event.wheelDeltaX===0||(n.bubbles=!1)},wr.prototype.standardWaitAfter=function(e,t){t===void 0&&(t=this.diagram.lastInput),this.cancelWaitAfter();var n=this,i=t.clone(this.yy);this.Zr=ti(function(){n.doWaitAfter(i)},e)},wr.prototype.cancelWaitAfter=function(){this.Zr!==-1&&Ge.clearTimeout(this.Zr),this.Zr=-1},wr.prototype.doWaitAfter=function(){},wr.prototype.findToolHandleAt=function(e,t){return e=this.diagram.ic(e,function(n){for(;n!==null&&!(n.panel instanceof Wr);)n=n.panel;return n}),e===null?null:e.part.category===t?e:null},wr.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(wr.prototype,{diagram:{get:function(){return this.H},set:function(e){e instanceof Z&&(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}}}),wr.prototype.startTransaction=wr.prototype.Ea,wr.className="Tool";function xo(){wr.call(this),this.name="ToolManager",this.hb=new Zt,this.ob=new Zt,this.Hb=new Zt,this.F=this.V=850,this.o=new mi(2,2).ja(),this.Ha=5e3,this.ia=Ju,this.u=_u,this.Mp=this.j=null,this.zj=-1}di(xo,wr),xo.prototype.initializeStandardTools=function(){},xo.prototype.updateAdornments=function(e){var t=this.currentToolTip;if(t instanceof Wr&&this.Mp===e){var n=t.adornedObject;(e!==null?n.part===e:n===null)?this.showToolTip(t,n):this.hideToolTip()}},xo.prototype.doMouseDown=function(){var e=this.diagram,t=e.lastInput;if(t.isTouchEvent&&this.gestureBehavior===Xa&&(t.bubbles=!1),t.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===Qa){t.bubbles=!0;return}if(this.gestureBehavior===Xa)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=qu:this.mouseWheelBehavior===qu&&(this.mouseWheelBehavior=Ju)),this.doActivate(),this.standardWaitAfter(this.holdDelay,t)},xo.prototype.doMouseMove=function(){var e=this.diagram,t=e.lastInput;if(t.isMultiTouch){if(this.gestureBehavior===Qa){t.bubbles=!0;return}if(this.gestureBehavior===Xa)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)}xo.prototype.doCurrentObjectChanged=function(e,t){e=this.currentToolTip,e===null||t!==null&&e instanceof Wr&&(t===e||t.rg(e))||this.hideToolTip()},xo.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()))},xo.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)},xo.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 Wr)||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()},xo.prototype.showToolTip=function(e,t){var n=this.diagram;if(e!==this.currentToolTip&&this.hideToolTip(),e instanceof Wr){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 $t&&e!==this.currentToolTip&&e.show(t,n,this);if(this.currentToolTip=e,this.zj!==-1&&(Ge.clearTimeout(this.zj),this.zj=-1),e=this.toolTipDuration,0<e&&e!==1/0){var r=this;this.zj=ti(function(){r.hideToolTip()},e)}},xo.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}},xo.prototype.hideToolTip=function(){this.zj!==-1&&(Ge.clearTimeout(this.zj),this.zj=-1);var e=this.diagram,t=this.currentToolTip;t!==null&&(t instanceof Wr?(e.remove(t),this.Mp!==null&&this.Mp.Jf(t.category),t.data=null,t.adornedObject=null):t instanceof $t&&t.hide!==null&&t.hide(e,this),this.currentToolTip=null)},xo.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()},xo.prototype.doMouseWheel=function(){this.standardMouseWheel()},xo.prototype.doKeyDown=function(){var e=this.diagram;e.commandHandler!==null&&e.commandHandler.doKeyDown()},xo.prototype.doKeyUp=function(){var e=this.diagram;e.commandHandler!==null&&e.commandHandler.doKeyUp()},xo.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},xo.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},xo.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(xo.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 Wr?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}}}),xo.prototype.replaceStandardTool=xo.prototype.gb;var Ju=new Kt(xo,"WheelScroll",0),qu=new Kt(xo,"WheelZoom",1),wc=new Kt(xo,"WheelNone",2),_u=new Kt(xo,"GestureZoom",3),Xa=new Kt(xo,"GestureCancel",4),Qa=new Kt(xo,"GestureNone",5);xo.className="ToolManager",xo.WheelScroll=Ju,xo.WheelZoom=qu,xo.WheelNone=wc,xo.GestureZoom=_u,xo.GestureCancel=Xa,xo.GestureNone=Qa;function To(){wr.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 ce(NaN,NaN),this.Fr=new ce,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new Wt().freeze(),this.ia=new c,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Pa;di(To,wr),To.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},To.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},To.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,(Bi?t.meta:t.control)||t.shift||e.clearSelection(!0),this.currentPart.isSelected=!0,e.R("ChangedSelection",e.selection))}}},To.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),vt=null,this.isActive=!0,this.tl.set(e.position),dc(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&&Pi(e),_h(e,this.draggedParts),this.Ea("Drag"),this.startPoint=e.firstInput.documentPoint,e.isMouseCaptured=!0,e.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,vt=this,Lt=this.diagram,this.doSimulatedDragOut()))};function dc(e,t){if(e.dragsLink){var n=e.diagram;n.allowRelink&&(n.model.Wj()&&t.count===1&&t.first()instanceof In?(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 Jn,e.Oe.diagram=n),e.Oe.originalLink=e.draggedLink):(e.draggedLink=null,e.Oe=null))}}To.prototype.computeEffectiveCollection=function(e,t){return this.diagram.commandHandler.computeEffectiveCollection(e,t)},To.prototype.Pd=function(e){return e===void 0?new Qc(Ar):this.isGridSnapEnabled?new Qc(new ce(Math.round(1e3*e.x)/1e3,Math.round(1e3*e.y)/1e3)):new Qc(e.copy())},To.prototype.doDeactivate=function(){this.isActive=!1;var e=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,e.Fu(!1),e.ug(),eu(this),Tc(e,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<Pa.count){for(var t=Pa,n=t.length,i=0;i<n;i++){var r=t.M(i);Wl(r),Ja(r),eu(r),r.diagram.ug()}t.clear()}Wl(this),this.tl.h(NaN,NaN),Lt!==null&&(Lt.currentCursor=""),vt=Lt=null,Ja(this),e.isMouseCaptured=!1,e.currentCursor="",e.Ns=!1,this.stopTransaction(),vr(e,!0)},To.prototype.stopTransaction=function(){var e=this.diagram,t=wr.prototype.stopTransaction.call(this);return t&&e.undoManager.transactionToUndo!==null&&e.undoManager.transactionToUndo.ak(),t};function eu(e){var t=e.diagram,n=t.skipsUndoManager;t.skipsUndoManager=!0,Tu(e,t.lastInput,null),t.skipsUndoManager=n,e.Cg.length=0}function gl(){var e=vt;Ja(e),du(e);var t=e.diagram;e.tl.w()&&(t.position=e.tl),t.ug()}To.prototype.doCancel=function(){Ja(this),du(this);var e=this.diagram;this.tl.w()&&(e.position=this.tl),this.stopTool()},To.prototype.doKeyDown=function(){var e=this.diagram,t=e.lastInput;this.isActive&&(t.key==="Esc"?this.doCancel():t.key!==e.previousInput.key&&this.doMouseMove())},To.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function vl(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")):du(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 qn,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 In&&i.canCopy()&&n.add(i,e.Pd());e.copiedParts=n,dc(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 Ja(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 In&&(n.value.point=new ce(0,0));e.doUpdateCursor(null)}t.skipsUndoManager=!1,t.partManager.addsToTemporaryLayer=!1,e.startPoint=t.firstInput.documentPoint}function Wl(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 Ka(e,t,n){var i=e.diagram,r=e.startPoint,o=ce.alloc();o.assign(i.lastInput.documentPoint),e.moveParts(t,o.re(r),n),ce.free(o),i.Gf("temporaryPixelRatio")===!0&&i.Yh===null&&30<i.$w&&(Pi(i),i.hk())}To.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 du(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 In&&i.suspendsRouting){var r=n.value.point;e.draggedParts.add(i,e.Pd()),Eh(i,-r.x,-r.y)}t.bd()}}function fu(e,t){var n=e.diagram;e.dragsLink&&(e.draggedLink!==null&&(e.draggedLink.fromNode=null,e.draggedLink.toNode=null),fa(e,!1));var i=e.findDragOverObject(t),r=n.lastInput;r.targetObject=i,e.doUpdateCursor(i);var o=n.skipsUndoManager,s=!1;try{if(n.skipsUndoManager=!0,s=Tu(e,r,i),!e.isActive&&vt===null)return;var l=i!==null?i.part:null;if(l===null||n.handlesDragDropForTopLevelParts&&l.isTopLevel&&!(l instanceof er)){var u=n.mouseDragOver;u!==null&&(u(r),s=!0)}if(!e.isActive&&vt===null||(e.doDragOver(t,i),!e.isActive&&vt===null))return}finally{n.skipsUndoManager=o,s&&n.bd()}e.Bn=i,n.isReadOnly||!n.allowMove&&!n.allowCopy||!n.allowHorizontalScroll&&!n.allowVerticalScroll||n.gs(r.viewPoint)}To.prototype.findDragOverObject=function(e){var t=this;return ls(this.diagram,e,null,function(n){return n===null?n=!0:(n=n.part,n=!!(n===null||n instanceof Wr||n.layer.isTemporary||t.draggedParts&&t.draggedParts.contains(n)||t.copiedParts&&t.copiedParts.contains(n))),!n})},To.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 Tu(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 s=0;s<r;s++){var l=e.Cg[s],u=l.mouseDragLeave;if(u!==null&&(u(t,l,n),i=!0,t.handled))break}if(e.Cg.length=0,!e.isActive&&vt===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&&(s=e.Cg[n],l=s.mouseDragEnter,l===null||(l(t,s,o),i=!0,!t.handled));n++);return i}function Nu(e){var t=e.panel;return t!==null?t:e instanceof Ei&&!(e instanceof er)&&(e=e.containingGroup,e!==null&&e.handlesDragDropForMembers)?e:null}function al(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=ce.alloc();var o=1/0,s=null;for(r=r.iterator;r.next();){var l=r.value;if(l.part!==null){var u=l.ga(kr,e);u=t.Bf(u),u<o&&(s=l,o=u)}}return ce.free(e),s}function fa(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,s=null;n.fromNode===null&&(o=al(e,n.i(0),!1),o!==null&&(s=o.part));var l=null,u=null;n.toNode===null&&(l=al(e,n.i(n.pointsCount-1),!0),l!==null&&(u=l.part)),r.isValidLink(s,o,u,l)?t?(n.defaultFromPoint=n.i(0),n.defaultToPoint=n.i(n.pointsCount-1),n.suspendsRouting=!1,n.fromNode=s,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)):Fi(r,s,o,u,l):Fi(r,null,null,null,null)}}}}To.prototype.doDragOver=function(){};function Vl(e,t){var n=e.diagram;e.dragsLink&&fa(e,!0),eu(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 s=o.mouseDrop;if(s!==null&&(s(r,o),r.handled))break;zu(e,r,o),o=Nu(o)}}else o=n.mouseDrop,o!==null&&o(r);if(e.isActive||vt!==null){for(r=(e.copiedParts||e.draggedParts).iterator;r.next();)o=r.key,o instanceof Wn&&o.linksConnected.each(function(l){l.suspendsRouting=!1});if(e.doDropOnto(t,i),e.isActive||vt!==null){for(e=Ht.alloc(),t=n.selection.iterator;t.next();)i=t.value,i instanceof Wn&&Se(n,i,e);Ht.free(e)}}}function zu(e,t,n){e=e.diagram,n=n.part,!e.handlesDragDropForTopLevelParts||!n.isTopLevel||n instanceof er||(n=e.mouseDrop,n!==null&&n(t))}function Se(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 In},!0,function(r){return r instanceof In},i),e.count!==0)for(e=e.iterator;e.next();)n=e.value,!n.Td(t)&&n.isAvoiding&&n.bb()}To.prototype.doDropOnto=function(){},To.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()?(vl(this,!1),_h(e,this.copiedParts),Ka(this,this.copiedParts,!1),Tc(e,this.copiedParts)):this.mayMove()?(Ja(this),Ka(this,this.draggedParts,!0)):this.mayDragOut()?(vl(this,!1),Ka(this,this.copiedParts,!1)):Ja(this),fu(this,e.lastInput.documentPoint))}},To.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?(Ja(this),vl(this,!0),_h(e,this.copiedParts),Ka(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,Ja(this),this.mayMove()&&(Ka(this,this.draggedParts,!0),fu(this,e.lastInput.documentPoint))),this.Ym=!0,Vl(this,e.lastInput.documentPoint),this.isActive){var i=n?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,t&&Ae(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)}}},To.prototype.simulatedMouseMove=function(e,t,n){if(vt===null)return!1;var i=vt.diagram;n instanceof Z||(n=null);var r=Lt;return n!==r&&(r!==null&&r!==i&&(r.ug(),vt.isDragOutStarted=!1,r=r.toolManager.findTool("Dragging"),r!==null&&r.doSimulatedDragLeave()),Lt=n,n!==null&&n!==i&&(gl(),r=n.toolManager.findTool("Dragging"),r!==null&&(Pa.contains(r)||Pa.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)},To.prototype.simulatedMouseUp=function(e,t,n){if(vt===null)return!1;var i=Lt,r=vt.diagram;if(n===null)return vt.doCancel(),!0;if(n!==i){var o=i.toolManager.findTool("Dragging");if(i!==null&&i!==r&&o!==null)return i.ug(),vt.isDragOutStarted=!1,o.doSimulatedDragLeave(),!1;Lt=n,i=n.toolManager.findTool("Dragging"),i!==null&&(gl(),Pa.contains(i)||Pa.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 ce),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=vt,e!==null&&(n=e.mayCopy(),e.transactionResult=n?"Copy":"Move",e.stopTool()),!0):!1};function Ae(e){if(e.draggedParts!==null)for(var t=e.draggedParts.iterator;t.next();){var n=t.key;n instanceof Wn&&(n=n.containingGroup,n===null||n.placeholder===null||e.draggedParts.contains(n)||n.placeholder.v())}}To.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var e=this.diagram;if(e.isReadOnly||e.isModelReadOnly||!e.allowInsert||!e.allowCopy||(Bi?!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())},To.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())},To.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())},To.prototype.computeBorder=function(e,t,n){return this.Ym||this.draggedParts===null||this.draggedParts.contains(e)?null:n.assign(t)},To.prototype.Az=function(){return vt},To.prototype.mayDragIn=function(){var e=this.diagram;if(!e.allowDrop||e.isReadOnly||e.isModelReadOnly||!e.allowInsert)return!1;var t=vt;return!(t===null||t.diagram.model.dataFormat!==e.model.dataFormat)},To.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var e=this.diagram;e.animationManager.Cc(),ma(e),e.animationManager.Cc(),e=vt,e!==null&&(e.diagram.Ns=!1),this.doUpdateCursor(null)}},To.prototype.doSimulatedDragLeave=function(){var e=vt;e!==null&&e.doSimulatedDragOut(),this.doCancel()},To.prototype.doSimulatedDragOver=function(){var e=this.diagram;e.animationManager.Dm=!0;var t=vt;if(t!==null&&t.draggedParts!==null){if(!this.mayDragIn())return;ut(this,t.draggedParts.Lf(),!1,e.firstInput),Ka(this,this.copiedParts,!1),fu(this,e.lastInput.documentPoint)}e.animationManager.Dm=!1},To.prototype.doSimulatedDrop=function(){var e=this.diagram,t=vt;if(t!==null){var n=t.diagram;if(t.Ym=!0,Ja(this),!this.mayDragIn())return;e.animationManager.Dm=!0,e.R("ChangingSelection",e.selection),this.Ea("Drop"),ut(this,t.draggedParts.Lf(),!0,e.lastInput),Ka(this,this.copiedParts,!1);var i=new Wt;this.copiedParts!==null&&(e.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(r){r.isSelected=!0,i.add(r)})),Vl(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 ut(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=Ht.alloc();r=i=1/0;for(var s=-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>s&&(s=f),p>l&&(l=p))}}for(i===1/0?o.h(0,0,0,0):o.h(i,r,s-i,l-r),i=o.x+o.width/2,r=o.y+o.height/2,Ht.free(o),o=e.Fr,s=new qn,l=ce.alloc(),u=t.iterator;u.next();)f=u.value,f instanceof In&&f.canCopy()&&(p=n.I(f),p!==null&&(p.points=f.points,Eh(p,o.x-i,o.y-r),p.suspendsRouting=!0,s.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(),s.add(u,e.Pd(l))));ce.free(l),e.copiedParts=s,dc(e,s.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)}}}To.prototype.doSimulatedDragOut=function(){var e=this.diagram;e.Ns=!1,this.mayCopy()||this.mayMove()?e.currentCursor="":e.currentCursor=this.nodropCursor,this.Bn=null},To.prototype.computeMove=function(e,t,n,i){return n=this.diagram,n!==null?n.computeMove(e,t,this.dragOptions,i):new ce},ht.Object.defineProperties(To.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}}}),To.prototype.getDraggingSource=To.prototype.Az;var vt=null,Lt=null;To.className="DraggingTool",Pa=new Zt,ki("draggingTool",function(){return this.findTool("Dragging")},function(e){this.gb("Dragging",e,this.mouseMoveTools)}),xo.prototype.doCancel=function(){vt!==null&&vt.doCancel(),wr.prototype.doCancel.call(this)};function Nt(){wr.call(this),this.te=100,this.Ha=!1,this.u="pointer";var e=new In,t=new ar;t.isPanelMain=!0,t.stroke="blue",e.add(t),t=new ar,t.toArrow="Standard",t.fill="blue",t.stroke="blue",e.add(t),e.layerName="Tool",this.Ci=e,e=new Wn,t=new ar,t.portId="",t.figure="Rectangle",t.fill=null,t.stroke="magenta",t.strokeWidth=2,t.desiredSize=fs,e.add(t),e.selectable=!1,e.layerName="Tool",this.Bi=e,this.j=t,e=new Wn,t=new ar,t.portId="",t.figure="Rectangle",t.fill=null,t.stroke="magenta",t.strokeWidth=2,t.desiredSize=fs,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 qn,this.Of=this.gj=this.Pf=null}di(Nt,wr),Nt.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},Nt.prototype.copyPortProperties=function(e,t,n,i,r){if(e!==null&&t!==null&&n!==null&&i!==null){var o=t.Df(),s=mi.alloc();s.width=t.naturalBounds.width*o,s.height=t.naturalBounds.height*o,i.desiredSize=s,mi.free(s),r?(i.toSpot=t.toSpot,i.toEndSegmentLength=t.toEndSegmentLength):(i.fromSpot=t.fromSpot,i.fromEndSegmentLength=t.fromEndSegmentLength),n.locationSpot=kr,o=ce.alloc(),n.location=t.ga(kr,o),ce.free(o),i.angle=t.li(),this.portTargeted!==null&&this.portTargeted(e,t,n,i,r)}},Nt.prototype.setNoTargetPortProperties=function(e,t,n){t!==null&&(t.desiredSize=fs,t.fromSpot=Di,t.toSpot=Di),e!==null&&(e.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,e,t,n)},Nt.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},Nt.prototype.doMouseMove=function(){if(this.isActive){var e=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof Wn){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)}},Nt.prototype.findValidLinkablePort=function(e,t){if(e===null)return null;var n=e.part;if(!(n instanceof Wn))return null;for(;e!==null;){var i=t?e.toLinkable:e.fromLinkable;if(i===!0&&(e.portId!==null||e instanceof Wn)&&(t?this.isValidTo(n,e):this.isValidFrom(n,e)))return e;if(i===!1)break;e=e.panel}return null},Nt.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 s=o.value,l=s.part;if(l instanceof Wn){var u=s.ga(kr,ce.alloc()),f=n.x-u.x,p=n.y-u.y;ce.free(u),u=f*f+p*p,u<i&&(f=this.validPortsCache.I(s),f!==null?f&&(t=s,i=u):e&&this.isValidLink(this.originalFromNode,this.originalFromPort,l,s)||!e&&this.isValidLink(l,s,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(s,!0),t=s,i=u):this.validPortsCache.add(s,!1))}}return t!==null&&(n=t.part,n instanceof Wn&&(n.layer===null||n.layer.allowLink))?t:null},Nt.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},Nt.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},Nt.prototype.isInSameNode=function(e,t){return e===null||t===null?!1:e===t?!0:(e=e.part,t=t.part,e!==null&&e===t)},Nt.prototype.isLinked=function(e,t){if(e===null||t===null)return!1;var n=e.part;if(!(n instanceof Wn))return!1;e=e.portId,e===null&&(e="");var i=t.part;if(!(i instanceof Wn))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},Nt.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)},Nt.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 Wt;return i.add(e),fe(this,n,t,i)};function fe(e,t,n,i){if(t===n)return!0;var r=t.fromNode;return r!==null&&r.isLinkLabel&&(i.add(r),fe(e,r.labeledLink,n,i))?!0:(t=t.toNode,!!(t!==null&&t.isLinkLabel&&(i.add(t),fe(e,t.labeledLink,n,i))))}Nt.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!cn(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!cn(this,e,t,n,!0)}if(i===up)return e===t?e=!0:(i=new Wt,i.add(t),e=en(this,i,e,t,n)),!e;if(i===cp)return!cn(this,e,t,n,!1);if(i===hp)return e===t?e=!0:(i=new Wt,i.add(t),e=Dn(this,i,e,t,n)),!e}return!0};function cn(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 s=o.value;if(s!==i&&(!r||s.isTreeLink)&&s.toNode===t&&(s=s.fromNode,s!==t&&cn(e,s,n,i,r)))return!0}return!1}function en(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 s=o.value;if(s!==r&&s.toNode===n&&(s=s.fromNode,s!==n&&en(e,t,s,i,r)))return!0}return!1}function Dn(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 s=o.value;if(s!==r){var l=s.fromNode;if(s=s.toNode,l=l===n?s:l,l!==n&&Dn(e,t,l,i,r))return!0}}return!1}ht.Object.defineProperties(Nt.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}}}),Nt.className="LinkingBaseTool";function Bn(){Nt.call(this),this.name="Linking",this.V={},this.F=null,this.K=zn,this.Xd=null}di(Bn,Nt),Bn.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},Bn.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 Wn)))return null;var n=this.direction;if(n===zn||n===fi){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===zn||n===gi)&&(t=this.findValidLinkablePort(t,!0),t!==null||this.startObject===e&&(t=e.port,this.findValidLinkablePort(t,!0)))?(this.isForwards=!1,t):null},Bn.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 Wn&&(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 Wn&&(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)},Bn.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()},Bn.prototype.doStop=function(){Nt.prototype.doStop.call(this),this.startObject=null},Bn.prototype.doMouseUp=function(){if(this.isActive){var e=this.diagram,t=this.transactionResult=null,n=null,i=null,r=null,o=null;try{var s=this.targetPort=this.findTargetPort(this.isForwards);if(s!==null){var l=s.part;l instanceof Wn&&(this.isForwards?(this.originalFromNode!==null&&(t=this.originalFromNode,n=this.originalFromPort),i=l,r=s):(t=l,n=s,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?(s===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)}}},Bn.prototype.isNewTreeLink=function(){var e=this.archetypeLinkData;if(e===null)return!0;if(e instanceof In)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)},Bn.prototype.insertLink=function(e,t,n,i){return this.diagram.partManager.insertLink(e,t,n,i)},Bn.prototype.doNoLink=function(){},ht.Object.defineProperties(Bn.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 zn=new Kt(Bn,"Either",0),fi=new Kt(Bn,"ForwardsOnly",0),gi=new Kt(Bn,"BackwardsOnly",0);Bn.className="LinkingTool",Bn.Either=zn,Bn.ForwardsOnly=fi,Bn.BackwardsOnly=gi;function Jn(){Nt.call(this),this.name="Relinking";var e=new ar;e.figure="Diamond",e.desiredSize=Bs,e.fill="lightblue",e.stroke="dodgerblue",e.cursor=this.linkingCursor,e.segmentIndex=0,this.V=e,e=new ar,e.figure="Diamond",e.desiredSize=Bs,e.fill="lightblue",e.stroke="dodgerblue",e.cursor=this.linkingCursor,e.segmentIndex=-1,this.Xd=e,this.F=null,this.Ew=new Ht}di(Jn,Nt),Jn.prototype.updateAdornments=function(e){if(e!==null&&e instanceof In){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)}},Jn.prototype.makeAdornment=function(e,t){var n=new Wr;return n.type=xn.Link,t=t?this.toHandleArchetype:this.fromHandleArchetype,t!==null&&n.add(t.copy()),n.adornedObject=e,n},Jn.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},Jn.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 Wr&&n.adornedPart instanceof In))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=Rs),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=Rs),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},Jn.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=wl),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}},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(){Nt.prototype.doStop.call(this),this.handle=null},Jn.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 s=this.targetPort.part;s instanceof Wn&&(this.isForwards?(i=s,r=this.targetPort):(t=s,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()}}},Jn.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},Jn.prototype.doNoRelink=function(){};function Fi(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(Jn.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 Wr))throw Error("new handle is not in an Adornment: "+e);this.F=e}}}),Jn.className="RelinkingTool",ki("linkingTool",function(){return this.findTool("Linking")},function(e){this.gb("Linking",e,this.mouseMoveTools)}),ki("relinkingTool",function(){return this.findTool("Relinking")},function(e){this.gb("Relinking",e,this.mouseDownTools)});function ai(){wr.call(this),this.name="LinkReshaping";var e=new ar;e.figure="Rectangle",e.desiredSize=cs,e.fill="lightblue",e.stroke="dodgerblue",this.o=e,e=new ar,e.figure="Diamond",e.desiredSize=Bs,e.fill="lightblue",e.stroke="dodgerblue",e.cursor="move",this.u=e,this.F=3,this.Ts=this.j=null,this.Fw=new ce,this.Yq=new Zt}di(ai,wr),ai.prototype.Ru=function(e){return e&&e.reshapingBehavior.value!==0?e.reshapingBehavior:E},ai.prototype.om=function(e,t){e.reshapingBehavior=t},ai.prototype.updateAdornments=function(e){if(e!==null&&e instanceof In){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)}},ai.prototype.makeAdornment=function(e){var t=e.part,n=t.pointsCount,i=t.isOrthogonal,r=null;if(t.points!==null&&1<n){r=new Wr,r.type=xn.Link,n=t.firstPickIndex;var o=t.lastPickIndex,s=i?1:0;if(t.resegmentable&&t.computeCurve()!==bu)for(var l=n+s;l<o-s;l++){var u=this.makeResegmentHandle(e,l);u!==null&&(u.segmentIndex=l,u.segmentFraction=.5,u.fromMaxLinks=999,r.add(u))}for(s=n+1;s<o;s++)if(l=this.makeHandle(e,s),l!==null){if(l.segmentIndex=s,s!==n)if(s===n+1&&i){u=t.i(n);var f=t.i(n+1);Ye.B(u.x,f.x)&&Ye.B(u.y,f.y)&&(f=t.i(n-1)),Ye.B(u.x,f.x)?(this.om(l,G),l.cursor="n-resize"):Ye.B(u.y,f.y)&&(this.om(l,F),l.cursor="w-resize")}else s===o-1&&i?(u=t.i(o-1),f=t.i(o),Ye.B(u.x,f.x)&&Ye.B(u.y,f.y)&&(u=t.i(o+1)),Ye.B(u.x,f.x)?(this.om(l,G),l.cursor="n-resize"):Ye.B(u.y,f.y)&&(this.om(l,F),l.cursor="w-resize")):s!==o&&(this.om(l,q),l.cursor="move");r.add(l)}r.adornedObject=e}return r},ai.prototype.makeHandle=function(){var e=this.handleArchetype;return e===null?null:e.copy()},ai.prototype.makeResegmentHandle=function(){var e=this.midHandleArchetype;return e===null?null:e.copy()},ai.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},ai.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 In){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}}},ai.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},ai.prototype.stopTransaction=function(){var e=this.diagram,t=wr.prototype.stopTransaction.call(this);return t&&e.undoManager.transactionToUndo!==null&&e.undoManager.transactionToUndo.ak(),t},ai.prototype.doCancel=function(){var e=this.adornedLink;e!==null&&(e.points=this.Yq),this.stopTool()},ai.prototype.getResegmentingPoint=function(){return this.handle.ga(kr)},ai.prototype.doMouseMove=function(){var e=this.diagram;this.isActive&&(e=this.computeReshape(e.lastInput.documentPoint),this.reshape(e))},ai.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 s=t.i(n-2);if(Math.abs(i.x-r.x)<this.resegmentingDistance&&Math.abs(i.y-r.y)<this.resegmentingDistance&&(zi(this,s,i,r,o,!0)||zi(this,s,i,r,o,!1))){var l=t.points.copy();zi(this,s,i,r,o,!0)?(l.cd(n-2,new ce(s.x,(o.y+s.y)/2)),l.cd(n+1,new ce(o.x,(o.y+s.y)/2))):(l.cd(n-2,new ce((o.x+s.x)/2,s.y)),l.cd(n+1,new ce((o.x+s.x)/2,o.y))),l.mb(n),l.mb(n-1),t.points=l,t.Wb()}else s=t.i(n+2),Math.abs(r.x-o.x)<this.resegmentingDistance&&Math.abs(r.y-o.y)<this.resegmentingDistance&&(zi(this,i,r,o,s,!0)||zi(this,i,r,o,s,!1))&&(l=t.points.copy(),zi(this,i,r,o,s,!0)?(l.cd(n-1,new ce(i.x,(i.y+s.y)/2)),l.cd(n+2,new ce(s.x,(i.y+s.y)/2))):(l.cd(n-1,new ce((i.x+s.x)/2,i.y)),l.cd(n+2,new ce((i.x+s.x)/2,s.y))),l.mb(n+1),l.mb(n),t.points=l,t.Wb())}}else s=ce.alloc(),Ye.qh(i.x,i.y,o.x,o.y,r.x,r.y,s)&&s.Bf(r)<this.resegmentingDistance*this.resegmentingDistance&&(i=t.points.copy(),i.mb(n),t.points=i,t.Wb()),ce.free(s)}e.Ya(),this.transactionResult=this.name,e.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function zi(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}ai.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===G?(t.L(n,t.i(n-1).x,e.y),t.L(n+1,t.i(n+2).x,e.y)):i===F&&(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===G?(t.L(n-1,t.i(n-2).x,e.y),t.L(n,t.i(n+1).x,e.y)):i===F&&(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),s=t.i(i+1);Ye.B(o.x,r.x)&&Ye.B(r.y,s.y)?(Ye.B(o.x,t.i(i-2).x)&&!Ye.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),Ye.B(s.y,t.i(i+2).y)&&!Ye.B(s.x,t.i(i+2).x)?t.m(i+1,s.x,e.y):t.L(i+1,s.x,e.y)):Ye.B(o.y,r.y)&&Ye.B(r.x,s.x)?(Ye.B(o.y,t.i(i-2).y)&&!Ye.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),Ye.B(s.x,t.i(i+2).x)&&!Ye.B(s.y,t.i(i+2).y)?t.m(i+1,e.x,s.y):t.L(i+1,e.x,s.y)):Ye.B(o.x,r.x)&&Ye.B(r.x,s.x)?(Ye.B(o.x,t.i(i-2).x)&&!Ye.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),Ye.B(s.x,t.i(i+2).x)&&!Ye.B(s.y,t.i(i+2).y)?t.m(i+1,e.x,s.y):t.L(i+1,e.x,s.y)):Ye.B(o.y,r.y)&&Ye.B(r.y,s.y)&&(Ye.B(o.y,t.i(i-2).y)&&!Ye.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),Ye.B(s.y,t.i(i+2).y)&&!Ye.B(s.x,t.i(i+2).x)?t.m(i+1,s.x,e.y):t.L(i+1,s.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(kr,ce.alloc()),i=t.getLinkPointFromPoint(i,r,o,e,!0,ce.alloc()),t.L(0,i.x,i.y),ce.free(o),ce.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(kr,ce.alloc()),e=t.getLinkPointFromPoint(i,r,n,e,!1,ce.alloc()),t.L(t.pointsCount-1,e.x,e.y),ce.free(n),ce.free(e));t.zf()},ai.prototype.computeReshape=function(e){var t=this.adornedLink,n=this.handle.segmentIndex;switch(this.Ru(this.handle)){case q:return e;case G:return new ce(t.i(n).x,e.y);case F:return new ce(e.x,t.i(n).y);default:case E:return t.i(n)}},ht.Object.defineProperties(ai.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 Wr))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}}}),ai.prototype.setReshapingBehavior=ai.prototype.om,ai.prototype.getReshapingBehavior=ai.prototype.Ru;var E=new Kt(ai,"None",0),F=new Kt(ai,"Horizontal",1),G=new Kt(ai,"Vertical",2),q=new Kt(ai,"All",3);ai.className="LinkReshapingTool",ai.None=E,ai.Horizontal=F,ai.Vertical=G,ai.All=q,ki("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(e){this.gb("LinkReshaping",e,this.mouseDownTools)});function he(){wr.call(this),this.name="Resizing",this.o=new mi(1,1).freeze(),this.j=new mi(9999,9999).freeze(),this.yg=new mi(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var e=new ar;e.alignmentFocus=kr,e.figure="Rectangle",e.desiredSize=cs,e.fill="lightblue",e.stroke="dodgerblue",e.strokeWidth=1,e.cursor="pointer",this.F=e,this.u=null,this.Xq=new ce,this.Dw=new mi,this.Tn=new ce,this.rt=new mi(0,0),this.qt=new mi(1/0,1/0),this.pt=new mi(1,1)}di(he,wr),he.prototype.updateAdornments=function(e){if(!(e===null||e instanceof In)){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)}},he.prototype.makeAdornment=function(e){var t=e.part.resizeAdornmentTemplate;if(t===null){t=new Wr,t.type=xn.Spot,t.locationSpot=kr;var n=new El;n.isPanelMain=!0,t.add(n),t.add(this.makeHandle(e,Qo)),t.add(this.makeHandle(e,Go)),t.add(this.makeHandle(e,zo)),t.add(this.makeHandle(e,La)),t.add(this.makeHandle(e,rs)),t.add(this.makeHandle(e,ks)),t.add(this.makeHandle(e,Es)),t.add(this.makeHandle(e,ps))}else if($u(t),t=t.copy(),t===null)return null;return t.adornedObject=e,t},he.prototype.makeHandle=function(e,t){return e=this.handleArchetype,e===null?null:(e=e.copy(),e.alignment=t,e)},he.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=kr),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 xn)for(e=e.elements;e.next();)this.updateResizeHandles(e.value,t)}},he.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},he.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))},he.prototype.doDeactivate=function(){var e=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=e.isMouseCaptured=!1},he.prototype.stopTransaction=function(){var e=this.diagram,t=wr.prototype.stopTransaction.call(this);return t&&e.undoManager.transactionToUndo!==null&&e.undoManager.transactionToUndo.ak(),t},he.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},he.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,ce.alloc()),o=this.computeReshape();t=this.computeResize(r,this.handle.alignment,t,n,i,o),this.resize(t),e.bd(),ce.free(r)}},he.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,ce.alloc()),o=this.computeReshape();t=this.computeResize(r,this.handle.alignment,t,n,i,o),this.resize(t),ce.free(r),e.Ya(),this.transactionResult=this.name,e.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},he.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 er){var i=new Zt;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()}},he.prototype.computeResize=function(e,t,n,i,r,o){t.Mc()&&(t=kr);var s=this.adornedObject.naturalBounds,l=s.x,u=s.y,f=s.x+s.width,p=s.y+s.height,x=1;if(!o){x=s.width;var A=s.height;0>=x&&(x=1),0>=A&&(A=1),x=A/x}return A=ce.alloc(),Ye.No(e.x,e.y,l,u,r.width,r.height,A),e=s.copy(),0>=t.x?0>=t.y?(e.x=Math.max(A.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(A.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(A.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(A.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(A.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(A.x-l,i.width),n.width),e.y=Math.max(A.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(A.x-l,i.width),n.width),e.height=Math.max(Math.min(A.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(A.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(A.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(A.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))),ce.free(A),e},he.prototype.computeReshape=function(){var e=mn;return this.adornedObject instanceof ar&&(e=Rg(this.adornedObject)),!(e===li||this.diagram.lastInput.shift)},he.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},he.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},he.prototype.computeCellSize=function(){var e=new mi(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(he.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 Wr))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 Wr)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}}}),he.className="ResizingTool",ki("resizingTool",function(){return this.findTool("Resizing")},function(e){this.gb("Resizing",e,this.mouseDownTools)});function Ee(){wr.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new ce,this.ue=null;var e=new ar;e.figure="Ellipse",e.desiredSize=Bs,e.fill="lightblue",e.stroke="dodgerblue",e.strokeWidth=1,e.cursor="pointer",this.o=e,this.j=null,this.Cw=0,this.kr=new ce(NaN,NaN),this.u=0,this.F=50}di(Ee,wr),Ee.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)}},Ee.prototype.makeAdornment=function(e){var t=e.part.rotateAdornmentTemplate;if(t===null){t=new Wr,t.type=xn.Position,t.locationSpot=kr;var n=this.handleArchetype;n!==null&&t.add(n.copy())}else if($u(t),t=t.copy(),t===null)return null;return t.adornedObject=e,t},Ee.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},Ee.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)},Ee.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(kr)},Ee.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)},Ee.prototype.doDeactivate=function(){var e=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new ce(NaN,NaN),this.isActive=e.isMouseCaptured=!1},Ee.prototype.stopTransaction=function(){var e=this.diagram,t=wr.prototype.stopTransaction.call(this);return t&&e.undoManager.transactionToUndo!==null&&e.undoManager.transactionToUndo.ak(),t},Ee.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},Ee.prototype.doMouseMove=function(){var e=this.diagram;this.isActive&&(e=this.computeRotate(e.lastInput.documentPoint),this.rotate(e))},Ee.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()},Ee.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()}},Ee.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(Ee.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 Wr))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 Wr)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}}}),Ee.className="RotatingTool",ki("rotatingTool",function(){return this.findTool("Rotating")},function(e){this.gb("Rotating",e,this.mouseDownTools)});function $e(){wr.call(this),this.name="ClickSelecting"}di($e,wr),$e.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},$e.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},$e.className="ClickSelectingTool";function et(){wr.call(this),this.name="Action",this.pk=null}di(et,wr),et.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},et.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()},et.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))}},et.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()},et.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())},et.prototype.doStop=function(){this.pk=null},et.className="ActionTool";function Ft(){wr.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new ce(0,0)}di(Ft,wr),Ft.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)},Ft.prototype.doMouseUp=function(){var e=this.diagram;this.isActive&&this.insertPart(e.lastInput.documentPoint),this.stopTool()},Ft.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 Ei)n.Zc()&&($u(n),i=n.copy(),i!==null&&t.add(i));else if(n!==null){var r=t.model.copyNodeData(n);ft(r)&&(t.model.xf(r),i=t.Lc(r))}if(i!==null){var o=ce.allocAt(e.x,e.y);this.isGridSnapEnabled&&Bh(this.diagram,i,e,o),i.location=o,t.allowSelect&&(t.clearSelection(!0),i.isSelected=!0),ce.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(Ft.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}}}),Ft.className="ClickCreatingTool";function At(){wr.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var e=new Ei;e.layerName="Tool",e.selectable=!1;var t=new ar;t.name="SHAPE",t.figure="Rectangle",t.fill=null,t.stroke="magenta",e.add(t),this.j=e}di(At,wr),At.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))},At.prototype.doActivate=function(){var e=this.diagram;this.isActive=!0,e.isMouseCaptured=!0,e.skipsUndoManager=!0,e.add(this.box),this.doMouseMove()},At.prototype.doDeactivate=function(){var e=this.diagram;e.ug(),e.remove(this.box),e.skipsUndoManager=!1,this.isActive=e.isMouseCaptured=!1},At.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=mi.alloc().h(t.width,t.height);n.desiredSize=i,this.box.mm(t.x,t.y,!1),mi.free(i),(e.allowHorizontalScroll||e.allowVerticalScroll)&&e.gs(e.lastInput.viewPoint)}},At.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()},At.prototype.computeBoxBounds=function(){var e=this.diagram;return new Ht(e.firstInput.documentPoint,e.lastInput.documentPoint)},At.prototype.selectInRect=function(e){var t=this.diagram,n=t.lastInput;if(e=t.ux(e,this.isPartialInclusion),Bi?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 Zt,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(At.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}}}),At.className="DragSelectingTool";function ct(){wr.call(this),this.name="Panning",this.Xt=new ce,this.xy=new ce,this.xg=!1;var e=this;this.Kw=function(){var t=e.diagram;t!==null&&t.removeEventListener(Ge.document,"scroll",e.Kw,!1),e.stopTool()}}di(ct,wr),ct.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())},ct.prototype.doActivate=function(){var e=this.diagram;this.xg?(e.lastInput.bubbles=!0,e.addEventListener(Ge.document,"scroll",this.Kw,!1)):(e.currentCursor="move",e.isMouseCaptured=!0,this.Xt.assign(e.position)),this.isActive=!0},ct.prototype.doDeactivate=function(){var e=this.diagram;e.currentCursor="",this.isActive=e.isMouseCaptured=!1},ct.prototype.doCancel=function(){var e=this.diagram;e.position=this.Xt,e.isMouseCaptured=!1,this.stopTool()},ct.prototype.doMouseMove=function(){this.move()},ct.prototype.doMouseUp=function(){this.move(),this.stopTool()},ct.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(ct.prototype,{bubbles:{get:function(){return this.xg},set:function(e){this.xg=e}},originalPosition:{get:function(){return this.Xt}}}),ct.className="PanningTool",ki("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(e){this.gb("ClickCreating",e,this.mouseUpTools)}),ki("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(e){this.gb("ClickSelecting",e,this.mouseUpTools)}),ki("panningTool",function(){return this.findTool("Panning")},function(e){this.gb("Panning",e,this.mouseMoveTools)}),ki("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(e){this.gb("DragSelecting",e,this.mouseMoveTools)}),ki("actionTool",function(){return this.findTool("Action")},function(e){this.gb("Action",e,this.mouseDownTools)});function $t(){this.F=this.u=this.j=this.o=null}ht.Object.defineProperties($t.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}}}),$t.className="HTMLInfo";function Vt(e,t,n){this.text=e,this.hx=t,this.visible=n}Vt.className="ContextMenuButtonInfo";function Rt(){wr.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new ce,this.jt=null,this.Et=!1;var e=this;this.tu=function(){e.stopTool()}}di(Rt,wr);function yi(e){var t=new $t;t.show=function(r,o,s){s.showDefaultContextMenu()},t.hide=function(r,o){o.hideDefaultContextMenu()},ji=t,e.tu=function(){e.stopTool()},t=Kn("div");var n=Kn("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=Kn("style");Ge.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",si,!1),i.addEventListener(t,"selectstart",si,!1),i.addEventListener(n,"contextmenu",si,!1)),t.className="goCXforeground",n.className="goCXbackground",Ge.document.body&&(Ge.document.body.appendChild(t),Ge.document.body.appendChild(n)),ei=t,oo=n,to=!0}function si(e){return e.preventDefault(),!1}Rt.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)},Rt.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},Rt.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},Rt.prototype.findObjectWithContextMenu=function(e){e===void 0&&(e=null);var t=this.diagram,n=t.lastInput,i=null;if(e instanceof Z||(e instanceof it?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},Rt.prototype.doActivate=function(){},Rt.prototype.doMouseDown=function(){if(wr.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof Wr){var e=this.diagram.toolManager.findTool("Action");e!==null&&e.canStart()&&(e.doActivate(),e.doMouseDown(),e.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&sr(this)},Rt.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof Wr){var e=this.diagram.toolManager.findTool("Action");e!==null&&e.canStart()&&(e.doActivate(),e.doCancel(),e.doDeactivate())}sr(this)};function sr(e){var t=e.diagram;if(e.isActive){var n=e.currentContextMenu;if(n!==null){var i=null;n instanceof $t||(i=t.ic(t.lastInput.documentPoint,null,null),i!==null&&i.rg(n)&&e.standardMouseClick(null,null)),e.maybeStopTool(i)}}else e.canStart()&&(Si(e,!0),e.isActive||e.stopTool())}Rt.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function Si(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=ji,n===null&&(n=e.findObjectWithContextMenu()),n!==null){var i=n.contextMenu;i!==null?(e.currentObject=n instanceof it?n:null,e.showContextMenu(i,e.currentObject)):t!==null&&e.showContextMenu(t,e.currentObject)}else t!==null&&e.showContextMenu(t,null);e.currentContextMenu instanceof Wr&&!e.currentContextMenu.visible&&e.stopTool()}}Rt.prototype.doMouseMove=function(){var e=this.diagram.toolManager.findTool("Action");e!==null&&e.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},Rt.prototype.showContextMenu=function(e,t){var n=this.diagram;if(e!==this.currentContextMenu&&this.hideContextMenu(),e instanceof Wr){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 $t&&e.show(t,n,this);this.currentContextMenu=e},Rt.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}},Rt.prototype.hideContextMenu=function(){var e=this.diagram,t=this.currentContextMenu;t!==null&&(t instanceof Wr?(e.remove(t),this.ht!==null&&this.ht.Jf(t.category),t.data=null,t.adornedObject=null):t instanceof $t&&(t.hide!==null?t.hide(e,this):t.mainElement!==null&&(t.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function Cr(e){var t=new Zt;return t.add(new Vt("Copy",function(n){n.commandHandler.copySelection()},function(n){return n.commandHandler.canCopySelection()})),t.add(new Vt("Cut",function(n){n.commandHandler.cutSelection()},function(n){return n.commandHandler.canCutSelection()})),t.add(new Vt("Delete",function(n){n.commandHandler.deleteSelection()},function(n){return n.commandHandler.canDeleteSelection()})),t.add(new Vt("Paste",function(n){n.commandHandler.pasteSelection(e.mouseDownPoint)},function(n){return n.commandHandler.canPasteSelection(e.mouseDownPoint)})),t.add(new Vt("Select All",function(n){n.commandHandler.selectAll()},function(n){return n.commandHandler.canSelectAll()})),t.add(new Vt("Undo",function(n){n.commandHandler.undo()},function(n){return n.commandHandler.canUndo()})),t.add(new Vt("Redo",function(n){n.commandHandler.redo()},function(n){return n.commandHandler.canRedo()})),t.add(new Vt("Scroll To Part",function(n){n.commandHandler.scrollToPart()},function(n){return n.commandHandler.canScrollToPart()})),t.add(new Vt("Zoom To Fit",function(n){n.commandHandler.zoomToFit()},function(n){return n.commandHandler.canZoomToFit()})),t.add(new Vt("Reset Zoom",function(n){n.commandHandler.resetZoom()},function(n){return n.commandHandler.canResetZoom()})),t.add(new Vt("Group Selection",function(n){n.commandHandler.groupSelection()},function(n){return n.commandHandler.canGroupSelection()})),t.add(new Vt("Ungroup Selection",function(n){n.commandHandler.ungroupSelection()},function(n){return n.commandHandler.canUngroupSelection()})),t.add(new Vt("Edit Text",function(n){n.commandHandler.editTextBlock()},function(n){return n.commandHandler.canEditTextBlock()})),t}Rt.prototype.showDefaultContextMenu=function(){var e=this.diagram;this.jt===null&&(this.jt=Cr(this)),ei.innerHTML="",oo.addEventListener("pointerdown",this.tu,!1);var t=this,n=Kn("ul");n.className="goCXul",ei.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=Kn("li"),o.className="goCXli";var s=Kn("a");s.className="goCXa",s.href="#",s.ky=r.hx,s.addEventListener("pointerdown",function(l){return this.ky(e),t.stopTool(),l.preventDefault(),!1},!1),s.textContent=r.text,o.appendChild(s),n.appendChild(o)}}ei.style.display="block",oo.style.display="block"},Rt.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===ji){ei.style.display="none",oo.style.display="none";var e=this.diagram;e!==null&&e.removeEventListener(oo,"pointerdown",this.tu,!1),this.currentContextMenu=null}},ht.Object.defineProperties(Rt.prototype,{currentContextMenu:{get:function(){return this.j},set:function(e){this.j=e,this.ht=e instanceof Wr?e.adornedPart:null}},defaultTouchContextMenu:{get:function(){return to===!1&&ji===null&&xs&&yi(this),ji},set:function(e){e===null&&(to=!0),ji=e}},currentObject:{get:function(){return this.o},set:function(e){this.o=e}},mouseDownPoint:{get:function(){return this.yw}}});var ji=null,to=!1,oo=null,ei=null;Rt.className="ContextMenuTool",ki("contextMenuTool",function(){return this.findTool("ContextMenu")},function(e){this.gb("ContextMenu",e,this.mouseUpTools)});function Zi(){wr.call(this),this.name="TextEditing",this.Zh=new Lo,this.ia=null,this.V=Mi,this.vj=null,this.qa=Wi,this.u=1,this.F=!0,this.o=null,this.j=new $t,this.kt=null,Kr(this,this.j)}di(Zi,wr);function Kr(e,t){if(xs){var n=Kn("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(Ai)):r==="Tab"?(e.acceptText(tr),i.preventDefault()):r==="Escape"&&(e.doCancel(),e.diagram!==null&&e.diagram.doFocus())}},!1),n.addEventListener("focus",function(){if(e.currentTextEditor!==null&&e.state!==Wi){var i=e.kt;e.qa===Lr&&(e.qa=so),typeof i.select=="function"&&e.selectsTextOnActivate&&(i.select(),i.setSelectionRange(0,9999))}},!1),n.addEventListener("blur",function(){if(e.currentTextEditor!==null&&e.state!==Wi){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 Lo&&o instanceof Zi)if(o.state===ms)n.style.border="3px solid red",n.focus();else{var s=i.ga(kr),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,A=(s.x-l.x)*u;s=(s.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=(A-p/2|0)-1+"px",n.style.top=(s+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)}}}Zi.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;if(e===null||e.isReadOnly||vn&&vn!==this&&(vn.acceptText(No),vn&&vn!==this)||!e.lastInput.left||this.isBeyondDragSize())return!1;var t=e.ic(e.lastInput.documentPoint);return t!==null&&t instanceof Lo&&t.editable&&t.part.canEdit()?(t=t.part,!(t===null||this.starting===Mi&&!t.isSelected||this.starting===jr&&2>e.lastInput.clickCount)):!1},Zi.prototype.doStart=function(){vn=this,this.textBlock!==null&&this.doActivate()},Zi.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 Lo&&(this.textBlock=t,t.part!==null)){e.animationManager.Cc(),this.isActive=!0,this.qa=Lr;var n=this.defaultTextEditor;t.textEditor!==null&&(n=t.textEditor),this.Zh=this.textBlock.copy();var i=new Ht(this.textBlock.ga(Qo),this.textBlock.ga(zo));e.tv(i),n.show(t,e,this),this.currentTextEditor=n}}}},Zi.prototype.doCancel=function(){this.stopTool()},Zi.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},Zi.prototype.doMouseDown=function(){this.isActive&&this.acceptText(No)},Zi.prototype.acceptText=function(e){switch(e){case No:this.qa===gs?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===Lr||this.qa===ms||this.qa===so)&&(this.qa=Qt,Zr(this));break;case Qr:case Ai:case tr:(Ai!==e||this.textBlock.isMultiline!==!0)&&(this.qa===Lr||this.qa===ms||this.qa===so)&&(this.qa=Qt,Zr(this))}};function Zr(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=gs,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=ms,e.doError(r,o))}}Zi.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)},Zi.prototype.doSuccess=function(e,t){var n=this.textBlock;n.textEdited!==null&&n.textEdited(n,e,t)},Zi.prototype.doDeactivate=function(){var e=this.diagram;e!==null&&(this.qa=Wi,this.currentTextEditor!==null&&this.currentTextEditor.hide(e,this),this.textBlock=null,this.isActive=!1)},Zi.prototype.doStop=function(){vn=null},Zi.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)))},Zi.prototype.Lx=function(e){var t=this.Zh;return t.text=e,t.measure(this.textBlock.Ih,1/0),t},ht.Object.defineProperties(Zi.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)}}}),Zi.prototype.measureTemporaryTextBlock=Zi.prototype.Lx;var Qr=new Kt(Zi,"LostFocus",0),No=new Kt(Zi,"MouseDown",1),tr=new Kt(Zi,"Tab",2),Ai=new Kt(Zi,"Enter",3),Gi=new Kt(Zi,"SingleClick",0),Mi=new Kt(Zi,"SingleClickSelected",1),jr=new Kt(Zi,"DoubleClick",2),Wi=new Kt(Zi,"StateNone",0),Lr=new Kt(Zi,"StateActive",1),so=new Kt(Zi,"StateEditing",2),Qt=new Kt(Zi,"StateValidating",3),ms=new Kt(Zi,"StateInvalid",4),gs=new Kt(Zi,"StateValidated",5),vn=null;Zi.className="TextEditingTool",Zi.LostFocus=Qr,Zi.MouseDown=No,Zi.Tab=tr,Zi.Enter=Ai,Zi.SingleClick=Gi,Zi.SingleClickSelected=Mi,Zi.DoubleClick=jr,Zi.StateNone=Wi,Zi.StateActive=Lr,Zi.StateEditing=so,Zi.StateValidating=Qt,Zi.StateInvalid=ms,Zi.StateValidated=gs,ki("textEditingTool",function(){return this.findTool("TextEditing")},function(e){this.gb("TextEditing",e,this.mouseUpTools)});function co(e){jn||(Je(),jn=!0),this.H=dt,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=bi,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new Wt,this.ce=new Gr,this.ce.Yd=this,this.Ei=new Wt,this.pu=new Wt,this.Sr=new Wt,this.pr=new Wt,e&&Object.assign(this,e)}co.prototype.Xe=function(e){this.H=e},co.prototype.canStart=function(){return!0};function Ds(e,t){e.Jd&&e.canStart(t)&&(e.Zd.add(t),e.defaultAnimation.isAnimating&&e.Cc(),Ks(e.H),e.zb=!0)}function ss(e){if(e.Jd&&e.zb){var t=e.ce,n=e.H,i=e.Zd.contains("Model");i&&(e.Ok=!0,e.Pk===bi?(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===Dr&&t.vc.clear(),e.Qw=!!(e.Pk===gr&&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(),Is(t,n),e.Ok=!1,n.N()):(e.Zd.clear(),n.kg=!1,i=t.vc.get(n),n.autoScale!==ul&&i!==null&&(delete i.start.scale,delete i.end.scale),Ge.requestAnimationFrame(function(){e.zb===!1||t.bc||(n.Gf("temporaryPixelRatio")&&Pi(n),Pr(n),e.zb=!1,t.start(),t.bc&&(Ao(e),n.Ya(),mo(t,0),ma(n,!0),es(e),n.R("AnimationStarting",e)))}))}}function Ps(e){return e.Zd.contains("Trigger")&&e.Zd.count===1}function zs(e,t,n,i){e.isTicking||Ps(e)||t instanceof In&&(t.fromNode!==null||t.toNode!==null)||e.ce.add(t,"position",n,i,!1)}U=co.prototype,U.fv=function(e){return this.ce.fv(e)},U.Xu=function(e){return this.ce.Xu(e)};function Oo(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 s=o.value;if(s.bc!==!1){e:if(0<s.yl.count)var l=!0;else{for(l=s.vc.iterator;l.next();){var u=l.key;if(u instanceof it&&u.diagram!==null||u instanceof Z){l=!0;break e}}l=!1}l?nr(s,!1):s.Xk=!0}}r.pu.clear(),r.bc!==!1&&(Ao(r),ma(r.H),es(r)),Ge.requestAnimationFrame(n)}}var i=e.Ei,r=e;e.bc?e.Sr.add(t):(e.bc=!0,i.add(t),Ge.requestAnimationFrame(function(){n()}))}function So(e){for(e=e.Ei.iterator;e.next();)e.value.Xk=!1}function Ao(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 es(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(),Is(t,null),e===!0)for(e=this.Ei.Fa(),t=0;t<e.length;t++)e[t].Ml(!0)}else t.vc.clear(),Is(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),vs(this.ce,t,"position",t.position,t.position),g(this,e))};function Us(e,t,n){!e.zb||t.D(n)||Ps(e)||(e.H.pi||(t=n.copy()),vs(e.ce,e.H,"position",t,n))}function h(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],s=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,s=f):(p===0||p===100)&&(u=o,f=s),180<Math.abs(u-o)&&(u>o?o+=360:u+=360),o=r(n,o,u-o,i)%360,s=r(n,s,f-s,i),l=r(n,l,p-l,i),n=r(n,e,t-e,i),"hsla("+o+", "+s+"%, "+l+"%, "+n+")"}function Je(){function e(n,i,r,o,s,l){n.position=new ce(o(s,i.x,r.x-i.x,l),o(s,i.y,r.y-i.y,l))}var t=new qn;t.add("position:diagram",e),t.add("position",e),t.add("position:part",function(n,i,r,o,s,l){s<l?n.mm(o(s,i.x,r.x-i.x,l),o(s,i.y,r.y-i.y,l),!1):n.position=new ce(o(s,i.x,r.x-i.x,l),o(s,i.y,r.y-i.y,l))}),t.add("location",function(n,i,r,o,s,l){s<l?n.mm(o(s,i.x,r.x-i.x,l),o(s,i.y,r.y-i.y,l),!0):n.location=new ce(o(s,i.x,r.x-i.x,l),o(s,i.y,r.y-i.y,l))}),t.add("position:placeholder",function(n,i,r,o,s,l){s<l?n.mm(o(s,i.x,r.x-i.x,l),o(s,i.y,r.y-i.y,l),!1):n.position=new ce(o(s,i.x,r.x-i.x,l),o(s,i.y,r.y-i.y,l))}),t.add("position:nodeCollapse",function(n,i,r,o,s,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,s<l?n.mm(o(s,i.x,r-i.x,l),o(s,i.y,u-i.y,l),!1):n.position=new ce(o(s,i.x,r-i.x,l),o(s,i.y,u-i.y,l))}),t.add("desiredSize",function(n,i,r,o,s,l){n.desiredSize=new Ht(o(s,i.width,r.width-i.width,l),o(s,i.height,r.height-i.height,l))}),t.add("width",function(n,i,r,o,s,l){n.width=o(s,i,r-i,l)}),t.add("height",function(n,i,r,o,s,l){n.height=o(s,i,r-i,l)}),t.add("fill",function(n,i,r,o,s,l){n.fill=K(i,r,s,l,o)}),t.add("stroke",function(n,i,r,o,s,l){n.stroke=K(i,r,s,l,o)}),t.add("strokeWidth",function(n,i,r,o,s,l){n.strokeWidth=o(s,i,r-i,l)}),t.add("strokeDashOffset",function(n,i,r,o,s,l){n.strokeDashOffset=o(s,i,r-i,l)}),t.add("background",function(n,i,r,o,s,l){n.background=K(i,r,s,l,o)}),t.add("areaBackground",function(n,i,r,o,s,l){n.areaBackground=K(i,r,s,l,o)}),t.add("opacity",function(n,i,r,o,s,l){n.opacity=o(s,i,r-i,l)}),t.add("scale",function(n,i,r,o,s,l){n.scale=o(s,i,r-i,l)}),t.add("angle",function(n,i,r,o,s,l){n.angle=o(s,i,r-i,l)}),un=t}ht.Object.defineProperties(co.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&&tn(e,">= 1",co,"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}}}),co.prototype.stopAnimation=co.prototype.Cc;var un=null,jn=!1,bi=new Kt(co,"Default",1),gr=new Kt(co,"AnimateLocations",2),Dr=new Kt(co,"None",3);co.className="AnimationManager",co.defineAnimationEffect=function(e,t){jn||(Je(),jn=!0),un.add(e,t)},co.Default=bi,co.AnimateLocations=gr,co.None=Dr;function Gr(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=ko,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=Ar,this.vc=new qn,this.Tt=new qn,this.yl=new Wt,this.Ut=new Wt,this.dw=ph,e&&Object.assign(this,e)}Gr.prototype.suspend=function(){this.Xk=!0},Gr.prototype.advanceTo=function(e,t){t&&(this.Xk=!1),this.ho&&e>=this.Gd&&(this.Wk=!0,e-=this.Gd),this.gw=e,nr(this,!0),Ao(this.Yd),ma(this.H),es(this.Yd),this.H.redraw()};function Is(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=Gr.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 Z?e=n:n instanceof it&&(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===bi&&this===t.defaultAnimation&&(this.Lp=ts,this.Gd=isNaN(this.Dg)?t.duration===600?900:t.duration:this.Dg),this.dw=e.scrollMode,this.isViewportUnconstrained&&(e.sj=Fd),Ao(t),this.yl.each(function(i){i.data=null,e.add(i)}),es(t),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,Oo(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 Z?this.H=e:e instanceof it&&e.diagram!==null&&(this.H=e.diagram)),e instanceof Ei){if(!e.isAnimated)return this;t==="position"&&(t="position:part")}return vs(this,e,t,n,i,r),this};function vs(e,t,n,i,r,o){var s=e.vc;if(t instanceof Z&&n==="position"&&(n="position:diagram"),(n==="fill"||n==="stroke"||n==="background"||n==="areaBackground")&&(qc(i),mg(),i=[yu.j,yu.u,yu.o,yu.F],qc(r),mg(),r=[yu.j,yu.u,yu.o,yu.F]),s.contains(t)){var l=s.I(t),u=l.start,f=l.end;u[n]===void 0&&(u[n]=ni(i)),f[n]=ni(r)}else u={},f={},u[n]=ni(i),f[n]=ni(r),l=u.position,t instanceof it&&l instanceof ce&&!l.w()&&t.diagram.animationManager.Zd.contains("Expand SubGraph")&&l.assign(f.position),l=new Sa(u,f,o),s.add(t,l);s=u[n],s instanceof ce&&!s.w()&&s.assign(e.o),o&&n.indexOf("position:")===0&&t instanceof Ei?l.Ku.location=ni(t.location):o&&(l.Ku[n]=ni(i))}function ni(e){return e instanceof ce||e instanceof mi?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 nr(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),Ao(n),mo(e,r),ma(e.H,!0),es(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 mo(e,t){for(var n=e.Gd,i=e.vc.iterator,r=e.Wk;i.next();){var o=i.key;if(!(o instanceof it&&o.diagram===null)){var s=i.value,l=r?s.end:s.start;s=r?s.start:s.end;var u=un,f;for(f in s)f==="position"&&(s["position:placeholder"]||s["position:nodeCollapse"])||u.get(f)===null||u.get(f)(o,l[f],s[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,Ao(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=un;i.next();){var s=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 A=x;!l.Hu||A!=="position:nodeCollapse"&&A!=="position:placeholder"||(A="position"),o.get(A)(s,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&&s instanceof Ei&&(s.location=p.location),l.nv&&s instanceof Ei&&s.Zb(!1)}if(t.As.clear(),vr(t,!1),t.Ya(),t.N(),ma(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()}ma(t,!0),this.isViewportUnconstrained&&(t.scrollMode=this.dw),es(n),this.au++,!e&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),Is(this,null),n.Ml(this),t.$b())}},U.Cj=function(e,t){var n=t.actualBounds,i=null;if(t instanceof er&&(i=t.placeholder),i!==null?(n=i.ga(Qo),i=i.padding,n.x+=i.left,n.y+=i.top,this.add(e,"position",n,e.position,!1)):this.add(e,"position",new ce(n.x+n.width/2,n.y+n.height/2),e.position,!1),this.add(e,"scale",.01,e.scale,!1),e instanceof er)for(e=e.memberParts;e.next();)i=e.value,i instanceof Wn&&this.Cj(i,t)},U.Aj=function(e,t){if(e.isVisible()){var n=null;if(t instanceof er&&(n=t.placeholder),n!==null){var i=n.ga(Qo);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 er)for(e=e.memberParts;e.next();)i=e.value,i instanceof Wn&&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(Gr.prototype,{duration:{get:function(){return this.Dg},set:function(e){1>e&&tn(e,">= 1",Gr,"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:pt("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}}}),Gr.prototype.getTemporaryState=Gr.prototype.Ez,Gr.prototype.stop=Gr.prototype.stop,Gr.prototype.add=Gr.prototype.add,Gr.prototype.addTemporaryPart=Gr.prototype.Iy;function ko(e,t,n,i){return e/=i/2,1>e?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t}function ts(e,t,n,i){return e===i?t+n:n*(-Math.pow(2,-10*e/i)+1)+t}Gr.className="Animation",Gr.EaseLinear=function(e,t,n,i){return n*e/i+t},Gr.EaseInOutQuad=ko,Gr.EaseInQuad=function(e,t,n,i){return n*(e/=i)*e+t},Gr.EaseOutQuad=function(e,t,n,i){return-n*(e/=i)*(e-2)+t},Gr.EaseInExpo=function(e,t,n,i){return e===0?t:n*Math.pow(2,10*(e/i-1))+t},Gr.EaseOutExpo=ts;function Sa(e,t,n){this.start=e,this.end=t,this.Ku={},this.Hu=n,this.nv=!1}Sa.className="AnimationState";function pa(e,t,n){this.xd=null,this.rf=e,this.so=n||as,this.uk=null,t!==void 0&&(this.uk=t,n===void 0&&(this.so=Hs))}pa.prototype.copy=function(){var e=new pa(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 yo(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(pa.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 as=new Kt(pa,"Default",1),Hs=new Kt(pa,"Immediate",2),T=new Kt(pa,"Bundled",3);pa.className="AnimationTrigger",pa.Default=as,pa.Immediate=Hs,pa.Bundled=T;function m(e){Yi(this),this.H=null,this.Pa=new Zt,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,il(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,s=0,l=this.Pa.iterator;l.next();){var u=l.value;u instanceof er?r++:u instanceof Wn?i++:u instanceof In?o++:u instanceof Wr?s++:n++}if(l="",0<n&&(l+=n+" Parts "),0<i&&(l+=i+" Nodes "),0<r&&(l+=r+" Groups "),0<o&&(l+=o+" Links "),0<s&&(l+=s+" Adornments "),1<e)for(e=this.Pa.iterator;e.next();)n=e.value,l+=`
|
|
|
`+n.toString(),i=n.data,i!==null&&It(i)&&(l+=" #"+It(i)),n instanceof Wn?l+=" "+En(i):n instanceof In&&(l+=" "+En(n.fromNode)+" "+En(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=ce.alloc(),o=this.Pa.s,s=o.length;s--;){var l=o[s];if((i!==!0||Gh(l)!==!1)&&l.isVisible()&&(r.assign(e),Hi(r,l.oe),l=l.ic(r,t,n),l!==null&&(t!==null&&(l=t(l)),l!==null&&(n===null||n(l)))))return ce.free(r),l}return ce.free(r),null},U.ji=function(e,t,n,i){if(t===void 0&&(t=null),n===void 0&&(n=null),i instanceof Zt||i instanceof Wt||(i=new Wt),this.Uh===!1)return i;var r=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(e)&&(r=!0);for(var o=ce.alloc(),s=this.Pa.s,l=s.length;l--;){var u=s[l];if((r!==!0||Gh(u)!==!1)&&u.isVisible()){o.assign(e),Hi(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 ce.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 Zt||r instanceof Wt||(r=new Wt),this.Uh===!1)return r;var o=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(e)&&(o=!0);for(var s=this.Pa.s,l=s.length;l--;){var u=s[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,s){if(this.Uh===!1)return r;for(var l=this.Pa.s,u=l.length;u--;){var f=l[u];if((s!==!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 Zt||r instanceof Wt)&&(o=r),r=!0),o instanceof Zt||o instanceof Wt||(o=new Wt),this.Uh===!1)return o;var s=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(e)&&(s=!0);for(var l=ce.alloc(),u=ce.alloc(),f=this.Pa.s,p=f.length;p--;){var x=f[p];if((s!==!0||Gh(x)!==!1)&&x.isVisible()){l.assign(e),Hi(l,x.oe),u.h(e.x+t,e.y),Hi(u,x.oe);var A=x;x.og(l,u,n,i,r,o)&&(n!==null&&(A=n(A)),A===null||i!==null&&!i(A)||o.add(A))}}return ce.free(l),ce.free(u),o},U.Fd=function(e,t){if(this.visible){var n=this.Pa.s,i=n.length;if(i!==0){e=Gt();for(var r=Gt(),o=0;o<i;o++){var s=n[o];if(s.vw=o,s instanceof In){if(s.fd===!1)continue}else if(s instanceof Wr&&s.adornedPart!==null)continue;var l=s.actualBounds;s.isVisible()&&Ut(l,t)?(s.Fd(!0),e.push(s)):(s.Fd(!1),s.adornments!==null&&0<s.adornments.count&&r.push(s))}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]);dn(e),dn(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 s=t.scale,l=Ht.alloc(),u=0;u<i;u++)this.Oj(e,n[u],t,o,s,l,!0);if(Ht.free(l),e.isTemporary)for(t=0;t<i;t++)n[t].Gj();e.globalAlpha=r}}};function R(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 s=S(e,t),l=e.Zq;l.length=0;for(var u=n.scale,f=Ht.alloc(),p=0;p<o;p++){var x=r[p];i.contains(x)&&e.Oj(t,x,n,l,u,f,!1)}Ht.free(f),t.globalAlpha=s}}}U.Oj=function(e,t,n,i,r,o,s){if(s&&!Gh(t))e.Hs(t);else{if(i!==null&&t instanceof In&&(t.isOrthogonal&&i.push(t),t.fd===!1)){e.Hs(t);return}for(s=!1,i=t.containingGroup;i!==null;)s?i.tb!==null&&o.Ex(i.tb):i.tb!==null&&(s=!0,o.assign(i.tb)),i=i.containingGroup;var l=t.actualBounds;if(i=!1,s&&t.isVisible()){if(!o.Yc(l)){e.Hs(t);return}i=!o.Re(l)}i&&(e.save(),e instanceof tu?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&&(Ts(t,e,t.areaBackground,!0,!0,o,r),e.fillRect(r.x,r.y,r.width,r.height)),t.areaBackground===null&&t.background===null&&(Ts(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),Ts(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(vo,e,this,t,n,i,r)},U.oi=function(e,t,n){var i=this.Pa;if(t.Ig=this,this===null&&il(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)),Y(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,il(t),e};function Y(e,t,n){if(t=re(e,t,n),n instanceof er&&n!==null&&isNaN(n.zOrder)){if(n.memberParts.count!==0){for(var i=-1,r=e.Pa.s,o=r.length,s=0;s<o;s++){var l=r[s];if(l===n&&(t=s,0<=i)||0>i&&l.containingGroup===n&&(i=s,0<=t))break}!(0>i)&&i<t&&(r=e.Pa,r.mb(t),r.Gb(i,n))}t=n.containingGroup,t!==null&&Y(e,-1,t)}n.svg!==null&&n.svg.remove()}function re(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,s=NaN;0<=o&&(s=e.M(o).zOrder,!!isNaN(s));)o--;for(var l=t+1,u=NaN;l<r&&(u=e.M(l).zOrder,!!isNaN(u));)l++;if(!isNaN(s)&&s>i)for(;;){if(o===-1||s<=i){if(o++,o===t)break;return e.mb(t),e.Gb(o,n),o}for(s=NaN;0<=--o&&(s=e.M(o).zOrder,isNaN(s)););}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===""&&pt("Cannot rename default Layer to: "+e),n=n.layers;n.next();)n.value.name===e&&pt("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)&&tn(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 Z(e,t){if(y0||(tl(),y0=!0),Yi(this),dt=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,xs){var n=this,i=function(){n.removeEventListener(Ge.document,"DOMContentLoaded",i,!1),n.setRTL()};Ge.document.body!==null?this.setRTL():n.addEventListener(Ge.document,"DOMContentLoaded",i,!1)}this.ol=null,pf.add("Model",ao);var r=this;return this.Hb=function(o){var s=r.partManager;if(o.model===s.diagram.model&&s.diagram.aa){s.diagram.aa=!1;try{var l=o.change;o.modelChange===""&&l===vo&&s.updateDataBindings(o.object,o.propertyName)}finally{s.diagram.aa=!0}}},this.Oc=function(o){r.partManager.doModelChanged(o)},this.hu=this.ku=null,pn(this),this.model=bv(),this.Wg=!0,Fr(this),this.layout=new Vo,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"||Ge.Element&&e instanceof Element?wi(this,e):t=e),this.vb=!1,t&&this.nm(t),this}var st,dt;function pn(e){e.Yd=new co,e.Yd.Xe(e),e.Db=17,e.Gw=!1,e.tn=!1,e.bu="default",e.Wa=new Zt,e.pj=new qn,e.nl="default",e.Tx(),e.Sx(),e.pb=1,e.pa=new ce(NaN,NaN).freeze(),e.du=new ce(NaN,NaN),e.Ca=1,e.Pp=1,e.zt=new ce(NaN,NaN).freeze(),e.At=NaN,e.Ot=1e-4,e.Mt=100,e.Ab=new or,e.zu=new ce(NaN,NaN).freeze(),e.ut=new Ht(NaN,NaN,NaN,NaN).freeze(),e.rj=new pi(0,0,0,0).freeze(),e.sj=ph,e.nu=!1,e.Zt=null,e.fu=null,e.yh=ul,e.zk=Ur,e.Fg=ul,e.pq=Ur,e.yt=Qo,e.Bt=Qo,e.Fc=!0,e.pn=!1,e.De=new Wt,e.Eh=new qn,e.Xm=!0,e.vp=250,e.vk=-1,e.xp=new pi(16,16,16,16).freeze(),e.kg=!1,e.Jk=!1,e.fn=!0,e.bq=new ta,e.bq.diagram=e,e.Qg=new ta,e.Qg.diagram=e,e.cj=new ta,e.cj.diagram=e,e.zg=null,e.pf=null,e.qu=!1,cg(e),e.ai=new Wt,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 qn,e.Xn=new Zt,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 pi(5).freeze(),e.Hw=new Wt().freeze(),e.Nt=999999999,e.nw=new Wt().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 Wt,e.ow=new Wt,e.Xh=null,e.aw=new mi(8,8),e.bw=999,e.Bw=1,e.Jw=0,e.fc={scale:1,position:new ce,bounds:new Ht,Py:new mi,bA:new mi,Oz:!1},e.fc.canvasSize=e.fc.Py,e.fc.newCanvasSize=e.fc.bA,e.fc.isScroll=!1,e.Rw=new Ht(NaN,NaN,NaN,NaN).freeze(),e.wo=new mi(NaN,NaN).freeze(),e.Sp=new Ht(NaN,NaN,NaN,NaN).freeze(),e.It=!1,e.Lg=new qn;var t=new Wn,n=new Lo;n.bind(new $s("text","",En)),t.add(n),e.ny=t,e.Lg.add("",t),t=new Wn,n=new Lo,n.stroke="brown",n.bind(new $s("text","",En)),t.add(n),e.Lg.add("Comment",t),t=new Wn,t.selectable=!1,t.avoidable=!1,n=new ar,n.figure="Ellipse",n.fill="black",n.stroke=null,n.desiredSize=new mi(3,3).ja(),t.add(n),e.Lg.add("LinkLabel",t),e.Yi=new qn,t=new er,t.selectionObjectName="GROUPPANEL",t.type=xn.Vertical,n=new Lo,n.font="bold 12pt sans-serif",n.bind(new $s("text","",En)),t.add(n),n=new xn(xn.Auto),n.name="GROUPPANEL";var i=new ar;i.figure="Rectangle",i.fill="rgba(128,128,128,0.2)",i.stroke="black",n.add(i),i=new El,i.padding=new pi(5,5,5,5).ja(),n.add(i),t.add(n),e.ly=t,e.Yi.add("",t),e.Kh=new qn,t=new In,n=new ar,n.isPanelMain=!0,t.add(n),n=new ar,n.toArrow="Standard",n.fill="black",n.stroke=null,n.strokeWidth=0,t.add(n),e.my=t,e.Kh.add("",t),t=new In,n=new ar,n.isPanelMain=!0,n.stroke="brown",t.add(n),e.Kh.add("Comment",t),t=new Wr,t.type=xn.Auto,n=new ar,n.fill=null,n.stroke="dodgerblue",n.strokeWidth=3,t.add(n),n=new El,n.margin=new pi(1.5,1.5,1.5,1.5).ja(),t.add(n),e.St=t,e.wt=t,t=new Wr,t.type=xn.Link,n=new ar,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 ao,e.toolManager=new xo,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=Vn(),e.eq=null,e.fq=qi,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 ce,e.zy=500,e.wp=new ce,e.wq=!1}Z.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),dd=null,Uh="",Ln(this,!1),this.Xn.clear(),Af(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function Ln(e,t){e.animationManager.Cc(!0),e.Hw=new Wt().freeze(),e.nw=new Wt().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=[],s=e.Wa.length;if(t){for(t=0;t<s;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<s;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(),hr=[],r!==null&&(e.add(r),e.partManager.parts.remove(r)),i&&(e.skipsUndoManager=n),o}function Vn(){return null}Z.prototype.reset=function(){this.clear(),this.vb=!0,pn(this),Ac(this),this.Wg=!0,Fr(this),this.layout=new Vo,this.Wg=!1,this.model=bv(),this.model.undoManager=new Po,this.vb=this.rn=!1,this.N()},Z.prototype.setRTL=function(e){e=e===void 0?this.div:e,e===null&&(e=Ge.document.body);var t=Kn("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},Z.prototype.setScrollWidth=function(e){e=e===void 0?this.div:e,e===null&&(e=Ge.document.body);var t=0;if(xs){var n=v0;t=st,n===null&&(n=v0=Kn("p"),n.style.width="100%",n.style.height="200px",n.style.boxSizing="content-box",t=st=Kn("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||Bi||(t=11)}this.Db=t,this.Gw=!0},Z.prototype.qb=function(e){e.classType===Z&&(this.autoScale=e)},Z.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 wi(e,t){if(xs){if(t!=null||pt("Diagram setup requires an argument DIV."),e.Ka!==null&&pt("Diagram has already completed setup."),typeof t=="string"?e.Ka=Ge.document.getElementById(t):t instanceof HTMLDivElement?e.Ka=t:pt("No DIV or DIV id supplied: "+t),e.Ka===null&&pt("Invalid DIV id; could not get element with id: "+t),e.Ka.H!==void 0&&pt("Invalid div id; div already has a Diagram associated with it."),!e.ol&&Ge.ResizeObserver){var n=Sn(function(){e.$b()},250);e.ol=new Ge.ResizeObserver(function(){n()}),e.ol.observe(e.Ka)}Ge.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=Ge.go;var r=new Hu(e);if(r.style!==void 0&&(r.style.position="absolute",r.style.top="0px",r.style.left="0px",Ge.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 Hu(null),r.width=1,r.height=1,e.jw=r,e.oy=r.context,xs){r=Kn("div");var o=Kn("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=Ho,r.addEventListener("pointerdown",Ms),r.H=e,r.uy=!0,r.vy=!0,e.ku=r,e.hu=o}e.hk=Sn(function(){e.Yh=null,e.N()},300),e.Ov=Sn(function(){Pr(e)},250),e.preventDefault=function(s){return s.preventDefault(),!1},e.$j=function(s){if(e.isEnabled){var l=Aa(e,s,!0);l.bubbles=!0;var u=0,f=0;l.delta=0,s.deltaX!==void 0?(s.deltaX!==0&&(u=0<s.deltaX?1:-1),s.deltaY!==0&&(f=0<s.deltaY?1:-1),l.delta=Math.abs(s.deltaX)>Math.abs(s.deltaY)?-u:-f):s.wheelDeltaX!==void 0?(s.wheelDeltaX!==0&&(u=0<s.wheelDeltaX?-1:1),s.wheelDeltaY!==0&&(f=0<s.wheelDeltaY?-1:1),l.delta=Math.abs(s.wheelDeltaX)>Math.abs(s.wheelDeltaY)?-u:-f):s.wheelDelta!==void 0&&s.wheelDelta!==0&&(l.delta=0<s.wheelDelta?1:-1),e.doMouseWheel(),Fa(l,s)}},e.aA=function(s){e.isEnabled&&(e.Vk=!1,Aa(e,s,!0),s=e.currentTool,s.cancelWaitAfter(),s.standardMouseOver())},e.ui=function(s){if(e.isEnabled){e.Vk=!0;var l=e.Yt;l[s.pointerId]===void 0&&(l[s.pointerId]=s),l=e.oj;var u=!1;if(l[0]===null||l[0].pointerId!==s.pointerId&&l[0].pointerType===s.pointerType)if(l[1]!==null&&l[1].pointerId===s.pointerId)l[1]=s,u=!0;else if(l[0]===null)l[0]=s;else if(l[1]===null)l[1]=s,u=!0;else{s.preventDefault();return}else l[0]=s;(l=s.pointerType==="touch"||s.pointerType==="pen")&&(e.qu=!1,e.wq=!0);var f=u;u=Kl(e,s,!0,!1,!0,f),Au(e,s,u),u.targetDiagram=ll(s,s.target),u.targetObject=null,f||u.clone(e.bq),f=e.uw,l=l?25:10,s.timeStamp-e.tw<e.zy&&!(Math.abs(f.x-s.screenX)>l||Math.abs(f.y-s.screenY)>l)?e.yq++:e.yq=1,u.clickCount=e.yq,e.tw=s.timeStamp,e.uw.sg(s.screenX,s.screenY),e.doMouseDown(),s.button===1?s.preventDefault():Fa(u,s)}},e.dk=function(s){if(e.isEnabled){e.Vk=!0;var l=e.oj;if(l[0]===null||l[0].pointerId!==s.pointerId&&l[0].pointerType===s.pointerType){if(l[1]!==null&&l[1].pointerId===s.pointerId){l[1]=s;return}if(l[0]===null)l[0]=s;else return}else l[0]=s;if(l[0].pointerId===s.pointerId){l=Kl(e,s,!1,!1,!1,l[1]!==null);var u=Ge.document.elementFromPoint(s.clientX,s.clientY)||null;u!==null&&u.shadowRoot!==void 0&&u.shadowRoot!==null&&(u=u.shadowRoot.elementFromPoint(s.clientX,s.clientY));var f=e,p=s;u&&u.H&&(p=s,f=u.H),l.targetDiagram=f,Au(e,p,l),l.targetObject=null,e.doMouseMove(),Fa(l,s)}}},e.fk=function(s){if(e.isEnabled){e.Vk=!0;var l=s.pointerType==="touch"||s.pointerType==="pen",u=e.Yt;if(l&&e.qu)delete u[s.pointerId],s.preventDefault();else if(u=e.oj,u[0]===null||u[0].pointerId!==s.pointerId&&u[0].pointerType===s.pointerType)u[1]!==null&&u[1].pointerId===s.pointerId&&(u[1]=null);else{u[0]=null,u=Kl(e,s,!1,!0,!0,!1);var f=Ge.document.elementFromPoint(s.clientX,s.clientY)||null;f!==null&&f.shadowRoot!==void 0&&f.shadowRoot!==null&&(f=f.shadowRoot.elementFromPoint(s.clientX,s.clientY)),f!==null&&f.H instanceof Z&&f.H!==e&&Au(f.H,s,u),f===null&&(f=s.target),Au(e,s,u),u.clickCount=e.yq,u.targetDiagram=ll(s,f),u.targetObject=null,e.doMouseUp(),Fa(u,s),l&&(e.wq=!1)}}},e.ek=function(s){if(e.isEnabled){e.Vk=!1;var l=e.Yt;l[s.pointerId]&&delete l[s.pointerId],l=e.oj,l[0]!==null&&l[0].pointerId===s.pointerId&&(l[0]=null),l[1]!==null&&l[1].pointerId===s.pointerId&&(l[1]=null),s.pointerType!=="touch"&&s.pointerType!=="pen"&&(s=e.currentTool,s.cancelWaitAfter(),s.standardMouseOver())}},e.ck=function(s){var l=e.oj;l[0]!==null&&l[0].pointerId===s.pointerId?(l[0]=null,e.wq=!1):l[1]!==null&&l[1].pointerId===s.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),Ti(e),e.nl==="svg"&&(t=e.pj.get("svg"),e.Ka.appendChild(t.Oa),e.ib=t.context)}}Z.prototype.addEventListener=function(e,t,n,i){e.addEventListener(t,n,{capture:i,passive:!1})},Z.prototype.removeEventListener=function(e,t,n,i){e.removeEventListener(t,n,{capture:i})};function Ti(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(Ge,"resize",e.Ov,!1)}function Pi(e){30<e.Sq&&(e.Yh=1)}function vr(e,t){e.Yh!==null&&(e.Yh=null,t&&e.hk(),Yn&&Yn.nx||(e.Sq=0,e.zw=[0,0,0,0,0],e.Tq=0))}Z.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:Ge.devicePixelRatio||1},Z.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},Z.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},Z.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},Z.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},Z.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},Z.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},Z.prototype.doFocus=function(){this.focus()},Z.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var e=Ge.scrollX||Ge.pageXOffset,t=Ge.scrollY||Ge.pageYOffset;this.ta.focus(),Ge.scrollTo(e,t)}},Z.prototype.Oy=function(){this.H.R("GainedFocus")},Z.prototype.Ny=function(){this.H.R("LostFocus")};function Pr(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===ul&&(e.Jk=!0,t.C()),e.ld||e.$b())}}}function Fr(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 Eo(e){var t=new xn(xn.Grid);t.name="GRID";var n=new ar;return n.figure="LineH",n.stroke="lightgray",n.strokeWidth=.5,n.interval=1,t.add(n),n=new ar,n.figure="LineH",n.stroke="gray",n.strokeWidth=.5,n.interval=5,t.add(n),n=new ar,n.figure="LineH",n.stroke="gray",n.strokeWidth=1,n.interval=10,t.add(n),n=new ar,n.figure="LineV",n.stroke="lightgray",n.strokeWidth=.5,n.interval=1,t.add(n),n=new ar,n.figure="LineV",n.stroke="gray",n.strokeWidth=.5,n.interval=5,t.add(n),n=new ar,n.figure="LineV",n.stroke="gray",n.strokeWidth=1,n.interval=10,t.add(n),n=new Ei,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 Ho(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):ku(this.H)}function Ms(e){this.H.isEnabled?(this.H.lu=e.target.scrollTop,this.H.ju=e.target.scrollLeft):ku(this.H)}Z.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,s=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 A=r.width,L=r.height,B=r.right,V=r.bottom;r=this.scale;var ye=e.scrollLeft;if(this.tn)switch(this.bu){case"negative":ye=ye+e.scrollWidth-e.clientWidth;break;case"reverse":ye=e.scrollWidth-ye-e.clientWidth}var oe=ye;A<u||L<f?(ye=ce.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==oe&&(ye.x=oe/r+s,this.ju=oe),this.allowVerticalScroll&&this.lu!==e.scrollTop&&(ye.y=e.scrollTop/r+l,this.lu=e.scrollTop),this.position=ye,ce.free(ye),this.Ee=this.qr=!1):(ye=ce.alloc(),e.uy&&this.allowHorizontalScroll&&(s<x&&(this.position=ye.h(oe+s,this.position.y)),p>B&&(this.position=ye.h(-(t.scrollWidth-this.Aa)+oe-this.Aa/r+p,this.position.y))),e.vy&&this.allowVerticalScroll&&(l<i&&(this.position=ye.h(this.position.x,e.scrollTop+l)),o>V&&(this.position=ye.h(this.position.x,-(t.scrollHeight-this.ya)+e.scrollTop-this.ya/r+o))),ce.free(ye),this.vd=!0,this.Ee=this.qr=!1,i=this.documentBounds,r=this.viewportBounds,p=i.right,B=r.right,o=i.bottom,V=r.bottom,s=i.x,x=r.x,l=i.y,i=r.y,A>=u&&s>=x&&p<=B&&(n.style.width="1px"),L>=f&&l>=i&&o<=V&&(n.style.height="1px"))}},Z.prototype.computeBounds=function(e){return e===void 0&&(e=new Ht),Ks(this),Jo(this,e)};function Jo(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 s=i[o];if(s.visible&&s.isInDocumentBounds){s=s.Pa.s;for(var l=s.length,u=0;u<l;u++){var f=s[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}Z.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 In||(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 In||(i.Va(),n===null?n=i.actualBounds.copy():n.ed(i.actualBounds));return n===null?new Ht(NaN,NaN,0,0):n};function $o(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=ce.alloc(),n.xi(e.documentBounds,e.initialDocumentSpot);var i=e.viewportBounds;i=Ht.allocAt(0,0,i.width,i.height);var r=ce.alloc();r.xi(i,e.initialViewportSpot),r.h(n.x-r.x,n.y-r.y),e.position=r,Ht.free(i),ce.free(r),ce.free(n)}n=e.yh,t&&e.Fg!==ul&&(n=e.Fg);var o=n!==ul?ds(e,n):e.scale;n=e.pa.x,i=e.pa.y,r=e.Aa/o;var s=e.ya/o,l=e.zk,u=e.pq;t&&!l.sb()&&(u.sb()||u.Xb())&&(l=u.Xb()?kr:u),oa(e,e.documentBounds,r,s,l,t),t=e.scale,e.scale=o,e.vb=!1,o=e.viewportBounds,Ye.B(o.x,n)&&Ye.B(o.y,i)&&Ye.B(o.width,r)&&Ye.B(o.height,s)||e.onViewportBoundsChanged(new Ht(n,i,r,s),o,t,!1)}}function ds(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),s=e.ya+(e.Be?e.Db:0),l=o/r,u=s/i;return t===mu?(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?(s-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}Z.prototype.zoomToFit=function(){var e=this.sj;this.sj=ph,this.scale=ds(this,mu),e!==ph&&($o(this,!1),oa(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=e},U=Z.prototype,U.BA=function(e,t){t===void 0&&(t=mu);var n=e.width,i=e.height;if(!(n===0||i===0||isNaN(n)&&isNaN(i))){var r=1;if(t===mu||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 ce(e.x,e.y)}},U.Jy=function(e,t){this.Va();var n=this.documentBounds,i=this.viewportBounds;this.position=new ce(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 it){this.eq=e;var t=ce.alloc();this.fq=this.op(e.ga(Qo,t)),ce.free(t)}else this.eq=null,this.fq=qi};function oa(e,t,n,i,r,o){var s=ce.allocAt(e.pa.x,e.pa.y),l=s.x,u=s.y;if(e.eq!==null){var f=ce.alloc();f=e.eq.ga(Qo,f),l=f.x-e.fq.x/e.scale,u=f.y-e.fq.y/e.scale,r=Di,ce.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)),s.x=isFinite(l)?l:-e.yb.left,s.y=isFinite(u)?u:-e.yb.top,e.positionComputation!==null&&(t=e.positionComputation(e,s),s.x=t.x,s.y=t.y),Us(e.Yd,e.pa,s),e.pa.h(s.x,s.y),Ac(e),ce.free(s)}U.Ol=function(e,t){if(t===void 0&&(t=!0),t){if(e=ls(this,e,function(n){return n.part},function(n){return n.canSelect()}),e instanceof Ei)return e}else if(e=ls(this,e,function(n){return n.part}),e instanceof Ei)return e;return null},U.ic=function(e,t,n){t===void 0&&(t=null),n===void 0&&(n=null),Ks(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 ls(e,t,n,i){for(n===void 0&&(n=null),i===void 0&&(i=null),Ks(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),yl(this,e,function(i){return i.part},t?function(i){return i instanceof Ei&&i.canSelect()}:null,n)};function yl(e,t,n,i,r){for(n===void 0&&(n=null),i===void 0&&(i=null),r instanceof Zt||r instanceof Wt||(r=new Wt),Ks(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 Zt||i instanceof Wt||(i=new Wt),Ks(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),_a(this,e,function(r){return r instanceof Ei&&(!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 Zt||r instanceof Wt||(r=new Wt),Ks(this);for(var o=this.Wa.iteratorBackwards;o.next();){var s=o.value;s.visible&&s.Cf(e,t,n,i,r)}return r},U.Nu=function(e,t,n,i,r,o){var s=new Wt;Ks(this);for(var l=this.Wa.iteratorBackwards;l.next();){var u=l.value;u.visible&&u.Nu(e,t,n,i,s,r,o)}return s};function _a(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 Zt||r instanceof Wt||(r=new Wt),Ks(e),e=e.Wa.iteratorBackwards;e.next();){var s=e.value;s.visible&&!s.isTemporary&&s.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),sa(this,e,t,function(o){return o instanceof Ei&&(!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 Zt||r instanceof Wt)&&(o=r),r=!0),o instanceof Zt||o instanceof Wt||(o=new Wt),Ks(this);for(var s=this.Wa.iteratorBackwards;s.next();){var l=s.value;l.visible&&l.og(e,t,n,i,r,o)}return o};function sa(e,t,n,i,r,o){var s=null;for(s===void 0&&(s=null),i===void 0&&(i=null),r===void 0&&(r=!0),r!==!1&&r!==!0&&((r instanceof Zt||r instanceof Wt)&&(o=r),r=!0),o instanceof Zt||o instanceof Wt||(o=new Wt),Ks(e),e=e.Wa.iteratorBackwards;e.next();){var l=e.value;l.visible&&!l.isTemporary&&l.og(t,n,s,i,r,o)}return o}Z.prototype.acceptEvent=function(e){return Aa(this,e,e instanceof MouseEvent)};function Aa(e,t,n){var i=e.Qg;return e.Qg=e.cj,e.cj=i,i.diagram=e,i.event=t,n?Au(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),Bi&&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=ll(t,t.target),i.targetObject=null,i}function ll(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 Kl(e,t,n,i,r,o){var s=e.Qg;return e.Qg=e.cj,e.cj=s,s.diagram=e,s.clickCount=1,e=s.delta=0,t.ctrlKey&&(e+=1),t.altKey&&(e+=2),t.shiftKey&&(e+=4),t.metaKey&&(e+=8),s.modifiers=e,s.event=t,s.timestamp=t.timeStamp,s.button=t.button,s.buttons=t.buttons,Bi&&t.button===0&&t.ctrlKey&&(s.button=2),s.down=n,s.up=i,s.handled=!1,s.bubbles=r,s.isMultiTouch=o,s}function Fa(e,t){return e.bubbles?!0:(t.stopPropagation!==void 0&&t.stopPropagation(),t.cancelable!==!1&&t.preventDefault(),t.cancelBubble=!0,!1)}Z.prototype.Qz=function(e){var t=this.H;if(!this.H.isEnabled)return!1;var n=Aa(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(),Fa(n,e)},Z.prototype.Rz=function(e){var t=this.H;if(!t.isEnabled)return!1;var n=Aa(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(),Fa(n,e)},Z.prototype.bz=function(e){var t=this.H;if(!t.isEnabled)return!1;var n=Aa(t,e,!0);return t.mouseEnter!==null&&t.mouseEnter(n),t.currentTool.standardMouseOver(),Fa(n,e)},Z.prototype.cz=function(e){var t=this.H;if(!t.isEnabled)return!1;var n=Aa(t,e,!0);return t.mouseLeave!==null&&t.mouseLeave(n),Fa(n,e)},Z.prototype.getMouse=function(e){var t=this.ta;if(t===null)return new ce(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?Hi(new ce(t,e),this.Ab):new ce(t,e)};function Au(e,t,n){var i=e.ta,r=e.Aa,o=e.ya,s=0,l=0;i!==null&&(i=i.getBoundingClientRect(),s=t.clientX-r/i.width*i.left,l=t.clientY-o/i.height*i.top),n.viewPoint.h(s,l),e.Ab!==null?(t=ce.allocAt(s,l),e.Ab.Cd(t),n.documentPoint.assign(t),ce.free(t)):n.documentPoint.h(s,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))}}Z.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function Pc(e){e.ld||Ks(e),e.Va()}Z.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},U=Z.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,ma(this),this.hf=!1,this.du=new ce(NaN,NaN),t.isEnabled=n,this.ld=!0;var i=this;e!==null&&ti(function(){i.ld=!1,Ds(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;Ge.requestAnimationFrame(function(){t.kg&&t.bd()})}},U.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),ma(this))};function Fl(e,t,n){!e.Ee||e.vb||e.animationManager.defaultAnimation.isAnimating||ku(e)||(t&&Ks(e),n&&$o(e,!1))}function ma(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,s=0;s<o;s++){var l=r[s];Zs(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||Pr(e),Fl(e,!1,!0),e.fe!==null&&(e.fe.visible&&!e.mq&&(Nc(e),e.mq=!0),!e.fe.visible&&e.mq&&(e.mq=!1)),Ks(e),o=!1,(!e.hf||e.xh)&&(e.hf?sp(e,!e.Jk):(e.Ea("Initial Layout"),n.isEnabled===!1&&n.Cc(),sp(e,!1)),o=!0),e.Jk=!1,Ks(e),e.ou||Pc(e),Fl(e,!0,!1),s=!1,o?(n=Ht.alloc(),n.assign(e.viewportBounds),e.hf||(s=e.hf=!0,e.skipsUndoManager||(e.undoManager.isPendingClear=!0),e.undoManager.isPendingUnmodified=!0,Bl(e)),e.R("LayoutCompleted"),Fl(e,!0,!1),Ht.free(n)):n.Ok&&n.Qw&&(e.Fg!==ul?e.scale=ds(e,e.Fg):e.yh!==ul?e.scale=ds(e,e.yh):(n=e.initialScale,isFinite(n)&&0<n&&(e.scale=n)),$o(e,!0)),o&&s&&e.eb("Initial Layout"),Ks(e),t||e.gc(e.ib),r&&(e.skipsUndoManager=i),e.ld=!1}}function Bl(e){if(e.Fg!==ul)e.scale=ds(e,e.Fg);else if(e.yh!==ul)e.scale=ds(e,e.yh);else{var t=e.initialScale;isFinite(t)&&0<t&&(e.scale=t)}$o(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 Ks(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 Wt,e.Nv(n,e.De)}e.nodes.each(function(i){i instanceof er&&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 er||(n.si()?(n.measure(1/0,1/0),n.arrange()):t.add(n))}for(e.reset();e.next();)n=e.value,n instanceof er&&n.isVisible()&&Xo(this,n);for(e.reset();e.next();)n=e.value,n instanceof In&&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 Wr&&n.isVisible()&&(n.si()?(n.measure(1/0,1/0),n.arrange()):t.add(n))};function Xo(e,t){for(var n=Gt(),i=Gt(),r=t.memberParts;r.next();){var o=r.value;o.isVisible()&&(o instanceof er?(vu(o)||xl(o)||jh(o))&&Xo(e,o):o instanceof In?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(dn(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();dn(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&&pt("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var t=this.animationManager;if(!t.zb&&(!t.isAnimating||t.isTicking)){el(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,s=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,-s),e.ti=null,oy(e,l.m11,l.m12,l.m21,l.m22,l.dx,l.dy),this.pb!==1&&(e.globalAlpha=this.pb),za(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&&(or.prototype.Cd=or.prototype.Eu),this.Fc=this.vd=!1}}}}else e:if(o=this.animationManager,!o.zb&&(!o.isAnimating||o.isTicking)&&(n=new Date,el(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(),s=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(s,0,0,s,0,0),e.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(e.globalAlpha=this.pb),za(this,e),l=0;l<r;l++)e.setTransform(s,0,0,s,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&&(or.prototype.Cd=or.prototype.Eu),i?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,t=+new Date-+n,i=Yn&&Yn.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 ys(e,t,n,i,r,o,s,l,u,f){if(e.Ka!==null){e.ta===null&&pt("No canvas specified"),s===void 0&&(s=null),l===void 0&&(l=null),u===void 0&&(u=!1),f===void 0&&(f=!1),el(e),e.ib.Vc(!0),e.vd=!0,e.$i=!0;var p=e.Ca;e.Ca=r;var x=e.Wa.s,A=x.length;try{var L=new Ht(o.x,o.y,i.width/r,i.height/r),B=L.copy();B.Co(n),Nc(e,B),Ks(e),e.Fd(x,A,e,L),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 ye=or.alloc();ye.reset(),ye.translate(n.left,n.top),ye.scale(r),o.x===0&&o.y===0||ye.translate(-o.x,-o.y),t.setTransform(ye.m11,ye.m12,ye.m21,ye.m22,ye.dx,ye.dy),t.yc(),t instanceof tu&&oy(t,ye.m11,ye.m12,ye.m21,ye.m22,ye.dx,ye.dy),or.free(ye),za(e,t),t.globalAlpha=e.pb;var oe=e.Qj("Grid");if(s){var Me=new Wt,Be=s.iterator;for(Be.reset();Be.next();){var je=Be.value;je instanceof Ei&&(f||je.layer!==oe)&&(je.Gj(),Me.add(je))}for(f=0;f<A;f++)R(x[f],t,e,Me,u);Me.each(function(St){return St.Gj()})}else for(Me=0;Me<A;Me++){var tt=x[Me];tt===oe?f&&tt.gc(t,e,!0):tt.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,A,e,e.viewportBounds),Nc(e),e.ib instanceof tu&&(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 ae,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(Bi||ot),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function za(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 ae,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 qa(this,e),this};function qa(e,t){var n=e instanceof xn,i=e instanceof Z,r;for(r in t){r===""&&pt("Setting properties requires non-empty property names");var o=e,s=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])),ft(o)?s=r.substr(l+1):pt("Unable to find object named: "+u+" in "+e.toString()+" when trying to set property: "+r)}}if(s[0]!=="_"&&!Mn(o,s))if(i&&s==="ModelChanged"){e.Yw(t[s]);continue}else if(i&&s==="Changed"){e.Pe(t[s]);continue}else if(i&&Mn(e.toolManager,s))o=e.toolManager;else if(i&&p0(e,s)){e.Bj(s,t[s]);continue}else if(e instanceof hi&&s==="Changed"){e.Pe(t[s]);continue}else pt('Trying to set undefined property "'+s+'" on object: '+o.toString());o[s]=t[r],s[0]==="_"&&o instanceof it&&o.Vw(s)}}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 qn,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")},Z.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=Ht.alloc(),op(this,this.computeBounds(i)),Ht.free(i)),i=this.ta,i===null||i instanceof kc)))){var s=this.Mb;r=this.Aa*s;var l=this.ya*s,u=this.scale*s;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*s;var f=70*s,p=Math.max(o,0),x=Math.max(t,0),A=Math.floor(r-p),L=Math.floor(l-x);e.drawImage(i.Oa,p,x,A,L,0,0,A,L),md(this.Yf,this)&&e.clearRect(0,0,u,f),i=Gt(),e=Gt(),L=Math.abs(o),A=Math.abs(t);var B=p===0?0:r-L;p=ce.allocAt(B,0),L=ce.allocAt(L+B,l),e.push(new Ht(Math.min(p.x,L.x),Math.min(p.y,L.y),Math.abs(p.x-L.x),Math.abs(p.y-L.y)));var V=this.Ab;if(V.reset(),V.scale(s,s),this.Ca!==1&&V.scale(this.Ca),s=this.pa,(s.x!==0||s.y!==0)&&isFinite(s.x)&&isFinite(s.y)&&V.translate(-s.x,-s.y),Hi(p,V),Hi(L,V),i.push(new Ht(Math.min(p.x,L.x),Math.min(p.y,L.y),Math.abs(p.x-L.x),Math.abs(p.y-L.y))),B=x===0?0:l-A,p.h(0,B),L.h(r,A+B),e.push(new Ht(Math.min(p.x,L.x),Math.min(p.y,L.y),Math.abs(p.x-L.x),Math.abs(p.y-L.y))),Hi(p,V),Hi(L,V),i.push(new Ht(Math.min(p.x,L.x),Math.min(p.y,L.y),Math.abs(p.x-L.x),Math.abs(p.y-L.y))),md(this.Yf,this)&&(r=0<o?0:-o,l=0<t?0:-t,p.h(r,l),L.h(u+r,f+l),e.push(new Ht(Math.min(p.x,L.x),Math.min(p.y,L.y),Math.abs(p.x-L.x),Math.abs(p.y-L.y))),Hi(p,V),Hi(L,V),i.push(new Ht(Math.min(p.x,L.x),Math.min(p.y,L.y),Math.abs(p.x-L.x),Math.abs(p.y-L.y)))),ce.free(p),ce.free(L),Fl(this,!1,!0),this.Ka===null&&pt("No div specified"),this.ta===null&&pt("No canvas specified"),!this.animationManager.zb&&(r=this.ib,this.Fc)){for(el(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,s=this.Ca,u=Math.round(o.x*s)/s,f=Math.round(o.y*s)/s,t=this.Ab,t.reset(),s!==1&&t.scale(s),o.x===0&&o.y===0||t.translate(-u,-f),r.save(),r.beginPath(),o=e.length,s=0;s<o;s++)u=e[s],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),za(this,r),r.globalAlpha=this.pb,l=0;l<o;l++)if(s=t[l],u=i,s.visible&&s.pb!==0){f=S(s,r),x=s.Zq,x.length=0,p=this.scale,A=Ht.alloc(),L=s.Pa.s,V=L.length,B=u.length;for(var ye=0;ye<V;ye++){var oe=L[ye],Me=Ed(oe,oe.actualBounds);e:{for(var Be=2/p,je=4/p,tt=0;tt<B;tt++){var St=u[tt];if(St.width!==0&&St.height!==0&&Me.Vu(St.x-Be,St.y-Be,St.width+je,St.height+je)){Me=!0;break e}}Me=!1}Me&&s.Oj(r,oe,this,x,p,A,!0)}Ht.free(A),r.globalAlpha=f}r.restore(),r.Vc(!0),this.Yf&&md(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}dn(i),dn(e),this.ld=!1}}else this.bd();n&&(Pi(this),this.bd(),vr(this,!0))}else n?(Pi(this),this.bd(),vr(this,!0)):this.bd()}};function el(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 ku(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,s=e.gf?e.Db:0,l=e.Be?e.Db:0,u=r.clientWidth||n+s,f=r.clientHeight||i+l,p=e.viewportBounds;r=p.x;var x=p.y,A=p.width,L=p.height;if((u!==n+s||f!==i+l)&&(e.gf=!1,e.Be=!1,l=s=0,e.Aa=u,e.ya=f,o=e.pn=!0,Ac(e)),!e.hf||!e.viewportBounds.w())return!0;var B=e.ku,V=e.hu;if(e.Ee=!1,!(o||e.gf||e.Be||e.mn||e.nn))return!0;var ye=e.documentBounds,oe=0,Me=0,Be=0,je=0,tt=p.width,St=p.height,$n=e.rj;e.contentAlignment.sb()?(ye.width>tt&&(oe=$n.left,Me=$n.right),ye.height>St&&(Be=$n.top,je=$n.bottom)):(oe=$n.left,Me=$n.right,Be=$n.top,je=$n.bottom);var ii=ye.width+oe+Me,Qn=ye.height+Be+je;$n=e.scale;var An=ii>u/$n,an=Qn>f/$n;if(!(o||e.gf||e.Be||An||an))return!0;oe=ye.x-oe,u=p.x,Me=ye.right+Me,f=p.right+s,Be=ye.y-Be;var Ji=p.y;ye=ye.bottom+je,p=p.bottom+l;var Ui="1px";if(je="1px",e.scrollMode===ph&&(An||an)&&(An&&e.hasHorizontalScrollbar&&e.allowHorizontalScroll&&(An=1,oe+1<u&&(An=Math.max((u-oe)*$n+e.Aa,An)),Me>f+1&&(An=Math.max((Me-f)*$n+e.Aa,An)),tt+s+1<ii&&(An=Math.max((ii-tt)*$n+e.Aa,An)),Ui=An.toString()+"px"),an&&e.hasVerticalScrollbar&&e.allowVerticalScroll&&(An=1,Be+1<Ji&&(An=Math.max((Ji-Be)*$n+e.ya,An)),ye>p+1&&(An=Math.max((ye-p)*$n+e.ya,An)),St+l+1<Qn&&(An=Math.max((Qn-St)*$n+e.ya,An)),je=An.toString()+"px")),An=Ui!=="1px",an=je!=="1px",An&&an||!An&&!an||(an&&(f-=e.Db),An&&(p-=e.Db),ii<tt+s||!e.hasHorizontalScrollbar||!e.allowHorizontalScroll||(s=1,oe+1<u&&(s=Math.max((u-oe)*$n+e.Aa,s)),Me>f+1&&(s=Math.max((Me-f)*$n+e.Aa,s)),tt+1<ii&&(s=Math.max((ii-tt)*$n+e.Aa,s)),Ui=s.toString()+"px"),An=Ui!=="1px",s=e.ya,An!==e.Be&&(s=An?e.ya-e.Db:e.ya+e.Db),Qn<St+l||!e.hasVerticalScrollbar||!e.allowVerticalScroll||(l=1,Be+1<Ji&&(l=Math.max((Ji-Be)*$n+s,l)),ye>p+1&&(l=Math.max((ye-p)*$n+s,l)),St+1<Qn&&(l=Math.max((Qn-St)*$n+s,l)),je=l.toString()+"px"),an=je!=="1px"),e.qr&&An===e.Be&&an===e.gf)return n===e.Aa&&i===e.ya||e.bd(),!1;if(An!==e.Be&&(Ui==="1px"?e.ya=e.ya+e.Db:e.ya=Math.max(e.ya-e.Db,1),o=!0),e.Be=An,V.style.width=Ui,an!==e.gf&&(je==="1px"?e.Aa=e.Aa+e.Db:e.Aa=Math.max(e.Aa-e.Db,1),o=!0,e.tn&&(l=ce.alloc(),an?(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)),ce.free(l))),o&&Ac(e),e.gf=an,V.style.height=je,e.gu=!0,o&&(e.pn=!0),t=B.scrollLeft,e.hasHorizontalScrollbar&&e.allowHorizontalScroll&&(tt+1<ii?t=(e.position.x-oe)*$n:oe+1<u?t=B.scrollWidth-B.clientWidth:Me>f+1&&(t=e.position.x*$n)),e.tn)switch(e.bu){case"negative":t=-(B.scrollWidth-t-B.clientWidth);break;case"reverse":t=B.scrollWidth-t-B.clientWidth}return B.scrollLeft=t,e.hasVerticalScrollbar&&e.allowVerticalScroll&&(St+1<Qn?B.scrollTop=(e.position.y-Be)*$n:Be+1<Ji?B.scrollTop=B.scrollHeight-B.clientHeight:ye>p+1&&(B.scrollTop=e.position.y*$n)),u=e.Aa,f=e.ya,B.style.width=u+(e.gf?e.Db:0)+"px",B.style.height=f+(e.Be?e.Db:0)+"px",n!==u||i!==f||e.animationManager.zb?(n=Ht.allocAt(r,x,A,L),e.onViewportBoundsChanged(n,e.viewportBounds,$n,o),Ht.free(n),!1):!0}U=Z.prototype,U.add=function(e){var t=e.diagram;if(t!==this&&(t!==null&&pt("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&&pt('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(Zo,"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 Wr||e instanceof er&&e.placeholder!==null)&&e.v(),e.data!==null&&bd(e,function(n){gv(t.partManager,n)}),xl(e)!==!0&&jh(e)!==!0||this.De.add(e),Yy(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(qo,"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 Wt,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)},Z.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 qn;if(e!==null)if(Fn(e))for(var o=0;o<e.length;o++)pu(this,r,e[o],n,i);else for(e=e.iterator;e.next();)pu(this,r,e.value,n,i);else{for(e=this.parts;e.next();)pu(this,r,e.value,n,i);for(e=this.nodes;e.next();)pu(this,r,e.value,n,i);for(e=this.links;e.next();)pu(this,r,e.value,n,i)}tc(this,r,t,i,n)}};function pu(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 Wn){if(t.add(n,e.Pd(r,n,n.location)),n instanceof er&&(n.placeholder!==null||r.dragsMembers))for(o=n.memberParts;o.next();)pu(e,t,o.value,i,r,r.groupsAlwaysMove);for(o=n.linksConnected;o.next();){var s=o.value;if(!t.contains(s)){var l=s.fromNode,u=s.toNode;l!==null&&t.contains(l)&&u!==null&&t.contains(u)&&pu(e,t,s,i,r)}}if(r.dragsTree)for(n=n.Ou();n.next();)pu(e,t,n.value,i,r)}else if(n instanceof In)for(t.add(n,e.Pd(r,n)),n=n.labelNodes;n.next();)pu(e,t,n.value,i,r);else n instanceof Wr||t.add(n,e.Pd(r,n,n.location))}function tc(e,t,n,i,r){if(t!==null&&t.count!==0){var o=ce.alloc(),s=ce.alloc();s.assign(n),isNaN(s.x)&&(s.x=0),isNaN(s.y)&&(s.y=0),(n=e.Mr)||_h(e,t);for(var l=Gt(),u=Gt(),f=t.iterator,p=ce.alloc();f.next();){var x=f.key,A=f.value;if(x.Zc()){var L=hh(e,x,t);L!==null?l.push(new a(x,A,L)):(!r||x.canMove())&&(L=A.point,o.assign(L),e.computeMove(x,o.add(s),i,p),x.location=p,A.shifted===void 0&&(A.shifted=new ce),A.shifted.assign(p.re(L)))}else f.key instanceof In&&u.push(f.sa)}for(ce.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 ce),x.node.location=o.add(x.Su.shifted);for(r=ce.alloc(),f=ce.alloc(),x=u.length,A=0;A<x;A++){var B=u[A];if(L=B.key,L instanceof In)if(L.suspendsRouting){L.Tg=null,p=L.fromNode;var V=L.toNode;if(e.draggedLink!==null&&i.dragsLink)if(V=B.value.point,L.dragComputation===null)t.add(L,e.Pd(i,L,s)),Eh(L,s.x-V.x,s.y-V.y);else{B=ce.allocAt(0,0),(p=L.i(0))&&p.w()&&B.assign(p);var ye=p=ce.alloc().assign(B).add(s);i.isGridSnapEnabled&&(i.isGridSnapRealtime||e.lastInput.up)&&(ye=ce.alloc(),Bh(e,L,p,ye,i)),p.assign(L.dragComputation(L,p,ye)).re(B),t.add(L,e.Pd(i,L,p)),Eh(L,p.x-V.x,p.y-V.y),ce.free(B),ce.free(p),ye!==p&&ce.free(ye)}else p!==null&&(r.assign(p.location),ye=t.I(p),ye!==null&&r.re(ye.point)),V!==null&&(f.assign(V.location),ye=t.I(V),ye!==null&&f.re(ye.point)),p!==null&&V!==null?r.Xa(f)?(p=B.value.point,V=o,V.assign(r),V.re(p),t.add(L,e.Pd(i,L,r)),Eh(L,V.x,V.y)):(L.suspendsRouting=!1,L.bb()):(B=B.value.point,p=p!==null?r:V!==null?f:s,t.add(L,e.Pd(i,L,p)),Eh(L,p.x-B.x,p.y-B.y))}else(L.fromNode===null||L.toNode===null)&&(p=B.value.point,t.add(L,e.Pd(i,L,s)),Eh(L,s.x-p.x,s.y-p.y))}ce.free(o),ce.free(s),ce.free(r),ce.free(f),dn(l),dn(u),n||(Ks(e),Tc(e,t))}}Z.prototype.computeMove=function(e,t,n,i){if(i===void 0&&(i=new ce),i.assign(t),e===null)return i;var r=t,o=n.isGridSnapEnabled;o&&(n.isGridSnapRealtime||this.lastInput.up)&&(r=ce.alloc(),Bh(this,e,t,r,n)),n=e.dragComputation!==null?e.dragComputation(e,t,r):r;var s=e.minLocation,l=s.x;isNaN(l)&&(l=o?Math.round(1e3*e.location.x)/1e3:e.location.x),s=s.y,isNaN(s)&&(s=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(s,Math.min(n.y,u))),r!==t&&ce.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 s=r.gridSnapOrigin,l=s.x;if(s=s.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(s)&&(s=o.y)}o=ce.allocAt(0,0),o.yi(0,0,e,t,r),Ye.No(n.x,n.y,l+o.x,s+o.y,e,t,i),ce.free(o)}}function _h(e,t){if(t!==null)for(e.Mr=!0,e=t.iterator;e.next();)t=e.key,t instanceof In&&(t.suspendsRouting=!0)}function Tc(e,t){if(t!==null){for(t=t.iterator;t.next();){var n=t.key;n instanceof In&&(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=Z.prototype,U.Pd=function(e,t,n){if(n===void 0)return new Qc(Ar);var i=e.isGridSnapEnabled;return e.groupsSnapMembers||t.containingGroup===null||(i=!1),i?new Qc(new ce(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&&pt("Cannot share a Layer with another Diagram: "+t+" of "+t.diagram),n===null?t.diagram!==null&&pt("Cannot add an existing Layer to this Diagram again: "+t):(n.diagram!==e&&pt("Existing Layer must be in this Diagram: "+n+" not in "+n.diagram),t===n&&pt("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&&pt("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(Zo,"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(qo,"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(Zo,"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(qo,"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(Zo,"layers",this,null,e,null,o+1),this.N(),0>i&&this.Ya(),this},U.kA=function(e){if(e.diagram!==this&&pt("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(qo,"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 Zt),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 Zt),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!==xa&&(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,s){o===void 0&&(o=null),s===void 0&&(s=null);var l=new Do;l.diagram=this,l.change=e,l.propertyName=t,l.object=n,l.oldValue=i,l.oldParam=o,l.newValue=r,l.newParam=s,this.ds(l)},U.g=function(e,t,n,i,r){this.cb(vo,e,this,t,n,i,r)},Z.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===vo){var r=e.object;if(jo(r,e.propertyName,e.I(t)),r instanceof it){var o=r.part;o!==null&&o.Wb()}this.isModified=!0}else if(i===Zo){var s=e.object,l=e.newParam,u=e.newValue;if(s instanceof xn)if(typeof l=="number"&&u instanceof it){t?s.pc(l):s.Gb(l,u);var f=s.part;f!==null&&f.Wb()}else typeof l=="number"&&u instanceof Xs&&(u.isRow?Sy(s,l,t?void 0:u):Ey(s,l,t?void 0:u));else if(s instanceof m){var p=e.oldParam===!0;typeof l=="number"&&u instanceof Ei&&(t?(u.isSelected=!1,u.isHighlighted=!1,u.Wb(),s.pc(p?l:-1,u,p)):s.oi(l,u,p))}else s instanceof Z?typeof l=="number"&&u instanceof m&&(t?this.Wa.mb(l):(u.Xe(this),this.Wa.Gb(l,u))):pt("unknown ChangedEvent.Insert object: "+e.toString());this.isModified=!0}else if(i===qo){var x=e.object,A=e.oldParam,L=e.oldValue;if(x instanceof xn)typeof A=="number"&&L instanceof it?t?x.Gb(A,L):x.pc(A):typeof A=="number"&&L instanceof Xs&&(L.isRow?Sy(x,A,t?L:void 0):Ey(x,A,t?L:void 0));else if(x instanceof m){var B=e.newParam===!0;typeof A=="number"&&L instanceof Ei&&(t?0>x.Pa.indexOf(L)&&x.oi(A,L,B):(L.isSelected=!1,L.isHighlighted=!1,L.Wb(),x.pc(B?A:-1,L,B)))}else x instanceof Z?typeof A=="number"&&L instanceof m&&(t?(L.Xe(this),this.Wa.Gb(A,L)):this.Wa.mb(A)):pt("unknown ChangedEvent.Remove object: "+e.toString());this.isModified=!0}else i!==xa&&pt("unknown ChangedEvent: "+e.toString())}finally{this.skipsModelSourceBindings=n}}},Z.prototype.Ea=function(e){return this.undoManager.Ea(e)},Z.prototype.eb=function(e){return this.undoManager.eb(e)},Z.prototype.Kf=function(){return this.undoManager.Kf()},Z.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}},Z.prototype.updateAllTargetBindings=function(e){this.partManager.updateAllTargetBindings(e)},Z.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&&(Ps(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,s=e.ya,l=e.zoomPoint.x,u=e.zoomPoint.y,f=e.contentAlignment;isNaN(l)&&(f.$c()?f.Hf(Ol)?l=0:f.Hf(Vs)&&(l=o-1):l=f.sb()?f.x*(o-1):o/2),isNaN(u)&&(f.$c()?f.Hf(qs)?u=0:f.Hf(As)&&(u=s-1):u=f.sb()?f.y*(s-1):s/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=ce.allocAt(e.pa.x+l/t-l/n,e.pa.y+u/t-u/n),e.position=o,ce.free(o),e.Ca=n,Ac(e),e.vb=!1,e.onViewportBoundsChanged(r,e.viewportBounds,t,!1),$o(e,!1),i.zb&&(Ps(i)||i.ce.add(i.H,"scale",t,e.Ca))}}Z.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!==ul||e.width===t.width&&e.height===t.height||r.C(),r=this.currentTool,this.Vk===!0&&r instanceof xo&&(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=mi.alloc(),r=1,o=1,s=n.O.s,l=s.length,u=0;u<l;u++){var f=s[u],p=Math.abs(f.interval);2>p||(Cg(f.figure)?o=o*p/Ye.vx(o,p):r=r*p/Ye.vx(r,p))}if(s=n.gridCellSize,i.h(o*s.width,r*s.height),t!==void 0)r=t.width,o=t.height,e=t.x,s=t.y;else{if(t=Ht.alloc(),e=e.viewportBounds,t.h(e.x,e.y,e.width,e.height),!t.w()){Ht.free(t);return}r=t.width,o=t.height,e=t.x,s=t.y,Ht.free(t)}n.width=r+2*i.width,n.height=o+2*i.height,t=ce.alloc(),Ye.No(e,s,0,0,i.width,i.height,t),t.offset(-i.width,-i.height),mi.free(i),n.part.location=t,ce.free(t)}}Z.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)}},Z.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))},Z.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 Ei||pt("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 Ei||pt("Diagram.selectCollection given something that is not a Part: "+t),t.isSelected=!0;this.R("ChangedSelection",this.selection)},Z.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=Z.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 Wt().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 Ei||pt("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=ce.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)),ce.free(o);return}pt("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):pt("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+t),ce.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,s=t.m11,l=t.m12,u=t.m21,f=t.m22,p=t.dx,x=t.dy,A=n*s+i*u+p;t=n*l+i*f+x;var L=r*s+i*u+p;return e=r*l+i*f+x,i=n*s+o*u+p,n=n*l+o*f+x,s=r*s+o*u+p,r=r*l+o*f+x,o=Math.min(A,L),A=Math.max(A,L),L=Math.min(t,e),t=Math.max(t,e),o=Math.min(o,i),A=Math.max(A,i),L=Math.min(L,n),t=Math.max(t,n),o=Math.min(o,s),A=Math.max(A,s),L=Math.min(L,r),t=Math.max(t,r),new Ht(o,L,A-o,t-L)},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),Hi(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 ao}Z.prototype.doModelChanged=function(e){var t=this;if(e.model===this.model){var n=e.change,i=e.propertyName;if(n===xa&&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===xa){(i==="FinishedUndo"||i==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),Ks(this));var o=this.animationManager;i==="RolledBackTransaction"&&o.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||ss(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 s=e.isTransactionFinished;if(s&&(d0(this),this.As.clear(),So(this.animationManager)),!this.Rt&&s&&this.lastInput.targetDiagram){this.Rt=!0;var l=this;ti(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 Hl){var n=t.element;if(n!==null&&n instanceof HTMLImageElement){n.Bg instanceof Wt&&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 Hl){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 Wt&&n.Bg.remove(e),Af(i));break}}}}}Z.prototype.Wd=function(){this.partManager.Wd()},Z.prototype.Aj=function(e,t){this.Yd.Aj(e,t)},Z.prototype.Cj=function(e,t){this.Yd.Cj(e,t)},Z.prototype.findPartForKey=function(e){return this.partManager.findPartForKey(e)},Z.prototype.Vb=function(e){return this.partManager.Vb(e)},Z.prototype.findLinkForKey=function(e){return this.partManager.findLinkForKey(e)},U=Z.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:_r(lr(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:_r(lr(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),$o(e,!1),e.R("DocumentBoundsChanged",void 0,n),e.Ee=!0,e.N())}U.Va=function(){if(this.Zi){var e=Ht.alloc();op(this,this.computeBounds(e)),Ht.free(e)}},U.rz=function(){for(var e=new Wt,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){Ks(this),e&&uf(this,!0),this.ld?sp(this,!1):(this.Jk=!0,ma(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 sp(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||Ds(o,"Layout")),e.xh=!1;for(var s=e.ai.iterator;s.next();)ap(e,s.value,t,i);r.isValidLayout||(!t||r.isRealtime||r.isRealtime===null||i===0?(r.doLayout(e),Ks(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||ss(o),e.aa=n}}}function ap(e,t,n,i){if(t!==null){for(var r=t.gl.iterator;r.next();)ap(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),Xo(e,t),r.isValidLayout=!0):e.xh=!0)}}U.yz=function(){for(var e=new Zt,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(),s=new Zt;n.add(r,s),n.add(o,s),i.add(r,r),i.add(o,r)}var n=new qn,i=new qn;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;pt("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 cu;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)},Z.prototype.computeOccupiedArea=function(e){return this.isVirtualized?this.viewportBounds.copy():this.Zi?Jo(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=Ht.alloc(),e.computeOccupiedArea(t),t.Bc(100,100),r.initialize(t);for(var o=e.nodes;o.next();){var s=o.value,l=s.layer;l!==null&&l.visible&&!l.isTemporary&&ff(e,s,i,t)}Ht.free(t)}else{for(0<n.memberParts.count&&(t=e.computePartsBounds(n.memberParts,!1),t.Bc(20,20),r.initialize(t)),t=Ht.alloc(),o=n.memberParts;o.next();)s=o.value,s instanceof Wn&&ff(e,s,i,t);Ht.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 s=n;s<=t;s++)o[s]=Ch}else if(t instanceof er)for(t=t.memberParts;t.next();)r=t.value,r instanceof Wn&&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)}Z.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=ti(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=Ht.alloc(),e.computeBounds(t),t.ed(e.documentBounds),op(e,t),Ht.free(t),e.Fc=!0,e.bd(),lp(e))}},e.vp))}Z.prototype.ug=function(){this.vk!==-1&&(Ge.clearTimeout(this.vk),this.vk=-1)},Z.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=Ht.allocAt(0,0,i.width*r,i.height*r);var o=ce.allocAt(0,0);if(e.x>=i.x&&e.x<i.x+n.left&&this.allowHorizontalScroll){var s=Math.max(this.scrollHorizontalLineChange,1);s|=0,o.x-=s,e.x<i.x+n.left/2&&(o.x-=s),e.x<i.x+n.left/4&&(o.x-=4*s)}else e.x<=i.x+i.width&&e.x>i.x+i.width-n.right&&this.allowHorizontalScroll&&(s=Math.max(this.scrollHorizontalLineChange,1),s|=0,o.x+=s,e.x>i.x+i.width-n.right/2&&(o.x+=s),e.x>i.x+i.width-n.right/4&&(o.x+=4*s));return e.y>=i.y&&e.y<i.y+n.top&&this.allowVerticalScroll?(s=Math.max(this.scrollVerticalLineChange,1),s|=0,o.y-=s,e.y<i.y+n.top/2&&(o.y-=s),e.y<i.y+n.top/4&&(o.y-=4*s)):e.y<=i.y+i.height&&e.y>i.y+i.height-n.bottom&&this.allowVerticalScroll&&(s=Math.max(this.scrollVerticalLineChange,1),s|=0,o.y+=s,e.y>i.y+i.height-n.bottom/2&&(o.y+=s),e.y>i.y+i.height-n.bottom/4&&(o.y+=4*s)),o.Xa(Ar)||(t=new ce(t.x+o.x/r,t.y+o.y/r)),Ht.free(i),ce.free(o),t},U=Z.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 er&&(t.$p=null)})};function Dd(e,t,n){function i(){var p=+new Date;for(o=!0,s.reset();s.next();)if(!s.value[0].al){o=!1;break}o||p-f>u?t(n,r,l):Ge.requestAnimationFrame(i)}for(var r=n.callback,o=!0,s=e.Og.iterator;s.next();)if(!s.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 Ge.requestAnimationFrame(function(){i()}),null}U.Wz=function(e){return xs?(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"&&pt('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"&&pt("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 s=t.maxSize;t.maxSize===void 0&&(s=n==="SVG"?new mi(1/0,1/0):new mi(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 A=t.document||document,L=t.elementFinished||null,B=t.showTemporary;B===void 0&&(B=!x),t=t.showGrid,t===void 0&&(t=B),r!==null&&isNaN(r.width)&&isNaN(r.height)&&(r=null),typeof f=="number"?f=new pi(f):f instanceof pi||pt("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 Hu(null,A,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=A,i.hs=L,ys(e,i.context,f,new mi(x.width,x.height),e.Ca,e.pa,u,p,B,t),i.context):(e.Xm=!1,ys(e,V,f,new mi(x.width,x.height),e.Ca,e.pa,u,p,B,t),e.Xm=!0,x.context);var ye=e.Pp,oe=e.documentBounds.copy();if(oe.Fv(e.yb),B)for(var Me=e.Wa.s,Be=Me.length,je=0;je<Be;je++){var tt=Me[je];if(tt.visible&&tt.isTemporary){tt=tt.Pa.s;for(var St=tt.length,$n=0;$n<St;$n++){var ii=tt[$n];ii.isInDocumentBounds&&ii.isVisible()&&(ii=ii.actualBounds,ii.w()&&oe.ed(ii))}}}if(Me=new ce(oe.x,oe.y),u!==null){for(Be=new Ht(0,0,0,0),je=!0,tt=u.iterator,tt.reset();tt.next();)St=tt.value,St instanceof Ei&&($n=St.layer,$n!==null&&!$n.visible||$n!==null&&!B&&$n.isTemporary||!St.isVisible()||(St=St.actualBounds,St.w()&&(je?(je=!1,Be.assign(St)):Be.ed(St))));oe.width=Be.width,oe.height=Be.height,Me.x=Be.x,Me.y=Be.y}return l!==null&&l.w()&&(Me=l,o||(o=ye)),Be=l=0,f!==null&&(l=f.left+f.right,Be=f.top+f.bottom),je=tt=0,r!==null&&(tt=r.width,je=r.height,isFinite(tt)&&(tt=Math.max(0,tt-l)),isFinite(je)&&(je=Math.max(0,je-Be))),r!==null&&o!==null?(o==="NaN"&&(o=ye),r.w()?(r=tt,oe=je):isNaN(je)?(r=tt,oe=oe.height*o):(r=oe.width*o,oe=je)):r!==null?r.w()?(o=Math.min(tt/oe.width,je/oe.height),r=tt,oe=je):isNaN(je)?(o=tt/oe.width,r=tt,oe=oe.height*o):(o=je/oe.height,r=oe.width*o,oe=je):o!==null?o==="NaN"&&s.w()?(o=Math.min((s.width-l)/oe.width,(s.height-Be)/oe.height),o>ye?(o=ye,r=oe.width,oe=oe.height):(r=s.width,oe=s.height)):(r=oe.width*o,oe=oe.height*o):(o=ye,r=oe.width,oe=oe.height),f!==null?(r+=l,oe+=Be):f=new pi(0),s!==null&&(ye=s.width,s=s.height,isNaN(ye)&&(ye=2e3),isNaN(s)&&(s=2e3),isFinite(ye)&&(r=Math.min(r,ye)),isFinite(s)&&(oe=Math.min(oe,s))),x.width=Math.ceil(r),x.height=Math.ceil(oe),n==="SVG"?i===null?null:(i.resize(x.width,x.height,x.width,x.height),i.ownerDocument=A,i.hs=L,ys(e,i.context,f,new mi(Math.ceil(r),Math.ceil(oe)),o,Me,u,p,B,t),i.context):(e.Xm=!1,ys(e,V,f,new mi(Math.ceil(r),Math.ceil(oe)),o,Me,u,p,B,t),e.Xm=!0,x.context)}ht.Object.defineProperties(Z.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,Ge.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,Ge.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(Ge,"resize",this.Ov,!1),this.removeEventListener(Ge,"wheel",this.$j,!0),dt===this&&(dt=null)):this.ui===null&&(this.hf=!1),this.Ka=null,e!==null&&((t=e.H)&&(t.div=null),wi(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)&&tn(e,"0 <= value <= 1",Z,"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),$o(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),$o(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),$o(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),$o(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(e){var t=this.iu;t!==e&&(0>e&&tn(e,">= 0",Z,"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&&tn(e,">= 0",Z,"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 tn(e,">= 0",Z,"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&&pt("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var n=Ln(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var i=this.vb;this.vb=!0,Ds(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(Ge,"pointermove",this.dk,!0),this.addEventListener(Ge,"pointerdown",this.ui,!0),this.addEventListener(Ge,"pointerup",this.fk,!0),this.addEventListener(Ge,"pointerout",this.ek,!0),this.addEventListener(Ge,"pointercancel",this.ck,!0),this.removeEventListener(t,"wheel",this.$j,!1),this.addEventListener(Ge,"wheel",this.$j,!0),this.addEventListener(Ge,"selectstart",this.preventDefault,!1)):(this.removeEventListener(Ge,"pointermove",this.dk,!0),this.removeEventListener(Ge,"pointerdown",this.ui,!0),this.removeEventListener(Ge,"pointerup",this.fk,!0),this.removeEventListener(Ge,"pointerout",this.ek,!0),this.removeEventListener(Ge,"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(Ge,"wheel",this.$j,!0),this.removeEventListener(Ge,"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=ce.alloc().assign(this.pa);if(!t.D(e)){var n=this.viewportBounds.copy();this.pa.assign(e),Us(this.animationManager,t,this.pa),this.vb||this.ta===null&&!this.wo.w()?Ac(this):(this.vb=!0,e=this.scale,oa(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)}ce.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=Eo(this)),this.fe},set:function(e){var t=this.fe;if(t!==e){t===null&&(t=this.fe=Eo(this)),e.type!==xn.Grid&&pt("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||pt("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 pi(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&&$o(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,$o(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!==ul&&$o(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()||pt("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()||pt("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)):tn(e,"> 0",Z,"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)):tn(e,"> 0",Z,"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),$o(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 pi(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&&pt("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!==Ys&&e!==mf&&pt("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 mi(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 pi(e));var t=this.xp;t.D(e)||(this.xp=e=e.J(),this.Ya(),this.g("autoScrollRegion",t,e))}}}),ht.Object.defineProperties(Z,{licenseKey:{get:function(){return pp.jc()},set:function(e){pp.add(e.replace(/\s/g,""))}},version:{get:function(){return fd}}}),Z.prototype.makeImageData=Z.prototype.Jx,Z.prototype.makeImage=Z.prototype.Wz,Z.prototype.cacheGroupExternalLinks=Z.prototype.Fu,Z.prototype.addRenderer=Z.prototype.bs,Z.prototype.makeSVG=Z.prototype.av,Z.prototype.makeSvg=Z.prototype.Cs,Z.prototype.stopAutoScroll=Z.prototype.ug,Z.prototype.doAutoScroll=Z.prototype.gs,Z.prototype.isUnoccupied=Z.prototype.Yj,Z.prototype.raiseDiagramEvent=Z.prototype.R,Z.prototype.removeDiagramListener=Z.prototype.am,Z.prototype.addDiagramListener=Z.prototype.Bj,Z.prototype.findTreeRoots=Z.prototype.yz,Z.prototype.layoutDiagram=Z.prototype.Uz,Z.prototype.findTopLevelGroups=Z.prototype.qz,Z.prototype.findTopLevelNodesAndLinks=Z.prototype.rz,Z.prototype.ensureBounds=Z.prototype.Va,Z.prototype.findLinksByExample=Z.prototype.ls,Z.prototype.findNodesByExample=Z.prototype.ms,Z.prototype.findLinkForData=Z.prototype.Kc,Z.prototype.findNodeForData=Z.prototype.ii,Z.prototype.findPartForData=Z.prototype.Lc,Z.prototype.findLinkForKey=Z.prototype.findLinkForKey,Z.prototype.findNodeForKey=Z.prototype.Vb,Z.prototype.findPartForKey=Z.prototype.findPartForKey,Z.prototype.rebuildParts=Z.prototype.Wd,Z.prototype.transformViewToDoc=Z.prototype.Ps,Z.prototype.transformRectDocToView=Z.prototype.zA,Z.prototype.transformDocToView=Z.prototype.op,Z.prototype.centerRect=Z.prototype.es,Z.prototype.scrollToRect=Z.prototype.tv,Z.prototype.scroll=Z.prototype.scroll,Z.prototype.highlightCollection=Z.prototype.Jz,Z.prototype.highlight=Z.prototype.Iz,Z.prototype.selectCollection=Z.prototype.rA,Z.prototype.select=Z.prototype.select,Z.prototype.updateAllRelationshipsFromData=Z.prototype.rp,Z.prototype.updateAllTargetBindings=Z.prototype.updateAllTargetBindings,Z.prototype.commit=Z.prototype.commit,Z.prototype.rollbackTransaction=Z.prototype.Kf,Z.prototype.commitTransaction=Z.prototype.eb,Z.prototype.startTransaction=Z.prototype.Ea,Z.prototype.raiseChanged=Z.prototype.g,Z.prototype.raiseChangedEvent=Z.prototype.cb,Z.prototype.removeChangedListener=Z.prototype.ik,Z.prototype.addChangedListener=Z.prototype.Pe,Z.prototype.removeModelChangedListener=Z.prototype.mA,Z.prototype.addModelChangedListener=Z.prototype.Yw,Z.prototype.findLayer=Z.prototype.Qj,Z.prototype.removeLayer=Z.prototype.kA,Z.prototype.addLayerAfter=Z.prototype.Cy,Z.prototype.addLayerBefore=Z.prototype.Ww,Z.prototype.addLayer=Z.prototype.Al,Z.prototype.moveParts=Z.prototype.moveParts,Z.prototype.copyParts=Z.prototype.Kj,Z.prototype.removeParts=Z.prototype.Is,Z.prototype.remove=Z.prototype.remove,Z.prototype.add=Z.prototype.add,Z.prototype.clearDelayedGeometries=Z.prototype.bx,Z.prototype.setProperties=Z.prototype.nm,Z.prototype.attach=Z.prototype.Du,Z.prototype.set=Z.prototype.set,Z.prototype.resetInputOptions=Z.prototype.Sx,Z.prototype.setInputOption=Z.prototype.sA,Z.prototype.getInputOption=Z.prototype.Ql,Z.prototype.resetRenderingHints=Z.prototype.Tx,Z.prototype.setRenderingHint=Z.prototype.Xx,Z.prototype.getRenderingHint=Z.prototype.Gf,Z.prototype.maybeUpdate=Z.prototype.bd,Z.prototype.requestUpdate=Z.prototype.$b,Z.prototype.delayInitialization=Z.prototype.Xy,Z.prototype.isUpdateRequested=Z.prototype.Pz,Z.prototype.invalidateDocumentBounds=Z.prototype.Ya,Z.prototype.findObjectsNear=Z.prototype.og,Z.prototype.findPartsNear=Z.prototype.mz,Z.prototype.findObjectsIn=Z.prototype.Cf,Z.prototype.findPartsIn=Z.prototype.ux,Z.prototype.findObjectsAt=Z.prototype.ji,Z.prototype.findPartsAt=Z.prototype.lz,Z.prototype.findObjectAt=Z.prototype.ic,Z.prototype.findPartAt=Z.prototype.Ol,Z.prototype.focusObject=Z.prototype.zz,Z.prototype.alignDocument=Z.prototype.Jy,Z.prototype.zoomToRect=Z.prototype.BA,Z.prototype.zoomToFit=Z.prototype.zoomToFit,Z.prototype.diagramScroll=Z.prototype.kx,Z.prototype.focus=Z.prototype.focus;var pf=new qn,v0=null,xs=Ge.document!==void 0,dd=null,Uh="",ul=new Kt(Z,"None",0),mu=new Kt(Z,"Uniform",1),Hh=new Kt(Z,"UniformToFill",2),Pd=new Kt(Z,"CycleAll",10),up=new Kt(Z,"CycleNotDirected",11),cp=new Kt(Z,"CycleNotDirectedFast",12),hp=new Kt(Z,"CycleNotUndirected",13),dp=new Kt(Z,"CycleDestinationTree",14),fp=new Kt(Z,"CycleSourceTree",15),ph=new Kt(Z,"DocumentScroll",1),Fd=new Kt(Z,"InfiniteScroll",2),mh=new Kt(Z,"TreeParentCollapsed",21),Ys=new Kt(Z,"AllParentsCollapsed",22),mf=new Kt(Z,"AnyParentsCollapsed",23),pp=new Zt,fd="2.3.10",pd="image",Bd=null,y0=!1;function tl(){if(xs){var e=Ge.document.createElement("canvas"),t=e.getContext("2d"),n=Un("7ca11abfd022028846");t[n]=Un("398c3597c01238");for(var i=["5da73c80a36455d7038e4972187c3cae51fd22",fn.Dx+"4ae6247590da4bb21c324ba3a84e385776",or.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",Ye.za],r=1;5>r;r++)t[Un("7ca11abfd7330390")](Un(i[r-1]),10,15*r);for(t[n]=Un("39f046ebb36e4b"),n=1;5>n;n++)t[Un("7ca11abfd7330390")](Un(i[n-1]),10,15*n);(i.length!==4||i[0][0]!=="5"||i[3][0]!=="7")&&(or.prototype.Cd=or.prototype.Eu),Bd=e}}Z.className="Diagram",Z.fromDiv=function(e){var t=e;return typeof e=="string"&&(t=Ge.document.getElementById(e)),t instanceof HTMLDivElement&&t.H instanceof Z?t.H:null},Z.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},Z.useDOM=function(e){xs=e?Ge.document!==void 0:!1},Z.isUsingDOM=function(){return xs},Z.None=ul,Z.Uniform=mu,Z.UniformToFill=Hh,Z.CycleAll=Pd,Z.CycleNotDirected=up,Z.CycleNotDirectedFast=cp,Z.CycleNotUndirected=hp,Z.CycleDestinationTree=dp,Z.CycleSourceTree=fp,Z.DocumentScroll=ph,Z.InfiniteScroll=Fd,Z.TreeParentCollapsed=mh,Z.AllParentsCollapsed=Ys,Z.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=Ge[Un("76a715b2f73f148a")][Un("72ba13b5")]||"";if(e.Rc=!0,xs){var i=Z[Un("76a115b6ed251eaf4692")];if(i)for(var r=pp.iterator;r.next()&&(i=r.value,i=Un(i).split(Un("39e9")),!(6>i.length));){var o=Un(i[1]).split(".");if(i[4]!=="7da71ca0")break;var s=Un(fn[Un("6cae19")]).split(".");if(o[0]>s[0]||o[0]===s[0]&&o[1]>=s[1]){var l=Ge[Un("74a900bae4370f8b51")][Un("6fbb13a1c2311e8a57")].toLowerCase();if(s=l[Un("73a612b6fb191d")](Un("3aad1ab6e022098b4dc4")),o=Un(i[2]),-1<s&&(l=l[Un("73a612b6fb191d")](o.toLowerCase()+"/"),e.Rc=!(-1<l&&l<s),!e.Rc))break;for(s=n[Un("76ad18b4f73e")],l=n[Un("73a612b6fb191d")](Un("35e7"))+2;l<s;l++)t+=n[l];if(s=t[Un("73a612b6fb191d")](o),0>s&&o!==Un("7da71ca0ad381e90")&&(s=t[Un("73a612b6fb191d")](Un("76a715b2ef3e149757"))),0>s&&(s=t[Un("73a612b6fb191d")](Un("76a715b2ef3e149757"))),0>s&&(s=t[Un("73a612b6fb191d")](Un("2bfa41fdb3784bca12"))),0>s&&(s=n[Un("73a612b6fb191d")](Un("7baa19a6f76c1988428554"))),e.Rc=!(0<=s&&s<t[Un("73a612b6fb191d")](Un("35"))||t[Un("73a612b6fb191d")](Un("35"))===-1),!e.Rc||n[Un("73a612b6fb191d")](Un("7fb002b6ed25128b4da25b2e"))&&(e.Rc=!(-1<n[Un("73a612b6fb191d")](o)),!e.Rc)||(s=Ge[Un("76a715b2f73f148a")][Un("69ad17a1e03e")],l=s[Un("73a612b6fb191d")](Un("7fb002b6ed25128b4da25b2e")),-1<l&&(e.Rc=!(s[Un("73a612b6fb191d")](o)>l),!e.Rc)))break;if(o[0]==="#"){s=Ge.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],s[Un("79a417a0f0181a8946")]=i,Ge.document[Un("78a712aa")]){Ge.document[Un("78a712aa")][Un("7bb806b6ed32388c4a875b")](s),u=Ge.getComputedStyle(s).getPropertyValue(Un("78a704b7e62456904c9b12701b6532a8"));var f=Ge.getComputedStyle(s).getPropertyValue(Un("75b817b0ea2202"));if(Ge.document[Un("78a712aa")][Un("68ad1bbcf533388c4a875b")](s),u){if(s=Ge[Un("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(s&&s(Un("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(i="."+i,o=0;o<document.styleSheets.length;o++){s=document.styleSheets[o].rules||document.styleSheets[o].cssRules;for(var p in s)if(i===s[p].selectorText){e.Rc=!1;break e}}}}else e.Rc=null,e.Rc=!1}}}else{for(p=n[Un("76ad18b4f73e")],r=n[Un("73a612b6fb191d")](Un("35e7"))+2;r<p;r++)t+=n[r];n=t[Un("73a612b6fb191d")](Un("7da71ca0ad381e90")),e.Rc=!(0<=n&&n<t[Un("73a612b6fb191d")](Un("35")))}}}return 0<e.Rc&&e!==e.wy}b0.className="DiagramHelper";function Qc(e){this.j=e===void 0?new ce:e,this.o=new ce}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 a(e,t,n){this.node=e,this.info=t,this.Su=n}a.className="DraggingNodeInfoPair";function c(){this.reset()}c.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new mi(NaN,NaN).freeze(),this.gridSnapCellSpot=Qo,this.gridSnapOrigin=new ce(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},c.className="DraggingOptions";function y(e,t){if(typeof e=="string"||Ge.Element&&e instanceof Element)var n=Z.call(this,e)||this;else n=Z.call(this)||this,t=e;return v(n),t&&n.nm(t),n}di(y,Z);function v(e){e.allowDragOut=!0,e.allowMove=!1,e.isReadOnly=!0,e.contentAlignment=Ta,e.layout=new Ia}y.prototype.reset=function(){Z.prototype.reset.call(this),v(this)},y.className="Palette";function w(e,t){if(typeof e=="string"||Ge.Element&&e instanceof Element)var n=Z.call(this,e)||this;else n=Z.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 Ei;var r=new ar;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 pi(0,0,0,0),n.pa.h(0,0),n.toolManager.gb("Dragging",new be,n.toolManager.mouseMoveTools),n.click=function(){var o=i.observed;if(o!==null){var s=o.viewportBounds,l=i.lastInput.documentPoint;o.position=new ce(l.x-s.width/2,l.y-s.height/2)}},n.Pf=function(){i.Ya(),te(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&&te(i)},n.autoScale=mu,n.vb=!1,t&&Object.assign(n,t),n}di(w,Z),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(el(this),this.ql===null){var n=new Hu(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}}}Z.prototype.redraw.call(this)},w.prototype.gc=function(){if(this.Ka===null&&pt("No div specified"),this.ta===null&&pt("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){el(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=Ht.alloc().assign(e.viewportBounds).ed(t.viewportBounds),Nc(t,r),Ht.free(r),Ks(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 s=0;s<o;s++){var l=t[s],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,A=Ht.alloc(),L=l.Pa.s,B=L.length,V=0;V<B;V++){var ye=L[V];(i||ye!==f)&&l.Oj(r,ye,u,null,x,A,!1)}Ht.free(A),r.globalAlpha=p}}}}}function te(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=mi.alloc();r.h(n.width,n.height),i.desiredSize=r,mi.free(r),e=2/e.scale,i instanceof ar&&(i.strokeWidth=e),t.location=new ce(n.x-e/2,n.y-e/2),t.isSelected=!0}}}w.prototype.computeBounds=function(){var e=this.observed;if(e===null)return Er;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(),te(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&&pt("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),te(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),te(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 be(){To.call(this),this.j=null}di(be,To),be.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 ce(n.width/2,n.height/2),e=e.firstInput.documentPoint,t.position=new ce(e.x-this.j.x,e.y-this.j.y)),!0)},be.prototype.doActivate=function(){this.j=null,To.prototype.doActivate.call(this)},be.prototype.doUpdateCursor=function(){var e=this.diagram,t=e.box;t!==null&&t.cursor&&(e.currentCursor=t.cursor)},be.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 ce(i.x-n.x,i.y-n.y)}e=e.lastInput.documentPoint,t.position=new ce(e.x-this.j.x,e.y-this.j.y)}}},be.className="OverviewDraggingTool";function ve(){Yi(this),this.H=dt,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=Er,this.hb=!0,this.cg=null,this.ob=200}ve.prototype.toString=function(){return"CommandHandler"},ve.prototype.Xe=function(e){this.H=e},ve.prototype.doKeyDown=function(){var e=this.diagram,t=e.lastInput,n=Bi?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()},ve.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},ve.prototype.stopCommand=function(){var e=this.diagram,t=e.currentTool;t instanceof xo&&e.allowSelect&&e.clearSelection(),t!==null&&t.doCancel()},ve.prototype.canStopCommand=function(){return!0},ve.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=""}},ve.prototype.canSelectAll=function(){return this.diagram.allowSelect},ve.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 Wt,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=""}},ve.prototype.canDeleteSelection=function(){var e=this.diagram;return!(e.isReadOnly||e.isModelReadOnly||!e.allowDelete||e.selection.count===0)},ve.prototype.copySelection=function(){var e=this.diagram,t=new Wt;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)},ve.prototype.canCopySelection=function(){var e=this.diagram;return!!(e.allowCopy&&e.allowClipboard&&e.selection.count!==0)},ve.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},ve.prototype.canCutSelection=function(){var e=this.diagram;return!!(!e.isReadOnly&&!e.isModelReadOnly&&e.allowCopy&&e.allowDelete&&e.allowClipboard&&e.selection.count!==0)},ve.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 Zt,n.addAll(o),dd=n,Uh=t.model.dataFormat}}t.R("ClipboardChanged",n)},ve.prototype.pasteFromClipboard=function(){var e=new Wt,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,s=null;try{i.Tl()&&(r=i.Jj,i.Jj=this.copiesParentKey),i.Wj()&&(o=i.Ij,i.Ij=this.copiesGroupKey),s=n.Kj(t,n,!1)}finally{for(i.Tl()&&(i.Jj=r),i.Wj()&&(i.Ij=o),t=s.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},ve.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 ce(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=""}},ve.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)},ve.prototype.undo=function(){this.diagram.undoManager.undo()},ve.prototype.canUndo=function(){var e=this.diagram;return e.isReadOnly||e.isModelReadOnly?!1:e.allowUndo&&e.undoManager.canUndo()},ve.prototype.redo=function(){this.diagram.undoManager.redo()},ve.prototype.canRedo=function(){var e=this.diagram;return e.isReadOnly||e.isModelReadOnly?!1:e.allowUndo&&e.undoManager.canRedo()},ve.prototype.decreaseZoom=function(e){e===void 0&&(e=1/this.zoomFactor);var t=this.diagram;t.autoScale===ul&&(e=t.scale*e,e<t.minScale||e>t.maxScale||(t.scale=e))},ve.prototype.canDecreaseZoom=function(e){e===void 0&&(e=1/this.zoomFactor);var t=this.diagram;return t.autoScale!==ul?!1:(e=t.scale*e,e<t.minScale||e>t.maxScale?!1:t.allowZoom)},ve.prototype.increaseZoom=function(e){e===void 0&&(e=this.zoomFactor);var t=this.diagram;t.autoScale===ul&&(e=t.scale*e,e<t.minScale||e>t.maxScale||(t.scale=e))},ve.prototype.canIncreaseZoom=function(e){e===void 0&&(e=this.zoomFactor);var t=this.diagram;return t.autoScale!==ul?!1:(e=t.scale*e,e<t.minScale||e>t.maxScale?!1:t.allowZoom)},ve.prototype.resetZoom=function(e){e===void 0&&(e=this.defaultScale);var t=this.diagram;e<t.minScale||e>t.maxScale||(t.scale=e)},ve.prototype.canResetZoom=function(e){e===void 0&&(e=this.defaultScale);var t=this.diagram;return e<t.minScale||e>t.maxScale?!1:t.allowZoom},ve.prototype.zoomToFit=function(){var e=this.diagram,t=e.animationManager;t.Cc(),e.redraw();var n=e.position,i=e.scale;Ds(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=Er):(this.Jt=i,this.sw=n.copy(),e.zoomToFit(),this.Au=e.scale,this.yu=e.documentBounds.copy()),ss(t)},ve.prototype.canZoomToFit=function(){return this.diagram.allowZoom},ve.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;Ds(n,"Scroll To Part");var i=this.scrollToPartPause;if(0<i){var r=We(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 Wn&&u.isTreeExpanded&&(!(u instanceof er)||u.isSubGraphExpanded);)u=r.pop();0<r.length?(u instanceof Ei&&t.tv(u.actualBounds),u instanceof Wn&&!u.isTreeExpanded&&(u.isTreeExpanded=!0),u instanceof er&&!u.isSubGraphExpanded&&(u.isSubGraphExpanded=!0)):(u instanceof Ei&&t.es(u.actualBounds),t.am("LayoutCompleted",s)),t.eb("Scroll To Part")},s=function(){ti(o,(n.isEnabled?n.duration:0)+i)};t.Bj("LayoutCompleted",s),o()}}else{var l=t.position.copy();t.es(e.actualBounds),l.Xa(t.position)&&n.Cc()}}};function We(e,t,n){if(t.isVisible())return n;if(t instanceof Wr)We(e,t.adornedPart,n);else if(t instanceof In){var i=t.fromNode;i!==null&&We(e,i,n),t=t.toNode,t!==null&&We(e,t,n)}else t instanceof Wn&&(i=t.labeledLink,i!==null&&We(e,i,n),i=t.pg(),i!==null&&(i.isTreeExpanded||i.wasTreeExpanded||n.push(i),We(e,i,n))),t=t.containingGroup,t!==null&&(t.isSubGraphExpanded||t.wasSubGraphExpanded||n.push(t),We(e,t,n));return n}ve.prototype.canScrollToPart=function(e){return e===void 0&&(e=null),e!==null&&!(e instanceof Ei)?!1:(e=this.diagram,e.selection.count===0&&e.highlighteds.count===0?!1:e.allowHorizontalScroll&&e.allowVerticalScroll)},ve.prototype.collapseTree=function(e){e===void 0&&(e=null);var t=this.diagram;try{t.Ea("Collapse Tree"),Ds(t.animationManager,"Collapse Tree");var n=new Zt;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 Wn&&r.isTreeExpanded&&(r.collapseTree(),n.add(r))}t.R("TreeCollapsed",n)}finally{t.eb("Collapse Tree")}},ve.prototype.canCollapseTree=function(e){e===void 0&&(e=null);var t=this.diagram;if(t.isReadOnly)return!1;if(e!==null){if(!(e instanceof Wn&&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 Wn&&t.isTreeExpanded&&0<t.Qo().count)return!0;return!1},ve.prototype.expandTree=function(e){e===void 0&&(e=null);var t=this.diagram;try{t.Ea("Expand Tree"),Ds(t.animationManager,"Expand Tree");var n=new Zt;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 Wn&&!r.isTreeExpanded&&(r.expandTree(),n.add(r))}t.R("TreeExpanded",n)}finally{t.eb("Expand Tree")}},ve.prototype.canExpandTree=function(e){e===void 0&&(e=null);var t=this.diagram;if(t.isReadOnly)return!1;if(e!==null){if(!(e instanceof Wn)||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 Wn&&!t.isTreeExpanded&&0<t.Qo().count)return!0;return!1},ve.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 Zt,o=e.selection.iterator;o.next();){var s=o.value;s.Zc()&&s.canGroup()&&r.add(s)}for(var l=new Zt,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 A=l.iterator;A.next();)if(!A.value.Td(x)){r=!0;break}if(r)x=x.containingGroup;else break}if(n instanceof er)$u(n),i=n.copy(),i!==null&&e.add(i);else if(t.Yu(n)){var L=t.copyNodeData(n);ft(L)&&(t.xf(L),i=e.ii(L))}if(i!==null){x!==null&&this.isValidMember(x,i)&&(i.containingGroup=x);for(var B=l.iterator;B.next();){var V=B.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=""}}}},ve.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 zt(e){var t=Gt();for(e=e.iterator;e.next();){var n=e.value;n instanceof In||t.push(n)}e=new Wt,n=t.length;for(var i=0;i<n;i++){for(var r=t[i],o=!0,s=0;s<n;s++)if(r.Td(t[s])){o=!1;break}o&&e.add(r)}return dn(t),e}ve.prototype.isValidMember=function(e,t){if(t===null||e===t||t instanceof In)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},ve.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 Zt;if(e!==null)i.add(e);else for(var r=t.selection.iterator;r.next();){var o=r.value;o instanceof er&&o.canUngroup()&&i.add(o)}var s=new Zt;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;s.addAll(u.memberParts);for(var x=s.iterator;x.next();){var A=x.value;if(A.isSelected=!0,!(A instanceof In)){var L=A.data;L!==null?n.mp(L,p):A.containingGroup=f}}t.remove(u)}}t.R("SelectionUngrouped",i,s)}finally{t.eb("Ungroup"),t.R("ChangedSelection",t.selection),t.currentCursor=""}},ve.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 er))return!1;if(e.canUngroup())return!0}else for(e=t.selection.iterator;e.next();)if(t=e.value,t instanceof er&&t.canUngroup())return!0;return!1},ve.prototype.addTopLevelParts=function(e,t){var n=!0;for(e=zt(e).iterator;e.next();){var i=e.value;i.containingGroup!==null&&(!t||this.isValidMember(null,i)?i.containingGroup=null:n=!1)}return n},ve.prototype.collapseSubGraph=function(e){e===void 0&&(e=null);var t=this.diagram;try{t.Ea("Collapse SubGraph"),Ds(t.animationManager,"Collapse SubGraph");var n=new Zt;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 er&&r.isSubGraphExpanded&&(r.collapseSubGraph(),n.add(r))}t.R("SubGraphCollapsed",n)}finally{t.eb("Collapse SubGraph")}},ve.prototype.canCollapseSubGraph=function(e){e===void 0&&(e=null);var t=this.diagram;if(t.isReadOnly)return!1;if(e!==null)return!!(e instanceof er&&e.isSubGraphExpanded);for(e=t.selection.iterator;e.next();)if(t=e.value,t instanceof er&&t.isSubGraphExpanded)return!0;return!1},ve.prototype.expandSubGraph=function(e){e===void 0&&(e=null);var t=this.diagram;try{t.Ea("Expand SubGraph"),Ds(t.animationManager,"Expand SubGraph");var n=new Zt;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 er&&!r.isSubGraphExpanded&&(r.expandSubGraph(),n.add(r))}t.R("SubGraphExpanded",n)}finally{t.eb("Expand SubGraph")}},ve.prototype.canExpandSubGraph=function(e){e===void 0&&(e=null);var t=this.diagram;if(t.isReadOnly)return!1;if(e!==null)return e instanceof er&&!e.isSubGraphExpanded;for(e=t.selection.iterator;e.next();)if(t=e.value,t instanceof er&&!t.isSubGraphExpanded)return!0;return!1},ve.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 Lo&&o.editable})}e!==null&&(t.currentTool=null,n.textBlock=e,t.currentTool=n)}},ve.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 Lo))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 Lo&&n.editable}),e!==null))return!0;return!1},ve.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 it?r=e.ga(kr):t.viewportBounds.ca(i.documentPoint)||(r=t.viewportBounds,r=new ce(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,Si(n,!1,e)}},ve.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)},ve.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 qn,e===null)return i;for(var o=e.iterator;o.next();)pu(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 In&&(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(ve.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||pt("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}}}),ve.className="CommandHandler",Vn=function(){return new ve};function it(){Yi(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new ce(NaN,NaN).freeze(),this.jd=ra,this.Ab=new or,this.wh=new or,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=ha,this.uc=new Ht(NaN,NaN,NaN,NaN).freeze(),this.Ib=new Ht(NaN,NaN,NaN,NaN).freeze(),this.dc=new Ht(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=Ur,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 bn,mn,li,vi,Oi,ir,Ir,dr,Br,ho;it.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=Mt(this.Dh)),this.tb!==null&&(e.tb=this.tb.copy())},it.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)},it.prototype.Af=function(e){e.Zn=null,e.Ng=null,e.v()},it.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},it.prototype.copy=function(){return this.clone()},U=it.prototype,U.qb=function(e){e.classType===In?e.name.indexOf("Orient")===0?this.segmentOrientation=e:pt("Unknown Link enum value for GraphObject.segmentOrientation property: "+e):e.classType===it&&(this.stretch=e)},U.toString=function(){return xt(this.constructor)+"#"+It(this)},U.th=function(){this.A!==null&&(this.A.nc=!0)};function ur(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=Di,e.yj=Di,e.Vi=10,e.wj=10,e.Wi=0,e.xj=0,this.ba=e}},U.cb=function(e,t,n,i,r,o,s){var l=this.part;if(l!==null&&(l.gk(e,t,n,i,r,o,s),n===this&&e===vo&&Ba(this)&&Uo(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 qn),s=o.undoManager.transactionLevel===0,e.startCondition===Hs?s=!0:e.startCondition===T&&(s=!1),s?(o=new Gr,yo(e,o),s=this.jo.get(e),s!==null&&s.stop(),this.jo.add(e,o),o.vu=this,o.Nw=e,o.add(this,t,i,r),o.start()):(Ds(o.animationManager,"Trigger"),o.animationManager.defaultAnimation.add(this,t,i,r)))),this instanceof xn&&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 xn&&bd(l,function(u){u.data!==null&&u.l&16777216&&u.La(t)})};function Uo(e,t,n){var i=e.ih();if(i!==null)for(var r=e.localBindings.iterator;r.next();){var o=r.value,s=null;if(o.sourceName!==null){if(s=B1(o,i,e),s===null)continue;o.sp(e,s,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)}s===e&&(l=i.ks(o.Ai),l!==null&&o.Mv(l,s,n))}}U.ks=function(e){return this.bindingId===e?this:null},U.g=function(e,t,n){this.cb(vo,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 or);var o=this.Lb;o.reset(),this.no(o,e,t,n,i),o.pp(r)}};function aa(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?$r(e.x,e.y,0,0,0,i.height)<=t||$r(e.x,e.y,0,i.height,i.width,i.height)<=t||$r(e.x,e.y,i.width,i.height,i.width,0)<=t||$r(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=ce.alloc();t.assign(e),this.transform.Ga(t);var n=this.actualBounds;if(!n.w())return ce.free(t),!1;var i=this.diagram;if(i!==null&&i.wq){var r=i.Ql("extraTouchThreshold"),o=i.Ql("extraTouchArea"),s=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-s*u,n.y-s*u,n.width+o*u,n.height+o*u,t.x,t.y),ce.free(t),e}return r=!1,(this instanceof Wr||this instanceof ar?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)),ce.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=Ht.allocAt(0,0,t.width,t.height);var n=this.transform,i=!1,r=ce.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)))),ce.free(r),Ht.free(t),i},U.fh=function(e,t){if(t===void 0)return e.Re(this.actualBounds);var n=this.naturalBounds,i=!1,r=ce.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)))),ce.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=ce.allocAt(0,0),r=ce.allocAt(0,n.height),o=ce.allocAt(n.width,n.height),s=ce.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(s)))l=!0;else{n=Ht.allocAt(0,0,n.width,n.height);var u=ce.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)))),ce.free(u),Ht.free(n),!l&&(Ye.us(e,i,r)||Ye.us(e,r,o)||Ye.us(e,o,s)||Ye.us(e,s,i))&&(l=!0)}return ce.free(i),ce.free(r),ce.free(o),ce.free(s),l},U.ga=function(e,t){if(t===void 0&&(t=new ce),e instanceof oi){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 Ht);var t=this.naturalBounds,n=this.oe,i=ce.allocAt(0,0).transform(n);return e.h(i.x,i.y,0,0),i.h(t.width,0).transform(n),zr(e,i.x,i.y,0,0),i.h(t.width,t.height).transform(n),zr(e,i.x,i.y,0,0),i.h(0,t.height).transform(n),zr(e,i.x,i.y,0,0),ce.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 ce),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,s=1/(o.m11*o.m22-o.m12*o.m21),l=o.m22*s,u=-o.m12*s,f=-o.m21*s,p=o.m11*s,x=s*(o.m21*o.dy-o.m22*o.dx),A=s*(o.m12*o.dx-o.m11*o.dy);return this.areaBackground!==null?(o=this.actualBounds,Ye.Ff(o.left,o.top,o.right,o.bottom,e,t,n,i,r)):(s=e*l+t*f+x,e=e*u+t*p+A,t=n*l+i*f+x,n=n*u+i*p+A,r.h(0,0),i=this.naturalBounds,n=Ye.Ff(0,0,i.width,i.height,s,e,t,n,r),r.transform(o),n)},it.prototype.measure=function(e,t,n,i){if(vu(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 s=this.kq();o===90||o===270?(e=isFinite(r.height)?r.height+s:e,t=isFinite(r.width)?r.width+s:t):(e=isFinite(r.width)?r.width+s:e,t=isFinite(r.height)?r.height+s:t),r=n||0,s=i||0;var l=this instanceof xn;switch(zl(this,!0)){case mn:s=r=0,l&&(t=e=1/0);break;case bn:isFinite(e)&&e>n&&(r=e),isFinite(t)&&t>i&&(s=t);break;case vi:isFinite(e)&&e>n&&(r=e),s=0,l&&(t=1/0);break;case Oi:isFinite(t)&&t>i&&(s=t),r=0,l&&(e=1/0)}l=this.maxSize;var u=this.minSize;r>l.width&&u.width<l.width&&(r=l.width),s>l.height&&u.height<l.height&&(s=l.height),n=Math.max(r,u.width),i=Math.max(s,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()||pt("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Zs(this,!1)}},it.prototype.Wl=function(){},it.prototype.Dd=function(){return!1},it.prototype.arrange=function(e,t,n,i,r){this.Uk();var o=Ht.alloc();o.assign(this.Ib),this.Ib.ka(),xl(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 Lo&&(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()||pt("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(o,this.Ib),Fc(this,!1),Ht.free(o)},U=it.prototype,U.eh=function(){};function cl(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 s=n.top+n.bottom;switch(n=o.width+t,o=o.height+s,i+=t,r+=s,t=zl(e,!0),n===i&&o===r&&(t=mn),t){case mn:(n>i||o>r)&&(Zs(e,!0),e.measure(n>i?i:n,o>r?r:o,0,0));break;case bn:Zs(e,!0),e.measure(i,r,0,0);break;case vi:Zs(e,!0),e.measure(i,o,0,0);break;case Oi:Zs(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(),po(e,t)||(n.oh(),this.Pn(n)))},U.Pn=function(e){this.portId!==null&&(Kg(e,!0),e instanceof Wn&&e1(e,this))},U.gc=function(e,t){if(!Iu(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 xn&&yh(this),s=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&&(Ts(this,e,f,!0,!0,u,l),f instanceof no&&f.type===Lu?(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&&(Ts(this,e,p,!0,!1,u,l),p instanceof no&&p.type===Lu?(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||s.width!==0&&s.height!==0&&!isNaN(s.x)&&!isNaN(s.y))){o=this.transform,l=this.panel,this.l&4096&&ka(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 A;if(!(A=t.$i||!p)){var L=this.naturalBounds;A=this.wh;var B=A.m11,V=A.m21,ye=A.dx,oe=A.m12,Me=A.m22,Be=A.dy,je,tt=je=0;A=je*B+tt*V+ye;var St=je*oe+tt*Me+Be;je=L.width+x,tt=0;var $n=je*B+tt*V+ye;je=je*oe+tt*Me+Be,tt=Math.min(A,$n);var ii=Math.min(St,je),Qn=Math.max(A+0,$n)-tt,An=Math.max(St+0,je)-ii;A=tt,St=ii,je=L.width+x,tt=L.height+x,$n=je*B+tt*V+ye,je=je*oe+tt*Me+Be,tt=Math.min(A,$n),ii=Math.min(St,je),Qn=Math.max(A+Qn,$n)-tt,An=Math.max(St+An,je)-ii,A=tt,St=ii,je=0,tt=L.height+x,$n=je*B+tt*V+ye,je=je*oe+tt*Me+Be,tt=Math.min(A,$n),ii=Math.min(St,je),Qn=Math.max(A+Qn,$n)-tt,An=Math.max(St+An,je)-ii,A=tt,St=ii,x=t.viewportBounds,L=x.x,B=x.y,A=!(A>x.width+L||L>Qn+A||St>x.height+B||B>An+St)}if(A){if(A=(this.l&256)!==0,e.clipInsteadOfFill&&(A=!1),this instanceof Lo&&(e.font=this.font),A){if(St=l.se()?l.naturalBounds:l.actualBounds,Qn=Math.max(s.x,St.x),An=Math.max(s.y,St.y),x=Math.min(s.right,St.right)-Qn,L=Math.min(s.bottom,St.bottom)-An,B=this.tb,B!==null&&(Qn=B.x,An=B.y,x=B.width,L=B.height),Qn>s.width+s.x||s.x>St.width+St.x){n!==1&&(e.globalAlpha=i),this.filter!==""&&(e.filter=r);return}e.save(),e.beginPath(),e.rect(Qn,An,x,L),e.clip()}if(p){if(!f.isVisible()){n!==1&&(e.globalAlpha=i),this.filter!==""&&(e.filter=r);return}u&&(St=f.shadowOffset,e.Ev(St.x*t.scale*this.scale*t.Mb,St.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(),gu(this,e,f,s)),e.transform(o.m11,o.m12,o.m21,o.m22,o.dx,o.dy),u&&Ea(this,l)&&this.shadowVisible===null&&Bc(e),this.Ma!==null&&(e.yc(),Yl(this,e,f,s)),u&&(this.Ma!==null||this.areaBackground!==null||Ea(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),A&&(e.restore(),e.Vc(this instanceof xn)),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 Ea(e,t){return t===null?!1:(yh(t)&&(t=t.panel),(t.l&512)!==0||(t.type===xn.Auto||t.type===xn.Spot)&&t.Pb()!==e)}U.Dv=function(){};function gu(e,t,n,i){Ts(e,t,e.areaBackground,!0,!0,n,i),e.areaBackground instanceof no&&e.areaBackground.type===Lu?(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 Yl(e,t,n,i){var r=e.kq(),o=n.x,s=n.y,l=n.width+r,u=n.height+r;Ts(e,t,e.Ma,!0,!1,n,i),e.Ma instanceof no&&e.Ma.type===Lu?(t.beginPath(),t.rect(o-r/2,s-r/2,l,u),t.ng(e.Ma)):t.fillRect(o-r/2,s-r/2,l,u)}function nl(e,t,n){for(var i=t.O.s,r=i.length,o=-1,s=0;s<r;s++)if(i[s]===e){o=s;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===xn.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 Iu(e,t,n){if(!(t instanceof tu))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&&nl(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 Lo&&(t.font=e.font),t.yd=null;var s=e.transform;o=e instanceof xn;var l=e instanceof xn?yh(e):!1;e.l&4096&&ka(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,s.m11,s.m12,s.m21,s.m22,s.dx,s.dy),e.svg=t.ad):gp(t,1,0,0,1,0,0)),r=e.naturalBounds,e.areaBackground!==null){var f=s.copy().Vj();t.rb.ha=[f.m11,f.m12,f.m21,f.m22,f.dx,f.dy],gu(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=[s.m11,s.m12,s.m21,s.m22,s.dx,s.dy]),e.background!==null&&(o?(l&&(t.rb.ha=[s.m11,s.m12,s.m21,s.m22,s.dx,s.dy]),Yl(e,t,r,u),l&&(t.rb.ha=[1,0,0,1,0,0])):(t.rb.ha=[s.m11,s.m12,s.m21,s.m22,s.dx,s.dy],Yl(e,t,r,u)),t.yd.Ma=t.ad,t.yd.prepend(t.ad)),s=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&&Ea(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&&s.Ma.setAttributeNS(null,"filter",f),e.areaBackground!==null&&s.gd.setAttributeNS(null,"filter",f)),l&&(e.Ma!==null||e.areaBackground!==null||Ea(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(),s=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),_l(t,f),!0):(e.svg=l,s!==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&&nl(e,i,l),s!==null&&s(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 s=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,s=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"+Mo++,l=e.Ud("clipPath",{id:o}),t=e.Ud("rect",{x:t,y:r,width:s,height:n}),this instanceof xn&&(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",s.toString()),e.setAttribute("height",n.toString()))}else i.removeAttributeNS(null,"clip-path"),_l(e,i)};function _l(e,t){t=t.getAttribute("clip-path"),t!==null&&(e=e.svg.getElementById(t.split("#")[1].slice(0,-1)),e!==null&&e.remove())}function il(e){if(e.svg!==null){var t=e.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),n=e.svg.ownerDocument;if(t!==null){t=lr(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 xn?yh(this):!1;if(!(this instanceof xn&&r))if(this instanceof Hl){var o=this.bt;e.rb.ha=[i.m11,i.m12,i.m21,i.m22,i.dx,i.dy],o!==null&&sy(e,o[0],o[1],o[2],o[3],o[4],o[5],o[6],o[7]),n?t.lastElementChild.setAttributeNS(null,"transform",ay(e)):t.setAttributeNS(null,"transform",ay(e))}else if(!n||this instanceof xn)t.setAttributeNS(null,"transform","matrix("+i.m11+", "+i.m12+", "+i.m21+", "+i.m22+", "+i.dx+", "+i.dy+")");else if(this instanceof ar){o=t.getElementsByTagName("path");for(var s=0;s<o.length;s++)o[s].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):(s=i.copy().Vj(),e.rb.ha=[s.m11,s.m12,s.m21,s.m22,s.dx,s.dy],gu(this,e,this.naturalBounds,this.actualBounds),e.rb.ha=[1,0,0,1,0,0],t.gd?(s=t.gd.getAttribute("filter"),s!==null&&e.ad.setAttribute("filter",s),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 xn))&&(e.rb.ha=[i.m11,i.m12,i.m21,i.m22,i.dx,i.dy]),Yl(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 Ts(e,t,n,i,r,o,s){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=s.width,u=s.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,A=0,L=0,B=0,V=0,ye=0;if(ye=V=0,r?(V=s.x,ye=s.y):i||(V-=f/2,ye-=f/2),x=n.start.x*l+n.start.offsetX,A=n.start.y*u+n.start.offsetY,L=n.end.x*l+n.end.offsetX,B=n.end.y*u+n.end.offsetY,x+=V,L+=V,A+=ye,B+=ye,n.type===eh)p=t.createLinearGradient(x,A,L,B);else if(n.type===Lu)ye=isNaN(n.endRadius)?Math.max(l,u)/2:n.endRadius,isNaN(n.startRadius)?(V=0,ye=Math.max(l,u)/2):V=n.startRadius,p=t.createRadialGradient(x,A,V,L,B,ye);else if(n.type===Ef)try{p=t.createPattern(n.pattern,"repeat")}catch(Me){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 oe=e.diagram;oe!==null&&n.yk===-1&&ti(function(){oe.redraw()},600)}}i?t.fillStyle=p:t.strokeStyle=p}}}U.rg=function(e){if(e instanceof xn)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 xn?this:this.panel;e!==null&&e.isEnabled;)e=e.panel;return e===null};function ka(e){if(e.l&2048){var t=e.Ab;if(t.reset(),!e.Ib.w()||!e.uc.w()){Uu(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)}Uu(e,!1),Mu(e,!0)}e.l&4096&&(t=e.panel,t===null?(e.wh.set(e.Ab),e.Kk=e.scale,Mu(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,Mu(e,!1)))}U.no=function(e,t,n,i,r){if(this.Ca!==1&&e.scale(this.Ca),this.Kb!==0){var o=ce.alloc();o.yi(t,n,i,r,kr),e.rotate(this.Kb,o.x,o.y),ce.free(o)}},U.v=function(e){if(!vu(this)){e===void 0&&(e=!1),Zs(this,!0),Fc(this,!0);var t=this.panel;t===null||e||t.v()}},U.Uj=function(){vu(this)||(Zs(this,!0),Fc(this,!0))};function bl(e){if(!xl(e)){var t=e.panel;t!==null?t.v():e.Dd()&&(t=e.diagram,t!==null&&(t.De.add(e),e instanceof Wn&&e.Bd(),t.$b())),Fc(e,!0)}}U.Uk=function(){!(this.l&2048)&&(Uu(this,!0),Mu(this,!0))},U.Wu=function(){Mu(this,!0)},U.N=function(){var e=this.part;e!==null&&e.N()};function zl(e,t){var n=e.stretch,i=e.panel;return i!==null&&i.type===xn.Table?fc(e,i.Fb(e.row),i.Eb(e.column),t):i!==null&&i.type===xn.Auto&&i.Pb()===e?wa(e,bn,t):n===ir?i!==null?i.type===xn.Spot&&i.Pb()===e?wa(e,bn,t):(n=i.defaultStretch,n===ir?wa(e,mn,t):wa(e,n,t)):wa(e,mn,t):wa(e,n,t)}function fc(e,t,n,i){var r=e.stretch;if(r!==ir)return wa(e,r,i);var o=r=null;switch(t.stretch){case Oi:o=!0;break;case bn:o=!0}switch(n.stretch){case vi:r=!0;break;case bn:r=!0}return t=e.panel.defaultStretch,r===null&&(r=t===vi||t===bn),o===null&&(o=t===Oi||t===bn),r===!0&&o===!0?wa(e,bn,i):r===!0?wa(e,vi,i):o===!0?wa(e,Oi,i):wa(e,mn,i)}function wa(e,t,n){if(n)return t;if(t===mn||(n=e.desiredSize,n.w()))return mn;if(e=e.angle,!isNaN(n.width))if(e!==90&&e!==270){if(t===vi)return mn;if(t===bn)return Oi}else{if(t===Oi)return mn;if(t===bn)return vi}if(!isNaN(n.height))if(e!==90&&e!==270){if(t===Oi)return mn;if(t===bn)return vi}else{if(t===vi)return mn;if(t===bn)return Oi}return t}function nc(e,t){e.l=t?e.l|512:e.l&-513}function Ba(e){return(e.l&1024)!==0}function zd(e,t){e.l=t?e.l|1024:e.l&-1025}function Uu(e,t){e.l=t?e.l|2048:e.l&-2049}function Mu(e,t){e.l=t?e.l|4096:e.l&-4097}function vu(e){return(e.l&8192)!==0}function Zs(e,t){e.l=t?e.l|8192:e.l&-8193}function xl(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,bl(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 Wn&&(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 xn?e instanceof Wn?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 $s(e,t,n,i):r=e,r.xd=this,e=this.ih(),e!==null&&wy(e)&&pt("Cannot add a Binding to a template that has already been copied: "+r),this.localBindings===null&&(this.localBindings=new Zt),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 qa(this,e),this},U.pz=function(){return this.ih()},U.ih=function(){for(var e=this instanceof xn?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 qn),this.animationTriggers.add(e.propertyName,e),this};function Ou(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=Mt(arguments),i=o(n),ft(i)||pt('GraphObject.make invoked object builder "'+e+'", but it did not return an Object')):r=Ge.go[e]}if(i===null&&(r!=null&&r.constructor||pt("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 Z&&1<n.length){o=i;var s=n[1];(typeof s=="string"||s instanceof HTMLDivElement)&&(wi(o,s),r++)}for(;r<n.length;r++)o=n[r],o===void 0?pt("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 Lo)e.text=t;else if(e instanceof ar)e.figure=t;else if(e instanceof Hl)e.source=t;else if(e instanceof xn)t=ic.I(t),t!==null&&(e.type=t);else if(e instanceof no){var n=Qi(no,t);n!==null?e.type=n:pt("Unknown Brush type as an argument to GraphObject.make: "+t)}else e instanceof kn?(t=Qi(kn,t),t!==null&&(e.type=t)):e instanceof Nr&&(t=Qi(Nr,t),t!==null&&(e.type=t));else if(t instanceof it)e instanceof xn||pt("A GraphObject can only be added to a Panel, not to: "+e),e.add(t);else if(t instanceof Xs){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 Xs?_0(i,t):pt("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+e)}else if(t instanceof Kt)typeof e.qb=="function"&&e.qb(t);else if(t instanceof na)e.type=t;else if(t instanceof $s)e instanceof it||e instanceof Xs?e.bind(t):pt("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+e);else if(t instanceof pa)e instanceof it?e.Jv(t):pt("An AnimationTrigger can only be applied to a GraphObject, not to: "+e);else if(t instanceof Cs)e instanceof kn&&e.type===kn.o?e.figures.add(t):pt("A PathFigure can only be added to a Path Geometry, not to: "+e);else if(t instanceof Nr)e instanceof Cs?e.segments.add(t):pt("A PathSegment can only be added to a PathFigure, not to: "+e);else if(t instanceof Vo)e instanceof Z||e instanceof er?e.layout=t:pt("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 no){n=new ae;for(var r in t)i=parseFloat(r),isNaN(i)?n[r]=t[r]:e.addColorStop(i,t[r]);qa(e,n)}else if(e instanceof Xs){t.row!==void 0?(r=t.row,(r==null||r===1/0||isNaN(r)||0>r)&&pt("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)&&pt("Must specify non-negative integer column for RowColumnDefinition "+t+", not: "+r),e.isRow=!1,e.index=r),r=new ae;for(n in t)n!=="row"&&n!=="column"&&(r[n]=t[n]);qa(e,r)}else qa(e,t);else pt('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(it.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&&(ur(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&&(ur(this),this.A.Hb=e,this.g("enabledChanged",t,e))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:wl},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===wl&&(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:Ar},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:ir},set:function(e){var t=this.stretch;t!==e&&(ur(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&&(ur(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)&&tn(e,"0 <= value <= 1",it,"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 no&&e.freeze(),ur(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 no&&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 Ei)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 ce(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&&pt("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 ar&&this.qc(),this.g("desiredSize",i,e),Ba(this)&&(e=this.part,e!==null&&(Uo(this,e,"width"),Uo(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 mi(e,this.jd.height).freeze(),this.v(),this instanceof ar&&this.qc(),this.g("desiredSize",t,e),Ba(this)&&(e=this.part,e!==null&&Uo(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 mi(this.jd.width,e).freeze(),this.v(),this instanceof ar&&this.qc(),this.g("desiredSize",t,e),Ba(this)&&(e=this.part,e!==null&&Uo(this,e,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:Rs},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(),ur(this),this.A.u=e,this.v(),this.g("minSize",t,e))}},maxSize:{get:function(){return this.A!==null?this.A.o:Ya},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(),ur(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 pi(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&&ka(this),this.Ab}},oe:{get:function(){return this.l&4096&&ka(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(e){this.animationTriggers!==e&&(ur(this),this.A.hb=e)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:mn},set:function(e){this.reshapingBehavior!==e&&(ur(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()&&pt("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+e),this.Jb=e=e.J(),bl(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&&tn(e,">= 0",it,"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&&tn(e,">= 1",it,"columnSpan"),ur(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&&tn(e,">= 0",it,"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&&tn(e,">= 1",it,"rowSpan"),ur(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&&(ur(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 Wn||pt("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:Di},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&&tn(e,">= 0",it,"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&&tn(e,">= 0",it,"toMaxLinks"),this.Xc(),this.ba.Ur=e,this.g("toMaxLinks",t,e))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Di},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&&tn(e,">= 0",it,"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&&tn(e,">= 0",it,"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&&(ur(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&&(ur(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&&(ur(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&&(ur(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&&(ur(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&&(ur(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&&(ur(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&&(ur(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&&(ur(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&&(ur(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&&(ur(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&&(ur(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&&(ur(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&&(ur(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&&(ur(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&&(ur(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&&(ur(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&&(ur(this),this.A.Ch=e,this.g("contextMenu",t,e))}}}),it.prototype.trigger=it.prototype.Jv,it.prototype.findBindingPanel=it.prototype.ih,it.prototype.findTemplateBinder=it.prototype.pz,it.prototype.setProperties=it.prototype.nm,it.prototype.apply=it.prototype.apply,it.prototype.attach=it.prototype.Du,it.prototype.set=it.prototype.set,it.prototype.isEnabledObject=it.prototype.If,it.prototype.isVisibleObject=it.prototype.Ed,it.prototype.isContainedBy=it.prototype.rg,it.prototype.getNearestIntersectionPoint=it.prototype.rs,it.prototype.getLocalPoint=it.prototype.qs,it.prototype.getDocumentScale=it.prototype.Df,it.prototype.getDocumentAngle=it.prototype.li,it.prototype.getDocumentBounds=it.prototype.mi,it.prototype.getDocumentPoint=it.prototype.ga,it.prototype.intersectsRect=it.prototype.Yc,it.prototype.containedInRect=it.prototype.fh,it.prototype.containsRect=it.prototype.Re,it.prototype.containsPoint=it.prototype.ca,it.prototype.raiseChanged=it.prototype.g,it.prototype.raiseChangedEvent=it.prototype.cb,it.prototype.addCopyProperty=it.prototype.Vw;var gf=null;it.className="GraphObject",gf=new qn,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=Ou(xn,xn.Auto,{isActionable:!0,enabledChanged:function(n,i){if(n instanceof xn){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"},Ou(ar,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new oi(0,0,2.76142374915397,2.761423749153969),spot2:new oi(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 xn&&(n=i.fb("ButtonBorder"),n instanceof ar)){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 xn&&(n=i.fb("ButtonBorder"),n instanceof ar&&(n.fill=i._buttonFillNormal,n.stroke=i._buttonStrokeNormal))},t.actionDown=function(n,i){if(i.If()&&i instanceof xn&&i._buttonFillPressed!==null&&n.button===0){var r=i.fb("ButtonBorder");if(r instanceof ar){n=n.diagram;var o=n.skipsUndoManager;n.skipsUndoManager=!0;var s=i._buttonFillPressed;i._buttonFillOver=r.fill,r.fill=s,s=i._buttonStrokePressed,i._buttonStrokeOver=r.stroke,r.stroke=s,n.skipsUndoManager=o}}},t.actionUp=function(n,i){if(i.If()&&i instanceof xn&&i._buttonFillPressed!==null&&n.button===0){var r=i.fb("ButtonBorder");if(r instanceof ar){var o=n.diagram,s=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=s}}},t.actionCancel=function(n,i){if(i.If()&&i instanceof xn&&i._buttonFillPressed!==null){var r=i.fb("ButtonBorder");if(r instanceof ar){var o=n.diagram,s=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=s}}},t.actionMove=function(n,i){if(i.If()&&i instanceof xn&&i._buttonFillPressed!==null){var r=n.diagram;if(r.firstInput.button===0&&(r.currentTool.standardMouseOver(),e(n,i)&&(n=i.fb("ButtonBorder"),n instanceof ar))){var o=r.skipsUndoManager;r.skipsUndoManager=!0;var s=i._buttonFillPressed;n.fill!==s&&(n.fill=s),s=i._buttonStrokePressed,n.stroke!==s&&(n.stroke=s),r.skipsUndoManager=o}}},t}),gh("TreeExpanderButton",function(){var e=Ou("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},Ou(ar,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Bs},new $s("figure","isTreeExpanded",function(t,n){return n=n.panel,t?n._treeExpandedFigure:n._treeCollapsedFigure}).cp()),{visible:!1},new $s("visible","isTreeLeaf",function(t){return!t}).cp());return e.click=function(t,n){if(n=n.part,n instanceof Wr&&(n=n.adornedPart),n instanceof Wn){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=Ou("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},Ou(ar,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Bs},new $s("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 Wr&&(n=n.adornedPart),n instanceof er){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 Ou(Wr,xn.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new ce(0,3),shadowBlur:5},Ou(ar,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new oi(0,0,4,6),spot2:new oi(1,1,-4,-4)}))}),gh("ContextMenu",function(){return Ou(Wr,xn.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new ce(0,3),shadowBlur:5},new $s("background","",function(e){return e.adornedPart!==null&&e.placeholder!==null?null:"#F5F5F5"}))}),gh("ContextMenuButton",function(){var e=Ou("Button");e.stretch=vi;var t=e.fb("ButtonBorder");return t instanceof ar&&(t.figure="Rectangle",t.strokeWidth=0,t.spot1=new oi(0,0,2,3),t.spot2=new oi(1,1,-2,-2)),e}),gh("PanelExpanderButton",function(e){var t=x0(e,"COLLAPSIBLE"),n=Ou("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},Ou(ar,{name:"ButtonIcon",strokeWidth:2},new $s("geometryString","visible",function(i){return i?n._buttonExpandedFigure:n._buttonCollapsedFigure}).cp(t)));return e=n.fb("ButtonBorder"),e instanceof ar&&(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 s=r.ih();s===null&&(s=r.part),s!==null&&(r=s.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=Ou("Button",{desiredSize:new mi(14,14)},Ou(ar,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:bn,geometryStretch:li,visible:!1},t!==""?new $s("visible",t).Kx():[])),e.click=function(n,i){if(i instanceof xn){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=Ou("CheckBoxButton",e,{name:"Button",isActionable:!1,margin:new pi(0,1,0,0)});var t=Ou(xn,"Horizontal",e,{isActionable:!0,cursor:e.cursor,margin:new pi(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}),it.None=mn=new Kt(it,"None",0),it.Default=ir=new Kt(it,"Default",0),it.Vertical=Oi=new Kt(it,"Vertical",4),it.Horizontal=vi=new Kt(it,"Horizontal",5),it.Fill=bn=new Kt(it,"Fill",3),it.Uniform=li=new Kt(it,"Uniform",1),it.UniformToFill=Ir=new Kt(it,"UniformToFill",2),it.FlipVertical=dr=new Kt(it,"FlipVertical",1),it.FlipHorizontal=Br=new Kt(it,"FlipHorizontal",2),it.FlipBoth=ho=new Kt(it,"FlipBoth",3),it.make=Ou,it.getBuilders=function(){var e=new qn,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},it.defineBuilder=gh,it.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 it))return t&&i.set(t),i;pt('GraphObject.build invoked object builder "'+e+'", but it did not return an Object')},it.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=Rs,this.o=Ya,this.hg=ir,this.ob=this.Bi=1,this.Pf=mn,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=Ar,this.rr=wl,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=Ur,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,s=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]=s,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?Ge.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 tu(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),ft(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 tu(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=Mo++,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,s){e.Nj===void 0?gp(e,t,n,i,r,o,s):e.Nj.setAttribute("transform","matrix("+t+", "+n+", "+i+", "+r+", "+o+", "+s+")")}U=tu.prototype,U.arc=function(e,t,n,i,r,o,s,l){var u=2*Math.PI,f=u-1e-6,p=n*Math.cos(i),x=n*Math.sin(i),A=e+p,L=t+x,B=o?0:1;i=o?i-r:r-i,(1e-6<Math.abs(s-A)||1e-6<Math.abs(l-L))&&this.path.push(["L",A,+L]),0>i&&(i=i%u+u),i>f?(this.path.push(["A",n,n,0,1,B,e-p,t-x]),this.path.push(["A",n,n,0,1,B,A,L])):1e-6<i&&this.path.push(["A",n,n,0,+(i>=Math.PI),B,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"+Mo++,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 s=new Hd("radial");return s.x1=e,s.y1=t,s.r1=n,s.x2=i,s.y2=r,s.r2=o,s};function sy(e,t,n,i,r,o,s,l,u){i=l/i,r=u/r,o===0&&s===0||e.rb.translate(o,s),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,s,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,s=n,l=i=p,u=r=e),i=i||0,r=r||0,l=l||0,u=u||0,sy(this,t,n,i,r,o||0,s||0,l,u),o={x:0,y:0,width:p||i,height:e||r,href:f},Ye.$(i,l)&&Ye.$(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 ay(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"+Mo++,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=[],s=0;s<t;s++){var l=r[s],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=Mt(e[r]),s=[o.shift()];if(s[0]==="A")s.push(o.shift()+","+o.shift(),o.shift(),o.shift()+","+o.shift(),o.shift()+","+o.shift());else for(;o.length;)s.push(o.shift()+","+o.shift());i.push(s.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,s){var l=new vd;l.ha=[t,n,i,r,o,s],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(){},tu.prototype.rotate=function(e){this.rb.rotate(57.2958*e,0,0)},tu.prototype.getImageData=function(){return null},tu.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()))}tu.prototype.Hs=function(e){e.svg!==null&&e.svg.parentNode===this.Nj&&e.svg.remove()},tu.className="SVGContext",Z.prototype.Cs=function(e){this.pj.contains("SVG")||this.bs("SVG",new kc(this,Ge.document));var t=new kc(this,Ge.document,!0);e===void 0&&(e=new ae);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)},Z.prototype.makeSvg=Z.prototype.Cs,Z.prototype.av=function(e){return this.Cs(e)},Z.prototype.makeSVG=Z.prototype.av;function Hu(e,t,n,i){this.ownerDocument=t=t===void 0?Ge.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}Hu.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},Hu.prototype.toDataURL=function(e,t){return this.Oa.toDataURL(e,t)},Hu.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Hu.prototype.focus=function(){this.Oa.focus()},Hu.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},ht.Object.defineProperties(Hu.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}}}),Hu.className="CanvasSurface";function yd(e,t,n){this.Z=e.getContext?e.getContext("2d",t):null,this.Z===null&&pt("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 or,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,s,l,u){i===void 0?this.Z.drawImage(e,t,n):this.Z.drawImage(e,t,n,i,r,o,s,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 s=this.El,l=s.m11*e+s.m21*t;e=s.m12*e+s.m22*t,t=s.m11*n+s.m21*i,n=s.m12*n+s.m22*i,s.dx=s.m11*r+s.m21*o+s.dx,s.dy=s.m12*r+s.m22*o+s.dy,s.m11=l,s.m12=e,s.m21=t,s.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 no&&e.type===Lu){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 no(e,t){Sf||(bg(),Sf=!0),Yi(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=Ta,this.Lk=Ra):this.Lk=e===Lu?this.Qd=kr:this.Qd=Di,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,t&&Object.assign(this,t)}no.prototype.copy=function(){var e=new no;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=no.prototype,U.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},U.ka=function(){return Object.isFrozen(this)&&pt("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},U.qb=function(e){e.classType===no&&(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===Lu?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&&gn(this),(typeof e!="number"||!isFinite(e)||1<e||0>e)&&tn(e,"0 <= loc <= 1",no,"addColorStop:loc"),this.we===null&&(this.we=new qn),this.we.add(e,t),this.na===vh&&(this.type=eh),this.xe=null,this},U.Vz=function(e,t){if(this._isFrozen&&gn(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===Lu)&&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&&gn(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===Lu)&&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=Fo.j;var i=Fo.u,r=Fo.o,o=Fo.F;return qc(t),n===void 0&&(n=.5),"rgba("+Math.round((Fo.j-e)*n+e)+", "+Math.round((Fo.u-i)*n+i)+", "+Math.round((Fo.o-r)*n+r)+", "+Math.round((Fo.F-o)*n+o)+")"}U.Gx=function(){if(this.type===vh)return yf(this.color);if((this.type===eh||this.type===Lu)&&this.colorStops!==null){var e=this.colorStops;if(this.type===Lu)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 s=t.key,l=Math.abs(.5-t.key);r>o&&l<r?(n=s,r=l):o>=r&&l<o&&(i=s,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 no?e.Gx():(qc(e),128>(299*Fo.j+587*Fo.u+114*Fo.o)/1e3):!1}function bf(e,t){switch(t){case wf:t=100*gg(Fo.j);var n=100*gg(Fo.u),i=100*gg(Fo.o);return Sl.j=.4124564*t+.3575761*n+.1804375*i,Sl.u=.2126729*t+.7151522*n+.072175*i,Sl.o=.0193339*t+.119192*n+.9503041*i,Sl.F=Fo.F,t=yg(Sl.j/xf[0]),n=yg(Sl.u/xf[1]),i=yg(Sl.o/xf[2]),_c.j=116*n-16,_c.u=500*(t-n),_c.o=200*(n-i),_c.F=Sl.F,_c.j=Math.min(100,Math.max(0,_c.j+100*e)),e=(_c.j+16)/116,t=e-_c.o/200,Sl.j=xf[0]*dy(_c.u/500+e),Sl.u=xf[1]*(_c.j>w0*xg?Math.pow(e,3):_c.j/w0),Sl.o=xf[2]*dy(t),Sl.F=_c.F,e=-.969266*Sl.j+1.8760108*Sl.u+.041556*Sl.o,t=.0556434*Sl.j+-.2040259*Sl.u+1.0572252*Sl.o,Fo.j=255*vg((3.2404542*Sl.j+-1.5371385*Sl.u+-.4985314*Sl.o)/100),Fo.u=255*vg(e/100),Fo.o=255*vg(t/100),Fo.F=Sl.F,Fo.j=Math.round(Fo.j),255<Fo.j?Fo.j=255:0>Fo.j&&(Fo.j=0),Fo.u=Math.round(Fo.u),255<Fo.u?Fo.u=255:0>Fo.u&&(Fo.u=0),Fo.o=Math.round(Fo.o),255<Fo.o?Fo.o=255:0>Fo.o&&(Fo.o=0),"rgba("+Fo.j+", "+Fo.u+", "+Fo.o+", "+Fo.F+")";case fy:return mg(),yu.o=Math.min(100,Math.max(0,yu.o+100*e)),"hsla("+yu.j+", "+yu.u+"%, "+yu.o+"%, "+yu.F+")";default:pt("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,Fo.j=e[0],Fo.u=e[1],Fo.o=e[2],Fo.F=e[3]/255):(t.fillStyle="#FFFFFF",t.fillStyle=e,Fo.j=0,Fo.u=0,Fo.o=0,Fo.F=1)}}function mg(){var e=Fo.j/255,t=Fo.u/255,n=Fo.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 s=e=0;else{switch(i){case e:s=(t-n)/o%6;break;case t:s=(n-e)/o+2;break;case n:s=(e-t)/o+4}s*=60,0>s&&(s+=360),e=o/(1-Math.abs(2*r-1))}yu.j=Math.round(s),yu.u=Math.round(100*e),yu.o=Math.round(100*r),yu.F=Fo.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 no||pt("Value for "+t+" must be a color string or a Brush, not "+e))}function bg(){Sg=xs?new Hu(null,void 0,{willReadFrequently:!0}).context:null}ht.Object.defineProperties(no.prototype,{type:{get:function(){return this.na},set:function(e){this._isFrozen&&gn(this,e),this.na=e,this.start.Mc()&&(e===eh?this.start=Ta:e===Lu&&(this.start=kr)),this.end.Mc()&&(e===eh?this.end=Ra:e===Lu&&(this.end=kr)),this.xe=null}},color:{get:function(){return this.xk},set:function(e){this._isFrozen&&gn(this,e),this.xk=e,this.xe=null}},start:{get:function(){return this.Qd},set:function(e){this._isFrozen&&gn(this,e),this.Qd=e.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(e){this._isFrozen&&gn(this,e),this.Lk=e.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(e){this._isFrozen&&gn(this,e),0>e&&tn(e,">= zero",no,"startRadius"),this.Gr=e,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(e){this._isFrozen&&gn(this,e),0>e&&tn(e,">= zero",no,"endRadius"),this.Xp=e,this.xe=null}},colorStops:{get:function(){return this.we},set:function(e){this._isFrozen&&gn(this,e),this.we=e,this.xe=null}},pattern:{get:function(){return this.cr},set:function(e){this._isFrozen&&gn(this,e),this.cr=e,this.xe=null}}}),no.prototype.isDark=no.prototype.Gx,no.prototype.darkenBy=no.prototype.Wy,no.prototype.lightenBy=no.prototype.Vz,no.prototype.addColorStop=no.prototype.addColorStop;var xg=216/24389,w0=24389/27,xf=[95.047,100,108.883],Sg=null,Fo=new vp,yu=new vp,Sl=new vp,_c=new vp,Sf=!1;no.className="Brush";var vh;no.Solid=vh=new Kt(no,"Solid",0);var eh;no.Linear=eh=new Kt(no,"Linear",1);var Lu;no.Radial=Lu=new Kt(no,"Radial",2);var Ef;no.Pattern=Ef=new Kt(no,"Pattern",4);var wf;no.Lab=wf=new Kt(no,"Lab",5);var fy;no.HSL=fy=new Kt(no,"HSL",6),no.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},no.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)},no.lighten=function(e){return cy(e)},no.lightenBy=cy,no.darken=function(e){return hy(e)},no.darkenBy=hy,no.mix=pg,no.isDark=yf;function na(){this.xa="Base"}na.prototype.measure=function(){},na.prototype.Yz=function(e,t,n,i,r){e.measure(t,n,i,r)},na.prototype.arrange=function(){},na.prototype.Ly=function(e,t,n,i,r,o){e.arrange(t,n,i,r,o)},na.prototype.iA=function(e){e.Uj()},na.prototype.gc=function(){},ht.Object.defineProperties(na.prototype,{name:{get:function(){return this.xa},set:function(e){this.xa=e}},classType:{get:function(){return xn}}}),na.prototype.remeasureObject=na.prototype.iA,na.prototype.arrangeElement=na.prototype.Ly,na.prototype.measureElement=na.prototype.Yz,na.className="PanelLayout";function C0(){this.xa="Base"}di(C0,na),C0.prototype.measure=function(e,t,n,i,r,o,s){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,s);var A=f.measuredBounds;x=Math.max(A.width+x,0),p=Math.max(A.height+p,0),A=f.position.x;var L=f.position.y;isFinite(A)||(A=0),isFinite(L)||(L=0),f instanceof ar&&f.isGeometryPositioned&&(f=f.strokeWidth/2,A-=f,L-=f),zr(r,A,L,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],s=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 ar&&o.isGeometryPositioned){var p=o.strokeWidth/2;u-=p,f-=p}o.visible&&o.arrange(u+l.left,f+l.top,s.width,s.height)}};function T0(){this.xa="Base"}di(T0,na),T0.prototype.measure=function(e,t,n,i,r,o,s){var l=i.length;t=Gt(),o=th(e);for(var u=0;u<l;u++){var f=i[u];if(f.visible||f===o){var p=zl(f,!1);if(p!==mn&&p!==vi)t.push(f);else{f.measure(1/0,n,0,s),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,s),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));dn(t)},T0.prototype.arrange=function(e,t,n){for(var i=t.length,r=e.padding,o=r.top,s=e.isOpposite,l=s?n.width:r.left,u=0;u<i;u++){var f=o,p=t[u];if(p.visible){var x=p.measuredBounds,A=p.margin,L=A.top+A.bottom,B=o+r.bottom,V=x.height,ye=zl(p,!1);(isNaN(p.desiredSize.height)&&ye===bn||ye===Oi)&&(V=Math.max(n.height-L-B,0)),L=V+L+B,B=p.alignment,B.Xb()&&(B=e.defaultAlignment),B.sb()||(B=kr),s&&(l-=x.width+A.left+A.right),p.arrange(l+B.offsetX+A.left,f+B.offsetY+A.top+(n.height*B.y-L*B.y),x.width,V),s||(l+=x.width+A.left+A.right)}}};function N0(){this.xa="Base"}di(N0,na),N0.prototype.measure=function(e,t,n,i,r,o){var s=i.length;n=Gt();for(var l=th(e),u=0;u<s;u++){var f=i[u];if(f.visible||f===l){var p=zl(f,!1);if(p!==mn&&p!==Oi)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,Ws(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,s=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+s,0)),r.height+=f);dn(n)}},N0.prototype.arrange=function(e,t,n){for(var i=t.length,r=e.padding,o=r.left,s=e.isOpposite,l=s?n.height:r.top,u=0;u<i;u++){var f=o,p=t[u];if(p.visible){var x=p.measuredBounds,A=p.margin,L=A.left+A.right,B=o+r.right,V=x.width,ye=zl(p,!1);(isNaN(p.desiredSize.width)&&ye===bn||ye===vi)&&(V=Math.max(n.width-L-B,0)),L=V+L+B,B=p.alignment,B.Xb()&&(B=e.defaultAlignment),B.sb()||(B=kr),s&&(l-=x.height+A.bottom+A.top),p.arrange(f+B.offsetX+A.left+(n.width*B.x-L*B.x),l+B.offsetY+A.top,V,x.height),s||(l+=x.height+A.bottom+A.top)}}};function A0(){this.xa="Base"}di(A0,na),A0.prototype.measure=function(e,t,n,i,r,o,s){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,s);var A=u.measuredBounds;o=A.width,s=A.height;var L=Math.max(o+p,0),B=Math.max(s+x,0),V=e.isClipping,ye=Ht.allocAt(-f.left,-f.top,L,B),oe=Ht.allocAt(0,0,o,s);Eg(u,oe,!0),o=oe.width,s=oe.height;for(var Me=!0,Be=th(e),je=0;je<l;je++){var tt=i[je];A=t;var St=n;if(tt!==u&&(tt.visible||tt===Be)){f=tt.margin;var $n=f.left,ii=f.top;switch(L=f.right+f.left,B=f.top+f.bottom,f=zl(tt,!1),f){case bn:A=o,St=s,ii=$n=B=L=0;break;case vi:A=o,$n=L=0;break;case Oi:St=s,ii=B=0}tt.measure(A,St,0,0),A=tt.measuredBounds,L=Math.max(A.width+L,0),B=Math.max(A.height+B,0),f=tt.alignment,f.Xb()&&(f=e.defaultAlignment),f.sb()||(f=kr);var Qn=tt.alignmentFocus;if(Qn.Xb()&&(Qn=kr),St=null,tt instanceof xn&&tt.$e!==""&&(St=tt.fb(tt.$e),St===tt&&(St=null)),$n=oe.x-$n,ii=oe.y-ii,St!==null){for(tt.arrange(0,0,A.width,A.height),A=St.actualBounds,A=ce.allocAt(A.x+(Qn.x*A.width-Qn.offsetX),A.y+(Qn.y*A.height-Qn.offsetY)),St=St.panel;St!==tt;)St.transform.Ga(A),St=St.panel;$n+=f.x*o+f.offsetX-A.x,ii+=f.y*s+f.offsetY-A.y,ce.free(A)}else $n+=f.x*o+f.offsetX-(Qn.x*A.width+Qn.offsetX),ii+=f.y*s+f.offsetY-(Qn.y*A.height+Qn.offsetY);Me?(Me=!1,r.h($n,ii,L,B)):zr(r,$n,ii,L,B)}}switch(Me?r.assign(ye):V?r.Uu(oe.x,oe.y,oe.width,oe.height):zr(r,ye.x,ye.y,ye.width,ye.height),Ht.free(ye),Ht.free(oe),f=u.stretch,f===ir&&(f=zl(u,!1)),f){case mn:return;case bn:if(!isFinite(t)&&!isFinite(n))return;break;case vi:if(!isFinite(t))return;break;case Oi:if(!isFinite(n))return}for(A=u.measuredBounds,o=A.width,s=A.height,L=Math.max(o+p,0),B=Math.max(s+x,0),f=u.margin,oe=Ht.allocAt(-f.left,-f.top,L,B),Eg(u,oe,!0),o=oe.width,s=oe.height,t=0;t<l;t++)n=i[t],n===u||!n.visible&&n!==Be||(f=n.margin,L=f.right+f.left,B=f.top+f.bottom,A=n.measuredBounds,L=Math.max(A.width+L,0),B=Math.max(A.height+B,0),p=n.alignment,p.Xb()&&(p=e.defaultAlignment),p.sb()||(p=kr),n=n.alignmentFocus,n.Xb()&&(n=kr),Me?(Me=!1,r.h(p.x*o+p.offsetX-(n.x*A.width+n.offsetX)-f.left,p.y*s+p.offsetY-(n.y*A.height+n.offsetY)-f.top,L,B)):zr(r,p.x*o+p.offsetX-(n.x*A.width+n.offsetX)-f.left,p.y*s+p.offsetY-(n.y*A.height+n.offsetY)-f.top,L,B));Me?r.assign(ye):V?r.Uu(oe.x,oe.y,oe.width,oe.height):zr(r,ye.x,ye.y,ye.width,ye.height),Ht.free(oe)},A0.prototype.arrange=function(e,t,n){var i=t.length,r=e.Pb(),o=r.measuredBounds,s=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,s,l),s=Ht.allocAt(0,0,s,l),Eg(r,s,!1),l=0;l<i;l++){var x=t[l];if(x!==r){f=x.measuredBounds;var A=f.width,L=f.height;p=x.alignment,p.Xb()&&(p=e.defaultAlignment),p.sb()||(p=kr);var B=x.alignmentFocus;if(B.Xb()&&(B=kr),f=null,x instanceof xn&&x.$e!==""&&(f=x.fb(x.$e),f===x&&(f=null)),f!==null){var V=f.actualBounds;for(B=ce.allocAt(V.x+(B.x*V.width-B.offsetX),V.y+(B.y*V.height-B.offsetY)),f=f.panel;f!==x;)f.transform.Ga(B),f=f.panel;f=p.x*s.width+p.offsetX-B.x,p=p.y*s.height+p.offsetY-B.y,ce.free(B)}else f=p.x*s.width+p.offsetX-(B.x*A+B.offsetX),p=p.y*s.height+p.offsetY-(B.y*L+B.offsetY);f+=s.x-n.x,p+=s.y-n.y,x.visible&&x.arrange(o+f,u+p,A,L)}}Ht.free(s)};function Eg(e,t,n){var i=null;if(e instanceof xn&&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"}di(k0,na),k0.prototype.measure=function(e,t,n,i,r,o,s){var l=i.length,u=e.Pb(),f=u.margin,p=t,x=n,A=f.right+f.left,L=f.top+f.bottom;u.measure(t,n,o,s),f=u.measuredBounds;var B=0,V=null;u instanceof ar&&(V=u,B=V.strokeWidth*V.scale);var ye=Math.max(f.width+A,0);f=Math.max(f.height+L,0);var oe=Ng(u),Me=oe.x*ye+oe.offsetX;oe=oe.y*f+oe.offsetY;var Be=Ag(u),je=Be.x*ye+Be.offsetX;for(Be=Be.y*f+Be.offsetY,isFinite(t)&&(p=Math.max(Math.abs(Me-je)-B,0)),isFinite(n)&&(x=Math.max(Math.abs(oe-Be)-B,0)),B=mi.alloc(),B.h(0,0),e=th(e),Be=0;Be<l;Be++)oe=i[Be],oe===u||!oe.visible&&oe!==e||(f=oe.margin,ye=f.right+f.left,Me=f.top+f.bottom,oe.measure(p,x,0,0),f=oe.measuredBounds,ye=Math.max(f.width+ye,0),f=Math.max(f.height+Me,0),B.h(Math.max(ye,B.width),Math.max(f,B.height)));if(l===1)r.width=ye,r.height=f,mi.free(B);else{switch(oe=Ng(u),Be=Ag(u),l=i=0,Be.x!==oe.x&&Be.y!==oe.y&&(i=B.width/Math.abs(Be.x-oe.x),l=B.height/Math.abs(Be.y-oe.y)),mi.free(B),B=0,V!==null&&(B=V.strokeWidth*V.scale,Rg(V)===li&&(i=l=Math.max(i,l))),i+=Math.abs(oe.offsetX)+Math.abs(Be.offsetX)+B,l+=Math.abs(oe.offsetY)+Math.abs(Be.offsetY)+B,V=u.stretch,V===ir&&(V=zl(u,!1)),V){case mn:s=o=0;break;case bn:isFinite(t)&&(i=t),isFinite(n)&&(l=n);break;case vi:isFinite(t)&&(i=t),s=0;break;case Oi:o=0,isFinite(n)&&(l=n)}u.Uj(),u.measure(i,l,o,s),r.width=u.measuredBounds.width+A,r.height=u.measuredBounds.height+L}},k0.prototype.arrange=function(e,t){var n=t.length,i=e.Pb(),r=i.measuredBounds,o=Ht.alloc();o.h(0,0,1,1);var s=i.margin,l=s.left;s=s.top;var u=e.padding,f=u.left;u=u.top,i.arrange(f+l,u+s,r.width,r.height);var p=Ng(i),x=Ag(i),A=p.y*r.height+p.offsetY,L=x.x*r.width+x.offsetX;for(x=x.y*r.height+x.offsetY,o.x=p.x*r.width+p.offsetX,o.y=A,zr(o,L,x,0,0),o.x+=l+f,o.y+=s+u,r=0;r<n;r++)l=t[r],l!==i&&(f=l.measuredBounds,s=l.margin,u=Math.max(f.width+s.right+s.left,0),p=Math.max(f.height+s.top+s.bottom,0),A=l.alignment,A.Xb()&&(A=e.defaultAlignment),A.sb()||(A=kr),u=o.width*A.x+A.offsetX-u*A.x+s.left+o.x,s=o.height*A.y+A.offsetY-p*A.y+s.top+o.y,l.visible&&(Co(o.x,o.y,o.width,o.height,u,s,f.width,f.height)?l.arrange(u,s,f.width,f.height):l.arrange(u,s,f.width,f.height,new Ht(o.x,o.y,o.width,o.height))));Ht.free(o)};function I0(){this.xa="Base",this.name="Table"}di(I0,na),I0.prototype.measure=function(e,t,n,i,r){for(var o=i.length,s=Gt(),l=Gt(),u=0;u<o;u++){var f=i[u],p=f instanceof xn?f:null;if(p!==null&&yh(p)&&f.visible){l.push(p);for(var x=p.O.s,A=x.length,L=0;L<A;L++){var B=x[L];p.type===xn.TableRow?B.row=f.row:p.type===xn.TableColumn&&(B.column=f.column),s.push(B)}}else s.push(f)}o=s.length,o===0&&(e.Fb(0),e.Eb(0));for(var V=[],ye=0;ye<o;ye++){var oe=s[ye];oe.visible&&(Zs(oe,!0),Fc(oe,!0),V[oe.row]||(V[oe.row]=[]),V[oe.row][oe.column]||(V[oe.row][oe.column]=[]),V[oe.row][oe.column].push(oe))}dn(s);var Me=Gt(),Be=Gt(),je=Gt(),tt={count:0},St={count:0},$n=t,ii=n,Qn=e.rowDefs,An=e.colDefs,an=null;o=Qn.length;for(var Ji=0;Ji<o;Ji++)an=Qn[Ji],an!==void 0&&(an.actual=0);o=An.length;for(var Ui=0;Ui<o;Ui++)an=An[Ui],an!==void 0&&(an.actual=0);for(var Yr=V.length,Io=0,la=0;la<Yr;la++)V[la]&&(Io=Math.max(Io,V[la].length));var va=Math.min(e.topIndex,Yr-1),hl=Math.min(e.leftIndex,Io-1),ua=0;Yr=V.length;for(var kh=th(e),js=0;js<Yr;js++)if(V[js]){Io=V[js].length;var yc=e.Fb(js);yc.actual=0;for(var dl=yc.oc=0;dl<Io;dl++)if(V[js][dl]){var Ih=e.Eb(dl);Me[dl]===void 0&&(Ih.actual=0,Ih.oc=0,Me[dl]=!0);for(var Su=V[js][dl],Wu=Su.length,ru=0;ru<Wu;ru++){var Xl=Su[ru];if(Xl.visible||Xl===kh){var nd=1<Xl.rowSpan||1<Xl.columnSpan;nd&&(js<va||dl<hl||Be.push(Xl));var bc=Xl.margin,Vf=bc.right+bc.left,ou=bc.top+bc.bottom,fl=fc(Xl,yc,Ih,!1),r0=Xl.desiredSize,ef=!isNaN(r0.height),Oc=!isNaN(r0.width)&&ef;if(nd||fl===mn||Oc||js<va||dl<hl||(tt[dl]!==void 0||fl!==bn&&fl!==vi||(tt[dl]=-1,tt.count++),St[js]!==void 0||fl!==bn&&fl!==Oi||(St[js]=-1,St.count++),je.push(Xl)),Xl.measure(1/0,1/0,0,0),!(js<va||dl<hl)){var Ql=Xl.measuredBounds,Ad=Math.max(Ql.width+Vf,0),su=Math.max(Ql.height+ou,0);if(Xl.rowSpan===1&&(fl===mn||fl===vi)){an=e.Fb(js);var id=an.Wc();ua=Math.max(su-an.actual,0),ua+id>ii&&(ua=Math.max(ii-id,0));var Jm=an.oa===0;an.oc=an.oc+ua,an.actual=an.oa+ua,ii=Math.max(ii-(ua+(Jm?id:0)),0)}if(Xl.columnSpan===1&&(fl===mn||fl===Oi)){an=e.Eb(dl);var o0=an.Wc();ua=Math.max(Ad-an.actual,0),ua+o0>$n&&(ua=Math.max($n-o0,0));var Zv=an.oa===0;an.oc=an.oc+ua,an.actual=an.oa+ua,$n=Math.max($n-(ua+(Zv?o0:0)),0)}nd&&Xl.Uj()}}}}}dn(Me);var Kc=0,rh=0;o=e.columnCount;for(var tf=0;tf<o;tf++){var rd=An[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()))}$n=Math.max(t-Kc,0);var Yc=ii=Math.max(n-rh,0),Mh=$n;o=je.length;for(var Jl=0;Jl<o;Jl++){var Lc=je[Jl],qm=e.Fb(Lc.row),oh=e.Eb(Lc.column),Yf=Lc.measuredBounds,xc=Lc.margin,kd=xc.right+xc.left,Rc=xc.top+xc.bottom;tt[Lc.column]=oh.oc===0&&tt[Lc.column]!==void 0?Math.max(Yf.width+kd,tt[Lc.column]):null,St[Lc.row]=qm.oc===0&&St[Lc.row]!==void 0?Math.max(Yf.height+Rc,St[Lc.row]):null}var nf=0,Zf=0,uc;for(uc in St)uc!=="count"&&(nf+=St[uc]);for(uc in tt)uc!=="count"&&(Zf+=tt[uc]);for(var Ma=mi.alloc(),s0=0;s0<o;s0++){var kl=je[s0];if(kl.visible||kl===kh){var Gs=e.Fb(kl.row),Il=e.Eb(kl.column),sh=0;isFinite(Il.width)?sh=Il.width:(isFinite($n)&&tt[kl.column]!==null?Zf===0?sh=Il.actual+$n:sh=tt[kl.column]/Zf*Mh:tt[kl.column]!==null?sh=$n:sh=Il.actual||$n,sh=Math.max(0,sh-Il.Wc()));var Oh=0;switch(isFinite(Gs.height)?Oh=Gs.height:(isFinite(ii)&&St[kl.row]!==null?nf===0?Oh=Gs.actual+ii:Oh=St[kl.row]/nf*Yc:St[kl.row]!==null?Oh=ii:Oh=Gs.actual||ii,Oh=Math.max(0,Oh-Gs.Wc())),Ma.h(Math.max(Il.minimum,Math.min(sh,Il.maximum)),Math.max(Gs.minimum,Math.min(Oh,Gs.maximum))),fl=fc(kl,Gs,Il,!1),fl){case vi:Ma.height=Math.max(Ma.height,Gs.actual+ii);break;case Oi:Ma.width=Math.max(Ma.width,Il.actual+$n)}var Id=kl.margin,Xv=Id.right+Id.left,eg=Id.top+Id.bottom;kl.Uj(),kl.measure(Ma.width,Ma.height,Il.minimum,Gs.minimum);var Xf=kl.measuredBounds,Md=Math.max(Xf.width+Xv,0),rf=Math.max(Xf.height+eg,0);isFinite($n)&&(Md=Math.min(Md,Ma.width)),isFinite(ii)&&(rf=Math.min(rf,Ma.height));var ql=0;ql=Gs.actual,Gs.actual=Math.max(Gs.actual,rf),Gs.oc=Math.max(Gs.oc,rf),ua=Gs.actual-ql,ii=Math.max(ii-ua,0),St[kl.row]===null&&(Yc=Math.max(Yc-ua,0)),ql=Il.actual,Il.actual=Math.max(Il.actual,Md),Il.oc=Math.max(Il.oc,Md),ua=Il.actual-ql,$n=Math.max($n-ua,0),tt[kl.column]===null&&(Mh=Math.max(Mh-ua,0))}}dn(je);var ah=mi.alloc(),Sc=Gt(),Bu=Gt();if(o=Be.length,o!==0){for(var sd=0;sd<Yr;sd++)if(V[sd]){Io=V[sd].length;var Qf=e.Fb(sd);Sc[sd]=Qf.actual;for(var ad=0;ad<Io;ad++)if(V[sd][ad]){var tg=e.Eb(ad);Bu[ad]=tg.actual}}}for(var Jf=0;Jf<o;Jf++){var Os=Be[Jf];if(Os.visible||Os===kh){var cc=e.Fb(Os.row),Vu=e.Eb(Os.column);switch(Ma.h(Math.max(Vu.minimum,Math.min(t,Vu.maximum)),Math.max(cc.minimum,Math.min(n,cc.maximum))),fl=fc(Os,cc,Vu,!1),fl){case bn:Bu[Vu.index]!==0&&(Ma.width=Math.min(Ma.width,Bu[Vu.index])),Sc[cc.index]!==0&&(Ma.height=Math.min(Ma.height,Sc[cc.index]));break;case vi:Bu[Vu.index]!==0&&(Ma.width=Math.min(Ma.width,Bu[Vu.index]));break;case Oi:Sc[cc.index]!==0&&(Ma.height=Math.min(Ma.height,Sc[cc.index]))}isFinite(Vu.width)&&(Ma.width=Vu.width),isFinite(cc.height)&&(Ma.height=cc.height),ah.h(0,0);for(var ng=Vu.minimum,au=cc.minimum,Lh=1;Lh<Os.rowSpan&&!(Os.row+Lh>=e.rowCount);Lh++)an=e.Fb(Os.row+Lh),ua=0,ua=fl===bn||fl===Oi?Math.max(an.minimum,Sc[Os.row+Lh]===0?an.maximum:Math.min(Sc[Os.row+Lh],an.maximum)):Math.max(an.minimum,isNaN(an.Hc)?an.maximum:Math.min(an.Hc,an.maximum)),ah.height+=ua,au+=an.minimum;for(var Ku=1;Ku<Os.columnSpan&&!(Os.column+Ku>=e.columnCount);Ku++)an=e.Eb(Os.column+Ku),ua=0,ua=fl===bn||fl===vi?Math.max(an.minimum,Bu[Os.column+Ku]===0?an.maximum:Math.min(Bu[Os.column+Ku],an.maximum)):Math.max(an.minimum,isNaN(an.Hc)?an.maximum:Math.min(an.Hc,an.maximum)),ah.width+=ua,ng+=an.minimum;Ma.width+=ah.width,Ma.height+=ah.height;var qf=Os.margin,ld=qf.right+qf.left,a0=qf.top+qf.bottom;Os.measure(Ma.width,Ma.height,ng,au);for(var ep=Os.measuredBounds,Dc=Math.max(ep.width+ld,0),Od=Math.max(ep.height+a0,0),ud=0,tp=0;tp<Os.rowSpan&&!(Os.row+tp>=e.rowCount);tp++)an=e.Fb(Os.row+tp),ud+=an.total||0;if(ud<Od){var Rh=Od-ud,Zc=Od-ud;if(Os.spanAllocation!==null)for(var Dh=Os.spanAllocation,lh=0;lh<Os.rowSpan&&!(0>=Rh)&&!(Os.row+lh>=e.rowCount);lh++){an=e.Fb(Os.row+lh);var Ph=an.oa||0,Ld=Dh(Os,an,Zc);an.actual=Math.min(an.maximum,Ph+Ld),an.oa!==Ph&&(Rh-=an.oa-Ph)}for(;0<Rh;){var Ec=an.oa||0;if(isNaN(an.height)&&an.maximum>Ec&&(an.actual=Math.min(an.maximum,Ec+Rh),an.oa!==Ec&&(Rh-=an.oa-Ec)),an.index===0)break;an=e.Fb(an.index-1)}}for(var of=0,Fh=0;Fh<Os.columnSpan&&!(Os.column+Fh>=e.columnCount);Fh++)an=e.Eb(Os.column+Fh),of+=an.total||0;if(of<Dc){var sf=Dc-of,Qv=Dc-of;if(Os.spanAllocation!==null)for(var uh=Os.spanAllocation,Rd=0;Rd<Os.columnSpan&&!(0>=sf)&&!(Os.column+Rd>=e.columnCount);Rd++){an=e.Eb(Os.column+Rd);var l0=an.oa||0,Jv=uh(Os,an,Qv);an.actual=Math.min(an.maximum,l0+Jv),an.oa!==l0&&(sf-=an.oa-l0)}for(;0<sf;){var ig=an.oa||0;if(isNaN(an.width)&&an.maximum>ig&&(an.actual=Math.min(an.maximum,ig+sf),an.oa!==ig&&(sf-=an.oa-ig)),an.index===0)break;an=e.Eb(an.index-1)}}}}dn(Be),mi.free(ah),mi.free(Ma),Sc!==void 0&&dn(Sc),Bu!==void 0&&dn(Bu);var af=0,lf=0,rg=e.desiredSize,Tb=e.maxSize;fl=zl(e,!0);var u0=rh=Kc=0,c0=0;o=e.columnCount;for(var og=0;og<o;og++)An[og]!==void 0&&(an=e.Eb(og),isFinite(an.width)?(u0+=an.width,u0+=an.Wc()):z0(an)===Sp?(u0+=an.oa,u0+=an.Wc()):an.oa!==0&&(Kc+=an.oa,Kc+=an.Wc()));isFinite(rg.width)?af=Math.min(rg.width,Tb.width):af=fl!==mn&&isFinite(t)?t:Kc,af=Math.max(af,e.minSize.width),af=Math.max(af-u0,0);for(var hx=Kc===0?1:Math.max(af/Kc,1),sg=0;sg<o;sg++)An[sg]!==void 0&&(an=e.Eb(sg),isFinite(an.width)||z0(an)===Sp||(an.actual=an.oa*hx),an.position=r.width,an.oa!==0&&(r.width+=an.oa,r.width+=an.Wc()));o=e.rowCount;for(var ag=0;ag<o;ag++)Qn[ag]!==void 0&&(an=e.Fb(ag),isFinite(an.height)?(c0+=an.height,c0+=an.Wc()):z0(an)===Sp?(c0+=an.oa,c0+=an.Wc()):an.oa!==0&&(rh+=an.oa,rh+=an.Wc()));isFinite(rg.height)?lf=Math.min(rg.height,Tb.height):lf=fl!==mn&&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&&(an=e.Fb(lg),isFinite(an.height)||z0(an)===Sp||(an.actual=an.oa*dx),an.position=r.height,an.oa!==0&&(r.height+=an.oa,r.height+=an.Wc()));o=l.length;for(var qv=0;qv<o;qv++){var h0=l[qv],ey=0,ty=0;h0.type===xn.TableRow?(ey=r.width,an=e.Fb(h0.row),ty=an.actual):(an=e.Eb(h0.column),ey=an.actual,ty=r.height),h0.measuredBounds.h(0,0,ey,ty),Zs(h0,!1)}dn(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 s=e.inRowsCols;if(s!==null){for(var l,u,f=s.length,p=0,x=0;x<f;x++)s[x]&&(p=Math.max(p,s[x].length));u=e.rowDefs,l=e.colDefs;var A=x=0,L=Math.min(e.topIndex,f-1);if(0<u.length){for(;L!==f&&(u[L]===void 0||u[L].oa===0);)L++;L=Math.max(Math.min(L,f-1),0),x=-u[L].position}var B=Math.min(e.leftIndex,p-1);if(0<l.length){for(;B!==p&&(l[B]===void 0||l[B].oa===0);)B++;B=Math.max(Math.min(B,p-1),0),A=-l[B].position}for(var V=0,ye=0;V!==f&&u[V]===void 0;)V++;for(;ye!==f&&l[ye]===void 0;)ye++;p=e.part,e.Fb(V),e.Eb(ye);for(var oe=0;oe<t.length;oe++){var Me=t[oe];if(Me instanceof xn&&Me.visible&&yh(Me)){if(Me.type===xn.TableRow){l=e.Fb(Me.row);var Be=e.Eb(ye)}else l=e.Fb(V),Be=e.Eb(Me.column);u=l.position+x+r,l.oa!==0&&(u+=l.Io(Math.max(V,L))),l=Be.position+A+o,Be.oa!==0&&(l+=Be.Io(Math.max(ye,B))),Be=Me.measuredBounds,Me.Uk(),Me.actualBounds.ka();var je=Me.actualBounds,tt=Ht.allocAt(je.x,je.y,je.width,je.height);je.x=Me.type===xn.TableRow?o:l,je.y=Me.type===xn.TableColumn?r:u,je.width=Be.width,je.height=Be.height,Me.actualBounds.freeze(),Fc(Me,!1),po(tt,je)||p===null||(p.oh(),Me.Pn(p)),Ht.free(tt)}}for(oe=mi.alloc(),Me=0;Me<f;Me++)if(s[Me]){for(p=s[Me].length,Be=e.Fb(Me),u=Be.position+x+r,Be.oa!==0&&(u+=Be.Io(Math.max(V,L))),je=0;je<p;je++)if(s[Me][je]){tt=e.Eb(je),l=tt.position+A+o,tt.oa!==0&&(l+=tt.Io(Math.max(ye,B)));for(var St=s[Me][je],$n=St.length,ii=0;ii<$n;ii++){var Qn=St[ii],An=Qn.measuredBounds;oe.h(0,0);for(var an=1;an<Qn.rowSpan&&!(Me+an>=e.rowCount);an++){var Ji=e.Fb(Me+an);Ji.oa!==0&&(oe.height+=Ji.total)}for(an=1;an<Qn.columnSpan&&!(je+an>=e.columnCount);an++)Ji=e.Eb(je+an),Ji.oa!==0&&(oe.width+=Ji.total);var Ui=tt.oa+oe.width,Yr=Be.oa+oe.height;an=l,Ji=u;var Io=Ui,la=Yr,va=l,hl=u,ua=Ui,kh=Yr;l+Ui>n.width&&(ua=Math.max(n.width-l,0)),u+Yr>n.height&&(kh=Math.max(n.height-u,0));var js=Qn.alignment;if(js.Xb()){js=e.defaultAlignment,js.sb()||(js=kr);var yc=js.x,dl=js.y,Ih=js.offsetX;js=js.offsetY;var Su=tt.alignment,Wu=Be.alignment;Su.sb()&&(yc=Su.x,Ih=Su.offsetX),Wu.sb()&&(dl=Wu.y,js=Wu.offsetY)}else yc=js.x,dl=js.y,Ih=js.offsetX,js=js.offsetY;(isNaN(yc)||isNaN(dl))&&(dl=yc=.5,js=Ih=0),Su=An.width,Wu=An.height;var ru=Qn.margin,Xl=ru.left+ru.right,nd=ru.top+ru.bottom,bc=fc(Qn,Be,tt,!1);!isNaN(Qn.desiredSize.width)||bc!==bn&&bc!==vi||(Su=Math.max(Ui-Xl,0)),!isNaN(Qn.desiredSize.height)||bc!==bn&&bc!==Oi||(Wu=Math.max(Yr-nd,0)),Ui=Qn.maxSize,Yr=Qn.minSize,Su=Math.min(Ui.width,Su),Wu=Math.min(Ui.height,Wu),Su=Math.max(Yr.width,Su),Wu=Math.max(Yr.height,Wu),Ui=Wu+nd,an+=Io*yc-(Su+Xl)*yc+Ih+ru.left,Ji+=la*dl-Ui*dl+js+ru.top,Qn.visible&&(Co(va,hl,ua,kh,an,Ji,An.width,An.height)?Qn.arrange(an,Ji,Su,Wu):Qn.arrange(an,Ji,Su,Wu,new Ht(va,hl,ua,kh)))}}}for(mi.free(oe),e=0;e<i;e++)n=t[e],o=n instanceof xn?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"}di(M0,na),M0.prototype.measure=function(){},M0.prototype.arrange=function(){};function O0(){this.xa="Base"}di(O0,na),O0.prototype.measure=function(){},O0.prototype.arrange=function(){};function L0(){this.xa="Base"}di(L0,na),L0.prototype.measure=function(e,t,n,i,r,o,s){1<i.length&&pt("Viewbox Panel cannot contain more than one GraphObject."),i=i[0],i.Ca=1,i.Uj(),i.measure(1/0,1/0,o,s);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 A=Math.max(t-f,0),L=Math.max(n-u,0),B=1;e.viewboxStretch===li?x!==0&&l!==0&&(B=Math.min(A/x,L/l)):x!==0&&l!==0&&(B=Math.max(A/x,L/l)),B===0&&(B=1e-4),i.Ca*=B,p!==i.scale&&(Zs(i,!0),i.measure(1/0,1/0,o,s))}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 s=t.alignment;s.Xb()&&(s=e.defaultAlignment),s.sb()||(s=kr),t.arrange(n.width*s.x-o*s.x+s.offsetX,n.height*s.y-r*s.y+s.offsetY,i.width,i.height)};function yp(){this.xa="Base"}di(yp,na),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,s=e.actualBounds,l=o.width,u=o.height,f=Math.ceil(l/r),p=Math.ceil(u/i),x=e.gridOrigin,A=x.x;x=x.y,t.save(),t.beginPath(),t.rect(0,0,l,u),t.clip(),t.Se();for(var L=[],B=e.O.s,V=B.length,ye=0;ye<V;ye++){var oe=B[ye],Me=[];if(L.push(Me),oe.visible){var Be=oe.interval;if(!(0>Be)){oe=Cg(oe.figure);for(var je=0;je<V;je++)if(je!==ye){var tt=B[je];tt.visible&&Cg(tt.figure)===oe&&(tt=tt.interval,tt>Be&&Me.push(tt))}}}}for(B=e.O.s,V=B.length,ye=0;ye<V;ye++){var St=B[ye];if(St.visible&&(Me=St.interval||1,oe=Math.abs(Me),!(2>r*oe*n))){if(Be=St.segmentIndex,(!isFinite(Be)||isNaN(Be))&&(Be=0),0>Be&&(Be=oe-Math.min(-Be,oe)),Be=Math.round(Be%oe),oe=St.opacity,je=1,oe!==1){if(oe===0)continue;je=t.globalAlpha,t.globalAlpha=je*oe}tt=L[ye];var $n=!1,ii=St.strokeDashArray;if(ii!==null&&($n=!0,t.js(ii,St.strokeDashOffset)),St.figure==="LineV"&&St.stroke!==null&&0<St.strokeWidth){for(t.lineWidth=St.strokeWidth,Ts(e,t,St.stroke,!1,!1,o,s),t.beginPath(),ii=St=Math.floor((A-r)/r);ii<=St+f;ii++){var Qn=ii*r+A;0<=Qn&&Qn<=l&&R0(ii,Me,Be,tt)&&(t.moveTo(Qn,0),t.lineTo(Qn,u))}t.stroke(),t.Se()}else if(St.figure==="LineH"&&St.stroke!==null&&0<St.strokeWidth){for(t.lineWidth=St.strokeWidth,Ts(e,t,St.stroke,!1,!1,o,s),t.beginPath(),ii=St=Math.floor((x-i)/i);ii<=St+p;ii++)Qn=ii*i+x,0<=Qn&&Qn<=u&&R0(ii,Me,Be,tt)&&(t.moveTo(0,Qn),t.lineTo(l,Qn));t.stroke(),t.Se()}else if(St.figure==="BarV"&&St.fill!==null)for(Ts(e,t,St.fill,!0,!1,o,s),St=St.width,isNaN(St)&&(St=r),Qn=ii=Math.floor((A-r)/r);Qn<=ii+f;Qn++){var An=Qn*r+A;0<=An+St&&An<=l&&R0(Qn,Me,Be,tt)&&t.fillRect(An,0,St,u)}else if(St.figure==="BarH"&&St.fill!==null)for(Ts(e,t,St.fill,!0,!1,o,s),St=St.height,isNaN(St)&&(St=i),Qn=ii=Math.floor((x-i)/i);Qn<=ii+p;Qn++)An=Qn*i+x,0<=An+St&&An<=u&&R0(Qn,Me,Be,tt)&&t.fillRect(0,An,l,St);$n&&t.fs(),oe!==1&&(t.globalAlpha=je)}}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"}di(D0,na),D0.prototype.measure=function(e,t,n,i,r){var o=i.length;if(e instanceof Wr||e instanceof In){var s=null,l=null;if(e instanceof In&&(s=e),e instanceof Wr&&(l=e,s=l.adornedPart,e.j===null&&(e.j=[])),s instanceof In){var u=s;if(o===0)Ws(e.naturalBounds,0,0),e.measuredBounds.h(0,0,0,0);else{var f=e instanceof Wr?null:s.path;t=s.routeBounds,n=e.jg,n.h(0,0,t.width,t.height);var p=u.points,x=s.pointsCount;l!==null?l.Ul(!1):s!==null&&s.Ul(!1),l=t.width;var A=t.height,L=e.j;if(L.length=0,f!==null){py(e,l,A,f);var B=f.measuredBounds;n.ed(B),L.push(B)}B=or.alloc();for(var V=ce.alloc(),ye=ce.alloc(),oe=0;oe<o;oe++){var Me=i[oe];if(Me!==f)if(Me.isPanelMain&&Me instanceof ar){py(e,l,A,Me);var Be=Me.measuredBounds;n.ed(Be),L.push(Be)}else if(2>x)Me.measure(1/0,1/0,0,0),Be=Me.measuredBounds,n.ed(Be),L.push(Be);else{var je=Me.segmentIndex,tt=Me.segmentFraction,St=Me.alignmentFocus;St.Mc()&&(St=kr);var $n=Me.segmentOrientation,ii=Me.segmentOffset;if(isNaN(je)){var Qn=u.ua;Be=Gt(),Qn.Qu(tt,Be);var An=ce.allocAt(Be[0],Be[1]);if(An.add(u.i(0)),Qn.type===kn.j?An.offset(-Qn.startX,-Qn.startY):(Qn=Qn.figures.first(),Qn!==null&&An.offset(-Qn.startX,-Qn.startY)),Qn=Be[2],$n!==wl){var an=u.computeAngle(Me,$n,Qn);Me.Kb=an}an=An.x-t.x;var Ji=An.y-t.y;ce.free(An),dn(Be)}else if(je<-x||je>=x)Be=ce.alloc(),u.vg(),u.computeMidPoint(Be),Qn=u.midAngle,$n!==wl&&(an=u.computeAngle(Me,$n,Qn),Me.Kb=an),an=Be.x-t.x,Ji=Be.y-t.y,ce.free(Be);else{if(an=0,0<=je?(Ji=p.M(je),Be=je<x-1?p.M(je+1):Ji):(an=x+je,Ji=p.M(an),Be=0<an?p.M(an-1):Ji),Ji.Xa(Be)){0<=je?(Qn=0<je?p.M(je-1):Ji,an=je<x-2?p.M(je+2):Be):(Qn=an<x-1?p.M(an+1):Ji,an=1<an?p.M(an-2):Be),An=Qn.Bf(Ji);var Ui=Be.Bf(an);Qn=An>Ui+10?0<=je?Qn.ab(Ji):Ji.ab(Qn):Ui>An+10?0<=je?Be.ab(an):an.ab(Be):0<=je?Qn.ab(an):an.ab(Qn)}else Qn=0<=je?Ji.ab(Be):Be.ab(Ji);$n!==wl&&(an=u.computeAngle(Me,$n,Qn),Me.Kb=an),an=Ji.x+(Be.x-Ji.x)*tt-t.x,Ji=Ji.y+(Be.y-Ji.y)*tt-t.y}Me.measure(1/0,1/0,0,0),Be=Me.measuredBounds,An=Me.naturalBounds;var Yr=0;Me instanceof ar&&(Yr=Me.strokeWidth),Ui=An.width+Yr;var Io=An.height+Yr;B.reset(),B.translate(-Be.x,-Be.y),B.scale(Me.scale,Me.scale),B.rotate($n===wl?Me.angle:Qn,Ui/2,Io/2),$n!==Op&&$n!==Rp||B.rotate(90,Ui/2,Io/2),$n!==Lp&&$n!==Dp||B.rotate(-90,Ui/2,Io/2),$n===cm&&(45<Qn&&135>Qn||225<Qn&&315>Qn)&&B.rotate(-Qn,Ui/2,Io/2),An=new Ht(0,0,Ui,Io),V.xi(An,St),B.Ga(V),St=-V.x+Yr/2*Me.scale,Me=-V.y+Yr/2*Me.scale,ye.assign(ii),Yr=isNaN(ii.x);var la=isNaN(ii.y);if(Yr||la){Ui=Ui/2+3,Io=Io/2+3;var va=45<=Qn&&135>=Qn,hl=225<=Qn&&315>=Qn;$n===wl&&(va||hl)?(ye.x=la?Ui:ii.y,ye.y=Yr?Io:ii.x,va?0<=je||isNaN(je)&&.5>tt||!Yr||(ye.y=-Io):hl&&((0<=je||isNaN(je)&&.5>tt)&&Yr&&(ye.y=-Io),la&&(ye.x=-Ui))):(Yr&&(ye.x=0<=je||isNaN(je)&&.5>tt?Ui:-Ui),la&&(ye.y=-Io),ye.rotate(Qn))}else ye.rotate(Qn);an+=ye.x,Ji+=ye.y,An.set(Be),An.h(an+St,Ji+Me,Be.width,Be.height),L.push(An),n.ed(An)}}if(s!==null)for(i=s.labelNodes;i.next();)i.value.measure(1/0,1/0);e.jg=n,e.position.h(t.x+n.x,t.y+n.y),Ws(r,n.width||0,n.height||0),or.free(B),ce.free(V),ce.free(ye)}}}},D0.prototype.arrange=function(e,t){var n=t.length;if(e instanceof Wr||e instanceof In){var i=e,r=null;e instanceof Wr&&(r=e,i=r.adornedPart);var o=e instanceof Wr?null:i.path,s=e.j;if(s.length!==0){var l=0;if(o!==null&&l<s.length){var u=s[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<s.length){var p=s[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 In)for(o=e.labelNodes;o.next();){var x=e;s=o.value,l=s.segmentIndex,u=s.segmentFraction;var A=s.alignmentFocus;if(f=s.segmentOrientation,p=s.segmentOffset,isNaN(l)){var L=x.ua,B=Gt();L.Qu(u,B);var V=ce.allocAt(B[0],B[1]);V.add(x.i(0)),L.type===kn.j||(L=L.figures.first()),V.offset(-L.startX,-L.startY),L=B[2],f!==wl&&(x=x.computeAngle(s,f,L),s.angle=x),x=V.x;var ye=V.y;ce.free(V),dn(B)}else if(l<-n||l>=n)B=ce.alloc(),L=x,ye=B,L.vg(),L.computeMidPoint(ye),L=x.midAngle,f!==wl&&(x=x.computeAngle(s,f,L),s.angle=x),x=B.x,ye=B.y,ce.free(B);else{if(V=0,0<=l?(B=t.s[l],ye=l<n-1?t.s[l+1]:B):(V=n+l,B=t.s[V],ye=0<V?t.s[V-1]:B),B.Xa(ye)){0<=l?(L=0<l?t.s[l-1]:B,V=l<n-2?t.s[l+2]:ye):(L=V<n-1?t.s[V+1]:B,V=1<V?t.s[V-2]:ye);var oe=L.Bf(B),Me=ye.Bf(V);L=oe>Me+10?0<=l?L.ab(B):B.ab(L):Me>oe+10?0<=l?ye.ab(V):V.ab(ye):0<=l?L.ab(V):V.ab(L)}else L=0<=l?B.ab(ye):ye.ab(B);f!==wl&&(x=x.computeAngle(s,f,L),s.angle=x),x=B.x+(ye.x-B.x)*u,ye=B.y+(ye.y-B.y)*u}if(A.ys())s.location=new ce(x,ye);else{A.Mc()&&(A=kr),B=or.alloc(),B.reset(),B.scale(s.scale,s.scale),B.rotate(s.angle,0,0);var Be=s.naturalBounds;V=Ht.allocAt(0,0,Be.width,Be.height),oe=ce.alloc(),oe.xi(V,A),B.Ga(oe),A=-oe.x,Me=-oe.y;var je=Be.width,tt=Be.height;Be=ce.alloc(),Be.assign(p);var St=isNaN(p.x),$n=isNaN(p.y);if(St||$n){je=je/2+3,tt=tt/2+3;var ii=45<=L&&135>=L,Qn=225<=L&&315>=L;f===wl&&(ii||Qn)?(Be.x=$n?je:p.y,Be.y=St?tt:p.x,ii?0<=l||isNaN(l)&&.5>u||!St||(Be.y=-tt):Qn&&((0<=l||isNaN(l)&&.5>u)&&St&&(Be.y=-tt),$n&&(Be.x=-je))):(St&&(Be.x=0<=l||isNaN(l)&&.5>u?je:-je),$n&&(Be.y=-tt),Be.rotate(L))}else Be.rotate(L);x+=Be.x,ye+=Be.y,B.pp(V),A+=V.x,Me+=V.y,l=ce.allocAt(x+A,ye+Me),s.move(l),ce.free(l),ce.free(Be),ce.free(oe),Ht.free(V),or.free(B)}}r!==null?r.Ul(!1):i.Ul(!1),i=jy(e),e.location.h(e.position.x+i.x,e.position.y+i.y),ce.free(i)}};function py(e,t,n,i){if(vu(i)!==!1){var r=i.strokeWidth;r===0&&e instanceof Wr&&e.type===xn.Link&&e.adornedObject instanceof ar&&(r=e.adornedObject.strokeWidth),r*=i.Ca,e instanceof In&&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 Wr&&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),Zs(i,!1)}}function bp(){this.xa="Base"}di(bp,na),bp.prototype.measure=function(e,t,n,i,r,o,s){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,s);var x=l.measuredBounds,A=new Ht(-u.left,-u.top,Math.max(x.width+f,0),Math.max(x.height+p,0));e.graduatedBounds.push(A),r.assign(A);for(var L=l.geometry,B=l.strokeWidth,V=L.flattenedSegments,ye=L.flattenedLengths,oe=L.flattenedTotalLength,Me=V.length,Be=0,je=0,tt=Gt(),St=0;St<Me;St++){var $n=V[St],ii=[];je=Be=0;for(var Qn=$n.length,An=0;An<Qn;An+=2){var an=$n[An],Ji=$n[An+1];if(An!==0){var Ui=180*Math.atan2(Ji-je,an-Be)/Math.PI;0>Ui&&(Ui+=360),ii.push(Ui)}Be=an,je=Ji}tt.push(ii)}if(e.graduatedIntervals===null){for(var Yr=[],Io=e.O.s,la=Io.length,va=0;va<la;va++){var hl=Io[va],ua=[];if(Yr.push(ua),hl.visible){var kh=hl.interval;if(!(0>kh)){for(var js=0;js<la;js++)if(js!==va){var yc=Io[js];if(yc.visible&&hl.constructor===yc.constructor){var dl=yc.interval;dl>kh&&ua.push(dl)}}}}}e.graduatedIntervals=Yr}var Ih=e.graduatedIntervals,Su=e.O.s,Wu=Su.length,ru=0,Xl=0,nd=oe;e.graduatedMarks=[];for(var bc,Vf=0;Vf<Wu;Vf++){var ou=Su[Vf];if(bc=[],ou.visible&&ou!==l){var fl=Math.abs(ou.interval),r0=e.graduatedTickUnit;if(!(2>r0*fl*oe/e.graduatedRange&&ou.graduatedSkip===null)){var ef=ye[0][0],Oc=0,Ql=0;Xl=oe*ou.graduatedStart-1e-4,nd=oe*ou.graduatedEnd+1e-4;var Ad=r0*fl,su=e.graduatedTickBase;if(su<e.graduatedMin){var id=(e.graduatedMin-su)/Ad;id=id%1===0?id:Math.floor(id+1),su+=id*Ad}else su>e.graduatedMin+Ad&&(su-=Math.floor((su-e.graduatedMin)/Ad)*Ad);for(var Jm=Ih[Vf],o0=su,Zv=1e-6*e.graduatedMax,Kc=1;su<=e.graduatedMax+Zv;Kc++){e:{for(var rh=Jm.length,tf=0;tf<rh;tf++){var rd=(su-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&&(su>e.graduatedMax&&(su=e.graduatedMax),ou.graduatedSkip===null||ou instanceof Lo&&!ou.graduatedSkip(su,ou)||ou instanceof ar&&!ou.graduatedSkip(su,ou))&&(ru=(su-e.graduatedMin)*oe/e.graduatedRange,ru>oe&&(ru=oe),Xl<=ru&&ru<=nd)){for(var Yc=tt[Oc][Ql],Mh=ye[Oc][Ql];Oc<ye.length;){for(;ru>ef&&Ql<ye[Oc].length-1;)Ql++,Yc=tt[Oc][Ql],Mh=ye[Oc][Ql],ef+=Mh;if(ru<=ef)break;Oc++,Ql=0,Yc=tt[Oc][Ql],Mh=ye[Oc][Ql],ef+=Mh}var Jl=V[Oc],Lc=Jl[2*Ql],qm=Jl[2*Ql+1],oh=(ru-(ef-Mh))/Mh,Yf=new ce(Lc+(Jl[2*Ql+2]-Lc)*oh+B/2-L.bounds.x,qm+(Jl[2*Ql+3]-qm)*oh+B/2-L.bounds.y);Yf.scale(l.scale,l.scale);e:{var xc=Yc,kd=tt[Oc];if(!(.5005>oh&&.4995<oh)){var Rc=xc;if(.5>oh?0<Ql?Rc=kd[Ql-1]:Ye.$(Jl[0],Jl[Jl.length-2])&&Ye.$(Jl[1],Jl[Jl.length-1])&&(Rc=kd[kd.length-1]):.5<oh&&(Ql+1<kd.length?Rc=kd[Ql+1]:Ye.$(Jl[0],Jl[Jl.length-2])&&Ye.$(Jl[1],Jl[Jl.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){Yc=(xc+Rc)/2%360;break e}if(10>nf){var Zf=1-Math.abs(.5-oh);Yc=(xc*Zf+Rc*(1-Zf))%360;break e}}}Yc=xc}if(ou instanceof Lo){var uc="";ou.graduatedFunction!==null?(uc=ou.graduatedFunction(su,ou),uc=uc!=null?uc.toString():""):uc=(+su.toFixed(2)).toString(),uc!==""&&bc.push({$l:Yf,angle:Yc,text:uc})}else bc.push({$l:Yf,angle:Yc})}su=o0+Kc*Ad}}}e.graduatedMarks.push(bc)}dn(tt);var Ma=e.graduatedMarks;if(Ma!==null)for(var s0=i.length,kl=0;kl<s0;kl++){var Gs=i[kl],Il=Ma[kl];if(Gs.visible&&Gs!==l&&Il.length!==0){if(Gs instanceof ar){var sh=e,Oh=r,Id=Gs.alignmentFocus;Id.Mc()&&(Id=Ta);var Xv=Gs.angle;Gs.Kb=0,Gs.measure(1/0,1/0,0,0),Gs.Kb=Xv;var eg=Gs.measuredBounds,Xf=eg.width,Md=eg.height,rf=Ht.allocAt(0,0,Xf,Md),ql=ce.alloc();ql.xi(rf,Id),Ht.free(rf);for(var ah=-ql.x,Sc=-ql.y,Bu=new Ht,sd=Il.length,Qf=0;Qf<sd;Qf++)for(var ad=Il[Qf],tg=ad.$l.x,Jf=ad.$l.y,Os=ad.angle,cc=0;4>cc;cc++){switch(cc){case 0:ql.h(ah,Sc);break;case 1:ql.h(ah+Xf,Sc);break;case 2:ql.h(ah,Sc+Md);break;case 3:ql.h(ah+Xf,Sc+Md)}ql.rotate(Os+Gs.angle),ql.offset(tg,Jf),Qf===0&&cc===0?Bu.h(ql.x,ql.y,0,0):Bu.Ye(ql),ql.offset(-tg,-Jf),ql.rotate(-Os-Gs.angle)}ce.free(ql),sh.graduatedBounds!==null&&sh.graduatedBounds.push(Bu),zr(Oh,Bu.x,Bu.y,Bu.width,Bu.height)}else if(Gs instanceof Lo){var Vu=e,ng=r;Vu.temporaryTextBlock===null&&(Vu.temporaryTextBlock=new Lo);var au=Vu.temporaryTextBlock;Iy(au,Gs);var Lh=Gs.alignmentFocus;Lh.Mc()&&(Lh=Ta);for(var Ku=Gs.segmentOrientation,qf=Gs.segmentOffset,ld=new Ht,a0=0,ep=0,Dc=0,Od=0,ud=0,tp=Il.length,Rh=0;Rh<tp;Rh++){var Zc=Il[Rh];a0=Zc.$l.x,ep=Zc.$l.y,Dc=Zc.angle,ud=Od=Gs.angle,Ku!==wl&&(ud=Ku===Mp||Ku===um?Dc+Gs.angle:Dc,Od=In.computeAngle(Ku,ud)),au.Kb=Od,au.text=Zc.text||"",au.measure(1/0,1/0,0,0);var Dh=au.measuredBounds,lh=au.naturalBounds,Ph=lh.width,Ld=lh.height,Ec=or.alloc();Ec.reset(),Ec.translate(-Dh.x,-Dh.y),Ec.scale(au.scale,au.scale),Ec.rotate(ud,Ph/2,Ld/2),Ku!==Op&&Ku!==Rp||Ec.rotate(90,Ph/2,Ld/2),Ku!==Lp&&Ku!==Dp||Ec.rotate(-90,Ph/2,Ld/2),Ku===cm&&(45<Dc&&135>Dc||225<Dc&&315>Dc)&&Ec.rotate(-Dc,Ph/2,Ld/2);var of=Ht.allocAt(0,0,Ph,Ld),Fh=ce.alloc();Fh.xi(of,Lh),Ec.Ga(Fh);var sf=-Fh.x,Qv=-Fh.y,uh=ce.alloc();uh.assign(qf),isNaN(uh.x)&&(uh.x=Ph/2+3),isNaN(uh.y)&&(uh.y=-(Ld/2+3)),uh.rotate(Dc),a0+=uh.x+sf,ep+=uh.y+Qv;var Rd=new Ht(a0,ep,Dh.width,Dh.height),l0=new Ht(Dh.x,Dh.y,Dh.width,Dh.height),Jv=new Ht(lh.x,lh.y,lh.width,lh.height);Zc.Sz=Od,Zc.lineCount=au.lineCount,Zc.lines=[au.Cb,au.Ih,au.df,au.Le,au.Qc,au.Qb,au.ze],Zc.actualBounds=Rd,Zc.measuredBounds=l0,Zc.naturalBounds=Jv,Rh===0?ld.assign(Rd):ld.ed(Rd),ce.free(uh),ce.free(Fh),Ht.free(of),or.free(Ec)}Vu.graduatedBounds!==null&&Vu.graduatedBounds.push(ld),zr(ng,ld.x,ld.y,ld.width,ld.height)}Zs(Gs,!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,s=0,l=o[s];s++,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[s],s++,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,s=r.height;r=t instanceof tu,t.save(),t.beginPath(),t.rect(-1,-1,o+1,s+1),t.clip(),t.Se(),o=e.Pb(),o.gc(t,n),s=e.Df()*n.scale,0>=s&&(s=1);for(var l=o.actualBounds,u=e.O.s,f=e.graduatedMarks,p=u.length,x=0;x<p;x++){var A=u[x],L=f[x],B=L.length;if(A.visible&&A!==o&&L.length!==0){if(A instanceof ar){if(!(2>e.graduatedTickUnit*A.interval*o.geometry.flattenedTotalLength/e.graduatedRange*s&&A.graduatedSkip===null)){var V=A.measuredBounds,ye=A.strokeWidth*A.scale,oe=A.alignmentFocus;oe.Mc()&&(oe=Ta);for(var Me=0;Me<B;Me++){var Be=L[Me].$l,je=L[Me].angle,tt=oe,St=A.Ab;St.reset(),St.translate(Be.x+l.x,Be.y+l.y),St.rotate(je+A.angle,0,0),St.translate(-V.width*tt.x+tt.offsetX+ye/2,-V.height*tt.y+tt.offsetY+ye/2),St.scale(A.scale,A.scale),Uu(A,!1),A.wh.set(A.Ab),A.Kk=A.scale,Mu(A,!1),A.gc(t,n),r&&(e.svg.appendChild(A.svg),A.svg=null),A.Ab.reset()}}}else if(A instanceof Lo)for(e.temporaryTextBlock===null&&(e.temporaryTextBlock=new Lo),V=e.temporaryTextBlock,Iy(V,A),ye=0;ye<B;ye++)oe=L[ye],oe.actualBounds&&oe.measuredBounds&&oe.naturalBounds&&(V.ec=oe.text||"",V.Kb=oe.Sz||0,V.Gc=oe.lineCount||0,Me=oe.lines,Me!==void 0&&(V.Cb=Me[0],V.Ih=Me[1],V.df=Me[2],V.Le=Me[3],V.Qc=Me[4],V.Qb=Me[5],V.ze=Me[6]),oe.naturalBounds&&(V.dc=oe.naturalBounds),oe.actualBounds&&(Me=oe.actualBounds,V.arrange(Me.x,Me.y,Me.width,Me.height)),Me=oe.actualBounds,V.arrange(Me.x,Me.y,Me.width,Me.height),Be=oe.measuredBounds,oe=oe.naturalBounds,je=V.Ab,je.reset(),je.translate(Me.x+l.x,Me.y+l.y),je.translate(-Be.x,-Be.y),V.no(je,oe.x,oe.y,oe.width,oe.height),Uu(V,!1),V.wh.set(V.Ab),V.Kk=V.scale,Mu(V,!1),V.Ng=A.part,V.Me=A.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 xn(e,t){if(it.call(this),this.na=null,e===void 0)this.na=xn.Position;else if(typeof e=="string"){var n=ic.I(e);n!==null&&(this.na=n)}else e instanceof na?this.na=e:e&&(this.na=xn.Position,t=e);this.na===null&&pt("Panel type not specified or PanelLayout not loaded: "+e),this.l=this.l|4194304|(this.na===xn.Grid?1048576:0),this.O=new Zt,this.yb=ha,this.Tm=Ur,this.Uf=ir,this.$g=null,this.$e="",this.jg=new Ht(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=li,this.jn=ca,this.kn=Ar,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,t&&Object.assign(this,t)}di(xn,it),xn.prototype.cloneProtected=function(e){it.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},xn.prototype.Af=function(e){it.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},xn.prototype.copy=function(){var e=it.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,s=o.count;if(o.Gb(s,r),o=e.part,o!==null){o.Rh=null,r.portId!==null&&o instanceof Wn&&(o.Te=!0);var l=e.diagram;l!==null&&l.undoManager.isUndoingRedoing||o.cb(Zo,"elements",e,null,r,null,s)}}return e}return null},U=xn.prototype,U.toString=function(){return"Panel("+this.type.name+")#"+It(this)},U.Pn=function(e){it.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===xn.Grid)e.yc(),this.na.gc(this,e,t);else if(this.na===xn.Graduated)e.yc(),this.na.gc(this,e,t);else{if(this.na===xn.Table)if(e.yc(),e instanceof tu){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===xn.Spot)&&e.save();for(var i=this.Pb(),r=this.O.s,o=r.length,s=0;s<o;s++){var l=r[s];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,s=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>s.height)continue}else if(f.position>s.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){Ts(e,t,x,!1,!1,s,o),x=!1;var A=f.separatorDashArray;A===null&&(A=n?e.defaultRowSeparatorDashArray:e.defaultColumnSeparatorDashArray),A!==null&&(x=!0,t.js(A,0)),t.beginPath(),A=f.position+p,n?A>s.height&&(p-=A-s.height):A>s.width&&(p-=A-s.width),f=f.position+p/2,t.lineWidth=p,p=e.yb,n?(f+=p.top,A=s.width-p.right,t.moveTo(p.left,f),t.lineTo(A,f)):(f+=p.left,A=s.height-p.bottom,t.moveTo(f,p.top),t.lineTo(f,A)),t.stroke(),t.Se(),x&&t.fs()}}}}function P0(e,t,n,i,r){for(var o=i.length,s=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 A=n?s.height:s.width;if(!(x.position>A)){var L=x.Wc(),B=x.separatorStrokeWidth;isNaN(B)&&(B=n?e.defaultRowSeparatorStrokeWidth:e.defaultColumnSeparatorStrokeWidth);var V=x.separatorStroke;V===null&&(V=n?e.defaultRowSeparatorStroke:e.defaultColumnSeparatorStroke),(V===null||x.index===(n?u:f))&&(B=0),L-=B,B=x.position+B,L+=x.actual,B+L>A&&(L=A-B),0>=L||(A=e.yb,Ts(e,t,x.background,!0,!1,l,s),n?t.fillRect(A.left,B+A.top,s.width-(A.left+A.right),L):t.fillRect(B+A.left,A.top,L,s.height-(A.top+A.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(!it.prototype.kk.call(this,e,t,n))return!1;if(this.type===xn.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===xn.Grid||this.na===xn.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,s=0;s<t.length;s++)if(t[s].Ed()){var l=t[s].actualBounds;r=s===0?l.x:Math.min(l.x,r),o=s===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 it.prototype.$o.call(this,e,t,n,i)},U.Sj=function(e,t,n,i,r){var o=this.se(),s=this.transform,l=1/(s.m11*s.m22-s.m12*s.m21),u=s.m22*l,f=-s.m12*l,p=-s.m21*l,x=s.m11*l,A=l*(s.m21*s.dy-s.m22*s.dx),L=l*(s.m12*s.dx-s.m11*s.dy);if(this.areaBackground!==null)return s=this.actualBounds,Ye.Ff(s.left,s.top,s.right,s.bottom,e,t,n,i,r);if(this.background!==null)return o=e*u+t*p+A,l=e*f+t*x+L,e=n*u+i*p+A,u=n*f+i*x+L,r.h(0,0),n=this.naturalBounds,o=Ye.Ff(0,0,n.width,n.height,o,l,e,u,r),r.transform(s),o;o||(u=1,p=f=0,x=1,L=A=0),l=e*u+t*p+A,e=e*f+t*x+L,u=n*u+i*p+A,n=n*f+i*x+L,r.h(u,n),i=(u-l)*(u-l)+(n-e)*(n-e),f=!1,x=this.O.s,L=x.length,p=ce.alloc(),A=null,t=1/0;var B=null,V=this.isClipping&&this.na===xn.Spot;V&&(B=ce.alloc(),A=this.Pb(),(f=A.Sj(l,e,u,n,B))&&(t=(l-B.x)*(l-B.x)+(e-B.y)*(e-B.y)));for(var ye=0;ye<L;ye++){var oe=x[ye];oe.visible&&oe!==A&&oe.Sj(l,e,u,n,p)&&(f=!0,oe=(l-p.x)*(l-p.x)+(e-p.y)*(e-p.y),oe<i&&(i=oe,r.set(p)))}return V&&(t>i&&r.set(B),ce.free(B)),ce.free(p),o&&r.transform(s),f},U.Gj=function(){for(var e=this.O.s,t=e.length,n=0;n<t;n++)e[n].Gj();it.prototype.Gj.call(this)},U.v=function(e){if(!vu(this)){it.prototype.v.call(this,e),e=null,(this.na===xn.Auto||this.na===xn.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=zl(r,!1);(r instanceof El||r instanceof xn||r instanceof Lo||o!==mn)&&r.v(!0)}}}},U.Uj=function(){if(!vu(this)){Zs(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)){Uu(this,!0),Mu(this,!0);for(var e=this.O.s,t=e.length,n=0;n<t;n++)e[n].Wu()}},U.Wu=function(){Mu(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,s=this.minSize;n===void 0&&(n=s.width,i=s.height),n=Math.max(n,s.width),i=Math.max(i,s.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(s.width,e),u=Math.max(s.height,u),e=Math.max(n,e),u=Math.max(i,u),Ws(r,e,u),Ws(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=zl(this,!0);var o=this.measuredBounds;t=o.width,o=o.height;var s=this.Kg,l=s.left+s.right;switch(s=s.top+s.bottom,t===n&&o===i&&(e=mn),e){case mn:(t>n||o>i)&&(this.v(),this.measure(t>n?n:t,o>i?i:o,0,0));break;case bn:this.v(!0),this.measure(n+l,i+s,0,0);break;case vi:this.v(!0),this.measure(n+l,o+s,0,0);break;case Oi:this.v(!0),this.measure(t+l,i+s,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=ce.allocAt(0,0);i--;){var o=t[i];if((o.visible||o===n)&&(Hi(r.set(e),o.transform),o.ca(r)))return ce.free(r),!0}return ce.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 xn){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 xn&&vy(e,o,n)}}function Ob(e,t){yy(e,e,t)}function yy(e,t,n){if(n(t),t instanceof xn){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 xn){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 xn){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 xn?n=Math.max(n,xy(r)):r instanceof ar&&(n=Math.max(n,r.ig/2*r.strokeMiterLimit*r.Df()))}return n}U.se=function(){return!(this.type===xn.TableRow||this.type===xn.TableColumn)};function yh(e){return e.type===xn.TableRow||e.type===xn.TableColumn}U.ic=function(e,t,n){if(this.pickable===!1||(t===void 0&&(t=null),n===void 0&&(n=null),xl(this)))return null;var i=this.naturalBounds,r=1/this.Df(),o=this.se(),s=o?e:Hi(ce.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,s.x,s.y)){if(!this.isAtomic){r=this.O.s;var p=r.length;if(l=ce.alloc(),f=(u=this.isClipping&&this.na===xn.Spot)?this.Pb():null,u&&(f.se()?Hi(l.set(e),f.transform):l.set(e),!f.ca(l)))return ce.free(l),o||ce.free(s),null;for(var x=th(this);p--;){var A=r[p];if((A.visible||A===x)&&(A.se()?Hi(l.set(e),A.transform):l.set(e),!u||A!==f)){var L=null;if(A instanceof xn?L=A.ic(l,t,n):A.pickable===!0&&A.ca(l)&&(L=A),L!==null&&(t!==null&&(L=t(L)),L!==null&&(n===null||n(L))))return ce.free(l),o||ce.free(s),L}}ce.free(l)}return this.background===null&&this.areaBackground===null?(o||ce.free(s),null):(e=Co(0,0,i.width,i.height,s.x,s.y)?this:null,o||ce.free(s),e)}return o||ce.free(s),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(),s=o?e:Hi(ce.allocAt(e.x,e.y),this.transform);if(r=Co(0,0,r.width,r.height,s.x,s.y),yh(this)||r){if(!this.isAtomic){for(var l=this.O.s,u=l.length,f=ce.alloc(),p=th(this);u--;){var x=l[u];if(x.visible||x===p){x.se()?Hi(f.set(e),x.transform):f.set(e);var A=x;x=x instanceof xn?x:null,(x!==null?x.ji(f,t,n,i):A.ca(f))&&A.pickable!==!1&&(t!==null&&(A=t(A)),A===null||n!==null&&!n(A)||i.add(A))}}ce.free(f)}return o||ce.free(s),r&&(this.background!==null||this.areaBackground!==null)}return o||ce.free(s),!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 s=o;if(o===void 0&&(s=or.alloc(),s.reset()),s.multiply(this.transform),this.fh(e,s))return Tg(this,t,n,r),o===void 0&&or.free(s),!0;if(this.Yc(e,s)){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,A=this.naturalBounds;x.x>A.width||x.y>A.height||0>x.x+x.width||0>x.y+x.height||(x=p,p=p instanceof xn?p:null,A=or.alloc(),A.set(s),(p!==null?p.Cf(e,t,n,i,r,A):aa(x,e,i,A))&&(t!==null&&(x=t(x)),x===null||n!==null&&!n(x)||r.add(x)),or.free(A))}}return o===void 0&&or.free(s),i}return o===void 0&&or.free(s),!1};function Tg(e,t,n,i){for(var r=e.O.s,o=r.length;o--;){var s=r[o];if(s.visible){var l=s.actualBounds,u=e.naturalBounds;l.x>u.width||l.y>u.height||0>l.x+l.width||0>l.y+l.height||(s instanceof xn&&Tg(s,t,n,i),t!==null&&(s=t(s)),s===null||n!==null&&!n(s)||i.add(s))}}}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 s=this.naturalBounds,l=this.se(),u=l?e:Hi(ce.allocAt(e.x,e.y),this.transform),f=l?t:Hi(ce.allocAt(t.x,t.y),this.transform),p=u.Bf(f),x=0<u.x&&u.x<s.width&&0<u.y&&u.y<s.height||$r(u.x,u.y,0,0,0,s.height)<=p||$r(u.x,u.y,0,s.height,s.width,s.height)<=p||$r(u.x,u.y,s.width,s.height,s.width,0)<=p||$r(u.x,u.y,s.width,0,0,0)<=p;if(s=u.zd(0,0)<=p&&u.zd(0,s.height)<=p&&u.zd(s.width,0)<=p&&u.zd(s.width,s.height)<=p,l||(ce.free(u),ce.free(f)),x){if(!this.isAtomic){u=ce.alloc(),f=ce.alloc(),p=th(this);for(var A=this.O.s,L=A.length;L--;){var B=A[L];if(B.visible||B===p){var V=B.actualBounds,ye=this.naturalBounds;(!l||!(V.x>ye.width||V.y>ye.height||0>V.x+V.width||0>V.y+V.height))&&(B.se()?(V=B.transform,Hi(u.set(e),V),Hi(f.set(t),V)):(u.set(e),f.set(t)),V=B,B=B instanceof xn?B:null,(B!==null?B.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)))}}ce.free(u),ce.free(f)}return r?x:s}return!1};function Ng(e){var t=null;return e instanceof ar&&(t=e.spot1,t===Ur&&(t=null),e=e.geometry,e!==null&&t===null&&(t=e.spot1)),t===null&&(t=Qo),t}function Ag(e){var t=null;return e instanceof ar&&(t=e.spot2,t===Ur&&(t=null),e=e.geometry,e!==null&&t===null&&(t=e.spot2)),t===null&&(t=zo),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 Ei&&pt("Cannot add a Part to a Panel: "+t+"; use a Panel instead"),(this===t||this.rg(t))&&(this===t&&pt("Cannot make a Panel contain itself: "+this.toString()),pt("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+t.toString()));var n=t.panel;if(n!==null&&n!==this&&pt("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!==xn.Grid||t instanceof ar||pt("Can only add Shapes to a Grid Panel, not: "+t),this.na!==xn.Graduated||t instanceof ar||t instanceof Lo||pt("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 qn),this.ge.add(i,t))}var r=this.O;if(i=-1,n===this){for(var o=-1,s=this.O.s,l=s.length,u=0;u<l;u++)if(s[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 pt("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),vu(this)||this.v(),t.v(!1),t.portId!==null?this.Te=!0:t instanceof xn&&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 Wn&&(n.Te=!0),n.Te&&n instanceof Wn&&(n.wc=null),r=this.diagram,r!==null&&r.undoManager.isUndoingRedoing||(i!==-1&&n.cb(qo,"elements",this,t,null,i,null),n.cb(Zo,"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),Zs(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 Wn&&(i instanceof xn?i.qm(i,function(s,l){Qg(o,l,t)}):Qg(o,i,t)),n=this.diagram,n!==null&&n.undoManager.isUndoingRedoing||o.cb(qo,"elements",this,i,null,e,null))},U.Fb=function(e){0>e&&tn(e,">= 0",xn,"getRowDefinition:idx"),e=Math.round(e);var t=this.rowDefs;if(t[e]===void 0){var n=new Xs;n.wi(this),n.isRow=!0,n.index=e,t[e]=n,this.cb(Zo,"rowdefs",this,null,n,null,e)}return t[e]},U.oA=function(e){if(0>e&&tn(e,">= 0",xn,"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(qo,"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 Xs?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&&tn(e,">= 0",xn,"getColumnDefinition:idx"),e=Math.round(e);var t=this.colDefs;if(t[e]===void 0){var n=new Xs;n.wi(this),n.isRow=!1,n.index=e,t[e]=n,this.cb(Zo,"coldefs",this,null,n,null,e)}return t[e]},U.jA=function(e){if(0>e&&tn(e,">= 0",xn,"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(qo,"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 Xs?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 Xs(t)),this},U.By=function(e,t){return(e=this.Eb(e))&&_0(e,new Xs(t)),this},U.nz=function(e){if(0>e||this.type!==xn.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!==xn.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 ce(NaN,NaN)),this.type!==xn.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!==xn.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 $u(e){var t=e.allBindings;if(t===null)e.data!==null&&pt("Template cannot have .data be non-null: "+e),e.allBindings=t=new Zt;else if(t._isFrozen)return;var n=new Zt;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 A=x.value;A.mode===$p&&zd(p,!0);var L=A.sourceName;L!==null&&(L==="/"&&kg(f,!0),L=B1(A,f,p),L!==null&&(n.add(L),L.srcBindings===null&&(L.srcBindings=new Zt),L.srcBindings.add(A))),t.add(A)}if(p instanceof xn&&p.type===xn.Table){if(0<p.rowCount){for(f=p.rowDefs,x=f.length,A=0;A<x;A++)if(L=f[A],L!==void 0&&L.be!==null)for(var B=L.be.iterator;B.next();){var V=B.value;V.xd=L,V.to=2,V.wl=L.index,t.add(V)}}if(0<p.columnCount){for(p=p.colDefs,f=p.length,x=0;x<f;x++)if(A=p[x],A!==void 0&&A.be!==null)for(L=A.be.iterator;L.next();)B=L.value,B.xd=A,B.to=1,B.wl=A.index,t.add(B)}}});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 s=o.value;r.localBindings===null&&(r.localBindings=new Zt),r.localBindings.add(s)}}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 xn&&(s=l.substring(0,u),l=l.substr(u+1),u=o.fb(s),u!==null?(o=u,r.targetProperty=l):xi('Warning: unable to find GraphObject named "'+s+'" for Binding: '+r.toString())),o instanceof Xs?(s=It(o.panel),r.Ai=s===void 0?-1:s,o.panel.bindingId=r.Ai):o instanceof it?(s=It(o),r.Ai=s===void 0?-1:s,o.bindingId=r.Ai):pt("Unknown type of binding target: "+o)}t.freeze(),e instanceof Ei&&e.Zc()&&e.Va()}U.Uy=function(e){e===void 0&&(e=!1);var t=this.copy();return Ob(t,function(n){n instanceof xn&&(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&&$u(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,s=n.Ai;if(s!==-1){if(o=this.ks(s),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 xn))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 xn&&o.data!==null));)r++,o=e[r];if(n-r!==i)return!0;if(o===null)return 0<i;for(var s=0;r<n&&s<i;){if(o=e[r],!(o instanceof xn)||o.data!==t[s])return!0;r++,s++}return!1}function xp(e){if(e.type===xn.Spot||e.type===xn.Auto)return Math.min(e.O.length,1);if(e.type===xn.Link){e=e.O;for(var t=e.length,n=0;n<t;n++){var i=e.M(n);if(!(i instanceof ar&&i.isPanelMain))break}return n}return e.type===xn.Table&&0<e.O.length&&(e=e.O.M(0),e.isPanelMain&&e instanceof xn&&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],s=i<e.O.length?e.O.M(i):null;if(s instanceof xn){if(s.data!==o){var l=Mg(e,s.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)):s.data=o}}else F0(e,o,r,!1)}for(;i<e.O.length;)e.pc(i,!1);e.$g=null,Ig(e,n,0),vu(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 Wn&&(t.Te=!0),t.Te&&t instanceof Wn&&(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($u(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 qn),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 xn){var r=t,o=n;i.type===xn.TableRow?i.row=r:i.type===xn.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=Fs(t,e)}else return"";if(e===void 0)return"";if(typeof e=="string")return e;pt("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,xi('No item template Panel found for category "'+t+'" on '+e),xi(" Using default item template."),e=new xn,t=new Lo,t.bind(new $s("text","",En)),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 xn){t=t.O.s,i=t.length;for(var r=0;r<i;r++){var o=t[r];n&&o instanceof xn&&!o.isEnabled||B0(e,o,n)}}}function Ic(e,t){t.name=e,ic.add(e,t)}ht.Object.defineProperties(xn.prototype,{type:{get:function(){return this.na},set:function(e){var t=this.na;t!==e&&(this.na=e,this.isAtomic=this.na===xn.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&&tn(e,">= 0",xn,"padding"),e=new pi(e)):(0>e.left&&tn(e.left,">= 0",xn,"padding:value.left"),0>e.right&&tn(e.right,">= 0",xn,"padding:value.right"),0>e.top&&tn(e.top,">= 0",xn,"padding:value.top"),0>e.bottom&&tn(e.bottom,">= 0",xn,"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:ha},set:function(e){typeof e=="number"&&(e=new pi(e));var t=this.defaultSeparatorPadding;t.D(e)||(e=e.J(),this.T===null&&(this.T=new Ru),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 no)&&(e instanceof no&&e.freeze(),this.T===null&&(this.T=new Ru),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 Ru),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)||pt("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 Ru),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 no)&&(e instanceof no&&e.freeze(),this.T===null&&(this.T=new Ru),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 Ru),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)||pt("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 Ru),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 Ru),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||pt("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()||pt("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),Ba(this)&&(e=this.part,e!==null&&Uo(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),Ba(this)&&(e=this.part,e!==null&&Uo(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 Ru),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new Ru),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 Ru),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 Ru),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)&&pt("Panel.topIndex must be greater than zero and a real number, not: "+e),this.T===null&&(this.T=new Ru),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)&&pt("Panel.leftIndex must be greater than zero and a real number, not: "+e),this.T===null&&(this.T=new Ru),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 Ei&&!(this instanceof Wr);$u(this),this.ub=e;var i=this.diagram;i!==null&&(n?(n=i.partManager,this instanceof In?(t!==null&&n.bf.remove(t),e!==null&&n.bf.add(e,this)):this instanceof Ei&&(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 qn}var t=this.itemTemplateMap.I("");t!==e&&((e instanceof Ei||e.isPanelMain)&&pt("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(););ur(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&&(ur(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 er&&(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(xn,{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")}}}),xn.prototype.rebuildItemElements=xn.prototype.mv,xn.prototype.findItemPanelForData=xn.prototype.sx,xn.prototype.updateTargetBindings=xn.prototype.La,xn.prototype.copyTemplate=xn.prototype.Uy,xn.prototype.graduatedValueForPoint=xn.prototype.Gz,xn.prototype.graduatedPointForValue=xn.prototype.Fz,xn.prototype.findColumnForLocalX=xn.prototype.fz,xn.prototype.findRowForLocalY=xn.prototype.nz,xn.prototype.addColumnDefinition=xn.prototype.By,xn.prototype.addRowDefinition=xn.prototype.Hy,xn.prototype.addRowColumnDefinition=xn.prototype.Gy,xn.prototype.removeColumnDefinition=xn.prototype.jA,xn.prototype.getColumnDefinition=xn.prototype.Eb,xn.prototype.removeRowDefinition=xn.prototype.oA,xn.prototype.getRowDefinition=xn.prototype.Fb,xn.prototype.removeAt=xn.prototype.mb,xn.prototype.remove=xn.prototype.remove,xn.prototype.insertAt=xn.prototype.Gb,xn.prototype.elt=xn.prototype.M,xn.prototype.add=xn.prototype.add,xn.prototype.findObject=xn.prototype.fb,xn.prototype.findInVisualTree=xn.prototype.Nl,xn.prototype.walkVisualTreeFrom=xn.prototype.qm,xn.prototype.findMainElement=xn.prototype.Pb;var Ty=!1,Ny=null,ic=new qn;xn.className="Panel",xn.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 Ru(){this.Pc=[],this.Oc=[],this.j=this.ob=U0,this.hb=this.Hb=0,this.Qp=ha,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}Ru.prototype.copy=function(e){for(var t=new Ru,n=this.Pc,i=n.length,r=t.Pc,o=0;o<i;o++)if(n[o]!==void 0){var s=n[o].copy();s.wi(e),r[o]=s}for(n=this.Oc,i=n.length,r=t.Oc,o=0;o<i;o++)n[o]!==void 0&&(s=n[o].copy(),s.wi(e),r[o]=s);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},Ru.className="TablePanelSettings";function Xs(e){Yi(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=Ur,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Lg,this.hg=ir,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))}Xs.prototype.copy=function(){var e=new Xs;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=Mt(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=Mt(t.separatorDashArray)),e.background=t.background,e.coversSeparators=t.coversSeparators,e.be=t.be}U=Xs.prototype,U.qb=function(e){e.classType===Xs&&(this.sizing=e)},U.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+It(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===xn.Table)for(var r=i?t.rowDefs.length:t.colDefs.length,o=0;o<r;o++){var s=i?t.rowDefs[o]:t.colDefs[o];if(s!==void 0&&s.oa!==0){n=s.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(vo,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 $s(e,t,n,i):r=e,r.xd=this,e=this.panel,e!==null&&(t=e.ih(),t!==null&&wy(t)&&pt("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+r+" on "+e)),this.be===null&&(this.be=new Zt),this.be.add(r),this},ht.Object.defineProperties(Xs.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&&tn(e,">= 0",Xs,"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&&tn(e,">= 0",Xs,"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))&&tn(e,">= 0",Xs,"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&&tn(e,">= 0",Xs,"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 pi(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 no&&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)||pt("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 no&&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}}}),Xs.prototype.computeEffectiveSpacing=Xs.prototype.Wc,Xs.prototype.computeEffectiveSpacingTop=Xs.prototype.Io;var Lg=new Kt(Xs,"Default",0),Sp=new Kt(Xs,"None",1),U0=new Kt(Xs,"ProportionalExtra",2);Xs.className="RowColumnDefinition",Xs.Default=Lg,Xs.None=Sp,Xs.ProportionalExtra=U0;function ar(e,t){it.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)}di(ar,it),ar.prototype.cloneProtected=function(e){it.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=Mt(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=ar.prototype,U.th=function(){it.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},U.qb=function(e){e===mn||e===li||e===Ir||e===ir?this.geometryStretch=e:it.prototype.qb.call(this,e)},U.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+It(this)};function Cf(e,t,n,i){var r=n.length;if(!(4>r)){var o=i.measuredBounds,s=Math.max(1,o.width);o=o.height;for(var l=n[0],u=n[1],f,p,x,A,L,B,V=0,ye=Gt(),oe=2;oe<r;oe+=2)f=n[oe],p=n[oe+1],x=f-l,l=p-u,x===0&&(x=.001),A=l/x,L=Math.atan2(l,x),B=Math.sqrt(x*x+l*l),ye.push([x,L,A,B]),V+=B,l=f,u=p;l=n[0],u=n[1],x=i.measuredBounds.width,i instanceof ar&&(x-=i.strokeWidth),1>x&&(x=1),r=n=x,f=s/2,p=f!==0,oe=0,B=ye[oe],x=B[0],L=B[1],A=B[2],B=B[3];for(var Me=0;.1<=V;){if(Me===0&&(p?(r=n,r-=f,V-=f,p=!1):r=n,r===0&&(r=1)),r>V){dn(ye);return}r>B?(Me=r-B,r=B):Me=0;var Be=Math.sqrt(r*r/(1+A*A));if(0>x&&(Be=-Be),l+=Be,u+=A*Be,e.translate(l,u),e.rotate(L),e.translate(-(s/2),-(o/2)),Me===0&&i.hh(e,t),e.translate(s/2,o/2),e.rotate(-L),e.translate(-l,-u),V-=r,B-=r,Me!==0){if(oe++,oe===ye.length){dn(ye);return}B=ye[oe],x=B[0],L=B[1],A=B[2],B=B[3],r=Me}}dn(ye)}}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,s=this.naturalBounds;i!==null&&Ts(this,e,i,!0,!1,s,o);var l=this.part,u=this.ig;if(n===null||u!==0||l===null||!this.isPanelMain&&l.Pb()!==this||(u=l.type===xn.Link&&l instanceof Wr&&l.category==="Selection"&&l.adornedObject instanceof ar&&l.adornedPart.Pb()===l.adornedObject?l.adornedObject.strokeWidth:0),u===0&&(n=null),n!==null&&u!==0&&(Ts(this,e,n,!1,!1,s,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),s=!1,u=this.strokeDashArray,u!==null&&(s=!0,e.js(u,this.strokeDashOffset)),r.type===kn.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===kn.u){var f=r.startX;u=r.startY;var p=r.endX,x=r.endY;r=Math.min(f,p);var A=Math.min(u,x);f=Math.abs(p-f),u=Math.abs(x-u),e.beginPath(),e.rect(r,A,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===kn.F)f=r.startX,u=r.startY,p=r.endX,x=r.endY,r=Math.abs(p-f)/2,A=Math.abs(x-u)/2,f=Math.min(f,p)+r,u=Math.min(u,x)+A,e.beginPath(),e.moveTo(f,u-A),e.bezierCurveTo(f+Ye.wg*r,u-A,f+r,u-Ye.wg*A,f+r,u),e.bezierCurveTo(f+r,u+Ye.wg*A,f+Ye.wg*r,u+A,f,u+A),e.bezierCurveTo(f-Ye.wg*r,u+A,f-r,u+Ye.wg*A,f-r,u),e.bezierCurveTo(f-r,u-Ye.wg*A,f-Ye.wg*r,u-A,f,u-A),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===kn.o)for(r=r.figures,u=r.length,A=0;A<u;A++){f=r.s[A],e.beginPath(),e.moveTo(f.startX,f.startY),p=f.segments.s,x=p.length;for(var L=null,B=0;B<x;B++){var V=p[B];switch(V.type){case go:e.moveTo(V.endX,V.endY);break;case ro:e.lineTo(V.endX,V.endY);break;case _s:e.bezierCurveTo(V.point1X,V.point1Y,V.point2X,V.point2Y,V.endX,V.endY);break;case Wa:e.quadraticCurveTo(V.point1X,V.point1Y,V.endX,V.endY);break;case os:if(V.radiusX===V.radiusY){var ye=Math.PI/180;e.arc(V.point1X,V.point1Y,V.radiusX,V.startAngle*ye,(V.startAngle+V.sweepAngle)*ye,0>V.sweepAngle,L!==null?L.endX:f.startX,L!==null?L.endY:f.startY)}else if(L=Da(V,f),ye=L.length,ye===0)e.lineTo(V.centerX,V.centerY);else for(var oe=0;oe<ye;oe++){var Me=L[oe];oe===0&&e.lineTo(Me[0],Me[1]),e.bezierCurveTo(Me[2],Me[3],Me[4],Me[5],Me[6],Me[7])}break;case Va:if(oe=ye=0,L!==null&&L.type===os){if(L=Da(L,f),Me=L.length,Me===0){e.lineTo(V.endX,V.endY);break}L=L[Me-1]||null,L!==null&&(ye=L[6],oe=L[7])}else ye=L!==null?L.endX:f.startX,oe=L!==null?L.endY:f.startY;if(L=da(V,f,ye,oe),ye=L.length,ye===0){e.lineTo(V.endX,V.endY);break}for(oe=0;oe<ye;oe++)Me=L[oe],e.bezierCurveTo(Me[2],Me[3],Me[4],Me[5],Me[6],Me[7]);break;default:pt("Segment not of valid type: "+V.type)}V.isClosed&&e.closePath(),L=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(A)}if(s&&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=Gt(),o.type===kn.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===kn.o)for(o=o.figures.iterator;o.next();){for(l=o.value,i.length=0,i.push(l.startX),i.push(l.startY),s=l.startX,r=l.startY,u=s,A=r,f=l.segments.s,p=f.length,x=0;x<p;x++){switch(B=f[x],B.type){case go:Cf(e,t,i,n),i.length=0,i.push(B.endX),i.push(B.endY),s=B.endX,r=B.endY,u=s,A=r;break;case ro:i.push(B.endX),i.push(B.endY),s=B.endX,r=B.endY;break;case _s:Ye.Qe(s,r,B.point1X,B.point1Y,B.point2X,B.point2Y,B.endX,B.endY,.5,i),s=B.endX,r=B.endY;break;case Wa:Ye.ep(s,r,B.point1X,B.point1Y,B.endX,B.endY,.5,i),s=B.endX,r=B.endY;break;case os:if(V=Da(B,l),L=V.length,L===0){i.push(B.centerX),i.push(B.centerY),s=B.centerX,r=B.centerY;break}for(ye=0;ye<L;ye++)oe=V[ye],Ye.Qe(s,r,oe[2],oe[3],oe[4],oe[5],oe[6],oe[7],.5,i),s=oe[6],r=oe[7];break;case Va:if(V=da(B,l,s,r),L=V.length,L===0){i.push(B.endX),i.push(B.endY),s=B.endX,r=B.endY;break}for(ye=0;ye<L;ye++)oe=V[ye],Ye.Qe(s,r,oe[2],oe[3],oe[4],oe[5],oe[6],oe[7],.5,i),s=oe[6],r=oe[7];break;default:pt("Segment not of valid type: "+B.type)}B.isClosed&&(i.push(u),i.push(A),Cf(e,t,i,n))}Cf(e,t,i,n)}else if(o.type===kn.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===kn.F){if(r=new Cs,r.startX=o.endX,r.startY=(o.startY+o.endY)/2,s=new Nr(os),s.startAngle=0,s.sweepAngle=360,s.centerX=(o.startX+o.endX)/2,s.centerY=(o.startY+o.endY)/2,s.radiusX=Math.abs(o.startX-o.endX)/2,s.radiusY=Math.abs(o.startY-o.endY)/2,r.add(s),o=Da(s,r),l=o.length,l===0)i.push(s.centerX),i.push(s.centerY);else for(s=r.startX,r=r.startY,u=0;u<l;u++)A=o[u],Ye.Qe(s,r,A[2],A[3],A[4],A[5],A[6],A[7],.5,i),s=A[6],r=A[7];Cf(e,t,i,n)}dn(i),e.restore(),e.Vc(!1)}}}},U.kk=function(e,t,n){return!it.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:it.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 ce),e instanceof oi){e.Mc()&&pt("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 Ht);var t=this.naturalBounds,n=this.oe;t=Ht.allocAt(t.x,t.y,t.width,t.height);var i=this.strokeWidth;return t.Bc(i/2,i/2),i=ce.allocAt(t.x,t.y).transform(n),e.h(i.x,i.y,0,0),i.h(t.right,t.y).transform(n),zr(e,i.x,i.y,0,0),i.h(t.right,t.bottom).transform(n),zr(e,i.x,i.y,0,0),i.h(t.x,t.bottom).transform(n),zr(e,i.x,i.y,0,0),Ht.free(t),ce.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!==kn.j||t||(r+=2);var o=Ht.alloc();if(o.assign(i),o.Bc(r+2,r+2),!o.ca(e))return Ht.free(o),!1;if(i=r+1e-4,n.type===kn.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:(Ht.free(o),Ye.Yb(n.startX,n.startY,n.endX,n.endY,r,e.x,e.y));if(n.type===kn.u){t=n.startX;var s=n.startY,l=n.endX;if(n=n.endY,o.x=Math.min(t,l),o.y=Math.min(s,n),o.width=Math.abs(l-t),o.height=Math.abs(n-s),this.fill===null){if(o.Bc(-i,-i),o.ca(e))return Ht.free(o),!1;o.Bc(i,i)}return this.stroke!==null&&o.Bc(r,r),e=o.ca(e),Ht.free(o),e}if(n.type===kn.F){s=n.startX,r=n.startY,l=n.endX;var u=n.endY;if(n=Math.min(s,l),t=Math.min(r,u),s=Math.abs(l-s)/2,r=Math.abs(u-r)/2,n=e.x-(n+s),t=e.y-(t+r),this.fill===null){if(s-=i,r-=i,0>=s||0>=r||1>=n*n/(s*s)+t*t/(r*r))return Ht.free(o),!1;s+=i,r+=i}return this.stroke!==null&&(s+=i,r+=i),Ht.free(o),0>=s||0>=r?!1:1>=n*n/(s*s)+t*t/(r*r)}if(n.type===kn.o)return Ht.free(o),this.fill===null?ml(n,e.x,e.y,r):Dl(n,e,r,1<this.strokeWidth,t);pt("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 s=this.geometry.bounds;else{var l=this.figure,u=Dg[l];if(u===void 0){var f=Ye.Ze[l];typeof f=="string"&&(f=Ye.Ze[f]),typeof f=="function"?(u=f(null,100,100),Dg[l]=u):pt("Unsupported Figure: "+l)}s=u.bounds}l=s.width,u=s.height,f=s.width;var p=s.height;switch(zl(this,!0)){case mn:i=n=0;break;case bn:f=Math.max(e-o,0),p=Math.max(t-o,0);break;case vi:f=Math.max(e-o,0),i=0;break;case Oi:n=0,p=Math.max(t-o,0)}isFinite(r.width)&&(f=r.width),isFinite(r.height)&&(p=r.height);var x=this.maxSize,A=this.minSize;switch(n=Math.max(n-o,A.width),i=Math.max(i-o,A.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 mn:break;case bn:l=f,u=p;break;case li:n=Math.min(f/l,p/u),isFinite(n)||(n=1),l*=n,u*=n;break;default:pt(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,s=n.bounds,i=l/s.width,s=u/s.height,isFinite(i)||(i=1),isFinite(s)||(s=1),this.ua=i===1&&s===1?n:n.copy().scale(i,s)):this.ua!==null&&Ye.$(this.ua.Sk,e-o)&&Ye.$(this.ua.Rk,t-o)||(this.ua=ar.makeGeometry(this,l,u)),s=this.ua.bounds,e===1/0||t===1/0?this.Ge(s.x-o/2,s.y-o/2,e===0&&l===0?0:s.width+o,t===0&&u===0?0:s.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(A.width,f),p=Math.max(A.height,p),this.dc.h(0,0,f,p)):this.dc.assign(s)};function Rg(e){var t=e.geometryStretch;return e.Rd!==null?t===ir?bn:t:t===ir?Dg[e.figure].defaultStretch:t}U.eh=function(e,t,n,i){cl(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,s=1/(o.m11*o.m22-o.m12*o.m21),l=o.m22*s,u=-o.m12*s,f=-o.m21*s,p=o.m11*s,x=s*(o.m21*o.dy-o.m22*o.dx),A=s*(o.m12*o.dx-o.m11*o.dy);o=e*l+t*f+x,s=e*u+t*p+A,l=n*l+i*f+x,u=n*u+i*p+A,x=this.ig/2,f=this.ua,f===null&&(this.measure(1/0,1/0),f=this.ua);var L=f.bounds;if(p=!1,f.type===kn.j)if(1.5>=this.strokeWidth)p=Ye.Ve(f.startX,f.startY,f.endX,f.endY,o,s,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=Gt(),e=new ce,Ye.Ve(f.startX+i,f.startY+p,f.endX+i,f.endY+p,o,s,l,u,e)&&t.push(e),e=new ce,Ye.Ve(f.startX-i,f.startY-p,f.endX-i,f.endY-p,o,s,l,u,e)&&t.push(e),e=new ce,Ye.Ve(f.startX+i,f.startY+p,f.startX-i,f.startY-p,o,s,l,u,e)&&t.push(e),e=new ce,Ye.Ve(f.endX+i,f.endY+p,f.endX-i,f.endY-p,o,s,l,u,e)&&t.push(e),l=t.length,l===0)return dn(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-s)*(e.y-s),n<u&&(u=n,r.x=e.x,r.y=e.y);dn(t)}else if(f.type===kn.u)p=Ye.Ff(L.x-x,L.y-x,L.x+L.width+x,L.y+L.height+x,o,s,l,u,r);else if(f.type===kn.F){t=Ht.allocAt(L.x,L.y,L.width,L.height).Bc(x,x);e:if(t.width===0)p=Ye.Ve(t.x,t.y,t.x,t.y+t.height,o,s,l,u,r);else if(t.height===0)p=Ye.Ve(t.x,t.y,t.x+t.width,t.y,o,s,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=(s-u)/(o-l)),9999>Math.abs(n)){if(u=s-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((s-f)*(s-f))<Math.abs((o-e)*(o-e))+Math.abs((s-u)*(s-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-s)<Math.abs(u-s)?(r.x=o,r.y=l):(r.x=o,r.y=u)}p=!0}Ht.free(t)}else if(f.type===kn.o){A=ce.alloc();var B=l-o,V=u-s,ye=B*B+V*V,oe=o,Me=s;if(0<ye&&L.contains(oe,Me)&&(A.x=oe,A.y=Me,this.ca(A)))for(B!==0&&.5>Math.abs(B)?(V*=.5/B,B=.5):V!==0&&.5>Math.abs(V)&&(B*=.5/V,V=.5),oe-=B,Me-=V;L.contains(oe,Me);)oe-=B,Me-=V;for(r.x=l,r.y=u,V=0;V<f.figures.count;V++){var Be=f.figures.s[V],je=Be.isFilled?oe:o,tt=Be.isFilled?Me:s,St=Be.segments;L=Be.startX,B=Be.startY;for(var $n=L,ii=B,Qn=0;Qn<St.count;Qn++){var An=St.s[Qn],an=An.type,Ji=An.endX,Ui=An.endY,Yr=!1;switch(an){case go:$n=Ji,ii=Ui;break;case ro:Yr=$0(L,B,Ji,Ui,je,tt,l,u,A);break;case _s:Yr=Ye.Eo(L,B,An.point1X,An.point1Y,An.point2X,An.point2Y,Ji,Ui,je,tt,l,u,.6,A);break;case Wa:Yr=Ye.Eo(L,B,L+2/3*(An.point1X-L),B+2/3*(An.point1Y-B),Ji+2/3*(An.point1X-Ji),Ui+2/3*(An.point1Y-Ui),Ji,Ui,je,tt,l,u,.6,A);break;case os:case Va:an=An.type===os?Da(An,Be):da(An,Be,L,B);var Io=an.length;if(Io===0){Yr=$0(L,B,An.type===os?An.centerX:An.endX,An.type===os?An.centerY:An.endY,je,tt,l,u,A);break}for(Ui=null,Ji=0;Ji<Io;Ji++){if(Ui=an[Ji],Ji===0&&$0(L,B,Ui[0],Ui[1],je,tt,l,u,A)){var la=H0(je,tt,A,ye,r);la<ye&&(ye=la,p=!0)}Ye.Eo(Ui[0],Ui[1],Ui[2],Ui[3],Ui[4],Ui[5],Ui[6],Ui[7],je,tt,l,u,.6,A)&&(la=H0(je,tt,A,ye,r),la<ye&&(ye=la,p=!0))}Ji=Ui[6],Ui=Ui[7];break;default:pt("Unknown Segment type: "+an)}L=Ji,B=Ui,Yr&&(Yr=H0(je,tt,A,ye,r),Yr<ye&&(ye=Yr,p=!0)),An.isClosed&&(Ji=$n,Ui=ii,$0(L,B,Ji,Ui,je,tt,l,u,A)&&(An=H0(je,tt,A,ye,r),An<ye&&(ye=An,p=!0)))}}o=n-e,s=i-t,l=Math.sqrt(o*o+s*s),l!==0&&(o/=l,s/=l),r.x-=o*x,r.y-=s*x,ce.free(A)}else pt("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,s,l,u){if(Ye.$(e,n)&&Ye.$(t,i)||Ye.$(r,s)&&Ye.$(o,l))return!1;var f=!1,p=(r-s)*(t-i)-(o-l)*(e-n);return p===0?!1:(u.x=((r*l-o*s)*(e-n)-(r-s)*(e*i-t*n))/p,u.y=((r*l-o*s)*(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||Ye.$(u.y,e))&&(u.y<t||Ye.$(u.y,t))&&(f=!0)):(t=e<n?e:n,e=e<n?n:e,(u.x>t||Ye.$(u.x,t))&&(u.x<e||Ye.$(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=ce.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)))),ce.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=or.alloc();n.set(t),n.Vj();var i=e.left,r=e.right,o=e.top;e=e.bottom;var s=ce.alloc();if(s.h(i,o),n.Ga(s),this.gh(s,!0)||(s.h(r,o),n.Ga(s),this.gh(s,!0))||(s.h(i,e),n.Ga(s),this.gh(s,!0))||(s.h(r,e),n.Ga(s),this.gh(s,!0)))return ce.free(s),!0;var l=ce.alloc(),u=ce.alloc();return n.set(t),n.bv(this.transform),n.Vj(),l.x=r,l.y=o,l.transform(n),s.x=i,s.y=o,s.transform(n),t=!1,Sd(this,s,l,u)?t=!0:(s.x=r,s.y=e,s.transform(n),Sd(this,s,l,u)?t=!0:(l.x=i,l.y=e,l.transform(n),Sd(this,s,l,u)?t=!0:(s.x=i,s.y=o,s.transform(n),Sd(this,s,l,u)&&(t=!0)))),ce.free(s),or.free(n),ce.free(l),ce.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(ye,oe){for(var Me=ye.length,Be=0;Be<Me;Be+=2)if(oe.zd(ye[Be],ye[Be+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 s=t.bounds,l=s.x,u=s.y,f=s.x+s.width;if(s=s.y+s.height,Vr(e.x,e.y,l,u)<=r&&Vr(e.x,e.y,f,u)<=r&&Vr(e.x,e.y,l,s)<=r&&Vr(e.x,e.y,f,s)<=r)return!0}if(l=t.startX,u=t.startY,f=t.endX,s=t.endY,t.type===kn.j){if(n=(l-f)*(e.x-f)+(u-s)*(e.y-s),$r(e.x,e.y,l,u,f,s)<=(0<=(f-l)*(e.x-l)+(s-u)*(e.y-u)&&0<=n?r:o))return!0}else{if(t.type===kn.u)return t=!1,n&&(t=$r(e.x,e.y,l,u,l,s)<=r||$r(e.x,e.y,l,u,f,u)<=r||$r(e.x,e.y,f,u,f,s)<=r||$r(e.x,e.y,l,s,f,s)<=r),t;if(t.type===kn.F){t=e.x-(l+f)/2,o=e.y-(u+s)/2;var p=Math.abs(f-l)/2,x=Math.abs(s-u)/2;if(p===0||x===0)return $r(e.x,e.y,l,u,f,s)<=r;if(n){if(e=Ye.$y(p,x,t,o),e*e<=r)return!0}else return!(Vr(t,o,-p,0)>=r||Vr(t,o,0,-x)>=r||Vr(t,o,0,x)>=r||Vr(t,o,p,0)>=r)}else if(t.type===kn.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&&$r(e.x,e.y,o,l,o,f)>r&&$r(e.x,e.y,o,l,u,l)>r&&$r(e.x,e.y,u,f,o,f)>r&&$r(e.x,e.y,u,f,u,l)>r)return!1;if(o=Math.sqrt(r),n){if(this.fill===null?ml(t,e.x,e.y,o):Dl(t,e,o,!0,!1))return!0}else{for(n=t.figures,t=0;t<n.count;t++){if(o=n.s[t],s=o.startX,p=o.startY,e.zd(s,p)>r)return!1;for(l=o.segments.s,u=l.length,f=0;f<u;f++)switch(x=l[f],x.type){case go:case ro:if(s=x.endX,p=x.endY,e.zd(s,p)>r)return!1;break;case _s:var A=Gt();if(Ye.Qe(s,p,x.point1X,x.point1Y,x.point2X,x.point2Y,x.endX,x.endY,.8,A),s=i(A,e),dn(A),s||(s=x.endX,p=x.endY,e.zd(s,p)>r))return!1;break;case Wa:if(A=Gt(),Ye.ep(s,p,x.point1X,x.point1Y,x.endX,x.endY,.8,A),s=i(A,e),dn(A),s||(s=x.endX,p=x.endY,e.zd(s,p)>r))return!1;break;case os:case Va:A=x.type===os?Da(x,o):da(x,o,s,p);var L=A.length;if(L===0){if(s=x.type===os?x.centerX:x.endX,p=x.type===os?x.centerY:x.endY,e.zd(s,p)>r)return!1;break}x=null;for(var B=Gt(),V=0;V<L;V++)if(x=A[V],B.length=0,Ye.Qe(x[0],x[1],x[2],x[3],x[4],x[5],x[6],x[7],.8,B),i(B,e))return dn(B),!1;dn(B),x!==null&&(s=x[6],p=x[7]);break;default:pt("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=ks):e.fromArrow!=="None"&&(e.segmentIndex=0,e.alignmentFocus=new oi(1-ks.x,ks.y)))}ar.makeGeometry=function(e,t,n){if(e.toArrow!=="None")var i=zc[e.toArrow];else e.fromArrow!=="None"?i=zc[e.fromArrow]:(i=Ye.Ze[e.figure],typeof i=="string"&&(i=Ye.Ze[i]),i===void 0&&pt("Unknown Shape.figure: "+e.figure),i=i(e,t,n),i.Sk=t,i.Rk=n);if(i===null){var r=Ye.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 Ye.um)if(r.toLowerCase()===n){i=r;break}if(i!==null)return e=kn.parse(Ye.um[i],!1),zc[i]=e,n!==i&&(zc[n]=i),i}}return typeof t=="string"?t:t instanceof kn?e:null}ht.Object.defineProperties(ar.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),Ba(this)&&(e=this.part,e!==null&&Uo(this,e,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(e){e=kn.parse(e);var t=e.normalize();this.geometry=e,this.position=e=ce.allocAt(-t.x,-t.y),ce.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 no&&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 no&&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 tn(e,"value >= 0",ar,"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"?tn(e,'"butt", "round", or "square"',ar,"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"?tn(e,'"miter", "bevel", or "round"',ar,"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)||pt("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=Ye.Ze[e];typeof n=="function"?n=e:(n=Ye.Ze[e.toLowerCase()])||pt("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?pt("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?pt("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:Ur},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:Ur},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:ir},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))}}}),ar.prototype.intersectsRect=ar.prototype.Yc,ar.prototype.containedInRect=ar.prototype.fh,ar.prototype.getNearestIntersectionPoint=ar.prototype.rs,ar.prototype.getDocumentBounds=ar.prototype.mi,ar.prototype.getDocumentPoint=ar.prototype.ga;var zc=new ae,Dg=new ae;ar.className="Shape",ar.getFigureGenerators=function(){var e=new qn,t;for(t in Ye.Ze)t!==t.toLowerCase()&&e.add(t,Ye.Ze[t]);return e.freeze(),e},ar.defineFigureGenerator=function(e,t){var n=e.toLowerCase(),i=Ye.Ze;i[e]=t,i[n]=e},ar.getArrowheadGeometries=function(){var e=new qn;for(i in Ye.um)if(zc[i]===void 0){var t=kn.parse(Ye.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 kn&&e.add(n,i)}return e.freeze(),e},ar.defineArrowheadGeometry=function(e,t){var n=null;typeof t=="string"?n=kn.parse(t,!1):n=t,t=e.toLowerCase(),t!=="none"&&e!==t||pt("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=ir,this.gg=this.fg=Ur}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 Lo(e,t){return it.call(this),K0||(Ul=xs?new Hu(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}di(Lo,it),Lo.prototype.cloneProtected=function(e){it.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=Lo.prototype,U.th=function(){it.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===Lo?this.wrap=e:it.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(){it.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,s=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;Ts(this,e,this.xc,!0,!1,n,i),(u||f)&&Ts(this,e,this.xc,!1,!1,n,i),i=0,n=!1;var p=this.oe,x=p.dx-(s*p.m21+p.dx);p=p.dy-(s*p.m22+p.dy);var A=t.scale;switch(8>(x*x+p*p)*A*A&&(n=!0),t.ib!==e&&(n=!1),t.ib instanceof tu&&(n=!1),t.Gf("textGreeking")===!1&&(n=!1),t=this.spacingAbove,x=this.spacingBelow,this.flip){case Br:e.translate(r,0),e.scale(-1,1);break;case dr:e.translate(0,o),e.scale(1,-1);break;case ho:e.translate(r,o),e.scale(-1,-1)}if(e.yc(),p=this.Gc,A=(t+s+x)*p,o>A&&(i=this.verticalAlignment,i=i.y*o-i.y*A+i.offsetY),p===1&&this.ze!==null)x=this.Cb,x>r&&(x=r),this.Oj(this.ze,e,0,i+t,r,s,x,n,l,u,f);else if(this.Qc!==null&&this.Qb!==null)for(A=0;A<p;A++){var L=this.Qc[A];L>r&&(L=r),i+=t,this.Oj(this.Qb[A],e,0,i,r,s,L,n,l,u,f),i+=s+x}switch(this.flip){case Br:e.scale(-1,1),e.translate(-r,0);break;case dr:e.scale(1,-1),e.translate(0,-o);break;case ho:e.scale(-1,-1),e.translate(-r,-o)}}},U.Oj=function(e,t,n,i,r,o,s,l,u,f,p){var x=0;if(l)u==="left"?x=0:u==="right"?x=r-s:u==="center"&&(x=(r-s)/2),t.fillRect(n+x,i+.25*o,s,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-=s:u==="center"&&(x-=s/2),f){l=G0!==null?G0(this,o):.8*o,u=n+x,f=i+l,r=n+x+s,l=i+l;var A=e;t.beginPath(),t.lineWidth=A,t.moveTo(u,f),t.lineTo(r,l),t.stroke(),t.Se(),t instanceof tu&&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+s,s=p,x=e,t.beginPath(),t.lineWidth=x,t.moveTo(i,o),t.lineTo(n,s),t.stroke(),t.Se(),t instanceof tu&&t.ad.classList.add("gojs-td"))}},U.kk=function(e,t,n){if(!it.prototype.kk.call(this,e,t,n))return!1;if(Ts(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:it.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;Ul!==null&&Fy!==o&&(Fy=Ul.font=o),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var s;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=s=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()),s=Math.max(s,rc(l)),l=f+1}o=s}else s=o.indexOf(`
|
|
|
`,0),0<=s&&(o=o.substr(0,s)),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)),s=Oy(this,o),isNaN(this.desiredSize.height)?s=Math.min(s,t/this.scale):s=this.desiredSize.height,u=s,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),s=Math.max(i,s),Ws(this.dc,o,s),this.Ge(0,0,o,s),this.svg!==null&&r!==this.Gc&&(this.Uc=!0)},U.eh=function(e,t,n,i){cl(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,s=e.Ae,l=e.spacingAbove+e.spacingBelow;l=Math.max(0,wp(e)+l);var u=e.overflow===W0?My(s):0;if(e.Gc>=e.maxLines)i!==null&&i.h(0,l);else if(s=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,s),s=s.substr(o.length),t=Tf(e,s),f=rc(o+t);0<t.length&&f<=n;)o+=t,s=s.substr(t.length),t=Tf(e,s),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,s.length===0&&(u=1,Ep(e,s,0));0<s.length;){for(t=Tf(e,s),s=s.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 A=f;o=Math.max(o,f)}else A=p,o=Math.max(o,p);if(x--,1>x&&(x=1),Ep(e,t.substr(0,x),A),u++,t=t.substr(x),e.Gc+u>e.maxLines)break}for(p=Tf(e,s),f=rc(t+p);0<p.length&&f<=n;)t+=p,s=s.substr(p.length),p=Tf(e,s),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 Ul===null?8*e.length:Ul.measureText(e).width}function wp(e){if(e.df!==null)return e.df;var t=e.Ae;if(Ul===null){var n=16;return e.df=n}return Ug[t]!==void 0&&5e3>Py?n=Ug[t]:(n=1.3*Ul.measureText("M").width,Ug[t]=n,Py++),e.df=n}function My(e){if(Ul===null)return 6;if(V0[e]!==void 0&&5e3>Hg)var t=V0[e];else t=Ul.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,s,l=!1;!l;){if(s=n.indexOf(`
|
|
|
`,o),s===-1&&(s=n.length,l=!0),o<=s){if(o=n.substr(o,s-o),e.wrap!==Bg){e.Le=0;var u=mi.alloc();Fg(e,o,t,u),r+=u.height,mi.free(u),e.Gc+=e.Le}else Fg(e,o,t,null),r+=i,e.Gc++;e.Gc===e.maxLines&&(l=!0)}o=s+1}return e.Lq=r}ht.Object.defineProperties(Lo.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:mn},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:is},set:function(e){var t=this.verticalAlignment;t.D(e)||(e=e.J(),Mc(this),this.da.Yr=e,bl(this),this.g("verticalAlignment",t,e))}},naturalBounds:{get:function(){if(!this.dc.w()){var e=mi.alloc();Fg(this,this.ec,999999,e);var t=e.width;mi.free(e),e=Oy(this,t);var n=this.desiredSize;isNaN(n.width)||(t=n.width),isNaN(n.height)||(e=n.height),Ws(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 no&&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&&tn(e,"> 0",Lo,"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 Kt(Lo,"None",0),Ly=new Kt(Lo,"WrapFit",1),_g=new Kt(Lo,"WrapDesiredSize",2),Ry=new Kt(Lo,"WrapBreakAll",3),zg=new Kt(Lo,"OverflowClip",0),W0=new Kt(Lo,"OverflowEllipsis",1),Cp=new Kt(Lo,"FormatTrim",0),Dy=new Kt(Lo,"FormatNone",0),Rb=/[ \u200b\u00ad]/,Ug=new ae,Py=0,V0=new ae,Hg=0,Tp="...",Fy="",Ul=null,K0=!1;Lo.className="TextBlock";function $g(){this.nc=!1,this.Hd=null,this.Xf=mn,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=is,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},Lo.getEllipsis=function(){return Tp},Lo.setEllipsis=function(e){Tp=e,V0=new ae,Hg=0},Lo.getBaseline=function(){return j0},Lo.setBaseline=function(e){j0=e},Lo.getUnderline=function(){return G0},Lo.setUnderline=function(e){G0=e},Lo.isValidFont=function(e){if(K0||(Ul=xs?new Hu(null).context:null,K0=!0),Ul===null)return!0;var t=Ul.font;if(e===t||e==="10px sans-serif")return!0;Ul.font="10px sans-serif",Ul.font=e;var n=Ul.font;if(n!=="10px sans-serif")return Ul.font=t,!0;Ul.font="19px serif";var i=Ul.font;return Ul.font=e,n=Ul.font,Ul.font=t,n!==i},Lo.FormatNone=Dy,Lo.FormatTrim=Cp,Lo.None=Bg,Lo.OverflowClip=zg,Lo.OverflowEllipsis=W0,Lo.WrapBreakAll=Ry,Lo.WrapDesiredSize=_g,Lo.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 Hl(e,t){it.call(this),this.Eg=null,this.qo="",this.Xg=yn,this.Nk=bn,this.Zg=this.Hd=null,this.Mk=kr,this.Xf=mn,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;di(Hl,it),Hl.prototype.cloneProtected=function(e){it.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},Hl.prototype.qb=function(e){e===mn||e===li||e===Ir?this.imageStretch=e:it.prototype.qb.call(this,e)},Hl.prototype.toString=function(){return"Picture("+this.source+")#"+It(this)};function Af(e){e===void 0&&(e=""),e!==""?Nf[e]&&(delete Nf[e],Y0--):(Nf=new ae,Y0=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")||"",s=r.Og.I(o);if(s!==null)for(var l=s.length,u=0;u<l;u++)o=s[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()||(Zs(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")||"",s=r.Og.I(o);if(s!==null){r=s.length,o=Gt();for(var l=0;l<r;l++)o.push(s[l]);if(t.hn)for(l=0;l<r;l++)s=o[l],s.Hd!==null&&s.Hd(s,n);dn(o)}}t.Bg.clear()}},t.addEventListener("load",t.Fq),t.addEventListener("error",t.Yp),t.qy=!0)}Hl.prototype.hA=function(){if(this.source!==""){Af(this.source);var e=this.source;this.source="",this.source=e}},Hl.prototype.redraw=function(){this.N(),this.Uc=!0},Hl.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 tu;i=this.naturalBounds;var o=0,s=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,s=this.Xg.y,u=this.Xg.width,l=this.Xg.height);var x=u,A=l,L=this.Nk,B=this.Mk;switch(L){case mn:if(this.sourceRect.w())break;x>=i.width&&(o=o+B.offsetX+(x*B.x-i.width*B.x)),A>=i.height&&(s=s+B.offsetY+(A*B.y-i.height*B.y)),u=Math.min(i.width,x),l=Math.min(i.height,A);break;case bn:x=i.width,A=i.height;break;case li:case Ir:L===li?(L=Math.min(i.height/A,i.width/x),x*=L,A*=L):L===Ir&&(L=Math.max(i.height/A,i.width/x),x*=L,A*=L,x>=i.width&&(o=(o+B.offsetX+(x*B.x-i.width*B.x)/x)*u),A>=i.height&&(s=(s+B.offsetY+(A*B.y-i.height*B.y)/A)*l),u*=1/(x/i.width),l*=1/(A/i.height),x=i.width,A=i.height)}L=this.Df()*t.scale;var V=x*L*A*L,ye=u*l/V,oe=n.__goCache;L=null;var Me=Db;if(!r){if(n.sq&&oe!==void 0&&4<V&&ye>Me*Me)for(oe.gi===null&&(zy(oe,4,f,p,n),zy(oe,16,f,p,n)),r=oe.gi,f=r.length,p=0;p<f&&r[p].ratio*r[p].ratio<ye;p++)L=r[p];if(!t.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{r=new Hu(null).context;try{r.drawImage(this.Eg,0,0)}catch(Be){this.en=!1}try{r.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(Be){this.vl=!0}}if(this.vl)return}}switch(r=x<i.width?B.offsetX+(i.width*B.x-x*B.x):0,B=A<i.height?B.offsetY+(i.height*B.y-A*B.y):0,this.flip){case Br:e.translate(Math.min(i.width,x),0),e.scale(-1,1);break;case dr:e.translate(0,Math.min(i.height,A)),e.scale(1,-1);break;case ho:e.translate(Math.min(i.width,x),Math.min(i.height,A)),e.scale(-1,-1)}if(e.yc(),t.Gf("pictureRatioOptimization")&&!t.$i&&oe!==void 0&&L!==null&&L.ratio!==1){e.save(),t=L.ratio;try{e.drawImage(L.source,o/t,s/t,Math.min(L.source.width,u/t),Math.min(L.source.height,l/t),r,B,Math.min(i.width,x),Math.min(i.height,A)),e instanceof tu&&(this.bt=[o/t,s/t,Math.min(L.source.width,u/t),Math.min(L.source.height,l/t),r,B,Math.min(i.width,x),Math.min(i.height,A)])}catch(Be){this.en=!1}e.restore()}else try{e.drawImage(n,o,s,u,l,r,B,Math.min(i.width,x),Math.min(i.height,A)),e instanceof tu&&(this.bt=[o,s,u,l,r,B,Math.min(i.width,x),Math.min(i.height,A)])}catch(Be){this.en=!1}switch(this.flip){case Br:e.scale(-1,1),e.translate(-Math.min(i.width,x),0);break;case dr:e.scale(1,-1),e.translate(0,-Math.min(i.height,A));break;case ho:e.scale(-1,-1),e.translate(-Math.min(i.width,x),-Math.min(i.height,A))}}}}},Hl.prototype.Wl=function(e,t,n,i){var r=this.desiredSize,o=zl(this,!0),s=this.Eg,l=this.qn,u=0,f=0;(l||!this.al&&s&&s.complete)&&(this.al=!0),s===null?(isFinite(r.width)||(e=0),isFinite(r.height)||(t=0)):(u=l?+s.width:s.naturalWidth,f=l?+s.height:s.naturalHeight),isFinite(r.width)||o===bn||o===vi?(isFinite(e)||(this.sourceRect.w()?e=this.sourceRect.width:s!==null&&(e=u)),n=0):s!==null&&this.al!==!1&&(e=this.sourceRect.w()?this.sourceRect.width:u),isFinite(r.height)||o===bn||o===Oi?(isFinite(t)||(this.sourceRect.w()?t=this.sourceRect.height:s!==null&&(t=f)),i=0):s!==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),s===null||s.complete||(isFinite(e)||(e=0),isFinite(t)||(t=0)),Ws(this.dc,e,t),this.Ge(0,0,e,t)},Hl.prototype.eh=function(e,t,n,i){cl(this,e,t,n,i)},ht.Object.defineProperties(Hl.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||pt("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 Wt),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()||(Zs(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(xs){var i=null;if(n[e]!==void 0)i=n[e];else if(e!==""){30<Y0&&(Af(),n=Nf),i=Kn("img"),i.hn=!0,By(this,i);var r=this.rl;r!==null&&(i.crossOrigin=r(this)),i.src=e,n[e]=i,Y0++}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}}}),Hl.prototype.redraw=Hl.prototype.redraw,Hl.prototype.reloadSource=Hl.prototype.hA;var Y0=0,Db=4;Hl.className="Picture",Nf=new ae,Hl.clearCache=Af;function _y(){this.gi=null}function zy(e,t,n,i,r){e.gi===null&&(e.gi=[]);var o=new Hu(null),s=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),s.setTransform(l*n,0,0,l*n,0,0),s.yc(),s.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 kn,this.mc=null}kf.prototype.reset=function(e){e!==null?(e.ka(),this.os=e,e.figures.clear()):this.os=new kn,this.mc=null};function If(e,t,n,i,r,o){e.mc=new Cs,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 Nr(go);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 Nr(ro);i.endX=e,i.endY=t,n&&i.close(),this.mc.segments.add(i)};function bh(e,t,n,i,r,o,s){var l;l===void 0&&(l=!1);var u=new Nr(_s);u.point1X=t,u.point1Y=n,u.point2X=i,u.point2Y=r,u.endX=o,u.endY=s,l&&u.close(),e.mc.segments.add(u)}function Z0(e,t,n,i,r){var o;o===void 0&&(o=!1);var s=new Nr(Wa);s.point1X=t,s.point1Y=n,s.endX=i,s.endY=r,o&&s.close(),e.mc.segments.add(s)}kf.prototype.arcTo=function(e,t,n,i,r,o,s){o===void 0&&(o=0),s===void 0&&(s=!1);var l=new Nr(os);l.startAngle=e,l.sweepAngle=t,l.centerX=n,l.centerY=i,l.radiusX=r,l.radiusY=o!==0?o:r,s&&l.close(),this.mc.segments.add(l)};function Fb(e,t,n,i,r,o,s,l){var u;u===void 0&&(u=!1),t=new Nr(Va,s,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 rl(e,t){var n=e.toLowerCase(),i=Ye.Ze;i[e]=t,i[n]=e}rl("Rectangle",function(e,t,n){e="r"+t+","+n;var i=Ye.Mf[e];return i!==void 0||(i=new kn(kn.u),i.endX=t,i.endY=n,Ye.Nf<Ye.vm&&(Ye.Mf[e]=i,Ye.Nf++)),i}),rl("Square",function(e,t,n){e="s"+t+","+n;var i=Ye.Mf[e];return i!==void 0||(i=new kn(kn.u),i.endX=t,i.endY=n,i.defaultStretch=li,Ye.Nf<Ye.vm&&(Ye.Mf[e]=i,Ye.Nf++)),i}),rl("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=Ye.Mf[i];if(r!==void 0)return r;var o=e*Ye.wg;return r=new kn().add(new Cs(e,0,!0).add(new Nr(ro,t-e,0)).add(new Nr(_s,t,e,t-o,0,t,o)).add(new Nr(ro,t,n-e)).add(new Nr(_s,t-e,n,t,n-o,t-o,n)).add(new Nr(ro,e,n)).add(new Nr(_s,0,n-e,o,n,0,n-o)).add(new Nr(ro,0,e)).add(new Nr(_s,e,0,0,o,o,0).close())),1<o&&(r.spot1=new oi(0,0,o,o),r.spot2=new oi(1,1,-o,-o)),Ye.Nf<Ye.vm&&(Ye.Mf[i]=r,Ye.Nf++),r}),rl("Border","RoundedRectangle"),rl("Ellipse",function(e,t,n){e="e"+t+","+n;var i=Ye.Mf[e];return i!==void 0||(i=new kn(kn.F),i.endX=t,i.endY=n,i.spot1=Gl,i.spot2=Za,Ye.Nf<Ye.vm&&(Ye.Mf[e]=i,Ye.Nf++)),i}),rl("Circle",function(e,t,n){e="c"+t+","+n;var i=Ye.Mf[e];return i!==void 0||(i=new kn(kn.F),i.endX=t,i.endY=n,i.spot1=Gl,i.spot2=Za,i.defaultStretch=li,Ye.Nf<Ye.vm&&(Ye.Mf[e]=i,Ye.Nf++)),i}),rl("TriangleRight",function(e,t,n){return new kn().add(new Cs(0,0).add(new Nr(ro,t,.5*n)).add(new Nr(ro,0,n).close())).pm(0,.25,.5,.75)}),rl("TriangleDown",function(e,t,n){return new kn().add(new Cs(0,0).add(new Nr(ro,t,0)).add(new Nr(ro,.5*t,n).close())).pm(.25,0,.75,.5)}),rl("TriangleLeft",function(e,t,n){return new kn().add(new Cs(t,n).add(new Nr(ro,0,.5*n)).add(new Nr(ro,t,0).close())).pm(.5,.25,1,.75)}),rl("TriangleUp",function(e,t,n){return new kn().add(new Cs(t,n).add(new Nr(ro,0,n)).add(new Nr(ro,.5*t,0).close())).pm(.25,.5,.75,1)}),rl("Triangle","TriangleUp"),rl("Diamond",function(e,t,n){return new kn().add(new Cs(.5*t,0).add(new Nr(ro,0,.5*n)).add(new Nr(ro,.5*t,n)).add(new Nr(ro,t,.5*n).close())).pm(.25,.25,.75,.75)}),rl("LineH",function(e,t,n){return e=new kn(kn.j),e.startX=0,e.startY=n/2,e.endX=t,e.endY=n/2,e}),rl("LineV",function(e,t,n){return e=new kn(kn.j),e.startX=t/2,e.startY=0,e.endX=t/2,e.endY=n,e}),rl("None","Rectangle"),rl("BarH","Rectangle"),rl("BarV","Rectangle"),rl("MinusLine","LineH"),rl("PlusLine",function(e,t,n){return new kn().add(new Cs(0,n/2,!1).add(new Nr(ro,t,n/2)).add(new Nr(go,t/2,0)).add(new Nr(ro,t/2,n)))}),rl("XLine",function(e,t,n){return new kn().add(new Cs(0,n,!1).add(new Nr(ro,t,0)).add(new Nr(go,0,0)).add(new Nr(ro,t,n)))}),rl("LineRight",function(e,t,n){return new kn().add(new Cs(.25*t,0,!1).add(new Nr(ro,.75*t,.5*n)).add(new Nr(ro,.25*t,n)))}),rl("LineDown",function(e,t,n){return new kn().add(new Cs(0,.25*n,!1).add(new Nr(ro,.5*t,.75*n)).add(new Nr(ro,t,.25*n)))}),rl("LineLeft",function(e,t,n){return new kn().add(new Cs(.75*t,0,!1).add(new Nr(ro,.25*t,.5*n)).add(new Nr(ro,.75*t,n)))}),rl("LineUp",function(e,t,n){return new kn().add(new Cs(0,.75*n,!1).add(new Nr(ro,.5*t,.25*n)).add(new Nr(ro,t,.75*n)))}),Ye.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=ra,this.ir=null,this.jr="",this.lr=Ur,this.Gq="",this.Hq=Qo,this.Pq=eo,this.Kq=br,this.Up=null,this.Cq=127,this.zr=fo,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 Ei(e,t){e===void 0||e instanceof na||typeof e=="string"?xn.call(this,e):(xn.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 ce(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new Ht,this.Rh=null,this.ag=NaN,t&&Object.assign(this,t)}di(Ei,xn),Ei.prototype.cloneProtected=function(e){xn.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=Ei.prototype,U.Af=function(e){xn.prototype.Af.call(this,e),e.oh(),e.Ug=null,e.nf=null,e.Rh=null},U.toString=function(){var e=xt(this.constructor)+"#"+It(this);return this.data!==null&&(e+="("+En(this.data)+")"),e};function $l(e){e.P===null?e.P=new jg:e.P.nc&&(e.P=e.P.copy())}U.th=function(){xn.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},U.gk=function(e,t,n,i,r,o,s){var l=this.diagram;l!==null&&(e===Zo&&t==="elements"?r instanceof xn?bd(r,function(u){gv(l.partManager,u),hd(l,u)}):zh(l,r):e===qo&&t==="elements"&&(r instanceof xn?bd(r,function(u){vv(l.partManager,u,l)}):rp(l,r)),l.cb(e,t,n,i,r,o,s))},U.La=function(e){if(xn.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 xn&&bd(r,function(o){o.data!==null&&o.La()})}for(t=this.adornments;t.next();)t.value.La(e)}},Ei.prototype.updateRelationshipsFromData=function(){var e;this.data!==null&&((e=this.diagram)===null||e===void 0||e.partManager.updateRelationshipsFromData(this))},Ei.prototype.Pj=function(e){var t=this.Qf;return t===null?null:t.I(e)},Ei.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 qn),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)))}}},Ei.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)}},Ei.prototype.Ej=function(){var e=this.Qf;if(e!==null){var t=Gt();for(e=e.iterator;e.next();)t.push(e.key);e=t.length;for(var n=0;n<e;n++)this.Jf(t[n]);dn(t)}},Ei.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 er?e.groupSelectionAdornmentTemplate:e.nodeSelectionAdornmentTemplate),!(n instanceof Wr))break e;$u(n),n=n.copy(),n!==null&&(this.ph()&&this.selectionObject===this.path&&(n.type=xn.Link),n.adornedObject=t)}if(n!==null){n.type===xn.Link&&n.v(),this.bh("Selection",n);break e}}this.Jf("Selection")}for(Bb(this,e),t=this.adornments;t.next();)t.value.La()}},Ei.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=Ht.alloc().assign(n);n.ka(),n.x=t.x,n.y=t.y,n.freeze(),e.Xl(i,n),Ht.free(i),Vg(e,!1)}}Ei.prototype.Ge=function(e,t,n,i){var r=this.uc;r.h(e,t,n,i),this.Lb===null&&(this.Lb=new or);var o=this.Lb;o.reset(),this.no(o,e,t,n,i),this.Lb=o,o.ws()||o.pp(r)},Ei.prototype.no=function(e,t,n,i,r){if(this.Ca!==1&&e.scale(this.Ca),this.Kb!==0){var o=kr;this.locationSpot.sb()&&(o=this.locationSpot);var s=ce.alloc();if(this.locationObject!==this)for(t=this.locationObject,n=t.naturalBounds,s.yi(n.x,n.y,n.width,n.height,o),t.Lb!==null&&t.Lb.Ga(s),s.offset(-t.measuredBounds.x,-t.measuredBounds.y),o=t.panel;o!==null&&o!==this;)o.Lb!==null&&o.Lb.Ga(s),s.offset(-o.measuredBounds.x,-o.measuredBounds.y),o=o.panel;else s.yi(t,n,i,r,o);e.rotate(this.Kb,s.x,s.y),ce.free(s)}},Ei.prototype.move=function(e,t){t===!0?this.location=e:this.position=e},Ei.prototype.moveTo=function(e,t,n){e=ce.allocAt(e,t),this.move(e,n),ce.free(e)},Ei.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())},Ei.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())},Ei.prototype.fb=function(e){if(this.name===e)return this;var t=this.Rh;if(t===null&&(this.Rh=t=new qn),t.I(e)!==null)return t.I(e);var n=xn.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 ce),n=n.Mc()?kr: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}Ei.prototype.mi=function(e){return e===void 0&&(e=new Ht),e.assign(this.actualBounds)},Ei.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function jy(e){var t=ce.alloc(),n=e.locationObject,i=n.naturalBounds,r=n instanceof ar?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 s=e.shadowBlur;return e=e.shadowOffset,o+=s,t+=s,i-=s/2,r-=s/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}Ei.prototype.arrange=function(){if(xl(this)===!1)$y(this);else{Fc(this,!1);var e=this.Ib,t=Ht.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()||Ye.B(t.width,e.width)&&Ye.B(t.height,e.height)||0<=this.vw&&this.C(16),Ht.free(t),Vg(this,!1)}},U=Ei.prototype,U.Xl=function(e,t){var n=this.diagram;if(n!==null){var i=!1;if(n.Zi===!1&&e.w()){var r=Ht.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),Ht.free(r)}!(this.G&65536)&&e.D(t)||Yy(this,i,n),n.N(),!e.w()&&!t.w()||po(e,t)||(this instanceof Wn&&!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 ce(i.x+(e.x-t),i.y+(e.y-n)),this.g("location",i,this.ke.copy())),jh(this)===!1&&xl(this)===!1&&(Q0(this),$y(this)),!0};function Gy(e,t,n,i,r){t===null||e instanceof Wr||(t=t.animationManager,t.zb&&zs(t,e,new ce(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)||xl(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(),s=t.w();o&&s?e.G&2097152?Vy(e,t,n,r,i):Ky(e,t,n,r,i):o?Vy(e,t,n,r,i):s&&Ky(e,t,n,r,i),e.G|=2097152,ce.free(i),e.Uk()}function Vy(e,t,n,i,r){var o=t.x,s=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 Wr||zs(n,e,new ce(o,s),t),i||t.x===o&&t.y===s||e.g("position",new ce(o,s),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 Yy(e,t,n){Kg(e,!1),e instanceof Wn&&fh(n,e),e.layer.isTemporary||t||n.Ya(),t=e.Ib;var i=n.viewportBounds;i.w()?Gh(e)?(Ut(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,xi('Should not change the class of the Part when changing category from "'+n+'" to "'+i+'"'),xi(" Old class: "+xt(e.constructor)+", new class: "+xt(t.constructor)+", part: "+e.toString())),e.Ej();var r=e.data;n=e.layerName;var o=e.isSelected,s=e.isHighlighted,l=!0,u=!0,f=!1;e instanceof Wn&&(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=s?e.G|524288:e.G&-524289,e instanceof Wn&&(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)}Ei.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},Ei.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},Ei.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},Ei.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},Ei.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},Ei.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},Ei.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},Ei.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},Ei.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=Ei.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&&!xl(this)&&!jh(this)&&this.isVisible()&&this.Ib.w()&&e.N(Ed(this,this.Ib))},U.v=function(){xn.prototype.v.call(this);var e=this.diagram;e!==null&&(e.De.add(this),this instanceof Wn&&this.labeledLink!==null&&bl(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 Yg(this,this)};function Yg(e,t){var n=t.containingGroup;return n!==null?1+Yg(e,n):t instanceof Wn&&(t=t.labeledLink,t!==null)?Yg(e,t):0}U.sz=function(){return Zy(this,this)};function Zy(e,t){var n=t.containingGroup;return n!==null||t instanceof Wn&&(n=t.labeledLink,n!==null)?Zy(e,n):t}U.Td=function(e){return e instanceof er?Zg(this,this,e):!1};function Zg(e,t,n){if(t===n||n===null)return!1;var i=t.containingGroup;return i===null||i!==n&&!Zg(e,i,n)?t instanceof Wn&&(t=t.labeledLink,t!==null)?Zg(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 er&&J0(t,!0),t instanceof Wn){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 Wn&&(e=t.labeledLink,e!==null&&(t=e)),t=t.containingGroup}for(t=this;t!==null;)t instanceof er&&J0(t,!1),t instanceof Wn&&(e=t.labeledLink,e!==null&&(t=e)),t=t.containingGroup;return n},Ei.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var e=this.layer;return!(e!==null&&e.isTemporary||this instanceof Wn&&this.isLinkLabel)},Ei.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 Wn&&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 Wr)){if(e.add(t),t instanceof Wn){if(n&&t instanceof er)for(var s=t.memberParts;s.next();)Wh(e,s.value,n,i,r,o);if(r!==!1)for(s=t.linksConnected;s.next();){var l=s.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 In)for(t=t.labelNodes;t.next();)Wh(e,t.value,n,i,r,o)}}ht.Object.defineProperties(Ei.prototype,{key:{get:function(){var e=this.diagram;if(e!==null)return e.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?Et: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(qo,"parts",t,this,null,i,!0),i=e.oi(99999999,this,!0),t.visible!==e.visible&&this.Zb(e.visible),0<=i&&n.cb(Zo,"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&&($l(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&&Y(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 Wr?this.type!==xn.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:eo},set:function(e){var t=this.minLocation;t.D(e)||(e=e.J(),$l(this),this.P.Pq=e,this.g("minLocation",t,e))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:br},set:function(e){var t=this.maxLocation;t.D(e)||(e=e.J(),$l(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&&($l(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:Qo},set:function(e){var t=this.locationSpot;t.D(e)||(e=e.J(),$l(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,xl(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 Wr)){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 Wr?this instanceof Wr&&(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&&($u(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&&($u(n),n=n.copy(),n===null||n instanceof In||(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&&($l(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&&($l(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&&($l(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 In?(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&&($l(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&&($l(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&&($l(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:ra},set:function(e){var t=this.resizeCellSize;t.D(e)||(e=e.J(),$l(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&&($l(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&&($l(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:Ur},set:function(e){var t=this.rotationSpot;t.D(e)||(e=e.J(),$l(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&&pt("Cannot make a Group a member of itself: "+this.toString()),pt("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 er&&n!==null&&n.ai.remove(this),this.Ah=e,e!==null?qg(e,this):this instanceof er&&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 er){for(n=new Wt,Wh(n,this,!0,0,!0),n=n.iterator;n.next();)if(i=n.value,i instanceof Wn)for(i=i.linksConnected;i.next();)Mf(i.value)}if(this instanceof Wn){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&&Y(t,-1,e))}}else pt("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&&($l(this),this.P.Kp=e,this.g("containingGroupChanged",t,e))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof Wn&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(e){var t=this.layoutConditions;t!==e&&($l(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&&($l(this),this.P.Up=e,this.g("dragComputation",t,e))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:fo},set:function(e){var t=this.shadowOffset;t.D(e)||(e=e.J(),$l(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&&($l(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&&($l(this),this.P.Vg=e,this.N(),this.g("shadowBlur",t,e))}}}),Ei.prototype.invalidateLayout=Ei.prototype.C,Ei.prototype.findCommonContainingGroup=Ei.prototype.px,Ei.prototype.isMemberOf=Ei.prototype.Td,Ei.prototype.findTopLevelPart=Ei.prototype.sz,Ei.prototype.findSubGraphLevel=Ei.prototype.oz,Ei.prototype.ensureBounds=Ei.prototype.Va,Ei.prototype.getDocumentBounds=Ei.prototype.mi,Ei.prototype.findObject=Ei.prototype.fb,Ei.prototype.moveTo=Ei.prototype.moveTo,Ei.prototype.invalidateAdornments=Ei.prototype.Wb,Ei.prototype.clearAdornments=Ei.prototype.Ej,Ei.prototype.removeAdornment=Ei.prototype.Jf,Ei.prototype.addAdornment=Ei.prototype.bh,Ei.prototype.findAdornment=Ei.prototype.Pj,Ei.prototype.updateTargetBindings=Ei.prototype.La;var Qy=!1;Ei.className="Part",Ei.LayoutNone=0,Ei.LayoutAdded=1,Ei.LayoutRemoved=2,Ei.LayoutShown=4,Ei.LayoutHidden=8,Ei.LayoutNodeSized=16,Ei.LayoutGroupLayout=32,Ei.LayoutNodeReplaced=64,Ei.LayoutStandard=127,Ei.LayoutAll=16777215;function Wr(e,t){e===void 0||e instanceof na||typeof e=="string"?Ei.call(this,e):(Ei.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)}di(Wr,Ei),Wr.prototype.toString=function(){var e=this.adornedPart;return"Adornment("+this.category+")"+(e!==null?e.toString():"")},Wr.prototype.updateRelationshipsFromData=function(){},Wr.prototype.Ul=function(e){var t=this.adornedObject,n=t==null?void 0:t.part;if(n instanceof In&&t instanceof ar){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 ar&&(r.ua=e)}}},Wr.prototype.si=function(){var e=this.ue;return e===null?!0:(e=e.part,e===null||!xl(e))},Wr.prototype.Zc=function(){return!1},Wr.prototype.gk=function(e,t,n,i,r,o,s){if(e===Zo&&t==="elements"){if(r instanceof El)this.$a===null&&(this.$a=r);else if(r instanceof xn){var l=r.Nl(function(u){return u instanceof El});l instanceof El&&this.$a===null&&(this.$a=l)}}else e===qo&&t==="elements"&&this.$a!==null&&(i===this.$a?this.$a=null:i instanceof xn&&this.$a.rg(i)&&(this.$a=null));Ei.prototype.gk.call(this,e,t,n,i,r,o,s)},Wr.prototype.updateAdornments=function(){},Wr.prototype.Lj=function(){},ht.Object.defineProperties(Wr.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}}}),Wr.className="Adornment";function Xg(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=Oa,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 Wn(e,t){e===void 0||e instanceof na||typeof e=="string"?Ei.call(this,e):(Ei.call(this),e&&(t=e)),this.U=13,this.Ba=null,this.jb=new Zt,this.wc=this.af=this.Yk=null,this.ci=!1,t&&Object.assign(this,t)}di(Wn,Ei),Wn.prototype.cloneProtected=function(e){Ei.prototype.cloneProtected.call(this,e),e.U=this.U,this.Ba!==null&&(e.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},U=Wn.prototype,U.Af=function(e){Ei.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(){Ei.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function Jy(e,t){t!==null&&(e.af===null&&(e.af=new Wt),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,s){e===Zo&&t==="elements"?this.wc=null:e===qo&&t==="elements"&&(this.wc=null),Ei.prototype.gk.call(this,e,t,n,i,r,o,s)},U.Bd=function(e){for(var t=this.linksConnected;t.next();){var n=t.value;e!==void 0&&e.contains(n)||(nu(n.fromPort),nu(n.toPort),n.bb())}};function e1(e,t){for(e=e.linksConnected;e.next();){var n=e.value;(n.fromPort===t||n.toPort===t)&&(nu(n.fromPort),nu(n.toPort),n.bb())}}function nu(e){if(e!==null){var t=e.Zn;t!==null&&t.Sl(),e=e.part,t=e.containingGroup,t===null||e.isVisible()||nu(t.port)}}U.si=function(){return!0},Wn.prototype.getAvoidableRect=function(e){return e.set(this.actualBounds),e.Co(this.avoidableMargin),e},Wn.prototype.findVisibleNode=function(){for(var e=this;e!==null&&!e.isVisible();)e=e.containingGroup;return e},Wn.prototype.isVisible=function(){if(!Ei.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===Ys){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},Wn.prototype.Zb=function(e){Ei.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)}},Wn.prototype.qx=function(){var e=new Wt,t=new Wt;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(s){s.isTreeLink?(r?s.fromNode===t:s.toNode===t)&&t1(e,r?s.toNode:s.fromNode,n,i):i.add(s)})}}Wn.prototype.findLinksConnected=function(e){if(e===void 0&&(e=null),e===null)return this.jb.iterator;var t=new Pn(this.jb),n=this;return t.predicate=function(i){return i.fromNode===n&&i.fromPortId===e||i.toNode===n&&i.toPortId===e},t},U=Wn.prototype,U.Mo=function(e){e===void 0&&(e=null);var t=new Pn(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 Pn(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 Wt,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 Wt,t.add(n),t.add(r)):n=r)}return t!==null?t.iterator:n!==null?new Ni(n):Et},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 Wt,t.add(n),t.add(r)):n=r)}return t!==null?t.iterator:n!==null?new Ni(n):Et},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 Wt,t.add(n),t.add(r)):n=r)}return t!==null?t.iterator:n!==null?new Ni(n):Et},U.jz=function(e,t,n){t===void 0&&(t=null),n===void 0&&(n=null);var i=new Pn(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 Pn(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){nu(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,s=e.diagram;s!==null&&(o=s.aa,s.aa=!0),r(e,t,n),s!==null&&(s.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){nu(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 s=!0;r!==null&&(s=r.aa,r.aa=!0),o(e,t,n),r!==null&&(r.aa=s)}}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}}}Wn.prototype.updateRelationshipsFromData=function(){var e=this.diagram;e!==null&&e.partManager.updateRelationshipsFromData(this)},U=Wn.prototype,U.Vo=function(e){Ei.prototype.Vo.call(this,e),e||(Np(this),e=this.Yk,e!==null&&c1(e,this))},U.Wo=function(e){Ei.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,Ei.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 qn: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=Gt()),n.push(i);if(n!==null){for(e=0;e<n.length;e++)t.remove(n[e]);dn(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 Wn)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 Wt;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 Pn(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 Zt,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 Zt,t.add(n),t.add(e)):n=e);return t!==null?t.iterator:n!==null?new Ni(n):Et},U.wz=function(e){e===void 0&&(e=1/0);var t=new Wt;return Wh(t,this,!1,e,!0),t},Wn.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 Wt;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,s){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,s)))}else s1(e,t,n,r,o,s)}function s1(e,t,n,i,r,o){for(var s=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),s){var x=n?f.Oo():f.Po();u.uv=e,x.all(function(A){return function(L){return L===A.uv||!L.isTreeExpanded}}(u))&&i.Aj(f,r),f.oh(),f.Zb(!1)}f.isTreeExpanded&&(f.wasTreeExpanded=f.isTreeExpanded,p||s1(f,t,n,i,r,o))}u={uv:u.uv}}e.isTreeExpanded=!1}Wn.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 Wt;n.add(this),a1(this,n,t.isTreePathToChildren,e,t,this,t.treeCollapsePolicy===mh),t.Ue=!1}};function a1(e,t,n,i,r,o,s){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(A){return function(L){return L===A.vv||!L.isTreeExpanded}}(f))&&r.Cj(p,o)}(2<i||p.wasTreeExpanded)&&(p.wasTreeExpanded=!1,a1(p,t,n,i-1,r,o,s))}f={vv:f.vv}}e.isTreeExpanded=!0}ht.Object.defineProperties(Wn.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:Oa},set:function(e){typeof e=="number"&&(e=new pi(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 s=o.wa(i);s!==void 0&&o.Qx(r,s)}}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),bl(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))}}}),Wn.prototype.expandTree=Wn.prototype.expandTree,Wn.prototype.collapseTree=Wn.prototype.collapseTree,Wn.prototype.findTreeParts=Wn.prototype.wz,Wn.prototype.findTreeChildrenNodes=Wn.prototype.Ou,Wn.prototype.findTreeChildrenLinks=Wn.prototype.Qo,Wn.prototype.findTreeLevel=Wn.prototype.uz,Wn.prototype.findTreeParentChain=Wn.prototype.vz,Wn.prototype.findTreeParentNode=Wn.prototype.pg,Wn.prototype.findTreeParentLink=Wn.prototype.kh,Wn.prototype.findCommonTreeParent=Wn.prototype.gz,Wn.prototype.findTreeRoot=Wn.prototype.xz,Wn.prototype.isInTreeOf=Wn.prototype.Nz,Wn.prototype.findPort=Wn.prototype.ns,Wn.prototype.findLinksTo=Wn.prototype.kz,Wn.prototype.findLinksBetween=Wn.prototype.jz,Wn.prototype.findNodesInto=Wn.prototype.Oo,Wn.prototype.findNodesOutOf=Wn.prototype.Po,Wn.prototype.findNodesConnected=Wn.prototype.Mu,Wn.prototype.findLinksInto=Wn.prototype.Sd,Wn.prototype.findLinksOutOf=Wn.prototype.Mo,Wn.prototype.findExternalTreeLinksConnected=Wn.prototype.qx,Wn.prototype.invalidateConnectedLinks=Wn.prototype.Bd,Wn.prototype.invalidateLinkBundle=Wn.prototype.Lz;var _b=new Kt(Wn,"SpreadingNone",10),tm=new Kt(Wn,"SpreadingEvenly",11),Jg=new Kt(Wn,"SpreadingPacked",12);Wn.className="Node",Wn.SpreadingNone=_b,Wn.SpreadingEvenly=tm,Wn.SpreadingPacked=Jg;function er(e,t){e===void 0||e instanceof na||typeof e=="string"?Wn.call(this,e):(Wn.call(this),e&&(t=e)),this.U|=4608,this.Gn=new Wt,this.$a=null,this.Sc=new Vo,this.Sc.group=this,this.gl=new Wt,this.tb=this.$p=null,t&&Object.assign(this,t)}di(er,Wn),er.prototype.cloneProtected=function(e){Wn.prototype.cloneProtected.call(this,e),this.U=this.U&-32769;var t=e.Nl(function(n){return n instanceof El});t instanceof El?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=er.prototype,U.Af=function(e){Wn.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 Wn)n.Bd(t);else if(n instanceof In)for(n=n.labelNodes;n.next();)n.value.Bd(t)}},U.gk=function(e,t,n,i,r,o,s){if(e===Zo&&t==="elements"){if(r instanceof El)this.$a===null?this.$a=r:this.$a!==r&&pt("Cannot insert a second Placeholder into the visual tree of a Group.");else if(r instanceof xn){var l=r.Nl(function(u){return u instanceof El});l instanceof El&&(this.$a===null?this.$a=l:this.$a!==l&&pt("Cannot insert a second Placeholder into the visual tree of a Group."))}}else e===qo&&t==="elements"&&this.$a!==null&&(i===this.$a?this.$a=null:i instanceof xn&&this.$a.rg(i)&&(this.$a=null));Wn.prototype.gk.call(this,e,t,n,i,r,o,s)},U.Xl=function(e,t){Wn.prototype.Xl.call(this,e,t),this.isClipping&&this.type!==xn.Spot&&this.isSubGraphExpanded&&(e=this.resizeObject,e instanceof xn&&(e=e.Pb()),this.tb===null&&(this.tb=new Ht),e.mi(this.tb),e instanceof ar&&this.tb.Bc(-e.strokeWidth,-e.strokeWidth))},U.eh=function(e,t,n,i){this.nf=this.$a,Wn.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 In||t.Va()}),Wn.prototype.Va.call(this)},U.si=function(){if(!Wn.prototype.si.call(this))return!1;for(var e=this.memberParts;e.next();){var t=e.value;if(t instanceof Wn){if(t.isVisible()&&xl(t))return!1}else if(t instanceof In&&t.isVisible()&&xl(t)&&t.fromNode!==this&&t.toNode!==this)return!1}return!0};function qg(e,t){if(e.Gn.add(t)){t instanceof er&&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 In&&!e.computesBoundsIncludingLinks||(t=e.$a,t===null&&(t=e),t.v())}function ev(e,t){if(e.Gn.remove(t)){t instanceof er&&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 In&&!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)}Wn.prototype.Lj.call(this)},er.prototype.canAddMembers=function(e){var t=this.diagram;if(t===null)return!1;for(t=t.commandHandler,e=zt(e).iterator;e.next();)if(!t.isValidMember(this,e.value))return!1;return!0},er.prototype.addMembers=function(e,t){var n=this.diagram;if(n===null)return!1;n=n.commandHandler;var i=!0;for(e=zt(e).iterator;e.next();){var r=e.value;!t||n.isValidMember(this,r)?r.containingGroup=this:i=!1}return i},er.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=er.prototype,U.Bd=function(e){var t=(this.U&65536)!==0;if(Wn.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()?(nu(n.fromPort),nu(n.toPort),n.bb()):(i=n.toNode,i!==null&&i!==this&&i.Td(this)&&!i.isVisible()&&(nu(n.fromPort),nu(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 Wt,i=t.iterator;i.next();){var r=i.value;if(r instanceof Wn)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 Wt,n=e.iterator;n.next();){var i=n.value;if(i instanceof Wn)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 Wt;return e(this,t),t},U.Rj=function(){var e=new Wt;return Wh(e,this,!0,0,!0),e.remove(this),e},U.Zb=function(e){Wn.prototype.Zb.call(this,e);for(var t=this.memberParts;t.next();)t.value.Zb(e)},er.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 er&&o.isSubGraphExpanded&&(o.wasSubGraphExpanded=o.isSubGraphExpanded,l1(o,t,n,i)),o instanceof Wn)o.Bd(t),n.Aj(o,i);else if(o instanceof In)for(o=o.labelNodes;o.next();)o.value.Bd(t)}e.isSubGraphExpanded=!1}er.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 er&&o.wasSubGraphExpanded&&(o.wasSubGraphExpanded=!1,u1(o,t,n,i)),o instanceof Wn)o.Bd(t),n.Cj(o,i);else if(o instanceof In)for(o=o.labelNodes;o.next();)o.value.Bd(t)}e.isSubGraphExpanded=!0}er.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=ce.alloc(),Wn.prototype.move.call(this,e,t),e=new Wt,t=this.Rj().iterator;t.next();)r=t.value,r instanceof In&&(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 Wn&&r.isLinkLabel)){var s=r.position,l=r.location;s.w()?(o.x=s.x+i,o.y=s.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 In&&(r.suspendsRouting=e.contains(r),r.fd||r.fromNode!==this&&r.toNode!==this)&&(s=r.position,o.x=s.x+i,o.y=s.y+n,o.w()?r.move(o):r.bb(),nv(r)&&r.bb());ce.free(o)}},ht.Object.defineProperties(er.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&&pt("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)}}}),er.prototype.expandSubGraph=er.prototype.expandSubGraph,er.prototype.collapseSubGraph=er.prototype.collapseSubGraph,er.prototype.findSubGraphParts=er.prototype.Rj,er.prototype.findContainingGroupChain=er.prototype.hz,er.prototype.findExternalNodesConnected=er.prototype.iz,er.prototype.findExternalLinksConnected=er.prototype.Lu,er.prototype.ensureBounds=er.prototype.Va,er.className="Group";function El(e){it.call(this),this.yb=ha,this.ko=new Ht(NaN,NaN,NaN,NaN),e&&Object.assign(this,e)}di(El,it),El.prototype.cloneProtected=function(e){it.prototype.cloneProtected.call(this,e),e.yb=this.yb.J(),e.ko=this.ko.copy()},El.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)},El.prototype.Wl=function(){var e=this.part;if(e!==null&&(e instanceof er||e instanceof Wr)||pt("Placeholder is not inside a Group or Adornment."),e instanceof er){var t=this.computeBorder(this.ko),n=this.minSize,i=this.dc;for(Ws(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=ce.alloc(),n.xi(t,e.locationSpot),n.D(e.location)||(e.location=n),ce.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 s=0;o instanceof ar&&(s=o.strokeWidth);var l=o.Df(),u=o.naturalBounds,f=(u.width+s)*l;s=(u.height+s)*l,e.type!==xn.Link&&(l=o.ga(e.category==="Selection"?Qo:e.locationSpot,ce.alloc()),e.location=l,ce.free(l)),isNaN(f)||isNaN(s)?(e=o.ga(Qo,ce.alloc()),f=Ht.allocAt(e.x,e.y,0,0),f.Ye(o.ga(zo,e)),f.Ye(o.ga(Go,e)),f.Ye(o.ga(La,e)),Ws(t,f.width+i||0,f.height+r||0),this.Ge(-n.left,-n.top,t.width,t.height),ce.free(e),Ht.free(f)):(Ws(t,f+i||0,s+r||0),this.Ge(-n.left,-n.top,t.width,t.height))}},El.prototype.eh=function(e,t,n,i){this.actualBounds.h(e,t,n,i)},El.prototype.computeBorder=function(e){var t=this.part,n=t.diagram,i=n===null||!n.animationManager.isAnimating;if(n!==null&&t instanceof er&&!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=Ht.alloc(),r=this.computeMemberBounds(n);var o=this.yb;return t instanceof er&&!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)),Ht.free(n),i&&t instanceof er&&t.computesBoundsIncludingLocation&&t.location.w()&&e.Ye(t.location),e},El.prototype.computeMemberBounds=function(e){if(!(this.part instanceof er))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,s=t.memberParts;s.next();){var l=s.value;if(l.isVisible()){if(l instanceof In&&(!t.computesBoundsIncludingLinks||vu(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(El.prototype,{padding:{get:function(){return this.yb},set:function(e){typeof e=="number"&&(e=new pi(e));var t=this.yb;t.D(e)||(this.yb=e=e.J(),this.g("padding",t,e),this.v())}}}),El.className="Placeholder";function In(e){Ei.call(this,xn.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=wl,this.Om=0,this.Qm=wl,this.Rm=NaN,this.qj=ov,this.po=.5,this.wd=null,this.Nb=new Zt().freeze(),this.Tg=this.Mg=null,this.ml=new Ht,this.ua=new kn,this.u=this.o=this.Sf=this.Wf=null,this.su=new ce,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],e&&Object.assign(this,e)}di(In,Ei),In.prototype.cloneProtected=function(e){Ei.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=In.prototype,U.Af=function(e){Ei.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&&nu(t),e=e.toPort,e!==null&&nu(e)},U.qb=function(e){e.classType===In?(e.value&2)===2?this.routing=e:e===bu||e===wh||e===Lf?this.curve=e:e===Ip||e===am||e===lm?this.adjusting=e:e!==ov&&e!==wl&&pt("Unknown Link enum value for a Link property: "+e):Ei.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),xl(e)||jh(e))return!1}return e=this.toNode,!(e!==null&&(t=e.findVisibleNode(),t!==null&&(e=t),xl(e)||jh(e)))},U.zv=function(){return!1},U.Av=function(){},U.Zc=function(){return!1},In.prototype.computeAngle=function(e,t,n){return In.computeAngle(t,n)},In.computeAngle=function(e,t){switch(e){default:case wl:e=0;break;case Mp:e=t;break;case Op:e=t+90;break;case Lp:e=t-90;break;case sv:e=t+180;break;case um:e=Ye.bp(t),90<e&&270>e&&(e-=180);break;case Rp:e=Ye.bp(t+90),90<e&&270>e&&(e-=180);break;case Dp:e=Ye.bp(t-90),90<e&&270>e&&(e-=180);break;case cm:if(e=Ye.bp(t),45<e&&135>e||225<e&&315>e)return 0;90<e&&270>e&&(e-=180)}return Ye.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,s=e.diagram;s!==null&&(o=s.aa,s.aa=!0),r(e,n,t),s!==null&&(s.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=In.prototype,U.oh=function(){var e=this.containingGroup;e!==null&&this.fromNode!==e&&this.toNode!==e&&e.computesBoundsIncludingLinks&&Ei.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 Wt),e.wd.add(t),e.v()}U.Vo=function(e){if(Ei.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(Ei.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))},In.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var e=this.diagram;e!==null&&e.partManager.updateRelationshipsFromData(this)}},In.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?Ei.prototype.move.call(this,e,!1):(e=ce.allocAt(n.x+i,n.y+r),Ei.prototype.move.call(this,e,!1),ce.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)},In.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},In.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},In.prototype.computeMidPoint=function(e){var t=this.pointsCount;if(t===0)return e.assign(qi),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()===bu))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()===bu){if(t===3){n=this.i(0),i=this.i(1);var r=this.i(2);return Ye.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),Ye.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 s=this.flattenedLengths;for(n=this.flattenedTotalLength,r=o=i=0;i<n/2&&o<t&&(r=s[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},In.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()===bu))return this.ua.wx(.5);if(this.computeCurve()===bu&&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),Ye.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=In.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 ce(t,n))},U.Kz=function(e,t){this.Nb.Gb(e,t)},U.m=function(e,t,n){this.Nb.Gb(e,new ce(t,n))},U.ne=function(e){this.Nb.add(e)},U.yf=function(e,t){this.Nb.add(new ce(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 Zt,o=e.Nb.iterator;o.next();){var s=o.value;r.add(new ce(s.x+t,s.y+n).freeze())}r.freeze(),o=e.Nb,e.Nb=r,s=e.diagram,isNaN(t)||isNaN(n)||s!==null&&s.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),bl(e)),i?nm(e):(e.defaultFromPoint&&(e.defaultFromPoint=e.i(0)),e.defaultToPoint&&(e.defaultToPoint=e.i(e.pointsCount-1))),s!==null&&s.animationManager.zb&&h(s.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,s=0;s<o;s++){var l=r[s];n=Math.min(l.x,n),i=Math.min(l.y,i)}l=s=1/0;for(var u=t.s,f=u.length,p=0;p<f;p++){var x=u[p];s=Math.min(x.x,s),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-s||p.y-i!==x.y-l){this.qc();break}}else this.qc();this.Mg=null,n=this.diagram,n!==null&&n.animationManager.zb&&h(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),sm(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()}}},In.prototype.computePoints=function(){if(this.diagram===null)return!1;var e=this.fromNode,t=null;if(e===null?(Wd||(Wd=new Wn,Wd.desiredSize=Rs,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 Wn,Vd.desiredSize=Rs,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,s=this.computeSpot(!0,t);n=this.computeSpot(!1,r);var l=Of(s),u=Of(n),f=t===r&&t!==null,p=this.isOrthogonal,x=this.curve===bu;this.Wf=f&&!p?x=!0:!1;var A=this.computeAdjusting()===wl||f;if(!p&&!f&&l&&u){if(l=!1,!A&&3<=o&&(A=this.getLinkPoint(e,t,s,!0,!1,i,r),u=this.getLinkPoint(i,r,n,!1,!1,e,t),l=this.adjustPoints(0,A,o-1,u))&&(A=this.getLinkPoint(e,t,s,!0,!1,i,r),u=this.getLinkPoint(i,r,n,!1,!1,e,t),this.adjustPoints(0,A,o-1,u)),!l)if(this.Fj(),x){o=this.getLinkPoint(e,t,s,!0,!1,i,r),A=this.getLinkPoint(i,r,n,!1,!1,e,t),l=A.x-o.x,u=A.y-o.y,f=this.computeCurviness(),x=p=0;var L=o.x+l/3,B=o.y+u/3,V=L,ye=B;Ye.B(u,0)?ye=0<l?ye-f:ye+f:(p=-l/u,x=Math.sqrt(f*f/(p*p+1)),0>f&&(x=-x),V=(0>u?-1:1)*x+L,ye=p*(V-L)+B),L=o.x+2*l/3,B=o.y+2*u/3;var oe=L,Me=B;Ye.B(u,0)?Me=0<l?Me-f:Me+f:(oe=(0>u?-1:1)*x+L,Me=p*(oe-L)+B),this.Fj(),this.ne(o),this.yf(V,ye),this.yf(oe,Me),this.ne(A),this.dd(0,this.getLinkPoint(e,t,s,!0,!1,i,r)),this.dd(3,this.getLinkPoint(i,r,n,!1,!1,e,t))}else o=i,A=r,i=this.getLinkPoint(e,t,s,!0,!1,o,A),r=this.getLinkPoint(o,A,n,!1,!1,e,t),this.hasCurviness()?(A=r.x-i.x,n=r.y-i.y,s=this.computeCurviness(),e=i.x+A/2,t=i.y+n/2,o=e,l=t,Ye.B(n,0)?l=0<A?l-s:l+s:(A=-A/n,o=Math.sqrt(s*s/(A*A+1)),0>s&&(o=-o),o=(0>n?-1:1)*o+e,l=A*(o-e)+t),this.ne(i),this.yf(o,l),this.ne(r)):(this.ne(i),this.ne(r),l=Ht.alloc(),t.mi(l),u=l.ca(r),A.mi(l),f=l.ca(i),(u||f)&&(s=t.ga(rm(s),new ce),this.dd(0,this.getLinkPointFromPoint(e,t,s,r,!0,s)),n=A.ga(rm(n),new ce),this.dd(1,this.getLinkPointFromPoint(o,A,n,i,!1,n))),Ht.free(l))}else{x=this.isAvoiding,A&&(p&&x||f)&&this.Fj();var Be=f?this.computeCurviness():0;x=this.getLinkPoint(e,t,s,!0,p,i,r),L=V=B=0,(p||!l||f)&&(ye=this.computeEndSegmentLength(e,t,s,!0),L=this.getLinkDirection(e,t,x,s,!0,p,i,r),f&&(l||s.D(n)||!p&&s.x+n.x===1&&s.y+n.y===1)&&(L-=p?90:30,0>Be&&(L-=180)),0>L?L+=360:360<=L&&(L-=360),f&&(ye+=Math.abs(Be)*(p?1:2)),L===0?B=ye:L===90?V=ye:L===180?B=-ye:L===270?V=-ye:(B=ye*Math.cos(L*Math.PI/180),V=ye*Math.sin(L*Math.PI/180)),s.Mc()&&f&&(ye=t.ga(kr,ce.alloc()),oe=ce.allocAt(ye.x+1e3*B,ye.y+1e3*V),this.getLinkPointFromPoint(e,t,ye,oe,!0,x),ce.free(ye),ce.free(oe))),ye=this.getLinkPoint(i,r,n,!1,p,e,t);var je=Me=oe=0;if(p||!u||f){var tt=this.computeEndSegmentLength(i,r,n,!1);je=this.getLinkDirection(i,r,ye,n,!1,p,e,t),f&&(u||s.D(n)||!p&&s.x+n.x===1&&s.y+n.y===1)&&(je+=p?0:30,0>Be&&(je+=180)),0>je?je+=360:360<=je&&(je-=360),f&&(tt+=Math.abs(Be)*(p?1:2)),je===0?oe=tt:je===90?Me=tt:je===180?oe=-tt:je===270?Me=-tt:(oe=tt*Math.cos(je*Math.PI/180),Me=tt*Math.sin(je*Math.PI/180)),n.Mc()&&f&&(n=r.ga(kr,ce.alloc()),s=ce.allocAt(n.x+1e3*oe,n.y+1e3*Me),this.getLinkPointFromPoint(i,r,n,s,!1,ye),ce.free(n),ce.free(s))}n=x,(p||!l||f)&&(n=new ce(x.x+B,x.y+V)),s=ye,(p||!u||f)&&(s=new ce(ye.x+oe,ye.y+Me)),!A&&!p&&l&&3<o&&this.adjustPoints(0,x,o-2,s)?this.dd(o-1,ye):!A&&!p&&u&&3<o&&this.adjustPoints(1,n,o-1,ye)?this.dd(0,x):!A&&(p?6<=o:4<o)&&this.adjustPoints(1,n,o-2,s)?(this.dd(0,x),this.dd(o-1,ye)):(this.Fj(),this.ne(x),(p||!l||f)&&this.ne(n),p&&this.addOrthoPoints(n,L,s,je,e,i),(p||!u||f)&&this.ne(s),this.ne(ye))}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}In.prototype.getLinkPointFromPoint=function(e,t,n,i,r,o){if(o===void 0&&(o=new ce),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 s=n.x;n=n.y}else{e=r.oe,r=1/(e.m11*e.m22-e.m12*e.m21),s=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*s+i.y*u+p,i=i.x*l+i.y*f+x,s=n.x*s+n.y*u+p,n=n.x*l+n.y*f+x}return t.Sj(r,i,s,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)}In.prototype.getLinkPoint=function(e,t,n,i,r,o,s,l){if(l===void 0&&(l=new ce),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,s);if(f!==null&&u.Gl<f.Gl){u=ce.alloc(),f=ce.alloc();var p=new Ht(t.ga(Qo,u),t.ga(zo,f)),x=this.computeSpot(!i,s);e=this.getLinkPoint(o,s,x,!i,r,e,t,f),(n.Hf(Ol)||n.Hf(Vs))&&e.y>=p.y&&e.y<=p.y+p.height?l.y=e.y:(n.Hf(qs)||n.Hf(As))&&e.x>=p.x&&e.x<=p.x+p.width&&(l.x=e.x),ce.free(u),ce.free(f)}}return l}}return n=t.ga(rm(n),ce.alloc()),this.pointsCount>(r?6:2)?(s=i?this.i(1):this.i(this.pointsCount-2),r&&(s=tv(n,s.copy()))):(u=this.computeSpot(!i,s),o=ce.alloc(),s=s.ga(rm(u),o),r&&(s=tv(n,s)),ce.free(o)),this.getLinkPointFromPoint(e,t,n,s,i,l),ce.free(n),l},In.prototype.getLinkDirection=function(e,t,n,i,r,o,s,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(kr,ce.alloc()),this.pointsCount>(o?6:2)?(l=r?this.i(1):this.i(this.pointsCount-2),l=o?tv(u,l.copy()):n):(n=ce.alloc(),l=l.ga(kr,n),ce.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,ce.free(u),u=n}return i.Mc()&&s.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},In.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)},In.prototype.computeSpot=function(e,t){return t===void 0&&(t=null),e?(e=t||this.fromPort,e===null?e=kr:(t=this.fromSpot,t.Xb()&&(t=e.fromSpot),e=t===Ur?Di:t)):(e=t||this.toPort,e===null?e=kr:(t=this.toSpot,t.Xb()&&(t=e.toSpot),e=t===Ur?Di:t)),e};function Of(e){return e===Di||e.x===.5&&e.y===.5}function rm(e){return e.x===.5&&e.y===.5?e:kr}In.prototype.computeOtherPoint=function(e,t){return this.computeAdjusting()!==wl&&4<this.pointsCount?this.computeMidPoint(new ce):(e=t.Zn,e=e!==null?y1(e,this):null,e!==null?e.Zo:t.ga(kr))},In.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},In.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 s=o;if(o===void 0&&(s=or.alloc(),s.reset()),s.multiply(this.transform),this.fh(e,s))return Tg(this,t,n,r),o===void 0&&or.free(s),!0;if(this.Yc(e,s)){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,A=this.naturalBounds;if(!(x.x>A.width||x.y>A.height||0>x.x+x.width||0>x.y+x.height)){if(x=or.alloc(),x.set(s),p instanceof xn)l=p.Cf(e,t,n,i,r,x);else if(this.path===p){if(p instanceof ar)if(l=e,A=i,p.pickable===!1)l=!1;else if(x.multiply(p.transform),A)e:{var L=l,B=x;if(p.fh(L,B))l=!0;else{if(B===void 0&&(B=p.transform,L.Re(p.actualBounds))){l=!0;break e}l=L.left,A=L.right;var V=L.top;L=L.bottom;var ye=ce.alloc(),oe=ce.alloc(),Me=ce.alloc(),Be=or.alloc();Be.set(B),Be.bv(p.transform),Be.Vj(),oe.x=A,oe.y=V,oe.transform(Be),ye.x=l,ye.y=V,ye.transform(Be),B=!1,Sd(p,ye,oe,Me)?B=!0:(ye.x=A,ye.y=L,ye.transform(Be),Sd(p,ye,oe,Me)?B=!0:(oe.x=l,oe.y=L,oe.transform(Be),Sd(p,ye,oe,Me)?B=!0:(ye.x=l,ye.y=V,ye.transform(Be),Sd(p,ye,oe,Me)&&(B=!0)))),or.free(Be),ce.free(ye),ce.free(oe),ce.free(Me),l=B}}else l=p.fh(l,x)}else l=aa(p,e,i,x);l&&(A=p,t!==null&&(A=t(p)),A&&(n===null||n(A))&&r.add(A)),or.free(x)}}}return o===void 0&&or.free(s),l||this.background!==null||this.areaBackground!==null}return o===void 0&&or.free(s),!1},In.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?bu:this.curve},In.prototype.computeCorner=function(){if(this.curve===bu)return 0;var e=this.corner;return(isNaN(e)||0>e)&&(e=10),e},In.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},In.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,s=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===sv?e=Math.max(e,r):i===Lp||i===Dp||i===Op||i===Rp?e=Math.max(e,s):(t=t.ga(kr).ab(n.ga(kr))/180*Math.PI,e=Math.max(e,Math.abs(Math.sin(t)*s)+Math.abs(Math.cos(t)*r)+1)),this.curve===bu&&(e*=1.333)}}return e},In.prototype.arrangeBundledLinks=function(e,t){if(t)for(t=0;t<e.length;t++){var n=e[t];n.computeAdjusting()===wl&&n.bb()}},In.prototype.computeCurviness=function(){var e=this.curviness;if(isNaN(e)){e=f1;var t=this.Sf;if(t!==null){for(var n=Gt(),i=0,r=t.links,o=0;o<r.length;o++){var s=r[o].computeSpacing();n.push(s),i+=s}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),dn(n)}}return e},In.prototype.computeThickness=function(){if(!this.isVisible())return 0;var e=this.path;return e!==null?Math.max(e.strokeWidth,1):1},In.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},In.prototype.adjustPoints=function(e,t,n,i){var r=this.computeAdjusting();if(this.isOrthogonal){if(r===am)return!1;r===lm&&(r=Ip)}switch(r){case am:var o=this.i(e),s=this.i(n);if(!o.Xa(t)||!s.Xa(i)){r=o.x,o=o.y;var l=s.x-r,u=s.y-o,f=Math.sqrt(l*l+u*u);if(!Ye.$(f,0)){if(Ye.$(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);s=t.x;var x=t.y;l=i.x-s;var A=i.y-x;for(u=Math.sqrt(l*l+A*A),Ye.$(l,0)?A=0>A?-Math.PI/2:Math.PI/2:(A=Math.atan(A/Math.abs(l)),0>l&&(A=Math.PI-A)),f=u/f,p=A-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),Ye.$(t,0)||(Ye.$(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,s+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,s=x.x,x=x.y,f=(s-r)*(s-r)+(x-o)*(x-o),l=t.x,p=t.y,u=i.x,A=i.y;var L=1;if(u-l!==0){var B=(A-p)/(u-l);L=Math.sqrt(1+1/(B*B))}else B=9e9;for(this.dd(e,t),e+=1;e<n;e++){t=this.i(e);var V=t.x,ye=t.y,oe=.5;f!==0&&(oe=((r-V)*(r-s)+(o-ye)*(o-x))/f);var Me=r+oe*(s-r),Be=o+oe*(x-o);t=Math.sqrt((V-Me)*(V-Me)+(ye-Be)*(ye-Be)),ye<B*(V-Me)+Be&&(t=-t),0<B&&(t=-t),V=l+oe*(u-l),oe=p+oe*(A-p),B!==0?(t=V+t/L,this.L(e,t,oe-(t-V)/B)):this.L(e,V,oe+t)}this.dd(n,i)}return!0;case Ip:e:{if(this.isOrthogonal&&(r=this.i(e),o=this.i(e+1),s=this.i(e+2),l=o.x,p=o.y,x=l,f=p,Ye.B(r.y,o.y)?Ye.B(o.x,s.x)?p=t.y:Ye.B(o.y,s.y)&&(l=t.x):Ye.B(r.x,o.x)&&(Ye.B(o.y,s.y)?l=t.x:Ye.B(o.x,s.x)&&(p=t.y)),this.L(e+1,l,p),r=this.i(n),o=this.i(n-1),s=this.i(n-2),l=o.x,p=o.y,u=l,A=p,Ye.B(r.y,o.y)?Ye.B(o.x,s.x)?p=i.y:Ye.B(o.y,s.y)&&(l=i.x):Ye.B(r.x,o.x)&&(Ye.B(o.y,s.y)?l=i.x:Ye.B(o.x,s.x)&&(p=i.y)),this.L(n-1,l,p),nv(this))){this.L(e+1,x,f),this.L(n-1,u,A),n=!1;break e}this.dd(e,t),this.dd(n,i),n=!0}return n;default:return!1}},In.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 s=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=ce.alloc(),p=ce.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 A=this.diagram;if(A===null||r===o||this.layer.isTemporary||!hf(A)||l.ca(x)&&!o.Td(r)||u.ca(e)&&!r.Td(o))t=!1;else{var L=df(A,!0,this.containingGroup,null);if(this.segmentIndex!==17&&L.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))&&L.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))&&L.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 B=n=null;if(A.isVirtualized){A=L.bounds.copy(),A.Bc(-L.Ho,-L.Go);var V=ce.alloc();Rf(L,e.x,e.y)||(Ye.Ff(A.x,A.y,A.x+A.width,A.y+A.height,e.x,e.y,f.x,f.y,V)?(n=e=V.copy(),t=V.ab(f)):Ye.Ff(A.x,A.y,A.x+A.width,A.y+A.height,f.x,f.y,p.x,p.y,V)?(n=e=V.copy(),t=V.ab(p)):Ye.Ff(A.x,A.y,A.x+A.width,A.y+A.height,p.x,p.y,x.x,x.y,V)&&(n=e=V.copy(),t=V.ab(x))),Rf(L,x.x,x.y)||(Ye.Ff(A.x,A.y,A.x+A.width,A.y+A.height,x.x,x.y,p.x,p.y,V)?(B=x=V.copy(),i=p.ab(V)):Ye.Ff(A.x,A.y,A.x+A.width,A.y+A.height,p.x,p.y,f.x,f.y,V)?(B=x=V.copy(),i=f.ab(V)):Ye.Ff(A.x,A.y,A.x+A.width,A.y+A.height,f.x,f.y,e.x,e.y,V)&&(B=x=V.copy(),i=e.ab(V))),ce.free(V)}l=l.copy().ed(u),l.Bc(L.Ho*L.Os,L.Go*L.Os),g1(L,e,t,x,i,l,!0),u=Hc(L,x.x,x.y),!L.abort&&u>=Df&&(m1(L),l.Bc(L.Ho*L.Hx,L.Go*L.Ix),g1(L,e,t,x,i,l,!1),u=Hc(L,x.x,x.y)),!L.abort&&u<Df&&Hc(L,x.x,x.y)!==Ch?(iv(this,L,x.x,x.y,i,!0,s),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)):(s=this.i(3),t===0||t===180?Ye.B(l.x,s.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,s.y)):Ye.B(l.y,s.y)?(Math.abs(e.y-l.y)<=L.Go/2&&(this.L(2,l.x,e.y),this.L(3,s.x,e.y)),this.m(2,l.x,e.y)):this.L(2,e.x,l.y):(t===90||t===270)&&(Ye.B(l.y,s.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,s.x,l)):Ye.B(l.x,s.x)?(Math.abs(e.x-l.x)<=L.Ho/2&&(this.L(2,e.x,l.y),this.L(3,e.x,s.y)),this.m(2,e.x,l.y)):this.L(2,l.x,e.y))),n!==null&&(e=this.i(1),s=this.i(2),e.x!==s.x&&e.y!==s.y?t===0||t===180?this.m(2,e.x,s.y):this.m(2,s.x,e.y):t===0||t===180?this.m(2,r.x,n.y):this.m(2,n.x,r.y)),B!==null&&(i===0||i===180?this.yf(o.x,B.y):this.yf(B.x,o.y)),t=!0):t=!1}}}else t=!1;t||(this.ne(f.copy()),this.ne(p.copy())),ce.free(f),ce.free(p)}},In.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,s){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!==s&&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,s=n,p=i,r===0?(o=90,p+=u):r===90?(o=180,s-=l):r===180?(o=270,p-=u):r===270&&(o=0,s+=l),Hc(t,s,p)===f-1?iv(e,t,s,p,o,!1,o):(s=n,p=i,r===0?(o=270,p-=u):r===90?(o=0,s+=l):r===180?(o=90,p+=u):r===270&&(o=180,s-=l),Hc(t,s,p)===f-1&&iv(e,t,s,p,o,!1,o))),e.yf(n,i)}In.prototype.ez=function(e){var t=e.x;e=e.y;for(var n=this.i(0),i=this.i(1),r=$r(t,e,n.x,n.y,i.x,i.y),o=0,s=1;s<this.pointsCount-1;s++){n=this.i(s+1);var l=$r(t,e,i.x,i.y,n.x,n.y);i=n,l<r&&(o=s,r=l)}return o},In.prototype.qc=function(){this.lk=!1,this.v()},In.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 ar&&(r.ua=this.ua)}}},In.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 s=this.computeCurve();if(s===bu&&3<=t&&!Ye.$(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=kn.o,l=Hy(e),this.computeShortLength(!0)!==0&&(r=jd(this,r,!0,o)),If(l,r.x,r.y,!1),s===bu&&3<=t&&!Ye.$(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=ce.allocAt(i,u),n=ce.alloc(),n.assign(this.i(1)),o=ce.allocAt(i,u),r=ce.allocAt(i,u),s=this.i(0);for(var f,p=this.smoothness/3,x=1;x<this.pointsCount-1;x++){f=this.i(x);var A=s,L=f,B=this.i(rv(this,f,x,!1));if((!Ye.$(A.x,L.x)||!Ye.$(L.x,B.x))&&(!Ye.$(A.y,L.y)||!Ye.$(L.y,B.y))){var V=p;isNaN(V)&&(V=this.smoothness/3);var ye=A.x;A=A.y;var oe=L.x;L=L.y;var Me=B.x;B=B.y;var Be=V*om(ye,A,oe,L);V*=om(oe,L,Me,B),Ye.$(A,L)&&Ye.$(oe,Me)&&(oe>ye?B>L?(o.x=oe-Be,o.y=L-Be,r.x=oe+V,r.y=L+V):(o.x=oe-Be,o.y=L+Be,r.x=oe+V,r.y=L-V):B>L?(o.x=oe+Be,o.y=L-Be,r.x=oe-V,r.y=L+V):(o.x=oe+Be,o.y=L+Be,r.x=oe-V,r.y=L-V)),Ye.$(ye,oe)&&Ye.$(L,B)&&(L>A?(Me>oe?(o.x=oe-Be,o.y=L-Be,r.x=oe+V):(o.x=oe+Be,o.y=L-Be,r.x=oe-V),r.y=L+V):(Me>oe?(o.x=oe-Be,o.y=L+Be,r.x=oe+V):(o.x=oe+Be,o.y=L+Be,r.x=oe-V),r.y=L-V)),(Ye.$(ye,oe)&&Ye.$(oe,Me)||Ye.$(A,L)&&Ye.$(L,B))&&(ye=.5*(ye+Me),A=.5*(A+B),o.x=ye,o.y=A,r.x=ye,r.y=A),(x===1||x===2&&Ye.$(s.x,this.i(0).x)&&Ye.$(s.y,this.i(0).y))&&(n.x=.5*(s.x+f.x),n.y=.5*(s.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),s=f}}f=s.x,s=s.y,p=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(p=jd(this,p.copy(),!1,Ar)),f=.5*(f+p.x),s=.5*(s+p.y),bh(l,r.x-i,r.y-u,f-i,s-u,p.x-i,p.y-u),ce.free(t),ce.free(n),ce.free(o),ce.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),s=this.i(n),n===t-1&&this.computeShortLength(!1)!==0&&(s=jd(this,s.copy(),!1,Ar)),bh(l,o.x-i,o.y-u,r.x-i,r.y-u,s.x-i,s.y-u);else{for(o=ce.alloc(),o.assign(this.i(0)),r=ce.alloc(),r.assign(o),s=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,Ar)),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,ye=-u,A=p,oe=this.i(f),V=n,Ye.B(o.y,A.y)&&Ye.B(A.x,oe.x))if(B=Math.min(s,Math.abs(A.x-r.x)/2),B=Be=Math.min(B,Math.abs(oe.y-A.y)/2),Ye.B(B,0))Gd(this,l,x,ye,o,A,V),o.assign(A);else{var je=A.x,tt=A.y;L=je,Me=tt,A.x>o.x?je=A.x-B:je=A.x+B,oe.y>A.y?Me=A.y+Be:Me=A.y-Be,oe=ce.allocAt(je,tt),Gd(this,l,x,ye,o,oe,V),ce.free(oe),Z0(l,A.x+x,A.y+ye,L+x,Me+ye),o.h(L,Me)}else Ye.B(o.x,A.x)&&Ye.B(A.y,oe.y)?(B=Math.min(s,Math.abs(A.y-r.y)/2),B=Be=Math.min(B,Math.abs(oe.x-A.x)/2),Ye.B(Be,0)?(Gd(this,l,x,ye,o,A,V),o.assign(A)):(je=A.x,tt=A.y,L=je,Me=tt,A.y>o.y?tt=A.y-B:tt=A.y+B,oe.x>A.x?L=A.x+Be:L=A.x-Be,oe=ce.allocAt(je,tt),Gd(this,l,x,ye,o,oe,V),ce.free(oe),Z0(l,A.x+x,A.y+ye,L+x,Me+ye),o.h(L,Me))):(Gd(this,l,x,ye,o,A,V),o.assign(A));r.assign(p),x=f}ce.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=kn.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),Ye.$(e,0)?t:Ye.$(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;Ye.$(t.x,o.x)&&Ye.$(t.y,o.y);){if(n>=r)return r-1;o=e.i(n++)}if(!Ye.$(t.x,o.x)&&!Ye.$(t.y,o.y))return n-1;for(var s=o;Ye.$(t.x,o.x)&&Ye.$(o.x,s.x)&&(!i||(t.y>=o.y?o.y>=s.y:o.y<=s.y))||Ye.$(t.y,o.y)&&Ye.$(o.y,s.y)&&(!i||(t.x>=o.x?o.x>=s.x:o.x<=s.x));){if(n>=r)return r-1;s=e.i(n++)}return n-2}In.prototype.computeJumpLength=function(){return 10};function Gd(e,t,n,i,r,o,s){if(!s&&wd(e)){s=e.computeJumpLength();var l=s/2,u=[],f=0;if(e.isVisible()&&(f=zb(e,r,o,u)),0<f){if(Ye.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-s));t.lineTo(x+n,o.y+i);for(var A=x+n,L=Math.min(x+s,o.x);p<f&&(x=u[p],x<L+s);)p++,L=Math.min(x+l,o.x);x=o.y-s+i,L+=n;var B=o.y+i;e.curve===wh?If(t,L,B,!1):bh(t,A,x,L,x,L,B)}else for(--f;0<=f;){for(p=Math.min(r.x,Math.max(u[f--]+l,o.x+s)),t.lineTo(p+n,o.y+i),A=p+n,x=Math.max(p-s,o.x);0<=f&&(p=u[f],p>x-s);)f--,x=Math.max(p-l,o.x);p=o.y-s+i,x+=n,L=o.y+i,e.curve===wh?If(t,x,L,!1):bh(t,A,p,x,p,x,L)}else if(Ye.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-s)),t.lineTo(o.x+n,x+i),A=x+i,x=Math.min(x+s,o.y);p<f&&(L=u[p],L<x+s);)p++,x=Math.min(L+l,o.y);L=o.x-s+n,B=o.x+n,x+=i,e.curve===wh?If(t,B,x,!1):bh(t,L,A,L,x,B,x)}else for(--f;0<=f;){for(p=Math.min(r.y,Math.max(u[f--]+l,o.y+s)),t.lineTo(o.x+n,p+i),A=p+i,p=Math.max(p-s,o.y);0<=f&&(x=u[f],x>p-s);)f--,p=Math.max(x-l,o.y);x=o.x-s+n,L=o.x+n,p+=i,e.curve===wh?If(t,L,p,!1):bh(t,x,A,x,p,L,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 s=o.length,l=0;l<s;l++){var u=o[l];if(u instanceof In){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=Ye.B(e.y,t.y),o=i.pointsCount,s=i.i(0),l=ce.alloc(),u=1;u<o;u++){var f=i.i(u);if(u<o-1){var p=i.i(u+1);if(s.y===f.y&&f.y===p.y){if(f.x>s.x&&p.x>=f.x||f.x<s.x&&p.x<=f.x)continue}else if(s.x===f.x&&f.x===p.x&&(f.y>s.y&&p.y>=f.y||f.y<s.y&&p.y<=f.y))continue}e:{p=e.x;var x=e.y,A=t.x,L=t.y,B=s.x;s=s.y;var V=f.x,ye=f.y;if(Ye.B(p,A)){if(!Ye.B(x,L)&&Ye.B(s,ye)&&Math.min(x,L)<s&&Math.max(x,L)>s&&Math.min(B,V)<p&&Math.max(B,V)>p&&!Ye.B(B,V)){l.x=p,l.y=s,p=!0;break e}}else if(Ye.B(x,L)&&Ye.B(B,V)&&Math.min(p,A)<B&&Math.max(p,A)>B&&Math.min(s,ye)<x&&Math.max(s,ye)>x&&!Ye.B(s,ye)){l.x=B,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)),s=f}ce.free(l)}function wd(e){return e=e.curve,e===Lf||e===wh}function sm(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()))}In.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 s=r.length,l=0;l<s;l++){var u=r[l];u instanceof In&&(u===this?o=!0:o&&h1(this,u,e))}}else if(i)for(o=r.Pa.s,r=o.length,s=0;s<r;s++)l=o[s],l instanceof In&&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())}}In.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},In.prototype.isVisible=function(){if(!Ei.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},In.prototype.Zb=function(e){if(Ei.prototype.Zb.call(this,e),e&&sm(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var t=this.wd.iterator;t.next();)t.value.Zb(e)},In.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,s=t.jb.s,l=s.length,u=0;u<l;u++){var f=s[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&&(D(t.links,e),t.Sl()))}In.prototype.ph=function(){return!0},ht.Object.defineProperties(In.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 s=!0;i!==null&&(s=i.aa,i.aa=!0),o(this,n,r),i!==null&&(i.aa=s)}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&&nu(n),kp(this),this.ff=e;var i=this.fromPort;i!==null&&nu(i);var r=this.diagram;if(r!==null){var o=this.data,s=r.model;o!==null&&s.ri()&&s.xv(o,e)}n!==i&&(this.Wf=null,this.bb(),o=this.fromPortChanged,o!==null&&(s=!0,r!==null&&(s=r.aa,r.aa=!0),o(this,n,i),r!==null&&(r.aa=s))),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 s=!0;i!==null&&(s=i.aa,i.aa=!0),o(this,n,r),i!==null&&(i.aa=s)}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&&nu(n),kp(this),this.vf=e;var i=this.toPort;i!==null&&nu(i);var r=this.diagram;if(r!==null){var o=this.data,s=r.model;o!==null&&s.ri()&&s.Cv(o,e)}n!==i&&(this.Wf=null,this.bb(),o=this.toPortChanged,o!==null&&(s=!0,r!==null&&(s=r.aa,r.aa=!0),o(this,n,i),r!==null&&(r.aa=s))),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:Ur},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&&nu(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&&tn(e,">= 0",In,"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:Ur},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&&nu(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&&tn(e,">= 0",In,"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?Et: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 ar?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()===bu&&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),Ye.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 s=this.i(o-2);o+3>=i&&(o=i-1);var l=this.i(o-1),u=this.i(o);Ye.Dl(r.x,r.y,s.x,s.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 ce)}},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);Ye.$(i.x,r.x)?(i=r.y-i.y,0>i&&(i=-i)):Ye.$(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 Zt,i=0;i<e.length/2;i++)r=new ce(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(!ft(o)||typeof o.x!="number"||isNaN(o.x)||typeof o.y!="number"||isNaN(o.y)){i=!1;break}}if(i)for(n=new Zt,i=0;i<e.length;i++)r=e[i],n.add(new ce(r.x,r.y).freeze())}}else if(e instanceof Zt)for(n=e.copy(),e=n.iterator;e.next();)e.value.freeze();else pt("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&&h(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(),sm(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(),sm(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)}}}),In.prototype.invalidateOtherJumpOvers=In.prototype.Xo,In.prototype.findClosestSegment=In.prototype.ez,In.prototype.updateRoute=In.prototype.vg,In.prototype.invalidateRoute=In.prototype.bb,In.prototype.rollbackRoute=In.prototype.rv,In.prototype.commitRoute=In.prototype.zf,In.prototype.startRoute=In.prototype.uh,In.prototype.clearPoints=In.prototype.Fj,In.prototype.removePoint=In.prototype.pv,In.prototype.addPointAt=In.prototype.yf,In.prototype.addPoint=In.prototype.ne,In.prototype.insertPointAt=In.prototype.m,In.prototype.insertPoint=In.prototype.Kz,In.prototype.setPointAt=In.prototype.L,In.prototype.setPoint=In.prototype.dd,In.prototype.getPoint=In.prototype.i,In.prototype.getOtherPort=In.prototype.Cz,In.prototype.getOtherNode=In.prototype.To;var Wd=null,Vd=null,ov=new Kt(In,"Normal",1),Hb=new Kt(In,"Orthogonal",2),$b=new Kt(In,"AvoidsNodes",6),d1=new Kt(In,"AvoidsNodesStraight",7),wl=new Kt(In,"None",0),bu=new Kt(In,"Bezier",9),wh=new Kt(In,"JumpGap",10),Lf=new Kt(In,"JumpOver",11),Ip=new Kt(In,"End",17),am=new Kt(In,"Scale",18),lm=new Kt(In,"Stretch",19),Mp=new Kt(In,"OrientAlong",21),Op=new Kt(In,"OrientPlus90",22),Lp=new Kt(In,"OrientMinus90",23),sv=new Kt(In,"OrientOpposite",24),um=new Kt(In,"OrientUpright",25),Rp=new Kt(In,"OrientPlus90Upright",26),Dp=new Kt(In,"OrientMinus90Upright",27),cm=new Kt(In,"OrientUpright45",28),f1=16,p1=14,Pp=8;In.className="Link",In.Normal=ov,In.Orthogonal=Hb,In.AvoidsNodes=$b,In.AvoidsNodesStraight=d1,In.None=wl,In.Bezier=bu,In.JumpGap=wh,In.JumpOver=Lf,In.End=Ip,In.Scale=am,In.Stretch=lm,In.OrientAlong=Mp,In.OrientPlus90=Op,In.OrientMinus90=Lp,In.OrientOpposite=sv,In.OrientUpright=um,In.OrientPlus90Upright=Rp,In.OrientMinus90Upright=Dp,In.OrientUpright45=cm,In.EndSegmentStep=8,In.CurvinessStart=f1,In.SpacingMin=p1,In.OrthoShortCut=Pp;function hm(e,t,n,i){Yi(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){Yi(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=av,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]):av}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]=av)}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,s,l,u){if(!(t<o||t>s||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<=s&&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,s,l,u),$c(e,t,n,-1,!r,o,s,l,u);else for(n+=i;n>f;n+=i)$c(e,t,n,1,!r,o,s,l,u),$c(e,t,n,-1,!r,o,s,l,u);else if(0<i)for(t+=i;t<f;t+=i)$c(e,t,n,1,!r,o,s,l,u),$c(e,t,n,-1,!r,o,s,l,u);else for(t+=i;t>f;t+=i)$c(e,t,n,1,!r,o,s,l,u),$c(e,t,n,-1,!r,o,s,l,u)}}function dm(e,t,n,i,r,o,s,l,u){t|=0,n|=0;var f=Ch,p=Cd;for(e.ac[t][n]=p;f===Ch&&t>o&&t<s&&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,s,l,u){t|=0,n|=0;var f=Ch,p=Df;for(e.ac[t][n]=p;f===Ch&&t>o&&t<s&&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,s){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 A=o.y+o.height;x-=e.Nd,x/=e.rc,i-=e.Od,i/=e.sc,t-=e.Nd,t/=e.rc,A-=e.Od,A/=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)),A=Math.min(e.ei,Math.max(0,A|0)),i=e.ac,l|=0,u|=0,f|=0,p|=0;var L=n===0||n===90?1:-1;if(n=n===90||n===270,i[l][u]===Ch?(dm(e,l,u,L,n,o,t,x,A),dm(e,l,u,1,!n,o,t,x,A),dm(e,l,u,-1,!n,o,t,x,A)):dm(e,l,u,L,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,A),fm(e,f,p,1,!(r===90||r===270),o,t,x,A),fm(e,f,p,-1,!(r===90||r===270),o,t,x,A)):fm(e,f,p,L,n,f,p,f,p),n=Gt(),s&&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],s=n[n.length-1],i[r][s]=e++,o=n.length-4;0<=o;o-=2)for(r=n[o+2],s=n[o+3],t=n[o],f=n[o+1];t>r?r++:t<r?r--:f>s?s++:f<s&&s--,i[r][s]=e++,r!==t||s!==f;);else $c(e,l,u,1,!1,o,t,x,A),$c(e,l,u,-1,!1,o,t,x,A),$c(e,l,u,1,!0,o,t,x,A),$c(e,l,u,-1,!0,o,t,x,A);dn(n)}}}}function v1(e,t,n,i,r,o,s){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 A=l[p][x];if(A===0||A===lv)break;u=p,f=x}for(;;){if(p=i,x=u,A=f,i===0?A<o?(p=90,A++):A>o&&(p=270,A--):i===90?x<r?(p=0,x++):x>r&&(p=180,x--):i===180?A<o?(p=90,A++):A>o&&(p=270,A--):x<r?(p=0,x++):x>r&&(p=180,x--),x=l[x][A],p!==i&&x!==0&&x!==lv){if(s.push(u),s.push(f),v1(e,u,f,p,r,o,s))return!0;s.pop(),s.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 Ht(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,av=Df+1,lv=Df+2;Fp.className="PositionArray";function Kd(){Yi(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 er?r:null;if(o===null||o.isSubGraphExpanded)var s=r.isTreeExpanded?r.findLinksConnected(e.port.portId):r.qx();else{if(!o.actualBounds.w()){e.ap=n;break e}i=o,s=i.Lu()}o=e.pe.length=0;var l=e.port.ga(Qo,ce.alloc()),u=e.port.ga(zo,ce.alloc());for(r=Ht.allocAt(l.x,l.y,0,0),r.Ye(u),ce.free(l),ce.free(u),l=ce.allocAt(r.x+r.width/2,r.y+r.height/2),u=e.port.li(),s=s.iterator;s.next();){var f=s.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 A=p.part;if(A!==null){var L=A.findVisibleNode();L!==null&&L!==A&&(A=L,p=A.port),p=f.computeOtherPoint(A,p),A=l.ab(p),A-=u,0>A?A+=360:360<=A&&(A-=360),x=jb(r,x,A,f.isOrthogonal),x===0?(x=4,180<A&&(A-=360)):x===90?(x=8,270<A&&(A-=360)):x===180?x=2:(x=1,90>A&&(A+=360)),L=e.pe[o],L===void 0?(L=new uv(f,A,x),e.pe[o]=L):(L.link=f,L.angle=A,L.Nc=x),L.hv.set(p),o++}}}}for(ce.free(l),e.pe.sort(Kd.prototype.j),u=e.pe.length,i=-1,o=l=0;o<u;o++)s=e.pe[o],s!==void 0&&(s.Nc!==i&&(i=s.Nc,l=0),s.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=ce.alloc(),u=ce.alloc(),s=ce.alloc(),f=ce.alloc(),x.ga(Qo,l),x.ga(Go,u),x.ga(zo,s),x.ga(La,f),L=A=p=x=0,i===Jg)for(var B=0;B<o.length;B++){var V=o[B];if(V!==null){var ye=V.link.computeThickness();switch(V.Nc){case 8:A+=ye;break;case 2:L+=ye;break;case 1:x+=ye;break;default:case 4:p+=ye}}}var oe=B=0,Me=1,Be=V=0;for(ye=0;ye<o.length;ye++){var je=o[ye];if(je!==null){if(B!==je.Nc){switch(B=je.Nc,B){case 8:var tt=s;oe=f;break;case 2:tt=f,oe=l;break;case 1:tt=l,oe=u;break;default:case 4:tt=u,oe=s}switch(V=oe.x-tt.x,Be=oe.y-tt.y,B){case 8:A>Math.abs(V)?(Me=Math.abs(V)/A,A=Math.abs(V)):Me=1;break;case 2:L>Math.abs(Be)?(Me=Math.abs(Be)/L,L=Math.abs(Be)):Me=1;break;case 1:x>Math.abs(V)?(Me=Math.abs(V)/x,x=Math.abs(V)):Me=1;break;default:case 4:p>Math.abs(Be)?(Me=Math.abs(Be)/p,p=Math.abs(Be)):Me=1}oe=0}var St=je.Zo;if(i===Jg){switch(je=je.link.computeThickness(),je*=Me,St.set(tt),B){case 8:St.x=tt.x+V/2+A/2-oe-je/2;break;case 2:St.y=tt.y+Be/2+L/2-oe-je/2;break;case 1:St.x=tt.x+V/2-x/2+oe+je/2;break;default:case 4:St.y=tt.y+Be/2-p/2+oe+je/2}oe+=je}else{var $n=.5;i===tm&&($n=(je.Uo+1)/(je.Gl+1)),St.x=tt.x+V*$n,St.y=tt.y+Be*$n}}}for(ce.free(l),ce.free(u),ce.free(s),ce.free(f),tt=e.pe,o=0;o<tt.length;o++)i=tt[o],i!==null&&(i.Ju=e.computeEndSegmentLength(i));e.ap=n,Ht.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,Di,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 ce,this.Gl=this.Uo=0,this.Zo=new ce,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 Vo(e){Yi(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new ce(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,e&&Object.assign(this,e)}Vo.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},Vo.prototype.copy=function(){var e=new this.constructor;return this.cloneProtected(e),e},Vo.prototype.qb=function(){},Vo.prototype.toString=function(){var e=xt(this.constructor);return e+="(",this.group!==null&&(e+=" in "+this.group),this.diagram!==null&&(e+=" for "+this.diagram),e+")"},Vo.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())}}},Vo.prototype.createNetwork=function(){return new Ro(this)},Vo.prototype.makeNetwork=function(e){var t=this.createNetwork();return e instanceof Z?(t.lg(e.nodes,!0),t.lg(e.links,!0)):e instanceof er?t.lg(e.memberParts):t.lg(e.iterator),t},Vo.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")}},Vo.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()}},Vo.prototype.doLayout=function(e){var t=new Wt;e instanceof Z?(Vh(this,t,e.nodes,!0,this.rh,!0,!1,!0),Vh(this,t,e.parts,!0,this.rh,!0,!1,!0)):e instanceof er?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},Vo.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,s=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 er&&(l.rh=!1),i+=Math.max(f,50)+20,s=Math.max(s,Math.max(u,50)),o>=t-1?(o=0,i=n,r+=s+20,s=0):o++}},Vo.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,s=this.network.vertexes.iterator;s.next();){var l=s.value.node;if(!(l===null||l instanceof In)&&(Bp(l),this.rh(l))){var u=l.measuredBounds,f=u.width;u=u.height,l.moveTo(n,i),l instanceof er&&(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++}}},Vo.prototype.rh=function(e){return!!(!e.location.w()||e instanceof er&&e.rh)};function Vh(e,t,n,i,r,o,s,l){for(n=n.iterator;n.next();){var u=n.value;i&&!u.isTopLevel||r!==null&&!r(u)||!u.canLayout()||(o&&u instanceof Wn?u.isLinkLabel||(u instanceof er&&u.layout===null?Vh(e,t,u.memberParts,!1,r,o,s,l):(Bp(u),t.add(u))):s&&u instanceof In?t.add(u):!l||!u.Zc()||u instanceof Wn||(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()}Vo.prototype.ni=function(e,t){var n=this.boundsComputation;return n!==null?(t||(t=new Ht),n(e,this,t)):t?(t.set(e.actualBounds),t):e.actualBounds},Vo.prototype.ex=function(e){var t=new Wt;return e instanceof Z?(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 er?Vh(this,t,e.memberParts,!1,null,!0,!0,!0):Vh(this,t,e.iterator,!1,null,!0,!0,!0),t},Vo.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(Qo),(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(Vo.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())}}}),Vo.prototype.collectParts=Vo.prototype.ex,Vo.prototype.getLayoutBounds=Vo.prototype.ni,Vo.prototype.invalidateLayout=Vo.prototype.C,Vo.className="Layout";function Ro(e){Yi(this),this.Sc=e,this.wf=new Wt,this.ye=new Wt,this.Es=new qn,this.zs=new qn}Ro.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 Wt,this.ye=new Wt,this.Es=new qn,this.zs=new qn},Ro.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},Ro.prototype.createVertex=function(){return new ia(this)},Ro.prototype.createEdge=function(){return new iu(this)},Ro.prototype.lg=function(e,t,n){if(e!==null){for(t===void 0&&(t=!1),n===void 0&&(n=null),n===null&&(n=function(s){if(s instanceof Wn)return!s.isLinkLabel;if(s instanceof In){var l=s.fromNode;return l===null||l.isLinkLabel?!1:(s=s.toNode,!(s===null||s.isLinkLabel))}return!1}),e=e.iterator;e.next();){var i=e.value;if(i instanceof Wn&&(!t||i.isTopLevel)&&i.canLayout()&&n(i)){if(i instanceof er&&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 In&&(!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))}}},Ro.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=Ro.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=Gt(),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]);dn(e)},Ro.prototype.deleteArtificialVertexes=function(){for(var e=Gt(),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=Gt(),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]);dn(e),dn(t)};function Gb(e){for(var t=Gt(),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]);dn(t)}Ro.prototype.Zx=function(e){e===void 0&&(e=!0),e&&(this.deleteArtificialVertexes(),Gb(this),this.Ko()),e=new Zt;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))}}Ro.prototype.dz=function(){for(var e=new Wt,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(Ro.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}}}),Ro.prototype.findAllParts=Ro.prototype.dz,Ro.prototype.splitIntoSubNetworks=Ro.prototype.Zx,Ro.prototype.deleteSelfEdges=Ro.prototype.Ko,Ro.prototype.reverseEdge=Ro.prototype.gm,Ro.prototype.linkVertexes=Ro.prototype.Zj,Ro.prototype.findEdge=Ro.prototype.Lo,Ro.prototype.deleteLink=Ro.prototype.Yy,Ro.prototype.deleteEdge=Ro.prototype.Mj,Ro.prototype.addLink=Ro.prototype.Dy,Ro.prototype.addEdge=Ro.prototype.Bo,Ro.prototype.findVertex=Ro.prototype.ki,Ro.prototype.deleteNode=Ro.prototype.Zy,Ro.prototype.deleteVertex=Ro.prototype.Iu,Ro.prototype.addNode=Ro.prototype.Bl,Ro.prototype.addVertex=Ro.prototype.dh,Ro.prototype.addParts=Ro.prototype.lg,Ro.className="LayoutNetwork";function ia(e){Yi(this),this.ob=e,this.j=new Ht(0,0,10,10).freeze(),this.o=new ce(5,5).freeze(),this.Sh=this.ub=null,this.tg=new Zt,this.mg=new Zt}ia.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new Zt,this.mg=new Zt},ia.prototype.toString=function(e){e===void 0&&(e=0);var t="LayoutVertex#"+It(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},ia.prototype.commit=function(){var e=this.ub;if(e!==null){var t=this.bounds,n=e.bounds;ft(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 er)){n=Ht.alloc(),e.Va();var i=this.network.layout.ni(e,n),r=e.locationObject.ga(kr);if(i.w()&&r.w()){e.moveTo(t.x+this.focusX-(r.x-i.x),t.y+this.focusY-(r.y-i.y)),Ht.free(n);return}Ht.free(n)}e.moveTo(t.x,t.y)}},ia.prototype.Cl=function(e){e!==null&&(this.tg.contains(e)||this.tg.add(e))},ia.prototype.Kl=function(e){e!==null&&this.tg.remove(e)},ia.prototype.zl=function(e){e!==null&&(this.mg.contains(e)||this.mg.add(e))},ia.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(ia.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=Ht.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),Ht.free(n),!(e instanceof er)&&(e=e.locationObject.ga(kr),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 Wt,t=this.sourceEdges;t.next();)e.add(t.value.fromVertex);return e.iterator}},destinationVertexes:{get:function(){for(var e=new Wt,t=this.destinationEdges;t.next();)e.add(t.value.toVertex);return e.iterator}},vertexes:{get:function(){for(var e=new Wt,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 Zt,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}}}),ia.prototype.deleteDestinationEdge=ia.prototype.Jl,ia.prototype.addDestinationEdge=ia.prototype.zl,ia.prototype.deleteSourceEdge=ia.prototype.Kl,ia.prototype.addSourceEdge=ia.prototype.Cl,ia.className="LayoutVertex",ia.standardComparer=fv,ia.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 iu(e){Yi(this),this.nb=e,this.qd=this.kd=this.$k=this.ub=null}iu.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},iu.prototype.toString=function(e){e===void 0&&(e=0);var t="LayoutEdge#"+It(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},iu.prototype.gm=function(){var e=this.kd;this.kd=this.qd,this.qd=e},iu.prototype.commit=function(){},iu.prototype.Ax=function(e){return this.qd===e?this.kd:this.kd===e?this.qd:null},ht.Object.defineProperties(iu.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)}}}),iu.prototype.getOtherVertex=iu.prototype.Ax,iu.className="LayoutEdge";function Ia(e){Vo.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new mi(NaN,NaN).freeze(),this.tf=new mi(10,10).freeze(),this.Jb=_p,this.Rb=mm,this.nd=zp,this.hd=x1,e&&Object.assign(this,e)}di(Ia,Vo),Ia.prototype.cloneProtected=function(e){Vo.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},Ia.prototype.qb=function(e){e.classType===Ia?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:pt("Unknown enum value: "+e):Vo.prototype.qb.call(this,e)},Ia.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 er)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 s=this.wrappingWidth;switch(isNaN(s)&&e!==null?(t=e.padding,s=Math.max(e.viewportBounds.width-t.left-t.right,0)):s=Math.max(this.wrappingWidth,0),0>=o&&0>=s&&(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=Ht.alloc(),p=Math.max(this.cellSize.width,1);if(!isFinite(p))for(var x=p=0;x<r.length;x++){var A=this.ni(r[x],f);p=Math.max(p,A.width)}if(p=Math.max(p+l,1),x=Math.max(this.cellSize.height,1),!isFinite(x))for(A=x=0;A<r.length;A++){var L=this.ni(r[A],f);x=Math.max(x,L.height)}x=Math.max(x+u,1),A=this.arrangement;for(var B=L=this.arrangementOrigin.x,V=this.arrangementOrigin.y,ye=0,oe=0,Me=0;Me<r.length;Me++){var Be=r[Me],je=this.ni(Be,f),tt=Math.ceil((je.width+l)/p)*p,St=Math.ceil((je.height+u)/x)*x;switch(A){case pc:var $n=Math.abs(B-je.width);break;default:$n=B+je.width}switch((0<o&&ye>o-1||0<s&&0<ye&&$n-L>s)&&(i.push(new Ht(0,V,s+l,oe)),ye=0,B=L,V+=oe,oe=0),oe=Math.max(oe,St),A){case pc:je=-je.width;break;default:je=0}switch(Be.moveTo(B+je,V),A){case pc:B-=tt;break;default:B+=tt}ye++}i.push(new Ht(0,V,s+l,oe)),Ht.free(f);break;case _p:for(u=s,p=o,x=t,A=n,s=Ht.alloc(),L=Math.max(this.cellSize.width,1),o=V=f=0,l=ce.alloc(),B=0;B<r.length;B++)oe=r[B],ye=this.ni(oe,s),oe=xh(oe,oe.locationObject,oe.locationSpot,l),f=Math.max(f,oe.x),V=Math.max(V,ye.width-oe.x),o=Math.max(o,oe.y);switch(B=this.arrangement,B){case pc:f+=x;break;default:V+=x}L=isFinite(L)?Math.max(L+x,1):Math.max(f+V,1);var ii=oe=this.arrangementOrigin.x;for(Me=this.arrangementOrigin.y,V=0,u>=f&&(u-=f),f=Be=0,tt=Math.max(this.cellSize.height,1),je=o=0,St=!0,ye=ce.alloc(),$n=0;$n<r.length;$n++){var Qn=r[$n],An=this.ni(Qn,s),an=xh(Qn,Qn.locationObject,Qn.locationSpot,l);if(0<V)switch(B){case pc:ii=(ii-oe-(An.width-an.x))/L,ii=Ye.$(Math.round(ii),ii)?Math.round(ii):Math.floor(ii),ii=ii*L+oe;break;default:ii=(ii-oe+an.x)/L,ii=Ye.$(Math.round(ii),ii)?Math.round(ii):Math.ceil(ii),ii=ii*L+oe}else switch(B){case pc:Be=ii+an.x+An.width;break;default:Be=ii-an.x}switch(B){case pc:var Ji=-(ii+an.x)+Be;break;default:Ji=ii+An.width-an.x-Be}if(0<p&&V>p-1||0<u&&0<V&&Ji>u){for(i.push(new Ht(0,St?Me-o:Me,u+x,je+o+A)),ii=0;ii<V&&$n!==V;ii++){Ji=r[$n-V+ii];var Ui=xh(Ji,Ji.locationObject,Ji.locationSpot,ye);Ji.moveTo(Ji.position.x,Ji.position.y+o-Ui.y)}je+=A,Me=St?Me+je:Me+(je+o),V=je=o=0,ii=oe,St=!1}switch(ii===oe&&(f=B===pc?Math.max(f,An.width-an.x):Math.min(f,-an.x)),o=Math.max(o,an.y),je=Math.max(je,An.height-an.y),isFinite(tt)&&(je=Math.max(je,Math.max(An.height,tt)-an.y)),St?Qn.moveTo(ii-an.x,Me-an.y):Qn.moveTo(ii-an.x,Me),B){case pc:ii-=an.x+x;break;default:ii+=An.width-an.x+x}V++}if(i.push(new Ht(0,Me,u+x,(St?je:je+o)+A)),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(ce.free(l),ce.free(ye),B===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);Ht.free(s)}for(l=o=s=r=0;l<i.length;l++)u=i[l],r=Math.min(r,u.x),s=Math.min(s,u.y),o=Math.max(o,u.x+u.width);this.arrangement===pc?this.commitLayers(i,new ce(r+t/2-(o+r),s-n/2)):this.commitLayers(i,new ce(r-t/2,s-n/2)),e!==null&&e.eb("Layout"),this.isValidLayout=!0}},Ia.prototype.commitLayers=function(){};function x1(e,t){return e=e.text,t=t.text,e<t?-1:e>t?1:0}ht.Object.defineProperties(Ia.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 Kt(Ia,"Position",0),_p=new Kt(Ia,"Location",1),mm=new Kt(Ia,"LeftToRight",2),pc=new Kt(Ia,"RightToLeft",3),pv=new Kt(Ia,"Forward",4),gm=new Kt(Ia,"Reverse",5),zp=new Kt(Ia,"Ascending",6),vm=new Kt(Ia,"Descending",7);Ia.className="GridLayout",Ia.standardComparer=x1,Ia.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},Ia.Position=pm,Ia.Location=_p,Ia.LeftToRight=mm,Ia.RightToLeft=pc,Ia.Forward=pv,Ia.Reverse=gm,Ia.Ascending=zp,Ia.Descending=vm;function ao(){this.On=new Wt,this.Dn=new Wt,this.Pa=new Wt,this.cf=new qn,this.bf=new qn,this.aj=new qn,this.H=null,this.tp=!1}U=ao.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 Wn){if(this.On.add(e),e instanceof er){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 In?this.Dn.add(e):e instanceof Wr||this.Pa.add(e);t=e.data,t===null||e instanceof Wr||(e instanceof In?this.bf.add(t,e):this.cf.add(t,e))},U.pc=function(e){if(e.Ej(),e instanceof Wn){if(this.On.remove(e),e instanceof er){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 In?this.Dn.remove(e):e instanceof Wr||this.Pa.remove(e);t=e.data,t===null||e instanceof Wr||(e instanceof In?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 er)&&pt('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 er||pt('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 In||pt('Invalid link template in Diagram.linkTemplateMap: template for "'+i+'" must be a Link, not a normal Node or simple Part: '+n);for(t=Gt(),n=e.selection.iterator;n.next();)(i=n.value.data)&&t.push(i);for(n=Gt(),e=e.highlighteds.iterator;e.next();)(i=e.value.data)&&n.push(i);for(e=Gt(),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]);dn(t),dn(n),dn(e)}},ao.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},ao.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&&($u(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)}}ao.prototype.insertLink=function(){return null},ao.prototype.resolveReferencesForData=function(){},ao.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,xi('No Group template found for category "'+n+'"'),xi(" Using default group template")),t=e.ly))):(t=e.nodeTemplateMap.I(n),t===null&&(t=e.nodeTemplateMap.I(""),t===null&&(C1||(C1=!0,xi('No Node template found for category "'+n+'"'),xi(" Using default node template")),t=e.ny))),t}ao.prototype.getLinkCategoryForData=function(){return""},ao.prototype.setLinkCategoryForData=function(){},ao.prototype.setFromNodeForLink=function(){},ao.prototype.setToNodeForLink=function(){},ao.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,xi('No Link template found for category "'+e+'"'),xi(" Using default link template")),n=t.my)),n},ao.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},ao.prototype.Gs=function(e){var t=this;e.forEach(function(n){t.ip(n)})},ao.prototype.ip=function(e){e=this.Lc(e),e!==null&&(Xc(this.diagram,e,!1),this.unresolveReferencesForPart(e))},ao.prototype.unresolveReferencesForPart=function(){},ao.prototype.removeDataForLink=function(){},ao.prototype.findPartForKey=function(e){return e==null?null:(e=this.H.model.hc(e),e!==null?this.cf.I(e):null)},ao.prototype.Vb=function(e){return e==null||(e=this.H.model.hc(e),e===null)?null:(e=this.cf.I(e),e instanceof Wn?e:null)},ao.prototype.findLinkForKey=function(){return null},U=ao.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 Wn?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 Wt;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 s=arguments[o];if(ft(s)&&mv(this,r,s)){t.add(i);break}}}return t.iterator},U.ls=function(e){for(var t=0;t<arguments.length;++t);t=new Wt;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 s=arguments[o];if(ft(s)&&mv(this,r,s)){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 s=0;s<r.length;s++){var l=o[s];if(l!==void 0&&!w1(e,r[s],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(ft(t)&&ft(n)){if(!mv(e,t,n))return!1}else if(t!==n)return!1;return!0}ao.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===vo){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===Zo){var s=e.newValue;i==="nodeDataArray"&&ft(s)&&S1(this,s),t.isModified=!0}else if(n===qo){var l=e.oldValue;i==="nodeDataArray"&&ft(l)&&this.ip(l),t.isModified=!0}else n===xa&&(i==="SourceChanged"?e.object!==null?this.updateDataBindings(e.object,e.propertyName):(this.rp(),this.updateAllTargetBindings()):i==="ModelDisplaced"&&this.Wd());else if(n===vo){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===Zo||n===qo){var p=e.change===Zo,x=p?e.newParam:e.oldParam,A=p?e.newValue:e.oldValue,L=this.aj.I(e.object);if(Array.isArray(L))for(e=0;e<L.length;e++){var B=L[e];if(p)F0(B,A,x,!0);else if(!(0>x)){var V=x+xp(B);B.pc(V,!0),Ig(B,V,x)}}t.isModified=!0}}finally{t.aa=!0}}}}},ao.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)},ao.prototype.rp=function(){for(var e=this.H.model,t=new Wt,n=e.nodeDataArray,i=0;i<n.length;i++)t.add(n[i]);var r=[];for(this.nodes.each(function(s){s.data===null||t.contains(s.data)||r.push(s.data)}),this.parts.each(function(s){s.data===null||t.contains(s.data)||r.push(s.data)}),r.forEach(function(s){P1(e,s,!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()},ao.prototype.refreshDataBoundLinks=function(){},ao.prototype.updateRelationshipsFromData=function(){},ao.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 s=r[o].sx(e);s!==null&&(n===null&&(n=Gt()),n.push(s))}if(n!==null)break}if(n!==null){for(i=0;i<n.length;i++)n[i].La(t);dn(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(s){s=s.O.s;for(var l=s.length,u=0;u<l;u++)rp(n,s[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}}}}ao.prototype.Kj=function(e,t,n){n===void 0&&(n=!1);var i=new qn;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 Wt;for(var o=new qn,s=i.iterator;s.next();){var l=s.value;if(l instanceof In)e||l.fromNode!==null&&l.toNode!==null||r.add(l);else if(l instanceof Wn&&l.data!==null&&n.Tl()){var u=l;l=s.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 qn;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 Ei))return null;if(o.isSelected=!1,o.isHighlighted=!1,i.add(t,o),t instanceof Wn){for(var s=t.linksConnected;s.next();){var l=s.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 er&&o instanceof er)for(t=t.memberParts;t.next();)s=ym(e,t.value,n,i,r),s instanceof In||s===null||(s.containingGroup=o)}else if(t instanceof In&&o instanceof In)for(s=t.fromNode,s!==null&&(s=i.I(s),s!==null&&(o.fromNode=s)),s=t.toNode,s!==null&&(s=i.I(s),s!==null&&(o.toNode=s)),t=t.labelNodes;t.next();)s=ym(e,t.value,n,i,r),s!==null&&s instanceof Wn&&(s.labeledLink=o);return o}ao.prototype.copyPartData=function(e,t){var n=null,i=e.data;if(i!==null&&t!==null){var r=t.model;e instanceof In||(i=r.copyNodeData(i),ft(i)&&(r.xf(i),n=t.Lc(i)))}else $u(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 In||(r=t.copyNodeData(i)),ft(r)&&(n.data=r)));return n},ht.Object.defineProperties(ao.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}}}),ao.prototype.updateAllRelationshipsFromData=ao.prototype.rp,ao.prototype.findLinksByExample=ao.prototype.ls,ao.prototype.findNodesByExample=ao.prototype.ms,ao.prototype.findLinkForData=ao.prototype.Kc,ao.prototype.findNodeForData=ao.prototype.ii,ao.prototype.findPartForData=ao.prototype.Lc,ao.prototype.findNodeForKey=ao.prototype.Vb,ao.prototype.removeModeledPart=ao.prototype.ip,ao.prototype.removeModeledParts=ao.prototype.Gs,ao.prototype.rebuildParts=ao.prototype.Wd;var C1=!1,T1=!1,N1=!1;ao.className="PartManager";function ga(e){ao.apply(this,arguments)}di(ga,ao),ga.prototype.addAllModeledParts=function(){var e=this.diagram.model;this.addModeledParts(e.nodeDataArray),A1(this,e.linkDataArray)},ga.prototype.addModeledParts=function(e){for(ao.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){$u(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=xu(n,t,!0),o!==void 0&&(o=e.Vb(o),o instanceof Wn&&(r.fromNode=o)),o=Em(n,t,!1),o!==""&&(r.toPortId=o),o=xu(n,t,!1),o!==void 0&&(o=e.Vb(o),o instanceof Wn&&(r.toNode=o)),n=n.Ef(t),Array.isArray(n)&&n.forEach(function(s){s=e.Vb(s),s!==null&&(s.labeledLink=r)}),e.tp&&(r.Jg="Tool"),e.diagram.add(r),r.ub=null,r.data=t,e.diagram.skipsModelSourceBindings=i}}}}ga.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)})}ga.prototype.getLinkCategoryForData=function(e){return this.diagram.model.ps(e)},ga.prototype.setLinkCategoryForData=function(e,t){return this.diagram.model.lp(e,t)},ga.prototype.setFromNodeForLink=function(e,t){var n=this.diagram.model;n.wv(e.data,n.wa(t!==null?t.data:null))},ga.prototype.setToNodeForLink=function(e,t){var n=this.diagram.model;n.Bv(e.data,n.wa(t!==null?t.data:null))},ga.prototype.removeDataForLink=function(e){this.diagram.model.bm(e.data)},ga.prototype.findPartForKey=function(e){var t=ao.prototype.findPartForKey.call(this,e);return t===null&&(e=this.diagram.model.jh(e),e!==null)?this.bf.I(e):t},ga.prototype.findLinkForKey=function(e){return e==null?null:(e=this.diagram.model.jh(e),e!==null?this.bf.I(e):null)},ga.prototype.doModelChanged=function(e){var t=this;if(ao.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===vo){if(r==="linkFromKey"){var o=this.Kc(e.object);if(o!==null){var s=this.Vb(e.newValue);o.fromNode=s}}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 A=e.newValue;typeof A=="string"&&(x.toPortId=A)}}else if(r==="nodeGroupKey"){var L=this.Lc(e.object);if(L!==null){var B=e.newValue;if(B!==void 0){var V=this.Vb(B);V instanceof er?L.containingGroup=V:L.containingGroup=null}else L.containingGroup=null}}else if(r==="linkLabelKeys"){var ye=this.Kc(e.object);if(ye!==null){var oe=e.oldValue,Me=e.newValue;Array.isArray(oe)&&oe.forEach(function(an){0<=Me.indexOf(an)||(an=t.Vb(an),an!==null&&(an.labeledLink=null))}),Array.isArray(Me)&&Me.forEach(function(an){an=t.Vb(an),an!==null&&(an.labeledLink=ye)})}}else if(r==="linkCategory"){var Be=this.Kc(e.object),je=e.newValue;Be!==null&&typeof je=="string"&&(Be.category=je)}else r==="linkDataArray"&&(I1(this,e.oldValue),A1(this,e.newValue));n.isModified=!0}else if(i===Zo){var tt=e.newValue;if(r==="linkDataArray"&&typeof tt=="object"&&tt!==null)k1(this,tt);else if(r==="linkLabelKeys"&&Yh(tt)){var St=this.Kc(e.object),$n=this.Vb(tt);St!==null&&$n!==null&&($n.labeledLink=St)}n.isModified=!0}else if(i===qo){var ii=e.oldValue;if(r==="linkDataArray"&&typeof ii=="object"&&ii!==null)this.ip(ii);else if(r==="linkLabelKeys"&&Yh(ii)){var Qn=this.Vb(ii);Qn!==null&&(Qn.labeledLink=null)}n.isModified=!0}}else if(i===vo){var An=e.propertyName;e.object!==n.model||An!=="linkFromKeyProperty"&&An!=="linkToKeyProperty"&&An!=="linkFromPortIdProperty"&&An!=="linkToPortIdProperty"&&An!=="linkLabelKeysProperty"&&An!=="nodeIsGroupProperty"&&An!=="nodeGroupKeyProperty"&&An!=="linkCategoryProperty"||n.undoManager.isUndoingRedoing||this.Wd(),n.isModified=!0}}finally{n.aa=!0}}}}},ga.prototype.refreshDataBoundLinks=function(){var e=this,t=this.diagram.model,n=new Wt,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)})},ga.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 In){var r=xu(i,t,!0);if(r=n.Vb(r),e.fromNode=r,r=xu(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 Wt().addAll(t);var s=new Wt;e.labelNodes.each(function(l){l.data!==null&&(l=i.wa(l.data),l!==void 0&&s.add(l))}),t=s.copy(),t.hp(r),r=r.copy(),r.hp(s),(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 Wr)&&(t=i.lh(t),t=n.findPartForKey(t),t===null||t instanceof er)&&(e.containingGroup=t)}}},ga.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 s=i.value;t.lb(s)?r instanceof er&&t.lh(s)===n&&(s=this.Lc(s),s!==null&&(s.containingGroup=r)):(o.link=this.Kc(s),o.link!==null&&r instanceof Wn&&(xu(t,s,!0)===n&&(o.link.fromNode=r),xu(t,s,!1)===n&&(o.link.toNode=r),s=t.Ef(s),Array.isArray(s)&&s.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 er&&(r.containingGroup=e))}},ga.prototype.unresolveReferencesForPart=function(e){var t=this.diagram.model;if(e instanceof Wn){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 er)for(e=e.memberParts;e.next();)i=e.value.data,t.lb(i)&&mc(t,n,i)}}},ga.prototype.copyPartData=function(e,t){var n=ao.prototype.copyPartData.call(this,e,t);if(e instanceof In)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},ga.prototype.insertLink=function(e,t,n,i){var r=this.diagram,o=r.model,s=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=s.archetypeLinkData,i instanceof In){if($u(i),o=i.copy(),o!==null)return o.fromNode=e,o.fromPortId=l,o.toNode=n,o.toPortId=t,r.add(o),e=s.archetypeLabelNodeData,e instanceof Wn&&($u(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=s.archetypeLabelNodeData,e===null||e instanceof Wn||(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},ga.prototype.findLinkForKey=ga.prototype.findLinkForKey,ga.prototype.findPartForKey=ga.prototype.findPartForKey,ga.prototype.removeAllModeledParts=ga.prototype.removeAllModeledParts,ga.prototype.addModeledParts=ga.prototype.addModeledParts,ga.prototype.addAllModeledParts=ga.prototype.addAllModeledParts,ga.className="GraphLinksPartManager";function Du(){ao.apply(this,arguments),this.Sg=null}di(Du,ao);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||!cn(i,r,o,null,!0))&&(t=e.getLinkCategoryForData(n.data),i=e.findLinkTemplateForCategory(t),i!==null&&($u(i),i=i.copy(),i!==null))){var s=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=s}}}Du.prototype.getLinkCategoryForData=function(e){return this.diagram.model.ss(e)},Du.prototype.setLinkCategoryForData=function(e,t){this.diagram.model.Ms(e,t)},Du.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}},Du.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))},Du.prototype.removeDataForLink=function(e){this.diagram.model.qe(e.data,void 0)},Du.prototype.findLinkForKey=function(e){return e==null?null:(e=this.diagram.model.hc(e),e!==null?this.bf.I(e):null)},Du.prototype.doModelChanged=function(e){if(ao.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===vo){if(i==="nodeParentKey"){var r=e.object,o=this.Vb(e.newValue),s=this.ii(r);if(this.Sg!==null)o!==null&&(this.Sg.data=r,this.Sg.category=this.getLinkCategoryForData(r));else if(s!==null){var l=s.kh();l!==null?o===null?t.remove(l):t.isTreePathToChildren?l.fromNode=o:l.toNode=o:bm(this,o,s)}}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===vo){var x=e.propertyName;e.object===t.model&&x==="nodeParentKeyProperty"&&(t.undoManager.isUndoingRedoing||this.Wd()),t.isModified=!0}}finally{t.aa=!0}}}}},Du.prototype.updateRelationshipsFromData=function(e){var t=e.data;if(t!==null){var n=e.diagram;if(n!==null){var i=n.model;e instanceof Wn&&(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)))}}},Du.prototype.updateDataBindings=function(e,t){ao.prototype.updateDataBindings.call(this,e,t),typeof t=="string"&&this.Lc(e)!==null&&(e=this.Kc(e),e!==null&&e.La(t))},Du.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 Wn&&t.mh(o)===n&&bm(this,r,this.ii(o))}gc(t,n)}e=t.mh(e),e!==void 0&&r instanceof Wn&&(e=this.Vb(e),bm(this,e,r))}},Du.prototype.unresolveReferencesForPart=function(e){var t=this.diagram.model;if(e instanceof Wn){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(qo,"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)}},Du.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},Du.prototype.findLinkForKey=Du.prototype.findLinkForKey,Du.className="TreePartManager";function hi(e,t){this.kl=new Wt,this.il=new Wt,this.Wv=`,
|
|
|
"insertedNodeKeys": `,this.jy=`,
|
|
|
"modifiedNodeData": `,this.Yv=`,
|
|
|
"removedNodeKeys": `,this.vh=null,Yi(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new qn,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 qn,this.Lt=new Zt,this.Wg=!1,this.o=null,this.undoManager=new Po,e!==void 0&&(Fn(e)?this.nodeDataArray=e:t=e),t&&(Object.assign(this,t),e=t.Changed)&&(delete this.Changed,this.Pe(e))}hi.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},hi.prototype.copy=function(){var e=new this.constructor;return this.cloneProtected(e),e},hi.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},hi.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)+":"+En(r)}}return t},hi.prototype.xA=function(e){e.change!==xa&&pt("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+e.toString());var t=e.object;return e.isTransactionFinished&&t instanceof bs?(O1(this,t),e=this.Qv(t,e.propertyName==="FinishedUndo"),this.vh=null,e):null},hi.prototype.Qv=function(e,t){var n=this,i=!1,r=new Wt,o=new Wt,s=new Wt,l=this.vh;e.changes.each(function(x){x.model===n&&(x.modelChange==="nodeDataArray"?x.change===Zo?r.add(x.newValue):x.change===qo&&s.add(x.oldValue):n.lb(x.object)?o.add(x.object):x.change!==vo||n.modelData!==x.object&&x.propertyName!=="modelData"?x.object!==null&&(l&&l.contains(x.object)?l.get(x.object).each(function(A){n.lb(A)&&o.add(A)}):x.object instanceof hi||n.ri()&&n.Jc(x.object)||L1(n,x.object).each(function(A){o.add(A)})):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(),s.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},hi.prototype.cloneDeep=function(e){return Pf(this,e,!0)};function Pf(e,t,n,i,r,o){function s(x,A){l?(x.__gohashid===void 0&&o.push(x),i.set(x,A)):(x=Mo++,i.set(x,A),r.set(x,t))}if(!ft(t))return t;o||(o=[]);var l=Object.isExtensible(t);if(i||(i=new qn),l){var u=i.get(t);if(u)return u}else for(r||(r=new qn),u=r.iterator;u.next();){var f=u.key;if(u.value===t&&(f=i.get(f)))return f}if(Array.isArray(t)){u=[],s(t,u);for(var p=0;p<t.length;p++)u.push(Pf(e,t[p],!1,i,r,o))}else if(t instanceof ce||t instanceof mi||t instanceof Ht||t instanceof pi||t instanceof oi)u=t.copy(),s(t,u);else{if(t instanceof no||t instanceof kn||t instanceof Kt)return t;if(t instanceof Zt)u=new Zt().addAll(Pf(e,t.Fa(),!1,i,r,o)),s(t,u);else if(t instanceof Wt)u=new Wt().addAll(Pf(e,t.Fa(),!1,i,r,o)),s(t,u);else if(t instanceof qn)u=new qn().addAll(Pf(e,t.Fa(),!1,i,r,o)),s(t,u);else if(t instanceof Date)u=new Date(t.getTime()),s(t,u);else if(t instanceof RegExp)u=new RegExp(t),s(t,u),u.lastIndex=t.lastIndex;else if(typeof t.copy=="function")u=t.copy(),s(t,u);else for(p in u={},s(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=hi.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,ft(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 s=i.get(r);s===null?(s=new Wt,s.add(o),i.add(r,s)):s.add(o)}}var i=e.vh;i===null&&(i=new qn,t.changes.each(function(r){if(r.diagram!==null){var o=r.change;o===vo?(r=r.object.panel)&&(o=r.data)&&n(o,r):(o===Zo||o===qo)&&(r=r.object,(o=r.itemArray)&&n(o,r))}}),e.vh=i)}function L1(e,t){for(var n=new Wt,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 s=n[o];if(s===t)return r.add(i),!0;if(xm(e,t,s,i,r))return!0}else if(ft(n)&&Object.getPrototypeOf(n)===Object.prototype)for(o in n){if(s=n[o],s===t)return r.add(i),!0;if(xm(e,t,s,i,r))return!0}return!1}U.Pv=function(e,t){var n=this,i=!1,r=new Wt,o=new Wt,s=new Wt,l=this.vh;e.changes.each(function(p){p.model===n&&(p.modelChange==="nodeDataArray"?p.change===Zo?r.add(p.newValue):p.change===qo&&s.add(p.oldValue):n.lb(p.object)?o.add(p.object):p.change!==vo||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 hi||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(),s.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)&&pt("applyIncrementalJson cannot change Model properties"),M1(this,e);var t=e.insertedNodeKeys,n=e.modifiedNodeData,i=new qn;if(Array.isArray(n))for(var r=0;r<n.length;r++){var o=n[r],s=this.wa(o);s!=null&&i.set(s,o)}if(Array.isArray(t))for(r=t.length,o=0;o<r;o++){s=t[o];var l=this.hc(s);l===null&&(l=(l=i.get(s))?l:this.copyNodeData({}),this.km(l,s),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!==xa&&pt("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+e.toString());var n=e.object;return e.isTransactionFinished&&n instanceof bs?(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=Ge.JSON.parse(e)}catch(i){}else typeof e=="object"?t=e:pt("Unable to modify a Model from: "+e);var n=t.incremental;typeof n!="number"&&pt("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)},hi.constructGraphLinksModel=function(){return new hi},U=hi.prototype,U.dm=function(e){if(Fn(e))for(var t=e.length,n=0;n<t;n++){var i=e[n];if(ft(i)){var r=n;i=this.dm(i),Array.isArray(e)?e[r]=i:pt("Cannot replace an object in an HTMLCollection or NodeList at "+r)}}else if(ft(e)){for(t in e)if(n=e[t],ft(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 Zt,i=0;i<n.length/2;i++)r.add(new ce(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):ft(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 J;r.add("["),n&&1<i&&r.add(`
|
|
|
`);for(var o=0;o<i;o++){var s=t[o];s!==void 0&&(0<o&&(r.add(","),n&&r.add(`
|
|
|
`)),r.add(e.sm(s)))}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 Cl(e){return isNaN(e)?"NaN":e===1/0?"9e9999":e===-1/0?"-9e9999":e}function yv(e,t){var n=t;if(n instanceof ce)t={class:"go.Point",x:Cl(n.x),y:Cl(n.y)};else if(n instanceof mi)t={class:"go.Size",width:Cl(n.width),height:Cl(n.height)};else if(n instanceof Ht)t={class:"go.Rect",x:Cl(n.x),y:Cl(n.y),width:Cl(n.width),height:Cl(n.height)};else if(n instanceof pi)t={class:"go.Margin",top:Cl(n.top),right:Cl(n.right),bottom:Cl(n.bottom),left:Cl(n.left)};else if(n instanceof oi)n.sb()?t={class:"go.Spot",x:Cl(n.x),y:Cl(n.y),offsetX:Cl(n.offsetX),offsetY:Cl(n.offsetY)}:t={class:"go.Spot",enum:n.toString()};else if(n instanceof no){if(t={class:"go.Brush",type:n.type.name},n.type===vh?t.color=n.color:(n.type===eh||n.type===Lu)&&(t.start=n.start,t.end=n.end,n.type===Lu&&(n.startRadius!==0&&(t.startRadius=Cl(n.startRadius)),isNaN(n.endRadius)||(t.endRadius=Cl(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 kn?(t={class:"go.Geometry",type:n.type.name},n.startX!==0&&(t.startX=Cl(n.startX)),n.startY!==0&&(t.startY=Cl(n.startY)),n.endX!==0&&(t.endX=Cl(n.endX)),n.endY!==0&&(t.endY=Cl(n.endY)),n.spot1.D(Qo)||(t.spot1=n.spot1),n.spot2.D(zo)||(t.spot2=n.spot2),n.type===kn.o&&(t.path=kn.ia(n))):n instanceof Kt&&(t={class:"go.EnumValue",classType:Hp(e,n.classType),name:n.name});i="{",n=!0;for(var r in t){var o=Fs(t,r);if(!R1(r,o))if(n?n=!1:i+=",",i+=e.quote(r)+":",r==="points"&&o instanceof Zt){var s="[";for(o=o.iterator;o.next();){var l=o.value;1<s.length&&(s+=","),s+=e.sm(l.x),s+=",",s+=e.sm(l.y)}s+="]",i+=s}else i+=e.sm(o)}return i+"}"}function Tl(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 ce(Tl(e.x),Tl(e.y));else if(t==="Size")n=new mi(Tl(e.width),Tl(e.height));else if(t==="Rect")n=new Ht(Tl(e.x),Tl(e.y),Tl(e.width),Tl(e.height));else if(t==="Margin")n=new pi(Tl(e.top),Tl(e.right),Tl(e.bottom),Tl(e.left));else if(t==="Spot")typeof e.enum=="string"?n=hc(e.enum):n=new oi(Tl(e.x),Tl(e.y),Tl(e.offsetX),Tl(e.offsetY));else if(t==="Brush"){if(n=new no,n.type=Qi(no,e.type),typeof e.color=="string"&&(n.color=e.color),e.start instanceof oi&&(n.start=e.start),e.end instanceof oi&&(n.end=e.end),typeof e.startRadius=="number"&&(n.startRadius=Tl(e.startRadius)),typeof e.endRadius=="number"&&(n.endRadius=Tl(e.endRadius)),e=e.colorStops,ft(e))for(var i in e)n.addColorStop(parseFloat(i),e[i])}else t==="Geometry"?(n=null,typeof e.path=="string"?n=kn.parse(e.path):n=new kn,n.type=Qi(kn,e.type),typeof e.startX=="number"&&(n.startX=Tl(e.startX)),typeof e.startY=="number"&&(n.startY=Tl(e.startY)),typeof e.endX=="number"&&(n.endX=Tl(e.endX)),typeof e.endY=="number"&&(n.endY=Tl(e.endY)),e.spot1 instanceof oi&&(n.spot1=e.spot1),e.spot2 instanceof oi&&(n.spot2=e.spot2)):t==="EnumValue"&&(i=e.classType,i.indexOf("go.")===0&&(i=i.substr(3)),i=xv(i),typeof i=="function"&&(n=Qi(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,s){Qs(this,"",e,t,n,i,r,o,s)},U.g=function(e,t,n,i,r){Qs(this,"",vo,e,this,t,n,i,r)},U.Fs=function(e,t,n,i,r,o){Qs(this,"",vo,t,e,n,i,r,o)};function Qs(e,t,n,i,r,o,s,l,u){l===void 0&&(l=null),u===void 0&&(u=null);var f=new Do;f.model=e,f.change=n,f.modelChange=t,f.propertyName=i,f.object=r,f.oldValue=o,f.oldParam=l,f.newValue=s,f.newParam=u,e.ds(f)}hi.prototype.changeState=function(e,t){if(e!==null&&e.model===this)if(e.change===vo){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)),jo(n,i,r)}else e.change===Zo?(n=e.newParam,e.modelChange==="nodeDataArray"?(e=e.newValue,ft(e)&&typeof n=="number"&&(i=this.wa(e),t?(this.Tc[n]===e&&D(this.Tc,n),i!==void 0&&this.kb.remove(i)):(this.Tc[n]!==e&&qe(this.Tc,n,e),i!==void 0&&this.kb.add(i,e)))):e.modelChange===""?((i=e.object)&&!Fn(i)&&e.propertyName&&(i=Fs(e.object,e.propertyName)),Fn(i)&&typeof n=="number"&&(e=e.newValue,t?D(i,n):qe(i,n,e))):pt("unknown ChangedEvent.Insert modelChange: "+e.toString())):e.change===qo?(n=e.oldParam,e.modelChange==="nodeDataArray"?(e=e.oldValue,ft(e)&&typeof n=="number"&&(i=this.wa(e),t?(this.Tc[n]!==e&&qe(this.Tc,n,e),i!==void 0&&this.kb.add(i,e)):(this.Tc[n]===e&&D(this.Tc,n),i!==void 0&&this.kb.remove(i)))):e.modelChange===""?((i=e.object)&&!Fn(i)&&e.propertyName&&(i=Fs(e.object,e.propertyName)),Fn(i)&&typeof n=="number"&&(e=e.oldValue,t?qe(i,n,e):D(i,n))):pt("unknown ChangedEvent.Remove modelChange: "+e.toString())):e.change!==xa&&pt("unknown ChangedEvent: "+e.toString())},hi.prototype.Ea=function(e){return this.undoManager.Ea(e)},hi.prototype.eb=function(e){return this.undoManager.eb(e)},hi.prototype.Kf=function(){return this.undoManager.Kf()},hi.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=hi.prototype,U.La=function(e,t){t===void 0&&(t=""),Qs(this,"SourceChanged",xa,t,e,null,null)},U.wa=function(e){if(e!==null){var t=this.Th;if(t!==""&&(t=Fs(e,t),t!==void 0)){if(Yh(t))return t;pt("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=Fs(e,n);i!==t&&this.hc(t)===null&&(jo(e,n,t),i!==void 0&&this.kb.remove(i),this.kb.add(t,e),Qs(this,"nodeKey",vo,n,e,i,t),typeof n=="string"&&this.La(e,n),this.jp(i,t))}else jo(e,n,t)}};function Yh(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&&pt("Model.findNodeDataForKey:key must not be null"),e!==void 0&&Yh(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))){jo(e,t,n);return}if(typeof n=="string"){for(i=2;this.kb.contains(n+i);)i++;jo(e,t,n+i)}else if(n===void 0||typeof n=="number"){for(n=-this.kb.count-1;this.kb.contains(n);)n--;jo(e,t,n)}}}}},U.xf=function(e){e!==null&&(io(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&&pt("Model.makeNodeDataKeyUnique failed on "+t+". Data not added to Model."),e.kb.add(i,t),i=null,n&&(i=e.Tc.length,qe(e.Tc,i,t)),Qs(e,"nodeDataArray",Zo,"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;D(e.Tc,i)}Qs(e,"nodeDataArray",qo,"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],s=this.wa(o);if(s!==void 0){n.add(s);var l=this.hc(s);l!==o&&(l!==null?(this.Do(l,o),this.lm(o,l)):(o=this.cloneDeep(o),this.km(o,s),this.xf(o)))}else s=this.cloneDeep(o),this.xf(s),n.add(this.wa(s))}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 Wt&&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 Wt,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 Wt&&(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 Wt?e:null)}U.Qy=function(e){e===void 0?this.Vf.clear():this.Vf.remove(e)},hi.prototype.copyNodeData=function(e){if(e===null)return null;var t=this.Bk;return e=t!==null?t(e,this):Sm(this,e,!0),ft(e)&&Yi(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 Yi(i),i}if(n&&ft(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=Fs(t,i),s=Hp(e,o);s==="GraphObject"||s==="Diagram"||s==="Layer"||s==="RowColumnDefinition"||s==="AnimationManager"||s==="Tool"||s==="CommandHandler"||s==="Layout"||s==="InputEvent"||s==="DiagramEvent"||o instanceof hi||o instanceof Po||o instanceof bs||o instanceof Do||(o=Sm(e,o,!1)),jo(n,i,o)}return Yi(n),n}return t instanceof ce||t instanceof mi||t instanceof Ht||t instanceof oi||t instanceof pi?t.copy():t}hi.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 it&&(F1=!0,xi('Model.setDataProperty is modifying a GraphObject, "'+e.toString()+'"'),xi(" Is that really your intent?"));var i=Fs(e,t);i!==n&&(jo(e,t,n),this.Fs(e,t,i,n))},U=hi.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),qe(e,t,n),Qs(this,"",Zo,"",e,null,n,null,t)},U.ov=function(e,t){t===void 0&&(t=-1),e===this.Tc&&pt("Model.removeArrayItem should not be called on the Model.nodeDataArray"),t===-1&&(t=e.length-1);var n=e[t];D(e,t),Qs(this,"",qo,"",e,n,null,t,null)},U.Ro=function(e){if(e===null)return"";var t=this.lj;if(t===""||(t=Fs(e,t),t===void 0))return"";if(typeof t=="string")return t;pt("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=Fs(e,n);i===void 0&&(i=""),i!==t&&(jo(e,n,t),Qs(this,"nodeCategory",vo,n,e,i,t))}else jo(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 hi}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]:Ge.go!==void 0&&Ge.go[e]?Ge.go[e]:null}function Fs(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 jo(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(hi.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===""&&pt("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&pt("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];ft(r)||pt("Model.nodeDataArray must only contain Objects, not: "+r),io(r)}for(this.Tc=e,i=new Zt,r=0;r<n;r++){var o=e[r],s=this.wa(o);s===void 0||this.kb.I(s)!==null?i.add(o):this.kb.add(s,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(Qs(this,"nodeDataArray",vo,"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"}}}),hi.prototype.setCategoryForNodeData=hi.prototype.jm,hi.prototype.getCategoryForNodeData=hi.prototype.Ro,hi.prototype.removeArrayItem=hi.prototype.ov,hi.prototype.insertArrayItem=hi.prototype.ts,hi.prototype.addArrayItem=hi.prototype.Ay,hi.prototype.assignAllDataProperties=hi.prototype.Do,hi.prototype.set=hi.prototype.set,hi.prototype.clearUnresolvedReferences=hi.prototype.Qy,hi.prototype.mergeNodeDataArray=hi.prototype.$z,hi.prototype.removeNodeDataCollection=hi.prototype.nA,hi.prototype.removeNodeData=hi.prototype.cm,hi.prototype.addNodeDataCollection=hi.prototype.Fy,hi.prototype.addNodeData=hi.prototype.xf,hi.prototype.makeNodeDataKeyUnique=hi.prototype.$u,hi.prototype.findNodeDataForKey=hi.prototype.hc,hi.prototype.containsNodeData=hi.prototype.lb,hi.prototype.setKeyForNodeData=hi.prototype.km,hi.prototype.getKeyForNodeData=hi.prototype.wa,hi.prototype.updateTargetBindings=hi.prototype.La,hi.prototype.commit=hi.prototype.commit,hi.prototype.rollbackTransaction=hi.prototype.Kf,hi.prototype.commitTransaction=hi.prototype.eb,hi.prototype.startTransaction=hi.prototype.Ea,hi.prototype.raiseDataChanged=hi.prototype.Fs,hi.prototype.raiseChanged=hi.prototype.g,hi.prototype.raiseChangedEvent=hi.prototype.cb,hi.prototype.removeChangedListener=hi.prototype.ik,hi.prototype.addChangedListener=hi.prototype.Pe,hi.prototype.writeJsonValue=hi.prototype.sm,hi.prototype.replaceJsonObjects=hi.prototype.dm,hi.prototype.applyIncrementalJSON=hi.prototype.Ky,hi.prototype.applyIncrementalJson=hi.prototype.Zw,hi.prototype.toJSON=hi.prototype.toJSON,hi.prototype.toJson=hi.prototype.np,hi.prototype.toIncrementalJSON=hi.prototype.yA,hi.prototype.toIncrementalJson=hi.prototype.$x,hi.prototype.toIncrementalData=hi.prototype.xA,hi.prototype.clear=hi.prototype.clear;var F1=!1,oc={};hi.className="Model",hi.fromJSON=hi.fromJson=function(e,t){t===void 0&&(t=null);var n=null;if(typeof e=="string")try{n=Ge.JSON.parse(e)}catch(o){}else typeof e=="object"?n=e:pt("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=Ge[i])),typeof r=="function"&&(e=new r)}catch(o){}e===null||e instanceof hi?t=e:pt("Unable to construct a Model of declared class: "+n.class)}return t===null&&(t=hi.constructGraphLinksModel()),t.gp(n),t.kv(n),t},hi.safePropertyValue=Fs,hi.safePropertySet=jo,oc.Brush=no,oc.ChangedEvent=Do,oc.Geometry=kn,oc.Margin=pi,oc.Panel=xn,oc.Point=ce,oc.Rect=Ht,oc.Size=mi,oc.Spot=oi,oc.Transaction=bs,oc.UndoManager=Po;function $s(e,t,n,i){Yi(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 Wt}$s.prototype.copy=function(){var e=new $s;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=$s.prototype,U.qb=function(e){e.classType===$s&&(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==="")xi("Binding error: target property is the empty string: "+this.toString());else{var o=t;if(i!==""&&(o=Fs(t,i)),o!==void 0)if(r===null)n!==""&&jo(e,n,o);else try{if(n!==""){var s=r(o,e);jo(e,n,s)}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,s=e;if(r!==""&&(s=Fs(e,r)),s!==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,s):jo(t,n,s);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,s)}}else try{if(n!==""){var x=o(s,t,u);u!==null?u.setDataProperty(t,n,x):jo(t,n,x)}else{var A=o(s,t,u);if(A!==void 0&&u!==null&&i!==null&&0<=i.itemIndex&&i.panel!==null&&Array.isArray(i.panel.itemArray)){var L=i.itemIndex,B=i.panel.itemArray;u.ov(B,L),u.ts(B,L,A)}}}catch(V){}}finally{this.st.remove(e)}}}},ht.Object.defineProperties($s.prototype,{Ai:{get:function(){return this.j},set:function(e){this._isFrozen&&gn(this),this.j=e}},targetProperty:{get:function(){return this.xl},set:function(e){this._isFrozen&&gn(this),this.xl=e}},sourceName:{get:function(){return this.Cr},set:function(e){this._isFrozen&&gn(this),this.Cr=e,e!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(e){this._isFrozen&&gn(this),this.wn=e}},sourceProperty:{get:function(){return this.sl},set:function(e){this._isFrozen&&gn(this),this.sl=e}},converter:{get:function(){return this.Im},set:function(e){this._isFrozen&&gn(this),this.Im=e}},backConverter:{get:function(){return this.wk},set:function(e){this._isFrozen&&gn(this),this.wk=e}},mode:{get:function(){return this.el},set:function(e){this._isFrozen&&gn(this),this.el=e}}}),$s.prototype.updateSource=$s.prototype.sp,$s.prototype.updateTarget=$s.prototype.Mv,$s.prototype.ofModel=$s.prototype.dA,$s.prototype.ofObject=$s.prototype.cp,$s.prototype.makeTwoWay=$s.prototype.Kx;var Vb="Binding",_1=new Kt($s,"OneWay",1),$p=new Kt($s,"TwoWay",2);$s.className="Binding",$s.parseEnum=function(e,t){return function(n){return n=Qi(e,n),n===null?t:n}},$s.toString=En,$s.OneWay=_1,$s.TwoWay=$p;function Rr(e,t,n){hi.call(this),this.Vv=`,
|
|
|
"insertedLinkKeys": `,this.iy=`,
|
|
|
"modifiedLinkData": `,this.Xv=`,
|
|
|
"removedLinkKeys": `,this.md=[],this.$f=new Wt,this.wb=new qn,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))}di(Rr,hi),Rr.constructGraphLinksModel=hi.constructGraphLinksModel,Rr.prototype.cloneProtected=function(e){hi.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=Rr.prototype,U.clear=function(){hi.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)+":"+En(r)}for(t+=`
|
|
|
link data:`,e=this.linkDataArray,n=e.length,i=0;i<n;i++)r=e[i],t+=" "+xu(this,r,!0)+"-->"+xu(this,r,!1)}return t},U.Qv=function(e,t){this.linkKeyProperty===""&&pt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var n=hi.prototype.Qv.call(this,e,t),i=this,r=new Wt,o=new Wt,s=new Wt,l=this.vh;e.changes.each(function(p){p.model===i&&(p.modelChange==="linkDataArray"?p.change===Zo?r.add(p.newValue):p.change===qo&&s.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 hi||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(),s.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=hi.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){hi.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=hi.prototype.Rv.call(this),t=`,
|
|
|
"linkDataArray": `+Kh(this,this.linkDataArray,!0);return e+t},U.kv=function(e){hi.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 Wt,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===""&&pt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var n=hi.prototype.Pv.call(this,e,t),i=this,r=new Wt,o=new Wt,s=new Wt,l=this.vh;e.changes.each(function(p){p.model===i&&(p.modelChange==="linkDataArray"?p.change===Zo?r.add(p.newValue):p.change===qo&&s.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 hi||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(),s.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)&&pt("applyIncrementalJson cannot change Model properties"),hi.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 s in r)s!=="__gohashid"&&s!==this.linkKeyProperty&&this.setDataProperty(o,s,r[s]);$1(this,r,o)}}if(e=e.removedLinkKeys,Array.isArray(e))for(s=e.length,t=0;t<s;t++)n=this.jh(e[t]),n!==null&&this.bm(n)},Rr.prototype.changeState=function(e,t){if(e!==null&&e.model===this){if(e.change===vo){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),jo(n,i,r);return}}else if(e.change===Zo){if(n=e.newParam,e.modelChange==="linkDataArray"){e=e.newValue,ft(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===qo){if(n=e.oldParam,e.modelChange==="linkDataArray"){e=e.oldValue,ft(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}}hi.prototype.changeState.call(this,e,t)}},U=Rr.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),jo(n,this.nodeKeyProperty,e),this.xf(n))}return e}},U.yx=function(e){return xu(this,e,!0)},U.wv=function(e,t){Ff(this,e,t,!0)},U.Bx=function(e){return xu(this,e,!1)},U.Bv=function(e,t){Ff(this,e,t,!1)};function xu(e,t,n){if(t!==null&&(e=n?e.lf:e.mf,e!==""&&(e=Fs(t,e),e!==void 0))){if(Yh(e))return e;pt((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=Fs(t,r);o!==n&&(gc(e,o,t),jo(t,r,n),e.hc(n)===null&&mc(e,n,t),Qs(e,i?"linkFromKey":"linkToKey",vo,r,t,o,n),typeof r=="string"&&e.La(t,r))}else jo(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=Fs(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=Fs(t,r);o===void 0&&(o=""),o!==n&&(jo(t,r,n),Qs(e,i?"linkFromPortId":"linkToPortId",vo,r,t,o,n),typeof r=="string"&&e.La(t,r))}else jo(t,r,n)}}U.Ef=function(e){if(e===null)return wm;var t=this.je;return t===""?wm:(e=Fs(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=Fs(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(jo(e,n,t),r=t.length,o=0;o<r;o++){var s=t[o];this.hc(s)===null&&mc(this,s,e)}Qs(this,"linkLabelKeys",vo,n,e,i,t),typeof n=="string"&&this.La(e,n)}}else jo(e,n,t)}},U.Bu=function(e,t){if(t!=null&&e!==null){var n=this.je;if(n!==""){var i=Fs(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),Qs(this,"linkLabelKeys",Zo,n,e,null,t,null,r)))}else pt(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=Fs(e,n);if(Array.isArray(i)){var r=i.indexOf(t);0>r||(i.splice(r,1),this.Jc(e)&&(gc(this,t,e),Qs(this,"linkLabelKeys",qo,n,e,t,null,r,null)))}else i!==void 0&&pt(n+" property is not an Array; cannot removeLabelKeyforLinkData: "+e)}}},U.Ac=function(e){if(e!==null){var t=this.Jh;if(t!==""&&(t=Fs(e,t),t!==void 0)){if(Yh(t))return t;pt("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=Fs(e,n);i!==t&&this.jh(t)===null&&(jo(e,n,t),i!==void 0&&this.wb.remove(i),this.wb.add(t,e),Qs(this,"linkKey",vo,n,e,i,t),typeof n=="string"&&this.La(e,n))}else jo(e,n,t)}},U.jh=function(e){return e===null&&pt("GraphLinksModel.findLinkDataForKey:key must not be null"),e!==void 0&&Yh(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))){jo(e,t,n);return}if(typeof n=="string"){for(i=2;this.wb.contains(n+i);)i++;jo(e,t,n+i)}else if(n===void 0||typeof n=="number"){for(n=-this.wb.count-1;this.wb.contains(n);)n--;jo(e,t,n)}}}}},U.Jc=function(e){return e===null?!1:this.$f.contains(e)},U.fi=function(e){e!==null&&(io(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&&pt("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)),Qs(e,"linkDataArray",Zo,"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(Qs(e,"linkDataArray",qo,"linkDataArray",e,t,null,i,null),n=xu(e,t,!0),gc(e,n,t),n=xu(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===""&&pt("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],s=this.Ac(o);if(s!==void 0){n.add(s);var l=this.jh(s);l!==o&&(l!==null?(this.Do(l,o),$1(this,o,l)):(o=this.cloneDeep(o),this.Ks(o,s),this.fi(o)))}else s=this.cloneDeep(o),this.fi(s),n.add(this.Ac(s))}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=xu(e,t,!0);n=e.Vl(n),e.hc(n)===null&&mc(e,n,t),n=xu(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),ft(e)&&(Yi(e),this.lf!==""&&jo(e,this.lf,void 0),this.mf!==""&&jo(e,this.mf,void 0),this.je!==""&&jo(e,this.je,[])),e},U.Yu=function(e){if(e===null)return!1;var t=this.jl;return t===""?!1:!!Fs(e,t)},U.lh=function(e){if(e!==null){var t=this.Je;if(t!==""&&(t=Fs(e,t),t!==void 0)){if(Yh(t))return t;pt("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=Fs(e,n);i!==t&&(gc(this,i,e),jo(e,n,t),this.hc(t)===null&&mc(this,t,e),Qs(this,"nodeGroupKey",vo,n,e,i,t),typeof n=="string"&&this.La(e,n))}else jo(e,n,t)}},Rr.prototype.copyNodeData=function(e){return e===null?null:(e=hi.prototype.copyNodeData.call(this,e),this.Ij||this.Je===""||Fs(e,this.Je)===void 0||jo(e,this.Je,void 0),e)},Rr.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=Fs(e,t);i!==n&&(jo(e,t,n),this.Fs(e,t,i,n))},U=Rr.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&&Fs(e,r)===t[r]||i&&r===this.linkKeyProperty||this.setDataProperty(e,r,t[r])}},U.jp=function(e,t){hi.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(xu(this,i,!0)===r){var s=this.lf;jo(i,s,o),Qs(this,"linkFromKey",vo,s,i,r,o),typeof s=="string"&&this.La(i,s)}if(xu(this,i,!1)===r&&(s=this.mf,jo(i,s,o),Qs(this,"linkToKey",vo,s,i,r,o),typeof s=="string"&&this.La(i,s)),s=this.Ef(i),Array.isArray(s))for(var l=s.length,u=this.je,f=0;f<l;f++)s[f]===r&&(s[f]=o,Qs(this,"linkLabelKeys",Zo,u,i,r,o,f,f))}},U.qv=function(e,t,n){if(this.lh(e)===t){var i=this.Je;jo(e,i,n),Qs(this,"nodeGroupKey",vo,i,e,t,n),typeof i=="string"&&this.La(e,i)}},U.Lv=function(){hi.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){hi.prototype.fm.call(this,e),e=this.wa(e);var t=Up(this,e);if(t!==null){var n=Gt();for(t=t.iterator;t.next();){var i=t.value;if(this.lb(i)){if(this.lh(i)===e){var r=this.Je;Qs(this,"nodeGroupKey",vo,r,i,e,e),typeof r=="string"&&this.La(i,r),n.push(i)}}else if(xu(this,i,!0)===e&&(r=this.lf,Qs(this,"linkFromKey",vo,r,i,e,e),typeof r=="string"&&this.La(i,r),n.push(i)),xu(this,i,!1)===e&&(r=this.mf,Qs(this,"linkToKey",vo,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,s=this.je,l=0;l<o;l++)r[l]===e&&(Qs(this,"linkLabelKeys",Zo,s,i,e,e,l,l),n.push(i))}for(t=0;t<n.length;t++)gc(this,e,n[t]);dn(n)}},U.em=function(e){hi.prototype.em.call(this,e);var t=this.lh(e);this.hc(t)===null&&mc(this,t,e)},U.qp=function(e){hi.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=Fs(e,t),t===void 0))return"";if(typeof t=="string")return t;pt("getCategoryForLinkData found a non-string category for "+e+": "+t)},Rr.prototype.getLinkCategoryForData=function(e){return this.ps(e)},Rr.prototype.lp=function(e,t){if(e!==null){var n=this.dj;if(n!=="")if(this.Jc(e)){var i=Fs(e,n);i===void 0&&(i=""),i!==t&&(jo(e,n,t),Qs(this,"linkCategory",vo,n,e,i,t),typeof n=="string"&&this.La(e,n))}else jo(e,n,t)}},Rr.prototype.setLinkCategoryForData=function(e,t){this.lp(e,t)},U=Rr.prototype,U.lm=function(e,t){hi.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(Rr.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];ft(r)||pt("GraphLinksModel.linkDataArray must only contain Objects, not: "+r),io(r)}if(this.md=e,this.linkKeyProperty!==""){for(i=new Zt,r=0;r<n;r++){var o=e[r],s=this.Ac(o);s===void 0||this.wb.I(s)!==null?i.add(o):this.wb.add(s,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 Wt,r=0;r<n;r++)i.add(e[r]);for(this.$f=i,Qs(this,"linkDataArray",vo,"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"}}}),Rr.prototype.setCategoryForLinkData=Rr.prototype.lp,Rr.prototype.getCategoryForLinkData=Rr.prototype.ps,Rr.prototype.assignAllDataProperties=Rr.prototype.Do,Rr.prototype.setGroupKeyForNodeData=Rr.prototype.mp,Rr.prototype.getGroupKeyForNodeData=Rr.prototype.lh,Rr.prototype.isGroupForNodeData=Rr.prototype.Yu,Rr.prototype.copyLinkData=Rr.prototype.Jo,Rr.prototype.mergeLinkDataArray=Rr.prototype.Zz,Rr.prototype.removeLinkDataCollection=Rr.prototype.lA,Rr.prototype.removeLinkData=Rr.prototype.bm,Rr.prototype.addLinkDataCollection=Rr.prototype.Ey,Rr.prototype.addLinkData=Rr.prototype.fi,Rr.prototype.containsLinkData=Rr.prototype.Jc,Rr.prototype.makeLinkDataKeyUnique=Rr.prototype.Bs,Rr.prototype.findLinkDataForKey=Rr.prototype.jh,Rr.prototype.setKeyForLinkData=Rr.prototype.Ks,Rr.prototype.getKeyForLinkData=Rr.prototype.Ac,Rr.prototype.removeLabelKeyForLinkData=Rr.prototype.Qx,Rr.prototype.addLabelKeyForLinkData=Rr.prototype.Bu,Rr.prototype.setLabelKeysForLinkData=Rr.prototype.Ls,Rr.prototype.getLabelKeysForLinkData=Rr.prototype.Ef,Rr.prototype.setToPortIdForLinkData=Rr.prototype.Cv,Rr.prototype.getToPortIdForLinkData=Rr.prototype.Cx,Rr.prototype.setFromPortIdForLinkData=Rr.prototype.xv,Rr.prototype.getFromPortIdForLinkData=Rr.prototype.zx,Rr.prototype.setToKeyForLinkData=Rr.prototype.Bv,Rr.prototype.getToKeyForLinkData=Rr.prototype.Bx,Rr.prototype.setFromKeyForLinkData=Rr.prototype.wv,Rr.prototype.getFromKeyForLinkData=Rr.prototype.yx,Rr.prototype.clear=Rr.prototype.clear;var wm=Object.freeze([]);Rr.className="GraphLinksModel",oc.GraphLinksModel=Rr,hi.constructGraphLinksModel=hi.constructGraphLinksModel=function(){return new Rr},hi.initDiagramModel=bv=function(){return new Rr};function Nl(e,t){hi.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))}di(Nl,hi),Nl.constructGraphLinksModel=hi.constructGraphLinksModel,Nl.prototype.cloneProtected=function(e){hi.prototype.cloneProtected.call(this,e),e.Ke=this.Ke,e.Nm=this.Nm,e.nj=this.nj},U=Nl.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)+":"+En(r)}}return t},U.rm=function(){var e=hi.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){hi.prototype.gp.call(this,e),e.nodeParentKeyProperty&&(this.nodeParentKeyProperty=e.nodeParentKeyProperty)},U.fp=function(e){e.nodeParentKeyProperty!==void 0&&e.nodeParentKeyProperty!==this.nodeParentKeyProperty&&pt("applyIncrementalJson cannot change Model properties"),hi.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=Fs(e,t),t!==void 0)){if(Yh(t))return t;pt("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=Fs(e,n);i!==t&&(gc(this,i,e),jo(e,n,t),this.hc(t)===null&&mc(this,t,e),Qs(this,"nodeParentKey",vo,n,e,i,t),typeof n=="string"&&this.La(e,n))}else jo(e,n,t)}},U.ss=function(e){if(e===null)return"";var t=this.nj;return t===""||(t=Fs(e,t),t===void 0)?"":typeof t=="string"?t:(pt("getParentLinkCategoryForNodeData found a non-string category for "+e+": "+t),"")},Nl.prototype.getLinkCategoryForData=function(e){return this.ss(e)},Nl.prototype.Ms=function(e,t){if(e!==null){var n=this.nj;if(n!=="")if(this.lb(e)){var i=Fs(e,n);i===void 0&&(i=""),i!==t&&(jo(e,n,t),Qs(this,"parentLinkCategory",vo,n,e,i,t),typeof n=="string"&&this.La(e,n))}else jo(e,n,t)}},Nl.prototype.setLinkCategoryForData=function(e,t){this.Ms(e,t)},Nl.prototype.copyNodeData=function(e){return e===null?null:(e=hi.prototype.copyNodeData.call(this,e),this.Jj||this.Ke===""||Fs(e,this.Ke)===void 0||jo(e,this.Ke,void 0),e)},Nl.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=Fs(e,t);i!==n&&(jo(e,t,n),this.Fs(e,t,i,n))},U=Nl.prototype,U.jp=function(e,t){hi.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;jo(e,i,n),Qs(this,"nodeParentKey",vo,i,e,t,n),typeof i=="string"&&this.La(e,i)}},U.fm=function(e){hi.prototype.fm.call(this,e),e=this.wa(e);var t=Up(this,e);if(t!==null){var n=Gt();for(t=t.iterator;t.next();){var i=t.value;if(this.lb(i)&&this.mh(i)===e){var r=this.Ke;Qs(this,"nodeParentKey",vo,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]);dn(n)}},U.em=function(e){hi.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){hi.prototype.qp.call(this,e);var t=this.mh(e);gc(this,t,e)},U.lm=function(e,t){hi.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(Nl.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"}}}),Nl.prototype.setParentLinkCategoryForNodeData=Nl.prototype.Ms,Nl.prototype.getParentLinkCategoryForNodeData=Nl.prototype.ss,Nl.prototype.setParentKeyForNodeData=Nl.prototype.qe,Nl.prototype.getParentKeyForNodeData=Nl.prototype.mh,Nl.className="TreeModel",oc.TreeModel=Nl;function us(e){Vo.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=sc,this.Ti=0,this.Zv=new ce,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=sc,this.K=Al,this.nd=zf,this.hd=fv,this.tf=6,this.Nn=Mm,e&&Object.assign(this,e)}di(us,Vo),us.prototype.cloneProtected=function(e){Vo.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},us.prototype.qb=function(e){e.classType===us?e===km||e===Im||e===Nm||e===Am||e===zf?this.sorting=e:e===Td||e===_f||e===Al||e===Xh?this.direction=e:e===Th||e===Zh||e===sc||e===ac?this.arrangement=e:(e===Yd||e===Mm)&&(this.nodeDiameterFormula=e):Vo.prototype.qb.call(this,e)},us.prototype.createNetwork=function(){return new Uf(this)},us.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 Zt;t.addAll(e.iterator),e=new Zt;var n=new Zt,i=this.sort(t),r,o,s=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 A=this.sweepAngle;if((!isFinite(A)||360<A||1>A)&&(A=360),t=this.spacing,isFinite(t)||(t=NaN),l===ac&&u===Yd?l=sc:l===ac&&u!==Yd&&(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===ac&&e.reverse(),i=new Zt,i.addAll(e),i.addAll(n)):(this.arrangement===ac&&n.reverse(),i=new Zt,i.addAll(n),i.addAll(e))}u=i.length;for(var L=o=r=0;L<i.length;L++){var B=x+A*o*(this.direction===Al?1:-1)/u,V=i.M(L).diameter;isNaN(V)&&(V=Qh(i.M(L),B)),360>A&&(L===0||L===i.length-1)&&(V/=2),r+=V,o++}if(isNaN(f)||l===ac){if(isNaN(t)&&(t=6),l!==sc&&l!==ac){for(o=-1/0,s=0;s<u;s++)L=i.M(s),r=i.M(s===u-1?0:s+1),isNaN(L.diameter)&&Qh(L,0),isNaN(r.diameter)&&Qh(r,0),o=Math.max(o,(L.diameter+r.diameter)/2);s=o+t,l===Th?f=(o+t)/(2*Math.PI/u):f=Cm(this,s*(360<=A?u:u-1),p,x*Math.PI/180,A*Math.PI/180)}else f=Cm(this,r+(360<=A?u:u-1)*(l!==ac?t:1.6*t),p,x*Math.PI/180,A*Math.PI/180);o=f*p}else if(o=f*p,L=Ev(this,f,o,x*Math.PI/180,A*Math.PI/180),isNaN(t))(l===sc||l===ac)&&(t=(L-r)/(360<=A?u:u-1));else if(l===sc||l===ac)L=(L-r)/(360<=A?u:u-1),L<t?(f=Cm(this,r+t*(360<=A?u:u-1),p,x*Math.PI/180,A*Math.PI/180),o=f*p):t=L;else{for(s=-1/0,r=0;r<u;r++)B=i.M(r),V=i.M(r===u-1?0:r+1),isNaN(B.diameter)&&Qh(B,0),isNaN(V.diameter)&&Qh(V,0),s=Math.max(s,(B.diameter+V.diameter)/2);s+=t,r=Cm(this,s*(360<=A?u:u-1),p,x*Math.PI/180,A*Math.PI/180),r>f?(f=r,o=f*p):s=L/(360<=A?u:u-1)}if(this.kw=l,this.lc=f,this.Zm=p,this.lw=x,this.Wp=A,this.Ti=t,this.me=o,this.Jp=s,t=i,i=this.kw,l=this.lc,f=this.lw,p=this.Wp,x=this.Ti,A=this.me,u=this.Jp,this.direction!==Td&&this.direction!==_f||i!==ac)if(this.direction===Td||this.direction===_f){switch(s=0,i){case Zh:s=180*Tm(this,l,A,f,u)/Math.PI;break;case sc:u=t=0,s=e.first(),s!==null&&(t=Qh(s,Math.PI/2)),s=n.first(),s!==null&&(u=Qh(s,Math.PI/2)),s=180*Tm(this,l,A,f,x+(t+u)/2)/Math.PI;break;case Th:s=p/t.length}if(this.direction===Td){switch(i){case Zh:Wp(this,e,f,Xh);break;case sc:Gp(this,e,f,Xh);break;case Th:jp(this,e,p/2,f,Xh)}switch(i){case Zh:Wp(this,n,f+s,Al);break;case sc:Gp(this,n,f+s,Al);break;case Th:jp(this,n,p/2,f+s,Al)}}else{switch(i){case Zh:Wp(this,n,f,Xh);break;case sc:Gp(this,n,f,Xh);break;case Th:jp(this,n,p/2,f,Xh)}switch(i){case Zh:Wp(this,e,f+s,Al);break;case sc:Gp(this,e,f+s,Al);break;case Th:jp(this,e,p/2,f+s,Al)}}}else switch(i){case Zh:Wp(this,t,f,this.direction);break;case sc:Gp(this,t,f,this.direction);break;case Th:jp(this,t,p,f,this.direction);break;case ac:j1(this,t,p,f,this.direction)}else j1(this,t,p,f-p/2,Al)}this.updateParts(),this.network=null,this.isValidLayout=!0};function jp(e,t,n,i,r){var o=e.Wp,s=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===Al?u*n/(360<=o?l:l-1):-(u*n)/l),p=t.M(u),x=s*Math.tan(f)/e;x=Math.sqrt((s*s+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,s=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===Al?n:-n,(f.diameter+p.diameter)/2+s),n+=i===Al?f:-f}}function Wp(e,t,n,i){var r=e.lc,o=e.me,s=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===Al?n:-n,s),n+=i===Al?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===Al?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,s=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-s,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-s;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-s,p[3].centerX=0,p[3].y=Math.max(p[0].y+p[0].height+s,p[2].y+p[2].height+s);else{o=ce.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(ce.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 A=Math.abs(u-o)-((p[0].width+p[p.length-1].width)/2+s),L=Math.abs(f-x)-((p[0].height+p[p.length-1].height)/2+s);s=0,1>Math.abs(L)?Math.abs(u-o)<(p[0].width+p[p.length-1].width)/2&&(s=0):s=0<L?L:1>Math.abs(A)?0:A,u=Math.abs(o)>Math.abs(x)?0<o!=f>x:0<x!=u<o,(u=r===Al?u:!u)&&(s=-Math.abs(s),s=Math.min(s,-p[p.length-1].width),s=Math.min(s,-p[p.length-1].height)),e.Xr.compare(s,p),1<Math.abs(s)&&(e.lc=8>e.mj?e.lc-s/(2*Math.PI):5>p.length&&10<s?e.lc/2:e.lc-(0<s?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,s=e.me,l=e.Zm,u=o*Math.cos(i*Math.PI/180),f=s*Math.sin(i*Math.PI/180),p=ce.alloc(),x=t.Fa(),A=0;A<x.length&&(x[A].centerX=u,x[A].centerY=f,!(A>=x.length-1));A++)V1(e,u,f,x,A,r,p)||K1(e,u,f,x,A,r,p),u=p.x,f=p.y;if(ce.free(p),e.mj++,!(23<e.mj)){if(u=Math.atan2(f,u),u=r===Al?e.gt-u:u-e.gt,u=Math.abs(u)<Math.abs(u-2*Math.PI)?u:u-2*Math.PI,o=u*(o+s)/2,s=e.Xr,Math.abs(o)<Math.abs(s.Pl))for(s.Pl=o,s.mk=[],s.tm=[],u=0;u<x.length;u++)s.mk[u]=x[u].bounds.x,s.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,s){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===Al)){if(o=t+e,o>l){if(o=t-e,o<-l)return s.x=o,s.y=f,!1;p=!0}}else if(o=t-e,o<-l){if(o=t+e,o>l)return s.x=o,s.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?(s.x=o,s.y=f,!1):(s.x=o,s.y=f,!0)}function K1(e,t,n,i,r,o,s){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===Al)){if(o=n-e,o<-u){if(o=n+e,o>u){s.x=f,s.y=o;return}i=!0}}else if(o=n+e,o>u){if(o=n-e,o<-u){s.x=f,s.y=o;return}i=!0}f=Math.sqrt(1-Math.min(1,o*o/(u*u)))*l,0>t!==i&&(f=-f),s.x=f,s.y=o}us.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},us.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 ce(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))},us.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 s=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);s+=Math.sqrt(1-e*e*p*p)*l}return i!==void 0&&r!==void 0?(t>n?t:n)*s:4*(t>n?t:n)*s}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,s=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(s+=(t>n?t:n)*Math.sqrt(1-o*o*u*u)*e,s>=r)return l*e}}us.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:pt("Invalid sorting type.")}return e};function Kb(e){for(var t=[],n=0;n<e.length;n++)t.push(0);n=new Zt;for(var i=0;i<e.length;i++){var r=-1,o=-1;if(i===0)for(var s=0;s<e.length;s++){var l=e.M(s).edgesCount;l>r&&(r=l,o=s)}else for(s=0;s<e.length;s++)l=t[s],l>r&&(r=l,o=s);for(n.add(e.M(o)),t[o]=-1,o=e.M(o),s=o.sourceEdges;s.next();)r=e.indexOf(s.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}us.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 s=[],l=[];i=[],r=new Zt;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,A=-1,L=[],B=0;B<n.length;B++)0>t[n[B]].indexOf(n[B===n.length-1?0:B+1])&&L.push(B===n.length-1?0:B+1);if(L.length===0)for(B=0;B<n.length;B++)L.push(B);for(B=0;B<L.length;B++){for(var V=L[B],ye=t[f],oe=0,Me=0;Me<s.length;Me++){var Be=o[s[Me]],je=o[l[Me]];if(Be<je){var tt=Be;Be=je}else tt=je;if(tt<V&&V<=Be)for(je=0;je<ye.length;je++){var St=ye[je];0>n.indexOf(St)||tt<o[St]&&o[St]<Be||tt===o[St]||Be===o[St]||oe++}else for(je=0;je<ye.length;je++)St=ye[je],0>n.indexOf(St)||tt<o[St]&&o[St]<Be&&tt!==o[St]&&Be!==o[St]&&oe++}for(ye=oe,Me=oe=0;Me<t[f].length;Me++)tt=n.indexOf(t[f][Me]),0<=tt&&(tt=Math.abs(V-(tt>=V?tt+1:tt)),oe+=tt<n.length+1-tt?tt:n.length+1-tt);for(Me=0;Me<s.length;Me++)tt=o[s[Me]],Be=o[l[Me]],tt>=V&&tt++,Be>=V&&Be++,tt>Be&&(je=Be,Be=tt,tt=je),Be-tt<(n.length+2)/2==(tt<V&&V<=Be)&&oe++;(ye<p||ye===p&&oe<x)&&(p=ye,x=oe,A=V)}for(n.splice(A,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)&&(s.push(f),l.push(x))}u++}}for(s=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(A=x=0;A<t[f].length;A++)L=n.indexOf(t[f][A]),0>L||L===p||(B=L>p?L-p:p-L,x+=L<p!=B>s-B?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(us.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!==ac&&e!==sc&&e!==Zh&&e!==Th||(this.Rb=e,this.C())}},direction:{get:function(){return this.K},set:function(e){this.K===e||e!==Al&&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!==Yd||(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 sc=new Kt(us,"ConstantSpacing",0),Zh=new Kt(us,"ConstantDistance",1),Th=new Kt(us,"ConstantAngle",2),ac=new Kt(us,"Packed",3),Al=new Kt(us,"Clockwise",4),Xh=new Kt(us,"Counterclockwise",5),Td=new Kt(us,"BidirectionalLeft",6),_f=new Kt(us,"BidirectionalRight",7),Nm=new Kt(us,"Forwards",8),Am=new Kt(us,"Reverse",9),km=new Kt(us,"Ascending",10),Im=new Kt(us,"Descending",11),zf=new Kt(us,"Optimized",12),Mm=new Kt(us,"Pythagorean",13),Yd=new Kt(us,"Circular",14);us.className="CircularLayout",us.ConstantSpacing=sc,us.ConstantDistance=Zh,us.ConstantAngle=Th,us.Packed=ac,us.Clockwise=Al,us.Counterclockwise=Xh,us.BidirectionalLeft=Td,us.BidirectionalRight=_f,us.Forwards=Nm,us.Reverse=Am,us.Ascending=km,us.Descending=Im,us.Optimized=zf,us.Pythagorean=Mm,us.Circular=Yd;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){Ro.call(this,e)}di(Uf,Ro),Uf.prototype.createVertex=function(){return new Kp(this)},Uf.prototype.createEdge=function(){return new Om(this)},Uf.className="CircularNetwork";function Kp(e){ia.call(this,e),this.u=this.Si=NaN}di(Kp,ia);function Qh(e,t){var n=e.network;if(n===null)return NaN;if(n=n.layout,n===null)return NaN;if(n.arrangement===ac)if(n.nodeDiameterFormula===Yd)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===Yd?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){iu.call(this,e)}di(Om,iu),Om.className="CircularEdge";function Ua(e){Vo.call(this),this.ah=null,this.An=0,this.$d=new mi(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)}di(Ua,Vo),Ua.prototype.cloneProtected=function(e){Vo.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},Ua.prototype.createNetwork=function(){return new Zd(this)},Ua.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}Y1(this,0,e)}this.network=t;var s=i=n.iterator;i=this.arrangementSpacing;var l=s.count,u=!0;o=r=0;for(var f=Gt(),p=0;p<l+t.vertexes.count+2;p++)f[p]=null;l=0,s.reset();for(var x=Ht.alloc();s.next();)if(p=s.value,this.computeBounds(p,x),u)u=!1,r=x.x+x.width/2,o=x.y+x.height/2,f[0]=new ce(x.x+x.width+i.width,x.y),f[1]=new ce(x.x,x.y+x.height+i.height),l=2;else{var A=Z1(f,l,r,o,x.width,x.height,i),L=f[A],B=new ce(L.x+x.width+i.width,L.y),V=new ce(L.x,L.y+x.height+i.height);for(A+1<l&&f.splice(A+1,0,null),f[A]=B,f[A+1]=V,l++,A=L.x-x.x,L=L.y-x.y,p=p.vertexes.iterator;p.next();)B=p.value,B.centerX+=A,B.centerY+=L}for(Ht.free(x),p=t.vertexes.iterator;p.next();)s=p.value,A=s.bounds,2>l?(r=A.x+A.width/2,o=A.y+A.height/2,f[0]=new ce(A.x+A.width+i.width,A.y),f[1]=new ce(A.x,A.y+A.height+i.height),l=2):(u=Z1(f,l,r,o,A.width,A.height,i),x=f[u],L=new ce(x.x+A.width+i.width,x.y),A=new ce(x.x,x.y+A.height+i.height),u+1<l&&f.splice(u+1,0,null),f[u]=L,f[u+1]=A,l++,s.centerX=x.x+s.width/2,s.centerY=x.y+s.height/2);for(dn(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},Ua.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},Ua.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 Y1(e,t,n){if(Yb(e,t)){var i=e.Zf;e.Zf*=1+1/(t+1);var r=Zb(e,t),o=Math.max(0,Math.max(Math.min(e.network.vertexes.count,n*(t+1)/11),10));for(e.maxIterations+=o,Y1(e,t+1,n),Q1(e,o),Xb(e,r),t=r.vertexes.Fa(),t.sort(function(s,l){return s===null||l===null||s===l?0:l.Vd-s.Vd}),n=0;n<t.length;n++)Qb(e,t[n]);e.Zf=i}}function Yb(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 Zb(e,t){for(var n=e.network,i=new Zd(e),r=0;r<e.ah.length;r++){var o=e.ah[r];if(1<o.Vd){i.dh(o);var s=new J1;s.Rs=o.Vd,s.Ss=o.width,s.Qs=o.height,s.Sv=o.focus.x,s.Tv=o.focus.y,o.We===null&&(o.We=new Zt),o.We.add(s),o.sv=o.We.count-1}else break}for(o=n.edges.iterator;o.next();){var l=o.value;r=l.fromVertex,s=l.toVertex,r.network===i&&s.network===i?i.Bo(l):r.network===i?(l=r.Hj,l===null&&(l=new Zt,r.Hj=l),l.add(s),r.Vd--,r.sh+=s.sh):s.network===i&&(l=s.Hj,l===null&&(l=new Zt,s.Hj=l),l.add(r),s.Vd--,s.sh+=r.sh)}for(r=i.edges.iterator;r.next();)o=r.value,o.length*=Math.max(1,Ye.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&&(s=r.We.M(r.We.count-1).Rs-r.Vd,!(0>=s))){for(var f=l=0,p=u.count-s;p<u.count;p++){var x=u.M(p),A=null;for(o=x.edges.iterator;o.next();){var L=o.value;if(L.Ax(x)===r){A=L;break}}A!==null&&(f+=A.length,l+=x.width*x.height)}o=r.centerX,u=r.centerY,p=r.width,x=r.height,A=r.focus,L=p*x,1>L&&(L=1),l=Ye.sqrt((l+L+f*f*4/(s*s))/L),s=(l-1)*p/2,l=(l-1)*x/2,r.bounds=new Ht(o-A.x-s,u-A.y-l,p+2*s,x+2*l),r.focus=new ce(A.x+s,A.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,s=r.Tv;i.bounds=new Ht(i.centerX-o,i.centerY-s,r.Ss,r.Qs),i.focus=new ce(o,s),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,s=t.height;t.We!==null&&0<t.We.count&&(s=t.We.M(0),o=s.Ss,s=s.Qs),o=Ye.sqrt(o*o+s*s)/2;for(var l=!1,u=s=0,f=0,p=t.vertexes.iterator;p.next();){var x=p.value;1>=x.Vd?u++:(l=!0,f++,s+=Math.atan2(t.centerY-x.centerY,t.centerX-x.centerX))}if(u!==0){for(0<f&&(s/=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(L,B){return L===null||B===null||L===B?0:B.width*B.height-L.width*L.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 A=u.height;x=Ye.sqrt(x*x+A*A)/2,p=o+p.length+x,x=s+(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 Z1(e,t,n,i,r,o,s){var l=9e19,u=-1,f=0;e:for(;f<t;f++){var p=e[f],x=p.x-n,A=p.y-i;if(x=x*x+A*A,x<l){for(A=f-1;0<=A;A--)if(e[A].y>p.y&&e[A].x-p.x<r+s.width)continue e;for(A=f+1;A<t;A++)if(e[A].x>p.x&&e[A].y-p.y<o+s.height)continue e;u=f,l=x}}return u}Ua.prototype.Cu=function(){if(this.comments)for(var e=this.network.vertexes.iterator;e.next();)this.addComments(e.value)},Ua.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,s=o.x;t=o.y;var l=o.width;return o=o.height,i+r<s?e>t+o?(n=i+r-s,e=e-t-o,Ye.sqrt(n*n+e*e)):e+n<t?(i=i+r-s,e=e+n-t,Ye.sqrt(i*i+e*e)):s-(i+r):i>s+l?e>t+o?(n=i-s-l,e=e-t-o,Ye.sqrt(n*n+e*e)):e+n<t?(i=i-s-l,e=e+n-t,Ye.sqrt(i*i+e*e)):i-(s+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,s=1;s<t.length;s++){var l=t[s];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,ye){return V===null||ye===null||V===ye?0:V.centerX-ye.centerX}):t.sort(function(V,ye){return V===null||ye===null||V===ye?0:V.centerY-ye.centerY}),n=e.Zf;var f=i=l=0;for(o=0;o<t.length;o++){s=t[o],i=s.bounds,l=s.focus,u=i.x+l.x;var p=i.y+l.y;i=s.charge*e.electricalFieldX(u,p),f=s.charge*e.electricalFieldY(u,p),i+=s.mass*e.gravitationalFieldX(u,p),f+=s.mass*e.gravitationalFieldY(u,p),s.forceX+=i,s.forceY+=f;for(var x=o+1;x<t.length;x++){var A=t[x];if(A!==s){i=A.bounds,l=A.focus,f=i.x+l.x;var L=i.y+l.y;if(u-f>n||f-u>n){if(r)break}else if(p-L>n||L-p>n){if(!r)break}else{var B=X1(s,A);1>B?(i=e.randomNumberGenerator,i===null&&(e.randomNumberGenerator=i=new Lm),B=i.random(),l=i.random(),u>f?(i=Math.abs(A.bounds.right-s.bounds.x),i=(1+i)*B):u<f?(i=Math.abs(A.bounds.x-s.bounds.right),i=-(1+i)*B):(i=Math.max(A.width,s.width),i=(1+i)*B-i/2),p>L?(f=Math.abs(A.bounds.bottom-s.bounds.y),f=(1+f)*l):u<f?(f=Math.abs(A.bounds.y-s.bounds.bottom),f=-(1+f)*l):(f=Math.max(A.height,s.height),f=(1+f)*l-f/2)):(l=-(s.charge*A.charge)/(B*B),i=(f-u)/B*l,f=(L-p)/B*l),s.forceX+=i,s.forceY+=f,A.forceX-=i,A.forceY-=f}}}}for(r=e.network.edges.iterator;r.next();)l=r.value,n=l.fromVertex,o=l.toVertex,s=n.bounds,u=n.focus,i=s.x+u.x,s=s.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=(s>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-s)/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}Ua.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},Ua.prototype.moveFixedVertex=function(){},Ua.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},Ua.prototype.yv=function(){if(this.setsPortSpots)for(var e=this.network.edges.iterator;e.next();){var t=e.value.link;t!==null&&(t.fromSpot=Ur,t.toSpot=Ur)}},Ua.prototype.commitNodes=function(){var e=0,t=0;if(this.arrangesToOrigin){var n=Ht.alloc();this.computeBounds(this.network,n),t=this.arrangementOrigin,e=t.x-n.x,t=t.y-n.y,Ht.free(n)}n=Ht.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()}Ht.free(n)},Ua.prototype.commitLinks=function(){for(var e=this.network.edges.iterator;e.next();)e.value.commit()},Ua.prototype.springStiffness=function(e){return e=e.stiffness,isNaN(e)?this.Hk:e},Ua.prototype.springLength=function(e){return e=e.length,isNaN(e)?this.Gk:e},Ua.prototype.electricalCharge=function(e){return e=e.charge,isNaN(e)?this.Ek:e},Ua.prototype.electricalFieldX=function(){return 0},Ua.prototype.electricalFieldY=function(){return 0},Ua.prototype.gravitationalMass=function(e){return e=e.mass,isNaN(e)?this.Fk:e},Ua.prototype.gravitationalFieldX=function(){return 0},Ua.prototype.gravitationalFieldY=function(){return 0},Ua.prototype.isFixed=function(e){return e.isFixed},ht.Object.defineProperties(Ua.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"&&pt('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())}}}),Ua.className="ForceDirectedLayout";function J1(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}J1.className="ForceDirectedSubnet";function Zd(e){Ro.call(this,e)}di(Zd,Ro),Zd.prototype.createVertex=function(){return new Yp(this)},Zd.prototype.createEdge=function(){return new Zp(this)},Zd.className="ForceDirectedNetwork";function Yp(e){ia.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}di(Yp,ia),ht.Object.defineProperties(Yp.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)}}}),Yp.className="ForceDirectedVertex";function Zp(e){iu.call(this,e),this.j=this.o=NaN}di(Zp,iu),ht.Object.defineProperties(Zp.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)}}}),Zp.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){Vo.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 ce,this.He=[],this.He.length=100,this.xw=this.ve=0,e&&Object.assign(this,e)}di(lo,Vo),lo.prototype.cloneProtected=function(e){Vo.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:pt("Unknown enum value: "+e):Vo.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 s=0,l=0,u=0,f=0;if(i.link!==null){if(l=i.link,l===null)continue;var p=r.node;if(s=o.node,p===null||s===null)continue;var x=l.fromNode;u=l.toNode;for(var A=l.fromPort;A!==null&&!A.Ed();)A=A.panel;for(l=l.toPort;l!==null&&!l.Ed();)l=l.panel;if(i.rev){f=x;var L=A;x=u,A=l,u=f,l=L}var B=r.focus;f=o.focus;var V=i.rev?o.bounds:r.bounds;L=ce.alloc(),p!==x?V.w()&&x.isVisible()?x.actualBounds.w()?(xh(x,A,kr,L),L.x+=x.actualBounds.x-V.x,L.y+=x.actualBounds.y-V.y):(xh(x,A,kr,L),L.w()||L.assign(B)):L.assign(B):V.w()?(xh(x,A,kr,L),L.w()||L.assign(B)):L.assign(B),x=i.rev?r.bounds:o.bounds,p=ce.alloc(),s!==u?x.w()&&u.isVisible()?u.actualBounds.w()?(xh(u,l,kr,p),p.x+=u.actualBounds.x-x.x,p.y+=u.actualBounds.y-x.y):(xh(u,l,kr,p),p.w()||p.assign(f)):p.assign(f):x.w()?(xh(u,l,kr,p),p.w()||p.assign(f)):p.assign(f),this.K===90||this.K===270?(s=Math.round((L.x-B.x)/this.kc),u=L.x,l=Math.round((p.x-f.x)/this.kc),f=p.x):(s=Math.round((L.y-B.y)/this.kc),u=L.y,l=Math.round((p.y-f.y)/this.kc),f=p.y),ce.free(L),ce.free(p),i.portFromColOffset=s,i.portFromPos=u,i.portToColOffset=l,i.portToPos=f}else i.portFromColOffset=0,i.portFromPos=0,i.portToColOffset=0,i.portToPos=0;if(L=r.layer,p=o.layer,x=0,V=i.link,V!==null){var ye=V.fromPort,oe=V.toPort;if(ye!==null&&oe!==null){var Me=V.fromNode;if(A=V.toNode,Me!==null&&A!==null){var Be=Fm(this,!0),je=Fm(this,!1),tt=this.setsPortSpots?Be:V.computeSpot(!0,ye);B=this.setsPortSpots?je:V.computeSpot(!1,oe);var St=V.isOrthogonal;tt.$c()&&tt.Hf(je)&&B.$c()&&B.Hf(Be)?x=0:(Be=V.getLinkPoint(Me,ye,tt,!0,St,A,oe,ce.alloc()),je=V.getLinkDirection(Me,ye,Be,tt,!0,St,A,oe),ce.free(Be),tt.ys()||je!==ab(this,i,!0)?this.setsPortSpots&&Me!==null&&Me.ports.count===1&&i.rev&&(x+=1):x+=1,tt=V.getLinkPoint(A,oe,B,!1,St,Me,ye,ce.alloc()),V=V.getLinkDirection(A,oe,tt,B,!1,St,Me,ye),ce.free(tt),B.ys()||V!==ab(this,i,!1)?this.setsPortSpots&&A!==null&&A.ports.count===1&&i.rev&&(x+=2):x+=2)}}}if(A=x,x=A===1||A===3,(A=A===2||A===3)&&(B=e.createVertex(),B.node=null,B.Dj=1,B.layer=L,B.near=r,e.dh(B),r=e.Zj(r,B,i.link),r.valid=!1,r.rev=i.rev,r.portFromColOffset=s,r.portToColOffset=0,r.portFromPos=u,r.portToPos=0,r=B),V=1,x&&V--,L-p>V&&0<L){for(i.valid=!1,B=e.createVertex(),B.node=null,B.Dj=2,B.layer=L-1,e.dh(B),r=e.Zj(r,B,i.link),r.valid=!0,r.rev=i.rev,r.portFromColOffset=A?0:s,r.portToColOffset=0,r.portFromPos=A?0:u,r.portToPos=0,r=B,L--;L-p>V&&0<L;)B=e.createVertex(),B.node=null,B.Dj=3,B.layer=L-1,e.dh(B),r=e.Zj(r,B,i.link),r.valid=!0,r.rev=i.rev,r.portFromColOffset=0,r.portToColOffset=0,r.portFromPos=0,r.portToPos=0,r=B,L--;r=e.Zj(B,o,i.link),r.valid=!x,x&&(B.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 jl(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 Pu(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,s=0;s<r;s++){var l=0,u=i[s],f=u.near;if(f!==null&&f.layer===u.layer)if(u=f.index,u>s)for(var p=s+1;p<u;p++){var x=i[p];x.near===f&&x.Dj===f.Dj||l++}else for(p=s-1;p>u;p--)x=i[p],x.near===f&&x.Dj===f.Dj||l++;var A;if(0<=n)for(u=i[s].sourceEdgesArrayAccess,f=0;f<u.length;f++){var L=u[f];if(L.valid&&L.fromVertex.layer!==t)for(x=L.fromVertex.index,p=L.portToPos,L=L.portFromPos,A=f+1;A<u.length;A++){var B=u[A];if(B.valid&&B.fromVertex.layer!==t){var V=B.fromVertex.index,ye=B.portToPos;B=B.portFromPos,p<ye&&(x>V||x===V&&L>B)&&l++,ye<p&&(V>x||V===x&&B>L)&&l++}}}if(0>=n){for(u=i[s].destinationEdgesArrayAccess,f=0;f<u.length;f++)if(L=u[f],L.valid&&L.toVertex.layer!==t)for(x=L.toVertex.index,p=L.portToPos,L=L.portFromPos,A=f+1;A<u.length;A++)B=u[A],B.valid&&B.toVertex.layer!==t&&(V=B.toVertex.index,ye=B.portToPos,B=B.portFromPos,L<B&&(x>V||x===V&&p>ye)&&l++,B<L&&(V>x||V===x&&ye>p)&&l++)}for(o[s*r+s]=l,u=s+1;u<r;u++){var oe=0,Me=0;if(0<=n){l=i[s].sourceEdgesArrayAccess;var Be=i[u].sourceEdgesArrayAccess;for(f=0;f<l.length;f++)if(L=l[f],L.valid&&L.fromVertex.layer!==t)for(x=L.fromVertex.index,L=L.portFromPos,A=0;A<Be.length;A++)B=Be[A],B.valid&&B.fromVertex.layer!==t&&(V=B.fromVertex.index,B=B.portFromPos,(x<V||x===V&&L<B)&&Me++,(V<x||V===x&&B<L)&&oe++)}if(0>=n){for(l=i[s].destinationEdgesArrayAccess,Be=i[u].destinationEdgesArrayAccess,f=0;f<l.length;f++)if(L=l[f],L.valid&&L.toVertex.layer!==t)for(x=L.toVertex.index,p=L.portToPos,A=0;A<Be.length;A++)B=Be[A],B.valid&&B.toVertex.layer!==t&&(V=B.toVertex.index,ye=B.portToPos,(x<V||x===V&&p<ye)&&Me++,(V<x||V===x&&ye<p)&&oe++)}o[s*r+u]=oe,o[u*r+s]=Me}}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),s=i.tc[r],l=0,u=0;u<s;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 A=x.fromVertex.column+x.portFromColOffset,L=x.toVertex.column+x.portToColOffset;l+=(Math.abs(A-L)+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=[],s=0;s<r;s++){var l=i[s],u=null;0>=n&&(u=l.sourceEdgesArrayAccess);var f=null;0<=n&&(f=l.destinationEdgesArrayAccess);var p=0,x=0,A=l.near;if(A!==null&&A.layer===l.layer&&(p+=A.column-1,x++),u!==null)for(A=0;A<u.length;A++){l=u[A];var L=l.fromVertex;l.valid&&!l.rev&&L.layer!==t&&(p+=L.column,x++)}if(f!==null)for(u=0;u<f.length;u++)l=f[u],A=l.toVertex,l.valid&&!l.rev&&A.layer!==t&&(p+=A.column,x++);o[s]=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=[],s=0;s<r;s++){var l=i[s],u=null;0>=n&&(u=l.sourceEdgesArrayAccess);var f=null;0<=n&&(f=l.destinationEdgesArrayAccess);var p=0,x=[],A=l.near;if(A!==null&&A.layer===l.layer&&(x[p]=A.column-1,p++),l=void 0,u!==null)for(A=0;A<u.length;A++){l=u[A];var L=l.fromVertex;l.valid&&!l.rev&&L.layer!==t&&(x[p]=L.column+l.portFromColOffset,p++)}if(f!==null)for(u=0;u<f.length;u++)l=f[u],A=l.toVertex,l.valid&&!l.rev&&A.layer!==t&&(x[p]=A.column+l.portToColOffset,p++);p===0?o[s]=-1:(x.sort(function(B,V){return B-V}),f=p>>1,o[s]=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 s=t.destinationEdges;s.next();){var l=s.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(s=t.sourceEdges;s.next();)l=s.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 s=t.destinationEdges;s.next();)Tv(e,s.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,s=this.network.vertexes.iterator;s.next();){var l=s.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&&sb(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 sb(e,t){if(!t.valid){t.valid=!0;for(var n=t.destinationEdges;n.next();)sb(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 s=i[o],l=s.fromVertex,u=s.toVertex;s=e.linkMinLength(s),l.layer-u.layer>s&&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,s=e.network.vertexes.iterator;s.next();){var f=s.value;if(f.component===1){var p=0,x=!1,A=f.sourceEdgesArrayAccess;r=A.length;for(var L=0;L<r;L++){var B=A[L],V=B.fromVertex;p+=1,V.component!==1&&(o+=1,V=V.layer-f.layer,B=e.linkMinLength(B),i=Math.min(i,V-B))}for(A=f.destinationEdgesArrayAccess,r=A.length,L=0;L<r;L++)B=A[L].toVertex,--p,B.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(s=u.value,s.component===1){for(f=0,p=!1,A=s.sourceEdgesArrayAccess,x=A.length,L=0;L<x;L++)B=A[L].fromVertex,f+=1,B.component!==1?i+=1:p=!0;for(A=s.destinationEdgesArrayAccess,x=A.length,L=0;L<x;L++)B=A[L],V=B.toVertex,--f,V.component!==1&&(--i,V=s.layer-V.layer,B=e.linkMinLength(B),r=Math.min(r,V-B));(l===null||f>o)&&!p&&(l=s,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 ab(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=jl(this),n,i;for(n=0;n<this.bj;n++){for(i=0;i<=this.Ia;i++)Dm(this,i,1),ju(this,i,1);var r=this.countCrossings();for(r<e&&(e=r,t=jl(this)),i=this.Ia;0<=i;i--)Dm(this,i,-1),ju(this,i,-1);r=this.countCrossings(),r<e&&(e=r,t=jl(this))}for(Pu(this,t),n=0;n<this.bj;n++){for(i=0;i<=this.Ia;i++)Dm(this,i,0),ju(this,i,0);for(r=this.countCrossings(),r<e&&(e=r,t=jl(this)),i=this.Ia;0<=i;i--)Dm(this,i,0),ju(this,i,0);r=this.countCrossings(),r<e&&(e=r,t=jl(this))}Pu(this,t);var o,s,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(s=0;s<=n;s++){for(o=!0;o;)for(o=!1,i=n;i>=s;i--)o=ju(this,i,-1)||o;for(r=this.countCrossings(),r>=e?Pu(this,t):(e=r,t=jl(this)),o=!0;o;)for(o=!1,i=n;i>=s;i--)o=ju(this,i,1)||o;for(r=this.countCrossings(),r>=e?Pu(this,t):(e=r,t=jl(this)),o=!0;o;)for(o=!1,i=s;i<=n;i++)o=ju(this,i,1)||o;for(r>=e?Pu(this,t):(e=r,t=jl(this)),o=!0;o;)for(o=!1,i=s;i<=n;i++)o=ju(this,i,-1)||o;for(r>=e?Pu(this,t):(e=r,t=jl(this)),o=!0;o;)for(o=!1,i=n;i>=s;i--)o=ju(this,i,0)||o;for(r>=e?Pu(this,t):(e=r,t=jl(this)),o=!0;o;)for(o=!1,i=s;i<=n;i++)o=ju(this,i,0)||o;r>=e?Pu(this,t):(e=r,t=jl(this))}break;default:case Um:for(n=this.Ia,s=0,l=e+1;(i=this.countCrossings())<l;){for(l=i,o=!0;o;)for(o=!1,i=n;i>=s;i--)o=ju(this,i,-1)||o;for(r=this.countCrossings(),r>=e?Pu(this,t):(e=r,t=jl(this)),o=!0;o;)for(o=!1,i=n;i>=s;i--)o=ju(this,i,1)||o;for(r=this.countCrossings(),r>=e?Pu(this,t):(e=r,t=jl(this)),o=!0;o;)for(o=!1,i=s;i<=n;i++)o=ju(this,i,1)||o;for(r>=e?Pu(this,t):(e=r,t=jl(this)),o=!0;o;)for(o=!1,i=s;i<=n;i++)o=ju(this,i,-1)||o;for(r>=e?Pu(this,t):(e=r,t=jl(this)),o=!0;o;)for(o=!1,i=n;i>=s;i--)o=ju(this,i,0)||o;for(r>=e?Pu(this,t):(e=r,t=jl(this)),o=!0;o;)for(o=!1,i=s;i<=n;i++)o=ju(this,i,0)||o;r>=e?Pu(this,t):(e=r,t=jl(this))}}Pu(this,t)};function Dm(e,t,n){var i=Jh(e,t),r=e.tc[t],o=eb(e,t,n),s=Cv(e,t,n);for(n=0;n<r;n++)s[n]===-1&&(s[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]&&s[n+1]<s[n])&&(l=!0,u=o[n],o[n]=o[n+1],o[n+1]=u,u=s[n],s[n]=s[n+1],s[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 ju(e,t,n){var i=Jh(e,t),r=e.tc[t];n=q1(e,t,n);var o,s=[];for(o=0;o<r;o++)s[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],A=0,L=0,B=i[o].column,V=i[o+1].column,ye=e.nodeMinColumnSpace(i[o],!0),oe=e.nodeMinColumnSpace(i[o],!1),Me=e.nodeMinColumnSpace(i[o+1],!0),Be=e.nodeMinColumnSpace(i[o+1],!1);ye=B-ye+Me,oe=V-oe+Be;var je=i[o].sourceEdges.iterator;for(je.reset();je.next();)if(Me=je.value,Be=Me.fromVertex,Me.valid&&Be.layer===t){for(Me=0;i[Me]!==Be;)Me++;Me<o&&(A+=2*(o-Me),L+=2*(o+1-Me)),Me===o+1&&(A+=1),Me>o+1&&(A+=4*(Me-o),L+=4*(Me-(o+1)))}for(je=i[o].destinationEdges.iterator,je.reset();je.next();)if(Me=je.value,Be=Me.toVertex,Me.valid&&Be.layer===t){for(Me=0;i[Me]!==Be;)Me++;Me===o+1&&(L+=1)}for(je=i[o+1].sourceEdges.iterator,je.reset();je.next();)if(Me=je.value,Be=Me.fromVertex,Me.valid&&Be.layer===t){for(Me=0;i[Me]!==Be;)Me++;Me<o&&(A+=2*(o+1-Me),L+=2*(o-Me)),Me===o&&(L+=1),Me>o+1&&(A+=4*(Me-(o+1)),L+=4*(Me-o))}for(je=i[o+1].destinationEdges.iterator,je.reset();je.next();)if(Me=je.value,Be=Me.toVertex,Me.valid&&Be.layer===t){for(Me=0;i[Me]!==Be;)Me++;Me===o&&(A+=1)}Me=Be=0,je=s[i[o].index];var tt=l[i[o].index],St=s[i[o+1].index],$n=l[i[o+1].index];je!==-1&&(Be+=Math.abs(je-B),Me+=Math.abs(je-oe)),tt!==-1&&(Be+=Math.abs(tt-B),Me+=Math.abs(tt-oe)),St!==-1&&(Be+=Math.abs(St-V),Me+=Math.abs(St-ye)),$n!==-1&&(Be+=Math.abs($n-V),Me+=Math.abs($n-ye)),(L<A-.5||L===A&&x<p-.5||L===A&&x===p&&Me<Be-.5)&&(f=u=!0,i[o].column=oe,i[o+1].column=ye,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&ax)!==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],s=Cv(e,t,-1);if(0<n)for(i=0;i<o;i++)s[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),A=e.nodeMinColumnSpace(r[i],!1),L=0;0>i-1||p-r[i-1].column-1>x+e.nodeMinColumnSpace(r[i-1],!1)?L=p-1:L=p,x=i+1>=o||r[i+1].column-p-1>A+e.nodeMinColumnSpace(r[i+1],!0)?p+1:p;var B=A=0,V=0;if(0>=n)for(var ye=r[i].sourceEdges.iterator;ye.next();){var oe=ye.value,Me=oe.fromVertex;if(oe.valid&&Me.layer!==t){var Be=wv(oe),je=oe.portFromColOffset;oe=oe.portToColOffset,Me=Me.column,A+=(Math.abs(p+oe-(Me+je))+1)*Be,B+=(Math.abs(L+oe-(Me+je))+1)*Be,V+=(Math.abs(x+oe-(Me+je))+1)*Be}}if(0<=n)for(ye=r[i].destinationEdges.iterator;ye.next();)oe=ye.value,Me=oe.toVertex,oe.valid&&Me.layer!==t&&(Be=wv(oe),je=oe.portFromColOffset,oe=oe.portToColOffset,Me=Me.column,A+=(Math.abs(p+je-(Me+oe))+1)*Be,B+=(Math.abs(L+je-(Me+oe))+1)*Be,V+=(Math.abs(x+je-(Me+oe))+1)*Be);oe=je=Be=0,ye=s[r[i].index],Me=l[r[i].index],ye!==-1&&(Be+=Math.abs(ye-p),je+=Math.abs(ye-L),oe+=Math.abs(ye-x)),Me!==-1&&(Be+=Math.abs(Me-p),je+=Math.abs(Me-L),oe+=Math.abs(Me-x)),B<A||B===A&&je<Be?(f=u=!0,r[i].column=L):(V<A||V===A&&oe<Be)&&(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),s=[];for(n=0;n<r;n++)s[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(s[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=s[n]:n===0?(x=i[n+1].column,f=x-e.nodeMinColumnSpace(i[n+1],!0)-f-1,p=Math.min(s[n],f)):n===r-1?(x=i[n-1].column,u=x+e.nodeMinColumnSpace(i[n-1],!1)+u+1,p=Math.max(s[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<s[n]&&s[n]<f?p=s[n]:u>=s[n]?p=u:f<=s[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),s=e.nodeMinColumnSpace(r,!1);if(r.column-o<=t&&r.column+s>=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 s=e.network.vertexes.iterator;s.next();){i=s.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(s.reset();s.next();)e=s.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=jl(e),o=Rm(e);for(i=o+1;o<i;){i=o,hb(e,n,1);var s=Rm(e);s>o?Pu(e,r):s<o&&(o=s,r=jl(e))}}if(0>t)for(n=e.Ra;0<=n;n--)for(r=jl(e),o=Rm(e),i=o+1;o<i;)i=o,hb(e,n,-1),s=Rm(e),s>o?Pu(e,r):s<o&&(o=s,r=jl(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 s=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[s*(e.Ra+1)+l]=o.component}for(o=0;o<=e.Ia;o++){if(0<n)for(s=0;s<e.Ra;s++)r[o*(e.Ra+1)+s]!==-1&&r[o*(e.Ra+1)+s+1]!==-1&&r[o*(e.Ra+1)+s]!==r[o*(e.Ra+1)+s+1]&&(t[r[o*(e.Ra+1)+s]*e.le+r[o*(e.Ra+1)+s+1]]=!0);if(0>n)for(s=e.Ra;0<s;s--)r[o*(e.Ra+1)+s]!==-1&&r[o*(e.Ra+1)+s-1]!==-1&&r[o*(e.Ra+1)+s]!==r[o*(e.Ra+1)+s-1]&&(t[r[o*(e.Ra+1)+s]*e.le+r[o*(e.Ra+1)+s-1]]=!0)}for(r=[],o=0;o<e.le;o++)r[o]=!0;for(s=[],s.push(0);s.length!==0;)if(u=s[s.length-1],s.pop(),r[u])for(r[u]=!1,o=0;o<e.le;o++)t[u*e.le+o]&&s.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=Gt(),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 Wt,rx(t,n);var o=null,s=null,l=null,u=null,f=(e.ve&1)!==0,p=(e.ve&2)!==0,x=(e.ve&4)!==0,A=(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=lr(t),r=i.next();!r.done;r=i.next())r.value.reverse();A&&(e.verticalAlignment(t,n,!1),u=Pm(e,t,!1,!0)),t.reverse(),p&&(e.verticalAlignment(t,n,!0),s=Pm(e,t,!0,!0)),dn(t),e.u(o,s,l,u),e.network.vertexes.each(function(L){var B=Gt();f&&B.push(o.get(L)),p&&B.push(s.get(L)),x&&B.push(l.get(L)),A&&B.push(u.get(L)),B.sort(function(ye,oe){return ye-oe});var V=B.length;V=(B[Math.floor((V-1)/2)]+B[Math.ceil((V-1)/2)])/2,dn(B),L.zc=V})}function rx(e,t){for(var n=e.length,i=1;i<n-1;i++)for(var r=0,o=0,s=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=s.length-1,x&&(p=Pv(f)[0].index);o<=u;){if(f=l[o],!f.bo){x=[];for(var A=lr(f.sourceEdgesArrayAccess),L=A.next();!L.done;L=A.next())L=L.value,L.valid&&x.push(L);f.bo=x}for(f=lr(f.bo),x=f.next();!x.done;x=f.next())x=x.value,A=x.fromVertex.index,(A<r||A>p)&&t.add(x);o++}r=p}}}lo.prototype.verticalAlignment=function(e,t,n){ox(e),e=lr(e);for(var i=e.next();!i.done;i=e.next()){var r=-1;i=lr(i.value);for(var o=i.next();!o.done;o=i.next()){o=o.value;var s=n?Pv(o):lx(o),l=s.length;if(0<l){s.sort(function(x,A){return x.vi-A.vi});var u=(l-1)/2;for(l=Math.floor(u),u=Math.ceil(u);l<=u;l++)if(o.align===o){var f=s[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=lr(t),s=o.next();!s.done;s=o.next()){var l=lr(s.value);for(s=l.next();!s.done;s=l.next())s=s.value,s.sd=s,s.shift=1/0,s.zc=NaN,s.qg=0}for(s=e.K===90||e.K===270,o=lr(t),l=o.next();!l.done;l=o.next()){l=lr(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,A=s?p.width:p.height,L=s?x.width:x.height;if(n){var B=Hm(p,x),V=B.portFromPos,ye=B.portToPos;B.link!==null&&(p.node&&p.node!==B.link.fromNode&&(V=s?p.focusX:p.focusY),x.node&&x.node!==B.link.toNode&&(ye=s?x.focusX:x.focusY))}else B=Hm(x,p),V=B.portToPos,ye=B.portFromPos,B.link!==null&&(p.node&&p.node!==B.link.toNode&&(V=s?p.focusX:p.focusY),x.node&&x.node!==B.link.fromNode&&(ye=s?x.focusX:x.focusY));A=i?p.qg+(A-V)-(L-ye):p.qg+V-ye,x.qg=A,f=Math.min(f,A),p=p.align}p=u;do p.qg=p.qg-f,p=p.align;while(p!==u)}}for(n=lr(t),s=n.next();!s.done;s=n.next())for(o=lr(s.value),s=o.next();!s.done;s=o.next())s=s.value,s.root===s&&db(e,s,t);for(n=0;n<t.length;n++)if(!(0>=t[n].length)&&(s=t[n][0],s.sd===s)){s.sd.shift===1/0&&(s.sd.shift=0),s=n,l=0;do{for(o=t[s][l];o.align!==o.root;)o=o.align,s++,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(s<t.length&&l<t[s].length&&o.sd===t[s][l].sd)}for(e=new qn,t=lr(t),s=t.next();!s.done;s=t.next())for(n=lr(s.value),s=n.next();!s.done;s=n.next())s=s.value,s.zc=s.zc+s.sd.shift+s.qg,o=r?s.width:s.height,e.add(s,i?-s.zc-o:s.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 s=e.K===90||e.K===270?r.width:r.height;t.sd===o.sd&&(t.zc=Math.max(t.zc,o.zc+r.qg+s-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&&pt("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=Gt(),r=Gt(),o=1/0,s=0;4>s;s++)if(t[s]){var l=sx(this,t[s],i,r,s);l<o&&(n=s,o=l)}for(o={},s=0;4>s;o={delta:o.delta},s++)t[s]&&(o.delta=s===0||s===2?i[n]-i[s]:r[n]-r[s],o.delta!==0&&t[s].each(function(u){return function(f){f.value+=u.delta}}(o)));dn(i),dn(r)};function sx(e,t,n,i,r){if(!t||t.count===0)return n[r]=0,i[r]=0,1/0;var o=1/0,s=-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>s&&(s=l+u)}),n[r]=o,i[r]=s,s-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?rs:Es:e.K===90?t?Es:rs:e.K===180?t?ps:ks:t?ks:ps}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,s=r=1/0,l=-1/0;e.next();){var u=e.value,f=u.layer,p=u.column|0;i?(s=t.x+this.kc*p,f=this.Kd[f]):(s=this.Kd[f],f=t.y+this.kc*p),u.centerX=s,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?(s=o,l=Math.max(l,u.bounds.right)):(s=r,l=Math.max(l,u.bounds.bottom))}for(this.xw=l-s,o=t.x-o,t=t.y-r,this.Rf=new ce(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 Ht(0,0,n,Math.abs(this.Ta[0]))):t.push(new Ht(0,this.Ta[i-1],n,Math.abs(this.Ta[i-1]-this.Ta[i]))):this.K===90?i===0?t.push(new Ht(0,this.Ta[0],n,Math.abs(this.Ta[0]-e))):t.push(new Ht(0,this.Ta[i],n,Math.abs(this.Ta[i-1]-this.Ta[i]))):this.K===180?i===0?t.push(new Ht(0,0,Math.abs(this.Ta[0]),n)):t.push(new Ht(this.Ta[i-1],0,Math.abs(this.Ta[i-1]-this.Ta[i]),n)):i===0?t.push(new Ht(this.Ta[0],0,Math.abs(this.Ta[0]-e),n)):t.push(new Ht(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,s=i.fromPort,l=i.toPort;if(r!==null){var u=r.findVisibleNode();u!==null&&u!==r&&(r=u,s=u.port)}o!==null&&(u=o.findVisibleNode(),u!==null&&u!==o&&(o=u,l=u.port));var f=t.computeSpot(!0,s);u=t.computeSpot(!1,l);var p=n.fromVertex,x=n.toVertex;if(n.valid)t.curve===bu&&t.pointsCount===4&&(p.column===x.column&&this.alignOption===0?(n=t.getLinkPoint(r,s,f,!0,!1,o,l),l=t.getLinkPoint(o,l,u,!1,!1,r,s),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,s!==null&&f===Di&&(i=!0),l!==null&&u===Di&&(n=!0),(i||n)&&(u=null,i&&(u=t.getLinkPointFromPoint(r,s,s.ga(kr),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(kr),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 A=!1,L=!1,B=this.ie,V=t.firstPickIndex+1;if(t.isOrthogonal){L=!0;var ye=t.pointsCount;4<ye&&t.points.removeRange(2,ye-3)}else if(t.curve===bu)A=!0,ye=t.pointsCount,4<ye&&t.points.removeRange(2,ye-3),ye===4&&(V=2);else{ye=t.pointsCount;var oe=f===Di,Me=u===Di;2<ye&&oe&&Me?t.points.removeRange(1,ye-2):3<ye&&oe&&!Me?t.points.removeRange(1,ye-3):3<ye&&!oe&&Me?t.points.removeRange(2,ye-2):4<ye&&!oe&&!Me&&t.points.removeRange(2,ye-3)}if(n.rev){for(;x!==null&&p!==x;){var Be=ye=null;for(oe=x.sourceEdges.iterator;oe.next()&&(Me=oe.value,Me.link!==n.link||(ye=Me.fromVertex,Be=Me.toVertex,ye.node!==null)););if(ye===null)break;if(ye!==p){oe=t.i(V-1).x,Me=t.i(V-1).y;var je=ye.centerX,tt=ye.centerY;if(L)this.K===180||this.K===0?V===t.firstPickIndex+1?(t.m(V++,oe,Me),t.m(V++,oe,tt)):(Be!==null?Be.centerY:Me)!==tt&&(Be=this.Ta[ye.layer-1]+this.Rf.x,t.m(V++,Be,Me),t.m(V++,Be,tt)):V===t.firstPickIndex+1?(t.m(V++,oe,Me),t.m(V++,je,Me)):(Be!==null?Be.centerX:oe)!==je&&(Be=this.Ta[ye.layer-1]+this.Rf.y,t.m(V++,oe,Be),t.m(V++,je,Be));else if(V===t.firstPickIndex+1){Be=Math.max(10,this.he[x.layer]);var St=Math.max(10,this.Ld[x.layer]);if(A)this.K===180?je<=x.bounds.x?(x=x.bounds.x,t.m(V++,x-Be,tt),t.m(V++,x,tt),t.m(V++,x+St,tt)):(t.m(V++,je-Be,tt),t.m(V++,je,tt),t.m(V++,je+St,tt)):this.K===90?tt>=x.bounds.bottom?(x=x.bounds.y+x.bounds.height,t.m(V++,je,x+St),t.m(V++,je,x),t.m(V++,je,x-Be)):(t.m(V++,je,tt+St),t.m(V++,je,tt),t.m(V++,je,tt-Be)):this.K===270?tt<=x.bounds.y?(x=x.bounds.y,t.m(V++,je,x-Be),t.m(V++,je,x),t.m(V++,je,x+St)):(t.m(V++,je,tt-Be),t.m(V++,je,tt),t.m(V++,je,tt+St)):this.K===0&&(je>=x.bounds.right?(x=x.bounds.x+x.bounds.width,t.m(V++,x+St,tt),t.m(V++,x,tt),t.m(V++,x-Be,tt)):(t.m(V++,je+St,tt),t.m(V++,je,tt),t.m(V++,je-Be,tt)));else{t.m(V++,oe,Me);var $n=0;this.K===180||this.K===0?((this.K===180?je>=x.bounds.right:je<=x.bounds.x)&&($n=(this.K===0?-Be:St)/2),t.m(V++,oe+$n,tt)):((this.K===270?tt>=x.bounds.bottom:tt<=x.bounds.y)&&($n=(this.K===90?-Be:St)/2),t.m(V++,je,Me+$n)),t.m(V++,je,tt)}}else Be=Math.max(10,this.he[ye.layer]),St=Math.max(10,this.Ld[ye.layer]),A?this.K===180?(t.m(V++,je-Be-B,tt),t.m(V++,Math.min(je-Be+B/2,je),tt),t.m(V++,je,tt),t.m(V++,je,tt),t.m(V++,Math.max(je+St-B/2,je),tt),t.m(V++,je+St+B,tt)):this.K===90?(t.m(V++,je,tt+St+B),t.m(V++,je,Math.max(tt+St-B/2,tt)),t.m(V++,je,tt),t.m(V++,je,tt),t.m(V++,je,Math.min(tt-Be+B/2,tt)),t.m(V++,je,tt-Be-B)):this.K===270?(t.m(V++,je,tt-Be-B),t.m(V++,je,Math.min(tt-Be+B/2,tt)),t.m(V++,je,tt),t.m(V++,je,tt),t.m(V++,je,Math.max(tt+St-B/2,tt)),t.m(V++,je,tt+St+B)):(t.m(V++,je+St+B,tt),t.m(V++,Math.max(je+St-B/2,je),tt),t.m(V++,je,tt),t.m(V++,je,tt),t.m(V++,Math.min(je-Be+B/2,je),tt),t.m(V++,je-Be-B,tt)):t.m(V++,je,tt)}x=ye}(l===null||f!==Di||L)&&(oe=t.i(V-1).x,Me=t.i(V-1).y,je=t.i(V).x,tt=t.i(V).y,L?(B=this.Ld[p.layer],this.K===180||this.K===0?(L=Me,L>=p.bounds.y&&L<=p.bounds.bottom&&(this.K===180?je>=p.bounds.x:je<=p.bounds.right)&&(x=p.centerX+(this.K===180?-B:B),L<p.bounds.y+p.bounds.height/2?L=p.bounds.y-this.kc/2:L=p.bounds.bottom+this.kc/2,t.m(V++,x,Me),t.m(V++,x,L)),t.m(V++,je,L)):(L=oe,L>=p.bounds.x&&L<=p.bounds.right&&(this.K===270?tt>=p.bounds.y:tt<=p.bounds.bottom)&&(x=p.centerY+(this.K===270?-B:B),L<p.bounds.x+p.bounds.width/2?L=p.bounds.x-this.kc/2:L=p.bounds.right+this.kc/2,t.m(V++,oe,x),t.m(V++,L,x)),t.m(V++,L,tt)),t.m(V++,je,tt)):A?(Be=Math.max(10,this.he[p.layer]),St=Math.max(10,this.Ld[p.layer]),this.K===180&&je>=p.bounds.x?(x=p.bounds.x+p.bounds.width,t.L(V-2,x,Me),t.L(V-1,x+St,Me)):this.K===90&&tt<=p.bounds.bottom?(x=p.bounds.y,t.L(V-2,oe,x),t.L(V-1,oe,x-Be)):this.K===270&&tt>=p.bounds.y?(x=p.bounds.y+p.bounds.height,t.L(V-2,oe,x),t.L(V-1,oe,x+St)):this.K===0&&je<=p.bounds.right&&(x=p.bounds.x,t.L(V-2,x,Me),t.L(V-1,x-Be,Me))):(Be=Math.max(10,this.he[p.layer]),St=Math.max(10,this.Ld[p.layer]),L=0,this.K===180||this.K===0?((this.K===180?je<=p.bounds.x:je>=p.bounds.right)&&(L=(this.K===0?St:-Be)/2),t.m(V++,je+L,Me)):((this.K===270?tt<=p.bounds.y:tt>=p.bounds.bottom)&&(L=(this.K===90?St:-Be)/2),t.m(V++,oe,tt+L)),t.m(V++,je,tt)))}else{for(;p!==null&&p!==x;){for(Be=ye=null,p=p.destinationEdges.iterator;p.next()&&(oe=p.value,oe.link!==n.link||(ye=oe.toVertex,Be=oe.fromVertex,Be.node!==null&&(Be=null),ye.node!==null)););if(ye===null)break;ye!==x&&(oe=t.i(V-1).x,Me=t.i(V-1).y,je=ye.centerX,tt=ye.centerY,L?this.K===180||this.K===0?(Be!==null?Be.centerY:Me)!==tt&&(Be=this.Ta[ye.layer]+this.Rf.x,V===t.firstPickIndex+1&&(Be=this.K===0?Math.max(Be,oe):Math.min(Be,oe)),t.m(V++,Be,Me),t.m(V++,Be,tt)):(Be!==null?Be.centerX:oe)!==je&&(Be=this.Ta[ye.layer]+this.Rf.y,V===t.firstPickIndex+1&&(Be=this.K===90?Math.max(Be,Me):Math.min(Be,Me)),t.m(V++,oe,Be),t.m(V++,je,Be)):(Be=Math.max(10,this.he[ye.layer]),St=Math.max(10,this.Ld[ye.layer]),A?this.K===180?(t.m(V++,je+St+B,tt),t.m(V++,Math.max(je+St-B/2,je),tt),t.m(V++,je,tt),t.m(V++,je,tt),t.m(V++,Math.min(je-Be+B/2,je),tt),t.m(V++,je-Be-B,tt)):this.K===90?(t.m(V++,je,tt-Be-B),t.m(V++,je,Math.min(tt-Be+B/2,tt)),t.m(V++,je,tt),t.m(V++,je,tt),t.m(V++,je,Math.max(tt+St-B/2,tt)),t.m(V++,je,tt+St+B)):this.K===270?(t.m(V++,je,tt+St+B),t.m(V++,je,Math.max(tt+St-B/2,tt)),t.m(V++,je,tt),t.m(V++,je,tt),t.m(V++,je,Math.min(tt-Be+B/2,tt)),t.m(V++,je,tt-Be-B)):(t.m(V++,je-Be-B,tt),t.m(V++,Math.min(je-Be+B/2,je),tt),t.m(V++,je,tt),t.m(V++,je,tt),t.m(V++,Math.max(je+St-B/2,je),tt),t.m(V++,je+St+B,tt)):this.K===180?(t.m(V++,je+St,tt),t.m(V++,je-Be,tt)):this.K===90?(t.m(V++,je,tt-Be),t.m(V++,je,tt+St)):this.K===270?(t.m(V++,je,tt+St),t.m(V++,je,tt-Be)):(t.m(V++,je-Be,tt),t.m(V++,je+St,tt)))),p=ye}L&&(oe=t.i(V-1).x,Me=t.i(V-1).y,je=t.i(V).x,tt=t.i(V).y,this.K===180||this.K===0?Me!==tt&&(Be=this.K===0?Math.min(Math.max((je+oe)/2,this.Ta[x.layer]+this.Rf.x),je):Math.max(Math.min((je+oe)/2,this.Ta[x.layer]+this.Rf.x),je),t.m(V++,Be,Me),t.m(V++,Be,tt)):oe!==je&&(Be=this.K===90?Math.min(Math.max((tt+Me)/2,this.Ta[x.layer]+this.Rf.y),tt):Math.max(Math.min((tt+Me)/2,this.Ta[x.layer]+this.Rf.y),tt),t.m(V++,oe,Be),t.m(V++,je,Be)))}i!==null&&A&&4<=t.pointsCount&&(s!==null&&(s=f===Di?t.getLinkPointFromPoint(r,s,s.ga(kr),t.i(3),!0):t.i(0),f===Di&&(f=t.i(2),i=t.i(3),this.direction===90||this.direction===270?(t.L(1,(s.x+f.x)/2,f.y),t.L(2,i.x,(f.y+i.y)/2)):(t.L(1,f.x,(s.y+f.y)/2),t.L(2,(f.x+i.x)/2,i.y))),s.w()||s.set(r.actualBounds.center),t.L(0,s.x,s.y)),l!==null&&(r=u===Di?t.getLinkPointFromPoint(o,l,l.ga(kr),t.i(t.pointsCount-4),!1):t.i(t.pointsCount-1),u===Di&&(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 Zt,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),s=i.i(r+1);if(this.B(o.y,s.y)&&!this.B(o.x,s.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,s.x),l.Ic=Math.max(o.x,s.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<s.x?2:1:u.y>o.y&&(p=f.y>o.y?0:s.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(s=n[o].Ic,r=e+1;r<i&&n[r].rd<s;)s=Math.max(s,n[r].Ic),r++;if(s=r-o,1<s){for(this.zi(n,this.Js,o,o+s),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+s);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+s)):l=n[o].first,p=0,x=o;x<r;x++){var A=n[x];(u?A.first:A.jc)!==l&&(p++,l=u?A.first:A.jc);var L=A.link;o=L.i(A.index),s=L.i(A.index+1);var B=this.linkSpacing*(p-(f-1)/2);t++,L.uh(),L.L(A.index,o.x,o.y+B),L.L(A.index+1,s.x,s.y+B),L.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),s=i.i(r+1),this.B(o.x,s.x)&&!this.B(o.y,s.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,s.y),l.Ic=Math.max(o.y,s.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<s.y?2:1:u.x>o.x&&(p=f.x>o.x?0:s.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(s=n[o].Ic,r=e+1;r<i&&n[r].rd<s;)s=Math.max(s,n[r].Ic),r++;if(s=r-o,1<s){for(this.zi(n,this.Js,o,o+s),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+s),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+s)):l=n[o].first,p=0,x=o;x<r;x++)A=n[x],(u?A.first:A.jc)!==l&&(p++,l=u?A.first:A.jc),L=A.link,o=L.i(A.index),s=L.i(A.index+1),B=this.linkSpacing*(p-(f-1)/2),t++,L.uh(),L.L(A.index,o.x+B,o.y),L.L(A.index+1,s.x+B,s.y),L.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)&&pt("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()):pt("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 Kt(lo,"CycleDepthFirst",0),kv=new Kt(lo,"CycleGreedy",1),Qp=new Kt(lo,"CycleFromLayers",2),_m=new Kt(lo,"LayerOptimalLinkLength",0),Iv=new Kt(lo,"LayerLongestPathSink",1),Mv=new Kt(lo,"LayerLongestPathSource",2),zm=new Kt(lo,"InitDepthFirstOut",0),Ov=new Kt(lo,"InitDepthFirstIn",1),Lv=new Kt(lo,"InitNaive",2),Rv=new Kt(lo,"AggressiveNone",0),Um=new Kt(lo,"AggressiveLess",1),Dv=new Kt(lo,"AggressiveMore",2),ax=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){Ro.call(this,e)}di($f,Ro),$f.prototype.createVertex=function(){return new Fu(this)},$f.prototype.createEdge=function(){return new Jp(this)},$f.className="LayeredDigraphNetwork";function Fu(e){ia.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}di(Fu,ia);function pb(e,t){return e.index-t.index}function Hm(e,t){if(!e.$n){for(var n=[],i=lr(e.destinationEdgesArrayAccess),r=i.next();!r.done;r=i.next())r=r.value,r.valid&&n.push(r);e.$n=n}for(e=lr(e.$n),n=e.next();!n.done;n=e.next())if(n=n.value,n.toVertex===t)return n;pt("Unable to find destination edge to given vertex")}function Pv(e){if(!e.co){for(var t=[],n=lr(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=lr(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}Fu.prototype.Cl=function(e){ia.prototype.Cl.call(this,e),this.bo=this.co=null},Fu.prototype.Kl=function(e){ia.prototype.Kl.call(this,e),this.bo=this.co=null},Fu.prototype.zl=function(e){ia.prototype.zl.call(this,e),this.$n=this.ao=null},Fu.prototype.Jl=function(e){ia.prototype.Jl.call(this,e),this.$n=this.ao=null},ht.Object.defineProperties(Fu.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)}}}),Fu.prototype.deleteDestinationEdge=Fu.prototype.Jl,Fu.prototype.addDestinationEdge=Fu.prototype.zl,Fu.prototype.deleteSourceEdge=Fu.prototype.Kl,Fu.prototype.addSourceEdge=Fu.prototype.Cl,Fu.className="LayeredDigraphVertex";function Jp(e){iu.call(this,e),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}di(Jp,iu),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 xr(e){Vo.call(this),this.Ub=new Wt,this.Wn=Wm,this.ud=jc,this.vo=Km,this.Bq=Vv,this.$v=[],this.td=!0,this.Rb=Ym,this.$d=new mi(10,10).freeze();var t=new qd(this);this.W=new Gu(t),this.Y=new Gu(t),this.ru=[],e&&Object.assign(this,e)}di(xr,Vo),xr.prototype.cloneProtected=function(e){Vo.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)},xr.prototype.qb=function(e){e.classType===xr?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:pt("Unknown enum value: "+e):Vo.prototype.qb.call(this,e)},xr.prototype.createNetwork=function(){return new qd(this)},xr.prototype.makeNetwork=function(e){function t(i){if(i instanceof Wn)return!i.isLinkLabel&&i.category!=="Comment";if(i instanceof In){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 Z?(n.lg(e.nodes,!0,t),n.lg(e.links,!0,t)):e instanceof er?n.lg(e.memberParts,!1,t):n.lg(e.iterator,!1,t),n},xr.prototype.doLayout=function(e){this.network===null&&(this.network=this.makeNetwork(e)),this.arrangement!==Zm&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var t=this.diagram;if(t===null&&e instanceof Z&&(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 Wt,t=this.Ub.iterator;t.next();){var n=t.value;n instanceof Wn?(n=this.network.ki(n),n!==null&&e.add(n)):n instanceof Gu&&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 Gu&&vb(this,t);for(e=this.Ub.iterator;e.next();)t=e.value,t instanceof Gu&&yb(this,t);for(e=this.Ub.iterator;e.next();)t=e.value,t instanceof Gu&&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 Gu&&this.layoutTree(t);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new Wt,this.isValidLayout=!0};function ux(e){var t=new Wt;for(e=e.iterator;e.next();){var n=e.value;n.initialized||t.add(n)}return t}xr.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:pt("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:pt("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 Zt,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 Zt,i=t.sourceVertexes;i.next();)r=i.value,gb(e,t,r)&&n.add(r);0<n.count&&(t.children=n.Fa())}break;default:pt("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}xr.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,s=o.length,l=0;l<s;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}}xr.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])}}xr.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])}}xr.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:pt("Unhandled sorting value "+e.sorting.toString())}},xr.prototype.Cu=function(){if(this.comments)for(var e=this.network.vertexes.iterator;e.next();)this.addComments(e.value)},xr.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,s=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),s+=p.height+Math.abs(l)):(o+=p.width+Math.abs(l),s=Math.max(s,p.height)),l=u)}e.comments!==null&&(t&&!n||!r&&!i&&n||r&&i&&n?(o+=Math.abs(e.commentMargin),s=Math.max(0,s-e.height)):(s+=Math.abs(e.commentMargin),o=Math.max(0,o-e.width)),r=Ht.allocAt(0,0,e.bounds.width+o,e.bounds.height+s),e.bounds=r,Ht.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}xr.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 s=e.childrenCount===0,l=Bv(e),u=0,f=e.comments,p=f.length,x=ce.alloc(),A=0;A<p;A++){var L=f[A],B=L.measuredBounds;if(i&&!s||!o&&!n&&s||o&&n&&s){if(135<r&&!o||n&&l)if(0<=e.commentMargin)for(x.h(e.bounds.x-e.commentMargin-B.width,e.bounds.y+u),L.move(x),L=L.Sd();L.next();){var V=L.value;V.fromSpot=ps,V.toSpot=ks}else for(x.h(e.bounds.x+2*e.focus.x-e.commentMargin,e.bounds.y+u),L.move(x),L=L.Sd();L.next();)V=L.value,V.fromSpot=ks,V.toSpot=ps;else if(0<=e.commentMargin)for(x.h(e.bounds.x+2*e.focus.x+e.commentMargin,e.bounds.y+u),L.move(x),L=L.Sd();L.next();)V=L.value,V.fromSpot=ks,V.toSpot=ps;else for(x.h(e.bounds.x+e.commentMargin-B.width,e.bounds.y+u),L.move(x),L=L.Sd();L.next();)V=L.value,V.fromSpot=ps,V.toSpot=ks;u=0<=e.commentSpacing?u+(B.height+e.commentSpacing):u+(e.commentSpacing-B.height)}else{if(135<r&&!o||!n&&l)if(0<=e.commentMargin)for(x.h(e.bounds.x+u,e.bounds.y-e.commentMargin-B.height),L.move(x),L=L.Sd();L.next();)V=L.value,V.fromSpot=rs,V.toSpot=Es;else for(x.h(e.bounds.x+u,e.bounds.y+2*e.focus.y-e.commentMargin),L.move(x),L=L.Sd();L.next();)V=L.value,V.fromSpot=Es,V.toSpot=rs;else if(0<=e.commentMargin)for(x.h(e.bounds.x+u,e.bounds.y+2*e.focus.y+e.commentMargin),L.move(x),L=L.Sd();L.next();)V=L.value,V.fromSpot=Es,V.toSpot=rs;else for(x.h(e.bounds.x+u,e.bounds.y+e.commentMargin-B.height),L.move(x),L=L.Sd();L.next();)V=L.value,V.fromSpot=rs,V.toSpot=Es;u=0<=e.commentSpacing?u+(B.width+e.commentSpacing):u+(e.commentSpacing-B.width)}}if(ce.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)}},xr.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,s=e.children,l=s.length;for(n=0;n<l;n++)i=s[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 A=e.nodeSpacing,L=this.computeNodeIndent(e),B=e.rowSpacing,V=0;(i||f||e.hm||e.im&&e.maxGenerationCount===1)&&(V=Math.max(0,e.rowIndent)),i=e.width;var ye=e.height,oe=0,Me=0,Be=0,je=null,tt=null,St=0,$n=0,ii=0,Qn=0,An=0,an=0,Ji=0,Ui=0;if(p&&!qp(u)&&135<r&&s.reverse(),qp(u))if(1<l)for(var Yr=0;Yr<l;Yr++)Yr%2===0&&Yr!==l-1&&(Ui=Math.max(Ui,t?s[Yr].Da.width:s[Yr].Da.height));else l===1&&(Ui=t?s[0].Da.width:s[0].Da.height);if(p){switch(u){case Nh:Me=135>r?Sb(this,e,s,Ui,oe,Me):Eb(this,e,s,Ui,oe,Me),Ui=Me.x,oe=Me.width,Me=Me.height;break;case Ah:for(je=0;je<l;je++)tt=s[je],x=tt.Da,Be=an===0?0:B,t?(tt.S.h(o-x.width,Qn+Be),oe=Math.max(oe,x.width),Me=Math.max(Me,Qn+Be+x.height),Qn+=Be+x.height):(tt.S.h(ii+Be,o-x.height),oe=Math.max(oe,ii+Be+x.width),Me=Math.max(Me,x.height),ii+=Be+x.width),an++;break;case ih:for(je=0;je<l;je++)tt=s[je],o=tt.Da,x=an===0?0:B,t?(tt.S.h(A/2+e.focus.x,Qn+x),oe=Math.max(oe,o.width),Me=Math.max(Me,Qn+x+o.height),Qn+=x+o.height):(tt.S.h(ii+x,A/2+e.focus.y),oe=Math.max(oe,ii+x+o.width),Me=Math.max(Me,o.height),ii+=x+o.width),an++}je=Zl(this,2),tt=Zl(this,2),t?(je[0].h(0,0),je[1].h(0,Me),tt[0].h(oe,0)):(je[0].h(0,0),je[1].h(oe,0),tt[0].h(0,Me)),tt[1].h(oe,Me)}else for(Yr=0;Yr<l;Yr++){var Io=s[Yr],la=Io.Da;if(t){0<x&&0<an&&ii+A+la.width>x&&(ii<o&&Nd(e,u,o-ii,0,Ji,Yr-1),An++,an=0,Ji=Yr,Be=Me,ii=0,Qn=135<r?-Me-B:Me+B),jm(this,Io,0,Qn);var va=0;if(an===0)je=Io.Yo,tt=Io.kp,St=la.width,$n=la.height,(je===null||tt===null||r!==lc(Io))&&(je=Zl(this,2),tt=Zl(this,2),je[0].h(0,0),je[1].h(0,$n),tt[0].h(St,0),tt[1].h(St,$n));else{var hl=Gt();$n=wb(this,e,Io,je,tt,St,$n,hl),va=$n.x,je=hl[0],tt=hl[1],St=$n.width,$n=$n.height,dn(hl),ii<la.width&&0>va&&(Xd(e,-va,0,Ji,Yr-1),Gm(je,-va,0),Gm(tt,-va,0),va=0)}Io.S.h(va,Qn),oe=Math.max(oe,St),Me=Math.max(Me,Be+(An===0?0:B)+la.height),ii=St}else 0<x&&0<an&&Qn+A+la.height>x&&(Qn<o&&Nd(e,u,0,o-Qn,Ji,Yr-1),An++,an=0,Ji=Yr,Be=oe,Qn=0,ii=135<r?-oe-B:oe+B),jm(this,Io,ii,0),va=0,an===0?(je=Io.Yo,tt=Io.kp,St=la.width,$n=la.height,(je===null||tt===null||r!==lc(Io))&&(je=Zl(this,2),tt=Zl(this,2),je[0].h(0,0),je[1].h(St,0),tt[0].h(0,$n),tt[1].h(St,$n))):(hl=Gt(),$n=wb(this,e,Io,je,tt,St,$n,hl),va=$n.x,je=hl[0],tt=hl[1],St=$n.width,$n=$n.height,dn(hl),Qn<la.height&&0>va&&(Xd(e,0,-va,Ji,Yr-1),Gm(je,0,-va),Gm(tt,0,-va),va=0)),Io.S.h(ii,va),Me=Math.max(Me,$n),oe=Math.max(oe,Be+(An===0?0:B)+la.width),Qn=$n;an++}switch(0<An&&(t?(Me+=Math.max(0,n),ii<oe&&Nd(e,u,oe-ii,0,Ji,l-1),0<V&&(f||Xd(e,V,0,0,l-1),oe+=V)):(oe+=Math.max(0,n),Qn<Me&&Nd(e,u,0,Me-Qn,Ji,l-1),0<V&&(f||Xd(e,0,V,0,l-1),Me+=V))),V=f=0,u){case Gf:t?f+=oe/2-e.focus.x-L/2:V+=Me/2-e.focus.y-L/2;break;case Jd:0<An?t?f+=oe/2-e.focus.x-L/2:V+=Me/2-e.focus.y-L/2:t?(Ui=s[0].S.x+s[0].la.x,f+=Ui+(s[l-1].S.x+s[l-1].la.x+2*s[l-1].focus.x-Ui)/2-e.focus.x-L/2):(Ui=s[0].S.y+s[0].la.y,V+=Ui+(s[l-1].S.y+s[l-1].la.y+2*s[l-1].focus.y-Ui)/2-e.focus.y-L/2);break;case Gc:t?(f-=L,oe+=L):(V-=L,Me+=L);break;case Wc:t?(f+=oe-e.width+L,oe+=L):(V+=Me-e.height+L,Me+=L);break;case Nh:t?1<l?f+=Ui+A/2-e.focus.x:f+=s[0].focus.x-e.focus.x+s[0].la.x:1<l?V+=Ui+A/2-e.focus.y:V+=s[0].focus.y-e.focus.y+s[0].la.y;break;case Ah:t?f+=oe+A/2-e.focus.x:V+=Me+A/2-e.focus.y;break;case ih:break;default:Me=this.customAlignment(e,f,V,oe,Me),f=Me[0],V=Me[1],oe=Me[2],Me=Me[3]}for(L=0;L<l;L++)Ui=s[L],t?Ui.S.h(Ui.S.x+Ui.la.x-f,Ui.S.y+(135<r?(p?-Me:-Ui.Da.height)+Ui.la.y-n:ye+n+Ui.la.y)):Ui.S.h(Ui.S.x+(135<r?(p?-oe:-Ui.Da.width)+Ui.la.x-n:i+n+Ui.la.x),Ui.S.y+Ui.la.y-V);if(l=s=0,p?t?(oe=_v(e,oe,f),0>f&&(f=0),135<r&&(V+=Me+n),Me+=ye+n,u===ih&&(s+=A/2+e.focus.x),l+=ye+n):(135<r&&(f+=oe+n),oe+=i+n,Me=zv(e,Me,V),0>V&&(V=0),u===ih&&(l+=A/2+e.focus.y),s+=i+n):t?(e.comments===null?i>oe&&(oe=Uv(u,i-oe,0),s=oe.x,l=oe.y,oe=i,f=0):oe=_v(e,oe,f),0>f&&(s-=f,f=0),135<r&&(V+=Me+n),Me=Math.max(Math.max(Me,ye),Me+ye+n),l+=ye+n):(135<r&&(f+=oe+n),oe=Math.max(Math.max(oe,i),oe+i+n),e.comments===null?ye>Me&&(Me=Uv(u,0,ye-Me),s=Me.x,l=Me.y,Me=ye,V=0):Me=zv(e,Me,V),0>V&&(l-=V,V=0),s+=i+n),0<An)r=Zl(this,4),An=Zl(this,4),t?(r[2].h(0,ye+n),r[3].h(r[2].x,Me),An[2].h(oe,r[2].y),An[3].h(An[2].x,r[3].y)):(r[2].h(i+n,0),r[3].h(oe,r[2].y),An[2].h(r[2].x,Me),An[3].h(r[3].x,An[2].y));else{for(r=Zl(this,je.length+2),An=Zl(this,tt.length+2),u=0;u<je.length;u++)p=je[u],r[u+2].h(p.x+s,p.y+l);for(u=0;u<tt.length;u++)p=tt[u],An[u+2].h(p.x+s,p.y+l)}t?(r[0].h(f,0),r[1].h(r[0].x,ye),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])),An[0].h(f+i,0),An[1].h(An[0].x,ye),An[2].y<An[1].y&&(An[2].x<An[0].x?An[2].assign(An[1]):An[1].assign(An[2])),An[3].y<An[2].y&&(An[3].x<An[0].x?An[3].assign(An[2]):An[2].assign(An[3])),r[2].y-=n/2,An[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])),An[0].h(0,V+ye),An[1].h(i,An[0].y),An[2].x<An[1].x&&(An[2].y<An[0].y?An[2].assign(An[1]):An[1].assign(An[2])),An[3].x<An[2].x&&(An[3].y<An[0].y?An[3].assign(An[2]):An[2].assign(An[3])),r[2].x-=n/2,An[2].x-=n/2),vc(this,je),vc(this,tt),e.Yo=r,e.kp=An,e.la.h(f,V),e.Da.h(oe,Me)}break;default:pt("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 s=r.length,l=0;l<s;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 A=Math.max(0,t.breadthLimit);u=e.computeLayerSpacing(t);var L=t.nodeSpacing,B=e.computeNodeIndent(t),V=p||x?0:B/2,ye=t.rowSpacing,oe=0;(p||x||t.hm||t.im&&t.maxGenerationCount===1)&&(oe=Math.max(0,t.rowIndent)),p=t.width;var Me=t.height,Be=0,je=0,tt=0,St=0,$n=0,ii=0,Qn=0,An=0,an=0,Ji=0;if(l&&!qp(f)&&135<i&&r.reverse(),qp(f))if(1<s)for(var Ui=0;Ui<s;Ui++){var Yr=r[Ui],Io=Yr.Da;Ui%2===0&&Ui!==s-1?an=Math.max(an,(n?Io.width:Io.height)+e.computeBusNodeSpacing(Yr)-L):Ui%2!==0&&(Ji=Math.max(Ji,(n?Io.width:Io.height)+e.computeBusNodeSpacing(Yr)-L))}else s===1&&(an=n?r[0].Da.width:r[0].Da.height);if(l)switch(f){case Nh:case Vc:je=135>i?Sb(e,t,r,an,Be,je):Eb(e,t,r,an,Be,je),an=je.x,Be=je.width,je=je.height;break;case Ah:for(A=0;A<s;A++)V=r[A],tt=V.Da,Ji=Qn===0?0:ye,n?(V.S.h(o-tt.width,$n+Ji),Be=Math.max(Be,tt.width),je=Math.max(je,$n+Ji+tt.height),$n+=Ji+tt.height):(V.S.h(St+Ji,o-tt.height),Be=Math.max(Be,St+Ji+tt.width),je=Math.max(je,tt.height),St+=Ji+tt.width),Qn++;break;case ih:for(o=0;o<s;o++)A=r[o],V=A.Da,tt=Qn===0?0:ye,n?(A.S.h(L/2+t.focus.x,$n+tt),Be=Math.max(Be,V.width),je=Math.max(je,$n+tt+V.height),$n+=tt+V.height):(A.S.h(St+tt,L/2+t.focus.y),Be=Math.max(Be,St+tt+V.width),je=Math.max(je,V.height),St+=tt+V.width),Qn++}else for(Ji=0;Ji<s;Ji++)Ui=r[Ji],Yr=Ui.Da,n?(0<A&&0<Qn&&St+L+Yr.width>A&&(St<o&&Nd(t,f,o-St,0,An,Ji-1),ii++,Qn=0,An=Ji,tt=je,St=0,$n=135<i?-je-ye:je+ye),Io=Qn===0?V:L,jm(e,Ui,0,$n),Ui.S.h(St+Io,$n),Be=Math.max(Be,St+Io+Yr.width),je=Math.max(je,tt+(ii===0?0:ye)+Yr.height),St+=Io+Yr.width):(0<A&&0<Qn&&$n+L+Yr.height>A&&($n<o&&Nd(t,f,0,o-$n,An,Ji-1),ii++,Qn=0,An=Ji,tt=Be,$n=0,St=135<i?-Be-ye:Be+ye),Io=Qn===0?V:L,jm(e,Ui,St,0),Ui.S.h(St,$n+Io),je=Math.max(je,$n+Io+Yr.height),Be=Math.max(Be,tt+(ii===0?0:ye)+Yr.width),$n+=Io+Yr.height),Qn++;switch(0<ii&&(n?(je+=Math.max(0,u),St<Be&&Nd(t,f,Be-St,0,An,s-1),0<oe&&(x||Xd(t,oe,0,0,s-1),Be+=oe)):(Be+=Math.max(0,u),$n<je&&Nd(t,f,0,je-$n,An,s-1),0<oe&&(x||Xd(t,0,oe,0,s-1),je+=oe))),oe=x=0,f){case Gf:n?x+=Be/2-t.focus.x-B/2:oe+=je/2-t.focus.y-B/2;break;case Jd:0<ii?n?x+=Be/2-t.focus.x-B/2:oe+=je/2-t.focus.y-B/2:n?(e=r[0].S.x+r[0].la.x,x+=e+(r[s-1].S.x+r[s-1].la.x+2*r[s-1].focus.x-e)/2-t.focus.x-B/2):(e=r[0].S.y+r[0].la.y,oe+=e+(r[s-1].S.y+r[s-1].la.y+2*r[s-1].focus.y-e)/2-t.focus.y-B/2);break;case Gc:n?(x-=B,Be+=B):(oe-=B,je+=B);break;case Wc:n?(x+=Be-t.width+B,Be+=B):(oe+=je-t.height+B,je+=B);break;case Nh:case Vc:n?1<s?x+=an+L/2-t.focus.x:x+=r[0].focus.x-t.focus.x+r[0].la.x:1<s?oe+=an+L/2-t.focus.y:oe+=r[0].focus.y-t.focus.y+r[0].la.y;break;case Ah:n?x+=Be+L/2-t.focus.x:oe+=je+L/2-t.focus.y;break;case ih:break;default:e=e.customAlignment(t,x,oe,Be,je),x=e[0],oe=e[1],Be=e[2],je=e[3]}for(e=0;e<s;e++)B=r[e],n?B.S.h(B.S.x+B.la.x-x,B.S.y+(135<i?(l?-je:-B.Da.height)+B.la.y-u:Me+u+B.la.y)):B.S.h(B.S.x+(135<i?(l?-Be:-B.Da.width)+B.la.x-u:p+u+B.la.x),B.S.y+B.la.y-oe);n?(Be=_v(t,Be,x),0>x&&(x=0),135<i&&(oe+=je+u),je=Math.max(Math.max(je,Me),je+Me+u)):(135<i&&(x+=Be+u),Be=Math.max(Math.max(Be,p),Be+p+u),je=zv(t,je,oe),0>oe&&(oe=0)),t.la.h(x,oe),t.Da.h(Be,je)}}xr.prototype.customAlignment=function(e,t,n,i,r){return[t,n,i,r]};function Sb(e,t,n,i,r,o){var s=n.length;if(s===0)return new Ht(i,0,r,o);if(s===1)return t=n[0],r=t.Da.width,o=t.Da.height,new Ht(i,0,r,o);for(var l=t.nodeSpacing,u=t.rowSpacing,f=lc(t)===90,p=0,x=0,A=0,L=0;L<s;L++)if(!(L%2!==0||1<s&&L===s-1)){var B=n[L],V=B.Da,ye=p===0?0:u;if(f){var oe=e.computeBusNodeSpacing(B)-l;B.S.h(i-(V.width+oe),A+ye),r=Math.max(r,V.width+oe),o=Math.max(o,A+ye+V.height),A+=ye+V.height}else oe=e.computeBusNodeSpacing(B)-l,B.S.h(x+ye,i-(V.height+oe)),o=Math.max(o,V.height+oe),r=Math.max(r,x+ye+V.width),x+=ye+V.width;p++}for(p=0,B=x,L=A,f?(x=i+l,A=0):(x=0,A=i+l),V=0;V<s;V++)if(V%2!==0){ye=n[V],oe=ye.Da;var Me=p===0?0:u;if(f){var Be=e.computeBusNodeSpacing(ye)-l;ye.S.h(x+Be,A+Me),r=Math.max(r,x+oe.width+Be),o=Math.max(o,A+Me+oe.height),A+=Me+oe.height}else Be=e.computeBusNodeSpacing(ye)-l,ye.S.h(x+Me,A+Be),r=Math.max(r,x+Me+oe.width),o=Math.max(o,A+oe.height+Be),x+=Me+oe.width;p++}return 1<s&&s%2===1&&(n=n[s-1],s=n.Da,e=e.computeBusLastRowSpacing(n,f?Math.max(Math.abs(L),Math.abs(A)):Math.max(Math.abs(B),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+s.width),0>f&&(r-=f),o=Math.max(o,Math.max(L,A)+e+s.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(B,x)+e+s.width),A=i+l/2-n.focus.y-n.la.y,o=Math.max(o,A+s.height),0>A&&(o-=A),0>n.S.y&&(i=$m(t,n.S.y,!0,i,l)))),new Ht(i,0,r,o)}function Eb(e,t,n,i,r,o){var s=n.length;if(s===0)return new Ht(i,0,r,o);if(s===1)return n=n[0],r=n.Da.width,o=n.Da.height,new Ht(i,0,r,o);for(var l=t.nodeSpacing,u=t.rowSpacing,f=lc(t)===270,p=0,x=0,A=0,L=0;L<s;L++)if(!(L%2!==0||1<s&&L===s-1)){var B=n[L],V=B.Da,ye=p===0?0:u;if(f){var oe=e.computeBusNodeSpacing(B)-l;A-=ye+V.height,B.S.h(i-(V.width+oe),A),r=Math.max(r,V.width+oe),o=Math.max(o,Math.abs(A))}else oe=e.computeBusNodeSpacing(B)-l,x-=ye+V.width,B.S.h(x,i-(V.height+oe)),o=Math.max(o,V.height+oe),r=Math.max(r,Math.abs(x));p++}for(p=0,B=x,L=A,f?(x=i+l,A=0):(x=0,A=i+l),V=0;V<s;V++)if(V%2!==0){ye=n[V],oe=ye.Da;var Me=p===0?0:u;if(f){var Be=e.computeBusNodeSpacing(ye)-l;A-=Me+oe.height,ye.S.h(x+Be,A),r=Math.max(r,x+oe.width+Be),o=Math.max(o,Math.abs(A))}else Be=e.computeBusNodeSpacing(ye)-l,x-=Me+oe.width,ye.S.h(x,A+Be),o=Math.max(o,A+oe.height+Be),r=Math.max(r,Math.abs(x));p++}for(1<s&&s%2===1&&(u=n[s-1],p=u.Da,e=e.computeBusLastRowSpacing(u,f?Math.max(Math.abs(L),Math.abs(A)):Math.max(Math.abs(B),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(L,A))+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(B,x))+e+p.width),A=i+l/2-u.focus.y-u.la.y,o=Math.max(o,A+p.height),0>A&&(o-=A),0>u.S.y&&(i=$m(t,u.S.y,!0,i,l)))),t=0;t<s;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 Ht(i,0,r,o)}xr.prototype.computeBusNodeSpacing=function(e){return e.parent===null?0:e.parent.nodeSpacing},xr.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,s=0;s<o;s++)n?e[s].S.h(e[s].S.x,e[s].S.y-t):e[s].S.h(e[s].S.x-t,e[s].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:pt("Unhandled alignment value "+e.toString())}return new ce(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:pt("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,s,l){var u=lc(t),f=u===90||u===270,p=t.nodeSpacing;t=i;var x=r;i=o;var A=s,L=n.Yo,B=n.kp;s=n.Da;var V=f?Math.max(A,s.height):Math.max(i,s.width);if((L===null||u!==lc(n))&&(L=Zl(e,2),B=Zl(e,2),f?(L[0].h(0,0),L[1].h(0,s.height),B[0].h(s.width,0),B[1].h(B[0].x,L[1].y)):(L[0].h(0,0),L[1].h(s.width,0),B[0].h(0,s.height),B[1].h(L[1].x,B[0].y))),f){if(A=9999999,!(x===null||2>x.length||L===null||2>L.length))for(r=n=0;n<x.length&&r<L.length;){o=x[n];var ye=L[r];u=ye.x,f=ye.y,u+=i;var oe=o;n+1<x.length&&(oe=x[n+1]);var Me=ye;ye=Me.x,Me=Me.y,r+1<L.length&&(Me=L[r+1],ye=Me.x,Me=Me.y,ye+=i);var Be=A;o.y===f?Be=u-o.x:o.y>f&&o.y<Me?Be=u+(o.y-f)/(Me-f)*(ye-u)-o.x:f>o.y&&f<oe.y&&(Be=u-(o.x+(f-o.y)/(oe.y-o.y)*(oe.x-o.x))),Be<A&&(A=Be),oe.y<=o.y?n++:Me<=f?r++:(oe.y<=Me&&n++,Me<=oe.y&&r++)}if(A=i-A,A+=p,n=L,r=A,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=B,u=A,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;)oe=x[n++],p[r++].h(oe.x,oe.y);for(;f<o.length;)oe=o[f++],p[r++].h(oe.x+u,oe.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,A)+s.width,s=V,vc(e,t),vc(e,L),vc(e,x),vc(e,B),l[0]=i,l[1]=r,new Ht(A,0,o,s)}if(i=9999999,!(x===null||2>x.length||L===null||2>L.length))for(r=n=0;n<x.length&&r<L.length;)o=x[n],ye=L[r],u=ye.x,f=ye.y,f+=A,oe=o,n+1<x.length&&(oe=x[n+1]),Me=ye,ye=Me.x,Me=Me.y,r+1<L.length&&(Me=L[r+1],ye=Me.x,Me=Me.y,Me+=A),Be=i,o.x===u?Be=f-o.y:o.x>u&&o.x<ye?Be=f+(o.x-u)/(ye-u)*(Me-f)-o.y:u>o.x&&u<oe.x&&(Be=f-(o.y+(u-o.x)/(oe.x-o.x)*(oe.y-o.y))),Be<i&&(i=Be),oe.x<=o.x?n++:ye<=u?r++:(oe.x<=ye&&n++,ye<=oe.x&&r++);if(A-=i,A+=p,n=L,r=A,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=B,u=A,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;)oe=x[n++],p[r++].h(oe.x,oe.y);for(;f<o.length;)oe=o[f++],p[r++].h(oe.x,oe.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,s=Math.max(0,A)+s.height,vc(e,t),vc(e,L),vc(e,x),vc(e,B),l[0]=i,l[1]=r,new Ht(A,0,o,s)}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 ce;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)}xr.prototype.arrangeTrees=function(){if(this.Rb===Zm)for(var e=this.Ub.iterator;e.next();){var t=e.value;if(t instanceof Gu){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 Gu&&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:pt("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 Ym:n+=r.Da.height+this.$d.height;break;case Wv:t+=r.Da.width+this.$d.width;break;default:pt("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 s=t[o];Hv(e,s,n+s.S.x,i+s.S.y)}}}xr.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},xr.prototype.commitNodes=function(){for(var e=this.network.vertexes.iterator;e.next();)e.value.commit();for(e.reset();e.next();)this.layoutComments(e.value)},xr.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 ce(-this.nodeSpacing/2,-this.layerSpacing/2)):(n.Bc(this.layerSpacing,this.nodeSpacing/2),i=new ce(-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 s=0;s<e.length;s++)o+=e[s]+t[s];for(s=0;s<e.length;s++){var l=e[s]+t[s];this.angle===270?(o-=l,r.push(new Ht(0,o,n,l))):this.angle===90?(r.push(new Ht(0,o,n,l)),o+=l):this.angle===180?(o-=l,r.push(new Ht(o,0,l,n))):(r.push(new Ht(o,0,l,n)),o+=l)}this.commitLayers(r,i)}},xr.prototype.commitLayers=function(){},xr.prototype.commitLinks=function(){for(var e=this.network.edges.iterator;e.next();)e.value.commit()},xr.prototype.yv=function(){for(var e=this.Ub.iterator;e.next();){var t=e.value;t instanceof Gu&&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])}}xr.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=ks;break;case 90:r=Es;break;case 180:r=ps;break;default:r=rs}var o=e.children,s=o.length;switch(t){case Nh:case Vc:for(t=0;t<s;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?ps:rs;if(s===1||t===s-1&&s%2===1)switch(i){case 0:u=ps;break;case 90:u=rs;break;case 180:u=ks;break;default:u=Es}else t%2===0&&(u=i===90||i===270?ks:Es);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?ks:Es,o=n?e.destinationEdges:e.sourceEdges;o.next();)s=o.value.link,s!==null&&(n?(e.setsPortSpot&&(s.fromSpot=r),e.setsChildPortSpot&&(s.toSpot=i)):(e.setsPortSpot&&(s.fromSpot=i),e.setsChildPortSpot&&(s.toSpot=r)));break;case ih:for(i=i===90||i===270?ps:rs,o=n?e.destinationEdges:e.sourceEdges;o.next();)s=o.value.link,s!==null&&(n?(e.setsPortSpot&&(s.fromSpot=r),e.setsChildPortSpot&&(s.toSpot=i)):(e.setsPortSpot&&(s.fromSpot=i),e.setsChildPortSpot&&(s.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=ks;break;case 90:i.fromSpot=Es;break;case 180:i.fromSpot=ps;break;default:i.fromSpot=rs}else i.fromSpot=e.portSpot;if(e.setsChildPortSpot)if(e.childPortSpot.Xb())switch(n){case 0:i.toSpot=ps;break;case 90:i.toSpot=rs;break;case 180:i.toSpot=ks;break;default:i.toSpot=Es}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=ks;break;case 90:i.toSpot=Es;break;case 180:i.toSpot=ps;break;default:i.toSpot=rs}else i.toSpot=e.portSpot;if(e.setsChildPortSpot)if(e.childPortSpot.Xb())switch(n){case 0:i.fromSpot=ps;break;case 90:i.fromSpot=rs;break;case 180:i.fromSpot=ks;break;default:i.fromSpot=Es}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}xr.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},xr.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(xr.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!==Ym&&e!==Wv&&e!==Zm||(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()):pt("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 Kt(xr,"PathDefault",-1),jc=new Kt(xr,"PathDestination",0),Qd=new Kt(xr,"PathSource",1),jf=new Kt(xr,"SortingForwards",10),e0=new Kt(xr,"SortingReverse",11),t0=new Kt(xr,"SortingAscending",12),n0=new Kt(xr,"SortingDescending",13),Gf=new Kt(xr,"AlignmentCenterSubtrees",20),Jd=new Kt(xr,"AlignmentCenterChildren",21),Gc=new Kt(xr,"AlignmentStart",22),Wc=new Kt(xr,"AlignmentEnd",23),Nh=new Kt(xr,"AlignmentBus",24),Vc=new Kt(xr,"AlignmentBusBranching",25),Ah=new Kt(xr,"AlignmentTopLeftBus",26),ih=new Kt(xr,"AlignmentBottomRightBus",27),Vm=new Kt(xr,"CompactionNone",30),i0=new Kt(xr,"CompactionBlock",31),Km=new Kt(xr,"StyleLayered",40),$v=new Kt(xr,"StyleLastParents",41),jv=new Kt(xr,"StyleAlternating",42),Gv=new Kt(xr,"StyleRootOnly",43),Ym=new Kt(xr,"ArrangementVertical",50),Wv=new Kt(xr,"ArrangementHorizontal",51),Zm=new Kt(xr,"ArrangementFixedRoots",52),Vv=new Kt(xr,"LayerIndividual",60),Kv=new Kt(xr,"LayerSiblings",61),Xm=new Kt(xr,"LayerUniform",62);xr.className="TreeLayout",xr.PathDefault=Wm,xr.PathDestination=jc,xr.PathSource=Qd,xr.SortingForwards=jf,xr.SortingReverse=e0,xr.SortingAscending=t0,xr.SortingDescending=n0,xr.AlignmentCenterSubtrees=Gf,xr.AlignmentCenterChildren=Jd,xr.AlignmentStart=Gc,xr.AlignmentEnd=Wc,xr.AlignmentBus=Nh,xr.AlignmentBusBranching=Vc,xr.AlignmentTopLeftBus=Ah,xr.AlignmentBottomRightBus=ih,xr.CompactionNone=Vm,xr.CompactionBlock=i0,xr.StyleLayered=Km,xr.StyleLastParents=$v,xr.StyleAlternating=jv,xr.StyleRootOnly=Gv,xr.ArrangementVertical=Ym,xr.ArrangementHorizontal=Wv,xr.ArrangementFixedRoots=Zm,xr.LayerIndividual=Vv,xr.LayerSiblings=Kv,xr.LayerUniform=Xm;function qd(e){Ro.call(this,e)}di(qd,Ro),qd.prototype.createVertex=function(){return new Gu(this)},qd.prototype.createEdge=function(){return new Wf(this)},qd.className="TreeNetwork";function Gu(e){ia.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 ce(0,0),this.Da=new mi(0,0),this.la=new ce(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=Ur,this.wr=!0,this.Dp=Ur}di(Gu,ia),Gu.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(Gu.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)}}}),Gu.className="TreeVertex";function Wf(e){iu.call(this,e),this.$t=new ce(0,0)}di(Wf,iu),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:pt("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),s=t.computeLayerSpacing(n),l=n.rowSpacing;e.vg();var u=e.curve===bu,f=e.isOrthogonal,p;if(e.uh(),f||u){for(p=2;4<e.pointsCount;)e.pv(2);var x=e.i(1),A=e.i(2)}else{for(p=1;3<e.pointsCount;)e.pv(1);x=e.i(0),A=e.i(e.pointsCount-1)}var L=e.i(e.pointsCount-1);o===0?(n.alignment===Wc?(o=i.bottom+r.y,r.y===0&&x.y>L.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<L.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+s,o),p++,e.m(p,i.right+s+(r.x-l)/3,o),p++,e.m(p,i.right+s+2*(r.x-l)/3,o),p++,e.m(p,i.right+s+(r.x-l),o),p++,e.m(p,A.x,o)):(f&&(e.m(p,i.right+s/2,x.y),p++),e.m(p,i.right+s/2,o),p++,e.m(p,i.right+s+r.x-(f?l/2:l),o),p++,f&&e.m(p,e.i(p-1).x,A.y))):o===90?(n.alignment===Wc?(o=i.right+r.x,r.x===0&&x.x>L.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<L.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+s),p++,e.m(p,o,i.bottom+s+(r.y-l)/3),p++,e.m(p,o,i.bottom+s+2*(r.y-l)/3),p++,e.m(p,o,i.bottom+s+(r.y-l)),p++,e.m(p,o,A.y)):(f&&(e.m(p,x.x,i.bottom+s/2),p++),e.m(p,o,i.bottom+s/2),p++,e.m(p,o,i.bottom+s+r.y-(f?l/2:l)),p++,f&&e.m(p,A.x,e.i(p-1).y))):o===180?(n.alignment===Wc?(o=i.bottom+r.y,r.y===0&&x.y>L.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<L.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-s,o),p++,e.m(p,i.left-s+(r.x+l)/3,o),p++,e.m(p,i.left-s+2*(r.x+l)/3,o),p++,e.m(p,i.left-s+(r.x+l),o),p++,e.m(p,A.x,o)):(f&&(e.m(p,i.left-s/2,x.y),p++),e.m(p,i.left-s/2,o),p++,e.m(p,i.left-s+r.x+(f?l/2:l),o),p++,f&&e.m(p,e.i(p-1).x,A.y))):o===270?(n.alignment===Wc?(o=i.right+r.x,r.x===0&&x.x>L.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<L.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-s),p++,e.m(p,o,i.top-s+(r.y+l)/3),p++,e.m(p,o,i.top-s+2*(r.y+l)/3),p++,e.m(p,o,i.top-s+(r.y+l)),p++,e.m(p,o,A.y)):(f&&(e.m(p,x.x,i.top-s/2),p++),e.m(p,o,i.top-s/2),p++,e.m(p,o,i.top-s+r.y+(f?l/2:l)),p++,f&&e.m(p,A.x,e.i(p-1).y))):pt("Invalid angle "+o),e.zf()}else r=i,e=this.link,i=this.network.layout,t=lc(n),t!==lc(r)&&(s=i.computeLayerSpacing(n),l=n.bounds,n=r.bounds,t===0&&n.left-l.right<s+1||t===90&&n.top-l.bottom<s+1||t===180&&l.left-n.right<s+1||t===270&&l.top-n.bottom<s+1||(e.vg(),n=e.curve===bu,r=e.isOrthogonal,i=td(this.fromVertex.alignment),e.uh(),t===0?(t=l.right+s/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+s/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-s/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-s/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",xo.prototype.initializeStandardTools=function(){this.gb("Action",new et,this.mouseDownTools),this.gb("Relinking",new Jn,this.mouseDownTools),this.gb("LinkReshaping",new ai,this.mouseDownTools),this.gb("Rotating",new Ee,this.mouseDownTools),this.gb("Resizing",new he,this.mouseDownTools),this.gb("Linking",new Bn,this.mouseMoveTools),this.gb("Dragging",new To,this.mouseMoveTools),this.gb("DragSelecting",new At,this.mouseMoveTools),this.gb("Panning",new ct,this.mouseMoveTools),this.gb("ContextMenu",new Rt,this.mouseUpTools),this.gb("TextEditing",new Zi,this.mouseUpTools),this.gb("ClickCreating",new Ft,this.mouseUpTools),this.gb("ClickSelecting",new $e,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",ga),pf.add("TreeModel",Du);var Qm=Ge.go,Yv={get licenseKey(){return Z.licenseKey},set licenseKey(e){Z.licenseKey=e},get version(){return Z.version},Group:er,EnumValue:Kt,List:Zt,Set:Wt,Map:qn,Point:ce,Size:mi,Rect:Ht,Margin:pi,Spot:oi,Geometry:kn,PathFigure:Cs,PathSegment:Nr,InputEvent:ta,DiagramEvent:cu,ChangedEvent:Do,Model:hi,GraphLinksModel:Rr,TreeModel:Nl,Binding:$s,Transaction:bs,UndoManager:Po,CommandHandler:ve,Tool:wr,DraggingTool:To,DraggingInfo:Qc,DraggingOptions:c,LinkingBaseTool:Nt,LinkingTool:Bn,RelinkingTool:Jn,LinkReshapingTool:ai,ResizingTool:he,RotatingTool:Ee,ClickSelectingTool:$e,ActionTool:et,ClickCreatingTool:Ft,HTMLInfo:$t,ContextMenuTool:Rt,DragSelectingTool:At,PanningTool:ct,TextEditingTool:Zi,ToolManager:xo,Animation:Gr,AnimationManager:co,AnimationTrigger:pa,Layer:m,Diagram:Z,Palette:y,Overview:w,Brush:no,GraphObject:it,Panel:xn,RowColumnDefinition:Xs,Shape:ar,TextBlock:Lo,Picture:Hl,Part:Ei,Adornment:Wr,Node:Wn,Link:In,Placeholder:El,Layout:Vo,LayoutNetwork:Ro,LayoutVertex:ia,LayoutEdge:iu,GridLayout:Ia,PanelLayout:na,CircularLayout:us,CircularNetwork:Uf,CircularVertex:Kp,CircularEdge:Om,ForceDirectedLayout:Ua,ForceDirectedNetwork:Zd,ForceDirectedVertex:Yp,ForceDirectedEdge:Zp,LayeredDigraphLayout:lo,LayeredDigraphNetwork:$f,LayeredDigraphVertex:Fu,LayeredDigraphEdge:Jp,TreeLayout:xr,TreeNetwork:qd,TreeVertex:Gu,TreeEdge:Wf};typeof Qm=="object"&&Qm.version&&xi("WARNING: a `go` object on the root object is already defined. "+("Debug"in Qm?"debug ":"")+"version: "+Qm.version+", replaced with version: "+Yv.version),Z.prototype.go=Yv,Ge.go=Yv,typeof Q.exports=="object"&&(Q.exports=typeof d.g!="undefined"?d.g.go:self.go)}();var b=typeof d.g!="undefined"?d.g.go:self.go;const I=typeof d.g!="undefined"?d.g.go:self.go,O=I.Group,z=I.EnumValue,W=I.List,_=I.Set,M=I.Map,pe=I.Point,ue=I.Size,ne=I.Rect,Pe=I.Margin,ke=I.Spot,rt=I.Geometry,Ue=I.PathFigure,Ie=I.PathSegment,De=I.InputEvent,Fe=I.DiagramEvent,de=I.ChangedEvent,me=I.Model,we=I.GraphLinksModel,ge=I.TreeModel,Te=I.Binding,ee=I.Transaction,Ce=I.UndoManager,Ne=I.CommandHandler,Le=I.Tool,Ke=I.DraggingTool,nt=I.DraggingInfo,ie=I.LinkingBaseTool,at=I.LinkingTool,Ze=I.RelinkingTool,Bt=I.LinkReshapingTool,bt=I.ResizingTool,kt=I.RotatingTool,Tt=I.ClickSelectingTool,wn=I.ActionTool,Xe=I.ClickCreatingTool,se=I.HTMLInfo,le=I.ContextMenuTool,_t=I.DragSelectingTool,jt=I.PanningTool,yt=I.TextEditingTool,ln=I.ToolManager,Dt=I.Animation,ui=I.AnimationManager,On=I.AnimationTrigger,ri=I.Layer,Xn=I.Diagram,Tn=I.Palette,Nn=I.Overview,xe=I.Brush,P=I.GraphObject,k=I.Panel,j=I.RowColumnDefinition,X=I.Shape,N=I.TextBlock,Re=I.TextBlockMetrics,wt=I.Picture,ze=I.Part,Oe=I.Adornment,mt=I.Node,lt=I.Link,Qe=I.Placeholder,Ct=I.Layout,nn=I.LayoutNetwork,Yt=I.LayoutVertex,Ot=I.LayoutEdge,on=I.GridLayout,hn=I.PanelLayout,Ve=I.CircularLayout,Pt=I.CircularNetwork,Xt=I.CircularVertex,qt=I.CircularEdge,He=I.ForceDirectedLayout,Rn=I.ForceDirectedNetwork,Cn=I.ForceDirectedVertex,Gn=I.ForceDirectedEdge,Ci=I.LayeredDigraphLayout,ci=I.LayeredDigraphNetwork,sn=I.LayeredDigraphVertex,rn=I.LayeredDigraphEdge,cr=I.TreeLayout,yr=I.TreeNetwork,Zn=I.TreeVertex,Mr=I.TreeEdge,rr=I.version},46963:function(Q){"use strict";Q.exports=d;var C=/[#.]/g;function d(b,I){for(var O=b||"",z=I||"div",W={},_=0,M,pe,ue;_<O.length;)C.lastIndex=_,ue=C.exec(O),M=O.slice(_,ue?ue.index:O.length),M&&(pe?pe==="#"?W.id=M:W.className?W.className.push(M):W.className=[M]:z=M,_+=M.length),ue&&(pe=ue[0],_++);return{type:"element",tagName:z,properties:W,children:[]}}},5641:function(Q,C,d){"use strict";var b=d(88914),I=d(47178),O=d(46963),z=d(49063).Q,W=d(58951).Q;Q.exports=M;var _={}.hasOwnProperty;function M(Ie,De,Fe){var de=Fe?Ue(Fe):null;return me;function me(ge,Te){var ee=O(ge,De),Ce=Array.prototype.slice.call(arguments,2),Ne=ee.tagName.toLowerCase(),Le;if(ee.tagName=de&&_.call(de,Ne)?de[Ne]:Ne,Te&&pe(Te,ee)&&(Ce.unshift(Te),Te=null),Te)for(Le in Te)we(ee.properties,Le,Te[Le]);return ne(ee.children,Ce),ee.tagName==="template"&&(ee.content={type:"root",children:ee.children},ee.children=[]),ee}function we(ge,Te,ee){var Ce,Ne,Le;ee==null||ee!==ee||(Ce=b(Ie,Te),Ne=Ce.property,Le=ee,typeof Le=="string"&&(Ce.spaceSeparated?Le=z(Le):Ce.commaSeparated?Le=W(Le):Ce.commaOrSpaceSeparated&&(Le=z(W(Le).join(" ")))),Ne==="style"&&typeof ee!="string"&&(Le=rt(Le)),Ne==="className"&&ge.className&&(Le=ge.className.concat(Le)),ge[Ne]=Pe(Ce,Ne,Le))}}function pe(Ie,De){return typeof Ie=="string"||"length"in Ie||ue(De.tagName,Ie)}function ue(Ie,De){var Fe=De.type;return Ie==="input"||!Fe||typeof Fe!="string"?!1:typeof De.children=="object"&&"length"in De.children?!0:(Fe=Fe.toLowerCase(),Ie==="button"?Fe!=="menu"&&Fe!=="submit"&&Fe!=="reset"&&Fe!=="button":"value"in De)}function ne(Ie,De){var Fe,de;if(typeof De=="string"||typeof De=="number"){Ie.push({type:"text",value:String(De)});return}if(typeof De=="object"&&"length"in De){for(Fe=-1,de=De.length;++Fe<de;)ne(Ie,De[Fe]);return}if(typeof De!="object"||!("type"in De))throw new Error("Expected node, nodes, or string, got `"+De+"`");Ie.push(De)}function Pe(Ie,De,Fe){var de,me,we;if(typeof Fe!="object"||!("length"in Fe))return ke(Ie,De,Fe);for(me=Fe.length,de=-1,we=[];++de<me;)we[de]=ke(Ie,De,Fe[de]);return we}function ke(Ie,De,Fe){var de=Fe;return Ie.number||Ie.positiveNumber?!isNaN(de)&&de!==""&&(de=Number(de)):(Ie.boolean||Ie.overloadedBoolean)&&typeof de=="string"&&(de===""||I(Fe)===I(De))&&(de=!0),de}function rt(Ie){var De=[],Fe;for(Fe in Ie)De.push([Fe,Ie[Fe]].join(": "));return De.join("; ")}function Ue(Ie){for(var De=Ie.length,Fe=-1,de={},me;++Fe<De;)me=Ie[Fe],de[me.toLowerCase()]=me;return de}},82073:function(Q,C,d){"use strict";var b=d(18795),I=d(5641),O=I(b,"div");O.displayName="html",Q.exports=O},43621:function(Q,C,d){"use strict";Q.exports=d(82073)},93193:function(Q){var C=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,d=/\n/g,b=/^\s*/,I=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,O=/^:\s*/,z=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,W=/^[;\s]*/,_=/^\s+|\s+$/g,M=`
|
|
|
`,pe="/",ue="*",ne="",Pe="comment",ke="declaration";Q.exports=function(Ue,Ie){if(typeof Ue!="string")throw new TypeError("First argument must be a string");if(!Ue)return[];Ie=Ie||{};var De=1,Fe=1;function de(ie){var at=ie.match(d);at&&(De+=at.length);var Ze=ie.lastIndexOf(M);Fe=~Ze?ie.length-Ze:Fe+ie.length}function me(){var ie={line:De,column:Fe};return function(at){return at.position=new we(ie),Ce(),at}}function we(ie){this.start=ie,this.end={line:De,column:Fe},this.source=Ie.source}we.prototype.content=Ue;var ge=[];function Te(ie){var at=new Error(Ie.source+":"+De+":"+Fe+": "+ie);if(at.reason=ie,at.filename=Ie.source,at.line=De,at.column=Fe,at.source=Ue,Ie.silent)ge.push(at);else throw at}function ee(ie){var at=ie.exec(Ue);if(at){var Ze=at[0];return de(Ze),Ue=Ue.slice(Ze.length),at}}function Ce(){ee(b)}function Ne(ie){var at;for(ie=ie||[];at=Le();)at!==!1&&ie.push(at);return ie}function Le(){var ie=me();if(!(pe!=Ue.charAt(0)||ue!=Ue.charAt(1))){for(var at=2;ne!=Ue.charAt(at)&&(ue!=Ue.charAt(at)||pe!=Ue.charAt(at+1));)++at;if(at+=2,ne===Ue.charAt(at-1))return Te("End of comment missing");var Ze=Ue.slice(2,at-2);return Fe+=2,de(Ze),Ue=Ue.slice(at),Fe+=2,ie({type:Pe,comment:Ze})}}function Ke(){var ie=me(),at=ee(I);if(at){if(Le(),!ee(O))return Te("property missing ':'");var Ze=ee(z),Bt=ie({type:ke,property:rt(at[0].replace(C,ne)),value:Ze?rt(Ze[0].replace(C,ne)):ne});return ee(W),Bt}}function nt(){var ie=[];Ne(ie);for(var at;at=Ke();)at!==!1&&(ie.push(at),Ne(ie));return ie}return Ce(),nt()};function rt(Ue){return Ue?Ue.replace(_,ne):ne}},91241:function(Q){"use strict";Q.exports=C;function C(d){var b=typeof d=="string"?d.charCodeAt(0):d;return b>=97&&b<=122||b>=65&&b<=90}},21127:function(Q,C,d){"use strict";var b=d(91241),I=d(22347);Q.exports=O;function O(z){return b(z)||I(z)}},22347:function(Q){"use strict";Q.exports=C;function C(d){var b=typeof d=="string"?d.charCodeAt(0):d;return b>=48&&b<=57}},65207:function(Q){"use strict";Q.exports=C;function C(d){var b=typeof d=="string"?d.charCodeAt(0):d;return b>=97&&b<=102||b>=65&&b<=70||b>=48&&b<=57}},2859:function(Q,C,d){"use strict";d.d(C,{hP:function(){return Nn}});var b=function(xe,P){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,j){k.__proto__=j}||function(k,j){for(var X in j)Object.prototype.hasOwnProperty.call(j,X)&&(k[X]=j[X])})(xe,P)};function I(xe,P){function k(){this.constructor=xe}b(xe,P),xe.prototype=P===null?Object.create(P):(k.prototype=P.prototype,new k)}function O(xe,P,k,j){return new(k||(k=Promise))(function(X,N){function Re(Oe){try{ze(j.next(Oe))}catch(mt){N(mt)}}function wt(Oe){try{ze(j.throw(Oe))}catch(mt){N(mt)}}function ze(Oe){var mt;Oe.done?X(Oe.value):(mt=Oe.value,mt instanceof k?mt:new k(function(lt){lt(mt)})).then(Re,wt)}ze((j=j.apply(xe,P||[])).next())})}function z(xe,P){var k,j,X,N,Re={label:0,sent:function(){if(1&X[0])throw X[1];return X[1]},trys:[],ops:[]};return N={next:wt(0),throw:wt(1),return:wt(2)},typeof Symbol=="function"&&(N[Symbol.iterator]=function(){return this}),N;function wt(ze){return function(Oe){return function(mt){if(k)throw new TypeError("Generator is already executing.");for(;Re;)try{if(k=1,j&&(X=2&mt[0]?j.return:mt[0]?j.throw||((X=j.return)&&X.call(j),0):j.next)&&!(X=X.call(j,mt[1])).done)return X;switch(j=0,X&&(mt=[2&mt[0],X.value]),mt[0]){case 0:case 1:X=mt;break;case 4:return Re.label++,{value:mt[1],done:!1};case 5:Re.label++,j=mt[1],mt=[0];continue;case 7:mt=Re.ops.pop(),Re.trys.pop();continue;default:if(X=Re.trys,!((X=X.length>0&&X[X.length-1])||mt[0]!==6&&mt[0]!==2)){Re=0;continue}if(mt[0]===3&&(!X||mt[1]>X[0]&&mt[1]<X[3])){Re.label=mt[1];break}if(mt[0]===6&&Re.label<X[1]){Re.label=X[1],X=mt;break}if(X&&Re.label<X[2]){Re.label=X[2],Re.ops.push(mt);break}X[2]&&Re.ops.pop(),Re.trys.pop();continue}mt=P.call(xe,Re)}catch(lt){mt=[6,lt],j=0}finally{k=X=0}if(5&mt[0])throw mt[1];return{value:mt[0]?mt[1]:void 0,done:!0}}([ze,Oe])}}}function W(){for(var xe=0,P=0,k=arguments.length;P<k;P++)xe+=arguments[P].length;var j=Array(xe),X=0;for(P=0;P<k;P++)for(var N=arguments[P],Re=0,wt=N.length;Re<wt;Re++,X++)j[X]=N[Re];return j}var _=function(){function xe(){}return xe.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},xe.setAttributes=function(P,k){for(var j=0,X=k;j<X.length;j++){var N=X[j],Re=N[0],wt=N[1];P.setAttribute(Re,wt)}},xe.createRect=function(P,k,j){var X=document.createElementNS("http://www.w3.org/2000/svg","rect");return X.setAttribute("width",P.toString()),X.setAttribute("height",k.toString()),j&&xe.setAttributes(X,j),X},xe.createLine=function(P,k,j,X,N){var Re=document.createElementNS("http://www.w3.org/2000/svg","line");return Re.setAttribute("x1",P.toString()),Re.setAttribute("y1",k.toString()),Re.setAttribute("x2",j.toString()),Re.setAttribute("y2",X.toString()),N&&xe.setAttributes(Re,N),Re},xe.createPolygon=function(P,k){var j=document.createElementNS("http://www.w3.org/2000/svg","polygon");return j.setAttribute("points",P),k&&xe.setAttributes(j,k),j},xe.createCircle=function(P,k){var j=document.createElementNS("http://www.w3.org/2000/svg","circle");return j.setAttribute("cx",(P/2).toString()),j.setAttribute("cy",(P/2).toString()),j.setAttribute("r",P.toString()),k&&xe.setAttributes(j,k),j},xe.createEllipse=function(P,k,j){var X=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return X.setAttribute("cx",(P/2).toString()),X.setAttribute("cy",(k/2).toString()),X.setAttribute("rx",(P/2).toString()),X.setAttribute("ry",(k/2).toString()),j&&xe.setAttributes(X,j),X},xe.createGroup=function(P){var k=document.createElementNS("http://www.w3.org/2000/svg","g");return P&&xe.setAttributes(k,P),k},xe.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},xe.createMarker=function(P,k,j,X,N,Re,wt){var ze=document.createElementNS("http://www.w3.org/2000/svg","marker");return xe.setAttributes(ze,[["id",P],["orient",k],["markerWidth",j.toString()],["markerHeight",X.toString()],["refX",N.toString()],["refY",Re.toString()]]),ze.appendChild(wt),ze},xe.createText=function(P){var k=document.createElementNS("http://www.w3.org/2000/svg","text");return k.setAttribute("x","0"),k.setAttribute("y","0"),P&&xe.setAttributes(k,P),k},xe.createTSpan=function(P,k){var j=document.createElementNS("http://www.w3.org/2000/svg","tspan");return j.textContent=P,k&&xe.setAttributes(j,k),j},xe.createImage=function(P){var k=document.createElementNS("http://www.w3.org/2000/svg","image");return P&&xe.setAttributes(k,P),k},xe.createPoint=function(P,k){var j=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return j.x=P,j.y=k,j},xe.createPath=function(P,k){var j=document.createElementNS("http://www.w3.org/2000/svg","path");return j.setAttribute("d",P),k&&xe.setAttributes(j,k),j},xe}(),M=function(){function xe(){}return xe.addKey=function(P){xe.key=P},Object.defineProperty(xe,"isLicensed",{get:function(){return!!xe.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(xe.key)},enumerable:!1,configurable:!0}),xe}(),pe=function(){function xe(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return xe.prototype.rasterize=function(P,k,j){var X=this;return new Promise(function(N){var Re=j!==void 0?j:document.createElement("canvas");P===null&&(X.markersOnly=!0,X.naturalSize=!1);var wt=document.createElementNS("http://www.w3.org/2000/svg","svg");wt.setAttribute("xmlns","http://www.w3.org/2000/svg"),wt.setAttribute("width",k.width.baseVal.valueAsString),wt.setAttribute("height",k.height.baseVal.valueAsString),wt.setAttribute("viewBox","0 0 "+k.viewBox.baseVal.width.toString()+" "+k.viewBox.baseVal.height.toString()),wt.innerHTML=k.innerHTML,X.naturalSize===!0?(wt.width.baseVal.value=P.naturalWidth,wt.height.baseVal.value=P.naturalHeight):X.width!==void 0&&X.height!==void 0&&(wt.width.baseVal.value=X.width,wt.height.baseVal.value=X.height),Re.width=wt.width.baseVal.value,Re.height=wt.height.baseVal.value;var ze=wt.outerHTML,Oe=Re.getContext("2d");X.markersOnly!==!0&&Oe.drawImage(P,0,0,Re.width,Re.height);var mt=window.URL,lt=new Image(Re.width,Re.height);lt.setAttribute("crossOrigin","anonymous");var Qe=new Blob([ze],{type:"image/svg+xml"}),Ct=mt.createObjectURL(Qe);lt.onload=function(){Oe.drawImage(lt,0,0),mt.revokeObjectURL(Ct);var nn=Re.toDataURL(X.imageType,X.imageQuality);N(nn)},lt.src=Ct})},xe}(),ue=function(){},ne=function(){function xe(P){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+P+"_"}return Object.defineProperty(xe.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(xe.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(xe.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),xe.prototype.addClass=function(P){return this.styleSheet===void 0&&this.addStyleSheet(),P.name=""+this.classNamePrefix+P.localName,this.classes.push(P),this.styleSheet.sheet.insertRule("."+P.name+" {"+P.style+"}",this.styleSheet.sheet.cssRules.length),P},xe.prototype.addRule=function(P){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(P),this.styleSheet.sheet.insertRule(P.selector+" {"+P.style+"}",this.styleSheet.sheet.cssRules.length)},xe.prototype.addStyleSheet=function(){var P;this.styleSheet=document.createElement("style"),((P=this.styleSheetRoot)!==null&&P!==void 0?P:document.head).appendChild(this.styleSheet),this.addRule(new Pe("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Pe("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new Pe("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new ke("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new ke("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},xe.prototype.removeStyleSheet=function(){var P;this.styleSheet&&(((P=this.styleSheetRoot)!==null&&P!==void 0?P:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},xe}(),Pe=function(xe,P){this.selector=xe,this.style=P},ke=function(xe,P){this.localName=xe,this.style=P},rt=function(){function xe(P,k,j,X,N){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=P,this.displayMode=k,this.markerItems=j,this.uiStyleSettings=X,this.styles=N,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return xe.prototype.show=function(P){var k=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=P,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(N){var Re=document.createElement("div");Re.className=""+k.toolbarButtonStyleClass.name,Re.setAttribute("data-type-name",N.typeName),Re.innerHTML=N.icon,Re.addEventListener("click",function(){k.markerToolbarButtonClicked(Re,N)}),k.buttons.push(Re),k.markerButtons.push(Re)}),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 X=document.createElement("div");X.className=this.toolbarBlockStyleClass.name,X.style.whiteSpace="nowrap",X.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(X),this.addActionButton(X,'<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(X,'<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()},xe.prototype.addButtonClickListener=function(P){this.buttonClickListeners.push(P)},xe.prototype.removeButtonClickListener=function(P){this.buttonClickListeners.indexOf(P)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(P),1)},xe.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},xe.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var P=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<P||k===P&&this.markerButtons.length-1===P?this.markerButtonBlock.appendChild(this.markerButtons[k]):(k===P&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[k]))}},xe.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")},xe.prototype.resetButtonStyles=function(){var P=this;this.buttons.forEach(function(k){k.className=k.className.replace(P.uiStyleSettings.toolbarButtonStyleColorsClassName?P.uiStyleSettings.toolbarButtonStyleColorsClassName:P.toolbarButtonStyleColorsClass.name,"").trim(),k.className=k.className.replace(P.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?P.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:P.toolbarActiveButtonStyleColorsClass.name,"").trim(),k.className+=" "+(P.uiStyleSettings.toolbarButtonStyleColorsClassName?P.uiStyleSettings.toolbarButtonStyleColorsClassName:P.toolbarButtonStyleColorsClass.name)})},xe.prototype.addActionButton=function(P,k,j){var X=this,N=document.createElement("div");switch(N.className=""+this.toolbarButtonStyleClass.name,N.innerHTML=k,N.setAttribute("data-action",j),N.addEventListener("click",function(){X.actionToolbarButtonClicked(N,j)}),j){case"select":N.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":N.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":N.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":N.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":N.style.fill=this.uiStyleSettings.closeButtonColor}P.appendChild(N),this.buttons.push(N)},xe.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ke("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 ke("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new ke("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new ke("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 ke("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var P=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new ke("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*P)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*P)+`px;
|
|
|
padding: `+P+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new ke("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new ke("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new Pe("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new Pe("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},xe.prototype.markerToolbarButtonClicked=function(P,k){this.setActiveButton(P),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(j){return j("marker",k)}),this.markerButtonOverflowBlock.style.display="none"},xe.prototype.actionToolbarButtonClicked=function(P,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])},xe.prototype.setActiveButton=function(P){this.resetButtonStyles(),P.className=P.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),P.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},xe.prototype.setActiveMarkerButton=function(P){var k=this.markerButtons.find(function(j){return j.getAttribute("data-type-name")===P});k&&this.setActiveButton(k)},xe.prototype.setCurrentMarker=function(P){var k=this;this.currentMarker=P,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")})},xe}(),Ue=function(){function xe(P,k,j,X){this.panels=[],this.panelButtons=[],this.markerjsContainer=P,this.displayMode=k,this.uiStyleSettings=j,this.styles=X,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return xe.prototype.addStyles=function(){var P;this.toolboxStyleClass=this.styles.addClass(new ke("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 ke("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var k=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new ke("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new ke("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new ke("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 ke("toolbox-panel-row_colors",`
|
|
|
background-color: `+((P=this.uiStyleSettings.toolboxBackgroundColor)!==null&&P!==void 0?P:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new ke("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 ke("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new ke("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new Pe("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new Pe("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},xe.prototype.show=function(P){var k;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=P,this.uiContainer.className=this.toolboxStyleClass.name+" "+((k=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&k!==void 0?k:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},xe.prototype.setPanelButtons=function(P){var k,j,X=this;this.panels=P,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(N){var Re;N.uiStyleSettings=X.uiStyleSettings;var wt=document.createElement("div");wt.className=X.toolboxButtonStyleClass.name+" "+((Re=X.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Re!==void 0?Re:X.toolboxButtonStyleColorsClass.name),wt.innerHTML=N.icon,wt.title=N.title,wt.addEventListener("click",function(){X.panelButtonClick(N)}),X.panelButtons.push(wt),X.buttonRow.appendChild(wt)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},xe.prototype.panelButtonClick=function(P){var k=this,j=-1;if(P!==this.activePanel){j=this.panels.indexOf(P),this.panelRow.innerHTML="";var X=P.getUi();X.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(X),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=P}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(N,Re){var wt,ze;N.className=k.toolboxButtonStyleClass.name+" "+(Re===j?""+((wt=k.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&wt!==void 0?wt:k.toolboxActiveButtonStyleColorsClass.name):""+((ze=k.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ze!==void 0?ze:k.toolboxButtonStyleColorsClass.name))})},xe}(),Ie=function(xe,P){this.title=xe,this.icon=P},De=function(xe){function P(k,j,X,N){var Re=xe.call(this,k,N||'<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 Re.colors=[],Re.addTransparent=!1,Re.colorBoxes=[],Re.colors=j,Re.currentColor=X,Re.setCurrentColor=Re.setCurrentColor.bind(Re),Re.getColorBox=Re.getColorBox.bind(Re),Re}return I(P,xe),P.prototype.getUi=function(){var k=this,j=document.createElement("div");return j.style.overflow="hidden",j.style.whiteSpace="nowrap",this.colors.forEach(function(X){var N=k.getColorBox(X);j.appendChild(N),k.colorBoxes.push(N)}),j},P.prototype.getColorBox=function(k){var j=this,X=this.uiStyleSettings.toolbarHeight/4,N=this.uiStyleSettings.toolbarHeight-X,Re=document.createElement("div");Re.style.display="inline-block",Re.style.boxSizing="content-box",Re.style.width=N-2+"px",Re.style.height=N-2+"px",Re.style.padding="1px",Re.style.marginRight="2px",Re.style.marginBottom="2px",Re.style.borderWidth="2px",Re.style.borderStyle="solid",Re.style.borderRadius=(N+2)/2+"px",Re.style.borderColor=k===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Re.addEventListener("click",function(){j.setCurrentColor(k,Re)});var wt=document.createElement("div");return wt.style.display="inline-block",wt.style.width=N-2+"px",wt.style.height=N-2+"px",wt.style.backgroundColor=k,wt.style.borderRadius=N/2+"px",k==="transparent"&&(wt.style.fill=this.uiStyleSettings.toolboxAccentColor,wt.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>`),Re.appendChild(wt),Re},P.prototype.setCurrentColor=function(k,j){var X=this;this.currentColor=k,this.colorBoxes.forEach(function(N){N.style.borderColor=N===j?X.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(k)},P}(Ie),Fe=function(){function xe(P,k,j){this._state="new",this._isSelected=!1,this._container=P,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(xe.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),xe.prototype.ownsTarget=function(P){return!1},Object.defineProperty(xe.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),xe.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},xe.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},xe.prototype.pointerDown=function(P,k){},xe.prototype.dblClick=function(P,k){},xe.prototype.manipulate=function(P){},xe.prototype.pointerUp=function(P){this.stateChanged()},xe.prototype.dispose=function(){},xe.prototype.addMarkerVisualToContainer=function(P){this.container.childNodes.length>0?this.container.insertBefore(P,this.container.childNodes[0]):this.container.appendChild(P)},xe.prototype.getState=function(){return{typeName:xe.typeName,state:this.state,notes:this.notes}},xe.prototype.restoreState=function(P){this._state=P.state,this.notes=P.notes},xe.prototype.scale=function(P,k){},xe.prototype.colorChanged=function(P){this.onColorChanged&&this.onColorChanged(P),this.stateChanged()},xe.prototype.fillColorChanged=function(P){this.onFillColorChanged&&this.onFillColorChanged(P),this.stateChanged()},xe.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var P=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),P.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(P)&&this.onStateChanged(this)}},xe.typeName="MarkerBase",xe}(),de=function(){function xe(){this.findGripByVisual=this.findGripByVisual.bind(this)}return xe.prototype.findGripByVisual=function(P){return this.topLeft.ownsTarget(P)?this.topLeft:this.topCenter.ownsTarget(P)?this.topCenter:this.topRight.ownsTarget(P)?this.topRight:this.centerLeft.ownsTarget(P)?this.centerLeft:this.centerRight.ownsTarget(P)?this.centerRight:this.bottomLeft.ownsTarget(P)?this.bottomLeft:this.bottomCenter.ownsTarget(P)?this.bottomCenter:this.bottomRight.ownsTarget(P)?this.bottomRight:void 0},xe}(),me=function(){function xe(){this.GRIP_SIZE=10,this.visual=_.createGroup(),this.visual.appendChild(_.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(_.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return xe.prototype.ownsTarget=function(P){return P===this.visual||P===this.visual.childNodes[0]||P===this.visual.childNodes[1]},xe}(),we=function(){function xe(){}return xe.toITransformMatrix=function(P){return{a:P.a,b:P.b,c:P.c,d:P.d,e:P.e,f:P.f}},xe.toSVGMatrix=function(P,k){return P.a=k.a,P.b=k.b,P.c=k.c,P.d=k.d,P.e=k.e,P.f=k.f,P},xe}(),ge=function(xe){function P(k,j,X){var N=xe.call(this,k,j,X)||this;return N.left=0,N.top=0,N.width=0,N.height=0,N.defaultSize={x:50,y:20},N.offsetX=0,N.offsetY=0,N.rotationAngle=0,N.CB_DISTANCE=10,N._suppressMarkerCreateEvent=!1,N.container.transform.baseVal.appendItem(_.createTransform()),N.setupControlBox(),N}return I(P,xe),Object.defineProperty(P.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"visual",{get:function(){return this._visual},set:function(k){this._visual=k;var j=_.createTransform();this._visual.transform.baseVal.appendItem(j)},enumerable:!1,configurable:!0}),P.prototype.ownsTarget=function(k){return!!xe.prototype.ownsTarget.call(this,k)||!!(this.controlGrips.findGripByVisual(k)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(k))},P.prototype.pointerDown=function(k,j){xe.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 X=this.unrotatePoint(k);if(this.manipulationStartX=X.x,this.manipulationStartY=X.y,this.offsetX=X.x-this.left,this.offsetY=X.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 N=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=N.x-this.width/2,this.top=N.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Re=this.container.transform.baseVal.getItem(0);Re.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Re,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},P.prototype.pointerUp=function(k){var j=this.state;xe.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)},P.prototype.moveVisual=function(k){this.visual.style.transform="translate("+k.x+"px, "+k.y+"px)"},P.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)},P.prototype.resize=function(k){var j=this.manipulationStartLeft,X=this.manipulationStartWidth,N=this.manipulationStartTop,Re=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:j=this.manipulationStartLeft+k.x-this.manipulationStartX,X=this.manipulationStartWidth+this.manipulationStartLeft-j;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:X=this.manipulationStartWidth+k.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:N=this.manipulationStartTop+k.y-this.manipulationStartY,Re=this.manipulationStartHeight+this.manipulationStartTop-N;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Re=this.manipulationStartHeight+k.y-this.manipulationStartY}X>=0?(this.left=j,this.width=X):(this.left=j+X,this.width=-X),Re>=0?(this.top=N,this.height=Re):(this.top=N+Re,this.height=-Re),this.setSize()},P.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},P.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()}},P.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)},P.prototype.rotatePoint=function(k){if(this.rotationAngle===0)return k;var j=this.container.getCTM(),X=_.createPoint(k.x,k.y);return{x:(X=X.matrixTransform(j)).x,y:X.y}},P.prototype.unrotatePoint=function(k){if(this.rotationAngle===0)return k;var j=this.container.getCTM();j=j.inverse();var X=_.createPoint(k.x,k.y);return{x:(X=X.matrixTransform(j)).x,y:X.y}},P.prototype.select=function(){xe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},P.prototype.deselect=function(){xe.prototype.deselect.call(this),this.controlBox.style.display="none"},P.prototype.setupControlBox=function(){this.controlBox=_.createGroup();var k=_.createTransform();k.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(k),this.container.appendChild(this.controlBox),this.controlRect=_.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=_.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 de,this.addControlGrips(),this.controlBox.style.display="none"},P.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()},P.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()},P.prototype.createGrip=function(){var k=new me;return k.visual.transform.baseVal.appendItem(_.createTransform()),this.controlBox.appendChild(k.visual),k},P.prototype.positionGrips=function(){var k=this.controlGrips.topLeft.GRIP_SIZE,j=-k/2,X=j,N=(this.width+this.CB_DISTANCE)/2-k/2,Re=(this.height+this.CB_DISTANCE)/2-k/2,wt=this.height+this.CB_DISTANCE-k/2,ze=this.width+this.CB_DISTANCE-k/2;this.positionGrip(this.controlGrips.topLeft.visual,j,X),this.positionGrip(this.controlGrips.topCenter.visual,N,X),this.positionGrip(this.controlGrips.topRight.visual,ze,X),this.positionGrip(this.controlGrips.centerLeft.visual,j,Re),this.positionGrip(this.controlGrips.centerRight.visual,ze,Re),this.positionGrip(this.controlGrips.bottomLeft.visual,j,wt),this.positionGrip(this.controlGrips.bottomCenter.visual,N,wt),this.positionGrip(this.controlGrips.bottomRight.visual,ze,wt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,N,X-3*this.CB_DISTANCE)},P.prototype.positionGrip=function(k,j,X){var N=k.transform.baseVal.getItem(0);N.setTranslate(j,X),k.transform.baseVal.replaceItem(N,0)},P.prototype.hideControlBox=function(){this.controlBox.style.display="none"},P.prototype.showControlBox=function(){this.controlBox.style.display=""},P.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:we.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:we.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},xe.prototype.getState.call(this))},P.prototype.restoreState=function(k){xe.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(we.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,j.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(we.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,j.containerTransformMatrix))},P.prototype.scale=function(k,j){xe.prototype.scale.call(this,k,j);var X=this.rotatePoint({x:this.left,y:this.top}),N=this.unrotatePoint({x:X.x*k,y:X.y*j});this.left=N.x,this.top=N.y,this.width=this.width*k,this.height=this.height*j,this.adjustControlBox()},P}(Fe),Te=function(xe){function P(k,j,X){var N=xe.call(this,k,j,X)||this;return N.fillColor="transparent",N.strokeColor="transparent",N.strokeWidth=0,N.strokeDasharray="",N.opacity=1,N.setStrokeColor=N.setStrokeColor.bind(N),N.setFillColor=N.setFillColor.bind(N),N.setStrokeWidth=N.setStrokeWidth.bind(N),N.setStrokeDasharray=N.setStrokeDasharray.bind(N),N.createVisual=N.createVisual.bind(N),N}return I(P,xe),P.prototype.ownsTarget=function(k){return!(!xe.prototype.ownsTarget.call(this,k)&&k!==this.visual)},P.prototype.createVisual=function(){this.visual=_.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)},P.prototype.pointerDown=function(k,j){xe.prototype.pointerDown.call(this,k,j),this.state==="new"&&(this.createVisual(),this.moveVisual(k),this._state="creating")},P.prototype.manipulate=function(k){xe.prototype.manipulate.call(this,k)},P.prototype.resize=function(k){xe.prototype.resize.call(this,k),this.setSize()},P.prototype.setSize=function(){xe.prototype.setSize.call(this),_.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},P.prototype.pointerUp=function(k){xe.prototype.pointerUp.call(this,k),this.setSize()},P.prototype.setStrokeColor=function(k){this.strokeColor=k,this.visual&&_.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(k),this.stateChanged()},P.prototype.setFillColor=function(k){this.fillColor=k,this.visual&&_.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},P.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.visual&&_.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},P.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.visual&&_.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},P.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},xe.prototype.getState.call(this))},P.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(),xe.prototype.restoreState.call(this,k),this.setSize()},P.prototype.scale=function(k,j){xe.prototype.scale.call(this,k,j),this.setSize()},P.title="Rectangle marker",P}(ge),ee=function(xe){function P(k,j,X,N){var Re=xe.call(this,k,N||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Re.widths=[],Re.widthBoxes=[],Re.widths=j,Re.currentWidth=X,Re.setCurrentWidth=Re.setCurrentWidth.bind(Re),Re}return I(P,xe),P.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(X){var N=document.createElement("div");N.style.display="flex",N.style.flexGrow="2",N.style.alignItems="center",N.style.justifyContent="space-between",N.style.padding="5px",N.style.borderWidth="2px",N.style.borderStyle="solid",N.style.borderColor=X===k.currentWidth?k.uiStyleSettings.toolboxAccentColor:"transparent",N.addEventListener("click",function(){k.setCurrentWidth(X,N)}),j.appendChild(N);var Re=document.createElement("div");Re.innerText=X.toString(),Re.style.marginRight="5px",N.appendChild(Re);var wt=document.createElement("div");wt.style.minHeight="20px",wt.style.flexGrow="2",wt.style.display="flex",wt.style.alignItems="center";var ze=document.createElement("hr");ze.style.minWidth="20px",ze.style.border="0px",ze.style.borderTop=X+"px solid "+k.uiStyleSettings.toolboxColor,ze.style.flexGrow="2",wt.appendChild(ze),N.appendChild(wt),k.widthBoxes.push(N)}),j},P.prototype.setCurrentWidth=function(k,j){var X=this;this.currentWidth=k,this.widthBoxes.forEach(function(N){N.style.borderColor=N===j?X.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},P}(Ie),Ce=function(xe){function P(k,j,X,N){var Re=xe.call(this,k,N||'<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 Re.styles=[],Re.styleBoxes=[],Re.styles=j,Re.currentStyle=X,Re.setCurrentStyle=Re.setCurrentStyle.bind(Re),Re}return I(P,xe),P.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(X){var N=document.createElement("div");N.style.display="flex",N.style.alignItems="center",N.style.justifyContent="space-between",N.style.padding="5px",N.style.borderWidth="2px",N.style.borderStyle="solid",N.style.overflow="hidden",N.style.maxWidth=100/k.styles.length-5+"%",N.style.borderColor=X===k.currentStyle?k.uiStyleSettings.toolboxAccentColor:"transparent",N.addEventListener("click",function(){k.setCurrentStyle(X,N)}),j.appendChild(N);var Re=document.createElement("div");Re.style.minHeight="20px",Re.style.flexGrow="2",Re.style.overflow="hidden";var wt=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+k.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(X!==""?'stroke-dasharray="'+X+'"':"")+` />
|
|
|
</svg>`;Re.innerHTML=wt,N.appendChild(Re),k.styleBoxes.push(N)}),j},P.prototype.setCurrentStyle=function(k,j){var X=this;this.currentStyle=k,this.styleBoxes.forEach(function(N){N.style.borderColor=N===j?X.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},P}(Ie),Ne=function(xe){function P(k,j,X){var N=xe.call(this,k,j,X)||this;return N.strokeColor=X.defaultColor,N.strokeWidth=X.defaultStrokeWidth,N.strokeDasharray=X.defaultStrokeDasharray,N.strokePanel=new De("Line color",X.defaultColorSet,X.defaultColor),N.strokePanel.onColorChanged=N.setStrokeColor,N.strokeWidthPanel=new ee("Line width",X.defaultStrokeWidths,X.defaultStrokeWidth),N.strokeWidthPanel.onWidthChanged=N.setStrokeWidth,N.strokeStylePanel=new Ce("Line style",X.defaultStrokeDasharrays,X.defaultStrokeDasharray),N.strokeStylePanel.onStyleChanged=N.setStrokeDasharray,N}return I(P,xe),Object.defineProperty(P.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),P.prototype.getState=function(){var k=xe.prototype.getState.call(this);return k.typeName=P.typeName,k},P.typeName="FrameMarker",P.title="Frame marker",P.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',P}(Te),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"},Ke=function(xe){function P(k,j,X){var N=xe.call(this,k,j,X)||this;return N.x1=0,N.y1=0,N.x2=0,N.y2=0,N.defaultLength=50,N.manipulationStartX=0,N.manipulationStartY=0,N.manipulationStartX1=0,N.manipulationStartY1=0,N.manipulationStartX2=0,N.manipulationStartY2=0,N.setupControlBox(),N}return I(P,xe),P.prototype.ownsTarget=function(k){return!!xe.prototype.ownsTarget.call(this,k)||!(!this.grip1.ownsTarget(k)&&!this.grip2.ownsTarget(k))},P.prototype.pointerDown=function(k,j){xe.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")},P.prototype.pointerUp=function(k){var j=this.state;xe.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)},P.prototype.adjustVisual=function(){},P.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)},P.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()},P.prototype.select=function(){xe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},P.prototype.deselect=function(){xe.prototype.deselect.call(this),this.controlBox.style.display="none"},P.prototype.setupControlBox=function(){this.controlBox=_.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},P.prototype.adjustControlBox=function(){this.positionGrips()},P.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},P.prototype.createGrip=function(){var k=new me;return k.visual.transform.baseVal.appendItem(_.createTransform()),this.controlBox.appendChild(k.visual),k},P.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)},P.prototype.positionGrip=function(k,j,X){var N=k.transform.baseVal.getItem(0);N.setTranslate(j,X),k.transform.baseVal.replaceItem(N,0)},P.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},xe.prototype.getState.call(this))},P.prototype.restoreState=function(k){xe.prototype.restoreState.call(this,k);var j=k;this.x1=j.x1,this.y1=j.y1,this.x2=j.x2,this.y2=j.y2},P.prototype.scale=function(k,j){xe.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()},P}(Fe),nt=function(xe){function P(k,j,X){var N=xe.call(this,k,j,X)||this;return N.strokeColor="transparent",N.strokeWidth=0,N.strokeDasharray="",N.setStrokeColor=N.setStrokeColor.bind(N),N.setStrokeWidth=N.setStrokeWidth.bind(N),N.setStrokeDasharray=N.setStrokeDasharray.bind(N),N.strokeColor=X.defaultColor,N.strokeWidth=X.defaultStrokeWidth,N.strokeDasharray=X.defaultStrokeDasharray,N.strokePanel=new De("Line color",X.defaultColorSet,X.defaultColor),N.strokePanel.onColorChanged=N.setStrokeColor,N.strokeWidthPanel=new ee("Line width",X.defaultStrokeWidths,X.defaultStrokeWidth),N.strokeWidthPanel.onWidthChanged=N.setStrokeWidth,N.strokeStylePanel=new Ce("Line style",X.defaultStrokeDasharrays,X.defaultStrokeDasharray),N.strokeStylePanel.onStyleChanged=N.setStrokeDasharray,N}return I(P,xe),P.prototype.ownsTarget=function(k){return!(!xe.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.selectorLine&&k!==this.visibleLine)},P.prototype.createVisual=function(){this.visual=_.createGroup(),this.selectorLine=_.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=_.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)},P.prototype.pointerDown=function(k,j){xe.prototype.pointerDown.call(this,k,j),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},P.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()),_.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),_.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),_.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},P.prototype.setStrokeColor=function(k){this.strokeColor=k,this.adjustVisual(),this.colorChanged(k)},P.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.adjustVisual()},P.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.adjustVisual(),this.stateChanged()},Object.defineProperty(P.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),P.prototype.getState=function(){var k=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},xe.prototype.getState.call(this));return k.typeName=P.typeName,k},P.prototype.restoreState=function(k){xe.prototype.restoreState.call(this,k);var j=k;this.strokeColor=j.strokeColor,this.strokeWidth=j.strokeWidth,this.strokeDasharray=j.strokeDasharray,this.createVisual(),this.adjustVisual()},P.typeName="LineMarker",P.title="Line marker",P.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',P}(Ke),ie=function(xe){function P(k,j,X,N){var Re=xe.call(this,k,N||'<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 Re.fonts=[],Re.fontBoxes=[],Re.fonts=j,Re.currentFont=X,Re.setCurrentFont=Re.setCurrentFont.bind(Re),Re}return I(P,xe),P.prototype.getUi=function(){var k=this,j=document.createElement("div");return j.style.overflow="hidden",j.style.flexGrow="2",this.fonts.forEach(function(X){var N=document.createElement("div");N.style.display="inline-block",N.style.alignItems="center",N.style.justifyContent="space-between",N.style.padding="5px",N.style.borderWidth="2px",N.style.borderStyle="solid",N.style.overflow="hidden",N.style.maxWidth=100/k.fonts.length-5+"%",N.style.borderColor=X===k.currentFont?k.uiStyleSettings.toolboxAccentColor:"transparent",N.addEventListener("click",function(){k.setCurrentFont(X,N)}),j.appendChild(N);var Re=document.createElement("div");Re.style.display="flex",Re.style.minHeight="20px",Re.style.flexGrow="2",Re.style.fontFamily=X,Re.style.overflow="hidden";var wt=document.createElement("div");wt.style.whiteSpace="nowrap",wt.style.overflow="hidden",wt.style.textOverflow="ellipsis",wt.innerHTML="The quick brown fox jumps over the lazy dog",Re.appendChild(wt),N.appendChild(Re),k.fontBoxes.push(N)}),j},P.prototype.setCurrentFont=function(k,j){var X=this;this.currentFont=k,this.fontBoxes.forEach(function(N){N.style.borderColor=N===j?X.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},P}(Ie),at=function(xe){function P(k,j,X){var N=xe.call(this,k,j,X)||this;return N.color="transparent",N.padding=5,N.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",N.text=N.DEFAULT_TEXT,N.isMoved=!1,N.color=X.defaultColor,N.fontFamily=X.defaultFontFamily,N.defaultSize={x:100,y:30},N.setColor=N.setColor.bind(N),N.setFont=N.setFont.bind(N),N.renderText=N.renderText.bind(N),N.sizeText=N.sizeText.bind(N),N.textEditDivClicked=N.textEditDivClicked.bind(N),N.showTextEditor=N.showTextEditor.bind(N),N.setSize=N.setSize.bind(N),N.positionTextEditor=N.positionTextEditor.bind(N),N.colorPanel=new De("Color",X.defaultColorSet,X.defaultColor),N.colorPanel.onColorChanged=N.setColor,N.fontFamilyPanel=new ie("Font",X.defaultFontFamilies,X.defaultFontFamily),N.fontFamilyPanel.onFontChanged=N.setFont,N}return I(P,xe),P.prototype.ownsTarget=function(k){if(xe.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(X){X===k&&(j=!0)}),j},P.prototype.createVisual=function(){this.visual=_.createGroup(),this.bgRectangle=_.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=_.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(_.createTransform()),this.textElement.transform.baseVal.appendItem(_.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},P.prototype.pointerDown=function(k,j){xe.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")},P.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(_.createTSpan(j.trim()===""?" ":j.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},P.prototype.getTextScale=function(){var k=this.textElement.getBBox(),j=1;if(k.width>0&&k.height>0){var X=(1*this.width-this.width*this.padding*2/100)/k.width,N=(1*this.height-this.height*this.padding*2/100)/k.height;j=Math.min(X,N)}return j},P.prototype.getTextPosition=function(k){var j=this.textElement.getBBox(),X=0,N=0;return j.width>0&&j.height>0&&(X=(this.width-j.width*k)/2,N=this.height/2-j.height*k/2),{x:X,y:N}},P.prototype.sizeText=function(){var k=this.textElement.getBBox(),j=this.getTextScale(),X=this.getTextPosition(j);X.y-=k.y*j,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+X.x+"px, "+X.y+"px) scale("+j+", "+j+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(X.x,X.y),this.textElement.transform.baseVal.getItem(1).setScale(j,j))},P.prototype.manipulate=function(k){xe.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)},P.prototype.resize=function(k){xe.prototype.resize.call(this,k),this.isMoved=!0,this.setSize(),this.sizeText()},P.prototype.setSize=function(){xe.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(_.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),_.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},P.prototype.pointerUp=function(k){var j=this.state;j==="creating"&&(this._suppressMarkerCreateEvent=!0),xe.prototype.pointerUp.call(this,k),this.setSize(),(j==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},P.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 X=j.clipboardData.getData("text"),N=window.getSelection();if(!N.rangeCount)return!1;N.deleteFromDocument(),N.getRangeAt(0).insertNode(document.createTextNode(X)),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")},P.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}),X=this.textElement.getBBox(),N={x:X.width*k,y:X.height*k};j.x-=N.x/2,j.y-=N.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"}},P.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()},P.prototype.select=function(){xe.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},P.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),xe.prototype.deselect.call(this)},P.prototype.dblClick=function(k,j){xe.prototype.dblClick.call(this,k,j),this.showTextEditor()},P.prototype.setColor=function(k){this.textElement&&_.setAttributes(this.textElement,[["fill",k]]),this.color=k,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(k)},P.prototype.setFont=function(k){this.textElement&&_.setAttributes(this.textElement,[["font-family",k]]),this.fontFamily=k,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},P.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},P.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(P.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),P.prototype.getState=function(){var k=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},xe.prototype.getState.call(this));return k.typeName=P.typeName,k},P.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(),xe.prototype.restoreState.call(this,k),this.setSize()},P.prototype.scale=function(k,j){xe.prototype.scale.call(this,k,j),this.setSize(),this.sizeText(),this.positionTextEditor()},P.typeName="TextMarker",P.title="Text marker",P.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>',P}(ge),Ze=function(xe){function P(k,j,X){var N=xe.call(this,k,j,X)||this;return N.color="transparent",N.lineWidth=3,N.drawing=!1,N.pixelRatio=1,N.color=X.defaultColor,N.lineWidth=X.defaultStrokeWidth,N.pixelRatio=X.freehandPixelRatio,N.setColor=N.setColor.bind(N),N.addCanvas=N.addCanvas.bind(N),N.finishCreation=N.finishCreation.bind(N),N.setLineWidth=N.setLineWidth.bind(N),N.colorPanel=new De("Color",X.defaultColorSet,X.defaultColor),N.colorPanel.onColorChanged=N.setColor,N.lineWidthPanel=new ee("Line width",X.defaultStrokeWidths,X.defaultStrokeWidth),N.lineWidthPanel.onWidthChanged=N.setLineWidth,N}return I(P,xe),P.prototype.ownsTarget=function(k){return!(!xe.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.drawingImage)},P.prototype.createVisual=function(){this.visual=_.createGroup(),this.drawingImage=_.createImage(),this.visual.appendChild(this.drawingImage);var k=_.createTransform();this.visual.transform.baseVal.appendItem(k),this.addMarkerVisualToContainer(this.visual)},P.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):xe.prototype.pointerDown.call(this,k,j)},P.prototype.manipulate=function(k){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(k.x,k.y),this.canvasContext.stroke()):xe.prototype.manipulate.call(this,k)},P.prototype.resize=function(k){xe.prototype.resize.call(this,k),_.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),_.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},P.prototype.pointerUp=function(k){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):xe.prototype.pointerUp.call(this,k)},P.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)},P.prototype.select=function(){this.state==="creating"&&this.finishCreation(),xe.prototype.select.call(this)},P.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),xe.prototype.deselect.call(this)},P.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],X=j[0],N=j[1],Re=j[2],wt=j[3],ze=!1,Oe=0;Oe<this.canvasElement.height;Oe++)for(var mt=0;mt<this.canvasElement.width;mt++)k.data[Oe*this.canvasElement.width*4+4*mt+3]>0&&(ze=!0,Oe<N&&(N=Oe),mt<X&&(X=mt),Oe>wt&&(wt=Oe),mt>Re&&(Re=mt));if(ze){this.left=X/this.pixelRatio,this.top=N/this.pixelRatio,this.width=(Re-X)/this.pixelRatio,this.height=(wt-N)/this.pixelRatio;var lt=document.createElement("canvas");lt.width=Re-X,lt.height=wt-N,lt.getContext("2d").putImageData(this.canvasContext.getImageData(X,N,Re-X,wt-N),0,0),this.drawingImgUrl=lt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},P.prototype.setDrawingImage=function(){_.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),_.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},P.prototype.setColor=function(k){this.color=k,this.colorChanged(k)},P.prototype.setLineWidth=function(k){this.lineWidth=k},Object.defineProperty(P.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),P.prototype.getState=function(){var k=Object.assign({drawingImgUrl:this.drawingImgUrl},xe.prototype.getState.call(this));return k.typeName=P.typeName,k},P.prototype.restoreState=function(k){this.createVisual(),xe.prototype.restoreState.call(this,k),this.drawingImgUrl=k.drawingImgUrl,this.setDrawingImage()},P.prototype.scale=function(k,j){xe.prototype.scale.call(this,k,j),this.setDrawingImage()},P.typeName="FreehandMarker",P.title="Freehand marker",P.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>',P}(ge),Bt=function(xe){function P(k,j,X){var N=xe.call(this,k,X||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return N.typeBoxes=[],N.currentType=j,N.setCurrentType=N.setCurrentType.bind(N),N}return I(P,xe),P.prototype.getUi=function(){var k=this,j=document.createElement("div");j.style.display="flex",j.style.overflow="hidden",j.style.flexGrow="2";for(var X=function(wt){var ze="both";switch(wt){case 0:ze="both";break;case 1:ze="start";break;case 2:ze="end";break;case 3:ze="none"}var Oe=document.createElement("div");if(Oe.style.display="flex",Oe.style.flexGrow="2",Oe.style.alignItems="center",Oe.style.justifyContent="space-between",Oe.style.padding="5px",Oe.style.borderWidth="2px",Oe.style.borderStyle="solid",Oe.style.borderColor=ze===N.currentType?N.uiStyleSettings.toolboxAccentColor:"transparent",Oe.addEventListener("click",function(){k.setCurrentType(ze,Oe)}),j.appendChild(Oe),ze==="both"||ze==="start"){var mt=document.createElement("div");mt.style.display="flex",mt.style.alignItems="center",mt.style.minHeight="20px",mt.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="`+(N.uiStyleSettings!==void 0?N.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,mt.style.marginLeft="5px",Oe.appendChild(mt)}var lt=document.createElement("div");lt.style.display="flex",lt.style.alignItems="center",lt.style.minHeight="20px",lt.style.flexGrow="2";var Qe=document.createElement("hr");if(Qe.style.minWidth="20px",Qe.style.border="0px",Qe.style.borderTop="3px solid "+(N.uiStyleSettings!==void 0?N.uiStyleSettings.toolboxColor:"#eeeeee"),Qe.style.flexGrow="2",lt.appendChild(Qe),Oe.appendChild(lt),ze==="both"||ze==="end"){var Ct=document.createElement("div");Ct.style.display="flex",Ct.style.alignItems="center",Ct.style.minHeight="20px",Ct.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="`+(N.uiStyleSettings!==void 0?N.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Ct.style.marginRight="5px",Oe.appendChild(Ct)}N.typeBoxes.push(Oe)},N=this,Re=0;Re<4;Re++)X(Re);return j},P.prototype.setCurrentType=function(k,j){var X=this;this.currentType=k,this.typeBoxes.forEach(function(N){N.style.borderColor=N===j?X.uiStyleSettings!==void 0?X.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},P}(Ie),bt=function(xe){function P(k,j,X){var N=xe.call(this,k,j,X)||this;return N.arrowType="end",N.arrowBaseHeight=10,N.arrowBaseWidth=10,N.getArrowPoints=N.getArrowPoints.bind(N),N.setArrowType=N.setArrowType.bind(N),N.arrowTypePanel=new Bt("Arrow type","end"),N.arrowTypePanel.onArrowTypeChanged=N.setArrowType,N}return I(P,xe),P.prototype.ownsTarget=function(k){return!(!xe.prototype.ownsTarget.call(this,k)&&k!==this.arrow1&&k!==this.arrow2)},P.prototype.getArrowPoints=function(k,j){var X=this.arrowBaseWidth+2*this.strokeWidth,N=this.arrowBaseHeight+2*this.strokeWidth;return k-X/2+","+(j+N/2)+" "+k+","+(j-N/2)+" "+(k+X/2)+","+(j+N/2)},P.prototype.createTips=function(){this.arrow1=_.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(_.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=_.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(_.createTransform()),this.visual.appendChild(this.arrow2)},P.prototype.pointerDown=function(k,j){xe.prototype.pointerDown.call(this,k,j),this.state==="creating"&&this.createTips()},P.prototype.adjustVisual=function(){if(xe.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",_.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),_.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 X=this.arrow2.transform.baseVal.getItem(0);X.setRotate(k+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(X,0)}},P.prototype.setArrowType=function(k){this.arrowType=k,this.adjustVisual(),this.stateChanged()},Object.defineProperty(P.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),P.prototype.getState=function(){var k=Object.assign({arrowType:this.arrowType},xe.prototype.getState.call(this));return k.typeName=P.typeName,k},P.prototype.restoreState=function(k){xe.prototype.restoreState.call(this,k);var j=k;this.arrowType=j.arrowType,this.createTips(),this.adjustVisual()},P.typeName="ArrowMarker",P.title="Arrow marker",P.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',P}(nt),kt=function(xe){function P(k,j,X){var N=xe.call(this,k,j,X)||this;return N.fillColor=X.defaultFillColor,N.strokeWidth=0,N.fillPanel=new De("Color",X.defaultColorSet,X.defaultFillColor),N.fillPanel.onColorChanged=N.setFillColor,N}return I(P,xe),Object.defineProperty(P.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),P.prototype.getState=function(){var k=xe.prototype.getState.call(this);return k.typeName=P.typeName,k},P.typeName="CoverMarker",P.title="Cover marker",P.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',P}(Te),Tt=function(xe){function P(k,j,X,N){var Re=xe.call(this,k,N||'<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 Re.opacities=[],Re.opacityBoxes=[],Re.opacities=j,Re.currentOpacity=X,Re.setCurrentOpacity=Re.setCurrentOpacity.bind(Re),Re}return I(P,xe),P.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(X){var N=document.createElement("div");N.style.display="flex",N.style.alignItems="center",N.style.justifyContent="center",N.style.padding="5px",N.style.borderWidth="2px",N.style.borderStyle="solid",N.style.borderColor=X===k.currentOpacity?k.uiStyleSettings.toolboxAccentColor:"transparent",N.addEventListener("click",function(){k.setCurrentOpacity(X,N)}),j.appendChild(N);var Re=document.createElement("div");Re.innerText=100*X+"%",N.appendChild(Re),k.opacityBoxes.push(N)}),j},P.prototype.setCurrentOpacity=function(k,j){var X=this;this.currentOpacity=k,this.opacityBoxes.forEach(function(N){N.style.borderColor=N===j?X.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},P}(Ie),wn=function(xe){function P(k,j,X){var N=xe.call(this,k,j,X)||this;return N.setOpacity=N.setOpacity.bind(N),N.fillColor=X.defaultHighlightColor,N.strokeWidth=0,N.opacity=X.defaultHighlightOpacity,N.fillPanel=new De("Color",X.defaultColorSet,N.fillColor),N.fillPanel.onColorChanged=N.setFillColor,N.opacityPanel=new Tt("Opacity",X.defaultOpacitySteps,N.opacity),N.opacityPanel.onOpacityChanged=N.setOpacity,N}return I(P,xe),P.prototype.setOpacity=function(k){this.opacity=k,this.visual&&_.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(P.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),P.prototype.getState=function(){var k=xe.prototype.getState.call(this);return k.typeName=P.typeName,k},P.typeName="HighlightMarker",P.title="Highlight marker",P.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>',P}(kt),Xe='<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>',se='<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>',le=function(xe){function P(k,j,X){var N=xe.call(this,k,j,X)||this;return N.bgColor="transparent",N.tipPosition={x:0,y:0},N.tipBase1Position={x:0,y:0},N.tipBase2Position={x:0,y:0},N.tipMoving=!1,N.color=X.defaultStrokeColor,N.bgColor=X.defaultFillColor,N.fontFamily=X.defaultFontFamily,N.defaultSize={x:100,y:30},N.setBgColor=N.setBgColor.bind(N),N.getTipPoints=N.getTipPoints.bind(N),N.positionTip=N.positionTip.bind(N),N.setTipPoints=N.setTipPoints.bind(N),N.colorPanel=new De("Text color",X.defaultColorSet,N.color,Xe),N.colorPanel.onColorChanged=N.setColor,N.bgColorPanel=new De("Fill color",X.defaultColorSet,N.bgColor,se),N.bgColorPanel.onColorChanged=N.setBgColor,N.fontFamilyPanel=new ie("Font",X.defaultFontFamilies,X.defaultFontFamily),N.fontFamilyPanel.onFontChanged=N.setFont,N.tipGrip=new me,N.tipGrip.visual.transform.baseVal.appendItem(_.createTransform()),N.controlBox.appendChild(N.tipGrip.visual),N}return I(P,xe),P.prototype.ownsTarget=function(k){return xe.prototype.ownsTarget.call(this,k)||this.tipGrip.ownsTarget(k)||this.tip===k},P.prototype.createTip=function(){_.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=_.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},P.prototype.pointerDown=function(k,j){this.state==="new"&&xe.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):xe.prototype.pointerDown.call(this,k,j)},P.prototype.pointerUp=function(k){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,xe.prototype.pointerUp.call(this,k);else{var j=this.state==="creating";xe.prototype.pointerUp.call(this,k),this.setTipPoints(j),this.positionTip()}},P.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 xe.prototype.manipulate.call(this,k)},P.prototype.setBgColor=function(k){this.bgRectangle&&this.tip&&(_.setAttributes(this.bgRectangle,[["fill",k]]),_.setAttributes(this.tip,[["fill",k]])),this.bgColor=k,this.fillColorChanged(k)},P.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},P.prototype.setTipPoints=function(k){k===void 0&&(k=!1);var j=Math.min(this.height/2,15),X=this.height/5;k&&(this.tipPosition={x:j+X/2,y:this.height+20});var N=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?N<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(X=this.width/5,j=Math.min(this.width/2,15),this.tipBase1Position={x:j,y:0},this.tipBase2Position={x:j+X,y:0}):(this.tipBase1Position={x:0,y:j},this.tipBase2Position={x:0,y:j+X}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?N<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(X=this.width/5,j=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-j-X,y:0},this.tipBase2Position={x:this.width-j,y:0}):(this.tipBase1Position={x:this.width,y:j},this.tipBase2Position={x:this.width,y:j+X}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?N<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(X=this.width/5,j=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-j-X,y:this.height},this.tipBase2Position={x:this.width-j,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-j-X},this.tipBase2Position={x:this.width,y:this.height-j}):N<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(X=this.width/5,j=Math.min(this.width/2,15),this.tipBase1Position={x:j,y:this.height},this.tipBase2Position={x:j+X,y:this.height}):(this.tipBase1Position={x:0,y:this.height-j},this.tipBase2Position={x:0,y:this.height-j-X})},P.prototype.resize=function(k){xe.prototype.resize.call(this,k),this.positionTip()},P.prototype.positionTip=function(){_.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(P.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),P.prototype.select=function(){this.positionTip(),xe.prototype.select.call(this)},P.prototype.getState=function(){var k=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},xe.prototype.getState.call(this));return k.typeName=P.typeName,k},P.prototype.restoreState=function(k){var j=k;this.bgColor=j.bgColor,this.tipPosition=j.tipPosition,xe.prototype.restoreState.call(this,k),this.createTip(),this.setTipPoints()},P.prototype.scale=function(k,j){xe.prototype.scale.call(this,k,j),this.tipPosition={x:this.tipPosition.x*k,y:this.tipPosition.y*j},this.positionTip()},P.typeName="CalloutMarker",P.title="Callout marker",P.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>',P}(at),_t=function(xe){function P(k,j,X){var N=xe.call(this,k,j,X)||this;return N.fillColor="transparent",N.strokeColor="transparent",N.strokeWidth=0,N.strokeDasharray="",N.opacity=1,N.strokeColor=X.defaultColor,N.strokeWidth=X.defaultStrokeWidth,N.strokeDasharray=X.defaultStrokeDasharray,N.fillColor=X.defaultFillColor,N.setStrokeColor=N.setStrokeColor.bind(N),N.setFillColor=N.setFillColor.bind(N),N.setStrokeWidth=N.setStrokeWidth.bind(N),N.setStrokeDasharray=N.setStrokeDasharray.bind(N),N.setOpacity=N.setOpacity.bind(N),N.createVisual=N.createVisual.bind(N),N.strokePanel=new De("Line color",W(X.defaultColorSet,["transparent"]),X.defaultColor),N.strokePanel.onColorChanged=N.setStrokeColor,N.fillPanel=new De("Fill color",W(X.defaultColorSet,["transparent"]),N.fillColor,se),N.fillPanel.onColorChanged=N.setFillColor,N.strokeWidthPanel=new ee("Line width",X.defaultStrokeWidths,X.defaultStrokeWidth),N.strokeWidthPanel.onWidthChanged=N.setStrokeWidth,N.strokeStylePanel=new Ce("Line style",X.defaultStrokeDasharrays,X.defaultStrokeDasharray),N.strokeStylePanel.onStyleChanged=N.setStrokeDasharray,N.opacityPanel=new Tt("Opacity",X.defaultOpacitySteps,N.opacity),N.opacityPanel.onOpacityChanged=N.setOpacity,N}return I(P,xe),P.prototype.ownsTarget=function(k){return!(!xe.prototype.ownsTarget.call(this,k)&&k!==this.visual)},P.prototype.createVisual=function(){this.visual=_.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)},P.prototype.pointerDown=function(k,j){xe.prototype.pointerDown.call(this,k,j),this.state==="new"&&(this.createVisual(),this.moveVisual(k),this._state="creating")},P.prototype.manipulate=function(k){xe.prototype.manipulate.call(this,k)},P.prototype.resize=function(k){xe.prototype.resize.call(this,k),this.setSize()},P.prototype.setSize=function(){xe.prototype.setSize.call(this),_.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},P.prototype.pointerUp=function(k){xe.prototype.pointerUp.call(this,k),this.setSize()},P.prototype.setStrokeColor=function(k){this.strokeColor=k,this.visual&&_.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(k),this.stateChanged()},P.prototype.setFillColor=function(k){this.fillColor=k,this.visual&&_.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(k),this.stateChanged()},P.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.visual&&_.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},P.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.visual&&_.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},P.prototype.setOpacity=function(k){this.opacity=k,this.visual&&_.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(P.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),P.prototype.getState=function(){var k=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},xe.prototype.getState.call(this));return k.typeName=P.typeName,k},P.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(),xe.prototype.restoreState.call(this,k),this.setSize()},P.prototype.scale=function(k,j){xe.prototype.scale.call(this,k,j),this.setSize()},P.typeName="EllipseMarker",P.title="Ellipse marker",P.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>',P}(ge),jt=function(xe){function P(k,j,X){return xe.call(this,k,j,X)||this}return I(P,xe),Object.defineProperty(P.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),P.prototype.ownsTarget=function(k){return!(!xe.prototype.ownsTarget.call(this,k)&&k!==this.tip1&&k!==this.tip2)},P.prototype.createTips=function(){this.tip1=_.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(_.createTransform()),this.visual.appendChild(this.tip1),this.tip2=_.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(_.createTransform()),this.visual.appendChild(this.tip2)},P.prototype.pointerDown=function(k,j){xe.prototype.pointerDown.call(this,k,j),this.state==="creating"&&this.createTips()},P.prototype.adjustVisual=function(){if(xe.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(_.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()]]),_.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 X=this.tip2.transform.baseVal.getItem(0);X.setRotate(k+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(X,0)}},Object.defineProperty(P.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),P.prototype.getState=function(){var k=xe.prototype.getState.call(this);return k.typeName=P.typeName,k},P.prototype.restoreState=function(k){xe.prototype.restoreState.call(this,k),this.createTips(),this.adjustVisual()},P.typeName="MeasurementMarker",P.title="Measurement marker",P.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>',P}(nt),yt=function(xe){function P(k,j,X){var N=xe.call(this,k,j,X)||this;return N.strokePanel.colors=X.defaultColorSet,N.fillColor="transparent",N}return I(P,xe),Object.defineProperty(P.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),P.prototype.getState=function(){var k=xe.prototype.getState.call(this);return k.typeName=P.typeName,k},P.typeName="EllipseFrameMarker",P.title="Ellipse frame marker",P.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>',P}(_t),ln=function(){function xe(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(xe.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),xe.prototype.addUndoStep=function(P){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(P)||(this.undoStack.push(P),JSON.stringify(this.lastRedoStep)!==JSON.stringify(P)&&this.redoStack.splice(0,this.redoStack.length))},xe.prototype.replaceLastUndoStep=function(P){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=P)},xe.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},xe.prototype.undo=function(){if(this.undoStack.length>1){var P=this.undoStack.pop();return P!==void 0&&this.redoStack.push(P),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},xe.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},xe}(),Dt=function(xe){function P(k,j,X){var N=xe.call(this,k,j,X)||this;return N.strokeColor="transparent",N.strokeWidth=0,N.strokeDasharray="",N.curveX=0,N.curveY=0,N.manipulationStartCurveX=0,N.manipulationStartCurveY=0,N.setStrokeColor=N.setStrokeColor.bind(N),N.setStrokeWidth=N.setStrokeWidth.bind(N),N.setStrokeDasharray=N.setStrokeDasharray.bind(N),N.positionGrips=N.positionGrips.bind(N),N.addControlGrips=N.addControlGrips.bind(N),N.adjustVisual=N.adjustVisual.bind(N),N.setupControlBox=N.setupControlBox.bind(N),N.resize=N.resize.bind(N),N.strokeColor=X.defaultColor,N.strokeWidth=X.defaultStrokeWidth,N.strokeDasharray=X.defaultStrokeDasharray,N.strokePanel=new De("Line color",X.defaultColorSet,X.defaultColor),N.strokePanel.onColorChanged=N.setStrokeColor,N.strokeWidthPanel=new ee("Line width",X.defaultStrokeWidths,X.defaultStrokeWidth),N.strokeWidthPanel.onWidthChanged=N.setStrokeWidth,N.strokeStylePanel=new Ce("Line style",X.defaultStrokeDasharrays,X.defaultStrokeDasharray),N.strokeStylePanel.onStyleChanged=N.setStrokeDasharray,N}return I(P,xe),P.prototype.ownsTarget=function(k){return!(!xe.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.selectorCurve&&k!==this.visibleCurve&&!this.curveGrip.ownsTarget(k))},P.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},P.prototype.createVisual=function(){this.visual=_.createGroup(),this.selectorCurve=_.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=_.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)},P.prototype.pointerDown=function(k,j){xe.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")},P.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),_.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),_.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),_.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},P.prototype.setupControlBox=function(){xe.prototype.setupControlBox.call(this),this.curveControlLine1=_.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=_.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)},P.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,xe.prototype.addControlGrips.call(this)},P.prototype.positionGrips=function(){xe.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()))},P.prototype.manipulate=function(k){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+k.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+k.y-this.manipulationStartY),xe.prototype.manipulate.call(this,k)},P.prototype.resize=function(k){this.activeGrip===this.curveGrip&&(this.curveX=k.x,this.curveY=k.y),xe.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)},P.prototype.setStrokeColor=function(k){this.strokeColor=k,this.adjustVisual(),this.colorChanged(k)},P.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.adjustVisual()},P.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.adjustVisual()},P.prototype.scale=function(k,j){this.curveX=this.curveX*k,this.curveY=this.curveY*j,xe.prototype.scale.call(this,k,j)},Object.defineProperty(P.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),P.prototype.getState=function(){var k=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},xe.prototype.getState.call(this));return k.typeName=P.typeName,k},P.prototype.restoreState=function(k){xe.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()},P.typeName="CurveMarker",P.title="Curve marker",P.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>',P}(Ke),ui=function(xe){function P(k,j,X){var N=xe.call(this,k,j,X)||this;return N.fillColor="transparent",N.strokeColor="transparent",N.strokeWidth=0,N.strokeDasharray="",N.textColor="transparent",N.fontSize="1rem",N.isMoved=!1,N.captionText="Caption",N.PADDING=5,N.captionBoxWidth=0,N.captionBoxHeight=0,N.strokeColor=X.defaultColor,N.strokeWidth=X.defaultStrokeWidth,N.strokeDasharray=X.defaultStrokeDasharray,N.fillColor=X.defaultFillColor,N.textColor=X.defaultStrokeColor,N.fontFamily=X.defaultFontFamily,N.fontSize=X.defaultCaptionFontSize,N.captionText=X.defaultCaptionText,N.setStrokeColor=N.setStrokeColor.bind(N),N.setFillColor=N.setFillColor.bind(N),N.setStrokeWidth=N.setStrokeWidth.bind(N),N.setStrokeDasharray=N.setStrokeDasharray.bind(N),N.createVisual=N.createVisual.bind(N),N.sizeCaption=N.sizeCaption.bind(N),N.setCaptionText=N.setCaptionText.bind(N),N.showTextEditor=N.showTextEditor.bind(N),N.positionTextEditor=N.positionTextEditor.bind(N),N.finishTextEditing=N.finishTextEditing.bind(N),N.setFont=N.setFont.bind(N),N.setTextColor=N.setTextColor.bind(N),N.strokePanel=new De("Line color",W(X.defaultColorSet,["transparent"]),N.strokeColor),N.strokePanel.onColorChanged=N.setStrokeColor,N.fillPanel=new De("Fill color",W(X.defaultColorSet,["transparent"]),N.fillColor,se),N.fillPanel.onColorChanged=N.setFillColor,N.strokeWidthPanel=new ee("Line width",X.defaultStrokeWidths,X.defaultStrokeWidth),N.strokeWidthPanel.onWidthChanged=N.setStrokeWidth,N.strokeStylePanel=new Ce("Line style",X.defaultStrokeDasharrays,X.defaultStrokeDasharray),N.strokeStylePanel.onStyleChanged=N.setStrokeDasharray,N.fontFamilyPanel=new ie("Font",X.defaultFontFamilies,X.defaultFontFamily),N.fontFamilyPanel.onFontChanged=N.setFont,N.textColorPanel=new De("Text color",X.defaultColorSet,N.textColor,Xe),N.textColorPanel.onColorChanged=N.setTextColor,N}return I(P,xe),P.prototype.ownsTarget=function(k){return!(!xe.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.frame&&k!==this.captionBg&&k!==this.captionElement)},P.prototype.createVisual=function(){this.visual=_.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=_.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=_.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=_.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()},P.prototype.setCaptionText=function(k){this.captionText=k,this.captionElement.textContent=this.captionText,this.sizeCaption()},P.prototype.pointerDown=function(k,j){xe.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")},P.prototype.manipulate=function(k){xe.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)},P.prototype.resize=function(k){xe.prototype.resize.call(this,k),this.setSize()},P.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),_.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')"]]),_.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')"]])},P.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()},P.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"))},P.prototype.finishTextEditing=function(k){this.setCaptionText(k.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},P.prototype.setFont=function(k){this.captionElement&&_.setAttributes(this.captionElement,[["font-family",k]]),this.fontFamily=k,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},P.prototype.setTextColor=function(k){this.captionElement&&_.setAttributes(this.captionElement,[["fill",k]]),this.textColor=k,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},P.prototype.setSize=function(){xe.prototype.setSize.call(this),_.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},P.prototype.pointerUp=function(k){xe.prototype.pointerUp.call(this,k),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},P.prototype.dblClick=function(k,j){xe.prototype.dblClick.call(this,k,j),this.showTextEditor()},P.prototype.setStrokeColor=function(k){this.strokeColor=k,this.frame&&_.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(k),this.stateChanged()},P.prototype.setFillColor=function(k){this.fillColor=k,this.captionBg&&_.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(k),this.stateChanged()},P.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.frame&&_.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},P.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.frame&&_.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(P.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),P.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},xe.prototype.getState.call(this));return k.typeName=this.typeName,k},P.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(),xe.prototype.restoreState.call(this,k),this.setSize()},P.prototype.scale=function(k,j){xe.prototype.scale.call(this,k,j),this.setSize()},P.typeName="CaptionFrameMarker",P.title="Caption frame marker",P.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>',P}(ge),On=function(){function xe(P,k){k===void 0&&(k=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=P,this.cancelable=k}return Object.defineProperty(xe.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),xe.prototype.preventDefault=function(){this._defaultPrevented=!0},xe}(),ri=function(xe){function P(k,j,X){var N=xe.call(this,k,!1)||this;return N.dataUrl=j,N.state=X,N}return I(P,xe),P}(On),Xn=function(xe){function P(k,j,X){X===void 0&&(X=!1);var N=xe.call(this,k,X)||this;return N.marker=j,N}return I(P,xe),P}(On),Tn=function(){function xe(){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 xe.prototype.addEventListener=function(P,k){this[P].push(k)},xe.prototype.removeEventListener=function(P,k){var j=this[P].indexOf(k);j>-1&&this[P].splice(j,1)},xe}(),Nn=function(){function xe(P){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 ln,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 Tn,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=xe.instanceCounter++,this.styles=new ne(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=P,this.targetRoot=document.body,this.width=P.clientWidth,this.height=P.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(xe.prototype,"ALL_MARKER_TYPES",{get:function(){return[Ne,Ze,bt,at,yt,_t,wn,le,jt,kt,nt,Dt,ui]},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ne,Ze,bt,at,_t,wn,le]},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ne,Ze,bt,at,wn]},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(P){var k=this;this._availableMarkerTypes.splice(0),P.forEach(function(j){if(typeof j=="string"){var X=k.ALL_MARKER_TYPES.find(function(N){return N.typeName===j});X!==void 0&&k._availableMarkerTypes.push(X)}else k._availableMarkerTypes.push(j)})},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(P){this._zoomLevel=P,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(xe.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),xe.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},xe.prototype.show=function(){var P=this;this.styles.styleSheetRoot===void 0&&ue.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=ue.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(k){return k(new On(P))})},xe.prototype.render=function(){return O(this,void 0,void 0,function(){var P;return z(this,function(k){switch(k.label){case 0:return this.setCurrentMarker(),(P=new pe).naturalSize=this.renderAtNaturalSize,P.imageType=this.renderImageType,P.imageQuality=this.renderImageQuality,P.markersOnly=this.renderMarkersOnly,P.width=this.renderWidth,P.height=this.renderHeight,[4,P.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return k.sent(),[4,P.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,k.sent()]}})})},xe.prototype.close=function(P){var k=this;if(P===void 0&&(P=!1),this.isOpen){var j=!1;P||this.eventListeners.beforeclose.forEach(function(X){var N=new On(k,!0);X(N),N.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(X){return X(new On(k))}),this.detachEvents(),this._isOpen=!1)}},xe.prototype.addMarkersToToolbar=function(){for(var P,k=[],j=0;j<arguments.length;j++)k[j]=arguments[j];(P=this._availableMarkerTypes).push.apply(P,k)},xe.prototype.addRenderEventListener=function(P){this.addEventListener("render",function(k){P(k.dataUrl,k.state)})},xe.prototype.removeRenderEventListener=function(P){},xe.prototype.addCloseEventListener=function(P){this.addEventListener("close",function(){P()})},xe.prototype.removeCloseEventListener=function(P){},xe.prototype.setupResizeObserver=function(){var P=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){P.resize(P.target.clientWidth,P.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return P.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},xe.prototype.onPopupTargetResize=function(){var P=1*this.target.clientWidth/this.target.clientHeight,k=this.editorCanvas.clientWidth/P>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*P:this.editorCanvas.clientWidth,j=k<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/P;this.resize(k,j)},xe.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},xe.prototype.resize=function(P,k){this._isResizing=!0;var j=P/this.imageWidth,X=k/this.imageHeight;this.imageWidth=Math.round(P),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,X),this._isResizing=!1},xe.prototype.scaleMarkers=function(P,k){var j,X=this;this._currentMarker&&this._currentMarker instanceof at?this._currentMarker.scale(P,k):(j=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(N){N!==X._currentMarker&&N.scale(P,k)}),j!==void 0&&this.setCurrentMarker(j)},xe.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"},xe.prototype.setTopLeft=function(){var P=this.editingTarget.getBoundingClientRect(),k=this.editorCanvas.getBoundingClientRect();this.left=P.left-k.left,this.top=P.top-k.top},xe.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)},xe.prototype.addDefs=function(){for(var P,k=[],j=0;j<arguments.length;j++)k[j]=arguments[j];this.defs=_.createDefs(),this.addDefsToImage(),(P=this.defs).append.apply(P,k)},xe.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},xe.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)},xe.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},xe.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},xe.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)},xe.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},xe.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)},xe.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 P=document.createElement("a");P.href="https://markerjs.com/",P.target="_blank",P.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>',P.title="Powered by marker.js",P.style.display="grid",P.style.alignItems="center",P.style.justifyItems="center",P.style.padding="3px",P.style.width="20px",P.style.height="20px",this.logoUI.appendChild(P),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},xe.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")},xe.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"},xe.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},xe.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 P=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=P+"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 rt(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 Ue(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},xe.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},xe.prototype.removeMarker=function(P){this.markerImage.removeChild(P.container),this.markers.indexOf(P)>-1&&this.markers.splice(this.markers.indexOf(P),1),P.dispose()},xe.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())},xe.prototype.toolbarButtonClicked=function(P,k){if(P==="marker"&&k!==void 0)this.createNewMarker(k);else if(P==="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()}},xe.prototype.deleteSelectedMarker=function(){var P=this;if(this._currentMarker!==void 0){var k=!1;if(this.eventListeners.markerbeforedelete.forEach(function(X){var N=new Xn(P,P._currentMarker,!0);X(N),N.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(X){return X(new Xn(P,j))})}}},xe.prototype.clear=function(){var P=this,k=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Re){var wt=new Xn(P,void 0,!0);Re(wt),wt.defaultPrevented&&(k=!0)}),!k)){this.setCurrentMarker();for(var j=function(Re){var wt=X.markers[Re];X.setCurrentMarker(X.markers[Re]),X._currentMarker.dispose(),X.markerImage.removeChild(X._currentMarker.container),X.markers.splice(X.markers.indexOf(X._currentMarker),1),X.eventListeners.markerdelete.forEach(function(ze){return ze(new Xn(P,wt))})},X=this,N=this.markers.length-1;N>=0;N--)j(N);this.addUndoStep()}},Object.defineProperty(xe.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),xe.prototype.showNotesEditor=function(){var P;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=(P=this._currentMarker.notes)!==null&&P!==void 0?P:"",this.overlayContainer.appendChild(this.notesArea))},xe.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)},xe.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},xe.prototype.addUndoStep=function(){var P=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 X=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(k),X<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(N){return N(new On(P))})}else this.undoRedoManager.replaceLastUndoStep(k),this.eventListeners.statechange.forEach(function(N){return N(new On(P))})}},xe.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},xe.prototype.undoStep=function(){var P=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(P))}))},xe.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},xe.prototype.redoStep=function(){var P=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(P))}))},xe.prototype.stepZoom=function(){var P=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=P<this.zoomSteps.length-1?this.zoomSteps[P+1]:this.zoomSteps[0]},xe.prototype.panTo=function(P){this.contentDiv.scrollBy({left:this.prevPanPoint.x-P.x,top:this.prevPanPoint.y-P.y}),this.prevPanPoint=P},xe.prototype.startRenderAndClose=function(){return O(this,void 0,void 0,function(){var P,k,j=this;return z(this,function(X){switch(X.label){case 0:return[4,this.render()];case 1:return P=X.sent(),k=this.getState(),this.eventListeners.render.forEach(function(N){return N(new ri(j,P,k))}),this.close(!0),[2]}})})},xe.prototype.getState=function(P){P===!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},xe.prototype.restoreState=function(P){var k=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);P.markers.forEach(function(j){var X=k._availableMarkerTypes.find(function(Re){return Re.typeName===j.typeName});if(X!==void 0){var N=k.addNewMarker(X);N.restoreState(j),k.markers.push(N)}}),P.width&&P.height&&(P.width!==this.imageWidth||P.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/P.width,this.imageHeight/P.height),this.eventListeners.restorestate.forEach(function(j){return j(new On(k))})},xe.prototype.addNewMarker=function(P){var k=_.createGroup();return this.markerImage.appendChild(k),new P(k,this.overlayContainer,this.settings)},xe.prototype.createNewMarker=function(P){var k,j=this;(k=typeof P=="string"?this._availableMarkerTypes.find(function(X){return X.typeName===P}):P)&&(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(X){return X(new Xn(j,j._currentMarker))}))},xe.prototype.markerCreated=function(P){var k=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(P),this.setCurrentMarker(P),P instanceof Ze&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Ze):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(j){return j(new Xn(k,k._currentMarker))})},xe.prototype.colorChanged=function(P){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=P,this.settings.defaultStrokeColor=P)},xe.prototype.fillColorChanged=function(P){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=P)},xe.prototype.markerStateChanged=function(P){var k=this;this.eventListeners.markerchange.forEach(function(j){return j(new Xn(k,P))})},xe.prototype.setCurrentMarker=function(P){var k=this;this._currentMarker!==P&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(j){return j(new Xn(k,k._currentMarker))})),this._currentMarker=P,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 Xn(k,k._currentMarker))}))},xe.prototype.onPointerDown=function(P){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||P.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(P.target)});k!==void 0?(this.setCurrentMarker(k),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(P.clientX,P.clientY),P.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:P.clientX,y:P.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(P.clientX,P.clientY))},xe.prototype.onDblClick=function(P){if(this._isFocused||this.focus(),this.mode==="select"){var k=this.markers.find(function(j){return j.ownsTarget(P.target)});k!==void 0&&k!==this._currentMarker&&this.setCurrentMarker(k),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(P.clientX,P.clientY),P.target):this.setCurrentMarker()}},xe.prototype.onPointerMove=function(P){this.touchPoints!==1&&P.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||P.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(P.clientX,P.clientY)):this.zoomLevel>1&&this.panTo({x:P.clientX,y:P.clientY}))},xe.prototype.onPointerUp=function(P){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(P.clientX,P.clientY)),this.isDragging=!1,this.addUndoStep()},xe.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},xe.prototype.onKeyUp=function(P){this._currentMarker===void 0||this.notesArea!==void 0||P.key!=="Delete"&&P.key!=="Backspace"||this.deleteSelectedMarker()},xe.prototype.clientToLocalCoordinates=function(P,k){var j=this.markerImage.getBoundingClientRect();return{x:(P-j.left)/this.zoomLevel,y:(k-j.top)/this.zoomLevel}},xe.prototype.onWindowResize=function(){this.positionUI()},xe.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var P=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=P+"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()},xe.prototype.addLicenseKey=function(P){M.addKey(P)},xe.prototype.addEventListener=function(P,k){this.eventListeners.addEventListener(P,k)},xe.prototype.removeEventListener=function(P,k){this.eventListeners.removeEventListener(P,k)},xe.prototype.renderState=function(P){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(P),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(xe.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),xe.prototype.focus=function(){var P=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(P))}))},xe.prototype.blur=function(){var P=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(k){return k(new On(P))}))},xe.instanceCounter=0,xe}()},67842:function(Q){"use strict";var C,d=59;Q.exports=b;function b(I){var O="&"+I+";",z;return C=C||document.createElement("i"),C.innerHTML=O,z=C.textContent,z.charCodeAt(z.length-1)===d&&I!=="semi"||z===O?!1:z}},12256:function(Q,C,d){"use strict";var b=d(47854),I=d(80501),O=d(22347),z=d(65207),W=d(21127),_=d(67842);Q.exports=wn;var M={}.hasOwnProperty,pe=String.fromCharCode,ue=Function.prototype,ne={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},Pe=9,ke=10,rt=12,Ue=32,Ie=38,De=59,Fe=60,de=61,me=35,we=88,ge=120,Te=65533,ee="named",Ce="hexadecimal",Ne="decimal",Le={};Le[Ce]=16,Le[Ne]=10;var Ke={};Ke[ee]=W,Ke[Ne]=O,Ke[Ce]=z;var nt=1,ie=2,at=3,Ze=4,Bt=5,bt=6,kt=7,Tt={};Tt[nt]="Named character references must be terminated by a semicolon",Tt[ie]="Numeric character references must be terminated by a semicolon",Tt[at]="Named character references cannot be empty",Tt[Ze]="Numeric character references cannot be empty",Tt[Bt]="Named character references must be known",Tt[bt]="Numeric character references cannot be disallowed",Tt[kt]="Numeric character references cannot be outside the permissible Unicode range";function wn(_t,jt){var yt={},ln,Dt;jt||(jt={});for(Dt in ne)ln=jt[Dt],yt[Dt]=ln==null?ne[Dt]:ln;return(yt.position.indent||yt.position.start)&&(yt.indent=yt.position.indent||[],yt.position=yt.position.start),Xe(_t,yt)}function Xe(_t,jt){var yt=jt.additional,ln=jt.nonTerminated,Dt=jt.text,ui=jt.reference,On=jt.warning,ri=jt.textContext,Xn=jt.referenceContext,Tn=jt.warningContext,Nn=jt.position,xe=jt.indent||[],P=_t.length,k=0,j=-1,X=Nn.column||1,N=Nn.line||1,Re="",wt=[],ze,Oe,mt,lt,Qe,Ct,nn,Yt,Ot,on,hn,Ve,Pt,Xt,qt,He,Rn,Cn,Gn;for(typeof yt=="string"&&(yt=yt.charCodeAt(0)),He=Ci(),Yt=On?ci:ue,k--,P++;++k<P;)if(Qe===ke&&(X=xe[j]||1),Qe=_t.charCodeAt(k),Qe===Ie){if(nn=_t.charCodeAt(k+1),nn===Pe||nn===ke||nn===rt||nn===Ue||nn===Ie||nn===Fe||nn!==nn||yt&&nn===yt){Re+=pe(Qe),X++;continue}for(Pt=k+1,Ve=Pt,Gn=Pt,nn===me?(Gn=++Ve,nn=_t.charCodeAt(Gn),nn===we||nn===ge?(Xt=Ce,Gn=++Ve):Xt=Ne):Xt=ee,ze="",hn="",lt="",qt=Ke[Xt],Gn--;++Gn<P&&(nn=_t.charCodeAt(Gn),!!qt(nn));)lt+=pe(nn),Xt===ee&&M.call(b,lt)&&(ze=lt,hn=b[lt]);mt=_t.charCodeAt(Gn)===De,mt&&(Gn++,Oe=Xt===ee?_(lt):!1,Oe&&(ze=lt,hn=Oe)),Cn=1+Gn-Pt,!mt&&!ln||(lt?Xt===ee?(mt&&!hn?Yt(Bt,1):(ze!==lt&&(Gn=Ve+ze.length,Cn=1+Gn-Ve,mt=!1),mt||(Ot=ze?nt:at,jt.attribute?(nn=_t.charCodeAt(Gn),nn===de?(Yt(Ot,Cn),hn=null):W(nn)?hn=null:Yt(Ot,Cn)):Yt(Ot,Cn))),Ct=hn):(mt||Yt(ie,Cn),Ct=parseInt(lt,Le[Xt]),se(Ct)?(Yt(kt,Cn),Ct=pe(Te)):Ct in I?(Yt(bt,Cn),Ct=I[Ct]):(on="",le(Ct)&&Yt(bt,Cn),Ct>65535&&(Ct-=65536,on+=pe(Ct>>>10|55296),Ct=56320|Ct&1023),Ct=on+pe(Ct))):Xt!==ee&&Yt(Ze,Cn)),Ct?(sn(),He=Ci(),k=Gn-1,X+=Gn-Pt+1,wt.push(Ct),Rn=Ci(),Rn.offset++,ui&&ui.call(Xn,Ct,{start:He,end:Rn},_t.slice(Pt-1,Gn)),He=Rn):(lt=_t.slice(Pt-1,Gn),Re+=lt,X+=lt.length,k=Gn-1)}else Qe===10&&(N++,j++,X=0),Qe===Qe?(Re+=pe(Qe),X++):sn();return wt.join("");function Ci(){return{line:N,column:X,offset:k+(Nn.offset||0)}}function ci(rn,cr){var yr=Ci();yr.column+=cr,yr.offset+=cr,On.call(Tn,Tt[rn],yr,rn)}function sn(){Re&&(wt.push(Re),Dt&&Dt.call(ri,Re,{start:He,end:Ci()}),Re="")}}function se(_t){return _t>=55296&&_t<=57343||_t>1114111}function le(_t){return _t>=1&&_t<=8||_t===11||_t>=13&&_t<=31||_t>=127&&_t<=159||_t>=64976&&_t<=65007||(_t&65535)===65535||(_t&65535)===65534}},68398:function(Q,C,d){var b=typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope?self:{};var I=function(O){var z=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,W=0,_={},M={manual:O.Prism&&O.Prism.manual,disableWorkerMessageHandler:O.Prism&&O.Prism.disableWorkerMessageHandler,util:{encode:function de(me){return me instanceof pe?new pe(me.type,de(me.content),me.alias):Array.isArray(me)?me.map(de):me.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(de){return Object.prototype.toString.call(de).slice(8,-1)},objId:function(de){return de.__id||Object.defineProperty(de,"__id",{value:++W}),de.__id},clone:function de(me,we){we=we||{};var ge,Te;switch(M.util.type(me)){case"Object":if(Te=M.util.objId(me),we[Te])return we[Te];ge={},we[Te]=ge;for(var ee in me)me.hasOwnProperty(ee)&&(ge[ee]=de(me[ee],we));return ge;case"Array":return Te=M.util.objId(me),we[Te]?we[Te]:(ge=[],we[Te]=ge,me.forEach(function(Ce,Ne){ge[Ne]=de(Ce,we)}),ge);default:return me}},getLanguage:function(de){for(;de;){var me=z.exec(de.className);if(me)return me[1].toLowerCase();de=de.parentElement}return"none"},setLanguage:function(de,me){de.className=de.className.replace(RegExp(z,"gi"),""),de.classList.add("language-"+me)},currentScript:function(){if(typeof document=="undefined")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(ge){var de=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(ge.stack)||[])[1];if(de){var me=document.getElementsByTagName("script");for(var we in me)if(me[we].src==de)return me[we]}return null}},isActive:function(de,me,we){for(var ge="no-"+me;de;){var Te=de.classList;if(Te.contains(me))return!0;if(Te.contains(ge))return!1;de=de.parentElement}return!!we}},languages:{plain:_,plaintext:_,text:_,txt:_,extend:function(de,me){var we=M.util.clone(M.languages[de]);for(var ge in me)we[ge]=me[ge];return we},insertBefore:function(de,me,we,ge){ge=ge||M.languages;var Te=ge[de],ee={};for(var Ce in Te)if(Te.hasOwnProperty(Ce)){if(Ce==me)for(var Ne in we)we.hasOwnProperty(Ne)&&(ee[Ne]=we[Ne]);we.hasOwnProperty(Ce)||(ee[Ce]=Te[Ce])}var Le=ge[de];return ge[de]=ee,M.languages.DFS(M.languages,function(Ke,nt){nt===Le&&Ke!=de&&(this[Ke]=ee)}),ee},DFS:function de(me,we,ge,Te){Te=Te||{};var ee=M.util.objId;for(var Ce in me)if(me.hasOwnProperty(Ce)){we.call(me,Ce,me[Ce],ge||Ce);var Ne=me[Ce],Le=M.util.type(Ne);Le==="Object"&&!Te[ee(Ne)]?(Te[ee(Ne)]=!0,de(Ne,we,null,Te)):Le==="Array"&&!Te[ee(Ne)]&&(Te[ee(Ne)]=!0,de(Ne,we,Ce,Te))}}},plugins:{},highlightAll:function(de,me){M.highlightAllUnder(document,de,me)},highlightAllUnder:function(de,me,we){var ge={callback:we,container:de,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};M.hooks.run("before-highlightall",ge),ge.elements=Array.prototype.slice.apply(ge.container.querySelectorAll(ge.selector)),M.hooks.run("before-all-elements-highlight",ge);for(var Te=0,ee;ee=ge.elements[Te++];)M.highlightElement(ee,me===!0,ge.callback)},highlightElement:function(de,me,we){var ge=M.util.getLanguage(de),Te=M.languages[ge];M.util.setLanguage(de,ge);var ee=de.parentElement;ee&&ee.nodeName.toLowerCase()==="pre"&&M.util.setLanguage(ee,ge);var Ce=de.textContent,Ne={element:de,language:ge,grammar:Te,code:Ce};function Le(nt){Ne.highlightedCode=nt,M.hooks.run("before-insert",Ne),Ne.element.innerHTML=Ne.highlightedCode,M.hooks.run("after-highlight",Ne),M.hooks.run("complete",Ne),we&&we.call(Ne.element)}if(M.hooks.run("before-sanity-check",Ne),ee=Ne.element.parentElement,ee&&ee.nodeName.toLowerCase()==="pre"&&!ee.hasAttribute("tabindex")&&ee.setAttribute("tabindex","0"),!Ne.code){M.hooks.run("complete",Ne),we&&we.call(Ne.element);return}if(M.hooks.run("before-highlight",Ne),!Ne.grammar){Le(M.util.encode(Ne.code));return}if(me&&O.Worker){var Ke=new Worker(M.filename);Ke.onmessage=function(nt){Le(nt.data)},Ke.postMessage(JSON.stringify({language:Ne.language,code:Ne.code,immediateClose:!0}))}else Le(M.highlight(Ne.code,Ne.grammar,Ne.language))},highlight:function(de,me,we){var ge={code:de,grammar:me,language:we};if(M.hooks.run("before-tokenize",ge),!ge.grammar)throw new Error('The language "'+ge.language+'" has no grammar.');return ge.tokens=M.tokenize(ge.code,ge.grammar),M.hooks.run("after-tokenize",ge),pe.stringify(M.util.encode(ge.tokens),ge.language)},tokenize:function(de,me){var we=me.rest;if(we){for(var ge in we)me[ge]=we[ge];delete me.rest}var Te=new Pe;return ke(Te,Te.head,de),ne(de,Te,me,Te.head,0),Ue(Te)},hooks:{all:{},add:function(de,me){var we=M.hooks.all;we[de]=we[de]||[],we[de].push(me)},run:function(de,me){var we=M.hooks.all[de];if(!(!we||!we.length))for(var ge=0,Te;Te=we[ge++];)Te(me)}},Token:pe};O.Prism=M;function pe(de,me,we,ge){this.type=de,this.content=me,this.alias=we,this.length=(ge||"").length|0}pe.stringify=function de(me,we){if(typeof me=="string")return me;if(Array.isArray(me)){var ge="";return me.forEach(function(Le){ge+=de(Le,we)}),ge}var Te={type:me.type,content:de(me.content,we),tag:"span",classes:["token",me.type],attributes:{},language:we},ee=me.alias;ee&&(Array.isArray(ee)?Array.prototype.push.apply(Te.classes,ee):Te.classes.push(ee)),M.hooks.run("wrap",Te);var Ce="";for(var Ne in Te.attributes)Ce+=" "+Ne+'="'+(Te.attributes[Ne]||"").replace(/"/g,""")+'"';return"<"+Te.tag+' class="'+Te.classes.join(" ")+'"'+Ce+">"+Te.content+"</"+Te.tag+">"};function ue(de,me,we,ge){de.lastIndex=me;var Te=de.exec(we);if(Te&&ge&&Te[1]){var ee=Te[1].length;Te.index+=ee,Te[0]=Te[0].slice(ee)}return Te}function ne(de,me,we,ge,Te,ee){for(var Ce in we)if(!(!we.hasOwnProperty(Ce)||!we[Ce])){var Ne=we[Ce];Ne=Array.isArray(Ne)?Ne:[Ne];for(var Le=0;Le<Ne.length;++Le){if(ee&&ee.cause==Ce+","+Le)return;var Ke=Ne[Le],nt=Ke.inside,ie=!!Ke.lookbehind,at=!!Ke.greedy,Ze=Ke.alias;if(at&&!Ke.pattern.global){var Bt=Ke.pattern.toString().match(/[imsuy]*$/)[0];Ke.pattern=RegExp(Ke.pattern.source,Bt+"g")}for(var bt=Ke.pattern||Ke,kt=ge.next,Tt=Te;kt!==me.tail&&!(ee&&Tt>=ee.reach);Tt+=kt.value.length,kt=kt.next){var wn=kt.value;if(me.length>de.length)return;if(!(wn instanceof pe)){var Xe=1,se;if(at){if(se=ue(bt,Tt,de,ie),!se||se.index>=de.length)break;var yt=se.index,le=se.index+se[0].length,_t=Tt;for(_t+=kt.value.length;yt>=_t;)kt=kt.next,_t+=kt.value.length;if(_t-=kt.value.length,Tt=_t,kt.value instanceof pe)continue;for(var jt=kt;jt!==me.tail&&(_t<le||typeof jt.value=="string");jt=jt.next)Xe++,_t+=jt.value.length;Xe--,wn=de.slice(Tt,_t),se.index-=Tt}else if(se=ue(bt,0,wn,ie),!se)continue;var yt=se.index,ln=se[0],Dt=wn.slice(0,yt),ui=wn.slice(yt+ln.length),On=Tt+wn.length;ee&&On>ee.reach&&(ee.reach=On);var ri=kt.prev;Dt&&(ri=ke(me,ri,Dt),Tt+=Dt.length),rt(me,ri,Xe);var Xn=new pe(Ce,nt?M.tokenize(ln,nt):ln,Ze,ln);if(kt=ke(me,ri,Xn),ui&&ke(me,kt,ui),Xe>1){var Tn={cause:Ce+","+Le,reach:On};ne(de,me,we,kt.prev,Tt,Tn),ee&&Tn.reach>ee.reach&&(ee.reach=Tn.reach)}}}}}}function Pe(){var de={value:null,prev:null,next:null},me={value:null,prev:de,next:null};de.next=me,this.head=de,this.tail=me,this.length=0}function ke(de,me,we){var ge=me.next,Te={value:we,prev:me,next:ge};return me.next=Te,ge.prev=Te,de.length++,Te}function rt(de,me,we){for(var ge=me.next,Te=0;Te<we&&ge!==de.tail;Te++)ge=ge.next;me.next=ge,ge.prev=me,de.length-=Te}function Ue(de){for(var me=[],we=de.head.next;we!==de.tail;)me.push(we.value),we=we.next;return me}if(!O.document)return O.addEventListener&&(M.disableWorkerMessageHandler||O.addEventListener("message",function(de){var me=JSON.parse(de.data),we=me.language,ge=me.code,Te=me.immediateClose;O.postMessage(M.highlight(ge,M.languages[we],we)),Te&&O.close()},!1)),M;var Ie=M.util.currentScript();Ie&&(M.filename=Ie.src,Ie.hasAttribute("data-manual")&&(M.manual=!0));function De(){M.manual||M.highlightAll()}if(!M.manual){var Fe=document.readyState;Fe==="loading"||Fe==="interactive"&&Ie&&Ie.defer?document.addEventListener("DOMContentLoaded",De):window.requestAnimationFrame?window.requestAnimationFrame(De):window.setTimeout(De,16)}return M}(b);Q.exports&&(Q.exports=I),typeof d.g!="undefined"&&(d.g.Prism=I)},88914:function(Q,C,d){"use strict";var b=d(47178),I=d(19095),O=d(1969),z="data";Q.exports=pe;var W=/^data[-\w.:]+$/i,_=/-[a-z]/g,M=/[A-Z]/g;function pe(rt,Ue){var Ie=b(Ue),De=Ue,Fe=O;return Ie in rt.normal?rt.property[rt.normal[Ie]]:(Ie.length>4&&Ie.slice(0,4)===z&&W.test(Ue)&&(Ue.charAt(4)==="-"?De=ue(Ue):Ue=ne(Ue),Fe=I),new Fe(De,Ue))}function ue(rt){var Ue=rt.slice(5).replace(_,ke);return z+Ue.charAt(0).toUpperCase()+Ue.slice(1)}function ne(rt){var Ue=rt.slice(4);return _.test(Ue)?rt:(Ue=Ue.replace(M,Pe),Ue.charAt(0)!=="-"&&(Ue="-"+Ue),z+Ue)}function Pe(rt){return"-"+rt.toLowerCase()}function ke(rt){return rt.charAt(1).toUpperCase()}},18795:function(Q,C,d){"use strict";var b=d(83576),I=d(8179),O=d(59780),z=d(68244),W=d(20019),_=d(38567);Q.exports=b([O,I,z,W,_])},20019:function(Q,C,d){"use strict";var b=d(70167),I=d(79318),O=b.booleanish,z=b.number,W=b.spaceSeparated;Q.exports=I({transform:_,properties:{ariaActiveDescendant:null,ariaAtomic:O,ariaAutoComplete:null,ariaBusy:O,ariaChecked:O,ariaColCount:z,ariaColIndex:z,ariaColSpan:z,ariaControls:W,ariaCurrent:null,ariaDescribedBy:W,ariaDetails:null,ariaDisabled:O,ariaDropEffect:W,ariaErrorMessage:null,ariaExpanded:O,ariaFlowTo:W,ariaGrabbed:O,ariaHasPopup:null,ariaHidden:O,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:W,ariaLevel:z,ariaLive:null,ariaModal:O,ariaMultiLine:O,ariaMultiSelectable:O,ariaOrientation:null,ariaOwns:W,ariaPlaceholder:null,ariaPosInSet:z,ariaPressed:O,ariaReadOnly:O,ariaRelevant:null,ariaRequired:O,ariaRoleDescription:W,ariaRowCount:z,ariaRowIndex:z,ariaRowSpan:z,ariaSelected:O,ariaSetSize:z,ariaSort:null,ariaValueMax:z,ariaValueMin:z,ariaValueNow:z,ariaValueText:null,role:null}});function _(M,pe){return pe==="role"?pe:"aria-"+pe.slice(4).toLowerCase()}},38567:function(Q,C,d){"use strict";var b=d(70167),I=d(79318),O=d(85804),z=b.boolean,W=b.overloadedBoolean,_=b.booleanish,M=b.number,pe=b.spaceSeparated,ue=b.commaSeparated;Q.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:ue,acceptCharset:pe,accessKey:pe,action:null,allow:null,allowFullScreen:z,allowPaymentRequest:z,allowUserMedia:z,alt:null,as:null,async:z,autoCapitalize:null,autoComplete:pe,autoFocus:z,autoPlay:z,capture:z,charSet:null,checked:z,cite:null,className:pe,cols:M,colSpan:null,content:null,contentEditable:_,controls:z,controlsList:pe,coords:M|ue,crossOrigin:null,data:null,dateTime:null,decoding:null,default:z,defer:z,dir:null,dirName:null,disabled:z,download:W,draggable:_,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:z,formTarget:null,headers:pe,height:M,hidden:z,high:M,href:null,hrefLang:null,htmlFor:pe,httpEquiv:pe,id:null,imageSizes:null,imageSrcSet:ue,inputMode:null,integrity:null,is:null,isMap:z,itemId:null,itemProp:pe,itemRef:pe,itemScope:z,itemType:pe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:z,low:M,manifest:null,max:null,maxLength:M,media:null,method:null,min:null,minLength:M,multiple:z,muted:z,name:null,nonce:null,noModule:z,noValidate:z,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:z,optimum:M,pattern:null,ping:pe,placeholder:null,playsInline:z,poster:null,preload:null,readOnly:z,referrerPolicy:null,rel:pe,required:z,reversed:z,rows:M,rowSpan:M,sandbox:pe,scope:null,scoped:z,seamless:z,selected:z,shape:null,size:M,sizes:null,slot:null,span:M,spellCheck:_,src:null,srcDoc:null,srcLang:null,srcSet:ue,start:M,step:null,style:null,tabIndex:M,target:null,title:null,translate:null,type:null,typeMustMatch:z,useMap:null,value:_,width:M,wrap:null,align:null,aLink:null,archive:pe,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:z,declare:z,event:null,face:null,frame:null,frameBorder:null,hSpace:M,leftMargin:M,link:null,longDesc:null,lowSrc:null,marginHeight:M,marginWidth:M,noResize:z,noHref:z,noShade:z,noWrap:z,object:null,profile:null,prompt:null,rev:null,rightMargin:M,rules:null,scheme:null,scrolling:_,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:z,disableRemotePlayback:z,prefix:null,property:null,results:M,security:null,unselectable:null}})},85804:function(Q,C,d){"use strict";var b=d(56432);Q.exports=I;function I(O,z){return b(O,z.toLowerCase())}},56432:function(Q){"use strict";Q.exports=C;function C(d,b){return b in d?d[b]:b}},79318:function(Q,C,d){"use strict";var b=d(47178),I=d(44347),O=d(19095);Q.exports=z;function z(W){var _=W.space,M=W.mustUseProperty||[],pe=W.attributes||{},ue=W.properties,ne=W.transform,Pe={},ke={},rt,Ue;for(rt in ue)Ue=new O(rt,ne(pe,rt),ue[rt],_),M.indexOf(rt)!==-1&&(Ue.mustUseProperty=!0),Pe[rt]=Ue,ke[b(rt)]=rt,ke[b(Ue.attribute)]=rt;return new I(Pe,ke,_)}},19095:function(Q,C,d){"use strict";var b=d(1969),I=d(70167);Q.exports=W,W.prototype=new b,W.prototype.defined=!0;var O=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],z=O.length;function W(M,pe,ue,ne){var Pe=-1,ke;for(_(this,"space",ne),b.call(this,M,pe);++Pe<z;)ke=O[Pe],_(this,ke,(ue&I[ke])===I[ke])}function _(M,pe,ue){ue&&(M[pe]=ue)}},1969:function(Q){"use strict";Q.exports=d;var C=d.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 d(b,I){this.property=b,this.attribute=I}},83576:function(Q,C,d){"use strict";var b=d(97270),I=d(44347);Q.exports=O;function O(z){for(var W=z.length,_=[],M=[],pe=-1,ue,ne;++pe<W;)ue=z[pe],_.push(ue.property),M.push(ue.normal),ne=ue.space;return new I(b.apply(null,_),b.apply(null,M),ne)}},44347:function(Q){"use strict";Q.exports=d;var C=d.prototype;C.space=null,C.normal={},C.property={};function d(b,I,O){this.property=b,this.normal=I,O&&(this.space=O)}},70167:function(Q,C){"use strict";var d=0;C.boolean=b(),C.booleanish=b(),C.overloadedBoolean=b(),C.number=b(),C.spaceSeparated=b(),C.commaSeparated=b(),C.commaOrSpaceSeparated=b();function b(){return Math.pow(2,++d)}},8179:function(Q,C,d){"use strict";var b=d(79318);Q.exports=b({space:"xlink",transform:I,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function I(O,z){return"xlink:"+z.slice(5).toLowerCase()}},59780:function(Q,C,d){"use strict";var b=d(79318);Q.exports=b({space:"xml",transform:I,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function I(O,z){return"xml:"+z.slice(3).toLowerCase()}},68244:function(Q,C,d){"use strict";var b=d(79318),I=d(85804);Q.exports=b({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:I,properties:{xmlns:null,xmlnsXLink:null}})},47178:function(Q){"use strict";Q.exports=C;function C(d){return d.toLowerCase()}},17115:function(Q,C,d){"use strict";d.d(C,{ZP:function(){return M}});var b=d(33606),I=d(59301),O=d(47273),z=0,W=(0,O.Z)();function _(){var pe;return W?(pe=z,z+=1):pe="TEST_OR_SSR",pe}function M(pe){var ue=I.useState(),ne=(0,b.Z)(ue,2),Pe=ne[0],ke=ne[1];return I.useEffect(function(){ke("rc_select_".concat(_()))},[]),pe||Pe}},77861:function(Q,C,d){"use strict";d.d(C,{Ac:function(){return Ct},Xo:function(){return Gn},Wx:function(){return ci},ZP:function(){return Hn},lk:function(){return ge}});var b=d(92413),I=d(26407),O=d(400),z=d(33708),W=d(33606),_=d(37061),M=d(39559),pe=d(18929),ue=d(48736),ne=d(59301),Pe=d(92310),ke=d.n(Pe),rt=d(34280),Ue=d(49658),Ie=d(10228),De=d(8654),Fe=function(Ge){var fn=Ge.className,Sn=Ge.customizeIcon,ti=Ge.customizeIconProps,Kn=Ge.onMouseDown,pt=Ge.onClick,gn=Ge.children,tn;return typeof Sn=="function"?tn=Sn(ti):tn=Sn,ne.createElement("span",{className:fn,onMouseDown:function(ft){ft.preventDefault(),Kn&&Kn(ft)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:pt,"aria-hidden":!0},tn!==void 0?tn:ne.createElement("span",{className:ke()(fn.split(/\s+/).map(function(xi){return"".concat(xi,"-icon")}))},gn))},de=Fe;function me(gt,Ge,fn,Sn,ti){var Kn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,pt=arguments.length>6?arguments[6]:void 0,gn=arguments.length>7?arguments[7]:void 0,tn=ne.useMemo(function(){if((0,M.Z)(Sn)==="object")return Sn.clearIcon;if(ti)return ti},[Sn,ti]),xi=ne.useMemo(function(){return!!(!Kn&&Sn&&(fn.length||pt)&&!(gn==="combobox"&&pt===""))},[Sn,Kn,fn.length,pt,gn]);return{allowClear:xi,clearIcon:ne.createElement(de,{className:"".concat(gt,"-clear"),onMouseDown:Ge,customizeIcon:tn},"\xD7")}}var we=ne.createContext(null);function ge(){return ne.useContext(we)}function Te(){var gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Ge=ne.useState(!1),fn=(0,W.Z)(Ge,2),Sn=fn[0],ti=fn[1],Kn=ne.useRef(null),pt=function(){window.clearTimeout(Kn.current)};ne.useEffect(function(){return pt},[]);var gn=function(xi,ft){pt(),Kn.current=window.setTimeout(function(){ti(xi),ft&&ft()},gt)};return[Sn,gn,pt]}function ee(){var gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Ge=ne.useRef(null),fn=ne.useRef(null);ne.useEffect(function(){return function(){window.clearTimeout(fn.current)}},[]);function Sn(ti){(ti||Ge.current===null)&&(Ge.current=ti),window.clearTimeout(fn.current),fn.current=window.setTimeout(function(){Ge.current=null},gt)}return[function(){return Ge.current},Sn]}function Ce(gt,Ge,fn,Sn){var ti=ne.useRef(null);ti.current={open:Ge,triggerOpen:fn,customizedTrigger:Sn},ne.useEffect(function(){function Kn(pt){var gn;if(!((gn=ti.current)!==null&&gn!==void 0&&gn.customizedTrigger)){var tn=pt.target;tn.shadowRoot&&pt.composed&&(tn=pt.composedPath()[0]||tn),ti.current.open&>().filter(function(xi){return xi}).every(function(xi){return!xi.contains(tn)&&xi!==tn})&&ti.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Kn),function(){return window.removeEventListener("mousedown",Kn)}},[])}var Ne=d(26112),Le=d(11780),Ke=function(Ge,fn){var Sn,ti,Kn=Ge.prefixCls,pt=Ge.id,gn=Ge.inputElement,tn=Ge.disabled,xi=Ge.tabIndex,ft=Ge.autoFocus,Fn=Ge.autoComplete,Mt=Ge.editable,qe=Ge.activeDescendantId,D=Ge.value,Gt=Ge.maxLength,dn=Ge.onKeyDown,xt=Ge.onMouseDown,En=Ge.onChange,Mn=Ge.onPaste,ki=Ge.onCompositionStart,Un=Ge.onCompositionEnd,ot=Ge.open,Bi=Ge.attrs,hr=gn||ne.createElement("input",null),Kt=hr,Qi=Kt.ref,J=Kt.props,ae=J.onKeyDown,Yn=J.onChange,_e=J.onMouseDown,Et=J.onCompositionStart,Ni=J.onCompositionEnd,Pn=J.style;return(0,ue.Kp)(!("maxLength"in hr.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),hr=ne.cloneElement(hr,(0,z.Z)((0,z.Z)((0,z.Z)({type:"search"},J),{},{id:pt,ref:(0,De.sQ)(fn,Qi),disabled:tn,tabIndex:xi,autoComplete:Fn||"off",autoFocus:ft,className:ke()("".concat(Kn,"-selection-search-input"),(Sn=hr)===null||Sn===void 0||(ti=Sn.props)===null||ti===void 0?void 0:ti.className),role:"combobox","aria-label":"Search","aria-expanded":ot||!1,"aria-haspopup":"listbox","aria-owns":"".concat(pt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(pt,"_list"),"aria-activedescendant":ot?qe:void 0},Bi),{},{value:Mt?D:"",maxLength:Gt,readOnly:!Mt,unselectable:Mt?null:"on",style:(0,z.Z)((0,z.Z)({},Pn),{},{opacity:Mt?null:0}),onKeyDown:function(Zt){dn(Zt),ae&&ae(Zt)},onMouseDown:function(Zt){xt(Zt),_e&&_e(Zt)},onChange:function(Zt){En(Zt),Yn&&Yn(Zt)},onCompositionStart:function(Zt){ki(Zt),Et&&Et(Zt)},onCompositionEnd:function(Zt){Un(Zt),Ni&&Ni(Zt)},onPaste:Mn})),hr},nt=ne.forwardRef(Ke);nt.displayName="Input";var ie=nt;function at(gt){return Array.isArray(gt)?gt:gt!==void 0?[gt]:[]}var Ze=typeof window!="undefined"&&window.document&&window.document.documentElement,Bt=Ze;function bt(gt){return gt!=null}function kt(gt){return!gt&>!==0}function Tt(gt){return["string","number"].includes((0,M.Z)(gt))}function wn(gt){var Ge=void 0;return gt&&(Tt(gt.title)?Ge=gt.title.toString():Tt(gt.label)&&(Ge=gt.label.toString())),Ge}function Xe(gt,Ge){Bt?ne.useLayoutEffect(gt,Ge):ne.useEffect(gt,Ge)}function se(gt){var Ge;return(Ge=gt.key)!==null&&Ge!==void 0?Ge:gt.value}var le=function(Ge){Ge.preventDefault(),Ge.stopPropagation()},_t=function(Ge){var fn=Ge.id,Sn=Ge.prefixCls,ti=Ge.values,Kn=Ge.open,pt=Ge.searchValue,gn=Ge.autoClearSearchValue,tn=Ge.inputRef,xi=Ge.placeholder,ft=Ge.disabled,Fn=Ge.mode,Mt=Ge.showSearch,qe=Ge.autoFocus,D=Ge.autoComplete,Gt=Ge.activeDescendantId,dn=Ge.tabIndex,xt=Ge.removeIcon,En=Ge.maxTagCount,Mn=Ge.maxTagTextLength,ki=Ge.maxTagPlaceholder,Un=ki===void 0?function(Ar){return"+ ".concat(Ar.length," ...")}:ki,ot=Ge.tagRender,Bi=Ge.onToggleOpen,hr=Ge.onRemove,Kt=Ge.onInputChange,Qi=Ge.onInputPaste,J=Ge.onInputKeyDown,ae=Ge.onInputMouseDown,Yn=Ge.onInputCompositionStart,_e=Ge.onInputCompositionEnd,Et=ne.useRef(null),Ni=(0,ne.useState)(0),Pn=(0,W.Z)(Ni,2),Ki=Pn[0],Zt=Pn[1],Ii=(0,ne.useState)(!1),Wt=(0,W.Z)(Ii,2),Yi=Wt[0],io=Wt[1],It="".concat(Sn,"-selection"),Mo=Kn||Fn==="multiple"&&gn===!1||Fn==="tags"?pt:"",Jt=Fn==="tags"||Fn==="multiple"&&gn===!1||Mt&&(Kn||Yi);Xe(function(){Zt(Et.current.scrollWidth)},[Mo]);function _i(Ar,eo,br,fo,qi){return ne.createElement("span",{className:ke()("".concat(It,"-item"),(0,O.Z)({},"".concat(It,"-item-disabled"),br)),title:wn(Ar)},ne.createElement("span",{className:"".concat(It,"-item-content")},eo),fo&&ne.createElement(de,{className:"".concat(It,"-item-remove"),onMouseDown:le,onClick:qi,customizeIcon:xt},"\xD7"))}function Li(Ar,eo,br,fo,qi){var Xr=function(Vi){le(Vi),Bi(!Kn)};return ne.createElement("span",{onMouseDown:Xr},ot({label:eo,value:Ar,disabled:br,closable:fo,onClose:qi}))}function Sr(Ar){var eo=Ar.disabled,br=Ar.label,fo=Ar.value,qi=!ft&&!eo,Xr=br;if(typeof Mn=="number"&&(typeof br=="string"||typeof br=="number")){var Ri=String(Xr);Ri.length>Mn&&(Xr="".concat(Ri.slice(0,Mn),"..."))}var Vi=function($r){$r&&$r.stopPropagation(),hr(Ar)};return typeof ot=="function"?Li(fo,Xr,eo,qi,Vi):_i(Ar,Xr,eo,qi,Vi)}function Or(Ar){var eo=typeof Un=="function"?Un(Ar):Un;return _i({title:eo},eo,!1)}var qn=ne.createElement("div",{className:"".concat(It,"-search"),style:{width:Ki},onFocus:function(){io(!0)},onBlur:function(){io(!1)}},ne.createElement(ie,{ref:tn,open:Kn,prefixCls:Sn,id:fn,inputElement:null,disabled:ft,autoFocus:qe,autoComplete:D,editable:Jt,activeDescendantId:Gt,value:Mo,onKeyDown:J,onMouseDown:ae,onChange:Kt,onPaste:Qi,onCompositionStart:Yn,onCompositionEnd:_e,tabIndex:dn,attrs:(0,Ne.Z)(Ge,!0)}),ne.createElement("span",{ref:Et,className:"".concat(It,"-search-mirror"),"aria-hidden":!0},Mo,"\xA0")),ce=ne.createElement(Le.Z,{prefixCls:"".concat(It,"-overflow"),data:ti,renderItem:Sr,renderRest:Or,suffix:qn,itemKey:se,maxCount:En});return ne.createElement(ne.Fragment,null,ce,!ti.length&&!Mo&&ne.createElement("span",{className:"".concat(It,"-placeholder")},xi))},jt=_t,yt=function(Ge){var fn=Ge.inputElement,Sn=Ge.prefixCls,ti=Ge.id,Kn=Ge.inputRef,pt=Ge.disabled,gn=Ge.autoFocus,tn=Ge.autoComplete,xi=Ge.activeDescendantId,ft=Ge.mode,Fn=Ge.open,Mt=Ge.values,qe=Ge.placeholder,D=Ge.tabIndex,Gt=Ge.showSearch,dn=Ge.searchValue,xt=Ge.activeValue,En=Ge.maxLength,Mn=Ge.onInputKeyDown,ki=Ge.onInputMouseDown,Un=Ge.onInputChange,ot=Ge.onInputPaste,Bi=Ge.onInputCompositionStart,hr=Ge.onInputCompositionEnd,Kt=Ge.title,Qi=ne.useState(!1),J=(0,W.Z)(Qi,2),ae=J[0],Yn=J[1],_e=ft==="combobox",Et=_e||Gt,Ni=Mt[0],Pn=dn||"";_e&&xt&&!ae&&(Pn=xt),ne.useEffect(function(){_e&&Yn(!1)},[_e,xt]);var Ki=ft!=="combobox"&&!Fn&&!Gt?!1:!!Pn,Zt=Kt===void 0?wn(Ni):Kt,Ii=function(){if(Ni)return null;var Yi=Ki?{visibility:"hidden"}:void 0;return ne.createElement("span",{className:"".concat(Sn,"-selection-placeholder"),style:Yi},qe)};return ne.createElement(ne.Fragment,null,ne.createElement("span",{className:"".concat(Sn,"-selection-search")},ne.createElement(ie,{ref:Kn,prefixCls:Sn,id:ti,open:Fn,inputElement:fn,disabled:pt,autoFocus:gn,autoComplete:tn,editable:Et,activeDescendantId:xi,value:Pn,onKeyDown:Mn,onMouseDown:ki,onChange:function(Yi){Yn(!0),Un(Yi)},onPaste:ot,onCompositionStart:Bi,onCompositionEnd:hr,tabIndex:D,attrs:(0,Ne.Z)(Ge,!0),maxLength:_e?En:void 0})),!_e&&Ni?ne.createElement("span",{className:"".concat(Sn,"-selection-item"),title:Zt,style:Ki?{visibility:"hidden"}:void 0},Ni.label):null,Ii())},ln=yt;function Dt(gt){return![Ie.Z.ESC,Ie.Z.SHIFT,Ie.Z.BACKSPACE,Ie.Z.TAB,Ie.Z.WIN_KEY,Ie.Z.ALT,Ie.Z.META,Ie.Z.WIN_KEY_RIGHT,Ie.Z.CTRL,Ie.Z.SEMICOLON,Ie.Z.EQUALS,Ie.Z.CAPS_LOCK,Ie.Z.CONTEXT_MENU,Ie.Z.F1,Ie.Z.F2,Ie.Z.F3,Ie.Z.F4,Ie.Z.F5,Ie.Z.F6,Ie.Z.F7,Ie.Z.F8,Ie.Z.F9,Ie.Z.F10,Ie.Z.F11,Ie.Z.F12].includes(gt)}var ui=function(Ge,fn){var Sn=(0,ne.useRef)(null),ti=(0,ne.useRef)(!1),Kn=Ge.prefixCls,pt=Ge.open,gn=Ge.mode,tn=Ge.showSearch,xi=Ge.tokenWithEnter,ft=Ge.autoClearSearchValue,Fn=Ge.onSearch,Mt=Ge.onSearchSubmit,qe=Ge.onToggleOpen,D=Ge.onInputKeyDown,Gt=Ge.domRef;ne.useImperativeHandle(fn,function(){return{focus:function(){Sn.current.focus()},blur:function(){Sn.current.blur()}}});var dn=ee(0),xt=(0,W.Z)(dn,2),En=xt[0],Mn=xt[1],ki=function(Pn){var Ki=Pn.which;(Ki===Ie.Z.UP||Ki===Ie.Z.DOWN)&&Pn.preventDefault(),D&&D(Pn),Ki===Ie.Z.ENTER&&gn==="tags"&&!ti.current&&!pt&&(Mt==null||Mt(Pn.target.value)),Dt(Ki)&&qe(!0)},Un=function(){Mn(!0)},ot=(0,ne.useRef)(null),Bi=function(Pn){Fn(Pn,!0,ti.current)!==!1&&qe(!0)},hr=function(){ti.current=!0},Kt=function(Pn){ti.current=!1,gn!=="combobox"&&Bi(Pn.target.value)},Qi=function(Pn){var Ki=Pn.target.value;if(xi&&ot.current&&/[\r\n]/.test(ot.current)){var Zt=ot.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Ki=Ki.replace(Zt,ot.current)}ot.current=null,Bi(Ki)},J=function(Pn){var Ki=Pn.clipboardData,Zt=Ki.getData("text");ot.current=Zt},ae=function(Pn){var Ki=Pn.target;if(Ki!==Sn.current){var Zt=document.body.style.msTouchAction!==void 0;Zt?setTimeout(function(){Sn.current.focus()}):Sn.current.focus()}},Yn=function(Pn){var Ki=En();Pn.target!==Sn.current&&!Ki&&gn!=="combobox"&&Pn.preventDefault(),(gn!=="combobox"&&(!tn||!Ki)||!pt)&&(pt&&ft!==!1&&Fn("",!0,!1),qe())},_e={inputRef:Sn,onInputKeyDown:ki,onInputMouseDown:Un,onInputChange:Qi,onInputPaste:J,onInputCompositionStart:hr,onInputCompositionEnd:Kt},Et=gn==="multiple"||gn==="tags"?ne.createElement(jt,(0,b.Z)({},Ge,_e)):ne.createElement(ln,(0,b.Z)({},Ge,_e));return ne.createElement("div",{ref:Gt,className:"".concat(Kn,"-selector"),onClick:ae,onMouseDown:Yn},Et)},On=ne.forwardRef(ui);On.displayName="Selector";var ri=On,Xn=d(35593),Tn=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Nn=function(Ge){var fn=Ge===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:fn,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:fn,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:fn,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:fn,adjustY:1},htmlRegion:"scroll"}}},xe=function(Ge,fn){var Sn=Ge.prefixCls,ti=Ge.disabled,Kn=Ge.visible,pt=Ge.children,gn=Ge.popupElement,tn=Ge.animation,xi=Ge.transitionName,ft=Ge.dropdownStyle,Fn=Ge.dropdownClassName,Mt=Ge.direction,qe=Mt===void 0?"ltr":Mt,D=Ge.placement,Gt=Ge.builtinPlacements,dn=Ge.dropdownMatchSelectWidth,xt=Ge.dropdownRender,En=Ge.dropdownAlign,Mn=Ge.getPopupContainer,ki=Ge.empty,Un=Ge.getTriggerDOMNode,ot=Ge.onPopupVisibleChange,Bi=Ge.onPopupMouseEnter,hr=(0,_.Z)(Ge,Tn),Kt="".concat(Sn,"-dropdown"),Qi=gn;xt&&(Qi=xt(gn));var J=ne.useMemo(function(){return Gt||Nn(dn)},[Gt,dn]),ae=tn?"".concat(Kt,"-").concat(tn):xi,Yn=typeof dn=="number",_e=ne.useMemo(function(){return Yn?null:dn===!1?"minWidth":"width"},[dn,Yn]),Et=ft;Yn&&(Et=(0,z.Z)((0,z.Z)({},Et),{},{width:dn}));var Ni=ne.useRef(null);return ne.useImperativeHandle(fn,function(){return{getPopupElement:function(){return Ni.current}}}),ne.createElement(Xn.Z,(0,b.Z)({},hr,{showAction:ot?["click"]:[],hideAction:ot?["click"]:[],popupPlacement:D||(qe==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:J,prefixCls:Kt,popupTransitionName:ae,popup:ne.createElement("div",{ref:Ni,onMouseEnter:Bi},Qi),stretch:_e,popupAlign:En,popupVisible:Kn,getPopupContainer:Mn,popupClassName:ke()(Fn,(0,O.Z)({},"".concat(Kt,"-empty"),ki)),popupStyle:Et,getTriggerDOMNode:Un,onPopupVisibleChange:ot}),pt)},P=ne.forwardRef(xe);P.displayName="SelectTrigger";var k=P,j=d(34589);function X(gt,Ge){var fn=gt.key,Sn;return"value"in gt&&(Sn=gt.value),fn!=null?fn:Sn!==void 0?Sn:"rc-index-key-".concat(Ge)}function N(gt,Ge){var fn=gt||{},Sn=fn.label,ti=fn.value,Kn=fn.options,pt=fn.groupLabel,gn=Sn||(Ge?"children":"label");return{label:gn,value:ti||"value",options:Kn||"options",groupLabel:pt||gn}}function Re(gt){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},fn=Ge.fieldNames,Sn=Ge.childrenAsData,ti=[],Kn=N(fn,!1),pt=Kn.label,gn=Kn.value,tn=Kn.options,xi=Kn.groupLabel;function ft(Fn,Mt){Fn.forEach(function(qe){if(Mt||!(tn in qe)){var D=qe[gn];ti.push({key:X(qe,ti.length),groupOption:Mt,data:qe,label:qe[pt],value:D})}else{var Gt=qe[xi];Gt===void 0&&Sn&&(Gt=qe.label),ti.push({key:X(qe,ti.length),group:!0,data:qe,label:Gt}),ft(qe[tn],!0)}})}return ft(gt,!1),ti}function wt(gt){var Ge=(0,z.Z)({},gt);return"props"in Ge||Object.defineProperty(Ge,"props",{get:function(){return(0,ue.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Ge}}),Ge}function ze(gt,Ge){if(!Ge||!Ge.length)return null;var fn=!1;function Sn(Kn,pt){var gn=(0,j.Z)(pt),tn=gn[0],xi=gn.slice(1);if(!tn)return[Kn];var ft=Kn.split(tn);return fn=fn||ft.length>1,ft.reduce(function(Fn,Mt){return[].concat((0,I.Z)(Fn),(0,I.Z)(Sn(Mt,xi)))},[]).filter(function(Fn){return Fn})}var ti=Sn(gt,Ge);return fn?ti:null}var Oe=["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"],mt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function lt(gt){return gt==="tags"||gt==="multiple"}var Qe=ne.forwardRef(function(gt,Ge){var fn,Sn,ti=gt.id,Kn=gt.prefixCls,pt=gt.className,gn=gt.showSearch,tn=gt.tagRender,xi=gt.direction,ft=gt.omitDomProps,Fn=gt.displayValues,Mt=gt.onDisplayValuesChange,qe=gt.emptyOptions,D=gt.notFoundContent,Gt=D===void 0?"Not Found":D,dn=gt.onClear,xt=gt.mode,En=gt.disabled,Mn=gt.loading,ki=gt.getInputElement,Un=gt.getRawInputElement,ot=gt.open,Bi=gt.defaultOpen,hr=gt.onDropdownVisibleChange,Kt=gt.activeValue,Qi=gt.onActiveValueChange,J=gt.activeDescendantId,ae=gt.searchValue,Yn=gt.autoClearSearchValue,_e=gt.onSearch,Et=gt.onSearchSplit,Ni=gt.tokenSeparators,Pn=gt.allowClear,Ki=gt.suffixIcon,Zt=gt.clearIcon,Ii=gt.OptionList,Wt=gt.animation,Yi=gt.transitionName,io=gt.dropdownStyle,It=gt.dropdownClassName,Mo=gt.dropdownMatchSelectWidth,Jt=gt.dropdownRender,_i=gt.dropdownAlign,Li=gt.placement,Sr=gt.builtinPlacements,Or=gt.getPopupContainer,qn=gt.showAction,ce=qn===void 0?[]:qn,Ar=gt.onFocus,eo=gt.onBlur,br=gt.onKeyUp,fo=gt.onKeyDown,qi=gt.onMouseDown,Xr=(0,_.Z)(gt,Oe),Ri=lt(xt),Vi=(gn!==void 0?gn:Ri)||xt==="combobox",Hi=(0,z.Z)({},Xr);mt.forEach(function(Ur){delete Hi[Ur]}),ft==null||ft.forEach(function(Ur){delete Hi[Ur]});var $r=ne.useState(!1),Vr=(0,W.Z)($r,2),wo=Vr[0],Ko=Vr[1];ne.useEffect(function(){Ko((0,Ue.Z)())},[]);var mi=ne.useRef(null),Rs=ne.useRef(null),fs=ne.useRef(null),cs=ne.useRef(null),Bs=ne.useRef(null),ca=Te(),Ya=(0,W.Z)(ca,3),ra=Ya[0],Ha=Ya[1],ya=Ya[2];ne.useImperativeHandle(Ge,function(){var Ur,bo;return{focus:(Ur=cs.current)===null||Ur===void 0?void 0:Ur.focus,blur:(bo=cs.current)===null||bo===void 0?void 0:bo.blur,scrollTo:function(is){var qr;return(qr=Bs.current)===null||qr===void 0?void 0:qr.scrollTo(is)}}});var ns=ne.useMemo(function(){var Ur;if(xt!=="combobox")return ae;var bo=(Ur=Fn[0])===null||Ur===void 0?void 0:Ur.value;return typeof bo=="string"||typeof bo=="number"?String(bo):""},[ae,xt,Fn]),Ht=xt==="combobox"&&typeof ki=="function"&&ki()||null,Ws=typeof Un=="function"&&Un(),Eu=(0,De.x1)(Rs,Ws==null||(fn=Ws.props)===null||fn===void 0?void 0:fn.ref),Ml=ne.useState(!1),po=(0,W.Z)(Ml,2),_o=po[0],Ss=po[1];(0,rt.Z)(function(){Ss(!0)},[]);var Ut=(0,pe.Z)(!1,{defaultValue:Bi,value:ot}),zr=(0,W.Z)(Ut,2),Co=zr[0],ba=zr[1],Er=_o?Co:!1,yn=!Gt&&qe;(En||yn&&Er&&xt==="combobox")&&(Er=!1);var pr=yn?!1:Er,pi=ne.useCallback(function(Ur){var bo=Ur!==void 0?Ur:!Er;En||(ba(bo),Er!==bo&&(hr==null||hr(bo)))},[En,Er,ba,hr]),Yo=ne.useMemo(function(){return(Ni||[]).some(function(Ur){return[`
|
|
|
`,`\r
|
|
|
`].includes(Ur)})},[Ni]),Ns=function(bo,hs,is){var qr=!0,rs=bo;Qi==null||Qi(null);var ps=is?null:ze(bo,Ni);return xt!=="combobox"&&ps&&(rs="",Et==null||Et(ps),pi(!1),qr=!1),_e&&ns!==rs&&_e(rs,{source:hs?"typing":"effect"}),qr},ha=function(bo){!bo||!bo.trim()||_e(bo,{source:"submit"})};ne.useEffect(function(){!Er&&!Ri&&xt!=="combobox"&&Ns("",!1,!1)},[Er]),ne.useEffect(function(){Co&&En&&ba(!1),En&&Ha(!1)},[En]);var Oa=ee(),Ca=(0,W.Z)(Oa,2),oi=Ca[0],Di=Ca[1],Qo=function(bo){var hs=oi(),is=bo.which;if(is===Ie.Z.ENTER&&(xt!=="combobox"&&bo.preventDefault(),Er||pi(!0)),Di(!!ns),is===Ie.Z.BACKSPACE&&!hs&&Ri&&!ns&&Fn.length){for(var qr=(0,I.Z)(Fn),rs=null,ps=qr.length-1;ps>=0;ps-=1){var ks=qr[ps];if(!ks.disabled){qr.splice(ps,1),rs=ks;break}}rs&&Mt(qr,{type:"remove",values:[rs]})}for(var Es=arguments.length,Gl=new Array(Es>1?Es-1:0),Za=1;Za<Es;Za++)Gl[Za-1]=arguments[Za];if(Er&&Bs.current){var ws;(ws=Bs.current).onKeyDown.apply(ws,[bo].concat(Gl))}fo==null||fo.apply(void 0,[bo].concat(Gl))},Ta=function(bo){for(var hs=arguments.length,is=new Array(hs>1?hs-1:0),qr=1;qr<hs;qr++)is[qr-1]=arguments[qr];if(Er&&Bs.current){var rs;(rs=Bs.current).onKeyUp.apply(rs,[bo].concat(is))}br==null||br.apply(void 0,[bo].concat(is))},Go=function(bo){var hs=Fn.filter(function(is){return is!==bo});Mt(hs,{type:"remove",values:[bo]})},Js=ne.useRef(!1),kr=function(){Ha(!0),En||(Ar&&!Js.current&&Ar.apply(void 0,arguments),ce.includes("focus")&&pi(!0)),Js.current=!0},ol=function(){Ha(!1,function(){Js.current=!1,pi(!1)}),!En&&(ns&&(xt==="tags"?_e(ns,{source:"submit"}):xt==="multiple"&&_e("",{source:"blur"})),eo&&eo.apply(void 0,arguments))},La=[];ne.useEffect(function(){return function(){La.forEach(function(Ur){return clearTimeout(Ur)}),La.splice(0,La.length)}},[]);var Ra=function(bo){var hs,is=bo.target,qr=(hs=fs.current)===null||hs===void 0?void 0:hs.getPopupElement();if(qr&&qr.contains(is)){var rs=setTimeout(function(){var Gl=La.indexOf(rs);if(Gl!==-1&&La.splice(Gl,1),ya(),!wo&&!qr.contains(document.activeElement)){var Za;(Za=cs.current)===null||Za===void 0||Za.focus()}});La.push(rs)}for(var ps=arguments.length,ks=new Array(ps>1?ps-1:0),Es=1;Es<ps;Es++)ks[Es-1]=arguments[Es];qi==null||qi.apply(void 0,[bo].concat(ks))},zo=ne.useState({}),qs=(0,W.Z)(zo,2),Ol=qs[1];function Vs(){Ol({})}var As;Ws&&(As=function(bo){pi(bo)}),Ce(function(){var Ur;return[mi.current,(Ur=fs.current)===null||Ur===void 0?void 0:Ur.getPopupElement()]},pr,pi,!!Ws);var pl=ne.useMemo(function(){return(0,z.Z)((0,z.Z)({},gt),{},{notFoundContent:Gt,open:Er,triggerOpen:pr,id:ti,showSearch:Vi,multiple:Ri,toggleOpen:pi})},[gt,Gt,pr,Er,ti,Vi,Ri,pi]),Wo=!!Ki||Mn,$a;Wo&&($a=ne.createElement(de,{className:ke()("".concat(Kn,"-arrow"),(0,O.Z)({},"".concat(Kn,"-arrow-loading"),Mn)),customizeIcon:Ki,customizeIconProps:{loading:Mn,searchValue:ns,open:Er,focused:ra,showSearch:Vi}}));var wu=function(){var bo;dn==null||dn(),(bo=cs.current)===null||bo===void 0||bo.focus(),Mt([],{type:"clear",values:Fn}),Ns("",!1,!1)},Ll=me(Kn,wu,Fn,Pn,Zt,En,ns,xt),ea=Ll.allowClear,Ls=Ll.clearIcon,ja=ne.createElement(Ii,{ref:Bs}),$i=ke()(Kn,pt,(Sn={},(0,O.Z)(Sn,"".concat(Kn,"-focused"),ra),(0,O.Z)(Sn,"".concat(Kn,"-multiple"),Ri),(0,O.Z)(Sn,"".concat(Kn,"-single"),!Ri),(0,O.Z)(Sn,"".concat(Kn,"-allow-clear"),Pn),(0,O.Z)(Sn,"".concat(Kn,"-show-arrow"),Wo),(0,O.Z)(Sn,"".concat(Kn,"-disabled"),En),(0,O.Z)(Sn,"".concat(Kn,"-loading"),Mn),(0,O.Z)(Sn,"".concat(Kn,"-open"),Er),(0,O.Z)(Sn,"".concat(Kn,"-customize-input"),Ht),(0,O.Z)(Sn,"".concat(Kn,"-show-search"),Vi),Sn)),Na=ne.createElement(k,{ref:fs,disabled:En,prefixCls:Kn,visible:pr,popupElement:ja,animation:Wt,transitionName:Yi,dropdownStyle:io,dropdownClassName:It,direction:xi,dropdownMatchSelectWidth:Mo,dropdownRender:Jt,dropdownAlign:_i,placement:Li,builtinPlacements:Sr,getPopupContainer:Or,empty:qe,getTriggerDOMNode:function(){return Rs.current},onPopupVisibleChange:As,onPopupMouseEnter:Vs},Ws?ne.cloneElement(Ws,{ref:Eu}):ne.createElement(ri,(0,b.Z)({},gt,{domRef:Rs,prefixCls:Kn,inputElement:Ht,ref:cs,id:ti,showSearch:Vi,autoClearSearchValue:Yn,mode:xt,activeDescendantId:J,tagRender:tn,values:Fn,open:Er,onToggleOpen:pi,activeValue:Kt,searchValue:ns,onSearch:Ns,onSearchSubmit:ha,onRemove:Go,tokenWithEnter:Yo}))),Rl;return Ws?Rl=Na:Rl=ne.createElement("div",(0,b.Z)({className:$i},Hi,{ref:mi,onMouseDown:Ra,onKeyDown:Qo,onKeyUp:Ta,onFocus:kr,onBlur:ol}),ra&&!Er&&ne.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(Fn.map(function(Ur){var bo=Ur.label,hs=Ur.value;return["number","string"].includes((0,M.Z)(bo))?bo:hs}).join(", "))),Na,$a,ea&&Ls),ne.createElement(we.Provider,{value:pl},Rl)}),Ct=Qe,nn=function(gt,Ge){var fn=ne.useRef({values:new Map,options:new Map}),Sn=ne.useMemo(function(){var Kn=fn.current,pt=Kn.values,gn=Kn.options,tn=gt.map(function(Fn){if(Fn.label===void 0){var Mt;return(0,z.Z)((0,z.Z)({},Fn),{},{label:(Mt=pt.get(Fn.value))===null||Mt===void 0?void 0:Mt.label})}return Fn}),xi=new Map,ft=new Map;return tn.forEach(function(Fn){xi.set(Fn.value,Fn),ft.set(Fn.value,Ge.get(Fn.value)||gn.get(Fn.value))}),fn.current.values=xi,fn.current.options=ft,tn},[gt,Ge]),ti=ne.useCallback(function(Kn){return Ge.get(Kn)||fn.current.options.get(Kn)},[Ge]);return[Sn,ti]};function Yt(gt,Ge){return at(gt).join("").toUpperCase().includes(Ge)}var Ot=function(gt,Ge,fn,Sn,ti){return ne.useMemo(function(){if(!fn||Sn===!1)return gt;var Kn=Ge.options,pt=Ge.label,gn=Ge.value,tn=[],xi=typeof Sn=="function",ft=fn.toUpperCase(),Fn=xi?Sn:function(qe,D){return ti?Yt(D[ti],ft):D[Kn]?Yt(D[pt!=="children"?pt:"label"],ft):Yt(D[gn],ft)},Mt=xi?function(qe){return wt(qe)}:function(qe){return qe};return gt.forEach(function(qe){if(qe[Kn]){var D=Fn(fn,Mt(qe));if(D)tn.push(qe);else{var Gt=qe[Kn].filter(function(dn){return Fn(fn,Mt(dn))});Gt.length&&tn.push((0,z.Z)((0,z.Z)({},qe),{},(0,O.Z)({},Kn,Gt)))}return}Fn(fn,Mt(qe))&&tn.push(qe)}),tn},[gt,Sn,ti,fn,Ge])},on=d(17115),hn=d(11592),Ve=["children","value"],Pt=["children"];function Xt(gt){var Ge=gt,fn=Ge.key,Sn=Ge.props,ti=Sn.children,Kn=Sn.value,pt=(0,_.Z)(Sn,Ve);return(0,z.Z)({key:fn,value:Kn!==void 0?Kn:fn,children:ti},pt)}function qt(gt){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,hn.Z)(gt).map(function(fn,Sn){if(!ne.isValidElement(fn)||!fn.type)return null;var ti=fn,Kn=ti.type.isSelectOptGroup,pt=ti.key,gn=ti.props,tn=gn.children,xi=(0,_.Z)(gn,Pt);return Ge||!Kn?Xt(fn):(0,z.Z)((0,z.Z)({key:"__RC_SELECT_GRP__".concat(pt===null?Sn:pt,"__"),label:pt},xi),{},{options:qt(tn)})}).filter(function(fn){return fn})}function He(gt,Ge,fn,Sn,ti){return ne.useMemo(function(){var Kn=gt,pt=!gt;pt&&(Kn=qt(Ge));var gn=new Map,tn=new Map,xi=function(Mt,qe,D){D&&typeof D=="string"&&Mt.set(qe[D],qe)};function ft(Fn){for(var Mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,qe=0;qe<Fn.length;qe+=1){var D=Fn[qe];!D[fn.options]||Mt?(gn.set(D[fn.value],D),xi(tn,D,fn.label),xi(tn,D,Sn),xi(tn,D,ti)):ft(D[fn.options],!0)}}return ft(Kn),{options:Kn,valueOptions:gn,labelOptions:tn}},[gt,Ge,fn,Sn,ti])}function Rn(gt){var Ge=ne.useRef();Ge.current=gt;var fn=ne.useCallback(function(){return Ge.current.apply(Ge,arguments)},[]);return fn}var Cn=function(){return null};Cn.isSelectOptGroup=!0;var Gn=Cn,Ci=function(){return null};Ci.isSelectOption=!0;var ci=Ci,sn=d(80547),rn=d(2738),cr=d(4409),yr=ne.createContext(null),Zn=yr;function Mr(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var rr=["disabled","title","children","style","className"];function U(gt){return typeof gt=="string"||typeof gt=="number"}var mr=function(Ge,fn){var Sn=ge(),ti=Sn.prefixCls,Kn=Sn.id,pt=Sn.open,gn=Sn.multiple,tn=Sn.mode,xi=Sn.searchValue,ft=Sn.toggleOpen,Fn=Sn.notFoundContent,Mt=Sn.onPopupScroll,qe=ne.useContext(Zn),D=qe.flattenOptions,Gt=qe.onActiveValue,dn=qe.defaultActiveFirstOption,xt=qe.onSelect,En=qe.menuItemSelectedIcon,Mn=qe.rawValues,ki=qe.fieldNames,Un=qe.virtual,ot=qe.direction,Bi=qe.listHeight,hr=qe.listItemHeight,Kt="".concat(ti,"-item"),Qi=(0,sn.Z)(function(){return D},[pt,D],function(_i,Li){return Li[0]&&_i[1]!==Li[1]}),J=ne.useRef(null),ae=function(Li){Li.preventDefault()},Yn=function(Li){J.current&&J.current.scrollTo(typeof Li=="number"?{index:Li}:Li)},_e=function(Li){for(var Sr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Or=Qi.length,qn=0;qn<Or;qn+=1){var ce=(Li+qn*Sr+Or)%Or,Ar=Qi[ce],eo=Ar.group,br=Ar.data;if(!eo&&!br.disabled)return ce}return-1},Et=ne.useState(function(){return _e(0)}),Ni=(0,W.Z)(Et,2),Pn=Ni[0],Ki=Ni[1],Zt=function(Li){var Sr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Ki(Li);var Or={source:Sr?"keyboard":"mouse"},qn=Qi[Li];if(!qn){Gt(null,-1,Or);return}Gt(qn.value,Li,Or)};(0,ne.useEffect)(function(){Zt(dn!==!1?_e(0):-1)},[Qi.length,xi]);var Ii=ne.useCallback(function(_i){return Mn.has(_i)&&tn!=="combobox"},[tn,(0,I.Z)(Mn).toString(),Mn.size]);(0,ne.useEffect)(function(){var _i=setTimeout(function(){if(!gn&&pt&&Mn.size===1){var Sr=Array.from(Mn)[0],Or=Qi.findIndex(function(qn){var ce=qn.data;return ce.value===Sr});Or!==-1&&(Zt(Or),Yn(Or))}});if(pt){var Li;(Li=J.current)===null||Li===void 0||Li.scrollTo(void 0)}return function(){return clearTimeout(_i)}},[pt,xi,D.length]);var Wt=function(Li){Li!==void 0&&xt(Li,{selected:!Mn.has(Li)}),gn||ft(!1)};if(ne.useImperativeHandle(fn,function(){return{onKeyDown:function(Li){var Sr=Li.which,Or=Li.ctrlKey;switch(Sr){case Ie.Z.N:case Ie.Z.P:case Ie.Z.UP:case Ie.Z.DOWN:{var qn=0;if(Sr===Ie.Z.UP?qn=-1:Sr===Ie.Z.DOWN?qn=1:Mr()&&Or&&(Sr===Ie.Z.N?qn=1:Sr===Ie.Z.P&&(qn=-1)),qn!==0){var ce=_e(Pn+qn,qn);Yn(ce),Zt(ce,!0)}break}case Ie.Z.ENTER:{var Ar=Qi[Pn];Ar&&!Ar.data.disabled?Wt(Ar.value):Wt(void 0),pt&&Li.preventDefault();break}case Ie.Z.ESC:ft(!1),pt&&Li.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Li){Yn(Li)}}}),Qi.length===0)return ne.createElement("div",{role:"listbox",id:"".concat(Kn,"_list"),className:"".concat(Kt,"-empty"),onMouseDown:ae},Fn);var Yi=Object.keys(ki).map(function(_i){return ki[_i]}),io=function(Li){return Li.label};function It(_i,Li){var Sr=_i.group;return{role:Sr?"presentation":"option",id:"".concat(Kn,"_list_").concat(Li)}}var Mo=function(Li){var Sr=Qi[Li];if(!Sr)return null;var Or=Sr.data||{},qn=Or.value,ce=Sr.group,Ar=(0,Ne.Z)(Or,!0),eo=io(Sr);return Sr?ne.createElement("div",(0,b.Z)({"aria-label":typeof eo=="string"&&!ce?eo:null},Ar,{key:Li},It(Sr,Li),{"aria-selected":Ii(qn)}),qn):null},Jt={role:"listbox",id:"".concat(Kn,"_list")};return ne.createElement(ne.Fragment,null,Un&&ne.createElement("div",(0,b.Z)({},Jt,{style:{height:0,width:0,overflow:"hidden"}}),Mo(Pn-1),Mo(Pn),Mo(Pn+1)),ne.createElement(cr.Z,{itemKey:"key",ref:J,data:Qi,height:Bi,itemHeight:hr,fullHeight:!1,onMouseDown:ae,onScroll:Mt,virtual:Un,direction:ot,innerProps:Un?null:Jt},function(_i,Li){var Sr,Or=_i.group,qn=_i.groupOption,ce=_i.data,Ar=_i.label,eo=_i.value,br=ce.key;if(Or){var fo,qi=(fo=ce.title)!==null&&fo!==void 0?fo:U(Ar)?Ar.toString():void 0;return ne.createElement("div",{className:ke()(Kt,"".concat(Kt,"-group")),title:qi},Ar!==void 0?Ar:br)}var Xr=ce.disabled,Ri=ce.title,Vi=ce.children,Hi=ce.style,$r=ce.className,Vr=(0,_.Z)(ce,rr),wo=(0,rn.Z)(Vr,Yi),Ko=Ii(eo),mi="".concat(Kt,"-option"),Rs=ke()(Kt,mi,$r,(Sr={},(0,O.Z)(Sr,"".concat(mi,"-grouped"),qn),(0,O.Z)(Sr,"".concat(mi,"-active"),Pn===Li&&!Xr),(0,O.Z)(Sr,"".concat(mi,"-disabled"),Xr),(0,O.Z)(Sr,"".concat(mi,"-selected"),Ko),Sr)),fs=io(_i),cs=!En||typeof En=="function"||Ko,Bs=typeof fs=="number"?fs:fs||eo,ca=U(Bs)?Bs.toString():void 0;return Ri!==void 0&&(ca=Ri),ne.createElement("div",(0,b.Z)({},(0,Ne.Z)(wo),Un?{}:It(_i,Li),{"aria-selected":Ko,className:Rs,title:ca,onMouseMove:function(){Pn===Li||Xr||Zt(Li)},onClick:function(){Xr||Wt(eo)},style:Hi}),ne.createElement("div",{className:"".concat(mi,"-content")},Bs),ne.isValidElement(En)||Ko,cs&&ne.createElement(de,{className:"".concat(Kt,"-option-state"),customizeIcon:En,customizeIconProps:{isSelected:Ko}},Ko?"\u2713":null))}))},lr=ne.forwardRef(mr);lr.displayName="OptionList";var _r=lr;function Hr(gt){var Ge=gt.mode,fn=gt.options,Sn=gt.children,ti=gt.backfill,Kn=gt.allowClear,pt=gt.placeholder,gn=gt.getInputElement,tn=gt.showSearch,xi=gt.onSearch,ft=gt.defaultOpen,Fn=gt.autoFocus,Mt=gt.labelInValue,qe=gt.value,D=gt.inputValue,Gt=gt.optionLabelProp,dn=isMultiple(Ge),xt=tn!==void 0?tn:dn||Ge==="combobox",En=fn||convertChildrenToData(Sn);if(warning(Ge!=="tags"||En.every(function(ot){return!ot.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Ge==="tags"||Ge==="combobox"){var Mn=En.some(function(ot){return ot.options?ot.options.some(function(Bi){return typeof("value"in Bi?Bi.value:Bi.key)=="number"}):typeof("value"in ot?ot.value:ot.key)=="number"});warning(!Mn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Ge!=="combobox"||!Gt,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Ge==="combobox"||!ti,"`backfill` only works with `combobox` mode."),warning(Ge==="combobox"||!gn,"`getInputElement` only work with `combobox` mode."),noteOnce(Ge!=="combobox"||!gn||!Kn||!pt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),xi&&!xt&&Ge!=="combobox"&&Ge!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!ft||Fn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),qe!=null){var ki=toArray(qe);warning(!Mt||ki.every(function(ot){return _typeof(ot)==="object"&&("key"in ot||"value"in ot)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!dn||Array.isArray(qe),"`value` should be array when `mode` is `multiple` or `tags`")}if(Sn){var Un=null;toNodeArray(Sn).some(function(ot){if(!React.isValidElement(ot)||!ot.type)return!1;var Bi=ot,hr=Bi.type;if(hr.isSelectOption)return!1;if(hr.isSelectOptGroup){var Kt=toNodeArray(ot.props.children).every(function(Qi){return!React.isValidElement(Qi)||!ot.type||Qi.type.isSelectOption?!0:(Un=Qi.type,!1)});return!Kt}return Un=hr,!0}),Un&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Un.displayName||Un.name||Un,"`.")),warning(D===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function uo(gt,Ge){if(gt){var fn=function Sn(ti){for(var Kn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,pt=0;pt<ti.length;pt++){var gn=ti[pt];if(gn[Ge==null?void 0:Ge.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Kn&&Array.isArray(gn[Ge==null?void 0:Ge.options])&&Sn(gn[Ge==null?void 0:Ge.options],!0))break}};fn(gt)}}var Tr=null,Jr=["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"],fr=["inputValue"];function Xi(gt){return!gt||(0,M.Z)(gt)!=="object"}var di=ne.forwardRef(function(gt,Ge){var fn=gt.id,Sn=gt.mode,ti=gt.prefixCls,Kn=ti===void 0?"rc-select":ti,pt=gt.backfill,gn=gt.fieldNames,tn=gt.inputValue,xi=gt.searchValue,ft=gt.onSearch,Fn=gt.autoClearSearchValue,Mt=Fn===void 0?!0:Fn,qe=gt.onSelect,D=gt.onDeselect,Gt=gt.dropdownMatchSelectWidth,dn=Gt===void 0?!0:Gt,xt=gt.filterOption,En=gt.filterSort,Mn=gt.optionFilterProp,ki=gt.optionLabelProp,Un=gt.options,ot=gt.children,Bi=gt.defaultActiveFirstOption,hr=gt.menuItemSelectedIcon,Kt=gt.virtual,Qi=gt.direction,J=gt.listHeight,ae=J===void 0?200:J,Yn=gt.listItemHeight,_e=Yn===void 0?20:Yn,Et=gt.value,Ni=gt.defaultValue,Pn=gt.labelInValue,Ki=gt.onChange,Zt=(0,_.Z)(gt,Jr),Ii=(0,on.ZP)(fn),Wt=lt(Sn),Yi=!!(!Un&&ot),io=ne.useMemo(function(){return xt===void 0&&Sn==="combobox"?!1:xt},[xt,Sn]),It=ne.useMemo(function(){return N(gn,Yi)},[JSON.stringify(gn),Yi]),Mo=(0,pe.Z)("",{value:xi!==void 0?xi:tn,postState:function(yn){return yn||""}}),Jt=(0,W.Z)(Mo,2),_i=Jt[0],Li=Jt[1],Sr=He(Un,ot,It,Mn,ki),Or=Sr.valueOptions,qn=Sr.labelOptions,ce=Sr.options,Ar=ne.useCallback(function(Er){var yn=at(Er);return yn.map(function(pr){var pi,Yo,Ns,ha,Oa;if(Xi(pr))pi=pr;else{var Ca;Ns=pr.key,Yo=pr.label,pi=(Ca=pr.value)!==null&&Ca!==void 0?Ca:Ns}var oi=Or.get(pi);if(oi){var Di;if(Yo===void 0&&(Yo=oi==null?void 0:oi[ki||It.label]),Ns===void 0&&(Ns=(Di=oi==null?void 0:oi.key)!==null&&Di!==void 0?Di:pi),ha=oi==null?void 0:oi.disabled,Oa=oi==null?void 0:oi.title,0)var Qo}return{label:Yo,value:pi,key:Ns,disabled:ha,title:Oa}})},[It,ki,Or]),eo=(0,pe.Z)(Ni,{value:Et}),br=(0,W.Z)(eo,2),fo=br[0],qi=br[1],Xr=ne.useMemo(function(){var Er,yn=Ar(fo);return Sn==="combobox"&&kt((Er=yn[0])===null||Er===void 0?void 0:Er.value)?[]:yn},[fo,Ar,Sn]),Ri=nn(Xr,Or),Vi=(0,W.Z)(Ri,2),Hi=Vi[0],$r=Vi[1],Vr=ne.useMemo(function(){if(!Sn&&Hi.length===1){var Er=Hi[0];if(Er.value===null&&(Er.label===null||Er.label===void 0))return[]}return Hi.map(function(yn){var pr;return(0,z.Z)((0,z.Z)({},yn),{},{label:(pr=yn.label)!==null&&pr!==void 0?pr:yn.value})})},[Sn,Hi]),wo=ne.useMemo(function(){return new Set(Hi.map(function(Er){return Er.value}))},[Hi]);ne.useEffect(function(){if(Sn==="combobox"){var Er,yn=(Er=Hi[0])===null||Er===void 0?void 0:Er.value;Li(bt(yn)?String(yn):"")}},[Hi]);var Ko=Rn(function(Er,yn){var pr,pi=yn!=null?yn:Er;return pr={},(0,O.Z)(pr,It.value,Er),(0,O.Z)(pr,It.label,pi),pr}),mi=ne.useMemo(function(){if(Sn!=="tags")return ce;var Er=(0,I.Z)(ce),yn=function(pi){return Or.has(pi)};return(0,I.Z)(Hi).sort(function(pr,pi){return pr.value<pi.value?-1:1}).forEach(function(pr){var pi=pr.value;yn(pi)||Er.push(Ko(pi,pr.label))}),Er},[Ko,ce,Or,Hi,Sn]),Rs=Ot(mi,It,_i,io,Mn),fs=ne.useMemo(function(){return Sn!=="tags"||!_i||Rs.some(function(Er){return Er[Mn||"value"]===_i})||Rs.some(function(Er){return Er[It.value]===_i})?Rs:[Ko(_i)].concat((0,I.Z)(Rs))},[Ko,Mn,Sn,Rs,_i,It]),cs=ne.useMemo(function(){return En?(0,I.Z)(fs).sort(function(Er,yn){return En(Er,yn)}):fs},[fs,En]),Bs=ne.useMemo(function(){return Re(cs,{fieldNames:It,childrenAsData:Yi})},[cs,It,Yi]),ca=function(yn){var pr=Ar(yn);if(qi(pr),Ki&&(pr.length!==Hi.length||pr.some(function(Ns,ha){var Oa;return((Oa=Hi[ha])===null||Oa===void 0?void 0:Oa.value)!==(Ns==null?void 0:Ns.value)}))){var pi=Pn?pr:pr.map(function(Ns){return Ns.value}),Yo=pr.map(function(Ns){return wt($r(Ns.value))});Ki(Wt?pi:pi[0],Wt?Yo:Yo[0])}},Ya=ne.useState(null),ra=(0,W.Z)(Ya,2),Ha=ra[0],ya=ra[1],ns=ne.useState(0),Ht=(0,W.Z)(ns,2),Ws=Ht[0],Eu=Ht[1],Ml=Bi!==void 0?Bi:Sn!=="combobox",po=ne.useCallback(function(Er,yn){var pr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},pi=pr.source,Yo=pi===void 0?"keyboard":pi;Eu(yn),pt&&Sn==="combobox"&&Er!==null&&Yo==="keyboard"&&ya(String(Er))},[pt,Sn]),_o=function(yn,pr,pi){var Yo=function(){var Js,kr=$r(yn);return[Pn?{label:kr==null?void 0:kr[It.label],value:yn,key:(Js=kr==null?void 0:kr.key)!==null&&Js!==void 0?Js:yn}:yn,wt(kr)]};if(pr&&qe){var Ns=Yo(),ha=(0,W.Z)(Ns,2),Oa=ha[0],Ca=ha[1];qe(Oa,Ca)}else if(!pr&&D&&pi!=="clear"){var oi=Yo(),Di=(0,W.Z)(oi,2),Qo=Di[0],Ta=Di[1];D(Qo,Ta)}},Ss=Rn(function(Er,yn){var pr,pi=Wt?yn.selected:!0;pi?pr=Wt?[].concat((0,I.Z)(Hi),[Er]):[Er]:pr=Hi.filter(function(Yo){return Yo.value!==Er}),ca(pr),_o(Er,pi),Sn==="combobox"?ya(""):(!lt||Mt)&&(Li(""),ya(""))}),Ut=function(yn,pr){ca(yn);var pi=pr.type,Yo=pr.values;(pi==="remove"||pi==="clear")&&Yo.forEach(function(Ns){_o(Ns.value,!1,pi)})},zr=function(yn,pr){if(Li(yn),ya(null),pr.source==="submit"){var pi=(yn||"").trim();if(pi){var Yo=Array.from(new Set([].concat((0,I.Z)(wo),[pi])));ca(Yo),_o(pi,!0),Li("")}return}pr.source!=="blur"&&(Sn==="combobox"&&ca(yn),ft==null||ft(yn))},Co=function(yn){var pr=yn;Sn!=="tags"&&(pr=yn.map(function(Yo){var Ns=qn.get(Yo);return Ns==null?void 0:Ns.value}).filter(function(Yo){return Yo!==void 0}));var pi=Array.from(new Set([].concat((0,I.Z)(wo),(0,I.Z)(pr))));ca(pi),pi.forEach(function(Yo){_o(Yo,!0)})},ba=ne.useMemo(function(){var Er=Kt!==!1&&dn!==!1;return(0,z.Z)((0,z.Z)({},Sr),{},{flattenOptions:Bs,onActiveValue:po,defaultActiveFirstOption:Ml,onSelect:Ss,menuItemSelectedIcon:hr,rawValues:wo,fieldNames:It,virtual:Er,direction:Qi,listHeight:ae,listItemHeight:_e,childrenAsData:Yi})},[Sr,Bs,po,Ml,Ss,hr,wo,It,Kt,dn,ae,_e,Yi]);return ne.createElement(Zn.Provider,{value:ba},ne.createElement(Ct,(0,b.Z)({},Zt,{id:Ii,prefixCls:Kn,ref:Ge,omitDomProps:fr,mode:Sn,displayValues:Vr,onDisplayValuesChange:Ut,direction:Qi,searchValue:_i,onSearch:zr,autoClearSearchValue:Mt,onSearchSplit:Co,dropdownMatchSelectWidth:dn,OptionList:_r,emptyOptions:!Bs.length,activeValue:Ha,activeDescendantId:"".concat(Ii,"_list_").concat(Ws)})))}),ht=di;ht.Option=ci,ht.OptGroup=Gn;var _n=ht,Hn=_n},9296:function(Q,C,d){"use strict";d.r(C),d.d(C,{ResizableTextArea:function(){return nt},default:function(){return kt}});var b=d(92413),I=d(33708),O=d(400),z=d(39559),W=d(33606),_=d(37061),M=d(26407),pe=d(92310),ue=d.n(pe),ne=d(93681),Pe=d(5643),ke=d(18929),rt=d(59301),Ue=d(29301),Ie=d(34280),De=d(16089),Fe=`
|
|
|
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;
|
|
|
`,de=["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={},we;function ge(Tt){var wn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Xe=Tt.getAttribute("id")||Tt.getAttribute("data-reactid")||Tt.getAttribute("name");if(wn&&me[Xe])return me[Xe];var se=window.getComputedStyle(Tt),le=se.getPropertyValue("box-sizing")||se.getPropertyValue("-moz-box-sizing")||se.getPropertyValue("-webkit-box-sizing"),_t=parseFloat(se.getPropertyValue("padding-bottom"))+parseFloat(se.getPropertyValue("padding-top")),jt=parseFloat(se.getPropertyValue("border-bottom-width"))+parseFloat(se.getPropertyValue("border-top-width")),yt=de.map(function(Dt){return"".concat(Dt,":").concat(se.getPropertyValue(Dt))}).join(";"),ln={sizingStyle:yt,paddingSize:_t,borderSize:jt,boxSizing:le};return wn&&Xe&&(me[Xe]=ln),ln}function Te(Tt){var wn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,se=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;we||(we=document.createElement("textarea"),we.setAttribute("tab-index","-1"),we.setAttribute("aria-hidden","true"),document.body.appendChild(we)),Tt.getAttribute("wrap")?we.setAttribute("wrap",Tt.getAttribute("wrap")):we.removeAttribute("wrap");var le=ge(Tt,wn),_t=le.paddingSize,jt=le.borderSize,yt=le.boxSizing,ln=le.sizingStyle;we.setAttribute("style","".concat(ln,";").concat(Fe)),we.value=Tt.value||Tt.placeholder||"";var Dt=void 0,ui=void 0,On,ri=we.scrollHeight;if(yt==="border-box"?ri+=jt:yt==="content-box"&&(ri-=_t),Xe!==null||se!==null){we.value=" ";var Xn=we.scrollHeight-_t;Xe!==null&&(Dt=Xn*Xe,yt==="border-box"&&(Dt=Dt+_t+jt),ri=Math.max(Dt,ri)),se!==null&&(ui=Xn*se,yt==="border-box"&&(ui=ui+_t+jt),On=ri>ui?"":"hidden",ri=Math.min(ui,ri))}var Tn={height:ri,overflowY:On,resize:"none"};return Dt&&(Tn.minHeight=Dt),ui&&(Tn.maxHeight=ui),Tn}var ee=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ce=0,Ne=1,Le=2,Ke=rt.forwardRef(function(Tt,wn){var Xe=Tt,se=Xe.prefixCls,le=Xe.onPressEnter,_t=Xe.defaultValue,jt=Xe.value,yt=Xe.autoSize,ln=Xe.onResize,Dt=Xe.className,ui=Xe.style,On=Xe.disabled,ri=Xe.onChange,Xn=Xe.onInternalAutoSize,Tn=(0,_.Z)(Xe,ee),Nn=(0,ke.Z)(_t,{value:jt,postState:function(Gn){return Gn!=null?Gn:""}}),xe=(0,W.Z)(Nn,2),P=xe[0],k=xe[1],j=function(Gn){k(Gn.target.value),ri==null||ri(Gn)},X=rt.useRef();rt.useImperativeHandle(wn,function(){return{textArea:X.current}});var N=rt.useMemo(function(){return yt&&(0,z.Z)(yt)==="object"?[yt.minRows,yt.maxRows]:[]},[yt]),Re=(0,W.Z)(N,2),wt=Re[0],ze=Re[1],Oe=!!yt,mt=function(){try{if(document.activeElement===X.current){var Gn=X.current,Ci=Gn.selectionStart,ci=Gn.selectionEnd,sn=Gn.scrollTop;X.current.setSelectionRange(Ci,ci),X.current.scrollTop=sn}}catch(rn){}},lt=rt.useState(Le),Qe=(0,W.Z)(lt,2),Ct=Qe[0],nn=Qe[1],Yt=rt.useState(),Ot=(0,W.Z)(Yt,2),on=Ot[0],hn=Ot[1],Ve=function(){nn(Ce)};(0,Ie.Z)(function(){Oe&&Ve()},[jt,wt,ze,Oe]),(0,Ie.Z)(function(){if(Ct===Ce)nn(Ne);else if(Ct===Ne){var Cn=Te(X.current,!1,wt,ze);nn(Le),hn(Cn)}else mt()},[Ct]);var Pt=rt.useRef(),Xt=function(){De.Z.cancel(Pt.current)},qt=function(Gn){Ct===Le&&(ln==null||ln(Gn),yt&&(Xt(),Pt.current=(0,De.Z)(function(){Ve()})))};rt.useEffect(function(){return Xt},[]);var He=Oe?on:null,Rn=(0,I.Z)((0,I.Z)({},ui),He);return(Ct===Ce||Ct===Ne)&&(Rn.overflowY="hidden",Rn.overflowX="hidden"),rt.createElement(Ue.Z,{onResize:qt,disabled:!(yt||ln)},rt.createElement("textarea",(0,b.Z)({},Tn,{ref:X,style:Rn,className:ue()(se,Dt,(0,O.Z)({},"".concat(se,"-disabled"),On)),disabled:On,value:P,onChange:j})))}),nt=Ke,ie=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function at(Tt,wn){return(0,M.Z)(Tt||"").slice(0,wn).join("")}function Ze(Tt,wn,Xe,se){var le=Xe;return Tt?le=at(Xe,se):(0,M.Z)(wn||"").length<Xe.length&&(0,M.Z)(Xe||"").length>se&&(le=wn),le}var Bt=rt.forwardRef(function(Tt,wn){var Xe,se=Tt.defaultValue,le=Tt.value,_t=Tt.onFocus,jt=Tt.onBlur,yt=Tt.onChange,ln=Tt.allowClear,Dt=Tt.maxLength,ui=Tt.onCompositionStart,On=Tt.onCompositionEnd,ri=Tt.suffix,Xn=Tt.prefixCls,Tn=Xn===void 0?"rc-textarea":Xn,Nn=Tt.classes,xe=Tt.showCount,P=Tt.className,k=Tt.style,j=Tt.disabled,X=Tt.hidden,N=Tt.classNames,Re=Tt.styles,wt=Tt.onResize,ze=(0,_.Z)(Tt,ie),Oe=(0,ke.Z)(se,{value:le,defaultValue:se}),mt=(0,W.Z)(Oe,2),lt=mt[0],Qe=mt[1],Ct=(0,rt.useRef)(null),nn=rt.useState(!1),Yt=(0,W.Z)(nn,2),Ot=Yt[0],on=Yt[1],hn=rt.useState(!1),Ve=(0,W.Z)(hn,2),Pt=Ve[0],Xt=Ve[1],qt=rt.useRef(),He=rt.useRef(0),Rn=rt.useState(null),Cn=(0,W.Z)(Rn,2),Gn=Cn[0],Ci=Cn[1],ci=function(){var Xi;(Xi=Ct.current)===null||Xi===void 0||Xi.textArea.focus()};(0,rt.useImperativeHandle)(wn,function(){return{resizableTextArea:Ct.current,focus:ci,blur:function(){var Xi;(Xi=Ct.current)===null||Xi===void 0||Xi.textArea.blur()}}}),(0,rt.useEffect)(function(){on(function(fr){return!j&&fr})},[j]);var sn=Number(Dt)>0,rn=function(Xi){Xt(!0),qt.current=lt,He.current=Xi.currentTarget.selectionStart,ui==null||ui(Xi)},cr=function(Xi){Xt(!1);var di=Xi.currentTarget.value;if(sn){var ht,_n=He.current>=Dt+1||He.current===((ht=qt.current)===null||ht===void 0?void 0:ht.length);di=Ze(_n,qt.current,di,Dt)}di!==lt&&(Qe(di),(0,Pe.rJ)(Xi.currentTarget,Xi,yt,di)),On==null||On(Xi)},yr=function(Xi){var di=Xi.target.value;if(!Pt&&sn){var ht=Xi.target.selectionStart>=Dt+1||Xi.target.selectionStart===di.length||!Xi.target.selectionStart;di=Ze(ht,lt,di,Dt)}Qe(di),(0,Pe.rJ)(Xi.currentTarget,Xi,yt,di)},Zn=function(Xi){var di=ze.onPressEnter,ht=ze.onKeyDown;Xi.key==="Enter"&&di&&di(Xi),ht==null||ht(Xi)},Mr=function(Xi){on(!0),_t==null||_t(Xi)},rr=function(Xi){on(!1),jt==null||jt(Xi)},U=function(Xi){var di;Qe(""),ci(),(0,Pe.rJ)((di=Ct.current)===null||di===void 0?void 0:di.textArea,Xi,yt)},mr=(0,Pe.D7)(lt);!Pt&&sn&&le==null&&(mr=at(mr,Dt));var lr=ri,_r;if(xe){var Hr=(0,M.Z)(mr).length;(0,z.Z)(xe)==="object"?_r=xe.formatter({value:mr,count:Hr,maxLength:Dt}):_r="".concat(Hr).concat(sn?" / ".concat(Dt):""),lr=rt.createElement(rt.Fragment,null,lr,rt.createElement("span",{className:ue()("".concat(Tn,"-data-count"),N==null?void 0:N.count),style:Re==null?void 0:Re.count},_r))}var uo=function(Xi){var di;wt==null||wt(Xi),(di=Ct.current)!==null&&di!==void 0&&di.textArea.style.height&&Ci(!0)},Tr=!ze.autoSize&&!xe&&!ln,Jr=rt.createElement(ne.BaseInput,{value:mr,allowClear:ln,handleReset:U,suffix:lr,prefixCls:Tn,classes:{affixWrapper:ue()(Nn==null?void 0:Nn.affixWrapper,(Xe={},(0,O.Z)(Xe,"".concat(Tn,"-show-count"),xe),(0,O.Z)(Xe,"".concat(Tn,"-textarea-allow-clear"),ln),Xe))},disabled:j,focused:Ot,className:P,style:(0,I.Z)((0,I.Z)({},k),Gn&&!Tr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof _r=="string"?_r:void 0}},hidden:X,inputElement:rt.createElement(nt,(0,b.Z)({},ze,{onKeyDown:Zn,onChange:yr,onFocus:Mr,onBlur:rr,onCompositionStart:rn,onCompositionEnd:cr,className:N==null?void 0:N.textarea,style:(0,I.Z)((0,I.Z)({},Re==null?void 0:Re.textarea),{},{resize:k==null?void 0:k.resize}),disabled:j,prefixCls:Tn,onResize:uo,ref:Ct}))});return Jr}),bt=Bt,kt=bt},39417:function(Q,C,d){"use strict";d.d(C,{Z:function(){return Ne}});var b=d(92413),I=d(400),O=d(37061),z=d(33708),W=d(6909),_=d(4771),M=d(25314),pe=d(9427),ue=d(25440),ne=d(92310),Pe=d.n(ne),ke=d(26112),rt=d(59301),Ue=d(39378),Ie=function(Ke){for(var nt=Ke.prefixCls,ie=Ke.level,at=Ke.isStart,Ze=Ke.isEnd,Bt="".concat(nt,"-indent-unit"),bt=[],kt=0;kt<ie;kt+=1){var Tt;bt.push(rt.createElement("span",{key:kt,className:Pe()(Bt,(Tt={},(0,I.Z)(Tt,"".concat(Bt,"-start"),at[kt]),(0,I.Z)(Tt,"".concat(Bt,"-end"),Ze[kt]),Tt))}))}return rt.createElement("span",{"aria-hidden":"true",className:"".concat(nt,"-indent")},bt)},De=rt.memo(Ie),Fe=d(67841),de=d(71430),me=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],we="open",ge="close",Te="---",ee=function(Le){(0,pe.Z)(nt,Le);var Ke=(0,ue.Z)(nt);function nt(){var ie;(0,W.Z)(this,nt);for(var at=arguments.length,Ze=new Array(at),Bt=0;Bt<at;Bt++)Ze[Bt]=arguments[Bt];return ie=Ke.call.apply(Ke,[this].concat(Ze)),ie.state={dragNodeHighlight:!1},ie.selectHandle=void 0,ie.cacheIndent=void 0,ie.onSelectorClick=function(bt){var kt=ie.props.context.onNodeClick;kt(bt,(0,de.F)(ie.props)),ie.isSelectable()?ie.onSelect(bt):ie.onCheck(bt)},ie.onSelectorDoubleClick=function(bt){var kt=ie.props.context.onNodeDoubleClick;kt(bt,(0,de.F)(ie.props))},ie.onSelect=function(bt){if(!ie.isDisabled()){var kt=ie.props.context.onNodeSelect;kt(bt,(0,de.F)(ie.props))}},ie.onCheck=function(bt){if(!ie.isDisabled()){var kt=ie.props,Tt=kt.disableCheckbox,wn=kt.checked,Xe=ie.props.context.onNodeCheck;if(!(!ie.isCheckable()||Tt)){var se=!wn;Xe(bt,(0,de.F)(ie.props),se)}}},ie.onMouseEnter=function(bt){var kt=ie.props.context.onNodeMouseEnter;kt(bt,(0,de.F)(ie.props))},ie.onMouseLeave=function(bt){var kt=ie.props.context.onNodeMouseLeave;kt(bt,(0,de.F)(ie.props))},ie.onContextMenu=function(bt){var kt=ie.props.context.onNodeContextMenu;kt(bt,(0,de.F)(ie.props))},ie.onDragStart=function(bt){var kt=ie.props.context.onNodeDragStart;bt.stopPropagation(),ie.setState({dragNodeHighlight:!0}),kt(bt,(0,M.Z)(ie));try{bt.dataTransfer.setData("text/plain","")}catch(Tt){}},ie.onDragEnter=function(bt){var kt=ie.props.context.onNodeDragEnter;bt.preventDefault(),bt.stopPropagation(),kt(bt,(0,M.Z)(ie))},ie.onDragOver=function(bt){var kt=ie.props.context.onNodeDragOver;bt.preventDefault(),bt.stopPropagation(),kt(bt,(0,M.Z)(ie))},ie.onDragLeave=function(bt){var kt=ie.props.context.onNodeDragLeave;bt.stopPropagation(),kt(bt,(0,M.Z)(ie))},ie.onDragEnd=function(bt){var kt=ie.props.context.onNodeDragEnd;bt.stopPropagation(),ie.setState({dragNodeHighlight:!1}),kt(bt,(0,M.Z)(ie))},ie.onDrop=function(bt){var kt=ie.props.context.onNodeDrop;bt.preventDefault(),bt.stopPropagation(),ie.setState({dragNodeHighlight:!1}),kt(bt,(0,M.Z)(ie))},ie.onExpand=function(bt){var kt=ie.props,Tt=kt.loading,wn=kt.context.onNodeExpand;Tt||wn(bt,(0,de.F)(ie.props))},ie.setSelectHandle=function(bt){ie.selectHandle=bt},ie.getNodeState=function(){var bt=ie.props.expanded;return ie.isLeaf()?null:bt?we:ge},ie.hasChildren=function(){var bt=ie.props.eventKey,kt=ie.props.context.keyEntities,Tt=(0,Fe.Z)(kt,bt)||{},wn=Tt.children;return!!(wn||[]).length},ie.isLeaf=function(){var bt=ie.props,kt=bt.isLeaf,Tt=bt.loaded,wn=ie.props.context.loadData,Xe=ie.hasChildren();return kt===!1?!1:kt||!wn&&!Xe||wn&&Tt&&!Xe},ie.isDisabled=function(){var bt=ie.props.disabled,kt=ie.props.context.disabled;return!!(kt||bt)},ie.isCheckable=function(){var bt=ie.props.checkable,kt=ie.props.context.checkable;return!kt||bt===!1?!1:kt},ie.syncLoadData=function(bt){var kt=bt.expanded,Tt=bt.loading,wn=bt.loaded,Xe=ie.props.context,se=Xe.loadData,le=Xe.onNodeLoad;Tt||se&&kt&&!ie.isLeaf()&&!ie.hasChildren()&&!wn&&le((0,de.F)(ie.props))},ie.isDraggable=function(){var bt=ie.props,kt=bt.data,Tt=bt.context.draggable;return!!(Tt&&(!Tt.nodeDraggable||Tt.nodeDraggable(kt)))},ie.renderDragHandler=function(){var bt=ie.props.context,kt=bt.draggable,Tt=bt.prefixCls;return kt!=null&&kt.icon?rt.createElement("span",{className:"".concat(Tt,"-draggable-icon")},kt.icon):null},ie.renderSwitcherIconDom=function(bt){var kt=ie.props.switcherIcon,Tt=ie.props.context.switcherIcon,wn=kt||Tt;return typeof wn=="function"?wn((0,z.Z)((0,z.Z)({},ie.props),{},{isLeaf:bt})):wn},ie.renderSwitcher=function(){var bt=ie.props.expanded,kt=ie.props.context.prefixCls;if(ie.isLeaf()){var Tt=ie.renderSwitcherIconDom(!0);return Tt!==!1?rt.createElement("span",{className:Pe()("".concat(kt,"-switcher"),"".concat(kt,"-switcher-noop"))},Tt):null}var wn=Pe()("".concat(kt,"-switcher"),"".concat(kt,"-switcher_").concat(bt?we:ge)),Xe=ie.renderSwitcherIconDom(!1);return Xe!==!1?rt.createElement("span",{onClick:ie.onExpand,className:wn},Xe):null},ie.renderCheckbox=function(){var bt=ie.props,kt=bt.checked,Tt=bt.halfChecked,wn=bt.disableCheckbox,Xe=ie.props.context.prefixCls,se=ie.isDisabled(),le=ie.isCheckable();if(!le)return null;var _t=typeof le!="boolean"?le:null;return rt.createElement("span",{className:Pe()("".concat(Xe,"-checkbox"),kt&&"".concat(Xe,"-checkbox-checked"),!kt&&Tt&&"".concat(Xe,"-checkbox-indeterminate"),(se||wn)&&"".concat(Xe,"-checkbox-disabled")),onClick:ie.onCheck},_t)},ie.renderIcon=function(){var bt=ie.props.loading,kt=ie.props.context.prefixCls;return rt.createElement("span",{className:Pe()("".concat(kt,"-iconEle"),"".concat(kt,"-icon__").concat(ie.getNodeState()||"docu"),bt&&"".concat(kt,"-icon_loading"))})},ie.renderSelector=function(){var bt=ie.state.dragNodeHighlight,kt=ie.props,Tt=kt.title,wn=Tt===void 0?Te:Tt,Xe=kt.selected,se=kt.icon,le=kt.loading,_t=kt.data,jt=ie.props.context,yt=jt.prefixCls,ln=jt.showIcon,Dt=jt.icon,ui=jt.loadData,On=jt.titleRender,ri=ie.isDisabled(),Xn="".concat(yt,"-node-content-wrapper"),Tn;if(ln){var Nn=se||Dt;Tn=Nn?rt.createElement("span",{className:Pe()("".concat(yt,"-iconEle"),"".concat(yt,"-icon__customize"))},typeof Nn=="function"?Nn(ie.props):Nn):ie.renderIcon()}else ui&&le&&(Tn=ie.renderIcon());var xe;typeof wn=="function"?xe=wn(_t):On?xe=On(_t):xe=wn;var P=rt.createElement("span",{className:"".concat(yt,"-title")},xe);return rt.createElement("span",{ref:ie.setSelectHandle,title:typeof wn=="string"?wn:"",className:Pe()("".concat(Xn),"".concat(Xn,"-").concat(ie.getNodeState()||"normal"),!ri&&(Xe||bt)&&"".concat(yt,"-node-selected")),onMouseEnter:ie.onMouseEnter,onMouseLeave:ie.onMouseLeave,onContextMenu:ie.onContextMenu,onClick:ie.onSelectorClick,onDoubleClick:ie.onSelectorDoubleClick},Tn,P,ie.renderDropIndicator())},ie.renderDropIndicator=function(){var bt=ie.props,kt=bt.disabled,Tt=bt.eventKey,wn=ie.props.context,Xe=wn.draggable,se=wn.dropLevelOffset,le=wn.dropPosition,_t=wn.prefixCls,jt=wn.indent,yt=wn.dropIndicatorRender,ln=wn.dragOverNodeKey,Dt=wn.direction,ui=!!Xe,On=!kt&&ui&&ln===Tt,ri=jt!=null?jt:ie.cacheIndent;return ie.cacheIndent=jt,On?yt({dropPosition:le,dropLevelOffset:se,indent:ri,prefixCls:_t,direction:Dt}):null},ie}return(0,_.Z)(nt,[{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,Ze=this.props.context.selectable;return typeof at=="boolean"?at:Ze}},{key:"render",value:function(){var at,Ze=this.props,Bt=Ze.eventKey,bt=Ze.className,kt=Ze.style,Tt=Ze.dragOver,wn=Ze.dragOverGapTop,Xe=Ze.dragOverGapBottom,se=Ze.isLeaf,le=Ze.isStart,_t=Ze.isEnd,jt=Ze.expanded,yt=Ze.selected,ln=Ze.checked,Dt=Ze.halfChecked,ui=Ze.loading,On=Ze.domRef,ri=Ze.active,Xn=Ze.data,Tn=Ze.onMouseMove,Nn=Ze.selectable,xe=(0,O.Z)(Ze,me),P=this.props.context,k=P.prefixCls,j=P.filterTreeNode,X=P.keyEntities,N=P.dropContainerKey,Re=P.dropTargetKey,wt=P.draggingNodeKey,ze=this.isDisabled(),Oe=(0,ke.Z)(xe,{aria:!0,data:!0}),mt=(0,Fe.Z)(X,Bt)||{},lt=mt.level,Qe=_t[_t.length-1],Ct=this.isDraggable(),nn=!ze&&Ct,Yt=wt===Bt,Ot=Nn!==void 0?{"aria-selected":!!Nn}:void 0;return rt.createElement("div",(0,b.Z)({ref:On,className:Pe()(bt,"".concat(k,"-treenode"),(at={},(0,I.Z)(at,"".concat(k,"-treenode-disabled"),ze),(0,I.Z)(at,"".concat(k,"-treenode-switcher-").concat(jt?"open":"close"),!se),(0,I.Z)(at,"".concat(k,"-treenode-checkbox-checked"),ln),(0,I.Z)(at,"".concat(k,"-treenode-checkbox-indeterminate"),Dt),(0,I.Z)(at,"".concat(k,"-treenode-selected"),yt),(0,I.Z)(at,"".concat(k,"-treenode-loading"),ui),(0,I.Z)(at,"".concat(k,"-treenode-active"),ri),(0,I.Z)(at,"".concat(k,"-treenode-leaf-last"),Qe),(0,I.Z)(at,"".concat(k,"-treenode-draggable"),Ct),(0,I.Z)(at,"dragging",Yt),(0,I.Z)(at,"drop-target",Re===Bt),(0,I.Z)(at,"drop-container",N===Bt),(0,I.Z)(at,"drag-over",!ze&&Tt),(0,I.Z)(at,"drag-over-gap-top",!ze&&wn),(0,I.Z)(at,"drag-over-gap-bottom",!ze&&Xe),(0,I.Z)(at,"filter-node",j&&j((0,de.F)(this.props))),at)),style:kt,draggable:nn,"aria-grabbed":Yt,onDragStart:nn?this.onDragStart:void 0,onDragEnter:Ct?this.onDragEnter:void 0,onDragOver:Ct?this.onDragOver:void 0,onDragLeave:Ct?this.onDragLeave:void 0,onDrop:Ct?this.onDrop:void 0,onDragEnd:Ct?this.onDragEnd:void 0,onMouseMove:Tn},Ot,Oe),rt.createElement(De,{prefixCls:k,level:lt,isStart:le,isEnd:_t}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),nt}(rt.Component),Ce=function(Ke){return rt.createElement(Ue.k.Consumer,null,function(nt){return rt.createElement(ee,(0,b.Z)({},Ke,{context:nt}))})};Ce.displayName="TreeNode",Ce.isTreeNode=1;var Ne=Ce},39378:function(Q,C,d){"use strict";d.d(C,{k:function(){return I}});var b=d(59301),I=b.createContext(null)},23130:function(Q,C,d){"use strict";d.d(C,{O:function(){return Ne.Z},Z:function(){return P}});var b=d(92413),I=d(400),O=d(39559),z=d(33708),W=d(26407),_=d(6909),M=d(4771),pe=d(25314),ue=d(9427),ne=d(25440),Pe=d(92310),ke=d.n(Pe),rt=d(10228),Ue=d(26112),Ie=d(48736),De=d(59301),Fe=d(39378);function de(k){var j=k.dropPosition,X=k.dropLevelOffset,N=k.indent,Re={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(j){case-1:Re.top=0,Re.left=-X*N;break;case 1:Re.bottom=0,Re.left=-X*N;break;case 0:Re.bottom=0,Re.left=N;break}return De.createElement("div",{style:Re})}function me(k){if(k==null)throw new TypeError("Cannot destructure "+k)}var we=d(33606),ge=d(37061),Te=d(34280),ee=d(4409),Ce=d(77900),Ne=d(39417);function Le(k,j){var X=De.useState(!1),N=(0,we.Z)(X,2),Re=N[0],wt=N[1];De.useLayoutEffect(function(){if(Re)return k(),function(){j()}},[Re]),De.useLayoutEffect(function(){return wt(!0),function(){wt(!1)}},[])}var Ke=d(71430),nt=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],ie=function(j,X){var N=j.className,Re=j.style,wt=j.motion,ze=j.motionNodes,Oe=j.motionType,mt=j.onMotionStart,lt=j.onMotionEnd,Qe=j.active,Ct=j.treeNodeRequiredProps,nn=(0,ge.Z)(j,nt),Yt=De.useState(!0),Ot=(0,we.Z)(Yt,2),on=Ot[0],hn=Ot[1],Ve=De.useContext(Fe.k),Pt=Ve.prefixCls,Xt=ze&&Oe!=="hide";(0,Te.Z)(function(){ze&&Xt!==on&&hn(Xt)},[ze]);var qt=function(){ze&&mt()},He=De.useRef(!1),Rn=function(){ze&&!He.current&&(He.current=!0,lt())};Le(qt,Rn);var Cn=function(Ci){Xt===Ci&&Rn()};return ze?De.createElement(Ce.default,(0,b.Z)({ref:X,visible:on},wt,{motionAppear:Oe==="show",onVisibleChanged:Cn}),function(Gn,Ci){var ci=Gn.className,sn=Gn.style;return De.createElement("div",{ref:Ci,className:ke()("".concat(Pt,"-treenode-motion"),ci),style:sn},ze.map(function(rn){var cr=(0,b.Z)({},(me(rn.data),rn.data)),yr=rn.title,Zn=rn.key,Mr=rn.isStart,rr=rn.isEnd;delete cr.children;var U=(0,Ke.H8)(Zn,Ct);return De.createElement(Ne.Z,(0,b.Z)({},cr,U,{title:yr,active:Qe,data:rn.data,key:Zn,isStart:Mr,isEnd:rr}))}))}):De.createElement(Ne.Z,(0,b.Z)({domRef:X,className:N,style:Re},nn,{active:Qe}))};ie.displayName="MotionTreeNode";var at=De.forwardRef(ie),Ze=at;function Bt(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],X=k.length,N=j.length;if(Math.abs(X-N)!==1)return{add:!1,key:null};function Re(wt,ze){var Oe=new Map;wt.forEach(function(lt){Oe.set(lt,!0)});var mt=ze.filter(function(lt){return!Oe.has(lt)});return mt.length===1?mt[0]:null}return X<N?{add:!0,key:Re(k,j)}:{add:!1,key:Re(j,k)}}function bt(k,j,X){var N=k.findIndex(function(Oe){return Oe.key===X}),Re=k[N+1],wt=j.findIndex(function(Oe){return Oe.key===X});if(Re){var ze=j.findIndex(function(Oe){return Oe.key===Re.key});return j.slice(wt+1,ze)}return j.slice(wt+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"],Tt={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},wn=function(){},Xe="RC_TREE_MOTION_".concat(Math.random()),se={key:Xe},le={key:Xe,level:0,index:0,pos:"0",node:se,nodes:[se]},_t={parent:null,children:[],pos:le.pos,data:se,title:null,key:Xe,isStart:[],isEnd:[]};function jt(k,j,X,N){return j===!1||!X?k:k.slice(0,Math.ceil(X/N)+1)}function yt(k){var j=k.key,X=k.pos;return(0,Ke.km)(j,X)}function ln(k){for(var j=String(k.data.key),X=k;X.parent;)X=X.parent,j="".concat(X.data.key," > ").concat(j);return j}var Dt=De.forwardRef(function(k,j){var X=k.prefixCls,N=k.data,Re=k.selectable,wt=k.checkable,ze=k.expandedKeys,Oe=k.selectedKeys,mt=k.checkedKeys,lt=k.loadedKeys,Qe=k.loadingKeys,Ct=k.halfCheckedKeys,nn=k.keyEntities,Yt=k.disabled,Ot=k.dragging,on=k.dragOverNodeKey,hn=k.dropPosition,Ve=k.motion,Pt=k.height,Xt=k.itemHeight,qt=k.virtual,He=k.focusable,Rn=k.activeItem,Cn=k.focused,Gn=k.tabIndex,Ci=k.onKeyDown,ci=k.onFocus,sn=k.onBlur,rn=k.onActiveChange,cr=k.onListChangeStart,yr=k.onListChangeEnd,Zn=(0,ge.Z)(k,kt),Mr=De.useRef(null),rr=De.useRef(null);De.useImperativeHandle(j,function(){return{scrollTo:function(Fn){Mr.current.scrollTo(Fn)},getIndentWidth:function(){return rr.current.offsetWidth}}});var U=De.useState(ze),mr=(0,we.Z)(U,2),lr=mr[0],_r=mr[1],Hr=De.useState(N),uo=(0,we.Z)(Hr,2),Tr=uo[0],Jr=uo[1],fr=De.useState(N),Xi=(0,we.Z)(fr,2),di=Xi[0],ht=Xi[1],_n=De.useState([]),Hn=(0,we.Z)(_n,2),gt=Hn[0],Ge=Hn[1],fn=De.useState(null),Sn=(0,we.Z)(fn,2),ti=Sn[0],Kn=Sn[1],pt=De.useRef(N);pt.current=N;function gn(){var ft=pt.current;Jr(ft),ht(ft),Ge([]),Kn(null),yr()}(0,Te.Z)(function(){_r(ze);var ft=Bt(lr,ze);if(ft.key!==null)if(ft.add){var Fn=Tr.findIndex(function(xt){var En=xt.key;return En===ft.key}),Mt=jt(bt(Tr,N,ft.key),qt,Pt,Xt),qe=Tr.slice();qe.splice(Fn+1,0,_t),ht(qe),Ge(Mt),Kn("show")}else{var D=N.findIndex(function(xt){var En=xt.key;return En===ft.key}),Gt=jt(bt(N,Tr,ft.key),qt,Pt,Xt),dn=N.slice();dn.splice(D+1,0,_t),ht(dn),Ge(Gt),Kn("hide")}else Tr!==N&&(Jr(N),ht(N))},[ze,N]),De.useEffect(function(){Ot||gn()},[Ot]);var tn=Ve?di:N,xi={expandedKeys:ze,selectedKeys:Oe,loadedKeys:lt,loadingKeys:Qe,checkedKeys:mt,halfCheckedKeys:Ct,dragOverNodeKey:on,dropPosition:hn,keyEntities:nn};return De.createElement(De.Fragment,null,Cn&&Rn&&De.createElement("span",{style:Tt,"aria-live":"assertive"},ln(Rn)),De.createElement("div",null,De.createElement("input",{style:Tt,disabled:He===!1||Yt,tabIndex:He!==!1?Gn:null,onKeyDown:Ci,onFocus:ci,onBlur:sn,value:"",onChange:wn,"aria-label":"for screen reader"})),De.createElement("div",{className:"".concat(X,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},De.createElement("div",{className:"".concat(X,"-indent")},De.createElement("div",{ref:rr,className:"".concat(X,"-indent-unit")}))),De.createElement(ee.Z,(0,b.Z)({},Zn,{data:tn,itemKey:yt,height:Pt,fullHeight:!1,virtual:qt,itemHeight:Xt,prefixCls:"".concat(X,"-list"),ref:Mr,onVisibleChange:function(Fn,Mt){var qe=new Set(Fn),D=Mt.filter(function(Gt){return!qe.has(Gt)});D.some(function(Gt){return yt(Gt)===Xe})&&gn()}}),function(ft){var Fn=ft.pos,Mt=(0,b.Z)({},(me(ft.data),ft.data)),qe=ft.title,D=ft.key,Gt=ft.isStart,dn=ft.isEnd,xt=(0,Ke.km)(D,Fn);delete Mt.key,delete Mt.children;var En=(0,Ke.H8)(xt,xi);return De.createElement(Ze,(0,b.Z)({},Mt,En,{title:qe,active:!!Rn&&D===Rn.key,pos:Fn,data:ft.data,isStart:Gt,isEnd:dn,motion:Ve,motionNodes:D===Xe?gt:null,motionType:ti,onMotionStart:cr,onMotionEnd:gn,treeNodeRequiredProps:xi,onMouseMove:function(){rn(null)}}))}))});Dt.displayName="NodeList";var ui=Dt,On=d(35654),ri=d(90782),Xn=d(67841),Tn=10,Nn=function(k){(0,ue.Z)(X,k);var j=(0,ne.Z)(X);function X(){var N;(0,_.Z)(this,X);for(var Re=arguments.length,wt=new Array(Re),ze=0;ze<Re;ze++)wt[ze]=arguments[ze];return N=j.call.apply(j,[this].concat(wt)),N.destroyed=!1,N.delayedDragEnterLogic=void 0,N.loadingRetryTimes={},N.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,Ke.w$)()},N.dragStartMousePosition=null,N.dragNode=void 0,N.currentMouseOverDroppableNodeKey=null,N.listRef=De.createRef(),N.onNodeDragStart=function(Oe,mt){var lt=N.state,Qe=lt.expandedKeys,Ct=lt.keyEntities,nn=N.props.onDragStart,Yt=mt.props.eventKey;N.dragNode=mt,N.dragStartMousePosition={x:Oe.clientX,y:Oe.clientY};var Ot=(0,On._5)(Qe,Yt);N.setState({draggingNodeKey:Yt,dragChildrenKeys:(0,On.wA)(Yt,Ct),indent:N.listRef.current.getIndentWidth()}),N.setExpandedKeys(Ot),window.addEventListener("dragend",N.onWindowDragEnd),nn==null||nn({event:Oe,node:(0,Ke.F)(mt.props)})},N.onNodeDragEnter=function(Oe,mt){var lt=N.state,Qe=lt.expandedKeys,Ct=lt.keyEntities,nn=lt.dragChildrenKeys,Yt=lt.flattenNodes,Ot=lt.indent,on=N.props,hn=on.onDragEnter,Ve=on.onExpand,Pt=on.allowDrop,Xt=on.direction,qt=mt.props,He=qt.pos,Rn=qt.eventKey,Cn=(0,pe.Z)(N),Gn=Cn.dragNode;if(N.currentMouseOverDroppableNodeKey!==Rn&&(N.currentMouseOverDroppableNodeKey=Rn),!Gn){N.resetDragState();return}var Ci=(0,On.OM)(Oe,Gn,mt,Ot,N.dragStartMousePosition,Pt,Yt,Ct,Qe,Xt),ci=Ci.dropPosition,sn=Ci.dropLevelOffset,rn=Ci.dropTargetKey,cr=Ci.dropContainerKey,yr=Ci.dropTargetPos,Zn=Ci.dropAllowed,Mr=Ci.dragOverNodeKey;if(nn.indexOf(rn)!==-1||!Zn){N.resetDragState();return}if(N.delayedDragEnterLogic||(N.delayedDragEnterLogic={}),Object.keys(N.delayedDragEnterLogic).forEach(function(rr){clearTimeout(N.delayedDragEnterLogic[rr])}),Gn.props.eventKey!==mt.props.eventKey&&(Oe.persist(),N.delayedDragEnterLogic[He]=window.setTimeout(function(){if(N.state.draggingNodeKey!==null){var rr=(0,W.Z)(Qe),U=(0,Xn.Z)(Ct,mt.props.eventKey);U&&(U.children||[]).length&&(rr=(0,On.L0)(Qe,mt.props.eventKey)),"expandedKeys"in N.props||N.setExpandedKeys(rr),Ve==null||Ve(rr,{node:(0,Ke.F)(mt.props),expanded:!0,nativeEvent:Oe.nativeEvent})}},800)),Gn.props.eventKey===rn&&sn===0){N.resetDragState();return}N.setState({dragOverNodeKey:Mr,dropPosition:ci,dropLevelOffset:sn,dropTargetKey:rn,dropContainerKey:cr,dropTargetPos:yr,dropAllowed:Zn}),hn==null||hn({event:Oe,node:(0,Ke.F)(mt.props),expandedKeys:Qe})},N.onNodeDragOver=function(Oe,mt){var lt=N.state,Qe=lt.dragChildrenKeys,Ct=lt.flattenNodes,nn=lt.keyEntities,Yt=lt.expandedKeys,Ot=lt.indent,on=N.props,hn=on.onDragOver,Ve=on.allowDrop,Pt=on.direction,Xt=(0,pe.Z)(N),qt=Xt.dragNode;if(qt){var He=(0,On.OM)(Oe,qt,mt,Ot,N.dragStartMousePosition,Ve,Ct,nn,Yt,Pt),Rn=He.dropPosition,Cn=He.dropLevelOffset,Gn=He.dropTargetKey,Ci=He.dropContainerKey,ci=He.dropAllowed,sn=He.dropTargetPos,rn=He.dragOverNodeKey;Qe.indexOf(Gn)!==-1||!ci||(qt.props.eventKey===Gn&&Cn===0?N.state.dropPosition===null&&N.state.dropLevelOffset===null&&N.state.dropTargetKey===null&&N.state.dropContainerKey===null&&N.state.dropTargetPos===null&&N.state.dropAllowed===!1&&N.state.dragOverNodeKey===null||N.resetDragState():Rn===N.state.dropPosition&&Cn===N.state.dropLevelOffset&&Gn===N.state.dropTargetKey&&Ci===N.state.dropContainerKey&&sn===N.state.dropTargetPos&&ci===N.state.dropAllowed&&rn===N.state.dragOverNodeKey||N.setState({dropPosition:Rn,dropLevelOffset:Cn,dropTargetKey:Gn,dropContainerKey:Ci,dropTargetPos:sn,dropAllowed:ci,dragOverNodeKey:rn}),hn==null||hn({event:Oe,node:(0,Ke.F)(mt.props)}))}},N.onNodeDragLeave=function(Oe,mt){N.currentMouseOverDroppableNodeKey===mt.props.eventKey&&!Oe.currentTarget.contains(Oe.relatedTarget)&&(N.resetDragState(),N.currentMouseOverDroppableNodeKey=null);var lt=N.props.onDragLeave;lt==null||lt({event:Oe,node:(0,Ke.F)(mt.props)})},N.onWindowDragEnd=function(Oe){N.onNodeDragEnd(Oe,null,!0),window.removeEventListener("dragend",N.onWindowDragEnd)},N.onNodeDragEnd=function(Oe,mt){var lt=N.props.onDragEnd;N.setState({dragOverNodeKey:null}),N.cleanDragState(),lt==null||lt({event:Oe,node:(0,Ke.F)(mt.props)}),N.dragNode=null,window.removeEventListener("dragend",N.onWindowDragEnd)},N.onNodeDrop=function(Oe,mt){var lt,Qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ct=N.state,nn=Ct.dragChildrenKeys,Yt=Ct.dropPosition,Ot=Ct.dropTargetKey,on=Ct.dropTargetPos,hn=Ct.dropAllowed;if(hn){var Ve=N.props.onDrop;if(N.setState({dragOverNodeKey:null}),N.cleanDragState(),Ot!==null){var Pt=(0,z.Z)((0,z.Z)({},(0,Ke.H8)(Ot,N.getTreeNodeRequiredProps())),{},{active:((lt=N.getActiveItem())===null||lt===void 0?void 0:lt.key)===Ot,data:(0,Xn.Z)(N.state.keyEntities,Ot).node}),Xt=nn.indexOf(Ot)!==-1;(0,Ie.ZP)(!Xt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var qt=(0,On.yx)(on),He={event:Oe,node:(0,Ke.F)(Pt),dragNode:N.dragNode?(0,Ke.F)(N.dragNode.props):null,dragNodesKeys:[N.dragNode.props.eventKey].concat(nn),dropToGap:Yt!==0,dropPosition:Yt+Number(qt[qt.length-1])};Qe||Ve==null||Ve(He),N.dragNode=null}}},N.cleanDragState=function(){var Oe=N.state.draggingNodeKey;Oe!==null&&N.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),N.dragStartMousePosition=null,N.currentMouseOverDroppableNodeKey=null},N.triggerExpandActionExpand=function(Oe,mt){var lt=N.state,Qe=lt.expandedKeys,Ct=lt.flattenNodes,nn=mt.expanded,Yt=mt.key,Ot=mt.isLeaf;if(!(Ot||Oe.shiftKey||Oe.metaKey||Oe.ctrlKey)){var on=Ct.filter(function(Ve){return Ve.key===Yt})[0],hn=(0,Ke.F)((0,z.Z)((0,z.Z)({},(0,Ke.H8)(Yt,N.getTreeNodeRequiredProps())),{},{data:on.data}));N.setExpandedKeys(nn?(0,On._5)(Qe,Yt):(0,On.L0)(Qe,Yt)),N.onNodeExpand(Oe,hn)}},N.onNodeClick=function(Oe,mt){var lt=N.props,Qe=lt.onClick,Ct=lt.expandAction;Ct==="click"&&N.triggerExpandActionExpand(Oe,mt),Qe==null||Qe(Oe,mt)},N.onNodeDoubleClick=function(Oe,mt){var lt=N.props,Qe=lt.onDoubleClick,Ct=lt.expandAction;Ct==="doubleClick"&&N.triggerExpandActionExpand(Oe,mt),Qe==null||Qe(Oe,mt)},N.onNodeSelect=function(Oe,mt){var lt=N.state.selectedKeys,Qe=N.state,Ct=Qe.keyEntities,nn=Qe.fieldNames,Yt=N.props,Ot=Yt.onSelect,on=Yt.multiple,hn=mt.selected,Ve=mt[nn.key],Pt=!hn;Pt?on?lt=(0,On.L0)(lt,Ve):lt=[Ve]:lt=(0,On._5)(lt,Ve);var Xt=lt.map(function(qt){var He=(0,Xn.Z)(Ct,qt);return He?He.node:null}).filter(function(qt){return qt});N.setUncontrolledState({selectedKeys:lt}),Ot==null||Ot(lt,{event:"select",selected:Pt,node:mt,selectedNodes:Xt,nativeEvent:Oe.nativeEvent})},N.onNodeCheck=function(Oe,mt,lt){var Qe=N.state,Ct=Qe.keyEntities,nn=Qe.checkedKeys,Yt=Qe.halfCheckedKeys,Ot=N.props,on=Ot.checkStrictly,hn=Ot.onCheck,Ve=mt.key,Pt,Xt={event:"check",node:mt,checked:lt,nativeEvent:Oe.nativeEvent};if(on){var qt=lt?(0,On.L0)(nn,Ve):(0,On._5)(nn,Ve),He=(0,On._5)(Yt,Ve);Pt={checked:qt,halfChecked:He},Xt.checkedNodes=qt.map(function(sn){return(0,Xn.Z)(Ct,sn)}).filter(function(sn){return sn}).map(function(sn){return sn.node}),N.setUncontrolledState({checkedKeys:qt})}else{var Rn=(0,ri.S)([].concat((0,W.Z)(nn),[Ve]),!0,Ct),Cn=Rn.checkedKeys,Gn=Rn.halfCheckedKeys;if(!lt){var Ci=new Set(Cn);Ci.delete(Ve);var ci=(0,ri.S)(Array.from(Ci),{checked:!1,halfCheckedKeys:Gn},Ct);Cn=ci.checkedKeys,Gn=ci.halfCheckedKeys}Pt=Cn,Xt.checkedNodes=[],Xt.checkedNodesPositions=[],Xt.halfCheckedKeys=Gn,Cn.forEach(function(sn){var rn=(0,Xn.Z)(Ct,sn);if(rn){var cr=rn.node,yr=rn.pos;Xt.checkedNodes.push(cr),Xt.checkedNodesPositions.push({node:cr,pos:yr})}}),N.setUncontrolledState({checkedKeys:Cn},!1,{halfCheckedKeys:Gn})}hn==null||hn(Pt,Xt)},N.onNodeLoad=function(Oe){var mt=Oe.key,lt=new Promise(function(Qe,Ct){N.setState(function(nn){var Yt=nn.loadedKeys,Ot=Yt===void 0?[]:Yt,on=nn.loadingKeys,hn=on===void 0?[]:on,Ve=N.props,Pt=Ve.loadData,Xt=Ve.onLoad;if(!Pt||Ot.indexOf(mt)!==-1||hn.indexOf(mt)!==-1)return null;var qt=Pt(Oe);return qt.then(function(){var He=N.state.loadedKeys,Rn=(0,On.L0)(He,mt);Xt==null||Xt(Rn,{event:"load",node:Oe}),N.setUncontrolledState({loadedKeys:Rn}),N.setState(function(Cn){return{loadingKeys:(0,On._5)(Cn.loadingKeys,mt)}}),Qe()}).catch(function(He){if(N.setState(function(Cn){return{loadingKeys:(0,On._5)(Cn.loadingKeys,mt)}}),N.loadingRetryTimes[mt]=(N.loadingRetryTimes[mt]||0)+1,N.loadingRetryTimes[mt]>=Tn){var Rn=N.state.loadedKeys;(0,Ie.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),N.setUncontrolledState({loadedKeys:(0,On.L0)(Rn,mt)}),Qe()}Ct(He)}),{loadingKeys:(0,On.L0)(hn,mt)}})});return lt.catch(function(){}),lt},N.onNodeMouseEnter=function(Oe,mt){var lt=N.props.onMouseEnter;lt==null||lt({event:Oe,node:mt})},N.onNodeMouseLeave=function(Oe,mt){var lt=N.props.onMouseLeave;lt==null||lt({event:Oe,node:mt})},N.onNodeContextMenu=function(Oe,mt){var lt=N.props.onRightClick;lt&&(Oe.preventDefault(),lt({event:Oe,node:mt}))},N.onFocus=function(){var Oe=N.props.onFocus;N.setState({focused:!0});for(var mt=arguments.length,lt=new Array(mt),Qe=0;Qe<mt;Qe++)lt[Qe]=arguments[Qe];Oe==null||Oe.apply(void 0,lt)},N.onBlur=function(){var Oe=N.props.onBlur;N.setState({focused:!1}),N.onActiveChange(null);for(var mt=arguments.length,lt=new Array(mt),Qe=0;Qe<mt;Qe++)lt[Qe]=arguments[Qe];Oe==null||Oe.apply(void 0,lt)},N.getTreeNodeRequiredProps=function(){var Oe=N.state,mt=Oe.expandedKeys,lt=Oe.selectedKeys,Qe=Oe.loadedKeys,Ct=Oe.loadingKeys,nn=Oe.checkedKeys,Yt=Oe.halfCheckedKeys,Ot=Oe.dragOverNodeKey,on=Oe.dropPosition,hn=Oe.keyEntities;return{expandedKeys:mt||[],selectedKeys:lt||[],loadedKeys:Qe||[],loadingKeys:Ct||[],checkedKeys:nn||[],halfCheckedKeys:Yt||[],dragOverNodeKey:Ot,dropPosition:on,keyEntities:hn}},N.setExpandedKeys=function(Oe){var mt=N.state,lt=mt.treeData,Qe=mt.fieldNames,Ct=(0,Ke.oH)(lt,Oe,Qe);N.setUncontrolledState({expandedKeys:Oe,flattenNodes:Ct},!0)},N.onNodeExpand=function(Oe,mt){var lt=N.state.expandedKeys,Qe=N.state,Ct=Qe.listChanging,nn=Qe.fieldNames,Yt=N.props,Ot=Yt.onExpand,on=Yt.loadData,hn=mt.expanded,Ve=mt[nn.key];if(!Ct){var Pt=lt.indexOf(Ve),Xt=!hn;if((0,Ie.ZP)(hn&&Pt!==-1||!hn&&Pt===-1,"Expand state not sync with index check"),Xt?lt=(0,On.L0)(lt,Ve):lt=(0,On._5)(lt,Ve),N.setExpandedKeys(lt),Ot==null||Ot(lt,{node:mt,expanded:Xt,nativeEvent:Oe.nativeEvent}),Xt&&on){var qt=N.onNodeLoad(mt);qt&&qt.then(function(){var He=(0,Ke.oH)(N.state.treeData,lt,nn);N.setUncontrolledState({flattenNodes:He})}).catch(function(){var He=N.state.expandedKeys,Rn=(0,On._5)(He,Ve);N.setExpandedKeys(Rn)})}}},N.onListChangeStart=function(){N.setUncontrolledState({listChanging:!0})},N.onListChangeEnd=function(){setTimeout(function(){N.setUncontrolledState({listChanging:!1})})},N.onActiveChange=function(Oe){var mt=N.state.activeKey,lt=N.props.onActiveChange;mt!==Oe&&(N.setState({activeKey:Oe}),Oe!==null&&N.scrollTo({key:Oe}),lt==null||lt(Oe))},N.getActiveItem=function(){var Oe=N.state,mt=Oe.activeKey,lt=Oe.flattenNodes;return mt===null?null:lt.find(function(Qe){var Ct=Qe.key;return Ct===mt})||null},N.offsetActiveKey=function(Oe){var mt=N.state,lt=mt.flattenNodes,Qe=mt.activeKey,Ct=lt.findIndex(function(Ot){var on=Ot.key;return on===Qe});Ct===-1&&Oe<0&&(Ct=lt.length),Ct=(Ct+Oe+lt.length)%lt.length;var nn=lt[Ct];if(nn){var Yt=nn.key;N.onActiveChange(Yt)}else N.onActiveChange(null)},N.onKeyDown=function(Oe){var mt=N.state,lt=mt.activeKey,Qe=mt.expandedKeys,Ct=mt.checkedKeys,nn=mt.fieldNames,Yt=N.props,Ot=Yt.onKeyDown,on=Yt.checkable,hn=Yt.selectable;switch(Oe.which){case rt.Z.UP:{N.offsetActiveKey(-1),Oe.preventDefault();break}case rt.Z.DOWN:{N.offsetActiveKey(1),Oe.preventDefault();break}}var Ve=N.getActiveItem();if(Ve&&Ve.data){var Pt=N.getTreeNodeRequiredProps(),Xt=Ve.data.isLeaf===!1||!!(Ve.data[nn.children]||[]).length,qt=(0,Ke.F)((0,z.Z)((0,z.Z)({},(0,Ke.H8)(lt,Pt)),{},{data:Ve.data,active:!0}));switch(Oe.which){case rt.Z.LEFT:{Xt&&Qe.includes(lt)?N.onNodeExpand({},qt):Ve.parent&&N.onActiveChange(Ve.parent.key),Oe.preventDefault();break}case rt.Z.RIGHT:{Xt&&!Qe.includes(lt)?N.onNodeExpand({},qt):Ve.children&&Ve.children.length&&N.onActiveChange(Ve.children[0].key),Oe.preventDefault();break}case rt.Z.ENTER:case rt.Z.SPACE:{on&&!qt.disabled&&qt.checkable!==!1&&!qt.disableCheckbox?N.onNodeCheck({},qt,!Ct.includes(lt)):!on&&hn&&!qt.disabled&&qt.selectable!==!1&&N.onNodeSelect({},qt);break}}}Ot==null||Ot(Oe)},N.setUncontrolledState=function(Oe){var mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!N.destroyed){var Qe=!1,Ct=!0,nn={};Object.keys(Oe).forEach(function(Yt){if(Yt in N.props){Ct=!1;return}Qe=!0,nn[Yt]=Oe[Yt]}),Qe&&(!mt||Ct)&&N.setState((0,z.Z)((0,z.Z)({},nn),lt))}},N.scrollTo=function(Oe){N.listRef.current.scrollTo(Oe)},N}return(0,M.Z)(X,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Re=this.props.activeKey;Re!==void 0&&Re!==this.state.activeKey&&(this.setState({activeKey:Re}),Re!==null&&this.scrollTo({key:Re}))}},{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 Re,wt=this.state,ze=wt.focused,Oe=wt.flattenNodes,mt=wt.keyEntities,lt=wt.draggingNodeKey,Qe=wt.activeKey,Ct=wt.dropLevelOffset,nn=wt.dropContainerKey,Yt=wt.dropTargetKey,Ot=wt.dropPosition,on=wt.dragOverNodeKey,hn=wt.indent,Ve=this.props,Pt=Ve.prefixCls,Xt=Ve.className,qt=Ve.style,He=Ve.showLine,Rn=Ve.focusable,Cn=Ve.tabIndex,Gn=Cn===void 0?0:Cn,Ci=Ve.selectable,ci=Ve.showIcon,sn=Ve.icon,rn=Ve.switcherIcon,cr=Ve.draggable,yr=Ve.checkable,Zn=Ve.checkStrictly,Mr=Ve.disabled,rr=Ve.motion,U=Ve.loadData,mr=Ve.filterTreeNode,lr=Ve.height,_r=Ve.itemHeight,Hr=Ve.virtual,uo=Ve.titleRender,Tr=Ve.dropIndicatorRender,Jr=Ve.onContextMenu,fr=Ve.onScroll,Xi=Ve.direction,di=Ve.rootClassName,ht=Ve.rootStyle,_n=(0,Ue.Z)(this.props,{aria:!0,data:!0}),Hn;return cr&&((0,O.Z)(cr)==="object"?Hn=cr:typeof cr=="function"?Hn={nodeDraggable:cr}:Hn={}),De.createElement(Fe.k.Provider,{value:{prefixCls:Pt,selectable:Ci,showIcon:ci,icon:sn,switcherIcon:rn,draggable:Hn,draggingNodeKey:lt,checkable:yr,checkStrictly:Zn,disabled:Mr,keyEntities:mt,dropLevelOffset:Ct,dropContainerKey:nn,dropTargetKey:Yt,dropPosition:Ot,dragOverNodeKey:on,indent:hn,direction:Xi,dropIndicatorRender:Tr,loadData:U,filterTreeNode:mr,titleRender:uo,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}},De.createElement("div",{role:"tree",className:ke()(Pt,Xt,di,(Re={},(0,I.Z)(Re,"".concat(Pt,"-show-line"),He),(0,I.Z)(Re,"".concat(Pt,"-focused"),ze),(0,I.Z)(Re,"".concat(Pt,"-active-focused"),Qe!==null),Re)),style:ht},De.createElement(ui,(0,b.Z)({ref:this.listRef,prefixCls:Pt,style:qt,data:Oe,disabled:Mr,selectable:Ci,checkable:!!yr,motion:rr,dragging:lt!==null,height:lr,itemHeight:_r,virtual:Hr,focusable:Rn,focused:ze,tabIndex:Gn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Jr,onScroll:fr},this.getTreeNodeRequiredProps(),_n))))}}],[{key:"getDerivedStateFromProps",value:function(Re,wt){var ze=wt.prevProps,Oe={prevProps:Re};function mt(Rn){return!ze&&Rn in Re||ze&&ze[Rn]!==Re[Rn]}var lt,Qe=wt.fieldNames;if(mt("fieldNames")&&(Qe=(0,Ke.w$)(Re.fieldNames),Oe.fieldNames=Qe),mt("treeData")?lt=Re.treeData:mt("children")&&((0,Ie.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),lt=(0,Ke.zn)(Re.children)),lt){Oe.treeData=lt;var Ct=(0,Ke.I8)(lt,{fieldNames:Qe});Oe.keyEntities=(0,z.Z)((0,I.Z)({},Xe,le),Ct.keyEntities)}var nn=Oe.keyEntities||wt.keyEntities;if(mt("expandedKeys")||ze&&mt("autoExpandParent"))Oe.expandedKeys=Re.autoExpandParent||!ze&&Re.defaultExpandParent?(0,On.r7)(Re.expandedKeys,nn):Re.expandedKeys;else if(!ze&&Re.defaultExpandAll){var Yt=(0,z.Z)({},nn);delete Yt[Xe],Oe.expandedKeys=Object.keys(Yt).map(function(Rn){return Yt[Rn].key})}else!ze&&Re.defaultExpandedKeys&&(Oe.expandedKeys=Re.autoExpandParent||Re.defaultExpandParent?(0,On.r7)(Re.defaultExpandedKeys,nn):Re.defaultExpandedKeys);if(Oe.expandedKeys||delete Oe.expandedKeys,lt||Oe.expandedKeys){var Ot=(0,Ke.oH)(lt||wt.treeData,Oe.expandedKeys||wt.expandedKeys,Qe);Oe.flattenNodes=Ot}if(Re.selectable&&(mt("selectedKeys")?Oe.selectedKeys=(0,On.BT)(Re.selectedKeys,Re):!ze&&Re.defaultSelectedKeys&&(Oe.selectedKeys=(0,On.BT)(Re.defaultSelectedKeys,Re))),Re.checkable){var on;if(mt("checkedKeys")?on=(0,On.E6)(Re.checkedKeys)||{}:!ze&&Re.defaultCheckedKeys?on=(0,On.E6)(Re.defaultCheckedKeys)||{}:lt&&(on=(0,On.E6)(Re.checkedKeys)||{checkedKeys:wt.checkedKeys,halfCheckedKeys:wt.halfCheckedKeys}),on){var hn=on,Ve=hn.checkedKeys,Pt=Ve===void 0?[]:Ve,Xt=hn.halfCheckedKeys,qt=Xt===void 0?[]:Xt;if(!Re.checkStrictly){var He=(0,ri.S)(Pt,!0,nn);Pt=He.checkedKeys,qt=He.halfCheckedKeys}Oe.checkedKeys=Pt,Oe.halfCheckedKeys=qt}}return mt("loadedKeys")&&(Oe.loadedKeys=Re.loadedKeys),Oe}}]),X}(De.Component);Nn.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:de,allowDrop:function(){return!0},expandAction:!1},Nn.TreeNode=Ne.Z;var xe=Nn,P=xe},35654:function(Q,C,d){"use strict";d.d(C,{BT:function(){return De},E6:function(){return me},L0:function(){return ne},OM:function(){return Ie},_5:function(){return ue},r7:function(){return we},wA:function(){return ke},yx:function(){return Pe}});var b=d(26407),I=d(39559),O=d(48736),z=d(59301),W=d(39417),_=d(67841),M=d(71430),pe=null;function ue(ge,Te){if(!ge)return[];var ee=ge.slice(),Ce=ee.indexOf(Te);return Ce>=0&&ee.splice(Ce,1),ee}function ne(ge,Te){var ee=(ge||[]).slice();return ee.indexOf(Te)===-1&&ee.push(Te),ee}function Pe(ge){return ge.split("-")}function ke(ge,Te){var ee=[],Ce=(0,_.Z)(Te,ge);function Ne(){var Le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Le.forEach(function(Ke){var nt=Ke.key,ie=Ke.children;ee.push(nt),Ne(ie)})}return Ne(Ce.children),ee}function rt(ge){if(ge.parent){var Te=Pe(ge.pos);return Number(Te[Te.length-1])===ge.parent.children.length-1}return!1}function Ue(ge){var Te=Pe(ge.pos);return Number(Te[Te.length-1])===0}function Ie(ge,Te,ee,Ce,Ne,Le,Ke,nt,ie,at){var Ze,Bt=ge.clientX,bt=ge.clientY,kt=ge.target.getBoundingClientRect(),Tt=kt.top,wn=kt.height,Xe=(at==="rtl"?-1:1)*(((Ne==null?void 0:Ne.x)||0)-Bt),se=(Xe-12)/Ce,le=(0,_.Z)(nt,ee.props.eventKey);if(bt<Tt+wn/2){var _t=Ke.findIndex(function(P){return P.key===le.key}),jt=_t<=0?0:_t-1,yt=Ke[jt].key;le=(0,_.Z)(nt,yt)}var ln=le.key,Dt=le,ui=le.key,On=0,ri=0;if(!ie.includes(ln))for(var Xn=0;Xn<se&&rt(le);Xn+=1)le=le.parent,ri+=1;var Tn=Te.props.data,Nn=le.node,xe=!0;return Ue(le)&&le.level===0&&bt<Tt+wn/2&&Le({dragNode:Tn,dropNode:Nn,dropPosition:-1})&&le.key===ee.props.eventKey?On=-1:(Dt.children||[]).length&&ie.includes(ui)?Le({dragNode:Tn,dropNode:Nn,dropPosition:0})?On=0:xe=!1:ri===0?se>-1.5?Le({dragNode:Tn,dropNode:Nn,dropPosition:1})?On=1:xe=!1:Le({dragNode:Tn,dropNode:Nn,dropPosition:0})?On=0:Le({dragNode:Tn,dropNode:Nn,dropPosition:1})?On=1:xe=!1:Le({dragNode:Tn,dropNode:Nn,dropPosition:1})?On=1:xe=!1,{dropPosition:On,dropLevelOffset:ri,dropTargetKey:le.key,dropTargetPos:le.pos,dragOverNodeKey:ui,dropContainerKey:On===0?null:((Ze=le.parent)===null||Ze===void 0?void 0:Ze.key)||null,dropAllowed:xe}}function De(ge,Te){if(ge){var ee=Te.multiple;return ee?ge.slice():ge.length?[ge[0]]:ge}}var Fe=function(Te){return Te};function de(ge,Te){if(!ge)return[];var ee=Te||{},Ce=ee.processProps,Ne=Ce===void 0?Fe:Ce,Le=Array.isArray(ge)?ge:[ge];return Le.map(function(Ke){var nt=Ke.children,ie=_objectWithoutProperties(Ke,pe),at=de(nt,Te);return React.createElement(TreeNode,_extends({key:ie.key},Ne(ie)),at)})}function me(ge){if(!ge)return null;var Te;if(Array.isArray(ge))Te={checkedKeys:ge,halfCheckedKeys:void 0};else if((0,I.Z)(ge)==="object")Te={checkedKeys:ge.checked||void 0,halfCheckedKeys:ge.halfChecked||void 0};else return(0,O.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Te}function we(ge,Te){var ee=new Set;function Ce(Ne){if(!ee.has(Ne)){var Le=(0,_.Z)(Te,Ne);if(Le){ee.add(Ne);var Ke=Le.parent,nt=Le.node;nt.disabled||Ke&&Ce(Ke.key)}}}return(ge||[]).forEach(function(Ne){Ce(Ne)}),(0,b.Z)(ee)}},90782:function(Q,C,d){"use strict";d.d(C,{S:function(){return M}});var b=d(48736),I=d(67841);function O(pe,ue){var ne=new Set;return pe.forEach(function(Pe){ue.has(Pe)||ne.add(Pe)}),ne}function z(pe){var ue=pe||{},ne=ue.disabled,Pe=ue.disableCheckbox,ke=ue.checkable;return!!(ne||Pe)||ke===!1}function W(pe,ue,ne,Pe){for(var ke=new Set(pe),rt=new Set,Ue=0;Ue<=ne;Ue+=1){var Ie=ue.get(Ue)||new Set;Ie.forEach(function(me){var we=me.key,ge=me.node,Te=me.children,ee=Te===void 0?[]:Te;ke.has(we)&&!Pe(ge)&&ee.filter(function(Ce){return!Pe(Ce.node)}).forEach(function(Ce){ke.add(Ce.key)})})}for(var De=new Set,Fe=ne;Fe>=0;Fe-=1){var de=ue.get(Fe)||new Set;de.forEach(function(me){var we=me.parent,ge=me.node;if(!(Pe(ge)||!me.parent||De.has(me.parent.key))){if(Pe(me.parent.node)){De.add(we.key);return}var Te=!0,ee=!1;(we.children||[]).filter(function(Ce){return!Pe(Ce.node)}).forEach(function(Ce){var Ne=Ce.key,Le=ke.has(Ne);Te&&!Le&&(Te=!1),!ee&&(Le||rt.has(Ne))&&(ee=!0)}),Te&&ke.add(we.key),ee&&rt.add(we.key),De.add(we.key)}})}return{checkedKeys:Array.from(ke),halfCheckedKeys:Array.from(O(rt,ke))}}function _(pe,ue,ne,Pe,ke){for(var rt=new Set(pe),Ue=new Set(ue),Ie=0;Ie<=Pe;Ie+=1){var De=ne.get(Ie)||new Set;De.forEach(function(we){var ge=we.key,Te=we.node,ee=we.children,Ce=ee===void 0?[]:ee;!rt.has(ge)&&!Ue.has(ge)&&!ke(Te)&&Ce.filter(function(Ne){return!ke(Ne.node)}).forEach(function(Ne){rt.delete(Ne.key)})})}Ue=new Set;for(var Fe=new Set,de=Pe;de>=0;de-=1){var me=ne.get(de)||new Set;me.forEach(function(we){var ge=we.parent,Te=we.node;if(!(ke(Te)||!we.parent||Fe.has(we.parent.key))){if(ke(we.parent.node)){Fe.add(ge.key);return}var ee=!0,Ce=!1;(ge.children||[]).filter(function(Ne){return!ke(Ne.node)}).forEach(function(Ne){var Le=Ne.key,Ke=rt.has(Le);ee&&!Ke&&(ee=!1),!Ce&&(Ke||Ue.has(Le))&&(Ce=!0)}),ee||rt.delete(ge.key),Ce&&Ue.add(ge.key),Fe.add(ge.key)}})}return{checkedKeys:Array.from(rt),halfCheckedKeys:Array.from(O(Ue,rt))}}function M(pe,ue,ne,Pe){var ke=[],rt;Pe?rt=Pe:rt=z;var Ue=new Set(pe.filter(function(de){var me=!!(0,I.Z)(ne,de);return me||ke.push(de),me})),Ie=new Map,De=0;Object.keys(ne).forEach(function(de){var me=ne[de],we=me.level,ge=Ie.get(we);ge||(ge=new Set,Ie.set(we,ge)),ge.add(me),De=Math.max(De,we)}),(0,b.ZP)(!ke.length,"Tree missing follow keys: ".concat(ke.slice(0,100).map(function(de){return"'".concat(de,"'")}).join(", ")));var Fe;return ue===!0?Fe=W(Ue,Ie,De,rt):Fe=_(Ue,ue.halfCheckedKeys,Ie,De,rt),Fe}},67841:function(Q,C,d){"use strict";d.d(C,{Z:function(){return b}});function b(I,O){return I[O]}},71430:function(Q,C,d){"use strict";d.d(C,{F:function(){return we},H8:function(){return me},I8:function(){return de},km:function(){return ke},oH:function(){return De},w$:function(){return rt},zn:function(){return Ie}});var b=d(39559),I=d(26407),O=d(33708),z=d(37061),W=d(11592),_=d(2738),M=d(48736),pe=d(67841),ue=["children"];function ne(ge,Te){return"".concat(ge,"-").concat(Te)}function Pe(ge){return ge&&ge.type&&ge.type.isTreeNode}function ke(ge,Te){return ge!=null?ge:Te}function rt(ge){var Te=ge||{},ee=Te.title,Ce=Te._title,Ne=Te.key,Le=Te.children,Ke=ee||"title";return{title:Ke,_title:Ce||[Ke],key:Ne||"key",children:Le||"children"}}function Ue(ge,Te){var ee=new Map;function Ce(Ne){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Ne||[]).forEach(function(Ke){var nt=Ke[Te.key],ie=Ke[Te.children];warning(nt!=null,"Tree node must have a certain key: [".concat(Le).concat(nt,"]"));var at=String(nt);warning(!ee.has(at)||nt===null||nt===void 0,"Same 'key' exist in the Tree: ".concat(at)),ee.set(at,!0),Ce(ie,"".concat(Le).concat(at," > "))})}Ce(ge)}function Ie(ge){function Te(ee){var Ce=(0,W.Z)(ee);return Ce.map(function(Ne){if(!Pe(Ne))return(0,M.ZP)(!Ne,"Tree/TreeNode can only accept TreeNode as children."),null;var Le=Ne.key,Ke=Ne.props,nt=Ke.children,ie=(0,z.Z)(Ke,ue),at=(0,O.Z)({key:Le},ie),Ze=Te(nt);return Ze.length&&(at.children=Ze),at}).filter(function(Ne){return Ne})}return Te(ge)}function De(ge,Te,ee){var Ce=rt(ee),Ne=Ce._title,Le=Ce.key,Ke=Ce.children,nt=new Set(Te===!0?[]:Te),ie=[];function at(Ze){var Bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ze.map(function(bt,kt){for(var Tt=ne(Bt?Bt.pos:"0",kt),wn=ke(bt[Le],Tt),Xe,se=0;se<Ne.length;se+=1){var le=Ne[se];if(bt[le]!==void 0){Xe=bt[le];break}}var _t=(0,O.Z)((0,O.Z)({},(0,_.Z)(bt,[].concat((0,I.Z)(Ne),[Le,Ke]))),{},{title:Xe,key:wn,parent:Bt,pos:Tt,children:null,data:bt,isStart:[].concat((0,I.Z)(Bt?Bt.isStart:[]),[kt===0]),isEnd:[].concat((0,I.Z)(Bt?Bt.isEnd:[]),[kt===Ze.length-1])});return ie.push(_t),Te===!0||nt.has(wn)?_t.children=at(bt[Ke]||[],_t):_t.children=[],_t})}return at(ge),ie}function Fe(ge,Te,ee){var Ce={};(0,b.Z)(ee)==="object"?Ce=ee:Ce={externalGetKey:ee},Ce=Ce||{};var Ne=Ce,Le=Ne.childrenPropName,Ke=Ne.externalGetKey,nt=Ne.fieldNames,ie=rt(nt),at=ie.key,Ze=ie.children,Bt=Le||Ze,bt;Ke?typeof Ke=="string"?bt=function(wn){return wn[Ke]}:typeof Ke=="function"&&(bt=function(wn){return Ke(wn)}):bt=function(wn,Xe){return ke(wn[at],Xe)};function kt(Tt,wn,Xe,se){var le=Tt?Tt[Bt]:ge,_t=Tt?ne(Xe.pos,wn):"0",jt=Tt?[].concat((0,I.Z)(se),[Tt]):[];if(Tt){var yt=bt(Tt,_t),ln={node:Tt,index:wn,pos:_t,key:yt,parentPos:Xe.node?Xe.pos:null,level:Xe.level+1,nodes:jt};Te(ln)}le&&le.forEach(function(Dt,ui){kt(Dt,ui,{node:Tt,pos:_t,level:Xe?Xe.level+1:-1},jt)})}kt(null)}function de(ge){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ee=Te.initWrapper,Ce=Te.processEntity,Ne=Te.onProcessFinished,Le=Te.externalGetKey,Ke=Te.childrenPropName,nt=Te.fieldNames,ie=arguments.length>2?arguments[2]:void 0,at=Le||ie,Ze={},Bt={},bt={posEntities:Ze,keyEntities:Bt};return ee&&(bt=ee(bt)||bt),Fe(ge,function(kt){var Tt=kt.node,wn=kt.index,Xe=kt.pos,se=kt.key,le=kt.parentPos,_t=kt.level,jt=kt.nodes,yt={node:Tt,nodes:jt,index:wn,key:se,pos:Xe,level:_t},ln=ke(se,Xe);Ze[Xe]=yt,Bt[ln]=yt,yt.parent=Ze[le],yt.parent&&(yt.parent.children=yt.parent.children||[],yt.parent.children.push(yt)),Ce&&Ce(yt,bt)},{externalGetKey:at,childrenPropName:Ke,fieldNames:nt}),Ne&&Ne(bt),bt}function me(ge,Te){var ee=Te.expandedKeys,Ce=Te.selectedKeys,Ne=Te.loadedKeys,Le=Te.loadingKeys,Ke=Te.checkedKeys,nt=Te.halfCheckedKeys,ie=Te.dragOverNodeKey,at=Te.dropPosition,Ze=Te.keyEntities,Bt=(0,pe.Z)(Ze,ge),bt={eventKey:ge,expanded:ee.indexOf(ge)!==-1,selected:Ce.indexOf(ge)!==-1,loaded:Ne.indexOf(ge)!==-1,loading:Le.indexOf(ge)!==-1,checked:Ke.indexOf(ge)!==-1,halfChecked:nt.indexOf(ge)!==-1,pos:String(Bt?Bt.pos:""),dragOver:ie===ge&&at===0,dragOverGapTop:ie===ge&&at===-1,dragOverGapBottom:ie===ge&&at===1};return bt}function we(ge){var Te=ge.data,ee=ge.expanded,Ce=ge.selected,Ne=ge.checked,Le=ge.loaded,Ke=ge.loading,nt=ge.halfChecked,ie=ge.dragOver,at=ge.dragOverGapTop,Ze=ge.dragOverGapBottom,Bt=ge.pos,bt=ge.active,kt=ge.eventKey,Tt=(0,O.Z)((0,O.Z)({},Te),{},{expanded:ee,selected:Ce,checked:Ne,loaded:Le,loading:Ke,halfChecked:nt,dragOver:ie,dragOverGapTop:at,dragOverGapBottom:Ze,pos:Bt,active:bt,key:kt});return"props"in Tt||Object.defineProperty(Tt,"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`."),ge}}),Tt}},8224:function(Q,C,d){"use strict";d.d(C,{Z:function(){return I}});var b=d(4676);function I(O,z,W,_){var M=b.unstable_batchedUpdates?function(ue){b.unstable_batchedUpdates(W,ue)}:W;return O!=null&&O.addEventListener&&O.addEventListener(z,M,_),{remove:function(){O!=null&&O.removeEventListener&&O.removeEventListener(z,M,_)}}}},55468:function(Q,C,d){"use strict";d.d(C,{g1:function(){return Pe},os:function(){return rt}});var b=/margin|padding|width|height|max|min|offset/,I={left:!0,top:!0},O={cssFloat:1,styleFloat:1,float:1};function z(Ue){return Ue.nodeType===1?Ue.ownerDocument.defaultView.getComputedStyle(Ue,null):{}}function W(Ue,Ie,De){if(Ie=Ie.toLowerCase(),De==="auto"){if(Ie==="height")return Ue.offsetHeight;if(Ie==="width")return Ue.offsetWidth}return Ie in I||(I[Ie]=b.test(Ie)),I[Ie]?parseFloat(De)||0:De}function _(Ue,Ie){var De=arguments.length,Fe=z(Ue);return Ie=O[Ie]?"cssFloat"in Ue.style?"cssFloat":"styleFloat":Ie,De===1?Fe:W(Ue,Ie,Fe[Ie]||Ue.style[Ie])}function M(Ue,Ie,De){var Fe=arguments.length;if(Ie=O[Ie]?"cssFloat"in Ue.style?"cssFloat":"styleFloat":Ie,Fe===3)return typeof De=="number"&&b.test(Ie)&&(De="".concat(De,"px")),Ue.style[Ie]=De,De;for(var de in Ie)Ie.hasOwnProperty(de)&&M(Ue,de,Ie[de]);return z(Ue)}function pe(Ue){return Ue===document.body?document.documentElement.clientWidth:Ue.offsetWidth}function ue(Ue){return Ue===document.body?window.innerHeight||document.documentElement.clientHeight:Ue.offsetHeight}function ne(){var Ue=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),Ie=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Ue,height:Ie}}function Pe(){var Ue=document.documentElement.clientWidth,Ie=window.innerHeight||document.documentElement.clientHeight;return{width:Ue,height:Ie}}function ke(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function rt(Ue){var Ie=Ue.getBoundingClientRect(),De=document.documentElement;return{left:Ie.left+(window.pageXOffset||De.scrollLeft)-(De.clientLeft||document.body.clientLeft||0),top:Ie.top+(window.pageYOffset||De.scrollTop)-(De.clientTop||document.body.clientTop||0)}}},24514:function(Q,C,d){"use strict";d.d(C,{G:function(){return z}});var b=d(47273),I=function(_){if((0,b.Z)()&&window.document.documentElement){var M=Array.isArray(_)?_:[_],pe=window.document.documentElement;return M.some(function(ue){return ue in pe.style})}return!1},O=function(_,M){if(!I(_))return!1;var pe=document.createElement("div"),ue=pe.style[_];return pe.style[_]=M,pe.style[_]!==ue};function z(W,_){return!Array.isArray(W)&&_!==void 0?O(W,_):I(W)}},4409:function(Q,C,d){"use strict";d.d(C,{Z:function(){return xe}});var b=d(92413),I=d(39559),O=d(33708),z=d(400),W=d(33606),_=d(37061),M=d(92310),pe=d.n(M),ue=d(29301),ne=d(70425),Pe=d(34280),ke=d(59301),rt=d(4676),Ue=ke.forwardRef(function(P,k){var j=P.height,X=P.offsetY,N=P.offsetX,Re=P.children,wt=P.prefixCls,ze=P.onInnerResize,Oe=P.innerProps,mt=P.rtl,lt=P.extra,Qe={},Ct={display:"flex",flexDirection:"column"};return X!==void 0&&(Qe={height:j,position:"relative",overflow:"hidden"},Ct=(0,O.Z)((0,O.Z)({},Ct),{},(0,z.Z)((0,z.Z)((0,z.Z)((0,z.Z)((0,z.Z)({transform:"translateY(".concat(X,"px)")},mt?"marginRight":"marginLeft",-N),"position","absolute"),"left",0),"right",0),"top",0))),ke.createElement("div",{style:Qe},ke.createElement(ue.Z,{onResize:function(Yt){var Ot=Yt.offsetHeight;Ot&&ze&&ze()}},ke.createElement("div",(0,b.Z)({style:Ct,className:pe()((0,z.Z)({},"".concat(wt,"-holder-inner"),wt)),ref:k},Oe),Re,lt)))});Ue.displayName="Filler";var Ie=Ue;function De(P){var k=P.children,j=P.setRef,X=ke.useCallback(function(N){j(N)},[]);return ke.cloneElement(k,{ref:X})}function Fe(P,k,j,X,N,Re,wt,ze){var Oe=ze.getKey;return P.slice(k,j+1).map(function(mt,lt){var Qe=k+lt,Ct=wt(mt,Qe,{style:{width:X},offsetX:N}),nn=Oe(mt);return ke.createElement(De,{key:nn,setRef:function(Ot){return Re(mt,Ot)}},Ct)})}function de(P,k,j,X){var N=j-P,Re=k-j,wt=Math.min(N,Re)*2;if(X<=wt){var ze=Math.floor(X/2);return X%2?j+ze+1:j-ze}return N>Re?j-(X-Re):j+(X-N)}function me(P,k,j){var X=P.length,N=k.length,Re,wt;if(X===0&&N===0)return null;X<N?(Re=P,wt=k):(Re=k,wt=P);var ze={__EMPTY_ITEM__:!0};function Oe(Yt){return Yt!==void 0?j(Yt):ze}for(var mt=null,lt=Math.abs(X-N)!==1,Qe=0;Qe<wt.length;Qe+=1){var Ct=Oe(Re[Qe]),nn=Oe(wt[Qe]);if(Ct!==nn){mt=Qe,lt=lt||Ct!==Oe(wt[Qe+1]);break}}return mt===null?null:{index:mt,multiple:lt}}function we(P,k,j){var X=ke.useState(P),N=(0,W.Z)(X,2),Re=N[0],wt=N[1],ze=ke.useState(null),Oe=(0,W.Z)(ze,2),mt=Oe[0],lt=Oe[1];return ke.useEffect(function(){var Qe=me(Re||[],P||[],k);(Qe==null?void 0:Qe.index)!==void 0&&(j==null||j(Qe.index),lt(P[Qe.index])),wt(P)},[P]),[mt]}var ge=d(16089),Te=(typeof navigator=="undefined"?"undefined":(0,I.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),ee=Te,Ce=function(P,k,j,X){var N=(0,ke.useRef)(!1),Re=(0,ke.useRef)(null);function wt(){clearTimeout(Re.current),N.current=!0,Re.current=setTimeout(function(){N.current=!1},50)}var ze=(0,ke.useRef)({top:P,bottom:k,left:j,right:X});return ze.current.top=P,ze.current.bottom=k,ze.current.left=j,ze.current.right=X,function(Oe,mt){var lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Qe=Oe?mt<0&&ze.current.left||mt>0&&ze.current.right:mt<0&&ze.current.top||mt>0&&ze.current.bottom;return lt&&Qe?(clearTimeout(Re.current),N.current=!1):(!Qe||N.current)&&wt(),!N.current&&Qe}};function Ne(P,k,j,X,N,Re,wt){var ze=(0,ke.useRef)(0),Oe=(0,ke.useRef)(null),mt=(0,ke.useRef)(null),lt=(0,ke.useRef)(!1),Qe=Ce(k,j,X,N);function Ct(Ve,Pt){if(ge.Z.cancel(Oe.current),!Qe(!1,Pt)){var Xt=Ve;if(!Xt._virtualHandled)Xt._virtualHandled=!0;else return;ze.current+=Pt,mt.current=Pt,ee||Xt.preventDefault(),Oe.current=(0,ge.Z)(function(){var qt=lt.current?10:1;wt(ze.current*qt,!1),ze.current=0})}}function nn(Ve,Pt){wt(Pt,!0),ee||Ve.preventDefault()}var Yt=(0,ke.useRef)(null),Ot=(0,ke.useRef)(null);function on(Ve){if(P){ge.Z.cancel(Ot.current),Ot.current=(0,ge.Z)(function(){Yt.current=null},2);var Pt=Ve.deltaX,Xt=Ve.deltaY,qt=Ve.shiftKey,He=Pt,Rn=Xt;(Yt.current==="sx"||!Yt.current&&qt&&Xt&&!Pt)&&(He=Xt,Rn=0,Yt.current="sx");var Cn=Math.abs(He),Gn=Math.abs(Rn);Yt.current===null&&(Yt.current=Re&&Cn>Gn?"x":"y"),Yt.current==="y"?Ct(Ve,Rn):nn(Ve,He)}}function hn(Ve){P&&(lt.current=Ve.detail===mt.current)}return[on,hn]}function Le(P,k,j,X){var N=ke.useMemo(function(){return[new Map,[]]},[P,j.id,X]),Re=(0,W.Z)(N,2),wt=Re[0],ze=Re[1],Oe=function(lt){var Qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:lt,Ct=wt.get(lt),nn=wt.get(Qe);if(Ct===void 0||nn===void 0)for(var Yt=P.length,Ot=ze.length;Ot<Yt;Ot+=1){var on,hn=P[Ot],Ve=k(hn);wt.set(Ve,Ot);var Pt=(on=j.get(Ve))!==null&&on!==void 0?on:X;if(ze[Ot]=(ze[Ot-1]||0)+Pt,Ve===lt&&(Ct=Ot),Ve===Qe&&(nn=Ot),Ct!==void 0&&nn!==void 0)break}return{top:ze[Ct-1]||0,bottom:ze[nn]}};return Oe}var Ke=d(76846),nt=d(6909),ie=d(4771),at=function(){function P(){(0,nt.Z)(this,P),(0,z.Z)(this,"maps",void 0),(0,z.Z)(this,"id",0),(0,z.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,ie.Z)(P,[{key:"set",value:function(j,X){this.maps[j]=X,this.id+=1,this.diffKeys.add(j)}},{key:"get",value:function(j){return this.maps[j]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),P}(),Ze=at;function Bt(P){var k=parseFloat(P);return isNaN(k)?0:k}function bt(P,k,j){var X=ke.useState(0),N=(0,W.Z)(X,2),Re=N[0],wt=N[1],ze=(0,ke.useRef)(new Map),Oe=(0,ke.useRef)(new Ze),mt=(0,ke.useRef)(0);function lt(){mt.current+=1}function Qe(){var nn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;lt();var Yt=function(){var hn=!1;ze.current.forEach(function(Ve,Pt){if(Ve&&Ve.offsetParent){var Xt=(0,Ke.ZP)(Ve),qt=Xt.offsetHeight,He=getComputedStyle(Xt),Rn=He.marginTop,Cn=He.marginBottom,Gn=Bt(Rn),Ci=Bt(Cn),ci=qt+Gn+Ci;Oe.current.get(Pt)!==ci&&(Oe.current.set(Pt,ci),hn=!0)}}),hn&&wt(function(Ve){return Ve+1})};if(nn)Yt();else{mt.current+=1;var Ot=mt.current;Promise.resolve().then(function(){Ot===mt.current&&Yt()})}}function Ct(nn,Yt){var Ot=P(nn),on=ze.current.get(Ot);Yt?(ze.current.set(Ot,Yt),Qe()):ze.current.delete(Ot),!on!=!Yt&&(Yt?k==null||k(nn):j==null||j(nn))}return(0,ke.useEffect)(function(){return lt},[]),[Ct,Qe,Oe.current,Re]}var kt=14/15;function Tt(P,k,j){var X=(0,ke.useRef)(!1),N=(0,ke.useRef)(0),Re=(0,ke.useRef)(0),wt=(0,ke.useRef)(null),ze=(0,ke.useRef)(null),Oe,mt=function(nn){if(X.current){var Yt=Math.ceil(nn.touches[0].pageX),Ot=Math.ceil(nn.touches[0].pageY),on=N.current-Yt,hn=Re.current-Ot,Ve=Math.abs(on)>Math.abs(hn);Ve?N.current=Yt:Re.current=Ot;var Pt=j(Ve,Ve?on:hn,!1,nn);Pt&&nn.preventDefault(),clearInterval(ze.current),Pt&&(ze.current=setInterval(function(){Ve?on*=kt:hn*=kt;var Xt=Math.floor(Ve?on:hn);(!j(Ve,Xt,!0)||Math.abs(Xt)<=.1)&&clearInterval(ze.current)},16))}},lt=function(){X.current=!1,Oe()},Qe=function(nn){Oe(),nn.touches.length===1&&!X.current&&(X.current=!0,N.current=Math.ceil(nn.touches[0].pageX),Re.current=Math.ceil(nn.touches[0].pageY),wt.current=nn.target,wt.current.addEventListener("touchmove",mt,{passive:!1}),wt.current.addEventListener("touchend",lt,{passive:!0}))};Oe=function(){wt.current&&(wt.current.removeEventListener("touchmove",mt),wt.current.removeEventListener("touchend",lt))},(0,Pe.Z)(function(){return P&&k.current.addEventListener("touchstart",Qe,{passive:!0}),function(){var Ct;(Ct=k.current)===null||Ct===void 0||Ct.removeEventListener("touchstart",Qe),Oe(),clearInterval(ze.current)}},[P])}function wn(P){return Math.floor(Math.pow(P,.5))}function Xe(P,k){var j="touches"in P?P.touches[0]:P;return j[k?"pageX":"pageY"]-window[k?"scrollX":"scrollY"]}function se(P,k,j){ke.useEffect(function(){var X=k.current;if(P&&X){var N=!1,Re,wt,ze=function(){ge.Z.cancel(Re)},Oe=function Ct(){ze(),Re=(0,ge.Z)(function(){j(wt),Ct()})},mt=function(nn){if(!nn.target.draggable){var Yt=nn;Yt._virtualHandled||(Yt._virtualHandled=!0,N=!0)}},lt=function(){N=!1,ze()},Qe=function(nn){if(N){var Yt=Xe(nn,!1),Ot=X.getBoundingClientRect(),on=Ot.top,hn=Ot.bottom;if(Yt<=on){var Ve=on-Yt;wt=-wn(Ve),Oe()}else if(Yt>=hn){var Pt=Yt-hn;wt=wn(Pt),Oe()}else ze()}};return X.addEventListener("mousedown",mt),X.ownerDocument.addEventListener("mouseup",lt),X.ownerDocument.addEventListener("mousemove",Qe),function(){X.removeEventListener("mousedown",mt),X.ownerDocument.removeEventListener("mouseup",lt),X.ownerDocument.removeEventListener("mousemove",Qe),ze()}}},[P])}var le=10;function _t(P,k,j,X,N,Re,wt,ze){var Oe=ke.useRef(),mt=ke.useState(null),lt=(0,W.Z)(mt,2),Qe=lt[0],Ct=lt[1];return(0,Pe.Z)(function(){if(Qe&&Qe.times<le){if(!P.current){Ct(function(U){return(0,O.Z)({},U)});return}Re();var nn=Qe.targetAlign,Yt=Qe.originAlign,Ot=Qe.index,on=Qe.offset,hn=P.current.clientHeight,Ve=!1,Pt=nn,Xt=null;if(hn){for(var qt=nn||Yt,He=0,Rn=0,Cn=0,Gn=Math.min(k.length-1,Ot),Ci=0;Ci<=Gn;Ci+=1){var ci=N(k[Ci]);Rn=He;var sn=j.get(ci);Cn=Rn+(sn===void 0?X:sn),He=Cn}for(var rn=qt==="top"?on:hn-on,cr=Gn;cr>=0;cr-=1){var yr=N(k[cr]),Zn=j.get(yr);if(Zn===void 0){Ve=!0;break}if(rn-=Zn,rn<=0)break}switch(qt){case"top":Xt=Rn-on;break;case"bottom":Xt=Cn-hn+on;break;default:{var Mr=P.current.scrollTop,rr=Mr+hn;Rn<Mr?Pt="top":Cn>rr&&(Pt="bottom")}}Xt!==null&&wt(Xt),Xt!==Qe.lastTop&&(Ve=!0)}Ve&&Ct((0,O.Z)((0,O.Z)({},Qe),{},{times:Qe.times+1,targetAlign:Pt,lastTop:Xt}))}},[Qe,P.current]),function(nn){if(nn==null){ze();return}if(ge.Z.cancel(Oe.current),typeof nn=="number")wt(nn);else if(nn&&(0,I.Z)(nn)==="object"){var Yt,Ot=nn.align;"index"in nn?Yt=nn.index:Yt=k.findIndex(function(Ve){return N(Ve)===nn.key});var on=nn.offset,hn=on===void 0?0:on;Ct({times:0,index:Yt,offset:hn,originAlign:Ot})}}}var jt=ke.forwardRef(function(P,k){var j=P.prefixCls,X=P.rtl,N=P.scrollOffset,Re=P.scrollRange,wt=P.onStartMove,ze=P.onStopMove,Oe=P.onScroll,mt=P.horizontal,lt=P.spinSize,Qe=P.containerSize,Ct=P.style,nn=P.thumbStyle,Yt=P.showScrollBar,Ot=ke.useState(!1),on=(0,W.Z)(Ot,2),hn=on[0],Ve=on[1],Pt=ke.useState(null),Xt=(0,W.Z)(Pt,2),qt=Xt[0],He=Xt[1],Rn=ke.useState(null),Cn=(0,W.Z)(Rn,2),Gn=Cn[0],Ci=Cn[1],ci=!X,sn=ke.useRef(),rn=ke.useRef(),cr=ke.useState(Yt),yr=(0,W.Z)(cr,2),Zn=yr[0],Mr=yr[1],rr=ke.useRef(),U=function(){Yt===!0||Yt===!1||(clearTimeout(rr.current),Mr(!0),rr.current=setTimeout(function(){Mr(!1)},3e3))},mr=Re-Qe||0,lr=Qe-lt||0,_r=ke.useMemo(function(){if(N===0||mr===0)return 0;var _n=N/mr;return _n*lr},[N,mr,lr]),Hr=function(Hn){Hn.stopPropagation(),Hn.preventDefault()},uo=ke.useRef({top:_r,dragging:hn,pageY:qt,startTop:Gn});uo.current={top:_r,dragging:hn,pageY:qt,startTop:Gn};var Tr=function(Hn){Ve(!0),He(Xe(Hn,mt)),Ci(uo.current.top),wt(),Hn.stopPropagation(),Hn.preventDefault()};ke.useEffect(function(){var _n=function(fn){fn.preventDefault()},Hn=sn.current,gt=rn.current;return Hn.addEventListener("touchstart",_n,{passive:!1}),gt.addEventListener("touchstart",Tr,{passive:!1}),function(){Hn.removeEventListener("touchstart",_n),gt.removeEventListener("touchstart",Tr)}},[]);var Jr=ke.useRef();Jr.current=mr;var fr=ke.useRef();fr.current=lr,ke.useEffect(function(){if(hn){var _n,Hn=function(fn){var Sn=uo.current,ti=Sn.dragging,Kn=Sn.pageY,pt=Sn.startTop;ge.Z.cancel(_n);var gn=sn.current.getBoundingClientRect(),tn=Qe/(mt?gn.width:gn.height);if(ti){var xi=(Xe(fn,mt)-Kn)*tn,ft=pt;!ci&&mt?ft-=xi:ft+=xi;var Fn=Jr.current,Mt=fr.current,qe=Mt?ft/Mt:0,D=Math.ceil(qe*Fn);D=Math.max(D,0),D=Math.min(D,Fn),_n=(0,ge.Z)(function(){Oe(D,mt)})}},gt=function(){Ve(!1),ze()};return window.addEventListener("mousemove",Hn,{passive:!0}),window.addEventListener("touchmove",Hn,{passive:!0}),window.addEventListener("mouseup",gt,{passive:!0}),window.addEventListener("touchend",gt,{passive:!0}),function(){window.removeEventListener("mousemove",Hn),window.removeEventListener("touchmove",Hn),window.removeEventListener("mouseup",gt),window.removeEventListener("touchend",gt),ge.Z.cancel(_n)}}},[hn]),ke.useEffect(function(){return U(),function(){clearTimeout(rr.current)}},[N]),ke.useImperativeHandle(k,function(){return{delayHidden:U}});var Xi="".concat(j,"-scrollbar"),di={position:"absolute",visibility:Zn?null:"hidden"},ht={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return mt?(di.height=8,di.left=0,di.right=0,di.bottom=0,ht.height="100%",ht.width=lt,ci?ht.left=_r:ht.right=_r):(di.width=8,di.top=0,di.bottom=0,ci?di.right=0:di.left=0,ht.width="100%",ht.height=lt,ht.top=_r),ke.createElement("div",{ref:sn,className:pe()(Xi,(0,z.Z)((0,z.Z)((0,z.Z)({},"".concat(Xi,"-horizontal"),mt),"".concat(Xi,"-vertical"),!mt),"".concat(Xi,"-visible"),Zn)),style:(0,O.Z)((0,O.Z)({},di),Ct),onMouseDown:Hr,onMouseMove:U},ke.createElement("div",{ref:rn,className:pe()("".concat(Xi,"-thumb"),(0,z.Z)({},"".concat(Xi,"-thumb-moving"),hn)),style:(0,O.Z)((0,O.Z)({},ht),nn),onMouseDown:Tr}))}),yt=jt,ln=20;function Dt(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,j=P/k*P;return isNaN(j)&&(j=0),j=Math.max(j,ln),Math.floor(j)}var ui=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],On=[],ri={overflowY:"auto",overflowAnchor:"none"};function Xn(P,k){var j=P.prefixCls,X=j===void 0?"rc-virtual-list":j,N=P.className,Re=P.height,wt=P.itemHeight,ze=P.fullHeight,Oe=ze===void 0?!0:ze,mt=P.style,lt=P.data,Qe=P.children,Ct=P.itemKey,nn=P.virtual,Yt=P.direction,Ot=P.scrollWidth,on=P.component,hn=on===void 0?"div":on,Ve=P.onScroll,Pt=P.onVirtualScroll,Xt=P.onVisibleChange,qt=P.innerProps,He=P.extraRender,Rn=P.styles,Cn=P.showScrollBar,Gn=Cn===void 0?"optional":Cn,Ci=(0,_.Z)(P,ui),ci=ke.useCallback(function(Ri){return typeof Ct=="function"?Ct(Ri):Ri==null?void 0:Ri[Ct]},[Ct]),sn=bt(ci,null,null),rn=(0,W.Z)(sn,4),cr=rn[0],yr=rn[1],Zn=rn[2],Mr=rn[3],rr=!!(nn!==!1&&Re&&wt),U=ke.useMemo(function(){return Object.values(Zn.maps).reduce(function(Ri,Vi){return Ri+Vi},0)},[Zn.id,Zn.maps]),mr=rr&<&&(Math.max(wt*lt.length,U)>Re||!!Ot),lr=Yt==="rtl",_r=pe()(X,(0,z.Z)({},"".concat(X,"-rtl"),lr),N),Hr=lt||On,uo=(0,ke.useRef)(),Tr=(0,ke.useRef)(),Jr=(0,ke.useRef)(),fr=(0,ke.useState)(0),Xi=(0,W.Z)(fr,2),di=Xi[0],ht=Xi[1],_n=(0,ke.useState)(0),Hn=(0,W.Z)(_n,2),gt=Hn[0],Ge=Hn[1],fn=(0,ke.useState)(!1),Sn=(0,W.Z)(fn,2),ti=Sn[0],Kn=Sn[1],pt=function(){Kn(!0)},gn=function(){Kn(!1)},tn={getKey:ci};function xi(Ri){ht(function(Vi){var Hi;typeof Ri=="function"?Hi=Ri(Vi):Hi=Ri;var $r=Et(Hi);return uo.current.scrollTop=$r,$r})}var ft=(0,ke.useRef)({start:0,end:Hr.length}),Fn=(0,ke.useRef)(),Mt=we(Hr,ci),qe=(0,W.Z)(Mt,1),D=qe[0];Fn.current=D;var Gt=ke.useMemo(function(){if(!rr)return{scrollHeight:void 0,start:0,end:Hr.length-1,offset:void 0};if(!mr){var Ri;return{scrollHeight:((Ri=Tr.current)===null||Ri===void 0?void 0:Ri.offsetHeight)||0,start:0,end:Hr.length-1,offset:void 0}}for(var Vi=0,Hi,$r,Vr,wo=Hr.length,Ko=0;Ko<wo;Ko+=1){var mi=Hr[Ko],Rs=ci(mi),fs=Zn.get(Rs),cs=Vi+(fs===void 0?wt:fs);cs>=di&&Hi===void 0&&(Hi=Ko,$r=Vi),cs>di+Re&&Vr===void 0&&(Vr=Ko),Vi=cs}return Hi===void 0&&(Hi=0,$r=0,Vr=Math.ceil(Re/wt)),Vr===void 0&&(Vr=Hr.length-1),Vr=Math.min(Vr+1,Hr.length-1),{scrollHeight:Vi,start:Hi,end:Vr,offset:$r}},[mr,rr,di,Hr,Mr,Re]),dn=Gt.scrollHeight,xt=Gt.start,En=Gt.end,Mn=Gt.offset;ft.current.start=xt,ft.current.end=En,ke.useLayoutEffect(function(){var Ri=Zn.getRecord();if(Ri.size===1){var Vi=Array.from(Ri)[0],Hi=ci(Hr[xt]);if(Hi===Vi){var $r=Zn.get(Vi),Vr=$r-wt;xi(function(wo){return wo+Vr})}}Zn.resetRecord()},[dn]);var ki=ke.useState({width:0,height:Re}),Un=(0,W.Z)(ki,2),ot=Un[0],Bi=Un[1],hr=function(Vi){Bi({width:Vi.offsetWidth,height:Vi.offsetHeight})},Kt=(0,ke.useRef)(),Qi=(0,ke.useRef)(),J=ke.useMemo(function(){return Dt(ot.width,Ot)},[ot.width,Ot]),ae=ke.useMemo(function(){return Dt(ot.height,dn)},[ot.height,dn]),Yn=dn-Re,_e=(0,ke.useRef)(Yn);_e.current=Yn;function Et(Ri){var Vi=Ri;return Number.isNaN(_e.current)||(Vi=Math.min(Vi,_e.current)),Vi=Math.max(Vi,0),Vi}var Ni=di<=0,Pn=di>=Yn,Ki=gt<=0,Zt=gt>=Ot,Ii=Ce(Ni,Pn,Ki,Zt),Wt=function(){return{x:lr?-gt:gt,y:di}},Yi=(0,ke.useRef)(Wt()),io=(0,ne.useEvent)(function(Ri){if(Pt){var Vi=(0,O.Z)((0,O.Z)({},Wt()),Ri);(Yi.current.x!==Vi.x||Yi.current.y!==Vi.y)&&(Pt(Vi),Yi.current=Vi)}});function It(Ri,Vi){var Hi=Ri;Vi?((0,rt.flushSync)(function(){Ge(Hi)}),io()):xi(Hi)}function Mo(Ri){var Vi=Ri.currentTarget.scrollTop;Vi!==di&&xi(Vi),Ve==null||Ve(Ri),io()}var Jt=function(Vi){var Hi=Vi,$r=Ot?Ot-ot.width:0;return Hi=Math.max(Hi,0),Hi=Math.min(Hi,$r),Hi},_i=(0,ne.useEvent)(function(Ri,Vi){Vi?((0,rt.flushSync)(function(){Ge(function(Hi){var $r=Hi+(lr?-Ri:Ri);return Jt($r)})}),io()):xi(function(Hi){var $r=Hi+Ri;return $r})}),Li=Ne(rr,Ni,Pn,Ki,Zt,!!Ot,_i),Sr=(0,W.Z)(Li,2),Or=Sr[0],qn=Sr[1];Tt(rr,uo,function(Ri,Vi,Hi,$r){var Vr=$r;return Ii(Ri,Vi,Hi)?!1:!Vr||!Vr._virtualHandled?(Vr&&(Vr._virtualHandled=!0),Or({preventDefault:function(){},deltaX:Ri?Vi:0,deltaY:Ri?0:Vi}),!0):!1}),se(mr,uo,function(Ri){xi(function(Vi){return Vi+Ri})}),(0,Pe.Z)(function(){function Ri(Hi){var $r=Ni&&Hi.detail<0,Vr=Pn&&Hi.detail>0;rr&&!$r&&!Vr&&Hi.preventDefault()}var Vi=uo.current;return Vi.addEventListener("wheel",Or,{passive:!1}),Vi.addEventListener("DOMMouseScroll",qn,{passive:!0}),Vi.addEventListener("MozMousePixelScroll",Ri,{passive:!1}),function(){Vi.removeEventListener("wheel",Or),Vi.removeEventListener("DOMMouseScroll",qn),Vi.removeEventListener("MozMousePixelScroll",Ri)}},[rr,Ni,Pn]),(0,Pe.Z)(function(){if(Ot){var Ri=Jt(gt);Ge(Ri),io({x:Ri})}},[ot.width,Ot]);var ce=function(){var Vi,Hi;(Vi=Kt.current)===null||Vi===void 0||Vi.delayHidden(),(Hi=Qi.current)===null||Hi===void 0||Hi.delayHidden()},Ar=_t(uo,Hr,Zn,wt,ci,function(){return yr(!0)},xi,ce);ke.useImperativeHandle(k,function(){return{nativeElement:Jr.current,getScrollInfo:Wt,scrollTo:function(Vi){function Hi($r){return $r&&(0,I.Z)($r)==="object"&&("left"in $r||"top"in $r)}Hi(Vi)?(Vi.left!==void 0&&Ge(Jt(Vi.left)),Ar(Vi.top)):Ar(Vi)}}}),(0,Pe.Z)(function(){if(Xt){var Ri=Hr.slice(xt,En+1);Xt(Ri,Hr)}},[xt,En,Hr]);var eo=Le(Hr,ci,Zn,wt),br=He==null?void 0:He({start:xt,end:En,virtual:mr,offsetX:gt,offsetY:Mn,rtl:lr,getSize:eo}),fo=Fe(Hr,xt,En,Ot,gt,cr,Qe,tn),qi=null;Re&&(qi=(0,O.Z)((0,z.Z)({},Oe?"height":"maxHeight",Re),ri),rr&&(qi.overflowY="hidden",Ot&&(qi.overflowX="hidden"),ti&&(qi.pointerEvents="none")));var Xr={};return lr&&(Xr.dir="rtl"),ke.createElement("div",(0,b.Z)({ref:Jr,style:(0,O.Z)((0,O.Z)({},mt),{},{position:"relative"}),className:_r},Xr,Ci),ke.createElement(ue.Z,{onResize:hr},ke.createElement(hn,{className:"".concat(X,"-holder"),style:qi,ref:uo,onScroll:Mo,onMouseEnter:ce},ke.createElement(Ie,{prefixCls:X,height:dn,offsetX:gt,offsetY:Mn,scrollWidth:Ot,onInnerResize:yr,ref:Tr,innerProps:qt,rtl:lr,extra:br},fo))),mr&&dn>Re&&ke.createElement(yt,{ref:Kt,prefixCls:X,scrollOffset:di,scrollRange:dn,rtl:lr,onScroll:It,onStartMove:pt,onStopMove:gn,spinSize:ae,containerSize:ot.height,style:Rn==null?void 0:Rn.verticalScrollBar,thumbStyle:Rn==null?void 0:Rn.verticalScrollBarThumb,showScrollBar:Gn}),mr&&Ot>ot.width&&ke.createElement(yt,{ref:Qi,prefixCls:X,scrollOffset:gt,scrollRange:Ot,rtl:lr,onScroll:It,onStartMove:pt,onStopMove:gn,spinSize:J,containerSize:ot.width,horizontal:!0,style:Rn==null?void 0:Rn.horizontalScrollBar,thumbStyle:Rn==null?void 0:Rn.horizontalScrollBarThumb,showScrollBar:Gn}))}var Tn=ke.forwardRef(Xn);Tn.displayName="List";var Nn=Tn,xe=Nn},77596:function(Q,C,d){"use strict";d.d(C,{Z:function(){return se}});var b=d(37061),I=d(26407),O=d(400),z=d(59301),W=d(92413);function _(le,_t){var jt=Object.keys(le);if(Object.getOwnPropertySymbols){var yt=Object.getOwnPropertySymbols(le);_t&&(yt=yt.filter(function(ln){return Object.getOwnPropertyDescriptor(le,ln).enumerable})),jt.push.apply(jt,yt)}return jt}function M(le){for(var _t=1;_t<arguments.length;_t++){var jt=arguments[_t]!=null?arguments[_t]:{};_t%2?_(Object(jt),!0).forEach(function(yt){(0,O.Z)(le,yt,jt[yt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(le,Object.getOwnPropertyDescriptors(jt)):_(Object(jt)).forEach(function(yt){Object.defineProperty(le,yt,Object.getOwnPropertyDescriptor(jt,yt))})}return le}function pe(le){var _t=le.length;if(_t===0||_t===1)return le;if(_t===2)return[le[0],le[1],"".concat(le[0],".").concat(le[1]),"".concat(le[1],".").concat(le[0])];if(_t===3)return[le[0],le[1],le[2],"".concat(le[0],".").concat(le[1]),"".concat(le[0],".").concat(le[2]),"".concat(le[1],".").concat(le[0]),"".concat(le[1],".").concat(le[2]),"".concat(le[2],".").concat(le[0]),"".concat(le[2],".").concat(le[1]),"".concat(le[0],".").concat(le[1],".").concat(le[2]),"".concat(le[0],".").concat(le[2],".").concat(le[1]),"".concat(le[1],".").concat(le[0],".").concat(le[2]),"".concat(le[1],".").concat(le[2],".").concat(le[0]),"".concat(le[2],".").concat(le[0],".").concat(le[1]),"".concat(le[2],".").concat(le[1],".").concat(le[0])];if(_t>=4)return[le[0],le[1],le[2],le[3],"".concat(le[0],".").concat(le[1]),"".concat(le[0],".").concat(le[2]),"".concat(le[0],".").concat(le[3]),"".concat(le[1],".").concat(le[0]),"".concat(le[1],".").concat(le[2]),"".concat(le[1],".").concat(le[3]),"".concat(le[2],".").concat(le[0]),"".concat(le[2],".").concat(le[1]),"".concat(le[2],".").concat(le[3]),"".concat(le[3],".").concat(le[0]),"".concat(le[3],".").concat(le[1]),"".concat(le[3],".").concat(le[2]),"".concat(le[0],".").concat(le[1],".").concat(le[2]),"".concat(le[0],".").concat(le[1],".").concat(le[3]),"".concat(le[0],".").concat(le[2],".").concat(le[1]),"".concat(le[0],".").concat(le[2],".").concat(le[3]),"".concat(le[0],".").concat(le[3],".").concat(le[1]),"".concat(le[0],".").concat(le[3],".").concat(le[2]),"".concat(le[1],".").concat(le[0],".").concat(le[2]),"".concat(le[1],".").concat(le[0],".").concat(le[3]),"".concat(le[1],".").concat(le[2],".").concat(le[0]),"".concat(le[1],".").concat(le[2],".").concat(le[3]),"".concat(le[1],".").concat(le[3],".").concat(le[0]),"".concat(le[1],".").concat(le[3],".").concat(le[2]),"".concat(le[2],".").concat(le[0],".").concat(le[1]),"".concat(le[2],".").concat(le[0],".").concat(le[3]),"".concat(le[2],".").concat(le[1],".").concat(le[0]),"".concat(le[2],".").concat(le[1],".").concat(le[3]),"".concat(le[2],".").concat(le[3],".").concat(le[0]),"".concat(le[2],".").concat(le[3],".").concat(le[1]),"".concat(le[3],".").concat(le[0],".").concat(le[1]),"".concat(le[3],".").concat(le[0],".").concat(le[2]),"".concat(le[3],".").concat(le[1],".").concat(le[0]),"".concat(le[3],".").concat(le[1],".").concat(le[2]),"".concat(le[3],".").concat(le[2],".").concat(le[0]),"".concat(le[3],".").concat(le[2],".").concat(le[1]),"".concat(le[0],".").concat(le[1],".").concat(le[2],".").concat(le[3]),"".concat(le[0],".").concat(le[1],".").concat(le[3],".").concat(le[2]),"".concat(le[0],".").concat(le[2],".").concat(le[1],".").concat(le[3]),"".concat(le[0],".").concat(le[2],".").concat(le[3],".").concat(le[1]),"".concat(le[0],".").concat(le[3],".").concat(le[1],".").concat(le[2]),"".concat(le[0],".").concat(le[3],".").concat(le[2],".").concat(le[1]),"".concat(le[1],".").concat(le[0],".").concat(le[2],".").concat(le[3]),"".concat(le[1],".").concat(le[0],".").concat(le[3],".").concat(le[2]),"".concat(le[1],".").concat(le[2],".").concat(le[0],".").concat(le[3]),"".concat(le[1],".").concat(le[2],".").concat(le[3],".").concat(le[0]),"".concat(le[1],".").concat(le[3],".").concat(le[0],".").concat(le[2]),"".concat(le[1],".").concat(le[3],".").concat(le[2],".").concat(le[0]),"".concat(le[2],".").concat(le[0],".").concat(le[1],".").concat(le[3]),"".concat(le[2],".").concat(le[0],".").concat(le[3],".").concat(le[1]),"".concat(le[2],".").concat(le[1],".").concat(le[0],".").concat(le[3]),"".concat(le[2],".").concat(le[1],".").concat(le[3],".").concat(le[0]),"".concat(le[2],".").concat(le[3],".").concat(le[0],".").concat(le[1]),"".concat(le[2],".").concat(le[3],".").concat(le[1],".").concat(le[0]),"".concat(le[3],".").concat(le[0],".").concat(le[1],".").concat(le[2]),"".concat(le[3],".").concat(le[0],".").concat(le[2],".").concat(le[1]),"".concat(le[3],".").concat(le[1],".").concat(le[0],".").concat(le[2]),"".concat(le[3],".").concat(le[1],".").concat(le[2],".").concat(le[0]),"".concat(le[3],".").concat(le[2],".").concat(le[0],".").concat(le[1]),"".concat(le[3],".").concat(le[2],".").concat(le[1],".").concat(le[0])]}var ue={};function ne(le){if(le.length===0||le.length===1)return le;var _t=le.join(".");return ue[_t]||(ue[_t]=pe(le)),ue[_t]}function Pe(le){var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},jt=arguments.length>2?arguments[2]:void 0,yt=le.filter(function(Dt){return Dt!=="token"}),ln=ne(yt);return ln.reduce(function(Dt,ui){return M(M({},Dt),jt[ui])},_t)}function ke(le){return le.join(" ")}function rt(le,_t){var jt=0;return function(yt){return jt+=1,yt.map(function(ln,Dt){return Ue({node:ln,stylesheet:le,useInlineStyles:_t,key:"code-segment-".concat(jt,"-").concat(Dt)})})}}function Ue(le){var _t=le.node,jt=le.stylesheet,yt=le.style,ln=yt===void 0?{}:yt,Dt=le.useInlineStyles,ui=le.key,On=_t.properties,ri=_t.type,Xn=_t.tagName,Tn=_t.value;if(ri==="text")return Tn;if(Xn){var Nn=rt(jt,Dt),xe;if(!Dt)xe=M(M({},On),{},{className:ke(On.className)});else{var P=Object.keys(jt).reduce(function(N,Re){return Re.split(".").forEach(function(wt){N.includes(wt)||N.push(wt)}),N},[]),k=On.className&&On.className.includes("token")?["token"]:[],j=On.className&&k.concat(On.className.filter(function(N){return!P.includes(N)}));xe=M(M({},On),{},{className:ke(j)||void 0,style:Pe(On.className,Object.assign({},On.style,ln),jt)})}var X=Nn(_t.children);return z.createElement(Xn,(0,W.Z)({key:ui},xe),X)}}var Ie=function(le,_t){var jt=le.listLanguages();return jt.indexOf(_t)!==-1},De=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function Fe(le,_t){var jt=Object.keys(le);if(Object.getOwnPropertySymbols){var yt=Object.getOwnPropertySymbols(le);_t&&(yt=yt.filter(function(ln){return Object.getOwnPropertyDescriptor(le,ln).enumerable})),jt.push.apply(jt,yt)}return jt}function de(le){for(var _t=1;_t<arguments.length;_t++){var jt=arguments[_t]!=null?arguments[_t]:{};_t%2?Fe(Object(jt),!0).forEach(function(yt){(0,O.Z)(le,yt,jt[yt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(le,Object.getOwnPropertyDescriptors(jt)):Fe(Object(jt)).forEach(function(yt){Object.defineProperty(le,yt,Object.getOwnPropertyDescriptor(jt,yt))})}return le}var me=/\n/g;function we(le){return le.match(me)}function ge(le){var _t=le.lines,jt=le.startingLineNumber,yt=le.style;return _t.map(function(ln,Dt){var ui=Dt+jt;return z.createElement("span",{key:"line-".concat(Dt),className:"react-syntax-highlighter-line-number",style:typeof yt=="function"?yt(ui):yt},"".concat(ui,`
|
|
|
`))})}function Te(le){var _t=le.codeString,jt=le.codeStyle,yt=le.containerStyle,ln=yt===void 0?{float:"left",paddingRight:"10px"}:yt,Dt=le.numberStyle,ui=Dt===void 0?{}:Dt,On=le.startingLineNumber;return z.createElement("code",{style:Object.assign({},jt,ln)},ge({lines:_t.replace(/\n$/,"").split(`
|
|
|
`),style:ui,startingLineNumber:On}))}function ee(le){return"".concat(le.toString().length,".25em")}function Ce(le,_t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(le),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:_t},children:[{type:"text",value:le}]}}function Ne(le,_t,jt){var yt={display:"inline-block",minWidth:ee(jt),paddingRight:"1em",textAlign:"right",userSelect:"none"},ln=typeof le=="function"?le(_t):le,Dt=de(de({},yt),ln);return Dt}function Le(le){var _t=le.children,jt=le.lineNumber,yt=le.lineNumberStyle,ln=le.largestLineNumber,Dt=le.showInlineLineNumbers,ui=le.lineProps,On=ui===void 0?{}:ui,ri=le.className,Xn=ri===void 0?[]:ri,Tn=le.showLineNumbers,Nn=le.wrapLongLines,xe=le.wrapLines,P=xe===void 0?!1:xe,k=P?de({},typeof On=="function"?On(jt):On):{};if(k.className=k.className?[].concat((0,I.Z)(k.className.trim().split(/\s+/)),(0,I.Z)(Xn)):Xn,jt&&Dt){var j=Ne(yt,jt,ln);_t.unshift(Ce(jt,j))}return Nn&Tn&&(k.style=de({display:"flex"},k.style)),{type:"element",tagName:"span",properties:k,children:_t}}function Ke(le){for(var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],jt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],yt=0;yt<le.length;yt++){var ln=le[yt];if(ln.type==="text")jt.push(Le({children:[ln],className:(0,I.Z)(new Set(_t))}));else if(ln.children){var Dt=_t.concat(ln.properties.className);Ke(ln.children,Dt).forEach(function(ui){return jt.push(ui)})}}return jt}function nt(le,_t,jt,yt,ln,Dt,ui,On,ri){var Xn,Tn=Ke(le.value),Nn=[],xe=-1,P=0;function k(Oe,mt){var lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return Le({children:Oe,lineNumber:mt,lineNumberStyle:On,largestLineNumber:ui,showInlineLineNumbers:ln,lineProps:jt,className:lt,showLineNumbers:yt,wrapLongLines:ri,wrapLines:_t})}function j(Oe,mt){if(yt&&mt&&ln){var lt=Ne(On,mt,ui);Oe.unshift(Ce(mt,lt))}return Oe}function X(Oe,mt){var lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return _t||lt.length>0?k(Oe,mt,lt):j(Oe,mt)}for(var N=function(){var mt=Tn[P],lt=mt.children[0].value,Qe=we(lt);if(Qe){var Ct=lt.split(`
|
|
|
`);Ct.forEach(function(nn,Yt){var Ot=yt&&Nn.length+Dt,on={type:"text",value:"".concat(nn,`
|
|
|
`)};if(Yt===0){var hn=Tn.slice(xe+1,P).concat(Le({children:[on],className:mt.properties.className})),Ve=X(hn,Ot);Nn.push(Ve)}else if(Yt===Ct.length-1){var Pt=Tn[P+1]&&Tn[P+1].children&&Tn[P+1].children[0],Xt={type:"text",value:"".concat(nn)};if(Pt){var qt=Le({children:[Xt],className:mt.properties.className});Tn.splice(P+1,0,qt)}else{var He=[Xt],Rn=X(He,Ot,mt.properties.className);Nn.push(Rn)}}else{var Cn=[on],Gn=X(Cn,Ot,mt.properties.className);Nn.push(Gn)}}),xe=P}P++};P<Tn.length;)N();if(xe!==Tn.length-1){var Re=Tn.slice(xe+1,Tn.length);if(Re&&Re.length){var wt=yt&&Nn.length+Dt,ze=X(Re,wt);Nn.push(ze)}}return _t?Nn:(Xn=[]).concat.apply(Xn,Nn)}function ie(le){var _t=le.rows,jt=le.stylesheet,yt=le.useInlineStyles;return _t.map(function(ln,Dt){return Ue({node:ln,stylesheet:jt,useInlineStyles:yt,key:"code-segement".concat(Dt)})})}function at(le){return le&&typeof le.highlightAuto!="undefined"}function Ze(le){var _t=le.astGenerator,jt=le.language,yt=le.code,ln=le.defaultCodeValue;if(at(_t)){var Dt=Ie(_t,jt);return jt==="text"?{value:ln,language:"text"}:Dt?_t.highlight(jt,yt):_t.highlightAuto(yt)}try{return jt&&jt!=="text"?{value:_t.highlight(yt,jt)}:{value:ln}}catch(ui){return{value:ln}}}function Bt(le,_t){return function(yt){var ln=yt.language,Dt=yt.children,ui=yt.style,On=ui===void 0?_t:ui,ri=yt.customStyle,Xn=ri===void 0?{}:ri,Tn=yt.codeTagProps,Nn=Tn===void 0?{className:ln?"language-".concat(ln):void 0,style:de(de({},On['code[class*="language-"]']),On['code[class*="language-'.concat(ln,'"]')])}:Tn,xe=yt.useInlineStyles,P=xe===void 0?!0:xe,k=yt.showLineNumbers,j=k===void 0?!1:k,X=yt.showInlineLineNumbers,N=X===void 0?!0:X,Re=yt.startingLineNumber,wt=Re===void 0?1:Re,ze=yt.lineNumberContainerStyle,Oe=yt.lineNumberStyle,mt=Oe===void 0?{}:Oe,lt=yt.wrapLines,Qe=yt.wrapLongLines,Ct=Qe===void 0?!1:Qe,nn=yt.lineProps,Yt=nn===void 0?{}:nn,Ot=yt.renderer,on=yt.PreTag,hn=on===void 0?"pre":on,Ve=yt.CodeTag,Pt=Ve===void 0?"code":Ve,Xt=yt.code,qt=Xt===void 0?(Array.isArray(Dt)?Dt[0]:Dt)||"":Xt,He=yt.astGenerator,Rn=(0,b.Z)(yt,De);He=He||le;var Cn=j?z.createElement(Te,{containerStyle:ze,codeStyle:Nn.style||{},numberStyle:mt,startingLineNumber:wt,codeString:qt}):null,Gn=On.hljs||On['pre[class*="language-"]']||{backgroundColor:"#fff"},Ci=at(He)?"hljs":"prismjs",ci=P?Object.assign({},Rn,{style:Object.assign({},Gn,Xn)}):Object.assign({},Rn,{className:Rn.className?"".concat(Ci," ").concat(Rn.className):Ci,style:Object.assign({},Xn)});if(Ct?Nn.style=de({whiteSpace:"pre-wrap"},Nn.style):Nn.style=de({whiteSpace:"pre"},Nn.style),!He)return z.createElement(hn,ci,Cn,z.createElement(Pt,Nn,qt));(lt===void 0&&Ot||Ct)&&(lt=!0),Ot=Ot||ie;var sn=[{type:"text",value:qt}],rn=Ze({astGenerator:He,language:ln,code:qt,defaultCodeValue:sn});rn.language===null&&(rn.value=sn);var cr=rn.value.length;cr===1&&rn.value[0].type==="text"&&(cr=rn.value[0].value.split(`
|
|
|
`).length);var yr=cr+wt,Zn=nt(rn,lt,Yt,j,N,wt,yr,mt,Ct);return z.createElement(hn,ci,z.createElement(Pt,Nn,!N&&Cn,Ot({rows:Zn,stylesheet:On,useInlineStyles:P})))}}var bt={'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=d(11594),Tt=d.n(kt),wn=["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"],Xe=Bt(Tt(),bt);Xe.supportedLanguages=wn;var se=Xe},14179:function(Q,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(Q,C,d){"use strict";d(84126);var b=d(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 z=b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,W=Object.prototype.hasOwnProperty,_={key:!0,ref:!0,__self:!0,__source:!0};function M(pe,ue,ne){var Pe,ke={},rt=null,Ue=null;ne!==void 0&&(rt=""+ne),ue.key!==void 0&&(rt=""+ue.key),ue.ref!==void 0&&(Ue=ue.ref);for(Pe in ue)W.call(ue,Pe)&&!_.hasOwnProperty(Pe)&&(ke[Pe]=ue[Pe]);if(pe&&pe.defaultProps)for(Pe in ue=pe.defaultProps,ue)ke[Pe]===void 0&&(ke[Pe]=ue[Pe]);return{$$typeof:I,type:pe,key:rt,ref:Ue,props:ke,_owner:z.current}}C.jsx=M,C.jsxs=M},37712:function(Q,C,d){"use strict";Q.exports=d(19524)},95489:function(Q,C,d){"use strict";var b=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof d.g=="object"?d.g:{},I=Te();b.Prism={manual:!0,disableWorkerMessageHandler:!0};var O=d(43621),z=d(12256),W=d(68398),_=d(70614),M=d(54212),pe=d(9720),ue=d(88786);I();var ne={}.hasOwnProperty;function Pe(){}Pe.prototype=W;var ke=new Pe;Q.exports=ke,ke.highlight=Ie,ke.register=rt,ke.alias=Ue,ke.registered=De,ke.listLanguages=Fe,rt(_),rt(M),rt(pe),rt(ue),ke.util.encode=we,ke.Token.stringify=de;function rt(ee){if(typeof ee!="function"||!ee.displayName)throw new Error("Expected `function` for `grammar`, got `"+ee+"`");ke.languages[ee.displayName]===void 0&&ee(ke)}function Ue(ee,Ce){var Ne=ke.languages,Le=ee,Ke,nt,ie,at;Ce&&(Le={},Le[ee]=Ce);for(Ke in Le)for(nt=Le[Ke],nt=typeof nt=="string"?[nt]:nt,ie=nt.length,at=-1;++at<ie;)Ne[nt[at]]=Ne[Ke]}function Ie(ee,Ce){var Ne=W.highlight,Le;if(typeof ee!="string")throw new Error("Expected `string` for `value`, got `"+ee+"`");if(ke.util.type(Ce)==="Object")Le=Ce,Ce=null;else{if(typeof Ce!="string")throw new Error("Expected `string` for `name`, got `"+Ce+"`");if(ne.call(ke.languages,Ce))Le=ke.languages[Ce];else throw new Error("Unknown language: `"+Ce+"` is not registered")}return Ne.call(this,ee,Le,Ce)}function De(ee){if(typeof ee!="string")throw new Error("Expected `string` for `language`, got `"+ee+"`");return ne.call(ke.languages,ee)}function Fe(){var ee=ke.languages,Ce=[],Ne;for(Ne in ee)ne.call(ee,Ne)&&typeof ee[Ne]=="object"&&Ce.push(Ne);return Ce}function de(ee,Ce,Ne){var Le;return typeof ee=="string"?{type:"text",value:ee}:ke.util.type(ee)==="Array"?me(ee,Ce):(Le={type:ee.type,content:ke.Token.stringify(ee.content,Ce,Ne),tag:"span",classes:["token",ee.type],attributes:{},language:Ce,parent:Ne},ee.alias&&(Le.classes=Le.classes.concat(ee.alias)),ke.hooks.run("wrap",Le),O(Le.tag+"."+Le.classes.join("."),ge(Le.attributes),Le.content))}function me(ee,Ce){for(var Ne=[],Le=ee.length,Ke=-1,nt;++Ke<Le;)nt=ee[Ke],nt!==""&&nt!==null&&nt!==void 0&&Ne.push(nt);for(Ke=-1,Le=Ne.length;++Ke<Le;)nt=Ne[Ke],Ne[Ke]=ke.Token.stringify(nt,Ce,Ne);return Ne}function we(ee){return ee}function ge(ee){var Ce;for(Ce in ee)ee[Ce]=z(ee[Ce]);return ee}function Te(){var ee="Prism"in b,Ce=ee?b.Prism:void 0;return Ne;function Ne(){ee?b.Prism=Ce:delete b.Prism,ee=void 0,Ce=void 0}}},11594:function(Q,C,d){"use strict";var b=d(95489);Q.exports=b,b.register(d(79007)),b.register(d(15465)),b.register(d(42746)),b.register(d(93281)),b.register(d(95143)),b.register(d(65924)),b.register(d(65043)),b.register(d(43556)),b.register(d(14901)),b.register(d(4248)),b.register(d(17758)),b.register(d(33335)),b.register(d(17427)),b.register(d(22956)),b.register(d(56007)),b.register(d(45652)),b.register(d(33819)),b.register(d(84230)),b.register(d(20803)),b.register(d(65235)),b.register(d(52406)),b.register(d(79571)),b.register(d(3058)),b.register(d(51422)),b.register(d(1618)),b.register(d(35851)),b.register(d(51274)),b.register(d(23796)),b.register(d(13979)),b.register(d(87994)),b.register(d(47035)),b.register(d(36142)),b.register(d(85290)),b.register(d(7407)),b.register(d(79440)),b.register(d(7110)),b.register(d(73435)),b.register(d(91372)),b.register(d(63663)),b.register(d(92987)),b.register(d(91657)),b.register(d(34367)),b.register(d(35348)),b.register(d(26841)),b.register(d(87071)),b.register(d(13652)),b.register(d(87648)),b.register(d(10617)),b.register(d(5348)),b.register(d(71053)),b.register(d(69820)),b.register(d(41929)),b.register(d(51837)),b.register(d(4182)),b.register(d(22117)),b.register(d(95627)),b.register(d(34265)),b.register(d(50618)),b.register(d(32126)),b.register(d(26737)),b.register(d(90134)),b.register(d(51348)),b.register(d(60841)),b.register(d(42857)),b.register(d(81269)),b.register(d(31134)),b.register(d(83125)),b.register(d(9438)),b.register(d(27771)),b.register(d(86549)),b.register(d(37079)),b.register(d(59250)),b.register(d(81226)),b.register(d(65245)),b.register(d(25040)),b.register(d(40284)),b.register(d(39187)),b.register(d(34302)),b.register(d(90515)),b.register(d(33534)),b.register(d(9885)),b.register(d(76364)),b.register(d(56452)),b.register(d(8477)),b.register(d(58230)),b.register(d(66192)),b.register(d(81084)),b.register(d(50318)),b.register(d(95769)),b.register(d(14155)),b.register(d(92823)),b.register(d(63092)),b.register(d(21550)),b.register(d(29710)),b.register(d(2050)),b.register(d(67967)),b.register(d(29138)),b.register(d(67915)),b.register(d(54853)),b.register(d(68330)),b.register(d(76823)),b.register(d(86712)),b.register(d(72252)),b.register(d(78634)),b.register(d(43583)),b.register(d(23328)),b.register(d(74494)),b.register(d(46745)),b.register(d(22152)),b.register(d(83698)),b.register(d(26619)),b.register(d(53990)),b.register(d(7093)),b.register(d(4005)),b.register(d(53510)),b.register(d(24799)),b.register(d(97443)),b.register(d(80746)),b.register(d(17015)),b.register(d(89246)),b.register(d(487)),b.register(d(79539)),b.register(d(15628)),b.register(d(14320)),b.register(d(73222)),b.register(d(92486)),b.register(d(24103)),b.register(d(40604)),b.register(d(23109)),b.register(d(32082)),b.register(d(77674)),b.register(d(37524)),b.register(d(6658)),b.register(d(24824)),b.register(d(22776)),b.register(d(89700)),b.register(d(99296)),b.register(d(39940)),b.register(d(34973)),b.register(d(98135)),b.register(d(36907)),b.register(d(3567)),b.register(d(23763)),b.register(d(29509)),b.register(d(40472)),b.register(d(44695)),b.register(d(53885)),b.register(d(51478)),b.register(d(16928)),b.register(d(13586)),b.register(d(37164)),b.register(d(25153)),b.register(d(33245)),b.register(d(32218)),b.register(d(65626)),b.register(d(60090)),b.register(d(40722)),b.register(d(37783)),b.register(d(41224)),b.register(d(71365)),b.register(d(42846)),b.register(d(32964)),b.register(d(78830)),b.register(d(88799)),b.register(d(66791)),b.register(d(41735)),b.register(d(13490)),b.register(d(7383)),b.register(d(66894)),b.register(d(45779)),b.register(d(27734)),b.register(d(91889)),b.register(d(55965)),b.register(d(37326)),b.register(d(92949)),b.register(d(5681)),b.register(d(70696)),b.register(d(35790)),b.register(d(25777)),b.register(d(65889)),b.register(d(53852)),b.register(d(97719)),b.register(d(63839)),b.register(d(67623)),b.register(d(32530)),b.register(d(8938)),b.register(d(55259)),b.register(d(67411)),b.register(d(15375)),b.register(d(12093)),b.register(d(83588)),b.register(d(94127)),b.register(d(21294)),b.register(d(38709)),b.register(d(15008)),b.register(d(96549)),b.register(d(5221)),b.register(d(27447)),b.register(d(73191)),b.register(d(75542)),b.register(d(50323)),b.register(d(44298)),b.register(d(9634)),b.register(d(75266)),b.register(d(48139)),b.register(d(97534)),b.register(d(90826)),b.register(d(63919)),b.register(d(68862)),b.register(d(39523)),b.register(d(31207)),b.register(d(75308)),b.register(d(45315)),b.register(d(13794)),b.register(d(41299)),b.register(d(98177)),b.register(d(48780)),b.register(d(79793)),b.register(d(52085)),b.register(d(65411)),b.register(d(84750)),b.register(d(88216)),b.register(d(66433)),b.register(d(34855)),b.register(d(12998)),b.register(d(10202)),b.register(d(41186)),b.register(d(68963)),b.register(d(5569)),b.register(d(69435)),b.register(d(42766)),b.register(d(46449)),b.register(d(89032)),b.register(d(40241)),b.register(d(24812)),b.register(d(16747)),b.register(d(73584)),b.register(d(79243)),b.register(d(31788)),b.register(d(60871)),b.register(d(21023)),b.register(d(14693)),b.register(d(8743)),b.register(d(1689)),b.register(d(69210)),b.register(d(58710)),b.register(d(60452)),b.register(d(92784)),b.register(d(36489)),b.register(d(78380)),b.register(d(10409)),b.register(d(6539)),b.register(d(82028)),b.register(d(62282)),b.register(d(55686)),b.register(d(70889)),b.register(d(37116)),b.register(d(66963)),b.register(d(21078)),b.register(d(96198)),b.register(d(17723)),b.register(d(67771)),b.register(d(30307)),b.register(d(8921)),b.register(d(13429)),b.register(d(65197)),b.register(d(88904)),b.register(d(35)),b.register(d(86095)),b.register(d(76998)),b.register(d(14409)),b.register(d(33460)),b.register(d(28108))},79007:function(Q){"use strict";Q.exports=C,C.displayName="abap",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="abnf",C.aliases=[];function C(d){(function(b){var I="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";b.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:/[()\[\]]/}})(d)}},42746:function(Q){"use strict";Q.exports=C,C.displayName="actionscript",C.aliases=[];function C(d){d.languages.actionscript=d.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:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),d.languages.actionscript["class-name"].alias="function",delete d.languages.actionscript.parameter,delete d.languages.actionscript["literal-property"],d.languages.markup&&d.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:d.languages.markup}})}},93281:function(Q){"use strict";Q.exports=C,C.displayName="ada",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="agda",C.aliases=[];function C(d){(function(b){b.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/}})(d)}},65924:function(Q){"use strict";Q.exports=C,C.displayName="al",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="antlr4",C.aliases=["g4"];function C(d){d.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:/[;:()=]/},d.languages.g4=d.languages.antlr4}},43556:function(Q){"use strict";Q.exports=C,C.displayName="apacheconf",C.aliases=[];function C(d){d.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(Q,C,d){"use strict";var b=d(69435);Q.exports=I,I.displayName="apex",I.aliases=[];function I(O){O.register(b),function(z){var W=/\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,_=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!<keyword>))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(/<keyword>/g,function(){return W.source});function M(ue){return RegExp(ue.replace(/<CLASS-NAME>/g,function(){return _}),"i")}var pe={keyword:W,punctuation:/[()\[\]{};,:.<>]/};z.languages.apex={comment:z.languages.clike.comment,string:z.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:z.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:pe},{pattern:M(/(\(\s*)<CLASS-NAME>(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:pe},{pattern:M(/<CLASS-NAME>(?=\s*\w+\s*[;=,(){:])/.source),inside:pe}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:W,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(Q){"use strict";Q.exports=C,C.displayName="apl",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="applescript",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="aql",C.aliases=[];function C(d){d.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(Q,C,d){"use strict";var b=d(87071);Q.exports=I,I.displayName="arduino",I.aliases=["ino"];function I(O){O.register(b),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(Q){"use strict";Q.exports=C,C.displayName="arff",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="asciidoc",C.aliases=["adoc"];function C(d){(function(b){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=b.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 z(W){W=W.split(" ");for(var _={},M=0,pe=W.length;M<pe;M++)_[W[M]]=O[W[M]];return _}I.inside.interpreted.inside.rest=z("macro inline replacement entity"),O["passthrough-block"].inside.rest=z("macro"),O["literal-block"].inside.rest=z("callout"),O.table.inside.rest=z("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=z("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=z("macro inline replacement entity"),b.hooks.add("wrap",function(W){W.type==="entity"&&(W.attributes.title=W.content.value.replace(/&/,"&"))}),b.languages.adoc=b.languages.asciidoc})(d)}},45652:function(Q){"use strict";Q.exports=C,C.displayName="asm6502",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="asmatmel",C.aliases=[];function C(d){d.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(Q,C,d){"use strict";var b=d(87648);Q.exports=I,I.displayName="aspnet",I.aliases=[];function I(O){O.register(b),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(Q){"use strict";Q.exports=C,C.displayName="autohotkey",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="autoit",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="avisynth",C.aliases=["avs"];function C(d){(function(b){function I(ue,ne){return ue.replace(/<<(\d+)>>/g,function(Pe,ke){return ne[+ke]})}function O(ue,ne,Pe){return RegExp(I(ue,ne),Pe||"")}var z=/bool|clip|float|int|string|val/.source,W=[/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("|"),_=[/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("|"),pe=[W,_,M].join("|");b.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,[z],"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,[pe],"i"),alias:"function"},"type-cast":{pattern:O(/\b(?:<<0>>)(?=\s*\()/.source,[z],"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:/[{}\[\]();,.]/},b.languages.avs=b.languages.avisynth})(d)}},79571:function(Q){"use strict";Q.exports=C,C.displayName="avroIdl",C.aliases=[];function C(d){d.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:/[()\[\]{}<>.:,;-]/},d.languages.avdl=d.languages["avro-idl"]}},3058:function(Q){"use strict";Q.exports=C,C.displayName="bash",C.aliases=["shell"];function C(d){(function(b){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},z={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})/};b.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:z},{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:z},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:z.entity}}],environment:{pattern:RegExp("\\$?"+I),alias:"constant"},variable:z.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=b.languages.bash;for(var W=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],_=z.variable[1].inside,M=0;M<W.length;M++)_[W[M]]=b.languages.bash[W[M]];b.languages.shell=b.languages.bash})(d)}},51422:function(Q){"use strict";Q.exports=C,C.displayName="basic",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="batch",C.aliases=[];function C(d){(function(b){var I=/%%?[~:\w]+%?|!\S+!/,O={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},z=/"(?:[\\"]"|[^"])*"(?!")/,W=/(?:\b|-)\d+\b/;b.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:z,parameter:O,variable:I,number:W,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:z,parameter:O,variable:I,number:W,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:z,parameter:O,variable:[I,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:W,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:z,parameter:O,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:I,number:W,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(d)}},35851:function(Q){"use strict";Q.exports=C,C.displayName="bbcode",C.aliases=["shortcode"];function C(d){d.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=\]]+/}}},d.languages.shortcode=d.languages.bbcode}},51274:function(Q){"use strict";Q.exports=C,C.displayName="bicep",C.aliases=[];function C(d){d.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:/[{}[\];(),.:]/},d.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=d.languages.bicep}},23796:function(Q){"use strict";Q.exports=C,C.displayName="birb",C.aliases=[];function C(d){d.languages.birb=d.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/}),d.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}},13979:function(Q,C,d){"use strict";var b=d(79440);Q.exports=I,I.displayName="bison",I.aliases=[];function I(O){O.register(b),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(Q){"use strict";Q.exports=C,C.displayName="bnf",C.aliases=["rbnf"];function C(d){d.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}/},d.languages.rbnf=d.languages.bnf}},47035:function(Q){"use strict";Q.exports=C,C.displayName="brainfuck",C.aliases=[];function C(d){d.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}},36142:function(Q){"use strict";Q.exports=C,C.displayName="brightscript",C.aliases=[];function C(d){d.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},d.languages.brightscript["directive-statement"].inside.expression.inside=d.languages.brightscript}},85290:function(Q){"use strict";Q.exports=C,C.displayName="bro",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="bsl",C.aliases=[];function C(d){d.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"}]},d.languages.oscript=d.languages.bsl}},79440:function(Q){"use strict";Q.exports=C,C.displayName="c",C.aliases=[];function C(d){d.languages.c=d.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|[?:~]|[-+*/%&|^!=<>]=?/}),d.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),d.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},d.languages.c.string],char:d.languages.c.char,comment:d.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:d.languages.c}}}}),d.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 d.languages.c.boolean}},7110:function(Q){"use strict";Q.exports=C,C.displayName="cfscript",C.aliases=[];function C(d){d.languages.cfscript=d.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"}}),d.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 d.languages.cfscript["class-name"],d.languages.cfc=d.languages.cfscript}},73435:function(Q,C,d){"use strict";var b=d(87071);Q.exports=I,I.displayName="chaiscript",I.aliases=[];function I(O){O.register(b),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(Q){"use strict";Q.exports=C,C.displayName="cil",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="clike",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="clojure",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="cmake",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="cobol",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="coffeescript",C.aliases=["coffee"];function C(d){(function(b){var I=/#(?!\{).+/,O={pattern:/#\{[^}]+\}/,alias:"variable"};b.languages.coffeescript=b.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"}}),b.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}}}),b.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:b.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:O}}]}),b.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete b.languages.coffeescript["template-string"],b.languages.coffee=b.languages.coffeescript})(d)}},35348:function(Q){"use strict";Q.exports=C,C.displayName="concurnas",C.aliases=["conc"];function C(d){d.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"}},d.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:d.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:d.languages.concurnas},string:/[\s\S]+/}}}),d.languages.conc=d.languages.concurnas}},26841:function(Q){"use strict";Q.exports=C,C.displayName="coq",C.aliases=[];function C(d){(function(b){for(var I=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|<self>)*\*\)/.source,O=0;O<2;O++)I=I.replace(/<self>/g,function(){return I});I=I.replace(/<self>/g,"[]"),b.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:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(d)}},87071:function(Q,C,d){"use strict";var b=d(79440);Q.exports=I,I.displayName="cpp",I.aliases=[];function I(O){O.register(b),function(z){var W=/\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/,_=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return W.source});z.languages.cpp=z.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return W.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:W,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/}),z.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 _})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),z.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:z.languages.cpp}}}}),z.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),z.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:z.languages.extend("cpp",{})}}),z.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},z.languages.cpp["base-clause"])}(O)}},13652:function(Q,C,d){"use strict";var b=d(75308);Q.exports=I,I.displayName="crystal",I.aliases=[];function I(O){O.register(b),function(z){z.languages.crystal=z.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:[/->/,z.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),z.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:z.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:z.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(Q){"use strict";Q.exports=C,C.displayName="csharp",C.aliases=["dotnet","cs"];function C(d){(function(b){function I(wn,Xe){return wn.replace(/<<(\d+)>>/g,function(se,le){return"(?:"+Xe[+le]+")"})}function O(wn,Xe,se){return RegExp(I(wn,Xe),se||"")}function z(wn,Xe){for(var se=0;se<Xe;se++)wn=wn.replace(/<<self>>/g,function(){return"(?:"+wn+")"});return wn.replace(/<<self>>/g,"[^\\s\\S]")}var W={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 _(wn){return"\\b(?:"+wn.trim().replace(/ /g,"|")+")\\b"}var M=_(W.typeDeclaration),pe=RegExp(_(W.type+" "+W.typeDeclaration+" "+W.contextual+" "+W.other)),ue=_(W.typeDeclaration+" "+W.contextual+" "+W.other),ne=_(W.type+" "+W.typeDeclaration+" "+W.other),Pe=z(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),ke=z(/\((?:[^()]|<<self>>)*\)/.source,2),rt=/@?\b[A-Za-z_]\w*\b/.source,Ue=I(/<<0>>(?:\s*<<1>>)?/.source,[rt,Pe]),Ie=I(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[ue,Ue]),De=/\[\s*(?:,\s*)*\]/.source,Fe=I(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[Ie,De]),de=I(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[Pe,ke,De]),me=I(/\(<<0>>+(?:,<<0>>+)+\)/.source,[de]),we=I(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[me,Ie,De]),ge={keyword:pe,punctuation:/[<>()?,.:[\]]/},Te=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,ee=/"(?:\\.|[^\\"\r\n])*"/.source,Ce=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;b.languages.csharp=b.languages.extend("clike",{string:[{pattern:O(/(^|[^$\\])<<0>>/.source,[Ce]),lookbehind:!0,greedy:!0},{pattern:O(/(^|[^@$\\])<<0>>/.source,[ee]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:O(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[Ie]),lookbehind:!0,inside:ge},{pattern:O(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[rt,we]),lookbehind:!0,inside:ge},{pattern:O(/(\busing\s+)<<0>>(?=\s*=)/.source,[rt]),lookbehind:!0},{pattern:O(/(\b<<0>>\s+)<<1>>/.source,[M,Ue]),lookbehind:!0,inside:ge},{pattern:O(/(\bcatch\s*\(\s*)<<0>>/.source,[Ie]),lookbehind:!0,inside:ge},{pattern:O(/(\bwhere\s+)<<0>>/.source,[rt]),lookbehind:!0},{pattern:O(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[Fe]),lookbehind:!0,inside:ge},{pattern:O(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[we,ne,rt]),inside:ge}],keyword:pe,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:/\?\.?|::|[{}[\];(),.:]/}),b.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),b.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:O(/([(,]\s*)<<0>>(?=\s*:)/.source,[rt]),lookbehind:!0,alias:"punctuation"}}),b.languages.insertBefore("csharp","class-name",{namespace:{pattern:O(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[rt]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:O(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[ke]),lookbehind:!0,alias:"class-name",inside:ge},"return-type":{pattern:O(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[we,Ie]),inside:ge,alias:"class-name"},"constructor-invocation":{pattern:O(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[we]),lookbehind:!0,inside:ge,alias:"class-name"},"generic-method":{pattern:O(/<<0>>\s*<<1>>(?=\s*\()/.source,[rt,Pe]),inside:{function:O(/^<<0>>/.source,[rt]),generic:{pattern:RegExp(Pe),alias:"class-name",inside:ge}}},"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,Ue,rt,we,pe.source,ke,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:O(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[Ue,ke]),lookbehind:!0,greedy:!0,inside:b.languages.csharp},keyword:pe,"class-name":{pattern:RegExp(we),greedy:!0,inside:ge},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 Ne=ee+"|"+Te,Le=I(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[Ne]),Ke=z(I(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[Le]),2),nt=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,ie=I(/<<0>>(?:\s*\(<<1>>*\))?/.source,[Ie,Ke]);b.languages.insertBefore("csharp","class-name",{attribute:{pattern:O(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[nt,ie]),lookbehind:!0,greedy:!0,inside:{target:{pattern:O(/^<<0>>(?=\s*:)/.source,[nt]),alias:"keyword"},"attribute-arguments":{pattern:O(/\(<<0>>*\)/.source,[Ke]),inside:b.languages.csharp},"class-name":{pattern:RegExp(Ie),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var at=/:[^}\r\n]+/.source,Ze=z(I(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[Le]),2),Bt=I(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Ze,at]),bt=z(I(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[Ne]),2),kt=I(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[bt,at]);function Tt(wn,Xe){return{interpolation:{pattern:O(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[wn]),lookbehind:!0,inside:{"format-string":{pattern:O(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[Xe,at]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:b.languages.csharp}}},string:/[\s\S]+/}}b.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:O(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[Bt]),lookbehind:!0,greedy:!0,inside:Tt(Bt,Ze)},{pattern:O(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[kt]),lookbehind:!0,greedy:!0,inside:Tt(kt,bt)}],char:{pattern:RegExp(Te),greedy:!0}}),b.languages.dotnet=b.languages.cs=b.languages.csharp})(d)}},10617:function(Q,C,d){"use strict";var b=d(87648);Q.exports=I,I.displayName="cshtml",I.aliases=["razor"];function I(O){O.register(b),function(z){var W=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,_=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function M(Fe,de){for(var me=0;me<de;me++)Fe=Fe.replace(/<self>/g,function(){return"(?:"+Fe+")"});return Fe.replace(/<self>/g,"[^\\s\\S]").replace(/<str>/g,"(?:"+_+")").replace(/<comment>/g,"(?:"+W+")")}var pe=M(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source,2),ue=M(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source,2),ne=M(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source,2),Pe=M(/<(?:[^<>'"@/]|<str>|<comment>|<self>)*>/.source,2),ke=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,rt=/(?!\d)[^\s>\/=$<%]+/.source+ke+/\s*\/?>/.source,Ue=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+ke+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+rt+"|"+M(/<\1/.source+ke+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+rt+"|<self>")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/</.source+rt+")";z.languages.cshtml=z.languages.extend("markup",{});var Ie=z.languages.insertBefore("csharp","string",{html:{pattern:RegExp(Ue),greedy:!0,inside:z.languages.cshtml}},{csharp:z.languages.extend("csharp",{})}),De={pattern:/\S[\s\S]*/,alias:"language-csharp",inside:Ie};z.languages.insertBefore("cshtml","prolog",{"razor-comment":{pattern:/@\*[\s\S]*?\*@/,greedy:!0,alias:"comment"},block:{pattern:RegExp(/(^|[^@])@/.source+"(?:"+[ne,/(?:code|functions)\s*/.source+ne,/(?:for|foreach|lock|switch|using|while)\s*/.source+pe+/\s*/.source+ne,/do\s*/.source+ne+/\s*while\s*/.source+pe+/(?:\s*;)?/.source,/try\s*/.source+ne+/\s*catch\s*/.source+pe+/\s*/.source+ne+/\s*finally\s*/.source+ne,/if\s*/.source+pe+/\s*/.source+ne+"(?:"+/\s*else/.source+"(?:"+/\s+if\s*/.source+pe+")?"+/\s*/.source+ne+")*"].join("|")+")"),lookbehind:!0,greedy:!0,inside:{keyword:/^@\w*/,csharp:De}},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:De}},value:{pattern:RegExp(/(^|[^@])@/.source+/(?:await\b\s*)?/.source+"(?:"+/\w+\b/.source+"|"+pe+")(?:"+/[?!]?\.\w+\b/.source+"|"+pe+"|"+ue+"|"+Pe+pe+")*"),lookbehind:!0,greedy:!0,alias:"variable",inside:{keyword:/^@/,csharp:De}},"delegate-operator":{pattern:/(^|[^@])@(?=<)/,lookbehind:!0,alias:"operator"}}),z.languages.razor=z.languages.cshtml}(O)}},5348:function(Q){"use strict";Q.exports=C,C.displayName="csp",C.aliases=[];function C(d){(function(b){function I(O){return RegExp(/([ \t])/.source+"(?:"+O+")"+/(?=[\s;]|$)/.source,"i")}b.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:/;/}})(d)}},71053:function(Q){"use strict";Q.exports=C,C.displayName="cssExtras",C.aliases=[];function C(d){(function(b){var I=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,O;b.languages.css.selector={pattern:b.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:/[(),]/}},b.languages.css.atrule.inside["selector-function-argument"].inside=O,b.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var z={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},W={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};b.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:z,number:W,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:z,number:W})})(d)}},54212:function(Q){"use strict";Q.exports=C,C.displayName="css",C.aliases=[];function C(d){(function(b){var I=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;b.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:/[(){};:,]/},b.languages.css.atrule.inside.rest=b.languages.css;var O=b.languages.markup;O&&(O.tag.addInlined("style","css"),O.tag.addAttribute("style","css"))})(d)}},69820:function(Q){"use strict";Q.exports=C,C.displayName="csv",C.aliases=[];function C(d){d.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}},41929:function(Q){"use strict";Q.exports=C,C.displayName="cypher",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="d",C.aliases=[];function C(d){d.languages.d=d.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|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),d.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),d.languages.insertBefore("d","keyword",{property:/\B@\w*/}),d.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(Q){"use strict";Q.exports=C,C.displayName="dart",C.aliases=[];function C(d){(function(b){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,z={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:/\./}}}};b.languages.dart=b.languages.extend("clike",{"class-name":[z,{pattern:RegExp(O+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:z.inside}],keyword:I,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),b.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:b.languages.dart}}},string:/[\s\S]+/}},string:void 0}),b.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),b.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":z,keyword:I,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(d)}},22117:function(Q){"use strict";Q.exports=C,C.displayName="dataweave",C.aliases=[];function C(d){(function(b){b.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/}})(d)}},95627:function(Q){"use strict";Q.exports=C,C.displayName="dax",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="dhall",C.aliases=[];function C(d){d.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/},d.languages.dhall.string.inside.interpolation.inside.expression.inside=d.languages.dhall}},50618:function(Q){"use strict";Q.exports=C,C.displayName="diff",C.aliases=[];function C(d){(function(b){b.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 z=I[O],W=[];/^\w+$/.test(O)||W.push(/\w+/.exec(O)[0]),O==="diff"&&W.push("bold"),b.languages.diff[O]={pattern:RegExp("^(?:["+z+`].*(?:\r
|
|
|
?|
|
|
|
|(?![\\s\\S])))+`,"m"),alias:W,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(O)[0]}}}}),Object.defineProperty(b.languages.diff,"PREFIXES",{value:I})})(d)}},32126:function(Q,C,d){"use strict";var b=d(51478);Q.exports=I,I.displayName="django",I.aliases=["jinja2"];function I(O){O.register(b),function(z){z.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 W=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,_=z.languages["markup-templating"];z.hooks.add("before-tokenize",function(M){_.buildPlaceholders(M,"django",W)}),z.hooks.add("after-tokenize",function(M){_.tokenizePlaceholders(M,"django")}),z.languages.jinja2=z.languages.django,z.hooks.add("before-tokenize",function(M){_.buildPlaceholders(M,"jinja2",W)}),z.hooks.add("after-tokenize",function(M){_.tokenizePlaceholders(M,"jinja2")})}(O)}},26737:function(Q){"use strict";Q.exports=C,C.displayName="dnsZoneFile",C.aliases=[];function C(d){d.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:/[()]/},d.languages["dns-zone"]=d.languages["dns-zone-file"]}},90134:function(Q){"use strict";Q.exports=C,C.displayName="docker",C.aliases=["dockerfile"];function C(d){(function(b){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}),z=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,W=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,function(){return z}),_={pattern:RegExp(z),greedy:!0},M={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function pe(ue,ne){return ue=ue.replace(/<OPT>/g,function(){return W}).replace(/<SP>/g,function(){return O}),RegExp(ue,ne)}b.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:pe(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[_,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:pe(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:pe(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:pe(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:M,string:_,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:M},b.languages.dockerfile=b.languages.docker})(d)}},51348:function(Q){"use strict";Q.exports=C,C.displayName="dot",C.aliases=["gv"];function C(d){(function(b){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:b.languages.markup}};function z(W,_){return RegExp(W.replace(/<ID>/g,function(){return I}),_)}b.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:z(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)<ID>/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:O},"attr-value":{pattern:z(/(=[ \t\r\n]*)<ID>/.source),lookbehind:!0,greedy:!0,inside:O},"attr-name":{pattern:z(/([\[;, \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:z(/(^|[^-.\w\x80-\uFFFF\\])<ID>/.source),lookbehind:!0,greedy:!0,inside:O},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},b.languages.gv=b.languages.dot})(d)}},60841:function(Q){"use strict";Q.exports=C,C.displayName="ebnf",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="editorconfig",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="eiffel",C.aliases=[];function C(d){d.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(Q,C,d){"use strict";var b=d(51478);Q.exports=I,I.displayName="ejs",I.aliases=["eta"];function I(O){O.register(b),function(z){z.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:z.languages.javascript}},z.hooks.add("before-tokenize",function(W){var _=/<%(?!%)[\s\S]+?%>/g;z.languages["markup-templating"].buildPlaceholders(W,"ejs",_)}),z.hooks.add("after-tokenize",function(W){z.languages["markup-templating"].tokenizePlaceholders(W,"ejs")}),z.languages.eta=z.languages.ejs}(O)}},83125:function(Q){"use strict";Q.exports=C,C.displayName="elixir",C.aliases=[];function C(d){d.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:/<<|>>|[.,%\[\]{}()]/},d.languages.elixir.string.forEach(function(b){b.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:d.languages.elixir}}}})}},9438:function(Q){"use strict";Q.exports=C,C.displayName="elm",C.aliases=[];function C(d){d.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(Q,C,d){"use strict";var b=d(75308),I=d(51478);Q.exports=O,O.displayName="erb",O.aliases=[];function O(z){z.register(b),z.register(I),function(W){W.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:W.languages.ruby}},W.hooks.add("before-tokenize",function(_){var M=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;W.languages["markup-templating"].buildPlaceholders(_,"erb",M)}),W.hooks.add("after-tokenize",function(_){W.languages["markup-templating"].tokenizePlaceholders(_,"erb")})}(z)}},86549:function(Q){"use strict";Q.exports=C,C.displayName="erlang",C.aliases=[];function C(d){d.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(Q,C,d){"use strict";var b=d(29509),I=d(51478);Q.exports=O,O.displayName="etlua",O.aliases=[];function O(z){z.register(b),z.register(I),function(W){W.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:W.languages.lua}},W.hooks.add("before-tokenize",function(_){var M=/<%[\s\S]+?%>/g;W.languages["markup-templating"].buildPlaceholders(_,"etlua",M)}),W.hooks.add("after-tokenize",function(_){W.languages["markup-templating"].tokenizePlaceholders(_,"etlua")})}(z)}},59250:function(Q){"use strict";Q.exports=C,C.displayName="excelFormula",C.aliases=[];function C(d){d.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:/[[\]();{}|]/},d.languages.xlsx=d.languages.xls=d.languages["excel-formula"]}},81226:function(Q){"use strict";Q.exports=C,C.displayName="factor",C.aliases=[];function C(d){(function(b){var I={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},O={number:/\\[^\s']|%\w/},z={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}},W=function(ue){return(ue+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},_=function(ue){return new RegExp("(^|\\s)(?:"+ue.map(W).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(ue){z[ue].pattern=_(M[ue])});var pe=["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"];z.combinators.pattern=_(pe),b.languages.factor=z})(d)}},65245:function(Q){"use strict";Q.exports=C,C.displayName="$false",C.aliases=[];function C(d){(function(b){b.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"}}})(d)}},25040:function(Q){"use strict";Q.exports=C,C.displayName="firestoreSecurityRules",C.aliases=[];function C(d){d.languages["firestore-security-rules"]=d.languages.extend("clike",{comment:/\/\/.*/,keyword:/\b(?:allow|function|if|match|null|return|rules_version|service)\b/,operator:/&&|\|\||[<>!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete d.languages["firestore-security-rules"]["class-name"],d.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(Q){"use strict";Q.exports=C,C.displayName="flow",C.aliases=[];function C(d){(function(b){b.languages.flow=b.languages.extend("javascript",{}),b.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),b.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 b.languages.flow.parameter,b.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(b.languages.flow.keyword)||(b.languages.flow.keyword=[b.languages.flow.keyword]),b.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})})(d)}},39187:function(Q){"use strict";Q.exports=C,C.displayName="fortran",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="fsharp",C.aliases=[];function C(d){d.languages.fsharp=d.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}>?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),d.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"}}}}),d.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),d.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:d.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(Q,C,d){"use strict";var b=d(51478);Q.exports=I,I.displayName="ftl",I.aliases=[];function I(O){O.register(b),function(z){for(var W=/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,_=0;_<2;_++)W=W.replace(/<expr>/g,function(){return W});W=W.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 W})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:<expr>))*\}/.source.replace(/<expr>/g,function(){return W})),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,z.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}}}},z.hooks.add("before-tokenize",function(pe){var ue=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,function(){return W}),"gi");z.languages["markup-templating"].buildPlaceholders(pe,"ftl",ue)}),z.hooks.add("after-tokenize",function(pe){z.languages["markup-templating"].tokenizePlaceholders(pe,"ftl")})}(O)}},33534:function(Q){"use strict";Q.exports=C,C.displayName="gap",C.aliases=[];function C(d){d.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:/[()[\]{},;.:]/},d.languages.gap.shell.inside.gap.inside=d.languages.gap}},9885:function(Q){"use strict";Q.exports=C,C.displayName="gcode",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="gdscript",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="gedcom",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="gherkin",C.aliases=[];function C(d){(function(b){var I=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;b.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"}}})(d)}},58230:function(Q){"use strict";Q.exports=C,C.displayName="git",C.aliases=[];function C(d){d.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(Q,C,d){"use strict";var b=d(79440);Q.exports=I,I.displayName="glsl",I.aliases=[];function I(O){O.register(b),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(Q){"use strict";Q.exports=C,C.displayName="gml",C.aliases=[];function C(d){d.languages.gamemakerlanguage=d.languages.gml=d.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(Q){"use strict";Q.exports=C,C.displayName="gn",C.aliases=["gni"];function C(d){d.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:/[(){}[\],.]/},d.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=d.languages.gn,d.languages.gni=d.languages.gn}},95769:function(Q){"use strict";Q.exports=C,C.displayName="goModule",C.aliases=[];function C(d){d.languages["go-mod"]=d.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(Q){"use strict";Q.exports=C,C.displayName="go",C.aliases=[];function C(d){d.languages.go=d.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/}),d.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete d.languages.go["class-name"]}},92823:function(Q){"use strict";Q.exports=C,C.displayName="graphql",C.aliases=[];function C(d){d.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:d.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+/},d.hooks.add("after-tokenize",function(I){if(I.language!=="graphql")return;var O=I.tokens.filter(function(De){return typeof De!="string"&&De.type!=="comment"&&De.type!=="scalar"}),z=0;function W(De){return O[z+De]}function _(De,Fe){Fe=Fe||0;for(var de=0;de<De.length;de++){var me=W(de+Fe);if(!me||me.type!==De[de])return!1}return!0}function M(De,Fe){for(var de=1,me=z;me<O.length;me++){var we=O[me],ge=we.content;if(we.type==="punctuation"&&typeof ge=="string"){if(De.test(ge))de++;else if(Fe.test(ge)&&(de--,de===0))return me}}return-1}function pe(De,Fe){var de=De.alias;de?Array.isArray(de)||(De.alias=de=[de]):De.alias=de=[],de.push(Fe)}for(;z<O.length;){var ue=O[z++];if(ue.type==="keyword"&&ue.content==="mutation"){var ne=[];if(_(["definition-mutation","punctuation"])&&W(1).content==="("){z+=2;var Pe=M(/^\($/,/^\)$/);if(Pe===-1)continue;for(;z<Pe;z++){var ke=W(0);ke.type==="variable"&&(pe(ke,"variable-input"),ne.push(ke.content))}z=Pe+1}if(_(["punctuation","property-query"])&&W(0).content==="{"&&(z++,pe(W(0),"property-mutation"),ne.length>0)){var rt=M(/^\{$/,/^\}$/);if(rt===-1)continue;for(var Ue=z;Ue<rt;Ue++){var Ie=O[Ue];Ie.type==="variable"&&ne.indexOf(Ie.content)>=0&&pe(Ie,"variable-input")}}}}})}},63092:function(Q){"use strict";Q.exports=C,C.displayName="groovy",C.aliases=[];function C(d){d.languages.groovy=d.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:/\.+|[{}[\];(),:$]/}),d.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),d.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),d.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),d.hooks.add("wrap",function(b){if(b.language==="groovy"&&b.type==="string"){var I=b.content.value[0];if(I!="'"){var O=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;I==="$"&&(O=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),b.content.value=b.content.value.replace(/</g,"<").replace(/&/g,"&"),b.content=d.highlight(b.content.value,{expression:{pattern:O,lookbehind:!0,inside:d.languages.groovy}}),b.classes.push(I==="/"?"regex":"gstring")}}})}},21550:function(Q,C,d){"use strict";var b=d(75308);Q.exports=I,I.displayName="haml",I.aliases=[];function I(O){O.register(b),function(z){z.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:z.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:z.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:z.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:z.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:z.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:z.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:z.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var W="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",_=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],M={},pe=0,ue=_.length;pe<ue;pe++){var ne=_[pe];ne=typeof ne=="string"?{filter:ne,language:ne}:ne,z.languages[ne.language]&&(M["filter-"+ne.filter]={pattern:RegExp(W.replace("{{filter_name}}",function(){return ne.filter})),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"},text:{pattern:/[\s\S]+/,alias:[ne.language,"language-"+ne.language],inside:z.languages[ne.language]}}})}z.languages.insertBefore("haml","filter",M)}(O)}},29710:function(Q,C,d){"use strict";var b=d(51478);Q.exports=I,I.displayName="handlebars",I.aliases=["hbs"];function I(O){O.register(b),function(z){z.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]+/},z.hooks.add("before-tokenize",function(W){var _=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;z.languages["markup-templating"].buildPlaceholders(W,"handlebars",_)}),z.hooks.add("after-tokenize",function(W){z.languages["markup-templating"].tokenizePlaceholders(W,"handlebars")}),z.languages.hbs=z.languages.handlebars}(O)}},2050:function(Q){"use strict";Q.exports=C,C.displayName="haskell",C.aliases=["hs"];function C(d){d.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:/[{}[\];(),.:]/},d.languages.hs=d.languages.haskell}},67967:function(Q){"use strict";Q.exports=C,C.displayName="haxe",C.aliases=[];function C(d){d.languages.haxe=d.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}|[-+*/%!=&|^])=?|[?:~]/}),d.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:d.languages.haxe}}},string:/[\s\S]+/}}}),d.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:d.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),d.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(Q){"use strict";Q.exports=C,C.displayName="hcl",C.aliases=[];function C(d){d.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(Q,C,d){"use strict";var b=d(79440);Q.exports=I,I.displayName="hlsl",I.aliases=[];function I(O){O.register(b),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(Q){"use strict";Q.exports=C,C.displayName="hoon",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="hpkp",C.aliases=[];function C(d){d.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}},76823:function(Q){"use strict";Q.exports=C,C.displayName="hsts",C.aliases=[];function C(d){d.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}},86712:function(Q){"use strict";Q.exports=C,C.displayName="http",C.aliases=[];function C(d){(function(b){function I(ne){return RegExp("(^(?:"+ne+"):[ ]*(?![ ]))[^]+","i")}b.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:b.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:b.languages.csp},{pattern:I(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:b.languages.hpkp},{pattern:I(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:b.languages.hsts},{pattern:I(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var O=b.languages,z={"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},W={"application/json":!0,"application/xml":!0};function _(ne){var Pe=ne.replace(/^[a-z]+\//,""),ke="\\w+/(?:[\\w.-]+\\+)+"+Pe+"(?![+\\w.-])";return"(?:"+ne+"|"+ke+")"}var M;for(var pe in z)if(z[pe]){M=M||{};var ue=W[pe]?_(pe):pe;M[pe.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+ue+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:z[pe]}}M&&b.languages.insertBefore("http","header",M)})(d)}},72252:function(Q){"use strict";Q.exports=C,C.displayName="ichigojam",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="icon",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="icuMessageFormat",C.aliases=[];function C(d){(function(b){function I(pe,ue){return ue<=0?/[]/.source:pe.replace(/<SELF>/g,function(){return I(pe,ue-1)})}var O=/'[{}:=,](?:[^']|'')*'(?!')/,z={pattern:/''/,greedy:!0,alias:"operator"},W={pattern:O,greedy:!0,inside:{escape:z}},_=I(/\{(?:[^{}']|'(?![{},'])|''|<STR>|<SELF>)*\}/.source.replace(/<STR>/g,function(){return O.source}),8),M={pattern:RegExp(_),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};b.languages["icu-message-format"]={argument:{pattern:RegExp(_),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:z,string:W},M.inside.message.inside=b.languages["icu-message-format"],b.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=b.languages["icu-message-format"]})(d)}},23328:function(Q,C,d){"use strict";var b=d(2050);Q.exports=I,I.displayName="idris",I.aliases=["idr"];function I(O){O.register(b),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(Q){"use strict";Q.exports=C,C.displayName="iecst",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="ignore",C.aliases=["gitignore","hgignore","npmignore"];function C(d){(function(b){b.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},b.languages.gitignore=b.languages.ignore,b.languages.hgignore=b.languages.ignore,b.languages.npmignore=b.languages.ignore})(d)}},22152:function(Q){"use strict";Q.exports=C,C.displayName="inform7",C.aliases=[];function C(d){d.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:/[.,:;(){}]/},d.languages.inform7.string.inside.substitution.inside.rest=d.languages.inform7,d.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}},83698:function(Q){"use strict";Q.exports=C,C.displayName="ini",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="io",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="j",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="java",C.aliases=[];function C(d){(function(b){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,z={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:/\./}};b.languages.java=b.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[z,{pattern:RegExp(O+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:z.inside}],keyword:I,function:[b.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}}),b.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),b.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":z,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:/\./}}})})(d)}},4005:function(Q,C,d){"use strict";var b=d(7093),I=d(53510);Q.exports=O,O.displayName="javadoc",O.aliases=[];function O(z){z.register(b),z.register(I),function(W){var _=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,M=/#\s*\w+(?:\s*\([^()]*\))?/.source,pe=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*<mem>)?|<mem>/.source.replace(/<mem>/g,function(){return M});W.languages.javadoc=W.languages.extend("javadoclike",{}),W.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+pe+")"),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:W.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:_,lookbehind:!0,inside:W.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!<code>)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:_,lookbehind:!0,inside:{tag:W.languages.markup.tag,entity:W.languages.markup.entity,code:{pattern:/.+/,inside:W.languages.java,alias:"language-java"}}}}}],tag:W.languages.markup.tag,entity:W.languages.markup.entity}),W.languages.javadoclike.addSupport("java",W.languages.javadoc)}(z)}},53510:function(Q){"use strict";Q.exports=C,C.displayName="javadoclike",C.aliases=[];function C(d){(function(b){var I=b.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(W,_){var M="doc-comment",pe=b.languages[W];if(pe){var ue=pe[M];if(!ue){var ne={};ne[M]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},pe=b.languages.insertBefore(W,"comment",ne),ue=pe[M]}if(ue instanceof RegExp&&(ue=pe[M]={pattern:ue}),Array.isArray(ue))for(var Pe=0,ke=ue.length;Pe<ke;Pe++)ue[Pe]instanceof RegExp&&(ue[Pe]={pattern:ue[Pe]}),_(ue[Pe]);else _(ue)}}function z(W,_){typeof W=="string"&&(W=[W]),W.forEach(function(M){O(M,function(pe){pe.inside||(pe.inside={}),pe.inside.rest=_})})}Object.defineProperty(I,"addSupport",{value:z}),I.addSupport(["java","javascript","php"],I)})(d)}},88786:function(Q){"use strict";Q.exports=C,C.displayName="javascript",C.aliases=["js"];function C(d){d.languages.javascript=d.languages.extend("clike",{"class-name":[d.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}|\?\?=?|\?\.?|[~:]/}),d.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,d.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:d.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:d.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:d.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:d.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:d.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),d.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:d.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"}}),d.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),d.languages.markup&&(d.languages.markup.tag.addInlined("script","javascript"),d.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")),d.languages.js=d.languages.javascript}},24799:function(Q){"use strict";Q.exports=C,C.displayName="javastacktrace",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="jexl",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="jolie",C.aliases=[];function C(d){d.languages.jolie=d.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/}),d.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(Q){"use strict";Q.exports=C,C.displayName="jq",C.aliases=[];function C(d){(function(b){var I=/\\\((?:[^()]|\([^()]*\))*\)/.source,O=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return I})),z={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+I),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},W=b.languages.jq={comment:/#.*/,property:{pattern:RegExp(O.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:z},string:{pattern:O,lookbehind:!0,greedy:!0,inside:z},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"}};z.interpolation.inside.content.inside=W})(d)}},89246:function(Q){"use strict";Q.exports=C,C.displayName="jsExtras",C.aliases=[];function C(d){(function(b){b.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+b.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),b.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+b.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),b.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(pe,ue){return RegExp(pe.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),ue)}b.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:b.languages.javascript},exports:{pattern:I(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:b.languages.javascript}}),b.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"}),b.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),b.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"],z=0;z<O.length;z++){var W=O[z],_=b.languages.javascript[W];b.util.type(_)==="RegExp"&&(_=b.languages.javascript[W]={pattern:_});var M=_.inside||{};_.inside=M,M["maybe-class-name"]=/^[A-Z][\s\S]*/}})(d)}},487:function(Q){"use strict";Q.exports=C,C.displayName="jsTemplates",C.aliases=[];function C(d){(function(b){var I=b.languages.javascript["template-string"],O=I.pattern.source,z=I.inside.interpolation,W=z.inside["interpolation-punctuation"],_=z.pattern.source;function M(Ue,Ie){if(b.languages[Ue])return{pattern:RegExp("((?:"+Ie+")\\s*)"+O),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:Ue}}}}b.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 pe(Ue,Ie){return"___"+Ie.toUpperCase()+"_"+Ue+"___"}function ue(Ue,Ie,De){var Fe={code:Ue,grammar:Ie,language:De};return b.hooks.run("before-tokenize",Fe),Fe.tokens=b.tokenize(Fe.code,Fe.grammar),b.hooks.run("after-tokenize",Fe),Fe.tokens}function ne(Ue){var Ie={};Ie["interpolation-punctuation"]=W;var De=b.tokenize(Ue,Ie);if(De.length===3){var Fe=[1,1];Fe.push.apply(Fe,ue(De[1],b.languages.javascript,"javascript")),De.splice.apply(De,Fe)}return new b.Token("interpolation",De,z.alias,Ue)}function Pe(Ue,Ie,De){var Fe=b.tokenize(Ue,{interpolation:{pattern:RegExp(_),lookbehind:!0}}),de=0,me={},we=Fe.map(function(Ce){if(typeof Ce=="string")return Ce;for(var Ne=Ce.content,Le;Ue.indexOf(Le=pe(de++,De))!==-1;);return me[Le]=Ne,Le}).join(""),ge=ue(we,Ie,De),Te=Object.keys(me);de=0;function ee(Ce){for(var Ne=0;Ne<Ce.length;Ne++){if(de>=Te.length)return;var Le=Ce[Ne];if(typeof Le=="string"||typeof Le.content=="string"){var Ke=Te[de],nt=typeof Le=="string"?Le:Le.content,ie=nt.indexOf(Ke);if(ie!==-1){++de;var at=nt.substring(0,ie),Ze=ne(me[Ke]),Bt=nt.substring(ie+Ke.length),bt=[];if(at&&bt.push(at),bt.push(Ze),Bt){var kt=[Bt];ee(kt),bt.push.apply(bt,kt)}typeof Le=="string"?(Ce.splice.apply(Ce,[Ne,1].concat(bt)),Ne+=bt.length-1):Le.content=bt}}else{var Tt=Le.content;Array.isArray(Tt)?ee(Tt):ee([Tt])}}}return ee(ge),new b.Token(De,ge,"language-"+De,Ue)}var ke={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};b.hooks.add("after-tokenize",function(Ue){if(!(Ue.language in ke))return;function Ie(De){for(var Fe=0,de=De.length;Fe<de;Fe++){var me=De[Fe];if(typeof me!="string"){var we=me.content;if(!Array.isArray(we)){typeof we!="string"&&Ie([we]);continue}if(me.type==="template-string"){var ge=we[1];if(we.length===3&&typeof ge!="string"&&ge.type==="embedded-code"){var Te=rt(ge),ee=ge.alias,Ce=Array.isArray(ee)?ee[0]:ee,Ne=b.languages[Ce];if(!Ne)continue;we[1]=Pe(Te,Ne,Ce)}}else Ie(we)}}}Ie(Ue.tokens)});function rt(Ue){return typeof Ue=="string"?Ue:Array.isArray(Ue)?Ue.map(rt).join(""):rt(Ue.content)}})(d)}},79539:function(Q,C,d){"use strict";var b=d(53510),I=d(92784);Q.exports=O,O.displayName="jsdoc",O.aliases=[];function O(z){z.register(b),z.register(I),function(W){var _=W.languages.javascript,M=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,pe="(@(?:arg|argument|param|property)\\s+(?:"+M+"\\s+)?)";W.languages.jsdoc=W.languages.extend("javadoclike",{parameter:{pattern:RegExp(pe+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),W.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(pe+/\[(?:(?!\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:_,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:_.string,number:_.number,boolean:_.boolean,keyword:W.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:_,alias:"language-javascript"}}}}),W.languages.javadoclike.addSupport("javascript",W.languages.jsdoc)}(z)}},15628:function(Q){"use strict";Q.exports=C,C.displayName="json",C.aliases=["webmanifest"];function C(d){d.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"}},d.languages.webmanifest=d.languages.json}},14320:function(Q,C,d){"use strict";var b=d(15628);Q.exports=I,I.displayName="json5",I.aliases=[];function I(O){O.register(b),function(z){var W=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;z.languages.json5=z.languages.extend("json",{property:[{pattern:RegExp(W.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:W,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(O)}},73222:function(Q,C,d){"use strict";var b=d(15628);Q.exports=I,I.displayName="jsonp",I.aliases=[];function I(O){O.register(b),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(Q){"use strict";Q.exports=C,C.displayName="jsstacktrace",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="jsx",C.aliases=[];function C(d){(function(b){var I=b.util.clone(b.languages.javascript),O=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,z=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,W=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function _(ue,ne){return ue=ue.replace(/<S>/g,function(){return O}).replace(/<BRACES>/g,function(){return z}).replace(/<SPREAD>/g,function(){return W}),RegExp(ue,ne)}W=_(W).source,b.languages.jsx=b.languages.extend("markup",I),b.languages.jsx.tag.pattern=_(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),b.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,b.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,b.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,b.languages.jsx.tag.inside.comment=I.comment,b.languages.insertBefore("inside","attr-name",{spread:{pattern:_(/<SPREAD>/.source),inside:b.languages.jsx}},b.languages.jsx.tag),b.languages.insertBefore("inside","special-attr",{script:{pattern:_(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:b.languages.jsx}}},b.languages.jsx.tag);var M=function(ue){return ue?typeof ue=="string"?ue:typeof ue.content=="string"?ue.content:ue.content.map(M).join(""):""},pe=function(ue){for(var ne=[],Pe=0;Pe<ue.length;Pe++){var ke=ue[Pe],rt=!1;if(typeof ke!="string"&&(ke.type==="tag"&&ke.content[0]&&ke.content[0].type==="tag"?ke.content[0].content[0].content==="</"?ne.length>0&&ne[ne.length-1].tagName===M(ke.content[0].content[1])&&ne.pop():ke.content[ke.content.length-1].content==="/>"||ne.push({tagName:M(ke.content[0].content[1]),openedBraces:0}):ne.length>0&&ke.type==="punctuation"&&ke.content==="{"?ne[ne.length-1].openedBraces++:ne.length>0&&ne[ne.length-1].openedBraces>0&&ke.type==="punctuation"&&ke.content==="}"?ne[ne.length-1].openedBraces--:rt=!0),(rt||typeof ke=="string")&&ne.length>0&&ne[ne.length-1].openedBraces===0){var Ue=M(ke);Pe<ue.length-1&&(typeof ue[Pe+1]=="string"||ue[Pe+1].type==="plain-text")&&(Ue+=M(ue[Pe+1]),ue.splice(Pe+1,1)),Pe>0&&(typeof ue[Pe-1]=="string"||ue[Pe-1].type==="plain-text")&&(Ue=M(ue[Pe-1])+Ue,ue.splice(Pe-1,1),Pe--),ue[Pe]=new b.Token("plain-text",Ue,null,Ue)}ke.content&&typeof ke.content!="string"&&pe(ke.content)}};b.hooks.add("after-tokenize",function(ue){ue.language!=="jsx"&&ue.language!=="tsx"||pe(ue.tokens)})})(d)}},40604:function(Q){"use strict";Q.exports=C,C.displayName="julia",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="keepalived",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="keyman",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="kotlin",C.aliases=["kt","kts"];function C(d){(function(b){b.languages.kotlin=b.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 b.languages.kotlin["class-name"];var I={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:b.languages.kotlin}};b.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 b.languages.kotlin.string,b.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),b.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),b.languages.kt=b.languages.kotlin,b.languages.kts=b.languages.kotlin})(d)}},37524:function(Q){"use strict";Q.exports=C,C.displayName="kumir",C.aliases=["kum"];function C(d){(function(b){var I=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function O(z,W){return RegExp(z.replace(/<nonId>/g,I),W)}b.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"}},b.languages.kum=b.languages.kumir})(d)}},6658:function(Q){"use strict";Q.exports=C,C.displayName="kusto",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="latex",C.aliases=["tex","context"];function C(d){(function(b){var I=/\\(?:[^a-z()[\]]|[a-z*]+)/i,O={"equation-command":{pattern:I,alias:"regex"}};b.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:/[[\]{}&]/},b.languages.tex=b.languages.latex,b.languages.context=b.languages.latex})(d)}},22776:function(Q,C,d){"use strict";var b=d(51478),I=d(53852);Q.exports=O,O.displayName="latte",O.aliases=[];function O(z){z.register(b),z.register(I),function(W){W.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:W.languages.php}};var _=W.languages.extend("markup",{});W.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:W.languages.php}}}}}},_.tag),W.hooks.add("before-tokenize",function(M){if(M.language==="latte"){var pe=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;W.languages["markup-templating"].buildPlaceholders(M,"latte",pe),M.grammar=_}}),W.hooks.add("after-tokenize",function(M){W.languages["markup-templating"].tokenizePlaceholders(M,"latte")})}(z)}},89700:function(Q){"use strict";Q.exports=C,C.displayName="less",C.aliases=[];function C(d){d.languages.less=d.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:/[+\-*\/]/}),d.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}},99296:function(Q,C,d){"use strict";var b=d(48780);Q.exports=I,I.displayName="lilypond",I.aliases=[];function I(O){O.register(b),function(z){for(var W=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|<expr>)*\)/.source,_=5,M=0;M<_;M++)W=W.replace(/<expr>/g,function(){return W});W=W.replace(/<expr>/g,/[^\s\S]/.source);var pe=z.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|<expr>))/.source.replace(/<expr>/g,function(){return W}),"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:z.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/};pe["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=pe,z.languages.ly=pe}(O)}},39940:function(Q,C,d){"use strict";var b=d(51478);Q.exports=I,I.displayName="liquid",I.aliases=[];function I(O){O.register(b),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(z){var W=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,_=!1;O.languages["markup-templating"].buildPlaceholders(z,"liquid",W,function(M){var pe=/^\{%-?\s*(\w+)/.exec(M);if(pe){var ue=pe[1];if(ue==="raw"&&!_)return _=!0,!0;if(ue==="endraw")return _=!1,!0}return!_})}),O.hooks.add("after-tokenize",function(z){O.languages["markup-templating"].tokenizePlaceholders(z,"liquid")})}},34973:function(Q){"use strict";Q.exports=C,C.displayName="lisp",C.aliases=[];function C(d){(function(b){function I(Ue){return RegExp(/(\()/.source+"(?:"+Ue+")"+/(?=[\s\)])/.source)}function O(Ue){return RegExp(/([\s([])/.source+"(?:"+Ue+")"+/(?=[\s)])/.source)}var z=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,W="&"+z,_="(\\()",M="(?=\\))",pe="(?=\\s)",ue=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,ne={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+z+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+z),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+z),alias:"property"},splice:{pattern:RegExp(",@?"+z),alias:["symbol","variable"]},keyword:[{pattern:RegExp(_+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+pe),lookbehind:!0},{pattern:RegExp(_+"(?:append|by|collect|concat|do|finally|for|in|return)"+pe),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(_+"def(?:const|custom|group|var)\\s+"+z),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(z)}},defun:{pattern:RegExp(_+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+z+/\s+\(/.source+ue+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+z),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(_+"lambda\\s+\\(\\s*(?:&?"+z+"(?:\\s+&?"+z+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(_+z),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},Pe={"lisp-marker":RegExp(W),varform:{pattern:RegExp(/\(/.source+z+/\s+(?=\S)/.source+ue+/\)/.source),inside:ne},argument:{pattern:RegExp(/(^|[\s(])/.source+z),lookbehind:!0,alias:"variable"},rest:ne},ke="\\S+(?:\\s+\\S+)*",rt={pattern:RegExp(_+ue+M),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+ke),inside:Pe},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+ke),inside:Pe},keys:{pattern:RegExp("&key\\s+"+ke+"(?:\\s+&allow-other-keys)?"),inside:Pe},argument:{pattern:RegExp(z),alias:"variable"},punctuation:/[()]/}};ne.lambda.inside.arguments=rt,ne.defun.inside.arguments=b.util.clone(rt),ne.defun.inside.arguments.inside.sublist=rt,b.languages.lisp=ne,b.languages.elisp=ne,b.languages.emacs=ne,b.languages["emacs-lisp"]=ne})(d)}},98135:function(Q){"use strict";Q.exports=C,C.displayName="livescript",C.aliases=[];function C(d){d.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:/[(){}\[\]|.,:;`]/},d.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=d.languages.livescript}},36907:function(Q){"use strict";Q.exports=C,C.displayName="llvm",C.aliases=[];function C(d){(function(b){b.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:/[{}[\];(),.!*=<>]/}})(d)}},3567:function(Q){"use strict";Q.exports=C,C.displayName="log",C.aliases=[];function C(d){d.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:d.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(Q){"use strict";Q.exports=C,C.displayName="lolcode",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="lua",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="magma",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="makefile",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="markdown",C.aliases=["md"];function C(d){(function(b){var I=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function O(Pe){return Pe=Pe.replace(/<inner>/g,function(){return I}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+Pe+")")}var z=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,W=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return z}),_=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;b.languages.markdown=b.languages.extend("markup",{}),b.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:b.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+W+_+"(?:"+W+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+W+_+")(?:"+W+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(z),inside:b.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+W+")"+_+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+W+"$"),inside:{"table-header":{pattern:RegExp(z),alias:"important",inside:b.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(Pe){["url","bold","italic","strike","code-snippet"].forEach(function(ke){Pe!==ke&&(b.languages.markdown[Pe].inside.content.inside[ke]=b.languages.markdown[ke])})}),b.hooks.add("after-tokenize",function(Pe){if(Pe.language!=="markdown"&&Pe.language!=="md")return;function ke(rt){if(!(!rt||typeof rt=="string"))for(var Ue=0,Ie=rt.length;Ue<Ie;Ue++){var De=rt[Ue];if(De.type!=="code"){ke(De.content);continue}var Fe=De.content[1],de=De.content[3];if(Fe&&de&&Fe.type==="code-language"&&de.type==="code-block"&&typeof Fe.content=="string"){var me=Fe.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");me=(/[a-z][\w-]*/i.exec(me)||[""])[0].toLowerCase();var we="language-"+me;de.alias?typeof de.alias=="string"?de.alias=[de.alias,we]:de.alias.push(we):de.alias=[we]}}}ke(Pe.tokens)}),b.hooks.add("wrap",function(Pe){if(Pe.type==="code-block"){for(var ke="",rt=0,Ue=Pe.classes.length;rt<Ue;rt++){var Ie=Pe.classes[rt],De=/language-(.+)/.exec(Ie);if(De){ke=De[1];break}}var Fe=b.languages[ke];if(Fe)Pe.content=b.highlight(ne(Pe.content.value),Fe,ke);else if(ke&&ke!=="none"&&b.plugins.autoloader){var de="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);Pe.attributes.id=de,b.plugins.autoloader.loadLanguages(ke,function(){var me=document.getElementById(de);me&&(me.innerHTML=b.highlight(me.textContent,b.languages[ke],ke))})}}});var M=RegExp(b.languages.markup.tag.pattern.source,"gi"),pe={amp:"&",lt:"<",gt:">",quot:'"'},ue=String.fromCodePoint||String.fromCharCode;function ne(Pe){var ke=Pe.replace(M,"");return ke=ke.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(rt,Ue){if(Ue=Ue.toLowerCase(),Ue[0]==="#"){var Ie;return Ue[1]==="x"?Ie=parseInt(Ue.slice(2),16):Ie=Number(Ue.slice(1)),ue(Ie)}else{var De=pe[Ue];return De||rt}}),ke}b.languages.md=b.languages.markdown})(d)}},51478:function(Q){"use strict";Q.exports=C,C.displayName="markupTemplating",C.aliases=[];function C(d){(function(b){function I(O,z){return"___"+O.toUpperCase()+z+"___"}Object.defineProperties(b.languages["markup-templating"]={},{buildPlaceholders:{value:function(O,z,W,_){if(O.language===z){var M=O.tokenStack=[];O.code=O.code.replace(W,function(pe){if(typeof _=="function"&&!_(pe))return pe;for(var ue=M.length,ne;O.code.indexOf(ne=I(z,ue))!==-1;)++ue;return M[ue]=pe,ne}),O.grammar=b.languages.markup}}},tokenizePlaceholders:{value:function(O,z){if(O.language!==z||!O.tokenStack)return;O.grammar=b.languages[z];var W=0,_=Object.keys(O.tokenStack);function M(pe){for(var ue=0;ue<pe.length&&!(W>=_.length);ue++){var ne=pe[ue];if(typeof ne=="string"||ne.content&&typeof ne.content=="string"){var Pe=_[W],ke=O.tokenStack[Pe],rt=typeof ne=="string"?ne:ne.content,Ue=I(z,Pe),Ie=rt.indexOf(Ue);if(Ie>-1){++W;var De=rt.substring(0,Ie),Fe=new b.Token(z,b.tokenize(ke,O.grammar),"language-"+z,ke),de=rt.substring(Ie+Ue.length),me=[];De&&me.push.apply(me,M([De])),me.push(Fe),de&&me.push.apply(me,M([de])),typeof ne=="string"?pe.splice.apply(pe,[ue,1].concat(me)):ne.content=me}}else ne.content&&M(ne.content)}return pe}M(O.tokens)}}})})(d)}},70614:function(Q){"use strict";Q.exports=C,C.displayName="markup",C.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function C(d){d.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]},d.languages.markup.tag.inside["attr-value"].inside.entity=d.languages.markup.entity,d.languages.markup.doctype.inside["internal-subset"].inside=d.languages.markup,d.hooks.add("wrap",function(b){b.type==="entity"&&(b.attributes.title=b.content.value.replace(/&/,"&"))}),Object.defineProperty(d.languages.markup.tag,"addInlined",{value:function(I,O){var z={};z["language-"+O]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:d.languages[O]},z.cdata=/^<!\[CDATA\[|\]\]>$/i;var W={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:z}};W["language-"+O]={pattern:/[\s\S]+/,inside:d.languages[O]};var _={};_[I]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return I}),"i"),lookbehind:!0,greedy:!0,inside:W},d.languages.insertBefore("markup","cdata",_)}}),Object.defineProperty(d.languages.markup.tag,"addAttribute",{value:function(b,I){d.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+b+")"+/\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:d.languages[I]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),d.languages.html=d.languages.markup,d.languages.mathml=d.languages.markup,d.languages.svg=d.languages.markup,d.languages.xml=d.languages.extend("markup",{}),d.languages.ssml=d.languages.xml,d.languages.atom=d.languages.xml,d.languages.rss=d.languages.xml}},16928:function(Q){"use strict";Q.exports=C,C.displayName="matlab",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="maxscript",C.aliases=[];function C(d){(function(b){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;b.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}})(d)}},37164:function(Q){"use strict";Q.exports=C,C.displayName="mel",C.aliases=[];function C(d){d.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:/<<|>>|[.,:;?\[\](){}]/},d.languages.mel.code.inside.rest=d.languages.mel}},25153:function(Q){"use strict";Q.exports=C,C.displayName="mermaid",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="mizar",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="mongodb",C.aliases=[];function C(d){(function(b){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(W){return W.replace("$","\\$")});var z="(?:"+I.join("|")+")\\b";b.languages.mongodb=b.languages.extend("javascript",{}),b.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(`^(['"])?`+z+"(?:\\1)?$")}}}),b.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}},b.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+O.join("|")+")\\b"),alias:"keyword"}})})(d)}},65626:function(Q){"use strict";Q.exports=C,C.displayName="monkey",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="moonscript",C.aliases=["moon"];function C(d){d.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:/[.,()[\]{}\\]/},d.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=d.languages.moonscript,d.languages.moon=d.languages.moonscript}},40722:function(Q){"use strict";Q.exports=C,C.displayName="n1ql",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="n4js",C.aliases=["n4jsd"];function C(d){d.languages.n4js=d.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/}),d.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),d.languages.n4jsd=d.languages.n4js}},41224:function(Q){"use strict";Q.exports=C,C.displayName="nand2tetrisHdl",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="naniscript",C.aliases=[];function C(d){(function(b){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"}]};b.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":/[\[\]]/}}}}},b.languages.nani=b.languages.naniscript,b.hooks.add("after-tokenize",function(_){var M=_.tokens;M.forEach(function(pe){if(typeof pe!="string"&&pe.type==="generic-text"){var ue=W(pe);z(ue)||(pe.type="bad-line",pe.content=ue)}})});function z(_){for(var M="[]{}",pe=[],ue=0;ue<_.length;ue++){var ne=_[ue],Pe=M.indexOf(ne);if(Pe!==-1){if(Pe%2===0)pe.push(Pe+1);else if(pe.pop()!==Pe)return!1}}return pe.length===0}function W(_){return typeof _=="string"?_:Array.isArray(_)?_.map(W).join(""):W(_.content)}})(d)}},42846:function(Q){"use strict";Q.exports=C,C.displayName="nasm",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="neon",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="nevod",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="nginx",C.aliases=[];function C(d){(function(b){var I=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;b.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:/[{};]/}})(d)}},66791:function(Q){"use strict";Q.exports=C,C.displayName="nim",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="nix",C.aliases=[];function C(d){d.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:/[{}()[\].,:;]/},d.languages.nix.string.inside.interpolation.inside=d.languages.nix}},13490:function(Q){"use strict";Q.exports=C,C.displayName="nsis",C.aliases=[];function C(d){d.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(Q,C,d){"use strict";var b=d(79440);Q.exports=I,I.displayName="objectivec",I.aliases=["objc"];function I(O){O.register(b),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(Q){"use strict";Q.exports=C,C.displayName="ocaml",C.aliases=[];function C(d){d.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(Q,C,d){"use strict";var b=d(79440);Q.exports=I,I.displayName="opencl",I.aliases=[];function I(O){O.register(b),function(z){z.languages.opencl=z.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"}}),z.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 W={"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"}};z.languages.insertBefore("c","keyword",W),z.languages.cpp&&(W["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"},z.languages.insertBefore("cpp","keyword",W))}(O)}},27734:function(Q){"use strict";Q.exports=C,C.displayName="openqasm",C.aliases=["qasm"];function C(d){d.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:/[(){}\[\];,:.]/},d.languages.qasm=d.languages.openqasm}},91889:function(Q){"use strict";Q.exports=C,C.displayName="oz",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="parigp",C.aliases=[];function C(d){d.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var b=["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 b=b.map(function(I){return I.split("").join(" *")}).join("|"),RegExp("\\b(?:"+b+")\\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(Q){"use strict";Q.exports=C,C.displayName="parser",C.aliases=[];function C(d){(function(b){var I=b.languages.parser=b.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=b.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}}}),b.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"])})(d)}},92949:function(Q){"use strict";Q.exports=C,C.displayName="pascal",C.aliases=["objectpascal"];function C(d){d.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:/\(\.|\.\)|[()\[\]:;,.]/},d.languages.pascal.asm.inside=d.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),d.languages.objectpascal=d.languages.pascal}},5681:function(Q){"use strict";Q.exports=C,C.displayName="pascaligo",C.aliases=[];function C(d){(function(b){var I=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,O=/(?:\b\w+(?:<braces>)?|<braces>)/.source.replace(/<braces>/g,function(){return I}),z=b.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:/\(\.|\.\)|[()\[\]:;,.{}]/},W=["comment","keyword","builtin","operator","punctuation"].reduce(function(_,M){return _[M]=z[M],_},{});z["class-name"].forEach(function(_){_.inside=W})})(d)}},70696:function(Q){"use strict";Q.exports=C,C.displayName="pcaxis",C.aliases=["px"];function C(d){d.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/},d.languages.px=d.languages.pcaxis}},35790:function(Q){"use strict";Q.exports=C,C.displayName="peoplecode",C.aliases=["pcode"];function C(d){d.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:/[:.;,()[\]]/},d.languages.pcode=d.languages.peoplecode}},25777:function(Q){"use strict";Q.exports=C,C.displayName="perl",C.aliases=[];function C(d){(function(b){var I=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;b.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:/[{}[\];(),:]/}})(d)}},65889:function(Q,C,d){"use strict";var b=d(53852);Q.exports=I,I.displayName="phpExtras",I.aliases=[];function I(O){O.register(b),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(Q,C,d){"use strict";var b=d(51478);Q.exports=I,I.displayName="php",I.aliases=[];function I(O){O.register(b),function(z){var W=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,_=[{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,pe=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,ue=/[{}\[\](),:;]/;z.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:W,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:_,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:M,operator:pe,punctuation:ue};var ne={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:z.languages.php},Pe=[{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:ne}},{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:ne}}];z.languages.insertBefore("php","variable",{string:Pe,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:W,string:Pe,"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:_,number:M,operator:pe,punctuation:ue}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),z.hooks.add("before-tokenize",function(ke){if(/<\?/.test(ke.code)){var rt=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;z.languages["markup-templating"].buildPlaceholders(ke,"php",rt)}}),z.hooks.add("after-tokenize",function(ke){z.languages["markup-templating"].tokenizePlaceholders(ke,"php")})}(O)}},97719:function(Q,C,d){"use strict";var b=d(53852),I=d(53510);Q.exports=O,O.displayName="phpdoc",O.aliases=[];function O(z){z.register(b),z.register(I),function(W){var _=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;W.languages.phpdoc=W.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+_+"\\s+)?)\\$\\w+"),lookbehind:!0}}),W.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+_),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),W.languages.javadoclike.addSupport("php",W.languages.phpdoc)}(z)}},63839:function(Q,C,d){"use strict";var b=d(69435);Q.exports=I,I.displayName="plsql",I.aliases=[];function I(O){O.register(b),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(Q){"use strict";Q.exports=C,C.displayName="powerquery",C.aliases=[];function C(d){d.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:/[,;\[\](){}]/},d.languages.pq=d.languages.powerquery,d.languages.mscript=d.languages.powerquery}},32530:function(Q){"use strict";Q.exports=C,C.displayName="powershell",C.aliases=[];function C(d){(function(b){var I=b.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}})(d)}},8938:function(Q){"use strict";Q.exports=C,C.displayName="processing",C.aliases=[];function C(d){d.languages.processing=d.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:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),d.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(Q){"use strict";Q.exports=C,C.displayName="prolog",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="promql",C.aliases=[];function C(d){(function(b){var I=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],O=["on","ignoring","group_right","group_left","by","without"],z=["offset"],W=I.concat(O,z);b.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(?:"+W.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:/[{};()`,.[\]]/}})(d)}},15375:function(Q){"use strict";Q.exports=C,C.displayName="properties",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="protobuf",C.aliases=[];function C(d){(function(b){var I=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;b.languages.protobuf=b.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}),b.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}})})(d)}},83588:function(Q){"use strict";Q.exports=C,C.displayName="psl",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="pug",C.aliases=[];function C(d){(function(b){b.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:b.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:b.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:b.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:b.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:b.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:b.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:b.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:b.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"],z={},W=0,_=O.length;W<_;W++){var M=O[W];M=typeof M=="string"?{filter:M,language:M}:M,b.languages[M.language]&&(z["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:b.languages[M.language]}}})}b.languages.insertBefore("pug","filter",z)})(d)}},21294:function(Q){"use strict";Q.exports=C,C.displayName="puppet",C.aliases=[];function C(d){(function(b){b.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:b.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];b.languages.puppet.heredoc[0].inside.interpolation=I,b.languages.puppet.string.inside["double-quoted"].inside.interpolation=I})(d)}},38709:function(Q){"use strict";Q.exports=C,C.displayName="pure",C.aliases=[];function C(d){(function(b){b.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(z){var W=z;if(typeof z!="string"&&(W=z.alias,z=z.lang),b.languages[W]){var _={};_["inline-lang-"+W]={pattern:RegExp(O.replace("<lang>",z.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:b.util.clone(b.languages.pure["inline-lang"].inside)},_["inline-lang-"+W].inside.rest=b.util.clone(b.languages[W]),b.languages.insertBefore("pure","inline-lang",_)}}),b.languages.c&&(b.languages.pure["inline-lang"].inside.rest=b.util.clone(b.languages.c))})(d)}},15008:function(Q){"use strict";Q.exports=C,C.displayName="purebasic",C.aliases=[];function C(d){d.languages.purebasic=d.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+|-[>-]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|?\||[~^%?*/@]/}),d.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 d.languages.purebasic["class-name"],delete d.languages.purebasic.boolean,d.languages.pbfasm=d.languages.purebasic}},96549:function(Q,C,d){"use strict";var b=d(2050);Q.exports=I,I.displayName="purescript",I.aliases=["purs"];function I(O){O.register(b),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(Q){"use strict";Q.exports=C,C.displayName="python",C.aliases=["py"];function C(d){d.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://,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:/[{}[\];(),.:]/},d.languages.python["string-interpolation"].inside.interpolation.inside.rest=d.languages.python,d.languages.py=d.languages.python}},27447:function(Q){"use strict";Q.exports=C,C.displayName="q",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="qml",C.aliases=[];function C(d){(function(b){for(var I=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,O=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,z=/(?:[^\\()[\]{}"'/]|<string>|\/(?![*/])|<comment>|\(<expr>*\)|\[<expr>*\]|\{<expr>*\}|\\[\s\S])/.source.replace(/<string>/g,function(){return I}).replace(/<comment>/g,function(){return O}),W=0;W<2;W++)z=z.replace(/<expr>/g,function(){return z});z=z.replace(/<expr>/g,"[^\\s\\S]"),b.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 z}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:b.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 z}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:b.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(d)}},75542:function(Q){"use strict";Q.exports=C,C.displayName="qore",C.aliases=[];function C(d){d.languages.qore=d.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(Q){"use strict";Q.exports=C,C.displayName="qsharp",C.aliases=["qs"];function C(d){(function(b){function I(rt,Ue){return rt.replace(/<<(\d+)>>/g,function(Ie,De){return"(?:"+Ue[+De]+")"})}function O(rt,Ue,Ie){return RegExp(I(rt,Ue),Ie||"")}function z(rt,Ue){for(var Ie=0;Ie<Ue;Ie++)rt=rt.replace(/<<self>>/g,function(){return"(?:"+rt+")"});return rt.replace(/<<self>>/g,"[^\\s\\S]")}var W={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 _(rt){return"\\b(?:"+rt.trim().replace(/ /g,"|")+")\\b"}var M=RegExp(_(W.type+" "+W.other)),pe=/\b[A-Za-z_]\w*\b/.source,ue=I(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[pe]),ne={keyword:M,punctuation:/[<>()?,.:[\]]/},Pe=/"(?:\\.|[^\\"])*"/.source;b.languages.qsharp=b.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:O(/(^|[^$\\])<<0>>/.source,[Pe]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:O(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[ue]),lookbehind:!0,inside:ne},{pattern:O(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[ue]),lookbehind:!0,inside:ne}],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:/::|[{}[\];(),.:]/}),b.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var ke=z(I(/\{(?:[^"{}]|<<0>>|<<self>>)*\}/.source,[Pe]),2);b.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:O(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[ke]),greedy:!0,inside:{interpolation:{pattern:O(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[ke]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:b.languages.qsharp}}},string:/[\s\S]+/}}})})(d),d.languages.qs=d.languages.qsharp}},44298:function(Q){"use strict";Q.exports=C,C.displayName="r",C.aliases=[];function C(d){d.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(Q,C,d){"use strict";var b=d(48780);Q.exports=I,I.displayName="racket",I.aliases=["rkt"];function I(O){O.register(b),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(Q){"use strict";Q.exports=C,C.displayName="reason",C.aliases=[];function C(d){d.languages.reason=d.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/}),d.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 d.languages.reason.function}},48139:function(Q){"use strict";Q.exports=C,C.displayName="regex",C.aliases=[];function C(d){(function(b){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]|.)/,z={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},W={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},_="(?:[^\\\\-]|"+O.source+")",M=RegExp(_+"-"+_),pe={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};b.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":W,escape:O}},"special-escape":I,"char-set":z,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":pe}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:O,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":pe}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(d)}},97534:function(Q){"use strict";Q.exports=C,C.displayName="rego",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="renpy",C.aliases=["rpy"];function C(d){d.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:/[{}[\];(),.:]/},d.languages.rpy=d.languages.renpy}},63919:function(Q){"use strict";Q.exports=C,C.displayName="rest",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="rip",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="roboconf",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="robotframework",C.aliases=[];function C(d){(function(b){var I={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},O={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function z(pe,ue){var ne={};ne["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var Pe in ue)ne[Pe]=ue[Pe];return ne.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},ne.variable=O,ne.comment=I,{pattern:RegExp(/^ ?\*{3}[ \t]*<name>[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(/<name>/g,function(){return pe}),"im"),alias:"section",inside:ne}}var W={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},_={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}};b.languages.robotframework={settings:z("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:z("Variables"),"test-cases":z("Test Cases",{"test-name":_,documentation:W,property:M}),keywords:z("Keywords",{"keyword-name":_,documentation:W,property:M}),tasks:z("Tasks",{"task-name":_,documentation:W,property:M}),comment:I},b.languages.robot=b.languages.robotframework})(d)}},75308:function(Q){"use strict";Q.exports=C,C.displayName="ruby",C.aliases=["rb"];function C(d){(function(b){b.languages.ruby=b.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:/[(){}[\].,;]/}),b.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var I={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:b.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete b.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("|")+")",z=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;b.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+z),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+z+/(?=:(?!:))/.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:/\./}}}),b.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 b.languages.ruby.string,b.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)/}),b.languages.rb=b.languages.ruby})(d)}},45315:function(Q){"use strict";Q.exports=C,C.displayName="rust",C.aliases=[];function C(d){(function(b){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}),b.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:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},b.languages.rust["closure-params"].inside.rest=b.languages.rust,b.languages.rust.attribute.inside.string=b.languages.rust.string})(d)}},13794:function(Q){"use strict";Q.exports=C,C.displayName="sas",C.aliases=[];function C(d){(function(b){var I=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,O=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,z={pattern:RegExp(I+"[bx]"),alias:"number"},W={pattern:/&[a-z_]\w*/i},_={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},pe=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],ue={pattern:RegExp(I),greedy:!0},ne=/[$%@.(){}\[\];,\\]/,Pe={pattern:/%?\b\w+(?=\()/,alias:"keyword"},ke={function:Pe,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":W,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:O,"numeric-constant":z,punctuation:ne,string:ue},rt={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},Ue={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},Ie={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"},De={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},Fe=/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,de={pattern:RegExp(/(^|\s)(?:action\s+)?(?:<act>)\.[a-z]+\b[^;]+/.source.replace(/<act>/g,function(){return Fe}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:<act>)\.[a-z]+\b/.source.replace(/<act>/g,function(){return Fe}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:pe,function:Pe,"arg-value":ke["arg-value"],operator:ke.operator,argument:ke.arg,number:O,"numeric-constant":z,punctuation:ne,string:ue}},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};b.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:b.languages.sql},"global-statements":Ie,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:O,"numeric-constant":z,punctuation:ne,string:ue}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:pe,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:b.languages.groovy},keyword:me,"submit-statement":De,"global-statements":Ie,number:O,"numeric-constant":z,punctuation:ne,string:ue}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:pe,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:b.languages.lua},keyword:me,"submit-statement":De,"global-statements":Ie,number:O,"numeric-constant":z,punctuation:ne,string:ue}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:pe,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:ke}},"cas-actions":de,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:ke},step:M,keyword:me,function:Pe,format:rt,altformat:Ue,"global-statements":Ie,number:O,"numeric-constant":z,punctuation:ne,string:ue}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|<str>)+;/.source.replace(/<str>/g,function(){return I}),"im"),lookbehind:!0,inside:ke},"macro-keyword":_,"macro-variable":W,"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":_,"macro-variable":W,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:ne}},"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:pe,number:O,"numeric-constant":z}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:ke},"cas-actions":de,comment:pe,function:Pe,format:rt,altformat:Ue,"numeric-constant":z,datetime:{pattern:RegExp(I+"(?:dt?|t)"),alias:"number"},string:ue,step:M,keyword:me,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:O,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:ne}})(d)}},41299:function(Q){"use strict";Q.exports=C,C.displayName="sass",C.aliases=[];function C(d){(function(b){b.languages.sass=b.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),b.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete b.languages.sass.atrule;var I=/\$[-\w]+|#\{\$[-\w]+\}/,O=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];b.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:b.languages.sass.important}}}),delete b.languages.sass.property,delete b.languages.sass.important,b.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}})})(d)}},98177:function(Q,C,d){"use strict";var b=d(7093);Q.exports=I,I.displayName="scala",I.aliases=[];function I(O){O.register(b),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(Q){"use strict";Q.exports=C,C.displayName="scheme",C.aliases=[];function C(d){(function(b){b.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 z in O)O[z]=O[z].replace(/<[\w\s]+>/g,function(W){return"(?:"+O[W].trim()+")"});return O[z]}})(d)}},79793:function(Q){"use strict";Q.exports=C,C.displayName="scss",C.aliases=[];function C(d){d.languages.scss=d.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]+\}/}}}),d.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}]}),d.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),d.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}}),d.languages.scss.atrule.inside.rest=d.languages.scss}},52085:function(Q,C,d){"use strict";var b=d(3058);Q.exports=I,I.displayName="shellSession",I.aliases=[];function I(O){O.register(b),function(z){var W=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");z.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 W}),"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:z.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},z.languages["sh-session"]=z.languages.shellsession=z.languages["shell-session"]}(O)}},65411:function(Q){"use strict";Q.exports=C,C.displayName="smali",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="smalltalk",C.aliases=[];function C(d){d.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(Q,C,d){"use strict";var b=d(51478);Q.exports=I,I.displayName="smarty",I.aliases=[];function I(O){O.register(b),function(z){z.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:z.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/]},z.languages.smarty["embedded-php"].inside.smarty.inside=z.languages.smarty,z.languages.smarty.string[0].inside.interpolation.inside.expression.inside=z.languages.smarty;var W=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,_=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>)*\})*\})*\}/.source.replace(/<str>/g,function(){return W.source}),"g");z.hooks.add("before-tokenize",function(M){var pe="{literal}",ue="{/literal}",ne=!1;z.languages["markup-templating"].buildPlaceholders(M,"smarty",_,function(Pe){return Pe===ue&&(ne=!1),ne?!1:(Pe===pe&&(ne=!0),!0)})}),z.hooks.add("after-tokenize",function(M){z.languages["markup-templating"].tokenizePlaceholders(M,"smarty")})}(O)}},66433:function(Q){"use strict";Q.exports=C,C.displayName="sml",C.aliases=["smlnj"];function C(d){(function(b){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;b.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:/[(){}\[\].:,;]/},b.languages.sml["class-name"][0].inside=b.languages.sml,b.languages.smlnj=b.languages.sml})(d)}},34855:function(Q){"use strict";Q.exports=C,C.displayName="solidity",C.aliases=["sol"];function C(d){d.languages.solidity=d.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:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),d.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/}),d.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),d.languages.sol=d.languages.solidity}},12998:function(Q){"use strict";Q.exports=C,C.displayName="solutionFile",C.aliases=[];function C(d){(function(b){var I={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};b.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:/[(),]/},b.languages.sln=b.languages["solution-file"]})(d)}},10202:function(Q,C,d){"use strict";var b=d(51478);Q.exports=I,I.displayName="soy",I.aliases=[];function I(O){O.register(b),function(z){var W=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,_=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;z.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:W,greedy:!0},number:_,punctuation:/[\[\].?]/}},string:{pattern:W,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:_,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},z.hooks.add("before-tokenize",function(M){var pe=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,ue="{literal}",ne="{/literal}",Pe=!1;z.languages["markup-templating"].buildPlaceholders(M,"soy",pe,function(ke){return ke===ne&&(Pe=!1),Pe?!1:(ke===ue&&(Pe=!0),!0)})}),z.hooks.add("after-tokenize",function(M){z.languages["markup-templating"].tokenizePlaceholders(M,"soy")})}(O)}},41186:function(Q,C,d){"use strict";var b=d(58710);Q.exports=I,I.displayName="sparql",I.aliases=["rq"];function I(O){O.register(b),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(Q){"use strict";Q.exports=C,C.displayName="splunkSpl",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="sqf",C.aliases=[];function C(d){d.languages.sqf=d.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}),d.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:d.languages.sqf.comment}}}),delete d.languages.sqf["class-name"]}},69435:function(Q){"use strict";Q.exports=C,C.displayName="sql",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="squirrel",C.aliases=[];function C(d){d.languages.squirrel=d.languages.extend("clike",{comment:[d.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:/[(){}\[\],;.]/}),d.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),d.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}},46449:function(Q){"use strict";Q.exports=C,C.displayName="stan",C.aliases=[];function C(d){(function(b){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/;b.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:/[()\[\]{},;]/},b.languages.stan.constraint.inside.expression.inside=b.languages.stan})(d)}},89032:function(Q){"use strict";Q.exports=C,C.displayName="stylus",C.aliases=[];function C(d){(function(b){var I={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},O={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},z={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:/[{}()\[\];:,]/};z.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:z}},z.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:z}},b.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:z}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:z}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:z}},"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:z.interpolation}},rest:z}},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:z.interpolation,comment:z.comment,punctuation:/[{},]/}},func:z.func,string:z.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:z.interpolation,punctuation:/[{}()\[\];:.]/}})(d)}},40241:function(Q){"use strict";Q.exports=C,C.displayName="swift",C.aliases=[];function C(d){d.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:/[{}[\]();,.:\\]/},d.languages.swift["string-literal"].forEach(function(b){b.inside.interpolation.inside=d.languages.swift})}},24812:function(Q){"use strict";Q.exports=C,C.displayName="systemd",C.aliases=[];function C(d){(function(b){var I={pattern:/^[;#].*/m,greedy:!0},O=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;b.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:/=/}})(d)}},16747:function(Q,C,d){"use strict";var b=d(73584),I=d(87648);Q.exports=O,O.displayName="t4Cs",O.aliases=[];function O(z){z.register(b),z.register(I),z.languages.t4=z.languages["t4-cs"]=z.languages["t4-templating"].createT4("csharp")}},73584:function(Q){"use strict";Q.exports=C,C.displayName="t4Templating",C.aliases=[];function C(d){(function(b){function I(z,W,_){return{pattern:RegExp("<#"+z+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+z+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:W,alias:_}}}}function O(z){var W=b.languages[z],_="language-"+z;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("=",W,_),"class-feature":I("\\+",W,_),standard:I("",W,_)}}}}b.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:O})})(d)}},79243:function(Q,C,d){"use strict";var b=d(73584),I=d(55686);Q.exports=O,O.displayName="t4Vb",O.aliases=[];function O(z){z.register(b),z.register(I),z.languages["t4-vb"]=z.languages["t4-templating"].createT4("vbnet")}},31788:function(Q,C,d){"use strict";var b=d(14409);Q.exports=I,I.displayName="tap",I.aliases=[];function I(O){O.register(b),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(Q){"use strict";Q.exports=C,C.displayName="tcl",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="textile",C.aliases=[];function C(d){(function(b){var I=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,O=/\)|\((?![^|()\n]+\))/.source;function z(Pe,ke){return RegExp(Pe.replace(/<MOD>/g,function(){return"(?:"+I+")"}).replace(/<PAR>/g,function(){return"(?:"+O+")"}),ke||"")}var W={css:{pattern:/\{[^{}]+\}/,inside:{rest:b.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},_=b.languages.textile=b.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:z(/^[a-z]\w*(?:<MOD>|<PAR>|[<>=])*\./.source),inside:{modifier:{pattern:z(/(^[a-z]\w*)(?:<MOD>|<PAR>|[<>=])+(?=\.)/.source),lookbehind:!0,inside:W},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:z(/^[*#]+<MOD>*\s+\S.*/.source,"m"),inside:{modifier:{pattern:z(/(^[*#]+)<MOD>+/.source),lookbehind:!0,inside:W},punctuation:/^[*#]+/}},table:{pattern:z(/^(?:(?:<MOD>|<PAR>|[<>=^~])+\.\s*)?(?:\|(?:(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.|(?!(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:z(/(^|\|(?:\r?\n|\r)?)(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:W},punctuation:/\||^\./}},inline:{pattern:z(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])<MOD>*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:z(/(^(\*\*?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:z(/(^(__?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:z(/(^\?\?<MOD>*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:z(/(^@<MOD>*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:z(/(^\+<MOD>*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:z(/(^-<MOD>*).+?(?=-)/.source),lookbehind:!0},span:{pattern:z(/(^%<MOD>*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:z(/(^\*\*|__|\?\?|[*_%@+\-^~])<MOD>+/.source),lookbehind:!0,inside:W},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:z(/"<MOD>*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:z(/(^"<MOD>*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:z(/(^")<MOD>+/.source),lookbehind:!0,inside:W},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:z(/!(?:<MOD>|<PAR>|[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:z(/(^!(?:<MOD>|<PAR>|[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:z(/(^!)(?:<MOD>|<PAR>|[<>=])+/.source),lookbehind:!0,inside:W},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=_.phrase.inside,pe={inline:M.inline,link:M.link,image:M.image,footnote:M.footnote,acronym:M.acronym,mark:M.mark};_.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var ue=M.inline.inside;ue.bold.inside=pe,ue.italic.inside=pe,ue.inserted.inside=pe,ue.deleted.inside=pe,ue.span.inside=pe;var ne=M.table.inside;ne.inline=pe.inline,ne.link=pe.link,ne.image=pe.image,ne.footnote=pe.footnote,ne.acronym=pe.acronym,ne.mark=pe.mark})(d)}},14693:function(Q){"use strict";Q.exports=C,C.displayName="toml",C.aliases=[];function C(d){(function(b){var I=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function O(z){return z.replace(/__/g,function(){return I})}b.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:/[.,=[\]{}]/}})(d)}},8743:function(Q){"use strict";Q.exports=C,C.displayName="tremor",C.aliases=[];function C(d){(function(b){b.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;b.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:b.languages.tremor}}},string:/[\s\S]+/}},b.languages.troy=b.languages.tremor,b.languages.trickle=b.languages.tremor})(d)}},1689:function(Q,C,d){"use strict";var b=d(24103),I=d(92784);Q.exports=O,O.displayName="tsx",O.aliases=[];function O(z){z.register(b),z.register(I),function(W){var _=W.util.clone(W.languages.typescript);W.languages.tsx=W.languages.extend("jsx",_),delete W.languages.tsx.parameter,delete W.languages.tsx["literal-property"];var M=W.languages.tsx.tag;M.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+M.pattern.source+")",M.pattern.flags),M.lookbehind=!0}(z)}},69210:function(Q,C,d){"use strict";var b=d(51478);Q.exports=I,I.displayName="tt2",I.aliases=[];function I(O){O.register(b),function(z){z.languages.tt2=z.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:/[[\]{},()]/}),z.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),z.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),z.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 z.languages.tt2.string,z.hooks.add("before-tokenize",function(W){var _=/\[%[\s\S]+?%\]/g;z.languages["markup-templating"].buildPlaceholders(W,"tt2",_)}),z.hooks.add("after-tokenize",function(W){z.languages["markup-templating"].tokenizePlaceholders(W,"tt2")})}(O)}},58710:function(Q){"use strict";Q.exports=C,C.displayName="turtle",C.aliases=[];function C(d){d.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:/@/}}},d.languages.trig=d.languages.turtle}},60452:function(Q,C,d){"use strict";var b=d(51478);Q.exports=I,I.displayName="twig",I.aliases=[];function I(O){O.register(b),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(z){if(z.language==="twig"){var W=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;O.languages["markup-templating"].buildPlaceholders(z,"twig",W)}}),O.hooks.add("after-tokenize",function(z){O.languages["markup-templating"].tokenizePlaceholders(z,"twig")})}},92784:function(Q){"use strict";Q.exports=C,C.displayName="typescript",C.aliases=["ts"];function C(d){(function(b){b.languages.typescript=b.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/}),b.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 b.languages.typescript.parameter,delete b.languages.typescript["literal-property"];var I=b.languages.extend("typescript",{});delete I["class-name"],b.languages.typescript["class-name"].inside=I,b.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}}}}),b.languages.ts=b.languages.typescript})(d)}},36489:function(Q){"use strict";Q.exports=C,C.displayName="typoscript",C.aliases=["tsconfig"];function C(d){(function(b){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/;b.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:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},b.languages.tsconfig=b.languages.typoscript})(d)}},78380:function(Q){"use strict";Q.exports=C,C.displayName="unrealscript",C.aliases=["uc","uscript"];function C(d){d.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:/[()[\]{};,.]/},d.languages.uc=d.languages.uscript=d.languages.unrealscript}},10409:function(Q){"use strict";Q.exports=C,C.displayName="uorazor",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="uri",C.aliases=["url"];function C(d){d.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":/\//}}},d.languages.url=d.languages.uri}},82028:function(Q){"use strict";Q.exports=C,C.displayName="v",C.aliases=[];function C(d){(function(b){var I={pattern:/[\s\S]+/,inside:null};b.languages.v=b.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=b.languages.v,b.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),b.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+/}}}),b.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:b.languages.v.generic.inside}}}})})(d)}},62282:function(Q){"use strict";Q.exports=C,C.displayName="vala",C.aliases=[];function C(d){d.languages.vala=d.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/}),d.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:d.languages.vala}},string:/[\s\S]+/}}}),d.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:d.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}},55686:function(Q,C,d){"use strict";var b=d(51422);Q.exports=I,I.displayName="vbnet",I.aliases=[];function I(O){O.register(b),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(Q){"use strict";Q.exports=C,C.displayName="velocity",C.aliases=[];function C(d){(function(b){b.languages.velocity=b.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},b.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}),b.languages.velocity.tag.inside["attr-value"].inside.rest=b.languages.velocity})(d)}},37116:function(Q){"use strict";Q.exports=C,C.displayName="verilog",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="vhdl",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="vim",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="visualBasic",C.aliases=[];function C(d){d.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:/[{}().,:?]/},d.languages.vb=d.languages["visual-basic"],d.languages.vba=d.languages["visual-basic"]}},17723:function(Q){"use strict";Q.exports=C,C.displayName="warpscript",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="wasm",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="webIdl",C.aliases=[];function C(d){(function(b){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,z={};b.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:z},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+O),lookbehind:!0,inside:z},{pattern:RegExp("("+/\bcallback\s+/.source+I+/\s*=\s*/.source+")"+O),lookbehind:!0,inside:z},{pattern:RegExp(/(\btypedef\b\s*)/.source+O),lookbehind:!0,inside:z},{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:z}],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 W in b.languages["web-idl"])W!=="class-name"&&(z[W]=b.languages["web-idl"][W]);b.languages.webidl=b.languages["web-idl"]})(d)}},8921:function(Q){"use strict";Q.exports=C,C.displayName="wiki",C.aliases=[];function C(d){d.languages.wiki=d.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:d.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),d.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:d.languages.markup.tag.inside}}}})}},13429:function(Q){"use strict";Q.exports=C,C.displayName="wolfram",C.aliases=["mathematica","wl","nb"];function C(d){d.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:/[{}[\];(),.:]/},d.languages.mathematica=d.languages.wolfram,d.languages.wl=d.languages.wolfram,d.languages.nb=d.languages.wolfram}},65197:function(Q){"use strict";Q.exports=C,C.displayName="wren",C.aliases=[];function C(d){d.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:/[\[\](){}.,;]/},d.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:d.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}},88904:function(Q){"use strict";Q.exports=C,C.displayName="xeora",C.aliases=["xeoracube"];function C(d){(function(b){b.languages.xeora=b.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"}}),b.languages.insertBefore("inside","punctuation",{variable:b.languages.xeora["function-inline"].inside.variable},b.languages.xeora["function-block"]),b.languages.xeoracube=b.languages.xeora})(d)}},35:function(Q){"use strict";Q.exports=C,C.displayName="xmlDoc",C.aliases=[];function C(d){(function(b){function I(_,M){b.languages[_]&&b.languages.insertBefore(_,"comment",{"doc-comment":M})}var O=b.languages.markup.tag,z={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:O}},W={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:O}};I("csharp",z),I("fsharp",z),I("vbnet",W)})(d)}},86095:function(Q){"use strict";Q.exports=C,C.displayName="xojo",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="xquery",C.aliases=[];function C(d){(function(b){b.languages.xquery=b.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:/[[\](){},;:/]/}),b.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,b.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,b.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,b.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:b.languages.xquery,alias:"language-xquery"};var I=function(z){return typeof z=="string"?z:typeof z.content=="string"?z.content:z.content.map(I).join("")},O=function(z){for(var W=[],_=0;_<z.length;_++){var M=z[_],pe=!1;if(typeof M!="string"&&(M.type==="tag"&&M.content[0]&&M.content[0].type==="tag"?M.content[0].content[0].content==="</"?W.length>0&&W[W.length-1].tagName===I(M.content[0].content[1])&&W.pop():M.content[M.content.length-1].content==="/>"||W.push({tagName:I(M.content[0].content[1]),openedBraces:0}):W.length>0&&M.type==="punctuation"&&M.content==="{"&&(!z[_+1]||z[_+1].type!=="punctuation"||z[_+1].content!=="{")&&(!z[_-1]||z[_-1].type!=="plain-text"||z[_-1].content!=="{")?W[W.length-1].openedBraces++:W.length>0&&W[W.length-1].openedBraces>0&&M.type==="punctuation"&&M.content==="}"?W[W.length-1].openedBraces--:M.type!=="comment"&&(pe=!0)),(pe||typeof M=="string")&&W.length>0&&W[W.length-1].openedBraces===0){var ue=I(M);_<z.length-1&&(typeof z[_+1]=="string"||z[_+1].type==="plain-text")&&(ue+=I(z[_+1]),z.splice(_+1,1)),_>0&&(typeof z[_-1]=="string"||z[_-1].type==="plain-text")&&(ue=I(z[_-1])+ue,z.splice(_-1,1),_--),/^\s+$/.test(ue)?z[_]=ue:z[_]=new b.Token("plain-text",ue,null,ue)}M.content&&typeof M.content!="string"&&O(M.content)}};b.hooks.add("after-tokenize",function(z){z.language==="xquery"&&O(z.tokens)})})(d)}},14409:function(Q){"use strict";Q.exports=C,C.displayName="yaml",C.aliases=["yml"];function C(d){(function(b){var I=/[*&][^\s[\]{},]+/,O=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,z="(?:"+O.source+"(?:[ ]+"+I.source+")?|"+I.source+"(?:[ ]+"+O.source+")?)",W=/(?:[^\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}),_=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function M(pe,ue){ue=(ue||"").replace(/m/g,"")+"m";var ne=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return z}).replace(/<<value>>/g,function(){return pe});return RegExp(ne,ue)}b.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 z})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return z}).replace(/<<key>>/g,function(){return"(?:"+W+"|"+_+")"})),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(_),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:/---|[:[\]{}\-,|>?]|\.\.\./},b.languages.yml=b.languages.yaml})(d)}},33460:function(Q){"use strict";Q.exports=C,C.displayName="yang",C.aliases=[];function C(d){d.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(Q){"use strict";Q.exports=C,C.displayName="zig",C.aliases=[];function C(d){(function(b){function I(ue){return function(){return ue}}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/,z="\\b(?!"+O.source+")(?!\\d)\\w+\\b",W=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,_=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*<ALIGN>|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(/<ALIGN>/g,I(W)),M=/(?:\bpromise\b|(?:\berror\.)?<ID>(?:\.<ID>)*(?!\s+<ID>))/.source.replace(/<ID>/g,I(z)),pe="(?!\\s)(?:!?\\s*(?:"+_+"\\s*)*"+M+")+";b.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(pe)).replace(/<ALIGN>/g,I(W))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?;)/.source.replace(/<TYPE>/g,I(pe)).replace(/<ALIGN>/g,I(W))),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:/[.:,;(){}[\]]/},b.languages.zig["class-name"].forEach(function(ue){ue.inside===null&&(ue.inside=b.languages.zig)})})(d)}},49063:function(Q,C){"use strict";var d;C.Q=z,d=W;var b="",I=" ",O=/[ \t\n\r\f]+/g;function z(_){var M=String(_||b).trim();return M===b?[]:M.split(O)}function W(_){return _.join(I).trim()}},58970:function(Q,C,d){"use strict";var b=this&&this.__importDefault||function(z){return z&&z.__esModule?z:{default:z}};Object.defineProperty(C,"__esModule",{value:!0}),C.default=O;var I=b(d(93193));function O(z,W){var _=null;if(!z||typeof z!="string")return _;var M=(0,I.default)(z),pe=typeof W=="function";return M.forEach(function(ue){if(ue.type==="declaration"){var ne=ue.property,Pe=ue.value;pe?W(ne,Pe,ue):Pe&&(_=_||{},_[ne]=Pe)}}),_}},97270:function(Q){Q.exports=d;var C=Object.prototype.hasOwnProperty;function d(){for(var b={},I=0;I<arguments.length;I++){var O=arguments[I];for(var z in O)C.call(O,z)&&(b[z]=O[z])}return b}},90302:function(Q,C,d){"use strict";d.d(C,{ZP:function(){return ge}});const b=-1,I=0,O=1,z=2,W=3,_=4,M=5,pe=6,ue=7,ne=8,Pe=typeof self=="object"?self:globalThis,ke=(Te,ee)=>{const Ce=(Le,Ke)=>(Te.set(Ke,Le),Le),Ne=Le=>{if(Te.has(Le))return Te.get(Le);const[Ke,nt]=ee[Le];switch(Ke){case I:case b:return Ce(nt,Le);case O:{const ie=Ce([],Le);for(const at of nt)ie.push(Ne(at));return ie}case z:{const ie=Ce({},Le);for(const[at,Ze]of nt)ie[Ne(at)]=Ne(Ze);return ie}case W:return Ce(new Date(nt),Le);case _:{const{source:ie,flags:at}=nt;return Ce(new RegExp(ie,at),Le)}case M:{const ie=Ce(new Map,Le);for(const[at,Ze]of nt)ie.set(Ne(at),Ne(Ze));return ie}case pe:{const ie=Ce(new Set,Le);for(const at of nt)ie.add(Ne(at));return ie}case ue:{const{name:ie,message:at}=nt;return Ce(new Pe[ie](at),Le)}case ne:return Ce(BigInt(nt),Le);case"BigInt":return Ce(Object(BigInt(nt)),Le);case"ArrayBuffer":return Ce(new Uint8Array(nt).buffer,nt);case"DataView":{const{buffer:ie}=new Uint8Array(nt);return Ce(new DataView(ie),nt)}}return Ce(new Pe[Ke](nt),Le)};return Ne},rt=Te=>ke(new Map,Te)(0),Ue="",{toString:Ie}={},{keys:De}=Object,Fe=Te=>{const ee=typeof Te;if(ee!=="object"||!Te)return[I,ee];const Ce=Ie.call(Te).slice(8,-1);switch(Ce){case"Array":return[O,Ue];case"Object":return[z,Ue];case"Date":return[W,Ue];case"RegExp":return[_,Ue];case"Map":return[M,Ue];case"Set":return[pe,Ue];case"DataView":return[O,Ce]}return Ce.includes("Array")?[O,Ce]:Ce.includes("Error")?[ue,Ce]:[z,Ce]},de=([Te,ee])=>Te===I&&(ee==="function"||ee==="symbol"),me=(Te,ee,Ce,Ne)=>{const Le=(nt,ie)=>{const at=Ne.push(nt)-1;return Ce.set(ie,at),at},Ke=nt=>{if(Ce.has(nt))return Ce.get(nt);let[ie,at]=Fe(nt);switch(ie){case I:{let Bt=nt;switch(at){case"bigint":ie=ne,Bt=nt.toString();break;case"function":case"symbol":if(Te)throw new TypeError("unable to serialize "+at);Bt=null;break;case"undefined":return Le([b],nt)}return Le([ie,Bt],nt)}case O:{if(at){let kt=nt;return at==="DataView"?kt=new Uint8Array(nt.buffer):at==="ArrayBuffer"&&(kt=new Uint8Array(nt)),Le([at,[...kt]],nt)}const Bt=[],bt=Le([ie,Bt],nt);for(const kt of nt)Bt.push(Ke(kt));return bt}case z:{if(at)switch(at){case"BigInt":return Le([at,nt.toString()],nt);case"Boolean":case"Number":case"String":return Le([at,nt.valueOf()],nt)}if(ee&&"toJSON"in nt)return Ke(nt.toJSON());const Bt=[],bt=Le([ie,Bt],nt);for(const kt of De(nt))(Te||!de(Fe(nt[kt])))&&Bt.push([Ke(kt),Ke(nt[kt])]);return bt}case W:return Le([ie,nt.toISOString()],nt);case _:{const{source:Bt,flags:bt}=nt;return Le([ie,{source:Bt,flags:bt}],nt)}case M:{const Bt=[],bt=Le([ie,Bt],nt);for(const[kt,Tt]of nt)(Te||!(de(Fe(kt))||de(Fe(Tt))))&&Bt.push([Ke(kt),Ke(Tt)]);return bt}case pe:{const Bt=[],bt=Le([ie,Bt],nt);for(const kt of nt)(Te||!de(Fe(kt)))&&Bt.push(Ke(kt));return bt}}const{message:Ze}=nt;return Le([ie,{name:at,message:Ze}],nt)};return Ke},we=(Te,{json:ee,lossy:Ce}={})=>{const Ne=[];return me(!(ee||Ce),!!ee,new Map,Ne)(Te),Ne};var ge=typeof structuredClone=="function"?(Te,ee)=>ee&&("json"in ee||"lossy"in ee)?rt(we(Te,ee)):structuredClone(Te):(Te,ee)=>rt(we(Te,ee))},11630:function(Q,C,d){"use strict";d.d(C,{P:function(){return I},Q:function(){return b}});function b(O){const z=[],W=String(O||"");let _=W.indexOf(","),M=0,pe=!1;for(;!pe;){_===-1&&(_=W.length,pe=!0);const ue=W.slice(M,_).trim();(ue||!pe)&&z.push(ue),M=_+1,_=W.indexOf(",",M)}return z}function I(O,z){const W=z||{};return(O[O.length-1]===""?[...O,""]:O).join((W.padRight?" ":"")+","+(W.padLeft===!1?"":" ")).trim()}},87342:function(Q,C,d){"use strict";d.d(C,{ok:function(){return O},t1:function(){return z}});function b(W){return W}function I(){}function O(){}function z(){}},81994:function(Q,C,d){"use strict";d.d(C,{h:function(){return De},s:function(){return Fe}});var b=d(58222),I=d(11630);const O=/[#.]/g;function z(de,me){const we=de||"",ge={};let Te=0,ee,Ce;for(;Te<we.length;){O.lastIndex=Te;const Ne=O.exec(we),Le=we.slice(Te,Ne?Ne.index:we.length);Le&&(ee?ee==="#"?ge.id=Le:Array.isArray(ge.className)?ge.className.push(Le):ge.className=[Le]:Ce=Le,Te+=Le.length),Ne&&(ee=Ne[0],Te++)}return{type:"element",tagName:Ce||me||"div",properties:ge,children:[]}}var W=d(84837),_=d(64326),M=d(71523);function pe(de,me,we){const ge=we?Ue(we):void 0;function Te(ee,Ce,...Ne){let Le;if(ee==null){Le={type:"root",children:[]};const Ke=Ce;Ne.unshift(Ke)}else{Le=z(ee,me);const Ke=Le.tagName.toLowerCase(),nt=ge?ge.get(Ke):void 0;if(Le.tagName=nt||Ke,ue(Ce))Ne.unshift(Ce);else for(const[ie,at]of Object.entries(Ce))ne(de,Le.properties,ie,at)}for(const Ke of Ne)Pe(Le.children,Ke);return Le.type==="element"&&Le.tagName==="template"&&(Le.content={type:"root",children:Le.children},Le.children=[]),Le}return Te}function ue(de){if(de===null||typeof de!="object"||Array.isArray(de))return!0;if(typeof de.type!="string")return!1;const me=de,we=Object.keys(de);for(const ge of we){const Te=me[ge];if(Te&&typeof Te=="object"){if(!Array.isArray(Te))return!0;const ee=Te;for(const Ce of ee)if(typeof Ce!="number"&&typeof Ce!="string")return!0}}return!!("children"in de&&Array.isArray(de.children))}function ne(de,me,we,ge){const Te=(0,W.s)(de,we);let ee;if(ge!=null){if(typeof ge=="number"){if(Number.isNaN(ge))return;ee=ge}else typeof ge=="boolean"?ee=ge:typeof ge=="string"?Te.spaceSeparated?ee=(0,M.Q)(ge):Te.commaSeparated?ee=(0,I.Q)(ge):Te.commaOrSpaceSeparated?ee=(0,M.Q)((0,I.Q)(ge).join(" ")):ee=ke(Te,Te.property,ge):Array.isArray(ge)?ee=[...ge]:ee=Te.property==="style"?rt(ge):String(ge);if(Array.isArray(ee)){const Ce=[];for(const Ne of ee)Ce.push(ke(Te,Te.property,Ne));ee=Ce}Te.property==="className"&&Array.isArray(me.className)&&(ee=me.className.concat(ee)),me[Te.property]=ee}}function Pe(de,me){if(me!=null)if(typeof me=="number"||typeof me=="string")de.push({type:"text",value:String(me)});else if(Array.isArray(me))for(const we of me)Pe(de,we);else if(typeof me=="object"&&"type"in me)me.type==="root"?Pe(de,me.children):de.push(me);else throw new Error("Expected node, nodes, or string, got `"+me+"`")}function ke(de,me,we){if(typeof we=="string"){if(de.number&&we&&!Number.isNaN(Number(we)))return Number(we);if((de.boolean||de.overloadedBoolean)&&(we===""||(0,_.F)(we)===(0,_.F)(me)))return!0}return we}function rt(de){const me=[];for(const[we,ge]of Object.entries(de))me.push([we,ge].join(": "));return me.join("; ")}function Ue(de){const me=new Map;for(const we of de)me.set(we.toLowerCase(),we);return me}const Ie=["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"],De=pe(b.dy,"div"),Fe=pe(b.YP,"g",Ie)},26735:function(Q,C,d){"use strict";d.d(C,{f:function(){return I}});var b=d(80722);function I(O,z,W,_){const M=_?_-1:Number.POSITIVE_INFINITY;let pe=0;return ue;function ue(Pe){return(0,b.xz)(Pe)?(O.enter(W),ne(Pe)):z(Pe)}function ne(Pe){return(0,b.xz)(Pe)&&pe++<M?(O.consume(Pe),ne):(O.exit(W),z(Pe))}}},80722:function(Q,C,d){"use strict";d.d(C,{AF:function(){return _},Av:function(){return z},B8:function(){return ke},Ch:function(){return pe},H$:function(){return I},Xh:function(){return Pe},jv:function(){return b},n9:function(){return O},pY:function(){return W},sR:function(){return M},xz:function(){return ne},z3:function(){return ue}});const b=rt(/[A-Za-z]/),I=rt(/[\dA-Za-z]/),O=rt(/[#-'*+\--9=?A-Z^-~]/);function z(Ue){return Ue!==null&&(Ue<32||Ue===127)}const W=rt(/\d/),_=rt(/[\dA-Fa-f]/),M=rt(/[!-/:-@[-`{-~]/);function pe(Ue){return Ue!==null&&Ue<-2}function ue(Ue){return Ue!==null&&(Ue<0||Ue===32)}function ne(Ue){return Ue===-2||Ue===-1||Ue===32}const Pe=rt(new RegExp("\\p{P}|\\p{S}","u")),ke=rt(/\s/);function rt(Ue){return Ie;function Ie(De){return De!==null&&De>-1&&Ue.test(String.fromCharCode(De))}}},58222:function(Q,C,d){"use strict";d.d(C,{dy:function(){return Ie},YP:function(){return De}});class b{constructor(de,me,we){this.normal=me,this.property=de,we&&(this.space=we)}}b.prototype.normal={},b.prototype.property={},b.prototype.space=void 0;function I(Fe,de){const me={},we={};for(const ge of Fe)Object.assign(me,ge.property),Object.assign(we,ge.normal);return new b(me,we,de)}var O=d(64326),z=d(95516);function W(Fe){const de={},me={};for(const[we,ge]of Object.entries(Fe.properties)){const Te=new z.I(we,Fe.transform(Fe.attributes||{},we),ge,Fe.space);Fe.mustUseProperty&&Fe.mustUseProperty.includes(we)&&(Te.mustUseProperty=!0),de[we]=Te,me[(0,O.F)(we)]=we,me[(0,O.F)(Te.attribute)]=we}return new b(de,me,Fe.space)}var _=d(56488);const M=W({properties:{ariaActiveDescendant:null,ariaAtomic:_.booleanish,ariaAutoComplete:null,ariaBusy:_.booleanish,ariaChecked:_.booleanish,ariaColCount:_.number,ariaColIndex:_.number,ariaColSpan:_.number,ariaControls:_.spaceSeparated,ariaCurrent:null,ariaDescribedBy:_.spaceSeparated,ariaDetails:null,ariaDisabled:_.booleanish,ariaDropEffect:_.spaceSeparated,ariaErrorMessage:null,ariaExpanded:_.booleanish,ariaFlowTo:_.spaceSeparated,ariaGrabbed:_.booleanish,ariaHasPopup:null,ariaHidden:_.booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:_.spaceSeparated,ariaLevel:_.number,ariaLive:null,ariaModal:_.booleanish,ariaMultiLine:_.booleanish,ariaMultiSelectable:_.booleanish,ariaOrientation:null,ariaOwns:_.spaceSeparated,ariaPlaceholder:null,ariaPosInSet:_.number,ariaPressed:_.booleanish,ariaReadOnly:_.booleanish,ariaRelevant:null,ariaRequired:_.booleanish,ariaRoleDescription:_.spaceSeparated,ariaRowCount:_.number,ariaRowIndex:_.number,ariaRowSpan:_.number,ariaSelected:_.booleanish,ariaSetSize:_.number,ariaSort:null,ariaValueMax:_.number,ariaValueMin:_.number,ariaValueNow:_.number,ariaValueText:null,role:null},transform(Fe,de){return de==="role"?de:"aria-"+de.slice(4).toLowerCase()}});function pe(Fe,de){return de in Fe?Fe[de]:de}function ue(Fe,de){return pe(Fe,de.toLowerCase())}const ne=W({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:_.commaSeparated,acceptCharset:_.spaceSeparated,accessKey:_.spaceSeparated,action:null,allow:null,allowFullScreen:_.boolean,allowPaymentRequest:_.boolean,allowUserMedia:_.boolean,alt:null,as:null,async:_.boolean,autoCapitalize:null,autoComplete:_.spaceSeparated,autoFocus:_.boolean,autoPlay:_.boolean,blocking:_.spaceSeparated,capture:null,charSet:null,checked:_.boolean,cite:null,className:_.spaceSeparated,cols:_.number,colSpan:null,content:null,contentEditable:_.booleanish,controls:_.boolean,controlsList:_.spaceSeparated,coords:_.number|_.commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:_.boolean,defer:_.boolean,dir:null,dirName:null,disabled:_.boolean,download:_.overloadedBoolean,draggable:_.booleanish,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:_.boolean,formTarget:null,headers:_.spaceSeparated,height:_.number,hidden:_.boolean,high:_.number,href:null,hrefLang:null,htmlFor:_.spaceSeparated,httpEquiv:_.spaceSeparated,id:null,imageSizes:null,imageSrcSet:null,inert:_.boolean,inputMode:null,integrity:null,is:null,isMap:_.boolean,itemId:null,itemProp:_.spaceSeparated,itemRef:_.spaceSeparated,itemScope:_.boolean,itemType:_.spaceSeparated,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:_.boolean,low:_.number,manifest:null,max:null,maxLength:_.number,media:null,method:null,min:null,minLength:_.number,multiple:_.boolean,muted:_.boolean,name:null,nonce:null,noModule:_.boolean,noValidate:_.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:_.boolean,optimum:_.number,pattern:null,ping:_.spaceSeparated,placeholder:null,playsInline:_.boolean,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:_.boolean,referrerPolicy:null,rel:_.spaceSeparated,required:_.boolean,reversed:_.boolean,rows:_.number,rowSpan:_.number,sandbox:_.spaceSeparated,scope:null,scoped:_.boolean,seamless:_.boolean,selected:_.boolean,shadowRootClonable:_.boolean,shadowRootDelegatesFocus:_.boolean,shadowRootMode:null,shape:null,size:_.number,sizes:null,slot:null,span:_.number,spellCheck:_.booleanish,src:null,srcDoc:null,srcLang:null,srcSet:null,start:_.number,step:null,style:null,tabIndex:_.number,target:null,title:null,translate:null,type:null,typeMustMatch:_.boolean,useMap:null,value:_.booleanish,width:_.number,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:_.spaceSeparated,axis:null,background:null,bgColor:null,border:_.number,borderColor:null,bottomMargin:_.number,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:_.boolean,declare:_.boolean,event:null,face:null,frame:null,frameBorder:null,hSpace:_.number,leftMargin:_.number,link:null,longDesc:null,lowSrc:null,marginHeight:_.number,marginWidth:_.number,noResize:_.boolean,noHref:_.boolean,noShade:_.boolean,noWrap:_.boolean,object:null,profile:null,prompt:null,rev:null,rightMargin:_.number,rules:null,scheme:null,scrolling:_.booleanish,standby:null,summary:null,text:null,topMargin:_.number,valueType:null,version:null,vAlign:null,vLink:null,vSpace:_.number,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:_.boolean,disableRemotePlayback:_.boolean,prefix:null,property:null,results:_.number,security:null,unselectable:null},space:"html",transform:ue}),Pe=W({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:_.commaOrSpaceSeparated,accentHeight:_.number,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:_.number,amplitude:_.number,arabicForm:null,ascent:_.number,attributeName:null,attributeType:null,azimuth:_.number,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:_.number,by:null,calcMode:null,capHeight:_.number,className:_.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:_.number,diffuseConstant:_.number,direction:null,display:null,dur:null,divisor:_.number,dominantBaseline:null,download:_.boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:_.number,enableBackground:null,end:null,event:null,exponent:_.number,externalResourcesRequired:null,fill:null,fillOpacity:_.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:_.commaSeparated,g2:_.commaSeparated,glyphName:_.commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:_.number,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:_.number,horizOriginX:_.number,horizOriginY:_.number,id:null,ideographic:_.number,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:_.number,k:_.number,k1:_.number,k2:_.number,k3:_.number,k4:_.number,kernelMatrix:_.commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:_.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:_.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:_.number,overlineThickness:_.number,paintOrder:null,panose1:null,path:null,pathLength:_.number,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:_.spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:_.number,pointsAtY:_.number,pointsAtZ:_.number,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:_.commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:_.commaOrSpaceSeparated,rev:_.commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:_.commaOrSpaceSeparated,requiredFeatures:_.commaOrSpaceSeparated,requiredFonts:_.commaOrSpaceSeparated,requiredFormats:_.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:_.number,specularExponent:_.number,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:_.number,strikethroughThickness:_.number,string:null,stroke:null,strokeDashArray:_.commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:_.number,strokeOpacity:_.number,strokeWidth:null,style:null,surfaceScale:_.number,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:_.commaOrSpaceSeparated,tabIndex:_.number,tableValues:null,target:null,targetX:_.number,targetY:_.number,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:_.commaOrSpaceSeparated,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:_.number,underlineThickness:_.number,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:_.number,values:null,vAlphabetic:_.number,vMathematical:_.number,vectorEffect:null,vHanging:_.number,vIdeographic:_.number,version:null,vertAdvY:_.number,vertOriginX:_.number,vertOriginY:_.number,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:_.number,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:pe}),ke=W({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(Fe,de){return"xlink:"+de.slice(5).toLowerCase()}}),rt=W({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ue}),Ue=W({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(Fe,de){return"xml:"+de.slice(3).toLowerCase()}}),Ie=I([M,ne,ke,rt,Ue],"html"),De=I([M,Pe,ke,rt,Ue],"svg")},84837:function(Q,C,d){"use strict";d.d(C,{s:function(){return M}});var b=d(95516),I=d(56038),O=d(64326);const z=/[A-Z]/g,W=/-[a-z]/g,_=/^data[-\w.:]+$/i;function M(ne,Pe){const ke=(0,O.F)(Pe);let rt=Pe,Ue=I.k;if(ke in ne.normal)return ne.property[ne.normal[ke]];if(ke.length>4&&ke.slice(0,4)==="data"&&_.test(Pe)){if(Pe.charAt(4)==="-"){const Ie=Pe.slice(5).replace(W,ue);rt="data"+Ie.charAt(0).toUpperCase()+Ie.slice(1)}else{const Ie=Pe.slice(4);if(!W.test(Ie)){let De=Ie.replace(z,pe);De.charAt(0)!=="-"&&(De="-"+De),Pe="data"+De}}Ue=b.I}return new Ue(rt,Pe)}function pe(ne){return"-"+ne.toLowerCase()}function ue(ne){return ne.charAt(1).toUpperCase()}},64326:function(Q,C,d){"use strict";d.d(C,{F:function(){return b}});function b(I){return I.toLowerCase()}},95516:function(Q,C,d){"use strict";d.d(C,{I:function(){return z}});var b=d(56038),I=d(56488);const O=Object.keys(I);class z extends b.k{constructor(M,pe,ue,ne){let Pe=-1;if(super(M,pe),W(this,"space",ne),typeof ue=="number")for(;++Pe<O.length;){const ke=O[Pe];W(this,O[Pe],(ue&I[ke])===I[ke])}}}z.prototype.defined=!0;function W(_,M,pe){pe&&(_[M]=pe)}},56038:function(Q,C,d){"use strict";d.d(C,{k:function(){return b}});class b{constructor(O,z){this.attribute=z,this.property=O}}b.prototype.attribute="",b.prototype.booleanish=!1,b.prototype.boolean=!1,b.prototype.commaOrSpaceSeparated=!1,b.prototype.commaSeparated=!1,b.prototype.defined=!1,b.prototype.mustUseProperty=!1,b.prototype.number=!1,b.prototype.overloadedBoolean=!1,b.prototype.property="",b.prototype.spaceSeparated=!1,b.prototype.space=void 0},56488:function(Q,C,d){"use strict";d.r(C),d.d(C,{boolean:function(){return I},booleanish:function(){return O},commaOrSpaceSeparated:function(){return pe},commaSeparated:function(){return M},number:function(){return W},overloadedBoolean:function(){return z},spaceSeparated:function(){return _}});let b=0;const I=ue(),O=ue(),z=ue(),W=ue(),_=ue(),M=ue(),pe=ue();function ue(){return ny(2,++b)}},16879:function(Q,C,d){"use strict";d.d(C,{UG:function(){return zn}});var b={};d.r(b),d.d(b,{attentionMarkers:function(){return Ca},contentInitial:function(){return pr},disable:function(){return oi},document:function(){return yn},flow:function(){return Yo},flowInitial:function(){return pi},insideSpan:function(){return Oa},string:function(){return Ns},text:function(){return ha}});var I=d(87342),O=d(11630);const z=/[$_\p{ID_Start}]/u,W=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,_=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,M=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,pe=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ue={};function ne(E){return E?z.test(String.fromCodePoint(E)):!1}function Pe(E,F){const q=(F||ue).jsx?_:W;return E?q.test(String.fromCodePoint(E)):!1}function ke(E,F){return((F||ue).jsx?pe:M).test(E)}const rt=/[ \t\n\f\r]/g;function Ue(E){return typeof E=="object"?E.type==="text"?Ie(E.value):!1:Ie(E)}function Ie(E){return E.replace(rt,"")===""}var De=d(58222),Fe=d(84837);const de={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=d(71523),we=d(58970),ge=we.default||we,Te=d(17970);function ee(E){return!E||typeof E!="object"?"":"position"in E||"type"in E?Ne(E.position):"start"in E||"end"in E?Ne(E):"line"in E||"column"in E?Ce(E):""}function Ce(E){return Le(E&&E.line)+":"+Le(E&&E.column)}function Ne(E){return Ce(E&&E.start)+"-"+Ce(E&&E.end)}function Le(E){return E&&typeof E=="number"?E:1}class Ke extends Error{constructor(F,G,q){super(),typeof G=="string"&&(q=G,G=void 0);let he="",Ee={},$e=!1;if(G&&("line"in G&&"column"in G?Ee={place:G}:"start"in G&&"end"in G?Ee={place:G}:"type"in G?Ee={ancestors:[G],place:G.position}:Ee=Bo({},G)),typeof F=="string"?he=F:!Ee.cause&&F&&($e=!0,he=F.message,Ee.cause=F),!Ee.ruleId&&!Ee.source&&typeof q=="string"){const Ft=q.indexOf(":");Ft===-1?Ee.ruleId=q:(Ee.source=q.slice(0,Ft),Ee.ruleId=q.slice(Ft+1))}if(!Ee.place&&Ee.ancestors&&Ee.ancestors){const Ft=Ee.ancestors[Ee.ancestors.length-1];Ft&&(Ee.place=Ft.position)}const et=Ee.place&&"start"in Ee.place?Ee.place.start:Ee.place;this.ancestors=Ee.ancestors||void 0,this.cause=Ee.cause||void 0,this.column=et?et.column:void 0,this.fatal=void 0,this.file,this.message=he,this.line=et?et.line:void 0,this.name=ee(Ee.place)||"1:1",this.place=Ee.place||void 0,this.reason=this.message,this.ruleId=Ee.ruleId||void 0,this.source=Ee.source||void 0,this.stack=$e&&Ee.cause&&typeof Ee.cause.stack=="string"?Ee.cause.stack:"",this.actual,this.expected,this.note,this.url}}Ke.prototype.file="",Ke.prototype.name="",Ke.prototype.reason="",Ke.prototype.message="",Ke.prototype.stack="",Ke.prototype.column=void 0,Ke.prototype.line=void 0,Ke.prototype.ancestors=void 0,Ke.prototype.cause=void 0,Ke.prototype.fatal=void 0,Ke.prototype.place=void 0,Ke.prototype.ruleId=void 0,Ke.prototype.source=void 0;const nt={}.hasOwnProperty,ie=new Map,at=/[A-Z]/g,Ze=/-([a-z])/g,Bt=new Set(["table","tbody","thead","tfoot","tr"]),bt=new Set(["td","th"]),kt="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Tt(E,F){if(!F||F.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const G=F.filePath||void 0;let q;if(F.development){if(typeof F.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");q=On(G,F.jsxDEV)}else{if(typeof F.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof F.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");q=ui(G,F.jsx,F.jsxs)}const he={Fragment:F.Fragment,ancestors:[],components:F.components||{},create:q,elementAttributeNameCase:F.elementAttributeNameCase||"react",evaluater:F.createEvaluater?F.createEvaluater():void 0,filePath:G,ignoreInvalidStyle:F.ignoreInvalidStyle||!1,passKeys:F.passKeys!==!1,passNode:F.passNode||!1,schema:F.space==="svg"?De.YP:De.dy,stylePropertyNameCase:F.stylePropertyNameCase||"dom",tableCellAlignToStyle:F.tableCellAlignToStyle!==!1},Ee=wn(he,E,void 0);return Ee&&typeof Ee!="string"?Ee:he.create(E,he.Fragment,{children:Ee||void 0},void 0)}function wn(E,F,G){if(F.type==="element")return Xe(E,F,G);if(F.type==="mdxFlowExpression"||F.type==="mdxTextExpression")return se(E,F);if(F.type==="mdxJsxFlowElement"||F.type==="mdxJsxTextElement")return _t(E,F,G);if(F.type==="mdxjsEsm")return le(E,F);if(F.type==="root")return jt(E,F,G);if(F.type==="text")return yt(E,F)}function Xe(E,F,G){const q=E.schema;let he=q;F.tagName.toLowerCase()==="svg"&&q.space==="html"&&(he=De.YP,E.schema=he),E.ancestors.push(F);const Ee=P(E,F.tagName,!1),$e=ri(E,F);let et=Tn(E,F);return Bt.has(F.tagName)&&(et=et.filter(function(Ft){return typeof Ft=="string"?!Ue(Ft):!0})),ln(E,$e,Ee,F),Dt($e,et),E.ancestors.pop(),E.schema=q,E.create(F,Ee,$e,G)}function se(E,F){if(F.data&&F.data.estree&&E.evaluater){const q=F.data.estree.body[0];return(0,I.ok)(q.type==="ExpressionStatement"),E.evaluater.evaluateExpression(q.expression)}k(E,F.position)}function le(E,F){if(F.data&&F.data.estree&&E.evaluater)return E.evaluater.evaluateProgram(F.data.estree);k(E,F.position)}function _t(E,F,G){const q=E.schema;let he=q;F.name==="svg"&&q.space==="html"&&(he=De.YP,E.schema=he),E.ancestors.push(F);const Ee=F.name===null?E.Fragment:P(E,F.name,!0),$e=Xn(E,F),et=Tn(E,F);return ln(E,$e,Ee,F),Dt($e,et),E.ancestors.pop(),E.schema=q,E.create(F,Ee,$e,G)}function jt(E,F,G){const q={};return Dt(q,Tn(E,F)),E.create(F,E.Fragment,q,G)}function yt(E,F){return F.value}function ln(E,F,G,q){typeof G!="string"&&G!==E.Fragment&&E.passNode&&(F.node=q)}function Dt(E,F){if(F.length>0){const G=F.length>1?F:F[0];G&&(E.children=G)}}function ui(E,F,G){return q;function q(he,Ee,$e,et){const At=Array.isArray($e.children)?G:F;return et?At(Ee,$e,et):At(Ee,$e)}}function On(E,F){return G;function G(q,he,Ee,$e){const et=Array.isArray(Ee.children),Ft=(0,Te.Pk)(q);return F(he,Ee,$e,et,{columnNumber:Ft?Ft.column-1:void 0,fileName:E,lineNumber:Ft?Ft.line:void 0},void 0)}}function ri(E,F){const G={};let q,he;for(he in F.properties)if(he!=="children"&&nt.call(F.properties,he)){const Ee=Nn(E,he,F.properties[he]);if(Ee){const[$e,et]=Ee;E.tableCellAlignToStyle&&$e==="align"&&typeof et=="string"&&bt.has(F.tagName)?q=et:G[$e]=et}}if(q){const Ee=G.style||(G.style={});Ee[E.stylePropertyNameCase==="css"?"text-align":"textAlign"]=q}return G}function Xn(E,F){const G={};for(const q of F.attributes)if(q.type==="mdxJsxExpressionAttribute")if(q.data&&q.data.estree&&E.evaluater){const Ee=q.data.estree.body[0];(0,I.ok)(Ee.type==="ExpressionStatement");const $e=Ee.expression;(0,I.ok)($e.type==="ObjectExpression");const et=$e.properties[0];(0,I.ok)(et.type==="SpreadElement"),Object.assign(G,E.evaluater.evaluateExpression(et.argument))}else k(E,F.position);else{const he=q.name;let Ee;if(q.value&&typeof q.value=="object")if(q.value.data&&q.value.data.estree&&E.evaluater){const et=q.value.data.estree.body[0];(0,I.ok)(et.type==="ExpressionStatement"),Ee=E.evaluater.evaluateExpression(et.expression)}else k(E,F.position);else Ee=q.value===null?!0:q.value;G[he]=Ee}return G}function Tn(E,F){const G=[];let q=-1;const he=E.passKeys?new Map:ie;for(;++q<F.children.length;){const Ee=F.children[q];let $e;if(E.passKeys){const Ft=Ee.type==="element"?Ee.tagName:Ee.type==="mdxJsxFlowElement"||Ee.type==="mdxJsxTextElement"?Ee.name:void 0;if(Ft){const At=he.get(Ft)||0;$e=Ft+"-"+At,he.set(Ft,At+1)}}const et=wn(E,Ee,$e);et!==void 0&&G.push(et)}return G}function Nn(E,F,G){const q=(0,Fe.s)(E.schema,F);if(!(G==null||typeof G=="number"&&Number.isNaN(G))){if(Array.isArray(G)&&(G=q.commaSeparated?(0,O.P)(G):(0,me.P)(G)),q.property==="style"){let he=typeof G=="object"?G:xe(E,String(G));return E.stylePropertyNameCase==="css"&&(he=j(he)),["style",he]}return[E.elementAttributeNameCase==="react"&&q.space?de[q.property]||q.property:q.attribute,G]}}function xe(E,F){const G={};try{ge(F,q)}catch(he){if(!E.ignoreInvalidStyle){const Ee=he,$e=new Ke("Cannot parse `style` attribute",{ancestors:E.ancestors,cause:Ee,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw $e.file=E.filePath||void 0,$e.url=kt+"#cannot-parse-style-attribute",$e}}return G;function q(he,Ee){let $e=he;$e.slice(0,2)!=="--"&&($e.slice(0,4)==="-ms-"&&($e="ms-"+$e.slice(4)),$e=$e.replace(Ze,N)),G[$e]=Ee}}function P(E,F,G){let q;if(!G)q={type:"Literal",value:F};else if(F.includes(".")){const he=F.split(".");let Ee=-1,$e;for(;++Ee<he.length;){const et=ke(he[Ee])?{type:"Identifier",name:he[Ee]}:{type:"Literal",value:he[Ee]};$e=$e?{type:"MemberExpression",object:$e,property:et,computed:!!(Ee&&et.type==="Literal"),optional:!1}:et}(0,I.ok)($e,"always a result"),q=$e}else q=ke(F)&&!/^[a-z]/.test(F)?{type:"Identifier",name:F}:{type:"Literal",value:F};if(q.type==="Literal"){const he=q.value;return nt.call(E.components,he)?E.components[he]:he}if(E.evaluater)return E.evaluater.evaluateExpression(q);k(E)}function k(E,F){const G=new Ke("Cannot handle MDX estrees without `createEvaluater`",{ancestors:E.ancestors,place:F,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw G.file=E.filePath||void 0,G.url=kt+"#cannot-handle-mdx-estrees-without-createevaluater",G}function j(E){const F={};let G;for(G in E)nt.call(E,G)&&(F[X(G)]=E[G]);return F}function X(E){let F=E.replace(at,Re);return F.slice(0,3)==="ms-"&&(F="-"+F),F}function N(E,F){return F.toUpperCase()}function Re(E){return"-"+E.toLowerCase()}const wt={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 ze=d(37712),Oe=d(59301);const mt={};function lt(E,F){const G=F||mt,q=typeof G.includeImageAlt=="boolean"?G.includeImageAlt:!0,he=typeof G.includeHtml=="boolean"?G.includeHtml:!0;return Qe(E,q,he)}function Qe(E,F,G){if(nn(E)){if("value"in E)return E.type==="html"&&!G?"":E.value;if(F&&"alt"in E&&E.alt)return E.alt;if("children"in E)return Ct(E.children,F,G)}return Array.isArray(E)?Ct(E,F,G):""}function Ct(E,F,G){const q=[];let he=-1;for(;++he<E.length;)q[he]=Qe(E[he],F,G);return q.join("")}function nn(E){return!!(E&&typeof E=="object")}function Yt(E,F,G,q){const he=E.length;let Ee=0,$e;if(F<0?F=-F>he?0:he+F:F=F>he?he:F,G=G>0?G:0,q.length<1e4)$e=Array.from(q),$e.unshift(F,G),E.splice(...$e);else for(G&&E.splice(F,G);Ee<q.length;)$e=q.slice(Ee,Ee+1e4),$e.unshift(F,0),E.splice(...$e),Ee+=1e4,F+=1e4}function Ot(E,F){return E.length>0?(Yt(E,E.length,0,F),E):F}class on{constructor(F){this.left=F?[...F]:[],this.right=[]}get(F){if(F<0||F>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+F+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return F<this.left.length?this.left[F]:this.right[this.right.length-F+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(F,G){const q=G==null?Number.POSITIVE_INFINITY:G;return q<this.left.length?this.left.slice(F,q):F>this.left.length?this.right.slice(this.right.length-q+this.left.length,this.right.length-F+this.left.length).reverse():this.left.slice(F).concat(this.right.slice(this.right.length-q+this.left.length).reverse())}splice(F,G,q){const he=G||0;this.setCursor(Math.trunc(F));const Ee=this.right.splice(this.right.length-he,Number.POSITIVE_INFINITY);return q&&hn(this.left,q),Ee.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(F){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(F)}pushMany(F){this.setCursor(Number.POSITIVE_INFINITY),hn(this.left,F)}unshift(F){this.setCursor(0),this.right.push(F)}unshiftMany(F){this.setCursor(0),hn(this.right,F.reverse())}setCursor(F){if(!(F===this.left.length||F>this.left.length&&this.right.length===0||F<0&&this.left.length===0))if(F<this.left.length){const G=this.left.splice(F,Number.POSITIVE_INFINITY);hn(this.right,G.reverse())}else{const G=this.right.splice(this.left.length+this.right.length-F,Number.POSITIVE_INFINITY);hn(this.left,G.reverse())}}}function hn(E,F){let G=0;if(F.length<1e4)E.push(...F);else for(;G<F.length;)E.push(...F.slice(G,G+1e4)),G+=1e4}function Ve(E){const F={};let G=-1,q,he,Ee,$e,et,Ft,At;const ct=new on(E);for(;++G<ct.length;){for(;G in F;)G=F[G];if(q=ct.get(G),G&&q[1].type==="chunkFlow"&&ct.get(G-1)[1].type==="listItemPrefix"&&(Ft=q[1]._tokenizer.events,Ee=0,Ee<Ft.length&&Ft[Ee][1].type==="lineEndingBlank"&&(Ee+=2),Ee<Ft.length&&Ft[Ee][1].type==="content"))for(;++Ee<Ft.length&&Ft[Ee][1].type!=="content";)Ft[Ee][1].type==="chunkText"&&(Ft[Ee][1]._isInFirstContentOfListItem=!0,Ee++);if(q[0]==="enter")q[1].contentType&&(Object.assign(F,Pt(ct,G)),G=F[G],At=!0);else if(q[1]._container){for(Ee=G,he=void 0;Ee--;)if($e=ct.get(Ee),$e[1].type==="lineEnding"||$e[1].type==="lineEndingBlank")$e[0]==="enter"&&(he&&(ct.get(he)[1].type="lineEndingBlank"),$e[1].type="lineEnding",he=Ee);else if($e[1].type!=="linePrefix")break;he&&(q[1].end=Bo({},ct.get(he)[1].start),et=ct.slice(he,G),et.unshift(q),ct.splice(he,G-he+1,et))}}return Yt(E,0,Number.POSITIVE_INFINITY,ct.slice(0)),!At}function Pt(E,F){const G=E.get(F)[1],q=E.get(F)[2];let he=F-1;const Ee=[],$e=G._tokenizer||q.parser[G.contentType](G.start),et=$e.events,Ft=[],At={};let ct,$t,Vt=-1,Rt=G,yi=0,si=0;const sr=[si];for(;Rt;){for(;E.get(++he)[1]!==Rt;);Ee.push(he),Rt._tokenizer||(ct=q.sliceStream(Rt),Rt.next||ct.push(null),$t&&$e.defineSkip(Rt.start),Rt._isInFirstContentOfListItem&&($e._gfmTasklistFirstContentOfListItem=!0),$e.write(ct),Rt._isInFirstContentOfListItem&&($e._gfmTasklistFirstContentOfListItem=void 0)),$t=Rt,Rt=Rt.next}for(Rt=G;++Vt<et.length;)et[Vt][0]==="exit"&&et[Vt-1][0]==="enter"&&et[Vt][1].type===et[Vt-1][1].type&&et[Vt][1].start.line!==et[Vt][1].end.line&&(si=Vt+1,sr.push(si),Rt._tokenizer=void 0,Rt.previous=void 0,Rt=Rt.next);for($e.events=[],Rt?(Rt._tokenizer=void 0,Rt.previous=void 0):sr.pop(),Vt=sr.length;Vt--;){const Si=et.slice(sr[Vt],sr[Vt+1]),Cr=Ee.pop();Ft.push([Cr,Cr+Si.length-1]),E.splice(Cr,2,Si)}for(Ft.reverse(),Vt=-1;++Vt<Ft.length;)At[yi+Ft[Vt][0]]=yi+Ft[Vt][1],yi+=Ft[Vt][1]-Ft[Vt][0]-1;return At}function Xt(E){for(;!Ve(E););return E}const qt={}.hasOwnProperty;function He(E){const F={};let G=-1;for(;++G<E.length;)Rn(F,E[G]);return F}function Rn(E,F){let G;for(G in F){const he=(qt.call(E,G)?E[G]:void 0)||(E[G]={}),Ee=F[G];let $e;if(Ee)for($e in Ee){qt.call(he,$e)||(he[$e]=[]);const et=Ee[$e];Cn(he[$e],Array.isArray(et)?et:et?[et]:[])}}}function Cn(E,F){let G=-1;const q=[];for(;++G<F.length;)(F[G].add==="after"?E:q).push(F[G]);Yt(E,0,0,q)}function Gn(E){const F={};let G=-1;for(;++G<E.length;)Ci(F,E[G]);return F}function Ci(E,F){let G;for(G in F){const he=(qt.call(E,G)?E[G]:void 0)||(E[G]={}),Ee=F[G];let $e;if(Ee)for($e in Ee)he[$e]=Ee[$e]}}var ci=d(26735),sn=d(80722);const rn={tokenize:cr};function cr(E){const F=E.attempt(this.parser.constructs.contentInitial,q,he);let G;return F;function q(et){if(et===null){E.consume(et);return}return E.enter("lineEnding"),E.consume(et),E.exit("lineEnding"),(0,ci.f)(E,F,"linePrefix")}function he(et){return E.enter("paragraph"),Ee(et)}function Ee(et){const Ft=E.enter("chunkText",{contentType:"text",previous:G});return G&&(G.next=Ft),G=Ft,$e(et)}function $e(et){if(et===null){E.exit("chunkText"),E.exit("paragraph"),E.consume(et);return}return(0,sn.Ch)(et)?(E.consume(et),E.exit("chunkText"),Ee):(E.consume(et),$e)}}const yr={tokenize:Mr},Zn={tokenize:rr};function Mr(E){const F=this,G=[];let q=0,he,Ee,$e;return et;function et(ji){if(q<G.length){const to=G[q];return F.containerState=to[1],E.attempt(to[0].continuation,Ft,At)(ji)}return At(ji)}function Ft(ji){if(q++,F.containerState._closeFlow){F.containerState._closeFlow=void 0,he&&Cr();const to=F.events.length;let oo=to,ei;for(;oo--;)if(F.events[oo][0]==="exit"&&F.events[oo][1].type==="chunkFlow"){ei=F.events[oo][1].end;break}Si(q);let Zi=to;for(;Zi<F.events.length;)F.events[Zi][1].end=Bo({},ei),Zi++;return Yt(F.events,oo+1,0,F.events.slice(to)),F.events.length=Zi,At(ji)}return et(ji)}function At(ji){if(q===G.length){if(!he)return Vt(ji);if(he.currentConstruct&&he.currentConstruct.concrete)return yi(ji);F.interrupt=!!(he.currentConstruct&&!he._gfmTableDynamicInterruptHack)}return F.containerState={},E.check(Zn,ct,$t)(ji)}function ct(ji){return he&&Cr(),Si(q),Vt(ji)}function $t(ji){return F.parser.lazy[F.now().line]=q!==G.length,$e=F.now().offset,yi(ji)}function Vt(ji){return F.containerState={},E.attempt(Zn,Rt,yi)(ji)}function Rt(ji){return q++,G.push([F.currentConstruct,F.containerState]),Vt(ji)}function yi(ji){if(ji===null){he&&Cr(),Si(0),E.consume(ji);return}return he=he||F.parser.flow(F.now()),E.enter("chunkFlow",{_tokenizer:he,contentType:"flow",previous:Ee}),si(ji)}function si(ji){if(ji===null){sr(E.exit("chunkFlow"),!0),Si(0),E.consume(ji);return}return(0,sn.Ch)(ji)?(E.consume(ji),sr(E.exit("chunkFlow")),q=0,F.interrupt=void 0,et):(E.consume(ji),si)}function sr(ji,to){const oo=F.sliceStream(ji);if(to&&oo.push(null),ji.previous=Ee,Ee&&(Ee.next=ji),Ee=ji,he.defineSkip(ji.start),he.write(oo),F.parser.lazy[ji.start.line]){let ei=he.events.length;for(;ei--;)if(he.events[ei][1].start.offset<$e&&(!he.events[ei][1].end||he.events[ei][1].end.offset>$e))return;const Zi=F.events.length;let Kr=Zi,Zr,Qr;for(;Kr--;)if(F.events[Kr][0]==="exit"&&F.events[Kr][1].type==="chunkFlow"){if(Zr){Qr=F.events[Kr][1].end;break}Zr=!0}for(Si(q),ei=Zi;ei<F.events.length;)F.events[ei][1].end=Bo({},Qr),ei++;Yt(F.events,Kr+1,0,F.events.slice(Zi)),F.events.length=ei}}function Si(ji){let to=G.length;for(;to-- >ji;){const oo=G[to];F.containerState=oo[1],oo[0].exit.call(F,E)}G.length=ji}function Cr(){he.write([null]),Ee=void 0,he=void 0,F.containerState._closeFlow=void 0}}function rr(E,F,G){return(0,ci.f)(E,E.attempt(this.parser.constructs.document,F,G),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const U={partial:!0,tokenize:mr};function mr(E,F,G){return q;function q(Ee){return(0,sn.xz)(Ee)?(0,ci.f)(E,he,"linePrefix")(Ee):he(Ee)}function he(Ee){return Ee===null||(0,sn.Ch)(Ee)?F(Ee):G(Ee)}}const lr={resolve:Hr,tokenize:uo},_r={partial:!0,tokenize:Tr};function Hr(E){return Ve(E),E}function uo(E,F){let G;return q;function q(et){return E.enter("content"),G=E.enter("chunkContent",{contentType:"content"}),he(et)}function he(et){return et===null?Ee(et):(0,sn.Ch)(et)?E.check(_r,$e,Ee)(et):(E.consume(et),he)}function Ee(et){return E.exit("chunkContent"),E.exit("content"),F(et)}function $e(et){return E.consume(et),E.exit("chunkContent"),G.next=E.enter("chunkContent",{contentType:"content",previous:G}),G=G.next,he}}function Tr(E,F,G){const q=this;return he;function he($e){return E.exit("chunkContent"),E.enter("lineEnding"),E.consume($e),E.exit("lineEnding"),(0,ci.f)(E,Ee,"linePrefix")}function Ee($e){if($e===null||(0,sn.Ch)($e))return G($e);const et=q.events[q.events.length-1];return!q.parser.constructs.disable.null.includes("codeIndented")&&et&&et[1].type==="linePrefix"&&et[2].sliceSerialize(et[1],!0).length>=4?F($e):E.interrupt(q.parser.constructs.flow,G,F)($e)}}const Jr={tokenize:fr};function fr(E){const F=this,G=E.attempt(U,q,E.attempt(this.parser.constructs.flowInitial,he,(0,ci.f)(E,E.attempt(this.parser.constructs.flow,he,E.attempt(lr,he)),"linePrefix")));return G;function q(Ee){if(Ee===null){E.consume(Ee);return}return E.enter("lineEndingBlank"),E.consume(Ee),E.exit("lineEndingBlank"),F.currentConstruct=void 0,G}function he(Ee){if(Ee===null){E.consume(Ee);return}return E.enter("lineEnding"),E.consume(Ee),E.exit("lineEnding"),F.currentConstruct=void 0,G}}const Xi={resolveAll:Hn()},di=_n("string"),ht=_n("text");function _n(E){return{resolveAll:Hn(E==="text"?gt:void 0),tokenize:F};function F(G){const q=this,he=this.parser.constructs[E],Ee=G.attempt(he,$e,et);return $e;function $e(ct){return At(ct)?Ee(ct):et(ct)}function et(ct){if(ct===null){G.consume(ct);return}return G.enter("data"),G.consume(ct),Ft}function Ft(ct){return At(ct)?(G.exit("data"),Ee(ct)):(G.consume(ct),Ft)}function At(ct){if(ct===null)return!0;const $t=he[ct];let Vt=-1;if($t)for(;++Vt<$t.length;){const Rt=$t[Vt];if(!Rt.previous||Rt.previous.call(q,q.previous))return!0}return!1}}}function Hn(E){return F;function F(G,q){let he=-1,Ee;for(;++he<=G.length;)Ee===void 0?G[he]&&G[he][1].type==="data"&&(Ee=he,he++):(!G[he]||G[he][1].type!=="data")&&(he!==Ee+2&&(G[Ee][1].end=G[he-1][1].end,G.splice(Ee+2,he-Ee-2),he=Ee+2),Ee=void 0);return E?E(G,q):G}}function gt(E,F){let G=0;for(;++G<=E.length;)if((G===E.length||E[G][1].type==="lineEnding")&&E[G-1][1].type==="data"){const q=E[G-1][1],he=F.sliceStream(q);let Ee=he.length,$e=-1,et=0,Ft;for(;Ee--;){const At=he[Ee];if(typeof At=="string"){for($e=At.length;At.charCodeAt($e-1)===32;)et++,$e--;if($e)break;$e=-1}else if(At===-2)Ft=!0,et++;else if(At!==-1){Ee++;break}}if(et){const At={type:G===E.length||Ft||et<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:Ee?$e:q.start._bufferIndex+$e,_index:q.start._index+Ee,line:q.end.line,column:q.end.column-et,offset:q.end.offset-et},end:Bo({},q.end)};q.end=Bo({},At.start),q.start.offset===q.end.offset?Object.assign(q,At):(E.splice(G,0,["enter",At,F],["exit",At,F]),G+=2)}G++}return E}const Ge={name:"thematicBreak",tokenize:fn};function fn(E,F,G){let q=0,he;return Ee;function Ee(At){return E.enter("thematicBreak"),$e(At)}function $e(At){return he=At,et(At)}function et(At){return At===he?(E.enter("thematicBreakSequence"),Ft(At)):q>=3&&(At===null||(0,sn.Ch)(At))?(E.exit("thematicBreak"),F(At)):G(At)}function Ft(At){return At===he?(E.consume(At),q++,Ft):(E.exit("thematicBreakSequence"),(0,sn.xz)(At)?(0,ci.f)(E,et,"whitespace")(At):et(At))}}const Sn={continuation:{tokenize:gn},exit:xi,name:"list",tokenize:pt},ti={partial:!0,tokenize:ft},Kn={partial:!0,tokenize:tn};function pt(E,F,G){const q=this,he=q.events[q.events.length-1];let Ee=he&&he[1].type==="linePrefix"?he[2].sliceSerialize(he[1],!0).length:0,$e=0;return et;function et(Rt){const yi=q.containerState.type||(Rt===42||Rt===43||Rt===45?"listUnordered":"listOrdered");if(yi==="listUnordered"?!q.containerState.marker||Rt===q.containerState.marker:(0,sn.pY)(Rt)){if(q.containerState.type||(q.containerState.type=yi,E.enter(yi,{_container:!0})),yi==="listUnordered")return E.enter("listItemPrefix"),Rt===42||Rt===45?E.check(Ge,G,At)(Rt):At(Rt);if(!q.interrupt||Rt===49)return E.enter("listItemPrefix"),E.enter("listItemValue"),Ft(Rt)}return G(Rt)}function Ft(Rt){return(0,sn.pY)(Rt)&&++$e<10?(E.consume(Rt),Ft):(!q.interrupt||$e<2)&&(q.containerState.marker?Rt===q.containerState.marker:Rt===41||Rt===46)?(E.exit("listItemValue"),At(Rt)):G(Rt)}function At(Rt){return E.enter("listItemMarker"),E.consume(Rt),E.exit("listItemMarker"),q.containerState.marker=q.containerState.marker||Rt,E.check(U,q.interrupt?G:ct,E.attempt(ti,Vt,$t))}function ct(Rt){return q.containerState.initialBlankLine=!0,Ee++,Vt(Rt)}function $t(Rt){return(0,sn.xz)(Rt)?(E.enter("listItemPrefixWhitespace"),E.consume(Rt),E.exit("listItemPrefixWhitespace"),Vt):G(Rt)}function Vt(Rt){return q.containerState.size=Ee+q.sliceSerialize(E.exit("listItemPrefix"),!0).length,F(Rt)}}function gn(E,F,G){const q=this;return q.containerState._closeFlow=void 0,E.check(U,he,Ee);function he(et){return q.containerState.furtherBlankLines=q.containerState.furtherBlankLines||q.containerState.initialBlankLine,(0,ci.f)(E,F,"listItemIndent",q.containerState.size+1)(et)}function Ee(et){return q.containerState.furtherBlankLines||!(0,sn.xz)(et)?(q.containerState.furtherBlankLines=void 0,q.containerState.initialBlankLine=void 0,$e(et)):(q.containerState.furtherBlankLines=void 0,q.containerState.initialBlankLine=void 0,E.attempt(Kn,F,$e)(et))}function $e(et){return q.containerState._closeFlow=!0,q.interrupt=void 0,(0,ci.f)(E,E.attempt(Sn,F,G),"linePrefix",q.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(et)}}function tn(E,F,G){const q=this;return(0,ci.f)(E,he,"listItemIndent",q.containerState.size+1);function he(Ee){const $e=q.events[q.events.length-1];return $e&&$e[1].type==="listItemIndent"&&$e[2].sliceSerialize($e[1],!0).length===q.containerState.size?F(Ee):G(Ee)}}function xi(E){E.exit(this.containerState.type)}function ft(E,F,G){const q=this;return(0,ci.f)(E,he,"listItemPrefixWhitespace",q.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function he(Ee){const $e=q.events[q.events.length-1];return!(0,sn.xz)(Ee)&&$e&&$e[1].type==="listItemPrefixWhitespace"?F(Ee):G(Ee)}}const Fn={continuation:{tokenize:qe},exit:D,name:"blockQuote",tokenize:Mt};function Mt(E,F,G){const q=this;return he;function he($e){if($e===62){const et=q.containerState;return et.open||(E.enter("blockQuote",{_container:!0}),et.open=!0),E.enter("blockQuotePrefix"),E.enter("blockQuoteMarker"),E.consume($e),E.exit("blockQuoteMarker"),Ee}return G($e)}function Ee($e){return(0,sn.xz)($e)?(E.enter("blockQuotePrefixWhitespace"),E.consume($e),E.exit("blockQuotePrefixWhitespace"),E.exit("blockQuotePrefix"),F):(E.exit("blockQuotePrefix"),F($e))}}function qe(E,F,G){const q=this;return he;function he($e){return(0,sn.xz)($e)?(0,ci.f)(E,Ee,"linePrefix",q.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($e):Ee($e)}function Ee($e){return E.attempt(Fn,F,G)($e)}}function D(E){E.exit("blockQuote")}function Gt(E,F,G,q,he,Ee,$e,et,Ft){const At=Ft||Number.POSITIVE_INFINITY;let ct=0;return $t;function $t(Si){return Si===60?(E.enter(q),E.enter(he),E.enter(Ee),E.consume(Si),E.exit(Ee),Vt):Si===null||Si===32||Si===41||(0,sn.Av)(Si)?G(Si):(E.enter(q),E.enter($e),E.enter(et),E.enter("chunkString",{contentType:"string"}),si(Si))}function Vt(Si){return Si===62?(E.enter(Ee),E.consume(Si),E.exit(Ee),E.exit(he),E.exit(q),F):(E.enter(et),E.enter("chunkString",{contentType:"string"}),Rt(Si))}function Rt(Si){return Si===62?(E.exit("chunkString"),E.exit(et),Vt(Si)):Si===null||Si===60||(0,sn.Ch)(Si)?G(Si):(E.consume(Si),Si===92?yi:Rt)}function yi(Si){return Si===60||Si===62||Si===92?(E.consume(Si),Rt):Rt(Si)}function si(Si){return!ct&&(Si===null||Si===41||(0,sn.z3)(Si))?(E.exit("chunkString"),E.exit(et),E.exit($e),E.exit(q),F(Si)):ct<At&&Si===40?(E.consume(Si),ct++,si):Si===41?(E.consume(Si),ct--,si):Si===null||Si===32||Si===40||(0,sn.Av)(Si)?G(Si):(E.consume(Si),Si===92?sr:si)}function sr(Si){return Si===40||Si===41||Si===92?(E.consume(Si),si):si(Si)}}function dn(E,F,G,q,he,Ee){const $e=this;let et=0,Ft;return At;function At(Rt){return E.enter(q),E.enter(he),E.consume(Rt),E.exit(he),E.enter(Ee),ct}function ct(Rt){return et>999||Rt===null||Rt===91||Rt===93&&!Ft||Rt===94&&!et&&"_hiddenFootnoteSupport"in $e.parser.constructs?G(Rt):Rt===93?(E.exit(Ee),E.enter(he),E.consume(Rt),E.exit(he),E.exit(q),F):(0,sn.Ch)(Rt)?(E.enter("lineEnding"),E.consume(Rt),E.exit("lineEnding"),ct):(E.enter("chunkString",{contentType:"string"}),$t(Rt))}function $t(Rt){return Rt===null||Rt===91||Rt===93||(0,sn.Ch)(Rt)||et++>999?(E.exit("chunkString"),ct(Rt)):(E.consume(Rt),Ft||(Ft=!(0,sn.xz)(Rt)),Rt===92?Vt:$t)}function Vt(Rt){return Rt===91||Rt===92||Rt===93?(E.consume(Rt),et++,$t):$t(Rt)}}function xt(E,F,G,q,he,Ee){let $e;return et;function et(Vt){return Vt===34||Vt===39||Vt===40?(E.enter(q),E.enter(he),E.consume(Vt),E.exit(he),$e=Vt===40?41:Vt,Ft):G(Vt)}function Ft(Vt){return Vt===$e?(E.enter(he),E.consume(Vt),E.exit(he),E.exit(q),F):(E.enter(Ee),At(Vt))}function At(Vt){return Vt===$e?(E.exit(Ee),Ft($e)):Vt===null?G(Vt):(0,sn.Ch)(Vt)?(E.enter("lineEnding"),E.consume(Vt),E.exit("lineEnding"),(0,ci.f)(E,At,"linePrefix")):(E.enter("chunkString",{contentType:"string"}),ct(Vt))}function ct(Vt){return Vt===$e||Vt===null||(0,sn.Ch)(Vt)?(E.exit("chunkString"),At(Vt)):(E.consume(Vt),Vt===92?$t:ct)}function $t(Vt){return Vt===$e||Vt===92?(E.consume(Vt),ct):ct(Vt)}}function En(E,F){let G;return q;function q(he){return(0,sn.Ch)(he)?(E.enter("lineEnding"),E.consume(he),E.exit("lineEnding"),G=!0,q):(0,sn.xz)(he)?(0,ci.f)(E,q,G?"linePrefix":"lineSuffix")(he):F(he)}}function Mn(E){return E.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ki={name:"definition",tokenize:ot},Un={partial:!0,tokenize:Bi};function ot(E,F,G){const q=this;let he;return Ee;function Ee(Rt){return E.enter("definition"),$e(Rt)}function $e(Rt){return dn.call(q,E,et,G,"definitionLabel","definitionLabelMarker","definitionLabelString")(Rt)}function et(Rt){return he=Mn(q.sliceSerialize(q.events[q.events.length-1][1]).slice(1,-1)),Rt===58?(E.enter("definitionMarker"),E.consume(Rt),E.exit("definitionMarker"),Ft):G(Rt)}function Ft(Rt){return(0,sn.z3)(Rt)?En(E,At)(Rt):At(Rt)}function At(Rt){return Gt(E,ct,G,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(Rt)}function ct(Rt){return E.attempt(Un,$t,$t)(Rt)}function $t(Rt){return(0,sn.xz)(Rt)?(0,ci.f)(E,Vt,"whitespace")(Rt):Vt(Rt)}function Vt(Rt){return Rt===null||(0,sn.Ch)(Rt)?(E.exit("definition"),q.parser.defined.push(he),F(Rt)):G(Rt)}}function Bi(E,F,G){return q;function q(et){return(0,sn.z3)(et)?En(E,he)(et):G(et)}function he(et){return xt(E,Ee,G,"definitionTitle","definitionTitleMarker","definitionTitleString")(et)}function Ee(et){return(0,sn.xz)(et)?(0,ci.f)(E,$e,"whitespace")(et):$e(et)}function $e(et){return et===null||(0,sn.Ch)(et)?F(et):G(et)}}const hr={name:"codeIndented",tokenize:Qi},Kt={partial:!0,tokenize:J};function Qi(E,F,G){const q=this;return he;function he(At){return E.enter("codeIndented"),(0,ci.f)(E,Ee,"linePrefix",5)(At)}function Ee(At){const ct=q.events[q.events.length-1];return ct&&ct[1].type==="linePrefix"&&ct[2].sliceSerialize(ct[1],!0).length>=4?$e(At):G(At)}function $e(At){return At===null?Ft(At):(0,sn.Ch)(At)?E.attempt(Kt,$e,Ft)(At):(E.enter("codeFlowValue"),et(At))}function et(At){return At===null||(0,sn.Ch)(At)?(E.exit("codeFlowValue"),$e(At)):(E.consume(At),et)}function Ft(At){return E.exit("codeIndented"),F(At)}}function J(E,F,G){const q=this;return he;function he($e){return q.parser.lazy[q.now().line]?G($e):(0,sn.Ch)($e)?(E.enter("lineEnding"),E.consume($e),E.exit("lineEnding"),he):(0,ci.f)(E,Ee,"linePrefix",5)($e)}function Ee($e){const et=q.events[q.events.length-1];return et&&et[1].type==="linePrefix"&&et[2].sliceSerialize(et[1],!0).length>=4?F($e):(0,sn.Ch)($e)?he($e):G($e)}}const ae={name:"headingAtx",resolve:Yn,tokenize:_e};function Yn(E,F){let G=E.length-2,q=3,he,Ee;return E[q][1].type==="whitespace"&&(q+=2),G-2>q&&E[G][1].type==="whitespace"&&(G-=2),E[G][1].type==="atxHeadingSequence"&&(q===G-1||G-4>q&&E[G-2][1].type==="whitespace")&&(G-=q+1===G?2:4),G>q&&(he={type:"atxHeadingText",start:E[q][1].start,end:E[G][1].end},Ee={type:"chunkText",start:E[q][1].start,end:E[G][1].end,contentType:"text"},Yt(E,q,G-q+1,[["enter",he,F],["enter",Ee,F],["exit",Ee,F],["exit",he,F]])),E}function _e(E,F,G){let q=0;return he;function he(ct){return E.enter("atxHeading"),Ee(ct)}function Ee(ct){return E.enter("atxHeadingSequence"),$e(ct)}function $e(ct){return ct===35&&q++<6?(E.consume(ct),$e):ct===null||(0,sn.z3)(ct)?(E.exit("atxHeadingSequence"),et(ct)):G(ct)}function et(ct){return ct===35?(E.enter("atxHeadingSequence"),Ft(ct)):ct===null||(0,sn.Ch)(ct)?(E.exit("atxHeading"),F(ct)):(0,sn.xz)(ct)?(0,ci.f)(E,et,"whitespace")(ct):(E.enter("atxHeadingText"),At(ct))}function Ft(ct){return ct===35?(E.consume(ct),Ft):(E.exit("atxHeadingSequence"),et(ct))}function At(ct){return ct===null||ct===35||(0,sn.z3)(ct)?(E.exit("atxHeadingText"),et(ct)):(E.consume(ct),At)}}const Et={name:"setextUnderline",resolveTo:Ni,tokenize:Pn};function Ni(E,F){let G=E.length,q,he,Ee;for(;G--;)if(E[G][0]==="enter"){if(E[G][1].type==="content"){q=G;break}E[G][1].type==="paragraph"&&(he=G)}else E[G][1].type==="content"&&E.splice(G,1),!Ee&&E[G][1].type==="definition"&&(Ee=G);const $e={type:"setextHeading",start:Bo({},E[he][1].start),end:Bo({},E[E.length-1][1].end)};return E[he][1].type="setextHeadingText",Ee?(E.splice(he,0,["enter",$e,F]),E.splice(Ee+1,0,["exit",E[q][1],F]),E[q][1].end=Bo({},E[Ee][1].end)):E[q][1]=$e,E.push(["exit",$e,F]),E}function Pn(E,F,G){const q=this;let he;return Ee;function Ee(At){let ct=q.events.length,$t;for(;ct--;)if(q.events[ct][1].type!=="lineEnding"&&q.events[ct][1].type!=="linePrefix"&&q.events[ct][1].type!=="content"){$t=q.events[ct][1].type==="paragraph";break}return!q.parser.lazy[q.now().line]&&(q.interrupt||$t)?(E.enter("setextHeadingLine"),he=At,$e(At)):G(At)}function $e(At){return E.enter("setextHeadingLineSequence"),et(At)}function et(At){return At===he?(E.consume(At),et):(E.exit("setextHeadingLineSequence"),(0,sn.xz)(At)?(0,ci.f)(E,Ft,"lineSuffix")(At):Ft(At))}function Ft(At){return At===null||(0,sn.Ch)(At)?(E.exit("setextHeadingLine"),F(At)):G(At)}}const Ki=["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"],Zt=["pre","script","style","textarea"],Ii={concrete:!0,name:"htmlFlow",resolveTo:io,tokenize:It},Wt={partial:!0,tokenize:Jt},Yi={partial:!0,tokenize:Mo};function io(E){let F=E.length;for(;F--&&!(E[F][0]==="enter"&&E[F][1].type==="htmlFlow"););return F>1&&E[F-2][1].type==="linePrefix"&&(E[F][1].start=E[F-2][1].start,E[F+1][1].start=E[F-2][1].start,E.splice(F-2,2)),E}function It(E,F,G){const q=this;let he,Ee,$e,et,Ft;return At;function At(vn){return ct(vn)}function ct(vn){return E.enter("htmlFlow"),E.enter("htmlFlowData"),E.consume(vn),$t}function $t(vn){return vn===33?(E.consume(vn),Vt):vn===47?(E.consume(vn),Ee=!0,si):vn===63?(E.consume(vn),he=3,q.interrupt?F:Qt):(0,sn.jv)(vn)?(E.consume(vn),$e=String.fromCharCode(vn),sr):G(vn)}function Vt(vn){return vn===45?(E.consume(vn),he=2,Rt):vn===91?(E.consume(vn),he=5,et=0,yi):(0,sn.jv)(vn)?(E.consume(vn),he=4,q.interrupt?F:Qt):G(vn)}function Rt(vn){return vn===45?(E.consume(vn),q.interrupt?F:Qt):G(vn)}function yi(vn){const co="CDATA[";return vn===co.charCodeAt(et++)?(E.consume(vn),et===co.length?q.interrupt?F:tr:yi):G(vn)}function si(vn){return(0,sn.jv)(vn)?(E.consume(vn),$e=String.fromCharCode(vn),sr):G(vn)}function sr(vn){if(vn===null||vn===47||vn===62||(0,sn.z3)(vn)){const co=vn===47,Ds=$e.toLowerCase();return!co&&!Ee&&Zt.includes(Ds)?(he=1,q.interrupt?F(vn):tr(vn)):Ki.includes($e.toLowerCase())?(he=6,co?(E.consume(vn),Si):q.interrupt?F(vn):tr(vn)):(he=7,q.interrupt&&!q.parser.lazy[q.now().line]?G(vn):Ee?Cr(vn):ji(vn))}return vn===45||(0,sn.H$)(vn)?(E.consume(vn),$e+=String.fromCharCode(vn),sr):G(vn)}function Si(vn){return vn===62?(E.consume(vn),q.interrupt?F:tr):G(vn)}function Cr(vn){return(0,sn.xz)(vn)?(E.consume(vn),Cr):Qr(vn)}function ji(vn){return vn===47?(E.consume(vn),Qr):vn===58||vn===95||(0,sn.jv)(vn)?(E.consume(vn),to):(0,sn.xz)(vn)?(E.consume(vn),ji):Qr(vn)}function to(vn){return vn===45||vn===46||vn===58||vn===95||(0,sn.H$)(vn)?(E.consume(vn),to):oo(vn)}function oo(vn){return vn===61?(E.consume(vn),ei):(0,sn.xz)(vn)?(E.consume(vn),oo):ji(vn)}function ei(vn){return vn===null||vn===60||vn===61||vn===62||vn===96?G(vn):vn===34||vn===39?(E.consume(vn),Ft=vn,Zi):(0,sn.xz)(vn)?(E.consume(vn),ei):Kr(vn)}function Zi(vn){return vn===Ft?(E.consume(vn),Ft=null,Zr):vn===null||(0,sn.Ch)(vn)?G(vn):(E.consume(vn),Zi)}function Kr(vn){return vn===null||vn===34||vn===39||vn===47||vn===60||vn===61||vn===62||vn===96||(0,sn.z3)(vn)?oo(vn):(E.consume(vn),Kr)}function Zr(vn){return vn===47||vn===62||(0,sn.xz)(vn)?ji(vn):G(vn)}function Qr(vn){return vn===62?(E.consume(vn),No):G(vn)}function No(vn){return vn===null||(0,sn.Ch)(vn)?tr(vn):(0,sn.xz)(vn)?(E.consume(vn),No):G(vn)}function tr(vn){return vn===45&&he===2?(E.consume(vn),jr):vn===60&&he===1?(E.consume(vn),Wi):vn===62&&he===4?(E.consume(vn),ms):vn===63&&he===3?(E.consume(vn),Qt):vn===93&&he===5?(E.consume(vn),so):(0,sn.Ch)(vn)&&(he===6||he===7)?(E.exit("htmlFlowData"),E.check(Wt,gs,Ai)(vn)):vn===null||(0,sn.Ch)(vn)?(E.exit("htmlFlowData"),Ai(vn)):(E.consume(vn),tr)}function Ai(vn){return E.check(Yi,Gi,gs)(vn)}function Gi(vn){return E.enter("lineEnding"),E.consume(vn),E.exit("lineEnding"),Mi}function Mi(vn){return vn===null||(0,sn.Ch)(vn)?Ai(vn):(E.enter("htmlFlowData"),tr(vn))}function jr(vn){return vn===45?(E.consume(vn),Qt):tr(vn)}function Wi(vn){return vn===47?(E.consume(vn),$e="",Lr):tr(vn)}function Lr(vn){if(vn===62){const co=$e.toLowerCase();return Zt.includes(co)?(E.consume(vn),ms):tr(vn)}return(0,sn.jv)(vn)&&$e.length<8?(E.consume(vn),$e+=String.fromCharCode(vn),Lr):tr(vn)}function so(vn){return vn===93?(E.consume(vn),Qt):tr(vn)}function Qt(vn){return vn===62?(E.consume(vn),ms):vn===45&&he===2?(E.consume(vn),Qt):tr(vn)}function ms(vn){return vn===null||(0,sn.Ch)(vn)?(E.exit("htmlFlowData"),gs(vn)):(E.consume(vn),ms)}function gs(vn){return E.exit("htmlFlow"),F(vn)}}function Mo(E,F,G){const q=this;return he;function he($e){return(0,sn.Ch)($e)?(E.enter("lineEnding"),E.consume($e),E.exit("lineEnding"),Ee):G($e)}function Ee($e){return q.parser.lazy[q.now().line]?G($e):F($e)}}function Jt(E,F,G){return q;function q(he){return E.enter("lineEnding"),E.consume(he),E.exit("lineEnding"),E.attempt(U,F,G)}}const _i={partial:!0,tokenize:Or},Li={concrete:!0,name:"codeFenced",tokenize:Sr};function Sr(E,F,G){const q=this,he={partial:!0,tokenize:oo};let Ee=0,$e=0,et;return Ft;function Ft(ei){return At(ei)}function At(ei){const Zi=q.events[q.events.length-1];return Ee=Zi&&Zi[1].type==="linePrefix"?Zi[2].sliceSerialize(Zi[1],!0).length:0,et=ei,E.enter("codeFenced"),E.enter("codeFencedFence"),E.enter("codeFencedFenceSequence"),ct(ei)}function ct(ei){return ei===et?($e++,E.consume(ei),ct):$e<3?G(ei):(E.exit("codeFencedFenceSequence"),(0,sn.xz)(ei)?(0,ci.f)(E,$t,"whitespace")(ei):$t(ei))}function $t(ei){return ei===null||(0,sn.Ch)(ei)?(E.exit("codeFencedFence"),q.interrupt?F(ei):E.check(_i,si,to)(ei)):(E.enter("codeFencedFenceInfo"),E.enter("chunkString",{contentType:"string"}),Vt(ei))}function Vt(ei){return ei===null||(0,sn.Ch)(ei)?(E.exit("chunkString"),E.exit("codeFencedFenceInfo"),$t(ei)):(0,sn.xz)(ei)?(E.exit("chunkString"),E.exit("codeFencedFenceInfo"),(0,ci.f)(E,Rt,"whitespace")(ei)):ei===96&&ei===et?G(ei):(E.consume(ei),Vt)}function Rt(ei){return ei===null||(0,sn.Ch)(ei)?$t(ei):(E.enter("codeFencedFenceMeta"),E.enter("chunkString",{contentType:"string"}),yi(ei))}function yi(ei){return ei===null||(0,sn.Ch)(ei)?(E.exit("chunkString"),E.exit("codeFencedFenceMeta"),$t(ei)):ei===96&&ei===et?G(ei):(E.consume(ei),yi)}function si(ei){return E.attempt(he,to,sr)(ei)}function sr(ei){return E.enter("lineEnding"),E.consume(ei),E.exit("lineEnding"),Si}function Si(ei){return Ee>0&&(0,sn.xz)(ei)?(0,ci.f)(E,Cr,"linePrefix",Ee+1)(ei):Cr(ei)}function Cr(ei){return ei===null||(0,sn.Ch)(ei)?E.check(_i,si,to)(ei):(E.enter("codeFlowValue"),ji(ei))}function ji(ei){return ei===null||(0,sn.Ch)(ei)?(E.exit("codeFlowValue"),Cr(ei)):(E.consume(ei),ji)}function to(ei){return E.exit("codeFenced"),F(ei)}function oo(ei,Zi,Kr){let Zr=0;return Qr;function Qr(Mi){return ei.enter("lineEnding"),ei.consume(Mi),ei.exit("lineEnding"),No}function No(Mi){return ei.enter("codeFencedFence"),(0,sn.xz)(Mi)?(0,ci.f)(ei,tr,"linePrefix",q.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Mi):tr(Mi)}function tr(Mi){return Mi===et?(ei.enter("codeFencedFenceSequence"),Ai(Mi)):Kr(Mi)}function Ai(Mi){return Mi===et?(Zr++,ei.consume(Mi),Ai):Zr>=$e?(ei.exit("codeFencedFenceSequence"),(0,sn.xz)(Mi)?(0,ci.f)(ei,Gi,"whitespace")(Mi):Gi(Mi)):Kr(Mi)}function Gi(Mi){return Mi===null||(0,sn.Ch)(Mi)?(ei.exit("codeFencedFence"),Zi(Mi)):Kr(Mi)}}}function Or(E,F,G){const q=this;return he;function he($e){return $e===null?G($e):(E.enter("lineEnding"),E.consume($e),E.exit("lineEnding"),Ee)}function Ee($e){return q.parser.lazy[q.now().line]?G($e):F($e)}}const qn=document.createElement("i");function ce(E){const F="&"+E+";";qn.innerHTML=F;const G=qn.textContent;return G.charCodeAt(G.length-1)===59&&E!=="semi"||G===F?!1:G}const Ar={name:"characterReference",tokenize:eo};function eo(E,F,G){const q=this;let he=0,Ee,$e;return et;function et($t){return E.enter("characterReference"),E.enter("characterReferenceMarker"),E.consume($t),E.exit("characterReferenceMarker"),Ft}function Ft($t){return $t===35?(E.enter("characterReferenceMarkerNumeric"),E.consume($t),E.exit("characterReferenceMarkerNumeric"),At):(E.enter("characterReferenceValue"),Ee=31,$e=sn.H$,ct($t))}function At($t){return $t===88||$t===120?(E.enter("characterReferenceMarkerHexadecimal"),E.consume($t),E.exit("characterReferenceMarkerHexadecimal"),E.enter("characterReferenceValue"),Ee=6,$e=sn.AF,ct):(E.enter("characterReferenceValue"),Ee=7,$e=sn.pY,ct($t))}function ct($t){if($t===59&&he){const Vt=E.exit("characterReferenceValue");return $e===sn.H$&&!ce(q.sliceSerialize(Vt))?G($t):(E.enter("characterReferenceMarker"),E.consume($t),E.exit("characterReferenceMarker"),E.exit("characterReference"),F)}return $e($t)&&he++<Ee?(E.consume($t),ct):G($t)}}const br={name:"characterEscape",tokenize:fo};function fo(E,F,G){return q;function q(Ee){return E.enter("characterEscape"),E.enter("escapeMarker"),E.consume(Ee),E.exit("escapeMarker"),he}function he(Ee){return(0,sn.sR)(Ee)?(E.enter("characterEscapeValue"),E.consume(Ee),E.exit("characterEscapeValue"),E.exit("characterEscape"),F):G(Ee)}}const qi={name:"lineEnding",tokenize:Xr};function Xr(E,F){return G;function G(q){return E.enter("lineEnding"),E.consume(q),E.exit("lineEnding"),(0,ci.f)(E,F,"linePrefix")}}function Ri(E,F,G){const q=[];let he=-1;for(;++he<E.length;){const Ee=E[he].resolveAll;Ee&&!q.includes(Ee)&&(F=Ee(F,G),q.push(Ee))}return F}const Vi={name:"labelEnd",resolveAll:wo,resolveTo:Ko,tokenize:mi},Hi={tokenize:Rs},$r={tokenize:fs},Vr={tokenize:cs};function wo(E){let F=-1;const G=[];for(;++F<E.length;){const q=E[F][1];if(G.push(E[F]),q.type==="labelImage"||q.type==="labelLink"||q.type==="labelEnd"){const he=q.type==="labelImage"?4:2;q.type="data",F+=he}}return E.length!==G.length&&Yt(E,0,E.length,G),E}function Ko(E,F){let G=E.length,q=0,he,Ee,$e,et;for(;G--;)if(he=E[G][1],Ee){if(he.type==="link"||he.type==="labelLink"&&he._inactive)break;E[G][0]==="enter"&&he.type==="labelLink"&&(he._inactive=!0)}else if($e){if(E[G][0]==="enter"&&(he.type==="labelImage"||he.type==="labelLink")&&!he._balanced&&(Ee=G,he.type!=="labelLink")){q=2;break}}else he.type==="labelEnd"&&($e=G);const Ft={type:E[Ee][1].type==="labelLink"?"link":"image",start:Bo({},E[Ee][1].start),end:Bo({},E[E.length-1][1].end)},At={type:"label",start:Bo({},E[Ee][1].start),end:Bo({},E[$e][1].end)},ct={type:"labelText",start:Bo({},E[Ee+q+2][1].end),end:Bo({},E[$e-2][1].start)};return et=[["enter",Ft,F],["enter",At,F]],et=Ot(et,E.slice(Ee+1,Ee+q+3)),et=Ot(et,[["enter",ct,F]]),et=Ot(et,Ri(F.parser.constructs.insideSpan.null,E.slice(Ee+q+4,$e-3),F)),et=Ot(et,[["exit",ct,F],E[$e-2],E[$e-1],["exit",At,F]]),et=Ot(et,E.slice($e+1)),et=Ot(et,[["exit",Ft,F]]),Yt(E,Ee,E.length,et),E}function mi(E,F,G){const q=this;let he=q.events.length,Ee,$e;for(;he--;)if((q.events[he][1].type==="labelImage"||q.events[he][1].type==="labelLink")&&!q.events[he][1]._balanced){Ee=q.events[he][1];break}return et;function et(Vt){return Ee?Ee._inactive?$t(Vt):($e=q.parser.defined.includes(Mn(q.sliceSerialize({start:Ee.end,end:q.now()}))),E.enter("labelEnd"),E.enter("labelMarker"),E.consume(Vt),E.exit("labelMarker"),E.exit("labelEnd"),Ft):G(Vt)}function Ft(Vt){return Vt===40?E.attempt(Hi,ct,$e?ct:$t)(Vt):Vt===91?E.attempt($r,ct,$e?At:$t)(Vt):$e?ct(Vt):$t(Vt)}function At(Vt){return E.attempt(Vr,ct,$t)(Vt)}function ct(Vt){return F(Vt)}function $t(Vt){return Ee._balanced=!0,G(Vt)}}function Rs(E,F,G){return q;function q($t){return E.enter("resource"),E.enter("resourceMarker"),E.consume($t),E.exit("resourceMarker"),he}function he($t){return(0,sn.z3)($t)?En(E,Ee)($t):Ee($t)}function Ee($t){return $t===41?ct($t):Gt(E,$e,et,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)($t)}function $e($t){return(0,sn.z3)($t)?En(E,Ft)($t):ct($t)}function et($t){return G($t)}function Ft($t){return $t===34||$t===39||$t===40?xt(E,At,G,"resourceTitle","resourceTitleMarker","resourceTitleString")($t):ct($t)}function At($t){return(0,sn.z3)($t)?En(E,ct)($t):ct($t)}function ct($t){return $t===41?(E.enter("resourceMarker"),E.consume($t),E.exit("resourceMarker"),E.exit("resource"),F):G($t)}}function fs(E,F,G){const q=this;return he;function he(et){return dn.call(q,E,Ee,$e,"reference","referenceMarker","referenceString")(et)}function Ee(et){return q.parser.defined.includes(Mn(q.sliceSerialize(q.events[q.events.length-1][1]).slice(1,-1)))?F(et):G(et)}function $e(et){return G(et)}}function cs(E,F,G){return q;function q(Ee){return E.enter("reference"),E.enter("referenceMarker"),E.consume(Ee),E.exit("referenceMarker"),he}function he(Ee){return Ee===93?(E.enter("referenceMarker"),E.consume(Ee),E.exit("referenceMarker"),E.exit("reference"),F):G(Ee)}}const Bs={name:"labelStartImage",resolveAll:Vi.resolveAll,tokenize:ca};function ca(E,F,G){const q=this;return he;function he(et){return E.enter("labelImage"),E.enter("labelImageMarker"),E.consume(et),E.exit("labelImageMarker"),Ee}function Ee(et){return et===91?(E.enter("labelMarker"),E.consume(et),E.exit("labelMarker"),E.exit("labelImage"),$e):G(et)}function $e(et){return et===94&&"_hiddenFootnoteSupport"in q.parser.constructs?G(et):F(et)}}function Ya(E){if(E===null||(0,sn.z3)(E)||(0,sn.B8)(E))return 1;if((0,sn.Xh)(E))return 2}const ra={name:"attention",resolveAll:Ha,tokenize:ya};function Ha(E,F){let G=-1,q,he,Ee,$e,et,Ft,At,ct;for(;++G<E.length;)if(E[G][0]==="enter"&&E[G][1].type==="attentionSequence"&&E[G][1]._close){for(q=G;q--;)if(E[q][0]==="exit"&&E[q][1].type==="attentionSequence"&&E[q][1]._open&&F.sliceSerialize(E[q][1]).charCodeAt(0)===F.sliceSerialize(E[G][1]).charCodeAt(0)){if((E[q][1]._close||E[G][1]._open)&&(E[G][1].end.offset-E[G][1].start.offset)%3&&!((E[q][1].end.offset-E[q][1].start.offset+E[G][1].end.offset-E[G][1].start.offset)%3))continue;Ft=E[q][1].end.offset-E[q][1].start.offset>1&&E[G][1].end.offset-E[G][1].start.offset>1?2:1;const $t=Bo({},E[q][1].end),Vt=Bo({},E[G][1].start);ns($t,-Ft),ns(Vt,Ft),$e={type:Ft>1?"strongSequence":"emphasisSequence",start:$t,end:Bo({},E[q][1].end)},et={type:Ft>1?"strongSequence":"emphasisSequence",start:Bo({},E[G][1].start),end:Vt},Ee={type:Ft>1?"strongText":"emphasisText",start:Bo({},E[q][1].end),end:Bo({},E[G][1].start)},he={type:Ft>1?"strong":"emphasis",start:Bo({},$e.start),end:Bo({},et.end)},E[q][1].end=Bo({},$e.start),E[G][1].start=Bo({},et.end),At=[],E[q][1].end.offset-E[q][1].start.offset&&(At=Ot(At,[["enter",E[q][1],F],["exit",E[q][1],F]])),At=Ot(At,[["enter",he,F],["enter",$e,F],["exit",$e,F],["enter",Ee,F]]),At=Ot(At,Ri(F.parser.constructs.insideSpan.null,E.slice(q+1,G),F)),At=Ot(At,[["exit",Ee,F],["enter",et,F],["exit",et,F],["exit",he,F]]),E[G][1].end.offset-E[G][1].start.offset?(ct=2,At=Ot(At,[["enter",E[G][1],F],["exit",E[G][1],F]])):ct=0,Yt(E,q-1,G-q+3,At),G=q+At.length-ct-2;break}}for(G=-1;++G<E.length;)E[G][1].type==="attentionSequence"&&(E[G][1].type="data");return E}function ya(E,F){const G=this.parser.constructs.attentionMarkers.null,q=this.previous,he=Ya(q);let Ee;return $e;function $e(Ft){return Ee=Ft,E.enter("attentionSequence"),et(Ft)}function et(Ft){if(Ft===Ee)return E.consume(Ft),et;const At=E.exit("attentionSequence"),ct=Ya(Ft),$t=!ct||ct===2&&he||G.includes(Ft),Vt=!he||he===2&&ct||G.includes(q);return At._open=!!(Ee===42?$t:$t&&(he||!Vt)),At._close=!!(Ee===42?Vt:Vt&&(ct||!$t)),F(Ft)}}function ns(E,F){E.column+=F,E.offset+=F,E._bufferIndex+=F}const Ht={name:"autolink",tokenize:Ws};function Ws(E,F,G){let q=0;return he;function he(Rt){return E.enter("autolink"),E.enter("autolinkMarker"),E.consume(Rt),E.exit("autolinkMarker"),E.enter("autolinkProtocol"),Ee}function Ee(Rt){return(0,sn.jv)(Rt)?(E.consume(Rt),$e):Rt===64?G(Rt):At(Rt)}function $e(Rt){return Rt===43||Rt===45||Rt===46||(0,sn.H$)(Rt)?(q=1,et(Rt)):At(Rt)}function et(Rt){return Rt===58?(E.consume(Rt),q=0,Ft):(Rt===43||Rt===45||Rt===46||(0,sn.H$)(Rt))&&q++<32?(E.consume(Rt),et):(q=0,At(Rt))}function Ft(Rt){return Rt===62?(E.exit("autolinkProtocol"),E.enter("autolinkMarker"),E.consume(Rt),E.exit("autolinkMarker"),E.exit("autolink"),F):Rt===null||Rt===32||Rt===60||(0,sn.Av)(Rt)?G(Rt):(E.consume(Rt),Ft)}function At(Rt){return Rt===64?(E.consume(Rt),ct):(0,sn.n9)(Rt)?(E.consume(Rt),At):G(Rt)}function ct(Rt){return(0,sn.H$)(Rt)?$t(Rt):G(Rt)}function $t(Rt){return Rt===46?(E.consume(Rt),q=0,ct):Rt===62?(E.exit("autolinkProtocol").type="autolinkEmail",E.enter("autolinkMarker"),E.consume(Rt),E.exit("autolinkMarker"),E.exit("autolink"),F):Vt(Rt)}function Vt(Rt){if((Rt===45||(0,sn.H$)(Rt))&&q++<63){const yi=Rt===45?Vt:$t;return E.consume(Rt),yi}return G(Rt)}}const Eu={name:"htmlText",tokenize:Ml};function Ml(E,F,G){const q=this;let he,Ee,$e;return et;function et(Qt){return E.enter("htmlText"),E.enter("htmlTextData"),E.consume(Qt),Ft}function Ft(Qt){return Qt===33?(E.consume(Qt),At):Qt===47?(E.consume(Qt),oo):Qt===63?(E.consume(Qt),ji):(0,sn.jv)(Qt)?(E.consume(Qt),Kr):G(Qt)}function At(Qt){return Qt===45?(E.consume(Qt),ct):Qt===91?(E.consume(Qt),Ee=0,yi):(0,sn.jv)(Qt)?(E.consume(Qt),Cr):G(Qt)}function ct(Qt){return Qt===45?(E.consume(Qt),Rt):G(Qt)}function $t(Qt){return Qt===null?G(Qt):Qt===45?(E.consume(Qt),Vt):(0,sn.Ch)(Qt)?($e=$t,Wi(Qt)):(E.consume(Qt),$t)}function Vt(Qt){return Qt===45?(E.consume(Qt),Rt):$t(Qt)}function Rt(Qt){return Qt===62?jr(Qt):Qt===45?Vt(Qt):$t(Qt)}function yi(Qt){const ms="CDATA[";return Qt===ms.charCodeAt(Ee++)?(E.consume(Qt),Ee===ms.length?si:yi):G(Qt)}function si(Qt){return Qt===null?G(Qt):Qt===93?(E.consume(Qt),sr):(0,sn.Ch)(Qt)?($e=si,Wi(Qt)):(E.consume(Qt),si)}function sr(Qt){return Qt===93?(E.consume(Qt),Si):si(Qt)}function Si(Qt){return Qt===62?jr(Qt):Qt===93?(E.consume(Qt),Si):si(Qt)}function Cr(Qt){return Qt===null||Qt===62?jr(Qt):(0,sn.Ch)(Qt)?($e=Cr,Wi(Qt)):(E.consume(Qt),Cr)}function ji(Qt){return Qt===null?G(Qt):Qt===63?(E.consume(Qt),to):(0,sn.Ch)(Qt)?($e=ji,Wi(Qt)):(E.consume(Qt),ji)}function to(Qt){return Qt===62?jr(Qt):ji(Qt)}function oo(Qt){return(0,sn.jv)(Qt)?(E.consume(Qt),ei):G(Qt)}function ei(Qt){return Qt===45||(0,sn.H$)(Qt)?(E.consume(Qt),ei):Zi(Qt)}function Zi(Qt){return(0,sn.Ch)(Qt)?($e=Zi,Wi(Qt)):(0,sn.xz)(Qt)?(E.consume(Qt),Zi):jr(Qt)}function Kr(Qt){return Qt===45||(0,sn.H$)(Qt)?(E.consume(Qt),Kr):Qt===47||Qt===62||(0,sn.z3)(Qt)?Zr(Qt):G(Qt)}function Zr(Qt){return Qt===47?(E.consume(Qt),jr):Qt===58||Qt===95||(0,sn.jv)(Qt)?(E.consume(Qt),Qr):(0,sn.Ch)(Qt)?($e=Zr,Wi(Qt)):(0,sn.xz)(Qt)?(E.consume(Qt),Zr):jr(Qt)}function Qr(Qt){return Qt===45||Qt===46||Qt===58||Qt===95||(0,sn.H$)(Qt)?(E.consume(Qt),Qr):No(Qt)}function No(Qt){return Qt===61?(E.consume(Qt),tr):(0,sn.Ch)(Qt)?($e=No,Wi(Qt)):(0,sn.xz)(Qt)?(E.consume(Qt),No):Zr(Qt)}function tr(Qt){return Qt===null||Qt===60||Qt===61||Qt===62||Qt===96?G(Qt):Qt===34||Qt===39?(E.consume(Qt),he=Qt,Ai):(0,sn.Ch)(Qt)?($e=tr,Wi(Qt)):(0,sn.xz)(Qt)?(E.consume(Qt),tr):(E.consume(Qt),Gi)}function Ai(Qt){return Qt===he?(E.consume(Qt),he=void 0,Mi):Qt===null?G(Qt):(0,sn.Ch)(Qt)?($e=Ai,Wi(Qt)):(E.consume(Qt),Ai)}function Gi(Qt){return Qt===null||Qt===34||Qt===39||Qt===60||Qt===61||Qt===96?G(Qt):Qt===47||Qt===62||(0,sn.z3)(Qt)?Zr(Qt):(E.consume(Qt),Gi)}function Mi(Qt){return Qt===47||Qt===62||(0,sn.z3)(Qt)?Zr(Qt):G(Qt)}function jr(Qt){return Qt===62?(E.consume(Qt),E.exit("htmlTextData"),E.exit("htmlText"),F):G(Qt)}function Wi(Qt){return E.exit("htmlTextData"),E.enter("lineEnding"),E.consume(Qt),E.exit("lineEnding"),Lr}function Lr(Qt){return(0,sn.xz)(Qt)?(0,ci.f)(E,so,"linePrefix",q.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Qt):so(Qt)}function so(Qt){return E.enter("htmlTextData"),$e(Qt)}}const po={name:"labelStartLink",resolveAll:Vi.resolveAll,tokenize:_o};function _o(E,F,G){const q=this;return he;function he($e){return E.enter("labelLink"),E.enter("labelMarker"),E.consume($e),E.exit("labelMarker"),E.exit("labelLink"),Ee}function Ee($e){return $e===94&&"_hiddenFootnoteSupport"in q.parser.constructs?G($e):F($e)}}const Ss={name:"hardBreakEscape",tokenize:Ut};function Ut(E,F,G){return q;function q(Ee){return E.enter("hardBreakEscape"),E.consume(Ee),he}function he(Ee){return(0,sn.Ch)(Ee)?(E.exit("hardBreakEscape"),F(Ee)):G(Ee)}}const zr={name:"codeText",previous:ba,resolve:Co,tokenize:Er};function Co(E){let F=E.length-4,G=3,q,he;if((E[G][1].type==="lineEnding"||E[G][1].type==="space")&&(E[F][1].type==="lineEnding"||E[F][1].type==="space")){for(q=G;++q<F;)if(E[q][1].type==="codeTextData"){E[G][1].type="codeTextPadding",E[F][1].type="codeTextPadding",G+=2,F-=2;break}}for(q=G-1,F++;++q<=F;)he===void 0?q!==F&&E[q][1].type!=="lineEnding"&&(he=q):(q===F||E[q][1].type==="lineEnding")&&(E[he][1].type="codeTextData",q!==he+2&&(E[he][1].end=E[q-1][1].end,E.splice(he+2,q-he-2),F-=q-he-2,q=he+2),he=void 0);return E}function ba(E){return E!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Er(E,F,G){const q=this;let he=0,Ee,$e;return et;function et(Vt){return E.enter("codeText"),E.enter("codeTextSequence"),Ft(Vt)}function Ft(Vt){return Vt===96?(E.consume(Vt),he++,Ft):(E.exit("codeTextSequence"),At(Vt))}function At(Vt){return Vt===null?G(Vt):Vt===32?(E.enter("space"),E.consume(Vt),E.exit("space"),At):Vt===96?($e=E.enter("codeTextSequence"),Ee=0,$t(Vt)):(0,sn.Ch)(Vt)?(E.enter("lineEnding"),E.consume(Vt),E.exit("lineEnding"),At):(E.enter("codeTextData"),ct(Vt))}function ct(Vt){return Vt===null||Vt===32||Vt===96||(0,sn.Ch)(Vt)?(E.exit("codeTextData"),At(Vt)):(E.consume(Vt),ct)}function $t(Vt){return Vt===96?(E.consume(Vt),Ee++,$t):Ee===he?(E.exit("codeTextSequence"),E.exit("codeText"),F(Vt)):($e.type="codeTextData",ct(Vt))}}const yn={42:Sn,43:Sn,45:Sn,48:Sn,49:Sn,50:Sn,51:Sn,52:Sn,53:Sn,54:Sn,55:Sn,56:Sn,57:Sn,62:Fn},pr={91:ki},pi={[-2]:hr,[-1]:hr,32:hr},Yo={35:ae,42:Ge,45:[Et,Ge],60:Ii,61:Et,95:Ge,96:Li,126:Li},Ns={38:Ar,92:br},ha={[-5]:qi,[-4]:qi,[-3]:qi,33:Bs,38:Ar,42:ra,60:[Ht,Eu],91:po,92:[Ss,br],93:Vi,95:ra,96:zr},Oa={null:[ra,Xi]},Ca={null:[42,95]},oi={null:[]};function Di(E,F,G){let q={_bufferIndex:-1,_index:0,line:G&&G.line||1,column:G&&G.column||1,offset:G&&G.offset||0};const he={},Ee=[];let $e=[],et=[],Ft=!0;const At={attempt:Zr(Zi),check:Zr(Kr),consume:to,enter:oo,exit:ei,interrupt:Zr(Kr,{interrupt:!0})},ct={code:null,containerState:{},defineSkip:Si,events:[],now:sr,parser:E,previous:null,sliceSerialize:yi,sliceStream:si,write:Rt};let $t=F.tokenize.call(ct,At),Vt;return F.resolveAll&&Ee.push(F),ct;function Rt(Ai){return $e=Ot($e,Ai),Cr(),$e[$e.length-1]!==null?[]:(Qr(F,0),ct.events=Ri(Ee,ct.events,ct),ct.events)}function yi(Ai,Gi){return Ta(si(Ai),Gi)}function si(Ai){return Qo($e,Ai)}function sr(){const{_bufferIndex:Ai,_index:Gi,line:Mi,column:jr,offset:Wi}=q;return{_bufferIndex:Ai,_index:Gi,line:Mi,column:jr,offset:Wi}}function Si(Ai){he[Ai.line]=Ai.column,tr()}function Cr(){let Ai;for(;q._index<$e.length;){const Gi=$e[q._index];if(typeof Gi=="string")for(Ai=q._index,q._bufferIndex<0&&(q._bufferIndex=0);q._index===Ai&&q._bufferIndex<Gi.length;)ji(Gi.charCodeAt(q._bufferIndex));else ji(Gi)}}function ji(Ai){Ft=void 0,Vt=Ai,$t=$t(Ai)}function to(Ai){(0,sn.Ch)(Ai)?(q.line++,q.column=1,q.offset+=Ai===-3?2:1,tr()):Ai!==-1&&(q.column++,q.offset++),q._bufferIndex<0?q._index++:(q._bufferIndex++,q._bufferIndex===$e[q._index].length&&(q._bufferIndex=-1,q._index++)),ct.previous=Ai,Ft=!0}function oo(Ai,Gi){const Mi=Gi||{};return Mi.type=Ai,Mi.start=sr(),ct.events.push(["enter",Mi,ct]),et.push(Mi),Mi}function ei(Ai){const Gi=et.pop();return Gi.end=sr(),ct.events.push(["exit",Gi,ct]),Gi}function Zi(Ai,Gi){Qr(Ai,Gi.from)}function Kr(Ai,Gi){Gi.restore()}function Zr(Ai,Gi){return Mi;function Mi(jr,Wi,Lr){let so,Qt,ms,gs;return Array.isArray(jr)?co(jr):"tokenize"in jr?co([jr]):vn(jr);function vn(zs){return Oo;function Oo(So){const Ao=So!==null&&zs[So],es=So!==null&&zs.null,Us=[...Array.isArray(Ao)?Ao:Ao?[Ao]:[],...Array.isArray(es)?es:es?[es]:[]];return co(Us)(So)}}function co(zs){return so=zs,Qt=0,zs.length===0?Lr:Ds(zs[Qt])}function Ds(zs){return Oo;function Oo(So){return gs=No(),ms=zs,zs.partial||(ct.currentConstruct=zs),zs.name&&ct.parser.constructs.disable.null.includes(zs.name)?Ps(So):zs.tokenize.call(Gi?Object.assign(Object.create(ct),Gi):ct,At,ss,Ps)(So)}}function ss(zs){return Ft=!0,Ai(ms,gs),Wi}function Ps(zs){return Ft=!0,gs.restore(),++Qt<so.length?Ds(so[Qt]):Lr}}}function Qr(Ai,Gi){Ai.resolveAll&&!Ee.includes(Ai)&&Ee.push(Ai),Ai.resolve&&Yt(ct.events,Gi,ct.events.length-Gi,Ai.resolve(ct.events.slice(Gi),ct)),Ai.resolveTo&&(ct.events=Ai.resolveTo(ct.events,ct))}function No(){const Ai=sr(),Gi=ct.previous,Mi=ct.currentConstruct,jr=ct.events.length,Wi=Array.from(et);return{from:jr,restore:Lr};function Lr(){q=Ai,ct.previous=Gi,ct.currentConstruct=Mi,ct.events.length=jr,et=Wi,tr()}}function tr(){q.line in he&&q.column<2&&(q.column=he[q.line],q.offset+=he[q.line]-1)}}function Qo(E,F){const G=F.start._index,q=F.start._bufferIndex,he=F.end._index,Ee=F.end._bufferIndex;let $e;if(G===he)$e=[E[G].slice(q,Ee)];else{if($e=E.slice(G,he),q>-1){const et=$e[0];typeof et=="string"?$e[0]=et.slice(q):$e.shift()}Ee>0&&$e.push(E[he].slice(0,Ee))}return $e}function Ta(E,F){let G=-1;const q=[];let he;for(;++G<E.length;){const Ee=E[G];let $e;if(typeof Ee=="string")$e=Ee;else switch(Ee){case-5:{$e="\r";break}case-4:{$e=`
|
|
|
`;break}case-3:{$e=`\r
|
|
|
`;break}case-2:{$e=F?" ":" ";break}case-1:{if(!F&&he)continue;$e=" ";break}default:$e=String.fromCharCode(Ee)}he=Ee===-2,q.push($e)}return q.join("")}function Go(E){const q={constructs:He([b,...(E||{}).extensions||[]]),content:he(rn),defined:[],document:he(yr),flow:he(Jr),lazy:{},string:he(di),text:he(ht)};return q;function he(Ee){return $e;function $e(et){return Di(q,Ee,et)}}}const Js=/[\0\t\n\r]/g;function kr(){let E=1,F="",G=!0,q;return he;function he(Ee,$e,et){const Ft=[];let At,ct,$t,Vt,Rt;for(Ee=F+(typeof Ee=="string"?Ee.toString():new TextDecoder($e||void 0).decode(Ee)),$t=0,F="",G&&(Ee.charCodeAt(0)===65279&&$t++,G=void 0);$t<Ee.length;){if(Js.lastIndex=$t,At=Js.exec(Ee),Vt=At&&At.index!==void 0?At.index:Ee.length,Rt=Ee.charCodeAt(Vt),!At){F=Ee.slice($t);break}if(Rt===10&&$t===Vt&&q)Ft.push(-3),q=void 0;else switch(q&&(Ft.push(-5),q=void 0),$t<Vt&&(Ft.push(Ee.slice($t,Vt)),E+=Vt-$t),Rt){case 0:{Ft.push(65533),E++;break}case 9:{for(ct=Math.ceil(E/4)*4,Ft.push(-2);E++<ct;)Ft.push(-1);break}case 10:{Ft.push(-4),E=1;break}default:q=!0,E=1}$t=Vt+1}return et&&(q&&Ft.push(-5),F&&Ft.push(F),Ft.push(null)),Ft}}function ol(E,F){const G=Number.parseInt(E,F);return G<9||G===11||G>13&&G<32||G>126&&G<160||G>55295&&G<57344||G>64975&&G<65008||(G&65535)===65535||(G&65535)===65534||G>1114111?"\uFFFD":String.fromCodePoint(G)}const La=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ra(E){return E.replace(La,zo)}function zo(E,F,G){if(F)return F;if(G.charCodeAt(0)===35){const he=G.charCodeAt(1),Ee=he===120||he===88;return ol(G.slice(Ee?2:1),Ee?16:10)}return ce(G)||E}const qs={}.hasOwnProperty;function Ol(E,F,G){return typeof F!="string"&&(G=F,F=void 0),Vs(G)(Xt(Go(G).document().write(kr()(E,F,!0))))}function Vs(E){const F={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:Ee(jn),autolinkProtocol:Zr,autolinkEmail:Zr,atxHeading:Ee(g),blockQuote:Ee(So),characterEscape:Zr,characterReference:Zr,codeFenced:Ee(Ao),codeFencedFenceInfo:$e,codeFencedFenceMeta:$e,codeIndented:Ee(Ao,$e),codeText:Ee(es,$e),codeTextData:Zr,data:Zr,codeFlowValue:Zr,definition:Ee(Us),definitionDestinationString:$e,definitionLabelString:$e,definitionTitleString:$e,emphasis:Ee(h),hardBreakEscape:Ee(K),hardBreakTrailing:Ee(K),htmlFlow:Ee(Je,$e),htmlFlowData:Zr,htmlText:Ee(Je,$e),htmlTextData:Zr,image:Ee(un),label:$e,link:Ee(jn),listItem:Ee(gr),listItemValue:Vt,listOrdered:Ee(bi,$t),listUnordered:Ee(bi),paragraph:Ee(Dr),reference:vn,referenceString:$e,resourceDestinationString:$e,resourceTitleString:$e,setextHeading:Ee(g),strong:Ee(Gr),thematicBreak:Ee(vs)},exit:{atxHeading:Ft(),atxHeadingSequence:oo,autolink:Ft(),autolinkEmail:Oo,autolinkProtocol:zs,blockQuote:Ft(),characterEscapeValue:Qr,characterReferenceMarkerHexadecimal:Ds,characterReferenceMarkerNumeric:Ds,characterReferenceValue:ss,characterReference:Ps,codeFenced:Ft(sr),codeFencedFence:si,codeFencedFenceInfo:Rt,codeFencedFenceMeta:yi,codeFlowValue:Qr,codeIndented:Ft(Si),codeText:Ft(Mi),codeTextData:Qr,data:Qr,definition:Ft(),definitionDestinationString:to,definitionLabelString:Cr,definitionTitleString:ji,emphasis:Ft(),hardBreakEscape:Ft(tr),hardBreakTrailing:Ft(tr),htmlFlow:Ft(Ai),htmlFlowData:Qr,htmlText:Ft(Gi),htmlTextData:Qr,image:Ft(Wi),label:so,labelText:Lr,lineEnding:No,link:Ft(jr),listItem:Ft(),listOrdered:Ft(),listUnordered:Ft(),paragraph:Ft(),referenceString:co,resourceDestinationString:Qt,resourceTitleString:ms,resource:gs,setextHeading:Ft(Kr),setextHeadingLineSequence:Zi,setextHeadingText:ei,strong:Ft(),thematicBreak:Ft()}};pl(F,(E||{}).mdastExtensions||[]);const G={};return q;function q(ni){let nr={type:"root",children:[]};const mo={stack:[nr],tokenStack:[],config:F,enter:et,exit:At,buffer:$e,resume:ct,data:G},ko=[];let ts=-1;for(;++ts<ni.length;)if(ni[ts][1].type==="listOrdered"||ni[ts][1].type==="listUnordered")if(ni[ts][0]==="enter")ko.push(ts);else{const Sa=ko.pop();ts=he(ni,Sa,ts)}for(ts=-1;++ts<ni.length;){const Sa=F[ni[ts][0]];qs.call(Sa,ni[ts][1].type)&&Sa[ni[ts][1].type].call(Object.assign({sliceSerialize:ni[ts][2].sliceSerialize},mo),ni[ts][1])}if(mo.tokenStack.length>0){const Sa=mo.tokenStack[mo.tokenStack.length-1];(Sa[1]||$a).call(mo,void 0,Sa[0])}for(nr.position={start:As(ni.length>0?ni[0][1].start:{line:1,column:1,offset:0}),end:As(ni.length>0?ni[ni.length-2][1].end:{line:1,column:1,offset:0})},ts=-1;++ts<F.transforms.length;)nr=F.transforms[ts](nr)||nr;return nr}function he(ni,nr,mo){let ko=nr-1,ts=-1,Sa=!1,pa,yo,as,Hs;for(;++ko<=mo;){const T=ni[ko];switch(T[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{T[0]==="enter"?ts++:ts--,Hs=void 0;break}case"lineEndingBlank":{T[0]==="enter"&&(pa&&!Hs&&!ts&&!as&&(as=ko),Hs=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Hs=void 0}if(!ts&&T[0]==="enter"&&T[1].type==="listItemPrefix"||ts===-1&&T[0]==="exit"&&(T[1].type==="listUnordered"||T[1].type==="listOrdered")){if(pa){let m=ko;for(yo=void 0;m--;){const S=ni[m];if(S[1].type==="lineEnding"||S[1].type==="lineEndingBlank"){if(S[0]==="exit")continue;yo&&(ni[yo][1].type="lineEndingBlank",Sa=!0),S[1].type="lineEnding",yo=m}else if(!(S[1].type==="linePrefix"||S[1].type==="blockQuotePrefix"||S[1].type==="blockQuotePrefixWhitespace"||S[1].type==="blockQuoteMarker"||S[1].type==="listItemIndent"))break}as&&(!yo||as<yo)&&(pa._spread=!0),pa.end=Object.assign({},yo?ni[yo][1].start:T[1].end),ni.splice(yo||ko,0,["exit",pa,T[2]]),ko++,mo++}if(T[1].type==="listItemPrefix"){const m={type:"listItem",_spread:!1,start:Object.assign({},T[1].start),end:void 0};pa=m,ni.splice(ko,0,["enter",m,T[2]]),ko++,mo++,as=void 0,Hs=!0}}}return ni[nr][1]._spread=Sa,mo}function Ee(ni,nr){return mo;function mo(ko){et.call(this,ni(ko),ko),nr&&nr.call(this,ko)}}function $e(){this.stack.push({type:"fragment",children:[]})}function et(ni,nr,mo){this.stack[this.stack.length-1].children.push(ni),this.stack.push(ni),this.tokenStack.push([nr,mo||void 0]),ni.position={start:As(nr.start),end:void 0}}function Ft(ni){return nr;function nr(mo){ni&&ni.call(this,mo),At.call(this,mo)}}function At(ni,nr){const mo=this.stack.pop(),ko=this.tokenStack.pop();if(ko)ko[0].type!==ni.type&&(nr?nr.call(this,ni,ko[0]):(ko[1]||$a).call(this,ni,ko[0]));else throw new Error("Cannot close `"+ni.type+"` ("+ee({start:ni.start,end:ni.end})+"): it\u2019s not open");mo.position.end=As(ni.end)}function ct(){return lt(this.stack.pop())}function $t(){this.data.expectingFirstListItemValue=!0}function Vt(ni){if(this.data.expectingFirstListItemValue){const nr=this.stack[this.stack.length-2];nr.start=Number.parseInt(this.sliceSerialize(ni),10),this.data.expectingFirstListItemValue=void 0}}function Rt(){const ni=this.resume(),nr=this.stack[this.stack.length-1];nr.lang=ni}function yi(){const ni=this.resume(),nr=this.stack[this.stack.length-1];nr.meta=ni}function si(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function sr(){const ni=this.resume(),nr=this.stack[this.stack.length-1];nr.value=ni.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function Si(){const ni=this.resume(),nr=this.stack[this.stack.length-1];nr.value=ni.replace(/(\r?\n|\r)$/g,"")}function Cr(ni){const nr=this.resume(),mo=this.stack[this.stack.length-1];mo.label=nr,mo.identifier=Mn(this.sliceSerialize(ni)).toLowerCase()}function ji(){const ni=this.resume(),nr=this.stack[this.stack.length-1];nr.title=ni}function to(){const ni=this.resume(),nr=this.stack[this.stack.length-1];nr.url=ni}function oo(ni){const nr=this.stack[this.stack.length-1];if(!nr.depth){const mo=this.sliceSerialize(ni).length;nr.depth=mo}}function ei(){this.data.setextHeadingSlurpLineEnding=!0}function Zi(ni){const nr=this.stack[this.stack.length-1];nr.depth=this.sliceSerialize(ni).codePointAt(0)===61?1:2}function Kr(){this.data.setextHeadingSlurpLineEnding=void 0}function Zr(ni){const mo=this.stack[this.stack.length-1].children;let ko=mo[mo.length-1];(!ko||ko.type!=="text")&&(ko=Is(),ko.position={start:As(ni.start),end:void 0},mo.push(ko)),this.stack.push(ko)}function Qr(ni){const nr=this.stack.pop();nr.value+=this.sliceSerialize(ni),nr.position.end=As(ni.end)}function No(ni){const nr=this.stack[this.stack.length-1];if(this.data.atHardBreak){const mo=nr.children[nr.children.length-1];mo.position.end=As(ni.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&F.canContainEols.includes(nr.type)&&(Zr.call(this,ni),Qr.call(this,ni))}function tr(){this.data.atHardBreak=!0}function Ai(){const ni=this.resume(),nr=this.stack[this.stack.length-1];nr.value=ni}function Gi(){const ni=this.resume(),nr=this.stack[this.stack.length-1];nr.value=ni}function Mi(){const ni=this.resume(),nr=this.stack[this.stack.length-1];nr.value=ni}function jr(){const ni=this.stack[this.stack.length-1];if(this.data.inReference){const nr=this.data.referenceType||"shortcut";ni.type+="Reference",ni.referenceType=nr,delete ni.url,delete ni.title}else delete ni.identifier,delete ni.label;this.data.referenceType=void 0}function Wi(){const ni=this.stack[this.stack.length-1];if(this.data.inReference){const nr=this.data.referenceType||"shortcut";ni.type+="Reference",ni.referenceType=nr,delete ni.url,delete ni.title}else delete ni.identifier,delete ni.label;this.data.referenceType=void 0}function Lr(ni){const nr=this.sliceSerialize(ni),mo=this.stack[this.stack.length-2];mo.label=Ra(nr),mo.identifier=Mn(nr).toLowerCase()}function so(){const ni=this.stack[this.stack.length-1],nr=this.resume(),mo=this.stack[this.stack.length-1];if(this.data.inReference=!0,mo.type==="link"){const ko=ni.children;mo.children=ko}else mo.alt=nr}function Qt(){const ni=this.resume(),nr=this.stack[this.stack.length-1];nr.url=ni}function ms(){const ni=this.resume(),nr=this.stack[this.stack.length-1];nr.title=ni}function gs(){this.data.inReference=void 0}function vn(){this.data.referenceType="collapsed"}function co(ni){const nr=this.resume(),mo=this.stack[this.stack.length-1];mo.label=nr,mo.identifier=Mn(this.sliceSerialize(ni)).toLowerCase(),this.data.referenceType="full"}function Ds(ni){this.data.characterReferenceType=ni.type}function ss(ni){const nr=this.sliceSerialize(ni),mo=this.data.characterReferenceType;let ko;mo?(ko=ol(nr,mo==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ko=ce(nr);const ts=this.stack[this.stack.length-1];ts.value+=ko}function Ps(ni){const nr=this.stack.pop();nr.position.end=As(ni.end)}function zs(ni){Qr.call(this,ni);const nr=this.stack[this.stack.length-1];nr.url=this.sliceSerialize(ni)}function Oo(ni){Qr.call(this,ni);const nr=this.stack[this.stack.length-1];nr.url="mailto:"+this.sliceSerialize(ni)}function So(){return{type:"blockquote",children:[]}}function Ao(){return{type:"code",lang:null,meta:null,value:""}}function es(){return{type:"inlineCode",value:""}}function Us(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function h(){return{type:"emphasis",children:[]}}function g(){return{type:"heading",depth:0,children:[]}}function K(){return{type:"break"}}function Je(){return{type:"html",value:""}}function un(){return{type:"image",title:null,url:"",alt:null}}function jn(){return{type:"link",title:null,url:"",children:[]}}function bi(ni){return{type:"list",ordered:ni.type==="listOrdered",start:null,spread:ni._spread,children:[]}}function gr(ni){return{type:"listItem",spread:ni._spread,checked:null,children:[]}}function Dr(){return{type:"paragraph",children:[]}}function Gr(){return{type:"strong",children:[]}}function Is(){return{type:"text",value:""}}function vs(){return{type:"thematicBreak"}}}function As(E){return{line:E.line,column:E.column,offset:E.offset}}function pl(E,F){let G=-1;for(;++G<F.length;){const q=F[G];Array.isArray(q)?pl(E,q):Wo(E,q)}}function Wo(E,F){let G;for(G in F)if(qs.call(F,G))switch(G){case"canContainEols":{const q=F[G];q&&E[G].push(...q);break}case"transforms":{const q=F[G];q&&E[G].push(...q);break}case"enter":case"exit":{const q=F[G];q&&Object.assign(E[G],q);break}}}function $a(E,F){throw E?new Error("Cannot close `"+E.type+"` ("+ee({start:E.start,end:E.end})+"): a different token (`"+F.type+"`, "+ee({start:F.start,end:F.end})+") is open"):new Error("Cannot close document, a token (`"+F.type+"`, "+ee({start:F.start,end:F.end})+") is still open")}function wu(E){const F=this;F.parser=G;function G(q){return Ol(q,cd(Bo(Bo({},F.data("settings")),E),{extensions:F.data("micromarkExtensions")||[],mdastExtensions:F.data("fromMarkdownExtensions")||[]}))}}var Ll=d(90302);function ea(E,F){const G=encode(Ls(E||""));if(!F)return G;const q=G.indexOf(":"),he=G.indexOf("?"),Ee=G.indexOf("#"),$e=G.indexOf("/");return q<0||$e>-1&&q>$e||he>-1&&q>he||Ee>-1&&q>Ee||F.test(G.slice(0,q))?G:""}function Ls(E){const F=[];let G=-1,q=0,he=0;for(;++G<E.length;){const Ee=E.charCodeAt(G);let $e="";if(Ee===37&&(0,sn.H$)(E.charCodeAt(G+1))&&(0,sn.H$)(E.charCodeAt(G+2)))he=2;else if(Ee<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(Ee))||($e=String.fromCharCode(Ee));else if(Ee>55295&&Ee<57344){const et=E.charCodeAt(G+1);Ee<56320&&et>56319&&et<57344?($e=String.fromCharCode(Ee,et),he=1):$e="\uFFFD"}else $e=String.fromCharCode(Ee);$e&&(F.push(E.slice(q,G),encodeURIComponent($e)),q=G+he+1,$e=""),he&&(G+=he,he=0)}return F.join("")+E.slice(q)}function ja(E,F){const G=[{type:"text",value:"\u21A9"}];return F>1&&G.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(F)}]}),G}function $i(E,F){return"Back to reference "+(E+1)+(F>1?"-"+F:"")}function Na(E){const F=typeof E.options.clobberPrefix=="string"?E.options.clobberPrefix:"user-content-",G=E.options.footnoteBackContent||ja,q=E.options.footnoteBackLabel||$i,he=E.options.footnoteLabel||"Footnotes",Ee=E.options.footnoteLabelTagName||"h2",$e=E.options.footnoteLabelProperties||{className:["sr-only"]},et=[];let Ft=-1;for(;++Ft<E.footnoteOrder.length;){const At=E.footnoteById.get(E.footnoteOrder[Ft]);if(!At)continue;const ct=E.all(At),$t=String(At.identifier).toUpperCase(),Vt=Ls($t.toLowerCase());let Rt=0;const yi=[],si=E.footnoteCounts.get($t);for(;si!==void 0&&++Rt<=si;){yi.length>0&&yi.push({type:"text",value:" "});let Cr=typeof G=="string"?G:G(Ft,Rt);typeof Cr=="string"&&(Cr={type:"text",value:Cr}),yi.push({type:"element",tagName:"a",properties:{href:"#"+F+"fnref-"+Vt+(Rt>1?"-"+Rt:""),dataFootnoteBackref:"",ariaLabel:typeof q=="string"?q:q(Ft,Rt),className:["data-footnote-backref"]},children:Array.isArray(Cr)?Cr:[Cr]})}const sr=ct[ct.length-1];if(sr&&sr.type==="element"&&sr.tagName==="p"){const Cr=sr.children[sr.children.length-1];Cr&&Cr.type==="text"?Cr.value+=" ":sr.children.push({type:"text",value:" "}),sr.children.push(...yi)}else ct.push(...yi);const Si={type:"element",tagName:"li",properties:{id:F+"fn-"+Vt},children:E.wrap(ct,!0)};E.patch(At,Si),et.push(Si)}if(et.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:Ee,properties:cd(Bo({},(0,Ll.ZP)($e)),{id:"footnote-label"}),children:[{type:"text",value:he}]},{type:"text",value:`
|
|
|
`},{type:"element",tagName:"ol",properties:{},children:E.wrap(et,!0)},{type:"text",value:`
|
|
|
`}]}}var Rl=d(10528);function Ur(E,F){const G={type:"element",tagName:"blockquote",properties:{},children:E.wrap(E.all(F),!0)};return E.patch(F,G),E.applyData(F,G)}function bo(E,F){const G={type:"element",tagName:"br",properties:{},children:[]};return E.patch(F,G),[E.applyData(F,G),{type:"text",value:`
|
|
|
`}]}function hs(E,F){const G=F.value?F.value+`
|
|
|
`:"",q={};F.lang&&(q.className=["language-"+F.lang]);let he={type:"element",tagName:"code",properties:q,children:[{type:"text",value:G}]};return F.meta&&(he.data={meta:F.meta}),E.patch(F,he),he=E.applyData(F,he),he={type:"element",tagName:"pre",properties:{},children:[he]},E.patch(F,he),he}function is(E,F){const G={type:"element",tagName:"del",properties:{},children:E.all(F)};return E.patch(F,G),E.applyData(F,G)}function qr(E,F){const G={type:"element",tagName:"em",properties:{},children:E.all(F)};return E.patch(F,G),E.applyData(F,G)}function rs(E,F){const G=typeof E.options.clobberPrefix=="string"?E.options.clobberPrefix:"user-content-",q=String(F.identifier).toUpperCase(),he=Ls(q.toLowerCase()),Ee=E.footnoteOrder.indexOf(q);let $e,et=E.footnoteCounts.get(q);et===void 0?(et=0,E.footnoteOrder.push(q),$e=E.footnoteOrder.length):$e=Ee+1,et+=1,E.footnoteCounts.set(q,et);const Ft={type:"element",tagName:"a",properties:{href:"#"+G+"fn-"+he,id:G+"fnref-"+he+(et>1?"-"+et:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String($e)}]};E.patch(F,Ft);const At={type:"element",tagName:"sup",properties:{},children:[Ft]};return E.patch(F,At),E.applyData(F,At)}function ps(E,F){const G={type:"element",tagName:"h"+F.depth,properties:{},children:E.all(F)};return E.patch(F,G),E.applyData(F,G)}function ks(E,F){if(E.options.allowDangerousHtml){const G={type:"raw",value:F.value};return E.patch(F,G),E.applyData(F,G)}}function Es(E,F){const G=F.referenceType;let q="]";if(G==="collapsed"?q+="[]":G==="full"&&(q+="["+(F.label||F.identifier)+"]"),F.type==="imageReference")return[{type:"text",value:"!["+F.alt+q}];const he=E.all(F),Ee=he[0];Ee&&Ee.type==="text"?Ee.value="["+Ee.value:he.unshift({type:"text",value:"["});const $e=he[he.length-1];return $e&&$e.type==="text"?$e.value+=q:he.push({type:"text",value:q}),he}function Gl(E,F){const G=String(F.identifier).toUpperCase(),q=E.definitionById.get(G);if(!q)return Es(E,F);const he={src:Ls(q.url||""),alt:F.alt};q.title!==null&&q.title!==void 0&&(he.title=q.title);const Ee={type:"element",tagName:"img",properties:he,children:[]};return E.patch(F,Ee),E.applyData(F,Ee)}function Za(E,F){const G={src:Ls(F.url)};F.alt!==null&&F.alt!==void 0&&(G.alt=F.alt),F.title!==null&&F.title!==void 0&&(G.title=F.title);const q={type:"element",tagName:"img",properties:G,children:[]};return E.patch(F,q),E.applyData(F,q)}function ws(E,F){const G={type:"text",value:F.value.replace(/\r?\n|\r/g," ")};E.patch(F,G);const q={type:"element",tagName:"code",properties:{},children:[G]};return E.patch(F,q),E.applyData(F,q)}function hc(E,F){const G=String(F.identifier).toUpperCase(),q=E.definitionById.get(G);if(!q)return Es(E,F);const he={href:Ls(q.url||"")};q.title!==null&&q.title!==void 0&&(he.title=q.title);const Ee={type:"element",tagName:"a",properties:he,children:E.all(F)};return E.patch(F,Ee),E.applyData(F,Ee)}function Yu(E,F){const G={href:Ls(F.url)};F.title!==null&&F.title!==void 0&&(G.title=F.title);const q={type:"element",tagName:"a",properties:G,children:E.all(F)};return E.patch(F,q),E.applyData(F,q)}function lu(E,F,G){const q=E.all(F),he=G?or(G):Ga(F),Ee={},$e=[];if(typeof F.checked=="boolean"){const ct=q[0];let $t;ct&&ct.type==="element"&&ct.tagName==="p"?$t=ct:($t={type:"element",tagName:"p",properties:{},children:[]},q.unshift($t)),$t.children.length>0&&$t.children.unshift({type:"text",value:" "}),$t.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:F.checked,disabled:!0},children:[]}),Ee.className=["task-list-item"]}let et=-1;for(;++et<q.length;){const ct=q[et];(he||et!==0||ct.type!=="element"||ct.tagName!=="p")&&$e.push({type:"text",value:`
|
|
|
`}),ct.type==="element"&&ct.tagName==="p"&&!he?$e.push(...ct.children):$e.push(ct)}const Ft=q[q.length-1];Ft&&(he||Ft.type!=="element"||Ft.tagName!=="p")&&$e.push({type:"text",value:`
|
|
|
`});const At={type:"element",tagName:"li",properties:Ee,children:$e};return E.patch(F,At),E.applyData(F,At)}function or(E){let F=!1;if(E.type==="list"){F=E.spread||!1;const G=E.children;let q=-1;for(;!F&&++q<G.length;)F=Ga(G[q])}return F}function Ga(E){const F=E.spread;return F==null?E.children.length>1:F}function Ye(E,F){const G={},q=E.all(F);let he=-1;for(typeof F.start=="number"&&F.start!==1&&(G.start=F.start);++he<q.length;){const $e=q[he];if($e.type==="element"&&$e.tagName==="li"&&$e.properties&&Array.isArray($e.properties.className)&&$e.properties.className.includes("task-list-item")){G.className=["contains-task-list"];break}}const Ee={type:"element",tagName:F.ordered?"ol":"ul",properties:G,children:E.wrap(q,!0)};return E.patch(F,Ee),E.applyData(F,Ee)}function kn(E,F){const G={type:"element",tagName:"p",properties:{},children:E.all(F)};return E.patch(F,G),E.applyData(F,G)}function Cu(E,F){const G={type:"root",children:E.wrap(E.all(F))};return E.patch(F,G),E.applyData(F,G)}function Zu(E,F){const G={type:"element",tagName:"strong",properties:{},children:E.all(F)};return E.patch(F,G),E.applyData(F,G)}function Dl(E,F){const G=E.all(F),q=G.shift(),he=[];if(q){const $e={type:"element",tagName:"thead",properties:{},children:E.wrap([q],!0)};E.patch(F.children[0],$e),he.push($e)}if(G.length>0){const $e={type:"element",tagName:"tbody",properties:{},children:E.wrap(G,!0)},et=(0,Te.Pk)(F.children[1]),Ft=(0,Te.rb)(F.children[F.children.length-1]);et&&Ft&&($e.position={start:et,end:Ft}),he.push($e)}const Ee={type:"element",tagName:"table",properties:{},children:E.wrap(he,!0)};return E.patch(F,Ee),E.applyData(F,Ee)}function Pl(E,F,G){const q=G?G.children:void 0,Ee=(q?q.indexOf(F):1)===0?"th":"td",$e=G&&G.type==="table"?G.align:void 0,et=$e?$e.length:F.children.length;let Ft=-1;const At=[];for(;++Ft<et;){const $t=F.children[Ft],Vt={},Rt=$e?$e[Ft]:void 0;Rt&&(Vt.align=Rt);let yi={type:"element",tagName:Ee,properties:Vt,children:[]};$t&&(yi.children=E.all($t),E.patch($t,yi),yi=E.applyData($t,yi)),At.push(yi)}const ct={type:"element",tagName:"tr",properties:{},children:E.wrap(At,!0)};return E.patch(F,ct),E.applyData(F,ct)}function ml(E,F){const G={type:"element",tagName:"td",properties:{},children:E.all(F)};return E.patch(F,G),E.applyData(F,G)}const Xu=9,uu=32;function Cs(E){const F=String(E),G=/\r?\n|\r/g;let q=G.exec(F),he=0;const Ee=[];for(;q;)Ee.push(Nr(F.slice(he,q.index),he>0,!0),q[0]),he=q.index+q[0].length,q=G.exec(F);return Ee.push(Nr(F.slice(he),he>0,!1)),Ee.join("")}function Nr(E,F,G){let q=0,he=E.length;if(F){let Ee=E.codePointAt(q);for(;Ee===Xu||Ee===uu;)q++,Ee=E.codePointAt(q)}if(G){let Ee=E.codePointAt(he-1);for(;Ee===Xu||Ee===uu;)he--,Ee=E.codePointAt(he-1)}return he>q?E.slice(q,he):""}function Da(E,F){const G={type:"text",value:Cs(String(F.value))};return E.patch(F,G),E.applyData(F,G)}function da(E,F){const G={type:"element",tagName:"hr",properties:{},children:[]};return E.patch(F,G),E.applyData(F,G)}const go={blockquote:Ur,break:bo,code:hs,delete:is,emphasis:qr,footnoteReference:rs,heading:ps,html:ks,imageReference:Gl,image:Za,inlineCode:ws,linkReference:hc,link:Yu,listItem:lu,list:Ye,paragraph:kn,root:Cu,strong:Zu,table:Dl,tableCell:ml,tableRow:Pl,text:Da,thematicBreak:da,toml:ro,yaml:ro,definition:ro,footnoteDefinition:ro};function ro(){}const _s={}.hasOwnProperty,Wa={};function os(E,F){const G=F||Wa,q=new Map,he=new Map,Ee=new Map,$e=Bo(Bo({},go),G.handlers),et={all:At,applyData:ta,definitionById:q,footnoteById:he,footnoteCounts:Ee,footnoteOrder:[],handlers:$e,one:Ft,options:G,patch:Va,wrap:Do};return(0,Rl.Vn)(E,function(ct){if(ct.type==="definition"||ct.type==="footnoteDefinition"){const $t=ct.type==="definition"?q:he,Vt=String(ct.identifier).toUpperCase();$t.has(Vt)||$t.set(Vt,ct)}}),et;function Ft(ct,$t){const Vt=ct.type,Rt=et.handlers[Vt];if(_s.call(et.handlers,Vt)&&Rt)return Rt(et,ct,$t);if(et.options.passThrough&&et.options.passThrough.includes(Vt)){if("children"in ct){const si=ct,{children:sr}=si,Si=Ib(si,["children"]),Cr=(0,Ll.ZP)(Si);return Cr.children=et.all(ct),Cr}return(0,Ll.ZP)(ct)}return(et.options.unknownHandler||cu)(et,ct,$t)}function At(ct){const $t=[];if("children"in ct){const Vt=ct.children;let Rt=-1;for(;++Rt<Vt.length;){const yi=et.one(Vt[Rt],ct);if(yi){if(Rt&&Vt[Rt-1].type==="break"&&(!Array.isArray(yi)&&yi.type==="text"&&(yi.value=xa(yi.value)),!Array.isArray(yi)&&yi.type==="element")){const si=yi.children[0];si&&si.type==="text"&&(si.value=xa(si.value))}Array.isArray(yi)?$t.push(...yi):$t.push(yi)}}}return $t}}function Va(E,F){E.position&&(F.position=(0,Te.FK)(E))}function ta(E,F){let G=F;if(E&&E.data){const q=E.data.hName,he=E.data.hChildren,Ee=E.data.hProperties;if(typeof q=="string")if(G.type==="element")G.tagName=q;else{const $e="children"in G?G.children:[G];G={type:"element",tagName:q,properties:{},children:$e}}G.type==="element"&&Ee&&Object.assign(G.properties,(0,Ll.ZP)(Ee)),"children"in G&&G.children&&he!==null&&he!==void 0&&(G.children=he)}return G}function cu(E,F){const G=F.data||{},q="value"in F&&!(_s.call(G,"hProperties")||_s.call(G,"hChildren"))?{type:"text",value:F.value}:{type:"element",tagName:"div",properties:{},children:E.all(F)};return E.patch(F,q),E.applyData(F,q)}function Do(E,F){const G=[];let q=-1;for(F&&G.push({type:"text",value:`
|
|
|
`});++q<E.length;)q&&G.push({type:"text",value:`
|
|
|
`}),G.push(E[q]);return F&&E.length>0&&G.push({type:"text",value:`
|
|
|
`}),G}function xa(E){let F=0,G=E.charCodeAt(F);for(;G===9||G===32;)F++,G=E.charCodeAt(F);return E.slice(F)}function vo(E,F){const G=os(E,F),q=G.one(E,void 0),he=Na(G),Ee=Array.isArray(q)?{type:"root",children:q}:q||{type:"root",children:[]};return he&&((0,I.ok)("children"in Ee),Ee.children.push({type:"text",value:`
|
|
|
`},he)),Ee}function Zo(E,F){return E&&"run"in E?function(G,q){return iy(this,null,function*(){const he=vo(G,Bo({file:q},F));yield E.run(he,q)})}:function(G,q){return vo(G,Bo({file:q},E||F))}}function qo(E){if(E)throw E}var bs=d(58847);function Po(E){if(typeof E!="object"||E===null)return!1;const F=Object.getPrototypeOf(E);return(F===null||F===Object.prototype||Object.getPrototypeOf(F)===null)&&!(Symbol.toStringTag in E)&&!(Symbol.iterator in E)}function hu(){const E=[],F={run:G,use:q};return F;function G(...he){let Ee=-1;const $e=he.pop();if(typeof $e!="function")throw new TypeError("Expected function as last argument, not "+$e);et(null,...he);function et(Ft,...At){const ct=E[++Ee];let $t=-1;if(Ft){$e(Ft);return}for(;++$t<he.length;)(At[$t]===null||At[$t]===void 0)&&(At[$t]=he[$t]);he=At,ct?wr(ct,et)(...At):$e(null,...At)}}function q(he){if(typeof he!="function")throw new TypeError("Expected `middelware` to be a function, not "+he);return E.push(he),F}}function wr(E,F){let G;return q;function q(...$e){const et=E.length>$e.length;let Ft;et&&$e.push(he);try{Ft=E.apply(this,$e)}catch(At){const ct=At;if(et&&G)throw ct;return he(ct)}et||(Ft&&Ft.then&&typeof Ft.then=="function"?Ft.then(Ee,he):Ft instanceof Error?he(Ft):Ee(Ft))}function he($e,...et){G||(G=!0,F($e,...et))}function Ee($e){he(null,$e)}}const sl={basename:xo,dirname:Qu,extname:Ju,join:qu,sep:"/"};function xo(E,F){if(F!==void 0&&typeof F!="string")throw new TypeError('"ext" argument must be a string');Xa(E);let G=0,q=-1,he=E.length,Ee;if(F===void 0||F.length===0||F.length>E.length){for(;he--;)if(E.codePointAt(he)===47){if(Ee){G=he+1;break}}else q<0&&(Ee=!0,q=he+1);return q<0?"":E.slice(G,q)}if(F===E)return"";let $e=-1,et=F.length-1;for(;he--;)if(E.codePointAt(he)===47){if(Ee){G=he+1;break}}else $e<0&&(Ee=!0,$e=he+1),et>-1&&(E.codePointAt(he)===F.codePointAt(et--)?et<0&&(q=he):(et=-1,q=$e));return G===q?q=$e:q<0&&(q=E.length),E.slice(G,q)}function Qu(E){if(Xa(E),E.length===0)return".";let F=-1,G=E.length,q;for(;--G;)if(E.codePointAt(G)===47){if(q){F=G;break}}else q||(q=!0);return F<0?E.codePointAt(0)===47?"/":".":F===1&&E.codePointAt(0)===47?"//":E.slice(0,F)}function Ju(E){Xa(E);let F=E.length,G=-1,q=0,he=-1,Ee=0,$e;for(;F--;){const et=E.codePointAt(F);if(et===47){if($e){q=F+1;break}continue}G<0&&($e=!0,G=F+1),et===46?he<0?he=F:Ee!==1&&(Ee=1):he>-1&&(Ee=-1)}return he<0||G<0||Ee===0||Ee===1&&he===G-1&&he===q+1?"":E.slice(he,G)}function qu(...E){let F=-1,G;for(;++F<E.length;)Xa(E[F]),E[F]&&(G=G===void 0?E[F]:G+"/"+E[F]);return G===void 0?".":wc(G)}function wc(E){Xa(E);const F=E.codePointAt(0)===47;let G=_u(E,!F);return G.length===0&&!F&&(G="."),G.length>0&&E.codePointAt(E.length-1)===47&&(G+="/"),F?"/"+G:G}function _u(E,F){let G="",q=0,he=-1,Ee=0,$e=-1,et,Ft;for(;++$e<=E.length;){if($e<E.length)et=E.codePointAt($e);else{if(et===47)break;et=47}if(et===47){if(!(he===$e-1||Ee===1))if(he!==$e-1&&Ee===2){if(G.length<2||q!==2||G.codePointAt(G.length-1)!==46||G.codePointAt(G.length-2)!==46){if(G.length>2){if(Ft=G.lastIndexOf("/"),Ft!==G.length-1){Ft<0?(G="",q=0):(G=G.slice(0,Ft),q=G.length-1-G.lastIndexOf("/")),he=$e,Ee=0;continue}}else if(G.length>0){G="",q=0,he=$e,Ee=0;continue}}F&&(G=G.length>0?G+"/..":"..",q=2)}else G.length>0?G+="/"+E.slice(he+1,$e):G=E.slice(he+1,$e),q=$e-he-1;he=$e,Ee=0}else et===46&&Ee>-1?Ee++:Ee=-1}return G}function Xa(E){if(typeof E!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(E))}const Qa={cwd:To};function To(){return"/"}function Pa(E){return!!(E!==null&&typeof E=="object"&&"href"in E&&E.href&&"protocol"in E&&E.protocol&&E.auth===void 0)}function dc(E){if(typeof E=="string")E=new URL(E);else if(!Pa(E)){const F=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+E+"`");throw F.code="ERR_INVALID_ARG_TYPE",F}if(E.protocol!=="file:"){const F=new TypeError("The URL must be of scheme file");throw F.code="ERR_INVALID_URL_SCHEME",F}return eu(E)}function eu(E){if(E.hostname!==""){const q=new TypeError('File URL host must be "localhost" or empty on darwin');throw q.code="ERR_INVALID_FILE_URL_HOST",q}const F=E.pathname;let G=-1;for(;++G<F.length;)if(F.codePointAt(G)===37&&F.codePointAt(G+1)===50){const q=F.codePointAt(G+2);if(q===70||q===102){const he=new TypeError("File URL path must not include encoded / characters");throw he.code="ERR_INVALID_FILE_URL_PATH",he}}return decodeURIComponent(F)}const gl=["history","path","basename","stem","extname","dirname"];class vl{constructor(F){let G;F?Pa(F)?G={path:F}:typeof F=="string"||du(F)?G={value:F}:G=F:G={},this.cwd="cwd"in G?"":Qa.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let q=-1;for(;++q<gl.length;){const Ee=gl[q];Ee in G&&G[Ee]!==void 0&&G[Ee]!==null&&(this[Ee]=Ee==="history"?[...G[Ee]]:G[Ee])}let he;for(he in G)gl.includes(he)||(this[he]=G[he])}get basename(){return typeof this.path=="string"?sl.basename(this.path):void 0}set basename(F){Wl(F,"basename"),Ja(F,"basename"),this.path=sl.join(this.dirname||"",F)}get dirname(){return typeof this.path=="string"?sl.dirname(this.path):void 0}set dirname(F){Ka(this.basename,"dirname"),this.path=sl.join(F||"",this.basename)}get extname(){return typeof this.path=="string"?sl.extname(this.path):void 0}set extname(F){if(Ja(F,"extname"),Ka(this.dirname,"extname"),F){if(F.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(F.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=sl.join(this.dirname,this.stem+(F||""))}get path(){return this.history[this.history.length-1]}set path(F){Pa(F)&&(F=dc(F)),Wl(F,"path"),this.path!==F&&this.history.push(F)}get stem(){return typeof this.path=="string"?sl.basename(this.path,this.extname):void 0}set stem(F){Wl(F,"stem"),Ja(F,"stem"),this.path=sl.join(this.dirname||"",F+(this.extname||""))}fail(F,G,q){const he=this.message(F,G,q);throw he.fatal=!0,he}info(F,G,q){const he=this.message(F,G,q);return he.fatal=void 0,he}message(F,G,q){const he=new Ke(F,G,q);return this.path&&(he.name=this.path+":"+he.name,he.file=this.path),he.fatal=!1,this.messages.push(he),he}toString(F){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(F||void 0).decode(this.value)}}function Ja(E,F){if(E&&E.includes(sl.sep))throw new Error("`"+F+"` cannot be a path: did not expect `"+sl.sep+"`")}function Wl(E,F){if(!E)throw new Error("`"+F+"` cannot be empty")}function Ka(E,F){if(!E)throw new Error("Setting `"+F+"` requires `path` to be set too")}function du(E){return!!(E&&typeof E=="object"&&"byteLength"in E&&"byteOffset"in E)}const fu=function(E){const q=this.constructor.prototype,he=q[E],Ee=function(){return he.apply(Ee,arguments)};return Object.setPrototypeOf(Ee,q),Ee},Tu={}.hasOwnProperty;class Nu extends fu{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=hu()}copy(){const F=new Nu;let G=-1;for(;++G<this.attachers.length;){const q=this.attachers[G];F.use(...q)}return F.data(bs(!0,{},this.namespace)),F}data(F,G){return typeof F=="string"?arguments.length===2?(zu("data",this.frozen),this.namespace[F]=G,this):Tu.call(this.namespace,F)&&this.namespace[F]||void 0:F?(zu("data",this.frozen),this.namespace=F,this):this.namespace}freeze(){if(this.frozen)return this;const F=this;for(;++this.freezeIndex<this.attachers.length;){const[G,...q]=this.attachers[this.freezeIndex];if(q[0]===!1)continue;q[0]===!0&&(q[0]=void 0);const he=G.call(F,...q);typeof he=="function"&&this.transformers.use(he)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(F){this.freeze();const G=ut(F),q=this.parser||this.Parser;return fa("parse",q),q(String(G),G)}process(F,G){const q=this;return this.freeze(),fa("process",this.parser||this.Parser),Vl("process",this.compiler||this.Compiler),G?he(void 0,G):new Promise(he);function he(Ee,$e){const et=ut(F),Ft=q.parse(et);q.run(Ft,et,function(ct,$t,Vt){if(ct||!$t||!Vt)return At(ct);const Rt=$t,yi=q.stringify(Rt,Vt);Lt(yi)?Vt.value=yi:Vt.result=yi,At(ct,Vt)});function At(ct,$t){ct||!$t?$e(ct):Ee?Ee($t):((0,I.ok)(G,"`done` is defined if `resolve` is not"),G(void 0,$t))}}}processSync(F){let G=!1,q;return this.freeze(),fa("processSync",this.parser||this.Parser),Vl("processSync",this.compiler||this.Compiler),this.process(F,he),Ae("processSync","process",G),(0,I.ok)(q,"we either bailed on an error or have a tree"),q;function he(Ee,$e){G=!0,qo(Ee),q=$e}}run(F,G,q){Se(F),this.freeze();const he=this.transformers;return!q&&typeof G=="function"&&(q=G,G=void 0),q?Ee(void 0,q):new Promise(Ee);function Ee($e,et){(0,I.ok)(typeof G!="function","`file` can\u2019t be a `done` anymore, we checked");const Ft=ut(G);he.run(F,Ft,At);function At(ct,$t,Vt){const Rt=$t||F;ct?et(ct):$e?$e(Rt):((0,I.ok)(q,"`done` is defined if `resolve` is not"),q(void 0,Rt,Vt))}}}runSync(F,G){let q=!1,he;return this.run(F,G,Ee),Ae("runSync","run",q),(0,I.ok)(he,"we either bailed on an error or have a tree"),he;function Ee($e,et){qo($e),he=et,q=!0}}stringify(F,G){this.freeze();const q=ut(G),he=this.compiler||this.Compiler;return Vl("stringify",he),Se(F),he(F,q)}use(F,...G){const q=this.attachers,he=this.namespace;if(zu("use",this.frozen),F!=null)if(typeof F=="function")Ft(F,G);else if(typeof F=="object")Array.isArray(F)?et(F):$e(F);else throw new TypeError("Expected usable value, not `"+F+"`");return this;function Ee(At){if(typeof At=="function")Ft(At,[]);else if(typeof At=="object")if(Array.isArray(At)){const[ct,...$t]=At;Ft(ct,$t)}else $e(At);else throw new TypeError("Expected usable value, not `"+At+"`")}function $e(At){if(!("plugins"in At)&&!("settings"in At))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");et(At.plugins),At.settings&&(he.settings=bs(!0,he.settings,At.settings))}function et(At){let ct=-1;if(At!=null)if(Array.isArray(At))for(;++ct<At.length;){const $t=At[ct];Ee($t)}else throw new TypeError("Expected a list of plugins, not `"+At+"`")}function Ft(At,ct){let $t=-1,Vt=-1;for(;++$t<q.length;)if(q[$t][0]===At){Vt=$t;break}if(Vt===-1)q.push([At,...ct]);else if(ct.length>0){let[Rt,...yi]=ct;const si=q[Vt][1];Po(si)&&Po(Rt)&&(Rt=bs(!0,si,Rt)),q[Vt]=[At,Rt,...yi]}}}}const al=new Nu().freeze();function fa(E,F){if(typeof F!="function")throw new TypeError("Cannot `"+E+"` without `parser`")}function Vl(E,F){if(typeof F!="function")throw new TypeError("Cannot `"+E+"` without `compiler`")}function zu(E,F){if(F)throw new Error("Cannot call `"+E+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Se(E){if(!Po(E)||typeof E.type!="string")throw new TypeError("Expected node, got `"+E+"`")}function Ae(E,F,G){if(!G)throw new Error("`"+E+"` finished async. Use `"+F+"` instead")}function ut(E){return vt(E)?E:new vl(E)}function vt(E){return!!(E&&typeof E=="object"&&"message"in E&&"messages"in E)}function Lt(E){return typeof E=="string"||Nt(E)}function Nt(E){return!!(E&&typeof E=="object"&&"byteLength"in E&&"byteOffset"in E)}const fe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",cn=[],en={allowDangerousHtml:!0},Dn=/^(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 zn(E){const F=Jn(E),G=Fi(E);return ai(F.runSync(F.parse(G),G),E)}function fi(E){return iy(this,null,function*(){const F=Jn(E),G=Fi(E),q=yield F.run(F.parse(G),G);return ai(q,E)})}function gi(E){const F=Jn(E),[G,q]=useState(void 0),[he,Ee]=useState(void 0);if(useEffect(function(){const $e=Fi(E);F.run(F.parse($e),$e,function(et,Ft){q(et),Ee(Ft)})},[E.children,E.rehypePlugins,E.remarkPlugins,E.remarkRehypeOptions]),G)throw G;return he?ai(he,E):createElement(Fragment)}function Jn(E){const F=E.rehypePlugins||cn,G=E.remarkPlugins||cn,q=E.remarkRehypeOptions?Bo(Bo({},E.remarkRehypeOptions),en):en;return al().use(wu).use(G).use(Zo,q).use(F)}function Fi(E){const F=E.children||"",G=new vl;return typeof F=="string"?G.value=F:(0,I.t1)("Unexpected value `"+F+"` for `children` prop, expected `string`"),G}function ai(E,F){const G=F.allowedElements,q=F.allowElement,he=F.components,Ee=F.disallowedElements,$e=F.skipHtml,et=F.unwrapDisallowed,Ft=F.urlTransform||zi;for(const ct of Bn)Object.hasOwn(F,ct.from)&&(0,I.t1)("Unexpected `"+ct.from+"` prop, "+(ct.to?"use `"+ct.to+"` instead":"remove it")+" (see <"+fe+"#"+ct.id+"> for more info)");return G&&Ee&&(0,I.t1)("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),F.className&&(E={type:"element",tagName:"div",properties:{className:F.className},children:E.type==="root"?E.children:[E]}),(0,Rl.Vn)(E,At),Tt(E,{Fragment:ze.Fragment,components:he,ignoreInvalidStyle:!0,jsx:ze.jsx,jsxs:ze.jsxs,passKeys:!0,passNode:!0});function At(ct,$t,Vt){if(ct.type==="raw"&&Vt&&typeof $t=="number")return $e?Vt.children.splice($t,1):Vt.children[$t]={type:"text",value:ct.value},$t;if(ct.type==="element"){let Rt;for(Rt in wt)if(Object.hasOwn(wt,Rt)&&Object.hasOwn(ct.properties,Rt)){const yi=ct.properties[Rt],si=wt[Rt];(si===null||si.includes(ct.tagName))&&(ct.properties[Rt]=Ft(String(yi||""),Rt,ct))}}if(ct.type==="element"){let Rt=G?!G.includes(ct.tagName):Ee?Ee.includes(ct.tagName):!1;if(!Rt&&q&&typeof $t=="number"&&(Rt=!q(ct,$t,Vt)),Rt&&Vt&&typeof $t=="number")return et&&ct.children?Vt.children.splice($t,1,...ct.children):Vt.children.splice($t,1),$t}}}function zi(E){const F=E.indexOf(":"),G=E.indexOf("?"),q=E.indexOf("#"),he=E.indexOf("/");return F===-1||he!==-1&&F>he||G!==-1&&F>G||q!==-1&&F>q||Dn.test(E.slice(0,F))?E:""}},35328:function(Q,C,d){"use strict";d.d(C,{Z:function(){return Hs}});var b=d(81994),I=d(43309);function O(T,m){return z(T,m||{})||{type:"root",children:[]}}function z(T,m){const S=W(T,m);return S&&m.afterTransform&&m.afterTransform(T,S),S}function W(T,m){switch(T.nodeType){case 1:return ne(T,m);case 3:return pe(T);case 8:return ue(T);case 9:return _(T,m);case 10:return M();case 11:return _(T,m);default:return}}function _(T,m){return{type:"root",children:Pe(T,m)}}function M(){return{type:"doctype"}}function pe(T){return{type:"text",value:T.nodeValue||""}}function ue(T){return{type:"comment",value:T.nodeValue||""}}function ne(T,m){const S=T.namespaceURI,R=S===I.t.svg?b.s:b.h,Y=S===I.t.html?T.tagName.toLowerCase():T.tagName,re=S===I.t.html&&Y==="template"?T.content:T,Z=T.getAttributeNames(),st={};let dt=-1;for(;++dt<Z.length;)st[Z[dt]]=T.getAttribute(Z[dt])||"";return R(Y,st,Pe(re,m))}function Pe(T,m){const S=T.childNodes,R=[];let Y=-1;for(;++Y<S.length;){const re=z(S[Y],m);re!==void 0&&R.push(re)}return R}const ke=new DOMParser;function rt(T,m){const S=m!=null&&m.fragment?Ue(T):ke.parseFromString(T,"text/html");return O(S)}function Ue(T){const m=document.createElement("template");return m.innerHTML=T,m.content}var Ie=d(10502);const De=function(T,m,S){const R=(0,Ie.O)(S);if(!T||!T.type||!T.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=T.children.indexOf(m),m<0)throw new Error("Expected child node or index");for(;++m<T.children.length;)if(R(T.children[m],m,T))return T.children[m]},Fe=function(T,m,S,R,Y){const re=de(m);if(S!=null&&(typeof S!="number"||S<0||S===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite `index`");if(R!=null&&(!R.type||!R.children))throw new Error("Expected valid `parent`");if(S==null!=(R==null))throw new Error("Expected both `index` and `parent`");return ee(T)?re.call(Y,T,S,R):!1},de=function(T){if(T==null)return Te;if(typeof T=="string")return we(T);if(typeof T=="object")return me(T);if(typeof T=="function")return ge(T);throw new Error("Expected function, string, or array as `test`")};function me(T){const m=[];let S=-1;for(;++S<T.length;)m[S]=de(T[S]);return ge(R);function R(...Y){let re=-1;for(;++re<m.length;)if(m[re].apply(this,Y))return!0;return!1}}function we(T){return ge(m);function m(S){return S.tagName===T}}function ge(T){return m;function m(S,R,Y){return!!(ee(S)&&T.call(this,S,typeof R=="number"?R:void 0,Y||void 0))}}function Te(T){return!!(T&&typeof T=="object"&&"type"in T&&T.type==="element"&&"tagName"in T&&typeof T.tagName=="string")}function ee(T){return T!==null&&typeof T=="object"&&"type"in T&&"tagName"in T}const Ce=/\n/g,Ne=/[\t ]+/g,Le=de("br"),Ke=de(_t),nt=de("p"),ie=de("tr"),at=de(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",le,jt]),Ze=de(["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 Bt(T,m){const S=m||{},R="children"in T?T.children:[],Y=Ze(T),re=se(T,{whitespace:S.whitespace||"normal",breakBefore:!1,breakAfter:!1}),Z=[];(T.type==="text"||T.type==="comment")&&Z.push(...Tt(T,{whitespace:re,breakBefore:!0,breakAfter:!0}));let st=-1;for(;++st<R.length;)Z.push(...bt(R[st],T,{whitespace:re,breakBefore:st?void 0:Y,breakAfter:st<R.length-1?Le(R[st+1]):Y}));const dt=[];let pn;for(st=-1;++st<Z.length;){const Ln=Z[st];typeof Ln=="number"?pn!==void 0&&Ln>pn&&(pn=Ln):Ln&&(pn!==void 0&&pn>-1&&dt.push(`
|
|
|
`.repeat(pn)||" "),pn=-1,dt.push(Ln))}return dt.join("")}function bt(T,m,S){return T.type==="element"?kt(T,m,S):T.type==="text"?S.whitespace==="normal"?Tt(T,S):wn(T):[]}function kt(T,m,S){const R=se(T,S),Y=T.children||[];let re=-1,Z=[];if(at(T))return Z;let st,dt;for(Le(T)||ie(T)&&De(m,T,ie)?dt=`
|
|
|
`:nt(T)?(st=2,dt=2):Ze(T)&&(st=1,dt=1);++re<Y.length;)Z=Z.concat(bt(Y[re],T,{whitespace:R,breakBefore:re?void 0:st,breakAfter:re<Y.length-1?Le(Y[re+1]):dt}));return Ke(T)&&De(m,T,Ke)&&Z.push(" "),st&&Z.unshift(st),dt&&Z.push(dt),Z}function Tt(T,m){const S=String(T.value),R=[],Y=[];let re=0;for(;re<=S.length;){Ce.lastIndex=re;const dt=Ce.exec(S),pn=dt&&"index"in dt?dt.index:S.length;R.push(Xe(S.slice(re,pn).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),re===0?m.breakBefore:!0,pn===S.length?m.breakAfter:!0)),re=pn+1}let Z=-1,st;for(;++Z<R.length;)R[Z].charCodeAt(R[Z].length-1)===8203||Z<R.length-1&&R[Z+1].charCodeAt(0)===8203?(Y.push(R[Z]),st=void 0):R[Z]?(typeof st=="number"&&Y.push(st),Y.push(R[Z]),st=0):(Z===0||Z===R.length-1)&&Y.push(0);return Y}function wn(T){return[String(T.value)]}function Xe(T,m,S){const R=[];let Y=0,re;for(;Y<T.length;){Ne.lastIndex=Y;const Z=Ne.exec(T);re=Z?Z.index:T.length,!Y&&!re&&Z&&!m&&R.push(""),Y!==re&&R.push(T.slice(Y,re)),Y=Z?re+Z[0].length:re}return Y!==re&&!S&&R.push(""),R.join(" ")}function se(T,m){if(T.type==="element"){const S=T.properties||{};switch(T.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 le(T){return!!(T.properties||{}).hidden}function _t(T){return T.tagName==="td"||T.tagName==="th"}function jt(T){return T.tagName==="dialog"&&!(T.properties||{}).open}class yt{constructor(m,S,R){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=m,this.start=S,this.end=R}static range(m,S){return S?!m||!m.loc||!S.loc||m.loc.lexer!==S.loc.lexer?null:new yt(m.loc.lexer,m.loc.start,S.loc.end):m&&m.loc}}class ln{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 ln(S,yt.range(this,m))}}class Dt{constructor(m,S){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var R="KaTeX parse error: "+m,Y,re,Z=S&&S.loc;if(Z&&Z.start<=Z.end){var st=Z.lexer.input;Y=Z.start,re=Z.end,Y===st.length?R+=" at end of input: ":R+=" at position "+(Y+1)+": ";var dt=st.slice(Y,re).replace(/[^]/g,"$&\u0332"),pn;Y>15?pn="\u2026"+st.slice(Y-15,Y):pn=st.slice(0,Y);var Ln;re+15<st.length?Ln=st.slice(re,re+15)+"\u2026":Ln=st.slice(re),R+=pn+dt+Ln}var Vn=new Error(R);return Vn.name="ParseError",Vn.__proto__=Dt.prototype,Vn.position=Y,Y!=null&&re!=null&&(Vn.length=re-Y),Vn.rawMessage=m,Vn}}Dt.prototype.__proto__=Error.prototype;var ui=function(m,S){return m.indexOf(S)!==-1},On=function(m,S){return m===void 0?S:m},ri=/([A-Z])/g,Xn=function(m){return m.replace(ri,"-$1").toLowerCase()},Tn={"&":"&",">":">","<":"<",'"':""","'":"'"},Nn=/[&><"']/g;function xe(T){return String(T).replace(Nn,m=>Tn[m])}var P=function T(m){return m.type==="ordgroup"||m.type==="color"?m.body.length===1?T(m.body[0]):m:m.type==="font"?T(m.body):m},k=function(m){var S=P(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},X=function(m){var S=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(m);return S?S[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(S[1])?null:S[1].toLowerCase():"_relative"},N={contains:ui,deflt:On,escape:xe,hyphenate:Xn,getBaseElem:P,isCharacterBox:k,protocolFromUrl:X},Re={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:T=>"#"+T},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:(T,m)=>(m.push(T),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:T=>Math.max(0,T),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:T=>Math.max(0,T),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:T=>Math.max(0,T),cli:"-e, --max-expand <n>",cliProcessor:T=>T==="Infinity"?1/0:parseInt(T)},globalGroup:{type:"boolean",cli:!1}};function wt(T){if(T.default)return T.default;var m=T.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 ze{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 Re)if(Re.hasOwnProperty(S)){var R=Re[S];this[S]=m[S]!==void 0?R.processor?R.processor(m[S]):m[S]:wt(R)}}reportNonstrict(m,S,R){var Y=this.strict;if(typeof Y=="function"&&(Y=Y(m,S,R)),!(!Y||Y==="ignore")){if(Y===!0||Y==="error")throw new Dt("LaTeX-incompatible input and strict mode is set to 'error': "+(S+" ["+m+"]"),R);Y==="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 '"+Y+"': "+S+" ["+m+"]"))}}useStrictBehavior(m,S,R){var Y=this.strict;if(typeof Y=="function")try{Y=Y(m,S,R)}catch(re){Y="error"}return!Y||Y==="ignore"?!1:Y===!0||Y==="error"?!0:Y==="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 '"+Y+"': "+S+" ["+m+"]")),!1)}isTrusted(m){if(m.url&&!m.protocol){var S=N.protocolFromUrl(m.url);if(S==null)return!1;m.protocol=S}var R=typeof this.trust=="function"?this.trust(m):this.trust;return!!R}}class Oe{constructor(m,S,R){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=m,this.size=S,this.cramped=R}sup(){return hn[Ve[this.id]]}sub(){return hn[Pt[this.id]]}fracNum(){return hn[Xt[this.id]]}fracDen(){return hn[qt[this.id]]}cramp(){return hn[He[this.id]]}text(){return hn[Rn[this.id]]}isTight(){return this.size>=2}}var mt=0,lt=1,Qe=2,Ct=3,nn=4,Yt=5,Ot=6,on=7,hn=[new Oe(mt,0,!1),new Oe(lt,0,!0),new Oe(Qe,1,!1),new Oe(Ct,1,!0),new Oe(nn,2,!1),new Oe(Yt,2,!0),new Oe(Ot,3,!1),new Oe(on,3,!0)],Ve=[nn,Yt,nn,Yt,Ot,on,Ot,on],Pt=[Yt,Yt,Yt,Yt,on,on,on,on],Xt=[Qe,Ct,nn,Yt,Ot,on,Ot,on],qt=[Ct,Ct,Yt,Yt,on,on,on,on],He=[lt,lt,Ct,Ct,Yt,Yt,on,on],Rn=[mt,lt,Qe,Ct,Qe,Ct,Qe,Ct],Cn={DISPLAY:hn[mt],TEXT:hn[Qe],SCRIPT:hn[nn],SCRIPTSCRIPT:hn[Ot]},Gn=[{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 Ci(T){for(var m=0;m<Gn.length;m++)for(var S=Gn[m],R=0;R<S.blocks.length;R++){var Y=S.blocks[R];if(T>=Y[0]&&T<=Y[1])return S.name}return null}var ci=[];Gn.forEach(T=>T.blocks.forEach(m=>ci.push(...m)));function sn(T){for(var m=0;m<ci.length;m+=2)if(T>=ci[m]&&T<=ci[m+1])return!0;return!1}var rn=80,cr=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"},yr=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"},Zn=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"},Mr=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"},rr=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,R){var Y=R-54-S-m;return"M702 "+(m+S)+"H400000"+(40+m)+`
|
|
|
H742v`+Y+`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"},lr=function(m,S,R){S=1e3*S;var Y="";switch(m){case"sqrtMain":Y=cr(S,rn);break;case"sqrtSize1":Y=yr(S,rn);break;case"sqrtSize2":Y=Zn(S,rn);break;case"sqrtSize3":Y=Mr(S,rn);break;case"sqrtSize4":Y=rr(S,rn);break;case"sqrtTall":Y=mr(S,rn,R)}return Y},_r=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""}},Hr={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`},uo=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 Tr{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 N.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 Jr={"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]}},fr={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]},Xi={\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 di(T,m){Jr[T]=m}function ht(T,m,S){if(!Jr[m])throw new Error("Font metrics not found for font: "+m+".");var R=T.charCodeAt(0),Y=Jr[m][R];if(!Y&&T[0]in Xi&&(R=Xi[T[0]].charCodeAt(0),Y=Jr[m][R]),!Y&&S==="text"&&sn(R)&&(Y=Jr[m][77]),Y)return{depth:Y[0],height:Y[1],italic:Y[2],skew:Y[3],width:Y[4]}}var _n={};function Hn(T){var m;if(T>=5?m=0:T>=3?m=1:m=2,!_n[m]){var S=_n[m]={cssEmPerMu:fr.quad[m]/18};for(var R in fr)fr.hasOwnProperty(R)&&(S[R]=fr[R][m])}return _n[m]}var gt=[[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]],Ge=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],fn=function(m,S){return S.size<2?m:gt[m-1][S.size-1]};class Sn{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||Sn.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=Ge[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 R in m)m.hasOwnProperty(R)&&(S[R]=m[R]);return new Sn(S)}havingStyle(m){return this.style===m?this:this.extend({style:m,size:fn(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:Ge[m-1]})}havingBaseStyle(m){m=m||this.style.text();var S=fn(Sn.BASESIZE,m);return this.size===S&&this.textSize===Sn.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!==Sn.BASESIZE?["sizing","reset-size"+this.size,"size"+Sn.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=Hn(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Sn.BASESIZE=6;var ti={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},Kn={ex:!0,em:!0,mu:!0},pt=function(m){return typeof m!="string"&&(m=m.unit),m in ti||m in Kn||m==="ex"},gn=function(m,S){var R;if(m.unit in ti)R=ti[m.unit]/S.fontMetrics().ptPerEm/S.sizeMultiplier;else if(m.unit==="mu")R=S.fontMetrics().cssEmPerMu;else{var Y;if(S.style.isTight()?Y=S.havingStyle(S.style.text()):Y=S,m.unit==="ex")R=Y.fontMetrics().xHeight;else if(m.unit==="em")R=Y.fontMetrics().quad;else throw new Dt("Invalid unit: '"+m.unit+"'");Y!==S&&(R*=Y.sizeMultiplier/S.sizeMultiplier)}return Math.min(m.number*R,S.maxSize)},tn=function(m){return+m.toFixed(4)+"em"},xi=function(m){return m.filter(S=>S).join(" ")},ft=function(m,S,R){if(this.classes=m||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=R||{},S){S.style.isTight()&&this.classes.push("mtight");var Y=S.getColor();Y&&(this.style.color=Y)}},Fn=function(m){var S=document.createElement(m);S.className=xi(this.classes);for(var R in this.style)this.style.hasOwnProperty(R)&&(S.style[R]=this.style[R]);for(var Y in this.attributes)this.attributes.hasOwnProperty(Y)&&S.setAttribute(Y,this.attributes[Y]);for(var re=0;re<this.children.length;re++)S.appendChild(this.children[re].toNode());return S},Mt=/[\s"'>/=\x00-\x1f]/,qe=function(m){var S="<"+m;this.classes.length&&(S+=' class="'+N.escape(xi(this.classes))+'"');var R="";for(var Y in this.style)this.style.hasOwnProperty(Y)&&(R+=N.hyphenate(Y)+":"+this.style[Y]+";");R&&(S+=' style="'+N.escape(R)+'"');for(var re in this.attributes)if(this.attributes.hasOwnProperty(re)){if(Mt.test(re))throw new Dt("Invalid attribute name '"+re+"'");S+=" "+re+'="'+N.escape(this.attributes[re])+'"'}S+=">";for(var Z=0;Z<this.children.length;Z++)S+=this.children[Z].toMarkup();return S+="</"+m+">",S};class D{constructor(m,S,R,Y){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,ft.call(this,m,R,Y),this.children=S||[]}setAttribute(m,S){this.attributes[m]=S}hasClass(m){return N.contains(this.classes,m)}toNode(){return Fn.call(this,"span")}toMarkup(){return qe.call(this,"span")}}class Gt{constructor(m,S,R,Y){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,ft.call(this,S,Y),this.children=R||[],this.setAttribute("href",m)}setAttribute(m,S){this.attributes[m]=S}hasClass(m){return N.contains(this.classes,m)}toNode(){return Fn.call(this,"a")}toMarkup(){return qe.call(this,"a")}}class dn{constructor(m,S,R){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=R}hasClass(m){return N.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="'+N.escape(this.src)+'"'+(' alt="'+N.escape(this.alt)+'"'),S="";for(var R in this.style)this.style.hasOwnProperty(R)&&(S+=N.hyphenate(R)+":"+this.style[R]+";");return S&&(m+=' style="'+N.escape(S)+'"'),m+="'/>",m}}var xt={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"};class En{constructor(m,S,R,Y,re,Z,st,dt){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=R||0,this.italic=Y||0,this.skew=re||0,this.width=Z||0,this.classes=st||[],this.style=dt||{},this.maxFontSize=0;var pn=Ci(this.text.charCodeAt(0));pn&&this.classes.push(pn+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=xt[this.text])}hasClass(m){return N.contains(this.classes,m)}toNode(){var m=document.createTextNode(this.text),S=null;this.italic>0&&(S=document.createElement("span"),S.style.marginRight=tn(this.italic)),this.classes.length>0&&(S=S||document.createElement("span"),S.className=xi(this.classes));for(var R in this.style)this.style.hasOwnProperty(R)&&(S=S||document.createElement("span"),S.style[R]=this.style[R]);return S?(S.appendChild(m),S):m}toMarkup(){var m=!1,S="<span";this.classes.length&&(m=!0,S+=' class="',S+=N.escape(xi(this.classes)),S+='"');var R="";this.italic>0&&(R+="margin-right:"+this.italic+"em;");for(var Y in this.style)this.style.hasOwnProperty(Y)&&(R+=N.hyphenate(Y)+":"+this.style[Y]+";");R&&(m=!0,S+=' style="'+N.escape(R)+'"');var re=N.escape(this.text);return m?(S+=">",S+=re,S+="</span>",S):re}}class Mn{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 R in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,R)&&S.setAttribute(R,this.attributes[R]);for(var Y=0;Y<this.children.length;Y++)S.appendChild(this.children[Y].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+'="'+N.escape(this.attributes[S])+'"');m+=">";for(var R=0;R<this.children.length;R++)m+=this.children[R].toMarkup();return m+="</svg>",m}}class ki{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",Hr[this.pathName]),S}toMarkup(){return this.alternate?'<path d="'+N.escape(this.alternate)+'"/>':'<path d="'+N.escape(Hr[this.pathName])+'"/>'}}class Un{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 R in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,R)&&S.setAttribute(R,this.attributes[R]);return S}toMarkup(){var m="<line";for(var S in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,S)&&(m+=" "+S+'="'+N.escape(this.attributes[S])+'"');return m+="/>",m}}function ot(T){if(T instanceof En)return T;throw new Error("Expected symbolNode but got "+String(T)+".")}function Bi(T){if(T instanceof D)return T;throw new Error("Expected span<HtmlDomNode> but got "+String(T)+".")}var hr={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Kt={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Qi={math:{},text:{}};function J(T,m,S,R,Y,re){Qi[T][Y]={font:m,group:S,replace:R},re&&R&&(Qi[T][R]=Qi[T][Y])}var ae="math",Yn="text",_e="main",Et="ams",Ni="accent-token",Pn="bin",Ki="close",Zt="inner",Ii="mathord",Wt="op-token",Yi="open",io="punct",It="rel",Mo="spacing",Jt="textord";J(ae,_e,It,"\u2261","\\equiv",!0),J(ae,_e,It,"\u227A","\\prec",!0),J(ae,_e,It,"\u227B","\\succ",!0),J(ae,_e,It,"\u223C","\\sim",!0),J(ae,_e,It,"\u22A5","\\perp"),J(ae,_e,It,"\u2AAF","\\preceq",!0),J(ae,_e,It,"\u2AB0","\\succeq",!0),J(ae,_e,It,"\u2243","\\simeq",!0),J(ae,_e,It,"\u2223","\\mid",!0),J(ae,_e,It,"\u226A","\\ll",!0),J(ae,_e,It,"\u226B","\\gg",!0),J(ae,_e,It,"\u224D","\\asymp",!0),J(ae,_e,It,"\u2225","\\parallel"),J(ae,_e,It,"\u22C8","\\bowtie",!0),J(ae,_e,It,"\u2323","\\smile",!0),J(ae,_e,It,"\u2291","\\sqsubseteq",!0),J(ae,_e,It,"\u2292","\\sqsupseteq",!0),J(ae,_e,It,"\u2250","\\doteq",!0),J(ae,_e,It,"\u2322","\\frown",!0),J(ae,_e,It,"\u220B","\\ni",!0),J(ae,_e,It,"\u221D","\\propto",!0),J(ae,_e,It,"\u22A2","\\vdash",!0),J(ae,_e,It,"\u22A3","\\dashv",!0),J(ae,_e,It,"\u220B","\\owns"),J(ae,_e,io,".","\\ldotp"),J(ae,_e,io,"\u22C5","\\cdotp"),J(ae,_e,Jt,"#","\\#"),J(Yn,_e,Jt,"#","\\#"),J(ae,_e,Jt,"&","\\&"),J(Yn,_e,Jt,"&","\\&"),J(ae,_e,Jt,"\u2135","\\aleph",!0),J(ae,_e,Jt,"\u2200","\\forall",!0),J(ae,_e,Jt,"\u210F","\\hbar",!0),J(ae,_e,Jt,"\u2203","\\exists",!0),J(ae,_e,Jt,"\u2207","\\nabla",!0),J(ae,_e,Jt,"\u266D","\\flat",!0),J(ae,_e,Jt,"\u2113","\\ell",!0),J(ae,_e,Jt,"\u266E","\\natural",!0),J(ae,_e,Jt,"\u2663","\\clubsuit",!0),J(ae,_e,Jt,"\u2118","\\wp",!0),J(ae,_e,Jt,"\u266F","\\sharp",!0),J(ae,_e,Jt,"\u2662","\\diamondsuit",!0),J(ae,_e,Jt,"\u211C","\\Re",!0),J(ae,_e,Jt,"\u2661","\\heartsuit",!0),J(ae,_e,Jt,"\u2111","\\Im",!0),J(ae,_e,Jt,"\u2660","\\spadesuit",!0),J(ae,_e,Jt,"\xA7","\\S",!0),J(Yn,_e,Jt,"\xA7","\\S"),J(ae,_e,Jt,"\xB6","\\P",!0),J(Yn,_e,Jt,"\xB6","\\P"),J(ae,_e,Jt,"\u2020","\\dag"),J(Yn,_e,Jt,"\u2020","\\dag"),J(Yn,_e,Jt,"\u2020","\\textdagger"),J(ae,_e,Jt,"\u2021","\\ddag"),J(Yn,_e,Jt,"\u2021","\\ddag"),J(Yn,_e,Jt,"\u2021","\\textdaggerdbl"),J(ae,_e,Ki,"\u23B1","\\rmoustache",!0),J(ae,_e,Yi,"\u23B0","\\lmoustache",!0),J(ae,_e,Ki,"\u27EF","\\rgroup",!0),J(ae,_e,Yi,"\u27EE","\\lgroup",!0),J(ae,_e,Pn,"\u2213","\\mp",!0),J(ae,_e,Pn,"\u2296","\\ominus",!0),J(ae,_e,Pn,"\u228E","\\uplus",!0),J(ae,_e,Pn,"\u2293","\\sqcap",!0),J(ae,_e,Pn,"\u2217","\\ast"),J(ae,_e,Pn,"\u2294","\\sqcup",!0),J(ae,_e,Pn,"\u25EF","\\bigcirc",!0),J(ae,_e,Pn,"\u2219","\\bullet",!0),J(ae,_e,Pn,"\u2021","\\ddagger"),J(ae,_e,Pn,"\u2240","\\wr",!0),J(ae,_e,Pn,"\u2A3F","\\amalg"),J(ae,_e,Pn,"&","\\And"),J(ae,_e,It,"\u27F5","\\longleftarrow",!0),J(ae,_e,It,"\u21D0","\\Leftarrow",!0),J(ae,_e,It,"\u27F8","\\Longleftarrow",!0),J(ae,_e,It,"\u27F6","\\longrightarrow",!0),J(ae,_e,It,"\u21D2","\\Rightarrow",!0),J(ae,_e,It,"\u27F9","\\Longrightarrow",!0),J(ae,_e,It,"\u2194","\\leftrightarrow",!0),J(ae,_e,It,"\u27F7","\\longleftrightarrow",!0),J(ae,_e,It,"\u21D4","\\Leftrightarrow",!0),J(ae,_e,It,"\u27FA","\\Longleftrightarrow",!0),J(ae,_e,It,"\u21A6","\\mapsto",!0),J(ae,_e,It,"\u27FC","\\longmapsto",!0),J(ae,_e,It,"\u2197","\\nearrow",!0),J(ae,_e,It,"\u21A9","\\hookleftarrow",!0),J(ae,_e,It,"\u21AA","\\hookrightarrow",!0),J(ae,_e,It,"\u2198","\\searrow",!0),J(ae,_e,It,"\u21BC","\\leftharpoonup",!0),J(ae,_e,It,"\u21C0","\\rightharpoonup",!0),J(ae,_e,It,"\u2199","\\swarrow",!0),J(ae,_e,It,"\u21BD","\\leftharpoondown",!0),J(ae,_e,It,"\u21C1","\\rightharpoondown",!0),J(ae,_e,It,"\u2196","\\nwarrow",!0),J(ae,_e,It,"\u21CC","\\rightleftharpoons",!0),J(ae,Et,It,"\u226E","\\nless",!0),J(ae,Et,It,"\uE010","\\@nleqslant"),J(ae,Et,It,"\uE011","\\@nleqq"),J(ae,Et,It,"\u2A87","\\lneq",!0),J(ae,Et,It,"\u2268","\\lneqq",!0),J(ae,Et,It,"\uE00C","\\@lvertneqq"),J(ae,Et,It,"\u22E6","\\lnsim",!0),J(ae,Et,It,"\u2A89","\\lnapprox",!0),J(ae,Et,It,"\u2280","\\nprec",!0),J(ae,Et,It,"\u22E0","\\npreceq",!0),J(ae,Et,It,"\u22E8","\\precnsim",!0),J(ae,Et,It,"\u2AB9","\\precnapprox",!0),J(ae,Et,It,"\u2241","\\nsim",!0),J(ae,Et,It,"\uE006","\\@nshortmid"),J(ae,Et,It,"\u2224","\\nmid",!0),J(ae,Et,It,"\u22AC","\\nvdash",!0),J(ae,Et,It,"\u22AD","\\nvDash",!0),J(ae,Et,It,"\u22EA","\\ntriangleleft"),J(ae,Et,It,"\u22EC","\\ntrianglelefteq",!0),J(ae,Et,It,"\u228A","\\subsetneq",!0),J(ae,Et,It,"\uE01A","\\@varsubsetneq"),J(ae,Et,It,"\u2ACB","\\subsetneqq",!0),J(ae,Et,It,"\uE017","\\@varsubsetneqq"),J(ae,Et,It,"\u226F","\\ngtr",!0),J(ae,Et,It,"\uE00F","\\@ngeqslant"),J(ae,Et,It,"\uE00E","\\@ngeqq"),J(ae,Et,It,"\u2A88","\\gneq",!0),J(ae,Et,It,"\u2269","\\gneqq",!0),J(ae,Et,It,"\uE00D","\\@gvertneqq"),J(ae,Et,It,"\u22E7","\\gnsim",!0),J(ae,Et,It,"\u2A8A","\\gnapprox",!0),J(ae,Et,It,"\u2281","\\nsucc",!0),J(ae,Et,It,"\u22E1","\\nsucceq",!0),J(ae,Et,It,"\u22E9","\\succnsim",!0),J(ae,Et,It,"\u2ABA","\\succnapprox",!0),J(ae,Et,It,"\u2246","\\ncong",!0),J(ae,Et,It,"\uE007","\\@nshortparallel"),J(ae,Et,It,"\u2226","\\nparallel",!0),J(ae,Et,It,"\u22AF","\\nVDash",!0),J(ae,Et,It,"\u22EB","\\ntriangleright"),J(ae,Et,It,"\u22ED","\\ntrianglerighteq",!0),J(ae,Et,It,"\uE018","\\@nsupseteqq"),J(ae,Et,It,"\u228B","\\supsetneq",!0),J(ae,Et,It,"\uE01B","\\@varsupsetneq"),J(ae,Et,It,"\u2ACC","\\supsetneqq",!0),J(ae,Et,It,"\uE019","\\@varsupsetneqq"),J(ae,Et,It,"\u22AE","\\nVdash",!0),J(ae,Et,It,"\u2AB5","\\precneqq",!0),J(ae,Et,It,"\u2AB6","\\succneqq",!0),J(ae,Et,It,"\uE016","\\@nsubseteqq"),J(ae,Et,Pn,"\u22B4","\\unlhd"),J(ae,Et,Pn,"\u22B5","\\unrhd"),J(ae,Et,It,"\u219A","\\nleftarrow",!0),J(ae,Et,It,"\u219B","\\nrightarrow",!0),J(ae,Et,It,"\u21CD","\\nLeftarrow",!0),J(ae,Et,It,"\u21CF","\\nRightarrow",!0),J(ae,Et,It,"\u21AE","\\nleftrightarrow",!0),J(ae,Et,It,"\u21CE","\\nLeftrightarrow",!0),J(ae,Et,It,"\u25B3","\\vartriangle"),J(ae,Et,Jt,"\u210F","\\hslash"),J(ae,Et,Jt,"\u25BD","\\triangledown"),J(ae,Et,Jt,"\u25CA","\\lozenge"),J(ae,Et,Jt,"\u24C8","\\circledS"),J(ae,Et,Jt,"\xAE","\\circledR"),J(Yn,Et,Jt,"\xAE","\\circledR"),J(ae,Et,Jt,"\u2221","\\measuredangle",!0),J(ae,Et,Jt,"\u2204","\\nexists"),J(ae,Et,Jt,"\u2127","\\mho"),J(ae,Et,Jt,"\u2132","\\Finv",!0),J(ae,Et,Jt,"\u2141","\\Game",!0),J(ae,Et,Jt,"\u2035","\\backprime"),J(ae,Et,Jt,"\u25B2","\\blacktriangle"),J(ae,Et,Jt,"\u25BC","\\blacktriangledown"),J(ae,Et,Jt,"\u25A0","\\blacksquare"),J(ae,Et,Jt,"\u29EB","\\blacklozenge"),J(ae,Et,Jt,"\u2605","\\bigstar"),J(ae,Et,Jt,"\u2222","\\sphericalangle",!0),J(ae,Et,Jt,"\u2201","\\complement",!0),J(ae,Et,Jt,"\xF0","\\eth",!0),J(Yn,_e,Jt,"\xF0","\xF0"),J(ae,Et,Jt,"\u2571","\\diagup"),J(ae,Et,Jt,"\u2572","\\diagdown"),J(ae,Et,Jt,"\u25A1","\\square"),J(ae,Et,Jt,"\u25A1","\\Box"),J(ae,Et,Jt,"\u25CA","\\Diamond"),J(ae,Et,Jt,"\xA5","\\yen",!0),J(Yn,Et,Jt,"\xA5","\\yen",!0),J(ae,Et,Jt,"\u2713","\\checkmark",!0),J(Yn,Et,Jt,"\u2713","\\checkmark"),J(ae,Et,Jt,"\u2136","\\beth",!0),J(ae,Et,Jt,"\u2138","\\daleth",!0),J(ae,Et,Jt,"\u2137","\\gimel",!0),J(ae,Et,Jt,"\u03DD","\\digamma",!0),J(ae,Et,Jt,"\u03F0","\\varkappa"),J(ae,Et,Yi,"\u250C","\\@ulcorner",!0),J(ae,Et,Ki,"\u2510","\\@urcorner",!0),J(ae,Et,Yi,"\u2514","\\@llcorner",!0),J(ae,Et,Ki,"\u2518","\\@lrcorner",!0),J(ae,Et,It,"\u2266","\\leqq",!0),J(ae,Et,It,"\u2A7D","\\leqslant",!0),J(ae,Et,It,"\u2A95","\\eqslantless",!0),J(ae,Et,It,"\u2272","\\lesssim",!0),J(ae,Et,It,"\u2A85","\\lessapprox",!0),J(ae,Et,It,"\u224A","\\approxeq",!0),J(ae,Et,Pn,"\u22D6","\\lessdot"),J(ae,Et,It,"\u22D8","\\lll",!0),J(ae,Et,It,"\u2276","\\lessgtr",!0),J(ae,Et,It,"\u22DA","\\lesseqgtr",!0),J(ae,Et,It,"\u2A8B","\\lesseqqgtr",!0),J(ae,Et,It,"\u2251","\\doteqdot"),J(ae,Et,It,"\u2253","\\risingdotseq",!0),J(ae,Et,It,"\u2252","\\fallingdotseq",!0),J(ae,Et,It,"\u223D","\\backsim",!0),J(ae,Et,It,"\u22CD","\\backsimeq",!0),J(ae,Et,It,"\u2AC5","\\subseteqq",!0),J(ae,Et,It,"\u22D0","\\Subset",!0),J(ae,Et,It,"\u228F","\\sqsubset",!0),J(ae,Et,It,"\u227C","\\preccurlyeq",!0),J(ae,Et,It,"\u22DE","\\curlyeqprec",!0),J(ae,Et,It,"\u227E","\\precsim",!0),J(ae,Et,It,"\u2AB7","\\precapprox",!0),J(ae,Et,It,"\u22B2","\\vartriangleleft"),J(ae,Et,It,"\u22B4","\\trianglelefteq"),J(ae,Et,It,"\u22A8","\\vDash",!0),J(ae,Et,It,"\u22AA","\\Vvdash",!0),J(ae,Et,It,"\u2323","\\smallsmile"),J(ae,Et,It,"\u2322","\\smallfrown"),J(ae,Et,It,"\u224F","\\bumpeq",!0),J(ae,Et,It,"\u224E","\\Bumpeq",!0),J(ae,Et,It,"\u2267","\\geqq",!0),J(ae,Et,It,"\u2A7E","\\geqslant",!0),J(ae,Et,It,"\u2A96","\\eqslantgtr",!0),J(ae,Et,It,"\u2273","\\gtrsim",!0),J(ae,Et,It,"\u2A86","\\gtrapprox",!0),J(ae,Et,Pn,"\u22D7","\\gtrdot"),J(ae,Et,It,"\u22D9","\\ggg",!0),J(ae,Et,It,"\u2277","\\gtrless",!0),J(ae,Et,It,"\u22DB","\\gtreqless",!0),J(ae,Et,It,"\u2A8C","\\gtreqqless",!0),J(ae,Et,It,"\u2256","\\eqcirc",!0),J(ae,Et,It,"\u2257","\\circeq",!0),J(ae,Et,It,"\u225C","\\triangleq",!0),J(ae,Et,It,"\u223C","\\thicksim"),J(ae,Et,It,"\u2248","\\thickapprox"),J(ae,Et,It,"\u2AC6","\\supseteqq",!0),J(ae,Et,It,"\u22D1","\\Supset",!0),J(ae,Et,It,"\u2290","\\sqsupset",!0),J(ae,Et,It,"\u227D","\\succcurlyeq",!0),J(ae,Et,It,"\u22DF","\\curlyeqsucc",!0),J(ae,Et,It,"\u227F","\\succsim",!0),J(ae,Et,It,"\u2AB8","\\succapprox",!0),J(ae,Et,It,"\u22B3","\\vartriangleright"),J(ae,Et,It,"\u22B5","\\trianglerighteq"),J(ae,Et,It,"\u22A9","\\Vdash",!0),J(ae,Et,It,"\u2223","\\shortmid"),J(ae,Et,It,"\u2225","\\shortparallel"),J(ae,Et,It,"\u226C","\\between",!0),J(ae,Et,It,"\u22D4","\\pitchfork",!0),J(ae,Et,It,"\u221D","\\varpropto"),J(ae,Et,It,"\u25C0","\\blacktriangleleft"),J(ae,Et,It,"\u2234","\\therefore",!0),J(ae,Et,It,"\u220D","\\backepsilon"),J(ae,Et,It,"\u25B6","\\blacktriangleright"),J(ae,Et,It,"\u2235","\\because",!0),J(ae,Et,It,"\u22D8","\\llless"),J(ae,Et,It,"\u22D9","\\gggtr"),J(ae,Et,Pn,"\u22B2","\\lhd"),J(ae,Et,Pn,"\u22B3","\\rhd"),J(ae,Et,It,"\u2242","\\eqsim",!0),J(ae,_e,It,"\u22C8","\\Join"),J(ae,Et,It,"\u2251","\\Doteq",!0),J(ae,Et,Pn,"\u2214","\\dotplus",!0),J(ae,Et,Pn,"\u2216","\\smallsetminus"),J(ae,Et,Pn,"\u22D2","\\Cap",!0),J(ae,Et,Pn,"\u22D3","\\Cup",!0),J(ae,Et,Pn,"\u2A5E","\\doublebarwedge",!0),J(ae,Et,Pn,"\u229F","\\boxminus",!0),J(ae,Et,Pn,"\u229E","\\boxplus",!0),J(ae,Et,Pn,"\u22C7","\\divideontimes",!0),J(ae,Et,Pn,"\u22C9","\\ltimes",!0),J(ae,Et,Pn,"\u22CA","\\rtimes",!0),J(ae,Et,Pn,"\u22CB","\\leftthreetimes",!0),J(ae,Et,Pn,"\u22CC","\\rightthreetimes",!0),J(ae,Et,Pn,"\u22CF","\\curlywedge",!0),J(ae,Et,Pn,"\u22CE","\\curlyvee",!0),J(ae,Et,Pn,"\u229D","\\circleddash",!0),J(ae,Et,Pn,"\u229B","\\circledast",!0),J(ae,Et,Pn,"\u22C5","\\centerdot"),J(ae,Et,Pn,"\u22BA","\\intercal",!0),J(ae,Et,Pn,"\u22D2","\\doublecap"),J(ae,Et,Pn,"\u22D3","\\doublecup"),J(ae,Et,Pn,"\u22A0","\\boxtimes",!0),J(ae,Et,It,"\u21E2","\\dashrightarrow",!0),J(ae,Et,It,"\u21E0","\\dashleftarrow",!0),J(ae,Et,It,"\u21C7","\\leftleftarrows",!0),J(ae,Et,It,"\u21C6","\\leftrightarrows",!0),J(ae,Et,It,"\u21DA","\\Lleftarrow",!0),J(ae,Et,It,"\u219E","\\twoheadleftarrow",!0),J(ae,Et,It,"\u21A2","\\leftarrowtail",!0),J(ae,Et,It,"\u21AB","\\looparrowleft",!0),J(ae,Et,It,"\u21CB","\\leftrightharpoons",!0),J(ae,Et,It,"\u21B6","\\curvearrowleft",!0),J(ae,Et,It,"\u21BA","\\circlearrowleft",!0),J(ae,Et,It,"\u21B0","\\Lsh",!0),J(ae,Et,It,"\u21C8","\\upuparrows",!0),J(ae,Et,It,"\u21BF","\\upharpoonleft",!0),J(ae,Et,It,"\u21C3","\\downharpoonleft",!0),J(ae,_e,It,"\u22B6","\\origof",!0),J(ae,_e,It,"\u22B7","\\imageof",!0),J(ae,Et,It,"\u22B8","\\multimap",!0),J(ae,Et,It,"\u21AD","\\leftrightsquigarrow",!0),J(ae,Et,It,"\u21C9","\\rightrightarrows",!0),J(ae,Et,It,"\u21C4","\\rightleftarrows",!0),J(ae,Et,It,"\u21A0","\\twoheadrightarrow",!0),J(ae,Et,It,"\u21A3","\\rightarrowtail",!0),J(ae,Et,It,"\u21AC","\\looparrowright",!0),J(ae,Et,It,"\u21B7","\\curvearrowright",!0),J(ae,Et,It,"\u21BB","\\circlearrowright",!0),J(ae,Et,It,"\u21B1","\\Rsh",!0),J(ae,Et,It,"\u21CA","\\downdownarrows",!0),J(ae,Et,It,"\u21BE","\\upharpoonright",!0),J(ae,Et,It,"\u21C2","\\downharpoonright",!0),J(ae,Et,It,"\u21DD","\\rightsquigarrow",!0),J(ae,Et,It,"\u21DD","\\leadsto"),J(ae,Et,It,"\u21DB","\\Rrightarrow",!0),J(ae,Et,It,"\u21BE","\\restriction"),J(ae,_e,Jt,"\u2018","`"),J(ae,_e,Jt,"$","\\$"),J(Yn,_e,Jt,"$","\\$"),J(Yn,_e,Jt,"$","\\textdollar"),J(ae,_e,Jt,"%","\\%"),J(Yn,_e,Jt,"%","\\%"),J(ae,_e,Jt,"_","\\_"),J(Yn,_e,Jt,"_","\\_"),J(Yn,_e,Jt,"_","\\textunderscore"),J(ae,_e,Jt,"\u2220","\\angle",!0),J(ae,_e,Jt,"\u221E","\\infty",!0),J(ae,_e,Jt,"\u2032","\\prime"),J(ae,_e,Jt,"\u25B3","\\triangle"),J(ae,_e,Jt,"\u0393","\\Gamma",!0),J(ae,_e,Jt,"\u0394","\\Delta",!0),J(ae,_e,Jt,"\u0398","\\Theta",!0),J(ae,_e,Jt,"\u039B","\\Lambda",!0),J(ae,_e,Jt,"\u039E","\\Xi",!0),J(ae,_e,Jt,"\u03A0","\\Pi",!0),J(ae,_e,Jt,"\u03A3","\\Sigma",!0),J(ae,_e,Jt,"\u03A5","\\Upsilon",!0),J(ae,_e,Jt,"\u03A6","\\Phi",!0),J(ae,_e,Jt,"\u03A8","\\Psi",!0),J(ae,_e,Jt,"\u03A9","\\Omega",!0),J(ae,_e,Jt,"A","\u0391"),J(ae,_e,Jt,"B","\u0392"),J(ae,_e,Jt,"E","\u0395"),J(ae,_e,Jt,"Z","\u0396"),J(ae,_e,Jt,"H","\u0397"),J(ae,_e,Jt,"I","\u0399"),J(ae,_e,Jt,"K","\u039A"),J(ae,_e,Jt,"M","\u039C"),J(ae,_e,Jt,"N","\u039D"),J(ae,_e,Jt,"O","\u039F"),J(ae,_e,Jt,"P","\u03A1"),J(ae,_e,Jt,"T","\u03A4"),J(ae,_e,Jt,"X","\u03A7"),J(ae,_e,Jt,"\xAC","\\neg",!0),J(ae,_e,Jt,"\xAC","\\lnot"),J(ae,_e,Jt,"\u22A4","\\top"),J(ae,_e,Jt,"\u22A5","\\bot"),J(ae,_e,Jt,"\u2205","\\emptyset"),J(ae,Et,Jt,"\u2205","\\varnothing"),J(ae,_e,Ii,"\u03B1","\\alpha",!0),J(ae,_e,Ii,"\u03B2","\\beta",!0),J(ae,_e,Ii,"\u03B3","\\gamma",!0),J(ae,_e,Ii,"\u03B4","\\delta",!0),J(ae,_e,Ii,"\u03F5","\\epsilon",!0),J(ae,_e,Ii,"\u03B6","\\zeta",!0),J(ae,_e,Ii,"\u03B7","\\eta",!0),J(ae,_e,Ii,"\u03B8","\\theta",!0),J(ae,_e,Ii,"\u03B9","\\iota",!0),J(ae,_e,Ii,"\u03BA","\\kappa",!0),J(ae,_e,Ii,"\u03BB","\\lambda",!0),J(ae,_e,Ii,"\u03BC","\\mu",!0),J(ae,_e,Ii,"\u03BD","\\nu",!0),J(ae,_e,Ii,"\u03BE","\\xi",!0),J(ae,_e,Ii,"\u03BF","\\omicron",!0),J(ae,_e,Ii,"\u03C0","\\pi",!0),J(ae,_e,Ii,"\u03C1","\\rho",!0),J(ae,_e,Ii,"\u03C3","\\sigma",!0),J(ae,_e,Ii,"\u03C4","\\tau",!0),J(ae,_e,Ii,"\u03C5","\\upsilon",!0),J(ae,_e,Ii,"\u03D5","\\phi",!0),J(ae,_e,Ii,"\u03C7","\\chi",!0),J(ae,_e,Ii,"\u03C8","\\psi",!0),J(ae,_e,Ii,"\u03C9","\\omega",!0),J(ae,_e,Ii,"\u03B5","\\varepsilon",!0),J(ae,_e,Ii,"\u03D1","\\vartheta",!0),J(ae,_e,Ii,"\u03D6","\\varpi",!0),J(ae,_e,Ii,"\u03F1","\\varrho",!0),J(ae,_e,Ii,"\u03C2","\\varsigma",!0),J(ae,_e,Ii,"\u03C6","\\varphi",!0),J(ae,_e,Pn,"\u2217","*",!0),J(ae,_e,Pn,"+","+"),J(ae,_e,Pn,"\u2212","-",!0),J(ae,_e,Pn,"\u22C5","\\cdot",!0),J(ae,_e,Pn,"\u2218","\\circ",!0),J(ae,_e,Pn,"\xF7","\\div",!0),J(ae,_e,Pn,"\xB1","\\pm",!0),J(ae,_e,Pn,"\xD7","\\times",!0),J(ae,_e,Pn,"\u2229","\\cap",!0),J(ae,_e,Pn,"\u222A","\\cup",!0),J(ae,_e,Pn,"\u2216","\\setminus",!0),J(ae,_e,Pn,"\u2227","\\land"),J(ae,_e,Pn,"\u2228","\\lor"),J(ae,_e,Pn,"\u2227","\\wedge",!0),J(ae,_e,Pn,"\u2228","\\vee",!0),J(ae,_e,Jt,"\u221A","\\surd"),J(ae,_e,Yi,"\u27E8","\\langle",!0),J(ae,_e,Yi,"\u2223","\\lvert"),J(ae,_e,Yi,"\u2225","\\lVert"),J(ae,_e,Ki,"?","?"),J(ae,_e,Ki,"!","!"),J(ae,_e,Ki,"\u27E9","\\rangle",!0),J(ae,_e,Ki,"\u2223","\\rvert"),J(ae,_e,Ki,"\u2225","\\rVert"),J(ae,_e,It,"=","="),J(ae,_e,It,":",":"),J(ae,_e,It,"\u2248","\\approx",!0),J(ae,_e,It,"\u2245","\\cong",!0),J(ae,_e,It,"\u2265","\\ge"),J(ae,_e,It,"\u2265","\\geq",!0),J(ae,_e,It,"\u2190","\\gets"),J(ae,_e,It,">","\\gt",!0),J(ae,_e,It,"\u2208","\\in",!0),J(ae,_e,It,"\uE020","\\@not"),J(ae,_e,It,"\u2282","\\subset",!0),J(ae,_e,It,"\u2283","\\supset",!0),J(ae,_e,It,"\u2286","\\subseteq",!0),J(ae,_e,It,"\u2287","\\supseteq",!0),J(ae,Et,It,"\u2288","\\nsubseteq",!0),J(ae,Et,It,"\u2289","\\nsupseteq",!0),J(ae,_e,It,"\u22A8","\\models"),J(ae,_e,It,"\u2190","\\leftarrow",!0),J(ae,_e,It,"\u2264","\\le"),J(ae,_e,It,"\u2264","\\leq",!0),J(ae,_e,It,"<","\\lt",!0),J(ae,_e,It,"\u2192","\\rightarrow",!0),J(ae,_e,It,"\u2192","\\to"),J(ae,Et,It,"\u2271","\\ngeq",!0),J(ae,Et,It,"\u2270","\\nleq",!0),J(ae,_e,Mo,"\xA0","\\ "),J(ae,_e,Mo,"\xA0","\\space"),J(ae,_e,Mo,"\xA0","\\nobreakspace"),J(Yn,_e,Mo,"\xA0","\\ "),J(Yn,_e,Mo,"\xA0"," "),J(Yn,_e,Mo,"\xA0","\\space"),J(Yn,_e,Mo,"\xA0","\\nobreakspace"),J(ae,_e,Mo,null,"\\nobreak"),J(ae,_e,Mo,null,"\\allowbreak"),J(ae,_e,io,",",","),J(ae,_e,io,";",";"),J(ae,Et,Pn,"\u22BC","\\barwedge",!0),J(ae,Et,Pn,"\u22BB","\\veebar",!0),J(ae,_e,Pn,"\u2299","\\odot",!0),J(ae,_e,Pn,"\u2295","\\oplus",!0),J(ae,_e,Pn,"\u2297","\\otimes",!0),J(ae,_e,Jt,"\u2202","\\partial",!0),J(ae,_e,Pn,"\u2298","\\oslash",!0),J(ae,Et,Pn,"\u229A","\\circledcirc",!0),J(ae,Et,Pn,"\u22A1","\\boxdot",!0),J(ae,_e,Pn,"\u25B3","\\bigtriangleup"),J(ae,_e,Pn,"\u25BD","\\bigtriangledown"),J(ae,_e,Pn,"\u2020","\\dagger"),J(ae,_e,Pn,"\u22C4","\\diamond"),J(ae,_e,Pn,"\u22C6","\\star"),J(ae,_e,Pn,"\u25C3","\\triangleleft"),J(ae,_e,Pn,"\u25B9","\\triangleright"),J(ae,_e,Yi,"{","\\{"),J(Yn,_e,Jt,"{","\\{"),J(Yn,_e,Jt,"{","\\textbraceleft"),J(ae,_e,Ki,"}","\\}"),J(Yn,_e,Jt,"}","\\}"),J(Yn,_e,Jt,"}","\\textbraceright"),J(ae,_e,Yi,"{","\\lbrace"),J(ae,_e,Ki,"}","\\rbrace"),J(ae,_e,Yi,"[","\\lbrack",!0),J(Yn,_e,Jt,"[","\\lbrack",!0),J(ae,_e,Ki,"]","\\rbrack",!0),J(Yn,_e,Jt,"]","\\rbrack",!0),J(ae,_e,Yi,"(","\\lparen",!0),J(ae,_e,Ki,")","\\rparen",!0),J(Yn,_e,Jt,"<","\\textless",!0),J(Yn,_e,Jt,">","\\textgreater",!0),J(ae,_e,Yi,"\u230A","\\lfloor",!0),J(ae,_e,Ki,"\u230B","\\rfloor",!0),J(ae,_e,Yi,"\u2308","\\lceil",!0),J(ae,_e,Ki,"\u2309","\\rceil",!0),J(ae,_e,Jt,"\\","\\backslash"),J(ae,_e,Jt,"\u2223","|"),J(ae,_e,Jt,"\u2223","\\vert"),J(Yn,_e,Jt,"|","\\textbar",!0),J(ae,_e,Jt,"\u2225","\\|"),J(ae,_e,Jt,"\u2225","\\Vert"),J(Yn,_e,Jt,"\u2225","\\textbardbl"),J(Yn,_e,Jt,"~","\\textasciitilde"),J(Yn,_e,Jt,"\\","\\textbackslash"),J(Yn,_e,Jt,"^","\\textasciicircum"),J(ae,_e,It,"\u2191","\\uparrow",!0),J(ae,_e,It,"\u21D1","\\Uparrow",!0),J(ae,_e,It,"\u2193","\\downarrow",!0),J(ae,_e,It,"\u21D3","\\Downarrow",!0),J(ae,_e,It,"\u2195","\\updownarrow",!0),J(ae,_e,It,"\u21D5","\\Updownarrow",!0),J(ae,_e,Wt,"\u2210","\\coprod"),J(ae,_e,Wt,"\u22C1","\\bigvee"),J(ae,_e,Wt,"\u22C0","\\bigwedge"),J(ae,_e,Wt,"\u2A04","\\biguplus"),J(ae,_e,Wt,"\u22C2","\\bigcap"),J(ae,_e,Wt,"\u22C3","\\bigcup"),J(ae,_e,Wt,"\u222B","\\int"),J(ae,_e,Wt,"\u222B","\\intop"),J(ae,_e,Wt,"\u222C","\\iint"),J(ae,_e,Wt,"\u222D","\\iiint"),J(ae,_e,Wt,"\u220F","\\prod"),J(ae,_e,Wt,"\u2211","\\sum"),J(ae,_e,Wt,"\u2A02","\\bigotimes"),J(ae,_e,Wt,"\u2A01","\\bigoplus"),J(ae,_e,Wt,"\u2A00","\\bigodot"),J(ae,_e,Wt,"\u222E","\\oint"),J(ae,_e,Wt,"\u222F","\\oiint"),J(ae,_e,Wt,"\u2230","\\oiiint"),J(ae,_e,Wt,"\u2A06","\\bigsqcup"),J(ae,_e,Wt,"\u222B","\\smallint"),J(Yn,_e,Zt,"\u2026","\\textellipsis"),J(ae,_e,Zt,"\u2026","\\mathellipsis"),J(Yn,_e,Zt,"\u2026","\\ldots",!0),J(ae,_e,Zt,"\u2026","\\ldots",!0),J(ae,_e,Zt,"\u22EF","\\@cdots",!0),J(ae,_e,Zt,"\u22F1","\\ddots",!0),J(ae,_e,Jt,"\u22EE","\\varvdots"),J(Yn,_e,Jt,"\u22EE","\\varvdots"),J(ae,_e,Ni,"\u02CA","\\acute"),J(ae,_e,Ni,"\u02CB","\\grave"),J(ae,_e,Ni,"\xA8","\\ddot"),J(ae,_e,Ni,"~","\\tilde"),J(ae,_e,Ni,"\u02C9","\\bar"),J(ae,_e,Ni,"\u02D8","\\breve"),J(ae,_e,Ni,"\u02C7","\\check"),J(ae,_e,Ni,"^","\\hat"),J(ae,_e,Ni,"\u20D7","\\vec"),J(ae,_e,Ni,"\u02D9","\\dot"),J(ae,_e,Ni,"\u02DA","\\mathring"),J(ae,_e,Ii,"\uE131","\\@imath"),J(ae,_e,Ii,"\uE237","\\@jmath"),J(ae,_e,Jt,"\u0131","\u0131"),J(ae,_e,Jt,"\u0237","\u0237"),J(Yn,_e,Jt,"\u0131","\\i",!0),J(Yn,_e,Jt,"\u0237","\\j",!0),J(Yn,_e,Jt,"\xDF","\\ss",!0),J(Yn,_e,Jt,"\xE6","\\ae",!0),J(Yn,_e,Jt,"\u0153","\\oe",!0),J(Yn,_e,Jt,"\xF8","\\o",!0),J(Yn,_e,Jt,"\xC6","\\AE",!0),J(Yn,_e,Jt,"\u0152","\\OE",!0),J(Yn,_e,Jt,"\xD8","\\O",!0),J(Yn,_e,Ni,"\u02CA","\\'"),J(Yn,_e,Ni,"\u02CB","\\`"),J(Yn,_e,Ni,"\u02C6","\\^"),J(Yn,_e,Ni,"\u02DC","\\~"),J(Yn,_e,Ni,"\u02C9","\\="),J(Yn,_e,Ni,"\u02D8","\\u"),J(Yn,_e,Ni,"\u02D9","\\."),J(Yn,_e,Ni,"\xB8","\\c"),J(Yn,_e,Ni,"\u02DA","\\r"),J(Yn,_e,Ni,"\u02C7","\\v"),J(Yn,_e,Ni,"\xA8",'\\"'),J(Yn,_e,Ni,"\u02DD","\\H"),J(Yn,_e,Ni,"\u25EF","\\textcircled");var _i={"--":!0,"---":!0,"``":!0,"''":!0};J(Yn,_e,Jt,"\u2013","--",!0),J(Yn,_e,Jt,"\u2013","\\textendash"),J(Yn,_e,Jt,"\u2014","---",!0),J(Yn,_e,Jt,"\u2014","\\textemdash"),J(Yn,_e,Jt,"\u2018","`",!0),J(Yn,_e,Jt,"\u2018","\\textquoteleft"),J(Yn,_e,Jt,"\u2019","'",!0),J(Yn,_e,Jt,"\u2019","\\textquoteright"),J(Yn,_e,Jt,"\u201C","``",!0),J(Yn,_e,Jt,"\u201C","\\textquotedblleft"),J(Yn,_e,Jt,"\u201D","''",!0),J(Yn,_e,Jt,"\u201D","\\textquotedblright"),J(ae,_e,Jt,"\xB0","\\degree",!0),J(Yn,_e,Jt,"\xB0","\\degree"),J(Yn,_e,Jt,"\xB0","\\textdegree",!0),J(ae,_e,Jt,"\xA3","\\pounds"),J(ae,_e,Jt,"\xA3","\\mathsterling",!0),J(Yn,_e,Jt,"\xA3","\\pounds"),J(Yn,_e,Jt,"\xA3","\\textsterling",!0),J(ae,Et,Jt,"\u2720","\\maltese"),J(Yn,Et,Jt,"\u2720","\\maltese");for(var Li='0123456789/@."',Sr=0;Sr<Li.length;Sr++){var Or=Li.charAt(Sr);J(ae,_e,Jt,Or,Or)}for(var qn='0123456789!@*()-=+";:?/.,',ce=0;ce<qn.length;ce++){var Ar=qn.charAt(ce);J(Yn,_e,Jt,Ar,Ar)}for(var eo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",br=0;br<eo.length;br++){var fo=eo.charAt(br);J(ae,_e,Ii,fo,fo),J(Yn,_e,Jt,fo,fo)}J(ae,Et,Jt,"C","\u2102"),J(Yn,Et,Jt,"C","\u2102"),J(ae,Et,Jt,"H","\u210D"),J(Yn,Et,Jt,"H","\u210D"),J(ae,Et,Jt,"N","\u2115"),J(Yn,Et,Jt,"N","\u2115"),J(ae,Et,Jt,"P","\u2119"),J(Yn,Et,Jt,"P","\u2119"),J(ae,Et,Jt,"Q","\u211A"),J(Yn,Et,Jt,"Q","\u211A"),J(ae,Et,Jt,"R","\u211D"),J(Yn,Et,Jt,"R","\u211D"),J(ae,Et,Jt,"Z","\u2124"),J(Yn,Et,Jt,"Z","\u2124"),J(ae,_e,Ii,"h","\u210E"),J(Yn,_e,Ii,"h","\u210E");for(var qi="",Xr=0;Xr<eo.length;Xr++){var Ri=eo.charAt(Xr);qi=String.fromCharCode(55349,56320+Xr),J(ae,_e,Ii,Ri,qi),J(Yn,_e,Jt,Ri,qi),qi=String.fromCharCode(55349,56372+Xr),J(ae,_e,Ii,Ri,qi),J(Yn,_e,Jt,Ri,qi),qi=String.fromCharCode(55349,56424+Xr),J(ae,_e,Ii,Ri,qi),J(Yn,_e,Jt,Ri,qi),qi=String.fromCharCode(55349,56580+Xr),J(ae,_e,Ii,Ri,qi),J(Yn,_e,Jt,Ri,qi),qi=String.fromCharCode(55349,56684+Xr),J(ae,_e,Ii,Ri,qi),J(Yn,_e,Jt,Ri,qi),qi=String.fromCharCode(55349,56736+Xr),J(ae,_e,Ii,Ri,qi),J(Yn,_e,Jt,Ri,qi),qi=String.fromCharCode(55349,56788+Xr),J(ae,_e,Ii,Ri,qi),J(Yn,_e,Jt,Ri,qi),qi=String.fromCharCode(55349,56840+Xr),J(ae,_e,Ii,Ri,qi),J(Yn,_e,Jt,Ri,qi),qi=String.fromCharCode(55349,56944+Xr),J(ae,_e,Ii,Ri,qi),J(Yn,_e,Jt,Ri,qi),Xr<26&&(qi=String.fromCharCode(55349,56632+Xr),J(ae,_e,Ii,Ri,qi),J(Yn,_e,Jt,Ri,qi),qi=String.fromCharCode(55349,56476+Xr),J(ae,_e,Ii,Ri,qi),J(Yn,_e,Jt,Ri,qi))}qi="\u{1D55C}",J(ae,_e,Ii,"k",qi),J(Yn,_e,Jt,"k",qi);for(var Vi=0;Vi<10;Vi++){var Hi=Vi.toString();qi=String.fromCharCode(55349,57294+Vi),J(ae,_e,Ii,Hi,qi),J(Yn,_e,Jt,Hi,qi),qi=String.fromCharCode(55349,57314+Vi),J(ae,_e,Ii,Hi,qi),J(Yn,_e,Jt,Hi,qi),qi=String.fromCharCode(55349,57324+Vi),J(ae,_e,Ii,Hi,qi),J(Yn,_e,Jt,Hi,qi),qi=String.fromCharCode(55349,57334+Vi),J(ae,_e,Ii,Hi,qi),J(Yn,_e,Jt,Hi,qi)}for(var $r="\xD0\xDE\xFE",Vr=0;Vr<$r.length;Vr++){var wo=$r.charAt(Vr);J(ae,_e,Ii,wo,wo),J(Yn,_e,Jt,wo,wo)}var Ko=[["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"]],mi=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Rs=function(m,S){var R=m.charCodeAt(0),Y=m.charCodeAt(1),re=(R-55296)*1024+(Y-56320)+65536,Z=S==="math"?0:1;if(119808<=re&&re<120484){var st=Math.floor((re-119808)/26);return[Ko[st][2],Ko[st][Z]]}else if(120782<=re&&re<=120831){var dt=Math.floor((re-120782)/10);return[mi[dt][2],mi[dt][Z]]}else{if(re===120485||re===120486)return[Ko[0][2],Ko[0][Z]];if(120486<re&&re<120782)return["",""];throw new Dt("Unsupported character: "+m)}},fs=function(m,S,R){return Qi[R][m]&&Qi[R][m].replace&&(m=Qi[R][m].replace),{value:m,metrics:ht(m,S,R)}},cs=function(m,S,R,Y,re){var Z=fs(m,S,R),st=Z.metrics;m=Z.value;var dt;if(st){var pn=st.italic;(R==="text"||Y&&Y.font==="mathit")&&(pn=0),dt=new En(m,st.height,st.depth,pn,st.skew,st.width,re)}else typeof console!="undefined"&&console.warn("No character metrics "+("for '"+m+"' in style '"+S+"' and mode '"+R+"'")),dt=new En(m,0,0,0,0,0,re);if(Y){dt.maxFontSize=Y.sizeMultiplier,Y.style.isTight()&&dt.classes.push("mtight");var Ln=Y.getColor();Ln&&(dt.style.color=Ln)}return dt},Bs=function(m,S,R,Y){return Y===void 0&&(Y=[]),R.font==="boldsymbol"&&fs(m,"Main-Bold",S).metrics?cs(m,"Main-Bold",S,R,Y.concat(["mathbf"])):m==="\\"||Qi[S][m].font==="main"?cs(m,"Main-Regular",S,R,Y):cs(m,"AMS-Regular",S,R,Y.concat(["amsrm"]))},ca=function(m,S,R,Y,re){return re!=="textord"&&fs(m,"Math-BoldItalic",S).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Ya=function(m,S,R){var Y=m.mode,re=m.text,Z=["mord"],st=Y==="math"||Y==="text"&&S.font,dt=st?S.font:S.fontFamily,pn="",Ln="";if(re.charCodeAt(0)===55349&&([pn,Ln]=Rs(re,Y)),pn.length>0)return cs(re,pn,Y,S,Z.concat(Ln));if(dt){var Vn,wi;if(dt==="boldsymbol"){var Ti=ca(re,Y,S,Z,R);Vn=Ti.fontName,wi=[Ti.fontClass]}else st?(Vn=Co[dt].fontName,wi=[dt]):(Vn=zr(dt,S.fontWeight,S.fontShape),wi=[dt,S.fontWeight,S.fontShape]);if(fs(re,Vn,Y).metrics)return cs(re,Vn,Y,S,Z.concat(wi));if(_i.hasOwnProperty(re)&&Vn.slice(0,10)==="Typewriter"){for(var Pi=[],vr=0;vr<re.length;vr++)Pi.push(cs(re[vr],Vn,Y,S,Z.concat(wi)));return Ml(Pi)}}if(R==="mathord")return cs(re,"Math-Italic",Y,S,Z.concat(["mathnormal"]));if(R==="textord"){var Pr=Qi[Y][re]&&Qi[Y][re].font;if(Pr==="ams"){var Fr=zr("amsrm",S.fontWeight,S.fontShape);return cs(re,Fr,Y,S,Z.concat("amsrm",S.fontWeight,S.fontShape))}else if(Pr==="main"||!Pr){var Eo=zr("textrm",S.fontWeight,S.fontShape);return cs(re,Eo,Y,S,Z.concat(S.fontWeight,S.fontShape))}else{var Ho=zr(Pr,S.fontWeight,S.fontShape);return cs(re,Ho,Y,S,Z.concat(Ho,S.fontWeight,S.fontShape))}}else throw new Error("unexpected type: "+R+" in makeOrd")},ra=(T,m)=>{if(xi(T.classes)!==xi(m.classes)||T.skew!==m.skew||T.maxFontSize!==m.maxFontSize)return!1;if(T.classes.length===1){var S=T.classes[0];if(S==="mbin"||S==="mord")return!1}for(var R in T.style)if(T.style.hasOwnProperty(R)&&T.style[R]!==m.style[R])return!1;for(var Y in m.style)if(m.style.hasOwnProperty(Y)&&T.style[Y]!==m.style[Y])return!1;return!0},Ha=T=>{for(var m=0;m<T.length-1;m++){var S=T[m],R=T[m+1];S instanceof En&&R instanceof En&&ra(S,R)&&(S.text+=R.text,S.height=Math.max(S.height,R.height),S.depth=Math.max(S.depth,R.depth),S.italic=R.italic,T.splice(m+1,1),m--)}return T},ya=function(m){for(var S=0,R=0,Y=0,re=0;re<m.children.length;re++){var Z=m.children[re];Z.height>S&&(S=Z.height),Z.depth>R&&(R=Z.depth),Z.maxFontSize>Y&&(Y=Z.maxFontSize)}m.height=S,m.depth=R,m.maxFontSize=Y},ns=function(m,S,R,Y){var re=new D(m,S,R,Y);return ya(re),re},Ht=(T,m,S,R)=>new D(T,m,S,R),Ws=function(m,S,R){var Y=ns([m],[],S);return Y.height=Math.max(R||S.fontMetrics().defaultRuleThickness,S.minRuleThickness),Y.style.borderBottomWidth=tn(Y.height),Y.maxFontSize=1,Y},Eu=function(m,S,R,Y){var re=new Gt(m,S,R,Y);return ya(re),re},Ml=function(m){var S=new Tr(m);return ya(S),S},po=function(m,S){return m instanceof Tr?ns([],[m],S):m},_o=function(m){if(m.positionType==="individualShift"){for(var S=m.children,R=[S[0]],Y=-S[0].shift-S[0].elem.depth,re=Y,Z=1;Z<S.length;Z++){var st=-S[Z].shift-re-S[Z].elem.depth,dt=st-(S[Z-1].elem.height+S[Z-1].elem.depth);re=re+st,R.push({type:"kern",size:dt}),R.push(S[Z])}return{children:R,depth:Y}}var pn;if(m.positionType==="top"){for(var Ln=m.positionData,Vn=0;Vn<m.children.length;Vn++){var wi=m.children[Vn];Ln-=wi.type==="kern"?wi.size:wi.elem.height+wi.elem.depth}pn=Ln}else if(m.positionType==="bottom")pn=-m.positionData;else{var Ti=m.children[0];if(Ti.type!=="elem")throw new Error('First child must have type "elem".');if(m.positionType==="shift")pn=-Ti.elem.depth-m.positionData;else if(m.positionType==="firstBaseline")pn=-Ti.elem.depth;else throw new Error("Invalid positionType "+m.positionType+".")}return{children:m.children,depth:pn}},Ss=function(m,S){for(var{children:R,depth:Y}=_o(m),re=0,Z=0;Z<R.length;Z++){var st=R[Z];if(st.type==="elem"){var dt=st.elem;re=Math.max(re,dt.maxFontSize,dt.height)}}re+=2;var pn=ns(["pstrut"],[]);pn.style.height=tn(re);for(var Ln=[],Vn=Y,wi=Y,Ti=Y,Pi=0;Pi<R.length;Pi++){var vr=R[Pi];if(vr.type==="kern")Ti+=vr.size;else{var Pr=vr.elem,Fr=vr.wrapperClasses||[],Eo=vr.wrapperStyle||{},Ho=ns(Fr,[pn,Pr],void 0,Eo);Ho.style.top=tn(-re-Ti-Pr.depth),vr.marginLeft&&(Ho.style.marginLeft=vr.marginLeft),vr.marginRight&&(Ho.style.marginRight=vr.marginRight),Ln.push(Ho),Ti+=Pr.height+Pr.depth}Vn=Math.min(Vn,Ti),wi=Math.max(wi,Ti)}var Ms=ns(["vlist"],Ln);Ms.style.height=tn(wi);var Jo;if(Vn<0){var $o=ns([],[]),ds=ns(["vlist"],[$o]);ds.style.height=tn(-Vn);var oa=ns(["vlist-s"],[new En("\u200B")]);Jo=[ns(["vlist-r"],[Ms,oa]),ns(["vlist-r"],[ds])]}else Jo=[ns(["vlist-r"],[Ms])];var ls=ns(["vlist-t"],Jo);return Jo.length===2&&ls.classes.push("vlist-t2"),ls.height=wi,ls.depth=-Vn,ls},Ut=(T,m)=>{var S=ns(["mspace"],[],m),R=gn(T,m);return S.style.marginRight=tn(R),S},zr=function(m,S,R){var Y="";switch(m){case"amsrm":Y="AMS";break;case"textrm":Y="Main";break;case"textsf":Y="SansSerif";break;case"texttt":Y="Typewriter";break;default:Y=m}var re;return S==="textbf"&&R==="textit"?re="BoldItalic":S==="textbf"?re="Bold":S==="textit"?re="Italic":re="Regular",Y+"-"+re},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"}},ba={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Er=function(m,S){var[R,Y,re]=ba[m],Z=new ki(R),st=new Mn([Z],{width:tn(Y),height:tn(re),style:"width:"+tn(Y),viewBox:"0 0 "+1e3*Y+" "+1e3*re,preserveAspectRatio:"xMinYMin"}),dt=Ht(["overlay"],[st],S);return dt.height=re,dt.style.height=tn(re),dt.style.width=tn(Y),dt},yn={fontMap:Co,makeSymbol:cs,mathsym:Bs,makeSpan:ns,makeSvgSpan:Ht,makeLineSpan:Ws,makeAnchor:Eu,makeFragment:Ml,wrapFragment:po,makeVList:Ss,makeOrd:Ya,makeGlue:Ut,staticSvg:Er,svgData:ba,tryCombineChars:Ha},pr={number:3,unit:"mu"},pi={number:4,unit:"mu"},Yo={number:5,unit:"mu"},Ns={mord:{mop:pr,mbin:pi,mrel:Yo,minner:pr},mop:{mord:pr,mop:pr,mrel:Yo,minner:pr},mbin:{mord:pi,mop:pi,mopen:pi,minner:pi},mrel:{mord:Yo,mop:Yo,mopen:Yo,minner:Yo},mopen:{},mclose:{mop:pr,mbin:pi,mrel:Yo,minner:pr},mpunct:{mord:pr,mop:pr,mrel:Yo,mopen:pr,mclose:pr,mpunct:pr,minner:pr},minner:{mord:pr,mop:pr,mbin:pi,mrel:Yo,mopen:pr,mpunct:pr,minner:pr}},ha={mord:{mop:pr},mop:{mord:pr,mop:pr},mbin:{},mrel:{},mopen:{},mclose:{mop:pr},mpunct:{},minner:{mop:pr}},Oa={},Ca={},oi={};function Di(T){for(var{type:m,names:S,props:R,handler:Y,htmlBuilder:re,mathmlBuilder:Z}=T,st={type:m,numArgs:R.numArgs,argTypes:R.argTypes,allowedInArgument:!!R.allowedInArgument,allowedInText:!!R.allowedInText,allowedInMath:R.allowedInMath===void 0?!0:R.allowedInMath,numOptionalArgs:R.numOptionalArgs||0,infix:!!R.infix,primitive:!!R.primitive,handler:Y},dt=0;dt<S.length;++dt)Oa[S[dt]]=st;m&&(re&&(Ca[m]=re),Z&&(oi[m]=Z))}function Qo(T){var{type:m,htmlBuilder:S,mathmlBuilder:R}=T;Di({type:m,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:S,mathmlBuilder:R})}var Ta=function(m){return m.type==="ordgroup"&&m.body.length===1?m.body[0]:m},Go=function(m){return m.type==="ordgroup"?m.body:[m]},Js=yn.makeSpan,kr=["leftmost","mbin","mopen","mrel","mop","mpunct"],ol=["rightmost","mrel","mclose","mpunct"],La={display:Cn.DISPLAY,text:Cn.TEXT,script:Cn.SCRIPT,scriptscript:Cn.SCRIPTSCRIPT},Ra={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},zo=function(m,S,R,Y){Y===void 0&&(Y=[null,null]);for(var re=[],Z=0;Z<m.length;Z++){var st=Wo(m[Z],S);if(st instanceof Tr){var dt=st.children;re.push(...dt)}else re.push(st)}if(yn.tryCombineChars(re),!R)return re;var pn=S;if(m.length===1){var Ln=m[0];Ln.type==="sizing"?pn=S.havingSize(Ln.size):Ln.type==="styling"&&(pn=S.havingStyle(La[Ln.style]))}var Vn=Js([Y[0]||"leftmost"],[],S),wi=Js([Y[1]||"rightmost"],[],S),Ti=R==="root";return qs(re,(Pi,vr)=>{var Pr=vr.classes[0],Fr=Pi.classes[0];Pr==="mbin"&&N.contains(ol,Fr)?vr.classes[0]="mord":Fr==="mbin"&&N.contains(kr,Pr)&&(Pi.classes[0]="mord")},{node:Vn},wi,Ti),qs(re,(Pi,vr)=>{var Pr=As(vr),Fr=As(Pi),Eo=Pr&&Fr?Pi.hasClass("mtight")?ha[Pr][Fr]:Ns[Pr][Fr]:null;if(Eo)return yn.makeGlue(Eo,pn)},{node:Vn},wi,Ti),re},qs=function T(m,S,R,Y,re){Y&&m.push(Y);for(var Z=0;Z<m.length;Z++){var st=m[Z],dt=Ol(st);if(dt){T(dt.children,S,R,null,re);continue}var pn=!st.hasClass("mspace");if(pn){var Ln=S(st,R.node);Ln&&(R.insertAfter?R.insertAfter(Ln):(m.unshift(Ln),Z++))}pn?R.node=st:re&&st.hasClass("newline")&&(R.node=Js(["leftmost"])),R.insertAfter=(Vn=>wi=>{m.splice(Vn+1,0,wi),Z++})(Z)}Y&&m.pop()},Ol=function(m){return m instanceof Tr||m instanceof Gt||m instanceof D&&m.hasClass("enclosing")?m:null},Vs=function T(m,S){var R=Ol(m);if(R){var Y=R.children;if(Y.length){if(S==="right")return T(Y[Y.length-1],"right");if(S==="left")return T(Y[0],"left")}}return m},As=function(m,S){return m?(S&&(m=Vs(m,S)),Ra[m.classes[0]]||null):null},pl=function(m,S){var R=["nulldelimiter"].concat(m.baseSizingClasses());return Js(S.concat(R))},Wo=function(m,S,R){if(!m)return Js();if(Ca[m.type]){var Y=Ca[m.type](m,S);if(R&&S.size!==R.size){Y=Js(S.sizingClasses(R),[Y],S);var re=S.sizeMultiplier/R.sizeMultiplier;Y.height*=re,Y.depth*=re}return Y}else throw new Dt("Got group of unknown type: '"+m.type+"'")};function $a(T,m){var S=Js(["base"],T,m),R=Js(["strut"]);return R.style.height=tn(S.height+S.depth),S.depth&&(R.style.verticalAlign=tn(-S.depth)),S.children.unshift(R),S}function wu(T,m){var S=null;T.length===1&&T[0].type==="tag"&&(S=T[0].tag,T=T[0].body);var R=zo(T,m,"root"),Y;R.length===2&&R[1].hasClass("tag")&&(Y=R.pop());for(var re=[],Z=[],st=0;st<R.length;st++)if(Z.push(R[st]),R[st].hasClass("mbin")||R[st].hasClass("mrel")||R[st].hasClass("allowbreak")){for(var dt=!1;st<R.length-1&&R[st+1].hasClass("mspace")&&!R[st+1].hasClass("newline");)st++,Z.push(R[st]),R[st].hasClass("nobreak")&&(dt=!0);dt||(re.push($a(Z,m)),Z=[])}else R[st].hasClass("newline")&&(Z.pop(),Z.length>0&&(re.push($a(Z,m)),Z=[]),re.push(R[st]));Z.length>0&&re.push($a(Z,m));var pn;S?(pn=$a(zo(S,m,!0)),pn.classes=["tag"],re.push(pn)):Y&&re.push(Y);var Ln=Js(["katex-html"],re);if(Ln.setAttribute("aria-hidden","true"),pn){var Vn=pn.children[0];Vn.style.height=tn(Ln.height+Ln.depth),Ln.depth&&(Vn.style.verticalAlign=tn(-Ln.depth))}return Ln}function Ll(T){return new Tr(T)}class ea{constructor(m,S,R){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=R||[]}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=xi(this.classes));for(var R=0;R<this.children.length;R++)if(this.children[R]instanceof Ls&&this.children[R+1]instanceof Ls){for(var Y=this.children[R].toText()+this.children[++R].toText();this.children[R+1]instanceof Ls;)Y+=this.children[++R].toText();m.appendChild(new Ls(Y).toNode())}else m.appendChild(this.children[R].toNode());return m}toMarkup(){var m="<"+this.type;for(var S in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,S)&&(m+=" "+S+'="',m+=N.escape(this.attributes[S]),m+='"');this.classes.length>0&&(m+=' class ="'+N.escape(xi(this.classes))+'"'),m+=">";for(var R=0;R<this.children.length;R++)m+=this.children[R].toMarkup();return m+="</"+this.type+">",m}toText(){return this.children.map(m=>m.toText()).join("")}}class Ls{constructor(m){this.text=void 0,this.text=m}toNode(){return document.createTextNode(this.text)}toMarkup(){return N.escape(this.toText())}toText(){return this.text}}class ja{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",tn(this.width)),m}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+tn(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var $i={MathNode:ea,TextNode:Ls,SpaceNode:ja,newDocumentFragment:Ll},Na=function(m,S,R){return Qi[S][m]&&Qi[S][m].replace&&m.charCodeAt(0)!==55349&&!(_i.hasOwnProperty(m)&&R&&(R.fontFamily&&R.fontFamily.slice(4,6)==="tt"||R.font&&R.font.slice(4,6)==="tt"))&&(m=Qi[S][m].replace),new $i.TextNode(m)},Rl=function(m){return m.length===1?m[0]:new $i.MathNode("mrow",m)},Ur=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 R=S.font;if(!R||R==="mathnormal")return null;var Y=m.mode;if(R==="mathit")return"italic";if(R==="boldsymbol")return m.type==="textord"?"bold":"bold-italic";if(R==="mathbf")return"bold";if(R==="mathbb")return"double-struck";if(R==="mathsfit")return"sans-serif-italic";if(R==="mathfrak")return"fraktur";if(R==="mathscr"||R==="mathcal")return"script";if(R==="mathsf")return"sans-serif";if(R==="mathtt")return"monospace";var re=m.text;if(N.contains(["\\imath","\\jmath"],re))return null;Qi[Y][re]&&Qi[Y][re].replace&&(re=Qi[Y][re].replace);var Z=yn.fontMap[R].fontName;return ht(re,Z,Y)?yn.fontMap[R].variant:null};function bo(T){if(!T)return!1;if(T.type==="mi"&&T.children.length===1){var m=T.children[0];return m instanceof Ls&&m.text==="."}else if(T.type==="mo"&&T.children.length===1&&T.getAttribute("separator")==="true"&&T.getAttribute("lspace")==="0em"&&T.getAttribute("rspace")==="0em"){var S=T.children[0];return S instanceof Ls&&S.text===","}else return!1}var hs=function(m,S,R){if(m.length===1){var Y=qr(m[0],S);return R&&Y instanceof ea&&Y.type==="mo"&&(Y.setAttribute("lspace","0em"),Y.setAttribute("rspace","0em")),[Y]}for(var re=[],Z,st=0;st<m.length;st++){var dt=qr(m[st],S);if(dt instanceof ea&&Z instanceof ea){if(dt.type==="mtext"&&Z.type==="mtext"&&dt.getAttribute("mathvariant")===Z.getAttribute("mathvariant")){Z.children.push(...dt.children);continue}else if(dt.type==="mn"&&Z.type==="mn"){Z.children.push(...dt.children);continue}else if(bo(dt)&&Z.type==="mn"){Z.children.push(...dt.children);continue}else if(dt.type==="mn"&&bo(Z))dt.children=[...Z.children,...dt.children],re.pop();else if((dt.type==="msup"||dt.type==="msub")&&dt.children.length>=1&&(Z.type==="mn"||bo(Z))){var pn=dt.children[0];pn instanceof ea&&pn.type==="mn"&&(pn.children=[...Z.children,...pn.children],re.pop())}else if(Z.type==="mi"&&Z.children.length===1){var Ln=Z.children[0];if(Ln instanceof Ls&&Ln.text==="\u0338"&&(dt.type==="mo"||dt.type==="mi"||dt.type==="mn")){var Vn=dt.children[0];Vn instanceof Ls&&Vn.text.length>0&&(Vn.text=Vn.text.slice(0,1)+"\u0338"+Vn.text.slice(1),re.pop())}}}re.push(dt),Z=dt}return re},is=function(m,S,R){return Rl(hs(m,S,R))},qr=function(m,S){if(!m)return new $i.MathNode("mrow");if(oi[m.type]){var R=oi[m.type](m,S);return R}else throw new Dt("Got group of unknown type: '"+m.type+"'")};function rs(T,m,S,R,Y){var re=hs(T,S),Z;re.length===1&&re[0]instanceof ea&&N.contains(["mrow","mtable"],re[0].type)?Z=re[0]:Z=new $i.MathNode("mrow",re);var st=new $i.MathNode("annotation",[new $i.TextNode(m)]);st.setAttribute("encoding","application/x-tex");var dt=new $i.MathNode("semantics",[Z,st]),pn=new $i.MathNode("math",[dt]);pn.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),R&&pn.setAttribute("display","block");var Ln=Y?"katex":"katex-mathml";return yn.makeSpan([Ln],[pn])}var ps=function(m){return new Sn({style:m.displayMode?Cn.DISPLAY:Cn.TEXT,maxSize:m.maxSize,minRuleThickness:m.minRuleThickness})},ks=function(m,S){if(S.displayMode){var R=["katex-display"];S.leqno&&R.push("leqno"),S.fleqn&&R.push("fleqn"),m=yn.makeSpan(R,[m])}return m},Es=function(m,S,R){var Y=ps(R),re;if(R.output==="mathml")return rs(m,S,Y,R.displayMode,!0);if(R.output==="html"){var Z=wu(m,Y);re=yn.makeSpan(["katex"],[Z])}else{var st=rs(m,S,Y,R.displayMode,!1),dt=wu(m,Y);re=yn.makeSpan(["katex"],[st,dt])}return ks(re,R)},Gl=function(m,S,R){var Y=ps(R),re=wu(m,Y),Z=yn.makeSpan(["katex"],[re]);return ks(Z,R)},Za={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":"="},ws=function(m){var S=new $i.MathNode("mo",[new $i.TextNode(Za[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]},Yu=function(m){return m.type==="ordgroup"?m.body.length:1},lu=function(m,S){function R(){var st=4e5,dt=m.label.slice(1);if(N.contains(["widehat","widecheck","widetilde","utilde"],dt)){var pn=m,Ln=Yu(pn.base),Vn,wi,Ti;if(Ln>5)dt==="widehat"||dt==="widecheck"?(Vn=420,st=2364,Ti=.42,wi=dt+"4"):(Vn=312,st=2340,Ti=.34,wi="tilde4");else{var Pi=[1,1,2,2,3,3][Ln];dt==="widehat"||dt==="widecheck"?(st=[0,1062,2364,2364,2364][Pi],Vn=[0,239,300,360,420][Pi],Ti=[0,.24,.3,.3,.36,.42][Pi],wi=dt+Pi):(st=[0,600,1033,2339,2340][Pi],Vn=[0,260,286,306,312][Pi],Ti=[0,.26,.286,.3,.306,.34][Pi],wi="tilde"+Pi)}var vr=new ki(wi),Pr=new Mn([vr],{width:"100%",height:tn(Ti),viewBox:"0 0 "+st+" "+Vn,preserveAspectRatio:"none"});return{span:yn.makeSvgSpan([],[Pr],S),minWidth:0,height:Ti}}else{var Fr=[],Eo=hc[dt],[Ho,Ms,Jo]=Eo,$o=Jo/1e3,ds=Ho.length,oa,ls;if(ds===1){var yl=Eo[3];oa=["hide-tail"],ls=[yl]}else if(ds===2)oa=["halfarrow-left","halfarrow-right"],ls=["xMinYMin","xMaxYMin"];else if(ds===3)oa=["brace-left","brace-center","brace-right"],ls=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
|
`+ds+" children.");for(var _a=0;_a<ds;_a++){var sa=new ki(Ho[_a]),Aa=new Mn([sa],{width:"400em",height:tn($o),viewBox:"0 0 "+st+" "+Jo,preserveAspectRatio:ls[_a]+" slice"}),ll=yn.makeSvgSpan([oa[_a]],[Aa],S);if(ds===1)return{span:ll,minWidth:Ms,height:$o};ll.style.height=tn($o),Fr.push(ll)}return{span:yn.makeSpan(["stretchy"],Fr,S),minWidth:Ms,height:$o}}}var{span:Y,minWidth:re,height:Z}=R();return Y.height=Z,Y.style.height=tn(Z),re>0&&(Y.style.minWidth=tn(re)),Y},or=function(m,S,R,Y,re){var Z,st=m.height+m.depth+R+Y;if(/fbox|color|angl/.test(S)){if(Z=yn.makeSpan(["stretchy",S],[],re),S==="fbox"){var dt=re.color&&re.getColor();dt&&(Z.style.borderColor=dt)}}else{var pn=[];/^[bx]cancel$/.test(S)&&pn.push(new Un({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(S)&&pn.push(new Un({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var Ln=new Mn(pn,{width:"100%",height:tn(st)});Z=yn.makeSvgSpan([],[Ln],re)}return Z.height=st,Z.style.height=tn(st),Z},Ga={encloseSpan:or,mathMLnode:ws,svgSpan:lu};function Ye(T,m){if(!T||T.type!==m)throw new Error("Expected node of type "+m+", but got "+(T?"node of type "+T.type:String(T)));return T}function kn(T){var m=Cu(T);if(!m)throw new Error("Expected node of symbol group type, but got "+(T?"node of type "+T.type:String(T)));return m}function Cu(T){return T&&(T.type==="atom"||Kt.hasOwnProperty(T.type))?T:null}var Zu=(T,m)=>{var S,R,Y;T&&T.type==="supsub"?(R=Ye(T.base,"accent"),S=R.base,T.base=S,Y=Bi(Wo(T,m)),T.base=R):(R=Ye(T,"accent"),S=R.base);var re=Wo(S,m.havingCrampedStyle()),Z=R.isShifty&&N.isCharacterBox(S),st=0;if(Z){var dt=N.getBaseElem(S),pn=Wo(dt,m.havingCrampedStyle());st=ot(pn).skew}var Ln=R.label==="\\c",Vn=Ln?re.height+re.depth:Math.min(re.height,m.fontMetrics().xHeight),wi;if(R.isStretchy)wi=Ga.svgSpan(R,m),wi=yn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:re},{type:"elem",elem:wi,wrapperClasses:["svg-align"],wrapperStyle:st>0?{width:"calc(100% - "+tn(2*st)+")",marginLeft:tn(2*st)}:void 0}]},m);else{var Ti,Pi;R.label==="\\vec"?(Ti=yn.staticSvg("vec",m),Pi=yn.svgData.vec[1]):(Ti=yn.makeOrd({mode:R.mode,text:R.label},m,"textord"),Ti=ot(Ti),Ti.italic=0,Pi=Ti.width,Ln&&(Vn+=Ti.depth)),wi=yn.makeSpan(["accent-body"],[Ti]);var vr=R.label==="\\textcircled";vr&&(wi.classes.push("accent-full"),Vn=re.height);var Pr=st;vr||(Pr-=Pi/2),wi.style.left=tn(Pr),R.label==="\\textcircled"&&(wi.style.top=".2em"),wi=yn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:re},{type:"kern",size:-Vn},{type:"elem",elem:wi}]},m)}var Fr=yn.makeSpan(["mord","accent"],[wi],m);return Y?(Y.children[0]=Fr,Y.height=Math.max(Fr.height,Y.height),Y.classes[0]="mord",Y):Fr},Dl=(T,m)=>{var S=T.isStretchy?Ga.mathMLnode(T.label):new $i.MathNode("mo",[Na(T.label,T.mode)]),R=new $i.MathNode("mover",[qr(T.base,m),S]);return R.setAttribute("accent","true"),R},Pl=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(T=>"\\"+T).join("|"));Di({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:(T,m)=>{var S=Ta(m[0]),R=!Pl.test(T.funcName),Y=!R||T.funcName==="\\widehat"||T.funcName==="\\widetilde"||T.funcName==="\\widecheck";return{type:"accent",mode:T.parser.mode,label:T.funcName,isStretchy:R,isShifty:Y,base:S}},htmlBuilder:Zu,mathmlBuilder:Dl}),Di({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(T,m)=>{var S=m[0],R=T.parser.mode;return R==="math"&&(T.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+T.funcName+" works only in text mode"),R="text"),{type:"accent",mode:R,label:T.funcName,isStretchy:!1,isShifty:!0,base:S}},htmlBuilder:Zu,mathmlBuilder:Dl}),Di({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(T,m)=>{var{parser:S,funcName:R}=T,Y=m[0];return{type:"accentUnder",mode:S.mode,label:R,base:Y}},htmlBuilder:(T,m)=>{var S=Wo(T.base,m),R=Ga.svgSpan(T,m),Y=T.label==="\\utilde"?.12:0,re=yn.makeVList({positionType:"top",positionData:S.height,children:[{type:"elem",elem:R,wrapperClasses:["svg-align"]},{type:"kern",size:Y},{type:"elem",elem:S}]},m);return yn.makeSpan(["mord","accentunder"],[re],m)},mathmlBuilder:(T,m)=>{var S=Ga.mathMLnode(T.label),R=new $i.MathNode("munder",[qr(T.base,m),S]);return R.setAttribute("accentunder","true"),R}});var ml=T=>{var m=new $i.MathNode("mpadded",T?[T]:[]);return m.setAttribute("width","+0.6em"),m.setAttribute("lspace","0.3em"),m};Di({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(T,m,S){var{parser:R,funcName:Y}=T;return{type:"xArrow",mode:R.mode,label:Y,body:m[0],below:S[0]}},htmlBuilder(T,m){var S=m.style,R=m.havingStyle(S.sup()),Y=yn.wrapFragment(Wo(T.body,R,m),m),re=T.label.slice(0,2)==="\\x"?"x":"cd";Y.classes.push(re+"-arrow-pad");var Z;T.below&&(R=m.havingStyle(S.sub()),Z=yn.wrapFragment(Wo(T.below,R,m),m),Z.classes.push(re+"-arrow-pad"));var st=Ga.svgSpan(T,m),dt=-m.fontMetrics().axisHeight+.5*st.height,pn=-m.fontMetrics().axisHeight-.5*st.height-.111;(Y.depth>.25||T.label==="\\xleftequilibrium")&&(pn-=Y.depth);var Ln;if(Z){var Vn=-m.fontMetrics().axisHeight+Z.height+.5*st.height+.111;Ln=yn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Y,shift:pn},{type:"elem",elem:st,shift:dt},{type:"elem",elem:Z,shift:Vn}]},m)}else Ln=yn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Y,shift:pn},{type:"elem",elem:st,shift:dt}]},m);return Ln.children[0].children[0].children[1].classes.push("svg-align"),yn.makeSpan(["mrel","x-arrow"],[Ln],m)},mathmlBuilder(T,m){var S=Ga.mathMLnode(T.label);S.setAttribute("minsize",T.label.charAt(0)==="x"?"1.75em":"3.0em");var R;if(T.body){var Y=ml(qr(T.body,m));if(T.below){var re=ml(qr(T.below,m));R=new $i.MathNode("munderover",[S,re,Y])}else R=new $i.MathNode("mover",[S,Y])}else if(T.below){var Z=ml(qr(T.below,m));R=new $i.MathNode("munder",[S,Z])}else R=ml(),R=new $i.MathNode("mover",[S,R]);return R}});var Xu=yn.makeSpan;function uu(T,m){var S=zo(T.body,m,!0);return Xu([T.mclass],S,m)}function Cs(T,m){var S,R=hs(T.body,m);return T.mclass==="minner"?S=new $i.MathNode("mpadded",R):T.mclass==="mord"?T.isCharacterBox?(S=R[0],S.type="mi"):S=new $i.MathNode("mi",R):(T.isCharacterBox?(S=R[0],S.type="mo"):S=new $i.MathNode("mo",R),T.mclass==="mbin"?(S.attributes.lspace="0.22em",S.attributes.rspace="0.22em"):T.mclass==="mpunct"?(S.attributes.lspace="0em",S.attributes.rspace="0.17em"):T.mclass==="mopen"||T.mclass==="mclose"?(S.attributes.lspace="0em",S.attributes.rspace="0em"):T.mclass==="minner"&&(S.attributes.lspace="0.0556em",S.attributes.width="+0.1111em")),S}Di({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(T,m){var{parser:S,funcName:R}=T,Y=m[0];return{type:"mclass",mode:S.mode,mclass:"m"+R.slice(5),body:Go(Y),isCharacterBox:N.isCharacterBox(Y)}},htmlBuilder:uu,mathmlBuilder:Cs});var Nr=T=>{var m=T.type==="ordgroup"&&T.body.length?T.body[0]:T;return m.type==="atom"&&(m.family==="bin"||m.family==="rel")?"m"+m.family:"mord"};Di({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(T,m){var{parser:S}=T;return{type:"mclass",mode:S.mode,mclass:Nr(m[0]),body:Go(m[1]),isCharacterBox:N.isCharacterBox(m[1])}}}),Di({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(T,m){var{parser:S,funcName:R}=T,Y=m[1],re=m[0],Z;R!=="\\stackrel"?Z=Nr(Y):Z="mrel";var st={type:"op",mode:Y.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:R!=="\\stackrel",body:Go(Y)},dt={type:"supsub",mode:re.mode,base:st,sup:R==="\\underset"?null:re,sub:R==="\\underset"?re:null};return{type:"mclass",mode:S.mode,mclass:Z,body:[dt],isCharacterBox:N.isCharacterBox(dt)}},htmlBuilder:uu,mathmlBuilder:Cs}),Di({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(T,m){var{parser:S}=T;return{type:"pmb",mode:S.mode,mclass:Nr(m[0]),body:Go(m[0])}},htmlBuilder(T,m){var S=zo(T.body,m,!0),R=yn.makeSpan([T.mclass],S,m);return R.style.textShadow="0.02em 0.01em 0.04px",R},mathmlBuilder(T,m){var S=hs(T.body,m),R=new $i.MathNode("mstyle",S);return R.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),R}});var Da={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},da=()=>({type:"styling",body:[],mode:"math",style:"display"}),go=T=>T.type==="textord"&&T.text==="@",ro=(T,m)=>(T.type==="mathord"||T.type==="atom")&&T.text===m;function _s(T,m,S){var R=Da[T];switch(R){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return S.callFunction(R,[m[0]],[m[1]]);case"\\uparrow":case"\\downarrow":{var Y=S.callFunction("\\\\cdleft",[m[0]],[]),re={type:"atom",text:R,mode:"math",family:"rel"},Z=S.callFunction("\\Big",[re],[]),st=S.callFunction("\\\\cdright",[m[1]],[]),dt={type:"ordgroup",mode:"math",body:[Y,Z,st]};return S.callFunction("\\\\cdparent",[dt],[])}case"\\\\cdlongequal":return S.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var pn={type:"textord",text:"\\Vert",mode:"math"};return S.callFunction("\\Big",[pn],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Wa(T){var m=[];for(T.gullet.beginGroup(),T.gullet.macros.set("\\cr","\\\\\\relax"),T.gullet.beginGroup();;){m.push(T.parseExpression(!1,"\\\\")),T.gullet.endGroup(),T.gullet.beginGroup();var S=T.fetch().text;if(S==="&"||S==="\\\\")T.consume();else if(S==="\\end"){m[m.length-1].length===0&&m.pop();break}else throw new Dt("Expected \\\\ or \\cr or \\end",T.nextToken)}for(var R=[],Y=[R],re=0;re<m.length;re++){for(var Z=m[re],st=da(),dt=0;dt<Z.length;dt++)if(!go(Z[dt]))st.body.push(Z[dt]);else{R.push(st),dt+=1;var pn=kn(Z[dt]).text,Ln=new Array(2);if(Ln[0]={type:"ordgroup",mode:"math",body:[]},Ln[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(pn)>-1))if("<>AV".indexOf(pn)>-1)for(var Vn=0;Vn<2;Vn++){for(var wi=!0,Ti=dt+1;Ti<Z.length;Ti++){if(ro(Z[Ti],pn)){wi=!1,dt=Ti;break}if(go(Z[Ti]))throw new Dt("Missing a "+pn+" character to complete a CD arrow.",Z[Ti]);Ln[Vn].body.push(Z[Ti])}if(wi)throw new Dt("Missing a "+pn+" character to complete a CD arrow.",Z[dt])}else throw new Dt('Expected one of "<>AV=|." after @',Z[dt]);var Pi=_s(pn,Ln,T),vr={type:"styling",body:[Pi],mode:"math",style:"display"};R.push(vr),st=da()}re%2===0?R.push(st):R.shift(),R=[],Y.push(R)}T.gullet.endGroup(),T.gullet.endGroup();var Pr=new Array(Y[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:Y,arraystretch:1,addJot:!0,rowGaps:[null],cols:Pr,colSeparationType:"CD",hLinesBeforeRow:new Array(Y.length+1).fill([])}}Di({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(T,m){var{parser:S,funcName:R}=T;return{type:"cdlabel",mode:S.mode,side:R.slice(4),label:m[0]}},htmlBuilder(T,m){var S=m.havingStyle(m.style.sup()),R=yn.wrapFragment(Wo(T.label,S,m),m);return R.classes.push("cd-label-"+T.side),R.style.bottom=tn(.8-R.depth),R.height=0,R.depth=0,R},mathmlBuilder(T,m){var S=new $i.MathNode("mrow",[qr(T.label,m)]);return S=new $i.MathNode("mpadded",[S]),S.setAttribute("width","0"),T.side==="left"&&S.setAttribute("lspace","-1width"),S.setAttribute("voffset","0.7em"),S=new $i.MathNode("mstyle",[S]),S.setAttribute("displaystyle","false"),S.setAttribute("scriptlevel","1"),S}}),Di({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(T,m){var{parser:S}=T;return{type:"cdlabelparent",mode:S.mode,fragment:m[0]}},htmlBuilder(T,m){var S=yn.wrapFragment(Wo(T.fragment,m),m);return S.classes.push("cd-vert-arrow"),S},mathmlBuilder(T,m){return new $i.MathNode("mrow",[qr(T.fragment,m)])}}),Di({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(T,m){for(var{parser:S}=T,R=Ye(m[0],"ordgroup"),Y=R.body,re="",Z=0;Z<Y.length;Z++){var st=Ye(Y[Z],"textord");re+=st.text}var dt=parseInt(re),pn;if(isNaN(dt))throw new Dt("\\@char has non-numeric argument "+re);if(dt<0||dt>=1114111)throw new Dt("\\@char with invalid code point "+re);return dt<=65535?pn=String.fromCharCode(dt):(dt-=65536,pn=String.fromCharCode((dt>>10)+55296,(dt&1023)+56320)),{type:"textord",mode:S.mode,text:pn}}});var os=(T,m)=>{var S=zo(T.body,m.withColor(T.color),!1);return yn.makeFragment(S)},Va=(T,m)=>{var S=hs(T.body,m.withColor(T.color)),R=new $i.MathNode("mstyle",S);return R.setAttribute("mathcolor",T.color),R};Di({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(T,m){var{parser:S}=T,R=Ye(m[0],"color-token").color,Y=m[1];return{type:"color",mode:S.mode,color:R,body:Go(Y)}},htmlBuilder:os,mathmlBuilder:Va}),Di({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(T,m){var{parser:S,breakOnTokenText:R}=T,Y=Ye(m[0],"color-token").color;S.gullet.macros.set("\\current@color",Y);var re=S.parseExpression(!0,R);return{type:"color",mode:S.mode,color:Y,body:re}},htmlBuilder:os,mathmlBuilder:Va}),Di({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(T,m,S){var{parser:R}=T,Y=R.gullet.future().text==="["?R.parseSizeGroup(!0):null,re=!R.settings.displayMode||!R.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:R.mode,newLine:re,size:Y&&Ye(Y,"size").value}},htmlBuilder(T,m){var S=yn.makeSpan(["mspace"],[],m);return T.newLine&&(S.classes.push("newline"),T.size&&(S.style.marginTop=tn(gn(T.size,m)))),S},mathmlBuilder(T,m){var S=new $i.MathNode("mspace");return T.newLine&&(S.setAttribute("linebreak","newline"),T.size&&S.setAttribute("height",tn(gn(T.size,m)))),S}});var ta={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},cu=T=>{var m=T.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(m))throw new Dt("Expected a control sequence",T);return m},Do=T=>{var m=T.gullet.popToken();return m.text==="="&&(m=T.gullet.popToken(),m.text===" "&&(m=T.gullet.popToken())),m},xa=(T,m,S,R)=>{var Y=T.gullet.macros.get(S.text);Y==null&&(S.noexpand=!0,Y={tokens:[S],numArgs:0,unexpandable:!T.gullet.isExpandable(S.text)}),T.gullet.macros.set(m,Y,R)};Di({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(T){var{parser:m,funcName:S}=T;m.consumeSpaces();var R=m.fetch();if(ta[R.text])return(S==="\\global"||S==="\\\\globallong")&&(R.text=ta[R.text]),Ye(m.parseFunction(),"internal");throw new Dt("Invalid token after macro prefix",R)}}),Di({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(T){var{parser:m,funcName:S}=T,R=m.gullet.popToken(),Y=R.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(Y))throw new Dt("Expected a control sequence",R);for(var re=0,Z,st=[[]];m.gullet.future().text!=="{";)if(R=m.gullet.popToken(),R.text==="#"){if(m.gullet.future().text==="{"){Z=m.gullet.future(),st[re].push("{");break}if(R=m.gullet.popToken(),!/^[1-9]$/.test(R.text))throw new Dt('Invalid argument number "'+R.text+'"');if(parseInt(R.text)!==re+1)throw new Dt('Argument number "'+R.text+'" out of order');re++,st.push([])}else{if(R.text==="EOF")throw new Dt("Expected a macro definition");st[re].push(R.text)}var{tokens:dt}=m.gullet.consumeArg();return Z&&dt.unshift(Z),(S==="\\edef"||S==="\\xdef")&&(dt=m.gullet.expandTokens(dt),dt.reverse()),m.gullet.macros.set(Y,{tokens:dt,numArgs:re,delimiters:st},S===ta[S]),{type:"internal",mode:m.mode}}}),Di({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(T){var{parser:m,funcName:S}=T,R=cu(m.gullet.popToken());m.gullet.consumeSpaces();var Y=Do(m);return xa(m,R,Y,S==="\\\\globallet"),{type:"internal",mode:m.mode}}}),Di({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(T){var{parser:m,funcName:S}=T,R=cu(m.gullet.popToken()),Y=m.gullet.popToken(),re=m.gullet.popToken();return xa(m,R,re,S==="\\\\globalfuture"),m.gullet.pushToken(re),m.gullet.pushToken(Y),{type:"internal",mode:m.mode}}});var vo=function(m,S,R){var Y=Qi.math[m]&&Qi.math[m].replace,re=ht(Y||m,S,R);if(!re)throw new Error("Unsupported symbol "+m+" and font size "+S+".");return re},Zo=function(m,S,R,Y){var re=R.havingBaseStyle(S),Z=yn.makeSpan(Y.concat(re.sizingClasses(R)),[m],R),st=re.sizeMultiplier/R.sizeMultiplier;return Z.height*=st,Z.depth*=st,Z.maxFontSize=re.sizeMultiplier,Z},qo=function(m,S,R){var Y=S.havingBaseStyle(R),re=(1-S.sizeMultiplier/Y.sizeMultiplier)*S.fontMetrics().axisHeight;m.classes.push("delimcenter"),m.style.top=tn(re),m.height-=re,m.depth+=re},bs=function(m,S,R,Y,re,Z){var st=yn.makeSymbol(m,"Main-Regular",re,Y),dt=Zo(st,S,Y,Z);return R&&qo(dt,Y,S),dt},Po=function(m,S,R,Y){return yn.makeSymbol(m,"Size"+S+"-Regular",R,Y)},hu=function(m,S,R,Y,re,Z){var st=Po(m,S,re,Y),dt=Zo(yn.makeSpan(["delimsizing","size"+S],[st],Y),Cn.TEXT,Y,Z);return R&&qo(dt,Y,Cn.TEXT),dt},wr=function(m,S,R){var Y;S==="Size1-Regular"?Y="delim-size1":Y="delim-size4";var re=yn.makeSpan(["delimsizinginner",Y],[yn.makeSpan([],[yn.makeSymbol(m,S,R)])]);return{type:"elem",elem:re}},sl=function(m,S,R){var Y=Jr["Size4-Regular"][m.charCodeAt(0)]?Jr["Size4-Regular"][m.charCodeAt(0)][4]:Jr["Size1-Regular"][m.charCodeAt(0)][4],re=new ki("inner",_r(m,Math.round(1e3*S))),Z=new Mn([re],{width:tn(Y),height:tn(S),style:"width:"+tn(Y),viewBox:"0 0 "+1e3*Y+" "+Math.round(1e3*S),preserveAspectRatio:"xMinYMin"}),st=yn.makeSvgSpan([],[Z],R);return st.height=S,st.style.height=tn(S),st.style.width=tn(Y),{type:"elem",elem:st}},xo=.008,Qu={type:"kern",size:-1*xo},Ju=["|","\\lvert","\\rvert","\\vert"],qu=["\\|","\\lVert","\\rVert","\\Vert"],wc=function(m,S,R,Y,re,Z){var st,dt,pn,Ln,Vn="",wi=0;st=pn=Ln=m,dt=null;var Ti="Size1-Regular";m==="\\uparrow"?pn=Ln="\u23D0":m==="\\Uparrow"?pn=Ln="\u2016":m==="\\downarrow"?st=pn="\u23D0":m==="\\Downarrow"?st=pn="\u2016":m==="\\updownarrow"?(st="\\uparrow",pn="\u23D0",Ln="\\downarrow"):m==="\\Updownarrow"?(st="\\Uparrow",pn="\u2016",Ln="\\Downarrow"):N.contains(Ju,m)?(pn="\u2223",Vn="vert",wi=333):N.contains(qu,m)?(pn="\u2225",Vn="doublevert",wi=556):m==="["||m==="\\lbrack"?(st="\u23A1",pn="\u23A2",Ln="\u23A3",Ti="Size4-Regular",Vn="lbrack",wi=667):m==="]"||m==="\\rbrack"?(st="\u23A4",pn="\u23A5",Ln="\u23A6",Ti="Size4-Regular",Vn="rbrack",wi=667):m==="\\lfloor"||m==="\u230A"?(pn=st="\u23A2",Ln="\u23A3",Ti="Size4-Regular",Vn="lfloor",wi=667):m==="\\lceil"||m==="\u2308"?(st="\u23A1",pn=Ln="\u23A2",Ti="Size4-Regular",Vn="lceil",wi=667):m==="\\rfloor"||m==="\u230B"?(pn=st="\u23A5",Ln="\u23A6",Ti="Size4-Regular",Vn="rfloor",wi=667):m==="\\rceil"||m==="\u2309"?(st="\u23A4",pn=Ln="\u23A5",Ti="Size4-Regular",Vn="rceil",wi=667):m==="("||m==="\\lparen"?(st="\u239B",pn="\u239C",Ln="\u239D",Ti="Size4-Regular",Vn="lparen",wi=875):m===")"||m==="\\rparen"?(st="\u239E",pn="\u239F",Ln="\u23A0",Ti="Size4-Regular",Vn="rparen",wi=875):m==="\\{"||m==="\\lbrace"?(st="\u23A7",dt="\u23A8",Ln="\u23A9",pn="\u23AA",Ti="Size4-Regular"):m==="\\}"||m==="\\rbrace"?(st="\u23AB",dt="\u23AC",Ln="\u23AD",pn="\u23AA",Ti="Size4-Regular"):m==="\\lgroup"||m==="\u27EE"?(st="\u23A7",Ln="\u23A9",pn="\u23AA",Ti="Size4-Regular"):m==="\\rgroup"||m==="\u27EF"?(st="\u23AB",Ln="\u23AD",pn="\u23AA",Ti="Size4-Regular"):m==="\\lmoustache"||m==="\u23B0"?(st="\u23A7",Ln="\u23AD",pn="\u23AA",Ti="Size4-Regular"):(m==="\\rmoustache"||m==="\u23B1")&&(st="\u23AB",Ln="\u23A9",pn="\u23AA",Ti="Size4-Regular");var Pi=vo(st,Ti,re),vr=Pi.height+Pi.depth,Pr=vo(pn,Ti,re),Fr=Pr.height+Pr.depth,Eo=vo(Ln,Ti,re),Ho=Eo.height+Eo.depth,Ms=0,Jo=1;if(dt!==null){var $o=vo(dt,Ti,re);Ms=$o.height+$o.depth,Jo=2}var ds=vr+Ho+Ms,oa=Math.max(0,Math.ceil((S-ds)/(Jo*Fr))),ls=ds+oa*Jo*Fr,yl=Y.fontMetrics().axisHeight;R&&(yl*=Y.sizeMultiplier);var _a=ls/2-yl,sa=[];if(Vn.length>0){var Aa=ls-vr-Ho,ll=Math.round(ls*1e3),Kl=uo(Vn,Math.round(Aa*1e3)),Fa=new ki(Vn,Kl),Au=(wi/1e3).toFixed(3)+"em",ec=(ll/1e3).toFixed(3)+"em",Pc=new Mn([Fa],{width:Au,height:ec,viewBox:"0 0 "+wi+" "+ll}),Fl=yn.makeSvgSpan([],[Pc],Y);Fl.height=ll/1e3,Fl.style.width=Au,Fl.style.height=ec,sa.push({type:"elem",elem:Fl})}else{if(sa.push(wr(Ln,Ti,re)),sa.push(Qu),dt===null){var ma=ls-vr-Ho+2*xo;sa.push(sl(pn,ma,Y))}else{var Bl=(ls-vr-Ho-Ms)/2+2*xo;sa.push(sl(pn,Bl,Y)),sa.push(Qu),sa.push(wr(dt,Ti,re)),sa.push(Qu),sa.push(sl(pn,Bl,Y))}sa.push(Qu),sa.push(wr(st,Ti,re))}var Ks=Y.havingBaseStyle(Cn.TEXT),Xo=yn.makeVList({positionType:"bottom",positionData:_a,children:sa},Ks);return Zo(yn.makeSpan(["delimsizing","mult"],[Xo],Ks),Cn.TEXT,Y,Z)},_u=80,Xa=.08,Qa=function(m,S,R,Y,re){var Z=lr(m,Y,R),st=new ki(m,Z),dt=new Mn([st],{width:"400em",height:tn(S),viewBox:"0 0 400000 "+R,preserveAspectRatio:"xMinYMin slice"});return yn.makeSvgSpan(["hide-tail"],[dt],re)},To=function(m,S){var R=S.havingBaseSizing(),Y=fu("\\surd",m*R.sizeMultiplier,Ka,R),re=R.sizeMultiplier,Z=Math.max(0,S.minRuleThickness-S.fontMetrics().sqrtRuleThickness),st,dt=0,pn=0,Ln=0,Vn;return Y.type==="small"?(Ln=1e3+1e3*Z+_u,m<1?re=1:m<1.4&&(re=.7),dt=(1+Z+Xa)/re,pn=(1+Z)/re,st=Qa("sqrtMain",dt,Ln,Z,S),st.style.minWidth="0.853em",Vn=.833/re):Y.type==="large"?(Ln=(1e3+_u)*gl[Y.size],pn=(gl[Y.size]+Z)/re,dt=(gl[Y.size]+Z+Xa)/re,st=Qa("sqrtSize"+Y.size,dt,Ln,Z,S),st.style.minWidth="1.02em",Vn=1/re):(dt=m+Z+Xa,pn=m+Z,Ln=Math.floor(1e3*m+Z)+_u,st=Qa("sqrtTall",dt,Ln,Z,S),st.style.minWidth="0.742em",Vn=1.056),st.height=pn,st.style.height=tn(dt),{span:st,advanceWidth:Vn,ruleWidth:(S.fontMetrics().sqrtRuleThickness+Z)*re}},Pa=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],dc=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],eu=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],gl=[0,1.2,1.8,2.4,3],vl=function(m,S,R,Y,re){if(m==="<"||m==="\\lt"||m==="\u27E8"?m="\\langle":(m===">"||m==="\\gt"||m==="\u27E9")&&(m="\\rangle"),N.contains(Pa,m)||N.contains(eu,m))return hu(m,S,!1,R,Y,re);if(N.contains(dc,m))return wc(m,gl[S],!1,R,Y,re);throw new Dt("Illegal delimiter: '"+m+"'")},Ja=[{type:"small",style:Cn.SCRIPTSCRIPT},{type:"small",style:Cn.SCRIPT},{type:"small",style:Cn.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Wl=[{type:"small",style:Cn.SCRIPTSCRIPT},{type:"small",style:Cn.SCRIPT},{type:"small",style:Cn.TEXT},{type:"stack"}],Ka=[{type:"small",style:Cn.SCRIPTSCRIPT},{type:"small",style:Cn.SCRIPT},{type:"small",style:Cn.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],du=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.")},fu=function(m,S,R,Y){for(var re=Math.min(2,3-Y.style.size),Z=re;Z<R.length&&R[Z].type!=="stack";Z++){var st=vo(m,du(R[Z]),"math"),dt=st.height+st.depth;if(R[Z].type==="small"){var pn=Y.havingBaseStyle(R[Z].style);dt*=pn.sizeMultiplier}if(dt>S)return R[Z]}return R[R.length-1]},Tu=function(m,S,R,Y,re,Z){m==="<"||m==="\\lt"||m==="\u27E8"?m="\\langle":(m===">"||m==="\\gt"||m==="\u27E9")&&(m="\\rangle");var st;N.contains(eu,m)?st=Ja:N.contains(Pa,m)?st=Ka:st=Wl;var dt=fu(m,S,st,Y);return dt.type==="small"?bs(m,dt.style,R,Y,re,Z):dt.type==="large"?hu(m,dt.size,R,Y,re,Z):wc(m,S,R,Y,re,Z)},Nu=function(m,S,R,Y,re,Z){var st=Y.fontMetrics().axisHeight*Y.sizeMultiplier,dt=901,pn=5/Y.fontMetrics().ptPerEm,Ln=Math.max(S-st,R+st),Vn=Math.max(Ln/500*dt,2*Ln-pn);return Tu(m,Vn,!0,Y,re,Z)},al={sqrtImage:To,sizedDelim:vl,sizeToMaxHeight:gl,customSizedDelim:Tu,leftRightDelim:Nu},fa={"\\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}},Vl=["(","\\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 zu(T,m){var S=Cu(T);if(S&&N.contains(Vl,S.text))return S;throw S?new Dt("Invalid delimiter '"+S.text+"' after '"+m.funcName+"'",T):new Dt("Invalid delimiter type '"+T.type+"'",T)}Di({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:(T,m)=>{var S=zu(m[0],T);return{type:"delimsizing",mode:T.parser.mode,size:fa[T.funcName].size,mclass:fa[T.funcName].mclass,delim:S.text}},htmlBuilder:(T,m)=>T.delim==="."?yn.makeSpan([T.mclass]):al.sizedDelim(T.delim,T.size,m,T.mode,[T.mclass]),mathmlBuilder:T=>{var m=[];T.delim!=="."&&m.push(Na(T.delim,T.mode));var S=new $i.MathNode("mo",m);T.mclass==="mopen"||T.mclass==="mclose"?S.setAttribute("fence","true"):S.setAttribute("fence","false"),S.setAttribute("stretchy","true");var R=tn(al.sizeToMaxHeight[T.size]);return S.setAttribute("minsize",R),S.setAttribute("maxsize",R),S}});function Se(T){if(!T.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Di({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(T,m)=>{var S=T.parser.gullet.macros.get("\\current@color");if(S&&typeof S!="string")throw new Dt("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:T.parser.mode,delim:zu(m[0],T).text,color:S}}}),Di({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(T,m)=>{var S=zu(m[0],T),R=T.parser;++R.leftrightDepth;var Y=R.parseExpression(!1);--R.leftrightDepth,R.expect("\\right",!1);var re=Ye(R.parseFunction(),"leftright-right");return{type:"leftright",mode:R.mode,body:Y,left:S.text,right:re.delim,rightColor:re.color}},htmlBuilder:(T,m)=>{Se(T);for(var S=zo(T.body,m,!0,["mopen","mclose"]),R=0,Y=0,re=!1,Z=0;Z<S.length;Z++)S[Z].isMiddle?re=!0:(R=Math.max(S[Z].height,R),Y=Math.max(S[Z].depth,Y));R*=m.sizeMultiplier,Y*=m.sizeMultiplier;var st;if(T.left==="."?st=pl(m,["mopen"]):st=al.leftRightDelim(T.left,R,Y,m,T.mode,["mopen"]),S.unshift(st),re)for(var dt=1;dt<S.length;dt++){var pn=S[dt],Ln=pn.isMiddle;Ln&&(S[dt]=al.leftRightDelim(Ln.delim,R,Y,Ln.options,T.mode,[]))}var Vn;if(T.right===".")Vn=pl(m,["mclose"]);else{var wi=T.rightColor?m.withColor(T.rightColor):m;Vn=al.leftRightDelim(T.right,R,Y,wi,T.mode,["mclose"])}return S.push(Vn),yn.makeSpan(["minner"],S,m)},mathmlBuilder:(T,m)=>{Se(T);var S=hs(T.body,m);if(T.left!=="."){var R=new $i.MathNode("mo",[Na(T.left,T.mode)]);R.setAttribute("fence","true"),S.unshift(R)}if(T.right!=="."){var Y=new $i.MathNode("mo",[Na(T.right,T.mode)]);Y.setAttribute("fence","true"),T.rightColor&&Y.setAttribute("mathcolor",T.rightColor),S.push(Y)}return Rl(S)}}),Di({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(T,m)=>{var S=zu(m[0],T);if(!T.parser.leftrightDepth)throw new Dt("\\middle without preceding \\left",S);return{type:"middle",mode:T.parser.mode,delim:S.text}},htmlBuilder:(T,m)=>{var S;if(T.delim===".")S=pl(m,[]);else{S=al.sizedDelim(T.delim,1,m,T.mode,[]);var R={delim:T.delim,options:m};S.isMiddle=R}return S},mathmlBuilder:(T,m)=>{var S=T.delim==="\\vert"||T.delim==="|"?Na("|","text"):Na(T.delim,T.mode),R=new $i.MathNode("mo",[S]);return R.setAttribute("fence","true"),R.setAttribute("lspace","0.05em"),R.setAttribute("rspace","0.05em"),R}});var Ae=(T,m)=>{var S=yn.wrapFragment(Wo(T.body,m),m),R=T.label.slice(1),Y=m.sizeMultiplier,re,Z=0,st=N.isCharacterBox(T.body);if(R==="sout")re=yn.makeSpan(["stretchy","sout"]),re.height=m.fontMetrics().defaultRuleThickness/Y,Z=-.5*m.fontMetrics().xHeight;else if(R==="phase"){var dt=gn({number:.6,unit:"pt"},m),pn=gn({number:.35,unit:"ex"},m),Ln=m.havingBaseSizing();Y=Y/Ln.sizeMultiplier;var Vn=S.height+S.depth+dt+pn;S.style.paddingLeft=tn(Vn/2+dt);var wi=Math.floor(1e3*Vn*Y),Ti=U(wi),Pi=new Mn([new ki("phase",Ti)],{width:"400em",height:tn(wi/1e3),viewBox:"0 0 400000 "+wi,preserveAspectRatio:"xMinYMin slice"});re=yn.makeSvgSpan(["hide-tail"],[Pi],m),re.style.height=tn(Vn),Z=S.depth+dt+pn}else{/cancel/.test(R)?st||S.classes.push("cancel-pad"):R==="angl"?S.classes.push("anglpad"):S.classes.push("boxpad");var vr=0,Pr=0,Fr=0;/box/.test(R)?(Fr=Math.max(m.fontMetrics().fboxrule,m.minRuleThickness),vr=m.fontMetrics().fboxsep+(R==="colorbox"?0:Fr),Pr=vr):R==="angl"?(Fr=Math.max(m.fontMetrics().defaultRuleThickness,m.minRuleThickness),vr=4*Fr,Pr=Math.max(0,.25-S.depth)):(vr=st?.2:0,Pr=vr),re=Ga.encloseSpan(S,R,vr,Pr,m),/fbox|boxed|fcolorbox/.test(R)?(re.style.borderStyle="solid",re.style.borderWidth=tn(Fr)):R==="angl"&&Fr!==.049&&(re.style.borderTopWidth=tn(Fr),re.style.borderRightWidth=tn(Fr)),Z=S.depth+Pr,T.backgroundColor&&(re.style.backgroundColor=T.backgroundColor,T.borderColor&&(re.style.borderColor=T.borderColor))}var Eo;if(T.backgroundColor)Eo=yn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:re,shift:Z},{type:"elem",elem:S,shift:0}]},m);else{var Ho=/cancel|phase/.test(R)?["svg-align"]:[];Eo=yn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:S,shift:0},{type:"elem",elem:re,shift:Z,wrapperClasses:Ho}]},m)}return/cancel/.test(R)&&(Eo.height=S.height,Eo.depth=S.depth),/cancel/.test(R)&&!st?yn.makeSpan(["mord","cancel-lap"],[Eo],m):yn.makeSpan(["mord"],[Eo],m)},ut=(T,m)=>{var S=0,R=new $i.MathNode(T.label.indexOf("colorbox")>-1?"mpadded":"menclose",[qr(T.body,m)]);switch(T.label){case"\\cancel":R.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":R.setAttribute("notation","downdiagonalstrike");break;case"\\phase":R.setAttribute("notation","phasorangle");break;case"\\sout":R.setAttribute("notation","horizontalstrike");break;case"\\fbox":R.setAttribute("notation","box");break;case"\\angl":R.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(S=m.fontMetrics().fboxsep*m.fontMetrics().ptPerEm,R.setAttribute("width","+"+2*S+"pt"),R.setAttribute("height","+"+2*S+"pt"),R.setAttribute("lspace",S+"pt"),R.setAttribute("voffset",S+"pt"),T.label==="\\fcolorbox"){var Y=Math.max(m.fontMetrics().fboxrule,m.minRuleThickness);R.setAttribute("style","border: "+Y+"em solid "+String(T.borderColor))}break;case"\\xcancel":R.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return T.backgroundColor&&R.setAttribute("mathbackground",T.backgroundColor),R};Di({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(T,m,S){var{parser:R,funcName:Y}=T,re=Ye(m[0],"color-token").color,Z=m[1];return{type:"enclose",mode:R.mode,label:Y,backgroundColor:re,body:Z}},htmlBuilder:Ae,mathmlBuilder:ut}),Di({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(T,m,S){var{parser:R,funcName:Y}=T,re=Ye(m[0],"color-token").color,Z=Ye(m[1],"color-token").color,st=m[2];return{type:"enclose",mode:R.mode,label:Y,backgroundColor:Z,borderColor:re,body:st}},htmlBuilder:Ae,mathmlBuilder:ut}),Di({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(T,m){var{parser:S}=T;return{type:"enclose",mode:S.mode,label:"\\fbox",body:m[0]}}}),Di({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(T,m){var{parser:S,funcName:R}=T,Y=m[0];return{type:"enclose",mode:S.mode,label:R,body:Y}},htmlBuilder:Ae,mathmlBuilder:ut}),Di({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(T,m){var{parser:S}=T;return{type:"enclose",mode:S.mode,label:"\\angl",body:m[0]}}});var vt={};function Lt(T){for(var{type:m,names:S,props:R,handler:Y,htmlBuilder:re,mathmlBuilder:Z}=T,st={type:m,numArgs:R.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:Y},dt=0;dt<S.length;++dt)vt[S[dt]]=st;re&&(Ca[m]=re),Z&&(oi[m]=Z)}var Nt={};function fe(T,m){Nt[T]=m}function cn(T){var m=[];T.consumeSpaces();var S=T.fetch().text;for(S==="\\relax"&&(T.consume(),T.consumeSpaces(),S=T.fetch().text);S==="\\hline"||S==="\\hdashline";)T.consume(),m.push(S==="\\hdashline"),T.consumeSpaces(),S=T.fetch().text;return m}var en=T=>{var m=T.parser.settings;if(!m.displayMode)throw new Dt("{"+T.envName+"} can be used only in display mode.")};function Dn(T){if(T.indexOf("ed")===-1)return T.indexOf("*")===-1}function Bn(T,m,S){var{hskipBeforeAndAfter:R,addJot:Y,cols:re,arraystretch:Z,colSeparationType:st,autoTag:dt,singleRow:pn,emptySingleRow:Ln,maxNumCols:Vn,leqno:wi}=m;if(T.gullet.beginGroup(),pn||T.gullet.macros.set("\\cr","\\\\\\relax"),!Z){var Ti=T.gullet.expandMacroAsText("\\arraystretch");if(Ti==null)Z=1;else if(Z=parseFloat(Ti),!Z||Z<0)throw new Dt("Invalid \\arraystretch: "+Ti)}T.gullet.beginGroup();var Pi=[],vr=[Pi],Pr=[],Fr=[],Eo=dt!=null?[]:void 0;function Ho(){dt&&T.gullet.macros.set("\\@eqnsw","1",!0)}function Ms(){Eo&&(T.gullet.macros.get("\\df@tag")?(Eo.push(T.subparse([new ln("\\df@tag")])),T.gullet.macros.set("\\df@tag",void 0,!0)):Eo.push(!!dt&&T.gullet.macros.get("\\@eqnsw")==="1"))}for(Ho(),Fr.push(cn(T));;){var Jo=T.parseExpression(!1,pn?"\\end":"\\\\");T.gullet.endGroup(),T.gullet.beginGroup(),Jo={type:"ordgroup",mode:T.mode,body:Jo},S&&(Jo={type:"styling",mode:T.mode,style:S,body:[Jo]}),Pi.push(Jo);var $o=T.fetch().text;if($o==="&"){if(Vn&&Pi.length===Vn){if(pn||st)throw new Dt("Too many tab characters: &",T.nextToken);T.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}T.consume()}else if($o==="\\end"){Ms(),Pi.length===1&&Jo.type==="styling"&&Jo.body[0].body.length===0&&(vr.length>1||!Ln)&&vr.pop(),Fr.length<vr.length+1&&Fr.push([]);break}else if($o==="\\\\"){T.consume();var ds=void 0;T.gullet.future().text!==" "&&(ds=T.parseSizeGroup(!0)),Pr.push(ds?ds.value:null),Ms(),Fr.push(cn(T)),Pi=[],vr.push(Pi),Ho()}else throw new Dt("Expected & or \\\\ or \\cr or \\end",T.nextToken)}return T.gullet.endGroup(),T.gullet.endGroup(),{type:"array",mode:T.mode,addJot:Y,arraystretch:Z,body:vr,cols:re,rowGaps:Pr,hskipBeforeAndAfter:R,hLinesBeforeRow:Fr,colSeparationType:st,tags:Eo,leqno:wi}}function zn(T){return T.slice(0,1)==="d"?"display":"text"}var fi=function(m,S){var R,Y,re=m.body.length,Z=m.hLinesBeforeRow,st=0,dt=new Array(re),pn=[],Ln=Math.max(S.fontMetrics().arrayRuleWidth,S.minRuleThickness),Vn=1/S.fontMetrics().ptPerEm,wi=5*Vn;if(m.colSeparationType&&m.colSeparationType==="small"){var Ti=S.havingStyle(Cn.SCRIPT).sizeMultiplier;wi=.2778*(Ti/S.sizeMultiplier)}var Pi=m.colSeparationType==="CD"?gn({number:3,unit:"ex"},S):12*Vn,vr=3*Vn,Pr=m.arraystretch*Pi,Fr=.7*Pr,Eo=.3*Pr,Ho=0;function Ms(hh){for(var dh=0;dh<hh.length;++dh)dh>0&&(Ho+=.25),pn.push({pos:Ho,isDashed:hh[dh]})}for(Ms(Z[0]),R=0;R<m.body.length;++R){var Jo=m.body[R],$o=Fr,ds=Eo;st<Jo.length&&(st=Jo.length);var oa=new Array(Jo.length);for(Y=0;Y<Jo.length;++Y){var ls=Wo(Jo[Y],S);ds<ls.depth&&(ds=ls.depth),$o<ls.height&&($o=ls.height),oa[Y]=ls}var yl=m.rowGaps[R],_a=0;yl&&(_a=gn(yl,S),_a>0&&(_a+=Eo,ds<_a&&(ds=_a),_a=0)),m.addJot&&(ds+=vr),oa.height=$o,oa.depth=ds,Ho+=$o,oa.pos=Ho,Ho+=ds+_a,dt[R]=oa,Ms(Z[R+1])}var sa=Ho/2+S.fontMetrics().axisHeight,Aa=m.cols||[],ll=[],Kl,Fa,Au=[];if(m.tags&&m.tags.some(hh=>hh))for(R=0;R<re;++R){var ec=dt[R],Pc=ec.pos-sa,Fl=m.tags[R],ma=void 0;Fl===!0?ma=yn.makeSpan(["eqn-num"],[],S):Fl===!1?ma=yn.makeSpan([],[],S):ma=yn.makeSpan([],zo(Fl,S,!0),S),ma.depth=ec.depth,ma.height=ec.height,Au.push({type:"elem",elem:ma,shift:Pc})}for(Y=0,Fa=0;Y<st||Fa<Aa.length;++Y,++Fa){for(var Bl=Aa[Fa]||{},Ks=!0;Bl.type==="separator";){if(Ks||(Kl=yn.makeSpan(["arraycolsep"],[]),Kl.style.width=tn(S.fontMetrics().doubleRuleSep),ll.push(Kl)),Bl.separator==="|"||Bl.separator===":"){var Xo=Bl.separator==="|"?"solid":"dashed",ys=yn.makeSpan(["vertical-separator"],[],S);ys.style.height=tn(Ho),ys.style.borderRightWidth=tn(Ln),ys.style.borderRightStyle=Xo,ys.style.margin="0 "+tn(-Ln/2);var za=Ho-sa;za&&(ys.style.verticalAlign=tn(-za)),ll.push(ys)}else throw new Dt("Invalid separator type: "+Bl.separator);Fa++,Bl=Aa[Fa]||{},Ks=!1}if(!(Y>=st)){var qa=void 0;(Y>0||m.hskipBeforeAndAfter)&&(qa=N.deflt(Bl.pregap,wi),qa!==0&&(Kl=yn.makeSpan(["arraycolsep"],[]),Kl.style.width=tn(qa),ll.push(Kl)));var el=[];for(R=0;R<re;++R){var Cc=dt[R],ku=Cc[Y];if(ku){var Xc=Cc.pos-sa;ku.depth=Cc.depth,ku.height=Cc.height,el.push({type:"elem",elem:ku,shift:Xc})}}el=yn.makeVList({positionType:"individualShift",children:el},S),el=yn.makeSpan(["col-align-"+(Bl.align||"c")],[el]),ll.push(el),(Y<st-1||m.hskipBeforeAndAfter)&&(qa=N.deflt(Bl.postgap,wi),qa!==0&&(Kl=yn.makeSpan(["arraycolsep"],[]),Kl.style.width=tn(qa),ll.push(Kl)))}}if(dt=yn.makeSpan(["mtable"],ll),pn.length>0){for(var pu=yn.makeLineSpan("hline",S,Ln),tc=yn.makeLineSpan("hdashline",S,Ln),ch=[{type:"elem",elem:dt,shift:0}];pn.length>0;){var Bh=pn.pop(),_h=Bh.pos-sa;Bh.isDashed?ch.push({type:"elem",elem:tc,shift:_h}):ch.push({type:"elem",elem:pu,shift:_h})}dt=yn.makeVList({positionType:"individualShift",children:ch},S)}if(Au.length===0)return yn.makeSpan(["mord"],[dt],S);var Tc=yn.makeVList({positionType:"individualShift",children:Au},S);return Tc=yn.makeSpan(["tag"],[Tc],S),yn.makeFragment([dt,Tc])},gi={c:"center ",l:"left ",r:"right "},Jn=function(m,S){for(var R=[],Y=new $i.MathNode("mtd",[],["mtr-glue"]),re=new $i.MathNode("mtd",[],["mml-eqn-num"]),Z=0;Z<m.body.length;Z++){for(var st=m.body[Z],dt=[],pn=0;pn<st.length;pn++)dt.push(new $i.MathNode("mtd",[qr(st[pn],S)]));m.tags&&m.tags[Z]&&(dt.unshift(Y),dt.push(Y),m.leqno?dt.unshift(re):dt.push(re)),R.push(new $i.MathNode("mtr",dt))}var Ln=new $i.MathNode("mtable",R),Vn=m.arraystretch===.5?.1:.16+m.arraystretch-1+(m.addJot?.09:0);Ln.setAttribute("rowspacing",tn(Vn));var wi="",Ti="";if(m.cols&&m.cols.length>0){var Pi=m.cols,vr="",Pr=!1,Fr=0,Eo=Pi.length;Pi[0].type==="separator"&&(wi+="top ",Fr=1),Pi[Pi.length-1].type==="separator"&&(wi+="bottom ",Eo-=1);for(var Ho=Fr;Ho<Eo;Ho++)Pi[Ho].type==="align"?(Ti+=gi[Pi[Ho].align],Pr&&(vr+="none "),Pr=!0):Pi[Ho].type==="separator"&&Pr&&(vr+=Pi[Ho].separator==="|"?"solid ":"dashed ",Pr=!1);Ln.setAttribute("columnalign",Ti.trim()),/[sd]/.test(vr)&&Ln.setAttribute("columnlines",vr.trim())}if(m.colSeparationType==="align"){for(var Ms=m.cols||[],Jo="",$o=1;$o<Ms.length;$o++)Jo+=$o%2?"0em ":"1em ";Ln.setAttribute("columnspacing",Jo.trim())}else m.colSeparationType==="alignat"||m.colSeparationType==="gather"?Ln.setAttribute("columnspacing","0em"):m.colSeparationType==="small"?Ln.setAttribute("columnspacing","0.2778em"):m.colSeparationType==="CD"?Ln.setAttribute("columnspacing","0.5em"):Ln.setAttribute("columnspacing","1em");var ds="",oa=m.hLinesBeforeRow;wi+=oa[0].length>0?"left ":"",wi+=oa[oa.length-1].length>0?"right ":"";for(var ls=1;ls<oa.length-1;ls++)ds+=oa[ls].length===0?"none ":oa[ls][0]?"dashed ":"solid ";return/[sd]/.test(ds)&&Ln.setAttribute("rowlines",ds.trim()),wi!==""&&(Ln=new $i.MathNode("menclose",[Ln]),Ln.setAttribute("notation",wi.trim())),m.arraystretch&&m.arraystretch<1&&(Ln=new $i.MathNode("mstyle",[Ln]),Ln.setAttribute("scriptlevel","1")),Ln},Fi=function(m,S){m.envName.indexOf("ed")===-1&&en(m);var R=[],Y=m.envName.indexOf("at")>-1?"alignat":"align",re=m.envName==="split",Z=Bn(m.parser,{cols:R,addJot:!0,autoTag:re?void 0:Dn(m.envName),emptySingleRow:!0,colSeparationType:Y,maxNumCols:re?2:void 0,leqno:m.parser.settings.leqno},"display"),st,dt=0,pn={type:"ordgroup",mode:m.mode,body:[]};if(S[0]&&S[0].type==="ordgroup"){for(var Ln="",Vn=0;Vn<S[0].body.length;Vn++){var wi=Ye(S[0].body[Vn],"textord");Ln+=wi.text}st=Number(Ln),dt=st*2}var Ti=!dt;Z.body.forEach(function(Fr){for(var Eo=1;Eo<Fr.length;Eo+=2){var Ho=Ye(Fr[Eo],"styling"),Ms=Ye(Ho.body[0],"ordgroup");Ms.body.unshift(pn)}if(Ti)dt<Fr.length&&(dt=Fr.length);else{var Jo=Fr.length/2;if(st<Jo)throw new Dt("Too many math in a row: "+("expected "+st+", but got "+Jo),Fr[0])}});for(var Pi=0;Pi<dt;++Pi){var vr="r",Pr=0;Pi%2===1?vr="l":Pi>0&&Ti&&(Pr=1),R[Pi]={type:"align",align:vr,pregap:Pr,postgap:0}}return Z.colSeparationType=Ti?"align":"alignat",Z};Lt({type:"array",names:["array","darray"],props:{numArgs:1},handler(T,m){var S=Cu(m[0]),R=S?[m[0]]:Ye(m[0],"ordgroup").body,Y=R.map(function(Z){var st=kn(Z),dt=st.text;if("lcr".indexOf(dt)!==-1)return{type:"align",align:dt};if(dt==="|")return{type:"separator",separator:"|"};if(dt===":")return{type:"separator",separator:":"};throw new Dt("Unknown column alignment: "+dt,Z)}),re={cols:Y,hskipBeforeAndAfter:!0,maxNumCols:Y.length};return Bn(T.parser,re,zn(T.envName))},htmlBuilder:fi,mathmlBuilder:Jn}),Lt({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(T){var m={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[T.envName.replace("*","")],S="c",R={hskipBeforeAndAfter:!1,cols:[{type:"align",align:S}]};if(T.envName.charAt(T.envName.length-1)==="*"){var Y=T.parser;if(Y.consumeSpaces(),Y.fetch().text==="["){if(Y.consume(),Y.consumeSpaces(),S=Y.fetch().text,"lcr".indexOf(S)===-1)throw new Dt("Expected l or c or r",Y.nextToken);Y.consume(),Y.consumeSpaces(),Y.expect("]"),Y.consume(),R.cols=[{type:"align",align:S}]}}var re=Bn(T.parser,R,zn(T.envName)),Z=Math.max(0,...re.body.map(st=>st.length));return re.cols=new Array(Z).fill({type:"align",align:S}),m?{type:"leftright",mode:T.mode,body:[re],left:m[0],right:m[1],rightColor:void 0}:re},htmlBuilder:fi,mathmlBuilder:Jn}),Lt({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(T){var m={arraystretch:.5},S=Bn(T.parser,m,"script");return S.colSeparationType="small",S},htmlBuilder:fi,mathmlBuilder:Jn}),Lt({type:"array",names:["subarray"],props:{numArgs:1},handler(T,m){var S=Cu(m[0]),R=S?[m[0]]:Ye(m[0],"ordgroup").body,Y=R.map(function(Z){var st=kn(Z),dt=st.text;if("lc".indexOf(dt)!==-1)return{type:"align",align:dt};throw new Dt("Unknown column alignment: "+dt,Z)});if(Y.length>1)throw new Dt("{subarray} can contain only one column");var re={cols:Y,hskipBeforeAndAfter:!1,arraystretch:.5};if(re=Bn(T.parser,re,"script"),re.body.length>0&&re.body[0].length>1)throw new Dt("{subarray} can contain only one column");return re},htmlBuilder:fi,mathmlBuilder:Jn}),Lt({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(T){var m={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},S=Bn(T.parser,m,zn(T.envName));return{type:"leftright",mode:T.mode,body:[S],left:T.envName.indexOf("r")>-1?".":"\\{",right:T.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:fi,mathmlBuilder:Jn}),Lt({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Fi,htmlBuilder:fi,mathmlBuilder:Jn}),Lt({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(T){N.contains(["gather","gather*"],T.envName)&&en(T);var m={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Dn(T.envName),emptySingleRow:!0,leqno:T.parser.settings.leqno};return Bn(T.parser,m,"display")},htmlBuilder:fi,mathmlBuilder:Jn}),Lt({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Fi,htmlBuilder:fi,mathmlBuilder:Jn}),Lt({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(T){en(T);var m={autoTag:Dn(T.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:T.parser.settings.leqno};return Bn(T.parser,m,"display")},htmlBuilder:fi,mathmlBuilder:Jn}),Lt({type:"array",names:["CD"],props:{numArgs:0},handler(T){return en(T),Wa(T.parser)},htmlBuilder:fi,mathmlBuilder:Jn}),fe("\\nonumber","\\gdef\\@eqnsw{0}"),fe("\\notag","\\nonumber"),Di({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(T,m){throw new Dt(T.funcName+" valid only within array environment")}});var ai=vt;Di({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(T,m){var{parser:S,funcName:R}=T,Y=m[0];if(Y.type!=="ordgroup")throw new Dt("Invalid environment name",Y);for(var re="",Z=0;Z<Y.body.length;++Z)re+=Ye(Y.body[Z],"textord").text;if(R==="\\begin"){if(!ai.hasOwnProperty(re))throw new Dt("No such environment: "+re,Y);var st=ai[re],{args:dt,optArgs:pn}=S.parseArguments("\\begin{"+re+"}",st),Ln={mode:S.mode,envName:re,parser:S},Vn=st.handler(Ln,dt,pn);S.expect("\\end",!1);var wi=S.nextToken,Ti=Ye(S.parseFunction(),"environment");if(Ti.name!==re)throw new Dt("Mismatch: \\begin{"+re+"} matched by \\end{"+Ti.name+"}",wi);return Vn}return{type:"environment",mode:S.mode,name:re,nameGroup:Y}}});var zi=(T,m)=>{var S=T.font,R=m.withFont(S);return Wo(T.body,R)},E=(T,m)=>{var S=T.font,R=m.withFont(S);return qr(T.body,R)},F={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Di({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(T,m)=>{var{parser:S,funcName:R}=T,Y=Ta(m[0]),re=R;return re in F&&(re=F[re]),{type:"font",mode:S.mode,font:re.slice(1),body:Y}},htmlBuilder:zi,mathmlBuilder:E}),Di({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(T,m)=>{var{parser:S}=T,R=m[0],Y=N.isCharacterBox(R);return{type:"mclass",mode:S.mode,mclass:Nr(R),body:[{type:"font",mode:S.mode,font:"boldsymbol",body:R}],isCharacterBox:Y}}}),Di({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(T,m)=>{var{parser:S,funcName:R,breakOnTokenText:Y}=T,{mode:re}=S,Z=S.parseExpression(!0,Y),st="math"+R.slice(1);return{type:"font",mode:re,font:st,body:{type:"ordgroup",mode:S.mode,body:Z}}},htmlBuilder:zi,mathmlBuilder:E});var G=(T,m)=>{var S=m;return T==="display"?S=S.id>=Cn.SCRIPT.id?S.text():Cn.DISPLAY:T==="text"&&S.size===Cn.DISPLAY.size?S=Cn.TEXT:T==="script"?S=Cn.SCRIPT:T==="scriptscript"&&(S=Cn.SCRIPTSCRIPT),S},q=(T,m)=>{var S=G(T.size,m.style),R=S.fracNum(),Y=S.fracDen(),re;re=m.havingStyle(R);var Z=Wo(T.numer,re,m);if(T.continued){var st=8.5/m.fontMetrics().ptPerEm,dt=3.5/m.fontMetrics().ptPerEm;Z.height=Z.height<st?st:Z.height,Z.depth=Z.depth<dt?dt:Z.depth}re=m.havingStyle(Y);var pn=Wo(T.denom,re,m),Ln,Vn,wi;T.hasBarLine?(T.barSize?(Vn=gn(T.barSize,m),Ln=yn.makeLineSpan("frac-line",m,Vn)):Ln=yn.makeLineSpan("frac-line",m),Vn=Ln.height,wi=Ln.height):(Ln=null,Vn=0,wi=m.fontMetrics().defaultRuleThickness);var Ti,Pi,vr;S.size===Cn.DISPLAY.size||T.size==="display"?(Ti=m.fontMetrics().num1,Vn>0?Pi=3*wi:Pi=7*wi,vr=m.fontMetrics().denom1):(Vn>0?(Ti=m.fontMetrics().num2,Pi=wi):(Ti=m.fontMetrics().num3,Pi=3*wi),vr=m.fontMetrics().denom2);var Pr;if(Ln){var Eo=m.fontMetrics().axisHeight;Ti-Z.depth-(Eo+.5*Vn)<Pi&&(Ti+=Pi-(Ti-Z.depth-(Eo+.5*Vn))),Eo-.5*Vn-(pn.height-vr)<Pi&&(vr+=Pi-(Eo-.5*Vn-(pn.height-vr)));var Ho=-(Eo-.5*Vn);Pr=yn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:pn,shift:vr},{type:"elem",elem:Ln,shift:Ho},{type:"elem",elem:Z,shift:-Ti}]},m)}else{var Fr=Ti-Z.depth-(pn.height-vr);Fr<Pi&&(Ti+=.5*(Pi-Fr),vr+=.5*(Pi-Fr)),Pr=yn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:pn,shift:vr},{type:"elem",elem:Z,shift:-Ti}]},m)}re=m.havingStyle(S),Pr.height*=re.sizeMultiplier/m.sizeMultiplier,Pr.depth*=re.sizeMultiplier/m.sizeMultiplier;var Ms;S.size===Cn.DISPLAY.size?Ms=m.fontMetrics().delim1:S.size===Cn.SCRIPTSCRIPT.size?Ms=m.havingStyle(Cn.SCRIPT).fontMetrics().delim2:Ms=m.fontMetrics().delim2;var Jo,$o;return T.leftDelim==null?Jo=pl(m,["mopen"]):Jo=al.customSizedDelim(T.leftDelim,Ms,!0,m.havingStyle(S),T.mode,["mopen"]),T.continued?$o=yn.makeSpan([]):T.rightDelim==null?$o=pl(m,["mclose"]):$o=al.customSizedDelim(T.rightDelim,Ms,!0,m.havingStyle(S),T.mode,["mclose"]),yn.makeSpan(["mord"].concat(re.sizingClasses(m)),[Jo,yn.makeSpan(["mfrac"],[Pr]),$o],m)},he=(T,m)=>{var S=new $i.MathNode("mfrac",[qr(T.numer,m),qr(T.denom,m)]);if(!T.hasBarLine)S.setAttribute("linethickness","0px");else if(T.barSize){var R=gn(T.barSize,m);S.setAttribute("linethickness",tn(R))}var Y=G(T.size,m.style);if(Y.size!==m.style.size){S=new $i.MathNode("mstyle",[S]);var re=Y.size===Cn.DISPLAY.size?"true":"false";S.setAttribute("displaystyle",re),S.setAttribute("scriptlevel","0")}if(T.leftDelim!=null||T.rightDelim!=null){var Z=[];if(T.leftDelim!=null){var st=new $i.MathNode("mo",[new $i.TextNode(T.leftDelim.replace("\\",""))]);st.setAttribute("fence","true"),Z.push(st)}if(Z.push(S),T.rightDelim!=null){var dt=new $i.MathNode("mo",[new $i.TextNode(T.rightDelim.replace("\\",""))]);dt.setAttribute("fence","true"),Z.push(dt)}return Rl(Z)}return S};Di({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(T,m)=>{var{parser:S,funcName:R}=T,Y=m[0],re=m[1],Z,st=null,dt=null,pn="auto";switch(R){case"\\dfrac":case"\\frac":case"\\tfrac":Z=!0;break;case"\\\\atopfrac":Z=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":Z=!1,st="(",dt=")";break;case"\\\\bracefrac":Z=!1,st="\\{",dt="\\}";break;case"\\\\brackfrac":Z=!1,st="[",dt="]";break;default:throw new Error("Unrecognized genfrac command")}switch(R){case"\\dfrac":case"\\dbinom":pn="display";break;case"\\tfrac":case"\\tbinom":pn="text";break}return{type:"genfrac",mode:S.mode,continued:!1,numer:Y,denom:re,hasBarLine:Z,leftDelim:st,rightDelim:dt,size:pn,barSize:null}},htmlBuilder:q,mathmlBuilder:he}),Di({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(T,m)=>{var{parser:S,funcName:R}=T,Y=m[0],re=m[1];return{type:"genfrac",mode:S.mode,continued:!0,numer:Y,denom:re,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),Di({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(T){var{parser:m,funcName:S,token:R}=T,Y;switch(S){case"\\over":Y="\\frac";break;case"\\choose":Y="\\binom";break;case"\\atop":Y="\\\\atopfrac";break;case"\\brace":Y="\\\\bracefrac";break;case"\\brack":Y="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:m.mode,replaceWith:Y,token:R}}});var Ee=["display","text","script","scriptscript"],$e=function(m){var S=null;return m.length>0&&(S=m,S=S==="."?null:S),S};Di({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(T,m){var{parser:S}=T,R=m[4],Y=m[5],re=Ta(m[0]),Z=re.type==="atom"&&re.family==="open"?$e(re.text):null,st=Ta(m[1]),dt=st.type==="atom"&&st.family==="close"?$e(st.text):null,pn=Ye(m[2],"size"),Ln,Vn=null;pn.isBlank?Ln=!0:(Vn=pn.value,Ln=Vn.number>0);var wi="auto",Ti=m[3];if(Ti.type==="ordgroup"){if(Ti.body.length>0){var Pi=Ye(Ti.body[0],"textord");wi=Ee[Number(Pi.text)]}}else Ti=Ye(Ti,"textord"),wi=Ee[Number(Ti.text)];return{type:"genfrac",mode:S.mode,numer:R,denom:Y,continued:!1,hasBarLine:Ln,barSize:Vn,leftDelim:Z,rightDelim:dt,size:wi}},htmlBuilder:q,mathmlBuilder:he}),Di({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(T,m){var{parser:S,funcName:R,token:Y}=T;return{type:"infix",mode:S.mode,replaceWith:"\\\\abovefrac",size:Ye(m[0],"size").value,token:Y}}}),Di({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(T,m)=>{var{parser:S,funcName:R}=T,Y=m[0],re=j(Ye(m[1],"infix").size),Z=m[2],st=re.number>0;return{type:"genfrac",mode:S.mode,numer:Y,denom:Z,continued:!1,hasBarLine:st,barSize:re,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:q,mathmlBuilder:he});var et=(T,m)=>{var S=m.style,R,Y;T.type==="supsub"?(R=T.sup?Wo(T.sup,m.havingStyle(S.sup()),m):Wo(T.sub,m.havingStyle(S.sub()),m),Y=Ye(T.base,"horizBrace")):Y=Ye(T,"horizBrace");var re=Wo(Y.base,m.havingBaseStyle(Cn.DISPLAY)),Z=Ga.svgSpan(Y,m),st;if(Y.isOver?(st=yn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:re},{type:"kern",size:.1},{type:"elem",elem:Z}]},m),st.children[0].children[0].children[1].classes.push("svg-align")):(st=yn.makeVList({positionType:"bottom",positionData:re.depth+.1+Z.height,children:[{type:"elem",elem:Z},{type:"kern",size:.1},{type:"elem",elem:re}]},m),st.children[0].children[0].children[0].classes.push("svg-align")),R){var dt=yn.makeSpan(["mord",Y.isOver?"mover":"munder"],[st],m);Y.isOver?st=yn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:dt},{type:"kern",size:.2},{type:"elem",elem:R}]},m):st=yn.makeVList({positionType:"bottom",positionData:dt.depth+.2+R.height+R.depth,children:[{type:"elem",elem:R},{type:"kern",size:.2},{type:"elem",elem:dt}]},m)}return yn.makeSpan(["mord",Y.isOver?"mover":"munder"],[st],m)},Ft=(T,m)=>{var S=Ga.mathMLnode(T.label);return new $i.MathNode(T.isOver?"mover":"munder",[qr(T.base,m),S])};Di({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(T,m){var{parser:S,funcName:R}=T;return{type:"horizBrace",mode:S.mode,label:R,isOver:/^\\over/.test(R),base:m[0]}},htmlBuilder:et,mathmlBuilder:Ft}),Di({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(T,m)=>{var{parser:S}=T,R=m[1],Y=Ye(m[0],"url").url;return S.settings.isTrusted({command:"\\href",url:Y})?{type:"href",mode:S.mode,href:Y,body:Go(R)}:S.formatUnsupportedCmd("\\href")},htmlBuilder:(T,m)=>{var S=zo(T.body,m,!1);return yn.makeAnchor(T.href,[],S,m)},mathmlBuilder:(T,m)=>{var S=is(T.body,m);return S instanceof ea||(S=new ea("mrow",[S])),S.setAttribute("href",T.href),S}}),Di({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(T,m)=>{var{parser:S}=T,R=Ye(m[0],"url").url;if(!S.settings.isTrusted({command:"\\url",url:R}))return S.formatUnsupportedCmd("\\url");for(var Y=[],re=0;re<R.length;re++){var Z=R[re];Z==="~"&&(Z="\\textasciitilde"),Y.push({type:"textord",mode:"text",text:Z})}var st={type:"text",mode:S.mode,font:"\\texttt",body:Y};return{type:"href",mode:S.mode,href:R,body:Go(st)}}}),Di({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(T,m){var{parser:S}=T;return{type:"hbox",mode:S.mode,body:Go(m[0])}},htmlBuilder(T,m){var S=zo(T.body,m,!1);return yn.makeFragment(S)},mathmlBuilder(T,m){return new $i.MathNode("mrow",hs(T.body,m))}}),Di({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(T,m)=>{var{parser:S,funcName:R,token:Y}=T,re=Ye(m[0],"raw").string,Z=m[1];S.settings.strict&&S.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var st,dt={};switch(R){case"\\htmlClass":dt.class=re,st={command:"\\htmlClass",class:re};break;case"\\htmlId":dt.id=re,st={command:"\\htmlId",id:re};break;case"\\htmlStyle":dt.style=re,st={command:"\\htmlStyle",style:re};break;case"\\htmlData":{for(var pn=re.split(","),Ln=0;Ln<pn.length;Ln++){var Vn=pn[Ln].split("=");if(Vn.length!==2)throw new Dt("Error parsing key-value for \\htmlData");dt["data-"+Vn[0].trim()]=Vn[1].trim()}st={command:"\\htmlData",attributes:dt};break}default:throw new Error("Unrecognized html command")}return S.settings.isTrusted(st)?{type:"html",mode:S.mode,attributes:dt,body:Go(Z)}:S.formatUnsupportedCmd(R)},htmlBuilder:(T,m)=>{var S=zo(T.body,m,!1),R=["enclosing"];T.attributes.class&&R.push(...T.attributes.class.trim().split(/\s+/));var Y=yn.makeSpan(R,S,m);for(var re in T.attributes)re!=="class"&&T.attributes.hasOwnProperty(re)&&Y.setAttribute(re,T.attributes[re]);return Y},mathmlBuilder:(T,m)=>is(T.body,m)}),Di({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(T,m)=>{var{parser:S}=T;return{type:"htmlmathml",mode:S.mode,html:Go(m[0]),mathml:Go(m[1])}},htmlBuilder:(T,m)=>{var S=zo(T.html,m,!1);return yn.makeFragment(S)},mathmlBuilder:(T,m)=>is(T.mathml,m)});var At=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 Dt("Invalid size: '"+m+"' in \\includegraphics");var R={number:+(S[1]+S[2]),unit:S[3]};if(!pt(R))throw new Dt("Invalid unit: '"+R.unit+"' in \\includegraphics.");return R};Di({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(T,m,S)=>{var{parser:R}=T,Y={number:0,unit:"em"},re={number:.9,unit:"em"},Z={number:0,unit:"em"},st="";if(S[0])for(var dt=Ye(S[0],"raw").string,pn=dt.split(","),Ln=0;Ln<pn.length;Ln++){var Vn=pn[Ln].split("=");if(Vn.length===2){var wi=Vn[1].trim();switch(Vn[0].trim()){case"alt":st=wi;break;case"width":Y=At(wi);break;case"height":re=At(wi);break;case"totalheight":Z=At(wi);break;default:throw new Dt("Invalid key: '"+Vn[0]+"' in \\includegraphics.")}}}var Ti=Ye(m[0],"url").url;return st===""&&(st=Ti,st=st.replace(/^.*[\\/]/,""),st=st.substring(0,st.lastIndexOf("."))),R.settings.isTrusted({command:"\\includegraphics",url:Ti})?{type:"includegraphics",mode:R.mode,alt:st,width:Y,height:re,totalheight:Z,src:Ti}:R.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(T,m)=>{var S=gn(T.height,m),R=0;T.totalheight.number>0&&(R=gn(T.totalheight,m)-S);var Y=0;T.width.number>0&&(Y=gn(T.width,m));var re={height:tn(S+R)};Y>0&&(re.width=tn(Y)),R>0&&(re.verticalAlign=tn(-R));var Z=new dn(T.src,T.alt,re);return Z.height=S,Z.depth=R,Z},mathmlBuilder:(T,m)=>{var S=new $i.MathNode("mglyph",[]);S.setAttribute("alt",T.alt);var R=gn(T.height,m),Y=0;if(T.totalheight.number>0&&(Y=gn(T.totalheight,m)-R,S.setAttribute("valign",tn(-Y))),S.setAttribute("height",tn(R+Y)),T.width.number>0){var re=gn(T.width,m);S.setAttribute("width",tn(re))}return S.setAttribute("src",T.src),S}}),Di({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(T,m){var{parser:S,funcName:R}=T,Y=Ye(m[0],"size");if(S.settings.strict){var re=R[1]==="m",Z=Y.value.unit==="mu";re?(Z||S.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+R+" supports only mu units, "+("not "+Y.value.unit+" units")),S.mode!=="math"&&S.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+R+" works only in math mode")):Z&&S.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+R+" doesn't support mu units")}return{type:"kern",mode:S.mode,dimension:Y.value}},htmlBuilder(T,m){return yn.makeGlue(T.dimension,m)},mathmlBuilder(T,m){var S=gn(T.dimension,m);return new $i.SpaceNode(S)}}),Di({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(T,m)=>{var{parser:S,funcName:R}=T,Y=m[0];return{type:"lap",mode:S.mode,alignment:R.slice(5),body:Y}},htmlBuilder:(T,m)=>{var S;T.alignment==="clap"?(S=yn.makeSpan([],[Wo(T.body,m)]),S=yn.makeSpan(["inner"],[S],m)):S=yn.makeSpan(["inner"],[Wo(T.body,m)]);var R=yn.makeSpan(["fix"],[]),Y=yn.makeSpan([T.alignment],[S,R],m),re=yn.makeSpan(["strut"]);return re.style.height=tn(Y.height+Y.depth),Y.depth&&(re.style.verticalAlign=tn(-Y.depth)),Y.children.unshift(re),Y=yn.makeSpan(["thinbox"],[Y],m),yn.makeSpan(["mord","vbox"],[Y],m)},mathmlBuilder:(T,m)=>{var S=new $i.MathNode("mpadded",[qr(T.body,m)]);if(T.alignment!=="rlap"){var R=T.alignment==="llap"?"-1":"-0.5";S.setAttribute("lspace",R+"width")}return S.setAttribute("width","0px"),S}}),Di({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(T,m){var{funcName:S,parser:R}=T,Y=R.mode;R.switchMode("math");var re=S==="\\("?"\\)":"$",Z=R.parseExpression(!1,re);return R.expect(re),R.switchMode(Y),{type:"styling",mode:R.mode,style:"text",body:Z}}}),Di({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(T,m){throw new Dt("Mismatched "+T.funcName)}});var ct=(T,m)=>{switch(m.style.size){case Cn.DISPLAY.size:return T.display;case Cn.TEXT.size:return T.text;case Cn.SCRIPT.size:return T.script;case Cn.SCRIPTSCRIPT.size:return T.scriptscript;default:return T.text}};Di({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(T,m)=>{var{parser:S}=T;return{type:"mathchoice",mode:S.mode,display:Go(m[0]),text:Go(m[1]),script:Go(m[2]),scriptscript:Go(m[3])}},htmlBuilder:(T,m)=>{var S=ct(T,m),R=zo(S,m,!1);return yn.makeFragment(R)},mathmlBuilder:(T,m)=>{var S=ct(T,m);return is(S,m)}});var $t=(T,m,S,R,Y,re,Z)=>{T=yn.makeSpan([],[T]);var st=S&&N.isCharacterBox(S),dt,pn;if(m){var Ln=Wo(m,R.havingStyle(Y.sup()),R);pn={elem:Ln,kern:Math.max(R.fontMetrics().bigOpSpacing1,R.fontMetrics().bigOpSpacing3-Ln.depth)}}if(S){var Vn=Wo(S,R.havingStyle(Y.sub()),R);dt={elem:Vn,kern:Math.max(R.fontMetrics().bigOpSpacing2,R.fontMetrics().bigOpSpacing4-Vn.height)}}var wi;if(pn&&dt){var Ti=R.fontMetrics().bigOpSpacing5+dt.elem.height+dt.elem.depth+dt.kern+T.depth+Z;wi=yn.makeVList({positionType:"bottom",positionData:Ti,children:[{type:"kern",size:R.fontMetrics().bigOpSpacing5},{type:"elem",elem:dt.elem,marginLeft:tn(-re)},{type:"kern",size:dt.kern},{type:"elem",elem:T},{type:"kern",size:pn.kern},{type:"elem",elem:pn.elem,marginLeft:tn(re)},{type:"kern",size:R.fontMetrics().bigOpSpacing5}]},R)}else if(dt){var Pi=T.height-Z;wi=yn.makeVList({positionType:"top",positionData:Pi,children:[{type:"kern",size:R.fontMetrics().bigOpSpacing5},{type:"elem",elem:dt.elem,marginLeft:tn(-re)},{type:"kern",size:dt.kern},{type:"elem",elem:T}]},R)}else if(pn){var vr=T.depth+Z;wi=yn.makeVList({positionType:"bottom",positionData:vr,children:[{type:"elem",elem:T},{type:"kern",size:pn.kern},{type:"elem",elem:pn.elem,marginLeft:tn(re)},{type:"kern",size:R.fontMetrics().bigOpSpacing5}]},R)}else return T;var Pr=[wi];if(dt&&re!==0&&!st){var Fr=yn.makeSpan(["mspace"],[],R);Fr.style.marginRight=tn(re),Pr.unshift(Fr)}return yn.makeSpan(["mop","op-limits"],Pr,R)},Vt=["\\smallint"],Rt=(T,m)=>{var S,R,Y=!1,re;T.type==="supsub"?(S=T.sup,R=T.sub,re=Ye(T.base,"op"),Y=!0):re=Ye(T,"op");var Z=m.style,st=!1;Z.size===Cn.DISPLAY.size&&re.symbol&&!N.contains(Vt,re.name)&&(st=!0);var dt;if(re.symbol){var pn=st?"Size2-Regular":"Size1-Regular",Ln="";if((re.name==="\\oiint"||re.name==="\\oiiint")&&(Ln=re.name.slice(1),re.name=Ln==="oiint"?"\\iint":"\\iiint"),dt=yn.makeSymbol(re.name,pn,"math",m,["mop","op-symbol",st?"large-op":"small-op"]),Ln.length>0){var Vn=dt.italic,wi=yn.staticSvg(Ln+"Size"+(st?"2":"1"),m);dt=yn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:dt,shift:0},{type:"elem",elem:wi,shift:st?.08:0}]},m),re.name="\\"+Ln,dt.classes.unshift("mop"),dt.italic=Vn}}else if(re.body){var Ti=zo(re.body,m,!0);Ti.length===1&&Ti[0]instanceof En?(dt=Ti[0],dt.classes[0]="mop"):dt=yn.makeSpan(["mop"],Ti,m)}else{for(var Pi=[],vr=1;vr<re.name.length;vr++)Pi.push(yn.mathsym(re.name[vr],re.mode,m));dt=yn.makeSpan(["mop"],Pi,m)}var Pr=0,Fr=0;return(dt instanceof En||re.name==="\\oiint"||re.name==="\\oiiint")&&!re.suppressBaseShift&&(Pr=(dt.height-dt.depth)/2-m.fontMetrics().axisHeight,Fr=dt.italic),Y?$t(dt,S,R,m,Z,Fr,Pr):(Pr&&(dt.style.position="relative",dt.style.top=tn(Pr)),dt)},yi=(T,m)=>{var S;if(T.symbol)S=new ea("mo",[Na(T.name,T.mode)]),N.contains(Vt,T.name)&&S.setAttribute("largeop","false");else if(T.body)S=new ea("mo",hs(T.body,m));else{S=new ea("mi",[new Ls(T.name.slice(1))]);var R=new ea("mo",[Na("\u2061","text")]);T.parentIsSupSub?S=new ea("mrow",[S,R]):S=Ll([S,R])}return S},si={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};Di({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:(T,m)=>{var{parser:S,funcName:R}=T,Y=R;return Y.length===1&&(Y=si[Y]),{type:"op",mode:S.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:Y}},htmlBuilder:Rt,mathmlBuilder:yi}),Di({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(T,m)=>{var{parser:S}=T,R=m[0];return{type:"op",mode:S.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Go(R)}},htmlBuilder:Rt,mathmlBuilder:yi});var sr={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};Di({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(T){var{parser:m,funcName:S}=T;return{type:"op",mode:m.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:S}},htmlBuilder:Rt,mathmlBuilder:yi}),Di({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(T){var{parser:m,funcName:S}=T;return{type:"op",mode:m.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:S}},htmlBuilder:Rt,mathmlBuilder:yi}),Di({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler(T){var{parser:m,funcName:S}=T,R=S;return R.length===1&&(R=sr[R]),{type:"op",mode:m.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:R}},htmlBuilder:Rt,mathmlBuilder:yi});var Si=(T,m)=>{var S,R,Y=!1,re;T.type==="supsub"?(S=T.sup,R=T.sub,re=Ye(T.base,"operatorname"),Y=!0):re=Ye(T,"operatorname");var Z;if(re.body.length>0){for(var st=re.body.map(Vn=>{var wi=Vn.text;return typeof wi=="string"?{type:"textord",mode:Vn.mode,text:wi}:Vn}),dt=zo(st,m.withFont("mathrm"),!0),pn=0;pn<dt.length;pn++){var Ln=dt[pn];Ln instanceof En&&(Ln.text=Ln.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}Z=yn.makeSpan(["mop"],dt,m)}else Z=yn.makeSpan(["mop"],[],m);return Y?$t(Z,S,R,m,m.style,0,0):Z},Cr=(T,m)=>{for(var S=hs(T.body,m.withFont("mathrm")),R=!0,Y=0;Y<S.length;Y++){var re=S[Y];if(!(re instanceof $i.SpaceNode))if(re instanceof $i.MathNode)switch(re.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var Z=re.children[0];re.children.length===1&&Z instanceof $i.TextNode?Z.text=Z.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):R=!1;break}default:R=!1}else R=!1}if(R){var st=S.map(Ln=>Ln.toText()).join("");S=[new $i.TextNode(st)]}var dt=new $i.MathNode("mi",S);dt.setAttribute("mathvariant","normal");var pn=new $i.MathNode("mo",[Na("\u2061","text")]);return T.parentIsSupSub?new $i.MathNode("mrow",[dt,pn]):$i.newDocumentFragment([dt,pn])};Di({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(T,m)=>{var{parser:S,funcName:R}=T,Y=m[0];return{type:"operatorname",mode:S.mode,body:Go(Y),alwaysHandleSupSub:R==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Si,mathmlBuilder:Cr}),fe("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),Qo({type:"ordgroup",htmlBuilder(T,m){return T.semisimple?yn.makeFragment(zo(T.body,m,!1)):yn.makeSpan(["mord"],zo(T.body,m,!0),m)},mathmlBuilder(T,m){return is(T.body,m,!0)}}),Di({type:"overline",names:["\\overline"],props:{numArgs:1},handler(T,m){var{parser:S}=T,R=m[0];return{type:"overline",mode:S.mode,body:R}},htmlBuilder(T,m){var S=Wo(T.body,m.havingCrampedStyle()),R=yn.makeLineSpan("overline-line",m),Y=m.fontMetrics().defaultRuleThickness,re=yn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:S},{type:"kern",size:3*Y},{type:"elem",elem:R},{type:"kern",size:Y}]},m);return yn.makeSpan(["mord","overline"],[re],m)},mathmlBuilder(T,m){var S=new $i.MathNode("mo",[new $i.TextNode("\u203E")]);S.setAttribute("stretchy","true");var R=new $i.MathNode("mover",[qr(T.body,m),S]);return R.setAttribute("accent","true"),R}}),Di({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(T,m)=>{var{parser:S}=T,R=m[0];return{type:"phantom",mode:S.mode,body:Go(R)}},htmlBuilder:(T,m)=>{var S=zo(T.body,m.withPhantom(),!1);return yn.makeFragment(S)},mathmlBuilder:(T,m)=>{var S=hs(T.body,m);return new $i.MathNode("mphantom",S)}}),Di({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(T,m)=>{var{parser:S}=T,R=m[0];return{type:"hphantom",mode:S.mode,body:R}},htmlBuilder:(T,m)=>{var S=yn.makeSpan([],[Wo(T.body,m.withPhantom())]);if(S.height=0,S.depth=0,S.children)for(var R=0;R<S.children.length;R++)S.children[R].height=0,S.children[R].depth=0;return S=yn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:S}]},m),yn.makeSpan(["mord"],[S],m)},mathmlBuilder:(T,m)=>{var S=hs(Go(T.body),m),R=new $i.MathNode("mphantom",S),Y=new $i.MathNode("mpadded",[R]);return Y.setAttribute("height","0px"),Y.setAttribute("depth","0px"),Y}}),Di({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(T,m)=>{var{parser:S}=T,R=m[0];return{type:"vphantom",mode:S.mode,body:R}},htmlBuilder:(T,m)=>{var S=yn.makeSpan(["inner"],[Wo(T.body,m.withPhantom())]),R=yn.makeSpan(["fix"],[]);return yn.makeSpan(["mord","rlap"],[S,R],m)},mathmlBuilder:(T,m)=>{var S=hs(Go(T.body),m),R=new $i.MathNode("mphantom",S),Y=new $i.MathNode("mpadded",[R]);return Y.setAttribute("width","0px"),Y}}),Di({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(T,m){var{parser:S}=T,R=Ye(m[0],"size").value,Y=m[1];return{type:"raisebox",mode:S.mode,dy:R,body:Y}},htmlBuilder(T,m){var S=Wo(T.body,m),R=gn(T.dy,m);return yn.makeVList({positionType:"shift",positionData:-R,children:[{type:"elem",elem:S}]},m)},mathmlBuilder(T,m){var S=new $i.MathNode("mpadded",[qr(T.body,m)]),R=T.dy.number+T.dy.unit;return S.setAttribute("voffset",R),S}}),Di({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(T){var{parser:m}=T;return{type:"internal",mode:m.mode}}}),Di({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(T,m,S){var{parser:R}=T,Y=S[0],re=Ye(m[0],"size"),Z=Ye(m[1],"size");return{type:"rule",mode:R.mode,shift:Y&&Ye(Y,"size").value,width:re.value,height:Z.value}},htmlBuilder(T,m){var S=yn.makeSpan(["mord","rule"],[],m),R=gn(T.width,m),Y=gn(T.height,m),re=T.shift?gn(T.shift,m):0;return S.style.borderRightWidth=tn(R),S.style.borderTopWidth=tn(Y),S.style.bottom=tn(re),S.width=R,S.height=Y+re,S.depth=-re,S.maxFontSize=Y*1.125*m.sizeMultiplier,S},mathmlBuilder(T,m){var S=gn(T.width,m),R=gn(T.height,m),Y=T.shift?gn(T.shift,m):0,re=m.color&&m.getColor()||"black",Z=new $i.MathNode("mspace");Z.setAttribute("mathbackground",re),Z.setAttribute("width",tn(S)),Z.setAttribute("height",tn(R));var st=new $i.MathNode("mpadded",[Z]);return Y>=0?st.setAttribute("height",tn(Y)):(st.setAttribute("height",tn(Y)),st.setAttribute("depth",tn(-Y))),st.setAttribute("voffset",tn(Y)),st}});function ji(T,m,S){for(var R=zo(T,m,!1),Y=m.sizeMultiplier/S.sizeMultiplier,re=0;re<R.length;re++){var Z=R[re].classes.indexOf("sizing");Z<0?Array.prototype.push.apply(R[re].classes,m.sizingClasses(S)):R[re].classes[Z+1]==="reset-size"+m.size&&(R[re].classes[Z+1]="reset-size"+S.size),R[re].height*=Y,R[re].depth*=Y}return yn.makeFragment(R)}var to=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],oo=(T,m)=>{var S=m.havingSize(T.size);return ji(T.body,S,m)};Di({type:"sizing",names:to,props:{numArgs:0,allowedInText:!0},handler:(T,m)=>{var{breakOnTokenText:S,funcName:R,parser:Y}=T,re=Y.parseExpression(!1,S);return{type:"sizing",mode:Y.mode,size:to.indexOf(R)+1,body:re}},htmlBuilder:oo,mathmlBuilder:(T,m)=>{var S=m.havingSize(T.size),R=hs(T.body,S),Y=new $i.MathNode("mstyle",R);return Y.setAttribute("mathsize",tn(S.sizeMultiplier)),Y}}),Di({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(T,m,S)=>{var{parser:R}=T,Y=!1,re=!1,Z=S[0]&&Ye(S[0],"ordgroup");if(Z)for(var st="",dt=0;dt<Z.body.length;++dt){var pn=Z.body[dt];if(st=pn.text,st==="t")Y=!0;else if(st==="b")re=!0;else{Y=!1,re=!1;break}}else Y=!0,re=!0;var Ln=m[0];return{type:"smash",mode:R.mode,body:Ln,smashHeight:Y,smashDepth:re}},htmlBuilder:(T,m)=>{var S=yn.makeSpan([],[Wo(T.body,m)]);if(!T.smashHeight&&!T.smashDepth)return S;if(T.smashHeight&&(S.height=0,S.children))for(var R=0;R<S.children.length;R++)S.children[R].height=0;if(T.smashDepth&&(S.depth=0,S.children))for(var Y=0;Y<S.children.length;Y++)S.children[Y].depth=0;var re=yn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:S}]},m);return yn.makeSpan(["mord"],[re],m)},mathmlBuilder:(T,m)=>{var S=new $i.MathNode("mpadded",[qr(T.body,m)]);return T.smashHeight&&S.setAttribute("height","0px"),T.smashDepth&&S.setAttribute("depth","0px"),S}}),Di({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(T,m,S){var{parser:R}=T,Y=S[0],re=m[0];return{type:"sqrt",mode:R.mode,body:re,index:Y}},htmlBuilder(T,m){var S=Wo(T.body,m.havingCrampedStyle());S.height===0&&(S.height=m.fontMetrics().xHeight),S=yn.wrapFragment(S,m);var R=m.fontMetrics(),Y=R.defaultRuleThickness,re=Y;m.style.id<Cn.TEXT.id&&(re=m.fontMetrics().xHeight);var Z=Y+re/4,st=S.height+S.depth+Z+Y,{span:dt,ruleWidth:pn,advanceWidth:Ln}=al.sqrtImage(st,m),Vn=dt.height-pn;Vn>S.height+S.depth+Z&&(Z=(Z+Vn-S.height-S.depth)/2);var wi=dt.height-S.height-Z-pn;S.style.paddingLeft=tn(Ln);var Ti=yn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:S,wrapperClasses:["svg-align"]},{type:"kern",size:-(S.height+wi)},{type:"elem",elem:dt},{type:"kern",size:pn}]},m);if(T.index){var Pi=m.havingStyle(Cn.SCRIPTSCRIPT),vr=Wo(T.index,Pi,m),Pr=.6*(Ti.height-Ti.depth),Fr=yn.makeVList({positionType:"shift",positionData:-Pr,children:[{type:"elem",elem:vr}]},m),Eo=yn.makeSpan(["root"],[Fr]);return yn.makeSpan(["mord","sqrt"],[Eo,Ti],m)}else return yn.makeSpan(["mord","sqrt"],[Ti],m)},mathmlBuilder(T,m){var{body:S,index:R}=T;return R?new $i.MathNode("mroot",[qr(S,m),qr(R,m)]):new $i.MathNode("msqrt",[qr(S,m)])}});var ei={display:Cn.DISPLAY,text:Cn.TEXT,script:Cn.SCRIPT,scriptscript:Cn.SCRIPTSCRIPT};Di({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(T,m){var{breakOnTokenText:S,funcName:R,parser:Y}=T,re=Y.parseExpression(!0,S),Z=R.slice(1,R.length-5);return{type:"styling",mode:Y.mode,style:Z,body:re}},htmlBuilder(T,m){var S=ei[T.style],R=m.havingStyle(S).withFont("");return ji(T.body,R,m)},mathmlBuilder(T,m){var S=ei[T.style],R=m.havingStyle(S),Y=hs(T.body,R),re=new $i.MathNode("mstyle",Y),Z={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},st=Z[T.style];return re.setAttribute("scriptlevel",st[0]),re.setAttribute("displaystyle",st[1]),re}});var Zi=function(m,S){var R=m.base;if(R)if(R.type==="op"){var Y=R.limits&&(S.style.size===Cn.DISPLAY.size||R.alwaysHandleSupSub);return Y?Rt:null}else if(R.type==="operatorname"){var re=R.alwaysHandleSupSub&&(S.style.size===Cn.DISPLAY.size||R.limits);return re?Si:null}else{if(R.type==="accent")return N.isCharacterBox(R.base)?Zu:null;if(R.type==="horizBrace"){var Z=!m.sub;return Z===R.isOver?et:null}else return null}else return null};Qo({type:"supsub",htmlBuilder(T,m){var S=Zi(T,m);if(S)return S(T,m);var{base:R,sup:Y,sub:re}=T,Z=Wo(R,m),st,dt,pn=m.fontMetrics(),Ln=0,Vn=0,wi=R&&N.isCharacterBox(R);if(Y){var Ti=m.havingStyle(m.style.sup());st=Wo(Y,Ti,m),wi||(Ln=Z.height-Ti.fontMetrics().supDrop*Ti.sizeMultiplier/m.sizeMultiplier)}if(re){var Pi=m.havingStyle(m.style.sub());dt=Wo(re,Pi,m),wi||(Vn=Z.depth+Pi.fontMetrics().subDrop*Pi.sizeMultiplier/m.sizeMultiplier)}var vr;m.style===Cn.DISPLAY?vr=pn.sup1:m.style.cramped?vr=pn.sup3:vr=pn.sup2;var Pr=m.sizeMultiplier,Fr=tn(.5/pn.ptPerEm/Pr),Eo=null;if(dt){var Ho=T.base&&T.base.type==="op"&&T.base.name&&(T.base.name==="\\oiint"||T.base.name==="\\oiiint");(Z instanceof En||Ho)&&(Eo=tn(-Z.italic))}var Ms;if(st&&dt){Ln=Math.max(Ln,vr,st.depth+.25*pn.xHeight),Vn=Math.max(Vn,pn.sub2);var Jo=pn.defaultRuleThickness,$o=4*Jo;if(Ln-st.depth-(dt.height-Vn)<$o){Vn=$o-(Ln-st.depth)+dt.height;var ds=.8*pn.xHeight-(Ln-st.depth);ds>0&&(Ln+=ds,Vn-=ds)}var oa=[{type:"elem",elem:dt,shift:Vn,marginRight:Fr,marginLeft:Eo},{type:"elem",elem:st,shift:-Ln,marginRight:Fr}];Ms=yn.makeVList({positionType:"individualShift",children:oa},m)}else if(dt){Vn=Math.max(Vn,pn.sub1,dt.height-.8*pn.xHeight);var ls=[{type:"elem",elem:dt,marginLeft:Eo,marginRight:Fr}];Ms=yn.makeVList({positionType:"shift",positionData:Vn,children:ls},m)}else if(st)Ln=Math.max(Ln,vr,st.depth+.25*pn.xHeight),Ms=yn.makeVList({positionType:"shift",positionData:-Ln,children:[{type:"elem",elem:st,marginRight:Fr}]},m);else throw new Error("supsub must have either sup or sub.");var yl=As(Z,"right")||"mord";return yn.makeSpan([yl],[Z,yn.makeSpan(["msupsub"],[Ms])],m)},mathmlBuilder(T,m){var S=!1,R,Y;T.base&&T.base.type==="horizBrace"&&(Y=!!T.sup,Y===T.base.isOver&&(S=!0,R=T.base.isOver)),T.base&&(T.base.type==="op"||T.base.type==="operatorname")&&(T.base.parentIsSupSub=!0);var re=[qr(T.base,m)];T.sub&&re.push(qr(T.sub,m)),T.sup&&re.push(qr(T.sup,m));var Z;if(S)Z=R?"mover":"munder";else if(T.sub)if(T.sup){var pn=T.base;pn&&pn.type==="op"&&pn.limits&&m.style===Cn.DISPLAY||pn&&pn.type==="operatorname"&&pn.alwaysHandleSupSub&&(m.style===Cn.DISPLAY||pn.limits)?Z="munderover":Z="msubsup"}else{var dt=T.base;dt&&dt.type==="op"&&dt.limits&&(m.style===Cn.DISPLAY||dt.alwaysHandleSupSub)||dt&&dt.type==="operatorname"&&dt.alwaysHandleSupSub&&(dt.limits||m.style===Cn.DISPLAY)?Z="munder":Z="msub"}else{var st=T.base;st&&st.type==="op"&&st.limits&&(m.style===Cn.DISPLAY||st.alwaysHandleSupSub)||st&&st.type==="operatorname"&&st.alwaysHandleSupSub&&(st.limits||m.style===Cn.DISPLAY)?Z="mover":Z="msup"}return new $i.MathNode(Z,re)}}),Qo({type:"atom",htmlBuilder(T,m){return yn.mathsym(T.text,T.mode,m,["m"+T.family])},mathmlBuilder(T,m){var S=new $i.MathNode("mo",[Na(T.text,T.mode)]);if(T.family==="bin"){var R=Ur(T,m);R==="bold-italic"&&S.setAttribute("mathvariant",R)}else T.family==="punct"?S.setAttribute("separator","true"):(T.family==="open"||T.family==="close")&&S.setAttribute("stretchy","false");return S}});var Kr={mi:"italic",mn:"normal",mtext:"normal"};Qo({type:"mathord",htmlBuilder(T,m){return yn.makeOrd(T,m,"mathord")},mathmlBuilder(T,m){var S=new $i.MathNode("mi",[Na(T.text,T.mode,m)]),R=Ur(T,m)||"italic";return R!==Kr[S.type]&&S.setAttribute("mathvariant",R),S}}),Qo({type:"textord",htmlBuilder(T,m){return yn.makeOrd(T,m,"textord")},mathmlBuilder(T,m){var S=Na(T.text,T.mode,m),R=Ur(T,m)||"normal",Y;return T.mode==="text"?Y=new $i.MathNode("mtext",[S]):/[0-9]/.test(T.text)?Y=new $i.MathNode("mn",[S]):T.text==="\\prime"?Y=new $i.MathNode("mo",[S]):Y=new $i.MathNode("mi",[S]),R!==Kr[Y.type]&&Y.setAttribute("mathvariant",R),Y}});var Zr={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Qr={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Qo({type:"spacing",htmlBuilder(T,m){if(Qr.hasOwnProperty(T.text)){var S=Qr[T.text].className||"";if(T.mode==="text"){var R=yn.makeOrd(T,m,"textord");return R.classes.push(S),R}else return yn.makeSpan(["mspace",S],[yn.mathsym(T.text,T.mode,m)],m)}else{if(Zr.hasOwnProperty(T.text))return yn.makeSpan(["mspace",Zr[T.text]],[],m);throw new Dt('Unknown type of space "'+T.text+'"')}},mathmlBuilder(T,m){var S;if(Qr.hasOwnProperty(T.text))S=new $i.MathNode("mtext",[new $i.TextNode("\xA0")]);else{if(Zr.hasOwnProperty(T.text))return new $i.MathNode("mspace");throw new Dt('Unknown type of space "'+T.text+'"')}return S}});var No=()=>{var T=new $i.MathNode("mtd",[]);return T.setAttribute("width","50%"),T};Qo({type:"tag",mathmlBuilder(T,m){var S=new $i.MathNode("mtable",[new $i.MathNode("mtr",[No(),new $i.MathNode("mtd",[is(T.body,m)]),No(),new $i.MathNode("mtd",[is(T.tag,m)])])]);return S.setAttribute("width","100%"),S}});var tr={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Ai={"\\textbf":"textbf","\\textmd":"textmd"},Gi={"\\textit":"textit","\\textup":"textup"},Mi=(T,m)=>{var S=T.font;if(S){if(tr[S])return m.withTextFontFamily(tr[S]);if(Ai[S])return m.withTextFontWeight(Ai[S]);if(S==="\\emph")return m.fontShape==="textit"?m.withTextFontShape("textup"):m.withTextFontShape("textit")}else return m;return m.withTextFontShape(Gi[S])};Di({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(T,m){var{parser:S,funcName:R}=T,Y=m[0];return{type:"text",mode:S.mode,body:Go(Y),font:R}},htmlBuilder(T,m){var S=Mi(T,m),R=zo(T.body,S,!0);return yn.makeSpan(["mord","text"],R,S)},mathmlBuilder(T,m){var S=Mi(T,m);return is(T.body,S)}}),Di({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(T,m){var{parser:S}=T;return{type:"underline",mode:S.mode,body:m[0]}},htmlBuilder(T,m){var S=Wo(T.body,m),R=yn.makeLineSpan("underline-line",m),Y=m.fontMetrics().defaultRuleThickness,re=yn.makeVList({positionType:"top",positionData:S.height,children:[{type:"kern",size:Y},{type:"elem",elem:R},{type:"kern",size:3*Y},{type:"elem",elem:S}]},m);return yn.makeSpan(["mord","underline"],[re],m)},mathmlBuilder(T,m){var S=new $i.MathNode("mo",[new $i.TextNode("\u203E")]);S.setAttribute("stretchy","true");var R=new $i.MathNode("munder",[qr(T.body,m),S]);return R.setAttribute("accentunder","true"),R}}),Di({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(T,m){var{parser:S}=T;return{type:"vcenter",mode:S.mode,body:m[0]}},htmlBuilder(T,m){var S=Wo(T.body,m),R=m.fontMetrics().axisHeight,Y=.5*(S.height-R-(S.depth+R));return yn.makeVList({positionType:"shift",positionData:Y,children:[{type:"elem",elem:S}]},m)},mathmlBuilder(T,m){return new $i.MathNode("mpadded",[qr(T.body,m)],["vcenter"])}}),Di({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(T,m,S){throw new Dt("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(T,m){for(var S=jr(T),R=[],Y=m.havingStyle(m.style.text()),re=0;re<S.length;re++){var Z=S[re];Z==="~"&&(Z="\\textasciitilde"),R.push(yn.makeSymbol(Z,"Typewriter-Regular",T.mode,Y,["mord","texttt"]))}return yn.makeSpan(["mord","text"].concat(Y.sizingClasses(m)),yn.tryCombineChars(R),Y)},mathmlBuilder(T,m){var S=new $i.TextNode(jr(T)),R=new $i.MathNode("mtext",[S]);return R.setAttribute("mathvariant","monospace"),R}});var jr=T=>T.body.replace(/ /g,T.star?"\u2423":"\xA0"),Wi=Oa,Lr=`[ \r
|
|
|
]`,so="\\\\[a-zA-Z@]+",Qt="\\\\[^\uD800-\uDFFF]",ms="("+so+")"+Lr+"*",gs=`\\\\(
|
|
|
|[ \r ]+
|
|
|
?)[ \r ]*`,vn="[\u0300-\u036F]",co=new RegExp(vn+"+$"),Ds="("+Lr+"+)|"+(gs+"|")+"([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(vn+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(vn+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+ms)+("|"+Qt+")");class ss{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(Ds,"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 ln("EOF",new yt(this,S,S));var R=this.tokenRegex.exec(m);if(R===null||R.index!==S)throw new Dt("Unexpected character: '"+m[S]+"'",new ln(m[S],new yt(this,S,S+1)));var Y=R[6]||R[3]||(R[2]?"\\ ":" ");if(this.catcodes[Y]===14){var re=m.indexOf(`
|
|
|
`,this.tokenRegex.lastIndex);return re===-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=re+1,this.lex()}return new ln(Y,new yt(this,S,this.tokenRegex.lastIndex))}}class Ps{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 Dt("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,R){if(R===void 0&&(R=!1),R){for(var Y=0;Y<this.undefStack.length;Y++)delete this.undefStack[Y][m];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][m]=S)}else{var re=this.undefStack[this.undefStack.length-1];re&&!re.hasOwnProperty(m)&&(re[m]=this.current[m])}S==null?delete this.current[m]:this.current[m]=S}}var zs=Nt;fe("\\noexpand",function(T){var m=T.popToken();return T.isExpandable(m.text)&&(m.noexpand=!0,m.treatAsRelax=!0),{tokens:[m],numArgs:0}}),fe("\\expandafter",function(T){var m=T.popToken();return T.expandOnce(!0),{tokens:[m],numArgs:0}}),fe("\\@firstoftwo",function(T){var m=T.consumeArgs(2);return{tokens:m[0],numArgs:0}}),fe("\\@secondoftwo",function(T){var m=T.consumeArgs(2);return{tokens:m[1],numArgs:0}}),fe("\\@ifnextchar",function(T){var m=T.consumeArgs(3);T.consumeSpaces();var S=T.future();return m[0].length===1&&m[0][0].text===S.text?{tokens:m[1],numArgs:0}:{tokens:m[2],numArgs:0}}),fe("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),fe("\\TextOrMath",function(T){var m=T.consumeArgs(2);return T.mode==="text"?{tokens:m[0],numArgs:0}:{tokens:m[1],numArgs:0}});var Oo={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};fe("\\char",function(T){var m=T.popToken(),S,R="";if(m.text==="'")S=8,m=T.popToken();else if(m.text==='"')S=16,m=T.popToken();else if(m.text==="`")if(m=T.popToken(),m.text[0]==="\\")R=m.text.charCodeAt(1);else{if(m.text==="EOF")throw new Dt("\\char` missing argument");R=m.text.charCodeAt(0)}else S=10;if(S){if(R=Oo[m.text],R==null||R>=S)throw new Dt("Invalid base-"+S+" digit "+m.text);for(var Y;(Y=Oo[T.future().text])!=null&&Y<S;)R*=S,R+=Y,T.popToken()}return"\\@char{"+R+"}"});var So=(T,m,S,R)=>{var Y=T.consumeArg().tokens;if(Y.length!==1)throw new Dt("\\newcommand's first argument must be a macro name");var re=Y[0].text,Z=T.isDefined(re);if(Z&&!m)throw new Dt("\\newcommand{"+re+"} attempting to redefine "+(re+"; use \\renewcommand"));if(!Z&&!S)throw new Dt("\\renewcommand{"+re+"} when command "+re+" does not yet exist; use \\newcommand");var st=0;if(Y=T.consumeArg().tokens,Y.length===1&&Y[0].text==="["){for(var dt="",pn=T.expandNextToken();pn.text!=="]"&&pn.text!=="EOF";)dt+=pn.text,pn=T.expandNextToken();if(!dt.match(/^\s*[0-9]+\s*$/))throw new Dt("Invalid number of arguments: "+dt);st=parseInt(dt),Y=T.consumeArg().tokens}return Z&&R||T.macros.set(re,{tokens:Y,numArgs:st}),""};fe("\\newcommand",T=>So(T,!1,!0,!1)),fe("\\renewcommand",T=>So(T,!0,!1,!1)),fe("\\providecommand",T=>So(T,!0,!0,!0)),fe("\\message",T=>{var m=T.consumeArgs(1)[0];return console.log(m.reverse().map(S=>S.text).join("")),""}),fe("\\errmessage",T=>{var m=T.consumeArgs(1)[0];return console.error(m.reverse().map(S=>S.text).join("")),""}),fe("\\show",T=>{var m=T.popToken(),S=m.text;return console.log(m,T.macros.get(S),Wi[S],Qi.math[S],Qi.text[S]),""}),fe("\\bgroup","{"),fe("\\egroup","}"),fe("~","\\nobreakspace"),fe("\\lq","`"),fe("\\rq","'"),fe("\\aa","\\r a"),fe("\\AA","\\r A"),fe("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),fe("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),fe("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),fe("\u212C","\\mathscr{B}"),fe("\u2130","\\mathscr{E}"),fe("\u2131","\\mathscr{F}"),fe("\u210B","\\mathscr{H}"),fe("\u2110","\\mathscr{I}"),fe("\u2112","\\mathscr{L}"),fe("\u2133","\\mathscr{M}"),fe("\u211B","\\mathscr{R}"),fe("\u212D","\\mathfrak{C}"),fe("\u210C","\\mathfrak{H}"),fe("\u2128","\\mathfrak{Z}"),fe("\\Bbbk","\\Bbb{k}"),fe("\xB7","\\cdotp"),fe("\\llap","\\mathllap{\\textrm{#1}}"),fe("\\rlap","\\mathrlap{\\textrm{#1}}"),fe("\\clap","\\mathclap{\\textrm{#1}}"),fe("\\mathstrut","\\vphantom{(}"),fe("\\underbar","\\underline{\\text{#1}}"),fe("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),fe("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),fe("\\ne","\\neq"),fe("\u2260","\\neq"),fe("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),fe("\u2209","\\notin"),fe("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),fe("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),fe("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),fe("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),fe("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),fe("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),fe("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),fe("\u27C2","\\perp"),fe("\u203C","\\mathclose{!\\mkern-0.8mu!}"),fe("\u220C","\\notni"),fe("\u231C","\\ulcorner"),fe("\u231D","\\urcorner"),fe("\u231E","\\llcorner"),fe("\u231F","\\lrcorner"),fe("\xA9","\\copyright"),fe("\xAE","\\textregistered"),fe("\uFE0F","\\textregistered"),fe("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),fe("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),fe("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),fe("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),fe("\\vdots","{\\varvdots\\rule{0pt}{15pt}}"),fe("\u22EE","\\vdots"),fe("\\varGamma","\\mathit{\\Gamma}"),fe("\\varDelta","\\mathit{\\Delta}"),fe("\\varTheta","\\mathit{\\Theta}"),fe("\\varLambda","\\mathit{\\Lambda}"),fe("\\varXi","\\mathit{\\Xi}"),fe("\\varPi","\\mathit{\\Pi}"),fe("\\varSigma","\\mathit{\\Sigma}"),fe("\\varUpsilon","\\mathit{\\Upsilon}"),fe("\\varPhi","\\mathit{\\Phi}"),fe("\\varPsi","\\mathit{\\Psi}"),fe("\\varOmega","\\mathit{\\Omega}"),fe("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),fe("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),fe("\\boxed","\\fbox{$\\displaystyle{#1}$}"),fe("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),fe("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),fe("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),fe("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}"),fe("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var Ao={",":"\\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"};fe("\\dots",function(T){var m="\\dotso",S=T.expandAfterFuture().text;return S in Ao?m=Ao[S]:(S.slice(0,4)==="\\not"||S in Qi.math&&N.contains(["bin","rel"],Qi.math[S].group))&&(m="\\dotsb"),m});var es={")":!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};fe("\\dotso",function(T){var m=T.future().text;return m in es?"\\ldots\\,":"\\ldots"}),fe("\\dotsc",function(T){var m=T.future().text;return m in es&&m!==","?"\\ldots\\,":"\\ldots"}),fe("\\cdots",function(T){var m=T.future().text;return m in es?"\\@cdots\\,":"\\@cdots"}),fe("\\dotsb","\\cdots"),fe("\\dotsm","\\cdots"),fe("\\dotsi","\\!\\cdots"),fe("\\dotsx","\\ldots\\,"),fe("\\DOTSI","\\relax"),fe("\\DOTSB","\\relax"),fe("\\DOTSX","\\relax"),fe("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),fe("\\,","\\tmspace+{3mu}{.1667em}"),fe("\\thinspace","\\,"),fe("\\>","\\mskip{4mu}"),fe("\\:","\\tmspace+{4mu}{.2222em}"),fe("\\medspace","\\:"),fe("\\;","\\tmspace+{5mu}{.2777em}"),fe("\\thickspace","\\;"),fe("\\!","\\tmspace-{3mu}{.1667em}"),fe("\\negthinspace","\\!"),fe("\\negmedspace","\\tmspace-{4mu}{.2222em}"),fe("\\negthickspace","\\tmspace-{5mu}{.277em}"),fe("\\enspace","\\kern.5em "),fe("\\enskip","\\hskip.5em\\relax"),fe("\\quad","\\hskip1em\\relax"),fe("\\qquad","\\hskip2em\\relax"),fe("\\tag","\\@ifstar\\tag@literal\\tag@paren"),fe("\\tag@paren","\\tag@literal{({#1})}"),fe("\\tag@literal",T=>{if(T.macros.get("\\df@tag"))throw new Dt("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),fe("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),fe("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),fe("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),fe("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),fe("\\newline","\\\\\\relax"),fe("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Us=tn(Jr["Main-Regular"][84][1]-.7*Jr["Main-Regular"][65][1]);fe("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Us+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),fe("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Us+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),fe("\\hspace","\\@ifstar\\@hspacer\\@hspace"),fe("\\@hspace","\\hskip #1\\relax"),fe("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),fe("\\ordinarycolon",":"),fe("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),fe("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),fe("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),fe("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),fe("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),fe("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),fe("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),fe("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),fe("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),fe("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),fe("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),fe("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),fe("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),fe("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),fe("\u2237","\\dblcolon"),fe("\u2239","\\eqcolon"),fe("\u2254","\\coloneqq"),fe("\u2255","\\eqqcolon"),fe("\u2A74","\\Coloneqq"),fe("\\ratio","\\vcentcolon"),fe("\\coloncolon","\\dblcolon"),fe("\\colonequals","\\coloneqq"),fe("\\coloncolonequals","\\Coloneqq"),fe("\\equalscolon","\\eqqcolon"),fe("\\equalscoloncolon","\\Eqqcolon"),fe("\\colonminus","\\coloneq"),fe("\\coloncolonminus","\\Coloneq"),fe("\\minuscolon","\\eqcolon"),fe("\\minuscoloncolon","\\Eqcolon"),fe("\\coloncolonapprox","\\Colonapprox"),fe("\\coloncolonsim","\\Colonsim"),fe("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),fe("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),fe("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),fe("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),fe("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),fe("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),fe("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),fe("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),fe("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),fe("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),fe("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),fe("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),fe("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),fe("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),fe("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),fe("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),fe("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),fe("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),fe("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),fe("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),fe("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),fe("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),fe("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),fe("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),fe("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),fe("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),fe("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),fe("\\imath","\\html@mathml{\\@imath}{\u0131}"),fe("\\jmath","\\html@mathml{\\@jmath}{\u0237}"),fe("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),fe("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),fe("\u27E6","\\llbracket"),fe("\u27E7","\\rrbracket"),fe("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),fe("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),fe("\u2983","\\lBrace"),fe("\u2984","\\rBrace"),fe("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`\u29B5}}"),fe("\u29B5","\\minuso"),fe("\\darr","\\downarrow"),fe("\\dArr","\\Downarrow"),fe("\\Darr","\\Downarrow"),fe("\\lang","\\langle"),fe("\\rang","\\rangle"),fe("\\uarr","\\uparrow"),fe("\\uArr","\\Uparrow"),fe("\\Uarr","\\Uparrow"),fe("\\N","\\mathbb{N}"),fe("\\R","\\mathbb{R}"),fe("\\Z","\\mathbb{Z}"),fe("\\alef","\\aleph"),fe("\\alefsym","\\aleph"),fe("\\Alpha","\\mathrm{A}"),fe("\\Beta","\\mathrm{B}"),fe("\\bull","\\bullet"),fe("\\Chi","\\mathrm{X}"),fe("\\clubs","\\clubsuit"),fe("\\cnums","\\mathbb{C}"),fe("\\Complex","\\mathbb{C}"),fe("\\Dagger","\\ddagger"),fe("\\diamonds","\\diamondsuit"),fe("\\empty","\\emptyset"),fe("\\Epsilon","\\mathrm{E}"),fe("\\Eta","\\mathrm{H}"),fe("\\exist","\\exists"),fe("\\harr","\\leftrightarrow"),fe("\\hArr","\\Leftrightarrow"),fe("\\Harr","\\Leftrightarrow"),fe("\\hearts","\\heartsuit"),fe("\\image","\\Im"),fe("\\infin","\\infty"),fe("\\Iota","\\mathrm{I}"),fe("\\isin","\\in"),fe("\\Kappa","\\mathrm{K}"),fe("\\larr","\\leftarrow"),fe("\\lArr","\\Leftarrow"),fe("\\Larr","\\Leftarrow"),fe("\\lrarr","\\leftrightarrow"),fe("\\lrArr","\\Leftrightarrow"),fe("\\Lrarr","\\Leftrightarrow"),fe("\\Mu","\\mathrm{M}"),fe("\\natnums","\\mathbb{N}"),fe("\\Nu","\\mathrm{N}"),fe("\\Omicron","\\mathrm{O}"),fe("\\plusmn","\\pm"),fe("\\rarr","\\rightarrow"),fe("\\rArr","\\Rightarrow"),fe("\\Rarr","\\Rightarrow"),fe("\\real","\\Re"),fe("\\reals","\\mathbb{R}"),fe("\\Reals","\\mathbb{R}"),fe("\\Rho","\\mathrm{P}"),fe("\\sdot","\\cdot"),fe("\\sect","\\S"),fe("\\spades","\\spadesuit"),fe("\\sub","\\subset"),fe("\\sube","\\subseteq"),fe("\\supe","\\supseteq"),fe("\\Tau","\\mathrm{T}"),fe("\\thetasym","\\vartheta"),fe("\\weierp","\\wp"),fe("\\Zeta","\\mathrm{Z}"),fe("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),fe("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),fe("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),fe("\\bra","\\mathinner{\\langle{#1}|}"),fe("\\ket","\\mathinner{|{#1}\\rangle}"),fe("\\braket","\\mathinner{\\langle{#1}\\rangle}"),fe("\\Bra","\\left\\langle#1\\right|"),fe("\\Ket","\\left|#1\\right\\rangle");var h=T=>m=>{var S=m.consumeArg().tokens,R=m.consumeArg().tokens,Y=m.consumeArg().tokens,re=m.consumeArg().tokens,Z=m.macros.get("|"),st=m.macros.get("\\|");m.macros.beginGroup();var dt=Vn=>wi=>{T&&(wi.macros.set("|",Z),Y.length&&wi.macros.set("\\|",st));var Ti=Vn;if(!Vn&&Y.length){var Pi=wi.future();Pi.text==="|"&&(wi.popToken(),Ti=!0)}return{tokens:Ti?Y:R,numArgs:0}};m.macros.set("|",dt(!1)),Y.length&&m.macros.set("\\|",dt(!0));var pn=m.consumeArg().tokens,Ln=m.expandTokens([...re,...pn,...S]);return m.macros.endGroup(),{tokens:Ln.reverse(),numArgs:0}};fe("\\bra@ket",h(!1)),fe("\\bra@set",h(!0)),fe("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),fe("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),fe("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),fe("\\angln","{\\angl n}"),fe("\\blue","\\textcolor{##6495ed}{#1}"),fe("\\orange","\\textcolor{##ffa500}{#1}"),fe("\\pink","\\textcolor{##ff00af}{#1}"),fe("\\red","\\textcolor{##df0030}{#1}"),fe("\\green","\\textcolor{##28ae7b}{#1}"),fe("\\gray","\\textcolor{gray}{#1}"),fe("\\purple","\\textcolor{##9d38bd}{#1}"),fe("\\blueA","\\textcolor{##ccfaff}{#1}"),fe("\\blueB","\\textcolor{##80f6ff}{#1}"),fe("\\blueC","\\textcolor{##63d9ea}{#1}"),fe("\\blueD","\\textcolor{##11accd}{#1}"),fe("\\blueE","\\textcolor{##0c7f99}{#1}"),fe("\\tealA","\\textcolor{##94fff5}{#1}"),fe("\\tealB","\\textcolor{##26edd5}{#1}"),fe("\\tealC","\\textcolor{##01d1c1}{#1}"),fe("\\tealD","\\textcolor{##01a995}{#1}"),fe("\\tealE","\\textcolor{##208170}{#1}"),fe("\\greenA","\\textcolor{##b6ffb0}{#1}"),fe("\\greenB","\\textcolor{##8af281}{#1}"),fe("\\greenC","\\textcolor{##74cf70}{#1}"),fe("\\greenD","\\textcolor{##1fab54}{#1}"),fe("\\greenE","\\textcolor{##0d923f}{#1}"),fe("\\goldA","\\textcolor{##ffd0a9}{#1}"),fe("\\goldB","\\textcolor{##ffbb71}{#1}"),fe("\\goldC","\\textcolor{##ff9c39}{#1}"),fe("\\goldD","\\textcolor{##e07d10}{#1}"),fe("\\goldE","\\textcolor{##a75a05}{#1}"),fe("\\redA","\\textcolor{##fca9a9}{#1}"),fe("\\redB","\\textcolor{##ff8482}{#1}"),fe("\\redC","\\textcolor{##f9685d}{#1}"),fe("\\redD","\\textcolor{##e84d39}{#1}"),fe("\\redE","\\textcolor{##bc2612}{#1}"),fe("\\maroonA","\\textcolor{##ffbde0}{#1}"),fe("\\maroonB","\\textcolor{##ff92c6}{#1}"),fe("\\maroonC","\\textcolor{##ed5fa6}{#1}"),fe("\\maroonD","\\textcolor{##ca337c}{#1}"),fe("\\maroonE","\\textcolor{##9e034e}{#1}"),fe("\\purpleA","\\textcolor{##ddd7ff}{#1}"),fe("\\purpleB","\\textcolor{##c6b9fc}{#1}"),fe("\\purpleC","\\textcolor{##aa87ff}{#1}"),fe("\\purpleD","\\textcolor{##7854ab}{#1}"),fe("\\purpleE","\\textcolor{##543b78}{#1}"),fe("\\mintA","\\textcolor{##f5f9e8}{#1}"),fe("\\mintB","\\textcolor{##edf2df}{#1}"),fe("\\mintC","\\textcolor{##e0e5cc}{#1}"),fe("\\grayA","\\textcolor{##f6f7f7}{#1}"),fe("\\grayB","\\textcolor{##f0f1f2}{#1}"),fe("\\grayC","\\textcolor{##e3e5e6}{#1}"),fe("\\grayD","\\textcolor{##d6d8da}{#1}"),fe("\\grayE","\\textcolor{##babec2}{#1}"),fe("\\grayF","\\textcolor{##888d93}{#1}"),fe("\\grayG","\\textcolor{##626569}{#1}"),fe("\\grayH","\\textcolor{##3b3e40}{#1}"),fe("\\grayI","\\textcolor{##21242c}{#1}"),fe("\\kaBlue","\\textcolor{##314453}{#1}"),fe("\\kaGreen","\\textcolor{##71B307}{#1}");var g={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class K{constructor(m,S,R){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 Ps(zs,S.macros),this.mode=R,this.stack=[]}feed(m){this.lexer=new ss(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,R,Y;if(m){if(this.consumeSpaces(),this.future().text!=="[")return null;S=this.popToken(),{tokens:Y,end:R}=this.consumeArg(["]"])}else({tokens:Y,start:S,end:R}=this.consumeArg());return this.pushToken(new ln("EOF",R.loc)),this.pushTokens(Y),S.range(R,"")}consumeSpaces(){for(;;){var m=this.future();if(m.text===" ")this.stack.pop();else break}}consumeArg(m){var S=[],R=m&&m.length>0;R||this.consumeSpaces();var Y=this.future(),re,Z=0,st=0;do{if(re=this.popToken(),S.push(re),re.text==="{")++Z;else if(re.text==="}"){if(--Z,Z===-1)throw new Dt("Extra }",re)}else if(re.text==="EOF")throw new Dt("Unexpected end of input in a macro argument, expected '"+(m&&R?m[st]:"}")+"'",re);if(m&&R)if((Z===0||Z===1&&m[st]==="{")&&re.text===m[st]){if(++st,st===m.length){S.splice(-st,st);break}}else st=0}while(Z!==0||R);return Y.text==="{"&&S[S.length-1].text==="}"&&(S.pop(),S.shift()),S.reverse(),{tokens:S,start:Y,end:re}}consumeArgs(m,S){if(S){if(S.length!==m+1)throw new Dt("The length of delimiters doesn't match the number of args!");for(var R=S[0],Y=0;Y<R.length;Y++){var re=this.popToken();if(R[Y]!==re.text)throw new Dt("Use of the macro doesn't match its definition",re)}}for(var Z=[],st=0;st<m;st++)Z.push(this.consumeArg(S&&S[st+1]).tokens);return Z}countExpansion(m){if(this.expansionCount+=m,this.expansionCount>this.settings.maxExpand)throw new Dt("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(m){var S=this.popToken(),R=S.text,Y=S.noexpand?null:this._getExpansion(R);if(Y==null||m&&Y.unexpandable){if(m&&Y==null&&R[0]==="\\"&&!this.isDefined(R))throw new Dt("Undefined control sequence: "+R);return this.pushToken(S),!1}this.countExpansion(1);var re=Y.tokens,Z=this.consumeArgs(Y.numArgs,Y.delimiters);if(Y.numArgs){re=re.slice();for(var st=re.length-1;st>=0;--st){var dt=re[st];if(dt.text==="#"){if(st===0)throw new Dt("Incomplete placeholder at end of macro body",dt);if(dt=re[--st],dt.text==="#")re.splice(st+1,1);else if(/^[1-9]$/.test(dt.text))re.splice(st,2,...Z[+dt.text-1]);else throw new Dt("Not a valid argument number",dt)}}}return this.pushTokens(re),re.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 ln(m)]):void 0}expandTokens(m){var S=[],R=this.stack.length;for(this.pushTokens(m);this.stack.length>R;)if(this.expandOnce(!0)===!1){var Y=this.stack.pop();Y.treatAsRelax&&(Y.noexpand=!1,Y.treatAsRelax=!1),S.push(Y)}return this.countExpansion(S.length),S}expandMacroAsText(m){var S=this.expandMacro(m);return S&&S.map(R=>R.text).join("")}_getExpansion(m){var S=this.macros.get(m);if(S==null)return S;if(m.length===1){var R=this.lexer.catcodes[m];if(R!=null&&R!==13)return}var Y=typeof S=="function"?S(this):S;if(typeof Y=="string"){var re=0;if(Y.indexOf("#")!==-1)for(var Z=Y.replace(/##/g,"");Z.indexOf("#"+(re+1))!==-1;)++re;for(var st=new ss(Y,this.settings),dt=[],pn=st.lex();pn.text!=="EOF";)dt.push(pn),pn=st.lex();dt.reverse();var Ln={tokens:dt,numArgs:re};return Ln}return Y}isDefined(m){return this.macros.has(m)||Wi.hasOwnProperty(m)||Qi.math.hasOwnProperty(m)||Qi.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:Wi.hasOwnProperty(m)&&!Wi[m].primitive}}var Je=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,un=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"}),jn={"\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"}},bi={\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 gr{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 Dt("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 ln("}")),this.gullet.pushTokens(m);var R=this.parseExpression(!1);return this.expect("}"),this.nextToken=S,R}parseExpression(m,S){for(var R=[];;){this.mode==="math"&&this.consumeSpaces();var Y=this.fetch();if(gr.endOfExpression.indexOf(Y.text)!==-1||S&&Y.text===S||m&&Wi[Y.text]&&Wi[Y.text].infix)break;var re=this.parseAtom(S);if(re){if(re.type==="internal")continue}else break;R.push(re)}return this.mode==="text"&&this.formLigatures(R),this.handleInfixNodes(R)}handleInfixNodes(m){for(var S=-1,R,Y=0;Y<m.length;Y++)if(m[Y].type==="infix"){if(S!==-1)throw new Dt("only one infix operator per group",m[Y].token);S=Y,R=m[Y].replaceWith}if(S!==-1&&R){var re,Z,st=m.slice(0,S),dt=m.slice(S+1);st.length===1&&st[0].type==="ordgroup"?re=st[0]:re={type:"ordgroup",mode:this.mode,body:st},dt.length===1&&dt[0].type==="ordgroup"?Z=dt[0]:Z={type:"ordgroup",mode:this.mode,body:dt};var pn;return R==="\\\\abovefrac"?pn=this.callFunction(R,[re,m[S],Z],[]):pn=this.callFunction(R,[re,Z],[]),[pn]}else return m}handleSupSubscript(m){var S=this.fetch(),R=S.text;this.consume(),this.consumeSpaces();var Y=this.parseGroup(m);if(!Y)throw new Dt("Expected group after '"+R+"'",S);return Y}formatUnsupportedCmd(m){for(var S=[],R=0;R<m.length;R++)S.push({type:"textord",mode:"text",text:m[R]});var Y={type:"text",mode:this.mode,body:S},re={type:"color",mode:this.mode,color:this.settings.errorColor,body:[Y]};return re}parseAtom(m){var S=this.parseGroup("atom",m);if(this.mode==="text")return S;for(var R,Y;;){this.consumeSpaces();var re=this.fetch();if(re.text==="\\limits"||re.text==="\\nolimits"){if(S&&S.type==="op"){var Z=re.text==="\\limits";S.limits=Z,S.alwaysHandleSupSub=!0}else if(S&&S.type==="operatorname")S.alwaysHandleSupSub&&(S.limits=re.text==="\\limits");else throw new Dt("Limit controls must follow a math operator",re);this.consume()}else if(re.text==="^"){if(R)throw new Dt("Double superscript",re);R=this.handleSupSubscript("superscript")}else if(re.text==="_"){if(Y)throw new Dt("Double subscript",re);Y=this.handleSupSubscript("subscript")}else if(re.text==="'"){if(R)throw new Dt("Double superscript",re);var st={type:"textord",mode:this.mode,text:"\\prime"},dt=[st];for(this.consume();this.fetch().text==="'";)dt.push(st),this.consume();this.fetch().text==="^"&&dt.push(this.handleSupSubscript("superscript")),R={type:"ordgroup",mode:this.mode,body:dt}}else if(un[re.text]){var pn=Je.test(re.text),Ln=[];for(Ln.push(new ln(un[re.text])),this.consume();;){var Vn=this.fetch().text;if(!un[Vn]||Je.test(Vn)!==pn)break;Ln.unshift(new ln(un[Vn])),this.consume()}var wi=this.subparse(Ln);pn?Y={type:"ordgroup",mode:"math",body:wi}:R={type:"ordgroup",mode:"math",body:wi}}else break}return R||Y?{type:"supsub",mode:this.mode,base:S,sup:R,sub:Y}:S}parseFunction(m,S){var R=this.fetch(),Y=R.text,re=Wi[Y];if(!re)return null;if(this.consume(),S&&S!=="atom"&&!re.allowedInArgument)throw new Dt("Got function '"+Y+"' with no arguments"+(S?" as "+S:""),R);if(this.mode==="text"&&!re.allowedInText)throw new Dt("Can't use function '"+Y+"' in text mode",R);if(this.mode==="math"&&re.allowedInMath===!1)throw new Dt("Can't use function '"+Y+"' in math mode",R);var{args:Z,optArgs:st}=this.parseArguments(Y,re);return this.callFunction(Y,Z,st,R,m)}callFunction(m,S,R,Y,re){var Z={funcName:m,parser:this,token:Y,breakOnTokenText:re},st=Wi[m];if(st&&st.handler)return st.handler(Z,S,R);throw new Dt("No function handler for "+m)}parseArguments(m,S){var R=S.numArgs+S.numOptionalArgs;if(R===0)return{args:[],optArgs:[]};for(var Y=[],re=[],Z=0;Z<R;Z++){var st=S.argTypes&&S.argTypes[Z],dt=Z<S.numOptionalArgs;(S.primitive&&st==null||S.type==="sqrt"&&Z===1&&re[0]==null)&&(st="primitive");var pn=this.parseGroupOfType("argument to '"+m+"'",st,dt);if(dt)re.push(pn);else if(pn!=null)Y.push(pn);else throw new Dt("Null argument, please report this as a bug")}return{args:Y,optArgs:re}}parseGroupOfType(m,S,R){switch(S){case"color":return this.parseColorGroup(R);case"size":return this.parseSizeGroup(R);case"url":return this.parseUrlGroup(R);case"math":case"text":return this.parseArgumentGroup(R,S);case"hbox":{var Y=this.parseArgumentGroup(R,"text");return Y!=null?{type:"styling",mode:Y.mode,body:[Y],style:"text"}:null}case"raw":{var re=this.parseStringGroup("raw",R);return re!=null?{type:"raw",mode:"text",string:re.text}:null}case"primitive":{if(R)throw new Dt("A primitive argument cannot be optional");var Z=this.parseGroup(m);if(Z==null)throw new Dt("Expected group as "+m,this.fetch());return Z}case"original":case null:case void 0:return this.parseArgumentGroup(R);default:throw new Dt("Unknown group type as "+m,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(m,S){var R=this.gullet.scanArgument(S);if(R==null)return null;for(var Y="",re;(re=this.fetch()).text!=="EOF";)Y+=re.text,this.consume();return this.consume(),R.text=Y,R}parseRegexGroup(m,S){for(var R=this.fetch(),Y=R,re="",Z;(Z=this.fetch()).text!=="EOF"&&m.test(re+Z.text);)Y=Z,re+=Y.text,this.consume();if(re==="")throw new Dt("Invalid "+S+": '"+R.text+"'",R);return R.range(Y,re)}parseColorGroup(m){var S=this.parseStringGroup("color",m);if(S==null)return null;var R=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(S.text);if(!R)throw new Dt("Invalid color: '"+S.text+"'",S);var Y=R[0];return/^[0-9a-f]{6}$/i.test(Y)&&(Y="#"+Y),{type:"color-token",mode:this.mode,color:Y}}parseSizeGroup(m){var S,R=!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",R=!0);var Y=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(S.text);if(!Y)throw new Dt("Invalid size: '"+S.text+"'",S);var re={number:+(Y[1]+Y[2]),unit:Y[3]};if(!pt(re))throw new Dt("Invalid unit: '"+re.unit+"'",S);return{type:"size",mode:this.mode,value:re,isBlank:R}}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 R=S.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:R}}parseArgumentGroup(m,S){var R=this.gullet.scanArgument(m);if(R==null)return null;var Y=this.mode;S&&this.switchMode(S),this.gullet.beginGroup();var re=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var Z={type:"ordgroup",mode:this.mode,loc:R.loc,body:re};return S&&this.switchMode(Y),Z}parseGroup(m,S){var R=this.fetch(),Y=R.text,re;if(Y==="{"||Y==="\\begingroup"){this.consume();var Z=Y==="{"?"}":"\\endgroup";this.gullet.beginGroup();var st=this.parseExpression(!1,Z),dt=this.fetch();this.expect(Z),this.gullet.endGroup(),re={type:"ordgroup",mode:this.mode,loc:yt.range(R,dt),body:st,semisimple:Y==="\\begingroup"||void 0}}else if(re=this.parseFunction(S,m)||this.parseSymbol(),re==null&&Y[0]==="\\"&&!g.hasOwnProperty(Y)){if(this.settings.throwOnError)throw new Dt("Undefined control sequence: "+Y,R);re=this.formatUnsupportedCmd(Y),this.consume()}return re}formLigatures(m){for(var S=m.length-1,R=0;R<S;++R){var Y=m[R],re=Y.text;re==="-"&&m[R+1].text==="-"&&(R+1<S&&m[R+2].text==="-"?(m.splice(R,3,{type:"textord",mode:"text",loc:yt.range(Y,m[R+2]),text:"---"}),S-=2):(m.splice(R,2,{type:"textord",mode:"text",loc:yt.range(Y,m[R+1]),text:"--"}),S-=1)),(re==="'"||re==="`")&&m[R+1].text===re&&(m.splice(R,2,{type:"textord",mode:"text",loc:yt.range(Y,m[R+1]),text:re+re}),S-=1)}}parseSymbol(){var m=this.fetch(),S=m.text;if(/^\\verb[^a-zA-Z]/.test(S)){this.consume();var R=S.slice(5),Y=R.charAt(0)==="*";if(Y&&(R=R.slice(1)),R.length<2||R.charAt(0)!==R.slice(-1))throw new Dt(`\\verb assertion failed --
|
|
|
please report what input caused this bug`);return R=R.slice(1,-1),{type:"verb",mode:"text",body:R,star:Y}}bi.hasOwnProperty(S[0])&&!Qi[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=bi[S[0]]+S.slice(1));var re=co.exec(S);re&&(S=S.substring(0,re.index),S==="i"?S="\u0131":S==="j"&&(S="\u0237"));var Z;if(Qi[this.mode][S]){this.settings.strict&&this.mode==="math"&&$r.indexOf(S)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+S[0]+'" used in math mode',m);var st=Qi[this.mode][S].group,dt=yt.range(m),pn;if(hr.hasOwnProperty(st)){var Ln=st;pn={type:"atom",mode:this.mode,family:Ln,loc:dt,text:S}}else pn={type:st,mode:this.mode,loc:dt,text:S};Z=pn}else if(S.charCodeAt(0)>=128)this.settings.strict&&(sn(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)),Z={type:"textord",mode:"text",loc:yt.range(m),text:S};else return null;if(this.consume(),re)for(var Vn=0;Vn<re[0].length;Vn++){var wi=re[0][Vn];if(!jn[wi])throw new Dt("Unknown accent ' "+wi+"'",m);var Ti=jn[wi][this.mode]||jn[wi].text;if(!Ti)throw new Dt("Accent "+wi+" unsupported in "+this.mode+" mode",m);Z={type:"accent",mode:this.mode,loc:yt.range(m),label:Ti,isStretchy:!1,isShifty:!0,base:Z}}return Z}}gr.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var Dr=function(m,S){if(!(typeof m=="string"||m instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var R=new gr(m,S);delete R.gullet.macros.current["\\df@tag"];var Y=R.parse();if(delete R.gullet.macros.current["\\current@color"],delete R.gullet.macros.current["\\color"],R.gullet.macros.get("\\df@tag")){if(!S.displayMode)throw new Dt("\\tag works only in display equations");Y=[{type:"tag",mode:"text",body:Y,tag:R.subparse([new ln("\\df@tag")])}]}return Y},Gr=function(m,S,R){S.textContent="";var Y=nr(m,R).toNode();S.appendChild(Y)};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."),Gr=function(){throw new Dt("KaTeX doesn't work in quirks mode.")});var Is=function(m,S){var R=nr(m,S).toMarkup();return R},vs=function(m,S){var R=new ze(S);return Dr(m,R)},ni=function(m,S,R){if(R.throwOnError||!(m instanceof Dt))throw m;var Y=yn.makeSpan(["katex-error"],[new En(S)]);return Y.setAttribute("title",m.toString()),Y.setAttribute("style","color:"+R.errorColor),Y},nr=function(m,S){var R=new ze(S);try{var Y=Dr(m,R);return Es(Y,m,R)}catch(re){return ni(re,m,R)}},mo=function(m,S){var R=new ze(S);try{var Y=Dr(m,R);return Gl(Y,m,R)}catch(re){return ni(re,m,R)}},ko="0.16.21",ts={Span:D,Anchor:Gt,SymbolNode:En,SvgNode:Mn,PathNode:ki,LineNode:Un},Sa={version:ko,render:Gr,renderToString:Is,ParseError:Dt,SETTINGS_SCHEMA:Re,__parse:vs,__renderToDomTree:nr,__renderToHTMLTree:mo,__setFontMetrics:di,__defineSymbol:J,__defineFunction:Di,__defineMacro:fe,__domTree:ts},pa=d(2348);const yo={},as=[];function Hs(T){const m=T||yo;return function(S,R){(0,pa.S4)(S,"element",function(Y,re){const Z=Array.isArray(Y.properties.className)?Y.properties.className:as,st=Z.includes("language-math"),dt=Z.includes("math-display"),pn=Z.includes("math-inline");let Ln=dt;if(!st&&!dt&&!pn)return;let Vn=re[re.length-1],wi=Y;if(Y.tagName==="code"&&st&&Vn&&Vn.type==="element"&&Vn.tagName==="pre"&&(wi=Vn,Vn=re[re.length-2],Ln=!0),!Vn)return;const Ti=Bt(wi,{whitespace:"pre"});let Pi;try{Pi=Sa.renderToString(Ti,cd(Bo({},m),{displayMode:Ln,throwOnError:!0}))}catch(Pr){const Fr=Pr,Eo=Fr.name.toLowerCase();R.message("Could not render math with KaTeX",{ancestors:[...re,Y],cause:Fr,place:Y.position,ruleId:Eo,source:"rehype-katex"});try{Pi=Sa.renderToString(Ti,cd(Bo({},m),{displayMode:Ln,strict:"ignore",throwOnError:!1}))}catch(Ho){Pi=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(m.errorColor||"#cc0000"),title:String(Pr)},children:[{type:"text",value:Ti}]}]}}typeof Pi=="string"&&(Pi=rt(Pi,{fragment:!0}).children);const vr=Vn.children.indexOf(wi);return Vn.children.splice(vr,1,...Pi),pa.AM})}}},93772:function(Q,C,d){"use strict";d.d(C,{Z:function(){return Us}});var b={};d.r(b),d.d(b,{boolean:function(){return Le},booleanish:function(){return Ke},commaOrSpaceSeparated:function(){return Bt},commaSeparated:function(){return Ze},number:function(){return ie},overloadedBoolean:function(){return nt},spaceSeparated:function(){return at}});var I=d(90302),O=d(87342),z=d(81994),W=d(58222),_=d(84837);function M(h){const g=String(h),K=[];return{toOffset:un,toPoint:Je};function Je(jn){if(typeof jn=="number"&&jn>-1&&jn<=g.length){let bi=0;for(;;){let gr=K[bi];if(gr===void 0){const Dr=pe(g,K[bi-1]);gr=Dr===-1?g.length+1:Dr+1,K[bi]=gr}if(gr>jn)return{line:bi+1,column:jn-(bi>0?K[bi-1]:0)+1,offset:jn};bi++}}}function un(jn){if(jn&&typeof jn.line=="number"&&typeof jn.column=="number"&&!Number.isNaN(jn.line)&&!Number.isNaN(jn.column)){for(;K.length<jn.line;){const gr=K[K.length-1],Dr=pe(g,gr),Gr=Dr===-1?g.length+1:Dr+1;if(gr===Gr)break;K.push(Gr)}const bi=(jn.line>1?K[jn.line-2]:0)+jn.column-1;if(bi<K[jn.line-1])return bi}}}function pe(h,g){const K=h.indexOf("\r",g),Je=h.indexOf(`
|
|
|
`,g);return Je===-1?K:K===-1||K+1===Je?Je:K<Je?K:Je}var ue=d(43309);const ne={}.hasOwnProperty,Pe=Object.prototype;function ke(h,g){const K=g||{};return rt({file:K.file||void 0,location:!1,schema:K.space==="svg"?W.YP:W.dy,verbose:K.verbose||!1},h)}function rt(h,g){let K;switch(g.nodeName){case"#comment":{const Je=g;return K={type:"comment",value:Je.data},De(h,Je,K),K}case"#document":case"#document-fragment":{const Je=g,un="mode"in Je?Je.mode==="quirks"||Je.mode==="limited-quirks":!1;if(K={type:"root",children:Ue(h,g.childNodes),data:{quirksMode:un}},h.file&&h.location){const jn=String(h.file),bi=M(jn),gr=bi.toPoint(0),Dr=bi.toPoint(jn.length);(0,O.ok)(gr,"expected `start`"),(0,O.ok)(Dr,"expected `end`"),K.position={start:gr,end:Dr}}return K}case"#documentType":{const Je=g;return K={type:"doctype"},De(h,Je,K),K}case"#text":{const Je=g;return K={type:"text",value:Je.value},De(h,Je,K),K}default:return K=Ie(h,g),K}}function Ue(h,g){let K=-1;const Je=[];for(;++K<g.length;){const un=rt(h,g[K]);Je.push(un)}return Je}function Ie(h,g){const K=h.schema;h.schema=g.namespaceURI===ue.t.svg?W.YP:W.dy;let Je=-1;const un={};for(;++Je<g.attrs.length;){const gr=g.attrs[Je],Dr=(gr.prefix?gr.prefix+":":"")+gr.name;ne.call(Pe,Dr)||(un[Dr]=gr.value)}const bi=(h.schema.space==="svg"?z.s:z.h)(g.tagName,un,Ue(h,g.childNodes));if(De(h,g,bi),bi.tagName==="template"){const gr=g,Dr=gr.sourceCodeLocation,Gr=Dr&&Dr.startTag&&de(Dr.startTag),Is=Dr&&Dr.endTag&&de(Dr.endTag),vs=rt(h,gr.content);Gr&&Is&&h.file&&(vs.position={start:Gr.end,end:Is.start}),bi.content=vs}return h.schema=K,bi}function De(h,g,K){if("sourceCodeLocation"in g&&g.sourceCodeLocation&&h.file){const Je=Fe(h,K,g.sourceCodeLocation);Je&&(h.location=!0,K.position=Je)}}function Fe(h,g,K){const Je=de(K);if(g.type==="element"){const un=g.children[g.children.length-1];if(Je&&!K.endTag&&un&&un.position&&un.position.end&&(Je.end=Object.assign({},un.position.end)),h.verbose){const jn={};let bi;if(K.attrs)for(bi in K.attrs)ne.call(K.attrs,bi)&&(jn[(0,_.s)(h.schema,bi).property]=de(K.attrs[bi]));(0,O.ok)(K.startTag,"a start tag should exist");const gr=de(K.startTag),Dr=K.endTag?de(K.endTag):void 0,Gr={opening:gr};Dr&&(Gr.closing=Dr),Gr.properties=jn,g.data={position:Gr}}}return Je}function de(h){const g=me({line:h.startLine,column:h.startCol,offset:h.startOffset}),K=me({line:h.endLine,column:h.endCol,offset:h.endOffset});return g||K?{start:g,end:K}:void 0}function me(h){return h.line&&h.column?h:void 0}var we=d(11630);class ge{constructor(g,K,Je){this.property=g,this.normal=K,Je&&(this.space=Je)}}ge.prototype.property={},ge.prototype.normal={},ge.prototype.space=null;function Te(h,g){const K={},Je={};let un=-1;for(;++un<h.length;)Object.assign(K,h[un].property),Object.assign(Je,h[un].normal);return new ge(K,Je,g)}function ee(h){return h.toLowerCase()}class Ce{constructor(g,K){this.property=g,this.attribute=K}}Ce.prototype.space=null,Ce.prototype.boolean=!1,Ce.prototype.booleanish=!1,Ce.prototype.overloadedBoolean=!1,Ce.prototype.number=!1,Ce.prototype.commaSeparated=!1,Ce.prototype.spaceSeparated=!1,Ce.prototype.commaOrSpaceSeparated=!1,Ce.prototype.mustUseProperty=!1,Ce.prototype.defined=!1;let Ne=0;const Le=bt(),Ke=bt(),nt=bt(),ie=bt(),at=bt(),Ze=bt(),Bt=bt();function bt(){return ny(2,++Ne)}const kt=Object.keys(b);class Tt extends Ce{constructor(g,K,Je,un){let jn=-1;if(super(g,K),wn(this,"space",un),typeof Je=="number")for(;++jn<kt.length;){const bi=kt[jn];wn(this,kt[jn],(Je&b[bi])===b[bi])}}}Tt.prototype.defined=!0;function wn(h,g,K){K&&(h[g]=K)}const Xe={}.hasOwnProperty;function se(h){const g={},K={};let Je;for(Je in h.properties)if(Xe.call(h.properties,Je)){const un=h.properties[Je],jn=new Tt(Je,h.transform(h.attributes||{},Je),un,h.space);h.mustUseProperty&&h.mustUseProperty.includes(Je)&&(jn.mustUseProperty=!0),g[Je]=jn,K[ee(Je)]=Je,K[ee(jn.attribute)]=Je}return new ge(g,K,h.space)}const le=se({space:"xlink",transform(h,g){return"xlink:"+g.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),_t=se({space:"xml",transform(h,g){return"xml:"+g.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function jt(h,g){return g in h?h[g]:g}function yt(h,g){return jt(h,g.toLowerCase())}const ln=se({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:yt,properties:{xmlns:null,xmlnsXLink:null}}),Dt=se({transform(h,g){return g==="role"?g:"aria-"+g.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Ke,ariaAutoComplete:null,ariaBusy:Ke,ariaChecked:Ke,ariaColCount:ie,ariaColIndex:ie,ariaColSpan:ie,ariaControls:at,ariaCurrent:null,ariaDescribedBy:at,ariaDetails:null,ariaDisabled:Ke,ariaDropEffect:at,ariaErrorMessage:null,ariaExpanded:Ke,ariaFlowTo:at,ariaGrabbed:Ke,ariaHasPopup:null,ariaHidden:Ke,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:at,ariaLevel:ie,ariaLive:null,ariaModal:Ke,ariaMultiLine:Ke,ariaMultiSelectable:Ke,ariaOrientation:null,ariaOwns:at,ariaPlaceholder:null,ariaPosInSet:ie,ariaPressed:Ke,ariaReadOnly:Ke,ariaRelevant:null,ariaRequired:Ke,ariaRoleDescription:at,ariaRowCount:ie,ariaRowIndex:ie,ariaRowSpan:ie,ariaSelected:Ke,ariaSetSize:ie,ariaSort:null,ariaValueMax:ie,ariaValueMin:ie,ariaValueNow:ie,ariaValueText:null,role:null}}),ui=se({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:yt,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ze,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:ie,colSpan:null,content:null,contentEditable:Ke,controls:Le,controlsList:at,coords:ie|Ze,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Le,defer:Le,dir:null,dirName:null,disabled:Le,download:nt,draggable:Ke,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Le,formTarget:null,headers:at,height:ie,hidden:Le,high:ie,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:ie,manifest:null,max:null,maxLength:ie,media:null,method:null,min:null,minLength:ie,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:ie,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:ie,rowSpan:ie,sandbox:at,scope:null,scoped:Le,seamless:Le,selected:Le,shadowRootClonable:Le,shadowRootDelegatesFocus:Le,shadowRootMode:null,shape:null,size:ie,sizes:null,slot:null,span:ie,spellCheck:Ke,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ie,step:null,style:null,tabIndex:ie,target:null,title:null,translate:null,type:null,typeMustMatch:Le,useMap:null,value:Ke,width:ie,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:at,axis:null,background:null,bgColor:null,border:ie,borderColor:null,bottomMargin:ie,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:ie,leftMargin:ie,link:null,longDesc:null,lowSrc:null,marginHeight:ie,marginWidth:ie,noResize:Le,noHref:Le,noShade:Le,noWrap:Le,object:null,profile:null,prompt:null,rev:null,rightMargin:ie,rules:null,scheme:null,scrolling:Ke,standby:null,summary:null,text:null,topMargin:ie,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ie,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Le,disableRemotePlayback:Le,prefix:null,property:null,results:ie,security:null,unselectable:null}}),On=se({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:jt,properties:{about:Bt,accentHeight:ie,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ie,amplitude:ie,arabicForm:null,ascent:ie,attributeName:null,attributeType:null,azimuth:ie,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ie,by:null,calcMode:null,capHeight:ie,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:ie,diffuseConstant:ie,direction:null,display:null,dur:null,divisor:ie,dominantBaseline:null,download:Le,dx:null,dy:null,edgeMode:null,editable:null,elevation:ie,enableBackground:null,end:null,event:null,exponent:ie,externalResourcesRequired:null,fill:null,fillOpacity:ie,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:Ze,g2:Ze,glyphName:Ze,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ie,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ie,horizOriginX:ie,horizOriginY:ie,id:null,ideographic:ie,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ie,k:ie,k1:ie,k2:ie,k3:ie,k4:ie,kernelMatrix:Bt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ie,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:ie,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:ie,overlineThickness:ie,paintOrder:null,panose1:null,path:null,pathLength:ie,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:at,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ie,pointsAtY:ie,pointsAtZ:ie,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Bt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Bt,rev:Bt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Bt,requiredFeatures:Bt,requiredFonts:Bt,requiredFormats:Bt,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:ie,specularExponent:ie,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ie,strikethroughThickness:ie,string:null,stroke:null,strokeDashArray:Bt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ie,strokeOpacity:ie,strokeWidth:null,style:null,surfaceScale:ie,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Bt,tabIndex:ie,tableValues:null,target:null,targetX:ie,targetY:ie,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Bt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ie,underlineThickness:ie,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ie,values:null,vAlphabetic:ie,vMathematical:ie,vectorEffect:null,vHanging:ie,vIdeographic:ie,version:null,vertAdvY:ie,vertOriginX:ie,vertOriginY:ie,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ie,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),ri=Te([_t,le,ln,Dt,ui],"html"),Xn=Te([_t,le,ln,Dt,On],"svg"),Tn=/^data[-\w.:]+$/i,Nn=/-[a-z]/g,xe=/[A-Z]/g;function P(h,g){const K=ee(g);let Je=g,un=Ce;if(K in h.normal)return h.property[h.normal[K]];if(K.length>4&&K.slice(0,4)==="data"&&Tn.test(g)){if(g.charAt(4)==="-"){const jn=g.slice(5).replace(Nn,j);Je="data"+jn.charAt(0).toUpperCase()+jn.slice(1)}else{const jn=g.slice(4);if(!Nn.test(jn)){let bi=jn.replace(xe,k);bi.charAt(0)!=="-"&&(bi="-"+bi),g="data"+bi}}un=Tt}return new un(Je,g)}function k(h){return"-"+h.toLowerCase()}function j(h){return h.charAt(1).toUpperCase()}var X=d(71523);const N={}.hasOwnProperty;function Re(h,g){const K=g||{};function Je(un,...jn){let bi=Je.invalid;const gr=Je.handlers;if(un&&N.call(un,h)){const Dr=String(un[h]);bi=N.call(gr,Dr)?gr[Dr]:Je.unknown}if(bi)return bi.call(this,un,...jn)}return Je.handlers=K.handlers||{},Je.invalid=K.invalid,Je.unknown=K.unknown,Je}const wt={},ze={}.hasOwnProperty,Oe=Re("type",{handlers:{root:lt,element:Ot,text:nn,comment:Yt,doctype:Ct}});function mt(h,g){const Je=(g||wt).space;return Oe(h,Je==="svg"?Xn:ri)}function lt(h,g){const K={nodeName:"#document",mode:(h.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return K.childNodes=hn(h.children,K,g),Ve(h,K),K}function Qe(h,g){const K={nodeName:"#document-fragment",childNodes:[]};return K.childNodes=hn(h.children,K,g),Ve(h,K),K}function Ct(h){const g={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Ve(h,g),g}function nn(h){const g={nodeName:"#text",value:h.value,parentNode:null};return Ve(h,g),g}function Yt(h){const g={nodeName:"#comment",data:h.value,parentNode:null};return Ve(h,g),g}function Ot(h,g){const K=g;let Je=K;h.type==="element"&&h.tagName.toLowerCase()==="svg"&&K.space==="html"&&(Je=Xn);const un=[];let jn;if(h.properties){for(jn in h.properties)if(jn!=="children"&&ze.call(h.properties,jn)){const Dr=on(Je,jn,h.properties[jn]);Dr&&un.push(Dr)}}const bi=Je.space;(0,O.ok)(bi);const gr={nodeName:h.tagName,tagName:h.tagName,attrs:un,namespaceURI:ue.t[bi],childNodes:[],parentNode:null};return gr.childNodes=hn(h.children,gr,Je),Ve(h,gr),h.tagName==="template"&&h.content&&(gr.content=Qe(h.content,Je)),gr}function on(h,g,K){const Je=P(h,g);if(K===!1||K===null||K===void 0||typeof K=="number"&&Number.isNaN(K)||!K&&Je.boolean)return;Array.isArray(K)&&(K=Je.commaSeparated?(0,we.P)(K):(0,X.P)(K));const un={name:Je.attribute,value:K===!0?"":String(K)};if(Je.space&&Je.space!=="html"&&Je.space!=="svg"){const jn=un.name.indexOf(":");jn<0?un.prefix="":(un.name=un.name.slice(jn+1),un.prefix=Je.attribute.slice(0,jn)),un.namespace=ue.t[Je.space]}return un}function hn(h,g,K){let Je=-1;const un=[];if(h)for(;++Je<h.length;){const jn=Oe(h[Je],K);jn.parentNode=g,un.push(jn)}return un}function Ve(h,g){const K=h.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 Pt=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Xt=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]),qt="\uFFFD";var He;(function(h){h[h.EOF=-1]="EOF",h[h.NULL=0]="NULL",h[h.TABULATION=9]="TABULATION",h[h.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",h[h.LINE_FEED=10]="LINE_FEED",h[h.FORM_FEED=12]="FORM_FEED",h[h.SPACE=32]="SPACE",h[h.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",h[h.QUOTATION_MARK=34]="QUOTATION_MARK",h[h.AMPERSAND=38]="AMPERSAND",h[h.APOSTROPHE=39]="APOSTROPHE",h[h.HYPHEN_MINUS=45]="HYPHEN_MINUS",h[h.SOLIDUS=47]="SOLIDUS",h[h.DIGIT_0=48]="DIGIT_0",h[h.DIGIT_9=57]="DIGIT_9",h[h.SEMICOLON=59]="SEMICOLON",h[h.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",h[h.EQUALS_SIGN=61]="EQUALS_SIGN",h[h.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",h[h.QUESTION_MARK=63]="QUESTION_MARK",h[h.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",h[h.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",h[h.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",h[h.GRAVE_ACCENT=96]="GRAVE_ACCENT",h[h.LATIN_SMALL_A=97]="LATIN_SMALL_A",h[h.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(He||(He={}));const Rn={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Cn(h){return h>=55296&&h<=57343}function Gn(h){return h>=56320&&h<=57343}function Ci(h,g){return(h-55296)*1024+9216+g}function ci(h){return h!==32&&h!==10&&h!==13&&h!==9&&h!==12&&h>=1&&h<=31||h>=127&&h<=159}function sn(h){return h>=64976&&h<=65007||Xt.has(h)}var rn;(function(h){h.controlCharacterInInputStream="control-character-in-input-stream",h.noncharacterInInputStream="noncharacter-in-input-stream",h.surrogateInInputStream="surrogate-in-input-stream",h.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",h.endTagWithAttributes="end-tag-with-attributes",h.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",h.unexpectedSolidusInTag="unexpected-solidus-in-tag",h.unexpectedNullCharacter="unexpected-null-character",h.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",h.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",h.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",h.missingEndTagName="missing-end-tag-name",h.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",h.unknownNamedCharacterReference="unknown-named-character-reference",h.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",h.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",h.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",h.eofBeforeTagName="eof-before-tag-name",h.eofInTag="eof-in-tag",h.missingAttributeValue="missing-attribute-value",h.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",h.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",h.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",h.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",h.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",h.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",h.missingDoctypePublicIdentifier="missing-doctype-public-identifier",h.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",h.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",h.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",h.cdataInHtmlContent="cdata-in-html-content",h.incorrectlyOpenedComment="incorrectly-opened-comment",h.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",h.eofInDoctype="eof-in-doctype",h.nestedComment="nested-comment",h.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",h.eofInComment="eof-in-comment",h.incorrectlyClosedComment="incorrectly-closed-comment",h.eofInCdata="eof-in-cdata",h.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",h.nullCharacterReference="null-character-reference",h.surrogateCharacterReference="surrogate-character-reference",h.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",h.controlCharacterReference="control-character-reference",h.noncharacterCharacterReference="noncharacter-character-reference",h.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",h.missingDoctypeName="missing-doctype-name",h.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",h.duplicateAttribute="duplicate-attribute",h.nonConformingDoctype="non-conforming-doctype",h.missingDoctype="missing-doctype",h.misplacedDoctype="misplaced-doctype",h.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",h.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",h.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",h.openElementsLeftAfterEof="open-elements-left-after-eof",h.abandonedHeadElementChild="abandoned-head-element-child",h.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",h.nestedNoscriptInHead="nested-noscript-in-head",h.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(rn||(rn={}));const cr=65536;class yr{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=cr,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:Je,col:un,offset:jn}=this,bi=un+K,gr=jn+K;return{code:g,startLine:Je,endLine:Je,startCol:bi,endCol:bi,startOffset:gr,endOffset:gr}}_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(Gn(K))return this.pos++,this._addGap(),Ci(g,K)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,He.EOF;return this._err(rn.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 Je=0;Je<g.length;Je++)if((this.html.charCodeAt(this.pos+Je)|32)!==g.charCodeAt(Je))return!1;return!0}peek(g){const K=this.pos+g;if(K>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,He.EOF;const Je=this.html.charCodeAt(K);return Je===He.CARRIAGE_RETURN?He.LINE_FEED:Je}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,He.EOF;let g=this.html.charCodeAt(this.pos);return g===He.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,He.LINE_FEED):g===He.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Cn(g)&&(g=this._processSurrogate(g)),this.handler.onParseError===null||g>31&&g<127||g===He.LINE_FEED||g===He.CARRIAGE_RETURN||g>159&&g<64976||this._checkForProblematicCharacters(g),g)}_checkForProblematicCharacters(g){ci(g)?this._err(rn.controlCharacterInInputStream):sn(g)&&this._err(rn.noncharacterInInputStream)}retreat(g){for(this.pos-=g;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Zn;(function(h){h[h.CHARACTER=0]="CHARACTER",h[h.NULL_CHARACTER=1]="NULL_CHARACTER",h[h.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",h[h.START_TAG=3]="START_TAG",h[h.END_TAG=4]="END_TAG",h[h.COMMENT=5]="COMMENT",h[h.DOCTYPE=6]="DOCTYPE",h[h.EOF=7]="EOF",h[h.HIBERNATION=8]="HIBERNATION"})(Zn||(Zn={}));function Mr(h,g){for(let K=h.attrs.length-1;K>=0;K--)if(h.attrs[K].name===g)return h.attrs[K].value;return null}var rr=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(h=>h.charCodeAt(0))),U=new Uint16Array("\u0200aglq \x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(h=>h.charCodeAt(0))),mr;const lr=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]]),_r=(mr=String.fromCodePoint)!==null&&mr!==void 0?mr:function(h){let g="";return h>65535&&(h-=65536,g+=String.fromCharCode(h>>>10&1023|55296),h=56320|h&1023),g+=String.fromCharCode(h),g};function Hr(h){var g;return h>=55296&&h<=57343||h>1114111?65533:(g=lr.get(h))!==null&&g!==void 0?g:h}function uo(h){return _r(Hr(h))}var Tr;(function(h){h[h.NUM=35]="NUM",h[h.SEMI=59]="SEMI",h[h.EQUALS=61]="EQUALS",h[h.ZERO=48]="ZERO",h[h.NINE=57]="NINE",h[h.LOWER_A=97]="LOWER_A",h[h.LOWER_F=102]="LOWER_F",h[h.LOWER_X=120]="LOWER_X",h[h.LOWER_Z=122]="LOWER_Z",h[h.UPPER_A=65]="UPPER_A",h[h.UPPER_F=70]="UPPER_F",h[h.UPPER_Z=90]="UPPER_Z"})(Tr||(Tr={}));const Jr=32;var fr;(function(h){h[h.VALUE_LENGTH=49152]="VALUE_LENGTH",h[h.BRANCH_LENGTH=16256]="BRANCH_LENGTH",h[h.JUMP_TABLE=127]="JUMP_TABLE"})(fr||(fr={}));function Xi(h){return h>=Tr.ZERO&&h<=Tr.NINE}function di(h){return h>=Tr.UPPER_A&&h<=Tr.UPPER_F||h>=Tr.LOWER_A&&h<=Tr.LOWER_F}function ht(h){return h>=Tr.UPPER_A&&h<=Tr.UPPER_Z||h>=Tr.LOWER_A&&h<=Tr.LOWER_Z||Xi(h)}function _n(h){return h===Tr.EQUALS||ht(h)}var Hn;(function(h){h[h.EntityStart=0]="EntityStart",h[h.NumericStart=1]="NumericStart",h[h.NumericDecimal=2]="NumericDecimal",h[h.NumericHex=3]="NumericHex",h[h.NamedEntity=4]="NamedEntity"})(Hn||(Hn={}));var gt;(function(h){h[h.Legacy=0]="Legacy",h[h.Strict=1]="Strict",h[h.Attribute=2]="Attribute"})(gt||(gt={}));class Ge{constructor(g,K,Je){this.decodeTree=g,this.emitCodePoint=K,this.errors=Je,this.state=Hn.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=gt.Strict}startEntity(g){this.decodeMode=g,this.state=Hn.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(g,K){switch(this.state){case Hn.EntityStart:return g.charCodeAt(K)===Tr.NUM?(this.state=Hn.NumericStart,this.consumed+=1,this.stateNumericStart(g,K+1)):(this.state=Hn.NamedEntity,this.stateNamedEntity(g,K));case Hn.NumericStart:return this.stateNumericStart(g,K);case Hn.NumericDecimal:return this.stateNumericDecimal(g,K);case Hn.NumericHex:return this.stateNumericHex(g,K);case Hn.NamedEntity:return this.stateNamedEntity(g,K)}}stateNumericStart(g,K){return K>=g.length?-1:(g.charCodeAt(K)|Jr)===Tr.LOWER_X?(this.state=Hn.NumericHex,this.consumed+=1,this.stateNumericHex(g,K+1)):(this.state=Hn.NumericDecimal,this.stateNumericDecimal(g,K))}addToNumericResult(g,K,Je,un){if(K!==Je){const jn=Je-K;this.result=this.result*Math.pow(un,jn)+parseInt(g.substr(K,jn),un),this.consumed+=jn}}stateNumericHex(g,K){const Je=K;for(;K<g.length;){const un=g.charCodeAt(K);if(Xi(un)||di(un))K+=1;else return this.addToNumericResult(g,Je,K,16),this.emitNumericEntity(un,3)}return this.addToNumericResult(g,Je,K,16),-1}stateNumericDecimal(g,K){const Je=K;for(;K<g.length;){const un=g.charCodeAt(K);if(Xi(un))K+=1;else return this.addToNumericResult(g,Je,K,10),this.emitNumericEntity(un,2)}return this.addToNumericResult(g,Je,K,10),-1}emitNumericEntity(g,K){var Je;if(this.consumed<=K)return(Je=this.errors)===null||Je===void 0||Je.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(g===Tr.SEMI)this.consumed+=1;else if(this.decodeMode===gt.Strict)return 0;return this.emitCodePoint(Hr(this.result),this.consumed),this.errors&&(g!==Tr.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(g,K){const{decodeTree:Je}=this;let un=Je[this.treeIndex],jn=(un&fr.VALUE_LENGTH)>>14;for(;K<g.length;K++,this.excess++){const bi=g.charCodeAt(K);if(this.treeIndex=Sn(Je,un,this.treeIndex+Math.max(1,jn),bi),this.treeIndex<0)return this.result===0||this.decodeMode===gt.Attribute&&(jn===0||_n(bi))?0:this.emitNotTerminatedNamedEntity();if(un=Je[this.treeIndex],jn=(un&fr.VALUE_LENGTH)>>14,jn!==0){if(bi===Tr.SEMI)return this.emitNamedEntityData(this.treeIndex,jn,this.consumed+this.excess);this.decodeMode!==gt.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var g;const{result:K,decodeTree:Je}=this,un=(Je[K]&fr.VALUE_LENGTH)>>14;return this.emitNamedEntityData(K,un,this.consumed),(g=this.errors)===null||g===void 0||g.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(g,K,Je){const{decodeTree:un}=this;return this.emitCodePoint(K===1?un[g]&~fr.VALUE_LENGTH:un[g+1],Je),K===3&&this.emitCodePoint(un[g+2],Je),Je}end(){var g;switch(this.state){case Hn.NamedEntity:return this.result!==0&&(this.decodeMode!==gt.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Hn.NumericDecimal:return this.emitNumericEntity(0,2);case Hn.NumericHex:return this.emitNumericEntity(0,3);case Hn.NumericStart:return(g=this.errors)===null||g===void 0||g.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Hn.EntityStart:return 0}}}function fn(h){let g="";const K=new Ge(h,Je=>g+=_r(Je));return function(un,jn){let bi=0,gr=0;for(;(gr=un.indexOf("&",gr))>=0;){g+=un.slice(bi,gr),K.startEntity(jn);const Gr=K.write(un,gr+1);if(Gr<0){bi=gr+K.end();break}bi=gr+Gr,gr=Gr===0?bi+1:bi}const Dr=g+un.slice(bi);return g="",Dr}}function Sn(h,g,K,Je){const un=(g&fr.BRANCH_LENGTH)>>7,jn=g&fr.JUMP_TABLE;if(un===0)return jn!==0&&Je===jn?K:-1;if(jn){const Dr=Je-jn;return Dr<0||Dr>=un?-1:h[K+Dr]-1}let bi=K,gr=bi+un-1;for(;bi<=gr;){const Dr=bi+gr>>>1,Gr=h[Dr];if(Gr<Je)bi=Dr+1;else if(Gr>Je)gr=Dr-1;else return h[Dr+un]}return-1}const ti=fn(rr),Kn=fn(U);function pt(h,g=gt.Legacy){return ti(h,g)}function gn(h){return ti(h,gt.Attribute)}function tn(h){return ti(h,gt.Strict)}function xi(h){return Kn(h,gt.Strict)}var ft;(function(h){h.HTML="http://www.w3.org/1999/xhtml",h.MATHML="http://www.w3.org/1998/Math/MathML",h.SVG="http://www.w3.org/2000/svg",h.XLINK="http://www.w3.org/1999/xlink",h.XML="http://www.w3.org/XML/1998/namespace",h.XMLNS="http://www.w3.org/2000/xmlns/"})(ft||(ft={}));var Fn;(function(h){h.TYPE="type",h.ACTION="action",h.ENCODING="encoding",h.PROMPT="prompt",h.NAME="name",h.COLOR="color",h.FACE="face",h.SIZE="size"})(Fn||(Fn={}));var Mt;(function(h){h.NO_QUIRKS="no-quirks",h.QUIRKS="quirks",h.LIMITED_QUIRKS="limited-quirks"})(Mt||(Mt={}));var qe;(function(h){h.A="a",h.ADDRESS="address",h.ANNOTATION_XML="annotation-xml",h.APPLET="applet",h.AREA="area",h.ARTICLE="article",h.ASIDE="aside",h.B="b",h.BASE="base",h.BASEFONT="basefont",h.BGSOUND="bgsound",h.BIG="big",h.BLOCKQUOTE="blockquote",h.BODY="body",h.BR="br",h.BUTTON="button",h.CAPTION="caption",h.CENTER="center",h.CODE="code",h.COL="col",h.COLGROUP="colgroup",h.DD="dd",h.DESC="desc",h.DETAILS="details",h.DIALOG="dialog",h.DIR="dir",h.DIV="div",h.DL="dl",h.DT="dt",h.EM="em",h.EMBED="embed",h.FIELDSET="fieldset",h.FIGCAPTION="figcaption",h.FIGURE="figure",h.FONT="font",h.FOOTER="footer",h.FOREIGN_OBJECT="foreignObject",h.FORM="form",h.FRAME="frame",h.FRAMESET="frameset",h.H1="h1",h.H2="h2",h.H3="h3",h.H4="h4",h.H5="h5",h.H6="h6",h.HEAD="head",h.HEADER="header",h.HGROUP="hgroup",h.HR="hr",h.HTML="html",h.I="i",h.IMG="img",h.IMAGE="image",h.INPUT="input",h.IFRAME="iframe",h.KEYGEN="keygen",h.LABEL="label",h.LI="li",h.LINK="link",h.LISTING="listing",h.MAIN="main",h.MALIGNMARK="malignmark",h.MARQUEE="marquee",h.MATH="math",h.MENU="menu",h.META="meta",h.MGLYPH="mglyph",h.MI="mi",h.MO="mo",h.MN="mn",h.MS="ms",h.MTEXT="mtext",h.NAV="nav",h.NOBR="nobr",h.NOFRAMES="noframes",h.NOEMBED="noembed",h.NOSCRIPT="noscript",h.OBJECT="object",h.OL="ol",h.OPTGROUP="optgroup",h.OPTION="option",h.P="p",h.PARAM="param",h.PLAINTEXT="plaintext",h.PRE="pre",h.RB="rb",h.RP="rp",h.RT="rt",h.RTC="rtc",h.RUBY="ruby",h.S="s",h.SCRIPT="script",h.SEARCH="search",h.SECTION="section",h.SELECT="select",h.SOURCE="source",h.SMALL="small",h.SPAN="span",h.STRIKE="strike",h.STRONG="strong",h.STYLE="style",h.SUB="sub",h.SUMMARY="summary",h.SUP="sup",h.TABLE="table",h.TBODY="tbody",h.TEMPLATE="template",h.TEXTAREA="textarea",h.TFOOT="tfoot",h.TD="td",h.TH="th",h.THEAD="thead",h.TITLE="title",h.TR="tr",h.TRACK="track",h.TT="tt",h.U="u",h.UL="ul",h.SVG="svg",h.VAR="var",h.WBR="wbr",h.XMP="xmp"})(qe||(qe={}));var D;(function(h){h[h.UNKNOWN=0]="UNKNOWN",h[h.A=1]="A",h[h.ADDRESS=2]="ADDRESS",h[h.ANNOTATION_XML=3]="ANNOTATION_XML",h[h.APPLET=4]="APPLET",h[h.AREA=5]="AREA",h[h.ARTICLE=6]="ARTICLE",h[h.ASIDE=7]="ASIDE",h[h.B=8]="B",h[h.BASE=9]="BASE",h[h.BASEFONT=10]="BASEFONT",h[h.BGSOUND=11]="BGSOUND",h[h.BIG=12]="BIG",h[h.BLOCKQUOTE=13]="BLOCKQUOTE",h[h.BODY=14]="BODY",h[h.BR=15]="BR",h[h.BUTTON=16]="BUTTON",h[h.CAPTION=17]="CAPTION",h[h.CENTER=18]="CENTER",h[h.CODE=19]="CODE",h[h.COL=20]="COL",h[h.COLGROUP=21]="COLGROUP",h[h.DD=22]="DD",h[h.DESC=23]="DESC",h[h.DETAILS=24]="DETAILS",h[h.DIALOG=25]="DIALOG",h[h.DIR=26]="DIR",h[h.DIV=27]="DIV",h[h.DL=28]="DL",h[h.DT=29]="DT",h[h.EM=30]="EM",h[h.EMBED=31]="EMBED",h[h.FIELDSET=32]="FIELDSET",h[h.FIGCAPTION=33]="FIGCAPTION",h[h.FIGURE=34]="FIGURE",h[h.FONT=35]="FONT",h[h.FOOTER=36]="FOOTER",h[h.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",h[h.FORM=38]="FORM",h[h.FRAME=39]="FRAME",h[h.FRAMESET=40]="FRAMESET",h[h.H1=41]="H1",h[h.H2=42]="H2",h[h.H3=43]="H3",h[h.H4=44]="H4",h[h.H5=45]="H5",h[h.H6=46]="H6",h[h.HEAD=47]="HEAD",h[h.HEADER=48]="HEADER",h[h.HGROUP=49]="HGROUP",h[h.HR=50]="HR",h[h.HTML=51]="HTML",h[h.I=52]="I",h[h.IMG=53]="IMG",h[h.IMAGE=54]="IMAGE",h[h.INPUT=55]="INPUT",h[h.IFRAME=56]="IFRAME",h[h.KEYGEN=57]="KEYGEN",h[h.LABEL=58]="LABEL",h[h.LI=59]="LI",h[h.LINK=60]="LINK",h[h.LISTING=61]="LISTING",h[h.MAIN=62]="MAIN",h[h.MALIGNMARK=63]="MALIGNMARK",h[h.MARQUEE=64]="MARQUEE",h[h.MATH=65]="MATH",h[h.MENU=66]="MENU",h[h.META=67]="META",h[h.MGLYPH=68]="MGLYPH",h[h.MI=69]="MI",h[h.MO=70]="MO",h[h.MN=71]="MN",h[h.MS=72]="MS",h[h.MTEXT=73]="MTEXT",h[h.NAV=74]="NAV",h[h.NOBR=75]="NOBR",h[h.NOFRAMES=76]="NOFRAMES",h[h.NOEMBED=77]="NOEMBED",h[h.NOSCRIPT=78]="NOSCRIPT",h[h.OBJECT=79]="OBJECT",h[h.OL=80]="OL",h[h.OPTGROUP=81]="OPTGROUP",h[h.OPTION=82]="OPTION",h[h.P=83]="P",h[h.PARAM=84]="PARAM",h[h.PLAINTEXT=85]="PLAINTEXT",h[h.PRE=86]="PRE",h[h.RB=87]="RB",h[h.RP=88]="RP",h[h.RT=89]="RT",h[h.RTC=90]="RTC",h[h.RUBY=91]="RUBY",h[h.S=92]="S",h[h.SCRIPT=93]="SCRIPT",h[h.SEARCH=94]="SEARCH",h[h.SECTION=95]="SECTION",h[h.SELECT=96]="SELECT",h[h.SOURCE=97]="SOURCE",h[h.SMALL=98]="SMALL",h[h.SPAN=99]="SPAN",h[h.STRIKE=100]="STRIKE",h[h.STRONG=101]="STRONG",h[h.STYLE=102]="STYLE",h[h.SUB=103]="SUB",h[h.SUMMARY=104]="SUMMARY",h[h.SUP=105]="SUP",h[h.TABLE=106]="TABLE",h[h.TBODY=107]="TBODY",h[h.TEMPLATE=108]="TEMPLATE",h[h.TEXTAREA=109]="TEXTAREA",h[h.TFOOT=110]="TFOOT",h[h.TD=111]="TD",h[h.TH=112]="TH",h[h.THEAD=113]="THEAD",h[h.TITLE=114]="TITLE",h[h.TR=115]="TR",h[h.TRACK=116]="TRACK",h[h.TT=117]="TT",h[h.U=118]="U",h[h.UL=119]="UL",h[h.SVG=120]="SVG",h[h.VAR=121]="VAR",h[h.WBR=122]="WBR",h[h.XMP=123]="XMP"})(D||(D={}));const Gt=new Map([[qe.A,D.A],[qe.ADDRESS,D.ADDRESS],[qe.ANNOTATION_XML,D.ANNOTATION_XML],[qe.APPLET,D.APPLET],[qe.AREA,D.AREA],[qe.ARTICLE,D.ARTICLE],[qe.ASIDE,D.ASIDE],[qe.B,D.B],[qe.BASE,D.BASE],[qe.BASEFONT,D.BASEFONT],[qe.BGSOUND,D.BGSOUND],[qe.BIG,D.BIG],[qe.BLOCKQUOTE,D.BLOCKQUOTE],[qe.BODY,D.BODY],[qe.BR,D.BR],[qe.BUTTON,D.BUTTON],[qe.CAPTION,D.CAPTION],[qe.CENTER,D.CENTER],[qe.CODE,D.CODE],[qe.COL,D.COL],[qe.COLGROUP,D.COLGROUP],[qe.DD,D.DD],[qe.DESC,D.DESC],[qe.DETAILS,D.DETAILS],[qe.DIALOG,D.DIALOG],[qe.DIR,D.DIR],[qe.DIV,D.DIV],[qe.DL,D.DL],[qe.DT,D.DT],[qe.EM,D.EM],[qe.EMBED,D.EMBED],[qe.FIELDSET,D.FIELDSET],[qe.FIGCAPTION,D.FIGCAPTION],[qe.FIGURE,D.FIGURE],[qe.FONT,D.FONT],[qe.FOOTER,D.FOOTER],[qe.FOREIGN_OBJECT,D.FOREIGN_OBJECT],[qe.FORM,D.FORM],[qe.FRAME,D.FRAME],[qe.FRAMESET,D.FRAMESET],[qe.H1,D.H1],[qe.H2,D.H2],[qe.H3,D.H3],[qe.H4,D.H4],[qe.H5,D.H5],[qe.H6,D.H6],[qe.HEAD,D.HEAD],[qe.HEADER,D.HEADER],[qe.HGROUP,D.HGROUP],[qe.HR,D.HR],[qe.HTML,D.HTML],[qe.I,D.I],[qe.IMG,D.IMG],[qe.IMAGE,D.IMAGE],[qe.INPUT,D.INPUT],[qe.IFRAME,D.IFRAME],[qe.KEYGEN,D.KEYGEN],[qe.LABEL,D.LABEL],[qe.LI,D.LI],[qe.LINK,D.LINK],[qe.LISTING,D.LISTING],[qe.MAIN,D.MAIN],[qe.MALIGNMARK,D.MALIGNMARK],[qe.MARQUEE,D.MARQUEE],[qe.MATH,D.MATH],[qe.MENU,D.MENU],[qe.META,D.META],[qe.MGLYPH,D.MGLYPH],[qe.MI,D.MI],[qe.MO,D.MO],[qe.MN,D.MN],[qe.MS,D.MS],[qe.MTEXT,D.MTEXT],[qe.NAV,D.NAV],[qe.NOBR,D.NOBR],[qe.NOFRAMES,D.NOFRAMES],[qe.NOEMBED,D.NOEMBED],[qe.NOSCRIPT,D.NOSCRIPT],[qe.OBJECT,D.OBJECT],[qe.OL,D.OL],[qe.OPTGROUP,D.OPTGROUP],[qe.OPTION,D.OPTION],[qe.P,D.P],[qe.PARAM,D.PARAM],[qe.PLAINTEXT,D.PLAINTEXT],[qe.PRE,D.PRE],[qe.RB,D.RB],[qe.RP,D.RP],[qe.RT,D.RT],[qe.RTC,D.RTC],[qe.RUBY,D.RUBY],[qe.S,D.S],[qe.SCRIPT,D.SCRIPT],[qe.SEARCH,D.SEARCH],[qe.SECTION,D.SECTION],[qe.SELECT,D.SELECT],[qe.SOURCE,D.SOURCE],[qe.SMALL,D.SMALL],[qe.SPAN,D.SPAN],[qe.STRIKE,D.STRIKE],[qe.STRONG,D.STRONG],[qe.STYLE,D.STYLE],[qe.SUB,D.SUB],[qe.SUMMARY,D.SUMMARY],[qe.SUP,D.SUP],[qe.TABLE,D.TABLE],[qe.TBODY,D.TBODY],[qe.TEMPLATE,D.TEMPLATE],[qe.TEXTAREA,D.TEXTAREA],[qe.TFOOT,D.TFOOT],[qe.TD,D.TD],[qe.TH,D.TH],[qe.THEAD,D.THEAD],[qe.TITLE,D.TITLE],[qe.TR,D.TR],[qe.TRACK,D.TRACK],[qe.TT,D.TT],[qe.U,D.U],[qe.UL,D.UL],[qe.SVG,D.SVG],[qe.VAR,D.VAR],[qe.WBR,D.WBR],[qe.XMP,D.XMP]]);function dn(h){var g;return(g=Gt.get(h))!==null&&g!==void 0?g:D.UNKNOWN}const xt=D,En={[ft.HTML]:new Set([xt.ADDRESS,xt.APPLET,xt.AREA,xt.ARTICLE,xt.ASIDE,xt.BASE,xt.BASEFONT,xt.BGSOUND,xt.BLOCKQUOTE,xt.BODY,xt.BR,xt.BUTTON,xt.CAPTION,xt.CENTER,xt.COL,xt.COLGROUP,xt.DD,xt.DETAILS,xt.DIR,xt.DIV,xt.DL,xt.DT,xt.EMBED,xt.FIELDSET,xt.FIGCAPTION,xt.FIGURE,xt.FOOTER,xt.FORM,xt.FRAME,xt.FRAMESET,xt.H1,xt.H2,xt.H3,xt.H4,xt.H5,xt.H6,xt.HEAD,xt.HEADER,xt.HGROUP,xt.HR,xt.HTML,xt.IFRAME,xt.IMG,xt.INPUT,xt.LI,xt.LINK,xt.LISTING,xt.MAIN,xt.MARQUEE,xt.MENU,xt.META,xt.NAV,xt.NOEMBED,xt.NOFRAMES,xt.NOSCRIPT,xt.OBJECT,xt.OL,xt.P,xt.PARAM,xt.PLAINTEXT,xt.PRE,xt.SCRIPT,xt.SECTION,xt.SELECT,xt.SOURCE,xt.STYLE,xt.SUMMARY,xt.TABLE,xt.TBODY,xt.TD,xt.TEMPLATE,xt.TEXTAREA,xt.TFOOT,xt.TH,xt.THEAD,xt.TITLE,xt.TR,xt.TRACK,xt.UL,xt.WBR,xt.XMP]),[ft.MATHML]:new Set([xt.MI,xt.MO,xt.MN,xt.MS,xt.MTEXT,xt.ANNOTATION_XML]),[ft.SVG]:new Set([xt.TITLE,xt.FOREIGN_OBJECT,xt.DESC]),[ft.XLINK]:new Set,[ft.XML]:new Set,[ft.XMLNS]:new Set},Mn=new Set([xt.H1,xt.H2,xt.H3,xt.H4,xt.H5,xt.H6]),ki=new Set([qe.STYLE,qe.SCRIPT,qe.XMP,qe.IFRAME,qe.NOEMBED,qe.NOFRAMES,qe.PLAINTEXT]);function Un(h,g){return ki.has(h)||g&&h===qe.NOSCRIPT}var ot;(function(h){h[h.DATA=0]="DATA",h[h.RCDATA=1]="RCDATA",h[h.RAWTEXT=2]="RAWTEXT",h[h.SCRIPT_DATA=3]="SCRIPT_DATA",h[h.PLAINTEXT=4]="PLAINTEXT",h[h.TAG_OPEN=5]="TAG_OPEN",h[h.END_TAG_OPEN=6]="END_TAG_OPEN",h[h.TAG_NAME=7]="TAG_NAME",h[h.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",h[h.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",h[h.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",h[h.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",h[h.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",h[h.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",h[h.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",h[h.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",h[h.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",h[h.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",h[h.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",h[h.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",h[h.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",h[h.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",h[h.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",h[h.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",h[h.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",h[h.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",h[h.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",h[h.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",h[h.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",h[h.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",h[h.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",h[h.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",h[h.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",h[h.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",h[h.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",h[h.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",h[h.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",h[h.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",h[h.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",h[h.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",h[h.BOGUS_COMMENT=40]="BOGUS_COMMENT",h[h.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",h[h.COMMENT_START=42]="COMMENT_START",h[h.COMMENT_START_DASH=43]="COMMENT_START_DASH",h[h.COMMENT=44]="COMMENT",h[h.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",h[h.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",h[h.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",h[h.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",h[h.COMMENT_END_DASH=49]="COMMENT_END_DASH",h[h.COMMENT_END=50]="COMMENT_END",h[h.COMMENT_END_BANG=51]="COMMENT_END_BANG",h[h.DOCTYPE=52]="DOCTYPE",h[h.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",h[h.DOCTYPE_NAME=54]="DOCTYPE_NAME",h[h.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",h[h.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",h[h.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",h[h.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",h[h.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",h[h.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",h[h.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",h[h.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",h[h.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",h[h.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",h[h.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",h[h.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",h[h.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",h[h.CDATA_SECTION=68]="CDATA_SECTION",h[h.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",h[h.CDATA_SECTION_END=70]="CDATA_SECTION_END",h[h.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",h[h.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(ot||(ot={}));const Bi={DATA:ot.DATA,RCDATA:ot.RCDATA,RAWTEXT:ot.RAWTEXT,SCRIPT_DATA:ot.SCRIPT_DATA,PLAINTEXT:ot.PLAINTEXT,CDATA_SECTION:ot.CDATA_SECTION};function hr(h){return h>=He.DIGIT_0&&h<=He.DIGIT_9}function Kt(h){return h>=He.LATIN_CAPITAL_A&&h<=He.LATIN_CAPITAL_Z}function Qi(h){return h>=He.LATIN_SMALL_A&&h<=He.LATIN_SMALL_Z}function J(h){return Qi(h)||Kt(h)}function ae(h){return J(h)||hr(h)}function Yn(h){return h+32}function _e(h){return h===He.SPACE||h===He.LINE_FEED||h===He.TABULATION||h===He.FORM_FEED}function Et(h){return _e(h)||h===He.SOLIDUS||h===He.GREATER_THAN_SIGN}function Ni(h){return h===He.NULL?rn.nullCharacterReference:h>1114111?rn.characterReferenceOutsideUnicodeRange:Cn(h)?rn.surrogateCharacterReference:sn(h)?rn.noncharacterCharacterReference:ci(h)||h===He.CARRIAGE_RETURN?rn.controlCharacterReference:null}class Pn{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=ot.DATA,this.returnState=ot.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new yr(K),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Ge(rr,(Je,un)=>{this.preprocessor.pos=this.entityStartPos+un-1,this._flushCodePointConsumedAsCharacterReference(Je)},K.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(rn.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:Je=>{this._err(rn.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+Je)},validateNumericCharacterReference:Je=>{const un=Ni(Je);un&&this._err(un,1)}}:void 0)}_err(g,K=0){var Je,un;(un=(Je=this.handler).onParseError)===null||un===void 0||un.call(Je,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,Je){this.active=!0,this.preprocessor.write(g,K),this._runParsingLoop(),this.paused||Je==null||Je()}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:Zn.START_TAG,tagName:"",tagID:D.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Zn.END_TAG,tagName:"",tagID:D.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(g){this.currentToken={type:Zn.COMMENT,data:"",location:this.getCurrentLocation(g)}}_createDoctypeToken(g){this.currentToken={type:Zn.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 Je=this.currentToken;if(Mr(Je,this.currentAttr.name)===null){if(Je.attrs.push(this.currentAttr),Je.location&&this.currentLocation){const un=(g=(K=Je.location).attrs)!==null&&g!==void 0?g:K.attrs=Object.create(null);un[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(rn.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=dn(g.tagName),g.type===Zn.START_TAG?(this.lastStartTagName=g.tagName,this.handler.onStartTag(g)):(g.attrs.length>0&&this._err(rn.endTagWithAttributes),g.selfClosing&&this._err(rn.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 Zn.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Zn.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Zn.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:Zn.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=_e(g)?Zn.WHITESPACE_CHARACTER:g===He.NULL?Zn.NULL_CHARACTER:Zn.CHARACTER;this._appendCharToCurrentCharacterToken(K,String.fromCodePoint(g))}_emitChars(g){this._appendCharToCurrentCharacterToken(Zn.CHARACTER,g)}_startCharacterReference(){this.returnState=this.state,this.state=ot.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?gt.Attribute:gt.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===ot.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===ot.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===ot.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(g){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(g):this._emitCodePoint(g)}_callState(g){switch(this.state){case ot.DATA:{this._stateData(g);break}case ot.RCDATA:{this._stateRcdata(g);break}case ot.RAWTEXT:{this._stateRawtext(g);break}case ot.SCRIPT_DATA:{this._stateScriptData(g);break}case ot.PLAINTEXT:{this._statePlaintext(g);break}case ot.TAG_OPEN:{this._stateTagOpen(g);break}case ot.END_TAG_OPEN:{this._stateEndTagOpen(g);break}case ot.TAG_NAME:{this._stateTagName(g);break}case ot.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(g);break}case ot.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(g);break}case ot.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(g);break}case ot.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(g);break}case ot.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(g);break}case ot.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(g);break}case ot.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(g);break}case ot.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(g);break}case ot.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(g);break}case ot.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(g);break}case ot.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(g);break}case ot.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(g);break}case ot.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(g);break}case ot.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(g);break}case ot.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(g);break}case ot.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(g);break}case ot.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(g);break}case ot.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(g);break}case ot.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(g);break}case ot.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(g);break}case ot.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(g);break}case ot.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(g);break}case ot.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(g);break}case ot.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(g);break}case ot.ATTRIBUTE_NAME:{this._stateAttributeName(g);break}case ot.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(g);break}case ot.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(g);break}case ot.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(g);break}case ot.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(g);break}case ot.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(g);break}case ot.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(g);break}case ot.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(g);break}case ot.BOGUS_COMMENT:{this._stateBogusComment(g);break}case ot.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(g);break}case ot.COMMENT_START:{this._stateCommentStart(g);break}case ot.COMMENT_START_DASH:{this._stateCommentStartDash(g);break}case ot.COMMENT:{this._stateComment(g);break}case ot.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(g);break}case ot.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(g);break}case ot.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(g);break}case ot.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(g);break}case ot.COMMENT_END_DASH:{this._stateCommentEndDash(g);break}case ot.COMMENT_END:{this._stateCommentEnd(g);break}case ot.COMMENT_END_BANG:{this._stateCommentEndBang(g);break}case ot.DOCTYPE:{this._stateDoctype(g);break}case ot.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(g);break}case ot.DOCTYPE_NAME:{this._stateDoctypeName(g);break}case ot.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(g);break}case ot.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(g);break}case ot.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(g);break}case ot.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(g);break}case ot.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(g);break}case ot.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(g);break}case ot.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(g);break}case ot.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(g);break}case ot.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(g);break}case ot.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(g);break}case ot.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(g);break}case ot.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(g);break}case ot.BOGUS_DOCTYPE:{this._stateBogusDoctype(g);break}case ot.CDATA_SECTION:{this._stateCdataSection(g);break}case ot.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(g);break}case ot.CDATA_SECTION_END:{this._stateCdataSectionEnd(g);break}case ot.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case ot.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(g);break}default:throw new Error("Unknown state")}}_stateData(g){switch(g){case He.LESS_THAN_SIGN:{this.state=ot.TAG_OPEN;break}case He.AMPERSAND:{this._startCharacterReference();break}case He.NULL:{this._err(rn.unexpectedNullCharacter),this._emitCodePoint(g);break}case He.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(g)}}_stateRcdata(g){switch(g){case He.AMPERSAND:{this._startCharacterReference();break}case He.LESS_THAN_SIGN:{this.state=ot.RCDATA_LESS_THAN_SIGN;break}case He.NULL:{this._err(rn.unexpectedNullCharacter),this._emitChars(qt);break}case He.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(g)}}_stateRawtext(g){switch(g){case He.LESS_THAN_SIGN:{this.state=ot.RAWTEXT_LESS_THAN_SIGN;break}case He.NULL:{this._err(rn.unexpectedNullCharacter),this._emitChars(qt);break}case He.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(g)}}_stateScriptData(g){switch(g){case He.LESS_THAN_SIGN:{this.state=ot.SCRIPT_DATA_LESS_THAN_SIGN;break}case He.NULL:{this._err(rn.unexpectedNullCharacter),this._emitChars(qt);break}case He.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(g)}}_statePlaintext(g){switch(g){case He.NULL:{this._err(rn.unexpectedNullCharacter),this._emitChars(qt);break}case He.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(g)}}_stateTagOpen(g){if(J(g))this._createStartTagToken(),this.state=ot.TAG_NAME,this._stateTagName(g);else switch(g){case He.EXCLAMATION_MARK:{this.state=ot.MARKUP_DECLARATION_OPEN;break}case He.SOLIDUS:{this.state=ot.END_TAG_OPEN;break}case He.QUESTION_MARK:{this._err(rn.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=ot.BOGUS_COMMENT,this._stateBogusComment(g);break}case He.EOF:{this._err(rn.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(rn.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=ot.DATA,this._stateData(g)}}_stateEndTagOpen(g){if(J(g))this._createEndTagToken(),this.state=ot.TAG_NAME,this._stateTagName(g);else switch(g){case He.GREATER_THAN_SIGN:{this._err(rn.missingEndTagName),this.state=ot.DATA;break}case He.EOF:{this._err(rn.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(rn.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=ot.BOGUS_COMMENT,this._stateBogusComment(g)}}_stateTagName(g){const K=this.currentToken;switch(g){case He.SPACE:case He.LINE_FEED:case He.TABULATION:case He.FORM_FEED:{this.state=ot.BEFORE_ATTRIBUTE_NAME;break}case He.SOLIDUS:{this.state=ot.SELF_CLOSING_START_TAG;break}case He.GREATER_THAN_SIGN:{this.state=ot.DATA,this.emitCurrentTagToken();break}case He.NULL:{this._err(rn.unexpectedNullCharacter),K.tagName+=qt;break}case He.EOF:{this._err(rn.eofInTag),this._emitEOFToken();break}default:K.tagName+=String.fromCodePoint(Kt(g)?Yn(g):g)}}_stateRcdataLessThanSign(g){g===He.SOLIDUS?this.state=ot.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=ot.RCDATA,this._stateRcdata(g))}_stateRcdataEndTagOpen(g){J(g)?(this.state=ot.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(g)):(this._emitChars("</"),this.state=ot.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 He.SPACE:case He.LINE_FEED:case He.TABULATION:case He.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=ot.BEFORE_ATTRIBUTE_NAME,!1;case He.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=ot.SELF_CLOSING_START_TAG,!1;case He.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=ot.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(g){this.handleSpecialEndTag(g)&&(this._emitChars("</"),this.state=ot.RCDATA,this._stateRcdata(g))}_stateRawtextLessThanSign(g){g===He.SOLIDUS?this.state=ot.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=ot.RAWTEXT,this._stateRawtext(g))}_stateRawtextEndTagOpen(g){J(g)?(this.state=ot.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(g)):(this._emitChars("</"),this.state=ot.RAWTEXT,this._stateRawtext(g))}_stateRawtextEndTagName(g){this.handleSpecialEndTag(g)&&(this._emitChars("</"),this.state=ot.RAWTEXT,this._stateRawtext(g))}_stateScriptDataLessThanSign(g){switch(g){case He.SOLIDUS:{this.state=ot.SCRIPT_DATA_END_TAG_OPEN;break}case He.EXCLAMATION_MARK:{this.state=ot.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=ot.SCRIPT_DATA,this._stateScriptData(g)}}_stateScriptDataEndTagOpen(g){J(g)?(this.state=ot.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(g)):(this._emitChars("</"),this.state=ot.SCRIPT_DATA,this._stateScriptData(g))}_stateScriptDataEndTagName(g){this.handleSpecialEndTag(g)&&(this._emitChars("</"),this.state=ot.SCRIPT_DATA,this._stateScriptData(g))}_stateScriptDataEscapeStart(g){g===He.HYPHEN_MINUS?(this.state=ot.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=ot.SCRIPT_DATA,this._stateScriptData(g))}_stateScriptDataEscapeStartDash(g){g===He.HYPHEN_MINUS?(this.state=ot.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=ot.SCRIPT_DATA,this._stateScriptData(g))}_stateScriptDataEscaped(g){switch(g){case He.HYPHEN_MINUS:{this.state=ot.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case He.LESS_THAN_SIGN:{this.state=ot.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case He.NULL:{this._err(rn.unexpectedNullCharacter),this._emitChars(qt);break}case He.EOF:{this._err(rn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(g)}}_stateScriptDataEscapedDash(g){switch(g){case He.HYPHEN_MINUS:{this.state=ot.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case He.LESS_THAN_SIGN:{this.state=ot.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case He.NULL:{this._err(rn.unexpectedNullCharacter),this.state=ot.SCRIPT_DATA_ESCAPED,this._emitChars(qt);break}case He.EOF:{this._err(rn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ot.SCRIPT_DATA_ESCAPED,this._emitCodePoint(g)}}_stateScriptDataEscapedDashDash(g){switch(g){case He.HYPHEN_MINUS:{this._emitChars("-");break}case He.LESS_THAN_SIGN:{this.state=ot.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case He.GREATER_THAN_SIGN:{this.state=ot.SCRIPT_DATA,this._emitChars(">");break}case He.NULL:{this._err(rn.unexpectedNullCharacter),this.state=ot.SCRIPT_DATA_ESCAPED,this._emitChars(qt);break}case He.EOF:{this._err(rn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ot.SCRIPT_DATA_ESCAPED,this._emitCodePoint(g)}}_stateScriptDataEscapedLessThanSign(g){g===He.SOLIDUS?this.state=ot.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:J(g)?(this._emitChars("<"),this.state=ot.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(g)):(this._emitChars("<"),this.state=ot.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(g))}_stateScriptDataEscapedEndTagOpen(g){J(g)?(this.state=ot.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(g)):(this._emitChars("</"),this.state=ot.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(g))}_stateScriptDataEscapedEndTagName(g){this.handleSpecialEndTag(g)&&(this._emitChars("</"),this.state=ot.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(g))}_stateScriptDataDoubleEscapeStart(g){if(this.preprocessor.startsWith(Rn.SCRIPT,!1)&&Et(this.preprocessor.peek(Rn.SCRIPT.length))){this._emitCodePoint(g);for(let K=0;K<Rn.SCRIPT.length;K++)this._emitCodePoint(this._consume());this.state=ot.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=ot.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(g))}_stateScriptDataDoubleEscaped(g){switch(g){case He.HYPHEN_MINUS:{this.state=ot.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case He.LESS_THAN_SIGN:{this.state=ot.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case He.NULL:{this._err(rn.unexpectedNullCharacter),this._emitChars(qt);break}case He.EOF:{this._err(rn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(g)}}_stateScriptDataDoubleEscapedDash(g){switch(g){case He.HYPHEN_MINUS:{this.state=ot.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case He.LESS_THAN_SIGN:{this.state=ot.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case He.NULL:{this._err(rn.unexpectedNullCharacter),this.state=ot.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(qt);break}case He.EOF:{this._err(rn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ot.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(g)}}_stateScriptDataDoubleEscapedDashDash(g){switch(g){case He.HYPHEN_MINUS:{this._emitChars("-");break}case He.LESS_THAN_SIGN:{this.state=ot.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case He.GREATER_THAN_SIGN:{this.state=ot.SCRIPT_DATA,this._emitChars(">");break}case He.NULL:{this._err(rn.unexpectedNullCharacter),this.state=ot.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(qt);break}case He.EOF:{this._err(rn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ot.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(g)}}_stateScriptDataDoubleEscapedLessThanSign(g){g===He.SOLIDUS?(this.state=ot.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=ot.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(g))}_stateScriptDataDoubleEscapeEnd(g){if(this.preprocessor.startsWith(Rn.SCRIPT,!1)&&Et(this.preprocessor.peek(Rn.SCRIPT.length))){this._emitCodePoint(g);for(let K=0;K<Rn.SCRIPT.length;K++)this._emitCodePoint(this._consume());this.state=ot.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=ot.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(g))}_stateBeforeAttributeName(g){switch(g){case He.SPACE:case He.LINE_FEED:case He.TABULATION:case He.FORM_FEED:break;case He.SOLIDUS:case He.GREATER_THAN_SIGN:case He.EOF:{this.state=ot.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(g);break}case He.EQUALS_SIGN:{this._err(rn.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=ot.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=ot.ATTRIBUTE_NAME,this._stateAttributeName(g)}}_stateAttributeName(g){switch(g){case He.SPACE:case He.LINE_FEED:case He.TABULATION:case He.FORM_FEED:case He.SOLIDUS:case He.GREATER_THAN_SIGN:case He.EOF:{this._leaveAttrName(),this.state=ot.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(g);break}case He.EQUALS_SIGN:{this._leaveAttrName(),this.state=ot.BEFORE_ATTRIBUTE_VALUE;break}case He.QUOTATION_MARK:case He.APOSTROPHE:case He.LESS_THAN_SIGN:{this._err(rn.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(g);break}case He.NULL:{this._err(rn.unexpectedNullCharacter),this.currentAttr.name+=qt;break}default:this.currentAttr.name+=String.fromCodePoint(Kt(g)?Yn(g):g)}}_stateAfterAttributeName(g){switch(g){case He.SPACE:case He.LINE_FEED:case He.TABULATION:case He.FORM_FEED:break;case He.SOLIDUS:{this.state=ot.SELF_CLOSING_START_TAG;break}case He.EQUALS_SIGN:{this.state=ot.BEFORE_ATTRIBUTE_VALUE;break}case He.GREATER_THAN_SIGN:{this.state=ot.DATA,this.emitCurrentTagToken();break}case He.EOF:{this._err(rn.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=ot.ATTRIBUTE_NAME,this._stateAttributeName(g)}}_stateBeforeAttributeValue(g){switch(g){case He.SPACE:case He.LINE_FEED:case He.TABULATION:case He.FORM_FEED:break;case He.QUOTATION_MARK:{this.state=ot.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case He.APOSTROPHE:{this.state=ot.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case He.GREATER_THAN_SIGN:{this._err(rn.missingAttributeValue),this.state=ot.DATA,this.emitCurrentTagToken();break}default:this.state=ot.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(g)}}_stateAttributeValueDoubleQuoted(g){switch(g){case He.QUOTATION_MARK:{this.state=ot.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case He.AMPERSAND:{this._startCharacterReference();break}case He.NULL:{this._err(rn.unexpectedNullCharacter),this.currentAttr.value+=qt;break}case He.EOF:{this._err(rn.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(g)}}_stateAttributeValueSingleQuoted(g){switch(g){case He.APOSTROPHE:{this.state=ot.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case He.AMPERSAND:{this._startCharacterReference();break}case He.NULL:{this._err(rn.unexpectedNullCharacter),this.currentAttr.value+=qt;break}case He.EOF:{this._err(rn.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(g)}}_stateAttributeValueUnquoted(g){switch(g){case He.SPACE:case He.LINE_FEED:case He.TABULATION:case He.FORM_FEED:{this._leaveAttrValue(),this.state=ot.BEFORE_ATTRIBUTE_NAME;break}case He.AMPERSAND:{this._startCharacterReference();break}case He.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=ot.DATA,this.emitCurrentTagToken();break}case He.NULL:{this._err(rn.unexpectedNullCharacter),this.currentAttr.value+=qt;break}case He.QUOTATION_MARK:case He.APOSTROPHE:case He.LESS_THAN_SIGN:case He.EQUALS_SIGN:case He.GRAVE_ACCENT:{this._err(rn.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(g);break}case He.EOF:{this._err(rn.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(g)}}_stateAfterAttributeValueQuoted(g){switch(g){case He.SPACE:case He.LINE_FEED:case He.TABULATION:case He.FORM_FEED:{this._leaveAttrValue(),this.state=ot.BEFORE_ATTRIBUTE_NAME;break}case He.SOLIDUS:{this._leaveAttrValue(),this.state=ot.SELF_CLOSING_START_TAG;break}case He.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=ot.DATA,this.emitCurrentTagToken();break}case He.EOF:{this._err(rn.eofInTag),this._emitEOFToken();break}default:this._err(rn.missingWhitespaceBetweenAttributes),this.state=ot.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(g)}}_stateSelfClosingStartTag(g){switch(g){case He.GREATER_THAN_SIGN:{const K=this.currentToken;K.selfClosing=!0,this.state=ot.DATA,this.emitCurrentTagToken();break}case He.EOF:{this._err(rn.eofInTag),this._emitEOFToken();break}default:this._err(rn.unexpectedSolidusInTag),this.state=ot.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(g)}}_stateBogusComment(g){const K=this.currentToken;switch(g){case He.GREATER_THAN_SIGN:{this.state=ot.DATA,this.emitCurrentComment(K);break}case He.EOF:{this.emitCurrentComment(K),this._emitEOFToken();break}case He.NULL:{this._err(rn.unexpectedNullCharacter),K.data+=qt;break}default:K.data+=String.fromCodePoint(g)}}_stateMarkupDeclarationOpen(g){this._consumeSequenceIfMatch(Rn.DASH_DASH,!0)?(this._createCommentToken(Rn.DASH_DASH.length+1),this.state=ot.COMMENT_START):this._consumeSequenceIfMatch(Rn.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Rn.DOCTYPE.length+1),this.state=ot.DOCTYPE):this._consumeSequenceIfMatch(Rn.CDATA_START,!0)?this.inForeignNode?this.state=ot.CDATA_SECTION:(this._err(rn.cdataInHtmlContent),this._createCommentToken(Rn.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=ot.BOGUS_COMMENT):this._ensureHibernation()||(this._err(rn.incorrectlyOpenedComment),this._createCommentToken(2),this.state=ot.BOGUS_COMMENT,this._stateBogusComment(g))}_stateCommentStart(g){switch(g){case He.HYPHEN_MINUS:{this.state=ot.COMMENT_START_DASH;break}case He.GREATER_THAN_SIGN:{this._err(rn.abruptClosingOfEmptyComment),this.state=ot.DATA;const K=this.currentToken;this.emitCurrentComment(K);break}default:this.state=ot.COMMENT,this._stateComment(g)}}_stateCommentStartDash(g){const K=this.currentToken;switch(g){case He.HYPHEN_MINUS:{this.state=ot.COMMENT_END;break}case He.GREATER_THAN_SIGN:{this._err(rn.abruptClosingOfEmptyComment),this.state=ot.DATA,this.emitCurrentComment(K);break}case He.EOF:{this._err(rn.eofInComment),this.emitCurrentComment(K),this._emitEOFToken();break}default:K.data+="-",this.state=ot.COMMENT,this._stateComment(g)}}_stateComment(g){const K=this.currentToken;switch(g){case He.HYPHEN_MINUS:{this.state=ot.COMMENT_END_DASH;break}case He.LESS_THAN_SIGN:{K.data+="<",this.state=ot.COMMENT_LESS_THAN_SIGN;break}case He.NULL:{this._err(rn.unexpectedNullCharacter),K.data+=qt;break}case He.EOF:{this._err(rn.eofInComment),this.emitCurrentComment(K),this._emitEOFToken();break}default:K.data+=String.fromCodePoint(g)}}_stateCommentLessThanSign(g){const K=this.currentToken;switch(g){case He.EXCLAMATION_MARK:{K.data+="!",this.state=ot.COMMENT_LESS_THAN_SIGN_BANG;break}case He.LESS_THAN_SIGN:{K.data+="<";break}default:this.state=ot.COMMENT,this._stateComment(g)}}_stateCommentLessThanSignBang(g){g===He.HYPHEN_MINUS?this.state=ot.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=ot.COMMENT,this._stateComment(g))}_stateCommentLessThanSignBangDash(g){g===He.HYPHEN_MINUS?this.state=ot.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=ot.COMMENT_END_DASH,this._stateCommentEndDash(g))}_stateCommentLessThanSignBangDashDash(g){g!==He.GREATER_THAN_SIGN&&g!==He.EOF&&this._err(rn.nestedComment),this.state=ot.COMMENT_END,this._stateCommentEnd(g)}_stateCommentEndDash(g){const K=this.currentToken;switch(g){case He.HYPHEN_MINUS:{this.state=ot.COMMENT_END;break}case He.EOF:{this._err(rn.eofInComment),this.emitCurrentComment(K),this._emitEOFToken();break}default:K.data+="-",this.state=ot.COMMENT,this._stateComment(g)}}_stateCommentEnd(g){const K=this.currentToken;switch(g){case He.GREATER_THAN_SIGN:{this.state=ot.DATA,this.emitCurrentComment(K);break}case He.EXCLAMATION_MARK:{this.state=ot.COMMENT_END_BANG;break}case He.HYPHEN_MINUS:{K.data+="-";break}case He.EOF:{this._err(rn.eofInComment),this.emitCurrentComment(K),this._emitEOFToken();break}default:K.data+="--",this.state=ot.COMMENT,this._stateComment(g)}}_stateCommentEndBang(g){const K=this.currentToken;switch(g){case He.HYPHEN_MINUS:{K.data+="--!",this.state=ot.COMMENT_END_DASH;break}case He.GREATER_THAN_SIGN:{this._err(rn.incorrectlyClosedComment),this.state=ot.DATA,this.emitCurrentComment(K);break}case He.EOF:{this._err(rn.eofInComment),this.emitCurrentComment(K),this._emitEOFToken();break}default:K.data+="--!",this.state=ot.COMMENT,this._stateComment(g)}}_stateDoctype(g){switch(g){case He.SPACE:case He.LINE_FEED:case He.TABULATION:case He.FORM_FEED:{this.state=ot.BEFORE_DOCTYPE_NAME;break}case He.GREATER_THAN_SIGN:{this.state=ot.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(g);break}case He.EOF:{this._err(rn.eofInDoctype),this._createDoctypeToken(null);const K=this.currentToken;K.forceQuirks=!0,this.emitCurrentDoctype(K),this._emitEOFToken();break}default:this._err(rn.missingWhitespaceBeforeDoctypeName),this.state=ot.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(g)}}_stateBeforeDoctypeName(g){if(Kt(g))this._createDoctypeToken(String.fromCharCode(Yn(g))),this.state=ot.DOCTYPE_NAME;else switch(g){case He.SPACE:case He.LINE_FEED:case He.TABULATION:case He.FORM_FEED:break;case He.NULL:{this._err(rn.unexpectedNullCharacter),this._createDoctypeToken(qt),this.state=ot.DOCTYPE_NAME;break}case He.GREATER_THAN_SIGN:{this._err(rn.missingDoctypeName),this._createDoctypeToken(null);const K=this.currentToken;K.forceQuirks=!0,this.emitCurrentDoctype(K),this.state=ot.DATA;break}case He.EOF:{this._err(rn.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=ot.DOCTYPE_NAME}}_stateDoctypeName(g){const K=this.currentToken;switch(g){case He.SPACE:case He.LINE_FEED:case He.TABULATION:case He.FORM_FEED:{this.state=ot.AFTER_DOCTYPE_NAME;break}case He.GREATER_THAN_SIGN:{this.state=ot.DATA,this.emitCurrentDoctype(K);break}case He.NULL:{this._err(rn.unexpectedNullCharacter),K.name+=qt;break}case He.EOF:{this._err(rn.eofInDoctype),K.forceQuirks=!0,this.emitCurrentDoctype(K),this._emitEOFToken();break}default:K.name+=String.fromCodePoint(Kt(g)?Yn(g):g)}}_stateAfterDoctypeName(g){const K=this.currentToken;switch(g){case He.SPACE:case He.LINE_FEED:case He.TABULATION:case He.FORM_FEED:break;case He.GREATER_THAN_SIGN:{this.state=ot.DATA,this.emitCurrentDoctype(K);break}case He.EOF:{this._err(rn.eofInDoctype),K.forceQuirks=!0,this.emitCurrentDoctype(K),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Rn.PUBLIC,!1)?this.state=ot.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Rn.SYSTEM,!1)?this.state=ot.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(rn.invalidCharacterSequenceAfterDoctypeName),K.forceQuirks=!0,this.state=ot.BOGUS_DOCTYPE,this._stateBogusDoctype(g))}}_stateAfterDoctypePublicKeyword(g){const K=this.currentToken;switch(g){case He.SPACE:case He.LINE_FEED:case He.TABULATION:case He.FORM_FEED:{this.state=ot.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case He.QUOTATION_MARK:{this._err(rn.missingWhitespaceAfterDoctypePublicKeyword),K.publicId="",this.state=ot.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case He.APOSTROPHE:{this._err(rn.missingWhitespaceAfterDoctypePublicKeyword),K.publicId="",this.state=ot.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case He.GREATER_THAN_SIGN:{this._err(rn.missingDoctypePublicIdentifier),K.forceQuirks=!0,this.state=ot.DATA,this.emitCurrentDoctype(K);break}case He.EOF:{this._err(rn.eofInDoctype),K.forceQuirks=!0,this.emitCurrentDoctype(K),this._emitEOFToken();break}default:this._err(rn.missingQuoteBeforeDoctypePublicIdentifier),K.forceQuirks=!0,this.state=ot.BOGUS_DOCTYPE,this._stateBogusDoctype(g)}}_stateBeforeDoctypePublicIdentifier(g){const K=this.currentToken;switch(g){case He.SPACE:case He.LINE_FEED:case He.TABULATION:case He.FORM_FEED:break;case He.QUOTATION_MARK:{K.publicId="",this.state=ot.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case He.APOSTROPHE:{K.publicId="",this.state=ot.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case He.GREATER_THAN_SIGN:{this._err(rn.missingDoctypePublicIdentifier),K.forceQuirks=!0,this.state=ot.DATA,this.emitCurrentDoctype(K);break}case He.EOF:{this._err(rn.eofInDoctype),K.forceQuirks=!0,this.emitCurrentDoctype(K),this._emitEOFToken();break}default:this._err(rn.missingQuoteBeforeDoctypePublicIdentifier),K.forceQuirks=!0,this.state=ot.BOGUS_DOCTYPE,this._stateBogusDoctype(g)}}_stateDoctypePublicIdentifierDoubleQuoted(g){const K=this.currentToken;switch(g){case He.QUOTATION_MARK:{this.state=ot.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case He.NULL:{this._err(rn.unexpectedNullCharacter),K.publicId+=qt;break}case He.GREATER_THAN_SIGN:{this._err(rn.abruptDoctypePublicIdentifier),K.forceQuirks=!0,this.emitCurrentDoctype(K),this.state=ot.DATA;break}case He.EOF:{this._err(rn.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 He.APOSTROPHE:{this.state=ot.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case He.NULL:{this._err(rn.unexpectedNullCharacter),K.publicId+=qt;break}case He.GREATER_THAN_SIGN:{this._err(rn.abruptDoctypePublicIdentifier),K.forceQuirks=!0,this.emitCurrentDoctype(K),this.state=ot.DATA;break}case He.EOF:{this._err(rn.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 He.SPACE:case He.LINE_FEED:case He.TABULATION:case He.FORM_FEED:{this.state=ot.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case He.GREATER_THAN_SIGN:{this.state=ot.DATA,this.emitCurrentDoctype(K);break}case He.QUOTATION_MARK:{this._err(rn.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),K.systemId="",this.state=ot.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case He.APOSTROPHE:{this._err(rn.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),K.systemId="",this.state=ot.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case He.EOF:{this._err(rn.eofInDoctype),K.forceQuirks=!0,this.emitCurrentDoctype(K),this._emitEOFToken();break}default:this._err(rn.missingQuoteBeforeDoctypeSystemIdentifier),K.forceQuirks=!0,this.state=ot.BOGUS_DOCTYPE,this._stateBogusDoctype(g)}}_stateBetweenDoctypePublicAndSystemIdentifiers(g){const K=this.currentToken;switch(g){case He.SPACE:case He.LINE_FEED:case He.TABULATION:case He.FORM_FEED:break;case He.GREATER_THAN_SIGN:{this.emitCurrentDoctype(K),this.state=ot.DATA;break}case He.QUOTATION_MARK:{K.systemId="",this.state=ot.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case He.APOSTROPHE:{K.systemId="",this.state=ot.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case He.EOF:{this._err(rn.eofInDoctype),K.forceQuirks=!0,this.emitCurrentDoctype(K),this._emitEOFToken();break}default:this._err(rn.missingQuoteBeforeDoctypeSystemIdentifier),K.forceQuirks=!0,this.state=ot.BOGUS_DOCTYPE,this._stateBogusDoctype(g)}}_stateAfterDoctypeSystemKeyword(g){const K=this.currentToken;switch(g){case He.SPACE:case He.LINE_FEED:case He.TABULATION:case He.FORM_FEED:{this.state=ot.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case He.QUOTATION_MARK:{this._err(rn.missingWhitespaceAfterDoctypeSystemKeyword),K.systemId="",this.state=ot.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case He.APOSTROPHE:{this._err(rn.missingWhitespaceAfterDoctypeSystemKeyword),K.systemId="",this.state=ot.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case He.GREATER_THAN_SIGN:{this._err(rn.missingDoctypeSystemIdentifier),K.forceQuirks=!0,this.state=ot.DATA,this.emitCurrentDoctype(K);break}case He.EOF:{this._err(rn.eofInDoctype),K.forceQuirks=!0,this.emitCurrentDoctype(K),this._emitEOFToken();break}default:this._err(rn.missingQuoteBeforeDoctypeSystemIdentifier),K.forceQuirks=!0,this.state=ot.BOGUS_DOCTYPE,this._stateBogusDoctype(g)}}_stateBeforeDoctypeSystemIdentifier(g){const K=this.currentToken;switch(g){case He.SPACE:case He.LINE_FEED:case He.TABULATION:case He.FORM_FEED:break;case He.QUOTATION_MARK:{K.systemId="",this.state=ot.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case He.APOSTROPHE:{K.systemId="",this.state=ot.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case He.GREATER_THAN_SIGN:{this._err(rn.missingDoctypeSystemIdentifier),K.forceQuirks=!0,this.state=ot.DATA,this.emitCurrentDoctype(K);break}case He.EOF:{this._err(rn.eofInDoctype),K.forceQuirks=!0,this.emitCurrentDoctype(K),this._emitEOFToken();break}default:this._err(rn.missingQuoteBeforeDoctypeSystemIdentifier),K.forceQuirks=!0,this.state=ot.BOGUS_DOCTYPE,this._stateBogusDoctype(g)}}_stateDoctypeSystemIdentifierDoubleQuoted(g){const K=this.currentToken;switch(g){case He.QUOTATION_MARK:{this.state=ot.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case He.NULL:{this._err(rn.unexpectedNullCharacter),K.systemId+=qt;break}case He.GREATER_THAN_SIGN:{this._err(rn.abruptDoctypeSystemIdentifier),K.forceQuirks=!0,this.emitCurrentDoctype(K),this.state=ot.DATA;break}case He.EOF:{this._err(rn.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 He.APOSTROPHE:{this.state=ot.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case He.NULL:{this._err(rn.unexpectedNullCharacter),K.systemId+=qt;break}case He.GREATER_THAN_SIGN:{this._err(rn.abruptDoctypeSystemIdentifier),K.forceQuirks=!0,this.emitCurrentDoctype(K),this.state=ot.DATA;break}case He.EOF:{this._err(rn.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 He.SPACE:case He.LINE_FEED:case He.TABULATION:case He.FORM_FEED:break;case He.GREATER_THAN_SIGN:{this.emitCurrentDoctype(K),this.state=ot.DATA;break}case He.EOF:{this._err(rn.eofInDoctype),K.forceQuirks=!0,this.emitCurrentDoctype(K),this._emitEOFToken();break}default:this._err(rn.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=ot.BOGUS_DOCTYPE,this._stateBogusDoctype(g)}}_stateBogusDoctype(g){const K=this.currentToken;switch(g){case He.GREATER_THAN_SIGN:{this.emitCurrentDoctype(K),this.state=ot.DATA;break}case He.NULL:{this._err(rn.unexpectedNullCharacter);break}case He.EOF:{this.emitCurrentDoctype(K),this._emitEOFToken();break}default:}}_stateCdataSection(g){switch(g){case He.RIGHT_SQUARE_BRACKET:{this.state=ot.CDATA_SECTION_BRACKET;break}case He.EOF:{this._err(rn.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(g)}}_stateCdataSectionBracket(g){g===He.RIGHT_SQUARE_BRACKET?this.state=ot.CDATA_SECTION_END:(this._emitChars("]"),this.state=ot.CDATA_SECTION,this._stateCdataSection(g))}_stateCdataSectionEnd(g){switch(g){case He.GREATER_THAN_SIGN:{this.state=ot.DATA;break}case He.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=ot.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(He.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&ae(this.preprocessor.peek(1))?ot.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(g){ae(g)?this._flushCodePointConsumedAsCharacterReference(g):(g===He.SEMICOLON&&this._err(rn.unknownNamedCharacterReference),this.state=this.returnState,this._callState(g))}}const Ki=new Set([D.DD,D.DT,D.LI,D.OPTGROUP,D.OPTION,D.P,D.RB,D.RP,D.RT,D.RTC]),Zt=new Set([...Ki,D.CAPTION,D.COLGROUP,D.TBODY,D.TD,D.TFOOT,D.TH,D.THEAD,D.TR]),Ii=new Set([D.APPLET,D.CAPTION,D.HTML,D.MARQUEE,D.OBJECT,D.TABLE,D.TD,D.TEMPLATE,D.TH]),Wt=new Set([...Ii,D.OL,D.UL]),Yi=new Set([...Ii,D.BUTTON]),io=new Set([D.ANNOTATION_XML,D.MI,D.MN,D.MO,D.MS,D.MTEXT]),It=new Set([D.DESC,D.FOREIGN_OBJECT,D.TITLE]),Mo=new Set([D.TR,D.TEMPLATE,D.HTML]),Jt=new Set([D.TBODY,D.TFOOT,D.THEAD,D.TEMPLATE,D.HTML]),_i=new Set([D.TABLE,D.TEMPLATE,D.HTML]),Li=new Set([D.TD,D.TH]);class Sr{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(g,K,Je){this.treeAdapter=K,this.handler=Je,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=D.UNKNOWN,this.current=g}_indexOf(g){return this.items.lastIndexOf(g,this.stackTop)}_isInTemplate(){return this.currentTagId===D.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===ft.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 Je=this._indexOf(g);this.items[Je]=K,Je===this.stackTop&&(this.current=K)}insertAfter(g,K,Je){const un=this._indexOf(g)+1;this.items.splice(un,0,K),this.tagIDs.splice(un,0,Je),this.stackTop++,un===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,un===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])!==ft.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 Je=this._indexOfTagNames(g,K);this.shortenToLength(Je<0?0:Je)}popUntilNumberedHeaderPopped(){this.popUntilPopped(Mn,ft.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Li,ft.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(g,K){for(let Je=this.stackTop;Je>=0;Je--)if(g.has(this.tagIDs[Je])&&this.treeAdapter.getNamespaceURI(this.items[Je])===K)return Je;return-1}clearBackTo(g,K){const Je=this._indexOfTagNames(g,K);this.shortenToLength(Je+1)}clearBackToTableContext(){this.clearBackTo(_i,ft.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Jt,ft.HTML)}clearBackToTableRowContext(){this.clearBackTo(Mo,ft.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]===D.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]===D.HTML}hasInDynamicScope(g,K){for(let Je=this.stackTop;Je>=0;Je--){const un=this.tagIDs[Je];switch(this.treeAdapter.getNamespaceURI(this.items[Je])){case ft.HTML:{if(un===g)return!0;if(K.has(un))return!1;break}case ft.SVG:{if(It.has(un))return!1;break}case ft.MATHML:{if(io.has(un))return!1;break}}}return!0}hasInScope(g){return this.hasInDynamicScope(g,Ii)}hasInListItemScope(g){return this.hasInDynamicScope(g,Wt)}hasInButtonScope(g){return this.hasInDynamicScope(g,Yi)}hasNumberedHeaderInScope(){for(let g=this.stackTop;g>=0;g--){const K=this.tagIDs[g];switch(this.treeAdapter.getNamespaceURI(this.items[g])){case ft.HTML:{if(Mn.has(K))return!0;if(Ii.has(K))return!1;break}case ft.SVG:{if(It.has(K))return!1;break}case ft.MATHML:{if(io.has(K))return!1;break}}}return!0}hasInTableScope(g){for(let K=this.stackTop;K>=0;K--)if(this.treeAdapter.getNamespaceURI(this.items[K])===ft.HTML)switch(this.tagIDs[K]){case g:return!0;case D.TABLE:case D.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let g=this.stackTop;g>=0;g--)if(this.treeAdapter.getNamespaceURI(this.items[g])===ft.HTML)switch(this.tagIDs[g]){case D.TBODY:case D.THEAD:case D.TFOOT:return!0;case D.TABLE:case D.HTML:return!1}return!0}hasInSelectScope(g){for(let K=this.stackTop;K>=0;K--)if(this.treeAdapter.getNamespaceURI(this.items[K])===ft.HTML)switch(this.tagIDs[K]){case g:return!0;case D.OPTION:case D.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;Ki.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Zt.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(g){for(;this.currentTagId!==g&&Zt.has(this.currentTagId);)this.pop()}}const Or=3;var qn;(function(h){h[h.Marker=0]="Marker",h[h.Element=1]="Element"})(qn||(qn={}));const ce={type:qn.Marker};class Ar{constructor(g){this.treeAdapter=g,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(g,K){const Je=[],un=K.length,jn=this.treeAdapter.getTagName(g),bi=this.treeAdapter.getNamespaceURI(g);for(let gr=0;gr<this.entries.length;gr++){const Dr=this.entries[gr];if(Dr.type===qn.Marker)break;const{element:Gr}=Dr;if(this.treeAdapter.getTagName(Gr)===jn&&this.treeAdapter.getNamespaceURI(Gr)===bi){const Is=this.treeAdapter.getAttrList(Gr);Is.length===un&&Je.push({idx:gr,attrs:Is})}}return Je}_ensureNoahArkCondition(g){if(this.entries.length<Or)return;const K=this.treeAdapter.getAttrList(g),Je=this._getNoahArkConditionCandidates(g,K);if(Je.length<Or)return;const un=new Map(K.map(bi=>[bi.name,bi.value]));let jn=0;for(let bi=0;bi<Je.length;bi++){const gr=Je[bi];gr.attrs.every(Dr=>un.get(Dr.name)===Dr.value)&&(jn+=1,jn>=Or&&this.entries.splice(gr.idx,1))}}insertMarker(){this.entries.unshift(ce)}pushElement(g,K){this._ensureNoahArkCondition(g),this.entries.unshift({type:qn.Element,element:g,token:K})}insertElementAfterBookmark(g,K){const Je=this.entries.indexOf(this.bookmark);this.entries.splice(Je,0,{type:qn.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(ce);g>=0?this.entries.splice(0,g+1):this.entries.length=0}getElementEntryInScopeWithTagName(g){const K=this.entries.find(Je=>Je.type===qn.Marker||this.treeAdapter.getTagName(Je.element)===g);return K&&K.type===qn.Element?K:null}getElementEntry(g){return this.entries.find(K=>K.type===qn.Element&&K.element===g)}}const eo={createDocument(){return{nodeName:"#document",mode:Mt.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(h,g,K){return{nodeName:h,tagName:h,attrs:K,namespaceURI:g,childNodes:[],parentNode:null}},createCommentNode(h){return{nodeName:"#comment",data:h,parentNode:null}},createTextNode(h){return{nodeName:"#text",value:h,parentNode:null}},appendChild(h,g){h.childNodes.push(g),g.parentNode=h},insertBefore(h,g,K){const Je=h.childNodes.indexOf(K);h.childNodes.splice(Je,0,g),g.parentNode=h},setTemplateContent(h,g){h.content=g},getTemplateContent(h){return h.content},setDocumentType(h,g,K,Je){const un=h.childNodes.find(jn=>jn.nodeName==="#documentType");if(un)un.name=g,un.publicId=K,un.systemId=Je;else{const jn={nodeName:"#documentType",name:g,publicId:K,systemId:Je,parentNode:null};eo.appendChild(h,jn)}},setDocumentMode(h,g){h.mode=g},getDocumentMode(h){return h.mode},detachNode(h){if(h.parentNode){const g=h.parentNode.childNodes.indexOf(h);h.parentNode.childNodes.splice(g,1),h.parentNode=null}},insertText(h,g){if(h.childNodes.length>0){const K=h.childNodes[h.childNodes.length-1];if(eo.isTextNode(K)){K.value+=g;return}}eo.appendChild(h,eo.createTextNode(g))},insertTextBefore(h,g,K){const Je=h.childNodes[h.childNodes.indexOf(K)-1];Je&&eo.isTextNode(Je)?Je.value+=g:eo.insertBefore(h,eo.createTextNode(g),K)},adoptAttributes(h,g){const K=new Set(h.attrs.map(Je=>Je.name));for(let Je=0;Je<g.length;Je++)K.has(g[Je].name)||h.attrs.push(g[Je])},getFirstChild(h){return h.childNodes[0]},getChildNodes(h){return h.childNodes},getParentNode(h){return h.parentNode},getAttrList(h){return h.attrs},getTagName(h){return h.tagName},getNamespaceURI(h){return h.namespaceURI},getTextNodeContent(h){return h.value},getCommentNodeContent(h){return h.data},getDocumentTypeNodeName(h){return h.name},getDocumentTypeNodePublicId(h){return h.publicId},getDocumentTypeNodeSystemId(h){return h.systemId},isTextNode(h){return h.nodeName==="#text"},isCommentNode(h){return h.nodeName==="#comment"},isDocumentTypeNode(h){return h.nodeName==="#documentType"},isElementNode(h){return Object.prototype.hasOwnProperty.call(h,"tagName")},setNodeSourceCodeLocation(h,g){h.sourceCodeLocation=g},getNodeSourceCodeLocation(h){return h.sourceCodeLocation},updateNodeSourceCodeLocation(h,g){h.sourceCodeLocation=Bo(Bo({},h.sourceCodeLocation),g)}},br="html",fo="about:legacy-compat",qi="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Xr=["+//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//"],Ri=[...Xr,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Vi=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Hi=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],$r=[...Hi,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Vr(h,g){return g.some(K=>h.startsWith(K))}function wo(h){return h.name===br&&h.publicId===null&&(h.systemId===null||h.systemId===fo)}function Ko(h){if(h.name!==br)return Mt.QUIRKS;const{systemId:g}=h;if(g&&g.toLowerCase()===qi)return Mt.QUIRKS;let{publicId:K}=h;if(K!==null){if(K=K.toLowerCase(),Vi.has(K))return Mt.QUIRKS;let Je=g===null?Ri:Xr;if(Vr(K,Je))return Mt.QUIRKS;if(Je=g===null?Hi:$r,Vr(K,Je))return Mt.LIMITED_QUIRKS}return Mt.NO_QUIRKS}const mi={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Rs="definitionurl",fs="definitionURL",cs=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(h=>[h.toLowerCase(),h])),Bs=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:ft.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:ft.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:ft.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:ft.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:ft.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:ft.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:ft.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:ft.XML}],["xml:space",{prefix:"xml",name:"space",namespace:ft.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:ft.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:ft.XMLNS}]]),ca=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(h=>[h.toLowerCase(),h])),Ya=new Set([D.B,D.BIG,D.BLOCKQUOTE,D.BODY,D.BR,D.CENTER,D.CODE,D.DD,D.DIV,D.DL,D.DT,D.EM,D.EMBED,D.H1,D.H2,D.H3,D.H4,D.H5,D.H6,D.HEAD,D.HR,D.I,D.IMG,D.LI,D.LISTING,D.MENU,D.META,D.NOBR,D.OL,D.P,D.PRE,D.RUBY,D.S,D.SMALL,D.SPAN,D.STRONG,D.STRIKE,D.SUB,D.SUP,D.TABLE,D.TT,D.U,D.UL,D.VAR]);function ra(h){const g=h.tagID;return g===D.FONT&&h.attrs.some(({name:Je})=>Je===Fn.COLOR||Je===Fn.SIZE||Je===Fn.FACE)||Ya.has(g)}function Ha(h){for(let g=0;g<h.attrs.length;g++)if(h.attrs[g].name===Rs){h.attrs[g].name=fs;break}}function ya(h){for(let g=0;g<h.attrs.length;g++){const K=cs.get(h.attrs[g].name);K!=null&&(h.attrs[g].name=K)}}function ns(h){for(let g=0;g<h.attrs.length;g++){const K=Bs.get(h.attrs[g].name);K&&(h.attrs[g].prefix=K.prefix,h.attrs[g].name=K.name,h.attrs[g].namespace=K.namespace)}}function Ht(h){const g=ca.get(h.tagName);g!=null&&(h.tagName=g,h.tagID=dn(h.tagName))}function Ws(h,g){return g===ft.MATHML&&(h===D.MI||h===D.MO||h===D.MN||h===D.MS||h===D.MTEXT)}function Eu(h,g,K){if(g===ft.MATHML&&h===D.ANNOTATION_XML){for(let Je=0;Je<K.length;Je++)if(K[Je].name===Fn.ENCODING){const un=K[Je].value.toLowerCase();return un===mi.TEXT_HTML||un===mi.APPLICATION_XML}}return g===ft.SVG&&(h===D.FOREIGN_OBJECT||h===D.DESC||h===D.TITLE)}function Ml(h,g,K,Je){return(!Je||Je===ft.HTML)&&Eu(h,g,K)||(!Je||Je===ft.MATHML)&&Ws(h,g)}const po="hidden",_o=8,Ss=3;var Ut;(function(h){h[h.INITIAL=0]="INITIAL",h[h.BEFORE_HTML=1]="BEFORE_HTML",h[h.BEFORE_HEAD=2]="BEFORE_HEAD",h[h.IN_HEAD=3]="IN_HEAD",h[h.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",h[h.AFTER_HEAD=5]="AFTER_HEAD",h[h.IN_BODY=6]="IN_BODY",h[h.TEXT=7]="TEXT",h[h.IN_TABLE=8]="IN_TABLE",h[h.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",h[h.IN_CAPTION=10]="IN_CAPTION",h[h.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",h[h.IN_TABLE_BODY=12]="IN_TABLE_BODY",h[h.IN_ROW=13]="IN_ROW",h[h.IN_CELL=14]="IN_CELL",h[h.IN_SELECT=15]="IN_SELECT",h[h.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",h[h.IN_TEMPLATE=17]="IN_TEMPLATE",h[h.AFTER_BODY=18]="AFTER_BODY",h[h.IN_FRAMESET=19]="IN_FRAMESET",h[h.AFTER_FRAMESET=20]="AFTER_FRAMESET",h[h.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",h[h.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(Ut||(Ut={}));const zr={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Co=new Set([D.TABLE,D.TBODY,D.TFOOT,D.THEAD,D.TR]),ba={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:eo,onParseError:null};class Er{constructor(g,K,Je=null,un=null){this.fragmentContext=Je,this.scriptHandler=un,this.currentToken=null,this.stopped=!1,this.insertionMode=Ut.INITIAL,this.originalInsertionMode=Ut.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=Bo(Bo({},ba),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 Pn(this.options,this),this.activeFormattingElements=new Ar(this.treeAdapter),this.fragmentContextID=Je?dn(this.treeAdapter.getTagName(Je)):D.UNKNOWN,this._setContextModes(Je!=null?Je:this.document,this.fragmentContextID),this.openElements=new Sr(this.document,this.treeAdapter,this)}static parse(g,K){const Je=new this(K);return Je.tokenizer.write(g,!0),Je.document}static getFragmentParser(g,K){const Je=Bo(Bo({},ba),K);g!=null||(g=Je.treeAdapter.createElement(qe.TEMPLATE,ft.HTML,[]));const un=Je.treeAdapter.createElement("documentmock",ft.HTML,[]),jn=new this(Je,un,g);return jn.fragmentContextID===D.TEMPLATE&&jn.tmplInsertionModeStack.unshift(Ut.IN_TEMPLATE),jn._initTokenizerForFragmentParsing(),jn._insertFakeRootElement(),jn._resetInsertionMode(),jn._findFormInFragmentContext(),jn}getFragment(){const g=this.treeAdapter.getFirstChild(this.document),K=this.treeAdapter.createDocumentFragment();return this._adoptNodes(g,K),K}_err(g,K,Je){var un;if(!this.onParseError)return;const jn=(un=g.location)!==null&&un!==void 0?un:zr,bi={code:K,startLine:jn.startLine,startCol:jn.startCol,startOffset:jn.startOffset,endLine:Je?jn.startLine:jn.endLine,endCol:Je?jn.startCol:jn.endCol,endOffset:Je?jn.startOffset:jn.endOffset};this.onParseError(bi)}onItemPush(g,K,Je){var un,jn;(jn=(un=this.treeAdapter).onItemPush)===null||jn===void 0||jn.call(un,g),Je&&this.openElements.stackTop>0&&this._setContextModes(g,K)}onItemPop(g,K){var Je,un;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(g,this.currentToken),(un=(Je=this.treeAdapter).onItemPop)===null||un===void 0||un.call(Je,g,this.openElements.current),K){let jn,bi;this.openElements.stackTop===0&&this.fragmentContext?(jn=this.fragmentContext,bi=this.fragmentContextID):{current:jn,currentTagId:bi}=this.openElements,this._setContextModes(jn,bi)}}_setContextModes(g,K){const Je=g===this.document||this.treeAdapter.getNamespaceURI(g)===ft.HTML;this.currentNotInHTML=!Je,this.tokenizer.inForeignNode=!Je&&!this._isIntegrationPoint(K,g)}_switchToTextParsing(g,K){this._insertElement(g,ft.HTML),this.tokenizer.state=K,this.originalInsertionMode=this.insertionMode,this.insertionMode=Ut.TEXT}switchToPlaintextParsing(){this.insertionMode=Ut.TEXT,this.originalInsertionMode=Ut.IN_BODY,this.tokenizer.state=Bi.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)===qe.FORM){this.formElement=g;break}g=this.treeAdapter.getParentNode(g)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==ft.HTML))switch(this.fragmentContextID){case D.TITLE:case D.TEXTAREA:{this.tokenizer.state=Bi.RCDATA;break}case D.STYLE:case D.XMP:case D.IFRAME:case D.NOEMBED:case D.NOFRAMES:case D.NOSCRIPT:{this.tokenizer.state=Bi.RAWTEXT;break}case D.SCRIPT:{this.tokenizer.state=Bi.SCRIPT_DATA;break}case D.PLAINTEXT:{this.tokenizer.state=Bi.PLAINTEXT;break}default:}}_setDocumentType(g){const K=g.name||"",Je=g.publicId||"",un=g.systemId||"";if(this.treeAdapter.setDocumentType(this.document,K,Je,un),g.location){const bi=this.treeAdapter.getChildNodes(this.document).find(gr=>this.treeAdapter.isDocumentTypeNode(gr));bi&&this.treeAdapter.setNodeSourceCodeLocation(bi,g.location)}}_attachElementToTree(g,K){if(this.options.sourceCodeLocationInfo){const Je=K&&cd(Bo({},K),{startTag:K});this.treeAdapter.setNodeSourceCodeLocation(g,Je)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(g);else{const Je=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(Je,g)}}_appendElement(g,K){const Je=this.treeAdapter.createElement(g.tagName,K,g.attrs);this._attachElementToTree(Je,g.location)}_insertElement(g,K){const Je=this.treeAdapter.createElement(g.tagName,K,g.attrs);this._attachElementToTree(Je,g.location),this.openElements.push(Je,g.tagID)}_insertFakeElement(g,K){const Je=this.treeAdapter.createElement(g,ft.HTML,[]);this._attachElementToTree(Je,null),this.openElements.push(Je,K)}_insertTemplate(g){const K=this.treeAdapter.createElement(g.tagName,ft.HTML,g.attrs),Je=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(K,Je),this._attachElementToTree(K,g.location),this.openElements.push(K,g.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(Je,null)}_insertFakeRootElement(){const g=this.treeAdapter.createElement(qe.HTML,ft.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(g,null),this.treeAdapter.appendChild(this.openElements.current,g),this.openElements.push(g,D.HTML)}_appendCommentNode(g,K){const Je=this.treeAdapter.createCommentNode(g.data);this.treeAdapter.appendChild(K,Je),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(Je,g.location)}_insertCharacters(g){let K,Je;if(this._shouldFosterParentOnInsertion()?({parent:K,beforeElement:Je}=this._findFosterParentingLocation(),Je?this.treeAdapter.insertTextBefore(K,g.chars,Je):this.treeAdapter.insertText(K,g.chars)):(K=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(K,g.chars)),!g.location)return;const un=this.treeAdapter.getChildNodes(K),jn=Je?un.lastIndexOf(Je):un.length,bi=un[jn-1];if(this.treeAdapter.getNodeSourceCodeLocation(bi)){const{endLine:Dr,endCol:Gr,endOffset:Is}=g.location;this.treeAdapter.updateNodeSourceCodeLocation(bi,{endLine:Dr,endCol:Gr,endOffset:Is})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(bi,g.location)}_adoptNodes(g,K){for(let Je=this.treeAdapter.getFirstChild(g);Je;Je=this.treeAdapter.getFirstChild(g))this.treeAdapter.detachNode(Je),this.treeAdapter.appendChild(K,Je)}_setEndLocation(g,K){if(this.treeAdapter.getNodeSourceCodeLocation(g)&&K.location){const Je=K.location,un=this.treeAdapter.getTagName(g),jn=K.type===Zn.END_TAG&&un===K.tagName?{endTag:Bo({},Je),endLine:Je.endLine,endCol:Je.endCol,endOffset:Je.endOffset}:{endLine:Je.startLine,endCol:Je.startCol,endOffset:Je.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(g,jn)}}shouldProcessStartTagTokenInForeignContent(g){if(!this.currentNotInHTML)return!1;let K,Je;return this.openElements.stackTop===0&&this.fragmentContext?(K=this.fragmentContext,Je=this.fragmentContextID):{current:K,currentTagId:Je}=this.openElements,g.tagID===D.SVG&&this.treeAdapter.getTagName(K)===qe.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(K)===ft.MATHML?!1:this.tokenizer.inForeignNode||(g.tagID===D.MGLYPH||g.tagID===D.MALIGNMARK)&&!this._isIntegrationPoint(Je,K,ft.HTML)}_processToken(g){switch(g.type){case Zn.CHARACTER:{this.onCharacter(g);break}case Zn.NULL_CHARACTER:{this.onNullCharacter(g);break}case Zn.COMMENT:{this.onComment(g);break}case Zn.DOCTYPE:{this.onDoctype(g);break}case Zn.START_TAG:{this._processStartTag(g);break}case Zn.END_TAG:{this.onEndTag(g);break}case Zn.EOF:{this.onEof(g);break}case Zn.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(g);break}}}_isIntegrationPoint(g,K,Je){const un=this.treeAdapter.getNamespaceURI(K),jn=this.treeAdapter.getAttrList(K);return Ml(g,un,jn,Je)}_reconstructActiveFormattingElements(){const g=this.activeFormattingElements.entries.length;if(g){const K=this.activeFormattingElements.entries.findIndex(un=>un.type===qn.Marker||this.openElements.contains(un.element)),Je=K<0?g-1:K-1;for(let un=Je;un>=0;un--){const jn=this.activeFormattingElements.entries[un];this._insertElement(jn.token,this.treeAdapter.getNamespaceURI(jn.element)),jn.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Ut.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(D.P),this.openElements.popUntilTagNamePopped(D.P)}_resetInsertionMode(){for(let g=this.openElements.stackTop;g>=0;g--)switch(g===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[g]){case D.TR:{this.insertionMode=Ut.IN_ROW;return}case D.TBODY:case D.THEAD:case D.TFOOT:{this.insertionMode=Ut.IN_TABLE_BODY;return}case D.CAPTION:{this.insertionMode=Ut.IN_CAPTION;return}case D.COLGROUP:{this.insertionMode=Ut.IN_COLUMN_GROUP;return}case D.TABLE:{this.insertionMode=Ut.IN_TABLE;return}case D.BODY:{this.insertionMode=Ut.IN_BODY;return}case D.FRAMESET:{this.insertionMode=Ut.IN_FRAMESET;return}case D.SELECT:{this._resetInsertionModeForSelect(g);return}case D.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case D.HTML:{this.insertionMode=this.headElement?Ut.AFTER_HEAD:Ut.BEFORE_HEAD;return}case D.TD:case D.TH:{if(g>0){this.insertionMode=Ut.IN_CELL;return}break}case D.HEAD:{if(g>0){this.insertionMode=Ut.IN_HEAD;return}break}}this.insertionMode=Ut.IN_BODY}_resetInsertionModeForSelect(g){if(g>0)for(let K=g-1;K>0;K--){const Je=this.openElements.tagIDs[K];if(Je===D.TEMPLATE)break;if(Je===D.TABLE){this.insertionMode=Ut.IN_SELECT_IN_TABLE;return}}this.insertionMode=Ut.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 D.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(K)===ft.HTML)return{parent:this.treeAdapter.getTemplateContent(K),beforeElement:null};break}case D.TABLE:{const Je=this.treeAdapter.getParentNode(K);return Je?{parent:Je,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 Je=this.treeAdapter.getNamespaceURI(g);return En[Je].has(K)}onCharacter(g){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){E(this,g);return}switch(this.insertionMode){case Ut.INITIAL:{Go(this,g);break}case Ut.BEFORE_HTML:{ol(this,g);break}case Ut.BEFORE_HEAD:{zo(this,g);break}case Ut.IN_HEAD:{As(this,g);break}case Ut.IN_HEAD_NO_SCRIPT:{$a(this,g);break}case Ut.AFTER_HEAD:{ea(this,g);break}case Ut.IN_BODY:case Ut.IN_CAPTION:case Ut.IN_CELL:case Ut.IN_TEMPLATE:{$i(this,g);break}case Ut.TEXT:case Ut.IN_SELECT:case Ut.IN_SELECT_IN_TABLE:{this._insertCharacters(g);break}case Ut.IN_TABLE:case Ut.IN_TABLE_BODY:case Ut.IN_ROW:{wr(this,g);break}case Ut.IN_TABLE_TEXT:{eu(this,g);break}case Ut.IN_COLUMN_GROUP:{fu(this,g);break}case Ut.AFTER_BODY:{Dn(this,g);break}case Ut.AFTER_AFTER_BODY:{Fi(this,g);break}default:}}onNullCharacter(g){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){zi(this,g);return}switch(this.insertionMode){case Ut.INITIAL:{Go(this,g);break}case Ut.BEFORE_HTML:{ol(this,g);break}case Ut.BEFORE_HEAD:{zo(this,g);break}case Ut.IN_HEAD:{As(this,g);break}case Ut.IN_HEAD_NO_SCRIPT:{$a(this,g);break}case Ut.AFTER_HEAD:{ea(this,g);break}case Ut.TEXT:{this._insertCharacters(g);break}case Ut.IN_TABLE:case Ut.IN_TABLE_BODY:case Ut.IN_ROW:{wr(this,g);break}case Ut.IN_COLUMN_GROUP:{fu(this,g);break}case Ut.AFTER_BODY:{Dn(this,g);break}case Ut.AFTER_AFTER_BODY:{Fi(this,g);break}default:}}onComment(g){if(this.skipNextNewLine=!1,this.currentNotInHTML){Ca(this,g);return}switch(this.insertionMode){case Ut.INITIAL:case Ut.BEFORE_HTML:case Ut.BEFORE_HEAD:case Ut.IN_HEAD:case Ut.IN_HEAD_NO_SCRIPT:case Ut.AFTER_HEAD:case Ut.IN_BODY:case Ut.IN_TABLE:case Ut.IN_CAPTION:case Ut.IN_COLUMN_GROUP:case Ut.IN_TABLE_BODY:case Ut.IN_ROW:case Ut.IN_CELL:case Ut.IN_SELECT:case Ut.IN_SELECT_IN_TABLE:case Ut.IN_TEMPLATE:case Ut.IN_FRAMESET:case Ut.AFTER_FRAMESET:{Ca(this,g);break}case Ut.IN_TABLE_TEXT:{gl(this,g);break}case Ut.AFTER_BODY:{oi(this,g);break}case Ut.AFTER_AFTER_BODY:case Ut.AFTER_AFTER_FRAMESET:{Di(this,g);break}default:}}onDoctype(g){switch(this.skipNextNewLine=!1,this.insertionMode){case Ut.INITIAL:{Ta(this,g);break}case Ut.BEFORE_HEAD:case Ut.IN_HEAD:case Ut.IN_HEAD_NO_SCRIPT:case Ut.AFTER_HEAD:{this._err(g,rn.misplacedDoctype);break}case Ut.IN_TABLE_TEXT:{gl(this,g);break}default:}}onStartTag(g){this.skipNextNewLine=!1,this.currentToken=g,this._processStartTag(g),g.selfClosing&&!g.ackSelfClosing&&this._err(g,rn.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(g){this.shouldProcessStartTagTokenInForeignContent(g)?G(this,g):this._startTagOutsideForeignContent(g)}_startTagOutsideForeignContent(g){switch(this.insertionMode){case Ut.INITIAL:{Go(this,g);break}case Ut.BEFORE_HTML:{Js(this,g);break}case Ut.BEFORE_HEAD:{La(this,g);break}case Ut.IN_HEAD:{qs(this,g);break}case Ut.IN_HEAD_NO_SCRIPT:{pl(this,g);break}case Ut.AFTER_HEAD:{wu(this,g);break}case Ut.IN_BODY:{go(this,g);break}case Ut.IN_TABLE:{Qa(this,g);break}case Ut.IN_TABLE_TEXT:{gl(this,g);break}case Ut.IN_CAPTION:{Ja(this,g);break}case Ut.IN_COLUMN_GROUP:{Ka(this,g);break}case Ut.IN_TABLE_BODY:{Tu(this,g);break}case Ut.IN_ROW:{al(this,g);break}case Ut.IN_CELL:{Vl(this,g);break}case Ut.IN_SELECT:{Se(this,g);break}case Ut.IN_SELECT_IN_TABLE:{ut(this,g);break}case Ut.IN_TEMPLATE:{Lt(this,g);break}case Ut.AFTER_BODY:{cn(this,g);break}case Ut.IN_FRAMESET:{Bn(this,g);break}case Ut.AFTER_FRAMESET:{fi(this,g);break}case Ut.AFTER_AFTER_BODY:{Jn(this,g);break}case Ut.AFTER_AFTER_FRAMESET:{ai(this,g);break}default:}}onEndTag(g){this.skipNextNewLine=!1,this.currentToken=g,this.currentNotInHTML?q(this,g):this._endTagOutsideForeignContent(g)}_endTagOutsideForeignContent(g){switch(this.insertionMode){case Ut.INITIAL:{Go(this,g);break}case Ut.BEFORE_HTML:{kr(this,g);break}case Ut.BEFORE_HEAD:{Ra(this,g);break}case Ut.IN_HEAD:{Ol(this,g);break}case Ut.IN_HEAD_NO_SCRIPT:{Wo(this,g);break}case Ut.AFTER_HEAD:{Ll(this,g);break}case Ut.IN_BODY:{qo(this,g);break}case Ut.TEXT:{Po(this,g);break}case Ut.IN_TABLE:{To(this,g);break}case Ut.IN_TABLE_TEXT:{gl(this,g);break}case Ut.IN_CAPTION:{Wl(this,g);break}case Ut.IN_COLUMN_GROUP:{du(this,g);break}case Ut.IN_TABLE_BODY:{Nu(this,g);break}case Ut.IN_ROW:{fa(this,g);break}case Ut.IN_CELL:{zu(this,g);break}case Ut.IN_SELECT:{Ae(this,g);break}case Ut.IN_SELECT_IN_TABLE:{vt(this,g);break}case Ut.IN_TEMPLATE:{Nt(this,g);break}case Ut.AFTER_BODY:{en(this,g);break}case Ut.IN_FRAMESET:{zn(this,g);break}case Ut.AFTER_FRAMESET:{gi(this,g);break}case Ut.AFTER_AFTER_BODY:{Fi(this,g);break}default:}}onEof(g){switch(this.insertionMode){case Ut.INITIAL:{Go(this,g);break}case Ut.BEFORE_HTML:{ol(this,g);break}case Ut.BEFORE_HEAD:{zo(this,g);break}case Ut.IN_HEAD:{As(this,g);break}case Ut.IN_HEAD_NO_SCRIPT:{$a(this,g);break}case Ut.AFTER_HEAD:{ea(this,g);break}case Ut.IN_BODY:case Ut.IN_TABLE:case Ut.IN_CAPTION:case Ut.IN_COLUMN_GROUP:case Ut.IN_TABLE_BODY:case Ut.IN_ROW:case Ut.IN_CELL:case Ut.IN_SELECT:case Ut.IN_SELECT_IN_TABLE:{bs(this,g);break}case Ut.TEXT:{hu(this,g);break}case Ut.IN_TABLE_TEXT:{gl(this,g);break}case Ut.IN_TEMPLATE:{fe(this,g);break}case Ut.AFTER_BODY:case Ut.IN_FRAMESET:case Ut.AFTER_FRAMESET:case Ut.AFTER_AFTER_BODY:case Ut.AFTER_AFTER_FRAMESET:{Qo(this,g);break}default:}}onWhitespaceCharacter(g){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,g.chars.charCodeAt(0)===He.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 Ut.IN_HEAD:case Ut.IN_HEAD_NO_SCRIPT:case Ut.AFTER_HEAD:case Ut.TEXT:case Ut.IN_COLUMN_GROUP:case Ut.IN_SELECT:case Ut.IN_SELECT_IN_TABLE:case Ut.IN_FRAMESET:case Ut.AFTER_FRAMESET:{this._insertCharacters(g);break}case Ut.IN_BODY:case Ut.IN_CAPTION:case Ut.IN_CELL:case Ut.IN_TEMPLATE:case Ut.AFTER_BODY:case Ut.AFTER_AFTER_BODY:case Ut.AFTER_AFTER_FRAMESET:{ja(this,g);break}case Ut.IN_TABLE:case Ut.IN_TABLE_BODY:case Ut.IN_ROW:{wr(this,g);break}case Ut.IN_TABLE_TEXT:{dc(this,g);break}default:}}}function yn(h,g){let K=h.activeFormattingElements.getElementEntryInScopeWithTagName(g.tagName);return K?h.openElements.contains(K.element)?h.openElements.hasInScope(g.tagID)||(K=null):(h.activeFormattingElements.removeEntry(K),K=null):Zo(h,g),K}function pr(h,g){let K=null,Je=h.openElements.stackTop;for(;Je>=0;Je--){const un=h.openElements.items[Je];if(un===g.element)break;h._isSpecialElement(un,h.openElements.tagIDs[Je])&&(K=un)}return K||(h.openElements.shortenToLength(Je<0?0:Je),h.activeFormattingElements.removeEntry(g)),K}function pi(h,g,K){let Je=g,un=h.openElements.getCommonAncestor(g);for(let jn=0,bi=un;bi!==K;jn++,bi=un){un=h.openElements.getCommonAncestor(bi);const gr=h.activeFormattingElements.getElementEntry(bi),Dr=gr&&jn>=Ss;!gr||Dr?(Dr&&h.activeFormattingElements.removeEntry(gr),h.openElements.remove(bi)):(bi=Yo(h,gr),Je===g&&(h.activeFormattingElements.bookmark=gr),h.treeAdapter.detachNode(Je),h.treeAdapter.appendChild(bi,Je),Je=bi)}return Je}function Yo(h,g){const K=h.treeAdapter.getNamespaceURI(g.element),Je=h.treeAdapter.createElement(g.token.tagName,K,g.token.attrs);return h.openElements.replace(g.element,Je),g.element=Je,Je}function Ns(h,g,K){const Je=h.treeAdapter.getTagName(g),un=dn(Je);if(h._isElementCausesFosterParenting(un))h._fosterParentElement(K);else{const jn=h.treeAdapter.getNamespaceURI(g);un===D.TEMPLATE&&jn===ft.HTML&&(g=h.treeAdapter.getTemplateContent(g)),h.treeAdapter.appendChild(g,K)}}function ha(h,g,K){const Je=h.treeAdapter.getNamespaceURI(K.element),{token:un}=K,jn=h.treeAdapter.createElement(un.tagName,Je,un.attrs);h._adoptNodes(g,jn),h.treeAdapter.appendChild(g,jn),h.activeFormattingElements.insertElementAfterBookmark(jn,un),h.activeFormattingElements.removeEntry(K),h.openElements.remove(K.element),h.openElements.insertAfter(g,jn,un.tagID)}function Oa(h,g){for(let K=0;K<_o;K++){const Je=yn(h,g);if(!Je)break;const un=pr(h,Je);if(!un)break;h.activeFormattingElements.bookmark=Je;const jn=pi(h,un,Je.element),bi=h.openElements.getCommonAncestor(Je.element);h.treeAdapter.detachNode(jn),bi&&Ns(h,bi,jn),ha(h,un,Je)}}function Ca(h,g){h._appendCommentNode(g,h.openElements.currentTmplContentOrNode)}function oi(h,g){h._appendCommentNode(g,h.openElements.items[0])}function Di(h,g){h._appendCommentNode(g,h.document)}function Qo(h,g){if(h.stopped=!0,g.location){const K=h.fragmentContext?0:2;for(let Je=h.openElements.stackTop;Je>=K;Je--)h._setEndLocation(h.openElements.items[Je],g);if(!h.fragmentContext&&h.openElements.stackTop>=0){const Je=h.openElements.items[0],un=h.treeAdapter.getNodeSourceCodeLocation(Je);if(un&&!un.endTag&&(h._setEndLocation(Je,g),h.openElements.stackTop>=1)){const jn=h.openElements.items[1],bi=h.treeAdapter.getNodeSourceCodeLocation(jn);bi&&!bi.endTag&&h._setEndLocation(jn,g)}}}}function Ta(h,g){h._setDocumentType(g);const K=g.forceQuirks?Mt.QUIRKS:Ko(g);wo(g)||h._err(g,rn.nonConformingDoctype),h.treeAdapter.setDocumentMode(h.document,K),h.insertionMode=Ut.BEFORE_HTML}function Go(h,g){h._err(g,rn.missingDoctype,!0),h.treeAdapter.setDocumentMode(h.document,Mt.QUIRKS),h.insertionMode=Ut.BEFORE_HTML,h._processToken(g)}function Js(h,g){g.tagID===D.HTML?(h._insertElement(g,ft.HTML),h.insertionMode=Ut.BEFORE_HEAD):ol(h,g)}function kr(h,g){const K=g.tagID;(K===D.HTML||K===D.HEAD||K===D.BODY||K===D.BR)&&ol(h,g)}function ol(h,g){h._insertFakeRootElement(),h.insertionMode=Ut.BEFORE_HEAD,h._processToken(g)}function La(h,g){switch(g.tagID){case D.HTML:{go(h,g);break}case D.HEAD:{h._insertElement(g,ft.HTML),h.headElement=h.openElements.current,h.insertionMode=Ut.IN_HEAD;break}default:zo(h,g)}}function Ra(h,g){const K=g.tagID;K===D.HEAD||K===D.BODY||K===D.HTML||K===D.BR?zo(h,g):h._err(g,rn.endTagWithoutMatchingOpenElement)}function zo(h,g){h._insertFakeElement(qe.HEAD,D.HEAD),h.headElement=h.openElements.current,h.insertionMode=Ut.IN_HEAD,h._processToken(g)}function qs(h,g){switch(g.tagID){case D.HTML:{go(h,g);break}case D.BASE:case D.BASEFONT:case D.BGSOUND:case D.LINK:case D.META:{h._appendElement(g,ft.HTML),g.ackSelfClosing=!0;break}case D.TITLE:{h._switchToTextParsing(g,Bi.RCDATA);break}case D.NOSCRIPT:{h.options.scriptingEnabled?h._switchToTextParsing(g,Bi.RAWTEXT):(h._insertElement(g,ft.HTML),h.insertionMode=Ut.IN_HEAD_NO_SCRIPT);break}case D.NOFRAMES:case D.STYLE:{h._switchToTextParsing(g,Bi.RAWTEXT);break}case D.SCRIPT:{h._switchToTextParsing(g,Bi.SCRIPT_DATA);break}case D.TEMPLATE:{h._insertTemplate(g),h.activeFormattingElements.insertMarker(),h.framesetOk=!1,h.insertionMode=Ut.IN_TEMPLATE,h.tmplInsertionModeStack.unshift(Ut.IN_TEMPLATE);break}case D.HEAD:{h._err(g,rn.misplacedStartTagForHeadElement);break}default:As(h,g)}}function Ol(h,g){switch(g.tagID){case D.HEAD:{h.openElements.pop(),h.insertionMode=Ut.AFTER_HEAD;break}case D.BODY:case D.BR:case D.HTML:{As(h,g);break}case D.TEMPLATE:{Vs(h,g);break}default:h._err(g,rn.endTagWithoutMatchingOpenElement)}}function Vs(h,g){h.openElements.tmplCount>0?(h.openElements.generateImpliedEndTagsThoroughly(),h.openElements.currentTagId!==D.TEMPLATE&&h._err(g,rn.closingOfElementWithOpenChildElements),h.openElements.popUntilTagNamePopped(D.TEMPLATE),h.activeFormattingElements.clearToLastMarker(),h.tmplInsertionModeStack.shift(),h._resetInsertionMode()):h._err(g,rn.endTagWithoutMatchingOpenElement)}function As(h,g){h.openElements.pop(),h.insertionMode=Ut.AFTER_HEAD,h._processToken(g)}function pl(h,g){switch(g.tagID){case D.HTML:{go(h,g);break}case D.BASEFONT:case D.BGSOUND:case D.HEAD:case D.LINK:case D.META:case D.NOFRAMES:case D.STYLE:{qs(h,g);break}case D.NOSCRIPT:{h._err(g,rn.nestedNoscriptInHead);break}default:$a(h,g)}}function Wo(h,g){switch(g.tagID){case D.NOSCRIPT:{h.openElements.pop(),h.insertionMode=Ut.IN_HEAD;break}case D.BR:{$a(h,g);break}default:h._err(g,rn.endTagWithoutMatchingOpenElement)}}function $a(h,g){const K=g.type===Zn.EOF?rn.openElementsLeftAfterEof:rn.disallowedContentInNoscriptInHead;h._err(g,K),h.openElements.pop(),h.insertionMode=Ut.IN_HEAD,h._processToken(g)}function wu(h,g){switch(g.tagID){case D.HTML:{go(h,g);break}case D.BODY:{h._insertElement(g,ft.HTML),h.framesetOk=!1,h.insertionMode=Ut.IN_BODY;break}case D.FRAMESET:{h._insertElement(g,ft.HTML),h.insertionMode=Ut.IN_FRAMESET;break}case D.BASE:case D.BASEFONT:case D.BGSOUND:case D.LINK:case D.META:case D.NOFRAMES:case D.SCRIPT:case D.STYLE:case D.TEMPLATE:case D.TITLE:{h._err(g,rn.abandonedHeadElementChild),h.openElements.push(h.headElement,D.HEAD),qs(h,g),h.openElements.remove(h.headElement);break}case D.HEAD:{h._err(g,rn.misplacedStartTagForHeadElement);break}default:ea(h,g)}}function Ll(h,g){switch(g.tagID){case D.BODY:case D.HTML:case D.BR:{ea(h,g);break}case D.TEMPLATE:{Vs(h,g);break}default:h._err(g,rn.endTagWithoutMatchingOpenElement)}}function ea(h,g){h._insertFakeElement(qe.BODY,D.BODY),h.insertionMode=Ut.IN_BODY,Ls(h,g)}function Ls(h,g){switch(g.type){case Zn.CHARACTER:{$i(h,g);break}case Zn.WHITESPACE_CHARACTER:{ja(h,g);break}case Zn.COMMENT:{Ca(h,g);break}case Zn.START_TAG:{go(h,g);break}case Zn.END_TAG:{qo(h,g);break}case Zn.EOF:{bs(h,g);break}default:}}function ja(h,g){h._reconstructActiveFormattingElements(),h._insertCharacters(g)}function $i(h,g){h._reconstructActiveFormattingElements(),h._insertCharacters(g),h.framesetOk=!1}function Na(h,g){h.openElements.tmplCount===0&&h.treeAdapter.adoptAttributes(h.openElements.items[0],g.attrs)}function Rl(h,g){const K=h.openElements.tryPeekProperlyNestedBodyElement();K&&h.openElements.tmplCount===0&&(h.framesetOk=!1,h.treeAdapter.adoptAttributes(K,g.attrs))}function Ur(h,g){const K=h.openElements.tryPeekProperlyNestedBodyElement();h.framesetOk&&K&&(h.treeAdapter.detachNode(K),h.openElements.popAllUpToHtmlElement(),h._insertElement(g,ft.HTML),h.insertionMode=Ut.IN_FRAMESET)}function bo(h,g){h.openElements.hasInButtonScope(D.P)&&h._closePElement(),h._insertElement(g,ft.HTML)}function hs(h,g){h.openElements.hasInButtonScope(D.P)&&h._closePElement(),Mn.has(h.openElements.currentTagId)&&h.openElements.pop(),h._insertElement(g,ft.HTML)}function is(h,g){h.openElements.hasInButtonScope(D.P)&&h._closePElement(),h._insertElement(g,ft.HTML),h.skipNextNewLine=!0,h.framesetOk=!1}function qr(h,g){const K=h.openElements.tmplCount>0;(!h.formElement||K)&&(h.openElements.hasInButtonScope(D.P)&&h._closePElement(),h._insertElement(g,ft.HTML),K||(h.formElement=h.openElements.current))}function rs(h,g){h.framesetOk=!1;const K=g.tagID;for(let Je=h.openElements.stackTop;Je>=0;Je--){const un=h.openElements.tagIDs[Je];if(K===D.LI&&un===D.LI||(K===D.DD||K===D.DT)&&(un===D.DD||un===D.DT)){h.openElements.generateImpliedEndTagsWithExclusion(un),h.openElements.popUntilTagNamePopped(un);break}if(un!==D.ADDRESS&&un!==D.DIV&&un!==D.P&&h._isSpecialElement(h.openElements.items[Je],un))break}h.openElements.hasInButtonScope(D.P)&&h._closePElement(),h._insertElement(g,ft.HTML)}function ps(h,g){h.openElements.hasInButtonScope(D.P)&&h._closePElement(),h._insertElement(g,ft.HTML),h.tokenizer.state=Bi.PLAINTEXT}function ks(h,g){h.openElements.hasInScope(D.BUTTON)&&(h.openElements.generateImpliedEndTags(),h.openElements.popUntilTagNamePopped(D.BUTTON)),h._reconstructActiveFormattingElements(),h._insertElement(g,ft.HTML),h.framesetOk=!1}function Es(h,g){const K=h.activeFormattingElements.getElementEntryInScopeWithTagName(qe.A);K&&(Oa(h,g),h.openElements.remove(K.element),h.activeFormattingElements.removeEntry(K)),h._reconstructActiveFormattingElements(),h._insertElement(g,ft.HTML),h.activeFormattingElements.pushElement(h.openElements.current,g)}function Gl(h,g){h._reconstructActiveFormattingElements(),h._insertElement(g,ft.HTML),h.activeFormattingElements.pushElement(h.openElements.current,g)}function Za(h,g){h._reconstructActiveFormattingElements(),h.openElements.hasInScope(D.NOBR)&&(Oa(h,g),h._reconstructActiveFormattingElements()),h._insertElement(g,ft.HTML),h.activeFormattingElements.pushElement(h.openElements.current,g)}function ws(h,g){h._reconstructActiveFormattingElements(),h._insertElement(g,ft.HTML),h.activeFormattingElements.insertMarker(),h.framesetOk=!1}function hc(h,g){h.treeAdapter.getDocumentMode(h.document)!==Mt.QUIRKS&&h.openElements.hasInButtonScope(D.P)&&h._closePElement(),h._insertElement(g,ft.HTML),h.framesetOk=!1,h.insertionMode=Ut.IN_TABLE}function Yu(h,g){h._reconstructActiveFormattingElements(),h._appendElement(g,ft.HTML),h.framesetOk=!1,g.ackSelfClosing=!0}function lu(h){const g=Mr(h,Fn.TYPE);return g!=null&&g.toLowerCase()===po}function or(h,g){h._reconstructActiveFormattingElements(),h._appendElement(g,ft.HTML),lu(g)||(h.framesetOk=!1),g.ackSelfClosing=!0}function Ga(h,g){h._appendElement(g,ft.HTML),g.ackSelfClosing=!0}function Ye(h,g){h.openElements.hasInButtonScope(D.P)&&h._closePElement(),h._appendElement(g,ft.HTML),h.framesetOk=!1,g.ackSelfClosing=!0}function kn(h,g){g.tagName=qe.IMG,g.tagID=D.IMG,Yu(h,g)}function Cu(h,g){h._insertElement(g,ft.HTML),h.skipNextNewLine=!0,h.tokenizer.state=Bi.RCDATA,h.originalInsertionMode=h.insertionMode,h.framesetOk=!1,h.insertionMode=Ut.TEXT}function Zu(h,g){h.openElements.hasInButtonScope(D.P)&&h._closePElement(),h._reconstructActiveFormattingElements(),h.framesetOk=!1,h._switchToTextParsing(g,Bi.RAWTEXT)}function Dl(h,g){h.framesetOk=!1,h._switchToTextParsing(g,Bi.RAWTEXT)}function Pl(h,g){h._switchToTextParsing(g,Bi.RAWTEXT)}function ml(h,g){h._reconstructActiveFormattingElements(),h._insertElement(g,ft.HTML),h.framesetOk=!1,h.insertionMode=h.insertionMode===Ut.IN_TABLE||h.insertionMode===Ut.IN_CAPTION||h.insertionMode===Ut.IN_TABLE_BODY||h.insertionMode===Ut.IN_ROW||h.insertionMode===Ut.IN_CELL?Ut.IN_SELECT_IN_TABLE:Ut.IN_SELECT}function Xu(h,g){h.openElements.currentTagId===D.OPTION&&h.openElements.pop(),h._reconstructActiveFormattingElements(),h._insertElement(g,ft.HTML)}function uu(h,g){h.openElements.hasInScope(D.RUBY)&&h.openElements.generateImpliedEndTags(),h._insertElement(g,ft.HTML)}function Cs(h,g){h.openElements.hasInScope(D.RUBY)&&h.openElements.generateImpliedEndTagsWithExclusion(D.RTC),h._insertElement(g,ft.HTML)}function Nr(h,g){h._reconstructActiveFormattingElements(),Ha(g),ns(g),g.selfClosing?h._appendElement(g,ft.MATHML):h._insertElement(g,ft.MATHML),g.ackSelfClosing=!0}function Da(h,g){h._reconstructActiveFormattingElements(),ya(g),ns(g),g.selfClosing?h._appendElement(g,ft.SVG):h._insertElement(g,ft.SVG),g.ackSelfClosing=!0}function da(h,g){h._reconstructActiveFormattingElements(),h._insertElement(g,ft.HTML)}function go(h,g){switch(g.tagID){case D.I:case D.S:case D.B:case D.U:case D.EM:case D.TT:case D.BIG:case D.CODE:case D.FONT:case D.SMALL:case D.STRIKE:case D.STRONG:{Gl(h,g);break}case D.A:{Es(h,g);break}case D.H1:case D.H2:case D.H3:case D.H4:case D.H5:case D.H6:{hs(h,g);break}case D.P:case D.DL:case D.OL:case D.UL:case D.DIV:case D.DIR:case D.NAV:case D.MAIN:case D.MENU:case D.ASIDE:case D.CENTER:case D.FIGURE:case D.FOOTER:case D.HEADER:case D.HGROUP:case D.DIALOG:case D.DETAILS:case D.ADDRESS:case D.ARTICLE:case D.SEARCH:case D.SECTION:case D.SUMMARY:case D.FIELDSET:case D.BLOCKQUOTE:case D.FIGCAPTION:{bo(h,g);break}case D.LI:case D.DD:case D.DT:{rs(h,g);break}case D.BR:case D.IMG:case D.WBR:case D.AREA:case D.EMBED:case D.KEYGEN:{Yu(h,g);break}case D.HR:{Ye(h,g);break}case D.RB:case D.RTC:{uu(h,g);break}case D.RT:case D.RP:{Cs(h,g);break}case D.PRE:case D.LISTING:{is(h,g);break}case D.XMP:{Zu(h,g);break}case D.SVG:{Da(h,g);break}case D.HTML:{Na(h,g);break}case D.BASE:case D.LINK:case D.META:case D.STYLE:case D.TITLE:case D.SCRIPT:case D.BGSOUND:case D.BASEFONT:case D.TEMPLATE:{qs(h,g);break}case D.BODY:{Rl(h,g);break}case D.FORM:{qr(h,g);break}case D.NOBR:{Za(h,g);break}case D.MATH:{Nr(h,g);break}case D.TABLE:{hc(h,g);break}case D.INPUT:{or(h,g);break}case D.PARAM:case D.TRACK:case D.SOURCE:{Ga(h,g);break}case D.IMAGE:{kn(h,g);break}case D.BUTTON:{ks(h,g);break}case D.APPLET:case D.OBJECT:case D.MARQUEE:{ws(h,g);break}case D.IFRAME:{Dl(h,g);break}case D.SELECT:{ml(h,g);break}case D.OPTION:case D.OPTGROUP:{Xu(h,g);break}case D.NOEMBED:case D.NOFRAMES:{Pl(h,g);break}case D.FRAMESET:{Ur(h,g);break}case D.TEXTAREA:{Cu(h,g);break}case D.NOSCRIPT:{h.options.scriptingEnabled?Pl(h,g):da(h,g);break}case D.PLAINTEXT:{ps(h,g);break}case D.COL:case D.TH:case D.TD:case D.TR:case D.HEAD:case D.FRAME:case D.TBODY:case D.TFOOT:case D.THEAD:case D.CAPTION:case D.COLGROUP:break;default:da(h,g)}}function ro(h,g){if(h.openElements.hasInScope(D.BODY)&&(h.insertionMode=Ut.AFTER_BODY,h.options.sourceCodeLocationInfo)){const K=h.openElements.tryPeekProperlyNestedBodyElement();K&&h._setEndLocation(K,g)}}function _s(h,g){h.openElements.hasInScope(D.BODY)&&(h.insertionMode=Ut.AFTER_BODY,en(h,g))}function Wa(h,g){const K=g.tagID;h.openElements.hasInScope(K)&&(h.openElements.generateImpliedEndTags(),h.openElements.popUntilTagNamePopped(K))}function os(h){const g=h.openElements.tmplCount>0,{formElement:K}=h;g||(h.formElement=null),(K||g)&&h.openElements.hasInScope(D.FORM)&&(h.openElements.generateImpliedEndTags(),g?h.openElements.popUntilTagNamePopped(D.FORM):K&&h.openElements.remove(K))}function Va(h){h.openElements.hasInButtonScope(D.P)||h._insertFakeElement(qe.P,D.P),h._closePElement()}function ta(h){h.openElements.hasInListItemScope(D.LI)&&(h.openElements.generateImpliedEndTagsWithExclusion(D.LI),h.openElements.popUntilTagNamePopped(D.LI))}function cu(h,g){const K=g.tagID;h.openElements.hasInScope(K)&&(h.openElements.generateImpliedEndTagsWithExclusion(K),h.openElements.popUntilTagNamePopped(K))}function Do(h){h.openElements.hasNumberedHeaderInScope()&&(h.openElements.generateImpliedEndTags(),h.openElements.popUntilNumberedHeaderPopped())}function xa(h,g){const K=g.tagID;h.openElements.hasInScope(K)&&(h.openElements.generateImpliedEndTags(),h.openElements.popUntilTagNamePopped(K),h.activeFormattingElements.clearToLastMarker())}function vo(h){h._reconstructActiveFormattingElements(),h._insertFakeElement(qe.BR,D.BR),h.openElements.pop(),h.framesetOk=!1}function Zo(h,g){const K=g.tagName,Je=g.tagID;for(let un=h.openElements.stackTop;un>0;un--){const jn=h.openElements.items[un],bi=h.openElements.tagIDs[un];if(Je===bi&&(Je!==D.UNKNOWN||h.treeAdapter.getTagName(jn)===K)){h.openElements.generateImpliedEndTagsWithExclusion(Je),h.openElements.stackTop>=un&&h.openElements.shortenToLength(un);break}if(h._isSpecialElement(jn,bi))break}}function qo(h,g){switch(g.tagID){case D.A:case D.B:case D.I:case D.S:case D.U:case D.EM:case D.TT:case D.BIG:case D.CODE:case D.FONT:case D.NOBR:case D.SMALL:case D.STRIKE:case D.STRONG:{Oa(h,g);break}case D.P:{Va(h);break}case D.DL:case D.UL:case D.OL:case D.DIR:case D.DIV:case D.NAV:case D.PRE:case D.MAIN:case D.MENU:case D.ASIDE:case D.BUTTON:case D.CENTER:case D.FIGURE:case D.FOOTER:case D.HEADER:case D.HGROUP:case D.DIALOG:case D.ADDRESS:case D.ARTICLE:case D.DETAILS:case D.SEARCH:case D.SECTION:case D.SUMMARY:case D.LISTING:case D.FIELDSET:case D.BLOCKQUOTE:case D.FIGCAPTION:{Wa(h,g);break}case D.LI:{ta(h);break}case D.DD:case D.DT:{cu(h,g);break}case D.H1:case D.H2:case D.H3:case D.H4:case D.H5:case D.H6:{Do(h);break}case D.BR:{vo(h);break}case D.BODY:{ro(h,g);break}case D.HTML:{_s(h,g);break}case D.FORM:{os(h);break}case D.APPLET:case D.OBJECT:case D.MARQUEE:{xa(h,g);break}case D.TEMPLATE:{Vs(h,g);break}default:Zo(h,g)}}function bs(h,g){h.tmplInsertionModeStack.length>0?fe(h,g):Qo(h,g)}function Po(h,g){var K;g.tagID===D.SCRIPT&&((K=h.scriptHandler)===null||K===void 0||K.call(h,h.openElements.current)),h.openElements.pop(),h.insertionMode=h.originalInsertionMode}function hu(h,g){h._err(g,rn.eofInElementThatCanContainOnlyText),h.openElements.pop(),h.insertionMode=h.originalInsertionMode,h.onEof(g)}function wr(h,g){if(Co.has(h.openElements.currentTagId))switch(h.pendingCharacterTokens.length=0,h.hasNonWhitespacePendingCharacterToken=!1,h.originalInsertionMode=h.insertionMode,h.insertionMode=Ut.IN_TABLE_TEXT,g.type){case Zn.CHARACTER:{eu(h,g);break}case Zn.WHITESPACE_CHARACTER:{dc(h,g);break}}else Pa(h,g)}function sl(h,g){h.openElements.clearBackToTableContext(),h.activeFormattingElements.insertMarker(),h._insertElement(g,ft.HTML),h.insertionMode=Ut.IN_CAPTION}function xo(h,g){h.openElements.clearBackToTableContext(),h._insertElement(g,ft.HTML),h.insertionMode=Ut.IN_COLUMN_GROUP}function Qu(h,g){h.openElements.clearBackToTableContext(),h._insertFakeElement(qe.COLGROUP,D.COLGROUP),h.insertionMode=Ut.IN_COLUMN_GROUP,Ka(h,g)}function Ju(h,g){h.openElements.clearBackToTableContext(),h._insertElement(g,ft.HTML),h.insertionMode=Ut.IN_TABLE_BODY}function qu(h,g){h.openElements.clearBackToTableContext(),h._insertFakeElement(qe.TBODY,D.TBODY),h.insertionMode=Ut.IN_TABLE_BODY,Tu(h,g)}function wc(h,g){h.openElements.hasInTableScope(D.TABLE)&&(h.openElements.popUntilTagNamePopped(D.TABLE),h._resetInsertionMode(),h._processStartTag(g))}function _u(h,g){lu(g)?h._appendElement(g,ft.HTML):Pa(h,g),g.ackSelfClosing=!0}function Xa(h,g){!h.formElement&&h.openElements.tmplCount===0&&(h._insertElement(g,ft.HTML),h.formElement=h.openElements.current,h.openElements.pop())}function Qa(h,g){switch(g.tagID){case D.TD:case D.TH:case D.TR:{qu(h,g);break}case D.STYLE:case D.SCRIPT:case D.TEMPLATE:{qs(h,g);break}case D.COL:{Qu(h,g);break}case D.FORM:{Xa(h,g);break}case D.TABLE:{wc(h,g);break}case D.TBODY:case D.TFOOT:case D.THEAD:{Ju(h,g);break}case D.INPUT:{_u(h,g);break}case D.CAPTION:{sl(h,g);break}case D.COLGROUP:{xo(h,g);break}default:Pa(h,g)}}function To(h,g){switch(g.tagID){case D.TABLE:{h.openElements.hasInTableScope(D.TABLE)&&(h.openElements.popUntilTagNamePopped(D.TABLE),h._resetInsertionMode());break}case D.TEMPLATE:{Vs(h,g);break}case D.BODY:case D.CAPTION:case D.COL:case D.COLGROUP:case D.HTML:case D.TBODY:case D.TD:case D.TFOOT:case D.TH:case D.THEAD:case D.TR:break;default:Pa(h,g)}}function Pa(h,g){const K=h.fosterParentingEnabled;h.fosterParentingEnabled=!0,Ls(h,g),h.fosterParentingEnabled=K}function dc(h,g){h.pendingCharacterTokens.push(g)}function eu(h,g){h.pendingCharacterTokens.push(g),h.hasNonWhitespacePendingCharacterToken=!0}function gl(h,g){let K=0;if(h.hasNonWhitespacePendingCharacterToken)for(;K<h.pendingCharacterTokens.length;K++)Pa(h,h.pendingCharacterTokens[K]);else for(;K<h.pendingCharacterTokens.length;K++)h._insertCharacters(h.pendingCharacterTokens[K]);h.insertionMode=h.originalInsertionMode,h._processToken(g)}const vl=new Set([D.CAPTION,D.COL,D.COLGROUP,D.TBODY,D.TD,D.TFOOT,D.TH,D.THEAD,D.TR]);function Ja(h,g){const K=g.tagID;vl.has(K)?h.openElements.hasInTableScope(D.CAPTION)&&(h.openElements.generateImpliedEndTags(),h.openElements.popUntilTagNamePopped(D.CAPTION),h.activeFormattingElements.clearToLastMarker(),h.insertionMode=Ut.IN_TABLE,Qa(h,g)):go(h,g)}function Wl(h,g){const K=g.tagID;switch(K){case D.CAPTION:case D.TABLE:{h.openElements.hasInTableScope(D.CAPTION)&&(h.openElements.generateImpliedEndTags(),h.openElements.popUntilTagNamePopped(D.CAPTION),h.activeFormattingElements.clearToLastMarker(),h.insertionMode=Ut.IN_TABLE,K===D.TABLE&&To(h,g));break}case D.BODY:case D.COL:case D.COLGROUP:case D.HTML:case D.TBODY:case D.TD:case D.TFOOT:case D.TH:case D.THEAD:case D.TR:break;default:qo(h,g)}}function Ka(h,g){switch(g.tagID){case D.HTML:{go(h,g);break}case D.COL:{h._appendElement(g,ft.HTML),g.ackSelfClosing=!0;break}case D.TEMPLATE:{qs(h,g);break}default:fu(h,g)}}function du(h,g){switch(g.tagID){case D.COLGROUP:{h.openElements.currentTagId===D.COLGROUP&&(h.openElements.pop(),h.insertionMode=Ut.IN_TABLE);break}case D.TEMPLATE:{Vs(h,g);break}case D.COL:break;default:fu(h,g)}}function fu(h,g){h.openElements.currentTagId===D.COLGROUP&&(h.openElements.pop(),h.insertionMode=Ut.IN_TABLE,h._processToken(g))}function Tu(h,g){switch(g.tagID){case D.TR:{h.openElements.clearBackToTableBodyContext(),h._insertElement(g,ft.HTML),h.insertionMode=Ut.IN_ROW;break}case D.TH:case D.TD:{h.openElements.clearBackToTableBodyContext(),h._insertFakeElement(qe.TR,D.TR),h.insertionMode=Ut.IN_ROW,al(h,g);break}case D.CAPTION:case D.COL:case D.COLGROUP:case D.TBODY:case D.TFOOT:case D.THEAD:{h.openElements.hasTableBodyContextInTableScope()&&(h.openElements.clearBackToTableBodyContext(),h.openElements.pop(),h.insertionMode=Ut.IN_TABLE,Qa(h,g));break}default:Qa(h,g)}}function Nu(h,g){const K=g.tagID;switch(g.tagID){case D.TBODY:case D.TFOOT:case D.THEAD:{h.openElements.hasInTableScope(K)&&(h.openElements.clearBackToTableBodyContext(),h.openElements.pop(),h.insertionMode=Ut.IN_TABLE);break}case D.TABLE:{h.openElements.hasTableBodyContextInTableScope()&&(h.openElements.clearBackToTableBodyContext(),h.openElements.pop(),h.insertionMode=Ut.IN_TABLE,To(h,g));break}case D.BODY:case D.CAPTION:case D.COL:case D.COLGROUP:case D.HTML:case D.TD:case D.TH:case D.TR:break;default:To(h,g)}}function al(h,g){switch(g.tagID){case D.TH:case D.TD:{h.openElements.clearBackToTableRowContext(),h._insertElement(g,ft.HTML),h.insertionMode=Ut.IN_CELL,h.activeFormattingElements.insertMarker();break}case D.CAPTION:case D.COL:case D.COLGROUP:case D.TBODY:case D.TFOOT:case D.THEAD:case D.TR:{h.openElements.hasInTableScope(D.TR)&&(h.openElements.clearBackToTableRowContext(),h.openElements.pop(),h.insertionMode=Ut.IN_TABLE_BODY,Tu(h,g));break}default:Qa(h,g)}}function fa(h,g){switch(g.tagID){case D.TR:{h.openElements.hasInTableScope(D.TR)&&(h.openElements.clearBackToTableRowContext(),h.openElements.pop(),h.insertionMode=Ut.IN_TABLE_BODY);break}case D.TABLE:{h.openElements.hasInTableScope(D.TR)&&(h.openElements.clearBackToTableRowContext(),h.openElements.pop(),h.insertionMode=Ut.IN_TABLE_BODY,Nu(h,g));break}case D.TBODY:case D.TFOOT:case D.THEAD:{(h.openElements.hasInTableScope(g.tagID)||h.openElements.hasInTableScope(D.TR))&&(h.openElements.clearBackToTableRowContext(),h.openElements.pop(),h.insertionMode=Ut.IN_TABLE_BODY,Nu(h,g));break}case D.BODY:case D.CAPTION:case D.COL:case D.COLGROUP:case D.HTML:case D.TD:case D.TH:break;default:To(h,g)}}function Vl(h,g){const K=g.tagID;vl.has(K)?(h.openElements.hasInTableScope(D.TD)||h.openElements.hasInTableScope(D.TH))&&(h._closeTableCell(),al(h,g)):go(h,g)}function zu(h,g){const K=g.tagID;switch(K){case D.TD:case D.TH:{h.openElements.hasInTableScope(K)&&(h.openElements.generateImpliedEndTags(),h.openElements.popUntilTagNamePopped(K),h.activeFormattingElements.clearToLastMarker(),h.insertionMode=Ut.IN_ROW);break}case D.TABLE:case D.TBODY:case D.TFOOT:case D.THEAD:case D.TR:{h.openElements.hasInTableScope(K)&&(h._closeTableCell(),fa(h,g));break}case D.BODY:case D.CAPTION:case D.COL:case D.COLGROUP:case D.HTML:break;default:qo(h,g)}}function Se(h,g){switch(g.tagID){case D.HTML:{go(h,g);break}case D.OPTION:{h.openElements.currentTagId===D.OPTION&&h.openElements.pop(),h._insertElement(g,ft.HTML);break}case D.OPTGROUP:{h.openElements.currentTagId===D.OPTION&&h.openElements.pop(),h.openElements.currentTagId===D.OPTGROUP&&h.openElements.pop(),h._insertElement(g,ft.HTML);break}case D.HR:{h.openElements.currentTagId===D.OPTION&&h.openElements.pop(),h.openElements.currentTagId===D.OPTGROUP&&h.openElements.pop(),h._appendElement(g,ft.HTML),g.ackSelfClosing=!0;break}case D.INPUT:case D.KEYGEN:case D.TEXTAREA:case D.SELECT:{h.openElements.hasInSelectScope(D.SELECT)&&(h.openElements.popUntilTagNamePopped(D.SELECT),h._resetInsertionMode(),g.tagID!==D.SELECT&&h._processStartTag(g));break}case D.SCRIPT:case D.TEMPLATE:{qs(h,g);break}default:}}function Ae(h,g){switch(g.tagID){case D.OPTGROUP:{h.openElements.stackTop>0&&h.openElements.currentTagId===D.OPTION&&h.openElements.tagIDs[h.openElements.stackTop-1]===D.OPTGROUP&&h.openElements.pop(),h.openElements.currentTagId===D.OPTGROUP&&h.openElements.pop();break}case D.OPTION:{h.openElements.currentTagId===D.OPTION&&h.openElements.pop();break}case D.SELECT:{h.openElements.hasInSelectScope(D.SELECT)&&(h.openElements.popUntilTagNamePopped(D.SELECT),h._resetInsertionMode());break}case D.TEMPLATE:{Vs(h,g);break}default:}}function ut(h,g){const K=g.tagID;K===D.CAPTION||K===D.TABLE||K===D.TBODY||K===D.TFOOT||K===D.THEAD||K===D.TR||K===D.TD||K===D.TH?(h.openElements.popUntilTagNamePopped(D.SELECT),h._resetInsertionMode(),h._processStartTag(g)):Se(h,g)}function vt(h,g){const K=g.tagID;K===D.CAPTION||K===D.TABLE||K===D.TBODY||K===D.TFOOT||K===D.THEAD||K===D.TR||K===D.TD||K===D.TH?h.openElements.hasInTableScope(K)&&(h.openElements.popUntilTagNamePopped(D.SELECT),h._resetInsertionMode(),h.onEndTag(g)):Ae(h,g)}function Lt(h,g){switch(g.tagID){case D.BASE:case D.BASEFONT:case D.BGSOUND:case D.LINK:case D.META:case D.NOFRAMES:case D.SCRIPT:case D.STYLE:case D.TEMPLATE:case D.TITLE:{qs(h,g);break}case D.CAPTION:case D.COLGROUP:case D.TBODY:case D.TFOOT:case D.THEAD:{h.tmplInsertionModeStack[0]=Ut.IN_TABLE,h.insertionMode=Ut.IN_TABLE,Qa(h,g);break}case D.COL:{h.tmplInsertionModeStack[0]=Ut.IN_COLUMN_GROUP,h.insertionMode=Ut.IN_COLUMN_GROUP,Ka(h,g);break}case D.TR:{h.tmplInsertionModeStack[0]=Ut.IN_TABLE_BODY,h.insertionMode=Ut.IN_TABLE_BODY,Tu(h,g);break}case D.TD:case D.TH:{h.tmplInsertionModeStack[0]=Ut.IN_ROW,h.insertionMode=Ut.IN_ROW,al(h,g);break}default:h.tmplInsertionModeStack[0]=Ut.IN_BODY,h.insertionMode=Ut.IN_BODY,go(h,g)}}function Nt(h,g){g.tagID===D.TEMPLATE&&Vs(h,g)}function fe(h,g){h.openElements.tmplCount>0?(h.openElements.popUntilTagNamePopped(D.TEMPLATE),h.activeFormattingElements.clearToLastMarker(),h.tmplInsertionModeStack.shift(),h._resetInsertionMode(),h.onEof(g)):Qo(h,g)}function cn(h,g){g.tagID===D.HTML?go(h,g):Dn(h,g)}function en(h,g){var K;if(g.tagID===D.HTML){if(h.fragmentContext||(h.insertionMode=Ut.AFTER_AFTER_BODY),h.options.sourceCodeLocationInfo&&h.openElements.tagIDs[0]===D.HTML){h._setEndLocation(h.openElements.items[0],g);const Je=h.openElements.items[1];Je&&!(!((K=h.treeAdapter.getNodeSourceCodeLocation(Je))===null||K===void 0)&&K.endTag)&&h._setEndLocation(Je,g)}}else Dn(h,g)}function Dn(h,g){h.insertionMode=Ut.IN_BODY,Ls(h,g)}function Bn(h,g){switch(g.tagID){case D.HTML:{go(h,g);break}case D.FRAMESET:{h._insertElement(g,ft.HTML);break}case D.FRAME:{h._appendElement(g,ft.HTML),g.ackSelfClosing=!0;break}case D.NOFRAMES:{qs(h,g);break}default:}}function zn(h,g){g.tagID===D.FRAMESET&&!h.openElements.isRootHtmlElementCurrent()&&(h.openElements.pop(),!h.fragmentContext&&h.openElements.currentTagId!==D.FRAMESET&&(h.insertionMode=Ut.AFTER_FRAMESET))}function fi(h,g){switch(g.tagID){case D.HTML:{go(h,g);break}case D.NOFRAMES:{qs(h,g);break}default:}}function gi(h,g){g.tagID===D.HTML&&(h.insertionMode=Ut.AFTER_AFTER_FRAMESET)}function Jn(h,g){g.tagID===D.HTML?go(h,g):Fi(h,g)}function Fi(h,g){h.insertionMode=Ut.IN_BODY,Ls(h,g)}function ai(h,g){switch(g.tagID){case D.HTML:{go(h,g);break}case D.NOFRAMES:{qs(h,g);break}default:}}function zi(h,g){g.chars=qt,h._insertCharacters(g)}function E(h,g){h._insertCharacters(g),h.framesetOk=!1}function F(h){for(;h.treeAdapter.getNamespaceURI(h.openElements.current)!==ft.HTML&&!h._isIntegrationPoint(h.openElements.currentTagId,h.openElements.current);)h.openElements.pop()}function G(h,g){if(ra(g))F(h),h._startTagOutsideForeignContent(g);else{const K=h._getAdjustedCurrentElement(),Je=h.treeAdapter.getNamespaceURI(K);Je===ft.MATHML?Ha(g):Je===ft.SVG&&(Ht(g),ya(g)),ns(g),g.selfClosing?h._appendElement(g,Je):h._insertElement(g,Je),g.ackSelfClosing=!0}}function q(h,g){if(g.tagID===D.P||g.tagID===D.BR){F(h),h._endTagOutsideForeignContent(g);return}for(let K=h.openElements.stackTop;K>0;K--){const Je=h.openElements.items[K];if(h.treeAdapter.getNamespaceURI(Je)===ft.HTML){h._endTagOutsideForeignContent(g);break}const un=h.treeAdapter.getTagName(Je);if(un.toLowerCase()===g.tagName){g.tagName=un,h.openElements.shortenToLength(K);break}}}const he=/["&'<>$\x80-\uFFFF]/g,Ee=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),$e=String.prototype.codePointAt!=null?(h,g)=>h.codePointAt(g):(h,g)=>(h.charCodeAt(g)&64512)===55296?(h.charCodeAt(g)-55296)*1024+h.charCodeAt(g+1)-56320+65536:h.charCodeAt(g);function et(h){let g="",K=0,Je;for(;(Je=he.exec(h))!==null;){const un=Je.index,jn=h.charCodeAt(un),bi=Ee.get(jn);bi!==void 0?(g+=h.substring(K,un)+bi,K=un+1):(g+=`${h.substring(K,un)}&#x${$e(h,un).toString(16)};`,K=he.lastIndex+=+((jn&64512)===55296))}return g+h.substr(K)}const Ft=null;function At(h,g){return function(Je){let un,jn=0,bi="";for(;un=h.exec(Je);)jn!==un.index&&(bi+=Je.substring(jn,un.index)),bi+=g.get(un[0].charCodeAt(0)),jn=un.index+1;return bi+Je.substring(jn)}}const ct=At(/[&<>'"]/g,Ee),$t=At(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),Vt=At(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),Rt=new Set([qe.AREA,qe.BASE,qe.BASEFONT,qe.BGSOUND,qe.BR,qe.COL,qe.EMBED,qe.FRAME,qe.HR,qe.IMG,qe.INPUT,qe.KEYGEN,qe.LINK,qe.META,qe.PARAM,qe.SOURCE,qe.TRACK,qe.WBR]);function yi(h,g){return g.treeAdapter.isElementNode(h)&&g.treeAdapter.getNamespaceURI(h)===NS.HTML&&Rt.has(g.treeAdapter.getTagName(h))}const si={treeAdapter:eo,scriptingEnabled:!0};function sr(h,g){const K=Bo(Bo({},si),g);return yi(h,K)?"":Cr(h,K)}function Si(h,g){const K=Bo(Bo({},si),g);return ji(h,K)}function Cr(h,g){let K="";const Je=g.treeAdapter.isElementNode(h)&&g.treeAdapter.getTagName(h)===$.TEMPLATE&&g.treeAdapter.getNamespaceURI(h)===NS.HTML?g.treeAdapter.getTemplateContent(h):h,un=g.treeAdapter.getChildNodes(Je);if(un)for(const jn of un)K+=ji(jn,g);return K}function ji(h,g){return g.treeAdapter.isElementNode(h)?to(h,g):g.treeAdapter.isTextNode(h)?ei(h,g):g.treeAdapter.isCommentNode(h)?Zi(h,g):g.treeAdapter.isDocumentTypeNode(h)?Kr(h,g):""}function to(h,g){const K=g.treeAdapter.getTagName(h);return`<${K}${oo(h,g)}>${yi(h,g)?"":`${Cr(h,g)}</${K}>`}`}function oo(h,{treeAdapter:g}){let K="";for(const Je of g.getAttrList(h)){if(K+=" ",Je.namespace)switch(Je.namespace){case NS.XML:{K+=`xml:${Je.name}`;break}case NS.XMLNS:{Je.name!=="xmlns"&&(K+="xmlns:"),K+=Je.name;break}case NS.XLINK:{K+=`xlink:${Je.name}`;break}default:K+=`${Je.prefix}:${Je.name}`}else K+=Je.name;K+=`="${escapeAttribute(Je.value)}"`}return K}function ei(h,g){const{treeAdapter:K}=g,Je=K.getTextNodeContent(h),un=K.getParentNode(h),jn=un&&K.isElementNode(un)&&K.getTagName(un);return jn&&K.getNamespaceURI(un)===NS.HTML&&hasUnescapedText(jn,g.scriptingEnabled)?Je:escapeText(Je)}function Zi(h,{treeAdapter:g}){return`<!--${g.getCommentNodeContent(h)}-->`}function Kr(h,{treeAdapter:g}){return`<!DOCTYPE ${g.getDocumentTypeNodeName(h)}>`}function Zr(h,g){return Parser.parse(h,g)}function Qr(h,g,K){typeof h=="string"&&(K=g,g=h,h=null);const Je=Parser.getFragmentParser(h,K);return Je.tokenizer.write(g,!0),Je.getFragment()}var No=d(17970),tr=d(10528);const Ai=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Gi=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Mi={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function jr(h,g){const K=So(h),Je=Re("type",{handlers:{root:Lr,element:so,text:Qt,comment:vn,doctype:ms,raw:co},unknown:Ds}),un={parser:K?new Er(Mi):Er.getFragmentParser(void 0,Mi),handle(gr){Je(gr,un)},stitches:!1,options:g||{}};Je(h,un),ss(un,(0,No.Pk)());const jn=K?un.parser.document:un.parser.getFragment(),bi=ke(jn,{file:un.options.file});return un.stitches&&(0,tr.Vn)(bi,"comment",function(gr,Dr,Gr){const Is=gr;if(Is.value.stitch&&Gr&&Dr!==void 0){const vs=Gr.children;return vs[Dr]=Is.value.stitch,Dr}}),bi.type==="root"&&bi.children.length===1&&bi.children[0].type===h.type?bi.children[0]:bi}function Wi(h,g){let K=-1;if(h)for(;++K<h.length;)g.handle(h[K])}function Lr(h,g){Wi(h.children,g)}function so(h,g){zs(h,g),Wi(h.children,g),Oo(h,g)}function Qt(h,g){g.parser.tokenizer.state>4&&(g.parser.tokenizer.state=0);const K={type:Zn.CHARACTER,chars:h.value,location:Ao(h)};ss(g,(0,No.Pk)(h)),g.parser.currentToken=K,g.parser._processToken(g.parser.currentToken)}function ms(h,g){const K={type:Zn.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Ao(h)};ss(g,(0,No.Pk)(h)),g.parser.currentToken=K,g.parser._processToken(g.parser.currentToken)}function gs(h,g){g.stitches=!0;const K=es(h);if("children"in h&&"children"in K){const Je=jr({type:"root",children:h.children},g.options);K.children=Je.children}vn({type:"comment",value:{stitch:K}},g)}function vn(h,g){const K=h.value,Je={type:Zn.COMMENT,data:K,location:Ao(h)};ss(g,(0,No.Pk)(h)),g.parser.currentToken=Je,g.parser._processToken(g.parser.currentToken)}function co(h,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,Ps(g,(0,No.Pk)(h)),g.parser.tokenizer.write(g.options.tagfilter?h.value.replace(Ai,"<$1$2"):h.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 Ds(h,g){const K=h;if(g.options.passThrough&&g.options.passThrough.includes(K.type))gs(K,g);else{let Je="";throw Gi.has(K.type)&&(Je=". 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"+Je)}}function ss(h,g){Ps(h,g);const K=h.parser.tokenizer.currentCharacterToken;K&&K.location&&(K.location.endLine=h.parser.tokenizer.preprocessor.line,K.location.endCol=h.parser.tokenizer.preprocessor.col+1,K.location.endOffset=h.parser.tokenizer.preprocessor.offset+1,h.parser.currentToken=K,h.parser._processToken(h.parser.currentToken)),h.parser.tokenizer.paused=!1,h.parser.tokenizer.inLoop=!1,h.parser.tokenizer.active=!1,h.parser.tokenizer.returnState=Bi.DATA,h.parser.tokenizer.charRefCode=-1,h.parser.tokenizer.consumedAfterSnapshot=-1,h.parser.tokenizer.currentLocation=null,h.parser.tokenizer.currentCharacterToken=null,h.parser.tokenizer.currentToken=null,h.parser.tokenizer.currentAttr={name:"",value:""}}function Ps(h,g){if(g&&g.offset!==void 0){const K={startLine:g.line,startCol:g.column,startOffset:g.offset,endLine:-1,endCol:-1,endOffset:-1};h.parser.tokenizer.preprocessor.lineStartPos=-g.column+1,h.parser.tokenizer.preprocessor.droppedBufferSize=g.offset,h.parser.tokenizer.preprocessor.line=g.line,h.parser.tokenizer.currentLocation=K}}function zs(h,g){const K=h.tagName.toLowerCase();if(g.parser.tokenizer.state===Bi.PLAINTEXT)return;ss(g,(0,No.Pk)(h));const Je=g.parser.openElements.current;let un="namespaceURI"in Je?Je.namespaceURI:ue.t.html;un===ue.t.html&&K==="svg"&&(un=ue.t.svg);const jn=mt(cd(Bo({},h),{children:[]}),{space:un===ue.t.svg?"svg":"html"}),bi={type:Zn.START_TAG,tagName:K,tagID:dn(K),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in jn?jn.attrs:[],location:Ao(h)};g.parser.currentToken=bi,g.parser._processToken(g.parser.currentToken),g.parser.tokenizer.lastStartTagName=K}function Oo(h,g){const K=h.tagName.toLowerCase();if(!g.parser.tokenizer.inForeignNode&&Pt.includes(K)||g.parser.tokenizer.state===Bi.PLAINTEXT)return;ss(g,(0,No.rb)(h));const Je={type:Zn.END_TAG,tagName:K,tagID:dn(K),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Ao(h)};g.parser.currentToken=Je,g.parser._processToken(g.parser.currentToken),K===g.parser.tokenizer.lastStartTagName&&(g.parser.tokenizer.state===Bi.RCDATA||g.parser.tokenizer.state===Bi.RAWTEXT||g.parser.tokenizer.state===Bi.SCRIPT_DATA)&&(g.parser.tokenizer.state=Bi.DATA)}function So(h){const g=h.type==="root"?h.children[0]:h;return!!(g&&(g.type==="doctype"||g.type==="element"&&g.tagName.toLowerCase()==="html"))}function Ao(h){const g=(0,No.Pk)(h)||{line:void 0,column:void 0,offset:void 0},K=(0,No.rb)(h)||{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 es(h){return"children"in h?(0,I.ZP)(cd(Bo({},h),{children:[]})):(0,I.ZP)(h)}function Us(h){return function(g,K){return jr(g,cd(Bo({},h),{file:K}))}}},30084:function(Q,C,d){"use strict";d.d(C,{Z:function(){return De}});var b=d(87342);function I(Fe,de){const me=String(Fe);let we=me.indexOf(de),ge=we,Te=0,ee=0;if(typeof de!="string")throw new TypeError("Expected substring");for(;we!==-1;)we===ge?++Te>ee&&(ee=Te):Te=1,ge=we+de.length,we=me.indexOf(de,ge);return ee}function O(){return{enter:{mathFlow:Fe,mathFlowFenceMeta:de,mathText:Te},exit:{mathFlow:ge,mathFlowFence:we,mathFlowFenceMeta:me,mathFlowValue:Ce,mathText:ee,mathTextData:Ce}};function Fe(Ne){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]}},Ne)}function de(){this.buffer()}function me(){const Ne=this.resume(),Le=this.stack[this.stack.length-1];(0,b.ok)(Le.type==="math"),Le.meta=Ne}function we(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function ge(Ne){const Le=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),Ke=this.stack[this.stack.length-1];(0,b.ok)(Ke.type==="math"),this.exit(Ne),Ke.value=Le;const nt=Ke.data.hChildren[0];(0,b.ok)(nt.type==="element"),(0,b.ok)(nt.tagName==="code"),nt.children.push({type:"text",value:Le}),this.data.mathFlowInside=void 0}function Te(Ne){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},Ne),this.buffer()}function ee(Ne){const Le=this.resume(),Ke=this.stack[this.stack.length-1];(0,b.ok)(Ke.type==="inlineMath"),this.exit(Ne),Ke.value=Le,Ke.data.hChildren.push({type:"text",value:Le})}function Ce(Ne){this.config.enter.data.call(this,Ne),this.config.exit.data.call(this,Ne)}}function z(Fe){let de=(Fe||{}).singleDollarTextMath;return de==null&&(de=!0),we.peek=ge,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
|
|
|
`,inConstruct:"mathFlowMeta"},{character:"$",after:de?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:me,inlineMath:we}};function me(Te,ee,Ce,Ne){const Le=Te.value||"",Ke=Ce.createTracker(Ne),nt="$".repeat(Math.max(I(Le,"$")+1,2)),ie=Ce.enter("mathFlow");let at=Ke.move(nt);if(Te.meta){const Ze=Ce.enter("mathFlowMeta");at+=Ke.move(Ce.safe(Te.meta,Bo({after:`
|
|
|
`,before:at,encode:["$"]},Ke.current()))),Ze()}return at+=Ke.move(`
|
|
|
`),Le&&(at+=Ke.move(Le+`
|
|
|
`)),at+=Ke.move(nt),ie(),at}function we(Te,ee,Ce){let Ne=Te.value||"",Le=1;for(de||Le++;new RegExp("(^|[^$])"+"\\$".repeat(Le)+"([^$]|$)").test(Ne);)Le++;const Ke="$".repeat(Le);/[^ \r\n]/.test(Ne)&&(/^[ \r\n]/.test(Ne)&&/[ \r\n]$/.test(Ne)||/^\$|\$$/.test(Ne))&&(Ne=" "+Ne+" ");let nt=-1;for(;++nt<Ce.unsafe.length;){const ie=Ce.unsafe[nt];if(!ie.atBreak)continue;const at=Ce.compilePattern(ie);let Ze;for(;Ze=at.exec(Ne);){let Bt=Ze.index;Ne.codePointAt(Bt)===10&&Ne.codePointAt(Bt-1)===13&&Bt--,Ne=Ne.slice(0,Bt)+" "+Ne.slice(Ze.index+1)}}return Ke+Ne+Ke}function ge(){return"$"}}var W=d(26735),_=d(80722);const M={tokenize:ue,concrete:!0,name:"mathFlow"},pe={tokenize:ne,partial:!0};function ue(Fe,de,me){const we=this,ge=we.events[we.events.length-1],Te=ge&&ge[1].type==="linePrefix"?ge[2].sliceSerialize(ge[1],!0).length:0;let ee=0;return Ce;function Ce(Tt){return Fe.enter("mathFlow"),Fe.enter("mathFlowFence"),Fe.enter("mathFlowFenceSequence"),Ne(Tt)}function Ne(Tt){return Tt===36?(Fe.consume(Tt),ee++,Ne):ee<2?me(Tt):(Fe.exit("mathFlowFenceSequence"),(0,W.f)(Fe,Le,"whitespace")(Tt))}function Le(Tt){return Tt===null||(0,_.Ch)(Tt)?nt(Tt):(Fe.enter("mathFlowFenceMeta"),Fe.enter("chunkString",{contentType:"string"}),Ke(Tt))}function Ke(Tt){return Tt===null||(0,_.Ch)(Tt)?(Fe.exit("chunkString"),Fe.exit("mathFlowFenceMeta"),nt(Tt)):Tt===36?me(Tt):(Fe.consume(Tt),Ke)}function nt(Tt){return Fe.exit("mathFlowFence"),we.interrupt?de(Tt):Fe.attempt(pe,ie,bt)(Tt)}function ie(Tt){return Fe.attempt({tokenize:kt,partial:!0},bt,at)(Tt)}function at(Tt){return(Te?(0,W.f)(Fe,Ze,"linePrefix",Te+1):Ze)(Tt)}function Ze(Tt){return Tt===null?bt(Tt):(0,_.Ch)(Tt)?Fe.attempt(pe,ie,bt)(Tt):(Fe.enter("mathFlowValue"),Bt(Tt))}function Bt(Tt){return Tt===null||(0,_.Ch)(Tt)?(Fe.exit("mathFlowValue"),Ze(Tt)):(Fe.consume(Tt),Bt)}function bt(Tt){return Fe.exit("mathFlow"),de(Tt)}function kt(Tt,wn,Xe){let se=0;return(0,W.f)(Tt,le,"linePrefix",we.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function le(yt){return Tt.enter("mathFlowFence"),Tt.enter("mathFlowFenceSequence"),_t(yt)}function _t(yt){return yt===36?(se++,Tt.consume(yt),_t):se<ee?Xe(yt):(Tt.exit("mathFlowFenceSequence"),(0,W.f)(Tt,jt,"whitespace")(yt))}function jt(yt){return yt===null||(0,_.Ch)(yt)?(Tt.exit("mathFlowFence"),wn(yt)):Xe(yt)}}}function ne(Fe,de,me){const we=this;return ge;function ge(ee){return ee===null?de(ee):(Fe.enter("lineEnding"),Fe.consume(ee),Fe.exit("lineEnding"),Te)}function Te(ee){return we.parser.lazy[we.now().line]?me(ee):de(ee)}}function Pe(Fe){let me=(Fe||{}).singleDollarTextMath;return me==null&&(me=!0),{tokenize:we,resolve:ke,previous:rt,name:"mathText"};function we(ge,Te,ee){const Ce=this;let Ne=0,Le,Ke;return nt;function nt(bt){return ge.enter("mathText"),ge.enter("mathTextSequence"),ie(bt)}function ie(bt){return bt===36?(ge.consume(bt),Ne++,ie):Ne<2&&!me?ee(bt):(ge.exit("mathTextSequence"),at(bt))}function at(bt){return bt===null?ee(bt):bt===36?(Ke=ge.enter("mathTextSequence"),Le=0,Bt(bt)):bt===32?(ge.enter("space"),ge.consume(bt),ge.exit("space"),at):(0,_.Ch)(bt)?(ge.enter("lineEnding"),ge.consume(bt),ge.exit("lineEnding"),at):(ge.enter("mathTextData"),Ze(bt))}function Ze(bt){return bt===null||bt===32||bt===36||(0,_.Ch)(bt)?(ge.exit("mathTextData"),at(bt)):(ge.consume(bt),Ze)}function Bt(bt){return bt===36?(ge.consume(bt),Le++,Bt):Le===Ne?(ge.exit("mathTextSequence"),ge.exit("mathText"),Te(bt)):(Ke.type="mathTextData",Ze(bt))}}}function ke(Fe){let de=Fe.length-4,me=3,we,ge;if((Fe[me][1].type==="lineEnding"||Fe[me][1].type==="space")&&(Fe[de][1].type==="lineEnding"||Fe[de][1].type==="space")){for(we=me;++we<de;)if(Fe[we][1].type==="mathTextData"){Fe[de][1].type="mathTextPadding",Fe[me][1].type="mathTextPadding",me+=2,de-=2;break}}for(we=me-1,de++;++we<=de;)ge===void 0?we!==de&&Fe[we][1].type!=="lineEnding"&&(ge=we):(we===de||Fe[we][1].type==="lineEnding")&&(Fe[ge][1].type="mathTextData",we!==ge+2&&(Fe[ge][1].end=Fe[we-1][1].end,Fe.splice(ge+2,we-ge-2),de-=we-ge-2,we=ge+2),ge=void 0);return Fe}function rt(Fe){return Fe!==36||this.events[this.events.length-1][1].type==="characterEscape"}function Ue(Fe){return{flow:{36:M},text:{36:Pe(Fe)}}}const Ie={};function De(Fe){const de=this,me=Fe||Ie,we=de.data(),ge=we.micromarkExtensions||(we.micromarkExtensions=[]),Te=we.fromMarkdownExtensions||(we.fromMarkdownExtensions=[]),ee=we.toMarkdownExtensions||(we.toMarkdownExtensions=[]);ge.push(Ue(me)),Te.push(O()),ee.push(z(me))}},16722:function(Q,C,d){"use strict";d.d(C,{Z:function(){return pe}});const b=ue=>typeof ue=="object"&&ue!=null&&ue.nodeType===1,I=(ue,ne)=>(!ne||ue!=="hidden")&&ue!=="visible"&&ue!=="clip",O=(ue,ne)=>{if(ue.clientHeight<ue.scrollHeight||ue.clientWidth<ue.scrollWidth){const Pe=getComputedStyle(ue,null);return I(Pe.overflowY,ne)||I(Pe.overflowX,ne)||(ke=>{const rt=(Ue=>{if(!Ue.ownerDocument||!Ue.ownerDocument.defaultView)return null;try{return Ue.ownerDocument.defaultView.frameElement}catch(Ie){return null}})(ke);return!!rt&&(rt.clientHeight<ke.scrollHeight||rt.clientWidth<ke.scrollWidth)})(ue)}return!1},z=(ue,ne,Pe,ke,rt,Ue,Ie,De)=>Ue<ue&&Ie>ne||Ue>ue&&Ie<ne?0:Ue<=ue&&De<=Pe||Ie>=ne&&De>=Pe?Ue-ue-ke:Ie>ne&&De<Pe||Ue<ue&&De>Pe?Ie-ne+rt:0,W=ue=>{const ne=ue.parentElement;return ne==null?ue.getRootNode().host||null:ne},_=(ue,ne)=>{var Pe,ke,rt,Ue;if(typeof document=="undefined")return[];const{scrollMode:Ie,block:De,inline:Fe,boundary:de,skipOverflowHiddenElements:me}=ne,we=typeof de=="function"?de:jt=>jt!==de;if(!b(ue))throw new TypeError("Invalid target");const ge=document.scrollingElement||document.documentElement,Te=[];let ee=ue;for(;b(ee)&&we(ee);){if(ee=W(ee),ee===ge){Te.push(ee);break}ee!=null&&ee===document.body&&O(ee)&&!O(document.documentElement)||ee!=null&&O(ee,me)&&Te.push(ee)}const Ce=(ke=(Pe=window.visualViewport)==null?void 0:Pe.width)!=null?ke:innerWidth,Ne=(Ue=(rt=window.visualViewport)==null?void 0:rt.height)!=null?Ue:innerHeight,{scrollX:Le,scrollY:Ke}=window,{height:nt,width:ie,top:at,right:Ze,bottom:Bt,left:bt}=ue.getBoundingClientRect(),{top:kt,right:Tt,bottom:wn,left:Xe}=(jt=>{const yt=window.getComputedStyle(jt);return{top:parseFloat(yt.scrollMarginTop)||0,right:parseFloat(yt.scrollMarginRight)||0,bottom:parseFloat(yt.scrollMarginBottom)||0,left:parseFloat(yt.scrollMarginLeft)||0}})(ue);let se=De==="start"||De==="nearest"?at-kt:De==="end"?Bt+wn:at+nt/2-kt+wn,le=Fe==="center"?bt+ie/2-Xe+Tt:Fe==="end"?Ze+Tt:bt-Xe;const _t=[];for(let jt=0;jt<Te.length;jt++){const yt=Te[jt],{height:ln,width:Dt,top:ui,right:On,bottom:ri,left:Xn}=yt.getBoundingClientRect();if(Ie==="if-needed"&&at>=0&&bt>=0&&Bt<=Ne&&Ze<=Ce&&(yt===ge&&!O(yt)||at>=ui&&Bt<=ri&&bt>=Xn&&Ze<=On))return _t;const Tn=getComputedStyle(yt),Nn=parseInt(Tn.borderLeftWidth,10),xe=parseInt(Tn.borderTopWidth,10),P=parseInt(Tn.borderRightWidth,10),k=parseInt(Tn.borderBottomWidth,10);let j=0,X=0;const N="offsetWidth"in yt?yt.offsetWidth-yt.clientWidth-Nn-P:0,Re="offsetHeight"in yt?yt.offsetHeight-yt.clientHeight-xe-k:0,wt="offsetWidth"in yt?yt.offsetWidth===0?0:Dt/yt.offsetWidth:0,ze="offsetHeight"in yt?yt.offsetHeight===0?0:ln/yt.offsetHeight:0;if(ge===yt)j=De==="start"?se:De==="end"?se-Ne:De==="nearest"?z(Ke,Ke+Ne,Ne,xe,k,Ke+se,Ke+se+nt,nt):se-Ne/2,X=Fe==="start"?le:Fe==="center"?le-Ce/2:Fe==="end"?le-Ce:z(Le,Le+Ce,Ce,Nn,P,Le+le,Le+le+ie,ie),j=Math.max(0,j+Ke),X=Math.max(0,X+Le);else{j=De==="start"?se-ui-xe:De==="end"?se-ri+k+Re:De==="nearest"?z(ui,ri,ln,xe,k+Re,se,se+nt,nt):se-(ui+ln/2)+Re/2,X=Fe==="start"?le-Xn-Nn:Fe==="center"?le-(Xn+Dt/2)+N/2:Fe==="end"?le-On+P+N:z(Xn,On,Dt,Nn,P+N,le,le+ie,ie);const{scrollLeft:Oe,scrollTop:mt}=yt;j=ze===0?0:Math.max(0,Math.min(mt+j/ze,yt.scrollHeight-ln/ze+Re)),X=wt===0?0:Math.max(0,Math.min(Oe+X/wt,yt.scrollWidth-Dt/wt+N)),se+=mt-j,le+=Oe-X}_t.push({el:yt,top:j,left:X})}return _t},M=ue=>ue===!1?{block:"end",inline:"nearest"}:(ne=>ne===Object(ne)&&Object.keys(ne).length!==0)(ue)?ue:{block:"start",inline:"nearest"};function pe(ue,ne){if(!ue.isConnected||!(rt=>{let Ue=rt;for(;Ue&&Ue.parentNode;){if(Ue.parentNode===document)return!0;Ue=Ue.parentNode instanceof ShadowRoot?Ue.parentNode.host:Ue.parentNode}return!1})(ue))return;const Pe=(rt=>{const Ue=window.getComputedStyle(rt);return{top:parseFloat(Ue.scrollMarginTop)||0,right:parseFloat(Ue.scrollMarginRight)||0,bottom:parseFloat(Ue.scrollMarginBottom)||0,left:parseFloat(Ue.scrollMarginLeft)||0}})(ue);if((rt=>typeof rt=="object"&&typeof rt.behavior=="function")(ne))return ne.behavior(_(ue,ne));const ke=typeof ne=="boolean"||ne==null?void 0:ne.behavior;for(const{el:rt,top:Ue,left:Ie}of _(ue,M(ne))){const De=Ue-Pe.top+Pe.bottom,Fe=Ie-Pe.left+Pe.right;rt.scroll({top:De,left:Fe,behavior:ke})}}},71523:function(Q,C,d){"use strict";d.d(C,{P:function(){return I},Q:function(){return b}});function b(O){const z=String(O||"").trim();return z?z.split(/[ \t\n\r\f]+/g):[]}function I(O){return O.join(" ").trim()}},10502:function(Q,C,d){"use strict";d.d(C,{O:function(){return I}});const b=function(ue,ne,Pe,ke,rt){const Ue=I(ne);if(Pe!=null&&(typeof Pe!="number"||Pe<0||Pe===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if(ke!=null&&(!b(ke)||!ke.children))throw new Error("Expected parent node");if(ke==null!=(Pe==null))throw new Error("Expected both parent and index");return pe(ue)?Ue.call(rt,ue,Pe,ke):!1},I=function(ue){if(ue==null)return M;if(typeof ue=="function")return _(ue);if(typeof ue=="object")return Array.isArray(ue)?O(ue):z(ue);if(typeof ue=="string")return W(ue);throw new Error("Expected function, string, or object as test")};function O(ue){const ne=[];let Pe=-1;for(;++Pe<ue.length;)ne[Pe]=I(ue[Pe]);return _(ke);function ke(...rt){let Ue=-1;for(;++Ue<ne.length;)if(ne[Ue].apply(this,rt))return!0;return!1}}function z(ue){const ne=ue;return _(Pe);function Pe(ke){const rt=ke;let Ue;for(Ue in ue)if(rt[Ue]!==ne[Ue])return!1;return!0}}function W(ue){return _(ne);function ne(Pe){return Pe&&Pe.type===ue}}function _(ue){return ne;function ne(Pe,ke,rt){return!!(pe(Pe)&&ue.call(this,Pe,typeof ke=="number"?ke:void 0,rt||void 0))}}function M(){return!0}function pe(ue){return ue!==null&&typeof ue=="object"&&"type"in ue}},17970:function(Q,C,d){"use strict";d.d(C,{FK:function(){return z},Pk:function(){return I},rb:function(){return b}});const b=O("end"),I=O("start");function O(W){return _;function _(M){const pe=M&&M.position&&M.position[W]||{};if(typeof pe.line=="number"&&pe.line>0&&typeof pe.column=="number"&&pe.column>0)return{line:pe.line,column:pe.column,offset:typeof pe.offset=="number"&&pe.offset>-1?pe.offset:void 0}}}function z(W){const _=I(W),M=b(W);if(_&&M)return{start:_,end:M}}},2348:function(Q,C,d){"use strict";d.d(C,{AM:function(){return _},S4:function(){return M}});var b=d(10502);function I(ue){return ue}const O=[],z=!0,W=!1,_="skip";function M(ue,ne,Pe,ke){let rt;typeof ne=="function"&&typeof Pe!="function"?(ke=Pe,Pe=ne):rt=ne;const Ue=(0,b.O)(rt),Ie=ke?-1:1;De(ue,void 0,[])();function De(Fe,de,me){const we=Fe&&typeof Fe=="object"?Fe:{};if(typeof we.type=="string"){const Te=typeof we.tagName=="string"?we.tagName:typeof we.name=="string"?we.name:void 0;Object.defineProperty(ge,"name",{value:"node ("+(Fe.type+(Te?"<"+Te+">":""))+")"})}return ge;function ge(){let Te=O,ee,Ce,Ne;if((!ne||Ue(Fe,de,me[me.length-1]||void 0))&&(Te=pe(Pe(Fe,me)),Te[0]===W))return Te;if("children"in Fe&&Fe.children){const Le=Fe;if(Le.children&&Te[0]!==_)for(Ce=(ke?Le.children.length:-1)+Ie,Ne=me.concat(Le);Ce>-1&&Ce<Le.children.length;){const Ke=Le.children[Ce];if(ee=De(Ke,Ce,Ne)(),ee[0]===W)return ee;Ce=typeof ee[1]=="number"?ee[1]:Ce+Ie}}return Te}}}function pe(ue){return Array.isArray(ue)?ue:typeof ue=="number"?[z,ue]:ue==null?O:[ue]}},10528:function(Q,C,d){"use strict";d.d(C,{Vn:function(){return I}});var b=d(2348);function I(O,z,W,_){let M,pe,ue;typeof z=="function"&&typeof W!="function"?(pe=void 0,ue=z,M=W):(pe=z,ue=W,M=_),(0,b.S4)(O,pe,ne,M);function ne(Pe,ke){const rt=ke[ke.length-1],Ue=rt?rt.children.indexOf(Pe):void 0;return ue(Pe,Ue,rt)}}},43309:function(Q,C,d){"use strict";d.d(C,{t:function(){return b}});const b={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(Q){"use strict";Q.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(Q){"use strict";Q.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"}')}}]);
|
|
|
}()); |