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

1351 lines
3.2 MiB

This file contains ambiguous Unicode characters!

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

!(function(){var Rb=Object.defineProperty,Ub=Object.defineProperties;var _b=Object.getOwnPropertyDescriptors;var mv=Object.getOwnPropertySymbols;var x1=Object.prototype.hasOwnProperty,b1=Object.prototype.propertyIsEnumerable;var w1=Math.pow,S1=(_e,be,oe)=>be in _e?Rb(_e,be,{enumerable:!0,configurable:!0,writable:!0,value:oe}):_e[be]=oe,Ys=(_e,be)=>{for(var oe in be||(be={}))x1.call(be,oe)&&S1(_e,oe,be[oe]);if(mv)for(var oe of mv(be))b1.call(be,oe)&&S1(_e,oe,be[oe]);return _e},rS=(_e,be)=>Ub(_e,_b(be));var E1=(_e,be)=>{var oe={};for(var se in _e)x1.call(_e,se)&&be.indexOf(se)<0&&(oe[se]=_e[se]);if(_e!=null&&mv)for(var se of mv(_e))be.indexOf(se)<0&&b1.call(_e,se)&&(oe[se]=_e[se]);return oe};var C1=(_e,be,oe)=>new Promise((se,Ce)=>{var we=Ke=>{try{De(oe.next(Ke))}catch(Ee){Ce(Ee)}},Ie=Ke=>{try{De(oe.throw(Ke))}catch(Ee){Ce(Ee)}},De=Ke=>Ke.done?se(Ke.value):Promise.resolve(Ke.value).then(we,Ie);De((oe=oe.apply(_e,be)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[2338],{35323:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return et}});var se=oe(5891),Ce=oe(59301),we={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"},Ie=we,De=oe(88853),Ke=function(Ye,tt){return Ce.createElement(De.Z,(0,se.Z)({},Ye,{ref:tt,icon:Ie}))},Ee=Ce.forwardRef(Ke),et=Ee},19155:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return et}});var se=oe(5891),Ce=oe(59301),we={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"},Ie=we,De=oe(88853),Ke=function(Ye,tt){return Ce.createElement(De.Z,(0,se.Z)({},Ye,{ref:tt,icon:Ie}))},Ee=Ce.forwardRef(Ke),et=Ee},10402:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return et}});var se=oe(5891),Ce=oe(59301),we={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"},Ie=we,De=oe(88853),Ke=function(Ye,tt){return Ce.createElement(De.Z,(0,se.Z)({},Ye,{ref:tt,icon:Ie}))},Ee=Ce.forwardRef(Ke),et=Ee},72295:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return et}});var se=oe(5891),Ce=oe(59301),we={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"},Ie=we,De=oe(88853),Ke=function(Ye,tt){return Ce.createElement(De.Z,(0,se.Z)({},Ye,{ref:tt,icon:Ie}))},Ee=Ce.forwardRef(Ke),et=Ee},93343:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return et}});var se=oe(5891),Ce=oe(59301),we={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"},Ie=we,De=oe(88853),Ke=function(Ye,tt){return Ce.createElement(De.Z,(0,se.Z)({},Ye,{ref:tt,icon:Ie}))},Ee=Ce.forwardRef(Ke),et=Ee},24566:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return et}});var se=oe(5891),Ce=oe(59301),we={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"},Ie=we,De=oe(88853),Ke=function(Ye,tt){return Ce.createElement(De.Z,(0,se.Z)({},Ye,{ref:tt,icon:Ie}))},Ee=Ce.forwardRef(Ke),et=Ee},61441:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return et}});var se=oe(5891),Ce=oe(59301),we={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"},Ie=we,De=oe(88853),Ke=function(Ye,tt){return Ce.createElement(De.Z,(0,se.Z)({},Ye,{ref:tt,icon:Ie}))},Ee=Ce.forwardRef(Ke),et=Ee},30631:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return et}});var se=oe(5891),Ce=oe(59301),we={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"},Ie=we,De=oe(88853),Ke=function(Ye,tt){return Ce.createElement(De.Z,(0,se.Z)({},Ye,{ref:tt,icon:Ie}))},Ee=Ce.forwardRef(Ke),et=Ee},43971:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return et}});var se=oe(5891),Ce=oe(59301),we={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"},Ie=we,De=oe(88853),Ke=function(Ye,tt){return Ce.createElement(De.Z,(0,se.Z)({},Ye,{ref:tt,icon:Ie}))},Ee=Ce.forwardRef(Ke),et=Ee},58358:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return et}});var se=oe(5891),Ce=oe(59301),we={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"},Ie=we,De=oe(88853),Ke=function(Ye,tt){return Ce.createElement(De.Z,(0,se.Z)({},Ye,{ref:tt,icon:Ie}))},Ee=Ce.forwardRef(Ke),et=Ee},44757:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return et}});var se=oe(5891),Ce=oe(59301),we={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"},Ie=we,De=oe(88853),Ke=function(Ye,tt){return Ce.createElement(De.Z,(0,se.Z)({},Ye,{ref:tt,icon:Ie}))},Ee=Ce.forwardRef(Ke),et=Ee},76298:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return et}});var se=oe(5891),Ce=oe(59301),we={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},Ie=we,De=oe(88853),Ke=function(Ye,tt){return Ce.createElement(De.Z,(0,se.Z)({},Ye,{ref:tt,icon:Ie}))},Ee=Ce.forwardRef(Ke),et=Ee},16537:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return et}});var se=oe(5891),Ce=oe(59301),we={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"},Ie=we,De=oe(88853),Ke=function(Ye,tt){return Ce.createElement(De.Z,(0,se.Z)({},Ye,{ref:tt,icon:Ie}))},Ee=Ce.forwardRef(Ke),et=Ee},77042:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return et}});var se=oe(5891),Ce=oe(59301),we={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"},Ie=we,De=oe(88853),Ke=function(Ye,tt){return Ce.createElement(De.Z,(0,se.Z)({},Ye,{ref:tt,icon:Ie}))},Ee=Ce.forwardRef(Ke),et=Ee},5527:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return et}});var se=oe(5891),Ce=oe(59301),we={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"},Ie=we,De=oe(88853),Ke=function(Ye,tt){return Ce.createElement(De.Z,(0,se.Z)({},Ye,{ref:tt,icon:Ie}))},Ee=Ce.forwardRef(Ke),et=Ee},86902:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return et}});var se=oe(5891),Ce=oe(59301),we={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"},Ie=we,De=oe(88853),Ke=function(Ye,tt){return Ce.createElement(De.Z,(0,se.Z)({},Ye,{ref:tt,icon:Ie}))},Ee=Ce.forwardRef(Ke),et=Ee},53878:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return et}});var se=oe(5891),Ce=oe(59301),we={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"},Ie=we,De=oe(88853),Ke=function(Ye,tt){return Ce.createElement(De.Z,(0,se.Z)({},Ye,{ref:tt,icon:Ie}))},Ee=Ce.forwardRef(Ke),et=Ee},21970:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return et}});var se=oe(5891),Ce=oe(59301),we={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"},Ie=we,De=oe(88853),Ke=function(Ye,tt){return Ce.createElement(De.Z,(0,se.Z)({},Ye,{ref:tt,icon:Ie}))},Ee=Ce.forwardRef(Ke),et=Ee},79906:function(){"use strict"},93938:function(_e,be){"use strict";be.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},11037:function(_e,be){"use strict";be.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}},99372:function(_e,be,oe){"use strict";var se=oe(59301),Ce=Object.defineProperty,we=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable,Ke=(Je,Ye,tt)=>Ye in Je?Ce(Je,Ye,{enumerable:!0,configurable:!0,writable:!0,value:tt}):Je[Ye]=tt,Ee=(Je,Ye)=>{for(var tt in Ye||(Ye={}))Ie.call(Ye,tt)&&Ke(Je,tt,Ye[tt]);if(we)for(var tt of we(Ye))De.call(Ye,tt)&&Ke(Je,tt,Ye[tt]);return Je};const et=Je=>React.createElement("svg",Ee({width:99,height:80,xmlns:"http://www.w3.org/2000/svg"},Je),React.createElement("title",null,"\u6279\u6CE8\u6587\u4EF6"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M62.7 79.6H0V8.5h39.3l23.4 18.4z",fill:"#F0A221"}),React.createElement("path",{d:"M71.4 71.1H8.7V0h44.4l18.3 18z",fill:"#F1C84C"}),React.createElement("path",{d:"M53.3 7.3v11.5h11.5z",fill:"#FFF"}),React.createElement("path",{d:"M34.9 13.9h-17v4.6h17zM45.9 27h-28v4.6h28zM45.9 40.6h-28v4.6h28zM45.9 53.7h-28v4.7h28z",fill:"#F0A221"}),React.createElement("path",{d:"M65 32H50v4.6h15zM65 45.6H50v4.6h15zM65 58.7H50v4.7h15z",fill:"#FFF"}),React.createElement("path",{d:"M60 56.5c.7 4.3-1 8.3-1 8.3s4-1.7 8.3-1c0 0 1.4-4.5 5.2-10L70 51.2c-5.5 3.9-10 5.3-10 5.3Z",fill:"#000"}),React.createElement("path",{d:"m64 59.2 7.1-7.1.5.5-7.1 7.1z",fill:"#F9A54C"}),React.createElement("path",{d:"M62.8 59.8c0 .7.5 1.2 1.2 1.2s1.2-.5 1.2-1.2-.5-1.2-1.2-1.2-1.2.6-1.2 1.2Z",fill:"#FFF"}),React.createElement("path",{d:"M71.6 55.8c4-2.6 6.7-4.5 12.6-10.5 10.2-10.2 16-18.3 14.3-20-1.7-1.7-9.5 3.8-20 14.3-6 6-7.6 8.6-10.5 12.6l3.6 3.6Z",fill:"#324A5E"}),React.createElement("path",{d:"m78 39.8 5.7 5.7.5-.5 1.4-1.4-5.6-5.7-1.4 1.4-.6.5Zm10.5-5.7c-.5.2-1.2.7-1.7 1.4-1.2 1.2-1.9 2.4-1.7 2.9.5.5 1.7-.5 2.9-1.7.7-.7 1.2-1.2 1.4-1.7l6.2-6.2 1.4 1.4c1.7-2.6 2.1-4.5 1.4-5-.5-.5-2.6-.2-5 1.4l1.6 1.6-6.5 5.9Z",fill:"#FFC65B"}),React.createElement("path",{d:"m49.6 36.4-3.8-3.9H18v-1h28.2l4.2 4.1zM49.6 50.4l-3.8-3.9H18v-1h28.2l4.2 4.1zM49.6 64.4l-3.8-3.9H18v-1h28.2l4.2 4.1z",fill:"#FFF"})));be.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTkiIGhlaWdodD0iODAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNNjIuNyA3OS42SDBWOC41aDM5LjNsMjMuNCAxOC40eiIgZmlsbD0iI0YwQTIyMSIvPjxwYXRoIGQ9Ik03MS40IDcxLjFIOC43VjBoNDQuNGwxOC4zIDE4eiIgZmlsbD0iI0YxQzg0QyIvPjxwYXRoIGQ9Ik01My4zIDcuM3YxMS41aDExLjV6IiBmaWxsPSIjRkZGIi8+PHBhdGggZD0iTTM0LjkgMTMuOWgtMTd2NC42aDE3ek00NS45IDI3aC0yOHY0LjZoMjh6TTQ1LjkgNDAuNmgtMjh2NC42aDI4ek00NS45IDUzLjdoLTI4djQuN2gyOHoiIGZpbGw9IiNGMEEyMjEiLz48cGF0aCBkPSJNNjUgMzJINTB2NC42aDE1ek02NSA0NS42SDUwdjQuNmgxNXpNNjUgNTguN0g1MHY0LjdoMTV6IiBmaWxsPSIjRkZGIi8+PGc+PHBhdGggZD0iTTYwIDU2LjVjLjcgNC4zLTEgOC4zLTEgOC4zczQtMS43IDguMy0xYzAgMCAxLjQtNC41IDUuMi0xMEw3MCA1MS4yYy01LjUgMy45LTEwIDUuMy0xMCA1LjNaIiBmaWxsPSIjMDAwIi8+PHBhdGggZD0ibTY0IDU5LjIgNy4xLTcuMS41LjUtNy4xIDcuMXoiIGZpbGw9IiNGOUE1NEMiLz48cGF0aCBkPSJNNjIuOCA1OS44YzAgLjcuNSAxLjIgMS4yIDEuMnMxLjItLjUgMS4yLTEuMi0uNS0xLjItMS4yLTEuMi0xLjIuNi0xLjIgMS4yWiIgZmlsbD0iI0ZGRiIvPjxwYXRoIGQ9Ik03MS42IDU1LjhjNC0yLjYgNi43LTQuNSAxMi42LTEwLjUgMTAuMi0xMC4yIDE2LTE4LjMgMTQuMy0yMC0xLjctMS43LTkuNSAzLjgtMjAgMTQuMy02IDYtNy42IDguNi0xMC41IDEyLjZsMy42IDMuNloiIGZpbGw9IiMzMjRBNUUiLz48cGF0aCBkPSJtNzggMzkuOCA1LjcgNS43LjUtLjUgMS40LTEuNC01LjYtNS43LTEuNCAxLjQtLjYuNVptMTAuNS01LjdjLS41LjItMS4yLjctMS43IDEuNC0xLjIgMS4yLTEuOSAyLjQtMS43IDIuOS41LjUgMS43LS41IDIuOS0xLjcuNy0uNyAxLjItMS4yIDEuNC0xLjdsNi4yLTYuMiAxLjQgMS40YzEuNy0yLjYgMi4xLTQuNSAxLjQtNS0uNS0uNS0yLjYtLjItNSAxLjRsMS42IDEuNi02LjUgNS45WiIgZmlsbD0iI0ZGQzY1QiIvPjwvZz48ZyBmaWxsPSIjRkZGIj48cGF0aCBkPSJtNDkuNiAzNi40LTMuOC0zLjlIMTh2LTFoMjguMmw0LjIgNC4xeiIvPjwvZz48ZyBmaWxsPSIjRkZGIj48cGF0aCBkPSJtNDkuNiA1MC40LTMuOC0zLjlIMTh2LTFoMjguMmw0LjIgNC4xeiIvPjwvZz48ZyBmaWxsPSIjRkZGIj48cGF0aCBkPSJtNDkuNiA2NC40LTMuOC0zLjlIMTh2LTFoMjguMmw0LjIgNC4xeiIvPjwvZz48L2c+PC9zdmc+"},44965:function(_e,be,oe){"use strict";var se=oe(59301),Ce=Object.defineProperty,we=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable,Ke=(Je,Ye,tt)=>Ye in Je?Ce(Je,Ye,{enumerable:!0,configurable:!0,writable:!0,value:tt}):Je[Ye]=tt,Ee=(Je,Ye)=>{for(var tt in Ye||(Ye={}))Ie.call(Ye,tt)&&Ke(Je,tt,Ye[tt]);if(we)for(var tt of we(Ye))De.call(Ye,tt)&&Ke(Je,tt,Ye[tt]);return Je};const et=Je=>React.createElement("svg",Ee({width:72,height:80,xmlns:"http://www.w3.org/2000/svg"},Je),React.createElement("title",null,"\u6587\u4EF6 "),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{fill:"#F0A221",d:"M62.698 79.631H.04V8.534h39.22l23.438 18.332z"}),React.createElement("path",{d:"M71.387 71.1H8.73V.005h44.326l18.337 18.03v53.067h-.005ZM53.331 7.336v11.48h11.48L53.33 7.335Zm-8.367 6.536H17.938v4.623h27.026V13.87ZM62.26 27.024H17.857v4.623H62.26v-4.623Zm0 13.551H17.857v4.623H62.26v-4.623Zm0 13.158H17.857v4.623H62.26v-4.623Z",fill:"#F1C84C"})));be.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzIiIGhlaWdodD0iODAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBmaWxsPSIjRjBBMjIxIiBkPSJNNjIuNjk4IDc5LjYzMUguMDRWOC41MzRoMzkuMjJsMjMuNDM4IDE4LjMzMnoiLz48cGF0aCBkPSJNNzEuMzg3IDcxLjFIOC43M1YuMDA1aDQ0LjMyNmwxOC4zMzcgMTguMDN2NTMuMDY3aC0uMDA1Wk01My4zMzEgNy4zMzZ2MTEuNDhoMTEuNDhMNTMuMzMgNy4zMzVabS04LjM2NyA2LjUzNkgxNy45Mzh2NC42MjNoMjcuMDI2VjEzLjg3Wk02Mi4yNiAyNy4wMjRIMTcuODU3djQuNjIzSDYyLjI2di00LjYyM1ptMCAxMy41NTFIMTcuODU3djQuNjIzSDYyLjI2di00LjYyM1ptMCAxMy4xNThIMTcuODU3djQuNjIzSDYyLjI2di00LjYyM1oiIGZpbGw9IiNGMUM4NEMiLz48L2c+PC9zdmc+"},37404:function(){"use strict";function _e(ze,ee,ne,ge){ne===void 0&&(ne=0),ge===void 0&&(ge=1/0),this._name=ze,this._defaultValue=ee,this._minimum=ne,this._maximum=ge}Object.defineProperty(_e.prototype,"name",{get:function(){return this._name},set:function(ze){if(typeof ze!="string"||ze==="")throw new Error("Shape name must be a valid string.");this._name=ze}}),Object.defineProperty(_e.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ze){if(typeof ze!="number"||isNaN(ze))throw new Error("The default value must be a real number, not: "+ze);this._defaultValue=ze}}),Object.defineProperty(_e.prototype,"minimum",{get:function(){return this._minimum},set:function(ze){if(typeof ze!="number"||isNaN(ze))throw new Error("Minimum must be a real number, not: "+ze);this._minimum=ze}}),Object.defineProperty(_e.prototype,"maximum",{get:function(){return this._maximum},set:function(ze){if(typeof ze!="number"||isNaN(ze))throw new Error("Maximum must be a real number, not: "+ze);this._maximum=ze}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ze,ee){var ne=go.Shape._FigureParameters[ze];return ne?ne[ee]:null},go.Shape.setFigureParameter=function(ze,ee,ne){if(!(ne instanceof _e))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+ne);if(ne.defaultValue<ne.minimum||ne.defaultValue>ne.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+ne.defaultValue);var ge=go.Shape._FigureParameters[ze];ge||(ge=[],go.Shape._FigureParameters[ze]=ge),ge[ee]=ne};var be=[];function oe(ze,ee){var ne=be.pop();return ne===void 0?new go.Point(ze,ee):(ne.x=ze,ne.y=ee,ne)}function se(){var ze=be.pop();return ze===void 0?new go.Point:ze}function Ce(ze){be.push(ze)}function we(ze,ee,ne,ge,ue,me,Se,Ne,ke){ke||(ke=new go.Point);var Te=ze-ne,We=ue-Se,$e=NaN,st=NaN;if(Te===0)if(We===0)ze===ne&&($e=ze,st=ee);else{var ut=(me-Ne)/We,Mt=me-ut*ue;$e=ze,st=ut*$e+Mt}else if(We===0){var nt=(ee-ge)/Te,$t=ee-nt*ze;$e=ue,st=nt*$e+$t}else{var nt=(ee-ge)/Te,ut=(me-Ne)/We,$t=ee-nt*ze,Mt=me-ut*ue;$e=(Mt-$t)/(nt-ut),st=nt*$e+$t}return ke.x=$e,ke.y=st,ke}function Ie(ze,ee,ne,ge,ue,me,Se,Ne,ke,Te,We,$e,st,ut){var Mt=1-ke,nt=ke,$t=ze*Mt+ne*nt,Pt=ee*Mt+ge*nt,dn=ne*Mt+ue*nt,zt=ge*Mt+me*nt,Xt=ue*Mt+Se*nt,fn=me*Mt+Ne*nt,an=$t*Mt+dn*nt,it=Pt*Mt+zt*nt,Ve=dn*Mt+Xt*nt,gt=zt*Mt+fn*nt,Bt=an*Mt+Ve*nt,sn=it*Mt+gt*nt;Te.x=$t,Te.y=Pt,We.x=an,We.y=it,$e.x=Bt,$e.y=sn,st.x=Ve,st.y=gt,ut.x=Xt,ut.y=fn}var De=new go.Spot(.156,.156),Ke=new go.Spot(.844,.844),Ee=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new _e("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ze,ee,ne){var ge=ze?ze.parameter1:NaN;(isNaN(ge)||ge<0)&&(ge=5),ge=Math.min(ge,ee/3),ge=Math.min(ge,ne/3);var ue=ge*Ee,me=new go.Geometry().add(new go.PathFigure(ge,0,!0).add(new go.PathSegment(go.PathSegment.Line,ee-ge,0)).add(new go.PathSegment(go.PathSegment.Bezier,ee,ge,ee-ue,0,ee,ue)).add(new go.PathSegment(go.PathSegment.Line,ee,ne-ge)).add(new go.PathSegment(go.PathSegment.Bezier,ee-ge,ne,ee,ne-ue,ee-ue,ne)).add(new go.PathSegment(go.PathSegment.Line,ge,ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,ne-ge,ue,ne,0,ne-ue)).add(new go.PathSegment(go.PathSegment.Line,0,ge)).add(new go.PathSegment(go.PathSegment.Bezier,ge,0,0,ue,ue,0).close()));return ue>1&&(me.spot1=new go.Spot(0,0,ue,ue),me.spot2=new go.Spot(1,1,-ue,-ue)),me}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ze,ee,ne){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ze,ee,ne){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ee,0)).add(new go.PathSegment(go.PathSegment.Line,.5*ee,ne).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ze,ee,ne){return new go.Geometry().add(new go.PathFigure(ee,ne).add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,ee,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ze,ee,ne){return new go.Geometry().add(new go.PathFigure(ee,ne).add(new go.PathSegment(go.PathSegment.Line,0,ne)).add(new go.PathSegment(go.PathSegment.Line,.5*ee,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ze,ee,ne){return new go.Geometry().add(new go.PathFigure(.5*ee,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,.5*ee,ne)).add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ze,ee,ne){var ge=new go.Geometry(go.Geometry.Line);return ge.startX=0,ge.startY=ne/2,ge.endX=ee,ge.endY=ne/2,ge}),go.Shape.defineFigureGenerator("LineV",function(ze,ee,ne){var ge=new go.Geometry(go.Geometry.Line);return ge.startX=ee/2,ge.startY=0,ge.endX=ee/2,ge.endY=ne,ge}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ze,ee,ne){return new go.Geometry().add(new go.PathFigure(0,ne/2,!1).add(new go.PathSegment(go.PathSegment.Line,ee,ne/2)).add(new go.PathSegment(go.PathSegment.Move,ee/2,0)).add(new go.PathSegment(go.PathSegment.Line,ee/2,ne)))}),go.Shape.defineFigureGenerator("XLine",function(ze,ee,ne){return new go.Geometry().add(new go.PathFigure(0,ne,!1).add(new go.PathSegment(go.PathSegment.Line,ee,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,ee,ne)))}),go.Shape.defineFigureGenerator("LineRight",function(ze,ee,ne){return new go.Geometry().add(new go.PathFigure(.25*ee,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*ee,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,.25*ee,ne)))}),go.Shape.defineFigureGenerator("LineDown",function(ze,ee,ne){return new go.Geometry().add(new go.PathFigure(0,.25*ne,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ee,.75*ne)).add(new go.PathSegment(go.PathSegment.Line,ee,.25*ne)))}),go.Shape.defineFigureGenerator("LineLeft",function(ze,ee,ne){return new go.Geometry().add(new go.PathFigure(.75*ee,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*ee,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,.75*ee,ne)))}),go.Shape.defineFigureGenerator("LineUp",function(ze,ee,ne){return new go.Geometry().add(new go.PathFigure(0,.75*ne,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ee,.25*ne)).add(new go.PathSegment(go.PathSegment.Line,ee,.75*ne)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ze,ee,ne){var ge=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(ge*ee,(1-ge)*ne,!1).add(new go.PathSegment(go.PathSegment.Line,(1-ge)*ee,ge*ne)).add(new go.PathSegment(go.PathSegment.Move,ge*ee,ge*ne)).add(new go.PathSegment(go.PathSegment.Line,(1-ge)*ee,(1-ge)*ne)).add(new go.PathSegment(go.PathSegment.Move,0,ne/2)).add(new go.PathSegment(go.PathSegment.Line,ee,ne/2)).add(new go.PathSegment(go.PathSegment.Move,ee/2,0)).add(new go.PathSegment(go.PathSegment.Line,ee/2,ne)))}),go.Shape.defineFigureGenerator("CircleLine",function(ze,ee,ne){var ge=ee/2,ue=new go.Geometry().add(new go.PathFigure(ee,ee/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,ge,ge,ge,ge).close()));return ue.spot1=De,ue.spot2=Ke,ue.defaultStretch=go.GraphObject.Uniform,ue}),go.Shape.defineFigureGenerator("Line1",function(ze,ee,ne){var ge=new go.Geometry(go.Geometry.Line);return ge.startX=0,ge.startY=0,ge.endX=ee,ge.endY=ne,ge}),go.Shape.defineFigureGenerator("Line2",function(ze,ee,ne){var ge=new go.Geometry(go.Geometry.Line);return ge.startX=ee,ge.startY=0,ge.endX=0,ge.endY=ne,ge}),go.Shape.defineFigureGenerator("Curve1",function(ze,ee,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,ee,ne,Ee*ee,0,ee,(1-Ee)*ne)))}),go.Shape.defineFigureGenerator("Curve2",function(ze,ee,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,ee,ne,0,Ee*ne,(1-Ee)*ee,ne)))}),go.Shape.defineFigureGenerator("Curve3",function(ze,ee,ne){return new go.Geometry().add(new go.PathFigure(ee,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ne,ee,Ee*ne,Ee*ee,ne)))}),go.Shape.defineFigureGenerator("Curve4",function(ze,ee,ne){return new go.Geometry().add(new go.PathFigure(ee,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ne,(1-Ee)*ee,0,0,(1-Ee)*ne)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ze,ee,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,ee,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ze,ee,ne){return new go.Geometry().add(new go.PathFigure(ee,0,!0).add(new go.PathSegment(go.PathSegment.Line,ee,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ze,ee,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,ee,0)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ze,ee,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,ee,0)).add(new go.PathSegment(go.PathSegment.Line,ee,ne).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new _e("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ze,ee,ne){var ge=ze?ze.parameter1:NaN;isNaN(ge)?ge=.1:ge<-1?ge=-1:ge>1&&(ge=1);var ue=Math.abs(ge)*ee;if(ge===0){var me=new go.Geometry(go.Geometry.Rectangle);return me.startX=0,me.startY=0,me.endX=ee,me.endY=ne,me}else{var me=new go.Geometry;return ge>0?me.add(new go.PathFigure(ue,0).add(new go.PathSegment(go.PathSegment.Line,ee,0)).add(new go.PathSegment(go.PathSegment.Line,ee-ue,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())):me.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ee-ue,0)).add(new go.PathSegment(go.PathSegment.Line,ee,ne)).add(new go.PathSegment(go.PathSegment.Line,ue,ne).close())),ue<ee/2&&me.setSpots(ue/ee,0,(ee-ue)/ee,1),me}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new _e("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ze,ee,ne){var ge=ze?ze.parameter1:NaN;isNaN(ge)?ge=10:ge<-ee?ge=-ee:ge>ee&&(ge=ee);var ue=Math.abs(ge);if(ge===0){var me=new go.Geometry(go.Geometry.Rectangle);return me.startX=0,me.startY=0,me.endX=ee,me.endY=ne,me}else{var me=new go.Geometry;return ge>0?me.add(new go.PathFigure(ue,0).add(new go.PathSegment(go.PathSegment.Line,ee,0)).add(new go.PathSegment(go.PathSegment.Line,ee-ue,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())):me.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ee-ue,0)).add(new go.PathSegment(go.PathSegment.Line,ee,ne)).add(new go.PathSegment(go.PathSegment.Line,ue,ne).close())),ue<ee/2&&me.setSpots(ue/ee,0,(ee-ue)/ee,1),me}}),go.Shape.setFigureParameter("Trapezoid1",0,new _e("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ze,ee,ne){var ge=ze?ze.parameter1:NaN;isNaN(ge)?ge=.2:ge<.5?ge=-.5:ge>.5&&(ge=.5);var ue=Math.abs(ge)*ee;if(ge===0){var me=new go.Geometry(go.Geometry.Rectangle);return me.startX=0,me.startY=0,me.endX=ee,me.endY=ne,me}else{var me=new go.Geometry;return ge>0?me.add(new go.PathFigure(ue,0).add(new go.PathSegment(go.PathSegment.Line,ee-ue,0)).add(new go.PathSegment(go.PathSegment.Line,ee,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())):me.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ee,0)).add(new go.PathSegment(go.PathSegment.Line,ee-ue,ne)).add(new go.PathSegment(go.PathSegment.Line,ue,ne).close())),ue<ee/2&&me.setSpots(ue/ee,0,(ee-ue)/ee,1),me}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new _e("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ze,ee,ne){var ge=ze?ze.parameter1:NaN;isNaN(ge)?ge=20:ge<-ee?ge=-ee/2:ge>ee&&(ge=ee/2);var ue=Math.abs(ge);if(ge===0){var me=new go.Geometry(go.Geometry.Rectangle);return me.startX=0,me.startY=0,me.endX=ee,me.endY=ne,me}else{var me=new go.Geometry;return ge>0?me.add(new go.PathFigure(ue,0).add(new go.PathSegment(go.PathSegment.Line,ee-ue,0)).add(new go.PathSegment(go.PathSegment.Line,ee,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())):me.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ee,0)).add(new go.PathSegment(go.PathSegment.Line,ee-ue,ne)).add(new go.PathSegment(go.PathSegment.Line,ue,ne).close())),ue<ee/2&&me.setSpots(ue/ee,0,(ee-ue)/ee,1),me}}),go.Shape.setFigureParameter("ManualOperation",0,new _e("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ze,ee,ne){var ge=ze?ze.parameter1:NaN;isNaN(ge)?ge=10:ge<-ee?ge=-ee/2:ge>ee&&(ge=ee/2);var ue=Math.abs(ge);if(ge===0){var me=new go.Geometry(go.Geometry.Rectangle);return me.startX=0,me.startY=0,me.endX=ee,me.endY=ne,me}else{var me=new go.Geometry;return ge>0?me.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ee,0)).add(new go.PathSegment(go.PathSegment.Line,ee-ue,ne)).add(new go.PathSegment(go.PathSegment.Line,ue,ne).close())):me.add(new go.PathFigure(ue,0).add(new go.PathSegment(go.PathSegment.Line,ee-ue,0)).add(new go.PathSegment(go.PathSegment.Line,ee,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())),ue<ee/2&&me.setSpots(ue/ee,0,(ee-ue)/ee,1),me}});var et=[];function Je(){var ze=et.pop();return ze===void 0?[]:ze}function Ye(ze){ze.length=0,et.push(ze)}function tt(ze){for(var ee=Je(),ne=.5,ge=.5,ue=Math.PI*1.5,me=0,Se=0;Se<ze;Se++)me=2*Math.PI/ze*Se+ue,ee[Se]=new go.Point(ge+ne*Math.cos(me),ge+ne*Math.sin(me));return ee.push(ee[0]),ee}function ht(ze){var ee=kt(ze),ne=Je();ne[0]=ee[0];for(var ge=1,ue=1;ge<ee.length;ge+=2,ue+=3)ne[ue]=ee[ge],ne[ue+1]=ee[ge],ne[ue+2]=ee[ge+1];return Ye(ee),ne}function kt(ze){for(var ee=tt(ze),ne=Je(),ge=Math.floor(ee.length/2),ue=ee.length-1,me=ze%2===0?2:1,Se=0;Se<ue;Se++){var Ne=ee[Se],ke=ee[Se+1],Te=ee[(ge+Se-1)%ue],We=ee[(ge+Se+me)%ue];ne[Se*2]=Ne,ne[Se*2+1]=we(Ne.x,Ne.y,Te.x,Te.y,ke.x,ke.y,We.x,We.y,new go.Point)}return ne[ne.length]=ne[0],Ye(ee),ne}go.Shape.defineFigureGenerator("Pentagon",function(ze,ee,ne){var ge=tt(5),ue=new go.Geometry,me=new go.PathFigure(ge[0].x*ee,ge[0].y*ne,!0);ue.add(me);for(var Se=1;Se<5;Se++)me.add(new go.PathSegment(go.PathSegment.Line,ge[Se].x*ee,ge[Se].y*ne));return me.add(new go.PathSegment(go.PathSegment.Line,ge[0].x*ee,ge[0].y*ne).close()),Ye(ge),ue.spot1=new go.Spot(.2,.22),ue.spot2=new go.Spot(.8,.9),ue}),go.Shape.defineFigureGenerator("Hexagon",function(ze,ee,ne){var ge=tt(6),ue=new go.Geometry,me=new go.PathFigure(ge[0].x*ee,ge[0].y*ne,!0);ue.add(me);for(var Se=1;Se<6;Se++)me.add(new go.PathSegment(go.PathSegment.Line,ge[Se].x*ee,ge[Se].y*ne));return me.add(new go.PathSegment(go.PathSegment.Line,ge[0].x*ee,ge[0].y*ne).close()),Ye(ge),ue.spot1=new go.Spot(.07,.25),ue.spot2=new go.Spot(.93,.75),ue}),go.Shape.defineFigureGenerator("Heptagon",function(ze,ee,ne){var ge=tt(7),ue=new go.Geometry,me=new go.PathFigure(ge[0].x*ee,ge[0].y*ne,!0);ue.add(me);for(var Se=1;Se<7;Se++)me.add(new go.PathSegment(go.PathSegment.Line,ge[Se].x*ee,ge[Se].y*ne));return me.add(new go.PathSegment(go.PathSegment.Line,ge[0].x*ee,ge[0].y*ne).close()),Ye(ge),ue.spot1=new go.Spot(.2,.15),ue.spot2=new go.Spot(.8,.85),ue}),go.Shape.defineFigureGenerator("Octagon",function(ze,ee,ne){var ge=tt(8),ue=new go.Geometry,me=new go.PathFigure(ge[0].x*ee,ge[0].y*ne,!0);ue.add(me);for(var Se=1;Se<8;Se++)me.add(new go.PathSegment(go.PathSegment.Line,ge[Se].x*ee,ge[Se].y*ne));return me.add(new go.PathSegment(go.PathSegment.Line,ge[0].x*ee,ge[0].y*ne).close()),Ye(ge),ue.spot1=new go.Spot(.15,.15),ue.spot2=new go.Spot(.85,.85),ue}),go.Shape.defineFigureGenerator("Nonagon",function(ze,ee,ne){var ge=tt(9),ue=new go.Geometry,me=new go.PathFigure(ge[0].x*ee,ge[0].y*ne,!0);ue.add(me);for(var Se=1;Se<9;Se++)me.add(new go.PathSegment(go.PathSegment.Line,ge[Se].x*ee,ge[Se].y*ne));return me.add(new go.PathSegment(go.PathSegment.Line,ge[0].x*ee,ge[0].y*ne).close()),Ye(ge),ue.spot1=new go.Spot(.17,.13),ue.spot2=new go.Spot(.82,.82),ue}),go.Shape.defineFigureGenerator("Decagon",function(ze,ee,ne){var ge=tt(10),ue=new go.Geometry,me=new go.PathFigure(ge[0].x*ee,ge[0].y*ne,!0);ue.add(me);for(var Se=1;Se<10;Se++)me.add(new go.PathSegment(go.PathSegment.Line,ge[Se].x*ee,ge[Se].y*ne));return me.add(new go.PathSegment(go.PathSegment.Line,ge[0].x*ee,ge[0].y*ne).close()),Ye(ge),ue.spot1=new go.Spot(.16,.16),ue.spot2=new go.Spot(.84,.84),ue}),go.Shape.defineFigureGenerator("Dodecagon",function(ze,ee,ne){var ge=tt(12),ue=new go.Geometry,me=new go.PathFigure(ge[0].x*ee,ge[0].y*ne,!0);ue.add(me);for(var Se=1;Se<12;Se++)me.add(new go.PathSegment(go.PathSegment.Line,ge[Se].x*ee,ge[Se].y*ne));return me.add(new go.PathSegment(go.PathSegment.Line,ge[0].x*ee,ge[0].y*ne).close()),Ye(ge),ue.spot1=new go.Spot(.16,.16),ue.spot2=new go.Spot(.84,.84),ue}),go.Shape.defineFigureGenerator("FivePointedStar",function(ze,ee,ne){var ge=kt(5),ue=new go.Geometry,me=new go.PathFigure(ge[0].x*ee,ge[0].y*ne,!0);ue.add(me);for(var Se=1;Se<10;Se++)me.add(new go.PathSegment(go.PathSegment.Line,ge[Se].x*ee,ge[Se].y*ne));return me.add(new go.PathSegment(go.PathSegment.Line,ge[0].x*ee,ge[0].y*ne).close()),Ye(ge),ue.spot1=new go.Spot(.266,.333),ue.spot2=new go.Spot(.733,.733),ue}),go.Shape.defineFigureGenerator("SixPointedStar",function(ze,ee,ne){var ge=kt(6),ue=new go.Geometry,me=new go.PathFigure(ge[0].x*ee,ge[0].y*ne,!0);ue.add(me);for(var Se=1;Se<12;Se++)me.add(new go.PathSegment(go.PathSegment.Line,ge[Se].x*ee,ge[Se].y*ne));return me.add(new go.PathSegment(go.PathSegment.Line,ge[0].x*ee,ge[0].y*ne).close()),Ye(ge),ue.spot1=new go.Spot(.17,.25),ue.spot2=new go.Spot(.83,.75),ue}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ze,ee,ne){var ge=kt(7),ue=new go.Geometry,me=new go.PathFigure(ge[0].x*ee,ge[0].y*ne,!0);ue.add(me);for(var Se=1;Se<14;Se++)me.add(new go.PathSegment(go.PathSegment.Line,ge[Se].x*ee,ge[Se].y*ne));return me.add(new go.PathSegment(go.PathSegment.Line,ge[0].x*ee,ge[0].y*ne).close()),Ye(ge),ue.spot1=new go.Spot(.222,.277),ue.spot2=new go.Spot(.777,.666),ue}),go.Shape.defineFigureGenerator("EightPointedStar",function(ze,ee,ne){var ge=kt(8),ue=new go.Geometry,me=new go.PathFigure(ge[0].x*ee,ge[0].y*ne,!0);ue.add(me);for(var Se=1;Se<16;Se++)me.add(new go.PathSegment(go.PathSegment.Line,ge[Se].x*ee,ge[Se].y*ne));return me.add(new go.PathSegment(go.PathSegment.Line,ge[0].x*ee,ge[0].y*ne).close()),Ye(ge),ue.spot1=new go.Spot(.25,.25),ue.spot2=new go.Spot(.75,.75),ue}),go.Shape.defineFigureGenerator("NinePointedStar",function(ze,ee,ne){var ge=kt(9),ue=new go.Geometry,me=new go.PathFigure(ge[0].x*ee,ge[0].y*ne,!0);ue.add(me);for(var Se=1;Se<18;Se++)me.add(new go.PathSegment(go.PathSegment.Line,ge[Se].x*ee,ge[Se].y*ne));return me.add(new go.PathSegment(go.PathSegment.Line,ge[0].x*ee,ge[0].y*ne).close()),Ye(ge),ue.spot1=new go.Spot(.222,.277),ue.spot2=new go.Spot(.777,.666),ue}),go.Shape.defineFigureGenerator("TenPointedStar",function(ze,ee,ne){var ge=kt(10),ue=new go.Geometry,me=new go.PathFigure(ge[0].x*ee,ge[0].y*ne,!0);ue.add(me);for(var Se=1;Se<20;Se++)me.add(new go.PathSegment(go.PathSegment.Line,ge[Se].x*ee,ge[Se].y*ne));return me.add(new go.PathSegment(go.PathSegment.Line,ge[0].x*ee,ge[0].y*ne).close()),Ye(ge),ue.spot1=new go.Spot(.281,.261),ue.spot2=new go.Spot(.723,.748),ue}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ze,ee,ne){var ge=ht(5),ue=new go.Geometry,me=new go.PathFigure(ge[0].x*ee,ge[0].y*ne,!0);ue.add(me);for(var Se=1;Se<ge.length;Se+=3)me.add(new go.PathSegment(go.PathSegment.Bezier,ge[Se+2].x*ee,ge[Se+2].y*ne,ge[Se].x*ee,ge[Se].y*ne,ge[Se+1].x*ee,ge[Se+1].y*ne));return me.segments.last().close(),Ye(ge),ue.spot1=new go.Spot(.222,.277),ue.spot2=new go.Spot(.777,.777),ue}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ze,ee,ne){var ge=ht(6),ue=new go.Geometry,me=new go.PathFigure(ge[0].x*ee,ge[0].y*ne,!0);ue.add(me);for(var Se=1;Se<ge.length;Se+=3)me.add(new go.PathSegment(go.PathSegment.Bezier,ge[Se+2].x*ee,ge[Se+2].y*ne,ge[Se].x*ee,ge[Se].y*ne,ge[Se+1].x*ee,ge[Se+1].y*ne));return me.segments.last().close(),Ye(ge),ue.spot1=new go.Spot(.17,.222),ue.spot2=new go.Spot(.833,.777),ue}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ze,ee,ne){var ge=ht(7),ue=new go.Geometry,me=new go.PathFigure(ge[0].x*ee,ge[0].y*ne,!0);ue.add(me);for(var Se=1;Se<ge.length;Se+=3)me.add(new go.PathSegment(go.PathSegment.Bezier,ge[Se+2].x*ee,ge[Se+2].y*ne,ge[Se].x*ee,ge[Se].y*ne,ge[Se+1].x*ee,ge[Se+1].y*ne));return me.segments.last().close(),Ye(ge),ue.spot1=new go.Spot(.222,.222),ue.spot2=new go.Spot(.777,.777),ue}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ze,ee,ne){var ge=ht(8),ue=new go.Geometry,me=new go.PathFigure(ge[0].x*ee,ge[0].y*ne,!0);ue.add(me);for(var Se=1;Se<ge.length;Se+=3)me.add(new go.PathSegment(go.PathSegment.Bezier,ge[Se+2].x*ee,ge[Se+2].y*ne,ge[Se].x*ee,ge[Se].y*ne,ge[Se+1].x*ee,ge[Se+1].y*ne));return me.segments.last().close(),Ye(ge),ue.spot1=new go.Spot(.222,.222),ue.spot2=new go.Spot(.777,.777),ue}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ze,ee,ne){var ge=ht(9),ue=new go.Geometry,me=new go.PathFigure(ge[0].x*ee,ge[0].y*ne,!0);ue.add(me);for(var Se=1;Se<ge.length;Se+=3)me.add(new go.PathSegment(go.PathSegment.Bezier,ge[Se+2].x*ee,ge[Se+2].y*ne,ge[Se].x*ee,ge[Se].y*ne,ge[Se+1].x*ee,ge[Se+1].y*ne));return me.segments.last().close(),Ye(ge),ue.spot1=new go.Spot(.222,.222),ue.spot2=new go.Spot(.777,.777),ue}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ze,ee,ne){var ge=ht(10),ue=new go.Geometry,me=new go.PathFigure(ge[0].x*ee,ge[0].y*ne,!0);ue.add(me);for(var Se=1;Se<ge.length;Se+=3)me.add(new go.PathSegment(go.PathSegment.Bezier,ge[Se+2].x*ee,ge[Se+2].y*ne,ge[Se].x*ee,ge[Se].y*ne,ge[Se+1].x*ee,ge[Se+1].y*ne));return me.segments.last().close(),Ye(ge),ue.spot1=new go.Spot(.222,.222),ue.spot2=new go.Spot(.777,.777),ue}),go.Shape.setFigureParameter("FramedRectangle",0,new _e("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new _e("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ze,ee,ne){var ge=ze?ze.parameter1:NaN,ue=ze?ze.parameter2:NaN;isNaN(ge)&&(ge=8),isNaN(ue)&&(ue=8);var me=new go.Geometry,Se=new go.PathFigure(0,0,!0);return me.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ee,0)),Se.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),ge<ee/2&&ue<ne/2&&(Se.add(new go.PathSegment(go.PathSegment.Move,ge,ue)),Se.add(new go.PathSegment(go.PathSegment.Line,ge,ne-ue)),Se.add(new go.PathSegment(go.PathSegment.Line,ee-ge,ne-ue)),Se.add(new go.PathSegment(go.PathSegment.Line,ee-ge,ue).close())),me.setSpots(0,0,1,1,ge,ue,-ge,-ue),me}),go.Shape.setFigureParameter("Ring",0,new _e("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ze,ee,ne){var ge=ze?ze.parameter1:NaN;(isNaN(ge)||ge<0)&&(ge=8);var ue=ee/2,me=new go.Geometry,Se=new go.PathFigure(ee,ee/2,!0);me.add(Se),Se.add(new go.PathSegment(go.PathSegment.Arc,0,360,ue,ue,ue,ue).close());var Ne=Math.max(ue-ge,0);return Ne>0&&(Se.add(new go.PathSegment(go.PathSegment.Move,ee/2+Ne,ee/2)),Se.add(new go.PathSegment(go.PathSegment.Arc,0,-360,ue,ue,Ne,Ne).close())),me.spot1=De,me.spot2=Ke,me.defaultStretch=go.GraphObject.Uniform,me}),go.Shape.defineFigureGenerator("Cloud",function(ze,ee,ne){return new go.Geometry().add(new go.PathFigure(.08034461*ee,.1944299*ne,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*ee,.05349299*ne,-.09239631*ee,.07836421*ne,.1406031*ee,-.0542823*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*ee,.074219*ne,.2450511*ee,-.00697547*ne,.3776197*ee,-.01112067*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*ee,.07004196*ne,.4539471*ee,0,.6066018*ee,-.02526587*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*ee,.08370865*ne,.6914277*ee,-.01904177*ne,.8921095*ee,-.01220843*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*ee,.3194596*ne,1.036446*ee,.04105738*ne,1.020377*ee,.3022052*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*ee,.562044*ne,1.04448*ee,.360238*ne,.992256*ee,.5219009*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*ee,.8217117*ne,1.032337*ee,.5771781*ne,1.018411*ee,.8120651*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*ee,.9156953*ne,1.028411*ee,.9571472*ne,.8556702*ee,1.052487*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*ee,.9310455*ne,.7431877*ee,1.009325*ne,.5624123*ee,1.021761*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*ee,.9344623*ne,.4820677*ee,1.031761*ne,.3030112*ee,1.002796*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*ee,.870098*ne,.2329994*ee,1.01518*ne,.03213784*ee,1.01518*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*ee,.6545475*ne,-.02812061*ee,.9032597*ne,-.01205169*ee,.6835638*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*ee,.4265613*ne,-.01812061*ee,.6089503*ne,-.00606892*ee,.4555777*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*ee,.1944299*ne,-.01606892*ee,.3892545*ne,-.01205169*ee,.1944299*ne))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ze,ee,ne){var ge=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(ge*ee,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-ge)*ee,0)).add(new go.PathSegment(go.PathSegment.Line,ee,ge*ne)).add(new go.PathSegment(go.PathSegment.Line,ee,(1-ge)*ne)).add(new go.PathSegment(go.PathSegment.Line,(1-ge)*ee,ne)).add(new go.PathSegment(go.PathSegment.Line,ge*ee,ne)).add(new go.PathSegment(go.PathSegment.Line,0,(1-ge)*ne)).add(new go.PathSegment(go.PathSegment.Line,0,ge*ne).close())).setSpots(ge/2,ge/2,1-ge/2,1-ge/2)}),go.Shape.setFigureParameter("Pie",0,new _e("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new _e("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ze,ee,ne){var ge=ze?ze.parameter1:NaN,ue=ze?ze.parameter2:NaN;isNaN(ge)&&(ge=0),isNaN(ue)&&(ue=315);var me=ge%360;me<0&&(me+=360);var Se=ue%360,Ne=Math.min(ee,ne)/2;return new go.Geometry().add(new go.PathFigure(Ne,Ne).add(new go.PathSegment(go.PathSegment.Arc,me,Se,Ne,Ne,Ne,Ne).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ze,ee,ne){var ge=Ee/Math.SQRT2*.5,ue=Math.SQRT2/2,me=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(ee,ne,!0).add(new go.PathSegment(go.PathSegment.Bezier,ue*ee,me*ne,ee,(1-ge)*ne,(ue+ge)*ee,(me+ge)*ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close()))}),go.Shape.setFigureParameter("ThickCross",0,new _e("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ze,ee,ne){var ge=ze?ze.parameter1:NaN;(isNaN(ge)||ge<0)&&(ge=30);var ue=Math.min(ge,ee)/2,me=ee/2,Se=ne/2;return new go.Geometry().add(new go.PathFigure(me-ue,0,!0).add(new go.PathSegment(go.PathSegment.Line,me+ue,0)).add(new go.PathSegment(go.PathSegment.Line,me+ue,Se-ue)).add(new go.PathSegment(go.PathSegment.Line,ee,Se-ue)).add(new go.PathSegment(go.PathSegment.Line,ee,Se+ue)).add(new go.PathSegment(go.PathSegment.Line,me+ue,Se+ue)).add(new go.PathSegment(go.PathSegment.Line,me+ue,ne)).add(new go.PathSegment(go.PathSegment.Line,me-ue,ne)).add(new go.PathSegment(go.PathSegment.Line,me-ue,Se+ue)).add(new go.PathSegment(go.PathSegment.Line,0,Se+ue)).add(new go.PathSegment(go.PathSegment.Line,0,Se-ue)).add(new go.PathSegment(go.PathSegment.Line,me-ue,Se-ue).close()))}),go.Shape.setFigureParameter("ThinCross",0,new _e("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ze,ee,ne){var ge=ze?ze.parameter1:NaN;(isNaN(ge)||ge<0)&&(ge=10);var ue=Math.min(ge,ee)/2,me=ee/2,Se=ne/2;return new go.Geometry().add(new go.PathFigure(me-ue,0,!0).add(new go.PathSegment(go.PathSegment.Line,me+ue,0)).add(new go.PathSegment(go.PathSegment.Line,me+ue,Se-ue)).add(new go.PathSegment(go.PathSegment.Line,ee,Se-ue)).add(new go.PathSegment(go.PathSegment.Line,ee,Se+ue)).add(new go.PathSegment(go.PathSegment.Line,me+ue,Se+ue)).add(new go.PathSegment(go.PathSegment.Line,me+ue,ne)).add(new go.PathSegment(go.PathSegment.Line,me-ue,ne)).add(new go.PathSegment(go.PathSegment.Line,me-ue,Se+ue)).add(new go.PathSegment(go.PathSegment.Line,0,Se+ue)).add(new go.PathSegment(go.PathSegment.Line,0,Se-ue)).add(new go.PathSegment(go.PathSegment.Line,me-ue,Se-ue).close()))}),go.Shape.setFigureParameter("ThickX",0,new _e("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ze,ee,ne){var ge=ze?ze.parameter1:NaN;if((isNaN(ge)||ge<0)&&(ge=30),ee===0||ne===0){var ue=new go.Geometry(go.Geometry.Rectangle);return ue.startX=0,ue.startY=0,ue.endX=ee,ue.endY=ne,ue}else{var me=ee/2,Se=ne/2,Ne=Math.atan2(ne,ee),ke=ge-Math.min(Math.cos(Ne)*ge/2,me),Te=ge-Math.min(Math.sin(Ne)*ge/2,Se),ue=new go.Geometry,We=new go.PathFigure(ke,0,!0);return ue.add(We),We.add(new go.PathSegment(go.PathSegment.Line,me,.2*ne)),We.add(new go.PathSegment(go.PathSegment.Line,ee-ke,0)),We.add(new go.PathSegment(go.PathSegment.Line,ee,Te)),We.add(new go.PathSegment(go.PathSegment.Line,.8*ee,Se)),We.add(new go.PathSegment(go.PathSegment.Line,ee,ne-Te)),We.add(new go.PathSegment(go.PathSegment.Line,ee-ke,ne)),We.add(new go.PathSegment(go.PathSegment.Line,me,.8*ne)),We.add(new go.PathSegment(go.PathSegment.Line,ke,ne)),We.add(new go.PathSegment(go.PathSegment.Line,0,ne-Te)),We.add(new go.PathSegment(go.PathSegment.Line,.2*ee,Se)),We.add(new go.PathSegment(go.PathSegment.Line,0,Te).close()),ue}}),go.Shape.setFigureParameter("ThinX",0,new _e("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ze,ee,ne){var ge=ze?ze.parameter1:NaN;(isNaN(ge)||ge<0)&&(ge=10);var ue=new go.Geometry,me=new go.PathFigure(.1*ee,0,!0);return ue.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.4*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.9*ee,0)),me.add(new go.PathSegment(go.PathSegment.Line,ee,.1*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.6*ee,.5*ne)),me.add(new go.PathSegment(go.PathSegment.Line,ee,.9*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.9*ee,ne)),me.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.6*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.1*ee,ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,.9*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.4*ee,.5*ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,.1*ne).close()),ue}),go.Shape.setFigureParameter("SquareIBeam",0,new _e("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ze,ee,ne){var ge=ze?ze.parameter1:NaN;isNaN(ge)&&(ge=.2);var ue=new go.Geometry,me=new go.PathFigure(0,0,!0);return ue.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ee,0)),me.add(new go.PathSegment(go.PathSegment.Line,ee,ge*ne)),me.add(new go.PathSegment(go.PathSegment.Line,(.5+ge/2)*ee,ge*ne)),me.add(new go.PathSegment(go.PathSegment.Line,(.5+ge/2)*ee,(1-ge)*ne)),me.add(new go.PathSegment(go.PathSegment.Line,ee,(1-ge)*ne)),me.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,(1-ge)*ne)),me.add(new go.PathSegment(go.PathSegment.Line,(.5-ge/2)*ee,(1-ge)*ne)),me.add(new go.PathSegment(go.PathSegment.Line,(.5-ge/2)*ee,ge*ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,ge*ne).close()),ue}),go.Shape.setFigureParameter("RoundedIBeam",0,new _e("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ze,ee,ne){var ge=ze?ze.parameter1:NaN;isNaN(ge)&&(ge=.5);var ue=new go.Geometry,me=new go.PathFigure(0,0,!0);return ue.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ee,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,ee,ne,Math.abs(1-ge)*ee,.25*ne,Math.abs(1-ge)*ee,.75*ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ge*ee,.75*ne,ge*ee,.25*ne).close()),ue}),go.Shape.defineFigureGenerator("HalfEllipse",function(ze,ee,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,ee,.5*ne,Ee*ee,0,ee,(.5-Ee/2)*ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,ne,ee,(.5+Ee/2)*ne,Ee*ee,ne).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ze,ee,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,ne,ee,0,ee,ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*ee,.75*ne,.5*ee,.25*ne).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ze,ee,ne){return new go.Geometry().add(new go.PathFigure(.5*ee,ne,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ne,.1*ee,.8*ne,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.3*ne,0,0,.45*ee,0)).add(new go.PathSegment(go.PathSegment.Bezier,ee,.3*ne,.55*ee,0,ee,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,ne,ee,.5*ne,.9*ee,.8*ne).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ze,ee,ne){return new go.Geometry().add(new go.PathFigure(.5*ee,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*ee,.01*ne)).add(new go.PathSegment(go.PathSegment.Bezier,ee,.5*ne,.6*ee,.2*ne,ee,.25*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.55*ee,.7*ne,ee,.8*ne,.6*ee,.8*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.75*ee,ne,.5*ee,.75*ne,.55*ee,.95*ne)).add(new go.PathSegment(go.PathSegment.Line,.25*ee,ne)).add(new go.PathSegment(go.PathSegment.Bezier,.45*ee,.7*ne,.45*ee,.95*ne,.5*ee,.75*ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,.4*ee,.8*ne,0,.8*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.49*ee,.01*ne,0,.25*ne,.4*ee,.2*ne).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(.4*ee,.6*ne,!0);ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.15*ee,ne,.5*ee,.75*ne,.45*ee,.95*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.6*ee,.6*ne,.55*ee,.95*ne,.5*ee,.75*ne));var me=.2,Se=.3,Ne=0,ke=me*Ee;return ue.add(new go.PathSegment(go.PathSegment.Bezier,(.5+Se)*ee,(.5+me+Ne)*ne,(.5-me+Se)*ee,(.5+ke+Ne)*ne,(.5-ke+Se)*ee,(.5+me+Ne)*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+me+Se)*ee,(.5+Ne)*ne,(.5+ke+Se)*ee,(.5+me+Ne)*ne,(.5+me+Se)*ee,(.5+ke+Ne)*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(.5+Se)*ee,(.5-me+Ne)*ne,(1-.5+me+Se)*ee,(.5-ke+Ne)*ne,(.5+ke+Se)*ee,(.5-me+Ne)*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.65*ee,.36771243*ne,(.5-ke+Se)*ee,(.5-me+Ne)*ne,(.5-me+Se+.05)*ee,(.5-ke+Ne-.02)*ne)),me=.2,Se=0,Ne=-.3,ke=me*Ee,ue.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+me+Se)*ee,(.5+Ne)*ne,(.5+ke+Se)*ee,(.5+me+Ne)*ne,(.5+me+Se)*ee,(.5+ke+Ne)*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(.5+Se)*ee,(.5-me+Ne)*ne,(1-.5+me+Se)*ee,(.5-ke+Ne)*ne,(.5+ke+Se)*ee,(.5-me+Ne)*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(.5-me+Se)*ee,(.5+Ne)*ne,(.5-ke+Se)*ee,(.5-me+Ne)*ne,(.5-me+Se)*ee,(.5-ke+Ne)*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ke+Se)*ee,(.5+me+Ne)*ne,(.5-me+Se)*ee,(.5+ke+Ne)*ne,(.5-ke+Se)*ee,(.5+me+Ne)*ne)),me=.2,Se=-.3,Ne=0,ke=me*Ee,ue.add(new go.PathSegment(go.PathSegment.Bezier,(.5+Se)*ee,(.5-me+Ne)*ne,(1-.5+me+Se-.05)*ee,(.5-ke+Ne-.02)*ne,(.5+ke+Se)*ee,(.5-me+Ne)*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(.5-me+Se)*ee,(.5+Ne)*ne,(.5-ke+Se)*ee,(.5-me+Ne)*ne,(.5-me+Se)*ee,(.5-ke+Ne)*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(.5+Se)*ee,(.5+me+Ne)*ne,(.5-me+Se)*ee,(.5+ke+Ne)*ne,(.5-ke+Se)*ee,(.5+me+Ne)*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.4*ee,.6*ne,(.5+ke+Se)*ee,(.5+me+Ne)*ne,(.5+me+Se)*ee,(.5+ke+Ne)*ne).close()),ge.setSpots(.06,.33,.93,.68),ge}),go.Shape.defineFigureGenerator("YinYang",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(ee*.5,0,!0);ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Arc,270,180,ee*.5,ee*.5,ee*.5,ee*.5)),ue.add(new go.PathSegment(go.PathSegment.Arc,90,-180,ee*.5,ee*.75,ee*.25,ee*.25)),ue.add(new go.PathSegment(go.PathSegment.Arc,90,180,ee*.5,ee*.25,ee*.25,ee*.25));var me=.1,Se=.5,Ne=.25;return ue.add(new go.PathSegment(go.PathSegment.Move,(Se+me)*ee,Ne*ne)),ue.add(new go.PathSegment(go.PathSegment.Arc,0,-360,ee*Se,ne*Ne,me*ee,me*ee).close()),ue=new go.PathFigure(ee*.5,0,!1),ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Arc,270,-180,ee*.5,ee*.5,ee*.5,ee*.5)),Ne=.75,ue=new go.PathFigure((Se+me)*ee,Ne*ne,!0),ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Arc,0,360,ee*Se,ne*Ne,me*ee,me*ee).close()),ge.defaultStretch=go.GraphObject.Uniform,ge}),go.Shape.defineFigureGenerator("Peace",function(ze,ee,ne){var ge=.8535533905932737,ue=.5*ee,me=.5*ne;return new go.Geometry().add(new go.PathFigure(ue,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,ue,me,ue,me)).add(new go.PathSegment(go.PathSegment.Line,ue,ne)).add(new go.PathSegment(go.PathSegment.Move,ue,me)).add(new go.PathSegment(go.PathSegment.Line,(1-ge)*ee,ge*ne)).add(new go.PathSegment(go.PathSegment.Move,ue,me)).add(new go.PathSegment(go.PathSegment.Line,ge*ee,ge*ne)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ze,ee,ne){var ge=new go.Geometry,ue=Ee*.5,me=.5,Se=.5,Ne=.5,ke=new go.PathFigure(Se*ee,(Ne-me)*ne);ge.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,(Se-me)*ee,Ne*ne,(Se-ue)*ee,(Ne-me)*ne,(Se-me)*ee,(Ne-ue)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(Ne+me)*ne,(Se-me)*ee,(Ne+ue)*ne,(Se-ue)*ee,(Ne+me)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(Se+me)*ee,Ne*ne,(Se+ue)*ee,(Ne+me)*ne,(Se+me)*ee,(Ne+ue)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(Ne-me)*ne,(Se+me)*ee,(Ne-ue)*ne,(Se+ue)*ee,(Ne-me)*ne)),me=.4,ue=Ee*.4;var Te=se(),We=se(),$e=se(),st=se();Ie(Se,Ne-me,Se+ue,Ne-me,Se+me,Ne-ue,Se+me,Ne,.42,Te,We,$e,st,st);var ut=se(),Mt=se(),nt=se();Ie(Se,Ne-me,Se+ue,Ne-me,Se+me,Ne-ue,Se+me,Ne,.58,st,st,nt,ut,Mt);var $t=se(),Pt=se(),dn=se();Ie(Se,Ne+me,Se-ue,Ne+me,Se-me,Ne+ue,Se-me,Ne,.42,$t,Pt,dn,st,st);var zt=se(),Xt=se(),fn=se();return Ie(Se,Ne+me,Se-ue,Ne+me,Se-me,Ne+ue,Se-me,Ne,.58,st,st,fn,zt,Xt),ke.add(new go.PathSegment(go.PathSegment.Move,fn.x*ee,fn.y*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(Se-me)*ee,Ne*ne,zt.x*ee,zt.y*ne,Xt.x*ee,Xt.y*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(Ne-me)*ne,(Se-me)*ee,(Ne-ue)*ne,(Se-ue)*ee,(Ne-me)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,$e.x*ee,$e.y*ne,Te.x*ee,Te.y*ne,We.x*ee,We.y*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,fn.x*ee,fn.y*ne).close()),ke.add(new go.PathSegment(go.PathSegment.Move,dn.x*ee,dn.y*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,nt.x*ee,nt.y*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(Se+me)*ee,Ne*ne,ut.x*ee,ut.y*ne,Mt.x*ee,Mt.y*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(Ne+me)*ne,(Se+me)*ee,(Ne+ue)*ne,(Se+ue)*ee,(Ne+me)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,dn.x*ee,dn.y*ne,$t.x*ee,$t.y*ne,Pt.x*ee,Pt.y*ne).close()),Ce(Te),Ce(We),Ce($e),Ce(st),Ce(ut),Ce(Mt),Ce(nt),Ce($t),Ce(Pt),Ce(dn),Ce(zt),Ce(Xt),Ce(fn),ge.defaultStretch=go.GraphObject.Uniform,ge}),go.Shape.defineFigureGenerator("Fragile",function(ze,ee,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*ee,0)).add(new go.PathSegment(go.PathSegment.Line,.2*ee,.15*ne)).add(new go.PathSegment(go.PathSegment.Line,.3*ee,.25*ne)).add(new go.PathSegment(go.PathSegment.Line,.29*ee,.33*ne)).add(new go.PathSegment(go.PathSegment.Line,.35*ee,.25*ne)).add(new go.PathSegment(go.PathSegment.Line,.3*ee,.15*ne)).add(new go.PathSegment(go.PathSegment.Line,.4*ee,0)).add(new go.PathSegment(go.PathSegment.Line,ee,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*ee,.5*ne,ee,.25*ne,.75*ee,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,.55*ee,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.7*ee,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.7*ee,ne)).add(new go.PathSegment(go.PathSegment.Line,.3*ee,ne)).add(new go.PathSegment(go.PathSegment.Line,.3*ee,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.45*ee,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.45*ee,.5*ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*ee,.5*ne,0,.25*ne).close()))}),go.Shape.setFigureParameter("HourGlass",0,new _e("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ze,ee,ne){var ge=ze?ze.parameter1:NaN;(isNaN(ge)||ge<0)&&(ge=30),ge>ee&&(ge=ee);var ue=(ee-ge)/2,me=ue+ge;return new go.Geometry().add(new go.PathFigure(me,.5*ne).add(new go.PathSegment(go.PathSegment.Line,ee,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne)).add(new go.PathSegment(go.PathSegment.Line,ue,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,ee,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ze,ee,ne){return new go.Geometry().add(new go.PathFigure(0,.55*ne).add(new go.PathSegment(go.PathSegment.Line,.6*ee,0)).add(new go.PathSegment(go.PathSegment.Line,.3*ee,.45*ne)).add(new go.PathSegment(go.PathSegment.Line,ee,.45*ne)).add(new go.PathSegment(go.PathSegment.Line,.4*ee,ne)).add(new go.PathSegment(go.PathSegment.Line,.7*ee,.55*ne).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ze,ee,ne){var ge=new go.Geometry,ue=Ee*.4,me=.4,Se=.5,Ne=.5,ke=se(),Te=se(),We=se(),$e=se(),st=new go.PathFigure((Se-me)*ee,Ne*ne,!1);ge.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(Ne-me)*ne,(Se-me)*ee,(Ne-ue)*ne,(Se-ue)*ee,(Ne-me)*ne)),Ie(Se,Ne-me,Se+ue,Ne-me,Se+me,Ne-ue,Se+me,Ne,.44,We,$e,Te,ke,ke),st.add(new go.PathSegment(go.PathSegment.Bezier,Te.x*ee,Te.y*ne,We.x*ee,We.y*ne,$e.x*ee,$e.y*ne));var ut=oe(Te.x,Te.y);Ie(Se,Ne-me,Se+ue,Ne-me,Se+me,Ne-ue,Se+me,Ne,.56,ke,ke,Te,We,$e);var Mt=oe(Te.x,Te.y);st.add(new go.PathSegment(go.PathSegment.Line,(ut.x*.1+.95*.9)*ee,ut.y*.1*ne)),st.add(new go.PathSegment(go.PathSegment.Line,.85*ee,ut.y*.1*ne)),st.add(new go.PathSegment(go.PathSegment.Line,.85*ee,0)),st.add(new go.PathSegment(go.PathSegment.Line,ee,0)),st.add(new go.PathSegment(go.PathSegment.Line,ee,.15*ne)),st.add(new go.PathSegment(go.PathSegment.Line,(Mt.x*.1+.9)*ee,.15*ne)),st.add(new go.PathSegment(go.PathSegment.Line,(Mt.x*.1+.9)*ee,(Mt.y*.1+.05*.9)*ne)),st.add(new go.PathSegment(go.PathSegment.Line,Mt.x*ee,Mt.y*ne)),st.add(new go.PathSegment(go.PathSegment.Bezier,(Se+me)*ee,Ne*ne,We.x*ee,We.y*ne,$e.x*ee,$e.y*ne)),st.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(Ne+me)*ne,(Se+me)*ee,(Ne+ue)*ne,(Se+ue)*ee,(Ne+me)*ne)),st.add(new go.PathSegment(go.PathSegment.Bezier,(Se-me)*ee,Ne*ne,(Se-ue)*ee,(Ne+me)*ne,(Se-me)*ee,(Ne+ue)*ne)),me=.35,ue=Ee*.35;var nt=new go.PathFigure(Se*ee,(Ne-me)*ne,!1);ge.add(nt),nt.add(new go.PathSegment(go.PathSegment.Bezier,(Se-me)*ee,Ne*ne,(Se-ue)*ee,(Ne-me)*ne,(Se-me)*ee,(Ne-ue)*ne)),nt.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(Ne+me)*ne,(Se-me)*ee,(Ne+ue)*ne,(Se-ue)*ee,(Ne+me)*ne)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(Se+me)*ee,Ne*ne,(Se+ue)*ee,(Ne+me)*ne,(Se+me)*ee,(Ne+ue)*ne)),nt.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(Ne-me)*ne,(Se+me)*ee,(Ne-ue)*ne,(Se+ue)*ee,(Ne-me)*ne));var $t=new go.PathFigure((Se-me)*ee,Ne*ne,!1);return ge.add($t),Ce(ke),Ce(Te),Ce(We),Ce($e),Ce(ut),Ce(Mt),ge.spot1=new go.Spot(.202,.257),ge.spot2=new go.Spot(.792,.739),ge.defaultStretch=go.GraphObject.Uniform,ge}),go.Shape.defineFigureGenerator("GenderFemale",function(ze,ee,ne){var ge=new go.Geometry,ue=.375,me=0,Se=-.125,Ne=ue*Ee,ke=new go.PathFigure((.525+me)*ee,(.5+ue+Se)*ne,!1);ge.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ue+me)*ee,(.5+Se)*ne,(.5+Ne+me)*ee,(.5+ue+Se)*ne,(.5+ue+me)*ee,(.5+Ne+Se)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*ee,(.5-ue+Se)*ne,(1-.5+ue+me)*ee,(.5-Ne+Se)*ne,(.5+Ne+me)*ee,(.5-ue+Se)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ue+me)*ee,(.5+Se)*ne,(.5-Ne+me)*ee,(.5-ue+Se)*ne,(.5-ue+me)*ee,(.5-Ne+Se)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(.475+me)*ee,(.5+ue+Se)*ne,(.5-ue+me)*ee,(.5+Ne+Se)*ne,(.5-Ne+me)*ee,(.5+ue+Se)*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.475*ee,.85*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.425*ee,.85*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.425*ee,.9*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.475*ee,.9*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.475*ee,ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.525*ee,ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.525*ee,.9*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.575*ee,.9*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.575*ee,.85*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.525*ee,.85*ne).close()),ue=.325,me=0,Se=-.125,Ne=ue*Ee;var ke=new go.PathFigure((1-.5+ue+me)*ee,(.5+Se)*ne,!1);ge.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*ee,(.5+ue+Se)*ne,(.5+ue+me)*ee,(.5+Ne+Se)*ne,(.5+Ne+me)*ee,(.5+ue+Se)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ue+me)*ee,(.5+Se)*ne,(.5-Ne+me)*ee,(.5+ue+Se)*ne,(.5-ue+me)*ee,(.5+Ne+Se)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*ee,(.5-ue+Se)*ne,(.5-ue+me)*ee,(.5-Ne+Se)*ne,(.5-Ne+me)*ee,(.5-ue+Se)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ue+me)*ee,(.5+Se)*ne,(.5+Ne+me)*ee,(.5-ue+Se)*ne,(1-.5+ue+me)*ee,(.5-Ne+Se)*ne));var ke=new go.PathFigure((.525+me)*ee,(.5+ue+Se)*ne,!1);return ge.add(ke),ge.spot1=new go.Spot(.232,.136),ge.spot2=new go.Spot(.682,.611),ge.defaultStretch=go.GraphObject.Uniform,ge}),go.Shape.defineFigureGenerator("LogicImplies",function(ze,ee,ne){var ge=ze?ze.parameter1:NaN;return isNaN(ge)&&(ge=.2),new go.Geometry().add(new go.PathFigure((1-ge)*ee,0,!1).add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,(1-ge)*ee,ne)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ze,ee,ne){var ge=ze?ze.parameter1:NaN;return isNaN(ge)&&(ge=.2),new go.Geometry().add(new go.PathFigure((1-ge)*ee,0,!1).add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,(1-ge)*ee,ne)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne)).add(new go.PathSegment(go.PathSegment.Move,ge*ee,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,ge*ee,ne))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ze,ee,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,ee,0)).add(new go.PathSegment(go.PathSegment.Line,ee,ne)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ze,ee,ne){return new go.Geometry().add(new go.PathFigure(0,ne,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ee,0)).add(new go.PathSegment(go.PathSegment.Line,ee,ne))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ze,ee,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ee,ne)).add(new go.PathSegment(go.PathSegment.Line,ee,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ze,ee,ne){var ge=new go.Geometry().add(new go.PathFigure(.5*ee,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ee,ne)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*ee,.5*ne,.5*ee,.5*ne)));return ge.defaultStretch=go.GraphObject.Uniform,ge}),go.Shape.defineFigureGenerator("LogicTruth",function(ze,ee,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,ee,0)).add(new go.PathSegment(go.PathSegment.Move,.5*ee,0)).add(new go.PathSegment(go.PathSegment.Line,.5*ee,ne)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ze,ee,ne){return new go.Geometry().add(new go.PathFigure(0,ne,!1).add(new go.PathSegment(go.PathSegment.Line,ee,ne)).add(new go.PathSegment(go.PathSegment.Move,.5*ee,ne)).add(new go.PathSegment(go.PathSegment.Line,.5*ee,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ze,ee,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,ee,0)).add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Move,ee,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,ee,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ze,ee,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ee,ne)).add(new go.PathSegment(go.PathSegment.Line,ee,0)).add(new go.PathSegment(go.PathSegment.Move,.25*ee,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,.75*ee,.5*ne))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ze,ee,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,ee,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne)).add(new go.PathSegment(go.PathSegment.Move,0,ne)).add(new go.PathSegment(go.PathSegment.Line,ee,ne))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ze,ee,ne){var ge=.5;return new go.Geometry().add(new go.PathFigure(0,ne,!1).add(new go.PathSegment(go.PathSegment.Line,0,ge*ne)).add(new go.PathSegment(go.PathSegment.Arc,180,180,ge*ee,ge*ne,ge*ee,ge*ne)).add(new go.PathSegment(go.PathSegment.Line,ee,ne))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ze,ee,ne){var ge=.5;return new go.Geometry().add(new go.PathFigure(ee,0,!1).add(new go.PathSegment(go.PathSegment.Line,ee,ge*ne)).add(new go.PathSegment(go.PathSegment.Arc,0,180,ge*ee,ge*ne,ge*ee,ge*ne)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new _e("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new _e("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ze,ee,ne){var ge=ze?ze.parameter1:NaN;isNaN(ge)&&(ge=.3);var ue=ze?ze.parameter2:NaN;isNaN(ue)&&(ue=.3);var me=(1-ge)*ee,Se=(.5-ue/2)*ne,Ne=(.5+ue/2)*ne,ke=new go.Geometry,Te=new go.PathFigure(0,Se,!0);ke.add(Te),Te.add(new go.PathSegment(go.PathSegment.Line,me,Se)),Te.add(new go.PathSegment(go.PathSegment.Line,me,0)),Te.add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne)),Te.add(new go.PathSegment(go.PathSegment.Line,me,ne)),Te.add(new go.PathSegment(go.PathSegment.Line,me,Ne)),Te.add(new go.PathSegment(go.PathSegment.Line,0,Ne).close()),ke.spot1=new go.Spot(0,Se/ne);var We=we(0,Ne/ne,1,Ne/ne,me/ee,1,1,.5,se());return ke.spot2=new go.Spot(We.x,We.y),Ce(We),ke}),go.Shape.setFigureParameter("Arrow2",0,new _e("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new _e("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ze,ee,ne){var ge=ze?ze.parameter1:NaN;isNaN(ge)&&(ge=30),ge>ee&&(ge=ee);var ue=ze?ze.parameter2:NaN;isNaN(ue)&&(ue=30),ue=Math.min(ue,ne/2);var me=ee-ge,Se=(ne-ue)/2,Ne=Se+ue,ke=new go.Geometry,Te=new go.PathFigure(0,Se,!0);ke.add(Te),Te.add(new go.PathSegment(go.PathSegment.Line,me,Se)),Te.add(new go.PathSegment(go.PathSegment.Line,me,0)),Te.add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne)),Te.add(new go.PathSegment(go.PathSegment.Line,me,ne)),Te.add(new go.PathSegment(go.PathSegment.Line,me,Ne)),Te.add(new go.PathSegment(go.PathSegment.Line,0,Ne).close()),ke.spot1=new go.Spot(0,Se/ne);var We=we(0,Ne/ne,1,Ne/ne,me/ee,1,1,.5,se());return ke.spot2=new go.Spot(We.x,We.y),Ce(We),ke}),go.Shape.defineFigureGenerator("Chevron",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,0,!0);return ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.5*ne).close()),ge}),go.Shape.defineFigureGenerator("DoubleArrow",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,0,!0);return ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.3*ee,.214*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.3*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,1*ee,.5*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.3*ee,1*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.3*ee,.786*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,1*ne).close()),ge}),go.Shape.setFigureParameter("DoubleEndArrow",0,new _e("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ze,ee,ne){var ge=ze?ze.parameter1:NaN;isNaN(ge)&&(ge=.3);var ue=(.5-ge/2)*ne,me=(.5+ge/2)*ne,Se=new go.Geometry,Ne=new go.PathFigure(ee,.5*ne,!0);Se.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,.7*ee,ne)),Ne.add(new go.PathSegment(go.PathSegment.Line,.7*ee,me)),Ne.add(new go.PathSegment(go.PathSegment.Line,.3*ee,me)),Ne.add(new go.PathSegment(go.PathSegment.Line,.3*ee,ne)),Ne.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),Ne.add(new go.PathSegment(go.PathSegment.Line,.3*ee,0)),Ne.add(new go.PathSegment(go.PathSegment.Line,.3*ee,ue)),Ne.add(new go.PathSegment(go.PathSegment.Line,.7*ee,ue)),Ne.add(new go.PathSegment(go.PathSegment.Line,.7*ee,0).close());var ke=we(0,.5,.3,0,0,ue/ne,.1,ue/ne,se());return Se.spot1=new go.Spot(ke.x,ke.y),ke=we(.7,1,1,.5,0,me/ne,1,me/ne,ke),Se.spot2=new go.Spot(ke.x,ke.y),Ce(ke),Se}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new _e("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new _e("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ze,ee,ne){var ge=ze?ze.parameter1:NaN;isNaN(ge)&&(ge=40);var ue=ze?ze.parameter2:NaN;isNaN(ue)&&(ue=100);var me=(ne-ge)/2,Se=me+ge,Ne=(ne-ue)/2,ke=Ne+ue;(ge>ne||ue>ne)&&(ue>ge?(ge=ge*ne/ue,me=(ne-ge)/2,Se=me+ge,Ne=0,ke=ne):(me=0,Se=ne,Ne=0,ke=ne));var Te=new go.Geometry,We=new go.PathFigure(ee,.5*ne,!0);Te.add(We),We.add(new go.PathSegment(go.PathSegment.Line,.7*ee,ke)),We.add(new go.PathSegment(go.PathSegment.Line,.7*ee,Se)),We.add(new go.PathSegment(go.PathSegment.Line,.3*ee,Se)),We.add(new go.PathSegment(go.PathSegment.Line,.3*ee,ke)),We.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),We.add(new go.PathSegment(go.PathSegment.Line,.3*ee,Ne)),We.add(new go.PathSegment(go.PathSegment.Line,.3*ee,me)),We.add(new go.PathSegment(go.PathSegment.Line,.7*ee,me)),We.add(new go.PathSegment(go.PathSegment.Line,.7*ee,Ne).close());var $e=we(0,.5,.3,Ne/ne,0,me/ne,1,me/ne,se());return Te.spot1=new go.Spot($e.x,$e.y),$e=we(.7,ke/ne,1,.5,0,Se/ne,1,Se/ne,$e),Te.spot2=new go.Spot($e.x,$e.y),Ce($e),Te}),go.Shape.setFigureParameter("IBeamArrow",0,new _e("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ze,ee,ne){var ge=ze?ze.parameter1:NaN;isNaN(ge)&&(ge=.3);var ue=(.5-ge/2)*ne,me=(.5+ge/2)*ne,Se=new go.Geometry,Ne=new go.PathFigure(ee,.5*ne,!0);Se.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,.7*ee,ne)),Ne.add(new go.PathSegment(go.PathSegment.Line,.7*ee,me)),Ne.add(new go.PathSegment(go.PathSegment.Line,.2*ee,me)),Ne.add(new go.PathSegment(go.PathSegment.Line,.2*ee,ne)),Ne.add(new go.PathSegment(go.PathSegment.Line,0,ne)),Ne.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ne.add(new go.PathSegment(go.PathSegment.Line,.2*ee,0)),Ne.add(new go.PathSegment(go.PathSegment.Line,.2*ee,ue)),Ne.add(new go.PathSegment(go.PathSegment.Line,.7*ee,ue)),Ne.add(new go.PathSegment(go.PathSegment.Line,.7*ee,0).close()),Se.spot1=new go.Spot(0,ue/ne);var ke=we(.7,1,1,.5,0,me/ne,1,me/ne,se());return Se.spot2=new go.Spot(ke.x,ke.y),Ce(ke),Se}),go.Shape.setFigureParameter("IBeamArrow2",0,new _e("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new _e("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ze,ee,ne){var ge=ze?ze.parameter1:NaN;isNaN(ge)&&(ge=40);var ue=ze?ze.parameter2:NaN;isNaN(ue)&&(ue=100);var me=(ne-ge)/2,Se=me+ge,Ne=(ne-ue)/2,ke=Ne+ue;(ge>ne||ue>ne)&&(ue>ge?(ge=ge*ne/ue,me=(ne-ge)/2,Se=me+ge,Ne=0,ke=ne):(me=0,Se=ne,Ne=0,ke=ne));var Te=new go.Geometry,We=new go.PathFigure(ee,.5*ne,!0);Te.add(We),We.add(new go.PathSegment(go.PathSegment.Line,.7*ee,ke)),We.add(new go.PathSegment(go.PathSegment.Line,.7*ee,Se)),We.add(new go.PathSegment(go.PathSegment.Line,.2*ee,Se)),We.add(new go.PathSegment(go.PathSegment.Line,.2*ee,ke)),We.add(new go.PathSegment(go.PathSegment.Line,0,ke)),We.add(new go.PathSegment(go.PathSegment.Line,0,Ne)),We.add(new go.PathSegment(go.PathSegment.Line,.2*ee,Ne)),We.add(new go.PathSegment(go.PathSegment.Line,.2*ee,me)),We.add(new go.PathSegment(go.PathSegment.Line,.7*ee,me)),We.add(new go.PathSegment(go.PathSegment.Line,.7*ee,Ne).close()),Te.spot1=new go.Spot(0,me/ne);var $e=we(.7,ke/ne,1,.5,0,Se/ne,1,Se/ne,se());return Te.spot2=new go.Spot($e.x,$e.y),Ce($e),Te}),go.Shape.setFigureParameter("Pointer",0,new _e("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ze,ee,ne){var ge=ze?ze.parameter1:NaN;isNaN(ge)&&(ge=.1);var ue=new go.Geometry,me=new go.PathFigure(ee,.5*ne,!0);ue.add(me),me.add(new go.PathSegment(go.PathSegment.Line,0,ne)),me.add(new go.PathSegment(go.PathSegment.Line,ge*ee,.5*ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),ue.spot1=new go.Spot(ge,.35);var Se=we(.2,.65,1,.65,0,1,1,.5,se());return ue.spot2=new go.Spot(Se.x,Se.y),Ce(Se),ue}),go.Shape.setFigureParameter("RoundedPointer",0,new _e("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ze,ee,ne){var ge=ze?ze.parameter1:NaN;isNaN(ge)&&(ge=.3);var ue=new go.Geometry,me=new go.PathFigure(ee,.5*ne,!0);ue.add(me),me.add(new go.PathSegment(go.PathSegment.Line,0,ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ge*ee,.75*ne,ge*ee,.25*ne).close()),ue.spot1=new go.Spot(ge,.35);var Se=we(0,.65,1,.65,0,1,1,.5,se());return ue.spot2=new go.Spot(Se.x,Se.y),Ce(Se),ue}),go.Shape.setFigureParameter("SplitEndArrow",0,new _e("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ze,ee,ne){var ge=ze?ze.parameter1:NaN;isNaN(ge)&&(ge=.4);var ue=(.5-ge/2)*ne,me=(.5+ge/2)*ne,Se=new go.Geometry,Ne=new go.PathFigure(ee,.5*ne,!0);Se.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,.7*ee,ne)),Ne.add(new go.PathSegment(go.PathSegment.Line,.7*ee,me)),Ne.add(new go.PathSegment(go.PathSegment.Line,0,me)),Ne.add(new go.PathSegment(go.PathSegment.Line,.2*ee,.5*ne)),Ne.add(new go.PathSegment(go.PathSegment.Line,0,ue)),Ne.add(new go.PathSegment(go.PathSegment.Line,.7*ee,ue)),Ne.add(new go.PathSegment(go.PathSegment.Line,.7*ee,0).close()),Se.spot1=new go.Spot(.2,.3);var ke=we(.7,1,1,.5,0,me/ne,1,me/ne,se());return Se.spot2=new go.Spot(ke.x,ke.y),Ce(ke),Se}),go.Shape.setFigureParameter("SplitEndArrow2",0,new _e("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ze,ee,ne){var ge=ze?ze.parameter1:NaN;isNaN(ge)&&(ge=50);var ue=(ne-ge)/2,me=ue+ge;ge>ne&&(ue=0,me=ne);var Se=new go.Geometry,Ne=new go.PathFigure(ee,.5*ne,!0);Se.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,.7*ee,ne)),Ne.add(new go.PathSegment(go.PathSegment.Line,.7*ee,me)),Ne.add(new go.PathSegment(go.PathSegment.Line,0,me)),Ne.add(new go.PathSegment(go.PathSegment.Line,.2*ee,.5*ne)),Ne.add(new go.PathSegment(go.PathSegment.Line,0,ue)),Ne.add(new go.PathSegment(go.PathSegment.Line,.7*ee,ue)),Ne.add(new go.PathSegment(go.PathSegment.Line,.7*ee,0).close()),Se.spot1=new go.Spot(.2,ue/ne);var ke=we(.7,1,1,.5,0,me/ne,1,me/ne,se());return Se.spot2=new go.Spot(ke.x,ke.y),Ce(ke),Se}),go.Shape.setFigureParameter("SquareArrow",0,new _e("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ze,ee,ne){var ge=ze?ze.parameter1:NaN;isNaN(ge)&&(ge=.7);var ue=new go.Geometry,me=new go.PathFigure(ee,.5*ne,!0);return ue.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ge*ee,ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,0)),me.add(new go.PathSegment(go.PathSegment.Line,ge*ee,0).close()),ue.spot1=go.Spot.TopLeft,ue.spot2=new go.Spot(ge,1),ue}),go.Shape.defineFigureGenerator("Cone1",function(ze,ee,ne){var ge=new go.Geometry,ue=Ee*.5,me=Ee*.1,Se=new go.PathFigure(0,.9*ne,!0);return ge.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.5*ee,0)),Se.add(new go.PathSegment(go.PathSegment.Line,ee,.9*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,ne,ee,(.9+me)*ne,(.5+ue)*ee,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,(.5-ue)*ee,ne,0,(.9+me)*ne).close()),ge.spot1=new go.Spot(.25,.5),ge.spot2=new go.Spot(.75,.97),ge}),go.Shape.defineFigureGenerator("Cone2",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,.9*ne,!0);ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,ee,.9*ne,(1-.85/.9)*ee,ne,.85/.9*ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.9*ne).close());var me=new go.PathFigure(0,.9*ne,!1);return ge.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ee,.9*ne,(1-.85/.9)*ee,.8*ne,.85/.9*ee,.8*ne)),ge.spot1=new go.Spot(.25,.5),ge.spot2=new go.Spot(.75,.82),ge}),go.Shape.defineFigureGenerator("Cube1",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(.5*ee,ne,!0);ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,ee,.85*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,.15*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.15*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.85*ne).close());var me=new go.PathFigure(.5*ee,ne,!1);return ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.3*ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,.15*ne)),me.add(new go.PathSegment(go.PathSegment.Move,.5*ee,.3*ne)),me.add(new go.PathSegment(go.PathSegment.Line,ee,.15*ne)),ge.spot1=new go.Spot(0,.3),ge.spot2=new go.Spot(.5,.85),ge}),go.Shape.defineFigureGenerator("Cube2",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,.3*ne,!0);ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.7*ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,.7*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.3*ee,0).close());var me=new go.PathFigure(0,.3*ne,!1);return ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.7*ee,.3*ne)),me.add(new go.PathSegment(go.PathSegment.Line,ee,0)),me.add(new go.PathSegment(go.PathSegment.Move,.7*ee,.3*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.7*ee,ne)),ge.spot1=new go.Spot(0,.3),ge.spot2=new go.Spot(.7,1),ge}),go.Shape.defineFigureGenerator("Cylinder1",function(ze,ee,ne){var ge=ze?ze.parameter1:NaN;isNaN(ge)&&(ge=5),ge=Math.min(ge,ne/3);var ue=new go.Geometry,me=Ee*.5,Se=new go.PathFigure(0,ge,!0);ue.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,0,0,Ee*ge,(.5-me)*ee,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,1*ee,ge,(.5+me)*ee,0,1*ee,Ee*ge)),Se.add(new go.PathSegment(go.PathSegment.Line,ee,ne-ge)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,1*ne,1*ee,ne-Ee*ge,(.5+me)*ee,1*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-ge,(.5-me)*ee,1*ne,0,ne-Ee*ge)),Se.add(new go.PathSegment(go.PathSegment.Line,0,ge));var Ne=new go.PathFigure(ee,ge,!1);return ue.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,2*ge,1*ee,2*ge-Ee*ge,(.5+me)*ee,2*ge)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,0,ge,(.5-me)*ee,2*ge,0,2*ge-Ee*ge)),ue.spot1=new go.Spot(0,0,0,2*ge),ue.spot2=new go.Spot(1,1),ue}),go.Shape.defineFigureGenerator("Cylinder2",function(ze,ee,ne){var ge=ze?ze.parameter1:NaN;isNaN(ge)&&(ge=5),ge=Math.min(ge,ne/3);var ue=new go.Geometry,me=Ee*.5,Se=new go.PathFigure(0,ne-ge,!0);ue.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,0,ge)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,0,0,Ee*ge,(.5-me)*ee,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ee,ge,(.5+me)*ee,0,ee,Ee*ge)),Se.add(new go.PathSegment(go.PathSegment.Line,ee,ne-ge)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,ne,ee,ne-Ee*ge,(.5+me)*ee,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-ge,(.5-me)*ee,ne,0,ne-Ee*ge));var Ne=new go.PathFigure(0,ne-ge,!1);return ue.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,ne-2*ge,0,ne-ge-Ee*ge,(.5-me)*ee,ne-2*ge)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,ee,ne-ge,(.5+me)*ee,ne-2*ge,ee,ne-ge-Ee*ge)),ue.spot1=new go.Spot(0,0),ue.spot2=new go.Spot(1,1,0,-2*ge),ue}),go.Shape.defineFigureGenerator("Cylinder3",function(ze,ee,ne){var ge=ze?ze.parameter1:NaN;isNaN(ge)&&(ge=5),ge=Math.min(ge,ee/3);var ue=new go.Geometry,me=Ee*.5,Se=new go.PathFigure(ge,0,!0);ue.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ee-ge,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ee,.5*ne,ee-Ee*ge,0,ee,(.5-me)*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ee-ge,ne,ee,(.5+me)*ne,ee-Ee*ge,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,ge,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,Ee*ge,ne,0,(.5+me)*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ge,0,0,(.5-me)*ne,Ee*ge,0));var Ne=new go.PathFigure(ge,0,!1);return ue.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,2*ge,.5*ne,ge+Ee*ge,0,2*ge,(.5-me)*ne)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,ge,ne,2*ge,(.5+me)*ne,ge+Ee*ge,ne)),ue.spot1=new go.Spot(0,0,2*ge,0),ue.spot2=new go.Spot(1,1),ue}),go.Shape.defineFigureGenerator("Cylinder4",function(ze,ee,ne){var ge=ze?ze.parameter1:NaN;isNaN(ge)&&(ge=5),ge=Math.min(ge,ee/3);var ue=new go.Geometry,me=Ee*.5,Se=new go.PathFigure(ee-ge,0,!0);ue.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,ee,.5*ne,ee-Ee*ge,0,ee,(.5-me)*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ee-ge,ne,ee,(.5+me)*ne,ee-Ee*ge,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,ge,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,Ee*ge,ne,0,(.5+me)*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ge,0,0,(.5-me)*ne,Ee*ge,0)),Se.add(new go.PathSegment(go.PathSegment.Line,ee-ge,0));var Ne=new go.PathFigure(ee-ge,0,!1);return ue.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,ee-2*ge,.5*ne,ee-ge-Ee*ge,0,ee-2*ge,(.5-me)*ne)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,ee-ge,ne,ee-2*ge,(.5+me)*ne,ee-ge-Ee*ge,ne)),ue.spot1=new go.Spot(0,0),ue.spot2=new go.Spot(1,1,-2*ge,0),ue}),go.Shape.defineFigureGenerator("Prism1",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(.25*ee,.25*ne,!0);ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.75*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var me=new go.PathFigure(.25*ee,.25*ne,!1);return ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.5*ee,ne)),ge.spot1=new go.Spot(.408,.172),ge.spot2=new go.Spot(.833,.662),ge}),go.Shape.defineFigureGenerator("Prism2",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,.25*ne,!0);ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.75*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,.25*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.75*ee,.75*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var me=new go.PathFigure(0,ne,!1);return ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.25*ee,.5*ne)),me.add(new go.PathSegment(go.PathSegment.Line,ee,.25*ne)),me.add(new go.PathSegment(go.PathSegment.Move,0,.25*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.25*ee,.5*ne)),ge.spot1=new go.Spot(.25,.5),ge.spot2=new go.Spot(.75,.75),ge}),go.Shape.defineFigureGenerator("Pyramid1",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(.5*ee,0,!0);ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,ee,.75*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.75*ne).close());var me=new go.PathFigure(.5*ee,0,!1);return ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.5*ee,ne)),ge.spot1=new go.Spot(.25,.367),ge.spot2=new go.Spot(.75,.875),ge}),go.Shape.defineFigureGenerator("Pyramid2",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(.5*ee,0,!0);ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,ee,.85*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.85*ne).close());var me=new go.PathFigure(.5*ee,0,!1);return ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.7*ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,.85*ne)),me.add(new go.PathSegment(go.PathSegment.Move,.5*ee,.7*ne)),me.add(new go.PathSegment(go.PathSegment.Line,ee,.85*ne)),ge.spot1=new go.Spot(.25,.367),ge.spot2=new go.Spot(.75,.875),ge}),go.Shape.defineFigureGenerator("Actor",function(ze,ee,ne){var ge=new go.Geometry,ue=.2,me=.1,Se=Ee*ue,Ne=Ee*me,ke=.5,Te=.1,We=new go.PathFigure(ke*ee,(Te+me)*ne,!0);ge.add(We),We.add(new go.PathSegment(go.PathSegment.Bezier,(ke-ue)*ee,Te*ne,(ke-Se)*ee,(Te+me)*ne,(ke-ue)*ee,(Te+Ne)*ne)),We.add(new go.PathSegment(go.PathSegment.Bezier,ke*ee,(Te-me)*ne,(ke-ue)*ee,(Te-Ne)*ne,(ke-Se)*ee,(Te-me)*ne)),We.add(new go.PathSegment(go.PathSegment.Bezier,(ke+ue)*ee,Te*ne,(ke+Se)*ee,(Te-me)*ne,(ke+ue)*ee,(Te-Ne)*ne)),We.add(new go.PathSegment(go.PathSegment.Bezier,ke*ee,(Te+me)*ne,(ke+ue)*ee,(Te+Ne)*ne,(ke+Se)*ee,(Te+me)*ne));var $e=.05,st=Ee*$e;ke=.05,Te=.25;var ut=new go.PathFigure(.5*ee,.2*ne,!0);return ge.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.95*ee,.2*ne)),ke=.95,Te=.25,ut.add(new go.PathSegment(go.PathSegment.Bezier,(ke+$e)*ee,Te*ne,(ke+st)*ee,(Te-$e)*ne,(ke+$e)*ee,(Te-st)*ne)),ut.add(new go.PathSegment(go.PathSegment.Line,ee,.6*ne)),ut.add(new go.PathSegment(go.PathSegment.Line,.85*ee,.6*ne)),ut.add(new go.PathSegment(go.PathSegment.Line,.85*ee,.35*ne)),$e=.025,st=Ee*$e,ke=.825,Te=.35,ut.add(new go.PathSegment(go.PathSegment.Bezier,ke*ee,(Te-$e)*ne,(ke+$e)*ee,(Te-st)*ne,(ke+st)*ee,(Te-$e)*ne)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(ke-$e)*ee,Te*ne,(ke-st)*ee,(Te-$e)*ne,(ke-$e)*ee,(Te-st)*ne)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*ee,ne)),ut.add(new go.PathSegment(go.PathSegment.Line,.55*ee,ne)),ut.add(new go.PathSegment(go.PathSegment.Line,.55*ee,.7*ne)),$e=.05,st=Ee*$e,ke=.5,Te=.7,ut.add(new go.PathSegment(go.PathSegment.Bezier,ke*ee,(Te-$e)*ne,(ke+$e)*ee,(Te-st)*ne,(ke+st)*ee,(Te-$e)*ne)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(ke-$e)*ee,Te*ne,(ke-st)*ee,(Te-$e)*ne,(ke-$e)*ee,(Te-st)*ne)),ut.add(new go.PathSegment(go.PathSegment.Line,.45*ee,ne)),ut.add(new go.PathSegment(go.PathSegment.Line,.2*ee,ne)),ut.add(new go.PathSegment(go.PathSegment.Line,.2*ee,.35*ne)),$e=.025,st=Ee*$e,ke=.175,Te=.35,ut.add(new go.PathSegment(go.PathSegment.Bezier,ke*ee,(Te-$e)*ne,(ke+$e)*ee,(Te-st)*ne,(ke+st)*ee,(Te-$e)*ne)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(ke-$e)*ee,Te*ne,(ke-st)*ee,(Te-$e)*ne,(ke-$e)*ee,(Te-st)*ne)),ut.add(new go.PathSegment(go.PathSegment.Line,.15*ee,.6*ne)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.6*ne)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne)),$e=.05,st=Ee*$e,ke=.05,Te=.25,ut.add(new go.PathSegment(go.PathSegment.Bezier,ke*ee,(Te-$e)*ne,(ke-$e)*ee,(Te-st)*ne,(ke-st)*ee,(Te-$e)*ne)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.2*ne)),ge.spot1=new go.Spot(.2,.2),ge.spot2=new go.Spot(.8,.65),ge}),go.Shape.setFigureParameter("Card",0,new _e("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ze,ee,ne){var ge=ze?ze.parameter1:NaN;isNaN(ge)&&(ge=.2);var ue=new go.Geometry,me=new go.PathFigure(ee,0,!0);return ue.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,ge*ne)),me.add(new go.PathSegment(go.PathSegment.Line,ge*ee,0).close()),ue.spot1=new go.Spot(0,ge),ue.spot2=go.Spot.BottomRight,ue}),go.Shape.defineFigureGenerator("Collate",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(.5*ee,.5*ne,!0);ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,0)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.5*ne));var me=new go.PathFigure(.5*ee,.5*ne,!0);return ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,ne)),me.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.5*ne)),ge.spot1=new go.Spot(.25,0),ge.spot2=new go.Spot(.75,.25),ge}),go.Shape.defineFigureGenerator("CreateRequest",function(ze,ee,ne){var ge=new go.Geometry,ue=ze?ze.parameter1:NaN;isNaN(ue)&&(ue=.1);var me=new go.PathFigure(0,0,!0);ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ee,0)),me.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var Se=new go.PathFigure(0,ue*ne,!1);return ge.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ee,ue*ne)),Se.add(new go.PathSegment(go.PathSegment.Move,0,(1-ue)*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,ee,(1-ue)*ne)),ge}),go.Shape.defineFigureGenerator("Database",function(ze,ee,ne){var ge=new go.Geometry,ue=Ee*.5,me=Ee*.1,Se=new go.PathFigure(ee,.1*ne,!0);ge.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ee,.9*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,ne,ee,(.9+me)*ne,(.5+ue)*ee,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,(.5-ue)*ee,ne,0,(.9+me)*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,0,.1*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,0,0,(.1-me)*ne,(.5-ue)*ee,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ee,.1*ne,(.5+ue)*ee,0,ee,(.1-me)*ne));var Ne=new go.PathFigure(ee,.1*ne,!1);return ge.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.2*ne,ee,(.1+me)*ne,(.5+ue)*ee,.2*ne)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ne,(.5-ue)*ee,.2*ne,0,(.1+me)*ne)),Ne.add(new go.PathSegment(go.PathSegment.Move,ee,.2*ne)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.3*ne,ee,(.2+me)*ne,(.5+ue)*ee,.3*ne)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ne,(.5-ue)*ee,.3*ne,0,(.2+me)*ne)),Ne.add(new go.PathSegment(go.PathSegment.Move,ee,.3*ne)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.4*ne,ee,(.3+me)*ne,(.5+ue)*ee,.4*ne)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ne,(.5-ue)*ee,.4*ne,0,(.3+me)*ne)),ge.spot1=new go.Spot(0,.4),ge.spot2=new go.Spot(1,.9),ge}),go.Shape.defineFigureGenerator("DataStorage",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,0,!0);return ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.75*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.75*ee,ne,ee,0,ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*ee,.9*ne,.25*ee,.1*ne).close()),ge.spot1=new go.Spot(.226,0),ge.spot2=new go.Spot(.81,1),ge}),go.Shape.defineFigureGenerator("DiskStorage",function(ze,ee,ne){var ge=new go.Geometry,ue=Ee*.5,me=Ee*.1,Se=new go.PathFigure(ee,.1*ne,!0);ge.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ee,.9*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,ne,ee,(.9+me)*ne,(.5+ue)*ee,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,(.5-ue)*ee,ne,0,(.9+me)*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,0,.1*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,0,0,(.1-me)*ne,(.5-ue)*ee,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ee,.1*ne,(.5+ue)*ee,0,ee,(.1-me)*ne));var Ne=new go.PathFigure(ee,.1*ne,!1);return ge.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.2*ne,ee,(.1+me)*ne,(.5+ue)*ee,.2*ne)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ne,(.5-ue)*ee,.2*ne,0,(.1+me)*ne)),Ne.add(new go.PathSegment(go.PathSegment.Move,ee,.2*ne)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.3*ne,ee,(.2+me)*ne,(.5+ue)*ee,.3*ne)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ne,(.5-ue)*ee,.3*ne,0,(.2+me)*ne)),ge.spot1=new go.Spot(0,.3),ge.spot2=new go.Spot(1,.9),ge}),go.Shape.defineFigureGenerator("Display",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(.25*ee,0,!0);return ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.75*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.75*ee,ne,ee,0,ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.25*ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne).close()),ge.spot1=new go.Spot(.25,0),ge.spot2=new go.Spot(.75,1),ge}),go.Shape.defineFigureGenerator("DividedEvent",function(ze,ee,ne){var ge=new go.Geometry,ue=ze?ze.parameter1:NaN;isNaN(ue)?ue=.2:ue<.15&&(ue=.15);var me=Ee*.2,Se=new go.PathFigure(0,.2*ne,!0);ge.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,.2*ee,0,0,(.2-me)*ne,(.2-me)*ee,0)),Se.add(new go.PathSegment(go.PathSegment.Line,.8*ee,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ee,.2*ne,(.8+me)*ee,0,ee,(.2-me)*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,ee,.8*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.8*ee,ne,ee,(.8+me)*ne,(.8+me)*ee,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.2*ee,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*ne,(.2-me)*ee,ne,0,(.8+me)*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne));var Ne=new go.PathFigure(0,ue*ne,!1);return ge.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,ee,ue*ne)),ge}),go.Shape.defineFigureGenerator("DividedProcess",function(ze,ee,ne){var ge=new go.Geometry,ue=ze?ze.parameter1:NaN;(isNaN(ue)||ue<.1)&&(ue=.1);var me=new go.PathFigure(0,0,!0);ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ee,0)),me.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var Se=new go.PathFigure(0,ue*ne,!1);return ge.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ee,ue*ne)),ge}),go.Shape.defineFigureGenerator("Document",function(ze,ee,ne){var ge=new go.Geometry;ne=ne/.8;var ue=new go.PathFigure(0,.7*ne,!0);return ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,0)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,.7*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ne,.5*ee,.4*ne,.5*ee,ne).close()),ge.spot1=go.Spot.TopLeft,ge.spot2=new go.Spot(1,.6),ge}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ze,ee,ne){var ge=new go.Geometry,ue=ze?ze.parameter1:NaN;(isNaN(ue)||ue<.2)&&(ue=.2);var me=new go.PathFigure(0,0,!0);ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ee,0)),me.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var Se=new go.PathFigure(ue*ee,0,!1);return ge.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,0,ue*ne)),Se.add(new go.PathSegment(go.PathSegment.Move,ee,ue*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,(1-ue)*ee,0)),Se.add(new go.PathSegment(go.PathSegment.Move,0,(1-ue)*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,ue*ee,ne)),Se.add(new go.PathSegment(go.PathSegment.Move,(1-ue)*ee,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,ee,(1-ue)*ne)),ge}),go.Shape.defineFigureGenerator("ExternalProcess",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(.5*ee,0,!0);ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne).close());var me=new go.PathFigure(.1*ee,.4*ne,!1);return ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.1*ee,.6*ne)),me.add(new go.PathSegment(go.PathSegment.Move,.9*ee,.6*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.9*ee,.4*ne)),me.add(new go.PathSegment(go.PathSegment.Move,.6*ee,.1*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.4*ee,.1*ne)),me.add(new go.PathSegment(go.PathSegment.Move,.4*ee,.9*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.6*ee,.9*ne)),ge.spot1=new go.Spot(.25,.25),ge.spot2=new go.Spot(.75,.75),ge}),go.Shape.defineFigureGenerator("File",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,0,!0);ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.75*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,.25*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var me=new go.PathFigure(.75*ee,0,!1);return ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.75*ee,.25*ne)),me.add(new go.PathSegment(go.PathSegment.Line,ee,.25*ne)),ge.spot1=new go.Spot(0,.25),ge.spot2=go.Spot.BottomRight,ge}),go.Shape.defineFigureGenerator("Interrupt",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(ee,.5*ne,!0);ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,0)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne));var me=new go.PathFigure(ee,.5*ne,!1);ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ee,ne));var Se=new go.PathFigure(ee,.5*ne,!1);return ge.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ee,0)),ge.spot1=new go.Spot(0,.25),ge.spot2=new go.Spot(.5,.75),ge}),go.Shape.defineFigureGenerator("InternalStorage",function(ze,ee,ne){var ge=new go.Geometry,ue=ze?ze.parameter1:NaN,me=ze?ze.parameter2:NaN;isNaN(ue)&&(ue=.1),isNaN(me)&&(me=.1);var Se=new go.PathFigure(0,0,!0);ge.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ee,0)),Se.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var Ne=new go.PathFigure(ue*ee,0,!1);return ge.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,ue*ee,ne)),Ne.add(new go.PathSegment(go.PathSegment.Move,0,me*ne)),Ne.add(new go.PathSegment(go.PathSegment.Line,ee,me*ne)),ge}),go.Shape.defineFigureGenerator("Junction",function(ze,ee,ne){var ge=new go.Geometry,ue=1/Math.SQRT2,me=(1-1/Math.SQRT2)/2,Se=Ee*.5,Ne=.5,ke=new go.PathFigure(ee,Ne*ne,!0);ge.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,Ne*ee,ne,ee,(Ne+Se)*ne,(Ne+Se)*ee,ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,0,Ne*ne,(Ne-Se)*ee,ne,0,(Ne+Se)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,Ne*ee,0,0,(Ne-Se)*ne,(Ne-Se)*ee,0)),ke.add(new go.PathSegment(go.PathSegment.Bezier,ee,Ne*ne,(Ne+Se)*ee,0,ee,(Ne-Se)*ne));var Te=new go.PathFigure((me+ue)*ee,(me+ue)*ne,!1);return ge.add(Te),Te.add(new go.PathSegment(go.PathSegment.Line,me*ee,me*ne)),Te.add(new go.PathSegment(go.PathSegment.Move,me*ee,(me+ue)*ne)),Te.add(new go.PathSegment(go.PathSegment.Line,(me+ue)*ee,me*ne)),ge}),go.Shape.defineFigureGenerator("LinedDocument",function(ze,ee,ne){var ge=new go.Geometry;ne=ne/.8;var ue=new go.PathFigure(0,.7*ne,!0);ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,0)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,.7*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ne,.5*ee,.4*ne,.5*ee,ne).close());var me=new go.PathFigure(.1*ee,0,!1);return ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.1*ee,.75*ne)),ge.spot1=new go.Spot(.1,0),ge.spot2=new go.Spot(1,.6),ge}),go.Shape.defineFigureGenerator("LoopLimit",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,ne,!0);return ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.25*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.75*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,.25*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,ne).close()),ge.spot1=new go.Spot(0,.25),ge.spot2=go.Spot.BottomRight,ge}),go.Shape.defineFigureGenerator("MagneticTape",function(ze,ee,ne){var ge=new go.Geometry,ue=Ee*.5,me=.5,Se=new go.PathFigure(.5*ee,ne,!0);return ge.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,me*ne,(me-ue)*ee,ne,0,(me+ue)*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,me*ee,0,0,(me-ue)*ne,(me-ue)*ee,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ee,me*ne,(me+ue)*ee,0,ee,(me-ue)*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(me+.1)*ee,.9*ne,ee,(me+ue)*ne,(me+ue)*ee,.9*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,ee,.9*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.5*ee,ne)),ge.spot1=new go.Spot(.15,.15),ge.spot2=new go.Spot(.85,.8),ge}),go.Shape.defineFigureGenerator("ManualInput",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(ee,0,!0);return ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne).close()),ge.spot1=new go.Spot(0,.25),ge.spot2=go.Spot.BottomRight,ge}),go.Shape.defineFigureGenerator("MessageFromUser",function(ze,ee,ne){var ge=new go.Geometry,ue=ze?ze.parameter1:NaN;isNaN(ue)&&(ue=.7);var me=new go.PathFigure(0,0,!0);return ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ee,0)),me.add(new go.PathSegment(go.PathSegment.Line,ue*ee,.5*ne)),me.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),ge.spot1=go.Spot.TopLeft,ge}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ze,ee,ne){var ge=new go.Geometry,ue=ze?ze.parameter1:NaN;isNaN(ue)&&(ue=.25);var me=new go.PathFigure(0,0,!0);return ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.5*ee,ue*ne)),me.add(new go.PathSegment(go.PathSegment.Line,ee,0)),me.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),me.add(new go.PathSegment(go.PathSegment.Line,.5*ee,(1-ue)*ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),ge}),go.Shape.defineFigureGenerator("MicroformRecording",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,0,!0);return ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.75*ee,.25*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,.15*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,.85*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.75*ee,.75*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),ge.spot1=new go.Spot(0,.25),ge.spot2=new go.Spot(1,.75),ge}),go.Shape.defineFigureGenerator("MultiDocument",function(ze,ee,ne){var ge=new go.Geometry;ne=ne/.8;var ue=new go.PathFigure(ee,0,!0);ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.9*ee,.44*ne,.96*ee,.47*ne,.93*ee,.45*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*ee,.6*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.8*ee,.54*ne,.86*ee,.57*ne,.83*ee,.55*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.7*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ne,.4*ee,.4*ne,.4*ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.1*ee,.2*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.1*ee,.1*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*ee,.1*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*ee,0).close());var me=new go.PathFigure(.1*ee,.2*ne,!1);return ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.2*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.54*ne)),me.add(new go.PathSegment(go.PathSegment.Move,.2*ee,.1*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.9*ee,.1*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.9*ee,.44*ne)),ge.spot1=new go.Spot(0,.25),ge.spot2=new go.Spot(.8,.77),ge}),go.Shape.defineFigureGenerator("MultiProcess",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(.1*ee,.1*ne,!0);ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.2*ee,.1*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,.8*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*ee,.8*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*ee,.9*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.9*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.1*ee,.2*ne).close());var me=new go.PathFigure(.2*ee,.1*ne,!1);return ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.9*ee,.1*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.9*ee,.8*ne)),me.add(new go.PathSegment(go.PathSegment.Move,.1*ee,.2*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.2*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.9*ne)),ge.spot1=new go.Spot(0,.2),ge.spot2=new go.Spot(.8,1),ge}),go.Shape.defineFigureGenerator("OfflineStorage",function(ze,ee,ne){var ge=new go.Geometry,ue=ze?ze.parameter1:NaN;isNaN(ue)&&(ue=.1);var me=1-ue,Se=new go.PathFigure(0,0,!0);ge.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ee,0)),Se.add(new go.PathSegment(go.PathSegment.Line,.5*ee,ne).close());var Ne=new go.PathFigure(.5*ue*ee,ue*ne,!1);return ge.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,(1-.5*ue)*ee,ue*ne)),ge}),go.Shape.defineFigureGenerator("OffPageConnector",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,0,!0);return ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.75*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.75*ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),ge.spot1=go.Spot.TopLeft,ge.spot2=new go.Spot(.75,1),ge}),go.Shape.defineFigureGenerator("Or",function(ze,ee,ne){var ge=new go.Geometry,ue=Ee*.5,me=.5,Se=new go.PathFigure(ee,me*ne,!0);ge.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,me*ee,ne,ee,(me+ue)*ne,(me+ue)*ee,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,me*ne,(me-ue)*ee,ne,0,(me+ue)*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,me*ee,0,0,(me-ue)*ne,(me-ue)*ee,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ee,me*ne,(me+ue)*ee,0,ee,(me-ue)*ne));var Ne=new go.PathFigure(ee,.5*ne,!1);return ge.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),Ne.add(new go.PathSegment(go.PathSegment.Move,.5*ee,ne)),Ne.add(new go.PathSegment(go.PathSegment.Line,.5*ee,0)),ge}),go.Shape.defineFigureGenerator("PaperTape",function(ze,ee,ne){var ge=new go.Geometry;ne=ne/.8;var ue=new go.PathFigure(0,.7*ne,!0);return ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,.3*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ee,.3*ne,.5*ee,.6*ne,.5*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,.7*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ne,.5*ee,.4*ne,.5*ee,ne).close()),ge.spot1=new go.Spot(0,.49),ge.spot2=new go.Spot(1,.75),ge}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ze,ee,ne){var ge=new go.Geometry,ue=ze?ze.parameter1:NaN,me=ze?ze.parameter2:NaN;isNaN(ue)&&(ue=.1),isNaN(me)&&(me=.3);var Se=new go.PathFigure(0,0,!0);return ge.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ee,0)),Se.add(new go.PathSegment(go.PathSegment.Line,(1-me)*ee,.5*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),ge}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ze,ee,ne){var ge=new go.Geometry,ue=ze?ze.parameter1:NaN,me=ze?ze.parameter2:NaN;isNaN(ue)&&(ue=.1),isNaN(me)&&(me=.3);var Se=new go.PathFigure(0,0,!0);return ge.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,(1-me)*ee,0)),Se.add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,(1-me)*ee,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),ge}),go.Shape.defineFigureGenerator("Procedure",function(ze,ee,ne){var ge=new go.Geometry,ue=ze?ze.parameter1:NaN;isNaN(ue)&&(ue=.1);var me=new go.PathFigure(0,0,!0);ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ee,0)),me.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var Se=new go.PathFigure((1-ue)*ee,0,!1);return ge.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,(1-ue)*ee,ne)),Se.add(new go.PathSegment(go.PathSegment.Move,ue*ee,0)),Se.add(new go.PathSegment(go.PathSegment.Line,ue*ee,ne)),ge}),go.Shape.defineFigureGenerator("Process",function(ze,ee,ne){var ge=new go.Geometry,ue=ze?ze.parameter1:NaN;isNaN(ue)&&(ue=.1);var me=new go.PathFigure(0,0,!0);ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ee,0)),me.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var Se=new go.PathFigure(ue*ee,0,!1);return ge.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ue*ee,ne)),ge.spot2=go.Spot.BottomRight,ge}),go.Shape.defineFigureGenerator("Sort",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(.5*ee,0,!0);ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne).close());var me=new go.PathFigure(0,.5*ne,!1);return ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne)),ge.spot1=new go.Spot(.25,.25),ge.spot2=new go.Spot(.75,.5),ge}),go.Shape.defineFigureGenerator("Start",function(ze,ee,ne){var ge=new go.Geometry,ue=ze?ze.parameter1:NaN;isNaN(ue)&&(ue=.25);var me=new go.PathFigure(ue*ee,0,!0);ge.add(me),me.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*ee,.5*ne,.25*ee,.5*ne)),me.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*ee,.5*ne,.25*ee,.5*ne));var Se=new go.PathFigure(ue*ee,0,!1);return ge.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ue*ee,ne)),Se.add(new go.PathSegment(go.PathSegment.Move,(1-ue)*ee,0)),Se.add(new go.PathSegment(go.PathSegment.Line,(1-ue)*ee,ne)),ge.spot1=new go.Spot(ue,0),ge.spot2=new go.Spot(1-ue,1),ge}),go.Shape.defineFigureGenerator("Terminator",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(.25*ee,0,!0);return ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*ee,.5*ne,.25*ee,.5*ne)),ue.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*ee,.5*ne,.25*ee,.5*ne)),ge.spot1=new go.Spot(.23,0),ge.spot2=new go.Spot(.77,1),ge}),go.Shape.defineFigureGenerator("TransmittalTape",function(ze,ee,ne){var ge=new go.Geometry,ue=ze?ze.parameter1:NaN;isNaN(ue)&&(ue=.1);var me=new go.PathFigure(0,0,!0);return ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ee,0)),me.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),me.add(new go.PathSegment(go.PathSegment.Line,.75*ee,(1-ue)*ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,(1-ue)*ne).close()),ge.spot1=go.Spot.TopLeft,ge}),go.Shape.defineFigureGenerator("AndGate",function(ze,ee,ne){var ge=new go.Geometry,ue=Ee*.5,me=new go.PathFigure(0,0,!0);return ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.5*ee,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,ee,.5*ne,(.5+ue)*ee,0,ee,(.5-ue)*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,ne,ee,(.5+ue)*ne,(.5+ue)*ee,ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),ge.spot1=go.Spot.TopLeft,ge.spot2=new go.Spot(.55,1),ge}),go.Shape.defineFigureGenerator("Buffer",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,0,!0);return ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),ge.spot1=new go.Spot(0,.25),ge.spot2=new go.Spot(.5,.75),ge}),go.Shape.defineFigureGenerator("Clock",function(ze,ee,ne){var ge=new go.Geometry,ue=Ee*.5,me=.5,Se=new go.PathFigure(ee,me*ne,!0);ge.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,me*ee,ne,ee,(me+ue)*ne,(me+ue)*ee,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,me*ne,(me-ue)*ee,ne,0,(me+ue)*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,me*ee,0,0,(me-ue)*ne,(me-ue)*ee,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ee,me*ne,(me+ue)*ee,0,ee,(me-ue)*ne));var Ne=new go.PathFigure(ee,me*ne,!1);ge.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,ee,me*ne));var ke=new go.PathFigure(.8*ee,.75*ne,!1);return ge.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.25*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.6*ee,.25*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.6*ee,.75*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.4*ee,.75*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.4*ee,.25*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.2*ee,.25*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,.2*ee,.75*ne)),ge}),go.Shape.defineFigureGenerator("Ground",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(.5*ee,0,!1);return ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.4*ne)),ue.add(new go.PathSegment(go.PathSegment.Move,.2*ee,.6*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.6*ne)),ue.add(new go.PathSegment(go.PathSegment.Move,.3*ee,.8*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.7*ee,.8*ne)),ue.add(new go.PathSegment(go.PathSegment.Move,.4*ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*ee,ne)),ge}),go.Shape.defineFigureGenerator("Inverter",function(ze,ee,ne){var ge=new go.Geometry,ue=Ee*.1,me=.1,Se=.9,Ne=.5,ke=new go.PathFigure(.8*ee,.5*ne,!0);ge.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ke.add(new go.PathSegment(go.PathSegment.Line,0,0)),ke.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.5*ne));var Te=new go.PathFigure((Se+me)*ee,Ne*ne,!0);return ge.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(Ne+me)*ne,(Se+me)*ee,(Ne+ue)*ne,(Se+ue)*ee,(Ne+me)*ne)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(Se-me)*ee,Ne*ne,(Se-ue)*ee,(Ne+me)*ne,(Se-me)*ee,(Ne+ue)*ne)),Te.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(Ne-me)*ne,(Se-me)*ee,(Ne-ue)*ne,(Se-ue)*ee,(Ne-me)*ne)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(Se+me)*ee,Ne*ne,(Se+ue)*ee,(Ne-me)*ne,(Se+me)*ee,(Ne-ue)*ne)),ge.spot1=new go.Spot(0,.25),ge.spot2=new go.Spot(.4,.75),ge}),go.Shape.defineFigureGenerator("NandGate",function(ze,ee,ne){var ge=new go.Geometry,ue=Ee*.5,me=Ee*.4,Se=Ee*.1,Ne=.1,ke=.9,Te=.5,We=new go.PathFigure(.8*ee,.5*ne,!0);ge.add(We),We.add(new go.PathSegment(go.PathSegment.Bezier,.4*ee,ne,.8*ee,(.5+me)*ne,(.4+ue)*ee,ne)),We.add(new go.PathSegment(go.PathSegment.Line,0,ne)),We.add(new go.PathSegment(go.PathSegment.Line,0,0)),We.add(new go.PathSegment(go.PathSegment.Line,.4*ee,0)),We.add(new go.PathSegment(go.PathSegment.Bezier,.8*ee,.5*ne,(.4+ue)*ee,0,.8*ee,(.5-me)*ne));var $e=new go.PathFigure((ke+Ne)*ee,Te*ne,!0);return ge.add($e),$e.add(new go.PathSegment(go.PathSegment.Bezier,ke*ee,(Te+Ne)*ne,(ke+Ne)*ee,(Te+Se)*ne,(ke+Se)*ee,(Te+Ne)*ne)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Ne)*ee,Te*ne,(ke-Se)*ee,(Te+Ne)*ne,(ke-Ne)*ee,(Te+Se)*ne)),$e.add(new go.PathSegment(go.PathSegment.Bezier,ke*ee,(Te-Ne)*ne,(ke-Ne)*ee,(Te-Se)*ne,(ke-Se)*ee,(Te-Ne)*ne)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(ke+Ne)*ee,Te*ne,(ke+Se)*ee,(Te-Ne)*ne,(ke+Ne)*ee,(Te-Se)*ne)),ge.spot1=new go.Spot(0,.05),ge.spot2=new go.Spot(.55,.95),ge}),go.Shape.defineFigureGenerator("NorGate",function(ze,ee,ne){var ge=new go.Geometry,ue=.5,me=Ee*ue,Se=0,Ne=.5,ke=new go.PathFigure(.8*ee,.5*ne,!0);ge.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,0,ne,.7*ee,(Ne+me)*ne,(Se+me)*ee,(Ne+ue)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*ee,.75*ne,.25*ee,.25*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,.8*ee,.5*ne,(Se+me)*ee,(Ne-ue)*ne,.7*ee,(Ne-me)*ne)),ue=.1,me=Ee*.1,Se=.9,Ne=.5;var Te=new go.PathFigure((Se-ue)*ee,Ne*ne,!0);return ge.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(Ne-ue)*ne,(Se-ue)*ee,(Ne-me)*ne,(Se-me)*ee,(Ne-ue)*ne)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ue)*ee,Ne*ne,(Se+me)*ee,(Ne-ue)*ne,(Se+ue)*ee,(Ne-me)*ne)),Te.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(Ne+ue)*ne,(Se+ue)*ee,(Ne+me)*ne,(Se+me)*ee,(Ne+ue)*ne)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ue)*ee,Ne*ne,(Se-me)*ee,(Ne+ue)*ne,(Se-ue)*ee,(Ne+me)*ne)),ge.spot1=new go.Spot(.2,.25),ge.spot2=new go.Spot(.6,.75),ge}),go.Shape.defineFigureGenerator("OrGate",function(ze,ee,ne){var ge=new go.Geometry,ue=.5,me=Ee*ue,Se=0,Ne=.5,ke=new go.PathFigure(0,0,!0);return ge.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,ee,.5*ne,(Se+me+me)*ee,(Ne-ue)*ne,.8*ee,(Ne-me)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,0,ne,.8*ee,(Ne+me)*ne,(Se+me+me)*ee,(Ne+ue)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*ee,.75*ne,.25*ee,.25*ne).close()),ge.spot1=new go.Spot(.2,.25),ge.spot2=new go.Spot(.75,.75),ge}),go.Shape.defineFigureGenerator("XnorGate",function(ze,ee,ne){var ge=new go.Geometry,ue=.5,me=Ee*ue,Se=.2,Ne=.5,ke=new go.PathFigure(.1*ee,0,!1);ge.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,.1*ee,ne,.35*ee,.25*ne,.35*ee,.75*ne));var Te=new go.PathFigure(.8*ee,.5*ne,!0);ge.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,.2*ee,ne,.7*ee,(Ne+me)*ne,(Se+me)*ee,(Ne+ue)*ne)),Te.add(new go.PathSegment(go.PathSegment.Bezier,.2*ee,0,.45*ee,.75*ne,.45*ee,.25*ne)),Te.add(new go.PathSegment(go.PathSegment.Bezier,.8*ee,.5*ne,(Se+me)*ee,(Ne-ue)*ne,.7*ee,(Ne-me)*ne)),ue=.1,me=Ee*.1,Se=.9,Ne=.5;var We=new go.PathFigure((Se-ue)*ee,Ne*ne,!0);return ge.add(We),We.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(Ne-ue)*ne,(Se-ue)*ee,(Ne-me)*ne,(Se-me)*ee,(Ne-ue)*ne)),We.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ue)*ee,Ne*ne,(Se+me)*ee,(Ne-ue)*ne,(Se+ue)*ee,(Ne-me)*ne)),We.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(Ne+ue)*ne,(Se+ue)*ee,(Ne+me)*ne,(Se+me)*ee,(Ne+ue)*ne)),We.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ue)*ee,Ne*ne,(Se-me)*ee,(Ne+ue)*ne,(Se-ue)*ee,(Ne+me)*ne)),ge.spot1=new go.Spot(.4,.25),ge.spot2=new go.Spot(.65,.75),ge}),go.Shape.defineFigureGenerator("XorGate",function(ze,ee,ne){var ge=new go.Geometry,ue=.5,me=Ee*ue,Se=.2,Ne=.5,ke=new go.PathFigure(.1*ee,0,!1);ge.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,.1*ee,ne,.35*ee,.25*ne,.35*ee,.75*ne));var Te=new go.PathFigure(.2*ee,0,!0);return ge.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,ee,.5*ne,(Se+me)*ee,(Ne-ue)*ne,.9*ee,(Ne-me)*ne)),Te.add(new go.PathSegment(go.PathSegment.Bezier,.2*ee,ne,.9*ee,(Ne+me)*ne,(Se+me)*ee,(Ne+ue)*ne)),Te.add(new go.PathSegment(go.PathSegment.Bezier,.2*ee,0,.45*ee,.75*ne,.45*ee,.25*ne).close()),ge.spot1=new go.Spot(.4,.25),ge.spot2=new go.Spot(.8,.75),ge}),go.Shape.defineFigureGenerator("Capacitor",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,0,!1);return ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ue.add(new go.PathSegment(go.PathSegment.Move,ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),ge}),go.Shape.defineFigureGenerator("Resistor",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,.5*ne,!1);return ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.1*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.3*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.7*ee,.5*ne)),ge}),go.Shape.defineFigureGenerator("Inductor",function(ze,ee,ne){var ge=new go.Geometry,ue=Ee*.1,me=.1,Se=.1,Ne=.5,ke=new go.PathFigure((Se-ue*.5)*ee,ne,!1);return ge.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,(Se+me)*ee,0,(Se-ue)*ee,ne,(Se-me)*ee,0)),Se=.3,ke.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,ne,(Se+me)*ee,0,(Se+ue)*ee,ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(Se+me)*ee,0,(Se-ue)*ee,ne,(Se-me)*ee,0)),Se=.5,ke.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,ne,(Se+me)*ee,0,(Se+ue)*ee,ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(Se+me)*ee,0,(Se-ue)*ee,ne,(Se-me)*ee,0)),Se=.7,ke.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,ne,(Se+me)*ee,0,(Se+ue)*ee,ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(Se+me)*ee,0,(Se-ue)*ee,ne,(Se-me)*ee,0)),Se=.9,ke.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ue*.5)*ee,ne,(Se+me)*ee,0,(Se+ue)*ee,ne)),ge}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ze,ee,ne){var ge=new go.Geometry,ue=Ee*.5,me=.5,Se=.5,Ne=.5,ke=new go.PathFigure((Se-me)*ee,Ne*ne,!1);return ge.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(Ne-me)*ne,(Se-me)*ee,(Ne-ue)*ne,(Se-ue)*ee,(Ne-me)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(Se+me)*ee,Ne*ne,(Se+ue)*ee,(Ne-me)*ne,(Se+me)*ee,(Ne-ue)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(Ne+me)*ne,(Se+me)*ee,(Ne+ue)*ne,(Se+ue)*ee,(Ne+me)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(Se-me)*ee,Ne*ne,(Se-ue)*ee,(Ne+me)*ne,(Se-me)*ee,(Ne+ue)*ne)),ke.add(new go.PathSegment(go.PathSegment.Move,(Se-me+.1)*ee,Ne*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(Se+me-.1)*ee,Ne*ne,Se*ee,(Ne-me)*ne,Se*ee,(Ne+me)*ne)),ge}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,.75*ne,!1);return ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne)),ue.add(new go.PathSegment(go.PathSegment.Move,ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),ge}),go.Shape.defineFigureGenerator("Diode",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(ee,0,!1);return ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,0)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),ge.spot1=new go.Spot(0,.25),ge.spot2=new go.Spot(.5,.75),ge}),go.Shape.defineFigureGenerator("Wifi",function(ze,ee,ne){var ge=new go.Geometry,ue=ee,me=ne;ee=ee*.38,ne=ne*.6;var Se=Ee*.8,Ne=.8,ke=0,Te=.5,We=(ue-ee)/2,$e=(me-ne)/2,st=new go.PathFigure(ke*ee+We,(Te+Ne)*ne+$e,!0);ge.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Ne)*ee+We,Te*ne+$e,(ke-Se)*ee+We,(Te+Ne)*ne+$e,(ke-Ne)*ee+We,(Te+Se)*ne+$e)),st.add(new go.PathSegment(go.PathSegment.Bezier,ke*ee+We,(Te-Ne)*ne+$e,(ke-Ne)*ee+We,(Te-Se)*ne+$e,(ke-Se)*ee+We,(Te-Ne)*ne+$e)),st.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Ne+Se*.5)*ee+We,Te*ne+$e,ke*ee+We,(Te-Ne)*ne+$e,(ke-Ne+Se*.5)*ee+We,(Te-Se)*ne+$e)),st.add(new go.PathSegment(go.PathSegment.Bezier,ke*ee+We,(Te+Ne)*ne+$e,(ke-Ne+Se*.5)*ee+We,(Te+Se)*ne+$e,ke*ee+We,(Te+Ne)*ne+$e).close()),Se=Ee*.4,Ne=.4,ke=.2,Te=.5;var ut=new go.PathFigure(ke*ee+We,(Te+Ne)*ne+$e,!0);ge.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Ne)*ee+We,Te*ne+$e,(ke-Se)*ee+We,(Te+Ne)*ne+$e,(ke-Ne)*ee+We,(Te+Se)*ne+$e)),ut.add(new go.PathSegment(go.PathSegment.Bezier,ke*ee+We,(Te-Ne)*ne+$e,(ke-Ne)*ee+We,(Te-Se)*ne+$e,(ke-Se)*ee+We,(Te-Ne)*ne+$e)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Ne+Se*.5)*ee+We,Te*ne+$e,ke*ee+We,(Te-Ne)*ne+$e,(ke-Ne+Se*.5)*ee+We,(Te-Se)*ne+$e)),ut.add(new go.PathSegment(go.PathSegment.Bezier,ke*ee+We,(Te+Ne)*ne+$e,(ke-Ne+Se*.5)*ee+We,(Te+Se)*ne+$e,ke*ee+We,(Te+Ne)*ne+$e).close()),Se=Ee*.2,Ne=.2,ke=.5,Te=.5;var Mt=new go.PathFigure((ke-Ne)*ee+We,Te*ne+$e,!0);ge.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,ke*ee+We,(Te-Ne)*ne+$e,(ke-Ne)*ee+We,(Te-Se)*ne+$e,(ke-Se)*ee+We,(Te-Ne)*ne+$e)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(ke+Ne)*ee+We,Te*ne+$e,(ke+Se)*ee+We,(Te-Ne)*ne+$e,(ke+Ne)*ee+We,(Te-Se)*ne+$e)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,ke*ee+We,(Te+Ne)*ne+$e,(ke+Ne)*ee+We,(Te+Se)*ne+$e,(ke+Se)*ee+We,(Te+Ne)*ne+$e)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Ne)*ee+We,Te*ne+$e,(ke-Se)*ee+We,(Te+Ne)*ne+$e,(ke-Ne)*ee+We,(Te+Se)*ne+$e)),Se=Ee*.4,Ne=.4,ke=.8,Te=.5;var nt=new go.PathFigure(ke*ee+We,(Te-Ne)*ne+$e,!0);ge.add(nt),nt.add(new go.PathSegment(go.PathSegment.Bezier,(ke+Ne)*ee+We,Te*ne+$e,(ke+Se)*ee+We,(Te-Ne)*ne+$e,(ke+Ne)*ee+We,(Te-Se)*ne+$e)),nt.add(new go.PathSegment(go.PathSegment.Bezier,ke*ee+We,(Te+Ne)*ne+$e,(ke+Ne)*ee+We,(Te+Se)*ne+$e,(ke+Se)*ee+We,(Te+Ne)*ne+$e)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(ke+Ne-Se*.5)*ee+We,Te*ne+$e,ke*ee+We,(Te+Ne)*ne+$e,(ke+Ne-Se*.5)*ee+We,(Te+Se)*ne+$e)),nt.add(new go.PathSegment(go.PathSegment.Bezier,ke*ee+We,(Te-Ne)*ne+$e,(ke+Ne-Se*.5)*ee+We,(Te-Se)*ne+$e,ke*ee+We,(Te-Ne)*ne+$e).close()),Se=Ee*.8,Ne=.8,ke=1,Te=.5;var $t=new go.PathFigure(ke*ee+We,(Te-Ne)*ne+$e,!0);return ge.add($t),$t.add(new go.PathSegment(go.PathSegment.Bezier,(ke+Ne)*ee+We,Te*ne+$e,(ke+Se)*ee+We,(Te-Ne)*ne+$e,(ke+Ne)*ee+We,(Te-Se)*ne+$e)),$t.add(new go.PathSegment(go.PathSegment.Bezier,ke*ee+We,(Te+Ne)*ne+$e,(ke+Ne)*ee+We,(Te+Se)*ne+$e,(ke+Se)*ee+We,(Te+Ne)*ne+$e)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(ke+Ne-Se*.5)*ee+We,Te*ne+$e,ke*ee+We,(Te+Ne)*ne+$e,(ke+Ne-Se*.5)*ee+We,(Te+Se)*ne+$e)),$t.add(new go.PathSegment(go.PathSegment.Bezier,ke*ee+We,(Te-Ne)*ne+$e,(ke+Ne-Se*.5)*ee+We,(Te-Se)*ne+$e,ke*ee+We,(Te-Ne)*ne+$e).close()),ge}),go.Shape.defineFigureGenerator("Email",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,0,!0);ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var me=new go.PathFigure(0,0,!1);return ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.6*ne)),me.add(new go.PathSegment(go.PathSegment.Line,ee,0)),me.add(new go.PathSegment(go.PathSegment.Move,0,ne)),me.add(new go.PathSegment(go.PathSegment.Line,.45*ee,.54*ne)),me.add(new go.PathSegment(go.PathSegment.Move,ee,ne)),me.add(new go.PathSegment(go.PathSegment.Line,.55*ee,.54*ne)),ge}),go.Shape.defineFigureGenerator("Ethernet",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(.35*ee,0,!0);ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.65*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.65*ee,.4*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.35*ee,.4*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.35*ee,0).close());var me=new go.PathFigure(.1*ee,ne,!0,!0);ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.4*ee,ne)),me.add(new go.PathSegment(go.PathSegment.Line,.4*ee,.6*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.1*ee,.6*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.1*ee,ne).close());var Se=new go.PathFigure(.6*ee,ne,!0,!0);ge.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.9*ee,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.9*ee,.6*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.6*ee,.6*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.6*ee,ne).close());var Ne=new go.PathFigure(0,.5*ne,!1);return ge.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne)),Ne.add(new go.PathSegment(go.PathSegment.Move,.5*ee,.5*ne)),Ne.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.4*ne)),Ne.add(new go.PathSegment(go.PathSegment.Move,.75*ee,.5*ne)),Ne.add(new go.PathSegment(go.PathSegment.Line,.75*ee,.6*ne)),Ne.add(new go.PathSegment(go.PathSegment.Move,.25*ee,.5*ne)),Ne.add(new go.PathSegment(go.PathSegment.Line,.25*ee,.6*ne)),ge}),go.Shape.defineFigureGenerator("Power",function(ze,ee,ne){var ge=new go.Geometry,ue=Ee*.4,me=.4,Se=.5,Ne=.5,ke=se(),Te=se(),We=se(),$e=se();Ie(Se,Ne-me,Se+ue,Ne-me,Se+me,Ne-ue,Se+me,Ne,.5,ke,ke,Te,We,$e);var st=oe(Te.x,Te.y),ut=new go.PathFigure(Te.x*ee,Te.y*ne,!0);ge.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,(Se+me)*ee,Ne*ne,We.x*ee,We.y*ne,$e.x*ee,$e.y*ne)),ut.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(Ne+me)*ne,(Se+me)*ee,(Ne+ue)*ne,(Se+ue)*ee,(Ne+me)*ne)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(Se-me)*ee,Ne*ne,(Se-ue)*ee,(Ne+me)*ne,(Se-me)*ee,(Ne+ue)*ne)),Ie(Se-me,Ne,Se-me,Ne-ue,Se-ue,Ne-me,Se,Ne-me,.5,We,$e,Te,ke,ke),ut.add(new go.PathSegment(go.PathSegment.Bezier,Te.x*ee,Te.y*ne,We.x*ee,We.y*ne,$e.x*ee,$e.y*ne)),ue=Ee*.3,me=.3,Ie(Se-me,Ne,Se-me,Ne-ue,Se-ue,Ne-me,Se,Ne-me,.5,We,$e,Te,ke,ke),ut.add(new go.PathSegment(go.PathSegment.Line,Te.x*ee,Te.y*ne)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(Se-me)*ee,Ne*ne,$e.x*ee,$e.y*ne,We.x*ee,We.y*ne)),ut.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(Ne+me)*ne,(Se-me)*ee,(Ne+ue)*ne,(Se-ue)*ee,(Ne+me)*ne)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(Se+me)*ee,Ne*ne,(Se+ue)*ee,(Ne+me)*ne,(Se+me)*ee,(Ne+ue)*ne)),Ie(Se,Ne-me,Se+ue,Ne-me,Se+me,Ne-ue,Se+me,Ne,.5,ke,ke,Te,We,$e),ut.add(new go.PathSegment(go.PathSegment.Bezier,Te.x*ee,Te.y*ne,$e.x*ee,$e.y*ne,We.x*ee,We.y*ne).close());var ut=new go.PathFigure(.45*ee,0,!0);return ge.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.45*ee,.5*ne)),ut.add(new go.PathSegment(go.PathSegment.Line,.55*ee,.5*ne)),ut.add(new go.PathSegment(go.PathSegment.Line,.55*ee,0).close()),Ce(ke),Ce(Te),Ce(We),Ce($e),Ce(st),ge.spot1=new go.Spot(.25,.45),ge.spot2=new go.Spot(.75,.8),ge}),go.Shape.defineFigureGenerator("Fallout",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,ne/2,!0);ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Arc,180,360,ee/2,ne/2,ee/2,ne/2));function me(Se,Ne,ke){Se.add(new go.PathSegment(go.PathSegment.Move,(.3+Ne)*ee,(.8+ke)*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,(.5+Ne)*ee,(.5+ke)*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,(.1+Ne)*ee,(.5+ke)*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,(.3+Ne)*ee,(.8+ke)*ne).close())}return me(ue,0,0),me(ue,.4,0),me(ue,.2,-.3),ge}),go.Shape.defineFigureGenerator("IrritationHazard",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(.2*ee,0,!0);return ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.3*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,.2*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.7*ee,.5*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,.8*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.7*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.3*ee,.5*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne).close()),ge.spot1=new go.Spot(.3,.3),ge.spot2=new go.Spot(.7,.7),ge}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(.37*ee,0,!0);return ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.11*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.77*ee,.04*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.33*ee,.49*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,.37*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.63*ee,.86*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.77*ee,.91*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.34*ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.34*ee,.78*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.44*ee,.8*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.65*ee,.56*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.68*ne).close()),ge}),go.Shape.defineFigureGenerator("FireHazard",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(.1*ee,ne,!0);return ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.29*ee,0,-.25*ee,.63*ne,.45*ee,.44*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.51*ee,.42*ne,.48*ee,.17*ne,.54*ee,.35*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.59*ee,.18*ne,.59*ee,.29*ne,.58*ee,.28*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.75*ee,.6*ne,.8*ee,.34*ne,.88*ee,.43*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.88*ee,.31*ne,.87*ee,.48*ne,.88*ee,.43*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.9*ee,ne,1.17*ee,.76*ne,.82*ee,.8*ne).close()),ge.spot1=new go.Spot(.07,.445),ge.spot2=new go.Spot(.884,.958),ge}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ze,ee,ne){var ge=new go.Geometry,ue=.5,me=0,Se=0,Ne=ue*Ee,ke=.4*Math.SQRT2/2+.5,Te=.5-.5*Math.SQRT2/2,We=1,$e=.5,st=.5,ut=0,Mt=new go.PathFigure(ke*ee,(1-Te)*ne,!1);return ge.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,We*ee,$e*ne,We*ee,.7*ne,We*ee,$e*ne)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(st+me)*ee,(ut+me)*ne,(.5+ue+me)*ee,(.5-Ne+me)*ne,(.5+Ne+me)*ee,(.5-ue+me)*ne)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ue+me)*ee,(.5+Se)*ne,(.5-Ne+me)*ee,(.5-ue+Se)*ne,(.5-ue+me)*ee,(.5-Ne+Se)*ne)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(.35+me)*ee,.9*ne,(.5-ue+me)*ee,(.5+Ne+Se)*ne,(.5-Ne+me)*ee,.9*ne)),Mt.add(new go.PathSegment(go.PathSegment.Move,(.25+me)*ee,.8*ne)),Mt.add(new go.PathSegment(go.PathSegment.Line,(.35+me)*ee,.9*ne)),Mt.add(new go.PathSegment(go.PathSegment.Line,(.2+me)*ee,.95*ne)),ge}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,0,!1);return ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ue.add(new go.PathSegment(go.PathSegment.Move,.5*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Move,ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),ge}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,0,!1);return ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,ee,0)),ue.add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne)),ue.add(new go.PathSegment(go.PathSegment.Move,0,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),ge}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,0,!1);ge.add(ue);var me=new go.PathFigure(ee,ne,!1);ge.add(me);var Se=new go.PathFigure(0,.5*ne,!1);return ge.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.5*ne,.2*ee,.35*ne,.3*ee,.35*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ee,.5*ne,.7*ee,.65*ne,.8*ee,.65*ne)),ge}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,.5*ne,!0);return ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.5*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.5*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*ee,ne).close()),ge}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,.2*ne,!0);ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,ee,.2*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,.8*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne).close());var ue=new go.PathFigure(0,.2*ne,!1);return ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.5*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,.2*ne)),ge}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(.7*ee,ne,!0);ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.3*ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.3*ee,0,.6*ee,.5*ne,0,.5*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.7*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.7*ee,ne,.4*ee,.5*ne,ee,.5*ne).close());var me=new go.PathFigure(.45*ee,.73*ne,!1);return ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.7*ee,.73*ne)),me.add(new go.PathSegment(go.PathSegment.Move,.38*ee,.5*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.63*ee,.5*ne)),me.add(new go.PathSegment(go.PathSegment.Move,.31*ee,.27*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.56*ee,.27*ne)),ge}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,0,!1);ge.add(ue);var me=new go.PathFigure(.335*ee,(1-.555)*ne,!0);ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.335*ee,(1-.405)*ne)),me.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*ee,(1-.405)*ne)),me.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*ee,(1-.555)*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,ee,.68*ne,(1-.12)*ee,.46*ne,(1-.02)*ee,.54*ne)),me.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,.68*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,.335*ee,(1-.555)*ne,.02*ee,.54*ne,.12*ee,.46*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.365*ee,(1-.595)*ne));var Se=.5-.285,Ne=.5,ke=Se,Te=Math.PI/4,We=4*(1-Math.cos(Te))/(3*Math.sin(Te)),$e=We*.5,st=Se,ut=Se,Mt=We*st,nt=We*ut;me.add(new go.PathSegment(go.PathSegment.Bezier,(Ne-st)*ee,ke*ne,(Ne-(Mt+st)/2)*ee,(ke+(ut+nt)/2)*ne,(Ne-st)*ee,(ke+nt)*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,Ne*ee,(ke-ut)*ne,(Ne-st)*ee,(ke-nt)*ne,(Ne-Mt)*ee,(ke-ut)*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,(Ne+st)*ee,ke*ne,(Ne+Mt)*ee,(ke-ut)*ne,(Ne+st)*ee,(ke-nt)*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*ee,(1-.595)*ne,(Ne+st)*ee,(ke+nt)*ne,(Ne+(Mt+st)/2)*ee,(ke+(ut+nt)/2)*ne)),me.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*ee,(1-.595)*ne)),me.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*ee,(1-.555)*ne)),me.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*ee,(1-.405)*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.335*ee,(1-.405)*ne));var $t=new go.PathFigure(.2*ee,ne,!1);ge.add($t),$t.add(new go.PathSegment(go.PathSegment.Line,.2*ee,.8*ne));var Pt=new go.PathFigure(.8*ee,ne,!1);return ge.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.8*ne)),ge}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(.1*ee,0,!0);ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.9*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.1*ee,ne).close());var me=new go.PathFigure(.2*ee,.2*ne,!1);return ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.2*ne)),me.add(new go.PathSegment(go.PathSegment.Move,.2*ee,.4*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.4*ne)),me.add(new go.PathSegment(go.PathSegment.Move,.2*ee,.6*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.6*ne)),me.add(new go.PathSegment(go.PathSegment.Move,.2*ee,.8*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.8*ne)),ge}),go.Shape.defineFigureGenerator("BpmnEventError",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,ne,!0);return ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.33*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.66*ee,.5*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.66*ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.33*ee,.5*ne).close()),ge}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,0,!1);ge.add(ue);var me=new go.PathFigure(ee,ne,!1);ge.add(me);var Se=new go.PathFigure(.1*ee,ne,!0);return ge.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.5*ee,0)),Se.add(new go.PathSegment(go.PathSegment.Line,.9*ee,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.5*ne).close()),ge}),go.Shape.defineFigureGenerator("Caution",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(.05*ee,ne,!0);ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.1*ee,.8*ne,0,ne,0,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.45*ee,.1*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.55*ee,.1*ne,.5*ee,0,.5*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.95*ee,.9*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.9*ee,ne,ee,ne,ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.05*ee,ne));var me=.05;return ue.add(new go.PathSegment(go.PathSegment.Move,(.5-me)*ee,.875*ne)),ue.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*ee,.875*ne,me*ee,me*ne)),ue.add(new go.PathSegment(go.PathSegment.Move,.5*ee,.75*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.325*ne,.575*ee,.725*ne,.625*ee,.375*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.75*ne,.375*ee,.375*ne,.425*ee,.725*ne)),ge}),go.Shape.defineFigureGenerator("Recycle",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(.45*ee,.95*ne,!1);ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.2*ee,.95*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.185*ee,.85*ne,.17*ee,.95*ne,.15*ee,.9*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.235*ee,.75*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.3*ee,.625*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.35*ee,.65*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.275*ee,.45*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.05*ee,.45*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.1*ee,.5*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.05*ee,.575*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.1875*ee,.95*ne,0,.675*ne,0,.7*ne)),ue.add(new go.PathSegment(go.PathSegment.Move,.45*ee,.95*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.45*ee,.775*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.22*ee,.775*ne));var me=new go.PathFigure(.475*ee,.2*ne,!1);ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.4*ee,.4*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.225*ee,.3*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.275*ee,.175*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.325*ee,.05*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,.4*ee,.05*ne,.35*ee,0,.375*ee,0)),me.add(new go.PathSegment(go.PathSegment.Line,.575*ee,.375*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.525*ee,.4*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.75*ee,.475*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.85*ee,.315*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.32*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.65*ee,.05*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,.575*ee,0,.65*ee,.05*ne,.625*ee,0)),me.add(new go.PathSegment(go.PathSegment.Line,.38*ee,.0105*ne));var Se=new go.PathFigure(.675*ee,.575*ne,!1);return ge.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.875*ee,.525*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,ee,.775*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.85*ee,.95*ne,ee,.8*ne,ee,.85*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.65*ee,.95*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.65*ee,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.55*ee,.85*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.65*ee,.725*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.65*ee,.775*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.7*ee,.775*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,ee,.775*ne)),Se.add(new go.PathSegment(go.PathSegment.Move,.675*ee,.575*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.775*ee,.775*ne)),ge}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ze,ee,ne){var ge=new go.Geometry,ue=.5,me=Ee*.5,Se=new go.PathFigure(ee,ue*ne,!0);ge.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,ue*ee,ne,ee,(ue+me)*ne,(ue+me)*ee,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,ue*ne,(ue-me)*ee,ne,0,(ue+me)*ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ue*ee,0,0,(ue-me)*ne,(ue-me)*ee,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ee,ue*ne,(ue+me)*ee,0,ee,(ue-me)*ne));var Ne=new go.PathFigure(ue*ee,0,!1);return ge.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,ue*ee,.15*ne)),Ne.add(new go.PathSegment(go.PathSegment.Move,ue*ee,ne)),Ne.add(new go.PathSegment(go.PathSegment.Line,ue*ee,.85*ne)),Ne.add(new go.PathSegment(go.PathSegment.Move,0,ue*ne)),Ne.add(new go.PathSegment(go.PathSegment.Line,.15*ee,ue*ne)),Ne.add(new go.PathSegment(go.PathSegment.Move,ee,ue*ne)),Ne.add(new go.PathSegment(go.PathSegment.Line,.85*ee,ue*ne)),Ne.add(new go.PathSegment(go.PathSegment.Move,ue*ee,ue*ne)),Ne.add(new go.PathSegment(go.PathSegment.Line,.58*ee,.1*ne)),Ne.add(new go.PathSegment(go.PathSegment.Move,ue*ee,ue*ne)),Ne.add(new go.PathSegment(go.PathSegment.Line,.78*ee,.54*ne)),ge}),go.Shape.defineFigureGenerator("Package",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,.15*ne,!0);ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,ee,.15*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var me=new go.PathFigure(0,.15*ne,!0);return ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,0,0)),me.add(new go.PathSegment(go.PathSegment.Line,.6*ee,0)),me.add(new go.PathSegment(go.PathSegment.Line,.65*ee,.15*ne).close()),ge.spot1=new go.Spot(0,.1),ge.spot2=new go.Spot(1,1),ge}),go.Shape.defineFigureGenerator("Class",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,0,!0);ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var me=new go.PathFigure(0,.2*ne,!1);ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ee,.2*ne).close());var Se=new go.PathFigure(0,.5*ne,!1);return ge.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne).close()),ge}),go.Shape.defineFigureGenerator("Component",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(ee,ne,!0);ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.15*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.15*ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,ne).close());var me=new go.PathFigure(0,.2*ne,!0);ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.45*ee,.2*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.45*ee,.4*ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,.4*ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne).close());var Se=new go.PathFigure(0,.6*ne,!0);return ge.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.45*ee,.6*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.45*ee,.8*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,0,.6*ne).close()),ge}),go.Shape.defineFigureGenerator("Boat Shipment",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(.15*ee,.6*ne,!0);ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.15*ee,.6*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.6*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.15*ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,.6*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*ee,.6*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.15*ee,.6*ne));var me=new go.PathFigure(.15*ee,.6*ne,!1);return ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.85*ee,.6*ne)),ge}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(ee,ne,!0);return ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.66*ee,.33*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.66*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.33*ee,.33*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.33*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.33*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,ne).close()),ge}),go.Shape.defineFigureGenerator("Workcell",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,ne,!0);return ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,0)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.65*ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.65*ee,.4*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.35*ee,.4*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.35*ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),ge}),go.Shape.defineFigureGenerator("Supermarket",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,0,!1);return ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,.33*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.33*ne)),ue.add(new go.PathSegment(go.PathSegment.Move,ee,.33*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,.66*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.66*ne)),ue.add(new go.PathSegment(go.PathSegment.Move,ee,.66*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge}),go.Shape.defineFigureGenerator("TruckShipment",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,0,!0);ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.6*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*ee,.8*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var me=new go.PathFigure(ee,.8*ne,!0);ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ee,.4*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.6*ee,.4*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.6*ee,.8*ne)),me.add(new go.PathSegment(go.PathSegment.Line,ee,.8*ne).close());var Se=.1,Ne=Ee*.1,ke=.2,Te=.9,We=new go.PathFigure((ke-Se)*ee,Te*ne,!0);ge.add(We),We.add(new go.PathSegment(go.PathSegment.Bezier,ke*ee,(Te-Se)*ne,(ke-Se)*ee,(Te-Ne)*ne,(ke-Ne)*ee,(Te-Se)*ne)),We.add(new go.PathSegment(go.PathSegment.Bezier,(ke+Se)*ee,Te*ne,(ke+Ne)*ee,(Te-Se)*ne,(ke+Se)*ee,(Te-Ne)*ne)),We.add(new go.PathSegment(go.PathSegment.Bezier,ke*ee,(Te+Se)*ne,(ke+Se)*ee,(Te+Ne)*ne,(ke+Ne)*ee,(Te+Se)*ne)),We.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Se)*ee,Te*ne,(ke-Ne)*ee,(Te+Se)*ne,(ke-Se)*ee,(Te+Ne)*ne).close()),Se=.1,Ne=Ee*.1,ke=.8,Te=.9;var $e=new go.PathFigure((ke-Se)*ee,Te*ne,!0);return ge.add($e),$e.add(new go.PathSegment(go.PathSegment.Bezier,ke*ee,(Te-Se)*ne,(ke-Se)*ee,(Te-Ne)*ne,(ke-Ne)*ee,(Te-Se)*ne)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(ke+Se)*ee,Te*ne,(ke+Ne)*ee,(Te-Se)*ne,(ke+Se)*ee,(Te-Ne)*ne)),$e.add(new go.PathSegment(go.PathSegment.Bezier,ke*ee,(Te+Se)*ne,(ke+Se)*ee,(Te+Ne)*ne,(ke+Ne)*ee,(Te+Se)*ne)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(ke-Se)*ee,Te*ne,(ke-Ne)*ee,(Te+Se)*ne,(ke-Se)*ee,(Te+Ne)*ne).close()),ge}),go.Shape.defineFigureGenerator("KanbanPost",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(.2*ee,0,!1);return ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.2*ee,.5*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.5*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Move,.5*ee,.5*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Move,.5*ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*ee,ne)),ge}),go.Shape.defineFigureGenerator("Forklift",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,0,!0);ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.5*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,0,0));var me=new go.PathFigure(0,.5*ne,!0);ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.8*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.5*ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne));var Se=new go.PathFigure(.5*ee,.8*ne,!0);ge.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.1*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.55*ee,.1*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.55*ee,.8*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.8*ne));var Ne=new go.PathFigure(.5*ee,.7*ne,!1);ge.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,ee,.7*ne));var ke=.1,Te=Ee*.1,We=.1,$e=.9,st=new go.PathFigure((We-ke)*ee,$e*ne,!0);ge.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,We*ee,($e-ke)*ne,(We-ke)*ee,($e-Te)*ne,(We-Te)*ee,($e-ke)*ne)),st.add(new go.PathSegment(go.PathSegment.Bezier,(We+ke)*ee,$e*ne,(We+Te)*ee,($e-ke)*ne,(We+ke)*ee,($e-Te)*ne)),st.add(new go.PathSegment(go.PathSegment.Bezier,We*ee,($e+ke)*ne,(We+ke)*ee,($e+Te)*ne,(We+Te)*ee,($e+ke)*ne)),st.add(new go.PathSegment(go.PathSegment.Bezier,(We-ke)*ee,$e*ne,(We-Te)*ee,($e+ke)*ne,(We-ke)*ee,($e+Te)*ne)),ke=.1,Te=Ee*.1,We=.4,$e=.9;var ut=new go.PathFigure((We-ke)*ee,$e*ne,!0);return ge.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,We*ee,($e-ke)*ne,(We-ke)*ee,($e-Te)*ne,(We-Te)*ee,($e-ke)*ne)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(We+ke)*ee,$e*ne,(We+Te)*ee,($e-ke)*ne,(We+ke)*ee,($e-Te)*ne)),ut.add(new go.PathSegment(go.PathSegment.Bezier,We*ee,($e+ke)*ne,(We+ke)*ee,($e+Te)*ne,(We+Te)*ee,($e+ke)*ne)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(We-ke)*ee,$e*ne,(We-Te)*ee,($e+ke)*ne,(We-ke)*ee,($e+Te)*ne)),ge}),go.Shape.defineFigureGenerator("RailShipment",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(.1*ee,.4*ne,!0);ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.45*ee,.4*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.45*ee,.9*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.1*ee,.9*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.1*ee,.4*ne).close());var me=new go.PathFigure(.45*ee,.7*ne,!1);ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.55*ee,.7*ne));var Se=new go.PathFigure(.55*ee,.4*ne,!0);ge.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.9*ee,.4*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.9*ee,.9*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.55*ee,.9*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.55*ee,.4*ne).close());var We=.05,$e=Ee*.05,st=.175,ut=.95,Ne=new go.PathFigure((st-We)*ee,ut*ne,!0);ge.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,st*ee,(ut-We)*ne,(st-We)*ee,(ut-$e)*ne,(st-$e)*ee,(ut-We)*ne)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(st+We)*ee,ut*ne,(st+$e)*ee,(ut-We)*ne,(st+We)*ee,(ut-$e)*ne)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,st*ee,(ut+We)*ne,(st+We)*ee,(ut+$e)*ne,(st+$e)*ee,(ut+We)*ne)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(st-We)*ee,ut*ne,(st-$e)*ee,(ut+We)*ne,(st-We)*ee,(ut+$e)*ne));var We=.05,$e=Ee*.05,st=.375,ut=.95,ke=new go.PathFigure((st-We)*ee,ut*ne,!0);ge.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,st*ee,(ut-We)*ne,(st-We)*ee,(ut-$e)*ne,(st-$e)*ee,(ut-We)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(st+We)*ee,ut*ne,(st+$e)*ee,(ut-We)*ne,(st+We)*ee,(ut-$e)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,st*ee,(ut+We)*ne,(st+We)*ee,(ut+$e)*ne,(st+$e)*ee,(ut+We)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(st-We)*ee,ut*ne,(st-$e)*ee,(ut+We)*ne,(st-We)*ee,(ut+$e)*ne));var We=.05,$e=Ee*.05,st=.625,ut=.95,Te=new go.PathFigure((st-We)*ee,ut*ne,!0);ge.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,st*ee,(ut-We)*ne,(st-We)*ee,(ut-$e)*ne,(st-$e)*ee,(ut-We)*ne)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(st+We)*ee,ut*ne,(st+$e)*ee,(ut-We)*ne,(st+We)*ee,(ut-$e)*ne)),Te.add(new go.PathSegment(go.PathSegment.Bezier,st*ee,(ut+We)*ne,(st+We)*ee,(ut+$e)*ne,(st+$e)*ee,(ut+We)*ne)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(st-We)*ee,ut*ne,(st-$e)*ee,(ut+We)*ne,(st-We)*ee,(ut+$e)*ne));var We=.05,$e=Ee*.05,st=.825,ut=.95,Mt=new go.PathFigure((st-We)*ee,ut*ne,!0);ge.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,st*ee,(ut-We)*ne,(st-We)*ee,(ut-$e)*ne,(st-$e)*ee,(ut-We)*ne)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(st+We)*ee,ut*ne,(st+$e)*ee,(ut-We)*ne,(st+We)*ee,(ut-$e)*ne)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,st*ee,(ut+We)*ne,(st+We)*ee,(ut+$e)*ne,(st+$e)*ee,(ut+We)*ne)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(st-We)*ee,ut*ne,(st-$e)*ee,(ut+We)*ne,(st-We)*ee,(ut+$e)*ne).close());var nt=new go.PathFigure(0,ne,!1);return ge.add(nt),nt.add(new go.PathSegment(go.PathSegment.Line,ee,ne).close()),ge}),go.Shape.defineFigureGenerator("Warehouse",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,0,!0);ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var me=new go.PathFigure(0,.2*ne,!1);ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ee,.2*ne).close());var Se=new go.PathFigure(.15*ee,ne,!0);ge.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.15*ee,.5*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.4*ee,.5*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.4*ee,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.15*ee,ne).close());var Ne=.05,ke=Ee*.05,Te=.35,We=.775,$e=new go.PathFigure((Te-Ne)*ee,We*ne,!0);return ge.add($e),$e.add(new go.PathSegment(go.PathSegment.Bezier,Te*ee,(We-Ne)*ne,(Te-Ne)*ee,(We-ke)*ne,(Te-ke)*ee,(We-Ne)*ne)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(Te+Ne)*ee,We*ne,(Te+ke)*ee,(We-Ne)*ne,(Te+Ne)*ee,(We-ke)*ne)),$e.add(new go.PathSegment(go.PathSegment.Bezier,Te*ee,(We+Ne)*ne,(Te+Ne)*ee,(We+ke)*ne,(Te+ke)*ee,(We+Ne)*ne)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(Te-Ne)*ee,We*ne,(Te-ke)*ee,(We+Ne)*ne,(Te-Ne)*ee,(We+ke)*ne).close()),ge}),go.Shape.defineFigureGenerator("ControlCenter",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,ne,!0);return ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.1*ee,.8*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.1*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*ee,.8*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,.8*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ue.add(new go.PathSegment(go.PathSegment.Move,.1*ee,.8*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*ee,.8*ne).close()),ge}),go.Shape.defineFigureGenerator("Bluetooth",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,.75*ne,!1);return ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,.75*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,.25*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,.75*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne)),ge}),go.Shape.defineFigureGenerator("Bookmark",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,0,!0);return ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.6*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,0,0)),ue.add(new go.PathSegment(go.PathSegment.Move,.2*ee,.2*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.2*ne)),ue.add(new go.PathSegment(go.PathSegment.Move,.2*ee,.4*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.4*ne)),ge}),go.Shape.defineFigureGenerator("Bookmark",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,0,!0);return ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.6*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,0,0)),ue.add(new go.PathSegment(go.PathSegment.Move,.2*ee,.2*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.2*ne)),ue.add(new go.PathSegment(go.PathSegment.Move,.2*ee,.4*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.4*ne)),ge}),go.Shape.defineFigureGenerator("Globe",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(.5*ee,0,!1);return ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne)),ue.add(new go.PathSegment(go.PathSegment.Move,.5*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ee,.5*ne,.75*ee,0,ee,.25*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,ne,ee,.75*ne,.75*ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,.25*ee,ne,0,.75*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,0,0,.25*ne,.25*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,ne,.15*ee,.25*ne,.15*ee,.75*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,0,.85*ee,.75*ne,.85*ee,.25*ne)),ue.add(new go.PathSegment(go.PathSegment.Move,.1675*ee,.15*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.8325*ee,.15*ne,.35*ee,.3*ne,.65*ee,.3*ne)),ue.add(new go.PathSegment(go.PathSegment.Move,.1675*ee,.85*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.8325*ee,.85*ne,.35*ee,.7*ne,.65*ee,.7*ne)),ge}),go.Shape.defineFigureGenerator("Wave",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,.25*ne,!1);return ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.3*ee,.25*ne,.1*ee,0,.2*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.7*ee,.25*ne,.425*ee,.5*ne,.575*ee,.5*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ee,.25*ne,.8*ee,0,.9*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,.75*ne)),ue.add(new go.PathSegment(go.PathSegment.Move,0,.25*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.75*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.3*ee,.75*ne,.1*ee,.5*ne,.2*ee,.5*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.7*ee,.75*ne,.425*ee,ne,.575*ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ee,.75*ne,.8*ee,.5*ne,.9*ee,.5*ne)),ge}),go.Shape.defineFigureGenerator("Operator",function(ze,ee,ne){var ge=new go.Geometry,ue=.3,me=Ee*.3,Se=.5,Ne=.7,ke=new go.PathFigure((Se-ue)*ee,Ne*ne,!0);ge.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(Ne-ue)*ne,(Se-ue)*ee,(Ne-me)*ne,(Se-me)*ee,(Ne-ue)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ue)*ee,Ne*ne,(Se+me)*ee,(Ne-ue)*ne,(Se+ue)*ee,(Ne-me)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(Ne+ue)*ne,(Se+ue)*ee,(Ne+me)*ne,(Se+me)*ee,(Ne+ue)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ue)*ee,Ne*ne,(Se-me)*ee,(Ne+ue)*ne,(Se-ue)*ee,(Ne+me)*ne));var Te=new go.PathFigure(0,.7*ne,!1);return ge.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,ee,.7*ne,0,0,ee,0)),ge}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(.5*ee,0,!0);return ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.65*ne,.65*ee,.3*ne,.65*ee,.5*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,0,.35*ee,.5*ne,.35*ee,.3*ne)),ue.add(new go.PathSegment(go.PathSegment.Move,.5*ee,.65*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,ne,.3*ee,.6*ne,.1*ee,.8*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.65*ne,.2*ee,ne,.35*ee,.95*ne)),ue.add(new go.PathSegment(go.PathSegment.Move,.5*ee,.65*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ee,ne,.7*ee,.6*ne,.9*ee,.8*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.65*ne,.8*ee,ne,.65*ee,.95*ne)),ge}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(ee,0,!0);return ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.4*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,0,.075*ne,0,.5*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.4*ee,ne,0,ne,.4*ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.8*ee,.4*ne,.8*ee,ne,.85*ee,.6*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,.4*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,0)),ge}),go.Shape.defineFigureGenerator("Battery",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,ne,!0);ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,.1*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,.1*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ue.add(new go.PathSegment(go.PathSegment.Move,.4*ee,.1*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*ee,.1*ne));var me=new go.PathFigure(0,.6*ne,!1);return ge.add(me),me.add(new go.PathSegment(go.PathSegment.Move,0,.4*ne)),me.add(new go.PathSegment(go.PathSegment.Line,ee,.4*ne)),ge}),go.Shape.defineFigureGenerator("Delete",function(ze,ee,ne){var ge=new go.Geometry,ue=.5,me=Ee*.5,Se=.5,Ne=.5,ke=new go.PathFigure((Se-ue)*ee,Ne*ne,!0);ge.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(Ne-ue)*ne,(Se-ue)*ee,(Ne-me)*ne,(Se-me)*ee,(Ne-ue)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ue)*ee,Ne*ne,(Se+me)*ee,(Ne-ue)*ne,(Se+ue)*ee,(Ne-me)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(Ne+ue)*ne,(Se+ue)*ee,(Ne+me)*ne,(Se+me)*ee,(Ne+ue)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ue)*ee,Ne*ne,(Se-me)*ee,(Ne+ue)*ne,(Se-ue)*ee,(Ne+me)*ne));var Te=new go.PathFigure(.15*ee,.5*ne,!1);return ge.add(Te),Te.add(new go.PathSegment(go.PathSegment.Line,.85*ee,.5*ne)),ge}),go.Shape.defineFigureGenerator("Flag",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,.1*ne,!0);return ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ue.add(new go.PathSegment(go.PathSegment.Move,0,.1*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.1*ne,.15*ee,0,.35*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ee,.1*ne,.65*ee,.2*ne,.85*ee,.2*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.5*ne,.85*ee,.6*ne,.65*ee,.6*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,.35*ee,.4*ne,.15*ee,.4*ne).close()),ge}),go.Shape.defineFigureGenerator("Help",function(ze,ee,ne){var ge=new go.Geometry,ue=.5,me=Ee*.5,Se=.5,Ne=.5,ke=new go.PathFigure((Se-ue)*ee,Ne*ne,!1);ge.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(Ne-ue)*ne,(Se-ue)*ee,(Ne-me)*ne,(Se-me)*ee,(Ne-ue)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ue)*ee,Ne*ne,(Se+me)*ee,(Ne-ue)*ne,(Se+ue)*ee,(Ne-me)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(Ne+ue)*ne,(Se+ue)*ee,(Ne+me)*ne,(Se+me)*ee,(Ne+ue)*ne)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ue)*ee,Ne*ne,(Se-me)*ee,(Ne+ue)*ne,(Se-ue)*ee,(Ne+me)*ne).close()),ue=.05,me=Ee*.05,Se=.5,Ne=.8;var Te=new go.PathFigure((Se-ue)*ee,Ne*ne,!1);return ge.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(Ne-ue)*ne,(Se-ue)*ee,(Ne-me)*ne,(Se-me)*ee,(Ne-ue)*ne)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ue)*ee,Ne*ne,(Se+me)*ee,(Ne-ue)*ne,(Se+ue)*ee,(Ne-me)*ne)),Te.add(new go.PathSegment(go.PathSegment.Bezier,Se*ee,(Ne+ue)*ne,(Se+ue)*ee,(Ne+me)*ne,(Se+me)*ee,(Ne+ue)*ne)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ue)*ee,Ne*ne,(Se-me)*ee,(Ne+ue)*ne,(Se-ue)*ee,(Ne+me)*ne).close()),Te.add(new go.PathSegment(go.PathSegment.Move,.5*ee,.7*ne)),Te.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.5*ne)),Te.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.2*ne,.75*ee,.475*ne,.75*ee,.225*ne)),Te.add(new go.PathSegment(go.PathSegment.Bezier,.3*ee,.35*ne,.4*ee,.2*ne,.3*ee,.25*ne)),ge}),go.Shape.defineFigureGenerator("Location",function(ze,ee,ne){return new go.Geometry().add(new go.PathFigure(.5*ee,ne,!0).add(new go.PathSegment(go.PathSegment.Line,.75*ee,.5*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,0,.975*ee,.025*ne,.5*ee,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*ee,.5*ne,.5*ee,0,.025*ee,.025*ne).close()).add(new go.PathSegment(go.PathSegment.Move,.5*ee,.2*ne)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*ee,.3*ne,.1*ee,.1*ne).close()))}),go.Shape.defineFigureGenerator("Lock",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,.5*ne,!0);ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne));var me=new go.PathFigure(.2*ee,.5*ne,!1);return ge.add(me),me.add(new go.PathSegment(go.PathSegment.Move,.2*ee,.5*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.2*ee,.3*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,.8*ee,.3*ne,.25*ee,0,.75*ee,0)),me.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.5*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.3*ne)),ge}),go.Shape.defineFigureGenerator("Unlocked",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,.5*ne,!0);ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,.5*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne));var me=new go.PathFigure(.2*ee,.5*ne,!1);return ge.add(me),me.add(new go.PathSegment(go.PathSegment.Move,.2*ee,.5*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.2*ee,.3*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,.8*ee,.3*ne,.25*ee,0,.75*ee,0)),me.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.35*ne)),ge}),go.Shape.defineFigureGenerator("Gear",function(ze,ee,ne){return new go.Geometry().add(new go.PathFigure(.9375*ee,.56246875*ne,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*ee,.4375*ne)).add(new go.PathSegment(go.PathSegment.Line,.80621875*ee,.4375*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.763*ee,.3316875*ne,.79840625*ee,.39915625*ne,.7834375*ee,.3635*ne)).add(new go.PathSegment(go.PathSegment.Line,.8566875*ee,.23796875*ne)).add(new go.PathSegment(go.PathSegment.Line,.76825*ee,.14959375*ne)).add(new go.PathSegment(go.PathSegment.Line,.67596875*ee,.24184375*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*ee,.19378125*ne,.64228125*ee,.2188125*ne,.603875*ee,.2021875*ne)).add(new go.PathSegment(go.PathSegment.Line,.5625*ee,.0625*ne)).add(new go.PathSegment(go.PathSegment.Line,.4375*ee,.0625*ne)).add(new go.PathSegment(go.PathSegment.Line,.4375*ee,.19378125*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*ee,.239375*ne,.39759375*ee,.20190625*ne,.36053125*ee,.2176875*ne)).add(new go.PathSegment(go.PathSegment.Line,.2379375*ee,.14959375*ne)).add(new go.PathSegment(go.PathSegment.Line,.14953125*ee,.2379375*ne)).add(new go.PathSegment(go.PathSegment.Line,.23934375*ee,.3278125*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*ee,.4375*ne,.21765625*ee,.36059375*ne,.201875*ee,.397625*ne)).add(new go.PathSegment(go.PathSegment.Line,.0625*ee,.4375*ne)).add(new go.PathSegment(go.PathSegment.Line,.0625*ee,.5625*ne)).add(new go.PathSegment(go.PathSegment.Line,.1938125*ee,.5625*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*ee,.67596875*ne,.20221875*ee,.603875*ne,.21884375*ee,.64228125*ne)).add(new go.PathSegment(go.PathSegment.Line,.1495625*ee,.76825*ne)).add(new go.PathSegment(go.PathSegment.Line,.238*ee,.8566875*ne)).add(new go.PathSegment(go.PathSegment.Line,.3316875*ee,.76296875*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*ee,.80621875*ne,.36353125*ee,.78340625*ne,.3991875*ee,.79840625*ne)).add(new go.PathSegment(go.PathSegment.Line,.43753125*ee,.9375*ne)).add(new go.PathSegment(go.PathSegment.Line,.5625*ee,.9375*ne)).add(new go.PathSegment(go.PathSegment.Line,.5625*ee,.80621875*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*ee,.760625*ne,.602375*ee,.79809375*ne,.63946875*ee,.78234375*ne)).add(new go.PathSegment(go.PathSegment.Line,.76828125*ee,.8566875*ne)).add(new go.PathSegment(go.PathSegment.Line,.85671875*ee,.76825*ne)).add(new go.PathSegment(go.PathSegment.Line,.76065625*ee,.67221875*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*ee,.56246875*ne,.78234375*ee,.63940625*ne,.798125*ee,.602375*ne)).add(new go.PathSegment(go.PathSegment.Line,.9375*ee,.56246875*ne).close()).add(new go.PathSegment(go.PathSegment.Move,.5*ee,.6*ne)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*ee,.5*ne,.1*ee,.1*ne).close()))}),go.Shape.defineFigureGenerator("Hand",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,.5*ne,!0);return ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.1*ee,.3*ne,0,.375*ne,.05*ee,.325*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.45*ee,.075*ne,.3*ee,.225*ne,.4*ee,.175*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.525*ee,.075*ne,.46*ee,.05*ne,.525*ee,.05*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.3*ee,.4*ne,.525*ee,.275*ne,.475*ee,.325*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*ee,.4*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.9*ee,.55*ne,ee,.4*ne,ee,.55*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.425*ee,.55*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*ee,.55*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.6*ee,.7*ne,.675*ee,.55*ne,.675*ee,.7*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*ee,.7*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.575*ee,.7*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.575*ee,.85*ne,.65*ee,.7*ne,.65*ee,.85*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*ee,.85*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.525*ee,.85*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.535*ee,ne,.61*ee,.85*ne,.61*ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,.435*ee,ne,0,ne).close()),ge}),go.Shape.defineFigureGenerator("Map",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,.2*ne,!0);return ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.25*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.2*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.75*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,.2*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.75*ee,.8*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.25*ee,.8*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),ue.add(new go.PathSegment(go.PathSegment.Move,.25*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.25*ee,.8*ne)),ue.add(new go.PathSegment(go.PathSegment.Move,.5*ee,.2*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Move,.75*ee,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.75*ee,.8*ne)),ge}),go.Shape.defineFigureGenerator("Eject",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,ne,!0);ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,ne*.7)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ne*.7).close());var me=new go.PathFigure(0,ne*.6,!0);return ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ee,.6*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.5*ee,0).close()),ge}),go.Shape.defineFigureGenerator("Pencil",function(ze,ee,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*ee,.1*ne)).add(new go.PathSegment(go.PathSegment.Line,ee,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.9*ee,ne)).add(new go.PathSegment(go.PathSegment.Line,.1*ee,.2*ne).close()))}),go.Shape.defineFigureGenerator("Building",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(ee*1,ne*1,!1);ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ne*1)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ne*.85)),ue.add(new go.PathSegment(go.PathSegment.Line,.046*ee,ne*.85)),ue.add(new go.PathSegment(go.PathSegment.Line,.046*ee,ne*.45)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ne*.45)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ne*.3)),ue.add(new go.PathSegment(go.PathSegment.Line,.046*ee,ne*.3)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*ee,ne*0)),ue.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*ee,ne*.3)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,ne*.3)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,ne*.45)),ue.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*ee,ne*.45)),ue.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*ee,ne*.85)),ue.add(new go.PathSegment(go.PathSegment.Line,ee,ne*.85).close());var me=new go.PathFigure(.126*ee,.85*ne,!1);ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.126*ee,.45*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.322*ee,.45*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.322*ee,.85*ne).close());var Se=new go.PathFigure(.402*ee,.85*ne,!1);ge.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.402*ee,.45*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.598*ee,.45*ne)),Se.add(new go.PathSegment(go.PathSegment.Line,.598*ee,.85*ne).close());var Ne=new go.PathFigure(.678*ee,.85*ne,!1);ge.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,.678*ee,.45*ne)),Ne.add(new go.PathSegment(go.PathSegment.Line,.874*ee,.45*ne)),Ne.add(new go.PathSegment(go.PathSegment.Line,.874*ee,.85*ne).close());var ke=new go.PathFigure(.5*ee,.1*ne,!1);return ge.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*ee,.3*ne)),ke.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*ee,.3*ne).close()),ge}),go.Shape.defineFigureGenerator("Staircase",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,ne*1,!0);return ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.2,ne*1)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.2,ne*.8)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.4,ne*.8)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.4,ne*.6)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.6,ne*.6)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.6,ne*.4)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.8,ne*.4)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.8,ne*.2)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*1,ne*.2)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*1,ne*.15)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.75,ne*.15)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.75,ne*.35)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.55,ne*.35)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.55,ne*.55)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.35,ne*.55)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.35,ne*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.15,ne*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.15,ne*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ne*.95).close()),ge}),go.Shape.defineFigureGenerator("5Bars",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,ne*1,!0);ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.184,ne*1)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.184,ne*(1-.184)).close());var me=new go.PathFigure(ee*.204,ne,!0);ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ee*.204,ne*(1-.184))),me.add(new go.PathSegment(go.PathSegment.Line,ee*.388,ne*(1-.184*2))),me.add(new go.PathSegment(go.PathSegment.Line,ee*.388,ne*1).close());var Se=new go.PathFigure(ee*.408,ne,!0);ge.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ee*.408,ne*(1-.184*2))),Se.add(new go.PathSegment(go.PathSegment.Line,ee*.592,ne*(1-.184*3))),Se.add(new go.PathSegment(go.PathSegment.Line,ee*.592,ne*1).close());var Ne=new go.PathFigure(ee*.612,ne,!0);ge.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,ee*.612,ne*(1-.184*3))),Ne.add(new go.PathSegment(go.PathSegment.Line,ee*.796,ne*(1-.184*4))),Ne.add(new go.PathSegment(go.PathSegment.Line,ee*.796,ne*1).close());var ke=new go.PathFigure(ee*.816,ne,!0);return ge.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,ee*.816,ne*(1-.184*4))),ke.add(new go.PathSegment(go.PathSegment.Line,ee*1,ne*(1-.184*5))),ke.add(new go.PathSegment(go.PathSegment.Line,ee*1,ne*1).close()),ge}),go.Shape.defineFigureGenerator("PC",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,0,!0);ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ne*1)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.3,ne*1)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.3,0).close());var me=new go.PathFigure(ee*.055,.07*ne,!0);ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ee*.245,ne*.07)),me.add(new go.PathSegment(go.PathSegment.Line,ee*.245,ne*.1)),me.add(new go.PathSegment(go.PathSegment.Line,ee*.055,ne*.1).close());var Se=new go.PathFigure(ee*.055,.13*ne,!0);ge.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ee*.245,ne*.13)),Se.add(new go.PathSegment(go.PathSegment.Line,ee*.245,ne*.16)),Se.add(new go.PathSegment(go.PathSegment.Line,ee*.055,ne*.16).close());var Ne=new go.PathFigure(ee*.055,.18*ne,!0);ge.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,ee*.245,ne*.18)),Ne.add(new go.PathSegment(go.PathSegment.Line,ee*.245,ne*.21)),Ne.add(new go.PathSegment(go.PathSegment.Line,ee*.055,ne*.21).close());var ke=new go.PathFigure(ee*1,0,!0);return ge.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,ee*.4,0)),ke.add(new go.PathSegment(go.PathSegment.Line,ee*.4,ne*.65)),ke.add(new go.PathSegment(go.PathSegment.Line,ee*1,ne*.65).close()),ge}),go.Shape.defineFigureGenerator("Plane",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(.55*ee,ne,!0);return ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.6*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*ee,.7*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.1*ee,.475*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.35*ee,.525*ne,0,.4*ne,.225*ee,.45*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*ee,.475*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.15*ee,.35*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*ee,.325*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*ee,.325*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.85*ee,.1*ne)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.9*ee,.2*ne,.975*ee,0,ee,.08*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.7*ee,.45*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*ee,.95*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*ee,ne).close()),ge}),go.Shape.defineFigureGenerator("Key",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(ee*1,ne*.5,!0);return ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.9,.4*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.5,.4*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.5,.35*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.45,.35*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.3,.2*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.15,.2*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.35*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.65*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.15,.8*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.3,.8*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.45,.65*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.5,.65*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.5,.6*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.6,.6*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.65,.55*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.7,.6*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.75,.55*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.8,.6*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.85,.575*ne)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.9,.6*ne).close()),ue.add(new go.PathSegment(go.PathSegment.Move,.17*ee,.425*ne)),ue.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*ee,.5*ne,.075*ee,.075*ne).close()),ge}),go.Shape.defineFigureGenerator("FilmTape",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(0,0,!1);ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Arc,270,180,ee*0,ee*.3,ee*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ne*1)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.08,ne*1)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.08,ne*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*1),ne*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*1),ne*1)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*2),ne*1)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*2),ne*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*3),ne*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*3),ne*1)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*4),ne*1)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*4),ne*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*5),ne*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*5),ne*1)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*6),ne*1)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*6),ne*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*7),ne*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*7),ne*1)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*8),ne*1)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*8),ne*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*9),ne*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*9),ne*1)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*10),ne*1)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*10),ne*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*11),ne*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*11),ne*1)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*12),ne*1)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*12),ne*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*13),ne*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*13),ne*1)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*14),ne*1)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*14),ne*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*15),ne*.95)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*15),ne*1)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*1,ne*1)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*1,ne*1));var me=new go.PathFigure(0,0,!1);ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ee*1,ne*0)),me.add(new go.PathSegment(go.PathSegment.Arc,270,-180,ee*1,ee*.3,ee*.055)),me.add(new go.PathSegment(go.PathSegment.Line,ee*1,ne*1));var Se=new go.PathFigure(ee*.11,ne*.1,!1);ge.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ee*(.11+.24133333*1+.028*0),ne*.1)),Se.add(new go.PathSegment(go.PathSegment.Line,ee*(.11+.24133333*1+.028*0),ne*.8)),Se.add(new go.PathSegment(go.PathSegment.Line,ee*.11,ne*.8).close());var Ne=new go.PathFigure(ee*(.11+.24133333*1+.028*1),ne*.1,!1);ge.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,ee*(.11+.24133333*2+.028*1),ne*.1)),Ne.add(new go.PathSegment(go.PathSegment.Line,ee*(.11+.24133333*2+.028*1),ne*.8)),Ne.add(new go.PathSegment(go.PathSegment.Line,ee*(.11+.24133333*1+.028*1),ne*.8).close());var ke=new go.PathFigure(ee*(.11+.24133333*2+.028*2),ne*.1,!1);return ge.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,ee*(.11+.24133333*3+.028*2),ne*.1)),ke.add(new go.PathSegment(go.PathSegment.Line,ee*(.11+.24133333*3+.028*2),ne*.8)),ke.add(new go.PathSegment(go.PathSegment.Line,ee*(.11+.24133333*2+.028*2),ne*.8).close()),ge}),go.Shape.defineFigureGenerator("FloppyDisk",function(ze,ee,ne){var ge=new go.Geometry,ue=8,me=ue*Ee,Se=new go.PathFigure(ue,0,!1);ge.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ee*.86,0)),Se.add(new go.PathSegment(go.PathSegment.Line,ee*1,ne*.14)),Se.add(new go.PathSegment(go.PathSegment.Line,ee,ne-ue)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ee-ue,ne,ee,ne-me,ee-me,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,ue,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-ue,me,ne,0,ne-me)),Se.add(new go.PathSegment(go.PathSegment.Line,0,ue)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ue,0,0,me,me,0).close());var Ne=new go.PathFigure(ee*.83,0,!1);ge.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,ee*.83,ne*.3)),Ne.add(new go.PathSegment(go.PathSegment.Line,ee*.17,ne*.3)),Ne.add(new go.PathSegment(go.PathSegment.Line,ee*.17,ne*0).close());var ke=new go.PathFigure(ee*.83,ne*1,!1);ge.add(ke),ke.add(new go.PathSegment(go.PathSegment.Line,ee*.83,ne*.5)),ke.add(new go.PathSegment(go.PathSegment.Line,ee*.17,ne*.5)),ke.add(new go.PathSegment(go.PathSegment.Line,ee*.17,ne*1).close());var Te=new go.PathFigure(ee*.78,ne*.05,!1);return ge.add(Te),Te.add(new go.PathSegment(go.PathSegment.Line,ee*.66,ne*.05)),Te.add(new go.PathSegment(go.PathSegment.Line,ee*.66,ne*.25)),Te.add(new go.PathSegment(go.PathSegment.Line,ee*.78,ne*.25).close()),ge}),go.Shape.defineFigureGenerator("SpeechBubble",function(ze,ee,ne){var ge=ze?ze.parameter1:NaN;(isNaN(ge)||ge<0)&&(ge=15),ge=Math.min(ge,ee/3),ge=Math.min(ge,ne/3);var ue=ge*Ee,me=ne*.8,Se=new go.Geometry,Ne=new go.PathFigure(ge,0,!0);return Se.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,ee-ge,0)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,ee,ge,ee-ue,0,ee,ue)),Ne.add(new go.PathSegment(go.PathSegment.Line,ee,me-ge)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,ee-ge,me,ee,me-ue,ee-ue,me)),Ne.add(new go.PathSegment(go.PathSegment.Line,ee*.7,me)),Ne.add(new go.PathSegment(go.PathSegment.Line,ee*.7,ne)),Ne.add(new go.PathSegment(go.PathSegment.Line,ee*.55,me)),Ne.add(new go.PathSegment(go.PathSegment.Line,ge,me)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,0,me-ge,ue,me,0,me-ue)),Ne.add(new go.PathSegment(go.PathSegment.Line,0,ge)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,ge,0,0,ue,ue,0).close()),ue>1?(Se.spot1=new go.Spot(0,0,ue,ue),Se.spot2=new go.Spot(1,.8,-ue,-ue)):(Se.spot1=go.Spot.TopLeft,Se.spot2=new go.Spot(1,.8)),Se}),go.Shape.defineFigureGenerator("Repeat",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(ee*0,ne*.45,!0);ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.25,ne*0)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.5,ne*.45)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.3,ne*.45)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.3,ne*.9)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.6,ne*.9)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.65,ne*1)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.2,ne*1)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.2,ne*.45).close());var me=new go.PathFigure(ee*1,ne*.55,!0);return ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ee*.75,ne*1)),me.add(new go.PathSegment(go.PathSegment.Line,ee*.5,ne*.55)),me.add(new go.PathSegment(go.PathSegment.Line,ee*.7,ne*.55)),me.add(new go.PathSegment(go.PathSegment.Line,ee*.7,ne*.1)),me.add(new go.PathSegment(go.PathSegment.Line,ee*.4,ne*.1)),me.add(new go.PathSegment(go.PathSegment.Line,ee*.35,ne*0)),me.add(new go.PathSegment(go.PathSegment.Line,ee*.8,ne*0)),me.add(new go.PathSegment(go.PathSegment.Line,ee*.8,ne*.55).close()),ge}),go.Shape.defineFigureGenerator("Windows",function(ze,ee,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,ee,0)).add(new go.PathSegment(go.PathSegment.Line,ee,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close()).add(new go.PathSegment(go.PathSegment.Move,.4*ee,.4*ne)).add(new go.PathSegment(go.PathSegment.Line,.4*ee,.8*ne)).add(new go.PathSegment(go.PathSegment.Line,.9*ee,.8*ne)).add(new go.PathSegment(go.PathSegment.Line,.9*ee,.4*ne).close()).add(new go.PathSegment(go.PathSegment.Move,.2*ee,.1*ne)).add(new go.PathSegment(go.PathSegment.Line,.2*ee,.6*ne)).add(new go.PathSegment(go.PathSegment.Line,.7*ee,.6*ne)).add(new go.PathSegment(go.PathSegment.Line,.7*ee,.1*ne).close()).add(new go.PathSegment(go.PathSegment.Move,.1*ee,.6*ne)).add(new go.PathSegment(go.PathSegment.Line,.1*ee,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.5*ee,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.5*ee,.6*ne).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(ee*0,ne*.1,!1);ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,ee*1,ne*.1)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*1,ne*.9)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*0,ne*.9).close());var me=new go.PathFigure(ee*.1,ne*.2,!0);ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ee*.1,ne*.25)),me.add(new go.PathSegment(go.PathSegment.Line,ee*.22,ne*.285)),me.add(new go.PathSegment(go.PathSegment.Line,ee*.1,ne*.32)),me.add(new go.PathSegment(go.PathSegment.Line,ee*.1,ne*.37)),me.add(new go.PathSegment(go.PathSegment.Line,ee*.275,ne*.32)),me.add(new go.PathSegment(go.PathSegment.Line,ee*.275,ne*.25).close());var Se=new go.PathFigure(ee*.28,ne*.37,!0);return ge.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ee*.45,ne*.37)),Se.add(new go.PathSegment(go.PathSegment.Line,ee*.45,ne*.41)),Se.add(new go.PathSegment(go.PathSegment.Line,ee*.28,ne*.41).close()),ge}),go.Shape.defineFigureGenerator("Beaker",function(ze,ee,ne){var ge=new go.Geometry,ue=15,me=ue*Ee,Se=new go.PathFigure(ee*.62,ne*.475,!0);return ge.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ee,ne-ue)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ee-ue,ne,ee,ne-me,ee-me,ne)),Se.add(new go.PathSegment(go.PathSegment.Line,ue,ne)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-ue,me,ne,0,ne-me)),Se.add(new go.PathSegment(go.PathSegment.Line,ee*.38,ne*.475)),Se.add(new go.PathSegment(go.PathSegment.Line,ee*.38,ne*.03)),Se.add(new go.PathSegment(go.PathSegment.Line,ee*.36,ne*0)),Se.add(new go.PathSegment(go.PathSegment.Line,ee*.64,ne*0)),Se.add(new go.PathSegment(go.PathSegment.Line,ee*.62,ne*.03).close()),me>1?(ge.spot1=new go.Spot(0,0,me,me),ge.spot2=new go.Spot(1,1,-me,-me)):(ge.spot1=go.Spot.TopLeft,ge.spot2=go.Spot.BottomRight),ge}),go.Shape.defineFigureGenerator("Download",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(ee*0,ne*1,!0);ge.add(ue);var me=.1/.3;ue.add(new go.PathSegment(go.PathSegment.Line,ee*1,ne*1)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*1,ne*(1-me))),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.8,ne*0)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.66,ne*0)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.66,ne*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.755,ne*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.93,ne*(1-me))),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.64,ne*(1-me))),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.61,ne*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.5,ne*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.39,ne*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.36,ne*(1-me))),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.07,ne*(1-me))),ue.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.755),ne*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.66),ne*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.66),ne*0)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.8),ne*0)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*0,ne*(1-me)).close());var Se=new go.PathFigure(ee*.4,ne*0,!0);return ge.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ee*.4,ne*.44)),Se.add(new go.PathSegment(go.PathSegment.Line,ee*.26,ne*.44)),Se.add(new go.PathSegment(go.PathSegment.Line,ee*.5,ne*.66)),Se.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.26),ne*.44)),Se.add(new go.PathSegment(go.PathSegment.Line,ee*.6,ne*.44)),Se.add(new go.PathSegment(go.PathSegment.Line,ee*.6,ne*0).close()),ge}),go.Shape.defineFigureGenerator("Bin",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(ee*0,ne*1,!0);ge.add(ue);var me=.1/.3;return ue.add(new go.PathSegment(go.PathSegment.Line,ee*1,ne*1)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*1,ne*(1-me))),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.8,ne*0)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.66,ne*0)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.66,ne*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.755,ne*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.93,ne*(1-me))),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.64,ne*(1-me))),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.61,ne*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.5,ne*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.39,ne*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.36,ne*(1-me))),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.07,ne*(1-me))),ue.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.755),ne*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.66),ne*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.66),ne*0)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.8),ne*0)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*0,ne*(1-me)).close()),ge}),go.Shape.defineFigureGenerator("Upload",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(ee*0,ne*1,!0);ge.add(ue);var me=.1/.3;ue.add(new go.PathSegment(go.PathSegment.Line,ee*1,ne*1)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*1,ne*(1-me))),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.8,ne*0)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.66,ne*0)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.66,ne*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.755,ne*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.93,ne*(1-me))),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.64,ne*(1-me))),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.61,ne*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.5,ne*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.39,ne*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.36,ne*(1-me))),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.07,ne*(1-me))),ue.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.755),ne*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.66),ne*.055)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.66),ne*0)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.8),ne*0)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*0,ne*(1-me)).close());var Se=new go.PathFigure(ee*.5,ne*0,!0);return ge.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ee*.26,ne*.25)),Se.add(new go.PathSegment(go.PathSegment.Line,ee*.4,ne*.25)),Se.add(new go.PathSegment(go.PathSegment.Line,ee*.4,ne*.63)),Se.add(new go.PathSegment(go.PathSegment.Line,ee*.6,ne*.63)),Se.add(new go.PathSegment(go.PathSegment.Line,ee*.6,ne*.25)),Se.add(new go.PathSegment(go.PathSegment.Line,ee*.74,ne*.25).close()),ge}),go.Shape.defineFigureGenerator("EmptyDrink",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(ee*.15,ne*0,!1);return ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.85,ne*0)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.7,ne*1)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.3,ne*1).close()),ge}),go.Shape.defineFigureGenerator("Drink",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(ee*.15,ne*0,!1);ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.85,ne*0)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.7,ne*1)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.3,ne*1).close());var me=new go.PathFigure(ee*.235,ne*.28,!0);return ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ee*.765,ne*.28)),me.add(new go.PathSegment(go.PathSegment.Line,ee*.655,ne*.97)),me.add(new go.PathSegment(go.PathSegment.Line,ee*.345,ne*.97).close()),ge}),go.Shape.defineFigureGenerator("4Arrows",function(ze,ee,ne){var ge=new go.Geometry,ue=new go.PathFigure(ee*.5,ne*0,!0);return ge.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.65,ne*.25)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.55,ne*.25)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.55,ne*.45)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.75,ne*.45)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.75,ne*.35)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*1,ne*.5)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.75,ne*.65)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.75,ne*.55)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.55,ne*.55)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.55,ne*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.65,ne*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.5,ne*1)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.35,ne*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.45,ne*.75)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.45,ne*.55)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.25,ne*.55)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.25,ne*.65)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*0,ne*.5)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.25,ne*.35)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.25,ne*.45)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.45,ne*.45)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.45,ne*.25)),ue.add(new go.PathSegment(go.PathSegment.Line,ee*.35,ne*.25).close()),ge}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},98598:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var _e={},be="5.0",oe={},se=null,Ce=!1,we=!1,Ie=null,De=!1,Ke=null,Ee=null,et=0;et<arguments.length;et++){var Je=arguments[et];if(Je!==null)switch(typeof Je){case"number":be=Je.toFixed(1);break;case"string":Je.match(new RegExp("^[0-9]\\.[0-9]+$"))?be=Je:Ie=Je;break;case"object":typeof Je.is3D!="undefined"?se=Je:oe=Je;break;case"boolean":Ce=Je,we=!0;break}}se===null&&(se={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},oe.material_id!==void 0&&!we&&(Ce=!0)),Ie!==null&&oe.id===void 0&&(oe.id=Ie);var Ye="",tt="",ht=!1,kt=null,ze=null,ee=null,ne=!1,ge=null,ue=null,me=null,Se=null,Ne=null;oe.height!==void 0&&(oe.height=Math.round(oe.height)),oe.width!==void 0&&(oe.width=Math.round(oe.width));var ke=function(It){return parseFloat(It)>4?parseFloat(It):5};_e.setHTML5Codebase=function(It,en){Ee=It,gt(It,en)},_e.setJavaCodebase=_e.setJavaCodebaseVersion=_e.isCompiledInstalled=_e.setPreCompiledScriptPath=_e.setPreCompiledResourcePath=function(){},_e.setHTML5CodebaseVersion=function(It,en){var En=parseFloat(It);if(En!==NaN&&En<5){console.log("The GeoGebra HTML5 codebase version "+En+" is deprecated. Using version latest instead.");return}Ke=It,Ve(It,en)},_e.getHTML5CodebaseVersion=function(){return ze},_e.getParameters=function(){return oe},_e.setFontsCSSURL=function(It){Se=It},_e.setGiacJSURL=function(It){},_e.setJNLPFile=function(It){Ye=It},_e.setJNLPBaseDir=function(It){},_e.inject=function(){function It(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var en="auto",En=oe.id,ei,An=!1,Kn=0;Kn<arguments.length;Kn++){var jt=arguments[Kn];typeof jt=="string"?(jt=jt.toLowerCase(),jt.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?en=jt:En=arguments[Kn]):typeof jt=="boolean"?An=jt:jt instanceof HTMLElement&&(ei=jt)}Nn();function Nn(){if(!De){setTimeout(Nn,200);return}en=an(en);var Gn=ei||document.getElementById(En);if(!Gn){console.log("possibly bug on ajax loading? ");return}if(_e.removeExistingApplet(Gn,!1),oe.width===void 0&&Gn.clientWidth&&(oe.width=Gn.clientWidth),oe.height===void 0&&Gn.clientHeight&&(oe.height=Gn.clientHeight),!(oe.width&&oe.height)&&en==="html5"&&(delete oe.width,delete oe.height),kt=en,en==="screenshot")Pt(Gn,oe);else{var ii=!1;oe.hasOwnProperty("playButton")&&oe.playButton||oe.hasOwnProperty("clickToLoad")&&oe.clickToLoad?ii=!0:oe.hasOwnProperty("playButtonAutoDecide")&&oe.playButtonAutoDecide&&(ii=(!Te()||It())&&We()),ii?(kt="screenshot",zt(Gn,oe,An,en)):$t(Gn,oe,An)}}};function Te(){try{return window.self!==window.top}catch(It){return!0}}function We(){return oe.hasOwnProperty("screenshotGenerator")&&oe.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}_e.getViews=function(){return se},_e.isJavaInstalled=function(){return!1};var $e=function(It){var en=function(Kn){var jt=JSON.parse(Kn),Nn=function(Sn){return Sn.type=="G"||Sn.type=="E"},Gn=jt.elements?jt.elements.filter(Nn)[0]:jt;if(!Gn||!Gn.url){En();return}oe.fileName=Gn.url,st(Gn.settings||{}),se.is3D=!0;var ii="https://www.geogebra.org/images/";_e.setPreviewImage(ge||Gn.previewUrl,ii+"GeoGebra_loading.png",ii+"applet_play.png"),It()},En=function(){oe.onError&&oe.onError(),Bt("Error: Fetching material (id "+oe.material_id+") failed.",oe)},ei=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",An="/materials/"+oe.material_id+"?scope=basic";ut("https://"+ei+"/api/proxy.php?path="+encodeURIComponent(An),en,En)};function st(It){var en=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(En){It[En]=!!It[En]}),en.forEach(function(En){oe[En]===void 0&&It[En]!==void 0&&(oe[En]=It[En])}),oe.showToolBarHelp===void 0&&(oe.showToolBarHelp=oe.showToolBar)}function ut(It,en,En){var ei=new XMLHttpRequest;ei.open("GET",It),ei.onload=function(){en(ei.responseText)},ei.onerror=En,ei.send()}_e.isHTML5Installed=function(){return!0},_e.getLoadedAppletType=function(){return kt},_e.setPreviewImage=function(It,en,En){ge=It,ue=en,me=En},_e.removeExistingApplet=function(It,en){var En;typeof It=="string"&&(It=document.getElementById(It)),kt=null;var ei=null;for(En=0;En<It.childNodes.length;En++){var An=It.childNodes[En],Kn=An.className;Kn==="applet_screenshot"?en?(An.style.display="block",kt="screenshot"):An.style.display="none":Kn!=="applet_scaler prerender"&&(It.removeChild(An),ei=Kn&&Kn.indexOf("appletParameters")!=-1?An.id:null,En--)}var jt=oe.id!==void 0?oe.id:ei,Nn=window[jt];Nn&&typeof Nn.getBase64=="function"&&(Nn.remove(),window[jt]=null)},_e.refreshHitPoints=function(){if(ke(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var It=_e.getAppletObject();return It&&typeof It.recalculateEnvironments=="function"?(It.recalculateEnvironments(),!0):!1},_e.startAnimation=function(){var It=_e.getAppletObject();return It&&typeof It.startAnimation=="function"?(It.startAnimation(),!0):!1},_e.stopAnimation=function(){var It=_e.getAppletObject();return It&&typeof It.stopAnimation=="function"?(It.stopAnimation(),!0):!1},_e.getAppletObject=function(){var It=oe.id!==void 0?oe.id:"ggbApplet";return window[It]},_e.resize=function(){};var Mt=function(It,en,En){var ei=document.createElement("param");ei.setAttribute("name",en),ei.setAttribute("value",En),It.appendChild(ei)},nt=function(It){return It&&It!=="false"},$t=function(It,en,En){ke(ze)<=4.2&&(En=!0);var ei=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ze||ggbHTML5LoadedCodebaseIsWebSimple&&!ne)&&(ei=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var An=document.createElement("div");An.classList.add("appletParameters","notranslate");var Kn=en.width,jt=en.height;if(en.disableAutoScale=en.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():en.disableAutoScale,en.width!==void 0)if(ke(ze)<=4.4)nt(en.showToolBar)&&(en.height-=7),nt(en.showAlgebraInput)&&(en.height-=37),en.width<605&&nt(en.showToolBar)&&(en.width=605,Kn=605);else{var Nn=100;(nt(en.showToolBar)||nt(en.showMenuBar))&&(en.hasOwnProperty("customToolBar")&&(en.customToolbar=en.customToolBar),Nn=nt(en.showMenuBar)?245:155),Kn<Nn&&(en.width=Nn,Kn=Nn)}An.style.border="none",An.style.display="inline-block";for(var Gn in en)en.hasOwnProperty(Gn)&&Gn!=="appletOnLoad"&&An.setAttribute("data-param-"+Gn,en[Gn]);Se&&An.setAttribute("data-param-fontscssurl",Se),_e.resize=function(){GGBAppletUtils.responsiveResize(It,en)},window.addEventListener("resize",function(xe){_e.resize()});var ii=typeof en.appletOnLoad=="function"?en.appletOnLoad:function(){};if(!En&&en.width!==void 0){en.hasOwnProperty("showSplash")||An.setAttribute("data-param-showSplash","false");var Sn=It.querySelector(".applet_scaler.prerender"),Yt=Sn!==null;if(Yt)var Zt=Sn.querySelector(".ggb_preview");else{var Zt=fn(Kn,jt,en.borderColor,!1);Sn=document.createElement("div"),Sn.className="applet_scaler",Sn.style.position="relative",Sn.style.display="block",Sn.style.width=Kn+"px",Sn.style.height=jt+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Sn,"66%"),ke(ze)>=5?(en.appletOnLoad=function(xe){var je=It.querySelector(".ggb_preview");je&&je.parentNode.removeChild(je),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Sn),window.GGBT_wsf_view&&$(window).trigger("resize"),ii(xe)},Yt||Sn.appendChild(Zt)):An.appendChild(Zt),Sn.appendChild(An),Yt||It.appendChild(Sn),setTimeout(function(){_e.resize()},1)}else{var St=document.createElement("div");St.className="applet_scaler",St.style.position="relative",St.style.display="block",St.appendChild(An),It.appendChild(St),en.appletOnLoad=function(xe){_e.resize(),ii(xe)}}function rt(xe,je){je&&typeof je.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(xe,je.appletOnLoad):renderGGBElement(xe),Bt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",je)}function Ft(xe,je){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:xe,params:je}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Qe){rt(Qe.article,Qe.params)}),html5AppletsToProcess=null)},ke(ze)<5&&(xe.className+=" geogebraweb")):rt(xe,je)}if(ei){scriptLoadStarted=!0;for(var Ot=0;Ot<An.childNodes.length;Ot++){var ft=An.childNodes[Ot].tagName;ft==="TABLE"&&(An.removeChild(An.childNodes[Ot]),Ot--)}if(ggbHTML5LoadedScript!==null){var ct=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');ct!=null&&ct.parentNode.removeChild(ct)}var Ge=document.createElement("script"),Ae=function(){Ft(An,en)};Ge.src=tt+ee,ggbHTML5LoadedCodebaseIsWebSimple=ne,ggbHTML5LoadedCodebaseVersion=ze,ggbHTML5LoadedScript=Ge.src,Bt("GeoGebra HTML5 codebase loaded: '"+tt+"'.",en),!Ee&&(!Ke||Ke=="5.0")?(ne?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Ae()):tt.requirejs?__webpack_require__.e(7374).then(function(){var xe=[__webpack_require__(97374)];Ae.apply(null,xe)}.bind(this)).catch(__webpack_require__.oe):(Ge.onload=Ae,It.appendChild(Ge))}else Ft(An,en);en.height=jt,en.width=Kn},Pt=function(It,en,En){var ei=fn(en.width,en.height,en.borderColor,En),An=document.createElement("div");An.style.position="relative",An.style.display="block",An.style.width=en.width+"px",An.style.height=en.height+"px",An.className="applet_screenshot applet_scaler"+(En?" applet_screenshot_play":""),An.appendChild(ei);var Kn=GGBAppletUtils.getScale(en,It,En);En?(It.appendChild(Xt()),window.GGBT_wsf_view||(It.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(An,"66%"),It.appendChild(An),Kn!==1&&!isNaN(Kn)&&(GGBAppletUtils.scaleElement(An,Kn),An.style.width=en.width+"px",An.style.height=en.height+"px",An.parentNode.style.width=en.width*Kn+"px",An.parentNode.style.height=en.height*Kn+"px"),_e.resize=function(){dn(It,ei,An,En)},window.addEventListener("resize",function(jt){_e.resize()}),_e.resize()};function dn(It,en,En,ei){if(It.contains(en)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(It.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(It)}var An=GGBAppletUtils.getScale(oe,It,ei);En.parentNode!==null&&(!isNaN(An)&&An!==1?(GGBAppletUtils.scaleElement(En,An),En.parentNode.style.width=oe.width*An+"px",En.parentNode.style.height=oe.height*An+"px"):(GGBAppletUtils.scaleElement(En,1),En.parentNode.style.width=oe.width+"px",En.parentNode.style.height=oe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(It),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}_e.onExitFullscreen=function(It,en){en.appendChild(It)};var zt=function(It,en,En,ei){Pt(It,en,!0);for(var An=function(){var Nn=[];for(jt=0;jt<It.childNodes.length;jt++)Nn.push(It.childNodes[jt]);if(window.GGBT_wsf_view){var Gn=window.GGBT_wsf_view.renderFullScreen(It,en.id),ii=document.getElementById("fullscreencontainer"),Sn=jQuery(It).find(".fullscreencontent");Sn.length>0?(Gn.remove(),Sn.attr("id","fullscreencontent").show(),jQuery(ii).append(Sn),window.dispatchEvent(new Event("resize"))):$t(Gn,en,!1),window.GGBT_wsf_view.launchFullScreen(ii)}else kt=ei,$t(It,en,!1);if(!window.GGBT_wsf_view)for(jt=0;jt<Nn.length;jt++)It.removeChild(Nn[jt])},Kn=It.getElementsByClassName("ggb_preview_play"),jt=0;jt<Kn.length;jt++)Kn[jt].addEventListener("click",An,!1),Kn[jt].addEventListener("ontouchstart",An,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(It),We()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Xt=function(){var It=document.createElement("div");if(It.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var en='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',En=document.createElement("style");En.styleSheet?En.styleSheet.cssText=en:En.appendChild(document.createTextNode(en)),document.getElementsByTagName("head")[0].appendChild(En)}return It},fn=function(It,en,En,ei){var An=document.createElement("div");An.className="ggb_preview",An.style.position="absolute",An.style.zIndex="90",An.style.width=It-2+"px",An.style.height=en-2+"px",An.style.top="0px",An.style.left="0px",An.style.overflow="hidden",An.style.backgroundColor="white";var Kn="lightgrey";En!==void 0&&(En==="none"?Kn="transparent":Kn=En),An.style.border="1px solid "+Kn;var jt=document.createElement("img");if(jt.style.position="relative",jt.style.zIndex="1000",jt.style.top="-1px",jt.style.left="-1px",ge!==null&&jt.setAttribute("src",ge),jt.style.opacity=.7,ue!==null){var Nn,Gn,ii;if(!ei){Nn=document.createElement("img"),Nn.style.position="absolute",Nn.style.zIndex="1001",Nn.style.opacity=1,jt.style.opacity=.3,Gn=360,Gn>It/4*3&&(Gn=It/4*3),ii=Gn/5.8,Nn.setAttribute("src",ue),Nn.setAttribute("width",Gn),Nn.setAttribute("height",ii);var Sn=(It-Gn)/2,Yt=(en-ii)/2;Nn.style.left=Sn+"px",Nn.style.top=Yt+"px",An.appendChild(Nn)}}return An.appendChild(jt),An},an=function(It){return It=It.toLowerCase(),It==="html5"||It==="screenshot"?It:"html5"},it=["web","webSimple","web3d","tablet","tablet3d","phone"],Ve=function(It,en){if(ze=It,en){gt(ze,!0);return}var En=!Ce;if(En){var ei=ke(ze);!isNaN(ei)&&ei<4.4&&(En=!1)}var An,Kn;window.location.protocol.substr(0,4)==="http"?An=window.location.protocol:An="http:";var jt=ze.indexOf("//");jt>0?Kn=ze:jt===0?Kn=An+ze:Kn="https://www.geogebra.org/apps/5.2.814.0/";for(var Nn in it)if(ze.slice(it[Nn].length*-1)===it[Nn]||ze.slice((it[Nn].length+1)*-1)===it[Nn]+"/"){gt(Kn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&En&&!se.is3D&&!se.AV&&!se.SV&&!se.CV&&!se.EV2&&!se.CP&&!se.PC&&!se.DA&&!se.FI&&!se.PV&&!nt(oe.showToolBar)&&!nt(oe.showMenuBar)&&!nt(oe.showAlgebraInput)&&!nt(oe.enableRightClick)&&(!oe.appName||oe.appName=="classic")?Kn+="webSimple/":Kn+="web3d/",gt(Kn,!1)},gt=function(It,en){if(It.requirejs){tt=It;return}It.slice(-1)!=="/"&&(It+="/"),tt=It,en===null&&(en=It.indexOf("http")===-1),ht=en,ee="web.nocache.js",ne=!1;var En=tt.split("/");En.length>1&&(!en&&En[En.length-2]==="webSimple"?(ee="webSimple.nocache.js",ne=!0):it.indexOf(En[En.length-2])>=0&&(ee=En[En.length-2]+".nocache.js")),En=It.split("/"),ze=En[En.length-3],ze.substr(0,4)==="test"?ze=ze.substr(4,1)+"."+ze.substr(5,1):(ze.substr(0,3)==="war"||ze.substr(0,4)==="beta")&&(ze="5.0");var ei=parseFloat(ze);ei!==NaN&&ei<5&&It.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+ei+" is deprecated. Using version latest instead."),Ve("5.0",en))},Bt=function(It,en){window.console&&window.console.log&&(!en||typeof en.showLogging=="undefined"||en.showLogging&&en.showLogging!=="false")&&console.log(It)};oe.material_id!==void 0?$e(sn):sn();function sn(){var It=be;Ke!==null?It=Ke:parseFloat(It)<5&&(It="5.0"),Ve(It,!1),Ee!==null&&gt(Ee,ht),De=!0}return _e},GGBAppletUtils=function(){"use strict";function _e(){return window.GGBT_wsf_edit!==void 0}function be(De,Ke){Ke!=1?(De.style.transformOrigin="0% 0% 0px",De.style.webkitTransformOrigin="0% 0% 0px",De.style.transform="scale("+Ke+","+Ke+")",De.style.webkitTransform="scale("+Ke+","+Ke+")",De.style.maxWidth="initial",De.querySelector(".ggb_preview")!==null&&(De.querySelector(".ggb_preview").style.maxWidth="initial"),De.querySelectorAll(".ggb_preview img")[0]!==void 0&&(De.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),De.querySelectorAll(".ggb_preview img")[1]!==void 0&&(De.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(De.style.transform="none",De.style.webkitTransform="none")}function oe(De,Ke,Ee,et,Je,Ye){var tt=null;if(Ye!=null&&Ye!="")for(var ht=De.parentNode;ht!=null;)if((" "+ht.className+" ").indexOf(" "+Ye+" ")>-1){tt=ht;break}else ht=ht.parentNode;var kt=0,ze=0,ee=0,ne=0,ge=0,ue=0,me=0;if(tt)kt=tt.offsetWidth,ze=Math.max(et?tt.offsetWidth:0,tt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(kt=Math.min(window.innerWidth,document.documentElement.clientWidth),ze=Math.min(window.innerHeight,document.documentElement.clientHeight),ee=kt):(kt=window.innerWidth,ze=window.innerHeight,ee=window.innerWidth),De){var Se=De.getBoundingClientRect();Se.left>0&&Se.left<=kt&&(Je===void 0||!Je)&&(document.dir==="rtl"?(ge=kt-Se.width-Se.left,ue=ee<=480?10:30):(ue=Se.left,ge=ee<=480?10:30),ne=ue+ge)}if(De&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Ne=De.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ne=40,me=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ne=0,me=40)}}return De&&((Ee===void 0||!Ee)&&Ke>0&&Ke+ne<kt?kt=Ke:kt-=ne,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ee===void 0||!Ee)&&(ze-=me)),{width:kt,height:ze}}function se(De,Ke,Ee,et,Je){if(De.isScreenshoGenerator)return 1;var Ye=et!==void 0&&et,tt=De.noScaleMargin!=null&&De.noScaleMargin,ht=function(Ne){return Ne&&Ne!=="false"},kt=ht(De.autoHeight),ze=oe(Ke,De.width,Ee,kt,Ye&&window.GGBT_wsf_view||tt,Je),ee=parseInt(ze.width),ne=De.width,ge=De.height;if(ne===void 0){var ue=Ke.querySelector(".appletParameters");ue&&(ne=ue.offsetWidth,ge=ue.offsetHeight)}var me=ee/ne,Se=Ye?1:ze.height/ge;return Ee!==void 0&&!Ee&&(me=Math.min(1,me),Se=Math.min(1,Se)),Math.min(me,Se)}function Ce(De,Ke,Ee){var et=1,Je,Ye=!1;if(De.hasOwnProperty("allowUpscale")&&(Ye=De.allowUpscale),De.hasOwnProperty("scale")&&(et=parseFloat(De.scale),(isNaN(et)||et===null||et===0)&&(et=1),et>1&&(Ye=!0)),Ke&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ye=!0),!(De.hasOwnProperty("disableAutoScale")&&De.disableAutoScale))Je=se(De,Ke,Ye,Ee,De.scaleContainerClass);else return et;return Ye&&(!De.hasOwnProperty("scale")||et===1)?Je:Math.min(et,Je)}function we(De){var Ke=Math.min(window.innerWidth,document.documentElement.clientWidth),Ee=Math.min(window.innerHeight,document.documentElement.clientHeight),et=De.getBoundingClientRect(),Je=(Ke-et.width)/2,Ye=(Ee-et.height)/2;Ye<0&&(Ye=0),De.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Je<40?De.style.left="40px":De.style.left=Je+"px",De.style.top=Ye+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ye<40?De.style.top="40px":De.style.top=Ye+"px",De.style.left=Je+"px")}function Ie(De,Ke){var Ee=De.querySelector(".appletParameters");if(Ee){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ke.id!==Ee.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(De)}if(Ee.parentElement&&/fullscreen/.test(Ee.parentElement.className))return;var et=Ce(Ke,De);_e()&&Ee.setAttribute("data-param-scale",et);for(var Je=null,Ye=0;Ye<De.childNodes.length;Ye++)if(De.childNodes[Ye].className!==void 0&&De.childNodes[Ye].className.match(/^applet_scaler/)){Je=De.childNodes[Ye];break}if(Je!==null&&Je.querySelector(".noscale")!==null)return;var tt=Ke.id!==void 0?Ke.id:"ggbApplet",ht=window[tt];(ht==null||!ht.recalculateEnvironments)&&Je!==null&&!Je.className.match(/fullscreen/)&&(Je.parentNode.style.transform="",!isNaN(et)&&et!==1?(Je.parentNode.style.width=Ke.width*et+"px",Je.parentNode.style.height=Ke.height*et+"px",be(Je,et)):(be(Je,1),Je.parentNode.style.width=Ke.width+"px",Je.parentNode.style.height=Ke.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&we(De),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Ee).parents(".content-added-content"))}}return{responsiveResize:Ie,isFlexibleWorksheetEditor:_e,positionCenter:we,getScale:Ce,scaleElement:be}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var _e=n.location.search;return _e.indexOf(J)!=-1||_e.indexOf(K)!=-1}function q(_e,be){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(_e){var be=s[L].bindings;s[L].bindings=function(){for(var oe=be?be():{},se=_e[webModule.__softPermutationId],Ce=O;Ce<se.length;Ce++){var we=se[Ce];oe[we[O]]=we[P]}return oe}};var t;function u(){return v(),t}function v(){if(!t){var _e=o.createElement(Q);if(_e.id=L,_e.style.cssText=R+S,_e.tabIndex=-1,o.body.appendChild(_e),t=_e.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var be=document.compatMode==U?V:W;t.write(be+X),t.close()}}}function w(_e){function be(se){function Ce(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var we=Ce();if(we){se();return}function Ie(){if(!we){if(!Ce())return;we=!0,se(),o.removeEventListener&&o.removeEventListener(Z,Ie,!1),De&&clearInterval(De)}}o.addEventListener&&o.addEventListener(Z,Ie,!1);var De=setInterval(function(){Ie()},$)}function oe(se){var Ce=u(),we=Ce.body,Ie=Ce.createElement(_);Ie.language=ab,Ie.crossOrigin=W,Ie.src=se,webModule.__errFn&&(Ie.onerror=function(){webModule.__errFn(L,new Error(bb+se))}),we.appendChild(Ie)}be(function(){oe(_e)})}webModule.__startLoadingFragment=function(_e){return C(_e)},webModule.__installRunAsyncCode=function(_e){var be=u(),oe=be.body,se=be.createElement(_);se.language=ab,se.text=_e,oe.appendChild(se),oe.removeChild(se)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(_e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(_e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(_e){var be=c[_e];return be==null?null:be},r=d,webModule.__errFn=e}function B(){function _e(De){var Ke=De.lastIndexOf(rb);Ke==-1&&(Ke=De.length);var Ee=De.indexOf(sb);Ee==-1&&(Ee=De.length);var et=De.lastIndexOf(tb,Math.min(Ee,Ke));return et>=O?De.substring(O,et+P):W}function be(De){if(!De.match(/^\w+:\/\//)){var Ke=o.createElement(ub);Ke.src=De+vb,De=_e(Ke.src)}return De}function oe(){var De=__gwt_getMetaProperty(wb);return De!=null?De:W}function se(){for(var De=o.getElementsByTagName(_),Ke=O;Ke<De.length;++Ke)if(De[Ke].src.indexOf(xb)!=-1)return _e(De[Ke].src);return W}function Ce(){var De=o.getElementsByTagName(yb);return De.length>O?De[De.length-P].href:W}function we(){var De=o.location;return De.href==De.protocol+zb+De.host+De.pathname+De.search+De.hash}var Ie=oe();return Ie==W&&(Ie=se()),Ie==W&&(Ie=Ce()),Ie==W&&we()&&(Ie=_e(o.location.href)),Ie=be(Ie),Ie}function C(_e){return _e.match(/^\//)||_e.match(/^[a-zA-Z]+:\/\//)?_e:webModule.__moduleBase+_e}function D(){var _e=[],be=O,oe=[],se=[];function Ce(De){var Ke=se[De](),Ee=oe[De];if(Ke in Ee)return Ke;var et=[];for(var Je in Ee)et[Ee[Je]]=Je;throw r&&r(De,et,Ke),null}if(__gwt_isKnownPropertyValue=function(De,Ke){return Ke in oe[De]},webModule.__getPropMap=function(){var De={};for(var Ke in oe)oe.hasOwnProperty(Ke)&&(De[Ke]=Ce(Ke));return De},webModule.__computePropValue=Ce,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var we;try{we=Cb;var Ie=we.indexOf(Db);Ie!=-1&&(be=parseInt(we.substring(Ie+P),$),we=we.substring(O,Ie))}catch(De){}return webModule.__softPermutationId=be,C(we+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},58788:function(_e,be,oe){"use strict";oe.d(be,{Ax:function(){return Ie},Ds:function(){return De},KI:function(){return Ee},SI:function(){return we},f1:function(){return Ce}});var se=oe(10148);function Ce(et){let Je=!0;if(et.length>0){for(let Ye=0;Ye<et.length;Ye++)if(et[Ye].compile_success==0||!et[Ye].compile_success){Je=!1;break}}else Je=!1;return Je}function we(et,Je=""){let Ye=[];for(let tt=0;tt<et.length;tt++){let ht=et[tt],kt=Je?`${Je}/${ht.name}`:`${ht.name}`;Ye.push({title:ht.name,type:ht.type,isLeaf:ht.type!=="tree",key:kt})}return Ye}function Ie(et,Je,Ye){for(let tt=0;tt<et.length;tt++){let ht=et[tt];if(ht.key===Je){ht.children=Ye;break}ht.children&&Ie(ht.children,Je,Ye)}return et}function De(et,Je,Ye){let tt;return function(){let ht=this,kt=arguments,ze=function(){tt=null,Ye||et.apply(ht,kt)},ee=Ye&&!tt;clearTimeout(tt),tt=setTimeout(ze,Je),ee&&et.apply(ht,kt)}}const Ke=!0,Ee=se.Z.API_SERVER},29399:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return vf}});var se={};oe.r(se),oe.d(se,{boolean:function(){return an},booleanish:function(){return it},commaOrSpaceSeparated:function(){return It},commaSeparated:function(){return sn},number:function(){return gt},overloadedBoolean:function(){return Ve},spaceSeparated:function(){return Bt}});var Ce={};oe.r(Ce),oe.d(Ce,{attentionMarkers:function(){return iu},contentInitial:function(){return Fr},disable:function(){return Sl},document:function(){return Fa},flow:function(){return qo},flowInitial:function(){return za},insideSpan:function(){return oo},string:function(){return ol},text:function(){return Zi}});var we=oe(59301),Ie=oe(8591),De=oe(24645),Ke=oe(43418),Ee=oe(92832),et=oe(3113),Je=oe(6848),Ye=oe(43428),tt=oe(95237),ht=oe(42203);function kt(he){return he}function ze(){}function ee(){}function ne(){}function ge(he){const Me=[],Re=String(he||"");let He=Re.indexOf(","),dt=0,vt=!1;for(;!vt;){He===-1&&(He=Re.length,vt=!0);const At=Re.slice(dt,He).trim();(At||!vt)&&Me.push(At),dt=He+1,He=Re.indexOf(",",dt)}return Me}function ue(he,Me){const Re=Me||{};return(he[he.length-1]===""?[...he,""]:he).join((Re.padRight?" ":"")+","+(Re.padLeft===!1?"":" ")).trim()}const me=/[$_\p{ID_Start}]/u,Se=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,Ne=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,ke=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Te=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,We={};function $e(he){return he?me.test(String.fromCodePoint(he)):!1}function st(he,Me){const He=(Me||We).jsx?Ne:Se;return he?He.test(String.fromCodePoint(he)):!1}function ut(he,Me){return((Me||We).jsx?Te:ke).test(he)}const Mt=/[ \t\n\f\r]/g;function nt(he){return typeof he=="object"?he.type==="text"?$t(he.value):!1:$t(he)}function $t(he){return he.replace(Mt,"")===""}class Pt{constructor(Me,Re,He){this.property=Me,this.normal=Re,He&&(this.space=He)}}Pt.prototype.property={},Pt.prototype.normal={},Pt.prototype.space=null;function dn(he,Me){const Re={},He={};let dt=-1;for(;++dt<he.length;)Object.assign(Re,he[dt].property),Object.assign(He,he[dt].normal);return new Pt(Re,He,Me)}function zt(he){return he.toLowerCase()}class Xt{constructor(Me,Re){this.property=Me,this.attribute=Re}}Xt.prototype.space=null,Xt.prototype.boolean=!1,Xt.prototype.booleanish=!1,Xt.prototype.overloadedBoolean=!1,Xt.prototype.number=!1,Xt.prototype.commaSeparated=!1,Xt.prototype.spaceSeparated=!1,Xt.prototype.commaOrSpaceSeparated=!1,Xt.prototype.mustUseProperty=!1,Xt.prototype.defined=!1;let fn=0;const an=en(),it=en(),Ve=en(),gt=en(),Bt=en(),sn=en(),It=en();function en(){return w1(2,++fn)}const En=Object.keys(se);class ei extends Xt{constructor(Me,Re,He,dt){let vt=-1;if(super(Me,Re),An(this,"space",dt),typeof He=="number")for(;++vt<En.length;){const At=En[vt];An(this,En[vt],(He&se[At])===se[At])}}}ei.prototype.defined=!0;function An(he,Me,Re){Re&&(he[Me]=Re)}const Kn={}.hasOwnProperty;function jt(he){const Me={},Re={};let He;for(He in he.properties)if(Kn.call(he.properties,He)){const dt=he.properties[He],vt=new ei(He,he.transform(he.attributes||{},He),dt,he.space);he.mustUseProperty&&he.mustUseProperty.includes(He)&&(vt.mustUseProperty=!0),Me[He]=vt,Re[zt(He)]=He,Re[zt(vt.attribute)]=He}return new Pt(Me,Re,he.space)}const Nn=jt({space:"xlink",transform(he,Me){return"xlink:"+Me.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Gn=jt({space:"xml",transform(he,Me){return"xml:"+Me.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function ii(he,Me){return Me in he?he[Me]:Me}function Sn(he,Me){return ii(he,Me.toLowerCase())}const Yt=jt({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Sn,properties:{xmlns:null,xmlnsXLink:null}}),Zt=jt({transform(he,Me){return Me==="role"?Me:"aria-"+Me.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:it,ariaAutoComplete:null,ariaBusy:it,ariaChecked:it,ariaColCount:gt,ariaColIndex:gt,ariaColSpan:gt,ariaControls:Bt,ariaCurrent:null,ariaDescribedBy:Bt,ariaDetails:null,ariaDisabled:it,ariaDropEffect:Bt,ariaErrorMessage:null,ariaExpanded:it,ariaFlowTo:Bt,ariaGrabbed:it,ariaHasPopup:null,ariaHidden:it,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Bt,ariaLevel:gt,ariaLive:null,ariaModal:it,ariaMultiLine:it,ariaMultiSelectable:it,ariaOrientation:null,ariaOwns:Bt,ariaPlaceholder:null,ariaPosInSet:gt,ariaPressed:it,ariaReadOnly:it,ariaRelevant:null,ariaRequired:it,ariaRoleDescription:Bt,ariaRowCount:gt,ariaRowIndex:gt,ariaRowSpan:gt,ariaSelected:it,ariaSetSize:gt,ariaSort:null,ariaValueMax:gt,ariaValueMin:gt,ariaValueNow:gt,ariaValueText:null,role:null}}),St=jt({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Sn,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:sn,acceptCharset:Bt,accessKey:Bt,action:null,allow:null,allowFullScreen:an,allowPaymentRequest:an,allowUserMedia:an,alt:null,as:null,async:an,autoCapitalize:null,autoComplete:Bt,autoFocus:an,autoPlay:an,blocking:Bt,capture:null,charSet:null,checked:an,cite:null,className:Bt,cols:gt,colSpan:null,content:null,contentEditable:it,controls:an,controlsList:Bt,coords:gt|sn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:an,defer:an,dir:null,dirName:null,disabled:an,download:Ve,draggable:it,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:an,formTarget:null,headers:Bt,height:gt,hidden:an,high:gt,href:null,hrefLang:null,htmlFor:Bt,httpEquiv:Bt,id:null,imageSizes:null,imageSrcSet:null,inert:an,inputMode:null,integrity:null,is:null,isMap:an,itemId:null,itemProp:Bt,itemRef:Bt,itemScope:an,itemType:Bt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:an,low:gt,manifest:null,max:null,maxLength:gt,media:null,method:null,min:null,minLength:gt,multiple:an,muted:an,name:null,nonce:null,noModule:an,noValidate:an,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:an,optimum:gt,pattern:null,ping:Bt,placeholder:null,playsInline:an,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:an,referrerPolicy:null,rel:Bt,required:an,reversed:an,rows:gt,rowSpan:gt,sandbox:Bt,scope:null,scoped:an,seamless:an,selected:an,shadowRootClonable:an,shadowRootDelegatesFocus:an,shadowRootMode:null,shape:null,size:gt,sizes:null,slot:null,span:gt,spellCheck:it,src:null,srcDoc:null,srcLang:null,srcSet:null,start:gt,step:null,style:null,tabIndex:gt,target:null,title:null,translate:null,type:null,typeMustMatch:an,useMap:null,value:it,width:gt,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Bt,axis:null,background:null,bgColor:null,border:gt,borderColor:null,bottomMargin:gt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:an,declare:an,event:null,face:null,frame:null,frameBorder:null,hSpace:gt,leftMargin:gt,link:null,longDesc:null,lowSrc:null,marginHeight:gt,marginWidth:gt,noResize:an,noHref:an,noShade:an,noWrap:an,object:null,profile:null,prompt:null,rev:null,rightMargin:gt,rules:null,scheme:null,scrolling:it,standby:null,summary:null,text:null,topMargin:gt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:gt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:an,disableRemotePlayback:an,prefix:null,property:null,results:gt,security:null,unselectable:null}}),rt=jt({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:ii,properties:{about:It,accentHeight:gt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:gt,amplitude:gt,arabicForm:null,ascent:gt,attributeName:null,attributeType:null,azimuth:gt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:gt,by:null,calcMode:null,capHeight:gt,className:Bt,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:gt,diffuseConstant:gt,direction:null,display:null,dur:null,divisor:gt,dominantBaseline:null,download:an,dx:null,dy:null,edgeMode:null,editable:null,elevation:gt,enableBackground:null,end:null,event:null,exponent:gt,externalResourcesRequired:null,fill:null,fillOpacity:gt,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:sn,g2:sn,glyphName:sn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:gt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:gt,horizOriginX:gt,horizOriginY:gt,id:null,ideographic:gt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:gt,k:gt,k1:gt,k2:gt,k3:gt,k4:gt,kernelMatrix:It,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:gt,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:gt,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:gt,overlineThickness:gt,paintOrder:null,panose1:null,path:null,pathLength:gt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Bt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:gt,pointsAtY:gt,pointsAtZ:gt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:It,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:It,rev:It,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:It,requiredFeatures:It,requiredFonts:It,requiredFormats:It,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:gt,specularExponent:gt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:gt,strikethroughThickness:gt,string:null,stroke:null,strokeDashArray:It,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:gt,strokeOpacity:gt,strokeWidth:null,style:null,surfaceScale:gt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:It,tabIndex:gt,tableValues:null,target:null,targetX:gt,targetY:gt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:It,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:gt,underlineThickness:gt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:gt,values:null,vAlphabetic:gt,vMathematical:gt,vectorEffect:null,vHanging:gt,vIdeographic:gt,version:null,vertAdvY:gt,vertOriginX:gt,vertOriginY:gt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:gt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Ft=dn([Gn,Nn,Yt,Zt,St],"html"),Ot=dn([Gn,Nn,Yt,Zt,rt],"svg"),ft=/^data[-\w.:]+$/i,ct=/-[a-z]/g,Ge=/[A-Z]/g;function Ae(he,Me){const Re=zt(Me);let He=Me,dt=Xt;if(Re in he.normal)return he.property[he.normal[Re]];if(Re.length>4&&Re.slice(0,4)==="data"&&ft.test(Me)){if(Me.charAt(4)==="-"){const vt=Me.slice(5).replace(ct,je);He="data"+vt.charAt(0).toUpperCase()+vt.slice(1)}else{const vt=Me.slice(4);if(!ct.test(vt)){let At=vt.replace(Ge,xe);At.charAt(0)!=="-"&&(At="-"+At),Me="data"+At}}dt=ei}return new dt(He,Me)}function xe(he){return"-"+he.toLowerCase()}function je(he){return he.charAt(1).toUpperCase()}const Qe={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"};function Oe(he){const Me=String(he||"").trim();return Me?Me.split(/[ \t\n\r\f]+/g):[]}function xt(he){return he.join(" ").trim()}var hn=oe(58970),Pn=hn.default||hn;const wt=Mn("end"),nn=Mn("start");function Mn(he){return Me;function Me(Re){const He=Re&&Re.position&&Re.position[he]||{};if(typeof He.line=="number"&&He.line>0&&typeof He.column=="number"&&He.column>0)return{line:He.line,column:He.column,offset:typeof He.offset=="number"&&He.offset>-1?He.offset:void 0}}}function Zn(he){const Me=nn(he),Re=wt(he);if(Me&&Re)return{start:Me,end:Re}}function li(he){return!he||typeof he!="object"?"":"position"in he||"type"in he?Mi(he.position):"start"in he||"end"in he?Mi(he):"line"in he||"column"in he?xi(he):""}function xi(he){return Si(he&&he.line)+":"+Si(he&&he.column)}function Mi(he){return xi(he&&he.start)+"-"+xi(he&&he.end)}function Si(he){return he&&typeof he=="number"?he:1}class Ri extends Error{constructor(Me,Re,He){super(),typeof Re=="string"&&(He=Re,Re=void 0);let dt="",vt={},At=!1;if(Re&&("line"in Re&&"column"in Re?vt={place:Re}:"start"in Re&&"end"in Re?vt={place:Re}:"type"in Re?vt={ancestors:[Re],place:Re.position}:vt=Ys({},Re)),typeof Me=="string"?dt=Me:!vt.cause&&Me&&(At=!0,dt=Me.message,vt.cause=Me),!vt.ruleId&&!vt.source&&typeof He=="string"){const Tn=He.indexOf(":");Tn===-1?vt.ruleId=He:(vt.source=He.slice(0,Tn),vt.ruleId=He.slice(Tn+1))}if(!vt.place&&vt.ancestors&&vt.ancestors){const Tn=vt.ancestors[vt.ancestors.length-1];Tn&&(vt.place=Tn.position)}const Jt=vt.place&&"start"in vt.place?vt.place.start:vt.place;this.ancestors=vt.ancestors||void 0,this.cause=vt.cause||void 0,this.column=Jt?Jt.column:void 0,this.fatal=void 0,this.file,this.message=dt,this.line=Jt?Jt.line:void 0,this.name=li(vt.place)||"1:1",this.place=vt.place||void 0,this.reason=this.message,this.ruleId=vt.ruleId||void 0,this.source=vt.source||void 0,this.stack=At&&vt.cause&&typeof vt.cause.stack=="string"?vt.cause.stack:"",this.actual,this.expected,this.note,this.url}}Ri.prototype.file="",Ri.prototype.name="",Ri.prototype.reason="",Ri.prototype.message="",Ri.prototype.stack="",Ri.prototype.column=void 0,Ri.prototype.line=void 0,Ri.prototype.ancestors=void 0,Ri.prototype.cause=void 0,Ri.prototype.fatal=void 0,Ri.prototype.place=void 0,Ri.prototype.ruleId=void 0,Ri.prototype.source=void 0;const lr={}.hasOwnProperty,dr=new Map,ur=/[A-Z]/g,Sr=/-([a-z])/g,Wr=new Set(["table","tbody","thead","tfoot","tr"]),Gi=new Set(["td","th"]),Zr="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Yi(he,Me){if(!Me||Me.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const Re=Me.filePath||void 0;let He;if(Me.development){if(typeof Me.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");He=qt(Re,Me.jsxDEV)}else{if(typeof Me.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof Me.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");He=ln(Re,Me.jsx,Me.jsxs)}const dt={Fragment:Me.Fragment,ancestors:[],components:Me.components||{},create:He,elementAttributeNameCase:Me.elementAttributeNameCase||"react",evaluater:Me.createEvaluater?Me.createEvaluater():void 0,filePath:Re,ignoreInvalidStyle:Me.ignoreInvalidStyle||!1,passKeys:Me.passKeys!==!1,passNode:Me.passNode||!1,schema:Me.space==="svg"?Ot:Ft,stylePropertyNameCase:Me.stylePropertyNameCase||"dom",tableCellAlignToStyle:Me.tableCellAlignToStyle!==!1},vt=Ue(dt,he,void 0);return vt&&typeof vt!="string"?vt:dt.create(he,dt.Fragment,{children:vt||void 0},void 0)}function Ue(he,Me,Re){if(Me.type==="element")return no(he,Me,Re);if(Me.type==="mdxFlowExpression"||Me.type==="mdxTextExpression")return pr(he,Me);if(Me.type==="mdxJsxFlowElement"||Me.type==="mdxJsxTextElement")return Fo(he,Me,Re);if(Me.type==="mdxjsEsm")return fo(he,Me);if(Me.type==="root")return Vo(he,Me,Re);if(Me.type==="text")return Io(he,Me)}function no(he,Me,Re){const He=he.schema;let dt=He;Me.tagName.toLowerCase()==="svg"&&He.space==="html"&&(dt=Ot,he.schema=dt),he.ancestors.push(Me);const vt=In(he,Me.tagName,!1),At=Nt(he,Me);let Jt=Un(he,Me);return Wr.has(Me.tagName)&&(Jt=Jt.filter(function(Tn){return typeof Tn=="string"?!nt(Tn):!0})),Oi(he,At,vt,Me),on(At,Jt),he.ancestors.pop(),he.schema=He,he.create(Me,vt,At,Re)}function pr(he,Me){if(Me.data&&Me.data.estree&&he.evaluater){const He=Me.data.estree.body[0];return He.type,he.evaluater.evaluateExpression(He.expression)}zn(he,Me.position)}function fo(he,Me){if(Me.data&&Me.data.estree&&he.evaluater)return he.evaluater.evaluateProgram(Me.data.estree);zn(he,Me.position)}function Fo(he,Me,Re){const He=he.schema;let dt=He;Me.name==="svg"&&He.space==="html"&&(dt=Ot,he.schema=dt),he.ancestors.push(Me);const vt=Me.name===null?he.Fragment:In(he,Me.name,!0),At=On(he,Me),Jt=Un(he,Me);return Oi(he,At,vt,Me),on(At,Jt),he.ancestors.pop(),he.schema=He,he.create(Me,vt,At,Re)}function Vo(he,Me,Re){const He={};return on(He,Un(he,Me)),he.create(Me,he.Fragment,He,Re)}function Io(he,Me){return Me.value}function Oi(he,Me,Re,He){typeof Re!="string"&&Re!==he.Fragment&&he.passNode&&(Me.node=He)}function on(he,Me){if(Me.length>0){const Re=Me.length>1?Me:Me[0];Re&&(he.children=Re)}}function ln(he,Me,Re){return He;function He(dt,vt,At,Jt){const $n=Array.isArray(At.children)?Re:Me;return Jt?$n(vt,At,Jt):$n(vt,At)}}function qt(he,Me){return Re;function Re(He,dt,vt,At){const Jt=Array.isArray(vt.children),Tn=nn(He);return Me(dt,vt,At,Jt,{columnNumber:Tn?Tn.column-1:void 0,fileName:he,lineNumber:Tn?Tn.line:void 0},void 0)}}function Nt(he,Me){const Re={};let He,dt;for(dt in Me.properties)if(dt!=="children"&&lr.call(Me.properties,dt)){const vt=Vt(he,dt,Me.properties[dt]);if(vt){const[At,Jt]=vt;he.tableCellAlignToStyle&&At==="align"&&typeof Jt=="string"&&Gi.has(Me.tagName)?He=Jt:Re[At]=Jt}}if(He){const vt=Re.style||(Re.style={});vt[he.stylePropertyNameCase==="css"?"text-align":"textAlign"]=He}return Re}function On(he,Me){const Re={};for(const He of Me.attributes)if(He.type==="mdxJsxExpressionAttribute")if(He.data&&He.data.estree&&he.evaluater){const vt=He.data.estree.body[0];vt.type;const At=vt.expression;At.type;const Jt=At.properties[0];Jt.type,Object.assign(Re,he.evaluater.evaluateExpression(Jt.argument))}else zn(he,Me.position);else{const dt=He.name;let vt;if(He.value&&typeof He.value=="object")if(He.value.data&&He.value.data.estree&&he.evaluater){const Jt=He.value.data.estree.body[0];Jt.type,vt=he.evaluater.evaluateExpression(Jt.expression)}else zn(he,Me.position);else vt=He.value===null?!0:He.value;Re[dt]=vt}return Re}function Un(he,Me){const Re=[];let He=-1;const dt=he.passKeys?new Map:dr;for(;++He<Me.children.length;){const vt=Me.children[He];let At;if(he.passKeys){const Tn=vt.type==="element"?vt.tagName:vt.type==="mdxJsxFlowElement"||vt.type==="mdxJsxTextElement"?vt.name:void 0;if(Tn){const $n=dt.get(Tn)||0;At=Tn+"-"+$n,dt.set(Tn,$n+1)}}const Jt=Ue(he,vt,At);Jt!==void 0&&Re.push(Jt)}return Re}function Vt(he,Me,Re){const He=Ae(he.schema,Me);if(!(Re==null||typeof Re=="number"&&Number.isNaN(Re))){if(Array.isArray(Re)&&(Re=He.commaSeparated?ue(Re):xt(Re)),He.property==="style"){let dt=typeof Re=="object"?Re:yt(he,String(Re));return he.stylePropertyNameCase==="css"&&(dt=mi(dt)),["style",dt]}return[he.elementAttributeNameCase==="react"&&He.space?Qe[He.property]||He.property:He.attribute,Re]}}function yt(he,Me){const Re={};try{Pn(Me,He)}catch(dt){if(!he.ignoreInvalidStyle){const vt=dt,At=new Ri("Cannot parse `style` attribute",{ancestors:he.ancestors,cause:vt,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw At.file=he.filePath||void 0,At.url=Zr+"#cannot-parse-style-attribute",At}}return Re;function He(dt,vt){let At=dt;At.slice(0,2)!=="--"&&(At.slice(0,4)==="-ms-"&&(At="ms-"+At.slice(4)),At=At.replace(Sr,bt)),Re[At]=vt}}function In(he,Me,Re){let He;if(!Re)He={type:"Literal",value:Me};else if(Me.includes(".")){const dt=Me.split(".");let vt=-1,At;for(;++vt<dt.length;){const Jt=ut(dt[vt])?{type:"Identifier",name:dt[vt]}:{type:"Literal",value:dt[vt]};At=At?{type:"MemberExpression",object:At,property:Jt,computed:!!(vt&&Jt.type==="Literal"),optional:!1}:Jt}He=At}else He=ut(Me)&&!/^[a-z]/.test(Me)?{type:"Identifier",name:Me}:{type:"Literal",value:Me};if(He.type==="Literal"){const dt=He.value;return lr.call(he.components,dt)?he.components[dt]:dt}if(he.evaluater)return he.evaluater.evaluateExpression(He);zn(he)}function zn(he,Me){const Re=new Ri("Cannot handle MDX estrees without `createEvaluater`",{ancestors:he.ancestors,place:Me,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw Re.file=he.filePath||void 0,Re.url=Zr+"#cannot-handle-mdx-estrees-without-createevaluater",Re}function mi(he){const Me={};let Re;for(Re in he)lr.call(he,Re)&&(Me[Rn(Re)]=he[Re]);return Me}function Rn(he){let Me=he.replace(ur,Ut);return Me.slice(0,3)==="ms-"&&(Me="-"+Me),Me}function bt(he,Me){return Me.toUpperCase()}function Ut(he){return"-"+he.toLowerCase()}const Ln={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 ni=oe(37712);const Gt={};function yn(he,Me){const Re=Me||Gt,He=typeof Re.includeImageAlt=="boolean"?Re.includeImageAlt:!0,dt=typeof Re.includeHtml=="boolean"?Re.includeHtml:!0;return Qt(he,He,dt)}function Qt(he,Me,Re){if(wn(he)){if("value"in he)return he.type==="html"&&!Re?"":he.value;if(Me&&"alt"in he&&he.alt)return he.alt;if("children"in he)return un(he.children,Me,Re)}return Array.isArray(he)?un(he,Me,Re):""}function un(he,Me,Re){const He=[];let dt=-1;for(;++dt<he.length;)He[dt]=Qt(he[dt],Me,Re);return He.join("")}function wn(he){return!!(he&&typeof he=="object")}function gn(he,Me,Re,He){const dt=he.length;let vt=0,At;if(Me<0?Me=-Me>dt?0:dt+Me:Me=Me>dt?dt:Me,Re=Re>0?Re:0,He.length<1e4)At=Array.from(He),At.unshift(Me,Re),he.splice(...At);else for(Re&&he.splice(Me,Re);vt<He.length;)At=He.slice(vt,vt+1e4),At.unshift(Me,0),he.splice(...At),vt+=1e4,Me+=1e4}function kn(he,Me){return he.length>0?(gn(he,he.length,0,Me),he):Me}class Bn{constructor(Me){this.left=Me?[...Me]:[],this.right=[]}get(Me){if(Me<0||Me>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+Me+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return Me<this.left.length?this.left[Me]:this.right[this.right.length-Me+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(Me,Re){const He=Re==null?Number.POSITIVE_INFINITY:Re;return He<this.left.length?this.left.slice(Me,He):Me>this.left.length?this.right.slice(this.right.length-He+this.left.length,this.right.length-Me+this.left.length).reverse():this.left.slice(Me).concat(this.right.slice(this.right.length-He+this.left.length).reverse())}splice(Me,Re,He){const dt=Re||0;this.setCursor(Math.trunc(Me));const vt=this.right.splice(this.right.length-dt,Number.POSITIVE_INFINITY);return He&&Vn(this.left,He),vt.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(Me){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(Me)}pushMany(Me){this.setCursor(Number.POSITIVE_INFINITY),Vn(this.left,Me)}unshift(Me){this.setCursor(0),this.right.push(Me)}unshiftMany(Me){this.setCursor(0),Vn(this.right,Me.reverse())}setCursor(Me){if(!(Me===this.left.length||Me>this.left.length&&this.right.length===0||Me<0&&this.left.length===0))if(Me<this.left.length){const Re=this.left.splice(Me,Number.POSITIVE_INFINITY);Vn(this.right,Re.reverse())}else{const Re=this.right.splice(this.left.length+this.right.length-Me,Number.POSITIVE_INFINITY);Vn(this.left,Re.reverse())}}}function Vn(he,Me){let Re=0;if(Me.length<1e4)he.push(...Me);else for(;Re<Me.length;)he.push(...Me.slice(Re,Re+1e4)),Re+=1e4}function Jn(he){const Me={};let Re=-1,He,dt,vt,At,Jt,Tn,$n;const Cn=new Bn(he);for(;++Re<Cn.length;){for(;Re in Me;)Re=Me[Re];if(He=Cn.get(Re),Re&&He[1].type==="chunkFlow"&&Cn.get(Re-1)[1].type==="listItemPrefix"&&(Tn=He[1]._tokenizer.events,vt=0,vt<Tn.length&&Tn[vt][1].type==="lineEndingBlank"&&(vt+=2),vt<Tn.length&&Tn[vt][1].type==="content"))for(;++vt<Tn.length&&Tn[vt][1].type!=="content";)Tn[vt][1].type==="chunkText"&&(Tn[vt][1]._isInFirstContentOfListItem=!0,vt++);if(He[0]==="enter")He[1].contentType&&(Object.assign(Me,Wn(Cn,Re)),Re=Me[Re],$n=!0);else if(He[1]._container){for(vt=Re,dt=void 0;vt--&&(At=Cn.get(vt),At[1].type==="lineEnding"||At[1].type==="lineEndingBlank");)At[0]==="enter"&&(dt&&(Cn.get(dt)[1].type="lineEndingBlank"),At[1].type="lineEnding",dt=vt);dt&&(He[1].end=Ys({},Cn.get(dt)[1].start),Jt=Cn.slice(dt,Re),Jt.unshift(He),Cn.splice(dt,Re-dt+1,Jt))}}return gn(he,0,Number.POSITIVE_INFINITY,Cn.slice(0)),!$n}function Wn(he,Me){const Re=he.get(Me)[1],He=he.get(Me)[2];let dt=Me-1;const vt=[],At=Re._tokenizer||He.parser[Re.contentType](Re.start),Jt=At.events,Tn=[],$n={};let Cn,ci,si=-1,Yn=Re,Ur=0,ie=0;const ae=[ie];for(;Yn;){for(;he.get(++dt)[1]!==Yn;);vt.push(dt),Yn._tokenizer||(Cn=He.sliceStream(Yn),Yn.next||Cn.push(null),ci&&At.defineSkip(Yn.start),Yn._isInFirstContentOfListItem&&(At._gfmTasklistFirstContentOfListItem=!0),At.write(Cn),Yn._isInFirstContentOfListItem&&(At._gfmTasklistFirstContentOfListItem=void 0)),ci=Yn,Yn=Yn.next}for(Yn=Re;++si<Jt.length;)Jt[si][0]==="exit"&&Jt[si-1][0]==="enter"&&Jt[si][1].type===Jt[si-1][1].type&&Jt[si][1].start.line!==Jt[si][1].end.line&&(ie=si+1,ae.push(ie),Yn._tokenizer=void 0,Yn.previous=void 0,Yn=Yn.next);for(At.events=[],Yn?(Yn._tokenizer=void 0,Yn.previous=void 0):ae.pop(),si=ae.length;si--;){const fe=Jt.slice(ae[si],ae[si+1]),pe=vt.pop();Tn.push([pe,pe+fe.length-1]),he.splice(pe,2,fe)}for(Tn.reverse(),si=-1;++si<Tn.length;)$n[Ur+Tn[si][0]]=Ur+Tn[si][1],Ur+=Tn[si][1]-Tn[si][0]-1;return $n}function gi(he){for(;!Jn(he););return he}const Fi={}.hasOwnProperty;function ir(he){const Me={};let Re=-1;for(;++Re<he.length;)zi(Me,he[Re]);return Me}function zi(he,Me){let Re;for(Re in Me){const dt=(Fi.call(he,Re)?he[Re]:void 0)||(he[Re]={}),vt=Me[Re];let At;if(vt)for(At in vt){Fi.call(dt,At)||(dt[At]=[]);const Jt=vt[At];tn(dt[At],Array.isArray(Jt)?Jt:Jt?[Jt]:[])}}}function tn(he,Me){let Re=-1;const He=[];for(;++Re<Me.length;)(Me[Re].add==="after"?he:He).push(Me[Re]);gn(he,0,0,He)}function Ai(he){const Me={};let Re=-1;for(;++Re<he.length;)Bi(Me,he[Re]);return Me}function Bi(he,Me){let Re;for(Re in Me){const dt=(Fi.call(he,Re)?he[Re]:void 0)||(he[Re]={}),vt=Me[Re];let At;if(vt)for(At in vt)dt[At]=vt[At]}}const Ti=Dr(/[A-Za-z]/),hr=Dr(/[\dA-Za-z]/),tr=Dr(/[#-'*+\--9=?A-Z^-~]/);function br(he){return he!==null&&(he<32||he===127)}const Xi=Dr(/\d/),Hi=Dr(/[\dA-Fa-f]/),Ir=Dr(/[!-/:-@[-`{-~]/);function Ht(he){return he!==null&&he<-2}function Kr(he){return he!==null&&(he<0||he===32)}function Fn(he){return he===-2||he===-1||he===32}const kr=Dr(new RegExp("\\p{P}|\\p{S}","u")),Go=Dr(/\s/);function Dr(he){return Me;function Me(Re){return Re!==null&&Re>-1&&he.test(String.fromCharCode(Re))}}function po(he,Me,Re,He){const dt=He?He-1:Number.POSITIVE_INFINITY;let vt=0;return At;function At(Tn){return Fn(Tn)?(he.enter(Re),Jt(Tn)):Me(Tn)}function Jt(Tn){return Fn(Tn)&&vt++<dt?(he.consume(Tn),Jt):(he.exit(Re),Me(Tn))}}const Do={tokenize:Ji};function Ji(he){const Me=he.attempt(this.parser.constructs.contentInitial,He,dt);let Re;return Me;function He(Jt){if(Jt===null){he.consume(Jt);return}return he.enter("lineEnding"),he.consume(Jt),he.exit("lineEnding"),po(he,Me,"linePrefix")}function dt(Jt){return he.enter("paragraph"),vt(Jt)}function vt(Jt){const Tn=he.enter("chunkText",{contentType:"text",previous:Re});return Re&&(Re.next=Tn),Re=Tn,At(Jt)}function At(Jt){if(Jt===null){he.exit("chunkText"),he.exit("paragraph"),he.consume(Jt);return}return Ht(Jt)?(he.consume(Jt),he.exit("chunkText"),vt):(he.consume(Jt),At)}}const or={tokenize:Gr},io={tokenize:Ii};function Gr(he){const Me=this,Re=[];let He=0,dt,vt,At;return Jt;function Jt(ye){if(He<Re.length){const Be=Re[He];return Me.containerState=Be[1],he.attempt(Be[0].continuation,Tn,$n)(ye)}return $n(ye)}function Tn(ye){if(He++,Me.containerState._closeFlow){Me.containerState._closeFlow=void 0,dt&&pe();const Be=Me.events.length;let Xe=Be,qe;for(;Xe--;)if(Me.events[Xe][0]==="exit"&&Me.events[Xe][1].type==="chunkFlow"){qe=Me.events[Xe][1].end;break}fe(He);let ot=Be;for(;ot<Me.events.length;)Me.events[ot][1].end=Ys({},qe),ot++;return gn(Me.events,Xe+1,0,Me.events.slice(Be)),Me.events.length=ot,$n(ye)}return Jt(ye)}function $n(ye){if(He===Re.length){if(!dt)return si(ye);if(dt.currentConstruct&&dt.currentConstruct.concrete)return Ur(ye);Me.interrupt=!!(dt.currentConstruct&&!dt._gfmTableDynamicInterruptHack)}return Me.containerState={},he.check(io,Cn,ci)(ye)}function Cn(ye){return dt&&pe(),fe(He),si(ye)}function ci(ye){return Me.parser.lazy[Me.now().line]=He!==Re.length,At=Me.now().offset,Ur(ye)}function si(ye){return Me.containerState={},he.attempt(io,Yn,Ur)(ye)}function Yn(ye){return He++,Re.push([Me.currentConstruct,Me.containerState]),si(ye)}function Ur(ye){if(ye===null){dt&&pe(),fe(0),he.consume(ye);return}return dt=dt||Me.parser.flow(Me.now()),he.enter("chunkFlow",{_tokenizer:dt,contentType:"flow",previous:vt}),ie(ye)}function ie(ye){if(ye===null){ae(he.exit("chunkFlow"),!0),fe(0),he.consume(ye);return}return Ht(ye)?(he.consume(ye),ae(he.exit("chunkFlow")),He=0,Me.interrupt=void 0,Jt):(he.consume(ye),ie)}function ae(ye,Be){const Xe=Me.sliceStream(ye);if(Be&&Xe.push(null),ye.previous=vt,vt&&(vt.next=ye),vt=ye,dt.defineSkip(ye.start),dt.write(Xe),Me.parser.lazy[ye.start.line]){let qe=dt.events.length;for(;qe--;)if(dt.events[qe][1].start.offset<At&&(!dt.events[qe][1].end||dt.events[qe][1].end.offset>At))return;const ot=Me.events.length;let Tt=ot,mn,Rt;for(;Tt--;)if(Me.events[Tt][0]==="exit"&&Me.events[Tt][1].type==="chunkFlow"){if(mn){Rt=Me.events[Tt][1].end;break}mn=!0}for(fe(He),qe=ot;qe<Me.events.length;)Me.events[qe][1].end=Ys({},Rt),qe++;gn(Me.events,Tt+1,0,Me.events.slice(ot)),Me.events.length=qe}}function fe(ye){let Be=Re.length;for(;Be-- >ye;){const Xe=Re[Be];Me.containerState=Xe[1],Xe[0].exit.call(Me,he)}Re.length=ye}function pe(){dt.write([null]),vt=void 0,dt=void 0,Me.containerState._closeFlow=void 0}}function Ii(he,Me,Re){return po(he,he.attempt(this.parser.constructs.document,Me,Re),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const lt={partial:!0,tokenize:Rr};function Rr(he,Me,Re){return He;function He(vt){return Fn(vt)?po(he,dt,"linePrefix")(vt):dt(vt)}function dt(vt){return vt===null||Ht(vt)?Me(vt):Re(vt)}}const Ko={resolve:yo,tokenize:Mr},Yr={partial:!0,tokenize:mr};function yo(he){return Jn(he),he}function Mr(he,Me){let Re;return He;function He(Jt){return he.enter("content"),Re=he.enter("chunkContent",{contentType:"content"}),dt(Jt)}function dt(Jt){return Jt===null?vt(Jt):Ht(Jt)?he.check(Yr,At,vt)(Jt):(he.consume(Jt),dt)}function vt(Jt){return he.exit("chunkContent"),he.exit("content"),Me(Jt)}function At(Jt){return he.consume(Jt),he.exit("chunkContent"),Re.next=he.enter("chunkContent",{contentType:"content",previous:Re}),Re=Re.next,dt}}function mr(he,Me,Re){const He=this;return dt;function dt(At){return he.exit("chunkContent"),he.enter("lineEnding"),he.consume(At),he.exit("lineEnding"),po(he,vt,"linePrefix")}function vt(At){if(At===null||Ht(At))return Re(At);const Jt=He.events[He.events.length-1];return!He.parser.constructs.disable.null.includes("codeIndented")&&Jt&&Jt[1].type==="linePrefix"&&Jt[2].sliceSerialize(Jt[1],!0).length>=4?Me(At):he.interrupt(He.parser.constructs.flow,Re,Me)(At)}}const co={tokenize:Uo};function Uo(he){const Me=this,Re=he.attempt(lt,He,he.attempt(this.parser.constructs.flowInitial,dt,po(he,he.attempt(this.parser.constructs.flow,dt,he.attempt(Ko,dt)),"linePrefix")));return Re;function He(vt){if(vt===null){he.consume(vt);return}return he.enter("lineEndingBlank"),he.consume(vt),he.exit("lineEndingBlank"),Me.currentConstruct=void 0,Re}function dt(vt){if(vt===null){he.consume(vt);return}return he.enter("lineEnding"),he.consume(vt),he.exit("lineEnding"),Me.currentConstruct=void 0,Re}}const ao={resolveAll:xr()},ra=Qi("string"),gr=Qi("text");function Qi(he){return{resolveAll:xr(he==="text"?fi:void 0),tokenize:Me};function Me(Re){const He=this,dt=this.parser.constructs[he],vt=Re.attempt(dt,At,Jt);return At;function At(Cn){return $n(Cn)?vt(Cn):Jt(Cn)}function Jt(Cn){if(Cn===null){Re.consume(Cn);return}return Re.enter("data"),Re.consume(Cn),Tn}function Tn(Cn){return $n(Cn)?(Re.exit("data"),vt(Cn)):(Re.consume(Cn),Tn)}function $n(Cn){if(Cn===null)return!0;const ci=dt[Cn];let si=-1;if(ci)for(;++si<ci.length;){const Yn=ci[si];if(!Yn.previous||Yn.previous.call(He,He.previous))return!0}return!1}}}function xr(he){return Me;function Me(Re,He){let dt=-1,vt;for(;++dt<=Re.length;)vt===void 0?Re[dt]&&Re[dt][1].type==="data"&&(vt=dt,dt++):(!Re[dt]||Re[dt][1].type!=="data")&&(dt!==vt+2&&(Re[vt][1].end=Re[dt-1][1].end,Re.splice(vt+2,dt-vt-2),dt=vt+2),vt=void 0);return he?he(Re,He):Re}}function fi(he,Me){let Re=0;for(;++Re<=he.length;)if((Re===he.length||he[Re][1].type==="lineEnding")&&he[Re-1][1].type==="data"){const He=he[Re-1][1],dt=Me.sliceStream(He);let vt=dt.length,At=-1,Jt=0,Tn;for(;vt--;){const $n=dt[vt];if(typeof $n=="string"){for(At=$n.length;$n.charCodeAt(At-1)===32;)Jt++,At--;if(At)break;At=-1}else if($n===-2)Tn=!0,Jt++;else if($n!==-1){vt++;break}}if(Jt){const $n={type:Re===he.length||Tn||Jt<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:vt?At:He.start._bufferIndex+At,_index:He.start._index+vt,line:He.end.line,column:He.end.column-Jt,offset:He.end.offset-Jt},end:Ys({},He.end)};He.end=Ys({},$n.start),He.start.offset===He.end.offset?Object.assign(He,$n):(he.splice(Re,0,["enter",$n,Me],["exit",$n,Me]),Re+=2)}Re++}return he}const bo={name:"thematicBreak",tokenize:ua};function ua(he,Me,Re){let He=0,dt;return vt;function vt($n){return he.enter("thematicBreak"),At($n)}function At($n){return dt=$n,Jt($n)}function Jt($n){return $n===dt?(he.enter("thematicBreakSequence"),Tn($n)):He>=3&&($n===null||Ht($n))?(he.exit("thematicBreak"),Me($n)):Re($n)}function Tn($n){return $n===dt?(he.consume($n),He++,Tn):(he.exit("thematicBreakSequence"),Fn($n)?po(he,Jt,"whitespace")($n):Jt($n))}}const ca={continuation:{tokenize:ds},exit:ks,name:"list",tokenize:ts},oa={partial:!0,tokenize:Ds},Ra={partial:!0,tokenize:Qa};function ts(he,Me,Re){const He=this,dt=He.events[He.events.length-1];let vt=dt&&dt[1].type==="linePrefix"?dt[2].sliceSerialize(dt[1],!0).length:0,At=0;return Jt;function Jt(Yn){const Ur=He.containerState.type||(Yn===42||Yn===43||Yn===45?"listUnordered":"listOrdered");if(Ur==="listUnordered"?!He.containerState.marker||Yn===He.containerState.marker:Xi(Yn)){if(He.containerState.type||(He.containerState.type=Ur,he.enter(Ur,{_container:!0})),Ur==="listUnordered")return he.enter("listItemPrefix"),Yn===42||Yn===45?he.check(bo,Re,$n)(Yn):$n(Yn);if(!He.interrupt||Yn===49)return he.enter("listItemPrefix"),he.enter("listItemValue"),Tn(Yn)}return Re(Yn)}function Tn(Yn){return Xi(Yn)&&++At<10?(he.consume(Yn),Tn):(!He.interrupt||At<2)&&(He.containerState.marker?Yn===He.containerState.marker:Yn===41||Yn===46)?(he.exit("listItemValue"),$n(Yn)):Re(Yn)}function $n(Yn){return he.enter("listItemMarker"),he.consume(Yn),he.exit("listItemMarker"),He.containerState.marker=He.containerState.marker||Yn,he.check(lt,He.interrupt?Re:Cn,he.attempt(oa,si,ci))}function Cn(Yn){return He.containerState.initialBlankLine=!0,vt++,si(Yn)}function ci(Yn){return Fn(Yn)?(he.enter("listItemPrefixWhitespace"),he.consume(Yn),he.exit("listItemPrefixWhitespace"),si):Re(Yn)}function si(Yn){return He.containerState.size=vt+He.sliceSerialize(he.exit("listItemPrefix"),!0).length,Me(Yn)}}function ds(he,Me,Re){const He=this;return He.containerState._closeFlow=void 0,he.check(lt,dt,vt);function dt(Jt){return He.containerState.furtherBlankLines=He.containerState.furtherBlankLines||He.containerState.initialBlankLine,po(he,Me,"listItemIndent",He.containerState.size+1)(Jt)}function vt(Jt){return He.containerState.furtherBlankLines||!Fn(Jt)?(He.containerState.furtherBlankLines=void 0,He.containerState.initialBlankLine=void 0,At(Jt)):(He.containerState.furtherBlankLines=void 0,He.containerState.initialBlankLine=void 0,he.attempt(Ra,Me,At)(Jt))}function At(Jt){return He.containerState._closeFlow=!0,He.interrupt=void 0,po(he,he.attempt(ca,Me,Re),"linePrefix",He.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Jt)}}function Qa(he,Me,Re){const He=this;return po(he,dt,"listItemIndent",He.containerState.size+1);function dt(vt){const At=He.events[He.events.length-1];return At&&At[1].type==="listItemIndent"&&At[2].sliceSerialize(At[1],!0).length===He.containerState.size?Me(vt):Re(vt)}}function ks(he){he.exit(this.containerState.type)}function Ds(he,Me,Re){const He=this;return po(he,dt,"listItemPrefixWhitespace",He.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function dt(vt){const At=He.events[He.events.length-1];return!Fn(vt)&&At&&At[1].type==="listItemPrefixWhitespace"?Me(vt):Re(vt)}}const jn={continuation:{tokenize:Ql},exit:Kl,name:"blockQuote",tokenize:gs};function gs(he,Me,Re){const He=this;return dt;function dt(At){if(At===62){const Jt=He.containerState;return Jt.open||(he.enter("blockQuote",{_container:!0}),Jt.open=!0),he.enter("blockQuotePrefix"),he.enter("blockQuoteMarker"),he.consume(At),he.exit("blockQuoteMarker"),vt}return Re(At)}function vt(At){return Fn(At)?(he.enter("blockQuotePrefixWhitespace"),he.consume(At),he.exit("blockQuotePrefixWhitespace"),he.exit("blockQuotePrefix"),Me):(he.exit("blockQuotePrefix"),Me(At))}}function Ql(he,Me,Re){const He=this;return dt;function dt(At){return Fn(At)?po(he,vt,"linePrefix",He.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(At):vt(At)}function vt(At){return he.attempt(jn,Me,Re)(At)}}function Kl(he){he.exit("blockQuote")}function Oo(he,Me,Re,He,dt,vt,At,Jt,Tn){const $n=Tn||Number.POSITIVE_INFINITY;let Cn=0;return ci;function ci(fe){return fe===60?(he.enter(He),he.enter(dt),he.enter(vt),he.consume(fe),he.exit(vt),si):fe===null||fe===32||fe===41||br(fe)?Re(fe):(he.enter(He),he.enter(At),he.enter(Jt),he.enter("chunkString",{contentType:"string"}),ie(fe))}function si(fe){return fe===62?(he.enter(vt),he.consume(fe),he.exit(vt),he.exit(dt),he.exit(He),Me):(he.enter(Jt),he.enter("chunkString",{contentType:"string"}),Yn(fe))}function Yn(fe){return fe===62?(he.exit("chunkString"),he.exit(Jt),si(fe)):fe===null||fe===60||Ht(fe)?Re(fe):(he.consume(fe),fe===92?Ur:Yn)}function Ur(fe){return fe===60||fe===62||fe===92?(he.consume(fe),Yn):Yn(fe)}function ie(fe){return!Cn&&(fe===null||fe===41||Kr(fe))?(he.exit("chunkString"),he.exit(Jt),he.exit(At),he.exit(He),Me(fe)):Cn<$n&&fe===40?(he.consume(fe),Cn++,ie):fe===41?(he.consume(fe),Cn--,ie):fe===null||fe===32||fe===40||br(fe)?Re(fe):(he.consume(fe),fe===92?ae:ie)}function ae(fe){return fe===40||fe===41||fe===92?(he.consume(fe),ie):ie(fe)}}function ma(he,Me,Re,He,dt,vt){const At=this;let Jt=0,Tn;return $n;function $n(Yn){return he.enter(He),he.enter(dt),he.consume(Yn),he.exit(dt),he.enter(vt),Cn}function Cn(Yn){return Jt>999||Yn===null||Yn===91||Yn===93&&!Tn||Yn===94&&!Jt&&"_hiddenFootnoteSupport"in At.parser.constructs?Re(Yn):Yn===93?(he.exit(vt),he.enter(dt),he.consume(Yn),he.exit(dt),he.exit(He),Me):Ht(Yn)?(he.enter("lineEnding"),he.consume(Yn),he.exit("lineEnding"),Cn):(he.enter("chunkString",{contentType:"string"}),ci(Yn))}function ci(Yn){return Yn===null||Yn===91||Yn===93||Ht(Yn)||Jt++>999?(he.exit("chunkString"),Cn(Yn)):(he.consume(Yn),Tn||(Tn=!Fn(Yn)),Yn===92?si:ci)}function si(Yn){return Yn===91||Yn===92||Yn===93?(he.consume(Yn),Jt++,ci):ci(Yn)}}function hs(he,Me,Re,He,dt,vt){let At;return Jt;function Jt(si){return si===34||si===39||si===40?(he.enter(He),he.enter(dt),he.consume(si),he.exit(dt),At=si===40?41:si,Tn):Re(si)}function Tn(si){return si===At?(he.enter(dt),he.consume(si),he.exit(dt),he.exit(He),Me):(he.enter(vt),$n(si))}function $n(si){return si===At?(he.exit(vt),Tn(At)):si===null?Re(si):Ht(si)?(he.enter("lineEnding"),he.consume(si),he.exit("lineEnding"),po(he,$n,"linePrefix")):(he.enter("chunkString",{contentType:"string"}),Cn(si))}function Cn(si){return si===At||si===null||Ht(si)?(he.exit("chunkString"),$n(si)):(he.consume(si),si===92?ci:Cn)}function ci(si){return si===At||si===92?(he.consume(si),Cn):Cn(si)}}function aa(he,Me){let Re;return He;function He(dt){return Ht(dt)?(he.enter("lineEnding"),he.consume(dt),he.exit("lineEnding"),Re=!0,He):Fn(dt)?po(he,He,Re?"linePrefix":"lineSuffix")(dt):Me(dt)}}function Xr(he){return he.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Qr={name:"definition",tokenize:so},ns={partial:!0,tokenize:Po};function so(he,Me,Re){const He=this;let dt;return vt;function vt(Yn){return he.enter("definition"),At(Yn)}function At(Yn){return ma.call(He,he,Jt,Re,"definitionLabel","definitionLabelMarker","definitionLabelString")(Yn)}function Jt(Yn){return dt=Xr(He.sliceSerialize(He.events[He.events.length-1][1]).slice(1,-1)),Yn===58?(he.enter("definitionMarker"),he.consume(Yn),he.exit("definitionMarker"),Tn):Re(Yn)}function Tn(Yn){return Kr(Yn)?aa(he,$n)(Yn):$n(Yn)}function $n(Yn){return Oo(he,Cn,Re,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(Yn)}function Cn(Yn){return he.attempt(ns,ci,ci)(Yn)}function ci(Yn){return Fn(Yn)?po(he,si,"whitespace")(Yn):si(Yn)}function si(Yn){return Yn===null||Ht(Yn)?(he.exit("definition"),He.parser.defined.push(dt),Me(Yn)):Re(Yn)}}function Po(he,Me,Re){return He;function He(Jt){return Kr(Jt)?aa(he,dt)(Jt):Re(Jt)}function dt(Jt){return hs(he,vt,Re,"definitionTitle","definitionTitleMarker","definitionTitleString")(Jt)}function vt(Jt){return Fn(Jt)?po(he,At,"whitespace")(Jt):At(Jt)}function At(Jt){return Jt===null||Ht(Jt)?Me(Jt):Re(Jt)}}const Mo={name:"codeIndented",tokenize:Ja},$i={partial:!0,tokenize:xs};function Ja(he,Me,Re){const He=this;return dt;function dt($n){return he.enter("codeIndented"),po(he,vt,"linePrefix",5)($n)}function vt($n){const Cn=He.events[He.events.length-1];return Cn&&Cn[1].type==="linePrefix"&&Cn[2].sliceSerialize(Cn[1],!0).length>=4?At($n):Re($n)}function At($n){return $n===null?Tn($n):Ht($n)?he.attempt($i,At,Tn)($n):(he.enter("codeFlowValue"),Jt($n))}function Jt($n){return $n===null||Ht($n)?(he.exit("codeFlowValue"),At($n)):(he.consume($n),Jt)}function Tn($n){return he.exit("codeIndented"),Me($n)}}function xs(he,Me,Re){const He=this;return dt;function dt(At){return He.parser.lazy[He.now().line]?Re(At):Ht(At)?(he.enter("lineEnding"),he.consume(At),he.exit("lineEnding"),dt):po(he,vt,"linePrefix",5)(At)}function vt(At){const Jt=He.events[He.events.length-1];return Jt&&Jt[1].type==="linePrefix"&&Jt[2].sliceSerialize(Jt[1],!0).length>=4?Me(At):Ht(At)?dt(At):Re(At)}}const ul={name:"headingAtx",resolve:Yl,tokenize:Jl};function Yl(he,Me){let Re=he.length-2,He=3,dt,vt;return he[He][1].type==="whitespace"&&(He+=2),Re-2>He&&he[Re][1].type==="whitespace"&&(Re-=2),he[Re][1].type==="atxHeadingSequence"&&(He===Re-1||Re-4>He&&he[Re-2][1].type==="whitespace")&&(Re-=He+1===Re?2:4),Re>He&&(dt={type:"atxHeadingText",start:he[He][1].start,end:he[Re][1].end},vt={type:"chunkText",start:he[He][1].start,end:he[Re][1].end,contentType:"text"},gn(he,He,Re-He+1,[["enter",dt,Me],["enter",vt,Me],["exit",vt,Me],["exit",dt,Me]])),he}function Jl(he,Me,Re){let He=0;return dt;function dt(Cn){return he.enter("atxHeading"),vt(Cn)}function vt(Cn){return he.enter("atxHeadingSequence"),At(Cn)}function At(Cn){return Cn===35&&He++<6?(he.consume(Cn),At):Cn===null||Kr(Cn)?(he.exit("atxHeadingSequence"),Jt(Cn)):Re(Cn)}function Jt(Cn){return Cn===35?(he.enter("atxHeadingSequence"),Tn(Cn)):Cn===null||Ht(Cn)?(he.exit("atxHeading"),Me(Cn)):Fn(Cn)?po(he,Jt,"whitespace")(Cn):(he.enter("atxHeadingText"),$n(Cn))}function Tn(Cn){return Cn===35?(he.consume(Cn),Tn):(he.exit("atxHeadingSequence"),Jt(Cn))}function $n(Cn){return Cn===null||Cn===35||Kr(Cn)?(he.exit("atxHeadingText"),Jt(Cn)):(he.consume(Cn),$n)}}const _i={name:"setextUnderline",resolveTo:is,tokenize:Hs};function is(he,Me){let Re=he.length,He,dt,vt;for(;Re--;)if(he[Re][0]==="enter"){if(he[Re][1].type==="content"){He=Re;break}he[Re][1].type==="paragraph"&&(dt=Re)}else he[Re][1].type==="content"&&he.splice(Re,1),!vt&&he[Re][1].type==="definition"&&(vt=Re);const At={type:"setextHeading",start:Ys({},he[dt][1].start),end:Ys({},he[he.length-1][1].end)};return he[dt][1].type="setextHeadingText",vt?(he.splice(dt,0,["enter",At,Me]),he.splice(vt+1,0,["exit",he[He][1],Me]),he[He][1].end=Ys({},he[vt][1].end)):he[He][1]=At,he.push(["exit",At,Me]),he}function Hs(he,Me,Re){const He=this;let dt;return vt;function vt($n){let Cn=He.events.length,ci;for(;Cn--;)if(He.events[Cn][1].type!=="lineEnding"&&He.events[Cn][1].type!=="linePrefix"&&He.events[Cn][1].type!=="content"){ci=He.events[Cn][1].type==="paragraph";break}return!He.parser.lazy[He.now().line]&&(He.interrupt||ci)?(he.enter("setextHeadingLine"),dt=$n,At($n)):Re($n)}function At($n){return he.enter("setextHeadingLineSequence"),Jt($n)}function Jt($n){return $n===dt?(he.consume($n),Jt):(he.exit("setextHeadingLineSequence"),Fn($n)?po(he,Tn,"lineSuffix")($n):Tn($n))}function Tn($n){return $n===null||Ht($n)?(he.exit("setextHeadingLine"),Me($n)):Re($n)}}const tu=["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"],ui=["pre","script","style","textarea"],du={concrete:!0,name:"htmlFlow",resolveTo:Wl,tokenize:$l},wo={partial:!0,tokenize:Zu},Uc={partial:!0,tokenize:Fl};function Wl(he){let Me=he.length;for(;Me--&&!(he[Me][0]==="enter"&&he[Me][1].type==="htmlFlow"););return Me>1&&he[Me-2][1].type==="linePrefix"&&(he[Me][1].start=he[Me-2][1].start,he[Me+1][1].start=he[Me-2][1].start,he.splice(Me-2,2)),he}function $l(he,Me,Re){const He=this;let dt,vt,At,Jt,Tn;return $n;function $n(oi){return Cn(oi)}function Cn(oi){return he.enter("htmlFlow"),he.enter("htmlFlowData"),he.consume(oi),ci}function ci(oi){return oi===33?(he.consume(oi),si):oi===47?(he.consume(oi),vt=!0,ie):oi===63?(he.consume(oi),dt=3,He.interrupt?Me:Hn):Ti(oi)?(he.consume(oi),At=String.fromCharCode(oi),ae):Re(oi)}function si(oi){return oi===45?(he.consume(oi),dt=2,Yn):oi===91?(he.consume(oi),dt=5,Jt=0,Ur):Ti(oi)?(he.consume(oi),dt=4,He.interrupt?Me:Hn):Re(oi)}function Yn(oi){return oi===45?(he.consume(oi),He.interrupt?Me:Hn):Re(oi)}function Ur(oi){const us="CDATA[";return oi===us.charCodeAt(Jt++)?(he.consume(oi),Jt===us.length?He.interrupt?Me:_n:Ur):Re(oi)}function ie(oi){return Ti(oi)?(he.consume(oi),At=String.fromCharCode(oi),ae):Re(oi)}function ae(oi){if(oi===null||oi===47||oi===62||Kr(oi)){const us=oi===47,Xa=At.toLowerCase();return!us&&!vt&&ui.includes(Xa)?(dt=1,He.interrupt?Me(oi):_n(oi)):tu.includes(At.toLowerCase())?(dt=6,us?(he.consume(oi),fe):He.interrupt?Me(oi):_n(oi)):(dt=7,He.interrupt&&!He.parser.lazy[He.now().line]?Re(oi):vt?pe(oi):ye(oi))}return oi===45||hr(oi)?(he.consume(oi),At+=String.fromCharCode(oi),ae):Re(oi)}function fe(oi){return oi===62?(he.consume(oi),He.interrupt?Me:_n):Re(oi)}function pe(oi){return Fn(oi)?(he.consume(oi),pe):Rt(oi)}function ye(oi){return oi===47?(he.consume(oi),Rt):oi===58||oi===95||Ti(oi)?(he.consume(oi),Be):Fn(oi)?(he.consume(oi),ye):Rt(oi)}function Be(oi){return oi===45||oi===46||oi===58||oi===95||hr(oi)?(he.consume(oi),Be):Xe(oi)}function Xe(oi){return oi===61?(he.consume(oi),qe):Fn(oi)?(he.consume(oi),Xe):ye(oi)}function qe(oi){return oi===null||oi===60||oi===61||oi===62||oi===96?Re(oi):oi===34||oi===39?(he.consume(oi),Tn=oi,ot):Fn(oi)?(he.consume(oi),qe):Tt(oi)}function ot(oi){return oi===Tn?(he.consume(oi),Tn=null,mn):oi===null||Ht(oi)?Re(oi):(he.consume(oi),ot)}function Tt(oi){return oi===null||oi===34||oi===39||oi===47||oi===60||oi===61||oi===62||oi===96||Kr(oi)?Xe(oi):(he.consume(oi),Tt)}function mn(oi){return oi===47||oi===62||Fn(oi)?ye(oi):Re(oi)}function Rt(oi){return oi===62?(he.consume(oi),Qn):Re(oi)}function Qn(oi){return oi===null||Ht(oi)?_n(oi):Fn(oi)?(he.consume(oi),Qn):Re(oi)}function _n(oi){return oi===45&&dt===2?(he.consume(oi),ar):oi===60&&dt===1?(he.consume(oi),Nr):oi===62&&dt===4?(he.consume(oi),Cr):oi===63&&dt===3?(he.consume(oi),Hn):oi===93&&dt===5?(he.consume(oi),$r):Ht(oi)&&(dt===6||dt===7)?(he.exit("htmlFlowData"),he.check(wo,$o,pi)(oi)):oi===null||Ht(oi)?(he.exit("htmlFlowData"),pi(oi)):(he.consume(oi),_n)}function pi(oi){return he.check(Uc,Ci,$o)(oi)}function Ci(oi){return he.enter("lineEnding"),he.consume(oi),he.exit("lineEnding"),ki}function ki(oi){return oi===null||Ht(oi)?pi(oi):(he.enter("htmlFlowData"),_n(oi))}function ar(oi){return oi===45?(he.consume(oi),Hn):_n(oi)}function Nr(oi){return oi===47?(he.consume(oi),At="",Er):_n(oi)}function Er(oi){if(oi===62){const us=At.toLowerCase();return ui.includes(us)?(he.consume(oi),Cr):_n(oi)}return Ti(oi)&&At.length<8?(he.consume(oi),At+=String.fromCharCode(oi),Er):_n(oi)}function $r(oi){return oi===93?(he.consume(oi),Hn):_n(oi)}function Hn(oi){return oi===62?(he.consume(oi),Cr):oi===45&&dt===2?(he.consume(oi),Hn):_n(oi)}function Cr(oi){return oi===null||Ht(oi)?(he.exit("htmlFlowData"),$o(oi)):(he.consume(oi),Cr)}function $o(oi){return he.exit("htmlFlow"),Me(oi)}}function Fl(he,Me,Re){const He=this;return dt;function dt(At){return Ht(At)?(he.enter("lineEnding"),he.consume(At),he.exit("lineEnding"),vt):Re(At)}function vt(At){return He.parser.lazy[He.now().line]?Re(At):Me(At)}}function Zu(he,Me,Re){return He;function He(dt){return he.enter("lineEnding"),he.consume(dt),he.exit("lineEnding"),he.attempt(lt,Me,Re)}}const Ws={partial:!0,tokenize:Jc},Zs={concrete:!0,name:"codeFenced",tokenize:Al};function Al(he,Me,Re){const He=this,dt={partial:!0,tokenize:Xe};let vt=0,At=0,Jt;return Tn;function Tn(qe){return $n(qe)}function $n(qe){const ot=He.events[He.events.length-1];return vt=ot&&ot[1].type==="linePrefix"?ot[2].sliceSerialize(ot[1],!0).length:0,Jt=qe,he.enter("codeFenced"),he.enter("codeFencedFence"),he.enter("codeFencedFenceSequence"),Cn(qe)}function Cn(qe){return qe===Jt?(At++,he.consume(qe),Cn):At<3?Re(qe):(he.exit("codeFencedFenceSequence"),Fn(qe)?po(he,ci,"whitespace")(qe):ci(qe))}function ci(qe){return qe===null||Ht(qe)?(he.exit("codeFencedFence"),He.interrupt?Me(qe):he.check(Ws,ie,Be)(qe)):(he.enter("codeFencedFenceInfo"),he.enter("chunkString",{contentType:"string"}),si(qe))}function si(qe){return qe===null||Ht(qe)?(he.exit("chunkString"),he.exit("codeFencedFenceInfo"),ci(qe)):Fn(qe)?(he.exit("chunkString"),he.exit("codeFencedFenceInfo"),po(he,Yn,"whitespace")(qe)):qe===96&&qe===Jt?Re(qe):(he.consume(qe),si)}function Yn(qe){return qe===null||Ht(qe)?ci(qe):(he.enter("codeFencedFenceMeta"),he.enter("chunkString",{contentType:"string"}),Ur(qe))}function Ur(qe){return qe===null||Ht(qe)?(he.exit("chunkString"),he.exit("codeFencedFenceMeta"),ci(qe)):qe===96&&qe===Jt?Re(qe):(he.consume(qe),Ur)}function ie(qe){return he.attempt(dt,Be,ae)(qe)}function ae(qe){return he.enter("lineEnding"),he.consume(qe),he.exit("lineEnding"),fe}function fe(qe){return vt>0&&Fn(qe)?po(he,pe,"linePrefix",vt+1)(qe):pe(qe)}function pe(qe){return qe===null||Ht(qe)?he.check(Ws,ie,Be)(qe):(he.enter("codeFlowValue"),ye(qe))}function ye(qe){return qe===null||Ht(qe)?(he.exit("codeFlowValue"),pe(qe)):(he.consume(qe),ye)}function Be(qe){return he.exit("codeFenced"),Me(qe)}function Xe(qe,ot,Tt){let mn=0;return Rt;function Rt(ki){return qe.enter("lineEnding"),qe.consume(ki),qe.exit("lineEnding"),Qn}function Qn(ki){return qe.enter("codeFencedFence"),Fn(ki)?po(qe,_n,"linePrefix",He.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ki):_n(ki)}function _n(ki){return ki===Jt?(qe.enter("codeFencedFenceSequence"),pi(ki)):Tt(ki)}function pi(ki){return ki===Jt?(mn++,qe.consume(ki),pi):mn>=At?(qe.exit("codeFencedFenceSequence"),Fn(ki)?po(qe,Ci,"whitespace")(ki):Ci(ki)):Tt(ki)}function Ci(ki){return ki===null||Ht(ki)?(qe.exit("codeFencedFence"),ot(ki)):Tt(ki)}}}function Jc(he,Me,Re){const He=this;return dt;function dt(At){return At===null?Re(At):(he.enter("lineEnding"),he.consume(At),he.exit("lineEnding"),vt)}function vt(At){return He.parser.lazy[He.now().line]?Re(At):Me(At)}}const qc=document.createElement("i");function Pc(he){const Me="&"+he+";";qc.innerHTML=Me;const Re=qc.textContent;return Re.charCodeAt(Re.length-1)===59&&he!=="semi"||Re===Me?!1:Re}const md={name:"characterReference",tokenize:ed};function ed(he,Me,Re){const He=this;let dt=0,vt,At;return Jt;function Jt(ci){return he.enter("characterReference"),he.enter("characterReferenceMarker"),he.consume(ci),he.exit("characterReferenceMarker"),Tn}function Tn(ci){return ci===35?(he.enter("characterReferenceMarkerNumeric"),he.consume(ci),he.exit("characterReferenceMarkerNumeric"),$n):(he.enter("characterReferenceValue"),vt=31,At=hr,Cn(ci))}function $n(ci){return ci===88||ci===120?(he.enter("characterReferenceMarkerHexadecimal"),he.consume(ci),he.exit("characterReferenceMarkerHexadecimal"),he.enter("characterReferenceValue"),vt=6,At=Hi,Cn):(he.enter("characterReferenceValue"),vt=7,At=Xi,Cn(ci))}function Cn(ci){if(ci===59&&dt){const si=he.exit("characterReferenceValue");return At===hr&&!Pc(He.sliceSerialize(si))?Re(ci):(he.enter("characterReferenceMarker"),he.consume(ci),he.exit("characterReferenceMarker"),he.exit("characterReference"),Me)}return At(ci)&&dt++<vt?(he.consume(ci),Cn):Re(ci)}}const Xn={name:"characterEscape",tokenize:bn};function bn(he,Me,Re){return He;function He(vt){return he.enter("characterEscape"),he.enter("escapeMarker"),he.consume(vt),he.exit("escapeMarker"),dt}function dt(vt){return Ir(vt)?(he.enter("characterEscapeValue"),he.consume(vt),he.exit("characterEscapeValue"),he.exit("characterEscape"),Me):Re(vt)}}const _t={name:"lineEnding",tokenize:Ao};function Ao(he,Me){return Re;function Re(He){return he.enter("lineEnding"),he.consume(He),he.exit("lineEnding"),po(he,Me,"linePrefix")}}function ta(he,Me,Re){const He=[];let dt=-1;for(;++dt<he.length;){const vt=he[dt].resolveAll;vt&&!He.includes(vt)&&(Me=vt(Me,Re),He.push(vt))}return Me}const sa={name:"labelEnd",resolveAll:rr,resolveTo:ro,tokenize:Na},Vr={tokenize:Ia},Jr={tokenize:Ho},jr={tokenize:Bo};function rr(he){let Me=-1;const Re=[];for(;++Me<he.length;){const He=he[Me][1];if(Re.push(he[Me]),He.type==="labelImage"||He.type==="labelLink"||He.type==="labelEnd"){const dt=He.type==="labelImage"?4:2;He.type="data",Me+=dt}}return he.length!==Re.length&&gn(he,0,he.length,Re),he}function ro(he,Me){let Re=he.length,He=0,dt,vt,At,Jt;for(;Re--;)if(dt=he[Re][1],vt){if(dt.type==="link"||dt.type==="labelLink"&&dt._inactive)break;he[Re][0]==="enter"&&dt.type==="labelLink"&&(dt._inactive=!0)}else if(At){if(he[Re][0]==="enter"&&(dt.type==="labelImage"||dt.type==="labelLink")&&!dt._balanced&&(vt=Re,dt.type!=="labelLink")){He=2;break}}else dt.type==="labelEnd"&&(At=Re);const Tn={type:he[vt][1].type==="labelLink"?"link":"image",start:Ys({},he[vt][1].start),end:Ys({},he[he.length-1][1].end)},$n={type:"label",start:Ys({},he[vt][1].start),end:Ys({},he[At][1].end)},Cn={type:"labelText",start:Ys({},he[vt+He+2][1].end),end:Ys({},he[At-2][1].start)};return Jt=[["enter",Tn,Me],["enter",$n,Me]],Jt=kn(Jt,he.slice(vt+1,vt+He+3)),Jt=kn(Jt,[["enter",Cn,Me]]),Jt=kn(Jt,ta(Me.parser.constructs.insideSpan.null,he.slice(vt+He+4,At-3),Me)),Jt=kn(Jt,[["exit",Cn,Me],he[At-2],he[At-1],["exit",$n,Me]]),Jt=kn(Jt,he.slice(At+1)),Jt=kn(Jt,[["exit",Tn,Me]]),gn(he,vt,he.length,Jt),he}function Na(he,Me,Re){const He=this;let dt=He.events.length,vt,At;for(;dt--;)if((He.events[dt][1].type==="labelImage"||He.events[dt][1].type==="labelLink")&&!He.events[dt][1]._balanced){vt=He.events[dt][1];break}return Jt;function Jt(si){return vt?vt._inactive?ci(si):(At=He.parser.defined.includes(Xr(He.sliceSerialize({start:vt.end,end:He.now()}))),he.enter("labelEnd"),he.enter("labelMarker"),he.consume(si),he.exit("labelMarker"),he.exit("labelEnd"),Tn):Re(si)}function Tn(si){return si===40?he.attempt(Vr,Cn,At?Cn:ci)(si):si===91?he.attempt(Jr,Cn,At?$n:ci)(si):At?Cn(si):ci(si)}function $n(si){return he.attempt(jr,Cn,ci)(si)}function Cn(si){return Me(si)}function ci(si){return vt._balanced=!0,Re(si)}}function Ia(he,Me,Re){return He;function He(ci){return he.enter("resource"),he.enter("resourceMarker"),he.consume(ci),he.exit("resourceMarker"),dt}function dt(ci){return Kr(ci)?aa(he,vt)(ci):vt(ci)}function vt(ci){return ci===41?Cn(ci):Oo(he,At,Jt,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(ci)}function At(ci){return Kr(ci)?aa(he,Tn)(ci):Cn(ci)}function Jt(ci){return Re(ci)}function Tn(ci){return ci===34||ci===39||ci===40?hs(he,$n,Re,"resourceTitle","resourceTitleMarker","resourceTitleString")(ci):Cn(ci)}function $n(ci){return Kr(ci)?aa(he,Cn)(ci):Cn(ci)}function Cn(ci){return ci===41?(he.enter("resourceMarker"),he.consume(ci),he.exit("resourceMarker"),he.exit("resource"),Me):Re(ci)}}function Ho(he,Me,Re){const He=this;return dt;function dt(Jt){return ma.call(He,he,vt,At,"reference","referenceMarker","referenceString")(Jt)}function vt(Jt){return He.parser.defined.includes(Xr(He.sliceSerialize(He.events[He.events.length-1][1]).slice(1,-1)))?Me(Jt):Re(Jt)}function At(Jt){return Re(Jt)}}function Bo(he,Me,Re){return He;function He(vt){return he.enter("reference"),he.enter("referenceMarker"),he.consume(vt),he.exit("referenceMarker"),dt}function dt(vt){return vt===93?(he.enter("referenceMarker"),he.consume(vt),he.exit("referenceMarker"),he.exit("reference"),Me):Re(vt)}}const rl={name:"labelStartImage",resolveAll:sa.resolveAll,tokenize:Bs};function Bs(he,Me,Re){const He=this;return dt;function dt(Jt){return he.enter("labelImage"),he.enter("labelImageMarker"),he.consume(Jt),he.exit("labelImageMarker"),vt}function vt(Jt){return Jt===91?(he.enter("labelMarker"),he.consume(Jt),he.exit("labelMarker"),he.exit("labelImage"),At):Re(Jt)}function At(Jt){return Jt===94&&"_hiddenFootnoteSupport"in He.parser.constructs?Re(Jt):Me(Jt)}}function ka(he){if(he===null||Kr(he)||Go(he))return 1;if(kr(he))return 2}const Nl={name:"attention",resolveAll:js,tokenize:$s};function js(he,Me){let Re=-1,He,dt,vt,At,Jt,Tn,$n,Cn;for(;++Re<he.length;)if(he[Re][0]==="enter"&&he[Re][1].type==="attentionSequence"&&he[Re][1]._close){for(He=Re;He--;)if(he[He][0]==="exit"&&he[He][1].type==="attentionSequence"&&he[He][1]._open&&Me.sliceSerialize(he[He][1]).charCodeAt(0)===Me.sliceSerialize(he[Re][1]).charCodeAt(0)){if((he[He][1]._close||he[Re][1]._open)&&(he[Re][1].end.offset-he[Re][1].start.offset)%3&&!((he[He][1].end.offset-he[He][1].start.offset+he[Re][1].end.offset-he[Re][1].start.offset)%3))continue;Tn=he[He][1].end.offset-he[He][1].start.offset>1&&he[Re][1].end.offset-he[Re][1].start.offset>1?2:1;const ci=Ys({},he[He][1].end),si=Ys({},he[Re][1].start);fr(ci,-Tn),fr(si,Tn),At={type:Tn>1?"strongSequence":"emphasisSequence",start:ci,end:Ys({},he[He][1].end)},Jt={type:Tn>1?"strongSequence":"emphasisSequence",start:Ys({},he[Re][1].start),end:si},vt={type:Tn>1?"strongText":"emphasisText",start:Ys({},he[He][1].end),end:Ys({},he[Re][1].start)},dt={type:Tn>1?"strong":"emphasis",start:Ys({},At.start),end:Ys({},Jt.end)},he[He][1].end=Ys({},At.start),he[Re][1].start=Ys({},Jt.end),$n=[],he[He][1].end.offset-he[He][1].start.offset&&($n=kn($n,[["enter",he[He][1],Me],["exit",he[He][1],Me]])),$n=kn($n,[["enter",dt,Me],["enter",At,Me],["exit",At,Me],["enter",vt,Me]]),$n=kn($n,ta(Me.parser.constructs.insideSpan.null,he.slice(He+1,Re),Me)),$n=kn($n,[["exit",vt,Me],["enter",Jt,Me],["exit",Jt,Me],["exit",dt,Me]]),he[Re][1].end.offset-he[Re][1].start.offset?(Cn=2,$n=kn($n,[["enter",he[Re][1],Me],["exit",he[Re][1],Me]])):Cn=0,gn(he,He-1,Re-He+3,$n),Re=He+$n.length-Cn-2;break}}for(Re=-1;++Re<he.length;)he[Re][1].type==="attentionSequence"&&(he[Re][1].type="data");return he}function $s(he,Me){const Re=this.parser.constructs.attentionMarkers.null,He=this.previous,dt=ka(He);let vt;return At;function At(Tn){return vt=Tn,he.enter("attentionSequence"),Jt(Tn)}function Jt(Tn){if(Tn===vt)return he.consume(Tn),Jt;const $n=he.exit("attentionSequence"),Cn=ka(Tn),ci=!Cn||Cn===2&&dt||Re.includes(Tn),si=!dt||dt===2&&Cn||Re.includes(He);return $n._open=!!(vt===42?ci:ci&&(dt||!si)),$n._close=!!(vt===42?si:si&&(Cn||!ci)),Me(Tn)}}function fr(he,Me){he.column+=Me,he.offset+=Me,he._bufferIndex+=Me}const va={name:"autolink",tokenize:Wt};function Wt(he,Me,Re){let He=0;return dt;function dt(Yn){return he.enter("autolink"),he.enter("autolinkMarker"),he.consume(Yn),he.exit("autolinkMarker"),he.enter("autolinkProtocol"),vt}function vt(Yn){return Ti(Yn)?(he.consume(Yn),At):Yn===64?Re(Yn):$n(Yn)}function At(Yn){return Yn===43||Yn===45||Yn===46||hr(Yn)?(He=1,Jt(Yn)):$n(Yn)}function Jt(Yn){return Yn===58?(he.consume(Yn),He=0,Tn):(Yn===43||Yn===45||Yn===46||hr(Yn))&&He++<32?(he.consume(Yn),Jt):(He=0,$n(Yn))}function Tn(Yn){return Yn===62?(he.exit("autolinkProtocol"),he.enter("autolinkMarker"),he.consume(Yn),he.exit("autolinkMarker"),he.exit("autolink"),Me):Yn===null||Yn===32||Yn===60||br(Yn)?Re(Yn):(he.consume(Yn),Tn)}function $n(Yn){return Yn===64?(he.consume(Yn),Cn):tr(Yn)?(he.consume(Yn),$n):Re(Yn)}function Cn(Yn){return hr(Yn)?ci(Yn):Re(Yn)}function ci(Yn){return Yn===46?(he.consume(Yn),He=0,Cn):Yn===62?(he.exit("autolinkProtocol").type="autolinkEmail",he.enter("autolinkMarker"),he.consume(Yn),he.exit("autolinkMarker"),he.exit("autolink"),Me):si(Yn)}function si(Yn){if((Yn===45||hr(Yn))&&He++<63){const Ur=Yn===45?si:ci;return he.consume(Yn),Ur}return Re(Yn)}}const di={name:"htmlText",tokenize:Ns};function Ns(he,Me,Re){const He=this;let dt,vt,At;return Jt;function Jt(Hn){return he.enter("htmlText"),he.enter("htmlTextData"),he.consume(Hn),Tn}function Tn(Hn){return Hn===33?(he.consume(Hn),$n):Hn===47?(he.consume(Hn),Xe):Hn===63?(he.consume(Hn),ye):Ti(Hn)?(he.consume(Hn),Tt):Re(Hn)}function $n(Hn){return Hn===45?(he.consume(Hn),Cn):Hn===91?(he.consume(Hn),vt=0,Ur):Ti(Hn)?(he.consume(Hn),pe):Re(Hn)}function Cn(Hn){return Hn===45?(he.consume(Hn),Yn):Re(Hn)}function ci(Hn){return Hn===null?Re(Hn):Hn===45?(he.consume(Hn),si):Ht(Hn)?(At=ci,Nr(Hn)):(he.consume(Hn),ci)}function si(Hn){return Hn===45?(he.consume(Hn),Yn):ci(Hn)}function Yn(Hn){return Hn===62?ar(Hn):Hn===45?si(Hn):ci(Hn)}function Ur(Hn){const Cr="CDATA[";return Hn===Cr.charCodeAt(vt++)?(he.consume(Hn),vt===Cr.length?ie:Ur):Re(Hn)}function ie(Hn){return Hn===null?Re(Hn):Hn===93?(he.consume(Hn),ae):Ht(Hn)?(At=ie,Nr(Hn)):(he.consume(Hn),ie)}function ae(Hn){return Hn===93?(he.consume(Hn),fe):ie(Hn)}function fe(Hn){return Hn===62?ar(Hn):Hn===93?(he.consume(Hn),fe):ie(Hn)}function pe(Hn){return Hn===null||Hn===62?ar(Hn):Ht(Hn)?(At=pe,Nr(Hn)):(he.consume(Hn),pe)}function ye(Hn){return Hn===null?Re(Hn):Hn===63?(he.consume(Hn),Be):Ht(Hn)?(At=ye,Nr(Hn)):(he.consume(Hn),ye)}function Be(Hn){return Hn===62?ar(Hn):ye(Hn)}function Xe(Hn){return Ti(Hn)?(he.consume(Hn),qe):Re(Hn)}function qe(Hn){return Hn===45||hr(Hn)?(he.consume(Hn),qe):ot(Hn)}function ot(Hn){return Ht(Hn)?(At=ot,Nr(Hn)):Fn(Hn)?(he.consume(Hn),ot):ar(Hn)}function Tt(Hn){return Hn===45||hr(Hn)?(he.consume(Hn),Tt):Hn===47||Hn===62||Kr(Hn)?mn(Hn):Re(Hn)}function mn(Hn){return Hn===47?(he.consume(Hn),ar):Hn===58||Hn===95||Ti(Hn)?(he.consume(Hn),Rt):Ht(Hn)?(At=mn,Nr(Hn)):Fn(Hn)?(he.consume(Hn),mn):ar(Hn)}function Rt(Hn){return Hn===45||Hn===46||Hn===58||Hn===95||hr(Hn)?(he.consume(Hn),Rt):Qn(Hn)}function Qn(Hn){return Hn===61?(he.consume(Hn),_n):Ht(Hn)?(At=Qn,Nr(Hn)):Fn(Hn)?(he.consume(Hn),Qn):mn(Hn)}function _n(Hn){return Hn===null||Hn===60||Hn===61||Hn===62||Hn===96?Re(Hn):Hn===34||Hn===39?(he.consume(Hn),dt=Hn,pi):Ht(Hn)?(At=_n,Nr(Hn)):Fn(Hn)?(he.consume(Hn),_n):(he.consume(Hn),Ci)}function pi(Hn){return Hn===dt?(he.consume(Hn),dt=void 0,ki):Hn===null?Re(Hn):Ht(Hn)?(At=pi,Nr(Hn)):(he.consume(Hn),pi)}function Ci(Hn){return Hn===null||Hn===34||Hn===39||Hn===60||Hn===61||Hn===96?Re(Hn):Hn===47||Hn===62||Kr(Hn)?mn(Hn):(he.consume(Hn),Ci)}function ki(Hn){return Hn===47||Hn===62||Kr(Hn)?mn(Hn):Re(Hn)}function ar(Hn){return Hn===62?(he.consume(Hn),he.exit("htmlTextData"),he.exit("htmlText"),Me):Re(Hn)}function Nr(Hn){return he.exit("htmlTextData"),he.enter("lineEnding"),he.consume(Hn),he.exit("lineEnding"),Er}function Er(Hn){return Fn(Hn)?po(he,$r,"linePrefix",He.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Hn):$r(Hn)}function $r(Hn){return he.enter("htmlTextData"),At(Hn)}}const ps={name:"labelStartLink",resolveAll:sa.resolveAll,tokenize:cl};function cl(he,Me,Re){const He=this;return dt;function dt(At){return he.enter("labelLink"),he.enter("labelMarker"),he.consume(At),he.exit("labelMarker"),he.exit("labelLink"),vt}function vt(At){return At===94&&"_hiddenFootnoteSupport"in He.parser.constructs?Re(At):Me(At)}}const Os={name:"hardBreakEscape",tokenize:nu};function nu(he,Me,Re){return He;function He(vt){return he.enter("hardBreakEscape"),he.consume(vt),dt}function dt(vt){return Ht(vt)?(he.exit("hardBreakEscape"),Me(vt)):Re(vt)}}const hu={name:"codeText",previous:rs,resolve:Vu,tokenize:Eo};function Vu(he){let Me=he.length-4,Re=3,He,dt;if((he[Re][1].type==="lineEnding"||he[Re][1].type==="space")&&(he[Me][1].type==="lineEnding"||he[Me][1].type==="space")){for(He=Re;++He<Me;)if(he[He][1].type==="codeTextData"){he[Re][1].type="codeTextPadding",he[Me][1].type="codeTextPadding",Re+=2,Me-=2;break}}for(He=Re-1,Me++;++He<=Me;)dt===void 0?He!==Me&&he[He][1].type!=="lineEnding"&&(dt=He):(He===Me||he[He][1].type==="lineEnding")&&(he[dt][1].type="codeTextData",He!==dt+2&&(he[dt][1].end=he[He-1][1].end,he.splice(dt+2,He-dt-2),Me-=He-dt-2,He=dt+2),dt=void 0);return he}function rs(he){return he!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Eo(he,Me,Re){const He=this;let dt=0,vt,At;return Jt;function Jt(si){return he.enter("codeText"),he.enter("codeTextSequence"),Tn(si)}function Tn(si){return si===96?(he.consume(si),dt++,Tn):(he.exit("codeTextSequence"),$n(si))}function $n(si){return si===null?Re(si):si===32?(he.enter("space"),he.consume(si),he.exit("space"),$n):si===96?(At=he.enter("codeTextSequence"),vt=0,ci(si)):Ht(si)?(he.enter("lineEnding"),he.consume(si),he.exit("lineEnding"),$n):(he.enter("codeTextData"),Cn(si))}function Cn(si){return si===null||si===32||si===96||Ht(si)?(he.exit("codeTextData"),$n(si)):(he.consume(si),Cn)}function ci(si){return si===96?(he.consume(si),vt++,ci):vt===dt?(he.exit("codeTextSequence"),he.exit("codeText"),Me(si)):(At.type="codeTextData",Cn(si))}}const Fa={42:ca,43:ca,45:ca,48:ca,49:ca,50:ca,51:ca,52:ca,53:ca,54:ca,55:ca,56:ca,57:ca,62:jn},Fr={91:Qr},za={[-2]:Mo,[-1]:Mo,32:Mo},qo={35:ul,42:bo,45:[_i,bo],60:du,61:_i,95:bo,96:Zs,126:Zs},ol={38:md,92:Xn},Zi={[-5]:_t,[-4]:_t,[-3]:_t,33:rl,38:md,42:Nl,60:[va,di],91:ps,92:[Os,Xn],93:sa,95:Nl,96:hu},oo={null:[Nl,ao]},iu={null:[42,95]},Sl={null:[]};function _c(he,Me,Re){let He={_bufferIndex:-1,_index:0,line:Re&&Re.line||1,column:Re&&Re.column||1,offset:Re&&Re.offset||0};const dt={},vt=[];let At=[],Jt=[],Tn=!0;const $n={attempt:mn(ot),check:mn(Tt),consume:Be,enter:Xe,exit:qe,interrupt:mn(Tt,{interrupt:!0})},Cn={code:null,containerState:{},defineSkip:fe,events:[],now:ae,parser:he,previous:null,sliceSerialize:Ur,sliceStream:ie,write:Yn};let ci=Me.tokenize.call(Cn,$n),si;return Me.resolveAll&&vt.push(Me),Cn;function Yn(pi){return At=kn(At,pi),pe(),At[At.length-1]!==null?[]:(Rt(Me,0),Cn.events=ta(vt,Cn.events,Cn),Cn.events)}function Ur(pi,Ci){return Bl(ie(pi),Ci)}function ie(pi){return Xo(At,pi)}function ae(){const{_bufferIndex:pi,_index:Ci,line:ki,column:ar,offset:Nr}=He;return{_bufferIndex:pi,_index:Ci,line:ki,column:ar,offset:Nr}}function fe(pi){dt[pi.line]=pi.column,_n()}function pe(){let pi;for(;He._index<At.length;){const Ci=At[He._index];if(typeof Ci=="string")for(pi=He._index,He._bufferIndex<0&&(He._bufferIndex=0);He._index===pi&&He._bufferIndex<Ci.length;)ye(Ci.charCodeAt(He._bufferIndex));else ye(Ci)}}function ye(pi){Tn=void 0,si=pi,ci=ci(pi)}function Be(pi){Ht(pi)?(He.line++,He.column=1,He.offset+=pi===-3?2:1,_n()):pi!==-1&&(He.column++,He.offset++),He._bufferIndex<0?He._index++:(He._bufferIndex++,He._bufferIndex===At[He._index].length&&(He._bufferIndex=-1,He._index++)),Cn.previous=pi,Tn=!0}function Xe(pi,Ci){const ki=Ci||{};return ki.type=pi,ki.start=ae(),Cn.events.push(["enter",ki,Cn]),Jt.push(ki),ki}function qe(pi){const Ci=Jt.pop();return Ci.end=ae(),Cn.events.push(["exit",Ci,Cn]),Ci}function ot(pi,Ci){Rt(pi,Ci.from)}function Tt(pi,Ci){Ci.restore()}function mn(pi,Ci){return ki;function ki(ar,Nr,Er){let $r,Hn,Cr,$o;return Array.isArray(ar)?us(ar):"tokenize"in ar?us([ar]):oi(ar);function oi(Va){return ll;function ll(Xs){const ha=Xs!==null&&Va[Xs],Ca=Xs!==null&&Va.null,Ts=[...Array.isArray(ha)?ha:ha?[ha]:[],...Array.isArray(Ca)?Ca:Ca?[Ca]:[]];return us(Ts)(Xs)}}function us(Va){return $r=Va,Hn=0,Va.length===0?Er:Xa(Va[Hn])}function Xa(Va){return ll;function ll(Xs){return $o=Qn(),Cr=Va,Va.partial||(Cn.currentConstruct=Va),Va.name&&Cn.parser.constructs.disable.null.includes(Va.name)?ml(Xs):Va.tokenize.call(Ci?Object.assign(Object.create(Cn),Ci):Cn,$n,pl,ml)(Xs)}}function pl(Va){return Tn=!0,pi(Cr,$o),Nr}function ml(Va){return Tn=!0,$o.restore(),++Hn<$r.length?Xa($r[Hn]):Er}}}function Rt(pi,Ci){pi.resolveAll&&!vt.includes(pi)&&vt.push(pi),pi.resolve&&gn(Cn.events,Ci,Cn.events.length-Ci,pi.resolve(Cn.events.slice(Ci),Cn)),pi.resolveTo&&(Cn.events=pi.resolveTo(Cn.events,Cn))}function Qn(){const pi=ae(),Ci=Cn.previous,ki=Cn.currentConstruct,ar=Cn.events.length,Nr=Array.from(Jt);return{from:ar,restore:Er};function Er(){He=pi,Cn.previous=Ci,Cn.currentConstruct=ki,Cn.events.length=ar,Jt=Nr,_n()}}function _n(){He.line in dt&&He.column<2&&(He.column=dt[He.line],He.offset+=dt[He.line]-1)}}function Xo(he,Me){const Re=Me.start._index,He=Me.start._bufferIndex,dt=Me.end._index,vt=Me.end._bufferIndex;let At;if(Re===dt)At=[he[Re].slice(He,vt)];else{if(At=he.slice(Re,dt),He>-1){const Jt=At[0];typeof Jt=="string"?At[0]=Jt.slice(He):At.shift()}vt>0&&At.push(he[dt].slice(0,vt))}return At}function Bl(he,Me){let Re=-1;const He=[];let dt;for(;++Re<he.length;){const vt=he[Re];let At;if(typeof vt=="string")At=vt;else switch(vt){case-5:{At="\r";break}case-4:{At=`
`;break}case-3:{At=`\r
`;break}case-2:{At=Me?" ":" ";break}case-1:{if(!Me&&dt)continue;At=" ";break}default:At=String.fromCharCode(vt)}dt=vt===-2,He.push(At)}return He.join("")}function Ma(he){const He={constructs:ir([Ce,...(he||{}).extensions||[]]),content:dt(Do),defined:[],document:dt(or),flow:dt(co),lazy:{},string:dt(ra),text:dt(gr)};return He;function dt(vt){return At;function At(Jt){return _c(He,vt,Jt)}}}const Ka=/[\0\t\n\r]/g;function ms(){let he=1,Me="",Re=!0,He;return dt;function dt(vt,At,Jt){const Tn=[];let $n,Cn,ci,si,Yn;for(vt=Me+(typeof vt=="string"?vt.toString():new TextDecoder(At||void 0).decode(vt)),ci=0,Me="",Re&&(vt.charCodeAt(0)===65279&&ci++,Re=void 0);ci<vt.length;){if(Ka.lastIndex=ci,$n=Ka.exec(vt),si=$n&&$n.index!==void 0?$n.index:vt.length,Yn=vt.charCodeAt(si),!$n){Me=vt.slice(ci);break}if(Yn===10&&ci===si&&He)Tn.push(-3),He=void 0;else switch(He&&(Tn.push(-5),He=void 0),ci<si&&(Tn.push(vt.slice(ci,si)),he+=si-ci),Yn){case 0:{Tn.push(65533),he++;break}case 9:{for(Cn=Math.ceil(he/4)*4,Tn.push(-2);he++<Cn;)Tn.push(-1);break}case 10:{Tn.push(-4),he=1;break}default:He=!0,he=1}ci=si+1}return Jt&&(He&&Tn.push(-5),Me&&Tn.push(Me),Tn.push(null)),Tn}}function os(he,Me){const Re=Number.parseInt(he,Me);return Re<9||Re===11||Re>13&&Re<32||Re>126&&Re<160||Re>55295&&Re<57344||Re>64975&&Re<65008||(Re&65535)===65535||(Re&65535)===65534||Re>1114111?"\uFFFD":String.fromCodePoint(Re)}const ya=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ku(he){return he.replace(ya,xo)}function xo(he,Me,Re){if(Me)return Me;if(Re.charCodeAt(0)===35){const dt=Re.charCodeAt(1),vt=dt===120||dt===88;return os(Re.slice(vt?2:1),vt?16:10)}return Pc(Re)||he}const Gc={}.hasOwnProperty;function pa(he,Me,Re){return typeof Me!="string"&&(Re=Me,Me=void 0),ah(Re)(gi(Ma(Re).document().write(ms()(he,Me,!0))))}function ah(he){const Me={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:vt(fs),autolinkProtocol:mn,autolinkEmail:mn,atxHeading:vt(Ps),blockQuote:vt(Xs),characterEscape:mn,characterReference:mn,codeFenced:vt(ha),codeFencedFenceInfo:At,codeFencedFenceMeta:At,codeIndented:vt(ha,At),codeText:vt(Ca,At),codeTextData:mn,data:mn,codeFlowValue:mn,definition:vt(Ts),definitionDestinationString:At,definitionLabelString:At,definitionTitleString:At,emphasis:vt(el),hardBreakEscape:vt(Tl),hardBreakTrailing:vt(Tl),htmlFlow:vt(ba,At),htmlFlowData:mn,htmlText:vt(ba,At),htmlTextData:mn,image:vt(Fu),label:At,link:vt(fs),listItem:vt(su),listItemValue:si,listOrdered:vt(Su,ci),listUnordered:vt(Su),paragraph:vt(Bu),reference:oi,referenceString:At,resourceDestinationString:At,resourceTitleString:At,setextHeading:vt(Ps),strong:vt(xu),thematicBreak:vt(Il)},exit:{atxHeading:Tn(),atxHeadingSequence:Xe,autolink:Tn(),autolinkEmail:ll,autolinkProtocol:Va,blockQuote:Tn(),characterEscapeValue:Rt,characterReferenceMarkerHexadecimal:Xa,characterReferenceMarkerNumeric:Xa,characterReferenceValue:pl,characterReference:ml,codeFenced:Tn(ae),codeFencedFence:ie,codeFencedFenceInfo:Yn,codeFencedFenceMeta:Ur,codeFlowValue:Rt,codeIndented:Tn(fe),codeText:Tn(ki),codeTextData:Rt,data:Rt,definition:Tn(),definitionDestinationString:Be,definitionLabelString:pe,definitionTitleString:ye,emphasis:Tn(),hardBreakEscape:Tn(_n),hardBreakTrailing:Tn(_n),htmlFlow:Tn(pi),htmlFlowData:Rt,htmlText:Tn(Ci),htmlTextData:Rt,image:Tn(Nr),label:$r,labelText:Er,lineEnding:Qn,link:Tn(ar),listItem:Tn(),listOrdered:Tn(),listUnordered:Tn(),paragraph:Tn(),referenceString:us,resourceDestinationString:Hn,resourceTitleString:Cr,resource:$o,setextHeading:Tn(Tt),setextHeadingLineSequence:ot,setextHeadingText:qe,strong:Tn(),thematicBreak:Tn()}};jl(Me,(he||{}).mdastExtensions||[]);const Re={};return He;function He(sr){let lo={type:"root",children:[]};const Ha={stack:[lo],tokenStack:[],config:Me,enter:Jt,exit:$n,buffer:At,resume:Cn,data:Re},ga=[];let Is=-1;for(;++Is<sr.length;)if(sr[Is][1].type==="listOrdered"||sr[Is][1].type==="listUnordered")if(sr[Is][0]==="enter")ga.push(Is);else{const Dl=ga.pop();Is=dt(sr,Dl,Is)}for(Is=-1;++Is<sr.length;){const Dl=Me[sr[Is][0]];Gc.call(Dl,sr[Is][1].type)&&Dl[sr[Is][1].type].call(Object.assign({sliceSerialize:sr[Is][2].sliceSerialize},Ha),sr[Is][1])}if(Ha.tokenStack.length>0){const Dl=Ha.tokenStack[Ha.tokenStack.length-1];(Dl[1]||zl).call(Ha,void 0,Dl[0])}for(lo.position={start:ru(sr.length>0?sr[0][1].start:{line:1,column:1,offset:0}),end:ru(sr.length>0?sr[sr.length-2][1].end:{line:1,column:1,offset:0})},Is=-1;++Is<Me.transforms.length;)lo=Me.transforms[Is](lo)||lo;return lo}function dt(sr,lo,Ha){let ga=lo-1,Is=-1,Dl=!1,tc,ju,Tc,Ic;for(;++ga<=Ha;){const zu=sr[ga];switch(zu[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{zu[0]==="enter"?Is++:Is--,Ic=void 0;break}case"lineEndingBlank":{zu[0]==="enter"&&(tc&&!Ic&&!Is&&!Tc&&(Tc=ga),Ic=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ic=void 0}if(!Is&&zu[0]==="enter"&&zu[1].type==="listItemPrefix"||Is===-1&&zu[0]==="exit"&&(zu[1].type==="listUnordered"||zu[1].type==="listOrdered")){if(tc){let kc=ga;for(ju=void 0;kc--;){const nc=sr[kc];if(nc[1].type==="lineEnding"||nc[1].type==="lineEndingBlank"){if(nc[0]==="exit")continue;ju&&(sr[ju][1].type="lineEndingBlank",Dl=!0),nc[1].type="lineEnding",ju=kc}else if(!(nc[1].type==="linePrefix"||nc[1].type==="blockQuotePrefix"||nc[1].type==="blockQuotePrefixWhitespace"||nc[1].type==="blockQuoteMarker"||nc[1].type==="listItemIndent"))break}Tc&&(!ju||Tc<ju)&&(tc._spread=!0),tc.end=Object.assign({},ju?sr[ju][1].start:zu[1].end),sr.splice(ju||ga,0,["exit",tc,zu[2]]),ga++,Ha++}if(zu[1].type==="listItemPrefix"){const kc={type:"listItem",_spread:!1,start:Object.assign({},zu[1].start),end:void 0};tc=kc,sr.splice(ga,0,["enter",kc,zu[2]]),ga++,Ha++,Tc=void 0,Ic=!0}}}return sr[lo][1]._spread=Dl,Ha}function vt(sr,lo){return Ha;function Ha(ga){Jt.call(this,sr(ga),ga),lo&&lo.call(this,ga)}}function At(){this.stack.push({type:"fragment",children:[]})}function Jt(sr,lo,Ha){this.stack[this.stack.length-1].children.push(sr),this.stack.push(sr),this.tokenStack.push([lo,Ha||void 0]),sr.position={start:ru(lo.start),end:void 0}}function Tn(sr){return lo;function lo(Ha){sr&&sr.call(this,Ha),$n.call(this,Ha)}}function $n(sr,lo){const Ha=this.stack.pop(),ga=this.tokenStack.pop();if(ga)ga[0].type!==sr.type&&(lo?lo.call(this,sr,ga[0]):(ga[1]||zl).call(this,sr,ga[0]));else throw new Error("Cannot close `"+sr.type+"` ("+li({start:sr.start,end:sr.end})+"): it\u2019s not open");Ha.position.end=ru(sr.end)}function Cn(){return yn(this.stack.pop())}function ci(){this.data.expectingFirstListItemValue=!0}function si(sr){if(this.data.expectingFirstListItemValue){const lo=this.stack[this.stack.length-2];lo.start=Number.parseInt(this.sliceSerialize(sr),10),this.data.expectingFirstListItemValue=void 0}}function Yn(){const sr=this.resume(),lo=this.stack[this.stack.length-1];lo.lang=sr}function Ur(){const sr=this.resume(),lo=this.stack[this.stack.length-1];lo.meta=sr}function ie(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function ae(){const sr=this.resume(),lo=this.stack[this.stack.length-1];lo.value=sr.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function fe(){const sr=this.resume(),lo=this.stack[this.stack.length-1];lo.value=sr.replace(/(\r?\n|\r)$/g,"")}function pe(sr){const lo=this.resume(),Ha=this.stack[this.stack.length-1];Ha.label=lo,Ha.identifier=Xr(this.sliceSerialize(sr)).toLowerCase()}function ye(){const sr=this.resume(),lo=this.stack[this.stack.length-1];lo.title=sr}function Be(){const sr=this.resume(),lo=this.stack[this.stack.length-1];lo.url=sr}function Xe(sr){const lo=this.stack[this.stack.length-1];if(!lo.depth){const Ha=this.sliceSerialize(sr).length;lo.depth=Ha}}function qe(){this.data.setextHeadingSlurpLineEnding=!0}function ot(sr){const lo=this.stack[this.stack.length-1];lo.depth=this.sliceSerialize(sr).codePointAt(0)===61?1:2}function Tt(){this.data.setextHeadingSlurpLineEnding=void 0}function mn(sr){const Ha=this.stack[this.stack.length-1].children;let ga=Ha[Ha.length-1];(!ga||ga.type!=="text")&&(ga=cs(),ga.position={start:ru(sr.start),end:void 0},Ha.push(ga)),this.stack.push(ga)}function Rt(sr){const lo=this.stack.pop();lo.value+=this.sliceSerialize(sr),lo.position.end=ru(sr.end)}function Qn(sr){const lo=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ha=lo.children[lo.children.length-1];Ha.position.end=ru(sr.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&Me.canContainEols.includes(lo.type)&&(mn.call(this,sr),Rt.call(this,sr))}function _n(){this.data.atHardBreak=!0}function pi(){const sr=this.resume(),lo=this.stack[this.stack.length-1];lo.value=sr}function Ci(){const sr=this.resume(),lo=this.stack[this.stack.length-1];lo.value=sr}function ki(){const sr=this.resume(),lo=this.stack[this.stack.length-1];lo.value=sr}function ar(){const sr=this.stack[this.stack.length-1];if(this.data.inReference){const lo=this.data.referenceType||"shortcut";sr.type+="Reference",sr.referenceType=lo,delete sr.url,delete sr.title}else delete sr.identifier,delete sr.label;this.data.referenceType=void 0}function Nr(){const sr=this.stack[this.stack.length-1];if(this.data.inReference){const lo=this.data.referenceType||"shortcut";sr.type+="Reference",sr.referenceType=lo,delete sr.url,delete sr.title}else delete sr.identifier,delete sr.label;this.data.referenceType=void 0}function Er(sr){const lo=this.sliceSerialize(sr),Ha=this.stack[this.stack.length-2];Ha.label=Ku(lo),Ha.identifier=Xr(lo).toLowerCase()}function $r(){const sr=this.stack[this.stack.length-1],lo=this.resume(),Ha=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ha.type==="link"){const ga=sr.children;Ha.children=ga}else Ha.alt=lo}function Hn(){const sr=this.resume(),lo=this.stack[this.stack.length-1];lo.url=sr}function Cr(){const sr=this.resume(),lo=this.stack[this.stack.length-1];lo.title=sr}function $o(){this.data.inReference=void 0}function oi(){this.data.referenceType="collapsed"}function us(sr){const lo=this.resume(),Ha=this.stack[this.stack.length-1];Ha.label=lo,Ha.identifier=Xr(this.sliceSerialize(sr)).toLowerCase(),this.data.referenceType="full"}function Xa(sr){this.data.characterReferenceType=sr.type}function pl(sr){const lo=this.sliceSerialize(sr),Ha=this.data.characterReferenceType;let ga;Ha?(ga=os(lo,Ha==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ga=Pc(lo);const Is=this.stack[this.stack.length-1];Is.value+=ga}function ml(sr){const lo=this.stack.pop();lo.position.end=ru(sr.end)}function Va(sr){Rt.call(this,sr);const lo=this.stack[this.stack.length-1];lo.url=this.sliceSerialize(sr)}function ll(sr){Rt.call(this,sr);const lo=this.stack[this.stack.length-1];lo.url="mailto:"+this.sliceSerialize(sr)}function Xs(){return{type:"blockquote",children:[]}}function ha(){return{type:"code",lang:null,meta:null,value:""}}function Ca(){return{type:"inlineCode",value:""}}function Ts(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function el(){return{type:"emphasis",children:[]}}function Ps(){return{type:"heading",depth:0,children:[]}}function Tl(){return{type:"break"}}function ba(){return{type:"html",value:""}}function Fu(){return{type:"image",title:null,url:"",alt:null}}function fs(){return{type:"link",title:null,url:"",children:[]}}function Su(sr){return{type:"list",ordered:sr.type==="listOrdered",start:null,spread:sr._spread,children:[]}}function su(sr){return{type:"listItem",spread:sr._spread,checked:null,children:[]}}function Bu(){return{type:"paragraph",children:[]}}function xu(){return{type:"strong",children:[]}}function cs(){return{type:"text",value:""}}function Il(){return{type:"thematicBreak"}}}function ru(he){return{line:he.line,column:he.column,offset:he.offset}}function jl(he,Me){let Re=-1;for(;++Re<Me.length;){const He=Me[Re];Array.isArray(He)?jl(he,He):Td(he,He)}}function Td(he,Me){let Re;for(Re in Me)if(Gc.call(Me,Re))switch(Re){case"canContainEols":{const He=Me[Re];He&&he[Re].push(...He);break}case"transforms":{const He=Me[Re];He&&he[Re].push(...He);break}case"enter":case"exit":{const He=Me[Re];He&&Object.assign(he[Re],He);break}}}function zl(he,Me){throw he?new Error("Cannot close `"+he.type+"` ("+li({start:he.start,end:he.end})+"): a different token (`"+Me.type+"`, "+li({start:Me.start,end:Me.end})+") is open"):new Error("Cannot close document, a token (`"+Me.type+"`, "+li({start:Me.start,end:Me.end})+") is still open")}function Ea(he){const Me=this;Me.parser=Re;function Re(He){return pa(He,rS(Ys(Ys({},Me.data("settings")),he),{extensions:Me.data("micromarkExtensions")||[],mdastExtensions:Me.data("fromMarkdownExtensions")||[]}))}}const zs=-1,da=0,kl=1,Yu=2,Ac=3,Id=4,$u=5,gu=6,Sc=7,Xu=8,Nc=typeof self=="object"?self:globalThis,td=(he,Me)=>{const Re=(dt,vt)=>(he.set(vt,dt),dt),He=dt=>{if(he.has(dt))return he.get(dt);const[vt,At]=Me[dt];switch(vt){case da:case zs:return Re(At,dt);case kl:{const Jt=Re([],dt);for(const Tn of At)Jt.push(He(Tn));return Jt}case Yu:{const Jt=Re({},dt);for(const[Tn,$n]of At)Jt[He(Tn)]=He($n);return Jt}case Ac:return Re(new Date(At),dt);case Id:{const{source:Jt,flags:Tn}=At;return Re(new RegExp(Jt,Tn),dt)}case $u:{const Jt=Re(new Map,dt);for(const[Tn,$n]of At)Jt.set(He(Tn),He($n));return Jt}case gu:{const Jt=Re(new Set,dt);for(const Tn of At)Jt.add(He(Tn));return Jt}case Sc:{const{name:Jt,message:Tn}=At;return Re(new Nc[Jt](Tn),dt)}case Xu:return Re(BigInt(At),dt);case"BigInt":return Re(Object(BigInt(At)),dt)}return Re(new Nc[vt](At),dt)};return He},nd=he=>td(new Map,he)(0),xc="",{toString:Mh}={},{keys:Ul}=Object,Tu=he=>{const Me=typeof he;if(Me!=="object"||!he)return[da,Me];const Re=Mh.call(he).slice(8,-1);switch(Re){case"Array":return[kl,xc];case"Object":return[Yu,xc];case"Date":return[Ac,xc];case"RegExp":return[Id,xc];case"Map":return[$u,xc];case"Set":return[gu,xc]}return Re.includes("Array")?[kl,Re]:Re.includes("Error")?[Sc,Re]:[Yu,Re]},Ud=([he,Me])=>he===da&&(Me==="function"||Me==="symbol"),mt=(he,Me,Re,He)=>{const dt=(At,Jt)=>{const Tn=He.push(At)-1;return Re.set(Jt,Tn),Tn},vt=At=>{if(Re.has(At))return Re.get(At);let[Jt,Tn]=Tu(At);switch(Jt){case da:{let Cn=At;switch(Tn){case"bigint":Jt=Xu,Cn=At.toString();break;case"function":case"symbol":if(he)throw new TypeError("unable to serialize "+Tn);Cn=null;break;case"undefined":return dt([zs],At)}return dt([Jt,Cn],At)}case kl:{if(Tn)return dt([Tn,[...At]],At);const Cn=[],ci=dt([Jt,Cn],At);for(const si of At)Cn.push(vt(si));return ci}case Yu:{if(Tn)switch(Tn){case"BigInt":return dt([Tn,At.toString()],At);case"Boolean":case"Number":case"String":return dt([Tn,At.valueOf()],At)}if(Me&&"toJSON"in At)return vt(At.toJSON());const Cn=[],ci=dt([Jt,Cn],At);for(const si of Ul(At))(he||!Ud(Tu(At[si])))&&Cn.push([vt(si),vt(At[si])]);return ci}case Ac:return dt([Jt,At.toISOString()],At);case Id:{const{source:Cn,flags:ci}=At;return dt([Jt,{source:Cn,flags:ci}],At)}case $u:{const Cn=[],ci=dt([Jt,Cn],At);for(const[si,Yn]of At)(he||!(Ud(Tu(si))||Ud(Tu(Yn))))&&Cn.push([vt(si),vt(Yn)]);return ci}case gu:{const Cn=[],ci=dt([Jt,Cn],At);for(const si of At)(he||!Ud(Tu(si)))&&Cn.push(vt(si));return ci}}const{message:$n}=At;return dt([Jt,{name:Tn,message:$n}],At)};return vt},Et=(he,{json:Me,lossy:Re}={})=>{const He=[];return mt(!(Me||Re),!!Me,new Map,He)(he),He};var rn=typeof structuredClone=="function"?(he,Me)=>Me&&("json"in Me||"lossy"in Me)?nd(Et(he,Me)):structuredClone(he):(he,Me)=>nd(Et(he,Me));function cn(he,Me){const Re=encode(Dn(he||""));if(!Me)return Re;const He=Re.indexOf(":"),dt=Re.indexOf("?"),vt=Re.indexOf("#"),At=Re.indexOf("/");return He<0||At>-1&&He>At||dt>-1&&He>dt||vt>-1&&He>vt||Me.test(Re.slice(0,He))?Re:""}function Dn(he){const Me=[];let Re=-1,He=0,dt=0;for(;++Re<he.length;){const vt=he.charCodeAt(Re);let At="";if(vt===37&&hr(he.charCodeAt(Re+1))&&hr(he.charCodeAt(Re+2)))dt=2;else if(vt<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(vt))||(At=String.fromCharCode(vt));else if(vt>55295&&vt<57344){const Jt=he.charCodeAt(Re+1);vt<56320&&Jt>56319&&Jt<57344?(At=String.fromCharCode(vt,Jt),dt=1):At="\uFFFD"}else At=String.fromCharCode(vt);At&&(Me.push(he.slice(He,Re),encodeURIComponent(At)),He=Re+dt+1,At=""),dt&&(Re+=dt,dt=0)}return Me.join("")+he.slice(He)}function xn(he,Me){const Re=[{type:"text",value:"\u21A9"}];return Me>1&&Re.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(Me)}]}),Re}function ri(he,Me){return"Back to reference "+(he+1)+(Me>1?"-"+Me:"")}function ai(he){const Me=typeof he.options.clobberPrefix=="string"?he.options.clobberPrefix:"user-content-",Re=he.options.footnoteBackContent||xn,He=he.options.footnoteBackLabel||ri,dt=he.options.footnoteLabel||"Footnotes",vt=he.options.footnoteLabelTagName||"h2",At=he.options.footnoteLabelProperties||{className:["sr-only"]},Jt=[];let Tn=-1;for(;++Tn<he.footnoteOrder.length;){const $n=he.footnoteById.get(he.footnoteOrder[Tn]);if(!$n)continue;const Cn=he.all($n),ci=String($n.identifier).toUpperCase(),si=Dn(ci.toLowerCase());let Yn=0;const Ur=[],ie=he.footnoteCounts.get(ci);for(;ie!==void 0&&++Yn<=ie;){Ur.length>0&&Ur.push({type:"text",value:" "});let pe=typeof Re=="string"?Re:Re(Tn,Yn);typeof pe=="string"&&(pe={type:"text",value:pe}),Ur.push({type:"element",tagName:"a",properties:{href:"#"+Me+"fnref-"+si+(Yn>1?"-"+Yn:""),dataFootnoteBackref:"",ariaLabel:typeof He=="string"?He:He(Tn,Yn),className:["data-footnote-backref"]},children:Array.isArray(pe)?pe:[pe]})}const ae=Cn[Cn.length-1];if(ae&&ae.type==="element"&&ae.tagName==="p"){const pe=ae.children[ae.children.length-1];pe&&pe.type==="text"?pe.value+=" ":ae.children.push({type:"text",value:" "}),ae.children.push(...Ur)}else Cn.push(...Ur);const fe={type:"element",tagName:"li",properties:{id:Me+"fn-"+si},children:he.wrap(Cn,!0)};he.patch($n,fe),Jt.push(fe)}if(Jt.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:vt,properties:rS(Ys({},rn(At)),{id:"footnote-label"}),children:[{type:"text",value:dt}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:he.wrap(Jt,!0)},{type:"text",value:`
`}]}}const qn=function(he,Me,Re,He,dt){const vt=bi(Me);if(Re!=null&&(typeof Re!="number"||Re<0||Re===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if(He!=null&&(!qn(He)||!He.children))throw new Error("Expected parent node");if(He==null!=(Re==null))throw new Error("Expected both parent and index");return Lr(he)?vt.call(dt,he,Re,He):!1},bi=function(he){if(he==null)return Ui;if(typeof he=="function")return Ki(he);if(typeof he=="object")return Array.isArray(he)?Ni(he):Ei(he);if(typeof he=="string")return qi(he);throw new Error("Expected function, string, or object as test")};function Ni(he){const Me=[];let Re=-1;for(;++Re<he.length;)Me[Re]=bi(he[Re]);return Ki(He);function He(...dt){let vt=-1;for(;++vt<Me.length;)if(Me[vt].apply(this,dt))return!0;return!1}}function Ei(he){const Me=he;return Ki(Re);function Re(He){const dt=He;let vt;for(vt in he)if(dt[vt]!==Me[vt])return!1;return!0}}function qi(he){return Ki(Me);function Me(Re){return Re&&Re.type===he}}function Ki(he){return Me;function Me(Re,He,dt){return!!(Lr(Re)&&he.call(this,Re,typeof He=="number"?He:void 0,dt||void 0))}}function Ui(){return!0}function Lr(he){return he!==null&&typeof he=="object"&&"type"in he}function Vi(he){return he}const Pr=[],yr=!0,zr=!1,So="skip";function Lo(he,Me,Re,He){let dt;typeof Me=="function"&&typeof Re!="function"?(He=Re,Re=Me):dt=Me;const vt=bi(dt),At=He?-1:1;Jt(he,void 0,[])();function Jt(Tn,$n,Cn){const ci=Tn&&typeof Tn=="object"?Tn:{};if(typeof ci.type=="string"){const Yn=typeof ci.tagName=="string"?ci.tagName:typeof ci.name=="string"?ci.name:void 0;Object.defineProperty(si,"name",{value:"node ("+(Tn.type+(Yn?"<"+Yn+">":""))+")"})}return si;function si(){let Yn=Pr,Ur,ie,ae;if((!Me||vt(Tn,$n,Cn[Cn.length-1]||void 0))&&(Yn=Tr(Re(Tn,Cn)),Yn[0]===zr))return Yn;if("children"in Tn&&Tn.children){const fe=Tn;if(fe.children&&Yn[0]!==So)for(ie=(He?fe.children.length:-1)+At,ae=Cn.concat(fe);ie>-1&&ie<fe.children.length;){const pe=fe.children[ie];if(Ur=Jt(pe,ie,ae)(),Ur[0]===zr)return Ur;ie=typeof Ur[1]=="number"?Ur[1]:ie+At}}return Yn}}}function Tr(he){return Array.isArray(he)?he:typeof he=="number"?[yr,he]:he==null?Pr:[he]}function mo(he,Me,Re,He){let dt,vt,At;typeof Me=="function"&&typeof Re!="function"?(vt=void 0,At=Me,dt=Re):(vt=Me,At=Re,dt=He),Lo(he,vt,Jt,dt);function Jt(Tn,$n){const Cn=$n[$n.length-1],ci=Cn?Cn.children.indexOf(Tn):void 0;return At(Tn,ci,Cn)}}function Zo(he,Me){const Re={type:"element",tagName:"blockquote",properties:{},children:he.wrap(he.all(Me),!0)};return he.patch(Me,Re),he.applyData(Me,Re)}function Hr(he,Me){const Re={type:"element",tagName:"br",properties:{},children:[]};return he.patch(Me,Re),[he.applyData(Me,Re),{type:"text",value:`
`}]}function uo(he,Me){const Re=Me.value?Me.value+`
`:"",He={};Me.lang&&(He.className=["language-"+Me.lang]);let dt={type:"element",tagName:"code",properties:He,children:[{type:"text",value:Re}]};return Me.meta&&(dt.data={meta:Me.meta}),he.patch(Me,dt),dt=he.applyData(Me,dt),dt={type:"element",tagName:"pre",properties:{},children:[dt]},he.patch(Me,dt),dt}function vr(he,Me){const Re={type:"element",tagName:"del",properties:{},children:he.all(Me)};return he.patch(Me,Re),he.applyData(Me,Re)}function cr(he,Me){const Re={type:"element",tagName:"em",properties:{},children:he.all(Me)};return he.patch(Me,Re),he.applyData(Me,Re)}function to(he,Me){const Re=typeof he.options.clobberPrefix=="string"?he.options.clobberPrefix:"user-content-",He=String(Me.identifier).toUpperCase(),dt=Dn(He.toLowerCase()),vt=he.footnoteOrder.indexOf(He);let At,Jt=he.footnoteCounts.get(He);Jt===void 0?(Jt=0,he.footnoteOrder.push(He),At=he.footnoteOrder.length):At=vt+1,Jt+=1,he.footnoteCounts.set(He,Jt);const Tn={type:"element",tagName:"a",properties:{href:"#"+Re+"fn-"+dt,id:Re+"fnref-"+dt+(Jt>1?"-"+Jt:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(At)}]};he.patch(Me,Tn);const $n={type:"element",tagName:"sup",properties:{},children:[Tn]};return he.patch(Me,$n),he.applyData(Me,$n)}function Co(he,Me){const Re={type:"element",tagName:"h"+Me.depth,properties:{},children:he.all(Me)};return he.patch(Me,Re),he.applyData(Me,Re)}function Ro(he,Me){if(he.options.allowDangerousHtml){const Re={type:"raw",value:Me.value};return he.patch(Me,Re),he.applyData(Me,Re)}}function jo(he,Me){const Re=Me.referenceType;let He="]";if(Re==="collapsed"?He+="[]":Re==="full"&&(He+="["+(Me.label||Me.identifier)+"]"),Me.type==="imageReference")return[{type:"text",value:"!["+Me.alt+He}];const dt=he.all(Me),vt=dt[0];vt&&vt.type==="text"?vt.value="["+vt.value:dt.unshift({type:"text",value:"["});const At=dt[dt.length-1];return At&&At.type==="text"?At.value+=He:dt.push({type:"text",value:He}),dt}function Or(he,Me){const Re=String(Me.identifier).toUpperCase(),He=he.definitionById.get(Re);if(!He)return jo(he,Me);const dt={src:Dn(He.url||""),alt:Me.alt};He.title!==null&&He.title!==void 0&&(dt.title=He.title);const vt={type:"element",tagName:"img",properties:dt,children:[]};return he.patch(Me,vt),he.applyData(Me,vt)}function Qo(he,Me){const Re={src:Dn(Me.url)};Me.alt!==null&&Me.alt!==void 0&&(Re.alt=Me.alt),Me.title!==null&&Me.title!==void 0&&(Re.title=Me.title);const He={type:"element",tagName:"img",properties:Re,children:[]};return he.patch(Me,He),he.applyData(Me,He)}function Jo(he,Me){const Re={type:"text",value:Me.value.replace(/\r?\n|\r/g," ")};he.patch(Me,Re);const He={type:"element",tagName:"code",properties:{},children:[Re]};return he.patch(Me,He),he.applyData(Me,He)}function Da(he,Me){const Re=String(Me.identifier).toUpperCase(),He=he.definitionById.get(Re);if(!He)return jo(he,Me);const dt={href:Dn(He.url||"")};He.title!==null&&He.title!==void 0&&(dt.title=He.title);const vt={type:"element",tagName:"a",properties:dt,children:he.all(Me)};return he.patch(Me,vt),he.applyData(Me,vt)}function la(he,Me){const Re={href:Dn(Me.url)};Me.title!==null&&Me.title!==void 0&&(Re.title=Me.title);const He={type:"element",tagName:"a",properties:Re,children:he.all(Me)};return he.patch(Me,He),he.applyData(Me,He)}function Ms(he,Me,Re){const He=he.all(Me),dt=Re?vs(Re):ea(Me),vt={},At=[];if(typeof Me.checked=="boolean"){const Cn=He[0];let ci;Cn&&Cn.type==="element"&&Cn.tagName==="p"?ci=Cn:(ci={type:"element",tagName:"p",properties:{},children:[]},He.unshift(ci)),ci.children.length>0&&ci.children.unshift({type:"text",value:" "}),ci.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:Me.checked,disabled:!0},children:[]}),vt.className=["task-list-item"]}let Jt=-1;for(;++Jt<He.length;){const Cn=He[Jt];(dt||Jt!==0||Cn.type!=="element"||Cn.tagName!=="p")&&At.push({type:"text",value:`
`}),Cn.type==="element"&&Cn.tagName==="p"&&!dt?At.push(...Cn.children):At.push(Cn)}const Tn=He[He.length-1];Tn&&(dt||Tn.type!=="element"||Tn.tagName!=="p")&&At.push({type:"text",value:`
`});const $n={type:"element",tagName:"li",properties:vt,children:At};return he.patch(Me,$n),he.applyData(Me,$n)}function vs(he){let Me=!1;if(he.type==="list"){Me=he.spread||!1;const Re=he.children;let He=-1;for(;!Me&&++He<Re.length;)Me=ea(Re[He])}return Me}function ea(he){const Me=he.spread;return Me==null?he.children.length>1:Me}function No(he,Me){const Re={},He=he.all(Me);let dt=-1;for(typeof Me.start=="number"&&Me.start!==1&&(Re.start=Me.start);++dt<He.length;){const At=He[dt];if(At.type==="element"&&At.tagName==="li"&&At.properties&&Array.isArray(At.properties.className)&&At.properties.className.includes("task-list-item")){Re.className=["contains-task-list"];break}}const vt={type:"element",tagName:Me.ordered?"ol":"ul",properties:Re,children:he.wrap(He,!0)};return he.patch(Me,vt),he.applyData(Me,vt)}function Ba(he,Me){const Re={type:"element",tagName:"p",properties:{},children:he.all(Me)};return he.patch(Me,Re),he.applyData(Me,Re)}function bs(he,Me){const Re={type:"root",children:he.wrap(he.all(Me))};return he.patch(Me,Re),he.applyData(Me,Re)}function ys(he,Me){const Re={type:"element",tagName:"strong",properties:{},children:he.all(Me)};return he.patch(Me,Re),he.applyData(Me,Re)}function qs(he,Me){const Re=he.all(Me),He=Re.shift(),dt=[];if(He){const At={type:"element",tagName:"thead",properties:{},children:he.wrap([He],!0)};he.patch(Me.children[0],At),dt.push(At)}if(Re.length>0){const At={type:"element",tagName:"tbody",properties:{},children:he.wrap(Re,!0)},Jt=nn(Me.children[1]),Tn=wt(Me.children[Me.children.length-1]);Jt&&Tn&&(At.position={start:Jt,end:Tn}),dt.push(At)}const vt={type:"element",tagName:"table",properties:{},children:he.wrap(dt,!0)};return he.patch(Me,vt),he.applyData(Me,vt)}function _o(he,Me,Re){const He=Re?Re.children:void 0,vt=(He?He.indexOf(Me):1)===0?"th":"td",At=Re&&Re.type==="table"?Re.align:void 0,Jt=At?At.length:Me.children.length;let Tn=-1;const $n=[];for(;++Tn<Jt;){const ci=Me.children[Tn],si={},Yn=At?At[Tn]:void 0;Yn&&(si.align=Yn);let Ur={type:"element",tagName:vt,properties:si,children:[]};ci&&(Ur.children=he.all(ci),he.patch(ci,Ur),Ur=he.applyData(ci,Ur)),$n.push(Ur)}const Cn={type:"element",tagName:"tr",properties:{},children:he.wrap($n,!0)};return he.patch(Me,Cn),he.applyData(Me,Cn)}function wi(he,Me){const Re={type:"element",tagName:"td",properties:{},children:he.all(Me)};return he.patch(Me,Re),he.applyData(Me,Re)}const er=9,qr=32;function La(he){const Me=String(he),Re=/\r?\n|\r/g;let He=Re.exec(Me),dt=0;const vt=[];for(;He;)vt.push(ho(Me.slice(dt,He.index),dt>0,!0),He[0]),dt=He.index+He[0].length,He=Re.exec(Me);return vt.push(ho(Me.slice(dt),dt>0,!1)),vt.join("")}function ho(he,Me,Re){let He=0,dt=he.length;if(Me){let vt=he.codePointAt(He);for(;vt===er||vt===qr;)He++,vt=he.codePointAt(He)}if(Re){let vt=he.codePointAt(dt-1);for(;vt===er||vt===qr;)dt--,vt=he.codePointAt(dt-1)}return dt>He?he.slice(He,dt):""}function Yo(he,Me){const Re={type:"text",value:La(String(Me.value))};return he.patch(Me,Re),he.applyData(Me,Re)}function Sa(he,Me){const Re={type:"element",tagName:"hr",properties:{},children:[]};return he.patch(Me,Re),he.applyData(Me,Re)}const ja={blockquote:Zo,break:Hr,code:uo,delete:vr,emphasis:cr,footnoteReference:to,heading:Co,html:Ro,imageReference:Or,image:Qo,inlineCode:Jo,linkReference:Da,link:la,listItem:Ms,list:No,paragraph:Ba,root:bs,strong:ys,table:qs,tableCell:wi,tableRow:_o,text:Yo,thematicBreak:Sa,toml:xl,yaml:xl,definition:xl,footnoteDefinition:xl};function xl(){}const al={}.hasOwnProperty,ql={};function Ya(he,Me){const Re=Me||ql,He=new Map,dt=new Map,vt=new Map,At=Ys(Ys({},ja),Re.handlers),Jt={all:$n,applyData:sl,definitionById:He,footnoteById:dt,footnoteCounts:vt,footnoteOrder:[],handlers:At,one:Tn,options:Re,patch:_l,wrap:Hc};return mo(he,function(Cn){if(Cn.type==="definition"||Cn.type==="footnoteDefinition"){const ci=Cn.type==="definition"?He:dt,si=String(Cn.identifier).toUpperCase();ci.has(si)||ci.set(si,Cn)}}),Jt;function Tn(Cn,ci){const si=Cn.type,Yn=Jt.handlers[si];if(al.call(Jt.handlers,si)&&Yn)return Yn(Jt,Cn,ci);if(Jt.options.passThrough&&Jt.options.passThrough.includes(si)){if("children"in Cn){const ie=Cn,{children:ae}=ie,fe=E1(ie,["children"]),pe=rn(fe);return pe.children=Jt.all(Cn),pe}return rn(Cn)}return(Jt.options.unknownHandler||Ml)(Jt,Cn,ci)}function $n(Cn){const ci=[];if("children"in Cn){const si=Cn.children;let Yn=-1;for(;++Yn<si.length;){const Ur=Jt.one(si[Yn],Cn);if(Ur){if(Yn&&si[Yn-1].type==="break"&&(!Array.isArray(Ur)&&Ur.type==="text"&&(Ur.value=Za(Ur.value)),!Array.isArray(Ur)&&Ur.type==="element")){const ie=Ur.children[0];ie&&ie.type==="text"&&(ie.value=Za(ie.value))}Array.isArray(Ur)?ci.push(...Ur):ci.push(Ur)}}}return ci}}function _l(he,Me){he.position&&(Me.position=Zn(he))}function sl(he,Me){let Re=Me;if(he&&he.data){const He=he.data.hName,dt=he.data.hChildren,vt=he.data.hProperties;if(typeof He=="string")if(Re.type==="element")Re.tagName=He;else{const At="children"in Re?Re.children:[Re];Re={type:"element",tagName:He,properties:{},children:At}}Re.type==="element"&&vt&&Object.assign(Re.properties,rn(vt)),"children"in Re&&Re.children&&dt!==null&&dt!==void 0&&(Re.children=dt)}return Re}function Ml(he,Me){const Re=Me.data||{},He="value"in Me&&!(al.call(Re,"hProperties")||al.call(Re,"hChildren"))?{type:"text",value:Me.value}:{type:"element",tagName:"div",properties:{},children:he.all(Me)};return he.patch(Me,He),he.applyData(Me,He)}function Hc(he,Me){const Re=[];let He=-1;for(Me&&Re.push({type:"text",value:`
`});++He<he.length;)He&&Re.push({type:"text",value:`
`}),Re.push(he[He]);return Me&&he.length>0&&Re.push({type:"text",value:`
`}),Re}function Za(he){let Me=0,Re=he.charCodeAt(Me);for(;Re===9||Re===32;)Me++,Re=he.charCodeAt(Me);return he.slice(Me)}function as(he,Me){const Re=Ya(he,Me),He=Re.one(he,void 0),dt=ai(Re),vt=Array.isArray(He)?{type:"root",children:He}:He||{type:"root",children:[]};return dt&&("children"in vt,vt.children.push({type:"text",value:`
`},dt)),vt}function Ss(he,Me){return he&&"run"in he?function(Re,He){return C1(this,null,function*(){const dt=as(Re,Ys({file:He},Me));yield he.run(dt,He)})}:function(Re,He){return as(Re,Ys({file:He},he||Me))}}function Vs(he){if(he)throw he}var dl=oe(58847);function xa(he){if(typeof he!="object"||he===null)return!1;const Me=Object.getPrototypeOf(he);return(Me===null||Me===Object.prototype||Object.getPrototypeOf(Me)===null)&&!(Symbol.toStringTag in he)&&!(Symbol.iterator in he)}function ws(){const he=[],Me={run:Re,use:He};return Me;function Re(...dt){let vt=-1;const At=dt.pop();if(typeof At!="function")throw new TypeError("Expected function as last argument, not "+At);Jt(null,...dt);function Jt(Tn,...$n){const Cn=he[++vt];let ci=-1;if(Tn){At(Tn);return}for(;++ci<dt.length;)($n[ci]===null||$n[ci]===void 0)&&($n[ci]=dt[ci]);dt=$n,Cn?Ll(Cn,Jt)(...$n):At(null,...$n)}}function He(dt){if(typeof dt!="function")throw new TypeError("Expected `middelware` to be a function, not "+dt);return he.push(dt),Me}}function Ll(he,Me){let Re;return He;function He(...At){const Jt=he.length>At.length;let Tn;Jt&&At.push(dt);try{Tn=he.apply(this,At)}catch($n){const Cn=$n;if(Jt&&Re)throw Cn;return dt(Cn)}Jt||(Tn&&Tn.then&&typeof Tn.then=="function"?Tn.then(vt,dt):Tn instanceof Error?dt(Tn):vt(Tn))}function dt(At,...Jt){Re||(Re=!0,Me(At,...Jt))}function vt(At){dt(null,At)}}const hl={basename:Qu,dirname:Iu,extname:lc,join:uc,sep:"/"};function Qu(he,Me){if(Me!==void 0&&typeof Me!="string")throw new TypeError('"ext" argument must be a string');bl(he);let Re=0,He=-1,dt=he.length,vt;if(Me===void 0||Me.length===0||Me.length>he.length){for(;dt--;)if(he.codePointAt(dt)===47){if(vt){Re=dt+1;break}}else He<0&&(vt=!0,He=dt+1);return He<0?"":he.slice(Re,He)}if(Me===he)return"";let At=-1,Jt=Me.length-1;for(;dt--;)if(he.codePointAt(dt)===47){if(vt){Re=dt+1;break}}else At<0&&(vt=!0,At=dt+1),Jt>-1&&(he.codePointAt(dt)===Me.codePointAt(Jt--)?Jt<0&&(He=dt):(Jt=-1,He=At));return Re===He?He=At:He<0&&(He=he.length),he.slice(Re,He)}function Iu(he){if(bl(he),he.length===0)return".";let Me=-1,Re=he.length,He;for(;--Re;)if(he.codePointAt(Re)===47){if(He){Me=Re;break}}else He||(He=!0);return Me<0?he.codePointAt(0)===47?"/":".":Me===1&&he.codePointAt(0)===47?"//":he.slice(0,Me)}function lc(he){bl(he);let Me=he.length,Re=-1,He=0,dt=-1,vt=0,At;for(;Me--;){const Jt=he.codePointAt(Me);if(Jt===47){if(At){He=Me+1;break}continue}Re<0&&(At=!0,Re=Me+1),Jt===46?dt<0?dt=Me:vt!==1&&(vt=1):dt>-1&&(vt=-1)}return dt<0||Re<0||vt===0||vt===1&&dt===Re-1&&dt===He+1?"":he.slice(dt,Re)}function uc(...he){let Me=-1,Re;for(;++Me<he.length;)bl(he[Me]),he[Me]&&(Re=Re===void 0?he[Me]:Re+"/"+he[Me]);return Re===void 0?".":Ju(Re)}function Ju(he){bl(he);const Me=he.codePointAt(0)===47;let Re=qa(he,!Me);return Re.length===0&&!Me&&(Re="."),Re.length>0&&he.codePointAt(he.length-1)===47&&(Re+="/"),Me?"/"+Re:Re}function qa(he,Me){let Re="",He=0,dt=-1,vt=0,At=-1,Jt,Tn;for(;++At<=he.length;){if(At<he.length)Jt=he.codePointAt(At);else{if(Jt===47)break;Jt=47}if(Jt===47){if(!(dt===At-1||vt===1))if(dt!==At-1&&vt===2){if(Re.length<2||He!==2||Re.codePointAt(Re.length-1)!==46||Re.codePointAt(Re.length-2)!==46){if(Re.length>2){if(Tn=Re.lastIndexOf("/"),Tn!==Re.length-1){Tn<0?(Re="",He=0):(Re=Re.slice(0,Tn),He=Re.length-1-Re.lastIndexOf("/")),dt=At,vt=0;continue}}else if(Re.length>0){Re="",He=0,dt=At,vt=0;continue}}Me&&(Re=Re.length>0?Re+"/..":"..",He=2)}else Re.length>0?Re+="/"+he.slice(dt+1,At):Re=he.slice(dt+1,At),He=At-dt-1;dt=At,vt=0}else Jt===46&&vt>-1?vt++:vt=-1}return Re}function bl(he){if(typeof he!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(he))}const Ks={cwd:Es};function Es(){return"/"}function fu(he){return!!(he!==null&&typeof he=="object"&&"href"in he&&he.href&&"protocol"in he&&he.protocol&&he.auth===void 0)}function id(he){if(typeof he=="string")he=new URL(he);else if(!fu(he)){const Me=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+he+"`");throw Me.code="ERR_INVALID_ARG_TYPE",Me}if(he.protocol!=="file:"){const Me=new TypeError("The URL must be of scheme file");throw Me.code="ERR_INVALID_URL_SCHEME",Me}return cc(he)}function cc(he){if(he.hostname!==""){const He=new TypeError('File URL host must be "localhost" or empty on darwin');throw He.code="ERR_INVALID_FILE_URL_HOST",He}const Me=he.pathname;let Re=-1;for(;++Re<Me.length;)if(Me.codePointAt(Re)===37&&Me.codePointAt(Re+1)===50){const He=Me.codePointAt(Re+2);if(He===70||He===102){const dt=new TypeError("File URL path must not include encoded / characters");throw dt.code="ERR_INVALID_FILE_URL_PATH",dt}}return decodeURIComponent(Me)}const dc=["history","path","basename","stem","extname","dirname"];class Mc{constructor(Me){let Re;Me?fu(Me)?Re={path:Me}:typeof Me=="string"||wl(Me)?Re={value:Me}:Re=Me:Re={},this.cwd="cwd"in Re?"":Ks.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let He=-1;for(;++He<dc.length;){const vt=dc[He];vt in Re&&Re[vt]!==void 0&&Re[vt]!==null&&(this[vt]=vt==="history"?[...Re[vt]]:Re[vt])}let dt;for(dt in Re)dc.includes(dt)||(this[dt]=Re[dt])}get basename(){return typeof this.path=="string"?hl.basename(this.path):void 0}set basename(Me){Ua(Me,"basename"),ou(Me,"basename"),this.path=hl.join(this.dirname||"",Me)}get dirname(){return typeof this.path=="string"?hl.dirname(this.path):void 0}set dirname(Me){Cs(this.basename,"dirname"),this.path=hl.join(Me||"",this.basename)}get extname(){return typeof this.path=="string"?hl.extname(this.path):void 0}set extname(Me){if(ou(Me,"extname"),Cs(this.dirname,"extname"),Me){if(Me.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(Me.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=hl.join(this.dirname,this.stem+(Me||""))}get path(){return this.history[this.history.length-1]}set path(Me){fu(Me)&&(Me=id(Me)),Ua(Me,"path"),this.path!==Me&&this.history.push(Me)}get stem(){return typeof this.path=="string"?hl.basename(this.path,this.extname):void 0}set stem(Me){Ua(Me,"stem"),ou(Me,"stem"),this.path=hl.join(this.dirname||"",Me+(this.extname||""))}fail(Me,Re,He){const dt=this.message(Me,Re,He);throw dt.fatal=!0,dt}info(Me,Re,He){const dt=this.message(Me,Re,He);return dt.fatal=void 0,dt}message(Me,Re,He){const dt=new Ri(Me,Re,He);return this.path&&(dt.name=this.path+":"+dt.name,dt.file=this.path),dt.fatal=!1,this.messages.push(dt),dt}toString(Me){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(Me||void 0).decode(this.value)}}function ou(he,Me){if(he&&he.includes(hl.sep))throw new Error("`"+Me+"` cannot be a path: did not expect `"+hl.sep+"`")}function Ua(he,Me){if(!he)throw new Error("`"+Me+"` cannot be empty")}function Cs(he,Me){if(!he)throw new Error("Setting `"+Me+"` requires `path` to be set too")}function wl(he){return!!(he&&typeof he=="object"&&"byteLength"in he&&"byteOffset"in he)}const Ls=function(he){const He=this.constructor.prototype,dt=He[he],vt=function(){return dt.apply(vt,arguments)};return Object.setPrototypeOf(vt,He),vt},_a={}.hasOwnProperty;class gl extends Ls{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=ws()}copy(){const Me=new gl;let Re=-1;for(;++Re<this.attachers.length;){const He=this.attachers[Re];Me.use(...He)}return Me.data(dl(!0,{},this.namespace)),Me}data(Me,Re){return typeof Me=="string"?arguments.length===2?(pn("data",this.frozen),this.namespace[Me]=Re,this):_a.call(this.namespace,Me)&&this.namespace[Me]||void 0:Me?(pn("data",this.frozen),this.namespace=Me,this):this.namespace}freeze(){if(this.frozen)return this;const Me=this;for(;++this.freezeIndex<this.attachers.length;){const[Re,...He]=this.attachers[this.freezeIndex];if(He[0]===!1)continue;He[0]===!0&&(He[0]=void 0);const dt=Re.call(Me,...He);typeof dt=="function"&&this.transformers.use(dt)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(Me){this.freeze();const Re=_d(Me),He=this.parser||this.Parser;return qu("parse",He),He(String(Re),Re)}process(Me,Re){const He=this;return this.freeze(),qu("process",this.parser||this.Parser),sh("process",this.compiler||this.Compiler),Re?dt(void 0,Re):new Promise(dt);function dt(vt,At){const Jt=_d(Me),Tn=He.parse(Jt);He.run(Tn,Jt,function(Cn,ci,si){if(Cn||!ci||!si)return $n(Cn);const Yn=ci,Ur=He.stringify(Yn,si);kd(Ur)?si.value=Ur:si.result=Ur,$n(Cn,si)});function $n(Cn,ci){Cn||!ci?At(Cn):vt?vt(ci):Re(void 0,ci)}}}processSync(Me){let Re=!1,He;return this.freeze(),qu("processSync",this.parser||this.Parser),sh("processSync",this.compiler||this.Compiler),this.process(Me,dt),Lc("processSync","process",Re),He;function dt(vt,At){Re=!0,Vs(vt),He=At}}run(Me,Re,He){rd(Me),this.freeze();const dt=this.transformers;return!He&&typeof Re=="function"&&(He=Re,Re=void 0),He?vt(void 0,He):new Promise(vt);function vt(At,Jt){const Tn=_d(Re);dt.run(Me,Tn,$n);function $n(Cn,ci,si){const Yn=ci||Me;Cn?Jt(Cn):At?At(Yn):He(void 0,Yn,si)}}}runSync(Me,Re){let He=!1,dt;return this.run(Me,Re,vt),Lc("runSync","run",He),dt;function vt(At,Jt){Vs(At),dt=Jt,He=!0}}stringify(Me,Re){this.freeze();const He=_d(Re),dt=this.compiler||this.Compiler;return sh("stringify",dt),rd(Me),dt(Me,He)}use(Me,...Re){const He=this.attachers,dt=this.namespace;if(pn("use",this.frozen),Me!=null)if(typeof Me=="function")Tn(Me,Re);else if(typeof Me=="object")Array.isArray(Me)?Jt(Me):At(Me);else throw new TypeError("Expected usable value, not `"+Me+"`");return this;function vt($n){if(typeof $n=="function")Tn($n,[]);else if(typeof $n=="object")if(Array.isArray($n)){const[Cn,...ci]=$n;Tn(Cn,ci)}else At($n);else throw new TypeError("Expected usable value, not `"+$n+"`")}function At($n){if(!("plugins"in $n)&&!("settings"in $n))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");Jt($n.plugins),$n.settings&&(dt.settings=dl(!0,dt.settings,$n.settings))}function Jt($n){let Cn=-1;if($n!=null)if(Array.isArray($n))for(;++Cn<$n.length;){const ci=$n[Cn];vt(ci)}else throw new TypeError("Expected a list of plugins, not `"+$n+"`")}function Tn($n,Cn){let ci=-1,si=-1;for(;++ci<He.length;)if(He[ci][0]===$n){si=ci;break}if(si===-1)He.push([$n,...Cn]);else if(Cn.length>0){let[Yn,...Ur]=Cn;const ie=He[si][1];xa(ie)&&xa(Yn)&&(Yn=dl(!0,ie,Yn)),He[si]=[$n,Yn,...Ur]}}}}const pu=new gl().freeze();function qu(he,Me){if(typeof Me!="function")throw new TypeError("Cannot `"+he+"` without `parser`")}function sh(he,Me){if(typeof Me!="function")throw new TypeError("Cannot `"+he+"` without `compiler`")}function pn(he,Me){if(Me)throw new Error("Cannot call `"+he+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function rd(he){if(!xa(he)||typeof he.type!="string")throw new TypeError("Expected node, got `"+he+"`")}function Lc(he,Me,Re){if(!Re)throw new Error("`"+he+"` finished async. Use `"+Me+"` instead")}function _d(he){return Gd(he)?he:new Mc(he)}function Gd(he){return!!(he&&typeof he=="object"&&"message"in he&&"messages"in he)}function kd(he){return typeof he=="string"||Lh(he)}function Lh(he){return!!(he&&typeof he=="object"&&"byteLength"in he&&"byteOffset"in he)}const cf="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Gl=[],Hd={allowDangerousHtml:!0},Th=/^(https?|ircs?|mailto|xmpp)$/i,lh=[{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 rg(he){const Me=he.allowedElements,Re=he.allowElement,He=he.children||"",dt=he.className,vt=he.components,At=he.disallowedElements,Jt=he.rehypePlugins||Gl,Tn=he.remarkPlugins||Gl,$n=he.remarkRehypeOptions?Ys(Ys({},he.remarkRehypeOptions),Hd):Hd,Cn=he.skipHtml,ci=he.unwrapDisallowed,si=he.urlTransform||Og,Yn=pu().use(Ea).use(Tn).use(Ss,$n).use(Jt),Ur=new Mc;typeof He=="string"?Ur.value=He:(""+He,void 0),Me&&At&&void 0;for(const pe of lh)Object.hasOwn(he,pe.from)&&(""+pe.from+(pe.to?"use `"+pe.to+"` instead":"remove it")+cf+pe.id,void 0);const ie=Yn.parse(Ur);let ae=Yn.runSync(ie,Ur);return dt&&(ae={type:"element",tagName:"div",properties:{className:dt},children:ae.type==="root"?ae.children:[ae]}),mo(ae,fe),Yi(ae,{Fragment:ni.Fragment,components:vt,ignoreInvalidStyle:!0,jsx:ni.jsx,jsxs:ni.jsxs,passKeys:!0,passNode:!0});function fe(pe,ye,Be){if(pe.type==="raw"&&Be&&typeof ye=="number")return Cn?Be.children.splice(ye,1):Be.children[ye]={type:"text",value:pe.value},ye;if(pe.type==="element"){let Xe;for(Xe in Ln)if(Object.hasOwn(Ln,Xe)&&Object.hasOwn(pe.properties,Xe)){const qe=pe.properties[Xe],ot=Ln[Xe];(ot===null||ot.includes(pe.tagName))&&(pe.properties[Xe]=si(String(qe||""),Xe,pe))}}if(pe.type==="element"){let Xe=Me?!Me.includes(pe.tagName):At?At.includes(pe.tagName):!1;if(!Xe&&Re&&typeof ye=="number"&&(Xe=!Re(pe,ye,Be)),Xe&&Be&&typeof ye=="number")return ci&&pe.children?Be.children.splice(ye,1,...pe.children):Be.children.splice(ye,1),ye}}}function Og(he){const Me=he.indexOf(":"),Re=he.indexOf("?"),He=he.indexOf("#"),dt=he.indexOf("/");return Me===-1||dt!==-1&&Me>dt||Re!==-1&&Me>Re||He!==-1&&Me>He||Th.test(he.slice(0,Me))?he:""}var og=oe(19149),Wd=oe(26390),ku=oe(80962),Zd=oe(5891);function Ih(he,Me){var Re=Object.keys(he);if(Object.getOwnPropertySymbols){var He=Object.getOwnPropertySymbols(he);Me&&(He=He.filter(function(dt){return Object.getOwnPropertyDescriptor(he,dt).enumerable})),Re.push.apply(Re,He)}return Re}function mu(he){for(var Me=1;Me<arguments.length;Me++){var Re=arguments[Me]!=null?arguments[Me]:{};Me%2?Ih(Object(Re),!0).forEach(function(He){(0,ku.Z)(he,He,Re[He])}):Object.getOwnPropertyDescriptors?Object.defineProperties(he,Object.getOwnPropertyDescriptors(Re)):Ih(Object(Re)).forEach(function(He){Object.defineProperty(he,He,Object.getOwnPropertyDescriptor(Re,He))})}return he}function vd(he){var Me=he.length;if(Me===0||Me===1)return he;if(Me===2)return[he[0],he[1],"".concat(he[0],".").concat(he[1]),"".concat(he[1],".").concat(he[0])];if(Me===3)return[he[0],he[1],he[2],"".concat(he[0],".").concat(he[1]),"".concat(he[0],".").concat(he[2]),"".concat(he[1],".").concat(he[0]),"".concat(he[1],".").concat(he[2]),"".concat(he[2],".").concat(he[0]),"".concat(he[2],".").concat(he[1]),"".concat(he[0],".").concat(he[1],".").concat(he[2]),"".concat(he[0],".").concat(he[2],".").concat(he[1]),"".concat(he[1],".").concat(he[0],".").concat(he[2]),"".concat(he[1],".").concat(he[2],".").concat(he[0]),"".concat(he[2],".").concat(he[0],".").concat(he[1]),"".concat(he[2],".").concat(he[1],".").concat(he[0])];if(Me>=4)return[he[0],he[1],he[2],he[3],"".concat(he[0],".").concat(he[1]),"".concat(he[0],".").concat(he[2]),"".concat(he[0],".").concat(he[3]),"".concat(he[1],".").concat(he[0]),"".concat(he[1],".").concat(he[2]),"".concat(he[1],".").concat(he[3]),"".concat(he[2],".").concat(he[0]),"".concat(he[2],".").concat(he[1]),"".concat(he[2],".").concat(he[3]),"".concat(he[3],".").concat(he[0]),"".concat(he[3],".").concat(he[1]),"".concat(he[3],".").concat(he[2]),"".concat(he[0],".").concat(he[1],".").concat(he[2]),"".concat(he[0],".").concat(he[1],".").concat(he[3]),"".concat(he[0],".").concat(he[2],".").concat(he[1]),"".concat(he[0],".").concat(he[2],".").concat(he[3]),"".concat(he[0],".").concat(he[3],".").concat(he[1]),"".concat(he[0],".").concat(he[3],".").concat(he[2]),"".concat(he[1],".").concat(he[0],".").concat(he[2]),"".concat(he[1],".").concat(he[0],".").concat(he[3]),"".concat(he[1],".").concat(he[2],".").concat(he[0]),"".concat(he[1],".").concat(he[2],".").concat(he[3]),"".concat(he[1],".").concat(he[3],".").concat(he[0]),"".concat(he[1],".").concat(he[3],".").concat(he[2]),"".concat(he[2],".").concat(he[0],".").concat(he[1]),"".concat(he[2],".").concat(he[0],".").concat(he[3]),"".concat(he[2],".").concat(he[1],".").concat(he[0]),"".concat(he[2],".").concat(he[1],".").concat(he[3]),"".concat(he[2],".").concat(he[3],".").concat(he[0]),"".concat(he[2],".").concat(he[3],".").concat(he[1]),"".concat(he[3],".").concat(he[0],".").concat(he[1]),"".concat(he[3],".").concat(he[0],".").concat(he[2]),"".concat(he[3],".").concat(he[1],".").concat(he[0]),"".concat(he[3],".").concat(he[1],".").concat(he[2]),"".concat(he[3],".").concat(he[2],".").concat(he[0]),"".concat(he[3],".").concat(he[2],".").concat(he[1]),"".concat(he[0],".").concat(he[1],".").concat(he[2],".").concat(he[3]),"".concat(he[0],".").concat(he[1],".").concat(he[3],".").concat(he[2]),"".concat(he[0],".").concat(he[2],".").concat(he[1],".").concat(he[3]),"".concat(he[0],".").concat(he[2],".").concat(he[3],".").concat(he[1]),"".concat(he[0],".").concat(he[3],".").concat(he[1],".").concat(he[2]),"".concat(he[0],".").concat(he[3],".").concat(he[2],".").concat(he[1]),"".concat(he[1],".").concat(he[0],".").concat(he[2],".").concat(he[3]),"".concat(he[1],".").concat(he[0],".").concat(he[3],".").concat(he[2]),"".concat(he[1],".").concat(he[2],".").concat(he[0],".").concat(he[3]),"".concat(he[1],".").concat(he[2],".").concat(he[3],".").concat(he[0]),"".concat(he[1],".").concat(he[3],".").concat(he[0],".").concat(he[2]),"".concat(he[1],".").concat(he[3],".").concat(he[2],".").concat(he[0]),"".concat(he[2],".").concat(he[0],".").concat(he[1],".").concat(he[3]),"".concat(he[2],".").concat(he[0],".").concat(he[3],".").concat(he[1]),"".concat(he[2],".").concat(he[1],".").concat(he[0],".").concat(he[3]),"".concat(he[2],".").concat(he[1],".").concat(he[3],".").concat(he[0]),"".concat(he[2],".").concat(he[3],".").concat(he[0],".").concat(he[1]),"".concat(he[2],".").concat(he[3],".").concat(he[1],".").concat(he[0]),"".concat(he[3],".").concat(he[0],".").concat(he[1],".").concat(he[2]),"".concat(he[3],".").concat(he[0],".").concat(he[2],".").concat(he[1]),"".concat(he[3],".").concat(he[1],".").concat(he[0],".").concat(he[2]),"".concat(he[3],".").concat(he[1],".").concat(he[2],".").concat(he[0]),"".concat(he[3],".").concat(he[2],".").concat(he[0],".").concat(he[1]),"".concat(he[3],".").concat(he[2],".").concat(he[1],".").concat(he[0])]}var yd={};function Dd(he){if(he.length===0||he.length===1)return he;var Me=he.join(".");return yd[Me]||(yd[Me]=vd(he)),yd[Me]}function vu(he){var Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Re=arguments.length>2?arguments[2]:void 0,He=he.filter(function(vt){return vt!=="token"}),dt=Dd(He);return dt.reduce(function(vt,At){return mu(mu({},vt),Re[At])},Me)}function uh(he){return he.join(" ")}function kh(he,Me){var Re=0;return function(He){return Re+=1,He.map(function(dt,vt){return Du({node:dt,stylesheet:he,useInlineStyles:Me,key:"code-segment-".concat(Re,"-").concat(vt)})})}}function Du(he){var Me=he.node,Re=he.stylesheet,He=he.style,dt=He===void 0?{}:He,vt=he.useInlineStyles,At=he.key,Jt=Me.properties,Tn=Me.type,$n=Me.tagName,Cn=Me.value;if(Tn==="text")return Cn;if($n){var ci=kh(Re,vt),si;if(!vt)si=mu(mu({},Jt),{},{className:uh(Jt.className)});else{var Yn=Object.keys(Re).reduce(function(fe,pe){return pe.split(".").forEach(function(ye){fe.includes(ye)||fe.push(ye)}),fe},[]),Ur=Jt.className&&Jt.className.includes("token")?["token"]:[],ie=Jt.className&&Ur.concat(Jt.className.filter(function(fe){return!Yn.includes(fe)}));si=mu(mu({},Jt),{},{className:uh(ie)||void 0,style:vu(Jt.className,Object.assign({},Jt.style,dt),Re)})}var ae=ci(Me.children);return we.createElement($n,(0,Zd.Z)({key:At},si),ae)}}var Vd=function(he,Me){var Re=he.listLanguages();return Re.indexOf(Me)!==-1},Dh=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function ch(he,Me){var Re=Object.keys(he);if(Object.getOwnPropertySymbols){var He=Object.getOwnPropertySymbols(he);Me&&(He=He.filter(function(dt){return Object.getOwnPropertyDescriptor(he,dt).enumerable})),Re.push.apply(Re,He)}return Re}function Ou(he){for(var Me=1;Me<arguments.length;Me++){var Re=arguments[Me]!=null?arguments[Me]:{};Me%2?ch(Object(Re),!0).forEach(function(He){(0,ku.Z)(he,He,Re[He])}):Object.getOwnPropertyDescriptors?Object.defineProperties(he,Object.getOwnPropertyDescriptors(Re)):ch(Object(Re)).forEach(function(He){Object.defineProperty(he,He,Object.getOwnPropertyDescriptor(Re,He))})}return he}var au=/\n/g;function Oh(he){return he.match(au)}function El(he){var Me=he.lines,Re=he.startingLineNumber,He=he.style;return Me.map(function(dt,vt){var At=vt+Re;return we.createElement("span",{key:"line-".concat(vt),className:"react-syntax-highlighter-line-number",style:typeof He=="function"?He(At):He},"".concat(At,`
`))})}function $a(he){var Me=he.codeString,Re=he.codeStyle,He=he.containerStyle,dt=He===void 0?{float:"left",paddingRight:"10px"}:He,vt=he.numberStyle,At=vt===void 0?{}:vt,Jt=he.startingLineNumber;return we.createElement("code",{style:Object.assign({},Re,dt)},El({lines:Me.replace(/\n$/,"").split(`
`),style:At,startingLineNumber:Jt}))}function Rs(he){return"".concat(he.toString().length,".25em")}function Zl(he,Me){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(he),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:Me},children:[{type:"text",value:he}]}}function ec(he,Me,Re){var He={display:"inline-block",minWidth:Rs(Re),paddingRight:"1em",textAlign:"right",userSelect:"none"},dt=typeof he=="function"?he(Me):he,vt=Ou(Ou({},He),dt);return vt}function yu(he){var Me=he.children,Re=he.lineNumber,He=he.lineNumberStyle,dt=he.largestLineNumber,vt=he.showInlineLineNumbers,At=he.lineProps,Jt=At===void 0?{}:At,Tn=he.className,$n=Tn===void 0?[]:Tn,Cn=he.showLineNumbers,ci=he.wrapLongLines,si=he.wrapLines,Yn=si===void 0?!1:si,Ur=Yn?Ou({},typeof Jt=="function"?Jt(Re):Jt):{};if(Ur.className=Ur.className?[].concat((0,Wd.Z)(Ur.className.trim().split(/\s+/)),(0,Wd.Z)($n)):$n,Re&&vt){var ie=ec(He,Re,dt);Me.unshift(Zl(Re,ie))}return ci&Cn&&(Ur.style=Ou({display:"flex"},Ur.style)),{type:"element",tagName:"span",properties:Ur,children:Me}}function dh(he){for(var Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],He=0;He<he.length;He++){var dt=he[He];if(dt.type==="text")Re.push(yu({children:[dt],className:(0,Wd.Z)(new Set(Me))}));else if(dt.children){var vt=Me.concat(dt.properties.className);dh(dt.children,vt).forEach(function(At){return Re.push(At)})}}return Re}function Sd(he,Me,Re,He,dt,vt,At,Jt,Tn){var $n,Cn=dh(he.value),ci=[],si=-1,Yn=0;function Ur(Xe,qe){var ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return yu({children:Xe,lineNumber:qe,lineNumberStyle:Jt,largestLineNumber:At,showInlineLineNumbers:dt,lineProps:Re,className:ot,showLineNumbers:He,wrapLongLines:Tn,wrapLines:Me})}function ie(Xe,qe){if(He&&qe&&dt){var ot=ec(Jt,qe,At);Xe.unshift(Zl(qe,ot))}return Xe}function ae(Xe,qe){var ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return Me||ot.length>0?Ur(Xe,qe,ot):ie(Xe,qe)}for(var fe=function(){var qe=Cn[Yn],ot=qe.children[0].value,Tt=Oh(ot);if(Tt){var mn=ot.split(`
`);mn.forEach(function(Rt,Qn){var _n=He&&ci.length+vt,pi={type:"text",value:"".concat(Rt,`
`)};if(Qn===0){var Ci=Cn.slice(si+1,Yn).concat(yu({children:[pi],className:qe.properties.className})),ki=ae(Ci,_n);ci.push(ki)}else if(Qn===mn.length-1){var ar=Cn[Yn+1]&&Cn[Yn+1].children&&Cn[Yn+1].children[0],Nr={type:"text",value:"".concat(Rt)};if(ar){var Er=yu({children:[Nr],className:qe.properties.className});Cn.splice(Yn+1,0,Er)}else{var $r=[Nr],Hn=ae($r,_n,qe.properties.className);ci.push(Hn)}}else{var Cr=[pi],$o=ae(Cr,_n,qe.properties.className);ci.push($o)}}),si=Yn}Yn++};Yn<Cn.length;)fe();if(si!==Cn.length-1){var pe=Cn.slice(si+1,Cn.length);if(pe&&pe.length){var ye=He&&ci.length+vt,Be=ae(pe,ye);ci.push(Be)}}return Me?ci:($n=[]).concat.apply($n,ci)}function hh(he){var Me=he.rows,Re=he.stylesheet,He=he.useInlineStyles;return Me.map(function(dt,vt){return Du({node:dt,stylesheet:Re,useInlineStyles:He,key:"code-segement".concat(vt)})})}function hc(he){return he&&typeof he.highlightAuto!="undefined"}function od(he){var Me=he.astGenerator,Re=he.language,He=he.code,dt=he.defaultCodeValue;if(hc(Me)){var vt=Vd(Me,Re);return Re==="text"?{value:dt,language:"text"}:vt?Me.highlight(Re,He):Me.highlightAuto(He)}try{return Re&&Re!=="text"?{value:Me.highlight(He,Re)}:{value:dt}}catch(At){return{value:dt}}}function Rg(he,Me){return function(He){var dt=He.language,vt=He.children,At=He.style,Jt=At===void 0?Me:At,Tn=He.customStyle,$n=Tn===void 0?{}:Tn,Cn=He.codeTagProps,ci=Cn===void 0?{className:dt?"language-".concat(dt):void 0,style:Ou(Ou({},Jt['code[class*="language-"]']),Jt['code[class*="language-'.concat(dt,'"]')])}:Cn,si=He.useInlineStyles,Yn=si===void 0?!0:si,Ur=He.showLineNumbers,ie=Ur===void 0?!1:Ur,ae=He.showInlineLineNumbers,fe=ae===void 0?!0:ae,pe=He.startingLineNumber,ye=pe===void 0?1:pe,Be=He.lineNumberContainerStyle,Xe=He.lineNumberStyle,qe=Xe===void 0?{}:Xe,ot=He.wrapLines,Tt=He.wrapLongLines,mn=Tt===void 0?!1:Tt,Rt=He.lineProps,Qn=Rt===void 0?{}:Rt,_n=He.renderer,pi=He.PreTag,Ci=pi===void 0?"pre":pi,ki=He.CodeTag,ar=ki===void 0?"code":ki,Nr=He.code,Er=Nr===void 0?(Array.isArray(vt)?vt[0]:vt)||"":Nr,$r=He.astGenerator,Hn=(0,og.Z)(He,Dh);$r=$r||he;var Cr=ie?we.createElement($a,{containerStyle:Be,codeStyle:ci.style||{},numberStyle:qe,startingLineNumber:ye,codeString:Er}):null,$o=Jt.hljs||Jt['pre[class*="language-"]']||{backgroundColor:"#fff"},oi=hc($r)?"hljs":"prismjs",us=Yn?Object.assign({},Hn,{style:Object.assign({},$o,$n)}):Object.assign({},Hn,{className:Hn.className?"".concat(oi," ").concat(Hn.className):oi,style:Object.assign({},$n)});if(mn?ci.style=Ou({whiteSpace:"pre-wrap"},ci.style):ci.style=Ou({whiteSpace:"pre"},ci.style),!$r)return we.createElement(Ci,us,Cr,we.createElement(ar,ci,Er));(ot===void 0&&_n||mn)&&(ot=!0),_n=_n||hh;var Xa=[{type:"text",value:Er}],pl=od({astGenerator:$r,language:dt,code:Er,defaultCodeValue:Xa});pl.language===null&&(pl.value=Xa);var ml=pl.value.length;ml===1&&pl.value[0].type==="text"&&(ml=pl.value[0].value.split(`
`).length);var Va=ml+ye,ll=Sd(pl,ot,Qn,ie,fe,ye,Va,qe,mn);return we.createElement(Ci,us,we.createElement(ar,ci,!fe&&Cr,_n({rows:ll,stylesheet:Jt,useInlineStyles:Yn})))}}var Fg={'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"}},Bg=oe(11594),gh=oe.n(Bg),df=["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"],jg=Rg(gh(),Fg);jg.supportedLanguages=df;var hf=jg,ad={'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"}},zg=oe(56102),ag={wrp:"wrp___H70W8","file-list":"file-list___S5XYJ",ExtraEdit:"ExtraEdit___K6Xf2",btn:"btn___Yiu8q"},fh=oe(43604),xd=oe(58130),fl=oe(59301),sd=Object.defineProperty,Rh=Object.getOwnPropertySymbols,sg=Object.prototype.hasOwnProperty,gf=Object.prototype.propertyIsEnumerable,Ug=(he,Me,Re)=>Me in he?sd(he,Me,{enumerable:!0,configurable:!0,writable:!0,value:Re}):he[Me]=Re,_g=(he,Me)=>{for(var Re in Me||(Me={}))sg.call(Me,Re)&&Ug(he,Re,Me[Re]);if(Rh)for(var Re of Rh(Me))gf.call(Me,Re)&&Ug(he,Re,Me[Re]);return he},Lp=(he,Me)=>{var Re={};for(var He in he)sg.call(he,He)&&Me.indexOf(He)<0&&(Re[He]=he[He]);if(he!=null&&Rh)for(var He of Rh(he))Me.indexOf(He)<0&&gf.call(he,He)&&(Re[He]=he[He]);return Re},zf=(he,Me,Re)=>new Promise((He,dt)=>{var vt=Tn=>{try{Jt(Re.next(Tn))}catch($n){dt($n)}},At=Tn=>{try{Jt(Re.throw(Tn))}catch($n){dt($n)}},Jt=Tn=>Tn.done?He(Tn.value):Promise.resolve(Tn.value).then(vt,At);Jt((Re=Re.apply(he,Me)).next())}),Gg=({onCallback:he,scrollBox:Me,Data:Re,extraEdit:He,showEditableBox:dt,onRedraw:vt,loading:At,showPreference:Jt,onPreference:Tn})=>{var $n,Cn;const{allowCopy:ci=!1,fileList:si,hideTextEffect:Yn=!1,text:Ur=""}=Re,[ie,ae]=(0,we.useState)(""),[fe,pe]=(0,we.useState)(!0),ye=(0,we.useRef)(0),Be=(0,we.useRef)(!1);(0,we.useEffect)(()=>Ur?(pe(!0),Yn?ae(Ur):zf(void 0,null,function*(){for(let ot=0;ot<Ur.length;ot+=5){const Tt=Ur.substring(0,ot+5)+(Ur.length-1>ot+4?" __":"");ae(Tt),yield new Promise(mn=>setTimeout(mn,70))}pe(!1),he==null||he(Re)}),Me.current.addEventListener("wheel",Xe),()=>{var ot;ae(""),(ot=Me.current)==null||ot.removeEventListener("wheel",Xe)}):void 0,[]),(0,we.useEffect)(()=>{Me.current.scrollTo({top:Me.current.scrollHeight,behavior:"smooth"})},[]);const Xe=()=>{Be.current=!0};return fl.createElement("div",{className:`${ag.wrp} fadeIn animated`},Re.sender!=="AI"&&fl.createElement("p",{dangerouslySetInnerHTML:{__html:Ur.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\n/g,"<br />")}}),Re.sender==="AI"&&fl.createElement(rg,{components:{code(qe){var ot=qe,{node:Tt,inline:mn,className:Rt,children:Qn}=ot,_n=Lp(ot,["node","inline","className","children"]);const pi=/language-(\w+)/.exec(Rt||"");return Me.current.scrollHeight-ye.current>60&&!Be.current&&(Me.current.scrollTo({top:Me.current.scrollHeight,behavior:"smooth"}),ye.current=Me.current.scrollHeight),!mn&&pi?fl.createElement("div",{style:{position:"relative",minHeight:50}},fl.createElement(zg.CopyToClipboard,{text:String(Qn).replace(/\n$/,""),onCopy:()=>Ie.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},fl.createElement("button",{style:{position:"absolute",top:0,right:0,padding:"4px 8px",borderRadius:"0 0 0 5px",border:"none",backgroundColor:"#007bff",color:"#fff",cursor:"pointer",fontSize:"12px"}},"\u590D\u5236")),fl.createElement(hf,_g({style:ad,language:pi[1],PreTag:"div",showLineNumbers:!0,lineNumberStyle:{minWidth:"40px"}},_n),String(Qn||"").replace(/\n$/,""))):fl.createElement("code",_g({className:Rt},_n),Qn)}}},ie),si&&!fe&&fl.createElement(tt.Z,{className:`${ag["file-list"]} animated fadeIn`},fl.createElement(fh.Z,null,fl.createElement("img",{src:oe(90034)(`./${((Cn=($n=si==null?void 0:si.name)==null?void 0:$n.split("."))==null?void 0:Cn.pop())||"txt"}.png`),width:20,className:"mr10"})),fl.createElement(fh.Z,null,si==null?void 0:si.name,fl.createElement("br",null),(0,xd.RD)(si==null?void 0:si.size))),!fe&&fl.createElement("div",{className:ag.ExtraEdit},He==null?void 0:He(Re),ci&&fl.createElement(zg.CopyToClipboard,{text:String(ie).replace(/\n$/,""),onCopy:()=>Ie.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},fl.createElement(Je.Z,{title:"\u590D\u5236"},fl.createElement("i",{className:"iconfot icon-fuzhi8 font13"}))),Jt&&fl.createElement(fl.Fragment,null,fl.createElement(Je.Z,{title:"\u559C\u6B22"},fl.createElement("i",{style:Re!=null&&Re.like?{color:"#FA8D30"}:{},onClick:()=>Tn("like",!(Re!=null&&Re.like)),className:"iconfot icon-yijiejue font15"})),fl.createElement(Je.Z,{title:"\u4E0D\u559C\u6B22"},fl.createElement("i",{style:Re!=null&&Re.boring?{color:"#e86d7c"}:{},onClick:()=>Tn("boring",!(Re!=null&&Re.boring)),className:"iconfot icon-weijiejuezhengchang font15"}))),dt&&!At&&fl.createElement(Je.Z,{title:"\u91CD\u65B0\u751F\u6210"},fl.createElement("i",{onClick:vt,className:"iconfot icon-gengxin-genghuan-tihuan"}))))},ss={flex_box_center:"flex_box_center___GmElr",flex_space_between:"flex_space_between____pbWi",flex_box_vertical_center:"flex_box_vertical_center___COMWd",flex_box_center_end:"flex_box_center_end___lmAQf",flex_box_column:"flex_box_column___OJb7M","ai-wrp":"ai-wrp___AEGoS","loading-wanx":"loading-wanx___GtiUv","dot-flashing":"dot-flashing___xJNVn","dot-fade":"dot-fade___KWn1a","footer-container":"footer-container___HTy33",full:"full___dZLXo",lineFour:"lineFour___Lhbz5","input-container":"input-container___M88BT",fullIcon:"fullIcon___YWXTV","upload-btn":"upload-btn___fKRCG","send-btn":"send-btn___yOKG5","chat-container":"chat-container___pNTrU","chat-message":"chat-message___isXl8",title:"title___hXSVA",answerWrp:"answerWrp___COjAb",li:"li___PjMV3",img:"img___wZqEA",content:"content___OlYYG",user:"user___rbSU1",container:"container___hZAxN",item:"item___Z9j46",itemMask:"itemMask___pC6Cb",show:"show___WQ1Wl",mask:"mask___irVlm",disabledNumClass:"disabledNumClass___UIKcm",editable:"editable___CpDhE",text:"text___yWTCV",file:"file___fxAKb",action:"action___I2zGy"},Hg=oe(70635),Fh=oe(2119),pf=({positionX:he,src:Me,onClick:Re})=>{const He=(0,we.useRef)(null),[dt,vt]=(0,we.useState)(!1),[At,Jt]=(0,we.useState)({x:20,y:window.innerHeight*.62}),[Tn,$n]=(0,we.useState)({x:20,y:window.innerHeight*.62}),[Cn,ci]=(0,we.useState)({x:20,y:window.innerHeight*.62}),[si,Yn]=(0,we.useState)(!1);(0,we.useEffect)(()=>{const ae=()=>{Jt({x:20,y:window.innerHeight*.62})};return window.addEventListener("resize",ae),()=>{window.removeEventListener("resize",ae)}},[]),(0,we.useEffect)(()=>{const ae=pe=>{var ye;if(dt){const Be=pe.clientY-Cn.y;let Xe=Tn.y+Be;const qe=window.innerHeight-(((ye=He.current)==null?void 0:ye.offsetHeight)||0)-50,ot=50;Xe<ot&&(Xe=ot),Xe>qe&&(Xe=qe),requestAnimationFrame(()=>{Jt({x:20,y:Xe})}),Yn(!0)}},fe=()=>{vt(!1)};return document.addEventListener("mousemove",ae),document.addEventListener("mouseup",fe),()=>{document.removeEventListener("mousemove",ae),document.removeEventListener("mouseup",fe)}},[dt,Cn,Tn]);const Ur=ae=>{vt(!0),ci({x:ae.clientX,y:ae.clientY}),$n(At),Yn(!1)},ie=ae=>{vt(!1),!si&&Re&&Re(ae)};return we.createElement("div",{style:{position:"fixed",top:At.y,right:At.x,zIndex:100,cursor:dt?"grabbing":"grab"},onMouseDown:Ur,onMouseUp:ie,ref:He},we.createElement("img",{src:Me||"/images/ai_teacher.png",width:60,draggable:"false"}))},lg="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAYCAYAAAD+vg1LAAAAAXNSR0IArs4c6QAAA1FJREFUSEuVlctvVVUYxX/f7UNCkYdMHDA0caCJMcaQXB4VLX2IRJCgRtGg+EpMHJOIiQ8mxqF/AQOdmKJNqy0EJVrkWLWi8piYQIxNHAAhaINy4XxLzzl737t7uTV4Jvve7HPWXt/61re2vXJaHwi24ZgAORSrq1pVrKr+F48X++XGwv3wTi7x9uh6e89ePq2rcnrjhxEoXctDAnA8JIJ7JBMOQhwf3WDr7KVTasjpaTKKIAnTWEnJONmPv2NlZRVGdnC91e3Fk2pI9DTLDWUvYJ5I0qmiVDIg+3ij1e2Fn9XwAFxK6PyKKkmb+obfBaNS44J6YC7R5+L25oGQjfVb3fb8pIZ7xVjGJwfute1Vm27u2Tqupd0ruVT0KfQhG3vA6vbcjy0pwqkXSymjJJF5YHqDFLBEzq0p4/FNBfCJwLhdxwSwo2PCftnAwhqt77OJh6xuu39oafxfjalET1wRHBK1TiyZfVoAPztbSRE/7OSG1GILfJzYL5VicsDq9sz3bcBwXoUrFpu8fEHZBeE+d5YlA5RNbra67fqu1Txg4sO1tvXm/FC9NXJUayznt+YQGdlUAfz0t4nGhYpizhPGiV8X5kj0MSyXsyqpMDs8ZHV7qgCOPo7lL26t5tAs1mhEdnjY6vbkN4mPU8t1Am+3pHFJOUfcmMNZ7WIQce7ISAC+gXFrXFuRmTQzjPy7XSvZf+Es6lvFHbpGfmWec0uX0//5sE3ZE1nQOOSsxHwzwFo6opxewS3Blq9Nbrb3Bw9pL7BXYkWZIcYZOc8f3WIztvN4KzYNJkY3dHbF0JRu6+rmgmB6csD6Bw9pH+KdZnRWWTMv53dyHradX1fNC2Obu/ilzO54S8RKKPNgDcauv7oY621w3p0l0Q2IP2rG0HXnVYm/bcexinG8jtKxTaapOc44d8tY7c6XgnGJR1zM18SwGyOes0/ipD023Zq8jhZqm8A85y7VWGbOjBvDOHdizEoMeM6boYJjtn1aV71oTIfLsUNEYsaeFZc5cLGPuaJpVmNHfp37Jd6Kl4PVeN0e/Uof4WxzqOHhNk7s1uG2PvPFDPc8uJYt7hyU6G4LrhM9DTba/8mF9nc3faZ1+TXe+Ffr+wR/mhi90mD/7ON2+R9W5V2x0b6OvQAAAABJRU5ErkJggg==",Uf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAYCAYAAAD6S912AAAAAXNSR0IArs4c6QAAA6VJREFUSEuVlVtoXGUUhdc6SbQmRFPb2pDLdCaN0D6oIFpSiAgqUkWhbxbEWiQ+iA8iFCWQUoo22mCxL4JUYkJBSalWEHshXqLRqSYiSkHQJp2ZtEKrpMVC0Gb+y9IzZ850TpwUHJiHc/k/1t5r7X2I6/zeaNPqunrsdcBWKzU58lTRY2DPb5xe7hiXezC8Ws0LjZg20gZHwABwACy4aIEHXzvHbK2zywLfTKnfSYMhzJZA5T8BD07tm2PP/wLu79QJS22JQSV1FTh1mWgcLfDqUmhJ4W4o2AP66of7Un7SAvdFZVbDouuAXHmgwD/jMzGDI2mtKDp95MmvnjvH1+MXBlP61FK95b7BQgmwCdh6MMcr4fvb2tSpG3Vc4k6+s04Z4/G1gdo9OPDiee59ZZ02SrjXEs3lki8UgYIHNofmeMIZIteZx2e5LnQYrwlLdHlqqFTyWx3qXiQmLNVhwW8d0GMhxj1zYLZIHAtNCu/FbTDADw681UIZT+0/mq/bWXF5qFPrHXHKQLct7VsINCEQGqx2PE6AI4eO5vhyKK4CFMRXU7hsoZZrbkYG1AJWu+48H/h4jhMJ4GC7Vi3Waf5amVXZC5g1ihTWct2JzxwvcCQJ7Naav4z+SIS4HBkXMGuJY9aXS64KezkFfeN5DieA/d1aoypgtRLHSKEt93Dp9Diw7/MYuDullywQeKLJQANRz5JhjoGOocs876BZI7RacIOl6MW+L2PgQMpbS9RVIDWmwpPZIjAi4vcPcvwkDv9DXbrDAu/+C387GwP7U3rMABTQUqQO1TIlVHg4z94QtGW9tjn5hx2DBUOM+jrMWIO7pnL8JtHDFzJaa7wuJiJTCTGzH+bZ+2jGjTngCUuWRtGB1pLPfneWo7HqSg5D4N/SxaUuRwaUSj7goSPRpIRzHUEtuRA0MD39Cy8lFG5v16r6Bs3X3C5k1gI/OfjnK6DEfgweOX2WJxPA8OLptL9ggdbqsssTkXXiF4baFVUQbZ44Pl7Bpp9z/D6pMKNNDhq3wi3/yRmZdcKThjht4G9OLtvSrnx/ZjbYDjA8CuxIq8dAJx3R7KD3DLjVory6ImOyE7mgd3O37rdeI5bIRKYEJxy01kB3uwBjczPBU9yRVhjOKSs2OaDvSIGjj7ep0d+EjYsOzbY+/IbgyuQsf4ycVHBnBrdfbcClM2c4n0ppJW7QuIXuccAww9X9awYHBUwezvPQ9T6ryz1rSatlRb3GTMBd/wBBRVUxXeSVgwAAAABJRU5ErkJggg==",Wg="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABcAAAAYCAYAAAARfGZ1AAAAAXNSR0IArs4c6QAABD9JREFUSEvNlG1MU2cUx/+3hVJKoZQCKTIGTBw6ZB1CNmg/MHkNoqAJe9fhDMvWkhZcjG4fMdnMkm2Ei4Diy8IyEUPUGCNDjSxx2XgHCxN0sooI0spLQ2lpe1vuXe5d1oFNVkj8sPPlSe4553fOc87/PgTWYIcPnwl2OJzfi8WiXJvN0cvjMaXV1eopX6mErwDWr9PVf5Wfr/xcpVIQIyMGpqXlxgWSVL/nK3eN8LpWtfrtkqiocNjtThw7drafJDVpzwVeUVH3Tmxs9HmlUkEMDT1g7t4d+6KmRvP1c4H/PZoTOwC6EcBRktSwp0/zGsvBg98Fut3BMn9/ysvncuESn4+PeTzMrSS7XALG6aTnGxs/WVr53QM4cuSkxG5frpdIxG+Fh4f4E2vaxr+omRmLy2KxXuLxHJrq6s/mWY8HodM13NyzR5mdmZlMUJQbLpfb57WfDbh16w7T0aH/hSTVmR54ZeXJbQkJ8v7y8iKYzVZYrXaYTGZYLEuIiAhFaGiQVyHWx8aIxYGQy8PA3pTNu3q1C1NTsyqSLP+N61yna3g3NzflfE5OCqan59HW1oPxBQoCaQgo0yxSN2+ASpXkKdDbex+d+kcQyCPgtlgRFQDs2pUOilpGZ+cIo9cbPiJJTRMH12obPigoSP1RqXwF16714J6DhzBVKnh+fqCdFIxtHcjbFodNm6IxMfEUV26PImpnDvgiIRj3Msx9Q4ilFpGevgXd3aPMwIChrLZWfdYL/s23FxG+twQZchGmKWCSAmwPHyPoziCKijJw/Xo/ZuMToEhJgJsBJpzgGpg81Yz9+7J9wyPL3kdYgB8cDEAzwMKkEcLuHhQXZ6C9vQ/mLUmIS3yR85ndwDLD4HH9D9i/N2s1vLKy7jWGIXbk56d9yY6FXYhBGAqZMpWbMZ9NvHIDb74cgc2JMRgfN6Gt7yGiSwpB8HkIIABT/++QmyahVCZx8MHBsaM0TV8kKirqW2ga8QUFaa+z8Lm5Ra6AkfFDQIQM9okpJMdIkZn5qmehXV2j6PvDiMDYF0CZFyCjbCguVsLlWkZXFwfvJwhi2GvmrMRYe/JkDgsLS4iMlEAmC/GSIitZo9GM4GAhoqPDQRAErFbHf8/8H/i6/yCwOv8/wfX6P5GYGAOhUICBgTFs3RoHgcCPnS2n65W27s5bW28jLy8VEkkQmpt/xu7dGRCJhDh9+ieUlRWsgrMj7e29/+xPdKIkKyu5dft2BfeerLTLl39FdnYKQkJEYAsVFr4BkSgATU03UVqa6wmlaRqzsxb2dszw8KN9tbXqc5xaDh06FS+Vih8cOJDHdzpdKx/LNeyV4SS4uLjEne3tffTMjDnp+HHtPc+Tq9XW1WzcuEGrULxEBAUJ1wBdHWKzOTA0ZGAMBmNjTY3601XvOduuTlevAfAhQRByVrfrMZqmTQBzTip9WltVVUWzuX8BL+8z38bSCP4AAAAASUVORK5CYII=",_f="data:image/png;base64,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",ls=oe(92310),Bh=oe.n(ls),Kd=oe(10148),Xl=Object.defineProperty,Ru=Object.getOwnPropertySymbols,mh=Object.prototype.hasOwnProperty,ug=Object.prototype.propertyIsEnumerable,Zg=(he,Me,Re)=>Me in he?Xl(he,Me,{enumerable:!0,configurable:!0,writable:!0,value:Re}):he[Me]=Re,cg=(he,Me)=>{for(var Re in Me||(Me={}))mh.call(Me,Re)&&Zg(he,Re,Me[Re]);if(Ru)for(var Re of Ru(Me))ug.call(Me,Re)&&Zg(he,Re,Me[Re]);return he},dg=(he,Me,Re)=>new Promise((He,dt)=>{var vt=Tn=>{try{Jt(Re.next(Tn))}catch($n){dt($n)}},At=Tn=>{try{Jt(Re.throw(Tn))}catch($n){dt($n)}},Jt=Tn=>Tn.done?He(Tn.value):Promise.resolve(Tn.value).then(vt,At);Jt((Re=Re.apply(he,Me)).next())});const mf=({title:he,description:Me,placeholder:Re,hideUpload:He,hideInputBox:dt,aiIcon:vt,userIcon:At,children:Jt,taskData:Tn,user:$n,name:Cn,code:ci,globalSetting:si,authority:Yn,isShowComponent:Ur=!0,DrawerProps:ie={},FetchUrl:ae="https://ai-data.educoder.net/v1/chat-messages",FetchData:fe={},defaultGetData:pe=!1,extraEdit:ye=()=>null,isShowDefuatTips:Be=!0,isReview:Xe,onOpen:qe,loadingOption:ot,isIntelligentAssistant:Tt=!1,intelligentAssistantItems:mn=[],showEditableBox:Rt=!1,showPreference:Qn=!1,initMessage:_n="",customRequest:pi})=>{var Ci,ki,ar,Nr,Er,$r,Hn,Cr,$o,oi,us;const[Xa,pl]=(0,we.useState)([]),[ml,Va]=(0,we.useState)(null),[ll,Xs]=(0,we.useState)(!1),[ha,Ca]=(0,we.useState)([]),[Ts,el]=(0,we.useState)(!1),[Ps,Tl]=(0,we.useState)([]),ba=(0,we.useRef)(Ps),Fu=(0,we.useRef)(),fs=(0,we.useRef)(),[Su,su]=(0,we.useState)(""),[Bu,xu]=(0,we.useState)([`${(Ci=Tn==null?void 0:Tn.challenge)==null?void 0:Ci.task_pass}\uFF0C\u8BF7\u7ED9\u51FA\u7B54\u9898\u601D\u8003\u65B9\u5411\u3002\\n\\n\u4E0D\u8981\u7ED9\u51FA\u5B66\u751F\u6B63\u786E\u7B54\u6848\uFF0C\u4E0D\u8981\u7ED9\u51FA\u4EFB\u4F55\u4EE3\u7801`]),cs=Su==null?void 0:Su.split(`
`).length,[Il,sr]=(0,we.useState)(!1),[lo,Ha]=(0,we.useState)(0),[ga,Is]=(0,we.useState)(null),[Dl,tc]=(0,we.useState)(""),ju=(0,we.useRef)(null),Tc=!!Tn,Ic=[{img:lg,name:"\u667A\u80FD\u5BA1\u9898",des:"\u5FEB\u901F\u667A\u80FD\u62C6\u89E3\u4EFB\u52A1\uFF0C\u63D0\u4F9B\u89E3\u9898\u601D\u8DEF",Authorization:"Bearer app-Z8HFAfducmnrr3zO9961jqgB",inputs:""},{img:Uf,name:"\u4EE3\u7801\u8BCA\u65AD",des:"\u7CFB\u7EDF\u667A\u80FD\u4EE3\u7801\u5206\u6790\uFF0C\u63D0\u4F9B\u4FEE\u6B63\u5EFA\u8BAE",Authorization:"Bearer app-Z8HFAfducmnrr3zO9961jqgB",inputs:(ki=Tn==null?void 0:Tn.challenge)==null?void 0:ki.task_pass},{img:Wg,name:"AI\u8F85\u5BFC",des:"\u4E3A\u5B66\u751F\u63D0\u4F9B\u4E2A\u6027\u5316\u667A\u80FD\u5B66\u4E60\u8F85\u5BFC",Authorization:"Bearer app-Z8HFAfducmnrr3zO9961jqgB",inputs:(ar=Tn==null?void 0:Tn.challenge)==null?void 0:ar.task_pass}],zu={maxCount:1,showUploadList:!1,withCredentials:!0,accept:".doc,.docx,.md,.txt,.pdf,.jpg,.png",beforeUpload:wr=>{var fa,tl,Oa,Hl;const Zc=(Hl=(Oa=(tl=(fa=wr==null?void 0:wr.name)==null?void 0:fa.split("."))==null?void 0:tl.slice(-1))==null?void 0:Oa[0])==null?void 0:Hl.toLowerCase(),ko=["doc","docx","md","pdf","txt","jpg","png"].includes(Zc);return wr.size==0?(Ie.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),De.default.LIST_IGNORE):ko||(Ie.ZP.warning("\u76EE\u524D\u652F\u6301txt\u3001md\u3001doc\u3001docx\u3001pdf\u3001jpg\u3001png\u6587\u4EF6"),De.default.LIST_IGNORE)},onChange:({fileList:wr})=>{Ca((wr==null?void 0:wr.filter(fa=>(fa==null?void 0:fa.status)==="done"))||[])},action:`${(Nr=Kd.Z)==null?void 0:Nr.API_SERVER}/api/intelligent_imports/upload_file.json`},kc={maxCount:1,showUploadList:!1,accept:".doc,.docx,.md,.txt,.pdf",beforeUpload:wr=>{var fa,tl,Oa,Hl;const Zc=(Hl=(Oa=(tl=(fa=wr==null?void 0:wr.name)==null?void 0:fa.split("."))==null?void 0:tl.slice(-1))==null?void 0:Oa[0])==null?void 0:Hl.toLowerCase(),ko=["doc","docx","md","pdf","txt"].includes(Zc);return wr.size==0?(Ie.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),De.default.LIST_IGNORE):ko||(Ie.ZP.warning("\u76EE\u524D\u652F\u6301txt\u3001md\u3001doc\u3001docx\u3001pdf\u6587\u4EF6"),De.default.LIST_IGNORE)},onChange:({fileList:wr})=>{Ca((wr==null?void 0:wr.filter(fa=>(fa==null?void 0:fa.status)==="done"))||[])},action:`${(Er=Kd.Z)==null?void 0:Er.API_SERVER}/api/attachments.json`};(0,we.useEffect)(()=>{var wr;if(ju.current&&ga!==null){ju.current.focus();const fa=(wr=ju.current.resizableTextArea)==null?void 0:wr.textArea;fa&&(fa.selectionStart=fa.selectionEnd=fa.value.length)}},[ga]),(0,we.useEffect)(()=>{cs<5&&sr(!1)},[cs]),(0,we.useEffect)(()=>{Tt&&ll&&Gf()},[ll]),(0,we.useEffect)(()=>{ba.current=Ps},[Ps]),(0,we.useEffect)(()=>{var wr;si!=null&&si.setting&&pl([...Xa,...((wr=si==null?void 0:si.setting)==null?void 0:wr.big_model_users)||[]])},[si==null?void 0:si.setting]),(0,we.useEffect)(()=>{var wr;xu([`${(wr=Tn==null?void 0:Tn.challenge)==null?void 0:wr.task_pass}`,`${ci}`,`${ci}`])},[ci]),(0,we.useEffect)(()=>{if(pe&&(ie!=null&&ie.open||ll)&&(fe!=null&&fe.student_work_id)){if(ml!==(fe==null?void 0:fe.student_work_id))Tl([{text:"",done:!1,loading:!0,key:Date.now(),sender:"AI",allowCopy:!0}]);else{if(Ps.length)return;Tl([...Ps,{text:"",done:!1,loading:!0,key:Date.now(),sender:"AI",allowCopy:!0}])}Vg(),Va(fe==null?void 0:fe.student_work_id)}},[pe,ll,Ps,ie==null?void 0:ie.open,fe==null?void 0:fe.student_work_id]),(0,we.useEffect)(()=>{ie!=null&&ie.open&&_n&&(Tl([{text:_n,done:!1,key:Date.now(),sender:"user",fileList:ha[0]},{text:Su,done:!1,loading:!0,key:Date.now(),sender:"AI",allowCopy:!0}]),el(!0),setTimeout(()=>Vg(_n),300))},[ie==null?void 0:ie.open]);const nc=()=>{Xs(!0)},Wc=()=>{Xs(!1)},Uu=()=>{sr(!Il)},Gf=()=>dg(void 0,null,function*(){const wr=yield(0,Hg.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});(wr==null?void 0:wr.status)===0&&Ha(wr==null?void 0:wr.number)}),Lm=()=>{Ke.default.info({title:"\u63D0\u793A",icon:null,okText:"\u6211\u77E5\u9053\u4E86",width:510,centered:!0,content:we.createElement("div",null,we.createElement("div",{style:{color:"#FA6400"}},"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),we.createElement("div",{className:"c-grey-333 mt5"},"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F\u752810\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))})},Vg=(wr="")=>dg(void 0,null,function*(){var fa,tl;if(pi){yield pi({mes:wr,chatData:Ps,setChatData:Tl,chatDataRef:ba.current,fileList:ha}),el(!1);return}const Oa=(ha==null?void 0:ha.map(Dc=>{var ko,hg;return((ko=Dc==null?void 0:Dc.response)==null?void 0:ko.id)||((hg=Dc==null?void 0:Dc.response)==null?void 0:hg.file_id)}))||[],Hl={};if(Tt){Oa!=null&&Oa[0]&&(Hl.file_id=Oa==null?void 0:Oa[0]),Hl.prompt=wr;const Dc=Ps.reduce((ko,hg)=>{if(hg.sender==="user"){const Op=Ps.find(Wf=>Wf.key===hg.key&&Wf.sender==="AI");Op&&ko.push({question:hg.text,answer:Op.text})}return ko},[]);Hl.history=Dc}const Zc=yield(0,Hg.ZP)(ae,{method:"post",body:cg(cg({inputs:{description:"",name:Cn},query:wr,response_mode:"blocking",conversation_id:Fu.current||"",user:((fa=$n==null?void 0:$n.userInfo)==null?void 0:fa.login)||"\u672A\u77E5",files:Oa},fe),Hl),mode:"cors",headers:{"Content-Type":"application/json",Authorization:"Bearer app-Z8HFAfducmnrr3zO9961jqgB"}});Tt&&Gf(),el(!1),ba.current[ba.current.length-1].text=Zc==null?void 0:Zc.answer,ba.current[ba.current.length-1].loading=!1,ba.current[ba.current.length-1].response=Zc,Fu.current=Zc==null?void 0:Zc.conversation_id,Tt&&(ba.current[ba.current.length-1].text=(tl=Zc==null?void 0:Zc.data)==null?void 0:tl.content),Tl([...ba.current])}),Kg=(wr,fa)=>dg(void 0,null,function*(){var tl;if(Ts)return;el(!0),Tl([...Ps,{text:Su,done:!1,loading:!0,key:Date.now(),sender:"AI",allowCopy:!0,name:wr==null?void 0:wr.name}]),setTimeout(()=>{fs.current.scrollTo({top:fs.current.scrollHeight,behavior:"smooth"})});const Oa=yield(0,Hg.ZP)(ae,{method:"post",body:{inputs:{description:wr==null?void 0:wr.inputs,name:wr==null?void 0:wr.name},query:Bu[fa],response_mode:"blocking",user:((tl=$n==null?void 0:$n.userInfo)==null?void 0:tl.login)||"\u672A\u77E5",files:[]},mode:"cors",headers:{"Content-Type":"application/json",Authorization:wr==null?void 0:wr.Authorization}});Oa!=null&&Oa.answer&&(el(!1),ba.current[ba.current.length-1].text=Oa==null?void 0:Oa.answer,ba.current[ba.current.length-1].loading=!1,ba.current[ba.current.length-1].response=Oa,Fu.current=Oa==null?void 0:Oa.conversation_id,Tl([...ba.current]))}),Tp=wr=>{su(wr.target.value)},Ip=(wr,fa)=>{var tl;if(wr==="edit"&&Dl.trim()!==""&&(ba.current.splice(fa),su(""),Ca([]),Tl([...ba.current,{text:Dl,done:!1,key:Date.now(),sender:"user",fileList:ha[0]},{text:Su,done:!1,loading:!0,key:Date.now(),sender:"AI",allowCopy:!0}]),el(!0),setTimeout(()=>{Vg(Dl),fs.current.scrollTo({top:fs.current.scrollHeight,behavior:"smooth"})},300),tc(""),Is(null)),wr==="redraw"){const Oa=ba.current.splice(fa-1),Hl=(tl=Oa==null?void 0:Oa[0])==null?void 0:tl.text;su(""),Ca([]),Tl([...ba.current,{text:Hl,done:!1,key:Date.now(),sender:"user",fileList:ha[0]},{text:Su,done:!1,loading:!0,key:Date.now(),sender:"AI",allowCopy:!0}]),el(!0),setTimeout(()=>{Vg(Hl),fs.current.scrollTo({top:fs.current.scrollHeight,behavior:"smooth"})},300),tc(""),Is(null)}},kp=()=>{Su.trim()!==""&&(tc(""),Is(null),su(""),Ca([]),Tl([...Ps,{text:Su,done:!1,key:Date.now(),sender:"user",fileList:ha[0]},{text:Su,done:!1,loading:!0,key:Date.now(),sender:"AI",allowCopy:!0}]),el(!0),setTimeout(()=>{Vg(Su),fs.current.scrollTo({top:fs.current.scrollHeight,behavior:"smooth"})},300))},Dp=wr=>{var fa;if(wr.shiftKey){if(wr.key==="Enter")return}else if(wr.key==="Enter"){if(wr.preventDefault(),ha!=null&&ha.length&&((fa=ha==null?void 0:ha[0])==null?void 0:fa.status)!=="done"||Ts)return;kp()}},yf=(wr,fa)=>{var tl,Oa,Hl,Zc,Dc;return we.createElement("div",{className:ss.editable},fa===ga?we.createElement(we.Fragment,null,we.createElement(Ee.default.TextArea,{value:Dl,ref:ju,autoSize:!0,placeholder:"\u8BF7\u8F93\u5165",bordered:!1,onChange:ko=>tc(ko.target.value)}),we.createElement("div",{className:ss.action,style:{bottom:-52}},we.createElement(et.ZP,{onClick:()=>{tc(""),Is(null)},size:"small"},"\u53D6\u6D88"),we.createElement(et.ZP,{disabled:!Dl.trim(),onClick:()=>Ip("edit",fa),type:"primary",size:"small"},"\u786E\u8BA4"))):we.createElement(we.Fragment,null,we.createElement("div",{className:ss.text},wr==null?void 0:wr.text),we.createElement("div",{className:ss.action},we.createElement(zg.CopyToClipboard,{text:(wr==null?void 0:wr.text)||"",onCopy:()=>Ie.ZP.success("\u590D\u5236\u6210\u529F")},we.createElement(Je.Z,{title:"\u590D\u5236"},we.createElement("i",{className:"iconfot icon-fuzhi8 font13"}))),!Ts&&we.createElement(Je.Z,{title:"\u7F16\u8F91"},we.createElement("i",{onClick:()=>{Is(fa),tc((wr==null?void 0:wr.text)||"")},className:"iconfot icon-bianji10 font14"})))),(wr==null?void 0:wr.fileList)&&we.createElement("div",{className:ss.file},we.createElement("img",{src:oe(90034)(`./${((Hl=(Oa=(tl=wr==null?void 0:wr.fileList)==null?void 0:tl.name)==null?void 0:Oa.split("."))==null?void 0:Hl.pop())||"txt"}.png`),width:20,className:"mr10"}),we.createElement("div",{className:"c-black"},we.createElement("div",null,(0,xd.tP)((Zc=wr==null?void 0:wr.fileList)==null?void 0:Zc.name,20)),we.createElement("div",null,(0,xd.RD)((Dc=wr==null?void 0:wr.fileList)==null?void 0:Dc.size)))))},Hf=(wr,fa,tl)=>{Tl(Oa=>(Oa[tl][wr]=fa,fa&&(Oa[tl][wr==="like"?"boring":"like"]=!1),[...Oa]))};if(Tc&&!Xa.includes(($r=(0,Fh.eY)())==null?void 0:$r.login)){if(!(Tn!=null&&Tn.chatgpt))return we.createElement(we.Fragment,null)}else if(!Ur||!(Yn||Xa.includes((Hn=(0,Fh.eY)())==null?void 0:Hn.login)))return we.createElement(we.Fragment,null);return Tt&&!Xa.includes((Cr=(0,Fh.eY)())==null?void 0:Cr.login)?we.createElement(we.Fragment,null):we.createElement("div",null,Jt?we.createElement("div",{onClick:qe||nc},we.createElement(ht.Outlet,null),Jt):we.createElement(pf,{src:Tt?_f:"",onClick:qe||nc}),we.createElement(Ye.Z,{className:`${ie!=null&&ie.open||ll?"body-overflow-hidden":""} ${ss.answerWrp}`,width:(ie==null?void 0:ie.width)||880,title:we.createElement("span",{className:ss.title},he||"\u5934\u6B4CAI"),onClose:(ie==null?void 0:ie.onClose)||Wc,open:(ie==null?void 0:ie.open)||ll,afterOpenChange:wr=>{wr||(tc(""),Is(null))}},we.createElement("div",{className:ss["ai-wrp"]},we.createElement("div",{ref:fs,className:ss["chat-container"]},Be&&we.createElement("div",{className:ss.li},we.createElement("img",{className:ss.img,src:vt||"/images/ai_icon.png"}),we.createElement("div",{className:ss.content},we.createElement("div",{className:"c-grey-333 font22"},we.createElement("span",{className:"mr5"},"\u{1F44B}"),"\u55E8\uFF0C\u6211\u662F",Tt?"":"\u5934\u6B4C",Tc?he:"\u667A\u80FD\u52A9\u6559",Tt?"\u5C0F\u6B4C":"","\uFF0C\u60A8\u7684\u6559\u5B66\u597D\u5E2E\u624B\u3002"),we.createElement("div",{className:"font16 mt20",style:{color:"#434D6C"}},Me||"\u6211\u53EF\u4EE5\u9605\u8BFB\u60A8\u4E0A\u4F20\u7684\u6559\u6848\uFF0C\u4E66\u7C4D\u7B49\u6559\u5B66\u8D44\u6599\uFF0C\u5E76\u6839\u636E\u60A8\u7684\u8981\u6C42\u4E3A\u60A8\u81EA\u52A8\u751F\u6210\u4EFB\u52A1\u8981\u6C42\u3002"),!Tt&&we.createElement("div",{className:"font16 mt20",style:{color:"#434D6C"}},"\u5FEB\u6765\u8BD5\u4E00\u4E0B\u5427\uFF5E"),Tc&&we.createElement("div",{className:ss.container},Ic.map((wr,fa)=>we.createElement("div",{onClick:()=>Kg(wr,fa),key:fa,className:ss.item},we.createElement(tt.Z,{align:"middle"},we.createElement("img",{className:"mr10",src:wr.img}),we.createElement("span",{style:{color:"#232B40",fontSize:16,fontWeight:600}},wr.name)),we.createElement("div",{className:"mt10",style:{color:"#434D6C"}},wr.des)))),Tt&&we.createElement("div",{className:ss.container},mn==null?void 0:mn.map((wr,fa)=>we.createElement("div",{key:fa,onClick:()=>{var tl,Oa;if(wr.show){if(lo>9){Lm();return}(Oa=(tl=wr.ref)==null?void 0:tl.current)==null||Oa.onClick()}},className:Bh()(ss.itemMask,(wr==null?void 0:wr.show)&&ss.show)},we.createElement(tt.Z,{align:"middle"},we.createElement("img",{className:"mr10",src:wr.img,width:24}),we.createElement("span",{style:{color:"#232B40",fontSize:16,fontWeight:600}},wr.name)),we.createElement("div",{className:"mt10",style:{color:"#434D6C",paddingLeft:34}},wr.des),!(wr!=null&&wr.show)&&we.createElement("div",{className:ss.mask},"\u656C\u8BF7\u671F\u5F85\uFF5E"),!!(wr!=null&&wr.show)&&we.createElement("div",{onClick:tl=>tl.stopPropagation()}," ",we.createElement(wr.element,{ref:wr.ref,onUpdateNum:Gf,onClose:Wc}))))))),Ps==null?void 0:Ps.map((wr,fa)=>{var tl;return we.createElement("div",{key:fa,className:ss.li,style:{marginBottom:wr.sender==="AI"&&((tl=Ps[fa+1])==null?void 0:tl.sender)!=="user"||Rt?50:20}},we.createElement("img",{className:ss.img,src:wr.sender==="AI"?vt||"/images/ai_icon.png":At||"/images/ai_user.png"}),we.createElement("div",{style:{marginTop:Rt&&wr.sender==="user"&&(wr!=null&&wr.fileList)?64:0},className:`${ss.content} ${wr.sender==="AI"||Rt?"":ss.user}`},wr.loading?we.createElement("div",null,we.createElement("div",{className:ss["loading-wanx"]},we.createElement("div",{className:ss["dot-flashing"]}),we.createElement("div",{className:ss["dot-flashing"]}),we.createElement("div",{className:ss["dot-flashing"]})),we.createElement("div",{style:{marginTop:10,color:"#9096A3"}},(ot==null?void 0:ot.text)||"\u8BF7\u8010\u5FC3\u7B49\u5F85\uFF0C\u76EE\u524D\u9AD8\u5CF0\u671F\u4F53\u9A8C\u4EBA\u6570\u8FC7\u591A\uFF0C\u6211\u4EEC\u5DF2\u8BB0\u5F55\u4E0B\u60A8\u7684\u9700\u6C42\uFF0C\u7A0D\u540E\u5C06\u81EA\u52A8\u4E3A\u60A8\u751F\u6210\u7B54\u6848\u3002")):we.createElement(we.Fragment,null,!!wr.name&&we.createElement("div",{className:"mb10 font18",style:{color:"#232B40",fontWeight:600}},wr==null?void 0:wr.name),wr.sender==="user"&&Rt?yf(wr,fa):we.createElement(Gg,{showEditableBox:Rt,onRedraw:()=>Ip("redraw",fa),scrollBox:fs,Data:wr,extraEdit:ye,loading:Ts,showPreference:Qn,onPreference:(Oa,Hl)=>Hf(Oa,Hl,fa)}))))})),!dt&&we.createElement("div",{className:`${ss["footer-container"]} ${Il?ss.full:""} ${ha.length>=1&&ss["has-file"]}`},!!ha.length&&we.createElement(tt.Z,{align:"middle",className:"pb5 pt5"},we.createElement("span",{title:($o=ha==null?void 0:ha[0])==null?void 0:$o.name,className:"mr10"},(0,xd.tP)((oi=ha==null?void 0:ha[0])==null?void 0:oi.name,40)),we.createElement("i",{onClick:()=>Ca([]),className:"iconfont current icon-shanchu15 delete-hover c-red-ee4 font14"})),we.createElement(Je.Z,{title:lo>9?we.createElement("div",null,we.createElement("div",null,"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),we.createElement("div",null,"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F\u752810\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002")):""},we.createElement("div",{style:ha.length?{paddingLeft:0}:{},className:`${ss["input-container"]} ${cs>4?ss.lineFour:""} ${lo>9?ss.disabledNumClass:""}`},!He&&we.createElement("div",{className:ss["footer-container-upload"]},we.createElement(De.default,cg({},Xe?kc:zu),ha!=null&&ha.length?null:we.createElement(et.ZP,{className:ss["upload-btn"],icon:we.createElement("i",{className:"iconfont icon-shangchuan4 c-white"})}))),we.createElement(Ee.default.TextArea,{rows:cs>4?4:cs,placeholder:Re||"\u5728\u8FD9\u91CC\u8F93\u5165\u4F60\u95EE\u9898\u5427,Shift+Enter\u6362\u884C\uFF5E",value:Su,bordered:!1,style:He?{paddingLeft:0,marginLeft:0}:{},onChange:Tp,onKeyPress:Dp}),we.createElement(et.ZP,{className:ss["send-btn"],icon:we.createElement("i",{className:"iconfont icon-fasong2 c-white"}),disabled:!!(ha!=null&&ha.length)&&((us=ha==null?void 0:ha[0])==null?void 0:us.status)!=="done"||Ts,onClick:kp}),cs>4&&we.createElement("span",{className:ss.fullIcon,onClick:Uu},Il&&we.createElement("span",{className:"iconfont icon-shousuo"}),!Il&&we.createElement("span",{className:"iconfont icon-zhankai"}))))))))};var vf=(0,ht.connect)(({globalSetting:he,user:Me})=>({globalSetting:he,user:Me}))(mf)},91740:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return ee}});var se=oe(59301),Ce={flex_box_center:"flex_box_center___A3pzf",flex_space_between:"flex_space_between___JBoa5",flex_box_vertical_center:"flex_box_vertical_center___MJuIO",flex_box_center_end:"flex_box_center_end___OcjUA",flex_box_column:"flex_box_column___zSH4A",list:"list___KhJas",middle:"middle___IjlYi",row:"row___GGtIx",title:"title___o_xqf",size:"size___OVRoL",download:"download___ZLcIH",preview:"preview___gi0kI",annotation:"annotation___KVSwj"},we=oe(92310),Ie=oe.n(we),De=oe(79646),Ke=oe(65983),Ee=oe(58130),et=oe(10148),Je=oe(70635),Ye=oe(2119),tt=oe(42203),ht=oe(8591),kt=(ne,ge,ue)=>new Promise((me,Se)=>{var Ne=We=>{try{Te(ue.next(We))}catch($e){Se($e)}},ke=We=>{try{Te(ue.throw(We))}catch($e){Se($e)}},Te=We=>We.done?me(We.value):Promise.resolve(We.value).then(Ne,ke);Te((ue=ue.apply(ne,ge)).next())});const ze=({className:ne,style:ge,dataSource:ue=[],authority:me=!1,callback:Se,showDimensions:Ne=!0,classroomList:ke})=>{var Te;const[We,$e]=(0,se.useState)({content:"",type:""}),[st,ut]=(0,se.useState)({}),[Mt,nt]=(0,se.useState)(!1),[$t,Pt]=(0,se.useState)({title:"",visible:!1,src:"",snapshotData:{}}),dn=(0,se.useRef)(),zt=it=>kt(void 0,null,function*(){if(ut(it),it.file_type==="txt"){const Ve=yield(0,Je.ZP)(it.url,{method:"get",headers:{"Content-Type":"application/xml"}});dn.current=Ve}$e({type:it.file_type,content:et.Z.API_SERVER+it.url})}),Xt=it=>{var Ve;Pt({visible:!0,src:et.Z.API_SERVER+it.url,id:it.id,title:it.title,snapshotData:(Ve=it==null?void 0:it.subitem)==null?void 0:Ve.settings})},fn=it=>kt(void 0,null,function*(){var Ve;$e({type:it.file_type,content:et.Z.API_SERVER+((Ve=it==null?void 0:it.subitem)==null?void 0:Ve.url)})}),an=()=>{Se(),Pt({visible:!1})};return ue!=null&&ue.length?se.createElement(se.Fragment,null,se.createElement("div",{className:Ie()(Ce.list,ne),style:ge},ue.map((it,Ve)=>{var gt,Bt,sn;return se.createElement("div",{key:Ve,className:Ce.row},se.createElement("div",{className:Ce.title,onClick:()=>zt(it)},se.createElement("i",{className:"iconfont icon-fujian1"}),se.createElement("span",{title:it.title},it.title)),se.createElement("div",{className:Ce.size},it.filesize),se.createElement("div",{className:Ce.download,onClick:()=>{var It,en;if((0,Ye.Rm)()&&!((It=ke.AssistantObject.normal)!=null&&It.can_download)){ht.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}(0,Ee.Nd)("",`${et.Z.API_SERVER}${(en=it.url)==null?void 0:en.replace("disposition=inline","")}`)}},se.createElement("i",{className:"iconfont icon-xiazai4"}),"\u4E0B\u8F7D"),!["other","download"].includes(it==null?void 0:it.file_type)&&se.createElement("div",{className:Ce.preview,onClick:()=>zt(it)},se.createElement("i",{className:"iconfont icon-yulan"}),"\u9884\u89C8"),["image"].includes(it==null?void 0:it.file_type)&&Ne&&(me?se.createElement("div",{className:Ce.annotation,onClick:()=>Xt(it)},se.createElement("i",{className:"iconfont icon-pizhu"}),(gt=it.subitem)!=null&&gt.id?"\u4FEE\u6539\u6279\u6CE8":"\u6279\u6CE8"):((Bt=it.subitem)==null?void 0:Bt.id)&&se.createElement("div",{className:Ce.annotation,onClick:()=>fn(it)},se.createElement("i",{className:"iconfont icon-chakanlaoshipizhu1"}),"\u67E5\u770B\u8001\u5E08\u6279\u6CE8")),["image"].includes(it==null?void 0:it.file_type)&&((sn=it.subitem)==null?void 0:sn.id)&&se.createElement("div",{className:Ce.download,style:{marginLeft:20},onClick:()=>{var It,en;(0,Ee.Nd)("",`${et.Z.API_SERVER}${(en=(It=it==null?void 0:it.subitem)==null?void 0:It.url)==null?void 0:en.replace("disposition=inline","")}`)}},se.createElement("i",{className:"iconfont icon-xiazai4"}),"\u4E0B\u8F7D\u6279\u6CE8\u6587\u4EF6"),["office"].includes(it==null?void 0:it.file_type)&&(0,Ye.eB)()&&["xlsx","docx","pptx"].includes(it==null?void 0:it.file_sub)&&Ne&&se.createElement("div",{className:Ce.annotation,onClick:()=>{nt(!0),zt(it)}},se.createElement("i",{className:"iconfont icon-pizhu"}),it.is_edit?"\u4FEE\u6539\u6279\u6CE8":"\u6279\u6CE8"),it.is_edit&&(0,Ye.dE)()&&Ne&&se.createElement("div",{className:Ce.annotation,onClick:()=>{zt(it)}},se.createElement("i",{className:"iconfont icon-sousuo7"}),"\u67E5\u770B\u8001\u5E08\u6279\u6CE8"))})),se.createElement(De.Z,{close:!0,data:We==null?void 0:We.content,type:We==null?void 0:We.type,hasMask:!0,disabledDownload:(0,Ye.Rm)()&&!((Te=ke.AssistantObject.normal)!=null&&Te.can_download),editOffice:Mt?"edit":"view",monacoEditor:{value:dn.current,language:"txt",onChange:()=>{},options:{readOnly:!0,fontSize:14,minimap:{enabled:!1}}},onImgDimensions:me&&Ne&&We.type==="image"?()=>Xt(st):null,onClose:()=>{Se(),nt(!1),$e({content:"",type:""})}}),se.createElement(Ke.Z,{onOk:an,onClose:()=>Pt({visible:!1}),data:$t,showFullTools:!0})):null};var ee=(0,tt.connect)(({classroomList:ne})=>({classroomList:ne}))(ze)},65983:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return ct}});var se=oe(59301),Ce={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},we=oe(92310),Ie=oe.n(we),De=oe(71418);var Ke=function(Ge,Ae){return(Ke=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(xe,je){xe.__proto__=je}||function(xe,je){for(var Qe in je)Object.prototype.hasOwnProperty.call(je,Qe)&&(xe[Qe]=je[Qe])})(Ge,Ae)};function Ee(Ge,Ae){function xe(){this.constructor=Ge}Ke(Ge,Ae),Ge.prototype=Ae===null?Object.create(Ae):(xe.prototype=Ae.prototype,new xe)}function et(Ge,Ae,xe,je){return new(xe||(xe=Promise))(function(Qe,Oe){function xt(wt){try{Pn(je.next(wt))}catch(nn){Oe(nn)}}function hn(wt){try{Pn(je.throw(wt))}catch(nn){Oe(nn)}}function Pn(wt){var nn;wt.done?Qe(wt.value):(nn=wt.value,nn instanceof xe?nn:new xe(function(Mn){Mn(nn)})).then(xt,hn)}Pn((je=je.apply(Ge,Ae||[])).next())})}function Je(Ge,Ae){var xe,je,Qe,Oe,xt={label:0,sent:function(){if(1&Qe[0])throw Qe[1];return Qe[1]},trys:[],ops:[]};return Oe={next:hn(0),throw:hn(1),return:hn(2)},typeof Symbol=="function"&&(Oe[Symbol.iterator]=function(){return this}),Oe;function hn(Pn){return function(wt){return function(nn){if(xe)throw new TypeError("Generator is already executing.");for(;xt;)try{if(xe=1,je&&(Qe=2&nn[0]?je.return:nn[0]?je.throw||((Qe=je.return)&&Qe.call(je),0):je.next)&&!(Qe=Qe.call(je,nn[1])).done)return Qe;switch(je=0,Qe&&(nn=[2&nn[0],Qe.value]),nn[0]){case 0:case 1:Qe=nn;break;case 4:return xt.label++,{value:nn[1],done:!1};case 5:xt.label++,je=nn[1],nn=[0];continue;case 7:nn=xt.ops.pop(),xt.trys.pop();continue;default:if(Qe=xt.trys,!((Qe=Qe.length>0&&Qe[Qe.length-1])||nn[0]!==6&&nn[0]!==2)){xt=0;continue}if(nn[0]===3&&(!Qe||nn[1]>Qe[0]&&nn[1]<Qe[3])){xt.label=nn[1];break}if(nn[0]===6&&xt.label<Qe[1]){xt.label=Qe[1],Qe=nn;break}if(Qe&&xt.label<Qe[2]){xt.label=Qe[2],xt.ops.push(nn);break}Qe[2]&&xt.ops.pop(),xt.trys.pop();continue}nn=Ae.call(Ge,xt)}catch(Mn){nn=[6,Mn],je=0}finally{xe=Qe=0}if(5&nn[0])throw nn[1];return{value:nn[0]?nn[1]:void 0,done:!0}}([Pn,wt])}}}function Ye(){for(var Ge=0,Ae=0,xe=arguments.length;Ae<xe;Ae++)Ge+=arguments[Ae].length;var je=Array(Ge),Qe=0;for(Ae=0;Ae<xe;Ae++)for(var Oe=arguments[Ae],xt=0,hn=Oe.length;xt<hn;xt++,Qe++)je[Qe]=Oe[xt];return je}var tt=function(){function Ge(){}return Ge.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Ge.setAttributes=function(Ae,xe){for(var je=0,Qe=xe;je<Qe.length;je++){var Oe=Qe[je],xt=Oe[0],hn=Oe[1];Ae.setAttribute(xt,hn)}},Ge.createRect=function(Ae,xe,je){var Qe=document.createElementNS("http://www.w3.org/2000/svg","rect");return Qe.setAttribute("width",Ae.toString()),Qe.setAttribute("height",xe.toString()),je&&Ge.setAttributes(Qe,je),Qe},Ge.createLine=function(Ae,xe,je,Qe,Oe){var xt=document.createElementNS("http://www.w3.org/2000/svg","line");return xt.setAttribute("x1",Ae.toString()),xt.setAttribute("y1",xe.toString()),xt.setAttribute("x2",je.toString()),xt.setAttribute("y2",Qe.toString()),Oe&&Ge.setAttributes(xt,Oe),xt},Ge.createPolygon=function(Ae,xe){var je=document.createElementNS("http://www.w3.org/2000/svg","polygon");return je.setAttribute("points",Ae),xe&&Ge.setAttributes(je,xe),je},Ge.createCircle=function(Ae,xe){var je=document.createElementNS("http://www.w3.org/2000/svg","circle");return je.setAttribute("cx",(Ae/2).toString()),je.setAttribute("cy",(Ae/2).toString()),je.setAttribute("r",Ae.toString()),xe&&Ge.setAttributes(je,xe),je},Ge.createEllipse=function(Ae,xe,je){var Qe=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Qe.setAttribute("cx",(Ae/2).toString()),Qe.setAttribute("cy",(xe/2).toString()),Qe.setAttribute("rx",(Ae/2).toString()),Qe.setAttribute("ry",(xe/2).toString()),je&&Ge.setAttributes(Qe,je),Qe},Ge.createGroup=function(Ae){var xe=document.createElementNS("http://www.w3.org/2000/svg","g");return Ae&&Ge.setAttributes(xe,Ae),xe},Ge.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Ge.createMarker=function(Ae,xe,je,Qe,Oe,xt,hn){var Pn=document.createElementNS("http://www.w3.org/2000/svg","marker");return Ge.setAttributes(Pn,[["id",Ae],["orient",xe],["markerWidth",je.toString()],["markerHeight",Qe.toString()],["refX",Oe.toString()],["refY",xt.toString()]]),Pn.appendChild(hn),Pn},Ge.createText=function(Ae){var xe=document.createElementNS("http://www.w3.org/2000/svg","text");return xe.setAttribute("x","0"),xe.setAttribute("y","0"),Ae&&Ge.setAttributes(xe,Ae),xe},Ge.createTSpan=function(Ae,xe){var je=document.createElementNS("http://www.w3.org/2000/svg","tspan");return je.textContent=Ae,xe&&Ge.setAttributes(je,xe),je},Ge.createImage=function(Ae){var xe=document.createElementNS("http://www.w3.org/2000/svg","image");return Ae&&Ge.setAttributes(xe,Ae),xe},Ge.createPoint=function(Ae,xe){var je=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return je.x=Ae,je.y=xe,je},Ge.createPath=function(Ae,xe){var je=document.createElementNS("http://www.w3.org/2000/svg","path");return je.setAttribute("d",Ae),xe&&Ge.setAttributes(je,xe),je},Ge}(),ht=function(){function Ge(){}return Ge.addKey=function(Ae){Ge.key=Ae},Object.defineProperty(Ge,"isLicensed",{get:function(){return!!Ge.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Ge.key)},enumerable:!1,configurable:!0}),Ge}(),kt=function(){function Ge(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Ge.prototype.rasterize=function(Ae,xe,je){var Qe=this;return new Promise(function(Oe){var xt=je!==void 0?je:document.createElement("canvas");Ae===null&&(Qe.markersOnly=!0,Qe.naturalSize=!1);var hn=document.createElementNS("http://www.w3.org/2000/svg","svg");hn.setAttribute("xmlns","http://www.w3.org/2000/svg"),hn.setAttribute("width",xe.width.baseVal.valueAsString),hn.setAttribute("height",xe.height.baseVal.valueAsString),hn.setAttribute("viewBox","0 0 "+xe.viewBox.baseVal.width.toString()+" "+xe.viewBox.baseVal.height.toString()),hn.innerHTML=xe.innerHTML,Qe.naturalSize===!0?(hn.width.baseVal.value=Ae.naturalWidth,hn.height.baseVal.value=Ae.naturalHeight):Qe.width!==void 0&&Qe.height!==void 0&&(hn.width.baseVal.value=Qe.width,hn.height.baseVal.value=Qe.height),xt.width=hn.width.baseVal.value,xt.height=hn.height.baseVal.value;var Pn=hn.outerHTML,wt=xt.getContext("2d");Qe.markersOnly!==!0&&wt.drawImage(Ae,0,0,xt.width,xt.height);var nn=window.URL,Mn=new Image(xt.width,xt.height);Mn.setAttribute("crossOrigin","anonymous");var Zn=new Blob([Pn],{type:"image/svg+xml"}),li=nn.createObjectURL(Zn);Mn.onload=function(){wt.drawImage(Mn,0,0),nn.revokeObjectURL(li);var xi=xt.toDataURL(Qe.imageType,Qe.imageQuality);Oe(xi)},Mn.src=li})},Ge}(),ze=function(){},ee=function(){function Ge(Ae){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+Ae+"_"}return Object.defineProperty(Ge.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(Ge.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(Ge.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(Ge.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(Ge.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),Ge.prototype.addClass=function(Ae){return this.styleSheet===void 0&&this.addStyleSheet(),Ae.name=""+this.classNamePrefix+Ae.localName,this.classes.push(Ae),this.styleSheet.sheet.insertRule("."+Ae.name+" {"+Ae.style+"}",this.styleSheet.sheet.cssRules.length),Ae},Ge.prototype.addRule=function(Ae){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(Ae),this.styleSheet.sheet.insertRule(Ae.selector+" {"+Ae.style+"}",this.styleSheet.sheet.cssRules.length)},Ge.prototype.addStyleSheet=function(){var Ae;this.styleSheet=document.createElement("style"),((Ae=this.styleSheetRoot)!==null&&Ae!==void 0?Ae:document.head).appendChild(this.styleSheet),this.addRule(new ne("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new ne("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new ne("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new ge("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new ge("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},Ge.prototype.removeStyleSheet=function(){var Ae;this.styleSheet&&(((Ae=this.styleSheetRoot)!==null&&Ae!==void 0?Ae:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Ge}(),ne=function(Ge,Ae){this.selector=Ge,this.style=Ae},ge=function(Ge,Ae){this.localName=Ge,this.style=Ae},ue=function(){function Ge(Ae,xe,je,Qe,Oe){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=Ae,this.displayMode=xe,this.markerItems=je,this.uiStyleSettings=Qe,this.styles=Oe,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return Ge.prototype.show=function(Ae){var xe=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Ae,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var je=document.createElement("div");je.className=this.toolbarBlockStyleClass.name,je.style.whiteSpace="nowrap",this.uiContainer.appendChild(je),this.addActionButton(je,'<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(je,'<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(je,'<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(je,'<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(je,'<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(je,'<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(je,'<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(je,'<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(Oe){var xt=document.createElement("div");xt.className=""+xe.toolbarButtonStyleClass.name,xt.setAttribute("data-type-name",Oe.typeName),xt.innerHTML=Oe.icon,xt.addEventListener("click",function(){xe.markerToolbarButtonClicked(xt,Oe)}),xe.buttons.push(xt),xe.markerButtons.push(xt)}),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 Qe=document.createElement("div");Qe.className=this.toolbarBlockStyleClass.name,Qe.style.whiteSpace="nowrap",Qe.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Qe),this.addActionButton(Qe,'<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(Qe,'<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()},Ge.prototype.addButtonClickListener=function(Ae){this.buttonClickListeners.push(Ae)},Ge.prototype.removeButtonClickListener=function(Ae){this.buttonClickListeners.indexOf(Ae)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Ae),1)},Ge.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Ge.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var Ae=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var xe=0;xe<this.markerButtons.length;xe++)xe<Ae||xe===Ae&&this.markerButtons.length-1===Ae?this.markerButtonBlock.appendChild(this.markerButtons[xe]):(xe===Ae&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[xe]))}},Ge.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")},Ge.prototype.resetButtonStyles=function(){var Ae=this;this.buttons.forEach(function(xe){xe.className=xe.className.replace(Ae.uiStyleSettings.toolbarButtonStyleColorsClassName?Ae.uiStyleSettings.toolbarButtonStyleColorsClassName:Ae.toolbarButtonStyleColorsClass.name,"").trim(),xe.className=xe.className.replace(Ae.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?Ae.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:Ae.toolbarActiveButtonStyleColorsClass.name,"").trim(),xe.className+=" "+(Ae.uiStyleSettings.toolbarButtonStyleColorsClassName?Ae.uiStyleSettings.toolbarButtonStyleColorsClassName:Ae.toolbarButtonStyleColorsClass.name)})},Ge.prototype.addActionButton=function(Ae,xe,je){var Qe=this,Oe=document.createElement("div");switch(Oe.className=""+this.toolbarButtonStyleClass.name,Oe.innerHTML=xe,Oe.setAttribute("data-action",je),Oe.addEventListener("click",function(){Qe.actionToolbarButtonClicked(Oe,je)}),je){case"select":Oe.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Oe.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Oe.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Oe.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Oe.style.fill=this.uiStyleSettings.closeButtonColor}Ae.appendChild(Oe),this.buttons.push(Oe)},Ge.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ge("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 ge("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new ge("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new ge("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 ge("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var Ae=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new ge("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*Ae)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*Ae)+`px;
padding: `+Ae+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new ge("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new ge("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new ne("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new ne("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},Ge.prototype.markerToolbarButtonClicked=function(Ae,xe){this.setActiveButton(Ae),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(je){return je("marker",xe)}),this.markerButtonOverflowBlock.style.display="none"},Ge.prototype.actionToolbarButtonClicked=function(Ae,xe){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(je){return je("action",xe)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Ge.prototype.setActiveButton=function(Ae){this.resetButtonStyles(),Ae.className=Ae.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),Ae.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Ge.prototype.setActiveMarkerButton=function(Ae){var xe=this.markerButtons.find(function(je){return je.getAttribute("data-type-name")===Ae});xe&&this.setActiveButton(xe)},Ge.prototype.setCurrentMarker=function(Ae){var xe=this;this.currentMarker=Ae,this.buttons.filter(function(je){return/delete|notes/.test(je.getAttribute("data-action"))}).forEach(function(je){xe.currentMarker===void 0?(je.style.fillOpacity="0.4",je.style.pointerEvents="none"):(je.style.fillOpacity="1",je.style.pointerEvents="all")})},Ge}(),me=function(){function Ge(Ae,xe,je,Qe){this.panels=[],this.panelButtons=[],this.markerjsContainer=Ae,this.displayMode=xe,this.uiStyleSettings=je,this.styles=Qe,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Ge.prototype.addStyles=function(){var Ae;this.toolboxStyleClass=this.styles.addClass(new ge("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 ge("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var xe=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new ge("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new ge("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new ge("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 ge("toolbox-panel-row_colors",`
background-color: `+((Ae=this.uiStyleSettings.toolboxBackgroundColor)!==null&&Ae!==void 0?Ae:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new ge("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*xe)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*xe)+`px;
padding: `+xe+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new ge("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new ge("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new ne("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new ne("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},Ge.prototype.show=function(Ae){var xe;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Ae,this.uiContainer.className=this.toolboxStyleClass.name+" "+((xe=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&xe!==void 0?xe:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Ge.prototype.setPanelButtons=function(Ae){var xe,je,Qe=this;this.panels=Ae,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((xe=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&xe!==void 0?xe:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((je=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&je!==void 0?je:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Oe){var xt;Oe.uiStyleSettings=Qe.uiStyleSettings;var hn=document.createElement("div");hn.className=Qe.toolboxButtonStyleClass.name+" "+((xt=Qe.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&xt!==void 0?xt:Qe.toolboxButtonStyleColorsClass.name),hn.innerHTML=Oe.icon,hn.title=Oe.title,hn.addEventListener("click",function(){Qe.panelButtonClick(Oe)}),Qe.panelButtons.push(hn),Qe.buttonRow.appendChild(hn)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Ge.prototype.panelButtonClick=function(Ae){var xe=this,je=-1;if(Ae!==this.activePanel){je=this.panels.indexOf(Ae),this.panelRow.innerHTML="";var Qe=Ae.getUi();Qe.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Qe),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=Ae}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){xe.displayMode==="inline"?xe.panelRow.style.display="none":xe.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Oe,xt){var hn,Pn;Oe.className=xe.toolboxButtonStyleClass.name+" "+(xt===je?""+((hn=xe.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&hn!==void 0?hn:xe.toolboxActiveButtonStyleColorsClass.name):""+((Pn=xe.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Pn!==void 0?Pn:xe.toolboxButtonStyleColorsClass.name))})},Ge}(),Se=function(Ge,Ae){this.title=Ge,this.icon=Ae},Ne=function(Ge){function Ae(xe,je,Qe,Oe){var xt=Ge.call(this,xe,Oe||'<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 xt.colors=[],xt.addTransparent=!1,xt.colorBoxes=[],xt.colors=je,xt.currentColor=Qe,xt.setCurrentColor=xt.setCurrentColor.bind(xt),xt.getColorBox=xt.getColorBox.bind(xt),xt}return Ee(Ae,Ge),Ae.prototype.getUi=function(){var xe=this,je=document.createElement("div");return je.style.overflow="hidden",je.style.whiteSpace="nowrap",this.colors.forEach(function(Qe){var Oe=xe.getColorBox(Qe);je.appendChild(Oe),xe.colorBoxes.push(Oe)}),je},Ae.prototype.getColorBox=function(xe){var je=this,Qe=this.uiStyleSettings.toolbarHeight/4,Oe=this.uiStyleSettings.toolbarHeight-Qe,xt=document.createElement("div");xt.style.display="inline-block",xt.style.boxSizing="content-box",xt.style.width=Oe-2+"px",xt.style.height=Oe-2+"px",xt.style.padding="1px",xt.style.marginRight="2px",xt.style.marginBottom="2px",xt.style.borderWidth="2px",xt.style.borderStyle="solid",xt.style.borderRadius=(Oe+2)/2+"px",xt.style.borderColor=xe===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",xt.addEventListener("click",function(){je.setCurrentColor(xe,xt)});var hn=document.createElement("div");return hn.style.display="inline-block",hn.style.width=Oe-2+"px",hn.style.height=Oe-2+"px",hn.style.backgroundColor=xe,hn.style.borderRadius=Oe/2+"px",xe==="transparent"&&(hn.style.fill=this.uiStyleSettings.toolboxAccentColor,hn.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>`),xt.appendChild(hn),xt},Ae.prototype.setCurrentColor=function(xe,je){var Qe=this;this.currentColor=xe,this.colorBoxes.forEach(function(Oe){Oe.style.borderColor=Oe===je?Qe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(xe)},Ae}(Se),ke=function(){function Ge(Ae,xe,je){this._state="new",this._isSelected=!1,this._container=Ae,this._overlayContainer=xe,this.globalSettings=je,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Ge.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Ge.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Ge.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Ge.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Ge.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Ge.prototype.ownsTarget=function(Ae){return!1},Object.defineProperty(Ge.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Ge.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Ge.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Ge.prototype.pointerDown=function(Ae,xe){},Ge.prototype.dblClick=function(Ae,xe){},Ge.prototype.manipulate=function(Ae){},Ge.prototype.pointerUp=function(Ae){this.stateChanged()},Ge.prototype.dispose=function(){},Ge.prototype.addMarkerVisualToContainer=function(Ae){this.container.childNodes.length>0?this.container.insertBefore(Ae,this.container.childNodes[0]):this.container.appendChild(Ae)},Ge.prototype.getState=function(){return{typeName:Ge.typeName,state:this.state,notes:this.notes}},Ge.prototype.restoreState=function(Ae){this._state=Ae.state,this.notes=Ae.notes},Ge.prototype.scale=function(Ae,xe){},Ge.prototype.colorChanged=function(Ae){this.onColorChanged&&this.onColorChanged(Ae),this.stateChanged()},Ge.prototype.fillColorChanged=function(Ae){this.onFillColorChanged&&this.onFillColorChanged(Ae),this.stateChanged()},Ge.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var Ae=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),Ae.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(Ae)&&this.onStateChanged(this)}},Ge.typeName="MarkerBase",Ge}(),Te=function(){function Ge(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Ge.prototype.findGripByVisual=function(Ae){return this.topLeft.ownsTarget(Ae)?this.topLeft:this.topCenter.ownsTarget(Ae)?this.topCenter:this.topRight.ownsTarget(Ae)?this.topRight:this.centerLeft.ownsTarget(Ae)?this.centerLeft:this.centerRight.ownsTarget(Ae)?this.centerRight:this.bottomLeft.ownsTarget(Ae)?this.bottomLeft:this.bottomCenter.ownsTarget(Ae)?this.bottomCenter:this.bottomRight.ownsTarget(Ae)?this.bottomRight:void 0},Ge}(),We=function(){function Ge(){this.GRIP_SIZE=10,this.visual=tt.createGroup(),this.visual.appendChild(tt.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(tt.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Ge.prototype.ownsTarget=function(Ae){return Ae===this.visual||Ae===this.visual.childNodes[0]||Ae===this.visual.childNodes[1]},Ge}(),$e=function(){function Ge(){}return Ge.toITransformMatrix=function(Ae){return{a:Ae.a,b:Ae.b,c:Ae.c,d:Ae.d,e:Ae.e,f:Ae.f}},Ge.toSVGMatrix=function(Ae,xe){return Ae.a=xe.a,Ae.b=xe.b,Ae.c=xe.c,Ae.d=xe.d,Ae.e=xe.e,Ae.f=xe.f,Ae},Ge}(),st=function(Ge){function Ae(xe,je,Qe){var Oe=Ge.call(this,xe,je,Qe)||this;return Oe.left=0,Oe.top=0,Oe.width=0,Oe.height=0,Oe.defaultSize={x:50,y:20},Oe.offsetX=0,Oe.offsetY=0,Oe.rotationAngle=0,Oe.CB_DISTANCE=10,Oe._suppressMarkerCreateEvent=!1,Oe.container.transform.baseVal.appendItem(tt.createTransform()),Oe.setupControlBox(),Oe}return Ee(Ae,Ge),Object.defineProperty(Ae.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"visual",{get:function(){return this._visual},set:function(xe){this._visual=xe;var je=tt.createTransform();this._visual.transform.baseVal.appendItem(je)},enumerable:!1,configurable:!0}),Ae.prototype.ownsTarget=function(xe){return!!Ge.prototype.ownsTarget.call(this,xe)||!!(this.controlGrips.findGripByVisual(xe)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(xe))},Ae.prototype.pointerDown=function(xe,je){Ge.prototype.pointerDown.call(this,xe,je),this.state==="new"&&(this.left=xe.x,this.top=xe.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Qe=this.unrotatePoint(xe);if(this.manipulationStartX=Qe.x,this.manipulationStartY=Qe.y,this.offsetX=Qe.x-this.left,this.offsetY=Qe.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(je),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(je)){this.activeGrip=this.rotatorGrip;var Oe=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Oe.x-this.width/2,this.top=Oe.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var xt=this.container.transform.baseVal.getItem(0);xt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(xt,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Ae.prototype.pointerUp=function(xe){var je=this.state;Ge.prototype.pointerUp.call(this,xe),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(xe),this._state="select",je==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},Ae.prototype.moveVisual=function(xe){this.visual.style.transform="translate("+xe.x+"px, "+xe.y+"px)"},Ae.prototype.manipulate=function(xe){var je=this.unrotatePoint(xe);this.state==="creating"?this.resize(xe):this.state==="move"?(this.left=this.manipulationStartLeft+(je.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(je.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(je):this.state==="rotate"&&this.rotate(xe)},Ae.prototype.resize=function(xe){var je=this.manipulationStartLeft,Qe=this.manipulationStartWidth,Oe=this.manipulationStartTop,xt=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:je=this.manipulationStartLeft+xe.x-this.manipulationStartX,Qe=this.manipulationStartWidth+this.manipulationStartLeft-je;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Qe=this.manipulationStartWidth+xe.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Oe=this.manipulationStartTop+xe.y-this.manipulationStartY,xt=this.manipulationStartHeight+this.manipulationStartTop-Oe;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:xt=this.manipulationStartHeight+xe.y-this.manipulationStartY}Qe>=0?(this.left=je,this.width=Qe):(this.left=je+Qe,this.width=-Qe),xt>=0?(this.top=Oe,this.height=xt):(this.top=Oe+xt,this.height=-xt),this.setSize()},Ae.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Ae.prototype.rotate=function(xe){if(Math.abs(xe.x-this.centerX)>.1){var je=Math.sign(xe.x-this.centerX);this.rotationAngle=180*Math.atan((xe.y-this.centerY)/(xe.x-this.centerX))/Math.PI+90*je,this.applyRotation()}},Ae.prototype.applyRotation=function(){var xe=this.container.transform.baseVal.getItem(0);xe.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(xe,0)},Ae.prototype.rotatePoint=function(xe){if(this.rotationAngle===0)return xe;var je=this.container.getCTM(),Qe=tt.createPoint(xe.x,xe.y);return{x:(Qe=Qe.matrixTransform(je)).x,y:Qe.y}},Ae.prototype.unrotatePoint=function(xe){if(this.rotationAngle===0)return xe;var je=this.container.getCTM();je=je.inverse();var Qe=tt.createPoint(xe.x,xe.y);return{x:(Qe=Qe.matrixTransform(je)).x,y:Qe.y}},Ae.prototype.select=function(){Ge.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Ae.prototype.deselect=function(){Ge.prototype.deselect.call(this),this.controlBox.style.display="none"},Ae.prototype.setupControlBox=function(){this.controlBox=tt.createGroup();var xe=tt.createTransform();xe.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(xe),this.container.appendChild(this.controlBox),this.controlRect=tt.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=tt.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 Te,this.addControlGrips(),this.controlBox.style.display="none"},Ae.prototype.adjustControlBox=function(){var xe=this.controlBox.transform.baseVal.getItem(0);xe.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(xe,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()},Ae.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()},Ae.prototype.createGrip=function(){var xe=new We;return xe.visual.transform.baseVal.appendItem(tt.createTransform()),this.controlBox.appendChild(xe.visual),xe},Ae.prototype.positionGrips=function(){var xe=this.controlGrips.topLeft.GRIP_SIZE,je=-xe/2,Qe=je,Oe=(this.width+this.CB_DISTANCE)/2-xe/2,xt=(this.height+this.CB_DISTANCE)/2-xe/2,hn=this.height+this.CB_DISTANCE-xe/2,Pn=this.width+this.CB_DISTANCE-xe/2;this.positionGrip(this.controlGrips.topLeft.visual,je,Qe),this.positionGrip(this.controlGrips.topCenter.visual,Oe,Qe),this.positionGrip(this.controlGrips.topRight.visual,Pn,Qe),this.positionGrip(this.controlGrips.centerLeft.visual,je,xt),this.positionGrip(this.controlGrips.centerRight.visual,Pn,xt),this.positionGrip(this.controlGrips.bottomLeft.visual,je,hn),this.positionGrip(this.controlGrips.bottomCenter.visual,Oe,hn),this.positionGrip(this.controlGrips.bottomRight.visual,Pn,hn),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Oe,Qe-3*this.CB_DISTANCE)},Ae.prototype.positionGrip=function(xe,je,Qe){var Oe=xe.transform.baseVal.getItem(0);Oe.setTranslate(je,Qe),xe.transform.baseVal.replaceItem(Oe,0)},Ae.prototype.hideControlBox=function(){this.controlBox.style.display="none"},Ae.prototype.showControlBox=function(){this.controlBox.style.display=""},Ae.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:$e.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:$e.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Ge.prototype.getState.call(this))},Ae.prototype.restoreState=function(xe){Ge.prototype.restoreState.call(this,xe);var je=xe;this.left=je.left,this.top=je.top,this.width=je.width,this.height=je.height,this.rotationAngle=je.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix($e.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,je.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix($e.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,je.containerTransformMatrix))},Ae.prototype.scale=function(xe,je){Ge.prototype.scale.call(this,xe,je);var Qe=this.rotatePoint({x:this.left,y:this.top}),Oe=this.unrotatePoint({x:Qe.x*xe,y:Qe.y*je});this.left=Oe.x,this.top=Oe.y,this.width=this.width*xe,this.height=this.height*je,this.adjustControlBox()},Ae}(ke),ut=function(Ge){function Ae(xe,je,Qe){var Oe=Ge.call(this,xe,je,Qe)||this;return Oe.fillColor="transparent",Oe.strokeColor="transparent",Oe.strokeWidth=0,Oe.strokeDasharray="",Oe.opacity=1,Oe.setStrokeColor=Oe.setStrokeColor.bind(Oe),Oe.setFillColor=Oe.setFillColor.bind(Oe),Oe.setStrokeWidth=Oe.setStrokeWidth.bind(Oe),Oe.setStrokeDasharray=Oe.setStrokeDasharray.bind(Oe),Oe.createVisual=Oe.createVisual.bind(Oe),Oe}return Ee(Ae,Ge),Ae.prototype.ownsTarget=function(xe){return!(!Ge.prototype.ownsTarget.call(this,xe)&&xe!==this.visual)},Ae.prototype.createVisual=function(){this.visual=tt.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)},Ae.prototype.pointerDown=function(xe,je){Ge.prototype.pointerDown.call(this,xe,je),this.state==="new"&&(this.createVisual(),this.moveVisual(xe),this._state="creating")},Ae.prototype.manipulate=function(xe){Ge.prototype.manipulate.call(this,xe)},Ae.prototype.resize=function(xe){Ge.prototype.resize.call(this,xe),this.setSize()},Ae.prototype.setSize=function(){Ge.prototype.setSize.call(this),tt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Ae.prototype.pointerUp=function(xe){Ge.prototype.pointerUp.call(this,xe),this.setSize()},Ae.prototype.setStrokeColor=function(xe){this.strokeColor=xe,this.visual&&tt.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(xe),this.stateChanged()},Ae.prototype.setFillColor=function(xe){this.fillColor=xe,this.visual&&tt.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Ae.prototype.setStrokeWidth=function(xe){this.strokeWidth=xe,this.visual&&tt.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Ae.prototype.setStrokeDasharray=function(xe){this.strokeDasharray=xe,this.visual&&tt.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Ae.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Ge.prototype.getState.call(this))},Ae.prototype.restoreState=function(xe){var je=xe;this.fillColor=je.fillColor,this.strokeColor=je.strokeColor,this.strokeWidth=je.strokeWidth,this.strokeDasharray=je.strokeDasharray,this.opacity=je.opacity,this.createVisual(),Ge.prototype.restoreState.call(this,xe),this.setSize()},Ae.prototype.scale=function(xe,je){Ge.prototype.scale.call(this,xe,je),this.setSize()},Ae.title="Rectangle marker",Ae}(st),Mt=function(Ge){function Ae(xe,je,Qe,Oe){var xt=Ge.call(this,xe,Oe||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return xt.widths=[],xt.widthBoxes=[],xt.widths=je,xt.currentWidth=Qe,xt.setCurrentWidth=xt.setCurrentWidth.bind(xt),xt}return Ee(Ae,Ge),Ae.prototype.getUi=function(){var xe=this,je=document.createElement("div");return je.style.display="flex",je.style.overflow="hidden",je.style.flexGrow="2",this.widths.forEach(function(Qe){var Oe=document.createElement("div");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=Qe===xe.currentWidth?xe.uiStyleSettings.toolboxAccentColor:"transparent",Oe.addEventListener("click",function(){xe.setCurrentWidth(Qe,Oe)}),je.appendChild(Oe);var xt=document.createElement("div");xt.innerText=Qe.toString(),xt.style.marginRight="5px",Oe.appendChild(xt);var hn=document.createElement("div");hn.style.minHeight="20px",hn.style.flexGrow="2",hn.style.display="flex",hn.style.alignItems="center";var Pn=document.createElement("hr");Pn.style.minWidth="20px",Pn.style.border="0px",Pn.style.borderTop=Qe+"px solid "+xe.uiStyleSettings.toolboxColor,Pn.style.flexGrow="2",hn.appendChild(Pn),Oe.appendChild(hn),xe.widthBoxes.push(Oe)}),je},Ae.prototype.setCurrentWidth=function(xe,je){var Qe=this;this.currentWidth=xe,this.widthBoxes.forEach(function(Oe){Oe.style.borderColor=Oe===je?Qe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Ae}(Se),nt=function(Ge){function Ae(xe,je,Qe,Oe){var xt=Ge.call(this,xe,Oe||'<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 xt.styles=[],xt.styleBoxes=[],xt.styles=je,xt.currentStyle=Qe,xt.setCurrentStyle=xt.setCurrentStyle.bind(xt),xt}return Ee(Ae,Ge),Ae.prototype.getUi=function(){var xe=this,je=document.createElement("div");return je.style.display="flex",je.style.overflow="hidden",je.style.flexGrow="2",this.styles.forEach(function(Qe){var Oe=document.createElement("div");Oe.style.display="flex",Oe.style.alignItems="center",Oe.style.justifyContent="space-between",Oe.style.padding="5px",Oe.style.borderWidth="2px",Oe.style.borderStyle="solid",Oe.style.overflow="hidden",Oe.style.maxWidth=100/xe.styles.length-5+"%",Oe.style.borderColor=Qe===xe.currentStyle?xe.uiStyleSettings.toolboxAccentColor:"transparent",Oe.addEventListener("click",function(){xe.setCurrentStyle(Qe,Oe)}),je.appendChild(Oe);var xt=document.createElement("div");xt.style.minHeight="20px",xt.style.flexGrow="2",xt.style.overflow="hidden";var hn=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+xe.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(Qe!==""?'stroke-dasharray="'+Qe+'"':"")+` />
</svg>`;xt.innerHTML=hn,Oe.appendChild(xt),xe.styleBoxes.push(Oe)}),je},Ae.prototype.setCurrentStyle=function(xe,je){var Qe=this;this.currentStyle=xe,this.styleBoxes.forEach(function(Oe){Oe.style.borderColor=Oe===je?Qe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Ae}(Se),$t=function(Ge){function Ae(xe,je,Qe){var Oe=Ge.call(this,xe,je,Qe)||this;return Oe.strokeColor=Qe.defaultColor,Oe.strokeWidth=Qe.defaultStrokeWidth,Oe.strokeDasharray=Qe.defaultStrokeDasharray,Oe.strokePanel=new Ne("Line color",Qe.defaultColorSet,Qe.defaultColor),Oe.strokePanel.onColorChanged=Oe.setStrokeColor,Oe.strokeWidthPanel=new Mt("Line width",Qe.defaultStrokeWidths,Qe.defaultStrokeWidth),Oe.strokeWidthPanel.onWidthChanged=Oe.setStrokeWidth,Oe.strokeStylePanel=new nt("Line style",Qe.defaultStrokeDasharrays,Qe.defaultStrokeDasharray),Oe.strokeStylePanel.onStyleChanged=Oe.setStrokeDasharray,Oe}return Ee(Ae,Ge),Object.defineProperty(Ae.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ae.prototype.getState=function(){var xe=Ge.prototype.getState.call(this);return xe.typeName=Ae.typeName,xe},Ae.typeName="FrameMarker",Ae.title="Frame marker",Ae.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',Ae}(ut),Pt=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"},dn=function(Ge){function Ae(xe,je,Qe){var Oe=Ge.call(this,xe,je,Qe)||this;return Oe.x1=0,Oe.y1=0,Oe.x2=0,Oe.y2=0,Oe.defaultLength=50,Oe.manipulationStartX=0,Oe.manipulationStartY=0,Oe.manipulationStartX1=0,Oe.manipulationStartY1=0,Oe.manipulationStartX2=0,Oe.manipulationStartY2=0,Oe.setupControlBox(),Oe}return Ee(Ae,Ge),Ae.prototype.ownsTarget=function(xe){return!!Ge.prototype.ownsTarget.call(this,xe)||!(!this.grip1.ownsTarget(xe)&&!this.grip2.ownsTarget(xe))},Ae.prototype.pointerDown=function(xe,je){Ge.prototype.pointerDown.call(this,xe,je),this.manipulationStartX=xe.x,this.manipulationStartY=xe.y,this.state==="new"&&(this.x1=xe.x,this.y1=xe.y,this.x2=xe.x,this.y2=xe.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(je)?this.activeGrip=this.grip1:this.grip2.ownsTarget(je)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},Ae.prototype.pointerUp=function(xe){var je=this.state;Ge.prototype.pointerUp.call(this,xe),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(xe),this._state="select",je==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},Ae.prototype.adjustVisual=function(){},Ae.prototype.manipulate=function(xe){this.state==="creating"?this.resize(xe):this.state==="move"?(this.x1=this.manipulationStartX1+xe.x-this.manipulationStartX,this.y1=this.manipulationStartY1+xe.y-this.manipulationStartY,this.x2=this.manipulationStartX2+xe.x-this.manipulationStartX,this.y2=this.manipulationStartY2+xe.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(xe)},Ae.prototype.resize=function(xe){switch(this.activeGrip){case this.grip1:this.x1=xe.x,this.y1=xe.y;break;case this.grip2:case void 0:this.x2=xe.x,this.y2=xe.y}this.adjustVisual(),this.adjustControlBox()},Ae.prototype.select=function(){Ge.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Ae.prototype.deselect=function(){Ge.prototype.deselect.call(this),this.controlBox.style.display="none"},Ae.prototype.setupControlBox=function(){this.controlBox=tt.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},Ae.prototype.adjustControlBox=function(){this.positionGrips()},Ae.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},Ae.prototype.createGrip=function(){var xe=new We;return xe.visual.transform.baseVal.appendItem(tt.createTransform()),this.controlBox.appendChild(xe.visual),xe},Ae.prototype.positionGrips=function(){var xe=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-xe/2,this.y1-xe/2),this.positionGrip(this.grip2.visual,this.x2-xe/2,this.y2-xe/2)},Ae.prototype.positionGrip=function(xe,je,Qe){var Oe=xe.transform.baseVal.getItem(0);Oe.setTranslate(je,Qe),xe.transform.baseVal.replaceItem(Oe,0)},Ae.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Ge.prototype.getState.call(this))},Ae.prototype.restoreState=function(xe){Ge.prototype.restoreState.call(this,xe);var je=xe;this.x1=je.x1,this.y1=je.y1,this.x2=je.x2,this.y2=je.y2},Ae.prototype.scale=function(xe,je){Ge.prototype.scale.call(this,xe,je),this.x1=this.x1*xe,this.y1=this.y1*je,this.x2=this.x2*xe,this.y2=this.y2*je,this.adjustVisual(),this.adjustControlBox()},Ae}(ke),zt=function(Ge){function Ae(xe,je,Qe){var Oe=Ge.call(this,xe,je,Qe)||this;return Oe.strokeColor="transparent",Oe.strokeWidth=0,Oe.strokeDasharray="",Oe.setStrokeColor=Oe.setStrokeColor.bind(Oe),Oe.setStrokeWidth=Oe.setStrokeWidth.bind(Oe),Oe.setStrokeDasharray=Oe.setStrokeDasharray.bind(Oe),Oe.strokeColor=Qe.defaultColor,Oe.strokeWidth=Qe.defaultStrokeWidth,Oe.strokeDasharray=Qe.defaultStrokeDasharray,Oe.strokePanel=new Ne("Line color",Qe.defaultColorSet,Qe.defaultColor),Oe.strokePanel.onColorChanged=Oe.setStrokeColor,Oe.strokeWidthPanel=new Mt("Line width",Qe.defaultStrokeWidths,Qe.defaultStrokeWidth),Oe.strokeWidthPanel.onWidthChanged=Oe.setStrokeWidth,Oe.strokeStylePanel=new nt("Line style",Qe.defaultStrokeDasharrays,Qe.defaultStrokeDasharray),Oe.strokeStylePanel.onStyleChanged=Oe.setStrokeDasharray,Oe}return Ee(Ae,Ge),Ae.prototype.ownsTarget=function(xe){return!(!Ge.prototype.ownsTarget.call(this,xe)&&xe!==this.visual&&xe!==this.selectorLine&&xe!==this.visibleLine)},Ae.prototype.createVisual=function(){this.visual=tt.createGroup(),this.selectorLine=tt.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=tt.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)},Ae.prototype.pointerDown=function(xe,je){Ge.prototype.pointerDown.call(this,xe,je),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},Ae.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()),tt.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),tt.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),tt.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Ae.prototype.setStrokeColor=function(xe){this.strokeColor=xe,this.adjustVisual(),this.colorChanged(xe)},Ae.prototype.setStrokeWidth=function(xe){this.strokeWidth=xe,this.adjustVisual()},Ae.prototype.setStrokeDasharray=function(xe){this.strokeDasharray=xe,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Ae.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ae.prototype.getState=function(){var xe=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Ge.prototype.getState.call(this));return xe.typeName=Ae.typeName,xe},Ae.prototype.restoreState=function(xe){Ge.prototype.restoreState.call(this,xe);var je=xe;this.strokeColor=je.strokeColor,this.strokeWidth=je.strokeWidth,this.strokeDasharray=je.strokeDasharray,this.createVisual(),this.adjustVisual()},Ae.typeName="LineMarker",Ae.title="Line marker",Ae.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',Ae}(dn),Xt=function(Ge){function Ae(xe,je,Qe,Oe){var xt=Ge.call(this,xe,Oe||'<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 xt.fonts=[],xt.fontBoxes=[],xt.fonts=je,xt.currentFont=Qe,xt.setCurrentFont=xt.setCurrentFont.bind(xt),xt}return Ee(Ae,Ge),Ae.prototype.getUi=function(){var xe=this,je=document.createElement("div");return je.style.overflow="hidden",je.style.flexGrow="2",this.fonts.forEach(function(Qe){var Oe=document.createElement("div");Oe.style.display="inline-block",Oe.style.alignItems="center",Oe.style.justifyContent="space-between",Oe.style.padding="5px",Oe.style.borderWidth="2px",Oe.style.borderStyle="solid",Oe.style.overflow="hidden",Oe.style.maxWidth=100/xe.fonts.length-5+"%",Oe.style.borderColor=Qe===xe.currentFont?xe.uiStyleSettings.toolboxAccentColor:"transparent",Oe.addEventListener("click",function(){xe.setCurrentFont(Qe,Oe)}),je.appendChild(Oe);var xt=document.createElement("div");xt.style.display="flex",xt.style.minHeight="20px",xt.style.flexGrow="2",xt.style.fontFamily=Qe,xt.style.overflow="hidden";var hn=document.createElement("div");hn.style.whiteSpace="nowrap",hn.style.overflow="hidden",hn.style.textOverflow="ellipsis",hn.innerHTML="The quick brown fox jumps over the lazy dog",xt.appendChild(hn),Oe.appendChild(xt),xe.fontBoxes.push(Oe)}),je},Ae.prototype.setCurrentFont=function(xe,je){var Qe=this;this.currentFont=xe,this.fontBoxes.forEach(function(Oe){Oe.style.borderColor=Oe===je?Qe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Ae}(Se),fn=function(Ge){function Ae(xe,je,Qe){var Oe=Ge.call(this,xe,je,Qe)||this;return Oe.color="transparent",Oe.padding=5,Oe.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Oe.text=Oe.DEFAULT_TEXT,Oe.isMoved=!1,Oe.color=Qe.defaultColor,Oe.fontFamily=Qe.defaultFontFamily,Oe.defaultSize={x:100,y:30},Oe.setColor=Oe.setColor.bind(Oe),Oe.setFont=Oe.setFont.bind(Oe),Oe.renderText=Oe.renderText.bind(Oe),Oe.sizeText=Oe.sizeText.bind(Oe),Oe.textEditDivClicked=Oe.textEditDivClicked.bind(Oe),Oe.showTextEditor=Oe.showTextEditor.bind(Oe),Oe.setSize=Oe.setSize.bind(Oe),Oe.positionTextEditor=Oe.positionTextEditor.bind(Oe),Oe.colorPanel=new Ne("Color",Qe.defaultColorSet,Qe.defaultColor),Oe.colorPanel.onColorChanged=Oe.setColor,Oe.fontFamilyPanel=new Xt("Font",Qe.defaultFontFamilies,Qe.defaultFontFamily),Oe.fontFamilyPanel.onFontChanged=Oe.setFont,Oe}return Ee(Ae,Ge),Ae.prototype.ownsTarget=function(xe){if(Ge.prototype.ownsTarget.call(this,xe)||xe===this.visual||xe===this.textElement||xe===this.bgRectangle)return!0;var je=!1;return this.textElement.childNodes.forEach(function(Qe){Qe===xe&&(je=!0)}),je},Ae.prototype.createVisual=function(){this.visual=tt.createGroup(),this.bgRectangle=tt.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=tt.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(tt.createTransform()),this.textElement.transform.baseVal.appendItem(tt.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},Ae.prototype.pointerDown=function(xe,je){Ge.prototype.pointerDown.call(this,xe,je),this.isMoved=!1,this.pointerDownPoint=xe,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(xe),this._state="creating")},Ae.prototype.renderText=function(){var xe=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(je){xe.textElement.appendChild(tt.createTSpan(je.trim()===""?" ":je.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Ae.prototype.getTextScale=function(){var xe=this.textElement.getBBox(),je=1;if(xe.width>0&&xe.height>0){var Qe=(1*this.width-this.width*this.padding*2/100)/xe.width,Oe=(1*this.height-this.height*this.padding*2/100)/xe.height;je=Math.min(Qe,Oe)}return je},Ae.prototype.getTextPosition=function(xe){var je=this.textElement.getBBox(),Qe=0,Oe=0;return je.width>0&&je.height>0&&(Qe=(this.width-je.width*xe)/2,Oe=this.height/2-je.height*xe/2),{x:Qe,y:Oe}},Ae.prototype.sizeText=function(){var xe=this.textElement.getBBox(),je=this.getTextScale(),Qe=this.getTextPosition(je);Qe.y-=xe.y*je,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Qe.x+"px, "+Qe.y+"px) scale("+je+", "+je+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Qe.x,Qe.y),this.textElement.transform.baseVal.getItem(1).setScale(je,je))},Ae.prototype.manipulate=function(xe){Ge.prototype.manipulate.call(this,xe),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(xe.x-this.pointerDownPoint.x)>5||Math.abs(xe.y-this.pointerDownPoint.y)>5)},Ae.prototype.resize=function(xe){Ge.prototype.resize.call(this,xe),this.isMoved=!0,this.setSize(),this.sizeText()},Ae.prototype.setSize=function(){Ge.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(tt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),tt.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},Ae.prototype.pointerUp=function(xe){var je=this.state;je==="creating"&&(this._suppressMarkerCreateEvent=!0),Ge.prototype.pointerUp.call(this,xe),this.setSize(),(je==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Ae.prototype.showTextEditor=function(){var xe=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(je){je.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var je=Number.parseFloat(xe.textEditor.style.fontSize);xe.textEditor.clientWidth>=Number.parseInt(xe.textEditor.style.maxWidth)&&je>.9;)je-=.1,xe.textEditor.style.fontSize=Math.max(je,.9)+"em"}),this.textEditor.addEventListener("keyup",function(je){je.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(je){if(je.clipboardData){var Qe=je.clipboardData.getData("text"),Oe=window.getSelection();if(!Oe.rangeCount)return!1;Oe.deleteFromDocument(),Oe.getRangeAt(0).insertNode(document.createTextNode(Qe)),je.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){xe.textEditDivClicked(xe.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},Ae.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var xe=this.getTextScale(),je=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Qe=this.textElement.getBBox(),Oe={x:Qe.width*xe,y:Qe.height*xe};je.x-=Oe.x/2,je.y-=Oe.y/2,this.textEditor.style.top=je.y+"px",this.textEditor.style.left=je.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-je.x+"px",this.textEditor.style.fontSize=Math.max(16*xe,12)+"px",this.textElement.style.display="none"}},Ae.prototype.textEditDivClicked=function(xe){this.text=xe.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},Ae.prototype.select=function(){Ge.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Ae.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Ge.prototype.deselect.call(this)},Ae.prototype.dblClick=function(xe,je){Ge.prototype.dblClick.call(this,xe,je),this.showTextEditor()},Ae.prototype.setColor=function(xe){this.textElement&&tt.setAttributes(this.textElement,[["fill",xe]]),this.color=xe,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(xe)},Ae.prototype.setFont=function(xe){this.textElement&&tt.setAttributes(this.textElement,[["font-family",xe]]),this.fontFamily=xe,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},Ae.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},Ae.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(Ae.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Ae.prototype.getState=function(){var xe=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Ge.prototype.getState.call(this));return xe.typeName=Ae.typeName,xe},Ae.prototype.restoreState=function(xe){var je=xe;this.color=je.color,this.fontFamily=je.fontFamily,this.padding=je.padding,this.text=je.text,this.createVisual(),Ge.prototype.restoreState.call(this,xe),this.setSize()},Ae.prototype.scale=function(xe,je){Ge.prototype.scale.call(this,xe,je),this.setSize(),this.sizeText(),this.positionTextEditor()},Ae.typeName="TextMarker",Ae.title="Text marker",Ae.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>',Ae}(st),an=function(Ge){function Ae(xe,je,Qe){var Oe=Ge.call(this,xe,je,Qe)||this;return Oe.color="transparent",Oe.lineWidth=3,Oe.drawing=!1,Oe.pixelRatio=1,Oe.color=Qe.defaultColor,Oe.lineWidth=Qe.defaultStrokeWidth,Oe.pixelRatio=Qe.freehandPixelRatio,Oe.setColor=Oe.setColor.bind(Oe),Oe.addCanvas=Oe.addCanvas.bind(Oe),Oe.finishCreation=Oe.finishCreation.bind(Oe),Oe.setLineWidth=Oe.setLineWidth.bind(Oe),Oe.colorPanel=new Ne("Color",Qe.defaultColorSet,Qe.defaultColor),Oe.colorPanel.onColorChanged=Oe.setColor,Oe.lineWidthPanel=new Mt("Line width",Qe.defaultStrokeWidths,Qe.defaultStrokeWidth),Oe.lineWidthPanel.onWidthChanged=Oe.setLineWidth,Oe}return Ee(Ae,Ge),Ae.prototype.ownsTarget=function(xe){return!(!Ge.prototype.ownsTarget.call(this,xe)&&xe!==this.visual&&xe!==this.drawingImage)},Ae.prototype.createVisual=function(){this.visual=tt.createGroup(),this.drawingImage=tt.createImage(),this.visual.appendChild(this.drawingImage);var xe=tt.createTransform();this.visual.transform.baseVal.appendItem(xe),this.addMarkerVisualToContainer(this.visual)},Ae.prototype.pointerDown=function(xe,je){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(xe.x,xe.y),this.drawing=!0):Ge.prototype.pointerDown.call(this,xe,je)},Ae.prototype.manipulate=function(xe){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(xe.x,xe.y),this.canvasContext.stroke()):Ge.prototype.manipulate.call(this,xe)},Ae.prototype.resize=function(xe){Ge.prototype.resize.call(this,xe),tt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),tt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},Ae.prototype.pointerUp=function(xe){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Ge.prototype.pointerUp.call(this,xe)},Ae.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)},Ae.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Ge.prototype.select.call(this)},Ae.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Ge.prototype.deselect.call(this)},Ae.prototype.finishCreation=function(){for(var xe=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),je=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Qe=je[0],Oe=je[1],xt=je[2],hn=je[3],Pn=!1,wt=0;wt<this.canvasElement.height;wt++)for(var nn=0;nn<this.canvasElement.width;nn++)xe.data[wt*this.canvasElement.width*4+4*nn+3]>0&&(Pn=!0,wt<Oe&&(Oe=wt),nn<Qe&&(Qe=nn),wt>hn&&(hn=wt),nn>xt&&(xt=nn));if(Pn){this.left=Qe/this.pixelRatio,this.top=Oe/this.pixelRatio,this.width=(xt-Qe)/this.pixelRatio,this.height=(hn-Oe)/this.pixelRatio;var Mn=document.createElement("canvas");Mn.width=xt-Qe,Mn.height=hn-Oe,Mn.getContext("2d").putImageData(this.canvasContext.getImageData(Qe,Oe,xt-Qe,hn-Oe),0,0),this.drawingImgUrl=Mn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},Ae.prototype.setDrawingImage=function(){tt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),tt.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},Ae.prototype.setColor=function(xe){this.color=xe,this.colorChanged(xe)},Ae.prototype.setLineWidth=function(xe){this.lineWidth=xe},Object.defineProperty(Ae.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),Ae.prototype.getState=function(){var xe=Object.assign({drawingImgUrl:this.drawingImgUrl},Ge.prototype.getState.call(this));return xe.typeName=Ae.typeName,xe},Ae.prototype.restoreState=function(xe){this.createVisual(),Ge.prototype.restoreState.call(this,xe),this.drawingImgUrl=xe.drawingImgUrl,this.setDrawingImage()},Ae.prototype.scale=function(xe,je){Ge.prototype.scale.call(this,xe,je),this.setDrawingImage()},Ae.typeName="FreehandMarker",Ae.title="Freehand marker",Ae.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>',Ae}(st),it=function(Ge){function Ae(xe,je,Qe){var Oe=Ge.call(this,xe,Qe||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Oe.typeBoxes=[],Oe.currentType=je,Oe.setCurrentType=Oe.setCurrentType.bind(Oe),Oe}return Ee(Ae,Ge),Ae.prototype.getUi=function(){var xe=this,je=document.createElement("div");je.style.display="flex",je.style.overflow="hidden",je.style.flexGrow="2";for(var Qe=function(hn){var Pn="both";switch(hn){case 0:Pn="both";break;case 1:Pn="start";break;case 2:Pn="end";break;case 3:Pn="none"}var wt=document.createElement("div");if(wt.style.display="flex",wt.style.flexGrow="2",wt.style.alignItems="center",wt.style.justifyContent="space-between",wt.style.padding="5px",wt.style.borderWidth="2px",wt.style.borderStyle="solid",wt.style.borderColor=Pn===Oe.currentType?Oe.uiStyleSettings.toolboxAccentColor:"transparent",wt.addEventListener("click",function(){xe.setCurrentType(Pn,wt)}),je.appendChild(wt),Pn==="both"||Pn==="start"){var nn=document.createElement("div");nn.style.display="flex",nn.style.alignItems="center",nn.style.minHeight="20px",nn.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="`+(Oe.uiStyleSettings!==void 0?Oe.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,nn.style.marginLeft="5px",wt.appendChild(nn)}var Mn=document.createElement("div");Mn.style.display="flex",Mn.style.alignItems="center",Mn.style.minHeight="20px",Mn.style.flexGrow="2";var Zn=document.createElement("hr");if(Zn.style.minWidth="20px",Zn.style.border="0px",Zn.style.borderTop="3px solid "+(Oe.uiStyleSettings!==void 0?Oe.uiStyleSettings.toolboxColor:"#eeeeee"),Zn.style.flexGrow="2",Mn.appendChild(Zn),wt.appendChild(Mn),Pn==="both"||Pn==="end"){var li=document.createElement("div");li.style.display="flex",li.style.alignItems="center",li.style.minHeight="20px",li.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="`+(Oe.uiStyleSettings!==void 0?Oe.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,li.style.marginRight="5px",wt.appendChild(li)}Oe.typeBoxes.push(wt)},Oe=this,xt=0;xt<4;xt++)Qe(xt);return je},Ae.prototype.setCurrentType=function(xe,je){var Qe=this;this.currentType=xe,this.typeBoxes.forEach(function(Oe){Oe.style.borderColor=Oe===je?Qe.uiStyleSettings!==void 0?Qe.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Ae}(Se),Ve=function(Ge){function Ae(xe,je,Qe){var Oe=Ge.call(this,xe,je,Qe)||this;return Oe.arrowType="end",Oe.arrowBaseHeight=10,Oe.arrowBaseWidth=10,Oe.getArrowPoints=Oe.getArrowPoints.bind(Oe),Oe.setArrowType=Oe.setArrowType.bind(Oe),Oe.arrowTypePanel=new it("Arrow type","end"),Oe.arrowTypePanel.onArrowTypeChanged=Oe.setArrowType,Oe}return Ee(Ae,Ge),Ae.prototype.ownsTarget=function(xe){return!(!Ge.prototype.ownsTarget.call(this,xe)&&xe!==this.arrow1&&xe!==this.arrow2)},Ae.prototype.getArrowPoints=function(xe,je){var Qe=this.arrowBaseWidth+2*this.strokeWidth,Oe=this.arrowBaseHeight+2*this.strokeWidth;return xe-Qe/2+","+(je+Oe/2)+" "+xe+","+(je-Oe/2)+" "+(xe+Qe/2)+","+(je+Oe/2)},Ae.prototype.createTips=function(){this.arrow1=tt.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(tt.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=tt.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(tt.createTransform()),this.visual.appendChild(this.arrow2)},Ae.prototype.pointerDown=function(xe,je){Ge.prototype.pointerDown.call(this,xe,je),this.state==="creating"&&this.createTips()},Ae.prototype.adjustVisual=function(){if(Ge.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",tt.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),tt.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var xe=0;Math.abs(this.x1-this.x2)>.1&&(xe=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var je=this.arrow1.transform.baseVal.getItem(0);je.setRotate(xe,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(je,0);var Qe=this.arrow2.transform.baseVal.getItem(0);Qe.setRotate(xe+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Qe,0)}},Ae.prototype.setArrowType=function(xe){this.arrowType=xe,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Ae.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),Ae.prototype.getState=function(){var xe=Object.assign({arrowType:this.arrowType},Ge.prototype.getState.call(this));return xe.typeName=Ae.typeName,xe},Ae.prototype.restoreState=function(xe){Ge.prototype.restoreState.call(this,xe);var je=xe;this.arrowType=je.arrowType,this.createTips(),this.adjustVisual()},Ae.typeName="ArrowMarker",Ae.title="Arrow marker",Ae.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',Ae}(zt),gt=function(Ge){function Ae(xe,je,Qe){var Oe=Ge.call(this,xe,je,Qe)||this;return Oe.fillColor=Qe.defaultFillColor,Oe.strokeWidth=0,Oe.fillPanel=new Ne("Color",Qe.defaultColorSet,Qe.defaultFillColor),Oe.fillPanel.onColorChanged=Oe.setFillColor,Oe}return Ee(Ae,Ge),Object.defineProperty(Ae.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Ae.prototype.getState=function(){var xe=Ge.prototype.getState.call(this);return xe.typeName=Ae.typeName,xe},Ae.typeName="CoverMarker",Ae.title="Cover marker",Ae.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',Ae}(ut),Bt=function(Ge){function Ae(xe,je,Qe,Oe){var xt=Ge.call(this,xe,Oe||'<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 xt.opacities=[],xt.opacityBoxes=[],xt.opacities=je,xt.currentOpacity=Qe,xt.setCurrentOpacity=xt.setCurrentOpacity.bind(xt),xt}return Ee(Ae,Ge),Ae.prototype.getUi=function(){var xe=this,je=document.createElement("div");return je.style.display="flex",je.style.overflow="hidden",je.style.flexGrow="2",je.style.justifyContent="space-between",this.opacities.forEach(function(Qe){var Oe=document.createElement("div");Oe.style.display="flex",Oe.style.alignItems="center",Oe.style.justifyContent="center",Oe.style.padding="5px",Oe.style.borderWidth="2px",Oe.style.borderStyle="solid",Oe.style.borderColor=Qe===xe.currentOpacity?xe.uiStyleSettings.toolboxAccentColor:"transparent",Oe.addEventListener("click",function(){xe.setCurrentOpacity(Qe,Oe)}),je.appendChild(Oe);var xt=document.createElement("div");xt.innerText=100*Qe+"%",Oe.appendChild(xt),xe.opacityBoxes.push(Oe)}),je},Ae.prototype.setCurrentOpacity=function(xe,je){var Qe=this;this.currentOpacity=xe,this.opacityBoxes.forEach(function(Oe){Oe.style.borderColor=Oe===je?Qe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Ae}(Se),sn=function(Ge){function Ae(xe,je,Qe){var Oe=Ge.call(this,xe,je,Qe)||this;return Oe.setOpacity=Oe.setOpacity.bind(Oe),Oe.fillColor=Qe.defaultHighlightColor,Oe.strokeWidth=0,Oe.opacity=Qe.defaultHighlightOpacity,Oe.fillPanel=new Ne("Color",Qe.defaultColorSet,Oe.fillColor),Oe.fillPanel.onColorChanged=Oe.setFillColor,Oe.opacityPanel=new Bt("Opacity",Qe.defaultOpacitySteps,Oe.opacity),Oe.opacityPanel.onOpacityChanged=Oe.setOpacity,Oe}return Ee(Ae,Ge),Ae.prototype.setOpacity=function(xe){this.opacity=xe,this.visual&&tt.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Ae.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Ae.prototype.getState=function(){var xe=Ge.prototype.getState.call(this);return xe.typeName=Ae.typeName,xe},Ae.typeName="HighlightMarker",Ae.title="Highlight marker",Ae.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>',Ae}(gt),It='<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>',en='<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>',En=function(Ge){function Ae(xe,je,Qe){var Oe=Ge.call(this,xe,je,Qe)||this;return Oe.bgColor="transparent",Oe.tipPosition={x:0,y:0},Oe.tipBase1Position={x:0,y:0},Oe.tipBase2Position={x:0,y:0},Oe.tipMoving=!1,Oe.color=Qe.defaultStrokeColor,Oe.bgColor=Qe.defaultFillColor,Oe.fontFamily=Qe.defaultFontFamily,Oe.defaultSize={x:100,y:30},Oe.setBgColor=Oe.setBgColor.bind(Oe),Oe.getTipPoints=Oe.getTipPoints.bind(Oe),Oe.positionTip=Oe.positionTip.bind(Oe),Oe.setTipPoints=Oe.setTipPoints.bind(Oe),Oe.colorPanel=new Ne("Text color",Qe.defaultColorSet,Oe.color,It),Oe.colorPanel.onColorChanged=Oe.setColor,Oe.bgColorPanel=new Ne("Fill color",Qe.defaultColorSet,Oe.bgColor,en),Oe.bgColorPanel.onColorChanged=Oe.setBgColor,Oe.fontFamilyPanel=new Xt("Font",Qe.defaultFontFamilies,Qe.defaultFontFamily),Oe.fontFamilyPanel.onFontChanged=Oe.setFont,Oe.tipGrip=new We,Oe.tipGrip.visual.transform.baseVal.appendItem(tt.createTransform()),Oe.controlBox.appendChild(Oe.tipGrip.visual),Oe}return Ee(Ae,Ge),Ae.prototype.ownsTarget=function(xe){return Ge.prototype.ownsTarget.call(this,xe)||this.tipGrip.ownsTarget(xe)||this.tip===xe},Ae.prototype.createTip=function(){tt.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=tt.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},Ae.prototype.pointerDown=function(xe,je){this.state==="new"&&Ge.prototype.pointerDown.call(this,xe,je),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(je)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Ge.prototype.pointerDown.call(this,xe,je)},Ae.prototype.pointerUp=function(xe){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Ge.prototype.pointerUp.call(this,xe);else{var je=this.state==="creating";Ge.prototype.pointerUp.call(this,xe),this.setTipPoints(je),this.positionTip()}},Ae.prototype.manipulate=function(xe){if(this.tipMoving){var je=this.unrotatePoint(xe);this.tipPosition={x:je.x-this.manipulationStartLeft,y:je.y-this.manipulationStartTop},this.positionTip()}else Ge.prototype.manipulate.call(this,xe)},Ae.prototype.setBgColor=function(xe){this.bgRectangle&&this.tip&&(tt.setAttributes(this.bgRectangle,[["fill",xe]]),tt.setAttributes(this.tip,[["fill",xe]])),this.bgColor=xe,this.fillColorChanged(xe)},Ae.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},Ae.prototype.setTipPoints=function(xe){xe===void 0&&(xe=!1);var je=Math.min(this.height/2,15),Qe=this.height/5;xe&&(this.tipPosition={x:je+Qe/2,y:this.height+20});var Oe=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Oe<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(Qe=this.width/5,je=Math.min(this.width/2,15),this.tipBase1Position={x:je,y:0},this.tipBase2Position={x:je+Qe,y:0}):(this.tipBase1Position={x:0,y:je},this.tipBase2Position={x:0,y:je+Qe}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Oe<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(Qe=this.width/5,je=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-je-Qe,y:0},this.tipBase2Position={x:this.width-je,y:0}):(this.tipBase1Position={x:this.width,y:je},this.tipBase2Position={x:this.width,y:je+Qe}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Oe<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(Qe=this.width/5,je=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-je-Qe,y:this.height},this.tipBase2Position={x:this.width-je,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-je-Qe},this.tipBase2Position={x:this.width,y:this.height-je}):Oe<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(Qe=this.width/5,je=Math.min(this.width/2,15),this.tipBase1Position={x:je,y:this.height},this.tipBase2Position={x:je+Qe,y:this.height}):(this.tipBase1Position={x:0,y:this.height-je},this.tipBase2Position={x:0,y:this.height-je-Qe})},Ae.prototype.resize=function(xe){Ge.prototype.resize.call(this,xe),this.positionTip()},Ae.prototype.positionTip=function(){tt.setAttributes(this.tip,[["points",this.getTipPoints()]]);var xe=this.tipGrip.visual.transform.baseVal.getItem(0);xe.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(xe,0)},Object.defineProperty(Ae.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Ae.prototype.select=function(){this.positionTip(),Ge.prototype.select.call(this)},Ae.prototype.getState=function(){var xe=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},Ge.prototype.getState.call(this));return xe.typeName=Ae.typeName,xe},Ae.prototype.restoreState=function(xe){var je=xe;this.bgColor=je.bgColor,this.tipPosition=je.tipPosition,Ge.prototype.restoreState.call(this,xe),this.createTip(),this.setTipPoints()},Ae.prototype.scale=function(xe,je){Ge.prototype.scale.call(this,xe,je),this.tipPosition={x:this.tipPosition.x*xe,y:this.tipPosition.y*je},this.positionTip()},Ae.typeName="CalloutMarker",Ae.title="Callout marker",Ae.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>',Ae}(fn),ei=function(Ge){function Ae(xe,je,Qe){var Oe=Ge.call(this,xe,je,Qe)||this;return Oe.fillColor="transparent",Oe.strokeColor="transparent",Oe.strokeWidth=0,Oe.strokeDasharray="",Oe.opacity=1,Oe.strokeColor=Qe.defaultColor,Oe.strokeWidth=Qe.defaultStrokeWidth,Oe.strokeDasharray=Qe.defaultStrokeDasharray,Oe.fillColor=Qe.defaultFillColor,Oe.setStrokeColor=Oe.setStrokeColor.bind(Oe),Oe.setFillColor=Oe.setFillColor.bind(Oe),Oe.setStrokeWidth=Oe.setStrokeWidth.bind(Oe),Oe.setStrokeDasharray=Oe.setStrokeDasharray.bind(Oe),Oe.setOpacity=Oe.setOpacity.bind(Oe),Oe.createVisual=Oe.createVisual.bind(Oe),Oe.strokePanel=new Ne("Line color",Ye(Qe.defaultColorSet,["transparent"]),Qe.defaultColor),Oe.strokePanel.onColorChanged=Oe.setStrokeColor,Oe.fillPanel=new Ne("Fill color",Ye(Qe.defaultColorSet,["transparent"]),Oe.fillColor,en),Oe.fillPanel.onColorChanged=Oe.setFillColor,Oe.strokeWidthPanel=new Mt("Line width",Qe.defaultStrokeWidths,Qe.defaultStrokeWidth),Oe.strokeWidthPanel.onWidthChanged=Oe.setStrokeWidth,Oe.strokeStylePanel=new nt("Line style",Qe.defaultStrokeDasharrays,Qe.defaultStrokeDasharray),Oe.strokeStylePanel.onStyleChanged=Oe.setStrokeDasharray,Oe.opacityPanel=new Bt("Opacity",Qe.defaultOpacitySteps,Oe.opacity),Oe.opacityPanel.onOpacityChanged=Oe.setOpacity,Oe}return Ee(Ae,Ge),Ae.prototype.ownsTarget=function(xe){return!(!Ge.prototype.ownsTarget.call(this,xe)&&xe!==this.visual)},Ae.prototype.createVisual=function(){this.visual=tt.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)},Ae.prototype.pointerDown=function(xe,je){Ge.prototype.pointerDown.call(this,xe,je),this.state==="new"&&(this.createVisual(),this.moveVisual(xe),this._state="creating")},Ae.prototype.manipulate=function(xe){Ge.prototype.manipulate.call(this,xe)},Ae.prototype.resize=function(xe){Ge.prototype.resize.call(this,xe),this.setSize()},Ae.prototype.setSize=function(){Ge.prototype.setSize.call(this),tt.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},Ae.prototype.pointerUp=function(xe){Ge.prototype.pointerUp.call(this,xe),this.setSize()},Ae.prototype.setStrokeColor=function(xe){this.strokeColor=xe,this.visual&&tt.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(xe),this.stateChanged()},Ae.prototype.setFillColor=function(xe){this.fillColor=xe,this.visual&&tt.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(xe),this.stateChanged()},Ae.prototype.setStrokeWidth=function(xe){this.strokeWidth=xe,this.visual&&tt.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Ae.prototype.setStrokeDasharray=function(xe){this.strokeDasharray=xe,this.visual&&tt.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Ae.prototype.setOpacity=function(xe){this.opacity=xe,this.visual&&tt.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Ae.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Ae.prototype.getState=function(){var xe=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Ge.prototype.getState.call(this));return xe.typeName=Ae.typeName,xe},Ae.prototype.restoreState=function(xe){var je=xe;this.fillColor=je.fillColor,this.strokeColor=je.strokeColor,this.strokeWidth=je.strokeWidth,this.strokeDasharray=je.strokeDasharray,this.opacity=je.opacity,this.createVisual(),Ge.prototype.restoreState.call(this,xe),this.setSize()},Ae.prototype.scale=function(xe,je){Ge.prototype.scale.call(this,xe,je),this.setSize()},Ae.typeName="EllipseMarker",Ae.title="Ellipse marker",Ae.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>',Ae}(st),An=function(Ge){function Ae(xe,je,Qe){return Ge.call(this,xe,je,Qe)||this}return Ee(Ae,Ge),Object.defineProperty(Ae.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),Ae.prototype.ownsTarget=function(xe){return!(!Ge.prototype.ownsTarget.call(this,xe)&&xe!==this.tip1&&xe!==this.tip2)},Ae.prototype.createTips=function(){this.tip1=tt.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(tt.createTransform()),this.visual.appendChild(this.tip1),this.tip2=tt.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(tt.createTransform()),this.visual.appendChild(this.tip2)},Ae.prototype.pointerDown=function(xe,je){Ge.prototype.pointerDown.call(this,xe,je),this.state==="creating"&&this.createTips()},Ae.prototype.adjustVisual=function(){if(Ge.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(tt.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()]]),tt.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 xe=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),je=this.tip1.transform.baseVal.getItem(0);je.setRotate(xe,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(je,0);var Qe=this.tip2.transform.baseVal.getItem(0);Qe.setRotate(xe+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Qe,0)}},Object.defineProperty(Ae.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ae.prototype.getState=function(){var xe=Ge.prototype.getState.call(this);return xe.typeName=Ae.typeName,xe},Ae.prototype.restoreState=function(xe){Ge.prototype.restoreState.call(this,xe),this.createTips(),this.adjustVisual()},Ae.typeName="MeasurementMarker",Ae.title="Measurement marker",Ae.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>',Ae}(zt),Kn=function(Ge){function Ae(xe,je,Qe){var Oe=Ge.call(this,xe,je,Qe)||this;return Oe.strokePanel.colors=Qe.defaultColorSet,Oe.fillColor="transparent",Oe}return Ee(Ae,Ge),Object.defineProperty(Ae.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ae.prototype.getState=function(){var xe=Ge.prototype.getState.call(this);return xe.typeName=Ae.typeName,xe},Ae.typeName="EllipseFrameMarker",Ae.title="Ellipse frame marker",Ae.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>',Ae}(ei),jt=function(){function Ge(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Ge.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Ge.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Ge.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Ge.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Ge.prototype.addUndoStep=function(Ae){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(Ae)||(this.undoStack.push(Ae),JSON.stringify(this.lastRedoStep)!==JSON.stringify(Ae)&&this.redoStack.splice(0,this.redoStack.length))},Ge.prototype.replaceLastUndoStep=function(Ae){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Ae)},Ge.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Ge.prototype.undo=function(){if(this.undoStack.length>1){var Ae=this.undoStack.pop();return Ae!==void 0&&this.redoStack.push(Ae),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Ge.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Ge}(),Nn=function(Ge){function Ae(xe,je,Qe){var Oe=Ge.call(this,xe,je,Qe)||this;return Oe.strokeColor="transparent",Oe.strokeWidth=0,Oe.strokeDasharray="",Oe.curveX=0,Oe.curveY=0,Oe.manipulationStartCurveX=0,Oe.manipulationStartCurveY=0,Oe.setStrokeColor=Oe.setStrokeColor.bind(Oe),Oe.setStrokeWidth=Oe.setStrokeWidth.bind(Oe),Oe.setStrokeDasharray=Oe.setStrokeDasharray.bind(Oe),Oe.positionGrips=Oe.positionGrips.bind(Oe),Oe.addControlGrips=Oe.addControlGrips.bind(Oe),Oe.adjustVisual=Oe.adjustVisual.bind(Oe),Oe.setupControlBox=Oe.setupControlBox.bind(Oe),Oe.resize=Oe.resize.bind(Oe),Oe.strokeColor=Qe.defaultColor,Oe.strokeWidth=Qe.defaultStrokeWidth,Oe.strokeDasharray=Qe.defaultStrokeDasharray,Oe.strokePanel=new Ne("Line color",Qe.defaultColorSet,Qe.defaultColor),Oe.strokePanel.onColorChanged=Oe.setStrokeColor,Oe.strokeWidthPanel=new Mt("Line width",Qe.defaultStrokeWidths,Qe.defaultStrokeWidth),Oe.strokeWidthPanel.onWidthChanged=Oe.setStrokeWidth,Oe.strokeStylePanel=new nt("Line style",Qe.defaultStrokeDasharrays,Qe.defaultStrokeDasharray),Oe.strokeStylePanel.onStyleChanged=Oe.setStrokeDasharray,Oe}return Ee(Ae,Ge),Ae.prototype.ownsTarget=function(xe){return!(!Ge.prototype.ownsTarget.call(this,xe)&&xe!==this.visual&&xe!==this.selectorCurve&&xe!==this.visibleCurve&&!this.curveGrip.ownsTarget(xe))},Ae.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},Ae.prototype.createVisual=function(){this.visual=tt.createGroup(),this.selectorCurve=tt.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=tt.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)},Ae.prototype.pointerDown=function(xe,je){Ge.prototype.pointerDown.call(this,xe,je),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=xe.x,this.curveY=xe.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(je)&&(this.activeGrip=this.curveGrip,this._state="resize")},Ae.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),tt.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),tt.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),tt.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Ae.prototype.setupControlBox=function(){Ge.prototype.setupControlBox.call(this),this.curveControlLine1=tt.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=tt.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)},Ae.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Ge.prototype.addControlGrips.call(this)},Ae.prototype.positionGrips=function(){Ge.prototype.positionGrips.call(this);var xe=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-xe/2,this.curveY-xe/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()))},Ae.prototype.manipulate=function(xe){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+xe.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+xe.y-this.manipulationStartY),Ge.prototype.manipulate.call(this,xe)},Ae.prototype.resize=function(xe){this.activeGrip===this.curveGrip&&(this.curveX=xe.x,this.curveY=xe.y),Ge.prototype.resize.call(this,xe),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},Ae.prototype.setStrokeColor=function(xe){this.strokeColor=xe,this.adjustVisual(),this.colorChanged(xe)},Ae.prototype.setStrokeWidth=function(xe){this.strokeWidth=xe,this.adjustVisual()},Ae.prototype.setStrokeDasharray=function(xe){this.strokeDasharray=xe,this.adjustVisual()},Ae.prototype.scale=function(xe,je){this.curveX=this.curveX*xe,this.curveY=this.curveY*je,Ge.prototype.scale.call(this,xe,je)},Object.defineProperty(Ae.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ae.prototype.getState=function(){var xe=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Ge.prototype.getState.call(this));return xe.typeName=Ae.typeName,xe},Ae.prototype.restoreState=function(xe){Ge.prototype.restoreState.call(this,xe);var je=xe;this.strokeColor=je.strokeColor,this.strokeWidth=je.strokeWidth,this.strokeDasharray=je.strokeDasharray,this.curveX=je.curveX,this.curveY=je.curveY,this.createVisual(),this.adjustVisual()},Ae.typeName="CurveMarker",Ae.title="Curve marker",Ae.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>',Ae}(dn),Gn=function(Ge){function Ae(xe,je,Qe){var Oe=Ge.call(this,xe,je,Qe)||this;return Oe.fillColor="transparent",Oe.strokeColor="transparent",Oe.strokeWidth=0,Oe.strokeDasharray="",Oe.textColor="transparent",Oe.fontSize="1rem",Oe.isMoved=!1,Oe.captionText="Caption",Oe.PADDING=5,Oe.captionBoxWidth=0,Oe.captionBoxHeight=0,Oe.strokeColor=Qe.defaultColor,Oe.strokeWidth=Qe.defaultStrokeWidth,Oe.strokeDasharray=Qe.defaultStrokeDasharray,Oe.fillColor=Qe.defaultFillColor,Oe.textColor=Qe.defaultStrokeColor,Oe.fontFamily=Qe.defaultFontFamily,Oe.fontSize=Qe.defaultCaptionFontSize,Oe.captionText=Qe.defaultCaptionText,Oe.setStrokeColor=Oe.setStrokeColor.bind(Oe),Oe.setFillColor=Oe.setFillColor.bind(Oe),Oe.setStrokeWidth=Oe.setStrokeWidth.bind(Oe),Oe.setStrokeDasharray=Oe.setStrokeDasharray.bind(Oe),Oe.createVisual=Oe.createVisual.bind(Oe),Oe.sizeCaption=Oe.sizeCaption.bind(Oe),Oe.setCaptionText=Oe.setCaptionText.bind(Oe),Oe.showTextEditor=Oe.showTextEditor.bind(Oe),Oe.positionTextEditor=Oe.positionTextEditor.bind(Oe),Oe.finishTextEditing=Oe.finishTextEditing.bind(Oe),Oe.setFont=Oe.setFont.bind(Oe),Oe.setTextColor=Oe.setTextColor.bind(Oe),Oe.strokePanel=new Ne("Line color",Ye(Qe.defaultColorSet,["transparent"]),Oe.strokeColor),Oe.strokePanel.onColorChanged=Oe.setStrokeColor,Oe.fillPanel=new Ne("Fill color",Ye(Qe.defaultColorSet,["transparent"]),Oe.fillColor,en),Oe.fillPanel.onColorChanged=Oe.setFillColor,Oe.strokeWidthPanel=new Mt("Line width",Qe.defaultStrokeWidths,Qe.defaultStrokeWidth),Oe.strokeWidthPanel.onWidthChanged=Oe.setStrokeWidth,Oe.strokeStylePanel=new nt("Line style",Qe.defaultStrokeDasharrays,Qe.defaultStrokeDasharray),Oe.strokeStylePanel.onStyleChanged=Oe.setStrokeDasharray,Oe.fontFamilyPanel=new Xt("Font",Qe.defaultFontFamilies,Qe.defaultFontFamily),Oe.fontFamilyPanel.onFontChanged=Oe.setFont,Oe.textColorPanel=new Ne("Text color",Qe.defaultColorSet,Oe.textColor,It),Oe.textColorPanel.onColorChanged=Oe.setTextColor,Oe}return Ee(Ae,Ge),Ae.prototype.ownsTarget=function(xe){return!(!Ge.prototype.ownsTarget.call(this,xe)&&xe!==this.visual&&xe!==this.frame&&xe!==this.captionBg&&xe!==this.captionElement)},Ae.prototype.createVisual=function(){this.visual=tt.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=tt.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=tt.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=tt.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()},Ae.prototype.setCaptionText=function(xe){this.captionText=xe,this.captionElement.textContent=this.captionText,this.sizeCaption()},Ae.prototype.pointerDown=function(xe,je){Ge.prototype.pointerDown.call(this,xe,je),this.isMoved=!1,this.pointerDownPoint=xe,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(xe),this._state="creating")},Ae.prototype.manipulate=function(xe){Ge.prototype.manipulate.call(this,xe),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(xe.x-this.pointerDownPoint.x)>5||Math.abs(xe.y-this.pointerDownPoint.y)>5)},Ae.prototype.resize=function(xe){Ge.prototype.resize.call(this,xe),this.setSize()},Ae.prototype.sizeCaption=function(){var xe=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=xe.width+2*this.PADDING,this.captionBoxHeight=xe.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),tt.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')"]]),tt.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')"]])},Ae.prototype.showTextEditor=function(){var xe=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(je){je.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(je){je.key==="Enter"&&xe.finishTextEditing(xe.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(je){je.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){xe.finishTextEditing(xe.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){xe.finishTextEditing(xe.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},Ae.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"))},Ae.prototype.finishTextEditing=function(xe){this.setCaptionText(xe.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Ae.prototype.setFont=function(xe){this.captionElement&&tt.setAttributes(this.captionElement,[["font-family",xe]]),this.fontFamily=xe,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},Ae.prototype.setTextColor=function(xe){this.captionElement&&tt.setAttributes(this.captionElement,[["fill",xe]]),this.textColor=xe,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},Ae.prototype.setSize=function(){Ge.prototype.setSize.call(this),tt.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Ae.prototype.pointerUp=function(xe){Ge.prototype.pointerUp.call(this,xe),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Ae.prototype.dblClick=function(xe,je){Ge.prototype.dblClick.call(this,xe,je),this.showTextEditor()},Ae.prototype.setStrokeColor=function(xe){this.strokeColor=xe,this.frame&&tt.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(xe),this.stateChanged()},Ae.prototype.setFillColor=function(xe){this.fillColor=xe,this.captionBg&&tt.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(xe),this.stateChanged()},Ae.prototype.setStrokeWidth=function(xe){this.strokeWidth=xe,this.frame&&tt.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Ae.prototype.setStrokeDasharray=function(xe){this.strokeDasharray=xe,this.frame&&tt.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(Ae.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),Ae.prototype.getState=function(){var xe=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},Ge.prototype.getState.call(this));return xe.typeName=this.typeName,xe},Ae.prototype.restoreState=function(xe){var je=xe;this.fillColor=je.fillColor,this.strokeColor=je.strokeColor,this.strokeWidth=je.strokeWidth,this.strokeDasharray=je.strokeDasharray,this.textColor=je.textColor,this.fontFamily=je.fontFamily,this.captionText=je.captionText,this.fontSize=je.fontSize,this.createVisual(),Ge.prototype.restoreState.call(this,xe),this.setSize()},Ae.prototype.scale=function(xe,je){Ge.prototype.scale.call(this,xe,je),this.setSize()},Ae.typeName="CaptionFrameMarker",Ae.title="Caption frame marker",Ae.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>',Ae}(st),ii=function(){function Ge(Ae,xe){xe===void 0&&(xe=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Ae,this.cancelable=xe}return Object.defineProperty(Ge.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Ge.prototype.preventDefault=function(){this._defaultPrevented=!0},Ge}(),Sn=function(Ge){function Ae(xe,je,Qe){var Oe=Ge.call(this,xe,!1)||this;return Oe.dataUrl=je,Oe.state=Qe,Oe}return Ee(Ae,Ge),Ae}(ii),Yt=function(Ge){function Ae(xe,je,Qe){Qe===void 0&&(Qe=!1);var Oe=Ge.call(this,xe,Qe)||this;return Oe.marker=je,Oe}return Ee(Ae,Ge),Ae}(ii),Zt=function(){function Ge(){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 Ge.prototype.addEventListener=function(Ae,xe){this[Ae].push(xe)},Ge.prototype.removeEventListener=function(Ae,xe){var je=this[Ae].indexOf(xe);je>-1&&this[Ae].splice(je,1)},Ge}(),St=function(){function Ge(Ae){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Pt,this._isOpen=!1,this.undoRedoManager=new jt,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 Zt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Ge.instanceCounter++,this.styles=new ee(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=Ae,this.targetRoot=document.body,this.width=Ae.clientWidth,this.height=Ae.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(Ge.prototype,"ALL_MARKER_TYPES",{get:function(){return[$t,an,Ve,fn,Kn,ei,sn,En,An,gt,zt,Nn,Gn]},enumerable:!1,configurable:!0}),Object.defineProperty(Ge.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[$t,an,Ve,fn,ei,sn,En]},enumerable:!1,configurable:!0}),Object.defineProperty(Ge.prototype,"BASIC_MARKER_TYPES",{get:function(){return[$t,an,Ve,fn,sn]},enumerable:!1,configurable:!0}),Object.defineProperty(Ge.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Ae){var xe=this;this._availableMarkerTypes.splice(0),Ae.forEach(function(je){if(typeof je=="string"){var Qe=xe.ALL_MARKER_TYPES.find(function(Oe){return Oe.typeName===je});Qe!==void 0&&xe._availableMarkerTypes.push(Qe)}else xe._availableMarkerTypes.push(je)})},enumerable:!1,configurable:!0}),Object.defineProperty(Ge.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Ge.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Ge.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Ge.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Ge.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(Ae){this._zoomLevel=Ae,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(Ge.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Ge.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),ht.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Ge.prototype.show=function(){var Ae=this;this.styles.styleSheetRoot===void 0&&ze.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=ze.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(xe){return xe(new ii(Ae))})},Ge.prototype.render=function(){return et(this,void 0,void 0,function(){var Ae;return Je(this,function(xe){switch(xe.label){case 0:return this.setCurrentMarker(),(Ae=new kt).naturalSize=this.renderAtNaturalSize,Ae.imageType=this.renderImageType,Ae.imageQuality=this.renderImageQuality,Ae.markersOnly=this.renderMarkersOnly,Ae.width=this.renderWidth,Ae.height=this.renderHeight,[4,Ae.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return xe.sent(),[4,Ae.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,xe.sent()]}})})},Ge.prototype.close=function(Ae){var xe=this;if(Ae===void 0&&(Ae=!1),this.isOpen){var je=!1;Ae||this.eventListeners.beforeclose.forEach(function(Qe){var Oe=new ii(xe,!0);Qe(Oe),Oe.defaultPrevented&&(je=!0)}),je||(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(Qe){return Qe(new ii(xe))}),this.detachEvents(),this._isOpen=!1)}},Ge.prototype.addMarkersToToolbar=function(){for(var Ae,xe=[],je=0;je<arguments.length;je++)xe[je]=arguments[je];(Ae=this._availableMarkerTypes).push.apply(Ae,xe)},Ge.prototype.addRenderEventListener=function(Ae){this.addEventListener("render",function(xe){Ae(xe.dataUrl,xe.state)})},Ge.prototype.removeRenderEventListener=function(Ae){},Ge.prototype.addCloseEventListener=function(Ae){this.addEventListener("close",function(){Ae()})},Ge.prototype.removeCloseEventListener=function(Ae){},Ge.prototype.setupResizeObserver=function(){var Ae=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){Ae.resize(Ae.target.clientWidth,Ae.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return Ae.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},Ge.prototype.onPopupTargetResize=function(){var Ae=1*this.target.clientWidth/this.target.clientHeight,xe=this.editorCanvas.clientWidth/Ae>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Ae:this.editorCanvas.clientWidth,je=xe<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/Ae;this.resize(xe,je)},Ge.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Ge.prototype.resize=function(Ae,xe){this._isResizing=!0;var je=Ae/this.imageWidth,Qe=xe/this.imageHeight;this.imageWidth=Math.round(Ae),this.imageHeight=Math.round(xe),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(je,Qe),this._isResizing=!1},Ge.prototype.scaleMarkers=function(Ae,xe){var je,Qe=this;this._currentMarker&&this._currentMarker instanceof fn?this._currentMarker.scale(Ae,xe):(je=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Oe){Oe!==Qe._currentMarker&&Oe.scale(Ae,xe)}),je!==void 0&&this.setCurrentMarker(je)},Ge.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"},Ge.prototype.setTopLeft=function(){var Ae=this.editingTarget.getBoundingClientRect(),xe=this.editorCanvas.getBoundingClientRect();this.left=Ae.left-xe.left,this.top=Ae.top-xe.top},Ge.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)},Ge.prototype.addDefs=function(){for(var Ae,xe=[],je=0;je<arguments.length;je++)xe[je]=arguments[je];this.defs=tt.createDefs(),this.addDefsToImage(),(Ae=this.defs).append.apply(Ae,xe)},Ge.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},Ge.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)},Ge.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},Ge.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},Ge.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)},Ge.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},Ge.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)},Ge.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 Ae=document.createElement("a");Ae.href="https://markerjs.com/",Ae.target="_blank",Ae.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>',Ae.title="Powered by marker.js",Ae.style.display="grid",Ae.style.alignItems="center",Ae.style.justifyItems="center",Ae.style.padding="3px",Ae.style.width="20px",Ae.style.height="20px",this.logoUI.appendChild(Ae),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Ge.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")},Ge.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"},Ge.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Ge.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 Ae=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=Ae+"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 ue(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 me(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},Ge.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Ge.prototype.removeMarker=function(Ae){this.markerImage.removeChild(Ae.container),this.markers.indexOf(Ae)>-1&&this.markers.splice(this.markers.indexOf(Ae),1),Ae.dispose()},Ge.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())},Ge.prototype.toolbarButtonClicked=function(Ae,xe){if(Ae==="marker"&&xe!==void 0)this.createNewMarker(xe);else if(Ae==="action")switch(xe){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()}},Ge.prototype.deleteSelectedMarker=function(){var Ae=this;if(this._currentMarker!==void 0){var xe=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Qe){var Oe=new Yt(Ae,Ae._currentMarker,!0);Qe(Oe),Oe.defaultPrevented&&(xe=!0)}),!xe){var je=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(Qe){return Qe(new Yt(Ae,je))})}}},Ge.prototype.clear=function(){var Ae=this,xe=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(xt){var hn=new Yt(Ae,void 0,!0);xt(hn),hn.defaultPrevented&&(xe=!0)}),!xe)){this.setCurrentMarker();for(var je=function(xt){var hn=Qe.markers[xt];Qe.setCurrentMarker(Qe.markers[xt]),Qe._currentMarker.dispose(),Qe.markerImage.removeChild(Qe._currentMarker.container),Qe.markers.splice(Qe.markers.indexOf(Qe._currentMarker),1),Qe.eventListeners.markerdelete.forEach(function(Pn){return Pn(new Yt(Ae,hn))})},Qe=this,Oe=this.markers.length-1;Oe>=0;Oe--)je(Oe);this.addUndoStep()}},Object.defineProperty(Ge.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Ge.prototype.showNotesEditor=function(){var Ae;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=(Ae=this._currentMarker.notes)!==null&&Ae!==void 0?Ae:"",this.overlayContainer.appendChild(this.notesArea))},Ge.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)},Ge.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Ge.prototype.addUndoStep=function(){var Ae=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var xe=this.getState(),je=this.undoRedoManager.getLastUndoStep();if(!je||je.width===xe.width&&je.height===xe.height){var Qe=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(xe),Qe<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Oe){return Oe(new ii(Ae))})}else this.undoRedoManager.replaceLastUndoStep(xe),this.eventListeners.statechange.forEach(function(Oe){return Oe(new ii(Ae))})}},Ge.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Ge.prototype.undoStep=function(){var Ae=this,xe=this.undoRedoManager.undo();xe!==void 0&&(this.restoreState(xe),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(je){return je(new ii(Ae))}))},Ge.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},Ge.prototype.redoStep=function(){var Ae=this,xe=this.undoRedoManager.redo();xe!==void 0&&(this.restoreState(xe),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(je){return je(new ii(Ae))}))},Ge.prototype.stepZoom=function(){var Ae=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=Ae<this.zoomSteps.length-1?this.zoomSteps[Ae+1]:this.zoomSteps[0]},Ge.prototype.panTo=function(Ae){this.contentDiv.scrollBy({left:this.prevPanPoint.x-Ae.x,top:this.prevPanPoint.y-Ae.y}),this.prevPanPoint=Ae},Ge.prototype.startRenderAndClose=function(){return et(this,void 0,void 0,function(){var Ae,xe,je=this;return Je(this,function(Qe){switch(Qe.label){case 0:return[4,this.render()];case 1:return Ae=Qe.sent(),xe=this.getState(),this.eventListeners.render.forEach(function(Oe){return Oe(new Sn(je,Ae,xe))}),this.close(!0),[2]}})})},Ge.prototype.getState=function(Ae){Ae===!0&&this.setCurrentMarker();var xe={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(je){return xe.markers.push(je.getState())}),xe},Ge.prototype.restoreState=function(Ae){var xe=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);Ae.markers.forEach(function(je){var Qe=xe._availableMarkerTypes.find(function(xt){return xt.typeName===je.typeName});if(Qe!==void 0){var Oe=xe.addNewMarker(Qe);Oe.restoreState(je),xe.markers.push(Oe)}}),Ae.width&&Ae.height&&(Ae.width!==this.imageWidth||Ae.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/Ae.width,this.imageHeight/Ae.height),this.eventListeners.restorestate.forEach(function(je){return je(new ii(xe))})},Ge.prototype.addNewMarker=function(Ae){var xe=tt.createGroup();return this.markerImage.appendChild(xe),new Ae(xe,this.overlayContainer,this.settings)},Ge.prototype.createNewMarker=function(Ae){var xe,je=this;(xe=typeof Ae=="string"?this._availableMarkerTypes.find(function(Qe){return Qe.typeName===Ae}):Ae)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(xe),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(xe.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(Qe){return Qe(new Yt(je,je._currentMarker))}))},Ge.prototype.markerCreated=function(Ae){var xe=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(Ae),this.setCurrentMarker(Ae),Ae instanceof an&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(an):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(je){return je(new Yt(xe,xe._currentMarker))})},Ge.prototype.colorChanged=function(Ae){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=Ae,this.settings.defaultStrokeColor=Ae)},Ge.prototype.fillColorChanged=function(Ae){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=Ae)},Ge.prototype.markerStateChanged=function(Ae){var xe=this;this.eventListeners.markerchange.forEach(function(je){return je(new Yt(xe,Ae))})},Ge.prototype.setCurrentMarker=function(Ae){var xe=this;this._currentMarker!==Ae&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(je){return je(new Yt(xe,xe._currentMarker))})),this._currentMarker=Ae,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(je){return je(new Yt(xe,xe._currentMarker))}))},Ge.prototype.onPointerDown=function(Ae){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||Ae.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var xe=this.markers.find(function(je){return je.ownsTarget(Ae.target)});xe!==void 0?(this.setCurrentMarker(xe),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Ae.clientX,Ae.clientY),Ae.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:Ae.clientX,y:Ae.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Ae.clientX,Ae.clientY))},Ge.prototype.onDblClick=function(Ae){if(this._isFocused||this.focus(),this.mode==="select"){var xe=this.markers.find(function(je){return je.ownsTarget(Ae.target)});xe!==void 0&&xe!==this._currentMarker&&this.setCurrentMarker(xe),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(Ae.clientX,Ae.clientY),Ae.target):this.setCurrentMarker()}},Ge.prototype.onPointerMove=function(Ae){this.touchPoints!==1&&Ae.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||Ae.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(Ae.clientX,Ae.clientY)):this.zoomLevel>1&&this.panTo({x:Ae.clientX,y:Ae.clientY}))},Ge.prototype.onPointerUp=function(Ae){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(Ae.clientX,Ae.clientY)),this.isDragging=!1,this.addUndoStep()},Ge.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Ge.prototype.onKeyUp=function(Ae){this._currentMarker===void 0||this.notesArea!==void 0||Ae.key!=="Delete"&&Ae.key!=="Backspace"||this.deleteSelectedMarker()},Ge.prototype.clientToLocalCoordinates=function(Ae,xe){var je=this.markerImage.getBoundingClientRect();return{x:(Ae-je.left)/this.zoomLevel,y:(xe-je.top)/this.zoomLevel}},Ge.prototype.onWindowResize=function(){this.positionUI()},Ge.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var Ae=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Ae+"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()},Ge.prototype.addLicenseKey=function(Ae){ht.addKey(Ae)},Ge.prototype.addEventListener=function(Ae,xe){this.eventListeners.addEventListener(Ae,xe)},Ge.prototype.removeEventListener=function(Ae,xe){this.eventListeners.removeEventListener(Ae,xe)},Ge.prototype.renderState=function(Ae){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(Ae),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Ge.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Ge.prototype.focus=function(){var Ae=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(xe){return xe(new ii(Ae))}))},Ge.prototype.blur=function(){var Ae=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(xe){return xe(new ii(Ae))}))},Ge.instanceCounter=0,Ge}(),rt=oe(70635),Ft=oe(58130),Ot=(Ge,Ae,xe)=>new Promise((je,Qe)=>{var Oe=Pn=>{try{hn(xe.next(Pn))}catch(wt){Qe(wt)}},xt=Pn=>{try{hn(xe.throw(Pn))}catch(wt){Qe(wt)}},hn=Pn=>Pn.done?je(Pn.value):Promise.resolve(Pn.value).then(Oe,xt);hn((xe=xe.apply(Ge,Ae)).next())}),ct=({data:Ge,className:Ae,fullWidth:xe,style:je={},onClose:Qe,onOk:Oe,showFullTools:xt,noAssociationId:hn})=>{const Pn=(0,se.useRef)(null),wt=(0,se.useRef)(null),nn=(0,se.useRef)(null),Mn=(0,se.useRef)(null),[Zn,li]=(0,se.useState)(!1),[xi,Mi]=(0,se.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,se.useEffect)(()=>{nn.current||(nn.current=document.createElement("style"),document.head.appendChild(nn.current)),Ge!=null&&Ge.visible?(document.body.setAttribute("data-custom","y-hidden"),nn.current.innerHTML=" html { overflow-y: hidden; }",Ge!=null&&Ge.src&&Si()):(document.body.removeAttribute("data-custom"),nn.current&&(document.head.removeChild(nn.current),nn.current=null))},[Ge==null?void 0:Ge.visible]);const Si=()=>Ot(void 0,null,function*(){li(!0),Mi("\u6B63\u5728\u52A0\u8F7D\u4E2D");const ur=yield(0,Ft.ZJ)(Ge==null?void 0:Ge.src);Pn.current.src="",Pn.current.src=ur,Pn.current.onload=function(){dr()},li(!1),Mi("")}),Ri=ur=>Ot(void 0,null,function*(){li(!0),Mi("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Sr=yield(0,rt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ge.title,file:ur.dataUrl}});Sr!=null&&Sr.id&&!hn?(yield(0,rt.ZP)(`/api/attachments/${Ge.id}/add_subitem.json`,{method:"post",body:{subitem_id:Sr==null?void 0:Sr.id,settings:JSON.stringify(ur.state)}})).status===0&&Oe():Sr!=null&&Sr.id&&Oe(Sr),li(!1),Mi("")}),lr=()=>{const ur=document.querySelector('a[href="https://markerjs.com/"]');ur&&ur.parentNode&&(ur.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(Wr=>{const Gi=document.querySelector(Wr.name);Gi&&Gi.setAttribute("title",Wr.title)})},dr=()=>{wt.current=new St(Pn.current),wt.current.targetRoot=Mn.current,wt.current.addEventListener("render",Ri),wt.current.addEventListener("beforeclose",Qe),xt&&(wt.current.availableMarkerTypes=wt.current.ALL_MARKER_TYPES,wt.current.uiStyleSettings.redoButtonVisible=!0,wt.current.uiStyleSettings.notesButtonVisible=!0,wt.current.uiStyleSettings.zoomButtonVisible=!0,wt.current.uiStyleSettings.zoomOutButtonVisible=!0,wt.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=wt.current.uiStyleSettings,wt.current.show(),Ge!=null&&Ge.snapshotData&&wt.current.restoreState(Ge.snapshotData),setTimeout(()=>{window.scrollTo(0,0),lr()},300)};return se.createElement(se.Fragment,null,(Ge==null?void 0:Ge.visible)&&se.createElement(De.Z,{spinning:Zn,tip:xi,style:{position:"absolute"}},se.createElement("div",{ref:Mn,className:Ie()(Ce.imageDimensions,Ae,xe?Ce.fullWidth:""),style:je},se.createElement("img",{className:Ce.img,ref:Pn}))))}},75890:function(_e,be,oe){"use strict";var se=oe(59301),Ce=oe(95237),we=oe(43604),Ie=oe(99313),De=oe(3113),Ke=oe(25711),Ee=oe(93938),et=oe(48136),Je=oe(59301);const Ye=(0,se.forwardRef)(({callback:tt,showSaveButton:ht,value:kt=""},ze)=>{const ee=(0,se.useRef)(),ne=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],ge=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
x=a + r\\text{cos}\\theta \\ \r
y=b + r\\text{sin}\\theta \r
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\left\\{\\begin{matrix} \r
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
\\end{matrix}\\right. \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
a \\perp \\alpha \\ \r
b \\perp \\alpha \r
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
a \\parallel \\partial ,b \\parallel \\partial \r
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
a \\perp m,a \\perp n \r
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
a^{2}+b^{2}=c^{2} \r
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
a,b \\in R^{+} \\ \r
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
a,b \\in R \\ \r
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
P \\left( \\emptyset \\right) =0 \\\\ \r
P \\left( S \\right) =1 \r
\\end{array}`},{value:`\\begin{array}{c} \r
\\forall A \\in S \\\\ \r
P \\left( A \\right) \\ge 0 \r
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
\\end{array}`},{value:`\\begin{array}{c} \r
P_{n}=n! \\\\ \r
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
\\end{array}`}]}]}],ue=Ne=>{ee.current.setValue(ee.current.getValue()+" "+Ne.value+" ")},me=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Je.createElement(Ce.Z,{className:Ee.Z.lists,gutter:[10,10]},ne.map((Ne,ke)=>Je.createElement(we.Z,{flex:"110px",className:Ee.Z.item},Je.createElement("div",null,Je.createElement(Ke.Z,{value:`$$${Ne.value}$$`}),Ne.name),Je.createElement("div",{className:Ee.Z.children},Ne.children.map((Te,We)=>Je.createElement("div",{key:We},Je.createElement("h1",null,Te.name),Je.createElement(Ce.Z,{gutter:[10,10]},Te.data.map(($e,st)=>Je.createElement(we.Z,{key:st,onClick:()=>ue($e),className:Ee.Z.diamond},Je.createElement(Ke.Z,{value:"`$$"+$e.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Je.createElement(Ce.Z,{className:Ee.Z.lists,gutter:[10,10]},ge.map((Ne,ke)=>Je.createElement(we.Z,{flex:"110px",className:Ee.Z.item},Je.createElement("div",null,Je.createElement(Ke.Z,{value:"`$$"+Ne.value+"$$`"}),Ne.name),Je.createElement("div",{className:Ee.Z.children},Ne.children.map((Te,We)=>Je.createElement("div",{key:We},Te.name&&Je.createElement("h1",null,Te.name),Je.createElement(Ce.Z,{gutter:[10,10]},Te.data.map(($e,st)=>Je.createElement(we.Z,{key:st,onClick:()=>ue($e),className:Ee.Z.diamond},Je.createElement(Ke.Z,{value:"`$$"+$e.value+"$$`"}))))))))))}],Se=()=>{var Ne=document.createElement("div");Ne.innerHTML=ee.current.getValue();var ke=Ne.innerText;return tt&&tt(ke),ke};return(0,se.useImperativeHandle)(ze,()=>({getData:Se})),Je.createElement("div",{className:Ee.Z.mathWrap},Je.createElement(Ie.default,{defaultActiveKey:"1",items:me}),Je.createElement("math-field",{locale:"zh_cn",className:Ee.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:ee,style:{width:800,marginTop:30,fontSize:18}},kt||""),ht&&Je.createElement("div",{className:Ee.Z.button},Je.createElement(De.ZP,{size:"large",onClick:Se,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});be.Z=Ye},57203:function(_e,be,oe){"use strict";oe.d(be,{z:function(){return an},Z:function(){return it}});var se=oe(59301),Ce=oe(24645),we=oe(8591),Ie=oe(43418),De=oe(3113),Ke=oe(10148),Ee=oe(76904),et=Object.defineProperty,Je=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,ht=(Ve,gt,Bt)=>gt in Ve?et(Ve,gt,{enumerable:!0,configurable:!0,writable:!0,value:Bt}):Ve[gt]=Bt,kt=(Ve,gt)=>{for(var Bt in gt||(gt={}))Ye.call(gt,Bt)&&ht(Ve,Bt,gt[Bt]);if(Je)for(var Bt of Je(gt))tt.call(gt,Bt)&&ht(Ve,Bt,gt[Bt]);return Ve},ze=(Ve,gt,Bt)=>new Promise((sn,It)=>{var en=An=>{try{ei(Bt.next(An))}catch(Kn){It(Kn)}},En=An=>{try{ei(Bt.throw(An))}catch(Kn){It(Kn)}},ei=An=>An.done?sn(An.value):Promise.resolve(An.value).then(en,En);ei((Bt=Bt.apply(Ve,gt)).next())});const ee="\u3000\u3000";function ne(Ve){var gt=["Bytes","KB","MB","GB","TB"];if(Ve==0)return"0 Byte";var Bt=parseInt(""+Math.floor(Math.log(Ve)/Math.log(1024)),10);return(Ve/Math.pow(1024,Bt)).toFixed(1)+" "+gt[Bt]}var ge=({value:Ve=[],action:gt,onChange:Bt,className:sn,maxSize:It=150,title:en="\u6587\u4EF6\u4E0A\u4F20",accept:En=null})=>{const ei={multiple:!1,fileList:Ve,accept:En,withCredentials:!0,beforeUpload:Kn=>Kn.size/1024/1024<It?!0:(message.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${It}MB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20`),Promise.reject()),action:`${ENV.API_SERVER}/api/attachments.json`,onChange(Kn){var jt,Nn,Gn,ii;let Sn=[...Kn.fileList];if(Sn=Sn.map(Yt=>(Yt.name.indexOf(ee)===-1&&(Yt.name=`${Yt.name}${ee}${ne(Yt.size)}`),kt({},Yt))),Kn.file.status==="done"&&((Nn=(jt=Kn.file)==null?void 0:jt.response)==null?void 0:Nn.status)===-1){message.error((ii=(Gn=Kn.file)==null?void 0:Gn.response)==null?void 0:ii.message),Bt([]);return}Bt(Sn)},onRemove:Kn=>ze(void 0,null,function*(){const jt=Kn.size/1024/1024;return Kn.status==="uploading"?!0:jt<It&&(Kn.response?Kn.response.id:Kn.uid)?yield removeAttachment(Kn.response?Kn.response.id:Kn.id):!0})};function An(Kn){Kn.preventDefault(),Kn.stopPropagation()}return React.createElement("div",{className:`single-upload ${sn||""}`},React.createElement(Upload,kt({},ei),React.createElement(Button,{type:"primary",title:Ve.length>0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:Ve.length>0,ghost:!0},en),React.createElement("span",{onClick:An,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",It,"M)"," ")))},ue=oe(76298),me=oe(89392),Se=Object.defineProperty,Ne=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable,We=(Ve,gt,Bt)=>gt in Ve?Se(Ve,gt,{enumerable:!0,configurable:!0,writable:!0,value:Bt}):Ve[gt]=Bt,$e=(Ve,gt)=>{for(var Bt in gt||(gt={}))ke.call(gt,Bt)&&We(Ve,Bt,gt[Bt]);if(Ne)for(var Bt of Ne(gt))Te.call(gt,Bt)&&We(Ve,Bt,gt[Bt]);return Ve};const st=Ve=>React.createElement("svg",$e({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},Ve),React.createElement("title",null,"\u5F62\u72B6"),React.createElement("path",{d:"M10.354 3.5h-2.77v8.167H6.416V3.5H3.646L7 0l3.354 3.5ZM14 7h-1.167v5.833H1.167V7H0v7h14V7Z",fill:"#3061D0",fillRule:"nonzero"}));var ut="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",Mt=Object.defineProperty,nt=Object.getOwnPropertySymbols,$t=Object.prototype.hasOwnProperty,Pt=Object.prototype.propertyIsEnumerable,dn=(Ve,gt,Bt)=>gt in Ve?Mt(Ve,gt,{enumerable:!0,configurable:!0,writable:!0,value:Bt}):Ve[gt]=Bt,zt=(Ve,gt)=>{for(var Bt in gt||(gt={}))$t.call(gt,Bt)&&dn(Ve,Bt,gt[Bt]);if(nt)for(var Bt of nt(gt))Pt.call(gt,Bt)&&dn(Ve,Bt,gt[Bt]);return Ve},Xt=(Ve,gt,Bt)=>new Promise((sn,It)=>{var en=An=>{try{ei(Bt.next(An))}catch(Kn){It(Kn)}},En=An=>{try{ei(Bt.throw(An))}catch(Kn){It(Kn)}},ei=An=>An.done?sn(An.value):Promise.resolve(An.value).then(en,En);ei((Bt=Bt.apply(Ve,gt)).next())});const{Dragger:fn}=Ce.default;function an(Ve){let gt=[];return Ve&&Ve.length>0&&(gt=Ve.map(Bt=>({uid:Bt.id,id:Bt.id,name:Bt.title+ee+Bt.filesize,url:Bt.url,filesize:Bt.filesize,status:"done",response:{id:Bt.id}}))),gt}var it=({value:Ve,onChange:gt,action:Bt,data:sn,className:It,maxSize:en=150,title:En="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:ei=!1,accept:An="",additionalText:Kn,isDragger:jt,number:Nn=1e3,aloneClear:Gn=!1,realTimeRemove:ii=!0,uploadText:Sn,setFileProgress:Yt,showFileProgress:Zt})=>{const[St,rt]=(0,se.useState)(!1);let[Ft,Ot]=(0,se.useState)(Ve||[]),[ft,ct]=(0,se.useState)(1);(0,se.useEffect)(()=>{Ve&&(ft===1&&Ot([...Ve]),ct(2),Nn===(Ve==null?void 0:Ve.length)&&rt(!0))},[Ve]);const Ge=()=>{setTimeout(()=>{Ft.pop(),Ot([...Ft])},500)};Zt&&Yt(Ft.some(je=>je.status==="uploading"));const Ae={multiple:!0,disabled:St,accept:An,withCredentials:!0,fileList:Ft,beforeUpload:(je,Qe)=>{const Oe=je.size/1024/1024;return Ft.concat(Qe).length>Nn?(Ft.pop(),Ot([...Ft]),we.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${Nn}\u4E2A\u6587\u4EF6`),Gn?Promise.reject():(Ge(),!1)):Oe<en?!0:(we.ZP.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${en}MB).`),Gn?Promise.reject():(Ge(),!1))},data:sn,action:Bt||`${Ke.Z.API_SERVER}/api/attachments.json`,onChange(je){var Qe,Oe,xt,hn;if(je.file.status==="removed"?Ft=je.fileList:Ft=(0,me.uniqBy)([...je.fileList,...Ft],"uid"),je.file.status==="done"&&((Oe=(Qe=je.file)==null?void 0:Qe.response)==null?void 0:Oe.status)===-1){we.ZP.error((hn=(xt=je.file)==null?void 0:xt.response)==null?void 0:hn.message);return}Ft.length>=Nn?rt(!0):rt(!1),Ot([...Ft]),Ft=Ft.map(Pn=>{var wt,nn;return(wt=Pn==null?void 0:Pn.response)!=null&&wt.id&&(Pn.url=(nn=Pn==null?void 0:Pn.response)==null?void 0:nn.url),Pn.name.indexOf(ee)===-1&&(Pn.name=`${Pn.name}${ee}${ne(Pn.size)}`),zt({},Pn)}),console.log("info:",je,Ft),gt(Ft)},onRemove:je=>Xt(void 0,null,function*(){if(!ii)return!0;const Qe=()=>Xt(void 0,null,function*(){if(je.response?je.response.id:je.id){let xt=yield(0,Ee.JZ)(je.response?je.response.id:je.uid);return Promise.resolve(xt)}else return!0});return ei?new Promise((Oe,xt)=>{Ie.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:se.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:()=>Xt(void 0,null,function*(){const hn=yield Qe();we.ZP.success("\u5220\u9664\u6210\u529F"),Oe(!0)}),onCancel:()=>Oe(!1)})}):yield Qe()})};function xe(je){je.preventDefault(),je.stopPropagation()}return se.createElement("div",{className:`multi-upload ${It||""}`},jt&&se.createElement(fn,zt({},Ae),se.createElement("p",{className:"ant-upload-drag-icon"},se.createElement(ue.Z,null)),se.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",se.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",en,"MB)"," "),Kn),!jt&&se.createElement(Ce.default,zt({},Ae),se.createElement(De.ZP,{disabled:St,className:"upload_button"},se.createElement("img",{className:"aBtn_img",src:ut}),En),se.createElement("span",{onClick:xe,className:"upload_text"},Sn||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${en}MB)`)))}},97267:function(_e,be,oe){"use strict";var se=oe(59301),Ce=oe(93314),we=oe(3113),Ie=Object.defineProperty,De=Object.defineProperties,Ke=Object.getOwnPropertyDescriptors,Ee=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,Ye=(ze,ee,ne)=>ee in ze?Ie(ze,ee,{enumerable:!0,configurable:!0,writable:!0,value:ne}):ze[ee]=ne,tt=(ze,ee)=>{for(var ne in ee||(ee={}))et.call(ee,ne)&&Ye(ze,ne,ee[ne]);if(Ee)for(var ne of Ee(ee))Je.call(ee,ne)&&Ye(ze,ne,ee[ne]);return ze},ht=(ze,ee)=>De(ze,Ke(ee));const kt=({img:ze,buttonProps:ee={},styles:ne={},customText:ge,ButtonText:ue,ButtonClick:me,Buttonclass:Se,ButtonTwo:Ne,imgStyles:ke,loading:Te=!1})=>se.createElement("section",{className:"tc animated fadeIn",style:tt(tt({},{color:"#999",margin:"100px auto",visibility:Te?"hidden":"visible"}),ne)},se.createElement("img",{src:ze||Ce,style:ht(tt({},ke),{pointerEvents:"none",userSelect:"none"})}),se.createElement("p",{className:"mt20 font14"},ge||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),ue&&se.createElement(we.ZP,tt({className:Se,onClick:me},ee),ue),Ne&&Ne);be.Z=kt},79646:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return Se}});var se=oe(59301),Ce={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},we=oe(3113),Ie=oe(63093),De=oe(48551),Ke=oe(6848),Ee=oe(58130),et=oe(79124),Je=oe(97267),Ye=oe(10148),tt=oe(63486),ht=oe(59301),kt=Object.defineProperty,ze=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,ge=(Ne,ke,Te)=>ke in Ne?kt(Ne,ke,{enumerable:!0,configurable:!0,writable:!0,value:Te}):Ne[ke]=Te,ue=(Ne,ke)=>{for(var Te in ke||(ke={}))ee.call(ke,Te)&&ge(Ne,Te,ke[Te]);if(ze)for(var Te of ze(ke))ne.call(ke,Te)&&ge(Ne,Te,ke[Te]);return Ne},me=(Ne,ke,Te)=>new Promise((We,$e)=>{var st=nt=>{try{Mt(Te.next(nt))}catch($t){$e($t)}},ut=nt=>{try{Mt(Te.throw(nt))}catch($t){$e($t)}},Mt=nt=>nt.done?We(nt.value):Promise.resolve(nt.value).then(st,ut);Mt((Te=Te.apply(Ne,ke)).next())}),Se=({editOffice:Ne="view",data:ke,theme:Te,type:We,filename:$e,monacoEditor:st,className:ut,style:Mt,close:nt,onClose:$t,hasMask:Pt,disabledDownload:dn,onImgDimensions:zt,showNodata:Xt,recordInfo:fn})=>{const[an,it]=(0,se.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Ve,gt]=(0,se.useState)(""),[Bt,sn]=(0,se.useState)(),It=window.ENV==="build"?"/react/build":"",en=location.host.startsWith("localhost")?Ye.Z.PROXY_SERVER:Ye.Z.API_SERVER,ei=10*(1024*1024),An=(0,se.useRef)();ke!=null&&ke.startsWith("/api")&&We!=="txt"&&(ke=Ye.Z.API_SERVER+ke);const Kn=ii=>ii.substring(ii.lastIndexOf("/")+1).split(".").pop();$e&&st&&(st.filename=$e),(0,se.useEffect)(()=>{var ii,Sn;const Yt=(Sn=(ii=document.cookie)==null?void 0:ii.replace(/\s/g,""))==null?void 0:Sn.split(";");Yt==null||Yt.map(Zt=>{let St=Zt.split("=");St[0]==="_educoder_session"&&gt(St[1])})},[]),(0,se.useEffect)(()=>{We==="office"&&(ke.indexOf("bigfilescdn.")>-1||ke.indexOf("bigfiles1")>-1?sn({url:ke,fileType:Kn(ke),model:ke.indexOf("model=edit")?"edit":"view"}):jt())},[We,ke]);const jt=()=>me(void 0,null,function*(){console.log("data:",ke);let ii=ke;ke.startsWith("http")||(ii=location.origin+ii);let Sn=new URL(ii).pathname.split("/").pop();const Yt=yield(0,et.gJ)({attachment_id:Sn});Yt.url=en+Yt.url,sn(Yt)}),Nn=()=>{if(ke.startsWith("http")||ke.startsWith("blob:")){Gn();return}(0,Ee.Sv)($e||"educoder",ke,$e)},Gn=()=>{fn&&(0,tt.fc)({id:fn==null?void 0:fn.id,watch_type:1,course_id:fn==null?void 0:fn.course_id}),(0,Ee.Nd)($e||"educoder",decodeURIComponent(ke))};return ht.createElement("div",{style:ue({},Mt||{}),className:`${Pt&&Ce.bgBlack} ${We?Ce.wrp:"hide"}`},nt&&ht.createElement("div",{className:Ce.close,ref:An},!!zt&&ht.createElement(Ke.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>An.current},ht.createElement("span",{onClick:()=>{$t(),zt()}},ht.createElement("i",{className:"icon-yulanpizhu"}))),!dn&&ht.createElement(Ke.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>An.current},ht.createElement("span",{onClick:Gn},ht.createElement("i",{className:"icon-quxiaozhiding"}))),ht.createElement(Ke.Z,{title:"\u5173\u95ED",getPopupContainer:()=>An.current},ht.createElement("span",{className:"",onClick:$t},ht.createElement("i",{className:"icon-guanbi1"})))),ht.createElement("div",{className:`${Ce[ut]} ${ut} ${Ce.monaco} ${We==="txt"?"show":"hide"}`},We==="txt"&&ht.createElement(ht.Fragment,null,ht.createElement(De.ZP,ue({},st)))),We==="audio"&&ht.createElement("audio",{src:`${(ke==null?void 0:ke.indexOf("http://"))>-1||(ke==null?void 0:ke.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${ke}`,autoPlay:!0}),We==="video"&&ht.createElement(ht.Fragment,null,(ke==null?void 0:ke.indexOf("http"))>-1?ht.createElement("video",{controls:!0,src:`${ke}`,autoPlay:!0}):ht.createElement("video",{controls:!0,src:`data:video/mp4;base64,${ke}`,autoPlay:!0})),We==="office"&&Bt&&ht.createElement("iframe",{src:`${It}/office.html?key=${Bt.key}&url=${btoa(Bt.url)}&callbackUrl=${en+(Bt.callbackUrl||"")}&fileType=${Bt.fileType}&title=${Bt.title||""}&model=${Ne}&officeServer=${Ye.Z.ONLYOFFICE}&disabledDownload=${!!dn}`}),We==="html"&&ht.createElement("iframe",{src:ke+"&disposition=inline"}),We==="pdf"&&ht.createElement("iframe",{src:`${It}/js/pdfview/index.html?filename=${$e||"educoder.pdf"}&url=${encodeURIComponent(ke)}&disabledDownload=${!!dn}`}),We==="image"&&ht.createElement("img",{src:`${(ke==null?void 0:ke.indexOf("http://"))>-1||(ke==null?void 0:ke.indexOf("https://"))>-1?"":"data:image/png;base64,"}${ke}`}),(We==="other"||We==="download")&&ht.createElement(ht.Fragment,null,Xt?ht.createElement(Je.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:ht.createElement(we.ZP,{icon:ht.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Nn,disabled:dn},"\u4E0B\u8F7D")}):ht.createElement(we.ZP,{type:"primary",size:"middle",onClick:Nn,disabled:dn},ht.createElement(Ie.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},64542:function(_e,be,oe){"use strict";oe.d(be,{h:function(){return ee},x:function(){return ne}});var se=oe(23469),Ce=oe(11037),we=oe(25711),Ie=oe(59301),De=Object.defineProperty,Ke=Object.defineProperties,Ee=Object.getOwnPropertyDescriptors,et=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,tt=(ge,ue,me)=>ue in ge?De(ge,ue,{enumerable:!0,configurable:!0,writable:!0,value:me}):ge[ue]=me,ht=(ge,ue)=>{for(var me in ue||(ue={}))Je.call(ue,me)&&tt(ge,me,ue[me]);if(et)for(var me of et(ue))Ye.call(ue,me)&&tt(ge,me,ue[me]);return ge},kt=(ge,ue)=>Ke(ge,Ee(ue)),ze=(ge,ue)=>{var me={};for(var Se in ge)Je.call(ge,Se)&&ue.indexOf(Se)<0&&(me[Se]=ge[Se]);if(ge!=null&&et)for(var Se of et(ge))ue.indexOf(Se)<0&&Ye.call(ge,Se)&&(me[Se]=ge[Se]);return me};const ee=ge=>{var ue=ge,{value:me,onChange:Se,scrollId:Ne}=ue,ke=ze(ue,["value","onChange","scrollId"]);return Ie.createElement("div",{id:Ne||""},Ie.createElement(se.Z,kt(ht({},ke),{defaultValue:me,onChange:(Te,We)=>{We!=null&&We.length?Se(Te,We):Se(Te)}})))},ne=({value:ge,onChange:ue,placeholder:me,height:Se=140,isEdit:Ne,miniToolbar:ke,watch:Te=!0})=>Ne?Ie.createElement(se.Z,{watch:Te,isFocus:!0,height:Se||void 0,placeholder:me,defaultValue:ge,onChange:ue,miniToolbar:ke}):Ie.createElement("div",{style:{cursor:"pointer"}},ge?Ie.createElement(we.Z,{className:Ce.Z.inputBorder,value:ge}):Ie.createElement("div",{className:`${Ce.Z.inputBorder} ${Ce.Z.placeholder} inputBorderError`},me))},25711:function(_e,be,oe){"use strict";oe.d(be,{z:function(){return We},Z:function(){return $e}});var se=oe(59301),Ce=oe(1751),we=oe(31087),Ie=oe(64018),De=oe(37312),Ke=oe(10148),Ee=oe(58130),et=oe(15342),Je=oe(1012),Ye=oe(79646),tt=oe(59301),kt=({html:st})=>{const ut=(0,se.useRef)(null),Mt=(0,se.useRef)(null),nt=`.markdown-body p {
margin: 0 0 16px 0 !important;
line-height: 28px;
white-space: pre-wrap;
}
ol,
ul,
li {
list-style-type: none
}
ol,
ul,
dl {
margin-bottom: 0px;
}
.markdown-body {
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
color: #333;
overflow: hidden;
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
word-break: break-word;
font-size: 16px;
line-height: 1.6;
white-space: normal;
word-wrap: break-word;
position: relative;
}
.markdown-body ul>li {
list-style-type: disc;
}
.markdown-body ol>li {
list-style-type: decimal;
}
.markdown-body a {
background: transparent;
}
.markdown-body a:active,
.markdown-body a:hover {
outline: 0;
}
.markdown-body strong {
font-weight: bold;
}
.markdown-body h1 {
font-size: 2em;
margin: 0.67em 0;
}
.markdown-body img {
border: 0;
}
.markdown-body hr {
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 0;
}
.markdown-body pre {
overflow: auto;
}
.markdown-body code,
.markdown-body kbd,
.markdown-body pre {
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
font-size: 1em;
}
.markdown-body input {
color: inherit;
font: inherit;
margin: 0;
}
.markdown-body html input[disabled] {
cursor: default;
}
.markdown-body input {
line-height: normal;
}
.markdown-body input[type="checkbox"] {
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 0;
}
.markdown-body table {
border-collapse: collapse;
border-spacing: 0;
}
.markdown-body td,
.markdown-body th {
padding: 0;
}
.markdown-body * {
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body input {
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
}
.markdown-body a {
color: #4183c4;
text-decoration: none;
}
.markdown-body a:hover,
.markdown-body a:active {
text-decoration: underline;
}
.markdown-body hr {
height: 0;
margin: 15px 0;
overflow: hidden;
background: transparent;
border: 0;
border-bottom: 1px solid #ddd;
}
.markdown-body hr:before {
display: table;
content: "";
}
.markdown-body hr:after {
display: table;
clear: both;
content: "";
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
margin-top: 15px;
margin-bottom: 15px;
line-height: 1.1;
}
.markdown-body h1 {
font-size: 30px;
}
.markdown-body h2 {
font-size: 21px;
}
.markdown-body h3 {
font-size: 16px;
}
.markdown-body h4 {
font-size: 14px;
}
.markdown-body h5 {
font-size: 12px;
}
.markdown-body h6 {
font-size: 11px;
}
.markdown-body blockquote {
margin: 0;
}
.markdown-body ul,
.markdown-body ol {
padding: 0;
margin-top: 0;
margin-bottom: 0;
}
ul.linenums,
ol.linenums {
padding: 16px 0 0 36px !important;
}
.markdown-body ul,
.markdown-body ol {
padding-left: 2em;
}
.markdown-body ol ol,
.markdown-body ul ol {
list-style-type: lower-roman;
}
.markdown-body ul ul ol,
.markdown-body ul ol ol,
.markdown-body ol ul ol,
.markdown-body ol ol ol {
list-style-type: lower-alpha;
}
.markdown-body dd {
margin-left: 0;
}
.markdown-body code {
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
font-size: 12px;
}
.markdown-body pre {
margin-top: 0;
margin-bottom: 0;
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
}
.markdown-body .octicon {
font: normal normal 16px octicons-anchor;
line-height: 1;
display: inline-block;
text-decoration: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.markdown-body .octicon-link:before {
content: '\f05c';
}
.markdown-body>*:first-child {
margin-top: 0 !important;
}
.markdown-body>*:last-child {
margin-bottom: 0 !important;
}
.markdown-body .anchor {
position: absolute;
top: 0;
left: 0;
display: block;
padding-right: 6px;
padding-left: 30px;
margin-left: -30px;
}
.markdown-body .anchor:focus {
outline: none;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
position: relative;
margin-top: 1em;
margin-bottom: 16px;
font-weight: bold;
line-height: 1.4;
}
.markdown-body h1 .octicon-link,
.markdown-body h2 .octicon-link,
.markdown-body h3 .octicon-link,
.markdown-body h4 .octicon-link,
.markdown-body h5 .octicon-link,
.markdown-body h6 .octicon-link {
display: none;
color: #000;
vertical-align: middle;
}
.markdown-body h1:hover .anchor,
.markdown-body h2:hover .anchor,
.markdown-body h3:hover .anchor,
.markdown-body h4:hover .anchor,
.markdown-body h5:hover .anchor,
.markdown-body h6:hover .anchor {
padding-left: 8px;
margin-left: -30px;
text-decoration: none;
}
.markdown-body h1:hover .anchor .octicon-link,
.markdown-body h2:hover .anchor .octicon-link,
.markdown-body h3:hover .anchor .octicon-link,
.markdown-body h4:hover .anchor .octicon-link,
.markdown-body h5:hover .anchor .octicon-link,
.markdown-body h6:hover .anchor .octicon-link {
display: inline-block;
}
.markdown-body h1 {
padding-bottom: 0.3em;
font-size: 2.25em;
line-height: 1.2;
border-bottom: 1px solid #eee;
}
.markdown-body h1 .anchor {
line-height: 1;
}
.markdown-body h2 {
padding-bottom: 0.3em;
font-size: 1.75em;
line-height: 1.225;
border-bottom: 1px solid #eee;
}
.markdown-body h2 .anchor {
line-height: 1;
}
.markdown-body h3 {
font-size: 1.5em;
line-height: 1.43;
}
.markdown-body h3 .anchor {
line-height: 1.2;
}
.markdown-body h4 {
font-size: 1.25em;
}
.markdown-body h4 .anchor {
line-height: 1.2;
}
.markdown-body h5 {
font-size: 1em;
}
.markdown-body h5 .anchor {
line-height: 1.1;
}
.markdown-body h6 {
font-size: 1em;
color: #777;
}
.markdown-body h6 .anchor {
line-height: 1.1;
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}
.markdown-body ul ul,
.markdown-body ul ol,
.markdown-body ol ol,
.markdown-body ol ul {
margin-top: 0;
margin-bottom: 0;
}
.markdown-body li>p {
margin-top: 16px;
}
.markdown-body dl {
padding: 0;
}
.markdown-body dl dt {
padding: 0;
margin-top: 16px;
font-size: 1em;
font-style: italic;
font-weight: bold;
}
.markdown-body dl dd {
padding: 0 16px;
margin-bottom: 16px;
}
.markdown-body blockquote {
padding: 0 15px;
color: #777;
border-left: 4px solid #ddd;
}
.markdown-body blockquote> :first-child {
margin-top: 0;
}
.markdown-body blockquote> :last-child {
margin-bottom: 0;
}
.markdown-body table {
display: block;
width: 100%;
overflow: auto;
word-break: normal;
word-break: keep-all;
}
.markdown-body table th {
font-weight: bold;
text-align: revert;
}
.markdown-body table th,
.markdown-body table td {
padding: 6px 13px;
border: 1px solid #ddd;
}
.markdown-body table tr {
background-color: #fff;
border-top: 1px solid #ccc;
}
.markdown-body table tr:nth-child(2n) {
background-color: #f8f8f8;
}
.markdown-body img {
max-width: 100%;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body code {
padding: 0;
padding-top: 0.2em;
padding-bottom: 0.2em;
margin: 0;
font-size: 85%;
background-color: rgba(0, 0, 0, 0.04);
border-radius: 3px;
}
.markdown-body code:has(.katex) {
background-color: transparent;
}
.markdown-body code:before,
.markdown-body code:after {
letter-spacing: -0.2em;
content: "\\00a0";
}
.markdown-body pre>code {
padding: 0;
margin: 0;
font-size: 100%;
word-break: normal;
white-space: pre;
background: transparent;
border: 0;
}
.markdown-body .highlight {
margin-bottom: 16px;
}
.markdown-body .highlight pre,
.markdown-body pre {
padding: 16px;
overflow: auto;
font-size: 85%;
line-height: 1.45;
background-color: #f7f7f7;
border-radius: 3px;
}
.markdown-body .highlight pre {
margin-bottom: 0;
word-break: normal;
}
.markdown-body pre {
word-wrap: normal;
}
.markdown-body pre code {
display: inline;
max-width: initial;
padding: 0;
margin: 0;
overflow: initial;
line-height: inherit;
word-wrap: normal;
background-color: transparent;
border: 0;
}
.markdown-body pre code:before,
.markdown-body pre code:after {
content: normal;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font-size: 11px;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .pl-c {
color: #969896;
}
.markdown-body .pl-c1,
.markdown-body .pl-mdh,
.markdown-body .pl-mm,
.markdown-body .pl-mp,
.markdown-body .pl-mr,
.markdown-body .pl-s1 .pl-v,
.markdown-body .pl-s3,
.markdown-body .pl-sc,
.markdown-body .pl-sv {
color: #0086b3;
}
.markdown-body .pl-e,
.markdown-body .pl-en {
color: #795da3;
}
.markdown-body .pl-s1 .pl-s2,
.markdown-body .pl-smi,
.markdown-body .pl-smp,
.markdown-body .pl-stj,
.markdown-body .pl-vo,
.markdown-body .pl-vpf {
color: #333;
}
.markdown-body .pl-ent {
color: #63a35c;
}
.markdown-body .pl-k,
.markdown-body .pl-s,
.markdown-body .pl-st {
color: #a71d5d;
}
.markdown-body .pl-pds,
.markdown-body .pl-s1,
.markdown-body .pl-s1 .pl-pse .pl-s2,
.markdown-body .pl-sr,
.markdown-body .pl-sr .pl-cce,
.markdown-body .pl-sr .pl-sra,
.markdown-body .pl-sr .pl-sre,
.markdown-body .pl-src {
color: #df5000;
}
.markdown-body .pl-mo,
.markdown-body .pl-v {
color: #1d3e81;
}
.markdown-body .pl-id {
color: #b52a1d;
}
.markdown-body .pl-ii {
background-color: #b52a1d;
color: #f8f8f8;
}
.markdown-body .pl-sr .pl-cce {
color: #63a35c;
font-weight: bold;
}
.markdown-body .pl-ml {
color: #693a17;
}
.markdown-body .pl-mh,
.markdown-body .pl-mh .pl-en,
.markdown-body .pl-ms {
color: #1d3e81;
font-weight: bold;
}
.markdown-body .pl-mq {
color: #008080;
}
.markdown-body .pl-mi {
color: #333;
font-style: italic;
}
.markdown-body .pl-mb {
color: #333;
font-weight: bold;
}
.markdown-body .pl-md,
.markdown-body .pl-mdhf {
background-color: #ffecec;
color: #bd2c00;
}
.markdown-body .pl-mdht,
.markdown-body .pl-mi1 {
background-color: #eaffea;
color: #55a532;
}
.markdown-body .pl-mdr {
color: #795da3;
font-weight: bold;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .task-list-item {
list-style-type: none;
}
.markdown-body .task-list-item+.task-list-item {
margin-top: 3px;
}
.markdown-body .task-list-item input {
float: left;
margin: 0.3em 0 0.25em -1.6em;
vertical-align: middle;
}
.markdown-body :checked+.radio-label {
z-index: 1;
position: relative;
border-color: #4183c4;
}
/*! Pretty printing styles. Used with prettify.js. */
/* SPAN elements with the classes below are added by prettyprint. */
.pln {
color: #000
}
/* plain text */
@media screen {
.str {
color: #080
}
/* string content */
.kwd {
color: #008
}
/* a keyword */
.com {
color: #800
}
/* a comment */
.typ {
color: #606
}
/* a type name */
.lit {
color: #066
}
/* a literal value */
/* punctuation, lisp open bracket, lisp close bracket */
.pun,
.opn,
.clo {
color: #660
}
.tag {
color: #008
}
/* a markup tag name */
.atn {
color: #606
}
/* a markup attribute name */
.atv {
color: #080
}
/* a markup attribute value */
.dec,
.var {
color: #606
}
/* a declaration; a variable name */
.fun {
color: red
}
/* a function name */
}
/* Use higher contrast and text-weight for printable form. */
@media print,
projection {
.str {
color: #060
}
.kwd {
color: #006;
font-weight: bold
}
.com {
color: #600;
font-style: italic
}
.typ {
color: #404;
font-weight: bold
}
.lit {
color: #044
}
.pun,
.opn,
.clo {
color: #440
}
.tag {
color: #006;
font-weight: bold
}
.atn {
color: #404
}
.atv {
color: #060
}
}
/* Put a border around prettyprinted code snippets. */
pre.prettyprint {
padding: 2px;
/* border: 1px solid #888 */
}
/* Specify class=linenums on a pre to get line numbering */
ol.linenums {
margin-top: 0;
margin-bottom: 0
}
/* IE indents via margin-left */
li.L0,
li.L1,
li.L2,
li.L3,
li.L5,
li.L6,
li.L7,
li.L8 {
list-style-type: none
}
/* Alternate shading for lines */
li.L1,
li.L3,
li.L5,
li.L7,
li.L9 {
background: #eee
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}`;return(0,se.useEffect)(()=>{const $t=ut.current.attachShadow({mode:"open"});Mt.current=document.createElement("div"),Mt.current.className="markdown-body",Mt.current.innerHTML=st,$t.appendChild(Mt.current);const Pt=document.createElement("style");return Pt.textContent=nt,$t.appendChild(Pt),()=>{$t.innerHTML=""}},[]),(0,se.useEffect)(()=>{Mt.current&&(Mt.current.innerHTML=st)},[st]),tt.createElement("div",{ref:ut})},ze=Object.defineProperty,ee=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,ue=(st,ut,Mt)=>ut in st?ze(st,ut,{enumerable:!0,configurable:!0,writable:!0,value:Mt}):st[ut]=Mt,me=(st,ut)=>{for(var Mt in ut||(ut={}))ne.call(ut,Mt)&&ue(st,Mt,ut[Mt]);if(ee)for(var Mt of ee(ut))ge.call(ut,Mt)&&ue(st,Mt,ut[Mt]);return st};const Se="@\u2581\u2581@",Ne="@\u2581@",ke=/<pre[^>]*>/g;function Te(st){let ut=document.createElement("div");return ut.innerHTML=st,ut.childNodes.length===0?"":ut.childNodes[0].nodeValue}const We=(st,ut)=>{st=st||"";const Mt=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,nt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,$t=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Pt=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return ut?st.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Mt,(dn,zt,Xt,fn,an,it,Ve)=>{const gt=zt||fn||it,Bt=Xt||an||Ve||"?";return Ke.Z.API_SERVER+"/api/attachments/"+gt+Bt+"&t="+(0,Ee.Jn)(gt,Date.now())+(dn.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(st=st.replace(Pt,(dn,zt,Xt,fn,an,it,Ve)=>{const gt=zt||fn||it,Bt=Xt||an||Ve||"?";return Ke.Z.API_SERVER+"/attachments/download/"+gt+Bt+"&t="+(0,Ee.Jn)(gt,Date.now())+(dn.indexOf(")")>-1?")":"&")}).replace(Mt,(dn,zt,Xt,fn,an,it,Ve)=>{const gt=zt||fn||it,Bt=Xt||an||Ve||"?";return Ke.Z.API_SERVER+"/api/attachments/"+gt+Bt+"&t="+(0,Ee.Jn)(gt,Date.now())+(dn.indexOf(")")>-1?")":"&")}).replace(nt,(dn,zt,Xt,fn,an)=>{const it=zt||fn,Ve=Xt||an||"";return'"'+Ke.Z.API_SERVER+"/api/attachments/"+it+Ve+it+Ve+"&t="+(0,Ee.Jn)(it,Date.now())}).replace($t,(dn,zt,Xt,fn,an)=>{const it=zt||fn,Ve=Xt||an||"";return"("+Ke.Z.API_SERVER+"/files/uploads/"+it+Ve+it+Ve+"&t="+(0,Ee.Jn)(it,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`),st)};var $e=({value:st="",className:ut,showTextOnly:Mt,showLines:nt,style:$t={},stylesPrev:Pt={},highlightKeywords:dn,showProgramFill:zt,isProgramFill:Xt,disabledFill:fn=!1,programFillValue:an,onFillChange:it=Bt=>{},onFillBlur:Ve=()=>{},onFillFocus:gt=()=>{}})=>{let Bt=String(st);const[sn,It]=(0,se.useState)(""),[en,En]=(0,se.useState)("office"),[ei,An]=(0,se.useState)([]),Kn=(0,se.useRef)("a"+(0,Je.Z)()),jt={},Nn=(Ge,Ae,xe)=>{const je=document.createElement(Ge===Ne?"input":"textarea");je.style.width="100%",je.style.height=Ge===Ne?"40px":"151px",je.rows=5,je.spellcheck=!1,je.name="edu-program-fill",je.placeholder="\u8BF7\u8F93\u5165",je.dataset.id=Ae;const Qe=Object.keys(jt).length;return jt[Qe]=je,`<span class="edu-program-fill-wrap ${Ge===Ne?"":"show"}" style="width:${Ge===Ne?"400px":"100%"}" title=${xe||""}><span>${je.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Gn(Ge){return Ge=Ge.replace(/!\[.*?\]\(.*?\)/g,""),Ge=Ge.replace(/\[.*?\]\(.*?\)/g,""),Ge=Ge.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Ge=Ge.replace(/<embed.*?>/g,""),Ge=Ge.replace(/<img.*?>/g,""),Ge=Ge.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Ge=Ge.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Ge=Ge.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Ge=Ge.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Ge}const ii=Ge=>Ge.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Ae,xe){let je=xe.replace(/(\n|\r)/g,"").split("}"),Qe=[];return je.map(Oe=>{Oe!=""&&Qe.push(`.${Kn.current} ${Oe}`)}),`<style>${Qe.join("}")}</style>`}),Sn=(0,se.useMemo)(()=>{try{const je=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Qe=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Oe=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,xt=/\(\/attachments\/download\//g;Bt=Bt.replace(xt,"("+Ke.Z.API_SERVER+"/attachments/download/").replace(je,"("+Ke.Z.API_SERVER+"/api/attachments/").replace(Qe,'"'+Ke.Z.API_SERVER+"/api/attachments/").replace(Oe,'"'+Ke.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`)}catch(je){}if(zt){let je=-1;return Bt=Bt.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(Qe,Oe,xt){var hn;return++je,Nn(Qe,je,(hn=an==null?void 0:an[je])==null?void 0:hn.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${ii(Bt||"")}</pre>`}let Ge=ii(Bt);Ge=(0,we.ZP)(Ge);const Ae=(0,we.ez)();Bt.match(/\[TOC\]/)&&(Ge=Ge.replace("<p>[TOC]</p>",(0,we.Qv)()),(0,we.Iy)()),Ge=Ge.replace(/(__special_katext_id_\d+__)/g,(je,Qe)=>{const{type:Oe,expression:xt}=Ae[Qe];return(0,et.renderToString)(Te(xt)||"",{displayMode:Oe==="block",throwOnError:!1,output:"html"})}),Ge=Ge.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,we.AL)();const xe=document.createElement("div");if(xe.innerHTML=Ge,Mt)return xe.innerText;if(dn){const je=dn.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return rt(xe,je),xe.innerHTML}return setTimeout(()=>ft(),500),xe.innerHTML},[Bt,dn]);(0,se.useEffect)(()=>{Ft.current&&Ft.current.querySelectorAll(["input","textarea"]).forEach(Ae=>{Ae.oninput=Yt,Ae.onblur=Zt,Ae.onfocus=St})},[ei]),(0,se.useEffect)(()=>{var Ge,Ae,xe,je,Qe;if(an!=null&&an.length)try{const Oe=Ft.current.querySelectorAll(".edu-program-fill-score"),xt=Ft.current.querySelectorAll('[name="edu-program-fill"]');for(const[hn,Pn]of xt.entries())Pn.value=((Ge=an==null?void 0:an[hn])==null?void 0:Ge.value)||"",((Ae=an==null?void 0:an[hn])==null?void 0:Ae.type)==="warning"?Pn.className="program-fill-warning":((xe=an==null?void 0:an[hn])==null?void 0:xe.type)==="success"?Pn.className="program-fill-success":Pn.className="";for(const[hn,Pn]of Oe.entries())Pn.innerHTML=(je=an==null?void 0:an[hn])!=null&&je.score?`${(Qe=an==null?void 0:an[hn])==null?void 0:Qe.score}\u5206`:"";An(an)}catch(Oe){console.log(Oe,"error")}},[an]);const Yt=Ge=>{ei[Ge.target.dataset.id]=ei[Ge.target.dataset.id]||{},ei[Ge.target.dataset.id].value=Ge.target.value,An([...ei]),it(ei,Ge.target.dataset.id)},Zt=Ge=>{ei[Ge.target.dataset.id]=ei[Ge.target.dataset.id]||{},ei[Ge.target.dataset.id].value=Ge.target.value,An([...ei]),Ve(ei,Ge.target.dataset.id)},St=Ge=>{ei[Ge.target.dataset.id]=ei[Ge.target.dataset.id]||{},ei[Ge.target.dataset.id].value=Ge.target.value,An([...ei]),gt(ei,Ge.target.dataset.id)};function rt(Ge,Ae){return Ge.childNodes.forEach(xe=>{var je;if(xe.childNodes.length>0)rt(xe,Ae);else if(xe.nodeName!=="IMG")if(xe.innerHTML)xe.innerHTML=(je=xe.innerHTML)==null?void 0:je.replace(new RegExp(Ae,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Qe=document.createElement("span");Qe.innerHTML=xe.textContent.replace(new RegExp(Ae,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),xe.replaceWith(Qe)}})}const Ft=(0,se.useRef)();we.jb.WebkitLineClamp=nt,nt&&($t=me(me({},$t),we.jb));function Ot(Ge){let Ae=Ge.target;if(Ae.tagName.toUpperCase()==="A"){let xe=Ae.getAttribute("href");if(xe.indexOf("office")>-1)Ge.preventDefault(),It(xe),En("office");else if(xe.indexOf("application/pdf")>-1)Ge.preventDefault(),It(xe),En("pdf");else if(xe.indexOf("text/html")>-1)Ge.preventDefault(),It(xe),En("html");else if(xe.startsWith("#")){Ge.preventDefault();let je=document.getElementById(xe.replace("#",""));je&&je.scrollIntoView(!0)}}}const ft=()=>{var Ge;const Ae=(Ge=Ft.current)==null?void 0:Ge.querySelectorAll("video");Ae==null||Ae.forEach(xe=>{if(xe.oncontextmenu=()=>!1,xe.src.indexOf(".m3u8")>-1&&!xe.canPlayType("application/vnd.apple.mpegurl")){if(De.ZP.isSupported()){var je=new De.ZP;je.loadSource(xe.src),je.attachMedia(xe)}}})};(0,se.useEffect)(()=>{if(Ft.current&&Sn&&Sn.match(ke)&&window.PR.prettyPrint(),Ft.current)return Ft.current.addEventListener("click",Ot),()=>{var Ge;(Ge=Ft.current)==null||Ge.removeEventListener("click",Ot),(0,we.AL)(),(0,we.Iy)()}},[Sn,Ft.current,Ot]),(0,se.useEffect)(()=>{var Ge;const Ae=xe=>{xe.preventDefault(),xe.clipboardData.setData("text",window.getSelection().toString())};return(Ge=Ft.current)==null||Ge.addEventListener("copy",Ae),()=>{var xe;(xe=Ft.current)==null||xe.removeEventListener("copy",Ae)}},[Ft.current]);const ct=Ge=>/<style[\s\S]*?>/i.test(Ge||"");return se.createElement(se.Fragment,null,Mt&&se.createElement("div",{ref:Ft},Sn),!Mt&&!ct(Sn)&&se.createElement("div",{ref:Ft,style:me({},$t),className:`${ut||""} ${fn?"disabled-fill":""} markdown-body ${Kn.current}`,dangerouslySetInnerHTML:{__html:Sn}}),!Mt&&ct(Sn)&&se.createElement(kt,{html:Sn}),se.createElement(Ye.Z,{close:!0,data:sn,type:sn!=null&&sn.length?en:"",style:me({},Pt),onClose:()=>It("")}))}},93461:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return $t}});var se=oe(59301),Ce=oe(42203),we=oe(43418),Ie=oe(78241),De=oe(8591),Ke=oe(71418),Ee=oe(86914),et=oe(95237),Je=oe(43604),Ye=oe(6848),tt=oe(92832),ht={currentPrimary:"currentPrimary___NPWiR",currentDelete:"currentDelete___UEfhf",DirectoryTree:"DirectoryTree___xPxCY",EditDom:"EditDom___seNxC"},kt=oe(35427),ze=oe(3129),ee=oe(97267),ne=oe(94606),ge=Object.defineProperty,ue=Object.defineProperties,me=Object.getOwnPropertyDescriptors,Se=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,Te=(Pt,dn,zt)=>dn in Pt?ge(Pt,dn,{enumerable:!0,configurable:!0,writable:!0,value:zt}):Pt[dn]=zt,We=(Pt,dn)=>{for(var zt in dn||(dn={}))Ne.call(dn,zt)&&Te(Pt,zt,dn[zt]);if(Se)for(var zt of Se(dn))ke.call(dn,zt)&&Te(Pt,zt,dn[zt]);return Pt},$e=(Pt,dn)=>ue(Pt,me(dn)),st=(Pt,dn)=>{var zt={};for(var Xt in Pt)Ne.call(Pt,Xt)&&dn.indexOf(Xt)<0&&(zt[Xt]=Pt[Xt]);if(Pt!=null&&Se)for(var Xt of Se(Pt))dn.indexOf(Xt)<0&&ke.call(Pt,Xt)&&(zt[Xt]=Pt[Xt]);return zt},ut=(Pt,dn,zt)=>new Promise((Xt,fn)=>{var an=gt=>{try{Ve(zt.next(gt))}catch(Bt){fn(Bt)}},it=gt=>{try{Ve(zt.throw(gt))}catch(Bt){fn(Bt)}},Ve=gt=>gt.done?Xt(gt.value):Promise.resolve(gt.value).then(an,it);Ve((zt=zt.apply(Pt,dn)).next())});const Mt=(Pt=[])=>Pt==null?void 0:Pt.map(dn=>$e(We({},dn),{title:(dn==null?void 0:dn.value)||"",key:dn==null?void 0:dn.id,isLeaf:!0})),nt=Pt=>{var dn=Pt,{user:zt,children:Xt,isShowComponent:fn=!0,ModalProps:an={},onDataSelect:it}=dn,Ve=st(dn,["user","children","isShowComponent","ModalProps","onDataSelect"]);const[gt,Bt]=we.default.useModal(),[sn]=Ie.default.useForm(),[It,en]=(0,se.useState)([]),[En,ei]=(0,se.useState)(!1),[An,Kn]=(0,se.useState)(!1),[,jt,Nn,Gn]=(0,kt.U)(ze.qE,{page:1,limit:9999}),[,,ii]=(0,kt.U)(ze.V8,{}),[,,Sn]=(0,kt.U)(ze.B$,{}),[,,Yt]=(0,kt.U)(ze.DH,{}),[,,Zt]=(0,kt.U)(ze.bJ,{}),St=()=>{ei(!1),sn.resetFields(),Kn(!1)},rt=Ot=>ut(void 0,null,function*(){const{node:ft,dragNode:ct,event:Ge}=Ot,Ae=Ot.node.pos.split("-"),xe=Ot.dropPosition-Number(Ae[Ae.length-1]);if(xe==0){De.ZP.warning("\u65E0\u6CD5\u79FB\u52A8\u5230\u5185\u90E8\u4F4D\u7F6E");return}if(xe==1&&(ct==null?void 0:ct.item_index)==(ft==null?void 0:ft.item_index)+1){De.ZP.warning("\u672A\u79FB\u52A8\u4F4D\u7F6E");return}const je=yield Zt({id:ct==null?void 0:ct.key,position:xe==-1?1:(ct==null?void 0:ct.item_index)>(ft==null?void 0:ft.item_index)?(ft==null?void 0:ft.item_index)+1:ft==null?void 0:ft.item_index});(je==null?void 0:je.status)===0&&(De.ZP.success("\u79FB\u52A8\u6210\u529F"),Nn({},!0))}),Ft=Ot=>ut(void 0,null,function*(){let ft={};An?ft=yield Sn(We({},Ot)):ft=yield Yt(We({},Ot)),(ft==null?void 0:ft.status)==0&&(De.ZP.success((ft==null?void 0:ft.message)||(An?"\u6DFB\u52A0\u6210\u529F":"\u66F4\u65B0\u6210\u529F")),Nn({},!0),St())});return(0,se.useEffect)(()=>{an!=null&&an.open&&Nn({},!0)},[an==null?void 0:an.open]),(0,se.useEffect)(()=>{var Ot;en(Mt((Ot=Gn==null?void 0:Gn.data)==null?void 0:Ot.list))},[Gn]),fn?se.createElement(se.Fragment,null,Bt,Xt,se.createElement(we.default,We({},We({title:"\u5E38\u7528\u8BC4\u8BED",width:640,centered:!0,footer:null,bodyStyle:{padding:"10px 5px 25px"}},an)),se.createElement(Ke.Z,{spinning:jt},(It==null?void 0:It.length)>0?se.createElement(se.Fragment,null,se.createElement(Ee.default.DirectoryTree,{height:500,className:ht.DirectoryTree,multiple:!0,draggable:{icon:!1},defaultExpandAll:!0,switcherIcon:!1,showIcon:!1,onSelect:it,treeData:It,onDrop:rt,titleRender:Ot=>se.createElement(se.Fragment,null,se.createElement("span",{className:"multi_ellipsis1",style:{flex:1,marginRight:"32px"}},Ot==null?void 0:Ot.title),se.createElement("div",{className:`${ht.EditDom}`},se.createElement(et.Z,{wrap:!1,align:"middle",gutter:16},se.createElement(Je.Z,null,se.createElement(Ye.Z,{title:"\u957F\u6309\u53EF\u8FDB\u884C\u62D6\u62FD\u6392\u5E8F"},se.createElement("i",{className:`iconfont icon-tuodong1 font12 ${ht.currentPrimary}`}))),se.createElement(Je.Z,null,se.createElement(Ye.Z,{title:"\u7F16\u8F91"},se.createElement("i",{className:`iconfont icon-bianji11 font12 ${ht.currentPrimary}`,onClick:ft=>{ft.stopPropagation(),sn.setFieldsValue(We({},Ot)),ei(!0)}}))),se.createElement(Je.Z,null,se.createElement(Ye.Z,{title:"\u5220\u9664"},se.createElement("i",{className:`iconfont icon-shanchu14 font12 ${ht.currentDelete}`,onClick:ft=>{ft.stopPropagation(),gt.confirm({icon:null,title:"\u5220\u9664\u5E38\u7528\u8BC4\u8BED",centered:!0,content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u5E38\u7528\u8BC4\u8BED\u5417\uFF1F",onOk:()=>ut(void 0,null,function*(){const ct=yield ii({id:Ot==null?void 0:Ot.key});(ct==null?void 0:ct.status)==0&&(De.ZP.success((ct==null?void 0:ct.message)||"\u5220\u9664\u6210\u529F"),Nn({},!0))})})}}))))))}),se.createElement(ne.op,{className:"ml20 mt20",icon:se.createElement("i",{className:"iconfont icon-xiaojiahao"}),style:{borderRadius:"4px"},onClick:()=>{Kn(!0),ei(!0)}},"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED")):se.createElement(ee.Z,{styles:{margin:"30px auto"},customText:se.createElement("span",null,"\u6682\u65E0\u5E38\u7528\u8BC4\u8BED\uFF0C\u4F60\u53EF\u4EE5",se.createElement("a",{onClick:()=>{Kn(!0),ei(!0)}},"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED"))}))),se.createElement(we.default,{title:An?"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED":"\u7F16\u8F91\u5E38\u7528\u8BC4\u8BED",open:En,okText:An?"\u6DFB\u52A0":"\u786E\u5B9A",onCancel:()=>{St()},onOk:()=>{sn.submit()}},se.createElement(Ie.default,{form:sn,onFinish:Ft},An&&se.createElement("span",{className:"font14",style:{color:"#191919"}},"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED\uFF0C\u53EF\u4EE5\u5E2E\u52A9\u4F60\u63D0\u9AD8\u8BC4\u9605\u4F5C\u4E1A\u7684\u6548\u7387"),se.createElement(Ie.default.Item,{hidden:!0,name:"id"}),se.createElement(Ie.default.Item,{className:"mt10",name:"value"},se.createElement(tt.default.TextArea,{placeholder:"\u8F93\u5165\u5E38\u7528\u8BC4\u8BED\u3002\u4F8B\u5982\uFF1A\u4F60\u7684\u7F16\u7A0B\u4F5C\u4E1A\u6574\u4F53\u8868\u73B0\u826F\u597D\uFF0C\u4F46\u4ECD\u6709\u4E00\u4E9B\u5C0F\u7684\u6539\u8FDB\u7A7A\u95F4\u3002",autoSize:{minRows:8,maxRows:9},maxLength:100,showCount:!0}))))):null};var $t=(0,Ce.connect)(({loading:Pt,user:dn})=>({user:dn,loading:Pt.effects}))(nt)},2307:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return Rn}});var se=oe(59301),Ce=oe(86766),we=oe(30631),Ie=oe(92310),De=oe.n(Ie),Ke=oe(5891),Ee=oe(57259),et=oe(80962),Je=oe(29043),Ye=oe(80665),tt=oe(19149),ht=oe(21783),kt=oe(35788),ze=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],ee=se.createContext(null),ne=0;function ge(bt,Ut){var Ln=se.useState(function(){return ne+=1,String(ne)}),ni=(0,Je.Z)(Ln,1),Gt=ni[0],yn=se.useContext(ee),Qt={data:Ut,canPreview:bt};return se.useEffect(function(){if(yn)return yn.register(Gt,Qt)},[]),se.useEffect(function(){yn&&yn.register(Gt,Qt)},[bt,Ut]),Gt}function ue(bt){return new Promise(function(Ut){var Ln=document.createElement("img");Ln.onerror=function(){return Ut(!1)},Ln.onload=function(){return Ut(!0)},Ln.src=bt})}function me(bt){var Ut=bt.src,Ln=bt.isCustomPlaceholder,ni=bt.fallback,Gt=(0,se.useState)(Ln?"loading":"normal"),yn=(0,Je.Z)(Gt,2),Qt=yn[0],un=yn[1],wn=(0,se.useRef)(!1),gn=Qt==="error";(0,se.useEffect)(function(){ue(Ut).then(function(Jn){Jn||un("error")})},[Ut]),(0,se.useEffect)(function(){Ln&&!wn.current?un("loading"):gn&&un("normal")},[Ut]);var kn=function(){un("normal")},Bn=function(Wn){wn.current=!1,Qt==="loading"&&Wn!=null&&Wn.complete&&(Wn.naturalWidth||Wn.naturalHeight)&&(wn.current=!0,kn())},Vn=gn&&ni?{src:ni}:{onLoad:kn,src:Ut};return[Bn,Vn,Qt]}var Se=oe(86923),Ne=oe(8178),ke=oe(85108),Te=oe(51395);function We(bt,Ut,Ln,ni){var Gt=Ut+Ln,yn=(Ln-ni)/2;if(Ln>ni){if(Ut>0)return(0,et.Z)({},bt,yn);if(Ut<0&&Gt<ni)return(0,et.Z)({},bt,-yn)}else if(Ut<0||Gt>ni)return(0,et.Z)({},bt,Ut<0?yn:-yn);return{}}function $e(bt,Ut,Ln,ni){var Gt=(0,ht.g1)(),yn=Gt.width,Qt=Gt.height,un=null;return bt<=yn&&Ut<=Qt?un={x:0,y:0}:(bt>yn||Ut>Qt)&&(un=(0,Ee.Z)((0,Ee.Z)({},We("x",Ln,bt,yn)),We("y",ni,Ut,Qt))),un}var st=oe(51346),ut=oe(23073),Mt={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function nt(bt,Ut,Ln,ni){var Gt=(0,se.useRef)(null),yn=(0,se.useRef)([]),Qt=(0,se.useState)(Mt),un=(0,Je.Z)(Qt,2),wn=un[0],gn=un[1],kn=function(Wn){gn(Mt),ni&&!(0,st.Z)(Mt,wn)&&ni({transform:Mt,action:Wn})},Bn=function(Wn,gi){Gt.current===null&&(yn.current=[],Gt.current=(0,ut.Z)(function(){gn(function(Fi){var ir=Fi;return yn.current.forEach(function(zi){ir=(0,Ee.Z)((0,Ee.Z)({},ir),zi)}),Gt.current=null,ni==null||ni({transform:ir,action:gi}),ir})})),yn.current.push((0,Ee.Z)((0,Ee.Z)({},wn),Wn))},Vn=function(Wn,gi,Fi,ir){var zi=bt.current,tn=zi.width,Ai=zi.height,Bi=zi.offsetWidth,Ti=zi.offsetHeight,hr=zi.offsetLeft,tr=zi.offsetTop,br=Wn,Xi=wn.scale*Wn;Xi>Ln?(br=Ln/wn.scale,Xi=Ln):Xi<Ut&&(br=Ut/wn.scale,Xi=Ut);var Hi=Fi!=null?Fi:innerWidth/2,Ir=ir!=null?ir:innerHeight/2,Ht=br-1,Kr=Ht*tn*.5,Fn=Ht*Ai*.5,kr=Ht*(Hi-wn.x-hr),Go=Ht*(Ir-wn.y-tr),Dr=wn.x-(kr-Kr),po=wn.y-(Go-Fn);if(Wn<1&&Xi===1){var Do=Bi*Xi,Ji=Ti*Xi,or=(0,ht.g1)(),io=or.width,Gr=or.height;Do<=io&&Ji<=Gr&&(Dr=0,po=0)}Bn({x:Dr,y:po,scale:Xi},gi)};return{transform:wn,resetTransform:kn,updateTransform:Bn,dispatchZoomChange:Vn}}var $t=oe(43403),Pt=oe(43469),dn=function(Ut){var Ln=Ut.visible,ni=Ut.maskTransitionName,Gt=Ut.getContainer,yn=Ut.prefixCls,Qt=Ut.rootClassName,un=Ut.icons,wn=Ut.countRender,gn=Ut.showSwitch,kn=Ut.showProgress,Bn=Ut.current,Vn=Ut.transform,Jn=Ut.count,Wn=Ut.scale,gi=Ut.minScale,Fi=Ut.maxScale,ir=Ut.closeIcon,zi=Ut.onSwitchLeft,tn=Ut.onSwitchRight,Ai=Ut.onClose,Bi=Ut.onZoomIn,Ti=Ut.onZoomOut,hr=Ut.onRotateRight,tr=Ut.onRotateLeft,br=Ut.onFlipX,Xi=Ut.onFlipY,Hi=Ut.toolbarRender,Ir=(0,se.useContext)(ee),Ht=un.rotateLeft,Kr=un.rotateRight,Fn=un.zoomIn,kr=un.zoomOut,Go=un.close,Dr=un.left,po=un.right,Do=un.flipX,Ji=un.flipY,or="".concat(yn,"-operations-operation");se.useEffect(function(){var lt=function(Ko){Ko.keyCode===ke.Z.ESC&&Ai()};return Ln&&window.addEventListener("keydown",lt),function(){window.removeEventListener("keydown",lt)}},[Ln]);var io=[{icon:Ji,onClick:Xi,type:"flipY"},{icon:Do,onClick:br,type:"flipX"},{icon:Ht,onClick:tr,type:"rotateLeft"},{icon:Kr,onClick:hr,type:"rotateRight"},{icon:kr,onClick:Ti,type:"zoomOut",disabled:Wn===gi},{icon:Fn,onClick:Bi,type:"zoomIn",disabled:Wn===Fi}],Gr=io.map(function(lt){var Rr,Ko=lt.icon,Yr=lt.onClick,yo=lt.type,Mr=lt.disabled;return se.createElement("div",{className:De()(or,(Rr={},(0,et.Z)(Rr,"".concat(yn,"-operations-operation-").concat(yo),!0),(0,et.Z)(Rr,"".concat(yn,"-operations-operation-disabled"),!!Mr),Rr)),onClick:Yr,key:yo},Ko)}),Ii=se.createElement("div",{className:"".concat(yn,"-operations")},Gr);return se.createElement(Pt.default,{visible:Ln,motionName:ni},function(lt){var Rr=lt.className,Ko=lt.style;return se.createElement($t.Z,{open:!0,getContainer:Gt!=null?Gt:document.body},se.createElement("div",{className:De()("".concat(yn,"-operations-wrapper"),Rr,Qt),style:Ko},ir===null?null:se.createElement("button",{className:"".concat(yn,"-close"),onClick:Ai},ir||Go),gn&&se.createElement(se.Fragment,null,se.createElement("div",{className:De()("".concat(yn,"-switch-left"),(0,et.Z)({},"".concat(yn,"-switch-left-disabled"),Bn===0)),onClick:zi},Dr),se.createElement("div",{className:De()("".concat(yn,"-switch-right"),(0,et.Z)({},"".concat(yn,"-switch-right-disabled"),Bn===Jn-1)),onClick:tn},po)),se.createElement("div",{className:"".concat(yn,"-footer")},kn&&se.createElement("div",{className:"".concat(yn,"-progress")},wn?wn(Bn+1,Jn):"".concat(Bn+1," / ").concat(Jn)),Hi?Hi(Ii,(0,Ee.Z)({icons:{flipYIcon:Gr[0],flipXIcon:Gr[1],rotateLeftIcon:Gr[2],rotateRightIcon:Gr[3],zoomOutIcon:Gr[4],zoomInIcon:Gr[5]},actions:{onFlipY:Xi,onFlipX:br,onRotateLeft:tr,onRotateRight:hr,onZoomOut:Ti,onZoomIn:Bi},transform:Vn},Ir?{current:Bn,total:Jn}:{})):Ii)))})},zt=dn,Xt=1,fn=1,an=["fallback","src","imgRef"],it=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],Ve=function(Ut){var Ln=Ut.fallback,ni=Ut.src,Gt=Ut.imgRef,yn=(0,tt.Z)(Ut,an),Qt=me({src:ni,fallback:Ln}),un=(0,Je.Z)(Qt,2),wn=un[0],gn=un[1];return se.createElement("img",(0,Ke.Z)({ref:function(Bn){Gt.current=Bn,wn(Bn)}},yn,gn))},gt=function(Ut){var Ln=Ut.prefixCls,ni=Ut.src,Gt=Ut.alt,yn=Ut.fallback,Qt=Ut.movable,un=Qt===void 0?!0:Qt,wn=Ut.onClose,gn=Ut.visible,kn=Ut.icons,Bn=kn===void 0?{}:kn,Vn=Ut.rootClassName,Jn=Ut.closeIcon,Wn=Ut.getContainer,gi=Ut.current,Fi=gi===void 0?0:gi,ir=Ut.count,zi=ir===void 0?1:ir,tn=Ut.countRender,Ai=Ut.scaleStep,Bi=Ai===void 0?.5:Ai,Ti=Ut.minScale,hr=Ti===void 0?1:Ti,tr=Ut.maxScale,br=tr===void 0?50:tr,Xi=Ut.transitionName,Hi=Xi===void 0?"zoom":Xi,Ir=Ut.maskTransitionName,Ht=Ir===void 0?"fade":Ir,Kr=Ut.imageRender,Fn=Ut.imgCommonProps,kr=Ut.toolbarRender,Go=Ut.onTransform,Dr=Ut.onChange,po=(0,tt.Z)(Ut,it),Do=(0,se.useRef)(),Ji=(0,se.useRef)({deltaX:0,deltaY:0,transformX:0,transformY:0}),or=(0,se.useState)(!1),io=(0,Je.Z)(or,2),Gr=io[0],Ii=io[1],lt=(0,se.useContext)(ee),Rr=lt&&zi>1,Ko=lt&&zi>=1,Yr=nt(Do,hr,br,Go),yo=Yr.transform,Mr=Yr.resetTransform,mr=Yr.updateTransform,co=Yr.dispatchZoomChange,Uo=(0,se.useState)(!0),ao=(0,Je.Z)(Uo,2),ra=ao[0],gr=ao[1],Qi=yo.rotate,xr=yo.scale,fi=yo.x,bo=yo.y,ua=De()((0,et.Z)({},"".concat(Ln,"-moving"),Gr));(0,se.useEffect)(function(){ra||gr(!0)},[ra]);var ca=function(){Mr("close")},oa=function(){co(Xt+Bi,"zoomIn")},Ra=function(){co(Xt/(Xt+Bi),"zoomOut")},ts=function(){mr({rotate:Qi+90},"rotateRight")},ds=function(){mr({rotate:Qi-90},"rotateLeft")},Qa=function(){mr({flipX:!yo.flipX},"flipX")},ks=function(){mr({flipY:!yo.flipY},"flipY")},Ds=function(Qr){Qr==null||Qr.preventDefault(),Qr==null||Qr.stopPropagation(),Fi>0&&(gr(!1),Mr("prev"),Dr==null||Dr(Fi-1,Fi))},jn=function(Qr){Qr==null||Qr.preventDefault(),Qr==null||Qr.stopPropagation(),Fi<zi-1&&(gr(!1),Mr("next"),Dr==null||Dr(Fi+1,Fi))},gs=function(){if(gn&&Gr){Ii(!1);var Qr=Ji.current,ns=Qr.transformX,so=Qr.transformY,Po=fi!==ns&&bo!==so;if(!Po)return;var Mo=Do.current.offsetWidth*xr,$i=Do.current.offsetHeight*xr,Ja=Do.current.getBoundingClientRect(),xs=Ja.left,ul=Ja.top,Yl=Qi%180!==0,Jl=$e(Yl?$i:Mo,Yl?Mo:$i,xs,ul);Jl&&mr((0,Ee.Z)({},Jl),"dragRebound")}},Ql=function(Qr){!un||Qr.button!==0||(Qr.preventDefault(),Qr.stopPropagation(),Ji.current={deltaX:Qr.pageX-yo.x,deltaY:Qr.pageY-yo.y,transformX:yo.x,transformY:yo.y},Ii(!0))},Kl=function(Qr){gn&&Gr&&mr({x:Qr.pageX-Ji.current.deltaX,y:Qr.pageY-Ji.current.deltaY},"move")},Oo=function(Qr){if(!(!gn||Qr.deltaY==0)){var ns=Math.abs(Qr.deltaY/100),so=Math.min(ns,fn),Po=Xt+so*Bi;Qr.deltaY>0&&(Po=Xt/Po),co(Po,"wheel",Qr.clientX,Qr.clientY)}},ma=function(Qr){!gn||!Rr||(Qr.keyCode===ke.Z.LEFT?Ds():Qr.keyCode===ke.Z.RIGHT&&jn())},hs=function(Qr){gn&&(xr!==1?mr({x:0,y:0,scale:1},"doubleClick"):co(Xt+Bi,"doubleClick",Qr.clientX,Qr.clientY))};(0,se.useEffect)(function(){var Xr,Qr,ns,so;if(un){ns=(0,Ne.Z)(window,"mouseup",gs,!1),so=(0,Ne.Z)(window,"mousemove",Kl,!1);try{window.top!==window.self&&(Xr=(0,Ne.Z)(window.top,"mouseup",gs,!1),Qr=(0,Ne.Z)(window.top,"mousemove",Kl,!1))}catch(Po){(0,Te.Kp)(!1,"[rc-image] ".concat(Po))}}return function(){var Po,Mo,$i,Ja;(Po=ns)===null||Po===void 0||Po.remove(),(Mo=so)===null||Mo===void 0||Mo.remove(),($i=Xr)===null||$i===void 0||$i.remove(),(Ja=Qr)===null||Ja===void 0||Ja.remove()}},[gn,Gr,fi,bo,Qi,un]),(0,se.useEffect)(function(){var Xr=(0,Ne.Z)(window,"keydown",ma,!1);return function(){Xr.remove()}},[gn,Rr,Fi]);var aa=se.createElement(Ve,(0,Ke.Z)({},Fn,{width:Ut.width,height:Ut.height,imgRef:Do,className:"".concat(Ln,"-img"),alt:Gt,style:{transform:"translate3d(".concat(yo.x,"px, ").concat(yo.y,"px, 0) scale3d(").concat(yo.flipX?"-":"").concat(xr,", ").concat(yo.flipY?"-":"").concat(xr,", 1) rotate(").concat(Qi,"deg)"),transitionDuration:!ra&&"0s"},fallback:yn,src:ni,onWheel:Oo,onMouseDown:Ql,onDoubleClick:hs}));return se.createElement(se.Fragment,null,se.createElement(Se.Z,(0,Ke.Z)({transitionName:Hi,maskTransitionName:Ht,closable:!1,keyboard:!0,prefixCls:Ln,onClose:wn,visible:gn,wrapClassName:ua,rootClassName:Vn,getContainer:Wn},po,{afterClose:ca}),se.createElement("div",{className:"".concat(Ln,"-img-wrapper")},Kr?Kr(aa,(0,Ee.Z)({transform:yo},lt?{current:Fi}:{})):aa)),se.createElement(zt,{visible:gn,transform:yo,maskTransitionName:Ht,closeIcon:Jn,getContainer:Wn,prefixCls:Ln,rootClassName:Vn,icons:Bn,countRender:tn,showSwitch:Rr,showProgress:Ko,current:Fi,count:zi,scale:xr,minScale:hr,maxScale:br,toolbarRender:kr,onSwitchLeft:Ds,onSwitchRight:jn,onZoomIn:oa,onZoomOut:Ra,onRotateRight:ts,onRotateLeft:ds,onFlipX:Qa,onFlipY:ks,onClose:wn}))},Bt=gt,sn=oe(26390);function It(bt){var Ut=se.useState({}),Ln=(0,Je.Z)(Ut,2),ni=Ln[0],Gt=Ln[1],yn=se.useCallback(function(un,wn){return Gt(function(gn){return(0,Ee.Z)((0,Ee.Z)({},gn),{},(0,et.Z)({},un,wn))}),function(){Gt(function(gn){var kn=(0,Ee.Z)({},gn);return delete kn[un],kn})}},[]),Qt=se.useMemo(function(){return bt?bt.map(function(un){if(typeof un=="string")return{data:{src:un}};var wn={};return Object.keys(un).forEach(function(gn){["src"].concat((0,sn.Z)(ze)).includes(gn)&&(wn[gn]=un[gn])}),{data:wn}}):Object.keys(ni).reduce(function(un,wn){var gn=ni[wn],kn=gn.canPreview,Bn=gn.data;return kn&&un.push({data:Bn,id:wn}),un},[])},[bt,ni]);return[Qt,yn]}var en=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],En=["src"],ei=function(Ut){var Ln,ni=Ut.previewPrefixCls,Gt=ni===void 0?"rc-image-preview":ni,yn=Ut.children,Qt=Ut.icons,un=Qt===void 0?{}:Qt,wn=Ut.items,gn=Ut.preview,kn=Ut.fallback,Bn=(0,Ye.Z)(gn)==="object"?gn:{},Vn=Bn.visible,Jn=Bn.onVisibleChange,Wn=Bn.getContainer,gi=Bn.current,Fi=Bn.movable,ir=Bn.minScale,zi=Bn.maxScale,tn=Bn.countRender,Ai=Bn.closeIcon,Bi=Bn.onChange,Ti=Bn.onTransform,hr=Bn.toolbarRender,tr=Bn.imageRender,br=(0,tt.Z)(Bn,en),Xi=It(wn),Hi=(0,Je.Z)(Xi,2),Ir=Hi[0],Ht=Hi[1],Kr=(0,kt.Z)(0,{value:gi}),Fn=(0,Je.Z)(Kr,2),kr=Fn[0],Go=Fn[1],Dr=(0,se.useState)(!1),po=(0,Je.Z)(Dr,2),Do=po[0],Ji=po[1],or=((Ln=Ir[kr])===null||Ln===void 0?void 0:Ln.data)||{},io=or.src,Gr=(0,tt.Z)(or,En),Ii=(0,kt.Z)(!!Vn,{value:Vn,onChange:function(Qi,xr){Jn==null||Jn(Qi,xr,kr)}}),lt=(0,Je.Z)(Ii,2),Rr=lt[0],Ko=lt[1],Yr=(0,se.useState)(null),yo=(0,Je.Z)(Yr,2),Mr=yo[0],mr=yo[1],co=se.useCallback(function(gr,Qi,xr){var fi=Ir.findIndex(function(bo){return bo.id===gr});Ko(!0),mr({x:Qi,y:xr}),Go(fi<0?0:fi),Ji(!0)},[Ir]);se.useEffect(function(){Rr?Do||Go(0):Ji(!1)},[Rr]);var Uo=function(Qi,xr){Go(Qi),Bi==null||Bi(Qi,xr)},ao=function(){Ko(!1),mr(null)},ra=se.useMemo(function(){return{register:Ht,onPreview:co}},[Ht,co]);return se.createElement(ee.Provider,{value:ra},yn,se.createElement(Bt,(0,Ke.Z)({"aria-hidden":!Rr,movable:Fi,visible:Rr,prefixCls:Gt,closeIcon:Ai,onClose:ao,mousePosition:Mr,imgCommonProps:Gr,src:io,fallback:kn,icons:un,minScale:ir,maxScale:zi,getContainer:Wn,current:kr,count:Ir.length,countRender:tn,onTransform:Ti,toolbarRender:hr,imageRender:tr,onChange:Uo},br)))},An=ei,Kn=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],jt=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],Nn=function(Ut){var Ln=Ut.src,ni=Ut.alt,Gt=Ut.onPreviewClose,yn=Ut.prefixCls,Qt=yn===void 0?"rc-image":yn,un=Ut.previewPrefixCls,wn=un===void 0?"".concat(Qt,"-preview"):un,gn=Ut.placeholder,kn=Ut.fallback,Bn=Ut.width,Vn=Ut.height,Jn=Ut.style,Wn=Ut.preview,gi=Wn===void 0?!0:Wn,Fi=Ut.className,ir=Ut.onClick,zi=Ut.onError,tn=Ut.wrapperClassName,Ai=Ut.wrapperStyle,Bi=Ut.rootClassName,Ti=(0,tt.Z)(Ut,Kn),hr=gn&&gn!==!0,tr=(0,Ye.Z)(gi)==="object"?gi:{},br=tr.src,Xi=tr.visible,Hi=Xi===void 0?void 0:Xi,Ir=tr.onVisibleChange,Ht=Ir===void 0?Gt:Ir,Kr=tr.getContainer,Fn=Kr===void 0?void 0:Kr,kr=tr.mask,Go=tr.maskClassName,Dr=tr.movable,po=tr.icons,Do=tr.scaleStep,Ji=tr.minScale,or=tr.maxScale,io=tr.imageRender,Gr=tr.toolbarRender,Ii=(0,tt.Z)(tr,jt),lt=br!=null?br:Ln,Rr=(0,kt.Z)(!!Hi,{value:Hi,onChange:Ht}),Ko=(0,Je.Z)(Rr,2),Yr=Ko[0],yo=Ko[1],Mr=me({src:Ln,isCustomPlaceholder:hr,fallback:kn}),mr=(0,Je.Z)(Mr,3),co=mr[0],Uo=mr[1],ao=mr[2],ra=(0,se.useState)(null),gr=(0,Je.Z)(ra,2),Qi=gr[0],xr=gr[1],fi=(0,se.useContext)(ee),bo=!!gi,ua=function(){yo(!1),xr(null)},ca=De()(Qt,tn,Bi,(0,et.Z)({},"".concat(Qt,"-error"),ao==="error")),oa=(0,se.useMemo)(function(){var Qa={};return ze.forEach(function(ks){Ut[ks]!==void 0&&(Qa[ks]=Ut[ks])}),Qa},ze.map(function(Qa){return Ut[Qa]})),Ra=(0,se.useMemo)(function(){return(0,Ee.Z)((0,Ee.Z)({},oa),{},{src:lt})},[lt,oa]),ts=ge(bo,Ra),ds=function(ks){var Ds=(0,ht.os)(ks.target),jn=Ds.left,gs=Ds.top;fi?fi.onPreview(ts,jn,gs):(xr({x:jn,y:gs}),yo(!0)),ir==null||ir(ks)};return se.createElement(se.Fragment,null,se.createElement("div",(0,Ke.Z)({},Ti,{className:ca,onClick:bo?ds:ir,style:(0,Ee.Z)({width:Bn,height:Vn},Ai)}),se.createElement("img",(0,Ke.Z)({},oa,{className:De()("".concat(Qt,"-img"),(0,et.Z)({},"".concat(Qt,"-img-placeholder"),gn===!0),Fi),style:(0,Ee.Z)({height:Vn},Jn),ref:co},Uo,{width:Bn,height:Vn,onError:zi})),ao==="loading"&&se.createElement("div",{"aria-hidden":"true",className:"".concat(Qt,"-placeholder")},gn),kr&&bo&&se.createElement("div",{className:De()("".concat(Qt,"-mask"),Go),style:{display:(Jn==null?void 0:Jn.display)==="none"?"none":void 0}},kr)),!fi&&bo&&se.createElement(Bt,(0,Ke.Z)({"aria-hidden":!Yr,visible:Yr,prefixCls:wn,onClose:ua,mousePosition:Qi,src:lt,alt:ni,fallback:kn,getContainer:Fn,icons:po,movable:Dr,scaleStep:Do,minScale:Ji,maxScale:or,rootClassName:Bi,imageRender:io,imgCommonProps:oa,toolbarRender:Gr},Ii)))};Nn.PreviewGroup=An,Nn.displayName="Image";var Gn=Nn,ii=Gn,Sn=oe(62892),Yt=oe(36355),Zt=oe(31724),St=oe(72119),rt=oe(16537),Ft=oe(53878),Ot={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},ft=Ot,ct=oe(88853),Ge=function(Ut,Ln){return se.createElement(ct.Z,(0,Ke.Z)({},Ut,{ref:Ln,icon:ft}))},Ae=se.forwardRef(Ge),xe=Ae,je={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},Qe=je,Oe=function(Ut,Ln){return se.createElement(ct.Z,(0,Ke.Z)({},Ut,{ref:Ln,icon:Qe}))},xt=se.forwardRef(Oe),hn=xt,Pn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},wt=Pn,nn=function(Ut,Ln){return se.createElement(ct.Z,(0,Ke.Z)({},Ut,{ref:Ln,icon:wt}))},Mn=se.forwardRef(nn),Zn=Mn,li={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},xi=li,Mi=function(Ut,Ln){return se.createElement(ct.Z,(0,Ke.Z)({},Ut,{ref:Ln,icon:xi}))},Si=se.forwardRef(Mi),Ri=Si,lr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},dr=lr,ur=function(Ut,Ln){return se.createElement(ct.Z,(0,Ke.Z)({},Ut,{ref:Ln,icon:dr}))},Sr=se.forwardRef(ur),Wr=Sr,Gi=oe(64993),Zr=oe(73819),Yi=oe(17313),Ue=oe(29878),no=oe(1950),pr=oe(83116),fo=oe(37613);const Fo=bt=>({position:bt||"absolute",inset:0}),Vo=bt=>{const{iconCls:Ut,motionDurationSlow:Ln,paddingXXS:ni,marginXXS:Gt,prefixCls:yn,colorTextLightSolid:Qt}=bt;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:Qt,background:new Gi.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${Ln}`,[`.${yn}-mask-info`]:Object.assign(Object.assign({},Yi.vS),{padding:`0 ${ni}px`,[Ut]:{marginInlineEnd:Gt,svg:{verticalAlign:"baseline"}}})}},Io=bt=>{const{previewCls:Ut,modalMaskBg:Ln,paddingSM:ni,marginXL:Gt,margin:yn,paddingLG:Qt,previewOperationColorDisabled:un,previewOperationHoverColor:wn,motionDurationSlow:gn,iconCls:kn,colorTextLightSolid:Bn}=bt,Vn=new Gi.C(Ln).setAlpha(.1),Jn=Vn.clone().setAlpha(.2);return{[`${Ut}-footer`]:{position:"fixed",bottom:Gt,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:bt.previewOperationColor},[`${Ut}-progress`]:{marginBottom:yn},[`${Ut}-close`]:{position:"fixed",top:Gt,right:{_skip_check_:!0,value:Gt},display:"flex",color:Bn,backgroundColor:Vn.toRgbString(),borderRadius:"50%",padding:ni,outline:0,border:0,cursor:"pointer",transition:`all ${gn}`,"&:hover":{backgroundColor:Jn.toRgbString()},[`& > ${kn}`]:{fontSize:bt.previewOperationSize}},[`${Ut}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${Qt}px`,backgroundColor:Vn.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:ni,padding:ni,cursor:"pointer",transition:`all ${gn}`,userSelect:"none",[`&:not(${Ut}-operations-operation-disabled):hover > ${kn}`]:{color:wn},"&-disabled":{color:un,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${kn}`]:{fontSize:bt.previewOperationSize}}}}},Oi=bt=>{const{modalMaskBg:Ut,iconCls:Ln,previewOperationColorDisabled:ni,previewCls:Gt,zIndexPopup:yn,motionDurationSlow:Qt}=bt,un=new Gi.C(Ut).setAlpha(.1),wn=un.clone().setAlpha(.2);return{[`${Gt}-switch-left, ${Gt}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:yn+1,display:"flex",alignItems:"center",justifyContent:"center",width:bt.imagePreviewSwitchSize,height:bt.imagePreviewSwitchSize,marginTop:-bt.imagePreviewSwitchSize/2,color:bt.previewOperationColor,background:un.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${Qt}`,userSelect:"none","&:hover":{background:wn.toRgbString()},"&-disabled":{"&, &:hover":{color:ni,background:"transparent",cursor:"not-allowed",[`> ${Ln}`]:{cursor:"not-allowed"}}},[`> ${Ln}`]:{fontSize:bt.previewOperationSize}},[`${Gt}-switch-left`]:{insetInlineStart:bt.marginSM},[`${Gt}-switch-right`]:{insetInlineEnd:bt.marginSM}}},on=bt=>{const{motionEaseOut:Ut,previewCls:Ln,motionDurationSlow:ni,componentCls:Gt}=bt;return[{[`${Gt}-preview-root`]:{[Ln]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${Ln}-body`]:Object.assign(Object.assign({},Fo()),{overflow:"hidden"}),[`${Ln}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${ni} ${Ut} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Fo()),{transition:`transform ${ni} ${Ut} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${Ln}-moving`]:{[`${Ln}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${Gt}-preview-root`]:{[`${Ln}-wrap`]:{zIndex:bt.zIndexPopup}}},{[`${Gt}-preview-operations-wrapper`]:{position:"fixed",zIndex:bt.zIndexPopup+1},"&":[Io(bt),Oi(bt)]}]},ln=bt=>{const{componentCls:Ut}=bt;return{[Ut]:{position:"relative",display:"inline-block",[`${Ut}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${Ut}-img-placeholder`]:{backgroundColor:bt.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${Ut}-mask`]:Object.assign({},Vo(bt)),[`${Ut}-mask:hover`]:{opacity:1},[`${Ut}-placeholder`]:Object.assign({},Fo())}}},qt=bt=>{const{previewCls:Ut}=bt;return{[`${Ut}-root`]:(0,Ue._y)(bt,"zoom"),"&":(0,no.J$)(bt,!0)}};var Nt=(0,pr.Z)("Image",bt=>{const Ut=`${bt.componentCls}-preview`,Ln=(0,fo.TS)(bt,{previewCls:Ut,modalMaskBg:new Gi.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:bt.controlHeightLG});return[ln(Ln),on(Ln),(0,Zr.QA)((0,fo.TS)(Ln,{componentCls:Ut})),qt(Ln)]},bt=>({zIndexPopup:bt.zIndexPopupBase+80,previewOperationColor:new Gi.C(bt.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new Gi.C(bt.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new Gi.C(bt.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:bt.fontSizeIcon*1.5})),On=function(bt,Ut){var Ln={};for(var ni in bt)Object.prototype.hasOwnProperty.call(bt,ni)&&Ut.indexOf(ni)<0&&(Ln[ni]=bt[ni]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Gt=0,ni=Object.getOwnPropertySymbols(bt);Gt<ni.length;Gt++)Ut.indexOf(ni[Gt])<0&&Object.prototype.propertyIsEnumerable.call(bt,ni[Gt])&&(Ln[ni[Gt]]=bt[ni[Gt]]);return Ln};const Un={rotateLeft:se.createElement(xe,null),rotateRight:se.createElement(hn,null),zoomIn:se.createElement(Ri,null),zoomOut:se.createElement(Wr,null),close:se.createElement(St.Z,null),left:se.createElement(rt.Z,null),right:se.createElement(Ft.Z,null),flipX:se.createElement(Zn,null),flipY:se.createElement(Zn,{rotate:90})};var yt=bt=>{var{previewPrefixCls:Ut,preview:Ln}=bt,ni=On(bt,["previewPrefixCls","preview"]);const{getPrefixCls:Gt}=se.useContext(Yt.E_),yn=Gt("image",Ut),Qt=`${yn}-preview`,un=Gt(),[wn,gn]=Nt(yn),kn=se.useMemo(()=>{var Bn;if(Ln===!1)return Ln;const Vn=typeof Ln=="object"?Ln:{},Jn=De()(gn,(Bn=Vn.rootClassName)!==null&&Bn!==void 0?Bn:"");return Object.assign(Object.assign({},Vn),{transitionName:(0,Sn.m)(un,"zoom",Vn.transitionName),maskTransitionName:(0,Sn.m)(un,"fade",Vn.maskTransitionName),rootClassName:Jn})},[Ln]);return wn(se.createElement(ii.PreviewGroup,Object.assign({preview:kn,previewPrefixCls:Qt,icons:Un},ni)))},In=function(bt,Ut){var Ln={};for(var ni in bt)Object.prototype.hasOwnProperty.call(bt,ni)&&Ut.indexOf(ni)<0&&(Ln[ni]=bt[ni]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Gt=0,ni=Object.getOwnPropertySymbols(bt);Gt<ni.length;Gt++)Ut.indexOf(ni[Gt])<0&&Object.prototype.propertyIsEnumerable.call(bt,ni[Gt])&&(Ln[ni[Gt]]=bt[ni[Gt]]);return Ln};const zn=bt=>{const{prefixCls:Ut,preview:Ln,className:ni,rootClassName:Gt,style:yn}=bt,Qt=In(bt,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:un,locale:wn=Zt.Z,getPopupContainer:gn,image:kn}=se.useContext(Yt.E_),Bn=un("image",Ut),Vn=un(),Jn=wn.Image||Zt.Z.Image,[Wn,gi]=Nt(Bn),Fi=De()(Gt,gi),ir=De()(ni,gi,kn==null?void 0:kn.className),zi=se.useMemo(()=>{if(Ln===!1)return Ln;const Ai=typeof Ln=="object"?Ln:{},{getContainer:Bi}=Ai,Ti=In(Ai,["getContainer"]);return Object.assign(Object.assign({mask:se.createElement("div",{className:`${Bn}-mask-info`},se.createElement(we.Z,null),Jn==null?void 0:Jn.preview),icons:Un},Ti),{getContainer:Bi||gn,transitionName:(0,Sn.m)(Vn,"zoom",Ai.transitionName),maskTransitionName:(0,Sn.m)(Vn,"fade",Ai.maskTransitionName)})},[Ln,Jn]),tn=Object.assign(Object.assign({},kn==null?void 0:kn.style),yn);return Wn(se.createElement(ii,Object.assign({prefixCls:Bn,preview:zi,rootClassName:Fi,className:ir,style:tn},Qt)))};zn.PreviewGroup=yt;var mi=zn,Rn=()=>{const[bt,Ut]=(0,se.useState)(""),[Ln,ni]=(0,se.useState)(0);let[Gt,yn]=(0,se.useState)(),[Qt,un]=(0,se.useState)();const[wn,gn]=(0,se.useState)(!1),kn=(0,se.useRef)("");(0,se.useEffect)(()=>Ce.Z.subscribe("preview-image",Bi=>{Ut(Bi),console.log(zi.current),document.body.style.overflow="hidden"}),[]),(0,se.useEffect)(()=>(document.addEventListener("keydown",Bn),()=>{document.removeEventListener("keydown",Bn)}),[]),(0,se.useEffect)(()=>{kn.current=bt},[bt]);function Bn(Ai){Ai.keyCode==27&&kn.current&&Vn()}function Vn(){document.body.style.overflow="auto",yn(void 0),un(void 0),ni(0),Ut("")}function Jn(){ni(Ln+90)}function Wn(){Gt=zi.current.width*1.1,Qt=zi.current.height*1.1,un(Qt),yn(Gt)}function gi(){Gt=zi.current.width/1.1,Qt=zi.current.height/1.1,un(Qt),yn(Gt)}const Fi=(0,se.useRef)(),ir=(0,se.useRef)(),zi=(0,se.useRef)(),tn=Ai=>{(Ai.nativeEvent.target===Fi.current||Ai.nativeEvent.target===ir.current)&&Vn()};return se.createElement(se.Fragment,null,bt?se.createElement("div",null,se.createElement("div",{className:"preview-wrp-group",ref:ir},se.createElement(mi,{className:"image-preview",src:bt,style:{display:"none"},preview:{visible:!0,src:bt,movable:!1,onVisibleChange:Ai=>{Ut("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},36866:function(_e,be,oe){"use strict";oe.d(be,{h:function(){return Ne},Z:function(){return Se}});var se=oe(59301),Ce=oe(57809),we=oe(78241),Ie=oe(3113),De=oe(89780),Ke=oe.n(De),Ee=oe(79906),et=Object.defineProperty,Je=Object.defineProperties,Ye=Object.getOwnPropertyDescriptors,tt=Object.getOwnPropertySymbols,ht=Object.prototype.hasOwnProperty,kt=Object.prototype.propertyIsEnumerable,ze=(ke,Te,We)=>Te in ke?et(ke,Te,{enumerable:!0,configurable:!0,writable:!0,value:We}):ke[Te]=We,ee=(ke,Te)=>{for(var We in Te||(Te={}))ht.call(Te,We)&&ze(ke,We,Te[We]);if(tt)for(var We of tt(Te))kt.call(Te,We)&&ze(ke,We,Te[We]);return ke},ne=(ke,Te)=>Je(ke,Ye(Te));const ge=Ce.default.Option,ue={labelCol:{span:4},wrapperCol:{span:20}},me={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};var Se=({callback:ke,onCancel:Te})=>{const[We,$e]=(0,se.useState)("python");function st(Mt){$e(me[Mt][1])}function ut(Mt){ke(Mt)}return se.createElement(we.default,ne(ee({},ue),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ut,style:{width:500}}),se.createElement(we.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},se.createElement(Ce.default,{getPopupContainer:Mt=>Mt.parentNode,onChange:st},Object.keys(me).map(Mt=>se.createElement(ge,{key:Mt,value:Mt},me[Mt][0])))),se.createElement(we.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},se.createElement(Ne,{mode:We})),se.createElement("div",{className:"flex-container flex-end"},se.createElement(Ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),se.createElement(Ie.ZP,{type:"ghost",onClick:Te},"\u53D6\u6D88")))};function Ne({value:ke,onChange:Te,mode:We,options:$e={}}){const st=(0,se.useRef)(),[ut,Mt]=(0,se.useState)();return(0,se.useEffect)(()=>{if(ut){let nt=function($t){const Pt=$t.getValue();Te&&Te(Pt)};return ut.on("change",nt),()=>{ut.off("change",nt)}}},[ut,Te]),(0,se.useEffect)(()=>{ut&&ut.setOption("mode",We)},[ut,We]),(0,se.useEffect)(()=>{ut&&(ke!==ut.getValue()||ke==="")&&setTimeout(()=>{ut.setValue(ke||"")},300)},[ut,ke]),(0,se.useEffect)(()=>{if(st.current&&!ut){const nt=Ke().fromTextArea(st.current,ee({mode:We,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},$e));Mt(nt)}},[st.current,ut]),se.createElement("div",{className:"my-codemirror-container"},se.createElement("textarea",{ref:st}))}},23469:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return Oi}});var se=oe(59301),Ce=oe(89780),we=oe.n(Ce),Ie=oe(76374),De=oe(79906),Ke=oe(6313),Ee=oe(25717),et=oe(99498),Je=oe(25419),Ye=oe(67549),tt=oe(25711),ht=({value:on="",className:ln,showTextOnly:qt,showLines:Nt,style:On={}})=>{const Un=(0,se.useMemo)(()=>"",[on]);return se.createElement(se.Fragment,null,se.createElement("div",{dangerouslySetInnerHTML:{__html:Un}}))},kt=oe(59301),ze=Object.defineProperty,ee=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,ge=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable,Se=(on,ln,qt)=>ln in on?ze(on,ln,{enumerable:!0,configurable:!0,writable:!0,value:qt}):on[ln]=qt,Ne=(on,ln)=>{for(var qt in ln||(ln={}))ue.call(ln,qt)&&Se(on,qt,ln[qt]);if(ge)for(var qt of ge(ln))me.call(ln,qt)&&Se(on,qt,ln[qt]);return on},ke=(on,ln)=>ee(on,ne(ln));let Te=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function We({onActionCallback:on,title:ln,icon:qt,actionName:Nt,className:On="",children:Un}){function Vt(){on(Nt)}return kt.createElement("a",{title:ln,className:On,onClick:Vt},kt.createElement("i",{className:`${qt}`}),Un)}var $e=({watch:on,showNullButton:ln,showNullProgramButton:qt,onActionCallback:Nt,fullScreen:On,insertTemp:Un,hidetoolBar:Vt,extraUse:yt})=>{const In=[...Te,{title:`${on?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${on?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return kt.createElement("ul",{className:"markdown-toolbar-container"},!Vt&&In.map((zn,mi)=>kt.createElement("li",{key:mi},zn.actionName?kt.createElement(We,ke(Ne({},zn),{onActionCallback:Nt})):kt.createElement("span",{className:"v-line"}))),ln?kt.createElement("li",null,kt.createElement(We,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Nt},kt.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,qt?kt.createElement(kt.Fragment,null,kt.createElement("li",null,kt.createElement(We,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Nt},kt.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),kt.createElement("li",null,kt.createElement(We,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Nt},kt.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Un&&kt.createElement("li",null,kt.createElement(We,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Un}`,onActionCallback:Nt},kt.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),yt&&kt.createElement("li",null,yt),kt.createElement("li",{className:"btn-full-screen"},kt.createElement(We,{icon:`${On?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:On?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Nt})))},st=oe(50474),ut=oe(78241),Mt=oe(92832),nt=oe(3113),$t=Object.defineProperty,Pt=Object.defineProperties,dn=Object.getOwnPropertyDescriptors,zt=Object.getOwnPropertySymbols,Xt=Object.prototype.hasOwnProperty,fn=Object.prototype.propertyIsEnumerable,an=(on,ln,qt)=>ln in on?$t(on,ln,{enumerable:!0,configurable:!0,writable:!0,value:qt}):on[ln]=qt,it=(on,ln)=>{for(var qt in ln||(ln={}))Xt.call(ln,qt)&&an(on,qt,ln[qt]);if(zt)for(var qt of zt(ln))fn.call(ln,qt)&&an(on,qt,ln[qt]);return on},Ve=(on,ln)=>Pt(on,dn(ln));const gt={labelCol:{span:4},wrapperCol:{span:20}};var Bt=({callback:on,onCancel:ln})=>{function qt(Nt){on(Nt)}return se.createElement(ut.default,Ve(it({},gt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:qt,style:{width:500}}),se.createElement(ut.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},se.createElement(Mt.default,null)),se.createElement(ut.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},se.createElement(Mt.default,null)),se.createElement("div",{className:"flex-container flex-end"},se.createElement(nt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),se.createElement(nt.ZP,{type:"ghost",onClick:ln},"\u53D6\u6D88")))},sn=oe(36866),It=oe(56701),en=oe(43418),En=oe(95237),ei=oe(65983),An=oe(59301),Kn=({callback:on,onCancel:ln})=>{const qt=document.createElement("canvas"),Nt=qt.getContext("2d");qt.width=1e3,qt.height=800,Nt.fillStyle="#ffffff",Nt.fillRect(0,0,qt.width,qt.height);const On=qt.toDataURL("image/png");return An.createElement(en.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},An.createElement(En.Z,{style:{height:"100vh"}},An.createElement(ei.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:On,visible:!0,title:String(Date.now())},onOk:Un=>{on({src:Un.url})},onClose:ln})))},jt=oe(12378);function Nn(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Nn,go.CommandHandler),Nn.prototype.canAlignSelection=function(){var on=this.diagram;return!(on===null||on.isReadOnly||on.isModelReadOnly||on.selection.count<2)},Nn.prototype.alignLeft=function(){var on=this.diagram;on.startTransaction("aligning left");var ln=1/0;on.selection.each(function(qt){qt instanceof go.Link||(ln=Math.min(qt.position.x,ln))}),on.selection.each(function(qt){qt instanceof go.Link||qt.move(new go.Point(ln,qt.position.y))}),on.commitTransaction("aligning left")},Nn.prototype.alignRight=function(){var on=this.diagram;on.startTransaction("aligning right");var ln=-1/0;on.selection.each(function(qt){if(!(qt instanceof go.Link)){var Nt=qt.actualBounds.x+qt.actualBounds.width;ln=Math.max(Nt,ln)}}),on.selection.each(function(qt){qt instanceof go.Link||qt.move(new go.Point(ln-qt.actualBounds.width,qt.position.y))}),on.commitTransaction("aligning right")},Nn.prototype.alignTop=function(){var on=this.diagram;on.startTransaction("alignTop");var ln=1/0;on.selection.each(function(qt){qt instanceof go.Link||(ln=Math.min(qt.position.y,ln))}),on.selection.each(function(qt){qt instanceof go.Link||qt.move(new go.Point(qt.position.x,ln))}),on.commitTransaction("alignTop")},Nn.prototype.alignBottom=function(){var on=this.diagram;on.startTransaction("aligning bottom");var ln=-1/0;on.selection.each(function(qt){if(!(qt instanceof go.Link)){var Nt=qt.actualBounds.y+qt.actualBounds.height;ln=Math.max(Nt,ln)}}),on.selection.each(function(qt){qt instanceof go.Link||qt.move(new go.Point(qt.actualBounds.x,ln-qt.actualBounds.height))}),on.commitTransaction("aligning bottom")},Nn.prototype.alignCenterX=function(){var on=this.diagram,ln=on.selection.first();if(ln){on.startTransaction("aligning Center X");var qt=ln.actualBounds.x+ln.actualBounds.width/2;on.selection.each(function(Nt){Nt instanceof go.Link||Nt.move(new go.Point(qt-Nt.actualBounds.width/2,Nt.actualBounds.y))}),on.commitTransaction("aligning Center X")}},Nn.prototype.alignCenterY=function(){var on=this.diagram,ln=on.selection.first();if(ln){on.startTransaction("aligning Center Y");var qt=ln.actualBounds.y+ln.actualBounds.height/2;on.selection.each(function(Nt){Nt instanceof go.Link||Nt.move(new go.Point(Nt.actualBounds.x,qt-Nt.actualBounds.height/2))}),on.commitTransaction("aligning Center Y")}},Nn.prototype.alignColumn=function(on){var ln=this.diagram;ln.startTransaction("align Column"),on===void 0&&(on=0),on=parseFloat(on);var qt=new Array;ln.selection.each(function(yt){yt instanceof go.Link||qt.push(yt)});for(var Nt=0;Nt<qt.length-1;Nt++){var On=qt[Nt],Un=On.actualBounds.y+On.actualBounds.height+on,Vt=qt[Nt+1];Vt.move(new go.Point(On.actualBounds.x,Un))}ln.commitTransaction("align Column")},Nn.prototype.alignRow=function(on){on===void 0&&(on=0),on=parseFloat(on);var ln=this.diagram;ln.startTransaction("align Row");var qt=new Array;ln.selection.each(function(yt){yt instanceof go.Link||qt.push(yt)});for(var Nt=0;Nt<qt.length-1;Nt++){var On=qt[Nt],Un=On.actualBounds.x+On.actualBounds.width+on,Vt=qt[Nt+1];Vt.move(new go.Point(Un,On.actualBounds.y))}ln.commitTransaction("align Row")},Nn.prototype.canRotate=function(on){var ln=this.diagram;return!(ln===null||ln.isReadOnly||ln.isModelReadOnly||ln.selection.count<1)},Nn.prototype.rotate=function(on){on===void 0&&(on=90);var ln=this.diagram;ln.startTransaction("rotate "+on.toString());var ln=this.diagram;ln.selection.each(function(qt){qt instanceof go.Link||qt instanceof go.Group||(qt.angle+=on)}),ln.commitTransaction("rotate "+on.toString())},Nn.prototype.pullToFront=function(){var on=this.diagram;on.startTransaction("pullToFront");var ln=new go.Map;on.selection.each(function(qt){ln.set(qt.layer,0)}),ln.iteratorKeys.each(function(qt){var Nt=0;qt.parts.each(function(On){if(!On.isSelected){var Un=On.zOrder;isNaN(Un)?On.zOrder=0:Nt=Math.max(Nt,Un)}}),ln.set(qt,Nt)}),on.selection.each(function(qt){Nn._assignZOrder(qt,ln.get(qt.layer)+1)}),on.commitTransaction("pullToFront")},Nn.prototype.pushToBack=function(){var on=this.diagram;on.startTransaction("pushToBack");var ln=new go.Map;on.selection.each(function(qt){ln.set(qt.layer,0)}),ln.iteratorKeys.each(function(qt){var Nt=0;qt.parts.each(function(On){if(!On.isSelected){var Un=On.zOrder;isNaN(Un)?On.zOrder=0:Nt=Math.min(Nt,Un)}}),ln.set(qt,Nt)}),on.selection.each(function(qt){Nn._assignZOrder(qt,ln.get(qt.layer)-1-Nn._findGroupDepth(qt))}),on.commitTransaction("pushToBack")},Nn._assignZOrder=function(on,ln,qt){qt===void 0&&(qt=on),on.layer===qt.layer&&(on.zOrder=ln),on instanceof go.Group&&on.memberParts.each(function(Nt){Nn._assignZOrder(Nt,ln+1,qt)})},Nn._findGroupDepth=function(on){if(on instanceof go.Group){var ln=0;return on.memberParts.each(function(qt){ln=Math.max(ln,Nn._findGroupDepth(qt))}),ln+1}else return 0},Nn.prototype.doKeyDown=function(){var on=this.diagram;if(on!==null){var ln=on.lastInput;if(ln.key==="Up"||ln.key==="Down"||ln.key==="Left"||ln.key==="Right"){var qt=this.arrowKeyBehavior;if(qt==="none")return;if(qt==="select"){this._arrowKeySelect();return}else if(qt==="move"){this._arrowKeyMove();return}else if(qt==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Nn.prototype._getAllParts=function(){var on=new Array;return this.diagram.nodes.each(function(ln){on.push(ln)}),this.diagram.parts.each(function(ln){on.push(ln)}),on},Nn.prototype._arrowKeyMove=function(){var on=this.diagram,ln=on.lastInput,qt=0,Nt=0;if(ln.control||ln.meta)qt=1,Nt=1;else if(on.grid!==null){var On=on.grid.gridCellSize;Nt=On.width,qt=On.height}on.startTransaction("arrowKeyMove"),on.selection.each(function(Un){ln.key==="Up"?Un.move(new go.Point(Un.actualBounds.x,Un.actualBounds.y-qt)):ln.key==="Down"?Un.move(new go.Point(Un.actualBounds.x,Un.actualBounds.y+qt)):ln.key==="Left"?Un.move(new go.Point(Un.actualBounds.x-Nt,Un.actualBounds.y)):ln.key==="Right"&&Un.move(new go.Point(Un.actualBounds.x+Nt,Un.actualBounds.y))}),on.commitTransaction("arrowKeyMove")},Nn.prototype._arrowKeySelect=function(){var on=this.diagram,ln=on.lastInput,qt=null;ln.key==="Up"?qt=this._findNearestPartTowards(270):ln.key==="Down"?qt=this._findNearestPartTowards(90):ln.key==="Left"?qt=this._findNearestPartTowards(180):ln.key==="Right"&&(qt=this._findNearestPartTowards(0)),qt!==null&&(ln.shift?qt.isSelected=!0:ln.control||ln.meta?qt.isSelected=!qt.isSelected:on.select(qt))},Nn.prototype._findNearestPartTowards=function(on){var ln=this.diagram.selection.first();if(ln===null)return null;for(var qt=ln.actualBounds.center,Nt=this._getAllParts(),On=1/0,Un=ln,Vt=0;Vt<Nt.length;Vt++){var yt=Nt[Vt];if(yt!==ln&&yt.canSelect()){var In=yt.actualBounds.center,zn=qt.directionPoint(In),mi=this._angleCloseness(zn,on);if(mi<=45){var Rn=qt.distanceSquaredPoint(In);Rn*=1+Math.sin(mi*Math.PI/180),Rn<On&&(On=Rn,Un=yt)}}}return Un},Nn.prototype._angleCloseness=function(on,ln){return Math.min(Math.abs(ln-on),Math.min(Math.abs(ln+360-on),Math.abs(ln-360-on)))},Nn.prototype._arrowKeyTree=function(){var on=this.diagram,ln=on.selection.first();if(ln instanceof go.Node){var qt=on.lastInput;if(qt.key==="Right"){if(!ln.isTreeLeaf)if(!ln.isTreeExpanded)on.commandHandler.canExpandTree(ln)&&on.commandHandler.expandTree(ln);else{var Nt=this._sortTreeChildrenByY(ln).first();Nt!==null&&on.select(Nt)}}else if(qt.key==="Left")if(!ln.isTreeLeaf&&ln.isTreeExpanded)on.commandHandler.canCollapseTree(ln)&&on.commandHandler.collapseTree(ln);else{var On=ln.findTreeParentNode();On!==null&&on.select(On)}else if(qt.key==="Up"){var On=ln.findTreeParentNode();if(On!==null){var Un=this._sortTreeChildrenByY(On),Vt=Un.indexOf(ln);if(Vt>0){for(var yt=Un.elt(Vt-1);yt!==null&&yt.isTreeExpanded&&!yt.isTreeLeaf;){var In=this._sortTreeChildrenByY(yt);yt=In.last()}yt!==null&&on.select(yt)}else on.select(On)}}else if(qt.key==="Down")if(ln.isTreeExpanded&&!ln.isTreeLeaf){var Nt=this._sortTreeChildrenByY(ln).first();Nt!==null&&on.select(Nt)}else for(;ln!==null;){var On=ln.findTreeParentNode();if(On===null)break;var Un=this._sortTreeChildrenByY(On),Vt=Un.indexOf(ln);if(Vt<Un.length-1){on.select(Un.elt(Vt+1));break}else ln=On}var zn=on.selection.first();zn!==null&&on.scrollToRect(zn.actualBounds)}},Nn.prototype._sortTreeChildrenByY=function(on){var ln=new go.List().addAll(on.findTreeChildrenNodes());return ln.sort(function(qt,Nt){var On=qt.location,Un=Nt.location;return On.y<Un.y?-1:On.y>Un.y?1:On.x<Un.x?-1:On.x>Un.x?1:0}),ln},Nn.prototype.copyToClipboard=function(on){go.CommandHandler.prototype.copyToClipboard.call(this,on),this._lastPasteOffset.set(this.pasteOffset)},Nn.prototype.pasteFromClipboard=function(){var on=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(on,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),on},Object.defineProperty(Nn.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(on){if(on!=="move"&&on!=="select"&&on!=="scroll"&&on!=="tree"&&on!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+on);this._arrowKeyBehavior=on}}),Object.defineProperty(Nn.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(on){if(!(on instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+on);this._pasteOffset.set(on)}});var Gn=Nn,ii=oe(37404),Sn=oe(43604),Yt=oe(70635),Zt={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},St=oe(59301),rt=(on,ln,qt)=>new Promise((Nt,On)=>{var Un=In=>{try{yt(qt.next(In))}catch(zn){On(zn)}},Vt=In=>{try{yt(qt.throw(In))}catch(zn){On(zn)}},yt=In=>In.done?Nt(In.value):Promise.resolve(In.value).then(Un,Vt);yt((qt=qt.apply(on,ln)).next())});function Ft({onCancel:on,callback:ln}){let qt=(0,se.useRef)(),Nt=(0,se.useRef)(),On=(0,se.useRef)(),Un=(0,se.useRef)(!1);const Vt=(0,se.useRef)(!1),[yt,In]=(0,se.useState)(0);function zn(){const Rn=jt.bx.make,bt={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};qt.current=new jt.S0(Nt.current,{padding:20,grid:Rn(jt.s_,"Grid",Rn(jt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Rn(jt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:tn=>{var Ai=tn.diagram.commandHandler.addTopLevelParts(tn.diagram.selection,!0);Ai||tn.diagram.currentTool.doCancel()},commandHandler:Rn(Gn),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:tn=>{var Ai=tn.subject;Ai.location=Ai.location.copy().snapToGridPoint(tn.diagram.grid.gridOrigin,tn.diagram.grid.gridCellSize),setTimeout(()=>{tn.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:tn=>{var Ai=tn.subject;setTimeout(()=>{tn.diagram.commandHandler.editTextBlock()})},LinkRelinked:tn=>{var Ai=tn.parameter.part;Ai.invalidateConnectedLinks();var Bi=tn.subject;tn.diagram.toolManager.linkingTool.isForwards?Bi.toNode.invalidateConnectedLinks():Bi.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),qt.current.nodeTemplate=Rn(jt.NB,"Auto",{locationSpot:jt.z6.Center,locationObjectName:"SHAPE",desiredSize:new jt.$u(120,60),minSize:new jt.$u(40,40),resizable:!0,resizeCellSize:new jt.$u(10,10),rotatable:!0},new jt.KX("location","loc",jt.E9.parse).makeTwoWay(jt.E9.stringify),new jt.KX("desiredSize","size",jt.$u.parse).makeTwoWay(jt.$u.stringify),Rn(jt.bn,{name:"SHAPE",fill:bt.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:jt.z6.AllSides,toSpot:jt.z6.AllSides},new jt.KX("figure"),new jt.KX("fill"),new jt.KX("stroke","borderColor"),new jt.KX("strokeWidth","thickness"),new jt.KX("strokeDashArray","dash")),Rn(jt.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Rn(jt.al,{margin:1,textAlign:"center",overflow:jt.al.OverflowEllipsis,editable:!0},new jt.KX("text").makeTwoWay(),new jt.KX("stroke","color"))),qt.current.nodeTemplate.toolTip=Rn("ToolTip",Rn(jt.s_,"Vertical",{maxSize:new jt.$u(200,NaN)},Rn(jt.al,{font:"bold 10pt sans-serif",textAlign:"center"},new jt.KX("text")),Rn(jt.al,{font:"10pt sans-serif",textAlign:"center"},new jt.KX("text","details"))));function Ut(tn,Ai){var Bi=(Ti,hr)=>{Ti.handled=!0,Ti.diagram.model.commit(tr=>{var br=hr.part.adornedPart,Xi=new jt.E9().setRectSpot(br.actualBounds,tn);Xi.subtract(br.location),Xi.scale(2,2),Xi.x+=Math.sign(Xi.x)*130,Xi.y+=Math.sign(Xi.y)*130,Xi.add(br.location),Xi.snapToGridPoint(Ti.diagram.grid.gridOrigin,Ti.diagram.grid.gridCellSize);var Hi=tr.copyNodeData(br.data);tr.setGroupKeyForNodeData(Hi,tr.getGroupKeyForNodeData(br.data)),tr.addNodeData(Hi);var Ir={from:br.key,to:tr.getKeyForNodeData(Hi)};tr.addLinkData(Ir);var Ht=Ti.diagram.findNodeForData(Hi);Ht.location=Xi,Ti.diagram.select(Ht),setTimeout(()=>{Ti.diagram.commandHandler.editTextBlock()},20)})};return Rn(jt.bn,{figure:Ai,alignment:tn,alignmentFocus:tn.opposite(),width:tn.equals(jt.z6.Top)||tn.equals(jt.z6.Bottom)?25:18,height:tn.equals(jt.z6.Top)||tn.equals(jt.z6.Bottom)?18:25,fill:"orange",stroke:bt.white,strokeWidth:4,mouseEnter:(Ti,hr)=>hr.fill="dodgerblue",mouseLeave:(Ti,hr)=>hr.fill="orange",isActionable:!0,click:Bi,contextClick:Bi})}function Ln(tn){return Rn(jt.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(Ai,Bi)=>Bi.fill="dodgerblue",mouseLeave:(Ai,Bi)=>Bi.fill="orange",click:(Ai,Bi)=>{Ai.diagram.commandHandler.showContextMenu(Bi.part.adornedPart)}},tn||{})}qt.current.nodeTemplate.selectionAdornmentTemplate=Rn(jt.uz,"Spot",Rn(jt.Vm,{padding:10}),Ut(jt.z6.Top,"TriangleUp"),Ut(jt.z6.Left,"TriangleLeft"),Ut(jt.z6.Right,"TriangleRight"),Ut(jt.z6.Bottom,"TriangleDown"),Ln({alignment:new jt.z6(.75,0)}));function ni(tn,Ai){return(Bi,Ti)=>{Bi.handled=!0,Bi.diagram.model.commit(hr=>{hr.set(Ti.part.adornedPart.data,tn,Ai)})}}function Gt(tn,Ai){return Ai||(Ai="color"),Rn(jt.bn,{width:16,height:16,stroke:"lightgray",fill:tn,margin:1,background:"transparent",mouseEnter:(Bi,Ti)=>Ti.stroke="dodgerblue",mouseLeave:(Bi,Ti)=>Ti.stroke="lightgray",click:ni(Ai,tn),contextClick:ni(Ai,tn)})}function yn(){return[Rn("ContextMenuButton",Rn(jt.s_,"Horizontal",Gt(bt.white,"fill"),Gt(bt.beige,"fill"),Gt(bt.extralightblue,"fill"),Gt(bt.extralightred,"fill"))),Rn("ContextMenuButton",Rn(jt.s_,"Horizontal",Gt(bt.lightgray,"fill"),Gt(bt.lightgreen,"fill"),Gt(bt.lightblue,"fill"),Gt(bt.lightred,"fill")))]}function Qt(){return[Rn("ContextMenuButton",Rn(jt.s_,"Horizontal",Gt(bt.black),Gt(bt.green),Gt(bt.blue),Gt(bt.red))),Rn("ContextMenuButton",Rn(jt.s_,"Horizontal",Gt(bt.white),Gt(bt.magenta),Gt(bt.purple),Gt(bt.orange)))]}function un(tn,Ai){return Ai||(Ai="thickness"),Rn(jt.bn,"LineH",{width:16,height:16,strokeWidth:tn,margin:1,background:"transparent",mouseEnter:(Bi,Ti)=>Ti.background="dodgerblue",mouseLeave:(Bi,Ti)=>Ti.background="transparent",click:ni(Ai,tn),contextClick:ni(Ai,tn)})}function wn(tn,Ai){return Ai||(Ai="dash"),Rn(jt.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:tn,margin:1,background:"transparent",mouseEnter:(Bi,Ti)=>Ti.background="dodgerblue",mouseLeave:(Bi,Ti)=>Ti.background="transparent",click:ni(Ai,tn),contextClick:ni(Ai,tn)})}function gn(){return[Rn("ContextMenuButton",Rn(jt.s_,"Horizontal",un(1),un(2),un(3),un(4))),Rn("ContextMenuButton",Rn(jt.s_,"Horizontal",wn(null),wn([2,4]),wn([4,4])))]}function kn(tn,Ai){return Ai||(Ai="figure"),Rn(jt.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:tn,margin:1,background:"transparent",mouseEnter:(Bi,Ti)=>Ti.fill="dodgerblue",mouseLeave:(Bi,Ti)=>Ti.fill="lightgray",click:ni(Ai,tn),contextClick:ni(Ai,tn)})}qt.current.nodeTemplate.contextMenu=Rn("ContextMenu",Rn("ContextMenuButton",Rn(jt.s_,"Horizontal",kn("Rectangle"),kn("RoundedRectangle"),kn("Ellipse"),kn("Diamond"))),Rn("ContextMenuButton",Rn(jt.s_,"Horizontal",kn("Parallelogram2"),kn("ManualOperation"),kn("Procedure"),kn("Cylinder1"))),Rn("ContextMenuButton",Rn(jt.s_,"Horizontal",kn("Terminator"),kn("CreateRequest"),kn("Document"),kn("TriangleDown"))),yn(),Qt(),gn()),qt.current.groupTemplate=Rn(jt.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:jt.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(tn,Ai)=>{var Bi=Ai.addMembers(Ai.diagram.selection,!0);Bi||Ai.diagram.currentTool.doCancel()},avoidable:!1},new jt.KX("location","loc",jt.E9.parse).makeTwoWay(jt.E9.stringify),Rn(jt.s_,"Auto",{name:"BODY"},Rn(jt.bn,{parameter1:10,fill:bt.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:jt.z6.AllSides,toSpot:jt.z6.AllSides},new jt.KX("fill"),new jt.KX("stroke","color"),new jt.KX("strokeWidth","thickness"),new jt.KX("strokeDashArray","dash")),Rn(jt.Vm,{background:"transparent",margin:20})),Rn(jt.al,{alignment:jt.z6.Top,alignmentFocus:jt.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new jt.KX("text"),new jt.KX("stroke","color"))),qt.current.groupTemplate.selectionAdornmentTemplate=Rn(jt.uz,"Spot",Rn(jt.s_,"Auto",Rn(jt.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Rn(jt.Vm,{margin:1.5})),Ln({alignment:jt.z6.TopRight,alignmentFocus:jt.z6.BottomRight})),qt.current.groupTemplate.contextMenu=Rn("ContextMenu",yn(),Qt(),gn()),qt.current.linkTemplate=Rn(jt.rU,{layerName:"Foreground",routing:jt.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new jt.KX("fromSpot","fromSpot",jt.z6.parse),new jt.KX("toSpot","toSpot",jt.z6.parse),new jt.KX("fromShortLength","dir",tn=>tn>=1?10:0),new jt.KX("toShortLength","dir",tn=>tn>=1?10:0),new jt.KX("points").makeTwoWay(),Rn(jt.bn,{strokeWidth:2},new jt.KX("stroke","color"),new jt.KX("strokeWidth","thickness"),new jt.KX("strokeDashArray","dash")),Rn(jt.bn,{segmentIndex:0,segmentOffset:new jt.E9(15,0),segmentOrientation:jt.rU.OrientAlong,alignmentFocus:jt.z6.Right,figure:"circle",width:10,strokeWidth:0},new jt.KX("fill","color"),new jt.KX("visible","dir",tn=>tn===1)),Rn(jt.bn,{segmentIndex:-1,segmentOffset:new jt.E9(-10,6),segmentOrientation:jt.rU.OrientPlus90,alignmentFocus:jt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new jt.KX("fill","color"),new jt.KX("visible","dir",tn=>tn>=1),new jt.KX("width","thickness",tn=>7+3*tn),new jt.KX("height","thickness",tn=>7+3*tn),new jt.KX("segmentOffset","thickness",tn=>new jt.E9(-15,4+1.5*tn))),Rn(jt.bn,{segmentIndex:0,segmentOffset:new jt.E9(15,-6),segmentOrientation:jt.rU.OrientMinus90,alignmentFocus:jt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new jt.KX("fill","color"),new jt.KX("visible","dir",tn=>tn===2),new jt.KX("width","thickness",tn=>7+3*tn),new jt.KX("height","thickness",tn=>7+3*tn),new jt.KX("segmentOffset","thickness",tn=>new jt.E9(-15,4+1.5*tn))),Rn(jt.al,{alignmentFocus:new jt.z6(0,1,-4,0),editable:!0},new jt.KX("text").makeTwoWay(),new jt.KX("stroke","color"))),qt.current.linkTemplate.selectionAdornmentTemplate=Rn(jt.uz,Rn(jt.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Bn(2)},new jt.KX("pathPattern","thickness",Bn)),Ln({alignmentFocus:new jt.z6(0,0,-6,-4)}));function Bn(tn){return Rn(jt.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(tn+4).toString()+" H3"})}function Vn(tn){var Ai="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return tn===0?Ai="M0 0 M16 16 M0 8 L16 8":tn===2&&(Ai="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Rn(jt.bn,{geometryString:Ai,margin:2,background:"transparent",mouseEnter:(Bi,Ti)=>Ti.background="dodgerblue",mouseLeave:(Bi,Ti)=>Ti.background="transparent",click:ni("dir",tn),contextClick:ni("dir",tn)})}function Jn(tn){var Ai=(Bi,Ti)=>{Bi.handled=!0,Bi.diagram.model.commit(hr=>{var tr=Ti.part.adornedPart;hr.set(tr.data,tn?"toSpot":"fromSpot",jt.z6.stringify(jt.z6.AllSides)),(tn?tr.toNode:tr.fromNode).invalidateConnectedLinks()})};return Rn(jt.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Bi,Ti)=>Ti.background="dodgerblue",mouseLeave:(Bi,Ti)=>Ti.background="transparent",click:Ai,contextClick:Ai})}function Wn(tn,Ai){var Bi=0,Ti=jt.z6.RightSide;tn.equals(jt.z6.Top)?(Bi=270,Ti=jt.z6.TopSide):tn.equals(jt.z6.Left)?(Bi=180,Ti=jt.z6.LeftSide):tn.equals(jt.z6.Bottom)&&(Bi=90,Ti=jt.z6.BottomSide),Ai||(Bi-=180);var hr=(tr,br)=>{tr.handled=!0,tr.diagram.model.commit(Xi=>{var Hi=br.part.adornedPart;Xi.set(Hi.data,Ai?"toSpot":"fromSpot",jt.z6.stringify(Ti)),(Ai?Hi.toNode:Hi.fromNode).invalidateConnectedLinks()})};return Rn(jt.bn,{alignment:tn,alignmentFocus:tn.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Bi,background:"transparent",mouseEnter:(tr,br)=>br.background="dodgerblue",mouseLeave:(tr,br)=>br.background="transparent",click:hr,contextClick:hr})}qt.current.linkTemplate.contextMenu=Rn("ContextMenu",Qt(),gn(),Rn("ContextMenuButton",Rn(jt.s_,"Horizontal",Vn(0),Vn(1),Vn(2))),Rn("ContextMenuButton",Rn(jt.s_,"Horizontal",Rn(jt.s_,"Spot",Jn(!1),Wn(jt.z6.Top,!1),Wn(jt.z6.Left,!1),Wn(jt.z6.Right,!1),Wn(jt.z6.Bottom,!1)),Rn(jt.s_,"Spot",{margin:new jt.Zt(0,0,0,2)},Jn(!0),Wn(jt.z6.Top,!0),Wn(jt.z6.Left,!0),Wn(jt.z6.Right,!0),Wn(jt.z6.Bottom,!0)))));const gi=`{ "class": "GraphLinksModel",
"nodeDataArray": [
{"text":"Find Problem","key":-9,"loc":"-20 -140","color":"#3358ff","fill":"white","figure":"Procedure","thickness":3},
{"text":"What do we want?","key":-10,"loc":"-65 -324.305","group":-16,"figure":"Ellipse","fill":"white"},
{"text":"What do our users want?","key":-11,"loc":"105 -334.305","group":-20,"figure":"Ellipse","fill":"#ffffff","color":"black"},
{"text":"Meetings","key":-12,"loc":"-65 -444.305","group":-16,"figure":"TriangleDown","fill":"#ffffff"},
{"text":"Reviews","key":-13,"loc":"105 -454.305","group":-20,"figure":"TriangleDown","fill":"#ffffff","color":"black"},
{"text":"Can we solve it?","key":-14,"loc":"190 -140","color":"#7d33ff","fill":"#ffffff","figure":"Diamond","size":"140 80","thickness":3},
{"isGroup":true,"text":"Internal","key":-16,"loc":"-65 -384.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
{"isGroup":true,"text":"External","key":-20,"loc":"105 -394.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
{"isGroup":true,"text":"Sources","key":-22,"loc":"20 -400","fill":"#a5d2fa","dash":[4,4],"color":"#3358ff"}
],
"linkDataArray": [
{"from":-12,"to":-10,"points":[-65,-414.305,-65,-404.305,-65,-384.305,-65,-384.305,-65,-364.305,-65,-354.305],"dash":null,"dir":1},
{"from":-13,"to":-11,"points":[105,-424.305,105,-414.305,105,-394.305,105,-394.305,105,-374.305,105,-364.305],"dash":null,"color":"#000000","dir":1},
{"from":-10,"to":-9,"points":[-65,-294.305,-65,-284.305,-65,-232.1525,-40,-232.1525,-40,-180,-40,-170],"dir":2,"dash":[4,4]},
{"from":-11,"to":-9,"points":[105,-304.305,105,-294.305,105,-237.1525,0,-237.1525,0,-180,0,-170],"dash":[4,4],"dir":2},
{"from":-9,"to":-14,"points":[40,-150,58,-150,80,-150,80,-153.33333333333331,102,-153.33333333333331,120,-153.33333333333331],"dir":1,"color":"#3358ff"},
{"from":-14,"to":-9,"points":[190,-100,190,-90,-20,-90,-20,-95,-20,-100,-20,-110],"fromSpot":"BottomSide","toSpot":"BottomSide","text":"No","color":"#ff3333","thickness":2,"dir":1},
{"from":-9,"to":-14,"points":[40,-130,58,-130,80,-130,80,-126.66666666666666,102,-126.66666666666666,120,-126.66666666666666]}
]}`;var Fi=["Rectangle","Square","RoundedRectangle","Border","Ellipse","Circle","TriangleRight","TriangleDown","TriangleLeft","TriangleUp","Triangle","Diamond","LineH","LineV","None","BarH","BarV","MinusLine","PlusLine","XLine","LineRight","LineDown","LineLeft","LineUp"];function ir(tn){return console.log("shapeName:",tn),Fi.indexOf(tn)>=0}var zi=new jt.YI(On.current,{maxSelectionCount:1,linkTemplate:Rn(jt.rU,{locationSpot:jt.z6.Center,selectionAdornmentTemplate:Rn(jt.uz,"Link",{locationSpot:jt.z6.Center},Rn(jt.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Rn(jt.bn,{toArrow:"Standard",stroke:null}))},{routing:jt.rU.AvoidsNodes,curve:jt.rU.JumpOver,corner:5,toShortLength:4},new jt.KX("points"),Rn(jt.bn,{isPanelMain:!0,strokeWidth:2}),Rn(jt.bn,{toArrow:"Standard",stroke:null})),model:new jt.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...jt.bn.getFigureGenerators().toArray().map(tn=>({text:"\u672A\u547D\u540D",size:"100 100",figure:tn.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return qt.current.addDiagramListener("TextEdited",function(tn){var Ai;const Bi=tn.subject.part;var Ti=(Ai=document.activeElement)==null?void 0:Ai.value;typeof Ti=="string"&&Ti.trim()===""&&qt.current.model.commit(function(hr){hr.set(Bi.data,"text","\u672A\u547D\u540D"),qt.current.commandHandler.stopCommand()},"increment")}),zi.nodeTemplate=Rn(jt.NB,"Auto",{locationSpot:jt.z6.Center},new jt.KX("location","location",jt.E9.parse).makeTwoWay(jt.E9.stringify),Rn(jt.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new jt.KX("stroke").makeTwoWay(),new jt.KX("fill").makeTwoWay(),new jt.KX("figure")),Rn(jt.al,{margin:new jt.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new jt.$u(16,16),maxSize:new jt.$u(10,NaN),textAlign:"center",editable:!0},new jt.KX("key").makeTwoWay())),setTimeout(()=>{qt.current.grid=Rn(jt.s_,"Grid",Rn(jt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Rn(jt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),qt.current.grid.visible=!0,qt.current.grid.gridCellStroke="darkgray",qt.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=qt.current,qt.current}const mi=()=>rt(this,null,function*(){var Rn=qt.current.makeImage();const bt=yield(0,Yt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Rn.src}});ln({src:bt.url})});return(0,se.useEffect)(()=>(setTimeout(()=>{zn()},500),In(yt+1),()=>{qt.current=null}),[]),St.createElement("div",{ref:Vt,className:Un.current?`${Zt.maxH60} body-overflow-initial`:"body-overflow-initial"},St.createElement(en.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!yt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:St.createElement(En.Z,null,St.createElement(Sn.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),St.createElement(Sn.Z,{onClick:()=>{var Rn,bt,Ut=qt.current.selection.first();if(Un.current=!Un.current,document.activeElement&&Ut){let Ln=(bt=(Rn=document.activeElement)==null?void 0:Rn.value)==null?void 0:bt.trim();typeof Ln=="string"&&qt.current.model.commit(function(ni){ni.set(Ut.data,"text",Ln||"\u672A\u547D\u540D"),qt.current.commandHandler.stopCommand()},"increment")}In(yt+1)}},St.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:on},St.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Zt.flowChartWrp},St.createElement("div",{style:{display:"flex",height:"100%"}},St.createElement("div",{style:{width:"300px",height:"100%"}},St.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),St.createElement("div",{style:{height:"calc(100% - 50px)"},className:Zt.myPaletteDiv,ref:On})),St.createElement("div",{style:{flex:1,position:"relative"}},St.createElement("div",{ref:Nt,style:{height:"80vh"}}))),St.createElement("div",{className:"tr"},St.createElement(nt.ZP,{size:"large",onClick:mi,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Ot=Ft,ft=oe(5112),ct=oe(88897);const Ge=ft.ZP.Group,Ae={margin:"0 8px"};var xe=({callback:on,onCancel:ln})=>{function qt(Nt){on(Nt)}return se.createElement(ut.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:qt},se.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},se.createElement("span",{style:Ae},"\u5355\u5143\u683C\u6570\uFF1A"),se.createElement("span",{style:Ae},"\u884C\u6570"),se.createElement(ut.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},se.createElement(ct.Z,null)),se.createElement("span",{style:Ae},"\u5217\u6570"),se.createElement(ut.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},se.createElement(ct.Z,null))),se.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},se.createElement("span",{style:Ae},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),se.createElement(ut.default.Item,{name:"align"},se.createElement(Ge,null,se.createElement(ft.ZP,{value:"default"},se.createElement("i",{className:"fa fa-align-justify"})),se.createElement(ft.ZP,{value:"left"},se.createElement("i",{className:"fa fa-align-left"})),se.createElement(ft.ZP,{value:"center"},se.createElement("i",{className:"fa fa-align-center"})),se.createElement(ft.ZP,{value:"right"},se.createElement("i",{className:"fa fa-align-right"}))))),se.createElement("div",{className:"flex-container flex-end"},se.createElement(nt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),se.createElement(nt.ZP,{type:"ghost",onClick:ln},"\u53D6\u6D88")))},je=oe(78673),Qe=oe(98598),Oe=oe.n(Qe),hn=(0,se.forwardRef)(({use3d:on,width:ln,height:qt,callback:Nt,showSaveButton:On},Un)=>{const Vt=(0,se.useRef)(),yt=(0,se.useRef)(),[In,zn]=(0,se.useState)(!1),mi=(0,se.useRef)({id:Vt,appName:"graphing",width:ln||1e3,height:qt||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,se.useEffect)(()=>{yt.current=new(Oe())(mi.current,!0),window.onload=function(){yt.current.inject("applet_container")}},[]);const Rn=()=>{var bt=window.ggbApplet.getPNGBase64(1,!0,72);return Nt&&Nt(bt),bt};return(0,se.useEffect)(()=>{mi.current.appName=In?"3D":"graphing",yt.current.inject("applet_container")},[In]),(0,se.useEffect)(()=>{zn(on)},[on]),(0,se.useImperativeHandle)(Un,()=>({getImgData:Rn})),se.createElement(se.Fragment,null,se.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Vt}),se.createElement(En.Z,{align:"middle"},se.createElement(Sn.Z,{flex:1},se.createElement(je.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:In,onChange:bt=>zn(bt)})),se.createElement(Sn.Z,null,se.createElement(nt.ZP,{size:"large",onClick:Rn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Pn=oe(75890),wt=oe(8591);const nn="link",Mn="upload-image",Zn="add-flowchart",li="draw-image",xi="add-flowchart",Mi="code-block",Si="add-table",Ri="------------",lr={default:Ri,left:`:${Ri}`,center:`:${Ri}:`,right:`${Ri}:`};var dr=oe(91300);function ur(){}let Sr=0;const Wr=1e4,Gi="\u2581",Zr="@\u2581\u2581@",Yi="@\u2581@",Ue=`
**\u6A21\u677F\u6807\u9898**
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,no=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function pr(on){return/^\d+$/.test(on)?`${on}px`:on}const Fo=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Vo={[Fo+"-B"]:"bold",[Fo+"-I"]:"italic"},Io={[nn]:"\u6DFB\u52A0\u94FE\u63A5",[Mi]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Mn]:"\u6DFB\u52A0\u56FE\u7247",[li]:"\u6DFB\u52A0\u753B\u56FE",[Zn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Si]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Oi=({defaultValue:on="",onChange:ln,width:qt="100%",height:Nt=400,miniToolbar:On=!1,isFocus:Un=!1,watch:Vt,insertTemp:yt,mode:In="markdown",id:zn="markdown-editor-id",showResizeBar:mi=!1,noStorage:Rn=!1,showNullButton:bt=!1,showNullProgramButton:Ut=!1,hidetoolBar:Ln=!1,fullScreen:ni=!1,onBlur:Gt,onCMBeforeChange:yn,onFullScreen:Qt,className:un="",disablePaste:wn=!1,disabled:gn=!1,disabledFill:kn=!1,placeholder:Bn="",values:Vn="",extraUse:Jn})=>{const[Wn,gi]=(0,se.useState)(null),[Fi,ir]=(0,se.useState)(on),[zi,tn]=(0,se.useState)(Vt),[Ai,Bi]=(0,se.useState)(ni),[Ti,hr]=(0,se.useState)(""),[tr,br]=(0,se.useState)(0),[Xi,Hi]=(0,se.useState)(Nt),[Ir,Ht]=(0,se.useState)(!1),[Kr,Fn]=(0,se.useState)(0),[kr,Go]=(0,se.useState)(0),Dr=(0,se.useRef)(),po=(0,se.useRef)(),Do=(0,se.useRef)(),Ji=(0,se.useRef)();(0,se.useEffect)(()=>{const gr=window.scrollY||window.pageYOffset;ir(Vn),Wn==null||Wn.setValue(Vn),window.scrollTo(0,gr)},[Vn]),(0,se.useEffect)(()=>{Qt==null||Qt(Ai)},[Ai]),(0,se.useEffect)(()=>{if(Dr.current){let gr=function(xr,fi){var bo;if(wn){fi.preventDefault();return}const ua=fi.clipboardData;if(ua){const ca=ua.types.toString(),oa=ua.items;if(ca==="Files"||ua.types.indexOf("Files")>-1){if(fi.preventDefault(),In=="stex")return;try{let Ra=oa[1];((bo=oa[0])==null?void 0:bo.kind)==="file"&&(Ra=oa[0]);const ts=Ra.getAsFile(),ds=ts.name.split(".").pop();(0,It.I)(ts,Qa=>{var ks,Ds,jn;Qa.id?((ks=ts==null?void 0:ts.type)==null?void 0:ks.indexOf("image"))>-1?Qi.replaceSelection(`![,](/api/attachments/${Qa.id}?type=${Qa.content_type})`):((Ds=ts==null?void 0:ts.type)==null?void 0:Ds.indexOf("video"))>-1?Qi.replaceSelection(`<video width="100%" controls src="/api/attachments/${Qa.id}"></video>`):((jn=ts==null?void 0:ts.type)==null?void 0:jn.indexOf("pdf"))>-1?Qi.replaceSelection(`<a href="/api/attachments/${Qa.id}?type=${ts.type}&disposition=inline" target="_blank">${ts.name}</a>`):no.includes(ds)?Qi.replaceSelection(`<a href="/api/attachments/${Qa.id}?type=office&disposition=inline" target="_blank">${ts.name}</a>`):Qi.replaceSelection(`[${ts.name}](/api/attachments/${Qa.id}?type=${Qa.content_type})`):(Qa==null?void 0:Qa.status)===401&&(document.location.href="/user/login")})}catch(Ra){wt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Qi=we().fromTextArea(Dr.current,{mode:In,lineNumbers:!On,lineWrapping:!0,value:on,autoCloseTags:!0,autoCloseBrackets:!0});return Qi.on("keyup",function(xr,fi){fi.keyCode===8&&(xr.getValue()==""?Qi.setOption("placeholder",Bn):Qi.setOption("placeholder",null))}),Qi.on("keydown",function(xr,fi){if(fi.keyCode===8){var bo=io(xr);bo&&fi.preventDefault()}}),Un&&Qi.focus(),Qi.on("paste",gr),gn&&Qi.on("beforeChange",function(xr,fi){(fi.origin==="paste"||fi.origin==="+input")&&fi.cancel()}),gi(Qi),()=>{Qi.off("paste",gr)}}},[]);const or=(0,se.useCallback)(()=>{if(po.current)try{}catch(gr){console.log(gr,"---- to set md editor body height")}},[Xi,po,Ai]);(0,se.useEffect)(()=>{function gr(){let Qi=new Ie.Z(xr=>{for(let fi of xr)(fi.target.offsetHeight>0||fi.target.offsetWidth>0)&&(or(),Wn.setSize("100%","100%"),Wn.refresh())});return Qi.observe(Dr.current.parentElement),Qi}if(Wn){const Qi=gr();return()=>{var xr,fi;(xr=Dr.current)!=null&&xr.parentElement&&Qi.unobserve((fi=Dr.current)==null?void 0:fi.parentElement)}}},[Wn,or]),(0,se.useEffect)(()=>{if(Wn){let gr=[];for(const[Qi,xr]of Object.entries(Vo)){let fi={[Qi]:()=>{Gr(xr)}};gr.push(fi),Wn.addKeyMap(fi)}return()=>{for(let Qi of gr)Wn.removeKeyMap(Qi)}}},[Wn]),(0,se.useEffect)(()=>{ni!==Ai&&Bi(ni)},[ni]),(0,dr.Z)(()=>{if(!Rn&&tr>0){let gr=new Date().getTime(),Qi=window.sessionStorage.getItem(zn);gr>=tr+Wr&&(!Qi||Qi!==Fi)&&(window.sessionStorage.setItem(zn,Fi),Ht(!0))}},Wr),(0,se.useEffect)(()=>{tn(Vt)},[Wn,Vt]),(0,se.useEffect)(()=>{Wn&&Un&&Wn.focus()},[Wn,Un]),(0,se.useEffect)(()=>{if(zi&&Wn){let gr=function(xr){let fi=xr.target;if(Ji.current){let bo=fi.scrollTop/fi.scrollHeight;Ji.current.scrollTop=Ji.current.scrollHeight*bo}};const Qi=Wn.getScrollerElement();return Qi.addEventListener("scroll",gr),()=>{Qi.removeEventListener("scroll",gr)}}},[Wn,zi]),(0,se.useEffect)(()=>{if(Wn&&yn){let gr=function(Qi,xr){yn(Qi,xr)};return Wn.on("beforeChange",gr),()=>{Wn.off("beforeChange",gr)}}},[Wn,yn]),(0,se.useEffect)(()=>{if(Wn&&Gt){let gr=function(){Gt(Wn.getValue())};return Wn.on("blur",gr),()=>{Wn.off("blur",gr)}}},[Wn,Gt]);function io(gr,Qi){var xr=gr.getDoc(),fi=xr.getCursor(),bo=xr.getLine(fi.line),ua=bo.charAt(fi.ch-1),ca=bo.lastIndexOf("@\u2581@",fi.ch),oa=bo.lastIndexOf("@\u2581\u2581@",fi.ch),Ra=ca>oa?ca:oa,ts=ca>oa?3:4;if(Zr.indexOf(ua)===-1)return null;if(console.log("change1:",Qi,gr,bo,fi,Ra,ca,oa,ua),Ra>=0&&fi.ch-Ra<5){var ds=Ra+ts;return xr.replaceRange("",{line:fi.line,ch:Ra},{line:fi.line,ch:ds}),{line:fi.line,ch:ds}}return null}(0,se.useEffect)(()=>{if(Wn){let gr=function(Qi,xr){const fi=Qi.getValue();ir(fi),br(new Date().getTime()),Qi.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),ln&&(Ut?ln(fi,mr(fi)):ln(fi))};return Wn.on("change",gr),()=>{Wn.off("change",gr)}}},[Wn,ln]),(0,se.useEffect)(()=>{if(Wn)if(on==null)Wn.setValue(""),ir("");else{const gr=window.scrollY||window.pageYOffset;on!==Wn.getValue()&&(Wn.setValue(on),ir(on),Wn.setCursor(gn?1:Wn.lineCount(),0),window.scrollTo(0,gr))}},[Wn,on]);const Gr=(0,se.useCallback)(gr=>{const Qi=Wn.getCursor(),xr=Wn.getSelection();let fi=xr.split(`
`);switch(gr){case"bold":return Wn.replaceSelection("**"+xr+"**"),xr===""&&Wn.setCursor(Qi.line,Qi.ch+2),Wn.focus();case"italic":return Wn.replaceSelection("*"+xr+"*"),xr===""&&Wn.setCursor(Qi.line,Qi.ch+1),Wn.focus();case"code":return Wn.replaceSelection("`"+xr+"`"),xr===""&&Wn.setCursor(Qi.line,Qi.ch+1),Wn.focus();case"inline-latex":return hr("inline-latex"),Wn.focus();case"latex":return Wn.replaceSelection("```latex\n"+xr+"\n```"),Wn.setCursor(Qi.line+1,xr.length+1),Wn.focus();case"line-break":return Wn.replaceSelection(`<br/>
`),Wn.focus();case"list-ul":return xr===""?Wn.replaceSelection("- "+xr):Wn.replaceSelection(fi.map(bo=>bo===""?"":`- ${bo}`).join(`
`)),Wn.focus();case"list-ol":return xr===""?Wn.replaceSelection("1. "+xr):Wn.replaceSelection(fi.map((bo,ua)=>bo===""?"":`${ua+1}. ${bo}`).join(`
`)),Wn.focus();case"add-null-ch":return xr===""&&Wn.setCursor(Qi.line,Qi.ch),Wn.replaceSelection(Gi),Wn.focus();case"add-signal":return xr===""&&Wn.setCursor(Qi.line,Qi.ch),Wn.replaceSelection(Yi),Wn.focus();case"add-multiple":return xr===""&&Wn.setCursor(Qi.line,Qi.ch),Wn.replaceSelection(Zr),Wn.focus();case"inster-template-1":return xr===""&&Wn.setCursor(Qi.line,Qi.ch),Wn.replaceSelection(Ue),Wn.focus();case"eraser":return Wn.setValue(""),Wn.focus();case"trigger-watch":return tn(!zi),Wn.focus();case"trigger-full-screen":return Bi(!Ai),Wn.focus();case nn:hr(nn);return;case Mi:hr(Mi);return;case Mn:hr(Mn);return;case li:hr(li);return;case"maths-latex":hr("maths-latex");return;case Zn:hr(Zn);return;case Si:hr(Si);return;default:throw new Error}},[Wn,zi,Ai]),Ii=(0,se.useCallback)((gr,Qi)=>{var xr,fi,bo,ua,ca,oa;switch(hr(""),Ti){case nn:const{title:ks,link:Ds}=gr;return Wn.replaceSelection(`[${ks}](${Ds})`),Wn.focus();case Mi:const{language:jn,content:gs}=gr;return Wn.replaceSelection(["```"+jn,gs,"```"].join(`
`)),Wn.focus();case"maths-latex":for(var Ra=atob(gr),ts=new Uint8Array(Ra.length),ds=0;ds<Ra.length;ds++)ts[ds]=Ra.charCodeAt(ds);var Qa=new Blob([ts],{type:"image/png"});(0,It.I)(Qa,ns=>{ns.id?Wn.replaceSelection(`![,](/api/attachments/${ns.id}?type=${ns.content_type})`):(ns==null?void 0:ns.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Wn.replaceSelection("`$$"+gr+"$$`");break;case Mn:case li:case xi:const{src:Ql,alt:Kl}=gr,Oo=Qi,ma=(bo=(fi=(xr=Oo==null?void 0:Oo.name)==null?void 0:xr.split("."))==null?void 0:fi.pop)==null?void 0:bo.call(fi);return((ua=Oo==null?void 0:Oo.type)==null?void 0:ua.indexOf("image"))>-1||!(Oo!=null&&Oo.type)?Kl?Wn.replaceSelection(`![ ${Kl} ]( ${Ql} "${Kl}" )`):Wn.replaceSelection(`![,](${Ql})`):((ca=Oo==null?void 0:Oo.type)==null?void 0:ca.indexOf("video"))>-1?Wn.replaceSelection(`<video width="100%" controls src="${Ql}"></video>`):((oa=Oo==null?void 0:Oo.type)==null?void 0:oa.indexOf("pdf"))>-1?Wn.replaceSelection(`<a href="${Ql}?type=${Oo.type}&disposition=inline" target="_blank">${Oo.name}</a>`):no.includes(ma)?Wn.replaceSelection(`<a href="${Ql}?type=office&disposition=inline" target="_blank">${Oo.name}</a>`):Wn.replaceSelection(`[${Oo.name}](${Ql})`),Wn.focus();case Si:const{row:hs,col:aa,align:Xr}=gr;let Qr=`
`;for(let ns=0;ns<hs;ns++){let so=[],Po=[];for(let Mo=0;Mo<aa;Mo++)ns===1&&Po.push(lr[Xr]),so.push(" ");ns===1&&(Qr+=`| ${Po.join(" | ")} |
`),Qr+=`| ${so.join(aa===1?"":" | ")} |
`}return Wn.replaceSelection(Qr+`
`),Wn.focus();default:throw new Error}},[Wn,Ti]),lt=(0,se.useMemo)(()=>{switch(Ti){case nn:return se.createElement(Bt,{callback:Ii,onCancel:Rr});case Mi:return se.createElement(sn.Z,{callback:Ii,onCancel:Rr});case Mn:return se.createElement(It.Z,{callback:Ii,onCancel:Rr});case Zn:return se.createElement(Ot,{callback:Ii,onCancel:Rr});case Si:return se.createElement(xe,{callback:Ii,onCancel:Rr});case"maths-latex":return se.createElement(hn,{showSaveButton:!0,callback:Ii});case"inline-latex":return se.createElement(Pn.Z,{showSaveButton:!0,callback:Ii});default:return null}},[Ti]);function Rr(){hr("")}(0,se.useEffect)(()=>{if(Do.current){let gr=function(ca){bo=!0,ua=ca.pageY},Qi=function(){bo=!1},xr=function(ca){if(bo){let oa=ca.pageY-ua;oa<0&&(oa=0),oa>300&&(oa=300);let Ra=Nt+oa+"px";Hi(Ra)}},fi=Do.current,bo=!1,ua=0;return fi.addEventListener("mousedown",gr),document.addEventListener("mousemove",xr),document.addEventListener("mouseup",Qi),()=>{fi.removeEventListener("mousedown",gr),document.removeEventListener("mousemove",xr),document.removeEventListener("mouseup",Qi)}}},[Wn,Do]),(0,se.useEffect)(()=>{Hi(Nt)},[Nt]);const Ko=pr(qt),Yr=pr(Xi),yo={width:Ko,height:Yr},Mr=(0,se.useMemo)(()=>{if(tr){let gr=new Date(tr),Qi=gr.getHours(),xr=gr.getMinutes(),fi=gr.getSeconds();return Qi=Qi<10?"0"+Qi:Qi,xr=xr<10?"0"+xr:xr,fi=fi<10?"0"+fi:fi,`${Qi}:${xr}:${fi}`}return 0},[tr]),mr=gr=>{const Qi=[];if(Ut){let xr=-1;gr=gr.replace(/(@▁▁@|@▁@)/g,function(fi,bo,ua){Qi.push({multiLine:fi!==Yi})})}return Qi};function co(){window.sessionStorage.removeItem(zn),Ht(!1),br(0)}function Uo(){Ht(!1),br(0),Wn.setValue(window.sessionStorage.getItem(zn))}(0,se.useEffect)(()=>{Io[Ti]&&Ti!==li&&Ti!==Zn&&setTimeout(()=>{const gr=document.getElementsByClassName("markdown-popup-form")[0],Qi=window.innerWidth/2-gr.offsetWidth/2,xr=window.innerHeight/2-gr.offsetHeight/2;Fn(Qi),Go(xr)},0)},[Ti]);const ao=gr=>{gr.preventDefault();const Qi=gr.clientX-Kr,xr=gr.clientY-kr;document.body.onmousemove=fi=>{let bo=fi.clientX-Qi,ua=fi.clientY-xr;const ca=document.getElementsByClassName("markdown-popup-form")[0],oa=window.innerWidth-ca.offsetWidth,Ra=window.innerHeight-ca.offsetHeight;bo=Math.max(0,Math.min(bo,oa)),ua=Math.max(0,Math.min(ua,Ra)),ra(fi.clientX,fi.clientY,Qi,xr)&&(Fn(bo),Go(ua))},document.body.onmouseup=function(){document.body.onmousemove=null}},ra=(gr,Qi,xr,fi)=>{const bo=document.body.clientHeight,ua=document.body.clientWidth;return gr<20&&xr>gr||gr>ua-20&&xr<gr||Qi<20&&fi>Qi||Qi>bo-20&&fi<Qi?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return se.createElement(se.Fragment,null,se.createElement("div",{className:"markdown-editor-wrapper",ref:po},se.createElement("div",{className:`markdown-editor-container ${un} ${zi?"on-preview":""} ${On?"mini":""} ${Ai?"full-screen":""}`,style:yo},se.createElement($e,{insertTemp:yt,watch:zi,fullScreen:Ai,showNullButton:bt,showNullProgramButton:Ut,onActionCallback:Gr,hidetoolBar:Ln,extraUse:Jn}),se.createElement("div",{className:"markdown-editor-body"},se.createElement("div",{className:"codemirror-container"},se.createElement("textarea",{ref:Dr,placeholder:Bn})),zi?se.createElement("div",{ref:Ji,className:"preview-container"},In==="stex"&&se.createElement(ht,{value:Fi}),In!=="stex"&&se.createElement(tt.Z,{disabledFill:kn,showProgramFill:Ut,value:Fi})):null))),mi?se.createElement("a",{ref:Do,className:"editor-resize"}):null,Ti===li&&se.createElement(Kn,{callback:Ii,onCancel:Rr}),Ti===Zn&&se.createElement(Ot,{callback:Ii,onCancel:Rr}),se.createElement(st.Z,null,Io[Ti]&&Ti!==li&&Ti!==Zn?se.createElement(en.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Kr,top:kr},title:se.createElement("div",{style:{cursor:"move"},onMouseDown:ao},Io[Ti]),open:!0,onCancel:Rr,footer:null,destroyOnClose:!0,width:Ti===Zn?"1200px":null,height:Ti===Zn?"80vh":null,className:"markdown-popup-form"},lt):null))}},56701:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return Se},I:function(){return ke}});var se=oe(78241),Ce=oe(8591),we=oe(92832),Ie=oe(3113),De=oe(58788),Ke=oe(59301),Ee=oe(59301),et=Object.defineProperty,Je=Object.defineProperties,Ye=Object.getOwnPropertyDescriptors,tt=Object.getOwnPropertySymbols,ht=Object.prototype.hasOwnProperty,kt=Object.prototype.propertyIsEnumerable,ze=(Te,We,$e)=>We in Te?et(Te,We,{enumerable:!0,configurable:!0,writable:!0,value:$e}):Te[We]=$e,ee=(Te,We)=>{for(var $e in We||(We={}))ht.call(We,$e)&&ze(Te,$e,We[$e]);if(tt)for(var $e of tt(We))kt.call(We,$e)&&ze(Te,$e,We[$e]);return Te},ne=(Te,We)=>Je(Te,Ye(We));const{useForm:ge}=se.default,ue={width:280,marginRight:10},me={labelCol:{span:5},wrapperCol:{span:19}};var Se=({callback:Te,onCancel:We})=>{const[$e]=ge();let st=(0,Ke.useRef)();function ut($t){Te($t,st.current)}function Mt($t,Pt){if($t.status===-1){Ce.ZP.error($t.message);return}$e.setFieldsValue({src:`/api/attachments/${$t.id}`,type:Pt.type})}function nt($t){let Pt=$t.target.files[0];st.current=Pt,ke(Pt,Mt)}return Ee.createElement(se.default,ne(ee({form:$e},me),{className:"upload-image-panel",onFinish:ut,style:{width:470,overflow:"hidden"}}),Ee.createElement(se.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Ee.createElement("div",{className:"flex-container"},Ee.createElement(se.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},Ee.createElement(we.default,{style:ue})),Ee.createElement(Ne,{onFileChange:nt}))),Ee.createElement(se.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Ee.createElement(we.default,{style:{width:264}})),Ee.createElement(se.default.Item,{style:{textAlign:"right"}},Ee.createElement(Ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ee.createElement(Ie.ZP,{type:"default",onClick:We},"\u53D6\u6D88")))};function Ne({onFileChange:Te}){return Ee.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Ee.createElement("input",{type:"file",onChange:Te}))}function ke(Te,We){if(!Te)throw new String("\u6CA1\u6709\u6587\u4EF6");let $e=new FormData;$e.append("editormd-image-file",Te),$e.append("file_param_name","editormd-image-file"),$e.append("byxhr","true");var st=new window.XMLHttpRequest;st.withCredentials=!0,st.addEventListener("load",function(ut){We(JSON.parse(ut.target.responseText),Te)},!1),st.addEventListener("error",function(ut){console.error(ut)},!1),st.open("POST",`${De.KI}/api/attachments.json`),st.send($e)}},50474:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return we}});var se=oe(59301),Ce=oe(4676);class we extends se.Component{constructor(De){super(De);const Ke=window.document;this.node=Ke.createElement("div"),Ke.body.appendChild(this.node)}render(){const{children:De}=this.props;return(0,Ce.createPortal)(De,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},48551:function(_e,be,oe){"use strict";oe.d(be,{SV:function(){return Ft},ZP:function(){return rt}});var se=oe(59301),Ce=oe(76374);const we={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},Ie={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},De={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
`)},{label:"if",content:["if () {"," $0","}"].join(`
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
`)},{label:"using namespace std;",content:["using namespace std;"].join(`
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
`)},{label:"include <vector>",content:["#include <vector>"].join(`
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
`)},{label:"include <map>",content:["#include <map>"].join(`
`)},{label:"include <string>",content:["#include <string>"].join(`
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
`)}]},Ke={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
`)}]},Ee={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(`
`)}]};var et=oe(86061),Je=oe.n(et),Ye=Object.defineProperty,tt=Object.defineProperties,ht=Object.getOwnPropertyDescriptors,kt=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ne=(Ot,ft,ct)=>ft in Ot?Ye(Ot,ft,{enumerable:!0,configurable:!0,writable:!0,value:ct}):Ot[ft]=ct,ge=(Ot,ft)=>{for(var ct in ft||(ft={}))ze.call(ft,ct)&&ne(Ot,ct,ft[ct]);if(kt)for(var ct of kt(ft))ee.call(ft,ct)&&ne(Ot,ct,ft[ct]);return Ot},ue=(Ot,ft)=>tt(Ot,ht(ft)),me=(Ot,ft,ct)=>new Promise((Ge,Ae)=>{var xe=Oe=>{try{Qe(ct.next(Oe))}catch(xt){Ae(xt)}},je=Oe=>{try{Qe(ct.throw(Oe))}catch(xt){Ae(xt)}},Qe=Oe=>Oe.done?Ge(Oe.value):Promise.resolve(Oe.value).then(xe,je);Qe((ct=ct.apply(Ot,ft)).next())});const Se={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},Ne=(Ot,ft)=>ft.map(ct=>({label:ct,kind:Ot.languages.CompletionItemKind.Keyword,insertText:ct})),ke=Ot=>Object.keys(Se.tables).map(ft=>({label:ft,kind:Ot.languages.CompletionItemKind.Variable,insertText:ft})),Te=(Ot,ft)=>{const ct=Se.tables[Ot];return ct?ct.map(Ge=>({label:Ge,kind:ft.languages.CompletionItemKind.Field,insertText:Ge})):[]};function We(Ot,ft,ct,Ge,Ae){let xe=ft.getWordUntilPosition(ct),je={startLineNumber:ct.lineNumber,endLineNumber:ct.lineNumber,startColumn:xe.startColumn,endColumn:xe.endColumn},Qe=Ge.map(Oe=>({label:Oe,kind:Ot.languages.CompletionItemKind.Keyword,insertText:Oe,insertTextRules:Ot.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:je}));return Ae.map(Oe=>{Qe.push(ue(ge({},Oe),{range:je}))}),Qe}var $e=Ot=>{Se.languages.map(Ae=>(Ot.languages.registerDocumentFormattingEditProvider(Ae,{provideDocumentFormattingEdits(xe,je,Qe){return me(this,null,function*(){const Oe=Je()(xe.getValue(),{indent_size:"2",indent_char:" ",max_preserve_newlines:"2",preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"0",indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:xe.getFullModelRange(),text:Oe}]})}}),Ae));const ft=De.quickKey.map(Ae=>({label:Ae.label,kind:Ot.languages.CompletionItemKind.Method,insertText:Ae.content,insertTextRules:Ot.languages.CompletionItemInsertTextRule.InsertAsSnippet})),ct=Ke.quickKey.map(Ae=>({label:Ae.label,kind:Ot.languages.CompletionItemKind.Method,insertText:Ae.content,insertTextRules:Ot.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Ge=Ie.quickKey.map(Ae=>({label:Ae.label,kind:Ot.languages.CompletionItemKind.Method,insertText:Ae.content,insertTextRules:Ot.languages.CompletionItemInsertTextRule.InsertAsSnippet}));Ot.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Ae,xe){var je=Ae.getWordUntilPosition(xe),Qe={startLineNumber:xe.lineNumber,endLineNumber:xe.lineNumber,startColumn:je.startColumn,endColumn:je.endColumn},Oe=Ae.getLineContent(xe.lineNumber).substring(je.startColumn-2,je.endColumn);return{suggestions:[...De.keywords.map(xt=>({label:xt,kind:Ot.languages.CompletionItemKind.Function,documentation:xt,insertText:xt,insertTextRules:Ot.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Qe})),...De.quickKey.map(xt=>({label:xt.label,kind:Ot.languages.CompletionItemKind.Function,documentation:xt.content,insertText:Oe.startsWith("#")?xt.content.replace(/#/,""):xt.content,insertTextRules:Ot.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Qe}))]}}}),Ot.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Ae,xe){var je=Ae.getWordUntilPosition(xe),Qe={startLineNumber:xe.lineNumber,endLineNumber:xe.lineNumber,startColumn:je.startColumn,endColumn:je.endColumn};return{suggestions:[...we.keywords.map(Oe=>({label:Oe,kind:Ot.languages.CompletionItemKind.Function,documentation:Oe,insertText:Oe,insertTextRules:Ot.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Qe}))]}}}),Ot.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Ae,xe){var je=Ae.getWordUntilPosition(xe),Qe={startLineNumber:xe.lineNumber,endLineNumber:xe.lineNumber,startColumn:je.startColumn,endColumn:je.endColumn},Oe=Ae.getLineContent(xe.lineNumber).substring(je.startColumn-2,je.endColumn);return{suggestions:[...Ie.keywords.map(xt=>({label:xt,kind:Ot.languages.CompletionItemKind.Function,documentation:xt,insertText:xt,insertTextRules:Ot.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Qe})),...Ie.quickKey.map(xt=>({label:xt.label,kind:Ot.languages.CompletionItemKind.Function,documentation:xt.content,insertText:Oe.startsWith("#")?xt.content.replace(/#/,""):xt.content,insertTextRules:Ot.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Qe}))]}}}),Ot.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(Ae,xe){var je=Ae.getWordUntilPosition(xe),Qe={startLineNumber:xe.lineNumber,endLineNumber:xe.lineNumber,startColumn:je.startColumn,endColumn:je.endColumn},Oe=Ae.getLineContent(xe.lineNumber).substring(je.startColumn-2,je.endColumn);return{suggestions:[...Ee.keywords.map(xt=>({label:xt,kind:Ot.languages.CompletionItemKind.Function,documentation:xt,insertText:xt,insertTextRules:Ot.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Qe})),...Ee.quickKey.map(xt=>({label:xt.label,kind:Ot.languages.CompletionItemKind.Function,documentation:xt.content,insertText:Oe.startsWith("#")?xt.content.replace(/#/,""):xt.content,insertTextRules:Ot.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Qe}))]}}}),Ot.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Ae,xe){var je=Ae.getWordUntilPosition(xe),Qe={startLineNumber:xe.lineNumber,endLineNumber:xe.lineNumber,startColumn:je.startColumn,endColumn:je.endColumn},Oe=Ae.getLineContent(xe.lineNumber).substring(je.startColumn-2,je.endColumn);return{suggestions:[...Ke.keywords.map(xt=>({label:xt,kind:Ot.languages.CompletionItemKind.Function,documentation:xt,insertText:xt,insertTextRules:Ot.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Qe})),...Ke.quickKey.map(xt=>({label:xt.label,kind:Ot.languages.CompletionItemKind.Function,documentation:xt.content,insertText:Oe.startsWith("#")?xt.content.replace(/#/,""):xt.content,insertTextRules:Ot.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Qe}))]}}})};const st="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var ut=Object.defineProperty,Mt=(Ot,ft,ct)=>ft in Ot?ut(Ot,ft,{enumerable:!0,configurable:!0,writable:!0,value:ct}):Ot[ft]=ct,nt=(Ot,ft,ct)=>Mt(Ot,typeof ft!="symbol"?ft+"":ft,ct);const $t=class P1{constructor(ft,ct,Ge){this.placeholder=ft,this.editor=ct,this.monaco=Ge,ct.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return P1.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};nt($t,"ID","editor.widget.placeholderHint");var dn=$t,zt=oe(96236),Xt=oe(8591),fn=oe(6848),an=oe(89392),it=oe(86766),Ve=oe(56102),gt=Object.defineProperty,Bt=Object.defineProperties,sn=Object.getOwnPropertyDescriptors,It=Object.getOwnPropertySymbols,en=Object.prototype.hasOwnProperty,En=Object.prototype.propertyIsEnumerable,ei=(Ot,ft,ct)=>ft in Ot?gt(Ot,ft,{enumerable:!0,configurable:!0,writable:!0,value:ct}):Ot[ft]=ct,An=(Ot,ft)=>{for(var ct in ft||(ft={}))en.call(ft,ct)&&ei(Ot,ct,ft[ct]);if(It)for(var ct of It(ft))En.call(ft,ct)&&ei(Ot,ct,ft[ct]);return Ot},Kn=(Ot,ft)=>Bt(Ot,sn(ft)),jt=(Ot,ft)=>{var ct={};for(var Ge in Ot)en.call(Ot,Ge)&&ft.indexOf(Ge)<0&&(ct[Ge]=Ot[Ge]);if(Ot!=null&&It)for(var Ge of It(Ot))ft.indexOf(Ge)<0&&En.call(Ot,Ge)&&(ct[Ge]=Ot[Ge]);return ct},Nn=(Ot,ft,ct)=>new Promise((Ge,Ae)=>{var xe=Oe=>{try{Qe(ct.next(Oe))}catch(xt){Ae(xt)}},je=Oe=>{try{Qe(ct.throw(Oe))}catch(xt){Ae(xt)}},Qe=Oe=>Oe.done?Ge(Oe.value):Promise.resolve(Oe.value).then(xe,je);Qe((ct=ct.apply(Ot,ft)).next())});function Gn(Ot){return/^\d+$/.test(Ot)?`${Ot}px`:Ot}function ii(){}let Sn=!1;const Yt={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function Zt(Ot=[]){let ft=Ot;if(Array.isArray(Ot)){for(let ct=0;ct<Ot.length;ct++){let Ge=Yt[Ot[ct]];if(Ge)return Ge}return ft[0]}return Yt[ft]||ft}let St=null;var rt=Ot=>{var ft=Ot,{width:ct="100%",height:Ge="100%",value:Ae,language:xe="javascript",style:je={},options:Qe={},overrideServices:Oe={},theme:xt="vs-dark",onEditBlur:hn,isCopy:Pn=!1,onSave:wt,autoHeight:nn=!1,forbidCopy:Mn=!1,onChange:Zn=ii,editorDidMount:li=ii,onFocus:xi=ii,onBreakPoint:Mi=ii,breakPointValue:Si=[],filename:Ri="educoder.txt",errorLine:lr,errorContent:dr="",highlightLine:ur,openBreakPoint:Sr=!1,placeholder:Wr=""}=ft,Gi=jt(ft,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder"]);const Zr=(0,se.useRef)(),Yi=(0,se.useRef)({}),Ue=(0,se.useRef)(),no=(0,se.useRef)(),pr=(0,se.useRef)([]),fo=(0,se.useRef)(!1),Fo=(0,se.useRef)(),Vo=(0,se.useRef)(),Io=(0,se.useRef)(!1),[Oi,on]=(0,se.useState)(!1);function ln(){let Gt;return Zr.current&&(Gt=new Ce.Z(yn=>{for(let Qt of yn)(Qt.target.offsetHeight>0||Qt.target.offsetWidth>0)&&Yi.current.instance.layout()}),Gt.observe(Zr.current)),Gt}function qt(){Xt.ZP.warning({content:decodeURIComponent(st),key:"monaco-editor-tip"})}const Nt=()=>{let Gt=Yi.current.instance;if(Ae!=null&&Gt&&Oi){const yn=Gt.getModel();yn&&Ae!==yn.getValue()&&(Sn=!0,yn.setValue(Ae),Gt.layout(),Sn=!1)}};(0,se.useEffect)(()=>{const Gt=it.Z.subscribe("formatDocument",yn=>{var Qt;let un=Yi.current.instance;(Qt=un==null?void 0:un.getAction)==null||Qt.call(un,"editor.action.formatDocument").run()});return window.updateMonacoValue=yn=>{Zn(yn)},Gt},[]),(0,se.useEffect)(()=>{var Gt;let yn=Yi.current.instance;no.current&&clearTimeout(no.current),no.current=setTimeout(()=>{Nt()},500),Ae&&(Ae!=null&&Ae.length)&&((Gt=yn==null?void 0:yn.updateOptions)==null||Gt.call(yn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Ae.split(/\r\n|\r|\n/g).length))+3,5)}))},[Ae,Oi,Yi.current]),(0,se.useEffect)(()=>{if(lr&&Yi.current&&Yi.current.instance){let yn=Yi.current.instance;yn.changeViewZones(function(Qt){var un=document.createElement("div");un.style.padding="10px 20px",un.style.width="calc(100% - 20px)",un.className="my-error-line-wrp",un.innerHTML=dr,Qt.addZone({afterLineNumber:lr||11,heightInLines:3,domNode:un})});var Gt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};yn.addOverlayWidget(Gt),yn.revealPositionInCenter({lineNumber:20,column:1})}},[lr,Yi.current,Oi]);const On=(Gt="",yn)=>{if(!Gt||Gt.trim()==="")return!0;const un=Yi.current.instance.getModel().getLineTokens(yn);let wn=!1;for(let gn=0;gn<2;gn++)un.getStandardTokenType(gn)===1&&(wn=!0);return wn};(0,se.useEffect)(()=>{var Gt;const yn=(Gt=Yi.current)==null?void 0:Gt.instance;if(yn&&Oi&&Mn){const Qt=yn.onDidBlurEditorWidget(()=>{Io.current=!1}),un=yn.onDidFocusEditorText(()=>{Io.current=!0});return()=>{Qt.dispose(),un.dispose()}}},[Yi.current,Oi,Mn]),(0,se.useEffect)(()=>{var Gt;if((Gt=Yi.current)!=null&&Gt.instance&&Oi&&Sr){let yn=Yi.current.instance,Qt=yn.getModel();if(!Qt)return;(()=>{var zi;let tn=[],Ai=[];const Bi=Qt.getAllDecorations();for(let hr of Bi)hr.options.className==="highlighted-line"&&(tn.push((zi=hr==null?void 0:hr.range)==null?void 0:zi.startLineNumber),Ai.push(hr==null?void 0:hr.id));if(ur===tn[0])return;Qt.deltaDecorations(Ai,[]);const Ti=Qt.getLineCount();ur&&ur<=Ti&&(yn.deltaDecorations([],[{range:new St.Range(ur,1,ur,Qt.getLineMaxColumn(ur)),options:{isWholeLine:!0,className:"highlighted-line"}}]),yn.revealLineInCenter(ur))})();const wn=(zi=!1)=>{var tn;let Ai=[],Bi=[];const Ti=Qt.getAllDecorations();for(let hr of Ti)hr.options.linesDecorationsClassName==="breakpoints-select"&&(Ai.push((tn=hr==null?void 0:hr.range)==null?void 0:tn.startLineNumber),Bi.push(hr==null?void 0:hr.id));if(zi)return{lines:Ai,ids:Bi};Mi(Ai)},gn=zi=>Nn(void 0,null,function*(){let tn={range:new St.Range(zi,1,zi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Qt.deltaDecorations([],[tn]),wn()}),kn=zi=>Nn(void 0,null,function*(){let tn=[];const Ai=yn.getLineDecorations(zi);for(let Bi of Ai)Bi.options.linesDecorationsClassName==="breakpoints-select"&&tn.push(Bi.id);yield Qt.deltaDecorations(tn,[]),wn()}),Bn=zi=>{let tn=yn.getLineDecorations(zi);for(let Ai of tn)if(Ai.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,an.isEqual)(Si,wn(!0).lines)){Qt.deltaDecorations(wn(!0).ids,[]);const zi=Si.map(tn=>({range:new St.Range(tn,1,tn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Qt.deltaDecorations([],zi)}const Vn=yn.onDidChangeModelContent(zi=>{let tn=yn.getPosition();if(tn){let Ai=tn.lineNumber;clearTimeout(Vo.current),Vo.current=setTimeout(()=>{On(Qt.getLineContent(Ai),Ai)?kn(Ai):Bn(Ai)?(kn(Ai),gn(Ai)):wn()},100)}}),Jn=yn.onMouseDown(zi=>{var tn,Ai,Bi;if(zi.target.detail&&((Bi=(Ai=(tn=zi.target)==null?void 0:tn.element)==null?void 0:Ai.className)!=null&&Bi.includes("line-numbers"))){let Ti=zi.target.position.lineNumber;if(On(Qt.getLineContent(Ti),Ti))return;Bn(Ti)?kn(Ti):gn(Ti)}}),Wn=zi=>{let tn={range:new St.Range(zi,1,zi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};pr.current=yn.deltaDecorations(pr.current,[tn])},gi=()=>{pr.current=yn.deltaDecorations(pr.current,[])},Fi=yn.onMouseMove(zi=>{var tn,Ai,Bi;if(gi(),zi.target.detail&&((Bi=(Ai=(tn=zi.target)==null?void 0:tn.element)==null?void 0:Ai.className)!=null&&Bi.includes("line-numbers"))){let Ti=zi.target.position.lineNumber;if(On(Qt.getLineContent(Ti),Ti))return;Wn(Ti)}}),ir=yn.onMouseLeave(()=>{gi()});return()=>{Vn.dispose(),Jn.dispose(),Fi.dispose(),ir.dispose()}}},[Yi.current,Oi,Si,ur,Sr,xe]),(0,se.useEffect)(()=>{var Gt;(Gt=Yi.current)!=null&&Gt.instance&&Sr&&Yi.current.instance.setPosition({lineNumber:0,column:0})},[ur]);function Un(){let Gt=Yi.current.instance;if(Gt){const yn=Gt.getSelection(),Qt=Yi.current.pastePos||{},un=new St.Range(Qt.startLineNumber||yn.endLineNumber,Qt.startColumn||yn.endColumn,Qt.endLineNumber||yn.endLineNumber,Qt.endColumn||yn.endColumn);setTimeout(()=>{Gt.executeEdits("",[{range:un,text:""}])},300)}}function Vt(Gt){(window.navigator.platform.match("Mac")?Gt.metaKey:Gt.ctrlKey)&&Gt.keyCode==83&&(Gt.preventDefault(),wt())}const yt=()=>{if(nn&&Yi.current.instance){const Gt=Yi.current.instance.getContentHeight();Ln(Gt<Ge?Ge:Gt)}else Ln(Ge)};function In(Gt){var yn=document.createEvent("MouseEvents");yn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Gt.dispatchEvent(yn)}const zn=Gt=>{if(!Io.current)return;const{keyCode:yn,ctrlKey:Qt,metaKey:un,target:wn,type:gn}=Gt;return(gn==="paste"||(yn===67||yn===86)&&(un||Qt))&&wn.nodeName==="TEXTAREA"&&(qt(),Gt.preventDefault()),!1};function mi(Gt,yn){var Qt=window.URL||window.webkitURL||window,un=new Blob([yn]),wn=document.createElementNS("http://www.w3.org/1999/xhtml","a");wn.href=Qt.createObjectURL(un),wn.download=Gt,In(wn)}(0,se.useEffect)(()=>{yt()},[yt]),(0,se.useEffect)(()=>{Zr.current&&!Oi&&Promise.all([oe.e(8909),oe.e(1810)]).then(oe.bind(oe,71448)).then(Gt=>{try{St=Gt,Yi.current.instance=St.editor.create(Zr.current,{value:Ae,language:Zt(xe),theme:xt,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Oe);const yn=Yi.current.instance;let wn=[...zt.BH._menuItems].find(Vn=>Vn[0]._debugName=="EditorContext")[1],gn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],kn=(Vn,Jn)=>{var Wn,gi;let Fi=Vn._first;do Jn.includes((gi=(Wn=Fi.element)==null?void 0:Wn.command)==null?void 0:gi.id)&&Vn._remove(Fi);while(Fi=Fi.next)};if(li(yn,St),setTimeout(()=>{yt(),Yi.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{mi(Ri||"educoder.txt",yn.getValue())}})},500),Yi.current.subscription=yn.onDidChangeModelContent(Vn=>{fo.current?clearTimeout(Fo.current):(yt(),Zn(yn.getValue(),Vn)),Fo.current=setTimeout(()=>{fo.current=!1},500)}),window.Monaco||$e(St,Zt(xe)),Mn&&(kn(wn,gn),Zr.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",zn),window.removeEventListener("paste",zn),window.addEventListener("keydown",zn),window.addEventListener("paste",zn)),window.Monaco=St,hn&&yn.onDidBlurEditorWidget(()=>{hn(yn.getValue())}),xi&&yn.onDidFocusEditorText(()=>{xi(yn.getValue())}),Mn)try{yn.onDidPaste(Vn=>{const Jn=yn.getSelection(),Wn=Yi.current.pastePos||{},gi=new St.Range(Wn.startLineNumber||Jn.endLineNumber,Wn.startColumn||Jn.endColumn,Wn.endLineNumber||Jn.endLineNumber,Wn.endColumn||Jn.endColumn);yn.executeEdits("",[{range:Vn.range,text:""}])})}catch(Vn){}let Bn=ln();return Wr&&typeof Wr=="string"&&new dn(Wr,yn,St),on(!0),()=>{const Vn=Yi.current.instance;Vn.dispose();const Jn=Vn.getModel();Jn&&Jn.dispose(),Yi.current.subscription&&Yi.current.subscription.dispose(),Bn.unobserve(Zr.current)}}catch(yn){}})},[]),(0,se.useEffect)(()=>{if(Yi.current.instance&&Oi)return document.addEventListener("keydown",Vt,!1),()=>{document.removeEventListener("keydown",Vt)}},[wt,Oi]),(0,se.useEffect)(()=>{let Gt=Yi.current.instance;if(Gt&&Oi){let yn=Zt(xe);St.editor.setModelLanguage(Gt.getModel(),yn)}},[xe,Oi]),(0,se.useEffect)(()=>{Yi.current.instance&&Oi&&St.editor.setTheme(xt)},[xt,Oi]),(0,se.useEffect)(()=>{let Gt=Yi.current.instance;Ue.current=Qe,Gt&&Oi&&(Gt.updateOptions(An({},Qe)),setTimeout(()=>{Gt.getModel().updateOptions(An({},Qe))},200))},[JSON.stringify(Qe),Oi]),(0,se.useEffect)(()=>{let Gt=Yi.current.instance;Gt&&Oi&&Gt.layout()},[ct,Ge,Oi]);const[Rn,bt]=(0,se.useState)(Gn(ct)),[Ut,Ln]=(0,se.useState)(Gn(Ge)),ni=Kn(An({},je),{width:Rn,height:Ut,position:"relative"});return se.createElement("div",{className:"my-monaco-editor",ref:Zr,style:ni},Pn&&se.createElement(Ve.CopyToClipboard,{text:Ae,onCopy:()=>Xt.ZP.success("\u590D\u5236\u6210\u529F")},se.createElement(fn.Z,{title:"\u590D\u5236\u4EE3\u7801"},se.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},se.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Ft({width:Ot="100%",height:ft="100%",original:ct,modified:Ge,language:Ae,options:xe={}}){const je=(0,se.useRef)(),[Qe,Oe]=(0,se.useState)(null);function xt(nn){let Mn;return je.current&&(Mn=new Ce.Z(Zn=>{for(let li of Zn)(li.target.offsetHeight>0||li.target.offsetWidth>0)&&nn.layout()}),Mn.observe(je.current)),Mn}(0,se.useEffect)(()=>(je.current&&Promise.all([oe.e(8909),oe.e(9404)]).then(oe.bind(oe,2550)).then(nn=>{St=nn;const Mn=St.editor.createDiffEditor(je.current,Kn(An({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},xe),{wordWrap:!0}));Oe(Mn);let Zn=xt(Mn);return()=>{Mn.dispose();const li=Mn.getModel();li&&li.dispose(),Zn.unobserve(je.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,se.useEffect)(()=>{Qe&&Qe.setModel({original:St.editor.createModel(ct,Ae),modified:St.editor.createModel(Ge,Ae)})},[ct,Ge,Ae,Qe]);const hn=Gn(Ot),Pn=Gn(ft),wt={width:hn,height:Pn};return se.createElement("div",{className:"my-diff-editor",ref:je,style:wt})}},94606:function(_e,be,oe){"use strict";oe.d(be,{jL:function(){return De},w9:function(){return en},QD:function(){return Zn},cQ:function(){return Ve},op:function(){return xt},O5:function(){return Io},_b:function(){return lr},t7:function(){return ue},Gi:function(){return Nn},YG:function(){return Kn},qp:function(){return tt},vr:function(){return Mi},qE:function(){return wt},Je:function(){return Ne},wb:function(){return zt},cq:function(){return St},tp:function(){return ze}});var se=oe(59301),Ce={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},we="data:image/png;base64,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",De=({dataSource:Oi=[],img:on,imgWidth:ln=346,title:qt,sunTitle:Nt,bannerExtraContent:On})=>se.createElement("div",{className:Ce.banner},se.createElement("div",{className:Ce.content},se.createElement("aside",null,se.createElement("p",null,se.createElement("b",null,qt),se.createElement("span",null,Nt)),Oi.length>0&&se.createElement("div",{className:Ce.btns},Oi.map((Un,Vt)=>se.createElement("div",{key:Vt,onClick:Un.click},Un.name,Un.sign?se.createElement("img",{src:we,width:39}):null))),On),on&&se.createElement("img",{style:{marginTop:33,marginRight:38},src:on,width:ln}))),Ke={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},Ee=oe(92310),et=oe.n(Ee),Je=oe(89392),tt=({dataSource:Oi=[],value:on,onChange:ln,onTitleChange:qt,className:Nt,title:On,titleWidth:Un=41,style:Vt={},fontColor:yt="#6A7283",showCount:In})=>{const[zn,mi]=(0,se.useState)(0),[Rn,bt]=(0,se.useState)(!1),Ut=(0,se.useRef)(null),Ln=(0,se.useRef)(null);return(0,se.useEffect)(()=>{var ni;Oi.length!==0&&(((ni=Ut==null?void 0:Ut.current)==null?void 0:ni.clientHeight)>97?mi(1):mi(0)),Oi.length===0&&mi(0),bt(!1)},[Oi]),se.createElement("div",{className:et()(Ke.row,Nt),style:Vt},se.createElement("div",{onClick:(0,Je.throttle)(()=>qt==null?void 0:qt(),2e3),style:{width:Un,marginTop:Rn?12:4},className:`${Ke.title} ${qt?"current":""}`},On),se.createElement("div",{className:Rn?`${Ke.tagsWrap} ${Ke.tagsBorderWrap}`:Ke.tagsWrap},se.createElement("div",{className:Ke.bar,ref:Ln,style:zn>0?{height:zn===1?97:"auto",overflow:zn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},se.createElement("div",{className:Ke.tag,ref:Ut},Oi==null?void 0:Oi.map(ni=>se.createElement("span",{onClick:()=>ln(ni.id),key:ni.id,style:{color:yt},className:on===ni.id?Ke.active:""},se.createElement("span",{title:ni.name,className:Ke.name},ni.name),!!In&&se.createElement("span",{className:Ke.num},ni.count))))),!!zn&&se.createElement(se.Fragment,null,zn===1?se.createElement("div",{onClick:()=>{var ni;mi(2),((ni=Ut==null?void 0:Ut.current)==null?void 0:ni.clientHeight)>245?bt(!0):bt(!1)},className:Ke.action},"\u5C55\u5F00",se.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):se.createElement("div",{onClick:()=>{Ln.current.scrollTop=0,mi(1),bt(!1)},className:Ke.action},"\u6536\u8D77",se.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},ht={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},ze=({dataSource:Oi=[],value:on,onChange:ln,className:qt,style:Nt={}})=>se.createElement("div",{style:Nt,className:et()(ht.tabs,qt)},Oi.map(On=>se.createElement("span",{onClick:()=>ln(On.id),className:on===On.id?ht.active:"",key:On.id},On.name))),ee={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},ne=oe(92832),ue=({dataSource:Oi=[],value:on="",onChange:ln,onInputChange:qt=()=>{},className:Nt,style:On={},placeholder:Un,allowClear:Vt=!1})=>{var yt;const[In,zn]=(0,se.useState)(""),[mi,Rn]=(0,se.useState)("");(0,se.useEffect)(()=>{var Ln;let ni=on;(Ln=JSON.stringify(on))!=null&&Ln.includes("{")&&(zn(on.id),ni=on.value||"");try{Rn(decodeURIComponent(ni||""))}catch(Gt){Rn(decodeURIComponent(ni||""))}},[on]);const bt=()=>{ln(encodeURIComponent(mi),In||null)},Ut=Ln=>{Ln!==In&&(zn(Ln),ln(encodeURIComponent(mi),Ln))};return se.createElement("div",{className:et()(ee.input,Nt),style:On},!!Oi.length&&se.createElement("div",{className:ee.dropdown},se.createElement("div",{className:ee.text},(yt=Oi.find(Ln=>Ln.id===In))==null?void 0:yt.name,se.createElement("i",{className:"iconfont icon-zhankai4"}),se.createElement("b",{className:ee.b1}),se.createElement("b",{className:ee.b2})),se.createElement("div",{className:ee.menu},Oi.map((Ln,ni)=>se.createElement("div",{key:ni,onClick:()=>Ut(Ln.id)},Ln.name)))),se.createElement(ne.default,{onPressEnter:bt,value:mi,onChange:Ln=>{Rn(Ln.target.value),qt(encodeURIComponent(Ln.target.value),In||null)},bordered:!1,placeholder:Un}),se.createElement("i",{onClick:bt,className:"iconfont icon-sousuo9 font14 pl10 current"}))},me={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},Ne=({value:Oi,onChange:on,className:ln,total:qt,pageSize:Nt,style:On={}})=>{const Un=Oi<2,Vt=Oi>=Math.ceil(qt/Nt);return qt<=Nt?se.createElement(se.Fragment,null):se.createElement("div",{className:et()(me.quickPager,ln),style:On},se.createElement("div",{onClick:()=>{Un||on(Oi-1,"prev")},className:Un?me.disabled:""},"\u4E0A\u4E00\u9875"),se.createElement("div",{onClick:()=>{Vt||on(Oi+1,"next")},className:Vt?me.disabled:""},"\u4E0B\u4E00\u9875"))},ke={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},Te=oe(71418),We=oe(6848),$e=oe(39978),st=oe(10148),ut=oe(58130),Mt=oe(96908),nt=oe(57177),$t=oe(81378),Pt=oe(97267),zt=({className:Oi,dataSource:on=[],col:ln=4,right:qt,bottom:Nt=23,precision:On=0,wrapWidth:Un=1200,trackEventItems:Vt,loading:yt})=>{const In=Math.floor((Un-(ln-1)*qt)/ln);return se.createElement(Te.Z,{spinning:yt},se.createElement("div",{className:et()(ke.list,Oi)},!!on.length&&on.map((zn,mi)=>{const{name:Rn,id:bt,identifier:Ut,power:Ln,cover_image_id:ni,pic:Gt}=zn;return se.createElement("div",{className:ke.wrap,key:bt,style:{width:In,marginRight:(1+mi)%ln===0?0:qt+On,marginBottom:Nt}},se.createElement("a",{target:"_blank",href:`/shixuns/${Ut}/challenges`,className:ke.li,onClick:yn=>{yn.preventDefault(),Vt&&(0,ut.L9)([Vt]),Ln&&(0,ut.xg)(`/shixuns/${Ut}/challenges`)}},se.createElement("div",{className:ke.img},se.createElement("img",{className:ke.cover,src:`${Gt}`}),zn.is_jupyter&&se.createElement("img",{className:ke.sign,src:Mt}),zn.is_jupyter_lab&&se.createElement("img",{className:ke.sign,src:nt}),zn.is_unity_3d&&se.createElement("img",{className:ke.sign,src:$t})),se.createElement("div",{className:ke.name},se.createElement(We.Z,{title:Rn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},se.createElement("span",{className:ke.e},Rn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),se.createElement("div",{className:ke.tags},se.createElement(We.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},se.createElement("span",null,se.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),se.createElement("span",null,zn.challenges_count))),!!zn.myshixuns_count&&se.createElement(We.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},se.createElement("span",null,se.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),se.createElement("span",null,zn.myshixuns_count))),se.createElement(We.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},se.createElement("span",null,se.createElement("span",null,zn.level))),se.createElement("div",{className:ke.rate},se.createElement($e.Z,{allowHalf:!0,disabled:!0,defaultValue:zn.score_info}),se.createElement("span",null,"\xA0",zn.score_info?`${zn.score_info}\u5206`:"5\u5206")))),!Ln&&se.createElement("div",{className:ke.lockWrap},se.createElement("img",{src:`${st.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),se.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!on.length&&se.createElement(Pt.Z,null)))},Xt={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf"},fn=oe(2119),an=oe(59301),Ve=({className:Oi,dataSource:on=[],col:ln=4,right:qt,bottom:Nt=23,precision:On=0,wrapWidth:Un=1200,trackEventItems:Vt,loading:yt,onRemove:In=()=>{},isCurrent:zn=!0,showAlias:mi=!1})=>{const Rn=Math.floor((Un-(ln-1)*qt)/ln),bt=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return an.createElement(Te.Z,{spinning:yt},an.createElement("div",{className:et()(Xt.list,Oi)},!!(on!=null&&on.length)&&(on==null?void 0:on.map((Ut,Ln)=>{var ni;const{name:Gt,id:yn,identifier:Qt,featured:un,school_name:wn,image_url:gn,excellent:kn,is_plan:Bn}=Ut;return an.createElement("div",{key:yn,className:Xt.wrap,style:{width:Rn,marginRight:(1+Ln)%ln===0?0:qt+On,marginBottom:Nt}},an.createElement("a",{className:Xt.li,onClick:Vn=>{Vn.preventDefault(),Vn.stopPropagation(),Vt&&(0,ut.L9)([Vt]),(0,ut.xg)(`/paths/${Qt}`)}},an.createElement("div",{className:Xt.img},an.createElement("img",{className:Xt.cover,src:`${gn}`}),zn&&(0,fn.bg)()&&(Ut==null?void 0:Ut.studying)&&an.createElement("div",{className:`${Xt.movebq} user-path-items`,onClick:Vn=>{Vn.stopPropagation(),In(Ut)}},an.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),an.createElement("span",{className:"c-red"},"\u79FB\u9664")),(ni=Ut==null?void 0:Ut.subject_tags)==null?void 0:ni.map((Vn,Jn)=>{var Wn,gi;if(Jn===0){const ir=(Wn=bt.find(zi=>zi.name==Vn))==null?void 0:Wn.swimg;return an.createElement("img",{className:Xt.sign,src:ir,style:{left:"-4px"}})}const Fi=(gi=bt.find(ir=>ir.name==Vn))==null?void 0:gi.ptimg;return an.createElement("img",{className:Xt.sign,src:Fi,style:{left:`${48+52*(Jn-1)+2*Jn}px`}})}),an.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Ut==null?void 0:Ut.excellent)&&an.createElement("div",{className:Xt.bq},"\u5F00\u653E\u8BFE\u7A0B"))),an.createElement("div",{className:Xt.name},an.createElement(We.Z,{title:mi&&(Ut!=null&&Ut.excellent_alias_name)?an.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Gt}`,an.createElement("br",null),an.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Ut==null?void 0:Ut.excellent_alias_name}`)):Gt},an.createElement("span",{className:Xt.e},mi&&(Ut==null?void 0:Ut.excellent_alias_name)||Gt))),an.createElement(We.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${wn}`},an.createElement("div",{className:Xt.unit},an.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),wn)),an.createElement("div",{className:Xt.tags},an.createElement("div",null,an.createElement(We.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},an.createElement("span",null,an.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),an.createElement("span",null,Ut.stages_count))),an.createElement(We.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},an.createElement("span",null,an.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),an.createElement("span",null,Ut.members_count)))))))})),!on.length&&an.createElement(Pt.Z,null)))},gt={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},Bt="data:image/png;base64,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",sn=oe(59301),en=({className:Oi,dataSource:on=[],col:ln=4,right:qt,bottom:Nt=23,precision:On=0,wrapWidth:Un=1200,trackEventItems:Vt,loading:yt})=>{const In=Math.floor((Un-(ln-1)*qt)/ln);return sn.createElement(Te.Z,{spinning:yt},sn.createElement("div",{className:et()(gt.list,Oi)},!!on.length&&on.map((zn,mi)=>{const{subject_identifier:Rn,id:bt,identifier:Ut,power:Ln}=zn,ni=zn.is_public!=0&&zn.is_public;return sn.createElement("div",{className:gt.wrap,key:bt,style:{width:In,marginRight:(1+mi)%ln===0?0:qt+On,marginBottom:Nt}},sn.createElement("a",{className:gt.li,onClick:Gt=>{Gt.preventDefault(),Vt&&(0,ut.L9)([Vt]),(0,ut.xg)(zn.first_category_url)}},sn.createElement("div",{className:gt.top},sn.createElement(We.Z,{title:zn.name},sn.createElement("div",{className:gt.name},zn.name)),sn.createElement("img",{className:gt.img,src:st.Z.IMG_SERVER+"/images/"+zn.avatar_url}),sn.createElement("div",{className:gt.text,title:zn.creator},zn.creator),Rn&&sn.createElement("div",{className:gt.btns},sn.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),sn.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),ni&&sn.createElement("div",{className:gt.sign},"\u516C\u5F00")),sn.createElement("div",{className:gt.bottom},zn.visits>0&&sn.createElement(We.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},sn.createElement("span",null,sn.createElement("i",{className:"iconfont icon-liulanyan"}),sn.createElement("span",null,zn.visits))),zn.course_members_count>0&&sn.createElement(We.Z,{title:"\u6210\u5458",placement:"bottom"},sn.createElement("span",null,sn.createElement("i",{className:"iconfont icon-chengyuan"}),zn.course_members_count)),zn.tasks_count>0&&sn.createElement(We.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},sn.createElement("span",null,sn.createElement("i",{className:"iconfont icon-zuoye"}),zn.tasks_count)),zn.is_end?sn.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):sn.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!zn.is_accessible&&sn.createElement("div",{className:gt.lockWrap},sn.createElement("img",{src:`${st.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),sn.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!on.length&&sn.createElement(Pt.Z,null)))},En={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},ei=oe(42203),Kn=({dataSource:Oi=[],value:on,onChange:ln,className:qt,style:Nt={},tabBarExtraContent:On})=>se.createElement("div",{className:et()(En.tabs,qt),style:Nt},se.createElement("div",{className:En.tabsWrap},Oi.map((Un,Vt)=>se.createElement("aside",{className:En.tab,onClick:()=>{ln(Un.id),Un.link&&ei.history.push(Un.link)},key:Vt},se.createElement("div",{className:on===Un.id?En.active:""},Un.name),(Un==null?void 0:Un.resetCount)==null&&(Un==null?void 0:Un.total)!==void 0&&se.createElement("span",null,"\uFF08",Un==null?void 0:Un.total,"\uFF09"),(Un==null?void 0:Un.resetCount)!==void 0&&(Un==null?void 0:Un.total)!==void 0&&se.createElement(We.Z,{title:(Un==null?void 0:Un.tip)!=null?Un==null?void 0:Un.tip:""},se.createElement("span",{style:{color:"#9096A3"}},"\uFF08",se.createElement("span",{style:{color:"#000"}},Un==null?void 0:Un.resetCount),"/",se.createElement("span",null,Un==null?void 0:Un.total),"\uFF09"))))),se.createElement("div",{className:En.tabBar},On)),Nn=({className:Oi,style:on={},children:ln})=>se.createElement("div",{className:et()(Oi),style:on},ln),Gn={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},ii=oe(38854),Sn=oe(20834);const Yt=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var St=({sortValue:Oi,dropValue:on,className:ln,onSort:qt,onDrop:Nt,dataSource:On=Yt})=>{var Un;return se.createElement("div",{className:et()(Gn.orderWrap,ln)},se.createElement(ii.Z,{dropdownRender:()=>se.createElement(Sn.default,null,On.map((Vt,yt)=>se.createElement(Sn.default.Item,{key:yt,onClick:()=>Nt(Vt.id)},Vt.name)))},se.createElement("span",{className:Gn.orderTextWrap},(Un=On.find(Vt=>on===Vt.id))==null?void 0:Un.name)),se.createElement("span",{className:Gn.orderIconWrap},se.createElement("span",{className:Gn.orderAsc},se.createElement("i",{className:Oi==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Gn.cursorPointer} ${Gn.active}`:`iconfont icon-sanjiaoxing-up font12 ${Gn.cursorPointer}`,onClick:()=>qt(Oi==="asc"?"desc":"asc")})),se.createElement("span",{className:Gn.orderDesc},se.createElement("i",{className:Oi==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Gn.cursorPointer} ${Gn.active}`:`iconfont icon-sanjiaoxing-down font12 ${Gn.cursorPointer}`,onClick:()=>qt(Oi==="asc"?"desc":"asc")}))))},rt={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},Ft=oe(3113),Ot=Object.defineProperty,ft=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,Ae=(Oi,on,ln)=>on in Oi?Ot(Oi,on,{enumerable:!0,configurable:!0,writable:!0,value:ln}):Oi[on]=ln,xe=(Oi,on)=>{for(var ln in on||(on={}))ct.call(on,ln)&&Ae(Oi,ln,on[ln]);if(ft)for(var ln of ft(on))Ge.call(on,ln)&&Ae(Oi,ln,on[ln]);return Oi},je=(Oi,on)=>{var ln={};for(var qt in Oi)ct.call(Oi,qt)&&on.indexOf(qt)<0&&(ln[qt]=Oi[qt]);if(Oi!=null&&ft)for(var qt of ft(Oi))on.indexOf(qt)<0&&Ge.call(Oi,qt)&&(ln[qt]=Oi[qt]);return ln},Qe=(Oi,on,ln)=>new Promise((qt,Nt)=>{var On=yt=>{try{Vt(ln.next(yt))}catch(In){Nt(In)}},Un=yt=>{try{Vt(ln.throw(yt))}catch(In){Nt(In)}},Vt=yt=>yt.done?qt(yt.value):Promise.resolve(yt.value).then(On,Un);Vt((ln=ln.apply(Oi,on)).next())}),xt=Oi=>{var on=Oi,{className:ln,style:qt,children:Nt,loading:On=!1,openLoading:Un,onClick:Vt=()=>{},size:yt="middle",shape:In="round"}=on,zn=je(on,["className","style","children","loading","openLoading","onClick","size","shape"]);const[mi,Rn]=(0,se.useState)(!1);return se.createElement(Ft.ZP,xe({onClick:(0,Je.throttle)(bt=>Qe(void 0,null,function*(){Un&&Rn(!0);try{yield Vt(bt)}catch(Ut){console.log("error",Ut)}Un&&Rn(!1)}),2e3,{leading:!0,trailing:!1}),className:et()(rt.btn,rt[`${yt}-${In}`],ln),style:qt,size:yt,shape:In,loading:mi||On},zn),Nt)},hn={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},wt=({className:Oi,style:on,children:ln=null,onClick:qt,title:Nt})=>se.createElement("div",{className:et()(hn.head,Oi),style:on},se.createElement("span",{className:"primary-hover",onClick:qt},se.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),se.createElement("b",{title:Nt},Nt),se.createElement("div",{className:hn.node},ln)),nn={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},Zn=({confirmShow:Oi=!0,confirmTitle:on,confirmClick:ln,cancelShow:qt=!0,cancelTitle:Nt,cancelClick:On,className:Un,style:Vt,confirmLoading:yt=!1})=>se.createElement("div",{className:et()(nn.btns,Un),style:Vt},Oi&&se.createElement(Ft.ZP,{loading:yt,onClick:ln,type:"primary",className:nn.confirm},on),qt&&se.createElement(Ft.ZP,{onClick:On,className:nn.cancel},Nt)),li={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},Mi=({className:Oi,style:on={},LeftContent:ln,children:qt,RightContent:Nt})=>se.createElement("div",{className:et()(li.fixedBottom,Oi),style:on},se.createElement("div",{className:li.wrap},se.createElement("div",{className:li.left},ln),se.createElement("div",{className:li.center},qt),se.createElement("div",{className:li.right},Nt))),Si={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},lr=({className:Oi,style:on={},dataSource:ln=[]})=>se.createElement("div",{className:et()(Si.crumbs,Oi),style:on},ln.map((qt,Nt)=>Nt<ln.length-1?se.createElement(se.Fragment,{key:Nt},qt.path||qt.onClick?se.createElement("span",{className:Si.hover,onClick:qt!=null&&qt.onClick?qt.onClick:()=>ei.history.push(qt.path)},qt.name):se.createElement("span",null,qt.name),se.createElement("span",null,"\xA0",">","\xA0")):se.createElement("span",{key:Nt,style:{color:"#5F6368"}},qt.name))),dr=oe(31797),ur=Object.defineProperty,Sr=Object.defineProperties,Wr=Object.getOwnPropertyDescriptors,Gi=Object.getOwnPropertySymbols,Zr=Object.prototype.hasOwnProperty,Yi=Object.prototype.propertyIsEnumerable,Ue=(Oi,on,ln)=>on in Oi?ur(Oi,on,{enumerable:!0,configurable:!0,writable:!0,value:ln}):Oi[on]=ln,no=(Oi,on)=>{for(var ln in on||(on={}))Zr.call(on,ln)&&Ue(Oi,ln,on[ln]);if(Gi)for(var ln of Gi(on))Yi.call(on,ln)&&Ue(Oi,ln,on[ln]);return Oi},pr=(Oi,on)=>Sr(Oi,Wr(on)),fo=(Oi,on)=>{var ln={};for(var qt in Oi)Zr.call(Oi,qt)&&on.indexOf(qt)<0&&(ln[qt]=Oi[qt]);if(Oi!=null&&Gi)for(var qt of Gi(Oi))on.indexOf(qt)<0&&Yi.call(Oi,qt)&&(ln[qt]=Oi[qt]);return ln};const{Countdown:Fo}=dr.default;var Io=Oi=>{var on=Oi,{onChange:ln}=on,qt=fo(on,["onChange"]);const[Nt,On]=(0,se.useState)(null);(0,se.useEffect)(()=>{typeof Nt=="number"&&Nt>=0&&ln(Nt)},[Nt]);const Un=Vt=>{const yt=Math.floor(Vt/1e3);On(yt)};return se.createElement(Fo,pr(no({},qt),{onChange:Un}))}},91300:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return Ce}});var se=oe(59301);function Ce(we,Ie){const De=(0,se.useRef)();(0,se.useEffect)(()=>{De.current=we}),(0,se.useEffect)(()=>{function Ke(){De.current()}if(Ie!==null){let Ee=setInterval(Ke,Ie);return()=>clearInterval(Ee)}},[Ie])}},28716:function(_e,be,oe){"use strict";oe.r(be),oe.d(be,{default:function(){return ed}});var se=oe(59301),Ce=oe(42203),we=oe(78241),Ie=oe(43418),De=oe(8591),Ke=oe(3113),Ee=oe(38854),et=oe(6848),Je=oe(99313),Ye=oe(71418),tt=oe(24905),ht=oe(2595),kt=oe(92832),ze=oe(2307),ee=oe(70635),ne=oe(23469),ge=oe(86766),ue=oe(79646),me=oe(61186),Se=oe.n(me),Ne=oe(10148),ke=oe(32583),Te=oe(88897),We=Object.defineProperty,$e=Object.getOwnPropertySymbols,st=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable,Mt=(Xn,bn,_t)=>bn in Xn?We(Xn,bn,{enumerable:!0,configurable:!0,writable:!0,value:_t}):Xn[bn]=_t,nt=(Xn,bn)=>{for(var _t in bn||(bn={}))st.call(bn,_t)&&Mt(Xn,_t,bn[_t]);if($e)for(var _t of $e(bn))ut.call(bn,_t)&&Mt(Xn,_t,bn[_t]);return Xn},$t=(Xn,bn,_t)=>new Promise((Ao,ta)=>{var sa=jr=>{try{Jr(_t.next(jr))}catch(rr){ta(rr)}},Vr=jr=>{try{Jr(_t.throw(jr))}catch(rr){ta(rr)}},Jr=jr=>jr.done?Ao(jr.value):Promise.resolve(jr.value).then(sa,Vr);Jr((_t=_t.apply(Xn,bn)).next())});const Pt=({shixunHomeworks:Xn,dispatch:bn})=>{const _t=(0,Ce.useParams)(),[Ao,ta]=(0,se.useState)(!0),[sa]=we.default.useForm();return se.createElement(se.Fragment,null,se.createElement(Ie.default,{centered:!0,title:"\u8C03\u5206",open:Xn.actionTabs.key==="\u8C03\u5206",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>$t(void 0,null,function*(){yield sa.validateFields();const Vr=sa.getFieldsValue();(yield(0,ee.ZP)(`/api/student_works/${Xn.actionTabs.id}/adjust_score.json`,{method:"post",body:nt({},Vr)})).status===0&&(De.ZP.success("\u8BC4\u9605\u6210\u529F"),sa.resetFields(),bn({type:"shixunHomeworks/setActionTabs",payload:{}}),bn({type:"shixunHomeworks/getStudentWorkCommon",payload:nt({},_t)}))}),onCancel:()=>{bn({type:"shixunHomeworks/setActionTabs",payload:{}})}},se.createElement("p",{className:"tc"},"\u8BE5\u5B66\u751F\u7684\u6700\u7EC8\u6210\u7EE9\u5C06\u4E0D\u4F1A\u6309\u7167\u8BC4\u5206\u89C4\u5219\u8FDB\u884C\u8BA1\u7B97"),se.createElement(we.default,{form:sa,layout:"horizontal"},se.createElement("div",{style:{display:"flex",alignItems:"baseline"}},se.createElement(we.default.Item,{label:"\u6210\u7EE9",name:"score",rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}]},se.createElement(Te.Z,{min:0,placeholder:"\u8BF7\u586B\u5199\u5206\u6570"})),se.createElement("span",{className:"ml10"},"\u5206")),se.createElement("div",null,se.createElement(we.default.Item,{name:"comment"},se.createElement(kt.default.TextArea,{placeholder:"\u8BF7\u586B\u5199\u60A8\u5BF9\u4F5C\u54C1\u8C03\u5206\u7684\u539F\u56E0",rows:8}))))))};var dn=(0,Ce.connect)(({shixunHomeworks:Xn})=>({shixunHomeworks:Xn}))(Pt),zt={flex_box_center:"flex_box_center___tMwax",flex_space_between:"flex_space_between___8GJsg",flex_box_vertical_center:"flex_box_vertical_center___IFELt",flex_box_center_end:"flex_box_center_end___IrFRG",flex_box_column:"flex_box_column___s0LgG",TabsStyle:"TabsStyle___r0bwM",bg:"bg___sFhaA",title:"title___bk4oD",nextComment:"nextComment___NmNBo",modal:"modal___tWPO8",MdEditor:"MdEditor___AAxeb",ratewarp:"ratewarp___NGrsd",item:"item___Le8W0",total:"total___MNh4V",a1:"a1___g1iJT",a2:"a2___h8k2X",a3:"a3___yk1km",export_type_modal_title:"export_type_modal_title___nMqX0",export_type_modal:"export_type_modal___dbFVU",export_type_modal_con:"export_type_modal_con___ujWeL",type_item:"type_item___oF9R5",type_item_active:"type_item_active___dfBaM",export_type_modal_waring:"export_type_modal_waring___k8RaP",ReviewStyle:"ReviewStyle___o5d5N",left_content:"left_content___Tdt77",left_title:"left_title___V11QV",see_work:"see_work___HAfMs",left_list:"left_list___sXmxX",list_title:"list_title___NmWRs",list_box:"list_box___nK01J",list_item:"list_item___rrWl_",item_img:"item_img___yMYSc",item_content:"item_content___ZJr_4",item_name:"item_name___PkA99",item_code:"item_code___g13cU",item_states:"item_states___Rwb1r",center_top:"center_top___hgoJF",center_top_title:"center_top_title___rVfnl",center_top_content:"center_top_content___Wfmlt",work_score:"work_score___sJRnv",work_img:"work_img___p6zO4",work_button:"work_button___NDoqh",pingyue:"pingyue___PDoT9",pingyue_title:"pingyue_title___Wsqbg",pingyue_score:"pingyue_score___kvMiC",pingyue_teacher_title:"pingyue_teacher_title___lyJ0m",top_content:"top_content___mJifP",top_content_img:"top_content_img___vbTWm",item_tags:"item_tags___K9Qrr",daochu:"daochu___WdJvT",foldClose:"foldClose___DQSiP",foldOpen:"foldOpen___J18go",ScoreDetailsBase:"ScoreDetailsBase___UG7u2",btnAdd:"btnAdd___GCat1",buttonStyle:"buttonStyle___jWXWa",hiddenBar:"hiddenBar___ZRZYH"},Xt=oe(25711),fn=oe(89392),an=oe(57203),it=oe(59301),Ve=Object.defineProperty,gt=Object.defineProperties,Bt=Object.getOwnPropertyDescriptors,sn=Object.getOwnPropertySymbols,It=Object.prototype.hasOwnProperty,en=Object.prototype.propertyIsEnumerable,En=(Xn,bn,_t)=>bn in Xn?Ve(Xn,bn,{enumerable:!0,configurable:!0,writable:!0,value:_t}):Xn[bn]=_t,ei=(Xn,bn)=>{for(var _t in bn||(bn={}))It.call(bn,_t)&&En(Xn,_t,bn[_t]);if(sn)for(var _t of sn(bn))en.call(bn,_t)&&En(Xn,_t,bn[_t]);return Xn},An=(Xn,bn)=>gt(Xn,Bt(bn)),Kn=(Xn,bn,_t)=>new Promise((Ao,ta)=>{var sa=jr=>{try{Jr(_t.next(jr))}catch(rr){ta(rr)}},Vr=jr=>{try{Jr(_t.throw(jr))}catch(rr){ta(rr)}},Jr=jr=>jr.done?Ao(jr.value):Promise.resolve(jr.value).then(sa,Vr);Jr((_t=_t.apply(Xn,bn)).next())});const jt=({classroomList:Xn,loading:bn,dispatch:_t,studentWorkDetail:Ao})=>{const ta=(0,Ce.useParams)(),[sa]=we.default.useForm(),Vr=()=>Kn(void 0,null,function*(){var Jr;yield sa.validateFields();const jr=ei({},sa.getFieldValue()),{selectArrs:rr}=Xn.actionTabs;jr.attachment_ids=(Jr=jr.attachment_ids)==null?void 0:Jr.map(Na=>Na.response.id),(yield(0,ke.mz)(An(ei({},jr),{homeworkId:rr.work_id}))).status===0&&(sa.resetFields(),_t({type:"shixunHomeworks/getStudentWorkSupplyDetail",payload:ei({},Xn.actionTabs.params)}),_t({type:"classroomList/setActionTabs",payload:{}}))});return it.createElement(Ie.default,{centered:!0,title:"\u8865\u4EA4\u9644\u4EF6",open:Xn.actionTabs.key==="\u8865\u4EA4\u9644\u4EF6",bodyStyle:{minHeight:200},onOk:()=>Kn(void 0,null,function*(){if(Ao!=null&&Ao.can_submit){if(!(Ao!=null&&Ao.submit_size)){De.ZP.warning("\u60A8\u7684\u4F5C\u54C1\u63D0\u4EA4\u673A\u4F1A\u5DF2\u7528\u5B8C\u3002\u5982\u9700\u7EE7\u7EED\u4FEE\u6539\uFF0C\u8BF7\u8054\u7CFB\u6307\u5BFC\u8001\u5E08\u6216\u5E73\u53F0\u8FD0\u8425\u3002");return}Ie.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,width:472,content:it.createElement(it.Fragment,null,"\u4F60\u8FD8\u6709 ",it.createElement("span",{className:"ml5 mr5",style:{color:"#DF711C"}},Ao==null?void 0:Ao.submit_size)," \u6B21\u63D0\u4EA4\u673A\u4F1A\u3002\u786E\u8BA4\u63D0\u4EA4\u540E\uFF0C\u4E0A\u4E00\u6B21\u7684\u63D0\u4EA4\u8BB0\u5F55\u4F1A\u88AB\u8986\u76D6\u3002\u8BF7\u6CE8\u610F\uFF0C\u5230\u8FBE\u89C4\u5B9A\u7684\u63D0\u4EA4\u6B21\u6570\u540E\u5C06\u4E0D\u53EF\u518D\u6B21\u63D0\u4EA4\uFF0C\u786E\u5B9A\u662F\u5426\u63D0\u4EA4\uFF1F"),onOk:()=>{Vr()}});return}Vr()}),onCancel:()=>{sa.resetFields(),_t({type:"classroomList/setActionTabs",payload:{}})}},it.createElement(we.default,{form:sa,initialValues:{}},it.createElement(we.default.Item,{name:"attachment_ids",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u9644\u4EF6"}]},it.createElement(an.Z,null)),it.createElement(we.default.Item,{name:"description"},it.createElement(kt.default.TextArea,{placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u8865\u4EA4\u9644\u4EF6\u7684\u539F\u56E0\uFF0C\u6700\u5927\u9650\u5236100\u4E2A\u5B57\u7B26",rows:7}))))};var Nn=(0,Ce.connect)(({classroomList:Xn,loading:bn})=>({classroomList:Xn,loading:bn}))(jt),Gn=oe(58130),ii=oe(2119),Sn=oe(44965),Yt=oe(99372),Zt=oe(35427),St=oe(97267),rt=oe(91740),Ft=oe(95237),Ot=oe(43604),ft=oe(37906),ct={pinfen:"pinfen____hgN7",left:"left___ZyTXs",right:"right___OSPEM",tagStyleSzz:"tagStyleSzz___fzxbk",headpic:"headpic___d7fnl",new_style_box:"new_style_box___XOWhi",box_child:"box_child___uYxgt",box_item_top:"box_item_top___MohWv",yichang:"yichang___ppIPI",text_style:"text_style___V3FT_",text_style_red:"text_style_red___reUfY"},Ge=oe(64542),Ae=oe(93461),xe=oe(29399),je=Object.defineProperty,Qe=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable,hn=(Xn,bn,_t)=>bn in Xn?je(Xn,bn,{enumerable:!0,configurable:!0,writable:!0,value:_t}):Xn[bn]=_t,Pn=(Xn,bn)=>{for(var _t in bn||(bn={}))Oe.call(bn,_t)&&hn(Xn,_t,bn[_t]);if(Qe)for(var _t of Qe(bn))xt.call(bn,_t)&&hn(Xn,_t,bn[_t]);return Xn};const wt=Xn=>React.createElement("svg",Pn({width:14,height:13,xmlns:"http://www.w3.org/2000/svg"},Xn),React.createElement("title",null,"\u661F\u5F62"),React.createElement("path",{d:"m7 10.5-4.114 2.163.785-4.581L.343 4.837l4.6-.669L7 0l2.057 4.168 4.6.669-3.328 3.245.785 4.581z",fill:"#FA6400",fillRule:"evenodd"}));var nn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTcgMTAuNS00LjExNCAyLjE2My43ODUtNC41ODFMLjM0MyA0LjgzN2w0LjYtLjY2OUw3IDBsMi4wNTcgNC4xNjggNC42LjY2OS0zLjMyOCAzLjI0NS43ODUgNC41ODF6IiBmaWxsPSIjRkE2NDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=",Mn=Object.defineProperty,Zn=Object.getOwnPropertySymbols,li=Object.prototype.hasOwnProperty,xi=Object.prototype.propertyIsEnumerable,Mi=(Xn,bn,_t)=>bn in Xn?Mn(Xn,bn,{enumerable:!0,configurable:!0,writable:!0,value:_t}):Xn[bn]=_t,Si=(Xn,bn)=>{for(var _t in bn||(bn={}))li.call(bn,_t)&&Mi(Xn,_t,bn[_t]);if(Zn)for(var _t of Zn(bn))xi.call(bn,_t)&&Mi(Xn,_t,bn[_t]);return Xn};const Ri=Xn=>React.createElement("svg",Si({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},Xn),React.createElement("title",null,"\u62A5\u544A"),React.createElement("path",{d:"M3.629 14a2.38 2.38 0 0 1-2.373-2.373V4.311a.057.057 0 0 0-.06-.06H.564A.542.542 0 0 1 0 3.737V1.691C0 .76.81 0 1.81 0h8.868c.999 0 1.809.81 1.81 1.81v7.563a.057.057 0 0 0 .059.06h1.997a.557.557 0 0 1 .563.563v2.185a1.81 1.81 0 0 1-1.809 1.81L3.628 14Zm8.927-3.56a.057.057 0 0 0-.059.06v1.69a.81.81 0 0 0 1.622 0V10.5a.057.057 0 0 0-.06-.06h-1.503ZM2.314 4.252a.057.057 0 0 0-.06.06v7.306a1.377 1.377 0 0 0 1.375 1.375h7.959c.02 0 .04-.012.049-.03a.063.063 0 0 0 0-.06 1.814 1.814 0 0 1-.148-.721V1.819a.81.81 0 0 0-1.622 0v1.918a.536.536 0 0 1-.563.514h-6.99Zm-.505-3.243c-.445 0-.81.307-.81.683v1.502a.058.058 0 0 0 .059.06h7.741a.057.057 0 0 0 .06-.06V1.82c0-.248.05-.494.148-.722.01-.02 0-.04 0-.059a.054.054 0 0 0-.05-.03H1.81Zm2.314 9.462a.504.504 0 1 1 0-1.008H9.62a.504.504 0 1 1 0 1.008H4.123Zm0-2.689a.504.504 0 0 1 0-1.008H9.62a.504.504 0 1 1 0 1.008H4.123Z",fill:"#3061D0",fillRule:"nonzero"}));var lr="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTMuNjI5IDE0YTIuMzggMi4zOCAwIDAgMS0yLjM3My0yLjM3M1Y0LjMxMWEuMDU3LjA1NyAwIDAgMC0uMDYtLjA2SC41NjRBLjU0Mi41NDIgMCAwIDEgMCAzLjczN1YxLjY5MUMwIC43Ni44MSAwIDEuODEgMGg4Ljg2OGMuOTk5IDAgMS44MDkuODEgMS44MSAxLjgxdjcuNTYzYS4wNTcuMDU3IDAgMCAwIC4wNTkuMDZoMS45OTdhLjU1Ny41NTcgMCAwIDEgLjU2My41NjN2Mi4xODVhMS44MSAxLjgxIDAgMCAxLTEuODA5IDEuODFMMy42MjggMTRabTguOTI3LTMuNTZhLjA1Ny4wNTcgMCAwIDAtLjA1OS4wNnYxLjY5YS44MS44MSAwIDAgMCAxLjYyMiAwVjEwLjVhLjA1Ny4wNTcgMCAwIDAtLjA2LS4wNmgtMS41MDNaTTIuMzE0IDQuMjUyYS4wNTcuMDU3IDAgMCAwLS4wNi4wNnY3LjMwNmExLjM3NyAxLjM3NyAwIDAgMCAxLjM3NSAxLjM3NWg3Ljk1OWMuMDIgMCAuMDQtLjAxMi4wNDktLjAzYS4wNjMuMDYzIDAgMCAwIDAtLjA2IDEuODE0IDEuODE0IDAgMCAxLS4xNDgtLjcyMVYxLjgxOWEuODEuODEgMCAwIDAtMS42MjIgMHYxLjkxOGEuNTM2LjUzNiAwIDAgMS0uNTYzLjUxNGgtNi45OVptLS41MDUtMy4yNDNjLS40NDUgMC0uODEuMzA3LS44MS42ODN2MS41MDJhLjA1OC4wNTggMCAwIDAgLjA1OS4wNmg3Ljc0MWEuMDU3LjA1NyAwIDAgMCAuMDYtLjA2VjEuODJjMC0uMjQ4LjA1LS40OTQuMTQ4LS43MjIuMDEtLjAyIDAtLjA0IDAtLjA1OWEuMDU0LjA1NCAwIDAgMC0uMDUtLjAzSDEuODFabTIuMzE0IDkuNDYyYS41MDQuNTA0IDAgMSAxIDAtMS4wMDhIOS42MmEuNTA0LjUwNCAwIDEgMSAwIDEuMDA4SDQuMTIzWm0wLTIuNjg5YS41MDQuNTA0IDAgMCAxIDAtMS4wMDhIOS42MmEuNTA0LjUwNCAwIDEgMSAwIDEuMDA4SDQuMTIzWiIgZmlsbD0iIzMwNjFEMCIgZmlsbC1ydWxlPSJub256ZXJvIi8+PC9zdmc+";const dr=({handleCloseOrOpenModal:Xn,dataInfo:bn,isShowButton:_t=!0,className:Ao=""})=>{const ta=()=>{if(bn!=null&&bn.teacher_score&&(bn==null?void 0:bn.teacher_score)>=0)return se.createElement(se.Fragment,null,"\u6559\u5E08\u8BC4\u5206",se.createElement("span",{style:{color:"#CA7720"}},bn==null?void 0:bn.teacher_score));if(bn!=null&&bn.teaching_asistant_score&&(bn==null?void 0:bn.teaching_asistant_score)>=0)return se.createElement(se.Fragment,null,"\u52A9\u6559\u8BC4\u5206",se.createElement("span",{style:{color:"#CA7720"}},bn==null?void 0:bn.teaching_asistant_score));if(bn!=null&&bn.student_score&&(bn==null?void 0:bn.student_score)>=0)return se.createElement(se.Fragment,null,"\u533F\u8BC4\u8BC4\u5206",se.createElement("span",{style:{color:"#CA7720"}},bn==null?void 0:bn.student_score))};return se.createElement(se.Fragment,null,se.createElement("div",{className:`${zt.work_score} ${Ao}`},se.createElement("div",{style:{color:"#191919",fontWeight:600}},"\u4F5C\u4E1A\u5F97\u5206"),se.createElement("div",{className:zt.work_img},se.createElement("div",{style:{height:"40px",lineHeight:"50px",fontSize:"24px",color:"#009C0F",fontWeight:600}},(bn==null?void 0:bn.work_score)||"--",se.createElement("span",{style:{fontSize:"14px"}},"\u5206")),se.createElement("div",{style:{fontSize:"12px",color:"#666666"}},"\u6700\u7EC8\u6210\u7EE9")),se.createElement("img",{src:nn}),se.createElement("div",{style:{marginLeft:"10px",width:_t?"59%":"77%"}},"\u8BA1\u7B97\u89C4\u5219",se.createElement(et.Z,{title:se.createElement("span",{className:"font14"},"\u5728\u591A\u9879\u8BC4\u5206\u5360\u6BD4\u8BBE\u7F6E\u4E2D\uFF0C\u82E5\u67D0\u9879\u8BC4\u5206\u7F3A\u5931\uFF0C\u5176\u5360\u6BD4\u5C06\u7531\u5176\u4ED6\u5DF2\u8BC4\u5206\u9879\u5E73\u5206\uFF1B\u82E5\u4E24\u9879\u8BC4\u5206\u7F3A\u5931\uFF0C\u5219\u552F\u4E00\u5DF2\u8BC4\u5206\u9879\u5C06\u5360100%\u7684\u6BD4\u91CD\u3002")},se.createElement("i",{className:"iconfont icon-tishixiaowenhao ml5 mr5 font14 c-grey-999 current",style:{lineHeight:"18px"}})),"=",bn!=null&&bn.final_mode?ta():se.createElement(se.Fragment,null,"\u6559\u5E08\u8BC4\u5206",se.createElement("span",{style:{color:"#CA7720"}},(bn==null?void 0:bn.teacher_score)||"--","*",bn==null?void 0:bn.te_proportion),"+\u52A9\u6559\u8BC4\u5206",se.createElement("span",{style:{color:"#CA7720"}},(bn==null?void 0:bn.teaching_asistant_score)||"--","*",bn==null?void 0:bn.ta_proportion),"+\u533F\u8BC4\u8BC4\u5206",se.createElement("span",{style:{color:"#CA7720"}},(bn==null?void 0:bn.student_score)||"--","*",bn==null?void 0:bn.st_proportion)),"-\u6263\u5206\u9879 (\u8865\u4EA4\u6263\u5206",se.createElement("span",{style:{color:"#CA7720"}},bn==null?void 0:bn.late_penalty),"+\u67E5\u91CD\u6263\u5206",se.createElement("span",{style:{color:"#CA7720"}},bn==null?void 0:bn.repeat_minus_score),"+\u7F3A\u8BC4\u6263\u5206",se.createElement("span",{style:{color:"#CA7720"}},bn==null?void 0:bn.absence_penalty),")"),_t&&se.createElement("div",{className:zt.work_button,onClick:()=>{Xn({key:"\u5F97\u5206\u8BE6\u60C5"})}},se.createElement("img",{src:lr,style:{marginRight:"5px"}}),"\u67E5\u770B\u5F97\u5206\u8BE6\u60C5")))};var ur=(0,Ce.connect)(({shixunHomeworks:Xn})=>({shixunHomeworks:Xn}))(dr),Sr=Object.defineProperty,Wr=Object.defineProperties,Gi=Object.getOwnPropertyDescriptors,Zr=Object.getOwnPropertySymbols,Yi=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,no=(Xn,bn,_t)=>bn in Xn?Sr(Xn,bn,{enumerable:!0,configurable:!0,writable:!0,value:_t}):Xn[bn]=_t,pr=(Xn,bn)=>{for(var _t in bn||(bn={}))Yi.call(bn,_t)&&no(Xn,_t,bn[_t]);if(Zr)for(var _t of Zr(bn))Ue.call(bn,_t)&&no(Xn,_t,bn[_t]);return Xn},fo=(Xn,bn)=>Wr(Xn,Gi(bn)),Fo=(Xn,bn)=>{var _t={};for(var Ao in Xn)Yi.call(Xn,Ao)&&bn.indexOf(Ao)<0&&(_t[Ao]=Xn[Ao]);if(Xn!=null&&Zr)for(var Ao of Zr(Xn))bn.indexOf(Ao)<0&&Ue.call(Xn,Ao)&&(_t[Ao]=Xn[Ao]);return _t},Vo=(Xn,bn,_t)=>new Promise((Ao,ta)=>{var sa=jr=>{try{Jr(_t.next(jr))}catch(rr){ta(rr)}},Vr=jr=>{try{Jr(_t.throw(jr))}catch(rr){ta(rr)}},Jr=jr=>jr.done?Ao(jr.value):Promise.resolve(jr.value).then(sa,Vr);Jr((_t=_t.apply(Xn,bn)).next())});const Io=({shixunHomeworks:Xn,loading:bn,user:_t,globalSetting:Ao})=>({shixunHomeworks:Xn,loading:bn.effects,user:_t,globalSetting:Ao}),Oi=Xn=>{var bn=Xn,{ModalProps:_t={},shixunHomeworks:Ao,user:ta}=bn,sa=Fo(bn,["ModalProps","shixunHomeworks","user"]),Vr,Jr;const[jr]=we.default.useForm(),rr=(0,Ce.useParams)(),{userInfo:ro={}}=ta,[,Na,Ia,Ho]=(0,Zt.U)(ke.Yn,{homeworkId:rr==null?void 0:rr.userId}),[,Bo,rl,Bs]=(0,Zt.U)(ke.Am,{homeworkId:rr==null?void 0:rr.userId}),[,ka,Nl]=(0,Zt.U)(ke.QC,{userId:rr==null?void 0:rr.userId}),[js,$s]=(0,se.useState)({page:1,limit:10}),[fr,va]=(0,se.useState)(!1),Wt=[{title:"\u8BC4\u9605\u4EBA\u59D3\u540D",dataIndex:"user_name",ellipsis:!0,width:100,render:Ns=>se.createElement(et.Z,{title:Ns},se.createElement("span",null,Ns))},{title:"\u8BC4\u5206",dataIndex:"score",width:80},{title:"\u8BC4\u8BED",dataIndex:"content",ellipsis:!0,render:Ns=>se.createElement(et.Z,{title:Ns},se.createElement("span",null,Ns))},{title:"\u63D0\u4EA4\u4F5C\u4E1A\u7248\u672C",dataIndex:"student_work_num",width:110,render:(Ns,ps)=>{var cl;return se.createElement("a",{style:{color:Ns===((cl=Ho==null?void 0:Ho.data)==null?void 0:cl.max_student_work_num)?"#1B8565":"#FA6400"},target:"_blank",href:`/classrooms/${rr==null?void 0:rr.coursesId}/common_homework/${rr==null?void 0:rr.categoryId}/review/${ps==null?void 0:ps.student_work_id}?history_id=${ps==null?void 0:ps.history_id}`},"\u7B2C ",Ns," \u6B21")}},{title:"\u64CD\u4F5C",dataIndex:"comment_id",width:150,render:(Ns,ps)=>se.createElement("div",{className:"flex item-center gap-20px"},(ps==null?void 0:ps.user_login)===(ro==null?void 0:ro.login)&&se.createElement("a",{onClick:()=>{var cl;jr.setFieldsValue(fo(pr({},ps),{comment:ps==null?void 0:ps.content,score_details:((cl=ps==null?void 0:ps.score_details)==null?void 0:cl.map(Os=>pr({},Os)))||[]})),va(!0)}},"\u7F16\u8F91"),se.createElement("a",{target:"_blank",href:`/classrooms/${rr==null?void 0:rr.coursesId}/common_homework/${rr==null?void 0:rr.categoryId}/review/${ps==null?void 0:ps.student_work_id}?history_id=${ps==null?void 0:ps.history_id}`},"\u67E5\u770B"),(ps==null?void 0:ps.user_login)===(ro==null?void 0:ro.login)&&se.createElement("a",{className:"current-delete-hover",onClick:()=>{di(ps)}},"\u5220\u9664"))}],di=(Ns={})=>{Ie.default.confirm({title:"\u662F\u5426\u786E\u8BA4\u5220\u9664?",centered:!0,onOk:()=>Vo(void 0,null,function*(){(yield Nl({score_id:Ns==null?void 0:Ns.comment_id})).status===0&&(De.ZP.success("\u5220\u9664\u6210\u529F"),$s({page:1,limit:10}),va(!1))})})};return(0,se.useEffect)(()=>{_t!=null&&_t.open&&Ia(pr({homeworkId:rr==null?void 0:rr.userId},js))},[js,_t==null?void 0:_t.open]),se.createElement(se.Fragment,null,se.createElement(Ie.default,pr({},pr({title:"\u5386\u53F2\u8BC4\u9605\u8BB0\u5F55",centered:!0,width:800},_t)),se.createElement(ht.default,{className:"mt10",loading:Na,columns:Wt,locale:{emptyText:se.createElement(St.Z,null)},dataSource:((Vr=Ho==null?void 0:Ho.data)==null?void 0:Vr.list)||[],pagination:{hideOnSinglePage:!0,total:((Jr=Ho==null?void 0:Ho.data)==null?void 0:Jr.size)||0,onChange:(Ns,ps)=>{$s(fo(pr({},js),{page:Ns,limit:ps}))},current:js==null?void 0:js.page,pageSize:js==null?void 0:js.limit,showTotal:Ns=>se.createElement(se.Fragment,null,"\u5171",se.createElement("span",{className:"ml5 mr5 c-blue"},Ns),"\u6761\u6570\u636E")}})),se.createElement(On,{FormProps:{form:jr,onFinish:(...Ns)=>Vo(void 0,[...Ns],function*(ps={}){const cl=yield rl(fo(pr({},ps),{homeworkId:rr==null?void 0:rr.userId}));(cl==null?void 0:cl.status)===0&&(De.ZP.success("\u4FEE\u6539\u6210\u529F"),$s({page:1,limit:10}),va(!1))})},ModalProps:{open:fr,onCancel:()=>{va(!1)},onOk:()=>{jr.submit()},confirmLoading:Bo}}))},on=(0,Ce.connect)(Io)(Oi),ln=Xn=>{var bn=Xn,{FormProps:_t,DataProps:Ao={},isShowStyles:ta=!0,shixunHomeworks:sa}=bn,Vr=Fo(bn,["FormProps","DataProps","isShowStyles","shixunHomeworks"]);const[Jr]=we.default.useForm(),{form:jr=Jr}=_t,{studentWorkDetail:rr,workDetail:ro}=sa,Na=(0,Ce.useParams)(),Ia=we.default.useWatch("comment",jr),Ho=we.default.useWatch("score",jr),Bo=we.default.useWatch("score_details",jr),[rl,Bs]=Ie.default.useModal(),[ka,Nl]=(0,se.useState)(!1),[js,$s]=(0,se.useState)(!1);return(0,se.useEffect)(()=>{var fr;!(rr!=null&&rr.single_score)&&(Bo==null?void 0:Bo.length)>0&&jr.setFieldsValue({score:(fr=Bo||[])==null?void 0:fr.reduce((va,Wt)=>(0,Gn.EN)(va,Wt.score||0,"+"),0)})},[Bo]),se.createElement(se.Fragment,null,Bs,se.createElement(we.default.Item,{hidden:!0,name:"score_id",label:"\u8FD9\u4E2A\u662F\u7528\u6765\u6536\u96C6score_id\u7684"}),!(Ao!=null&&Ao.disabledScore)&&se.createElement(se.Fragment,null,rr!=null&&rr.single_score?se.createElement(we.default.Item,{className:zt.ReviewStyle,name:"score",rules:[{required:!(0,ii.GJ)(),message:"\u8BF7\u586B\u5199\u5206\u6570"}],label:se.createElement("div",{className:"w-full flex justify-between item-center"},se.createElement("span",null,"\u8BC4\u5206"),se.createElement(xe.Z,{title:"\u667A\u80FD\u8BC4\u9605",isShowComponent:ro==null?void 0:ro.is_open_ai_review,isReview:!0,authority:(0,ii.G5)(),DrawerProps:{open:js,onClose:()=>{$s(!1)}},onOpen:()=>{$s(!0)},loadingOption:{text:"AI\u8BC4\u9605\u4E2D..."},defaultGetData:!0,FetchUrl:"/api/intelligent_reviews/large_model_intelligent_qa.json",FetchData:{student_work_id:Na.userId},isShowDefuatTips:!1,extraEdit:fr=>{var va;return(fr==null?void 0:fr.sender)=="AI"&&((va=fr==null?void 0:fr.response)==null?void 0:va.status)!=-1&&se.createElement(Ke.ZP,{icon:se.createElement("i",{className:"iconfont icon-yijianyingyong",style:{color:"#b7b7c2"}}),className:"mr10",type:"link",onClick:()=>{const Wt=()=>{var di,Ns;jr.setFieldsValue({score:(di=fr==null?void 0:fr.response)==null?void 0:di.score,comment:(Ns=fr==null?void 0:fr.response)==null?void 0:Ns.remarks}),$s(!1)};if(Ho||Ia){rl.confirm({icon:null,title:"\u63D0\u793A",centered:!0,content:"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8BC4\u5206\u6216\u8BC4\u8BED\u8F93\u5165\u6846\u4E2D\u5DF2\u6709\u5185\u5BB9\uFF0C\u4E00\u952E\u5E94\u7528\u5C06\u4F1A\u8986\u76D6\u539F\u6709\u5185\u5BB9\u3002\u662F\u5426\u5E94\u7528\uFF1F",okText:"\u5E94\u7528",onOk:Wt});return}Wt()}},"\u4E00\u952E\u5E94\u7528")}},se.createElement(Ke.ZP,{style:{padding:0,height:"auto"},icon:se.createElement("img",{src:oe(11689)}),type:"link"},"\u667A\u80FD\u8BC4\u9605")))},se.createElement(Te.Z,{className:"w-full",step:.1,min:0,placeholder:"\u8BF7\u586B\u5199\u5206\u6570",addonAfter:"\u5206"})):se.createElement("div",{className:ta?"gap-10px":"gap-20px mb20",style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(350px, 1fr))"}},se.createElement(we.default.List,{name:"score_details"},(fr,{add:va,remove:Wt})=>se.createElement(se.Fragment,null,fr.map(di=>se.createElement("div",{key:di.key,className:ta?"pt10 pb10 p20":"",style:{background:ta&&"#F6F7F9"}},se.createElement("div",{className:"flex justify-between mb10"},se.createElement("div",{className:"multi_ellipsis1"},jr.getFieldValue(["score_details",di.name,"name"])),se.createElement("div",{className:"c-grey-666"},"\uFF08\u6EE1\u5206",jr.getFieldValue(["score_details",di.name,"full_score"]),"\u5206\uFF09")),se.createElement(we.default.Item,{className:"mb0",name:[di.name,"score"],rules:jr.getFieldValue(["score_details",di.name,"isAllScore"])?null:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u6570"}]},se.createElement(Te.Z,{className:"w-full",stringMode:!0,min:0,max:jr.getFieldValue(["score_details",di.name,"full_score"]),placeholder:"\u8BF7\u8F93\u5165\u5206\u6570",controls:!1,addonAfter:"\u5206"})))))),se.createElement("div",{key:"allScore",className:ta?"pt10 pb10 p20":"",style:{background:ta&&"#F6F7F9"}},se.createElement("div",{className:"flex justify-between mb10"},se.createElement("div",{className:"multi_ellipsis1 c-blue"},"\u7EFC\u5408\u5F97\u5206"),se.createElement("div",{className:"c-grey-666"},"\uFF08\u6EE1\u5206100\u5206\uFF09")),se.createElement(we.default.Item,{className:"mb0",name:"score"},se.createElement(Te.Z,{className:"w-full",stringMode:!0,disabled:!0,placeholder:"\u8BF7\u8F93\u5165\u5206\u6570",controls:!1,addonAfter:"\u5206"}))))),se.createElement(we.default.Item,{name:"comment",className:zt.ReviewStyle,label:se.createElement("div",{className:"w-full flex justify-between item-center"},se.createElement("span",null,"\u8BC4\u8BED"),se.createElement(Ae.Z,{isShowComponent:(0,ii.G5)(),ModalProps:{open:ka,onCancel:()=>{Nl(!1)}},onDataSelect:(fr,{node:va})=>{const Wt=()=>{jr.setFieldsValue({comment:va==null?void 0:va.value}),Nl(!1)};if(Ia){rl.confirm({icon:null,title:"\u63D0\u793A",centered:!0,content:"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8BC4\u8BED\u8F93\u5165\u6846\u4E2D\u5DF2\u6709\u5185\u5BB9\uFF0C\u4F7F\u7528\u5E38\u7528\u8BC4\u8BED\u5C06\u4F1A\u8986\u76D6\u539F\u6709\u5185\u5BB9\u3002\u662F\u5426\u4F7F\u7528\uFF1F",okText:"\u4F7F\u7528",onOk:Wt});return}Wt()}},se.createElement(Ke.ZP,{style:{padding:0,height:"auto"},icon:se.createElement("i",{className:"iconfont icon-changyongpingyu"}),type:"link",onClick:fr=>{fr.stopPropagation(),Nl(!0)}},"\u5E38\u7528\u8BC4\u8BED")))},se.createElement(Ge.h,{height:200,scrollId:"comment",placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u5BF9\u672C\u4F5C\u54C1\u7684\u8BC4\u8BED\uFF0C\u6700\u5927\u9650\u52362000\u4E2A\u5B57\u7B26"})))},qt=(0,Ce.connect)(Io)(ln),Nt=Xn=>{var bn=Xn,{ModalProps:_t={},DataProps:Ao={},shixunHomeworks:ta,FormProps:sa}=bn,Vr=Fo(bn,["ModalProps","DataProps","shixunHomeworks","FormProps"]);const{form:Jr}=sa,{studentWorkDetail:jr}=ta;return se.createElement(Ie.default,pr({},pr({title:se.createElement(se.Fragment,null,"\u7F16\u8F91\u8BC4\u8BED",!(jr!=null&&jr.single_score)&&se.createElement("span",{className:"ml20 font16",style:{color:"#FA6400"}},"\u6CE8\u610F\uFF1A\u5F00\u542F\u591A\u7EF4\u5EA6\u8BC4\u5206")),centered:!0,width:jr!=null&&jr.single_score?662:1120},_t)),se.createElement(we.default,pr({},pr({size:"large",layout:"vertical"},sa)),se.createElement(qt,{FormProps:{form:Jr},DataProps:Ao})))},On=(0,Ce.connect)(Io)(Nt),Un=Xn=>{var bn=Xn,{ModalProps:_t={},DataProps:Ao={},shixunHomeworks:ta}=bn,sa=Fo(bn,["ModalProps","DataProps","shixunHomeworks"]),Vr,Jr,jr;const{studentWorkDetail:rr}=ta,[ro,Na]=(0,se.useState)({teacherList:[],assistantsList:[],anonymousCommentList:[]}),Ia=(Ho,Bo,rl="")=>({title:rl==="anonymous_comment"?se.createElement(et.Z,{title:(0,ii.G5)()&&(Ho==null?void 0:Ho.name)},se.createElement("a",null,"\u533F\u540D")):Ho==null?void 0:Ho.name,dataIndex:`score${Bo}`,align:"center",render:(Bs,ka,Nl)=>Nl===0?se.createElement(se.Fragment,null,Bs,ka[`old_score${Bo}`]&&se.createElement("span",{style:{color:"#009C0F"}},"\uFF08\u6559\u5E08\u8865\u5206\uFF1A",ka[`old_score${Bo}`],"\uFF09")):se.createElement("div",{className:"flex item-center justify-center"},se.createElement("div",{style:{width:166}},Bs==null?void 0:Bs.map((js,$s)=>se.createElement("div",{key:$s,className:"flex justify-between"},js==null?void 0:js.name,se.createElement("span",{className:"ml5",style:{color:"#009C0F"}},js==null?void 0:js.score)))))});return(0,se.useEffect)(()=>{var Ho,Bo,rl,Bs,ka,Nl;if(rr&&(_t!=null&&_t.open)){const js=[{},{}],$s=[{},{}],fr=[{},{}];((Ho=rr==null?void 0:rr.teacher_score_list)==null?void 0:Ho.length)>0&&((Bo=rr==null?void 0:rr.teacher_score_list)==null||Bo.forEach((va,Wt)=>{js[0][`score${Wt}`]=va==null?void 0:va.score,js[1][`score${Wt}`]=va==null?void 0:va.user_score})),((rl=rr==null?void 0:rr.assistants_score_list)==null?void 0:rl.length)>0&&((Bs=rr==null?void 0:rr.assistants_score_list)==null||Bs.forEach((va,Wt)=>{$s[0][`score${Wt}`]=va==null?void 0:va.score,$s[1][`score${Wt}`]=va==null?void 0:va.user_score})),((ka=rr==null?void 0:rr.anonymous_comment_score_list)==null?void 0:ka.length)>0&&((Nl=rr==null?void 0:rr.anonymous_comment_score_list)==null||Nl.forEach((va,Wt)=>{va!=null&&va.old_score?(fr[0][`score${Wt}`]=va==null?void 0:va.old_score,fr[0][`old_score${Wt}`]=va==null?void 0:va.score):(fr[0][`score${Wt}`]=va==null?void 0:va.score,fr[0][`old_score${Wt}`]=va==null?void 0:va.old_score),fr[1][`score${Wt}`]=va==null?void 0:va.user_score})),Na({teacherList:rr!=null&&rr.single_score?[js[0]]:js,assistantsList:rr!=null&&rr.single_score?[$s[0]]:$s,anonymousCommentList:rr!=null&&rr.single_score?[fr[0]]:fr})}},[rr,_t==null?void 0:_t.open]),se.createElement(Ie.default,pr({},pr({title:"\u5F97\u5206\u8BE6\u60C5",centered:!0,width:1200,bodyStyle:{maxHeight:"80vh"}},_t)),se.createElement(ur,{className:"mt0",dataInfo:rr,isShowButton:!1}),se.createElement("div",{className:`${zt.ScoreDetailsBase} flex flex-col gap-20px`},((Vr=rr==null?void 0:rr.teacher_score_list)==null?void 0:Vr.length)>0&&se.createElement("div",{className:"flex"},se.createElement("div",{className:"c-grey-333 font14 blod flex item-center justify-center",style:{background:"rgba(48,97,208,0.1)",width:60,padding:"20px 15px"}},"\u6559\u5E08\u8BC4\u5206"),se.createElement(ht.default,{className:"flex-1",style:{minWidth:0},bordered:!0,dataSource:ro==null?void 0:ro.teacherList,pagination:!1,scroll:{x:"max-content"},columns:[...((rr==null?void 0:rr.teacher_score_list)||[]).map((Ho,Bo)=>Ia(Ho,Bo)),{title:`\u6700\u7EC8\u5F97\u5206\uFF08${(rr==null?void 0:rr.teacher_mode)===1?"\u5E73\u5747\u8BC4\u5206":"\u6700\u7EC8\u8BC4\u5206"}\uFF09`,dataIndex:"value",align:"center",width:224,fixed:"right",render:Ho=>se.createElement("span",{style:{color:"#009C0F"}},rr==null?void 0:rr.teacher_score),onCell:(Ho,Bo)=>({rowSpan:Bo%2==0?2:0})}]})),((Jr=rr==null?void 0:rr.assistants_score_list)==null?void 0:Jr.length)>0&&se.createElement("div",{className:"flex"},se.createElement("div",{className:"c-grey-333 font14 blod flex item-center justify-center",style:{background:"rgba(48,97,208,0.1)",width:60,padding:"20px 15px"}},"\u52A9\u6559\u8BC4\u5206"),se.createElement(ht.default,{className:"flex-1",style:{minWidth:0},bordered:!0,dataSource:(ro==null?void 0:ro.assistantsList)||[],pagination:!1,scroll:{x:"max-content"},columns:[...((rr==null?void 0:rr.assistants_score_list)||[]).map((Ho,Bo)=>Ia(Ho,Bo)),{title:`\u6700\u7EC8\u5F97\u5206\uFF08${(rr==null?void 0:rr.ta_mode)===1?"\u5E73\u5747\u8BC4\u5206":"\u6700\u7EC8\u8BC4\u5206"}\uFF09`,dataIndex:"value",align:"center",width:224,fixed:"right",render:Ho=>se.createElement("span",{style:{color:"#009C0F"}},rr==null?void 0:rr.teaching_asistant_score),onCell:(Ho,Bo)=>({rowSpan:Bo%2==0?2:0})}]})),(rr==null?void 0:rr.anonymous_comment)&&((jr=rr==null?void 0:rr.anonymous_comment_score_list)==null?void 0:jr.length)>0&&se.createElement("div",{className:"flex"},se.createElement("div",{className:"c-grey-333 font14 blod flex item-center justify-center",style:{background:"rgba(48,97,208,0.1)",width:60,padding:"20px 15px"}},"\u533F\u8BC4\u8BC4\u5206"),se.createElement(ht.default,{className:"flex-1",style:{minWidth:0},bordered:!0,dataSource:(ro==null?void 0:ro.anonymousCommentList)||[],pagination:!1,scroll:{x:"max-content"},columns:[...((rr==null?void 0:rr.anonymous_comment_score_list)||[]).map((Ho,Bo)=>Ia(Ho,Bo,"anonymous_comment")),{title:"\u6700\u7EC8\u5F97\u5206\uFF08\u53D6\u5E73\u5747\u5206\uFF09",dataIndex:"value",align:"center",width:224,fixed:"right",render:Ho=>se.createElement("span",{style:{color:"#009C0F"}}," ",rr==null?void 0:rr.student_score),onCell:(Ho,Bo)=>({rowSpan:Bo%2==0?2:0})}]})),se.createElement("div",{className:"flex"},se.createElement("div",{className:"c-grey-333 font14 blod flex item-center justify-center",style:{background:"rgba(48,97,208,0.1)",width:60,padding:"20px 15px"}},"\u6263\u5206"),se.createElement(ht.default,{className:" flex-1",bordered:!0,dataSource:[rr],pagination:!1,columns:[{title:"\u8865\u4EA4\u6263\u5206",dataIndex:"late_penalty",align:"center"},{title:"\u67E5\u91CD\u6263\u5206",dataIndex:"repeat_minus_score",align:"center"},(rr==null?void 0:rr.anonymous_comment)&&{title:"\u7F3A\u8BC4\u6263\u5206",dataIndex:"absence_penalty",align:"center"},{title:"\u8FDD\u8BC4\u6263\u5206",dataIndex:"appeal_penalty",align:"center"},{title:"\u6700\u7EC8\u6263\u5206",dataIndex:"value",align:"center",width:224,render:(Ho,Bo)=>se.createElement("span",{style:{color:"#009C0F"}},((Bo==null?void 0:Bo.late_penalty)||0)+((Bo==null?void 0:Bo.repeat_minus_score)||0)+((Bo==null?void 0:Bo.absence_penalty)||0)+((Bo==null?void 0:Bo.appeal_penalty)||0))}].filter(Ho=>Ho)}))))},Vt=(0,Ce.connect)(Io)(Un),yt=Xn=>{var bn=Xn,{ModalProps:_t={},DataProps:Ao={},shixunHomeworks:ta,dispatch:sa}=bn,Vr=Fo(bn,["ModalProps","DataProps","shixunHomeworks","dispatch"]);const{workDetail:Jr}=ta,jr=(0,Ce.useParams)();return se.createElement(Ie.default,pr({},pr({title:"\u4F5C\u4E1A\u63CF\u8FF0",centered:!0,width:1200,bodyStyle:{maxHeight:"80vh"}},_t)),se.createElement(Xt.Z,{className:"mt10",value:(Jr==null?void 0:Jr.description)||"\u6682\u65E0\uFF5E"}),se.createElement(rt.Z,{authority:(0,ii.GJ)(),showDimensions:!1,dataSource:Jr==null?void 0:Jr.attachments,callback:()=>{sa({type:"shixunHomeworks/getWorkDetail",payload:{categoryId:jr.categoryId}})}}))},In=(0,Ce.connect)(Io)(yt);var zn=Object.defineProperty,mi=Object.getOwnPropertySymbols,Rn=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable,Ut=(Xn,bn,_t)=>bn in Xn?zn(Xn,bn,{enumerable:!0,configurable:!0,writable:!0,value:_t}):Xn[bn]=_t,Ln=(Xn,bn)=>{for(var _t in bn||(bn={}))Rn.call(bn,_t)&&Ut(Xn,_t,bn[_t]);if(mi)for(var _t of mi(bn))bt.call(bn,_t)&&Ut(Xn,_t,bn[_t]);return Xn};const ni=Xn=>React.createElement("svg",Ln({width:13,height:12,xmlns:"http://www.w3.org/2000/svg"},Xn),React.createElement("title",null,"4"),React.createElement("path",{d:"M2.573 1.787v.006c.018.135.324 2.394 2.146 4.04C6.597 7.53 9.481 7.66 9.481 7.66h.003c.084.001 1.985.07 3.035 3.16.033.096.074.232.123.407a.583.583 0 0 1-.563.739H3.578a.583.583 0 0 1-.584-.592c.025-1.732-.115-2.97-.421-3.714C2.057 6.405.735 5.392.038 2.183c-.04-.188-.246-1.41.997-1.578C2.277.437 2.573 1.787 2.573 1.787ZM7.876.007c1.611 0 2.917 1.371 2.917 3.063 0 1.69-1.306 3.062-2.917 3.062-1.611 0-2.917-1.37-2.917-3.062C4.96 1.379 6.265.007 7.876.007Z",fill:"#FA6400",fillRule:"nonzero"}));var Gt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTIuNTczIDEuNzg3di4wMDZjLjAxOC4xMzUuMzI0IDIuMzk0IDIuMTQ2IDQuMDRDNi41OTcgNy41MyA5LjQ4MSA3LjY2IDkuNDgxIDcuNjZoLjAwM2MuMDg0LjAwMSAxLjk4NS4wNyAzLjAzNSAzLjE2LjAzMy4wOTYuMDc0LjIzMi4xMjMuNDA3YS41ODMuNTgzIDAgMCAxLS41NjMuNzM5SDMuNTc4YS41ODMuNTgzIDAgMCAxLS41ODQtLjU5MmMuMDI1LTEuNzMyLS4xMTUtMi45Ny0uNDIxLTMuNzE0QzIuMDU3IDYuNDA1LjczNSA1LjM5Mi4wMzggMi4xODNjLS4wNC0uMTg4LS4yNDYtMS40MS45OTctMS41NzhDMi4yNzcuNDM3IDIuNTczIDEuNzg3IDIuNTczIDEuNzg3Wk03Ljg3Ni4wMDdjMS42MTEgMCAyLjkxNyAxLjM3MSAyLjkxNyAzLjA2MyAwIDEuNjktMS4zMDYgMy4wNjItMi45MTcgMy4wNjItMS42MTEgMC0yLjkxNy0xLjM3LTIuOTE3LTMuMDYyQzQuOTYgMS4zNzkgNi4yNjUuMDA3IDcuODc2LjAwN1oiIGZpbGw9IiNGQTY0MDAiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",yn=Object.defineProperty,Qt=Object.getOwnPropertySymbols,un=Object.prototype.hasOwnProperty,wn=Object.prototype.propertyIsEnumerable,gn=(Xn,bn,_t)=>bn in Xn?yn(Xn,bn,{enumerable:!0,configurable:!0,writable:!0,value:_t}):Xn[bn]=_t,kn=(Xn,bn)=>{for(var _t in bn||(bn={}))un.call(bn,_t)&&gn(Xn,_t,bn[_t]);if(Qt)for(var _t of Qt(bn))wn.call(bn,_t)&&gn(Xn,_t,bn[_t]);return Xn};const Bn=Xn=>React.createElement("svg",kn({width:12,height:12,xmlns:"http://www.w3.org/2000/svg"},Xn),React.createElement("title",null,"5"),React.createElement("g",{fill:"#5E54E7",fillRule:"nonzero"},React.createElement("path",{d:"M8.477 5.651c.569 0 1.101.138 1.569.377V1.257C10.046.56 9.486 0 8.789 0H1.257C.56 0 0 .56 0 1.257v8.789c0 .697.56 1.257 1.257 1.257h4.56a3.411 3.411 0 0 1-.79-2.193 3.448 3.448 0 0 1 3.45-3.459Zm-3.138.624H2.202a.31.31 0 0 1-.312-.312.31.31 0 0 1 .312-.312h3.137a.31.31 0 0 1 .312.312.31.31 0 0 1-.312.312ZM1.257 3.138V1.88c0-.349.284-.624.624-.624h6.275c.349 0 .624.284.624.624v1.257H1.257Zm2.826 5.651H2.202a.31.31 0 0 1-.312-.312.31.31 0 0 1 .312-.312h1.88a.31.31 0 0 1 .312.312.31.31 0 0 1-.311.312Z"}),React.createElement("path",{d:"M8.477 6.275a2.827 2.827 0 0 0 0 5.652 2.827 2.827 0 0 0 0-5.652Zm1.587 4.743C10.22 8.752 8.44 9.661 8.44 9.661v.981L6.908 9.101 8.44 7.54l-.009.9c2.835.421 1.633 2.577 1.633 2.577Z"})));var Vn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzVFNTRFNyIgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNOC40NzcgNS42NTFjLjU2OSAwIDEuMTAxLjEzOCAxLjU2OS4zNzdWMS4yNTdDMTAuMDQ2LjU2IDkuNDg2IDAgOC43ODkgMEgxLjI1N0MuNTYgMCAwIC41NiAwIDEuMjU3djguNzg5YzAgLjY5Ny41NiAxLjI1NyAxLjI1NyAxLjI1N2g0LjU2YTMuNDExIDMuNDExIDAgMCAxLS43OS0yLjE5MyAzLjQ0OCAzLjQ0OCAwIDAgMSAzLjQ1LTMuNDU5Wm0tMy4xMzguNjI0SDIuMjAyYS4zMS4zMSAwIDAgMS0uMzEyLS4zMTIuMzEuMzEgMCAwIDEgLjMxMi0uMzEyaDMuMTM3YS4zMS4zMSAwIDAgMSAuMzEyLjMxMi4zMS4zMSAwIDAgMS0uMzEyLjMxMlpNMS4yNTcgMy4xMzhWMS44OGMwLS4zNDkuMjg0LS42MjQuNjI0LS42MjRoNi4yNzVjLjM0OSAwIC42MjQuMjg0LjYyNC42MjR2MS4yNTdIMS4yNTdabTIuODI2IDUuNjUxSDIuMjAyYS4zMS4zMSAwIDAgMS0uMzEyLS4zMTIuMzEuMzEgMCAwIDEgLjMxMi0uMzEyaDEuODhhLjMxLjMxIDAgMCAxIC4zMTIuMzEyLjMxLjMxIDAgMCAxLS4zMTEuMzEyWiIvPjxwYXRoIGQ9Ik04LjQ3NyA2LjI3NWEyLjgyNyAyLjgyNyAwIDAgMCAwIDUuNjUyIDIuODI3IDIuODI3IDAgMCAwIDAtNS42NTJabTEuNTg3IDQuNzQzQzEwLjIyIDguNzUyIDguNDQgOS42NjEgOC40NCA5LjY2MXYuOTgxTDYuOTA4IDkuMTAxIDguNDQgNy41NGwtLjAwOS45YzIuODM1LjQyMSAxLjYzMyAyLjU3NyAxLjYzMyAyLjU3N1oiLz48L2c+PC9zdmc+",Jn=Object.defineProperty,Wn=Object.getOwnPropertySymbols,gi=Object.prototype.hasOwnProperty,Fi=Object.prototype.propertyIsEnumerable,ir=(Xn,bn,_t)=>bn in Xn?Jn(Xn,bn,{enumerable:!0,configurable:!0,writable:!0,value:_t}):Xn[bn]=_t,zi=(Xn,bn)=>{for(var _t in bn||(bn={}))gi.call(bn,_t)&&ir(Xn,_t,bn[_t]);if(Wn)for(var _t of Wn(bn))Fi.call(bn,_t)&&ir(Xn,_t,bn[_t]);return Xn};const tn=Xn=>React.createElement("svg",zi({width:16,height:12,xmlns:"http://www.w3.org/2000/svg"},Xn),React.createElement("title",null,"2"),React.createElement("g",{fill:"#00B187",fillRule:"nonzero"},React.createElement("path",{d:"M2.573 1.787v.006c.018.135.324 2.394 2.146 4.04C6.597 7.53 9.481 7.66 9.481 7.66h.003c.084.001 1.985.07 3.035 3.16.033.096.074.232.123.407a.583.583 0 0 1-.563.739H3.578a.583.583 0 0 1-.584-.592c.025-1.732-.115-2.97-.421-3.714C2.057 6.405.735 5.392.038 2.183c-.04-.188-.246-1.41.997-1.578C2.277.437 2.573 1.787 2.573 1.787Z"}),React.createElement("path",{d:"M13.09 1.787v.006c-.017.135-.324 2.394-2.146 4.04C9.066 7.53 6.182 7.66 6.182 7.66h-.003c-.084.001-1.985.07-3.035 3.16a7.91 7.91 0 0 0-.122.407.583.583 0 0 0 .562.739h8.502a.583.583 0 0 0 .583-.592c-.025-1.732.116-2.97.422-3.714.515-1.255 1.837-2.268 2.534-5.477.041-.188.246-1.41-.996-1.578-1.242-.168-1.538 1.182-1.538 1.182Z"}),React.createElement("path",{d:"M7.876.007c1.611 0 2.917 1.371 2.917 3.063 0 1.69-1.306 3.062-2.917 3.062-1.611 0-2.917-1.37-2.917-3.062C4.96 1.379 6.265.007 7.876.007Z"})));var Ai="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwQjE4NyIgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNMi41NzMgMS43ODd2LjAwNmMuMDE4LjEzNS4zMjQgMi4zOTQgMi4xNDYgNC4wNEM2LjU5NyA3LjUzIDkuNDgxIDcuNjYgOS40ODEgNy42NmguMDAzYy4wODQuMDAxIDEuOTg1LjA3IDMuMDM1IDMuMTYuMDMzLjA5Ni4wNzQuMjMyLjEyMy40MDdhLjU4My41ODMgMCAwIDEtLjU2My43MzlIMy41NzhhLjU4My41ODMgMCAwIDEtLjU4NC0uNTkyYy4wMjUtMS43MzItLjExNS0yLjk3LS40MjEtMy43MTRDMi4wNTcgNi40MDUuNzM1IDUuMzkyLjAzOCAyLjE4M2MtLjA0LS4xODgtLjI0Ni0xLjQxLjk5Ny0xLjU3OEMyLjI3Ny40MzcgMi41NzMgMS43ODcgMi41NzMgMS43ODdaIi8+PHBhdGggZD0iTTEzLjA5IDEuNzg3di4wMDZjLS4wMTcuMTM1LS4zMjQgMi4zOTQtMi4xNDYgNC4wNEM5LjA2NiA3LjUzIDYuMTgyIDcuNjYgNi4xODIgNy42NmgtLjAwM2MtLjA4NC4wMDEtMS45ODUuMDctMy4wMzUgMy4xNmE3LjkxIDcuOTEgMCAwIDAtLjEyMi40MDcuNTgzLjU4MyAwIDAgMCAuNTYyLjczOWg4LjUwMmEuNTgzLjU4MyAwIDAgMCAuNTgzLS41OTJjLS4wMjUtMS43MzIuMTE2LTIuOTcuNDIyLTMuNzE0LjUxNS0xLjI1NSAxLjgzNy0yLjI2OCAyLjUzNC01LjQ3Ny4wNDEtLjE4OC4yNDYtMS40MS0uOTk2LTEuNTc4LTEuMjQyLS4xNjgtMS41MzggMS4xODItMS41MzggMS4xODJaIi8+PHBhdGggZD0iTTcuODc2LjAwN2MxLjYxMSAwIDIuOTE3IDEuMzcxIDIuOTE3IDMuMDYzIDAgMS42OS0xLjMwNiAzLjA2Mi0yLjkxNyAzLjA2Mi0xLjYxMSAwLTIuOTE3LTEuMzctMi45MTctMy4wNjJDNC45NiAxLjM3OSA2LjI2NS4wMDcgNy44NzYuMDA3WiIvPjwvZz48L3N2Zz4=",Bi=Object.defineProperty,Ti=Object.getOwnPropertySymbols,hr=Object.prototype.hasOwnProperty,tr=Object.prototype.propertyIsEnumerable,br=(Xn,bn,_t)=>bn in Xn?Bi(Xn,bn,{enumerable:!0,configurable:!0,writable:!0,value:_t}):Xn[bn]=_t,Xi=(Xn,bn)=>{for(var _t in bn||(bn={}))hr.call(bn,_t)&&br(Xn,_t,bn[_t]);if(Ti)for(var _t of Ti(bn))tr.call(bn,_t)&&br(Xn,_t,bn[_t]);return Xn};const Hi=Xn=>React.createElement("svg",Xi({width:12,height:12,xmlns:"http://www.w3.org/2000/svg"},Xn),React.createElement("title",null,"1"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M6.325 1.6a.578.578 0 0 1 .448.197c.135.176.215.387.23.608a.672.672 0 0 1 .535-.107c.497.088.628.632.653 1.043a.565.565 0 0 1 .292-.037c.699.079.686.756.68 1.046-.008.29-.248 2.06-.28 2.288.04.277.343 2.649-.851 3.6l.057.849-3.338.113v-1.168c-.27-.219-1.33-1.136-1.544-2.283a4.077 4.077 0 0 0-.475-1.201c-.277-.514-.515-.96-.114-1.436a.585.585 0 0 1 .457-.236c.608 0 1.154 1.1 1.302 1.935l.16.08-.12-3.53c0-.015-.043-.516.228-.809a.651.651 0 0 1 .493-.205h.036a.767.767 0 0 1 .375.106c.016-.233.104-.456.252-.636a.692.692 0 0 1 .524-.217Z",fill:"#EE5D5D"}),React.createElement("path",{d:"M6 0a6 6 0 1 1 0 12A6 6 0 0 1 6 0ZM2.019 2.655a5.2 5.2 0 0 0 6.472 7.91ZM6 .8a5.18 5.18 0 0 0-3.417 1.28l6.582 8.046A5.2 5.2 0 0 0 6 .8Z",fill:"#E30000"})));var Ir="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNNi4zMjUgMS42YS41NzguNTc4IDAgMCAxIC40NDguMTk3Yy4xMzUuMTc2LjIxNS4zODcuMjMuNjA4YS42NzIuNjcyIDAgMCAxIC41MzUtLjEwN2MuNDk3LjA4OC42MjguNjMyLjY1MyAxLjA0M2EuNTY1LjU2NSAwIDAgMSAuMjkyLS4wMzdjLjY5OS4wNzkuNjg2Ljc1Ni42OCAxLjA0Ni0uMDA4LjI5LS4yNDggMi4wNi0uMjggMi4yODguMDQuMjc3LjM0MyAyLjY0OS0uODUxIDMuNmwuMDU3Ljg0OS0zLjMzOC4xMTN2LTEuMTY4Yy0uMjctLjIxOS0xLjMzLTEuMTM2LTEuNTQ0LTIuMjgzYTQuMDc3IDQuMDc3IDAgMCAwLS40NzUtMS4yMDFjLS4yNzctLjUxNC0uNTE1LS45Ni0uMTE0LTEuNDM2YS41ODUuNTg1IDAgMCAxIC40NTctLjIzNmMuNjA4IDAgMS4xNTQgMS4xIDEuMzAyIDEuOTM1bC4xNi4wOC0uMTItMy41M2MwLS4wMTUtLjA0My0uNTE2LjIyOC0uODA5YS42NTEuNjUxIDAgMCAxIC40OTMtLjIwNWguMDM2YS43NjcuNzY3IDAgMCAxIC4zNzUuMTA2Yy4wMTYtLjIzMy4xMDQtLjQ1Ni4yNTItLjYzNmEuNjkyLjY5MiAwIDAgMSAuNTI0LS4yMTdaIiBmaWxsPSIjRUU1RDVEIi8+PHBhdGggZD0iTTYgMGE2IDYgMCAxIDEgMCAxMkE2IDYgMCAwIDEgNiAwWk0yLjAxOSAyLjY1NWE1LjIgNS4yIDAgMCAwIDYuNDcyIDcuOTFaTTYgLjhhNS4xOCA1LjE4IDAgMCAwLTMuNDE3IDEuMjhsNi41ODIgOC4wNDZBNS4yIDUuMiAwIDAgMCA2IC44WiIgZmlsbD0iI0UzMDAwMCIvPjwvZz48L3N2Zz4=",Ht=oe(59301),Kr=Object.defineProperty,Fn=Object.defineProperties,kr=Object.getOwnPropertyDescriptors,Go=Object.getOwnPropertySymbols,Dr=Object.prototype.hasOwnProperty,po=Object.prototype.propertyIsEnumerable,Do=(Xn,bn,_t)=>bn in Xn?Kr(Xn,bn,{enumerable:!0,configurable:!0,writable:!0,value:_t}):Xn[bn]=_t,Ji=(Xn,bn)=>{for(var _t in bn||(bn={}))Dr.call(bn,_t)&&Do(Xn,_t,bn[_t]);if(Go)for(var _t of Go(bn))po.call(bn,_t)&&Do(Xn,_t,bn[_t]);return Xn},or=(Xn,bn)=>Fn(Xn,kr(bn)),io=(Xn,bn)=>{var _t={};for(var Ao in Xn)Dr.call(Xn,Ao)&&bn.indexOf(Ao)<0&&(_t[Ao]=Xn[Ao]);if(Xn!=null&&Go)for(var Ao of Go(Xn))bn.indexOf(Ao)<0&&po.call(Xn,Ao)&&(_t[Ao]=Xn[Ao]);return _t},Gr=(Xn,bn,_t)=>new Promise((Ao,ta)=>{var sa=jr=>{try{Jr(_t.next(jr))}catch(rr){ta(rr)}},Vr=jr=>{try{Jr(_t.throw(jr))}catch(rr){ta(rr)}},Jr=jr=>jr.done?Ao(jr.value):Promise.resolve(jr.value).then(sa,Vr);Jr((_t=_t.apply(Xn,bn)).next())});const Ii=Xn=>{var bn=Xn,{Data:_t,layer:Ao=1,type:ta,index:sa=0,newType:Vr,user:Jr,showName:jr,showNm:rr}=bn,ro=io(bn,["Data","layer","type","index","newType","user","showName","showNm"]),Na,Ia,Ho,Bo,rl,Bs,ka,Nl,js,$s,fr,va,Wt,di,Ns,ps,cl;const Os=(0,Ce.useParams)(),{studentWorkDetail:nu}=ro==null?void 0:ro.shixunHomeworks,[hu,Vu]=(0,se.useState)({type:0,show:!1}),[rs,Eo]=(0,se.useState)(null),[,Fa,Fr]=(0,Zt.U)(ke.qP,{userId:Os==null?void 0:Os.userId}),[,za,qo]=(0,Zt.U)(ke.R$,{userId:Os==null?void 0:Os.userId}),[,ol,Zi]=(0,Zt.U)(ke.QC,{userId:Os==null?void 0:Os.userId}),[,oo,iu]=(0,Zt.U)(ke.Mf,{userId:Os==null?void 0:Os.userId}),[,Sl,_c,Xo]=(0,Zt.U)(ke.Am,{homeworkId:Os==null?void 0:Os.userId}),[,Bl,Ma,Ka]=(0,Zt.U)(ke.oK,{}),[ms,os]=(0,se.useState)(!1),[ya]=we.default.useForm(),[Ku]=we.default.useForm(),[xo]=we.default.useForm(),[Gc,pa]=(0,se.useState)(!1),[ah,ru]=(0,se.useState)(!1),jl=(Ea=_t)=>{Ie.default.confirm({title:"\u662F\u5426\u786E\u8BA4\u5220\u9664?",centered:!0,onOk:()=>Gr(void 0,null,function*(){(yield Zi({score_id:Ea==null?void 0:Ea.comment_id})).status===0&&(De.ZP.success("\u5220\u9664\u6210\u529F"),ro!=null&&ro.getInitData&&(ro==null||ro.getInitData()))})})},Td=(Ea=_t)=>{Ie.default.confirm({title:"\u662F\u5426\u786E\u8BA4\u5220\u9664?",centered:!0,onOk:()=>Gr(void 0,null,function*(){(yield iu({object_id:Ea.id,object_type:"journals_for_message"})).status===0&&(De.ZP.success("\u5220\u9664\u6210\u529F"),ro!=null&&ro.getInitData&&(ro==null||ro.getInitData()))})})},zl=(Ea,zs)=>{let da="";for(let kl=0;kl<(Ea==null?void 0:Ea.length);kl++){const Yu=Ea[kl];zs!=null&&zs.old_score?da+=`<span style="color:#999999">${Yu.name}<span style="color:#999999;"}}> ${Yu.score}\u5206 </span></span>`:da+=`<span>${Yu.name}<span style="color:#CA7720;"}}> ${Yu.score}\u5206 </span></span>`,kl<(Ea==null?void 0:Ea.length)-1&&(zs!=null&&zs.old_score?da+=' <span style="color:#999999"> + </span> ':da+=" + ")}return Ht.createElement("span",{dangerouslySetInnerHTML:{__html:da}})};return Ht.createElement("div",{className:Ao==1&&ct.new_style_box,style:Vr&&{background:"#FCF8F4",border:"none"}},Ht.createElement(Ft.Z,{wrap:!1,gutter:15,className:Ao!=1&&ct.box_child,style:Vr&&{marginTop:"0px"}},ta=="appeal_info"?Ht.createElement(Ot.Z,{flex:1},Ht.createElement("div",{className:ct.box_item_top},Ht.createElement(et.Z,{title:jr?(Na=_t==null?void 0:_t.appeal_info)==null?void 0:Na.user_name:""},Ht.createElement("span",{style:{color:jr?"#3061D0":"#333333",fontWeight:600}},rr?"\u533F\u540D":(Ia=_t==null?void 0:_t.appeal_info)==null?void 0:Ia.user_name)),(_t==null?void 0:_t.appeal_status)==1&&Ht.createElement("span",{className:ct.tagStyleSzz,style:{color:"#CF5300",border:"1px solid rgba(250,100,0,0.2)",background:"rgba(250,100,0,0.1)",display:"flex",alignItems:"center",padding:"0 5px",marginLeft:"10px"}},Ht.createElement("img",{src:Gt,className:"mr5"}),"\u7533\u8BC9\u4E2D"),(_t==null?void 0:_t.appeal_status)==2&&Ht.createElement("span",{className:ct.tagStyleSzz,style:{color:"#4237E7",border:"1px solid rgba(94,84,231,0.2)",background:"rgba(94,84,231,0.1)",display:"flex",alignItems:"center",padding:"0 5px",marginLeft:"10px"}},Ht.createElement("img",{src:Vn,className:"mr5"}),"\u7533\u8BC9\u5DF2\u64A4\u9500"),(_t==null?void 0:_t.appeal_status)==3&&Ht.createElement("span",{className:ct.tagStyleSzz,style:{color:"#00B187",border:"1px rgba(0,177,135,0.2) solid",background:"rgba(0,177,135,0.1)",display:"flex",alignItems:"center",padding:"0 5px",marginLeft:"10px"}},Ht.createElement("img",{src:Ai,className:"mr5"}),"\u7533\u8BC9\u6210\u529F"),(_t==null?void 0:_t.appeal_status)==4&&Ht.createElement("span",{className:ct.tagStyleSzz,style:{color:"#E30000",border:"1px solid rgba(227,0,0,0.2)",background:"rgba(227,0,0,0.1)",display:"flex",alignItems:"center",padding:"0 5px",marginLeft:"10px"}},Ht.createElement("img",{src:Ir,className:"mr5"}),"\u7533\u8BC9\u88AB\u62D2\u7EDD")),Ht.createElement(Xt.Z,{className:"font14 mt10",value:`${((Ho=_t==null?void 0:_t.appeal_info)==null?void 0:Ho.content)||"\u6682\u672A\u5199\u8BC4\u8BED"}`})):Ht.createElement(Ot.Z,{flex:1},Ht.createElement("div",{className:ct.box_item_top},Ht.createElement(et.Z,{title:jr?(Bo=_t==null?void 0:_t.user_info)==null?void 0:Bo.user_name:""},Ht.createElement("span",{style:{color:jr?"#3061D0":"#333333",fontWeight:600}},rr?"\u533F\u540D":(rl=_t==null?void 0:_t.user_info)==null?void 0:rl.user_name)),(_t==null?void 0:_t.student_work_num)&&Ht.createElement(Ot.Z,null,Ht.createElement("span",{style:{padding:"3px 8px",background:(_t==null?void 0:_t.student_work_num)==1?"#5A9781":"#FFD28D",color:(_t==null?void 0:_t.student_work_num)==1?"#FFFFFF":"#AC4C0C",fontSize:"12px",borderRadius:"2px"}},"\u7B2C ",_t==null?void 0:_t.student_work_num," \u6B21\u63D0\u4EA4\u7684\u4F5C\u4E1A")),((_t==null?void 0:_t.score)||(_t==null?void 0:_t.score)==0)&&(nu==null?void 0:nu.single_score)&&Ht.createElement(Ot.Z,null,Ht.createElement("span",{style:{color:_t!=null&&_t.anonymous_exception?"#E30000":_t!=null&&_t.old_score?"#999999":"#009C0F",fontWeight:600,marginLeft:"-7px"}}," ",(_t==null?void 0:_t.old_score)||(_t==null?void 0:_t.score),"\u5206 ",(_t==null?void 0:_t.old_score)&&"\uFF08\u5DF2\u5931\u6548\uFF09")),ta!="feedback"&&(Ao==1&&!(_t!=null&&_t.can_reply)||!(_t!=null&&_t.can_reply)&&ta=="teacher"&&sa!=0)&&Ht.createElement(Ot.Z,null,Ht.createElement("span",{className:"c-light-black"},"\uFF08\u5DF2\u5931\u6548\uFF09")),!(nu!=null&&nu.single_score)&&(_t==null?void 0:_t.score)!==null&&Ht.createElement("div",{style:{color:"#333333"}},Ht.createElement(et.Z,{title:((Bs=_t==null?void 0:_t.score_details)==null?void 0:Bs.length)>0?zl(_t==null?void 0:_t.score_details,_t):"",overlayInnerStyle:{width:"min-content",whiteSpace:"nowrap",overflow:"visible"},placement:"topLeft"},Ht.createElement("div",{style:{display:"flex",alignItems:"center"}},((_t==null?void 0:_t.score)||(_t==null?void 0:_t.score)==0)&&Ht.createElement("span",{style:{color:_t!=null&&_t.anonymous_exception?"#E30000":_t!=null&&_t.old_score?"#999999":"#009C0F",fontWeight:600,marginRight:"5px"}},(_t==null?void 0:_t.old_score)||(_t==null?void 0:_t.score),"\u5206 ",(_t==null?void 0:_t.old_score)&&"\uFF08\u5DF2\u5931\u6548\uFF09"),((ka=_t==null?void 0:_t.score_details)==null?void 0:ka.length)>0&&Ht.createElement("div",{className:ct.left,style:{width:"480px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},"= ",zl(_t==null?void 0:_t.score_details,_t))))),(_t==null?void 0:_t.anonymous_exception)&&Ht.createElement("div",{className:ct.yichang,style:{marginLeft:((Nl=_t==null?void 0:_t.score_details)==null?void 0:Nl.length)>0&&"10px"}},Ht.createElement("i",{className:"iconfont icon-tishi12",style:{fontSize:"11px",marginRight:"3px"}}),"\u8BC4\u5206\u5F02\u5E38")),Ht.createElement(Xt.Z,{className:"font14 mt10",value:`${(_t==null?void 0:_t.content)||(_t==null?void 0:_t.hidden_comment)||"\u6682\u672A\u5199\u8BC4\u8BED"}`}),((js=_t==null?void 0:_t.attachments)==null?void 0:js.length)>0&&Ht.createElement("div",{className:"mt10",style:{display:"flex",flexDirection:"column",gap:10}},($s=_t==null?void 0:_t.attachments)==null?void 0:$s.map((Ea,zs)=>Ht.createElement("a",{key:zs,href:`${Ne.Z.API_SERVER}${Ea.url}`},Ht.createElement("i",{className:"iconfont icon-fujian font14"}),Ht.createElement("span",{className:"ml10"},Ea==null?void 0:Ea.title),Ht.createElement("span",{className:"c-light-black ml20 font12"},Ea==null?void 0:Ea.filesize))))),ta!="feedback"&&Ht.createElement(Ht.Fragment,null,ta=="appeal_info"?Ht.createElement(Ot.Z,{style:{whiteSpace:"nowrap"}},Ht.createElement(Ft.Z,{wrap:!1,gutter:10},(_t==null?void 0:_t.delete)&&(_t==null?void 0:_t.can_appeal)&&Ht.createElement(Ot.Z,null,Ht.createElement("span",{className:ct.text_style,onClick:()=>{Ie.default.confirm({centered:!0,title:Ht.createElement("div",null,"\u64A4\u9500\u7533\u8BC9\u540E\uFF0C\u65E0\u6CD5\u518D\u5BF9\u672C\u8BC4\u9605\u8BB0\u5F55\u8FDB\u884C\u7533\u8BC9",Ht.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u64A4\u9500\u7533\u8BC9"),onOk:()=>Gr(void 0,null,function*(){ro!=null&&ro.getInitData&&(ro==null||ro.getInitData())})})}},"\u64A4\u9500\u7533\u8BC9")),(_t==null?void 0:_t.appeal_status)==1&&(0,ii.GJ)()&&Ht.createElement(Ot.Z,null,Ht.createElement("span",{className:ct.text_style,style:{marginRight:"10pz"},onClick:()=>{pa(!0)}},"\u63A5\u53D7\u7533\u8BC9")),(_t==null?void 0:_t.appeal_status)==1&&(0,ii.GJ)()&&Ht.createElement(Ot.Z,null,Ht.createElement("span",{className:ct.text_style_red,onClick:()=>{Ie.default.confirm({centered:!0,title:Ht.createElement("div",null,"\u6B64\u533F\u8BC4\u6210\u7EE9\u5C06\u88AB\u8BA4\u4E3A\u5408\u7406",Ht.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u62D2\u7EDD\u7533\u8BC9"),onOk:()=>Gr(void 0,null,function*(){const Ea=yield(0,ee.ZP)(`/api/student_works/${Os.userId}/deal_appeal_score.json`,{method:"post",body:{score_id:_t==null?void 0:_t.score_id,status:4}});(Ea==null?void 0:Ea.status)===0&&ro!=null&&ro.getInitData&&(ro==null||ro.getInitData())})})}},"\u62D2\u7EDD\u7533\u8BC9")))):Ht.createElement(Ht.Fragment,null,(Ao==1||ta=="teacher")&&Ht.createElement(Ot.Z,{style:{whiteSpace:"nowrap"}},Ht.createElement(Ft.Z,{wrap:!1,gutter:10},((_t==null?void 0:_t.delete)||((fr=Jr==null?void 0:Jr.userInfo)==null?void 0:fr.user_id)==(_t==null?void 0:_t.user_id))&&Ht.createElement(Ot.Z,null,Ht.createElement("span",{className:ct.text_style,onClick:()=>{var Ea;os(!0),Ku.setFieldsValue(or(Ji({},_t),{comment:_t==null?void 0:_t.content,score_details:((Ea=_t==null?void 0:_t.score_details)==null?void 0:Ea.map(zs=>Ji({},zs)))||[]}))}},"\u7F16\u8F91")),(_t==null?void 0:_t.is_invalid)&&(_t==null?void 0:_t.delete)&&Ht.createElement(Ot.Z,null,Ht.createElement("span",{className:ct.text_style,onClick:()=>{jl(_t)}},"\u5220\u9664")),(_t==null?void 0:_t.can_appeal)&&Ht.createElement(Ot.Z,null,Ht.createElement("span",{className:ct.text_style,onClick:()=>{Vu({type:1,show:!0})}},"\u7533\u8BC9")),(_t==null?void 0:_t.can_reply)&&Ht.createElement(Ot.Z,null,Ht.createElement("span",{className:ct.text_style,onClick:()=>{Vu({type:0,show:!0})}},"\u56DE\u590D")))),Ao!=1&&((_t==null?void 0:_t.can_delete)&&ta!="teacher"||((va=Jr==null?void 0:Jr.userInfo)==null?void 0:va.user_id)==((Wt=_t==null?void 0:_t.user_info)==null?void 0:Wt.user_id))&&Ht.createElement("span",{className:ct.text_style,style:{marginRight:"8px"},onClick:()=>{ru(!0),xo.setFieldsValue(Ji({},_t))}},"\u7F16\u8F91"),Ao!=1&&(_t==null?void 0:_t.can_delete)&&ta!="teacher"&&Ht.createElement("span",{className:ct.text_style,onClick:()=>{Td(_t)}},"\u5220\u9664"))),Ao!=1&&(_t==null?void 0:_t.old_score)&&Ht.createElement("span",{style:{color:"#009C0F"}},"\u6559\u5E08\u533F\u8BC4\u8865\u5206\uFF1A",_t==null?void 0:_t.score,"\u5206")),Ao==1&&(_t==null?void 0:_t.appeal_info)&&(_t==null?void 0:_t.appeal_info)!=""&&Ht.createElement("div",{className:"mt20",style:{display:"flex",flexDirection:"column",gap:"20px"}},Ht.createElement(Ii,Ji({type:"appeal_info",Data:_t,layer:Ao+1},ro))),Ao==1&&((di=_t==null?void 0:_t.journals)==null?void 0:di.length)>0&&Ht.createElement("div",{className:"mt20",style:{display:"flex",flexDirection:"column",gap:"20px"}},(Ns=_t==null?void 0:_t.journals)==null?void 0:Ns.map((Ea,zs)=>Ht.createElement(Ii,Ji({key:zs,type:ta,Data:Ea,layer:Ao+1},ro)))),(hu==null?void 0:hu.show)&&Ht.createElement("div",{className:"mt20",style:{marginLeft:"56px"}},Ht.createElement(ne.Z,{height:150,isFocus:!0,watch:!0,onChange:Ea=>{Eo(Ea)}}),Ht.createElement(Ft.Z,{align:"middle",justify:"end",gutter:20},Ht.createElement(Ot.Z,null,Ht.createElement(Ke.ZP,{onClick:()=>{Vu({type:0,show:!1})}},"\u53D6\u6D88")),Ht.createElement(Ot.Z,null,Ht.createElement(Ke.ZP,{loading:Fa||za,type:"primary",onClick:()=>Gr(void 0,null,function*(){if(rs===""){De.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");return}let Ea;ta=="teacher"?Ea=(yield hu==null?void 0:hu.type)==0?Fr({hidden_comment:rs,score_id:_t==null?void 0:_t.score_id}):qo({comment:rs,score_id:_t==null?void 0:_t.score_id}):Ea=yield((hu==null?void 0:hu.type)==0?Fr:qo)({comment:rs,score_id:_t==null?void 0:_t.score_id}),Ea.status===0&&(De.ZP.success("\u64CD\u4F5C\u6210\u529F"),Vu({type:0,show:!1}),ro!=null&&ro.getInitData&&(ro==null||ro.getInitData()))})},(hu==null?void 0:hu.type)==0?"\u56DE\u590D":"\u7533\u8BC9")))),Ht.createElement(Ie.default,{title:"\u63A5\u53D7\u7533\u8BC9",open:Gc,centered:!0,destroyOnClose:!0,onCancel:()=>{pa(!1)},maskClosable:!1,width:544,onOk:()=>{ya.submit()}},Ht.createElement(we.default,{form:ya,colon:!1,onFinish:Ea=>Gr(void 0,null,function*(){(yield(0,ee.ZP)(`/api/student_works/${Os.userId}/deal_appeal_score.json`,{method:"post",body:or(Ji({},Ea),{userId:Os.userId,score_id:_t==null?void 0:_t.score_id,status:3})})).status===0&&(pa(!1),ro!=null&&ro.getInitData&&(ro==null||ro.getInitData()))})},Ht.createElement("div",{style:{color:"#191919"}},"\u786E\u8BA4\u662F\u5426\u63A5\u53D7\u7533\u8BC9\uFF1F\u4E00\u65E6\u63A5\u53D7\uFF0C\u88AB\u7533\u8BC9\u7684\u8BC4\u5206\u8BB0\u5F55\u5C06\u4F5C\u5E9F\u3002\u8BF7\u60A8\u8865\u5145\u533F\u8BC4\u8BC4\u5206\uFF1A"),Ht.createElement(ft.Z,{style:{marginTop:"20px"},colon:!1,items:[{key:"1",label:"\u7533\u8BC9\u4EBA",children:Ht.createElement("span",null,(ps=_t==null?void 0:_t.appeal_info)==null?void 0:ps.user_name)},{key:"2",label:"\u88AB\u7533\u8BC9\u4EBA",children:Ht.createElement("span",{style:{color:"#191919"}},(cl=_t==null?void 0:_t.user_info)==null?void 0:cl.user_name)},{key:"3",label:"\u88AB\u7533\u8BC9\u4EBA\u8BC4\u5206",children:Ht.createElement("span",{style:{color:"#191919"}},_t==null?void 0:_t.score)}]}),Ht.createElement(Ft.Z,{className:"mt20",wrap:!1},Ht.createElement(Ot.Z,null,Ht.createElement(we.default.Item,{label:"\u533F\u8BC4\u5206\u6570",name:"score",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u6570"}]},Ht.createElement(Te.Z,{min:1,max:100,step:1}))),Ht.createElement(Ot.Z,null,Ht.createElement("span",{className:"ml10",style:{lineHeight:"30px"}},"\u5206")),Ht.createElement(Ot.Z,null,Ht.createElement(we.default.Item,{className:"ml20",valuePropName:"checked",name:"is_appeal_penalty",initialValue:!0},Ht.createElement(tt.default,null,"\u6263\u9664\u8FDD\u89C4\u533F\u8BC4\u5206\u6570")))))),Ht.createElement(Ie.default,{title:"\u7F16\u8F91\u56DE\u590D",width:800,centered:!0,open:ah,confirmLoading:Bl,onCancel:()=>{ru(!1)},onOk:()=>{xo.submit()}},Ht.createElement(we.default,{form:xo,colon:!1,onFinish:Ea=>Gr(void 0,null,function*(){const zs=yield Ma(Ji({},Ea));(zs==null?void 0:zs.status)===0&&(De.ZP.success("\u4FEE\u6539\u6210\u529F"),ru(!1),ro!=null&&ro.getInitData&&(ro==null||ro.getInitData()))})},Ht.createElement(we.default.Item,{hidden:!0,name:"id",label:"\u8FD9\u4E2A\u662F\u7528\u6765\u6536\u96C6score_id\u7684"}),Ht.createElement(we.default.Item,{name:"content",label:"\u8BC4\u8BED"},Ht.createElement(Ge.h,{height:200,scrollId:"notes",placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u5BF9\u672C\u4F5C\u54C1\u7684\u8BC4\u8BED\uFF0C\u6700\u5927\u9650\u52362000\u4E2A\u5B57\u7B26"})))),Ht.createElement(On,{DataProps:{disabledScore:Vr=="teacher"},FormProps:{form:Ku,onFinish:(...Ea)=>Gr(void 0,[...Ea],function*(zs={}){const da=yield _c(or(Ji({},zs),{homeworkId:Os==null?void 0:Os.userId}));(da==null?void 0:da.status)===0&&(De.ZP.success("\u4FEE\u6539\u6210\u529F"),os(!1),ro!=null&&ro.getInitData&&(ro==null||ro.getInitData()),ro!=null&&ro.updateData&&(ro==null||ro.updateData()))})},ModalProps:{open:ms,onCancel:()=>{os(!1),Ku.resetFields()},onOk:()=>{Ku.submit()},confirmLoading:Sl}}))};var lt=(0,Ce.connect)(({user:Xn})=>({user:Xn}))(Ii),Rr=Object.defineProperty,Ko=Object.getOwnPropertySymbols,Yr=Object.prototype.hasOwnProperty,yo=Object.prototype.propertyIsEnumerable,Mr=(Xn,bn,_t)=>bn in Xn?Rr(Xn,bn,{enumerable:!0,configurable:!0,writable:!0,value:_t}):Xn[bn]=_t,mr=(Xn,bn)=>{for(var _t in bn||(bn={}))Yr.call(bn,_t)&&Mr(Xn,_t,bn[_t]);if(Ko)for(var _t of Ko(bn))yo.call(bn,_t)&&Mr(Xn,_t,bn[_t]);return Xn};const co=Xn=>React.createElement("svg",mr({width:18,height:18,xmlns:"http://www.w3.org/2000/svg"},Xn),React.createElement("title",null,"\u4F5C\u4E1A\u63D0\u4EA4\u5185\u5BB9"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M9 0C4.032 0 0 4.032 0 9s4.032 9 9 9 9-4.032 9-9-4.032-9-9-9Z",fill:"#009CDC"}),React.createElement("path",{d:"M11.511 5H5.956a.954.954 0 0 0-.952.951v6.032c0 .524.428.952.952.952h5.555a.954.954 0 0 0 .952-.952V5.951A.954.954 0 0 0 11.511 5ZM6.607 6.881h2.58a.34.34 0 0 1 0 .68h-2.58a.34.34 0 0 1 0-.68Zm1.603 4.17H6.608a.34.34 0 0 1 0-.68H8.21a.34.34 0 0 1 0 .68Zm2.445-1.744H6.607a.34.34 0 0 1 0-.68h4.048a.34.34 0 0 1 0 .68Z",fill:"#FFF"})));var Uo="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNOSAwQzQuMDMyIDAgMCA0LjAzMiAwIDlzNC4wMzIgOSA5IDkgOS00LjAzMiA5LTktNC4wMzItOS05LTlaIiBmaWxsPSIjMDA5Q0RDIi8+PHBhdGggZD0iTTExLjUxMSA1SDUuOTU2YS45NTQuOTU0IDAgMCAwLS45NTIuOTUxdjYuMDMyYzAgLjUyNC40MjguOTUyLjk1Mi45NTJoNS41NTVhLjk1NC45NTQgMCAwIDAgLjk1Mi0uOTUyVjUuOTUxQS45NTQuOTU0IDAgMCAwIDExLjUxMSA1Wk02LjYwNyA2Ljg4MWgyLjU4YS4zNC4zNCAwIDAgMSAwIC42OGgtMi41OGEuMzQuMzQgMCAwIDEgMC0uNjhabTEuNjAzIDQuMTdINi42MDhhLjM0LjM0IDAgMCAxIDAtLjY4SDguMjFhLjM0LjM0IDAgMCAxIDAgLjY4Wm0yLjQ0NS0xLjc0NEg2LjYwN2EuMzQuMzQgMCAwIDEgMC0uNjhoNC4wNDhhLjM0LjM0IDAgMCAxIDAgLjY4WiIgZmlsbD0iI0ZGRiIvPjwvZz48L3N2Zz4=",ao=Object.defineProperty,ra=Object.getOwnPropertySymbols,gr=Object.prototype.hasOwnProperty,Qi=Object.prototype.propertyIsEnumerable,xr=(Xn,bn,_t)=>bn in Xn?ao(Xn,bn,{enumerable:!0,configurable:!0,writable:!0,value:_t}):Xn[bn]=_t,fi=(Xn,bn)=>{for(var _t in bn||(bn={}))gr.call(bn,_t)&&xr(Xn,_t,bn[_t]);if(ra)for(var _t of ra(bn))Qi.call(bn,_t)&&xr(Xn,_t,bn[_t]);return Xn};const bo=Xn=>React.createElement("svg",fi({width:70,height:24,xmlns:"http://www.w3.org/2000/svg"},Xn),React.createElement("title",null,"\u5F85\u8BC4\u9605"),React.createElement("path",{d:"m70 0-6.146 11.936L70 24H0V0h70ZM40.992 5.229H31.7v1.646h3.768v5.83H31.21v1.663h4.258v5.796h1.724v-5.796h4.325v-1.663h-4.325v-5.83h3.801V5.23Zm4.157 2.167h-1.724v12.768h1.724V7.396Zm-32.34.958c-.845 1.848-2.112 3.46-3.802 4.821l.524 1.663a27.003 27.003 0 0 0 1.656-1.41v6.618h1.706v-8.55a12.713 12.713 0 0 0 1.42-2.437l-1.504-.705Zm44.793-3.142h-8.01v1.613h6.286v10.953c0 .47-.152.706-.44.706l-.658-.034c.186-.37.32-1.008.405-1.932l-1.487-.47c-.05.706-.135 1.126-.253 1.26a.506.506 0 0 1-.422.218h-.305c-.22 0-.32-.134-.32-.386v-1.966h1.672V10.32h-1.487c.406-.672.794-1.411 1.132-2.234l-1.656-.588a23.536 23.536 0 0 1-1.165 2.822H49l1.217-.605c-.406-.739-.811-1.428-1.25-2.032l-1.47.705c.439.571.861 1.21 1.25 1.932h-1.842v4.855h1.538c-.237 1.31-1.183 2.235-2.856 2.806l.913 1.445c2.06-.89 3.21-2.302 3.446-4.25h.913v2.301c0 1.042.456 1.58 1.368 1.58h1.082c.49 0 .878-.102 1.149-.27l.32 1.26h1.015c1.2 0 1.808-.588 1.808-1.764V5.212Zm-35.095 6.3H20.75v1.058h-6.353v1.63h6.353v3.394c0 .537-.253.823-.76.823-.676 0-1.403-.034-2.18-.101l.406 1.663h2.399c1.25 0 1.892-.655 1.892-1.949V14.2h1.775v-1.63h-1.775v-1.058Zm7.317-1.949h-4.022v1.68h2.315v5.964c0 .353-.152.655-.44.907l.66 1.58a25.152 25.152 0 0 0 3.328-2.672l-.49-1.848c-.473.47-.929.908-1.351 1.294V9.563Zm-13.146 4.973-1.369.857c.88.924 1.589 1.764 2.113 2.52l1.368-.958c-.49-.705-1.2-1.512-2.112-2.419Zm35.787-2.806v2.033h-3.97V11.73h3.97Zm-19.11-4.233L31.851 8a28.8 28.8 0 0 1 1.2 4.099l1.504-.37a35.374 35.374 0 0 0-1.2-4.233Zm5.796-.05c-.355 1.646-.76 3.023-1.234 4.099l1.47.52c.524-1.21.963-2.604 1.301-4.216l-1.537-.404ZM20.226 4.573H18.52V6.22h-3.565v1.596h3.565v1.596h-4.174v1.613h10.172V9.412h-4.292V7.816h3.6V6.22h-3.6V4.574Zm-8.025-.101c-.727 1.562-1.842 2.923-3.346 4.065l.524 1.68c2.061-1.512 3.497-3.175 4.342-5.023l-1.52-.722Zm16 .235-1.25 1.21c1.2.873 2.13 1.696 2.771 2.47L30.94 7.16a23.623 23.623 0 0 0-2.737-2.453Zm18.283-.269-1.606.706A15.91 15.91 0 0 1 46.686 7.9l1.572-.806a14.573 14.573 0 0 0-1.774-2.655Z",fill:"#FA6400",fillRule:"nonzero"}));var ua="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzAiIGhlaWdodD0iMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTcwIDAtNi4xNDYgMTEuOTM2TDcwIDI0SDBWMGg3MFpNNDAuOTkyIDUuMjI5SDMxLjd2MS42NDZoMy43Njh2NS44M0gzMS4yMXYxLjY2M2g0LjI1OHY1Ljc5NmgxLjcyNHYtNS43OTZoNC4zMjV2LTEuNjYzaC00LjMyNXYtNS44M2gzLjgwMVY1LjIzWm00LjE1NyAyLjE2N2gtMS43MjR2MTIuNzY4aDEuNzI0VjcuMzk2Wm0tMzIuMzQuOTU4Yy0uODQ1IDEuODQ4LTIuMTEyIDMuNDYtMy44MDIgNC44MjFsLjUyNCAxLjY2M2EyNy4wMDMgMjcuMDAzIDAgMCAwIDEuNjU2LTEuNDF2Ni42MThoMS43MDZ2LTguNTVhMTIuNzEzIDEyLjcxMyAwIDAgMCAxLjQyLTIuNDM3bC0xLjUwNC0uNzA1Wm00NC43OTMtMy4xNDJoLTguMDF2MS42MTNoNi4yODZ2MTAuOTUzYzAgLjQ3LS4xNTIuNzA2LS40NC43MDZsLS42NTgtLjAzNGMuMTg2LS4zNy4zMi0xLjAwOC40MDUtMS45MzJsLTEuNDg3LS40N2MtLjA1LjcwNi0uMTM1IDEuMTI2LS4yNTMgMS4yNmEuNTA2LjUwNiAwIDAgMS0uNDIyLjIxOGgtLjMwNWMtLjIyIDAtLjMyLS4xMzQtLjMyLS4zODZ2LTEuOTY2aDEuNjcyVjEwLjMyaC0xLjQ4N2MuNDA2LS42NzIuNzk0LTEuNDExIDEuMTMyLTIuMjM0bC0xLjY1Ni0uNTg4YTIzLjUzNiAyMy41MzYgMCAwIDEtMS4xNjUgMi44MjJINDlsMS4yMTctLjYwNWMtLjQwNi0uNzM5LS44MTEtMS40MjgtMS4yNS0yLjAzMmwtMS40Ny43MDVjLjQzOS41NzEuODYxIDEuMjEgMS4yNSAxLjkzMmgtMS44NDJ2NC44NTVoMS41MzhjLS4yMzcgMS4zMS0xLjE4MyAyLjIzNS0yLjg1NiAyLjgwNmwuOTEzIDEuNDQ1YzIuMDYtLjg5IDMuMjEtMi4zMDIgMy40NDYtNC4yNWguOTEzdjIuMzAxYzAgMS4wNDIuNDU2IDEuNTggMS4zNjggMS41OGgxLjA4MmMuNDkgMCAuODc4LS4xMDIgMS4xNDktLjI3bC4zMiAxLjI2aDEuMDE1YzEuMiAwIDEuODA4LS41ODggMS44MDgtMS43NjRWNS4yMTJabS0zNS4wOTUgNi4zSDIwLjc1djEuMDU4aC02LjM1M3YxLjYzaDYuMzUzdjMuMzk0YzAgLjUzNy0uMjUzLjgyMy0uNzYuODIzLS42NzYgMC0xLjQwMy0uMDM0LTIuMTgtLjEwMWwuNDA2IDEuNjYzaDIuMzk5YzEuMjUgMCAxLjg5Mi0uNjU1IDEuODkyLTEuOTQ5VjE0LjJoMS43NzV2LTEuNjNoLTEuNzc1di0xLjA1OFptNy4zMTctMS45NDloLTQuMDIydjEuNjhoMi4zMTV2NS45NjRjMCAuMzUzLS4xNTIuNjU1LS40NC45MDdsLjY2IDEuNThhMjUuMTUyIDI1LjE1MiAwIDAgMCAzLjMyOC0yLjY3MmwtLjQ5LTEuODQ4Yy0uNDczLjQ3LS45MjkuOTA4LTEuMzUxIDEuMjk0VjkuNTYzWm0tMTMuMTQ2IDQuOTczLTEuMzY5Ljg1N2MuODguOTI0IDEuNTg5IDEuNzY0IDIuMTEzIDIuNTJsMS4zNjgtLjk1OGMtLjQ5LS43MDUtMS4yLTEuNTEyLTIuMTEyLTIuNDE5Wm0zNS43ODctMi44MDZ2Mi4wMzNoLTMuOTdWMTEuNzNoMy45N1ptLTE5LjExLTQuMjMzTDMxLjg1MSA4YTI4LjggMjguOCAwIDAgMSAxLjIgNC4wOTlsMS41MDQtLjM3YTM1LjM3NCAzNS4zNzQgMCAwIDAtMS4yLTQuMjMzWm01Ljc5Ni0uMDVjLS4zNTUgMS42NDYtLjc2IDMuMDIzLTEuMjM0IDQuMDk5bDEuNDcuNTJjLjUyNC0xLjIxLjk2My0yLjYwNCAxLjMwMS00LjIxNmwtMS41MzctLjQwNFpNMjAuMjI2IDQuNTczSDE4LjUyVjYuMjJoLTMuNTY1djEuNTk2aDMuNTY1djEuNTk2aC00LjE3NHYxLjYxM2gxMC4xNzJWOS40MTJoLTQuMjkyVjcuODE2aDMuNlY2LjIyaC0zLjZWNC41NzRabS04LjAyNS0uMTAxYy0uNzI3IDEuNTYyLTEuODQyIDIuOTIzLTMuMzQ2IDQuMDY1bC41MjQgMS42OGMyLjA2MS0xLjUxMiAzLjQ5Ny0zLjE3NSA0LjM0Mi01LjAyM2wtMS41Mi0uNzIyWm0xNiAuMjM1LTEuMjUgMS4yMWMxLjIuODczIDIuMTMgMS42OTYgMi43NzEgMi40N0wzMC45NCA3LjE2YTIzLjYyMyAyMy42MjMgMCAwIDAtMi43MzctMi40NTNabTE4LjI4My0uMjY5LTEuNjA2LjcwNkExNS45MSAxNS45MSAwIDAgMSA0Ni42ODYgNy45bDEuNTcyLS44MDZhMTQuNTczIDE0LjU3MyAwIDAgMC0xLjc3NC0yLjY1NVoiIGZpbGw9IiNGQTY0MDAiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",ca=Object.defineProperty,oa=Object.getOwnPropertySymbols,Ra=Object.prototype.hasOwnProperty,ts=Object.prototype.propertyIsEnumerable,ds=(Xn,bn,_t)=>bn in Xn?ca(Xn,bn,{enumerable:!0,configurable:!0,writable:!0,value:_t}):Xn[bn]=_t,Qa=(Xn,bn)=>{for(var _t in bn||(bn={}))Ra.call(bn,_t)&&ds(Xn,_t,bn[_t]);if(oa)for(var _t of oa(bn))ts.call(bn,_t)&&ds(Xn,_t,bn[_t]);return Xn};const ks=Xn=>React.createElement("svg",Qa({width:17,height:14,xmlns:"http://www.w3.org/2000/svg"},Xn),React.createElement("title",null,"\u4EC5\u6559\u5E08\u53EF\u89C1"),React.createElement("g",{fill:"#CA7720",fillRule:"nonzero"},React.createElement("path",{d:"M7.046 13.302V14h1.566v-.698c0-.557.248-1.093.689-1.485a2.487 2.487 0 0 1 1.66-.615v-1.4c-2.163 0-3.915 1.565-3.915 3.5ZM0 9.802v1.4c.623 0 1.22.22 1.66.615.44.394.688.928.688 1.485V14h1.566v-.698c0-1.935-1.752-3.5-3.914-3.5Z"}),React.createElement("path",{d:"M10.96 3.502a4.878 4.878 0 0 0-.954-2.8 6.002 6.002 0 0 0-2.623 1.476A5.414 5.414 0 0 0 5.48 0a5.39 5.39 0 0 0-1.893 2.178A6 6 0 0 0 .957.702a4.87 4.87 0 0 0-.954 2.8V4.2C.005 6.633 2.007 8.695 4.7 9.044V14h1.566V9.045c2.693-.347 4.694-2.41 4.695-4.843v-.7Z"}),React.createElement("path",{d:"M10.977 8.084c-.061 0-.12-.004-.177-.013a.65.65 0 0 1-.15-.042.343.343 0 0 1-.175-.167.885.885 0 0 1-.075-.214l-.029-.133-.002-.009-.02-.092-.001-.006-.002-.005a.697.697 0 0 0-.005-.018l-.001-.002a.546.546 0 0 1-.013-.046.963.963 0 0 0-.009-.033l-.024-.08-.07-.047a.019.019 0 0 1-.008-.014l-.001-.005a.11.11 0 0 1-.003-.022l.005-.142v-.037c.001-.011.008-.02.02-.023l.011-.003a.422.422 0 0 1 .052-.012l.301-.039c.111-.013.23-.02.383-.02H11.011c.165 0 .333.016.5.047.096.018.188.048.27.074.06.02.106.032.15.04a.425.425 0 0 0 .072.008l-.198.512c-.02.054-.042.101-.065.145a.858.858 0 0 1-.2.25.499.499 0 0 1-.184.096 1.258 1.258 0 0 1-.38.052Zm-.205-.097c.022.005.042.01.062.013a1.09 1.09 0 0 0 .452-.026.435.435 0 0 0 .196-.104.61.61 0 0 0 .105-.138c.055-.095.095-.194.118-.294a.65.65 0 0 0 .018-.205l-.01-.126-.112-.058a.506.506 0 0 0-.13-.042l-.01-.002a1.717 1.717 0 0 0-.374-.039h-.008l-.038.002a4.311 4.311 0 0 0-.128.008 1.43 1.43 0 0 0-.25.041l-.133.036-.032.136a.514.514 0 0 0-.009.059v.001l-.002.018a.708.708 0 0 0-.002.155c.007.073.018.17.041.266a.57.57 0 0 0 .078.189c.019.027.04.05.063.067l.06.043h.045Zm2.28.091a1.4 1.4 0 0 1-.27-.025.75.75 0 0 1-.22-.077.594.594 0 0 1-.228-.228 1.782 1.782 0 0 1-.105-.212l-.21-.507a.565.565 0 0 0 .16-.029l.08-.028.075-.025c.09-.03.19-.05.315-.066a2.854 2.854 0 0 1 .525-.019h.009l.265.015c.11.008.219.024.34.043l.02.004.003.002c.01.002.017.007.018.021l.001.023v.006a.984.984 0 0 1 .005.138l-.034-.062-.048.167-.024.08-.082.288.014-.008c-.018.075-.04.152-.07.225a.512.512 0 0 1-.07.125.333.333 0 0 1-.178.115.855.855 0 0 1-.21.032 1.846 1.846 0 0 1-.08.002Zm-.106-1.115a1.641 1.641 0 0 0-.486.075l-.142.049-.012.15a.722.722 0 0 0 .023.21.868.868 0 0 0 .167.354c.066.083.15.136.249.157.109.024.208.035.303.035h.01a.815.815 0 0 0 .21-.024.319.319 0 0 0 .146-.076.342.342 0 0 0 .079-.128c.041-.11.064-.23.068-.358v-.008c.002-.042 0-.084-.002-.125v-.02a.489.489 0 0 0-.003-.039l-.004-.032-.012-.03a.424.424 0 0 0-.004-.01l-.044-.099-.104-.029a1.763 1.763 0 0 0-.396-.053h-.046Zm1.042 3.06-1.42 2.599-.21-.62.388-.78-.778-.782-.778.781.39.782-.251.633-1.38-2.613s-2.942 1.564-2.942 3.113c0 .428.176.823.605.823h8.731c.427 0 .607-.391.607-.817 0-1.454-2.962-3.12-2.962-3.12Zm.54-3.202-.003-.122-.102-.068c-.012-.01-.024-.017-.037-.024-.208-1.803-.194-2.866-2.287-2.551-.734.11-1.535-.118-1.99.215-.574.539-.615 1.348-.459 2.297-.035.019-.07.04-.103.063l-.102.068-.002.123c-.005.316.034.582.12.787a.788.788 0 0 0 .345.407c.182.62.444 1.084.772 1.419.357.365.787.572 1.273.654l.043.007.044-.01c.538-.113.968-.329 1.31-.69.319-.335.556-.787.73-1.39a.8.8 0 0 0 .332-.41c.083-.203.12-.465.115-.775Zm-.556.6c-.041.102-.098.17-.17.194l-.119.042-.032.12c-.156.58-.365.999-.644 1.293-.264.277-.598.449-1.02.544a1.78 1.78 0 0 1-.967-.509c-.292-.297-.524-.729-.685-1.322l-.034-.126-.126-.04c-.074-.022-.132-.088-.174-.19-.043-.101-.069-.23-.08-.383.116-.018.245-.05.308-.009l.022-.074h.003l.01-.05c.034-.137.073-1 .108-1.139.014-.04.019-.086.045-.12.169.23 1.444.257 2.185-.257l-.139.375.141.028.158-.253-.02.177.15.02.093-.291c.184.105.387.246.568.17.06.136.107.967.137 1.127l.039.206.068-.004.032.107c.08-.01.15-.011.22-.013a1.25 1.25 0 0 1-.077.376Z"})));var Ds="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iI0NBNzcyMCIgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNNy4wNDYgMTMuMzAyVjE0aDEuNTY2di0uNjk4YzAtLjU1Ny4yNDgtMS4wOTMuNjg5LTEuNDg1YTIuNDg3IDIuNDg3IDAgMCAxIDEuNjYtLjYxNXYtMS40Yy0yLjE2MyAwLTMuOTE1IDEuNTY1LTMuOTE1IDMuNVpNMCA5LjgwMnYxLjRjLjYyMyAwIDEuMjIuMjIgMS42Ni42MTUuNDQuMzk0LjY4OC45MjguNjg4IDEuNDg1VjE0aDEuNTY2di0uNjk4YzAtMS45MzUtMS43NTItMy41LTMuOTE0LTMuNVoiLz48cGF0aCBkPSJNMTAuOTYgMy41MDJhNC44NzggNC44NzggMCAwIDAtLjk1NC0yLjggNi4wMDIgNi4wMDIgMCAwIDAtMi42MjMgMS40NzZBNS40MTQgNS40MTQgMCAwIDAgNS40OCAwYTUuMzkgNS4zOSAwIDAgMC0xLjg5MyAyLjE3OEE2IDYgMCAwIDAgLjk1Ny43MDJhNC44NyA0Ljg3IDAgMCAwLS45NTQgMi44VjQuMkMuMDA1IDYuNjMzIDIuMDA3IDguNjk1IDQuNyA5LjA0NFYxNGgxLjU2NlY5LjA0NWMyLjY5My0uMzQ3IDQuNjk0LTIuNDEgNC42OTUtNC44NDN2LS43WiIvPjxnPjxwYXRoIGQ9Ik0xMC45NzcgOC4wODRjLS4wNjEgMC0uMTItLjAwNC0uMTc3LS4wMTNhLjY1LjY1IDAgMCAxLS4xNS0uMDQyLjM0My4zNDMgMCAwIDEtLjE3NS0uMTY3Ljg4NS44ODUgMCAwIDEtLjA3NS0uMjE0bC0uMDI5LS4xMzMtLjAwMi0uMDA5LS4wMi0uMDkyLS4wMDEtLjAwNi0uMDAyLS4wMDVhLjY5Ny42OTcgMCAwIDAtLjAwNS0uMDE4bC0uMDAxLS4wMDJhLjU0Ni41NDYgMCAwIDEtLjAxMy0uMDQ2Ljk2My45NjMgMCAwIDAtLjAwOS0uMDMzbC0uMDI0LS4wOC0uMDctLjA0N2EuMDE5LjAxOSAwIDAgMS0uMDA4LS4wMTRsLS4wMDEtLjAwNWEuMTEuMTEgMCAwIDEtLjAwMy0uMDIybC4wMDUtLjE0MnYtLjAzN2MuMDAxLS4wMTEuMDA4LS4wMi4wMi0uMDIzbC4wMTEtLjAwM2EuNDIyLjQyMiAwIDAgMSAuMDUyLS4wMTJsLjMwMS0uMDM5Yy4xMTEtLjAxMy4yMy0uMDIuMzgzLS4wMkgxMS4wMTFjLjE2NSAwIC4zMzMuMDE2LjUuMDQ3LjA5Ni4wMTguMTg4LjA0OC4yNy4wNzQuMDYuMDIuMTA2LjAzMi4xNS4wNGEuNDI1LjQyNSAwIDAgMCAuMDcyLjAwOGwtLjE5OC41MTJjLS4wMi4wNTQtLjA0Mi4xMDEtLjA2NS4xNDVhLjg1OC44NTggMCAwIDEtLjIuMjUuNDk5LjQ5OSAwIDAgMS0uMTg0LjA5NiAxLjI1OCAxLjI1OCAwIDAgMS0uMzguMDUyWm0tLjIwNS0uMDk3Yy4wMjIuMDA1LjA0Mi4wMS4wNjIuMDEzYTEuMDkgMS4wOSAwIDAgMCAuNDUyLS4wMjYuNDM1LjQzNSAwIDAgMCAuMTk2LS4xMDQuNjEuNjEgMCAwIDAgLjEwNS0uMTM4Yy4wNTUtLjA5NS4wOTUtLjE5NC4xMTgtLjI5NGEuNjUuNjUgMCAwIDAgLjAxOC0uMjA1bC0uMDEtLjEyNi0uMTEyLS4wNThhLjUwNi41MDYgMCAwIDAtLjEzLS4wNDJsLS4wMS0uMDAyYTEuNzE3IDEuNzE3IDAgMCAwLS4zNzQtLjAzOWgtLjAwOGwtLjAzOC4wMDJhNC4zMTEgNC4zMTEgMCAwIDAtLjEyOC4wMDggMS40MyAxLjQzIDAgMCAwLS4yNS4wNDFsLS4xMzMuMDM2LS4wMzIuMTM2YS41MTQuNTE0IDAgMCAwLS4wMDkuMDU5di4wMDFsLS4wMDIuMDE4YS43MDguNzA4IDAgMCAwLS4wMDIuMTU1Yy4wMDcuMDczLjAxOC4xNy4wNDEuMjY2YS41Ny41NyAwIDAgMCAuMDc4LjE4OWMuMDE5LjAyNy4wNC4wNS4wNjMuMDY3bC4wNi4wNDNoLjA0NVptMi4yOC4wOTFhMS40IDEuNCAwIDAgMS0uMjctLjAyNS43NS43NSAwIDAgMS0uMjItLjA3Ny41OTQuNTk0IDAgMCAxLS4yMjgtLjIyOCAxLjc4MiAxLjc4MiAwIDAgMS0uMTA1LS4yMTJsLS4yMS0uNTA3YS41NjUuNTY1IDAgMCAwIC4xNi0uMDI5bC4wOC0uMDI4LjA3NS0uMDI1Yy4wOS0uMDMuMTktLjA1LjMxNS0uMDY2YTIuODU0IDIuODU0IDAgMCAxIC41MjUtLjAxOWguMDA5bC4yNjUuMDE1Yy4xMS4wMDguMjE5LjAyNC4zNC4wNDNsLjAyLjAwNC4wMDMuMDAyYy4wMS4wMDIuMDE3LjAwNy4wMTguMDIxbC4wMDEuMDIzdi4wMDZhLjk4NC45ODQgMCAwIDEgLjAwNS4xMzhsLS4wMzQtLjA2Mi0uMDQ4LjE2Ny0uMDI0LjA4LS4wODIuMjg4LjAxNC0uMDA4Yy0uMDE4LjA3NS0uMDQuMTUyLS4wNy4yMjVhLjUxMi41MTIgMCAwIDEtLjA3LjEyNS4zMzMuMzMzIDAgMCAxLS4xNzguMTE1Ljg1NS44NTUgMCAwIDEtLjIxLjAzMiAxLjg0NiAxLjg0NiAwIDAgMS0uMDguMDAyWm0tLjEwNi0xLjExNWExLjY0MSAxLjY0MSAwIDAgMC0uNDg2LjA3NWwtLjE0Mi4wNDktLjAxMi4xNWEuNzIyLjcyMiAwIDAgMCAuMDIzLjIxLjg2OC44NjggMCAwIDAgLjE2Ny4zNTRjLjA2Ni4wODMuMTUuMTM2LjI0OS4xNTcuMTA5LjAyNC4yMDguMDM1LjMwMy4wMzVoLjAxYS44MTUuODE1IDAgMCAwIC4yMS0uMDI0LjMxOS4zMTkgMCAwIDAgLjE0Ni0uMDc2LjM0Mi4zNDIgMCAwIDAgLjA3OS0uMTI4Yy4wNDEtLjExLjA2NC0uMjMuMDY4LS4zNTh2LS4wMDhjLjAwMi0uMDQyIDAtLjA4NC0uMDAyLS4xMjV2LS4wMmEuNDg5LjQ4OSAwIDAgMC0uMDAzLS4wMzlsLS4wMDQtLjAzMi0uMDEyLS4wM2EuNDI0LjQyNCAwIDAgMC0uMDA0LS4wMWwtLjA0NC0uMDk5LS4xMDQtLjAyOWExLjc2MyAxLjc2MyAwIDAgMC0uMzk2LS4wNTNoLS4wNDZabTEuMDQyIDMuMDYtMS40MiAyLjU5OS0uMjEtLjYyLjM4OC0uNzgtLjc3OC0uNzgyLS43NzguNzgxLjM5Ljc4Mi0uMjUxLjYzMy0xLjM4LTIuNjEzcy0yLjk0MiAxLjU2NC0yLjk0MiAzLjExM2MwIC40MjguMTc2LjgyMy42MDUuODIzaDguNzMxYy40MjcgMCAuNjA3LS4zOTEuNjA3LS44MTcgMC0xLjQ1NC0yLjk2Mi0zLjEyLTIuOTYyLTMuMTJabS41NC0zLjIwMi0uMDAzLS4xMjItLjEwMi0uMDY4Yy0uMDEyLS4wMS0uMDI0LS4wMTctLjAzNy0uMDI0LS4yMDgtMS44MDMtLjE5NC0yLjg2Ni0yLjI4Ny0yLjU1MS0uNzM0LjExLTEuNTM1LS4xMTgtMS45OS4yMTUtLjU3NC41MzktLjYxNSAxLjM0OC0uNDU5IDIuMjk3LS4wMzUuMDE5LS4wNy4wNC0uMTAzLjA2M2wtLjEwMi4wNjgtLjAwMi4xMjNjLS4wMDUuMzE2LjAzNC41ODIuMTIuNzg3YS43ODguNzg4IDAgMCAwIC4zNDUuNDA3Yy4xODIuNjIuNDQ0IDEuMDg0Ljc3MiAxLjQxOS4zNTcuMzY1Ljc4Ny41NzIgMS4yNzMuNjU0bC4wNDMuMDA3LjA0NC0uMDFjLjUzOC0uMTEzLjk2OC0uMzI5IDEuMzEtLjY5LjMxOS0uMzM1LjU1Ni0uNzg3LjczLTEuMzlhLjguOCAwIDAgMCAuMzMyLS40MWMuMDgzLS4yMDMuMTItLjQ2NS4xMTUtLjc3NVptLS41NTYuNmMtLjA0MS4xMDItLjA5OC4xNy0uMTcuMTk0bC0uMTE5LjA0Mi0uMDMyLjEyYy0uMTU2LjU4LS4zNjUuOTk5LS42NDQgMS4yOTMtLjI2NC4yNzctLjU5OC40NDktMS4wMi41NDRhMS43OCAxLjc4IDAgMCAxLS45NjctLjUwOWMtLjI5Mi0uMjk3LS41MjQtLjcyOS0uNjg1LTEuMzIybC0uMDM0LS4xMjYtLjEyNi0uMDRjLS4wNzQtLjAyMi0uMTMyLS4wODgtLjE3NC0uMTktLjA0My0uMTAxLS4wNjktLjIzLS4wOC0uMzgzLjExNi0uMDE4LjI0NS0uMDUuMzA4LS4wMDlsLjAyMi0uMDc0aC4wMDNsLjAxLS4wNWMuMDM0LS4xMzcuMDczLTEgLjEwOC0xLjEzOS4wMTQtLjA0LjAxOS0uMDg2LjA0NS0uMTIuMTY5LjIzIDEuNDQ0LjI1NyAyLjE4NS0uMjU3bC0uMTM5LjM3NS4xNDEuMDI4LjE1OC0uMjUzLS4wMi4xNzcuMTUuMDIuMDkzLS4yOTFjLjE4NC4xMDUuMzg3LjI0Ni41NjguMTcuMDYuMTM2LjEwNy45NjcuMTM3IDEuMTI3bC4wMzkuMjA2LjA2OC0uMDA0LjAzMi4xMDdjLjA4LS4wMS4xNS0uMDExLjIyLS4wMTNhMS4yNSAxLjI1IDAgMCAxLS4wNzcuMzc2WiIvPjwvZz48L2c+PC9zdmc+",jn=Object.defineProperty,gs=Object.getOwnPropertySymbols,Ql=Object.prototype.hasOwnProperty,Kl=Object.prototype.propertyIsEnumerable,Oo=(Xn,bn,_t)=>bn in Xn?jn(Xn,bn,{enumerable:!0,configurable:!0,writable:!0,value:_t}):Xn[bn]=_t,ma=(Xn,bn)=>{for(var _t in bn||(bn={}))Ql.call(bn,_t)&&Oo(Xn,_t,bn[_t]);if(gs)for(var _t of gs(bn))Kl.call(bn,_t)&&Oo(Xn,_t,bn[_t]);return Xn};const hs=Xn=>React.createElement("svg",ma({width:11,height:14,xmlns:"http://www.w3.org/2000/svg"},Xn),React.createElement("title",null,"\u8BC4\u8BED"),React.createElement("g",{fill:"#000",fillRule:"nonzero"},React.createElement("path",{d:"M7.046 13.302V14h1.566v-.698c0-.557.248-1.093.689-1.485a2.487 2.487 0 0 1 1.66-.615v-1.4c-2.163 0-3.915 1.565-3.915 3.5ZM0 9.802v1.4c.623 0 1.22.22 1.66.615.44.394.688.928.688 1.485V14h1.566v-.698c0-1.935-1.752-3.5-3.914-3.5Z"}),React.createElement("path",{d:"M10.96 3.502a4.878 4.878 0 0 0-.954-2.8 6.002 6.002 0 0 0-2.623 1.476A5.414 5.414 0 0 0 5.48 0a5.39 5.39 0 0 0-1.893 2.178A6 6 0 0 0 .957.702a4.87 4.87 0 0 0-.954 2.8V4.2C.005 6.633 2.007 8.695 4.7 9.044V14h1.566V9.045c2.693-.347 4.694-2.41 4.695-4.843v-.7Z"})));var aa="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTEiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNNy4wNDYgMTMuMzAyVjE0aDEuNTY2di0uNjk4YzAtLjU1Ny4yNDgtMS4wOTMuNjg5LTEuNDg1YTIuNDg3IDIuNDg3IDAgMCAxIDEuNjYtLjYxNXYtMS40Yy0yLjE2MyAwLTMuOTE1IDEuNTY1LTMuOTE1IDMuNVpNMCA5LjgwMnYxLjRjLjYyMyAwIDEuMjIuMjIgMS42Ni42MTUuNDQuMzk0LjY4OC45MjguNjg4IDEuNDg1VjE0aDEuNTY2di0uNjk4YzAtMS45MzUtMS43NTItMy41LTMuOTE0LTMuNVoiLz48cGF0aCBkPSJNMTAuOTYgMy41MDJhNC44NzggNC44NzggMCAwIDAtLjk1NC0yLjggNi4wMDIgNi4wMDIgMCAwIDAtMi42MjMgMS40NzZBNS40MTQgNS40MTQgMCAwIDAgNS40OCAwYTUuMzkgNS4zOSAwIDAgMC0xLjg5MyAyLjE3OEE2IDYgMCAwIDAgLjk1Ny43MDJhNC44NyA0Ljg3IDAgMCAwLS45NTQgMi44VjQuMkMuMDA1IDYuNjMzIDIuMDA3IDguNjk1IDQuNyA5LjA0NFYxNGgxLjU2NlY5LjA0NWMyLjY5My0uMzQ3IDQuNjk0LTIuNDEgNC42OTUtNC44NDN2LS43WiIvPjwvZz48L3N2Zz4=",Xr=Object.defineProperty,Qr=Object.getOwnPropertySymbols,ns=Object.prototype.hasOwnProperty,so=Object.prototype.propertyIsEnumerable,Po=(Xn,bn,_t)=>bn in Xn?Xr(Xn,bn,{enumerable:!0,configurable:!0,writable:!0,value:_t}):Xn[bn]=_t,Mo=(Xn,bn)=>{for(var _t in bn||(bn={}))ns.call(bn,_t)&&Po(Xn,_t,bn[_t]);if(Qr)for(var _t of Qr(bn))so.call(bn,_t)&&Po(Xn,_t,bn[_t]);return Xn};const $i=Xn=>React.createElement("svg",Mo({width:20,height:20,xmlns:"http://www.w3.org/2000/svg"},Xn),React.createElement("title",null,"\u8FD4\u56DE"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"#3061D0",width:20,height:20,rx:4}),React.createElement("g",{stroke:"#FFF",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2},React.createElement("path",{d:"M4.678 10.176h10.526M8.187 13.684l-3.509-3.509 3.509-3.508"}))));var Ja="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSIjMzA2MUQwIiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHJ4PSI0Ii8+PGcgc3Ryb2tlPSIjRkZGIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMiI+PHBhdGggZD0iTTQuNjc4IDEwLjE3NmgxMC41MjZNOC4xODcgMTMuNjg0bC0zLjUwOS0zLjUwOSAzLjUwOS0zLjUwOCIvPjwvZz48L2c+PC9zdmc+",xs=Object.defineProperty,ul=Object.getOwnPropertySymbols,Yl=Object.prototype.hasOwnProperty,Jl=Object.prototype.propertyIsEnumerable,_i=(Xn,bn,_t)=>bn in Xn?xs(Xn,bn,{enumerable:!0,configurable:!0,writable:!0,value:_t}):Xn[bn]=_t,is=(Xn,bn)=>{for(var _t in bn||(bn={}))Yl.call(bn,_t)&&_i(Xn,_t,bn[_t]);if(ul)for(var _t of ul(bn))Jl.call(bn,_t)&&_i(Xn,_t,bn[_t]);return Xn};const Hs=Xn=>React.createElement("svg",is({width:70,height:24,xmlns:"http://www.w3.org/2000/svg"},Xn),React.createElement("title",null,"\u5DF2\u8BC4\u9605"),React.createElement("path",{d:"m70 0-6.146 11.936L70 24H0V0h70ZM40.74 5.229h-9.292v1.646h3.768v5.83h-4.258v1.663h4.258v5.796h1.723v-5.796h4.326v-1.663h-4.326v-5.83h3.802V5.23Zm4.157 2.167h-1.723v12.768h1.723V7.396ZM57.35 5.212h-8.009v1.613h6.286v10.953c0 .47-.152.706-.44.706l-.659-.034c.186-.37.321-1.008.406-1.932l-1.487-.47c-.05.706-.135 1.126-.253 1.26a.506.506 0 0 1-.423.218h-.304c-.22 0-.321-.134-.321-.386v-1.966h1.673V10.32h-1.487c.405-.672.794-1.411 1.132-2.234l-1.656-.588a23.536 23.536 0 0 1-1.166 2.822H48.75l1.216-.605c-.405-.739-.81-1.428-1.25-2.032l-1.47.705c.44.571.862 1.21 1.25 1.932h-1.841v4.855h1.537c-.236 1.31-1.183 2.235-2.855 2.806l.912 1.445c2.061-.89 3.21-2.302 3.447-4.25h.912v2.301c0 1.042.457 1.58 1.369 1.58h1.081c.49 0 .879-.102 1.15-.27l.32 1.26h1.014c1.2 0 1.808-.588 1.808-1.764V5.212ZM29.572 9.563h-4.021v1.68h2.315v5.964c0 .353-.152.655-.44.907l.66 1.58a25.152 25.152 0 0 0 3.328-2.672l-.49-1.848c-.473.47-.93.908-1.352 1.294V9.563Zm-7.215-4.217H9.465v1.68h11.101v3.83h-8.634V8.64h-1.757v8.703c0 1.512.71 2.268 2.163 2.268h9.394c.676-.034 1.234-.236 1.64-.605.337-.37.624-1.63.844-3.78l-1.723-.538c-.102 1.714-.254 2.705-.49 2.94-.237.202-.49.303-.76.303h-8.398c-.609 0-.913-.303-.913-.908v-4.485h10.425v-7.19Zm29.857 6.384v2.033h-3.971V11.73h3.97Zm-19.11-4.233L31.6 8a28.8 28.8 0 0 1 1.2 4.099l1.503-.37a35.374 35.374 0 0 0-1.2-4.233Zm5.795-.05c-.355 1.646-.76 3.023-1.233 4.099l1.47.52c.523-1.21.963-2.604 1.3-4.216L38.9 7.446ZM27.95 4.707l-1.25 1.21c1.2.873 2.129 1.696 2.77 2.47l1.217-1.227a23.623 23.623 0 0 0-2.737-2.453Zm18.282-.269-1.605.706A15.91 15.91 0 0 1 46.435 7.9l1.571-.806a14.573 14.573 0 0 0-1.774-2.655Z",fill:"#37AD83",fillRule:"nonzero"}));var tu="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzAiIGhlaWdodD0iMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTcwIDAtNi4xNDYgMTEuOTM2TDcwIDI0SDBWMGg3MFpNNDAuNzQgNS4yMjloLTkuMjkydjEuNjQ2aDMuNzY4djUuODNoLTQuMjU4djEuNjYzaDQuMjU4djUuNzk2aDEuNzIzdi01Ljc5Nmg0LjMyNnYtMS42NjNoLTQuMzI2di01LjgzaDMuODAyVjUuMjNabTQuMTU3IDIuMTY3aC0xLjcyM3YxMi43NjhoMS43MjNWNy4zOTZaTTU3LjM1IDUuMjEyaC04LjAwOXYxLjYxM2g2LjI4NnYxMC45NTNjMCAuNDctLjE1Mi43MDYtLjQ0LjcwNmwtLjY1OS0uMDM0Yy4xODYtLjM3LjMyMS0xLjAwOC40MDYtMS45MzJsLTEuNDg3LS40N2MtLjA1LjcwNi0uMTM1IDEuMTI2LS4yNTMgMS4yNmEuNTA2LjUwNiAwIDAgMS0uNDIzLjIxOGgtLjMwNGMtLjIyIDAtLjMyMS0uMTM0LS4zMjEtLjM4NnYtMS45NjZoMS42NzNWMTAuMzJoLTEuNDg3Yy40MDUtLjY3Mi43OTQtMS40MTEgMS4xMzItMi4yMzRsLTEuNjU2LS41ODhhMjMuNTM2IDIzLjUzNiAwIDAgMS0xLjE2NiAyLjgyMkg0OC43NWwxLjIxNi0uNjA1Yy0uNDA1LS43MzktLjgxLTEuNDI4LTEuMjUtMi4wMzJsLTEuNDcuNzA1Yy40NC41NzEuODYyIDEuMjEgMS4yNSAxLjkzMmgtMS44NDF2NC44NTVoMS41MzdjLS4yMzYgMS4zMS0xLjE4MyAyLjIzNS0yLjg1NSAyLjgwNmwuOTEyIDEuNDQ1YzIuMDYxLS44OSAzLjIxLTIuMzAyIDMuNDQ3LTQuMjVoLjkxMnYyLjMwMWMwIDEuMDQyLjQ1NyAxLjU4IDEuMzY5IDEuNThoMS4wODFjLjQ5IDAgLjg3OS0uMTAyIDEuMTUtLjI3bC4zMiAxLjI2aDEuMDE0YzEuMiAwIDEuODA4LS41ODggMS44MDgtMS43NjRWNS4yMTJaTTI5LjU3MiA5LjU2M2gtNC4wMjF2MS42OGgyLjMxNXY1Ljk2NGMwIC4zNTMtLjE1Mi42NTUtLjQ0LjkwN2wuNjYgMS41OGEyNS4xNTIgMjUuMTUyIDAgMCAwIDMuMzI4LTIuNjcybC0uNDktMS44NDhjLS40NzMuNDctLjkzLjkwOC0xLjM1MiAxLjI5NFY5LjU2M1ptLTcuMjE1LTQuMjE3SDkuNDY1djEuNjhoMTEuMTAxdjMuODNoLTguNjM0VjguNjRoLTEuNzU3djguNzAzYzAgMS41MTIuNzEgMi4yNjggMi4xNjMgMi4yNjhoOS4zOTRjLjY3Ni0uMDM0IDEuMjM0LS4yMzYgMS42NC0uNjA1LjMzNy0uMzcuNjI0LTEuNjMuODQ0LTMuNzhsLTEuNzIzLS41MzhjLS4xMDIgMS43MTQtLjI1NCAyLjcwNS0uNDkgMi45NC0uMjM3LjIwMi0uNDkuMzAzLS43Ni4zMDNoLTguMzk4Yy0uNjA5IDAtLjkxMy0uMzAzLS45MTMtLjkwOHYtNC40ODVoMTAuNDI1di03LjE5Wm0yOS44NTcgNi4zODR2Mi4wMzNoLTMuOTcxVjExLjczaDMuOTdabS0xOS4xMS00LjIzM0wzMS42IDhhMjguOCAyOC44IDAgMCAxIDEuMiA0LjA5OWwxLjUwMy0uMzdhMzUuMzc0IDM1LjM3NCAwIDAgMC0xLjItNC4yMzNabTUuNzk1LS4wNWMtLjM1NSAxLjY0Ni0uNzYgMy4wMjMtMS4yMzMgNC4wOTlsMS40Ny41MmMuNTIzLTEuMjEuOTYzLTIuNjA0IDEuMy00LjIxNkwzOC45IDcuNDQ2Wk0yNy45NSA0LjcwN2wtMS4yNSAxLjIxYzEuMi44NzMgMi4xMjkgMS42OTYgMi43NyAyLjQ3bDEuMjE3LTEuMjI3YTIzLjYyMyAyMy42MjMgMCAwIDAtMi43MzctMi40NTNabTE4LjI4Mi0uMjY5LTEuNjA1LjcwNkExNS45MSAxNS45MSAwIDAgMSA0Ni40MzUgNy45bDEuNTcxLS44MDZhMTQuNTczIDE0LjU3MyAwIDAgMC0xLjc3NC0yLjY1NVoiIGZpbGw9IiMzN0FEODMiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",ui=oe(59301),du=Object.defineProperty,wo=Object.defineProperties,Uc=Object.getOwnPropertyDescriptors,Wl=Object.getOwnPropertySymbols,$l=Object.prototype.hasOwnProperty,Fl=Object.prototype.propertyIsEnumerable,Zu=(Xn,bn,_t)=>bn in Xn?du(Xn,bn,{enumerable:!0,configurable:!0,writable:!0,value:_t}):Xn[bn]=_t,Ws=(Xn,bn)=>{for(var _t in bn||(bn={}))$l.call(bn,_t)&&Zu(Xn,_t,bn[_t]);if(Wl)for(var _t of Wl(bn))Fl.call(bn,_t)&&Zu(Xn,_t,bn[_t]);return Xn},Zs=(Xn,bn)=>wo(Xn,Uc(bn)),Al=(Xn,bn,_t)=>new Promise((Ao,ta)=>{var sa=jr=>{try{Jr(_t.next(jr))}catch(rr){ta(rr)}},Vr=jr=>{try{Jr(_t.throw(jr))}catch(rr){ta(rr)}},Jr=jr=>jr.done?Ao(jr.value):Promise.resolve(jr.value).then(sa,Vr);Jr((_t=_t.apply(Xn,bn)).next())});const Jc={0:"\u672A\u63D0\u4EA4",1:"\u6309\u65F6\u63D0\u4EA4","-1":"\u91CD\u505A\u4E2D",2:"\u5EF6\u65F6\u63D0\u4EA4",6:"\u6309\u65F6\u63D0\u4EA4\uFF08\u5305\u542B\u7EBF\u4E0B\u548C\u6559\u5E08\u63D0\u4EA4\uFF09"},qc={0:"#4D5865",1:"#FFFFFF","-1":"#FFFFFF",2:"#AC4C0C",6:"#FFFFFF"},Pc={0:"#D0D8E0",1:"#37AD83","-1":"#776FE8",2:"#FFD28D",6:"#37AD83"},md=({shixunHomeworks:Xn,globalSetting:bn,loading:_t,user:Ao,classroomList:ta,dispatch:sa})=>{var Vr,Jr,jr,rr,ro,Na,Ia,Ho,Bo,rl,Bs,ka,Nl,js,$s,fr,va,Wt,di,Ns,ps,cl,Os,nu,hu,Vu,rs,Eo;const[Fa]=(0,Ce.useSearchParams)(),Fr=(0,Ce.useParams)(),[za]=we.default.useForm(),[qo]=we.default.useForm(),{userInfo:ol}=Ao,{studentWorkDetail:Zi,studentWorkCommon:oo,studentWorkSupplyDetail:iu,workList:Sl,workDetail:_c,actionTabs:Xo}=Xn,[,Bl,Ma,Ka]=(0,Zt.U)(ke.wT,{userId:Fr==null?void 0:Fr.userId}),[,ms,os,ya]=(0,Zt.U)(ke.Wr,{userId:Fr==null?void 0:Fr.userId}),[,Ku,xo]=(0,Zt.U)(ke.G$,{userId:Fr==null?void 0:Fr.userId,id:Fr==null?void 0:Fr.userId}),[Gc,pa]=(0,se.useState)("1"),[ah,ru]=(0,se.useState)(!1),[jl,Td]=(0,se.useState)({last:!1}),[zl,Ea]=(0,se.useState)({last:!1}),zs=(0,se.useRef)(),[da,kl]=(0,se.useState)(!1),[Yu,Ac]=(0,se.useState)("");let[Id,$u]=(0,se.useState)([]);const[gu,Sc]=(0,se.useState)(!1),Xu=(0,se.useRef)(),[Nc,td]=(0,se.useState)(!1),[nd,xc]=(0,se.useState)(""),[Mh,Ul]=(0,se.useState)(!1),[Tu,Ud]=(0,se.useState)(!1),[mt,Et]=(0,se.useState)(""),[rn,cn]=(0,se.useState)(!0),[Dn,xn]=Ie.default.useModal(),[ri,ai]=(0,se.useState)(!1),[qn,bi]=(0,se.useState)(!1),[Ni,Ei]=(0,se.useState)(!1),[qi,Ki]=(0,se.useState)(!1),[Ui,Lr]=(0,se.useState)(!1),[Vi,Pr]=(0,se.useState)(!1),[yr,zr]=(0,se.useState)(!0),[So,Lo]=(0,se.useState)(!1),[Tr,mo]=(0,se.useState)({content:"",type:""}),[Zo,Hr]=(0,se.useState)({status:0}),uo=[{title:"\u63D0\u4EA4\u6B21\u6570",dataIndex:"id",ellipsis:!0,width:80,render:(wi,er,qr)=>qr+1},{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"commit_time",ellipsis:!0,render:wi=>Se()(wi).format("YYYY-MM-DD HH:mm")},{title:"\u63D0\u4EA4\u9636\u6BB5",dataIndex:"stage_name",ellipsis:!0,width:180,render:(wi,er)=>ui.createElement(ui.Fragment,null,wi,er!=null&&er.is_redo?ui.createElement("span",{style:{color:"#FF9D18"}},"\uFF08\u6253\u56DE\u91CD\u505A\uFF09"):(er==null?void 0:er.is_redo_commit)&&ui.createElement("span",{style:{color:"#2FA34F"}},"\uFF08\u91CD\u505A\u63D0\u4EA4\uFF09"))},{title:"\u6559\u5E08\u8BC4\u5206",dataIndex:"teacher_score",ellipsis:!0},{title:"\u52A9\u6559\u8BC4\u5206",dataIndex:"teaching_asistant_score",ellipsis:!0},{title:"\u533F\u8BC4\u5F97\u5206",dataIndex:"student_score",ellipsis:!0},{title:"\u64CD\u4F5C",dataIndex:"history_id",ellipsis:!0,width:80,align:"right",render:(wi,er)=>ui.createElement("a",{target:"_blank",href:`/classrooms/${Fr==null?void 0:Fr.coursesId}/common_homework/${Fr==null?void 0:Fr.categoryId}/review/${er==null?void 0:er.student_work_id}?history_id=${er==null?void 0:er.history_id}`},"\u67E5\u770B")}],vr=(wi={key:""})=>{sa({type:"shixunHomeworks/setActionTabs",payload:wi}),wi.key===""&&(za.resetFields(),qo.resetFields())},cr=()=>{sa({type:"shixunHomeworks/getStudentWorkCommon",payload:Ws({is_invalid:!1,history_id:Fa.get("history_id")},Fr)})},to=wi=>{let er=0;for(let qr=0;qr<wi.length;qr++)wi[qr].score!=""&&(er+=Number(wi[qr].score));return er.toFixed(2)},Co=wi=>Al(void 0,null,function*(){var er;Zi!=null&&Zi.single_score||(wi.score=to(wi.score_details)),wi.attachment_ids=(er=wi.attachment_ids)==null?void 0:er.map(La=>{var ho;return(ho=La==null?void 0:La.response)==null?void 0:ho.id}),Sc(!0),(yield(0,ke.yy)(Zs(Ws({},wi),{userId:Fr.userId,is_hidden_comment:So}))).status===0&&(za.resetFields(),Lo(!1),Zi!=null&&Zi.next_work_id?(De.ZP.success("\u8BC4\u9605\u6210\u529F\uFF01\u5DF2\u4E3A\u60A8\u81EA\u52A8\u5207\u6362\u81F3\u4E0B\u4E00\u4E2A\u5F85\u8BC4\u9605\u7684\u5B66\u751F",2),Ro("read")):(De.ZP.success("\u8BC4\u9605\u6210\u529F\uFF01",2),cr(),Jo())),kl(!0),Sc(!1)}),Ro=wi=>Al(void 0,null,function*(){const{comment:er,score:qr,score_details:La,attachment_ids:ho}=za.getFieldsValue();let Yo=!1;if(Zi!=null&&Zi.single_score?Yo=!(0,fn.isNil)((qr==null?void 0:qr.length)==0?null:qr):La==null||La.some(Sa=>{if(!(0,fn.isNil)(Sa!=null&&Sa.score?Sa==null?void 0:Sa.score:null))return Yo=!0,!0}),er||Yo||ho){Ie.default.confirm({centered:!0,okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:ui.createElement("div",{className:"tc"},"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539"),onOk:()=>{za.resetFields(),wi==="last"?Ce.history.push(Fa.get("ids")?`/classrooms/${Fr==null?void 0:Fr.coursesId}/common_homework/${Fr==null?void 0:Fr.categoryId}/review/${zl==null?void 0:zl.student_work_id}?ids=${Fa.get("ids")}&page=${Fa.get("page")}`:`/classrooms/${Fr==null?void 0:Fr.coursesId}/common_homework/${Fr==null?void 0:Fr.categoryId}/review/${zl==null?void 0:zl.student_work_id}&page=${Fa.get("page")}`):wi==="read"?Ce.history.push(Fa.get("ids")?`/classrooms/${Fr==null?void 0:Fr.coursesId}/common_homework/${Fr==null?void 0:Fr.categoryId}/review/${jl==null?void 0:jl.student_work_id}?ids=${Fa.get("ids")}&page=${Fa.get("page")}`:`/classrooms/${Fr==null?void 0:Fr.coursesId}/common_homework/${Fr==null?void 0:Fr.categoryId}/review/${jl==null?void 0:jl.student_work_id}&page=${Fa.get("page")}`):Ce.history.push(`/classrooms/${Fr.coursesId}/common_homework/${Fr.categoryId}/detail?page=${Fa.get("page")}`)}});return}wi==="last"?Ce.history.push(Fa.get("ids")?`/classrooms/${Fr==null?void 0:Fr.coursesId}/common_homework/${Fr==null?void 0:Fr.categoryId}/review/${zl==null?void 0:zl.student_work_id}?ids=${Fa.get("ids")}&page=${Fa.get("page")}`:`/classrooms/${Fr==null?void 0:Fr.coursesId}/common_homework/${Fr==null?void 0:Fr.categoryId}/review/${zl==null?void 0:zl.student_work_id}&page=${Fa.get("page")}`):wi==="read"?Ce.history.push(Fa.get("ids")?`/classrooms/${Fr==null?void 0:Fr.coursesId}/common_homework/${Fr==null?void 0:Fr.categoryId}/review/${jl==null?void 0:jl.student_work_id}?ids=${Fa.get("ids")}&page=${Fa.get("page")}`:`/classrooms/${Fr==null?void 0:Fr.coursesId}/common_homework/${Fr==null?void 0:Fr.categoryId}/review/${jl==null?void 0:jl.student_work_id}&page=${Fa.get("page")}`):Ce.history.push(`/classrooms/${Fr.coursesId}/common_homework/${Fr.categoryId}/detail?page=${Fa.get("page")}`)}),jo=wi=>Al(void 0,null,function*(){Ul(!0),(yield(0,ee.ZP)(`/api/homework_commons/${Fr.categoryId}/student_works/export_normal_word_all.json`,{method:"post",body:{with_edit:wi,with_submit_record:rn}})).status===0&&(td(!1),Ce.history.push(`/classrooms/${Fr==null?void 0:Fr.coursesId}/exportlist/normal_work_list`)),Ul(!1)}),Or=wi=>{Ul(!0),(0,Gn.Nd)("",`${Ne.Z.API_SERVER}/api/student_works/${Fr.userId}/export_normal_word_single.json?with_edit=${wi}&with_submit_record=${rn}`),Ul(!1),td(!1)},Qo=wi=>{Ud(wi),xc("\u9644\u4EF6"),td(!0)};(0,se.useEffect)(()=>{Zi!=null&&Zi.homework_id&&(Zi!=null&&Zi.prev_work_id?Ea({student_work_id:Zi==null?void 0:Zi.prev_work_id}):Ea({last:!0}),Zi!=null&&Zi.next_work_id?Td({student_work_id:Zi==null?void 0:Zi.next_work_id}):Td({last:!0}))},[Zi]),(0,se.useEffect)(()=>{const wi=JSON.parse(localStorage.getItem("all_student_works_param")||"{}");sa({type:"shixunHomeworks/getStudentWorkDetail",payload:Zs(Ws(Ws({},Fr),wi),{history_id:Fa.get("history_id")||mt})}),sa({type:"shixunHomeworks/getStudentWorkSupplyDetail",payload:Ws({},Fr)}),cr(),Gc=="3"&&os({userId:Fr==null?void 0:Fr.userId}),zs.current.onclick=er=>{er.target.nodeName==="IMG"&&er.target.alt!==""&&ge.Z.publish("preview-image",er.target.src)}},[Fr.categoryId,Fr.userId]),(0,se.useEffect)(()=>{Zi!=null&&Zi.score_details&&$u(Zi==null?void 0:Zi.score_details.map(wi=>Zs(Ws({},wi),{score:""})))},[Zi]),(0,se.useEffect)(()=>{Id.every(wi=>wi.score==="")?kl(!0):kl(!1)},[Id]);const Jo=()=>{const wi=JSON.parse(localStorage.getItem("all_student_works_param")||"{}");sa({type:"shixunHomeworks/getStudentWorkDetail",payload:Zs(Ws(Ws({},Fr),wi),{history_id:Fa.get("history_id")||mt})}),sa({type:"shixunHomeworks/getStudentWorkSupplyDetail",payload:Ws({},Fr)}),sa({type:"shixunHomeworks/getWorkDetail",payload:{categoryId:Fr.categoryId}})};(0,se.useEffect)(()=>{Et(Fa.get("history_id")||"")},[Fa.get("history_id")]),(0,se.useEffect)(()=>(sa({type:"classroomList/getAssistantPermissions",payload:{course_id:Fr.coursesId}}),sa({type:"shixunHomeworks/getWorkDetail",payload:{categoryId:Fr.categoryId}}),sa({type:"globalSetting/footerToggle",payload:!1}),()=>{sa({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,se.useEffect)(()=>{(0,ii.Rm)()&&sa({type:"classroomList/getAssistantPermissions",payload:{course_id:Fr.coursesId}})},[(Vr=Ao==null?void 0:Ao.userInfo)==null?void 0:Vr.username]);const Da=()=>{var wi,er,qr;return mt?!1:(0,ii.G5)()||(0,ii.Rm)()&&((er=(wi=ta==null?void 0:ta.AssistantObject)==null?void 0:wi.practice)!=null&&er.can_appraise)?!0:!!((0,ii.dE)()&&((qr=Zi==null?void 0:Zi.homework_status)!=null&&qr.includes("\u533F\u8BC4\u4E2D"))&&!oo.is_author)},la=(0,ii.dE)()&&((Jr=Zi==null?void 0:Zi.homework_status)==null?void 0:Jr.includes("\u533F\u8BC4\u4E2D"))&&!oo.is_author,[Ms,vs]=(0,se.useState)(!1),[ea,No]=(0,se.useState)(!1),[Ba,bs]=(0,se.useState)(!1),ys=wi=>{const er=wi.currentTarget;er.scrollHeight>er.clientHeight&&vs(!0)},qs=wi=>{const er=wi.currentTarget;er.scrollHeight>er.clientHeight&&No(!0)},_o=wi=>{const er=wi.currentTarget;er.scrollHeight>er.clientHeight&&bs(!0)};return(0,se.useEffect)(()=>{var wi;!(Zi!=null&&Zi.single_score)&&za.setFieldValue("score_details",(wi=Zi==null?void 0:Zi.score_details)==null?void 0:wi.map(er=>Ws({},er)))},[Zi]),ui.createElement("section",{className:"edu-container",ref:zs,style:{width:Da()?"100%":"1200px",overflow:"hidden",overflowX:"auto"}},ui.createElement("div",{style:(0,ii.bg)()&&Da()?{minWidth:yr?"1700px":"1400px"}:{}},ui.createElement("section",{className:"animated fadeIn"},ui.createElement("div",{style:{height:"52px",background:"#FFFFFF",marginBottom:"10px",padding:"0 20px",display:"flex",alignItems:"center"}},ui.createElement("div",{style:{cursor:"pointer",display:"flex",alignItems:"center"},onClick:()=>{Ro("list")}},ui.createElement("img",{src:Ja}),ui.createElement("div",{style:{fontWeight:400,color:"#666666",marginLeft:"5px",fontSize:"16px"}},"\u8FD4\u56DE")),ui.createElement("div",{className:zt.top_content},!la&&(Zi==null?void 0:Zi.image_url)&&ui.createElement("img",{src:`${Ne.Z.IMG_SERVER}/images/${Zi==null?void 0:Zi.image_url}`,className:zt.top_content_img}),ui.createElement("div",{className:zt.item_content},ui.createElement("div",{className:zt.item_name,style:{height:la?"40px":"20px",lineHeight:la?"40px":"20px"}},Zi==null?void 0:Zi.author_name,!la&&ui.createElement("span",{className:zt.item_tags,style:{color:qc[Zi==null?void 0:Zi.work_status],background:Pc[Zi==null?void 0:Zi.work_status]}},Jc[Zi==null?void 0:Zi.work_status])),!la&&((Zi==null?void 0:Zi.student_id)||(Zi==null?void 0:Zi.group_name))&&ui.createElement("div",{className:zt.item_code},ui.createElement("span",null,"\u5B66\u53F7\uFF1A",Zi==null?void 0:Zi.student_id),ui.createElement("span",{style:{marginLeft:"20px"}},"\u73ED\u7EA7\uFF1A",Zi==null?void 0:Zi.group_name)))),ui.createElement("div",{style:{marginLeft:"auto",display:"flex",alignItems:"center"}},((Zi==null?void 0:Zi.score_given_user)||(Zi==null?void 0:Zi.score_given_user)==0)&&!mt&&ui.createElement("div",{className:"mr10 font24",style:{fontWeight:600,color:"#009C0F"}},Zi==null?void 0:Zi.score_given_user,ui.createElement("span",{style:{fontSize:"14px"}},"\u5206")),mt&&ui.createElement("span",{style:{padding:"3px",marginRight:30,background:"rgba(219,243,224,0.88)",color:"#1FBE3C",fontSize:"12px"}},"\u7B2C",Zi==null?void 0:Zi.commit_count,"\u6B21\u63D0\u4EA4\u7684\u4F5C\u4E1A"),mt&&ui.createElement("div",{className:zt.buttonStyle,style:{border:"1px solid rgba(48,97,208,0.5)",color:"#3061D0",display:"flex",alignItems:"center",padding:"0 10px",marginRight:10,height:32,cursor:"pointer"},onClick:()=>{vr({key:"\u4F5C\u4E1A\u63CF\u8FF0"})}},ui.createElement("i",{className:"iconfont icon-fenzuzuoye3 font18",style:{color:"#009CDC"}}),ui.createElement("span",{style:{marginLeft:5}},"\u4F5C\u4E1A\u63CF\u8FF0")),!mt&&ui.createElement("div",null,!((0,ii.dE)()&&oo.is_author)&&(Zi!=null&&Zi.rated_already?ui.createElement("img",{src:tu,style:{margin:"0 20px 0 0"}}):ui.createElement("img",{src:ua,style:{marginRight:"20px"}}))),(0,ii.dE)()&&oo.is_author?ui.createElement(ui.Fragment,null):(Zi==null?void 0:Zi.have_history_comment)&&ui.createElement(Ke.ZP,{className:zt.buttonStyle,style:{border:"1px solid rgba(48,97,208,0.5)",color:"#3061D0",display:"flex",alignItems:"center",padding:"0 10px"},icon:ui.createElement("i",{className:"iconfont icon-chakanshenqingjilu"}),onClick:()=>{vr({key:"\u5386\u53F2\u8BC4\u9605\u8BB0\u5F55"})}},"\u5386\u53F2\u8BC4\u9605\u8BB0\u5F55"),!mt&&(0,ii.G5)()&&ui.createElement(Ee.Z,{menu:{items:[{label:ui.createElement("div",{onClick:()=>{Qo(!1)}},"\u5BFC\u51FA\u7B54\u9898\u8BB0\u5F55\u4E0E\u9644\u4EF6"),key:"1"},{label:ui.createElement("div",{onClick:()=>{Qo(!0)}},"\u5BFC\u51FA\u5168\u90E8\u5B66\u751F\u7B54\u9898\u8BB0\u5F55\u4E0E\u9644\u4EF6"),key:"2"}]}},ui.createElement("div",{className:`${zt.daochu} ${zt.buttonStyle}`},"\u5BFC\u51FA",ui.createElement("i",{className:"iconfont icon-a-xialazhankai",style:{fontSize:"6px",marginLeft:"6px"}})))))),ui.createElement("div",{style:{display:"flex"}},yr&&Da()&&ui.createElement("div",{className:zt.left_content},ui.createElement("div",{className:zt.left_title},ui.createElement("i",{className:"iconfont icon-fenzuzuoye3 font18",style:{color:"#009CDC"}}),ui.createElement("span",{className:"ml10"},"\u4F5C\u4E1A\u63CF\u8FF0"),ui.createElement("span",{className:zt.see_work,onClick:()=>{vr({key:"\u4F5C\u4E1A\u63CF\u8FF0"})}},"\u67E5\u770B")),ui.createElement("div",{className:zt.left_list},ui.createElement("div",{className:zt.list_title},ui.createElement("div",{style:{width:"5px",height:"10px",background:"#3061D0"}}),ui.createElement("span",{style:{color:"#171717",fontWeight:600,marginLeft:"10px"}},"\u8BC4\u9605\u4EFB\u52A1"),ui.createElement("span",{style:{marginLeft:"auto",color:"#333333"}},"\u5DF2\u8BC4"),ui.createElement("span",{style:{color:"#009C0F",margin:"0 20px 0 8px",fontWeight:600}},Zi==null?void 0:Zi.commented_size),ui.createElement("span",{style:{color:"#333333",marginRight:"8px"}},"\u672A\u8BC4"),ui.createElement("span",{style:{color:"#FA6400",fontWeight:600}},Zi==null?void 0:Zi.no_commented_size)),ui.createElement("div",{className:`${zt.list_box} ${Ms?"":zt.hiddenBar}`,onMouseEnter:ys,onMouseLeave:()=>vs(!1)},(jr=Zi==null?void 0:Zi.all_student_works)==null?void 0:jr.map(wi=>{var er;return ui.createElement("div",{className:zt.list_item,style:{background:(er=Fr==null?void 0:Fr.userId)!=null&&er.includes(wi==null?void 0:wi.student_work_id)?"#F1F4F9":""},onClick:()=>{Ce.history.push(wi==null?void 0:wi.url)}},ui.createElement("img",{src:`${Ne.Z.IMG_SERVER}/images/${wi==null?void 0:wi.image_url}`,className:zt.item_img,style:{filter:la&&"blur(10px)",border:la&&"none"}}),ui.createElement("div",{className:zt.item_content},ui.createElement("div",{className:zt.item_name,style:{height:la?"40px":"20px",lineHeight:la?"40px":"20px"}},wi==null?void 0:wi.username),!la&&ui.createElement("div",{className:zt.item_code},"\u5B66\u53F7\uFF1A",wi==null?void 0:wi.student_id)),ui.createElement("div",{className:zt.item_states,style:{color:(wi==null?void 0:wi.score)=="\u5F85\u8BC4"?"#FA6400":"#009C0F"}},wi==null?void 0:wi.score,(wi==null?void 0:wi.score)!="\u5F85\u8BC4"&&"\u5206"))})))),Da()&&ui.createElement("div",{className:yr?zt.foldClose:zt.foldOpen,onClick:()=>zr(!yr)},yr&&ui.createElement(et.Z,{placement:"right",title:"\u6536\u8D77"},ui.createElement("span",{className:"icon-zuojiantou iconfont c-grey-c"})),!yr&&ui.createElement(et.Z,{placement:"right",title:"\u5C55\u5F00"},ui.createElement("span",{className:"icon-youjiantou iconfont",style:{color:"#3061D0"}}))),ui.createElement("div",{style:{flex:1,margin:Da()?"0 20px 0 5px":"auto",minWidth:"900px"}},ui.createElement(Je.default,{className:zt.TabsStyle,destroyInactiveTabPane:!0,defaultActiveKey:"1",activeKey:Gc,tabBarExtraContent:ui.createElement(ui.Fragment,null,!mt&&(Zi==null?void 0:Zi.commit_count)>1&&ui.createElement(Ke.ZP,{style:{border:"none",color:"#3061D0",display:"flex",alignItems:"center",padding:0},icon:ui.createElement("i",{className:"iconfont icon-chakanshenqingjilu"}),loading:Bl,onClick:()=>Al(void 0,null,function*(){yield Ma({},!0),vr({key:"\u4F5C\u4E1A\u63D0\u4EA4\u8BB0\u5F55"})})},"\u4F5C\u4E1A\u63D0\u4EA4\u8BB0\u5F55")),onChange:wi=>{pa(wi),wi=="2"&&Ce.history.push(`/classrooms/${Fr.coursesId}/common_homework/${Fr.categoryId}/lab-report-view/${Fr.userId}`),wi=="3"&&os({})}},ui.createElement(Je.default.TabPane,{tab:ui.createElement("span",{style:{position:"relative"}},"\u5B66\u751F\u4F5C\u4E1A",ui.createElement(et.Z,{title:ui.createElement("span",{className:"font14"},"\uFF08\u5F53\u524D\u652F\u6301\u6279\u6CE8\u7684\u6587\u6863\u7C7B\u578B\uFF1A.docx\u3001.xlsx\u3001.pptx\uFF09")},ui.createElement("i",{className:"iconfont icon-tishixiaowenhao ml10 font14 c-grey-999 current",style:{lineHeight:"18px"}}))),key:"1"}),!mt&&(0,ii.j5)()&&ui.createElement(Je.default.TabPane,{tab:"\u5B9E\u9A8C\u62A5\u544A",key:"2"}),(Zi==null?void 0:Zi.anonymous_comment)&&!mt&&ui.createElement(Je.default.TabPane,{tab:"\u95EE\u9898\u53CD\u9988",key:"3"})),ui.createElement("div",{className:`${ea?"":zt.hiddenBar}`,onMouseEnter:qs,onMouseLeave:()=>No(!1),style:{overflowY:"auto",height:"calc(100vh - 180px)"}},ui.createElement(Ye.Z,{spinning:ms||!!_t["shixunHomeworks/getStudentWorkDetail"]||!!_t["shixunHomeworks/getStudentWorkSupplyDetail"]},ui.createElement("div",{key:"1",style:{display:Gc==="1"?"block":"none"}},ui.createElement("div",{style:{background:"#F5F6F8",padding:"20px"}},ui.createElement("div",{className:zt.center_top},ui.createElement("div",{className:zt.center_top_title},ui.createElement("img",{src:Uo}),ui.createElement("span",{className:"ml5",style:{color:"#3061D0",fontWeight:600}},"\u4F5C\u4E1A\u63D0\u4EA4\u5185\u5BB9"),(Zi==null?void 0:Zi.update_time)&&ui.createElement(ui.Fragment,null,ui.createElement("span",{style:{marginLeft:"auto",cursor:"pointer",color:"#333333"}},Se()(Zi==null?void 0:Zi.update_time).format("YYYY-MM-DD HH:mm")),ui.createElement("span",{className:"ml10",style:{color:"#333333"}},"\u66F4\u65B0"))),ui.createElement("div",{className:zt.center_top_content},ui.createElement(Xt.Z,{value:(Zi==null?void 0:Zi.description)||"\u6682\u65E0\uFF5E"}),ui.createElement(rt.Z,{authority:(0,ii.GJ)(),dataSource:Zi==null?void 0:Zi.attachments,callback:()=>{sa({type:"shixunHomeworks/getStudentWorkDetail",payload:Ws({},Fr)})}})))),((Zi==null?void 0:Zi.work_score)||(Zi==null?void 0:Zi.work_score)==0)&&!mt&&ui.createElement(ur,{dataInfo:Zi,handleCloseOrOpenModal:wi=>{vr(wi)}})),ui.createElement("div",{key:"3",style:{display:Gc==="3"?"block":"none"}},ui.createElement("div",{style:{background:"#fff",display:"flex",flexDirection:"column",padding:"10px 30px 30px 30px"}},((rr=ya==null?void 0:ya.data)==null?void 0:rr.count)>0?ui.createElement(ui.Fragment,null,(Na=(ro=ya==null?void 0:ya.data)==null?void 0:ro.list)==null?void 0:Na.map((wi,er)=>ui.createElement(lt,{key:er,type:"feedback",Data:Zs(Ws({},wi),{time:wi==null?void 0:wi.created_at,user_info:{user_image_url:wi.avatar_url,user_id:wi.user_id,user_name:wi.real_name}}),getInitData:cr,updateData:Jo,shixunHomeworks:Xn}))):ui.createElement(St.Z,null)))),(Ia=oo==null?void 0:oo.teacher_list)!=null&&Ia.length?ui.createElement("div",{className:zt.pingyue},ui.createElement("div",{className:zt.pingyue_title},ui.createElement("img",{src:aa,style:{marginRight:"5px"}}),ui.createElement("div",{style:{color:"#333333",fontWeight:600}},"\u6559\u5E08\u8BC4\u9605"),((Zi==null?void 0:Zi.teacher_score)||(Zi==null?void 0:Zi.teacher_score)==0)&&ui.createElement("div",{className:zt.pingyue_score},ui.createElement("div",{style:{height:"30px",lineHeight:"35px",fontSize:"24px",color:"#009C0F",fontWeight:600,marginLeft:"12px"}},Zi==null?void 0:Zi.teacher_score,ui.createElement("span",{style:{fontSize:"14px"}},"\u5206")),ui.createElement("div",{style:{fontSize:"12px",color:"#666666",marginLeft:"12px"}},"\u6700\u7EC8\u5F97\u5206\uFF08",(Zi==null?void 0:Zi.teacher_mode)==1?"\u5E73\u5747\u8BC4\u5206":"\u6700\u7EC8\u8BC4\u5206","\uFF09"))),ui.createElement("div",{style:{padding:"20px"}},ui.createElement("div",{style:{display:"flex",flexDirection:"column",gap:"20px"}},(Ho=oo==null?void 0:oo.teacher_list)!=null&&Ho.length?(Bo=Ni?oo==null?void 0:oo.teacher_list:oo==null?void 0:oo.teacher_list.slice(0,3))==null?void 0:Bo.map((wi,er)=>ui.createElement(lt,{key:er,index:er,type:Zo.status==1&&"teacher",Data:Zs(Ws({},wi),{user_info:{user_image_url:wi.user_image_url,user_login:wi.user_login,user_name:wi.user_name}}),getInitData:cr,updateData:Jo,shixunHomeworks:Xn})):ui.createElement(St.Z,{styles:{margin:"50px auto"}}),((rl=oo==null?void 0:oo.teacher_list)==null?void 0:rl.length)>3&&!Ni&&ui.createElement("div",{style:{color:"#3061D0",textAlign:"center",cursor:"pointer"},onClick:()=>{Ei(!0)}},"\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u67E5\u770B\u5168\u90E8\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026"),((Bs=oo==null?void 0:oo.teacher_list)==null?void 0:Bs.length)>3&&Ni&&ui.createElement("div",{style:{color:"#3061D0",textAlign:"center",cursor:"pointer"},onClick:()=>{Ei(!1)}},"\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u5DF2\u5C55\u793A\u5168\u90E8\u4F5C\u4E1A\u8BC4\u8BED\uFF0C\u70B9\u51FB\u53EF\u6536\u8D77\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026")),((ka=oo==null?void 0:oo.hidden_comment_scores)==null?void 0:ka.length)>0&&ui.createElement("div",{className:zt.pingyue_teacher_title},ui.createElement("img",{src:Ds,style:{marginRight:"5px"}}),ui.createElement("div",{style:{color:"#CA7720",fontWeight:600}},"\u4EC5\u6559\u5E08\u53EF\u89C1\u8BC4\u8BED")),((Nl=oo==null?void 0:oo.hidden_comment_scores)==null?void 0:Nl.length)>0&&ui.createElement("div",{style:{display:"flex",flexDirection:"column"}},(js=oo==null?void 0:oo.hidden_comment_scores)!=null&&js.length?($s=qi?oo==null?void 0:oo.hidden_comment_scores:oo==null?void 0:oo.hidden_comment_scores.slice(0,3))==null?void 0:$s.map((wi,er)=>ui.createElement(lt,{newType:"teacher",key:er,index:er,type:Zo.status==1&&"teacher",Data:Zs(Ws({},wi),{user_info:{user_image_url:wi.user_image_url,user_login:wi.user_login,user_name:wi.user_name}}),getInitData:cr,updateData:Jo,shixunHomeworks:Xn})):ui.createElement(St.Z,{styles:{margin:"50px auto"}}),((fr=oo==null?void 0:oo.hidden_comment_scores)==null?void 0:fr.length)>3&&!qi&&ui.createElement("div",{style:{color:"#3061D0",textAlign:"center",cursor:"pointer"},onClick:()=>{Ki(!0)}},"\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u67E5\u770B\u5168\u90E8\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026"),((va=oo==null?void 0:oo.hidden_comment_scores)==null?void 0:va.length)>3&&qi&&ui.createElement("div",{style:{color:"#3061D0",textAlign:"center",cursor:"pointer"},onClick:()=>{Ki(!1)}},"\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u5DF2\u5C55\u793A\u5168\u90E8\u4F5C\u4E1A\u8BC4\u8BED\uFF0C\u70B9\u51FB\u53EF\u6536\u8D77\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026")))):null,(Wt=oo==null?void 0:oo.teaching_assistant_list)!=null&&Wt.length?ui.createElement("div",{className:zt.pingyue,style:{marginTop:"20px"}},ui.createElement("div",{className:zt.pingyue_title},ui.createElement("img",{src:aa,style:{marginRight:"5px"}}),ui.createElement("div",{style:{color:"#333333",fontWeight:600}},"\u52A9\u6559\u8BC4\u9605"),((Zi==null?void 0:Zi.teaching_asistant_score)||(Zi==null?void 0:Zi.teaching_asistant_score)==0)&&ui.createElement("div",{className:zt.pingyue_score},ui.createElement("div",{style:{height:"30px",lineHeight:"35px",fontSize:"24px",color:"#009C0F",fontWeight:600,marginLeft:"12px"}},Zi==null?void 0:Zi.teaching_asistant_score,ui.createElement("span",{style:{fontSize:"14px"}},"\u5206")),ui.createElement("div",{style:{fontSize:"12px",color:"#666666",marginLeft:"12px"}},"\u6700\u7EC8\u5F97\u5206\uFF08",(Zi==null?void 0:Zi.ta_mode)==1?"\u5E73\u5747\u8BC4\u5206":"\u6700\u7EC8\u8BC4\u5206","\uFF09"))),ui.createElement("div",{style:{display:"flex",flexDirection:"column",gap:"20px",padding:"20px"}},(di=oo==null?void 0:oo.teaching_assistant_list)!=null&&di.length?(Ns=Ui?oo==null?void 0:oo.teaching_assistant_list:oo==null?void 0:oo.teaching_assistant_list.slice(0,3))==null?void 0:Ns.map((wi,er)=>ui.createElement(lt,{key:er,index:er,type:Zo.status==1&&"teacher",Data:Zs(Ws({},wi),{user_info:{user_image_url:wi.user_image_url,user_login:wi.user_login,user_name:wi.user_name}}),getInitData:cr,updateData:Jo,shixunHomeworks:Xn})):ui.createElement(St.Z,{styles:{margin:"50px auto"}}),((ps=oo==null?void 0:oo.teaching_assistant_list)==null?void 0:ps.length)>3&&!Ui&&ui.createElement("div",{style:{color:"#3061D0",textAlign:"center",cursor:"pointer"},onClick:()=>{Lr(!0)}},"\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u67E5\u770B\u5168\u90E8\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026"),((cl=oo==null?void 0:oo.teaching_assistant_list)==null?void 0:cl.length)>3&&Ui&&ui.createElement("div",{style:{color:"#3061D0",textAlign:"center",cursor:"pointer"},onClick:()=>{Lr(!1)}},"\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u5DF2\u5C55\u793A\u5168\u90E8\u4F5C\u4E1A\u8BC4\u8BED\uFF0C\u70B9\u51FB\u53EF\u6536\u8D77\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026"))):null,(Os=oo==null?void 0:oo.student_list)!=null&&Os.length?ui.createElement("div",{className:zt.pingyue,style:{marginTop:"20px"}},ui.createElement("div",{className:zt.pingyue_title},ui.createElement("img",{src:aa,style:{marginRight:"5px"}}),ui.createElement("div",{style:{color:"#333333",fontWeight:600}},"\u533F\u8BC4\u8BC4\u9605"),((Zi==null?void 0:Zi.student_score)||(Zi==null?void 0:Zi.student_score)==0)&&ui.createElement("div",{className:zt.pingyue_score},ui.createElement("div",{style:{height:"30px",lineHeight:"35px",fontSize:"24px",color:"#009C0F",fontWeight:600,marginLeft:"12px"}},Zi==null?void 0:Zi.student_score,ui.createElement("span",{style:{fontSize:"14px"}},"\u5206")),ui.createElement("div",{style:{fontSize:"12px",color:"#666666",marginLeft:"12px"}},"\u6700\u7EC8\u5F97\u5206\uFF08\u5E73\u5747\u8BC4\u5206\uFF09"))),ui.createElement("div",{style:{display:"flex",flexDirection:"column",gap:"20px",padding:"20px"}},(nu=oo==null?void 0:oo.student_list)!=null&&nu.length?(hu=Vi?oo==null?void 0:oo.student_list:oo==null?void 0:oo.student_list.slice(0,3))==null?void 0:hu.map((wi,er)=>ui.createElement(lt,{showNm:!0,showName:!(0,ii.dE)(),key:er,index:er,type:Zo.status==1&&"teacher",Data:Zs(Ws({},wi),{user_info:{user_image_url:wi.user_image_url,user_login:wi.user_login,user_name:wi.user_name}}),getInitData:cr,updateData:Jo,shixunHomeworks:Xn})):ui.createElement(St.Z,{styles:{margin:"50px auto"}}),((Vu=oo==null?void 0:oo.student_list)==null?void 0:Vu.length)>3&&!Vi&&ui.createElement("div",{style:{color:"#3061D0",textAlign:"center",cursor:"pointer"},onClick:()=>{Pr(!0)}},"\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u67E5\u770B\u5168\u90E8\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026"),((rs=oo==null?void 0:oo.student_list)==null?void 0:rs.length)>3&&Vi&&ui.createElement("div",{style:{color:"#3061D0",textAlign:"center",cursor:"pointer"},onClick:()=>{Pr(!1)}},"\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u5DF2\u5C55\u793A\u5168\u90E8\u4F5C\u4E1A\u8BC4\u8BED\uFF0C\u70B9\u51FB\u53EF\u6536\u8D77\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026"))):null)),Da()&&ui.createElement("div",{style:{width:"400px",padding:"15px",height:"calc(100vh - 143px)",overflowY:"auto",background:"#ffffff"},className:`${Ba?"":zt.hiddenBar}`,onMouseEnter:_o,onMouseLeave:()=>bs(!1)},ui.createElement(we.default,{form:za,layout:"vertical",size:"large",style:{position:"relative"},scrollToFirstError:!0,onFinish:wi=>{Co(wi)}},ui.createElement("div",{className:"blod font16 mb10",style:{color:"#191919"}},"\u8BC4\u9605"),ui.createElement(qt,{FormProps:{form:za},isShowStyles:!1}),ui.createElement(we.default.Item,{name:"attachment_ids",className:"mb20",style:{marginTop:"-12px"}},ui.createElement(an.Z,null)),(0,ii.GJ)()&&ui.createElement("div",null,ui.createElement(we.default.Item,{name:"hidden_comment",style:{background:"#F6F7F9",height:"50px",display:"flex",alignItems:"center",padding:"0 20px"}},ui.createElement(tt.default,{onChange:wi=>{var er;Lo((er=wi==null?void 0:wi.target)==null?void 0:er.checked)}},"\u8BC4\u8BED\u4EC5\u8BFE\u5802\u6559\u5E08\u53EF\u89C1")))),ui.createElement("div",null,ui.createElement(Ke.ZP,{loading:gu,style:{width:"100%",height:"40px",background:"#3061D0",borderRadius:"7px"},type:"primary",onClick:()=>{za.submit()}}," \u63D0\u4EA4\u8BC4\u9605 ")),ui.createElement("div",{style:{display:"flex",marginTop:"20px"}},(Zi==null?void 0:Zi.is_new_rule)&&(0,ii.G5)()&&Zi.work_status!==-1&&Zi.work_status!==0&&ui.createElement(Ke.ZP,{className:zt.btnAdd,onClick:()=>{vr({key:"\u786E\u8BA4\u6253\u56DE\u91CD\u505A"})}}," \u6253\u56DE\u91CD\u505A "),!(Zi!=null&&Zi.is_new_rule)&&(0,ii.G5)()&&["\u63D0\u4EA4\u4E2D","\u8865\u4EA4\u4E2D","\u8FDB\u884C\u4E2D"].some(wi=>{var er;return(er=Zi==null?void 0:Zi.homework_status)==null?void 0:er.includes(wi)})&&ui.createElement(Ke.ZP,{className:zt.btnAdd,onClick:()=>{vr({key:"\u786E\u8BA4\u6253\u56DE\u91CD\u505A"})}}," \u6253\u56DE\u91CD\u505A "),!(Zi!=null&&Zi.is_author)&&(0,ii.dE)()&&((Eo=Zi==null?void 0:Zi.homework_status)==null?void 0:Eo.includes("\u533F\u8BC4\u4E2D"))&&Fa.get("review")!=="review"&&ui.createElement(Ke.ZP,{className:zt.btnAdd,onClick:()=>{vr({key:"\u95EE\u9898\u53CD\u9988"})}}," \u95EE\u9898\u53CD\u9988 "),ui.createElement(Ke.ZP,{className:!(zl!=null&&zl.last)&&zt.btnAdd,style:{marginLeft:"auto",marginRight:"20px",display:"flex",alignItems:"center"},onClick:()=>Ro("last"),disabled:zl==null?void 0:zl.last},ui.createElement("i",{className:"iconfont icon-zuojiantou font12 mr5"})," \u4E0A\u4E00\u4E2A "),ui.createElement(Ke.ZP,{className:!(jl!=null&&jl.last)&&zt.btnAdd,style:{display:"flex",alignItems:"center"},disabled:jl==null?void 0:jl.last,onClick:()=>Ro("read")},"\u4E0B\u4E00\u4E2A ",ui.createElement("i",{className:"iconfont icon-youjiantou font12 ml5"})))))),ui.createElement(dn,null),ui.createElement(Nn,{studentWorkDetail:Zi}),ui.createElement(ze.Z,null),ui.createElement(Ie.default,{title:"\u786E\u8BA4\u6253\u56DE\u91CD\u505A",open:(Xo==null?void 0:Xo.key)=="\u786E\u8BA4\u6253\u56DE\u91CD\u505A",destroyOnClose:!0,forceRender:!0,width:700,onCancel:()=>{vr("")},onOk:()=>Al(void 0,null,function*(){if(!Yu){De.ZP.info("\u8BC4\u8BED\u4E0D\u80FD\u4E3A\u7A7A");return}const wi=yield(0,ee.ZP)(`/api/student_works/${Fr.userId}/redo_modal.json`,{method:"post",body:{comment:Yu,id:Fr.userId}});(wi==null?void 0:wi.status)===0&&(De.ZP.info("\u6253\u56DE\u91CD\u505A\u6210\u529F"),vr(""),cr(),Jo())})},ui.createElement("div",{style:{padding:"32px"}},ui.createElement("span",null,"\u786E\u8BA4\u5C06",Zi==null?void 0:Zi.author_name,"\u7684\u4F5C\u4E1A\u6253\u56DE\u91CD\u505A\u5417"),ui.createElement("div",{style:{marginTop:"20px"}},ui.createElement("label",null,ui.createElement("span",{style:{marginRight:"5px",color:"red"}},"*"),"\u8BC4\u8BED\uFF1A"),ui.createElement(ne.Z,{className:zt.MdEditor,onChange:wi=>Ac(wi),defaultValue:"",height:250})))),ui.createElement(ue.Z,{close:!0,data:Tr==null?void 0:Tr.content,type:Tr==null?void 0:Tr.type,hasMask:!0,monacoEditor:{value:Xu.current,language:"txt",onChange:()=>{},options:{readOnly:!0,fontSize:14,minimap:{enabled:!1}}},onClose:()=>mo({content:"",type:""})}),ui.createElement(Ie.default,{width:675,title:"\u8BF7\u9009\u62E9\u9700\u8981\u5BFC\u51FA\u7684\u683C\u5F0F",open:Nc,confirmLoading:Mh,centered:!0,onCancel:()=>td(!1),onOk:()=>{nd=="\u9644\u4EF6"?Tu?jo(!1):Or(!1):nd=="\u6279\u6CE8"&&(Tu?jo(!0):Or(!0))}},ui.createElement(tt.default,{checked:rn,onChange:wi=>{cn(wi.target.checked)}},"\u540C\u65F6\u5BFC\u51FA\u5B66\u751F\u63D0\u4EA4\u8BB0\u5F55"),ui.createElement("div",{className:zt.export_type_modal_title},"\u8BF7\u9009\u62E9\u9700\u8981\u5BFC\u51FA\u7684\u9644\u4EF6\u7C7B\u578B"),ui.createElement("div",{className:zt.export_type_modal},ui.createElement("div",{className:zt.export_type_modal_con},ui.createElement("div",{className:`${zt.type_item} ${nd=="\u9644\u4EF6"?zt.type_item_active:""}`,onClick:()=>xc("\u9644\u4EF6")},ui.createElement("div",{className:`${zt.img_warp}`},ui.createElement("img",{src:Sn.Z,width:72,height:80})),ui.createElement("span",null,"\u5B66\u751F\u63D0\u4EA4\u7684\u9644\u4EF6")),ui.createElement("div",{className:`${zt.type_item} ${nd=="\u6279\u6CE8"?zt.type_item_active:""}`,onClick:()=>xc("\u6279\u6CE8")},ui.createElement("div",{className:`${zt.img_warp}`},ui.createElement("img",{src:Yt.Z,width:99,height:80})),ui.createElement("span",null,"\u5305\u542B\u6279\u6CE8\u5185\u5BB9\u7684\u9644\u4EF6"))),ui.createElement("div",{className:zt.export_type_modal_waring},"\u5982\u5B66\u751F\u672A\u4E0A\u4F20\u9644\u4EF6\uFF0C\u4EC5\u4F1A\u5BFC\u51FA\u8BE5\u5B66\u751F\u63D0\u4EA4\u7684\u7B54\u9898\u8BB0\u5F55"))),ui.createElement(Ie.default,{title:Xo==null?void 0:Xo.key,open:(Xo==null?void 0:Xo.key)=="\u4F5C\u4E1A\u63D0\u4EA4\u8BB0\u5F55",centered:!0,destroyOnClose:!0,width:969,footer:null,onCancel:()=>vr("")},ui.createElement(ht.default,{locale:{emptyText:ui.createElement(St.Z,null)},columns:uo,dataSource:Ka==null?void 0:Ka.student_works,pagination:!1})),ui.createElement(Ie.default,{title:Xo==null?void 0:Xo.key,open:(Xo==null?void 0:Xo.key)=="\u95EE\u9898\u53CD\u9988",centered:!0,destroyOnClose:!0,width:700,onCancel:()=>{vr(""),qo.resetFields()},confirmLoading:Ku,onOk:()=>{qo.submit()}},ui.createElement(we.default,{form:qo,onFinish:wi=>Al(void 0,null,function*(){const er=yield xo({userId:Fr==null?void 0:Fr.userId,id:Fr==null?void 0:Fr.userId,student_work_feedback:Ws({},wi)});(er==null?void 0:er.status)==0&&(De.ZP.success("\u63D0\u4EA4\u6210\u529F"),vr(""),qo.resetFields(),os({}),cr())})},ui.createElement("div",{className:"mb20 p20 pt10 pb10 c-grey-333",style:{background:"#F6F7F9"}}," \u5982\u679C\u4F5C\u54C1\u65E0\u6CD5\u533F\u8BC4\uFF0C\u8BF7\u63CF\u8FF0\u95EE\u9898\u5E76\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u6309\u94AE\u8FDB\u884C\u53CD\u9988\u3002\u53CD\u9988\u540E\u7CFB\u7EDF\u5C06\u4E0D\u4F1A\u6263\u9664\u7F3A\u8BC4\u5206\u6570\u3002"),ui.createElement(we.default.Item,{className:"mb0",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5185\u5BB9"}]},ui.createElement(kt.default.TextArea,{rows:6,placeholder:"\u4F8B\u5982\uFF1A\u4F5C\u54C1\u63D0\u4EA4\u7684\u9644\u4EF6\u4E0D\u6E05\u6670",maxLength:200})))),ui.createElement(on,{ModalProps:{open:(Xo==null?void 0:Xo.key)=="\u5386\u53F2\u8BC4\u9605\u8BB0\u5F55",onCancel:()=>{vr("")},onOk:()=>{vr("")}}}),ui.createElement(Vt,{ModalProps:{open:(Xo==null?void 0:Xo.key)=="\u5F97\u5206\u8BE6\u60C5",onCancel:()=>{vr("")},onOk:()=>{vr("")}}}),ui.createElement(In,{ModalProps:{open:(Xo==null?void 0:Xo.key)=="\u4F5C\u4E1A\u63CF\u8FF0",footer:[ui.createElement(Ke.ZP,{type:"primary",onClick:()=>vr("")},"\u786E\u5B9A")],onCancel:()=>{vr("")}}}))};var ed=(0,Ce.connect)(({shixunHomeworks:Xn,loading:bn,user:_t,globalSetting:Ao,classroomList:ta})=>({shixunHomeworks:Xn,globalSetting:Ao,user:_t,loading:bn.effects,classroomList:ta}))(md)},76904:function(_e,be,oe){"use strict";oe.d(be,{$J:function(){return we},JZ:function(){return De},bN:function(){return Ee},jP:function(){return Ke},rO:function(){return Ie}});var se=oe(70635),Ce=(et,Je,Ye)=>new Promise((tt,ht)=>{var kt=ne=>{try{ee(Ye.next(ne))}catch(ge){ht(ge)}},ze=ne=>{try{ee(Ye.throw(ne))}catch(ge){ht(ge)}},ee=ne=>ne.done?tt(ne.value):Promise.resolve(ne.value).then(kt,ze);ee((Ye=Ye.apply(et,Je)).next())});function we(et){return(0,se.U2)(`libraries/${et}.json`)}function Ie(){return(0,se.U2)("library_tags.json")}function De(et){return Ce(this,null,function*(){return(yield(0,se.IV)(`attachments/${et}.json`)).status===0})}function Ke(et){return(0,se.v_)("libraries.json",et)}function Ee(et,Je){return(0,se.gz)(`libraries/${et}.json`,Je)}},35427:function(_e,be,oe){"use strict";oe.d(be,{U:function(){return Je}});var se=oe(59301),Ce=Object.defineProperty,we=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable,Ke=(Ye,tt,ht)=>tt in Ye?Ce(Ye,tt,{enumerable:!0,configurable:!0,writable:!0,value:ht}):Ye[tt]=ht,Ee=(Ye,tt)=>{for(var ht in tt||(tt={}))Ie.call(tt,ht)&&Ke(Ye,ht,tt[ht]);if(we)for(var ht of we(tt))De.call(tt,ht)&&Ke(Ye,ht,tt[ht]);return Ye},et=(Ye,tt,ht)=>new Promise((kt,ze)=>{var ee=ue=>{try{ge(ht.next(ue))}catch(me){ze(me)}},ne=ue=>{try{ge(ht.throw(ue))}catch(me){ze(me)}},ge=ue=>ue.done?kt(ue.value):Promise.resolve(ue.value).then(ee,ne);ge((ht=ht.apply(Ye,tt)).next())});function Je(Ye,tt){const[ht,kt]=(0,se.useState)(tt),[ze,ee]=(0,se.useState)(!1),[ne,ge]=(0,se.useState)();return[ht,ze,(me,Se=!1)=>et(this,null,function*(){const Ne=Se?tt:Ee(Ee({},ht),me);ee(!0),kt(Ne);const ke=yield Ye(Ne);return ee(!1),ge(ke),ke}),ne]}},31087:function(_e,be,oe){"use strict";oe.d(be,{AL:function(){return Ne},Iy:function(){return tt},Qv:function(){return ze},ez:function(){return Se},jb:function(){return ht}});var se=oe(32834),Ce=oe.n(se),we=oe(11690),Ie=oe.n(we);let De=1;function Ke(st,ut){const Mt=st.match(/^(\s+)(?:```)/);if(Mt===null)return ut;const nt=Mt[1];return ut.split(`
`).map($t=>{const Pt=$t.match(/^\s+/);if(Pt===null)return $t;const[dn]=Pt;return dn.length>=nt.length?$t.slice(nt.length):$t}).join(`
`)}let Ee=[],et=["<ul>"];const Je=new(Ce()).Renderer,Ye=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function tt(){Ee.length=0,et=["<ul>"]}const ht={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function kt(st,ut,Mt,nt){if(ut>=st.length||st[ut].level<=Mt)return ut;var $t=st[ut];nt.push("<li><a href='#"+De+$t.anchor+"'>"+$t.text+"</a>"),ut++;var Pt=[];return ut=kt(st,ut,$t.level,Pt),Pt.length>0&&(nt.push("<ul>"),Pt.forEach(function(dn){nt.push(dn)}),nt.push("</ul>")),nt.push("</li>"),ut=kt(st,ut,Mt,nt),ut}function ze(){return kt(Ee,0,0,et),et.push("</ul>"),et.join("")}const ee={heading(st){const ut=Ye.exec(st);if(De+=1,ut)return{type:"heading",raw:ut[0],depth:ut[1].length,text:ut[2]}},fences(st){const ut=this.rules.block.fences.exec(st);if(ut){const Mt=ut[0];let nt=Ke(Mt,ut[3]||"");const $t=ut[2]?ut[2].trim():ut[2];if(["latex","katex","math"].indexOf($t)>=0){const Pt=ue(),dn=nt;nt=Pt,me[Pt]={type:"block",expression:dn}}return{type:"code",raw:Mt,lang:$t,text:nt}}}},ne=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ge=0;const ue=()=>`__special_katext_id_${ge++}__`;let me={};function Se(){return me}function Ne(){ge=0,me={}}function ke(st){return st=st.replace(ne,(ut,Mt)=>{const nt=ue();return me[nt]={type:"inline",expression:Mt},nt}),st}const Te=Je.listitem;Je.listitem=function(st){return Te(ke(st))};const We=Je.paragraph;Je.paragraph=function(st){return We(ke(st))};const $e=Je.tablecell;Je.tablecell=function(st,ut){return $e(ke(st),ut)},Je.code=function(st,ut,Mt){const nt=(ut||"").match(/\S*/)[0];return nt?["latex","katex","math"].indexOf(nt)>=0?`<p class='editormd-tex'>${st}</p>`:`<pre class="prettyprint linenums"><code class="language-${ut}">${Mt?st:(0,we.escape)(st,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(Mt?st:(0,we.escape)(st,!0))+"</code></pre>"},Je.heading=function(st,ut,Mt){let nt=this.options.headerPrefix+Mt.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ee.push({anchor:nt,level:ut,text:st}),"<h"+ut+' id="'+De+nt+'">'+st+"</h"+ut+">"},Ce().setOptions({silent:!0,gfm:!0,pedantic:!1}),Ce().use({tokenizer:ee,renderer:Je}),be.ZP=Ce()},50371:function(_e,be){"use strict";function oe(){const se=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let Ce=1;Ce<arguments.length;Ce++){const we=Ce<0||arguments.length<=Ce?void 0:arguments[Ce];we&&Object.keys(we).forEach(Ie=>{const De=we[Ie];De!==void 0&&(se[Ie]=De)})}return se}be.Z=oe},13845:function(_e,be,oe){"use strict";oe.d(be,{F:function(){return se},Z:function(){return Ce}});function se(we){return we!=null&&we===we.window}function Ce(we,Ie){var De,Ke;if(typeof window=="undefined")return 0;const Ee=Ie?"scrollTop":"scrollLeft";let et=0;return se(we)?et=we[Ie?"pageYOffset":"pageXOffset"]:we instanceof Document?et=we.documentElement[Ee]:(we instanceof HTMLElement||we)&&(et=we[Ee]),we&&!se(we)&&typeof et!="number"&&(et=(Ke=((De=we.ownerDocument)!==null&&De!==void 0?De:we).documentElement)===null||Ke===void 0?void 0:Ke[Ee]),et}},56762:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return Ce}});var se=oe(59301);function Ce(){const[,we]=se.useReducer(Ie=>Ie+1,0);return we}},68031:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return Ie}});var se=oe(23073);function Ce(De,Ke,Ee,et){const Je=Ee-Ke;return De/=et/2,De<1?Je/2*De*De*De+Ke:Je/2*((De-=2)*De*De+2)+Ke}var we=oe(13845);function Ie(De){let Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:Ee=()=>window,callback:et,duration:Je=450}=Ke,Ye=Ee(),tt=(0,we.Z)(Ye,!0),ht=Date.now(),kt=()=>{const ee=Date.now()-ht,ne=Ce(ee>Je?Je:ee,tt,De,Je);(0,we.F)(Ye)?Ye.scrollTo(window.pageXOffset,ne):Ye instanceof Document||Ye.constructor.name==="HTMLDocument"?Ye.documentElement.scrollTop=ne:Ye.scrollTop=ne,ee<Je?(0,se.Z)(kt):typeof et=="function"&&et()};(0,se.Z)(kt)}},24905:function(_e,be,oe){"use strict";oe.d(be,{default:function(){return We}});var se=oe(92310),Ce=oe.n(se),we=oe(5630),Ie=oe(59301),De=oe(36355),Ke=oe(1684),Ee=oe(32441),Je=Ie.createContext(null),Ye=oe(98447),tt=oe(14088),ht=oe(4572),kt=function($e,st){var ut={};for(var Mt in $e)Object.prototype.hasOwnProperty.call($e,Mt)&&st.indexOf(Mt)<0&&(ut[Mt]=$e[Mt]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Mt=Object.getOwnPropertySymbols($e);nt<Mt.length;nt++)st.indexOf(Mt[nt])<0&&Object.prototype.propertyIsEnumerable.call($e,Mt[nt])&&(ut[Mt[nt]]=$e[Mt[nt]]);return ut};const ze=($e,st)=>{var ut;const{prefixCls:Mt,className:nt,rootClassName:$t,children:Pt,indeterminate:dn=!1,style:zt,onMouseEnter:Xt,onMouseLeave:fn,skipGroup:an=!1,disabled:it}=$e,Ve=kt($e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:gt,direction:Bt,checkbox:sn}=Ie.useContext(De.E_),It=Ie.useContext(Je),{isFormItemInput:en}=Ie.useContext(Ee.aM),En=Ie.useContext(Ke.Z),ei=(ut=(It==null?void 0:It.disabled)||it)!==null&&ut!==void 0?ut:En,An=Ie.useRef(Ve.value);Ie.useEffect(()=>{It==null||It.registerValue(Ve.value)},[]),Ie.useEffect(()=>{if(!an)return Ve.value!==An.current&&(It==null||It.cancelValue(An.current),It==null||It.registerValue(Ve.value),An.current=Ve.value),()=>It==null?void 0:It.cancelValue(Ve.value)},[Ve.value]);const Kn=gt("checkbox",Mt),[jt,Nn]=(0,Ye.ZP)(Kn),Gn=Object.assign({},Ve);It&&!an&&(Gn.onChange=function(){Ve.onChange&&Ve.onChange.apply(Ve,arguments),It.toggleOption&&It.toggleOption({label:Pt,value:Ve.value})},Gn.name=It.name,Gn.checked=It.value.includes(Ve.value));const ii=Ce()(`${Kn}-wrapper`,{[`${Kn}-rtl`]:Bt==="rtl",[`${Kn}-wrapper-checked`]:Gn.checked,[`${Kn}-wrapper-disabled`]:ei,[`${Kn}-wrapper-in-form-item`]:en},sn==null?void 0:sn.className,nt,$t,Nn),Sn=Ce()({[`${Kn}-indeterminate`]:dn},ht.A,Nn),Yt=dn?"mixed":void 0;return jt(Ie.createElement(tt.Z,{component:"Checkbox",disabled:ei},Ie.createElement("label",{className:ii,style:Object.assign(Object.assign({},sn==null?void 0:sn.style),zt),onMouseEnter:Xt,onMouseLeave:fn},Ie.createElement(we.Z,Object.assign({"aria-checked":Yt},Gn,{prefixCls:Kn,className:Sn,disabled:ei,ref:st})),Pt!==void 0&&Ie.createElement("span",null,Pt))))};var ne=Ie.forwardRef(ze),ge=oe(26390),ue=oe(64002),me=function($e,st){var ut={};for(var Mt in $e)Object.prototype.hasOwnProperty.call($e,Mt)&&st.indexOf(Mt)<0&&(ut[Mt]=$e[Mt]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Mt=Object.getOwnPropertySymbols($e);nt<Mt.length;nt++)st.indexOf(Mt[nt])<0&&Object.prototype.propertyIsEnumerable.call($e,Mt[nt])&&(ut[Mt[nt]]=$e[Mt[nt]]);return ut};const Se=($e,st)=>{const{defaultValue:ut,children:Mt,options:nt=[],prefixCls:$t,className:Pt,rootClassName:dn,style:zt,onChange:Xt}=$e,fn=me($e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:an,direction:it}=Ie.useContext(De.E_),[Ve,gt]=Ie.useState(fn.value||ut||[]),[Bt,sn]=Ie.useState([]);Ie.useEffect(()=>{"value"in fn&&gt(fn.value||[])},[fn.value]);const It=Ie.useMemo(()=>nt.map(Zt=>typeof Zt=="string"||typeof Zt=="number"?{label:Zt,value:Zt}:Zt),[nt]),en=Zt=>{sn(St=>St.filter(rt=>rt!==Zt))},En=Zt=>{sn(St=>[].concat((0,ge.Z)(St),[Zt]))},ei=Zt=>{const St=Ve.indexOf(Zt.value),rt=(0,ge.Z)(Ve);St===-1?rt.push(Zt.value):rt.splice(St,1),"value"in fn||gt(rt),Xt==null||Xt(rt.filter(Ft=>Bt.includes(Ft)).sort((Ft,Ot)=>{const ft=It.findIndex(Ge=>Ge.value===Ft),ct=It.findIndex(Ge=>Ge.value===Ot);return ft-ct}))},An=an("checkbox",$t),Kn=`${An}-group`,[jt,Nn]=(0,Ye.ZP)(An),Gn=(0,ue.Z)(fn,["value","disabled"]),ii=nt.length?It.map(Zt=>Ie.createElement(ne,{prefixCls:An,key:Zt.value.toString(),disabled:"disabled"in Zt?Zt.disabled:fn.disabled,value:Zt.value,checked:Ve.includes(Zt.value),onChange:Zt.onChange,className:`${Kn}-item`,style:Zt.style,title:Zt.title},Zt.label)):Mt,Sn={toggleOption:ei,value:Ve,disabled:fn.disabled,name:fn.name,registerValue:En,cancelValue:en},Yt=Ce()(Kn,{[`${Kn}-rtl`]:it==="rtl"},Pt,dn,Nn);return jt(Ie.createElement("div",Object.assign({className:Yt,style:zt},Gn,{ref:st}),Ie.createElement(Je.Provider,{value:Sn},ii)))},Ne=Ie.forwardRef(Se);var ke=Ie.memo(Ne);const Te=ne;Te.Group=ke,Te.__ANT_CHECKBOX=!0;var We=Te},98447:function(_e,be,oe){"use strict";oe.d(be,{C2:function(){return De}});var se=oe(17313),Ce=oe(37613),we=oe(83116);const Ie=Ke=>{const{checkboxCls:Ee}=Ke,et=`${Ee}-wrapper`;return[{[`${Ee}-group`]:Object.assign(Object.assign({},(0,se.Wf)(Ke)),{display:"inline-flex",flexWrap:"wrap",columnGap:Ke.marginXS,[`> ${Ke.antCls}-row`]:{flex:1}}),[et]:Object.assign(Object.assign({},(0,se.Wf)(Ke)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${et}`]:{marginInlineStart:0},[`&${et}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[Ee]:Object.assign(Object.assign({},(0,se.Wf)(Ke)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Ke.borderRadiusSM,alignSelf:"center",[`${Ee}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${Ee}-inner`]:Object.assign({},(0,se.oN)(Ke))},[`${Ee}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Ke.checkboxSize,height:Ke.checkboxSize,direction:"ltr",backgroundColor:Ke.colorBgContainer,border:`${Ke.lineWidth}px ${Ke.lineType} ${Ke.colorBorder}`,borderRadius:Ke.borderRadiusSM,borderCollapse:"separate",transition:`all ${Ke.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Ke.checkboxSize/14*5,height:Ke.checkboxSize/14*8,border:`${Ke.lineWidthBold}px solid ${Ke.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Ke.motionDurationFast} ${Ke.motionEaseInBack}, opacity ${Ke.motionDurationFast}`}},"& + span":{paddingInlineStart:Ke.paddingXS,paddingInlineEnd:Ke.paddingXS}})},{[`
${et}:not(${et}-disabled),
${Ee}:not(${Ee}-disabled)
`]:{[`&:hover ${Ee}-inner`]:{borderColor:Ke.colorPrimary}},[`${et}:not(${et}-disabled)`]:{[`&:hover ${Ee}-checked:not(${Ee}-disabled) ${Ee}-inner`]:{backgroundColor:Ke.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${Ee}-checked:not(${Ee}-disabled):after`]:{borderColor:Ke.colorPrimaryHover}}},{[`${Ee}-checked`]:{[`${Ee}-inner`]:{backgroundColor:Ke.colorPrimary,borderColor:Ke.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Ke.motionDurationMid} ${Ke.motionEaseOutBack} ${Ke.motionDurationFast}`}}},[`
${et}-checked:not(${et}-disabled),
${Ee}-checked:not(${Ee}-disabled)
`]:{[`&:hover ${Ee}-inner`]:{backgroundColor:Ke.colorPrimaryHover,borderColor:"transparent"}}},{[Ee]:{"&-indeterminate":{[`${Ee}-inner`]:{backgroundColor:Ke.colorBgContainer,borderColor:Ke.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Ke.fontSizeLG/2,height:Ke.fontSizeLG/2,backgroundColor:Ke.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${et}-disabled`]:{cursor:"not-allowed"},[`${Ee}-disabled`]:{[`&, ${Ee}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${Ee}-inner`]:{background:Ke.colorBgContainerDisabled,borderColor:Ke.colorBorder,"&:after":{borderColor:Ke.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Ke.colorTextDisabled},[`&${Ee}-indeterminate ${Ee}-inner::after`]:{background:Ke.colorTextDisabled}}}]};function De(Ke,Ee){const et=(0,Ce.TS)(Ee,{checkboxCls:`.${Ke}`,checkboxSize:Ee.controlInteractiveSize});return[Ie(et)]}be.ZP=(0,we.Z)("Checkbox",(Ke,Ee)=>{let{prefixCls:et}=Ee;return[De(et,Ke)]})},93891:function(_e,be,oe){"use strict";var se=oe(59301),Ce=oe(36355),we=oe(64165);const Ie=De=>{const{componentName:Ke}=De,{getPrefixCls:Ee}=(0,se.useContext)(Ce.E_),et=Ee("empty");switch(Ke){case"Table":case"List":return se.createElement(we.Z,{image:we.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return se.createElement(we.Z,{image:we.Z.PRESENTED_IMAGE_SIMPLE,className:`${et}-small`});default:return se.createElement(we.Z,null)}};be.Z=Ie},37906:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return an}});var se=oe(59301),Ce=oe(92310),we=oe.n(Ce),Ie=oe(69507),De=oe(36355),Ke=oe(19716),Ee=oe(8628),Je={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},tt=se.createContext({}),ht=oe(38298),kt=function(it,Ve){var gt={};for(var Bt in it)Object.prototype.hasOwnProperty.call(it,Bt)&&Ve.indexOf(Bt)<0&&(gt[Bt]=it[Bt]);if(it!=null&&typeof Object.getOwnPropertySymbols=="function")for(var sn=0,Bt=Object.getOwnPropertySymbols(it);sn<Bt.length;sn++)Ve.indexOf(Bt[sn])<0&&Object.prototype.propertyIsEnumerable.call(it,Bt[sn])&&(gt[Bt[sn]]=it[Bt[sn]]);return gt};const ze=it=>(0,ht.Z)(it).map(Ve=>Object.assign({},Ve==null?void 0:Ve.props));function ee(it,Ve,gt){const Bt=se.useMemo(()=>Ve||ze(gt),[Ve,gt]);return se.useMemo(()=>Bt.map(It=>{var{span:en}=It,En=kt(It,["span"]);return Object.assign(Object.assign({},En),{span:typeof en=="number"?en:(0,Ie.m9)(it,en)})}),[Bt,it])}function ne(it,Ve,gt){let Bt=it;return(gt===void 0||gt>Ve)&&(Bt=Object.assign(Object.assign({},it),{span:Ve})),Bt}function ge(it,Ve){const gt=[];let Bt=[],sn=Ve;return it.filter(It=>It).forEach((It,en)=>{const En=It==null?void 0:It.span,ei=En||1;if(en===it.length-1){Bt.push(ne(It,sn,En)),gt.push(Bt);return}ei<sn?(sn-=ei,Bt.push(It)):(Bt.push(ne(It,sn,ei)),gt.push(Bt),sn=Ve,Bt=[])}),gt}var me=(it,Ve)=>(0,se.useMemo)(()=>ge(Ve,it),[Ve,it]),Ne=it=>{let{children:Ve}=it;return Ve};function ke(it){return it!=null}var We=it=>{const{itemPrefixCls:Ve,component:gt,span:Bt,className:sn,style:It,labelStyle:en,contentStyle:En,bordered:ei,label:An,content:Kn,colon:jt}=it,Nn=gt;return ei?se.createElement(Nn,{className:we()({[`${Ve}-item-label`]:ke(An),[`${Ve}-item-content`]:ke(Kn)},sn),style:It,colSpan:Bt},ke(An)&&se.createElement("span",{style:en},An),ke(Kn)&&se.createElement("span",{style:En},Kn)):se.createElement(Nn,{className:we()(`${Ve}-item`,sn),style:It,colSpan:Bt},se.createElement("div",{className:`${Ve}-item-container`},(An||An===0)&&se.createElement("span",{className:we()(`${Ve}-item-label`,{[`${Ve}-item-no-colon`]:!jt}),style:en},An),(Kn||Kn===0)&&se.createElement("span",{className:we()(`${Ve}-item-content`),style:En},Kn)))};function $e(it,Ve,gt){let{colon:Bt,prefixCls:sn,bordered:It}=Ve,{component:en,type:En,showLabel:ei,showContent:An,labelStyle:Kn,contentStyle:jt}=gt;return it.map((Nn,Gn)=>{let{label:ii,children:Sn,prefixCls:Yt=sn,className:Zt,style:St,labelStyle:rt,contentStyle:Ft,span:Ot=1,key:ft}=Nn;return typeof en=="string"?se.createElement(We,{key:`${En}-${ft||Gn}`,className:Zt,style:St,labelStyle:Object.assign(Object.assign({},Kn),rt),contentStyle:Object.assign(Object.assign({},jt),Ft),span:Ot,colon:Bt,component:en,itemPrefixCls:Yt,bordered:It,label:ei?ii:null,content:An?Sn:null}):[se.createElement(We,{key:`label-${ft||Gn}`,className:Zt,style:Object.assign(Object.assign(Object.assign({},Kn),St),rt),span:1,colon:Bt,component:en[0],itemPrefixCls:Yt,bordered:It,label:ii}),se.createElement(We,{key:`content-${ft||Gn}`,className:Zt,style:Object.assign(Object.assign(Object.assign({},jt),St),Ft),span:Ot*2-1,component:en[1],itemPrefixCls:Yt,bordered:It,content:Sn})]})}var ut=it=>{const Ve=se.useContext(tt),{prefixCls:gt,vertical:Bt,row:sn,index:It,bordered:en}=it;return Bt?se.createElement(se.Fragment,null,se.createElement("tr",{key:`label-${It}`,className:`${gt}-row`},$e(sn,it,Object.assign({component:"th",type:"label",showLabel:!0},Ve))),se.createElement("tr",{key:`content-${It}`,className:`${gt}-row`},$e(sn,it,Object.assign({component:"td",type:"content",showContent:!0},Ve)))):se.createElement("tr",{key:It,className:`${gt}-row`},$e(sn,it,Object.assign({component:en?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},Ve)))},Mt=oe(17313),nt=oe(83116),$t=oe(37613);const Pt=it=>{const{componentCls:Ve,labelBg:gt}=it;return{[`&${Ve}-bordered`]:{[`> ${Ve}-view`]:{border:`${it.lineWidth}px ${it.lineType} ${it.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"},[`${Ve}-row`]:{borderBottom:`${it.lineWidth}px ${it.lineType} ${it.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${Ve}-item-label, > ${Ve}-item-content`]:{padding:`${it.padding}px ${it.paddingLG}px`,borderInlineEnd:`${it.lineWidth}px ${it.lineType} ${it.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${Ve}-item-label`]:{color:it.colorTextSecondary,backgroundColor:gt,"&::after":{display:"none"}}}},[`&${Ve}-middle`]:{[`${Ve}-row`]:{[`> ${Ve}-item-label, > ${Ve}-item-content`]:{padding:`${it.paddingSM}px ${it.paddingLG}px`}}},[`&${Ve}-small`]:{[`${Ve}-row`]:{[`> ${Ve}-item-label, > ${Ve}-item-content`]:{padding:`${it.paddingXS}px ${it.padding}px`}}}}}},dn=it=>{const{componentCls:Ve,extraColor:gt,itemPaddingBottom:Bt,colonMarginRight:sn,colonMarginLeft:It,titleMarginBottom:en}=it;return{[Ve]:Object.assign(Object.assign(Object.assign({},(0,Mt.Wf)(it)),Pt(it)),{"&-rtl":{direction:"rtl"},[`${Ve}-header`]:{display:"flex",alignItems:"center",marginBottom:en},[`${Ve}-title`]:Object.assign(Object.assign({},Mt.vS),{flex:"auto",color:it.colorText,fontWeight:it.fontWeightStrong,fontSize:it.fontSizeLG,lineHeight:it.lineHeightLG}),[`${Ve}-extra`]:{marginInlineStart:"auto",color:gt,fontSize:it.fontSize},[`${Ve}-view`]:{width:"100%",borderRadius:it.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${Ve}-row`]:{"> th, > td":{paddingBottom:Bt},"&:last-child":{borderBottom:"none"}},[`${Ve}-item-label`]:{color:it.colorTextTertiary,fontWeight:"normal",fontSize:it.fontSize,lineHeight:it.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${It}px ${sn}px`},[`&${Ve}-item-no-colon::after`]:{content:'""'}},[`${Ve}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${Ve}-item-content`]:{display:"table-cell",flex:1,color:it.colorText,fontSize:it.fontSize,lineHeight:it.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${Ve}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${Ve}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${Ve}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${Ve}-row`]:{"> th, > td":{paddingBottom:it.paddingSM}}},"&-small":{[`${Ve}-row`]:{"> th, > td":{paddingBottom:it.paddingXS}}}})}};var zt=(0,nt.Z)("Descriptions",it=>{const Ve=(0,$t.TS)(it,{});return[dn(Ve)]},it=>({labelBg:it.colorFillAlter,titleMarginBottom:it.fontSizeSM*it.lineHeightSM,itemPaddingBottom:it.padding,colonMarginRight:it.marginXS,colonMarginLeft:it.marginXXS/2,extraColor:it.colorText})),Xt=function(it,Ve){var gt={};for(var Bt in it)Object.prototype.hasOwnProperty.call(it,Bt)&&Ve.indexOf(Bt)<0&&(gt[Bt]=it[Bt]);if(it!=null&&typeof Object.getOwnPropertySymbols=="function")for(var sn=0,Bt=Object.getOwnPropertySymbols(it);sn<Bt.length;sn++)Ve.indexOf(Bt[sn])<0&&Object.prototype.propertyIsEnumerable.call(it,Bt[sn])&&(gt[Bt[sn]]=it[Bt[sn]]);return gt};const fn=it=>{const{prefixCls:Ve,title:gt,extra:Bt,column:sn,colon:It=!0,bordered:en,layout:En,children:ei,className:An,rootClassName:Kn,style:jt,size:Nn,labelStyle:Gn,contentStyle:ii,items:Sn}=it,Yt=Xt(it,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","items"]),{getPrefixCls:Zt,direction:St,descriptions:rt}=se.useContext(De.E_),Ft=Zt("descriptions",Ve),Ot=(0,Ee.Z)(),ft=se.useMemo(()=>{var Oe;return typeof sn=="number"?sn:(Oe=(0,Ie.m9)(Ot,Object.assign(Object.assign({},Je),sn)))!==null&&Oe!==void 0?Oe:3},[Ot,sn]),ct=ee(Ot,Sn,ei),Ge=(0,Ke.Z)(Nn),Ae=me(ft,ct),[xe,je]=zt(Ft),Qe=se.useMemo(()=>({labelStyle:Gn,contentStyle:ii}),[Gn,ii]);return xe(se.createElement(tt.Provider,{value:Qe},se.createElement("div",Object.assign({className:we()(Ft,rt==null?void 0:rt.className,{[`${Ft}-${Ge}`]:Ge&&Ge!=="default",[`${Ft}-bordered`]:!!en,[`${Ft}-rtl`]:St==="rtl"},An,Kn,je),style:Object.assign(Object.assign({},rt==null?void 0:rt.style),jt)},Yt),(gt||Bt)&&se.createElement("div",{className:`${Ft}-header`},gt&&se.createElement("div",{className:`${Ft}-title`},gt),Bt&&se.createElement("div",{className:`${Ft}-extra`},Bt)),se.createElement("div",{className:`${Ft}-view`},se.createElement("table",null,se.createElement("tbody",null,Ae.map((Oe,xt)=>se.createElement(ut,{key:xt,index:xt,colon:It,prefixCls:Ft,vertical:En==="vertical",bordered:en,row:Oe}))))))))};fn.Item=Ne;var an=fn},43428:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return jt}});var se=oe(92310),Ce=oe.n(se),we=oe(57259),Ie=oe(29043),De=oe(43403),Ke=oe(28800),Ee=oe(59301),et=Ee.createContext(null),Je=Ee.createContext({}),Ye=et,tt=oe(80962),ht=oe(5891),kt=oe(43469),ze=oe(85108),ee=oe(36994),ne=oe(80764),ge=function(Gn){var ii=Gn.prefixCls,Sn=Gn.className,Yt=Gn.style,Zt=Gn.children,St=Gn.containerRef,rt=Gn.id,Ft=Gn.onMouseEnter,Ot=Gn.onMouseOver,ft=Gn.onMouseLeave,ct=Gn.onClick,Ge=Gn.onKeyDown,Ae=Gn.onKeyUp,xe={onMouseEnter:Ft,onMouseOver:Ot,onMouseLeave:ft,onClick:ct,onKeyDown:Ge,onKeyUp:Ae},je=Ee.useContext(Je),Qe=je.panel,Oe=(0,ne.useComposeRef)(Qe,St);return Ee.createElement(Ee.Fragment,null,Ee.createElement("div",(0,ht.Z)({id:rt,className:Ce()("".concat(ii,"-content"),Sn),style:(0,we.Z)({},Yt),"aria-modal":"true",role:"dialog",ref:Oe},xe),Zt))},ue=ge,me=oe(51395);function Se(Nn){return typeof Nn=="string"&&String(Number(Nn))===Nn?((0,me.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Nn)):Nn}function Ne(Nn){warning(!("wrapperClassName"in Nn),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Nn.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var ke={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Te(Nn,Gn){var ii,Sn,Yt,Zt,St=Nn.prefixCls,rt=Nn.open,Ft=Nn.placement,Ot=Nn.inline,ft=Nn.push,ct=Nn.forceRender,Ge=Nn.autoFocus,Ae=Nn.keyboard,xe=Nn.rootClassName,je=Nn.rootStyle,Qe=Nn.zIndex,Oe=Nn.className,xt=Nn.id,hn=Nn.style,Pn=Nn.motion,wt=Nn.width,nn=Nn.height,Mn=Nn.children,Zn=Nn.contentWrapperStyle,li=Nn.mask,xi=Nn.maskClosable,Mi=Nn.maskMotion,Si=Nn.maskClassName,Ri=Nn.maskStyle,lr=Nn.afterOpenChange,dr=Nn.onClose,ur=Nn.onMouseEnter,Sr=Nn.onMouseOver,Wr=Nn.onMouseLeave,Gi=Nn.onClick,Zr=Nn.onKeyDown,Yi=Nn.onKeyUp,Ue=Ee.useRef(),no=Ee.useRef(),pr=Ee.useRef();Ee.useImperativeHandle(Gn,function(){return Ue.current});var fo=function(Rn){var bt=Rn.keyCode,Ut=Rn.shiftKey;switch(bt){case ze.Z.TAB:{if(bt===ze.Z.TAB){if(!Ut&&document.activeElement===pr.current){var Ln;(Ln=no.current)===null||Ln===void 0||Ln.focus({preventScroll:!0})}else if(Ut&&document.activeElement===no.current){var ni;(ni=pr.current)===null||ni===void 0||ni.focus({preventScroll:!0})}}break}case ze.Z.ESC:{dr&&Ae&&(Rn.stopPropagation(),dr(Rn));break}}};Ee.useEffect(function(){if(rt&&Ge){var mi;(mi=Ue.current)===null||mi===void 0||mi.focus({preventScroll:!0})}},[rt]);var Fo=Ee.useState(!1),Vo=(0,Ie.Z)(Fo,2),Io=Vo[0],Oi=Vo[1],on=Ee.useContext(Ye),ln;ft===!1?ln={distance:0}:ft===!0?ln={}:ln=ft||{};var qt=(ii=(Sn=(Yt=ln)===null||Yt===void 0?void 0:Yt.distance)!==null&&Sn!==void 0?Sn:on==null?void 0:on.pushDistance)!==null&&ii!==void 0?ii:180,Nt=Ee.useMemo(function(){return{pushDistance:qt,push:function(){Oi(!0)},pull:function(){Oi(!1)}}},[qt]);Ee.useEffect(function(){if(rt){var mi;on==null||(mi=on.push)===null||mi===void 0||mi.call(on)}else{var Rn;on==null||(Rn=on.pull)===null||Rn===void 0||Rn.call(on)}},[rt]),Ee.useEffect(function(){return function(){var mi;on==null||(mi=on.pull)===null||mi===void 0||mi.call(on)}},[]);var On=li&&Ee.createElement(kt.default,(0,ht.Z)({key:"mask"},Mi,{visible:rt}),function(mi,Rn){var bt=mi.className,Ut=mi.style;return Ee.createElement("div",{className:Ce()("".concat(St,"-mask"),bt,Si),style:(0,we.Z)((0,we.Z)({},Ut),Ri),onClick:xi&&rt?dr:void 0,ref:Rn})}),Un=typeof Pn=="function"?Pn(Ft):Pn,Vt={};if(Io&&qt)switch(Ft){case"top":Vt.transform="translateY(".concat(qt,"px)");break;case"bottom":Vt.transform="translateY(".concat(-qt,"px)");break;case"left":Vt.transform="translateX(".concat(qt,"px)");break;default:Vt.transform="translateX(".concat(-qt,"px)");break}Ft==="left"||Ft==="right"?Vt.width=Se(wt):Vt.height=Se(nn);var yt={onMouseEnter:ur,onMouseOver:Sr,onMouseLeave:Wr,onClick:Gi,onKeyDown:Zr,onKeyUp:Yi},In=Ee.createElement(kt.default,(0,ht.Z)({key:"panel"},Un,{visible:rt,forceRender:ct,onVisibleChanged:function(Rn){lr==null||lr(Rn)},removeOnLeave:!1,leavedClassName:"".concat(St,"-content-wrapper-hidden")}),function(mi,Rn){var bt=mi.className,Ut=mi.style;return Ee.createElement("div",(0,ht.Z)({className:Ce()("".concat(St,"-content-wrapper"),bt),style:(0,we.Z)((0,we.Z)((0,we.Z)({},Vt),Ut),Zn)},(0,ee.Z)(Nn,{data:!0})),Ee.createElement(ue,(0,ht.Z)({id:xt,containerRef:Rn,prefixCls:St,className:Oe,style:hn},yt),Mn))}),zn=(0,we.Z)({},je);return Qe&&(zn.zIndex=Qe),Ee.createElement(Ye.Provider,{value:Nt},Ee.createElement("div",{className:Ce()(St,"".concat(St,"-").concat(Ft),xe,(Zt={},(0,tt.Z)(Zt,"".concat(St,"-open"),rt),(0,tt.Z)(Zt,"".concat(St,"-inline"),Ot),Zt)),style:zn,tabIndex:-1,ref:Ue,onKeyDown:fo},On,Ee.createElement("div",{tabIndex:0,ref:no,style:ke,"aria-hidden":"true","data-sentinel":"start"}),In,Ee.createElement("div",{tabIndex:0,ref:pr,style:ke,"aria-hidden":"true","data-sentinel":"end"})))}var We=Ee.forwardRef(Te),$e=We,st=function(Gn){var ii=Gn.open,Sn=ii===void 0?!1:ii,Yt=Gn.prefixCls,Zt=Yt===void 0?"rc-drawer":Yt,St=Gn.placement,rt=St===void 0?"right":St,Ft=Gn.autoFocus,Ot=Ft===void 0?!0:Ft,ft=Gn.keyboard,ct=ft===void 0?!0:ft,Ge=Gn.width,Ae=Ge===void 0?378:Ge,xe=Gn.mask,je=xe===void 0?!0:xe,Qe=Gn.maskClosable,Oe=Qe===void 0?!0:Qe,xt=Gn.getContainer,hn=Gn.forceRender,Pn=Gn.afterOpenChange,wt=Gn.destroyOnClose,nn=Gn.onMouseEnter,Mn=Gn.onMouseOver,Zn=Gn.onMouseLeave,li=Gn.onClick,xi=Gn.onKeyDown,Mi=Gn.onKeyUp,Si=Gn.panelRef,Ri=Ee.useState(!1),lr=(0,Ie.Z)(Ri,2),dr=lr[0],ur=lr[1],Sr=Ee.useState(!1),Wr=(0,Ie.Z)(Sr,2),Gi=Wr[0],Zr=Wr[1];(0,Ke.Z)(function(){Zr(!0)},[]);var Yi=Gi?Sn:!1,Ue=Ee.useRef(),no=Ee.useRef();(0,Ke.Z)(function(){Yi&&(no.current=document.activeElement)},[Yi]);var pr=function(Oi){var on;if(ur(Oi),Pn==null||Pn(Oi),!Oi&&no.current&&!((on=Ue.current)!==null&&on!==void 0&&on.contains(no.current))){var ln;(ln=no.current)===null||ln===void 0||ln.focus({preventScroll:!0})}},fo=Ee.useMemo(function(){return{panel:Si}},[Si]);if(!hn&&!dr&&!Yi&&wt)return null;var Fo={onMouseEnter:nn,onMouseOver:Mn,onMouseLeave:Zn,onClick:li,onKeyDown:xi,onKeyUp:Mi},Vo=(0,we.Z)((0,we.Z)({},Gn),{},{open:Yi,prefixCls:Zt,placement:rt,autoFocus:Ot,keyboard:ct,width:Ae,mask:je,maskClosable:Oe,inline:xt===!1,afterOpenChange:pr,ref:Ue},Fo);return Ee.createElement(Je.Provider,{value:fo},Ee.createElement(De.Z,{open:Yi||hn||dr,autoDestroy:!1,getContainer:xt,autoLock:je&&(Yi||dr)},Ee.createElement($e,Vo)))},ut=st,Mt=ut,nt=oe(62892),$t=oe(36355),Pt=oe(32441),dn=oe(47729),Xt=Nn=>{const{prefixCls:Gn,title:ii,footer:Sn,extra:Yt,closeIcon:Zt,closable:St,onClose:rt,headerStyle:Ft,drawerStyle:Ot,bodyStyle:ft,footerStyle:ct,children:Ge}=Nn,Ae=Ee.useCallback(xt=>Ee.createElement("button",{type:"button",onClick:rt,"aria-label":"Close",className:`${Gn}-close`},xt),[rt]),[xe,je]=(0,dn.Z)(St,Zt,Ae,void 0,!0),Qe=Ee.useMemo(()=>!ii&&!xe?null:Ee.createElement("div",{style:Ft,className:Ce()(`${Gn}-header`,{[`${Gn}-header-close-only`]:xe&&!ii&&!Yt})},Ee.createElement("div",{className:`${Gn}-header-title`},je,ii&&Ee.createElement("div",{className:`${Gn}-title`},ii)),Yt&&Ee.createElement("div",{className:`${Gn}-extra`},Yt)),[xe,je,Yt,Ft,Gn,ii]),Oe=Ee.useMemo(()=>{if(!Sn)return null;const xt=`${Gn}-footer`;return Ee.createElement("div",{className:xt,style:ct},Sn)},[Sn,ct,Gn]);return Ee.createElement("div",{className:`${Gn}-wrapper-body`,style:Ot},Qe,Ee.createElement("div",{className:`${Gn}-body`,style:ft},Ge),Oe)},fn=oe(33234),an=oe(83116),it=oe(37613),gt=Nn=>{const{componentCls:Gn,motionDurationSlow:ii}=Nn,Sn={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${ii}`}}};return{[Gn]:{[`${Gn}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${ii}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${Gn}-panel-motion`]:{"&-left":[Sn,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[Sn,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[Sn,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[Sn,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const Bt=Nn=>{const{componentCls:Gn,zIndexPopup:ii,colorBgMask:Sn,colorBgElevated:Yt,motionDurationSlow:Zt,motionDurationMid:St,padding:rt,paddingLG:Ft,fontSizeLG:Ot,lineHeightLG:ft,lineWidth:ct,lineType:Ge,colorSplit:Ae,marginSM:xe,colorIcon:je,colorIconHover:Qe,colorText:Oe,fontWeightStrong:xt,footerPaddingBlock:hn,footerPaddingInline:Pn}=Nn,wt=`${Gn}-content-wrapper`;return{[Gn]:{position:"fixed",inset:0,zIndex:ii,pointerEvents:"none","&-pure":{position:"relative",background:Yt,[`&${Gn}-left`]:{boxShadow:Nn.boxShadowDrawerLeft},[`&${Gn}-right`]:{boxShadow:Nn.boxShadowDrawerRight},[`&${Gn}-top`]:{boxShadow:Nn.boxShadowDrawerUp},[`&${Gn}-bottom`]:{boxShadow:Nn.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${Gn}-mask`]:{position:"absolute",inset:0,zIndex:ii,background:Sn,pointerEvents:"auto"},[wt]:{position:"absolute",zIndex:ii,maxWidth:"100vw",transition:`all ${Zt}`,"&-hidden":{display:"none"}},[`&-left > ${wt}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Nn.boxShadowDrawerLeft},[`&-right > ${wt}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Nn.boxShadowDrawerRight},[`&-top > ${wt}`]:{top:0,insetInline:0,boxShadow:Nn.boxShadowDrawerUp},[`&-bottom > ${wt}`]:{bottom:0,insetInline:0,boxShadow:Nn.boxShadowDrawerDown},[`${Gn}-content`]:{width:"100%",height:"100%",overflow:"auto",background:Yt,pointerEvents:"auto"},[`${Gn}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${Gn}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${rt}px ${Ft}px`,fontSize:Ot,lineHeight:ft,borderBottom:`${ct}px ${Ge} ${Ae}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${Gn}-extra`]:{flex:"none"},[`${Gn}-close`]:{display:"inline-block",marginInlineEnd:xe,color:je,fontWeight:xt,fontSize:Ot,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${St}`,textRendering:"auto","&:focus, &:hover":{color:Qe,textDecoration:"none"}},[`${Gn}-title`]:{flex:1,margin:0,color:Oe,fontWeight:Nn.fontWeightStrong,fontSize:Ot,lineHeight:ft},[`${Gn}-body`]:{flex:1,minWidth:0,minHeight:0,padding:Ft,overflow:"auto"},[`${Gn}-footer`]:{flexShrink:0,padding:`${hn}px ${Pn}px`,borderTop:`${ct}px ${Ge} ${Ae}`},"&-rtl":{direction:"rtl"}}}};var sn=(0,an.Z)("Drawer",Nn=>{const Gn=(0,it.TS)(Nn,{});return[Bt(Gn),gt(Gn)]},Nn=>({zIndexPopup:Nn.zIndexPopupBase,footerPaddingBlock:Nn.paddingXS,footerPaddingInline:Nn.padding})),It=oe(11575),en=function(Nn,Gn){var ii={};for(var Sn in Nn)Object.prototype.hasOwnProperty.call(Nn,Sn)&&Gn.indexOf(Sn)<0&&(ii[Sn]=Nn[Sn]);if(Nn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,Sn=Object.getOwnPropertySymbols(Nn);Yt<Sn.length;Yt++)Gn.indexOf(Sn[Yt])<0&&Object.prototype.propertyIsEnumerable.call(Nn,Sn[Yt])&&(ii[Sn[Yt]]=Nn[Sn[Yt]]);return ii};const En=null,ei={distance:180},An=Nn=>{var Gn;const{rootClassName:ii,width:Sn,height:Yt,size:Zt="default",mask:St=!0,push:rt=ei,open:Ft,afterOpenChange:Ot,onClose:ft,prefixCls:ct,getContainer:Ge,style:Ae,className:xe,visible:je,afterVisibleChange:Qe}=Nn,Oe=en(Nn,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:xt,getPrefixCls:hn,direction:Pn,drawer:wt}=Ee.useContext($t.E_),nn=hn("drawer",ct),[Mn,Zn]=sn(nn),li=Ge===void 0&&xt?()=>xt(document.body):Ge,xi=Ce()({"no-mask":!St,[`${nn}-rtl`]:Pn==="rtl"},ii,Zn),Mi=Ee.useMemo(()=>Sn!=null?Sn:Zt==="large"?736:378,[Sn,Zt]),Si=Ee.useMemo(()=>Yt!=null?Yt:Zt==="large"?736:378,[Yt,Zt]),Ri={motionName:(0,nt.m)(nn,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},lr=ur=>({motionName:(0,nt.m)(nn,`panel-motion-${ur}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),dr=(0,It.H)();return Mn(Ee.createElement(fn.BR,null,Ee.createElement(Pt.Ux,{status:!0,override:!0},Ee.createElement(Mt,Object.assign({prefixCls:nn,onClose:ft,maskMotion:Ri,motion:lr},Oe,{open:Ft!=null?Ft:je,mask:St,push:rt,width:Mi,height:Si,style:Object.assign(Object.assign({},wt==null?void 0:wt.style),Ae),className:Ce()(wt==null?void 0:wt.className,xe),rootClassName:xi,getContainer:li,afterOpenChange:Ot!=null?Ot:Qe,panelRef:dr}),Ee.createElement(Xt,Object.assign({prefixCls:nn},Oe,{onClose:ft}))))))},Kn=Nn=>{const{prefixCls:Gn,style:ii,className:Sn,placement:Yt="right"}=Nn,Zt=en(Nn,["prefixCls","style","className","placement"]),{getPrefixCls:St}=Ee.useContext($t.E_),rt=St("drawer",Gn),[Ft,Ot]=sn(rt),ft=Ce()(rt,`${rt}-pure`,`${rt}-${Yt}`,Ot,Sn);return Ft(Ee.createElement("div",{className:ft,style:ii},Ee.createElement(Xt,Object.assign({prefixCls:rt},Zt))))};An._InternalPanelDoNotUseOrYouWillBeFired=Kn;var jt=An},91857:function(_e,be,oe){"use strict";var se=oe(59301),Ce=oe(53878),we=oe(92310),Ie=oe.n(we),De=oe(31561),Ke=oe(80764),Ee=oe(35788),et=oe(64002),Je=oe(79676),Ye=oe(53487),tt=oe(92343),ht=oe(36355),kt=oe(20834),ze=oe(40875),ee=oe(88088),ne=oe(47211);const ge=null,ue=ke=>{const{menu:Te,arrow:We,prefixCls:$e,children:st,trigger:ut,disabled:Mt,dropdownRender:nt,getPopupContainer:$t,overlayClassName:Pt,rootClassName:dn,open:zt,onOpenChange:Xt,visible:fn,onVisibleChange:an,mouseEnterDelay:it=.15,mouseLeaveDelay:Ve=.1,autoAdjustOverflow:gt=!0,placement:Bt="",overlay:sn,transitionName:It}=ke,{getPopupContainer:en,getPrefixCls:En,direction:ei}=se.useContext(ht.E_),An=se.useMemo(()=>{const xe=En();return It!==void 0?It:Bt.includes("top")?`${xe}-slide-down`:`${xe}-slide-up`},[En,Bt,It]),Kn=se.useMemo(()=>Bt?Bt.includes("Center")?Bt.slice(0,Bt.indexOf("Center")):Bt:ei==="rtl"?"bottomRight":"bottomLeft",[Bt,ei]),jt=En("dropdown",$e),[Nn,Gn]=(0,ne.Z)(jt),[,ii]=(0,ee.Z)(),Sn=se.Children.only(st),Yt=(0,tt.Tm)(Sn,{className:Ie()(`${jt}-trigger`,{[`${jt}-rtl`]:ei==="rtl"},Sn.props.className),disabled:Mt}),Zt=Mt?[]:ut;let St;Zt&&Zt.includes("contextMenu")&&(St=!0);const[rt,Ft]=(0,Ee.Z)(!1,{value:zt!=null?zt:fn}),Ot=(0,Ke.useEvent)(xe=>{Xt==null||Xt(xe),an==null||an(xe),Ft(xe)}),ft=Ie()(Pt,dn,Gn,{[`${jt}-rtl`]:ei==="rtl"}),ct=(0,Je.Z)({arrowPointAtCenter:typeof We=="object"&&We.pointAtCenter,autoAdjustOverflow:gt,offset:ii.marginXXS,arrowWidth:We?ii.sizePopupArrow:0,borderRadius:ii.borderRadius}),Ge=se.useCallback(()=>{Ft(!1)},[]),Ae=()=>{let xe;return Te!=null&&Te.items?xe=se.createElement(kt.default,Object.assign({},Te)):typeof sn=="function"?xe=sn():xe=sn,nt&&(xe=nt(xe)),xe=se.Children.only(typeof xe=="string"?se.createElement("span",null,xe):xe),se.createElement(ze.J,{prefixCls:`${jt}-menu`,expandIcon:se.createElement("span",{className:`${jt}-menu-submenu-arrow`},se.createElement(Ce.Z,{className:`${jt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Ge,validator:je=>{let{mode:Qe}=je}},xe)};return Nn(se.createElement(De.Z,Object.assign({alignPoint:St},(0,et.Z)(ke,["rootClassName"]),{mouseEnterDelay:it,mouseLeaveDelay:Ve,visible:rt,builtinPlacements:ct,arrow:!!We,overlayClassName:ft,prefixCls:jt,getPopupContainer:$t||en,transitionName:An,trigger:Zt,overlay:Ae,placement:Kn,onVisibleChange:Ot}),Yt))};function me(ke){return Object.assign(Object.assign({},ke),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const Se=(0,Ye.Z)(ue,"dropdown",ke=>ke,me),Ne=ke=>se.createElement(Se,Object.assign({},ke),se.createElement("span",null));ue._InternalPanelDoNotUseOrYouWillBeFired=Ne,be.Z=ue},38854:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return ee}});var se=oe(91857),Ce=oe(92310),we=oe.n(Ce),Ie=oe(59301),De=oe(19362),Ke=oe(3113),Ee=oe(36355),et=oe(81327),Je=oe(33234),Ye=oe(47211),tt=function(ne,ge){var ue={};for(var me in ne)Object.prototype.hasOwnProperty.call(ne,me)&&ge.indexOf(me)<0&&(ue[me]=ne[me]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Se=0,me=Object.getOwnPropertySymbols(ne);Se<me.length;Se++)ge.indexOf(me[Se])<0&&Object.prototype.propertyIsEnumerable.call(ne,me[Se])&&(ue[me[Se]]=ne[me[Se]]);return ue};const ht=ne=>{const{getPopupContainer:ge,getPrefixCls:ue,direction:me}=Ie.useContext(Ee.E_),{prefixCls:Se,type:Ne="default",danger:ke,disabled:Te,loading:We,onClick:$e,htmlType:st,children:ut,className:Mt,menu:nt,arrow:$t,autoFocus:Pt,overlay:dn,trigger:zt,align:Xt,open:fn,onOpenChange:an,placement:it,getPopupContainer:Ve,href:gt,icon:Bt=Ie.createElement(De.Z,null),title:sn,buttonsRender:It=Ae=>Ae,mouseEnterDelay:en,mouseLeaveDelay:En,overlayClassName:ei,overlayStyle:An,destroyPopupOnHide:Kn,dropdownRender:jt}=ne,Nn=tt(ne,["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"]),Gn=ue("dropdown",Se),ii=`${Gn}-button`,[Sn,Yt]=(0,Ye.Z)(Gn),Zt={menu:nt,arrow:$t,autoFocus:Pt,align:Xt,disabled:Te,trigger:Te?[]:zt,onOpenChange:an,getPopupContainer:Ve||ge,mouseEnterDelay:en,mouseLeaveDelay:En,overlayClassName:ei,overlayStyle:An,destroyPopupOnHide:Kn,dropdownRender:jt},{compactSize:St,compactItemClassnames:rt}=(0,Je.ri)(Gn,me),Ft=we()(ii,rt,Mt,Yt);"overlay"in ne&&(Zt.overlay=dn),"open"in ne&&(Zt.open=fn),"placement"in ne?Zt.placement=it:Zt.placement=me==="rtl"?"bottomLeft":"bottomRight";const Ot=Ie.createElement(Ke.ZP,{type:Ne,danger:ke,disabled:Te,loading:We,onClick:$e,htmlType:st,href:gt,title:sn},ut),ft=Ie.createElement(Ke.ZP,{type:Ne,danger:ke,icon:Bt}),[ct,Ge]=It([Ot,ft]);return Sn(Ie.createElement(et.Z.Compact,Object.assign({className:Ft,size:St,block:!0},Nn),ct,Ie.createElement(se.Z,Object.assign({},Zt),Ge)))};ht.__ANT_BUTTON=!0;var kt=ht;const ze=se.Z;ze.Button=kt;var ee=ze},47211:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return tt}});var se=oe(17313),Ce=oe(13826),we=oe(92899),Ie=oe(29878),De=oe(19447),Ke=oe(83116),Ee=oe(37613),Je=ht=>{const{componentCls:kt,menuCls:ze,colorError:ee,colorTextLightSolid:ne}=ht,ge=`${ze}-item`;return{[`${kt}, ${kt}-menu-submenu`]:{[`${ze} ${ge}`]:{[`&${ge}-danger:not(${ge}-disabled)`]:{color:ee,"&:hover":{color:ne,backgroundColor:ee}}}}}};const Ye=ht=>{const{componentCls:kt,menuCls:ze,zIndexPopup:ee,dropdownArrowDistance:ne,sizePopupArrow:ge,antCls:ue,iconCls:me,motionDurationMid:Se,dropdownPaddingVertical:Ne,fontSize:ke,dropdownEdgeChildPadding:Te,colorTextDisabled:We,fontSizeIcon:$e,controlPaddingHorizontal:st,colorBgElevated:ut}=ht;return[{[kt]:Object.assign(Object.assign({},(0,se.Wf)(ht)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:ee,display:"block","&::before":{position:"absolute",insetBlock:-ne+ge/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${ue}-btn`]:{[`& > ${me}-down, & > ${ue}-btn-icon > ${me}-down`]:{fontSize:$e}},[`${kt}-wrap`]:{position:"relative",[`${ue}-btn > ${me}-down`]:{fontSize:$e},[`${me}-down::before`]:{transition:`transform ${Se}`}},[`${kt}-wrap-open`]:{[`${me}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${ue}-slide-down-enter${ue}-slide-down-enter-active${kt}-placement-bottomLeft,
&${ue}-slide-down-appear${ue}-slide-down-appear-active${kt}-placement-bottomLeft,
&${ue}-slide-down-enter${ue}-slide-down-enter-active${kt}-placement-bottom,
&${ue}-slide-down-appear${ue}-slide-down-appear-active${kt}-placement-bottom,
&${ue}-slide-down-enter${ue}-slide-down-enter-active${kt}-placement-bottomRight,
&${ue}-slide-down-appear${ue}-slide-down-appear-active${kt}-placement-bottomRight`]:{animationName:Ce.fJ},[`&${ue}-slide-up-enter${ue}-slide-up-enter-active${kt}-placement-topLeft,
&${ue}-slide-up-appear${ue}-slide-up-appear-active${kt}-placement-topLeft,
&${ue}-slide-up-enter${ue}-slide-up-enter-active${kt}-placement-top,
&${ue}-slide-up-appear${ue}-slide-up-appear-active${kt}-placement-top,
&${ue}-slide-up-enter${ue}-slide-up-enter-active${kt}-placement-topRight,
&${ue}-slide-up-appear${ue}-slide-up-appear-active${kt}-placement-topRight`]:{animationName:Ce.Qt},[`&${ue}-slide-down-leave${ue}-slide-down-leave-active${kt}-placement-bottomLeft,
&${ue}-slide-down-leave${ue}-slide-down-leave-active${kt}-placement-bottom,
&${ue}-slide-down-leave${ue}-slide-down-leave-active${kt}-placement-bottomRight`]:{animationName:Ce.Uw},[`&${ue}-slide-up-leave${ue}-slide-up-leave-active${kt}-placement-topLeft,
&${ue}-slide-up-leave${ue}-slide-up-leave-active${kt}-placement-top,
&${ue}-slide-up-leave${ue}-slide-up-leave-active${kt}-placement-topRight`]:{animationName:Ce.ly}})},(0,De.ZP)(ht,{colorBg:ut,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${kt} ${ze}`]:{position:"relative",margin:0},[`${ze}-submenu-popup`]:{position:"absolute",zIndex:ee,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${kt}, ${kt}-menu-submenu`]:{[ze]:Object.assign(Object.assign({padding:Te,listStyleType:"none",backgroundColor:ut,backgroundClip:"padding-box",borderRadius:ht.borderRadiusLG,outline:"none",boxShadow:ht.boxShadowSecondary},(0,se.Qy)(ht)),{[`${ze}-item-group-title`]:{padding:`${Ne}px ${st}px`,color:ht.colorTextDescription,transition:`all ${Se}`},[`${ze}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ze}-item-icon`]:{minWidth:ke,marginInlineEnd:ht.marginXS,fontSize:ht.fontSizeSM},[`${ze}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${Se}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ze}-item, ${ze}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${Ne}px ${st}px`,color:ht.colorText,fontWeight:"normal",fontSize:ke,lineHeight:ht.lineHeight,cursor:"pointer",transition:`all ${Se}`,borderRadius:ht.borderRadiusSM,"&:hover, &-active":{backgroundColor:ht.controlItemBgHover}},(0,se.Qy)(ht)),{"&-selected":{color:ht.colorPrimary,backgroundColor:ht.controlItemBgActive,"&:hover, &-active":{backgroundColor:ht.controlItemBgActiveHover}},"&-disabled":{color:We,cursor:"not-allowed","&:hover":{color:We,backgroundColor:ut,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ht.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:ht.colorSplit},[`${kt}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:ht.paddingXS,[`${kt}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:ht.colorTextDescription,fontSize:$e,fontStyle:"normal"}}}),[`${ze}-item-group-list`]:{margin:`0 ${ht.marginXS}px`,padding:0,listStyle:"none"},[`${ze}-submenu-title`]:{paddingInlineEnd:st+ht.fontSizeSM},[`${ze}-submenu-vertical`]:{position:"relative"},[`${ze}-submenu${ze}-submenu-disabled ${kt}-menu-submenu-title`]:{[`&, ${kt}-menu-submenu-arrow-icon`]:{color:We,backgroundColor:ut,cursor:"not-allowed"}},[`${ze}-submenu-selected ${kt}-menu-submenu-title`]:{color:ht.colorPrimary}})}},[(0,Ce.oN)(ht,"slide-up"),(0,Ce.oN)(ht,"slide-down"),(0,we.Fm)(ht,"move-up"),(0,we.Fm)(ht,"move-down"),(0,Ie._y)(ht,"zoom-big")]]};var tt=(0,Ke.Z)("Dropdown",(ht,kt)=>{let{rootPrefixCls:ze}=kt;const{marginXXS:ee,sizePopupArrow:ne,controlHeight:ge,fontSize:ue,lineHeight:me,paddingXXS:Se,componentCls:Ne,borderRadiusLG:ke}=ht,Te=(ge-ue*me)/2,{dropdownArrowOffset:We}=(0,De.fS)({contentRadius:ke}),$e=(0,Ee.TS)(ht,{menuCls:`${Ne}-menu`,rootPrefixCls:ze,dropdownArrowDistance:ne/2+ee,dropdownArrowOffset:We,dropdownPaddingVertical:Te,dropdownEdgeChildPadding:Se});return[Ye($e),Je($e)]},ht=>({zIndexPopup:ht.zIndexPopupBase+50}))},64165:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return Se}});var se=oe(92310),Ce=oe.n(se),we=oe(59301),Ie=oe(36355),De=oe(9763),Ke=oe(64993),Ee=oe(88088),Je=()=>{const[,Ne]=(0,Ee.Z)(),Te=new Ke.C(Ne.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return we.createElement("svg",{style:Te,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},we.createElement("g",{fill:"none",fillRule:"evenodd"},we.createElement("g",{transform:"translate(24 31.67)"},we.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),we.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"}),we.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)"}),we.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"}),we.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"})),we.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"}),we.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},we.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),we.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},tt=()=>{const[,Ne]=(0,Ee.Z)(),{colorFill:ke,colorFillTertiary:Te,colorFillQuaternary:We,colorBgContainer:$e}=Ne,{borderColor:st,shadowColor:ut,contentColor:Mt}=(0,we.useMemo)(()=>({borderColor:new Ke.C(ke).onBackground($e).toHexShortString(),shadowColor:new Ke.C(Te).onBackground($e).toHexShortString(),contentColor:new Ke.C(We).onBackground($e).toHexShortString()}),[ke,Te,We,$e]);return we.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},we.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},we.createElement("ellipse",{fill:ut,cx:"32",cy:"33",rx:"32",ry:"7"}),we.createElement("g",{fillRule:"nonzero",stroke:st},we.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"}),we.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:Mt}))))},ht=oe(83116),kt=oe(37613);const ze=Ne=>{const{componentCls:ke,margin:Te,marginXS:We,marginXL:$e,fontSize:st,lineHeight:ut}=Ne;return{[ke]:{marginInline:We,fontSize:st,lineHeight:ut,textAlign:"center",[`${ke}-image`]:{height:Ne.emptyImgHeight,marginBottom:We,opacity:Ne.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${ke}-description`]:{color:Ne.colorText},[`${ke}-footer`]:{marginTop:Te},"&-normal":{marginBlock:$e,color:Ne.colorTextDisabled,[`${ke}-description`]:{color:Ne.colorTextDisabled},[`${ke}-image`]:{height:Ne.emptyImgHeightMD}},"&-small":{marginBlock:We,color:Ne.colorTextDisabled,[`${ke}-image`]:{height:Ne.emptyImgHeightSM}}}}};var ee=(0,ht.Z)("Empty",Ne=>{const{componentCls:ke,controlHeightLG:Te}=Ne,We=(0,kt.TS)(Ne,{emptyImgCls:`${ke}-img`,emptyImgHeight:Te*2.5,emptyImgHeightMD:Te,emptyImgHeightSM:Te*.875});return[ze(We)]}),ne=function(Ne,ke){var Te={};for(var We in Ne)Object.prototype.hasOwnProperty.call(Ne,We)&&ke.indexOf(We)<0&&(Te[We]=Ne[We]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,We=Object.getOwnPropertySymbols(Ne);$e<We.length;$e++)ke.indexOf(We[$e])<0&&Object.prototype.propertyIsEnumerable.call(Ne,We[$e])&&(Te[We[$e]]=Ne[We[$e]]);return Te};const ge=we.createElement(Je,null),ue=we.createElement(tt,null),me=Ne=>{var{className:ke,rootClassName:Te,prefixCls:We,image:$e=ge,description:st,children:ut,imageStyle:Mt,style:nt}=Ne,$t=ne(Ne,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:Pt,direction:dn,empty:zt}=we.useContext(Ie.E_),Xt=Pt("empty",We),[fn,an]=ee(Xt),[it]=(0,De.Z)("Empty"),Ve=typeof st!="undefined"?st:it==null?void 0:it.description,gt=typeof Ve=="string"?Ve:"empty";let Bt=null;return typeof $e=="string"?Bt=we.createElement("img",{alt:gt,src:$e}):Bt=$e,fn(we.createElement("div",Object.assign({className:Ce()(an,Xt,zt==null?void 0:zt.className,{[`${Xt}-normal`]:$e===ue,[`${Xt}-rtl`]:dn==="rtl"},ke,Te),style:Object.assign(Object.assign({},zt==null?void 0:zt.style),nt)},$t),we.createElement("div",{className:`${Xt}-image`,style:Mt},Bt),Ve&&we.createElement("div",{className:`${Xt}-description`},Ve),ut&&we.createElement("div",{className:`${Xt}-footer`},ut)))};me.PRESENTED_IMAGE_DEFAULT=ge,me.PRESENTED_IMAGE_SIMPLE=ue;var Se=me},78241:function(_e,be,oe){"use strict";oe.d(be,{default:function(){return qt}});var se=oe(26390),Ce=oe(92310),we=oe.n(Ce),Ie=oe(43469),De=oe(59301),Ke=oe(62892),Ee=oe(32441);function et(Nt){const[On,Un]=De.useState(Nt);return De.useEffect(()=>{const Vt=setTimeout(()=>{Un(Nt)},Nt.length?0:10);return()=>{clearTimeout(Vt)}},[Nt]),On}var Je=oe(17313),Ye=oe(29878),tt=oe(8378),ht=oe(37613),kt=oe(83116),ee=Nt=>{const{componentCls:On}=Nt,Un=`${On}-show-help`,Vt=`${On}-show-help-item`;return{[Un]:{transition:`opacity ${Nt.motionDurationSlow} ${Nt.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Vt]:{overflow:"hidden",transition:`height ${Nt.motionDurationSlow} ${Nt.motionEaseInOut},
opacity ${Nt.motionDurationSlow} ${Nt.motionEaseInOut},
transform ${Nt.motionDurationSlow} ${Nt.motionEaseInOut} !important`,[`&${Vt}-appear, &${Vt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Vt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const ne=Nt=>({legend:{display:"block",width:"100%",marginBottom:Nt.marginLG,padding:0,color:Nt.colorTextDescription,fontSize:Nt.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Nt.lineWidth}px ${Nt.lineType} ${Nt.colorBorder}`},label:{fontSize:Nt.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 ${Nt.controlOutlineWidth}px ${Nt.controlOutline}`},output:{display:"block",paddingTop:15,color:Nt.colorText,fontSize:Nt.fontSize,lineHeight:Nt.lineHeight}}),ge=(Nt,On)=>{const{formItemCls:Un}=Nt;return{[Un]:{[`${Un}-label > label`]:{height:On},[`${Un}-control-input`]:{minHeight:On}}}},ue=Nt=>{const{componentCls:On}=Nt;return{[Nt.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Je.Wf)(Nt)),ne(Nt)),{[`${On}-text`]:{display:"inline-block",paddingInlineEnd:Nt.paddingSM},"&-small":Object.assign({},ge(Nt,Nt.controlHeightSM)),"&-large":Object.assign({},ge(Nt,Nt.controlHeightLG))})}},me=Nt=>{const{formItemCls:On,iconCls:Un,componentCls:Vt,rootPrefixCls:yt,labelRequiredMarkColor:In,labelColor:zn,labelFontSize:mi,labelHeight:Rn,labelColonMarginInlineStart:bt,labelColonMarginInlineEnd:Ut,itemMarginBottom:Ln}=Nt;return{[On]:Object.assign(Object.assign({},(0,Je.Wf)(Nt)),{marginBottom:Ln,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden.${yt}-row`]:{display:"none"},"&-has-warning":{[`${On}-split`]:{color:Nt.colorError}},"&-has-error":{[`${On}-split`]:{color:Nt.colorWarning}},[`${On}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${Nt.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Rn,color:zn,fontSize:mi,[`> ${Un}`]:{fontSize:Nt.fontSize,verticalAlign:"top"},[`&${On}-required:not(${On}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Nt.marginXXS,color:In,fontSize:Nt.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Vt}-hide-required-mark &`]:{display:"none"}},[`${On}-optional`]:{display:"inline-block",marginInlineStart:Nt.marginXXS,color:Nt.colorTextDescription,[`${Vt}-hide-required-mark &`]:{display:"none"}},[`${On}-tooltip`]:{color:Nt.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Nt.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:bt,marginInlineEnd:Ut},[`&${On}-no-colon::after`]:{content:'"\\a0"'}}},[`${On}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${yt}-col-'"]):not([class*="' ${yt}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Nt.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[On]:{"&-explain, &-extra":{clear:"both",color:Nt.colorTextDescription,fontSize:Nt.fontSize,lineHeight:Nt.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Nt.controlHeightSM,transition:`color ${Nt.motionDurationMid} ${Nt.motionEaseOut}`},"&-explain":{"&-error":{color:Nt.colorError},"&-warning":{color:Nt.colorWarning}}},[`&-with-help ${On}-explain`]:{height:"auto",opacity:1},[`${On}-feedback-icon`]:{fontSize:Nt.fontSize,textAlign:"center",visibility:"visible",animationName:Ye.kr,animationDuration:Nt.motionDurationMid,animationTimingFunction:Nt.motionEaseOutBack,pointerEvents:"none","&-success":{color:Nt.colorSuccess},"&-error":{color:Nt.colorError},"&-warning":{color:Nt.colorWarning},"&-validating":{color:Nt.colorPrimary}}})}},Se=Nt=>{const{componentCls:On,formItemCls:Un}=Nt;return{[`${On}-horizontal`]:{[`${Un}-label`]:{flexGrow:0},[`${Un}-control`]:{flex:"1 1 0",minWidth:0},[`${Un}-label[class$='-24'], ${Un}-label[class*='-24 ']`]:{[`& + ${Un}-control`]:{minWidth:"unset"}}}}},Ne=Nt=>{const{componentCls:On,formItemCls:Un}=Nt;return{[`${On}-inline`]:{display:"flex",flexWrap:"wrap",[Un]:{flex:"none",marginInlineEnd:Nt.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${Un}-label,
> ${Un}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Un}-label`]:{flex:"none"},[`${On}-text`]:{display:"inline-block"},[`${Un}-has-feedback`]:{display:"inline-block"}}}}},ke=Nt=>({padding:Nt.verticalLabelPadding,margin:Nt.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Te=Nt=>{const{componentCls:On,formItemCls:Un,rootPrefixCls:Vt}=Nt;return{[`${Un} ${Un}-label`]:ke(Nt),[On]:{[Un]:{flexWrap:"wrap",[`${Un}-label, ${Un}-control`]:{[`&:not([class*=" ${Vt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},We=Nt=>{const{componentCls:On,formItemCls:Un,rootPrefixCls:Vt}=Nt;return{[`${On}-vertical`]:{[Un]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${On}-item-control`]:{width:"100%"}}},[`${On}-vertical ${Un}-label,
.${Vt}-col-24${Un}-label,
.${Vt}-col-xl-24${Un}-label`]:ke(Nt),[`@media (max-width: ${Nt.screenXSMax}px)`]:[Te(Nt),{[On]:{[`.${Vt}-col-xs-24${Un}-label`]:ke(Nt)}}],[`@media (max-width: ${Nt.screenSMMax}px)`]:{[On]:{[`.${Vt}-col-sm-24${Un}-label`]:ke(Nt)}},[`@media (max-width: ${Nt.screenMDMax}px)`]:{[On]:{[`.${Vt}-col-md-24${Un}-label`]:ke(Nt)}},[`@media (max-width: ${Nt.screenLGMax}px)`]:{[On]:{[`.${Vt}-col-lg-24${Un}-label`]:ke(Nt)}}}},$e=(Nt,On)=>(0,ht.TS)(Nt,{formItemCls:`${Nt.componentCls}-item`,rootPrefixCls:On});var st=(0,kt.Z)("Form",(Nt,On)=>{let{rootPrefixCls:Un}=On;const Vt=$e(Nt,Un);return[ue(Vt),me(Vt),ee(Vt),Se(Vt),Ne(Vt),We(Vt),(0,tt.Z)(Vt),Ye.kr]},Nt=>({labelRequiredMarkColor:Nt.colorError,labelColor:Nt.colorTextHeading,labelFontSize:Nt.fontSize,labelHeight:Nt.controlHeight,labelColonMarginInlineStart:Nt.marginXXS/2,labelColonMarginInlineEnd:Nt.marginXS,itemMarginBottom:Nt.marginLG,verticalLabelPadding:`0 0 ${Nt.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const ut=[];function Mt(Nt,On,Un){let Vt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Nt=="string"?Nt:`${On}-${Vt}`,error:Nt,errorStatus:Un}}var $t=Nt=>{let{help:On,helpStatus:Un,errors:Vt=ut,warnings:yt=ut,className:In,fieldId:zn,onVisibleChanged:mi}=Nt;const{prefixCls:Rn}=De.useContext(Ee.Rk),bt=`${Rn}-item-explain`,[,Ut]=st(Rn),Ln=(0,De.useMemo)(()=>(0,Ke.Z)(Rn),[Rn]),ni=et(Vt),Gt=et(yt),yn=De.useMemo(()=>On!=null?[Mt(On,"help",Un)]:[].concat((0,se.Z)(ni.map((un,wn)=>Mt(un,"error","error",wn))),(0,se.Z)(Gt.map((un,wn)=>Mt(un,"warning","warning",wn)))),[On,Un,ni,Gt]),Qt={};return zn&&(Qt.id=`${zn}_help`),De.createElement(Ie.default,{motionDeadline:Ln.motionDeadline,motionName:`${Rn}-show-help`,visible:!!yn.length,onVisibleChanged:mi},un=>{const{className:wn,style:gn}=un;return De.createElement("div",Object.assign({},Qt,{className:we()(bt,wn,In,Ut),style:gn,role:"alert"}),De.createElement(Ie.CSSMotionList,Object.assign({keys:yn},(0,Ke.Z)(Rn),{motionName:`${Rn}-show-help-item`,component:!1}),kn=>{const{key:Bn,error:Vn,errorStatus:Jn,className:Wn,style:gi}=kn;return De.createElement("div",{key:Bn,className:we()(Wn,{[`${bt}-${Jn}`]:Jn}),style:gi},Vn)}))})},Pt=oe(95013),dn=oe(36355),zt=oe(1684),Xt=oe(52946),fn=oe(19716),an=oe(16722);const it=["parentNode"],Ve="form_item";function gt(Nt){return Nt===void 0||Nt===!1?[]:Array.isArray(Nt)?Nt:[Nt]}function Bt(Nt,On){if(!Nt.length)return;const Un=Nt.join("_");return On?`${On}_${Un}`:it.includes(Un)?`${Ve}_${Un}`:Un}function sn(Nt,On,Un,Vt,yt,In){let zn=Vt;return In!==void 0?zn=In:Un.validating?zn="validating":Nt.length?zn="error":On.length?zn="warning":(Un.touched||yt&&Un.validated)&&(zn="success"),zn}function It(Nt){return gt(Nt).join("_")}function en(Nt){const[On]=(0,Pt.useForm)(),Un=De.useRef({}),Vt=De.useMemo(()=>Nt!=null?Nt:Object.assign(Object.assign({},On),{__INTERNAL__:{itemRef:yt=>In=>{const zn=It(yt);In?Un.current[zn]=In:delete Un.current[zn]}},scrollToField:function(yt){let In=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const zn=gt(yt),mi=Bt(zn,Vt.__INTERNAL__.name),Rn=mi?document.getElementById(mi):null;Rn&&(0,an.Z)(Rn,Object.assign({scrollMode:"if-needed",block:"nearest"},In))},getFieldInstance:yt=>{const In=It(yt);return Un.current[In]}}),[Nt,On]);return[Vt]}var En=oe(28726),ei=function(Nt,On){var Un={};for(var Vt in Nt)Object.prototype.hasOwnProperty.call(Nt,Vt)&&On.indexOf(Vt)<0&&(Un[Vt]=Nt[Vt]);if(Nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yt=0,Vt=Object.getOwnPropertySymbols(Nt);yt<Vt.length;yt++)On.indexOf(Vt[yt])<0&&Object.prototype.propertyIsEnumerable.call(Nt,Vt[yt])&&(Un[Vt[yt]]=Nt[Vt[yt]]);return Un};const An=(Nt,On)=>{const Un=De.useContext(zt.Z),{getPrefixCls:Vt,direction:yt,form:In}=De.useContext(dn.E_),{prefixCls:zn,className:mi,rootClassName:Rn,size:bt,disabled:Ut=Un,form:Ln,colon:ni,labelAlign:Gt,labelWrap:yn,labelCol:Qt,wrapperCol:un,hideRequiredMark:wn,layout:gn="horizontal",scrollToFirstError:kn,requiredMark:Bn,onFinishFailed:Vn,name:Jn,style:Wn,feedbackIcons:gi}=Nt,Fi=ei(Nt,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),ir=(0,fn.Z)(bt),zi=De.useContext(En.Z),tn=(0,De.useMemo)(()=>Bn!==void 0?Bn:In&&In.requiredMark!==void 0?In.requiredMark:!wn,[wn,Bn,In]),Ai=ni!=null?ni:In==null?void 0:In.colon,Bi=Vt("form",zn),[Ti,hr]=st(Bi),tr=we()(Bi,`${Bi}-${gn}`,{[`${Bi}-hide-required-mark`]:tn===!1,[`${Bi}-rtl`]:yt==="rtl",[`${Bi}-${ir}`]:ir},hr,In==null?void 0:In.className,mi,Rn),[br]=en(Ln),{__INTERNAL__:Xi}=br;Xi.name=Jn;const Hi=(0,De.useMemo)(()=>({name:Jn,labelAlign:Gt,labelCol:Qt,labelWrap:yn,wrapperCol:un,vertical:gn==="vertical",colon:Ai,requiredMark:tn,itemRef:Xi.itemRef,form:br,feedbackIcons:gi}),[Jn,Gt,Qt,un,gn,Ai,tn,br,gi]);De.useImperativeHandle(On,()=>br);const Ir=(Kr,Fn)=>{if(Kr){let kr={block:"nearest"};typeof Kr=="object"&&(kr=Kr),br.scrollToField(Fn,kr)}},Ht=Kr=>{if(Vn==null||Vn(Kr),Kr.errorFields.length){const Fn=Kr.errorFields[0].name;if(kn!==void 0){Ir(kn,Fn);return}In&&In.scrollToFirstError!==void 0&&Ir(In.scrollToFirstError,Fn)}};return Ti(De.createElement(zt.n,{disabled:Ut},De.createElement(Xt.q,{size:ir},De.createElement(Ee.RV,Object.assign({},{validateMessages:zi}),De.createElement(Ee.q3.Provider,{value:Hi},De.createElement(Pt.default,Object.assign({id:Jn},Fi,{name:Jn,onFinishFailed:Ht,form:br,style:Object.assign(Object.assign({},In==null?void 0:In.style),Wn),className:tr})))))))};var jt=De.forwardRef(An),Nn=oe(12383),Gn=oe(20475),ii=oe(92343),Sn=oe(38298);function Yt(Nt){if(typeof Nt=="function")return Nt;const On=(0,Sn.Z)(Nt);return On.length<=1?On[0]:On}const Zt=()=>{const{status:Nt,errors:On=[],warnings:Un=[]}=(0,De.useContext)(Ee.aM);return{status:Nt,errors:On,warnings:Un}};Zt.Context=Ee.aM;var St=Zt,rt=oe(23073);function Ft(Nt){const[On,Un]=De.useState(Nt),Vt=(0,De.useRef)(null),yt=(0,De.useRef)([]),In=(0,De.useRef)(!1);De.useEffect(()=>(In.current=!1,()=>{In.current=!0,rt.Z.cancel(Vt.current),Vt.current=null}),[]);function zn(mi){In.current||(Vt.current===null&&(yt.current=[],Vt.current=(0,rt.Z)(()=>{Vt.current=null,Un(Rn=>{let bt=Rn;return yt.current.forEach(Ut=>{bt=Ut(bt)}),bt})})),yt.current.push(mi))}return[On,zn]}function Ot(){const{itemRef:Nt}=De.useContext(Ee.q3),On=De.useRef({});function Un(Vt,yt){const In=yt&&typeof yt=="object"&&yt.ref,zn=Vt.join("_");return(On.current.name!==zn||On.current.originRef!==In)&&(On.current.name=zn,On.current.originRef=In,On.current.ref=(0,Gn.sQ)(Nt(Vt),In)),On.current.ref}return Un}var ft=oe(48886),ct=oe(28800),Ge=oe(64002),Ae=oe(27382),xe=oe(37028);const je=Nt=>{const{formItemCls:On}=Nt;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${On}-control`]:{display:"flex"}}}};var Qe=(0,kt.b)(["Form","item-item"],(Nt,On)=>{let{rootPrefixCls:Un}=On;const Vt=$e(Nt,Un);return[je(Vt)]}),xt=Nt=>{const{prefixCls:On,status:Un,wrapperCol:Vt,children:yt,errors:In,warnings:zn,_internalItemRender:mi,extra:Rn,help:bt,fieldId:Ut,marginBottom:Ln,onErrorVisibleChanged:ni}=Nt,Gt=`${On}-item`,yn=De.useContext(Ee.q3),Qt=Vt||yn.wrapperCol||{},un=we()(`${Gt}-control`,Qt.className),wn=De.useMemo(()=>Object.assign({},yn),[yn]);delete wn.labelCol,delete wn.wrapperCol;const gn=De.createElement("div",{className:`${Gt}-control-input`},De.createElement("div",{className:`${Gt}-control-input-content`},yt)),kn=De.useMemo(()=>({prefixCls:On,status:Un}),[On,Un]),Bn=Ln!==null||In.length||zn.length?De.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},De.createElement(Ee.Rk.Provider,{value:kn},De.createElement($t,{fieldId:Ut,errors:In,warnings:zn,help:bt,helpStatus:Un,className:`${Gt}-explain-connected`,onVisibleChanged:ni})),!!Ln&&De.createElement("div",{style:{width:0,height:Ln}})):null,Vn={};Ut&&(Vn.id=`${Ut}_extra`);const Jn=Rn?De.createElement("div",Object.assign({},Vn,{className:`${Gt}-extra`}),Rn):null,Wn=mi&&mi.mark==="pro_table_render"&&mi.render?mi.render(Nt,{input:gn,errorList:Bn,extra:Jn}):De.createElement(De.Fragment,null,gn,Bn,Jn);return De.createElement(Ee.q3.Provider,{value:wn},De.createElement(xe.Z,Object.assign({},Qt,{className:un}),Wn),De.createElement(Qe,{prefixCls:On}))},hn=oe(86902),Pn=oe(31724),wt=oe(9763),nn=oe(6848),Mn=function(Nt,On){var Un={};for(var Vt in Nt)Object.prototype.hasOwnProperty.call(Nt,Vt)&&On.indexOf(Vt)<0&&(Un[Vt]=Nt[Vt]);if(Nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yt=0,Vt=Object.getOwnPropertySymbols(Nt);yt<Vt.length;yt++)On.indexOf(Vt[yt])<0&&Object.prototype.propertyIsEnumerable.call(Nt,Vt[yt])&&(Un[Vt[yt]]=Nt[Vt[yt]]);return Un};function Zn(Nt){return Nt?typeof Nt=="object"&&!De.isValidElement(Nt)?Nt:{title:Nt}:null}var xi=Nt=>{let{prefixCls:On,label:Un,htmlFor:Vt,labelCol:yt,labelAlign:In,colon:zn,required:mi,requiredMark:Rn,tooltip:bt}=Nt;var Ut;const[Ln]=(0,wt.Z)("Form"),{vertical:ni,labelAlign:Gt,labelCol:yn,labelWrap:Qt,colon:un}=De.useContext(Ee.q3);if(!Un)return null;const wn=yt||yn||{},gn=In||Gt,kn=`${On}-item-label`,Bn=we()(kn,gn==="left"&&`${kn}-left`,wn.className,{[`${kn}-wrap`]:!!Qt});let Vn=Un;const Jn=zn===!0||un!==!1&&zn!==!1;Jn&&!ni&&typeof Un=="string"&&Un.trim()!==""&&(Vn=Un.replace(/[:|]\s*$/,""));const gi=Zn(bt);if(gi){const{icon:tn=De.createElement(hn.Z,null)}=gi,Ai=Mn(gi,["icon"]),Bi=De.createElement(nn.Z,Object.assign({},Ai),De.cloneElement(tn,{className:`${On}-item-tooltip`,title:""}));Vn=De.createElement(De.Fragment,null,Vn,Bi)}const Fi=Rn==="optional",ir=typeof Rn=="function";ir?Vn=Rn(Vn,{required:!!mi}):Fi&&!mi&&(Vn=De.createElement(De.Fragment,null,Vn,De.createElement("span",{className:`${On}-item-optional`,title:""},(Ln==null?void 0:Ln.optional)||((Ut=Pn.Z.Form)===null||Ut===void 0?void 0:Ut.optional))));const zi=we()({[`${On}-item-required`]:mi,[`${On}-item-required-mark-optional`]:Fi||ir,[`${On}-item-no-colon`]:!Jn});return De.createElement(xe.Z,Object.assign({},wn,{className:Bn}),De.createElement("label",{htmlFor:Vt,className:zi,title:typeof Un=="string"?Un:""},Vn))},Mi=oe(79999),Si=oe(33130),Ri=oe(85404),lr=oe(50023);const dr={success:Mi.Z,warning:Ri.Z,error:Si.Z,validating:lr.Z};function ur(Nt){let{children:On,errors:Un,warnings:Vt,hasFeedback:yt,validateStatus:In,prefixCls:zn,meta:mi,noStyle:Rn}=Nt;const bt=`${zn}-item`,{feedbackIcons:Ut}=De.useContext(Ee.q3),Ln=sn(Un,Vt,mi,null,!!yt,In),{isFormItemInput:ni,status:Gt}=De.useContext(Ee.aM),yn=De.useMemo(()=>{var Qt;let un;if(yt){const kn=yt!==!0&&yt.icons||Ut,Bn=Ln&&((Qt=kn==null?void 0:kn({status:Ln,errors:Un,warnings:Vt}))===null||Qt===void 0?void 0:Qt[Ln]),Vn=Ln&&dr[Ln];un=Bn!==!1&&Vn?De.createElement("span",{className:we()(`${bt}-feedback-icon`,`${bt}-feedback-icon-${Ln}`)},Bn||De.createElement(Vn,null)):null}let wn=!0,gn=Ln||"";return Rn&&(wn=ni,gn=(Ln!=null?Ln:Gt)||""),{status:gn,errors:Un,warnings:Vt,hasFeedback:!!yt,feedbackIcon:un,isFormItemInput:wn}},[Ln,yt,Rn,ni,Gt]);return De.createElement(Ee.aM.Provider,{value:yn},On)}var Sr=function(Nt,On){var Un={};for(var Vt in Nt)Object.prototype.hasOwnProperty.call(Nt,Vt)&&On.indexOf(Vt)<0&&(Un[Vt]=Nt[Vt]);if(Nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yt=0,Vt=Object.getOwnPropertySymbols(Nt);yt<Vt.length;yt++)On.indexOf(Vt[yt])<0&&Object.prototype.propertyIsEnumerable.call(Nt,Vt[yt])&&(Un[Vt[yt]]=Nt[Vt[yt]]);return Un};function Wr(Nt){const{prefixCls:On,className:Un,rootClassName:Vt,style:yt,help:In,errors:zn,warnings:mi,validateStatus:Rn,meta:bt,hasFeedback:Ut,hidden:Ln,children:ni,fieldId:Gt,required:yn,isRequired:Qt,onSubItemMetaChange:un}=Nt,wn=Sr(Nt,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),gn=`${On}-item`,{requiredMark:kn}=De.useContext(Ee.q3),Bn=De.useRef(null),Vn=et(zn),Jn=et(mi),Wn=In!=null,gi=!!(Wn||zn.length||mi.length),Fi=!!Bn.current&&(0,ft.Z)(Bn.current),[ir,zi]=De.useState(null);(0,ct.Z)(()=>{if(gi&&Bn.current){const hr=getComputedStyle(Bn.current);zi(parseInt(hr.marginBottom,10))}},[gi,Fi]);const tn=hr=>{hr||zi(null)},Bi=function(){let hr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const tr=hr?Vn:bt.errors,br=hr?Jn:bt.warnings;return sn(tr,br,bt,"",!!Ut,Rn)}(),Ti=we()(gn,Un,Vt,{[`${gn}-with-help`]:Wn||Vn.length||Jn.length,[`${gn}-has-feedback`]:Bi&&Ut,[`${gn}-has-success`]:Bi==="success",[`${gn}-has-warning`]:Bi==="warning",[`${gn}-has-error`]:Bi==="error",[`${gn}-is-validating`]:Bi==="validating",[`${gn}-hidden`]:Ln});return De.createElement("div",{className:Ti,style:yt,ref:Bn},De.createElement(Ae.Z,Object.assign({className:`${gn}-row`},(0,Ge.Z)(wn,["_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"])),De.createElement(xi,Object.assign({htmlFor:Gt},Nt,{requiredMark:kn,required:yn!=null?yn:Qt,prefixCls:On})),De.createElement(xt,Object.assign({},Nt,bt,{errors:Vn,warnings:Jn,prefixCls:On,status:Bi,help:In,marginBottom:ir,onErrorVisibleChanged:tn}),De.createElement(Ee.qI.Provider,{value:un},De.createElement(ur,{prefixCls:On,meta:bt,errors:bt.errors,warnings:bt.warnings,hasFeedback:Ut,validateStatus:Bi},ni)))),!!ir&&De.createElement("div",{className:`${gn}-margin-offset`,style:{marginBottom:-ir}}))}const Gi="__SPLIT__",Zr=null,Yi=De.memo(Nt=>{let{children:On}=Nt;return On},(Nt,On)=>Nt.value===On.value&&Nt.update===On.update&&Nt.childProps.length===On.childProps.length&&Nt.childProps.every((Un,Vt)=>Un===On.childProps[Vt]));function Ue(Nt){return Nt!=null}function no(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function pr(Nt){const{name:On,noStyle:Un,className:Vt,dependencies:yt,prefixCls:In,shouldUpdate:zn,rules:mi,children:Rn,required:bt,label:Ut,messageVariables:Ln,trigger:ni="onChange",validateTrigger:Gt,hidden:yn,help:Qt}=Nt,{getPrefixCls:un}=De.useContext(dn.E_),{name:wn}=De.useContext(Ee.q3),gn=Yt(Rn),kn=typeof gn=="function",Bn=De.useContext(Ee.qI),{validateTrigger:Vn}=De.useContext(Pt.FieldContext),Jn=Gt!==void 0?Gt:Vn,Wn=Ue(On),gi=un("form",In),[Fi,ir]=st(gi),zi=De.useContext(Pt.ListContext),tn=De.useRef(),[Ai,Bi]=Ft({}),[Ti,hr]=(0,Nn.Z)(()=>no()),tr=Fn=>{const kr=zi==null?void 0:zi.getKey(Fn.name);if(hr(Fn.destroy?no():Fn,!0),Un&&Qt!==!1&&Bn){let Go=Fn.name;if(Fn.destroy)Go=tn.current||Go;else if(kr!==void 0){const[Dr,po]=kr;Go=[Dr].concat((0,se.Z)(po)),tn.current=Go}Bn(Fn,Go)}},br=(Fn,kr)=>{Bi(Go=>{const Dr=Object.assign({},Go),Do=[].concat((0,se.Z)(Fn.name.slice(0,-1)),(0,se.Z)(kr)).join(Gi);return Fn.destroy?delete Dr[Do]:Dr[Do]=Fn,Dr})},[Xi,Hi]=De.useMemo(()=>{const Fn=(0,se.Z)(Ti.errors),kr=(0,se.Z)(Ti.warnings);return Object.values(Ai).forEach(Go=>{Fn.push.apply(Fn,(0,se.Z)(Go.errors||[])),kr.push.apply(kr,(0,se.Z)(Go.warnings||[]))}),[Fn,kr]},[Ai,Ti.errors,Ti.warnings]),Ir=Ot();function Ht(Fn,kr,Go){return Un&&!yn?De.createElement(ur,{prefixCls:gi,hasFeedback:Nt.hasFeedback,validateStatus:Nt.validateStatus,meta:Ti,errors:Xi,warnings:Hi,noStyle:!0},Fn):De.createElement(Wr,Object.assign({key:"row"},Nt,{className:we()(Vt,ir),prefixCls:gi,fieldId:kr,isRequired:Go,errors:Xi,warnings:Hi,meta:Ti,onSubItemMetaChange:br}),Fn)}if(!Wn&&!kn&&!yt)return Fi(Ht(gn));let Kr={};return typeof Ut=="string"?Kr.label=Ut:On&&(Kr.label=String(On)),Ln&&(Kr=Object.assign(Object.assign({},Kr),Ln)),Fi(De.createElement(Pt.Field,Object.assign({},Nt,{messageVariables:Kr,trigger:ni,validateTrigger:Jn,onMetaChange:tr}),(Fn,kr,Go)=>{const Dr=gt(On).length&&kr?kr.name:[],po=Bt(Dr,wn),Do=bt!==void 0?bt:!!(mi&&mi.some(io=>{if(io&&typeof io=="object"&&io.required&&!io.warningOnly)return!0;if(typeof io=="function"){const Gr=io(Go);return Gr&&Gr.required&&!Gr.warningOnly}return!1})),Ji=Object.assign({},Fn);let or=null;if(Array.isArray(gn)&&Wn)or=gn;else if(!(kn&&(!(zn||yt)||Wn))){if(!(yt&&!kn&&!Wn))if((0,ii.l$)(gn)){const io=Object.assign(Object.assign({},gn.props),Ji);if(io.id||(io.id=po),Qt||Xi.length>0||Hi.length>0||Nt.extra){const lt=[];(Qt||Xi.length>0)&&lt.push(`${po}_help`),Nt.extra&&lt.push(`${po}_extra`),io["aria-describedby"]=lt.join(" ")}Xi.length>0&&(io["aria-invalid"]="true"),Do&&(io["aria-required"]="true"),(0,Gn.Yr)(gn)&&(io.ref=Ir(Dr,gn)),new Set([].concat((0,se.Z)(gt(ni)),(0,se.Z)(gt(Jn)))).forEach(lt=>{io[lt]=function(){for(var Rr,Ko,Yr,yo,Mr,mr=arguments.length,co=new Array(mr),Uo=0;Uo<mr;Uo++)co[Uo]=arguments[Uo];(Yr=Ji[lt])===null||Yr===void 0||(Rr=Yr).call.apply(Rr,[Ji].concat(co)),(Mr=(yo=gn.props)[lt])===null||Mr===void 0||(Ko=Mr).call.apply(Ko,[yo].concat(co))}});const Ii=[io["aria-required"],io["aria-invalid"],io["aria-describedby"]];or=De.createElement(Yi,{value:Ji[Nt.valuePropName||"value"],update:gn,childProps:Ii},(0,ii.Tm)(gn,io))}else kn&&(zn||yt)&&!Wn?or=gn(Go):or=gn}return Ht(or,po,Do)}))}const fo=pr;fo.useStatus=St;var Fo=fo,Vo=function(Nt,On){var Un={};for(var Vt in Nt)Object.prototype.hasOwnProperty.call(Nt,Vt)&&On.indexOf(Vt)<0&&(Un[Vt]=Nt[Vt]);if(Nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yt=0,Vt=Object.getOwnPropertySymbols(Nt);yt<Vt.length;yt++)On.indexOf(Vt[yt])<0&&Object.prototype.propertyIsEnumerable.call(Nt,Vt[yt])&&(Un[Vt[yt]]=Nt[Vt[yt]]);return Un},Oi=Nt=>{var{prefixCls:On,children:Un}=Nt,Vt=Vo(Nt,["prefixCls","children"]);const{getPrefixCls:yt}=De.useContext(dn.E_),In=yt("form",On),zn=De.useMemo(()=>({prefixCls:In,status:"error"}),[In]);return De.createElement(Pt.List,Object.assign({},Vt),(mi,Rn,bt)=>De.createElement(Ee.Rk.Provider,{value:zn},Un(mi.map(Ut=>Object.assign(Object.assign({},Ut),{fieldKey:Ut.key})),Rn,{errors:bt.errors,warnings:bt.warnings})))};function on(){const{form:Nt}=(0,De.useContext)(Ee.q3);return Nt}const ln=jt;ln.Item=Fo,ln.List=Oi,ln.ErrorList=$t,ln.useForm=en,ln.useFormInstance=on,ln.useWatch=Pt.useWatch,ln.Provider=Ee.RV,ln.create=()=>{};var qt=ln},8628:function(_e,be,oe){"use strict";var se=oe(59301),Ce=oe(28800),we=oe(56762),Ie=oe(69507);function De(){let Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const Ee=(0,se.useRef)({}),et=(0,we.Z)(),Je=(0,Ie.ZP)();return(0,Ce.Z)(()=>{const Ye=Je.subscribe(tt=>{Ee.current=tt,Ke&&et()});return()=>Je.unsubscribe(Ye)},[]),Ee.current}be.Z=De},9432:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return me},n:function(){return ge}});var se=oe(33130),Ce=oe(92310),we=oe.n(Ce),Ie=oe(93681),De=oe(20475),Ke=oe(59301),Ee=oe(19080),et=oe(36355),Je=oe(1684),Ye=oe(19716),tt=oe(32441),ht=oe(33234),kt=oe(59412),ze=oe(9937);function ee(Se){return!!(Se.prefix||Se.suffix||Se.allowClear)}var ne=function(Se,Ne){var ke={};for(var Te in Se)Object.prototype.hasOwnProperty.call(Se,Te)&&Ne.indexOf(Te)<0&&(ke[Te]=Se[Te]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,Te=Object.getOwnPropertySymbols(Se);We<Te.length;We++)Ne.indexOf(Te[We])<0&&Object.prototype.propertyIsEnumerable.call(Se,Te[We])&&(ke[Te[We]]=Se[Te[We]]);return ke};function ge(Se,Ne){if(!Se)return;Se.focus(Ne);const{cursor:ke}=Ne||{};if(ke){const Te=Se.value.length;switch(ke){case"start":Se.setSelectionRange(0,0);break;case"end":Se.setSelectionRange(Te,Te);break;default:Se.setSelectionRange(0,Te);break}}}var me=(0,Ke.forwardRef)((Se,Ne)=>{var ke;const{prefixCls:Te,bordered:We=!0,status:$e,size:st,disabled:ut,onBlur:Mt,onFocus:nt,suffix:$t,allowClear:Pt,addonAfter:dn,addonBefore:zt,className:Xt,style:fn,styles:an,rootClassName:it,onChange:Ve,classNames:gt}=Se,Bt=ne(Se,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:sn,direction:It,input:en}=Ke.useContext(et.E_),En=sn("input",Te),ei=(0,Ke.useRef)(null),[An,Kn]=(0,ze.ZP)(En),{compactSize:jt,compactItemClassnames:Nn}=(0,ht.ri)(En,It),Gn=(0,Ye.Z)(Qe=>{var Oe;return(Oe=st!=null?st:jt)!==null&&Oe!==void 0?Oe:Qe}),ii=Ke.useContext(Je.Z),Sn=ut!=null?ut:ii,{status:Yt,hasFeedback:Zt,feedbackIcon:St}=(0,Ke.useContext)(tt.aM),rt=(0,Ee.F)(Yt,$e),Ft=ee(Se)||!!Zt,Ot=(0,Ke.useRef)(Ft);(0,Ke.useEffect)(()=>{var Qe;Ft&&Ot.current,Ot.current=Ft},[Ft]);const ft=(0,kt.Z)(ei,!0),ct=Qe=>{ft(),Mt==null||Mt(Qe)},Ge=Qe=>{ft(),nt==null||nt(Qe)},Ae=Qe=>{ft(),Ve==null||Ve(Qe)},xe=(Zt||$t)&&Ke.createElement(Ke.Fragment,null,$t,Zt&&St);let je;return typeof Pt=="object"&&(Pt!=null&&Pt.clearIcon)?je=Pt:Pt&&(je={clearIcon:Ke.createElement(se.Z,null)}),An(Ke.createElement(Ie.default,Object.assign({ref:(0,De.sQ)(Ne,ei),prefixCls:En,autoComplete:en==null?void 0:en.autoComplete},Bt,{disabled:Sn,onBlur:ct,onFocus:Ge,style:Object.assign(Object.assign({},en==null?void 0:en.style),fn),styles:Object.assign(Object.assign({},en==null?void 0:en.styles),an),suffix:xe,allowClear:je,className:we()(Xt,it,Nn,en==null?void 0:en.className),onChange:Ae,addonAfter:dn&&Ke.createElement(ht.BR,null,Ke.createElement(tt.Ux,{override:!0,status:!0},dn)),addonBefore:zt&&Ke.createElement(ht.BR,null,Ke.createElement(tt.Ux,{override:!0,status:!0},zt)),classNames:Object.assign(Object.assign(Object.assign({},gt),en==null?void 0:en.classNames),{input:we()({[`${En}-sm`]:Gn==="small",[`${En}-lg`]:Gn==="large",[`${En}-rtl`]:It==="rtl",[`${En}-borderless`]:!We},!Ft&&(0,Ee.Z)(En,rt),gt==null?void 0:gt.input,(ke=en==null?void 0:en.classNames)===null||ke===void 0?void 0:ke.input,Kn)}),classes:{affixWrapper:we()({[`${En}-affix-wrapper-sm`]:Gn==="small",[`${En}-affix-wrapper-lg`]:Gn==="large",[`${En}-affix-wrapper-rtl`]:It==="rtl",[`${En}-affix-wrapper-borderless`]:!We},(0,Ee.Z)(`${En}-affix-wrapper`,rt,Zt),Kn),wrapper:we()({[`${En}-group-rtl`]:It==="rtl"},Kn),group:we()({[`${En}-group-wrapper-sm`]:Gn==="small",[`${En}-group-wrapper-lg`]:Gn==="large",[`${En}-group-wrapper-rtl`]:It==="rtl",[`${En}-group-wrapper-disabled`]:Sn},(0,Ee.Z)(`${En}-group-wrapper`,rt,Zt),Kn)}})))})},1643:function(_e,be,oe){"use strict";var se=oe(33130),Ce=oe(92310),we=oe.n(Ce),Ie=oe(9296),De=oe(59301),Ke=oe(19080),Ee=oe(36355),et=oe(1684),Je=oe(19716),Ye=oe(32441),tt=oe(9432),ht=oe(9937),kt=function(ee,ne){var ge={};for(var ue in ee)Object.prototype.hasOwnProperty.call(ee,ue)&&ne.indexOf(ue)<0&&(ge[ue]=ee[ue]);if(ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,ue=Object.getOwnPropertySymbols(ee);me<ue.length;me++)ne.indexOf(ue[me])<0&&Object.prototype.propertyIsEnumerable.call(ee,ue[me])&&(ge[ue[me]]=ee[ue[me]]);return ge};const ze=(0,De.forwardRef)((ee,ne)=>{const{prefixCls:ge,bordered:ue=!0,size:me,disabled:Se,status:Ne,allowClear:ke,showCount:Te,classNames:We,rootClassName:$e,className:st}=ee,ut=kt(ee,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Mt,direction:nt}=De.useContext(Ee.E_),$t=(0,Je.Z)(me),Pt=De.useContext(et.Z),dn=Se!=null?Se:Pt,{status:zt,hasFeedback:Xt,feedbackIcon:fn}=De.useContext(Ye.aM),an=(0,Ke.F)(zt,Ne),it=De.useRef(null);De.useImperativeHandle(ne,()=>{var It;return{resizableTextArea:(It=it.current)===null||It===void 0?void 0:It.resizableTextArea,focus:en=>{var En,ei;(0,tt.n)((ei=(En=it.current)===null||En===void 0?void 0:En.resizableTextArea)===null||ei===void 0?void 0:ei.textArea,en)},blur:()=>{var en;return(en=it.current)===null||en===void 0?void 0:en.blur()}}});const Ve=Mt("input",ge);let gt;typeof ke=="object"&&(ke!=null&&ke.clearIcon)?gt=ke:ke&&(gt={clearIcon:De.createElement(se.Z,null)});const[Bt,sn]=(0,ht.ZP)(Ve);return Bt(De.createElement(Ie.default,Object.assign({},ut,{disabled:dn,allowClear:gt,className:we()(st,$e),classes:{affixWrapper:we()(`${Ve}-textarea-affix-wrapper`,{[`${Ve}-affix-wrapper-rtl`]:nt==="rtl",[`${Ve}-affix-wrapper-borderless`]:!ue,[`${Ve}-affix-wrapper-sm`]:$t==="small",[`${Ve}-affix-wrapper-lg`]:$t==="large",[`${Ve}-textarea-show-count`]:Te},(0,Ke.Z)(`${Ve}-affix-wrapper`,an),sn)},classNames:Object.assign(Object.assign({},We),{textarea:we()({[`${Ve}-borderless`]:!ue,[`${Ve}-sm`]:$t==="small",[`${Ve}-lg`]:$t==="large"},(0,Ke.Z)(Ve,an),sn,We==null?void 0:We.textarea)}),prefixCls:Ve,suffix:Xt&&De.createElement("span",{className:`${Ve}-textarea-suffix`},fn),showCount:Te,ref:it})))});be.Z=ze},59412:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return Ce}});var se=oe(59301);function Ce(we,Ie){const De=(0,se.useRef)([]),Ke=()=>{De.current.push(setTimeout(()=>{var Ee,et,Je,Ye;!((Ee=we.current)===null||Ee===void 0)&&Ee.input&&((et=we.current)===null||et===void 0?void 0:et.input.getAttribute("type"))==="password"&&(!((Je=we.current)===null||Je===void 0)&&Je.input.hasAttribute("value"))&&((Ye=we.current)===null||Ye===void 0||Ye.input.removeAttribute("value"))}))};return(0,se.useEffect)(()=>(Ie&&Ke(),()=>De.current.forEach(Ee=>{Ee&&clearTimeout(Ee)})),[]),Ke}},92832:function(_e,be,oe){"use strict";oe.d(be,{default:function(){return $t}});var se=oe(92310),Ce=oe.n(se),we=oe(59301),Ie=oe(36355),De=oe(32441),Ke=oe(9937),et=Pt=>{const{getPrefixCls:dn,direction:zt}=(0,we.useContext)(Ie.E_),{prefixCls:Xt,className:fn}=Pt,an=dn("input-group",Xt),it=dn("input"),[Ve,gt]=(0,Ke.ZP)(it),Bt=Ce()(an,{[`${an}-lg`]:Pt.size==="large",[`${an}-sm`]:Pt.size==="small",[`${an}-compact`]:Pt.compact,[`${an}-rtl`]:zt==="rtl"},gt,fn),sn=(0,we.useContext)(De.aM),It=(0,we.useMemo)(()=>Object.assign(Object.assign({},sn),{isFormItemInput:!1}),[sn]);return Ve(we.createElement("span",{className:Bt,style:Pt.style,onMouseEnter:Pt.onMouseEnter,onMouseLeave:Pt.onMouseLeave,onFocus:Pt.onFocus,onBlur:Pt.onBlur},we.createElement(De.aM.Provider,{value:It},Pt.children)))},Je=oe(9432),Ye=oe(61441),tt=oe(30631),ht=oe(64002),kt=oe(20475),ze=oe(59412),ee=function(Pt,dn){var zt={};for(var Xt in Pt)Object.prototype.hasOwnProperty.call(Pt,Xt)&&dn.indexOf(Xt)<0&&(zt[Xt]=Pt[Xt]);if(Pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fn=0,Xt=Object.getOwnPropertySymbols(Pt);fn<Xt.length;fn++)dn.indexOf(Xt[fn])<0&&Object.prototype.propertyIsEnumerable.call(Pt,Xt[fn])&&(zt[Xt[fn]]=Pt[Xt[fn]]);return zt};const ne=Pt=>Pt?we.createElement(tt.Z,null):we.createElement(Ye.Z,null),ge={click:"onClick",hover:"onMouseOver"};var me=we.forwardRef((Pt,dn)=>{const{visibilityToggle:zt=!0}=Pt,Xt=typeof zt=="object"&&zt.visible!==void 0,[fn,an]=(0,we.useState)(()=>Xt?zt.visible:!1),it=(0,we.useRef)(null);we.useEffect(()=>{Xt&&an(zt.visible)},[Xt,zt]);const Ve=(0,ze.Z)(it),gt=()=>{const{disabled:Sn}=Pt;Sn||(fn&&Ve(),an(Yt=>{var Zt;const St=!Yt;return typeof zt=="object"&&((Zt=zt.onVisibleChange)===null||Zt===void 0||Zt.call(zt,St)),St}))},Bt=Sn=>{const{action:Yt="click",iconRender:Zt=ne}=Pt,St=ge[Yt]||"",rt=Zt(fn),Ft={[St]:gt,className:`${Sn}-icon`,key:"passwordIcon",onMouseDown:Ot=>{Ot.preventDefault()},onMouseUp:Ot=>{Ot.preventDefault()}};return we.cloneElement(we.isValidElement(rt)?rt:we.createElement("span",null,rt),Ft)},{className:sn,prefixCls:It,inputPrefixCls:en,size:En}=Pt,ei=ee(Pt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:An}=we.useContext(Ie.E_),Kn=An("input",en),jt=An("input-password",It),Nn=zt&&Bt(jt),Gn=Ce()(jt,sn,{[`${jt}-${En}`]:!!En}),ii=Object.assign(Object.assign({},(0,ht.Z)(ei,["suffix","iconRender","visibilityToggle"])),{type:fn?"text":"password",className:Gn,prefixCls:Kn,suffix:Nn});return En&&(ii.size=En),we.createElement(Je.Z,Object.assign({ref:(0,kt.sQ)(dn,it)},ii))}),Se=oe(21970),Ne=oe(92343),ke=oe(3113),Te=oe(19716),We=oe(33234),$e=function(Pt,dn){var zt={};for(var Xt in Pt)Object.prototype.hasOwnProperty.call(Pt,Xt)&&dn.indexOf(Xt)<0&&(zt[Xt]=Pt[Xt]);if(Pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fn=0,Xt=Object.getOwnPropertySymbols(Pt);fn<Xt.length;fn++)dn.indexOf(Xt[fn])<0&&Object.prototype.propertyIsEnumerable.call(Pt,Xt[fn])&&(zt[Xt[fn]]=Pt[Xt[fn]]);return zt},ut=we.forwardRef((Pt,dn)=>{const{prefixCls:zt,inputPrefixCls:Xt,className:fn,size:an,suffix:it,enterButton:Ve=!1,addonAfter:gt,loading:Bt,disabled:sn,onSearch:It,onChange:en,onCompositionStart:En,onCompositionEnd:ei}=Pt,An=$e(Pt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Kn,direction:jt}=we.useContext(Ie.E_),Nn=we.useRef(!1),Gn=Kn("input-search",zt),ii=Kn("input",Xt),{compactSize:Sn}=(0,We.ri)(Gn,jt),Yt=(0,Te.Z)(xt=>{var hn;return(hn=an!=null?an:Sn)!==null&&hn!==void 0?hn:xt}),Zt=we.useRef(null),St=xt=>{xt&&xt.target&&xt.type==="click"&&It&&It(xt.target.value,xt,{source:"clear"}),en&&en(xt)},rt=xt=>{var hn;document.activeElement===((hn=Zt.current)===null||hn===void 0?void 0:hn.input)&&xt.preventDefault()},Ft=xt=>{var hn,Pn;It&&It((Pn=(hn=Zt.current)===null||hn===void 0?void 0:hn.input)===null||Pn===void 0?void 0:Pn.value,xt,{source:"input"})},Ot=xt=>{Nn.current||Bt||Ft(xt)},ft=typeof Ve=="boolean"?we.createElement(Se.Z,null):null,ct=`${Gn}-button`;let Ge;const Ae=Ve||{},xe=Ae.type&&Ae.type.__ANT_BUTTON===!0;xe||Ae.type==="button"?Ge=(0,Ne.Tm)(Ae,Object.assign({onMouseDown:rt,onClick:xt=>{var hn,Pn;(Pn=(hn=Ae==null?void 0:Ae.props)===null||hn===void 0?void 0:hn.onClick)===null||Pn===void 0||Pn.call(hn,xt),Ft(xt)},key:"enterButton"},xe?{className:ct,size:Yt}:{})):Ge=we.createElement(ke.ZP,{className:ct,type:Ve?"primary":void 0,size:Yt,disabled:sn,key:"enterButton",onMouseDown:rt,onClick:Ft,loading:Bt,icon:ft},Ve),gt&&(Ge=[Ge,(0,Ne.Tm)(gt,{key:"addonAfter"})]);const je=Ce()(Gn,{[`${Gn}-rtl`]:jt==="rtl",[`${Gn}-${Yt}`]:!!Yt,[`${Gn}-with-button`]:!!Ve},fn),Qe=xt=>{Nn.current=!0,En==null||En(xt)},Oe=xt=>{Nn.current=!1,ei==null||ei(xt)};return we.createElement(Je.Z,Object.assign({ref:(0,kt.sQ)(Zt,dn),onPressEnter:Ot},An,{size:Yt,onCompositionStart:Qe,onCompositionEnd:Oe,prefixCls:ii,addonAfter:Ge,suffix:it,onChange:St,className:je,disabled:sn}))}),Mt=oe(1643);const nt=Je.Z;nt.Group=et,nt.Search=ut,nt.TextArea=Mt.Z,nt.Password=me;var $t=nt},99580:function(_e,be,oe){"use strict";oe.d(be,{D:function(){return Se},Z:function(){return Te}});var se=oe(5891),Ce=oe(59301),we={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"},Ie=we,De=oe(88853),Ke=function($e,st){return Ce.createElement(De.Z,(0,se.Z)({},$e,{ref:st,icon:Ie}))},Ee=Ce.forwardRef(Ke),et=Ee,Je=oe(16537),Ye=oe(53878),tt=oe(92310),ht=oe.n(tt),kt=oe(64002),ee=We=>!isNaN(parseFloat(We))&&isFinite(We),ne=oe(36355),ge=oe(84966),ue=function(We,$e){var st={};for(var ut in We)Object.prototype.hasOwnProperty.call(We,ut)&&$e.indexOf(ut)<0&&(st[ut]=We[ut]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,ut=Object.getOwnPropertySymbols(We);Mt<ut.length;Mt++)$e.indexOf(ut[Mt])<0&&Object.prototype.propertyIsEnumerable.call(We,ut[Mt])&&(st[ut[Mt]]=We[ut[Mt]]);return st};const me={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},Se=Ce.createContext({}),Ne=(()=>{let We=0;return function(){let $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return We+=1,`${$e}${We}`}})();var Te=Ce.forwardRef((We,$e)=>{const{prefixCls:st,className:ut,trigger:Mt,children:nt,defaultCollapsed:$t=!1,theme:Pt="dark",style:dn={},collapsible:zt=!1,reverseArrow:Xt=!1,width:fn=200,collapsedWidth:an=80,zeroWidthTriggerStyle:it,breakpoint:Ve,onCollapse:gt,onBreakpoint:Bt}=We,sn=ue(We,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:It}=(0,Ce.useContext)(ge.Gs),[en,En]=(0,Ce.useState)("collapsed"in We?We.collapsed:$t),[ei,An]=(0,Ce.useState)(!1);(0,Ce.useEffect)(()=>{"collapsed"in We&&En(We.collapsed)},[We.collapsed]);const Kn=(Yt,Zt)=>{"collapsed"in We||En(Yt),gt==null||gt(Yt,Zt)},jt=(0,Ce.useRef)();jt.current=Yt=>{An(Yt.matches),Bt==null||Bt(Yt.matches),en!==Yt.matches&&Kn(Yt.matches,"responsive")},(0,Ce.useEffect)(()=>{function Yt(St){return jt.current(St)}let Zt;if(typeof window!="undefined"){const{matchMedia:St}=window;if(St&&Ve&&Ve in me){Zt=St(`(max-width: ${me[Ve]})`);try{Zt.addEventListener("change",Yt)}catch(rt){Zt.addListener(Yt)}Yt(Zt)}}return()=>{try{Zt==null||Zt.removeEventListener("change",Yt)}catch(St){Zt==null||Zt.removeListener(Yt)}}},[Ve]),(0,Ce.useEffect)(()=>{const Yt=Ne("ant-sider-");return It.addSider(Yt),()=>It.removeSider(Yt)},[]);const Nn=()=>{Kn(!en,"clickTrigger")},{getPrefixCls:Gn}=(0,Ce.useContext)(ne.E_),ii=()=>{const Yt=Gn("layout-sider",st),Zt=(0,kt.Z)(sn,["collapsed"]),St=en?an:fn,rt=ee(St)?`${St}px`:String(St),Ft=parseFloat(String(an||0))===0?Ce.createElement("span",{onClick:Nn,className:ht()(`${Yt}-zero-width-trigger`,`${Yt}-zero-width-trigger-${Xt?"right":"left"}`),style:it},Mt||Ce.createElement(et,null)):null,ct={expanded:Xt?Ce.createElement(Ye.Z,null):Ce.createElement(Je.Z,null),collapsed:Xt?Ce.createElement(Je.Z,null):Ce.createElement(Ye.Z,null)}[en?"collapsed":"expanded"],Ge=Mt!==null?Ft||Ce.createElement("div",{className:`${Yt}-trigger`,onClick:Nn,style:{width:rt}},Mt||ct):null,Ae=Object.assign(Object.assign({},dn),{flex:`0 0 ${rt}`,maxWidth:rt,minWidth:rt,width:rt}),xe=ht()(Yt,`${Yt}-${Pt}`,{[`${Yt}-collapsed`]:!!en,[`${Yt}-has-trigger`]:zt&&Mt!==null&&!Ft,[`${Yt}-below`]:!!ei,[`${Yt}-zero-width`]:parseFloat(rt)===0},ut);return Ce.createElement("aside",Object.assign({className:xe},Zt,{style:Ae,ref:$e}),Ce.createElement("div",{className:`${Yt}-children`},nt),zt||ei&&Ft?Ge:null)},Sn=Ce.useMemo(()=>({siderCollapsed:en}),[en]);return Ce.createElement(Se.Provider,{value:Sn},ii())})},84966:function(_e,be,oe){"use strict";oe.d(be,{VY:function(){return Se},$_:function(){return me},h4:function(){return ue},Gs:function(){return kt},ZP:function(){return Ne}});var se=oe(26390),Ce=oe(92310),we=oe.n(Ce),Ie=oe(64002),De=oe(59301),Ke=oe(36355),Ee=oe(83116),Je=ke=>{const{componentCls:Te,bodyBg:We,lightSiderBg:$e,lightTriggerBg:st,lightTriggerColor:ut}=ke;return{[`${Te}-sider-light`]:{background:$e,[`${Te}-sider-trigger`]:{color:ut,background:st},[`${Te}-sider-zero-width-trigger`]:{color:ut,background:st,border:`1px solid ${We}`,borderInlineStart:0}}}};const Ye=ke=>{const{antCls:Te,componentCls:We,colorText:$e,triggerColor:st,footerBg:ut,triggerBg:Mt,headerHeight:nt,headerPadding:$t,headerColor:Pt,footerPadding:dn,triggerHeight:zt,zeroTriggerHeight:Xt,zeroTriggerWidth:fn,motionDurationMid:an,motionDurationSlow:it,fontSize:Ve,borderRadius:gt,bodyBg:Bt,headerBg:sn,siderBg:It}=ke;return{[We]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Bt,"&, *":{boxSizing:"border-box"},[`&${We}-has-sider`]:{flexDirection:"row",[`> ${We}, > ${We}-content`]:{width:0}},[`${We}-header, &${We}-footer`]:{flex:"0 0 auto"},[`${We}-sider`]:{position:"relative",minWidth:0,background:It,transition:`all ${an}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${Te}-menu${Te}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:zt},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:zt,color:st,lineHeight:`${zt}px`,textAlign:"center",background:Mt,cursor:"pointer",transition:`all ${an}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:nt,insetInlineEnd:-fn,zIndex:1,width:fn,height:Xt,color:st,fontSize:ke.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:It,borderStartStartRadius:0,borderStartEndRadius:gt,borderEndEndRadius:gt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${it} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${it}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-fn,borderStartStartRadius:gt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:gt}}}}},Je(ke)),{"&-rtl":{direction:"rtl"}}),[`${We}-header`]:{height:nt,padding:$t,color:Pt,lineHeight:`${nt}px`,background:sn,[`${Te}-menu`]:{lineHeight:"inherit"}},[`${We}-footer`]:{padding:dn,color:$e,fontSize:Ve,background:ut},[`${We}-content`]:{flex:"auto",minHeight:0}}};var tt=(0,Ee.Z)("Layout",ke=>[Ye(ke)],ke=>{const{colorBgLayout:Te,controlHeight:We,controlHeightLG:$e,colorText:st,controlHeightSM:ut,marginXXS:Mt,colorTextLightSolid:nt,colorBgContainer:$t}=ke,Pt=$e*1.25;return{colorBgHeader:"#001529",colorBgBody:Te,colorBgTrigger:"#002140",bodyBg:Te,headerBg:"#001529",headerHeight:We*2,headerPadding:`0 ${Pt}px`,headerColor:st,footerPadding:`${ut}px ${Pt}px`,footerBg:Te,siderBg:"#001529",triggerHeight:$e+Mt*2,triggerBg:"#002140",triggerColor:nt,zeroTriggerWidth:$e,zeroTriggerHeight:$e,lightSiderBg:$t,lightTriggerBg:$t,lightTriggerColor:st}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),ht=function(ke,Te){var We={};for(var $e in ke)Object.prototype.hasOwnProperty.call(ke,$e)&&Te.indexOf($e)<0&&(We[$e]=ke[$e]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,$e=Object.getOwnPropertySymbols(ke);st<$e.length;st++)Te.indexOf($e[st])<0&&Object.prototype.propertyIsEnumerable.call(ke,$e[st])&&(We[$e[st]]=ke[$e[st]]);return We};const kt=De.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ze(ke){let{suffixCls:Te,tagName:We,displayName:$e}=ke;return st=>De.forwardRef((Mt,nt)=>De.createElement(st,Object.assign({ref:nt,suffixCls:Te,tagName:We},Mt)))}const ee=De.forwardRef((ke,Te)=>{const{prefixCls:We,suffixCls:$e,className:st,tagName:ut}=ke,Mt=ht(ke,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:nt}=De.useContext(Ke.E_),$t=nt("layout",We),[Pt,dn]=tt($t),zt=$e?`${$t}-${$e}`:$t;return Pt(De.createElement(ut,Object.assign({className:we()(We||zt,st,dn),ref:Te},Mt)))}),ne=De.forwardRef((ke,Te)=>{const{direction:We}=De.useContext(Ke.E_),[$e,st]=De.useState([]),{prefixCls:ut,className:Mt,rootClassName:nt,children:$t,hasSider:Pt,tagName:dn,style:zt}=ke,Xt=ht(ke,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),fn=(0,Ie.Z)(Xt,["suffixCls"]),{getPrefixCls:an,layout:it}=De.useContext(Ke.E_),Ve=an("layout",ut),[gt,Bt]=tt(Ve),sn=we()(Ve,{[`${Ve}-has-sider`]:typeof Pt=="boolean"?Pt:$e.length>0,[`${Ve}-rtl`]:We==="rtl"},it==null?void 0:it.className,Mt,nt,Bt),It=De.useMemo(()=>({siderHook:{addSider:en=>{st(En=>[].concat((0,se.Z)(En),[en]))},removeSider:en=>{st(En=>En.filter(ei=>ei!==en))}}}),[]);return gt(De.createElement(kt.Provider,{value:It},De.createElement(dn,Object.assign({ref:Te,className:sn,style:Object.assign(Object.assign({},it==null?void 0:it.style),zt)},fn),$t)))}),ge=ze({tagName:"div",displayName:"Layout"})(ne),ue=ze({suffixCls:"header",tagName:"header",displayName:"Header"})(ee),me=ze({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(ee),Se=ze({suffixCls:"content",tagName:"main",displayName:"Content"})(ee);var Ne=ge},40875:function(_e,be,oe){"use strict";oe.d(be,{J:function(){return Ke}});var se=oe(59301),Ce=oe(33234),we=oe(80764),Ie=function(Ee,et){var Je={};for(var Ye in Ee)Object.prototype.hasOwnProperty.call(Ee,Ye)&&et.indexOf(Ye)<0&&(Je[Ye]=Ee[Ye]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,Ye=Object.getOwnPropertySymbols(Ee);tt<Ye.length;tt++)et.indexOf(Ye[tt])<0&&Object.prototype.propertyIsEnumerable.call(Ee,Ye[tt])&&(Je[Ye[tt]]=Ee[Ye[tt]]);return Je};const De=se.createContext(null),Ke=se.forwardRef((Ee,et)=>{const{children:Je}=Ee,Ye=Ie(Ee,["children"]),tt=se.useContext(De),ht=se.useMemo(()=>Object.assign(Object.assign({},tt),Ye),[tt,Ye.prefixCls,Ye.mode,Ye.selectable]);return se.createElement(De.Provider,{value:ht},se.createElement(Ce.BR,null,(0,we.supportNodeRef)(Je)?se.cloneElement(Je,{ref:et}):Je))});be.Z=De},20834:function(_e,be,oe){"use strict";oe.d(be,{default:function(){return Sn}});var se=oe(22798),Ce=oe(59301),we=oe(99580),Ie=oe(92310),De=oe.n(Ie),Ke=oe(36355),Ee=function(Yt,Zt){var St={};for(var rt in Yt)Object.prototype.hasOwnProperty.call(Yt,rt)&&Zt.indexOf(rt)<0&&(St[rt]=Yt[rt]);if(Yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ft=0,rt=Object.getOwnPropertySymbols(Yt);Ft<rt.length;Ft++)Zt.indexOf(rt[Ft])<0&&Object.prototype.propertyIsEnumerable.call(Yt,rt[Ft])&&(St[rt[Ft]]=Yt[rt[Ft]]);return St},Je=Yt=>{const{prefixCls:Zt,className:St,dashed:rt}=Yt,Ft=Ee(Yt,["prefixCls","className","dashed"]),{getPrefixCls:Ot}=Ce.useContext(Ke.E_),ft=Ot("menu",Zt),ct=De()({[`${ft}-item-divider-dashed`]:!!rt},St);return Ce.createElement(se.iz,Object.assign({className:ct},Ft))},Ye=oe(38298),tt=oe(64002),ht=oe(6848),kt=oe(92343),ee=(0,Ce.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ge=Yt=>{var Zt;const{className:St,children:rt,icon:Ft,title:Ot,danger:ft}=Yt,{prefixCls:ct,firstLevel:Ge,direction:Ae,disableMenuItemTitleTooltip:xe,inlineCollapsed:je}=Ce.useContext(ee),Qe=nn=>{const Mn=Ce.createElement("span",{className:`${ct}-title-content`},rt);return(!Ft||(0,kt.l$)(rt)&&rt.type==="span")&&rt&&nn&&Ge&&typeof rt=="string"?Ce.createElement("div",{className:`${ct}-inline-collapsed-noicon`},rt.charAt(0)):Mn},{siderCollapsed:Oe}=Ce.useContext(we.D);let xt=Ot;typeof Ot=="undefined"?xt=Ge?rt:"":Ot===!1&&(xt="");const hn={title:xt};!Oe&&!je&&(hn.title=null,hn.open=!1);const Pn=(0,Ye.Z)(rt).length;let wt=Ce.createElement(se.ck,Object.assign({},(0,tt.Z)(Yt,["title","icon","danger"]),{className:De()({[`${ct}-item-danger`]:ft,[`${ct}-item-only-child`]:(Ft?Pn+1:Pn)===1},St),title:typeof Ot=="string"?Ot:void 0}),(0,kt.Tm)(Ft,{className:De()((0,kt.l$)(Ft)?(Zt=Ft.props)===null||Zt===void 0?void 0:Zt.className:"",`${ct}-item-icon`)}),Qe(je));return xe||(wt=Ce.createElement(ht.Z,Object.assign({},hn,{placement:Ae==="rtl"?"left":"right",overlayClassName:`${ct}-inline-collapsed-tooltip`}),wt)),wt},me=Yt=>{var Zt;const{popupClassName:St,icon:rt,title:Ft,theme:Ot}=Yt,ft=Ce.useContext(ee),{prefixCls:ct,inlineCollapsed:Ge,theme:Ae}=ft,xe=(0,se.Xl)();let je;if(!rt)je=Ge&&!xe.length&&Ft&&typeof Ft=="string"?Ce.createElement("div",{className:`${ct}-inline-collapsed-noicon`},Ft.charAt(0)):Ce.createElement("span",{className:`${ct}-title-content`},Ft);else{const Oe=(0,kt.l$)(Ft)&&Ft.type==="span";je=Ce.createElement(Ce.Fragment,null,(0,kt.Tm)(rt,{className:De()((0,kt.l$)(rt)?(Zt=rt.props)===null||Zt===void 0?void 0:Zt.className:"",`${ct}-item-icon`)}),Oe?Ft:Ce.createElement("span",{className:`${ct}-title-content`},Ft))}const Qe=Ce.useMemo(()=>Object.assign(Object.assign({},ft),{firstLevel:!1}),[ft]);return Ce.createElement(ee.Provider,{value:Qe},Ce.createElement(se.Wd,Object.assign({},(0,tt.Z)(Yt,["icon"]),{title:je,popupClassName:De()(ct,St,`${ct}-${Ot||Ae}`)})))},Se=oe(19362),Ne=oe(80764),ke=oe(62892),Te=oe(40875),We=function(Yt,Zt){var St={};for(var rt in Yt)Object.prototype.hasOwnProperty.call(Yt,rt)&&Zt.indexOf(rt)<0&&(St[rt]=Yt[rt]);if(Yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ft=0,rt=Object.getOwnPropertySymbols(Yt);Ft<rt.length;Ft++)Zt.indexOf(rt[Ft])<0&&Object.prototype.propertyIsEnumerable.call(Yt,rt[Ft])&&(St[rt[Ft]]=Yt[rt[Ft]]);return St};function $e(Yt){return(Yt||[]).map((Zt,St)=>{if(Zt&&typeof Zt=="object"){const rt=Zt,{label:Ft,children:Ot,key:ft,type:ct}=rt,Ge=We(rt,["label","children","key","type"]),Ae=ft!=null?ft:`tmp-${St}`;return Ot||ct==="group"?ct==="group"?Ce.createElement(se.BW,Object.assign({key:Ae},Ge,{title:Ft}),$e(Ot)):Ce.createElement(me,Object.assign({key:Ae},Ge,{title:Ft}),$e(Ot)):ct==="divider"?Ce.createElement(Je,Object.assign({key:Ae},Ge)):Ce.createElement(ge,Object.assign({key:Ae},Ge),Ft)}return null}).filter(Zt=>Zt)}function st(Yt){return Ce.useMemo(()=>Yt&&$e(Yt),[Yt])}var ut=oe(64993),Mt=oe(17313),nt=oe(8378),$t=oe(13826),Pt=oe(29878),dn=oe(83116),zt=oe(37613),fn=Yt=>{const{componentCls:Zt,motionDurationSlow:St,horizontalLineHeight:rt,colorSplit:Ft,lineWidth:Ot,lineType:ft,itemPaddingInline:ct}=Yt;return{[`${Zt}-horizontal`]:{lineHeight:rt,border:0,borderBottom:`${Ot}px ${ft} ${Ft}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Zt}-item, ${Zt}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:ct},[`> ${Zt}-item:hover,
> ${Zt}-item-active,
> ${Zt}-submenu ${Zt}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Zt}-item, ${Zt}-submenu-title`]:{transition:[`border-color ${St}`,`background ${St}`].join(",")},[`${Zt}-submenu-arrow`]:{display:"none"}}}},it=Yt=>{let{componentCls:Zt,menuArrowOffset:St}=Yt;return{[`${Zt}-rtl`]:{direction:"rtl"},[`${Zt}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Zt}-rtl${Zt}-vertical,
${Zt}-submenu-rtl ${Zt}-vertical`]:{[`${Zt}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${St})`},"&::after":{transform:`rotate(45deg) translateY(${St})`}}}}};const Ve=Yt=>Object.assign({},(0,Mt.oN)(Yt));var Bt=(Yt,Zt)=>{const{componentCls:St,itemColor:rt,itemSelectedColor:Ft,groupTitleColor:Ot,itemBg:ft,subMenuItemBg:ct,itemSelectedBg:Ge,activeBarHeight:Ae,activeBarWidth:xe,activeBarBorderWidth:je,motionDurationSlow:Qe,motionEaseInOut:Oe,motionEaseOut:xt,itemPaddingInline:hn,motionDurationMid:Pn,itemHoverColor:wt,lineType:nn,colorSplit:Mn,itemDisabledColor:Zn,dangerItemColor:li,dangerItemHoverColor:xi,dangerItemSelectedColor:Mi,dangerItemActiveBg:Si,dangerItemSelectedBg:Ri,itemHoverBg:lr,itemActiveBg:dr,menuSubMenuBg:ur,horizontalItemSelectedColor:Sr,horizontalItemSelectedBg:Wr,horizontalItemBorderRadius:Gi,horizontalItemHoverBg:Zr,popupBg:Yi}=Yt;return{[`${St}-${Zt}, ${St}-${Zt} > ${St}`]:{color:rt,background:ft,[`&${St}-root:focus-visible`]:Object.assign({},Ve(Yt)),[`${St}-item-group-title`]:{color:Ot},[`${St}-submenu-selected`]:{[`> ${St}-submenu-title`]:{color:Ft}},[`${St}-item-disabled, ${St}-submenu-disabled`]:{color:`${Zn} !important`},[`${St}-item:not(${St}-item-selected):not(${St}-submenu-selected)`]:{[`&:hover, > ${St}-submenu-title:hover`]:{color:wt}},[`&:not(${St}-horizontal)`]:{[`${St}-item:not(${St}-item-selected)`]:{"&:hover":{backgroundColor:lr},"&:active":{backgroundColor:dr}},[`${St}-submenu-title`]:{"&:hover":{backgroundColor:lr},"&:active":{backgroundColor:dr}}},[`${St}-item-danger`]:{color:li,[`&${St}-item:hover`]:{[`&:not(${St}-item-selected):not(${St}-submenu-selected)`]:{color:xi}},[`&${St}-item:active`]:{background:Si}},[`${St}-item a`]:{"&, &:hover":{color:"inherit"}},[`${St}-item-selected`]:{color:Ft,[`&${St}-item-danger`]:{color:Mi},"a, a:hover":{color:"inherit"}},[`& ${St}-item-selected`]:{backgroundColor:Ge,[`&${St}-item-danger`]:{backgroundColor:Ri}},[`${St}-item, ${St}-submenu-title`]:{[`&:not(${St}-item-disabled):focus-visible`]:Object.assign({},Ve(Yt))},[`&${St}-submenu > ${St}`]:{backgroundColor:ur},[`&${St}-popup > ${St}`]:{backgroundColor:Yi},[`&${St}-horizontal`]:Object.assign(Object.assign({},Zt==="dark"?{borderBottom:0}:{}),{[`> ${St}-item, > ${St}-submenu`]:{top:je,marginTop:-je,marginBottom:0,borderRadius:Gi,"&::after":{position:"absolute",insetInline:hn,bottom:0,borderBottom:`${Ae}px solid transparent`,transition:`border-color ${Qe} ${Oe}`,content:'""'},"&:hover, &-active, &-open":{background:Zr,"&::after":{borderBottomWidth:Ae,borderBottomColor:Sr}},"&-selected":{color:Sr,backgroundColor:Wr,"&:hover":{backgroundColor:Wr},"&::after":{borderBottomWidth:Ae,borderBottomColor:Sr}}}}),[`&${St}-root`]:{[`&${St}-inline, &${St}-vertical`]:{borderInlineEnd:`${je}px ${nn} ${Mn}`}},[`&${St}-inline`]:{[`${St}-sub${St}-inline`]:{background:ct},[`${St}-item, ${St}-submenu-title`]:je&&xe?{width:`calc(100% + ${je}px)`}:{},[`${St}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${xe}px solid ${Ft}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Pn} ${xt}`,`opacity ${Pn} ${xt}`].join(","),content:'""'},[`&${St}-item-danger`]:{"&::after":{borderInlineEndColor:Mi}}},[`${St}-selected, ${St}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Pn} ${Oe}`,`opacity ${Pn} ${Oe}`].join(",")}}}}}};const sn=Yt=>{const{componentCls:Zt,itemHeight:St,itemMarginInline:rt,padding:Ft,menuArrowSize:Ot,marginXS:ft,itemMarginBlock:ct}=Yt,Ge=Ft+Ot+ft;return{[`${Zt}-item`]:{position:"relative",overflow:"hidden"},[`${Zt}-item, ${Zt}-submenu-title`]:{height:St,lineHeight:`${St}px`,paddingInline:Ft,overflow:"hidden",textOverflow:"ellipsis",marginInline:rt,marginBlock:ct,width:`calc(100% - ${rt*2}px)`},[`> ${Zt}-item,
> ${Zt}-submenu > ${Zt}-submenu-title`]:{height:St,lineHeight:`${St}px`},[`${Zt}-item-group-list ${Zt}-submenu-title,
${Zt}-submenu-title`]:{paddingInlineEnd:Ge}}};var en=Yt=>{const{componentCls:Zt,iconCls:St,itemHeight:rt,colorTextLightSolid:Ft,dropdownWidth:Ot,controlHeightLG:ft,motionDurationMid:ct,motionEaseOut:Ge,paddingXL:Ae,itemMarginInline:xe,fontSizeLG:je,motionDurationSlow:Qe,paddingXS:Oe,boxShadowSecondary:xt,collapsedWidth:hn,collapsedIconSize:Pn}=Yt,wt={height:rt,lineHeight:`${rt}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Zt]:{"&-inline, &-vertical":Object.assign({[`&${Zt}-root`]:{boxShadow:"none"}},sn(Yt))},[`${Zt}-submenu-popup`]:{[`${Zt}-vertical`]:Object.assign(Object.assign({},sn(Yt)),{boxShadow:xt})}},{[`${Zt}-submenu-popup ${Zt}-vertical${Zt}-sub`]:{minWidth:Ot,maxHeight:`calc(100vh - ${ft*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Zt}-inline`]:{width:"100%",[`&${Zt}-root`]:{[`${Zt}-item, ${Zt}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Qe}`,`background ${Qe}`,`padding ${ct} ${Ge}`].join(","),[`> ${Zt}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Zt}-sub${Zt}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Zt}-submenu > ${Zt}-submenu-title`]:wt,[`& ${Zt}-item-group-title`]:{paddingInlineStart:Ae}},[`${Zt}-item`]:wt}},{[`${Zt}-inline-collapsed`]:{width:hn,[`&${Zt}-root`]:{[`${Zt}-item, ${Zt}-submenu ${Zt}-submenu-title`]:{[`> ${Zt}-inline-collapsed-noicon`]:{fontSize:je,textAlign:"center"}}},[`> ${Zt}-item,
> ${Zt}-item-group > ${Zt}-item-group-list > ${Zt}-item,
> ${Zt}-item-group > ${Zt}-item-group-list > ${Zt}-submenu > ${Zt}-submenu-title,
> ${Zt}-submenu > ${Zt}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${je/2}px - ${xe}px)`,textOverflow:"clip",[`
${Zt}-submenu-arrow,
${Zt}-submenu-expand-icon
`]:{opacity:0},[`${Zt}-item-icon, ${St}`]:{margin:0,fontSize:Pn,lineHeight:`${rt}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Zt}-item-icon, ${St}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Zt}-item-icon, ${St}`]:{display:"none"},"a, a:hover":{color:Ft}},[`${Zt}-item-group-title`]:Object.assign(Object.assign({},Mt.vS),{paddingInline:Oe})}}]};const En=Yt=>{const{componentCls:Zt,motionDurationSlow:St,motionDurationMid:rt,motionEaseInOut:Ft,motionEaseOut:Ot,iconCls:ft,iconSize:ct,iconMarginInlineEnd:Ge}=Yt;return{[`${Zt}-item, ${Zt}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${St}`,`background ${St}`,`padding ${St} ${Ft}`].join(","),[`${Zt}-item-icon, ${ft}`]:{minWidth:ct,fontSize:ct,transition:[`font-size ${rt} ${Ot}`,`margin ${St} ${Ft}`,`color ${St}`].join(","),"+ span":{marginInlineStart:Ge,opacity:1,transition:[`opacity ${St} ${Ft}`,`margin ${St}`,`color ${St}`].join(",")}},[`${Zt}-item-icon`]:Object.assign({},(0,Mt.Ro)()),[`&${Zt}-item-only-child`]:{[`> ${ft}, > ${Zt}-item-icon`]:{marginInlineEnd:0}}},[`${Zt}-item-disabled, ${Zt}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Zt}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},ei=Yt=>{const{componentCls:Zt,motionDurationSlow:St,motionEaseInOut:rt,borderRadius:Ft,menuArrowSize:Ot,menuArrowOffset:ft}=Yt;return{[`${Zt}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Yt.margin,width:Ot,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${St} ${rt}, opacity ${St}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Ot*.6,height:Ot*.15,backgroundColor:"currentcolor",borderRadius:Ft,transition:[`background ${St} ${rt}`,`transform ${St} ${rt}`,`top ${St} ${rt}`,`color ${St} ${rt}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${ft})`},"&::after":{transform:`rotate(-45deg) translateY(${ft})`}}}}},An=Yt=>{const{antCls:Zt,componentCls:St,fontSize:rt,motionDurationSlow:Ft,motionDurationMid:Ot,motionEaseInOut:ft,paddingXS:ct,padding:Ge,colorSplit:Ae,lineWidth:xe,zIndexPopup:je,borderRadiusLG:Qe,subMenuItemBorderRadius:Oe,menuArrowSize:xt,menuArrowOffset:hn,lineType:Pn,menuPanelMaskInset:wt,groupTitleLineHeight:nn,groupTitleFontSize:Mn}=Yt;return[{"":{[`${St}`]:Object.assign(Object.assign({},(0,Mt.dF)()),{"&-hidden":{display:"none"}})},[`${St}-submenu-hidden`]:{display:"none"}},{[St]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Mt.Wf)(Yt)),(0,Mt.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:rt,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ft} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${St}-item`]:{flex:"none"}},[`${St}-item, ${St}-submenu, ${St}-submenu-title`]:{borderRadius:Yt.itemBorderRadius},[`${St}-item-group-title`]:{padding:`${ct}px ${Ge}px`,fontSize:Mn,lineHeight:nn,transition:`all ${Ft}`},[`&-horizontal ${St}-submenu`]:{transition:[`border-color ${Ft} ${ft}`,`background ${Ft} ${ft}`].join(",")},[`${St}-submenu, ${St}-submenu-inline`]:{transition:[`border-color ${Ft} ${ft}`,`background ${Ft} ${ft}`,`padding ${Ot} ${ft}`].join(",")},[`${St}-submenu ${St}-sub`]:{cursor:"initial",transition:[`background ${Ft} ${ft}`,`padding ${Ft} ${ft}`].join(",")},[`${St}-title-content`]:{transition:`color ${Ft}`},[`${St}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${St}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Ae,borderStyle:Pn,borderWidth:0,borderTopWidth:xe,marginBlock:xe,padding:0,"&-dashed":{borderStyle:"dashed"}}}),En(Yt)),{[`${St}-item-group`]:{[`${St}-item-group-list`]:{margin:0,padding:0,[`${St}-item, ${St}-submenu-title`]:{paddingInline:`${rt*2}px ${Ge}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:je,borderRadius:Qe,boxShadow:"none",transformOrigin:"0 0",[`&${St}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${wt}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:wt},"\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:Yt.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Yt.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Yt.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Yt.paddingXS},[`> ${St}`]:Object.assign(Object.assign(Object.assign({borderRadius:Qe},En(Yt)),ei(Yt)),{[`${St}-item, ${St}-submenu > ${St}-submenu-title`]:{borderRadius:Oe},[`${St}-submenu-title::after`]:{transition:`transform ${Ft} ${ft}`}})}}),ei(Yt)),{[`&-inline-collapsed ${St}-submenu-arrow,
&-inline ${St}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${hn})`},"&::after":{transform:`rotate(45deg) translateX(-${hn})`}},[`${St}-submenu-open${St}-submenu-inline > ${St}-submenu-title > ${St}-submenu-arrow`]:{transform:`translateY(-${xt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${hn})`},"&::before":{transform:`rotate(45deg) translateX(${hn})`}}})},{[`${Zt}-layout-header`]:{[St]:{lineHeight:"inherit"}}}]};var Kn=(Yt,Zt)=>(0,dn.Z)("Menu",rt=>{if(Zt===!1)return[];const{colorBgElevated:Ft,colorPrimary:Ot,colorTextLightSolid:ft,controlHeightLG:ct,fontSize:Ge,darkItemColor:Ae,darkDangerItemColor:xe,darkItemBg:je,darkSubMenuItemBg:Qe,darkItemSelectedColor:Oe,darkItemSelectedBg:xt,darkDangerItemSelectedBg:hn,darkItemHoverBg:Pn,darkGroupTitleColor:wt,darkItemHoverColor:nn,darkItemDisabledColor:Mn,darkDangerItemHoverColor:Zn,darkDangerItemSelectedColor:li,darkDangerItemActiveBg:xi}=rt,Mi=Ge/7*5,Si=(0,zt.TS)(rt,{menuArrowSize:Mi,menuHorizontalHeight:ct*1.15,menuArrowOffset:`${Mi*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Ft}),Ri=(0,zt.TS)(Si,{itemColor:Ae,itemHoverColor:nn,groupTitleColor:wt,itemSelectedColor:Oe,itemBg:je,popupBg:je,subMenuItemBg:Qe,itemActiveBg:"transparent",itemSelectedBg:xt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Pn,itemDisabledColor:Mn,dangerItemColor:xe,dangerItemHoverColor:Zn,dangerItemSelectedColor:li,dangerItemActiveBg:xi,dangerItemSelectedBg:hn,menuSubMenuBg:Qe,horizontalItemSelectedColor:ft,horizontalItemSelectedBg:Ot});return[An(Si),fn(Si),en(Si),Bt(Si,"light"),Bt(Ri,"dark"),it(Si),(0,nt.Z)(Si),(0,$t.oN)(Si,"slide-up"),(0,$t.oN)(Si,"slide-down"),(0,Pt._y)(Si,"zoom-big")]},rt=>{const{colorPrimary:Ft,colorError:Ot,colorTextDisabled:ft,colorErrorBg:ct,colorText:Ge,colorTextDescription:Ae,colorBgContainer:xe,colorFillAlter:je,colorFillContent:Qe,lineWidth:Oe,lineWidthBold:xt,controlItemBgActive:hn,colorBgTextHover:Pn,controlHeightLG:wt,lineHeight:nn,colorBgElevated:Mn,marginXXS:Zn,padding:li,fontSize:xi,controlHeightSM:Mi,fontSizeLG:Si,colorTextLightSolid:Ri,colorErrorHover:lr}=rt,dr=new ut.C(Ri).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:rt.zIndexPopupBase+50,radiusItem:rt.borderRadiusLG,itemBorderRadius:rt.borderRadiusLG,radiusSubMenuItem:rt.borderRadiusSM,subMenuItemBorderRadius:rt.borderRadiusSM,colorItemText:Ge,itemColor:Ge,colorItemTextHover:Ge,itemHoverColor:Ge,colorItemTextHoverHorizontal:Ft,horizontalItemHoverColor:Ft,colorGroupTitle:Ae,groupTitleColor:Ae,colorItemTextSelected:Ft,itemSelectedColor:Ft,colorItemTextSelectedHorizontal:Ft,horizontalItemSelectedColor:Ft,colorItemBg:xe,itemBg:xe,colorItemBgHover:Pn,itemHoverBg:Pn,colorItemBgActive:Qe,itemActiveBg:hn,colorSubItemBg:je,subMenuItemBg:je,colorItemBgSelected:hn,itemSelectedBg:hn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:xt,activeBarHeight:xt,colorActiveBarBorderSize:Oe,activeBarBorderWidth:Oe,colorItemTextDisabled:ft,itemDisabledColor:ft,colorDangerItemText:Ot,dangerItemColor:Ot,colorDangerItemTextHover:Ot,dangerItemHoverColor:Ot,colorDangerItemTextSelected:Ot,dangerItemSelectedColor:Ot,colorDangerItemBgActive:ct,dangerItemActiveBg:ct,colorDangerItemBgSelected:ct,dangerItemSelectedBg:ct,itemMarginInline:rt.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:wt,groupTitleLineHeight:nn,collapsedWidth:wt*2,popupBg:Mn,itemMarginBlock:Zn,itemPaddingInline:li,horizontalLineHeight:`${wt*1.15}px`,iconSize:xi,iconMarginInlineEnd:Mi-xi,collapsedIconSize:Si,groupTitleFontSize:xi,darkItemDisabledColor:new ut.C(Ri).setAlpha(.25).toRgbString(),darkItemColor:dr,darkDangerItemColor:Ot,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Ri,darkItemSelectedBg:Ft,darkDangerItemSelectedBg:Ot,darkItemHoverBg:"transparent",darkGroupTitleColor:dr,darkItemHoverColor:Ri,darkDangerItemHoverColor:lr,darkDangerItemSelectedColor:Ri,darkDangerItemActiveBg:Ot}},{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"]]})(Yt),jt=function(Yt,Zt){var St={};for(var rt in Yt)Object.prototype.hasOwnProperty.call(Yt,rt)&&Zt.indexOf(rt)<0&&(St[rt]=Yt[rt]);if(Yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ft=0,rt=Object.getOwnPropertySymbols(Yt);Ft<rt.length;Ft++)Zt.indexOf(rt[Ft])<0&&Object.prototype.propertyIsEnumerable.call(Yt,rt[Ft])&&(St[rt[Ft]]=Yt[rt[Ft]]);return St},Gn=(0,Ce.forwardRef)((Yt,Zt)=>{var St,rt;const Ft=Ce.useContext(Te.Z),Ot=Ft||{},{getPrefixCls:ft,getPopupContainer:ct,direction:Ge,menu:Ae}=Ce.useContext(Ke.E_),xe=ft(),{prefixCls:je,className:Qe,style:Oe,theme:xt="light",expandIcon:hn,_internalDisableMenuItemTitleTooltip:Pn,inlineCollapsed:wt,siderCollapsed:nn,items:Mn,children:Zn,rootClassName:li,mode:xi,selectable:Mi,onClick:Si,overflowedIndicatorPopupClassName:Ri}=Yt,lr=jt(Yt,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),dr=(0,tt.Z)(lr,["collapsedWidth"]),ur=st(Mn)||Zn;(St=Ot.validator)===null||St===void 0||St.call(Ot,{mode:xi});const Sr=(0,Ne.useEvent)(function(){var Io;Si==null||Si.apply(void 0,arguments),(Io=Ot.onClick)===null||Io===void 0||Io.call(Ot)}),Wr=Ot.mode||xi,Gi=Mi!=null?Mi:Ot.selectable,Zr=Ce.useMemo(()=>nn!==void 0?nn:wt,[wt,nn]),Yi={horizontal:{motionName:`${xe}-slide-up`},inline:(0,ke.Z)(xe),other:{motionName:`${xe}-zoom-big`}},Ue=ft("menu",je||Ot.prefixCls),[no,pr]=Kn(Ue,!Ft),fo=De()(`${Ue}-${xt}`,Ae==null?void 0:Ae.className,Qe);let Fo;if(typeof hn=="function")Fo=hn;else if(hn===null||hn===!1)Fo=null;else if(Ot.expandIcon===null||Ot.expandIcon===!1)Fo=null;else{const Io=hn!=null?hn:Ot.expandIcon;Fo=(0,kt.Tm)(Io,{className:De()(`${Ue}-submenu-expand-icon`,(0,kt.l$)(Io)?(rt=Io.props)===null||rt===void 0?void 0:rt.className:"")})}const Vo=Ce.useMemo(()=>({prefixCls:Ue,inlineCollapsed:Zr||!1,direction:Ge,firstLevel:!0,theme:xt,mode:Wr,disableMenuItemTitleTooltip:Pn}),[Ue,Zr,Ge,Pn,xt]);return no(Ce.createElement(Te.Z.Provider,{value:null},Ce.createElement(ee.Provider,{value:Vo},Ce.createElement(se.ZP,Object.assign({getPopupContainer:ct,overflowedIndicator:Ce.createElement(Se.Z,null),overflowedIndicatorPopupClassName:De()(Ue,`${Ue}-${xt}`,Ri),mode:Wr,selectable:Gi,onClick:Sr},dr,{inlineCollapsed:Zr,style:Object.assign(Object.assign({},Ae==null?void 0:Ae.style),Oe),className:fo,prefixCls:Ue,direction:Ge,defaultMotions:Yi,expandIcon:Fo,ref:Zt,rootClassName:De()(li,pr)}),ur))))});const ii=(0,Ce.forwardRef)((Yt,Zt)=>{const St=(0,Ce.useRef)(null),rt=Ce.useContext(we.D);return(0,Ce.useImperativeHandle)(Zt,()=>({menu:St.current,focus:Ft=>{var Ot;(Ot=St.current)===null||Ot===void 0||Ot.focus(Ft)}})),Ce.createElement(Gn,Object.assign({ref:St},Yt,rt))});ii.Item=ge,ii.SubMenu=me,ii.Divider=Je,ii.ItemGroup=se.BW;var Sn=ii},25700:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return Ot}});var se=oe(5891),Ce=oe(59301),we={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"},Ie=we,De=oe(88853),Ke=function(ct,Ge){return Ce.createElement(De.Z,(0,se.Z)({},ct,{ref:Ge,icon:Ie}))},Ee=Ce.forwardRef(Ke),et=Ee,Je=oe(93343),Ye=oe(16537),tt=oe(53878),ht=oe(92310),kt=oe.n(ht),ze=oe(80962),ee=oe(57259),ne=oe(79545),ge=oe(68550),ue=oe(17928),me=oe(7711),Se=oe(36994),Ne={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},ke=Ne,Te=oe(91735),We=function(ft){(0,ue.Z)(Ge,ft);var ct=(0,me.Z)(Ge);function Ge(){var Ae;(0,ne.Z)(this,Ge);for(var xe=arguments.length,je=new Array(xe),Qe=0;Qe<xe;Qe++)je[Qe]=arguments[Qe];return Ae=ct.call.apply(ct,[this].concat(je)),Ae.state={goInputText:""},Ae.getValidValue=function(){var Oe=Ae.state.goInputText;return!Oe||Number.isNaN(Oe)?void 0:Number(Oe)},Ae.buildOptionText=function(Oe){return"".concat(Oe," ").concat(Ae.props.locale.items_per_page)},Ae.changeSize=function(Oe){Ae.props.changeSize(Number(Oe))},Ae.handleChange=function(Oe){Ae.setState({goInputText:Oe.target.value})},Ae.handleBlur=function(Oe){var xt=Ae.props,hn=xt.goButton,Pn=xt.quickGo,wt=xt.rootPrefixCls,nn=Ae.state.goInputText;hn||nn===""||(Ae.setState({goInputText:""}),!(Oe.relatedTarget&&(Oe.relatedTarget.className.indexOf("".concat(wt,"-item-link"))>=0||Oe.relatedTarget.className.indexOf("".concat(wt,"-item"))>=0))&&Pn(Ae.getValidValue()))},Ae.go=function(Oe){var xt=Ae.state.goInputText;xt!==""&&(Oe.keyCode===ke.ENTER||Oe.type==="click")&&(Ae.setState({goInputText:""}),Ae.props.quickGo(Ae.getValidValue()))},Ae}return(0,ge.Z)(Ge,[{key:"getPageSizeOptions",value:function(){var xe=this.props,je=xe.pageSize,Qe=xe.pageSizeOptions;return Qe.some(function(Oe){return Oe.toString()===je.toString()})?Qe:Qe.concat([je.toString()]).sort(function(Oe,xt){var hn=Number.isNaN(Number(Oe))?0:Number(Oe),Pn=Number.isNaN(Number(xt))?0:Number(xt);return hn-Pn})}},{key:"render",value:function(){var xe=this,je=this.props,Qe=je.pageSize,Oe=je.locale,xt=je.rootPrefixCls,hn=je.changeSize,Pn=je.quickGo,wt=je.goButton,nn=je.selectComponentClass,Mn=je.buildOptionText,Zn=je.selectPrefixCls,li=je.disabled,xi=this.state.goInputText,Mi="".concat(xt,"-options"),Si=nn,Ri=null,lr=null,dr=null;if(!hn&&!Pn)return null;var ur=this.getPageSizeOptions();if(hn&&Si){var Sr=ur.map(function(Wr,Gi){return Ce.createElement(Si.Option,{key:Gi,value:Wr.toString()},(Mn||xe.buildOptionText)(Wr))});Ri=Ce.createElement(Si,{disabled:li,prefixCls:Zn,showSearch:!1,className:"".concat(Mi,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Qe||ur[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Gi){return Gi.parentNode},"aria-label":Oe.page_size,defaultOpen:!1},Sr)}return Pn&&(wt&&(dr=typeof wt=="boolean"?Ce.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:li,className:"".concat(Mi,"-quick-jumper-button")},Oe.jump_to_confirm):Ce.createElement("span",{onClick:this.go,onKeyUp:this.go},wt)),lr=Ce.createElement("div",{className:"".concat(Mi,"-quick-jumper")},Oe.jump_to,Ce.createElement("input",{disabled:li,type:"text",value:xi,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Oe.page}),Oe.page,dr)),Ce.createElement("li",{className:"".concat(Mi)},Ri,lr)}}]),Ge}(Ce.Component);We.defaultProps={pageSizeOptions:["10","20","50","100"]};var $e=We,st=function(ct){var Ge,Ae=ct.rootPrefixCls,xe=ct.page,je=ct.active,Qe=ct.className,Oe=ct.showTitle,xt=ct.onClick,hn=ct.onKeyPress,Pn=ct.itemRender,wt="".concat(Ae,"-item"),nn=kt()(wt,"".concat(wt,"-").concat(xe),(Ge={},(0,ze.Z)(Ge,"".concat(wt,"-active"),je),(0,ze.Z)(Ge,"".concat(wt,"-disabled"),!xe),(0,ze.Z)(Ge,ct.className,Qe),Ge)),Mn=function(){xt(xe)},Zn=function(Mi){hn(Mi,xt,xe)},li=Pn(xe,"page",Ce.createElement("a",{rel:"nofollow"},xe));return li?Ce.createElement("li",{title:Oe?xe.toString():null,className:nn,onClick:Mn,onKeyPress:Zn,tabIndex:0},li):null},ut=st;function Mt(){}function nt(ft){var ct=Number(ft);return typeof ct=="number"&&!Number.isNaN(ct)&&isFinite(ct)&&Math.floor(ct)===ct}var $t=function(ct,Ge,Ae){return Ae};function Pt(ft,ct,Ge){var Ae=typeof ft=="undefined"?ct.pageSize:ft;return Math.floor((Ge.total-1)/Ae)+1}var dn=function(ft){(0,ue.Z)(Ge,ft);var ct=(0,me.Z)(Ge);function Ge(Ae){var xe;(0,ne.Z)(this,Ge),xe=ct.call(this,Ae),xe.paginationNode=Ce.createRef(),xe.getJumpPrevPage=function(){return Math.max(1,xe.state.current-(xe.props.showLessItems?3:5))},xe.getJumpNextPage=function(){return Math.min(Pt(void 0,xe.state,xe.props),xe.state.current+(xe.props.showLessItems?3:5))},xe.getItemIcon=function(hn,Pn){var wt=xe.props.prefixCls,nn=hn||Ce.createElement("button",{type:"button","aria-label":Pn,className:"".concat(wt,"-item-link")});return typeof hn=="function"&&(nn=Ce.createElement(hn,(0,ee.Z)({},xe.props))),nn},xe.isValid=function(hn){var Pn=xe.props.total;return nt(hn)&&hn!==xe.state.current&&nt(Pn)&&Pn>0},xe.shouldDisplayQuickJumper=function(){var hn=xe.props,Pn=hn.showQuickJumper,wt=hn.total,nn=xe.state.pageSize;return wt<=nn?!1:Pn},xe.handleKeyDown=function(hn){(hn.keyCode===ke.ARROW_UP||hn.keyCode===ke.ARROW_DOWN)&&hn.preventDefault()},xe.handleKeyUp=function(hn){var Pn=xe.getValidValue(hn),wt=xe.state.currentInputValue;Pn!==wt&&xe.setState({currentInputValue:Pn}),hn.keyCode===ke.ENTER?xe.handleChange(Pn):hn.keyCode===ke.ARROW_UP?xe.handleChange(Pn-1):hn.keyCode===ke.ARROW_DOWN&&xe.handleChange(Pn+1)},xe.handleBlur=function(hn){var Pn=xe.getValidValue(hn);xe.handleChange(Pn)},xe.changePageSize=function(hn){var Pn=xe.state.current,wt=Pt(hn,xe.state,xe.props);Pn=Pn>wt?wt:Pn,wt===0&&(Pn=xe.state.current),typeof hn=="number"&&("pageSize"in xe.props||xe.setState({pageSize:hn}),"current"in xe.props||xe.setState({current:Pn,currentInputValue:Pn})),xe.props.onShowSizeChange(Pn,hn),"onChange"in xe.props&&xe.props.onChange&&xe.props.onChange(Pn,hn)},xe.handleChange=function(hn){var Pn=xe.props,wt=Pn.disabled,nn=Pn.onChange,Mn=xe.state,Zn=Mn.pageSize,li=Mn.current,xi=Mn.currentInputValue;if(xe.isValid(hn)&&!wt){var Mi=Pt(void 0,xe.state,xe.props),Si=hn;return hn>Mi?Si=Mi:hn<1&&(Si=1),"current"in xe.props||xe.setState({current:Si}),Si!==xi&&xe.setState({currentInputValue:Si}),nn(Si,Zn),Si}return li},xe.prev=function(){xe.hasPrev()&&xe.handleChange(xe.state.current-1)},xe.next=function(){xe.hasNext()&&xe.handleChange(xe.state.current+1)},xe.jumpPrev=function(){xe.handleChange(xe.getJumpPrevPage())},xe.jumpNext=function(){xe.handleChange(xe.getJumpNextPage())},xe.hasPrev=function(){return xe.state.current>1},xe.hasNext=function(){return xe.state.current<Pt(void 0,xe.state,xe.props)},xe.runIfEnter=function(hn,Pn){if(hn.key==="Enter"||hn.charCode===13){for(var wt=arguments.length,nn=new Array(wt>2?wt-2:0),Mn=2;Mn<wt;Mn++)nn[Mn-2]=arguments[Mn];Pn.apply(void 0,nn)}},xe.runIfEnterPrev=function(hn){xe.runIfEnter(hn,xe.prev)},xe.runIfEnterNext=function(hn){xe.runIfEnter(hn,xe.next)},xe.runIfEnterJumpPrev=function(hn){xe.runIfEnter(hn,xe.jumpPrev)},xe.runIfEnterJumpNext=function(hn){xe.runIfEnter(hn,xe.jumpNext)},xe.handleGoTO=function(hn){(hn.keyCode===ke.ENTER||hn.type==="click")&&xe.handleChange(xe.state.currentInputValue)},xe.renderPrev=function(hn){var Pn=xe.props,wt=Pn.prevIcon,nn=Pn.itemRender,Mn=nn(hn,"prev",xe.getItemIcon(wt,"prev page")),Zn=!xe.hasPrev();return(0,Ce.isValidElement)(Mn)?(0,Ce.cloneElement)(Mn,{disabled:Zn}):Mn},xe.renderNext=function(hn){var Pn=xe.props,wt=Pn.nextIcon,nn=Pn.itemRender,Mn=nn(hn,"next",xe.getItemIcon(wt,"next page")),Zn=!xe.hasNext();return(0,Ce.isValidElement)(Mn)?(0,Ce.cloneElement)(Mn,{disabled:Zn}):Mn};var je=Ae.onChange!==Mt,Qe="current"in Ae;Qe&&!je&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Oe=Ae.defaultCurrent;"current"in Ae&&(Oe=Ae.current);var xt=Ae.defaultPageSize;return"pageSize"in Ae&&(xt=Ae.pageSize),Oe=Math.min(Oe,Pt(xt,void 0,Ae)),xe.state={current:Oe,currentInputValue:Oe,pageSize:xt},xe}return(0,ge.Z)(Ge,[{key:"componentDidUpdate",value:function(xe,je){var Qe=this.props.prefixCls;if(je.current!==this.state.current&&this.paginationNode.current){var Oe=this.paginationNode.current.querySelector(".".concat(Qe,"-item-").concat(je.current));if(Oe&&document.activeElement===Oe){var xt;Oe==null||(xt=Oe.blur)===null||xt===void 0||xt.call(Oe)}}}},{key:"getValidValue",value:function(xe){var je=xe.target.value,Qe=Pt(void 0,this.state,this.props),Oe=this.state.currentInputValue,xt;return je===""?xt=je:Number.isNaN(Number(je))?xt=Oe:je>=Qe?xt=Qe:xt=Number(je),xt}},{key:"getShowSizeChanger",value:function(){var xe=this.props,je=xe.showSizeChanger,Qe=xe.total,Oe=xe.totalBoundaryShowSizeChanger;return typeof je!="undefined"?je:Qe>Oe}},{key:"render",value:function(){var xe=this.props,je=xe.prefixCls,Qe=xe.className,Oe=xe.style,xt=xe.disabled,hn=xe.hideOnSinglePage,Pn=xe.total,wt=xe.locale,nn=xe.showQuickJumper,Mn=xe.showLessItems,Zn=xe.showTitle,li=xe.showTotal,xi=xe.simple,Mi=xe.itemRender,Si=xe.showPrevNextJumpers,Ri=xe.jumpPrevIcon,lr=xe.jumpNextIcon,dr=xe.selectComponentClass,ur=xe.selectPrefixCls,Sr=xe.pageSizeOptions,Wr=this.state,Gi=Wr.current,Zr=Wr.pageSize,Yi=Wr.currentInputValue;if(hn===!0&&Pn<=Zr)return null;var Ue=Pt(void 0,this.state,this.props),no=[],pr=null,fo=null,Fo=null,Vo=null,Io=null,Oi=nn&&nn.goButton,on=Mn?1:2,ln=Gi-1>0?Gi-1:0,qt=Gi+1<Ue?Gi+1:Ue,Nt=(0,Se.Z)(this.props,{aria:!0,data:!0}),On=li&&Ce.createElement("li",{className:"".concat(je,"-total-text")},li(Pn,[Pn===0?0:(Gi-1)*Zr+1,Gi*Zr>Pn?Pn:Gi*Zr]));if(xi){Oi&&(typeof Oi=="boolean"?Io=Ce.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},wt.jump_to_confirm):Io=Ce.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Oi),Io=Ce.createElement("li",{title:Zn?"".concat(wt.jump_to).concat(Gi,"/").concat(Ue):null,className:"".concat(je,"-simple-pager")},Io));var Un=this.renderPrev(ln);return Ce.createElement("ul",(0,se.Z)({className:kt()(je,"".concat(je,"-simple"),(0,ze.Z)({},"".concat(je,"-disabled"),xt),Qe),style:Oe,ref:this.paginationNode},Nt),On,Un?Ce.createElement("li",{title:Zn?wt.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:kt()("".concat(je,"-prev"),(0,ze.Z)({},"".concat(je,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Un):null,Ce.createElement("li",{title:Zn?"".concat(Gi,"/").concat(Ue):null,className:"".concat(je,"-simple-pager")},Ce.createElement("input",{type:"text",value:Yi,disabled:xt,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),Ce.createElement("span",{className:"".concat(je,"-slash")},"/"),Ue),Ce.createElement("li",{title:Zn?wt.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:kt()("".concat(je,"-next"),(0,ze.Z)({},"".concat(je,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(qt)),Io)}if(Ue<=3+on*2){var Vt={locale:wt,rootPrefixCls:je,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Zn,itemRender:Mi};Ue||no.push(Ce.createElement(ut,(0,se.Z)({},Vt,{key:"noPager",page:1,className:"".concat(je,"-item-disabled")})));for(var yt=1;yt<=Ue;yt+=1){var In=Gi===yt;no.push(Ce.createElement(ut,(0,se.Z)({},Vt,{key:yt,page:yt,active:In})))}}else{var zn=Mn?wt.prev_3:wt.prev_5,mi=Mn?wt.next_3:wt.next_5,Rn=Mi(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Ri,"prev page")),bt=Mi(this.getJumpNextPage(),"jump-next",this.getItemIcon(lr,"next page"));Si&&(pr=Rn?Ce.createElement("li",{title:Zn?zn:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:kt()("".concat(je,"-jump-prev"),(0,ze.Z)({},"".concat(je,"-jump-prev-custom-icon"),!!Ri))},Rn):null,fo=bt?Ce.createElement("li",{title:Zn?mi:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:kt()("".concat(je,"-jump-next"),(0,ze.Z)({},"".concat(je,"-jump-next-custom-icon"),!!lr))},bt):null),Vo=Ce.createElement(ut,{locale:wt,last:!0,rootPrefixCls:je,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Ue,page:Ue,active:!1,showTitle:Zn,itemRender:Mi}),Fo=Ce.createElement(ut,{locale:wt,rootPrefixCls:je,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Zn,itemRender:Mi});var Ut=Math.max(1,Gi-on),Ln=Math.min(Gi+on,Ue);Gi-1<=on&&(Ln=1+on*2),Ue-Gi<=on&&(Ut=Ue-on*2);for(var ni=Ut;ni<=Ln;ni+=1){var Gt=Gi===ni;no.push(Ce.createElement(ut,{locale:wt,rootPrefixCls:je,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ni,page:ni,active:Gt,showTitle:Zn,itemRender:Mi}))}Gi-1>=on*2&&Gi!==3&&(no[0]=(0,Ce.cloneElement)(no[0],{className:"".concat(je,"-item-after-jump-prev")}),no.unshift(pr)),Ue-Gi>=on*2&&Gi!==Ue-2&&(no[no.length-1]=(0,Ce.cloneElement)(no[no.length-1],{className:"".concat(je,"-item-before-jump-next")}),no.push(fo)),Ut!==1&&no.unshift(Fo),Ln!==Ue&&no.push(Vo)}var yn=!this.hasPrev()||!Ue,Qt=!this.hasNext()||!Ue,un=this.renderPrev(ln),wn=this.renderNext(qt);return Ce.createElement("ul",(0,se.Z)({className:kt()(je,Qe,(0,ze.Z)({},"".concat(je,"-disabled"),xt)),style:Oe,ref:this.paginationNode},Nt),On,un?Ce.createElement("li",{title:Zn?wt.prev_page:null,onClick:this.prev,tabIndex:yn?null:0,onKeyPress:this.runIfEnterPrev,className:kt()("".concat(je,"-prev"),(0,ze.Z)({},"".concat(je,"-disabled"),yn)),"aria-disabled":yn},un):null,no,wn?Ce.createElement("li",{title:Zn?wt.next_page:null,onClick:this.next,tabIndex:Qt?null:0,onKeyPress:this.runIfEnterNext,className:kt()("".concat(je,"-next"),(0,ze.Z)({},"".concat(je,"-disabled"),Qt)),"aria-disabled":Qt},wn):null,Ce.createElement($e,{disabled:xt,locale:wt,rootPrefixCls:je,selectComponentClass:dr,selectPrefixCls:ur,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Gi,pageSize:Zr,pageSizeOptions:Sr,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Oi}))}}],[{key:"getDerivedStateFromProps",value:function(xe,je){var Qe={};if("current"in xe&&(Qe.current=xe.current,xe.current!==je.current&&(Qe.currentInputValue=Qe.current)),"pageSize"in xe&&xe.pageSize!==je.pageSize){var Oe=je.current,xt=Pt(xe.pageSize,je,xe);Oe=Oe>xt?xt:Oe,"current"in xe||(Qe.current=Oe,Qe.currentInputValue=Oe),Qe.pageSize=xe.pageSize}return Qe}}]),Ge}(Ce.Component);dn.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Mt,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Mt,locale:Te.Z,style:{},itemRender:$t,totalBoundaryShowSizeChanger:50};var zt=dn,Xt=oe(22075),fn=oe(36355),an=oe(19716),it=oe(8628),Ve=oe(9763),gt=oe(57809);const Bt=ft=>Ce.createElement(gt.default,Object.assign({},ft,{showSearch:!0,size:"small"})),sn=ft=>Ce.createElement(gt.default,Object.assign({},ft,{showSearch:!0,size:"middle"}));Bt.Option=gt.default.Option,sn.Option=gt.default.Option;var It=oe(9937),en=oe(17313),En=oe(83116),ei=oe(37613);const An=ft=>{const{componentCls:ct}=ft;return{[`${ct}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${ct}-item-link`]:{color:ft.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${ct}-item-link`]:{color:ft.colorTextDisabled,cursor:"not-allowed"}}},[`&${ct}-disabled`]:{cursor:"not-allowed",[`${ct}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:ft.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:ft.colorBorder,backgroundColor:ft.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:ft.itemActiveBgDisabled},a:{color:ft.itemActiveColorDisabled}}},[`${ct}-item-link`]:{color:ft.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${ct}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${ct}-simple-pager`]:{color:ft.colorTextDisabled},[`${ct}-jump-prev, ${ct}-jump-next`]:{[`${ct}-item-link-icon`]:{opacity:0},[`${ct}-item-ellipsis`]:{opacity:1}}},[`&${ct}-simple`]:{[`${ct}-prev, ${ct}-next`]:{[`&${ct}-disabled ${ct}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Kn=ft=>{const{componentCls:ct}=ft;return{[`&${ct}-mini ${ct}-total-text, &${ct}-mini ${ct}-simple-pager`]:{height:ft.itemSizeSM,lineHeight:`${ft.itemSizeSM}px`},[`&${ct}-mini ${ct}-item`]:{minWidth:ft.itemSizeSM,height:ft.itemSizeSM,margin:0,lineHeight:`${ft.itemSizeSM-2}px`},[`&${ct}-mini:not(${ct}-disabled) ${ct}-item:not(${ct}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:ft.colorBgTextHover},"&:active":{backgroundColor:ft.colorBgTextActive}},[`&${ct}-mini ${ct}-prev, &${ct}-mini ${ct}-next`]:{minWidth:ft.itemSizeSM,height:ft.itemSizeSM,margin:0,lineHeight:`${ft.itemSizeSM}px`},[`&${ct}-mini:not(${ct}-disabled)`]:{[`${ct}-prev, ${ct}-next`]:{[`&:hover ${ct}-item-link`]:{backgroundColor:ft.colorBgTextHover},[`&:active ${ct}-item-link`]:{backgroundColor:ft.colorBgTextActive},[`&${ct}-disabled:hover ${ct}-item-link`]:{backgroundColor:"transparent"}}},[`
&${ct}-mini ${ct}-prev ${ct}-item-link,
&${ct}-mini ${ct}-next ${ct}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:ft.itemSizeSM,lineHeight:`${ft.itemSizeSM}px`}},[`&${ct}-mini ${ct}-jump-prev, &${ct}-mini ${ct}-jump-next`]:{height:ft.itemSizeSM,marginInlineEnd:0,lineHeight:`${ft.itemSizeSM}px`},[`&${ct}-mini ${ct}-options`]:{marginInlineStart:ft.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:ft.miniOptionsSizeChangerTop},"&-quick-jumper":{height:ft.itemSizeSM,lineHeight:`${ft.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,It.x0)(ft)),{width:ft.paginationMiniQuickJumperInputWidth,height:ft.controlHeightSM})}}}},jt=ft=>{const{componentCls:ct}=ft;return{[`
&${ct}-simple ${ct}-prev,
&${ct}-simple ${ct}-next
`]:{height:ft.itemSizeSM,lineHeight:`${ft.itemSizeSM}px`,verticalAlign:"top",[`${ct}-item-link`]:{height:ft.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:ft.colorBgTextHover},"&:active":{backgroundColor:ft.colorBgTextActive},"&::after":{height:ft.itemSizeSM,lineHeight:`${ft.itemSizeSM}px`}}},[`&${ct}-simple ${ct}-simple-pager`]:{display:"inline-block",height:ft.itemSizeSM,marginInlineEnd:ft.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:ft.marginXS,padding:`0 ${ft.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:ft.itemInputBg,border:`${ft.lineWidth}px ${ft.lineType} ${ft.colorBorder}`,borderRadius:ft.borderRadius,outline:"none",transition:`border-color ${ft.motionDurationMid}`,color:"inherit","&:hover":{borderColor:ft.colorPrimary},"&:focus":{borderColor:ft.colorPrimaryHover,boxShadow:`${ft.inputOutlineOffset}px 0 ${ft.controlOutlineWidth}px ${ft.controlOutline}`},"&[disabled]":{color:ft.colorTextDisabled,backgroundColor:ft.colorBgContainerDisabled,borderColor:ft.colorBorder,cursor:"not-allowed"}}}}},Nn=ft=>{const{componentCls:ct}=ft;return{[`${ct}-jump-prev, ${ct}-jump-next`]:{outline:0,[`${ct}-item-container`]:{position:"relative",[`${ct}-item-link-icon`]:{color:ft.colorPrimary,fontSize:ft.fontSizeSM,opacity:0,transition:`all ${ft.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${ct}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:ft.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:ft.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:ft.paginationEllipsisTextIndent,opacity:1,transition:`all ${ft.motionDurationMid}`}},"&:hover":{[`${ct}-item-link-icon`]:{opacity:1},[`${ct}-item-ellipsis`]:{opacity:0}}},[`
${ct}-prev,
${ct}-jump-prev,
${ct}-jump-next
`]:{marginInlineEnd:ft.marginXS},[`
${ct}-prev,
${ct}-next,
${ct}-jump-prev,
${ct}-jump-next
`]:{display:"inline-block",minWidth:ft.itemSize,height:ft.itemSize,color:ft.colorText,fontFamily:ft.fontFamily,lineHeight:`${ft.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:ft.borderRadius,cursor:"pointer",transition:`all ${ft.motionDurationMid}`},[`${ct}-prev, ${ct}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:ft.colorText,cursor:"pointer",userSelect:"none"},[`${ct}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:ft.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${ft.lineWidth}px ${ft.lineType} transparent`,borderRadius:ft.borderRadius,outline:"none",transition:`all ${ft.motionDurationMid}`},[`&:hover ${ct}-item-link`]:{backgroundColor:ft.colorBgTextHover},[`&:active ${ct}-item-link`]:{backgroundColor:ft.colorBgTextActive},[`&${ct}-disabled:hover`]:{[`${ct}-item-link`]:{backgroundColor:"transparent"}}},[`${ct}-slash`]:{marginInlineEnd:ft.paginationSlashMarginInlineEnd,marginInlineStart:ft.paginationSlashMarginInlineStart},[`${ct}-options`]:{display:"inline-block",marginInlineStart:ft.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:ft.controlHeight,marginInlineStart:ft.marginXS,lineHeight:`${ft.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,It.ik)(ft)),{width:ft.controlHeightLG*1.25,height:ft.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:ft.marginXS,marginInlineEnd:ft.marginXS})}}}},Gn=ft=>{const{componentCls:ct}=ft;return{[`${ct}-item`]:{display:"inline-block",minWidth:ft.itemSize,height:ft.itemSize,marginInlineEnd:ft.marginXS,fontFamily:ft.fontFamily,lineHeight:`${ft.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${ft.lineWidth}px ${ft.lineType} transparent`,borderRadius:ft.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${ft.paginationItemPaddingInline}px`,color:ft.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${ct}-item-active)`]:{"&:hover":{transition:`all ${ft.motionDurationMid}`,backgroundColor:ft.colorBgTextHover},"&:active":{backgroundColor:ft.colorBgTextActive}},"&-active":{fontWeight:ft.fontWeightStrong,backgroundColor:ft.itemActiveBg,borderColor:ft.colorPrimary,a:{color:ft.colorPrimary},"&:hover":{borderColor:ft.colorPrimaryHover},"&:hover a":{color:ft.colorPrimaryHover}}}}},ii=ft=>{const{componentCls:ct}=ft;return{[ct]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,en.Wf)(ft)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${ct}-total-text`]:{display:"inline-block",height:ft.itemSize,marginInlineEnd:ft.marginXS,lineHeight:`${ft.itemSize-2}px`,verticalAlign:"middle"}}),Gn(ft)),Nn(ft)),jt(ft)),Kn(ft)),An(ft)),{[`@media only screen and (max-width: ${ft.screenLG}px)`]:{[`${ct}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${ft.screenSM}px)`]:{[`${ct}-options`]:{display:"none"}}}),[`&${ft.componentCls}-rtl`]:{direction:"rtl"}}},Sn=ft=>{const{componentCls:ct}=ft;return{[`${ct}${ct}-disabled:not(${ct}-mini)`]:{"&, &:hover":{[`${ct}-item-link`]:{borderColor:ft.colorBorder}},"&:focus-visible":{[`${ct}-item-link`]:{borderColor:ft.colorBorder}},[`${ct}-item, ${ct}-item-link`]:{backgroundColor:ft.colorBgContainerDisabled,borderColor:ft.colorBorder,[`&:hover:not(${ct}-item-active)`]:{backgroundColor:ft.colorBgContainerDisabled,borderColor:ft.colorBorder,a:{color:ft.colorTextDisabled}},[`&${ct}-item-active`]:{backgroundColor:ft.itemActiveBgDisabled}},[`${ct}-prev, ${ct}-next`]:{"&:hover button":{backgroundColor:ft.colorBgContainerDisabled,borderColor:ft.colorBorder,color:ft.colorTextDisabled},[`${ct}-item-link`]:{backgroundColor:ft.colorBgContainerDisabled,borderColor:ft.colorBorder}}},[`${ct}:not(${ct}-mini)`]:{[`${ct}-prev, ${ct}-next`]:{"&:hover button":{borderColor:ft.colorPrimaryHover,backgroundColor:ft.itemBg},[`${ct}-item-link`]:{backgroundColor:ft.itemLinkBg,borderColor:ft.colorBorder},[`&:hover ${ct}-item-link`]:{borderColor:ft.colorPrimary,backgroundColor:ft.itemBg,color:ft.colorPrimary},[`&${ct}-disabled`]:{[`${ct}-item-link`]:{borderColor:ft.colorBorder,color:ft.colorTextDisabled}}},[`${ct}-item`]:{backgroundColor:ft.itemBg,border:`${ft.lineWidth}px ${ft.lineType} ${ft.colorBorder}`,[`&:hover:not(${ct}-item-active)`]:{borderColor:ft.colorPrimary,backgroundColor:ft.itemBg,a:{color:ft.colorPrimary}},"&-active":{borderColor:ft.colorPrimary}}}}},Yt=ft=>{const{componentCls:ct}=ft;return{[`${ct}:not(${ct}-disabled)`]:{[`${ct}-item`]:Object.assign({},(0,en.Qy)(ft)),[`${ct}-jump-prev, ${ct}-jump-next`]:{"&:focus-visible":Object.assign({[`${ct}-item-link-icon`]:{opacity:1},[`${ct}-item-ellipsis`]:{opacity:0}},(0,en.oN)(ft))},[`${ct}-prev, ${ct}-next`]:{[`&:focus-visible ${ct}-item-link`]:Object.assign({},(0,en.oN)(ft))}}}};var Zt=(0,En.Z)("Pagination",ft=>{const ct=(0,ei.TS)(ft,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:ft.marginXXS/2,paginationMiniQuickJumperInputWidth:ft.controlHeightLG*1.1,paginationItemPaddingInline:ft.marginXXS*1.5,paginationEllipsisLetterSpacing:ft.marginXXS/2,paginationSlashMarginInlineStart:ft.marginXXS,paginationSlashMarginInlineEnd:ft.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,It.e5)(ft),(0,It.TM)(ft));return[ii(ct),Yt(ct),ft.wireframe&&Sn(ct)]},ft=>({itemBg:ft.colorBgContainer,itemSize:ft.controlHeight,itemSizeSM:ft.controlHeightSM,itemActiveBg:ft.colorBgContainer,itemLinkBg:ft.colorBgContainer,itemActiveColorDisabled:ft.colorTextDisabled,itemActiveBgDisabled:ft.controlItemBgActiveDisabled,itemInputBg:ft.colorBgContainer,miniOptionsSizeChangerTop:0})),St=function(ft,ct){var Ge={};for(var Ae in ft)Object.prototype.hasOwnProperty.call(ft,Ae)&&ct.indexOf(Ae)<0&&(Ge[Ae]=ft[Ae]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,Ae=Object.getOwnPropertySymbols(ft);xe<Ae.length;xe++)ct.indexOf(Ae[xe])<0&&Object.prototype.propertyIsEnumerable.call(ft,Ae[xe])&&(Ge[Ae[xe]]=ft[Ae[xe]]);return Ge},Ft=ft=>{const{prefixCls:ct,selectPrefixCls:Ge,className:Ae,rootClassName:xe,style:je,size:Qe,locale:Oe,selectComponentClass:xt,responsive:hn,showSizeChanger:Pn}=ft,wt=St(ft,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:nn}=(0,it.Z)(hn),{getPrefixCls:Mn,direction:Zn,pagination:li={}}=Ce.useContext(fn.E_),xi=Mn("pagination",ct),[Mi,Si]=Zt(xi),Ri=Pn!=null?Pn:li.showSizeChanger,lr=Ce.useMemo(()=>{const Ue=Ce.createElement("span",{className:`${xi}-item-ellipsis`},"\u2022\u2022\u2022"),no=Ce.createElement("button",{className:`${xi}-item-link`,type:"button",tabIndex:-1},Zn==="rtl"?Ce.createElement(tt.Z,null):Ce.createElement(Ye.Z,null)),pr=Ce.createElement("button",{className:`${xi}-item-link`,type:"button",tabIndex:-1},Zn==="rtl"?Ce.createElement(Ye.Z,null):Ce.createElement(tt.Z,null)),fo=Ce.createElement("a",{className:`${xi}-item-link`},Ce.createElement("div",{className:`${xi}-item-container`},Zn==="rtl"?Ce.createElement(Je.Z,{className:`${xi}-item-link-icon`}):Ce.createElement(et,{className:`${xi}-item-link-icon`}),Ue)),Fo=Ce.createElement("a",{className:`${xi}-item-link`},Ce.createElement("div",{className:`${xi}-item-container`},Zn==="rtl"?Ce.createElement(et,{className:`${xi}-item-link-icon`}):Ce.createElement(Je.Z,{className:`${xi}-item-link-icon`}),Ue));return{prevIcon:no,nextIcon:pr,jumpPrevIcon:fo,jumpNextIcon:Fo}},[Zn,xi]),[dr]=(0,Ve.Z)("Pagination",Xt.Z),ur=Object.assign(Object.assign({},dr),Oe),Sr=(0,an.Z)(Qe),Wr=Sr==="small"||!!(nn&&!Sr&&hn),Gi=Mn("select",Ge),Zr=kt()({[`${xi}-mini`]:Wr,[`${xi}-rtl`]:Zn==="rtl"},li==null?void 0:li.className,Ae,xe,Si),Yi=Object.assign(Object.assign({},li==null?void 0:li.style),je);return Mi(Ce.createElement(zt,Object.assign({},lr,wt,{style:Yi,prefixCls:xi,selectPrefixCls:Gi,className:Zr,selectComponentClass:xt||(Wr?Bt:sn),locale:ur,showSizeChanger:Ri})))},Ot=Ft},93948:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return Pn}});var se=oe(59301),Ce=oe(79999),we=oe(10402),Ie=oe(33130),De=oe(72119),Ke=oe(92310),Ee=oe.n(Ke),et=oe(64002),Je=oe(36355),Ye=oe(5891),tt=oe(57259),ht=oe(19149),kt={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ze=function(){var nn=(0,se.useRef)([]),Mn=(0,se.useRef)(null);return(0,se.useEffect)(function(){var Zn=Date.now(),li=!1;nn.current.forEach(function(xi){if(xi){li=!0;var Mi=xi.style;Mi.transitionDuration=".3s, .3s, .3s, .06s",Mn.current&&Zn-Mn.current<100&&(Mi.transitionDuration="0s, 0s")}}),li&&(Mn.current=Date.now())}),nn.current},ee=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],ne=function(nn){var Mn=(0,tt.Z)((0,tt.Z)({},kt),nn),Zn=Mn.className,li=Mn.percent,xi=Mn.prefixCls,Mi=Mn.strokeColor,Si=Mn.strokeLinecap,Ri=Mn.strokeWidth,lr=Mn.style,dr=Mn.trailColor,ur=Mn.trailWidth,Sr=Mn.transition,Wr=(0,ht.Z)(Mn,ee);delete Wr.gapPosition;var Gi=Array.isArray(li)?li:[li],Zr=Array.isArray(Mi)?Mi:[Mi],Yi=ze(),Ue=Ri/2,no=100-Ri/2,pr="M ".concat(Si==="round"?Ue:0,",").concat(Ue,`
L `).concat(Si==="round"?no:100,",").concat(Ue),fo="0 0 100 ".concat(Ri),Fo=0;return se.createElement("svg",(0,Ye.Z)({className:Ee()("".concat(xi,"-line"),Zn),viewBox:fo,preserveAspectRatio:"none",style:lr},Wr),se.createElement("path",{className:"".concat(xi,"-line-trail"),d:pr,strokeLinecap:Si,stroke:dr,strokeWidth:ur||Ri,fillOpacity:"0"}),Gi.map(function(Vo,Io){var Oi=1;switch(Si){case"round":Oi=1-Ri/100;break;case"square":Oi=1-Ri/2/100;break;default:Oi=1;break}var on={strokeDasharray:"".concat(Vo*Oi,"px, 100px"),strokeDashoffset:"-".concat(Fo,"px"),transition:Sr||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},ln=Zr[Io]||Zr[Zr.length-1];return Fo+=Vo,se.createElement("path",{key:Io,className:"".concat(xi,"-line-path"),d:pr,strokeLinecap:Si,stroke:ln,strokeWidth:Ri,fillOpacity:"0",ref:function(Nt){Yi[Io]=Nt},style:on})}))},ge=ne,ue=oe(80665),me=oe(29043),Se=oe(87746),Ne=0,ke=(0,Se.Z)();function Te(){var wt;return ke?(wt=Ne,Ne+=1):wt="TEST_OR_SSR",wt}var We=function(wt){var nn=se.useState(),Mn=(0,me.Z)(nn,2),Zn=Mn[0],li=Mn[1];return se.useEffect(function(){li("rc_progress_".concat(Te()))},[]),wt||Zn},$e=function(nn){var Mn=nn.bg,Zn=nn.children;return se.createElement("div",{style:{width:"100%",height:"100%",background:Mn}},Zn)};function st(wt,nn){return Object.keys(wt).map(function(Mn){var Zn=parseFloat(Mn),li="".concat(Math.floor(Zn*nn),"%");return"".concat(wt[Mn]," ").concat(li)})}var ut=se.forwardRef(function(wt,nn){var Mn=wt.prefixCls,Zn=wt.color,li=wt.gradientId,xi=wt.radius,Mi=wt.style,Si=wt.ptg,Ri=wt.strokeLinecap,lr=wt.strokeWidth,dr=wt.size,ur=wt.gapDegree,Sr=Zn&&(0,ue.Z)(Zn)==="object",Wr=Sr?"#FFF":void 0,Gi=dr/2,Zr=se.createElement("circle",{className:"".concat(Mn,"-circle-path"),r:xi,cx:Gi,cy:Gi,stroke:Wr,strokeLinecap:Ri,strokeWidth:lr,opacity:Si===0?0:1,style:Mi,ref:nn});if(!Sr)return Zr;var Yi="".concat(li,"-conic"),Ue=ur?"".concat(180+ur/2,"deg"):"0deg",no=st(Zn,(360-ur)/360),pr=st(Zn,1),fo="conic-gradient(from ".concat(Ue,", ").concat(no.join(", "),")"),Fo="linear-gradient(to ".concat(ur?"bottom":"top",", ").concat(pr.join(", "),")");return se.createElement(se.Fragment,null,se.createElement("mask",{id:Yi},Zr),se.createElement("foreignObject",{x:0,y:0,width:dr,height:dr,mask:"url(#".concat(Yi,")")},se.createElement($e,{bg:Fo},se.createElement($e,{bg:fo}))))}),Mt=ut,nt=100,$t=function(nn,Mn,Zn,li,xi,Mi,Si,Ri,lr,dr){var ur=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Sr=Zn/100*360*((360-Mi)/360),Wr=Mi===0?0:{bottom:0,top:180,left:90,right:-90}[Si],Gi=(100-li)/100*Mn;lr==="round"&&li!==100&&(Gi+=dr/2,Gi>=Mn&&(Gi=Mn-.01));var Zr=nt/2;return{stroke:typeof Ri=="string"?Ri:void 0,strokeDasharray:"".concat(Mn,"px ").concat(nn),strokeDashoffset:Gi+ur,transform:"rotate(".concat(xi+Sr+Wr,"deg)"),transformOrigin:"".concat(Zr,"px ").concat(Zr,"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}},Pt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function dn(wt){var nn=wt!=null?wt:[];return Array.isArray(nn)?nn:[nn]}var zt=function(nn){var Mn=(0,tt.Z)((0,tt.Z)({},kt),nn),Zn=Mn.id,li=Mn.prefixCls,xi=Mn.steps,Mi=Mn.strokeWidth,Si=Mn.trailWidth,Ri=Mn.gapDegree,lr=Ri===void 0?0:Ri,dr=Mn.gapPosition,ur=Mn.trailColor,Sr=Mn.strokeLinecap,Wr=Mn.style,Gi=Mn.className,Zr=Mn.strokeColor,Yi=Mn.percent,Ue=(0,ht.Z)(Mn,Pt),no=nt/2,pr=We(Zn),fo="".concat(pr,"-gradient"),Fo=no-Mi/2,Vo=Math.PI*2*Fo,Io=lr>0?90+lr/2:-90,Oi=Vo*((360-lr)/360),on=(0,ue.Z)(xi)==="object"?xi:{count:xi,space:2},ln=on.count,qt=on.space,Nt=dn(Yi),On=dn(Zr),Un=On.find(function(bt){return bt&&(0,ue.Z)(bt)==="object"}),Vt=Un&&(0,ue.Z)(Un)==="object",yt=Vt?"butt":Sr,In=$t(Vo,Oi,0,100,Io,lr,dr,ur,yt,Mi),zn=ze(),mi=function(){var Ut=0;return Nt.map(function(Ln,ni){var Gt=On[ni]||On[On.length-1],yn=$t(Vo,Oi,Ut,Ln,Io,lr,dr,Gt,yt,Mi);return Ut+=Ln,se.createElement(Mt,{key:ni,color:Gt,ptg:Ln,radius:Fo,prefixCls:li,gradientId:fo,style:yn,strokeLinecap:yt,strokeWidth:Mi,gapDegree:lr,ref:function(un){zn[ni]=un},size:nt})}).reverse()},Rn=function(){var Ut=Math.round(ln*(Nt[0]/100)),Ln=100/ln,ni=0;return new Array(ln).fill(null).map(function(Gt,yn){var Qt=yn<=Ut-1?On[0]:ur,un=Qt&&(0,ue.Z)(Qt)==="object"?"url(#".concat(fo,")"):void 0,wn=$t(Vo,Oi,ni,Ln,Io,lr,dr,Qt,"butt",Mi,qt);return ni+=(Oi-wn.strokeDashoffset+qt)*100/Oi,se.createElement("circle",{key:yn,className:"".concat(li,"-circle-path"),r:Fo,cx:no,cy:no,stroke:un,strokeWidth:Mi,opacity:1,style:wn,ref:function(kn){zn[yn]=kn}})})};return se.createElement("svg",(0,Ye.Z)({className:Ee()("".concat(li,"-circle"),Gi),viewBox:"0 0 ".concat(nt," ").concat(nt),style:Wr,id:Zn,role:"presentation"},Ue),!ln&&se.createElement("circle",{className:"".concat(li,"-circle-trail"),r:Fo,cx:no,cy:no,stroke:ur,strokeLinecap:yt,strokeWidth:Si||Mi,style:In}),ln?Rn():mi())},Xt=zt,fn={Line:ge,Circle:Xt},an=oe(6848),it=oe(93398);function Ve(wt){return!wt||wt<0?0:wt>100?100:wt}function gt(wt){let{success:nn,successPercent:Mn}=wt,Zn=Mn;return nn&&"progress"in nn&&(Zn=nn.progress),nn&&"percent"in nn&&(Zn=nn.percent),Zn}const Bt=wt=>{let{percent:nn,success:Mn,successPercent:Zn}=wt;const li=Ve(gt({success:Mn,successPercent:Zn}));return[li,Ve(Ve(nn)-li)]},sn=wt=>{let{success:nn={},strokeColor:Mn}=wt;const{strokeColor:Zn}=nn;return[Zn||it.presetPrimaryColors.green,Mn||null]},It=(wt,nn,Mn)=>{var Zn,li,xi,Mi;let Si=-1,Ri=-1;if(nn==="step"){const lr=Mn.steps,dr=Mn.strokeWidth;typeof wt=="string"||typeof wt=="undefined"?(Si=wt==="small"?2:14,Ri=dr!=null?dr:8):typeof wt=="number"?[Si,Ri]=[wt,wt]:[Si=14,Ri=8]=wt,Si*=lr}else if(nn==="line"){const lr=Mn==null?void 0:Mn.strokeWidth;typeof wt=="string"||typeof wt=="undefined"?Ri=lr||(wt==="small"?6:8):typeof wt=="number"?[Si,Ri]=[wt,wt]:[Si=-1,Ri=8]=wt}else(nn==="circle"||nn==="dashboard")&&(typeof wt=="string"||typeof wt=="undefined"?[Si,Ri]=wt==="small"?[60,60]:[120,120]:typeof wt=="number"?[Si,Ri]=[wt,wt]:(Si=(li=(Zn=wt[0])!==null&&Zn!==void 0?Zn:wt[1])!==null&&li!==void 0?li:120,Ri=(Mi=(xi=wt[0])!==null&&xi!==void 0?xi:wt[1])!==null&&Mi!==void 0?Mi:120));return[Si,Ri]},en=3,En=wt=>en/wt*100;var An=wt=>{const{prefixCls:nn,trailColor:Mn=null,strokeLinecap:Zn="round",gapPosition:li,gapDegree:xi,width:Mi=120,type:Si,children:Ri,success:lr,size:dr=Mi}=wt,[ur,Sr]=It(dr,"circle");let{strokeWidth:Wr}=wt;Wr===void 0&&(Wr=Math.max(En(ur),6));const Gi={width:ur,height:Sr,fontSize:ur*.15+6},Zr=se.useMemo(()=>{if(xi||xi===0)return xi;if(Si==="dashboard")return 75},[xi,Si]),Yi=li||Si==="dashboard"&&"bottom"||void 0,Ue=Object.prototype.toString.call(wt.strokeColor)==="[object Object]",no=sn({success:lr,strokeColor:wt.strokeColor}),pr=Ee()(`${nn}-inner`,{[`${nn}-circle-gradient`]:Ue}),fo=se.createElement(Xt,{percent:Bt(wt),strokeWidth:Wr,trailWidth:Wr,strokeColor:no,strokeLinecap:Zn,trailColor:Mn,prefixCls:nn,gapDegree:Zr,gapPosition:Yi});return se.createElement("div",{className:pr,style:Gi},ur<=20?se.createElement(an.Z,{title:Ri},se.createElement("span",null,fo)):se.createElement(se.Fragment,null,fo,Ri))},Kn=function(wt,nn){var Mn={};for(var Zn in wt)Object.prototype.hasOwnProperty.call(wt,Zn)&&nn.indexOf(Zn)<0&&(Mn[Zn]=wt[Zn]);if(wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var li=0,Zn=Object.getOwnPropertySymbols(wt);li<Zn.length;li++)nn.indexOf(Zn[li])<0&&Object.prototype.propertyIsEnumerable.call(wt,Zn[li])&&(Mn[Zn[li]]=wt[Zn[li]]);return Mn};const jt=wt=>{let nn=[];return Object.keys(wt).forEach(Mn=>{const Zn=parseFloat(Mn.replace(/%/g,""));isNaN(Zn)||nn.push({key:Zn,value:wt[Mn]})}),nn=nn.sort((Mn,Zn)=>Mn.key-Zn.key),nn.map(Mn=>{let{key:Zn,value:li}=Mn;return`${li} ${Zn}%`}).join(", ")},Nn=(wt,nn)=>{const{from:Mn=it.presetPrimaryColors.blue,to:Zn=it.presetPrimaryColors.blue,direction:li=nn==="rtl"?"to left":"to right"}=wt,xi=Kn(wt,["from","to","direction"]);if(Object.keys(xi).length!==0){const Mi=jt(xi);return{backgroundImage:`linear-gradient(${li}, ${Mi})`}}return{backgroundImage:`linear-gradient(${li}, ${Mn}, ${Zn})`}};var ii=wt=>{const{prefixCls:nn,direction:Mn,percent:Zn,size:li,strokeWidth:xi,strokeColor:Mi,strokeLinecap:Si="round",children:Ri,trailColor:lr=null,success:dr}=wt,ur=Mi&&typeof Mi!="string"?Nn(Mi,Mn):{backgroundColor:Mi},Sr=Si==="square"||Si==="butt"?0:void 0,Wr={backgroundColor:lr||void 0,borderRadius:Sr},Gi=li!=null?li:[-1,xi||(li==="small"?6:8)],[Zr,Yi]=It(Gi,"line",{strokeWidth:xi}),Ue=Object.assign({width:`${Ve(Zn)}%`,height:Yi,borderRadius:Sr},ur),no=gt(wt),pr={width:`${Ve(no)}%`,height:Yi,borderRadius:Sr,backgroundColor:dr==null?void 0:dr.strokeColor},fo={width:Zr<0?"100%":Zr,height:Yi};return se.createElement(se.Fragment,null,se.createElement("div",{className:`${nn}-outer`,style:fo},se.createElement("div",{className:`${nn}-inner`,style:Wr},se.createElement("div",{className:`${nn}-bg`,style:Ue}),no!==void 0?se.createElement("div",{className:`${nn}-success-bg`,style:pr}):null)),Ri)},Yt=wt=>{const{size:nn,steps:Mn,percent:Zn=0,strokeWidth:li=8,strokeColor:xi,trailColor:Mi=null,prefixCls:Si,children:Ri}=wt,lr=Math.round(Mn*(Zn/100)),dr=nn==="small"?2:14,ur=nn!=null?nn:[dr,li],[Sr,Wr]=It(ur,"step",{steps:Mn,strokeWidth:li}),Gi=Sr/Mn,Zr=new Array(Mn);for(let Yi=0;Yi<Mn;Yi++){const Ue=Array.isArray(xi)?xi[Yi]:xi;Zr[Yi]=se.createElement("div",{key:Yi,className:Ee()(`${Si}-steps-item`,{[`${Si}-steps-item-active`]:Yi<=lr-1}),style:{backgroundColor:Yi<=lr-1?Ue:Mi,width:Gi,height:Wr}})}return se.createElement("div",{className:`${Si}-steps-outer`},Zr,Ri)},Zt=oe(9792),St=oe(17313),rt=oe(83116),Ft=oe(37613);const Ot=wt=>{const nn=wt?"100%":"-100%";return new Zt.Keyframes(`antProgress${wt?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${nn}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${nn}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},ft=wt=>{const{componentCls:nn,iconCls:Mn}=wt;return{[nn]:Object.assign(Object.assign({},(0,St.Wf)(wt)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:wt.fontSize,marginInlineEnd:wt.marginXS,marginBottom:wt.marginXS},[`${nn}-outer`]:{display:"inline-block",width:"100%"},[`&${nn}-show-info`]:{[`${nn}-outer`]:{marginInlineEnd:`calc(-2em - ${wt.marginXS}px)`,paddingInlineEnd:`calc(2em + ${wt.paddingXS}px)`}},[`${nn}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:wt.remainingColor,borderRadius:wt.lineBorderRadius},[`${nn}-inner:not(${nn}-circle-gradient)`]:{[`${nn}-circle-path`]:{stroke:wt.defaultColor}},[`${nn}-success-bg, ${nn}-bg`]:{position:"relative",backgroundColor:wt.defaultColor,borderRadius:wt.lineBorderRadius,transition:`all ${wt.motionDurationSlow} ${wt.motionEaseInOutCirc}`},[`${nn}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:wt.colorSuccess},[`${nn}-text`]:{display:"inline-block",width:"2em",marginInlineStart:wt.marginXS,color:wt.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Mn]:{fontSize:wt.fontSize}},[`&${nn}-status-active`]:{[`${nn}-bg::before`]:{position:"absolute",inset:0,backgroundColor:wt.colorBgContainer,borderRadius:wt.lineBorderRadius,opacity:0,animationName:Ot(),animationDuration:wt.progressActiveMotionDuration,animationTimingFunction:wt.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${nn}-rtl${nn}-status-active`]:{[`${nn}-bg::before`]:{animationName:Ot(!0)}},[`&${nn}-status-exception`]:{[`${nn}-bg`]:{backgroundColor:wt.colorError},[`${nn}-text`]:{color:wt.colorError}},[`&${nn}-status-exception ${nn}-inner:not(${nn}-circle-gradient)`]:{[`${nn}-circle-path`]:{stroke:wt.colorError}},[`&${nn}-status-success`]:{[`${nn}-bg`]:{backgroundColor:wt.colorSuccess},[`${nn}-text`]:{color:wt.colorSuccess}},[`&${nn}-status-success ${nn}-inner:not(${nn}-circle-gradient)`]:{[`${nn}-circle-path`]:{stroke:wt.colorSuccess}}})}},ct=wt=>{const{componentCls:nn,iconCls:Mn}=wt;return{[nn]:{[`${nn}-circle-trail`]:{stroke:wt.remainingColor},[`&${nn}-circle ${nn}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${nn}-circle ${nn}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:wt.circleTextColor,fontSize:wt.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Mn]:{fontSize:`${wt.fontSize/wt.fontSizeSM}em`}},[`${nn}-circle&-status-exception`]:{[`${nn}-text`]:{color:wt.colorError}},[`${nn}-circle&-status-success`]:{[`${nn}-text`]:{color:wt.colorSuccess}}},[`${nn}-inline-circle`]:{lineHeight:1,[`${nn}-inner`]:{verticalAlign:"bottom"}}}},Ge=wt=>{const{componentCls:nn}=wt;return{[nn]:{[`${nn}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:wt.progressStepMinWidth,marginInlineEnd:wt.progressStepMarginInlineEnd,backgroundColor:wt.remainingColor,transition:`all ${wt.motionDurationSlow}`,"&-active":{backgroundColor:wt.defaultColor}}}}}},Ae=wt=>{const{componentCls:nn,iconCls:Mn}=wt;return{[nn]:{[`${nn}-small&-line, ${nn}-small&-line ${nn}-text ${Mn}`]:{fontSize:wt.fontSizeSM}}}};var xe=(0,rt.Z)("Progress",wt=>{const nn=wt.marginXXS/2,Mn=(0,Ft.TS)(wt,{progressStepMarginInlineEnd:nn,progressStepMinWidth:nn,progressActiveMotionDuration:"2.4s"});return[ft(Mn),ct(Mn),Ge(Mn),Ae(Mn)]},wt=>({circleTextColor:wt.colorText,defaultColor:wt.colorInfo,remainingColor:wt.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),je=function(wt,nn){var Mn={};for(var Zn in wt)Object.prototype.hasOwnProperty.call(wt,Zn)&&nn.indexOf(Zn)<0&&(Mn[Zn]=wt[Zn]);if(wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var li=0,Zn=Object.getOwnPropertySymbols(wt);li<Zn.length;li++)nn.indexOf(Zn[li])<0&&Object.prototype.propertyIsEnumerable.call(wt,Zn[li])&&(Mn[Zn[li]]=wt[Zn[li]]);return Mn};const Qe=null,Oe=["normal","exception","active","success"];var hn=se.forwardRef((wt,nn)=>{const{prefixCls:Mn,className:Zn,rootClassName:li,steps:xi,strokeColor:Mi,percent:Si=0,size:Ri="default",showInfo:lr=!0,type:dr="line",status:ur,format:Sr,style:Wr}=wt,Gi=je(wt,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Zr=se.useMemo(()=>{var Nt,On;const Un=gt(wt);return parseInt(Un!==void 0?(Nt=Un!=null?Un:0)===null||Nt===void 0?void 0:Nt.toString():(On=Si!=null?Si:0)===null||On===void 0?void 0:On.toString(),10)},[Si,wt.success,wt.successPercent]),Yi=se.useMemo(()=>!Oe.includes(ur)&&Zr>=100?"success":ur||"normal",[ur,Zr]),{getPrefixCls:Ue,direction:no,progress:pr}=se.useContext(Je.E_),fo=Ue("progress",Mn),[Fo,Vo]=xe(fo),Io=se.useMemo(()=>{if(!lr)return null;const Nt=gt(wt);let On;const Un=Sr||(yt=>`${yt}%`),Vt=dr==="line";return Sr||Yi!=="exception"&&Yi!=="success"?On=Un(Ve(Si),Ve(Nt)):Yi==="exception"?On=Vt?se.createElement(Ie.Z,null):se.createElement(De.Z,null):Yi==="success"&&(On=Vt?se.createElement(Ce.Z,null):se.createElement(we.Z,null)),se.createElement("span",{className:`${fo}-text`,title:typeof On=="string"?On:void 0},On)},[lr,Si,Zr,Yi,dr,fo,Sr]),Oi=Array.isArray(Mi)?Mi[0]:Mi,on=typeof Mi=="string"||Array.isArray(Mi)?Mi:void 0;let ln;dr==="line"?ln=xi?se.createElement(Yt,Object.assign({},wt,{strokeColor:on,prefixCls:fo,steps:xi}),Io):se.createElement(ii,Object.assign({},wt,{strokeColor:Oi,prefixCls:fo,direction:no}),Io):(dr==="circle"||dr==="dashboard")&&(ln=se.createElement(An,Object.assign({},wt,{strokeColor:Oi,prefixCls:fo,progressStatus:Yi}),Io));const qt=Ee()(fo,`${fo}-status-${Yi}`,`${fo}-${dr==="dashboard"&&"circle"||xi&&"steps"||dr}`,{[`${fo}-inline-circle`]:dr==="circle"&&It(Ri,"circle")[0]<=20,[`${fo}-show-info`]:lr,[`${fo}-${Ri}`]:typeof Ri=="string",[`${fo}-rtl`]:no==="rtl"},pr==null?void 0:pr.className,Zn,li,Vo);return Fo(se.createElement("div",Object.assign({ref:nn,style:Object.assign(Object.assign({},pr==null?void 0:pr.style),Wr),className:qt,role:"progressbar","aria-valuenow":Zr},(0,et.Z)(Gi,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),ln))}),Pn=hn},39978:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return Ve}});var se=oe(5891),Ce=oe(59301),we={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},Ie=we,De=oe(88853),Ke=function(Bt,sn){return Ce.createElement(De.Z,(0,se.Z)({},Bt,{ref:sn,icon:Ie}))},Ee=Ce.forwardRef(Ke),et=Ee,Je=oe(92310),Ye=oe.n(Je),tt=oe(80962),ht=oe(29043),kt=oe(19149),ze=oe(35788),ee=oe(85108),ne=oe(36994);function ge(gt,Bt){var sn=gt.disabled,It=gt.prefixCls,en=gt.character,En=gt.characterRender,ei=gt.index,An=gt.count,Kn=gt.value,jt=gt.allowHalf,Nn=gt.focused,Gn=gt.onHover,ii=gt.onClick,Sn=function(ct){Gn(ct,ei)},Yt=function(ct){ii(ct,ei)},Zt=function(ct){ct.keyCode===ee.Z.ENTER&&ii(ct,ei)},St=ei+1,rt=new Set([It]);Kn===0&&ei===0&&Nn?rt.add("".concat(It,"-focused")):jt&&Kn+.5>=St&&Kn<St?(rt.add("".concat(It,"-half")),rt.add("".concat(It,"-active")),Nn&&rt.add("".concat(It,"-focused"))):(St<=Kn?rt.add("".concat(It,"-full")):rt.add("".concat(It,"-zero")),St===Kn&&Nn&&rt.add("".concat(It,"-focused")));var Ft=typeof en=="function"?en(gt):en,Ot=Ce.createElement("li",{className:Ye()(Array.from(rt)),ref:Bt},Ce.createElement("div",{onClick:sn?null:Yt,onKeyDown:sn?null:Zt,onMouseMove:sn?null:Sn,role:"radio","aria-checked":Kn>ei?"true":"false","aria-posinset":ei+1,"aria-setsize":An,tabIndex:sn?-1:0},Ce.createElement("div",{className:"".concat(It,"-first")},Ft),Ce.createElement("div",{className:"".concat(It,"-second")},Ft)));return En&&(Ot=En(Ot,gt)),Ot}var ue=Ce.forwardRef(ge);function me(){var gt=Ce.useRef({});function Bt(It){return gt.current[It]}function sn(It){return function(en){gt.current[It]=en}}return[Bt,sn]}function Se(gt){var Bt=gt.pageXOffset,sn="scrollLeft";if(typeof Bt!="number"){var It=gt.document;Bt=It.documentElement[sn],typeof Bt!="number"&&(Bt=It.body[sn])}return Bt}function Ne(gt){var Bt,sn,It=gt.ownerDocument,en=It.body,En=It&&It.documentElement,ei=gt.getBoundingClientRect();return Bt=ei.left,sn=ei.top,Bt-=En.clientLeft||en.clientLeft||0,sn-=En.clientTop||en.clientTop||0,{left:Bt,top:sn}}function ke(gt){var Bt=Ne(gt),sn=gt.ownerDocument,It=sn.defaultView||sn.parentWindow;return Bt.left+=Se(It),Bt.left}var Te=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function We(gt,Bt){var sn,It=gt.prefixCls,en=It===void 0?"rc-rate":It,En=gt.className,ei=gt.defaultValue,An=gt.value,Kn=gt.count,jt=Kn===void 0?5:Kn,Nn=gt.allowHalf,Gn=Nn===void 0?!1:Nn,ii=gt.allowClear,Sn=ii===void 0?!0:ii,Yt=gt.character,Zt=Yt===void 0?"\u2605":Yt,St=gt.characterRender,rt=gt.disabled,Ft=gt.direction,Ot=Ft===void 0?"ltr":Ft,ft=gt.tabIndex,ct=ft===void 0?0:ft,Ge=gt.autoFocus,Ae=gt.onHoverChange,xe=gt.onChange,je=gt.onFocus,Qe=gt.onBlur,Oe=gt.onKeyDown,xt=gt.onMouseLeave,hn=(0,kt.Z)(gt,Te),Pn=me(),wt=(0,ht.Z)(Pn,2),nn=wt[0],Mn=wt[1],Zn=Ce.useRef(null),li=function(){if(!rt){var yt;(yt=Zn.current)===null||yt===void 0||yt.focus()}};Ce.useImperativeHandle(Bt,function(){return{focus:li,blur:function(){if(!rt){var yt;(yt=Zn.current)===null||yt===void 0||yt.blur()}}}});var xi=(0,ze.Z)(ei||0,{value:An}),Mi=(0,ht.Z)(xi,2),Si=Mi[0],Ri=Mi[1],lr=(0,ze.Z)(null),dr=(0,ht.Z)(lr,2),ur=dr[0],Sr=dr[1],Wr=function(yt,In){var zn=Ot==="rtl",mi=yt+1;if(Gn){var Rn=nn(yt),bt=ke(Rn),Ut=Rn.clientWidth;(zn&&In-bt>Ut/2||!zn&&In-bt<Ut/2)&&(mi-=.5)}return mi},Gi=function(yt){Ri(yt),xe==null||xe(yt)},Zr=Ce.useState(!1),Yi=(0,ht.Z)(Zr,2),Ue=Yi[0],no=Yi[1],pr=function(){no(!0),je==null||je()},fo=function(){no(!1),Qe==null||Qe()},Fo=Ce.useState(null),Vo=(0,ht.Z)(Fo,2),Io=Vo[0],Oi=Vo[1],on=function(yt,In){var zn=Wr(In,yt.pageX);zn!==ur&&(Oi(zn),Sr(null)),Ae==null||Ae(zn)},ln=function(yt){rt||(Oi(null),Sr(null),Ae==null||Ae(void 0)),yt&&(xt==null||xt(yt))},qt=function(yt,In){var zn=Wr(In,yt.pageX),mi=!1;Sn&&(mi=zn===Si),ln(),Gi(mi?0:zn),Sr(mi?zn:null)},Nt=function(yt){var In=yt.keyCode,zn=Ot==="rtl",mi=Si;In===ee.Z.RIGHT&&mi<jt&&!zn?(Gn?mi+=.5:mi+=1,Gi(mi),yt.preventDefault()):In===ee.Z.LEFT&&mi>0&&!zn||In===ee.Z.RIGHT&&mi>0&&zn?(Gn?mi-=.5:mi-=1,Gi(mi),yt.preventDefault()):In===ee.Z.LEFT&&mi<jt&&zn&&(Gn?mi+=.5:mi+=1,Gi(mi),yt.preventDefault()),Oe==null||Oe(yt)};Ce.useEffect(function(){Ge&&!rt&&li()},[]);var On=new Array(jt).fill(0).map(function(Vt,yt){return Ce.createElement(ue,{ref:Mn(yt),index:yt,count:jt,disabled:rt,prefixCls:"".concat(en,"-star"),allowHalf:Gn,value:Io===null?Si:Io,onClick:qt,onHover:on,key:Vt||yt,character:Zt,characterRender:St,focused:Ue})}),Un=Ye()(en,En,(sn={},(0,tt.Z)(sn,"".concat(en,"-disabled"),rt),(0,tt.Z)(sn,"".concat(en,"-rtl"),Ot==="rtl"),sn));return Ce.createElement("ul",(0,se.Z)({className:Un,onMouseLeave:ln,tabIndex:rt?-1:ct,onFocus:rt?null:pr,onBlur:rt?null:fo,onKeyDown:rt?null:Nt,ref:Zn,role:"radiogroup"},(0,ne.Z)(hn,{aria:!0,data:!0,attr:!0})),On)}var $e=Ce.forwardRef(We),st=$e,ut=oe(36355),Mt=oe(6848),nt=oe(17313),$t=oe(83116),Pt=oe(37613);const dn=gt=>{const{componentCls:Bt}=gt;return{[`${Bt}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:gt.marginXS},"> div":{transition:`all ${gt.motionDurationMid}, outline 0s`,"&:hover":{transform:gt.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${gt.lineWidth}px dashed ${gt.starColor}`,transform:gt.starHoverScale}},"&-first, &-second":{color:gt.starBg,transition:`all ${gt.motionDurationMid}`,userSelect:"none",[gt.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${Bt}-star-first, &-half ${Bt}-star-second`]:{opacity:1},[`&-half ${Bt}-star-first, &-full ${Bt}-star-second`]:{color:"inherit"}}}},zt=gt=>({[`&-rtl${gt.componentCls}`]:{direction:"rtl"}}),Xt=gt=>{const{componentCls:Bt}=gt;return{[Bt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,nt.Wf)(gt)),{display:"inline-block",margin:0,padding:0,color:gt.starColor,fontSize:gt.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${Bt} ${Bt}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),dn(gt)),{[`+ ${Bt}-text`]:{display:"inline-block",marginInlineStart:gt.marginXS,fontSize:gt.fontSize}}),zt(gt))}};var fn=(0,$t.Z)("Rate",gt=>{const Bt=(0,Pt.TS)(gt,{});return[Xt(Bt)]},gt=>({starColor:gt.yellow6,starSize:gt.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:gt.colorFillContent})),an=function(gt,Bt){var sn={};for(var It in gt)Object.prototype.hasOwnProperty.call(gt,It)&&Bt.indexOf(It)<0&&(sn[It]=gt[It]);if(gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var en=0,It=Object.getOwnPropertySymbols(gt);en<It.length;en++)Bt.indexOf(It[en])<0&&Object.prototype.propertyIsEnumerable.call(gt,It[en])&&(sn[It[en]]=gt[It[en]]);return sn},Ve=Ce.forwardRef((gt,Bt)=>{const{prefixCls:sn,className:It,rootClassName:en,style:En,tooltips:ei,character:An=Ce.createElement(et,null)}=gt,Kn=an(gt,["prefixCls","className","rootClassName","style","tooltips","character"]),jt=(rt,Ft)=>{let{index:Ot}=Ft;return ei?Ce.createElement(Mt.Z,{title:ei[Ot]},rt):rt},{getPrefixCls:Nn,direction:Gn,rate:ii}=Ce.useContext(ut.E_),Sn=Nn("rate",sn),[Yt,Zt]=fn(Sn),St=Object.assign(Object.assign({},ii==null?void 0:ii.style),En);return Yt(Ce.createElement(st,Object.assign({ref:Bt,character:An,characterRender:jt},Kn,{className:Ye()(It,en,Zt,ii==null?void 0:ii.className),style:St,prefixCls:Sn,direction:Gn})))})},57809:function(_e,be,oe){"use strict";var se=oe(92310),Ce=oe.n(se),we=oe(77861),Ie=oe(64002),De=oe(59301),Ke=oe(53487),Ee=oe(62892),et=oe(19080),Je=oe(36355),Ye=oe(1684),tt=oe(93891),ht=oe(19716),kt=oe(32441),ze=oe(33234),ee=oe(14154),ne=oe(58582),ge=oe(84443),ue=oe(66339),me=function(We,$e){var st={};for(var ut in We)Object.prototype.hasOwnProperty.call(We,ut)&&$e.indexOf(ut)<0&&(st[ut]=We[ut]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,ut=Object.getOwnPropertySymbols(We);Mt<ut.length;Mt++)$e.indexOf(ut[Mt])<0&&Object.prototype.propertyIsEnumerable.call(We,ut[Mt])&&(st[ut[Mt]]=We[ut[Mt]]);return st};const Se="SECRET_COMBOBOX_MODE_DO_NOT_USE",Ne=(We,$e)=>{var st,{prefixCls:ut,bordered:Mt=!0,className:nt,rootClassName:$t,getPopupContainer:Pt,popupClassName:dn,dropdownClassName:zt,listHeight:Xt=256,placement:fn,listItemHeight:an=24,size:it,disabled:Ve,notFoundContent:gt,status:Bt,builtinPlacements:sn,dropdownMatchSelectWidth:It,popupMatchSelectWidth:en,direction:En,style:ei,allowClear:An}=We,Kn=me(We,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:jt,getPrefixCls:Nn,renderEmpty:Gn,direction:ii,virtual:Sn,popupMatchSelectWidth:Yt,popupOverflow:Zt,select:St}=De.useContext(Je.E_),rt=Nn("select",ut),Ft=Nn(),Ot=En!=null?En:ii,{compactSize:ft,compactItemClassnames:ct}=(0,ze.ri)(rt,Ot),[Ge,Ae]=(0,ee.Z)(rt),xe=De.useMemo(()=>{const{mode:Yi}=Kn;if(Yi!=="combobox")return Yi===Se?"combobox":Yi},[Kn.mode]),je=xe==="multiple"||xe==="tags",Qe=(0,ge.Z)(Kn.suffixIcon,Kn.showArrow),Oe=(st=en!=null?en:It)!==null&&st!==void 0?st:Yt,{status:xt,hasFeedback:hn,isFormItemInput:Pn,feedbackIcon:wt}=De.useContext(kt.aM),nn=(0,et.F)(xt,Bt);let Mn;gt!==void 0?Mn=gt:xe==="combobox"?Mn=null:Mn=(Gn==null?void 0:Gn("Select"))||De.createElement(tt.Z,{componentName:"Select"});const{suffixIcon:Zn,itemIcon:li,removeIcon:xi,clearIcon:Mi}=(0,ue.Z)(Object.assign(Object.assign({},Kn),{multiple:je,hasFeedback:hn,feedbackIcon:wt,showSuffixIcon:Qe,prefixCls:rt,showArrow:Kn.showArrow,componentName:"Select"})),Si=An===!0?{clearIcon:Mi}:An,Ri=(0,Ie.Z)(Kn,["suffixIcon","itemIcon"]),lr=Ce()(dn||zt,{[`${rt}-dropdown-${Ot}`]:Ot==="rtl"},$t,Ae),dr=(0,ht.Z)(Yi=>{var Ue;return(Ue=it!=null?it:ft)!==null&&Ue!==void 0?Ue:Yi}),ur=De.useContext(Ye.Z),Sr=Ve!=null?Ve:ur,Wr=Ce()({[`${rt}-lg`]:dr==="large",[`${rt}-sm`]:dr==="small",[`${rt}-rtl`]:Ot==="rtl",[`${rt}-borderless`]:!Mt,[`${rt}-in-form-item`]:Pn},(0,et.Z)(rt,nn,hn),ct,St==null?void 0:St.className,nt,$t,Ae),Gi=De.useMemo(()=>fn!==void 0?fn:Ot==="rtl"?"bottomRight":"bottomLeft",[fn,Ot]),Zr=(0,ne.Z)(sn,Zt);return Ge(De.createElement(we.ZP,Object.assign({ref:$e,virtual:Sn,showSearch:St==null?void 0:St.showSearch},Ri,{style:Object.assign(Object.assign({},St==null?void 0:St.style),ei),dropdownMatchSelectWidth:Oe,builtinPlacements:Zr,transitionName:(0,Ee.m)(Ft,"slide-up",Kn.transitionName),listHeight:Xt,listItemHeight:an,mode:xe,prefixCls:rt,placement:Gi,direction:Ot,suffixIcon:Zn,menuItemSelectedIcon:li,removeIcon:xi,allowClear:Si,notFoundContent:Mn,className:Wr,getPopupContainer:Pt||jt,dropdownClassName:lr,disabled:Sr})))},ke=De.forwardRef(Ne),Te=(0,Ke.Z)(ke);ke.SECRET_COMBOBOX_MODE_DO_NOT_USE=Se,ke.Option=we.Wx,ke.OptGroup=we.Xo,ke._InternalPanelDoNotUseOrYouWillBeFired=Te,be.default=ke},14154:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return ke}});var se=oe(17313),Ce=oe(74207),we=oe(37613),Ie=oe(83116),De=oe(13826),Ke=oe(92899);const Ee=Te=>{const{optionHeight:We,optionFontSize:$e,optionLineHeight:st,optionPadding:ut}=Te;return{position:"relative",display:"block",minHeight:We,padding:ut,color:Te.colorText,fontWeight:"normal",fontSize:$e,lineHeight:st,boxSizing:"border-box"}};var Je=Te=>{const{antCls:We,componentCls:$e}=Te,st=`${$e}-item`,ut=`&${We}-slide-up-enter${We}-slide-up-enter-active`,Mt=`&${We}-slide-up-appear${We}-slide-up-appear-active`,nt=`&${We}-slide-up-leave${We}-slide-up-leave-active`,$t=`${$e}-dropdown-placement-`;return[{[`${$e}-dropdown`]:Object.assign(Object.assign({},(0,se.Wf)(Te)),{position:"absolute",top:-9999,zIndex:Te.zIndexPopup,boxSizing:"border-box",padding:Te.paddingXXS,overflow:"hidden",fontSize:Te.fontSize,fontVariant:"initial",backgroundColor:Te.colorBgElevated,borderRadius:Te.borderRadiusLG,outline:"none",boxShadow:Te.boxShadowSecondary,[`
${ut}${$t}bottomLeft,
${Mt}${$t}bottomLeft
`]:{animationName:De.fJ},[`
${ut}${$t}topLeft,
${Mt}${$t}topLeft,
${ut}${$t}topRight,
${Mt}${$t}topRight
`]:{animationName:De.Qt},[`${nt}${$t}bottomLeft`]:{animationName:De.Uw},[`
${nt}${$t}topLeft,
${nt}${$t}topRight
`]:{animationName:De.ly},"&-hidden":{display:"none"},[`${st}`]:Object.assign(Object.assign({},Ee(Te)),{cursor:"pointer",transition:`background ${Te.motionDurationSlow} ease`,borderRadius:Te.borderRadiusSM,"&-group":{color:Te.colorTextDescription,fontSize:Te.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},se.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${st}-option-disabled)`]:{backgroundColor:Te.optionActiveBg},[`&-selected:not(${st}-option-disabled)`]:{color:Te.optionSelectedColor,fontWeight:Te.optionSelectedFontWeight,backgroundColor:Te.optionSelectedBg,[`${st}-option-state`]:{color:Te.colorPrimary}},"&-disabled":{[`&${st}-option-selected`]:{backgroundColor:Te.colorBgContainerDisabled},color:Te.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Te.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,De.oN)(Te,"slide-up"),(0,De.oN)(Te,"slide-down"),(0,Ke.Fm)(Te,"move-up"),(0,Ke.Fm)(Te,"move-down")]};const Ye=2,tt=Te=>{let{controlHeightSM:We,controlHeight:$e,lineWidth:st}=Te;const ut=($e-We)/2-st,Mt=Math.ceil(ut/2);return[ut,Mt]};function ht(Te,We){const{componentCls:$e,iconCls:st}=Te,ut=`${$e}-selection-overflow`,Mt=Te.multipleSelectItemHeight,[nt]=tt(Te),$t=We?`${$e}-${We}`:"";return{[`${$e}-multiple${$t}`]:{fontSize:Te.fontSize,[ut]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${$e}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${nt-Ye}px ${Ye*2}px`,borderRadius:Te.borderRadius,[`${$e}-show-search&`]:{cursor:"text"},[`${$e}-disabled&`]:{background:Te.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Ye}px 0`,lineHeight:`${Mt}px`,visibility:"hidden",content:'"\\a0"'}},[`
&${$e}-show-arrow ${$e}-selector,
&${$e}-allow-clear ${$e}-selector
`]:{paddingInlineEnd:Te.fontSizeIcon+Te.controlPaddingHorizontal},[`${$e}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Mt,marginTop:Ye,marginBottom:Ye,lineHeight:`${Mt-Te.lineWidth*2}px`,background:Te.multipleItemBg,border:`${Te.lineWidth}px ${Te.lineType} ${Te.multipleItemBorderColor}`,borderRadius:Te.borderRadiusSM,cursor:"default",transition:`font-size ${Te.motionDurationSlow}, line-height ${Te.motionDurationSlow}, height ${Te.motionDurationSlow}`,userSelect:"none",marginInlineEnd:Ye*2,paddingInlineStart:Te.paddingXS,paddingInlineEnd:Te.paddingXS/2,[`${$e}-disabled&`]:{color:Te.multipleItemColorDisabled,borderColor:Te.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:Te.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,se.Ro)()),{display:"inline-flex",alignItems:"center",color:Te.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${st}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Te.colorIconHover}})},[`${ut}-item + ${ut}-item`]:{[`${$e}-selection-search`]:{marginInlineStart:0}},[`${$e}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Te.inputPaddingHorizontalBase-nt,"\n &-input,\n &-mirror\n ":{height:Mt,fontFamily:Te.fontFamily,lineHeight:`${Mt}px`,transition:`all ${Te.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${$e}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:Te.inputPaddingHorizontalBase,insetInlineEnd:Te.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${Te.motionDurationSlow}`}}}}var ze=Te=>{const{componentCls:We}=Te,$e=(0,we.TS)(Te,{controlHeight:Te.controlHeightSM,multipleSelectItemHeight:Te.controlHeightXS,borderRadius:Te.borderRadiusSM,borderRadiusSM:Te.borderRadiusXS}),st=(0,we.TS)(Te,{fontSize:Te.fontSizeLG,controlHeight:Te.controlHeightLG,multipleSelectItemHeight:Te.multipleItemHeightLG,borderRadius:Te.borderRadiusLG,borderRadiusSM:Te.borderRadius}),[,ut]=tt(Te);return[ht(Te),ht($e,"sm"),{[`${We}-multiple${We}-sm`]:{[`${We}-selection-placeholder`]:{insetInline:Te.controlPaddingHorizontalSM-Te.lineWidth},[`${We}-selection-search`]:{marginInlineStart:ut}}},ht(st,"lg")]};function ee(Te,We){const{componentCls:$e,inputPaddingHorizontalBase:st,borderRadius:ut}=Te,Mt=Te.controlHeight-Te.lineWidth*2,nt=Math.ceil(Te.fontSize*1.25),$t=We?`${$e}-${We}`:"";return{[`${$e}-single${$t}`]:{fontSize:Te.fontSize,[`${$e}-selector`]:Object.assign(Object.assign({},(0,se.Wf)(Te)),{display:"flex",borderRadius:ut,[`${$e}-selection-search`]:{position:"absolute",top:0,insetInlineStart:st,insetInlineEnd:st,bottom:0,"&-input":{width:"100%"}},[`
${$e}-selection-item,
${$e}-selection-placeholder
`]:{padding:0,lineHeight:`${Mt}px`,transition:`all ${Te.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Mt}px`}},[`${$e}-selection-item`]:{position:"relative",userSelect:"none"},[`${$e}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${$e}-selection-item:after`,`${$e}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${$e}-show-arrow ${$e}-selection-item,
&${$e}-show-arrow ${$e}-selection-placeholder
`]:{paddingInlineEnd:nt},[`&${$e}-open ${$e}-selection-item`]:{color:Te.colorTextPlaceholder},[`&:not(${$e}-customize-input)`]:{[`${$e}-selector`]:{width:"100%",height:Te.controlHeight,padding:`0 ${st}px`,[`${$e}-selection-search-input`]:{height:Mt},"&:after":{lineHeight:`${Mt}px`}}},[`&${$e}-customize-input`]:{[`${$e}-selector`]:{"&:after":{display:"none"},[`${$e}-selection-search`]:{position:"static",width:"100%"},[`${$e}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${st}px`,"&:after":{display:"none"}}}}}}}function ne(Te){const{componentCls:We}=Te,$e=Te.controlPaddingHorizontalSM-Te.lineWidth;return[ee(Te),ee((0,we.TS)(Te,{controlHeight:Te.controlHeightSM,borderRadius:Te.borderRadiusSM}),"sm"),{[`${We}-single${We}-sm`]:{[`&:not(${We}-customize-input)`]:{[`${We}-selection-search`]:{insetInlineStart:$e,insetInlineEnd:$e},[`${We}-selector`]:{padding:`0 ${$e}px`},[`&${We}-show-arrow ${We}-selection-search`]:{insetInlineEnd:$e+Te.fontSize*1.5},[`
&${We}-show-arrow ${We}-selection-item,
&${We}-show-arrow ${We}-selection-placeholder
`]:{paddingInlineEnd:Te.fontSize*1.5}}}},ee((0,we.TS)(Te,{controlHeight:Te.singleItemHeightLG,fontSize:Te.fontSizeLG,borderRadius:Te.borderRadiusLG}),"lg")]}const ge=Te=>{const{componentCls:We,selectorBg:$e}=Te;return{position:"relative",backgroundColor:$e,border:`${Te.lineWidth}px ${Te.lineType} ${Te.colorBorder}`,transition:`all ${Te.motionDurationMid} ${Te.motionEaseInOut}`,input:{cursor:"pointer"},[`${We}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${We}-disabled&`]:{color:Te.colorTextDisabled,background:Te.colorBgContainerDisabled,cursor:"not-allowed",[`${We}-multiple&`]:{background:Te.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},ue=function(Te,We){let $e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:st,borderHoverColor:ut,outlineColor:Mt,antCls:nt}=We,$t=$e?{[`${st}-selector`]:{borderColor:ut}}:{};return{[Te]:{[`&:not(${st}-disabled):not(${st}-customize-input):not(${nt}-pagination-size-changer)`]:Object.assign(Object.assign({},$t),{[`${st}-focused& ${st}-selector`]:{borderColor:ut,boxShadow:`0 0 0 ${We.controlOutlineWidth}px ${Mt}`,outline:0},[`&:hover ${st}-selector`]:{borderColor:ut}})}}},me=Te=>{const{componentCls:We}=Te;return{[`${We}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},Se=Te=>{const{componentCls:We,inputPaddingHorizontalBase:$e,iconCls:st}=Te;return{[We]:Object.assign(Object.assign({},(0,se.Wf)(Te)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${We}-customize-input) ${We}-selector`]:Object.assign(Object.assign({},ge(Te)),me(Te)),[`${We}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},se.vS),[`${We}-selection-placeholder`]:Object.assign(Object.assign({},se.vS),{flex:1,color:Te.colorTextPlaceholder,pointerEvents:"none"}),[`${We}-arrow`]:Object.assign(Object.assign({},(0,se.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:$e,height:Te.fontSizeIcon,marginTop:-Te.fontSizeIcon/2,color:Te.colorTextQuaternary,fontSize:Te.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[st]:{verticalAlign:"top",transition:`transform ${Te.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${We}-suffix)`]:{pointerEvents:"auto"}},[`${We}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${We}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:$e,zIndex:1,display:"inline-block",width:Te.fontSizeIcon,height:Te.fontSizeIcon,marginTop:-Te.fontSizeIcon/2,color:Te.colorTextQuaternary,fontSize:Te.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:Te.clearBg,cursor:"pointer",opacity:0,transition:`color ${Te.motionDurationMid} ease, opacity ${Te.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Te.colorTextTertiary}},"&:hover":{[`${We}-clear`]:{opacity:1}}}),[`${We}-has-feedback`]:{[`${We}-clear`]:{insetInlineEnd:$e+Te.fontSize+Te.paddingXS}}}},Ne=Te=>{const{componentCls:We}=Te;return[{[We]:{[`&-borderless ${We}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${We}-in-form-item`]:{width:"100%"}}},Se(Te),ne(Te),ze(Te),Je(Te),{[`${We}-rtl`]:{direction:"rtl"}},ue(We,(0,we.TS)(Te,{borderHoverColor:Te.colorPrimaryHover,outlineColor:Te.controlOutline})),ue(`${We}-status-error`,(0,we.TS)(Te,{borderHoverColor:Te.colorErrorHover,outlineColor:Te.colorErrorOutline}),!0),ue(`${We}-status-warning`,(0,we.TS)(Te,{borderHoverColor:Te.colorWarningHover,outlineColor:Te.colorWarningOutline}),!0),(0,Ce.c)(Te,{borderElCls:`${We}-selector`,focusElCls:`${We}-focused`})]};var ke=(0,Ie.Z)("Select",(Te,We)=>{let{rootPrefixCls:$e}=We;const st=(0,we.TS)(Te,{rootPrefixCls:$e,inputPaddingHorizontalBase:Te.paddingSM-1,multipleSelectItemHeight:Te.multipleItemHeight});return[Ne(st)]},Te=>{const{fontSize:We,lineHeight:$e,controlHeight:st,controlPaddingHorizontal:ut,zIndexPopupBase:Mt,colorText:nt,fontWeightStrong:$t,controlItemBgActive:Pt,controlItemBgHover:dn,colorBgContainer:zt,colorFillSecondary:Xt,controlHeightLG:fn,controlHeightSM:an,colorBgContainerDisabled:it,colorTextDisabled:Ve}=Te;return{zIndexPopup:Mt+50,optionSelectedColor:nt,optionSelectedFontWeight:$t,optionSelectedBg:Pt,optionActiveBg:dn,optionPadding:`${(st-We*$e)/2}px ${ut}px`,optionFontSize:We,optionLineHeight:$e,optionHeight:st,selectorBg:zt,clearBg:zt,singleItemHeightLG:fn,multipleItemBg:Xt,multipleItemBorderColor:"transparent",multipleItemHeight:an,multipleItemHeightLG:st,multipleSelectorBgDisabled:it,multipleItemColorDisabled:Ve,multipleItemBorderColorDisabled:"transparent"}})},58582:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return Ce}});const se=we=>{const De={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:we==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},De),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},De),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},De),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},De),{points:["br","tr"],offset:[0,-4]})}};function Ce(we,Ie){return we||se(Ie)}},84443:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return se}});function se(Ce,we){return we!==void 0?we:Ce!==null}},66339:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return et}});var se=oe(10402),Ce=oe(33130),we=oe(72119),Ie=oe(18290),De=oe(50023),Ke=oe(21970),Ee=oe(59301);function et(Je){let{suffixIcon:Ye,clearIcon:tt,menuItemSelectedIcon:ht,removeIcon:kt,loading:ze,multiple:ee,hasFeedback:ne,prefixCls:ge,showSuffixIcon:ue,feedbackIcon:me,showArrow:Se,componentName:Ne}=Je;const ke=tt!=null?tt:Ee.createElement(Ce.Z,null),Te=ut=>Ye===null&&!ne&&!Se?null:Ee.createElement(Ee.Fragment,null,ue!==!1&&ut,ne&&me);let We=null;if(Ye!==void 0)We=Te(Ye);else if(ze)We=Te(Ee.createElement(De.Z,{spin:!0}));else{const ut=`${ge}-suffix`;We=Mt=>{let{open:nt,showSearch:$t}=Mt;return Te(nt&&$t?Ee.createElement(Ke.Z,{className:ut}):Ee.createElement(Ie.Z,{className:ut}))}}let $e=null;ht!==void 0?$e=ht:ee?$e=Ee.createElement(se.Z,null):$e=null;let st=null;return kt!==void 0?st=kt:st=Ee.createElement(we.Z,null),{clearIcon:ke,suffixIcon:We,itemIcon:$e,removeIcon:st}}},78485:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return Zt}});var se=oe(92310),Ce=oe.n(se),we=oe(59301),Ie=oe(36355),De=oe(64002),Ee=St=>{const{prefixCls:rt,className:Ft,style:Ot,size:ft,shape:ct}=St,Ge=Ce()({[`${rt}-lg`]:ft==="large",[`${rt}-sm`]:ft==="small"}),Ae=Ce()({[`${rt}-circle`]:ct==="circle",[`${rt}-square`]:ct==="square",[`${rt}-round`]:ct==="round"}),xe=we.useMemo(()=>typeof ft=="number"?{width:ft,height:ft,lineHeight:`${ft}px`}:{},[ft]);return we.createElement("span",{className:Ce()(rt,Ge,Ae,Ft),style:Object.assign(Object.assign({},xe),Ot)})},et=oe(9792),Je=oe(83116),Ye=oe(37613);const tt=new et.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),ht=St=>({height:St,lineHeight:`${St}px`}),kt=St=>Object.assign({width:St},ht(St)),ze=St=>({background:St.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:tt,animationDuration:St.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),ee=St=>Object.assign({width:St*5,minWidth:St*5},ht(St)),ne=St=>{const{skeletonAvatarCls:rt,gradientFromColor:Ft,controlHeight:Ot,controlHeightLG:ft,controlHeightSM:ct}=St;return{[`${rt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ft},kt(Ot)),[`${rt}${rt}-circle`]:{borderRadius:"50%"},[`${rt}${rt}-lg`]:Object.assign({},kt(ft)),[`${rt}${rt}-sm`]:Object.assign({},kt(ct))}},ge=St=>{const{controlHeight:rt,borderRadiusSM:Ft,skeletonInputCls:Ot,controlHeightLG:ft,controlHeightSM:ct,gradientFromColor:Ge}=St;return{[`${Ot}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ge,borderRadius:Ft},ee(rt)),[`${Ot}-lg`]:Object.assign({},ee(ft)),[`${Ot}-sm`]:Object.assign({},ee(ct))}},ue=St=>Object.assign({width:St},ht(St)),me=St=>{const{skeletonImageCls:rt,imageSizeBase:Ft,gradientFromColor:Ot,borderRadiusSM:ft}=St;return{[`${rt}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Ot,borderRadius:ft},ue(Ft*2)),{[`${rt}-path`]:{fill:"#bfbfbf"},[`${rt}-svg`]:Object.assign(Object.assign({},ue(Ft)),{maxWidth:Ft*4,maxHeight:Ft*4}),[`${rt}-svg${rt}-svg-circle`]:{borderRadius:"50%"}}),[`${rt}${rt}-circle`]:{borderRadius:"50%"}}},Se=(St,rt,Ft)=>{const{skeletonButtonCls:Ot}=St;return{[`${Ft}${Ot}-circle`]:{width:rt,minWidth:rt,borderRadius:"50%"},[`${Ft}${Ot}-round`]:{borderRadius:rt}}},Ne=St=>Object.assign({width:St*2,minWidth:St*2},ht(St)),ke=St=>{const{borderRadiusSM:rt,skeletonButtonCls:Ft,controlHeight:Ot,controlHeightLG:ft,controlHeightSM:ct,gradientFromColor:Ge}=St;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Ft}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ge,borderRadius:rt,width:Ot*2,minWidth:Ot*2},Ne(Ot))},Se(St,Ot,Ft)),{[`${Ft}-lg`]:Object.assign({},Ne(ft))}),Se(St,ft,`${Ft}-lg`)),{[`${Ft}-sm`]:Object.assign({},Ne(ct))}),Se(St,ct,`${Ft}-sm`))},Te=St=>{const{componentCls:rt,skeletonAvatarCls:Ft,skeletonTitleCls:Ot,skeletonParagraphCls:ft,skeletonButtonCls:ct,skeletonInputCls:Ge,skeletonImageCls:Ae,controlHeight:xe,controlHeightLG:je,controlHeightSM:Qe,gradientFromColor:Oe,padding:xt,marginSM:hn,borderRadius:Pn,titleHeight:wt,blockRadius:nn,paragraphLiHeight:Mn,controlHeightXS:Zn,paragraphMarginTop:li}=St;return{[`${rt}`]:{display:"table",width:"100%",[`${rt}-header`]:{display:"table-cell",paddingInlineEnd:xt,verticalAlign:"top",[`${Ft}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Oe},kt(xe)),[`${Ft}-circle`]:{borderRadius:"50%"},[`${Ft}-lg`]:Object.assign({},kt(je)),[`${Ft}-sm`]:Object.assign({},kt(Qe))},[`${rt}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Ot}`]:{width:"100%",height:wt,background:Oe,borderRadius:nn,[`+ ${ft}`]:{marginBlockStart:Qe}},[`${ft}`]:{padding:0,"> li":{width:"100%",height:Mn,listStyle:"none",background:Oe,borderRadius:nn,"+ li":{marginBlockStart:Zn}}},[`${ft}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${rt}-content`]:{[`${Ot}, ${ft} > li`]:{borderRadius:Pn}}},[`${rt}-with-avatar ${rt}-content`]:{[`${Ot}`]:{marginBlockStart:hn,[`+ ${ft}`]:{marginBlockStart:li}}},[`${rt}${rt}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},ke(St)),ne(St)),ge(St)),me(St)),[`${rt}${rt}-block`]:{width:"100%",[`${ct}`]:{width:"100%"},[`${Ge}`]:{width:"100%"}},[`${rt}${rt}-active`]:{[`
${Ot},
${ft} > li,
${Ft},
${ct},
${Ge},
${Ae}
`]:Object.assign({},ze(St))}}};var We=(0,Je.Z)("Skeleton",St=>{const{componentCls:rt}=St,Ft=(0,Ye.TS)(St,{skeletonAvatarCls:`${rt}-avatar`,skeletonTitleCls:`${rt}-title`,skeletonParagraphCls:`${rt}-paragraph`,skeletonButtonCls:`${rt}-button`,skeletonInputCls:`${rt}-input`,skeletonImageCls:`${rt}-image`,imageSizeBase:St.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${St.gradientFromColor} 25%, ${St.gradientToColor} 37%, ${St.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Te(Ft)]},St=>{const{colorFillContent:rt,colorFill:Ft}=St,Ot=rt,ft=Ft;return{color:Ot,colorGradientEnd:ft,gradientFromColor:Ot,gradientToColor:ft,titleHeight:St.controlHeight/2,blockRadius:St.borderRadiusSM,paragraphMarginTop:St.marginLG+St.marginXXS,paragraphLiHeight:St.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),st=St=>{const{prefixCls:rt,className:Ft,rootClassName:Ot,active:ft,shape:ct="circle",size:Ge="default"}=St,{getPrefixCls:Ae}=we.useContext(Ie.E_),xe=Ae("skeleton",rt),[je,Qe]=We(xe),Oe=(0,De.Z)(St,["prefixCls","className"]),xt=Ce()(xe,`${xe}-element`,{[`${xe}-active`]:ft},Ft,Ot,Qe);return je(we.createElement("div",{className:xt},we.createElement(Ee,Object.assign({prefixCls:`${xe}-avatar`,shape:ct,size:Ge},Oe))))},Mt=St=>{const{prefixCls:rt,className:Ft,rootClassName:Ot,active:ft,block:ct=!1,size:Ge="default"}=St,{getPrefixCls:Ae}=we.useContext(Ie.E_),xe=Ae("skeleton",rt),[je,Qe]=We(xe),Oe=(0,De.Z)(St,["prefixCls"]),xt=Ce()(xe,`${xe}-element`,{[`${xe}-active`]:ft,[`${xe}-block`]:ct},Ft,Ot,Qe);return je(we.createElement("div",{className:xt},we.createElement(Ee,Object.assign({prefixCls:`${xe}-button`,size:Ge},Oe))))};const nt="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var Pt=St=>{const{prefixCls:rt,className:Ft,rootClassName:Ot,style:ft,active:ct}=St,{getPrefixCls:Ge}=we.useContext(Ie.E_),Ae=Ge("skeleton",rt),[xe,je]=We(Ae),Qe=Ce()(Ae,`${Ae}-element`,{[`${Ae}-active`]:ct},Ft,Ot,je);return xe(we.createElement("div",{className:Qe},we.createElement("div",{className:Ce()(`${Ae}-image`,Ft),style:ft},we.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Ae}-image-svg`},we.createElement("path",{d:nt,className:`${Ae}-image-path`})))))},zt=St=>{const{prefixCls:rt,className:Ft,rootClassName:Ot,active:ft,block:ct,size:Ge="default"}=St,{getPrefixCls:Ae}=we.useContext(Ie.E_),xe=Ae("skeleton",rt),[je,Qe]=We(xe),Oe=(0,De.Z)(St,["prefixCls"]),xt=Ce()(xe,`${xe}-element`,{[`${xe}-active`]:ft,[`${xe}-block`]:ct},Ft,Ot,Qe);return je(we.createElement("div",{className:xt},we.createElement(Ee,Object.assign({prefixCls:`${xe}-input`,size:Ge},Oe))))},Xt=oe(5891),fn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},an=fn,it=oe(88853),Ve=function(rt,Ft){return we.createElement(it.Z,(0,Xt.Z)({},rt,{ref:Ft,icon:an}))},gt=we.forwardRef(Ve),Bt=gt,It=St=>{const{prefixCls:rt,className:Ft,rootClassName:Ot,style:ft,active:ct,children:Ge}=St,{getPrefixCls:Ae}=we.useContext(Ie.E_),xe=Ae("skeleton",rt),[je,Qe]=We(xe),Oe=Ce()(xe,`${xe}-element`,{[`${xe}-active`]:ct},Qe,Ft,Ot),xt=Ge!=null?Ge:we.createElement(Bt,null);return je(we.createElement("div",{className:Oe},we.createElement("div",{className:Ce()(`${xe}-image`,Ft),style:ft},xt)))},en=oe(26390),ei=St=>{const rt=Ae=>{const{width:xe,rows:je=2}=St;if(Array.isArray(xe))return xe[Ae];if(je-1===Ae)return xe},{prefixCls:Ft,className:Ot,style:ft,rows:ct}=St,Ge=(0,en.Z)(Array(ct)).map((Ae,xe)=>we.createElement("li",{key:xe,style:{width:rt(xe)}}));return we.createElement("ul",{className:Ce()(Ft,Ot),style:ft},Ge)},Kn=St=>{let{prefixCls:rt,className:Ft,width:Ot,style:ft}=St;return we.createElement("h3",{className:Ce()(rt,Ft),style:Object.assign({width:Ot},ft)})};function jt(St){return St&&typeof St=="object"?St:{}}function Nn(St,rt){return St&&!rt?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Gn(St,rt){return!St&&rt?{width:"38%"}:St&&rt?{width:"50%"}:{}}function ii(St,rt){const Ft={};return(!St||!rt)&&(Ft.width="61%"),!St&&rt?Ft.rows=3:Ft.rows=2,Ft}const Sn=St=>{const{prefixCls:rt,loading:Ft,className:Ot,rootClassName:ft,style:ct,children:Ge,avatar:Ae=!1,title:xe=!0,paragraph:je=!0,active:Qe,round:Oe}=St,{getPrefixCls:xt,direction:hn,skeleton:Pn}=we.useContext(Ie.E_),wt=xt("skeleton",rt),[nn,Mn]=We(wt);if(Ft||!("loading"in St)){const Zn=!!Ae,li=!!xe,xi=!!je;let Mi;if(Zn){const lr=Object.assign(Object.assign({prefixCls:`${wt}-avatar`},Nn(li,xi)),jt(Ae));Mi=we.createElement("div",{className:`${wt}-header`},we.createElement(Ee,Object.assign({},lr)))}let Si;if(li||xi){let lr;if(li){const ur=Object.assign(Object.assign({prefixCls:`${wt}-title`},Gn(Zn,xi)),jt(xe));lr=we.createElement(Kn,Object.assign({},ur))}let dr;if(xi){const ur=Object.assign(Object.assign({prefixCls:`${wt}-paragraph`},ii(Zn,li)),jt(je));dr=we.createElement(ei,Object.assign({},ur))}Si=we.createElement("div",{className:`${wt}-content`},lr,dr)}const Ri=Ce()(wt,{[`${wt}-with-avatar`]:Zn,[`${wt}-active`]:Qe,[`${wt}-rtl`]:hn==="rtl",[`${wt}-round`]:Oe},Pn==null?void 0:Pn.className,Ot,ft,Mn);return nn(we.createElement("div",{className:Ri,style:Object.assign(Object.assign({},Pn==null?void 0:Pn.style),ct)},Mi,Si))}return typeof Ge!="undefined"?Ge:null};Sn.Button=Mt,Sn.Avatar=st,Sn.Input=zt,Sn.Image=Pt,Sn.Node=It;var Yt=Sn,Zt=Yt},81327:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return ge}});var se=oe(59301),Ce=oe(92310),we=oe.n(Ce),Ie=oe(38298),De=oe(36355),Ke=oe(33234);const Ee=se.createContext({latestIndex:0}),et=Ee.Provider;var Ye=ue=>{let{className:me,index:Se,children:Ne,split:ke,style:Te}=ue;const{latestIndex:We}=se.useContext(Ee);return Ne==null?null:se.createElement(se.Fragment,null,se.createElement("div",{className:me,style:Te},Ne),Se<We&&ke&&se.createElement("span",{className:`${me}-split`},ke))},tt=oe(2856);function ht(ue){return["small","middle","large"].includes(ue)}function kt(ue){return ue?typeof ue=="number"&&!Number.isNaN(ue):!1}var ze=function(ue,me){var Se={};for(var Ne in ue)Object.prototype.hasOwnProperty.call(ue,Ne)&&me.indexOf(Ne)<0&&(Se[Ne]=ue[Ne]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Ne=Object.getOwnPropertySymbols(ue);ke<Ne.length;ke++)me.indexOf(Ne[ke])<0&&Object.prototype.propertyIsEnumerable.call(ue,Ne[ke])&&(Se[Ne[ke]]=ue[Ne[ke]]);return Se};const ne=se.forwardRef((ue,me)=>{var Se,Ne;const{getPrefixCls:ke,space:Te,direction:We}=se.useContext(De.E_),{size:$e=(Te==null?void 0:Te.size)||"small",align:st,className:ut,rootClassName:Mt,children:nt,direction:$t="horizontal",prefixCls:Pt,split:dn,style:zt,wrap:Xt=!1,classNames:fn,styles:an}=ue,it=ze(ue,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[Ve,gt]=Array.isArray($e)?$e:[$e,$e],Bt=ht(gt),sn=ht(Ve),It=kt(gt),en=kt(Ve),En=(0,Ie.Z)(nt,{keepEmpty:!0}),ei=st===void 0&&$t==="horizontal"?"center":st,An=ke("space",Pt),[Kn,jt]=(0,tt.Z)(An),Nn=we()(An,Te==null?void 0:Te.className,jt,`${An}-${$t}`,{[`${An}-rtl`]:We==="rtl",[`${An}-align-${ei}`]:ei,[`${An}-gap-row-${gt}`]:Bt,[`${An}-gap-col-${Ve}`]:sn},ut,Mt),Gn=we()(`${An}-item`,(Se=fn==null?void 0:fn.item)!==null&&Se!==void 0?Se:(Ne=Te==null?void 0:Te.classNames)===null||Ne===void 0?void 0:Ne.item);let ii=0;const Sn=En.map((St,rt)=>{var Ft,Ot;St!=null&&(ii=rt);const ft=St&&St.key||`${Gn}-${rt}`;return se.createElement(Ye,{className:Gn,key:ft,index:rt,split:dn,style:(Ft=an==null?void 0:an.item)!==null&&Ft!==void 0?Ft:(Ot=Te==null?void 0:Te.styles)===null||Ot===void 0?void 0:Ot.item},St)}),Yt=se.useMemo(()=>({latestIndex:ii}),[ii]);if(En.length===0)return null;const Zt={};return Xt&&(Zt.flexWrap="wrap"),!sn&&en&&(Zt.columnGap=Ve),!Bt&&It&&(Zt.rowGap=gt),Kn(se.createElement("div",Object.assign({ref:me,className:Nn,style:Object.assign(Object.assign(Object.assign({},Zt),Te==null?void 0:Te.style),zt)},it),se.createElement(et,{value:Yt},Sn)))});ne.Compact=Ke.ZP;var ge=ne},31797:function(_e,be,oe){"use strict";oe.d(be,{default:function(){return We}});var se=oe(59301),Ce=oe(56762),we=oe(92343),Ie=oe(92310),De=oe.n(Ie),Ke=oe(36355),Ee=oe(78485),Je=$e=>{const{value:st,formatter:ut,precision:Mt,decimalSeparator:nt,groupSeparator:$t="",prefixCls:Pt}=$e;let dn;if(typeof ut=="function")dn=ut(st);else{const zt=String(st),Xt=zt.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Xt||zt==="-")dn=zt;else{const fn=Xt[1];let an=Xt[2]||"0",it=Xt[4]||"";an=an.replace(/\B(?=(\d{3})+(?!\d))/g,$t),typeof Mt=="number"&&(it=it.padEnd(Mt,"0").slice(0,Mt>0?Mt:0)),it&&(it=`${nt}${it}`),dn=[se.createElement("span",{key:"int",className:`${Pt}-content-value-int`},fn,an),it&&se.createElement("span",{key:"decimal",className:`${Pt}-content-value-decimal`},it)]}}return se.createElement("span",{className:`${Pt}-content-value`},dn)},Ye=oe(17313),tt=oe(83116),ht=oe(37613);const kt=$e=>{const{componentCls:st,marginXXS:ut,padding:Mt,colorTextDescription:nt,titleFontSize:$t,colorTextHeading:Pt,contentFontSize:dn,fontFamily:zt}=$e;return{[`${st}`]:Object.assign(Object.assign({},(0,Ye.Wf)($e)),{[`${st}-title`]:{marginBottom:ut,color:nt,fontSize:$t},[`${st}-skeleton`]:{paddingTop:Mt},[`${st}-content`]:{color:Pt,fontSize:dn,fontFamily:zt,[`${st}-content-value`]:{display:"inline-block",direction:"ltr"},[`${st}-content-prefix, ${st}-content-suffix`]:{display:"inline-block"},[`${st}-content-prefix`]:{marginInlineEnd:ut},[`${st}-content-suffix`]:{marginInlineStart:ut}}})}};var ze=(0,tt.Z)("Statistic",$e=>{const st=(0,ht.TS)($e,{});return[kt(st)]},$e=>{const{fontSizeHeading3:st,fontSize:ut}=$e;return{titleFontSize:ut,contentFontSize:st}}),ne=$e=>{const{prefixCls:st,className:ut,rootClassName:Mt,style:nt,valueStyle:$t,value:Pt=0,title:dn,valueRender:zt,prefix:Xt,suffix:fn,loading:an=!1,onMouseEnter:it,onMouseLeave:Ve,decimalSeparator:gt=".",groupSeparator:Bt=","}=$e,{getPrefixCls:sn,direction:It,statistic:en}=se.useContext(Ke.E_),En=sn("statistic",st),[ei,An]=ze(En),Kn=se.createElement(Je,Object.assign({decimalSeparator:gt,groupSeparator:Bt,prefixCls:En},$e,{value:Pt})),jt=De()(En,{[`${En}-rtl`]:It==="rtl"},en==null?void 0:en.className,ut,Mt,An);return ei(se.createElement("div",{className:jt,style:Object.assign(Object.assign({},en==null?void 0:en.style),nt),onMouseEnter:it,onMouseLeave:Ve},dn&&se.createElement("div",{className:`${En}-title`},dn),se.createElement(Ee.Z,{paragraph:!1,loading:an,className:`${En}-skeleton`},se.createElement("div",{style:$t,className:`${En}-content`},Xt&&se.createElement("span",{className:`${En}-content-prefix`},Xt),zt?zt(Kn):Kn,fn&&se.createElement("span",{className:`${En}-content-suffix`},fn)))))};const ge=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function ue($e,st){let ut=$e;const Mt=/\[[^\]]*]/g,nt=(st.match(Mt)||[]).map(zt=>zt.slice(1,-1)),$t=st.replace(Mt,"[]"),Pt=ge.reduce((zt,Xt)=>{let[fn,an]=Xt;if(zt.includes(fn)){const it=Math.floor(ut/an);return ut-=it*an,zt.replace(new RegExp(`${fn}+`,"g"),Ve=>{const gt=Ve.length;return it.toString().padStart(gt,"0")})}return zt},$t);let dn=0;return Pt.replace(Mt,()=>{const zt=nt[dn];return dn+=1,zt})}function me($e,st){const{format:ut=""}=st,Mt=new Date($e).getTime(),nt=Date.now(),$t=Math.max(Mt-nt,0);return ue($t,ut)}const Se=1e3/30;function Ne($e){return new Date($e).getTime()}const ke=$e=>{const{value:st,format:ut="HH:mm:ss",onChange:Mt,onFinish:nt}=$e,$t=(0,Ce.Z)(),Pt=se.useRef(null),dn=()=>{nt==null||nt(),Pt.current&&(clearInterval(Pt.current),Pt.current=null)},zt=()=>{const an=Ne(st);an>=Date.now()&&(Pt.current=setInterval(()=>{$t(),Mt==null||Mt(an-Date.now()),an<Date.now()&&dn()},Se))};se.useEffect(()=>(zt(),()=>{Pt.current&&(clearInterval(Pt.current),Pt.current=null)}),[st]);const Xt=(an,it)=>me(an,Object.assign(Object.assign({},it),{format:ut})),fn=an=>(0,we.Tm)(an,{title:void 0});return se.createElement(ne,Object.assign({},$e,{valueRender:fn,formatter:Xt}))};var Te=se.memo(ke);ne.Countdown=Te;var We=ne},15969:function(_e,be,oe){"use strict";oe.d(be,{N:function(){return se}});const se=Ce=>({color:Ce.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${Ce.motionDurationSlow}`,"&:focus, &:hover":{color:Ce.colorLinkHover},"&:active":{color:Ce.colorLinkActive}})},78673:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return $t}});var se=oe(50023),Ce=oe(92310),we=oe.n(Ce),Ie=oe(5891),De=oe(80962),Ke=oe(29043),Ee=oe(19149),et=oe(59301),Je=oe(35788),Ye=oe(85108),tt=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],ht=et.forwardRef(function(Pt,dn){var zt,Xt=Pt.prefixCls,fn=Xt===void 0?"rc-switch":Xt,an=Pt.className,it=Pt.checked,Ve=Pt.defaultChecked,gt=Pt.disabled,Bt=Pt.loadingIcon,sn=Pt.checkedChildren,It=Pt.unCheckedChildren,en=Pt.onClick,En=Pt.onChange,ei=Pt.onKeyDown,An=(0,Ee.Z)(Pt,tt),Kn=(0,Je.Z)(!1,{value:it,defaultValue:Ve}),jt=(0,Ke.Z)(Kn,2),Nn=jt[0],Gn=jt[1];function ii(St,rt){var Ft=Nn;return gt||(Ft=St,Gn(Ft),En==null||En(Ft,rt)),Ft}function Sn(St){St.which===Ye.Z.LEFT?ii(!1,St):St.which===Ye.Z.RIGHT&&ii(!0,St),ei==null||ei(St)}function Yt(St){var rt=ii(!Nn,St);en==null||en(rt,St)}var Zt=we()(fn,an,(zt={},(0,De.Z)(zt,"".concat(fn,"-checked"),Nn),(0,De.Z)(zt,"".concat(fn,"-disabled"),gt),zt));return et.createElement("button",(0,Ie.Z)({},An,{type:"button",role:"switch","aria-checked":Nn,disabled:gt,className:Zt,ref:dn,onKeyDown:Sn,onClick:Yt}),Bt,et.createElement("span",{className:"".concat(fn,"-inner")},et.createElement("span",{className:"".concat(fn,"-inner-checked")},sn),et.createElement("span",{className:"".concat(fn,"-inner-unchecked")},It)))});ht.displayName="Switch";var kt=ht,ze=oe(14088),ee=oe(36355),ne=oe(1684),ge=oe(19716),ue=oe(64993),me=oe(17313),Se=oe(83116),Ne=oe(37613);const ke=Pt=>{const{componentCls:dn,trackHeightSM:zt,trackPadding:Xt,trackMinWidthSM:fn,innerMinMarginSM:an,innerMaxMarginSM:it,handleSizeSM:Ve}=Pt,gt=`${dn}-inner`;return{[dn]:{[`&${dn}-small`]:{minWidth:fn,height:zt,lineHeight:`${zt}px`,[`${dn}-inner`]:{paddingInlineStart:it,paddingInlineEnd:an,[`${gt}-checked`]:{marginInlineStart:`calc(-100% + ${Ve+Xt*2}px - ${it*2}px)`,marginInlineEnd:`calc(100% - ${Ve+Xt*2}px + ${it*2}px)`},[`${gt}-unchecked`]:{marginTop:-zt,marginInlineStart:0,marginInlineEnd:0}},[`${dn}-handle`]:{width:Ve,height:Ve},[`${dn}-loading-icon`]:{top:(Ve-Pt.switchLoadingIconSize)/2,fontSize:Pt.switchLoadingIconSize},[`&${dn}-checked`]:{[`${dn}-inner`]:{paddingInlineStart:an,paddingInlineEnd:it,[`${gt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${gt}-unchecked`]:{marginInlineStart:`calc(100% - ${Ve+Xt*2}px + ${it*2}px)`,marginInlineEnd:`calc(-100% + ${Ve+Xt*2}px - ${it*2}px)`}},[`${dn}-handle`]:{insetInlineStart:`calc(100% - ${Ve+Xt}px)`}},[`&:not(${dn}-disabled):active`]:{[`&:not(${dn}-checked) ${gt}`]:{[`${gt}-unchecked`]:{marginInlineStart:Pt.marginXXS/2,marginInlineEnd:-Pt.marginXXS/2}},[`&${dn}-checked ${gt}`]:{[`${gt}-checked`]:{marginInlineStart:-Pt.marginXXS/2,marginInlineEnd:Pt.marginXXS/2}}}}}}},Te=Pt=>{const{componentCls:dn,handleSize:zt}=Pt;return{[dn]:{[`${dn}-loading-icon${Pt.iconCls}`]:{position:"relative",top:(zt-Pt.fontSize)/2,color:Pt.switchLoadingIconColor,verticalAlign:"top"},[`&${dn}-checked ${dn}-loading-icon`]:{color:Pt.switchColor}}}},We=Pt=>{const{componentCls:dn,motion:zt,trackPadding:Xt,handleBg:fn,handleShadow:an,handleSize:it}=Pt,Ve=`${dn}-handle`;return{[dn]:{[Ve]:{position:"absolute",top:Xt,insetInlineStart:Xt,width:it,height:it,transition:`all ${Pt.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:fn,borderRadius:it/2,boxShadow:an,transition:`all ${Pt.switchDuration} ease-in-out`,content:'""'}},[`&${dn}-checked ${Ve}`]:{insetInlineStart:`calc(100% - ${it+Xt}px)`},[`&:not(${dn}-disabled):active`]:zt?{[`${Ve}::before`]:{insetInlineEnd:Pt.switchHandleActiveInset,insetInlineStart:0},[`&${dn}-checked ${Ve}::before`]:{insetInlineEnd:0,insetInlineStart:Pt.switchHandleActiveInset}}:{}}}},$e=Pt=>{const{componentCls:dn,trackHeight:zt,trackPadding:Xt,innerMinMargin:fn,innerMaxMargin:an,handleSize:it}=Pt,Ve=`${dn}-inner`;return{[dn]:{[Ve]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:an,paddingInlineEnd:fn,transition:`padding-inline-start ${Pt.switchDuration} ease-in-out, padding-inline-end ${Pt.switchDuration} ease-in-out`,[`${Ve}-checked, ${Ve}-unchecked`]:{display:"block",color:Pt.colorTextLightSolid,fontSize:Pt.fontSizeSM,transition:`margin-inline-start ${Pt.switchDuration} ease-in-out, margin-inline-end ${Pt.switchDuration} ease-in-out`,pointerEvents:"none"},[`${Ve}-checked`]:{marginInlineStart:`calc(-100% + ${it+Xt*2}px - ${an*2}px)`,marginInlineEnd:`calc(100% - ${it+Xt*2}px + ${an*2}px)`},[`${Ve}-unchecked`]:{marginTop:-zt,marginInlineStart:0,marginInlineEnd:0}},[`&${dn}-checked ${Ve}`]:{paddingInlineStart:fn,paddingInlineEnd:an,[`${Ve}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ve}-unchecked`]:{marginInlineStart:`calc(100% - ${it+Xt*2}px + ${an*2}px)`,marginInlineEnd:`calc(-100% + ${it+Xt*2}px - ${an*2}px)`}},[`&:not(${dn}-disabled):active`]:{[`&:not(${dn}-checked) ${Ve}`]:{[`${Ve}-unchecked`]:{marginInlineStart:Xt*2,marginInlineEnd:-Xt*2}},[`&${dn}-checked ${Ve}`]:{[`${Ve}-checked`]:{marginInlineStart:-Xt*2,marginInlineEnd:Xt*2}}}}}},st=Pt=>{const{componentCls:dn,trackHeight:zt,trackMinWidth:Xt}=Pt;return{[dn]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,me.Wf)(Pt)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Xt,height:zt,lineHeight:`${zt}px`,verticalAlign:"middle",background:Pt.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Pt.motionDurationMid}`,userSelect:"none",[`&:hover:not(${dn}-disabled)`]:{background:Pt.colorTextTertiary}}),(0,me.Qy)(Pt)),{[`&${dn}-checked`]:{background:Pt.switchColor,[`&:hover:not(${dn}-disabled)`]:{background:Pt.colorPrimaryHover}},[`&${dn}-loading, &${dn}-disabled`]:{cursor:"not-allowed",opacity:Pt.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${dn}-rtl`]:{direction:"rtl"}})}};var ut=(0,Se.Z)("Switch",Pt=>{const dn=(0,Ne.TS)(Pt,{switchDuration:Pt.motionDurationMid,switchColor:Pt.colorPrimary,switchDisabledOpacity:Pt.opacityLoading,switchLoadingIconSize:Pt.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${Pt.opacityLoading})`,switchHandleActiveInset:"-30%"});return[st(dn),$e(dn),We(dn),Te(dn),ke(dn)]},Pt=>{const{fontSize:dn,lineHeight:zt,controlHeight:Xt,colorWhite:fn}=Pt,an=dn*zt,it=Xt/2,Ve=2,gt=an-Ve*2,Bt=it-Ve*2;return{trackHeight:an,trackHeightSM:it,trackMinWidth:gt*2+Ve*4,trackMinWidthSM:Bt*2+Ve*2,trackPadding:Ve,handleBg:fn,handleSize:gt,handleSizeSM:Bt,handleShadow:`0 2px 4px 0 ${new ue.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:gt/2,innerMaxMargin:gt+Ve+Ve*2,innerMinMarginSM:Bt/2,innerMaxMarginSM:Bt+Ve+Ve*2}}),Mt=function(Pt,dn){var zt={};for(var Xt in Pt)Object.prototype.hasOwnProperty.call(Pt,Xt)&&dn.indexOf(Xt)<0&&(zt[Xt]=Pt[Xt]);if(Pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fn=0,Xt=Object.getOwnPropertySymbols(Pt);fn<Xt.length;fn++)dn.indexOf(Xt[fn])<0&&Object.prototype.propertyIsEnumerable.call(Pt,Xt[fn])&&(zt[Xt[fn]]=Pt[Xt[fn]]);return zt};const nt=et.forwardRef((Pt,dn)=>{const{prefixCls:zt,size:Xt,disabled:fn,loading:an,className:it,rootClassName:Ve,style:gt}=Pt,Bt=Mt(Pt,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:sn,direction:It,switch:en}=et.useContext(ee.E_),En=et.useContext(ne.Z),ei=(fn!=null?fn:En)||an,An=sn("switch",zt),Kn=et.createElement("div",{className:`${An}-handle`},an&&et.createElement(se.Z,{className:`${An}-loading-icon`})),[jt,Nn]=ut(An),Gn=(0,ge.Z)(Xt),ii=we()(en==null?void 0:en.className,{[`${An}-small`]:Gn==="small",[`${An}-loading`]:an,[`${An}-rtl`]:It==="rtl"},it,Ve,Nn),Sn=Object.assign(Object.assign({},en==null?void 0:en.style),gt);return jt(et.createElement(ze.Z,{component:"Switch"},et.createElement(kt,Object.assign({},Bt,{prefixCls:An,className:ii,style:Sn,disabled:ei,ref:dn,loadingIcon:Kn}))))});nt.__ANT_SWITCH=!0;var $t=nt},2595:function(_e,be,oe){"use strict";oe.d(be,{default:function(){return Ud}});var se={},Ce="rc-table-internal-hook",we=oe(29043),Ie=oe(8107),De=oe(28800),Ke=oe(51346),Ee=oe(59301),et=oe(4676);function Je(mt){var Et=Ee.createContext(void 0),rn=function(Dn){var xn=Dn.value,ri=Dn.children,ai=Ee.useRef(xn);ai.current=xn;var qn=Ee.useState(function(){return{getValue:function(){return ai.current},listeners:new Set}}),bi=(0,we.Z)(qn,1),Ni=bi[0];return(0,De.Z)(function(){(0,et.unstable_batchedUpdates)(function(){Ni.listeners.forEach(function(Ei){Ei(xn)})})},[xn]),Ee.createElement(Et.Provider,{value:Ni},ri)};return{Context:Et,Provider:rn,defaultValue:mt}}function Ye(mt,Et){var rn=(0,Ie.Z)(typeof Et=="function"?Et:function(Ei){if(Et===void 0)return Ei;if(!Array.isArray(Et))return Ei[Et];var qi={};return Et.forEach(function(Ki){qi[Ki]=Ei[Ki]}),qi}),cn=Ee.useContext(mt==null?void 0:mt.Context),Dn=cn||{},xn=Dn.listeners,ri=Dn.getValue,ai=Ee.useRef();ai.current=rn(cn?ri():mt==null?void 0:mt.defaultValue);var qn=Ee.useState({}),bi=(0,we.Z)(qn,2),Ni=bi[1];return(0,De.Z)(function(){if(!cn)return;function Ei(qi){var Ki=rn(qi);(0,Ke.Z)(ai.current,Ki,!0)||Ni({})}return xn.add(Ei),function(){xn.delete(Ei)}},[cn]),ai.current}var tt=oe(5891),ht=oe(20475);function kt(){var mt=Ee.createContext(null);function Et(){return Ee.useContext(mt)}function rn(Dn,xn){var ri=(0,ht.Yr)(Dn),ai=function(bi,Ni){var Ei=ri?{ref:Ni}:{},qi=Ee.useRef(0),Ki=Ee.useRef(bi),Ui=Et();return Ui!==null?Ee.createElement(Dn,(0,tt.Z)({},bi,Ei)):((!xn||xn(Ki.current,bi))&&(qi.current+=1),Ki.current=bi,Ee.createElement(mt.Provider,{value:qi.current},Ee.createElement(Dn,(0,tt.Z)({},bi,Ei))))};return ri?Ee.forwardRef(ai):ai}function cn(Dn,xn){var ri=(0,ht.Yr)(Dn),ai=function(bi,Ni){var Ei=ri?{ref:Ni}:{};return Et(),Ee.createElement(Dn,(0,tt.Z)({},bi,Ei))};return ri?Ee.memo(Ee.forwardRef(ai),xn):Ee.memo(ai,xn)}return{makeImmutable:rn,responseImmutable:cn,useImmutableMark:Et}}var ze=kt(),ee=ze.makeImmutable,ne=ze.responseImmutable,ge=ze.useImmutableMark,ue=kt(),me=ue.makeImmutable,Se=ue.responseImmutable,Ne=ue.useImmutableMark,ke=Je(),Te=ke;function We(mt,Et){var rn=Ee.useRef(0);rn.current+=1;var cn=Ee.useRef(mt),Dn=[];Object.keys(mt||{}).map(function(ri){var ai;(mt==null?void 0:mt[ri])!==((ai=cn.current)===null||ai===void 0?void 0:ai[ri])&&Dn.push(ri)}),cn.current=mt;var xn=Ee.useRef([]);return Dn.length&&(xn.current=Dn),Ee.useDebugValue(rn.current),Ee.useDebugValue(xn.current.join(", ")),Et&&console.log("".concat(Et,":"),rn.current,xn.current),rn.current}var $e=null,st=Ee.memo(function(){var mt=We();return Ee.createElement("h1",null,"Render Times: ",mt)});st.displayName="RenderBlock";var ut=oe(80665),Mt=oe(57259),nt=oe(80962),$t=oe(92310),Pt=oe.n($t),dn=oe(79722),zt=oe(69004),Xt=oe(51395),fn=Ee.createContext({renderWithProps:!1}),an=fn,it="RC_TABLE_KEY";function Ve(mt){return mt==null?[]:Array.isArray(mt)?mt:[mt]}function gt(mt){var Et=[],rn={};return mt.forEach(function(cn){for(var Dn=cn||{},xn=Dn.key,ri=Dn.dataIndex,ai=xn||Ve(ri).join("-")||it;rn[ai];)ai="".concat(ai,"_next");rn[ai]=!0,Et.push(ai)}),Et}function Bt(mt){return mt!=null}function sn(mt){return mt&&(0,ut.Z)(mt)==="object"&&!Array.isArray(mt)&&!Ee.isValidElement(mt)}function It(mt,Et,rn,cn,Dn,xn){var ri=Ee.useContext(an),ai=Ne(),qn=(0,dn.Z)(function(){if(Bt(cn))return[cn];var bi=Et==null||Et===""?[]:Array.isArray(Et)?Et:[Et],Ni=(0,zt.Z)(mt,bi),Ei=Ni,qi=void 0;if(Dn){var Ki=Dn(Ni,mt,rn);sn(Ki)?(Ei=Ki.children,qi=Ki.props,ri.renderWithProps=!0):Ei=Ki}return[Ei,qi]},[ai,mt,cn,Et,Dn,rn],function(bi,Ni){if(xn){var Ei=(0,we.Z)(bi,2),qi=Ei[1],Ki=(0,we.Z)(Ni,2),Ui=Ki[1];return xn(Ui,qi)}return ri.renderWithProps?!0:!(0,Ke.Z)(bi,Ni,!0)});return qn}function en(mt,Et,rn,cn){var Dn=mt+Et-1;return mt<=cn&&Dn>=rn}function En(mt,Et){return Ye(Te,function(rn){var cn=en(mt,Et||1,rn.hoverStartRow,rn.hoverEndRow);return[cn,rn.onHover]})}var ei=function(Et){var rn=Et.ellipsis,cn=Et.rowType,Dn=Et.children,xn,ri=rn===!0?{showTitle:!0}:rn;return ri&&(ri.showTitle||cn==="header")&&(typeof Dn=="string"||typeof Dn=="number"?xn=Dn.toString():Ee.isValidElement(Dn)&&typeof Dn.props.children=="string"&&(xn=Dn.props.children)),xn};function An(mt){var Et,rn,cn,Dn,xn,ri,ai,qn,bi=mt.component,Ni=mt.children,Ei=mt.ellipsis,qi=mt.scope,Ki=mt.prefixCls,Ui=mt.className,Lr=mt.align,Vi=mt.record,Pr=mt.render,yr=mt.dataIndex,zr=mt.renderIndex,So=mt.shouldCellUpdate,Lo=mt.index,Tr=mt.rowType,mo=mt.colSpan,Zo=mt.rowSpan,Hr=mt.fixLeft,uo=mt.fixRight,vr=mt.firstFixLeft,cr=mt.lastFixLeft,to=mt.firstFixRight,Co=mt.lastFixRight,Ro=mt.appendNode,jo=mt.additionalProps,Or=jo===void 0?{}:jo,Qo=mt.isSticky,Jo="".concat(Ki,"-cell"),Da=Ye(Te,["supportSticky","allColumnsFixedLeft"]),la=Da.supportSticky,Ms=Da.allColumnsFixedLeft,vs=It(Vi,yr,zr,Ni,Pr,So),ea=(0,we.Z)(vs,2),No=ea[0],Ba=ea[1],bs={},ys=typeof Hr=="number"&&la,qs=typeof uo=="number"&&la;ys&&(bs.position="sticky",bs.left=Hr),qs&&(bs.position="sticky",bs.right=uo);var _o=(Et=(rn=(cn=Ba==null?void 0:Ba.colSpan)!==null&&cn!==void 0?cn:Or.colSpan)!==null&&rn!==void 0?rn:mo)!==null&&Et!==void 0?Et:1,wi=(Dn=(xn=(ri=Ba==null?void 0:Ba.rowSpan)!==null&&ri!==void 0?ri:Or.rowSpan)!==null&&xn!==void 0?xn:Zo)!==null&&Dn!==void 0?Dn:1,er=En(Lo,wi),qr=(0,we.Z)(er,2),La=qr[0],ho=qr[1],Yo=function(sl){var Ml;Vi&&ho(Lo,Lo+wi-1),Or==null||(Ml=Or.onMouseEnter)===null||Ml===void 0||Ml.call(Or,sl)},Sa=function(sl){var Ml;Vi&&ho(-1,-1),Or==null||(Ml=Or.onMouseLeave)===null||Ml===void 0||Ml.call(Or,sl)};if(_o===0||wi===0)return null;var ja=(ai=Or.title)!==null&&ai!==void 0?ai:ei({rowType:Tr,ellipsis:Ei,children:No}),xl=Pt()(Jo,Ui,(qn={},(0,nt.Z)(qn,"".concat(Jo,"-fix-left"),ys&&la),(0,nt.Z)(qn,"".concat(Jo,"-fix-left-first"),vr&&la),(0,nt.Z)(qn,"".concat(Jo,"-fix-left-last"),cr&&la),(0,nt.Z)(qn,"".concat(Jo,"-fix-left-all"),cr&&Ms&&la),(0,nt.Z)(qn,"".concat(Jo,"-fix-right"),qs&&la),(0,nt.Z)(qn,"".concat(Jo,"-fix-right-first"),to&&la),(0,nt.Z)(qn,"".concat(Jo,"-fix-right-last"),Co&&la),(0,nt.Z)(qn,"".concat(Jo,"-ellipsis"),Ei),(0,nt.Z)(qn,"".concat(Jo,"-with-append"),Ro),(0,nt.Z)(qn,"".concat(Jo,"-fix-sticky"),(ys||qs)&&Qo&&la),(0,nt.Z)(qn,"".concat(Jo,"-row-hover"),!Ba&&La),qn),Or.className,Ba==null?void 0:Ba.className),al={};Lr&&(al.textAlign=Lr);var ql=(0,Mt.Z)((0,Mt.Z)((0,Mt.Z)((0,Mt.Z)({},bs),Or.style),al),Ba==null?void 0:Ba.style),Ya=No;return(0,ut.Z)(Ya)==="object"&&!Array.isArray(Ya)&&!Ee.isValidElement(Ya)&&(Ya=null),Ei&&(cr||to)&&(Ya=Ee.createElement("span",{className:"".concat(Jo,"-content")},Ya)),Ee.createElement(bi,(0,tt.Z)({},Ba,Or,{className:xl,style:ql,title:ja,scope:qi,onMouseEnter:Yo,onMouseLeave:Sa,colSpan:_o!==1?_o:null,rowSpan:wi!==1?wi:null}),Ro,Ya)}var Kn=Ee.memo(An);function jt(mt,Et,rn,cn,Dn,xn){var ri=rn[mt]||{},ai=rn[Et]||{},qn,bi;ri.fixed==="left"?qn=cn.left[Dn==="rtl"?Et:mt]:ai.fixed==="right"&&(bi=cn.right[Dn==="rtl"?mt:Et]);var Ni=!1,Ei=!1,qi=!1,Ki=!1,Ui=rn[Et+1],Lr=rn[mt-1],Vi=!(xn!=null&&xn.children);if(Dn==="rtl"){if(qn!==void 0){var Pr=Lr&&Lr.fixed==="left";Ki=!Pr&&Vi}else if(bi!==void 0){var yr=Ui&&Ui.fixed==="right";qi=!yr&&Vi}}else if(qn!==void 0){var zr=Ui&&Ui.fixed==="left";Ni=!zr&&Vi}else if(bi!==void 0){var So=Lr&&Lr.fixed==="right";Ei=!So&&Vi}return{fixLeft:qn,fixRight:bi,lastFixLeft:Ni,firstFixRight:Ei,lastFixRight:qi,firstFixLeft:Ki,isSticky:cn.isSticky}}var Nn=Ee.createContext({}),Gn=Nn;function ii(mt){var Et=mt.className,rn=mt.index,cn=mt.children,Dn=mt.colSpan,xn=Dn===void 0?1:Dn,ri=mt.rowSpan,ai=mt.align,qn=Ye(Te,["prefixCls","direction"]),bi=qn.prefixCls,Ni=qn.direction,Ei=Ee.useContext(Gn),qi=Ei.scrollColumnIndex,Ki=Ei.stickyOffsets,Ui=Ei.flattenColumns,Lr=Ei.columns,Vi=rn+xn-1,Pr=Vi+1===qi?xn+1:xn,yr=jt(rn,rn+Pr-1,Ui,Ki,Ni,Lr==null?void 0:Lr[rn]);return Ee.createElement(Kn,(0,tt.Z)({className:Et,index:rn,component:"td",prefixCls:bi,record:null,dataIndex:null,align:ai,colSpan:Pr,rowSpan:ri,render:function(){return cn}},yr))}var Sn=oe(19149),Yt=["children"];function Zt(mt){var Et=mt.children,rn=(0,Sn.Z)(mt,Yt);return Ee.createElement("tr",rn,Et)}function St(mt){var Et=mt.children;return Et}St.Row=Zt,St.Cell=ii;var rt=St;function Ft(mt){var Et=mt.children,rn=mt.stickyOffsets,cn=mt.flattenColumns,Dn=mt.columns,xn=Ye(Te,"prefixCls"),ri=cn.length-1,ai=cn[ri],qn=Ee.useMemo(function(){return{stickyOffsets:rn,flattenColumns:cn,scrollColumnIndex:ai!=null&&ai.scrollbar?ri:null,columns:Dn}},[ai,cn,ri,rn,Dn]);return Ee.createElement(Gn.Provider,{value:qn},Ee.createElement("tfoot",{className:"".concat(xn,"-summary")},Et))}var Ot=Se(Ft),ft=rt,ct=oe(80764),Ge=oe(29301),Ae=oe(48886),xe=oe(24387),je=oe(59055),Qe=oe(36994);function Oe(mt,Et,rn,cn,Dn,xn,ri){mt.push({record:Et,indent:rn,index:ri});var ai=xn(Et),qn=Dn==null?void 0:Dn.has(ai);if(Et&&Array.isArray(Et[cn])&&qn)for(var bi=0;bi<Et[cn].length;bi+=1)Oe(mt,Et[cn][bi],rn+1,cn,Dn,xn,bi)}function xt(mt,Et,rn,cn){var Dn=Ee.useMemo(function(){if(rn!=null&&rn.size){for(var xn=[],ri=0;ri<(mt==null?void 0:mt.length);ri+=1){var ai=mt[ri];Oe(xn,ai,0,Et,rn,cn,ri)}return xn}return mt==null?void 0:mt.map(function(qn,bi){return{record:qn,indent:0,index:bi}})},[mt,Et,rn,cn]);return Dn}function hn(mt){var Et=mt.prefixCls,rn=mt.children,cn=mt.component,Dn=mt.cellComponent,xn=mt.className,ri=mt.expanded,ai=mt.colSpan,qn=mt.isEmpty,bi=Ye(Te,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Ni=bi.scrollbarSize,Ei=bi.fixHeader,qi=bi.fixColumn,Ki=bi.componentWidth,Ui=bi.horizonScroll,Lr=rn;return(qn?Ui&&Ki:qi)&&(Lr=Ee.createElement("div",{style:{width:Ki-(Ei?Ni:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Et,"-expanded-row-fixed")},Lr)),Ee.createElement(cn,{className:xn,style:{display:ri?null:"none"}},Ee.createElement(Kn,{component:Dn,prefixCls:Et,colSpan:ai},Lr))}var Pn=hn;function wt(mt,Et,rn,cn){var Dn=Ye(Te,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),xn=Dn.flattenColumns,ri=Dn.expandableType,ai=Dn.expandedKeys,qn=Dn.childrenColumnName,bi=Dn.onTriggerExpand,Ni=Dn.rowExpandable,Ei=Dn.onRow,qi=Dn.expandRowByClick,Ki=Dn.rowClassName,Ui=ri==="nest",Lr=ri==="row"&&(!Ni||Ni(mt)),Vi=Lr||Ui,Pr=ai&&ai.has(Et),yr=qn&&mt&&mt[qn],zr=(0,ct.useEvent)(bi),So=Ei==null?void 0:Ei(mt,rn),Lo=So==null?void 0:So.onClick,Tr=function(uo){qi&&Vi&&bi(mt,uo);for(var vr=arguments.length,cr=new Array(vr>1?vr-1:0),to=1;to<vr;to++)cr[to-1]=arguments[to];Lo==null||Lo.apply(void 0,[uo].concat(cr))},mo;typeof Ki=="string"?mo=Ki:typeof Ki=="function"&&(mo=Ki(mt,rn,cn));var Zo=gt(xn);return(0,Mt.Z)((0,Mt.Z)({},Dn),{},{columnsKey:Zo,nestExpandable:Ui,expanded:Pr,hasNestChildren:yr,record:mt,onTriggerExpand:zr,rowSupportExpand:Lr,expandable:Vi,rowProps:(0,Mt.Z)((0,Mt.Z)({},So),{},{className:Pt()(mo,So==null?void 0:So.className),onClick:Tr})})}function nn(mt,Et,rn,cn,Dn){var xn=mt.record,ri=mt.prefixCls,ai=mt.columnsKey,qn=mt.fixedInfoList,bi=mt.expandIconColumnIndex,Ni=mt.nestExpandable,Ei=mt.indentSize,qi=mt.expandIcon,Ki=mt.expanded,Ui=mt.hasNestChildren,Lr=mt.onTriggerExpand,Vi=ai[rn],Pr=qn[rn],yr;rn===(bi||0)&&Ni&&(yr=Ee.createElement(Ee.Fragment,null,Ee.createElement("span",{style:{paddingLeft:"".concat(Ei*cn,"px")},className:"".concat(ri,"-row-indent indent-level-").concat(cn)}),qi({prefixCls:ri,expanded:Ki,expandable:Ui,record:xn,onExpand:Lr})));var zr;return Et.onCell&&(zr=Et.onCell(xn,Dn)),{key:Vi,fixedInfo:Pr,appendCellNode:yr,additionalCellProps:zr||{}}}function Mn(mt){var Et=mt.className,rn=mt.style,cn=mt.record,Dn=mt.index,xn=mt.renderIndex,ri=mt.rowKey,ai=mt.indent,qn=ai===void 0?0:ai,bi=mt.rowComponent,Ni=mt.cellComponent,Ei=mt.scopeCellComponent,qi=wt(cn,ri,Dn,qn),Ki=qi.prefixCls,Ui=qi.flattenColumns,Lr=qi.expandedRowClassName,Vi=qi.expandedRowRender,Pr=qi.rowProps,yr=qi.expanded,zr=qi.rowSupportExpand,So=Ee.useState(!1),Lo=(0,we.Z)(So,2),Tr=Lo[0],mo=Lo[1];Ee.useEffect(function(){yr&&mo(!0)},[yr]);var Zo=Ee.createElement(bi,(0,tt.Z)({},Pr,{"data-row-key":ri,className:Pt()(Et,"".concat(Ki,"-row"),"".concat(Ki,"-row-level-").concat(qn),Pr==null?void 0:Pr.className),style:(0,Mt.Z)((0,Mt.Z)({},rn),Pr==null?void 0:Pr.style)}),Ui.map(function(cr,to){var Co=cr.render,Ro=cr.dataIndex,jo=cr.className,Or=nn(qi,cr,to,qn,Dn),Qo=Or.key,Jo=Or.fixedInfo,Da=Or.appendCellNode,la=Or.additionalCellProps;return Ee.createElement(Kn,(0,tt.Z)({className:jo,ellipsis:cr.ellipsis,align:cr.align,scope:cr.rowScope,component:cr.rowScope?Ei:Ni,prefixCls:Ki,key:Qo,record:cn,index:Dn,renderIndex:xn,dataIndex:Ro,render:Co,shouldCellUpdate:cr.shouldCellUpdate},Jo,{appendNode:Da,additionalProps:la}))})),Hr;if(zr&&(Tr||yr)){var uo=Vi(cn,Dn,qn+1,yr),vr=Lr&&Lr(cn,Dn,qn);Hr=Ee.createElement(Pn,{expanded:yr,className:Pt()("".concat(Ki,"-expanded-row"),"".concat(Ki,"-expanded-row-level-").concat(qn+1),vr),prefixCls:Ki,component:bi,cellComponent:Ni,colSpan:Ui.length,isEmpty:!1},uo)}return Ee.createElement(Ee.Fragment,null,Zo,Hr)}Mn.displayName="BodyRow";var Zn=Se(Mn);function li(mt){var Et=mt.columnKey,rn=mt.onColumnResize,cn=Ee.useRef();return Ee.useEffect(function(){cn.current&&rn(Et,cn.current.offsetWidth)},[]),Ee.createElement(Ge.Z,{data:Et},Ee.createElement("td",{ref:cn,style:{padding:0,border:0,height:0}},Ee.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function xi(mt){var Et=mt.prefixCls,rn=mt.columnsKey,cn=mt.onColumnResize;return Ee.createElement("tr",{"aria-hidden":"true",className:"".concat(Et,"-measure-row"),style:{height:0,fontSize:0}},Ee.createElement(Ge.Z.Collection,{onBatchResize:function(xn){xn.forEach(function(ri){var ai=ri.data,qn=ri.size;cn(ai,qn.offsetWidth)})}},rn.map(function(Dn){return Ee.createElement(li,{key:Dn,columnKey:Dn,onColumnResize:cn})})))}function Mi(mt){var Et=mt.data,rn=mt.measureColumnWidth,cn=Ye(Te,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Dn=cn.prefixCls,xn=cn.getComponent,ri=cn.onColumnResize,ai=cn.flattenColumns,qn=cn.getRowKey,bi=cn.expandedKeys,Ni=cn.childrenColumnName,Ei=cn.emptyNode,qi=xt(Et,Ni,bi,qn),Ki=Ee.useRef({renderWithProps:!1}),Ui=xn(["body","wrapper"],"tbody"),Lr=xn(["body","row"],"tr"),Vi=xn(["body","cell"],"td"),Pr=xn(["body","cell"],"th"),yr;Et.length?yr=qi.map(function(So,Lo){var Tr=So.record,mo=So.indent,Zo=So.index,Hr=qn(Tr,Lo);return Ee.createElement(Zn,{key:Hr,rowKey:Hr,record:Tr,index:Lo,renderIndex:Zo,rowComponent:Lr,cellComponent:Vi,scopeCellComponent:Pr,getRowKey:qn,indent:mo})}):yr=Ee.createElement(Pn,{expanded:!0,className:"".concat(Dn,"-placeholder"),prefixCls:Dn,component:Lr,cellComponent:Vi,colSpan:ai.length,isEmpty:!0},Ei);var zr=gt(ai);return Ee.createElement(an.Provider,{value:Ki.current},Ee.createElement(Ui,{className:"".concat(Dn,"-tbody")},rn&&Ee.createElement(xi,{prefixCls:Dn,columnsKey:zr,onColumnResize:ri}),yr))}Mi.displayName="Body";var Si=Se(Mi),Ri=["expandable"],lr="RC_TABLE_INTERNAL_COL_DEFINE";function dr(mt){var Et=mt.expandable,rn=(0,Sn.Z)(mt,Ri),cn;return"expandable"in mt?cn=(0,Mt.Z)((0,Mt.Z)({},rn),Et):cn=rn,cn.showExpandColumn===!1&&(cn.expandIconColumnIndex=-1),cn}var ur=["columnType"];function Sr(mt){for(var Et=mt.colWidths,rn=mt.columns,cn=mt.columCount,Dn=[],xn=cn||rn.length,ri=!1,ai=xn-1;ai>=0;ai-=1){var qn=Et[ai],bi=rn&&rn[ai],Ni=bi&&bi[lr];if(qn||Ni||ri){var Ei=Ni||{},qi=Ei.columnType,Ki=(0,Sn.Z)(Ei,ur);Dn.unshift(Ee.createElement("col",(0,tt.Z)({key:ai,style:{width:qn}},Ki))),ri=!0}}return Ee.createElement("colgroup",null,Dn)}var Wr=Sr,Gi=oe(26390),Zr=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Yi(mt,Et){return(0,Ee.useMemo)(function(){for(var rn=[],cn=0;cn<Et;cn+=1){var Dn=mt[cn];if(Dn!==void 0)rn[cn]=Dn;else return null}return rn},[mt.join("_"),Et])}var Ue=Ee.forwardRef(function(mt,Et){var rn=mt.className,cn=mt.noData,Dn=mt.columns,xn=mt.flattenColumns,ri=mt.colWidths,ai=mt.columCount,qn=mt.stickyOffsets,bi=mt.direction,Ni=mt.fixHeader,Ei=mt.stickyTopOffset,qi=mt.stickyBottomOffset,Ki=mt.stickyClassName,Ui=mt.onScroll,Lr=mt.maxContentScroll,Vi=mt.children,Pr=(0,Sn.Z)(mt,Zr),yr=Ye(Te,["prefixCls","scrollbarSize","isSticky"]),zr=yr.prefixCls,So=yr.scrollbarSize,Lo=yr.isSticky,Tr=Lo&&!Ni?0:So,mo=Ee.useRef(null),Zo=Ee.useCallback(function(jo){(0,ht.mH)(Et,jo),(0,ht.mH)(mo,jo)},[]);Ee.useEffect(function(){var jo;function Or(Qo){var Jo=Qo,Da=Jo.currentTarget,la=Jo.deltaX;la&&(Ui({currentTarget:Da,scrollLeft:Da.scrollLeft+la}),Qo.preventDefault())}return(jo=mo.current)===null||jo===void 0||jo.addEventListener("wheel",Or),function(){var Qo;(Qo=mo.current)===null||Qo===void 0||Qo.removeEventListener("wheel",Or)}},[]);var Hr=Ee.useMemo(function(){return xn.every(function(jo){return jo.width})},[xn]),uo=xn[xn.length-1],vr={fixed:uo?uo.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(zr,"-cell-scrollbar")}}},cr=(0,Ee.useMemo)(function(){return Tr?[].concat((0,Gi.Z)(Dn),[vr]):Dn},[Tr,Dn]),to=(0,Ee.useMemo)(function(){return Tr?[].concat((0,Gi.Z)(xn),[vr]):xn},[Tr,xn]),Co=(0,Ee.useMemo)(function(){var jo=qn.right,Or=qn.left;return(0,Mt.Z)((0,Mt.Z)({},qn),{},{left:bi==="rtl"?[].concat((0,Gi.Z)(Or.map(function(Qo){return Qo+Tr})),[0]):Or,right:bi==="rtl"?jo:[].concat((0,Gi.Z)(jo.map(function(Qo){return Qo+Tr})),[0]),isSticky:Lo})},[Tr,qn,Lo]),Ro=Yi(ri,ai);return Ee.createElement("div",{style:(0,Mt.Z)({overflow:"hidden"},Lo?{top:Ei,bottom:qi}:{}),ref:Zo,className:Pt()(rn,(0,nt.Z)({},Ki,!!Ki))},Ee.createElement("table",{style:{tableLayout:"fixed",visibility:cn||Ro?null:"hidden"}},(!cn||!Lr||Hr)&&Ee.createElement(Wr,{colWidths:Ro?[].concat((0,Gi.Z)(Ro),[Tr]):[],columCount:ai+1,columns:to}),Vi((0,Mt.Z)((0,Mt.Z)({},Pr),{},{stickyOffsets:Co,columns:cr,flattenColumns:to}))))});Ue.displayName="FixedHolder";var no=Ee.memo(Ue);function pr(mt){var Et=mt.cells,rn=mt.stickyOffsets,cn=mt.flattenColumns,Dn=mt.rowComponent,xn=mt.cellComponent,ri=mt.tdCellComponent,ai=mt.onHeaderRow,qn=mt.index,bi=Ye(Te,["prefixCls","direction"]),Ni=bi.prefixCls,Ei=bi.direction,qi;ai&&(qi=ai(Et.map(function(Ui){return Ui.column}),qn));var Ki=gt(Et.map(function(Ui){return Ui.column}));return Ee.createElement(Dn,qi,Et.map(function(Ui,Lr){var Vi=Ui.column,Pr=jt(Ui.colStart,Ui.colEnd,cn,rn,Ei,Vi),yr;return Vi&&Vi.onHeaderCell&&(yr=Ui.column.onHeaderCell(Vi)),Ee.createElement(Kn,(0,tt.Z)({},Ui,{scope:Vi.title?Ui.colSpan>1?"colgroup":"col":null,ellipsis:Vi.ellipsis,align:Vi.align,component:Vi.title?xn:ri,prefixCls:Ni,key:Ki[Lr]},Pr,{additionalProps:yr,rowType:"header"}))}))}pr.displayName="HeaderRow";var fo=pr;function Fo(mt){var Et=[];function rn(ri,ai){var qn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Et[qn]=Et[qn]||[];var bi=ai,Ni=ri.filter(Boolean).map(function(Ei){var qi={key:Ei.key,className:Ei.className||"",children:Ei.title,column:Ei,colStart:bi},Ki=1,Ui=Ei.children;return Ui&&Ui.length>0&&(Ki=rn(Ui,bi,qn+1).reduce(function(Lr,Vi){return Lr+Vi},0),qi.hasSubColumns=!0),"colSpan"in Ei&&(Ki=Ei.colSpan),"rowSpan"in Ei&&(qi.rowSpan=Ei.rowSpan),qi.colSpan=Ki,qi.colEnd=qi.colStart+Ki-1,Et[qn].push(qi),bi+=Ki,Ki});return Ni}rn(mt,0);for(var cn=Et.length,Dn=function(ai){Et[ai].forEach(function(qn){!("rowSpan"in qn)&&!qn.hasSubColumns&&(qn.rowSpan=cn-ai)})},xn=0;xn<cn;xn+=1)Dn(xn);return Et}function Vo(mt){var Et=mt.stickyOffsets,rn=mt.columns,cn=mt.flattenColumns,Dn=mt.onHeaderRow,xn=Ye(Te,["prefixCls","getComponent"]),ri=xn.prefixCls,ai=xn.getComponent,qn=Ee.useMemo(function(){return Fo(rn)},[rn]),bi=ai(["header","wrapper"],"thead"),Ni=ai(["header","row"],"tr"),Ei=ai(["header","cell"],"th"),qi=ai(["header","cell"],"td");return Ee.createElement(bi,{className:"".concat(ri,"-thead")},qn.map(function(Ki,Ui){var Lr=Ee.createElement(fo,{key:Ui,flattenColumns:cn,cells:Ki,stickyOffsets:Et,rowComponent:Ni,cellComponent:Ei,tdCellComponent:qi,onHeaderRow:Dn,index:Ui});return Lr}))}var Io=Se(Vo),Oi=oe(38298);function on(mt){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Et=="number"?Et:Et.endsWith("%")?mt*parseFloat(Et)/100:null}function ln(mt,Et){return Ee.useMemo(function(){if(Et&&Et>0){var rn=0,cn=0;mt.forEach(function(bi){var Ni=on(Et,bi.width);Ni?rn+=Ni:cn+=1});var Dn=Et-rn,xn=cn,ri=Dn/cn,ai=0,qn=mt.map(function(bi){var Ni=(0,Mt.Z)({},bi),Ei=on(Et,Ni.width);if(Ei)Ni.width=Ei;else{var qi=Math.floor(ri);Ni.width=xn===1?Dn:qi,Dn-=qi,xn-=1}return ai+=Ni.width,Ni});return[qn,ai]}return[mt,Et]},[mt,Et])}var qt=["children"],Nt=["fixed"];function On(mt){return(0,Oi.Z)(mt).filter(function(Et){return Ee.isValidElement(Et)}).map(function(Et){var rn=Et.key,cn=Et.props,Dn=cn.children,xn=(0,Sn.Z)(cn,qt),ri=(0,Mt.Z)({key:rn},xn);return Dn&&(ri.children=On(Dn)),ri})}function Un(mt){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return mt.filter(function(rn){return rn&&(0,ut.Z)(rn)==="object"}).reduce(function(rn,cn,Dn){var xn=cn.fixed,ri=xn===!0?"left":xn,ai="".concat(Et,"-").concat(Dn),qn=cn.children;return qn&&qn.length>0?[].concat((0,Gi.Z)(rn),(0,Gi.Z)(Un(qn,ai).map(function(bi){return(0,Mt.Z)({fixed:ri},bi)}))):[].concat((0,Gi.Z)(rn),[(0,Mt.Z)((0,Mt.Z)({key:ai},cn),{},{fixed:ri})])},[])}function Vt(mt){for(var Et=!0,rn=0;rn<mt.length;rn+=1){var cn=mt[rn];if(Et&&cn.fixed!=="left")Et=!1;else if(!Et&&cn.fixed==="left"){warning(!1,"Index ".concat(rn-1," of `columns` missing `fixed='left'` prop."));break}}for(var Dn=!0,xn=mt.length-1;xn>=0;xn-=1){var ri=mt[xn];if(Dn&&ri.fixed!=="right")Dn=!1;else if(!Dn&&ri.fixed==="right"){warning(!1,"Index ".concat(xn+1," of `columns` missing `fixed='right'` prop."));break}}}function yt(mt){return mt.map(function(Et){var rn=Et.fixed,cn=(0,Sn.Z)(Et,Nt),Dn=rn;return rn==="left"?Dn="right":rn==="right"&&(Dn="left"),(0,Mt.Z)({fixed:Dn},cn)})}function In(mt,Et){var rn=mt.prefixCls,cn=mt.columns,Dn=mt.children,xn=mt.expandable,ri=mt.expandedKeys,ai=mt.columnTitle,qn=mt.getRowKey,bi=mt.onTriggerExpand,Ni=mt.expandIcon,Ei=mt.rowExpandable,qi=mt.expandIconColumnIndex,Ki=mt.direction,Ui=mt.expandRowByClick,Lr=mt.columnWidth,Vi=mt.fixed,Pr=mt.scrollWidth,yr=Ee.useMemo(function(){return cn||On(Dn)},[cn,Dn]),zr=Ee.useMemo(function(){if(xn){var uo,vr=yr.slice();if(!vr.includes(se)){var cr=qi||0;cr>=0&&vr.splice(cr,0,se)}var to=vr.indexOf(se);vr=vr.filter(function(Or,Qo){return Or!==se||Qo===to});var Co=yr[to],Ro;(Vi==="left"||Vi)&&!qi?Ro="left":(Vi==="right"||Vi)&&qi===yr.length?Ro="right":Ro=Co?Co.fixed:null;var jo=(uo={},(0,nt.Z)(uo,lr,{className:"".concat(rn,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,nt.Z)(uo,"title",ai),(0,nt.Z)(uo,"fixed",Ro),(0,nt.Z)(uo,"className","".concat(rn,"-row-expand-icon-cell")),(0,nt.Z)(uo,"width",Lr),(0,nt.Z)(uo,"render",function(Qo,Jo,Da){var la=qn(Jo,Da),Ms=ri.has(la),vs=Ei?Ei(Jo):!0,ea=Ni({prefixCls:rn,expanded:Ms,expandable:vs,record:Jo,onExpand:bi});return Ui?Ee.createElement("span",{onClick:function(Ba){return Ba.stopPropagation()}},ea):ea}),uo);return vr.map(function(Or){return Or===se?jo:Or})}return yr.filter(function(Or){return Or!==se})},[xn,yr,qn,ri,Ni,Ki]),So=Ee.useMemo(function(){var uo=zr;return Et&&(uo=Et(uo)),uo.length||(uo=[{render:function(){return null}}]),uo},[Et,zr,Ki]),Lo=Ee.useMemo(function(){return Ki==="rtl"?yt(Un(So)):Un(So)},[So,Ki,Pr]),Tr=ln(Lo,Pr),mo=(0,we.Z)(Tr,2),Zo=mo[0],Hr=mo[1];return[So,Zo,Hr]}var zn=In;function mi(mt){var Et,rn=mt.prefixCls,cn=mt.record,Dn=mt.onExpand,xn=mt.expanded,ri=mt.expandable,ai="".concat(rn,"-row-expand-icon");if(!ri)return Ee.createElement("span",{className:Pt()(ai,"".concat(rn,"-row-spaced"))});var qn=function(Ni){Dn(cn,Ni),Ni.stopPropagation()};return Ee.createElement("span",{className:Pt()(ai,(Et={},(0,nt.Z)(Et,"".concat(rn,"-row-expanded"),xn),(0,nt.Z)(Et,"".concat(rn,"-row-collapsed"),!xn),Et)),onClick:qn})}function Rn(mt,Et,rn){var cn=[];function Dn(xn){(xn||[]).forEach(function(ri,ai){cn.push(Et(ri,ai)),Dn(ri[rn])})}return Dn(mt),cn}function bt(mt,Et,rn){var cn=dr(mt),Dn=cn.expandIcon,xn=cn.expandedRowKeys,ri=cn.defaultExpandedRowKeys,ai=cn.defaultExpandAllRows,qn=cn.expandedRowRender,bi=cn.onExpand,Ni=cn.onExpandedRowsChange,Ei=cn.childrenColumnName,qi=Dn||mi,Ki=Ei||"children",Ui=Ee.useMemo(function(){return qn?"row":mt.expandable&&mt.internalHooks===Ce&&mt.expandable.__PARENT_RENDER_ICON__||Et.some(function(Lo){return Lo&&(0,ut.Z)(Lo)==="object"&&Lo[Ki]})?"nest":!1},[!!qn,Et]),Lr=Ee.useState(function(){return ri||(ai?Rn(Et,rn,Ki):[])}),Vi=(0,we.Z)(Lr,2),Pr=Vi[0],yr=Vi[1],zr=Ee.useMemo(function(){return new Set(xn||Pr||[])},[xn,Pr]),So=Ee.useCallback(function(Lo){var Tr=rn(Lo,Et.indexOf(Lo)),mo,Zo=zr.has(Tr);Zo?(zr.delete(Tr),mo=(0,Gi.Z)(zr)):mo=[].concat((0,Gi.Z)(zr),[Tr]),yr(mo),bi&&bi(!Zo,Lo),Ni&&Ni(mo)},[rn,zr,Et,bi,Ni]);return[cn,Ui,zr,qi,Ki,So]}function Ut(mt,Et,rn,cn){var Dn=mt.map(function(xn,ri){return jt(ri,ri,mt,Et,rn,cn==null?void 0:cn[ri])});return(0,dn.Z)(function(){return Dn},[Dn],function(xn,ri){return!(0,Ke.Z)(xn,ri)})}function Ln(mt){var Et=(0,Ee.useRef)(mt),rn=(0,Ee.useState)({}),cn=(0,we.Z)(rn,2),Dn=cn[1],xn=(0,Ee.useRef)(null),ri=(0,Ee.useRef)([]);function ai(qn){ri.current.push(qn);var bi=Promise.resolve();xn.current=bi,bi.then(function(){if(xn.current===bi){var Ni=ri.current,Ei=Et.current;ri.current=[],Ni.forEach(function(qi){Et.current=qi(Et.current)}),xn.current=null,Ei!==Et.current&&Dn({})}})}return(0,Ee.useEffect)(function(){return function(){xn.current=null}},[]),[Et.current,ai]}function ni(mt){var Et=(0,Ee.useRef)(mt||null),rn=(0,Ee.useRef)();function cn(){window.clearTimeout(rn.current)}function Dn(ri){Et.current=ri,cn(),rn.current=window.setTimeout(function(){Et.current=null,rn.current=void 0},100)}function xn(){return Et.current}return(0,Ee.useEffect)(function(){return cn},[]),[Dn,xn]}function Gt(){var mt=Ee.useState(-1),Et=(0,we.Z)(mt,2),rn=Et[0],cn=Et[1],Dn=Ee.useState(-1),xn=(0,we.Z)(Dn,2),ri=xn[0],ai=xn[1],qn=Ee.useCallback(function(bi,Ni){cn(bi),ai(Ni)},[]);return[rn,ri,qn]}var yn=oe(87746),Qt=(0,yn.Z)()?window:null;function un(mt,Et){var rn=(0,ut.Z)(mt)==="object"?mt:{},cn=rn.offsetHeader,Dn=cn===void 0?0:cn,xn=rn.offsetSummary,ri=xn===void 0?0:xn,ai=rn.offsetScroll,qn=ai===void 0?0:ai,bi=rn.getContainer,Ni=bi===void 0?function(){return Qt}:bi,Ei=Ni()||Qt;return Ee.useMemo(function(){var qi=!!mt;return{isSticky:qi,stickyClassName:qi?"".concat(Et,"-sticky-holder"):"",offsetHeader:Dn,offsetSummary:ri,offsetScroll:qn,container:Ei}},[qn,Dn,ri,Et,Ei])}function wn(mt,Et,rn){var cn=(0,Ee.useMemo)(function(){for(var Dn=[],xn=[],ri=0,ai=0,qn=0;qn<Et;qn+=1)if(rn==="rtl"){xn[qn]=ai,ai+=mt[qn]||0;var bi=Et-qn-1;Dn[bi]=ri,ri+=mt[bi]||0}else{Dn[qn]=ri,ri+=mt[qn]||0;var Ni=Et-qn-1;xn[Ni]=ai,ai+=mt[Ni]||0}return{left:Dn,right:xn}},[mt,Et,rn]);return cn}var gn=wn;function kn(mt){var Et=mt.className,rn=mt.children;return Ee.createElement("div",{className:Et},rn)}var Bn=kn,Vn=oe(8178),Jn=oe(21783),Wn=function(Et,rn){var cn,Dn,xn=Et.scrollBodyRef,ri=Et.onScroll,ai=Et.offsetScroll,qn=Et.container,bi=Ye(Te,"prefixCls"),Ni=((cn=xn.current)===null||cn===void 0?void 0:cn.scrollWidth)||0,Ei=((Dn=xn.current)===null||Dn===void 0?void 0:Dn.clientWidth)||0,qi=Ni&&Ei*(Ei/Ni),Ki=Ee.useRef(),Ui=Ln({scrollLeft:0,isHiddenScrollBar:!1}),Lr=(0,we.Z)(Ui,2),Vi=Lr[0],Pr=Lr[1],yr=Ee.useRef({delta:0,x:0}),zr=Ee.useState(!1),So=(0,we.Z)(zr,2),Lo=So[0],Tr=So[1],mo=function(){Tr(!1)},Zo=function(to){to.persist(),yr.current.delta=to.pageX-Vi.scrollLeft,yr.current.x=0,Tr(!0),to.preventDefault()},Hr=function(to){var Co,Ro=to||((Co=window)===null||Co===void 0?void 0:Co.event),jo=Ro.buttons;if(!Lo||jo===0){Lo&&Tr(!1);return}var Or=yr.current.x+to.pageX-yr.current.x-yr.current.delta;Or<=0&&(Or=0),Or+qi>=Ei&&(Or=Ei-qi),ri({scrollLeft:Or/Ei*(Ni+2)}),yr.current.x=to.pageX},uo=function(){if(xn.current){var to=(0,Jn.os)(xn.current).top,Co=to+xn.current.offsetHeight,Ro=qn===window?document.documentElement.scrollTop+window.innerHeight:(0,Jn.os)(qn).top+qn.clientHeight;Co-(0,je.Z)()<=Ro||to>=Ro-ai?Pr(function(jo){return(0,Mt.Z)((0,Mt.Z)({},jo),{},{isHiddenScrollBar:!0})}):Pr(function(jo){return(0,Mt.Z)((0,Mt.Z)({},jo),{},{isHiddenScrollBar:!1})})}},vr=function(to){Pr(function(Co){return(0,Mt.Z)((0,Mt.Z)({},Co),{},{scrollLeft:to/Ni*Ei||0})})};return Ee.useImperativeHandle(rn,function(){return{setScrollLeft:vr}}),Ee.useEffect(function(){var cr=(0,Vn.Z)(document.body,"mouseup",mo,!1),to=(0,Vn.Z)(document.body,"mousemove",Hr,!1);return uo(),function(){cr.remove(),to.remove()}},[qi,Lo]),Ee.useEffect(function(){var cr=(0,Vn.Z)(qn,"scroll",uo,!1),to=(0,Vn.Z)(window,"resize",uo,!1);return function(){cr.remove(),to.remove()}},[qn]),Ee.useEffect(function(){Vi.isHiddenScrollBar||Pr(function(cr){var to=xn.current;return to?(0,Mt.Z)((0,Mt.Z)({},cr),{},{scrollLeft:to.scrollLeft/to.scrollWidth*to.clientWidth}):cr})},[Vi.isHiddenScrollBar]),Ni<=Ei||!qi||Vi.isHiddenScrollBar?null:Ee.createElement("div",{style:{height:(0,je.Z)(),width:Ei,bottom:ai},className:"".concat(bi,"-sticky-scroll")},Ee.createElement("div",{onMouseDown:Zo,ref:Ki,className:Pt()("".concat(bi,"-sticky-scroll-bar"),(0,nt.Z)({},"".concat(bi,"-sticky-scroll-bar-active"),Lo)),style:{width:"".concat(qi,"px"),transform:"translate3d(".concat(Vi.scrollLeft,"px, 0, 0)")}}))},gi=Ee.forwardRef(Wn);function Fi(mt){return null}var ir=Fi;function zi(mt){return null}var tn=zi,Ai="rc-table",Bi=[],Ti={};function hr(){return"No Data"}function tr(mt){var Et,rn=(0,Mt.Z)({rowKey:"key",prefixCls:Ai,emptyText:hr},mt),cn=rn.prefixCls,Dn=rn.className,xn=rn.rowClassName,ri=rn.style,ai=rn.data,qn=rn.rowKey,bi=rn.scroll,Ni=rn.tableLayout,Ei=rn.direction,qi=rn.title,Ki=rn.footer,Ui=rn.summary,Lr=rn.caption,Vi=rn.id,Pr=rn.showHeader,yr=rn.components,zr=rn.emptyText,So=rn.onRow,Lo=rn.onHeaderRow,Tr=rn.internalHooks,mo=rn.transformColumns,Zo=rn.internalRefs,Hr=rn.tailor,uo=rn.sticky,vr=ai||Bi,cr=!!vr.length,to=Tr===Ce,Co=Ee.useCallback(function($a,Rs){return(0,zt.Z)(yr,$a)||Rs},[yr]),Ro=Ee.useMemo(function(){return typeof qn=="function"?qn:function($a){var Rs=$a&&$a[qn];return Rs}},[qn]),jo=Co(["body"]),Or=Gt(),Qo=(0,we.Z)(Or,3),Jo=Qo[0],Da=Qo[1],la=Qo[2],Ms=bt(rn,vr,Ro),vs=(0,we.Z)(Ms,6),ea=vs[0],No=vs[1],Ba=vs[2],bs=vs[3],ys=vs[4],qs=vs[5],_o=bi==null?void 0:bi.x,wi=Ee.useState(0),er=(0,we.Z)(wi,2),qr=er[0],La=er[1],ho=zn((0,Mt.Z)((0,Mt.Z)((0,Mt.Z)({},rn),ea),{},{expandable:!!ea.expandedRowRender,columnTitle:ea.columnTitle,expandedKeys:Ba,getRowKey:Ro,onTriggerExpand:qs,expandIcon:bs,expandIconColumnIndex:ea.expandIconColumnIndex,direction:Ei,scrollWidth:to&&Hr&&typeof _o=="number"?_o:null}),to?mo:null),Yo=(0,we.Z)(ho,3),Sa=Yo[0],ja=Yo[1],xl=Yo[2],al=xl!=null?xl:_o,ql=Ee.useMemo(function(){return{columns:Sa,flattenColumns:ja}},[Sa,ja]),Ya=Ee.useRef(),_l=Ee.useRef(),sl=Ee.useRef(),Ml=Ee.useRef(),Hc=Ee.useRef(),Za=Ee.useState(!1),as=(0,we.Z)(Za,2),Ss=as[0],Vs=as[1],dl=Ee.useState(!1),xa=(0,we.Z)(dl,2),ws=xa[0],Ll=xa[1],hl=Ln(new Map),Qu=(0,we.Z)(hl,2),Iu=Qu[0],lc=Qu[1],uc=gt(ja),Ju=uc.map(function($a){return Iu.get($a)}),qa=Ee.useMemo(function(){return Ju},[Ju.join("_")]),bl=gn(qa,ja.length,Ei),Ks=bi&&Bt(bi.y),Es=bi&&Bt(al)||!!ea.fixed,fu=Es&&ja.some(function($a){var Rs=$a.fixed;return Rs}),id=Ee.useRef(),cc=un(uo,cn),dc=cc.isSticky,Mc=cc.offsetHeader,ou=cc.offsetSummary,Ua=cc.offsetScroll,Cs=cc.stickyClassName,wl=cc.container,Ls=Ee.useMemo(function(){return Ui==null?void 0:Ui(vr)},[Ui,vr]),_a=(Ks||dc)&&Ee.isValidElement(Ls)&&Ls.type===rt&&Ls.props.fixed,gl,pu,qu;Ks&&(pu={overflowY:"scroll",maxHeight:bi.y}),Es&&(gl={overflowX:"auto"},Ks||(pu={overflowY:"hidden"}),qu={width:al===!0?"auto":al,minWidth:"100%"});var sh=Ee.useCallback(function($a,Rs){(0,Ae.Z)(Ya.current)&&lc(function(Zl){if(Zl.get($a)!==Rs){var ec=new Map(Zl);return ec.set($a,Rs),ec}return Zl})},[]),pn=ni(null),rd=(0,we.Z)(pn,2),Lc=rd[0],_d=rd[1];function Gd($a,Rs){Rs&&(typeof Rs=="function"?Rs($a):Rs.scrollLeft!==$a&&(Rs.scrollLeft=$a,Rs.scrollLeft!==$a&&setTimeout(function(){Rs.scrollLeft=$a},0)))}var kd=(0,Ie.Z)(function($a){var Rs=$a.currentTarget,Zl=$a.scrollLeft,ec=Ei==="rtl",yu=typeof Zl=="number"?Zl:Rs.scrollLeft,dh=Rs||Ti;if(!_d()||_d()===dh){var Sd;Lc(dh),Gd(yu,_l.current),Gd(yu,sl.current),Gd(yu,Hc.current),Gd(yu,(Sd=id.current)===null||Sd===void 0?void 0:Sd.setScrollLeft)}var hh=Rs||_l.current;if(hh){var hc=hh.scrollWidth,od=hh.clientWidth;if(hc===od){Vs(!1),Ll(!1);return}ec?(Vs(-yu<hc-od),Ll(-yu>0)):(Vs(yu>0),Ll(yu<hc-od))}}),Lh=function(){Es&&sl.current?kd({currentTarget:sl.current}):(Vs(!1),Ll(!1))},cf=function(Rs){var Zl=Rs.width;Zl!==qr&&(Lh(),La(Ya.current?Ya.current.offsetWidth:Zl))},Gl=Ee.useRef(!1);Ee.useEffect(function(){Gl.current&&Lh()},[Es,ai,Sa.length]),Ee.useEffect(function(){Gl.current=!0},[]);var Hd=Ee.useState(0),Th=(0,we.Z)(Hd,2),lh=Th[0],rg=Th[1],Og=Ee.useState(!0),og=(0,we.Z)(Og,2),Wd=og[0],ku=og[1];Ee.useEffect(function(){(!Hr||!to)&&(sl.current instanceof Element?rg((0,je.o)(sl.current).width):rg((0,je.o)(Ml.current).width)),ku((0,xe.G)("position","sticky"))},[]),Ee.useEffect(function(){to&&Zo&&(Zo.body.current=sl.current)});var Zd=Ee.useCallback(function($a){return Ee.createElement(Ee.Fragment,null,Ee.createElement(Io,$a),_a==="top"&&Ee.createElement(Ot,$a,Ls))},[_a,Ls]),Ih=Ee.useCallback(function($a){return Ee.createElement(Ot,$a,Ls)},[Ls]),mu=Co(["table"],"table"),vd=Ee.useMemo(function(){return Ni||(fu?al==="max-content"?"auto":"fixed":Ks||dc||ja.some(function($a){var Rs=$a.ellipsis;return Rs})?"fixed":"auto")},[Ks,fu,ja,Ni,dc]),yd,Dd={colWidths:qa,columCount:ja.length,stickyOffsets:bl,onHeaderRow:Lo,fixHeader:Ks,scroll:bi},vu=Ee.useMemo(function(){return cr?null:typeof zr=="function"?zr():zr},[cr,zr]),uh=Ee.createElement(Si,{data:vr,measureColumnWidth:Ks||Es||dc}),kh=Ee.createElement(Wr,{colWidths:ja.map(function($a){var Rs=$a.width;return Rs}),columns:ja}),Du=Lr!=null?Ee.createElement("caption",{className:"".concat(cn,"-caption")},Lr):void 0,Vd=(0,Qe.Z)(rn,{data:!0}),Dh=(0,Qe.Z)(rn,{aria:!0});if(Ks||dc){var ch;typeof jo=="function"?(ch=jo(vr,{scrollbarSize:lh,ref:sl,onScroll:kd}),Dd.colWidths=ja.map(function($a,Rs){var Zl=$a.width,ec=Rs===ja.length-1?Zl-lh:Zl;return typeof ec=="number"&&!Number.isNaN(ec)?ec:0})):ch=Ee.createElement("div",{style:(0,Mt.Z)((0,Mt.Z)({},gl),pu),onScroll:kd,ref:sl,className:Pt()("".concat(cn,"-body"))},Ee.createElement(mu,(0,tt.Z)({style:(0,Mt.Z)((0,Mt.Z)({},qu),{},{tableLayout:vd})},Dh),Du,kh,uh,!_a&&Ls&&Ee.createElement(Ot,{stickyOffsets:bl,flattenColumns:ja,columns:Sa},Ls)));var Ou=(0,Mt.Z)((0,Mt.Z)((0,Mt.Z)({noData:!vr.length,maxContentScroll:Es&&al==="max-content"},Dd),ql),{},{direction:Ei,stickyClassName:Cs,onScroll:kd});yd=Ee.createElement(Ee.Fragment,null,Pr!==!1&&Ee.createElement(no,(0,tt.Z)({},Ou,{stickyTopOffset:Mc,className:"".concat(cn,"-header"),ref:_l}),Zd),ch,_a&&_a!=="top"&&Ee.createElement(no,(0,tt.Z)({},Ou,{stickyBottomOffset:ou,className:"".concat(cn,"-summary"),ref:Hc}),Ih),dc&&Ee.createElement(gi,{ref:id,offsetScroll:Ua,scrollBodyRef:sl,onScroll:kd,container:wl}))}else yd=Ee.createElement("div",{style:(0,Mt.Z)((0,Mt.Z)({},gl),pu),className:Pt()("".concat(cn,"-content")),onScroll:kd,ref:sl},Ee.createElement(mu,(0,tt.Z)({style:(0,Mt.Z)((0,Mt.Z)({},qu),{},{tableLayout:vd})},Dh),Du,kh,Pr!==!1&&Ee.createElement(Io,(0,tt.Z)({},Dd,ql)),uh,Ls&&Ee.createElement(Ot,{stickyOffsets:bl,flattenColumns:ja,columns:Sa},Ls)));var au=Ee.createElement("div",(0,tt.Z)({className:Pt()(cn,Dn,(Et={},(0,nt.Z)(Et,"".concat(cn,"-rtl"),Ei==="rtl"),(0,nt.Z)(Et,"".concat(cn,"-ping-left"),Ss),(0,nt.Z)(Et,"".concat(cn,"-ping-right"),ws),(0,nt.Z)(Et,"".concat(cn,"-layout-fixed"),Ni==="fixed"),(0,nt.Z)(Et,"".concat(cn,"-fixed-header"),Ks),(0,nt.Z)(Et,"".concat(cn,"-fixed-column"),fu),(0,nt.Z)(Et,"".concat(cn,"-scroll-horizontal"),Es),(0,nt.Z)(Et,"".concat(cn,"-has-fix-left"),ja[0]&&ja[0].fixed),(0,nt.Z)(Et,"".concat(cn,"-has-fix-right"),ja[ja.length-1]&&ja[ja.length-1].fixed==="right"),Et)),style:ri,id:Vi,ref:Ya},Vd),qi&&Ee.createElement(Bn,{className:"".concat(cn,"-title")},qi(vr)),Ee.createElement("div",{ref:Ml,className:"".concat(cn,"-container")},yd),Ki&&Ee.createElement(Bn,{className:"".concat(cn,"-footer")},Ki(vr)));Es&&(au=Ee.createElement(Ge.Z,{onResize:cf},au));var Oh=Ut(ja,bl,Ei,Sa),El=Ee.useMemo(function(){return{scrollX:al,prefixCls:cn,getComponent:Co,scrollbarSize:lh,direction:Ei,fixedInfoList:Oh,isSticky:dc,supportSticky:Wd,componentWidth:qr,fixHeader:Ks,fixColumn:fu,horizonScroll:Es,tableLayout:vd,rowClassName:xn,expandedRowClassName:ea.expandedRowClassName,expandIcon:bs,expandableType:No,expandRowByClick:ea.expandRowByClick,expandedRowRender:ea.expandedRowRender,onTriggerExpand:qs,expandIconColumnIndex:ea.expandIconColumnIndex,indentSize:ea.indentSize,allColumnsFixedLeft:ja.every(function($a){return $a.fixed==="left"}),emptyNode:vu,columns:Sa,flattenColumns:ja,onColumnResize:sh,hoverStartRow:Jo,hoverEndRow:Da,onHover:la,rowExpandable:ea.rowExpandable,onRow:So,getRowKey:Ro,expandedKeys:Ba,childrenColumnName:ys}},[al,cn,Co,lh,Ei,Oh,dc,Wd,qr,Ks,fu,Es,vd,xn,ea.expandedRowClassName,bs,No,ea.expandRowByClick,ea.expandedRowRender,qs,ea.expandIconColumnIndex,ea.indentSize,vu,Sa,ja,sh,Jo,Da,la,ea.rowExpandable,So,Ro,Ba,ys]);return Ee.createElement(Te.Provider,{value:El},au)}function br(mt){return me(tr,mt)}var Xi=br();Xi.EXPAND_COLUMN=se,Xi.INTERNAL_HOOKS=Ce,Xi.Column=ir,Xi.ColumnGroup=tn,Xi.Summary=ft;var Hi=Xi,Ir=oe(21881),Ht=Je(null),Kr=Je(null);function Fn(mt,Et,rn){var cn=Et||1;return rn[mt+cn]-(rn[mt]||0)}function kr(mt){var Et=mt.rowInfo,rn=mt.column,cn=mt.colIndex,Dn=mt.indent,xn=mt.index,ri=mt.renderIndex,ai=mt.record,qn=mt.style,bi=mt.className,Ni=mt.inverse,Ei=mt.getHeight,qi=rn.render,Ki=rn.dataIndex,Ui=rn.className,Lr=rn.width,Vi=Ye(Kr,["columnsOffset"]),Pr=Vi.columnsOffset,yr=nn(Et,rn,cn,Dn,xn),zr=yr.key,So=yr.fixedInfo,Lo=yr.appendCellNode,Tr=yr.additionalCellProps,mo=Tr.style,Zo=Tr.colSpan,Hr=Zo===void 0?1:Zo,uo=Tr.rowSpan,vr=uo===void 0?1:uo,cr=cn-1,to=Fn(cr,Hr,Pr),Co=Hr>1?Lr-to:0,Ro=(0,Mt.Z)((0,Mt.Z)((0,Mt.Z)({},mo),qn),{},{flex:"0 0 ".concat(to,"px"),width:"".concat(to,"px"),marginRight:Co,pointerEvents:"auto"}),jo=Ee.useMemo(function(){return Ni?vr<=1:Hr===0||vr===0||vr>1},[vr,Hr,Ni]);jo?Ro.visibility="hidden":Ni&&(Ro.height=Ei==null?void 0:Ei(vr));var Or=jo?function(){return null}:qi,Qo={};return(vr===0||Hr===0)&&(Qo.rowSpan=1,Qo.colSpan=1),Ee.createElement(Kn,(0,tt.Z)({className:Pt()(Ui,bi),ellipsis:rn.ellipsis,align:rn.align,scope:rn.rowScope,component:"div",prefixCls:Et.prefixCls,key:zr,record:ai,index:xn,renderIndex:ri,dataIndex:Ki,render:Or,shouldCellUpdate:rn.shouldCellUpdate},So,{appendNode:Lo,additionalProps:(0,Mt.Z)((0,Mt.Z)({},Tr),{},{style:Ro},Qo)}))}var Go=kr,Dr=["data","index","className","rowKey","style","extra","getHeight"],po=Ee.forwardRef(function(mt,Et){var rn=mt.data,cn=mt.index,Dn=mt.className,xn=mt.rowKey,ri=mt.style,ai=mt.extra,qn=mt.getHeight,bi=(0,Sn.Z)(mt,Dr),Ni=rn.record,Ei=rn.indent,qi=rn.index,Ki=Ye(Te,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Ui=Ki.scrollX,Lr=Ki.flattenColumns,Vi=Ki.prefixCls,Pr=Ki.fixColumn,yr=Ki.componentWidth,zr=wt(Ni,xn,cn,Ei),So=zr.rowSupportExpand,Lo=zr.expanded,Tr=zr.rowProps,mo=zr.expandedRowRender,Zo=zr.expandedRowClassName,Hr;if(So&&Lo){var uo=mo(Ni,cn,Ei+1,Lo),vr=Zo==null?void 0:Zo(Ni,cn,Ei),cr={};Pr&&(cr={style:(0,nt.Z)({},"--virtual-width","".concat(yr,"px"))});var to="".concat(Vi,"-expanded-row-cell");Hr=Ee.createElement("div",{className:Pt()("".concat(Vi,"-expanded-row"),"".concat(Vi,"-expanded-row-level-").concat(Ei+1),vr)},Ee.createElement(Kn,{component:"div",prefixCls:Vi,className:Pt()(to,(0,nt.Z)({},"".concat(to,"-fixed"),Pr)),additionalProps:cr},uo))}var Co=(0,Mt.Z)((0,Mt.Z)({},ri),{},{width:Ui});ai&&(Co.position="absolute",Co.pointerEvents="none");var Ro=Ee.createElement("div",(0,tt.Z)({},Tr,bi,{ref:So?null:Et,className:Pt()(Dn,"".concat(Vi,"-row"),Tr==null?void 0:Tr.className,(0,nt.Z)({},"".concat(Vi,"-row-extra"),ai)),style:(0,Mt.Z)((0,Mt.Z)({},Co),Tr==null?void 0:Tr.style)}),Lr.map(function(jo,Or){return Ee.createElement(Go,{key:Or,rowInfo:zr,column:jo,colIndex:Or,indent:Ei,index:cn,renderIndex:qi,record:Ni,inverse:ai,getHeight:qn})}));return So?Ee.createElement("div",{ref:Et},Ro,Hr):Ro}),Do=Se(po),Ji=Do,or=Ee.forwardRef(function(mt,Et){var rn=mt.data,cn=mt.onScroll,Dn=Ye(Te,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),xn=Dn.flattenColumns,ri=Dn.onColumnResize,ai=Dn.getRowKey,qn=Dn.expandedKeys,bi=Dn.prefixCls,Ni=Dn.childrenColumnName,Ei=Dn.emptyNode,qi=Dn.scrollX,Ki=Ye(Ht),Ui=Ki.scrollY,Lr=Ki.listItemHeight,Vi=Ee.useRef(),Pr=xt(rn,Ni,qn,ai),yr=Ee.useMemo(function(){var Hr=0;return xn.map(function(uo){var vr=uo.width,cr=uo.key;return Hr+=vr,[cr,vr,Hr]})},[xn]),zr=Ee.useMemo(function(){return yr.map(function(Hr){return Hr[2]})},[yr]);Ee.useEffect(function(){yr.forEach(function(Hr){var uo=(0,we.Z)(Hr,2),vr=uo[0],cr=uo[1];ri(vr,cr)})},[yr]),Ee.useImperativeHandle(Et,function(){var Hr={};return Object.defineProperty(Hr,"scrollLeft",{get:function(){var vr;return((vr=Vi.current)===null||vr===void 0?void 0:vr.getScrollInfo().x)||0},set:function(vr){var cr;(cr=Vi.current)===null||cr===void 0||cr.scrollTo({left:vr})}}),Hr});var So=function(uo,vr){var cr,to=(cr=Pr[vr])===null||cr===void 0?void 0:cr.record,Co=uo.onCell;if(Co){var Ro,jo=Co(to,vr);return(Ro=jo==null?void 0:jo.rowSpan)!==null&&Ro!==void 0?Ro:1}return 1},Lo=function(uo){var vr=uo.start,cr=uo.end,to=uo.getSize,Co=uo.offsetY;if(cr<0)return null;for(var Ro=xn.filter(function(_o){return So(_o,vr)===0}),jo=vr,Or=function(wi){if(Ro=Ro.filter(function(er){return So(er,wi)===0}),!Ro.length)return jo=wi,"break"},Qo=vr;Qo>=0;Qo-=1){var Jo=Or(Qo);if(Jo==="break")break}for(var Da=xn.filter(function(_o){return So(_o,cr)!==1}),la=cr,Ms=function(wi){if(Da=Da.filter(function(er){return So(er,wi)!==1}),!Da.length)return la=Math.max(wi-1,cr),"break"},vs=cr;vs<Pr.length;vs+=1){var ea=Ms(vs);if(ea==="break")break}for(var No=[],Ba=function(wi){var er=Pr[wi];if(!er)return"continue";xn.some(function(qr){return So(qr,wi)>1})&&No.push(wi)},bs=jo;bs<=la;bs+=1)var ys=Ba(bs);var qs=No.map(function(_o){var wi=Pr[_o],er=ai(wi.record,_o),qr=function(Yo){var Sa=_o+Yo-1,ja=ai(Pr[Sa].record,Sa),xl=to(er,ja);return xl.bottom-xl.top},La=to(er);return Ee.createElement(Ji,{key:_o,data:wi,rowKey:er,index:_o,style:{top:-Co+La.top},extra:!0,getHeight:qr})});return qs},Tr=Ee.useMemo(function(){return{columnsOffset:zr}},[zr]),mo="".concat(bi,"-tbody"),Zo;return Pr.length?Zo=Ee.createElement(Ir.Z,{fullHeight:!1,ref:Vi,className:Pt()(mo,"".concat(mo,"-virtual")),height:Ui,itemHeight:Lr||24,data:Pr,itemKey:function(uo){return ai(uo.record)},scrollWidth:qi,onVirtualScroll:function(uo){var vr=uo.x;cn({scrollLeft:vr})},extraRender:Lo},function(Hr,uo,vr){var cr=ai(Hr.record,uo);return Ee.createElement(Ji,(0,tt.Z)({data:Hr,rowKey:cr,index:uo},vr))}):Zo=Ee.createElement("div",{className:Pt()("".concat(bi,"-placeholder"))},Ee.createElement(Kn,{component:"div",prefixCls:bi},Ei)),Ee.createElement(Kr.Provider,{value:Tr},Zo)}),io=Se(or),Gr=io,Ii=function(Et,rn){var cn=rn.ref,Dn=rn.onScroll;return Ee.createElement(Gr,{ref:cn,data:Et,onScroll:Dn})},lt=100;function Rr(mt){var Et=mt.columns,rn=mt.scroll,cn=mt.prefixCls,Dn=cn===void 0?Ai:cn,xn=mt.className,ri=mt.listItemHeight,ai=rn||{},qn=ai.x,bi=ai.y;typeof qn!="number"&&(qn=((Et||[]).length+1)*lt),typeof bi!="number"&&(bi=500);var Ni=Ee.useMemo(function(){return{scrollY:bi,listItemHeight:ri}},[bi,ri]);return Ee.createElement(Ht.Provider,{value:Ni},Ee.createElement(Hi,(0,tt.Z)({},mt,{className:Pt()(xn,"".concat(Dn,"-virtual")),scroll:(0,Mt.Z)((0,Mt.Z)({},rn),{},{x:qn}),components:{body:Ii},columns:Et,internalHooks:Ce,tailor:!0})))}function Ko(mt){return me(Rr,mt)}var Yr=Ko(),yo=null;function Mr(mt){return null}var mr=Mr;function co(mt){return null}var Uo=co,ao=oe(64002),ra=oe(68031),gr=oe(36355),Qi=oe(93891),xr=oe(19716),fi=oe(8628),bo=oe(31724),ua=oe(25700),ca=oe(71418),oa=oe(88088);function Ra(mt){return function(rn){let{prefixCls:cn,onExpand:Dn,record:xn,expanded:ri,expandable:ai}=rn;const qn=`${cn}-row-expand-icon`;return Ee.createElement("button",{type:"button",onClick:bi=>{Dn(xn,bi),bi.stopPropagation()},className:Pt()(qn,{[`${qn}-spaced`]:!ai,[`${qn}-expanded`]:ai&&ri,[`${qn}-collapsed`]:ai&&!ri}),"aria-label":ri?mt.collapse:mt.expand,"aria-expanded":ri})}}var ts=Ra;function ds(mt,Et){return"key"in mt&&mt.key!==void 0&&mt.key!==null?mt.key:mt.dataIndex?Array.isArray(mt.dataIndex)?mt.dataIndex.join("."):mt.dataIndex:Et}function Qa(mt,Et){return Et?`${Et}-${mt}`:`${mt}`}function ks(mt,Et){return typeof mt=="function"?mt(Et):mt}function Ds(mt,Et){const rn=ks(mt,Et);return Object.prototype.toString.call(rn)==="[object Object]"?"":rn}var jn={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"},gs=jn,Ql=oe(88853),Kl=function(Et,rn){return Ee.createElement(Ql.Z,(0,tt.Z)({},Et,{ref:rn,icon:gs}))},Oo=Ee.forwardRef(Kl),ma=Oo,hs=oe(56762);function aa(mt){const Et=Ee.useRef(mt),rn=(0,hs.Z)();return[()=>Et.current,cn=>{Et.current=cn,rn()}]}var Xr=oe(3113),Qr=oe(24905),ns=oe(38854),so=oe(64165),Po=oe(20834),Mo=oe(40875),$i=oe(5112),Ja=oe(86914),xs=oe(21970),ul=oe(92832);function Yl(mt){let{value:Et,onChange:rn,filterSearch:cn,tablePrefixCls:Dn,locale:xn}=mt;return cn?Ee.createElement("div",{className:`${Dn}-filter-dropdown-search`},Ee.createElement(ul.default,{prefix:Ee.createElement(xs.Z,null),placeholder:xn.filterSearchPlaceholder,onChange:rn,value:Et,htmlSize:1,className:`${Dn}-filter-dropdown-search-input`})):null}var Jl=Yl,_i=oe(85108);const is=mt=>{const{keyCode:Et}=mt;Et===_i.Z.ENTER&&mt.stopPropagation()};var tu=Ee.forwardRef((mt,Et)=>Ee.createElement("div",{className:mt.className,onClick:rn=>rn.stopPropagation(),onKeyDown:is,ref:Et},mt.children));function ui(mt){let Et=[];return(mt||[]).forEach(rn=>{let{value:cn,children:Dn}=rn;Et.push(cn),Dn&&(Et=[].concat((0,Gi.Z)(Et),(0,Gi.Z)(ui(Dn))))}),Et}function du(mt){return mt.some(Et=>{let{children:rn}=Et;return rn})}function wo(mt,Et){return typeof Et=="string"||typeof Et=="number"?Et==null?void 0:Et.toString().toLowerCase().includes(mt.trim().toLowerCase()):!1}function Uc(mt){let{filters:Et,prefixCls:rn,filteredKeys:cn,filterMultiple:Dn,searchValue:xn,filterSearch:ri}=mt;return Et.map((ai,qn)=>{const bi=String(ai.value);if(ai.children)return{key:bi||qn,label:ai.text,popupClassName:`${rn}-dropdown-submenu`,children:Uc({filters:ai.children,prefixCls:rn,filteredKeys:cn,filterMultiple:Dn,searchValue:xn,filterSearch:ri})};const Ni=Dn?Qr.default:$i.ZP,Ei={key:ai.value!==void 0?bi:qn,label:Ee.createElement(Ee.Fragment,null,Ee.createElement(Ni,{checked:cn.includes(bi)}),Ee.createElement("span",null,ai.text))};return xn.trim()?typeof ri=="function"?ri(xn,ai)?Ei:null:wo(xn,ai.text)?Ei:null:Ei})}function Wl(mt){var Et,rn;const{tablePrefixCls:cn,prefixCls:Dn,column:xn,dropdownPrefixCls:ri,columnKey:ai,filterMultiple:qn,filterMode:bi="menu",filterSearch:Ni=!1,filterState:Ei,triggerFilter:qi,locale:Ki,children:Ui,getPopupContainer:Lr}=mt,{filterDropdownOpen:Vi,onFilterDropdownOpenChange:Pr,filterResetToDefaultFilteredValue:yr,defaultFilteredValue:zr,filterDropdownVisible:So,onFilterDropdownVisibleChange:Lo}=xn,[Tr,mo]=Ee.useState(!1),Zo=!!(Ei&&(!((Et=Ei.filteredKeys)===null||Et===void 0)&&Et.length||Ei.forceFiltered)),Hr=ho=>{mo(ho),Pr==null||Pr(ho),Lo==null||Lo(ho)},uo=(rn=Vi!=null?Vi:So)!==null&&rn!==void 0?rn:Tr,vr=Ei==null?void 0:Ei.filteredKeys,[cr,to]=aa(vr||[]),Co=ho=>{let{selectedKeys:Yo}=ho;to(Yo)},Ro=(ho,Yo)=>{let{node:Sa,checked:ja}=Yo;Co(qn?{selectedKeys:ho}:{selectedKeys:ja&&Sa.key?[Sa.key]:[]})};Ee.useEffect(()=>{Tr&&Co({selectedKeys:vr||[]})},[vr]);const[jo,Or]=Ee.useState([]),Qo=ho=>{Or(ho)},[Jo,Da]=Ee.useState(""),la=ho=>{const{value:Yo}=ho.target;Da(Yo)};Ee.useEffect(()=>{Tr||Da("")},[Tr]);const Ms=ho=>{const Yo=ho&&ho.length?ho:null;if(Yo===null&&(!Ei||!Ei.filteredKeys)||(0,Ke.Z)(Yo,Ei==null?void 0:Ei.filteredKeys,!0))return null;qi({column:xn,key:ai,filteredKeys:Yo})},vs=()=>{Hr(!1),Ms(cr())},ea=function(){let{confirm:ho,closeDropdown:Yo}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};ho&&Ms([]),Yo&&Hr(!1),Da(""),to(yr?(zr||[]).map(Sa=>String(Sa)):[])},No=function(){let{closeDropdown:ho}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};ho&&Hr(!1),Ms(cr())},Ba=ho=>{ho&&vr!==void 0&&to(vr||[]),Hr(ho),!ho&&!xn.filterDropdown&&vs()},bs=Pt()({[`${ri}-menu-without-submenu`]:!du(xn.filters||[])}),ys=ho=>{if(ho.target.checked){const Yo=ui(xn==null?void 0:xn.filters).map(Sa=>String(Sa));to(Yo)}else to([])},qs=ho=>{let{filters:Yo}=ho;return(Yo||[]).map((Sa,ja)=>{const xl=String(Sa.value),al={title:Sa.text,key:Sa.value!==void 0?xl:ja};return Sa.children&&(al.children=qs({filters:Sa.children})),al})},_o=ho=>{var Yo;return Object.assign(Object.assign({},ho),{text:ho.title,value:ho.key,children:((Yo=ho.children)===null||Yo===void 0?void 0:Yo.map(Sa=>_o(Sa)))||[]})};let wi;if(typeof xn.filterDropdown=="function")wi=xn.filterDropdown({prefixCls:`${ri}-custom`,setSelectedKeys:ho=>Co({selectedKeys:ho}),selectedKeys:cr(),confirm:No,clearFilters:ea,filters:xn.filters,visible:uo,close:()=>{Hr(!1)}});else if(xn.filterDropdown)wi=xn.filterDropdown;else{const ho=cr()||[],Yo=()=>(xn.filters||[]).length===0?Ee.createElement(so.Z,{image:so.Z.PRESENTED_IMAGE_SIMPLE,description:Ki.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):bi==="tree"?Ee.createElement(Ee.Fragment,null,Ee.createElement(Jl,{filterSearch:Ni,value:Jo,onChange:la,tablePrefixCls:cn,locale:Ki}),Ee.createElement("div",{className:`${cn}-filter-dropdown-tree`},qn?Ee.createElement(Qr.default,{checked:ho.length===ui(xn.filters).length,indeterminate:ho.length>0&&ho.length<ui(xn.filters).length,className:`${cn}-filter-dropdown-checkall`,onChange:ys},Ki.filterCheckall):null,Ee.createElement(Ja.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:qn,checkStrictly:!qn,className:`${ri}-menu`,onCheck:Ro,checkedKeys:ho,selectedKeys:ho,showIcon:!1,treeData:qs({filters:xn.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Jo.trim()?ja=>typeof Ni=="function"?Ni(Jo,_o(ja)):wo(Jo,ja.title):void 0}))):Ee.createElement(Ee.Fragment,null,Ee.createElement(Jl,{filterSearch:Ni,value:Jo,onChange:la,tablePrefixCls:cn,locale:Ki}),Ee.createElement(Po.default,{selectable:!0,multiple:qn,prefixCls:`${ri}-menu`,className:bs,onSelect:Co,onDeselect:Co,selectedKeys:ho,getPopupContainer:Lr,openKeys:jo,onOpenChange:Qo,items:Uc({filters:xn.filters||[],filterSearch:Ni,prefixCls:Dn,filteredKeys:cr(),filterMultiple:qn,searchValue:Jo})})),Sa=()=>yr?(0,Ke.Z)((zr||[]).map(ja=>String(ja)),ho,!0):ho.length===0;wi=Ee.createElement(Ee.Fragment,null,Yo(),Ee.createElement("div",{className:`${Dn}-dropdown-btns`},Ee.createElement(Xr.ZP,{type:"link",size:"small",disabled:Sa(),onClick:()=>ea()},Ki.filterReset),Ee.createElement(Xr.ZP,{type:"primary",size:"small",onClick:vs},Ki.filterConfirm)))}xn.filterDropdown&&(wi=Ee.createElement(Mo.J,{selectable:void 0},wi));const er=()=>Ee.createElement(tu,{className:`${Dn}-dropdown`},wi);let qr;typeof xn.filterIcon=="function"?qr=xn.filterIcon(Zo):xn.filterIcon?qr=xn.filterIcon:qr=Ee.createElement(ma,null);const{direction:La}=Ee.useContext(gr.E_);return Ee.createElement("div",{className:`${Dn}-column`},Ee.createElement("span",{className:`${cn}-column-title`},Ui),Ee.createElement(ns.Z,{dropdownRender:er,trigger:["click"],open:uo,onOpenChange:Ba,getPopupContainer:Lr,placement:La==="rtl"?"bottomLeft":"bottomRight"},Ee.createElement("span",{role:"button",tabIndex:-1,className:Pt()(`${Dn}-trigger`,{active:Zo}),onClick:ho=>{ho.stopPropagation()}},qr)))}var $l=Wl;function Fl(mt,Et,rn){let cn=[];return(mt||[]).forEach((Dn,xn)=>{var ri;const ai=Qa(xn,rn);if(Dn.filters||"filterDropdown"in Dn||"onFilter"in Dn)if("filteredValue"in Dn){let qn=Dn.filteredValue;"filterDropdown"in Dn||(qn=(ri=qn==null?void 0:qn.map(String))!==null&&ri!==void 0?ri:qn),cn.push({column:Dn,key:ds(Dn,ai),filteredKeys:qn,forceFiltered:Dn.filtered})}else cn.push({column:Dn,key:ds(Dn,ai),filteredKeys:Et&&Dn.defaultFilteredValue?Dn.defaultFilteredValue:void 0,forceFiltered:Dn.filtered});"children"in Dn&&(cn=[].concat((0,Gi.Z)(cn),(0,Gi.Z)(Fl(Dn.children,Et,ai))))}),cn}function Zu(mt,Et,rn,cn,Dn,xn,ri,ai){return rn.map((qn,bi)=>{const Ni=Qa(bi,ai),{filterMultiple:Ei=!0,filterMode:qi,filterSearch:Ki}=qn;let Ui=qn;if(Ui.filters||Ui.filterDropdown){const Lr=ds(Ui,Ni),Vi=cn.find(Pr=>{let{key:yr}=Pr;return Lr===yr});Ui=Object.assign(Object.assign({},Ui),{title:Pr=>Ee.createElement($l,{tablePrefixCls:mt,prefixCls:`${mt}-filter`,dropdownPrefixCls:Et,column:Ui,columnKey:Lr,filterState:Vi,filterMultiple:Ei,filterMode:qi,filterSearch:Ki,triggerFilter:xn,locale:Dn,getPopupContainer:ri},ks(qn.title,Pr))})}return"children"in Ui&&(Ui=Object.assign(Object.assign({},Ui),{children:Zu(mt,Et,Ui.children,cn,Dn,xn,ri,Ni)})),Ui})}function Ws(mt){const Et={};return mt.forEach(rn=>{let{key:cn,filteredKeys:Dn,column:xn}=rn;const{filters:ri,filterDropdown:ai}=xn;if(ai)Et[cn]=Dn||null;else if(Array.isArray(Dn)){const qn=ui(ri);Et[cn]=qn.filter(bi=>Dn.includes(String(bi)))}else Et[cn]=null}),Et}function Zs(mt,Et){return Et.reduce((rn,cn)=>{const{column:{onFilter:Dn,filters:xn},filteredKeys:ri}=cn;return Dn&&ri&&ri.length?rn.filter(ai=>ri.some(qn=>{const bi=ui(xn),Ni=bi.findIndex(qi=>String(qi)===String(qn)),Ei=Ni!==-1?bi[Ni]:qn;return Dn(Ei,ai)})):rn},mt)}const Al=mt=>mt.flatMap(Et=>"children"in Et?[Et].concat((0,Gi.Z)(Al(Et.children||[]))):[Et]);function Jc(mt){let{prefixCls:Et,dropdownPrefixCls:rn,mergedColumns:cn,onFilterChange:Dn,getPopupContainer:xn,locale:ri}=mt;const ai=Ee.useMemo(()=>Al(cn||[]),[cn]),[qn,bi]=Ee.useState(()=>Fl(ai,!0)),Ni=Ee.useMemo(()=>{const Ui=Fl(ai,!1);if(Ui.length===0)return Ui;let Lr=!0,Vi=!0;if(Ui.forEach(Pr=>{let{filteredKeys:yr}=Pr;yr!==void 0?Lr=!1:Vi=!1}),Lr){const Pr=(ai||[]).map((yr,zr)=>ds(yr,Qa(zr)));return qn.filter(yr=>{let{key:zr}=yr;return Pr.includes(zr)}).map(yr=>{const zr=ai[Pr.findIndex(So=>So===yr.key)];return Object.assign(Object.assign({},yr),{column:Object.assign(Object.assign({},yr.column),zr),forceFiltered:zr.filtered})})}return Ui},[ai,qn]),Ei=Ee.useMemo(()=>Ws(Ni),[Ni]),qi=Ui=>{const Lr=Ni.filter(Vi=>{let{key:Pr}=Vi;return Pr!==Ui.key});Lr.push(Ui),bi(Lr),Dn(Ws(Lr),Lr)};return[Ui=>Zu(Et,rn,Ui,Ni,ri,qi,xn),Ni,Ei]}var qc=Jc;function Pc(mt,Et,rn){const cn=Ee.useRef({});function Dn(xn){if(!cn.current||cn.current.data!==mt||cn.current.childrenColumnName!==Et||cn.current.getRowKey!==rn){let ai=function(qn){qn.forEach((bi,Ni)=>{const Ei=rn(bi,Ni);ri.set(Ei,bi),bi&&typeof bi=="object"&&Et in bi&&ai(bi[Et]||[])})};const ri=new Map;ai(mt),cn.current={data:mt,childrenColumnName:Et,kvMap:ri,getRowKey:rn}}return cn.current.kvMap.get(xn)}return[Dn]}var md=oe(50371),ed=function(mt,Et){var rn={};for(var cn in mt)Object.prototype.hasOwnProperty.call(mt,cn)&&Et.indexOf(cn)<0&&(rn[cn]=mt[cn]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dn=0,cn=Object.getOwnPropertySymbols(mt);Dn<cn.length;Dn++)Et.indexOf(cn[Dn])<0&&Object.prototype.propertyIsEnumerable.call(mt,cn[Dn])&&(rn[cn[Dn]]=mt[cn[Dn]]);return rn};const Xn=10;function bn(mt,Et){const rn={current:mt.current,pageSize:mt.pageSize};return Object.keys(Et&&typeof Et=="object"?Et:{}).forEach(Dn=>{const xn=mt[Dn];typeof xn!="function"&&(rn[Dn]=xn)}),rn}function _t(mt,Et,rn){const cn=rn&&typeof rn=="object"?rn:{},{total:Dn=0}=cn,xn=ed(cn,["total"]),[ri,ai]=(0,Ee.useState)(()=>({current:"defaultCurrent"in xn?xn.defaultCurrent:1,pageSize:"defaultPageSize"in xn?xn.defaultPageSize:Xn})),qn=(0,md.Z)(ri,xn,{total:Dn>0?Dn:mt}),bi=Math.ceil((Dn||mt)/qn.pageSize);qn.current>bi&&(qn.current=bi||1);const Ni=(qi,Ki)=>{ai({current:qi!=null?qi:1,pageSize:Ki||qn.pageSize})},Ei=(qi,Ki)=>{var Ui;rn&&((Ui=rn.onChange)===null||Ui===void 0||Ui.call(rn,qi,Ki)),Ni(qi,Ki),Et(qi,Ki||(qn==null?void 0:qn.pageSize))};return rn===!1?[{},()=>{}]:[Object.assign(Object.assign({},qn),{onChange:Ei}),Ni]}var Ao=_t,ta=oe(18290),sa=oe(35654),Vr=oe(90782),Jr=oe(71430),jr=oe(35788);const rr={},ro="SELECT_ALL",Na="SELECT_INVERT",Ia="SELECT_NONE",Ho=[],Bo=(mt,Et)=>{let rn=[];return(Et||[]).forEach(cn=>{rn.push(cn),cn&&typeof cn=="object"&&mt in cn&&(rn=[].concat((0,Gi.Z)(rn),(0,Gi.Z)(Bo(mt,cn[mt]))))}),rn};var Bs=(mt,Et)=>{const{preserveSelectedRowKeys:rn,selectedRowKeys:cn,defaultSelectedRowKeys:Dn,getCheckboxProps:xn,onChange:ri,onSelect:ai,onSelectAll:qn,onSelectInvert:bi,onSelectNone:Ni,onSelectMultiple:Ei,columnWidth:qi,type:Ki,selections:Ui,fixed:Lr,renderCell:Vi,hideSelectAll:Pr,checkStrictly:yr=!0}=Et||{},{prefixCls:zr,data:So,pageData:Lo,getRecordByKey:Tr,getRowKey:mo,expandType:Zo,childrenColumnName:Hr,locale:uo,getPopupContainer:vr}=mt,[cr,to]=(0,jr.Z)(cn||Dn||Ho,{value:cn}),Co=Ee.useRef(new Map),Ro=(0,Ee.useCallback)(_o=>{if(rn){const wi=new Map;_o.forEach(er=>{let qr=Tr(er);!qr&&Co.current.has(er)&&(qr=Co.current.get(er)),wi.set(er,qr)}),Co.current=wi}},[Tr,rn]);Ee.useEffect(()=>{Ro(cr)},[cr]);const{keyEntities:jo}=(0,Ee.useMemo)(()=>{if(yr)return{keyEntities:null};let _o=So;if(rn){const wi=new Set(So.map((qr,La)=>mo(qr,La))),er=Array.from(Co.current).reduce((qr,La)=>{let[ho,Yo]=La;return wi.has(ho)?qr:qr.concat(Yo)},[]);_o=[].concat((0,Gi.Z)(_o),(0,Gi.Z)(er))}return(0,Jr.I8)(_o,{externalGetKey:mo,childrenPropName:Hr})},[So,mo,yr,Hr,rn]),Or=(0,Ee.useMemo)(()=>Bo(Hr,Lo),[Hr,Lo]),Qo=(0,Ee.useMemo)(()=>{const _o=new Map;return Or.forEach((wi,er)=>{const qr=mo(wi,er),La=(xn?xn(wi):null)||{};_o.set(qr,La)}),_o},[Or,mo,xn]),Jo=(0,Ee.useCallback)(_o=>{var wi;return!!(!((wi=Qo.get(mo(_o)))===null||wi===void 0)&&wi.disabled)},[Qo,mo]),[Da,la]=(0,Ee.useMemo)(()=>{if(yr)return[cr||[],[]];const{checkedKeys:_o,halfCheckedKeys:wi}=(0,Vr.S)(cr,!0,jo,Jo);return[_o||[],wi]},[cr,yr,jo,Jo]),Ms=(0,Ee.useMemo)(()=>{const _o=Ki==="radio"?Da.slice(0,1):Da;return new Set(_o)},[Da,Ki]),vs=(0,Ee.useMemo)(()=>Ki==="radio"?new Set:new Set(la),[la,Ki]),[ea,No]=(0,Ee.useState)(null);Ee.useEffect(()=>{Et||to(Ho)},[!!Et]);const Ba=(0,Ee.useCallback)((_o,wi)=>{let er,qr;Ro(_o),rn?(er=_o,qr=_o.map(La=>Co.current.get(La))):(er=[],qr=[],_o.forEach(La=>{const ho=Tr(La);ho!==void 0&&(er.push(La),qr.push(ho))})),to(er),ri==null||ri(er,qr,{type:wi})},[to,Tr,ri,rn]),bs=(0,Ee.useCallback)((_o,wi,er,qr)=>{if(ai){const La=er.map(ho=>Tr(ho));ai(Tr(_o),wi,La,qr)}Ba(er,"single")},[ai,Tr,Ba]),ys=(0,Ee.useMemo)(()=>!Ui||Pr?null:(Ui===!0?[ro,Na,Ia]:Ui).map(wi=>wi===ro?{key:"all",text:uo.selectionAll,onSelect(){Ba(So.map((er,qr)=>mo(er,qr)).filter(er=>{const qr=Qo.get(er);return!(qr!=null&&qr.disabled)||Ms.has(er)}),"all")}}:wi===Na?{key:"invert",text:uo.selectInvert,onSelect(){const er=new Set(Ms);Lo.forEach((La,ho)=>{const Yo=mo(La,ho),Sa=Qo.get(Yo);Sa!=null&&Sa.disabled||(er.has(Yo)?er.delete(Yo):er.add(Yo))});const qr=Array.from(er);bi&&bi(qr),Ba(qr,"invert")}}:wi===Ia?{key:"none",text:uo.selectNone,onSelect(){Ni==null||Ni(),Ba(Array.from(Ms).filter(er=>{const qr=Qo.get(er);return qr==null?void 0:qr.disabled}),"none")}}:wi).map(wi=>Object.assign(Object.assign({},wi),{onSelect:function(){for(var er,qr,La=arguments.length,ho=new Array(La),Yo=0;Yo<La;Yo++)ho[Yo]=arguments[Yo];(qr=wi.onSelect)===null||qr===void 0||(er=qr).call.apply(er,[wi].concat(ho)),No(null)}})),[Ui,Ms,Lo,mo,bi,Ba]);return[(0,Ee.useCallback)(_o=>{var wi;if(!Et)return _o.filter(Za=>Za!==rr);let er=(0,Gi.Z)(_o);const qr=new Set(Ms),La=Or.map(mo).filter(Za=>!Qo.get(Za).disabled),ho=La.every(Za=>qr.has(Za)),Yo=La.some(Za=>qr.has(Za)),Sa=()=>{const Za=[];ho?La.forEach(Ss=>{qr.delete(Ss),Za.push(Ss)}):La.forEach(Ss=>{qr.has(Ss)||(qr.add(Ss),Za.push(Ss))});const as=Array.from(qr);qn==null||qn(!ho,as.map(Ss=>Tr(Ss)),Za.map(Ss=>Tr(Ss))),Ba(as,"all"),No(null)};let ja;if(Ki!=="radio"){let Za;if(ys){const xa={getPopupContainer:vr,items:ys.map((ws,Ll)=>{const{key:hl,text:Qu,onSelect:Iu}=ws;return{key:hl!=null?hl:Ll,onClick:()=>{Iu==null||Iu(La)},label:Qu}})};Za=Ee.createElement("div",{className:`${zr}-selection-extra`},Ee.createElement(ns.Z,{menu:xa,getPopupContainer:vr},Ee.createElement("span",null,Ee.createElement(ta.Z,null))))}const as=Or.map((xa,ws)=>{const Ll=mo(xa,ws),hl=Qo.get(Ll)||{};return Object.assign({checked:qr.has(Ll)},hl)}).filter(xa=>{let{disabled:ws}=xa;return ws}),Ss=!!as.length&&as.length===Or.length,Vs=Ss&&as.every(xa=>{let{checked:ws}=xa;return ws}),dl=Ss&&as.some(xa=>{let{checked:ws}=xa;return ws});ja=!Pr&&Ee.createElement("div",{className:`${zr}-selection`},Ee.createElement(Qr.default,{checked:Ss?Vs:!!Or.length&&ho,indeterminate:Ss?!Vs&&dl:!ho&&Yo,onChange:Sa,disabled:Or.length===0||Ss,"aria-label":Za?"Custom selection":"Select all",skipGroup:!0}),Za)}let xl;Ki==="radio"?xl=(Za,as,Ss)=>{const Vs=mo(as,Ss),dl=qr.has(Vs);return{node:Ee.createElement($i.ZP,Object.assign({},Qo.get(Vs),{checked:dl,onClick:xa=>xa.stopPropagation(),onChange:xa=>{qr.has(Vs)||bs(Vs,!0,[Vs],xa.nativeEvent)}})),checked:dl}}:xl=(Za,as,Ss)=>{var Vs;const dl=mo(as,Ss),xa=qr.has(dl),ws=vs.has(dl),Ll=Qo.get(dl);let hl;return Zo==="nest"?hl=ws:hl=(Vs=Ll==null?void 0:Ll.indeterminate)!==null&&Vs!==void 0?Vs:ws,{node:Ee.createElement(Qr.default,Object.assign({},Ll,{indeterminate:hl,checked:xa,skipGroup:!0,onClick:Qu=>Qu.stopPropagation(),onChange:Qu=>{let{nativeEvent:Iu}=Qu;const{shiftKey:lc}=Iu;let uc=-1,Ju=-1;if(lc&&yr){const qa=new Set([ea,dl]);La.some((bl,Ks)=>{if(qa.has(bl))if(uc===-1)uc=Ks;else return Ju=Ks,!0;return!1})}if(Ju!==-1&&uc!==Ju&&yr){const qa=La.slice(uc,Ju+1),bl=[];xa?qa.forEach(Es=>{qr.has(Es)&&(bl.push(Es),qr.delete(Es))}):qa.forEach(Es=>{qr.has(Es)||(bl.push(Es),qr.add(Es))});const Ks=Array.from(qr);Ei==null||Ei(!xa,Ks.map(Es=>Tr(Es)),bl.map(Es=>Tr(Es))),Ba(Ks,"multiple")}else{const qa=Da;if(yr){const bl=xa?(0,sa._5)(qa,dl):(0,sa.L0)(qa,dl);bs(dl,!xa,bl,Iu)}else{const bl=(0,Vr.S)([].concat((0,Gi.Z)(qa),[dl]),!0,jo,Jo),{checkedKeys:Ks,halfCheckedKeys:Es}=bl;let fu=Ks;if(xa){const id=new Set(Ks);id.delete(dl),fu=(0,Vr.S)(Array.from(id),{checked:!1,halfCheckedKeys:Es},jo,Jo).checkedKeys}bs(dl,!xa,fu,Iu)}}No(xa?null:dl)}})),checked:xa}};const al=(Za,as,Ss)=>{const{node:Vs,checked:dl}=xl(Za,as,Ss);return Vi?Vi(dl,as,Ss,Vs):Vs};if(!er.includes(rr))if(er.findIndex(Za=>{var as;return((as=Za[lr])===null||as===void 0?void 0:as.columnType)==="EXPAND_COLUMN"})===0){const[Za,...as]=er;er=[Za,rr].concat((0,Gi.Z)(as))}else er=[rr].concat((0,Gi.Z)(er));const ql=er.indexOf(rr);er=er.filter((Za,as)=>Za!==rr||as===ql);const Ya=er[ql-1],_l=er[ql+1];let sl=Lr;sl===void 0&&((_l==null?void 0:_l.fixed)!==void 0?sl=_l.fixed:(Ya==null?void 0:Ya.fixed)!==void 0&&(sl=Ya.fixed)),sl&&Ya&&((wi=Ya[lr])===null||wi===void 0?void 0:wi.columnType)==="EXPAND_COLUMN"&&Ya.fixed===void 0&&(Ya.fixed=sl);const Ml=Pt()(`${zr}-selection-col`,{[`${zr}-selection-col-with-dropdown`]:Ui&&Ki==="checkbox"}),Hc={fixed:sl,width:qi,className:`${zr}-selection-column`,title:Et.columnTitle||ja,render:al,onCell:Et.onCell,[lr]:{className:Ml}};return er.map(Za=>Za===rr?Hc:Za)},[mo,Or,Et,Da,Ms,vs,qi,ys,Zo,ea,Qo,Ei,bs,Jo]),Ms]},ka=oe(35323),Nl=oe(19155),js=oe(6848);const $s="ascend",fr="descend";function va(mt){return typeof mt.sorter=="object"&&typeof mt.sorter.multiple=="number"?mt.sorter.multiple:!1}function Wt(mt){return typeof mt=="function"?mt:mt&&typeof mt=="object"&&mt.compare?mt.compare:!1}function di(mt,Et){return Et?mt[mt.indexOf(Et)+1]:mt[0]}function Ns(mt,Et,rn){let cn=[];function Dn(xn,ri){cn.push({column:xn,key:ds(xn,ri),multiplePriority:va(xn),sortOrder:xn.sortOrder})}return(mt||[]).forEach((xn,ri)=>{const ai=Qa(ri,rn);xn.children?("sortOrder"in xn&&Dn(xn,ai),cn=[].concat((0,Gi.Z)(cn),(0,Gi.Z)(Ns(xn.children,Et,ai)))):xn.sorter&&("sortOrder"in xn?Dn(xn,ai):Et&&xn.defaultSortOrder&&cn.push({column:xn,key:ds(xn,ai),multiplePriority:va(xn),sortOrder:xn.defaultSortOrder}))}),cn}function ps(mt,Et,rn,cn,Dn,xn,ri,ai){return(Et||[]).map((qn,bi)=>{const Ni=Qa(bi,ai);let Ei=qn;if(Ei.sorter){const qi=Ei.sortDirections||Dn,Ki=Ei.showSorterTooltip===void 0?ri:Ei.showSorterTooltip,Ui=ds(Ei,Ni),Lr=rn.find(Zo=>{let{key:Hr}=Zo;return Hr===Ui}),Vi=Lr?Lr.sortOrder:null,Pr=di(qi,Vi);let yr;if(qn.sortIcon)yr=qn.sortIcon({sortOrder:Vi});else{const Zo=qi.includes($s)&&Ee.createElement(Nl.Z,{className:Pt()(`${mt}-column-sorter-up`,{active:Vi===$s})}),Hr=qi.includes(fr)&&Ee.createElement(ka.Z,{className:Pt()(`${mt}-column-sorter-down`,{active:Vi===fr})});yr=Ee.createElement("span",{className:Pt()(`${mt}-column-sorter`,{[`${mt}-column-sorter-full`]:!!(Zo&&Hr)})},Ee.createElement("span",{className:`${mt}-column-sorter-inner`,"aria-hidden":"true"},Zo,Hr))}const{cancelSort:zr,triggerAsc:So,triggerDesc:Lo}=xn||{};let Tr=zr;Pr===fr?Tr=Lo:Pr===$s&&(Tr=So);const mo=typeof Ki=="object"?Ki:{title:Tr};Ei=Object.assign(Object.assign({},Ei),{className:Pt()(Ei.className,{[`${mt}-column-sort`]:Vi}),title:Zo=>{const Hr=Ee.createElement("div",{className:`${mt}-column-sorters`},Ee.createElement("span",{className:`${mt}-column-title`},ks(qn.title,Zo)),yr);return Ki?Ee.createElement(js.Z,Object.assign({},mo),Hr):Hr},onHeaderCell:Zo=>{const Hr=qn.onHeaderCell&&qn.onHeaderCell(Zo)||{},uo=Hr.onClick,vr=Hr.onKeyDown;Hr.onClick=Co=>{cn({column:qn,key:Ui,sortOrder:Pr,multiplePriority:va(qn)}),uo==null||uo(Co)},Hr.onKeyDown=Co=>{Co.keyCode===_i.Z.ENTER&&(cn({column:qn,key:Ui,sortOrder:Pr,multiplePriority:va(qn)}),vr==null||vr(Co))};const cr=Ds(qn.title,{}),to=cr==null?void 0:cr.toString();return Vi?Hr["aria-sort"]=Vi==="ascend"?"ascending":"descending":Hr["aria-label"]=to||"",Hr.className=Pt()(Hr.className,`${mt}-column-has-sorters`),Hr.tabIndex=0,qn.ellipsis&&(Hr.title=(cr!=null?cr:"").toString()),Hr}})}return"children"in Ei&&(Ei=Object.assign(Object.assign({},Ei),{children:ps(mt,Ei.children,rn,cn,Dn,xn,ri,Ni)})),Ei})}function cl(mt){const{column:Et,sortOrder:rn}=mt;return{column:Et,order:rn,field:Et.dataIndex,columnKey:Et.key}}function Os(mt){const Et=mt.filter(rn=>{let{sortOrder:cn}=rn;return cn}).map(cl);return Et.length===0&&mt.length?Object.assign(Object.assign({},cl(mt[mt.length-1])),{column:void 0}):Et.length<=1?Et[0]||{}:Et}function nu(mt,Et,rn){const cn=Et.slice().sort((ri,ai)=>ai.multiplePriority-ri.multiplePriority),Dn=mt.slice(),xn=cn.filter(ri=>{let{column:{sorter:ai},sortOrder:qn}=ri;return Wt(ai)&&qn});return xn.length?Dn.sort((ri,ai)=>{for(let qn=0;qn<xn.length;qn+=1){const bi=xn[qn],{column:{sorter:Ni},sortOrder:Ei}=bi,qi=Wt(Ni);if(qi&&Ei){const Ki=qi(ri,ai,Ei);if(Ki!==0)return Ei===$s?Ki:-Ki}}return 0}).map(ri=>{const ai=ri[rn];return ai?Object.assign(Object.assign({},ri),{[rn]:nu(ai,Et,rn)}):ri}):Dn}function hu(mt){let{prefixCls:Et,mergedColumns:rn,onSorterChange:cn,sortDirections:Dn,tableLocale:xn,showSorterTooltip:ri}=mt;const[ai,qn]=Ee.useState(Ns(rn,!0)),bi=Ee.useMemo(()=>{let Ui=!0;const Lr=Ns(rn,!1);if(!Lr.length)return ai;const Vi=[];function Pr(zr){Ui?Vi.push(zr):Vi.push(Object.assign(Object.assign({},zr),{sortOrder:null}))}let yr=null;return Lr.forEach(zr=>{yr===null?(Pr(zr),zr.sortOrder&&(zr.multiplePriority===!1?Ui=!1:yr=!0)):(yr&&zr.multiplePriority!==!1||(Ui=!1),Pr(zr))}),Vi},[rn,ai]),Ni=Ee.useMemo(()=>{const Ui=bi.map(Lr=>{let{column:Vi,sortOrder:Pr}=Lr;return{column:Vi,order:Pr}});return{sortColumns:Ui,sortColumn:Ui[0]&&Ui[0].column,sortOrder:Ui[0]&&Ui[0].order}},[bi]);function Ei(Ui){let Lr;Ui.multiplePriority===!1||!bi.length||bi[0].multiplePriority===!1?Lr=[Ui]:Lr=[].concat((0,Gi.Z)(bi.filter(Vi=>{let{key:Pr}=Vi;return Pr!==Ui.key})),[Ui]),qn(Lr),cn(Os(Lr),Lr)}return[Ui=>ps(Et,Ui,bi,Ei,Dn,xn,ri),bi,Ni,()=>Os(bi)]}function Vu(mt,Et){return mt.map(rn=>{const cn=Object.assign({},rn);return cn.title=ks(rn.title,Et),"children"in cn&&(cn.children=Vu(cn.children,Et)),cn})}function rs(mt){return[Ee.useCallback(rn=>Vu(rn,mt),[mt])]}var Eo=br((mt,Et)=>{const{_renderTimes:rn}=mt,{_renderTimes:cn}=Et;return rn!==cn}),Fa=Ko((mt,Et)=>{const{_renderTimes:rn}=mt,{_renderTimes:cn}=Et;return rn!==cn}),Fr=oe(64993),za=oe(17313),qo=oe(83116),ol=oe(37613),oo=mt=>{const{componentCls:Et}=mt,rn=`${mt.lineWidth}px ${mt.lineType} ${mt.tableBorderColor}`,cn=(Dn,xn,ri)=>({[`&${Et}-${Dn}`]:{[`> ${Et}-container`]:{[`> ${Et}-content, > ${Et}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${Et}-expanded-row-fixed`]:{margin:`-${xn}px -${ri+mt.lineWidth}px`}}}}}});return{[`${Et}-wrapper`]:{[`${Et}${Et}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${Et}-title`]:{border:rn,borderBottom:0},[`> ${Et}-container`]:{borderInlineStart:rn,borderTop:rn,[`
> ${Et}-content,
> ${Et}-header,
> ${Et}-body,
> ${Et}-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:rn},"> thead":{"> tr:not(:last-child) > th":{borderBottom:rn},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${Et}-cell-fix-right-first::after`]:{borderInlineEnd:rn}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${Et}-expanded-row-fixed`]:{margin:`-${mt.tablePaddingVertical}px -${mt.tablePaddingHorizontal+mt.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:mt.lineWidth,bottom:0,borderInlineEnd:rn,content:'""'}}}}}},[`&${Et}-scroll-horizontal`]:{[`> ${Et}-container > ${Et}-body`]:{"> table > tbody":{[`
> tr${Et}-expanded-row,
> tr${Et}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},cn("middle",mt.tablePaddingVerticalMiddle,mt.tablePaddingHorizontalMiddle)),cn("small",mt.tablePaddingVerticalSmall,mt.tablePaddingHorizontalSmall)),{[`> ${Et}-footer`]:{border:rn,borderTop:0}}),[`${Et}-cell`]:{[`${Et}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${mt.lineWidth}px 0 ${mt.lineWidth}px ${mt.tableHeaderBg}`}},[`${Et}-bordered ${Et}-cell-scrollbar`]:{borderInlineEnd:rn}}}},Sl=mt=>{const{componentCls:Et}=mt;return{[`${Et}-wrapper`]:{[`${Et}-cell-ellipsis`]:Object.assign(Object.assign({},za.vS),{wordBreak:"keep-all",[`
&${Et}-cell-fix-left-last,
&${Et}-cell-fix-right-first
`]:{overflow:"visible",[`${Et}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${Et}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Xo=mt=>{const{componentCls:Et}=mt;return{[`${Et}-wrapper`]:{[`${Et}-tbody > tr${Et}-placeholder`]:{textAlign:"center",color:mt.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:mt.colorBgContainer}}}}},Bl=oe(15969),Ka=mt=>{const{componentCls:Et,antCls:rn,controlInteractiveSize:cn,motionDurationSlow:Dn,lineWidth:xn,paddingXS:ri,lineType:ai,tableBorderColor:qn,tableExpandIconBg:bi,tableExpandColumnWidth:Ni,borderRadius:Ei,fontSize:qi,fontSizeSM:Ki,lineHeight:Ui,tablePaddingVertical:Lr,tablePaddingHorizontal:Vi,tableExpandedRowBg:Pr,paddingXXS:yr}=mt,zr=cn/2-xn,So=zr*2+xn*3,Lo=`${xn}px ${ai} ${qn}`,Tr=yr-xn;return{[`${Et}-wrapper`]:{[`${Et}-expand-icon-col`]:{width:Ni},[`${Et}-row-expand-icon-cell`]:{textAlign:"center",[`${Et}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${Et}-row-indent`]:{height:1,float:"left"},[`${Et}-row-expand-icon`]:Object.assign(Object.assign({},(0,Bl.N)(mt)),{position:"relative",float:"left",boxSizing:"border-box",width:So,height:So,padding:0,color:"inherit",lineHeight:`${So}px`,background:bi,border:Lo,borderRadius:Ei,transform:`scale(${cn/So})`,transition:`all ${Dn}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${Dn} ease-out`,content:'""'},"&::before":{top:zr,insetInlineEnd:Tr,insetInlineStart:Tr,height:xn},"&::after":{top:Tr,bottom:Tr,insetInlineStart:zr,width:xn,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"}}),[`${Et}-row-indent + ${Et}-row-expand-icon`]:{marginTop:(qi*Ui-xn*3)/2-Math.ceil((Ki*1.4-xn*3)/2),marginInlineEnd:ri},[`tr${Et}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Pr}},[`${rn}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${Et}-expanded-row-fixed`]:{position:"relative",margin:`-${Lr}px -${Vi}px`,padding:`${Lr}px ${Vi}px`}}}},os=mt=>{const{componentCls:Et,antCls:rn,iconCls:cn,tableFilterDropdownWidth:Dn,tableFilterDropdownSearchWidth:xn,paddingXXS:ri,paddingXS:ai,colorText:qn,lineWidth:bi,lineType:Ni,tableBorderColor:Ei,tableHeaderIconColor:qi,fontSizeSM:Ki,tablePaddingHorizontal:Ui,borderRadius:Lr,motionDurationSlow:Vi,colorTextDescription:Pr,colorPrimary:yr,tableHeaderFilterActiveBg:zr,colorTextDisabled:So,tableFilterDropdownBg:Lo,tableFilterDropdownHeight:Tr,controlItemBgHover:mo,controlItemBgActive:Zo,boxShadowSecondary:Hr,filterDropdownMenuBg:uo}=mt,vr=`${rn}-dropdown`,cr=`${Et}-filter-dropdown`,to=`${rn}-tree`,Co=`${bi}px ${Ni} ${Ei}`;return[{[`${Et}-wrapper`]:{[`${Et}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${Et}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-ri,marginInline:`${ri}px ${-Ui/2}px`,padding:`0 ${ri}px`,color:qi,fontSize:Ki,borderRadius:Lr,cursor:"pointer",transition:`all ${Vi}`,"&:hover":{color:Pr,background:zr},"&.active":{color:yr}}}},{[`${rn}-dropdown`]:{[cr]:Object.assign(Object.assign({},(0,za.Wf)(mt)),{minWidth:Dn,backgroundColor:Lo,borderRadius:Lr,boxShadow:Hr,overflow:"hidden",[`${vr}-menu`]:{maxHeight:Tr,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:uo,"&:empty::after":{display:"block",padding:`${ai}px 0`,color:So,fontSize:Ki,textAlign:"center",content:'"Not Found"'}},[`${cr}-tree`]:{paddingBlock:`${ai}px 0`,paddingInline:ai,[to]:{padding:0},[`${to}-treenode ${to}-node-content-wrapper:hover`]:{backgroundColor:mo},[`${to}-treenode-checkbox-checked ${to}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Zo}}},[`${cr}-search`]:{padding:ai,borderBottom:Co,"&-input":{input:{minWidth:xn},[cn]:{color:So}}},[`${cr}-checkall`]:{width:"100%",marginBottom:ri,marginInlineStart:ri},[`${cr}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${ai-bi}px ${ai}px`,overflow:"hidden",borderTop:Co}})}},{[`${rn}-dropdown ${cr}, ${cr}-submenu`]:{[`${rn}-checkbox-wrapper + span`]:{paddingInlineStart:ai,color:qn},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Ku=mt=>{const{componentCls:Et,lineWidth:rn,colorSplit:cn,motionDurationSlow:Dn,zIndexTableFixed:xn,tableBg:ri,zIndexTableSticky:ai}=mt,qn=cn;return{[`${Et}-wrapper`]:{[`
${Et}-cell-fix-left,
${Et}-cell-fix-right
`]:{position:"sticky !important",zIndex:xn,background:ri},[`
${Et}-cell-fix-left-first::after,
${Et}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-rn,width:30,transform:"translateX(100%)",transition:`box-shadow ${Dn}`,content:'""',pointerEvents:"none"},[`${Et}-cell-fix-left-all::after`]:{display:"none"},[`
${Et}-cell-fix-right-first::after,
${Et}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:-rn,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Dn}`,content:'""',pointerEvents:"none"},[`${Et}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:ai+1,width:30,transition:`box-shadow ${Dn}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${Et}-ping-left`]:{[`&:not(${Et}-has-fix-left) ${Et}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${qn}`}},[`
${Et}-cell-fix-left-first::after,
${Et}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${qn}`},[`${Et}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${Et}-ping-right`]:{[`&:not(${Et}-has-fix-right) ${Et}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${qn}`}},[`
${Et}-cell-fix-right-first::after,
${Et}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${qn}`}}}}},Gc=mt=>{const{componentCls:Et,antCls:rn}=mt;return{[`${Et}-wrapper`]:{[`${Et}-pagination${rn}-pagination`]:{margin:`${mt.margin}px 0`},[`${Et}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:mt.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},ah=mt=>{const{componentCls:Et,tableRadius:rn}=mt;return{[`${Et}-wrapper`]:{[Et]:{[`${Et}-title, ${Et}-header`]:{borderRadius:`${rn}px ${rn}px 0 0`},[`${Et}-title + ${Et}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${Et}-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:rn,borderStartEndRadius:rn,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:rn},"> *:last-child":{borderStartEndRadius:rn}}},"&-footer":{borderRadius:`0 0 ${rn}px ${rn}px`}}}}},jl=mt=>{const{componentCls:Et}=mt;return{[`${Et}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${Et}-pagination-left`]:{justifyContent:"flex-end"},[`${Et}-pagination-right`]:{justifyContent:"flex-start"},[`${Et}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${Et}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${Et}-row-indent`]:{float:"right"}}}}},zl=mt=>{const{componentCls:Et,antCls:rn,iconCls:cn,fontSizeIcon:Dn,padding:xn,paddingXS:ri,tableHeaderIconColor:ai,tableHeaderIconColorHover:qn,tableSelectionColumnWidth:bi}=mt;return{[`${Et}-wrapper`]:{[`${Et}-selection-col`]:{width:bi,[`&${Et}-selection-col-with-dropdown`]:{width:bi+Dn+xn/4}},[`${Et}-bordered ${Et}-selection-col`]:{width:bi+ri*2,[`&${Et}-selection-col-with-dropdown`]:{width:bi+Dn+xn/4+ri*2}},[`
table tr th${Et}-selection-column,
table tr td${Et}-selection-column
`]:{paddingInlineEnd:mt.paddingXS,paddingInlineStart:mt.paddingXS,textAlign:"center",[`${rn}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Et}-selection-column${Et}-cell-fix-left`]:{zIndex:mt.zIndexTableFixed+1},[`table tr th${Et}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${Et}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${Et}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${mt.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${mt.tablePaddingHorizontal/4}px`,[cn]:{color:ai,fontSize:Dn,verticalAlign:"baseline","&:hover":{color:qn}}}}}},zs=mt=>{const{componentCls:Et}=mt,rn=(cn,Dn,xn,ri)=>({[`${Et}${Et}-${cn}`]:{fontSize:ri,[`
${Et}-title,
${Et}-footer,
${Et}-cell,
${Et}-thead > tr > th,
${Et}-tbody > tr > th,
${Et}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${Dn}px ${xn}px`},[`${Et}-filter-trigger`]:{marginInlineEnd:`-${xn/2}px`},[`${Et}-expanded-row-fixed`]:{margin:`-${Dn}px -${xn}px`},[`${Et}-tbody`]:{[`${Et}-wrapper:only-child ${Et}`]:{marginBlock:`-${Dn}px`,marginInline:`${mt.tableExpandColumnWidth-xn}px -${xn}px`}},[`${Et}-selection-column`]:{paddingInlineStart:`${xn/4}px`}}});return{[`${Et}-wrapper`]:Object.assign(Object.assign({},rn("middle",mt.tablePaddingVerticalMiddle,mt.tablePaddingHorizontalMiddle,mt.tableFontSizeMiddle)),rn("small",mt.tablePaddingVerticalSmall,mt.tablePaddingHorizontalSmall,mt.tableFontSizeSmall))}},kl=mt=>{const{componentCls:Et,marginXXS:rn,fontSizeIcon:cn,tableHeaderIconColor:Dn,tableHeaderIconColorHover:xn}=mt;return{[`${Et}-wrapper`]:{[`${Et}-thead th${Et}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${mt.motionDurationSlow}`,"&:hover":{background:mt.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:mt.colorPrimary},[`
&${Et}-cell-fix-left:hover,
&${Et}-cell-fix-right:hover
`]:{background:mt.tableFixedHeaderSortActiveBg}},[`${Et}-thead th${Et}-column-sort`]:{background:mt.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${Et}-column-sort`]:{background:mt.tableBodySortBg},[`${Et}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${Et}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${Et}-column-sorter`]:{marginInlineStart:rn,color:Dn,fontSize:0,transition:`color ${mt.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:cn,"&.active":{color:mt.colorPrimary}},[`${Et}-column-sorter-up + ${Et}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${Et}-column-sorters:hover ${Et}-column-sorter`]:{color:xn}}}},Ac=mt=>{const{componentCls:Et,opacityLoading:rn,tableScrollThumbBg:cn,tableScrollThumbBgHover:Dn,tableScrollThumbSize:xn,tableScrollBg:ri,zIndexTableSticky:ai,stickyScrollBarBorderRadius:qn}=mt,bi=`${mt.lineWidth}px ${mt.lineType} ${mt.tableBorderColor}`;return{[`${Et}-wrapper`]:{[`${Et}-sticky`]:{"&-holder":{position:"sticky",zIndex:ai,background:mt.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${xn}px !important`,zIndex:ai,display:"flex",alignItems:"center",background:ri,borderTop:bi,opacity:rn,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:xn,backgroundColor:cn,borderRadius:qn,transition:`all ${mt.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Dn}}}}}}},$u=mt=>{const{componentCls:Et,lineWidth:rn,tableBorderColor:cn}=mt,Dn=`${rn}px ${mt.lineType} ${cn}`;return{[`${Et}-wrapper`]:{[`${Et}-summary`]:{position:"relative",zIndex:mt.zIndexTableFixed,background:mt.tableBg,"> tr":{"> th, > td":{borderBottom:Dn}}},[`div${Et}-summary`]:{boxShadow:`0 -${rn}px 0 ${cn}`}}}},Sc=mt=>{const{componentCls:Et}=mt,rn=`${mt.lineWidth}px ${mt.lineType} ${mt.tableBorderColor}`,cn=`${Et}-expanded-row-cell`;return{[`${Et}-wrapper`]:{[`${Et}-tbody-virtual`]:{[`${Et}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${Et}-cell`]:{borderBottom:rn},[`${Et}-expanded-row`]:{[`${cn}${cn}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${mt.lineWidth}px)`,borderInlineEnd:"none"}}},[`${Et}-bordered`]:{[`${Et}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:rn,position:"absolute"},[`${Et}-cell`]:{borderInlineEnd:rn,[`&${Et}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-mt.lineWidth,borderInlineStart:rn}}}}}}};const Xu=mt=>{const{componentCls:Et,fontWeightStrong:rn,tablePaddingVertical:cn,tablePaddingHorizontal:Dn,lineWidth:xn,lineType:ri,tableBorderColor:ai,tableFontSize:qn,tableBg:bi,tableRadius:Ni,tableHeaderTextColor:Ei,motionDurationMid:qi,tableHeaderBg:Ki,tableHeaderCellSplitColor:Ui,tableRowHoverBg:Lr,tableSelectedRowBg:Vi,tableSelectedRowHoverBg:Pr,tableFooterTextColor:yr,tableFooterBg:zr,paddingContentVerticalLG:So}=mt,Lo=`${xn}px ${ri} ${ai}`;return{[`${Et}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,za.dF)()),{[Et]:Object.assign(Object.assign({},(0,za.Wf)(mt)),{fontSize:qn,background:bi,borderRadius:`${Ni}px ${Ni}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${Ni}px ${Ni}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${Et}-cell,
${Et}-thead > tr > th,
${Et}-tbody > tr > th,
${Et}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${So}px ${Dn}px`,overflowWrap:"break-word"},[`${Et}-title`]:{padding:`${cn}px ${Dn}px`},[`${Et}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:Ei,fontWeight:rn,textAlign:"start",background:Ki,borderBottom:Lo,transition:`background ${qi} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${Et}-selection-column):not(${Et}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:Ui,transform:"translateY(-50%)",transition:`background-color ${qi}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${Et}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${qi}, border-color ${qi}`,borderBottom:Lo,[`
> ${Et}-wrapper:only-child,
> ${Et}-expanded-row-fixed > ${Et}-wrapper:only-child
`]:{[Et]:{marginBlock:`-${cn}px`,marginInline:`${mt.tableExpandColumnWidth-Dn}px -${Dn}px`,[`${Et}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:Ei,fontWeight:rn,textAlign:"start",background:Ki,borderBottom:Lo,transition:`background ${qi} ease`},[`
&${Et}-row:hover > th,
&${Et}-row:hover > td,
> th${Et}-cell-row-hover,
> td${Et}-cell-row-hover
`]:{background:Lr},[`&${Et}-row-selected`]:{"> th, > td":{background:Vi},"&:hover > th, &:hover > td":{background:Pr}}}},[`${Et}-footer`]:{padding:`${cn}px ${Dn}px`,color:yr,background:zr}})}};var Nc=(0,qo.Z)("Table",mt=>{const{colorTextHeading:Et,colorSplit:rn,colorIcon:cn,colorIconHover:Dn,opacityLoading:xn,colorBgContainer:ri,controlInteractiveSize:ai,headerBg:qn,headerColor:bi,headerSortActiveBg:Ni,headerSortHoverBg:Ei,bodySortBg:qi,rowHoverBg:Ki,rowSelectedBg:Ui,rowSelectedHoverBg:Lr,rowExpandedBg:Vi,cellPaddingBlock:Pr,cellPaddingInline:yr,cellPaddingBlockMD:zr,cellPaddingInlineMD:So,cellPaddingBlockSM:Lo,cellPaddingInlineSM:Tr,borderColor:mo,footerBg:Zo,footerColor:Hr,headerBorderRadius:uo,cellFontSize:vr,cellFontSizeMD:cr,cellFontSizeSM:to,headerSplitColor:Co,fixedHeaderSortActiveBg:Ro,headerFilterHoverBg:jo,filterDropdownBg:Or,expandIconBg:Qo,selectionColumnWidth:Jo,stickyScrollBarBg:Da}=mt,la=new Fr.C(cn),Ms=new Fr.C(Dn),vs=2,ea=(0,ol.TS)(mt,{tableFontSize:vr,tableBg:ri,tableRadius:uo,tablePaddingVertical:Pr,tablePaddingHorizontal:yr,tablePaddingVerticalMiddle:zr,tablePaddingHorizontalMiddle:So,tablePaddingVerticalSmall:Lo,tablePaddingHorizontalSmall:Tr,tableBorderColor:mo,tableHeaderTextColor:bi,tableHeaderBg:qn,tableFooterTextColor:Hr,tableFooterBg:Zo,tableHeaderCellSplitColor:Co,tableHeaderSortBg:Ni,tableHeaderSortHoverBg:Ei,tableHeaderIconColor:la.clone().setAlpha(la.getAlpha()*xn).toRgbString(),tableHeaderIconColorHover:Ms.clone().setAlpha(Ms.getAlpha()*xn).toRgbString(),tableBodySortBg:qi,tableFixedHeaderSortActiveBg:Ro,tableHeaderFilterActiveBg:jo,tableFilterDropdownBg:Or,tableRowHoverBg:Ki,tableSelectedRowBg:Ui,tableSelectedRowHoverBg:Lr,zIndexTableFixed:vs,zIndexTableSticky:vs+1,tableFontSizeMiddle:cr,tableFontSizeSmall:to,tableSelectionColumnWidth:Jo,tableExpandIconBg:Qo,tableExpandColumnWidth:ai+2*mt.padding,tableExpandedRowBg:Vi,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Da,tableScrollThumbBgHover:Et,tableScrollBg:rn});return[Xu(ea),Gc(ea),$u(ea),kl(ea),os(ea),oo(ea),ah(ea),Ka(ea),$u(ea),Xo(ea),zl(ea),Ku(ea),Ac(ea),Sl(ea),zs(ea),jl(ea),Sc(ea)]},mt=>{const{colorFillAlter:Et,colorBgContainer:rn,colorTextHeading:cn,colorFillSecondary:Dn,colorFillContent:xn,controlItemBgActive:ri,controlItemBgActiveHover:ai,padding:qn,paddingSM:bi,paddingXS:Ni,colorBorderSecondary:Ei,borderRadiusLG:qi,fontSize:Ki,controlHeight:Ui,colorTextPlaceholder:Lr}=mt,Vi=new Fr.C(Dn).onBackground(rn).toHexShortString(),Pr=new Fr.C(xn).onBackground(rn).toHexShortString(),yr=new Fr.C(Et).onBackground(rn).toHexShortString();return{headerBg:yr,headerColor:cn,headerSortActiveBg:Vi,headerSortHoverBg:Pr,bodySortBg:yr,rowHoverBg:yr,rowSelectedBg:ri,rowSelectedHoverBg:ai,rowExpandedBg:Et,cellPaddingBlock:qn,cellPaddingInline:qn,cellPaddingBlockMD:bi,cellPaddingInlineMD:Ni,cellPaddingBlockSM:Ni,cellPaddingInlineSM:Ni,borderColor:Ei,headerBorderRadius:qi,footerBg:yr,footerColor:cn,cellFontSize:Ki,cellFontSizeMD:Ki,cellFontSizeSM:Ki,headerSplitColor:Ei,fixedHeaderSortActiveBg:Vi,headerFilterHoverBg:xn,filterDropdownMenuBg:rn,filterDropdownBg:rn,expandIconBg:rn,selectionColumnWidth:Ui,stickyScrollBarBg:Lr,stickyScrollBarBorderRadius:100}});const td=[],nd=(mt,Et)=>{const{prefixCls:rn,className:cn,rootClassName:Dn,style:xn,size:ri,bordered:ai,dropdownPrefixCls:qn,dataSource:bi,pagination:Ni,rowSelection:Ei,rowKey:qi="key",rowClassName:Ki,columns:Ui,children:Lr,childrenColumnName:Vi,onChange:Pr,getPopupContainer:yr,loading:zr,expandIcon:So,expandable:Lo,expandedRowRender:Tr,expandIconColumnIndex:mo,indentSize:Zo,scroll:Hr,sortDirections:uo,locale:vr,showSorterTooltip:cr=!0,virtual:to}=mt,Co=Ee.useMemo(()=>Ui||On(Lr),[Ui,Lr]),Ro=Ee.useMemo(()=>Co.some(Ua=>Ua.responsive),[Co]),jo=(0,fi.Z)(Ro),Or=Ee.useMemo(()=>{const Ua=new Set(Object.keys(jo).filter(Cs=>jo[Cs]));return Co.filter(Cs=>!Cs.responsive||Cs.responsive.some(wl=>Ua.has(wl)))},[Co,jo]),Qo=(0,ao.Z)(mt,["className","style","columns"]),{locale:Jo=bo.Z,direction:Da,table:la,renderEmpty:Ms,getPrefixCls:vs,getPopupContainer:ea}=Ee.useContext(gr.E_),No=(0,xr.Z)(ri),Ba=Object.assign(Object.assign({},Jo.Table),vr),bs=bi||td,ys=vs("table",rn),qs=vs("dropdown",qn),_o=Object.assign({childrenColumnName:Vi,expandIconColumnIndex:mo},Lo),{childrenColumnName:wi="children"}=_o,er=Ee.useMemo(()=>bs.some(Ua=>Ua==null?void 0:Ua[wi])?"nest":Tr||Lo&&Lo.expandedRowRender?"row":null,[bs]),qr={body:Ee.useRef()},La=Ee.useMemo(()=>typeof qi=="function"?qi:Ua=>Ua==null?void 0:Ua[qi],[qi]),[ho]=Pc(bs,wi,La),Yo={},Sa=function(Ua,Cs){let wl=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Ls,_a,gl;const pu=Object.assign(Object.assign({},Yo),Ua);wl&&((Ls=Yo.resetPagination)===null||Ls===void 0||Ls.call(Yo),!((_a=pu.pagination)===null||_a===void 0)&&_a.current&&(pu.pagination.current=1),Ni&&Ni.onChange&&Ni.onChange(1,(gl=pu.pagination)===null||gl===void 0?void 0:gl.pageSize)),Hr&&Hr.scrollToFirstRowOnChange!==!1&&qr.body.current&&(0,ra.Z)(0,{getContainer:()=>qr.body.current}),Pr==null||Pr(pu.pagination,pu.filters,pu.sorter,{currentDataSource:Zs(nu(bs,pu.sorterStates,wi),pu.filterStates),action:Cs})},ja=(Ua,Cs)=>{Sa({sorter:Ua,sorterStates:Cs},"sort",!1)},[xl,al,ql,Ya]=hu({prefixCls:ys,mergedColumns:Or,onSorterChange:ja,sortDirections:uo||["ascend","descend"],tableLocale:Ba,showSorterTooltip:cr}),_l=Ee.useMemo(()=>nu(bs,al,wi),[bs,al]);Yo.sorter=Ya(),Yo.sorterStates=al;const sl=(Ua,Cs)=>{Sa({filters:Ua,filterStates:Cs},"filter",!0)},[Ml,Hc,Za]=qc({prefixCls:ys,locale:Ba,dropdownPrefixCls:qs,mergedColumns:Or,onFilterChange:sl,getPopupContainer:yr||ea}),as=Zs(_l,Hc);Yo.filters=Za,Yo.filterStates=Hc;const Ss=Ee.useMemo(()=>{const Ua={};return Object.keys(Za).forEach(Cs=>{Za[Cs]!==null&&(Ua[Cs]=Za[Cs])}),Object.assign(Object.assign({},ql),{filters:Ua})},[ql,Za]),[Vs]=rs(Ss),dl=(Ua,Cs)=>{Sa({pagination:Object.assign(Object.assign({},Yo.pagination),{current:Ua,pageSize:Cs})},"paginate")},[xa,ws]=Ao(as.length,dl,Ni);Yo.pagination=Ni===!1?{}:bn(xa,Ni),Yo.resetPagination=ws;const Ll=Ee.useMemo(()=>{if(Ni===!1||!xa.pageSize)return as;const{current:Ua=1,total:Cs,pageSize:wl=Xn}=xa;return as.length<Cs?as.length>wl?as.slice((Ua-1)*wl,Ua*wl):as:as.slice((Ua-1)*wl,Ua*wl)},[!!Ni,as,xa&&xa.current,xa&&xa.pageSize,xa&&xa.total]),[hl,Qu]=Bs({prefixCls:ys,data:as,pageData:Ll,getRowKey:La,getRecordByKey:ho,expandType:er,childrenColumnName:wi,locale:Ba,getPopupContainer:yr||ea},Ei),Iu=(Ua,Cs,wl)=>{let Ls;return typeof Ki=="function"?Ls=Pt()(Ki(Ua,Cs,wl)):Ls=Pt()(Ki),Pt()({[`${ys}-row-selected`]:Qu.has(La(Ua,Cs))},Ls)};_o.__PARENT_RENDER_ICON__=_o.expandIcon,_o.expandIcon=_o.expandIcon||So||ts(Ba),er==="nest"&&_o.expandIconColumnIndex===void 0?_o.expandIconColumnIndex=Ei?1:0:_o.expandIconColumnIndex>0&&Ei&&(_o.expandIconColumnIndex-=1),typeof _o.indentSize!="number"&&(_o.indentSize=typeof Zo=="number"?Zo:15);const lc=Ee.useCallback(Ua=>Vs(hl(Ml(xl(Ua)))),[xl,Ml,hl]);let uc,Ju;if(Ni!==!1&&(xa!=null&&xa.total)){let Ua;xa.size?Ua=xa.size:Ua=No==="small"||No==="middle"?"small":void 0;const Cs=_a=>Ee.createElement(ua.Z,Object.assign({},xa,{className:Pt()(`${ys}-pagination ${ys}-pagination-${_a}`,xa.className),size:Ua})),wl=Da==="rtl"?"left":"right",{position:Ls}=xa;if(Ls!==null&&Array.isArray(Ls)){const _a=Ls.find(qu=>qu.includes("top")),gl=Ls.find(qu=>qu.includes("bottom")),pu=Ls.every(qu=>`${qu}`=="none");!_a&&!gl&&!pu&&(Ju=Cs(wl)),_a&&(uc=Cs(_a.toLowerCase().replace("top",""))),gl&&(Ju=Cs(gl.toLowerCase().replace("bottom","")))}else Ju=Cs(wl)}let qa;typeof zr=="boolean"?qa={spinning:zr}:typeof zr=="object"&&(qa=Object.assign({spinning:!0},zr));const[bl,Ks]=Nc(ys),[,Es]=(0,oa.Z)(),fu=Pt()(`${ys}-wrapper`,la==null?void 0:la.className,{[`${ys}-wrapper-rtl`]:Da==="rtl"},cn,Dn,Ks),id=Object.assign(Object.assign({},la==null?void 0:la.style),xn),cc=vr&&vr.emptyText||(Ms==null?void 0:Ms("Table"))||Ee.createElement(Qi.Z,{componentName:"Table"}),dc=to?Fa:Eo,Mc={},ou=Ee.useMemo(()=>{const{fontSize:Ua,lineHeight:Cs,padding:wl,paddingXS:Ls,paddingSM:_a}=Es,gl=Math.floor(Ua*Cs);switch(No){case"large":return wl*2+gl;case"small":return Ls*2+gl;default:return _a*2+gl}},[Es,No]);return to&&(Mc.listItemHeight=ou),bl(Ee.createElement("div",{ref:Et,className:fu,style:id},Ee.createElement(ca.Z,Object.assign({spinning:!1},qa),uc,Ee.createElement(dc,Object.assign({},Mc,Qo,{columns:Or,direction:Da,expandable:_o,prefixCls:ys,className:Pt()({[`${ys}-middle`]:No==="middle",[`${ys}-small`]:No==="small",[`${ys}-bordered`]:ai,[`${ys}-empty`]:bs.length===0}),data:Ll,rowKey:La,rowClassName:Iu,emptyText:cc,internalHooks:Ce,internalRefs:qr,transformColumns:lc})),Ju)))};var xc=Ee.forwardRef(nd);const Mh=(mt,Et)=>{const rn=Ee.useRef(0);return rn.current+=1,Ee.createElement(xc,Object.assign({},mt,{ref:Et,_renderTimes:rn.current}))},Ul=Ee.forwardRef(Mh);Ul.SELECTION_COLUMN=rr,Ul.EXPAND_COLUMN=se,Ul.SELECTION_ALL=ro,Ul.SELECTION_INVERT=Na,Ul.SELECTION_NONE=Ia,Ul.Column=mr,Ul.ColumnGroup=Uo,Ul.Summary=ft;var Tu=Ul,Ud=Tu},86914:function(_e,be,oe){"use strict";oe.d(be,{default:function(){return it}});var se=oe(99581),Ce=oe(26390),we=oe(43971),Ie=oe(58358),De=oe(5891),Ke=oe(59301),Ee={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"},et=Ee,Je=oe(88853),Ye=function(gt,Bt){return Ke.createElement(Je.Z,(0,De.Z)({},gt,{ref:Bt,icon:et}))},tt=Ke.forwardRef(Ye),ht=tt,kt=oe(92310),ze=oe.n(kt),ee=oe(35654),ne=oe(71430),ge=oe(36355),ue=oe(44757),me=oe(62892),Se=oe(20648);const Ne=4;function ke(Ve){const{dropPosition:gt,dropLevelOffset:Bt,prefixCls:sn,indent:It,direction:en="ltr"}=Ve,En=en==="ltr"?"left":"right",ei=en==="ltr"?"right":"left",An={[En]:-Bt*It+Ne,[ei]:0};switch(gt){case-1:An.top=-3;break;case 1:An.bottom=-3;break;default:An.bottom=-3,An[En]=It+Ne;break}return Ke.createElement("div",{style:An,className:`${sn}-drop-indicator`})}var Te=oe(48610),$e=Ke.forwardRef((Ve,gt)=>{const{getPrefixCls:Bt,direction:sn,virtual:It,tree:en}=Ke.useContext(ge.E_),{prefixCls:En,className:ei,showIcon:An=!1,showLine:Kn,switcherIcon:jt,blockNode:Nn=!1,children:Gn,checkable:ii=!1,selectable:Sn=!0,draggable:Yt,motion:Zt,style:St}=Ve,rt=Bt("tree",En),Ft=Bt(),Ot=Zt!=null?Zt:Object.assign(Object.assign({},(0,me.Z)(Ft)),{motionAppear:!1}),ft=Object.assign(Object.assign({},Ve),{checkable:ii,selectable:Sn,showIcon:An,motion:Ot,blockNode:Nn,showLine:!!Kn,dropIndicatorRender:ke}),[ct,Ge]=(0,Se.ZP)(rt),Ae=Ke.useMemo(()=>{if(!Yt)return!1;let je={};switch(typeof Yt){case"function":je.nodeDraggable=Yt;break;case"object":je=Object.assign({},Yt);break;default:break}return je.icon!==!1&&(je.icon=je.icon||Ke.createElement(ue.Z,null)),je},[Yt]),xe=je=>Ke.createElement(Te.Z,{prefixCls:rt,switcherIcon:jt,treeNodeProps:je,showLine:Kn});return ct(Ke.createElement(se.Z,Object.assign({itemHeight:20,ref:gt,virtual:It},ft,{style:Object.assign(Object.assign({},en==null?void 0:en.style),St),prefixCls:rt,className:ze()({[`${rt}-icon-hide`]:!An,[`${rt}-block-node`]:Nn,[`${rt}-unselectable`]:!Sn,[`${rt}-rtl`]:sn==="rtl"},en==null?void 0:en.className,ei,Ge),direction:sn,checkable:ii&&Ke.createElement("span",{className:`${rt}-checkbox-inner`}),selectable:Sn,switcherIcon:xe,draggable:Ae}),Gn))}),st;(function(Ve){Ve[Ve.None=0]="None",Ve[Ve.Start=1]="Start",Ve[Ve.End=2]="End"})(st||(st={}));function ut(Ve,gt){function Bt(sn){const{key:It,children:en}=sn;gt(It,sn)!==!1&&ut(en||[],gt)}Ve.forEach(Bt)}function Mt(Ve){let{treeData:gt,expandedKeys:Bt,startKey:sn,endKey:It}=Ve;const en=[];let En=st.None;if(sn&&sn===It)return[sn];if(!sn||!It)return[];function ei(An){return An===sn||An===It}return ut(gt,An=>{if(En===st.End)return!1;if(ei(An)){if(en.push(An),En===st.None)En=st.Start;else if(En===st.Start)return En=st.End,!1}else En===st.Start&&en.push(An);return Bt.includes(An)}),en}function nt(Ve,gt){const Bt=(0,Ce.Z)(gt),sn=[];return ut(Ve,(It,en)=>{const En=Bt.indexOf(It);return En!==-1&&(sn.push(en),Bt.splice(En,1)),!!Bt.length}),sn}var $t=function(Ve,gt){var Bt={};for(var sn in Ve)Object.prototype.hasOwnProperty.call(Ve,sn)&&gt.indexOf(sn)<0&&(Bt[sn]=Ve[sn]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var It=0,sn=Object.getOwnPropertySymbols(Ve);It<sn.length;It++)gt.indexOf(sn[It])<0&&Object.prototype.propertyIsEnumerable.call(Ve,sn[It])&&(Bt[sn[It]]=Ve[sn[It]]);return Bt};function Pt(Ve){const{isLeaf:gt,expanded:Bt}=Ve;return gt?Ke.createElement(we.Z,null):Bt?Ke.createElement(Ie.Z,null):Ke.createElement(ht,null)}function dn(Ve){let{treeData:gt,children:Bt}=Ve;return gt||(0,ne.zn)(Bt)}const zt=(Ve,gt)=>{var{defaultExpandAll:Bt,defaultExpandParent:sn,defaultExpandedKeys:It}=Ve,en=$t(Ve,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const En=Ke.useRef(),ei=Ke.useRef(),An=()=>{const{keyEntities:Ae}=(0,ne.I8)(dn(en));let xe;return Bt?xe=Object.keys(Ae):sn?xe=(0,ee.r7)(en.expandedKeys||It||[],Ae):xe=en.expandedKeys||It,xe},[Kn,jt]=Ke.useState(en.selectedKeys||en.defaultSelectedKeys||[]),[Nn,Gn]=Ke.useState(()=>An());Ke.useEffect(()=>{"selectedKeys"in en&&jt(en.selectedKeys)},[en.selectedKeys]),Ke.useEffect(()=>{"expandedKeys"in en&&Gn(en.expandedKeys)},[en.expandedKeys]);const ii=(Ae,xe)=>{var je;return"expandedKeys"in en||Gn(Ae),(je=en.onExpand)===null||je===void 0?void 0:je.call(en,Ae,xe)},Sn=(Ae,xe)=>{var je;const{multiple:Qe}=en,{node:Oe,nativeEvent:xt}=xe,{key:hn=""}=Oe,Pn=dn(en),wt=Object.assign(Object.assign({},xe),{selected:!0}),nn=(xt==null?void 0:xt.ctrlKey)||(xt==null?void 0:xt.metaKey),Mn=xt==null?void 0:xt.shiftKey;let Zn;Qe&&nn?(Zn=Ae,En.current=hn,ei.current=Zn,wt.selectedNodes=nt(Pn,Zn)):Qe&&Mn?(Zn=Array.from(new Set([].concat((0,Ce.Z)(ei.current||[]),(0,Ce.Z)(Mt({treeData:Pn,expandedKeys:Nn,startKey:hn,endKey:En.current}))))),wt.selectedNodes=nt(Pn,Zn)):(Zn=[hn],En.current=hn,ei.current=Zn,wt.selectedNodes=nt(Pn,Zn)),(je=en.onSelect)===null||je===void 0||je.call(en,Zn,wt),"selectedKeys"in en||jt(Zn)},{getPrefixCls:Yt,direction:Zt}=Ke.useContext(ge.E_),{prefixCls:St,className:rt,showIcon:Ft=!0,expandAction:Ot="click"}=en,ft=$t(en,["prefixCls","className","showIcon","expandAction"]),ct=Yt("tree",St),Ge=ze()(`${ct}-directory`,{[`${ct}-directory-rtl`]:Zt==="rtl"},rt);return Ke.createElement($e,Object.assign({icon:Pt,ref:gt,blockNode:!0},ft,{showIcon:Ft,expandAction:Ot,prefixCls:ct,className:Ge,expandedKeys:Nn,selectedKeys:Kn,onSelect:Sn,onExpand:ii}))};var fn=Ke.forwardRef(zt);const an=$e;an.DirectoryTree=fn,an.TreeNode=se.O;var it=an},20648:function(_e,be,oe){"use strict";oe.d(be,{TM:function(){return kt},Yk:function(){return ht}});var se=oe(9792),Ce=oe(98447),we=oe(17313),Ie=oe(8378),De=oe(37613),Ke=oe(83116);const Ee=new se.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),et=(ze,ee)=>({[`.${ze}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${ee.motionDurationSlow}`}}}),Je=(ze,ee)=>({[`.${ze}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:ee.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${ee.lineWidthBold}px solid ${ee.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Ye=(ze,ee)=>{const{treeCls:ne,treeNodeCls:ge,treeNodePadding:ue,titleHeight:me,nodeSelectedBg:Se,nodeHoverBg:Ne}=ee,ke=ee.paddingXS;return{[ne]:Object.assign(Object.assign({},(0,we.Wf)(ee)),{background:ee.colorBgContainer,borderRadius:ee.borderRadius,transition:`background-color ${ee.motionDurationSlow}`,[`&${ne}-rtl`]:{[`${ne}-switcher`]:{"&_close":{[`${ne}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${ne}-active-focused)`]:Object.assign({},(0,we.oN)(ee)),[`${ne}-list-holder-inner`]:{alignItems:"flex-start"},[`&${ne}-block-node`]:{[`${ne}-list-holder-inner`]:{alignItems:"stretch",[`${ne}-node-content-wrapper`]:{flex:"auto"},[`${ge}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:ue,insetInlineStart:0,border:`1px solid ${ee.colorPrimary}`,opacity:0,animationName:Ee,animationDuration:ee.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${ge}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${ue}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${ne}-node-content-wrapper`]:{color:ee.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${ne}-node-content-wrapper`]:Object.assign({},(0,we.oN)(ee)),[`&:not(${ge}-disabled).filter-node ${ne}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${ne}-draggable-icon`]:{flexShrink:0,width:me,lineHeight:`${me}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${ee.motionDurationSlow}`,[`${ge}:hover &`]:{opacity:.45}},[`&${ge}-disabled`]:{[`${ne}-draggable-icon`]:{visibility:"hidden"}}}},[`${ne}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:me}},[`${ne}-draggable-icon`]:{visibility:"hidden"},[`${ne}-switcher`]:Object.assign(Object.assign({},et(ze,ee)),{position:"relative",flex:"none",alignSelf:"stretch",width:me,margin:0,lineHeight:`${me}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${ne}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:ee.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:me/2,bottom:-ue,marginInlineStart:-1,borderInlineEnd:`1px solid ${ee.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:me/2*.8,height:me/2,borderBottom:`1px solid ${ee.colorBorder}`,content:'""'}}}),[`${ne}-checkbox`]:{top:"initial",marginInlineEnd:ke},[`${ne}-node-content-wrapper, ${ne}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:me,margin:0,padding:`0 ${ee.paddingXS/2}px`,color:"inherit",lineHeight:`${me}px`,background:"transparent",borderRadius:ee.borderRadius,cursor:"pointer",transition:`all ${ee.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:Ne},[`&${ne}-node-selected`]:{backgroundColor:Se},[`${ne}-iconEle`]:{display:"inline-block",width:me,height:me,lineHeight:`${me}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${ne}-unselectable ${ne}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${ne}-node-content-wrapper`]:Object.assign({lineHeight:`${me}px`,userSelect:"none"},Je(ze,ee)),[`${ge}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${ee.colorPrimary}`}},"&-show-line":{[`${ne}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:me/2,bottom:-ue,borderInlineEnd:`1px solid ${ee.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${ne}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${ge}-leaf-last`]:{[`${ne}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${me/2}px !important`}}}}})}},tt=ze=>{const{treeCls:ee,treeNodeCls:ne,treeNodePadding:ge,directoryNodeSelectedBg:ue,directoryNodeSelectedColor:me}=ze;return{[`${ee}${ee}-directory`]:{[ne]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:ge,insetInlineStart:0,transition:`background-color ${ze.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:ze.controlItemBgHover}},"> *":{zIndex:1},[`${ee}-switcher`]:{transition:`color ${ze.motionDurationMid}`},[`${ee}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${ee}-node-selected`]:{color:me,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:ue},[`${ee}-switcher`]:{color:me},[`${ee}-node-content-wrapper`]:{color:me,background:"transparent"}}}}}},ht=(ze,ee)=>{const ne=`.${ze}`,ge=`${ne}-treenode`,ue=ee.paddingXS/2,me=(0,De.TS)(ee,{treeCls:ne,treeNodeCls:ge,treeNodePadding:ue});return[Ye(ze,me),tt(me)]},kt=ze=>{const{controlHeightSM:ee}=ze;return{titleHeight:ee,nodeHoverBg:ze.controlItemBgHover,nodeSelectedBg:ze.controlItemBgActive}};be.ZP=(0,Ke.Z)("Tree",(ze,ee)=>{let{prefixCls:ne}=ee;return[{[ze.componentCls]:(0,Ce.C2)(`${ne}-checkbox`,ze)},ht(ne,ze),(0,Ie.Z)(ze)]},ze=>{const{colorTextLightSolid:ee,colorPrimary:ne}=ze;return Object.assign(Object.assign({},kt(ze)),{directoryNodeSelectedColor:ee,directoryNodeSelectedBg:ne})})},48610:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return ge}});var se=oe(5891),Ce=oe(59301),we={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"},Ie=we,De=oe(88853),Ke=function(me,Se){return Ce.createElement(De.Z,(0,se.Z)({},me,{ref:Se,icon:Ie}))},Ee=Ce.forwardRef(Ke),et=Ee,Je=oe(43971),Ye=oe(50023),tt=oe(77042),ht=oe(5527),kt=oe(92310),ze=oe.n(kt),ee=oe(92343),ge=ue=>{const{prefixCls:me,switcherIcon:Se,treeNodeProps:Ne,showLine:ke}=ue,{isLeaf:Te,expanded:We,loading:$e}=Ne;if($e)return Ce.createElement(Ye.Z,{className:`${me}-switcher-loading-icon`});let st;if(ke&&typeof ke=="object"&&(st=ke.showLeafIcon),Te){if(!ke)return null;if(typeof st!="boolean"&&st){const nt=typeof st=="function"?st(Ne):st,$t=`${me}-switcher-line-custom-icon`;return(0,ee.l$)(nt)?(0,ee.Tm)(nt,{className:ze()(nt.props.className||"",$t)}):nt}return st?Ce.createElement(Je.Z,{className:`${me}-switcher-line-icon`}):Ce.createElement("span",{className:`${me}-switcher-leaf-line`})}const ut=`${me}-switcher-icon`,Mt=typeof Se=="function"?Se(Ne):Se;return(0,ee.l$)(Mt)?(0,ee.Tm)(Mt,{className:ze()(Mt.props.className||"",ut)}):Mt!==void 0?Mt:ke?We?Ce.createElement(tt.Z,{className:`${me}-switcher-line-icon`}):Ce.createElement(ht.Z,{className:`${me}-switcher-line-icon`}):Ce.createElement(et,{className:ut})}},24645:function(_e,be,oe){"use strict";oe.d(be,{default:function(){return yn}});var se=oe(59301),Ce=oe(26390),we=oe(92310),Ie=oe.n(we),De=oe(5891),Ke=oe(79545),Ee=oe(68550),et=oe(17928),Je=oe(7711),Ye=oe(80962),tt=oe(19149),ht=oe(50204),kt=oe(80665),ze=oe(20959),ee=oe(36994);function ne(Qt,un){var wn="cannot ".concat(Qt.method," ").concat(Qt.action," ").concat(un.status,"'"),gn=new Error(wn);return gn.status=un.status,gn.method=Qt.method,gn.url=Qt.action,gn}function ge(Qt){var un=Qt.responseText||Qt.response;if(!un)return un;try{return JSON.parse(un)}catch(wn){return un}}function ue(Qt){var un=new XMLHttpRequest;Qt.onProgress&&un.upload&&(un.upload.onprogress=function(Bn){Bn.total>0&&(Bn.percent=Bn.loaded/Bn.total*100),Qt.onProgress(Bn)});var wn=new FormData;Qt.data&&Object.keys(Qt.data).forEach(function(kn){var Bn=Qt.data[kn];if(Array.isArray(Bn)){Bn.forEach(function(Vn){wn.append("".concat(kn,"[]"),Vn)});return}wn.append(kn,Bn)}),Qt.file instanceof Blob?wn.append(Qt.filename,Qt.file,Qt.file.name):wn.append(Qt.filename,Qt.file),un.onerror=function(Bn){Qt.onError(Bn)},un.onload=function(){return un.status<200||un.status>=300?Qt.onError(ne(Qt,un),ge(un)):Qt.onSuccess(ge(un),un)},un.open(Qt.method,Qt.action,!0),Qt.withCredentials&&"withCredentials"in un&&(un.withCredentials=!0);var gn=Qt.headers||{};return gn["X-Requested-With"]!==null&&un.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(gn).forEach(function(kn){gn[kn]!==null&&un.setRequestHeader(kn,gn[kn])}),un.send(wn),{abort:function(){un.abort()}}}var me=+new Date,Se=0;function Ne(){return"rc-upload-".concat(me,"-").concat(++Se)}var ke=oe(51395),Te=function(Qt,un){if(Qt&&un){var wn=Array.isArray(un)?un:un.split(","),gn=Qt.name||"",kn=Qt.type||"",Bn=kn.replace(/\/.*$/,"");return wn.some(function(Vn){var Jn=Vn.trim();if(/^\*(\/\*)?$/.test(Vn))return!0;if(Jn.charAt(0)==="."){var Wn=gn.toLowerCase(),gi=Jn.toLowerCase(),Fi=[gi];return(gi===".jpg"||gi===".jpeg")&&(Fi=[".jpg",".jpeg"]),Fi.some(function(ir){return Wn.endsWith(ir)})}return/\/\*$/.test(Jn)?Bn===Jn.replace(/\/.*$/,""):kn===Jn?!0:/^\w+$/.test(Jn)?((0,ke.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Jn,"'.Skip for check.")),!0):!1})}return!0};function We(Qt,un){var wn=Qt.createReader(),gn=[];function kn(){wn.readEntries(function(Bn){var Vn=Array.prototype.slice.apply(Bn);gn=gn.concat(Vn);var Jn=!Vn.length;Jn?un(gn):kn()})}kn()}var $e=function(un,wn,gn){var kn=function Bn(Vn,Jn){Vn&&(Vn.path=Jn||"",Vn.isFile?Vn.file(function(Wn){gn(Wn)&&(Vn.fullPath&&!Wn.webkitRelativePath&&(Object.defineProperties(Wn,{webkitRelativePath:{writable:!0}}),Wn.webkitRelativePath=Vn.fullPath.replace(/^\//,""),Object.defineProperties(Wn,{webkitRelativePath:{writable:!1}})),wn([Wn]))}):Vn.isDirectory&&We(Vn,function(Wn){Wn.forEach(function(gi){Bn(gi,"".concat(Jn).concat(Vn.name,"/"))})}))};un.forEach(function(Bn){kn(Bn.webkitGetAsEntry())})},st=$e,ut=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Mt=function(Qt){(0,et.Z)(wn,Qt);var un=(0,Je.Z)(wn);function wn(){var gn;(0,Ke.Z)(this,wn);for(var kn=arguments.length,Bn=new Array(kn),Vn=0;Vn<kn;Vn++)Bn[Vn]=arguments[Vn];return gn=un.call.apply(un,[this].concat(Bn)),gn.state={uid:Ne()},gn.reqs={},gn.fileInput=void 0,gn._isMounted=void 0,gn.onChange=function(Jn){var Wn=gn.props,gi=Wn.accept,Fi=Wn.directory,ir=Jn.target.files,zi=(0,Ce.Z)(ir).filter(function(tn){return!Fi||Te(tn,gi)});gn.uploadFiles(zi),gn.reset()},gn.onClick=function(Jn){var Wn=gn.fileInput;if(Wn){var gi=Jn.target,Fi=gn.props.onClick;if(gi&&gi.tagName==="BUTTON"){var ir=Wn.parentNode;ir.focus(),gi.blur()}Wn.click(),Fi&&Fi(Jn)}},gn.onKeyDown=function(Jn){Jn.key==="Enter"&&gn.onClick(Jn)},gn.onFileDrop=function(Jn){var Wn=gn.props.multiple;if(Jn.preventDefault(),Jn.type!=="dragover")if(gn.props.directory)st(Array.prototype.slice.call(Jn.dataTransfer.items),gn.uploadFiles,function(Fi){return Te(Fi,gn.props.accept)});else{var gi=(0,Ce.Z)(Jn.dataTransfer.files).filter(function(Fi){return Te(Fi,gn.props.accept)});Wn===!1&&(gi=gi.slice(0,1)),gn.uploadFiles(gi)}},gn.uploadFiles=function(Jn){var Wn=(0,Ce.Z)(Jn),gi=Wn.map(function(Fi){return Fi.uid=Ne(),gn.processFile(Fi,Wn)});Promise.all(gi).then(function(Fi){var ir=gn.props.onBatchStart;ir==null||ir(Fi.map(function(zi){var tn=zi.origin,Ai=zi.parsedFile;return{file:tn,parsedFile:Ai}})),Fi.filter(function(zi){return zi.parsedFile!==null}).forEach(function(zi){gn.post(zi)})})},gn.processFile=function(){var Jn=(0,ze.Z)((0,ht.Z)().mark(function Wn(gi,Fi){var ir,zi,tn,Ai,Bi,Ti,hr,tr,br;return(0,ht.Z)().wrap(function(Hi){for(;;)switch(Hi.prev=Hi.next){case 0:if(ir=gn.props.beforeUpload,zi=gi,!ir){Hi.next=14;break}return Hi.prev=3,Hi.next=6,ir(gi,Fi);case 6:zi=Hi.sent,Hi.next=12;break;case 9:Hi.prev=9,Hi.t0=Hi.catch(3),zi=!1;case 12:if(zi!==!1){Hi.next=14;break}return Hi.abrupt("return",{origin:gi,parsedFile:null,action:null,data:null});case 14:if(tn=gn.props.action,typeof tn!="function"){Hi.next=21;break}return Hi.next=18,tn(gi);case 18:Ai=Hi.sent,Hi.next=22;break;case 21:Ai=tn;case 22:if(Bi=gn.props.data,typeof Bi!="function"){Hi.next=29;break}return Hi.next=26,Bi(gi);case 26:Ti=Hi.sent,Hi.next=30;break;case 29:Ti=Bi;case 30:return hr=((0,kt.Z)(zi)==="object"||typeof zi=="string")&&zi?zi:gi,hr instanceof File?tr=hr:tr=new File([hr],gi.name,{type:gi.type}),br=tr,br.uid=gi.uid,Hi.abrupt("return",{origin:gi,data:Ti,parsedFile:br,action:Ai});case 35:case"end":return Hi.stop()}},Wn,null,[[3,9]])}));return function(Wn,gi){return Jn.apply(this,arguments)}}(),gn.saveFileInput=function(Jn){gn.fileInput=Jn},gn}return(0,Ee.Z)(wn,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(kn){var Bn=this,Vn=kn.data,Jn=kn.origin,Wn=kn.action,gi=kn.parsedFile;if(this._isMounted){var Fi=this.props,ir=Fi.onStart,zi=Fi.customRequest,tn=Fi.name,Ai=Fi.headers,Bi=Fi.withCredentials,Ti=Fi.method,hr=Jn.uid,tr=zi||ue,br={action:Wn,filename:tn,data:Vn,file:gi,headers:Ai,withCredentials:Bi,method:Ti||"post",onProgress:function(Hi){var Ir=Bn.props.onProgress;Ir==null||Ir(Hi,gi)},onSuccess:function(Hi,Ir){var Ht=Bn.props.onSuccess;Ht==null||Ht(Hi,gi,Ir),delete Bn.reqs[hr]},onError:function(Hi,Ir){var Ht=Bn.props.onError;Ht==null||Ht(Hi,Ir,gi),delete Bn.reqs[hr]}};ir(Jn),this.reqs[hr]=tr(br)}}},{key:"reset",value:function(){this.setState({uid:Ne()})}},{key:"abort",value:function(kn){var Bn=this.reqs;if(kn){var Vn=kn.uid?kn.uid:kn;Bn[Vn]&&Bn[Vn].abort&&Bn[Vn].abort(),delete Bn[Vn]}else Object.keys(Bn).forEach(function(Jn){Bn[Jn]&&Bn[Jn].abort&&Bn[Jn].abort(),delete Bn[Jn]})}},{key:"render",value:function(){var kn=this.props,Bn=kn.component,Vn=kn.prefixCls,Jn=kn.className,Wn=kn.disabled,gi=kn.id,Fi=kn.style,ir=kn.multiple,zi=kn.accept,tn=kn.capture,Ai=kn.children,Bi=kn.directory,Ti=kn.openFileDialogOnClick,hr=kn.onMouseEnter,tr=kn.onMouseLeave,br=(0,tt.Z)(kn,ut),Xi=Ie()((0,Ye.Z)((0,Ye.Z)((0,Ye.Z)({},Vn,!0),"".concat(Vn,"-disabled"),Wn),Jn,Jn)),Hi=Bi?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Ir=Wn?{}:{onClick:Ti?this.onClick:function(){},onKeyDown:Ti?this.onKeyDown:function(){},onMouseEnter:hr,onMouseLeave:tr,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return se.createElement(Bn,(0,De.Z)({},Ir,{className:Xi,role:"button",style:Fi}),se.createElement("input",(0,De.Z)({},(0,ee.Z)(br,{aria:!0,data:!0}),{id:gi,disabled:Wn,type:"file",ref:this.saveFileInput,onClick:function(Kr){return Kr.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:zi},Hi,{multiple:ir,onChange:this.onChange},tn!=null?{capture:tn}:{})),Ai)}}]),wn}(se.Component),nt=Mt;function $t(){}var Pt=function(Qt){(0,et.Z)(wn,Qt);var un=(0,Je.Z)(wn);function wn(){var gn;(0,Ke.Z)(this,wn);for(var kn=arguments.length,Bn=new Array(kn),Vn=0;Vn<kn;Vn++)Bn[Vn]=arguments[Vn];return gn=un.call.apply(un,[this].concat(Bn)),gn.uploader=void 0,gn.saveUploader=function(Jn){gn.uploader=Jn},gn}return(0,Ee.Z)(wn,[{key:"abort",value:function(kn){this.uploader.abort(kn)}},{key:"render",value:function(){return se.createElement(nt,(0,De.Z)({},this.props,{ref:this.saveUploader}))}}]),wn}(se.Component);Pt.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:$t,onError:$t,onSuccess:$t,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var dn=Pt,zt=dn,Xt=oe(35788),fn=oe(4676),an=oe(36355),it=oe(1684),Ve=oe(9763),gt=oe(31724),Bt={icon:function(un,wn){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:wn}},{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:un}}]}},name:"file",theme:"twotone"},sn=Bt,It=oe(88853),en=function(un,wn){return se.createElement(It.Z,(0,De.Z)({},un,{ref:wn,icon:sn}))},En=se.forwardRef(en),ei=En,An=oe(50023),Kn={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"},jt=Kn,Nn=function(un,wn){return se.createElement(It.Z,(0,De.Z)({},un,{ref:wn,icon:jt}))},Gn=se.forwardRef(Nn),ii=Gn,Sn={icon:function(un,wn){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:un}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:wn}},{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:wn}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:wn}},{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:un}}]}},name:"picture",theme:"twotone"},Yt=Sn,Zt=function(un,wn){return se.createElement(It.Z,(0,De.Z)({},un,{ref:wn,icon:Yt}))},St=se.forwardRef(Zt),rt=St,Ft=oe(43469),Ot=oe(56762),ft=oe(62892),ct=oe(92343),Ge=oe(3113);function Ae(Qt){return Object.assign(Object.assign({},Qt),{lastModified:Qt.lastModified,lastModifiedDate:Qt.lastModifiedDate,name:Qt.name,size:Qt.size,type:Qt.type,uid:Qt.uid,percent:0,originFileObj:Qt})}function xe(Qt,un){const wn=(0,Ce.Z)(un),gn=wn.findIndex(kn=>{let{uid:Bn}=kn;return Bn===Qt.uid});return gn===-1?wn.push(Qt):wn[gn]=Qt,wn}function je(Qt,un){const wn=Qt.uid!==void 0?"uid":"name";return un.filter(gn=>gn[wn]===Qt[wn])[0]}function Qe(Qt,un){const wn=Qt.uid!==void 0?"uid":"name",gn=un.filter(kn=>kn[wn]!==Qt[wn]);return gn.length===un.length?null:gn}const Oe=function(){const un=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),gn=un[un.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(gn)||[""])[0]},xt=Qt=>Qt.indexOf("image/")===0,hn=Qt=>{if(Qt.type&&!Qt.thumbUrl)return xt(Qt.type);const un=Qt.thumbUrl||Qt.url||"",wn=Oe(un);return/^data:image\//.test(un)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(wn)?!0:!(/^data:/.test(un)||wn)},Pn=200;function wt(Qt){return new Promise(un=>{if(!Qt.type||!xt(Qt.type)){un("");return}const wn=document.createElement("canvas");wn.width=Pn,wn.height=Pn,wn.style.cssText=`position: fixed; left: 0; top: 0; width: ${Pn}px; height: ${Pn}px; z-index: 9999; display: none;`,document.body.appendChild(wn);const gn=wn.getContext("2d"),kn=new Image;if(kn.onload=()=>{const{width:Bn,height:Vn}=kn;let Jn=Pn,Wn=Pn,gi=0,Fi=0;Bn>Vn?(Wn=Vn*(Pn/Bn),Fi=-(Wn-Jn)/2):(Jn=Bn*(Pn/Vn),gi=-(Jn-Wn)/2),gn.drawImage(kn,gi,Fi,Jn,Wn);const ir=wn.toDataURL();document.body.removeChild(wn),window.URL.revokeObjectURL(kn.src),un(ir)},kn.crossOrigin="anonymous",Qt.type.startsWith("image/svg+xml")){const Bn=new FileReader;Bn.onload=()=>{Bn.result&&(kn.src=Bn.result)},Bn.readAsDataURL(Qt)}else if(Qt.type.startsWith("image/gif")){const Bn=new FileReader;Bn.onload=()=>{Bn.result&&un(Bn.result)},Bn.readAsDataURL(Qt)}else kn.src=window.URL.createObjectURL(Qt)})}var nn=oe(72295),Mn=oe(24566),Zn=oe(30631),li=oe(93948),xi=oe(6848),Si=se.forwardRef((Qt,un)=>{let{prefixCls:wn,className:gn,style:kn,locale:Bn,listType:Vn,file:Jn,items:Wn,progress:gi,iconRender:Fi,actionIconRender:ir,itemRender:zi,isImgUrl:tn,showPreviewIcon:Ai,showRemoveIcon:Bi,showDownloadIcon:Ti,previewIcon:hr,removeIcon:tr,downloadIcon:br,onPreview:Xi,onDownload:Hi,onClose:Ir}=Qt;var Ht,Kr;const{status:Fn}=Jn,[kr,Go]=se.useState(Fn);se.useEffect(()=>{Fn!=="removed"&&Go(Fn)},[Fn]);const[Dr,po]=se.useState(!1);se.useEffect(()=>{const gr=setTimeout(()=>{po(!0)},300);return()=>{clearTimeout(gr)}},[]);const Do=Fi(Jn);let Ji=se.createElement("div",{className:`${wn}-icon`},Do);if(Vn==="picture"||Vn==="picture-card"||Vn==="picture-circle")if(kr==="uploading"||!Jn.thumbUrl&&!Jn.url){const gr=Ie()(`${wn}-list-item-thumbnail`,{[`${wn}-list-item-file`]:kr!=="uploading"});Ji=se.createElement("div",{className:gr},Do)}else{const gr=tn!=null&&tn(Jn)?se.createElement("img",{src:Jn.thumbUrl||Jn.url,alt:Jn.name,className:`${wn}-list-item-image`,crossOrigin:Jn.crossOrigin}):Do,Qi=Ie()(`${wn}-list-item-thumbnail`,{[`${wn}-list-item-file`]:tn&&!tn(Jn)});Ji=se.createElement("a",{className:Qi,onClick:xr=>Xi(Jn,xr),href:Jn.url||Jn.thumbUrl,target:"_blank",rel:"noopener noreferrer"},gr)}const or=Ie()(`${wn}-list-item`,`${wn}-list-item-${kr}`),io=typeof Jn.linkProps=="string"?JSON.parse(Jn.linkProps):Jn.linkProps,Gr=Bi?ir((typeof tr=="function"?tr(Jn):tr)||se.createElement(nn.Z,null),()=>Ir(Jn),wn,Bn.removeFile):null,Ii=Ti&&kr==="done"?ir((typeof br=="function"?br(Jn):br)||se.createElement(Mn.Z,null),()=>Hi(Jn),wn,Bn.downloadFile):null,lt=Vn!=="picture-card"&&Vn!=="picture-circle"&&se.createElement("span",{key:"download-delete",className:Ie()(`${wn}-list-item-actions`,{picture:Vn==="picture"})},Ii,Gr),Rr=Ie()(`${wn}-list-item-name`),Ko=Jn.url?[se.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Rr,title:Jn.name},io,{href:Jn.url,onClick:gr=>Xi(Jn,gr)}),Jn.name),lt]:[se.createElement("span",{key:"view",className:Rr,onClick:gr=>Xi(Jn,gr),title:Jn.name},Jn.name),lt],Yr={pointerEvents:"none",opacity:.5},yo=Ai?se.createElement("a",{href:Jn.url||Jn.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Jn.url||Jn.thumbUrl?void 0:Yr,onClick:gr=>Xi(Jn,gr),title:Bn.previewFile},typeof hr=="function"?hr(Jn):hr||se.createElement(Zn.Z,null)):null,Mr=(Vn==="picture-card"||Vn==="picture-circle")&&kr!=="uploading"&&se.createElement("span",{className:`${wn}-list-item-actions`},yo,kr==="done"&&Ii,Gr),{getPrefixCls:mr}=se.useContext(an.E_),co=mr(),Uo=se.createElement("div",{className:or},Ji,Ko,Mr,Dr&&se.createElement(Ft.default,{motionName:`${co}-fade`,visible:kr==="uploading",motionDeadline:2e3},gr=>{let{className:Qi}=gr;const xr="percent"in Jn?se.createElement(li.Z,Object.assign({},gi,{type:"line",percent:Jn.percent,"aria-label":Jn["aria-label"],"aria-labelledby":Jn["aria-labelledby"]})):null;return se.createElement("div",{className:Ie()(`${wn}-list-item-progress`,Qi)},xr)})),ao=Jn.response&&typeof Jn.response=="string"?Jn.response:((Ht=Jn.error)===null||Ht===void 0?void 0:Ht.statusText)||((Kr=Jn.error)===null||Kr===void 0?void 0:Kr.message)||Bn.uploadError,ra=kr==="error"?se.createElement(xi.Z,{title:ao,getPopupContainer:gr=>gr.parentNode},Uo):Uo;return se.createElement("div",{className:Ie()(`${wn}-list-item-container`,gn),style:kn,ref:un},zi?zi(ra,Jn,Wn,{download:Hi.bind(null,Jn),preview:Xi.bind(null,Jn),remove:Ir.bind(null,Jn)}):ra)});const Ri=(Qt,un)=>{const{listType:wn="text",previewFile:gn=wt,onPreview:kn,onDownload:Bn,onRemove:Vn,locale:Jn,iconRender:Wn,isImageUrl:gi=hn,prefixCls:Fi,items:ir=[],showPreviewIcon:zi=!0,showRemoveIcon:tn=!0,showDownloadIcon:Ai=!1,removeIcon:Bi,previewIcon:Ti,downloadIcon:hr,progress:tr={size:[-1,2],showInfo:!1},appendAction:br,appendActionVisible:Xi=!0,itemRender:Hi,disabled:Ir}=Qt,Ht=(0,Ot.Z)(),[Kr,Fn]=se.useState(!1);se.useEffect(()=>{wn!=="picture"&&wn!=="picture-card"&&wn!=="picture-circle"||(ir||[]).forEach(Yr=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Yr.originFileObj instanceof File||Yr.originFileObj instanceof Blob)||Yr.thumbUrl!==void 0||(Yr.thumbUrl="",gn&&gn(Yr.originFileObj).then(yo=>{Yr.thumbUrl=yo||"",Ht()}))})},[wn,ir,gn]),se.useEffect(()=>{Fn(!0)},[]);const kr=(Yr,yo)=>{if(kn)return yo==null||yo.preventDefault(),kn(Yr)},Go=Yr=>{typeof Bn=="function"?Bn(Yr):Yr.url&&window.open(Yr.url)},Dr=Yr=>{Vn==null||Vn(Yr)},po=Yr=>{if(Wn)return Wn(Yr,wn);const yo=Yr.status==="uploading",Mr=gi&&gi(Yr)?se.createElement(rt,null):se.createElement(ei,null);let mr=yo?se.createElement(An.Z,null):se.createElement(ii,null);return wn==="picture"?mr=yo?se.createElement(An.Z,null):Mr:(wn==="picture-card"||wn==="picture-circle")&&(mr=yo?Jn.uploading:Mr),mr},Do=(Yr,yo,Mr,mr)=>{const co={type:"text",size:"small",title:mr,onClick:Uo=>{yo(),(0,ct.l$)(Yr)&&Yr.props.onClick&&Yr.props.onClick(Uo)},className:`${Mr}-list-item-action`,disabled:Ir};if((0,ct.l$)(Yr)){const Uo=(0,ct.Tm)(Yr,Object.assign(Object.assign({},Yr.props),{onClick:()=>{}}));return se.createElement(Ge.ZP,Object.assign({},co,{icon:Uo}))}return se.createElement(Ge.ZP,Object.assign({},co),se.createElement("span",null,Yr))};se.useImperativeHandle(un,()=>({handlePreview:kr,handleDownload:Go}));const{getPrefixCls:Ji}=se.useContext(an.E_),or=Ji("upload",Fi),io=Ji(),Gr=Ie()(`${or}-list`,`${or}-list-${wn}`),Ii=(0,Ce.Z)(ir.map(Yr=>({key:Yr.uid,file:Yr})));let Rr={motionDeadline:2e3,motionName:`${or}-${wn==="picture-card"||wn==="picture-circle"?"animate-inline":"animate"}`,keys:Ii,motionAppear:Kr};const Ko=se.useMemo(()=>{const Yr=Object.assign({},(0,ft.Z)(io));return delete Yr.onAppearEnd,delete Yr.onEnterEnd,delete Yr.onLeaveEnd,Yr},[io]);return wn!=="picture-card"&&wn!=="picture-circle"&&(Rr=Object.assign(Object.assign({},Ko),Rr)),se.createElement("div",{className:Gr},se.createElement(Ft.CSSMotionList,Object.assign({},Rr,{component:!1}),Yr=>{let{key:yo,file:Mr,className:mr,style:co}=Yr;return se.createElement(Si,{key:yo,locale:Jn,prefixCls:or,className:mr,style:co,file:Mr,items:ir,progress:tr,listType:wn,isImgUrl:gi,showPreviewIcon:zi,showRemoveIcon:tn,showDownloadIcon:Ai,removeIcon:Bi,previewIcon:Ti,downloadIcon:hr,iconRender:po,actionIconRender:Do,itemRender:Hi,onPreview:kr,onDownload:Go,onClose:Dr})}),br&&se.createElement(Ft.default,Object.assign({},Rr,{visible:Xi,forceRender:!0}),Yr=>{let{className:yo,style:Mr}=Yr;return(0,ct.Tm)(br,mr=>({className:Ie()(mr.className,yo),style:Object.assign(Object.assign(Object.assign({},Mr),{pointerEvents:yo?"none":void 0}),mr.style)}))}))};var dr=se.forwardRef(Ri),ur=oe(17313),Sr=oe(8378),Wr=oe(83116),Gi=oe(37613),Yi=Qt=>{const{componentCls:un,iconCls:wn}=Qt;return{[`${un}-wrapper`]:{[`${un}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:Qt.colorFillAlter,border:`${Qt.lineWidth}px dashed ${Qt.colorBorder}`,borderRadius:Qt.borderRadiusLG,cursor:"pointer",transition:`border-color ${Qt.motionDurationSlow}`,[un]:{padding:`${Qt.padding}px 0`},[`${un}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${un}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${un}-disabled):hover`]:{borderColor:Qt.colorPrimaryHover},[`p${un}-drag-icon`]:{marginBottom:Qt.margin,[wn]:{color:Qt.colorPrimary,fontSize:Qt.uploadThumbnailSize}},[`p${un}-text`]:{margin:`0 0 ${Qt.marginXXS}px`,color:Qt.colorTextHeading,fontSize:Qt.fontSizeLG},[`p${un}-hint`]:{color:Qt.colorTextDescription,fontSize:Qt.fontSize},[`&${un}-disabled`]:{cursor:"not-allowed",[`p${un}-drag-icon ${wn},
p${un}-text,
p${un}-hint
`]:{color:Qt.colorTextDisabled}}}}}},no=Qt=>{const{componentCls:un,antCls:wn,iconCls:gn,fontSize:kn,lineHeight:Bn}=Qt,Vn=`${un}-list-item`,Jn=`${Vn}-actions`,Wn=`${Vn}-action`,gi=Math.round(kn*Bn);return{[`${un}-wrapper`]:{[`${un}-list`]:Object.assign(Object.assign({},(0,ur.dF)()),{lineHeight:Qt.lineHeight,[Vn]:{position:"relative",height:Qt.lineHeight*kn,marginTop:Qt.marginXS,fontSize:kn,display:"flex",alignItems:"center",transition:`background-color ${Qt.motionDurationSlow}`,"&:hover":{backgroundColor:Qt.controlItemBgHover},[`${Vn}-name`]:Object.assign(Object.assign({},ur.vS),{padding:`0 ${Qt.paddingXS}px`,lineHeight:Bn,flex:"auto",transition:`all ${Qt.motionDurationSlow}`}),[Jn]:{[Wn]:{opacity:0},[`${Wn}${wn}-btn-sm`]:{height:gi,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
${Wn}:focus-visible,
&.picture ${Wn}
`]:{opacity:1},[gn]:{color:Qt.actionsColor,transition:`all ${Qt.motionDurationSlow}`},[`&:hover ${gn}`]:{color:Qt.colorText}},[`${un}-icon ${gn}`]:{color:Qt.colorTextDescription,fontSize:kn},[`${Vn}-progress`]:{position:"absolute",bottom:-Qt.uploadProgressOffset,width:"100%",paddingInlineStart:kn+Qt.paddingXS,fontSize:kn,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Vn}:hover ${Wn}`]:{opacity:1,color:Qt.colorText},[`${Vn}-error`]:{color:Qt.colorError,[`${Vn}-name, ${un}-icon ${gn}`]:{color:Qt.colorError},[Jn]:{[`${gn}, ${gn}:hover`]:{color:Qt.colorError},[Wn]:{opacity:1}}},[`${un}-list-item-container`]:{transition:`opacity ${Qt.motionDurationSlow}, height ${Qt.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},pr=oe(9792),fo=oe(1950);const Fo=new pr.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Vo=new pr.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Oi=Qt=>{const{componentCls:un}=Qt,wn=`${un}-animate-inline`;return[{[`${un}-wrapper`]:{[`${wn}-appear, ${wn}-enter, ${wn}-leave`]:{animationDuration:Qt.motionDurationSlow,animationTimingFunction:Qt.motionEaseInOutCirc,animationFillMode:"forwards"},[`${wn}-appear, ${wn}-enter`]:{animationName:Fo},[`${wn}-leave`]:{animationName:Vo}}},{[`${un}-wrapper`]:(0,fo.J$)(Qt)},Fo,Vo]},on=oe(93398),ln=oe(64993);const qt=Qt=>{const{componentCls:un,iconCls:wn,uploadThumbnailSize:gn,uploadProgressOffset:kn}=Qt,Bn=`${un}-list`,Vn=`${Bn}-item`;return{[`${un}-wrapper`]:{[`
${Bn}${Bn}-picture,
${Bn}${Bn}-picture-card,
${Bn}${Bn}-picture-circle
`]:{[Vn]:{position:"relative",height:gn+Qt.lineWidth*2+Qt.paddingXS*2,padding:Qt.paddingXS,border:`${Qt.lineWidth}px ${Qt.lineType} ${Qt.colorBorder}`,borderRadius:Qt.borderRadiusLG,"&:hover":{background:"transparent"},[`${Vn}-thumbnail`]:Object.assign(Object.assign({},ur.vS),{width:gn,height:gn,lineHeight:`${gn+Qt.paddingSM}px`,textAlign:"center",flex:"none",[wn]:{fontSize:Qt.fontSizeHeading2,color:Qt.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Vn}-progress`]:{bottom:kn,width:`calc(100% - ${Qt.paddingSM*2}px)`,marginTop:0,paddingInlineStart:gn+Qt.paddingXS}},[`${Vn}-error`]:{borderColor:Qt.colorError,[`${Vn}-thumbnail ${wn}`]:{[`svg path[fill='${on.blue[0]}']`]:{fill:Qt.colorErrorBg},[`svg path[fill='${on.blue.primary}']`]:{fill:Qt.colorError}}},[`${Vn}-uploading`]:{borderStyle:"dashed",[`${Vn}-name`]:{marginBottom:kn}}},[`${Bn}${Bn}-picture-circle ${Vn}`]:{[`&, &::before, ${Vn}-thumbnail`]:{borderRadius:"50%"}}}}},Nt=Qt=>{const{componentCls:un,iconCls:wn,fontSizeLG:gn,colorTextLightSolid:kn}=Qt,Bn=`${un}-list`,Vn=`${Bn}-item`,Jn=Qt.uploadPicCardSize;return{[`
${un}-wrapper${un}-picture-card-wrapper,
${un}-wrapper${un}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,ur.dF)()),{display:"inline-block",width:"100%",[`${un}${un}-select`]:{width:Jn,height:Jn,marginInlineEnd:Qt.marginXS,marginBottom:Qt.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:Qt.colorFillAlter,border:`${Qt.lineWidth}px dashed ${Qt.colorBorder}`,borderRadius:Qt.borderRadiusLG,cursor:"pointer",transition:`border-color ${Qt.motionDurationSlow}`,[`> ${un}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${un}-disabled):hover`]:{borderColor:Qt.colorPrimary}},[`${Bn}${Bn}-picture-card, ${Bn}${Bn}-picture-circle`]:{[`${Bn}-item-container`]:{display:"inline-block",width:Jn,height:Jn,marginBlock:`0 ${Qt.marginXS}px`,marginInline:`0 ${Qt.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Vn]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${Qt.paddingXS*2}px)`,height:`calc(100% - ${Qt.paddingXS*2}px)`,backgroundColor:Qt.colorBgMask,opacity:0,transition:`all ${Qt.motionDurationSlow}`,content:'" "'}},[`${Vn}:hover`]:{[`&::before, ${Vn}-actions`]:{opacity:1}},[`${Vn}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${Qt.motionDurationSlow}`,[`${wn}-eye, ${wn}-download, ${wn}-delete`]:{zIndex:10,width:gn,margin:`0 ${Qt.marginXXS}px`,fontSize:gn,cursor:"pointer",transition:`all ${Qt.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Vn}-actions, ${Vn}-actions:hover`]:{[`${wn}-eye, ${wn}-download, ${wn}-delete`]:{color:new ln.C(kn).setAlpha(.65).toRgbString(),"&:hover":{color:kn}}},[`${Vn}-thumbnail, ${Vn}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Vn}-name`]:{display:"none",textAlign:"center"},[`${Vn}-file + ${Vn}-name`]:{position:"absolute",bottom:Qt.margin,display:"block",width:`calc(100% - ${Qt.paddingXS*2}px)`},[`${Vn}-uploading`]:{[`&${Vn}`]:{backgroundColor:Qt.colorFillAlter},[`&::before, ${wn}-eye, ${wn}-download, ${wn}-delete`]:{display:"none"}},[`${Vn}-progress`]:{bottom:Qt.marginXL,width:`calc(100% - ${Qt.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${un}-wrapper${un}-picture-circle-wrapper`]:{[`${un}${un}-select`]:{borderRadius:"50%"}}}};var Un=Qt=>{const{componentCls:un}=Qt;return{[`${un}-rtl`]:{direction:"rtl"}}};const Vt=Qt=>{const{componentCls:un,colorTextDisabled:wn}=Qt;return{[`${un}-wrapper`]:Object.assign(Object.assign({},(0,ur.Wf)(Qt)),{[un]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${un}-select`]:{display:"inline-block"},[`${un}-disabled`]:{color:wn,cursor:"not-allowed"}})}};var yt=(0,Wr.Z)("Upload",Qt=>{const{fontSizeHeading3:un,fontSize:wn,lineHeight:gn,lineWidth:kn,controlHeightLG:Bn}=Qt,Vn=Math.round(wn*gn),Jn=(0,Gi.TS)(Qt,{uploadThumbnailSize:un*2,uploadProgressOffset:Vn/2+kn,uploadPicCardSize:Bn*2.55});return[Vt(Jn),Yi(Jn),qt(Jn),Nt(Jn),no(Jn),Oi(Jn),Un(Jn),(0,Sr.Z)(Jn)]},Qt=>({actionsColor:Qt.colorTextDescription})),In=function(Qt,un,wn,gn){function kn(Bn){return Bn instanceof wn?Bn:new wn(function(Vn){Vn(Bn)})}return new(wn||(wn=Promise))(function(Bn,Vn){function Jn(Fi){try{gi(gn.next(Fi))}catch(ir){Vn(ir)}}function Wn(Fi){try{gi(gn.throw(Fi))}catch(ir){Vn(ir)}}function gi(Fi){Fi.done?Bn(Fi.value):kn(Fi.value).then(Jn,Wn)}gi((gn=gn.apply(Qt,un||[])).next())})};const zn=`__LIST_IGNORE_${Date.now()}__`,mi=(Qt,un)=>{const{fileList:wn,defaultFileList:gn,onRemove:kn,showUploadList:Bn=!0,listType:Vn="text",onPreview:Jn,onDownload:Wn,onChange:gi,onDrop:Fi,previewFile:ir,disabled:zi,locale:tn,iconRender:Ai,isImageUrl:Bi,progress:Ti,prefixCls:hr,className:tr,type:br="select",children:Xi,style:Hi,itemRender:Ir,maxCount:Ht,data:Kr={},multiple:Fn=!1,action:kr="",accept:Go="",supportServerRender:Dr=!0,rootClassName:po}=Qt,Do=se.useContext(it.Z),Ji=zi!=null?zi:Do,[or,io]=(0,Xt.Z)(gn||[],{value:wn,postState:Oo=>Oo!=null?Oo:[]}),[Gr,Ii]=se.useState("drop"),lt=se.useRef(null);se.useMemo(()=>{const Oo=Date.now();(wn||[]).forEach((ma,hs)=>{!ma.uid&&!Object.isFrozen(ma)&&(ma.uid=`__AUTO__${Oo}_${hs}__`)})},[wn]);const Rr=(Oo,ma,hs)=>{let aa=(0,Ce.Z)(ma),Xr=!1;Ht===1?aa=aa.slice(-1):Ht&&(Xr=aa.length>Ht,aa=aa.slice(0,Ht)),(0,fn.flushSync)(()=>{io(aa)});const Qr={file:Oo,fileList:aa};hs&&(Qr.event=hs),(!Xr||aa.some(ns=>ns.uid===Oo.uid))&&(0,fn.flushSync)(()=>{gi==null||gi(Qr)})},Ko=(Oo,ma)=>In(void 0,void 0,void 0,function*(){const{beforeUpload:hs,transformFile:aa}=Qt;let Xr=Oo;if(hs){const Qr=yield hs(Oo,ma);if(Qr===!1)return!1;if(delete Oo[zn],Qr===zn)return Object.defineProperty(Oo,zn,{value:!0,configurable:!0}),!1;typeof Qr=="object"&&Qr&&(Xr=Qr)}return aa&&(Xr=yield aa(Xr)),Xr}),Yr=Oo=>{const ma=Oo.filter(Xr=>!Xr.file[zn]);if(!ma.length)return;const hs=ma.map(Xr=>Ae(Xr.file));let aa=(0,Ce.Z)(or);hs.forEach(Xr=>{aa=xe(Xr,aa)}),hs.forEach((Xr,Qr)=>{let ns=Xr;if(ma[Qr].parsedFile)Xr.status="uploading";else{const{originFileObj:so}=Xr;let Po;try{Po=new File([so],so.name,{type:so.type})}catch(Mo){Po=new Blob([so],{type:so.type}),Po.name=so.name,Po.lastModifiedDate=new Date,Po.lastModified=new Date().getTime()}Po.uid=Xr.uid,ns=Po}Rr(ns,aa)})},yo=(Oo,ma,hs)=>{try{typeof Oo=="string"&&(Oo=JSON.parse(Oo))}catch(Qr){}if(!je(ma,or))return;const aa=Ae(ma);aa.status="done",aa.percent=100,aa.response=Oo,aa.xhr=hs;const Xr=xe(aa,or);Rr(aa,Xr)},Mr=(Oo,ma)=>{if(!je(ma,or))return;const hs=Ae(ma);hs.status="uploading",hs.percent=Oo.percent;const aa=xe(hs,or);Rr(hs,aa,Oo)},mr=(Oo,ma,hs)=>{if(!je(hs,or))return;const aa=Ae(hs);aa.error=Oo,aa.response=ma,aa.status="error";const Xr=xe(aa,or);Rr(aa,Xr)},co=Oo=>{let ma;Promise.resolve(typeof kn=="function"?kn(Oo):kn).then(hs=>{var aa;if(hs===!1)return;const Xr=Qe(Oo,or);Xr&&(ma=Object.assign(Object.assign({},Oo),{status:"removed"}),or==null||or.forEach(Qr=>{const ns=ma.uid!==void 0?"uid":"name";Qr[ns]===ma[ns]&&!Object.isFrozen(Qr)&&(Qr.status="removed")}),(aa=lt.current)===null||aa===void 0||aa.abort(ma),Rr(ma,Xr))})},Uo=Oo=>{Ii(Oo.type),Oo.type==="drop"&&(Fi==null||Fi(Oo))};se.useImperativeHandle(un,()=>({onBatchStart:Yr,onSuccess:yo,onProgress:Mr,onError:mr,fileList:or,upload:lt.current}));const{getPrefixCls:ao,direction:ra,upload:gr}=se.useContext(an.E_),Qi=ao("upload",hr),xr=Object.assign(Object.assign({onBatchStart:Yr,onError:mr,onProgress:Mr,onSuccess:yo},Qt),{data:Kr,multiple:Fn,action:kr,accept:Go,supportServerRender:Dr,prefixCls:Qi,disabled:Ji,beforeUpload:Ko,onChange:void 0});delete xr.className,delete xr.style,(!Xi||Ji)&&delete xr.id;const[fi,bo]=yt(Qi),[ua]=(0,Ve.Z)("Upload",gt.Z.Upload),{showRemoveIcon:ca,showPreviewIcon:oa,showDownloadIcon:Ra,removeIcon:ts,previewIcon:ds,downloadIcon:Qa}=typeof Bn=="boolean"?{}:Bn,ks=(Oo,ma)=>Bn?se.createElement(dr,{prefixCls:Qi,listType:Vn,items:or,previewFile:ir,onPreview:Jn,onDownload:Wn,onRemove:co,showRemoveIcon:!Ji&&ca,showPreviewIcon:oa,showDownloadIcon:Ra,removeIcon:ts,previewIcon:ds,downloadIcon:Qa,iconRender:Ai,locale:Object.assign(Object.assign({},ua),tn),isImageUrl:Bi,progress:Ti,appendAction:Oo,appendActionVisible:ma,itemRender:Ir,disabled:Ji}):Oo,Ds=Ie()(`${Qi}-wrapper`,tr,po,bo,gr==null?void 0:gr.className,{[`${Qi}-rtl`]:ra==="rtl",[`${Qi}-picture-card-wrapper`]:Vn==="picture-card",[`${Qi}-picture-circle-wrapper`]:Vn==="picture-circle"}),jn=Object.assign(Object.assign({},gr==null?void 0:gr.style),Hi);if(br==="drag"){const Oo=Ie()(bo,Qi,`${Qi}-drag`,{[`${Qi}-drag-uploading`]:or.some(ma=>ma.status==="uploading"),[`${Qi}-drag-hover`]:Gr==="dragover",[`${Qi}-disabled`]:Ji,[`${Qi}-rtl`]:ra==="rtl"});return fi(se.createElement("span",{className:Ds},se.createElement("div",{className:Oo,style:jn,onDrop:Uo,onDragOver:Uo,onDragLeave:Uo},se.createElement(zt,Object.assign({},xr,{ref:lt,className:`${Qi}-btn`}),se.createElement("div",{className:`${Qi}-drag-container`},Xi))),ks()))}const gs=Ie()(Qi,`${Qi}-select`,{[`${Qi}-disabled`]:Ji}),Kl=(Oo=>se.createElement("div",{className:gs,style:Oo},se.createElement(zt,Object.assign({},xr,{ref:lt}))))(Xi?void 0:{display:"none"});return fi(Vn==="picture-card"||Vn==="picture-circle"?se.createElement("span",{className:Ds},ks(Kl,!!Xi)):se.createElement("span",{className:Ds},Kl,ks()))};var bt=se.forwardRef(mi),Ut=function(Qt,un){var wn={};for(var gn in Qt)Object.prototype.hasOwnProperty.call(Qt,gn)&&un.indexOf(gn)<0&&(wn[gn]=Qt[gn]);if(Qt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kn=0,gn=Object.getOwnPropertySymbols(Qt);kn<gn.length;kn++)un.indexOf(gn[kn])<0&&Object.prototype.propertyIsEnumerable.call(Qt,gn[kn])&&(wn[gn[kn]]=Qt[gn[kn]]);return wn},ni=se.forwardRef((Qt,un)=>{var{style:wn,height:gn}=Qt,kn=Ut(Qt,["style","height"]);return se.createElement(bt,Object.assign({ref:un},kn,{type:"drag",style:Object.assign(Object.assign({},wn),{height:gn})}))});const Gt=bt;Gt.Dragger=ni,Gt.LIST_IGNORE=zn;var yn=Gt},99498:function(_e,be,oe){(function(se){se(oe(89780))})(function(se){se.defineOption("placeholder","",function(et,Je,Ye){var tt=Ye&&Ye!=se.Init;if(Je&&!tt)et.on("blur",De),et.on("change",Ke),et.on("swapDoc",Ke),se.on(et.getInputField(),"compositionupdate",et.state.placeholderCompose=function(){Ie(et)}),Ke(et);else if(!Je&&tt){et.off("blur",De),et.off("change",Ke),et.off("swapDoc",Ke),se.off(et.getInputField(),"compositionupdate",et.state.placeholderCompose),Ce(et);var ht=et.getWrapperElement();ht.className=ht.className.replace(" CodeMirror-empty","")}Je&&!et.hasFocus()&&De(et)});function Ce(et){et.state.placeholder&&(et.state.placeholder.parentNode.removeChild(et.state.placeholder),et.state.placeholder=null)}function we(et){Ce(et);var Je=et.state.placeholder=document.createElement("pre");Je.style.cssText="height: 0; overflow: visible",Je.style.direction=et.getOption("direction"),Je.className="CodeMirror-placeholder CodeMirror-line-like";var Ye=et.getOption("placeholder");typeof Ye=="string"&&(Ye=document.createTextNode(Ye)),Je.appendChild(Ye),et.display.lineSpace.insertBefore(Je,et.display.lineSpace.firstChild)}function Ie(et){setTimeout(function(){var Je=!1,Ye=et.getInputField();Ye.nodeName=="TEXTAREA"?Je=!Ye.value:et.lineCount()==1&&(Je=!/[^\u200b]/.test(Ye.querySelector(".CodeMirror-line").textContent)),Je?we(et):Ce(et)},20)}function De(et){Ee(et)&&we(et)}function Ke(et){var Je=et.getWrapperElement(),Ye=Ee(et);Je.className=Je.className.replace(" CodeMirror-empty","")+(Ye?" CodeMirror-empty":""),Ye?we(et):Ce(et)}function Ee(et){return et.lineCount()===1&&et.getLine(0)===""}})},25717:function(_e,be,oe){(function(se){se(oe(89780))})(function(se){var Ce={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},we=se.Pos;se.defineOption("autoCloseBrackets",!1,function(ee,ne,ge){ge&&ge!=se.Init&&(ee.removeKeyMap(De),ee.state.closeBrackets=null),ne&&(Ke(Ie(ne,"pairs")),ee.state.closeBrackets=ne,ee.addKeyMap(De))});function Ie(ee,ne){return ne=="pairs"&&typeof ee=="string"?ee:typeof ee=="object"&&ee[ne]!=null?ee[ne]:Ce[ne]}var De={Backspace:Je,Enter:Ye};function Ke(ee){for(var ne=0;ne<ee.length;ne++){var ge=ee.charAt(ne),ue="'"+ge+"'";De[ue]||(De[ue]=Ee(ge))}}Ke(Ce.pairs+"`");function Ee(ee){return function(ne){return ht(ne,ee)}}function et(ee){var ne=ee.state.closeBrackets;if(!ne||ne.override)return ne;var ge=ee.getModeAt(ee.getCursor());return ge.closeBrackets||ne}function Je(ee){var ne=et(ee);if(!ne||ee.getOption("disableInput"))return se.Pass;for(var ge=Ie(ne,"pairs"),ue=ee.listSelections(),me=0;me<ue.length;me++){if(!ue[me].empty())return se.Pass;var Se=kt(ee,ue[me].head);if(!Se||ge.indexOf(Se)%2!=0)return se.Pass}for(var me=ue.length-1;me>=0;me--){var Ne=ue[me].head;ee.replaceRange("",we(Ne.line,Ne.ch-1),we(Ne.line,Ne.ch+1),"+delete")}}function Ye(ee){var ne=et(ee),ge=ne&&Ie(ne,"explode");if(!ge||ee.getOption("disableInput"))return se.Pass;for(var ue=ee.listSelections(),me=0;me<ue.length;me++){if(!ue[me].empty())return se.Pass;var Se=kt(ee,ue[me].head);if(!Se||ge.indexOf(Se)%2!=0)return se.Pass}ee.operation(function(){var Ne=ee.lineSeparator()||`
`;ee.replaceSelection(Ne+Ne,null),ee.execCommand("goCharLeft"),ue=ee.listSelections();for(var ke=0;ke<ue.length;ke++){var Te=ue[ke].head.line;ee.indentLine(Te,null,!0),ee.indentLine(Te+1,null,!0)}})}function tt(ee){var ne=se.cmpPos(ee.anchor,ee.head)>0;return{anchor:new we(ee.anchor.line,ee.anchor.ch+(ne?-1:1)),head:new we(ee.head.line,ee.head.ch+(ne?1:-1))}}function ht(ee,ne){var ge=et(ee);if(!ge||ee.getOption("disableInput"))return se.Pass;var ue=Ie(ge,"pairs"),me=ue.indexOf(ne);if(me==-1)return se.Pass;for(var Se=Ie(ge,"closeBefore"),Ne=Ie(ge,"triples"),ke=ue.charAt(me+1)==ne,Te=ee.listSelections(),We=me%2==0,$e,st=0;st<Te.length;st++){var ut=Te[st],Mt=ut.head,nt,$t=ee.getRange(Mt,we(Mt.line,Mt.ch+1));if(We&&!ut.empty())nt="surround";else if((ke||!We)&&$t==ne)ke&&ze(ee,Mt)?nt="both":Ne.indexOf(ne)>=0&&ee.getRange(Mt,we(Mt.line,Mt.ch+3))==ne+ne+ne?nt="skipThree":nt="skip";else if(ke&&Mt.ch>1&&Ne.indexOf(ne)>=0&&ee.getRange(we(Mt.line,Mt.ch-2),Mt)==ne+ne){if(Mt.ch>2&&/\bstring/.test(ee.getTokenTypeAt(we(Mt.line,Mt.ch-2))))return se.Pass;nt="addFour"}else if(ke){var Pt=Mt.ch==0?" ":ee.getRange(we(Mt.line,Mt.ch-1),Mt);if(!se.isWordChar($t)&&Pt!=ne&&!se.isWordChar(Pt))nt="both";else return se.Pass}else if(We&&($t.length===0||/\s/.test($t)||Se.indexOf($t)>-1))nt="both";else return se.Pass;if(!$e)$e=nt;else if($e!=nt)return se.Pass}var dn=me%2?ue.charAt(me-1):ne,zt=me%2?ne:ue.charAt(me+1);ee.operation(function(){if($e=="skip")ee.execCommand("goCharRight");else if($e=="skipThree")for(var Xt=0;Xt<3;Xt++)ee.execCommand("goCharRight");else if($e=="surround"){for(var fn=ee.getSelections(),Xt=0;Xt<fn.length;Xt++)fn[Xt]=dn+fn[Xt]+zt;ee.replaceSelections(fn,"around"),fn=ee.listSelections().slice();for(var Xt=0;Xt<fn.length;Xt++)fn[Xt]=tt(fn[Xt]);ee.setSelections(fn)}else $e=="both"?(ee.replaceSelection(dn+zt,null),ee.triggerElectric(dn+zt),ee.execCommand("goCharLeft")):$e=="addFour"&&(ee.replaceSelection(dn+dn+dn+dn,"before"),ee.execCommand("goCharRight"))})}function kt(ee,ne){var ge=ee.getRange(we(ne.line,ne.ch-1),we(ne.line,ne.ch+1));return ge.length==2?ge:null}function ze(ee,ne){var ge=ee.getTokenAt(we(ne.line,ne.ch+1));return/\bstring/.test(ge.type)&&ge.start==ne.ch&&(ne.ch==0||!/\bstring/.test(ee.getTokenTypeAt(ne)))}})},6313:function(_e,be,oe){(function(se){se(oe(89780),oe(32855))})(function(se){se.defineOption("autoCloseTags",!1,function(Je,Ye,tt){if(tt!=se.Init&&tt&&Je.removeKeyMap("autoCloseTags"),!!Ye){var ht={name:"autoCloseTags"};(typeof Ye!="object"||Ye.whenClosing!==!1)&&(ht["'/'"]=function(kt){return Ke(kt)}),(typeof Ye!="object"||Ye.whenOpening!==!1)&&(ht["'>'"]=function(kt){return Ie(kt)}),Je.addKeyMap(ht)}});var Ce=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],we=["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 Ie(Je){if(Je.getOption("disableInput"))return se.Pass;for(var Ye=Je.listSelections(),tt=[],ht=Je.getOption("autoCloseTags"),kt=0;kt<Ye.length;kt++){if(!Ye[kt].empty())return se.Pass;var ze=Ye[kt].head,ee=Je.getTokenAt(ze),ne=se.innerMode(Je.getMode(),ee.state),ge=ne.state,ue=ne.mode.xmlCurrentTag&&ne.mode.xmlCurrentTag(ge),me=ue&&ue.name;if(!me)return se.Pass;var Se=ne.mode.configuration=="html",Ne=typeof ht=="object"&&ht.dontCloseTags||Se&&Ce,ke=typeof ht=="object"&&ht.indentTags||Se&&we;ee.end>ze.ch&&(me=me.slice(0,me.length-ee.end+ze.ch));var Te=me.toLowerCase();if(!me||ee.type=="string"&&(ee.end!=ze.ch||!/[\"\']/.test(ee.string.charAt(ee.string.length-1))||ee.string.length==1)||ee.type=="tag"&&ue.close||ee.string.indexOf("/")==ze.ch-ee.start-1||Ne&&Ee(Ne,Te)>-1||et(Je,ne.mode.xmlCurrentContext&&ne.mode.xmlCurrentContext(ge)||[],me,ze,!0))return se.Pass;var We=typeof ht=="object"&&ht.emptyTags;if(We&&Ee(We,me)>-1){tt[kt]={text:"/>",newPos:se.Pos(ze.line,ze.ch+2)};continue}var $e=ke&&Ee(ke,Te)>-1;tt[kt]={indent:$e,text:">"+($e?`
`:"")+"</"+me+">",newPos:$e?se.Pos(ze.line+1,0):se.Pos(ze.line,ze.ch+1)}}for(var st=typeof ht=="object"&&ht.dontIndentOnAutoClose,kt=Ye.length-1;kt>=0;kt--){var ut=tt[kt];Je.replaceRange(ut.text,Ye[kt].head,Ye[kt].anchor,"+insert");var Mt=Je.listSelections().slice(0);Mt[kt]={head:ut.newPos,anchor:ut.newPos},Je.setSelections(Mt),!st&&ut.indent&&(Je.indentLine(ut.newPos.line,null,!0),Je.indentLine(ut.newPos.line+1,null,!0))}}function De(Je,Ye){for(var tt=Je.listSelections(),ht=[],kt=Ye?"/":"</",ze=Je.getOption("autoCloseTags"),ee=typeof ze=="object"&&ze.dontIndentOnSlash,ne=0;ne<tt.length;ne++){if(!tt[ne].empty())return se.Pass;var ge=tt[ne].head,ue=Je.getTokenAt(ge),me=se.innerMode(Je.getMode(),ue.state),Se=me.state;if(Ye&&(ue.type=="string"||ue.string.charAt(0)!="<"||ue.start!=ge.ch-1))return se.Pass;var Ne,ke=me.mode.name!="xml"&&Je.getMode().name=="htmlmixed";if(ke&&me.mode.name=="javascript")Ne=kt+"script";else if(ke&&me.mode.name=="css")Ne=kt+"style";else{var Te=me.mode.xmlCurrentContext&&me.mode.xmlCurrentContext(Se);if(!Te||Te.length&&et(Je,Te,Te[Te.length-1],ge))return se.Pass;Ne=kt+Te[Te.length-1]}Je.getLine(ge.line).charAt(ue.end)!=">"&&(Ne+=">"),ht[ne]=Ne}if(Je.replaceSelections(ht),tt=Je.listSelections(),!ee)for(var ne=0;ne<tt.length;ne++)(ne==tt.length-1||tt[ne].head.line<tt[ne+1].head.line)&&Je.indentLine(tt[ne].head.line)}function Ke(Je){return Je.getOption("disableInput")?se.Pass:De(Je,!0)}se.commands.closeTag=function(Je){return De(Je)};function Ee(Je,Ye){if(Je.indexOf)return Je.indexOf(Ye);for(var tt=0,ht=Je.length;tt<ht;++tt)if(Je[tt]==Ye)return tt;return-1}function et(Je,Ye,tt,ht,kt){if(!se.scanForClosingTag)return!1;var ze=Math.min(Je.lastLine()+1,ht.line+500),ee=se.scanForClosingTag(Je,ht,null,ze);if(!ee||ee.tag!=tt)return!1;for(var ne=kt?1:0,ge=Ye.length-1;ge>=0&&Ye[ge]==tt;ge--)++ne;ht=ee.to;for(var ge=1;ge<ne;ge++){var ue=se.scanForClosingTag(Je,ht,null,ze);if(!ue||ue.tag!=tt)return!1;ht=ue.to}return!0}})},32855:function(_e,be,oe){(function(se){se(oe(89780))})(function(se){"use strict";var Ce=se.Pos;function we(ge,ue){return ge.line-ue.line||ge.ch-ue.ch}var Ie="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",De=Ie+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Ke=new RegExp("<(/?)(["+Ie+"]["+De+"]*)","g");function Ee(ge,ue,me,Se){this.line=ue,this.ch=me,this.cm=ge,this.text=ge.getLine(ue),this.min=Se?Math.max(Se.from,ge.firstLine()):ge.firstLine(),this.max=Se?Math.min(Se.to-1,ge.lastLine()):ge.lastLine()}function et(ge,ue){var me=ge.cm.getTokenTypeAt(Ce(ge.line,ue));return me&&/\btag\b/.test(me)}function Je(ge){if(!(ge.line>=ge.max))return ge.ch=0,ge.text=ge.cm.getLine(++ge.line),!0}function Ye(ge){if(!(ge.line<=ge.min))return ge.text=ge.cm.getLine(--ge.line),ge.ch=ge.text.length,!0}function tt(ge){for(;;){var ue=ge.text.indexOf(">",ge.ch);if(ue==-1){if(Je(ge))continue;return}if(!et(ge,ue+1)){ge.ch=ue+1;continue}var me=ge.text.lastIndexOf("/",ue),Se=me>-1&&!/\S/.test(ge.text.slice(me+1,ue));return ge.ch=ue+1,Se?"selfClose":"regular"}}function ht(ge){for(;;){var ue=ge.ch?ge.text.lastIndexOf("<",ge.ch-1):-1;if(ue==-1){if(Ye(ge))continue;return}if(!et(ge,ue+1)){ge.ch=ue;continue}Ke.lastIndex=ue,ge.ch=ue;var me=Ke.exec(ge.text);if(me&&me.index==ue)return me}}function kt(ge){for(;;){Ke.lastIndex=ge.ch;var ue=Ke.exec(ge.text);if(!ue){if(Je(ge))continue;return}if(!et(ge,ue.index+1)){ge.ch=ue.index+1;continue}return ge.ch=ue.index+ue[0].length,ue}}function ze(ge){for(;;){var ue=ge.ch?ge.text.lastIndexOf(">",ge.ch-1):-1;if(ue==-1){if(Ye(ge))continue;return}if(!et(ge,ue+1)){ge.ch=ue;continue}var me=ge.text.lastIndexOf("/",ue),Se=me>-1&&!/\S/.test(ge.text.slice(me+1,ue));return ge.ch=ue+1,Se?"selfClose":"regular"}}function ee(ge,ue){for(var me=[];;){var Se=kt(ge),Ne,ke=ge.line,Te=ge.ch-(Se?Se[0].length:0);if(!Se||!(Ne=tt(ge)))return;if(Ne!="selfClose")if(Se[1]){for(var We=me.length-1;We>=0;--We)if(me[We]==Se[2]){me.length=We;break}if(We<0&&(!ue||ue==Se[2]))return{tag:Se[2],from:Ce(ke,Te),to:Ce(ge.line,ge.ch)}}else me.push(Se[2])}}function ne(ge,ue){for(var me=[];;){var Se=ze(ge);if(!Se)return;if(Se=="selfClose"){ht(ge);continue}var Ne=ge.line,ke=ge.ch,Te=ht(ge);if(!Te)return;if(Te[1])me.push(Te[2]);else{for(var We=me.length-1;We>=0;--We)if(me[We]==Te[2]){me.length=We;break}if(We<0&&(!ue||ue==Te[2]))return{tag:Te[2],from:Ce(ge.line,ge.ch),to:Ce(Ne,ke)}}}}se.registerHelper("fold","xml",function(ge,ue){for(var me=new Ee(ge,ue.line,0);;){var Se=kt(me);if(!Se||me.line!=ue.line)return;var Ne=tt(me);if(!Ne)return;if(!Se[1]&&Ne!="selfClose"){var ke=Ce(me.line,me.ch),Te=ee(me,Se[2]);return Te&&we(Te.from,ke)>0?{from:ke,to:Te.from}:null}}}),se.findMatchingTag=function(ge,ue,me){var Se=new Ee(ge,ue.line,ue.ch,me);if(!(Se.text.indexOf(">")==-1&&Se.text.indexOf("<")==-1)){var Ne=tt(Se),ke=Ne&&Ce(Se.line,Se.ch),Te=Ne&&ht(Se);if(!(!Ne||!Te||we(Se,ue)>0)){var We={from:Ce(Se.line,Se.ch),to:ke,tag:Te[2]};return Ne=="selfClose"?{open:We,close:null,at:"open"}:Te[1]?{open:ne(Se,Te[2]),close:We,at:"close"}:(Se=new Ee(ge,ke.line,ke.ch,me),{open:We,close:ee(Se,Te[2]),at:"open"})}}},se.findEnclosingTag=function(ge,ue,me,Se){for(var Ne=new Ee(ge,ue.line,ue.ch,me);;){var ke=ne(Ne,Se);if(!ke)break;var Te=new Ee(ge,ue.line,ue.ch,me),We=ee(Te,ke.tag);if(We)return{open:ke,close:We}}},se.scanForClosingTag=function(ge,ue,me,Se){var Ne=new Ee(ge,ue.line,ue.ch,Se?{from:0,to:Se}:null);return ee(Ne,me)}})},89780:function(_e){(function(be,oe){_e.exports=oe()})(this,function(){"use strict";var be=navigator.userAgent,oe=navigator.platform,se=/gecko\/\d/i.test(be),Ce=/MSIE \d/.test(be),we=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(be),Ie=/Edge\/(\d+)/.exec(be),De=Ce||we||Ie,Ke=De&&(Ce?document.documentMode||6:+(Ie||we)[1]),Ee=!Ie&&/WebKit\//.test(be),et=Ee&&/Qt\/\d+\.\d+/.test(be),Je=!Ie&&/Chrome\//.test(be),Ye=/Opera\//.test(be),tt=/Apple Computer/.test(navigator.vendor),ht=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(be),kt=/PhantomJS/.test(be),ze=!Ie&&/AppleWebKit/.test(be)&&/Mobile\/\w+/.test(be),ee=/Android/.test(be),ne=ze||ee||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(be),ge=ze||/Mac/.test(oe),ue=/\bCrOS\b/.test(be),me=/win/i.test(oe),Se=Ye&&be.match(/Version\/(\d*\.\d*)/);Se&&(Se=Number(Se[1])),Se&&Se>=15&&(Ye=!1,Ee=!0);var Ne=ge&&(et||Ye&&(Se==null||Se<12.11)),ke=se||De&&Ke>=9;function Te(ie){return new RegExp("(^|\\s)"+ie+"(?:$|\\s)\\s*")}var We=function(ie,ae){var fe=ie.className,pe=Te(ae).exec(fe);if(pe){var ye=fe.slice(pe.index+pe[0].length);ie.className=fe.slice(0,pe.index)+(ye?pe[1]+ye:"")}};function $e(ie){for(var ae=ie.childNodes.length;ae>0;--ae)ie.removeChild(ie.firstChild);return ie}function st(ie,ae){return $e(ie).appendChild(ae)}function ut(ie,ae,fe,pe){var ye=document.createElement(ie);if(fe&&(ye.className=fe),pe&&(ye.style.cssText=pe),typeof ae=="string")ye.appendChild(document.createTextNode(ae));else if(ae)for(var Be=0;Be<ae.length;++Be)ye.appendChild(ae[Be]);return ye}function Mt(ie,ae,fe,pe){var ye=ut(ie,ae,fe,pe);return ye.setAttribute("role","presentation"),ye}var nt;document.createRange?nt=function(ie,ae,fe,pe){var ye=document.createRange();return ye.setEnd(pe||ie,fe),ye.setStart(ie,ae),ye}:nt=function(ie,ae,fe){var pe=document.body.createTextRange();try{pe.moveToElementText(ie.parentNode)}catch(ye){return pe}return pe.collapse(!0),pe.moveEnd("character",fe),pe.moveStart("character",ae),pe};function $t(ie,ae){if(ae.nodeType==3&&(ae=ae.parentNode),ie.contains)return ie.contains(ae);do if(ae.nodeType==11&&(ae=ae.host),ae==ie)return!0;while(ae=ae.parentNode)}function Pt(){var ie;try{ie=document.activeElement}catch(ae){ie=document.body||null}for(;ie&&ie.shadowRoot&&ie.shadowRoot.activeElement;)ie=ie.shadowRoot.activeElement;return ie}function dn(ie,ae){var fe=ie.className;Te(ae).test(fe)||(ie.className+=(fe?" ":"")+ae)}function zt(ie,ae){for(var fe=ie.split(" "),pe=0;pe<fe.length;pe++)fe[pe]&&!Te(fe[pe]).test(ae)&&(ae+=" "+fe[pe]);return ae}var Xt=function(ie){ie.select()};ze?Xt=function(ie){ie.selectionStart=0,ie.selectionEnd=ie.value.length}:De&&(Xt=function(ie){try{ie.select()}catch(ae){}});function fn(ie){var ae=Array.prototype.slice.call(arguments,1);return function(){return ie.apply(null,ae)}}function an(ie,ae,fe){ae||(ae={});for(var pe in ie)ie.hasOwnProperty(pe)&&(fe!==!1||!ae.hasOwnProperty(pe))&&(ae[pe]=ie[pe]);return ae}function it(ie,ae,fe,pe,ye){ae==null&&(ae=ie.search(/[^\s\u00a0]/),ae==-1&&(ae=ie.length));for(var Be=pe||0,Xe=ye||0;;){var qe=ie.indexOf(" ",Be);if(qe<0||qe>=ae)return Xe+(ae-Be);Xe+=qe-Be,Xe+=fe-Xe%fe,Be=qe+1}}var Ve=function(){this.id=null,this.f=null,this.time=0,this.handler=fn(this.onTimeout,this)};Ve.prototype.onTimeout=function(ie){ie.id=0,ie.time<=+new Date?ie.f():setTimeout(ie.handler,ie.time-+new Date)},Ve.prototype.set=function(ie,ae){this.f=ae;var fe=+new Date+ie;(!this.id||fe<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,ie),this.time=fe)};function gt(ie,ae){for(var fe=0;fe<ie.length;++fe)if(ie[fe]==ae)return fe;return-1}var Bt=50,sn={toString:function(){return"CodeMirror.Pass"}},It={scroll:!1},en={origin:"*mouse"},En={origin:"+move"};function ei(ie,ae,fe){for(var pe=0,ye=0;;){var Be=ie.indexOf(" ",pe);Be==-1&&(Be=ie.length);var Xe=Be-pe;if(Be==ie.length||ye+Xe>=ae)return pe+Math.min(Xe,ae-ye);if(ye+=Be-pe,ye+=fe-ye%fe,pe=Be+1,ye>=ae)return pe}}var An=[""];function Kn(ie){for(;An.length<=ie;)An.push(jt(An)+" ");return An[ie]}function jt(ie){return ie[ie.length-1]}function Nn(ie,ae){for(var fe=[],pe=0;pe<ie.length;pe++)fe[pe]=ae(ie[pe],pe);return fe}function Gn(ie,ae,fe){for(var pe=0,ye=fe(ae);pe<ie.length&&fe(ie[pe])<=ye;)pe++;ie.splice(pe,0,ae)}function ii(){}function Sn(ie,ae){var fe;return Object.create?fe=Object.create(ie):(ii.prototype=ie,fe=new ii),ae&&an(ae,fe),fe}var Yt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Zt(ie){return/\w/.test(ie)||ie>"\x80"&&(ie.toUpperCase()!=ie.toLowerCase()||Yt.test(ie))}function St(ie,ae){return ae?ae.source.indexOf("\\w")>-1&&Zt(ie)?!0:ae.test(ie):Zt(ie)}function rt(ie){for(var ae in ie)if(ie.hasOwnProperty(ae)&&ie[ae])return!1;return!0}var Ft=/[\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 Ot(ie){return ie.charCodeAt(0)>=768&&Ft.test(ie)}function ft(ie,ae,fe){for(;(fe<0?ae>0:ae<ie.length)&&Ot(ie.charAt(ae));)ae+=fe;return ae}function ct(ie,ae,fe){for(var pe=ae>fe?-1:1;;){if(ae==fe)return ae;var ye=(ae+fe)/2,Be=pe<0?Math.ceil(ye):Math.floor(ye);if(Be==ae)return ie(Be)?ae:fe;ie(Be)?fe=Be:ae=Be+pe}}function Ge(ie,ae,fe,pe){if(!ie)return pe(ae,fe,"ltr",0);for(var ye=!1,Be=0;Be<ie.length;++Be){var Xe=ie[Be];(Xe.from<fe&&Xe.to>ae||ae==fe&&Xe.to==ae)&&(pe(Math.max(Xe.from,ae),Math.min(Xe.to,fe),Xe.level==1?"rtl":"ltr",Be),ye=!0)}ye||pe(ae,fe,"ltr")}var Ae=null;function xe(ie,ae,fe){var pe;Ae=null;for(var ye=0;ye<ie.length;++ye){var Be=ie[ye];if(Be.from<ae&&Be.to>ae)return ye;Be.to==ae&&(Be.from!=Be.to&&fe=="before"?pe=ye:Ae=ye),Be.from==ae&&(Be.from!=Be.to&&fe!="before"?pe=ye:Ae=ye)}return pe!=null?pe:Ae}var je=function(){var ie="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",ae="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function fe(Tt){return Tt<=247?ie.charAt(Tt):1424<=Tt&&Tt<=1524?"R":1536<=Tt&&Tt<=1785?ae.charAt(Tt-1536):1774<=Tt&&Tt<=2220?"r":8192<=Tt&&Tt<=8203?"w":Tt==8204?"b":"L"}var pe=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ye=/[stwN]/,Be=/[LRr]/,Xe=/[Lb1n]/,qe=/[1n]/;function ot(Tt,mn,Rt){this.level=Tt,this.from=mn,this.to=Rt}return function(Tt,mn){var Rt=mn=="ltr"?"L":"R";if(Tt.length==0||mn=="ltr"&&!pe.test(Tt))return!1;for(var Qn=Tt.length,_n=[],pi=0;pi<Qn;++pi)_n.push(fe(Tt.charCodeAt(pi)));for(var Ci=0,ki=Rt;Ci<Qn;++Ci){var ar=_n[Ci];ar=="m"?_n[Ci]=ki:ki=ar}for(var Nr=0,Er=Rt;Nr<Qn;++Nr){var $r=_n[Nr];$r=="1"&&Er=="r"?_n[Nr]="n":Be.test($r)&&(Er=$r,$r=="r"&&(_n[Nr]="R"))}for(var Hn=1,Cr=_n[0];Hn<Qn-1;++Hn){var $o=_n[Hn];$o=="+"&&Cr=="1"&&_n[Hn+1]=="1"?_n[Hn]="1":$o==","&&Cr==_n[Hn+1]&&(Cr=="1"||Cr=="n")&&(_n[Hn]=Cr),Cr=$o}for(var oi=0;oi<Qn;++oi){var us=_n[oi];if(us==",")_n[oi]="N";else if(us=="%"){var Xa=void 0;for(Xa=oi+1;Xa<Qn&&_n[Xa]=="%";++Xa);for(var pl=oi&&_n[oi-1]=="!"||Xa<Qn&&_n[Xa]=="1"?"1":"N",ml=oi;ml<Xa;++ml)_n[ml]=pl;oi=Xa-1}}for(var Va=0,ll=Rt;Va<Qn;++Va){var Xs=_n[Va];ll=="L"&&Xs=="1"?_n[Va]="L":Be.test(Xs)&&(ll=Xs)}for(var ha=0;ha<Qn;++ha)if(ye.test(_n[ha])){var Ca=void 0;for(Ca=ha+1;Ca<Qn&&ye.test(_n[Ca]);++Ca);for(var Ts=(ha?_n[ha-1]:Rt)=="L",el=(Ca<Qn?_n[Ca]:Rt)=="L",Ps=Ts==el?Ts?"L":"R":Rt,Tl=ha;Tl<Ca;++Tl)_n[Tl]=Ps;ha=Ca-1}for(var ba=[],Fu,fs=0;fs<Qn;)if(Xe.test(_n[fs])){var Su=fs;for(++fs;fs<Qn&&Xe.test(_n[fs]);++fs);ba.push(new ot(0,Su,fs))}else{var su=fs,Bu=ba.length,xu=mn=="rtl"?1:0;for(++fs;fs<Qn&&_n[fs]!="L";++fs);for(var cs=su;cs<fs;)if(qe.test(_n[cs])){su<cs&&(ba.splice(Bu,0,new ot(1,su,cs)),Bu+=xu);var Il=cs;for(++cs;cs<fs&&qe.test(_n[cs]);++cs);ba.splice(Bu,0,new ot(2,Il,cs)),Bu+=xu,su=cs}else++cs;su<fs&&ba.splice(Bu,0,new ot(1,su,fs))}return mn=="ltr"&&(ba[0].level==1&&(Fu=Tt.match(/^\s+/))&&(ba[0].from=Fu[0].length,ba.unshift(new ot(0,0,Fu[0].length))),jt(ba).level==1&&(Fu=Tt.match(/\s+$/))&&(jt(ba).to-=Fu[0].length,ba.push(new ot(0,Qn-Fu[0].length,Qn)))),mn=="rtl"?ba.reverse():ba}}();function Qe(ie,ae){var fe=ie.order;return fe==null&&(fe=ie.order=je(ie.text,ae)),fe}var Oe=[],xt=function(ie,ae,fe){if(ie.addEventListener)ie.addEventListener(ae,fe,!1);else if(ie.attachEvent)ie.attachEvent("on"+ae,fe);else{var pe=ie._handlers||(ie._handlers={});pe[ae]=(pe[ae]||Oe).concat(fe)}};function hn(ie,ae){return ie._handlers&&ie._handlers[ae]||Oe}function Pn(ie,ae,fe){if(ie.removeEventListener)ie.removeEventListener(ae,fe,!1);else if(ie.detachEvent)ie.detachEvent("on"+ae,fe);else{var pe=ie._handlers,ye=pe&&pe[ae];if(ye){var Be=gt(ye,fe);Be>-1&&(pe[ae]=ye.slice(0,Be).concat(ye.slice(Be+1)))}}}function wt(ie,ae){var fe=hn(ie,ae);if(fe.length)for(var pe=Array.prototype.slice.call(arguments,2),ye=0;ye<fe.length;++ye)fe[ye].apply(null,pe)}function nn(ie,ae,fe){return typeof ae=="string"&&(ae={type:ae,preventDefault:function(){this.defaultPrevented=!0}}),wt(ie,fe||ae.type,ie,ae),Si(ae)||ae.codemirrorIgnore}function Mn(ie){var ae=ie._handlers&&ie._handlers.cursorActivity;if(ae)for(var fe=ie.curOp.cursorActivityHandlers||(ie.curOp.cursorActivityHandlers=[]),pe=0;pe<ae.length;++pe)gt(fe,ae[pe])==-1&&fe.push(ae[pe])}function Zn(ie,ae){return hn(ie,ae).length>0}function li(ie){ie.prototype.on=function(ae,fe){xt(this,ae,fe)},ie.prototype.off=function(ae,fe){Pn(this,ae,fe)}}function xi(ie){ie.preventDefault?ie.preventDefault():ie.returnValue=!1}function Mi(ie){ie.stopPropagation?ie.stopPropagation():ie.cancelBubble=!0}function Si(ie){return ie.defaultPrevented!=null?ie.defaultPrevented:ie.returnValue==!1}function Ri(ie){xi(ie),Mi(ie)}function lr(ie){return ie.target||ie.srcElement}function dr(ie){var ae=ie.which;return ae==null&&(ie.button&1?ae=1:ie.button&2?ae=3:ie.button&4&&(ae=2)),ge&&ie.ctrlKey&&ae==1&&(ae=3),ae}var ur=function(){if(De&&Ke<9)return!1;var ie=ut("div");return"draggable"in ie||"dragDrop"in ie}(),Sr;function Wr(ie){if(Sr==null){var ae=ut("span","\u200B");st(ie,ut("span",[ae,document.createTextNode("x")])),ie.firstChild.offsetHeight!=0&&(Sr=ae.offsetWidth<=1&&ae.offsetHeight>2&&!(De&&Ke<8))}var fe=Sr?ut("span","\u200B"):ut("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return fe.setAttribute("cm-text",""),fe}var Gi;function Zr(ie){if(Gi!=null)return Gi;var ae=st(ie,document.createTextNode("A\u062EA")),fe=nt(ae,0,1).getBoundingClientRect(),pe=nt(ae,1,2).getBoundingClientRect();return $e(ie),!fe||fe.left==fe.right?!1:Gi=pe.right-fe.right<3}var Yi=`
b`.split(/\n/).length!=3?function(ie){for(var ae=0,fe=[],pe=ie.length;ae<=pe;){var ye=ie.indexOf(`
`,ae);ye==-1&&(ye=ie.length);var Be=ie.slice(ae,ie.charAt(ye-1)=="\r"?ye-1:ye),Xe=Be.indexOf("\r");Xe!=-1?(fe.push(Be.slice(0,Xe)),ae+=Xe+1):(fe.push(Be),ae=ye+1)}return fe}:function(ie){return ie.split(/\r\n?|\n/)},Ue=window.getSelection?function(ie){try{return ie.selectionStart!=ie.selectionEnd}catch(ae){return!1}}:function(ie){var ae;try{ae=ie.ownerDocument.selection.createRange()}catch(fe){}return!ae||ae.parentElement()!=ie?!1:ae.compareEndPoints("StartToEnd",ae)!=0},no=function(){var ie=ut("div");return"oncopy"in ie?!0:(ie.setAttribute("oncopy","return;"),typeof ie.oncopy=="function")}(),pr=null;function fo(ie){if(pr!=null)return pr;var ae=st(ie,ut("span","x")),fe=ae.getBoundingClientRect(),pe=nt(ae,0,1).getBoundingClientRect();return pr=Math.abs(fe.left-pe.left)>1}var Fo={},Vo={};function Io(ie,ae){arguments.length>2&&(ae.dependencies=Array.prototype.slice.call(arguments,2)),Fo[ie]=ae}function Oi(ie,ae){Vo[ie]=ae}function on(ie){if(typeof ie=="string"&&Vo.hasOwnProperty(ie))ie=Vo[ie];else if(ie&&typeof ie.name=="string"&&Vo.hasOwnProperty(ie.name)){var ae=Vo[ie.name];typeof ae=="string"&&(ae={name:ae}),ie=Sn(ae,ie),ie.name=ae.name}else{if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(ie))return on("application/xml");if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(ie))return on("application/json")}return typeof ie=="string"?{name:ie}:ie||{name:"null"}}function ln(ie,ae){ae=on(ae);var fe=Fo[ae.name];if(!fe)return ln(ie,"text/plain");var pe=fe(ie,ae);if(qt.hasOwnProperty(ae.name)){var ye=qt[ae.name];for(var Be in ye)ye.hasOwnProperty(Be)&&(pe.hasOwnProperty(Be)&&(pe["_"+Be]=pe[Be]),pe[Be]=ye[Be])}if(pe.name=ae.name,ae.helperType&&(pe.helperType=ae.helperType),ae.modeProps)for(var Xe in ae.modeProps)pe[Xe]=ae.modeProps[Xe];return pe}var qt={};function Nt(ie,ae){var fe=qt.hasOwnProperty(ie)?qt[ie]:qt[ie]={};an(ae,fe)}function On(ie,ae){if(ae===!0)return ae;if(ie.copyState)return ie.copyState(ae);var fe={};for(var pe in ae){var ye=ae[pe];ye instanceof Array&&(ye=ye.concat([])),fe[pe]=ye}return fe}function Un(ie,ae){for(var fe;ie.innerMode&&(fe=ie.innerMode(ae),!(!fe||fe.mode==ie));)ae=fe.state,ie=fe.mode;return fe||{mode:ie,state:ae}}function Vt(ie,ae,fe){return ie.startState?ie.startState(ae,fe):!0}var yt=function(ie,ae,fe){this.pos=this.start=0,this.string=ie,this.tabSize=ae||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=fe};yt.prototype.eol=function(){return this.pos>=this.string.length},yt.prototype.sol=function(){return this.pos==this.lineStart},yt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},yt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},yt.prototype.eat=function(ie){var ae=this.string.charAt(this.pos),fe;if(typeof ie=="string"?fe=ae==ie:fe=ae&&(ie.test?ie.test(ae):ie(ae)),fe)return++this.pos,ae},yt.prototype.eatWhile=function(ie){for(var ae=this.pos;this.eat(ie););return this.pos>ae},yt.prototype.eatSpace=function(){for(var ie=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>ie},yt.prototype.skipToEnd=function(){this.pos=this.string.length},yt.prototype.skipTo=function(ie){var ae=this.string.indexOf(ie,this.pos);if(ae>-1)return this.pos=ae,!0},yt.prototype.backUp=function(ie){this.pos-=ie},yt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=it(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?it(this.string,this.lineStart,this.tabSize):0)},yt.prototype.indentation=function(){return it(this.string,null,this.tabSize)-(this.lineStart?it(this.string,this.lineStart,this.tabSize):0)},yt.prototype.match=function(ie,ae,fe){if(typeof ie=="string"){var pe=function(Xe){return fe?Xe.toLowerCase():Xe},ye=this.string.substr(this.pos,ie.length);if(pe(ye)==pe(ie))return ae!==!1&&(this.pos+=ie.length),!0}else{var Be=this.string.slice(this.pos).match(ie);return Be&&Be.index>0?null:(Be&&ae!==!1&&(this.pos+=Be[0].length),Be)}},yt.prototype.current=function(){return this.string.slice(this.start,this.pos)},yt.prototype.hideFirstChars=function(ie,ae){this.lineStart+=ie;try{return ae()}finally{this.lineStart-=ie}},yt.prototype.lookAhead=function(ie){var ae=this.lineOracle;return ae&&ae.lookAhead(ie)},yt.prototype.baseToken=function(){var ie=this.lineOracle;return ie&&ie.baseToken(this.pos)};function In(ie,ae){if(ae-=ie.first,ae<0||ae>=ie.size)throw new Error("There is no line "+(ae+ie.first)+" in the document.");for(var fe=ie;!fe.lines;)for(var pe=0;;++pe){var ye=fe.children[pe],Be=ye.chunkSize();if(ae<Be){fe=ye;break}ae-=Be}return fe.lines[ae]}function zn(ie,ae,fe){var pe=[],ye=ae.line;return ie.iter(ae.line,fe.line+1,function(Be){var Xe=Be.text;ye==fe.line&&(Xe=Xe.slice(0,fe.ch)),ye==ae.line&&(Xe=Xe.slice(ae.ch)),pe.push(Xe),++ye}),pe}function mi(ie,ae,fe){var pe=[];return ie.iter(ae,fe,function(ye){pe.push(ye.text)}),pe}function Rn(ie,ae){var fe=ae-ie.height;if(fe)for(var pe=ie;pe;pe=pe.parent)pe.height+=fe}function bt(ie){if(ie.parent==null)return null;for(var ae=ie.parent,fe=gt(ae.lines,ie),pe=ae.parent;pe;ae=pe,pe=pe.parent)for(var ye=0;pe.children[ye]!=ae;++ye)fe+=pe.children[ye].chunkSize();return fe+ae.first}function Ut(ie,ae){var fe=ie.first;e:do{for(var pe=0;pe<ie.children.length;++pe){var ye=ie.children[pe],Be=ye.height;if(ae<Be){ie=ye;continue e}ae-=Be,fe+=ye.chunkSize()}return fe}while(!ie.lines);for(var Xe=0;Xe<ie.lines.length;++Xe){var qe=ie.lines[Xe],ot=qe.height;if(ae<ot)break;ae-=ot}return fe+Xe}function Ln(ie,ae){return ae>=ie.first&&ae<ie.first+ie.size}function ni(ie,ae){return String(ie.lineNumberFormatter(ae+ie.firstLineNumber))}function Gt(ie,ae,fe){if(fe===void 0&&(fe=null),!(this instanceof Gt))return new Gt(ie,ae,fe);this.line=ie,this.ch=ae,this.sticky=fe}function yn(ie,ae){return ie.line-ae.line||ie.ch-ae.ch}function Qt(ie,ae){return ie.sticky==ae.sticky&&yn(ie,ae)==0}function un(ie){return Gt(ie.line,ie.ch)}function wn(ie,ae){return yn(ie,ae)<0?ae:ie}function gn(ie,ae){return yn(ie,ae)<0?ie:ae}function kn(ie,ae){return Math.max(ie.first,Math.min(ae,ie.first+ie.size-1))}function Bn(ie,ae){if(ae.line<ie.first)return Gt(ie.first,0);var fe=ie.first+ie.size-1;return ae.line>fe?Gt(fe,In(ie,fe).text.length):Vn(ae,In(ie,ae.line).text.length)}function Vn(ie,ae){var fe=ie.ch;return fe==null||fe>ae?Gt(ie.line,ae):fe<0?Gt(ie.line,0):ie}function Jn(ie,ae){for(var fe=[],pe=0;pe<ae.length;pe++)fe[pe]=Bn(ie,ae[pe]);return fe}var Wn=function(ie,ae){this.state=ie,this.lookAhead=ae},gi=function(ie,ae,fe,pe){this.state=ae,this.doc=ie,this.line=fe,this.maxLookAhead=pe||0,this.baseTokens=null,this.baseTokenPos=1};gi.prototype.lookAhead=function(ie){var ae=this.doc.getLine(this.line+ie);return ae!=null&&ie>this.maxLookAhead&&(this.maxLookAhead=ie),ae},gi.prototype.baseToken=function(ie){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=ie;)this.baseTokenPos+=2;var ae=this.baseTokens[this.baseTokenPos+1];return{type:ae&&ae.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-ie}},gi.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},gi.fromSaved=function(ie,ae,fe){return ae instanceof Wn?new gi(ie,On(ie.mode,ae.state),fe,ae.lookAhead):new gi(ie,On(ie.mode,ae),fe)},gi.prototype.save=function(ie){var ae=ie!==!1?On(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Wn(ae,this.maxLookAhead):ae};function Fi(ie,ae,fe,pe){var ye=[ie.state.modeGen],Be={};br(ie,ae.text,ie.doc.mode,fe,function(Tt,mn){return ye.push(Tt,mn)},Be,pe);for(var Xe=fe.state,qe=function(Tt){fe.baseTokens=ye;var mn=ie.state.overlays[Tt],Rt=1,Qn=0;fe.state=!0,br(ie,ae.text,mn.mode,fe,function(_n,pi){for(var Ci=Rt;Qn<_n;){var ki=ye[Rt];ki>_n&&ye.splice(Rt,1,_n,ye[Rt+1],ki),Rt+=2,Qn=Math.min(_n,ki)}if(pi)if(mn.opaque)ye.splice(Ci,Rt-Ci,_n,"overlay "+pi),Rt=Ci+2;else for(;Ci<Rt;Ci+=2){var ar=ye[Ci+1];ye[Ci+1]=(ar?ar+" ":"")+"overlay "+pi}},Be),fe.state=Xe,fe.baseTokens=null,fe.baseTokenPos=1},ot=0;ot<ie.state.overlays.length;++ot)qe(ot);return{styles:ye,classes:Be.bgClass||Be.textClass?Be:null}}function ir(ie,ae,fe){if(!ae.styles||ae.styles[0]!=ie.state.modeGen){var pe=zi(ie,bt(ae)),ye=ae.text.length>ie.options.maxHighlightLength&&On(ie.doc.mode,pe.state),Be=Fi(ie,ae,pe);ye&&(pe.state=ye),ae.stateAfter=pe.save(!ye),ae.styles=Be.styles,Be.classes?ae.styleClasses=Be.classes:ae.styleClasses&&(ae.styleClasses=null),fe===ie.doc.highlightFrontier&&(ie.doc.modeFrontier=Math.max(ie.doc.modeFrontier,++ie.doc.highlightFrontier))}return ae.styles}function zi(ie,ae,fe){var pe=ie.doc,ye=ie.display;if(!pe.mode.startState)return new gi(pe,!0,ae);var Be=Xi(ie,ae,fe),Xe=Be>pe.first&&In(pe,Be-1).stateAfter,qe=Xe?gi.fromSaved(pe,Xe,Be):new gi(pe,Vt(pe.mode),Be);return pe.iter(Be,ae,function(ot){tn(ie,ot.text,qe);var Tt=qe.line;ot.stateAfter=Tt==ae-1||Tt%5==0||Tt>=ye.viewFrom&&Tt<ye.viewTo?qe.save():null,qe.nextLine()}),fe&&(pe.modeFrontier=qe.line),qe}function tn(ie,ae,fe,pe){var ye=ie.doc.mode,Be=new yt(ae,ie.options.tabSize,fe);for(Be.start=Be.pos=pe||0,ae==""&&Ai(ye,fe.state);!Be.eol();)Bi(ye,Be,fe.state),Be.start=Be.pos}function Ai(ie,ae){if(ie.blankLine)return ie.blankLine(ae);if(ie.innerMode){var fe=Un(ie,ae);if(fe.mode.blankLine)return fe.mode.blankLine(fe.state)}}function Bi(ie,ae,fe,pe){for(var ye=0;ye<10;ye++){pe&&(pe[0]=Un(ie,fe).mode);var Be=ie.token(ae,fe);if(ae.pos>ae.start)return Be}throw new Error("Mode "+ie.name+" failed to advance stream.")}var Ti=function(ie,ae,fe){this.start=ie.start,this.end=ie.pos,this.string=ie.current(),this.type=ae||null,this.state=fe};function hr(ie,ae,fe,pe){var ye=ie.doc,Be=ye.mode,Xe;ae=Bn(ye,ae);var qe=In(ye,ae.line),ot=zi(ie,ae.line,fe),Tt=new yt(qe.text,ie.options.tabSize,ot),mn;for(pe&&(mn=[]);(pe||Tt.pos<ae.ch)&&!Tt.eol();)Tt.start=Tt.pos,Xe=Bi(Be,Tt,ot.state),pe&&mn.push(new Ti(Tt,Xe,On(ye.mode,ot.state)));return pe?mn:new Ti(Tt,Xe,ot.state)}function tr(ie,ae){if(ie)for(;;){var fe=ie.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!fe)break;ie=ie.slice(0,fe.index)+ie.slice(fe.index+fe[0].length);var pe=fe[1]?"bgClass":"textClass";ae[pe]==null?ae[pe]=fe[2]:new RegExp("(?:^|\\s)"+fe[2]+"(?:$|\\s)").test(ae[pe])||(ae[pe]+=" "+fe[2])}return ie}function br(ie,ae,fe,pe,ye,Be,Xe){var qe=fe.flattenSpans;qe==null&&(qe=ie.options.flattenSpans);var ot=0,Tt=null,mn=new yt(ae,ie.options.tabSize,pe),Rt,Qn=ie.options.addModeClass&&[null];for(ae==""&&tr(Ai(fe,pe.state),Be);!mn.eol();){if(mn.pos>ie.options.maxHighlightLength?(qe=!1,Xe&&tn(ie,ae,pe,mn.pos),mn.pos=ae.length,Rt=null):Rt=tr(Bi(fe,mn,pe.state,Qn),Be),Qn){var _n=Qn[0].name;_n&&(Rt="m-"+(Rt?_n+" "+Rt:_n))}if(!qe||Tt!=Rt){for(;ot<mn.start;)ot=Math.min(mn.start,ot+5e3),ye(ot,Tt);Tt=Rt}mn.start=mn.pos}for(;ot<mn.pos;){var pi=Math.min(mn.pos,ot+5e3);ye(pi,Tt),ot=pi}}function Xi(ie,ae,fe){for(var pe,ye,Be=ie.doc,Xe=fe?-1:ae-(ie.doc.mode.innerMode?1e3:100),qe=ae;qe>Xe;--qe){if(qe<=Be.first)return Be.first;var ot=In(Be,qe-1),Tt=ot.stateAfter;if(Tt&&(!fe||qe+(Tt instanceof Wn?Tt.lookAhead:0)<=Be.modeFrontier))return qe;var mn=it(ot.text,null,ie.options.tabSize);(ye==null||pe>mn)&&(ye=qe-1,pe=mn)}return ye}function Hi(ie,ae){if(ie.modeFrontier=Math.min(ie.modeFrontier,ae),!(ie.highlightFrontier<ae-10)){for(var fe=ie.first,pe=ae-1;pe>fe;pe--){var ye=In(ie,pe).stateAfter;if(ye&&(!(ye instanceof Wn)||pe+ye.lookAhead<ae)){fe=pe+1;break}}ie.highlightFrontier=Math.min(ie.highlightFrontier,fe)}}var Ir=!1,Ht=!1;function Kr(){Ir=!0}function Fn(){Ht=!0}function kr(ie,ae,fe){this.marker=ie,this.from=ae,this.to=fe}function Go(ie,ae){if(ie)for(var fe=0;fe<ie.length;++fe){var pe=ie[fe];if(pe.marker==ae)return pe}}function Dr(ie,ae){for(var fe,pe=0;pe<ie.length;++pe)ie[pe]!=ae&&(fe||(fe=[])).push(ie[pe]);return fe}function po(ie,ae){ie.markedSpans=ie.markedSpans?ie.markedSpans.concat([ae]):[ae],ae.marker.attachLine(ie)}function Do(ie,ae,fe){var pe;if(ie)for(var ye=0;ye<ie.length;++ye){var Be=ie[ye],Xe=Be.marker,qe=Be.from==null||(Xe.inclusiveLeft?Be.from<=ae:Be.from<ae);if(qe||Be.from==ae&&Xe.type=="bookmark"&&(!fe||!Be.marker.insertLeft)){var ot=Be.to==null||(Xe.inclusiveRight?Be.to>=ae:Be.to>ae);(pe||(pe=[])).push(new kr(Xe,Be.from,ot?null:Be.to))}}return pe}function Ji(ie,ae,fe){var pe;if(ie)for(var ye=0;ye<ie.length;++ye){var Be=ie[ye],Xe=Be.marker,qe=Be.to==null||(Xe.inclusiveRight?Be.to>=ae:Be.to>ae);if(qe||Be.from==ae&&Xe.type=="bookmark"&&(!fe||Be.marker.insertLeft)){var ot=Be.from==null||(Xe.inclusiveLeft?Be.from<=ae:Be.from<ae);(pe||(pe=[])).push(new kr(Xe,ot?null:Be.from-ae,Be.to==null?null:Be.to-ae))}}return pe}function or(ie,ae){if(ae.full)return null;var fe=Ln(ie,ae.from.line)&&In(ie,ae.from.line).markedSpans,pe=Ln(ie,ae.to.line)&&In(ie,ae.to.line).markedSpans;if(!fe&&!pe)return null;var ye=ae.from.ch,Be=ae.to.ch,Xe=yn(ae.from,ae.to)==0,qe=Do(fe,ye,Xe),ot=Ji(pe,Be,Xe),Tt=ae.text.length==1,mn=jt(ae.text).length+(Tt?ye:0);if(qe)for(var Rt=0;Rt<qe.length;++Rt){var Qn=qe[Rt];if(Qn.to==null){var _n=Go(ot,Qn.marker);_n?Tt&&(Qn.to=_n.to==null?null:_n.to+mn):Qn.to=ye}}if(ot)for(var pi=0;pi<ot.length;++pi){var Ci=ot[pi];if(Ci.to!=null&&(Ci.to+=mn),Ci.from==null){var ki=Go(qe,Ci.marker);ki||(Ci.from=mn,Tt&&(qe||(qe=[])).push(Ci))}else Ci.from+=mn,Tt&&(qe||(qe=[])).push(Ci)}qe&&(qe=io(qe)),ot&&ot!=qe&&(ot=io(ot));var ar=[qe];if(!Tt){var Nr=ae.text.length-2,Er;if(Nr>0&&qe)for(var $r=0;$r<qe.length;++$r)qe[$r].to==null&&(Er||(Er=[])).push(new kr(qe[$r].marker,null,null));for(var Hn=0;Hn<Nr;++Hn)ar.push(Er);ar.push(ot)}return ar}function io(ie){for(var ae=0;ae<ie.length;++ae){var fe=ie[ae];fe.from!=null&&fe.from==fe.to&&fe.marker.clearWhenEmpty!==!1&&ie.splice(ae--,1)}return ie.length?ie:null}function Gr(ie,ae,fe){var pe=null;if(ie.iter(ae.line,fe.line+1,function(_n){if(_n.markedSpans)for(var pi=0;pi<_n.markedSpans.length;++pi){var Ci=_n.markedSpans[pi].marker;Ci.readOnly&&(!pe||gt(pe,Ci)==-1)&&(pe||(pe=[])).push(Ci)}}),!pe)return null;for(var ye=[{from:ae,to:fe}],Be=0;Be<pe.length;++Be)for(var Xe=pe[Be],qe=Xe.find(0),ot=0;ot<ye.length;++ot){var Tt=ye[ot];if(!(yn(Tt.to,qe.from)<0||yn(Tt.from,qe.to)>0)){var mn=[ot,1],Rt=yn(Tt.from,qe.from),Qn=yn(Tt.to,qe.to);(Rt<0||!Xe.inclusiveLeft&&!Rt)&&mn.push({from:Tt.from,to:qe.from}),(Qn>0||!Xe.inclusiveRight&&!Qn)&&mn.push({from:qe.to,to:Tt.to}),ye.splice.apply(ye,mn),ot+=mn.length-3}}return ye}function Ii(ie){var ae=ie.markedSpans;if(ae){for(var fe=0;fe<ae.length;++fe)ae[fe].marker.detachLine(ie);ie.markedSpans=null}}function lt(ie,ae){if(ae){for(var fe=0;fe<ae.length;++fe)ae[fe].marker.attachLine(ie);ie.markedSpans=ae}}function Rr(ie){return ie.inclusiveLeft?-1:0}function Ko(ie){return ie.inclusiveRight?1:0}function Yr(ie,ae){var fe=ie.lines.length-ae.lines.length;if(fe!=0)return fe;var pe=ie.find(),ye=ae.find(),Be=yn(pe.from,ye.from)||Rr(ie)-Rr(ae);if(Be)return-Be;var Xe=yn(pe.to,ye.to)||Ko(ie)-Ko(ae);return Xe||ae.id-ie.id}function yo(ie,ae){var fe=Ht&&ie.markedSpans,pe;if(fe)for(var ye=void 0,Be=0;Be<fe.length;++Be)ye=fe[Be],ye.marker.collapsed&&(ae?ye.from:ye.to)==null&&(!pe||Yr(pe,ye.marker)<0)&&(pe=ye.marker);return pe}function Mr(ie){return yo(ie,!0)}function mr(ie){return yo(ie,!1)}function co(ie,ae){var fe=Ht&&ie.markedSpans,pe;if(fe)for(var ye=0;ye<fe.length;++ye){var Be=fe[ye];Be.marker.collapsed&&(Be.from==null||Be.from<ae)&&(Be.to==null||Be.to>ae)&&(!pe||Yr(pe,Be.marker)<0)&&(pe=Be.marker)}return pe}function Uo(ie,ae,fe,pe,ye){var Be=In(ie,ae),Xe=Ht&&Be.markedSpans;if(Xe)for(var qe=0;qe<Xe.length;++qe){var ot=Xe[qe];if(ot.marker.collapsed){var Tt=ot.marker.find(0),mn=yn(Tt.from,fe)||Rr(ot.marker)-Rr(ye),Rt=yn(Tt.to,pe)||Ko(ot.marker)-Ko(ye);if(!(mn>=0&&Rt<=0||mn<=0&&Rt>=0)&&(mn<=0&&(ot.marker.inclusiveRight&&ye.inclusiveLeft?yn(Tt.to,fe)>=0:yn(Tt.to,fe)>0)||mn>=0&&(ot.marker.inclusiveRight&&ye.inclusiveLeft?yn(Tt.from,pe)<=0:yn(Tt.from,pe)<0)))return!0}}}function ao(ie){for(var ae;ae=Mr(ie);)ie=ae.find(-1,!0).line;return ie}function ra(ie){for(var ae;ae=mr(ie);)ie=ae.find(1,!0).line;return ie}function gr(ie){for(var ae,fe;ae=mr(ie);)ie=ae.find(1,!0).line,(fe||(fe=[])).push(ie);return fe}function Qi(ie,ae){var fe=In(ie,ae),pe=ao(fe);return fe==pe?ae:bt(pe)}function xr(ie,ae){if(ae>ie.lastLine())return ae;var fe=In(ie,ae),pe;if(!fi(ie,fe))return ae;for(;pe=mr(fe);)fe=pe.find(1,!0).line;return bt(fe)+1}function fi(ie,ae){var fe=Ht&&ae.markedSpans;if(fe){for(var pe=void 0,ye=0;ye<fe.length;++ye)if(pe=fe[ye],!!pe.marker.collapsed){if(pe.from==null)return!0;if(!pe.marker.widgetNode&&pe.from==0&&pe.marker.inclusiveLeft&&bo(ie,ae,pe))return!0}}}function bo(ie,ae,fe){if(fe.to==null){var pe=fe.marker.find(1,!0);return bo(ie,pe.line,Go(pe.line.markedSpans,fe.marker))}if(fe.marker.inclusiveRight&&fe.to==ae.text.length)return!0;for(var ye=void 0,Be=0;Be<ae.markedSpans.length;++Be)if(ye=ae.markedSpans[Be],ye.marker.collapsed&&!ye.marker.widgetNode&&ye.from==fe.to&&(ye.to==null||ye.to!=fe.from)&&(ye.marker.inclusiveLeft||fe.marker.inclusiveRight)&&bo(ie,ae,ye))return!0}function ua(ie){ie=ao(ie);for(var ae=0,fe=ie.parent,pe=0;pe<fe.lines.length;++pe){var ye=fe.lines[pe];if(ye==ie)break;ae+=ye.height}for(var Be=fe.parent;Be;fe=Be,Be=fe.parent)for(var Xe=0;Xe<Be.children.length;++Xe){var qe=Be.children[Xe];if(qe==fe)break;ae+=qe.height}return ae}function ca(ie){if(ie.height==0)return 0;for(var ae=ie.text.length,fe,pe=ie;fe=Mr(pe);){var ye=fe.find(0,!0);pe=ye.from.line,ae+=ye.from.ch-ye.to.ch}for(pe=ie;fe=mr(pe);){var Be=fe.find(0,!0);ae-=pe.text.length-Be.from.ch,pe=Be.to.line,ae+=pe.text.length-Be.to.ch}return ae}function oa(ie){var ae=ie.display,fe=ie.doc;ae.maxLine=In(fe,fe.first),ae.maxLineLength=ca(ae.maxLine),ae.maxLineChanged=!0,fe.iter(function(pe){var ye=ca(pe);ye>ae.maxLineLength&&(ae.maxLineLength=ye,ae.maxLine=pe)})}var Ra=function(ie,ae,fe){this.text=ie,lt(this,ae),this.height=fe?fe(this):1};Ra.prototype.lineNo=function(){return bt(this)},li(Ra);function ts(ie,ae,fe,pe){ie.text=ae,ie.stateAfter&&(ie.stateAfter=null),ie.styles&&(ie.styles=null),ie.order!=null&&(ie.order=null),Ii(ie),lt(ie,fe);var ye=pe?pe(ie):1;ye!=ie.height&&Rn(ie,ye)}function ds(ie){ie.parent=null,Ii(ie)}var Qa={},ks={};function Ds(ie,ae){if(!ie||/^\s*$/.test(ie))return null;var fe=ae.addModeClass?ks:Qa;return fe[ie]||(fe[ie]=ie.replace(/\S+/g,"cm-$&"))}function jn(ie,ae){var fe=Mt("span",null,null,Ee?"padding-right: .1px":null),pe={pre:Mt("pre",[fe],"CodeMirror-line"),content:fe,col:0,pos:0,cm:ie,trailingSpace:!1,splitSpaces:ie.getOption("lineWrapping")};ae.measure={};for(var ye=0;ye<=(ae.rest?ae.rest.length:0);ye++){var Be=ye?ae.rest[ye-1]:ae.line,Xe=void 0;pe.pos=0,pe.addToken=Ql,Zr(ie.display.measure)&&(Xe=Qe(Be,ie.doc.direction))&&(pe.addToken=Oo(pe.addToken,Xe)),pe.map=[];var qe=ae!=ie.display.externalMeasured&&bt(Be);hs(Be,pe,ir(ie,Be,qe)),Be.styleClasses&&(Be.styleClasses.bgClass&&(pe.bgClass=zt(Be.styleClasses.bgClass,pe.bgClass||"")),Be.styleClasses.textClass&&(pe.textClass=zt(Be.styleClasses.textClass,pe.textClass||""))),pe.map.length==0&&pe.map.push(0,0,pe.content.appendChild(Wr(ie.display.measure))),ye==0?(ae.measure.map=pe.map,ae.measure.cache={}):((ae.measure.maps||(ae.measure.maps=[])).push(pe.map),(ae.measure.caches||(ae.measure.caches=[])).push({}))}if(Ee){var ot=pe.content.lastChild;(/\bcm-tab\b/.test(ot.className)||ot.querySelector&&ot.querySelector(".cm-tab"))&&(pe.content.className="cm-tab-wrap-hack")}return wt(ie,"renderLine",ie,ae.line,pe.pre),pe.pre.className&&(pe.textClass=zt(pe.pre.className,pe.textClass||"")),pe}function gs(ie){var ae=ut("span","\u2022","cm-invalidchar");return ae.title="\\u"+ie.charCodeAt(0).toString(16),ae.setAttribute("aria-label",ae.title),ae}function Ql(ie,ae,fe,pe,ye,Be,Xe){if(ae){var qe=ie.splitSpaces?Kl(ae,ie.trailingSpace):ae,ot=ie.cm.state.specialChars,Tt=!1,mn;if(!ot.test(ae))ie.col+=ae.length,mn=document.createTextNode(qe),ie.map.push(ie.pos,ie.pos+ae.length,mn),De&&Ke<9&&(Tt=!0),ie.pos+=ae.length;else{mn=document.createDocumentFragment();for(var Rt=0;;){ot.lastIndex=Rt;var Qn=ot.exec(ae),_n=Qn?Qn.index-Rt:ae.length-Rt;if(_n){var pi=document.createTextNode(qe.slice(Rt,Rt+_n));De&&Ke<9?mn.appendChild(ut("span",[pi])):mn.appendChild(pi),ie.map.push(ie.pos,ie.pos+_n,pi),ie.col+=_n,ie.pos+=_n}if(!Qn)break;Rt+=_n+1;var Ci=void 0;if(Qn[0]==" "){var ki=ie.cm.options.tabSize,ar=ki-ie.col%ki;Ci=mn.appendChild(ut("span",Kn(ar),"cm-tab")),Ci.setAttribute("role","presentation"),Ci.setAttribute("cm-text"," "),ie.col+=ar}else Qn[0]=="\r"||Qn[0]==`
`?(Ci=mn.appendChild(ut("span",Qn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Ci.setAttribute("cm-text",Qn[0]),ie.col+=1):(Ci=ie.cm.options.specialCharPlaceholder(Qn[0]),Ci.setAttribute("cm-text",Qn[0]),De&&Ke<9?mn.appendChild(ut("span",[Ci])):mn.appendChild(Ci),ie.col+=1);ie.map.push(ie.pos,ie.pos+1,Ci),ie.pos++}}if(ie.trailingSpace=qe.charCodeAt(ae.length-1)==32,fe||pe||ye||Tt||Be||Xe){var Nr=fe||"";pe&&(Nr+=pe),ye&&(Nr+=ye);var Er=ut("span",[mn],Nr,Be);if(Xe)for(var $r in Xe)Xe.hasOwnProperty($r)&&$r!="style"&&$r!="class"&&Er.setAttribute($r,Xe[$r]);return ie.content.appendChild(Er)}ie.content.appendChild(mn)}}function Kl(ie,ae){if(ie.length>1&&!/ /.test(ie))return ie;for(var fe=ae,pe="",ye=0;ye<ie.length;ye++){var Be=ie.charAt(ye);Be==" "&&fe&&(ye==ie.length-1||ie.charCodeAt(ye+1)==32)&&(Be="\xA0"),pe+=Be,fe=Be==" "}return pe}function Oo(ie,ae){return function(fe,pe,ye,Be,Xe,qe,ot){ye=ye?ye+" cm-force-border":"cm-force-border";for(var Tt=fe.pos,mn=Tt+pe.length;;){for(var Rt=void 0,Qn=0;Qn<ae.length&&(Rt=ae[Qn],!(Rt.to>Tt&&Rt.from<=Tt));Qn++);if(Rt.to>=mn)return ie(fe,pe,ye,Be,Xe,qe,ot);ie(fe,pe.slice(0,Rt.to-Tt),ye,Be,null,qe,ot),Be=null,pe=pe.slice(Rt.to-Tt),Tt=Rt.to}}}function ma(ie,ae,fe,pe){var ye=!pe&&fe.widgetNode;ye&&ie.map.push(ie.pos,ie.pos+ae,ye),!pe&&ie.cm.display.input.needsContentAttribute&&(ye||(ye=ie.content.appendChild(document.createElement("span"))),ye.setAttribute("cm-marker",fe.id)),ye&&(ie.cm.display.input.setUneditable(ye),ie.content.appendChild(ye)),ie.pos+=ae,ie.trailingSpace=!1}function hs(ie,ae,fe){var pe=ie.markedSpans,ye=ie.text,Be=0;if(!pe){for(var Xe=1;Xe<fe.length;Xe+=2)ae.addToken(ae,ye.slice(Be,Be=fe[Xe]),Ds(fe[Xe+1],ae.cm.options));return}for(var qe=ye.length,ot=0,Tt=1,mn="",Rt,Qn,_n=0,pi,Ci,ki,ar,Nr;;){if(_n==ot){pi=Ci=ki=Qn="",Nr=null,ar=null,_n=1/0;for(var Er=[],$r=void 0,Hn=0;Hn<pe.length;++Hn){var Cr=pe[Hn],$o=Cr.marker;if($o.type=="bookmark"&&Cr.from==ot&&$o.widgetNode)Er.push($o);else if(Cr.from<=ot&&(Cr.to==null||Cr.to>ot||$o.collapsed&&Cr.to==ot&&Cr.from==ot)){if(Cr.to!=null&&Cr.to!=ot&&_n>Cr.to&&(_n=Cr.to,Ci=""),$o.className&&(pi+=" "+$o.className),$o.css&&(Qn=(Qn?Qn+";":"")+$o.css),$o.startStyle&&Cr.from==ot&&(ki+=" "+$o.startStyle),$o.endStyle&&Cr.to==_n&&($r||($r=[])).push($o.endStyle,Cr.to),$o.title&&((Nr||(Nr={})).title=$o.title),$o.attributes)for(var oi in $o.attributes)(Nr||(Nr={}))[oi]=$o.attributes[oi];$o.collapsed&&(!ar||Yr(ar.marker,$o)<0)&&(ar=Cr)}else Cr.from>ot&&_n>Cr.from&&(_n=Cr.from)}if($r)for(var us=0;us<$r.length;us+=2)$r[us+1]==_n&&(Ci+=" "+$r[us]);if(!ar||ar.from==ot)for(var Xa=0;Xa<Er.length;++Xa)ma(ae,0,Er[Xa]);if(ar&&(ar.from||0)==ot){if(ma(ae,(ar.to==null?qe+1:ar.to)-ot,ar.marker,ar.from==null),ar.to==null)return;ar.to==ot&&(ar=!1)}}if(ot>=qe)break;for(var pl=Math.min(qe,_n);;){if(mn){var ml=ot+mn.length;if(!ar){var Va=ml>pl?mn.slice(0,pl-ot):mn;ae.addToken(ae,Va,Rt?Rt+pi:pi,ki,ot+Va.length==_n?Ci:"",Qn,Nr)}if(ml>=pl){mn=mn.slice(pl-ot),ot=pl;break}ot=ml,ki=""}mn=ye.slice(Be,Be=fe[Tt++]),Rt=Ds(fe[Tt++],ae.cm.options)}}}function aa(ie,ae,fe){this.line=ae,this.rest=gr(ae),this.size=this.rest?bt(jt(this.rest))-fe+1:1,this.node=this.text=null,this.hidden=fi(ie,ae)}function Xr(ie,ae,fe){for(var pe=[],ye,Be=ae;Be<fe;Be=ye){var Xe=new aa(ie.doc,In(ie.doc,Be),Be);ye=Be+Xe.size,pe.push(Xe)}return pe}var Qr=null;function ns(ie){Qr?Qr.ops.push(ie):ie.ownsGroup=Qr={ops:[ie],delayedCallbacks:[]}}function so(ie){var ae=ie.delayedCallbacks,fe=0;do{for(;fe<ae.length;fe++)ae[fe].call(null);for(var pe=0;pe<ie.ops.length;pe++){var ye=ie.ops[pe];if(ye.cursorActivityHandlers)for(;ye.cursorActivityCalled<ye.cursorActivityHandlers.length;)ye.cursorActivityHandlers[ye.cursorActivityCalled++].call(null,ye.cm)}}while(fe<ae.length)}function Po(ie,ae){var fe=ie.ownsGroup;if(fe)try{so(fe)}finally{Qr=null,ae(fe)}}var Mo=null;function $i(ie,ae){var fe=hn(ie,ae);if(fe.length){var pe=Array.prototype.slice.call(arguments,2),ye;Qr?ye=Qr.delayedCallbacks:Mo?ye=Mo:(ye=Mo=[],setTimeout(Ja,0));for(var Be=function(qe){ye.push(function(){return fe[qe].apply(null,pe)})},Xe=0;Xe<fe.length;++Xe)Be(Xe)}}function Ja(){var ie=Mo;Mo=null;for(var ae=0;ae<ie.length;++ae)ie[ae]()}function xs(ie,ae,fe,pe){for(var ye=0;ye<ae.changes.length;ye++){var Be=ae.changes[ye];Be=="text"?_i(ie,ae):Be=="gutter"?Hs(ie,ae,fe,pe):Be=="class"?is(ie,ae):Be=="widget"&&tu(ie,ae,pe)}ae.changes=null}function ul(ie){return ie.node==ie.text&&(ie.node=ut("div",null,null,"position: relative"),ie.text.parentNode&&ie.text.parentNode.replaceChild(ie.node,ie.text),ie.node.appendChild(ie.text),De&&Ke<8&&(ie.node.style.zIndex=2)),ie.node}function Yl(ie,ae){var fe=ae.bgClass?ae.bgClass+" "+(ae.line.bgClass||""):ae.line.bgClass;if(fe&&(fe+=" CodeMirror-linebackground"),ae.background)fe?ae.background.className=fe:(ae.background.parentNode.removeChild(ae.background),ae.background=null);else if(fe){var pe=ul(ae);ae.background=pe.insertBefore(ut("div",null,fe),pe.firstChild),ie.display.input.setUneditable(ae.background)}}function Jl(ie,ae){var fe=ie.display.externalMeasured;return fe&&fe.line==ae.line?(ie.display.externalMeasured=null,ae.measure=fe.measure,fe.built):jn(ie,ae)}function _i(ie,ae){var fe=ae.text.className,pe=Jl(ie,ae);ae.text==ae.node&&(ae.node=pe.pre),ae.text.parentNode.replaceChild(pe.pre,ae.text),ae.text=pe.pre,pe.bgClass!=ae.bgClass||pe.textClass!=ae.textClass?(ae.bgClass=pe.bgClass,ae.textClass=pe.textClass,is(ie,ae)):fe&&(ae.text.className=fe)}function is(ie,ae){Yl(ie,ae),ae.line.wrapClass?ul(ae).className=ae.line.wrapClass:ae.node!=ae.text&&(ae.node.className="");var fe=ae.textClass?ae.textClass+" "+(ae.line.textClass||""):ae.line.textClass;ae.text.className=fe||""}function Hs(ie,ae,fe,pe){if(ae.gutter&&(ae.node.removeChild(ae.gutter),ae.gutter=null),ae.gutterBackground&&(ae.node.removeChild(ae.gutterBackground),ae.gutterBackground=null),ae.line.gutterClass){var ye=ul(ae);ae.gutterBackground=ut("div",null,"CodeMirror-gutter-background "+ae.line.gutterClass,"left: "+(ie.options.fixedGutter?pe.fixedPos:-pe.gutterTotalWidth)+"px; width: "+pe.gutterTotalWidth+"px"),ie.display.input.setUneditable(ae.gutterBackground),ye.insertBefore(ae.gutterBackground,ae.text)}var Be=ae.line.gutterMarkers;if(ie.options.lineNumbers||Be){var Xe=ul(ae),qe=ae.gutter=ut("div",null,"CodeMirror-gutter-wrapper","left: "+(ie.options.fixedGutter?pe.fixedPos:-pe.gutterTotalWidth)+"px");if(ie.display.input.setUneditable(qe),Xe.insertBefore(qe,ae.text),ae.line.gutterClass&&(qe.className+=" "+ae.line.gutterClass),ie.options.lineNumbers&&(!Be||!Be["CodeMirror-linenumbers"])&&(ae.lineNumber=qe.appendChild(ut("div",ni(ie.options,fe),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+pe.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+ie.display.lineNumInnerWidth+"px"))),Be)for(var ot=0;ot<ie.display.gutterSpecs.length;++ot){var Tt=ie.display.gutterSpecs[ot].className,mn=Be.hasOwnProperty(Tt)&&Be[Tt];mn&&qe.appendChild(ut("div",[mn],"CodeMirror-gutter-elt","left: "+pe.gutterLeft[Tt]+"px; width: "+pe.gutterWidth[Tt]+"px"))}}}function tu(ie,ae,fe){ae.alignable&&(ae.alignable=null);for(var pe=Te("CodeMirror-linewidget"),ye=ae.node.firstChild,Be=void 0;ye;ye=Be)Be=ye.nextSibling,pe.test(ye.className)&&ae.node.removeChild(ye);du(ie,ae,fe)}function ui(ie,ae,fe,pe){var ye=Jl(ie,ae);return ae.text=ae.node=ye.pre,ye.bgClass&&(ae.bgClass=ye.bgClass),ye.textClass&&(ae.textClass=ye.textClass),is(ie,ae),Hs(ie,ae,fe,pe),du(ie,ae,pe),ae.node}function du(ie,ae,fe){if(wo(ie,ae.line,ae,fe,!0),ae.rest)for(var pe=0;pe<ae.rest.length;pe++)wo(ie,ae.rest[pe],ae,fe,!1)}function wo(ie,ae,fe,pe,ye){if(ae.widgets)for(var Be=ul(fe),Xe=0,qe=ae.widgets;Xe<qe.length;++Xe){var ot=qe[Xe],Tt=ut("div",[ot.node],"CodeMirror-linewidget"+(ot.className?" "+ot.className:""));ot.handleMouseEvents||Tt.setAttribute("cm-ignore-events","true"),Uc(ot,Tt,fe,pe),ie.display.input.setUneditable(Tt),ye&&ot.above?Be.insertBefore(Tt,fe.gutter||fe.text):Be.appendChild(Tt),$i(ot,"redraw")}}function Uc(ie,ae,fe,pe){if(ie.noHScroll){(fe.alignable||(fe.alignable=[])).push(ae);var ye=pe.wrapperWidth;ae.style.left=pe.fixedPos+"px",ie.coverGutter||(ye-=pe.gutterTotalWidth,ae.style.paddingLeft=pe.gutterTotalWidth+"px"),ae.style.width=ye+"px"}ie.coverGutter&&(ae.style.zIndex=5,ae.style.position="relative",ie.noHScroll||(ae.style.marginLeft=-pe.gutterTotalWidth+"px"))}function Wl(ie){if(ie.height!=null)return ie.height;var ae=ie.doc.cm;if(!ae)return 0;if(!$t(document.body,ie.node)){var fe="position: relative;";ie.coverGutter&&(fe+="margin-left: -"+ae.display.gutters.offsetWidth+"px;"),ie.noHScroll&&(fe+="width: "+ae.display.wrapper.clientWidth+"px;"),st(ae.display.measure,ut("div",[ie.node],null,fe))}return ie.height=ie.node.parentNode.offsetHeight}function $l(ie,ae){for(var fe=lr(ae);fe!=ie.wrapper;fe=fe.parentNode)if(!fe||fe.nodeType==1&&fe.getAttribute("cm-ignore-events")=="true"||fe.parentNode==ie.sizer&&fe!=ie.mover)return!0}function Fl(ie){return ie.lineSpace.offsetTop}function Zu(ie){return ie.mover.offsetHeight-ie.lineSpace.offsetHeight}function Ws(ie){if(ie.cachedPaddingH)return ie.cachedPaddingH;var ae=st(ie.measure,ut("pre","x","CodeMirror-line-like")),fe=window.getComputedStyle?window.getComputedStyle(ae):ae.currentStyle,pe={left:parseInt(fe.paddingLeft),right:parseInt(fe.paddingRight)};return!isNaN(pe.left)&&!isNaN(pe.right)&&(ie.cachedPaddingH=pe),pe}function Zs(ie){return Bt-ie.display.nativeBarWidth}function Al(ie){return ie.display.scroller.clientWidth-Zs(ie)-ie.display.barWidth}function Jc(ie){return ie.display.scroller.clientHeight-Zs(ie)-ie.display.barHeight}function qc(ie,ae,fe){var pe=ie.options.lineWrapping,ye=pe&&Al(ie);if(!ae.measure.heights||pe&&ae.measure.width!=ye){var Be=ae.measure.heights=[];if(pe){ae.measure.width=ye;for(var Xe=ae.text.firstChild.getClientRects(),qe=0;qe<Xe.length-1;qe++){var ot=Xe[qe],Tt=Xe[qe+1];Math.abs(ot.bottom-Tt.bottom)>2&&Be.push((ot.bottom+Tt.top)/2-fe.top)}}Be.push(fe.bottom-fe.top)}}function Pc(ie,ae,fe){if(ie.line==ae)return{map:ie.measure.map,cache:ie.measure.cache};for(var pe=0;pe<ie.rest.length;pe++)if(ie.rest[pe]==ae)return{map:ie.measure.maps[pe],cache:ie.measure.caches[pe]};for(var ye=0;ye<ie.rest.length;ye++)if(bt(ie.rest[ye])>fe)return{map:ie.measure.maps[ye],cache:ie.measure.caches[ye],before:!0}}function md(ie,ae){ae=ao(ae);var fe=bt(ae),pe=ie.display.externalMeasured=new aa(ie.doc,ae,fe);pe.lineN=fe;var ye=pe.built=jn(ie,pe);return pe.text=ye.pre,st(ie.display.lineMeasure,ye.pre),pe}function ed(ie,ae,fe,pe){return _t(ie,bn(ie,ae),fe,pe)}function Xn(ie,ae){if(ae>=ie.display.viewFrom&&ae<ie.display.viewTo)return ie.display.view[Fr(ie,ae)];var fe=ie.display.externalMeasured;if(fe&&ae>=fe.lineN&&ae<fe.lineN+fe.size)return fe}function bn(ie,ae){var fe=bt(ae),pe=Xn(ie,fe);pe&&!pe.text?pe=null:pe&&pe.changes&&(xs(ie,pe,fe,hu(ie)),ie.curOp.forceUpdate=!0),pe||(pe=md(ie,ae));var ye=Pc(pe,ae,fe);return{line:ae,view:pe,rect:null,map:ye.map,cache:ye.cache,before:ye.before,hasHeights:!1}}function _t(ie,ae,fe,pe,ye){ae.before&&(fe=-1);var Be=fe+(pe||""),Xe;return ae.cache.hasOwnProperty(Be)?Xe=ae.cache[Be]:(ae.rect||(ae.rect=ae.view.text.getBoundingClientRect()),ae.hasHeights||(qc(ie,ae.view,ae.rect),ae.hasHeights=!0),Xe=Vr(ie,ae,fe,pe),Xe.bogus||(ae.cache[Be]=Xe)),{left:Xe.left,right:Xe.right,top:ye?Xe.rtop:Xe.top,bottom:ye?Xe.rbottom:Xe.bottom}}var Ao={left:0,right:0,top:0,bottom:0};function ta(ie,ae,fe){for(var pe,ye,Be,Xe,qe,ot,Tt=0;Tt<ie.length;Tt+=3)if(qe=ie[Tt],ot=ie[Tt+1],ae<qe?(ye=0,Be=1,Xe="left"):ae<ot?(ye=ae-qe,Be=ye+1):(Tt==ie.length-3||ae==ot&&ie[Tt+3]>ae)&&(Be=ot-qe,ye=Be-1,ae>=ot&&(Xe="right")),ye!=null){if(pe=ie[Tt+2],qe==ot&&fe==(pe.insertLeft?"left":"right")&&(Xe=fe),fe=="left"&&ye==0)for(;Tt&&ie[Tt-2]==ie[Tt-3]&&ie[Tt-1].insertLeft;)pe=ie[(Tt-=3)+2],Xe="left";if(fe=="right"&&ye==ot-qe)for(;Tt<ie.length-3&&ie[Tt+3]==ie[Tt+4]&&!ie[Tt+5].insertLeft;)pe=ie[(Tt+=3)+2],Xe="right";break}return{node:pe,start:ye,end:Be,collapse:Xe,coverStart:qe,coverEnd:ot}}function sa(ie,ae){var fe=Ao;if(ae=="left")for(var pe=0;pe<ie.length&&(fe=ie[pe]).left==fe.right;pe++);else for(var ye=ie.length-1;ye>=0&&(fe=ie[ye]).left==fe.right;ye--);return fe}function Vr(ie,ae,fe,pe){var ye=ta(ae.map,fe,pe),Be=ye.node,Xe=ye.start,qe=ye.end,ot=ye.collapse,Tt;if(Be.nodeType==3){for(var mn=0;mn<4;mn++){for(;Xe&&Ot(ae.line.text.charAt(ye.coverStart+Xe));)--Xe;for(;ye.coverStart+qe<ye.coverEnd&&Ot(ae.line.text.charAt(ye.coverStart+qe));)++qe;if(De&&Ke<9&&Xe==0&&qe==ye.coverEnd-ye.coverStart?Tt=Be.parentNode.getBoundingClientRect():Tt=sa(nt(Be,Xe,qe).getClientRects(),pe),Tt.left||Tt.right||Xe==0)break;qe=Xe,Xe=Xe-1,ot="right"}De&&Ke<11&&(Tt=Jr(ie.display.measure,Tt))}else{Xe>0&&(ot=pe="right");var Rt;ie.options.lineWrapping&&(Rt=Be.getClientRects()).length>1?Tt=Rt[pe=="right"?Rt.length-1:0]:Tt=Be.getBoundingClientRect()}if(De&&Ke<9&&!Xe&&(!Tt||!Tt.left&&!Tt.right)){var Qn=Be.parentNode.getClientRects()[0];Qn?Tt={left:Qn.left,right:Qn.left+nu(ie.display),top:Qn.top,bottom:Qn.bottom}:Tt=Ao}for(var _n=Tt.top-ae.rect.top,pi=Tt.bottom-ae.rect.top,Ci=(_n+pi)/2,ki=ae.view.measure.heights,ar=0;ar<ki.length-1&&!(Ci<ki[ar]);ar++);var Nr=ar?ki[ar-1]:0,Er=ki[ar],$r={left:(ot=="right"?Tt.right:Tt.left)-ae.rect.left,right:(ot=="left"?Tt.left:Tt.right)-ae.rect.left,top:Nr,bottom:Er};return!Tt.left&&!Tt.right&&($r.bogus=!0),ie.options.singleCursorHeightPerLine||($r.rtop=_n,$r.rbottom=pi),$r}function Jr(ie,ae){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!fo(ie))return ae;var fe=screen.logicalXDPI/screen.deviceXDPI,pe=screen.logicalYDPI/screen.deviceYDPI;return{left:ae.left*fe,right:ae.right*fe,top:ae.top*pe,bottom:ae.bottom*pe}}function jr(ie){if(ie.measure&&(ie.measure.cache={},ie.measure.heights=null,ie.rest))for(var ae=0;ae<ie.rest.length;ae++)ie.measure.caches[ae]={}}function rr(ie){ie.display.externalMeasure=null,$e(ie.display.lineMeasure);for(var ae=0;ae<ie.display.view.length;ae++)jr(ie.display.view[ae])}function ro(ie){rr(ie),ie.display.cachedCharWidth=ie.display.cachedTextHeight=ie.display.cachedPaddingH=null,ie.options.lineWrapping||(ie.display.maxLineChanged=!0),ie.display.lineNumChars=null}function Na(){return Je&&ee?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Ia(){return Je&&ee?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Ho(ie){var ae=0;if(ie.widgets)for(var fe=0;fe<ie.widgets.length;++fe)ie.widgets[fe].above&&(ae+=Wl(ie.widgets[fe]));return ae}function Bo(ie,ae,fe,pe,ye){if(!ye){var Be=Ho(ae);fe.top+=Be,fe.bottom+=Be}if(pe=="line")return fe;pe||(pe="local");var Xe=ua(ae);if(pe=="local"?Xe+=Fl(ie.display):Xe-=ie.display.viewOffset,pe=="page"||pe=="window"){var qe=ie.display.lineSpace.getBoundingClientRect();Xe+=qe.top+(pe=="window"?0:Ia());var ot=qe.left+(pe=="window"?0:Na());fe.left+=ot,fe.right+=ot}return fe.top+=Xe,fe.bottom+=Xe,fe}function rl(ie,ae,fe){if(fe=="div")return ae;var pe=ae.left,ye=ae.top;if(fe=="page")pe-=Na(),ye-=Ia();else if(fe=="local"||!fe){var Be=ie.display.sizer.getBoundingClientRect();pe+=Be.left,ye+=Be.top}var Xe=ie.display.lineSpace.getBoundingClientRect();return{left:pe-Xe.left,top:ye-Xe.top}}function Bs(ie,ae,fe,pe,ye){return pe||(pe=In(ie.doc,ae.line)),Bo(ie,pe,ed(ie,pe,ae.ch,ye),fe)}function ka(ie,ae,fe,pe,ye,Be){pe=pe||In(ie.doc,ae.line),ye||(ye=bn(ie,pe));function Xe(pi,Ci){var ki=_t(ie,ye,pi,Ci?"right":"left",Be);return Ci?ki.left=ki.right:ki.right=ki.left,Bo(ie,pe,ki,fe)}var qe=Qe(pe,ie.doc.direction),ot=ae.ch,Tt=ae.sticky;if(ot>=pe.text.length?(ot=pe.text.length,Tt="before"):ot<=0&&(ot=0,Tt="after"),!qe)return Xe(Tt=="before"?ot-1:ot,Tt=="before");function mn(pi,Ci,ki){var ar=qe[Ci],Nr=ar.level==1;return Xe(ki?pi-1:pi,Nr!=ki)}var Rt=xe(qe,ot,Tt),Qn=Ae,_n=mn(ot,Rt,Tt=="before");return Qn!=null&&(_n.other=mn(ot,Qn,Tt!="before")),_n}function Nl(ie,ae){var fe=0;ae=Bn(ie.doc,ae),ie.options.lineWrapping||(fe=nu(ie.display)*ae.ch);var pe=In(ie.doc,ae.line),ye=ua(pe)+Fl(ie.display);return{left:fe,right:fe,top:ye,bottom:ye+pe.height}}function js(ie,ae,fe,pe,ye){var Be=Gt(ie,ae,fe);return Be.xRel=ye,pe&&(Be.outside=pe),Be}function $s(ie,ae,fe){var pe=ie.doc;if(fe+=ie.display.viewOffset,fe<0)return js(pe.first,0,null,-1,-1);var ye=Ut(pe,fe),Be=pe.first+pe.size-1;if(ye>Be)return js(pe.first+pe.size-1,In(pe,Be).text.length,null,1,1);ae<0&&(ae=0);for(var Xe=In(pe,ye);;){var qe=di(ie,Xe,ye,ae,fe),ot=co(Xe,qe.ch+(qe.xRel>0||qe.outside>0?1:0));if(!ot)return qe;var Tt=ot.find(1);if(Tt.line==ye)return Tt;Xe=In(pe,ye=Tt.line)}}function fr(ie,ae,fe,pe){pe-=Ho(ae);var ye=ae.text.length,Be=ct(function(Xe){return _t(ie,fe,Xe-1).bottom<=pe},ye,0);return ye=ct(function(Xe){return _t(ie,fe,Xe).top>pe},Be,ye),{begin:Be,end:ye}}function va(ie,ae,fe,pe){fe||(fe=bn(ie,ae));var ye=Bo(ie,ae,_t(ie,fe,pe),"line").top;return fr(ie,ae,fe,ye)}function Wt(ie,ae,fe,pe){return ie.bottom<=fe?!1:ie.top>fe?!0:(pe?ie.left:ie.right)>ae}function di(ie,ae,fe,pe,ye){ye-=ua(ae);var Be=bn(ie,ae),Xe=Ho(ae),qe=0,ot=ae.text.length,Tt=!0,mn=Qe(ae,ie.doc.direction);if(mn){var Rt=(ie.options.lineWrapping?ps:Ns)(ie,ae,fe,Be,mn,pe,ye);Tt=Rt.level!=1,qe=Tt?Rt.from:Rt.to-1,ot=Tt?Rt.to:Rt.from-1}var Qn=null,_n=null,pi=ct(function(Hn){var Cr=_t(ie,Be,Hn);return Cr.top+=Xe,Cr.bottom+=Xe,Wt(Cr,pe,ye,!1)?(Cr.top<=ye&&Cr.left<=pe&&(Qn=Hn,_n=Cr),!0):!1},qe,ot),Ci,ki,ar=!1;if(_n){var Nr=pe-_n.left<_n.right-pe,Er=Nr==Tt;pi=Qn+(Er?0:1),ki=Er?"after":"before",Ci=Nr?_n.left:_n.right}else{!Tt&&(pi==ot||pi==qe)&&pi++,ki=pi==0?"after":pi==ae.text.length?"before":_t(ie,Be,pi-(Tt?1:0)).bottom+Xe<=ye==Tt?"after":"before";var $r=ka(ie,Gt(fe,pi,ki),"line",ae,Be);Ci=$r.left,ar=ye<$r.top?-1:ye>=$r.bottom?1:0}return pi=ft(ae.text,pi,1),js(fe,pi,ki,ar,pe-Ci)}function Ns(ie,ae,fe,pe,ye,Be,Xe){var qe=ct(function(Rt){var Qn=ye[Rt],_n=Qn.level!=1;return Wt(ka(ie,Gt(fe,_n?Qn.to:Qn.from,_n?"before":"after"),"line",ae,pe),Be,Xe,!0)},0,ye.length-1),ot=ye[qe];if(qe>0){var Tt=ot.level!=1,mn=ka(ie,Gt(fe,Tt?ot.from:ot.to,Tt?"after":"before"),"line",ae,pe);Wt(mn,Be,Xe,!0)&&mn.top>Xe&&(ot=ye[qe-1])}return ot}function ps(ie,ae,fe,pe,ye,Be,Xe){var qe=fr(ie,ae,pe,Xe),ot=qe.begin,Tt=qe.end;/\s/.test(ae.text.charAt(Tt-1))&&Tt--;for(var mn=null,Rt=null,Qn=0;Qn<ye.length;Qn++){var _n=ye[Qn];if(!(_n.from>=Tt||_n.to<=ot)){var pi=_n.level!=1,Ci=_t(ie,pe,pi?Math.min(Tt,_n.to)-1:Math.max(ot,_n.from)).right,ki=Ci<Be?Be-Ci+1e9:Ci-Be;(!mn||Rt>ki)&&(mn=_n,Rt=ki)}}return mn||(mn=ye[ye.length-1]),mn.from<ot&&(mn={from:ot,to:mn.to,level:mn.level}),mn.to>Tt&&(mn={from:mn.from,to:Tt,level:mn.level}),mn}var cl;function Os(ie){if(ie.cachedTextHeight!=null)return ie.cachedTextHeight;if(cl==null){cl=ut("pre",null,"CodeMirror-line-like");for(var ae=0;ae<49;++ae)cl.appendChild(document.createTextNode("x")),cl.appendChild(ut("br"));cl.appendChild(document.createTextNode("x"))}st(ie.measure,cl);var fe=cl.offsetHeight/50;return fe>3&&(ie.cachedTextHeight=fe),$e(ie.measure),fe||1}function nu(ie){if(ie.cachedCharWidth!=null)return ie.cachedCharWidth;var ae=ut("span","xxxxxxxxxx"),fe=ut("pre",[ae],"CodeMirror-line-like");st(ie.measure,fe);var pe=ae.getBoundingClientRect(),ye=(pe.right-pe.left)/10;return ye>2&&(ie.cachedCharWidth=ye),ye||10}function hu(ie){for(var ae=ie.display,fe={},pe={},ye=ae.gutters.clientLeft,Be=ae.gutters.firstChild,Xe=0;Be;Be=Be.nextSibling,++Xe){var qe=ie.display.gutterSpecs[Xe].className;fe[qe]=Be.offsetLeft+Be.clientLeft+ye,pe[qe]=Be.clientWidth}return{fixedPos:Vu(ae),gutterTotalWidth:ae.gutters.offsetWidth,gutterLeft:fe,gutterWidth:pe,wrapperWidth:ae.wrapper.clientWidth}}function Vu(ie){return ie.scroller.getBoundingClientRect().left-ie.sizer.getBoundingClientRect().left}function rs(ie){var ae=Os(ie.display),fe=ie.options.lineWrapping,pe=fe&&Math.max(5,ie.display.scroller.clientWidth/nu(ie.display)-3);return function(ye){if(fi(ie.doc,ye))return 0;var Be=0;if(ye.widgets)for(var Xe=0;Xe<ye.widgets.length;Xe++)ye.widgets[Xe].height&&(Be+=ye.widgets[Xe].height);return fe?Be+(Math.ceil(ye.text.length/pe)||1)*ae:Be+ae}}function Eo(ie){var ae=ie.doc,fe=rs(ie);ae.iter(function(pe){var ye=fe(pe);ye!=pe.height&&Rn(pe,ye)})}function Fa(ie,ae,fe,pe){var ye=ie.display;if(!fe&&lr(ae).getAttribute("cm-not-content")=="true")return null;var Be,Xe,qe=ye.lineSpace.getBoundingClientRect();try{Be=ae.clientX-qe.left,Xe=ae.clientY-qe.top}catch(Rt){return null}var ot=$s(ie,Be,Xe),Tt;if(pe&&ot.xRel>0&&(Tt=In(ie.doc,ot.line).text).length==ot.ch){var mn=it(Tt,Tt.length,ie.options.tabSize)-Tt.length;ot=Gt(ot.line,Math.max(0,Math.round((Be-Ws(ie.display).left)/nu(ie.display))-mn))}return ot}function Fr(ie,ae){if(ae>=ie.display.viewTo||(ae-=ie.display.viewFrom,ae<0))return null;for(var fe=ie.display.view,pe=0;pe<fe.length;pe++)if(ae-=fe[pe].size,ae<0)return pe}function za(ie,ae,fe,pe){ae==null&&(ae=ie.doc.first),fe==null&&(fe=ie.doc.first+ie.doc.size),pe||(pe=0);var ye=ie.display;if(pe&&fe<ye.viewTo&&(ye.updateLineNumbers==null||ye.updateLineNumbers>ae)&&(ye.updateLineNumbers=ae),ie.curOp.viewChanged=!0,ae>=ye.viewTo)Ht&&Qi(ie.doc,ae)<ye.viewTo&&ol(ie);else if(fe<=ye.viewFrom)Ht&&xr(ie.doc,fe+pe)>ye.viewFrom?ol(ie):(ye.viewFrom+=pe,ye.viewTo+=pe);else if(ae<=ye.viewFrom&&fe>=ye.viewTo)ol(ie);else if(ae<=ye.viewFrom){var Be=Zi(ie,fe,fe+pe,1);Be?(ye.view=ye.view.slice(Be.index),ye.viewFrom=Be.lineN,ye.viewTo+=pe):ol(ie)}else if(fe>=ye.viewTo){var Xe=Zi(ie,ae,ae,-1);Xe?(ye.view=ye.view.slice(0,Xe.index),ye.viewTo=Xe.lineN):ol(ie)}else{var qe=Zi(ie,ae,ae,-1),ot=Zi(ie,fe,fe+pe,1);qe&&ot?(ye.view=ye.view.slice(0,qe.index).concat(Xr(ie,qe.lineN,ot.lineN)).concat(ye.view.slice(ot.index)),ye.viewTo+=pe):ol(ie)}var Tt=ye.externalMeasured;Tt&&(fe<Tt.lineN?Tt.lineN+=pe:ae<Tt.lineN+Tt.size&&(ye.externalMeasured=null))}function qo(ie,ae,fe){ie.curOp.viewChanged=!0;var pe=ie.display,ye=ie.display.externalMeasured;if(ye&&ae>=ye.lineN&&ae<ye.lineN+ye.size&&(pe.externalMeasured=null),!(ae<pe.viewFrom||ae>=pe.viewTo)){var Be=pe.view[Fr(ie,ae)];if(Be.node!=null){var Xe=Be.changes||(Be.changes=[]);gt(Xe,fe)==-1&&Xe.push(fe)}}}function ol(ie){ie.display.viewFrom=ie.display.viewTo=ie.doc.first,ie.display.view=[],ie.display.viewOffset=0}function Zi(ie,ae,fe,pe){var ye=Fr(ie,ae),Be,Xe=ie.display.view;if(!Ht||fe==ie.doc.first+ie.doc.size)return{index:ye,lineN:fe};for(var qe=ie.display.viewFrom,ot=0;ot<ye;ot++)qe+=Xe[ot].size;if(qe!=ae){if(pe>0){if(ye==Xe.length-1)return null;Be=qe+Xe[ye].size-ae,ye++}else Be=qe-ae;ae+=Be,fe+=Be}for(;Qi(ie.doc,fe)!=fe;){if(ye==(pe<0?0:Xe.length-1))return null;fe+=pe*Xe[ye-(pe<0?1:0)].size,ye+=pe}return{index:ye,lineN:fe}}function oo(ie,ae,fe){var pe=ie.display,ye=pe.view;ye.length==0||ae>=pe.viewTo||fe<=pe.viewFrom?(pe.view=Xr(ie,ae,fe),pe.viewFrom=ae):(pe.viewFrom>ae?pe.view=Xr(ie,ae,pe.viewFrom).concat(pe.view):pe.viewFrom<ae&&(pe.view=pe.view.slice(Fr(ie,ae))),pe.viewFrom=ae,pe.viewTo<fe?pe.view=pe.view.concat(Xr(ie,pe.viewTo,fe)):pe.viewTo>fe&&(pe.view=pe.view.slice(0,Fr(ie,fe)))),pe.viewTo=fe}function iu(ie){for(var ae=ie.display.view,fe=0,pe=0;pe<ae.length;pe++){var ye=ae[pe];!ye.hidden&&(!ye.node||ye.changes)&&++fe}return fe}function Sl(ie){ie.display.input.showSelection(ie.display.input.prepareSelection())}function _c(ie,ae){ae===void 0&&(ae=!0);for(var fe=ie.doc,pe={},ye=pe.cursors=document.createDocumentFragment(),Be=pe.selection=document.createDocumentFragment(),Xe=0;Xe<fe.sel.ranges.length;Xe++)if(!(!ae&&Xe==fe.sel.primIndex)){var qe=fe.sel.ranges[Xe];if(!(qe.from().line>=ie.display.viewTo||qe.to().line<ie.display.viewFrom)){var ot=qe.empty();(ot||ie.options.showCursorWhenSelecting)&&Xo(ie,qe.head,ye),ot||Ma(ie,qe,Be)}}return pe}function Xo(ie,ae,fe){var pe=ka(ie,ae,"div",null,null,!ie.options.singleCursorHeightPerLine),ye=fe.appendChild(ut("div","\xA0","CodeMirror-cursor"));if(ye.style.left=pe.left+"px",ye.style.top=pe.top+"px",ye.style.height=Math.max(0,pe.bottom-pe.top)*ie.options.cursorHeight+"px",pe.other){var Be=fe.appendChild(ut("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Be.style.display="",Be.style.left=pe.other.left+"px",Be.style.top=pe.other.top+"px",Be.style.height=(pe.other.bottom-pe.other.top)*.85+"px"}}function Bl(ie,ae){return ie.top-ae.top||ie.left-ae.left}function Ma(ie,ae,fe){var pe=ie.display,ye=ie.doc,Be=document.createDocumentFragment(),Xe=Ws(ie.display),qe=Xe.left,ot=Math.max(pe.sizerWidth,Al(ie)-pe.sizer.offsetLeft)-Xe.right,Tt=ye.direction=="ltr";function mn(Er,$r,Hn,Cr){$r<0&&($r=0),$r=Math.round($r),Cr=Math.round(Cr),Be.appendChild(ut("div",null,"CodeMirror-selected","position: absolute; left: "+Er+`px;
top: `+$r+"px; width: "+(Hn==null?ot-Er:Hn)+`px;
height: `+(Cr-$r)+"px"))}function Rt(Er,$r,Hn){var Cr=In(ye,Er),$o=Cr.text.length,oi,us;function Xa(Va,ll){return Bs(ie,Gt(Er,Va),"div",Cr,ll)}function pl(Va,ll,Xs){var ha=va(ie,Cr,null,Va),Ca=ll=="ltr"==(Xs=="after")?"left":"right",Ts=Xs=="after"?ha.begin:ha.end-(/\s/.test(Cr.text.charAt(ha.end-1))?2:1);return Xa(Ts,Ca)[Ca]}var ml=Qe(Cr,ye.direction);return Ge(ml,$r||0,Hn==null?$o:Hn,function(Va,ll,Xs,ha){var Ca=Xs=="ltr",Ts=Xa(Va,Ca?"left":"right"),el=Xa(ll-1,Ca?"right":"left"),Ps=$r==null&&Va==0,Tl=Hn==null&&ll==$o,ba=ha==0,Fu=!ml||ha==ml.length-1;if(el.top-Ts.top<=3){var fs=(Tt?Ps:Tl)&&ba,Su=(Tt?Tl:Ps)&&Fu,su=fs?qe:(Ca?Ts:el).left,Bu=Su?ot:(Ca?el:Ts).right;mn(su,Ts.top,Bu-su,Ts.bottom)}else{var xu,cs,Il,sr;Ca?(xu=Tt&&Ps&&ba?qe:Ts.left,cs=Tt?ot:pl(Va,Xs,"before"),Il=Tt?qe:pl(ll,Xs,"after"),sr=Tt&&Tl&&Fu?ot:el.right):(xu=Tt?pl(Va,Xs,"before"):qe,cs=!Tt&&Ps&&ba?ot:Ts.right,Il=!Tt&&Tl&&Fu?qe:el.left,sr=Tt?pl(ll,Xs,"after"):ot),mn(xu,Ts.top,cs-xu,Ts.bottom),Ts.bottom<el.top&&mn(qe,Ts.bottom,null,el.top),mn(Il,el.top,sr-Il,el.bottom)}(!oi||Bl(Ts,oi)<0)&&(oi=Ts),Bl(el,oi)<0&&(oi=el),(!us||Bl(Ts,us)<0)&&(us=Ts),Bl(el,us)<0&&(us=el)}),{start:oi,end:us}}var Qn=ae.from(),_n=ae.to();if(Qn.line==_n.line)Rt(Qn.line,Qn.ch,_n.ch);else{var pi=In(ye,Qn.line),Ci=In(ye,_n.line),ki=ao(pi)==ao(Ci),ar=Rt(Qn.line,Qn.ch,ki?pi.text.length+1:null).end,Nr=Rt(_n.line,ki?0:null,_n.ch).start;ki&&(ar.top<Nr.top-2?(mn(ar.right,ar.top,null,ar.bottom),mn(qe,Nr.top,Nr.left,Nr.bottom)):mn(ar.right,ar.top,Nr.left-ar.right,ar.bottom)),ar.bottom<Nr.top&&mn(qe,ar.bottom,null,Nr.top)}fe.appendChild(Be)}function Ka(ie){if(ie.state.focused){var ae=ie.display;clearInterval(ae.blinker);var fe=!0;ae.cursorDiv.style.visibility="",ie.options.cursorBlinkRate>0?ae.blinker=setInterval(function(){ie.hasFocus()||Ku(ie),ae.cursorDiv.style.visibility=(fe=!fe)?"":"hidden"},ie.options.cursorBlinkRate):ie.options.cursorBlinkRate<0&&(ae.cursorDiv.style.visibility="hidden")}}function ms(ie){ie.state.focused||(ie.display.input.focus(),ya(ie))}function os(ie){ie.state.delayingBlurEvent=!0,setTimeout(function(){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1,Ku(ie))},100)}function ya(ie,ae){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1),ie.options.readOnly!="nocursor"&&(ie.state.focused||(wt(ie,"focus",ie,ae),ie.state.focused=!0,dn(ie.display.wrapper,"CodeMirror-focused"),!ie.curOp&&ie.display.selForContextMenu!=ie.doc.sel&&(ie.display.input.reset(),Ee&&setTimeout(function(){return ie.display.input.reset(!0)},20)),ie.display.input.receivedFocus()),Ka(ie))}function Ku(ie,ae){ie.state.delayingBlurEvent||(ie.state.focused&&(wt(ie,"blur",ie,ae),ie.state.focused=!1,We(ie.display.wrapper,"CodeMirror-focused")),clearInterval(ie.display.blinker),setTimeout(function(){ie.state.focused||(ie.display.shift=!1)},150))}function xo(ie){for(var ae=ie.display,fe=ae.lineDiv.offsetTop,pe=0;pe<ae.view.length;pe++){var ye=ae.view[pe],Be=ie.options.lineWrapping,Xe=void 0,qe=0;if(!ye.hidden){if(De&&Ke<8){var ot=ye.node.offsetTop+ye.node.offsetHeight;Xe=ot-fe,fe=ot}else{var Tt=ye.node.getBoundingClientRect();Xe=Tt.bottom-Tt.top,!Be&&ye.text.firstChild&&(qe=ye.text.firstChild.getBoundingClientRect().right-Tt.left-1)}var mn=ye.line.height-Xe;if((mn>.005||mn<-.005)&&(Rn(ye.line,Xe),Gc(ye.line),ye.rest))for(var Rt=0;Rt<ye.rest.length;Rt++)Gc(ye.rest[Rt]);if(qe>ie.display.sizerWidth){var Qn=Math.ceil(qe/nu(ie.display));Qn>ie.display.maxLineLength&&(ie.display.maxLineLength=Qn,ie.display.maxLine=ye.line,ie.display.maxLineChanged=!0)}}}}function Gc(ie){if(ie.widgets)for(var ae=0;ae<ie.widgets.length;++ae){var fe=ie.widgets[ae],pe=fe.node.parentNode;pe&&(fe.height=pe.offsetHeight)}}function pa(ie,ae,fe){var pe=fe&&fe.top!=null?Math.max(0,fe.top):ie.scroller.scrollTop;pe=Math.floor(pe-Fl(ie));var ye=fe&&fe.bottom!=null?fe.bottom:pe+ie.wrapper.clientHeight,Be=Ut(ae,pe),Xe=Ut(ae,ye);if(fe&&fe.ensure){var qe=fe.ensure.from.line,ot=fe.ensure.to.line;qe<Be?(Be=qe,Xe=Ut(ae,ua(In(ae,qe))+ie.wrapper.clientHeight)):Math.min(ot,ae.lastLine())>=Xe&&(Be=Ut(ae,ua(In(ae,ot))-ie.wrapper.clientHeight),Xe=ot)}return{from:Be,to:Math.max(Xe,Be+1)}}function ah(ie,ae){if(!nn(ie,"scrollCursorIntoView")){var fe=ie.display,pe=fe.sizer.getBoundingClientRect(),ye=null;if(ae.top+pe.top<0?ye=!0:ae.bottom+pe.top>(window.innerHeight||document.documentElement.clientHeight)&&(ye=!1),ye!=null&&!kt){var Be=ut("div","\u200B",null,`position: absolute;
top: `+(ae.top-fe.viewOffset-Fl(ie.display))+`px;
height: `+(ae.bottom-ae.top+Zs(ie)+fe.barHeight)+`px;
left: `+ae.left+"px; width: "+Math.max(2,ae.right-ae.left)+"px;");ie.display.lineSpace.appendChild(Be),Be.scrollIntoView(ye),ie.display.lineSpace.removeChild(Be)}}}function ru(ie,ae,fe,pe){pe==null&&(pe=0);var ye;!ie.options.lineWrapping&&ae==fe&&(ae=ae.ch?Gt(ae.line,ae.sticky=="before"?ae.ch-1:ae.ch,"after"):ae,fe=ae.sticky=="before"?Gt(ae.line,ae.ch+1,"before"):ae);for(var Be=0;Be<5;Be++){var Xe=!1,qe=ka(ie,ae),ot=!fe||fe==ae?qe:ka(ie,fe);ye={left:Math.min(qe.left,ot.left),top:Math.min(qe.top,ot.top)-pe,right:Math.max(qe.left,ot.left),bottom:Math.max(qe.bottom,ot.bottom)+pe};var Tt=Td(ie,ye),mn=ie.doc.scrollTop,Rt=ie.doc.scrollLeft;if(Tt.scrollTop!=null&&(Ac(ie,Tt.scrollTop),Math.abs(ie.doc.scrollTop-mn)>1&&(Xe=!0)),Tt.scrollLeft!=null&&($u(ie,Tt.scrollLeft),Math.abs(ie.doc.scrollLeft-Rt)>1&&(Xe=!0)),!Xe)break}return ye}function jl(ie,ae){var fe=Td(ie,ae);fe.scrollTop!=null&&Ac(ie,fe.scrollTop),fe.scrollLeft!=null&&$u(ie,fe.scrollLeft)}function Td(ie,ae){var fe=ie.display,pe=Os(ie.display);ae.top<0&&(ae.top=0);var ye=ie.curOp&&ie.curOp.scrollTop!=null?ie.curOp.scrollTop:fe.scroller.scrollTop,Be=Jc(ie),Xe={};ae.bottom-ae.top>Be&&(ae.bottom=ae.top+Be);var qe=ie.doc.height+Zu(fe),ot=ae.top<pe,Tt=ae.bottom>qe-pe;if(ae.top<ye)Xe.scrollTop=ot?0:ae.top;else if(ae.bottom>ye+Be){var mn=Math.min(ae.top,(Tt?qe:ae.bottom)-Be);mn!=ye&&(Xe.scrollTop=mn)}var Rt=ie.options.fixedGutter?0:fe.gutters.offsetWidth,Qn=ie.curOp&&ie.curOp.scrollLeft!=null?ie.curOp.scrollLeft:fe.scroller.scrollLeft-Rt,_n=Al(ie)-fe.gutters.offsetWidth,pi=ae.right-ae.left>_n;return pi&&(ae.right=ae.left+_n),ae.left<10?Xe.scrollLeft=0:ae.left<Qn?Xe.scrollLeft=Math.max(0,ae.left+Rt-(pi?0:10)):ae.right>_n+Qn-3&&(Xe.scrollLeft=ae.right+(pi?0:10)-_n),Xe}function zl(ie,ae){ae!=null&&(kl(ie),ie.curOp.scrollTop=(ie.curOp.scrollTop==null?ie.doc.scrollTop:ie.curOp.scrollTop)+ae)}function Ea(ie){kl(ie);var ae=ie.getCursor();ie.curOp.scrollToPos={from:ae,to:ae,margin:ie.options.cursorScrollMargin}}function zs(ie,ae,fe){(ae!=null||fe!=null)&&kl(ie),ae!=null&&(ie.curOp.scrollLeft=ae),fe!=null&&(ie.curOp.scrollTop=fe)}function da(ie,ae){kl(ie),ie.curOp.scrollToPos=ae}function kl(ie){var ae=ie.curOp.scrollToPos;if(ae){ie.curOp.scrollToPos=null;var fe=Nl(ie,ae.from),pe=Nl(ie,ae.to);Yu(ie,fe,pe,ae.margin)}}function Yu(ie,ae,fe,pe){var ye=Td(ie,{left:Math.min(ae.left,fe.left),top:Math.min(ae.top,fe.top)-pe,right:Math.max(ae.right,fe.right),bottom:Math.max(ae.bottom,fe.bottom)+pe});zs(ie,ye.scrollLeft,ye.scrollTop)}function Ac(ie,ae){Math.abs(ie.doc.scrollTop-ae)<2||(se||Pr(ie,{top:ae}),Id(ie,ae,!0),se&&Pr(ie),bi(ie,100))}function Id(ie,ae,fe){ae=Math.max(0,Math.min(ie.display.scroller.scrollHeight-ie.display.scroller.clientHeight,ae)),!(ie.display.scroller.scrollTop==ae&&!fe)&&(ie.doc.scrollTop=ae,ie.display.scrollbars.setScrollTop(ae),ie.display.scroller.scrollTop!=ae&&(ie.display.scroller.scrollTop=ae))}function $u(ie,ae,fe,pe){ae=Math.max(0,Math.min(ae,ie.display.scroller.scrollWidth-ie.display.scroller.clientWidth)),!((fe?ae==ie.doc.scrollLeft:Math.abs(ie.doc.scrollLeft-ae)<2)&&!pe)&&(ie.doc.scrollLeft=ae,Lo(ie),ie.display.scroller.scrollLeft!=ae&&(ie.display.scroller.scrollLeft=ae),ie.display.scrollbars.setScrollLeft(ae))}function gu(ie){var ae=ie.display,fe=ae.gutters.offsetWidth,pe=Math.round(ie.doc.height+Zu(ie.display));return{clientHeight:ae.scroller.clientHeight,viewHeight:ae.wrapper.clientHeight,scrollWidth:ae.scroller.scrollWidth,clientWidth:ae.scroller.clientWidth,viewWidth:ae.wrapper.clientWidth,barLeft:ie.options.fixedGutter?fe:0,docHeight:pe,scrollHeight:pe+Zs(ie)+ae.barHeight,nativeBarWidth:ae.nativeBarWidth,gutterWidth:fe}}var Sc=function(ie,ae,fe){this.cm=fe;var pe=this.vert=ut("div",[ut("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ye=this.horiz=ut("div",[ut("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");pe.tabIndex=ye.tabIndex=-1,ie(pe),ie(ye),xt(pe,"scroll",function(){pe.clientHeight&&ae(pe.scrollTop,"vertical")}),xt(ye,"scroll",function(){ye.clientWidth&&ae(ye.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,De&&Ke<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Sc.prototype.update=function(ie){var ae=ie.scrollWidth>ie.clientWidth+1,fe=ie.scrollHeight>ie.clientHeight+1,pe=ie.nativeBarWidth;if(fe){this.vert.style.display="block",this.vert.style.bottom=ae?pe+"px":"0";var ye=ie.viewHeight-(ae?pe:0);this.vert.firstChild.style.height=Math.max(0,ie.scrollHeight-ie.clientHeight+ye)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(ae){this.horiz.style.display="block",this.horiz.style.right=fe?pe+"px":"0",this.horiz.style.left=ie.barLeft+"px";var Be=ie.viewWidth-ie.barLeft-(fe?pe:0);this.horiz.firstChild.style.width=Math.max(0,ie.scrollWidth-ie.clientWidth+Be)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&ie.clientHeight>0&&(pe==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:fe?pe:0,bottom:ae?pe:0}},Sc.prototype.setScrollLeft=function(ie){this.horiz.scrollLeft!=ie&&(this.horiz.scrollLeft=ie),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Sc.prototype.setScrollTop=function(ie){this.vert.scrollTop!=ie&&(this.vert.scrollTop=ie),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Sc.prototype.zeroWidthHack=function(){var ie=ge&&!ht?"12px":"18px";this.horiz.style.height=this.vert.style.width=ie,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Ve,this.disableVert=new Ve},Sc.prototype.enableZeroWidthBar=function(ie,ae,fe){ie.style.pointerEvents="auto";function pe(){var ye=ie.getBoundingClientRect(),Be=fe=="vert"?document.elementFromPoint(ye.right-1,(ye.top+ye.bottom)/2):document.elementFromPoint((ye.right+ye.left)/2,ye.bottom-1);Be!=ie?ie.style.pointerEvents="none":ae.set(1e3,pe)}ae.set(1e3,pe)},Sc.prototype.clear=function(){var ie=this.horiz.parentNode;ie.removeChild(this.horiz),ie.removeChild(this.vert)};var Xu=function(){};Xu.prototype.update=function(){return{bottom:0,right:0}},Xu.prototype.setScrollLeft=function(){},Xu.prototype.setScrollTop=function(){},Xu.prototype.clear=function(){};function Nc(ie,ae){ae||(ae=gu(ie));var fe=ie.display.barWidth,pe=ie.display.barHeight;td(ie,ae);for(var ye=0;ye<4&&fe!=ie.display.barWidth||pe!=ie.display.barHeight;ye++)fe!=ie.display.barWidth&&ie.options.lineWrapping&&xo(ie),td(ie,gu(ie)),fe=ie.display.barWidth,pe=ie.display.barHeight}function td(ie,ae){var fe=ie.display,pe=fe.scrollbars.update(ae);fe.sizer.style.paddingRight=(fe.barWidth=pe.right)+"px",fe.sizer.style.paddingBottom=(fe.barHeight=pe.bottom)+"px",fe.heightForcer.style.borderBottom=pe.bottom+"px solid transparent",pe.right&&pe.bottom?(fe.scrollbarFiller.style.display="block",fe.scrollbarFiller.style.height=pe.bottom+"px",fe.scrollbarFiller.style.width=pe.right+"px"):fe.scrollbarFiller.style.display="",pe.bottom&&ie.options.coverGutterNextToScrollbar&&ie.options.fixedGutter?(fe.gutterFiller.style.display="block",fe.gutterFiller.style.height=pe.bottom+"px",fe.gutterFiller.style.width=ae.gutterWidth+"px"):fe.gutterFiller.style.display=""}var nd={native:Sc,null:Xu};function xc(ie){ie.display.scrollbars&&(ie.display.scrollbars.clear(),ie.display.scrollbars.addClass&&We(ie.display.wrapper,ie.display.scrollbars.addClass)),ie.display.scrollbars=new nd[ie.options.scrollbarStyle](function(ae){ie.display.wrapper.insertBefore(ae,ie.display.scrollbarFiller),xt(ae,"mousedown",function(){ie.state.focused&&setTimeout(function(){return ie.display.input.focus()},0)}),ae.setAttribute("cm-not-content","true")},function(ae,fe){fe=="horizontal"?$u(ie,ae):Ac(ie,ae)},ie),ie.display.scrollbars.addClass&&dn(ie.display.wrapper,ie.display.scrollbars.addClass)}var Mh=0;function Ul(ie){ie.curOp={cm:ie,viewChanged:!1,startHeight:ie.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:++Mh},ns(ie.curOp)}function Tu(ie){var ae=ie.curOp;ae&&Po(ae,function(fe){for(var pe=0;pe<fe.ops.length;pe++)fe.ops[pe].cm.curOp=null;Ud(fe)})}function Ud(ie){for(var ae=ie.ops,fe=0;fe<ae.length;fe++)mt(ae[fe]);for(var pe=0;pe<ae.length;pe++)Et(ae[pe]);for(var ye=0;ye<ae.length;ye++)rn(ae[ye]);for(var Be=0;Be<ae.length;Be++)cn(ae[Be]);for(var Xe=0;Xe<ae.length;Xe++)Dn(ae[Xe])}function mt(ie){var ae=ie.cm,fe=ae.display;qi(ae),ie.updateMaxLine&&oa(ae),ie.mustUpdate=ie.viewChanged||ie.forceUpdate||ie.scrollTop!=null||ie.scrollToPos&&(ie.scrollToPos.from.line<fe.viewFrom||ie.scrollToPos.to.line>=fe.viewTo)||fe.maxLineChanged&&ae.options.lineWrapping,ie.update=ie.mustUpdate&&new Ei(ae,ie.mustUpdate&&{top:ie.scrollTop,ensure:ie.scrollToPos},ie.forceUpdate)}function Et(ie){ie.updatedDisplay=ie.mustUpdate&&Lr(ie.cm,ie.update)}function rn(ie){var ae=ie.cm,fe=ae.display;ie.updatedDisplay&&xo(ae),ie.barMeasure=gu(ae),fe.maxLineChanged&&!ae.options.lineWrapping&&(ie.adjustWidthTo=ed(ae,fe.maxLine,fe.maxLine.text.length).left+3,ae.display.sizerWidth=ie.adjustWidthTo,ie.barMeasure.scrollWidth=Math.max(fe.scroller.clientWidth,fe.sizer.offsetLeft+ie.adjustWidthTo+Zs(ae)+ae.display.barWidth),ie.maxScrollLeft=Math.max(0,fe.sizer.offsetLeft+ie.adjustWidthTo-Al(ae))),(ie.updatedDisplay||ie.selectionChanged)&&(ie.preparedSelection=fe.input.prepareSelection())}function cn(ie){var ae=ie.cm;ie.adjustWidthTo!=null&&(ae.display.sizer.style.minWidth=ie.adjustWidthTo+"px",ie.maxScrollLeft<ae.doc.scrollLeft&&$u(ae,Math.min(ae.display.scroller.scrollLeft,ie.maxScrollLeft),!0),ae.display.maxLineChanged=!1);var fe=ie.focus&&ie.focus==Pt();ie.preparedSelection&&ae.display.input.showSelection(ie.preparedSelection,fe),(ie.updatedDisplay||ie.startHeight!=ae.doc.height)&&Nc(ae,ie.barMeasure),ie.updatedDisplay&&So(ae,ie.barMeasure),ie.selectionChanged&&Ka(ae),ae.state.focused&&ie.updateInput&&ae.display.input.reset(ie.typing),fe&&ms(ie.cm)}function Dn(ie){var ae=ie.cm,fe=ae.display,pe=ae.doc;if(ie.updatedDisplay&&Vi(ae,ie.update),fe.wheelStartX!=null&&(ie.scrollTop!=null||ie.scrollLeft!=null||ie.scrollToPos)&&(fe.wheelStartX=fe.wheelStartY=null),ie.scrollTop!=null&&Id(ae,ie.scrollTop,ie.forceScroll),ie.scrollLeft!=null&&$u(ae,ie.scrollLeft,!0,!0),ie.scrollToPos){var ye=ru(ae,Bn(pe,ie.scrollToPos.from),Bn(pe,ie.scrollToPos.to),ie.scrollToPos.margin);ah(ae,ye)}var Be=ie.maybeHiddenMarkers,Xe=ie.maybeUnhiddenMarkers;if(Be)for(var qe=0;qe<Be.length;++qe)Be[qe].lines.length||wt(Be[qe],"hide");if(Xe)for(var ot=0;ot<Xe.length;++ot)Xe[ot].lines.length&&wt(Xe[ot],"unhide");fe.wrapper.offsetHeight&&(pe.scrollTop=ae.display.scroller.scrollTop),ie.changeObjs&&wt(ae,"changes",ae,ie.changeObjs),ie.update&&ie.update.finish()}function xn(ie,ae){if(ie.curOp)return ae();Ul(ie);try{return ae()}finally{Tu(ie)}}function ri(ie,ae){return function(){if(ie.curOp)return ae.apply(ie,arguments);Ul(ie);try{return ae.apply(ie,arguments)}finally{Tu(ie)}}}function ai(ie){return function(){if(this.curOp)return ie.apply(this,arguments);Ul(this);try{return ie.apply(this,arguments)}finally{Tu(this)}}}function qn(ie){return function(){var ae=this.cm;if(!ae||ae.curOp)return ie.apply(this,arguments);Ul(ae);try{return ie.apply(this,arguments)}finally{Tu(ae)}}}function bi(ie,ae){ie.doc.highlightFrontier<ie.display.viewTo&&ie.state.highlight.set(ae,fn(Ni,ie))}function Ni(ie){var ae=ie.doc;if(!(ae.highlightFrontier>=ie.display.viewTo)){var fe=+new Date+ie.options.workTime,pe=zi(ie,ae.highlightFrontier),ye=[];ae.iter(pe.line,Math.min(ae.first+ae.size,ie.display.viewTo+500),function(Be){if(pe.line>=ie.display.viewFrom){var Xe=Be.styles,qe=Be.text.length>ie.options.maxHighlightLength?On(ae.mode,pe.state):null,ot=Fi(ie,Be,pe,!0);qe&&(pe.state=qe),Be.styles=ot.styles;var Tt=Be.styleClasses,mn=ot.classes;mn?Be.styleClasses=mn:Tt&&(Be.styleClasses=null);for(var Rt=!Xe||Xe.length!=Be.styles.length||Tt!=mn&&(!Tt||!mn||Tt.bgClass!=mn.bgClass||Tt.textClass!=mn.textClass),Qn=0;!Rt&&Qn<Xe.length;++Qn)Rt=Xe[Qn]!=Be.styles[Qn];Rt&&ye.push(pe.line),Be.stateAfter=pe.save(),pe.nextLine()}else Be.text.length<=ie.options.maxHighlightLength&&tn(ie,Be.text,pe),Be.stateAfter=pe.line%5==0?pe.save():null,pe.nextLine();if(+new Date>fe)return bi(ie,ie.options.workDelay),!0}),ae.highlightFrontier=pe.line,ae.modeFrontier=Math.max(ae.modeFrontier,pe.line),ye.length&&xn(ie,function(){for(var Be=0;Be<ye.length;Be++)qo(ie,ye[Be],"text")})}}var Ei=function(ie,ae,fe){var pe=ie.display;this.viewport=ae,this.visible=pa(pe,ie.doc,ae),this.editorIsHidden=!pe.wrapper.offsetWidth,this.wrapperHeight=pe.wrapper.clientHeight,this.wrapperWidth=pe.wrapper.clientWidth,this.oldDisplayWidth=Al(ie),this.force=fe,this.dims=hu(ie),this.events=[]};Ei.prototype.signal=function(ie,ae){Zn(ie,ae)&&this.events.push(arguments)},Ei.prototype.finish=function(){for(var ie=0;ie<this.events.length;ie++)wt.apply(null,this.events[ie])};function qi(ie){var ae=ie.display;!ae.scrollbarsClipped&&ae.scroller.offsetWidth&&(ae.nativeBarWidth=ae.scroller.offsetWidth-ae.scroller.clientWidth,ae.heightForcer.style.height=Zs(ie)+"px",ae.sizer.style.marginBottom=-ae.nativeBarWidth+"px",ae.sizer.style.borderRightWidth=Zs(ie)+"px",ae.scrollbarsClipped=!0)}function Ki(ie){if(ie.hasFocus())return null;var ae=Pt();if(!ae||!$t(ie.display.lineDiv,ae))return null;var fe={activeElt:ae};if(window.getSelection){var pe=window.getSelection();pe.anchorNode&&pe.extend&&$t(ie.display.lineDiv,pe.anchorNode)&&(fe.anchorNode=pe.anchorNode,fe.anchorOffset=pe.anchorOffset,fe.focusNode=pe.focusNode,fe.focusOffset=pe.focusOffset)}return fe}function Ui(ie){if(!(!ie||!ie.activeElt||ie.activeElt==Pt())&&(ie.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(ie.activeElt.nodeName)&&ie.anchorNode&&$t(document.body,ie.anchorNode)&&$t(document.body,ie.focusNode))){var ae=window.getSelection(),fe=document.createRange();fe.setEnd(ie.anchorNode,ie.anchorOffset),fe.collapse(!1),ae.removeAllRanges(),ae.addRange(fe),ae.extend(ie.focusNode,ie.focusOffset)}}function Lr(ie,ae){var fe=ie.display,pe=ie.doc;if(ae.editorIsHidden)return ol(ie),!1;if(!ae.force&&ae.visible.from>=fe.viewFrom&&ae.visible.to<=fe.viewTo&&(fe.updateLineNumbers==null||fe.updateLineNumbers>=fe.viewTo)&&fe.renderedView==fe.view&&iu(ie)==0)return!1;Tr(ie)&&(ol(ie),ae.dims=hu(ie));var ye=pe.first+pe.size,Be=Math.max(ae.visible.from-ie.options.viewportMargin,pe.first),Xe=Math.min(ye,ae.visible.to+ie.options.viewportMargin);fe.viewFrom<Be&&Be-fe.viewFrom<20&&(Be=Math.max(pe.first,fe.viewFrom)),fe.viewTo>Xe&&fe.viewTo-Xe<20&&(Xe=Math.min(ye,fe.viewTo)),Ht&&(Be=Qi(ie.doc,Be),Xe=xr(ie.doc,Xe));var qe=Be!=fe.viewFrom||Xe!=fe.viewTo||fe.lastWrapHeight!=ae.wrapperHeight||fe.lastWrapWidth!=ae.wrapperWidth;oo(ie,Be,Xe),fe.viewOffset=ua(In(ie.doc,fe.viewFrom)),ie.display.mover.style.top=fe.viewOffset+"px";var ot=iu(ie);if(!qe&&ot==0&&!ae.force&&fe.renderedView==fe.view&&(fe.updateLineNumbers==null||fe.updateLineNumbers>=fe.viewTo))return!1;var Tt=Ki(ie);return ot>4&&(fe.lineDiv.style.display="none"),yr(ie,fe.updateLineNumbers,ae.dims),ot>4&&(fe.lineDiv.style.display=""),fe.renderedView=fe.view,Ui(Tt),$e(fe.cursorDiv),$e(fe.selectionDiv),fe.gutters.style.height=fe.sizer.style.minHeight=0,qe&&(fe.lastWrapHeight=ae.wrapperHeight,fe.lastWrapWidth=ae.wrapperWidth,bi(ie,400)),fe.updateLineNumbers=null,!0}function Vi(ie,ae){for(var fe=ae.viewport,pe=!0;;pe=!1){if(!pe||!ie.options.lineWrapping||ae.oldDisplayWidth==Al(ie)){if(fe&&fe.top!=null&&(fe={top:Math.min(ie.doc.height+Zu(ie.display)-Jc(ie),fe.top)}),ae.visible=pa(ie.display,ie.doc,fe),ae.visible.from>=ie.display.viewFrom&&ae.visible.to<=ie.display.viewTo)break}else pe&&(ae.visible=pa(ie.display,ie.doc,fe));if(!Lr(ie,ae))break;xo(ie);var ye=gu(ie);Sl(ie),Nc(ie,ye),So(ie,ye),ae.force=!1}ae.signal(ie,"update",ie),(ie.display.viewFrom!=ie.display.reportedViewFrom||ie.display.viewTo!=ie.display.reportedViewTo)&&(ae.signal(ie,"viewportChange",ie,ie.display.viewFrom,ie.display.viewTo),ie.display.reportedViewFrom=ie.display.viewFrom,ie.display.reportedViewTo=ie.display.viewTo)}function Pr(ie,ae){var fe=new Ei(ie,ae);if(Lr(ie,fe)){xo(ie),Vi(ie,fe);var pe=gu(ie);Sl(ie),Nc(ie,pe),So(ie,pe),fe.finish()}}function yr(ie,ae,fe){var pe=ie.display,ye=ie.options.lineNumbers,Be=pe.lineDiv,Xe=Be.firstChild;function qe(pi){var Ci=pi.nextSibling;return Ee&&ge&&ie.display.currentWheelTarget==pi?pi.style.display="none":pi.parentNode.removeChild(pi),Ci}for(var ot=pe.view,Tt=pe.viewFrom,mn=0;mn<ot.length;mn++){var Rt=ot[mn];if(!Rt.hidden)if(!Rt.node||Rt.node.parentNode!=Be){var Qn=ui(ie,Rt,Tt,fe);Be.insertBefore(Qn,Xe)}else{for(;Xe!=Rt.node;)Xe=qe(Xe);var _n=ye&&ae!=null&&ae<=Tt&&Rt.lineNumber;Rt.changes&&(gt(Rt.changes,"gutter")>-1&&(_n=!1),xs(ie,Rt,Tt,fe)),_n&&($e(Rt.lineNumber),Rt.lineNumber.appendChild(document.createTextNode(ni(ie.options,Tt)))),Xe=Rt.node.nextSibling}Tt+=Rt.size}for(;Xe;)Xe=qe(Xe)}function zr(ie){var ae=ie.gutters.offsetWidth;ie.sizer.style.marginLeft=ae+"px"}function So(ie,ae){ie.display.sizer.style.minHeight=ae.docHeight+"px",ie.display.heightForcer.style.top=ae.docHeight+"px",ie.display.gutters.style.height=ae.docHeight+ie.display.barHeight+Zs(ie)+"px"}function Lo(ie){var ae=ie.display,fe=ae.view;if(!(!ae.alignWidgets&&(!ae.gutters.firstChild||!ie.options.fixedGutter))){for(var pe=Vu(ae)-ae.scroller.scrollLeft+ie.doc.scrollLeft,ye=ae.gutters.offsetWidth,Be=pe+"px",Xe=0;Xe<fe.length;Xe++)if(!fe[Xe].hidden){ie.options.fixedGutter&&(fe[Xe].gutter&&(fe[Xe].gutter.style.left=Be),fe[Xe].gutterBackground&&(fe[Xe].gutterBackground.style.left=Be));var qe=fe[Xe].alignable;if(qe)for(var ot=0;ot<qe.length;ot++)qe[ot].style.left=Be}ie.options.fixedGutter&&(ae.gutters.style.left=pe+ye+"px")}}function Tr(ie){if(!ie.options.lineNumbers)return!1;var ae=ie.doc,fe=ni(ie.options,ae.first+ae.size-1),pe=ie.display;if(fe.length!=pe.lineNumChars){var ye=pe.measure.appendChild(ut("div",[ut("div",fe)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Be=ye.firstChild.offsetWidth,Xe=ye.offsetWidth-Be;return pe.lineGutter.style.width="",pe.lineNumInnerWidth=Math.max(Be,pe.lineGutter.offsetWidth-Xe)+1,pe.lineNumWidth=pe.lineNumInnerWidth+Xe,pe.lineNumChars=pe.lineNumInnerWidth?fe.length:-1,pe.lineGutter.style.width=pe.lineNumWidth+"px",zr(ie.display),!0}return!1}function mo(ie,ae){for(var fe=[],pe=!1,ye=0;ye<ie.length;ye++){var Be=ie[ye],Xe=null;if(typeof Be!="string"&&(Xe=Be.style,Be=Be.className),Be=="CodeMirror-linenumbers")if(ae)pe=!0;else continue;fe.push({className:Be,style:Xe})}return ae&&!pe&&fe.push({className:"CodeMirror-linenumbers",style:null}),fe}function Zo(ie){var ae=ie.gutters,fe=ie.gutterSpecs;$e(ae),ie.lineGutter=null;for(var pe=0;pe<fe.length;++pe){var ye=fe[pe],Be=ye.className,Xe=ye.style,qe=ae.appendChild(ut("div",null,"CodeMirror-gutter "+Be));Xe&&(qe.style.cssText=Xe),Be=="CodeMirror-linenumbers"&&(ie.lineGutter=qe,qe.style.width=(ie.lineNumWidth||1)+"px")}ae.style.display=fe.length?"":"none",zr(ie)}function Hr(ie){Zo(ie.display),za(ie),Lo(ie)}function uo(ie,ae,fe,pe){var ye=this;this.input=fe,ye.scrollbarFiller=ut("div",null,"CodeMirror-scrollbar-filler"),ye.scrollbarFiller.setAttribute("cm-not-content","true"),ye.gutterFiller=ut("div",null,"CodeMirror-gutter-filler"),ye.gutterFiller.setAttribute("cm-not-content","true"),ye.lineDiv=Mt("div",null,"CodeMirror-code"),ye.selectionDiv=ut("div",null,null,"position: relative; z-index: 1"),ye.cursorDiv=ut("div",null,"CodeMirror-cursors"),ye.measure=ut("div",null,"CodeMirror-measure"),ye.lineMeasure=ut("div",null,"CodeMirror-measure"),ye.lineSpace=Mt("div",[ye.measure,ye.lineMeasure,ye.selectionDiv,ye.cursorDiv,ye.lineDiv],null,"position: relative; outline: none");var Be=Mt("div",[ye.lineSpace],"CodeMirror-lines");ye.mover=ut("div",[Be],null,"position: relative"),ye.sizer=ut("div",[ye.mover],"CodeMirror-sizer"),ye.sizerWidth=null,ye.heightForcer=ut("div",null,null,"position: absolute; height: "+Bt+"px; width: 1px;"),ye.gutters=ut("div",null,"CodeMirror-gutters"),ye.lineGutter=null,ye.scroller=ut("div",[ye.sizer,ye.heightForcer,ye.gutters],"CodeMirror-scroll"),ye.scroller.setAttribute("tabIndex","-1"),ye.wrapper=ut("div",[ye.scrollbarFiller,ye.gutterFiller,ye.scroller],"CodeMirror"),De&&Ke<8&&(ye.gutters.style.zIndex=-1,ye.scroller.style.paddingRight=0),!Ee&&!(se&&ne)&&(ye.scroller.draggable=!0),ie&&(ie.appendChild?ie.appendChild(ye.wrapper):ie(ye.wrapper)),ye.viewFrom=ye.viewTo=ae.first,ye.reportedViewFrom=ye.reportedViewTo=ae.first,ye.view=[],ye.renderedView=null,ye.externalMeasured=null,ye.viewOffset=0,ye.lastWrapHeight=ye.lastWrapWidth=0,ye.updateLineNumbers=null,ye.nativeBarWidth=ye.barHeight=ye.barWidth=0,ye.scrollbarsClipped=!1,ye.lineNumWidth=ye.lineNumInnerWidth=ye.lineNumChars=null,ye.alignWidgets=!1,ye.cachedCharWidth=ye.cachedTextHeight=ye.cachedPaddingH=null,ye.maxLine=null,ye.maxLineLength=0,ye.maxLineChanged=!1,ye.wheelDX=ye.wheelDY=ye.wheelStartX=ye.wheelStartY=null,ye.shift=!1,ye.selForContextMenu=null,ye.activeTouch=null,ye.gutterSpecs=mo(pe.gutters,pe.lineNumbers),Zo(ye),fe.init(ye)}var vr=0,cr=null;De?cr=-.53:se?cr=15:Je?cr=-.7:tt&&(cr=-1/3);function to(ie){var ae=ie.wheelDeltaX,fe=ie.wheelDeltaY;return ae==null&&ie.detail&&ie.axis==ie.HORIZONTAL_AXIS&&(ae=ie.detail),fe==null&&ie.detail&&ie.axis==ie.VERTICAL_AXIS?fe=ie.detail:fe==null&&(fe=ie.wheelDelta),{x:ae,y:fe}}function Co(ie){var ae=to(ie);return ae.x*=cr,ae.y*=cr,ae}function Ro(ie,ae){var fe=to(ae),pe=fe.x,ye=fe.y,Be=ie.display,Xe=Be.scroller,qe=Xe.scrollWidth>Xe.clientWidth,ot=Xe.scrollHeight>Xe.clientHeight;if(pe&&qe||ye&&ot){if(ye&&ge&&Ee){e:for(var Tt=ae.target,mn=Be.view;Tt!=Xe;Tt=Tt.parentNode)for(var Rt=0;Rt<mn.length;Rt++)if(mn[Rt].node==Tt){ie.display.currentWheelTarget=Tt;break e}}if(pe&&!se&&!Ye&&cr!=null){ye&&ot&&Ac(ie,Math.max(0,Xe.scrollTop+ye*cr)),$u(ie,Math.max(0,Xe.scrollLeft+pe*cr)),(!ye||ye&&ot)&&xi(ae),Be.wheelStartX=null;return}if(ye&&cr!=null){var Qn=ye*cr,_n=ie.doc.scrollTop,pi=_n+Be.wrapper.clientHeight;Qn<0?_n=Math.max(0,_n+Qn-50):pi=Math.min(ie.doc.height,pi+Qn+50),Pr(ie,{top:_n,bottom:pi})}vr<20&&(Be.wheelStartX==null?(Be.wheelStartX=Xe.scrollLeft,Be.wheelStartY=Xe.scrollTop,Be.wheelDX=pe,Be.wheelDY=ye,setTimeout(function(){if(Be.wheelStartX!=null){var Ci=Xe.scrollLeft-Be.wheelStartX,ki=Xe.scrollTop-Be.wheelStartY,ar=ki&&Be.wheelDY&&ki/Be.wheelDY||Ci&&Be.wheelDX&&Ci/Be.wheelDX;Be.wheelStartX=Be.wheelStartY=null,ar&&(cr=(cr*vr+ar)/(vr+1),++vr)}},200)):(Be.wheelDX+=pe,Be.wheelDY+=ye))}}var jo=function(ie,ae){this.ranges=ie,this.primIndex=ae};jo.prototype.primary=function(){return this.ranges[this.primIndex]},jo.prototype.equals=function(ie){if(ie==this)return!0;if(ie.primIndex!=this.primIndex||ie.ranges.length!=this.ranges.length)return!1;for(var ae=0;ae<this.ranges.length;ae++){var fe=this.ranges[ae],pe=ie.ranges[ae];if(!Qt(fe.anchor,pe.anchor)||!Qt(fe.head,pe.head))return!1}return!0},jo.prototype.deepCopy=function(){for(var ie=[],ae=0;ae<this.ranges.length;ae++)ie[ae]=new Or(un(this.ranges[ae].anchor),un(this.ranges[ae].head));return new jo(ie,this.primIndex)},jo.prototype.somethingSelected=function(){for(var ie=0;ie<this.ranges.length;ie++)if(!this.ranges[ie].empty())return!0;return!1},jo.prototype.contains=function(ie,ae){ae||(ae=ie);for(var fe=0;fe<this.ranges.length;fe++){var pe=this.ranges[fe];if(yn(ae,pe.from())>=0&&yn(ie,pe.to())<=0)return fe}return-1};var Or=function(ie,ae){this.anchor=ie,this.head=ae};Or.prototype.from=function(){return gn(this.anchor,this.head)},Or.prototype.to=function(){return wn(this.anchor,this.head)},Or.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Qo(ie,ae,fe){var pe=ie&&ie.options.selectionsMayTouch,ye=ae[fe];ae.sort(function(Qn,_n){return yn(Qn.from(),_n.from())}),fe=gt(ae,ye);for(var Be=1;Be<ae.length;Be++){var Xe=ae[Be],qe=ae[Be-1],ot=yn(qe.to(),Xe.from());if(pe&&!Xe.empty()?ot>0:ot>=0){var Tt=gn(qe.from(),Xe.from()),mn=wn(qe.to(),Xe.to()),Rt=qe.empty()?Xe.from()==Xe.head:qe.from()==qe.head;Be<=fe&&--fe,ae.splice(--Be,2,new Or(Rt?mn:Tt,Rt?Tt:mn))}}return new jo(ae,fe)}function Jo(ie,ae){return new jo([new Or(ie,ae||ie)],0)}function Da(ie){return ie.text?Gt(ie.from.line+ie.text.length-1,jt(ie.text).length+(ie.text.length==1?ie.from.ch:0)):ie.to}function la(ie,ae){if(yn(ie,ae.from)<0)return ie;if(yn(ie,ae.to)<=0)return Da(ae);var fe=ie.line+ae.text.length-(ae.to.line-ae.from.line)-1,pe=ie.ch;return ie.line==ae.to.line&&(pe+=Da(ae).ch-ae.to.ch),Gt(fe,pe)}function Ms(ie,ae){for(var fe=[],pe=0;pe<ie.sel.ranges.length;pe++){var ye=ie.sel.ranges[pe];fe.push(new Or(la(ye.anchor,ae),la(ye.head,ae)))}return Qo(ie.cm,fe,ie.sel.primIndex)}function vs(ie,ae,fe){return ie.line==ae.line?Gt(fe.line,ie.ch-ae.ch+fe.ch):Gt(fe.line+(ie.line-ae.line),ie.ch)}function ea(ie,ae,fe){for(var pe=[],ye=Gt(ie.first,0),Be=ye,Xe=0;Xe<ae.length;Xe++){var qe=ae[Xe],ot=vs(qe.from,ye,Be),Tt=vs(Da(qe),ye,Be);if(ye=qe.to,Be=Tt,fe=="around"){var mn=ie.sel.ranges[Xe],Rt=yn(mn.head,mn.anchor)<0;pe[Xe]=new Or(Rt?Tt:ot,Rt?ot:Tt)}else pe[Xe]=new Or(ot,ot)}return new jo(pe,ie.sel.primIndex)}function No(ie){ie.doc.mode=ln(ie.options,ie.doc.modeOption),Ba(ie)}function Ba(ie){ie.doc.iter(function(ae){ae.stateAfter&&(ae.stateAfter=null),ae.styles&&(ae.styles=null)}),ie.doc.modeFrontier=ie.doc.highlightFrontier=ie.doc.first,bi(ie,100),ie.state.modeGen++,ie.curOp&&za(ie)}function bs(ie,ae){return ae.from.ch==0&&ae.to.ch==0&&jt(ae.text)==""&&(!ie.cm||ie.cm.options.wholeLineUpdateBefore)}function ys(ie,ae,fe,pe){function ye(Nr){return fe?fe[Nr]:null}function Be(Nr,Er,$r){ts(Nr,Er,$r,pe),$i(Nr,"change",Nr,ae)}function Xe(Nr,Er){for(var $r=[],Hn=Nr;Hn<Er;++Hn)$r.push(new Ra(Tt[Hn],ye(Hn),pe));return $r}var qe=ae.from,ot=ae.to,Tt=ae.text,mn=In(ie,qe.line),Rt=In(ie,ot.line),Qn=jt(Tt),_n=ye(Tt.length-1),pi=ot.line-qe.line;if(ae.full)ie.insert(0,Xe(0,Tt.length)),ie.remove(Tt.length,ie.size-Tt.length);else if(bs(ie,ae)){var Ci=Xe(0,Tt.length-1);Be(Rt,Rt.text,_n),pi&&ie.remove(qe.line,pi),Ci.length&&ie.insert(qe.line,Ci)}else if(mn==Rt)if(Tt.length==1)Be(mn,mn.text.slice(0,qe.ch)+Qn+mn.text.slice(ot.ch),_n);else{var ki=Xe(1,Tt.length-1);ki.push(new Ra(Qn+mn.text.slice(ot.ch),_n,pe)),Be(mn,mn.text.slice(0,qe.ch)+Tt[0],ye(0)),ie.insert(qe.line+1,ki)}else if(Tt.length==1)Be(mn,mn.text.slice(0,qe.ch)+Tt[0]+Rt.text.slice(ot.ch),ye(0)),ie.remove(qe.line+1,pi);else{Be(mn,mn.text.slice(0,qe.ch)+Tt[0],ye(0)),Be(Rt,Qn+Rt.text.slice(ot.ch),_n);var ar=Xe(1,Tt.length-1);pi>1&&ie.remove(qe.line+1,pi-1),ie.insert(qe.line+1,ar)}$i(ie,"change",ie,ae)}function qs(ie,ae,fe){function pe(ye,Be,Xe){if(ye.linked)for(var qe=0;qe<ye.linked.length;++qe){var ot=ye.linked[qe];if(ot.doc!=Be){var Tt=Xe&&ot.sharedHist;fe&&!Tt||(ae(ot.doc,Tt),pe(ot.doc,ye,Tt))}}}pe(ie,null,!0)}function _o(ie,ae){if(ae.cm)throw new Error("This document is already in use.");ie.doc=ae,ae.cm=ie,Eo(ie),No(ie),wi(ie),ie.options.lineWrapping||oa(ie),ie.options.mode=ae.modeOption,za(ie)}function wi(ie){(ie.doc.direction=="rtl"?dn:We)(ie.display.lineDiv,"CodeMirror-rtl")}function er(ie){xn(ie,function(){wi(ie),za(ie)})}function qr(ie){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=ie||1}function La(ie,ae){var fe={from:un(ae.from),to:Da(ae),text:zn(ie,ae.from,ae.to)};return ql(ie,fe,ae.from.line,ae.to.line+1),qs(ie,function(pe){return ql(pe,fe,ae.from.line,ae.to.line+1)},!0),fe}function ho(ie){for(;ie.length;){var ae=jt(ie);if(ae.ranges)ie.pop();else break}}function Yo(ie,ae){if(ae)return ho(ie.done),jt(ie.done);if(ie.done.length&&!jt(ie.done).ranges)return jt(ie.done);if(ie.done.length>1&&!ie.done[ie.done.length-2].ranges)return ie.done.pop(),jt(ie.done)}function Sa(ie,ae,fe,pe){var ye=ie.history;ye.undone.length=0;var Be=+new Date,Xe,qe;if((ye.lastOp==pe||ye.lastOrigin==ae.origin&&ae.origin&&(ae.origin.charAt(0)=="+"&&ye.lastModTime>Be-(ie.cm?ie.cm.options.historyEventDelay:500)||ae.origin.charAt(0)=="*"))&&(Xe=Yo(ye,ye.lastOp==pe)))qe=jt(Xe.changes),yn(ae.from,ae.to)==0&&yn(ae.from,qe.to)==0?qe.to=Da(ae):Xe.changes.push(La(ie,ae));else{var ot=jt(ye.done);for((!ot||!ot.ranges)&&al(ie.sel,ye.done),Xe={changes:[La(ie,ae)],generation:ye.generation},ye.done.push(Xe);ye.done.length>ye.undoDepth;)ye.done.shift(),ye.done[0].ranges||ye.done.shift()}ye.done.push(fe),ye.generation=++ye.maxGeneration,ye.lastModTime=ye.lastSelTime=Be,ye.lastOp=ye.lastSelOp=pe,ye.lastOrigin=ye.lastSelOrigin=ae.origin,qe||wt(ie,"historyAdded")}function ja(ie,ae,fe,pe){var ye=ae.charAt(0);return ye=="*"||ye=="+"&&fe.ranges.length==pe.ranges.length&&fe.somethingSelected()==pe.somethingSelected()&&new Date-ie.history.lastSelTime<=(ie.cm?ie.cm.options.historyEventDelay:500)}function xl(ie,ae,fe,pe){var ye=ie.history,Be=pe&&pe.origin;fe==ye.lastSelOp||Be&&ye.lastSelOrigin==Be&&(ye.lastModTime==ye.lastSelTime&&ye.lastOrigin==Be||ja(ie,Be,jt(ye.done),ae))?ye.done[ye.done.length-1]=ae:al(ae,ye.done),ye.lastSelTime=+new Date,ye.lastSelOrigin=Be,ye.lastSelOp=fe,pe&&pe.clearRedo!==!1&&ho(ye.undone)}function al(ie,ae){var fe=jt(ae);fe&&fe.ranges&&fe.equals(ie)||ae.push(ie)}function ql(ie,ae,fe,pe){var ye=ae["spans_"+ie.id],Be=0;ie.iter(Math.max(ie.first,fe),Math.min(ie.first+ie.size,pe),function(Xe){Xe.markedSpans&&((ye||(ye=ae["spans_"+ie.id]={}))[Be]=Xe.markedSpans),++Be})}function Ya(ie){if(!ie)return null;for(var ae,fe=0;fe<ie.length;++fe)ie[fe].marker.explicitlyCleared?ae||(ae=ie.slice(0,fe)):ae&&ae.push(ie[fe]);return ae?ae.length?ae:null:ie}function _l(ie,ae){var fe=ae["spans_"+ie.id];if(!fe)return null;for(var pe=[],ye=0;ye<ae.text.length;++ye)pe.push(Ya(fe[ye]));return pe}function sl(ie,ae){var fe=_l(ie,ae),pe=or(ie,ae);if(!fe)return pe;if(!pe)return fe;for(var ye=0;ye<fe.length;++ye){var Be=fe[ye],Xe=pe[ye];if(Be&&Xe)e:for(var qe=0;qe<Xe.length;++qe){for(var ot=Xe[qe],Tt=0;Tt<Be.length;++Tt)if(Be[Tt].marker==ot.marker)continue e;Be.push(ot)}else Xe&&(fe[ye]=Xe)}return fe}function Ml(ie,ae,fe){for(var pe=[],ye=0;ye<ie.length;++ye){var Be=ie[ye];if(Be.ranges){pe.push(fe?jo.prototype.deepCopy.call(Be):Be);continue}var Xe=Be.changes,qe=[];pe.push({changes:qe});for(var ot=0;ot<Xe.length;++ot){var Tt=Xe[ot],mn=void 0;if(qe.push({from:Tt.from,to:Tt.to,text:Tt.text}),ae)for(var Rt in Tt)(mn=Rt.match(/^spans_(\d+)$/))&&gt(ae,Number(mn[1]))>-1&&(jt(qe)[Rt]=Tt[Rt],delete Tt[Rt])}}return pe}function Hc(ie,ae,fe,pe){if(pe){var ye=ie.anchor;if(fe){var Be=yn(ae,ye)<0;Be!=yn(fe,ye)<0?(ye=ae,ae=fe):Be!=yn(ae,fe)<0&&(ae=fe)}return new Or(ye,ae)}else return new Or(fe||ae,ae)}function Za(ie,ae,fe,pe,ye){ye==null&&(ye=ie.cm&&(ie.cm.display.shift||ie.extend)),ws(ie,new jo([Hc(ie.sel.primary(),ae,fe,ye)],0),pe)}function as(ie,ae,fe){for(var pe=[],ye=ie.cm&&(ie.cm.display.shift||ie.extend),Be=0;Be<ie.sel.ranges.length;Be++)pe[Be]=Hc(ie.sel.ranges[Be],ae[Be],null,ye);var Xe=Qo(ie.cm,pe,ie.sel.primIndex);ws(ie,Xe,fe)}function Ss(ie,ae,fe,pe){var ye=ie.sel.ranges.slice(0);ye[ae]=fe,ws(ie,Qo(ie.cm,ye,ie.sel.primIndex),pe)}function Vs(ie,ae,fe,pe){ws(ie,Jo(ae,fe),pe)}function dl(ie,ae,fe){var pe={ranges:ae.ranges,update:function(ye){this.ranges=[];for(var Be=0;Be<ye.length;Be++)this.ranges[Be]=new Or(Bn(ie,ye[Be].anchor),Bn(ie,ye[Be].head))},origin:fe&&fe.origin};return wt(ie,"beforeSelectionChange",ie,pe),ie.cm&&wt(ie.cm,"beforeSelectionChange",ie.cm,pe),pe.ranges!=ae.ranges?Qo(ie.cm,pe.ranges,pe.ranges.length-1):ae}function xa(ie,ae,fe){var pe=ie.history.done,ye=jt(pe);ye&&ye.ranges?(pe[pe.length-1]=ae,Ll(ie,ae,fe)):ws(ie,ae,fe)}function ws(ie,ae,fe){Ll(ie,ae,fe),xl(ie,ie.sel,ie.cm?ie.cm.curOp.id:NaN,fe)}function Ll(ie,ae,fe){(Zn(ie,"beforeSelectionChange")||ie.cm&&Zn(ie.cm,"beforeSelectionChange"))&&(ae=dl(ie,ae,fe));var pe=fe&&fe.bias||(yn(ae.primary().head,ie.sel.primary().head)<0?-1:1);hl(ie,Iu(ie,ae,pe,!0)),!(fe&&fe.scroll===!1)&&ie.cm&&Ea(ie.cm)}function hl(ie,ae){ae.equals(ie.sel)||(ie.sel=ae,ie.cm&&(ie.cm.curOp.updateInput=1,ie.cm.curOp.selectionChanged=!0,Mn(ie.cm)),$i(ie,"cursorActivity",ie))}function Qu(ie){hl(ie,Iu(ie,ie.sel,null,!1))}function Iu(ie,ae,fe,pe){for(var ye,Be=0;Be<ae.ranges.length;Be++){var Xe=ae.ranges[Be],qe=ae.ranges.length==ie.sel.ranges.length&&ie.sel.ranges[Be],ot=uc(ie,Xe.anchor,qe&&qe.anchor,fe,pe),Tt=uc(ie,Xe.head,qe&&qe.head,fe,pe);(ye||ot!=Xe.anchor||Tt!=Xe.head)&&(ye||(ye=ae.ranges.slice(0,Be)),ye[Be]=new Or(ot,Tt))}return ye?Qo(ie.cm,ye,ae.primIndex):ae}function lc(ie,ae,fe,pe,ye){var Be=In(ie,ae.line);if(Be.markedSpans)for(var Xe=0;Xe<Be.markedSpans.length;++Xe){var qe=Be.markedSpans[Xe],ot=qe.marker,Tt="selectLeft"in ot?!ot.selectLeft:ot.inclusiveLeft,mn="selectRight"in ot?!ot.selectRight:ot.inclusiveRight;if((qe.from==null||(Tt?qe.from<=ae.ch:qe.from<ae.ch))&&(qe.to==null||(mn?qe.to>=ae.ch:qe.to>ae.ch))){if(ye&&(wt(ot,"beforeCursorEnter"),ot.explicitlyCleared))if(Be.markedSpans){--Xe;continue}else break;if(!ot.atomic)continue;if(fe){var Rt=ot.find(pe<0?1:-1),Qn=void 0;if((pe<0?mn:Tt)&&(Rt=Ju(ie,Rt,-pe,Rt&&Rt.line==ae.line?Be:null)),Rt&&Rt.line==ae.line&&(Qn=yn(Rt,fe))&&(pe<0?Qn<0:Qn>0))return lc(ie,Rt,ae,pe,ye)}var _n=ot.find(pe<0?-1:1);return(pe<0?Tt:mn)&&(_n=Ju(ie,_n,pe,_n.line==ae.line?Be:null)),_n?lc(ie,_n,ae,pe,ye):null}}return ae}function uc(ie,ae,fe,pe,ye){var Be=pe||1,Xe=lc(ie,ae,fe,Be,ye)||!ye&&lc(ie,ae,fe,Be,!0)||lc(ie,ae,fe,-Be,ye)||!ye&&lc(ie,ae,fe,-Be,!0);return Xe||(ie.cantEdit=!0,Gt(ie.first,0))}function Ju(ie,ae,fe,pe){return fe<0&&ae.ch==0?ae.line>ie.first?Bn(ie,Gt(ae.line-1)):null:fe>0&&ae.ch==(pe||In(ie,ae.line)).text.length?ae.line<ie.first+ie.size-1?Gt(ae.line+1,0):null:new Gt(ae.line,ae.ch+fe)}function qa(ie){ie.setSelection(Gt(ie.firstLine(),0),Gt(ie.lastLine()),It)}function bl(ie,ae,fe){var pe={canceled:!1,from:ae.from,to:ae.to,text:ae.text,origin:ae.origin,cancel:function(){return pe.canceled=!0}};return fe&&(pe.update=function(ye,Be,Xe,qe){ye&&(pe.from=Bn(ie,ye)),Be&&(pe.to=Bn(ie,Be)),Xe&&(pe.text=Xe),qe!==void 0&&(pe.origin=qe)}),wt(ie,"beforeChange",ie,pe),ie.cm&&wt(ie.cm,"beforeChange",ie.cm,pe),pe.canceled?(ie.cm&&(ie.cm.curOp.updateInput=2),null):{from:pe.from,to:pe.to,text:pe.text,origin:pe.origin}}function Ks(ie,ae,fe){if(ie.cm){if(!ie.cm.curOp)return ri(ie.cm,Ks)(ie,ae,fe);if(ie.cm.state.suppressEdits)return}if(!((Zn(ie,"beforeChange")||ie.cm&&Zn(ie.cm,"beforeChange"))&&(ae=bl(ie,ae,!0),!ae))){var pe=Ir&&!fe&&Gr(ie,ae.from,ae.to);if(pe)for(var ye=pe.length-1;ye>=0;--ye)Es(ie,{from:pe[ye].from,to:pe[ye].to,text:ye?[""]:ae.text,origin:ae.origin});else Es(ie,ae)}}function Es(ie,ae){if(!(ae.text.length==1&&ae.text[0]==""&&yn(ae.from,ae.to)==0)){var fe=Ms(ie,ae);Sa(ie,ae,fe,ie.cm?ie.cm.curOp.id:NaN),cc(ie,ae,fe,or(ie,ae));var pe=[];qs(ie,function(ye,Be){!Be&&gt(pe,ye.history)==-1&&(Cs(ye.history,ae),pe.push(ye.history)),cc(ye,ae,null,or(ye,ae))})}}function fu(ie,ae,fe){var pe=ie.cm&&ie.cm.state.suppressEdits;if(!(pe&&!fe)){for(var ye=ie.history,Be,Xe=ie.sel,qe=ae=="undo"?ye.done:ye.undone,ot=ae=="undo"?ye.undone:ye.done,Tt=0;Tt<qe.length&&(Be=qe[Tt],!(fe?Be.ranges&&!Be.equals(ie.sel):!Be.ranges));Tt++);if(Tt!=qe.length){for(ye.lastOrigin=ye.lastSelOrigin=null;;)if(Be=qe.pop(),Be.ranges){if(al(Be,ot),fe&&!Be.equals(ie.sel)){ws(ie,Be,{clearRedo:!1});return}Xe=Be}else if(pe){qe.push(Be);return}else break;var mn=[];al(Xe,ot),ot.push({changes:mn,generation:ye.generation}),ye.generation=Be.generation||++ye.maxGeneration;for(var Rt=Zn(ie,"beforeChange")||ie.cm&&Zn(ie.cm,"beforeChange"),Qn=function(Ci){var ki=Be.changes[Ci];if(ki.origin=ae,Rt&&!bl(ie,ki,!1))return qe.length=0,{};mn.push(La(ie,ki));var ar=Ci?Ms(ie,ki):jt(qe);cc(ie,ki,ar,sl(ie,ki)),!Ci&&ie.cm&&ie.cm.scrollIntoView({from:ki.from,to:Da(ki)});var Nr=[];qs(ie,function(Er,$r){!$r&&gt(Nr,Er.history)==-1&&(Cs(Er.history,ki),Nr.push(Er.history)),cc(Er,ki,null,sl(Er,ki))})},_n=Be.changes.length-1;_n>=0;--_n){var pi=Qn(_n);if(pi)return pi.v}}}}function id(ie,ae){if(ae!=0&&(ie.first+=ae,ie.sel=new jo(Nn(ie.sel.ranges,function(ye){return new Or(Gt(ye.anchor.line+ae,ye.anchor.ch),Gt(ye.head.line+ae,ye.head.ch))}),ie.sel.primIndex),ie.cm)){za(ie.cm,ie.first,ie.first-ae,ae);for(var fe=ie.cm.display,pe=fe.viewFrom;pe<fe.viewTo;pe++)qo(ie.cm,pe,"gutter")}}function cc(ie,ae,fe,pe){if(ie.cm&&!ie.cm.curOp)return ri(ie.cm,cc)(ie,ae,fe,pe);if(ae.to.line<ie.first){id(ie,ae.text.length-1-(ae.to.line-ae.from.line));return}if(!(ae.from.line>ie.lastLine())){if(ae.from.line<ie.first){var ye=ae.text.length-1-(ie.first-ae.from.line);id(ie,ye),ae={from:Gt(ie.first,0),to:Gt(ae.to.line+ye,ae.to.ch),text:[jt(ae.text)],origin:ae.origin}}var Be=ie.lastLine();ae.to.line>Be&&(ae={from:ae.from,to:Gt(Be,In(ie,Be).text.length),text:[ae.text[0]],origin:ae.origin}),ae.removed=zn(ie,ae.from,ae.to),fe||(fe=Ms(ie,ae)),ie.cm?dc(ie.cm,ae,pe):ys(ie,ae,pe),Ll(ie,fe,It),ie.cantEdit&&uc(ie,Gt(ie.firstLine(),0))&&(ie.cantEdit=!1)}}function dc(ie,ae,fe){var pe=ie.doc,ye=ie.display,Be=ae.from,Xe=ae.to,qe=!1,ot=Be.line;ie.options.lineWrapping||(ot=bt(ao(In(pe,Be.line))),pe.iter(ot,Xe.line+1,function(_n){if(_n==ye.maxLine)return qe=!0,!0})),pe.sel.contains(ae.from,ae.to)>-1&&Mn(ie),ys(pe,ae,fe,rs(ie)),ie.options.lineWrapping||(pe.iter(ot,Be.line+ae.text.length,function(_n){var pi=ca(_n);pi>ye.maxLineLength&&(ye.maxLine=_n,ye.maxLineLength=pi,ye.maxLineChanged=!0,qe=!1)}),qe&&(ie.curOp.updateMaxLine=!0)),Hi(pe,Be.line),bi(ie,400);var Tt=ae.text.length-(Xe.line-Be.line)-1;ae.full?za(ie):Be.line==Xe.line&&ae.text.length==1&&!bs(ie.doc,ae)?qo(ie,Be.line,"text"):za(ie,Be.line,Xe.line+1,Tt);var mn=Zn(ie,"changes"),Rt=Zn(ie,"change");if(Rt||mn){var Qn={from:Be,to:Xe,text:ae.text,removed:ae.removed,origin:ae.origin};Rt&&$i(ie,"change",ie,Qn),mn&&(ie.curOp.changeObjs||(ie.curOp.changeObjs=[])).push(Qn)}ie.display.selForContextMenu=null}function Mc(ie,ae,fe,pe,ye){var Be;pe||(pe=fe),yn(pe,fe)<0&&(Be=[pe,fe],fe=Be[0],pe=Be[1]),typeof ae=="string"&&(ae=ie.splitLines(ae)),Ks(ie,{from:fe,to:pe,text:ae,origin:ye})}function ou(ie,ae,fe,pe){fe<ie.line?ie.line+=pe:ae<ie.line&&(ie.line=ae,ie.ch=0)}function Ua(ie,ae,fe,pe){for(var ye=0;ye<ie.length;++ye){var Be=ie[ye],Xe=!0;if(Be.ranges){Be.copied||(Be=ie[ye]=Be.deepCopy(),Be.copied=!0);for(var qe=0;qe<Be.ranges.length;qe++)ou(Be.ranges[qe].anchor,ae,fe,pe),ou(Be.ranges[qe].head,ae,fe,pe);continue}for(var ot=0;ot<Be.changes.length;++ot){var Tt=Be.changes[ot];if(fe<Tt.from.line)Tt.from=Gt(Tt.from.line+pe,Tt.from.ch),Tt.to=Gt(Tt.to.line+pe,Tt.to.ch);else if(ae<=Tt.to.line){Xe=!1;break}}Xe||(ie.splice(0,ye+1),ye=0)}}function Cs(ie,ae){var fe=ae.from.line,pe=ae.to.line,ye=ae.text.length-(pe-fe)-1;Ua(ie.done,fe,pe,ye),Ua(ie.undone,fe,pe,ye)}function wl(ie,ae,fe,pe){var ye=ae,Be=ae;return typeof ae=="number"?Be=In(ie,kn(ie,ae)):ye=bt(ae),ye==null?null:(pe(Be,ye)&&ie.cm&&qo(ie.cm,ye,fe),Be)}function Ls(ie){this.lines=ie,this.parent=null;for(var ae=0,fe=0;fe<ie.length;++fe)ie[fe].parent=this,ae+=ie[fe].height;this.height=ae}Ls.prototype={chunkSize:function(){return this.lines.length},removeInner:function(ie,ae){for(var fe=ie,pe=ie+ae;fe<pe;++fe){var ye=this.lines[fe];this.height-=ye.height,ds(ye),$i(ye,"delete")}this.lines.splice(ie,ae)},collapse:function(ie){ie.push.apply(ie,this.lines)},insertInner:function(ie,ae,fe){this.height+=fe,this.lines=this.lines.slice(0,ie).concat(ae).concat(this.lines.slice(ie));for(var pe=0;pe<ae.length;++pe)ae[pe].parent=this},iterN:function(ie,ae,fe){for(var pe=ie+ae;ie<pe;++ie)if(fe(this.lines[ie]))return!0}};function _a(ie){this.children=ie;for(var ae=0,fe=0,pe=0;pe<ie.length;++pe){var ye=ie[pe];ae+=ye.chunkSize(),fe+=ye.height,ye.parent=this}this.size=ae,this.height=fe,this.parent=null}_a.prototype={chunkSize:function(){return this.size},removeInner:function(ie,ae){this.size-=ae;for(var fe=0;fe<this.children.length;++fe){var pe=this.children[fe],ye=pe.chunkSize();if(ie<ye){var Be=Math.min(ae,ye-ie),Xe=pe.height;if(pe.removeInner(ie,Be),this.height-=Xe-pe.height,ye==Be&&(this.children.splice(fe--,1),pe.parent=null),(ae-=Be)==0)break;ie=0}else ie-=ye}if(this.size-ae<25&&(this.children.length>1||!(this.children[0]instanceof Ls))){var qe=[];this.collapse(qe),this.children=[new Ls(qe)],this.children[0].parent=this}},collapse:function(ie){for(var ae=0;ae<this.children.length;++ae)this.children[ae].collapse(ie)},insertInner:function(ie,ae,fe){this.size+=ae.length,this.height+=fe;for(var pe=0;pe<this.children.length;++pe){var ye=this.children[pe],Be=ye.chunkSize();if(ie<=Be){if(ye.insertInner(ie,ae,fe),ye.lines&&ye.lines.length>50){for(var Xe=ye.lines.length%25+25,qe=Xe;qe<ye.lines.length;){var ot=new Ls(ye.lines.slice(qe,qe+=25));ye.height-=ot.height,this.children.splice(++pe,0,ot),ot.parent=this}ye.lines=ye.lines.slice(0,Xe),this.maybeSpill()}break}ie-=Be}},maybeSpill:function(){if(!(this.children.length<=10)){var ie=this;do{var ae=ie.children.splice(ie.children.length-5,5),fe=new _a(ae);if(ie.parent){ie.size-=fe.size,ie.height-=fe.height;var ye=gt(ie.parent.children,ie);ie.parent.children.splice(ye+1,0,fe)}else{var pe=new _a(ie.children);pe.parent=ie,ie.children=[pe,fe],ie=pe}fe.parent=ie.parent}while(ie.children.length>10);ie.parent.maybeSpill()}},iterN:function(ie,ae,fe){for(var pe=0;pe<this.children.length;++pe){var ye=this.children[pe],Be=ye.chunkSize();if(ie<Be){var Xe=Math.min(ae,Be-ie);if(ye.iterN(ie,Xe,fe))return!0;if((ae-=Xe)==0)break;ie=0}else ie-=Be}}};var gl=function(ie,ae,fe){if(fe)for(var pe in fe)fe.hasOwnProperty(pe)&&(this[pe]=fe[pe]);this.doc=ie,this.node=ae};gl.prototype.clear=function(){var ie=this.doc.cm,ae=this.line.widgets,fe=this.line,pe=bt(fe);if(!(pe==null||!ae)){for(var ye=0;ye<ae.length;++ye)ae[ye]==this&&ae.splice(ye--,1);ae.length||(fe.widgets=null);var Be=Wl(this);Rn(fe,Math.max(0,fe.height-Be)),ie&&(xn(ie,function(){pu(ie,fe,-Be),qo(ie,pe,"widget")}),$i(ie,"lineWidgetCleared",ie,this,pe))}},gl.prototype.changed=function(){var ie=this,ae=this.height,fe=this.doc.cm,pe=this.line;this.height=null;var ye=Wl(this)-ae;ye&&(fi(this.doc,pe)||Rn(pe,pe.height+ye),fe&&xn(fe,function(){fe.curOp.forceUpdate=!0,pu(fe,pe,ye),$i(fe,"lineWidgetChanged",fe,ie,bt(pe))}))},li(gl);function pu(ie,ae,fe){ua(ae)<(ie.curOp&&ie.curOp.scrollTop||ie.doc.scrollTop)&&zl(ie,fe)}function qu(ie,ae,fe,pe){var ye=new gl(ie,fe,pe),Be=ie.cm;return Be&&ye.noHScroll&&(Be.display.alignWidgets=!0),wl(ie,ae,"widget",function(Xe){var qe=Xe.widgets||(Xe.widgets=[]);if(ye.insertAt==null?qe.push(ye):qe.splice(Math.min(qe.length-1,Math.max(0,ye.insertAt)),0,ye),ye.line=Xe,Be&&!fi(ie,Xe)){var ot=ua(Xe)<ie.scrollTop;Rn(Xe,Xe.height+Wl(ye)),ot&&zl(Be,ye.height),Be.curOp.forceUpdate=!0}return!0}),Be&&$i(Be,"lineWidgetAdded",Be,ye,typeof ae=="number"?ae:bt(ae)),ye}var sh=0,pn=function(ie,ae){this.lines=[],this.type=ae,this.doc=ie,this.id=++sh};pn.prototype.clear=function(){if(!this.explicitlyCleared){var ie=this.doc.cm,ae=ie&&!ie.curOp;if(ae&&Ul(ie),Zn(this,"clear")){var fe=this.find();fe&&$i(this,"clear",fe.from,fe.to)}for(var pe=null,ye=null,Be=0;Be<this.lines.length;++Be){var Xe=this.lines[Be],qe=Go(Xe.markedSpans,this);ie&&!this.collapsed?qo(ie,bt(Xe),"text"):ie&&(qe.to!=null&&(ye=bt(Xe)),qe.from!=null&&(pe=bt(Xe))),Xe.markedSpans=Dr(Xe.markedSpans,qe),qe.from==null&&this.collapsed&&!fi(this.doc,Xe)&&ie&&Rn(Xe,Os(ie.display))}if(ie&&this.collapsed&&!ie.options.lineWrapping)for(var ot=0;ot<this.lines.length;++ot){var Tt=ao(this.lines[ot]),mn=ca(Tt);mn>ie.display.maxLineLength&&(ie.display.maxLine=Tt,ie.display.maxLineLength=mn,ie.display.maxLineChanged=!0)}pe!=null&&ie&&this.collapsed&&za(ie,pe,ye+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,ie&&Qu(ie.doc)),ie&&$i(ie,"markerCleared",ie,this,pe,ye),ae&&Tu(ie),this.parent&&this.parent.clear()}},pn.prototype.find=function(ie,ae){ie==null&&this.type=="bookmark"&&(ie=1);for(var fe,pe,ye=0;ye<this.lines.length;++ye){var Be=this.lines[ye],Xe=Go(Be.markedSpans,this);if(Xe.from!=null&&(fe=Gt(ae?Be:bt(Be),Xe.from),ie==-1))return fe;if(Xe.to!=null&&(pe=Gt(ae?Be:bt(Be),Xe.to),ie==1))return pe}return fe&&{from:fe,to:pe}},pn.prototype.changed=function(){var ie=this,ae=this.find(-1,!0),fe=this,pe=this.doc.cm;!ae||!pe||xn(pe,function(){var ye=ae.line,Be=bt(ae.line),Xe=Xn(pe,Be);if(Xe&&(jr(Xe),pe.curOp.selectionChanged=pe.curOp.forceUpdate=!0),pe.curOp.updateMaxLine=!0,!fi(fe.doc,ye)&&fe.height!=null){var qe=fe.height;fe.height=null;var ot=Wl(fe)-qe;ot&&Rn(ye,ye.height+ot)}$i(pe,"markerChanged",pe,ie)})},pn.prototype.attachLine=function(ie){if(!this.lines.length&&this.doc.cm){var ae=this.doc.cm.curOp;(!ae.maybeHiddenMarkers||gt(ae.maybeHiddenMarkers,this)==-1)&&(ae.maybeUnhiddenMarkers||(ae.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(ie)},pn.prototype.detachLine=function(ie){if(this.lines.splice(gt(this.lines,ie),1),!this.lines.length&&this.doc.cm){var ae=this.doc.cm.curOp;(ae.maybeHiddenMarkers||(ae.maybeHiddenMarkers=[])).push(this)}},li(pn);function rd(ie,ae,fe,pe,ye){if(pe&&pe.shared)return _d(ie,ae,fe,pe,ye);if(ie.cm&&!ie.cm.curOp)return ri(ie.cm,rd)(ie,ae,fe,pe,ye);var Be=new pn(ie,ye),Xe=yn(ae,fe);if(pe&&an(pe,Be,!1),Xe>0||Xe==0&&Be.clearWhenEmpty!==!1)return Be;if(Be.replacedWith&&(Be.collapsed=!0,Be.widgetNode=Mt("span",[Be.replacedWith],"CodeMirror-widget"),pe.handleMouseEvents||Be.widgetNode.setAttribute("cm-ignore-events","true"),pe.insertLeft&&(Be.widgetNode.insertLeft=!0)),Be.collapsed){if(Uo(ie,ae.line,ae,fe,Be)||ae.line!=fe.line&&Uo(ie,fe.line,ae,fe,Be))throw new Error("Inserting collapsed marker partially overlapping an existing one");Fn()}Be.addToHistory&&Sa(ie,{from:ae,to:fe,origin:"markText"},ie.sel,NaN);var qe=ae.line,ot=ie.cm,Tt;if(ie.iter(qe,fe.line+1,function(Rt){ot&&Be.collapsed&&!ot.options.lineWrapping&&ao(Rt)==ot.display.maxLine&&(Tt=!0),Be.collapsed&&qe!=ae.line&&Rn(Rt,0),po(Rt,new kr(Be,qe==ae.line?ae.ch:null,qe==fe.line?fe.ch:null)),++qe}),Be.collapsed&&ie.iter(ae.line,fe.line+1,function(Rt){fi(ie,Rt)&&Rn(Rt,0)}),Be.clearOnEnter&&xt(Be,"beforeCursorEnter",function(){return Be.clear()}),Be.readOnly&&(Kr(),(ie.history.done.length||ie.history.undone.length)&&ie.clearHistory()),Be.collapsed&&(Be.id=++sh,Be.atomic=!0),ot){if(Tt&&(ot.curOp.updateMaxLine=!0),Be.collapsed)za(ot,ae.line,fe.line+1);else if(Be.className||Be.startStyle||Be.endStyle||Be.css||Be.attributes||Be.title)for(var mn=ae.line;mn<=fe.line;mn++)qo(ot,mn,"text");Be.atomic&&Qu(ot.doc),$i(ot,"markerAdded",ot,Be)}return Be}var Lc=function(ie,ae){this.markers=ie,this.primary=ae;for(var fe=0;fe<ie.length;++fe)ie[fe].parent=this};Lc.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var ie=0;ie<this.markers.length;++ie)this.markers[ie].clear();$i(this,"clear")}},Lc.prototype.find=function(ie,ae){return this.primary.find(ie,ae)},li(Lc);function _d(ie,ae,fe,pe,ye){pe=an(pe),pe.shared=!1;var Be=[rd(ie,ae,fe,pe,ye)],Xe=Be[0],qe=pe.widgetNode;return qs(ie,function(ot){qe&&(pe.widgetNode=qe.cloneNode(!0)),Be.push(rd(ot,Bn(ot,ae),Bn(ot,fe),pe,ye));for(var Tt=0;Tt<ot.linked.length;++Tt)if(ot.linked[Tt].isParent)return;Xe=jt(Be)}),new Lc(Be,Xe)}function Gd(ie){return ie.findMarks(Gt(ie.first,0),ie.clipPos(Gt(ie.lastLine())),function(ae){return ae.parent})}function kd(ie,ae){for(var fe=0;fe<ae.length;fe++){var pe=ae[fe],ye=pe.find(),Be=ie.clipPos(ye.from),Xe=ie.clipPos(ye.to);if(yn(Be,Xe)){var qe=rd(ie,Be,Xe,pe.primary,pe.primary.type);pe.markers.push(qe),qe.parent=pe}}}function Lh(ie){for(var ae=function(pe){var ye=ie[pe],Be=[ye.primary.doc];qs(ye.primary.doc,function(ot){return Be.push(ot)});for(var Xe=0;Xe<ye.markers.length;Xe++){var qe=ye.markers[Xe];gt(Be,qe.doc)==-1&&(qe.parent=null,ye.markers.splice(Xe--,1))}},fe=0;fe<ie.length;fe++)ae(fe)}var cf=0,Gl=function(ie,ae,fe,pe,ye){if(!(this instanceof Gl))return new Gl(ie,ae,fe,pe,ye);fe==null&&(fe=0),_a.call(this,[new Ls([new Ra("",null)])]),this.first=fe,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=fe;var Be=Gt(fe,0);this.sel=Jo(Be),this.history=new qr(null),this.id=++cf,this.modeOption=ae,this.lineSep=pe,this.direction=ye=="rtl"?"rtl":"ltr",this.extend=!1,typeof ie=="string"&&(ie=this.splitLines(ie)),ys(this,{from:Be,to:Be,text:ie}),ws(this,Jo(Be),It)};Gl.prototype=Sn(_a.prototype,{constructor:Gl,iter:function(ie,ae,fe){fe?this.iterN(ie-this.first,ae-ie,fe):this.iterN(this.first,this.first+this.size,ie)},insert:function(ie,ae){for(var fe=0,pe=0;pe<ae.length;++pe)fe+=ae[pe].height;this.insertInner(ie-this.first,ae,fe)},remove:function(ie,ae){this.removeInner(ie-this.first,ae)},getValue:function(ie){var ae=mi(this,this.first,this.first+this.size);return ie===!1?ae:ae.join(ie||this.lineSeparator())},setValue:qn(function(ie){var ae=Gt(this.first,0),fe=this.first+this.size-1;Ks(this,{from:ae,to:Gt(fe,In(this,fe).text.length),text:this.splitLines(ie),origin:"setValue",full:!0},!0),this.cm&&zs(this.cm,0,0),ws(this,Jo(ae),It)}),replaceRange:function(ie,ae,fe,pe){ae=Bn(this,ae),fe=fe?Bn(this,fe):ae,Mc(this,ie,ae,fe,pe)},getRange:function(ie,ae,fe){var pe=zn(this,Bn(this,ie),Bn(this,ae));return fe===!1?pe:pe.join(fe||this.lineSeparator())},getLine:function(ie){var ae=this.getLineHandle(ie);return ae&&ae.text},getLineHandle:function(ie){if(Ln(this,ie))return In(this,ie)},getLineNumber:function(ie){return bt(ie)},getLineHandleVisualStart:function(ie){return typeof ie=="number"&&(ie=In(this,ie)),ao(ie)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(ie){return Bn(this,ie)},getCursor:function(ie){var ae=this.sel.primary(),fe;return ie==null||ie=="head"?fe=ae.head:ie=="anchor"?fe=ae.anchor:ie=="end"||ie=="to"||ie===!1?fe=ae.to():fe=ae.from(),fe},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:qn(function(ie,ae,fe){Vs(this,Bn(this,typeof ie=="number"?Gt(ie,ae||0):ie),null,fe)}),setSelection:qn(function(ie,ae,fe){Vs(this,Bn(this,ie),Bn(this,ae||ie),fe)}),extendSelection:qn(function(ie,ae,fe){Za(this,Bn(this,ie),ae&&Bn(this,ae),fe)}),extendSelections:qn(function(ie,ae){as(this,Jn(this,ie),ae)}),extendSelectionsBy:qn(function(ie,ae){var fe=Nn(this.sel.ranges,ie);as(this,Jn(this,fe),ae)}),setSelections:qn(function(ie,ae,fe){if(ie.length){for(var pe=[],ye=0;ye<ie.length;ye++)pe[ye]=new Or(Bn(this,ie[ye].anchor),Bn(this,ie[ye].head));ae==null&&(ae=Math.min(ie.length-1,this.sel.primIndex)),ws(this,Qo(this.cm,pe,ae),fe)}}),addSelection:qn(function(ie,ae,fe){var pe=this.sel.ranges.slice(0);pe.push(new Or(Bn(this,ie),Bn(this,ae||ie))),ws(this,Qo(this.cm,pe,pe.length-1),fe)}),getSelection:function(ie){for(var ae=this.sel.ranges,fe,pe=0;pe<ae.length;pe++){var ye=zn(this,ae[pe].from(),ae[pe].to());fe=fe?fe.concat(ye):ye}return ie===!1?fe:fe.join(ie||this.lineSeparator())},getSelections:function(ie){for(var ae=[],fe=this.sel.ranges,pe=0;pe<fe.length;pe++){var ye=zn(this,fe[pe].from(),fe[pe].to());ie!==!1&&(ye=ye.join(ie||this.lineSeparator())),ae[pe]=ye}return ae},replaceSelection:function(ie,ae,fe){for(var pe=[],ye=0;ye<this.sel.ranges.length;ye++)pe[ye]=ie;this.replaceSelections(pe,ae,fe||"+input")},replaceSelections:qn(function(ie,ae,fe){for(var pe=[],ye=this.sel,Be=0;Be<ye.ranges.length;Be++){var Xe=ye.ranges[Be];pe[Be]={from:Xe.from(),to:Xe.to(),text:this.splitLines(ie[Be]),origin:fe}}for(var qe=ae&&ae!="end"&&ea(this,pe,ae),ot=pe.length-1;ot>=0;ot--)Ks(this,pe[ot]);qe?xa(this,qe):this.cm&&Ea(this.cm)}),undo:qn(function(){fu(this,"undo")}),redo:qn(function(){fu(this,"redo")}),undoSelection:qn(function(){fu(this,"undo",!0)}),redoSelection:qn(function(){fu(this,"redo",!0)}),setExtending:function(ie){this.extend=ie},getExtending:function(){return this.extend},historySize:function(){for(var ie=this.history,ae=0,fe=0,pe=0;pe<ie.done.length;pe++)ie.done[pe].ranges||++ae;for(var ye=0;ye<ie.undone.length;ye++)ie.undone[ye].ranges||++fe;return{undo:ae,redo:fe}},clearHistory:function(){var ie=this;this.history=new qr(this.history.maxGeneration),qs(this,function(ae){return ae.history=ie.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(ie){return ie&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(ie){return this.history.generation==(ie||this.cleanGeneration)},getHistory:function(){return{done:Ml(this.history.done),undone:Ml(this.history.undone)}},setHistory:function(ie){var ae=this.history=new qr(this.history.maxGeneration);ae.done=Ml(ie.done.slice(0),null,!0),ae.undone=Ml(ie.undone.slice(0),null,!0)},setGutterMarker:qn(function(ie,ae,fe){return wl(this,ie,"gutter",function(pe){var ye=pe.gutterMarkers||(pe.gutterMarkers={});return ye[ae]=fe,!fe&&rt(ye)&&(pe.gutterMarkers=null),!0})}),clearGutter:qn(function(ie){var ae=this;this.iter(function(fe){fe.gutterMarkers&&fe.gutterMarkers[ie]&&wl(ae,fe,"gutter",function(){return fe.gutterMarkers[ie]=null,rt(fe.gutterMarkers)&&(fe.gutterMarkers=null),!0})})}),lineInfo:function(ie){var ae;if(typeof ie=="number"){if(!Ln(this,ie)||(ae=ie,ie=In(this,ie),!ie))return null}else if(ae=bt(ie),ae==null)return null;return{line:ae,handle:ie,text:ie.text,gutterMarkers:ie.gutterMarkers,textClass:ie.textClass,bgClass:ie.bgClass,wrapClass:ie.wrapClass,widgets:ie.widgets}},addLineClass:qn(function(ie,ae,fe){return wl(this,ie,ae=="gutter"?"gutter":"class",function(pe){var ye=ae=="text"?"textClass":ae=="background"?"bgClass":ae=="gutter"?"gutterClass":"wrapClass";if(!pe[ye])pe[ye]=fe;else{if(Te(fe).test(pe[ye]))return!1;pe[ye]+=" "+fe}return!0})}),removeLineClass:qn(function(ie,ae,fe){return wl(this,ie,ae=="gutter"?"gutter":"class",function(pe){var ye=ae=="text"?"textClass":ae=="background"?"bgClass":ae=="gutter"?"gutterClass":"wrapClass",Be=pe[ye];if(Be)if(fe==null)pe[ye]=null;else{var Xe=Be.match(Te(fe));if(!Xe)return!1;var qe=Xe.index+Xe[0].length;pe[ye]=Be.slice(0,Xe.index)+(!Xe.index||qe==Be.length?"":" ")+Be.slice(qe)||null}else return!1;return!0})}),addLineWidget:qn(function(ie,ae,fe){return qu(this,ie,ae,fe)}),removeLineWidget:function(ie){ie.clear()},markText:function(ie,ae,fe){return rd(this,Bn(this,ie),Bn(this,ae),fe,fe&&fe.type||"range")},setBookmark:function(ie,ae){var fe={replacedWith:ae&&(ae.nodeType==null?ae.widget:ae),insertLeft:ae&&ae.insertLeft,clearWhenEmpty:!1,shared:ae&&ae.shared,handleMouseEvents:ae&&ae.handleMouseEvents};return ie=Bn(this,ie),rd(this,ie,ie,fe,"bookmark")},findMarksAt:function(ie){ie=Bn(this,ie);var ae=[],fe=In(this,ie.line).markedSpans;if(fe)for(var pe=0;pe<fe.length;++pe){var ye=fe[pe];(ye.from==null||ye.from<=ie.ch)&&(ye.to==null||ye.to>=ie.ch)&&ae.push(ye.marker.parent||ye.marker)}return ae},findMarks:function(ie,ae,fe){ie=Bn(this,ie),ae=Bn(this,ae);var pe=[],ye=ie.line;return this.iter(ie.line,ae.line+1,function(Be){var Xe=Be.markedSpans;if(Xe)for(var qe=0;qe<Xe.length;qe++){var ot=Xe[qe];!(ot.to!=null&&ye==ie.line&&ie.ch>=ot.to||ot.from==null&&ye!=ie.line||ot.from!=null&&ye==ae.line&&ot.from>=ae.ch)&&(!fe||fe(ot.marker))&&pe.push(ot.marker.parent||ot.marker)}++ye}),pe},getAllMarks:function(){var ie=[];return this.iter(function(ae){var fe=ae.markedSpans;if(fe)for(var pe=0;pe<fe.length;++pe)fe[pe].from!=null&&ie.push(fe[pe].marker)}),ie},posFromIndex:function(ie){var ae,fe=this.first,pe=this.lineSeparator().length;return this.iter(function(ye){var Be=ye.text.length+pe;if(Be>ie)return ae=ie,!0;ie-=Be,++fe}),Bn(this,Gt(fe,ae))},indexFromPos:function(ie){ie=Bn(this,ie);var ae=ie.ch;if(ie.line<this.first||ie.ch<0)return 0;var fe=this.lineSeparator().length;return this.iter(this.first,ie.line,function(pe){ae+=pe.text.length+fe}),ae},copy:function(ie){var ae=new Gl(mi(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return ae.scrollTop=this.scrollTop,ae.scrollLeft=this.scrollLeft,ae.sel=this.sel,ae.extend=!1,ie&&(ae.history.undoDepth=this.history.undoDepth,ae.setHistory(this.getHistory())),ae},linkedDoc:function(ie){ie||(ie={});var ae=this.first,fe=this.first+this.size;ie.from!=null&&ie.from>ae&&(ae=ie.from),ie.to!=null&&ie.to<fe&&(fe=ie.to);var pe=new Gl(mi(this,ae,fe),ie.mode||this.modeOption,ae,this.lineSep,this.direction);return ie.sharedHist&&(pe.history=this.history),(this.linked||(this.linked=[])).push({doc:pe,sharedHist:ie.sharedHist}),pe.linked=[{doc:this,isParent:!0,sharedHist:ie.sharedHist}],kd(pe,Gd(this)),pe},unlinkDoc:function(ie){if(ie instanceof ls&&(ie=ie.doc),this.linked)for(var ae=0;ae<this.linked.length;++ae){var fe=this.linked[ae];if(fe.doc==ie){this.linked.splice(ae,1),ie.unlinkDoc(this),Lh(Gd(this));break}}if(ie.history==this.history){var pe=[ie.id];qs(ie,function(ye){return pe.push(ye.id)},!0),ie.history=new qr(null),ie.history.done=Ml(this.history.done,pe),ie.history.undone=Ml(this.history.undone,pe)}},iterLinkedDocs:function(ie){qs(this,ie)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(ie){return this.lineSep?ie.split(this.lineSep):Yi(ie)},lineSeparator:function(){return this.lineSep||`
`},setDirection:qn(function(ie){ie!="rtl"&&(ie="ltr"),ie!=this.direction&&(this.direction=ie,this.iter(function(ae){return ae.order=null}),this.cm&&er(this.cm))})}),Gl.prototype.eachLine=Gl.prototype.iter;var Hd=0;function Th(ie){var ae=this;if(Og(ae),!(nn(ae,ie)||$l(ae.display,ie))){xi(ie),De&&(Hd=+new Date);var fe=Fa(ae,ie,!0),pe=ie.dataTransfer.files;if(!(!fe||ae.isReadOnly()))if(pe&&pe.length&&window.FileReader&&window.File)for(var ye=pe.length,Be=Array(ye),Xe=0,qe=function(){++Xe==ye&&ri(ae,function(){fe=Bn(ae.doc,fe);var _n={from:fe,to:fe,text:ae.doc.splitLines(Be.filter(function(pi){return pi!=null}).join(ae.doc.lineSeparator())),origin:"paste"};Ks(ae.doc,_n),xa(ae.doc,Jo(Bn(ae.doc,fe),Bn(ae.doc,Da(_n))))})()},ot=function(_n,pi){if(ae.options.allowDropFileTypes&&gt(ae.options.allowDropFileTypes,_n.type)==-1){qe();return}var Ci=new FileReader;Ci.onerror=function(){return qe()},Ci.onload=function(){var ki=Ci.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ki)){qe();return}Be[pi]=ki,qe()},Ci.readAsText(_n)},Tt=0;Tt<pe.length;Tt++)ot(pe[Tt],Tt);else{if(ae.state.draggingText&&ae.doc.sel.contains(fe)>-1){ae.state.draggingText(ie),setTimeout(function(){return ae.display.input.focus()},20);return}try{var mn=ie.dataTransfer.getData("Text");if(mn){var Rt;if(ae.state.draggingText&&!ae.state.draggingText.copy&&(Rt=ae.listSelections()),Ll(ae.doc,Jo(fe,fe)),Rt)for(var Qn=0;Qn<Rt.length;++Qn)Mc(ae.doc,"",Rt[Qn].anchor,Rt[Qn].head,"drag");ae.replaceSelection(mn,"around","paste"),ae.display.input.focus()}}catch(_n){}}}}function lh(ie,ae){if(De&&(!ie.state.draggingText||+new Date-Hd<100)){Ri(ae);return}if(!(nn(ie,ae)||$l(ie.display,ae))&&(ae.dataTransfer.setData("Text",ie.getSelection()),ae.dataTransfer.effectAllowed="copyMove",ae.dataTransfer.setDragImage&&!tt)){var fe=ut("img",null,null,"position: fixed; left: 0; top: 0;");fe.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Ye&&(fe.width=fe.height=1,ie.display.wrapper.appendChild(fe),fe._top=fe.offsetTop),ae.dataTransfer.setDragImage(fe,0,0),Ye&&fe.parentNode.removeChild(fe)}}function rg(ie,ae){var fe=Fa(ie,ae);if(fe){var pe=document.createDocumentFragment();Xo(ie,fe,pe),ie.display.dragCursor||(ie.display.dragCursor=ut("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),ie.display.lineSpace.insertBefore(ie.display.dragCursor,ie.display.cursorDiv)),st(ie.display.dragCursor,pe)}}function Og(ie){ie.display.dragCursor&&(ie.display.lineSpace.removeChild(ie.display.dragCursor),ie.display.dragCursor=null)}function og(ie){if(document.getElementsByClassName){for(var ae=document.getElementsByClassName("CodeMirror"),fe=[],pe=0;pe<ae.length;pe++){var ye=ae[pe].CodeMirror;ye&&fe.push(ye)}fe.length&&fe[0].operation(function(){for(var Be=0;Be<fe.length;Be++)ie(fe[Be])})}}var Wd=!1;function ku(){Wd||(Zd(),Wd=!0)}function Zd(){var ie;xt(window,"resize",function(){ie==null&&(ie=setTimeout(function(){ie=null,og(Ih)},100))}),xt(window,"blur",function(){return og(Ku)})}function Ih(ie){var ae=ie.display;ae.cachedCharWidth=ae.cachedTextHeight=ae.cachedPaddingH=null,ae.scrollbarsClipped=!1,ie.setSize()}for(var mu={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"},vd=0;vd<10;vd++)mu[vd+48]=mu[vd+96]=String(vd);for(var yd=65;yd<=90;yd++)mu[yd]=String.fromCharCode(yd);for(var Dd=1;Dd<=12;Dd++)mu[Dd+111]=mu[Dd+63235]="F"+Dd;var vu={};vu.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"},vu.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"},vu.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"},vu.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"]},vu.default=ge?vu.macDefault:vu.pcDefault;function uh(ie){var ae=ie.split(/-(?!$)/);ie=ae[ae.length-1];for(var fe,pe,ye,Be,Xe=0;Xe<ae.length-1;Xe++){var qe=ae[Xe];if(/^(cmd|meta|m)$/i.test(qe))Be=!0;else if(/^a(lt)?$/i.test(qe))fe=!0;else if(/^(c|ctrl|control)$/i.test(qe))pe=!0;else if(/^s(hift)?$/i.test(qe))ye=!0;else throw new Error("Unrecognized modifier name: "+qe)}return fe&&(ie="Alt-"+ie),pe&&(ie="Ctrl-"+ie),Be&&(ie="Cmd-"+ie),ye&&(ie="Shift-"+ie),ie}function kh(ie){var ae={};for(var fe in ie)if(ie.hasOwnProperty(fe)){var pe=ie[fe];if(/^(name|fallthrough|(de|at)tach)$/.test(fe))continue;if(pe=="..."){delete ie[fe];continue}for(var ye=Nn(fe.split(" "),uh),Be=0;Be<ye.length;Be++){var Xe=void 0,qe=void 0;Be==ye.length-1?(qe=ye.join(" "),Xe=pe):(qe=ye.slice(0,Be+1).join(" "),Xe="...");var ot=ae[qe];if(!ot)ae[qe]=Xe;else if(ot!=Xe)throw new Error("Inconsistent bindings for "+qe)}delete ie[fe]}for(var Tt in ae)ie[Tt]=ae[Tt];return ie}function Du(ie,ae,fe,pe){ae=Ou(ae);var ye=ae.call?ae.call(ie,pe):ae[ie];if(ye===!1)return"nothing";if(ye==="...")return"multi";if(ye!=null&&fe(ye))return"handled";if(ae.fallthrough){if(Object.prototype.toString.call(ae.fallthrough)!="[object Array]")return Du(ie,ae.fallthrough,fe,pe);for(var Be=0;Be<ae.fallthrough.length;Be++){var Xe=Du(ie,ae.fallthrough[Be],fe,pe);if(Xe)return Xe}}}function Vd(ie){var ae=typeof ie=="string"?ie:mu[ie.keyCode];return ae=="Ctrl"||ae=="Alt"||ae=="Shift"||ae=="Mod"}function Dh(ie,ae,fe){var pe=ie;return ae.altKey&&pe!="Alt"&&(ie="Alt-"+ie),(Ne?ae.metaKey:ae.ctrlKey)&&pe!="Ctrl"&&(ie="Ctrl-"+ie),(Ne?ae.ctrlKey:ae.metaKey)&&pe!="Mod"&&(ie="Cmd-"+ie),!fe&&ae.shiftKey&&pe!="Shift"&&(ie="Shift-"+ie),ie}function ch(ie,ae){if(Ye&&ie.keyCode==34&&ie.char)return!1;var fe=mu[ie.keyCode];return fe==null||ie.altGraphKey?!1:(ie.keyCode==3&&ie.code&&(fe=ie.code),Dh(fe,ie,ae))}function Ou(ie){return typeof ie=="string"?vu[ie]:ie}function au(ie,ae){for(var fe=ie.doc.sel.ranges,pe=[],ye=0;ye<fe.length;ye++){for(var Be=ae(fe[ye]);pe.length&&yn(Be.from,jt(pe).to)<=0;){var Xe=pe.pop();if(yn(Xe.from,Be.from)<0){Be.from=Xe.from;break}}pe.push(Be)}xn(ie,function(){for(var qe=pe.length-1;qe>=0;qe--)Mc(ie.doc,"",pe[qe].from,pe[qe].to,"+delete");Ea(ie)})}function Oh(ie,ae,fe){var pe=ft(ie.text,ae+fe,fe);return pe<0||pe>ie.text.length?null:pe}function El(ie,ae,fe){var pe=Oh(ie,ae.ch,fe);return pe==null?null:new Gt(ae.line,pe,fe<0?"after":"before")}function $a(ie,ae,fe,pe,ye){if(ie){ae.doc.direction=="rtl"&&(ye=-ye);var Be=Qe(fe,ae.doc.direction);if(Be){var Xe=ye<0?jt(Be):Be[0],qe=ye<0==(Xe.level==1),ot=qe?"after":"before",Tt;if(Xe.level>0||ae.doc.direction=="rtl"){var mn=bn(ae,fe);Tt=ye<0?fe.text.length-1:0;var Rt=_t(ae,mn,Tt).top;Tt=ct(function(Qn){return _t(ae,mn,Qn).top==Rt},ye<0==(Xe.level==1)?Xe.from:Xe.to-1,Tt),ot=="before"&&(Tt=Oh(fe,Tt,1))}else Tt=ye<0?Xe.to:Xe.from;return new Gt(pe,Tt,ot)}}return new Gt(pe,ye<0?fe.text.length:0,ye<0?"before":"after")}function Rs(ie,ae,fe,pe){var ye=Qe(ae,ie.doc.direction);if(!ye)return El(ae,fe,pe);fe.ch>=ae.text.length?(fe.ch=ae.text.length,fe.sticky="before"):fe.ch<=0&&(fe.ch=0,fe.sticky="after");var Be=xe(ye,fe.ch,fe.sticky),Xe=ye[Be];if(ie.doc.direction=="ltr"&&Xe.level%2==0&&(pe>0?Xe.to>fe.ch:Xe.from<fe.ch))return El(ae,fe,pe);var qe=function(ar,Nr){return Oh(ae,ar instanceof Gt?ar.ch:ar,Nr)},ot,Tt=function(ar){return ie.options.lineWrapping?(ot=ot||bn(ie,ae),va(ie,ae,ot,ar)):{begin:0,end:ae.text.length}},mn=Tt(fe.sticky=="before"?qe(fe,-1):fe.ch);if(ie.doc.direction=="rtl"||Xe.level==1){var Rt=Xe.level==1==pe<0,Qn=qe(fe,Rt?1:-1);if(Qn!=null&&(Rt?Qn<=Xe.to&&Qn<=mn.end:Qn>=Xe.from&&Qn>=mn.begin)){var _n=Rt?"before":"after";return new Gt(fe.line,Qn,_n)}}var pi=function(ar,Nr,Er){for(var $r=function(oi,us){return us?new Gt(fe.line,qe(oi,1),"before"):new Gt(fe.line,oi,"after")};ar>=0&&ar<ye.length;ar+=Nr){var Hn=ye[ar],Cr=Nr>0==(Hn.level!=1),$o=Cr?Er.begin:qe(Er.end,-1);if(Hn.from<=$o&&$o<Hn.to||($o=Cr?Hn.from:qe(Hn.to,-1),Er.begin<=$o&&$o<Er.end))return $r($o,Cr)}},Ci=pi(Be+pe,pe,mn);if(Ci)return Ci;var ki=pe>0?mn.end:qe(mn.begin,-1);return ki!=null&&!(pe>0&&ki==ae.text.length)&&(Ci=pi(pe>0?0:ye.length-1,pe,Tt(ki)),Ci)?Ci:null}var Zl={selectAll:qa,singleSelection:function(ie){return ie.setSelection(ie.getCursor("anchor"),ie.getCursor("head"),It)},killLine:function(ie){return au(ie,function(ae){if(ae.empty()){var fe=In(ie.doc,ae.head.line).text.length;return ae.head.ch==fe&&ae.head.line<ie.lastLine()?{from:ae.head,to:Gt(ae.head.line+1,0)}:{from:ae.head,to:Gt(ae.head.line,fe)}}else return{from:ae.from(),to:ae.to()}})},deleteLine:function(ie){return au(ie,function(ae){return{from:Gt(ae.from().line,0),to:Bn(ie.doc,Gt(ae.to().line+1,0))}})},delLineLeft:function(ie){return au(ie,function(ae){return{from:Gt(ae.from().line,0),to:ae.from()}})},delWrappedLineLeft:function(ie){return au(ie,function(ae){var fe=ie.charCoords(ae.head,"div").top+5,pe=ie.coordsChar({left:0,top:fe},"div");return{from:pe,to:ae.from()}})},delWrappedLineRight:function(ie){return au(ie,function(ae){var fe=ie.charCoords(ae.head,"div").top+5,pe=ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:fe},"div");return{from:ae.from(),to:pe}})},undo:function(ie){return ie.undo()},redo:function(ie){return ie.redo()},undoSelection:function(ie){return ie.undoSelection()},redoSelection:function(ie){return ie.redoSelection()},goDocStart:function(ie){return ie.extendSelection(Gt(ie.firstLine(),0))},goDocEnd:function(ie){return ie.extendSelection(Gt(ie.lastLine()))},goLineStart:function(ie){return ie.extendSelectionsBy(function(ae){return ec(ie,ae.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(ie){return ie.extendSelectionsBy(function(ae){return dh(ie,ae.head)},{origin:"+move",bias:1})},goLineEnd:function(ie){return ie.extendSelectionsBy(function(ae){return yu(ie,ae.head.line)},{origin:"+move",bias:-1})},goLineRight:function(ie){return ie.extendSelectionsBy(function(ae){var fe=ie.cursorCoords(ae.head,"div").top+5;return ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:fe},"div")},En)},goLineLeft:function(ie){return ie.extendSelectionsBy(function(ae){var fe=ie.cursorCoords(ae.head,"div").top+5;return ie.coordsChar({left:0,top:fe},"div")},En)},goLineLeftSmart:function(ie){return ie.extendSelectionsBy(function(ae){var fe=ie.cursorCoords(ae.head,"div").top+5,pe=ie.coordsChar({left:0,top:fe},"div");return pe.ch<ie.getLine(pe.line).search(/\S/)?dh(ie,ae.head):pe},En)},goLineUp:function(ie){return ie.moveV(-1,"line")},goLineDown:function(ie){return ie.moveV(1,"line")},goPageUp:function(ie){return ie.moveV(-1,"page")},goPageDown:function(ie){return ie.moveV(1,"page")},goCharLeft:function(ie){return ie.moveH(-1,"char")},goCharRight:function(ie){return ie.moveH(1,"char")},goColumnLeft:function(ie){return ie.moveH(-1,"column")},goColumnRight:function(ie){return ie.moveH(1,"column")},goWordLeft:function(ie){return ie.moveH(-1,"word")},goGroupRight:function(ie){return ie.moveH(1,"group")},goGroupLeft:function(ie){return ie.moveH(-1,"group")},goWordRight:function(ie){return ie.moveH(1,"word")},delCharBefore:function(ie){return ie.deleteH(-1,"codepoint")},delCharAfter:function(ie){return ie.deleteH(1,"char")},delWordBefore:function(ie){return ie.deleteH(-1,"word")},delWordAfter:function(ie){return ie.deleteH(1,"word")},delGroupBefore:function(ie){return ie.deleteH(-1,"group")},delGroupAfter:function(ie){return ie.deleteH(1,"group")},indentAuto:function(ie){return ie.indentSelection("smart")},indentMore:function(ie){return ie.indentSelection("add")},indentLess:function(ie){return ie.indentSelection("subtract")},insertTab:function(ie){return ie.replaceSelection(" ")},insertSoftTab:function(ie){for(var ae=[],fe=ie.listSelections(),pe=ie.options.tabSize,ye=0;ye<fe.length;ye++){var Be=fe[ye].from(),Xe=it(ie.getLine(Be.line),Be.ch,pe);ae.push(Kn(pe-Xe%pe))}ie.replaceSelections(ae)},defaultTab:function(ie){ie.somethingSelected()?ie.indentSelection("add"):ie.execCommand("insertTab")},transposeChars:function(ie){return xn(ie,function(){for(var ae=ie.listSelections(),fe=[],pe=0;pe<ae.length;pe++)if(ae[pe].empty()){var ye=ae[pe].head,Be=In(ie.doc,ye.line).text;if(Be){if(ye.ch==Be.length&&(ye=new Gt(ye.line,ye.ch-1)),ye.ch>0)ye=new Gt(ye.line,ye.ch+1),ie.replaceRange(Be.charAt(ye.ch-1)+Be.charAt(ye.ch-2),Gt(ye.line,ye.ch-2),ye,"+transpose");else if(ye.line>ie.doc.first){var Xe=In(ie.doc,ye.line-1).text;Xe&&(ye=new Gt(ye.line,1),ie.replaceRange(Be.charAt(0)+ie.doc.lineSeparator()+Xe.charAt(Xe.length-1),Gt(ye.line-1,Xe.length-1),ye,"+transpose"))}}fe.push(new Or(ye,ye))}ie.setSelections(fe)})},newlineAndIndent:function(ie){return xn(ie,function(){for(var ae=ie.listSelections(),fe=ae.length-1;fe>=0;fe--)ie.replaceRange(ie.doc.lineSeparator(),ae[fe].anchor,ae[fe].head,"+input");ae=ie.listSelections();for(var pe=0;pe<ae.length;pe++)ie.indentLine(ae[pe].from().line,null,!0);Ea(ie)})},openLine:function(ie){return ie.replaceSelection(`
`,"start")},toggleOverwrite:function(ie){return ie.toggleOverwrite()}};function ec(ie,ae){var fe=In(ie.doc,ae),pe=ao(fe);return pe!=fe&&(ae=bt(pe)),$a(!0,ie,pe,ae,1)}function yu(ie,ae){var fe=In(ie.doc,ae),pe=ra(fe);return pe!=fe&&(ae=bt(pe)),$a(!0,ie,fe,ae,-1)}function dh(ie,ae){var fe=ec(ie,ae.line),pe=In(ie.doc,fe.line),ye=Qe(pe,ie.doc.direction);if(!ye||ye[0].level==0){var Be=Math.max(fe.ch,pe.text.search(/\S/)),Xe=ae.line==fe.line&&ae.ch<=Be&&ae.ch;return Gt(fe.line,Xe?0:Be,fe.sticky)}return fe}function Sd(ie,ae,fe){if(typeof ae=="string"&&(ae=Zl[ae],!ae))return!1;ie.display.input.ensurePolled();var pe=ie.display.shift,ye=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),fe&&(ie.display.shift=!1),ye=ae(ie)!=sn}finally{ie.display.shift=pe,ie.state.suppressEdits=!1}return ye}function hh(ie,ae,fe){for(var pe=0;pe<ie.state.keyMaps.length;pe++){var ye=Du(ae,ie.state.keyMaps[pe],fe,ie);if(ye)return ye}return ie.options.extraKeys&&Du(ae,ie.options.extraKeys,fe,ie)||Du(ae,ie.options.keyMap,fe,ie)}var hc=new Ve;function od(ie,ae,fe,pe){var ye=ie.state.keySeq;if(ye){if(Vd(ae))return"handled";if(/\'$/.test(ae)?ie.state.keySeq=null:hc.set(50,function(){ie.state.keySeq==ye&&(ie.state.keySeq=null,ie.display.input.reset())}),Rg(ie,ye+" "+ae,fe,pe))return!0}return Rg(ie,ae,fe,pe)}function Rg(ie,ae,fe,pe){var ye=hh(ie,ae,pe);return ye=="multi"&&(ie.state.keySeq=ae),ye=="handled"&&$i(ie,"keyHandled",ie,ae,fe),(ye=="handled"||ye=="multi")&&(xi(fe),Ka(ie)),!!ye}function Fg(ie,ae){var fe=ch(ae,!0);return fe?ae.shiftKey&&!ie.state.keySeq?od(ie,"Shift-"+fe,ae,function(pe){return Sd(ie,pe,!0)})||od(ie,fe,ae,function(pe){if(typeof pe=="string"?/^go[A-Z]/.test(pe):pe.motion)return Sd(ie,pe)}):od(ie,fe,ae,function(pe){return Sd(ie,pe)}):!1}function Bg(ie,ae,fe){return od(ie,"'"+fe+"'",ae,function(pe){return Sd(ie,pe,!0)})}var gh=null;function df(ie){var ae=this;if(!(ie.target&&ie.target!=ae.display.input.getField())&&(ae.curOp.focus=Pt(),!nn(ae,ie))){De&&Ke<11&&ie.keyCode==27&&(ie.returnValue=!1);var fe=ie.keyCode;ae.display.shift=fe==16||ie.shiftKey;var pe=Fg(ae,ie);Ye&&(gh=pe?fe:null,!pe&&fe==88&&!no&&(ge?ie.metaKey:ie.ctrlKey)&&ae.replaceSelection("",null,"cut")),se&&!ge&&!pe&&fe==46&&ie.shiftKey&&!ie.ctrlKey&&document.execCommand&&document.execCommand("cut"),fe==18&&!/\bCodeMirror-crosshair\b/.test(ae.display.lineDiv.className)&&jg(ae)}}function jg(ie){var ae=ie.display.lineDiv;dn(ae,"CodeMirror-crosshair");function fe(pe){(pe.keyCode==18||!pe.altKey)&&(We(ae,"CodeMirror-crosshair"),Pn(document,"keyup",fe),Pn(document,"mouseover",fe))}xt(document,"keyup",fe),xt(document,"mouseover",fe)}function hf(ie){ie.keyCode==16&&(this.doc.sel.shift=!1),nn(this,ie)}function ad(ie){var ae=this;if(!(ie.target&&ie.target!=ae.display.input.getField())&&!($l(ae.display,ie)||nn(ae,ie)||ie.ctrlKey&&!ie.altKey||ge&&ie.metaKey)){var fe=ie.keyCode,pe=ie.charCode;if(Ye&&fe==gh){gh=null,xi(ie);return}if(!(Ye&&(!ie.which||ie.which<10)&&Fg(ae,ie))){var ye=String.fromCharCode(pe==null?fe:pe);ye!="\b"&&(Bg(ae,ie,ye)||ae.display.input.onKeyPress(ie))}}}var zg=400,ag=function(ie,ae,fe){this.time=ie,this.pos=ae,this.button=fe};ag.prototype.compare=function(ie,ae,fe){return this.time+zg>ie&&yn(ae,this.pos)==0&&fe==this.button};var fh,xd;function fl(ie,ae){var fe=+new Date;return xd&&xd.compare(fe,ie,ae)?(fh=xd=null,"triple"):fh&&fh.compare(fe,ie,ae)?(xd=new ag(fe,ie,ae),fh=null,"double"):(fh=new ag(fe,ie,ae),xd=null,"single")}function sd(ie){var ae=this,fe=ae.display;if(!(nn(ae,ie)||fe.activeTouch&&fe.input.supportsTouch())){if(fe.input.ensurePolled(),fe.shift=ie.shiftKey,$l(fe,ie)){Ee||(fe.scroller.draggable=!1,setTimeout(function(){return fe.scroller.draggable=!0},100));return}if(!Gg(ae,ie)){var pe=Fa(ae,ie),ye=dr(ie),Be=pe?fl(pe,ye):"single";window.focus(),ye==1&&ae.state.selectingText&&ae.state.selectingText(ie),!(pe&&Rh(ae,ye,pe,Be,ie))&&(ye==1?pe?gf(ae,pe,Be,ie):lr(ie)==fe.scroller&&xi(ie):ye==2?(pe&&Za(ae.doc,pe),setTimeout(function(){return fe.input.focus()},20)):ye==3&&(ke?ae.display.input.onContextMenu(ie):os(ae)))}}}function Rh(ie,ae,fe,pe,ye){var Be="Click";return pe=="double"?Be="Double"+Be:pe=="triple"&&(Be="Triple"+Be),Be=(ae==1?"Left":ae==2?"Middle":"Right")+Be,od(ie,Dh(Be,ye),ye,function(Xe){if(typeof Xe=="string"&&(Xe=Zl[Xe]),!Xe)return!1;var qe=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),qe=Xe(ie,fe)!=sn}finally{ie.state.suppressEdits=!1}return qe})}function sg(ie,ae,fe){var pe=ie.getOption("configureMouse"),ye=pe?pe(ie,ae,fe):{};if(ye.unit==null){var Be=ue?fe.shiftKey&&fe.metaKey:fe.altKey;ye.unit=Be?"rectangle":ae=="single"?"char":ae=="double"?"word":"line"}return(ye.extend==null||ie.doc.extend)&&(ye.extend=ie.doc.extend||fe.shiftKey),ye.addNew==null&&(ye.addNew=ge?fe.metaKey:fe.ctrlKey),ye.moveOnDrag==null&&(ye.moveOnDrag=!(ge?fe.altKey:fe.ctrlKey)),ye}function gf(ie,ae,fe,pe){De?setTimeout(fn(ms,ie),0):ie.curOp.focus=Pt();var ye=sg(ie,fe,pe),Be=ie.doc.sel,Xe;ie.options.dragDrop&&ur&&!ie.isReadOnly()&&fe=="single"&&(Xe=Be.contains(ae))>-1&&(yn((Xe=Be.ranges[Xe]).from(),ae)<0||ae.xRel>0)&&(yn(Xe.to(),ae)>0||ae.xRel<0)?Ug(ie,pe,ae,ye):Lp(ie,pe,ae,ye)}function Ug(ie,ae,fe,pe){var ye=ie.display,Be=!1,Xe=ri(ie,function(Tt){Ee&&(ye.scroller.draggable=!1),ie.state.draggingText=!1,Pn(ye.wrapper.ownerDocument,"mouseup",Xe),Pn(ye.wrapper.ownerDocument,"mousemove",qe),Pn(ye.scroller,"dragstart",ot),Pn(ye.scroller,"drop",Xe),Be||(xi(Tt),pe.addNew||Za(ie.doc,fe,null,null,pe.extend),Ee&&!tt||De&&Ke==9?setTimeout(function(){ye.wrapper.ownerDocument.body.focus({preventScroll:!0}),ye.input.focus()},20):ye.input.focus())}),qe=function(Tt){Be=Be||Math.abs(ae.clientX-Tt.clientX)+Math.abs(ae.clientY-Tt.clientY)>=10},ot=function(){return Be=!0};Ee&&(ye.scroller.draggable=!0),ie.state.draggingText=Xe,Xe.copy=!pe.moveOnDrag,ye.scroller.dragDrop&&ye.scroller.dragDrop(),xt(ye.wrapper.ownerDocument,"mouseup",Xe),xt(ye.wrapper.ownerDocument,"mousemove",qe),xt(ye.scroller,"dragstart",ot),xt(ye.scroller,"drop",Xe),os(ie),setTimeout(function(){return ye.input.focus()},20)}function _g(ie,ae,fe){if(fe=="char")return new Or(ae,ae);if(fe=="word")return ie.findWordAt(ae);if(fe=="line")return new Or(Gt(ae.line,0),Bn(ie.doc,Gt(ae.line+1,0)));var pe=fe(ie,ae);return new Or(pe.from,pe.to)}function Lp(ie,ae,fe,pe){var ye=ie.display,Be=ie.doc;xi(ae);var Xe,qe,ot=Be.sel,Tt=ot.ranges;if(pe.addNew&&!pe.extend?(qe=Be.sel.contains(fe),qe>-1?Xe=Tt[qe]:Xe=new Or(fe,fe)):(Xe=Be.sel.primary(),qe=Be.sel.primIndex),pe.unit=="rectangle")pe.addNew||(Xe=new Or(fe,fe)),fe=Fa(ie,ae,!0,!0),qe=-1;else{var mn=_g(ie,fe,pe.unit);pe.extend?Xe=Hc(Xe,mn.anchor,mn.head,pe.extend):Xe=mn}pe.addNew?qe==-1?(qe=Tt.length,ws(Be,Qo(ie,Tt.concat([Xe]),qe),{scroll:!1,origin:"*mouse"})):Tt.length>1&&Tt[qe].empty()&&pe.unit=="char"&&!pe.extend?(ws(Be,Qo(ie,Tt.slice(0,qe).concat(Tt.slice(qe+1)),0),{scroll:!1,origin:"*mouse"}),ot=Be.sel):Ss(Be,qe,Xe,en):(qe=0,ws(Be,new jo([Xe],0),en),ot=Be.sel);var Rt=fe;function Qn(Er){if(yn(Rt,Er)!=0)if(Rt=Er,pe.unit=="rectangle"){for(var $r=[],Hn=ie.options.tabSize,Cr=it(In(Be,fe.line).text,fe.ch,Hn),$o=it(In(Be,Er.line).text,Er.ch,Hn),oi=Math.min(Cr,$o),us=Math.max(Cr,$o),Xa=Math.min(fe.line,Er.line),pl=Math.min(ie.lastLine(),Math.max(fe.line,Er.line));Xa<=pl;Xa++){var ml=In(Be,Xa).text,Va=ei(ml,oi,Hn);oi==us?$r.push(new Or(Gt(Xa,Va),Gt(Xa,Va))):ml.length>Va&&$r.push(new Or(Gt(Xa,Va),Gt(Xa,ei(ml,us,Hn))))}$r.length||$r.push(new Or(fe,fe)),ws(Be,Qo(ie,ot.ranges.slice(0,qe).concat($r),qe),{origin:"*mouse",scroll:!1}),ie.scrollIntoView(Er)}else{var ll=Xe,Xs=_g(ie,Er,pe.unit),ha=ll.anchor,Ca;yn(Xs.anchor,ha)>0?(Ca=Xs.head,ha=gn(ll.from(),Xs.anchor)):(Ca=Xs.anchor,ha=wn(ll.to(),Xs.head));var Ts=ot.ranges.slice(0);Ts[qe]=zf(ie,new Or(Bn(Be,ha),Ca)),ws(Be,Qo(ie,Ts,qe),en)}}var _n=ye.wrapper.getBoundingClientRect(),pi=0;function Ci(Er){var $r=++pi,Hn=Fa(ie,Er,!0,pe.unit=="rectangle");if(Hn)if(yn(Hn,Rt)!=0){ie.curOp.focus=Pt(),Qn(Hn);var Cr=pa(ye,Be);(Hn.line>=Cr.to||Hn.line<Cr.from)&&setTimeout(ri(ie,function(){pi==$r&&Ci(Er)}),150)}else{var $o=Er.clientY<_n.top?-20:Er.clientY>_n.bottom?20:0;$o&&setTimeout(ri(ie,function(){pi==$r&&(ye.scroller.scrollTop+=$o,Ci(Er))}),50)}}function ki(Er){ie.state.selectingText=!1,pi=1/0,Er&&(xi(Er),ye.input.focus()),Pn(ye.wrapper.ownerDocument,"mousemove",ar),Pn(ye.wrapper.ownerDocument,"mouseup",Nr),Be.history.lastSelOrigin=null}var ar=ri(ie,function(Er){Er.buttons===0||!dr(Er)?ki(Er):Ci(Er)}),Nr=ri(ie,ki);ie.state.selectingText=Nr,xt(ye.wrapper.ownerDocument,"mousemove",ar),xt(ye.wrapper.ownerDocument,"mouseup",Nr)}function zf(ie,ae){var fe=ae.anchor,pe=ae.head,ye=In(ie.doc,fe.line);if(yn(fe,pe)==0&&fe.sticky==pe.sticky)return ae;var Be=Qe(ye);if(!Be)return ae;var Xe=xe(Be,fe.ch,fe.sticky),qe=Be[Xe];if(qe.from!=fe.ch&&qe.to!=fe.ch)return ae;var ot=Xe+(qe.from==fe.ch==(qe.level!=1)?0:1);if(ot==0||ot==Be.length)return ae;var Tt;if(pe.line!=fe.line)Tt=(pe.line-fe.line)*(ie.doc.direction=="ltr"?1:-1)>0;else{var mn=xe(Be,pe.ch,pe.sticky),Rt=mn-Xe||(pe.ch-fe.ch)*(qe.level==1?-1:1);mn==ot-1||mn==ot?Tt=Rt<0:Tt=Rt>0}var Qn=Be[ot+(Tt?-1:0)],_n=Tt==(Qn.level==1),pi=_n?Qn.from:Qn.to,Ci=_n?"after":"before";return fe.ch==pi&&fe.sticky==Ci?ae:new Or(new Gt(fe.line,pi,Ci),pe)}function ff(ie,ae,fe,pe){var ye,Be;if(ae.touches)ye=ae.touches[0].clientX,Be=ae.touches[0].clientY;else try{ye=ae.clientX,Be=ae.clientY}catch(Qn){return!1}if(ye>=Math.floor(ie.display.gutters.getBoundingClientRect().right))return!1;pe&&xi(ae);var Xe=ie.display,qe=Xe.lineDiv.getBoundingClientRect();if(Be>qe.bottom||!Zn(ie,fe))return Si(ae);Be-=qe.top-Xe.viewOffset;for(var ot=0;ot<ie.display.gutterSpecs.length;++ot){var Tt=Xe.gutters.childNodes[ot];if(Tt&&Tt.getBoundingClientRect().right>=ye){var mn=Ut(ie.doc,Be),Rt=ie.display.gutterSpecs[ot];return wt(ie,fe,ie,mn,Rt.className,ae),Si(ae)}}}function Gg(ie,ae){return ff(ie,ae,"gutterClick",!0)}function ss(ie,ae){$l(ie.display,ae)||Hg(ie,ae)||nn(ie,ae,"contextmenu")||ke||ie.display.input.onContextMenu(ae)}function Hg(ie,ae){return Zn(ie,"gutterContextMenu")?ff(ie,ae,"gutterContextMenu",!1):!1}function Fh(ie){ie.display.wrapper.className=ie.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+ie.options.theme.replace(/(^|\s)\s*/g," cm-s-"),ro(ie)}var ph={toString:function(){return"CodeMirror.Init"}},pf={},lg={};function Uf(ie){var ae=ie.optionHandlers;function fe(pe,ye,Be,Xe){ie.defaults[pe]=ye,Be&&(ae[pe]=Xe?function(qe,ot,Tt){Tt!=ph&&Be(qe,ot,Tt)}:Be)}ie.defineOption=fe,ie.Init=ph,fe("value","",function(pe,ye){return pe.setValue(ye)},!0),fe("mode",null,function(pe,ye){pe.doc.modeOption=ye,No(pe)},!0),fe("indentUnit",2,No,!0),fe("indentWithTabs",!1),fe("smartIndent",!0),fe("tabSize",4,function(pe){Ba(pe),ro(pe),za(pe)},!0),fe("lineSeparator",null,function(pe,ye){if(pe.doc.lineSep=ye,!!ye){var Be=[],Xe=pe.doc.first;pe.doc.iter(function(ot){for(var Tt=0;;){var mn=ot.text.indexOf(ye,Tt);if(mn==-1)break;Tt=mn+ye.length,Be.push(Gt(Xe,mn))}Xe++});for(var qe=Be.length-1;qe>=0;qe--)Mc(pe.doc,ye,Be[qe],Gt(Be[qe].line,Be[qe].ch+ye.length))}}),fe("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(pe,ye,Be){pe.state.specialChars=new RegExp(ye.source+(ye.test(" ")?"":"| "),"g"),Be!=ph&&pe.refresh()}),fe("specialCharPlaceholder",gs,function(pe){return pe.refresh()},!0),fe("electricChars",!0),fe("inputStyle",ne?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),fe("spellcheck",!1,function(pe,ye){return pe.getInputField().spellcheck=ye},!0),fe("autocorrect",!1,function(pe,ye){return pe.getInputField().autocorrect=ye},!0),fe("autocapitalize",!1,function(pe,ye){return pe.getInputField().autocapitalize=ye},!0),fe("rtlMoveVisually",!me),fe("wholeLineUpdateBefore",!0),fe("theme","default",function(pe){Fh(pe),Hr(pe)},!0),fe("keyMap","default",function(pe,ye,Be){var Xe=Ou(ye),qe=Be!=ph&&Ou(Be);qe&&qe.detach&&qe.detach(pe,Xe),Xe.attach&&Xe.attach(pe,qe||null)}),fe("extraKeys",null),fe("configureMouse",null),fe("lineWrapping",!1,_f,!0),fe("gutters",[],function(pe,ye){pe.display.gutterSpecs=mo(ye,pe.options.lineNumbers),Hr(pe)},!0),fe("fixedGutter",!0,function(pe,ye){pe.display.gutters.style.left=ye?Vu(pe.display)+"px":"0",pe.refresh()},!0),fe("coverGutterNextToScrollbar",!1,function(pe){return Nc(pe)},!0),fe("scrollbarStyle","native",function(pe){xc(pe),Nc(pe),pe.display.scrollbars.setScrollTop(pe.doc.scrollTop),pe.display.scrollbars.setScrollLeft(pe.doc.scrollLeft)},!0),fe("lineNumbers",!1,function(pe,ye){pe.display.gutterSpecs=mo(pe.options.gutters,ye),Hr(pe)},!0),fe("firstLineNumber",1,Hr,!0),fe("lineNumberFormatter",function(pe){return pe},Hr,!0),fe("showCursorWhenSelecting",!1,Sl,!0),fe("resetSelectionOnContextMenu",!0),fe("lineWiseCopyCut",!0),fe("pasteLinesPerSelection",!0),fe("selectionsMayTouch",!1),fe("readOnly",!1,function(pe,ye){ye=="nocursor"&&(Ku(pe),pe.display.input.blur()),pe.display.input.readOnlyChanged(ye)}),fe("screenReaderLabel",null,function(pe,ye){ye=ye===""?null:ye,pe.display.input.screenReaderLabelChanged(ye)}),fe("disableInput",!1,function(pe,ye){ye||pe.display.input.reset()},!0),fe("dragDrop",!0,Wg),fe("allowDropFileTypes",null),fe("cursorBlinkRate",530),fe("cursorScrollMargin",0),fe("cursorHeight",1,Sl,!0),fe("singleCursorHeightPerLine",!0,Sl,!0),fe("workTime",100),fe("workDelay",100),fe("flattenSpans",!0,Ba,!0),fe("addModeClass",!1,Ba,!0),fe("pollInterval",100),fe("undoDepth",200,function(pe,ye){return pe.doc.history.undoDepth=ye}),fe("historyEventDelay",1250),fe("viewportMargin",10,function(pe){return pe.refresh()},!0),fe("maxHighlightLength",1e4,Ba,!0),fe("moveInputWithCursor",!0,function(pe,ye){ye||pe.display.input.resetPosition()}),fe("tabindex",null,function(pe,ye){return pe.display.input.getField().tabIndex=ye||""}),fe("autofocus",null),fe("direction","ltr",function(pe,ye){return pe.doc.setDirection(ye)},!0),fe("phrases",null)}function Wg(ie,ae,fe){var pe=fe&&fe!=ph;if(!ae!=!pe){var ye=ie.display.dragFunctions,Be=ae?xt:Pn;Be(ie.display.scroller,"dragstart",ye.start),Be(ie.display.scroller,"dragenter",ye.enter),Be(ie.display.scroller,"dragover",ye.over),Be(ie.display.scroller,"dragleave",ye.leave),Be(ie.display.scroller,"drop",ye.drop)}}function _f(ie){ie.options.lineWrapping?(dn(ie.display.wrapper,"CodeMirror-wrap"),ie.display.sizer.style.minWidth="",ie.display.sizerWidth=null):(We(ie.display.wrapper,"CodeMirror-wrap"),oa(ie)),Eo(ie),za(ie),ro(ie),setTimeout(function(){return Nc(ie)},100)}function ls(ie,ae){var fe=this;if(!(this instanceof ls))return new ls(ie,ae);this.options=ae=ae?an(ae):{},an(pf,ae,!1);var pe=ae.value;typeof pe=="string"?pe=new Gl(pe,ae.mode,null,ae.lineSeparator,ae.direction):ae.mode&&(pe.modeOption=ae.mode),this.doc=pe;var ye=new ls.inputStyles[ae.inputStyle](this),Be=this.display=new uo(ie,pe,ye,ae);Be.wrapper.CodeMirror=this,Fh(this),ae.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),xc(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 Ve,keySeq:null,specialChars:null},ae.autofocus&&!ne&&Be.input.focus(),De&&Ke<11&&setTimeout(function(){return fe.display.input.reset(!0)},20),Bh(this),ku(),Ul(this),this.curOp.forceUpdate=!0,_o(this,pe),ae.autofocus&&!ne||this.hasFocus()?setTimeout(function(){fe.hasFocus()&&!fe.state.focused&&ya(fe)},20):Ku(this);for(var Xe in lg)lg.hasOwnProperty(Xe)&&lg[Xe](this,ae[Xe],ph);Tr(this),ae.finishInit&&ae.finishInit(this);for(var qe=0;qe<Kd.length;++qe)Kd[qe](this);Tu(this),Ee&&ae.lineWrapping&&getComputedStyle(Be.lineDiv).textRendering=="optimizelegibility"&&(Be.lineDiv.style.textRendering="auto")}ls.defaults=pf,ls.optionHandlers=lg;function Bh(ie){var ae=ie.display;xt(ae.scroller,"mousedown",ri(ie,sd)),De&&Ke<11?xt(ae.scroller,"dblclick",ri(ie,function(ot){if(!nn(ie,ot)){var Tt=Fa(ie,ot);if(!(!Tt||Gg(ie,ot)||$l(ie.display,ot))){xi(ot);var mn=ie.findWordAt(Tt);Za(ie.doc,mn.anchor,mn.head)}}})):xt(ae.scroller,"dblclick",function(ot){return nn(ie,ot)||xi(ot)}),xt(ae.scroller,"contextmenu",function(ot){return ss(ie,ot)}),xt(ae.input.getField(),"contextmenu",function(ot){ae.scroller.contains(ot.target)||ss(ie,ot)});var fe,pe={end:0};function ye(){ae.activeTouch&&(fe=setTimeout(function(){return ae.activeTouch=null},1e3),pe=ae.activeTouch,pe.end=+new Date)}function Be(ot){if(ot.touches.length!=1)return!1;var Tt=ot.touches[0];return Tt.radiusX<=1&&Tt.radiusY<=1}function Xe(ot,Tt){if(Tt.left==null)return!0;var mn=Tt.left-ot.left,Rt=Tt.top-ot.top;return mn*mn+Rt*Rt>20*20}xt(ae.scroller,"touchstart",function(ot){if(!nn(ie,ot)&&!Be(ot)&&!Gg(ie,ot)){ae.input.ensurePolled(),clearTimeout(fe);var Tt=+new Date;ae.activeTouch={start:Tt,moved:!1,prev:Tt-pe.end<=300?pe:null},ot.touches.length==1&&(ae.activeTouch.left=ot.touches[0].pageX,ae.activeTouch.top=ot.touches[0].pageY)}}),xt(ae.scroller,"touchmove",function(){ae.activeTouch&&(ae.activeTouch.moved=!0)}),xt(ae.scroller,"touchend",function(ot){var Tt=ae.activeTouch;if(Tt&&!$l(ae,ot)&&Tt.left!=null&&!Tt.moved&&new Date-Tt.start<300){var mn=ie.coordsChar(ae.activeTouch,"page"),Rt;!Tt.prev||Xe(Tt,Tt.prev)?Rt=new Or(mn,mn):!Tt.prev.prev||Xe(Tt,Tt.prev.prev)?Rt=ie.findWordAt(mn):Rt=new Or(Gt(mn.line,0),Bn(ie.doc,Gt(mn.line+1,0))),ie.setSelection(Rt.anchor,Rt.head),ie.focus(),xi(ot)}ye()}),xt(ae.scroller,"touchcancel",ye),xt(ae.scroller,"scroll",function(){ae.scroller.clientHeight&&(Ac(ie,ae.scroller.scrollTop),$u(ie,ae.scroller.scrollLeft,!0),wt(ie,"scroll",ie))}),xt(ae.scroller,"mousewheel",function(ot){return Ro(ie,ot)}),xt(ae.scroller,"DOMMouseScroll",function(ot){return Ro(ie,ot)}),xt(ae.wrapper,"scroll",function(){return ae.wrapper.scrollTop=ae.wrapper.scrollLeft=0}),ae.dragFunctions={enter:function(ot){nn(ie,ot)||Ri(ot)},over:function(ot){nn(ie,ot)||(rg(ie,ot),Ri(ot))},start:function(ot){return lh(ie,ot)},drop:ri(ie,Th),leave:function(ot){nn(ie,ot)||Og(ie)}};var qe=ae.input.getField();xt(qe,"keyup",function(ot){return hf.call(ie,ot)}),xt(qe,"keydown",ri(ie,df)),xt(qe,"keypress",ri(ie,ad)),xt(qe,"focus",function(ot){return ya(ie,ot)}),xt(qe,"blur",function(ot){return Ku(ie,ot)})}var Kd=[];ls.defineInitHook=function(ie){return Kd.push(ie)};function Xl(ie,ae,fe,pe){var ye=ie.doc,Be;fe==null&&(fe="add"),fe=="smart"&&(ye.mode.indent?Be=zi(ie,ae).state:fe="prev");var Xe=ie.options.tabSize,qe=In(ye,ae),ot=it(qe.text,null,Xe);qe.stateAfter&&(qe.stateAfter=null);var Tt=qe.text.match(/^\s*/)[0],mn;if(!pe&&!/\S/.test(qe.text))mn=0,fe="not";else if(fe=="smart"&&(mn=ye.mode.indent(Be,qe.text.slice(Tt.length),qe.text),mn==sn||mn>150)){if(!pe)return;fe="prev"}fe=="prev"?ae>ye.first?mn=it(In(ye,ae-1).text,null,Xe):mn=0:fe=="add"?mn=ot+ie.options.indentUnit:fe=="subtract"?mn=ot-ie.options.indentUnit:typeof fe=="number"&&(mn=ot+fe),mn=Math.max(0,mn);var Rt="",Qn=0;if(ie.options.indentWithTabs)for(var _n=Math.floor(mn/Xe);_n;--_n)Qn+=Xe,Rt+=" ";if(Qn<mn&&(Rt+=Kn(mn-Qn)),Rt!=Tt)return Mc(ye,Rt,Gt(ae,0),Gt(ae,Tt.length),"+input"),qe.stateAfter=null,!0;for(var pi=0;pi<ye.sel.ranges.length;pi++){var Ci=ye.sel.ranges[pi];if(Ci.head.line==ae&&Ci.head.ch<Tt.length){var ki=Gt(ae,Tt.length);Ss(ye,pi,new Or(ki,ki));break}}}var Ru=null;function mh(ie){Ru=ie}function ug(ie,ae,fe,pe,ye){var Be=ie.doc;ie.display.shift=!1,pe||(pe=Be.sel);var Xe=+new Date-200,qe=ye=="paste"||ie.state.pasteIncoming>Xe,ot=Yi(ae),Tt=null;if(qe&&pe.ranges.length>1)if(Ru&&Ru.text.join(`
`)==ae){if(pe.ranges.length%Ru.text.length==0){Tt=[];for(var mn=0;mn<Ru.text.length;mn++)Tt.push(Be.splitLines(Ru.text[mn]))}}else ot.length==pe.ranges.length&&ie.options.pasteLinesPerSelection&&(Tt=Nn(ot,function(ar){return[ar]}));for(var Rt=ie.curOp.updateInput,Qn=pe.ranges.length-1;Qn>=0;Qn--){var _n=pe.ranges[Qn],pi=_n.from(),Ci=_n.to();_n.empty()&&(fe&&fe>0?pi=Gt(pi.line,pi.ch-fe):ie.state.overwrite&&!qe?Ci=Gt(Ci.line,Math.min(In(Be,Ci.line).text.length,Ci.ch+jt(ot).length)):qe&&Ru&&Ru.lineWise&&Ru.text.join(`
`)==ot.join(`
`)&&(pi=Ci=Gt(pi.line,0)));var ki={from:pi,to:Ci,text:Tt?Tt[Qn%Tt.length]:ot,origin:ye||(qe?"paste":ie.state.cutIncoming>Xe?"cut":"+input")};Ks(ie.doc,ki),$i(ie,"inputRead",ie,ki)}ae&&!qe&&cg(ie,ae),Ea(ie),ie.curOp.updateInput<2&&(ie.curOp.updateInput=Rt),ie.curOp.typing=!0,ie.state.pasteIncoming=ie.state.cutIncoming=-1}function Zg(ie,ae){var fe=ie.clipboardData&&ie.clipboardData.getData("Text");if(fe)return ie.preventDefault(),!ae.isReadOnly()&&!ae.options.disableInput&&xn(ae,function(){return ug(ae,fe,0,null,"paste")}),!0}function cg(ie,ae){if(!(!ie.options.electricChars||!ie.options.smartIndent))for(var fe=ie.doc.sel,pe=fe.ranges.length-1;pe>=0;pe--){var ye=fe.ranges[pe];if(!(ye.head.ch>100||pe&&fe.ranges[pe-1].head.line==ye.head.line)){var Be=ie.getModeAt(ye.head),Xe=!1;if(Be.electricChars){for(var qe=0;qe<Be.electricChars.length;qe++)if(ae.indexOf(Be.electricChars.charAt(qe))>-1){Xe=Xl(ie,ye.head.line,"smart");break}}else Be.electricInput&&Be.electricInput.test(In(ie.doc,ye.head.line).text.slice(0,ye.head.ch))&&(Xe=Xl(ie,ye.head.line,"smart"));Xe&&$i(ie,"electricInput",ie,ye.head.line)}}}function dg(ie){for(var ae=[],fe=[],pe=0;pe<ie.doc.sel.ranges.length;pe++){var ye=ie.doc.sel.ranges[pe].head.line,Be={anchor:Gt(ye,0),head:Gt(ye+1,0)};fe.push(Be),ae.push(ie.getRange(Be.anchor,Be.head))}return{text:ae,ranges:fe}}function mf(ie,ae,fe,pe){ie.setAttribute("autocorrect",fe?"":"off"),ie.setAttribute("autocapitalize",pe?"":"off"),ie.setAttribute("spellcheck",!!ae)}function vf(){var ie=ut("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),ae=ut("div",[ie],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Ee?ie.style.width="1000px":ie.setAttribute("wrap","off"),ze&&(ie.style.border="1px solid black"),mf(ie),ae}function he(ie){var ae=ie.optionHandlers,fe=ie.helpers={};ie.prototype={constructor:ie,focus:function(){window.focus(),this.display.input.focus()},setOption:function(pe,ye){var Be=this.options,Xe=Be[pe];Be[pe]==ye&&pe!="mode"||(Be[pe]=ye,ae.hasOwnProperty(pe)&&ri(this,ae[pe])(this,ye,Xe),wt(this,"optionChange",this,pe))},getOption:function(pe){return this.options[pe]},getDoc:function(){return this.doc},addKeyMap:function(pe,ye){this.state.keyMaps[ye?"push":"unshift"](Ou(pe))},removeKeyMap:function(pe){for(var ye=this.state.keyMaps,Be=0;Be<ye.length;++Be)if(ye[Be]==pe||ye[Be].name==pe)return ye.splice(Be,1),!0},addOverlay:ai(function(pe,ye){var Be=pe.token?pe:ie.getMode(this.options,pe);if(Be.startState)throw new Error("Overlays may not be stateful.");Gn(this.state.overlays,{mode:Be,modeSpec:pe,opaque:ye&&ye.opaque,priority:ye&&ye.priority||0},function(Xe){return Xe.priority}),this.state.modeGen++,za(this)}),removeOverlay:ai(function(pe){for(var ye=this.state.overlays,Be=0;Be<ye.length;++Be){var Xe=ye[Be].modeSpec;if(Xe==pe||typeof pe=="string"&&Xe.name==pe){ye.splice(Be,1),this.state.modeGen++,za(this);return}}}),indentLine:ai(function(pe,ye,Be){typeof ye!="string"&&typeof ye!="number"&&(ye==null?ye=this.options.smartIndent?"smart":"prev":ye=ye?"add":"subtract"),Ln(this.doc,pe)&&Xl(this,pe,ye,Be)}),indentSelection:ai(function(pe){for(var ye=this.doc.sel.ranges,Be=-1,Xe=0;Xe<ye.length;Xe++){var qe=ye[Xe];if(qe.empty())qe.head.line>Be&&(Xl(this,qe.head.line,pe,!0),Be=qe.head.line,Xe==this.doc.sel.primIndex&&Ea(this));else{var ot=qe.from(),Tt=qe.to(),mn=Math.max(Be,ot.line);Be=Math.min(this.lastLine(),Tt.line-(Tt.ch?0:1))+1;for(var Rt=mn;Rt<Be;++Rt)Xl(this,Rt,pe);var Qn=this.doc.sel.ranges;ot.ch==0&&ye.length==Qn.length&&Qn[Xe].from().ch>0&&Ss(this.doc,Xe,new Or(ot,Qn[Xe].to()),It)}}}),getTokenAt:function(pe,ye){return hr(this,pe,ye)},getLineTokens:function(pe,ye){return hr(this,Gt(pe),ye,!0)},getTokenTypeAt:function(pe){pe=Bn(this.doc,pe);var ye=ir(this,In(this.doc,pe.line)),Be=0,Xe=(ye.length-1)/2,qe=pe.ch,ot;if(qe==0)ot=ye[2];else for(;;){var Tt=Be+Xe>>1;if((Tt?ye[Tt*2-1]:0)>=qe)Xe=Tt;else if(ye[Tt*2+1]<qe)Be=Tt+1;else{ot=ye[Tt*2+2];break}}var mn=ot?ot.indexOf("overlay "):-1;return mn<0?ot:mn==0?null:ot.slice(0,mn-1)},getModeAt:function(pe){var ye=this.doc.mode;return ye.innerMode?ie.innerMode(ye,this.getTokenAt(pe).state).mode:ye},getHelper:function(pe,ye){return this.getHelpers(pe,ye)[0]},getHelpers:function(pe,ye){var Be=[];if(!fe.hasOwnProperty(ye))return Be;var Xe=fe[ye],qe=this.getModeAt(pe);if(typeof qe[ye]=="string")Xe[qe[ye]]&&Be.push(Xe[qe[ye]]);else if(qe[ye])for(var ot=0;ot<qe[ye].length;ot++){var Tt=Xe[qe[ye][ot]];Tt&&Be.push(Tt)}else qe.helperType&&Xe[qe.helperType]?Be.push(Xe[qe.helperType]):Xe[qe.name]&&Be.push(Xe[qe.name]);for(var mn=0;mn<Xe._global.length;mn++){var Rt=Xe._global[mn];Rt.pred(qe,this)&&gt(Be,Rt.val)==-1&&Be.push(Rt.val)}return Be},getStateAfter:function(pe,ye){var Be=this.doc;return pe=kn(Be,pe==null?Be.first+Be.size-1:pe),zi(this,pe+1,ye).state},cursorCoords:function(pe,ye){var Be,Xe=this.doc.sel.primary();return pe==null?Be=Xe.head:typeof pe=="object"?Be=Bn(this.doc,pe):Be=pe?Xe.from():Xe.to(),ka(this,Be,ye||"page")},charCoords:function(pe,ye){return Bs(this,Bn(this.doc,pe),ye||"page")},coordsChar:function(pe,ye){return pe=rl(this,pe,ye||"page"),$s(this,pe.left,pe.top)},lineAtHeight:function(pe,ye){return pe=rl(this,{top:pe,left:0},ye||"page").top,Ut(this.doc,pe+this.display.viewOffset)},heightAtLine:function(pe,ye,Be){var Xe=!1,qe;if(typeof pe=="number"){var ot=this.doc.first+this.doc.size-1;pe<this.doc.first?pe=this.doc.first:pe>ot&&(pe=ot,Xe=!0),qe=In(this.doc,pe)}else qe=pe;return Bo(this,qe,{top:0,left:0},ye||"page",Be||Xe).top+(Xe?this.doc.height-ua(qe):0)},defaultTextHeight:function(){return Os(this.display)},defaultCharWidth:function(){return nu(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(pe,ye,Be,Xe,qe){var ot=this.display;pe=ka(this,Bn(this.doc,pe));var Tt=pe.bottom,mn=pe.left;if(ye.style.position="absolute",ye.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ye),ot.sizer.appendChild(ye),Xe=="over")Tt=pe.top;else if(Xe=="above"||Xe=="near"){var Rt=Math.max(ot.wrapper.clientHeight,this.doc.height),Qn=Math.max(ot.sizer.clientWidth,ot.lineSpace.clientWidth);(Xe=="above"||pe.bottom+ye.offsetHeight>Rt)&&pe.top>ye.offsetHeight?Tt=pe.top-ye.offsetHeight:pe.bottom+ye.offsetHeight<=Rt&&(Tt=pe.bottom),mn+ye.offsetWidth>Qn&&(mn=Qn-ye.offsetWidth)}ye.style.top=Tt+"px",ye.style.left=ye.style.right="",qe=="right"?(mn=ot.sizer.clientWidth-ye.offsetWidth,ye.style.right="0px"):(qe=="left"?mn=0:qe=="middle"&&(mn=(ot.sizer.clientWidth-ye.offsetWidth)/2),ye.style.left=mn+"px"),Be&&jl(this,{left:mn,top:Tt,right:mn+ye.offsetWidth,bottom:Tt+ye.offsetHeight})},triggerOnKeyDown:ai(df),triggerOnKeyPress:ai(ad),triggerOnKeyUp:hf,triggerOnMouseDown:ai(sd),execCommand:function(pe){if(Zl.hasOwnProperty(pe))return Zl[pe].call(null,this)},triggerElectric:ai(function(pe){cg(this,pe)}),findPosH:function(pe,ye,Be,Xe){var qe=1;ye<0&&(qe=-1,ye=-ye);for(var ot=Bn(this.doc,pe),Tt=0;Tt<ye&&(ot=Me(this.doc,ot,qe,Be,Xe),!ot.hitSide);++Tt);return ot},moveH:ai(function(pe,ye){var Be=this;this.extendSelectionsBy(function(Xe){return Be.display.shift||Be.doc.extend||Xe.empty()?Me(Be.doc,Xe.head,pe,ye,Be.options.rtlMoveVisually):pe<0?Xe.from():Xe.to()},En)}),deleteH:ai(function(pe,ye){var Be=this.doc.sel,Xe=this.doc;Be.somethingSelected()?Xe.replaceSelection("",null,"+delete"):au(this,function(qe){var ot=Me(Xe,qe.head,pe,ye,!1);return pe<0?{from:ot,to:qe.head}:{from:qe.head,to:ot}})}),findPosV:function(pe,ye,Be,Xe){var qe=1,ot=Xe;ye<0&&(qe=-1,ye=-ye);for(var Tt=Bn(this.doc,pe),mn=0;mn<ye;++mn){var Rt=ka(this,Tt,"div");if(ot==null?ot=Rt.left:Rt.left=ot,Tt=Re(this,Rt,qe,Be),Tt.hitSide)break}return Tt},moveV:ai(function(pe,ye){var Be=this,Xe=this.doc,qe=[],ot=!this.display.shift&&!Xe.extend&&Xe.sel.somethingSelected();if(Xe.extendSelectionsBy(function(mn){if(ot)return pe<0?mn.from():mn.to();var Rt=ka(Be,mn.head,"div");mn.goalColumn!=null&&(Rt.left=mn.goalColumn),qe.push(Rt.left);var Qn=Re(Be,Rt,pe,ye);return ye=="page"&&mn==Xe.sel.primary()&&zl(Be,Bs(Be,Qn,"div").top-Rt.top),Qn},En),qe.length)for(var Tt=0;Tt<Xe.sel.ranges.length;Tt++)Xe.sel.ranges[Tt].goalColumn=qe[Tt]}),findWordAt:function(pe){var ye=this.doc,Be=In(ye,pe.line).text,Xe=pe.ch,qe=pe.ch;if(Be){var ot=this.getHelper(pe,"wordChars");(pe.sticky=="before"||qe==Be.length)&&Xe?--Xe:++qe;for(var Tt=Be.charAt(Xe),mn=St(Tt,ot)?function(Rt){return St(Rt,ot)}:/\s/.test(Tt)?function(Rt){return/\s/.test(Rt)}:function(Rt){return!/\s/.test(Rt)&&!St(Rt)};Xe>0&&mn(Be.charAt(Xe-1));)--Xe;for(;qe<Be.length&&mn(Be.charAt(qe));)++qe}return new Or(Gt(pe.line,Xe),Gt(pe.line,qe))},toggleOverwrite:function(pe){pe!=null&&pe==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?dn(this.display.cursorDiv,"CodeMirror-overwrite"):We(this.display.cursorDiv,"CodeMirror-overwrite"),wt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Pt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:ai(function(pe,ye){zs(this,pe,ye)}),getScrollInfo:function(){var pe=this.display.scroller;return{left:pe.scrollLeft,top:pe.scrollTop,height:pe.scrollHeight-Zs(this)-this.display.barHeight,width:pe.scrollWidth-Zs(this)-this.display.barWidth,clientHeight:Jc(this),clientWidth:Al(this)}},scrollIntoView:ai(function(pe,ye){pe==null?(pe={from:this.doc.sel.primary().head,to:null},ye==null&&(ye=this.options.cursorScrollMargin)):typeof pe=="number"?pe={from:Gt(pe,0),to:null}:pe.from==null&&(pe={from:pe,to:null}),pe.to||(pe.to=pe.from),pe.margin=ye||0,pe.from.line!=null?da(this,pe):Yu(this,pe.from,pe.to,pe.margin)}),setSize:ai(function(pe,ye){var Be=this,Xe=function(ot){return typeof ot=="number"||/^\d+$/.test(String(ot))?ot+"px":ot};pe!=null&&(this.display.wrapper.style.width=Xe(pe)),ye!=null&&(this.display.wrapper.style.height=Xe(ye)),this.options.lineWrapping&&rr(this);var qe=this.display.viewFrom;this.doc.iter(qe,this.display.viewTo,function(ot){if(ot.widgets){for(var Tt=0;Tt<ot.widgets.length;Tt++)if(ot.widgets[Tt].noHScroll){qo(Be,qe,"widget");break}}++qe}),this.curOp.forceUpdate=!0,wt(this,"refresh",this)}),operation:function(pe){return xn(this,pe)},startOperation:function(){return Ul(this)},endOperation:function(){return Tu(this)},refresh:ai(function(){var pe=this.display.cachedTextHeight;za(this),this.curOp.forceUpdate=!0,ro(this),zs(this,this.doc.scrollLeft,this.doc.scrollTop),zr(this.display),(pe==null||Math.abs(pe-Os(this.display))>.5||this.options.lineWrapping)&&Eo(this),wt(this,"refresh",this)}),swapDoc:ai(function(pe){var ye=this.doc;return ye.cm=null,this.state.selectingText&&this.state.selectingText(),_o(this,pe),ro(this),this.display.input.reset(),zs(this,pe.scrollLeft,pe.scrollTop),this.curOp.forceScroll=!0,$i(this,"swapDoc",this,ye),ye}),phrase:function(pe){var ye=this.options.phrases;return ye&&Object.prototype.hasOwnProperty.call(ye,pe)?ye[pe]:pe},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}},li(ie),ie.registerHelper=function(pe,ye,Be){fe.hasOwnProperty(pe)||(fe[pe]=ie[pe]={_global:[]}),fe[pe][ye]=Be},ie.registerGlobalHelper=function(pe,ye,Be,Xe){ie.registerHelper(pe,ye,Xe),fe[pe]._global.push({pred:Be,val:Xe})}}function Me(ie,ae,fe,pe,ye){var Be=ae,Xe=fe,qe=In(ie,ae.line),ot=ye&&ie.direction=="rtl"?-fe:fe;function Tt(){var Nr=ae.line+ot;return Nr<ie.first||Nr>=ie.first+ie.size?!1:(ae=new Gt(Nr,ae.ch,ae.sticky),qe=In(ie,Nr))}function mn(Nr){var Er;if(pe=="codepoint"){var $r=qe.text.charCodeAt(ae.ch+(pe>0?0:-1));isNaN($r)?Er=null:Er=new Gt(ae.line,Math.max(0,Math.min(qe.text.length,ae.ch+fe*($r>=55296&&$r<56320?2:1))),-fe)}else ye?Er=Rs(ie.cm,qe,ae,fe):Er=El(qe,ae,fe);if(Er==null)if(!Nr&&Tt())ae=$a(ye,ie.cm,qe,ae.line,ot);else return!1;else ae=Er;return!0}if(pe=="char"||pe=="codepoint")mn();else if(pe=="column")mn(!0);else if(pe=="word"||pe=="group")for(var Rt=null,Qn=pe=="group",_n=ie.cm&&ie.cm.getHelper(ae,"wordChars"),pi=!0;!(fe<0&&!mn(!pi));pi=!1){var Ci=qe.text.charAt(ae.ch)||`
`,ki=St(Ci,_n)?"w":Qn&&Ci==`
`?"n":!Qn||/\s/.test(Ci)?null:"p";if(Qn&&!pi&&!ki&&(ki="s"),Rt&&Rt!=ki){fe<0&&(fe=1,mn(),ae.sticky="after");break}if(ki&&(Rt=ki),fe>0&&!mn(!pi))break}var ar=uc(ie,ae,Be,Xe,!0);return Qt(Be,ar)&&(ar.hitSide=!0),ar}function Re(ie,ae,fe,pe){var ye=ie.doc,Be=ae.left,Xe;if(pe=="page"){var qe=Math.min(ie.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),ot=Math.max(qe-.5*Os(ie.display),3);Xe=(fe>0?ae.bottom:ae.top)+fe*ot}else pe=="line"&&(Xe=fe>0?ae.bottom+3:ae.top-3);for(var Tt;Tt=$s(ie,Be,Xe),!!Tt.outside;){if(fe<0?Xe<=0:Xe>=ye.height){Tt.hitSide=!0;break}Xe+=fe*5}return Tt}var He=function(ie){this.cm=ie,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ve,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};He.prototype.init=function(ie){var ae=this,fe=this,pe=fe.cm,ye=fe.div=ie.lineDiv;mf(ye,pe.options.spellcheck,pe.options.autocorrect,pe.options.autocapitalize);function Be(qe){for(var ot=qe.target;ot;ot=ot.parentNode){if(ot==ye)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ot.className))break}return!1}xt(ye,"paste",function(qe){!Be(qe)||nn(pe,qe)||Zg(qe,pe)||Ke<=11&&setTimeout(ri(pe,function(){return ae.updateFromDOM()}),20)}),xt(ye,"compositionstart",function(qe){ae.composing={data:qe.data,done:!1}}),xt(ye,"compositionupdate",function(qe){ae.composing||(ae.composing={data:qe.data,done:!1})}),xt(ye,"compositionend",function(qe){ae.composing&&(qe.data!=ae.composing.data&&ae.readFromDOMSoon(),ae.composing.done=!0)}),xt(ye,"touchstart",function(){return fe.forceCompositionEnd()}),xt(ye,"input",function(){ae.composing||ae.readFromDOMSoon()});function Xe(qe){if(!(!Be(qe)||nn(pe,qe))){if(pe.somethingSelected())mh({lineWise:!1,text:pe.getSelections()}),qe.type=="cut"&&pe.replaceSelection("",null,"cut");else if(pe.options.lineWiseCopyCut){var ot=dg(pe);mh({lineWise:!0,text:ot.text}),qe.type=="cut"&&pe.operation(function(){pe.setSelections(ot.ranges,0,It),pe.replaceSelection("",null,"cut")})}else return;if(qe.clipboardData){qe.clipboardData.clearData();var Tt=Ru.text.join(`
`);if(qe.clipboardData.setData("Text",Tt),qe.clipboardData.getData("Text")==Tt){qe.preventDefault();return}}var mn=vf(),Rt=mn.firstChild;pe.display.lineSpace.insertBefore(mn,pe.display.lineSpace.firstChild),Rt.value=Ru.text.join(`
`);var Qn=document.activeElement;Xt(Rt),setTimeout(function(){pe.display.lineSpace.removeChild(mn),Qn.focus(),Qn==ye&&fe.showPrimarySelection()},50)}}xt(ye,"copy",Xe),xt(ye,"cut",Xe)},He.prototype.screenReaderLabelChanged=function(ie){ie?this.div.setAttribute("aria-label",ie):this.div.removeAttribute("aria-label")},He.prototype.prepareSelection=function(){var ie=_c(this.cm,!1);return ie.focus=document.activeElement==this.div,ie},He.prototype.showSelection=function(ie,ae){!ie||!this.cm.display.view.length||((ie.focus||ae)&&this.showPrimarySelection(),this.showMultipleSelections(ie))},He.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},He.prototype.showPrimarySelection=function(){var ie=this.getSelection(),ae=this.cm,fe=ae.doc.sel.primary(),pe=fe.from(),ye=fe.to();if(ae.display.viewTo==ae.display.viewFrom||pe.line>=ae.display.viewTo||ye.line<ae.display.viewFrom){ie.removeAllRanges();return}var Be=Tn(ae,ie.anchorNode,ie.anchorOffset),Xe=Tn(ae,ie.focusNode,ie.focusOffset);if(!(Be&&!Be.bad&&Xe&&!Xe.bad&&yn(gn(Be,Xe),pe)==0&&yn(wn(Be,Xe),ye)==0)){var qe=ae.display.view,ot=pe.line>=ae.display.viewFrom&&dt(ae,pe)||{node:qe[0].measure.map[2],offset:0},Tt=ye.line<ae.display.viewTo&&dt(ae,ye);if(!Tt){var mn=qe[qe.length-1].measure,Rt=mn.maps?mn.maps[mn.maps.length-1]:mn.map;Tt={node:Rt[Rt.length-1],offset:Rt[Rt.length-2]-Rt[Rt.length-3]}}if(!ot||!Tt){ie.removeAllRanges();return}var Qn=ie.rangeCount&&ie.getRangeAt(0),_n;try{_n=nt(ot.node,ot.offset,Tt.offset,Tt.node)}catch(pi){}_n&&(!se&&ae.state.focused?(ie.collapse(ot.node,ot.offset),_n.collapsed||(ie.removeAllRanges(),ie.addRange(_n))):(ie.removeAllRanges(),ie.addRange(_n)),Qn&&ie.anchorNode==null?ie.addRange(Qn):se&&this.startGracePeriod()),this.rememberSelection()}},He.prototype.startGracePeriod=function(){var ie=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){ie.gracePeriod=!1,ie.selectionChanged()&&ie.cm.operation(function(){return ie.cm.curOp.selectionChanged=!0})},20)},He.prototype.showMultipleSelections=function(ie){st(this.cm.display.cursorDiv,ie.cursors),st(this.cm.display.selectionDiv,ie.selection)},He.prototype.rememberSelection=function(){var ie=this.getSelection();this.lastAnchorNode=ie.anchorNode,this.lastAnchorOffset=ie.anchorOffset,this.lastFocusNode=ie.focusNode,this.lastFocusOffset=ie.focusOffset},He.prototype.selectionInEditor=function(){var ie=this.getSelection();if(!ie.rangeCount)return!1;var ae=ie.getRangeAt(0).commonAncestorContainer;return $t(this.div,ae)},He.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},He.prototype.blur=function(){this.div.blur()},He.prototype.getField=function(){return this.div},He.prototype.supportsTouch=function(){return!0},He.prototype.receivedFocus=function(){var ie=this;this.selectionInEditor()?this.pollSelection():xn(this.cm,function(){return ie.cm.curOp.selectionChanged=!0});function ae(){ie.cm.state.focused&&(ie.pollSelection(),ie.polling.set(ie.cm.options.pollInterval,ae))}this.polling.set(this.cm.options.pollInterval,ae)},He.prototype.selectionChanged=function(){var ie=this.getSelection();return ie.anchorNode!=this.lastAnchorNode||ie.anchorOffset!=this.lastAnchorOffset||ie.focusNode!=this.lastFocusNode||ie.focusOffset!=this.lastFocusOffset},He.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var ie=this.getSelection(),ae=this.cm;if(ee&&Je&&this.cm.display.gutterSpecs.length&&vt(ie.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var fe=Tn(ae,ie.anchorNode,ie.anchorOffset),pe=Tn(ae,ie.focusNode,ie.focusOffset);fe&&pe&&xn(ae,function(){ws(ae.doc,Jo(fe,pe),It),(fe.bad||pe.bad)&&(ae.curOp.selectionChanged=!0)})}}},He.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var ie=this.cm,ae=ie.display,fe=ie.doc.sel.primary(),pe=fe.from(),ye=fe.to();if(pe.ch==0&&pe.line>ie.firstLine()&&(pe=Gt(pe.line-1,In(ie.doc,pe.line-1).length)),ye.ch==In(ie.doc,ye.line).text.length&&ye.line<ie.lastLine()&&(ye=Gt(ye.line+1,0)),pe.line<ae.viewFrom||ye.line>ae.viewTo-1)return!1;var Be,Xe,qe;pe.line==ae.viewFrom||(Be=Fr(ie,pe.line))==0?(Xe=bt(ae.view[0].line),qe=ae.view[0].node):(Xe=bt(ae.view[Be].line),qe=ae.view[Be-1].node.nextSibling);var ot=Fr(ie,ye.line),Tt,mn;if(ot==ae.view.length-1?(Tt=ae.viewTo-1,mn=ae.lineDiv.lastChild):(Tt=bt(ae.view[ot+1].line)-1,mn=ae.view[ot+1].node.previousSibling),!qe)return!1;for(var Rt=ie.doc.splitLines(Jt(ie,qe,mn,Xe,Tt)),Qn=zn(ie.doc,Gt(Xe,0),Gt(Tt,In(ie.doc,Tt).text.length));Rt.length>1&&Qn.length>1;)if(jt(Rt)==jt(Qn))Rt.pop(),Qn.pop(),Tt--;else if(Rt[0]==Qn[0])Rt.shift(),Qn.shift(),Xe++;else break;for(var _n=0,pi=0,Ci=Rt[0],ki=Qn[0],ar=Math.min(Ci.length,ki.length);_n<ar&&Ci.charCodeAt(_n)==ki.charCodeAt(_n);)++_n;for(var Nr=jt(Rt),Er=jt(Qn),$r=Math.min(Nr.length-(Rt.length==1?_n:0),Er.length-(Qn.length==1?_n:0));pi<$r&&Nr.charCodeAt(Nr.length-pi-1)==Er.charCodeAt(Er.length-pi-1);)++pi;if(Rt.length==1&&Qn.length==1&&Xe==pe.line)for(;_n&&_n>pe.ch&&Nr.charCodeAt(Nr.length-pi-1)==Er.charCodeAt(Er.length-pi-1);)_n--,pi++;Rt[Rt.length-1]=Nr.slice(0,Nr.length-pi).replace(/^\u200b+/,""),Rt[0]=Rt[0].slice(_n).replace(/\u200b+$/,"");var Hn=Gt(Xe,_n),Cr=Gt(Tt,Qn.length?jt(Qn).length-pi:0);if(Rt.length>1||Rt[0]||yn(Hn,Cr))return Mc(ie.doc,Rt,Hn,Cr,"+input"),!0},He.prototype.ensurePolled=function(){this.forceCompositionEnd()},He.prototype.reset=function(){this.forceCompositionEnd()},He.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},He.prototype.readFromDOMSoon=function(){var ie=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(ie.readDOMTimeout=null,ie.composing)if(ie.composing.done)ie.composing=null;else return;ie.updateFromDOM()},80))},He.prototype.updateFromDOM=function(){var ie=this;(this.cm.isReadOnly()||!this.pollContent())&&xn(this.cm,function(){return za(ie.cm)})},He.prototype.setUneditable=function(ie){ie.contentEditable="false"},He.prototype.onKeyPress=function(ie){ie.charCode==0||this.composing||(ie.preventDefault(),this.cm.isReadOnly()||ri(this.cm,ug)(this.cm,String.fromCharCode(ie.charCode==null?ie.keyCode:ie.charCode),0))},He.prototype.readOnlyChanged=function(ie){this.div.contentEditable=String(ie!="nocursor")},He.prototype.onContextMenu=function(){},He.prototype.resetPosition=function(){},He.prototype.needsContentAttribute=!0;function dt(ie,ae){var fe=Xn(ie,ae.line);if(!fe||fe.hidden)return null;var pe=In(ie.doc,ae.line),ye=Pc(fe,pe,ae.line),Be=Qe(pe,ie.doc.direction),Xe="left";if(Be){var qe=xe(Be,ae.ch);Xe=qe%2?"right":"left"}var ot=ta(ye.map,ae.ch,Xe);return ot.offset=ot.collapse=="right"?ot.end:ot.start,ot}function vt(ie){for(var ae=ie;ae;ae=ae.parentNode)if(/CodeMirror-gutter-wrapper/.test(ae.className))return!0;return!1}function At(ie,ae){return ae&&(ie.bad=!0),ie}function Jt(ie,ae,fe,pe,ye){var Be="",Xe=!1,qe=ie.doc.lineSeparator(),ot=!1;function Tt(_n){return function(pi){return pi.id==_n}}function mn(){Xe&&(Be+=qe,ot&&(Be+=qe),Xe=ot=!1)}function Rt(_n){_n&&(mn(),Be+=_n)}function Qn(_n){if(_n.nodeType==1){var pi=_n.getAttribute("cm-text");if(pi){Rt(pi);return}var Ci=_n.getAttribute("cm-marker"),ki;if(Ci){var ar=ie.findMarks(Gt(pe,0),Gt(ye+1,0),Tt(+Ci));ar.length&&(ki=ar[0].find(0))&&Rt(zn(ie.doc,ki.from,ki.to).join(qe));return}if(_n.getAttribute("contenteditable")=="false")return;var Nr=/^(pre|div|p|li|table|br)$/i.test(_n.nodeName);if(!/^br$/i.test(_n.nodeName)&&_n.textContent.length==0)return;Nr&&mn();for(var Er=0;Er<_n.childNodes.length;Er++)Qn(_n.childNodes[Er]);/^(pre|p)$/i.test(_n.nodeName)&&(ot=!0),Nr&&(Xe=!0)}else _n.nodeType==3&&Rt(_n.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Qn(ae),ae!=fe;)ae=ae.nextSibling,ot=!1;return Be}function Tn(ie,ae,fe){var pe;if(ae==ie.display.lineDiv){if(pe=ie.display.lineDiv.childNodes[fe],!pe)return At(ie.clipPos(Gt(ie.display.viewTo-1)),!0);ae=null,fe=0}else for(pe=ae;;pe=pe.parentNode){if(!pe||pe==ie.display.lineDiv)return null;if(pe.parentNode&&pe.parentNode==ie.display.lineDiv)break}for(var ye=0;ye<ie.display.view.length;ye++){var Be=ie.display.view[ye];if(Be.node==pe)return $n(Be,ae,fe)}}function $n(ie,ae,fe){var pe=ie.text.firstChild,ye=!1;if(!ae||!$t(pe,ae))return At(Gt(bt(ie.line),0),!0);if(ae==pe&&(ye=!0,ae=pe.childNodes[fe],fe=0,!ae)){var Be=ie.rest?jt(ie.rest):ie.line;return At(Gt(bt(Be),Be.text.length),ye)}var Xe=ae.nodeType==3?ae:null,qe=ae;for(!Xe&&ae.childNodes.length==1&&ae.firstChild.nodeType==3&&(Xe=ae.firstChild,fe&&(fe=Xe.nodeValue.length));qe.parentNode!=pe;)qe=qe.parentNode;var ot=ie.measure,Tt=ot.maps;function mn(ki,ar,Nr){for(var Er=-1;Er<(Tt?Tt.length:0);Er++)for(var $r=Er<0?ot.map:Tt[Er],Hn=0;Hn<$r.length;Hn+=3){var Cr=$r[Hn+2];if(Cr==ki||Cr==ar){var $o=bt(Er<0?ie.line:ie.rest[Er]),oi=$r[Hn]+Nr;return(Nr<0||Cr!=ki)&&(oi=$r[Hn+(Nr?1:0)]),Gt($o,oi)}}}var Rt=mn(Xe,qe,fe);if(Rt)return At(Rt,ye);for(var Qn=qe.nextSibling,_n=Xe?Xe.nodeValue.length-fe:0;Qn;Qn=Qn.nextSibling){if(Rt=mn(Qn,Qn.firstChild,0),Rt)return At(Gt(Rt.line,Rt.ch-_n),ye);_n+=Qn.textContent.length}for(var pi=qe.previousSibling,Ci=fe;pi;pi=pi.previousSibling){if(Rt=mn(pi,pi.firstChild,-1),Rt)return At(Gt(Rt.line,Rt.ch+Ci),ye);Ci+=pi.textContent.length}}var Cn=function(ie){this.cm=ie,this.prevInput="",this.pollingFast=!1,this.polling=new Ve,this.hasSelection=!1,this.composing=null};Cn.prototype.init=function(ie){var ae=this,fe=this,pe=this.cm;this.createField(ie);var ye=this.textarea;ie.wrapper.insertBefore(this.wrapper,ie.wrapper.firstChild),ze&&(ye.style.width="0px"),xt(ye,"input",function(){De&&Ke>=9&&ae.hasSelection&&(ae.hasSelection=null),fe.poll()}),xt(ye,"paste",function(Xe){nn(pe,Xe)||Zg(Xe,pe)||(pe.state.pasteIncoming=+new Date,fe.fastPoll())});function Be(Xe){if(!nn(pe,Xe)){if(pe.somethingSelected())mh({lineWise:!1,text:pe.getSelections()});else if(pe.options.lineWiseCopyCut){var qe=dg(pe);mh({lineWise:!0,text:qe.text}),Xe.type=="cut"?pe.setSelections(qe.ranges,null,It):(fe.prevInput="",ye.value=qe.text.join(`
`),Xt(ye))}else return;Xe.type=="cut"&&(pe.state.cutIncoming=+new Date)}}xt(ye,"cut",Be),xt(ye,"copy",Be),xt(ie.scroller,"paste",function(Xe){if(!($l(ie,Xe)||nn(pe,Xe))){if(!ye.dispatchEvent){pe.state.pasteIncoming=+new Date,fe.focus();return}var qe=new Event("paste");qe.clipboardData=Xe.clipboardData,ye.dispatchEvent(qe)}}),xt(ie.lineSpace,"selectstart",function(Xe){$l(ie,Xe)||xi(Xe)}),xt(ye,"compositionstart",function(){var Xe=pe.getCursor("from");fe.composing&&fe.composing.range.clear(),fe.composing={start:Xe,range:pe.markText(Xe,pe.getCursor("to"),{className:"CodeMirror-composing"})}}),xt(ye,"compositionend",function(){fe.composing&&(fe.poll(),fe.composing.range.clear(),fe.composing=null)})},Cn.prototype.createField=function(ie){this.wrapper=vf(),this.textarea=this.wrapper.firstChild},Cn.prototype.screenReaderLabelChanged=function(ie){ie?this.textarea.setAttribute("aria-label",ie):this.textarea.removeAttribute("aria-label")},Cn.prototype.prepareSelection=function(){var ie=this.cm,ae=ie.display,fe=ie.doc,pe=_c(ie);if(ie.options.moveInputWithCursor){var ye=ka(ie,fe.sel.primary().head,"div"),Be=ae.wrapper.getBoundingClientRect(),Xe=ae.lineDiv.getBoundingClientRect();pe.teTop=Math.max(0,Math.min(ae.wrapper.clientHeight-10,ye.top+Xe.top-Be.top)),pe.teLeft=Math.max(0,Math.min(ae.wrapper.clientWidth-10,ye.left+Xe.left-Be.left))}return pe},Cn.prototype.showSelection=function(ie){var ae=this.cm,fe=ae.display;st(fe.cursorDiv,ie.cursors),st(fe.selectionDiv,ie.selection),ie.teTop!=null&&(this.wrapper.style.top=ie.teTop+"px",this.wrapper.style.left=ie.teLeft+"px")},Cn.prototype.reset=function(ie){if(!(this.contextMenuPending||this.composing)){var ae=this.cm;if(ae.somethingSelected()){this.prevInput="";var fe=ae.getSelection();this.textarea.value=fe,ae.state.focused&&Xt(this.textarea),De&&Ke>=9&&(this.hasSelection=fe)}else ie||(this.prevInput=this.textarea.value="",De&&Ke>=9&&(this.hasSelection=null))}},Cn.prototype.getField=function(){return this.textarea},Cn.prototype.supportsTouch=function(){return!1},Cn.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ne||Pt()!=this.textarea))try{this.textarea.focus()}catch(ie){}},Cn.prototype.blur=function(){this.textarea.blur()},Cn.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Cn.prototype.receivedFocus=function(){this.slowPoll()},Cn.prototype.slowPoll=function(){var ie=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){ie.poll(),ie.cm.state.focused&&ie.slowPoll()})},Cn.prototype.fastPoll=function(){var ie=!1,ae=this;ae.pollingFast=!0;function fe(){var pe=ae.poll();!pe&&!ie?(ie=!0,ae.polling.set(60,fe)):(ae.pollingFast=!1,ae.slowPoll())}ae.polling.set(20,fe)},Cn.prototype.poll=function(){var ie=this,ae=this.cm,fe=this.textarea,pe=this.prevInput;if(this.contextMenuPending||!ae.state.focused||Ue(fe)&&!pe&&!this.composing||ae.isReadOnly()||ae.options.disableInput||ae.state.keySeq)return!1;var ye=fe.value;if(ye==pe&&!ae.somethingSelected())return!1;if(De&&Ke>=9&&this.hasSelection===ye||ge&&/[\uf700-\uf7ff]/.test(ye))return ae.display.input.reset(),!1;if(ae.doc.sel==ae.display.selForContextMenu){var Be=ye.charCodeAt(0);if(Be==8203&&!pe&&(pe="\u200B"),Be==8666)return this.reset(),this.cm.execCommand("undo")}for(var Xe=0,qe=Math.min(pe.length,ye.length);Xe<qe&&pe.charCodeAt(Xe)==ye.charCodeAt(Xe);)++Xe;return xn(ae,function(){ug(ae,ye.slice(Xe),pe.length-Xe,null,ie.composing?"*compose":null),ye.length>1e3||ye.indexOf(`
`)>-1?fe.value=ie.prevInput="":ie.prevInput=ye,ie.composing&&(ie.composing.range.clear(),ie.composing.range=ae.markText(ie.composing.start,ae.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Cn.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Cn.prototype.onKeyPress=function(){De&&Ke>=9&&(this.hasSelection=null),this.fastPoll()},Cn.prototype.onContextMenu=function(ie){var ae=this,fe=ae.cm,pe=fe.display,ye=ae.textarea;ae.contextMenuPending&&ae.contextMenuPending();var Be=Fa(fe,ie),Xe=pe.scroller.scrollTop;if(!Be||Ye)return;var qe=fe.options.resetSelectionOnContextMenu;qe&&fe.doc.sel.contains(Be)==-1&&ri(fe,ws)(fe.doc,Jo(Be),It);var ot=ye.style.cssText,Tt=ae.wrapper.style.cssText,mn=ae.wrapper.offsetParent.getBoundingClientRect();ae.wrapper.style.cssText="position: static",ye.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(ie.clientY-mn.top-5)+"px; left: "+(ie.clientX-mn.left-5)+`px;
z-index: 1000; background: `+(De?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Rt;Ee&&(Rt=window.scrollY),pe.input.focus(),Ee&&window.scrollTo(null,Rt),pe.input.reset(),fe.somethingSelected()||(ye.value=ae.prevInput=" "),ae.contextMenuPending=_n,pe.selForContextMenu=fe.doc.sel,clearTimeout(pe.detectingSelectAll);function Qn(){if(ye.selectionStart!=null){var Ci=fe.somethingSelected(),ki="\u200B"+(Ci?ye.value:"");ye.value="\u21DA",ye.value=ki,ae.prevInput=Ci?"":"\u200B",ye.selectionStart=1,ye.selectionEnd=ki.length,pe.selForContextMenu=fe.doc.sel}}function _n(){if(ae.contextMenuPending==_n&&(ae.contextMenuPending=!1,ae.wrapper.style.cssText=Tt,ye.style.cssText=ot,De&&Ke<9&&pe.scrollbars.setScrollTop(pe.scroller.scrollTop=Xe),ye.selectionStart!=null)){(!De||De&&Ke<9)&&Qn();var Ci=0,ki=function(){pe.selForContextMenu==fe.doc.sel&&ye.selectionStart==0&&ye.selectionEnd>0&&ae.prevInput=="\u200B"?ri(fe,qa)(fe):Ci++<10?pe.detectingSelectAll=setTimeout(ki,500):(pe.selForContextMenu=null,pe.input.reset())};pe.detectingSelectAll=setTimeout(ki,200)}}if(De&&Ke>=9&&Qn(),ke){Ri(ie);var pi=function(){Pn(window,"mouseup",pi),setTimeout(_n,20)};xt(window,"mouseup",pi)}else setTimeout(_n,50)},Cn.prototype.readOnlyChanged=function(ie){ie||this.reset(),this.textarea.disabled=ie=="nocursor",this.textarea.readOnly=!!ie},Cn.prototype.setUneditable=function(){},Cn.prototype.needsContentAttribute=!1;function ci(ie,ae){if(ae=ae?an(ae):{},ae.value=ie.value,!ae.tabindex&&ie.tabIndex&&(ae.tabindex=ie.tabIndex),!ae.placeholder&&ie.placeholder&&(ae.placeholder=ie.placeholder),ae.autofocus==null){var fe=Pt();ae.autofocus=fe==ie||ie.getAttribute("autofocus")!=null&&fe==document.body}function pe(){ie.value=qe.getValue()}var ye;if(ie.form&&(xt(ie.form,"submit",pe),!ae.leaveSubmitMethodAlone)){var Be=ie.form;ye=Be.submit;try{var Xe=Be.submit=function(){pe(),Be.submit=ye,Be.submit(),Be.submit=Xe}}catch(ot){}}ae.finishInit=function(ot){ot.save=pe,ot.getTextArea=function(){return ie},ot.toTextArea=function(){ot.toTextArea=isNaN,pe(),ie.parentNode.removeChild(ot.getWrapperElement()),ie.style.display="",ie.form&&(Pn(ie.form,"submit",pe),!ae.leaveSubmitMethodAlone&&typeof ie.form.submit=="function"&&(ie.form.submit=ye))}},ie.style.display="none";var qe=ls(function(ot){return ie.parentNode.insertBefore(ot,ie.nextSibling)},ae);return qe}function si(ie){ie.off=Pn,ie.on=xt,ie.wheelEventPixels=Co,ie.Doc=Gl,ie.splitLines=Yi,ie.countColumn=it,ie.findColumn=ei,ie.isWordChar=Zt,ie.Pass=sn,ie.signal=wt,ie.Line=Ra,ie.changeEnd=Da,ie.scrollbarModel=nd,ie.Pos=Gt,ie.cmpPos=yn,ie.modes=Fo,ie.mimeModes=Vo,ie.resolveMode=on,ie.getMode=ln,ie.modeExtensions=qt,ie.extendMode=Nt,ie.copyState=On,ie.startState=Vt,ie.innerMode=Un,ie.commands=Zl,ie.keyMap=vu,ie.keyName=ch,ie.isModifierKey=Vd,ie.lookupKey=Du,ie.normalizeKeyMap=kh,ie.StringStream=yt,ie.SharedTextMarker=Lc,ie.TextMarker=pn,ie.LineWidget=gl,ie.e_preventDefault=xi,ie.e_stopPropagation=Mi,ie.e_stop=Ri,ie.addClass=dn,ie.contains=$t,ie.rmClass=We,ie.keyNames=mu}Uf(ls),he(ls);var Yn="iter insert remove copy getEditor constructor".split(" ");for(var Ur in Gl.prototype)Gl.prototype.hasOwnProperty(Ur)&&gt(Yn,Ur)<0&&(ls.prototype[Ur]=function(ie){return function(){return ie.apply(this.doc,arguments)}}(Gl.prototype[Ur]));return li(Gl),ls.inputStyles={textarea:Cn,contenteditable:He},ls.defineMode=function(ie){!ls.defaults.mode&&ie!="null"&&(ls.defaults.mode=ie),Io.apply(this,arguments)},ls.defineMIME=Oi,ls.defineMode("null",function(){return{token:function(ie){return ie.skipToEnd()}}}),ls.defineMIME("text/plain","null"),ls.defineExtension=function(ie,ae){ls.prototype[ie]=ae},ls.defineDocExtension=function(ie,ae){Gl.prototype[ie]=ae},ls.fromTextArea=ci,si(ls),ls.version="5.58.2",ls})},25419:function(_e,be,oe){(function(se){se(oe(89780),oe(15525),oe(98101))})(function(se){"use strict";se.defineMode("markdown",function(Ce,we){var Ie=se.getMode(Ce,"text/html"),De=Ie.name=="null";function Ke(it){if(se.findModeByName){var Ve=se.findModeByName(it);Ve&&(it=Ve.mime||Ve.mimes[0])}var gt=se.getMode(Ce,it);return gt.name=="null"?null:gt}we.highlightFormatting===void 0&&(we.highlightFormatting=!1),we.maxBlockquoteDepth===void 0&&(we.maxBlockquoteDepth=0),we.taskLists===void 0&&(we.taskLists=!1),we.strikethrough===void 0&&(we.strikethrough=!1),we.emoji===void 0&&(we.emoji=!1),we.fencedCodeBlockHighlighting===void 0&&(we.fencedCodeBlockHighlighting=!0),we.fencedCodeBlockDefaultMode===void 0&&(we.fencedCodeBlockDefaultMode="text/plain"),we.xml===void 0&&(we.xml=!0),we.tokenTypeOverrides===void 0&&(we.tokenTypeOverrides={});var Ee={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 et in Ee)Ee.hasOwnProperty(et)&&we.tokenTypeOverrides[et]&&(Ee[et]=we.tokenTypeOverrides[et]);var Je=/^([*\-_])(?:\s*\1){2,}\s*$/,Ye=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,tt=/^\[(x| )\](?=\s)/i,ht=we.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,kt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,ze=/^[^#!\[\]*_\\<>` "'(~:]+/,ee=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,ne=/^\s*\[[^\]]+?\]:.*$/,ge=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,ue=" ";function me(it,Ve,gt){return Ve.f=Ve.inline=gt,gt(it,Ve)}function Se(it,Ve,gt){return Ve.f=Ve.block=gt,gt(it,Ve)}function Ne(it){return!it||!/\S/.test(it.string)}function ke(it){if(it.linkTitle=!1,it.linkHref=!1,it.linkText=!1,it.em=!1,it.strong=!1,it.strikethrough=!1,it.quote=0,it.indentedCode=!1,it.f==We){var Ve=De;if(!Ve){var gt=se.innerMode(Ie,it.htmlState);Ve=gt.mode.name=="xml"&&gt.state.tagStart===null&&!gt.state.context&&gt.state.tokenize.isInText}Ve&&(it.f=Mt,it.block=Te,it.htmlState=null)}return it.trailingSpace=0,it.trailingSpaceNewLine=!1,it.prevLine=it.thisLine,it.thisLine={stream:null},null}function Te(it,Ve){var gt=it.column()===Ve.indentation,Bt=Ne(Ve.prevLine.stream),sn=Ve.indentedCode,It=Ve.prevLine.hr,en=Ve.list!==!1,En=(Ve.listStack[Ve.listStack.length-1]||0)+3;Ve.indentedCode=!1;var ei=Ve.indentation;if(Ve.indentationDiff===null&&(Ve.indentationDiff=Ve.indentation,en)){for(Ve.list=null;ei<Ve.listStack[Ve.listStack.length-1];)Ve.listStack.pop(),Ve.listStack.length?Ve.indentation=Ve.listStack[Ve.listStack.length-1]:Ve.list=!1;Ve.list!==!1&&(Ve.indentationDiff=ei-Ve.listStack[Ve.listStack.length-1])}var An=!Bt&&!It&&!Ve.prevLine.header&&(!en||!sn)&&!Ve.prevLine.fencedCodeEnd,Kn=(Ve.list===!1||It||Bt)&&Ve.indentation<=En&&it.match(Je),jt=null;if(Ve.indentationDiff>=4&&(sn||Ve.prevLine.fencedCodeEnd||Ve.prevLine.header||Bt))return it.skipToEnd(),Ve.indentedCode=!0,Ee.code;if(it.eatSpace())return null;if(gt&&Ve.indentation<=En&&(jt=it.match(ht))&&jt[1].length<=6)return Ve.quote=0,Ve.header=jt[1].length,Ve.thisLine.header=!0,we.highlightFormatting&&(Ve.formatting="header"),Ve.f=Ve.inline,st(Ve);if(Ve.indentation<=En&&it.eat(">"))return Ve.quote=gt?1:Ve.quote+1,we.highlightFormatting&&(Ve.formatting="quote"),it.eatSpace(),st(Ve);if(!Kn&&!Ve.setext&&gt&&Ve.indentation<=En&&(jt=it.match(Ye))){var Nn=jt[1]?"ol":"ul";return Ve.indentation=ei+it.current().length,Ve.list=!0,Ve.quote=0,Ve.listStack.push(Ve.indentation),Ve.em=!1,Ve.strong=!1,Ve.code=!1,Ve.strikethrough=!1,we.taskLists&&it.match(tt,!1)&&(Ve.taskList=!0),Ve.f=Ve.inline,we.highlightFormatting&&(Ve.formatting=["list","list-"+Nn]),st(Ve)}else{if(gt&&Ve.indentation<=En&&(jt=it.match(ee,!0)))return Ve.quote=0,Ve.fencedEndRE=new RegExp(jt[1]+"+ *$"),Ve.localMode=we.fencedCodeBlockHighlighting&&Ke(jt[2]||we.fencedCodeBlockDefaultMode),Ve.localMode&&(Ve.localState=se.startState(Ve.localMode)),Ve.f=Ve.block=$e,we.highlightFormatting&&(Ve.formatting="code-block"),Ve.code=-1,st(Ve);if(Ve.setext||(!An||!en)&&!Ve.quote&&Ve.list===!1&&!Ve.code&&!Kn&&!ne.test(it.string)&&(jt=it.lookAhead(1))&&(jt=jt.match(kt)))return Ve.setext?(Ve.header=Ve.setext,Ve.setext=0,it.skipToEnd(),we.highlightFormatting&&(Ve.formatting="header")):(Ve.header=jt[0].charAt(0)=="="?1:2,Ve.setext=Ve.header),Ve.thisLine.header=!0,Ve.f=Ve.inline,st(Ve);if(Kn)return it.skipToEnd(),Ve.hr=!0,Ve.thisLine.hr=!0,Ee.hr;if(it.peek()==="[")return me(it,Ve,zt)}return me(it,Ve,Ve.inline)}function We(it,Ve){var gt=Ie.token(it,Ve.htmlState);if(!De){var Bt=se.innerMode(Ie,Ve.htmlState);(Bt.mode.name=="xml"&&Bt.state.tagStart===null&&!Bt.state.context&&Bt.state.tokenize.isInText||Ve.md_inside&&it.current().indexOf(">")>-1)&&(Ve.f=Mt,Ve.block=Te,Ve.htmlState=null)}return gt}function $e(it,Ve){var gt=Ve.listStack[Ve.listStack.length-1]||0,Bt=Ve.indentation<gt,sn=gt+3;if(Ve.fencedEndRE&&Ve.indentation<=sn&&(Bt||it.match(Ve.fencedEndRE))){we.highlightFormatting&&(Ve.formatting="code-block");var It;return Bt||(It=st(Ve)),Ve.localMode=Ve.localState=null,Ve.block=Te,Ve.f=Mt,Ve.fencedEndRE=null,Ve.code=0,Ve.thisLine.fencedCodeEnd=!0,Bt?Se(it,Ve,Ve.block):It}else return Ve.localMode?Ve.localMode.token(it,Ve.localState):(it.skipToEnd(),Ee.code)}function st(it){var Ve=[];if(it.formatting){Ve.push(Ee.formatting),typeof it.formatting=="string"&&(it.formatting=[it.formatting]);for(var gt=0;gt<it.formatting.length;gt++)Ve.push(Ee.formatting+"-"+it.formatting[gt]),it.formatting[gt]==="header"&&Ve.push(Ee.formatting+"-"+it.formatting[gt]+"-"+it.header),it.formatting[gt]==="quote"&&(!we.maxBlockquoteDepth||we.maxBlockquoteDepth>=it.quote?Ve.push(Ee.formatting+"-"+it.formatting[gt]+"-"+it.quote):Ve.push("error"))}if(it.taskOpen)return Ve.push("meta"),Ve.length?Ve.join(" "):null;if(it.taskClosed)return Ve.push("property"),Ve.length?Ve.join(" "):null;if(it.linkHref?Ve.push(Ee.linkHref,"url"):(it.strong&&Ve.push(Ee.strong),it.em&&Ve.push(Ee.em),it.strikethrough&&Ve.push(Ee.strikethrough),it.emoji&&Ve.push(Ee.emoji),it.linkText&&Ve.push(Ee.linkText),it.code&&Ve.push(Ee.code),it.image&&Ve.push(Ee.image),it.imageAltText&&Ve.push(Ee.imageAltText,"link"),it.imageMarker&&Ve.push(Ee.imageMarker)),it.header&&Ve.push(Ee.header,Ee.header+"-"+it.header),it.quote&&(Ve.push(Ee.quote),!we.maxBlockquoteDepth||we.maxBlockquoteDepth>=it.quote?Ve.push(Ee.quote+"-"+it.quote):Ve.push(Ee.quote+"-"+we.maxBlockquoteDepth)),it.list!==!1){var Bt=(it.listStack.length-1)%3;Bt?Bt===1?Ve.push(Ee.list2):Ve.push(Ee.list3):Ve.push(Ee.list1)}return it.trailingSpaceNewLine?Ve.push("trailing-space-new-line"):it.trailingSpace&&Ve.push("trailing-space-"+(it.trailingSpace%2?"a":"b")),Ve.length?Ve.join(" "):null}function ut(it,Ve){if(it.match(ze,!0))return st(Ve)}function Mt(it,Ve){var gt=Ve.text(it,Ve);if(typeof gt!="undefined")return gt;if(Ve.list)return Ve.list=null,st(Ve);if(Ve.taskList){var Bt=it.match(tt,!0)[1]===" ";return Bt?Ve.taskOpen=!0:Ve.taskClosed=!0,we.highlightFormatting&&(Ve.formatting="task"),Ve.taskList=!1,st(Ve)}if(Ve.taskOpen=!1,Ve.taskClosed=!1,Ve.header&&it.match(/^#+$/,!0))return we.highlightFormatting&&(Ve.formatting="header"),st(Ve);var sn=it.next();if(Ve.linkTitle){Ve.linkTitle=!1;var It=sn;sn==="("&&(It=")"),It=(It+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var en="^\\s*(?:[^"+It+"\\\\]+|\\\\\\\\|\\\\.)"+It;if(it.match(new RegExp(en),!0))return Ee.linkHref}if(sn==="`"){var En=Ve.formatting;we.highlightFormatting&&(Ve.formatting="code"),it.eatWhile("`");var ei=it.current().length;if(Ve.code==0&&(!Ve.quote||ei==1))return Ve.code=ei,st(Ve);if(ei==Ve.code){var An=st(Ve);return Ve.code=0,An}else return Ve.formatting=En,st(Ve)}else if(Ve.code)return st(Ve);if(sn==="\\"&&(it.next(),we.highlightFormatting)){var Kn=st(Ve),jt=Ee.formatting+"-escape";return Kn?Kn+" "+jt:jt}if(sn==="!"&&it.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Ve.imageMarker=!0,Ve.image=!0,we.highlightFormatting&&(Ve.formatting="image"),st(Ve);if(sn==="["&&Ve.imageMarker&&it.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Ve.imageMarker=!1,Ve.imageAltText=!0,we.highlightFormatting&&(Ve.formatting="image"),st(Ve);if(sn==="]"&&Ve.imageAltText){we.highlightFormatting&&(Ve.formatting="image");var Kn=st(Ve);return Ve.imageAltText=!1,Ve.image=!1,Ve.inline=Ve.f=$t,Kn}if(sn==="["&&!Ve.image)return Ve.linkText&&it.match(/^.*?\]/)||(Ve.linkText=!0,we.highlightFormatting&&(Ve.formatting="link")),st(Ve);if(sn==="]"&&Ve.linkText){we.highlightFormatting&&(Ve.formatting="link");var Kn=st(Ve);return Ve.linkText=!1,Ve.inline=Ve.f=it.match(/\(.*?\)| ?\[.*?\]/,!1)?$t:Mt,Kn}if(sn==="<"&&it.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Ve.f=Ve.inline=nt,we.highlightFormatting&&(Ve.formatting="link");var Kn=st(Ve);return Kn?Kn+=" ":Kn="",Kn+Ee.linkInline}if(sn==="<"&&it.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Ve.f=Ve.inline=nt,we.highlightFormatting&&(Ve.formatting="link");var Kn=st(Ve);return Kn?Kn+=" ":Kn="",Kn+Ee.linkEmail}if(we.xml&&sn==="<"&&it.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Nn=it.string.indexOf(">",it.pos);if(Nn!=-1){var Gn=it.string.substring(it.start,Nn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Gn)&&(Ve.md_inside=!0)}return it.backUp(1),Ve.htmlState=se.startState(Ie),Se(it,Ve,We)}if(we.xml&&sn==="<"&&it.match(/^\/\w*?>/))return Ve.md_inside=!1,"tag";if(sn==="*"||sn==="_"){for(var ii=1,Sn=it.pos==1?" ":it.string.charAt(it.pos-2);ii<3&&it.eat(sn);)ii++;var Yt=it.peek()||" ",Zt=!/\s/.test(Yt)&&(!ge.test(Yt)||/\s/.test(Sn)||ge.test(Sn)),St=!/\s/.test(Sn)&&(!ge.test(Sn)||/\s/.test(Yt)||ge.test(Yt)),rt=null,Ft=null;if(ii%2&&(!Ve.em&&Zt&&(sn==="*"||!St||ge.test(Sn))?rt=!0:Ve.em==sn&&St&&(sn==="*"||!Zt||ge.test(Yt))&&(rt=!1)),ii>1&&(!Ve.strong&&Zt&&(sn==="*"||!St||ge.test(Sn))?Ft=!0:Ve.strong==sn&&St&&(sn==="*"||!Zt||ge.test(Yt))&&(Ft=!1)),Ft!=null||rt!=null){we.highlightFormatting&&(Ve.formatting=rt==null?"strong":Ft==null?"em":"strong em"),rt===!0&&(Ve.em=sn),Ft===!0&&(Ve.strong=sn);var An=st(Ve);return rt===!1&&(Ve.em=!1),Ft===!1&&(Ve.strong=!1),An}}else if(sn===" "&&(it.eat("*")||it.eat("_"))){if(it.peek()===" ")return st(Ve);it.backUp(1)}if(we.strikethrough){if(sn==="~"&&it.eatWhile(sn)){if(Ve.strikethrough){we.highlightFormatting&&(Ve.formatting="strikethrough");var An=st(Ve);return Ve.strikethrough=!1,An}else if(it.match(/^[^\s]/,!1))return Ve.strikethrough=!0,we.highlightFormatting&&(Ve.formatting="strikethrough"),st(Ve)}else if(sn===" "&&it.match(/^~~/,!0)){if(it.peek()===" ")return st(Ve);it.backUp(2)}}if(we.emoji&&sn===":"&&it.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Ve.emoji=!0,we.highlightFormatting&&(Ve.formatting="emoji");var Ot=st(Ve);return Ve.emoji=!1,Ot}return sn===" "&&(it.match(/^ +$/,!1)?Ve.trailingSpace++:Ve.trailingSpace&&(Ve.trailingSpaceNewLine=!0)),st(Ve)}function nt(it,Ve){var gt=it.next();if(gt===">"){Ve.f=Ve.inline=Mt,we.highlightFormatting&&(Ve.formatting="link");var Bt=st(Ve);return Bt?Bt+=" ":Bt="",Bt+Ee.linkInline}return it.match(/^[^>]+/,!0),Ee.linkInline}function $t(it,Ve){if(it.eatSpace())return null;var gt=it.next();return gt==="("||gt==="["?(Ve.f=Ve.inline=dn(gt==="("?")":"]"),we.highlightFormatting&&(Ve.formatting="link-string"),Ve.linkHref=!0,st(Ve)):"error"}var Pt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function dn(it){return function(Ve,gt){var Bt=Ve.next();if(Bt===it){gt.f=gt.inline=Mt,we.highlightFormatting&&(gt.formatting="link-string");var sn=st(gt);return gt.linkHref=!1,sn}return Ve.match(Pt[it]),gt.linkHref=!0,st(gt)}}function zt(it,Ve){return it.match(/^([^\]\\]|\\.)*\]:/,!1)?(Ve.f=Xt,it.next(),we.highlightFormatting&&(Ve.formatting="link"),Ve.linkText=!0,st(Ve)):me(it,Ve,Mt)}function Xt(it,Ve){if(it.match(/^\]:/,!0)){Ve.f=Ve.inline=fn,we.highlightFormatting&&(Ve.formatting="link");var gt=st(Ve);return Ve.linkText=!1,gt}return it.match(/^([^\]\\]|\\.)+/,!0),Ee.linkText}function fn(it,Ve){return it.eatSpace()?null:(it.match(/^[^\s]+/,!0),it.peek()===void 0?Ve.linkTitle=!0:it.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Ve.f=Ve.inline=Mt,Ee.linkHref+" url")}var an={startState:function(){return{f:Te,prevLine:{stream:null},thisLine:{stream:null},block:Te,htmlState:null,indentation:0,inline:Mt,text:ut,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(it){return{f:it.f,prevLine:it.prevLine,thisLine:it.thisLine,block:it.block,htmlState:it.htmlState&&se.copyState(Ie,it.htmlState),indentation:it.indentation,localMode:it.localMode,localState:it.localMode?se.copyState(it.localMode,it.localState):null,inline:it.inline,text:it.text,formatting:!1,linkText:it.linkText,linkTitle:it.linkTitle,linkHref:it.linkHref,code:it.code,em:it.em,strong:it.strong,strikethrough:it.strikethrough,emoji:it.emoji,header:it.header,setext:it.setext,hr:it.hr,taskList:it.taskList,list:it.list,listStack:it.listStack.slice(0),quote:it.quote,indentedCode:it.indentedCode,trailingSpace:it.trailingSpace,trailingSpaceNewLine:it.trailingSpaceNewLine,md_inside:it.md_inside,fencedEndRE:it.fencedEndRE}},token:function(it,Ve){if(Ve.formatting=!1,it!=Ve.thisLine.stream){if(Ve.header=0,Ve.hr=!1,it.match(/^\s*$/,!0))return ke(Ve),null;if(Ve.prevLine=Ve.thisLine,Ve.thisLine={stream:it},Ve.taskList=!1,Ve.trailingSpace=0,Ve.trailingSpaceNewLine=!1,!Ve.localState&&(Ve.f=Ve.block,Ve.f!=We)){var gt=it.match(/^\s*/,!0)[0].replace(/\t/g,ue).length;if(Ve.indentation=gt,Ve.indentationDiff=null,gt>0)return null}}return Ve.f(it,Ve)},innerMode:function(it){return it.block==We?{state:it.htmlState,mode:Ie}:it.localState?{state:it.localState,mode:it.localMode}:{state:it,mode:an}},indent:function(it,Ve,gt){return it.block==We&&Ie.indent?Ie.indent(it.htmlState,Ve,gt):it.localState&&it.localMode.indent?it.localMode.indent(it.localState,Ve,gt):se.Pass},blankLine:ke,getType:st,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return an},"xml"),se.defineMIME("text/markdown","markdown"),se.defineMIME("text/x-markdown","markdown")})},98101:function(_e,be,oe){(function(se){se(oe(89780))})(function(se){"use strict";se.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 Ce=0;Ce<se.modeInfo.length;Ce++){var we=se.modeInfo[Ce];we.mimes&&(we.mime=we.mimes[0])}se.findModeByMIME=function(Ie){Ie=Ie.toLowerCase();for(var De=0;De<se.modeInfo.length;De++){var Ke=se.modeInfo[De];if(Ke.mime==Ie)return Ke;if(Ke.mimes){for(var Ee=0;Ee<Ke.mimes.length;Ee++)if(Ke.mimes[Ee]==Ie)return Ke}}if(/\+xml$/.test(Ie))return se.findModeByMIME("application/xml");if(/\+json$/.test(Ie))return se.findModeByMIME("application/json")},se.findModeByExtension=function(Ie){Ie=Ie.toLowerCase();for(var De=0;De<se.modeInfo.length;De++){var Ke=se.modeInfo[De];if(Ke.ext){for(var Ee=0;Ee<Ke.ext.length;Ee++)if(Ke.ext[Ee]==Ie)return Ke}}},se.findModeByFileName=function(Ie){for(var De=0;De<se.modeInfo.length;De++){var Ke=se.modeInfo[De];if(Ke.file&&Ke.file.test(Ie))return Ke}var Ee=Ie.lastIndexOf("."),et=Ee>-1&&Ie.substring(Ee+1,Ie.length);if(et)return se.findModeByExtension(et)},se.findModeByName=function(Ie){Ie=Ie.toLowerCase();for(var De=0;De<se.modeInfo.length;De++){var Ke=se.modeInfo[De];if(Ke.name.toLowerCase()==Ie)return Ke;if(Ke.alias){for(var Ee=0;Ee<Ke.alias.length;Ee++)if(Ke.alias[Ee].toLowerCase()==Ie)return Ke}}}})},67549:function(_e,be,oe){(function(se){se(oe(89780))})(function(se){"use strict";se.defineMode("stex",function(Ce,we){"use strict";function Ie(ze,ee){ze.cmdState.push(ee)}function De(ze){return ze.cmdState.length>0?ze.cmdState[ze.cmdState.length-1]:null}function Ke(ze){var ee=ze.cmdState.pop();ee&&ee.closeBracket()}function Ee(ze){for(var ee=ze.cmdState,ne=ee.length-1;ne>=0;ne--){var ge=ee[ne];if(ge.name!="DEFAULT")return ge}return{styleIdentifier:function(){return null}}}function et(ze,ee,ne){return function(){this.name=ze,this.bracketNo=0,this.style=ee,this.styles=ne,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Je={};Je.importmodule=et("importmodule","tag",["string","builtin"]),Je.documentclass=et("documentclass","tag",["","atom"]),Je.usepackage=et("usepackage","tag",["atom"]),Je.begin=et("begin","tag",["atom"]),Je.end=et("end","tag",["atom"]),Je.label=et("label","tag",["atom"]),Je.ref=et("ref","tag",["atom"]),Je.eqref=et("eqref","tag",["atom"]),Je.cite=et("cite","tag",["atom"]),Je.bibitem=et("bibitem","tag",["atom"]),Je.Bibitem=et("Bibitem","tag",["atom"]),Je.RBibitem=et("RBibitem","tag",["atom"]),Je.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Ye(ze,ee){ze.f=ee}function tt(ze,ee){var ne;if(ze.match(/^\\[a-zA-Z@]+/)){var ge=ze.current().slice(1);return ne=Je.hasOwnProperty(ge)?Je[ge]:Je.DEFAULT,ne=new ne,Ie(ee,ne),Ye(ee,kt),ne.style}if(ze.match(/^\\[$&%#{}_]/)||ze.match(/^\\[,;!\/\\]/))return"tag";if(ze.match("\\["))return Ye(ee,function(me,Se){return ht(me,Se,"\\]")}),"keyword";if(ze.match("\\("))return Ye(ee,function(me,Se){return ht(me,Se,"\\)")}),"keyword";if(ze.match("$$"))return Ye(ee,function(me,Se){return ht(me,Se,"$$")}),"keyword";if(ze.match("$"))return Ye(ee,function(me,Se){return ht(me,Se,"$")}),"keyword";var ue=ze.next();if(ue=="%")return ze.skipToEnd(),"comment";if(ue=="}"||ue=="]"){if(ne=De(ee),ne)ne.closeBracket(ue),Ye(ee,kt);else return"error";return"bracket"}else return ue=="{"||ue=="["?(ne=Je.DEFAULT,ne=new ne,Ie(ee,ne),"bracket"):/\d/.test(ue)?(ze.eatWhile(/[\w.%]/),"atom"):(ze.eatWhile(/[\w\-_]/),ne=Ee(ee),ne.name=="begin"&&(ne.argument=ze.current()),ne.styleIdentifier())}function ht(ze,ee,ne){if(ze.eatSpace())return null;if(ne&&ze.match(ne))return Ye(ee,tt),"keyword";if(ze.match(/^\\[a-zA-Z@]+/))return"tag";if(ze.match(/^[a-zA-Z]+/))return"variable-2";if(ze.match(/^\\[$&%#{}_]/)||ze.match(/^\\[,;!\/]/)||ze.match(/^[\^_&]/))return"tag";if(ze.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(ze.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ge=ze.next();return ge=="{"||ge=="}"||ge=="["||ge=="]"||ge=="("||ge==")"?"bracket":ge=="%"?(ze.skipToEnd(),"comment"):"error"}function kt(ze,ee){var ne=ze.peek(),ge;return ne=="{"||ne=="["?(ge=De(ee),ge.openBracket(ne),ze.eat(ne),Ye(ee,tt),"bracket"):/[ \t\r]/.test(ne)?(ze.eat(ne),null):(Ye(ee,tt),Ke(ee),tt(ze,ee))}return{startState:function(){var ze=we.inMathMode?function(ee,ne){return ht(ee,ne)}:tt;return{cmdState:[],f:ze}},copyState:function(ze){return{cmdState:ze.cmdState.slice(),f:ze.f}},token:function(ze,ee){return ee.f(ze,ee)},blankLine:function(ze){ze.f=tt,ze.cmdState.length=0},lineComment:"%"}}),se.defineMIME("text/x-stex","stex"),se.defineMIME("text/x-latex","stex")})},15525:function(_e,be,oe){(function(se){se(oe(89780))})(function(se){"use strict";var Ce={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},we={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};se.defineMode("xml",function(Ie,De){var Ke=Ie.indentUnit,Ee={},et=De.htmlMode?Ce:we;for(var Je in et)Ee[Je]=et[Je];for(var Je in De)Ee[Je]=De[Je];var Ye,tt;function ht(nt,$t){function Pt(Xt){return $t.tokenize=Xt,Xt(nt,$t)}var dn=nt.next();if(dn=="<")return nt.eat("!")?nt.eat("[")?nt.match("CDATA[")?Pt(ee("atom","]]>")):null:nt.match("--")?Pt(ee("comment","-->")):nt.match("DOCTYPE",!0,!0)?(nt.eatWhile(/[\w\._\-]/),Pt(ne(1))):null:nt.eat("?")?(nt.eatWhile(/[\w\._\-]/),$t.tokenize=ee("meta","?>"),"meta"):(Ye=nt.eat("/")?"closeTag":"openTag",$t.tokenize=kt,"tag bracket");if(dn=="&"){var zt;return nt.eat("#")?nt.eat("x")?zt=nt.eatWhile(/[a-fA-F\d]/)&&nt.eat(";"):zt=nt.eatWhile(/[\d]/)&&nt.eat(";"):zt=nt.eatWhile(/[\w\.\-:]/)&&nt.eat(";"),zt?"atom":"error"}else return nt.eatWhile(/[^&<]/),null}ht.isInText=!0;function kt(nt,$t){var Pt=nt.next();if(Pt==">"||Pt=="/"&&nt.eat(">"))return $t.tokenize=ht,Ye=Pt==">"?"endTag":"selfcloseTag","tag bracket";if(Pt=="=")return Ye="equals",null;if(Pt=="<"){$t.tokenize=ht,$t.state=Se,$t.tagName=$t.tagStart=null;var dn=$t.tokenize(nt,$t);return dn?dn+" tag error":"tag error"}else return/[\'\"]/.test(Pt)?($t.tokenize=ze(Pt),$t.stringStartCol=nt.column(),$t.tokenize(nt,$t)):(nt.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function ze(nt){var $t=function(Pt,dn){for(;!Pt.eol();)if(Pt.next()==nt){dn.tokenize=kt;break}return"string"};return $t.isInAttribute=!0,$t}function ee(nt,$t){return function(Pt,dn){for(;!Pt.eol();){if(Pt.match($t)){dn.tokenize=ht;break}Pt.next()}return nt}}function ne(nt){return function($t,Pt){for(var dn;(dn=$t.next())!=null;){if(dn=="<")return Pt.tokenize=ne(nt+1),Pt.tokenize($t,Pt);if(dn==">")if(nt==1){Pt.tokenize=ht;break}else return Pt.tokenize=ne(nt-1),Pt.tokenize($t,Pt)}return"meta"}}function ge(nt,$t,Pt){this.prev=nt.context,this.tagName=$t,this.indent=nt.indented,this.startOfLine=Pt,(Ee.doNotIndent.hasOwnProperty($t)||nt.context&&nt.context.noIndent)&&(this.noIndent=!0)}function ue(nt){nt.context&&(nt.context=nt.context.prev)}function me(nt,$t){for(var Pt;;){if(!nt.context||(Pt=nt.context.tagName,!Ee.contextGrabbers.hasOwnProperty(Pt)||!Ee.contextGrabbers[Pt].hasOwnProperty($t)))return;ue(nt)}}function Se(nt,$t,Pt){return nt=="openTag"?(Pt.tagStart=$t.column(),Ne):nt=="closeTag"?ke:Se}function Ne(nt,$t,Pt){return nt=="word"?(Pt.tagName=$t.current(),tt="tag",$e):Ee.allowMissingTagName&&nt=="endTag"?(tt="tag bracket",$e(nt,$t,Pt)):(tt="error",Ne)}function ke(nt,$t,Pt){if(nt=="word"){var dn=$t.current();return Pt.context&&Pt.context.tagName!=dn&&Ee.implicitlyClosed.hasOwnProperty(Pt.context.tagName)&&ue(Pt),Pt.context&&Pt.context.tagName==dn||Ee.matchClosing===!1?(tt="tag",Te):(tt="tag error",We)}else return Ee.allowMissingTagName&&nt=="endTag"?(tt="tag bracket",Te(nt,$t,Pt)):(tt="error",We)}function Te(nt,$t,Pt){return nt!="endTag"?(tt="error",Te):(ue(Pt),Se)}function We(nt,$t,Pt){return tt="error",Te(nt,$t,Pt)}function $e(nt,$t,Pt){if(nt=="word")return tt="attribute",st;if(nt=="endTag"||nt=="selfcloseTag"){var dn=Pt.tagName,zt=Pt.tagStart;return Pt.tagName=Pt.tagStart=null,nt=="selfcloseTag"||Ee.autoSelfClosers.hasOwnProperty(dn)?me(Pt,dn):(me(Pt,dn),Pt.context=new ge(Pt,dn,zt==Pt.indented)),Se}return tt="error",$e}function st(nt,$t,Pt){return nt=="equals"?ut:(Ee.allowMissing||(tt="error"),$e(nt,$t,Pt))}function ut(nt,$t,Pt){return nt=="string"?Mt:nt=="word"&&Ee.allowUnquoted?(tt="string",$e):(tt="error",$e(nt,$t,Pt))}function Mt(nt,$t,Pt){return nt=="string"?Mt:$e(nt,$t,Pt)}return{startState:function(nt){var $t={tokenize:ht,state:Se,indented:nt||0,tagName:null,tagStart:null,context:null};return nt!=null&&($t.baseIndent=nt),$t},token:function(nt,$t){if(!$t.tagName&&nt.sol()&&($t.indented=nt.indentation()),nt.eatSpace())return null;Ye=null;var Pt=$t.tokenize(nt,$t);return(Pt||Ye)&&Pt!="comment"&&(tt=null,$t.state=$t.state(Ye||Pt,nt,$t),tt&&(Pt=tt=="error"?Pt+" error":tt)),Pt},indent:function(nt,$t,Pt){var dn=nt.context;if(nt.tokenize.isInAttribute)return nt.tagStart==nt.indented?nt.stringStartCol+1:nt.indented+Ke;if(dn&&dn.noIndent)return se.Pass;if(nt.tokenize!=kt&&nt.tokenize!=ht)return Pt?Pt.match(/^(\s*)/)[0].length:0;if(nt.tagName)return Ee.multilineTagIndentPastTag!==!1?nt.tagStart+nt.tagName.length+2:nt.tagStart+Ke*(Ee.multilineTagIndentFactor||1);if(Ee.alignCDATA&&/<!\[CDATA\[/.test($t))return 0;var zt=$t&&/^<(\/)?([\w_:\.-]*)/.exec($t);if(zt&&zt[1])for(;dn;)if(dn.tagName==zt[2]){dn=dn.prev;break}else if(Ee.implicitlyClosed.hasOwnProperty(dn.tagName))dn=dn.prev;else break;else if(zt)for(;dn;){var Xt=Ee.contextGrabbers[dn.tagName];if(Xt&&Xt.hasOwnProperty(zt[2]))dn=dn.prev;else break}for(;dn&&dn.prev&&!dn.startOfLine;)dn=dn.prev;return dn?dn.indent+Ke:nt.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Ee.htmlMode?"html":"xml",helperType:Ee.htmlMode?"html":"xml",skipAttribute:function(nt){nt.state==ut&&(nt.state=$e)},xmlCurrentTag:function(nt){return nt.tagName?{name:nt.tagName,close:nt.type=="closeTag"}:null},xmlCurrentContext:function(nt){for(var $t=[],Pt=nt.context;Pt;Pt=Pt.prev)Pt.tagName&&$t.push(Pt.tagName);return $t.reverse()}}}),se.defineMIME("text/xml","xml"),se.defineMIME("application/xml","xml"),se.mimeModes.hasOwnProperty("text/html")||se.defineMIME("text/html",{name:"xml",htmlMode:!0})})},58951:function(_e,be){"use strict";var oe;be.Q=Ie,oe=De;var se=",",Ce=" ",we="";function Ie(Ke){for(var Ee=[],et=String(Ke||we),Je=et.indexOf(se),Ye=0,tt=!1,ht;!tt;)Je===-1&&(Je=et.length,tt=!0),ht=et.slice(Ye,Je).trim(),(ht||!tt)&&Ee.push(ht),Ye=Je+1,Je=et.indexOf(se,Ye);return Ee}function De(Ke,Ee){var et=Ee||{},Je=et.padLeft===!1?we:Ce,Ye=et.padRight?Ce:we;return Ke[Ke.length-1]===we&&(Ke=Ke.concat(we)),Ke.join(Ye+se+Je).trim()}},58847:function(_e){"use strict";var be=Object.prototype.hasOwnProperty,oe=Object.prototype.toString,se=Object.defineProperty,Ce=Object.getOwnPropertyDescriptor,we=function(et){return typeof Array.isArray=="function"?Array.isArray(et):oe.call(et)==="[object Array]"},Ie=function(et){if(!et||oe.call(et)!=="[object Object]")return!1;var Je=be.call(et,"constructor"),Ye=et.constructor&&et.constructor.prototype&&be.call(et.constructor.prototype,"isPrototypeOf");if(et.constructor&&!Je&&!Ye)return!1;var tt;for(tt in et);return typeof tt=="undefined"||be.call(et,tt)},De=function(et,Je){se&&Je.name==="__proto__"?se(et,Je.name,{enumerable:!0,configurable:!0,value:Je.newValue,writable:!0}):et[Je.name]=Je.newValue},Ke=function(et,Je){if(Je==="__proto__")if(be.call(et,Je)){if(Ce)return Ce(et,Je).value}else return;return et[Je]};_e.exports=function Ee(){var et,Je,Ye,tt,ht,kt,ze=arguments[0],ee=1,ne=arguments.length,ge=!1;for(typeof ze=="boolean"&&(ge=ze,ze=arguments[1]||{},ee=2),(ze==null||typeof ze!="object"&&typeof ze!="function")&&(ze={});ee<ne;++ee)if(et=arguments[ee],et!=null)for(Je in et)Ye=Ke(ze,Je),tt=Ke(et,Je),ze!==tt&&(ge&&tt&&(Ie(tt)||(ht=we(tt)))?(ht?(ht=!1,kt=Ye&&we(Ye)?Ye:[]):kt=Ye&&Ie(Ye)?Ye:{},De(ze,{name:Je,newValue:Ee(ge,kt,tt)})):typeof tt!="undefined"&&De(ze,{name:Je,newValue:tt}));return ze}},12378:function(_e,be,oe){"use strict";oe.d(be,{$u:function(){return Je},BD:function(){return ii},E9:function(){return et},FF:function(){return Sr},FJ:function(){return Se},Hn:function(){return me},KX:function(){return ke},NB:function(){return Ge},S0:function(){return jt},UL:function(){return Ye},Vk:function(){return ue},Vm:function(){return xe},YI:function(){return Nn},ZA:function(){return we},Zt:function(){return tt},al:function(){return rt},bn:function(){return St},bx:function(){return Sn},g2:function(){return Gn},h1:function(){return ut},hD:function(){return li},l4:function(){return Ke},rU:function(){return Ae},s_:function(){return Yt},uz:function(){return ct},z6:function(){return ht}}),_e=oe.hmd(_e),function(){var Ue;function no(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function pr(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:no(a)}}function fo(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var Fo=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},Vo;if(typeof Object.setPrototypeOf=="function")Vo=Object.setPrototypeOf;else{var Io;e:{var Oi={a:!0},on={};try{on.__proto__=Oi,Io=on.a;break e}catch(a){}Io=!1}Vo=Io?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var ln=Vo;function qt(a,y){if(a.prototype=Fo(y.prototype),a.prototype.constructor=a,ln)ln(a,y);else for(var x in y)if(x!="prototype")if(Object.defineProperties){var b=Object.getOwnPropertyDescriptor(y,x);b&&Object.defineProperty(a,x,b)}else a[x]=y[x];a.QA=y.prototype}var Nt=typeof oe.g!="undefined"&&oe.g!=null?oe.g:self,On=typeof Object.assign=="function"?Object.assign:function(a,y){for(var x=1;x<arguments.length;x++){var b=arguments[x];if(b)for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&(a[E]=b[E])}return a},Un=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function Vt(a,y){if(y){var x=Nt;a=a.split(".");for(var b=0;b<a.length-1;b++){var E=a[b];E in x||(x[E]={}),x=x[E]}a=a[a.length-1],b=x[a],y=y(b),y!=b&&y!=null&&Un(x,a,{writable:!0,value:y})}}Vt("Object.assign",function(a){return a||On}),Vt("Array.prototype.fill",function(a){return a||function(y,x,b){var E=this.length||0;for(0>x&&(x=Math.max(0,E+x)),(b==null||b>E)&&(b=E),b=Number(b),0>b&&(b=Math.max(0,E+b)),x=Number(x||0);x<b;x++)this[x]=y;return this}});var yt=typeof globalThis=="object"&&globalThis||typeof oe.g=="object"&&oe.g.global===oe.g&&oe.g||typeof self=="object"&&self.self===self&&self||{};yt.requestAnimationFrame===void 0&&(yt.setImmediate===void 0?yt.requestAnimationFrame=function(a){yt.setTimeout(a,0)}:yt.requestAnimationFrame=yt.setImmediate);function In(){}function zn(a,y){var x=-1;return function(){var b=this,E=arguments;x!==-1&&yt.clearTimeout(x),x=mi(function(){x=-1,a.apply(b,E)},y)}}function mi(a,y){return yt.setTimeout(a,y)}function Rn(a){return yt.document.createElement(a)}function bt(a){throw Error(a)}function Ut(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),bt(a)}function Ln(a,y,x,b){x=x===null?"*":typeof x=="string"?x:typeof x=="function"&&typeof x.className=="string"?x.className:"",b!==void 0&&(x+="."+b),bt(x+" is not in the range "+y+": "+a)}function ni(a){yt.console&&yt.console.log(a)}function Gt(a){return typeof a=="object"&&a!==null}function yn(a){return Array.isArray(a)||yt.NodeList&&a instanceof yt.NodeList||yt.HTMLCollection&&a instanceof yt.HTMLCollection}function Qt(a){return Array.prototype.slice.call(a)}function un(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):bt("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function wn(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):bt("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function gn(){var a=zi.pop();return a===void 0?[]:a}function kn(a){a.length=0,zi.push(a)}function Bn(a){if(typeof a=="function"){if(a.className)return a.className;if(a.name)return a.name;var y=a.toString();if(y=y.substring(9,y.indexOf("(")).trim(),y!=="")return a._className=y}else if(Gt(a)&&a.constructor)return Bn(a.constructor);return typeof a}function Vn(a){var y=a;return Gt(a)&&(a.text?y=a.text:a.name?y=a.name:a.key!==void 0?y=a.key:a.id!==void 0?y=a.id:a.constructor===Object&&(a.Text?y=a.Text:a.Name?y=a.Name:a.Key!==void 0?y=a.Key:a.Id!==void 0?y=a.Id:a.ID!==void 0&&(y=a.ID))),y===void 0?"undefined":y===null?"null":y.toString()}function Jn(a,y){if(a.hasOwnProperty(y))return!0;for(a=Object.getPrototypeOf(a);a&&a!==Function;){if(a.hasOwnProperty(y))return!0;var x=a.CA;if(x&&x[y])return!0;a=Object.getPrototypeOf(a)}return!1}function Wn(a,y,x){Object.defineProperty(pa.prototype,a,{get:y,set:x})}function gi(a){for(var y=[],x=0;256>x;x++)y["0123456789abcdef".charAt(x>>4)+"0123456789abcdef".charAt(x&15)]=String.fromCharCode(x);a.length%2&&(a="0"+a),x=[];for(var b=0,E=0;E<a.length;E+=2)x[b++]=y[a.substr(E,2)];for(a=x.join(""),a=a===""?"0":a,y=[],x=0;256>x;x++)y[x]=x;for(x=b=0;256>x;x++)b=(b+y[x]+119)%256,E=y[x],y[x]=y[b],y[b]=E;b=x=0;for(var z="",te=0;te<a.length;te++)x=(x+1)%256,b=(b+y[x])%256,E=y[x],y[x]=y[b],y[b]=E,z+=String.fromCharCode(a.charCodeAt(te)^y[(y[x]+y[b])%256]);return z.indexOf("GoJS 2.1 evaluation")>-1||z.indexOf("\xA9 1998-2021 Northwoods Software")>-1||z.indexOf("Not for distribution or production use")>-1||z.indexOf("gojs.net")>-1?"":z}var Fi=yt.navigator!==void 0&&0<yt.navigator.userAgent.indexOf("Trident/7"),ir=yt.navigator!==void 0&&yt.navigator.platform!==void 0&&yt.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,zi=[];Object.freeze([]),In.className="Util",In.Dx="32ab5ff3b26f42dc0ed90f21472913b5",In.adym="gojs.net",In.vfo="28e645fdb266",In.className="Util";function tn(a,y,x){kr(this),this.j=a,this.xa=y,this.o=x}tn.prototype.toString=function(){return"EnumValue."+this.xa};function Ai(a,y){return y==null||y===""?null:a[y]}Nt.Object.defineProperties(tn.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),tn.className="EnumValue";function Bi(){this.ew=[]}Bi.prototype.toString=function(){return this.ew.join("")},Bi.prototype.add=function(a){a!==""&&this.ew.push(a)},Bi.className="StringBuilder";function Ti(){}Ti.className="PropertyCollection";var hr={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){yt.console&&yt.console.log(a)},HA:function(a,y,x,b){a.strokeStyle="red",a.fillStyle="red",a.font="8px sans-serif",a.beginPath(),a.moveTo(-10,0),a.lineTo(10,0),a.moveTo(0,-10),a.lineTo(0,10),a.stroke(),a.setTransform(1,0,0,1,0,0),a.scale(x,x),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.lineWidth=2,a.beginPath(),a.moveTo(b.left,b.top+20),a.lineTo(b.left,b.top),a.lineTo(b.left+20,b.top),a.moveTo(b.right,b.bottom-20),a.lineTo(b.right,b.bottom),a.lineTo(b.right-20,b.bottom),a.stroke(),a.fillText("DB: "+Math.round(b.x)+", "+Math.round(b.y)+", "+Math.round(b.width)+", "+Math.round(b.height),b.left,b.top-5)},DA:function(a){var y={},x;for(x in a){if(y.x=x,y.x!=="licenseKey"){var b=a[y.x];if(b.prototype!==void 0){y.Zl=Object.getOwnPropertyNames(b.prototype);for(var E={Tj:0};E.Tj<y.Zl.length;E={Tj:E.Tj},E.Tj++){var z=Object.getOwnPropertyDescriptor(b.prototype,y.Zl[E.Tj]);z.get!==void 0&&z.set===void 0&&Object.defineProperty(b.prototype,y.Zl[E.Tj],{set:function(te,re){return function(){throw Error("Property "+te.Zl[re.Tj]+" of "+te.x+" is read-only.")}}(y,E)})}}}y={Zl:y.Zl,x:y.x}}}};function tr(){}tr.prototype.reset=function(){},tr.prototype.next=function(){return!1},tr.prototype.Ad=function(){return!1},tr.prototype.first=function(){return null},tr.prototype.any=function(){return!1},tr.prototype.all=function(){return!0},tr.prototype.each=function(){return this},tr.prototype.map=function(){return this},tr.prototype.filter=function(){return this},tr.prototype.de=function(){},tr.prototype.toString=function(){return"EmptyIterator"},Nt.Object.defineProperties(tr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),tr.prototype.first=tr.prototype.first,tr.prototype.hasNext=tr.prototype.Ad,tr.prototype.next=tr.prototype.next,tr.prototype.reset=tr.prototype.reset;var br=null;tr.className="EmptyIterator",br=new tr;function Xi(a){this.key=-1,this.value=a}Xi.prototype.reset=function(){this.key=-1},Xi.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},Xi.prototype.Ad=function(){return this.next()},Xi.prototype.first=function(){return this.key=0,this.value},Xi.prototype.any=function(a){return this.key=-1,a(this.value)},Xi.prototype.all=function(a){return this.key=-1,a(this.value)},Xi.prototype.each=function(a){return this.key=-1,a(this.value),this},Xi.prototype.map=function(a){return new Xi(a(this.value))},Xi.prototype.filter=function(a){return a(this.value)?new Xi(this.value):br},Xi.prototype.de=function(){this.value=null},Xi.prototype.toString=function(){return"SingletonIterator("+this.value+")"},Nt.Object.defineProperties(Xi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),Xi.prototype.first=Xi.prototype.first,Xi.prototype.hasNext=Xi.prototype.Ad,Xi.prototype.next=Xi.prototype.next,Xi.prototype.reset=Xi.prototype.reset,Xi.className="SingletonIterator";function Hi(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}Hi.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},Hi.prototype.next=function(){var a=this.Bb;if(a.Ja!==this.qa&&0>this.key)return!1;a=a.s;var y=a.length,x=++this.Za,b=this.qf;if(b!==null)for(;x<y;){var E=a[x];if(b(E))return this.key=this.Za=x,this.value=E,!0;x++}else{if(x<y)return this.key=x,this.value=a[x],!0;this.de()}return!1},Hi.prototype.Ad=function(){return this.next()},Hi.prototype.first=function(){var a=this.Bb;this.qa=a.Ja,this.Za=0,a=a.s;var y=a.length,x=this.qf;if(x!==null){for(var b=0;b<y;){var E=a[b];if(x(E))return this.key=this.Za=b,this.value=E;b++}return null}return 0<y?(a=a[0],this.key=0,this.value=a):null},Hi.prototype.any=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,b=this.qf,E=0;E<x;E++){var z=y[E];if((b===null||b(z))&&a(z))return!0}return!1},Hi.prototype.all=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,b=this.qf,E=0;E<x;E++){var z=y[E];if((b===null||b(z))&&!a(z))return!1}return!0},Hi.prototype.each=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,b=this.qf,E=0;E<x;E++){var z=y[E];(b===null||b(z))&&a(z)}return this},Hi.prototype.map=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var b=y.length,E=this.qf,z=0;z<b;z++){var te=y[z];(E===null||E(te))&&x.push(a(te))}return a=new Ht,a.s=x,a.xb(),a.iterator},Hi.prototype.filter=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var b=y.length,E=this.qf,z=0;z<b;z++){var te=y[z];(E===null||E(te))&&a(te)&&x.push(te)}return a=new Ht,a.s=x,a.xb(),a.iterator},Hi.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},Hi.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},Nt.Object.defineProperties(Hi.prototype,{iterator:{get:function(){return this}},predicate:{get:function(){return this.qf},set:function(a){this.qf=a}},count:{get:function(){var a=this.qf;if(a!==null){for(var y=0,x=this.Bb.s,b=x.length,E=0;E<b;E++)a(x[E])&&y++;return y}return this.Bb.s.length}}}),Hi.prototype.first=Hi.prototype.first,Hi.prototype.hasNext=Hi.prototype.Ad,Hi.prototype.next=Hi.prototype.next,Hi.prototype.reset=Hi.prototype.reset,Hi.className="ListIterator";function Ir(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}Ir.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},Ir.prototype.next=function(){var a=this.Bb;if(a.Ja!==this.qa&&0>this.key)return!1;var y=--this.Za;return 0<=y?(this.key=y,this.value=a.s[y],!0):(this.de(),!1)},Ir.prototype.Ad=function(){return this.next()},Ir.prototype.first=function(){var a=this.Bb;this.qa=a.Ja;var y=a.s;return this.Za=a=y.length-1,0<=a?(y=y[a],this.key=a,this.value=y):null},Ir.prototype.any=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(a(y[x]))return!0;return!1},Ir.prototype.all=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(!a(y[x]))return!1;return!0},Ir.prototype.each=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)a(y[x]);return this},Ir.prototype.map=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var b=y.length;for(this.Za=b,--b;0<=b;b--)x.push(a(y[b]));return a=new Ht,a.s=x,a.xb(),a.iterator},Ir.prototype.filter=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var b=y.length;for(this.Za=b,--b;0<=b;b--){var E=y[b];a(E)&&x.push(E)}return a=new Ht,a.s=x,a.xb(),a.iterator},Ir.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},Ir.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},Nt.Object.defineProperties(Ir.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),Ir.prototype.first=Ir.prototype.first,Ir.prototype.hasNext=Ir.prototype.Ad,Ir.prototype.next=Ir.prototype.next,Ir.prototype.reset=Ir.prototype.reset,Ir.className="ListIteratorBackwards";function Ht(a){kr(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&bt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ue=Ht.prototype,Ue.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Ue.freeze=function(){return this._isFrozen=!0,this},Ue.ka=function(){return this._isFrozen=!1,this},Ue.toString=function(){return"List()#"+Dr(this)},Ue.add=function(a){return a===null?this:(this._isFrozen&&Ut(this,a),this.s.push(a),this.xb(),this)},Ue.push=function(a){this.add(a)},Ue.addAll=function(a){if(a===null)return this;this._isFrozen&&Ut(this);var y=this.s;if(yn(a))for(var x=a.length,b=0;b<x;b++)y.push(a[b]);else for(a=a.iterator;a.next();)y.push(a.value);return this.xb(),this},Ue.clear=function(){this._isFrozen&&Ut(this),this.s.length=0,this.xb()},Ue.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},Ue.has=function(a){return this.contains(a)},Ue.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},Ue.M=function(a){var y=this.s;return(0>a||a>=y.length)&&Ln(a,"0 <= i < length",Ht,"elt:i"),y[a]},Ue.get=function(a){return this.M(a)},Ue.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&Ln(a,"0 <= i < length",Ht,"setElt:i"),this._isFrozen&&Ut(this,a),x[a]=y},Ue.set=function(a,y){this.cd(a,y)},Ue.first=function(){var a=this.s;return a.length===0?null:a[0]},Ue.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},Ue.pop=function(){this._isFrozen&&Ut(this);var a=this.s;return 0<a.length?a.pop():null},Ht.prototype.any=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)if(a(y[b]))return!0;return!1},Ht.prototype.all=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)if(!a(y[b]))return!1;return!0},Ht.prototype.each=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)a(y[b]);return this},Ht.prototype.map=function(a){for(var y=new Ht,x=[],b=this.s,E=b.length,z=0;z<E;z++)x.push(a(b[z]));return y.s=x,y.xb(),y},Ht.prototype.filter=function(a){for(var y=new Ht,x=[],b=this.s,E=b.length,z=0;z<E;z++){var te=b[z];a(te)&&x.push(te)}return y.s=x,y.xb(),y},Ue=Ht.prototype,Ue.Gb=function(a,y){0>a&&Ln(a,">= 0",Ht,"insertAt:i"),this._isFrozen&&Ut(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},Ue.remove=function(a){if(a===null)return!1;this._isFrozen&&Ut(this,a);var y=this.s;return a=y.indexOf(a),a===-1?!1:(a===y.length-1?y.pop():y.splice(a,1),this.xb(),!0)},Ue.delete=function(a){return this.remove(a)},Ue.mb=function(a){var y=this.s;(0>a||a>=y.length)&&Ln(a,"0 <= i < length",Ht,"removeAt:i"),this._isFrozen&&Ut(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},Ue.removeRange=function(a,y){var x=this.s,b=x.length;if(0>a)a=0;else if(a>=b)return this;if(0>y)return this;if(y>=b&&(y=b-1),a>y)return this;this._isFrozen&&Ut(this);for(var E=a,z=y+1;z<b;)x[E++]=x[z++];return x.length=b-(y-a+1),this.xb(),this},Ht.prototype.copy=function(){var a=new Ht,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},Ue=Ht.prototype,Ue.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),b=0;b<y;b++)x[b]=a[b];return x},Ue.Iv=function(){for(var a=new Fn,y=this.s,x=this.count,b=0;b<x;b++)a.add(y[b]);return a},Ue.sort=function(a){return this._isFrozen&&Ut(this),this.s.sort(a),this.xb(),this},Ue.zi=function(a,y,x){var b=this.s,E=b.length;y===void 0&&(y=0),x===void 0&&(x=E),this._isFrozen&&Ut(this);var z=x-y;if(1>=z)return this;if((0>y||y>=E-1)&&Ln(y,"0 <= from < length",Ht,"sortRange:from"),z===2)return x=b[y],E=b[y+1],0<a(x,E)&&(b[y]=E,b[y+1]=x,this.xb()),this;if(y===0)if(x>=E)b.sort(a);else for(y=b.slice(0,x),y.sort(a),a=0;a<x;a++)b[a]=y[a];else if(x>=E)for(x=b.slice(y),x.sort(a),a=y;a<E;a++)b[a]=x[a-y];else for(E=b.slice(y,x),E.sort(a),a=y;a<x;a++)b[a]=E[a-y];return this.xb(),this},Ue.reverse=function(){return this._isFrozen&&Ut(this),this.s.reverse(),this.xb(),this},Nt.Object.defineProperties(Ht.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 br;var a=this.Sa;return a!==null?(a.reset(),a):new Hi(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return br;var a=this.Hg;return a!==null?(a.reset(),a):new Ir(this)}}}),Ht.prototype.reverse=Ht.prototype.reverse,Ht.prototype.sortRange=Ht.prototype.zi,Ht.prototype.sort=Ht.prototype.sort,Ht.prototype.toSet=Ht.prototype.Iv,Ht.prototype.toArray=Ht.prototype.Fa,Ht.prototype.removeRange=Ht.prototype.removeRange,Ht.prototype.removeAt=Ht.prototype.mb,Ht.prototype.delete=Ht.prototype.delete,Ht.prototype.remove=Ht.prototype.remove,Ht.prototype.insertAt=Ht.prototype.Gb,Ht.prototype.pop=Ht.prototype.pop,Ht.prototype.last=Ht.prototype.jc,Ht.prototype.first=Ht.prototype.first,Ht.prototype.set=Ht.prototype.set,Ht.prototype.setElt=Ht.prototype.cd,Ht.prototype.get=Ht.prototype.get,Ht.prototype.elt=Ht.prototype.M,Ht.prototype.indexOf=Ht.prototype.indexOf,Ht.prototype.has=Ht.prototype.has,Ht.prototype.contains=Ht.prototype.contains,Ht.prototype.clear=Ht.prototype.clear,Ht.prototype.addAll=Ht.prototype.addAll,Ht.prototype.push=Ht.prototype.push,Ht.prototype.add=Ht.prototype.add,Ht.prototype.thaw=Ht.prototype.ka,Ht.prototype.freeze=Ht.prototype.freeze,Ht.className="List";function Kr(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Kr.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},Kr.prototype.next=function(){var a=this.eg;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},Kr.prototype.Ad=function(){return this.next()},Kr.prototype.first=function(){var a=this.eg;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},Kr.prototype.any=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Kr.prototype.all=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Kr.prototype.each=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},Kr.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new Ht;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Kr.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new Ht;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},Kr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},Kr.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},Nt.Object.defineProperties(Kr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),Kr.prototype.first=Kr.prototype.first,Kr.prototype.hasNext=Kr.prototype.Ad,Kr.prototype.next=Kr.prototype.next,Kr.prototype.reset=Kr.prototype.reset,Kr.className="SetIterator";function Fn(a){kr(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&bt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ue=Fn.prototype,Ue.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Ue.freeze=function(){return this._isFrozen=!0,this},Ue.ka=function(){return this._isFrozen=!1,this},Ue.toString=function(){return"Set()#"+Dr(this)},Ue.add=function(a){if(a===null)return this;this._isFrozen&&Ut(this,a);var y=a;return Gt(a)&&(y=Go(a)),this.Tb[y]===void 0&&(this.Sb++,a=new io(a,a),this.Tb[y]=a,y=this.kf,y===null?this.ea=a:(a.ll=y,y.va=a),this.kf=a,this.xb()),this},Ue.addAll=function(a){if(a===null)return this;if(this._isFrozen&&Ut(this),yn(a))for(var y=a.length,x=0;x<y;x++)this.add(a[x]);else for(a=a.iterator;a.next();)this.add(a.value);return this},Ue.contains=function(a){if(a===null)return!1;var y=a;return Gt(a)&&(y=Dr(a),y===void 0)?!1:this.Tb[y]!==void 0},Ue.has=function(a){return this.contains(a)},Ue.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},Ue.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},Ue.first=function(){var a=this.ea;return a===null?null:a.value},Fn.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Fn.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Fn.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},Fn.prototype.map=function(a){for(var y=new Fn,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},Fn.prototype.filter=function(a){for(var y=new Fn,x=this.ea;x!==null;){var b=x.value;a(b)&&y.add(b),x=x.va}return y},Ue=Fn.prototype,Ue.remove=function(a){if(a===null)return!1;this._isFrozen&&Ut(this,a);var y=a;if(Gt(a)&&(y=Dr(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,b=a.ll;return x!==null&&(x.ll=b),b!==null&&(b.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=b),delete this.Tb[y],this.Sb--,this.xb(),!0},Ue.delete=function(a){return this.remove(a)},Ue.hp=function(a){if(a===null)return this;if(this._isFrozen&&Ut(this),yn(a))for(var y=a.length,x=0;x<y;x++)this.remove(a[x]);else for(a=a.iterator;a.next();)this.remove(a.value);return this},Ue.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&Ut(this);var y=new Fn;y.addAll(a),a=[];for(var x=this.iterator;x.next();){var b=x.value;y.contains(b)||a.push(b)}return this.hp(a),this},Ue.clear=function(){this._isFrozen&&Ut(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},Fn.prototype.copy=function(){var a=new Fn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},Fn.prototype.Fa=function(){var a=Array(this.Sb),y=this.Tb,x=0,b;for(b in y)a[x]=y[b].value,x++;return a},Fn.prototype.Hv=function(){var a=new Ht,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function kr(a){a.__gohashid=po++}function Go(a){var y=a.__gohashid;return y===void 0&&(y=po++,a.__gohashid=y),y}function Dr(a){return a.__gohashid}Nt.Object.defineProperties(Fn.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return br;var a=this.Sa;return a!==null?(a.reset(),a):new Kr(this)}}}),Fn.prototype.toList=Fn.prototype.Hv,Fn.prototype.toArray=Fn.prototype.Fa,Fn.prototype.clear=Fn.prototype.clear,Fn.prototype.retainAll=Fn.prototype.pA,Fn.prototype.removeAll=Fn.prototype.hp,Fn.prototype.delete=Fn.prototype.delete,Fn.prototype.remove=Fn.prototype.remove,Fn.prototype.first=Fn.prototype.first,Fn.prototype.containsAny=Fn.prototype.Ty,Fn.prototype.containsAll=Fn.prototype.Sy,Fn.prototype.has=Fn.prototype.has,Fn.prototype.contains=Fn.prototype.contains,Fn.prototype.addAll=Fn.prototype.addAll,Fn.prototype.add=Fn.prototype.add,Fn.prototype.thaw=Fn.prototype.ka,Fn.prototype.freeze=Fn.prototype.freeze;var po=1;Fn.className="Set",Fn.uniqueHash=kr,Fn.hashIdUnique=Go,Fn.hashId=Dr;function Do(a){this.ma=a,this.qa=a.Ja,this.sa=null}Do.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Do.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=this.key=a=y.key,!0):(this.de(),!1)},Do.prototype.Ad=function(){return this.next()},Do.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.value=this.key=a=a.key):null},Do.prototype.any=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Do.prototype.all=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Do.prototype.each=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;)a(y.key),y=y.va;return this},Do.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new Ht;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},Do.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new Ht;for(y=y.ea;y!==null;){var b=y.key;a(b)&&x.add(b),y=y.va}return x.iterator},Do.prototype.de=function(){this.value=this.key=null,this.qa=-1},Do.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},Nt.Object.defineProperties(Do.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Do.prototype.first=Do.prototype.first,Do.prototype.hasNext=Do.prototype.Ad,Do.prototype.next=Do.prototype.next,Do.prototype.reset=Do.prototype.reset,Do.className="MapKeySetIterator";function Ji(a){Fn.call(this),kr(this),this._isFrozen=!0,this.ma=a}qt(Ji,Fn),Ue=Ji.prototype,Ue.freeze=function(){return this},Ue.ka=function(){return this},Ue.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Ue.add=function(){bt("This Set is read-only: "+this.toString())},Ue.contains=function(a){return this.ma.contains(a)},Ue.has=function(a){return this.contains(a)},Ue.remove=function(){bt("This Set is read-only: "+this.toString())},Ue.delete=function(a){return this.remove(a)},Ue.clear=function(){bt("This Set is read-only: "+this.toString())},Ue.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Ji.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Ji.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Ji.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Ji.prototype.map=function(a){for(var y=new Fn,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},Ji.prototype.filter=function(a){for(var y=new Fn,x=this.ma.ea;x!==null;){var b=x.key;a(b)&&y.add(b),x=x.va}return y},Ji.prototype.copy=function(){return new Ji(this.ma)},Ji.prototype.Iv=function(){var a=new Fn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Ji.prototype.Fa=function(){var a=this.ma.Tb,y=Array(this.ma.Sb),x=0,b;for(b in a)y[x]=a[b].key,x++;return y},Ji.prototype.Hv=function(){var a=new Ht,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Nt.Object.defineProperties(Ji.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?br:new Do(this.ma)}}}),Ji.prototype.toList=Ji.prototype.Hv,Ji.prototype.toArray=Ji.prototype.Fa,Ji.prototype.toSet=Ji.prototype.Iv,Ji.prototype.first=Ji.prototype.first,Ji.prototype.clear=Ji.prototype.clear,Ji.prototype.delete=Ji.prototype.delete,Ji.prototype.remove=Ji.prototype.remove,Ji.prototype.has=Ji.prototype.has,Ji.prototype.contains=Ji.prototype.contains,Ji.prototype.add=Ji.prototype.add,Ji.prototype.thaw=Ji.prototype.ka,Ji.prototype.freeze=Ji.prototype.freeze,Ji.className="MapKeySet";function or(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}or.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},or.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},or.prototype.Ad=function(){return this.next()},or.prototype.first=function(){var a=this.ma;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},or.prototype.any=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},or.prototype.all=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},or.prototype.each=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},or.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Ht;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},or.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Ht;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},or.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},or.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},Nt.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="MapValueSetIterator";function io(a,y){this.key=a,this.value=y,this.ll=this.va=null}io.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},io.className="KeyValuePair";function Gr(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Gr.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},Gr.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.key=y.key,this.value=y.value,!0):(this.de(),!1)},Gr.prototype.Ad=function(){return this.next()},Gr.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.key=a.key,this.value=a.value,a):null},Gr.prototype.any=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},Gr.prototype.all=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},Gr.prototype.each=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y),y=y.va;return this},Gr.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Ht;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},Gr.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Ht;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},Gr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},Gr.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},Nt.Object.defineProperties(Gr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Gr.prototype.first=Gr.prototype.first,Gr.prototype.hasNext=Gr.prototype.Ad,Gr.prototype.next=Gr.prototype.next,Gr.prototype.reset=Gr.prototype.reset,Gr.className="MapIterator";function Ii(a){kr(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.jf=this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&bt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ue=Ii.prototype,Ue.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Ue.freeze=function(){return this._isFrozen=!0,this},Ue.ka=function(){return this._isFrozen=!1,this},Ue.toString=function(){return"Map()#"+Dr(this)},Ue.add=function(a,y){this._isFrozen&&Ut(this,a);var x=a;Gt(a)&&(x=Go(a));var b=this.Tb[x];return b===void 0?(this.Sb++,a=new io(a,y),this.Tb[x]=a,x=this.kf,x===null?this.ea=a:(a.ll=x,x.va=a),this.kf=a,this.xb()):b.value=y,this},Ue.set=function(a,y){return this.add(a,y)},Ue.addAll=function(a){if(a===null)return this;if(yn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];this.add(b.key,b.value)}else if(a instanceof Ii)for(a=a.iterator;a.next();)this.add(a.key,a.value);else for(a=a.iterator;a.next();)y=a.value,this.add(y.key,y.value);return this},Ue.first=function(){return this.ea},Ii.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},Ii.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},Ii.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},Ii.prototype.map=function(a){for(var y=new Ii,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},Ii.prototype.filter=function(a){for(var y=new Ii,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},Ue=Ii.prototype,Ue.contains=function(a){var y=a;return Gt(a)&&(y=Dr(a),y===void 0)?!1:this.Tb[y]!==void 0},Ue.has=function(a){return this.contains(a)},Ue.I=function(a){var y=a;return Gt(a)&&(y=Dr(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},Ue.get=function(a){return this.I(a)},Ue.remove=function(a){if(a===null)return!1;this._isFrozen&&Ut(this,a);var y=a;if(Gt(a)&&(y=Dr(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,b=a.ll;return x!==null&&(x.ll=b),b!==null&&(b.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=b),delete this.Tb[y],this.Sb--,this.xb(),!0},Ue.delete=function(a){return this.remove(a)},Ue.clear=function(){this._isFrozen&&Ut(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.jf!==null&&this.jf.reset(),this.kf=this.ea=null,this.xb()},Ii.prototype.copy=function(){var a=new Ii,y=this.Tb,x;for(x in y){var b=y[x];a.add(b.key,b.value)}return a},Ii.prototype.Fa=function(){var a=this.Tb,y=Array(this.Sb),x=0,b;for(b in a){var E=a[b];y[x]=new io(E.key,E.value),x++}return y},Ii.prototype.Lf=function(){return new Ji(this)},Nt.Object.defineProperties(Ii.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return br;var a=this.Sa;return a!==null?(a.reset(),a):new Gr(this)}},iteratorKeys:{get:function(){return 0>=this.count?br:new Do(this)}},iteratorValues:{get:function(){if(0>=this.count)return br;var a=this.jf;return a!==null?(a.reset(),a):new or(this)}}}),Ii.prototype.toKeySet=Ii.prototype.Lf,Ii.prototype.toArray=Ii.prototype.Fa,Ii.prototype.clear=Ii.prototype.clear,Ii.prototype.delete=Ii.prototype.delete,Ii.prototype.remove=Ii.prototype.remove,Ii.prototype.get=Ii.prototype.get,Ii.prototype.getValue=Ii.prototype.I,Ii.prototype.has=Ii.prototype.has,Ii.prototype.contains=Ii.prototype.contains,Ii.prototype.first=Ii.prototype.first,Ii.prototype.addAll=Ii.prototype.addAll,Ii.prototype.set=Ii.prototype.set,Ii.prototype.add=Ii.prototype.add,Ii.prototype.thaw=Ii.prototype.ka,Ii.prototype.freeze=Ii.prototype.freeze,Ii.className="Map";function lt(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):bt("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var Rr,Ko,Yr,yo,Mr;lt.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},lt.prototype.h=function(a,y){return this.x=a,this.y=y,this},lt.prototype.sg=function(a,y){return this.x=a,this.y=y,this},lt.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},lt.prototype.copy=function(){var a=new lt;return a.x=this.x,a.y=this.y,a},Ue=lt.prototype,Ue.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ue.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ue.freeze=function(){return this._isFrozen=!0,this},Ue.ka=function(){return Object.isFrozen(this)&&bt("cannot thaw constant: "+this),this._isFrozen=!1,this};function mr(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;return(b=a[y++])&&(E=parseFloat(b)),new lt(x,E)}return new lt}function co(a){return a.x.toString()+" "+a.y.toString()}Ue.toString=function(){return"Point("+this.x+","+this.y+")"},Ue.D=function(a){return a instanceof lt?this.x===a.x&&this.y===a.y:!1},Ue.hi=function(a,y){return this.x===a&&this.y===y},Ue.Xa=function(a){return Wt.B(this.x,a.x)&&Wt.B(this.y,a.y)},Ue.add=function(a){return this.x+=a.x,this.y+=a.y,this},Ue.re=function(a){return this.x-=a.x,this.y-=a.y,this},Ue.offset=function(a,y){return this.x+=a,this.y+=y,this},lt.prototype.rotate=function(a){if(a===0)return this;var y=this.x,x=this.y;if(y===0&&x===0)return this;if(360<=a?a-=360:0>a&&(a+=360),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));return this.x=a*y-b*x,this.y=b*y+a*x,this},Ue=lt.prototype,Ue.scale=function(a,y){return this.x*=a,this.y*=y,this},Ue.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},Ue.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},Ue.normalize=function(){var a=this.x,y=this.y,x=Math.sqrt(a*a+y*y);return 0<x&&(this.x=a/x,this.y=y/x),this},Ue.ab=function(a){return Uo(a.x-this.x,a.y-this.y)},Ue.direction=function(a,y){return Uo(a-this.x,y-this.y)};function Uo(a,y){if(a===0)return 0<y?90:0>y?270:0;if(y===0)return 0<a?0:180;if(isNaN(a)||isNaN(y))return 0;var x=180*Math.atan(Math.abs(y/a))/Math.PI;return 0>a?x=0>y?x+180:180-x:0>y&&(x=360-x),x}Ue.Ry=function(a,y){return Wt.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Ue.fA=function(a,y,x,b){return Wt.qh(a,y,x,b,this.x,this.y,this),this},Ue.gA=function(a,y){return Wt.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Ue.uA=function(a,y,x,b){return Wt.No(this.x,this.y,a,y,x,b,this),this},Ue.vA=function(a,y){return Wt.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},Ue.xi=function(a,y){return this.x=a.x+y.x*a.width+y.offsetX,this.y=a.y+y.y*a.height+y.offsetY,this},Ue.yi=function(a,y,x,b,E){return this.x=a+E.x*x+E.offsetX,this.y=y+E.y*b+E.offsetY,this},Ue.transform=function(a){return a.Ga(this),this};function ao(a,y){return y.Cd(a),a}function ra(a,y,x,b,E,z){var te=E-x,re=z-b,le=te*te+re*re;x-=a,b-=y;var ce=-x*te-b*re;return 0>=ce||ce>=le?(te=E-a,re=z-y,Math.min(x*x+b*b,te*te+re*re)):(a=te*b-re*x,a*a/le)}function gr(a,y,x,b){return a=x-a,y=b-y,a*a+y*y}function Qi(a,y,x,b){return a=x-a,y=b-y,a===0?0<y?90:0>y?270:0:y===0?0<a?0:180:isNaN(a)||isNaN(y)?0:(b=180*Math.atan(Math.abs(y/a))/Math.PI,0>a?b=0>y?b+180:180-b:0>y&&(b=360-b),b)}Ue.w=function(){return isFinite(this.x)&&isFinite(this.y)},lt.alloc=function(){var a=xr.pop();return a===void 0?new lt:a},lt.allocAt=function(a,y){var x=xr.pop();return x===void 0?new lt(a,y):(x.x=a,x.y=y,x)},lt.free=function(a){xr.push(a)},lt.prototype.isReal=lt.prototype.w,lt.prototype.setSpot=lt.prototype.yi,lt.prototype.setRectSpot=lt.prototype.xi,lt.prototype.snapToGridPoint=lt.prototype.vA,lt.prototype.snapToGrid=lt.prototype.uA,lt.prototype.projectOntoLineSegmentPoint=lt.prototype.gA,lt.prototype.projectOntoLineSegment=lt.prototype.fA,lt.intersectingLineSegments=function(a,y,x,b,E,z,te,re){return Wt.Rl(a,y,x,b,E,z,te,re)},lt.prototype.compareWithLineSegmentPoint=lt.prototype.Ry,lt.compareWithLineSegment=function(a,y,x,b,E,z){return Wt.Fl(a,y,x,b,E,z)},lt.prototype.direction=lt.prototype.direction,lt.prototype.directionPoint=lt.prototype.ab,lt.prototype.normalize=lt.prototype.normalize,lt.prototype.distanceSquared=lt.prototype.zd,lt.prototype.distanceSquaredPoint=lt.prototype.Bf,lt.prototype.scale=lt.prototype.scale,lt.prototype.rotate=lt.prototype.rotate,lt.prototype.offset=lt.prototype.offset,lt.prototype.subtract=lt.prototype.re,lt.prototype.add=lt.prototype.add,lt.prototype.equalsApprox=lt.prototype.Xa,lt.prototype.equalTo=lt.prototype.hi,lt.prototype.equals=lt.prototype.D,lt.prototype.set=lt.prototype.set,lt.prototype.setTo=lt.prototype.sg;var xr=[];lt.className="Point",lt.parse=mr,lt.stringify=co,lt.distanceLineSegmentSquared=ra,lt.distanceSquared=gr,lt.direction=Qi,lt.Origin=Rr=new lt(0,0).ja(),lt.InfiniteTopLeft=Ko=new lt(-1/0,-1/0).ja(),lt.InfiniteBottomRight=Yr=new lt(1/0,1/0).ja(),lt.SixPoint=yo=new lt(6,6).ja(),lt.NoPoint=Mr=new lt(NaN,NaN).ja(),lt.parse=mr,lt.stringify=co,lt.distanceLineSegmentSquared=ra,lt.distanceSquared=gr,lt.direction=Qi;function fi(a,y){a===void 0?this.height=this.width=0:typeof a=="number"&&(0<=a||isNaN(a))&&typeof y=="number"&&(0<=y||isNaN(y))?(this.width=a,this.height=y):bt("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var bo,ua,ca,oa,Ra,ts,ds;fi.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},fi.prototype.h=function(a,y){return this.width=a,this.height=y,this},fi.prototype.sg=function(a,y){return this.width=a,this.height=y,this},fi.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},fi.prototype.copy=function(){var a=new fi;return a.width=this.width,a.height=this.height,a},Ue=fi.prototype,Ue.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ue.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ue.freeze=function(){return this._isFrozen=!0,this},Ue.ka=function(){return Object.isFrozen(this)&&bt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Qa(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;return(b=a[y++])&&(E=parseFloat(b)),new fi(x,E)}return new fi}function ks(a){return a.width.toString()+" "+a.height.toString()}Ue.toString=function(){return"Size("+this.width+","+this.height+")"},Ue.D=function(a){return a instanceof fi?this.width===a.width&&this.height===a.height:!1},Ue.hi=function(a,y){return this.width===a&&this.height===y},Ue.Xa=function(a){return Wt.B(this.width,a.width)&&Wt.B(this.height,a.height)},Ue.Bc=function(a,y){return a=this.width+a,this.width=0<=a?a:0,y=this.height+y,this.height=0<=y?y:0,this},Ue.w=function(){return isFinite(this.width)&&isFinite(this.height)},fi.alloc=function(){var a=Ds.pop();return a===void 0?new fi:a},fi.free=function(a){Ds.push(a)},fi.prototype.isReal=fi.prototype.w,fi.prototype.inflate=fi.prototype.Bc,fi.prototype.equalsApprox=fi.prototype.Xa,fi.prototype.equalTo=fi.prototype.hi,fi.prototype.equals=fi.prototype.D,fi.prototype.set=fi.prototype.set,fi.prototype.setTo=fi.prototype.sg;var Ds=[];fi.className="Size",fi.parse=Qa,fi.stringify=ks,fi.ZeroSize=bo=new fi(0,0).ja(),fi.OneSize=ua=new fi(1,1).ja(),fi.SixSize=ca=new fi(6,6).ja(),fi.EightSize=oa=new fi(8,8).ja(),fi.TenSize=Ra=new fi(10,10).ja(),fi.InfiniteSize=ts=new fi(1/0,1/0).ja(),fi.NoSize=ds=new fi(NaN,NaN).ja(),fi.parse=Qa,fi.stringify=ks;function jn(a,y,x,b){a===void 0?this.height=this.width=this.y=this.x=0:typeof a=="number"&&typeof y=="number"&&typeof x=="number"&&(0<=x||isNaN(x))&&typeof b=="number"&&(0<=b||isNaN(b))?(this.x=a,this.y=y,this.width=x,this.height=b):a instanceof lt?(x=a.x,a=a.y,y instanceof lt?(b=y.x,y=y.y,this.x=Math.min(x,b),this.y=Math.min(a,y),this.width=Math.abs(x-b),this.height=Math.abs(a-y)):y instanceof fi?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):bt("Incorrect second argument supplied to Rect constructor "+y)):bt("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}Ue=jn.prototype,Ue.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Ue.h=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this};function gs(a,y,x){a.width=y,a.height=x}Ue.sg=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this},Ue.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Ue.dd=function(a){return this.x=a.x,this.y=a.y,this},Ue.tA=function(a){return this.width=a.width,this.height=a.height,this},jn.prototype.copy=function(){var a=new jn;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Ue=jn.prototype,Ue.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ue.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ue.freeze=function(){return this._isFrozen=!0,this},Ue.ka=function(){return Object.isFrozen(this)&&bt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ql(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;(b=a[y++])&&(E=parseFloat(b));for(var z=0;a[y]==="";)y++;(b=a[y++])&&(z=parseFloat(b));for(var te=0;a[y]==="";)y++;return(b=a[y++])&&(te=parseFloat(b)),new jn(x,E,z,te)}return new jn}function Kl(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}Ue.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},Ue.D=function(a){return a instanceof jn?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},Ue.hi=function(a,y,x,b){return this.x===a&&this.y===y&&this.width===x&&this.height===b},Ue.Xa=function(a){return Wt.B(this.x,a.x)&&Wt.B(this.y,a.y)&&Wt.B(this.width,a.width)&&Wt.B(this.height,a.height)};function Oo(a,y){return Wt.$(a.x,y.x)&&Wt.$(a.y,y.y)&&Wt.$(a.width,y.width)&&Wt.$(a.height,y.height)}Ue.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},Ue.Re=function(a){return this.x<=a.x&&a.x+a.width<=this.x+this.width&&this.y<=a.y&&a.y+a.height<=this.y+this.height},Ue.contains=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),this.x<=a&&a+x<=this.x+this.width&&this.y<=y&&y+b<=this.y+this.height},Ue.offset=function(a,y){return this.x+=a,this.y+=y,this},Ue.Bc=function(a,y){return ma(this,y,a,y,a)},Ue.Co=function(a){return ma(this,a.top,a.right,a.bottom,a.left)},Ue.Fv=function(a){return ma(this,-a.top,-a.right,-a.bottom,-a.left)},Ue.Hz=function(a,y,x,b){return ma(this,a,y,x,b)};function ma(a,y,x,b,E){var z=a.width;return x+E<=-z?(a.x+=z/2,a.width=0):(a.x-=E,a.width+=x+E),x=a.height,y+b<=-x?(a.y+=x/2,a.height=0):(a.y-=y,a.height+=y+b),a}Ue.Ex=function(a){return hs(this,a.x,a.y,a.width,a.height)},Ue.Uu=function(a,y,x,b){return hs(this,a,y,x,b)};function hs(a,y,x,b,E){var z=Math.max(a.x,y),te=Math.max(a.y,x);return y=Math.min(a.x+a.width,y+b),x=Math.min(a.y+a.height,x+E),a.x=z,a.y=te,a.width=Math.max(0,y-z),a.height=Math.max(0,x-te),a}Ue.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},Ue.Vu=function(a,y,x,b){var E=this.width,z=this.x;return E!==1/0&&x!==1/0&&(E+=z,x+=a,isNaN(x)||isNaN(E)||z>x||a>E)?!1:(a=this.height,x=this.y,!(a!==1/0&&b!==1/0&&(a+=x,b+=y,isNaN(b)||isNaN(a)||x>b||y>a)))};function aa(a,y){var x=a.width,b=a.x,E=y.x-10;return b>y.width+10+10+E||E>x+b?!1:(x=a.height,a=a.y,b=y.y-10,!(a>y.height+10+10+b||b>x+a))}Ue.Ye=function(a){return Xr(this,a.x,a.y,0,0)},Ue.ed=function(a){return Xr(this,a.x,a.y,a.width,a.height)},Ue.Kv=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),Xr(this,a,y,x,b)};function Xr(a,y,x,b,E){var z=Math.min(a.x,y),te=Math.min(a.y,x);return y=Math.max(a.x+a.width,y+b),x=Math.max(a.y+a.height,x+E),a.x=z,a.y=te,a.width=y-z,a.height=x-te,a}Ue.yi=function(a,y,x){return this.x=a-x.offsetX-x.x*this.width,this.y=y-x.offsetY-x.y*this.height,this};function Qr(a,y,x,b,E,z,te,re){return te===void 0&&(te=0),re===void 0&&(re=0),a<=E&&E+te<=a+x&&y<=z&&z+re<=y+b}function ns(a,y,x,b,E,z,te,re){return a>te+E||E>x+a?!1:!(y>re+z||z>b+y)}Ue.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Ue.Mz=function(){return this.width===0&&this.height===0},jn.alloc=function(){var a=Mo.pop();return a===void 0?new jn:a},jn.allocAt=function(a,y,x,b){var E=Mo.pop();return E===void 0?new jn(a,y,x,b):E.h(a,y,x,b)},jn.free=function(a){Mo.push(a)},Nt.Object.defineProperties(jn.prototype,{left:{get:function(){return this.x},set:function(a){this.x=a}},top:{get:function(){return this.y},set:function(a){this.y=a}},right:{get:function(){return this.x+this.width},set:function(a){this.x+=a-(this.x+this.width)}},bottom:{get:function(){return this.y+this.height},set:function(a){this.y+=a-(this.y+this.height)}},position:{get:function(){return new lt(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new fi(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new lt(this.x+this.width/2,this.y+this.height/2)},set:function(a){this.x=a.x-this.width/2,this.y=a.y-this.height/2}},centerX:{get:function(){return this.x+this.width/2},set:function(a){this.x=a-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(a){this.y=a-this.height/2}}}),jn.prototype.isEmpty=jn.prototype.Mz,jn.prototype.isReal=jn.prototype.w,jn.intersectsLineSegment=function(a,y,x,b,E,z,te,re){return Wt.Fx(a,y,x,b,E,z,te,re)},jn.prototype.setSpot=jn.prototype.yi,jn.prototype.union=jn.prototype.Kv,jn.prototype.unionRect=jn.prototype.ed,jn.prototype.unionPoint=jn.prototype.Ye,jn.prototype.intersects=jn.prototype.Vu,jn.prototype.intersectsRect=jn.prototype.Yc,jn.prototype.intersect=jn.prototype.Uu,jn.prototype.intersectRect=jn.prototype.Ex,jn.prototype.grow=jn.prototype.Hz,jn.prototype.subtractMargin=jn.prototype.Fv,jn.prototype.addMargin=jn.prototype.Co,jn.prototype.inflate=jn.prototype.Bc,jn.prototype.offset=jn.prototype.offset,jn.prototype.contains=jn.prototype.contains,jn.prototype.containsRect=jn.prototype.Re,jn.prototype.containsPoint=jn.prototype.ca,jn.prototype.equalsApprox=jn.prototype.Xa,jn.prototype.equalTo=jn.prototype.hi,jn.prototype.equals=jn.prototype.D,jn.prototype.setSize=jn.prototype.tA,jn.prototype.setPoint=jn.prototype.dd,jn.prototype.set=jn.prototype.set,jn.prototype.setTo=jn.prototype.sg;var so=null,Po=null,Mo=[];jn.className="Rect",jn.parse=Ql,jn.stringify=Kl,jn.contains=Qr,jn.intersects=ns,jn.ZeroRect=so=new jn(0,0,0,0).ja(),jn.NoRect=Po=new jn(NaN,NaN,NaN,NaN).ja(),jn.parse=Ql,jn.stringify=Kl,jn.contains=Qr,jn.intersects=ns;function $i(a,y,x,b){a===void 0?this.left=this.bottom=this.right=this.top=0:y===void 0?this.left=this.bottom=this.right=this.top=a:x===void 0?(this.top=a,this.right=y,this.bottom=a,this.left=y):b!==void 0?(this.top=a,this.right=y,this.bottom=x,this.left=b):bt("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}$i.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},$i.prototype.sg=function(a,y,x,b){return this.top=a,this.right=y,this.bottom=x,this.left=b,this},$i.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},$i.prototype.copy=function(){var a=new $i;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},Ue=$i.prototype,Ue.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ue.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ue.freeze=function(){return this._isFrozen=!0,this},Ue.ka=function(){return Object.isFrozen(this)&&bt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ja(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=NaN;a[y]==="";)y++;var b=a[y++];if(b&&(x=parseFloat(b)),isNaN(x))return new $i;for(var E=NaN;a[y]==="";)y++;if((b=a[y++])&&(E=parseFloat(b)),isNaN(E))return new $i(x);for(var z=NaN;a[y]==="";)y++;if((b=a[y++])&&(z=parseFloat(b)),isNaN(z))return new $i(x,E);for(var te=NaN;a[y]==="";)y++;return(b=a[y++])&&(te=parseFloat(b)),isNaN(te)?new $i(x,E):new $i(x,E,z,te)}return new $i}function xs(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}Ue.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},Ue.D=function(a){return a instanceof $i?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},Ue.hi=function(a,y,x,b){return this.top===a&&this.right===y&&this.bottom===x&&this.left===b},Ue.Xa=function(a){return Wt.B(this.top,a.top)&&Wt.B(this.right,a.right)&&Wt.B(this.bottom,a.bottom)&&Wt.B(this.left,a.left)},Ue.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},$i.alloc=function(){var a=Jl.pop();return a===void 0?new $i:a},$i.free=function(a){Jl.push(a)},$i.prototype.isReal=$i.prototype.w,$i.prototype.equalsApprox=$i.prototype.Xa,$i.prototype.equalTo=$i.prototype.hi,$i.prototype.equals=$i.prototype.D,$i.prototype.set=$i.prototype.set,$i.prototype.setTo=$i.prototype.sg;var ul=null,Yl=null,Jl=[];$i.className="Margin",$i.parse=Ja,$i.stringify=xs,$i.ZeroMargin=ul=new $i(0,0,0,0).ja(),$i.TwoMargin=Yl=new $i(2,2,2,2).ja(),$i.parse=Ja,$i.stringify=xs;function _i(a,y,x,b){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),x===void 0&&(x=0),b===void 0&&(b=0),this.x=a,this.y=y,this.offsetX=x,this.offsetY=b),this._isFrozen=!1}var is,Hs,tu,ui,du,wo,Uc,Wl,$l,Fl,Zu,Ws,Zs,Al,Jc,qc,Pc,md,ed,Xn,bn,_t,Ao,ta,sa,Vr,Jr,jr,rr,ro,Na,Ia,Ho,Bo,rl,Bs;_i.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},_i.prototype.sg=function(a,y,x,b){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=b,this},_i.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},_i.prototype.copy=function(){var a=new _i;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},Ue=_i.prototype,Ue.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ue.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ue.freeze=function(){return this._isFrozen=!0,this},Ue.ka=function(){return Object.isFrozen(this)&&bt("cannot thaw constant: "+this),this._isFrozen=!1,this};function ka(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function Nl(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return is;if(a==="TopLeft")return Hs;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return tu;if(a==="TopRight")return ui;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return du;if(a==="Center")return wo;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return Uc;if(a==="BottomLeft")return Wl;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return $l;if(a==="BottomRight")return Fl;if(a==="TopSide")return Zu;if(a==="LeftSide")return Ws;if(a==="RightSide")return Zs;if(a==="BottomSide")return Al;if(a==="TopBottomSides")return Jc;if(a==="LeftRightSides")return qc;if(a==="TopLeftSides")return Pc;if(a==="TopRightSides")return md;if(a==="BottomLeftSides")return ed;if(a==="BottomRightSides")return Xn;if(a==="NotTopSide")return bn;if(a==="NotLeftSide")return _t;if(a==="NotRightSide")return Ao;if(a==="NotBottomSide")return ta;if(a==="AllSides")return sa;if(a==="Default")return Vr;a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b!==void 0&&0<b.length&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(E=parseFloat(b));for(var z=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(z=parseFloat(b));for(var te=0;a[y]==="";)y++;return b=a[y++],b!==void 0&&0<b.length&&(te=parseFloat(b)),new _i(x,E,z,te)}return new _i}function js(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}Ue.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(is)?"None":this.D(Hs)?"TopLeft":this.D(tu)?"Top":this.D(ui)?"TopRight":this.D(du)?"Left":this.D(wo)?"Center":this.D(Uc)?"Right":this.D(Wl)?"BottomLeft":this.D($l)?"Bottom":this.D(Fl)?"BottomRight":this.D(Zu)?"TopSide":this.D(Ws)?"LeftSide":this.D(Zs)?"RightSide":this.D(Al)?"BottomSide":this.D(Jc)?"TopBottomSides":this.D(qc)?"LeftRightSides":this.D(Pc)?"TopLeftSides":this.D(md)?"TopRightSides":this.D(ed)?"BottomLeftSides":this.D(Xn)?"BottomRightSides":this.D(bn)?"NotTopSide":this.D(_t)?"NotLeftSide":this.D(Ao)?"NotRightSide":this.D(ta)?"NotBottomSide":this.D(sa)?"AllSides":this.D(Vr)?"Default":"None"},Ue.D=function(a){return a instanceof _i?(this.x===a.x||isNaN(this.x)&&isNaN(a.x))&&(this.y===a.y||isNaN(this.y)&&isNaN(a.y))&&this.offsetX===a.offsetX&&this.offsetY===a.offsetY:!1},Ue.gv=function(){return new _i(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},Ue.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(Jr))a=Ws;else if(a.D(jr))a=Zs;else if(a.D(rr))a=Zu;else if(a.D(ro))a=Al;else return!1;return a=a.offsetY,(this.offsetY&a)===a},Ue.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},Ue.Mc=function(){return isNaN(this.x)||isNaN(this.y)},Ue.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},Ue.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},Ue.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},_i.alloc=function(){var a=$s.pop();return a===void 0?new _i:a},_i.free=function(a){$s.push(a)},_i.prototype.isDefault=_i.prototype.Xb,_i.prototype.isNone=_i.prototype.ys,_i.prototype.isSide=_i.prototype.$c,_i.prototype.isNoSpot=_i.prototype.Mc,_i.prototype.isSpot=_i.prototype.sb,_i.prototype.includesSide=_i.prototype.Hf,_i.prototype.opposite=_i.prototype.gv,_i.prototype.equals=_i.prototype.D,_i.prototype.set=_i.prototype.set,_i.prototype.setTo=_i.prototype.sg;var $s=[];_i.className="Spot",_i.parse=Nl,_i.stringify=js,_i.None=is=ka(new _i(0,0,0,0),0).ja(),_i.Default=Vr=ka(new _i(0,0,-1,0),-1).ja(),_i.TopLeft=Hs=new _i(0,0,0,0).ja(),_i.TopCenter=tu=new _i(.5,0,0,0).ja(),_i.TopRight=ui=new _i(1,0,0,0).ja(),_i.LeftCenter=du=new _i(0,.5,0,0).ja(),_i.Center=wo=new _i(.5,.5,0,0).ja(),_i.RightCenter=Uc=new _i(1,.5,0,0).ja(),_i.BottomLeft=Wl=new _i(0,1,0,0).ja(),_i.BottomCenter=$l=new _i(.5,1,0,0).ja(),_i.BottomRight=Fl=new _i(1,1,0,0).ja(),_i.MiddleTop=Na=tu,_i.MiddleLeft=Ia=du,_i.MiddleRight=Ho=Uc,_i.MiddleBottom=Bo=$l,_i.Top=rr=tu,_i.Left=Jr=du,_i.Right=jr=Uc,_i.Bottom=ro=$l,_i.TopSide=Zu=ka(new _i(0,0,1,1),1).ja(),_i.LeftSide=Ws=ka(new _i(0,0,1,2),1).ja(),_i.RightSide=Zs=ka(new _i(0,0,1,4),1).ja(),_i.BottomSide=Al=ka(new _i(0,0,1,8),1).ja(),_i.TopBottomSides=Jc=ka(new _i(0,0,1,9),1).ja(),_i.LeftRightSides=qc=ka(new _i(0,0,1,6),1).ja(),_i.TopLeftSides=Pc=ka(new _i(0,0,1,3),1).ja(),_i.TopRightSides=md=ka(new _i(0,0,1,5),1).ja(),_i.BottomLeftSides=ed=ka(new _i(0,0,1,10),1).ja(),_i.BottomRightSides=Xn=ka(new _i(0,0,1,12),1).ja(),_i.NotTopSide=bn=ka(new _i(0,0,1,14),1).ja(),_i.NotLeftSide=_t=ka(new _i(0,0,1,13),1).ja(),_i.NotRightSide=Ao=ka(new _i(0,0,1,11),1).ja(),_i.NotBottomSide=ta=ka(new _i(0,0,1,7),1).ja(),_i.AllSides=sa=ka(new _i(0,0,1,15),1).ja(),rl=new _i(.156,.156).ja(),Bs=new _i(.844,.844).ja(),_i.parse=Nl,_i.stringify=js;function fr(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}fr.prototype.set=function(a){return this.m11=a.m11,this.m12=a.m12,this.m21=a.m21,this.m22=a.m22,this.dx=a.dx,this.dy=a.dy,this},fr.prototype.setTransform=function(a,y,x,b,E,z){return this.m11=a,this.m12=y,this.m21=x,this.m22=b,this.dx=E,this.dy=z,this},fr.prototype.copy=function(){var a=new fr;return a.m11=this.m11,a.m12=this.m12,a.m21=this.m21,a.m22=this.m22,a.dx=this.dx,a.dy=this.dy,a},fr.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},fr.prototype.D=function(a){return this.m11===a.m11&&this.m12===a.m12&&this.m21===a.m21&&this.m22===a.m22&&this.dx===a.dx&&this.dy===a.dy},fr.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},fr.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},fr.prototype.multiply=function(a){var y=this.m11*a.m11+this.m21*a.m12,x=this.m12*a.m11+this.m22*a.m12,b=this.m11*a.m21+this.m21*a.m22,E=this.m12*a.m21+this.m22*a.m22;return this.dx=this.m11*a.dx+this.m21*a.dy+this.dx,this.dy=this.m12*a.dx+this.m22*a.dy+this.dy,this.m11=y,this.m12=x,this.m21=b,this.m22=E,this},fr.prototype.bv=function(a){var y=1/(a.m11*a.m22-a.m12*a.m21),x=a.m22*y,b=-a.m12*y,E=-a.m21*y,z=a.m11*y,te=y*(a.m21*a.dy-a.m22*a.dx);return a=y*(a.m12*a.dx-a.m11*a.dy),y=this.m11*x+this.m21*b,x=this.m12*x+this.m22*b,b=this.m11*E+this.m21*z,E=this.m12*E+this.m22*z,this.dx=this.m11*te+this.m21*a+this.dx,this.dy=this.m12*te+this.m22*a+this.dy,this.m11=y,this.m12=x,this.m21=b,this.m22=E,this},fr.prototype.Vj=function(){var a=1/(this.m11*this.m22-this.m12*this.m21),y=-this.m12*a,x=-this.m21*a,b=this.m11*a,E=a*(this.m21*this.dy-this.m22*this.dx),z=a*(this.m12*this.dx-this.m11*this.dy);return this.m11=this.m22*a,this.m12=y,this.m21=x,this.m22=b,this.dx=E,this.dy=z,this},fr.prototype.rotate=function(a,y,x){if(360<=a?a-=360:0>a&&(a+=360),a===0)return this;if(this.translate(y,x),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));var E=this.m12*a+this.m22*b,z=this.m11*-b+this.m21*a,te=this.m12*-b+this.m22*a;return this.m11=this.m11*a+this.m21*b,this.m12=E,this.m21=z,this.m22=te,this.translate(-y,-x),this},Ue=fr.prototype,Ue.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},Ue.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},Ue.Ga=function(a){var y=a.x,x=a.y;return a.h(y*this.m11+x*this.m21+this.dx,y*this.m12+x*this.m22+this.dy)},Ue.Cd=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=a.x,b=a.y;return a.h(x*this.m22*y+b*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+b*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Ue.Eu=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=1.25*a.x,b=1.2*a.y;return a.h(x*this.m22*y+b*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+b*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Ue.pp=function(a){var y=a.x,x=a.y,b=y+a.width,E=x+a.height,z=this.m11,te=this.m12,re=this.m21,le=this.m22,ce=this.dx,de=this.dy,ve=y*z+x*re+ce,Pe=y*te+x*le+de,Le=b*z+x*re+ce,Fe=b*te+x*le+de;return x=y*z+E*re+ce,y=y*te+E*le+de,z=b*z+E*re+ce,b=b*te+E*le+de,E=Math.min(ve,Le),ve=Math.max(ve,Le),Le=Math.min(Pe,Fe),Pe=Math.max(Pe,Fe),E=Math.min(E,x),ve=Math.max(ve,x),Le=Math.min(Le,y),Pe=Math.max(Pe,y),E=Math.min(E,z),ve=Math.max(ve,z),Le=Math.min(Le,b),Pe=Math.max(Pe,b),a.h(E,Le,ve-E,Pe-Le),a},fr.alloc=function(){var a=va.pop();return a===void 0?new fr:a},fr.free=function(a){va.push(a)},fr.prototype.transformRect=fr.prototype.pp,fr.prototype.transformPoint=fr.prototype.Ga,fr.prototype.scale=fr.prototype.scale,fr.prototype.translate=fr.prototype.translate,fr.prototype.rotate=fr.prototype.rotate,fr.prototype.invert=fr.prototype.Vj,fr.prototype.multiplyInverted=fr.prototype.bv,fr.prototype.multiply=fr.prototype.multiply,fr.prototype.reset=fr.prototype.reset,fr.prototype.isIdentity=fr.prototype.ws,fr.prototype.equals=fr.prototype.D,fr.prototype.setTransform=fr.prototype.setTransform,fr.prototype.set=fr.prototype.set;var va=[];fr.className="Transform",fr.xF="54a702f3e53909c447824c6706603faf4c";var Wt={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=Wt.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);Wt.Uv=y}return 1>a?(x=1/a,2e3>=x?1/y[x|0]:Math.sqrt(a)):2e3>=a?y[a|0]:Math.sqrt(a)},B:function(a,y){return a-=y,.5>a&&-.5<a},$:function(a,y){return a-=y,5e-8>a&&-5e-8<a},Yb:function(a,y,x,b,E,z,te){if(0>=E&&(E=1e-6),a<x)var re=a,le=x;else re=x,le=a;if(y<b)var ce=y,de=b;else ce=b,de=y;if(a===x)return ce<=te&&te<=de&&a-E<=z&&z<=a+E;if(y===b)return re<=z&&z<=le&&y-E<=te&&te<=y+E;if(le+=E,re-=E,re<=z&&z<=le&&(de+=E,ce-=E,ce<=te&&te<=de))if(le-re>de-ce)if(a-x>E||x-a>E){if(z=(b-y)/(x-a)*(z-a)+y,z-E<=te&&te<=z+E)return!0}else return!0;else if(y-b>E||b-y>E){if(te=(x-a)/(b-y)*(te-y)+a,te-E<=z&&z<=te+E)return!0}else return!0;return!1},cs:function(a,y,x,b,E,z,te,re,le,ce,de,ve){if(Wt.Yb(a,y,te,re,ve,x,b)&&Wt.Yb(a,y,te,re,ve,E,z))return Wt.Yb(a,y,te,re,ve,ce,de);var Pe=(a+x)/2,Le=(y+b)/2,Fe=(x+E)/2,Ze=(b+z)/2;E=(E+te)/2,z=(z+re)/2,b=(Pe+Fe)/2,x=(Le+Ze)/2,Fe=(Fe+E)/2,Ze=(Ze+z)/2;var pt=(b+Fe)/2,at=(x+Ze)/2;return Wt.cs(a,y,Pe,Le,b,x,pt,at,le,ce,de,ve)||Wt.cs(pt,at,Fe,Ze,E,z,te,re,le,ce,de,ve)},ax:function(a,y,x,b,E,z,te,re,le){var ce=(x+E)/2,de=(b+z)/2;return le.h((((a+x)/2+ce)/2+(ce+(E+te)/2)/2)/2,(((y+b)/2+de)/2+(de+(z+re)/2)/2)/2),le},My:function(a,y,x,b,E,z,te,re){var le=(x+E)/2,ce=(b+z)/2;return Qi(((a+x)/2+le)/2,((y+b)/2+ce)/2,(le+(E+te)/2)/2,(ce+(z+re)/2)/2)},Dl:function(a,y,x,b,E,z,te,re,le,ce){if(Wt.Yb(a,y,te,re,le,x,b)&&Wt.Yb(a,y,te,re,le,E,z))Xr(ce,a,y,0,0),Xr(ce,te,re,0,0);else{var de=(a+x)/2,ve=(y+b)/2,Pe=(x+E)/2,Le=(b+z)/2;E=(E+te)/2,z=(z+re)/2,b=(de+Pe)/2,x=(ve+Le)/2,Pe=(Pe+E)/2,Le=(Le+z)/2;var Fe=(b+Pe)/2,Ze=(x+Le)/2;Wt.Dl(a,y,de,ve,b,x,Fe,Ze,le,ce),Wt.Dl(Fe,Ze,Pe,Le,E,z,te,re,le,ce)}return ce},Qe:function(a,y,x,b,E,z,te,re,le,ce){if(Wt.Yb(a,y,te,re,le,x,b)&&Wt.Yb(a,y,te,re,le,E,z))ce.length===0&&(ce.push(a),ce.push(y)),ce.push(te),ce.push(re);else{var de=(a+x)/2,ve=(y+b)/2,Pe=(x+E)/2,Le=(b+z)/2;E=(E+te)/2,z=(z+re)/2,b=(de+Pe)/2,x=(ve+Le)/2,Pe=(Pe+E)/2,Le=(Le+z)/2;var Fe=(b+Pe)/2,Ze=(x+Le)/2;Wt.Qe(a,y,de,ve,b,x,Fe,Ze,le,ce),Wt.Qe(Fe,Ze,Pe,Le,E,z,te,re,le,ce)}return ce},jv:function(a,y,x,b,E,z,te,re,le,ce){if(Wt.Yb(a,y,E,z,ce,x,b))return Wt.Yb(a,y,E,z,ce,re,le);var de=(a+x)/2,ve=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var Pe=(de+x)/2,Le=(ve+b)/2;return Wt.jv(a,y,de,ve,Pe,Le,te,re,le,ce)||Wt.jv(Pe,Le,x,b,E,z,te,re,le,ce)},OA:function(a,y,x,b,E,z,te){return te.h(((a+x)/2+(x+E)/2)/2,((y+b)/2+(b+z)/2)/2),te},iv:function(a,y,x,b,E,z,te,re){if(Wt.Yb(a,y,E,z,te,x,b))Xr(re,a,y,0,0),Xr(re,E,z,0,0);else{var le=(a+x)/2,ce=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var de=(le+x)/2,ve=(ce+b)/2;Wt.iv(a,y,le,ce,de,ve,te,re),Wt.iv(de,ve,x,b,E,z,te,re)}return re},ep:function(a,y,x,b,E,z,te,re){if(Wt.Yb(a,y,E,z,te,x,b))re.length===0&&(re.push(a),re.push(y)),re.push(E),re.push(z);else{var le=(a+x)/2,ce=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var de=(le+x)/2,ve=(ce+b)/2;Wt.ep(a,y,le,ce,de,ve,te,re),Wt.ep(de,ve,x,b,E,z,te,re)}return re},Eo:function(a,y,x,b,E,z,te,re,le,ce,de,ve,Pe,Le){if(Wt.Yb(a,y,te,re,Pe,x,b)&&Wt.Yb(a,y,te,re,Pe,E,z))return!Wt.Rl(a,y,te,re,le,ce,de,ve)||(Pe=(a-te)*(ce-ve)-(y-re)*(le-de),Pe===0)?!1:(Le.h(((a*re-y*te)*(le-de)-(a-te)*(le*ve-ce*de))/Pe,((a*re-y*te)*(ce-ve)-(y-re)*(le*ve-ce*de))/Pe),!0);var Fe=(a+x)/2,Ze=(y+b)/2,pt=(x+E)/2,at=(b+z)/2;E=(E+te)/2,z=(z+re)/2,b=(Fe+pt)/2,x=(Ze+at)/2,pt=(pt+E)/2,at=(at+z)/2;var Ct=(b+pt)/2,Lt=(x+at)/2,Dt=1/0,Kt=!1,vn=0,Pi=0;return Wt.Eo(a,y,Fe,Ze,b,x,Ct,Lt,le,ce,de,ve,Pe,Le)&&(a=(Le.x-le)*(Le.x-le)+(Le.y-ce)*(Le.y-ce),a<Dt&&(Dt=a,Kt=!0,vn=Le.x,Pi=Le.y)),Wt.Eo(Ct,Lt,pt,at,E,z,te,re,le,ce,de,ve,Pe,Le)&&(Le.x-le)*(Le.x-le)+(Le.y-ce)*(Le.y-ce)<Dt&&(Kt=!0,vn=Le.x,Pi=Le.y),Kt&&(Le.x=vn,Le.y=Pi),Kt},Fo:function(a,y,x,b,E,z,te,re,le,ce,de,ve,Pe){var Le=0;if(Wt.Yb(a,y,te,re,Pe,x,b)&&Wt.Yb(a,y,te,re,Pe,E,z)){if(Pe=(a-te)*(ce-ve)-(y-re)*(le-de),Pe===0)return Le;var Fe=((a*re-y*te)*(le-de)-(a-te)*(le*ve-ce*de))/Pe,Ze=((a*re-y*te)*(ce-ve)-(y-re)*(le*ve-ce*de))/Pe;if(Fe>=de)return Le;if((le>de?le-de:de-le)<(ce>ve?ce-ve:ve-ce)){if(y<re?(le=y,a=re):(le=re,a=y),Ze<le||Ze>a)return Le}else if(a<te?(le=a,a=te):le=te,Fe<le||Fe>a)return Le;0<Pe?Le++:0>Pe&&Le--}else{Fe=(a+x)/2,Ze=(y+b)/2;var pt=(x+E)/2,at=(b+z)/2;E=(E+te)/2,z=(z+re)/2,b=(Fe+pt)/2,x=(Ze+at)/2,pt=(pt+E)/2,at=(at+z)/2;var Ct=(b+pt)/2,Lt=(x+at)/2;Le+=Wt.Fo(a,y,Fe,Ze,b,x,Ct,Lt,le,ce,de,ve,Pe),Le+=Wt.Fo(Ct,Lt,pt,at,E,z,te,re,le,ce,de,ve,Pe)}return Le},qh:function(a,y,x,b,E,z,te){return Wt.$(a,x)?(y<b?(x=y,y=b):x=b,z<x?(te.h(a,x),!1):z>y?(te.h(a,y),!1):(te.h(a,z),!0)):Wt.$(y,b)?(a<x?(b=a,a=x):b=x,E<b?(te.h(b,y),!1):E>a?(te.h(a,y),!1):(te.h(E,y),!0)):(E=((a-E)*(a-x)+(y-z)*(y-b))/((x-a)*(x-a)+(b-y)*(b-y)),-5e-6>E?(te.h(a,y),!1):1.000005<E?(te.h(x,b),!1):(te.h(a+E*(x-a),y+E*(b-y)),!0))},Ve:function(a,y,x,b,E,z,te,re,le){return Wt.B(a,x)&&Wt.B(y,b)?(le.h(a,y),!1):Wt.$(E,te)?Wt.$(a,x)?(Wt.qh(a,y,x,b,E,z,le),!1):Wt.qh(a,y,x,b,E,(b-y)/(x-a)*(E-a)+y,le):(re=(re-z)/(te-E),Wt.$(a,x)?(x=re*(a-E)+z,y<b?(E=y,y=b):E=b,x<E?(le.h(a,E),!1):x>y?(le.h(a,y),!1):(le.h(a,x),!0)):(te=(b-y)/(x-a),Wt.$(re,te)?(Wt.qh(a,y,x,b,E,z,le),!1):(E=(te*a-re*E+z-y)/(te-re),Wt.$(te,0)?(a<x?(b=a,a=x):b=x,E<b?(le.h(b,y),!1):E>a?(le.h(a,y),!1):(le.h(E,y),!0)):Wt.qh(a,y,x,b,E,te*(E-a)+y,le))))},MA:function(a,y,x,b,E){return Wt.Ve(x.x,x.y,b.x,b.y,a.x,a.y,y.x,y.y,E)},KA:function(a,y,x,b,E,z,te,re,le,ce){function de(pt,at){var Ct=(pt-a)*(pt-a)+(at-y)*(at-y);Ct<ve&&(ve=Ct,le.h(pt,at))}var ve=1/0;de(le.x,le.y);var Pe=0,Le=0,Fe=0,Ze=0;if(E<te?(Pe=E,Le=te):(Pe=te,Le=E),z<re?(Fe=E,Ze=te):(Fe=te,Ze=E),Pe=(Le-Pe)/2+ce,ce=(Ze-Fe)/2+ce,E=(E+te)/2,z=(z+re)/2,Pe===0||ce===0)return le;if(.5>(x>a?x-a:a-x)){if(Pe=1-(x-E)*(x-E)/(Pe*Pe),0>Pe)return le;Pe=Math.sqrt(Pe),b=-ce*Pe+z,de(x,ce*Pe+z),de(x,b)}else{if(x=(b-y)/(x-a),b=1/(Pe*Pe)+x*x/(ce*ce),re=2*x*(y-x*a)/(ce*ce)-2*x*z/(ce*ce)-2*E/(Pe*Pe),Pe=re*re-4*b*(2*x*a*z/(ce*ce)-2*y*z/(ce*ce)+z*z/(ce*ce)+E*E/(Pe*Pe)-1+(y-x*a)*(y-x*a)/(ce*ce)),0>Pe)return le;Pe=Math.sqrt(Pe),ce=(-re+Pe)/(2*b),de(ce,x*ce-x*a+y),Pe=(-re-Pe)/(2*b),de(Pe,x*Pe-x*a+y)}return le},Ff:function(a,y,x,b,E,z,te,re,le){var ce=1e21,de=a,ve=y;if(Wt.Ve(a,y,a,b,E,z,te,re,le)){var Pe=(le.x-E)*(le.x-E)+(le.y-z)*(le.y-z);Pe<ce&&(ce=Pe,de=le.x,ve=le.y)}return Wt.Ve(x,y,x,b,E,z,te,re,le)&&(Pe=(le.x-E)*(le.x-E)+(le.y-z)*(le.y-z),Pe<ce&&(ce=Pe,de=le.x,ve=le.y)),Wt.Ve(a,y,x,y,E,z,te,re,le)&&(y=(le.x-E)*(le.x-E)+(le.y-z)*(le.y-z),y<ce&&(ce=y,de=le.x,ve=le.y)),Wt.Ve(a,b,x,b,E,z,te,re,le)&&(a=(le.x-E)*(le.x-E)+(le.y-z)*(le.y-z),a<ce&&(ce=a,de=le.x,ve=le.y)),le.h(de,ve),1e21>ce},us:function(a,y,x){return Wt.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,b,E,z,te,re){var le=a+x,ce=y+b;return E===te?(z<re?(te=z,z=re):te=re,a<=E&&E<=le&&te<=ce&&z>=y):z===re?(E<te?(re=E,E=te):re=te,y<=z&&z<=ce&&re<=le&&E>=a):!!(Qr(a,y,x,b,E,z)||Qr(a,y,x,b,te,re)||Wt.Rl(a,y,le,y,E,z,te,re)||Wt.Rl(le,y,le,ce,E,z,te,re)||Wt.Rl(le,ce,a,ce,E,z,te,re)||Wt.Rl(a,ce,a,y,E,z,te,re))},Rl:function(a,y,x,b,E,z,te,re){return a===x&&y===b&&E===te&&z===re?a===E&&y===z:0>=Wt.Fl(a,y,x,b,E,z)*Wt.Fl(a,y,x,b,te,re)&&0>=Wt.Fl(E,z,te,re,a,y)*Wt.Fl(E,z,te,re,x,b)},Fl:function(a,y,x,b,E,z){return x-=a,b-=y,a=E-a,y=z-y,z=a*b-y*x,z===0&&(z=a*x+y*b,0<z&&(z=(a-x)*x+(y-b)*b,0>z&&(z=0))),z},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,b,E,z){var te=Math.PI;z||(b*=te/180,E*=te/180);var re=b>E?-1:1;z=[];var le=te/2,ce=b;if(b=Math.min(2*te,Math.abs(E-b)),1e-5>b)return le=ce+re*Math.min(b,le),re=a+x*Math.cos(ce),ce=y+x*Math.sin(ce),a+=x*Math.cos(le),y+=x*Math.sin(le),x=(re+a)/2,le=(ce+y)/2,z.push([re,ce,x,le,x,le,a,y]),z;for(;1e-5<b;)E=ce+re*Math.min(b,le),z.push(Wt.Vy(x,ce,E,a,y)),b-=Math.abs(E-ce),ce=E;return z},Vy:function(a,y,x,b,E){var z=(x-y)/2,te=a*Math.cos(z),re=a*Math.sin(z),le=-re,ce=te*te+le*le,de=ce+te*te+le*re;return ce=4/3*(Math.sqrt(2*ce*de)-de)/(te*re-le*te),re=te-ce*le,te=le+ce*te,le=-te,ce=z+y,z=Math.cos(ce),ce=Math.sin(ce),[b+a*Math.cos(y),E+a*Math.sin(y),b+re*z-te*ce,E+re*ce+te*z,b+re*z-le*ce,E+re*ce+le*z,b+a*Math.cos(x),E+a*Math.sin(x)]},No:function(a,y,x,b,E,z,te){x=Math.floor((a-x)/E)*E+x,b=Math.floor((y-b)/z)*z+b;var re=x;return x+E-a<E/2&&(re=x+E),a=b,b+z-y<z/2&&(a=b+z),te.h(re,a),te},vx:function(a,y){var x=Math.max(a,y);a=Math.min(a,y);var b;do y=x%a,x=b=a,a=y;while(0<y);return b},$y:function(a,y,x,b){var E=0>x,z=0>b;if(a<y)var te=1,re=0;else te=0,re=1;var le=te===0?a:y,ce=te===0?x:b;return(te===0?E:z)&&(ce=-ce),te=re,x=te===0?x:b,(te===0?E:z)&&(x=-x),Wt.az(le,te===0?a:y,ce,x,0,0)},az:function(a,y,x,b,E,z){if(0<b)if(0<x){E=a*a,z=y*y,a*=x;var te=y*b,re=-z+te,le=-z+Math.sqrt(a*a+te*te);y=re;for(var ce=0;9999999999>ce&&(y=.5*(re+le),!(y===re||y===le));++ce){var de=a/(y+E),ve=te/(y+z);if(de=de*de+ve*ve-1,0<de)re=y;else if(0>de)le=y;else break}x=E*x/(y+E)-x,b=z*b/(y+z)-b,x=Math.sqrt(x*x+b*b)}else x=Math.abs(b-y);else b=a*a-y*y,z=a*x,z<b?(b=z/b,z=y*Math.sqrt(Math.abs(1-b*b)),x=a*b-x,x=Math.sqrt(x*x+z*z)):x=Math.abs(x-a);return x},Ze:new Ti,um:new Ti,Mf:new Ti,Nf:0,vm:100};Wt.za=Wt.AA;function di(a){kr(this),this.l=2,a===void 0&&(a=di.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===di.o?this.ee=new Ht:(di.V===null&&(di.V=new Ht().freeze()),this.ee=di.V),this.aq=this.ee.Ja,this.Ip=new jn().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=Hs,this.gg=Fl,this.Rk=this.Sk=NaN,this.Uf=Qn}di.prototype.copy=function(){var a=new di;if(a.l=this.l&-2,a.na=this.na,a.od=this.od,a.pd=this.pd,a.Dc=this.Dc,a.Ec=this.Ec,this.na===di.o){for(var y=this.ee.s,x=a.ee,b=0;b<y.length;b++)x.add(y[b].copy());a.ee=x}else a.ee=this.ee;return a.aq=this.aq,a.Ip.assign(this.Ip),a.tk=this.tk,a.ym=this.ym,a.zm=this.zm,a.fg=this.fg.J(),a.gg=this.gg.J(),a.Sk=this.Sk,a.Rk=this.Rk,a.Uf=this.Uf,a},di.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},di.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==di.o)return this;var a=this.figures;a.freeze(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].freeze();return this},di.prototype.ka=function(){if(Object.isFrozen(this)&&bt("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==di.o)return this;var a=this.figures;a.ka(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].ka();return this},di.prototype.Xa=function(a){if(!(a instanceof di))return!1;if(this.type!==a.type)return this.type===di.j&&a.type===di.o?Ns(this,a):a.type===di.j&&this.type===di.o?Ns(a,this):!1;if(this.type===di.o){var y=this.figures.s;a=a.figures.s;var x=y.length;if(x!==a.length)return!1;for(var b=0;b<x;b++)if(!y[b].Xa(a[b]))return!1;return!0}return Wt.B(this.startX,a.startX)&&Wt.B(this.startY,a.startY)&&Wt.B(this.endX,a.endX)&&Wt.B(this.endY,a.endY)};function Ns(a,y){return a.type!==di.j||y.type!==di.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&Wt.B(a.startX,y.startX)&&Wt.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===qo&&Wt.B(a.endX,y.endX)&&Wt.B(a.endY,y.endY))))}di.ia=function(a){return a.toString()},di.prototype.qb=function(a){a.classType===di&&(this.type=a)},di.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case di.j:return 0>a?"M"+this.startX.toString()+" "+this.startY.toString()+"L"+this.endX.toString()+" "+this.endY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a)+"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);case di.u:var y=new jn(this.startX,this.startY,0,0);return y.Kv(this.endX,this.endY,0,0),0>a?"M"+y.x.toString()+" "+y.y.toString()+"H"+y.right.toString()+"V"+y.bottom.toString()+"H"+y.left.toString()+"z":"M"+y.x.toFixed(a)+" "+y.y.toFixed(a)+"H"+y.right.toFixed(a)+"V"+y.bottom.toFixed(a)+"H"+y.left.toFixed(a)+"z";case di.F:if(y=new jn(this.startX,this.startY,0,0),y.Kv(this.endX,this.endY,0,0),0>a)return a=y.left.toString()+" "+(y.y+y.height/2).toString(),"M"+a+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+(y.right.toString()+" "+(y.y+y.height/2).toString())+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+a;var x=y.left.toFixed(a)+" "+(y.y+y.height/2).toFixed(a);return"M"+x+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+(y.right.toFixed(a)+" "+(y.y+y.height/2).toFixed(a))+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+x;case di.o:y="",x=this.figures.s;for(var b=x.length,E=0;E<b;E++){var z=x[E];0<E&&(y+=" x "),z.isFilled&&(y+="F "),y+=z.toString(a)}return y;default:return this.type.toString()}},di.nb=function(a){a=a.split(/[Xx]/);for(var y=a.length,x="",b=0;b<y;b++){var E=a[b];x=E.match(/[Ff]/)!==null?b===0?x+E:x+("X"+(E[0]===" "?"":" ")+E):x+((b===0?"":"X ")+"F"+(E[0]===" "?"":" ")+E)}return x},di.parse=function(a,y){function x(){return Ze>=Dt-1?!0:ce[Ze+1].match(Kt)!==null}function b(){return Ze++,ce[Ze]}function E(Br){var Ar=parseFloat(b()),Wo=parseFloat(b());pt===pt.toLowerCase()&&(Ar=Lt.x+Ar,Wo=Lt.y+Wo),Br.h(Ar,Wo)}function z(){return E(Lt),Lt}function te(){return E(Ct),Ct}function re(){var Br=at.toLowerCase();return Br!=="c"&&Br!=="s"&&Br!=="q"&&Br!=="t"?Lt:new lt(2*Lt.x-Ct.x,2*Lt.y-Ct.y)}y===void 0&&(y=!1);var le=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(le,"$1 $2"),a=a.replace(le,"$1 $2"),a=a.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^s])/gm,"$1 $2"),a=a.replace(/([^s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,"$1 $2"),a=a.replace(/([0-9])([+\-])/gm,"$1 $2"),a=a.replace(/[\s\r\t\n]+/gm," "),a=a.replace(/^\s+|\s+$/g,"");var ce=a.split(" ");for(a=0;a<ce.length;a++){var de=ce[a];if(de.match(/(\.[0-9]*)(\.)/gm)!==null){le=gn();for(var ve="",Pe=!1,Le=0;Le<de.length;Le++){var Fe=de[Le];Fe!=="."||Pe?Fe==="."?(le.push(ve),ve="."):ve+=Fe:(Pe=!0,ve+=Fe)}for(le.push(ve),ce.splice(a,1),de=0;de<le.length;de++)ce.splice(a+de,0,le[de]);a+=le.length-1,kn(le)}}var Ze=-1,pt="",at="";le=new lt(0,0);var Ct=new lt(0,0),Lt=new lt(0,0),Dt=ce.length;a=OS(null),Pe=ve=de=!1,Le=!0,Fe=null;for(var Kt=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(Ze>=Dt-1);)if(at=pt,pt=b(),pt!=="")switch(pt.toUpperCase()){case"X":Le=!0,ve=de=!1;break;case"M":for(Fe=z(),a.mc===null||Le===!0?(np(a,Fe.x,Fe.y,de,!ve,Pe),Le=!1):a.moveTo(Fe.x,Fe.y),le.assign(Lt);!x();)Fe=z(),a.lineTo(Fe.x,Fe.y);break;case"L":for(;!x();)Fe=z(),a.lineTo(Fe.x,Fe.y);break;case"H":for(;!x();)Lt=new lt((pt===pt.toLowerCase()?Lt.x:0)+parseFloat(b()),Lt.y),a.lineTo(Lt.x,Lt.y);break;case"V":for(;!x();)Lt=new lt(Lt.x,(pt===pt.toLowerCase()?Lt.y:0)+parseFloat(b())),a.lineTo(Lt.x,Lt.y);break;case"C":for(;!x();){Fe=new lt,E(Fe);var vn=te(),Pi=z();Uh(a,Fe.x,Fe.y,vn.x,vn.y,Pi.x,Pi.y)}break;case"S":for(;!x();)Fe=re(),vn=te(),Pi=z(),Uh(a,Fe.x,Fe.y,vn.x,vn.y,Pi.x,Pi.y);break;case"Q":for(;!x();)Fe=te(),vn=z(),n0(a,Fe.x,Fe.y,vn.x,vn.y);break;case"T":for(;!x();)Ct=Fe=re(),vn=z(),n0(a,Fe.x,Fe.y,vn.x,vn.y);break;case"B":for(;!x();){Fe=parseFloat(b()),vn=parseFloat(b()),Pi=parseFloat(b());var ji=parseFloat(b()),Di=parseFloat(b()),vi=Di,ti=!1;x()||(vi=parseFloat(b()),x()||(ti=parseFloat(b())!==0)),pt===pt.toLowerCase()&&(Pi+=Lt.x,ji+=Lt.y),a.arcTo(Fe,vn,Pi,ji,Di,vi,ti)}break;case"A":for(;!x();)Fe=Math.abs(parseFloat(b())),vn=Math.abs(parseFloat(b())),Pi=parseFloat(b()),Di=ji=!1,ti=vi=0,vi=b(),vi.length===1?(ji=!!parseFloat(vi),Di=!!parseFloat(b()),vi=parseFloat(b())):vi.length===2?(ji=!!parseFloat(vi[0]),Di=!!parseFloat(vi[1]),vi=parseFloat(b())):(ji=!!parseFloat(vi[0]),Di=!!parseFloat(vi[1]),vi=parseFloat(vi.slice(2))),ti=parseFloat(b()),pt===pt.toLowerCase()&&(vi=Lt.x+vi,ti=Lt.y+ti),Lt.h(vi,ti),I1(a,Fe,vn,Pi,ji,Di,vi,ti);break;case"Z":T1(a),Lt.assign(le);break;case"F":for(Fe="",vn=1;ce[Ze+vn];)if(ce[Ze+vn]==="0")Pe=!0,vn++;else if(ce[Ze+vn].match(/[Uu]/)!==null)vn++;else if(ce[Ze+vn].match(Kt)===null)vn++;else{Fe=ce[Ze+vn];break}Fe.match(/[Mm]/)?de=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(Fe="",vn=1;ce[Ze+vn];)if(ce[Ze+vn].match(/[Ff]/)!==null)vn++;else if(ce[Ze+vn].match(Kt)===null)vn++;else{Fe=ce[Ze+vn];break}Fe.match(/[Mm]/)?ve=!0:a.mc.isShadowed=!1}if(le=a.os,i0=a,y)for(y=le.figures.iterator;y.next();)y.value.isFilled=!0;return le},di.Ha=function(a,y){for(var x=a.length,b=lt.alloc(),E=0;E<x;E++){var z=a[E];b.x=z[0],b.y=z[1],y.Ga(b),z[0]=b.x,z[1]=b.y,b.x=z[2],b.y=z[3],y.Ga(b),z[2]=b.x,z[3]=b.y,b.x=z[4],b.y=z[5],y.Ga(b),z[4]=b.x,z[5]=b.y,b.x=z[6],b.y=z[7],y.Ga(b),z[6]=b.x,z[7]=b.y}lt.free(b)},di.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===di.o){if(this.aq!==this.figures.Ja)return!0;for(var a=this.figures.s,y=a.length,x=0;x<y;x++)if(a[x].Zu())return!0}return!1},di.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===di.o){this.aq=this.figures.Ja;for(var a=this.figures.s,y=a.length,x=0;x<y;x++){var b=a[x];b._isInvalidBounds=!1;var E=b.segments;b.sr=E.Ja,b=E.s,E=b.length;for(var z=0;z<E;z++){var te=b[z];te._isInvalidBounds=!1,te.ae=null}}}a=this.Ip,a.ka(),isNaN(this.Sk)||isNaN(this.Rk)?a.h(0,0,0,0):a.h(0,0,this.Sk,this.Rk),ps(this,a,!1),Xr(a,0,0,0,0),a.freeze()},di.prototype.ix=function(){var a=new jn;return ps(this,a,!0),a};function ps(a,y,x){switch(a.type){case di.j:case di.u:case di.F:x?y.h(a.od,a.pd,0,0):Xr(y,a.od,a.pd,0,0),Xr(y,a.Dc,a.Ec,0,0);break;case di.o:var b=a.figures;a=b.s,b=b.length;for(var E=0;E<b;E++){var z=a[E];x&&E===0?y.h(z.startX,z.startY,0,0):Xr(y,z.startX,z.startY,0,0);for(var te=z.segments.s,re=te.length,le=z.startX,ce=z.startY,de=0;de<re;de++){var ve=te[de];switch(ve.type){case qo:case za:le=ve.endX,ce=ve.endY,Xr(y,le,ce,0,0);break;case ol:Wt.Dl(le,ce,ve.point1X,ve.point1Y,ve.point2X,ve.point2Y,ve.endX,ve.endY,.5,y),le=ve.endX,ce=ve.endY;break;case Zi:Wt.iv(le,ce,ve.point1X,ve.point1Y,ve.endX,ve.endY,.5,y),le=ve.endX,ce=ve.endY;break;case oo:case iu:var Pe=ve.type===oo?Fa(ve,z):Fr(ve,z,le,ce),Le=Pe.length;if(Le===0){le=ve.type===oo?ve.centerX:ve.endX,ce=ve.type===oo?ve.centerY:ve.endY,Xr(y,le,ce,0,0);break}ve=null;for(var Fe=0;Fe<Le;Fe++)ve=Pe[Fe],Wt.Dl(ve[0],ve[1],ve[2],ve[3],ve[4],ve[5],ve[6],ve[7],.5,y);ve!==null&&(le=ve[6],ce=ve[7]);break;default:bt("Unknown Segment type: "+ve.type)}}}break;default:bt("Unknown Geometry type: "+a.type)}}di.prototype.normalize=function(){this._isFrozen&&Ut(this);var a=this.ix();return this.offset(-a.x,-a.y),new lt(-a.x,-a.y)},di.prototype.offset=function(a,y){return this._isFrozen&&Ut(this),this.transform(1,0,0,1,a,y),this},di.prototype.scale=function(a,y){return this._isFrozen&&Ut(this),this.transform(a,0,0,y,0,0),this},di.prototype.rotate=function(a,y,x){this._isFrozen&&Ut(this),y===void 0&&(y=0),x===void 0&&(x=0);var b=fr.alloc();return b.reset(),b.rotate(a,y,x),this.transform(b.m11,b.m12,b.m21,b.m22,b.dx,b.dy),fr.free(b),this},Ue=di.prototype,Ue.transform=function(a,y,x,b,E,z){switch(this.type){case di.j:case di.u:case di.F:var te=this.od,re=this.pd;this.od=te*a+re*x+E,this.pd=te*y+re*b+z,te=this.Dc,re=this.Ec,this.Dc=te*a+re*x+E,this.Ec=te*y+re*b+z;break;case di.o:for(var le=this.figures.s,ce=le.length,de=0;de<ce;de++){var ve=le[de];te=ve.startX,re=ve.startY,ve.startX=te*a+re*x+E,ve.startY=te*y+re*b+z,ve=ve.segments.s;for(var Pe=ve.length,Le=0;Le<Pe;Le++){var Fe=ve[Le];switch(Fe.type){case qo:case za:te=Fe.endX,re=Fe.endY,Fe.endX=te*a+re*x+E,Fe.endY=te*y+re*b+z;break;case ol:te=Fe.point1X,re=Fe.point1Y,Fe.point1X=te*a+re*x+E,Fe.point1Y=te*y+re*b+z,te=Fe.point2X,re=Fe.point2Y,Fe.point2X=te*a+re*x+E,Fe.point2Y=te*y+re*b+z,te=Fe.endX,re=Fe.endY,Fe.endX=te*a+re*x+E,Fe.endY=te*y+re*b+z;break;case Zi:te=Fe.point1X,re=Fe.point1Y,Fe.point1X=te*a+re*x+E,Fe.point1Y=te*y+re*b+z,te=Fe.endX,re=Fe.endY,Fe.endX=te*a+re*x+E,Fe.endY=te*y+re*b+z;break;case oo:te=Fe.centerX,re=Fe.centerY,Fe.centerX=te*a+re*x+E,Fe.centerY=te*y+re*b+z,y!==0&&(te=180*Math.atan2(y,a)/Math.PI,0>te&&(te+=360),Fe.startAngle+=te),0>a&&(Fe.startAngle=180-Fe.startAngle,Fe.sweepAngle=-Fe.sweepAngle),0>b&&(Fe.startAngle=-Fe.startAngle,Fe.sweepAngle=-Fe.sweepAngle),Fe.radiusX*=Math.sqrt(a*a+x*x),Fe.radiusY!==void 0&&(Fe.radiusY*=Math.sqrt(y*y+b*b));break;case iu:if(te=Fe.endX,re=Fe.endY,Fe.endX=te*a+re*x+E,Fe.endY=te*y+re*b+z,Fe.radiusX===0||Fe.radiusY===0)break;y!==0&&(te=180*Math.atan2(y,a)/Math.PI,0>te&&(te+=360),Fe.xAxisRotation+=te),0>a&&(Fe.xAxisRotation=180-Fe.xAxisRotation,Fe.isClockwiseArc=!Fe.isClockwiseArc),0>b&&(Fe.xAxisRotation=-Fe.xAxisRotation,Fe.isClockwiseArc=!Fe.isClockwiseArc),Fe.radiusX*=Math.sqrt(a*a+x*x),Fe.radiusY*=Math.sqrt(y*y+b*b);break;default:bt("Unknown Segment type: "+Fe.type)}}}}return this._isInvalidBounds=!0,this},Ue.ca=function(a,y){y===void 0&&(y=0);var x=this.od,b=this.pd,E=this.Dc,z=this.Ec;switch(this.type){case di.j:return Wt.Yb(x,b,E,z,y,a.x,a.y);case di.u:var te=jn.allocAt(Math.min(x,E)-y,Math.min(b,z)-y,Math.abs(E-x)+2*y,Math.abs(z-b)+2*y);return a=te.ca(a),jn.free(te),a;case di.F:te=Math.min(x,E)-y;var re=Math.min(b,z)-y;return x=(Math.abs(E-x)+2*y)/2,y=(Math.abs(z-b)+2*y)/2,0>=x||0>=y?!1:(te=a.x-(te+x),re=a.y-(re+y),1>=te*te/(x*x)+re*re/(y*y));case di.o:return cl(this,a,y,!0,!1);default:return!1}};function cl(a,y,x,b,E){var z=y.x;y=y.y;for(var te=a.bounds.x-20,re=0,le,ce,de,ve,Pe=a.figures.s,Le=Pe.length,Fe=0;Fe<Le;Fe++){var Ze=Pe[Fe],pt=!Ze.isEvenOdd;if(Ze.isFilled){if(b&&Ze.ca(z,y,x))return!0;var at=Ze.segments;le=Ze.startX,ce=Ze.startY;for(var Ct=le,Lt=ce,Dt=at.s,Kt=0;Kt<=at.length;Kt++){var vn=void 0;if(Kt!==at.length){vn=Dt[Kt];var Pi=vn.type;a=vn.endX,ve=vn.endY}else Pi=qo,a=Ct,ve=Lt;switch(Pi){case za:if(Ct=Os(z,y,te,y,le,ce,Ct,Lt),isNaN(Ct))return!0;re+=Ct,Ct=a,Lt=ve;break;case qo:if(le=Os(z,y,te,y,le,ce,a,ve),isNaN(le))return!0;re+=le;break;case ol:de=Wt.Fo(le,ce,vn.point1X,vn.point1Y,vn.point2X,vn.point2Y,a,ve,te,y,z,y,.5),re+=de;break;case Zi:de=Wt.Fo(le,ce,(le+2*vn.point1X)/3,(ce+2*vn.point1Y)/3,(2*vn.point1X+a)/3,(2*vn.point1Y+ve)/3,a,ve,te,y,z,y,.5),re+=de;break;case oo:case iu:Pi=vn.type===oo?Fa(vn,Ze):Fr(vn,Ze,le,ce);var ji=Pi.length;if(ji===0){if(le=Os(z,y,te,y,le,ce,vn.type===oo?vn.centerX:vn.endX,vn.type===oo?vn.centerY:vn.endY),isNaN(le))return!0;re+=le;break}vn=null;for(var Di=0;Di<ji;Di++){if(vn=Pi[Di],Di===0){if(de=Os(z,y,te,y,le,ce,vn[0],vn[1]),isNaN(de))return!0;re+=de}de=Wt.Fo(vn[0],vn[1],vn[2],vn[3],vn[4],vn[5],vn[6],vn[7],te,y,z,y,.5),re+=de}vn!==null&&(a=vn[6],ve=vn[7]);break;default:bt("Unknown Segment type: "+vn.type)}le=a,ce=ve}if(pt){if(re!==0)return!0}else if(re%2!==0)return!0;re=0}else if(Ze.ca(z,y,E?x:x+2))return!0}return!1}function Os(a,y,x,b,E,z,te,re){if(Wt.Yb(E,z,te,re,.05,a,y))return NaN;var le=(a-x)*(z-re);if(le===0)return 0;var ce=((a*b-y*x)*(E-te)-(a-x)*(E*re-z*te))/le;if(y=(a*b-y*x)*(z-re)/le,ce>=a)return 0;if((E>te?E-te:te-E)<(z>re?z-re:re-z)){if(z<re){if(y<z||y>re)return 0}else if(y<re||y>z)return 0}else if(E<te){if(ce<E||ce>te)return 0}else if(ce<te||ce>E)return 0;return 0<le?1:-1}function nu(a,y,x,b){a=a.figures.s;for(var E=a.length,z=0;z<E;z++)if(a[z].ca(y,x,b))return!0;return!1}Ue.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new lt),this.type===di.j)return y.h(this.startX+a*(this.endX-this.startX),this.startY+a*(this.endY-this.startY)),y;for(var x=this.flattenedSegments,b=this.flattenedLengths,E=x.length,z=this.flattenedTotalLength*a,te=0,re=0;re<E;re++){var le=b[re],ce=le.length;for(a=0;a<ce;a++){var de=le[a];if(te+de>=z)return b=z-te,b=de===0?0:b/de,x=x[re],re=x[2*a],E=x[2*a+1],y.h(re+(x[2*a+2]-re)*b,E+(x[2*a+3]-E)*b),y;te+=de}}return y},Ue.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===di.j)return 180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI;for(var y=this.flattenedSegments,x=this.flattenedLengths,b=y.length,E=this.flattenedTotalLength*a,z=0,te=0;te<b;te++){var re=x[te],le=re.length;for(a=0;a<le;a++){var ce=re[a];if(z+ce>=E)return E=y[te],y=E[2*a],x=E[2*a+1],b=E[2*a+2],a=E[2*a+3],1>Math.abs(b-y)&&1>Math.abs(a-x)?0:1>Math.abs(b-y)?0<=a-x?90:270:1>Math.abs(a-x)?0<=b-y?0:180:180*Math.atan2(a-x,b-y)/Math.PI;z+=ce}}return NaN},Ue.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===di.j)return y[0]=this.startX+a*(this.endX-this.startX),y[1]=this.startY+a*(this.endY-this.startY),y[2]=180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI,y;for(var x=this.flattenedSegments,b=this.flattenedLengths,E=x.length,z=this.flattenedTotalLength*a,te=0,re=0;re<E;re++){var le=b[re],ce=le.length;for(a=0;a<ce;a++){var de=le[a];if(te+de>=z)return b=z-te,b=de===0?0:b/de,de=x[re],x=de[2*a],re=de[2*a+1],E=de[2*a+2],a=de[2*a+3],y[0]=x+(E-x)*b,y[1]=re+(a-re)*b,y[2]=1>Math.abs(E-x)&&1>Math.abs(a-re)?0:1>Math.abs(E-x)?0<=a-re?90:270:1>Math.abs(a-re)?0<=E-x?0:180:180*Math.atan2(a-re,E-x)/Math.PI,y;te+=de}}return y},Ue.xx=function(a){if(this.type===di.j){var y=this.startX,x=this.startY,b=this.endX,E=this.endY;if(y!==b||x!==E){var z=a.x;if(a=a.y,y===b){if(x<E){var te=x;b=E}else te=E,b=x;return a<=te?te===x?0:1:a>=b?b===x?0:1:Math.abs(a-x)/(b-te)}if(x===E)return y<b?te=y:(te=b,b=y),z<=te?te===y?0:1:z>=b?b===y?0:1:Math.abs(z-y)/(b-te);te=(b-y)*(b-y)+(E-x)*(E-x);var re=lt.alloc();return Wt.qh(y,x,b,E,z,a,re),a=re.x,z=re.y,lt.free(re),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/te)}}else if(this.type===di.u){te=this.startX,re=this.startY;var le=this.endX;if(E=this.endY,te!==le||re!==E){y=le-te,x=E-re,z=2*y+2*x,b=a.x,a=a.y,b=Math.min(Math.max(b,te),le),a=Math.min(Math.max(a,re),E),te=Math.abs(b-te),le=Math.abs(b-le),re=Math.abs(a-re),E=Math.abs(a-E);var ce=Math.min(te,le,re,E);if(ce===re)return b/z;if(ce===le)return(y+a)/z;if(ce===E)return(2*y+x-b)/z;if(ce===te)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,b=lt.alloc(),E=1/0,re=te=0,le=y.length;for(var de=ce=0,ve=0;ve<le;ve++)for(var Pe=y[ve],Le=x[ve],Fe=Pe.length,Ze=0;Ze<Fe;Ze+=2){var pt=Pe[Ze],at=Pe[Ze+1];if(Ze!==0){Wt.qh(ce,de,pt,at,a.x,a.y,b);var Ct=(b.x-a.x)*(b.x-a.x)+(b.y-a.y)*(b.y-a.y);Ct<E&&(E=Ct,te=re,te+=Math.sqrt((b.x-ce)*(b.x-ce)+(b.y-de)*(b.y-de))),re+=Le[(Ze-2)/2]}ce=pt,de=at}return lt.free(b),a=te/z,0>a?0:1<a?1:a}return 0};function hu(a){if(a.tk===null){var y=a.tk=[],x=a.ym=[],b=[],E=[];if(a.type===di.j)b.push(a.startX),b.push(a.startY),b.push(a.endX),b.push(a.endY),y.push(b),E.push(Math.sqrt((a.startX-a.endX)*(a.startX-a.endX)+(a.startY-a.endY)*(a.startY-a.endY))),x.push(E);else if(a.type===di.u)b.push(a.startX),b.push(a.startY),b.push(a.endX),b.push(a.startY),b.push(a.endX),b.push(a.endY),b.push(a.startX),b.push(a.endY),b.push(a.startX),b.push(a.startY),y.push(b),E.push(Math.abs(a.startX-a.endX)),E.push(Math.abs(a.startY-a.endY)),E.push(Math.abs(a.startX-a.endX)),E.push(Math.abs(a.startY-a.endY)),x.push(E);else if(a.type===di.F){var z=new rs;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var te=new Eo(oo);if(te.startAngle=0,te.sweepAngle=360,te.centerX=(a.startX+a.endX)/2,te.centerY=(a.startY+a.endY)/2,te.radiusX=Math.abs(a.startX-a.endX)/2,te.radiusY=Math.abs(a.startY-a.endY)/2,z.add(te),a=Fa(te,z),E=a.length,E===0)b.push(te.centerX),b.push(te.centerY);else{te=z.startX,z=z.startY;for(var re=0;re<E;re++){var le=a[re];Wt.Qe(te,z,le[2],le[3],le[4],le[5],le[6],le[7],.5,b),te=le[6],z=le[7]}}y.push(b),x.push(Vu(b))}else for(a=a.figures.iterator;a.next();){E=a.value,b=[],b.push(E.startX),b.push(E.startY),te=E.startX,z=E.startY,re=te,le=z;for(var ce=E.segments.s,de=ce.length,ve=0;ve<de;ve++){var Pe=ce[ve];switch(Pe.type){case za:4<=b.length&&(y.push(b),x.push(Vu(b))),b=[],b.push(Pe.endX),b.push(Pe.endY),te=Pe.endX,z=Pe.endY,re=te,le=z;break;case qo:b.push(Pe.endX),b.push(Pe.endY),te=Pe.endX,z=Pe.endY;break;case ol:Wt.Qe(te,z,Pe.point1X,Pe.point1Y,Pe.point2X,Pe.point2Y,Pe.endX,Pe.endY,.5,b),te=Pe.endX,z=Pe.endY;break;case Zi:Wt.ep(te,z,Pe.point1X,Pe.point1Y,Pe.endX,Pe.endY,.5,b),te=Pe.endX,z=Pe.endY;break;case oo:var Le=Fa(Pe,E),Fe=Le.length;if(Fe===0){b.push(Pe.centerX),b.push(Pe.centerY),te=Pe.centerX,z=Pe.centerY;break}for(var Ze=0;Ze<Fe;Ze++){var pt=Le[Ze];Wt.Qe(te,z,pt[2],pt[3],pt[4],pt[5],pt[6],pt[7],.5,b),te=pt[6],z=pt[7]}break;case iu:if(Le=Fr(Pe,E,te,z),Fe=Le.length,Ze=Pe.endX,pt=Pe.endY,Fe===0){b.push(Ze),b.push(pt),te=Ze,z=pt;break}for(Ze=0;Ze<Fe;Ze++)pt=Le[Ze],Wt.Qe(te,z,pt[2],pt[3],pt[4],pt[5],pt[6],pt[7],.5,b),te=pt[6],z=pt[7];break;default:bt("Segment not of valid type: "+Pe.type)}Pe.isClosed&&(b.push(re),b.push(le))}4<=b.length&&(y.push(b),x.push(Vu(b)))}}}function Vu(a){for(var y=[],x=0,b=0,E=a.length,z=0;z<E;z+=2){var te=a[z],re=a[z+1];z!==0&&y.push(Math.sqrt(gr(x,b,te,re))),x=te,b=re}return y}Ue.add=function(a){return this.ee.add(a),this},Ue.pm=function(a,y,x,b,E,z,te,re){return this._isFrozen&&Ut(this),this.fg=new _i(a,y,E,z).freeze(),this.gg=new _i(x,b,te,re).freeze(),this},Nt.Object.defineProperties(di.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},flattenedSegments:{get:function(){return hu(this),this.tk}},flattenedLengths:{get:function(){return hu(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===di.j){a=Math.abs(this.endX-this.startX);var y=Math.abs(this.endY-this.startY);a=Math.sqrt(a*a+y*y)}else if(this.type===di.u)a=2*Math.abs(this.endX-this.startX)+2*Math.abs(this.endY-this.startY);else{y=this.flattenedLengths;for(var x=y.length,b=a=0;b<x;b++)for(var E=y[b],z=E.length,te=0;te<z;te++)a+=E[te]}this.zm=a}return a}},type:{get:function(){return this.na},set:function(a){this.na!==a&&(this._isFrozen&&Ut(this,a),this.na=a,a===di.o?this.ee=new Ht:(di.V===null&&(di.V=new Ht().freeze()),this.ee=di.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&Ut(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&Ut(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&Ut(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&Ut(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&Ut(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&Ut(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&Ut(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&Ut(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),di.prototype.setSpots=di.prototype.pm,di.prototype.add=di.prototype.add,di.prototype.getFractionForPoint=di.prototype.xx,di.prototype.getPointAndAngleAlongPath=di.prototype.Qu,di.prototype.getAngleAlongPath=di.prototype.wx,di.prototype.getPointAlongPath=di.prototype.Pu,di.prototype.containsPoint=di.prototype.ca,di.prototype.transform=di.prototype.transform,di.prototype.rotate=di.prototype.rotate,di.prototype.scale=di.prototype.scale,di.prototype.offset=di.prototype.offset,di.prototype.normalize=di.prototype.normalize,di.prototype.computeBoundsWithoutOrigin=di.prototype.ix,di.prototype.equalsApprox=di.prototype.Xa,di.className="Geometry",di.j=new tn(di,"Line",0),di.u=new tn(di,"Rectangle",1),di.F=new tn(di,"Ellipse",2),di.o=new tn(di,"Path",3),di.V=null,di.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",di.className="Geometry",di.stringify=di.ia,di.fillPath=di.nb,di.parse=di.parse,di.Line=di.j,di.Rectangle=di.u,di.Ellipse=di.F,di.Path=di.o;function rs(a,y,x,b,E){kr(this),x===void 0&&(x=!0),b===void 0&&(b=!0),E===void 0&&(E=!1),this.l=2|(x?4:0)|(b?8:0)|(E?16:0),a!==void 0?this.od=a:this.od=0,y!==void 0?this.pd=y:this.pd=0,this.pl=new Ht,this.sr=this.pl.Ja,this.fw=null}rs.prototype.copy=function(){var a=new rs;a.l=this.l&-2,a.od=this.od,a.pd=this.pd;for(var y=this.pl.s,x=y.length,b=a.pl,E=0;E<x;E++){var z=y[E].copy();b.add(z)}return a.sr=this.sr,a.fw=this.fw,a},Ue=rs.prototype,Ue.Xa=function(a){if(!(a instanceof rs&&Wt.B(this.startX,a.startX)&&Wt.B(this.startY,a.startY)))return!1;var y=this.segments.s;a=a.segments.s;var x=y.length;if(x!==a.length)return!1;for(var b=0;b<x;b++)if(!y[b].Xa(a[b]))return!1;return!0},Ue.toString=function(a){a===void 0&&(a=-1);for(var y=0>a?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a),x=this.segments.s,b=x.length,E=0;E<b;E++)y+=" "+x[E].toString(a);return y},Ue.freeze=function(){this._isFrozen=!0;var a=this.segments;a.freeze();var y=a.s;a=a.length;for(var x=0;x<a;x++)y[x].freeze();return this},Ue.ka=function(){this._isFrozen=!1;var a=this.segments;a.ka(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].ka();return this},Ue.Zu=function(){if(this._isInvalidBounds)return!0;var a=this.segments;if(this.sr!==a.Ja)return!0;a=a.s;for(var y=a.length,x=0;x<y;x++)if(a[x]._isInvalidBounds)return!0;return!1},Ue.add=function(a){return this.pl.add(a),this},Ue.ca=function(a,y,x){for(var b=this.startX,E=this.startY,z=b,te=E,re=this.segments.s,le=re.length,ce=0;ce<le;ce++){var de=re[ce];switch(de.type){case za:z=de.endX,te=de.endY,b=de.endX,E=de.endY;break;case qo:if(Wt.Yb(b,E,de.endX,de.endY,x,a,y))return!0;b=de.endX,E=de.endY;break;case ol:if(Wt.cs(b,E,de.point1X,de.point1Y,de.point2X,de.point2Y,de.endX,de.endY,.5,a,y,x))return!0;b=de.endX,E=de.endY;break;case Zi:if(Wt.jv(b,E,de.point1X,de.point1Y,de.endX,de.endY,.5,a,y,x))return!0;b=de.endX,E=de.endY;break;case oo:case iu:var ve=de.type===oo?Fa(de,this):Fr(de,this,b,E),Pe=ve.length,Le=de.type===oo?de.centerX:de.endX,Fe=de.type===oo?de.centerY:de.endY;if(Pe===0){if(Wt.Yb(b,E,Le,Fe,x,a,y))return!0;b=Le,E=Fe;break}for(Le=null,Fe=0;Fe<Pe;Fe++)if(Le=ve[Fe],Fe===0&&Wt.Yb(b,E,Le[0],Le[1],x,a,y)||Wt.cs(Le[0],Le[1],Le[2],Le[3],Le[4],Le[5],Le[6],Le[7],.5,a,y,x))return!0;Le!==null&&(b=Le[6],E=Le[7]);break;default:bt("Unknown Segment type: "+de.type)}if(de.isClosed&&(b!==z||E!==te)&&Wt.Yb(b,E,z,te,x,a,y))return!0}return!1},Nt.Object.defineProperties(rs.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},isFilled:{get:function(){return(this.l&4)!==0},set:function(a){this._isFrozen&&Ut(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&Ut(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&Ut(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&Ut(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&Ut(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&Ut(this,a),this.pl=a,this._isInvalidBounds=!0}}}),rs.prototype.add=rs.prototype.add,rs.prototype.equalsApprox=rs.prototype.Xa,rs.className="PathFigure";function Eo(a,y,x,b,E,z,te,re){kr(this),a===void 0&&(a=qo),this.na=a,this.l=2,y!==void 0?this.Dc=y:this.Dc=0,x!==void 0?this.Ec=x:this.Ec=0,b===void 0&&(b=0),E===void 0&&(E=0),z===void 0&&(z=0),te===void 0&&(te=0),a===iu?(a=z%360,0>a&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(b,0),this.Pg=Math.max(E,0),typeof te=="boolean"?te&&(this.isLargeArc=!0):typeof te=="number"&&te&&(this.isLargeArc=!0),re&&(this.isClockwiseArc=!0)):(this.Ne=b,this.Vh=E,a===oo&&(z=Math.max(z,0)),this.Wh=z,typeof te=="number"?(a===oo&&(te=Math.max(te,0)),this.Pg=te):this.Pg=0),this.ae=null}Eo.prototype.copy=function(){var a=new Eo;return a.na=this.na,a.l=this.l&-2,a.Dc=this.Dc,a.Ec=this.Ec,a.Ne=this.Ne,a.Vh=this.Vh,a.Wh=this.Wh,a.Pg=this.Pg,a},Ue=Eo.prototype,Ue.Xa=function(a){if(!(a instanceof Eo)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case za:case qo:return Wt.B(this.endX,a.endX)&&Wt.B(this.endY,a.endY);case ol:return Wt.B(this.endX,a.endX)&&Wt.B(this.endY,a.endY)&&Wt.B(this.point1X,a.point1X)&&Wt.B(this.point1Y,a.point1Y)&&Wt.B(this.point2X,a.point2X)&&Wt.B(this.point2Y,a.point2Y);case Zi:return Wt.B(this.endX,a.endX)&&Wt.B(this.endY,a.endY)&&Wt.B(this.point1X,a.point1X)&&Wt.B(this.point1Y,a.point1Y);case oo:return Wt.B(this.startAngle,a.startAngle)&&Wt.B(this.sweepAngle,a.sweepAngle)&&Wt.B(this.centerX,a.centerX)&&Wt.B(this.centerY,a.centerY)&&Wt.B(this.radiusX,a.radiusX)&&Wt.B(this.radiusY,a.radiusY);case iu:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&Wt.B(this.xAxisRotation,a.xAxisRotation)&&Wt.B(this.endX,a.endX)&&Wt.B(this.endY,a.endY)&&Wt.B(this.radiusX,a.radiusX)&&Wt.B(this.radiusY,a.radiusY);default:return!1}},Ue.qb=function(a){a.classType===Eo&&(this.type=a)},Ue.toString=function(a){switch(a===void 0&&(a=-1),this.type){case za:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case qo:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case ol:a=0>a?"C"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.point2X.toString()+" "+this.point2Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"C"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.point2X.toFixed(a)+" "+this.point2Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Zi:a=0>a?"Q"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"Q"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case oo:a=0>a?"B"+this.startAngle.toString()+" "+this.sweepAngle.toString()+" "+this.centerX.toString()+" "+this.centerY.toString()+" "+this.radiusX.toString()+" "+this.radiusY.toString():"B"+this.startAngle.toFixed(a)+" "+this.sweepAngle.toFixed(a)+" "+this.centerX.toFixed(a)+" "+this.centerY.toFixed(a)+" "+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a);break;case iu:a=0>a?"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(a)+" "+this.radiusY.toFixed(a)+" "+this.xAxisRotation.toFixed(a)+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;default:a=this.type.toString()}return a+(this.isClosed?"z":"")},Ue.freeze=function(){return this._isFrozen=!0,this},Ue.ka=function(){return this._isFrozen=!1,this},Ue.close=function(){return this.isClosed=!0,this};function Fa(a,y){if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;var x=a.radiusX,b=a.radiusY;if(b===void 0&&(b=x),x===0||b===0)return a.ae=[],a.ae;y=a.Ne;var E=a.Vh,z=Wt.jx(0,0,x<b?x:b,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==b){var te=fr.alloc();te.reset(),x<b?te.scale(1,b/x):te.scale(x/b,1),di.Ha(z,te),fr.free(te)}for(x=z.length,b=0;b<x;b++)te=z[b],te[0]+=y,te[1]+=E,te[2]+=y,te[3]+=E,te[4]+=y,te[5]+=E,te[6]+=y,te[7]+=E;return a.ae=z,a.ae}function Fr(a,y,x,b){function E(Ze,pt,at,Ct){return(Ze*Ct<pt*at?-1:1)*Math.acos((Ze*at+pt*Ct)/(Math.sqrt(Ze*Ze+pt*pt)*Math.sqrt(at*at+Ct*Ct)))}if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;if(a.radiusX===0||a.radiusY===0)return a.ae=[],a.ae;y=a.Wh;var z=a.Pg;y===0&&(y=1e-4),z===0&&(z=1e-4);var te=Math.PI/180*a.Ne,re=a.isLargeArc,le=a.isClockwiseArc,ce=a.Dc,de=a.Ec,ve=Math.cos(te),Pe=Math.sin(te),Le=ve*(x-ce)/2+Pe*(b-de)/2;te=-Pe*(x-ce)/2+ve*(b-de)/2;var Fe=Le*Le/(y*y)+te*te/(z*z);return 1<Fe&&(y*=Math.sqrt(Fe),z*=Math.sqrt(Fe)),Fe=(re===le?-1:1)*Math.sqrt((y*y*z*z-y*y*te*te-z*z*Le*Le)/(y*y*te*te+z*z*Le*Le)),isNaN(Fe)&&(Fe=0),re=Fe*y*te/z,Fe=Fe*-z*Le/y,isNaN(re)&&(re=0),isNaN(Fe)&&(Fe=0),x=(x+ce)/2+ve*re-Pe*Fe,b=(b+de)/2+Pe*re+ve*Fe,de=E(1,0,(Le-re)/y,(te-Fe)/z),ve=(Le-re)/y,ce=(te-Fe)/z,Le=(-Le-re)/y,re=(-te-Fe)/z,te=E(ve,ce,Le,re),Le=(ve*Le+ce*re)/(Math.sqrt(ve*ve+ce*ce)*Math.sqrt(Le*Le+re*re)),-1>=Le?te=Math.PI:1<=Le&&(te=0),!le&&0<te&&(te-=2*Math.PI),le&&0>te&&(te+=2*Math.PI),le=y>z?1:y/z,Le=y>z?z/y:1,y=Wt.jx(0,0,y>z?y:z,de,de+te,!0),z=fr.alloc(),z.reset(),z.translate(x,b),z.rotate(a.Ne,0,0),z.scale(le,Le),di.Ha(y,z),fr.free(z),a.ae=y,a.ae}Nt.Object.defineProperties(Eo.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},isClosed:{get:function(){return(this.l&8)!==0},set:function(a){this.isClosed!==a&&(this.l=a?this.l|8:this.l&-9,this._isInvalidBounds=!0)}},type:{get:function(){return this.na},set:function(a){this._isFrozen&&Ut(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Ut(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&Ut(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Ut(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Ut(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&Ut(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&Ut(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Ut(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Ut(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&Ln(a,">= zero",Eo,"radiusX"),this._isFrozen&&Ut(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&Ln(a,">= zero",Eo,"radiusY"),this._isFrozen&&Ut(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Ut(this,a),a%=360,0>a&&(a+=360),this.Dc=a,this._isInvalidBounds=!0}},sweepAngle:{get:function(){return this.Ec},set:function(a){this._isFrozen&&Ut(this,a),360<a&&(a=360),-360>a&&(a=-360),this.Ec=a,this._isInvalidBounds=!0}},isClockwiseArc:{get:function(){return(this.l&4)!==0},set:function(a){this._isFrozen&&Ut(this,a),this.l=a?this.l|4:this.l&-5,this._isInvalidBounds=!0}},isLargeArc:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&Ut(this,a),this.l=a?this.l|16:this.l&-17,this._isInvalidBounds=!0}},xAxisRotation:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Ut(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),Eo.prototype.equalsApprox=Eo.prototype.Xa;var za=new tn(Eo,"Move",0),qo=new tn(Eo,"Line",1),ol=new tn(Eo,"Bezier",2),Zi=new tn(Eo,"QuadraticBezier",3),oo=new tn(Eo,"Arc",4),iu=new tn(Eo,"SvgArc",4);Eo.className="PathSegment",Eo.Move=za,Eo.Line=qo,Eo.Bezier=ol,Eo.QuadraticBezier=Zi,Eo.Arc=oo,Eo.SvgArc=iu;function Sl(){this.H=null,this.xu=new lt(0,0).freeze(),this.mt=new lt(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}Sl.prototype.copy=function(){var a=new Sl;return this.clone(a)},Sl.prototype.clone=function(a){return a.H=this.H,a.xu.assign(this.viewPoint),a.mt.assign(this.documentPoint),a.Rq=this.Rq,a.Bp=this.Bp,a.Cp=this.Cp,a.xq=this.xq,a.Tp=this.Tp,a.Wr=this.Wr,a.Ep=this.Ep,a.Rp=this.Rp,a.tq=this.tq,a.nq=this.nq,a.xg=this.xg,a.Zp=this.Zp,a.Rr=this.Rr,a.Nr=this.Nr,a.xd=this.xd,a},Sl.prototype.toString=function(){var a="^";return this.modifiers!==0&&(a+="M:"+this.modifiers),this.button!==0&&(a+="B:"+this.button),this.key!==""&&(a+="K:"+this.key),this.clickCount!==0&&(a+="C:"+this.clickCount),this.delta!==0&&(a+="D:"+this.delta),this.handled&&(a+="h"),this.bubbles&&(a+="b"),this.documentPoint!==null&&(a+="@"+this.documentPoint.toString()),a},Sl.prototype.So=function(a,y){var x=this.diagram;return x===null||Dh(x,a,y),y},Sl.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(Dh(x,a,y),y.assign(x.Ps(y))),y},Nt.Object.defineProperties(Sl.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},viewPoint:{get:function(){return this.xu},set:function(a){this.xu.assign(a)}},documentPoint:{get:function(){return this.mt},set:function(a){this.mt.assign(a)}},modifiers:{get:function(){return this.Rq},set:function(a){this.Rq=a}},button:{get:function(){return this.Bp},set:function(a){if(this.Bp=a,this.event===null)switch(a){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(a){this.Cp=a}},key:{get:function(){return this.xq},set:function(a){this.xq=a}},down:{get:function(){return this.Tp},set:function(a){this.Tp=a}},up:{get:function(){return this.Wr},set:function(a){this.Wr=a}},clickCount:{get:function(){return this.Ep},set:function(a){this.Ep=a}},delta:{get:function(){return this.Rp},set:function(a){this.Rp=a}},isMultiTouch:{get:function(){return this.tq},set:function(a){this.tq=a}},handled:{get:function(){return this.nq},set:function(a){this.nq=a}},bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},event:{get:function(){return this.Zp},set:function(a){this.Zp=a}},isTouchEvent:{get:function(){var a=this.event;return a===null?!1:a.pointerType==="touch"||a.pointerType==="pen"}},timestamp:{get:function(){return this.Rr},set:function(a){this.Rr=a}},targetDiagram:{get:function(){return this.Nr},set:function(a){this.Nr=a}},targetObject:{get:function(){return this.xd},set:function(a){this.xd=a}},control:{get:function(){return(this.modifiers&1)!==0},set:function(a){this.modifiers=a?this.modifiers|1:this.modifiers&-2}},shift:{get:function(){return(this.modifiers&4)!==0},set:function(a){this.modifiers=a?this.modifiers|4:this.modifiers&-5}},alt:{get:function(){return(this.modifiers&2)!==0},set:function(a){this.modifiers=a?this.modifiers|2:this.modifiers&-3}},meta:{get:function(){return(this.modifiers&8)!==0},set:function(a){this.modifiers=a?this.modifiers|8:this.modifiers&-9}},left:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&1)!==0:this.button===0},set:function(a){this.buttons=a?this.buttons|1:this.buttons&-2}},right:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&2)!==0:this.button===2},set:function(a){this.buttons=a?this.buttons|2:this.buttons&-3}},middle:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&4)!==0:this.button===1},set:function(a){this.buttons=a?this.buttons|4:this.buttons&-5}}}),Sl.prototype.getMultiTouchDocumentPoint=Sl.prototype.Bz,Sl.prototype.getMultiTouchViewPoint=Sl.prototype.So,Sl.className="InputEvent";function _c(){this.H=null,this.xa="",this.ar=this.Lr=null}_c.prototype.copy=function(){var a=new _c;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},_c.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},Nt.Object.defineProperties(_c.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},subject:{get:function(){return this.Lr},set:function(a){this.Lr=a}},parameter:{get:function(){return this.ar},set:function(a){this.ar=a}}}),_c.className="DiagramEvent";function Xo(){this.Fm=Ma,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}Xo.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},Xo.prototype.copy=function(){var a=new Xo;a.Fm=this.Fm,a.Qq=this.Qq,a.rf=this.rf,a.cc=this.cc,a.H=this.H,a.Qn=this.Qn;var y=this.Sn;return a.Sn=Gt(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=Gt(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=Gt(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=Gt(y)&&typeof y.J=="function"?y.J():y,a},Xo.prototype.qb=function(a){a.classType===Xo&&(this.change=a)},Xo.prototype.toString=function(){var a="";return a=this.change===Bl?a+"* ":this.change===Ma?a+(this.model!==null?"!m":"!d"):a+((this.model!==null?"!m":"!d")+this.change),this.propertyName&&typeof this.propertyName=="string"&&(a+=" "+this.propertyName),this.modelChange&&this.modelChange!==this.propertyName&&(a+=" "+this.modelChange),a+=": ",this.change===Bl?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=Vn(this.object)),this.oldValue!==null&&(a+=" old: "+Vn(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+Vn(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},Xo.prototype.I=function(a){return a?this.oldValue:this.newValue},Xo.prototype.Dz=function(a){return a?this.oldParam:this.newParam},Xo.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},Xo.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},Xo.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},Xo.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},Nt.Object.defineProperties(Xo.prototype,{model:{get:function(){return this.cc},set:function(a){this.cc=a}},diagram:{get:function(){return this.H},set:function(a){this.H=a}},change:{get:function(){return this.Fm},set:function(a){this.Fm=a}},modelChange:{get:function(){return this.Qq},set:function(a){this.Qq=a}},propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},isTransactionFinished:{get:function(){return this.Fm===Bl&&(this.rf==="CommittedTransaction"||this.rf==="FinishedUndo"||this.rf==="FinishedRedo")}},object:{get:function(){return this.Qn},set:function(a){this.Qn=a}},oldValue:{get:function(){return this.Sn},set:function(a){this.Sn=a}},oldParam:{get:function(){return this.Rn},set:function(a){this.Rn=a}},newValue:{get:function(){return this.Mn},set:function(a){this.Mn=a}},newParam:{get:function(){return this.Ln},set:function(a){this.Ln=a}}}),Xo.prototype.redo=Xo.prototype.redo,Xo.prototype.canRedo=Xo.prototype.canRedo,Xo.prototype.undo=Xo.prototype.undo,Xo.prototype.canUndo=Xo.prototype.canUndo,Xo.prototype.getParam=Xo.prototype.Dz,Xo.prototype.getValue=Xo.prototype.I,Xo.prototype.clear=Xo.prototype.clear;var Bl=new tn(Xo,"Transaction",-1),Ma=new tn(Xo,"Property",0),Ka=new tn(Xo,"Insert",1),ms=new tn(Xo,"Remove",2);Xo.className="ChangedEvent",Xo.Transaction=Bl,Xo.Property=Ma,Xo.Insert=Ka,Xo.Remove=ms;function os(){this.o=new Ht().freeze(),this.xa="",this.j=!1}os.prototype.toString=function(a){var y="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(a!==void 0&&0<a){a=this.changes.count;for(var x=0;x<a;x++){var b=this.changes.M(x);b!==null&&(y+=`
`+b.toString())}}return y},os.prototype.clear=function(){var a=this.changes;a.ka();for(var y=a.count-1;0<=y;y--){var x=a.M(y);x!==null&&x.clear()}a.clear(),a.freeze()},os.prototype.canUndo=function(){return this.isComplete},os.prototype.undo=function(){if(this.canUndo())for(var a=this.changes.count-1;0<=a;a--){var y=this.changes.M(a);y!==null&&y.undo()}},os.prototype.canRedo=function(){return this.isComplete},os.prototype.redo=function(){if(this.canRedo())for(var a=this.changes.count,y=0;y<a;y++){var x=this.changes.M(y);x!==null&&x.redo()}},os.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new Ii,x=0;x<a.count;x++){var b=a.M(x);if(b!==null&&b.change===Ma&&b.object){var E=y.get(b.object);E||(E=new Ii,y.set(b.object,E));var z=E.get(b.propertyName);z===null?E.set(b.propertyName,-1):(0<z&&a.cd(z,null),E.set(b.propertyName,x))}}for(x=y=0;x<a.count;x++)b=a.M(x),b!==null&&(x>y&&a.cd(y,b),y++);for(;a.length>y;)a.pop();a.freeze()}},Nt.Object.defineProperties(os.prototype,{changes:{get:function(){return this.o}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isComplete:{get:function(){return this.j},set:function(a){this.j=a}}}),os.prototype.optimize=os.prototype.ak,os.prototype.redo=os.prototype.redo,os.prototype.canRedo=os.prototype.canRedo,os.prototype.undo=os.prototype.undo,os.prototype.canUndo=os.prototype.canUndo,os.prototype.clear=os.prototype.clear,os.className="Transaction";function ya(){this.Pt=new Fn,this.Jd=!1,this.u=new Ht().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new Ht().freeze(),this.hl=new Ht,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}ya.prototype.toString=function(a){var y="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;y+="[";for(var x=this.nestedTransactionNames.count,b=0;b<x;b++)0<b&&(y+=" "),y+=this.nestedTransactionNames.M(b);if(y+="]",a!==void 0&&0<a)for(x=this.history.count,b=0;b<x;b++)y+=`
`+this.history.M(b).toString(a-1);return y},ya.prototype.clear=function(){var a=this.history;a.ka();for(var y=a.count-1;0<=y;y--){var x=a.M(y);x!==null&&x.clear()}a.clear(),this.Ce=-1,a.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},ya.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},Ue=ya.prototype,Ue.Xw=function(a){this.Pt.add(a)},Ue.Rx=function(a){this.Pt.remove(a)},Ue.Ea=function(a){if(a===void 0&&(a=""),a===null&&(a=""),this.isUndoingRedoing)return!1;this.tt===!0&&(this.tt=!1,this.bi++,this.isInternalTransaction||this.Ob("StartingFirstTransaction",a,this.currentTransaction),0<this.bi&&this.bi--),this.isEnabled&&(this.Ie.ka(),this.Ie.add(a),this.Ie.freeze(),this.currentTransaction===null?this.hl.add(0):this.hl.add(this.currentTransaction.changes.count)),this.bi++;var y=this.transactionLevel===1;return y&&(this.isInternalTransaction||this.Ob("StartedTransaction",a,this.currentTransaction)),y},Ue.eb=function(a){return a===void 0&&(a=""),Ku(this,!0,a)},Ue.Kf=function(){return Ku(this,!1,"")};function Ku(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&ni("Ending transaction without having started a transaction: "+x);var b=a.transactionLevel===1,E=a.currentTransaction;b&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",x,E));var z=0;if(0<a.transactionLevel&&(a.bi--,a.isEnabled)){var te=a.Ie.count;0<te&&(x===""&&(x=a.Ie.M(0)),a.Ie.ka(),a.Ie.mb(te-1),a.Ie.freeze()),te=a.hl.count,0<te&&(z=a.hl.M(te-1),a.hl.mb(te-1))}if(b){if(y)a.rq=!1,E===null&&x!==""&&(E=a.currentTransaction),a.isEnabled&&E!==null&&(E.isComplete||(E.isComplete=!0,E.name=x),a.lx(),y=a.history,y.ka(),b=a.maxHistoryLength,0<=b&&(b===0?y.clear():y.count>=b&&(z=y.M(0),z!==null&&z.clear(),y.mb(0),a.Ce--)),b===0||y.count!==0&&y.get(y.count-1)===E||(y.add(E),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",x,E);else{a.Fe=!0;try{a.isEnabled&&E!==null&&(E.isComplete=!0,E.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",x,E),a.Fe=!1}E!==null&&E.clear()}return a.Np=null,a.isPendingClear&&a.clear(),a.isPendingClear=!1,a.isPendingUnmodified=!1,!0}if(a.isEnabled&&!y&&E!==null){for(a=z,x=E.changes,E=x.count-1;E>=a;E--)y=x.M(E),y!==null&&y.undo(),x.ka(),x.mb(E);x.freeze()}return!1}Ue.lx=function(){if(!this.isUndoingRedoing&&this.canRedo()){var a=this.history;a.ka();for(var y=a.count-1;y>this.historyIndex;y--){var x=a.M(y);x!==null&&x.clear(),a.mb(y),this.rq=!0}a.freeze()}},ya.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},ya.prototype.undo=function(){if(this.canUndo()){var a=this.transactionToUndo;try{this.Fe=!0,this.Ob("StartingUndo","Undo",a),this.Ce--,a.undo()}catch(y){ni("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},ya.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},ya.prototype.redo=function(){if(this.canRedo()){var a=this.transactionToRedo;try{this.Fe=!0,this.Ob("StartingRedo","Redo",a),this.Ce++,a.redo()}catch(y){ni("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},ya.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var b=new Xo;for(b.change=Bl,b.propertyName=a,b.object=x,b.oldValue=y,a=this.models;a.next();)y=a.value,b.model=y,y.ds(b)},ya.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new os);var x=a.copy();y=y.changes,y.ka(),y.add(x),y.freeze(),this.checksTransactionLevel&&0>=this.transactionLevel&&!this.tt&&(a=a.diagram,a!==null&&a.pi===!1||ni("Change not within a transaction: "+x.toString()))}},ya.prototype.skipsEvent=function(a){if(a===null||0>a.change.value)return!0;if(a=a.object,a===null)return!1;if(a.layer!==void 0){if(a=a.layer,a!==null&&a.isTemporary)return!0}else if(a.isTemporary)return!0;return!1},Nt.Object.defineProperties(ya.prototype,{models:{get:function(){return this.Pt.iterator}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},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(a){this.o=a}},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(a){this.j=a}},nestedTransactionNames:{get:function(){return this.Ie}},isPendingClear:{get:function(){return this.Ft},set:function(a){this.Ft=a}},isPendingUnmodified:{get:function(){return this.Gt},set:function(a){this.Gt=a}},isInternalTransaction:{get:function(){return this.Dt},set:function(a){this.Dt=a}},isJustDiscarded:{get:function(){return this.rq}}}),ya.prototype.handleChanged=ya.prototype.Tu,ya.prototype.redo=ya.prototype.redo,ya.prototype.undo=ya.prototype.undo,ya.prototype.canUndo=ya.prototype.canUndo,ya.prototype.discardHistoryAfterIndex=ya.prototype.lx,ya.prototype.rollbackTransaction=ya.prototype.Kf,ya.prototype.commitTransaction=ya.prototype.eb,ya.prototype.startTransaction=ya.prototype.Ea,ya.prototype.removeModel=ya.prototype.Rx,ya.prototype.addModel=ya.prototype.Xw,ya.prototype.clear=ya.prototype.clear,ya.className="UndoManager";function xo(){kr(this),this.H=Lc,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new Sl,this.Zr=-1}xo.prototype.toString=function(){return this.name!==""?this.name+" Tool":Bn(this.constructor)},xo.prototype.updateAdornments=function(){},xo.prototype.canStart=function(){return this.isEnabled},xo.prototype.doStart=function(){},xo.prototype.doActivate=function(){this.isActive=!0},xo.prototype.doDeactivate=function(){this.isActive=!1},xo.prototype.doStop=function(){},xo.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},xo.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},xo.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},xo.prototype.doMouseMove=function(){},xo.prototype.doMouseUp=function(){this.stopTool()},xo.prototype.doMouseWheel=function(){},xo.prototype.canStartMultiTouch=function(){return!0},xo.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,lt.allocAt(NaN,NaN)),b=y.So(1,lt.allocAt(NaN,NaN));if(x.w()&&b.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){a.Bw=a.scale;var E=b.x-x.x,z=b.y-x.y;a.Jw=Math.sqrt(E*E+z*z),y.bubbles=!1}lt.free(x),lt.free(b)},xo.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,lt.allocAt(NaN,NaN)),b=y.So(1,lt.allocAt(NaN,NaN));if(x.w()&&b.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){var E=b.x-x.x,z=b.y-x.y;z=Math.sqrt(E*E+z*z)/a.Jw,E=new lt((Math.min(b.x,x.x)+Math.max(b.x,x.x))/2,(Math.min(b.y,x.y)+Math.max(b.y,x.y))/2),z*=a.Bw;var te=a.commandHandler;if(z!==a.scale&&te.canResetZoom(z)){var re=a.zoomPoint;a.zoomPoint=E,te.resetZoom(z),a.zoomPoint=re}y.bubbles=!1}lt.free(x),lt.free(b)},xo.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},xo.prototype.doKeyUp=function(){},xo.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},xo.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},xo.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(ir?y.meta:y.control){for(a.R("ChangingSelection",a.selection),y=x;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&(y.isSelected=!y.isSelected),a.R("ChangedSelection",a.selection)}else if(y.shift){if(!x.isSelected){for(a.R("ChangingSelection",a.selection),y=x;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&(y.isSelected=!0),a.R("ChangedSelection",a.selection)}}else if(!x.isSelected){for(y=x;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&a.select(y)}}else!y.left||(ir?y.meta:y.control)||y.shift||a.clearSelection()}},xo.prototype.standardMouseClick=function(a,y){a===void 0&&(a=null),y===void 0&&(y=function(E){return!E.layer.isTemporary});var x=this.diagram,b=x.lastInput;return a=x.ic(b.documentPoint,a,y),b.targetObject=a,Gc(a,b,x),b.handled};function Gc(a,y,x){if(y.handled=!1,a===null||a.If()){var b=0;y.left?b=y.clickCount===1?1:y.clickCount===2?2:1:y.right&&y.clickCount===1&&(b=3);var E="ObjectSingleClicked";if(a!==null){switch(b){case 1:E="ObjectSingleClicked";break;case 2:E="ObjectDoubleClicked";break;case 3:E="ObjectContextClicked"}b!==0&&x.R(E,a)}else{switch(b){case 1:E="BackgroundSingleClicked";break;case 2:E="BackgroundDoubleClicked";break;case 3:E="BackgroundContextClicked"}b!==0&&x.R(E)}if(a!==null)for(;a!==null;){switch(x=null,b){case 1:x=a.click;break;case 2:x=a.doubleClick?a.doubleClick:a.click;break;case 3:x=a.contextClick}if(x!==null&&(x(y,a),y.handled))break;a=a.panel}else{switch(a=null,b){case 1:a=x.click;break;case 2:a=x.doubleClick?x.doubleClick:x.click;break;case 3:a=x.contextClick}a!==null&&a(y)}}}xo.prototype.standardMouseOver=function(){var a=this.diagram,y=a.lastInput;if(a.animationManager.zb!==!0){var x=a.skipsUndoManager;a.skipsUndoManager=!0;var b=a.viewportBounds.ca(y.documentPoint)?a.ic(y.documentPoint,null,null):null;!y.event||y.event.type!=="pointercancel"&&y.event.type!=="pointerout"||(b=null),y.targetObject=b;var E=!1;if(b!==a.Ck){var z=a.Ck,te=z;for(a.Ck=b,this.doCurrentObjectChanged(z,b),y.handled=!1;z!==null;){var re=z.mouseLeave;if(re!==null&&(b===z||b!==null&&b.rg(z)||(re(y,z,b),E=!0,y.handled)))break;z=z.panel}for(z=te,y.handled=!1;b!==null&&(te=b.mouseEnter,!(te!==null&&(z===b||z!==null&&z.rg(b)||(te(y,b,z),E=!0,y.handled))));)b=b.panel;b=a.Ck}if(b!==null){for(z=b,te="";z!==null&&(te=z.cursor,te==="");)z=z.panel;for(a.currentCursor=te,y.handled=!1,z=b;z!==null&&(b=z.mouseOver,!(b!==null&&(b(y,z),E=!0,y.handled)));)z=z.panel}else this.doUpdateCursor(null),b=a.mouseOver,b!==null&&(b(y),E=!0);E&&a.$b(),a.skipsUndoManager=x}},xo.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},xo.prototype.doCurrentObjectChanged=function(){},xo.prototype.standardMouseWheel=function(){var a=this.diagram,y=a.lastInput,x=y.delta;if(x!==0&&a.documentBounds.w()){var b=a.commandHandler,E=a.toolManager.mouseWheelBehavior;if(b!==null&&(E===jl&&!y.shift||E===ru&&y.control))(0<x?b.canIncreaseZoom():b.canDecreaseZoom())&&(E=a.zoomPoint,a.zoomPoint=y.viewPoint,0<x?b.increaseZoom():b.decreaseZoom(),a.zoomPoint=E),y.bubbles=!1;else if(E===jl&&y.shift||E===ru&&!y.control){b=a.position.copy();var z=y.event;E=z.deltaMode;var te=z.deltaX;z=z.deltaY;var re="pixel";if(te===0&&z===0||y.shift)!y.shift&&a.allowVerticalScroll?(x=3*x*a.scrollVerticalLineChange,a.scroll(re,0<x?"up":"down",Math.abs(x))):y.shift&&a.allowHorizontalScroll&&(x=3*x*a.scrollHorizontalLineChange,a.scroll(re,0<x?"left":"right",Math.abs(x)));else{switch(E){case 0:re="pixel";break;case 1:re="line";break;case 2:re="page"}te!==0&&a.allowHorizontalScroll&&(te*=a.scrollHorizontalLineChange/16,a.scroll(re,0<te?"right":"left",Math.abs(te))),z!==0&&a.allowVerticalScroll&&(z*=a.scrollVerticalLineChange/16,a.scroll(re,0<z?"down":"up",Math.abs(z)))}this.doWheelChange(a,b,y)}}},xo.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},xo.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,b=y.clone(this.yy);this.Zr=mi(function(){x.doWaitAfter(b)},a)},xo.prototype.cancelWaitAfter=function(){this.Zr!==-1&&yt.clearTimeout(this.Zr),this.Zr=-1},xo.prototype.doWaitAfter=function(){},xo.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof zo);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},xo.prototype.isBeyondDragSize=function(a,y){var x=this.diagram;a===void 0&&(a=x.firstInput.viewPoint),y===void 0&&(y=x.lastInput.viewPoint);var b=x.toolManager.dragSize,E=b.width;return b=b.height,x.firstInput.isTouchEvent&&(E+=6,b+=6),Math.abs(y.x-a.x)>E||Math.abs(y.y-a.y)>b},Nt.Object.defineProperties(xo.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof pn&&(this.H=a)}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},isActive:{get:function(){return this.nb},set:function(a){this.nb=a}},transactionResult:{get:function(){return this.wm},set:function(a){this.wm=a}}}),xo.prototype.startTransaction=xo.prototype.Ea,xo.className="Tool";function pa(){xo.call(this),this.name="ToolManager",this.hb=new Ht,this.ob=new Ht,this.Hb=new Ht,this.F=this.V=850,this.o=new fi(2,2).ja(),this.Ha=5e3,this.ia=ru,this.u=zl,this.Mp=this.j=null,this.zj=-1}qt(pa,xo),pa.prototype.initializeStandardTools=function(){},pa.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof zo&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},pa.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===Ea&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===zs){y.bubbles=!0;return}if(this.gestureBehavior===Ea)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var x=this.mouseDownTools.length,b=0;b<x;b++){var E=this.mouseDownTools.M(b);if(E.diagram=this.diagram,E.canStart()){a.doFocus(),a.currentTool=E,a.currentTool===E&&(E.isActive||E.doActivate(),E.doMouseDown());return}}a.lastInput.button===1&&(this.mouseWheelBehavior===ru?this.mouseWheelBehavior=jl:this.mouseWheelBehavior===jl&&(this.mouseWheelBehavior=ru)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},pa.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===zs){y.bubbles=!0;return}if(this.gestureBehavior===Ea)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomMove();return}}if(this.isActive)for(var x=this.mouseMoveTools.length,b=0;b<x;b++){var E=this.mouseMoveTools.M(b);if(E.diagram=this.diagram,E.canStart()){a.doFocus(),a.currentTool=E,a.currentTool===E&&(E.isActive||E.doActivate(),E.doMouseMove());return}}ah(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function ah(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}pa.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof zo&&(y===a||y.rg(a))||this.hideToolTip()},pa.prototype.doWaitAfter=function(a){var y=this.diagram;y.ta!==null&&(this.doMouseHover(),this.isActive||this.doToolTip(),a.isTouchEvent&&!y.lastInput.handled&&(a=a.copy(),a.button=2,a.buttons=2,y.lastInput=a,y.qu=!0,y.doMouseUp()))},pa.prototype.doMouseHover=function(){var a=this.diagram,y=a.lastInput;y.targetObject===null&&(y.targetObject=a.ic(y.documentPoint,null,null));var x=y.targetObject;if(x!==null)for(y.handled=!1;x!==null&&(a=this.isActive?x.mouseHold:x.mouseHover,!(a!==null&&(a(y,x),y.handled)));)x=x.panel;else x=this.isActive?a.mouseHold:a.mouseHover,x!==null&&x(y)},pa.prototype.doToolTip=function(){var a=this.diagram,y=a.lastInput;if(y.targetObject===null&&(y.targetObject=a.ic(y.documentPoint,null,null)),y=y.targetObject,y!==null){if(a=this.currentToolTip,!(a instanceof zo)||y!==a&&!y.rg(a)){for(;y!==null;){if(a=y.toolTip,a!==null){this.showToolTip(a,y);return}y=y.panel}this.hideToolTip()}}else y=a.toolTip,y!==null?this.showToolTip(y,null):this.hideToolTip()},pa.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof zo){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category="ToolTip",a.placeholder!==null&&(a.placeholder.scale=x.scale);var b=a.diagram;b!==null&&b!==x&&b.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionToolTip(a,y)}else a instanceof to&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(yt.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var E=this;this.zj=mi(function(){E.hideToolTip()},a)}},pa.prototype.positionToolTip=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),b=a.measuredBounds,E=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=b.width),x.x+b.width>E.right&&(x.x-=b.width+5/y.scale),x.x<E.x&&(x.x=E.x),x.y=x.y+20/y.scale+b.height>E.bottom?x.y-(b.height+5/y.scale):x.y+20/y.scale,x.y<E.y&&(x.y=E.y),a.position=x}},pa.prototype.hideToolTip=function(){this.zj!==-1&&(yt.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof zo?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof to&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},pa.prototype.doMouseUp=function(){this.cancelWaitAfter();var a=this.diagram;if(this.isActive)for(var y=this.mouseUpTools.length,x=0;x<y;x++){var b=this.mouseUpTools.M(x);if(b.diagram=this.diagram,b.canStart()){a.doFocus(),a.currentTool=b,a.currentTool===b&&(b.isActive||b.doActivate(),b.doMouseUp());return}}a.doFocus(),this.doDeactivate()},pa.prototype.doMouseWheel=function(){this.standardMouseWheel()},pa.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},pa.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},pa.prototype.findTool=function(a){for(var y=this.mouseDownTools.length,x=0;x<y;x++){var b=this.mouseDownTools.M(x);if(b.name===a)return b}for(y=this.mouseMoveTools.length,x=0;x<y;x++)if(b=this.mouseMoveTools.M(x),b.name===a)return b;for(y=this.mouseUpTools.length,x=0;x<y;x++)if(b=this.mouseUpTools.M(x),b.name===a)return b;return null},pa.prototype.replaceTool=function(a,y){y!==null&&(y.diagram=this.diagram);for(var x=this.mouseDownTools.length,b=0;b<x;b++){var E=this.mouseDownTools.M(b);if(E.name===a)return y!==null?this.mouseDownTools.cd(b,y):this.mouseDownTools.mb(b),E}for(x=this.mouseMoveTools.length,b=0;b<x;b++)if(E=this.mouseMoveTools.M(b),E.name===a)return y!==null?this.mouseMoveTools.cd(b,y):this.mouseMoveTools.mb(b),E;for(x=this.mouseUpTools.length,b=0;b<x;b++)if(E=this.mouseUpTools.M(b),E.name===a)return y!==null?this.mouseUpTools.cd(b,y):this.mouseUpTools.mb(b),E;return null},pa.prototype.gb=function(a,y,x){y!==null&&(y.name=a,y.diagram=this.diagram),this.findTool(a)?this.replaceTool(a,y):y!==null&&x.add(y)},Nt.Object.defineProperties(pa.prototype,{mouseWheelBehavior:{get:function(){return this.ia},set:function(a){this.ia=a}},gestureBehavior:{get:function(){return this.u},set:function(a){this.u=a}},currentToolTip:{get:function(){return this.j},set:function(a){this.j=a,this.Mp=a!==null&&a instanceof zo?a.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(a){this.V=a}},holdDelay:{get:function(){return this.F},set:function(a){this.F=a}},dragSize:{get:function(){return this.o},set:function(a){this.o=a.J()}},toolTipDuration:{get:function(){return this.Ha},set:function(a){this.Ha=a}}}),pa.prototype.replaceStandardTool=pa.prototype.gb;var ru=new tn(pa,"WheelScroll",0),jl=new tn(pa,"WheelZoom",1),Td=new tn(pa,"WheelNone",2),zl=new tn(pa,"GestureZoom",3),Ea=new tn(pa,"GestureCancel",4),zs=new tn(pa,"GestureNone",5);pa.className="ToolManager",pa.WheelScroll=ru,pa.WheelZoom=jl,pa.WheelNone=Td,pa.GestureZoom=zl,pa.GestureCancel=Ea,pa.GestureNone=zs;function da(){xo.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 lt(NaN,NaN),this.Fr=new lt,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new Fn().freeze(),this.ia=new ae,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var kl;qt(da,xo),da.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a.isReadOnly&&!a.allowDragOut||!a.allowMove&&!a.allowCopy&&!a.allowDragOut||!a.allowSelect)return!1;var y=a.lastInput;return!y.left||a.currentTool!==this&&(!this.isBeyondDragSize()||y.isTouchEvent&&y.timestamp-a.firstInput.timestamp<this.Ik)?!1:this.findDraggablePart()!==null},da.prototype.findDraggablePart=function(){var a=this.diagram;if(a=a.Ol(a.firstInput.documentPoint,!1),a===null)return null;for(;a!==null&&!a.canSelect();)a=a.containingGroup;return a!==null&&(a.canMove()||a.canCopy())?a:null},da.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.Ol(a.firstInput.documentPoint,!1);if(y!==null){for(;y!==null&&!y.canSelect();)y=y.containingGroup;this.currentPart=y,this.currentPart===null||this.currentPart.isSelected||(a.R("ChangingSelection",a.selection),y=a.lastInput,(ir?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},da.prototype.doActivate=function(){var a=this.diagram;this.Bn=null,this.currentPart===null&&this.standardMouseSelect();var y=this.currentPart;y!==null&&(y.canMove()||y.canCopy())&&(a.Fu(!0),cn=null,this.isActive=!0,this.tl.set(a.position),Yu(this,a.selection),this.Cg.length=0,a.animationManager.Cc(),this.draggedParts=this.computeEffectiveCollection(a.selection,this.dragOptions),this.Sw=this.diagram.layout.isRealtime,this.diagram.layout.isRealtime=!1,a.Ns=!0,a.Gf("temporaryPixelRatio")===!0&&30<a.$w&&Gl(a),Bg(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,cn=this,Dn=this.diagram,this.doSimulatedDragOut()))};function Yu(a,y){if(a.dragsLink){var x=a.diagram;x.allowRelink&&(x.model.Wj()&&y.count===1&&y.first()instanceof yi?(a.draggedLink=y.first(),a.draggedLink.canRelinkFrom()&&a.draggedLink.canRelinkTo()&&a.draggedLink.Ej(),a.Oe=x.toolManager.findTool("Relinking"),a.Oe===null&&(a.Oe=new Ui,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}da.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},da.prototype.Pd=function(a){return a===void 0?new Yn(Rr):this.isGridSnapEnabled?new Yn(new lt(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new Yn(a.copy())},da.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),Ac(this),gh(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<kl.count){for(var y=kl,x=y.length,b=0;b<x;b++){var E=y.M(b);Sc(E),gu(E),Ac(E),E.diagram.ug()}y.clear()}Sc(this),this.tl.h(NaN,NaN),Dn!==null&&(Dn.currentCursor=""),cn=Dn=null,gu(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),Hd(a,!0)},da.prototype.stopTransaction=function(){var a=this.diagram,y=xo.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function Ac(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,nd(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function Id(){var a=cn;gu(a),Nc(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}da.prototype.doCancel=function(){gu(this),Nc(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},da.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},da.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function $u(a,y){if(a.copiedParts===null){var x=a.diagram;if((!y||!x.isReadOnly&&!x.isModelReadOnly)&&a.draggedParts!==null){var b=x.undoManager;for(b.isEnabled&&b.isInTransaction?b.currentTransaction!==null&&0<b.currentTransaction.changes.count&&(x.undoManager.Kf(),x.Ea("Drag")):Nc(a),x.skipsUndoManager=!y,x.partManager.addsToTemporaryLayer=!y,a.startPoint=x.firstInput.documentPoint,y=a.copiesEffectiveCollection?a.draggedParts.Lf():x.selection,y=x.Kj(y,x,!0),x=new Ii,b=a.draggedParts.iterator;b.next();){var E=b.key;if(E.Zc()&&E.canCopy()){var z=y.I(E);z!==null&&(z.location=E.location,z.Va(),x.add(z,a.Pd(z.location)))}}for(y=y.iterator;y.next();)b=y.value,b instanceof yi&&b.canCopy()&&x.add(b,a.Pd());a.copiedParts=x,Yu(a,x.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Hh(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function gu(a){var y=a.diagram;if(a.copiedParts!==null){if(y.Is(a.copiedParts.Lf(),!1),a.copiedParts=null,a.draggedParts!==null)for(var x=a.draggedParts.iterator;x.next();)x.key instanceof yi&&(x.value.point=new lt(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function Sc(a){if(a.draggedLink!==null){if(a.dragsLink&&a.Oe!==null){var y=a.Oe;y.diagram.remove(y.temporaryFromNode),y.diagram.remove(y.temporaryToNode),a.Oe.originalLink=null}a.draggedLink=null,a.Oe=null}}function Xu(a,y,x){var b=a.diagram,E=a.startPoint,z=lt.alloc();z.assign(b.lastInput.documentPoint),a.moveParts(y,z.re(E),x),lt.free(z),b.Gf("temporaryPixelRatio")===!0&&b.Yh===null&&30<b.$w&&(Gl(b),b.hk())}da.prototype.moveParts=function(a,y,x){x===void 0&&(x=!1);var b=this.diagram;b!==null&&od(b,a,y,this.dragOptions,x)};function Nc(a){if(a.draggedParts!==null){for(var y=a.diagram,x=a.draggedParts.iterator;x.next();){var b=x.key;b.Zc()&&(b.location=x.value.point)}for(x=a.draggedParts.iterator;x.next();)if(b=x.key,b instanceof yi&&b.suspendsRouting){var E=x.value.point;a.draggedParts.add(b,a.Pd()),Hh(b,-E.x,-E.y)}y.bd()}}function td(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),Ul(a,!1));var b=a.findDragOverObject(y),E=x.lastInput;E.targetObject=b,a.doUpdateCursor(b);var z=x.skipsUndoManager,te=!1;try{if(x.skipsUndoManager=!0,te=nd(a,E,b),!a.isActive&&cn===null)return;var re=b!==null?b.part:null;if(re===null||x.handlesDragDropForTopLevelParts&&re.isTopLevel&&!(re instanceof _r)){var le=x.mouseDragOver;le!==null&&(le(E),te=!0)}if(!a.isActive&&cn===null||(a.doDragOver(y,b),!a.isActive&&cn===null))return}finally{x.skipsUndoManager=z,te&&x.bd()}a.Bn=b,x.isReadOnly||!x.allowMove&&!x.allowCopy||!x.allowHorizontalScroll&&!x.allowVerticalScroll||x.gs(E.viewPoint)}da.prototype.findDragOverObject=function(a){var y=this;return mu(this.diagram,a,null,function(x){return x===null?x=!0:(x=x.part,x=!!(x===null||x instanceof zo||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},da.prototype.doUpdateCursor=function(a){var y=this.diagram;(a===null||this.Bn!==a)&&(!this.diagram.currentTool.isActive||this.mayCopy()?y.currentCursor=this.copyCursor:this.mayMove()?y.currentCursor=this.moveCursor:this.mayDragOut()&&(y.currentCursor=this.nodropCursor))};function nd(a,y,x){var b=!1,E=a.Cg.length,z=0<E?a.Cg[0]:null;if(x===z)return!1;y.handled=!1;for(var te=0;te<E;te++){var re=a.Cg[te],le=re.mouseDragLeave;if(le!==null&&(le(y,re,x),b=!0,y.handled))break}if(a.Cg.length=0,!a.isActive&&cn===null||x===null)return b;for(y.handled=!1,E=x;E!==null;)a.Cg.push(E),E=xc(E);for(E=a.Cg.length,x=0;x<E&&(te=a.Cg[x],re=te.mouseDragEnter,re===null||(re(y,te,z),b=!0,!y.handled));x++);return b}function xc(a){var y=a.panel;return y!==null?y:a instanceof nr&&!(a instanceof _r)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function Mh(a,y,x){var b=a.Oe;if(b===null)return null;var E=a.diagram.og(y,b.portGravity,function(ce){return b.findValidLinkablePort(ce,x)});a=lt.alloc();var z=1/0,te=null;for(E=E.iterator;E.next();){var re=E.value;if(re.part!==null){var le=re.ga(wo,a);le=y.Bf(le),le<z&&(te=re,z=le)}}return lt.free(a),te}function Ul(a,y){var x=a.draggedLink;if(x!==null&&!(2>x.pointsCount)){var b=a.diagram;if(!b.isReadOnly){var E=a.Oe;if(E!==null){var z=null,te=null;x.fromNode===null&&(z=Mh(a,x.i(0),!1),z!==null&&(te=z.part));var re=null,le=null;x.toNode===null&&(re=Mh(a,x.i(x.pointsCount-1),!0),re!==null&&(le=re.part)),E.isValidLink(te,z,le,re)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=te,z!==null&&(x.fromPortId=z.portId),x.toNode=le,re!==null&&(x.toPortId=re.portId),x.fromPort!==b.Mx&&b.R("LinkRelinked",x,b.Mx),x.toPort!==b.Nx&&b.R("LinkRelinked",x,b.Nx)):Lr(E,te,z,le,re):Lr(E,null,null,null,null)}}}}da.prototype.doDragOver=function(){};function Tu(a,y){var x=a.diagram;a.dragsLink&&Ul(a,!0),Ac(a);var b=a.findDragOverObject(y),E=x.lastInput;if(E.targetObject=b,b!==null){E.handled=!1;for(var z=b;z!==null;){var te=z.mouseDrop;if(te!==null&&(te(E,z),E.handled))break;Ud(a,E,z),z=xc(z)}}else z=x.mouseDrop,z!==null&&z(E);if(a.isActive||cn!==null){for(E=(a.copiedParts||a.draggedParts).iterator;E.next();)z=E.key,z instanceof Li&&z.linksConnected.each(function(re){re.suspendsRouting=!1});if(a.doDropOnto(y,b),a.isActive||cn!==null){for(a=jn.alloc(),y=x.selection.iterator;y.next();)b=y.value,b instanceof Li&&mt(x,b,a);jn.free(a)}}}function Ud(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof _r||(x=a.mouseDrop,x!==null&&x(y))}function mt(a,y,x){var b=!1;if(x=y.getAvoidableRect(x),a.viewportBounds.Re(x)&&(b=!0),a=a.Nu(x,function(E){return E.part},function(E){return E instanceof yi},!0,function(E){return E instanceof yi},b),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}da.prototype.doDropOnto=function(){},da.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;this.simulatedMouseMove(y.event,y.documentPoint,y.targetDiagram)||this.currentPart===null||this.draggedParts===null||(this.mayCopy()?($u(this,!1),Bg(a,this.copiedParts),Xu(this,this.copiedParts,!1),gh(a,this.copiedParts)):this.mayMove()?(gu(this),Xu(this,this.draggedParts,!0)):this.mayDragOut()?($u(this,!1),Xu(this,this.copiedParts,!1)):gu(this),td(this,a.lastInput.documentPoint))}},da.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;if(!this.simulatedMouseUp(y.event,y.documentPoint,y.targetDiagram)){y=!1;var x=this.mayCopy();if(x&&this.copiedParts!==null?(gu(this),$u(this,!0),Bg(a,this.copiedParts),Xu(this,this.copiedParts,!1),gh(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(E){E.isSelected=!0}))):(y=!0,gu(this),this.mayMove()&&(Xu(this,this.draggedParts,!0),td(this,a.lastInput.documentPoint))),this.Ym=!0,Tu(this,a.lastInput.documentPoint),this.isActive){var b=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&Et(this),a.Ya(),gh(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",b)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},da.prototype.simulatedMouseMove=function(a,y,x){if(cn===null)return!1;var b=cn.diagram;x instanceof pn||(x=null);var E=Dn;return x!==E&&(E!==null&&E!==b&&(E.ug(),cn.isDragOutStarted=!1,E=E.toolManager.findTool("Dragging"),E!==null&&E.doSimulatedDragLeave()),Dn=x,x!==null&&x!==b&&(Id(),E=x.toolManager.findTool("Dragging"),E!==null&&(kl.contains(E)||kl.add(E),E.doSimulatedDragEnter())),this.doUpdateCursor(null)),x===null||x===b||!x.allowDrop||x.isReadOnly||!x.allowInsert?!1:(b=x.toolManager.findTool("Dragging"),b!==null&&(a!==null&&(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=x.getMouse(a)),x.lastInput.documentPoint=y,x.lastInput.viewPoint=x.op(y),x.lastInput.down=!1,x.lastInput.up=!1,b.doSimulatedDragOver()),!0)},da.prototype.simulatedMouseUp=function(a,y,x){if(cn===null)return!1;var b=Dn,E=cn.diagram;if(x===null)return cn.doCancel(),!0;if(x!==b){var z=b.toolManager.findTool("Dragging");if(b!==null&&b!==E&&z!==null)return b.ug(),cn.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;Dn=x,b=x.toolManager.findTool("Dragging"),b!==null&&(Id(),kl.contains(b)||kl.add(b),b.doSimulatedDragEnter())}return x!==this.diagram?(a!==null?(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=x.getMouse(a)):y===null&&(y=new lt),x.lastInput.documentPoint=y,x.lastInput.viewPoint=x.op(y),x.lastInput.down=!1,x.lastInput.up=!0,a=x.toolManager.findTool("Dragging"),a!==null&&a.doSimulatedDrop(),a=cn,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function Et(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var x=y.key;x instanceof Li&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}da.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(ir?!a.lastInput.alt:!a.lastInput.control))return!1;for(a=a.selection.iterator;a.next();)if(a.value.canCopy())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canCopy())},da.prototype.mayDragOut=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(!a.allowDragOut||!a.allowCopy||a.allowMove)return!1;for(a=a.selection.iterator;a.next();)if(a.value.canCopy())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canCopy())},da.prototype.mayMove=function(){var a=this.diagram;if(a.isReadOnly||!a.allowMove)return!1;for(a=a.selection.iterator;a.next();)if(a.value.canMove())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canMove())},da.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},da.prototype.Az=function(){return cn},da.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=cn;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},da.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),au(a),a.animationManager.Cc(),a=cn,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},da.prototype.doSimulatedDragLeave=function(){var a=cn;a!==null&&a.doSimulatedDragOut(),this.doCancel()},da.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=cn;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;rn(this,y.draggedParts.Lf(),!1,a.firstInput),Xu(this,this.copiedParts,!1),td(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},da.prototype.doSimulatedDrop=function(){var a=this.diagram,y=cn;if(y!==null){var x=y.diagram;if(y.Ym=!0,gu(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),rn(this,y.draggedParts.Lf(),!0,a.lastInput),Xu(this,this.copiedParts,!1);var b=new Fn;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(E){E.isSelected=!0,b.add(E)})),Tu(this,a.lastInput.documentPoint),a.Ya(),this.copiedParts!==null&&(this.transactionResult="ExternalCopy"),this.copiedParts=null,a.doFocus(),a.R("ExternalObjectsDropped",b,x),this.stopTransaction(),a.R("ChangedSelection",a.selection)}a.animationManager.Dm=!1};function rn(a,y,x,b){if(a.copiedParts===null){var E=a.diagram;if(!E.isReadOnly&&!E.isModelReadOnly){E.skipsUndoManager=!x,E.partManager.addsToTemporaryLayer=!x,a.startPoint=b.documentPoint,x=E.Kj(y,E,!0);var z=jn.alloc();E=b=1/0;for(var te=-1/0,re=-1/0,le=y.iterator;le.next();){var ce=le.value;if(ce.isVisible()){var de=ce.location;ce=de.x,de=de.y,isNaN(ce)||isNaN(de)||(ce<b&&(b=ce),de<E&&(E=de),ce>te&&(te=ce),de>re&&(re=de))}}for(b===1/0?z.h(0,0,0,0):z.h(b,E,te-b,re-E),b=z.x+z.width/2,E=z.y+z.height/2,jn.free(z),z=a.Fr,te=new Ii,re=lt.alloc(),le=y.iterator;le.next();)ce=le.value,ce instanceof yi&&ce.canCopy()&&(de=x.I(ce),de!==null&&(de.points=ce.points,Hh(de,z.x-b,z.y-E),de.suspendsRouting=!0,te.add(de,a.Pd())));for(y=y.iterator;y.next();)ce=y.value,ce.Zc()&&ce.canCopy()&&(le=x.I(ce),le!==null&&(ce=ce.location,re.h(z.x-(b-ce.x),z.y-(E-ce.y)),le.location=re,le.Va(),te.add(le,a.Pd(re))));lt.free(re),a.copiedParts=te,Yu(a,te.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Hh(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}da.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},da.prototype.computeMove=function(a,y,x,b){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,b):new lt},Nt.Object.defineProperties(da.prototype,{isCopyEnabled:{get:function(){return this.ob},set:function(a){this.ob=a}},copiesEffectiveCollection:{get:function(){return this.u},set:function(a){this.u=a}},dragOptions:{get:function(){return this.ia},set:function(a){this.ia=a}},isGridSnapEnabled:{get:function(){return this.dragOptions.isGridSnapEnabled},set:function(a){this.dragOptions.isGridSnapEnabled=a}},isComplexRoutingRealtime:{get:function(){return this.hb},set:function(a){this.hb=a}},isGridSnapRealtime:{get:function(){return this.dragOptions.isGridSnapRealtime},set:function(a){this.dragOptions.isGridSnapRealtime=a}},gridSnapCellSize:{get:function(){return this.dragOptions.gridSnapCellSize},set:function(a){this.dragOptions.gridSnapCellSize.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSize=a)}},gridSnapCellSpot:{get:function(){return this.dragOptions.gridSnapCellSpot},set:function(a){this.dragOptions.gridSnapCellSpot.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSpot=a)}},gridSnapOrigin:{get:function(){return this.dragOptions.gridSnapOrigin},set:function(a){this.dragOptions.gridSnapOrigin.D(a)||(a=a.J(),this.dragOptions.gridSnapOrigin=a)}},dragsLink:{get:function(){return this.dragOptions.dragsLink},set:function(a){this.dragOptions.dragsLink=a}},dragsTree:{get:function(){return this.dragOptions.dragsTree},set:function(a){this.dragOptions.dragsTree=a}},copyCursor:{get:function(){return this.F},set:function(a){this.F=a}},moveCursor:{get:function(){return this.Oc},set:function(a){this.Oc=a}},nodropCursor:{get:function(){return this.Pc},set:function(a){this.Pc=a}},currentPart:{get:function(){return this.V},set:function(a){this.V=a}},copiedParts:{get:function(){return this.o},set:function(a){this.o=a}},draggedParts:{get:function(){return this.Ha},set:function(a){this.Ha=a}},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(a){this.diagram.draggedLink=a}},isDragOutStarted:{get:function(){return this.Hb},set:function(a){this.Hb=a}},startPoint:{get:function(){return this.Fr},set:function(a){this.Fr.D(a)||this.Fr.assign(a)}},delay:{get:function(){return this.Ik},set:function(a){this.Ik=a}}}),da.prototype.getDraggingSource=da.prototype.Az;var cn=null,Dn=null;da.className="DraggingTool",kl=new Ht,Wn("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),pa.prototype.doCancel=function(){cn!==null&&cn.doCancel(),xo.prototype.doCancel.call(this)};function xn(){xo.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new yi,y=new eo;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new eo,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new Li,y=new eo,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=ua,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new Li,y=new eo,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=ua,a.add(y),a.selectable=!1,a.layerName="Tool",this.Di=a,this.o=y,this.Pc=this.Oc=this.ob=this.hb=this.Hb=null,this.ia=!0,this.hy=new Ii,this.Of=this.gj=this.Pf=null}qt(xn,xo),xn.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},xn.prototype.copyPortProperties=function(a,y,x,b,E){if(a!==null&&y!==null&&x!==null&&b!==null){var z=y.Df(),te=fi.alloc();te.width=y.naturalBounds.width*z,te.height=y.naturalBounds.height*z,b.desiredSize=te,fi.free(te),E?(b.toSpot=y.toSpot,b.toEndSegmentLength=y.toEndSegmentLength):(b.fromSpot=y.fromSpot,b.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=wo,z=lt.alloc(),x.location=y.ga(wo,z),lt.free(z),b.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,b,E)}},xn.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=ua,y.fromSpot=is,y.toSpot=is),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},xn.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},xn.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof Li){var y=this.targetPort.part;this.isForwards?this.copyPortProperties(y,this.targetPort,this.temporaryToNode,this.temporaryToPort,!0):this.copyPortProperties(y,this.targetPort,this.temporaryFromNode,this.temporaryFromPort,!1)}else this.isForwards?this.setNoTargetPortProperties(this.temporaryToNode,this.temporaryToPort,!0):this.setNoTargetPortProperties(this.temporaryFromNode,this.temporaryFromPort,!1);(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},xn.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof Li))return null;for(;a!==null;){var b=y?a.toLinkable:a.fromLinkable;if(b===!0&&(a.portId!==null||a instanceof Li)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(b===!1)break;a=a.panel}return null},xn.prototype.findTargetPort=function(a){var y=this.diagram,x=y.lastInput.documentPoint,b=this.portGravity;0>=b&&(b=.1);var E=this,z=y.og(x,b,function(ve){return E.findValidLinkablePort(ve,a)},null,!0);for(b=1/0,y=null,z=z.iterator;z.next();){var te=z.value,re=te.part;if(re instanceof Li){var le=te.ga(wo,lt.alloc()),ce=x.x-le.x,de=x.y-le.y;lt.free(le),le=ce*ce+de*de,le<b&&(ce=this.validPortsCache.I(te),ce!==null?ce&&(y=te,b=le):a&&this.isValidLink(this.originalFromNode,this.originalFromPort,re,te)||!a&&this.isValidLink(re,te,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(te,!0),y=te,b=le):this.validPortsCache.add(te,!1))}}return y!==null&&(x=y.part,x instanceof Li&&(x.layer===null||x.layer.allowLink))?y:null},xn.prototype.isValidFrom=function(a,y){if(a===null||y===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(a.layer!==null&&!a.layer.allowLink||y.fromLinkable!==!0))return!1;var x=y.fromMaxLinks;if(1/0>x){if(this.originalLink!==null&&a===this.originalFromNode&&y===this.originalFromPort)return!0;if(y=y.portId,y===null&&(y=""),a.Mo(y).count>=x)return!1}return!0},xn.prototype.isValidTo=function(a,y){if(a===null||y===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(a.layer!==null&&!a.layer.allowLink||y.toLinkable!==!0))return!1;var x=y.toMaxLinks;if(1/0>x){if(this.originalLink!==null&&a===this.originalToNode&&y===this.originalToPort)return!0;if(y=y.portId,y===null&&(y=""),a.Sd(y).count>=x)return!1}return!0},xn.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},xn.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof Li))return!1;a=a.portId,a===null&&(a="");var b=y.part;if(!(b instanceof Li))return!1;for(y=y.portId,y===null&&(y=""),y=b.Sd(y);y.next();)if(b=y.value,b.fromNode===x&&b.fromPortId===a)return!0;return!1},xn.prototype.isValidLink=function(a,y,x,b){if(!this.isValidFrom(a,y)||!this.isValidTo(x,b)||!(y===null||b===null||(y.fromLinkableSelfNode&&b.toLinkableSelfNode||!this.isInSameNode(y,b))&&(y.fromLinkableDuplicates&&b.toLinkableDuplicates||!this.isLinked(y,b)))||this.originalLink!==null&&(a!==null&&this.isLabelDependentOnLink(a,this.originalLink)||x!==null&&this.isLabelDependentOnLink(x,this.originalLink))||a!==null&&x!==null&&(a.data===null&&x.data!==null||a.data!==null&&x.data===null)||!this.isValidCycle(a,x,this.originalLink))return!1;if(a!==null){var E=a.linkValidation;if(E!==null&&!E(a,y,x,b,this.originalLink))return!1}return x!==null&&(E=x.linkValidation,E!==null&&!E(a,y,x,b,this.originalLink))?!1:(E=this.linkValidation,E!==null?E(a,y,x,b,this.originalLink):!0)},xn.prototype.isLabelDependentOnLink=function(a,y){if(a===null)return!1;var x=a.labeledLink;if(x===null)return!1;if(x===y)return!0;var b=new Fn;return b.add(a),ri(this,x,y,b)};function ri(a,y,x,b){if(y===x)return!0;var E=y.fromNode;return E!==null&&E.isLinkLabel&&(b.add(E),ri(a,E.labeledLink,x,b))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(b.add(y),ri(a,y.labeledLink,x,b))))}xn.prototype.isValidCycle=function(a,y,x){if(x===void 0&&(x=null),a===null||y===null)return this.isUnconnectedLinkValid;var b=this.diagram.validCycle;if(b!==ug){if(b===mf){if(b=x||this.temporaryLink,b!==null&&!b.isTreeLink)return!0;for(b=y.linksConnected;b.next();){var E=b.value;if(E!==x&&E.isTreeLink&&E.toNode===y)return!1}return!ai(this,a,y,x,!0)}if(b===vf){if(b=x||this.temporaryLink,b!==null&&!b.isTreeLink)return!0;for(b=a.linksConnected;b.next();)if(E=b.value,E!==x&&E.isTreeLink&&E.fromNode===a)return!1;return!ai(this,a,y,x,!0)}if(b===Zg)return a===y?a=!0:(b=new Fn,b.add(y),a=qn(this,b,a,y,x)),!a;if(b===cg)return!ai(this,a,y,x,!1);if(b===dg)return a===y?a=!0:(b=new Fn,b.add(y),a=bi(this,b,a,y,x)),!a}return!0};function ai(a,y,x,b,E){if(y===x)return!0;if(y===null||x===null)return!1;for(var z=y.linksConnected;z.next();){var te=z.value;if(te!==b&&(!E||te.isTreeLink)&&te.toNode===y&&(te=te.fromNode,te!==y&&ai(a,te,x,b,E)))return!0}return!1}function qn(a,y,x,b,E){if(x===b)return!0;if(x===null||b===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var te=z.value;if(te!==E&&te.toNode===x&&(te=te.fromNode,te!==x&&qn(a,y,te,b,E)))return!0}return!1}function bi(a,y,x,b,E){if(x===b)return!0;if(x===null||b===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var te=z.value;if(te!==E){var re=te.fromNode;if(te=te.toNode,re=re===x?te:re,re!==x&&bi(a,y,re,b,E))return!0}}return!1}Nt.Object.defineProperties(xn.prototype,{portGravity:{get:function(){return this.te},set:function(a){0<=a&&(this.te=a)}},isUnconnectedLinkValid:{get:function(){return this.Ha},set:function(a){this.Ha=a}},linkingCursor:{get:function(){return this.u},set:function(a){this.u=a}},temporaryLink:{get:function(){return this.Ci},set:function(a){this.Ci=a}},temporaryFromNode:{get:function(){return this.Bi},set:function(a){(this.Bi=a)&&(this.j=a.port)}},temporaryFromPort:{get:function(){return this.j},set:function(a){if(this.j!==null){var y=this.j.panel;if(y!==null){var x=y.O.indexOf(this.j);y.mb(x),y.Gb(x,a)}}this.j=a}},temporaryToNode:{get:function(){return this.Di},set:function(a){(this.Di=a)&&(this.o=a.port)}},temporaryToPort:{get:function(){return this.o},set:function(a){if(this.o!==null){var y=this.o.panel;if(y!==null){var x=y.O.indexOf(this.o);y.mb(x),y.Gb(x,a)}}this.o=a}},originalLink:{get:function(){return this.Hb},set:function(a){this.Hb=a}},originalFromNode:{get:function(){return this.hb},set:function(a){this.hb=a}},originalFromPort:{get:function(){return this.ob},set:function(a){this.ob=a}},originalToNode:{get:function(){return this.Oc},set:function(a){this.Oc=a}},originalToPort:{get:function(){return this.Pc},set:function(a){this.Pc=a}},isForwards:{get:function(){return this.ia},set:function(a){this.ia=a}},validPortsCache:{get:function(){return this.hy}},targetPort:{get:function(){return this.Pf},set:function(a){this.Pf=a}},linkValidation:{get:function(){return this.gj},set:function(a){this.gj=a}},portTargeted:{get:function(){return this.Of},set:function(a){this.Of=a}}}),xn.className="LinkingBaseTool";function Ni(){xn.call(this),this.name="Linking",this.V={},this.F=null,this.K=Ei,this.Xd=null}qt(Ni,xn),Ni.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return a.isReadOnly||a.isModelReadOnly||!a.allowLink||!a.model.xs()||!a.lastInput.left||a.currentTool!==this&&!this.isBeyondDragSize()?!1:this.findLinkablePort()!==null},Ni.prototype.findLinkablePort=function(){var a=this.diagram,y=this.startObject;if(y===null&&(y=a.ic(a.firstInput.documentPoint,null,null)),y===null||(a=y.part,!(a instanceof Li)))return null;var x=this.direction;if(x===Ei||x===qi){var b=this.findValidLinkablePort(y,!1);if(b!==null||this.startObject===a&&(b=a.port,this.findValidLinkablePort(b,!1)))return this.isForwards=!0,b}return(x===Ei||x===Ki)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},Ni.prototype.doActivate=function(){var a=this.diagram,y=this.findLinkablePort();y===null?this.stopTool():(this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.isForwards?(this.temporaryToNode!==null&&(this.temporaryToNode.location=a.lastInput.documentPoint),this.originalFromPort=y,y=this.originalFromPort.part,y instanceof Li&&(this.originalFromNode=y),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1)):(this.temporaryFromNode!==null&&(this.temporaryFromNode.location=a.lastInput.documentPoint),this.originalToPort=y,y=this.originalToPort.part,y instanceof Li&&(this.originalToNode=y),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0)),a.add(this.temporaryFromNode),this.temporaryFromNode&&this.temporaryFromNode.Va(),a.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(),a.add(this.temporaryLink)),this.isActive=!0)},Ni.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;a.remove(this.temporaryLink),a.remove(this.temporaryFromNode),a.remove(this.temporaryToNode),a.isMouseCaptured=!1,a.currentCursor="",this.stopTransaction()},Ni.prototype.doStop=function(){xn.prototype.doStop.call(this),this.startObject=null},Ni.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,b=null,E=null,z=null;try{var te=this.targetPort=this.findTargetPort(this.isForwards);if(te!==null){var re=te.part;re instanceof Li&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),b=re,E=te):(y=re,x=te,this.originalToNode!==null&&(b=this.originalToNode,E=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,x=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(b=this.originalToNode,E=this.originalToPort);y!==null||b!==null?(z=this.insertLink(y,x,b,E),z!==null?(te===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint),a.allowSelect&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),z.isSelected=!0),this.transactionResult=this.name,a.R("LinkDrawn",z)):this.doNoLink(y,x,b,E)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),z&&a.allowSelect&&a.R("ChangedSelection",a.selection)}}},Ni.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof yi)return a.isTreeLink;var y=this.diagram;return y===null?!0:(a=y.partManager.getLinkCategoryForData(a),y=y.partManager.findLinkTemplateForCategory(a),y!==null?y.isTreeLink:!0)},Ni.prototype.insertLink=function(a,y,x,b){return this.diagram.partManager.insertLink(a,y,x,b)},Ni.prototype.doNoLink=function(){},Nt.Object.defineProperties(Ni.prototype,{archetypeLinkData:{get:function(){return this.V},set:function(a){this.V=a}},archetypeLabelNodeData:{get:function(){return this.F},set:function(a){this.F=a}},direction:{get:function(){return this.K},set:function(a){this.K=a}},startObject:{get:function(){return this.Xd},set:function(a){this.Xd=a}}});var Ei=new tn(Ni,"Either",0),qi=new tn(Ni,"ForwardsOnly",0),Ki=new tn(Ni,"BackwardsOnly",0);Ni.className="LinkingTool",Ni.Either=Ei,Ni.ForwardsOnly=qi,Ni.BackwardsOnly=Ki;function Ui(){xn.call(this),this.name="Relinking";var a=new eo;a.figure="Diamond",a.desiredSize=oa,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new eo,a.figure="Diamond",a.desiredSize=oa,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new jn}qt(Ui,xn),Ui.prototype.updateAdornments=function(a){if(a!==null&&a instanceof yi){var y="RelinkFrom",x=null;if(a.isSelected&&!this.diagram.isReadOnly){var b=a.selectionObject;b!==null&&a.canRelinkFrom()&&a.actualBounds.w()&&a.isVisible()&&b.actualBounds.w()&&b.Ed()&&(x=a.Pj(y),x===null&&(x=this.makeAdornment(b,!1),a.bh(y,x)))}x===null&&a.Jf(y),y="RelinkTo",x=null,a.isSelected&&!this.diagram.isReadOnly&&(b=a.selectionObject,b!==null&&a.canRelinkTo()&&a.actualBounds.w()&&a.isVisible()&&b.actualBounds.w()&&b.Ed()&&(x=a.Pj(y),x===null?(x=this.makeAdornment(b,!0),a.bh(y,x)):x.v())),x===null&&a.Jf(y)}},Ui.prototype.makeAdornment=function(a,y){var x=new zo;return x.type=hi.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},Ui.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowRelink||!a.model.xs()||!a.lastInput.left)return!1;var y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom");return y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo")),y!==null},Ui.prototype.doActivate=function(){var a=this.diagram;if(this.originalLink===null){var y=this.handle;if(y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom"),y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo"))),y===null)return;var x=y.part;if(!(x instanceof zo&&x.adornedPart instanceof yi))return;this.handle=y,this.isForwards=x===null||x.category==="RelinkTo",this.originalLink=x.adornedPart}this.Ea(this.name),a.isMouseCaptured=!0,a.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=bo),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=bo),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),a.add(this.temporaryFromNode),a.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(),a.add(this.temporaryLink)),this.isActive=!0},Ui.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var x=a.curve;(x===op||x===Wh)&&(x=Eu),y.curve=x,y.curviness=a.curviness,y.isTreeLink=a.isTreeLink,y.points=a.points,y.routing=a.routing,y.smoothness=a.smoothness,y.fromSpot=a.fromSpot,y.fromEndSegmentLength=a.fromEndSegmentLength,y.fromShortLength=a.fromShortLength,y.toSpot=a.toSpot,y.toEndSegmentLength=a.toEndSegmentLength,y.toShortLength=a.toShortLength}},Ui.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;a.remove(this.temporaryLink),a.remove(this.temporaryFromNode),a.remove(this.temporaryToNode),a.isMouseCaptured=!1,a.currentCursor="",this.stopTransaction()},Ui.prototype.doStop=function(){xn.prototype.doStop.call(this),this.handle=null},Ui.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;this.transactionResult=null;var y=this.originalFromNode,x=this.originalFromPort,b=this.originalToNode,E=this.originalToPort,z=this.originalLink;try{if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null){var te=this.targetPort.part;te instanceof Li&&(this.isForwards?(b=te,E=this.targetPort):(y=te,x=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?E=b=null:x=y=null:z=null;z!==null?(this.reconnectLink(z,this.isForwards?b:y,this.isForwards?E:x,this.isForwards),this.targetPort===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint,z.bb()),this.transactionResult=this.name,a.R("LinkRelinked",z,this.isForwards?this.originalToPort:this.originalFromPort)):this.doNoRelink(this.originalLink,this.isForwards),this.originalLink.Xo(this.Ew)}finally{this.stopTool()}}},Ui.prototype.reconnectLink=function(a,y,x,b){return x=x!==null&&x.portId!==null?x.portId:"",b?(a.toNode=y,a.toPortId=x):(a.fromNode=y,a.fromPortId=x),!0},Ui.prototype.doNoRelink=function(){};function Lr(a,y,x,b,E){y!==null?(a.copyPortProperties(y,x,a.temporaryFromNode,a.temporaryFromPort,!1),a.diagram.add(a.temporaryFromNode)):a.diagram.remove(a.temporaryFromNode),b!==null?(a.copyPortProperties(b,E,a.temporaryToNode,a.temporaryToPort,!0),a.diagram.add(a.temporaryToNode)):a.diagram.remove(a.temporaryToNode)}Nt.Object.defineProperties(Ui.prototype,{fromHandleArchetype:{get:function(){return this.V},set:function(a){this.V=a}},toHandleArchetype:{get:function(){return this.Xd},set:function(a){this.Xd=a}},handle:{get:function(){return this.F},set:function(a){if(a!==null&&!(a.part instanceof zo))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),Ui.className="RelinkingTool",Wn("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),Wn("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function Vi(){xo.call(this),this.name="LinkReshaping";var a=new eo;a.figure="Rectangle",a.desiredSize=ca,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new eo,a.figure="Diamond",a.desiredSize=oa,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new lt,this.Yq=new Ht}qt(Vi,xo),Vi.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:yr},Vi.prototype.om=function(a,y){a.reshapingBehavior=y},Vi.prototype.updateAdornments=function(a){if(a!==null&&a instanceof yi){var y=null;if(a.isSelected&&!this.diagram.isReadOnly){var x=a.path;x!==null&&a.canReshape()&&a.actualBounds.w()&&a.isVisible()&&x.actualBounds.w()&&x.Ed()&&(y=a.Pj(this.name),y===null||y.Aw!==a.pointsCount||y.Uw!==a.resegmentable)&&(y=this.makeAdornment(x),y!==null&&(y.Aw=a.pointsCount,y.Uw=a.resegmentable,a.bh(this.name,y)))}y===null&&a.Jf(this.name)}},Vi.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,b=y.isOrthogonal,E=null;if(y.points!==null&&1<x){E=new zo,E.type=hi.Link,x=y.firstPickIndex;var z=y.lastPickIndex,te=b?1:0;if(y.resegmentable&&y.computeCurve()!==wc)for(var re=x+te;re<z-te;re++){var le=this.makeResegmentHandle(a,re);le!==null&&(le.segmentIndex=re,le.segmentFraction=.5,le.fromMaxLinks=999,E.add(le))}for(te=x+1;te<z;te++)if(re=this.makeHandle(a,te),re!==null){if(re.segmentIndex=te,te!==x)if(te===x+1&&b){le=y.i(x);var ce=y.i(x+1);Wt.B(le.x,ce.x)&&Wt.B(le.y,ce.y)&&(ce=y.i(x-1)),Wt.B(le.x,ce.x)?(this.om(re,So),re.cursor="n-resize"):Wt.B(le.y,ce.y)&&(this.om(re,zr),re.cursor="w-resize")}else te===z-1&&b?(le=y.i(z-1),ce=y.i(z),Wt.B(le.x,ce.x)&&Wt.B(le.y,ce.y)&&(le=y.i(z+1)),Wt.B(le.x,ce.x)?(this.om(re,So),re.cursor="n-resize"):Wt.B(le.y,ce.y)&&(this.om(re,zr),re.cursor="w-resize")):te!==z&&(this.om(re,Lo),re.cursor="move");E.add(re)}E.adornedObject=a}return E},Vi.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},Vi.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},Vi.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowReshape&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},Vi.prototype.doActivate=function(){var a=this.diagram;if(this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle!==null){var y=this.handle.part.adornedPart;if(y instanceof yi){if(this.Ts=y,a.isMouseCaptured=!0,this.Ea(this.name),y.resegmentable&&this.handle.fromMaxLinks===999){var x=y.points.copy(),b=this.getResegmentingPoint();if(x.Gb(this.handle.segmentIndex+1,b),y.isOrthogonal&&x.Gb(this.handle.segmentIndex+1,b),y.points=x,y.Wb(),y.updateAdornments(),this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name),this.handle===null){this.doDeactivate();return}}this.Fw=y.i(this.handle.segmentIndex),this.Yq=y.points.copy(),this.isActive=!0}}},Vi.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},Vi.prototype.stopTransaction=function(){var a=this.diagram,y=xo.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Vi.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},Vi.prototype.getResegmentingPoint=function(){return this.handle.ga(wo)},Vi.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},Vi.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.computeReshape(a.lastInput.documentPoint);if(this.reshape(y),y=this.adornedLink,y!==null&&y.resegmentable){var x=this.handle.segmentIndex,b=y.i(x-1),E=y.i(x),z=y.i(x+1);if(y.isOrthogonal){if(x>y.firstPickIndex+1&&x<y.lastPickIndex-1){var te=y.i(x-2);if(Math.abs(b.x-E.x)<this.resegmentingDistance&&Math.abs(b.y-E.y)<this.resegmentingDistance&&(Pr(this,te,b,E,z,!0)||Pr(this,te,b,E,z,!1))){var re=y.points.copy();Pr(this,te,b,E,z,!0)?(re.cd(x-2,new lt(te.x,(z.y+te.y)/2)),re.cd(x+1,new lt(z.x,(z.y+te.y)/2))):(re.cd(x-2,new lt((z.x+te.x)/2,te.y)),re.cd(x+1,new lt((z.x+te.x)/2,z.y))),re.mb(x),re.mb(x-1),y.points=re,y.Wb()}else te=y.i(x+2),Math.abs(E.x-z.x)<this.resegmentingDistance&&Math.abs(E.y-z.y)<this.resegmentingDistance&&(Pr(this,b,E,z,te,!0)||Pr(this,b,E,z,te,!1))&&(re=y.points.copy(),Pr(this,b,E,z,te,!0)?(re.cd(x-1,new lt(b.x,(b.y+te.y)/2)),re.cd(x+2,new lt(te.x,(b.y+te.y)/2))):(re.cd(x-1,new lt((b.x+te.x)/2,b.y)),re.cd(x+2,new lt((b.x+te.x)/2,te.y))),re.mb(x+1),re.mb(x),y.points=re,y.Wb())}}else te=lt.alloc(),Wt.qh(b.x,b.y,z.x,z.y,E.x,E.y,te)&&te.Bf(E)<this.resegmentingDistance*this.resegmentingDistance&&(b=y.points.copy(),b.mb(x),y.points=b,y.Wb()),lt.free(te)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function Pr(a,y,x,b,E,z){return z?Math.abs(y.y-x.y)<a.resegmentingDistance&&Math.abs(x.y-b.y)<a.resegmentingDistance&&Math.abs(b.y-E.y)<a.resegmentingDistance:Math.abs(y.x-x.x)<a.resegmentingDistance&&Math.abs(x.x-b.x)<a.resegmentingDistance&&Math.abs(b.x-E.x)<a.resegmentingDistance}Vi.prototype.reshape=function(a){var y=this.adornedLink;y.uh();var x=this.handle.segmentIndex,b=this.Ru(this.handle);if(y.isOrthogonal)if(x===y.firstPickIndex+1)x=y.firstPickIndex+1,b===So?(y.L(x,y.i(x-1).x,a.y),y.L(x+1,y.i(x+2).x,a.y)):b===zr&&(y.L(x,a.x,y.i(x-1).y),y.L(x+1,a.x,y.i(x+2).y));else if(x===y.lastPickIndex-1)x=y.lastPickIndex-1,b===So?(y.L(x-1,y.i(x-2).x,a.y),y.L(x,y.i(x+1).x,a.y)):b===zr&&(y.L(x-1,a.x,y.i(x-2).y),y.L(x,a.x,y.i(x+1).y));else{b=x;var E=y.i(b),z=y.i(b-1),te=y.i(b+1);Wt.B(z.x,E.x)&&Wt.B(E.y,te.y)?(Wt.B(z.x,y.i(b-2).x)&&!Wt.B(z.y,y.i(b-2).y)?(y.m(b,a.x,z.y),x++,b++):y.L(b-1,a.x,z.y),Wt.B(te.y,y.i(b+2).y)&&!Wt.B(te.x,y.i(b+2).x)?y.m(b+1,te.x,a.y):y.L(b+1,te.x,a.y)):Wt.B(z.y,E.y)&&Wt.B(E.x,te.x)?(Wt.B(z.y,y.i(b-2).y)&&!Wt.B(z.x,y.i(b-2).x)?(y.m(b,z.x,a.y),x++,b++):y.L(b-1,z.x,a.y),Wt.B(te.x,y.i(b+2).x)&&!Wt.B(te.y,y.i(b+2).y)?y.m(b+1,a.x,te.y):y.L(b+1,a.x,te.y)):Wt.B(z.x,E.x)&&Wt.B(E.x,te.x)?(Wt.B(z.x,y.i(b-2).x)&&!Wt.B(z.y,y.i(b-2).y)?(y.m(b,a.x,z.y),x++,b++):y.L(b-1,a.x,z.y),Wt.B(te.x,y.i(b+2).x)&&!Wt.B(te.y,y.i(b+2).y)?y.m(b+1,a.x,te.y):y.L(b+1,a.x,te.y)):Wt.B(z.y,E.y)&&Wt.B(E.y,te.y)&&(Wt.B(z.y,y.i(b-2).y)&&!Wt.B(z.x,y.i(b-2).x)?(y.m(b,z.x,a.y),x++,b++):y.L(b-1,z.x,a.y),Wt.B(te.y,y.i(b+2).y)&&!Wt.B(te.x,y.i(b+2).x)?y.m(b+1,te.x,a.y):y.L(b+1,te.x,a.y)),y.L(x,a.x,a.y)}else y.L(x,a.x,a.y),b=y.fromNode,E=y.fromPort,b!==null&&(z=b.findVisibleNode(),z!==null&&z!==b&&(b=z,E=b.port)),x===1&&y.computeSpot(!0,E).Mc()&&(z=E.ga(wo,lt.alloc()),b=y.getLinkPointFromPoint(b,E,z,a,!0,lt.alloc()),y.L(0,b.x,b.y),lt.free(z),lt.free(b)),b=y.toNode,E=y.toPort,b!==null&&(z=b.findVisibleNode(),z!==null&&z!==b&&(b=z,E=b.port)),x===y.pointsCount-2&&y.computeSpot(!1,E).Mc()&&(x=E.ga(wo,lt.alloc()),a=y.getLinkPointFromPoint(b,E,x,a,!1,lt.alloc()),y.L(y.pointsCount-1,a.x,a.y),lt.free(x),lt.free(a));y.zf()},Vi.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case Lo:return a;case So:return new lt(y.i(x).x,a.y);case zr:return new lt(a.x,y.i(x).y);default:case yr:return y.i(x)}},Nt.Object.defineProperties(Vi.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},midHandleArchetype:{get:function(){return this.u},set:function(a){this.u=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof zo))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedLink:{get:function(){return this.Ts}},resegmentingDistance:{get:function(){return this.F},set:function(a){this.F=a}},originalPoint:{get:function(){return this.Fw}},originalPoints:{get:function(){return this.Yq}}}),Vi.prototype.setReshapingBehavior=Vi.prototype.om,Vi.prototype.getReshapingBehavior=Vi.prototype.Ru;var yr=new tn(Vi,"None",0),zr=new tn(Vi,"Horizontal",1),So=new tn(Vi,"Vertical",2),Lo=new tn(Vi,"All",3);Vi.className="LinkReshapingTool",Vi.None=yr,Vi.Horizontal=zr,Vi.Vertical=So,Vi.All=Lo,Wn("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function Tr(){xo.call(this),this.name="Resizing",this.o=new fi(1,1).freeze(),this.j=new fi(9999,9999).freeze(),this.yg=new fi(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new eo;a.alignmentFocus=wo,a.figure="Rectangle",a.desiredSize=ca,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new lt,this.Dw=new fi,this.Tn=new lt,this.rt=new fi(0,0),this.qt=new fi(1/0,1/0),this.pt=new fi(1,1)}qt(Tr,xo),Tr.prototype.updateAdornments=function(a){if(!(a===null||a instanceof yi)){if(a.isSelected&&!this.diagram.isReadOnly){var y=a.resizeObject,x=a.Pj(this.name);if(y!==null&&a.canResize()&&a.actualBounds.w()&&a.isVisible()&&y.actualBounds.w()&&y.Ed()&&((x===null||x.adornedObject!==y)&&(x=this.makeAdornment(y)),x!==null)){y=y.li(),fg(a)&&this.updateResizeHandles(x,y),a.bh(this.name,x);return}}a.Jf(this.name)}},Tr.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new zo,y.type=hi.Spot,y.locationSpot=wo;var x=new wu;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,Hs)),y.add(this.makeHandle(a,ui)),y.add(this.makeHandle(a,Fl)),y.add(this.makeHandle(a,Wl)),y.add(this.makeHandle(a,Na)),y.add(this.makeHandle(a,Ho)),y.add(this.makeHandle(a,Bo)),y.add(this.makeHandle(a,Ia))}else if(Vc(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Tr.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},Tr.prototype.updateResizeHandles=function(a,y){if(a!==null){if(!a.alignment.Xb()&&(a.cursor==="pointer"||0<a.cursor.indexOf("resize")))e:{var x=a.alignment;if(x.Mc()&&(x=wo),0>=x.x)y=0>=x.y?y+225:1<=x.y?y+135:y+180;else if(1<=x.x)0>=x.y?y+=315:1<=x.y&&(y+=45);else if(0>=x.y)y+=270;else if(1<=x.y)y+=90;else break e;0>y?y+=360:360<=y&&(y-=360),a.cursor=22.5>y?"e-resize":67.5>y?"se-resize":112.5>y?"s-resize":157.5>y?"sw-resize":202.5>y?"w-resize":247.5>y?"nw-resize":292.5>y?"n-resize":337.5>y?"ne-resize":"e-resize"}else if(a instanceof hi)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},Tr.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowResize&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},Tr.prototype.doActivate=function(){var a=this.diagram;this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle!==null&&(this.adornedObject=this.handle.part.adornedObject,this.adornedObject!==null&&(a.isMouseCaptured=!0,a.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))},Tr.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},Tr.prototype.stopTransaction=function(){var a=this.diagram,y=xo.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Tr.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},Tr.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,b=this.pt,E=this.adornedObject.qs(a.lastInput.documentPoint,lt.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),a.bd(),lt.free(E)}},Tr.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,b=this.pt,E=this.adornedObject.qs(a.lastInput.documentPoint,lt.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),lt.free(E),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},Tr.prototype.resize=function(a){var y=this.diagram,x=this.adornedObject;if(x!==null){if(x.desiredSize=a.size,a=x.part,a.Va(),x=x.ga(this.handle.alignment.gv()),a instanceof _r){var b=new Ht;if(b.add(a),!this.dragsMembers&&a.placeholder===null){var E=new ae;E.dragsMembers=!1}y.moveParts(b,this.oppositePoint.copy().re(x),!0,E)}else a.location=a.location.copy().re(x).add(this.oppositePoint);y.bd()}},Tr.prototype.computeResize=function(a,y,x,b,E,z){y.Mc()&&(y=wo);var te=this.adornedObject.naturalBounds,re=te.x,le=te.y,ce=te.x+te.width,de=te.y+te.height,ve=1;if(!z){ve=te.width;var Pe=te.height;0>=ve&&(ve=1),0>=Pe&&(Pe=1),ve=Pe/ve}return Pe=lt.alloc(),Wt.No(a.x,a.y,re,le,E.width,E.height,Pe),a=te.copy(),0>=y.x?0>=y.y?(a.x=Math.max(Pe.x,ce-b.width),a.x=Math.min(a.x,ce-x.width),a.width=Math.max(ce-a.x,x.width),a.y=Math.max(Pe.y,de-b.height),a.y=Math.min(a.y,de-x.height),a.height=Math.max(de-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ve*a.width,b.height),x.height),a.width=a.height/ve):(a.width=Math.max(Math.min(a.height/ve,b.width),x.width),a.height=ve*a.width),a.x=ce-a.width,a.y=de-a.height)):1<=y.y?(a.x=Math.max(Pe.x,ce-b.width),a.x=Math.min(a.x,ce-x.width),a.width=Math.max(ce-a.x,x.width),a.height=Math.max(Math.min(Pe.y-le,b.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ve*a.width,b.height),x.height),a.width=a.height/ve):(a.width=Math.max(Math.min(a.height/ve,b.width),x.width),a.height=ve*a.width),a.x=ce-a.width)):(a.x=Math.max(Pe.x,ce-b.width),a.x=Math.min(a.x,ce-x.width),a.width=ce-a.x,z||(a.height=Math.max(Math.min(ve*a.width,b.height),x.height),a.width=a.height/ve,a.y=le+.5*(de-le-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(Pe.x-re,b.width),x.width),a.y=Math.max(Pe.y,de-b.height),a.y=Math.min(a.y,de-x.height),a.height=Math.max(de-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ve*a.width,b.height),x.height),a.width=a.height/ve):(a.width=Math.max(Math.min(a.height/ve,b.width),x.width),a.height=ve*a.width),a.y=de-a.height)):1<=y.y?(a.width=Math.max(Math.min(Pe.x-re,b.width),x.width),a.height=Math.max(Math.min(Pe.y-le,b.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ve*a.width,b.height),x.height),a.width=a.height/ve):(a.width=Math.max(Math.min(a.height/ve,b.width),x.width),a.height=ve*a.width))):(a.width=Math.max(Math.min(Pe.x-re,b.width),x.width),z||(a.height=Math.max(Math.min(ve*a.width,b.height),x.height),a.width=a.height/ve,a.y=le+.5*(de-le-a.height))):0>=y.y?(a.y=Math.max(Pe.y,de-b.height),a.y=Math.min(a.y,de-x.height),a.height=de-a.y,z||(a.width=Math.max(Math.min(a.height/ve,b.width),x.width),a.height=ve*a.width,a.x=re+.5*(ce-re-a.width))):1<=y.y&&(a.height=Math.max(Math.min(Pe.y-le,b.height),x.height),z||(a.width=Math.max(Math.min(a.height/ve,b.width),x.width),a.height=ve*a.width,a.x=re+.5*(ce-re-a.width))),lt.free(Pe),a},Tr.prototype.computeReshape=function(){var a=_n;return this.adornedObject instanceof eo&&(a=Rv(this.adornedObject)),!(a===pi||this.diagram.lastInput.shift)},Tr.prototype.computeMinSize=function(){var a=this.adornedObject.minSize.copy(),y=this.minSize;return!isNaN(y.width)&&y.width>a.width&&(a.width=y.width),!isNaN(y.height)&&y.height>a.height&&(a.height=y.height),a},Tr.prototype.computeMaxSize=function(){var a=this.adornedObject.maxSize.copy(),y=this.maxSize;return!isNaN(y.width)&&y.width<a.width&&(a.width=y.width),!isNaN(y.height)&&y.height<a.height&&(a.height=y.height),a},Tr.prototype.computeCellSize=function(){var a=new fi(NaN,NaN),y=this.adornedObject.part;return y!==null&&(y=y.resizeCellSize,!isNaN(y.width)&&0<y.width&&(a.width=y.width),!isNaN(y.height)&&0<y.height&&(a.height=y.height)),y=this.cellSize,isNaN(a.width)&&!isNaN(y.width)&&0<y.width&&(a.width=y.width),isNaN(a.height)&&!isNaN(y.height)&&0<y.height&&(a.height=y.height),y=this.diagram,(isNaN(a.width)||isNaN(a.height))&&y&&(y=y.grid,y!==null&&y.visible&&this.isGridSnapEnabled&&(y=y.gridCellSize,isNaN(a.width)&&!isNaN(y.width)&&0<y.width&&(a.width=y.width),isNaN(a.height)&&!isNaN(y.height)&&0<y.height&&(a.height=y.height))),(isNaN(a.width)||a.width===0||a.width===1/0)&&(a.width=1),(isNaN(a.height)||a.height===0||a.height===1/0)&&(a.height=1),a},Nt.Object.defineProperties(Tr.prototype,{handleArchetype:{get:function(){return this.F},set:function(a){this.F=a}},handle:{get:function(){return this.u},set:function(a){if(a!==null&&!(a.part instanceof zo))throw Error("new handle is not in an Adornment: "+a);this.u=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof zo)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},minSize:{get:function(){return this.o},set:function(a){if(!this.o.D(a)){var y=a.width;isNaN(y)&&(y=0),a=a.height,isNaN(a)&&(a=0),this.o.h(y,a)}}},maxSize:{get:function(){return this.j},set:function(a){if(!this.j.D(a)){var y=a.width;isNaN(y)&&(y=1/0),a=a.height,isNaN(a)&&(a=1/0),this.j.h(y,a)}}},cellSize:{get:function(){return this.yg},set:function(a){this.yg.D(a)||this.yg.assign(a)}},isGridSnapEnabled:{get:function(){return this.V},set:function(a){this.V=a}},dragsMembers:{get:function(){return this.ia},set:function(a){this.ia=a}},oppositePoint:{get:function(){return this.Xq},set:function(a){this.Xq.D(a)||this.Xq.assign(a)}},originalDesiredSize:{get:function(){return this.Dw}},originalLocation:{get:function(){return this.Tn}}}),Tr.className="ResizingTool",Wn("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function mo(){xo.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new lt,this.ue=null;var a=new eo;a.figure="Ellipse",a.desiredSize=oa,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new lt(NaN,NaN),this.u=0,this.F=50}qt(mo,xo),mo.prototype.updateAdornments=function(a){if(a!==null){if(a.ph()){var y=a.rotateObject;if(y===a||y===a.path||y.isPanelMain)return}if(a.isSelected&&!this.diagram.isReadOnly&&(y=a.rotateObject,y!==null&&a.canRotate()&&a.actualBounds.w()&&a.isVisible()&&y.actualBounds.w()&&y.Ed())){var x=a.Pj(this.name);if((x===null||x.adornedObject!==y)&&(x=this.makeAdornment(y)),x!==null){x.angle=y.li(),x.placeholder===null&&(x.location=this.computeAdornmentLocation(y)),a.bh(this.name,x);return}}a.Jf(this.name)}},mo.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new zo,y.type=hi.Position,y.locationSpot=wo;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(Vc(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},mo.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowRotate&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},mo.prototype.doActivate=function(){var a=this.diagram;if(this.adornedObject===null){if(this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle===null)return;this.adornedObject=this.handle.part.adornedObject}this.adornedObject!==null&&(a.isMouseCaptured=!0,a.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)},mo.prototype.computeRotationPoint=function(a){var y=a.part,x=y.locationObject;return y.rotationSpot.sb()?a.ga(y.rotationSpot):a===y||a===x?x.ga(y.locationSpot):a.ga(wo)},mo.prototype.computeAdornmentLocation=function(a){var y=this.rotationPoint;y.w()||(y=this.computeRotationPoint(a)),y=a.qs(y);var x=this.handleAngle;0>x?x+=360:360<=x&&(x-=360),x=Math.round(45*Math.round(x/45));var b=this.handleDistance;return x===0?y.x=a.naturalBounds.width+b:x===45?(y.x=a.naturalBounds.width+b,y.y=a.naturalBounds.height+b):x===90?y.y=a.naturalBounds.height+b:x===135?(y.x=-b,y.y=a.naturalBounds.height+b):x===180?y.x=-b:x===225?(y.x=-b,y.y=-b):x===270?y.y=-b:x===315&&(y.x=a.naturalBounds.width+b,y.y=-b),a.ga(y)},mo.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new lt(NaN,NaN),this.isActive=a.isMouseCaptured=!1},mo.prototype.stopTransaction=function(){var a=this.diagram,y=xo.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},mo.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},mo.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},mo.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){a.delaysLayout=!1;var y=this.computeRotate(a.lastInput.documentPoint);this.rotate(y),a.Ya(),this.transactionResult=this.name,a.R("PartRotated",this.adornedObject,this.originalAngle)}this.stopTool()},mo.prototype.rotate=function(a){var y=this.adornedObject;if(y!==null){y.angle=a,y=y.part,y.Va();var x=y.locationObject,b=y.rotateObject;(x===b||x.rg(b))&&(x=this.Tn.copy(),y.location=x.re(this.rotationPoint).rotate(a-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},mo.prototype.computeRotate=function(a){a=this.rotationPoint.ab(a)-this.handleAngle;var y=this.adornedObject.panel;y!==null&&(a-=y.li()),360<=a?a-=360:0>a&&(a+=360),y=Math.min(Math.abs(this.snapAngleMultiple),180);var x=Math.min(Math.abs(this.snapAngleEpsilon),y/2);return!this.diagram.lastInput.shift&&0<y&&0<x&&(a%y<x?a=Math.floor(a/y)*y:a%y>y-x&&(a=(Math.floor(a/y)+1)*y)),360<=a?a-=360:0>a&&(a+=360),a},Nt.Object.defineProperties(mo.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof zo))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof zo)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},snapAngleMultiple:{get:function(){return this.ia},set:function(a){this.ia=a}},snapAngleEpsilon:{get:function(){return this.V},set:function(a){this.V=a}},originalAngle:{get:function(){return this.Cw}},rotationPoint:{get:function(){return this.kr},set:function(a){this.kr=a.copy()}},handleAngle:{get:function(){return this.u},set:function(a){this.u=a}},handleDistance:{get:function(){return this.F},set:function(a){this.F=a}}}),mo.className="RotatingTool",Wn("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function Zo(){xo.call(this),this.name="ClickSelecting"}qt(Zo,xo),Zo.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},Zo.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},Zo.className="ClickSelectingTool";function Hr(){xo.call(this),this.name="Action",this.pk=null}qt(Hr,xo),Hr.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram,y=a.lastInput,x=a.ic(y.documentPoint,function(b){for(;b.panel!==null&&!b.isActionable;)b=b.panel;return b});return x!==null&&x.isActionable?(this.pk=x,a.Ck=a.ic(y.documentPoint,null,null),!0):!1},Hr.prototype.doMouseDown=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionDown!==null&&y.actionDown(a,y))}else this.canStart()&&this.doActivate()},Hr.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionMove!==null&&y.actionMove(a,y))}},Hr.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;if(y===null)return;a.targetObject=y,y.actionUp!==null&&y.actionUp(a,y),this.standardMouseClick(function(x){for(;x.panel!==null&&(!x.isActionable||x!==y);)x=x.panel;return x},function(x){return x===y})}this.stopTool()},Hr.prototype.doCancel=function(){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionCancel!==null&&y.actionCancel(a,y),this.stopTool())},Hr.prototype.doStop=function(){this.pk=null},Hr.className="ActionTool";function uo(){xo.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new lt(0,0)}qt(uo,xo),uo.prototype.canStart=function(){if(!this.isEnabled||this.archetypeNodeData===null)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.lastInput.left||this.isBeyondDragSize())return!1;if(this.isDoubleClick){if(a.lastInput.clickCount===1&&(this.mw=a.lastInput.viewPoint.copy()),a.lastInput.clickCount!==2||this.isBeyondDragSize(this.mw))return!1}else if(a.lastInput.clickCount!==1)return!1;return!(a.currentTool!==this&&a.Ol(a.lastInput.documentPoint,!0)!==null)},uo.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},uo.prototype.insertPart=function(a){var y=this.diagram,x=this.archetypeNodeData;if(x===null)return null;var b=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),x instanceof nr)x.Zc()&&(Vc(x),b=x.copy(),b!==null&&y.add(b));else if(x!==null){var E=y.model.copyNodeData(x);Gt(E)&&(y.model.xf(E),b=y.Lc(E))}if(b!==null){var z=lt.allocAt(a.x,a.y);this.isGridSnapEnabled&&Fg(this.diagram,b,a,z),b.location=z,y.allowSelect&&(y.clearSelection(!0),b.isSelected=!0),lt.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",b)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return b},Nt.Object.defineProperties(uo.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){this.Ri=a}},isDoubleClick:{get:function(){return this.o},set:function(a){this.o=a}},isGridSnapEnabled:{get:function(){return this.j},set:function(a){this.j=a}}}),uo.className="ClickCreatingTool";function vr(){xo.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new nr;a.layerName="Tool",a.selectable=!1;var y=new eo;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}qt(vr,xo),vr.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(!a.allowSelect)return!1;var y=a.lastInput;return!(!y.left||a.currentTool!==this&&(!this.isBeyondDragSize()||y.timestamp-a.firstInput.timestamp<this.delay||a.Ol(y.documentPoint,!0)!==null))},vr.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},vr.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},vr.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive&&this.box!==null){var y=this.computeBoxBounds(),x=this.box.fb("SHAPE");x===null&&(x=this.box.Pb());var b=fi.alloc().h(y.width,y.height);x.desiredSize=b,this.box.mm(y.x,y.y,!1),fi.free(b),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},vr.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;a.remove(this.box);try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),this.selectInRect(this.computeBoxBounds()),a.R("ChangedSelection",a.selection)}finally{a.currentCursor=""}}this.stopTool()},vr.prototype.computeBoxBounds=function(){var a=this.diagram;return new jn(a.firstInput.documentPoint,a.lastInput.documentPoint)},vr.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),ir?x.meta:x.control)if(x.shift)for(a=a.iterator;a.next();)y=a.value,y.isSelected&&(y.isSelected=!1);else for(a=a.iterator;a.next();)y=a.value,y.isSelected=!y.isSelected;else if(x.shift)for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0);else{for(x=new Ht,y=y.selection.iterator;y.next();){var b=y.value;a.contains(b)||x.add(b)}for(y=x.iterator;y.next();)y.value.isSelected=!1;for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0)}},Nt.Object.defineProperties(vr.prototype,{delay:{get:function(){return this.Ik},set:function(a){this.Ik=a}},isPartialInclusion:{get:function(){return this.o},set:function(a){this.o=a}},box:{get:function(){return this.j},set:function(a){this.j=a}}}),vr.className="DragSelectingTool";function cr(){xo.call(this),this.name="Panning",this.Xt=new lt,this.xy=new lt,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(yt.document,"scroll",a.Kw,!1),a.stopTool()}}qt(cr,xo),cr.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!(!a.allowHorizontalScroll&&!a.allowVerticalScroll||!a.lastInput.left||a.currentTool!==this&&!this.isBeyondDragSize())},cr.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(yt.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},cr.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},cr.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},cr.prototype.doMouseMove=function(){this.move()},cr.prototype.doMouseUp=function(){this.move(),this.stopTool()},cr.prototype.move=function(){var a=this.diagram;if(this.isActive&&a)if(this.xg)a.lastInput.bubbles=!0;else{var y=a.position,x=a.firstInput.documentPoint,b=a.lastInput.documentPoint,E=y.x+x.x-b.x;x=y.y+x.y-b.y,a.allowHorizontalScroll||(E=y.x),a.allowVerticalScroll||(x=y.y),a.position=this.xy.h(E,x)}},Nt.Object.defineProperties(cr.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),cr.className="PanningTool",Wn("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),Wn("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),Wn("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),Wn("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),Wn("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function to(){this.F=this.u=this.j=this.o=null}Nt.Object.defineProperties(to.prototype,{mainElement:{get:function(){return this.u},set:function(a){this.u=a}},show:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},hide:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}},valueFunction:{get:function(){return this.F},set:function(a){this.F=a}}}),to.className="HTMLInfo";function Co(a,y,x){this.text=a,this.hx=y,this.visible=x}Co.className="ContextMenuButtonInfo";function Ro(){xo.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new lt,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}qt(Ro,xo);function jo(a){var y=new to;y.show=function(E,z,te){te.showDefaultContextMenu()},y.hide=function(E,z){z.hideDefaultContextMenu()},la=y,a.tu=function(){a.stopTool()},y=Rn("div");var x=Rn("div");y.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",x.style.cssText="z-index:10001;position: fixed;display: none;top: 0;left: 0;width: 100%;height: 100%;background-color: black;opacity: 0.8;";var b=Rn("style");yt.document.getElementsByTagName("head")[0].appendChild(b),b.sheet.insertRule(".goCXul { list-style: none; }",0),b.sheet.insertRule(".goCXli {font:700 1.5em Helvetica, Arial, sans-serif;position: relative;min-width: 60px; }",0),b.sheet.insertRule(".goCXa {color: #444;display: inline-block;padding: 4px;text-decoration: none;margin: 2px;border: 1px solid gray;border-radius: 10px; }",0),b=a.diagram,b!==null&&(b.addEventListener(y,"contextmenu",Or,!1),b.addEventListener(y,"selectstart",Or,!1),b.addEventListener(x,"contextmenu",Or,!1)),y.className="goCXforeground",x.className="goCXbackground",yt.document.body&&(yt.document.body.appendChild(y),yt.document.body.appendChild(x)),ea=y,vs=x,Ms=!0}function Or(a){return a.preventDefault(),!1}Ro.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return this.isBeyondDragSize()||!a.lastInput.right||1<a.lastInput.clickCount?!1:!!(a.lastInput.isTouchEvent&&this.defaultTouchContextMenu!==null||this.findObjectWithContextMenu()!==null)},Ro.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},Ro.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},Ro.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,b=null;if(a instanceof pn||(a instanceof Rt?b=a:b=y.ic(x.documentPoint,null,function(E){return!E.layer.isTemporary})),b!==null){for(a=b;a!==null;){if(a.contextMenu!==null)return a;a=a.panel}if(y.lastInput.isTouchEvent&&this.defaultTouchContextMenu)return b.part}else if(y.contextMenu!==null)return y;return null},Ro.prototype.doActivate=function(){},Ro.prototype.doMouseDown=function(){if(xo.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof zo){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&Qo(this)},Ro.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof zo){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}Qo(this)};function Qo(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var b=null;x instanceof to||(b=y.ic(y.lastInput.documentPoint,null,null),b!==null&&b.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(b)}}else a.canStart()&&(Jo(a,!0),a.isActive||a.stopTool())}Ro.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function Jo(a,y,x){if(x===void 0&&(x=null),!a.Et&&(a.Et=!0,y&&a.standardMouseSelect(),y=a.standardMouseClick(),a.Et=!1,!y)){if(a.isActive=!0,y=la,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var b=x.contextMenu;b!==null?(a.currentObject=x instanceof Rt?x:null,a.showContextMenu(b,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof zo&&!a.currentContextMenu.visible&&a.stopTool()}}Ro.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},Ro.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof zo){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category=this.name,a.placeholder!==null&&(a.placeholder.scale=x.scale);var b=a.diagram;b!==null&&b!==x&&b.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionContextMenu(a,y)}else a instanceof to&&a.show(y,x,this);this.currentContextMenu=a},Ro.prototype.positionContextMenu=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),b=a.measuredBounds,E=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=b.width),x.x+b.width>E.right&&(x.x-=b.width+5/y.scale),x.x<E.x&&(x.x=E.x),x.y+b.height>E.bottom&&(x.y-=b.height+5/y.scale),x.y<E.y&&(x.y=E.y),a.position=x}},Ro.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof zo?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof to&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function Da(a){var y=new Ht;return y.add(new Co("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new Co("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new Co("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new Co("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new Co("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new Co("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new Co("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new Co("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new Co("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new Co("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new Co("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new Co("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new Co("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}Ro.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=Da(this)),ea.innerHTML="",vs.addEventListener("pointerdown",this.tu,!1);var y=this,x=Rn("ul");x.className="goCXul",ea.appendChild(x),x.innerHTML="";for(var b=this.jt.iterator;b.next();){var E=b.value,z=E.visible;if(typeof E.hx=="function"&&(typeof z!="function"||z(a))){z=Rn("li"),z.className="goCXli";var te=Rn("a");te.className="goCXa",te.href="#",te.ky=E.hx,te.addEventListener("pointerdown",function(re){return this.ky(a),y.stopTool(),re.preventDefault(),!1},!1),te.textContent=E.text,z.appendChild(te),x.appendChild(z)}}ea.style.display="block",vs.style.display="block"},Ro.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===la){ea.style.display="none",vs.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(vs,"pointerdown",this.tu,!1),this.currentContextMenu=null}},Nt.Object.defineProperties(Ro.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof zo?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return Ms===!1&&la===null&&ls&&jo(this),la},set:function(a){a===null&&(Ms=!0),la=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var la=null,Ms=!1,vs=null,ea=null;Ro.className="ContextMenuTool",Wn("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function No(){xo.call(this),this.name="TextEditing",this.Zh=new Pa,this.ia=null,this.V=qr,this.vj=null,this.qa=ho,this.u=1,this.F=!0,this.o=null,this.j=new to,this.kt=null,Ba(this,this.j)}qt(No,xo);function Ba(a,y){if(ls){var x=Rn("textarea");a.kt=x,x.addEventListener("input",function(){if(a.textBlock!==null){var b=a.Lx(this.value);this.style.width=20+b.measuredBounds.width*this.wA+"px",this.rows=b.lineCount}},!1),x.addEventListener("keydown",function(b){if(!b.isComposing&&a.textBlock!==null){var E=b.key;E==="Enter"?(a.textBlock.isMultiline===!1&&b.preventDefault(),a.acceptText(wi)):E==="Tab"?(a.acceptText(_o),b.preventDefault()):E==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),x.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==ho){var b=a.kt;a.qa===Yo&&(a.qa=Sa),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),x.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==ho){var b=a.kt;typeof b.focus=="function"&&b.focus(),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),y.valueFunction=function(){return x.value},y.mainElement=x,y.show=function(b,E,z){if(b instanceof Pa&&z instanceof No)if(z.state===xl)x.style.border="3px solid red",x.focus();else{var te=b.ga(wo),re=E.position,le=E.scale,ce=b.Df()*le;ce<z.minimumEditorScale&&(ce=z.minimumEditorScale);var de=b.naturalBounds.width*ce+6,ve=b.naturalBounds.height*ce+2,Pe=(te.x-re.x)*le;te=(te.y-re.y)*le,re=b.verticalAlignment,le=(b.lineHeight+b.spacingAbove+b.spacingBelow)*b.lineCount*ce,ve=re.y*ve-re.y*le+re.offsetY-(.5*ve-.5*le)-le/2,x.value=b.text,E.div.style.font=b.font,x.style.position="absolute",x.style.zIndex="100",x.style.font="inherit",x.style.fontSize=100*ce+"%",x.style.lineHeight="normal",x.style.width=de+"px",x.style.left=(Pe-de/2|0)-1+"px",x.style.top=(te+ve|0)-1+"px",x.style.textAlign=b.textAlign,x.style.margin="0",x.style.padding="1px",x.style.border="0",x.style.outline="none",x.style.whiteSpace="pre-wrap",x.style.overflow="hidden",x.rows=b.lineCount,x.wA=ce,x.className="goTXarea",E.div.appendChild(x),x.focus(),z.selectsTextOnActivate&&(x.select(),x.setSelectionRange(0,9999))}},y.hide=function(b){b.div.removeChild(x)}}}No.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||ql&&ql!==this&&(ql.acceptText(qs),ql&&ql!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof Pa&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===qr&&!y.isSelected||this.starting===La&&2>a.lastInput.clickCount)):!1},No.prototype.doStart=function(){ql=this,this.textBlock!==null&&this.doActivate()},No.prototype.doActivate=function(){if(!this.isActive){var a=this.diagram;if(a!==null){var y=this.textBlock;if(y===null&&(y=a.ic(a.lastInput.documentPoint)),y!==null&&y instanceof Pa&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=Yo;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var b=new jn(this.textBlock.ga(Hs),this.textBlock.ga(Fl));a.tv(b),x.show(y,a,this),this.currentTextEditor=x}}}},No.prototype.doCancel=function(){this.stopTool()},No.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},No.prototype.doMouseDown=function(){this.isActive&&this.acceptText(qs)},No.prototype.acceptText=function(a){switch(a){case qs:this.qa===al?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===Yo||this.qa===xl||this.qa===Sa)&&(this.qa=ja,bs(this));break;case ys:case wi:case _o:(wi!==a||this.textBlock.isMultiline!==!0)&&(this.qa===Yo||this.qa===xl||this.qa===Sa)&&(this.qa=ja,bs(this))}};function bs(a){var y=a.textBlock,x=a.diagram,b=a.currentTextEditor;if(y!==null&&b!==null){var E=y.text,z="";b.valueFunction!==null&&(z=b.valueFunction()),a.isValidText(y,E,z)?(a.Ea(a.name),a.qa=al,a.transactionResult=a.name,y.text=z,a.doSuccess(E,z),x!==null&&x.R("TextEdited",y,E),a.stopTransaction(),a.stopTool(),x!==null&&x.doFocus()):(a.qa=xl,a.doError(E,z))}}No.prototype.doError=function(a,y){var x=this.textBlock;x.errorFunction!==null&&x.errorFunction(this,a,y),(a=this.currentTextEditor)&&a.show(x,this.diagram,this)},No.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},No.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=ho,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},No.prototype.doStop=function(){ql=null},No.prototype.isValidText=function(a,y,x){var b=this.textValidation;return b!==null&&!b(a,y,x)?!1:(b=a.textValidation,!!(b===null||b(a,y,x)))},No.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},Nt.Object.defineProperties(No.prototype,{textBlock:{get:function(){return this.ia},set:function(a){this.ia=a}},currentTextEditor:{get:function(){return this.o},set:function(a){this.o=a}},defaultTextEditor:{get:function(){return this.j},set:function(a){this.j=a}},starting:{get:function(){return this.V},set:function(a){this.V=a}},textValidation:{get:function(){return this.vj},set:function(a){this.vj=a}},minimumEditorScale:{get:function(){return this.u},set:function(a){this.u=a}},selectsTextOnActivate:{get:function(){return this.F},set:function(a){this.F=a}},state:{get:function(){return this.qa},set:function(a){this.qa!==a&&(this.qa=a)}}}),No.prototype.measureTemporaryTextBlock=No.prototype.Lx;var ys=new tn(No,"LostFocus",0),qs=new tn(No,"MouseDown",1),_o=new tn(No,"Tab",2),wi=new tn(No,"Enter",3),er=new tn(No,"SingleClick",0),qr=new tn(No,"SingleClickSelected",1),La=new tn(No,"DoubleClick",2),ho=new tn(No,"StateNone",0),Yo=new tn(No,"StateActive",1),Sa=new tn(No,"StateEditing",2),ja=new tn(No,"StateValidating",3),xl=new tn(No,"StateInvalid",4),al=new tn(No,"StateValidated",5),ql=null;No.className="TextEditingTool",No.LostFocus=ys,No.MouseDown=qs,No.Tab=_o,No.Enter=wi,No.SingleClick=er,No.SingleClickSelected=qr,No.DoubleClick=La,No.StateNone=ho,No.StateActive=Yo,No.StateEditing=Sa,No.StateValidating=ja,No.StateInvalid=xl,No.StateValidated=al,Wn("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function Ya(a){Iu||(hl(),Iu=!0),this.H=Lc,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=lc,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new Fn,this.ce=new qa,this.ce.Yd=this,this.Ei=new Fn,this.pu=new Fn,this.Sr=new Fn,this.pr=new Fn,a&&Object.assign(this,a)}Ya.prototype.Xe=function(a){this.H=a},Ya.prototype.canStart=function(){return!0};function _l(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),El(a.H),a.zb=!0)}function sl(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,b=a.Zd.contains("Model");b&&(a.Ok=!0,a.Pk===lc?(y.isViewportUnconstrained=!0,y.vc.clear(),y.add(x,"position",x.position.copy().offset(0,-200),x.position),y.add(x,"opacity",0,1)):a.Pk===Ju&&y.vc.clear(),a.Qw=!!(a.Pk===uc&&x.du.D(x.pa)),x.R("InitialAnimationStarting",a)),b&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),bl(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,b=y.vc.get(x),x.autoScale!==Xl&&b!==null&&(delete b.start.scale,delete b.end.scale),yt.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&Gl(x),Th(x),a.zb=!1,y.start(),y.bc&&(Ss(a),x.Ya(),id(y,0),au(x,!0),Vs(a),x.R("AnimationStarting",a)))}))}}function Ml(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function Hc(a,y,x,b){a.isTicking||Ml(a)||y instanceof yi&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,b,!1)}Ue=Ya.prototype,Ue.fv=function(a){return this.ce.fv(a)},Ue.Xu=function(a){return this.ce.Xu(a)};function Za(a,y){function x(){if(0<E.Sr.count&&(b.addAll(E.Sr),E.Sr.clear(),E.bc=!0),E.bc!==!1&&b.count!==0){E.pu.addAll(b);for(var z=E.pu.iterator;z.next();){var te=z.value;if(te.bc!==!1){e:if(0<te.yl.count)var re=!0;else{for(re=te.vc.iterator;re.next();){var le=re.key;if(le instanceof Rt&&le.diagram!==null||le instanceof pn){re=!0;break e}}re=!1}re?fu(te,!1):te.Xk=!0}}E.pu.clear(),E.bc!==!1&&(Ss(E),au(E.H),Vs(E)),yt.requestAnimationFrame(x)}}var b=a.Ei,E=a;a.bc?a.Sr.add(y):(a.bc=!0,b.add(y),yt.requestAnimationFrame(function(){x()}))}function as(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function Ss(a){if(!a.vq){var y=a.H;a.Ow=y.skipsUndoManager,a.cw=y.skipsModelSourceBindings,y.skipsUndoManager=!0,y.skipsModelSourceBindings=!0,a.vq=!0}}function Vs(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}Ue.Cc=function(a){var y=this.ce;if(this.zb===!0&&(this.Ok=this.zb=!1,this.Zd.clear(),0<y.vc.count&&this.H.$b()),this.bc){if(y.Ml(!0),y.vc.clear(),bl(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),bl(y,this.H)},Ue.Ml=function(a){a===this.defaultAnimation&&this.defaultAnimation.vc.clear(),this.Ei.remove(a),this.Ei.count===0&&(this.bc=!1,this.H.$b()),a===this.defaultAnimation&&(this.defaultAnimation.vc.clear(),this.H.R("AnimationFinished",this))},Ue.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),ws(this,a))},Ue.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),Ks(this.ce,y,"position",y.position,y.position),ws(this,a))};function dl(a,y,x){!a.zb||y.D(x)||Ml(a)||(a.H.pi||(y=x.copy()),Ks(a.ce,a.H,"position",y,x))}function xa(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function ws(a,y){for(y=y.findLinksConnected();y.next();){var x=y.value;x.fd&&(x.Tg=x.points.copy(),a.pr.add(x))}}function Ll(a,y,x,b,E){a===null&&(a=[0,0,0,0]),y===null&&(y=[0,0,0,0]);var z=a[0],te=a[1],re=a[2];a=a[3];var le=y[0],ce=y[1],de=y[2];return y=y[3],re===0||re===100?(z=le,te=ce):(de===0||de===100)&&(le=z,ce=te),180<Math.abs(le-z)&&(le>z?z+=360:le+=360),z=E(x,z,le-z,b)%360,te=E(x,te,ce-te,b),re=E(x,re,de-re,b),x=E(x,a,y-a,b),"hsla("+z+", "+te+"%, "+re+"%, "+x+")"}function hl(){function a(x,b,E,z,te,re){x.position=new lt(z(te,b.x,E.x-b.x,re),z(te,b.y,E.y-b.y,re))}var y=new Ii;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,b,E,z,te,re){te<re?x.mm(z(te,b.x,E.x-b.x,re),z(te,b.y,E.y-b.y,re),!1):x.position=new lt(z(te,b.x,E.x-b.x,re),z(te,b.y,E.y-b.y,re))}),y.add("location",function(x,b,E,z,te,re){te<re?x.mm(z(te,b.x,E.x-b.x,re),z(te,b.y,E.y-b.y,re),!0):x.location=new lt(z(te,b.x,E.x-b.x,re),z(te,b.y,E.y-b.y,re))}),y.add("position:placeholder",function(x,b,E,z,te,re){te<re?x.mm(z(te,b.x,E.x-b.x,re),z(te,b.y,E.y-b.y,re),!1):x.position=new lt(z(te,b.x,E.x-b.x,re),z(te,b.y,E.y-b.y,re))}),y.add("position:nodeCollapse",function(x,b,E,z,te,re){var le=x.actualBounds,ce=E.actualBounds;E=ce.x+ce.width/2-le.width/2,le=ce.y+ce.height/2-le.height/2,te<re?x.mm(z(te,b.x,E-b.x,re),z(te,b.y,le-b.y,re),!1):x.position=new lt(z(te,b.x,E-b.x,re),z(te,b.y,le-b.y,re))}),y.add("desiredSize",function(x,b,E,z,te,re){x.desiredSize=new jn(z(te,b.width,E.width-b.width,re),z(te,b.height,E.height-b.height,re))}),y.add("width",function(x,b,E,z,te,re){x.width=z(te,b,E-b,re)}),y.add("height",function(x,b,E,z,te,re){x.height=z(te,b,E-b,re)}),y.add("fill",function(x,b,E,z,te,re){x.fill=Ll(b,E,te,re,z)}),y.add("stroke",function(x,b,E,z,te,re){x.stroke=Ll(b,E,te,re,z)}),y.add("strokeWidth",function(x,b,E,z,te,re){x.strokeWidth=z(te,b,E-b,re)}),y.add("strokeDashOffset",function(x,b,E,z,te,re){x.strokeDashOffset=z(te,b,E-b,re)}),y.add("background",function(x,b,E,z,te,re){x.background=Ll(b,E,te,re,z)}),y.add("areaBackground",function(x,b,E,z,te,re){x.areaBackground=Ll(b,E,te,re,z)}),y.add("opacity",function(x,b,E,z,te,re){x.opacity=z(te,b,E-b,re)}),y.add("scale",function(x,b,E,z,te,re){x.scale=z(te,b,E-b,re)}),y.add("angle",function(x,b,E,z,te,re){x.angle=z(te,b,E-b,re)}),Qu=y}Nt.Object.defineProperties(Ya.prototype,{animationReasons:{get:function(){return this.Zd}},isEnabled:{get:function(){return this.Jd},set:function(a){(this.Jd=a)&&this.Ei.each(function(y){y.isAnimating||y.runCount!==1/0||y.start()})}},duration:{get:function(){return this.Dg},set:function(a){1>a&&Ln(a,">= 1",Ya,"duration"),this.Dg=a}},isAnimating:{get:function(){return this.bc}},isTicking:{get:function(){return this.vq}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a}},defaultAnimation:{get:function(){return this.ce}},activeAnimations:{get:function(){return this.Ei}},initialAnimationStyle:{get:function(){return this.Pk},set:function(a){this.Pk=a}}}),Ya.prototype.stopAnimation=Ya.prototype.Cc;var Qu=null,Iu=!1,lc=new tn(Ya,"Default",1),uc=new tn(Ya,"AnimateLocations",2),Ju=new tn(Ya,"None",3);Ya.className="AnimationManager",Ya.defineAnimationEffect=function(a,y){Iu||(hl(),Iu=!0),Qu.add(a,y)},Ya.Default=lc,Ya.AnimateLocations=uc,Ya.None=Ju;function qa(a){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=cc,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=Rr,this.vc=new Ii,this.Tt=new Ii,this.yl=new Fn,this.Ut=new Fn,this.dw=he,a&&Object.assign(this,a)}qa.prototype.suspend=function(){this.Xk=!0},qa.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,fu(this,!0),Ss(this.Yd),au(this.H),Vs(this.Yd),this.H.redraw()};function bl(a,y){if(a.Tt.clear(),a.Wk=!1,a.au=0,a.Gd=NaN,0<a.yl.count&&a.yl.clear(),0<a.Ut.count&&a.Ut.clear(),y!==null)for(a=y.links;a.next();)a.value.Tg=null}Ue=qa.prototype,Ue.start=function(){if(this.vc.count===0||this.bc)return this;for(var a=this.H,y=this.vc.iterator;y.next();){var x=y.key;a===null&&(x instanceof pn?a=x:x instanceof Rt&&(a=x.diagram))}if(a!==null)this.H=a,this.Yd=a.animationManager;else return this;return y=this.Yd,y.isEnabled===!1?this:(this.Gd=isNaN(this.Dg)?y.duration:this.Dg,this.Lp=this.ot,y.Ok&&y.Pk===lc&&this===y.defaultAnimation&&(this.Lp=dc,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=Me),Ss(y),this.yl.each(function(b){b.data=null,a.add(b)}),Vs(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,Za(y,this),this)},Ue.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},Ue.add=function(a,y,x,b,E){if(y==="position"&&x.Xa(b))return this;if(this.H===null&&(a instanceof pn?this.H=a:a instanceof Rt&&a.diagram!==null&&(this.H=a.diagram)),a instanceof nr){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return Ks(this,a,y,x,b,E),this};function Ks(a,y,x,b,E,z){var te=a.vc;if(y instanceof pn&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&(vh(b),vv(),b=[bc.j,bc.u,bc.o,bc.F],vh(E),vv(),E=[bc.j,bc.u,bc.o,bc.F]),te.contains(y)){var re=te.I(y),le=re.start,ce=re.end;le[x]===void 0&&(le[x]=Es(b)),ce[x]=Es(E)}else le={},ce={},le[x]=Es(b),ce[x]=Es(E),re=le.position,y instanceof Rt&&re instanceof lt&&!re.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&re.assign(ce.position),re=new Mc(le,ce,z),te.add(y,re);te=le[x],te instanceof lt&&!te.w()&&te.assign(a.o),z&&x.indexOf("position:")===0&&y instanceof nr?re.Ku.location=Es(y.location):z&&(re.Ku[x]=Es(b))}function Es(a){return a instanceof lt||a instanceof fi?a.copy():a}Ue.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},Ue.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function fu(a,y){if(!a.Xk||y){var x=a.Yd;if(a.bc!==!1){var b=+new Date,E=b>a.cn?a.Gd:b-a.Qd;y&&(E=a.gw,E<a.Gd?(a.Qd=+new Date-E,a.cn=a.Qd+a.Gd):E=a.Gd),Ss(x),id(a,E),au(a.H,!0),Vs(x),b>a.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function id(a,y){for(var x=a.Gd,b=a.vc.iterator,E=a.Wk;b.next();){var z=b.key;if(!(z instanceof Rt&&z.diagram===null)){var te=b.value,re=E?te.end:te.start;te=E?te.start:te.end;var le=Qu,ce;for(ce in te)ce==="position"&&(te["position:placeholder"]||te["position:nodeCollapse"])||le.get(ce)===null||le.get(ce)(z,re[ce],te[ce],a.Lp,y,x,a)}}}Ue.stop=function(){return this.bc?(this.Ml(!0),this):this},Ue.Ml=function(a){if(this.vu!==null&&this.vu.jo.remove(this.Nw),this.bc){var y=this.H,x=this.Yd;this.Xk=this.bc=x.Ok=!1,Ss(x);for(var b=this.vc,E=this.yl.iterator;E.next();)y.remove(E.value);for(E=this.Ut.iterator;E.next();)E.value.v();E=this.ho,b=b.iterator;for(var z=Qu;b.next();){var te=b.key,re=b.value,le=E?re.end:re.start,ce=E?re.start:re.end,de=re.Ku,ve;for(ve in ce)if(z.get(ve)!==null){var Pe=ve;!re.Hu||Pe!=="position:nodeCollapse"&&Pe!=="position:placeholder"||(Pe="position"),z.get(Pe)(te,le[ve],de[ve]!==void 0?de[ve]:re.Hu?le[ve]:ce[ve],this.Lp,this.Gd,this.Gd,this)}re.Hu&&de.location!==void 0&&te instanceof nr&&(te.location=de.location),re.nv&&te instanceof nr&&te.Zb(!1)}if(y.As.clear(),Hd(y,!1),y.Ya(),y.N(),au(y,!0),x.defaultAnimation===this){for(ve=x.pr.iterator;ve.next();)E=ve.value,E.Tg!==null&&(E.points=E.Tg,E.Tg=null);x.pr.clear()}au(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),Vs(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),bl(this,null),x.Ml(this),y.$b())}},Ue.Cj=function(a,y){var x=y.actualBounds,b=null;if(y instanceof _r&&(b=y.placeholder),b!==null?(x=b.ga(Hs),b=b.padding,x.x+=b.left,x.y+=b.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new lt(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof _r)for(a=a.memberParts;a.next();)b=a.value,b instanceof Li&&this.Cj(b,y)},Ue.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof _r&&(x=y.placeholder),x!==null){var b=x.ga(Hs);x=x.padding,b.x+=x.left,b.y+=x.top,this.add(a,"position:placeholder",a.position,b,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),b=this.vc,b.contains(a)&&(b.I(a).nv=!0),a instanceof _r)for(a=a.memberParts;a.next();)b=a.value,b instanceof Li&&this.Aj(b,y)}},Ue.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},Nt.Object.defineProperties(qa.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&Ln(a,">= 1",qa,"duration"),this.Dg=a}},reversible:{get:function(){return this.ho},set:function(a){this.ho=a}},runCount:{get:function(){return this.cu},set:function(a){0<a?this.cu=a:bt("Animation.runCount value must be a positive integer.")}},finished:{get:function(){return this.dn},set:function(a){this.dn!==a&&(this.dn=a)}},easing:{get:function(){return this.ot},set:function(a){this.ot=a}},isViewportUnconstrained:{get:function(){return this.j},set:function(a){this.j=a}},isAnimating:{get:function(){return this.bc}}}),qa.prototype.getTemporaryState=qa.prototype.Ez,qa.prototype.stop=qa.prototype.stop,qa.prototype.add=qa.prototype.add,qa.prototype.addTemporaryPart=qa.prototype.Iy;function cc(a,y,x,b){return a/=b/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function dc(a,y,x,b){return a===b?y+x:x*(-Math.pow(2,-10*a/b)+1)+y}qa.className="Animation",qa.EaseLinear=function(a,y,x,b){return x*a/b+y},qa.EaseInOutQuad=cc,qa.EaseInQuad=function(a,y,x,b){return x*(a/=b)*a+y},qa.EaseOutQuad=function(a,y,x,b){return-x*(a/=b)*(a-2)+y},qa.EaseInExpo=function(a,y,x,b){return a===0?y:x*Math.pow(2,10*(a/b-1))+y},qa.EaseOutExpo=dc;function Mc(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}Mc.className="AnimationState";function ou(a,y,x){this.xd=null,this.rf=a,this.so=x||Cs,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=wl))}ou.prototype.copy=function(){var a=new ou(this.rf);a.so=this.so;var y=this.uk;if(y!==null){var x={};y.duration!==void 0&&(x.duration=y.duration),y.finished!==void 0&&(x.finished=y.finished),y.easing!==void 0&&(x.easing=y.easing),a.uk=x}return a};function Ua(a,y){a=a.uk,a!==null&&(a.duration&&(y.duration=a.duration),a.finished&&(y.finished=a.finished),a.easing&&(y.easing=a.easing))}Nt.Object.defineProperties(ou.prototype,{propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},animationSettings:{get:function(){return this.uk},set:function(a){this.uk=a}},startCondition:{get:function(){return this.so},set:function(a){this.so=a}}});var Cs=new tn(ou,"Default",1),wl=new tn(ou,"Immediate",2),Ls=new tn(ou,"Bundled",3);ou.className="AnimationTrigger",ou.Default=Cs,ou.Immediate=wl,ou.Bundled=Ls;function _a(a){kr(this),this.H=null,this.Pa=new Ht,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=[],a&&Object.assign(this,a)}Ue=_a.prototype,Ue.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,ha(x)}a.clear(),this.Zq.length=0},Ue.Xe=function(a){this.H=a},Ue.toString=function(a){a===void 0&&(a=0);var y='Layer "'+this.name+'"';if(0>=a)return y;for(var x=0,b=0,E=0,z=0,te=0,re=this.Pa.iterator;re.next();){var le=re.value;le instanceof _r?E++:le instanceof Li?b++:le instanceof yi?z++:le instanceof zo?te++:x++}if(re="",0<x&&(re+=x+" Parts "),0<b&&(re+=b+" Nodes "),0<E&&(re+=E+" Groups "),0<z&&(re+=z+" Links "),0<te&&(re+=te+" Adornments "),1<a)for(a=this.Pa.iterator;a.next();)x=a.value,re+=`
`+x.toString(),b=x.data,b!==null&&Dr(b)&&(re+=" #"+Dr(b)),x instanceof Li?re+=" "+Vn(b):x instanceof yi&&(re+=" "+Vn(x.fromNode)+" "+Vn(x.toNode));return y+" "+this.Pa.count+": "+re},Ue.ic=function(a,y,x){if(y===void 0&&(y=null),x===void 0&&(x=null),this.Uh===!1)return null;var b=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(b=!0);for(var E=lt.alloc(),z=this.Pa.s,te=z.length;te--;){var re=z[te];if((b!==!0||fg(re)!==!1)&&re.isVisible()&&(E.assign(a),ao(E,re.oe),re=re.ic(E,y,x),re!==null&&(y!==null&&(re=y(re)),re!==null&&(x===null||x(re)))))return lt.free(E),re}return lt.free(E),null},Ue.ji=function(a,y,x,b){if(y===void 0&&(y=null),x===void 0&&(x=null),b instanceof Ht||b instanceof Fn||(b=new Fn),this.Uh===!1)return b;var E=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(E=!0);for(var z=lt.alloc(),te=this.Pa.s,re=te.length;re--;){var le=te[re];if((E!==!0||fg(le)!==!1)&&le.isVisible()){z.assign(a),ao(z,le.oe);var ce=le;le.ji(z,y,x,b)&&(y!==null&&(ce=y(ce)),ce===null||x!==null&&!x(ce)||b.add(ce))}}return lt.free(z),b},Ue.Cf=function(a,y,x,b,E){if(y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof Ht||E instanceof Fn||(E=new Fn),this.Uh===!1)return E;var z=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(a)&&(z=!0);for(var te=this.Pa.s,re=te.length;re--;){var le=te[re];if((z!==!0||fg(le)!==!1)&&le.isVisible()){var ce=le;le.Cf(a,y,x,b,E)&&(y!==null&&(ce=y(ce)),ce===null||x!==null&&!x(ce)||E.add(ce))}}return E},Ue.Nu=function(a,y,x,b,E,z,te){if(this.Uh===!1)return E;for(var re=this.Pa.s,le=re.length;le--;){var ce=re[le];if((te!==!0||fg(ce)!==!1)&&z(ce)&&ce.isVisible()){var de=ce;ce.Cf(a,y,x,b,E)&&(y!==null&&(de=y(de)),de===null||x!==null&&!x(de)||E.add(de))}}return E},Ue.og=function(a,y,x,b,E,z){if(x===void 0&&(x=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof Ht||E instanceof Fn)&&(z=E),E=!0),z instanceof Ht||z instanceof Fn||(z=new Fn),this.Uh===!1)return z;var te=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(te=!0);for(var re=lt.alloc(),le=lt.alloc(),ce=this.Pa.s,de=ce.length;de--;){var ve=ce[de];if((te!==!0||fg(ve)!==!1)&&ve.isVisible()){re.assign(a),ao(re,ve.oe),le.h(a.x+y,a.y),ao(le,ve.oe);var Pe=ve;ve.og(re,le,x,b,E,z)&&(x!==null&&(Pe=x(Pe)),Pe===null||b!==null&&!b(Pe)||z.add(Pe))}}return lt.free(re),lt.free(le),z},Ue.Fd=function(a,y){if(this.visible){var x=this.Pa.s,b=x.length;if(b!==0){a=gn();for(var E=gn(),z=0;z<b;z++){var te=x[z];if(te.vw=z,te instanceof yi){if(te.fd===!1)continue}else if(te instanceof zo&&te.adornedPart!==null)continue;var re=te.actualBounds;te.isVisible()&&aa(re,y)?(te.Fd(!0),a.push(te)):(te.Fd(!1),te.adornments!==null&&0<te.adornments.count&&E.push(te))}for(y=0;y<a.length;y++)for(x=a[y],Vv(x),x=x.adornments;x.next();)b=x.value,b.measure(1/0,1/0),b.arrange(),b.Fd(!0);for(y=0;y<E.length;y++)Vv(E[y]);kn(a),kn(E)}}};function gl(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}Ue.gc=function(a,y,x){if(this.visible&&this.pb!==0&&(x===void 0&&(x=!0),x||!this.isTemporary)){x=this.Pa.s;var b=x.length;if(b!==0){if(a.isTemporary)for(var E=0;E<b;E++)x[E].Gj();E=gl(this,a);var z=this.Zq;z.length=0;for(var te=y.scale,re=jn.alloc(),le=0;le<b;le++)this.Oj(a,x[le],y,z,te,re,!0);if(jn.free(re),a.isTemporary)for(y=0;y<b;y++)x[y].Gj();a.globalAlpha=E}}};function pu(a,y,x,b,E){if(a.visible&&a.pb!==0&&(E||!a.isTemporary)){E=a.Pa.s;var z=E.length;if(z!==0){var te=gl(a,y),re=a.Zq;re.length=0;for(var le=x.scale,ce=jn.alloc(),de=0;de<z;de++){var ve=E[de];b.contains(ve)&&a.Oj(y,ve,x,re,le,ce,!1)}jn.free(ce),y.globalAlpha=te}}}Ue.Oj=function(a,y,x,b,E,z,te){if(te&&!fg(y))a.Hs(y);else{if(b!==null&&y instanceof yi&&(y.isOrthogonal&&b.push(y),y.fd===!1)){a.Hs(y);return}for(te=!1,b=y.containingGroup;b!==null;)te?b.tb!==null&&z.Ex(b.tb):b.tb!==null&&(te=!0,z.assign(b.tb)),b=b.containingGroup;var re=y.actualBounds;if(b=!1,te&&y.isVisible()){if(!z.Yc(re)){a.Hs(y);return}b=!z.Re(re)}b&&(a.save(),a instanceof Uu?a.bk=z.copy():(a.beginPath(),a.rect(z.x,z.y,z.width,z.height),a.clip())),re.width*E>x.Oq||re.height*E>x.Oq?y.gc(a,x):(E=y.actualBounds,z=y.naturalBounds,E.width===0||E.height===0||isNaN(E.x)||isNaN(E.y)||!y.isVisible()||(x=y.transform,y.areaBackground!==null&&(Ca(y,a,y.areaBackground,!0,!0,z,E),a.fillRect(E.x,E.y,E.width,E.height)),y.areaBackground===null&&y.background===null&&(Ca(y,a,"rgba(0,0,0,0.3)",!0,!1,z,E),a.fillRect(E.x,E.y,E.width,E.height)),y.background!==null&&(a.transform(x.m11,x.m12,x.m21,x.m22,x.dx,x.dy),Ca(y,a,y.background,!0,!1,z,E),a.fillRect(0,0,z.width/2,z.height/2),x.ws()||(y=1/(x.m11*x.m22-x.m12*x.m21),a.transform(x.m22*y,-x.m12*y,-x.m21*y,x.m11*y,y*(x.m21*x.dy-x.m22*x.dx),y*(x.m12*x.dx-x.m11*x.dy)))))),b&&(a.restore(),a.Vc(!0))}},Ue.g=function(a,y,x,b,E){var z=this.diagram;z!==null&&z.cb(Ma,a,this,y,x,b,E)},Ue.oi=function(a,y,x){var b=this.Pa;if(y.Ig=this,this===null&&ha(y),a>=b.count)a=b.count;else if(b.M(a)===y)return-1;return b.Gb(a,y),y.Vo(x),b=this.diagram,b!==null&&(x?b.N():b.oi(y)),qu(this,a,y),a},Ue.pc=function(a,y,x){if(!x&&y.layer!==this&&y.layer!==null)return y.layer.pc(a,y,x);var b=this.Pa;if(0>a||a>=b.length){if(a=b.indexOf(y),0>a)return-1}else if(b.M(a)!==y&&(a=b.indexOf(y),0>a))return-1;return y.Wo(x),b.mb(a),b=this.diagram,b!==null&&(x?b.N():b.pc(y)),y.Ig=null,ha(y),a};function qu(a,y,x){if(y=sh(a,y,x),x instanceof _r&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var b=-1,E=a.Pa.s,z=E.length,te=0;te<z;te++){var re=E[te];if(re===x&&(y=te,0<=b)||0>b&&re.containingGroup===x&&(b=te,0<=y))break}!(0>b)&&b<y&&(E=a.Pa,E.mb(y),E.Gb(b,x))}y=x.containingGroup,y!==null&&qu(a,-1,y)}x.svg!==null&&x.svg.remove()}function sh(a,y,x){var b=x.zOrder;if(isNaN(b))return y;a=a.Pa;var E=a.count;if(1>=E)return y;if(0>y&&(y=a.indexOf(x)),0>y)return-1;for(var z=y-1,te=NaN;0<=z&&(te=a.M(z).zOrder,!!isNaN(te));)z--;for(var re=y+1,le=NaN;re<E&&(le=a.M(re).zOrder,!!isNaN(le));)re++;if(!isNaN(te)&&te>b)for(;;){if(z===-1||te<=b){if(z++,z===y)break;return a.mb(y),a.Gb(z,x),z}for(te=NaN;0<=--z&&(te=a.M(z).zOrder,isNaN(te)););}else if(!isNaN(le)&&le<b)for(;;){if(re===E||le>=b){if(re--,re===y)break;return a.mb(y),a.Gb(re,x),re}for(le=NaN;++re<E&&(le=a.M(re).zOrder,isNaN(le)););}return y}Nt.Object.defineProperties(_a.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(a){var y=this.xa;if(y!==a){var x=this.diagram;if(x!==null)for(y===""&&bt("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&bt("Layer.name is already present in this diagram: "+a);for(this.xa=a,this.g("name",y,a),a=this.Pa.iterator;a.next();)a.value.layerName=this.xa}}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&Ln(a,"0 <= value <= 1",_a,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,a!==null&&a.N())}},isTemporary:{get:function(){return this.o},set:function(a){var y=this.o;y!==a&&((this.o=a)&&(this.isInDocumentBounds=!1),this.g("isTemporary",y,a))}},visible:{get:function(){return this.u},set:function(a){var y=this.u;if(y!==a){for(this.u=a,this.g("visible",y,a),y=this.Pa.iterator;y.next();)y.value.Zb(a);a=this.diagram,a!==null&&a.N()}}},pickable:{get:function(){return this.Uh},set:function(a){var y=this.Uh;y!==a&&(this.Uh=a,this.g("pickable",y,a))}},isInDocumentBounds:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a,this.diagram!==null&&this.diagram.Ya())}},allowCopy:{get:function(){return this.Fi},set:function(a){var y=this.Fi;y!==a&&(this.Fi=a,this.g("allowCopy",y,a))}},allowDelete:{get:function(){return this.Gi},set:function(a){var y=this.Gi;y!==a&&(this.Gi=a,this.g("allowDelete",y,a))}},allowTextEdit:{get:function(){return this.Pi},set:function(a){var y=this.Pi;y!==a&&(this.Pi=a,this.g("allowTextEdit",y,a))}},allowGroup:{get:function(){return this.Hi},set:function(a){var y=this.Hi;y!==a&&(this.Hi=a,this.g("allowGroup",y,a))}},allowUngroup:{get:function(){return this.Qi},set:function(a){var y=this.Qi;y!==a&&(this.Qi=a,this.g("allowUngroup",y,a))}},allowLink:{get:function(){return this.Ii},set:function(a){var y=this.Ii;y!==a&&(this.Ii=a,this.g("allowLink",y,a))}},allowRelink:{get:function(){return this.Ki},set:function(a){var y=this.Ki;y!==a&&(this.Ki=a,this.g("allowRelink",y,a))}},allowMove:{get:function(){return this.Ji},set:function(a){var y=this.Ji;y!==a&&(this.Ji=a,this.g("allowMove",y,a))}},allowReshape:{get:function(){return this.Li},set:function(a){var y=this.Li;y!==a&&(this.Li=a,this.g("allowReshape",y,a))}},allowResize:{get:function(){return this.Mi},set:function(a){var y=this.Mi;y!==a&&(this.Mi=a,this.g("allowResize",y,a))}},allowRotate:{get:function(){return this.Ni},set:function(a){var y=this.Ni;y!==a&&(this.Ni=a,this.g("allowRotate",y,a))}},allowSelect:{get:function(){return this.Oi},set:function(a){var y=this.Oi;y!==a&&(this.Oi=a,this.g("allowSelect",y,a))}}}),_a.prototype.findObjectsNear=_a.prototype.og,_a.prototype.findObjectsIn=_a.prototype.Cf,_a.prototype.findObjectsAt=_a.prototype.ji,_a.prototype.findObjectAt=_a.prototype.ic,_a.className="Layer";function pn(a,y){if($n||(Cn(),$n=!0),kr(this),Lc=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,ls){var x=this,b=function(){x.removeEventListener(yt.document,"DOMContentLoaded",b,!1),x.setRTL()};yt.document.body!==null?this.setRTL():x.addEventListener(yt.document,"DOMContentLoaded",b,!1)}this.ol=null,Wg.add("Model",na);var E=this;return this.Hb=function(z){var te=E.partManager;if(z.model===te.diagram.model&&te.diagram.aa){te.diagram.aa=!1;try{var re=z.change;z.modelChange===""&&re===Ma&&te.updateDataBindings(z.object,z.propertyName)}finally{te.diagram.aa=!0}}},this.Oc=function(z){E.partManager.doModelChanged(z)},this.hu=this.ku=null,_d(this),this.model=by(),this.Wg=!0,lh(this),this.layout=new Wa,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 ci,a!==void 0&&(typeof a=="string"||yt.Element&&a instanceof Element?Lh(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var rd,Lc;function _d(a){a.Yd=new Ya,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new Ht,a.pj=new Ii,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new lt(NaN,NaN).freeze(),a.du=new lt(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new lt(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new fr,a.zu=new lt(NaN,NaN).freeze(),a.ut=new jn(NaN,NaN,NaN,NaN).freeze(),a.rj=new $i(0,0,0,0).freeze(),a.sj=he,a.nu=!1,a.Zt=null,a.fu=null,a.yh=Xl,a.zk=Vr,a.Fg=Xl,a.pq=Vr,a.yt=Hs,a.Bt=Hs,a.Fc=!0,a.pn=!1,a.De=new Fn,a.Eh=new Ii,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new $i(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new Sl,a.bq.diagram=a,a.Qg=new Sl,a.Qg.diagram=a,a.cj=new Sl,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,Lp(a),a.ai=new Fn,a.Ht=!0,a.uu=Re,a.pw=!1,a.wu=ug,a.it="auto",a.Op="auto",a.zh=null,a.Fh=null,a.Bh=null,a.Qh=null,a.Oh=null,a.Nh=null,a.Qt=null,a.Lh=null,a.xt=!1,a.Mh=null,a.Ph=null,a.$h=null,a.Ch=null,a.Rt=!1,a.Yt={},a.oj=[null,null],a.Wg=!1,a.Iw=!1,a.ou=!1,a.lt=!1,a.rw=!0,a.ld=!1,a.$i=!1,a.Tw=!0,a.Ce=-2,a.Og=new Ii,a.Xn=new Ht,a.Gg=!1,a.Jd=!0,a.Us=!0,a.Fi=!0,a.Gi=!0,a.Vs=!1,a.Ws=!0,a.Pi=!0,a.Hi=!0,a.Qi=!0,a.Ys=!0,a.Ii=!0,a.Ki=!0,a.Ji=!0,a.Li=!0,a.Mi=!0,a.Ni=!0,a.Oi=!0,a.Zs=!0,a.at=!0,a.qw=!1,a.Vk=!1,a.mn=!0,a.nn=!0,a.Xs=!0,a.$s=!0,a.iu=16,a.mu=16,a.qr=!1,a.gu=!1,a.lu=0,a.ju=0,a.yb=new $i(5).freeze(),a.Hw=new Fn().freeze(),a.Nt=999999999,a.nw=new Fn().freeze(),a.Zi=!0,a.Ee=!0,a.vd=!0,a.Be=!1,a.gf=!1,a.xh=!0,a.hf=!1,a.sy=new Fn,a.ow=new Fn,a.Xh=null,a.aw=new fi(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new lt,bounds:new jn,Py:new fi,bA:new fi,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new jn(NaN,NaN,NaN,NaN).freeze(),a.wo=new fi(NaN,NaN).freeze(),a.Sp=new jn(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new Ii;var y=new Li,x=new Pa;x.bind(new Us("text","",Vn)),y.add(x),a.ny=y,a.Lg.add("",y),y=new Li,x=new Pa,x.stroke="brown",x.bind(new Us("text","",Vn)),y.add(x),a.Lg.add("Comment",y),y=new Li,y.selectable=!1,y.avoidable=!1,x=new eo,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new fi(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new Ii,y=new _r,y.selectionObjectName="GROUPPANEL",y.type=hi.Vertical,x=new Pa,x.font="bold 12pt sans-serif",x.bind(new Us("text","",Vn)),y.add(x),x=new hi(hi.Auto),x.name="GROUPPANEL";var b=new eo;b.figure="Rectangle",b.fill="rgba(128,128,128,0.2)",b.stroke="black",x.add(b),b=new wu,b.padding=new $i(5,5,5,5).ja(),x.add(b),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new Ii,y=new yi,x=new eo,x.isPanelMain=!0,y.add(x),x=new eo,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new yi,x=new eo,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new zo,y.type=hi.Auto,x=new eo,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new wu,x.margin=new $i(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new zo,y.type=hi.Link,x=new eo,x.isPanelMain=!0,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),a.Kt=y,a.fe=null,a.mq=!1,a.Ck=null,a.partManager=new na,a.toolManager=new pa,a.toolManager.initializeStandardTools(),a.defaultTool=a.toolManager,a.currentTool=a.defaultTool,a.nt=null,a.Wm=new ae,a.Vt=null,a.Wt=null,a.Mr=!1,a.commandHandler=kd(),a.eq=null,a.fq=Mr,a.Pw=!1,a.Mb=1,a.Yh=null,a.Oq=1,a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0,a.yq=1,a.tw=0,a.uw=new lt,a.zy=500,a.wp=new lt,a.wq=!1}pn.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),Bh=null,Kd="",Gd(this,!1),this.Xn.clear(),ep(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function Gd(a,y){a.animationManager.Cc(!0),a.Hw=new Fn().freeze(),a.nw=new Fn().freeze();var x=a.skipsUndoManager,b=a.cc!==null&&a.cc!==void 0;b&&(a.skipsUndoManager=!0);var E=null;a.fe!==null&&(E=a.fe.part,E!==null&&a.remove(E));var z=[],te=a.Wa.length;if(y){for(y=0;y<te;y++)for(var re=a.Wa.s[y].parts;re.next();){var le=re.value;le!==E&&le.data===null&&z.push(le)}for(y=0;y<z.length;y++)a.remove(z[y])}for(y=0;y<te;y++)a.Wa.s[y].clear();return a.partManager.clear(),a.De.clear(),a.Eh.clear(),a.ai.clear(),a.Ck=null,a.Xn.clear(),ep(),a.Og.clear(),zi=[],E!==null&&(a.add(E),a.partManager.parts.remove(E)),b&&(a.skipsUndoManager=x),z}function kd(){return null}pn.prototype.reset=function(){this.clear(),this.vb=!0,_d(this),sd(this),this.Wg=!0,lh(this),this.layout=new Wa,this.Wg=!1,this.model=by(),this.model.undoManager=new ya,this.vb=this.rn=!1,this.N()},pn.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=yt.document.body);var y=Rn("div");y.dir="rtl",y.style.cssText="font-size: 14px; width: 1px; height: 1px; position: absolute; top: -1000px; overflow: scroll;",y.textContent="A",a.appendChild(y);var x="reverse";0<y.scrollLeft?x="default":(y.scrollLeft=1,y.scrollLeft===0&&(x="negative")),a.removeChild(y),this.bu=x},pn.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=yt.document.body);var y=0;if(ls){var x=_f;y=rd,x===null&&(x=_f=Rn("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=rd=Rn("div"),y.style.position="absolute",y.style.visibility="hidden",y.style.width="200px",y.style.height="150px",y.style.boxSizing="content-box",y.appendChild(x)),y.style.overflow="hidden",a.appendChild(y);var b=x.offsetWidth;y.style.overflow="scroll",x=x.offsetWidth,b===x&&(x=y.clientWidth),a.removeChild(y),y=b-x,y!==0||ir||(y=11)}this.Db=y,this.Gw=!0},pn.prototype.qb=function(a){a.classType===pn&&(this.autoScale=a)},pn.prototype.toString=function(a){a===void 0&&(a=0);var y="";if(this.div&&this.div.id&&(y=this.div.id),y='Diagram "'+y+'"',0>=a)return y;for(var x=this.Wa.iterator;x.next();)y+=`
`+x.value.toString(a-1);return y};function Lh(a,y){if(ls){if(y!=null||bt("Diagram setup requires an argument DIV."),a.Ka!==null&&bt("Diagram has already completed setup."),typeof y=="string"?a.Ka=yt.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:bt("No DIV or DIV id supplied: "+y),a.Ka===null&&bt("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&bt("Invalid div id; div already has a Diagram associated with it."),!a.ol&&yt.ResizeObserver){var x=zn(function(){a.$b()},250);a.ol=new yt.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}yt.getComputedStyle(a.Ka,null).position==="static"&&(a.Ka.style.position="relative"),y=5;var b="rgba(2"+y+"5, 255, 255, 0)";y--,a.Ka.style["-webkit-tap-highlight-color"]=b,a.Ka.innerHTML="",a.Ka.H=a,a.Ka.goDiagram=a,a.Ka.go=yt.go;var E=new Oa(a);if(E.style!==void 0&&(E.style.position="absolute",E.style.top="0px",E.style.left="0px",yt.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),E.style.zIndex="2",E.style.userSelect="none",E.style.MozUserSelect="none",E.style.touchAction="none",E.style.letterSpacing="normal !important",E.style.wordSpacing="normal !important"),a.ta=E,a.ib=E.context,b=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),dh(a,a.Aa,a.ya),a.Ka.insertBefore(E.Oa,a.Ka.firstChild),E=new Oa(null),E.width=1,E.height=1,a.jw=E,a.oy=E.context,ls){E=Rn("div");var z=Rn("div");E.style.position="absolute",E.style.overflow="auto",E.style.width=a.Aa+"px",E.style.height=a.ya+"px",E.style.zIndex="1",z.style.position="absolute",z.style.width="1px",z.style.height="1px",a.Ka.appendChild(E),E.appendChild(z),E.onscroll=Og,E.addEventListener("pointerdown",og),E.H=a,E.uy=!0,E.vy=!0,a.ku=E,a.hu=z}a.hk=zn(function(){a.Yh=null,a.N()},300),a.Ov=zn(function(){Th(a)},250),a.preventDefault=function(te){return te.preventDefault(),!1},a.$j=function(te){if(a.isEnabled){var re=vu(a,te,!0);re.bubbles=!0;var le=0,ce=0;re.delta=0,te.deltaX!==void 0?(te.deltaX!==0&&(le=0<te.deltaX?1:-1),te.deltaY!==0&&(ce=0<te.deltaY?1:-1),re.delta=Math.abs(te.deltaX)>Math.abs(te.deltaY)?-le:-ce):te.wheelDeltaX!==void 0?(te.wheelDeltaX!==0&&(le=0<te.wheelDeltaX?-1:1),te.wheelDeltaY!==0&&(ce=0<te.wheelDeltaY?-1:1),re.delta=Math.abs(te.wheelDeltaX)>Math.abs(te.wheelDeltaY)?-le:-ce):te.wheelDelta!==void 0&&te.wheelDelta!==0&&(re.delta=0<te.wheelDelta?1:-1),a.doMouseWheel(),Du(re,te)}},a.aA=function(te){a.isEnabled&&(a.Vk=!1,vu(a,te,!0),te=a.currentTool,te.cancelWaitAfter(),te.standardMouseOver())},a.ui=function(te){if(a.isEnabled){a.Vk=!0;var re=a.Yt;re[te.pointerId]===void 0&&(re[te.pointerId]=te),re=a.oj;var le=!1;if(re[0]===null||re[0].pointerId!==te.pointerId&&re[0].pointerType===te.pointerType)if(re[1]!==null&&re[1].pointerId===te.pointerId)re[1]=te,le=!0;else if(re[0]===null)re[0]=te;else if(re[1]===null)re[1]=te,le=!0;else{te.preventDefault();return}else re[0]=te;(re=te.pointerType==="touch"||te.pointerType==="pen")&&(a.qu=!1,a.wq=!0);var ce=le;le=kh(a,te,!0,!1,!0,ce),Vd(a,te,le),le.targetDiagram=uh(te,te.target),le.targetObject=null,ce||le.clone(a.bq),ce=a.uw,re=re?25:10,te.timeStamp-a.tw<a.zy&&!(Math.abs(ce.x-te.screenX)>re||Math.abs(ce.y-te.screenY)>re)?a.yq++:a.yq=1,le.clickCount=a.yq,a.tw=te.timeStamp,a.uw.sg(te.screenX,te.screenY),a.doMouseDown(),te.button===1?te.preventDefault():Du(le,te)}},a.dk=function(te){if(a.isEnabled){a.Vk=!0;var re=a.oj;if(re[0]===null||re[0].pointerId!==te.pointerId&&re[0].pointerType===te.pointerType){if(re[1]!==null&&re[1].pointerId===te.pointerId){re[1]=te;return}if(re[0]===null)re[0]=te;else return}else re[0]=te;if(re[0].pointerId===te.pointerId){re=kh(a,te,!1,!1,!1,re[1]!==null);var le=yt.document.elementFromPoint(te.clientX,te.clientY)||null;le!==null&&le.shadowRoot!==void 0&&le.shadowRoot!==null&&(le=le.shadowRoot.elementFromPoint(te.clientX,te.clientY));var ce=a,de=te;le&&le.H&&(de=te,ce=le.H),re.targetDiagram=ce,Vd(a,de,re),re.targetObject=null,a.doMouseMove(),Du(re,te)}}},a.fk=function(te){if(a.isEnabled){a.Vk=!0;var re=te.pointerType==="touch"||te.pointerType==="pen",le=a.Yt;if(re&&a.qu)delete le[te.pointerId],te.preventDefault();else if(le=a.oj,le[0]===null||le[0].pointerId!==te.pointerId&&le[0].pointerType===te.pointerType)le[1]!==null&&le[1].pointerId===te.pointerId&&(le[1]=null);else{le[0]=null,le=kh(a,te,!1,!0,!0,!1);var ce=yt.document.elementFromPoint(te.clientX,te.clientY)||null;ce!==null&&ce.shadowRoot!==void 0&&ce.shadowRoot!==null&&(ce=ce.shadowRoot.elementFromPoint(te.clientX,te.clientY)),ce!==null&&ce.H instanceof pn&&ce.H!==a&&Vd(ce.H,te,le),ce===null&&(ce=te.target),Vd(a,te,le),le.clickCount=a.yq,le.targetDiagram=uh(te,ce),le.targetObject=null,a.doMouseUp(),Du(le,te),re&&(a.wq=!1)}}},a.ek=function(te){if(a.isEnabled){a.Vk=!1;var re=a.Yt;re[te.pointerId]&&delete re[te.pointerId],re=a.oj,re[0]!==null&&re[0].pointerId===te.pointerId&&(re[0]=null),re[1]!==null&&re[1].pointerId===te.pointerId&&(re[1]=null),te.pointerType!=="touch"&&te.pointerType!=="pen"&&(te=a.currentTool,te.cancelWaitAfter(),te.standardMouseOver())}},a.ck=function(te){var re=a.oj;re[0]!==null&&re[0].pointerId===te.pointerId?(re[0]=null,a.wq=!1):re[1]!==null&&re[1].pointerId===te.pointerId&&(re[1]=null)},a.Vp=b.Z["d"+Ur[1]+Ur[2]+"wI"+Jt.slice(1,5)]["b"+_1.slice(1,y)](b.Z,Tn,y,y),b.Vc(!0),cf(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}pn.prototype.addEventListener=function(a,y,x,b){a.addEventListener(y,x,{capture:b,passive:!1})},pn.prototype.removeEventListener=function(a,y,x,b){a.removeEventListener(y,x,{capture:b})};function cf(a){var y=a.ta.Oa;y instanceof HTMLCanvasElement||(y=a.div),a.addEventListener(y,"pointerdown",a.ui,!1),a.addEventListener(y,"pointermove",a.dk,!1),a.addEventListener(y,"pointerup",a.fk,!1),a.addEventListener(y,"pointerout",a.ek,!1),a.addEventListener(y,"pointercancel",a.ck,!1),a.addEventListener(y,"pointerenter",a.bz,!1),a.addEventListener(y,"pointerleave",a.cz,!1),a.addEventListener(y,"wheel",a.$j,!1),a.addEventListener(y,"keydown",a.Qz,!1),a.addEventListener(y,"keyup",a.Rz,!1),a.addEventListener(y,"blur",a.Ny,!1),a.addEventListener(y,"focus",a.Oy,!1),a.addEventListener(y,"selectstart",function(x){return x.preventDefault(),!1},!1),a.addEventListener(y,"contextmenu",function(x){return x.preventDefault(),!1},!1),a.addEventListener(yt,"resize",a.Ov,!1)}function Gl(a){30<a.Sq&&(a.Yh=1)}function Hd(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),hr&&hr.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}pn.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:yt.devicePixelRatio||1},pn.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},pn.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},pn.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},pn.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},pn.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},pn.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},pn.prototype.doFocus=function(){this.focus()},pn.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=yt.scrollX||yt.pageXOffset,y=yt.scrollY||yt.pageYOffset;this.ta.focus(),yt.scrollTo(a,y)}},pn.prototype.Oy=function(){this.H.R("GainedFocus")},pn.prototype.Ny=function(){this.H.R("LostFocus")};function Th(a){if(a.ta!==null){var y=a.Ka;if(y!==null&&y.clientWidth!==0&&y.clientHeight!==0){a.Gw||a.setScrollWidth();var x=a.gf?a.Db:0,b=a.Be?a.Db:0,E=a.Mb;a.Mb=a.computePixelRatio(),a.Mb!==E&&(a.pn=!0,a.$b()),(y.clientWidth!==a.Aa+x||y.clientHeight!==a.ya+b)&&(a.Ee=!0,a.Fc=!0,y=a.layout,y!==null&&y.isViewportSized&&a.autoScale===Xl&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function lh(a){var y=new _a;y.name="Background",a.Al(y),y=new _a,y.name="",a.Al(y),y=new _a,y.name="Foreground",a.Al(y),y=new _a,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new _a,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new _a,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function rg(a){var y=new hi(hi.Grid);y.name="GRID";var x=new eo;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new eo,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new eo,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new eo,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new eo,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new eo,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new nr,x.add(y),x.layerName="Grid",x.zOrder=0,x.isInDocumentBounds=!1,x.isAnimated=!1,x.pickable=!1,x.locationObjectName="GRID",a.add(x),a.partManager.parts.remove(x),y.visible=!1,y}function Og(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):Sd(this.H)}function og(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):Sd(this.H)}pn.prototype.kx=function(a){if(this.ta!==null){var y=this.ku,x=this.hu;this.qr=!0;var b=this.documentBounds,E=this.viewportBounds,z=this.rj,te=b.x-z.left,re=b.y-z.top,le=b.width+z.left+z.right,ce=b.height+z.top+z.bottom,de=b.right+z.right;z=b.bottom+z.bottom;var ve=E.x;b=E.y;var Pe=E.width,Le=E.height,Fe=E.right,Ze=E.bottom;E=this.scale;var pt=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":pt=pt+a.scrollWidth-a.clientWidth;break;case"reverse":pt=a.scrollWidth-pt-a.clientWidth}var at=pt;Pe<le||Le<ce?(pt=lt.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==at&&(pt.x=at/E+te,this.ju=at),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(pt.y=a.scrollTop/E+re,this.lu=a.scrollTop),this.position=pt,lt.free(pt),this.Ee=this.qr=!1):(pt=lt.alloc(),a.uy&&this.allowHorizontalScroll&&(te<ve&&(this.position=pt.h(at+te,this.position.y)),de>Fe&&(this.position=pt.h(-(y.scrollWidth-this.Aa)+at-this.Aa/E+de,this.position.y))),a.vy&&this.allowVerticalScroll&&(re<b&&(this.position=pt.h(this.position.x,a.scrollTop+re)),z>Ze&&(this.position=pt.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/E+z))),lt.free(pt),this.vd=!0,this.Ee=this.qr=!1,b=this.documentBounds,E=this.viewportBounds,de=b.right,Fe=E.right,z=b.bottom,Ze=E.bottom,te=b.x,ve=E.x,re=b.y,b=E.y,Pe>=le&&te>=ve&&de<=Fe&&(x.style.width="1px"),Le>=ce&&re>=b&&z<=Ze&&(x.style.height="1px"))}},pn.prototype.computeBounds=function(a){return a===void 0&&(a=new jn),El(this),Wd(this,a)};function Wd(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var x=!0,b=a.Wa.s,E=b.length,z=0;z<E;z++){var te=b[z];if(te.visible&&te.isInDocumentBounds){te=te.Pa.s;for(var re=te.length,le=0;le<re;le++){var ce=te[le];ce.isInDocumentBounds&&ce.isVisible()&&(ce=ce.actualBounds,ce.w()&&(x?(x=!1,y.assign(ce)):y.ed(ce)))}}}return x&&y.h(0,0,0,0),y.Co(a.yb),y}pn.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(yn(a))for(var b=0;b<a.length;b++){var E=a[b];!y&&E instanceof yi||(E.Va(),x===null?x=E.actualBounds.copy():x.ed(E.actualBounds))}else for(a=a.iterator;a.next();)b=a.value,!y&&b instanceof yi||(b.Va(),x===null?x=b.actualBounds.copy():x.ed(b.actualBounds));return x===null?new jn(NaN,NaN,0,0):x};function ku(a,y){if((y||a.hf)&&!a.vb&&a.ta!==null&&a.documentBounds.w()){if(a.vb=!0,y){var x=a.initialPosition;if(x.w()){a.vb=!1,a.position=x;return}x=lt.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var b=a.viewportBounds;b=jn.allocAt(0,0,b.width,b.height);var E=lt.alloc();E.xi(b,a.initialViewportSpot),E.h(x.x-E.x,x.y-E.y),a.position=E,jn.free(b),lt.free(E),lt.free(x)}x=a.yh,y&&a.Fg!==Xl&&(x=a.Fg);var z=x!==Xl?Zd(a,x):a.scale;x=a.pa.x,b=a.pa.y,E=a.Aa/z;var te=a.ya/z,re=a.zk,le=a.pq;y&&!re.sb()&&(le.sb()||le.Xb())&&(re=le.Xb()?wo:le),Ih(a,a.documentBounds,E,te,re,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,Wt.B(z.x,x)&&Wt.B(z.y,b)&&Wt.B(z.width,E)&&Wt.B(z.height,te)||a.onViewportBoundsChanged(new jn(x,b,E,te),z,y,!1)}}function Zd(a,y){var x=a.Pp;if(a.ta===null)return x;a.Va();var b=a.documentBounds;if(!b.w())return x;var E=b.width;b=b.height;var z=a.Aa+(a.gf?a.Db:0),te=a.ya+(a.Be?a.Db:0),re=z/E,le=te/b;return y===Ru?(y=Math.min(le,re),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===mh?(y=le>re?(te-a.Db)/b:(z-a.Db)/E,y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):a.scale}pn.prototype.zoomToFit=function(){var a=this.sj;this.sj=he,this.scale=Zd(this,Ru),a!==he&&(ku(this,!1),Ih(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},Ue=pn.prototype,Ue.BA=function(a,y){y===void 0&&(y=Ru);var x=a.width,b=a.height;if(!(x===0||b===0||isNaN(x)&&isNaN(b))){var E=1;if(y===Ru||y===mh)if(isNaN(x))E=this.viewportBounds.height*this.scale/b;else if(isNaN(b))E=this.viewportBounds.width*this.scale/x;else{E=this.Aa;var z=this.ya;E=y===mh?z/b>E/x?(z-(this.Be?this.Db:0))/b:(E-(this.gf?this.Db:0))/x:Math.min(z/b,E/x)}this.scale=E,this.position=new lt(a.x,a.y)}},Ue.Jy=function(a,y){this.Va();var x=this.documentBounds,b=this.viewportBounds;this.position=new lt(x.x+(a.x*x.width+a.offsetX)-(y.x*b.width-y.offsetX),x.y+(a.y*x.height+a.offsetY)-(y.y*b.height-y.offsetY))},Ue.zz=function(a){if(a instanceof Rt){this.eq=a;var y=lt.alloc();this.fq=this.op(a.ga(Hs,y)),lt.free(y)}else this.eq=null,this.fq=Mr};function Ih(a,y,x,b,E,z){var te=lt.allocAt(a.pa.x,a.pa.y),re=te.x,le=te.y;if(a.eq!==null){var ce=lt.alloc();ce=a.eq.ga(Hs,ce),re=ce.x-a.fq.x/a.scale,le=ce.y-a.fq.y/a.scale,E=is,lt.free(ce)}(z||a.scrollMode===he)&&(E.sb()&&(x>y.width&&(re=y.x+(E.x*y.width+E.offsetX)-(E.x*x-E.offsetX)),b>y.height&&(le=y.y+(E.y*y.height+E.offsetY)-(E.y*b-E.offsetY))),E=a.rj,z=x-y.width,x<y.width+E.left+E.right?(re=Math.min(re+x/2,y.right+Math.max(z,E.right)-x/2),re=Math.max(re,y.left-Math.max(z,E.left)+x/2),re-=x/2):re>y.left?re=y.left:re<y.right-x&&(re=y.right-x),x=b-y.height,b<y.height+E.top+E.bottom?(le=Math.min(le+b/2,y.bottom+Math.max(x,E.bottom)-b/2),le=Math.max(le,y.top-Math.max(x,E.top)+b/2),le-=b/2):le>y.top?le=y.top:le<y.bottom-b&&(le=y.bottom-b)),te.x=isFinite(re)?re:-a.yb.left,te.y=isFinite(le)?le:-a.yb.top,a.positionComputation!==null&&(y=a.positionComputation(a,te),te.x=y.x,te.y=y.y),dl(a.Yd,a.pa,te),a.pa.h(te.x,te.y),sd(a),lt.free(te)}Ue.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=mu(this,a,function(x){return x.part},function(x){return x.canSelect()}),a instanceof nr)return a}else if(a=mu(this,a,function(x){return x.part}),a instanceof nr)return a;return null},Ue.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),El(this);for(var b=this.Wa.iteratorBackwards;b.next();){var E=b.value;if(E.visible&&(E=E.ic(a,y,x),E!==null))return E}return null};function mu(a,y,x,b){for(x===void 0&&(x=null),b===void 0&&(b=null),El(a),a=a.Wa.iteratorBackwards;a.next();){var E=a.value;if(E.visible&&!E.isTemporary&&(E=E.ic(y,x,b),E!==null))return E}return null}Ue.lz=function(a,y,x){return y===void 0&&(y=!0),vd(this,a,function(b){return b.part},y?function(b){return b instanceof nr&&b.canSelect()}:null,x)};function vd(a,y,x,b,E){for(x===void 0&&(x=null),b===void 0&&(b=null),E instanceof Ht||E instanceof Fn||(E=new Fn),El(a),a=a.Wa.iteratorBackwards;a.next();){var z=a.value;z.visible&&!z.isTemporary&&z.ji(y,x,b,E)}return E}Ue.ji=function(a,y,x,b){y===void 0&&(y=null),x===void 0&&(x=null),b instanceof Ht||b instanceof Fn||(b=new Fn),El(this);for(var E=this.Wa.iteratorBackwards;E.next();){var z=E.value;z.visible&&z.ji(a,y,x,b)}return b},Ue.ux=function(a,y,x,b){return y===void 0&&(y=!1),x===void 0&&(x=!0),yd(this,a,function(E){return E instanceof nr&&(!x||E.canSelect())},y,b)},Ue.Cf=function(a,y,x,b,E){y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof Ht||E instanceof Fn||(E=new Fn),El(this);for(var z=this.Wa.iteratorBackwards;z.next();){var te=z.value;te.visible&&te.Cf(a,y,x,b,E)}return E},Ue.Nu=function(a,y,x,b,E,z){var te=new Fn;El(this);for(var re=this.Wa.iteratorBackwards;re.next();){var le=re.value;le.visible&&le.Nu(a,y,x,b,te,E,z)}return te};function yd(a,y,x,b,E){var z=null;for(z===void 0&&(z=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof Ht||E instanceof Fn||(E=new Fn),El(a),a=a.Wa.iteratorBackwards;a.next();){var te=a.value;te.visible&&!te.isTemporary&&te.Cf(y,z,x,b,E)}return E}Ue.mz=function(a,y,x,b,E){return x===void 0&&(x=!0),b===void 0&&(b=!0),Dd(this,a,y,function(z){return z instanceof nr&&(!b||z.canSelect())},x,E)},Ue.og=function(a,y,x,b,E,z){x===void 0&&(x=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof Ht||E instanceof Fn)&&(z=E),E=!0),z instanceof Ht||z instanceof Fn||(z=new Fn),El(this);for(var te=this.Wa.iteratorBackwards;te.next();){var re=te.value;re.visible&&re.og(a,y,x,b,E,z)}return z};function Dd(a,y,x,b,E,z){var te=null;for(te===void 0&&(te=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof Ht||E instanceof Fn)&&(z=E),E=!0),z instanceof Ht||z instanceof Fn||(z=new Fn),El(a),a=a.Wa.iteratorBackwards;a.next();){var re=a.value;re.visible&&!re.isTemporary&&re.og(y,x,te,b,E,z)}return z}pn.prototype.acceptEvent=function(a){return vu(this,a,a instanceof MouseEvent)};function vu(a,y,x){var b=a.Qg;return a.Qg=a.cj,a.cj=b,b.diagram=a,b.event=y,x?Vd(a,y,b):(b.viewPoint=a.Qg.viewPoint,b.documentPoint=a.Qg.documentPoint),a=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),b.modifiers=a,b.button=y.button,y.buttons!==void 0&&(b.buttons=y.buttons),ir&&y.button===0&&y.ctrlKey&&(b.button=2),b.down=!1,b.up=!1,b.clickCount=1,b.delta=0,b.handled=!1,b.bubbles=!1,b.timestamp=y.timeStamp,b.isMultiTouch=!1,b.targetDiagram=uh(y,y.target),b.targetObject=null,b}function uh(a,y){return y===null?null:(y=y.H)?y:((y=a.path)||typeof a.composedPath!="function"||(y=a.composedPath()),y&&y[0]&&y[0].H?y[0].H:null)}function kh(a,y,x,b,E,z){var te=a.Qg;return a.Qg=a.cj,a.cj=te,te.diagram=a,te.clickCount=1,a=te.delta=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),te.modifiers=a,te.event=y,te.timestamp=y.timeStamp,te.button=y.button,te.buttons=y.buttons,ir&&y.button===0&&y.ctrlKey&&(te.button=2),te.down=x,te.up=b,te.handled=!1,te.bubbles=E,te.isMultiTouch=z,te}function Du(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}pn.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var x=vu(y,a,!1);switch(x.key=String.fromCharCode(a.which),x.down=!0,a.which){case 8:x.key="Backspace";break;case 33:x.key="PageUp";break;case 34:x.key="PageDown";break;case 35:x.key="End";break;case 36:x.key="Home";break;case 37:x.key="Left";break;case 38:x.key="Up";break;case 39:x.key="Right";break;case 40:x.key="Down";break;case 45:x.key="Insert";break;case 46:x.key="Del";break;case 48:x.key="0";break;case 187:case 61:case 107:x.key="Add";break;case 189:case 173:case 109:x.key="Subtract";break;case 27:x.key="Esc"}return y.doKeyDown(),Du(x,a)},pn.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=vu(y,a,!1);switch(x.key=String.fromCharCode(a.which),x.up=!0,a.which){case 8:x.key="Backspace";break;case 33:x.key="PageUp";break;case 34:x.key="PageDown";break;case 35:x.key="End";break;case 36:x.key="Home";break;case 37:x.key="Left";break;case 38:x.key="Up";break;case 39:x.key="Right";break;case 40:x.key="Down";break;case 45:x.key="Insert";break;case 46:x.key="Del"}return y.doKeyUp(),Du(x,a)},pn.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=vu(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),Du(x,a)},pn.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=vu(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),Du(x,a)},pn.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new lt(0,0);var x=y.getBoundingClientRect();return y=a.clientX-this.Aa/x.width*x.left,a=a.clientY-this.ya/x.height*x.top,this.Ab!==null?ao(new lt(y,a),this.Ab):new lt(y,a)};function Vd(a,y,x){var b=a.ta,E=a.Aa,z=a.ya,te=0,re=0;b!==null&&(b=b.getBoundingClientRect(),te=y.clientX-E/b.width*b.left,re=y.clientY-z/b.height*b.top),x.viewPoint.h(te,re),a.Ab!==null?(y=lt.allocAt(te,re),a.Ab.Cd(y),x.documentPoint.assign(y),lt.free(y)):x.documentPoint.h(te,re)}function Dh(a,y,x){if(a.oj[0]!==null){y=a.oj[y];var b=a.ta;b!==null&&(b=b.getBoundingClientRect(),x.h(y.clientX-a.Aa/b.width*b.left,y.clientY-a.ya/b.height*b.top))}}pn.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function ch(a){a.ld||El(a),a.Va()}pn.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},Ue=pn.prototype,Ue.Pz=function(){return this.kg},Ue.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,x=y.isEnabled;y.Cc(),y.isEnabled=!1,au(this),this.hf=!1,this.du=new lt(NaN,NaN),y.isEnabled=x,this.ld=!0;var b=this;a!==null&&mi(function(){b.ld=!1,_l(y,"Model"),a(b)},1)},Ue.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;yt.requestAnimationFrame(function(){y.kg&&y.bd()})}},Ue.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),au(this))};function Ou(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||Sd(a)||(y&&El(a),x&&ku(a,!1))}function au(a,y){if(!a.ld&&(a.kg=!1,a.Ka!==null||a.wo.w())){a.ld=!0;var x=a.animationManager,b=a.Xn;if(!x.isAnimating&&b.length!==0){for(var E=b.s,z=E.length,te=0;te<z;te++){var re=E[te];cs(re,!1),re.v()}b.clear()}b=a.ow,0<b.count&&(b.each(function(le){le.Nv()}),b.clear()),E=b=!1,x.defaultAnimation.isAnimating&&(E=!0,b=a.skipsUndoManager,a.skipsUndoManager=!0),x.zb||Th(a),Ou(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(ad(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),El(a),z=!1,(!a.hf||a.xh)&&(a.hf?Ug(a,!a.Jk):(a.Ea("Initial Layout"),x.isEnabled===!1&&x.Cc(),Ug(a,!1)),z=!0),a.Jk=!1,El(a),a.ou||ch(a),Ou(a,!0,!1),te=!1,z?(x=jn.alloc(),x.assign(a.viewportBounds),a.hf||(te=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,Oh(a)),a.R("LayoutCompleted"),Ou(a,!0,!1),jn.free(x)):x.Ok&&x.Qw&&(a.Fg!==Xl?a.scale=Zd(a,a.Fg):a.yh!==Xl?a.scale=Zd(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),ku(a,!0)),z&&te&&a.eb("Initial Layout"),El(a),y||a.gc(a.ib),E&&(a.skipsUndoManager=b),a.ld=!1}}function Oh(a){if(a.Fg!==Xl)a.scale=Zd(a,a.Fg);else if(a.yh!==Xl)a.scale=Zd(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}ku(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),ad(a)}function El(a){if(a.De.count!==0&&(a.ld||!a.animationManager.isTicking)){for(var y=0;23>y;y++){var x=a.De.iterator;if(x===null||a.De.count===0)break;a.De=new Fn,a.Nv(x,a.De)}a.nodes.each(function(b){b instanceof _r&&b.U&65536&&(b.U=b.U^65536)})}}Ue.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof _r||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof _r&&x.isVisible()&&$a(this,x);for(a.reset();a.next();)x=a.value,x instanceof yi&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x));for(a.reset();a.next();)x=a.value,x instanceof zo&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function $a(a,y){for(var x=gn(),b=gn(),E=y.memberParts;E.next();){var z=E.value;z.isVisible()&&(z instanceof _r?(xu(z)||Il(z)||gg(z))&&$a(a,z):z instanceof yi?z.fromNode===y||z.toNode===y?b.push(z):x.push(z):(z.measure(1/0,1/0),z.arrange()))}for(a=x.length,E=0;E<a;E++)z=x[E],z.measure(1/0,1/0),z.arrange();for(kn(x),y.measure(1/0,1/0),y.arrange(),a=b.length,y=0;y<a;y++)x=b[y],x.measure(1/0,1/0),x.arrange();kn(b)}Ue.Fd=function(a,y,x,b){if(this.vd||this.animationManager.isAnimating)for(var E=0;E<y;E++)a[E].Fd(x,b)},Ue.gc=function(a){if(this.Ka!==null){if(this.ta===null&&bt("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){yu(this);var x=this.Aa,b=this.ya;if(a.Gv.resize(x,b,x,b),x=this.Wa.s,b=x.length,this.Fd(x,b,this,this.viewportBounds),this.Fc||y.isAnimating){y=this.pa;var E=this.Ca,z=Math.round(y.x*E)/E,te=Math.round(y.y*E)/E,re=this.Ab;for(re.reset(),E!==1&&re.scale(E),y.x===0&&y.y===0||re.translate(-z,-te),a.ti=null,Gf(a,re.m11,re.m12,re.m21,re.m22,re.dx,re.dy),this.pb!==1&&(a.globalAlpha=this.pb),Zl(this,a),y=this.Mb,this.ta.context.setTransform(y,0,0,y,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya),y=0;y<b;y++)x[y].gc(a,this);a=!1,this.Yf?si(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(fr.prototype.Cd=fr.prototype.Eu),this.Fc=this.vd=!1}}}}else e:if(z=this.animationManager,!z.zb&&(!z.isAnimating||z.isTicking)&&(x=new Date,yu(this),this.Ka.style.opacity!=="0")){if(b=a!==this.ib,y=this.Wa.s,E=y.length,this.Fd(y,E,this,this.viewportBounds),b)a.Vc(!0),this.vd=!0;else if(!this.Fc&&!z.isAnimating)break e;z=this.Ab,z.reset(),te=this.Mb,re=this.pa;var le=this.Ca,ce=Math.round(re.x*le)/le,de=Math.round(re.y*le)/le;for(le!==1&&z.scale(le),re.x===0&&re.y===0||z.translate(-ce,-de),a.setTransform(te,0,0,te,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),Zl(this,a),re=0;re<E;re++)a.setTransform(te,0,0,te,0,0),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),a.yc(),y[re].gc(a,this);if(y=!1,this.Yf?si(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(fr.prototype.Cd=fr.prototype.Eu),b?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,b=hr&&hr.nx,x=this.zw,b||this.Yh===null){for(x[this.Tq]=y,this.Tq=(this.Tq+1)%x.length,E=y=0;E<x.length;E++)y+=x[E];this.Sq=y/x.length}if(this.pb!==1&&(a.globalAlpha=1),b)for(a.setTransform(1,0,0,1,0,0),b=0;b<x.length;b++)a.fillText(x[b].toString(),20,150+ +(20*b))}}};function Rs(a,y,x,b,E,z,te,re,le,ce){if(a.Ka!==null){a.ta===null&&bt("No canvas specified"),te===void 0&&(te=null),re===void 0&&(re=null),le===void 0&&(le=!1),ce===void 0&&(ce=!1),yu(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var de=a.Ca;a.Ca=E;var ve=a.Wa.s,Pe=ve.length;try{var Le=new jn(z.x,z.y,b.width/E,b.height/E),Fe=Le.copy();Fe.Co(x),ad(a,Fe),El(a),a.Fd(ve,Pe,a,Le),y.setTransform(1,0,0,1,0,0),y.clearRect(0,0,b.width,b.height),re!==null&&re!==""&&(y.fillStyle=re,y.ox(0,0,b.width,b.height));var Ze=a.Mb;y.scale(Ze,Ze);var pt=fr.alloc();pt.reset(),pt.translate(x.left,x.top),pt.scale(E),z.x===0&&z.y===0||pt.translate(-z.x,-z.y),y.setTransform(pt.m11,pt.m12,pt.m21,pt.m22,pt.dx,pt.dy),y.yc(),y instanceof Uu&&Gf(y,pt.m11,pt.m12,pt.m21,pt.m22,pt.dx,pt.dy),fr.free(pt),Zl(a,y),y.globalAlpha=a.pb;var at=a.Qj("Grid");if(te){var Ct=new Fn,Lt=te.iterator;for(Lt.reset();Lt.next();){var Dt=Lt.value;Dt instanceof nr&&(ce||Dt.layer!==at)&&(Dt.Gj(),Ct.add(Dt))}for(ce=0;ce<Pe;ce++)pu(ve[ce],y,a,Ct,le);Ct.each(function(vn){return vn.Gj()})}else for(Ct=0;Ct<Pe;Ct++){var Kt=ve[Ct];Kt===at?ce&&Kt.gc(y,a,!0):Kt.gc(y,a,le)}a.$i=!1,a.Yf&&si(a.Yf,a)&&a.Vp()}finally{a.Ca=de,a.ib.Vc(!0),a.vd=!0,a.Fd(ve,Pe,a,a.viewportBounds),ad(a),a.ib instanceof Uu&&(a.ib.Nj.PA(),a.redraw())}}}Ue.Gf=function(a){return this.Rg[a]},Ue.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},Ue.Tx=function(){this.Rg=new Ti,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(ir||Fi),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function Zl(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}Ue.Ql=function(a){return this.on[a]},Ue.sA=function(a,y){this.on[a]=y},Ue.Sx=function(){this.on=new Ti,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},Ue.set=function(a){return Object.assign(this,a),this},Ue.Du=function(a){return this.nm(a)},Ue.nm=function(a){return ec(this,a),this};function ec(a,y){var x=a instanceof hi,b=a instanceof pn,E;for(E in y){E===""&&bt("Setting properties requires non-empty property names");var z=a,te=E;if(x||b){var re=E.indexOf(".");if(0<re){var le=E.substring(0,re);x?z=a.fb(le):(z=a[le],z==null&&(z=a.toolManager[le])),Gt(z)?te=E.substr(re+1):bt("Unable to find object named: "+le+" in "+a.toString()+" when trying to set property: "+E)}}if(te[0]!=="_"&&!Jn(z,te))if(b&&te==="ModelChanged"){a.Yw(y[te]);continue}else if(b&&te==="Changed"){a.Pe(y[te]);continue}else if(b&&Jn(a.toolManager,te))z=a.toolManager;else if(b&&zf(a,te)){a.Bj(te,y[te]);continue}else if(a instanceof Wi&&te==="Changed"){a.Pe(y[te]);continue}else bt('Trying to set undefined property "'+te+'" on object: '+z.toString());z[te]=y[E],te[0]==="_"&&z instanceof Rt&&z.Vw(te)}}Ue.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new Ii,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},Ue.N=function(a){if(a===void 0)this.Fc=!0,this.$b();else{var y=this.viewportBounds;a.w()&&y.Yc(a)&&(this.Fc=!0,this.$b())}this.R("InvalidateDraw")},pn.prototype.invalidateViewport=function(a,y){if(this.Fc!==!0)if(this.Fc=!0,this.nl==="svg")this.bd();else{var x=this.Gf("temporaryPixelRatio")===!0;if(this.Gf("viewportOptimizations")===!0&&this.scrollMode!==Me&&this.rj.hi(0,0,0,0)&&y.width===a.width&&y.height===a.height){var b=this.scale,E=Math.max(a.y,y.y),z=Math.min(a.y+a.height,y.y+y.height);if(0<Math.max(0,Math.min(a.x+a.width,y.x+y.width)-Math.max(a.x,y.x))*b&&0<Math.max(0,z-E)*b){if(!(this.ld||(this.kg=!1,this.Ka===null||(this.ld=!0,this.documentBounds.w()||(b=jn.alloc(),Rh(this,this.computeBounds(b)),jn.free(b)),b=this.ta,b===null||b instanceof Wc)))){var te=this.Mb;E=this.Aa*te;var re=this.ya*te,le=this.scale*te;z=Math.round(Math.round(y.x*le)-Math.round(a.x*le)),y=Math.round(Math.round(y.y*le)-Math.round(a.y*le)),le=this.jw,a=this.oy,le.width!==E&&(le.width=E),le.height!==re&&(le.height=re),a.clearRect(0,0,E,re),le=190*te;var ce=70*te,de=Math.max(z,0),ve=Math.max(y,0),Pe=Math.floor(E-de),Le=Math.floor(re-ve);a.drawImage(b.Oa,de,ve,Pe,Le,0,0,Pe,Le),si(this.Yf,this)&&a.clearRect(0,0,le,ce),b=gn(),a=gn(),Le=Math.abs(z),Pe=Math.abs(y);var Fe=de===0?0:E-Le;de=lt.allocAt(Fe,0),Le=lt.allocAt(Le+Fe,re),a.push(new jn(Math.min(de.x,Le.x),Math.min(de.y,Le.y),Math.abs(de.x-Le.x),Math.abs(de.y-Le.y)));var Ze=this.Ab;if(Ze.reset(),Ze.scale(te,te),this.Ca!==1&&Ze.scale(this.Ca),te=this.pa,(te.x!==0||te.y!==0)&&isFinite(te.x)&&isFinite(te.y)&&Ze.translate(-te.x,-te.y),ao(de,Ze),ao(Le,Ze),b.push(new jn(Math.min(de.x,Le.x),Math.min(de.y,Le.y),Math.abs(de.x-Le.x),Math.abs(de.y-Le.y))),Fe=ve===0?0:re-Pe,de.h(0,Fe),Le.h(E,Pe+Fe),a.push(new jn(Math.min(de.x,Le.x),Math.min(de.y,Le.y),Math.abs(de.x-Le.x),Math.abs(de.y-Le.y))),ao(de,Ze),ao(Le,Ze),b.push(new jn(Math.min(de.x,Le.x),Math.min(de.y,Le.y),Math.abs(de.x-Le.x),Math.abs(de.y-Le.y))),si(this.Yf,this)&&(E=0<z?0:-z,re=0<y?0:-y,de.h(E,re),Le.h(le+E,ce+re),a.push(new jn(Math.min(de.x,Le.x),Math.min(de.y,Le.y),Math.abs(de.x-Le.x),Math.abs(de.y-Le.y))),ao(de,Ze),ao(Le,Ze),b.push(new jn(Math.min(de.x,Le.x),Math.min(de.y,Le.y),Math.abs(de.x-Le.x),Math.abs(de.y-Le.y)))),lt.free(de),lt.free(Le),Ou(this,!1,!0),this.Ka===null&&bt("No div specified"),this.ta===null&&bt("No canvas specified"),!this.animationManager.zb&&(E=this.ib,this.Fc)){for(yu(this),re=this.Mb,E.setTransform(1,0,0,1,0,0),E.clearRect(0,0,this.Aa*re,this.ya*re),E.drawImage(this.jw.Oa,0<z?0:Math.round(-z),0<y?0:Math.round(-y)),z=this.pa,te=this.Ca,le=Math.round(z.x*te)/te,ce=Math.round(z.y*te)/te,y=this.Ab,y.reset(),te!==1&&y.scale(te),z.x===0&&z.y===0||y.translate(-le,-ce),E.save(),E.beginPath(),z=a.length,te=0;te<z;te++)le=a[te],le.width!==0&&le.height!==0&&E.rect(Math.floor(le.x),Math.floor(le.y),Math.ceil(le.width),Math.ceil(le.height));for(E.clip(),E.setTransform(re,0,0,re,0,0),E.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),E.yc(),y=this.Wa.s,z=y.length,this.Fd(y,z,this,this.viewportBounds),Zl(this,E),E.globalAlpha=this.pb,re=0;re<z;re++)if(te=y[re],le=b,te.visible&&te.pb!==0){ce=gl(te,E),ve=te.Zq,ve.length=0,de=this.scale,Pe=jn.alloc(),Le=te.Pa.s,Ze=Le.length,Fe=le.length;for(var pt=0;pt<Ze;pt++){var at=Le[pt],Ct=Qg(at,at.actualBounds);e:{for(var Lt=2/de,Dt=4/de,Kt=0;Kt<Fe;Kt++){var vn=le[Kt];if(vn.width!==0&&vn.height!==0&&Ct.Vu(vn.x-Lt,vn.y-Lt,vn.width+Dt,vn.height+Dt)){Ct=!0;break e}}Ct=!1}Ct&&te.Oj(E,at,this,ve,de,Pe,!0)}jn.free(Pe),E.globalAlpha=ce}E.restore(),E.Vc(!0),this.Yf&&si(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}kn(b),kn(a),this.ld=!1}}else this.bd();x&&(Gl(this),this.bd(),Hd(this,!0))}else x?(Gl(this),this.bd(),Hd(this,!0)):this.bd()}};function yu(a){a.pn!==!1&&(a.pn=!1,dh(a,a.Aa,a.ya))}function dh(a,y,x){sd(a);var b=a.Mb;a.ta.resize(y*b,x*b,y,x)&&(a.Fc=!0,a.ib.Vc(!0))}function Sd(a){var y=a.ta;if(y===null||a.wo.w())return!0;var x=a.Aa,b=a.ya,E=a.Ka,z=!1,te=a.gf?a.Db:0,re=a.Be?a.Db:0,le=E.clientWidth||x+te,ce=E.clientHeight||b+re,de=a.viewportBounds;E=de.x;var ve=de.y,Pe=de.width,Le=de.height;if((le!==x+te||ce!==b+re)&&(a.gf=!1,a.Be=!1,re=te=0,a.Aa=le,a.ya=ce,z=a.pn=!0,sd(a)),!a.hf||!a.viewportBounds.w())return!0;var Fe=a.ku,Ze=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var pt=a.documentBounds,at=0,Ct=0,Lt=0,Dt=0,Kt=de.width,vn=de.height,Pi=a.rj;a.contentAlignment.sb()?(pt.width>Kt&&(at=Pi.left,Ct=Pi.right),pt.height>vn&&(Lt=Pi.top,Dt=Pi.bottom)):(at=Pi.left,Ct=Pi.right,Lt=Pi.top,Dt=Pi.bottom);var ji=pt.width+at+Ct,Di=pt.height+Lt+Dt;Pi=a.scale;var vi=ji>le/Pi,ti=Di>ce/Pi;if(!(z||a.gf||a.Be||vi||ti))return!0;at=pt.x-at,le=de.x,Ct=pt.right+Ct,ce=de.right+te,Lt=pt.y-Lt;var Br=de.y;pt=pt.bottom+Dt,de=de.bottom+re;var Ar="1px";if(Dt="1px",a.scrollMode===he&&(vi||ti)&&(vi&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(vi=1,at+1<le&&(vi=Math.max((le-at)*Pi+a.Aa,vi)),Ct>ce+1&&(vi=Math.max((Ct-ce)*Pi+a.Aa,vi)),Kt+te+1<ji&&(vi=Math.max((ji-Kt)*Pi+a.Aa,vi)),Ar=vi.toString()+"px"),ti&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(vi=1,Lt+1<Br&&(vi=Math.max((Br-Lt)*Pi+a.ya,vi)),pt>de+1&&(vi=Math.max((pt-de)*Pi+a.ya,vi)),vn+re+1<Di&&(vi=Math.max((Di-vn)*Pi+a.ya,vi)),Dt=vi.toString()+"px")),vi=Ar!=="1px",ti=Dt!=="1px",vi&&ti||!vi&&!ti||(ti&&(ce-=a.Db),vi&&(de-=a.Db),ji<Kt+te||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(te=1,at+1<le&&(te=Math.max((le-at)*Pi+a.Aa,te)),Ct>ce+1&&(te=Math.max((Ct-ce)*Pi+a.Aa,te)),Kt+1<ji&&(te=Math.max((ji-Kt)*Pi+a.Aa,te)),Ar=te.toString()+"px"),vi=Ar!=="1px",te=a.ya,vi!==a.Be&&(te=vi?a.ya-a.Db:a.ya+a.Db),Di<vn+re||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(re=1,Lt+1<Br&&(re=Math.max((Br-Lt)*Pi+te,re)),pt>de+1&&(re=Math.max((pt-de)*Pi+te,re)),vn+1<Di&&(re=Math.max((Di-vn)*Pi+te,re)),Dt=re.toString()+"px"),ti=Dt!=="1px"),a.qr&&vi===a.Be&&ti===a.gf)return x===a.Aa&&b===a.ya||a.bd(),!1;if(vi!==a.Be&&(Ar==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=vi,Ze.style.width=Ar,ti!==a.gf&&(Dt==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(re=lt.alloc(),ti?(y.style.left=a.Db+"px",a.position=re.h(a.pa.x+a.Db/a.scale,a.pa.y)):(y.style.left="0px",a.position=re.h(a.pa.x-a.Db/a.scale,a.pa.y)),lt.free(re))),z&&sd(a),a.gf=ti,Ze.style.height=Dt,a.gu=!0,z&&(a.pn=!0),y=Fe.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Kt+1<ji?y=(a.position.x-at)*Pi:at+1<le?y=Fe.scrollWidth-Fe.clientWidth:Ct>ce+1&&(y=a.position.x*Pi)),a.tn)switch(a.bu){case"negative":y=-(Fe.scrollWidth-y-Fe.clientWidth);break;case"reverse":y=Fe.scrollWidth-y-Fe.clientWidth}return Fe.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(vn+1<Di?Fe.scrollTop=(a.position.y-Lt)*Pi:Lt+1<Br?Fe.scrollTop=Fe.scrollHeight-Fe.clientHeight:pt>de+1&&(Fe.scrollTop=a.position.y*Pi)),le=a.Aa,ce=a.ya,Fe.style.width=le+(a.gf?a.Db:0)+"px",Fe.style.height=ce+(a.Be?a.Db:0)+"px",x!==le||b!==ce||a.animationManager.zb?(x=jn.allocAt(E,ve,Pe,Le),a.onViewportBoundsChanged(x,a.viewportBounds,Pi,z),jn.free(x),!1):!0}Ue=pn.prototype,Ue.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&bt("Cannot add part "+a.toString()+" to "+this.toString()+". It is already a part of "+y.toString()),y=this.Qj(a.layerName),y===null&&(y=this.Qj("")),y===null&&bt('Cannot add a Part when unable find a Layer named "'+a.layerName+'" and there is no default Layer'),a.layer!==y)){var x=y.oi(99999999,a,a.diagram===this);0<=x&&this.cb(Ka,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},Ue.oi=function(a){this.partManager.oi(a);var y=this;Yg(a,function(x){fh(y,x)}),(a instanceof zo||a instanceof _r&&a.placeholder!==null)&&a.v(),a.data!==null&&Yg(a,function(x){yy(y.partManager,x)}),Il(a)!==!0&&gg(a)!==!0||this.De.add(a),_S(a,!0,this),HS(a)?(a.actualBounds.w()&&this.N(Qg(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Qg(a,a.actualBounds)),this.$b()},Ue.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Yg(a,function(x){Sy(y.partManager,x,y)}),this.De.remove(a),HS(a)?(a.actualBounds.w()&&this.N(Qg(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Qg(a,a.actualBounds)),this.$b()},Ue.remove=function(a){hh(this,a,!0)};function hh(a,y,x){var b=y.layer;b!==null&&b.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),x&&y.Lj(),x=b.pc(-1,y,!1),0<=x&&a.cb(ms,"parts",b,y,null,x,null),a=y.layerChanged,a!==null&&a(y,b,null))}Ue.Is=function(a,y){if(y===void 0&&(y=!1),yn(a))for(var x=a.length,b=0;b<x;b++){var E=a[b];y&&!E.canDelete()||this.remove(E)}else for(x=new Fn,x.addAll(a),a=x.iterator;a.next();)x=a.value,y&&!x.canDelete()||this.remove(x)},Ue.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},pn.prototype.moveParts=function(a,y,x,b){if(x===void 0&&(x=!1),b===void 0&&(b=Rg(this)),this.toolManager!==null){var E=new Ii;if(a!==null)if(yn(a))for(var z=0;z<a.length;z++)hc(this,E,a[z],x,b);else for(a=a.iterator;a.next();)hc(this,E,a.value,x,b);else{for(a=this.parts;a.next();)hc(this,E,a.value,x,b);for(a=this.nodes;a.next();)hc(this,E,a.value,x,b);for(a=this.links;a.next();)hc(this,E,a.value,x,b)}od(this,E,y,b,x)}};function hc(a,y,x,b,E,z){if(!y.contains(x)&&(z===void 0&&(z=!1),!b||z||x.canMove()||x.canCopy()))if(E===void 0&&(E=Rg(a)),x instanceof Li){if(y.add(x,a.Pd(E,x,x.location)),x instanceof _r&&(x.placeholder!==null||E.dragsMembers))for(z=x.memberParts;z.next();)hc(a,y,z.value,b,E,E.groupsAlwaysMove);for(z=x.linksConnected;z.next();){var te=z.value;if(!y.contains(te)){var re=te.fromNode,le=te.toNode;re!==null&&y.contains(re)&&le!==null&&y.contains(le)&&hc(a,y,te,b,E)}}if(E.dragsTree)for(x=x.Ou();x.next();)hc(a,y,x.value,b,E)}else if(x instanceof yi)for(y.add(x,a.Pd(E,x)),x=x.labelNodes;x.next();)hc(a,y,x.value,b,E);else x instanceof zo||y.add(x,a.Pd(E,x,x.location))}function od(a,y,x,b,E){if(y!==null&&y.count!==0){var z=lt.alloc(),te=lt.alloc();te.assign(x),isNaN(te.x)&&(te.x=0),isNaN(te.y)&&(te.y=0),(x=a.Mr)||Bg(a,y);for(var re=gn(),le=gn(),ce=y.iterator,de=lt.alloc();ce.next();){var ve=ce.key,Pe=ce.value;if(ve.Zc()){var Le=df(a,ve,y);Le!==null?re.push(new ie(ve,Pe,Le)):(!E||ve.canMove())&&(Le=Pe.point,z.assign(Le),a.computeMove(ve,z.add(te),b,de),ve.location=de,Pe.shifted===void 0&&(Pe.shifted=new lt),Pe.shifted.assign(de.re(Le)))}else ce.key instanceof yi&&le.push(ce.sa)}for(lt.free(de),E=re.length,ce=0;ce<E;ce++)ve=re[ce],z.assign(ve.info.point),ve.Su.shifted===void 0&&(ve.Su.shifted=new lt),ve.node.location=z.add(ve.Su.shifted);for(E=lt.alloc(),ce=lt.alloc(),ve=le.length,Pe=0;Pe<ve;Pe++){var Fe=le[Pe];if(Le=Fe.key,Le instanceof yi)if(Le.suspendsRouting){Le.Tg=null,de=Le.fromNode;var Ze=Le.toNode;if(a.draggedLink!==null&&b.dragsLink)if(Ze=Fe.value.point,Le.dragComputation===null)y.add(Le,a.Pd(b,Le,te)),Hh(Le,te.x-Ze.x,te.y-Ze.y);else{Fe=lt.allocAt(0,0),(de=Le.i(0))&&de.w()&&Fe.assign(de);var pt=de=lt.alloc().assign(Fe).add(te);b.isGridSnapEnabled&&(b.isGridSnapRealtime||a.lastInput.up)&&(pt=lt.alloc(),Fg(a,Le,de,pt,b)),de.assign(Le.dragComputation(Le,de,pt)).re(Fe),y.add(Le,a.Pd(b,Le,de)),Hh(Le,de.x-Ze.x,de.y-Ze.y),lt.free(Fe),lt.free(de),pt!==de&&lt.free(pt)}else de!==null&&(E.assign(de.location),pt=y.I(de),pt!==null&&E.re(pt.point)),Ze!==null&&(ce.assign(Ze.location),pt=y.I(Ze),pt!==null&&ce.re(pt.point)),de!==null&&Ze!==null?E.Xa(ce)?(de=Fe.value.point,Ze=z,Ze.assign(E),Ze.re(de),y.add(Le,a.Pd(b,Le,E)),Hh(Le,Ze.x,Ze.y)):(Le.suspendsRouting=!1,Le.bb()):(Fe=Fe.value.point,de=de!==null?E:Ze!==null?ce:te,y.add(Le,a.Pd(b,Le,de)),Hh(Le,de.x-Fe.x,de.y-Fe.y))}else(Le.fromNode===null||Le.toNode===null)&&(de=Fe.value.point,y.add(Le,a.Pd(b,Le,te)),Hh(Le,te.x-de.x,te.y-de.y))}lt.free(z),lt.free(te),lt.free(E),lt.free(ce),kn(re),kn(le),x||(El(a),gh(a,y))}}pn.prototype.computeMove=function(a,y,x,b){if(b===void 0&&(b=new lt),b.assign(y),a===null)return b;var E=y,z=x.isGridSnapEnabled;z&&(x.isGridSnapRealtime||this.lastInput.up)&&(E=lt.alloc(),Fg(this,a,y,E,x)),x=a.dragComputation!==null?a.dragComputation(a,y,E):E;var te=a.minLocation,re=te.x;isNaN(re)&&(re=z?Math.round(1e3*a.location.x)/1e3:a.location.x),te=te.y,isNaN(te)&&(te=z?Math.round(1e3*a.location.y)/1e3:a.location.y);var le=a.maxLocation,ce=le.x;return isNaN(ce)&&(ce=z?Math.round(1e3*a.location.x)/1e3:a.location.x),le=le.y,isNaN(le)&&(le=z?Math.round(1e3*a.location.y)/1e3:a.location.y),b.h(Math.max(re,Math.min(x.x,ce)),Math.max(te,Math.min(x.y,le))),E!==y&&lt.free(E),b};function Rg(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function Fg(a,y,x,b,E){if(E===void 0&&(E=Rg(a)),b.assign(x),y!==null){var z=a.grid;y=E.gridSnapCellSize,a=y.width,y=y.height;var te=E.gridSnapOrigin,re=te.x;if(te=te.y,E=E.gridSnapCellSpot,z!==null){var le=z.gridCellSize;isNaN(a)&&(a=le.width),isNaN(y)&&(y=le.height),z=z.gridOrigin,isNaN(re)&&(re=z.x),isNaN(te)&&(te=z.y)}z=lt.allocAt(0,0),z.yi(0,0,a,y,E),Wt.No(x.x,x.y,re+z.x,te+z.y,a,y,b),lt.free(z)}}function Bg(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof yi&&(y.suspendsRouting=!0)}function gh(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof yi&&(x.suspendsRouting=!1,ry(x)&&x.bb())}a.Mr=!1}}function df(a,y,x){return y=y.containingGroup,y!==null&&(a=df(a,y,x),a!==null||(a=x.I(y),a!==null))?a:null}Ue=pn.prototype,Ue.Pd=function(a,y,x){if(x===void 0)return new Yn(Rr);var b=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(b=!1),b?new Yn(new lt(Math.round(1e3*x.x)/1e3,Math.round(1e3*x.y)/1e3)):new Yn(x.copy())};function jg(a,y,x){if(y.diagram!==null&&y.diagram!==a&&bt("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&bt("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&bt("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&bt("Cannot move a Layer before or after itself: "+y)),y.diagram!==a){y=y.name,a=a.Wa,x=a.count;for(var b=0;b<x;b++)a.M(b).name===y&&bt("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}Ue.Al=function(a){jg(this,a,null),a.Xe(this);var y=this.Wa,x=y.count-1;if(!a.isTemporary)for(;0<=x&&y.M(x).isTemporary;)x--;return y.Gb(x+1,a),this.cc!==null&&this.cb(Ka,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},Ue.Ww=function(a,y){jg(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(ms,"layers",this,a,null,b,null));var E=x.count,z;for(z=0;z<E;z++)if(x.M(z)===y){x.Gb(z,a);break}return this.cc!==null&&this.cb(Ka,"layers",this,null,a,null,z),this.N(),0>b&&this.Ya(),this},Ue.Cy=function(a,y){jg(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(ms,"layers",this,a,null,b,null));var E=x.count,z;for(z=0;z<E;z++)if(x.M(z)===y){x.Gb(z+1,a);break}return this.cc!==null&&this.cb(Ka,"layers",this,null,a,null,z+1),this.N(),0>b&&this.Ya(),this},Ue.kA=function(a){if(a.diagram!==this&&bt("Cannot remove a Layer from another Diagram: "+a+" of "+a.diagram),a.name!==""){var y=this.Wa,x=y.indexOf(a);if(y.remove(a)){for(y=a.Pa.copy().iterator;y.next();){var b=y.value,E=b.layerName;E!==a.name?b.layerName=E:b.layerName=""}this.cc!==null&&this.cb(ms,"layers",this,a,null,x,null),this.N(),this.Ya()}}},Ue.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},Ue.Yw=function(a){return this.pf===null&&(this.pf=new Ht),this.pf.add(a),this.model.Pe(a),this},Ue.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},Ue.Pe=function(a){return this.zg===null&&(this.zg=new Ht),this.zg.add(a),this},Ue.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},Ue.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==Bl&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,b=0;b<x;b++)y.M(b)(a)},Ue.cb=function(a,y,x,b,E,z,te){z===void 0&&(z=null),te===void 0&&(te=null);var re=new Xo;re.diagram=this,re.change=a,re.propertyName=y,re.object=x,re.oldValue=b,re.oldParam=z,re.newValue=E,re.newParam=te,this.ds(re)},Ue.g=function(a,y,x,b,E){this.cb(Ma,a,this,y,x,b,E)},pn.prototype.changeState=function(a,y){if(a!==null&&a.diagram===this){var x=this.skipsModelSourceBindings;try{this.skipsModelSourceBindings=!0;var b=a.change;if(b===Ma){var E=a.object;if(Ga(E,a.propertyName,a.I(y)),E instanceof Rt){var z=E.part;z!==null&&z.Wb()}this.isModified=!0}else if(b===Ka){var te=a.object,re=a.newParam,le=a.newValue;if(te instanceof hi)if(typeof re=="number"&&le instanceof Rt){y?te.pc(re):te.Gb(re,le);var ce=te.part;ce!==null&&ce.Wb()}else typeof re=="number"&&le instanceof Qs&&(le.isRow?fS(te,re,y?void 0:le):pS(te,re,y?void 0:le));else if(te instanceof _a){var de=a.oldParam===!0;typeof re=="number"&&le instanceof nr&&(y?(le.isSelected=!1,le.isHighlighted=!1,le.Wb(),te.pc(de?re:-1,le,de)):te.oi(re,le,de))}else te instanceof pn?typeof re=="number"&&le instanceof _a&&(y?this.Wa.mb(re):(le.Xe(this),this.Wa.Gb(re,le))):bt("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(b===ms){var ve=a.object,Pe=a.oldParam,Le=a.oldValue;if(ve instanceof hi)typeof Pe=="number"&&Le instanceof Rt?y?ve.Gb(Pe,Le):ve.pc(Pe):typeof Pe=="number"&&Le instanceof Qs&&(Le.isRow?fS(ve,Pe,y?Le:void 0):pS(ve,Pe,y?Le:void 0));else if(ve instanceof _a){var Fe=a.newParam===!0;typeof Pe=="number"&&Le instanceof nr&&(y?0>ve.Pa.indexOf(Le)&&ve.oi(Pe,Le,Fe):(Le.isSelected=!1,Le.isHighlighted=!1,Le.Wb(),ve.pc(Fe?Pe:-1,Le,Fe)))}else ve instanceof pn?typeof Pe=="number"&&Le instanceof _a&&(y?(Le.Xe(this),this.Wa.Gb(Pe,Le)):this.Wa.mb(Pe)):bt("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else b!==Bl&&bt("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},pn.prototype.Ea=function(a){return this.undoManager.Ea(a)},pn.prototype.eb=function(a){return this.undoManager.eb(a)},pn.prototype.Kf=function(){return this.undoManager.Kf()},pn.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var b=!1;try{a(this),b=!0}finally{b?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},pn.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},pn.prototype.rp=function(){this.partManager.rp()};function hf(a,y,x){var b=a.animationManager;if(a.vb||a.ld)a.Ca=x,sd(a),a.N(),a.Ee=!0,b.zb&&(Ml(b)||b.ce.add(b.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,sd(a);else{a.vb=!0;var E=a.viewportBounds.copy(),z=a.Aa,te=a.ya,re=a.zoomPoint.x,le=a.zoomPoint.y,ce=a.contentAlignment;isNaN(re)&&(ce.$c()?ce.Hf(Ws)?re=0:ce.Hf(Zs)&&(re=z-1):re=ce.sb()?ce.x*(z-1):z/2),isNaN(le)&&(ce.$c()?ce.Hf(Zu)?le=0:ce.Hf(Al)&&(le=te-1):le=ce.sb()?ce.y*(te-1):te/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(x=a.scaleComputation(a,x)),x<a.minScale&&(x=a.minScale),x>a.maxScale&&(x=a.maxScale),z=lt.allocAt(a.pa.x+re/y-re/x,a.pa.y+le/y-le/x),a.position=z,lt.free(z),a.Ca=x,sd(a),a.vb=!1,a.onViewportBoundsChanged(E,a.viewportBounds,y,!1),ku(a,!1),b.zb&&(Ml(b)||b.ce.add(b.H,"scale",y,a.Ca))}}pn.prototype.onViewportBoundsChanged=function(a,y,x,b){if(!a.D(y)){b===void 0&&(b=!1),b||(this.Ee=!0),this.vd=!0;var E=this.layout;E===null||!E.isViewportSized||this.autoScale!==Xl||a.width===y.width&&a.height===y.height||E.C(),E=this.currentTool,this.Vk===!0&&E instanceof pa&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),ah(E,this)),this.vb||this.invalidateViewport(a,y),ad(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.canvasSize.width=Math.round(a.width*x),this.fc.canvasSize.height=Math.round(a.height*x),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=b,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(z){z.isAvoiding&&z.actualBounds.Yc(y)&&z.bb()})}};function ad(a,y){var x=a.fe;if(x!==null&&x.visible){for(var b=fi.alloc(),E=1,z=1,te=x.O.s,re=te.length,le=0;le<re;le++){var ce=te[le],de=Math.abs(ce.interval);2>de||(Av(ce.figure)?z=z*de/Wt.vx(z,de):E=E*de/Wt.vx(E,de))}if(te=x.gridCellSize,b.h(z*te.width,E*te.height),y!==void 0)E=y.width,z=y.height,a=y.x,te=y.y;else{if(y=jn.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){jn.free(y);return}E=y.width,z=y.height,a=y.x,te=y.y,jn.free(y)}x.width=E+2*b.width,x.height=z+2*b.height,y=lt.alloc(),Wt.No(a,te,0,0,b.width,b.height,y),y.offset(-b.width,-b.height),fi.free(b),x.part.location=y,lt.free(y)}}pn.prototype.clearSelection=function(a){a===void 0&&(a=!1);var y=this.selection;if(y.count!==0){a||this.R("ChangingSelection",y);for(var x=y.Fa(),b=x.length,E=0;E<b;E++)x[E].isSelected=!1;y.ka(),y.clear(),y.freeze(),a||this.R("ChangedSelection",y)}},pn.prototype.select=function(a){a!==null&&a.diagram===this&&(!a.isSelected||1<this.selection.count)&&(this.R("ChangingSelection",this.selection),this.clearSelection(!0),a.isSelected=!0,this.R("ChangedSelection",this.selection))},pn.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),yn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];b instanceof nr||bt("Diagram.selectCollection given something that is not a Part: "+b),b.isSelected=!0}else for(a=a.iterator;a.next();)y=a.value,y instanceof nr||bt("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},pn.prototype.clearHighlighteds=function(){var a=this.highlighteds;if(0<a.count){for(var y=a.Fa(),x=y.length,b=0;b<x;b++)y[b].isHighlighted=!1;a.ka(),a.clear(),a.freeze()}},Ue=pn.prototype,Ue.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},Ue.Jz=function(a){a=new Fn().addAll(a);for(var y=this.highlighteds.copy().hp(a).iterator;y.next();)y.value.isHighlighted=!1;for(a=a.iterator;a.next();)y=a.value,y instanceof nr||bt("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},Ue.scroll=function(a,y,x){x===void 0&&(x=1);var b=y==="up"||y==="down",E=0,z=lt.alloc();if(a==="pixel")E=x;else if(a==="line")E=x*(b?this.scrollVerticalLineChange:this.scrollHorizontalLineChange);else if(a==="page")a=b?this.viewportBounds.height:this.viewportBounds.width,a*=this.scale,a!==0&&(E=x*Math.max(a-(b?this.scrollVerticalLineChange:this.scrollHorizontalLineChange),0));else{if(a==="document"){E=this.documentBounds,x=this.viewportBounds,y==="up"?this.position=z.h(x.x,E.y):y==="left"?this.position=z.h(E.x,x.y):y==="down"?this.position=z.h(x.x,E.bottom-x.height):y==="right"&&(this.position=z.h(E.right-x.width,x.y)),lt.free(z);return}bt("scrolling unit must be 'pixel', 'line', 'page', or 'document', not: "+a)}E/=this.scale,x=this.position,y==="up"?this.position=z.h(x.x,x.y-E):y==="down"?this.position=z.h(x.x,x.y+E):y==="left"?this.position=z.h(x.x-E,x.y):y==="right"?this.position=z.h(x.x+E,x.y):bt("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),lt.free(z)},Ue.tv=function(a){var y=this.viewportBounds;y.Re(a)||(a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a)},Ue.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},Ue.op=function(a){var y=this.Ab;y.reset(),this.Ca!==1&&y.scale(this.Ca);var x=this.pa;return(x.x!==0||x.y!==0)&&isFinite(x.x)&&isFinite(x.y)&&y.translate(-x.x,-x.y),a.copy().transform(this.Ab)},Ue.zA=function(a){var y=this.Ab,x=a.x,b=a.y,E=x+a.width,z=b+a.height,te=y.m11,re=y.m12,le=y.m21,ce=y.m22,de=y.dx,ve=y.dy,Pe=x*te+b*le+de;y=x*re+b*ce+ve;var Le=E*te+b*le+de;return a=E*re+b*ce+ve,b=x*te+z*le+de,x=x*re+z*ce+ve,te=E*te+z*le+de,E=E*re+z*ce+ve,z=Math.min(Pe,Le),Pe=Math.max(Pe,Le),Le=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,b),Pe=Math.max(Pe,b),Le=Math.min(Le,x),y=Math.max(y,x),z=Math.min(z,te),Pe=Math.max(Pe,te),Le=Math.min(Le,E),y=Math.max(y,E),new jn(z,Le,Pe-z,y-Le)},Ue.Ps=function(a){var y=this.Ab;y.reset(),this.Ca!==1&&y.scale(this.Ca);var x=this.pa;return(x.x!==0||x.y!==0)&&isFinite(x.x)&&isFinite(x.y)&&y.translate(-x.x,-x.y),ao(a.copy(),this.Ab)};function zg(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function ag(a){return a=Wg.get(a),a!==null?new a:new na}pn.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,b=a.propertyName;if(x===Bl&&b[0]==="S")if(b==="StartingFirstTransaction"){var E=this;a=this.toolManager,a.mouseDownTools.each(function(le){return le.diagram=E}),a.mouseMoveTools.each(function(le){return le.diagram=E}),a.mouseUpTools.each(function(le){return le.diagram=E}),this.ld||this.hf||(this.Jk=!0,this.fn&&(this.kg=!0))}else b==="StartingUndo"||b==="StartingRedo"?(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc(),this.R("ChangingSelection",this.selection)):b==="StartedTransaction"&&(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc());else if(this.aa){this.aa=!1;try{if(a.modelChange===""&&x===Bl){(b==="FinishedUndo"||b==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),El(this));var z=this.animationManager;b==="RolledBackTransaction"&&z.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||sl(z),b==="CommittedTransaction"&&this.undoManager.isJustDiscarded&&(this.Ce=Math.min(this.Ce,this.undoManager.historyIndex-1)),b!=="CommittedTransaction"&&b!=="RolledBackTransaction"||!this.undoManager.isPendingUnmodified||setTimeout(function(){y.isModified=!1},1);var te=a.isTransactionFinished;if(te&&(zg(this),this.As.clear(),as(this.animationManager)),!this.Rt&&te&&this.lastInput.targetDiagram){this.Rt=!0;var re=this;mi(function(){re.currentTool.standardMouseOver(),re.Rt=!1},10)}}}finally{this.aa=!0}}}};function fh(a,y){y=y.O.s;for(var x=y.length,b=0;b<x;b++)xd(a,y[b])}function xd(a,y){if(y instanceof Gu){var x=y.element;if(x!==null&&x instanceof HTMLImageElement){x.Bg instanceof Fn&&x.Bg.add(a);var b=y.Eg;if(b!==null&&b.sq===!0&&y.diagram!==null&&y.diagram.Xn.add(y),x.hn)if(x=x.getAttribute("src")||"",b=a.Og.I(x),b===null)b=[],b.push(y),a.Og.add(x,b);else{for(a=0;a<b.length;a++)if(b[a]===y)return;b.push(y)}}}}function fl(a,y){if(y instanceof Gu){var x=y.element;if(x!==null&&x instanceof HTMLImageElement&&x.hn){var b=x.getAttribute("src")||"",E=a.Og.I(b);if(E!==null){for(var z=0;z<E.length;z++)if(E[z]===y){E.splice(z,1),E.length===0&&(a.Og.remove(b),x.Fq&&x.removeEventListener("load",x.Fq),x.Yp&&x.removeEventListener("error",x.Yp),delete x.Fq,delete x.Yp,x.Bg instanceof Fn&&x.Bg.remove(a),ep(b));break}}}}}pn.prototype.Wd=function(){this.partManager.Wd()},pn.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},pn.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},pn.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},pn.prototype.Vb=function(a){return this.partManager.Vb(a)},pn.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},Ue=pn.prototype,Ue.Lc=function(a){return this.partManager.Lc(a)},Ue.ii=function(a){return this.partManager.ii(a)},Ue.Kc=function(a){return this.partManager.Kc(a)},Ue.ms=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];return this.partManager.ms.apply(this.partManager,y instanceof Array?y:fo(pr(y)))},Ue.ls=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];return this.partManager.ls.apply(this.partManager,y instanceof Array?y:fo(pr(y)))};function sd(a){var y=a.pa,x=a.Ca;a.Rw.h(y.x,y.y,Math.max(a.Aa,0)/x,Math.max(a.ya,0)/x),a.vd=!0}function Rh(a,y){a.Zi=!1;var x=a.Sp;x.D(y)||(x=x.copy(),a.Sp.assign(y),ku(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}Ue.Va=function(){if(this.Zi){var a=jn.alloc();Rh(this,this.computeBounds(a)),jn.free(a)}},Ue.rz=function(){for(var a=new Fn,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&a.add(x)}for(y=this.links;y.next();)x=y.value,x.isTopLevel&&a.add(x);return a.iterator},Ue.qz=function(){return this.ai.iterator},Ue.Uz=function(a){El(this),a&&sg(this,!0),this.ld?Ug(this,!1):(this.Jk=!0,au(this))};function sg(a,y){for(var x=a.ai.iterator;x.next();)gf(a,x.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function gf(a,y,x){if(y!==null){for(var b=y.gl.iterator;b.next();)gf(a,b.value,x);y.layout!==null&&(x?y.layout.isValidLayout=!1:y.layout.C())}}function Ug(a,y){if(a.xh&&!a.lt){var x=a.aa;a.aa=!0;var b=a.undoManager.transactionLevel,E=a.layout,z=a.animationManager;try{b===0&&(a.undoManager.isInternalTransaction=!0,a.Ea("Layout")),1>=b&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||_l(z,"Layout")),a.xh=!1;for(var te=a.ai.iterator;te.next();)_g(a,te.value,y,b);E.isValidLayout||(!y||E.isRealtime||E.isRealtime===null||b===0?(E.doLayout(a),El(a),E.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,b===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||b!==0&&b!==1||sl(z),a.aa=x}}}function _g(a,y,x,b){if(y!==null){for(var E=y.gl.iterator;E.next();)_g(a,E.value,x,b);E=y.layout,E===null||E.isValidLayout||(!x||E.isRealtime||b===0?(y.rh=!y.location.w(),E.doLayout(y),y.C(32),$a(a,y),E.isValidLayout=!0):a.xh=!0)}}Ue.yz=function(){for(var a=new Ht,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function Lp(a){function y(E){var z=E.toLowerCase(),te=new Ht;x.add(E,te),x.add(z,te),b.add(E,E),b.add(z,E)}var x=new Ii,b=new Ii;y("InitialAnimationStarting"),y("AnimationStarting"),y("AnimationFinished"),y("BackgroundSingleClicked"),y("BackgroundDoubleClicked"),y("BackgroundContextClicked"),y("ClipboardChanged"),y("ClipboardPasted"),y("DocumentBoundsChanged"),y("ExternalObjectsDropped"),y("GainedFocus"),y("InitialLayoutCompleted"),y("LayoutCompleted"),y("LinkDrawn"),y("LinkRelinked"),y("LinkReshaped"),y("LostFocus"),y("Modified"),y("ObjectSingleClicked"),y("ObjectDoubleClicked"),y("ObjectContextClicked"),y("PartCreated"),y("PartResized"),y("PartRotated"),y("SelectionMoved"),y("SelectionCopied"),y("SelectionDeleting"),y("SelectionDeleted"),y("SelectionGrouped"),y("SelectionUngrouped"),y("ChangingSelection"),y("ChangedSelection"),y("SubGraphCollapsed"),y("SubGraphExpanded"),y("TextEdited"),y("TreeCollapsed"),y("TreeExpanded"),y("ViewportBoundsChanged"),y("InvalidateDraw"),a.iw=x,a.hw=b}function zf(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function ff(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;bt("Unknown DiagramEvent name: "+y)}Ue.Bj=function(a,y){return a=ff(this,a),a!==null&&a.add(y),this},Ue.am=function(a,y){a=ff(this,a),a!==null&&a.remove(y)},Ue.R=function(a,y,x){var b=ff(this,a),E=new _c;if(E.diagram=this,a=zf(this,a),a!==null&&(E.name=a),y!==void 0&&(E.subject=y),x!==void 0&&(E.parameter=x),y=b.length,y===1)b.M(0)(E);else if(y!==0)for(b=b.Fa(),x=0;x<y;x++)(0,b[x])(E)};function Gg(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}Ue.Yj=function(a,y){return ss(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},pn.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?Wd(this,a):a.assign(this.documentBounds)};function ss(a,y,x,b){var E=a.Xh;if(E===null&&(a.Xh=E=new qp(a.avoidanceCellSize)),E.vs||E.group!==x||E.Yx!==b){if(E.Hx=Math.max(E.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.width)),E.Ix=Math.max(E.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.height)),x!==null&&(x=Hg(a,x)),x===null){y=jn.alloc(),a.computeOccupiedArea(y),y.Bc(100,100),E.initialize(y);for(var z=a.nodes;z.next();){var te=z.value,re=te.layer;re!==null&&re.visible&&!re.isTemporary&&Fh(a,te,b,y)}jn.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),E.initialize(y)),y=jn.alloc(),z=x.memberParts;z.next();)te=z.value,te instanceof Li&&Fh(a,te,b,y);jn.free(y)}E.group=x,E.Yx=b,E.vs=!1}else y&&lx(E);return E}function Hg(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?Hg(a,y.containingGroup):null}function Fh(a,y,x,b){if(y!==x&&y.isVisible()){if(y.avoidable&&!y.isLinkLabel){y=y.getAvoidableRect(b),a=a.Xh;var E=y.x,z=y.y;if(ap(a,E,z))for(x=(z-a.Od)/a.sc|0,b=Math.min((E+y.width-a.Nd)/a.rc|0,a.di),y=Math.min((z+y.height-a.Od)/a.sc|0,a.ei),E=(E-a.Nd)/a.rc|0;E<=b;E++)if(z=a.ac[E],z.fill)z.fill(Zh,x,y+1);else for(var te=x;te<=y;te++)z[te]=Zh}else if(y instanceof _r)for(y=y.memberParts;y.next();)E=y.value,E instanceof Li&&Fh(a,E,x,b)}}function ph(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}pn.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():pf(this)};function pf(a){a.vk===-1&&(a.vk=mi(function(){if(a.vk!==-1&&(a.ug(),a.lastInput.event!==null)){var y=a.computeAutoScrollPosition(a.wp);y.Xa(a.position)||(a.position=y,a.lastInput.documentPoint=a.Ps(a.wp),a.doMouseMove(),a.Zi=!0,y=jn.alloc(),a.computeBounds(y),y.ed(a.documentBounds),Rh(a,y),jn.free(y),a.Fc=!0,a.bd(),pf(a))}},a.vp))}pn.prototype.ug=function(){this.vk!==-1&&(yt.clearTimeout(this.vk),this.vk=-1)},pn.prototype.computeAutoScrollPosition=function(a){var y=this.position,x=this.xp;if(0>=x.top&&0>=x.left&&0>=x.right&&0>=x.bottom)return y;var b=this.viewportBounds,E=this.scale;b=jn.allocAt(0,0,b.width*E,b.height*E);var z=lt.allocAt(0,0);if(a.x>=b.x&&a.x<b.x+x.left&&this.allowHorizontalScroll){var te=Math.max(this.scrollHorizontalLineChange,1);te|=0,z.x-=te,a.x<b.x+x.left/2&&(z.x-=te),a.x<b.x+x.left/4&&(z.x-=4*te)}else a.x<=b.x+b.width&&a.x>b.x+b.width-x.right&&this.allowHorizontalScroll&&(te=Math.max(this.scrollHorizontalLineChange,1),te|=0,z.x+=te,a.x>b.x+b.width-x.right/2&&(z.x+=te),a.x>b.x+b.width-x.right/4&&(z.x+=4*te));return a.y>=b.y&&a.y<b.y+x.top&&this.allowVerticalScroll?(te=Math.max(this.scrollVerticalLineChange,1),te|=0,z.y-=te,a.y<b.y+x.top/2&&(z.y-=te),a.y<b.y+x.top/4&&(z.y-=4*te)):a.y<=b.y+b.height&&a.y>b.y+b.height-x.bottom&&this.allowVerticalScroll&&(te=Math.max(this.scrollVerticalLineChange,1),te|=0,z.y+=te,a.y>b.y+b.height-x.bottom/2&&(z.y+=te),a.y>b.y+b.height-x.bottom/4&&(z.y+=4*te)),z.Xa(Rr)||(y=new lt(y.x+z.x/E,y.y+z.y/E)),jn.free(b),lt.free(z),y},Ue=pn.prototype,Ue.Cs=function(){return null},Ue.av=function(){return null},Ue.bs=function(a,y){this.pj.add(a,y)},Ue.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof _r&&(y.$p=null)})};function lg(a,y,x){function b(){var de=+new Date;for(z=!0,te.reset();te.next();)if(!te.value[0].al){z=!1;break}z||de-ce>le?y(x,E,re):yt.requestAnimationFrame(b)}for(var E=x.callback,z=!0,te=a.Og.iterator;te.next();)if(!te.value[0].al){z=!1;break}if(typeof E!="function"||z)return y(x,E,a);var re=a,le=x.callbackTimeout||300,ce=+new Date;return yt.requestAnimationFrame(function(){b()}),null}Ue.Wz=function(a){return ls?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},Ue.Jx=function(a){return a===void 0&&(a={}),lg(this,this.Xz,a)},Ue.Xz=function(a,y,x){var b=Uf(x,a,"canvas",null);if(b===null)return null;x=b.Z.canvas;var E=null;if(x!==null)switch(E=a.returnType,E===void 0?E="string":E=E.toLowerCase(),E){case Jt+"data":E=b.getImageData(0,0,x.width,x.height);break;case Jt:b=(a.document||document).createElement("img"),b.src=x.toDataURL(a.type,a.details),E=b;break;case"blob":return typeof y!="function"&&bt('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof x.toBlob=="function"?(x.toBlob(y,a.type,a.details),"toBlob"):(y(null),null);default:E=x.toDataURL(a.type,a.details)}return typeof y=="function"?(y(E),null):E};function Uf(a,y,x,b){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&bt("properties argument must be an Object.");var E=y.size||null,z=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(z="NaN");var te=y.maxSize;y.maxSize===void 0&&(te=x==="SVG"?new fi(1/0,1/0):new fi(2e3,2e3));var re=y.position||null,le=y.parts||null,ce=y.padding===void 0?1:y.padding,de=y.background||null,ve=y.omitTemporary;ve===void 0&&(ve=!0);var Pe=y.document||document,Le=y.elementFinished||null,Fe=y.showTemporary;Fe===void 0&&(Fe=!ve),y=y.showGrid,y===void 0&&(y=Fe),E!==null&&isNaN(E.width)&&isNaN(E.height)&&(E=null),typeof ce=="number"?ce=new $i(ce):ce instanceof $i||bt("MakeImage padding must be a Margin or a number."),ce.left=Math.max(ce.left,0),ce.right=Math.max(ce.right,0),ce.top=Math.max(ce.top,0),ce.bottom=Math.max(ce.bottom,0),a.ib.Vc(!0),ve=new Oa(null,Pe,void 0,!0);var Ze=ve.context;if(!(E||z||le||re))return ve.width=a.Aa+Math.ceil(ce.left+ce.right),ve.height=a.ya+Math.ceil(ce.top+ce.bottom),x==="SVG"?b===null?null:(b.resize(ve.width,ve.height,ve.width,ve.height),b.ownerDocument=Pe,b.hs=Le,Rs(a,b.context,ce,new fi(ve.width,ve.height),a.Ca,a.pa,le,de,Fe,y),b.context):(a.Xm=!1,Rs(a,Ze,ce,new fi(ve.width,ve.height),a.Ca,a.pa,le,de,Fe,y),a.Xm=!0,ve.context);var pt=a.Pp,at=a.documentBounds.copy();if(at.Fv(a.yb),Fe)for(var Ct=a.Wa.s,Lt=Ct.length,Dt=0;Dt<Lt;Dt++){var Kt=Ct[Dt];if(Kt.visible&&Kt.isTemporary){Kt=Kt.Pa.s;for(var vn=Kt.length,Pi=0;Pi<vn;Pi++){var ji=Kt[Pi];ji.isInDocumentBounds&&ji.isVisible()&&(ji=ji.actualBounds,ji.w()&&at.ed(ji))}}}if(Ct=new lt(at.x,at.y),le!==null){for(Lt=new jn(0,0,0,0),Dt=!0,Kt=le.iterator,Kt.reset();Kt.next();)vn=Kt.value,vn instanceof nr&&(Pi=vn.layer,Pi!==null&&!Pi.visible||Pi!==null&&!Fe&&Pi.isTemporary||!vn.isVisible()||(vn=vn.actualBounds,vn.w()&&(Dt?(Dt=!1,Lt.assign(vn)):Lt.ed(vn))));at.width=Lt.width,at.height=Lt.height,Ct.x=Lt.x,Ct.y=Lt.y}return re!==null&&re.w()&&(Ct=re,z||(z=pt)),Lt=re=0,ce!==null&&(re=ce.left+ce.right,Lt=ce.top+ce.bottom),Dt=Kt=0,E!==null&&(Kt=E.width,Dt=E.height,isFinite(Kt)&&(Kt=Math.max(0,Kt-re)),isFinite(Dt)&&(Dt=Math.max(0,Dt-Lt))),E!==null&&z!==null?(z==="NaN"&&(z=pt),E.w()?(E=Kt,at=Dt):isNaN(Dt)?(E=Kt,at=at.height*z):(E=at.width*z,at=Dt)):E!==null?E.w()?(z=Math.min(Kt/at.width,Dt/at.height),E=Kt,at=Dt):isNaN(Dt)?(z=Kt/at.width,E=Kt,at=at.height*z):(z=Dt/at.height,E=at.width*z,at=Dt):z!==null?z==="NaN"&&te.w()?(z=Math.min((te.width-re)/at.width,(te.height-Lt)/at.height),z>pt?(z=pt,E=at.width,at=at.height):(E=te.width,at=te.height)):(E=at.width*z,at=at.height*z):(z=pt,E=at.width,at=at.height),ce!==null?(E+=re,at+=Lt):ce=new $i(0),te!==null&&(pt=te.width,te=te.height,isNaN(pt)&&(pt=2e3),isNaN(te)&&(te=2e3),isFinite(pt)&&(E=Math.min(E,pt)),isFinite(te)&&(at=Math.min(at,te))),ve.width=Math.ceil(E),ve.height=Math.ceil(at),x==="SVG"?b===null?null:(b.resize(ve.width,ve.height,ve.width,ve.height),b.ownerDocument=Pe,b.hs=Le,Rs(a,b.context,ce,new fi(Math.ceil(E),Math.ceil(at)),z,Ct,le,de,Fe,y),b.context):(a.Xm=!1,Rs(a,Ze,ce,new fi(Math.ceil(E),Math.ceil(at)),z,Ct,le,de,Fe,y),a.Xm=!0,ve.context)}Nt.Object.defineProperties(pn.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof ye||(a===""&&(a="default"),a=a.toLowerCase(),a!==this.nl&&(this.nl=a,a==="default"||a==="canvas"?(a=this.pj.get("svg"),a!==null&&a.Oa.remove(),this.ta&&(this.ib=this.ta.context)):a==="svg"?(this.pj.contains("svg")?a=this.pj.get("svg"):(a=new Wc(this,yt.document),this.bs("svg",a)),this.div!==null&&this.div.appendChild(a.Oa),this.ib=a.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))):a!=="debug"||this.pj.contains("SVG")||(a=new Wc(this,yt.document),this.bs("SVG",a),a.Oa.style.backgroundColor="whitesmoke",this.div!==null&&this.div.after(a.Oa)),this.hk()))}},div:{get:function(){return this.Ka},set:function(a){if(this.Ka!==a){var y=this.Ka;y!==null?(y.H=void 0,y.goDiagram=void 0,y.go=void 0,y.innerHTML="",this.ta!==null&&(y=this.ta.Oa,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.ta.mx()),this.ol&&(this.ol.disconnect(),this.ol=null),y=this.toolManager,y!==null&&(y.mouseDownTools.each(function(x){x.cancelWaitAfter()}),y.mouseMoveTools.each(function(x){x.cancelWaitAfter()}),y.mouseUpTools.each(function(x){x.cancelWaitAfter()})),y.cancelWaitAfter(),this.currentTool.doCancel(),this.ta=null,this.removeEventListener(yt,"resize",this.Ov,!1),this.removeEventListener(yt,"wheel",this.$j,!0),Lc===this&&(Lc=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),Lh(this,a),this.hk())}}},$w:{get:function(){return this.Sq}},pi:{get:function(){return this.hf}},draggedLink:{get:function(){return this.nt},set:function(a){this.nt!==a&&(this.nt=a,a!==null&&(this.Vt=a.fromPort,this.Wt=a.toPort))}},Mx:{get:function(){return this.Vt},set:function(a){this.Vt=a}},Nx:{get:function(){return this.Wt},set:function(a){this.Wt=a}},animationManager:{get:function(){return this.Yd}},undoManager:{get:function(){return this.cc.undoManager}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a,this.cc.skipsUndoManager=a}},delaysLayout:{get:function(){return this.lt},set:function(a){this.lt=a}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&Ln(a,"0 <= value <= 1",pn,"opacity"),this.pb=a,this.g("opacity",y,a),this.N())}},validCycle:{get:function(){return this.wu},set:function(a){var y=this.wu;y!==a&&(this.wu=a,this.g("validCycle",y,a))}},layers:{get:function(){return this.Wa.iterator}},isModelReadOnly:{get:function(){var a=this.cc;return a===null?!1:a.isReadOnly},set:function(a){var y=this.cc;y!==null&&(y.isReadOnly=a)}},isReadOnly:{get:function(){return this.Gg},set:function(a){var y=this.Gg;y!==a&&(this.Gg=a,this.g("isReadOnly",y,a))}},isEnabled:{get:function(){return this.Jd},set:function(a){var y=this.Jd;y!==a&&(this.Jd=a,this.g("isEnabled",y,a))}},allowClipboard:{get:function(){return this.Us},set:function(a){var y=this.Us;y!==a&&(this.Us=a,this.g("allowClipboard",y,a))}},allowCopy:{get:function(){return this.Fi},set:function(a){var y=this.Fi;y!==a&&(this.Fi=a,this.g("allowCopy",y,a))}},allowDelete:{get:function(){return this.Gi},set:function(a){var y=this.Gi;y!==a&&(this.Gi=a,this.g("allowDelete",y,a))}},allowDragOut:{get:function(){return this.Vs},set:function(a){var y=this.Vs;y!==a&&(this.Vs=a,this.g("allowDragOut",y,a))}},allowDrop:{get:function(){return this.Ws},set:function(a){var y=this.Ws;y!==a&&(this.Ws=a,this.g("allowDrop",y,a))}},allowTextEdit:{get:function(){return this.Pi},set:function(a){var y=this.Pi;y!==a&&(this.Pi=a,this.g("allowTextEdit",y,a))}},allowGroup:{get:function(){return this.Hi},set:function(a){var y=this.Hi;y!==a&&(this.Hi=a,this.g("allowGroup",y,a))}},allowUngroup:{get:function(){return this.Qi},set:function(a){var y=this.Qi;y!==a&&(this.Qi=a,this.g("allowUngroup",y,a))}},allowInsert:{get:function(){return this.Ys},set:function(a){var y=this.Ys;y!==a&&(this.Ys=a,this.g("allowInsert",y,a))}},allowLink:{get:function(){return this.Ii},set:function(a){var y=this.Ii;y!==a&&(this.Ii=a,this.g("allowLink",y,a))}},allowRelink:{get:function(){return this.Ki},set:function(a){var y=this.Ki;y!==a&&(this.Ki=a,this.g("allowRelink",y,a))}},allowMove:{get:function(){return this.Ji},set:function(a){var y=this.Ji;y!==a&&(this.Ji=a,this.g("allowMove",y,a))}},allowReshape:{get:function(){return this.Li},set:function(a){var y=this.Li;y!==a&&(this.Li=a,this.g("allowReshape",y,a))}},allowResize:{get:function(){return this.Mi},set:function(a){var y=this.Mi;y!==a&&(this.Mi=a,this.g("allowResize",y,a))}},allowRotate:{get:function(){return this.Ni},set:function(a){var y=this.Ni;y!==a&&(this.Ni=a,this.g("allowRotate",y,a))}},allowSelect:{get:function(){return this.Oi},set:function(a){var y=this.Oi;y!==a&&(this.Oi=a,this.g("allowSelect",y,a))}},allowUndo:{get:function(){return this.Zs},set:function(a){var y=this.Zs;y!==a&&(this.Zs=a,this.g("allowUndo",y,a))}},allowZoom:{get:function(){return this.at},set:function(a){var y=this.at;y!==a&&(this.at=a,this.g("allowZoom",y,a))}},hasVerticalScrollbar:{get:function(){return this.nn},set:function(a){var y=this.nn;y!==a&&(this.nn=a,this.Ee=!0,this.N(),this.g("hasVerticalScrollbar",y,a),ku(this,!1))}},hasHorizontalScrollbar:{get:function(){return this.mn},set:function(a){var y=this.mn;y!==a&&(this.mn=a,this.Ee=!0,this.N(),this.g("hasHorizontalScrollbar",y,a),ku(this,!1))}},allowHorizontalScroll:{get:function(){return this.Xs},set:function(a){var y=this.Xs;y!==a&&(this.Xs=a,this.g("allowHorizontalScroll",y,a),ku(this,!1))}},allowVerticalScroll:{get:function(){return this.$s},set:function(a){var y=this.$s;y!==a&&(this.$s=a,this.g("allowVerticalScroll",y,a),ku(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&Ln(a,">= 0",pn,"scrollHorizontalLineChange"),this.iu=a,this.g("scrollHorizontalLineChange",y,a))}},scrollVerticalLineChange:{get:function(){return this.mu},set:function(a){var y=this.mu;y!==a&&(0>a&&Ln(a,">= 0",pn,"scrollVerticalLineChange"),this.mu=a,this.g("scrollVerticalLineChange",y,a))}},lastInput:{get:function(){return this.cj},set:function(a){this.cj=a}},previousInput:{get:function(){return this.Qg},set:function(a){this.Qg=a}},firstInput:{get:function(){return this.bq},set:function(a){this.bq=a}},currentCursor:{get:function(){return this.it},set:function(a){if(a===""&&(a=this.Op),this.it!==a){var y=this.ta,x=this.Ka;if(y!==null&&x!==null){this.it=a;var b=y.style.cursor;y.style.cursor=a,x.style.cursor=a,y.style.cursor===b&&(y.style.cursor="-webkit-"+a,x.style.cursor="-webkit-"+a,y.style.cursor===b&&(y.style.cursor="-moz-"+a,x.style.cursor="-moz-"+a,y.style.cursor===b&&(y.style.cursor=a,x.style.cursor=a)))}}}},defaultCursor:{get:function(){return this.Op},set:function(a){a===""&&(a="auto");var y=this.Op;y!==a&&(this.Op=a,this.g("defaultCursor",y,a))}},click:{get:function(){return this.zh},set:function(a){var y=this.zh;y!==a&&(this.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.Fh},set:function(a){var y=this.Fh;y!==a&&(this.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.Bh},set:function(a){var y=this.Bh;y!==a&&(this.Bh=a,this.g("contextClick",y,a))}},mouseOver:{get:function(){return this.Qh},set:function(a){var y=this.Qh;y!==a&&(this.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.Oh},set:function(a){var y=this.Oh;y!==a&&(this.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.Nh},set:function(a){var y=this.Nh;y!==a&&(this.Nh=a,this.g("mouseHold",y,a))}},mouseDragOver:{get:function(){return this.Qt},set:function(a){var y=this.Qt;y!==a&&(this.Qt=a,this.g("mouseDragOver",y,a))}},mouseDrop:{get:function(){return this.Lh},set:function(a){var y=this.Lh;y!==a&&(this.Lh=a,this.g("mouseDrop",y,a))}},handlesDragDropForTopLevelParts:{get:function(){return this.xt},set:function(a){var y=this.xt;y!==a&&(this.xt=a,this.g("handlesDragDropForTopLevelParts",y,a))}},mouseEnter:{get:function(){return this.Mh},set:function(a){var y=this.Mh;y!==a&&(this.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.Ph},set:function(a){var y=this.Ph;y!==a&&(this.Ph=a,this.g("mouseLeave",y,a))}},toolTip:{get:function(){return this.$h},set:function(a){var y=this.$h;y!==a&&(this.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.Ch},set:function(a){var y=this.Ch;y!==a&&(this.Ch=a,this.g("contextMenu",y,a))}},commandHandler:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a,a.Xe(this))}},toolManager:{get:function(){return this.te},set:function(a){this.te!==a&&(this.te=a,a.diagram=this)}},defaultTool:{get:function(){return this.ob},set:function(a){var y=this.ob;y!==a&&(this.ob=a,a.diagram=this,this.currentTool===y&&(this.currentTool=a))}},currentTool:{get:function(){return this.hb},set:function(a){var y=this.hb;y&&(y.isActive&&y.doDeactivate(),y.cancelWaitAfter(),y.doStop()),a===null&&(a=this.defaultTool),a!==null&&(this.hb=a,a.diagram=this,a.doStart())}},selection:{get:function(){return this.Hw}},maxSelectionCount:{get:function(){return this.Nt},set:function(a){var y=this.Nt;if(y!==a)if(0<=a&&!isNaN(a)){if(this.Nt=a,this.g("maxSelectionCount",y,a),!this.undoManager.isUndoingRedoing&&(a=this.selection.count-a,0<a)){this.R("ChangingSelection",this.selection),y=this.selection.Fa();for(var x=0;x<a;x++)y[x].isSelected=!1;this.R("ChangedSelection",this.selection)}}else Ln(a,">= 0",pn,"maxSelectionCount")}},nodeSelectionAdornmentTemplate:{get:function(){return this.St},set:function(a){var y=this.St;y!==a&&(this.St=a,this.g("nodeSelectionAdornmentTemplate",y,a))}},groupSelectionAdornmentTemplate:{get:function(){return this.wt},set:function(a){var y=this.wt;y!==a&&(this.wt=a,this.g("groupSelectionAdornmentTemplate",y,a))}},linkSelectionAdornmentTemplate:{get:function(){return this.Kt},set:function(a){var y=this.Kt;y!==a&&(this.Kt=a,this.g("linkSelectionAdornmentTemplate",y,a))}},highlighteds:{get:function(){return this.nw}},isModified:{get:function(){var a=this.undoManager;return a.isEnabled?a.currentTransaction!==null?!0:this.rn&&this.Ce!==a.historyIndex:this.rn},set:function(a){if(this.rn!==a){this.rn=a;var y=this.undoManager;!a&&y.isEnabled&&(this.Ce=y.historyIndex),a||zg(this)}}},model:{get:function(){return this.cc},set:function(a){var y=this.cc;if(y!==a){this.currentTool.doCancel(),y&&y.undoManager!==a.undoManager&&y.undoManager.isInTransaction&&bt("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=Gd(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var b=this.vb;this.vb=!0,_l(this.animationManager,"Model"),y&&(this.pf!==null&&this.pf.each(function(z){return y.ik(z)}),y.ik(this.Oc)),this.cc=a,this.partManager=ag(this.cc.type);for(var E=0;E<x.length;E++)this.add(x[E]);a.Pe(this.Hb),this.partManager.addAllModeledParts(),a.ik(this.Hb),a.Pe(this.Oc),this.pf!==null&&this.pf.each(function(z){return a.Pe(z)}),this.vb=b,this.Ya(),this.vb||this.N(),y&&a.undoManager.copyProperties(y.undoManager)}}},aa:{get:function(){return this.rw},set:function(a){this.rw=a}},As:{get:function(){return this.sy}},skipsModelSourceBindings:{get:function(){return this.Iw},set:function(a){this.Iw=a}},Ns:{get:function(){return this.ou},set:function(a){this.ou=a}},nodeTemplate:{get:function(){return this.Lg.I("")},set:function(a){var y=this.Lg.I("");y!==a&&(this.Lg.add("",a),this.g("nodeTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},nodeTemplateMap:{get:function(){return this.Lg},set:function(a){var y=this.Lg;y!==a&&(this.Lg=a,this.g("nodeTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplate:{get:function(){return this.Yi.I("")},set:function(a){var y=this.Yi.I("");y!==a&&(this.Yi.add("",a),this.g("groupTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplateMap:{get:function(){return this.Yi},set:function(a){var y=this.Yi;y!==a&&(this.Yi=a,this.g("groupTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplate:{get:function(){return this.Kh.I("")},set:function(a){var y=this.Kh.I("");y!==a&&(this.Kh.add("",a),this.g("linkTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplateMap:{get:function(){return this.Kh},set:function(a){var y=this.Kh;y!==a&&(this.Kh=a,this.g("linkTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},isMouseCaptured:{get:function(){return this.qw},set:function(a){var y=this.ta;y!==null&&(y=y.Oa,y instanceof SVGElement||(a?(this.lastInput.bubbles=!1,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.addEventListener(yt,"pointermove",this.dk,!0),this.addEventListener(yt,"pointerdown",this.ui,!0),this.addEventListener(yt,"pointerup",this.fk,!0),this.addEventListener(yt,"pointerout",this.ek,!0),this.addEventListener(yt,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(yt,"wheel",this.$j,!0),this.addEventListener(yt,"selectstart",this.preventDefault,!1)):(this.removeEventListener(yt,"pointermove",this.dk,!0),this.removeEventListener(yt,"pointerdown",this.ui,!0),this.removeEventListener(yt,"pointerup",this.fk,!0),this.removeEventListener(yt,"pointerout",this.ek,!0),this.removeEventListener(yt,"pointercancel",this.ck,!0),this.addEventListener(y,"pointermove",this.dk,!1),this.addEventListener(y,"pointerdown",this.ui,!1),this.addEventListener(y,"pointerup",this.fk,!1),this.addEventListener(y,"pointerout",this.ek,!1),this.addEventListener(y,"pointercancel",this.ck,!1),this.removeEventListener(yt,"wheel",this.$j,!0),this.removeEventListener(yt,"selectstart",this.preventDefault,!1),this.addEventListener(y,"wheel",this.$j,!1)),this.qw=a))}},position:{get:function(){return this.pa},set:function(a){var y=lt.alloc().assign(this.pa);if(!y.D(a)){var x=this.viewportBounds.copy();this.pa.assign(a),dl(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?sd(this):(this.vb=!0,a=this.scale,Ih(this,this.Sp,this.Aa/a,this.ya/a,this.zk,!1),this.vb=!1),this.vb||this.onViewportBoundsChanged(x,this.viewportBounds,this.Ca,!1)}lt.free(y)}},initialPosition:{get:function(){return this.zt},set:function(a){this.zt.D(a)||(this.zt=a.J())}},initialScale:{get:function(){return this.At},set:function(a){this.At!==a&&(this.At=a)}},grid:{get:function(){return this.fe===null&&(this.fe=rg(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=rg(this)),a.type!==hi.Grid&&bt("Diagram.grid must be a Panel of type Panel.Grid");var x=y.panel;x!==null&&x.remove(y),this.fe=a,a.name="GRID",x!==null&&x.add(a),ad(this),this.N(),this.g("grid",y,a)}}},viewportBounds:{get:function(){return this.Rw}},viewSize:{get:function(){return this.wo},set:function(a){var y=this.viewSize;y.D(a)||(this.wo=a=a.J(),this.ya=this.Aa=0,a.w()?(this.Aa=a.width,this.ya=a.height):this.Ka!==null&&(this.Aa=this.Ka.clientWidth||1,this.ya=this.Ka.clientHeight||1),sd(this),this.Ya(),this.g("viewSize",y,a),this.redraw())}},fixedBounds:{get:function(){return this.ut},set:function(a){var y=this.ut;y.D(a)||(a.width!==-1/0&&a.height!==1/0&&a.height!==-1/0||bt("fixedBounds width/height must not be Infinity"),this.ut=a=a.J(),this.Ya(),this.g("fixedBounds",y,a))}},scrollMargin:{get:function(){return this.rj},set:function(a){typeof a=="number"&&(a=new $i(a));var y=this.rj;y.D(a)||(this.rj=a=a.J(),this.g("scrollMargin",y,a),this.hk())}},scrollMode:{get:function(){return this.sj},set:function(a){var y=this.sj;y!==a&&(this.sj=a,a===he&&ku(this,!1),this.g("scrollMode",y,a),this.Ee=!0,this.N())}},scrollsPageOnFocus:{get:function(){return this.nu},set:function(a){var y=this.nu;y!==a&&(this.nu=a,this.g("scrollsPageOnFocus",y,a))}},positionComputation:{get:function(){return this.Zt},set:function(a){var y=this.Zt;y!==a&&(this.Zt=a,ku(this,!1),this.g("positionComputation",y,a))}},scaleComputation:{get:function(){return this.fu},set:function(a){var y=this.fu;y!==a&&(this.fu=a,hf(this,this.scale,this.scale),this.g("scaleComputation",y,a))}},documentBounds:{get:function(){return this.Sp}},isVirtualized:{get:function(){return this.It},set:function(a){var y=this.It;y!==a&&(this.It=a,this.g("isVirtualized",y,a))}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&hf(this,y,a)}},defaultScale:{get:function(){return this.Pp},set:function(a){this.Pp=a}},autoScale:{get:function(){return this.yh},set:function(a){var y=this.yh;y!==a&&(this.yh=a,this.g("autoScale",y,a),a!==Xl&&ku(this,!1))}},initialAutoScale:{get:function(){return this.Fg},set:function(a){var y=this.Fg;y!==a&&(this.Fg=a,this.g("initialAutoScale",y,a))}},initialViewportSpot:{get:function(){return this.Bt},set:function(a){var y=this.Bt;y!==a&&(a.sb()||bt("initialViewportSpot must be a specific Spot: "+a),this.Bt=a,this.g("initialViewportSpot",y,a))}},initialDocumentSpot:{get:function(){return this.yt},set:function(a){var y=this.yt;y!==a&&(a.sb()||bt("initialViewportSpot must be a specific Spot: "+a),this.yt=a,this.g("initialDocumentSpot",y,a))}},minScale:{get:function(){return this.Ot},set:function(a){var y=this.Ot;y!==a&&(0<a?(this.Ot=a,this.g("minScale",y,a),a>this.scale&&(this.scale=a)):Ln(a,"> 0",pn,"minScale"))}},maxScale:{get:function(){return this.Mt},set:function(a){var y=this.Mt;y!==a&&(0<a?(this.Mt=a,this.g("maxScale",y,a),a<this.scale&&(this.scale=a)):Ln(a,"> 0",pn,"maxScale"))}},zoomPoint:{get:function(){return this.zu},set:function(a){this.zu.D(a)||(this.zu=a=a.J())}},contentAlignment:{get:function(){return this.zk},set:function(a){var y=this.zk;y.D(a)||(this.zk=a=a.J(),this.g("contentAlignment",y,a),ku(this,!1))}},initialContentAlignment:{get:function(){return this.pq},set:function(a){var y=this.pq;y.D(a)||(this.pq=a=a.J(),this.g("initialContentAlignment",y,a))}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new $i(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.Ya(),this.g("padding",y,a))}},partManager:{get:function(){return this.Pc},set:function(a){var y=this.Pc;y!==a&&(a.diagram!==null&&bt("Cannot share PartManagers between Diagrams: "+a.toString()),y&&y.Xe(null),this.Pc=a,a.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(a){var y=this.Sc;y!==a&&(this.Sc=a,a.diagram=this,a.group=null,this.xh=!0,this.g("layout",y,a),this.$b())}},isTreePathToChildren:{get:function(){return this.Ht},set:function(a){var y=this.Ht;if(y!==a&&(this.Ht=a,this.g("isTreePathToChildren",y,a),!this.undoManager.isUndoingRedoing))for(a=this.nodes;a.next();)Hp(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==Re&&a!==He&&a!==dt&&bt("Unknown Diagram.treeCollapsePolicy: "+a),this.uu=a,this.g("treeCollapsePolicy",y,a))}},Ue:{get:function(){return this.pw},set:function(a){this.pw=a}},avoidanceCellSize:{get:function(){return this.aw},set:function(a){this.Xh=null,this.aw=new fi(Math.max(1,a.width),Math.max(1,a.height))}},avoidanceLimit:{get:function(){return this.bw},set:function(a){this.bw=Math.max(1,a)}},autoScrollInterval:{get:function(){return this.vp},set:function(a){var y=this.vp;y!==a&&(this.vp=a,this.g("autoScrollInterval",y,a))}},autoScrollRegion:{get:function(){return this.xp},set:function(a){typeof a=="number"&&(a=new $i(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),Nt.Object.defineProperties(pn,{licenseKey:{get:function(){return vt.jc()},set:function(a){vt.add(a.replace(/\s/g,""))}},version:{get:function(){return At}}}),pn.prototype.makeImageData=pn.prototype.Jx,pn.prototype.makeImage=pn.prototype.Wz,pn.prototype.cacheGroupExternalLinks=pn.prototype.Fu,pn.prototype.addRenderer=pn.prototype.bs,pn.prototype.makeSVG=pn.prototype.av,pn.prototype.makeSvg=pn.prototype.Cs,pn.prototype.stopAutoScroll=pn.prototype.ug,pn.prototype.doAutoScroll=pn.prototype.gs,pn.prototype.isUnoccupied=pn.prototype.Yj,pn.prototype.raiseDiagramEvent=pn.prototype.R,pn.prototype.removeDiagramListener=pn.prototype.am,pn.prototype.addDiagramListener=pn.prototype.Bj,pn.prototype.findTreeRoots=pn.prototype.yz,pn.prototype.layoutDiagram=pn.prototype.Uz,pn.prototype.findTopLevelGroups=pn.prototype.qz,pn.prototype.findTopLevelNodesAndLinks=pn.prototype.rz,pn.prototype.ensureBounds=pn.prototype.Va,pn.prototype.findLinksByExample=pn.prototype.ls,pn.prototype.findNodesByExample=pn.prototype.ms,pn.prototype.findLinkForData=pn.prototype.Kc,pn.prototype.findNodeForData=pn.prototype.ii,pn.prototype.findPartForData=pn.prototype.Lc,pn.prototype.findLinkForKey=pn.prototype.findLinkForKey,pn.prototype.findNodeForKey=pn.prototype.Vb,pn.prototype.findPartForKey=pn.prototype.findPartForKey,pn.prototype.rebuildParts=pn.prototype.Wd,pn.prototype.transformViewToDoc=pn.prototype.Ps,pn.prototype.transformRectDocToView=pn.prototype.zA,pn.prototype.transformDocToView=pn.prototype.op,pn.prototype.centerRect=pn.prototype.es,pn.prototype.scrollToRect=pn.prototype.tv,pn.prototype.scroll=pn.prototype.scroll,pn.prototype.highlightCollection=pn.prototype.Jz,pn.prototype.highlight=pn.prototype.Iz,pn.prototype.selectCollection=pn.prototype.rA,pn.prototype.select=pn.prototype.select,pn.prototype.updateAllRelationshipsFromData=pn.prototype.rp,pn.prototype.updateAllTargetBindings=pn.prototype.updateAllTargetBindings,pn.prototype.commit=pn.prototype.commit,pn.prototype.rollbackTransaction=pn.prototype.Kf,pn.prototype.commitTransaction=pn.prototype.eb,pn.prototype.startTransaction=pn.prototype.Ea,pn.prototype.raiseChanged=pn.prototype.g,pn.prototype.raiseChangedEvent=pn.prototype.cb,pn.prototype.removeChangedListener=pn.prototype.ik,pn.prototype.addChangedListener=pn.prototype.Pe,pn.prototype.removeModelChangedListener=pn.prototype.mA,pn.prototype.addModelChangedListener=pn.prototype.Yw,pn.prototype.findLayer=pn.prototype.Qj,pn.prototype.removeLayer=pn.prototype.kA,pn.prototype.addLayerAfter=pn.prototype.Cy,pn.prototype.addLayerBefore=pn.prototype.Ww,pn.prototype.addLayer=pn.prototype.Al,pn.prototype.moveParts=pn.prototype.moveParts,pn.prototype.copyParts=pn.prototype.Kj,pn.prototype.removeParts=pn.prototype.Is,pn.prototype.remove=pn.prototype.remove,pn.prototype.add=pn.prototype.add,pn.prototype.clearDelayedGeometries=pn.prototype.bx,pn.prototype.setProperties=pn.prototype.nm,pn.prototype.attach=pn.prototype.Du,pn.prototype.set=pn.prototype.set,pn.prototype.resetInputOptions=pn.prototype.Sx,pn.prototype.setInputOption=pn.prototype.sA,pn.prototype.getInputOption=pn.prototype.Ql,pn.prototype.resetRenderingHints=pn.prototype.Tx,pn.prototype.setRenderingHint=pn.prototype.Xx,pn.prototype.getRenderingHint=pn.prototype.Gf,pn.prototype.maybeUpdate=pn.prototype.bd,pn.prototype.requestUpdate=pn.prototype.$b,pn.prototype.delayInitialization=pn.prototype.Xy,pn.prototype.isUpdateRequested=pn.prototype.Pz,pn.prototype.invalidateDocumentBounds=pn.prototype.Ya,pn.prototype.findObjectsNear=pn.prototype.og,pn.prototype.findPartsNear=pn.prototype.mz,pn.prototype.findObjectsIn=pn.prototype.Cf,pn.prototype.findPartsIn=pn.prototype.ux,pn.prototype.findObjectsAt=pn.prototype.ji,pn.prototype.findPartsAt=pn.prototype.lz,pn.prototype.findObjectAt=pn.prototype.ic,pn.prototype.findPartAt=pn.prototype.Ol,pn.prototype.focusObject=pn.prototype.zz,pn.prototype.alignDocument=pn.prototype.Jy,pn.prototype.zoomToRect=pn.prototype.BA,pn.prototype.zoomToFit=pn.prototype.zoomToFit,pn.prototype.diagramScroll=pn.prototype.kx,pn.prototype.focus=pn.prototype.focus;var Wg=new Ii,_f=null,ls=yt.document!==void 0,Bh=null,Kd="",Xl=new tn(pn,"None",0),Ru=new tn(pn,"Uniform",1),mh=new tn(pn,"UniformToFill",2),ug=new tn(pn,"CycleAll",10),Zg=new tn(pn,"CycleNotDirected",11),cg=new tn(pn,"CycleNotDirectedFast",12),dg=new tn(pn,"CycleNotUndirected",13),mf=new tn(pn,"CycleDestinationTree",14),vf=new tn(pn,"CycleSourceTree",15),he=new tn(pn,"DocumentScroll",1),Me=new tn(pn,"InfiniteScroll",2),Re=new tn(pn,"TreeParentCollapsed",21),He=new tn(pn,"AllParentsCollapsed",22),dt=new tn(pn,"AnyParentsCollapsed",23),vt=new Ht,At="2.3.10",Jt="image",Tn=null,$n=!1;function Cn(){if(ls){var a=yt.document.createElement("canvas"),y=a.getContext("2d"),x=gi("7ca11abfd022028846");y[x]=gi("398c3597c01238");for(var b=["5da73c80a36455d7038e4972187c3cae51fd22",In.Dx+"4ae6247590da4bb21c324ba3a84e385776",fr.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",Wt.za],E=1;5>E;E++)y[gi("7ca11abfd7330390")](gi(b[E-1]),10,15*E);for(y[x]=gi("39f046ebb36e4b"),x=1;5>x;x++)y[gi("7ca11abfd7330390")](gi(b[x-1]),10,15*x);(b.length!==4||b[0][0]!=="5"||b[3][0]!=="7")&&(fr.prototype.Cd=fr.prototype.Eu),Tn=a}}pn.className="Diagram",pn.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=yt.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof pn?y.H:null},pn.inherit=function(a,y){function x(){}if(Object.getPrototypeOf(a).prototype)throw Error(`Used go.Diagram.inherit defining already defined class
`+a);x.prototype=y.prototype,a.prototype=new x,a.prototype.constructor=a},pn.useDOM=function(a){ls=a?yt.document!==void 0:!1},pn.isUsingDOM=function(){return ls},pn.None=Xl,pn.Uniform=Ru,pn.UniformToFill=mh,pn.CycleAll=ug,pn.CycleNotDirected=Zg,pn.CycleNotDirectedFast=cg,pn.CycleNotUndirected=dg,pn.CycleDestinationTree=mf,pn.CycleSourceTree=vf,pn.DocumentScroll=he,pn.InfiniteScroll=Me,pn.TreeParentCollapsed=Re,pn.AllParentsCollapsed=He,pn.AnyParentsCollapsed=dt;function ci(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function si(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)e:{y="f";var x=yt[gi("76a715b2f73f148a")][gi("72ba13b5")]||"";if(a.Rc=!0,ls){var b=pn[gi("76a115b6ed251eaf4692")];if(b)for(var E=vt.iterator;E.next()&&(b=E.value,b=gi(b).split(gi("39e9")),!(6>b.length));){var z=gi(b[1]).split(".");if(b[4]!=="7da71ca0")break;var te=gi(In[gi("6cae19")]).split(".");if(z[0]>te[0]||z[0]===te[0]&&z[1]>=te[1]){var re=yt[gi("74a900bae4370f8b51")][gi("6fbb13a1c2311e8a57")].toLowerCase();if(te=re[gi("73a612b6fb191d")](gi("3aad1ab6e022098b4dc4")),z=gi(b[2]),-1<te&&(re=re[gi("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<re&&re<te),!a.Rc))break;for(te=x[gi("76ad18b4f73e")],re=x[gi("73a612b6fb191d")](gi("35e7"))+2;re<te;re++)y+=x[re];if(te=y[gi("73a612b6fb191d")](z),0>te&&z!==gi("7da71ca0ad381e90")&&(te=y[gi("73a612b6fb191d")](gi("76a715b2ef3e149757"))),0>te&&(te=y[gi("73a612b6fb191d")](gi("76a715b2ef3e149757"))),0>te&&(te=y[gi("73a612b6fb191d")](gi("2bfa41fdb3784bca12"))),0>te&&(te=x[gi("73a612b6fb191d")](gi("7baa19a6f76c1988428554"))),a.Rc=!(0<=te&&te<y[gi("73a612b6fb191d")](gi("35"))||y[gi("73a612b6fb191d")](gi("35"))===-1),!a.Rc||x[gi("73a612b6fb191d")](gi("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[gi("73a612b6fb191d")](z)),!a.Rc)||(te=yt[gi("76a715b2f73f148a")][gi("69ad17a1e03e")],re=te[gi("73a612b6fb191d")](gi("7fb002b6ed25128b4da25b2e")),-1<re&&(a.Rc=!(te[gi("73a612b6fb191d")](z)>re),!a.Rc)))break;if(z[0]==="#"){te=yt.document.createElement("div");for(var le=b[0].replace(/[A-Za-z]/g,"");4>le.length;)le+="9";if(re=le,le=le.substr(le.length-4),b="",b+=["gsh","gsf"][parseInt(le.substr(0,1),10)%2],b+=["Header","Background","Display","Feedback"][parseInt(le.substr(0,1),10)%4],te[gi("79a417a0f0181a8946")]=b,yt.document[gi("78a712aa")]){yt.document[gi("78a712aa")][gi("7bb806b6ed32388c4a875b")](te),le=yt.getComputedStyle(te).getPropertyValue(gi("78a704b7e62456904c9b12701b6532a8"));var ce=yt.getComputedStyle(te).getPropertyValue(gi("75b817b0ea2202"));if(yt.document[gi("78a712aa")][gi("68ad1bbcf533388c4a875b")](te),le){if(te=yt[gi("77a902b0eb1b1e804a8a")],ce==="0."+parseInt(re,10)%100||le.indexOf(parseInt(z[1]+z[2],16))!==-1&&le.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(te&&te(gi("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(b="."+b,z=0;z<document.styleSheets.length;z++){te=document.styleSheets[z].rules||document.styleSheets[z].cssRules;for(var de in te)if(b===te[de].selectorText){a.Rc=!1;break e}}}}else a.Rc=null,a.Rc=!1}}}else{for(de=x[gi("76ad18b4f73e")],E=x[gi("73a612b6fb191d")](gi("35e7"))+2;E<de;E++)y+=x[E];x=y[gi("73a612b6fb191d")](gi("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[gi("73a612b6fb191d")](gi("35")))}}}return 0<a.Rc&&a!==a.wy}ci.className="DiagramHelper";function Yn(a){this.j=a===void 0?new lt:a,this.o=new lt}Nt.Object.defineProperties(Yn.prototype,{point:{get:function(){return this.j},set:function(a){this.j=a}},shifted:{get:function(){return this.o},set:function(a){this.o=a}}});var Ur="DraggingInfo";Yn.className="DraggingInfo";function ie(a,y,x){this.node=a,this.info=y,this.Su=x}ie.className="DraggingNodeInfoPair";function ae(){this.reset()}ae.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new fi(NaN,NaN).freeze(),this.gridSnapCellSpot=Hs,this.gridSnapOrigin=new lt(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},ae.className="DraggingOptions";function fe(a,y){if(typeof a=="string"||yt.Element&&a instanceof Element)var x=pn.call(this,a)||this;else x=pn.call(this)||this,y=a;return pe(x),y&&x.nm(y),x}qt(fe,pn);function pe(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=tu,a.layout=new Ol}fe.prototype.reset=function(){pn.prototype.reset.call(this),pe(this)},fe.className="Palette";function ye(a,y){if(typeof a=="string"||yt.Element&&a instanceof Element)var x=pn.call(this,a)||this;else x=pn.call(this)||this,y=a;var b=x;x.animationManager.isEnabled=!1,x.vb=!0,x.V=null,x.mn=!1,x.nn=!1,x.F=!0,x.u=!0,x.ia=0,x.o=!1,x.ql=null,x.Xx("drawShadows",!1),a=new nr;var E=new eo;return E.stroke="magenta",E.strokeWidth=2,E.fill="transparent",E.name="BOXSHAPE",a.selectable=!0,a.selectionAdorned=!1,a.selectionObjectName="BOXSHAPE",a.locationObjectName="BOXSHAPE",a.resizeObjectName="BOXSHAPE",a.cursor="move",a.add(E),x.j=a,x.allowCopy=!1,x.allowDelete=!1,x.allowSelect=!0,x.autoScrollRegion=new $i(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new qe,x.toolManager.mouseMoveTools),x.click=function(){var z=b.observed;if(z!==null){var te=z.viewportBounds,re=b.lastInput.documentPoint;z.position=new lt(re.x-te.width/2,re.y-te.height/2)}},x.Pf=function(){b.Ya(),Xe(b)},x.Xd=function(){b.observed!==null&&(b.Ya(),b.N())},x.Ha=function(){1>b.updateDelay?b.N():b.o||(b.o=!0,setTimeout(function(){return b.redraw()},b.updateDelay))},x.Of=function(){b.observed!==null&&Xe(b)},x.autoScale=Ru,x.vb=!1,y&&Object.assign(x,y),x}qt(ye,pn),ye.prototype.computePixelRatio=function(){return 1},ye.prototype.redraw=function(){if(this.o&&1<=this.updateDelay){this.o=!1;var a=this.ta,y=this.ib;if(a!==null&&y!==null){if(yu(this),this.ql===null){var x=new Oa(null);x.width=a.width,x.height=a.height,this.ql=x}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),Be(this)}finally{this.ta=a,this.ib=y}}}pn.prototype.redraw.call(this)},ye.prototype.gc=function(){if(this.Ka===null&&bt("No div specified"),this.ta===null&&bt("No canvas specified"),!(this.ta instanceof Wc)&&(Vv(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){yu(this);var y=this.ta;a=this.ib,a.Vc(!0),a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,y.width,y.height),1>this.updateDelay?Be(this):this.ql!==null&&(a.drawImage(this.ql.Oa,0,0),y=this.Ab,y.reset(),this.scale!==1&&y.scale(this.scale),this.position.x===0&&this.position.y===0||y.translate(-this.position.x,-this.position.y),a.scale(this.Mb,this.Mb),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.yc()),y=this.Wa.s;for(var x=y.length,b=0;b<x;b++)y[b].gc(a,this);this.Fc=this.vd=!1}}};function Be(a){var y=a.observed;if(y!==null){var x=a.drawsTemporaryLayers,b=a.drawsGrid&&x,E=y.grid;b&&E!==null&&E.visible&&!isNaN(E.width)&&!isNaN(E.height)&&(E=jn.alloc().assign(a.viewportBounds).ed(y.viewportBounds),ad(y,E),jn.free(E),El(y));var z=a.Ab;z.reset(),a.scale!==1&&z.scale(a.scale),a.position.x===0&&a.position.y===0||z.translate(-a.position.x,-a.position.y),E=a.ib,E.scale(a.Mb,a.Mb),E.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),E.yc(),y=y.Wa.s,z=y.length;for(var te=0;te<z;te++){var re=y[te],le=a;if(re.visible&&re.opacity!==0){var ce=re.diagram.grid.part;if(!x&&re.isTemporary)b&&ce.layer===re&&(re=gl(re,E),ce.gc(E,le),E.globalAlpha=re);else{for(var de=gl(re,E),ve=le.scale,Pe=jn.alloc(),Le=re.Pa.s,Fe=Le.length,Ze=0;Ze<Fe;Ze++){var pt=Le[Ze];(b||pt!==ce)&&re.Oj(E,pt,le,null,ve,Pe,!1)}jn.free(Pe),E.globalAlpha=de}}}}}function Xe(a){var y=a.box;if(y!==null){var x=a.observed;if(x!==null){a.Fc=!0,x=x.viewportBounds;var b=y.selectionObject,E=fi.alloc();E.h(x.width,x.height),b.desiredSize=E,fi.free(E),a=2/a.scale,b instanceof eo&&(b.strokeWidth=a),y.location=new lt(x.x-a/2,x.y-a/2),y.isSelected=!0}}}ye.prototype.computeBounds=function(){var a=this.observed;if(a===null)return so;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},ye.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},ye.prototype.onViewportBoundsChanged=function(a,y,x,b){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),Xe(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.Oz=b,this.R("ViewportBoundsChanged",this.fc,a))},Nt.Object.defineProperties(ye.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof ye&&bt("Overview.observed Diagram may not be an Overview itself: "+a),y!==a){if(y!==null&&(this.remove(this.box),y.am("ViewportBoundsChanged",this.Pf),y.am("DocumentBoundsChanged",this.Xd),y.am("InvalidateDraw",this.Ha),y.am("AnimationFinished",this.Of)),this.V=a,a!==null&&(a.Bj("ViewportBoundsChanged",this.Pf),a.Bj("DocumentBoundsChanged",this.Xd),a.Bj("InvalidateDraw",this.Ha),a.Bj("AnimationFinished",this.Of),this.add(this.box)),this.Ya(),a===null){this.ql=null;var x=this.ta,b=this.ib;x&&b&&(b.setTransform(1,0,0,1,0,0),b.clearRect(0,0,x.width,x.height))}else this.Ha(null),Xe(this),this.N();this.g("observed",y,a)}}},box:{get:function(){return this.j},set:function(a){var y=this.j;y!==a&&(this.j=a,this.remove(y),this.add(this.j),Xe(this),this.g("box",y,a))}},drawsTemporaryLayers:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a,this.redraw())}},drawsGrid:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a,this.redraw())}},updateDelay:{get:function(){return this.ia},set:function(a){0>a&&(a=0),this.ia!==a&&(this.ia=a)}}}),ye.className="Overview";function qe(){da.call(this),this.j=null}qt(qe,da),qe.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||!a.allowMove||!a.allowSelect)return!1;var y=a.observed;if(y===null)return!1;var x=a.lastInput;return!x.left||a.currentTool!==this&&(!this.isBeyondDragSize()||x.isTouchEvent&&x.timestamp-a.firstInput.timestamp<this.delay)?!1:(this.findDraggablePart()===null&&(x=y.viewportBounds,this.j=new lt(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new lt(a.x-this.j.x,a.y-this.j.y)),!0)},qe.prototype.doActivate=function(){this.j=null,da.prototype.doActivate.call(this)},qe.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},qe.prototype.moveParts=function(){var a=this.diagram,y=a.observed;if(y!==null){var x=a.box;if(x!==null){if(this.j===null){var b=a.firstInput.documentPoint;x=x.location,this.j=new lt(b.x-x.x,b.y-x.y)}a=a.lastInput.documentPoint,y.position=new lt(a.x-this.j.x,a.y-this.j.y)}}},qe.className="OverviewDraggingTool";function ot(){kr(this),this.H=Lc,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=so,this.hb=!0,this.cg=null,this.ob=200}ot.prototype.toString=function(){return"CommandHandler"},ot.prototype.Xe=function(a){this.H=a},ot.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=ir?y.meta:y.control,b=y.shift,E=y.alt,z=y.key;!x||z!=="C"&&z!=="Insert"?x&&z==="X"||b&&z==="Del"?this.canCutSelection()&&this.cutSelection():x&&z==="V"||b&&z==="Insert"?this.canPasteSelection()&&this.pasteSelection():x&&z==="Y"||E&&b&&z==="Backspace"?this.canRedo()&&this.redo():x&&z==="Z"||E&&z==="Backspace"?this.canUndo()&&this.undo():z==="Del"||z==="Backspace"?this.canDeleteSelection()&&this.deleteSelection():x&&z==="A"?this.canSelectAll()&&this.selectAll():z==="Esc"?this.canStopCommand()&&this.stopCommand():z==="Up"?a.allowVerticalScroll&&(x?a.scroll("pixel","up"):a.scroll("line","up")):z==="Down"?a.allowVerticalScroll&&(x?a.scroll("pixel","down"):a.scroll("line","down")):z==="Left"?a.allowHorizontalScroll&&(x?a.scroll("pixel","left"):a.scroll("line","left")):z==="Right"?a.allowHorizontalScroll&&(x?a.scroll("pixel","right"):a.scroll("line","right")):z==="PageUp"?b&&a.allowHorizontalScroll?a.scroll("page","left"):a.allowVerticalScroll&&a.scroll("page","up"):z==="PageDown"?b&&a.allowHorizontalScroll?a.scroll("page","right"):a.allowVerticalScroll&&a.scroll("page","down"):z==="Home"?x&&a.allowVerticalScroll?a.scroll("document","up"):!x&&a.allowHorizontalScroll&&a.scroll("document","left"):z==="End"?x&&a.allowVerticalScroll?a.scroll("document","down"):!x&&a.allowHorizontalScroll&&a.scroll("document","right"):z===" "?this.canScrollToPart()&&this.scrollToPart():z==="Subtract"?this.canDecreaseZoom()&&this.decreaseZoom():z==="Add"?this.canIncreaseZoom()&&this.increaseZoom():x&&z==="0"?this.canResetZoom()&&this.resetZoom():b&&z==="Z"?this.canZoomToFit()&&this.zoomToFit():x&&!b&&z==="G"?this.canGroupSelection()&&this.groupSelection():x&&b&&z==="G"?this.canUngroupSelection()&&this.ungroupSelection():z==="F2"||y.event&&y.event.key==="F2"?this.canEditTextBlock()&&this.editTextBlock():z==="ContextMenu"||y.event&&y.event.key==="ContextMenu"?this.canShowContextMenu()&&this.showContextMenu():y.bubbles=!0:this.canCopySelection()&&this.copySelection()},ot.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},ot.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof pa&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},ot.prototype.canStopCommand=function(){return!0},ot.prototype.selectAll=function(){var a=this.diagram;a.N();try{a.currentCursor="wait",a.R("ChangingSelection",a.selection);for(var y=a.parts;y.next();)y.value.isSelected=!0;for(var x=a.nodes;x.next();)x.value.isSelected=!0;for(var b=a.links;b.next();)b.value.isSelected=!0}finally{a.R("ChangedSelection",a.selection),a.currentCursor=""}},ot.prototype.canSelectAll=function(){return this.diagram.allowSelect},ot.prototype.deleteSelection=function(){var a=this.diagram;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Delete"),a.R("SelectionDeleting",a.selection);for(var y=new Fn,x=a.selection.iterator;x.next();)pg(y,x.value,!0,this.deletesTree?1/0:0,this.deletesConnectedLinks?null:!1,function(b){return b.canDelete()});a.Is(y,!0),a.R("SelectionDeleted",y)}finally{a.eb("Delete"),a.R("ChangedSelection",a.selection),a.currentCursor=""}},ot.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},ot.prototype.copySelection=function(){var a=this.diagram,y=new Fn;for(a=a.selection.iterator;a.next();)pg(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(x){return x.canCopy()});this.copyToClipboard(y)},ot.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},ot.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},ot.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},ot.prototype.copyToClipboard=function(a){var y=this.diagram,x=null;if(a===null)Bh=null,Kd="";else{x=y.model;var b=!1,E=!1,z=null;try{x.Tl()&&(b=x.Jj,x.Jj=this.copiesParentKey),x.Wj()&&(E=x.Ij,x.Ij=this.copiesGroupKey),z=y.Kj(a,null,!0)}finally{x.Tl()&&(x.Jj=b),x.Wj()&&(x.Ij=E),x=new Ht,x.addAll(z),Bh=x,Kd=y.model.dataFormat}}y.R("ClipboardChanged",x)},ot.prototype.pasteFromClipboard=function(){var a=new Fn,y=Bh;if(y===null)return a;var x=this.diagram;if(Kd!==x.model.dataFormat)return a;var b=x.model,E=!1,z=!1,te=null;try{b.Tl()&&(E=b.Jj,b.Jj=this.copiesParentKey),b.Wj()&&(z=b.Ij,b.Ij=this.copiesGroupKey),te=x.Kj(y,x,!1)}finally{for(b.Tl()&&(b.Jj=E),b.Wj()&&(b.Ij=z),y=te.iterator;y.next();)x=y.value,b=y.key,x.location.w()||(b.location.w()?x.location=b.location:!x.position.w()&&b.position.w()&&(x.position=b.position)),a.add(x)}return a},ot.prototype.pasteSelection=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Paste");var x=this.pasteFromClipboard();0<x.count&&y.clearSelection(!0);for(var b=x.iterator;b.next();)b.value.isSelected=!0;if(a!==null){var E=y.computePartsBounds(y.selection);if(E.w()){var z=this.computeEffectiveCollection(y.selection,y.Wm);od(y,z,new lt(a.x-E.centerX,a.y-E.centerY),y.Wm,!1)}}y.R("ClipboardPasted",x)}finally{y.eb("Paste"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},ot.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||Bh===null||Bh.count===0||Kd!==a.model.dataFormat)},ot.prototype.undo=function(){this.diagram.undoManager.undo()},ot.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},ot.prototype.redo=function(){this.diagram.undoManager.redo()},ot.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},ot.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===Xl&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},ot.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==Xl?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},ot.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===Xl&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},ot.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==Xl?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},ot.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},ot.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},ot.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,b=a.scale;_l(y,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&b===this.Au&&!isNaN(this.Jt)&&a.documentBounds.D(this.yu)?(a.scale=this.Jt,a.position=this.sw,this.Au=NaN,this.yu=so):(this.Jt=b,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),sl(y)},ot.prototype.canZoomToFit=function(){return this.diagram.allowZoom},ot.prototype.scrollToPart=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.Va(),a===null){try{this.cg!==null&&(this.cg.next()?a=this.cg.value:this.cg=null)}catch(le){this.cg=null}a===null&&(0<y.highlighteds.count?this.cg=y.highlighteds.iterator:0<y.selection.count&&(this.cg=y.selection.iterator),this.cg!==null&&this.cg.next()&&(a=this.cg.value))}if(a!==null){var x=y.animationManager;_l(x,"Scroll To Part");var b=this.scrollToPartPause;if(0<b){var E=Tt(this,a,[a]);if(E.length===1)y.Ea(),y.es(a.actualBounds),y.eb("Scroll To Part");else{var z=function(){y.Ea();for(var le=E.pop();0<E.length&&le instanceof Li&&le.isTreeExpanded&&(!(le instanceof _r)||le.isSubGraphExpanded);)le=E.pop();0<E.length?(le instanceof nr&&y.tv(le.actualBounds),le instanceof Li&&!le.isTreeExpanded&&(le.isTreeExpanded=!0),le instanceof _r&&!le.isSubGraphExpanded&&(le.isSubGraphExpanded=!0)):(le instanceof nr&&y.es(le.actualBounds),y.am("LayoutCompleted",te)),y.eb("Scroll To Part")},te=function(){mi(z,(x.isEnabled?x.duration:0)+b)};y.Bj("LayoutCompleted",te),z()}}else{var re=y.position.copy();y.es(a.actualBounds),re.Xa(y.position)&&x.Cc()}}};function Tt(a,y,x){if(y.isVisible())return x;if(y instanceof zo)Tt(a,y.adornedPart,x);else if(y instanceof yi){var b=y.fromNode;b!==null&&Tt(a,b,x),y=y.toNode,y!==null&&Tt(a,y,x)}else y instanceof Li&&(b=y.labeledLink,b!==null&&Tt(a,b,x),b=y.pg(),b!==null&&(b.isTreeExpanded||b.wasTreeExpanded||x.push(b),Tt(a,b,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),Tt(a,y,x));return x}ot.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof nr)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},ot.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),_l(y.animationManager,"Collapse Tree");var x=new Ht;if(a!==null&&a.isTreeExpanded)a.collapseTree(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof Li&&E.isTreeExpanded&&(E.collapseTree(),x.add(E))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},ot.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Li&&a.isTreeExpanded))return!1;if(0<a.Qo().count)return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Li&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},ot.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),_l(y.animationManager,"Expand Tree");var x=new Ht;if(a!==null&&!a.isTreeExpanded)a.expandTree(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof Li&&!E.isTreeExpanded&&(E.expandTree(),x.add(E))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},ot.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Li)||a.isTreeExpanded)return!1;if(0<a.Qo().count)return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Li&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},ot.prototype.groupSelection=function(){var a=this.diagram,y=a.model;if(y.Xj()){var x=this.archetypeGroupData;if(x!==null){var b=null;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Group");for(var E=new Ht,z=a.selection.iterator;z.next();){var te=z.value;te.Zc()&&te.canGroup()&&E.add(te)}for(var re=new Ht,le=E.iterator;le.next();){var ce=le.value;z=!1;for(var de=E.iterator;de.next();)if(ce.Td(de.value)){z=!0;break}z||re.add(ce)}if(0<re.count){var ve=re.first().containingGroup;if(ve!==null)for(;ve!==null;){E=!1;for(var Pe=re.iterator;Pe.next();)if(!Pe.value.Td(ve)){E=!0;break}if(E)ve=ve.containingGroup;else break}if(x instanceof _r)Vc(x),b=x.copy(),b!==null&&a.add(b);else if(y.Yu(x)){var Le=y.copyNodeData(x);Gt(Le)&&(y.xf(Le),b=a.ii(Le))}if(b!==null){ve!==null&&this.isValidMember(ve,b)&&(b.containingGroup=ve);for(var Fe=re.iterator;Fe.next();){var Ze=Fe.value;this.isValidMember(b,Ze)&&(Ze.containingGroup=b)}a.clearSelection(!0),b.isSelected=!0}}a.R("SelectionGrouped",b)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},ot.prototype.canGroupSelection=function(){var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowGroup||!a.model.Xj()||this.archetypeGroupData===null)return!1;for(a=a.selection.iterator;a.next();){var y=a.value;if(y.Zc()&&y.canGroup())return!0}return!1};function mn(a){var y=gn();for(a=a.iterator;a.next();){var x=a.value;x instanceof yi||y.push(x)}a=new Fn,x=y.length;for(var b=0;b<x;b++){for(var E=y[b],z=!0,te=0;te<x;te++)if(E.Td(y[te])){z=!1;break}z&&a.add(E)}return kn(y),a}ot.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof yi)return!1;if(a!==null){if(a===y||a.Td(y))return!1;var x=a.memberValidation;if(x!==null&&!x(a,y)||a.data===null&&y.data!==null||a.data!==null&&y.data===null)return!1}return x=this.memberValidation,x!==null?x(a,y):!0},ot.prototype.ungroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.model;if(x.Xj())try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Ungroup");var b=new Ht;if(a!==null)b.add(a);else for(var E=y.selection.iterator;E.next();){var z=E.value;z instanceof _r&&z.canUngroup()&&b.add(z)}var te=new Ht;if(0<b.count){y.clearSelection(!0);for(var re=b.iterator;re.next();){var le=re.value;le.expandSubGraph();var ce=le.containingGroup,de=ce!==null&&ce.data!==null?x.wa(ce.data):void 0;te.addAll(le.memberParts);for(var ve=te.iterator;ve.next();){var Pe=ve.value;if(Pe.isSelected=!0,!(Pe instanceof yi)){var Le=Pe.data;Le!==null?x.mp(Le,de):Pe.containingGroup=ce}}y.remove(le)}}y.R("SelectionUngrouped",b,te)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},ot.prototype.canUngroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly||y.isModelReadOnly||!y.allowDelete||!y.allowUngroup||!y.model.Xj())return!1;if(a!==null){if(!(a instanceof _r))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof _r&&y.canUngroup())return!0;return!1},ot.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=mn(a).iterator;a.next();){var b=a.value;b.containingGroup!==null&&(!y||this.isValidMember(null,b)?b.containingGroup=null:x=!1)}return x},ot.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),_l(y.animationManager,"Collapse SubGraph");var x=new Ht;if(a!==null&&a.isSubGraphExpanded)a.collapseSubGraph(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof _r&&E.isSubGraphExpanded&&(E.collapseSubGraph(),x.add(E))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},ot.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof _r&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof _r&&y.isSubGraphExpanded)return!0;return!1},ot.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),_l(y.animationManager,"Expand SubGraph");var x=new Ht;if(a!==null&&!a.isSubGraphExpanded)a.expandSubGraph(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof _r&&!E.isSubGraphExpanded&&(E.expandSubGraph(),x.add(E))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},ot.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof _r&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof _r&&!y.isSubGraphExpanded)return!0;return!1},ot.prototype.editTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.toolManager.findTool("TextEditing");if(x!==null){if(a===null){a=null;for(var b=y.selection.iterator;b.next();){var E=b.value;if(E.canEdit()){a=E;break}}if(a===null)return;a=a.Nl(function(z){return z instanceof Pa&&z.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},ot.prototype.canEditTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly||y.isModelReadOnly||!y.allowTextEdit||y.toolManager.findTool("TextEditing")===null)return!1;if(a!==null){if(!(a instanceof Pa))return!1;if(a=a.part,a!==null&&a.canEdit())return!0}else for(y=y.selection.iterator;y.next();)if(a=y.value,a.canEdit()&&(a=a.Nl(function(x){return x instanceof Pa&&x.editable}),a!==null))return!0;return!1},ot.prototype.showContextMenu=function(a){var y=this.diagram,x=y.toolManager.findTool("ContextMenu");if(x!==null&&(a===void 0&&(a=0<y.selection.count?y.selection.first():y),a=x.findObjectWithContextMenu(a),a!==null)){var b=y.lastInput,E=null;a instanceof Rt?E=a.ga(wo):y.viewportBounds.ca(b.documentPoint)||(E=y.viewportBounds,E=new lt(E.x+E.width/2,E.y+E.height/2)),E!==null&&(b.viewPoint=y.op(E),b.documentPoint=E,b.left=!1,b.right=!0,b.up=!0),y.currentTool=x,Jo(x,!1,a)}},ot.prototype.canShowContextMenu=function(a){var y=this.diagram,x=y.toolManager.findTool("ContextMenu");return x===null?!1:(a===void 0&&(a=0<y.selection.count?y.selection.first():y),x.findObjectWithContextMenu(a)!==null)},ot.prototype.computeEffectiveCollection=function(a,y){var x=this.diagram,b=x.toolManager.findTool("Dragging"),E=x.currentTool===b;if(y===void 0&&(y=E?b.dragOptions:x.Wm),b=new Ii,a===null)return b;for(var z=a.iterator;z.next();)hc(x,b,z.value,E,y);if(x.draggedLink!==null&&y.dragsLink)return b;for(z=a.iterator;z.next();)a=z.value,a instanceof yi&&(y=a.fromNode,y===null||b.contains(y)?(y=a.toNode,y===null||b.contains(y)||b.remove(a)):b.remove(a));return b},Nt.Object.defineProperties(ot.prototype,{diagram:{get:function(){return this.H}},copiesClipboardData:{get:function(){return this.o},set:function(a){this.o=a}},copiesConnectedLinks:{get:function(){return this.u},set:function(a){this.u=a}},deletesConnectedLinks:{get:function(){return this.Ha},set:function(a){this.Ha=a}},copiesTree:{get:function(){return this.ia},set:function(a){this.ia=a}},deletesTree:{get:function(){return this.nb},set:function(a){this.nb=a}},copiesParentKey:{get:function(){return this.V},set:function(a){this.V=a}},copiesGroupKey:{get:function(){return this.F},set:function(a){this.F=a}},archetypeGroupData:{get:function(){return this.j},set:function(a){this.j=a}},memberValidation:{get:function(){return this.ij},set:function(a){this.ij=a}},defaultScale:{get:function(){return this.diagram.defaultScale},set:function(a){this.diagram.defaultScale=a}},zoomFactor:{get:function(){return this.Hb},set:function(a){1<a||bt("zoomFactor must be larger than 1.0, not: "+a),this.Hb=a}},isZoomToFitRestoreEnabled:{get:function(){return this.hb},set:function(a){this.hb=a}},scrollToPartPause:{get:function(){return this.ob},set:function(a){this.ob=a}}}),ot.className="CommandHandler",kd=function(){return new ot};function Rt(){kr(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new lt(NaN,NaN).freeze(),this.jd=ds,this.Ab=new fr,this.wh=new fr,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=ul,this.uc=new jn(NaN,NaN,NaN,NaN).freeze(),this.Ib=new jn(NaN,NaN,NaN,NaN).freeze(),this.dc=new jn(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=Vr,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 Qn,_n,pi,Ci,ki,ar,Nr,Er,$r,Hn;Rt.prototype.cloneProtected=function(a){a.l=this.l|6144,a.pb=this.pb,a.bn=this.bn,a.Ma=this.Ma,a.pa.assign(this.pa),a.jd=this.jd.J(),this.Lb!==null?a.Lb=this.Lb.copy():a.Lb=null,a.Ca=this.Ca,a.Kb=this.Kb,a.Kg=this.Kg.J(),a.uc.assign(this.uc),a.Ib.assign(this.Ib),a.dc.assign(this.dc),a.Yn=this.Yn,this.ba!==null&&(a.ba=this.ba.copy()),a.Jb=this.Jb.J(),a.sk=this.sk.J(),a.io=this.io,a.Ag=this.Ag,this.Ua!==null&&(a.Ua=this.Ua.copy()),this.A!==null&&(a.A=this.A.nc?this.A:this.A.copy()),this.Dh!==null&&(a.Dh=Qt(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},Rt.prototype.Vw=function(a){var y=this.Dh;if(yn(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},Rt.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},Rt.prototype.clone=function(){var a=new this.constructor;if(this.cloneProtected(a),this.Dh!==null)for(var y=0;y<this.Dh.length;y++){var x=this.Dh[y];a[x]=this[x]}return a},Rt.prototype.copy=function(){return this.clone()},Ue=Rt.prototype,Ue.qb=function(a){a.classType===yi?a.name.indexOf("Orient")===0?this.segmentOrientation=a:bt("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===Rt&&(this.stretch=a)},Ue.toString=function(){return Bn(this.constructor)+"#"+Dr(this)},Ue.th=function(){this.A!==null&&(this.A.nc=!0)};function Cr(a){a.A===null?a.A=new Tc:a.A.nc&&(a.A=a.A.copy())}Ue.Xc=function(){if(this.ba===null){var a=new zu;a.Xi=is,a.yj=is,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},Ue.cb=function(a,y,x,b,E,z,te){var re=this.part;if(re!==null&&(re.gk(a,y,x,b,E,z,te),x===this&&a===Ma&&fs(this)&&$o(this,re,y),z=this.diagram,this.animationTriggers===null||z===null||!z.pi||z.undoManager.isUndoingRedoing||z.animationManager.Dm||(a=this.animationTriggers.get(y),a!==null&&z.animationManager.isEnabled&&!z.animationManager.isTicking&&(this.jo===null&&(this.jo=new Ii),te=z.undoManager.transactionLevel===0,a.startCondition===wl?te=!0:a.startCondition===Ls&&(te=!1),te?(z=new qa,Ua(a,z),te=this.jo.get(a),te!==null&&te.stop(),this.jo.add(a,z),z.vu=this,z.Nw=a,z.add(this,y,b,E),z.start()):(_l(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,b,E)))),this instanceof hi&&x===re&&(re.l&16777216)!==0&&re.data!==null))for(x=this.O.s,b=x.length,E=0;E<b;E++)re=x[E],re instanceof hi&&Yg(re,function(le){le.data!==null&&le.l&16777216&&le.La(y)})};function $o(a,y,x){var b=a.ih();if(b!==null)for(var E=a.localBindings.iterator;E.next();){var z=E.value,te=null;if(z.sourceName!==null){if(te=Tx(z,b,a),te===null)continue;z.sp(a,te,x,null)}else if(z.isToModel){var re=y.diagram;re===null||re.skipsModelSourceBindings||z.sp(a,re.model.modelData,x,b)}else{if(re=b.data,re===null)continue;var le=y.diagram;le===null||le.skipsModelSourceBindings||z.sp(a,re,x,b)}te===a&&(re=b.ks(z.Ai),re!==null&&z.Mv(re,te,x))}}Ue.ks=function(a){return this.bindingId===a?this:null},Ue.g=function(a,y,x){this.cb(Ma,a,this,y,x)},Ue.Ge=function(a,y,x,b){var E=this.uc;if(E.h(a,y,x,b),this.Ca!==1||this.Kb!==0){this.Lb===null&&(this.Lb=new fr);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),z.pp(E)}};function oi(a,y,x,b){return a.pickable===!1?!1:(b.multiply(a.transform),x?a.Yc(y,b):a.fh(y,b))}Ue.tx=function(a,y,x){if(this.pickable===!1)return!1;var b=this.naturalBounds;return y=a.Bf(y),x?ra(a.x,a.y,0,0,0,b.height)<=y||ra(a.x,a.y,0,b.height,b.width,b.height)<=y||ra(a.x,a.y,b.width,b.height,b.width,0)<=y||ra(a.x,a.y,b.width,0,0,0)<=y:a.zd(0,0)<=y&&a.zd(0,b.height)<=y&&a.zd(b.width,0)<=y&&a.zd(b.width,b.height)<=y},Ue.se=function(){return!0},Ue.ca=function(a){var y=lt.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return lt.free(y),!1;var b=this.diagram;if(b!==null&&b.wq){var E=b.Ql("extraTouchThreshold"),z=b.Ql("extraTouchArea"),te=z/2,re=this.naturalBounds;b=this.Df()*b.scale;var le=1/b;if(re.width*b<E&&re.height*b<E)return a=Qr(x.x-te*le,x.y-te*le,x.width+z*le,x.height+z*le,y.x,y.y),lt.free(y),a}return E=!1,(this instanceof zo||this instanceof eo?Qr(x.x-5,x.y-5,x.width+10,x.height+10,y.x,y.y):x.ca(y))&&(this.tb&&!this.tb.ca(y)?E=!1:this.areaBackground!==null&&x.ca(y)||this.Ma!==null&&this.dc.ca(a)?E=!0:E=this.gh(a)),lt.free(y),E},Ue.gh=function(a){var y=this.naturalBounds;return Qr(0,0,y.width,y.height,a.x,a.y)},Ue.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=jn.allocAt(0,0,y.width,y.height);var x=this.transform,b=!1,E=lt.allocAt(a.x,a.y);return y.ca(x.Cd(E))&&(E.h(a.x,a.bottom),y.ca(x.Cd(E))&&(E.h(a.right,a.bottom),y.ca(x.Cd(E))&&(E.h(a.right,a.y),y.ca(x.Cd(E))&&(b=!0)))),lt.free(E),jn.free(y),b},Ue.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,b=!1,E=lt.allocAt(0,0);return a.ca(y.Ga(E))&&(E.h(0,x.height),a.ca(y.Ga(E))&&(E.h(x.width,x.height),a.ca(y.Ga(E))&&(E.h(x.width,0),a.ca(y.Ga(E))&&(b=!0)))),lt.free(E),b},Ue.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,b=lt.allocAt(0,0),E=lt.allocAt(0,x.height),z=lt.allocAt(x.width,x.height),te=lt.allocAt(x.width,0),re=!1;if(a.ca(y.Ga(b))||a.ca(y.Ga(E))||a.ca(y.Ga(z))||a.ca(y.Ga(te)))re=!0;else{x=jn.allocAt(0,0,x.width,x.height);var le=lt.allocAt(a.x,a.y);x.ca(y.Cd(le))?re=!0:(le.h(a.x,a.bottom),x.ca(y.Cd(le))?re=!0:(le.h(a.right,a.bottom),x.ca(y.Cd(le))?re=!0:(le.h(a.right,a.y),x.ca(y.Cd(le))&&(re=!0)))),lt.free(le),jn.free(x),!re&&(Wt.us(a,b,E)||Wt.us(a,E,z)||Wt.us(a,z,te)||Wt.us(a,te,b))&&(re=!0)}return lt.free(b),lt.free(E),lt.free(z),lt.free(te),re},Ue.ga=function(a,y){if(y===void 0&&(y=new lt),a instanceof _i){var x=this.naturalBounds;y.h(a.x*x.width+a.offsetX,a.y*x.height+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},Ue.mi=function(a){a===void 0&&(a=new jn);var y=this.naturalBounds,x=this.oe,b=lt.allocAt(0,0).transform(x);return a.h(b.x,b.y,0,0),b.h(y.width,0).transform(x),Xr(a,b.x,b.y,0,0),b.h(y.width,y.height).transform(x),Xr(a,b.x,b.y,0,0),b.h(0,y.height).transform(x),Xr(a,b.x,b.y,0,0),lt.free(b),a},Ue.li=function(){var a=this.oe;return a.m11===1&&a.m12===0?a=0:(a=180*Math.atan2(a.m12,a.m11)/Math.PI,0>a&&(a+=360)),a},Ue.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},Ue.qs=function(a,y){return y===void 0&&(y=new lt),y.assign(a),this.oe.Cd(y),y},Ue.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Ue.Sj=function(a,y,x,b,E){var z=this.transform,te=1/(z.m11*z.m22-z.m12*z.m21),re=z.m22*te,le=-z.m12*te,ce=-z.m21*te,de=z.m11*te,ve=te*(z.m21*z.dy-z.m22*z.dx),Pe=te*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,Wt.Ff(z.left,z.top,z.right,z.bottom,a,y,x,b,E)):(te=a*re+y*ce+ve,a=a*le+y*de+Pe,y=x*re+b*ce+ve,x=x*le+b*de+Pe,E.h(0,0),b=this.naturalBounds,x=Wt.Ff(0,0,b.width,b.height,te,a,y,x,E),E.transform(z),x)},Rt.prototype.measure=function(a,y,x,b){if(xu(this)!==!1){var E=this.Kg,z=E.right+E.left;E=E.top+E.bottom,a=Math.max(a-z,0),y=Math.max(y-E,0),x=Math.max((x||0)-z,0),b=Math.max((b||0)-E,0),z=this.angle,E=this.desiredSize;var te=this.kq();z===90||z===270?(a=isFinite(E.height)?E.height+te:a,y=isFinite(E.width)?E.width+te:y):(a=isFinite(E.width)?E.width+te:a,y=isFinite(E.height)?E.height+te:y),E=x||0,te=b||0;var re=this instanceof hi;switch(Ps(this,!0)){case _n:te=E=0,re&&(y=a=1/0);break;case Qn:isFinite(a)&&a>x&&(E=a),isFinite(y)&&y>b&&(te=y);break;case Ci:isFinite(a)&&a>x&&(E=a),te=0,re&&(y=1/0);break;case ki:isFinite(y)&&y>b&&(te=y),E=0,re&&(a=1/0)}re=this.maxSize;var le=this.minSize;E>re.width&&le.width<re.width&&(E=re.width),te>re.height&&le.height<re.height&&(te=re.height),x=Math.max(E,le.width),b=Math.max(te,le.height),re.width<x&&(x=Math.min(le.width,x)),re.height<b&&(b=Math.min(le.height,b)),a=Math.min(re.width,a),y=Math.min(re.height,y),a=Math.max(x,a),y=Math.max(b,y),(z===90||z===270)&&(z=a,a=y,y=z,z=x,x=b,b=z),this.uc.ka(),this.Wl(a,y,x,b),this.uc.freeze(),this.uc.w()||bt("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),cs(this,!1)}},Rt.prototype.Wl=function(){},Rt.prototype.Dd=function(){return!1},Rt.prototype.arrange=function(a,y,x,b,E){this.Uk();var z=jn.alloc();z.assign(this.Ib),this.Ib.ka(),Il(this)===!1?this.Ib.h(a,y,x,b):this.eh(a,y,x,b),this.Ib.freeze(),E===void 0?this.tb=null:this.tb=E,x=!1,E!==void 0?x=!0:(E=this.panel,E!==null&&zh(E)&&(E=E.panel),E!==null&&(E=E.dc,b=this.measuredBounds,this.areaBackground!==null&&(b=this.Ib),x=y+b.height,b=a+b.width,x=!(0<=a+.05&&b<=E.width+.05&&0<=y+.05&&x<=E.height+.05),this instanceof Pa&&(a=this.naturalBounds,this.Lq>a.height||this.Cb>a.width))&&(x=!0)),this.l=x?this.l|256:this.l&-257,this.Ib.w()||bt("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),sr(this,!1),jn.free(z)},Ue=Rt.prototype,Ue.eh=function(){};function us(a,y,x,b,E){if(a.Ib.h(y,x,b,E),!a.desiredSize.w()){var z=a.uc;x=a.Kg,y=x.right+x.left;var te=x.top+x.bottom;switch(x=z.width+y,z=z.height+te,b+=y,E+=te,y=Ps(a,!0),x===b&&z===E&&(y=_n),y){case _n:(x>b||z>E)&&(cs(a,!0),a.measure(x>b?b:x,z>E?E:z,0,0));break;case Qn:cs(a,!0),a.measure(b,E,0,0);break;case Ci:cs(a,!0),a.measure(b,z,0,0);break;case ki:cs(a,!0),a.measure(x,E,0,0)}}}Ue.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||$v(x,!0),this.N(),Oo(a,y)||(x.oh(),this.Pn(x)))},Ue.Pn=function(a){this.portId!==null&&($v(a,!0),a instanceof Li&&KS(a,this))},Ue.gc=function(a,y){if(!ll(this,a,y)&&this.visible){var x=this.opacity;if(x!==0){var b=1;x!==1&&(b=a.globalAlpha,a.globalAlpha=b*x);var E="";this.filter!==""&&(E=a.filter,a.filter=this.filter);var z=this instanceof hi&&zh(this),te=this.Ib;if(z){var re=this.Ib,le=this.dc,ce=this.areaBackground,de=this.Ma;ce===null&&de===null||a.yc(),ce!==null&&(Ca(this,a,ce,!0,!0,le,re),ce instanceof ko&&ce.type===Oc?(a.beginPath(),a.rect(re.x,re.y,re.width,re.height),a.ng(ce)):a.fillRect(re.x,re.y,re.width,re.height)),de!==null&&(Ca(this,a,de,!0,!1,le,re),de instanceof ko&&de.type===Oc?(a.beginPath(),a.rect(re.x,re.y,re.width,re.height),a.ng(de)):a.fillRect(re.x,re.y,re.width,re.height)),this.hh(a,y)}if(!z&&(z||te.width!==0&&te.height!==0&&!isNaN(te.x)&&!isNaN(te.y))){z=this.transform,re=this.panel,this.l&4096&&Ts(this),ce=this.part,le=!1;var ve=0;ce&&y.Gf("drawShadows")&&(le=ce.isShadowed)&&(de=ce.shadowOffset,ve=Math.max(de.y,de.x)*y.scale*y.Mb),de=this.Dd();var Pe;if(!(Pe=y.$i||!de)){var Le=this.naturalBounds;Pe=this.wh;var Fe=Pe.m11,Ze=Pe.m21,pt=Pe.dx,at=Pe.m12,Ct=Pe.m22,Lt=Pe.dy,Dt,Kt=Dt=0;Pe=Dt*Fe+Kt*Ze+pt;var vn=Dt*at+Kt*Ct+Lt;Dt=Le.width+ve,Kt=0;var Pi=Dt*Fe+Kt*Ze+pt;Dt=Dt*at+Kt*Ct+Lt,Kt=Math.min(Pe,Pi);var ji=Math.min(vn,Dt),Di=Math.max(Pe+0,Pi)-Kt,vi=Math.max(vn+0,Dt)-ji;Pe=Kt,vn=ji,Dt=Le.width+ve,Kt=Le.height+ve,Pi=Dt*Fe+Kt*Ze+pt,Dt=Dt*at+Kt*Ct+Lt,Kt=Math.min(Pe,Pi),ji=Math.min(vn,Dt),Di=Math.max(Pe+Di,Pi)-Kt,vi=Math.max(vn+vi,Dt)-ji,Pe=Kt,vn=ji,Dt=0,Kt=Le.height+ve,Pi=Dt*Fe+Kt*Ze+pt,Dt=Dt*at+Kt*Ct+Lt,Kt=Math.min(Pe,Pi),ji=Math.min(vn,Dt),Di=Math.max(Pe+Di,Pi)-Kt,vi=Math.max(vn+vi,Dt)-ji,Pe=Kt,vn=ji,ve=y.viewportBounds,Le=ve.x,Fe=ve.y,Pe=!(Pe>ve.width+Le||Le>Di+Pe||vn>ve.height+Fe||Fe>vi+vn)}if(Pe){if(Pe=(this.l&256)!==0,a.clipInsteadOfFill&&(Pe=!1),this instanceof Pa&&(a.font=this.font),Pe){if(vn=re.se()?re.naturalBounds:re.actualBounds,Di=Math.max(te.x,vn.x),vi=Math.max(te.y,vn.y),ve=Math.min(te.right,vn.right)-Di,Le=Math.min(te.bottom,vn.bottom)-vi,Fe=this.tb,Fe!==null&&(Di=Fe.x,vi=Fe.y,ve=Fe.width,Le=Fe.height),Di>te.width+te.x||te.x>vn.width+vn.x){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}a.save(),a.beginPath(),a.rect(Di,vi,ve,Le),a.clip()}if(de){if(!ce.isVisible()){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}le&&(vn=ce.shadowOffset,a.Ev(vn.x*y.scale*this.scale*y.Mb,vn.y*y.scale*this.scale*y.Mb,ce.shadowBlur),fa(a),a.shadowColor=ce.shadowColor)}le&&this.shadowVisible===!0?fa(a):le&&this.shadowVisible===!1&&wr(a),ce=this.naturalBounds,this.areaBackground!==null&&(a.yc(),pl(this,a,ce,te)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),le&&Xa(this,re)&&this.shadowVisible===null&&wr(a),this.Ma!==null&&(a.yc(),ml(this,a,ce,te)),le&&(this.Ma!==null||this.areaBackground!==null||Xa(this,re))?(Fu(this,!0),this.shadowVisible===null&&wr(a)):Fu(this,!1),this.hh(a,y),le&&this.l&512&&fa(a),de&&le&&wr(a),Pe&&(a.restore(),a.Vc(this instanceof hi)),z.ws()||(y=1/(z.m11*z.m22-z.m12*z.m21),a.transform(z.m22*y,-z.m12*y,-z.m21*y,z.m11*y,y*(z.m21*z.dy-z.m22*z.dx),y*(z.m12*z.dx-z.m11*z.dy)))}}x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E)}}};function Xa(a,y){return y===null?!1:(zh(y)&&(y=y.panel),(y.l&512)!==0||(y.type===hi.Auto||y.type===hi.Spot)&&y.Pb()!==a)}Ue.Dv=function(){};function pl(a,y,x,b){Ca(a,y,a.areaBackground,!0,!0,x,b),a.areaBackground instanceof ko&&a.areaBackground.type===Oc?(y.beginPath(),y.rect(b.x,b.y,b.width,b.height),y.ng(a.areaBackground)):y.fillRect(b.x,b.y,b.width,b.height)}function ml(a,y,x,b){var E=a.kq(),z=x.x,te=x.y,re=x.width+E,le=x.height+E;Ca(a,y,a.Ma,!0,!1,x,b),a.Ma instanceof ko&&a.Ma.type===Oc?(y.beginPath(),y.rect(z-E/2,te-E/2,re,le),y.ng(a.Ma)):y.fillRect(z-E/2,te-E/2,re,le)}function Va(a,y,x){for(var b=y.O.s,E=b.length,z=-1,te=0;te<E;te++)if(b[te]===a){z=te;break}if(a=z,a!==-1)if(a===0)y.svg.gd?y.svg.gd.after(x):y.svg.Ma?y.svg.Ma.after(x):y.type===hi.Table?(y=y.svg.getElementsByClassName("gojs-ts"),y=y.length!==0?y[0]:null,y!==null&&y.after(x)):y.svg.prepend(x);else{for(;a!==0&&!y.M(a-1).Ed();)a--;a===0?y.svg.prepend(x):(a=y.M(a-1).svg,a!==null?a.after(x):y.svg.appendChild(x))}}function ll(a,y,x){if(!(y instanceof Uu))return!1;if(!a.visible||a.opacity===0||a.Dd()&&!a.isVisible())return a.svg!==null&&a.svg.parentNode!==null&&a.svg.remove(),!0;var b=a.panel,E=a.nk(y);if(a.kk(y,x,E))return a.svg.parentElement!==null?(a.Dd()&&(y.ti=a.svg),!0):(a.Dd()?(y.ti!==null?y.ti.after(a.svg):y.Nj.prepend(a.svg),y.ti=a.svg):b&&Va(a,b,a.svg),!0);if(a.Dd()&&a.isShadowed){var z=a.shadowOffset;y.Ev(z.x*x.scale*a.scale*x.Mb,z.y*x.scale*a.scale*x.Mb,a.shadowBlur),fa(y),y.shadowColor=a.shadowColor}a instanceof Pa&&(y.font=a.font),y.yd=null;var te=a.transform;z=a instanceof hi;var re=a instanceof hi?zh(a):!1;a.l&4096&&Ts(a);var le=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,E&&(y.o=!0,z&&re?(yf(y,1,0,0,1,0,0),a.svg=y.ad):z?(yf(y,te.m11,te.m12,te.m21,te.m22,te.dx,te.dy),a.svg=y.ad):yf(y,1,0,0,1,0,0)),E=a.naturalBounds,a.areaBackground!==null){var ce=te.copy().Vj();y.rb.ha=[ce.m11,ce.m12,ce.m21,ce.m22,ce.dx,ce.dy],pl(a,y,E,le),y.rb.ha=[1,0,0,1,0,0],y.yd.gd=y.ad,y.yd.prepend(y.ad)}return z||(y.rb.ha=[te.m11,te.m12,te.m21,te.m22,te.dx,te.dy]),a.background!==null&&(z?(re&&(y.rb.ha=[te.m11,te.m12,te.m21,te.m22,te.dx,te.dy]),ml(a,y,E,le),re&&(y.rb.ha=[1,0,0,1,0,0])):(y.rb.ha=[te.m11,te.m12,te.m21,te.m22,te.dx,te.dy],ml(a,y,E,le)),y.yd.Ma=y.ad,y.yd.prepend(y.ad)),te=y.yd,E=a.part,re=!1,E&&x.Gf("drawShadows")&&(re=E.isShadowed),y.clipInsteadOfFill&&(re=!1),a.Dd()&&re&&fa(y),re&&a.shadowVisible===!0?fa(y):re&&a.shadowVisible===!1&&wr(y),E=a.panel,re&&Xa(a,E)&&a.shadowVisible===null&&wr(y),y.Il&&(ce=x.computePixelRatio(),ce="drop-shadow("+y.shadowOffsetX/ce+"px "+y.shadowOffsetY/ce+"px "+y.shadowBlur/ce/2+"px "+y.shadowColor+")",a.background!==null&&te.Ma.setAttributeNS(null,"filter",ce),a.areaBackground!==null&&te.gd.setAttributeNS(null,"filter",ce)),re&&(a.Ma!==null||a.areaBackground!==null||Xa(a,E))?(Fu(a,!0),a.shadowVisible===null&&wr(y)):Fu(a,!1),E=re,a.hh(y,x),z&&y.nh.pop(),y.o&&y.nh.pop(),te=y.Gv.hs,re=z?a.svg:y.yd,ce=a.svg,!z&&ce!==null&&re!==ce&&ce.parentNode===a.panel.svg?(a.svg.replaceWith(re),a.svg=re,re!==null&&a.$o(y,b,le,re),Xs(y,ce),!0):(a.svg=re,te!==null&&re===null&&(Hf(y),y.nh.pop()),re===null||(a.$o(y,b,le,re),y.Il&&(x=x.computePixelRatio(),a.Dv(re,"drop-shadow("+y.shadowOffsetX/x+"px "+y.shadowOffsetY/x+"px "+y.shadowBlur/x/2+"px "+y.shadowColor+")")),E&&a.l&512&&fa(y),a.Dd()&&wr(y),x=a.Dd()?a.opacity*y.globalAlpha:a.opacity,x!==1&&re.setAttributeNS(null,"opacity",x.toString()),a.filter!==""&&re.setAttributeNS(null,"filter",a.filter),a.Dd()?(y.ti?y.ti.after(re):y.Nj.prepend(re),y.ti=re):b!==null&&Va(a,b,re),te!==null&&te(a,re)),!0)}Ue.$o=function(a,y,x,b){var E=(this.l&256)!==0;if(a.clipInsteadOfFill&&(E=!1),E){var z=y.se()?y.naturalBounds:y.actualBounds;y=Math.max(x.x,z.x),E=Math.max(x.y,z.y);var te=Math.min(x.right,z.right)-y;x=Math.min(x.bottom,z.bottom)-E,z=this.tb,z!==null&&(y=z.x,E=z.y,te=z.width,x=z.height),z=b.getAttribute("clip-path");var re=null;z!==null&&(re=a.svg.getElementById(z.split("#")[1].slice(0,-1))),re===null?(z="CLIP"+po++,re=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:E,width:te,height:x}),this instanceof hi&&(E=this.transform.copy().Vj(),y.setAttribute("transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")")),re.appendChild(y),a.svg.appendChild(re),b.setAttributeNS(null,"clip-path","url(#"+z+")")):(a=re.firstElementChild,a.setAttribute("x",y.toString()),a.setAttribute("y",E.toString()),a.setAttribute("width",te.toString()),a.setAttribute("height",x.toString()))}else b.removeAttributeNS(null,"clip-path"),Xs(a,b)};function Xs(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function ha(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=pr(y);for(var b=y.next();!b.done;b=y.next())b=x.getElementById(b.value.split("#")[1].slice(0,-1)),b!==null&&b.remove()}a.svg.remove()}}Ue.hh=function(){},Ue.lv=function(){this.Uc=!0},Ue.kk=function(a,y,x){if(this.Uc)return this.lv(),this.Uc=!1;if(y=this.svg,y===null)return!1;if(!this.visible)return y.remove(),!1;if(y.nodeName!=="g"&&x||y.nodeName==="g"&&!x)return!1;var b=this.transform,E=this instanceof hi?zh(this):!1;if(!(this instanceof hi&&E))if(this instanceof Gu){var z=this.bt;a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy],z!==null&&Lm(a,z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7]),x?y.lastElementChild.setAttributeNS(null,"transform",Vg(a)):y.setAttributeNS(null,"transform",Vg(a))}else if(!x||this instanceof hi)y.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");else if(this instanceof eo){z=y.getElementsByTagName("path");for(var te=0;te<z.length;te++)z[te].setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")")}else y.lastElementChild.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");return z=this.Dd()?this.opacity*a.globalAlpha:this.opacity,z===1?y.removeAttribute("opacity"):y.setAttributeNS(null,"opacity",z.toString()),a.rb.ha=[1,0,0,1,0,0],(this.areaBackground!==null||y.gd!==void 0)&&(z=y.gd,this.areaBackground===null?(y.gd.remove(),y.gd=void 0):(te=b.copy().Vj(),a.rb.ha=[te.m11,te.m12,te.m21,te.m22,te.dx,te.dy],pl(this,a,this.naturalBounds,this.actualBounds),a.rb.ha=[1,0,0,1,0,0],y.gd?(te=y.gd.getAttribute("filter"),te!==null&&a.ad.setAttribute("filter",te),y.gd.replaceWith(a.ad)):y.prepend(a.ad),y.gd=a.ad),z&&tl(a,z)),(this.background!==null||y.Ma!==void 0)&&(z=y.Ma,this.background===null?(tl(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((E||x&&!(this instanceof hi))&&(a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy]),ml(this,a,this.naturalBounds,this.actualBounds),y.Ma?(tl(a,y.Ma),x=y.Ma.getAttribute("filter"),x!==null&&a.ad.setAttribute("filter",x),y.Ma.replaceWith(a.ad)):y.prepend(a.ad),y.Ma=a.ad),z&&tl(a,z)),this.$o(a,this.panel,this.actualBounds,y),!0},Ue.nk=function(a){if(this.background!==null||this.areaBackground!==null)return!0;var y=(this.l&256)!==0;return a.clipInsteadOfFill&&(y=!1),!!y};function Ca(a,y,x,b,E,z,te){if(x!==null){var re=1,le=1;if(typeof x=="string")b?y.fillStyle=x:y.strokeStyle=x;else if(x.type===jh)b?y.fillStyle=x.color:y.strokeStyle=x.color;else{var ce=a.kq();if(re=z.width,le=z.height,E?(re=te.width,le=te.height):b||(re+=ce,le+=ce),(z=y instanceof Hl)&&x.xe&&(x.type===$f||x.yk===re&&x.ft===le))var de=x.xe;else{var ve=0,Pe=0,Le=0,Fe=0,Ze=0,pt=0;if(pt=Ze=0,E?(Ze=te.x,pt=te.y):b||(Ze-=ce/2,pt-=ce/2),ve=x.start.x*re+x.start.offsetX,Pe=x.start.y*le+x.start.offsetY,Le=x.end.x*re+x.end.offsetX,Fe=x.end.y*le+x.end.offsetY,ve+=Ze,Le+=Ze,Pe+=pt,Fe+=pt,x.type===yh)de=y.createLinearGradient(ve,Pe,Le,Fe);else if(x.type===Oc)pt=isNaN(x.endRadius)?Math.max(re,le)/2:x.endRadius,isNaN(x.startRadius)?(Ze=0,pt=Math.max(re,le)/2):Ze=x.startRadius,de=y.createRadialGradient(ve,Pe,Ze,Le,Fe,pt);else if(x.type===$f)try{de=y.createPattern(x.pattern,"repeat")}catch(Ct){de=null}if(x.type!==$f&&(E=x.colorStops,E!==null))for(E=E.iterator;E.next();)de.addColorStop(E.key,E.value);if(z&&(x.xe=de,de!==null&&(x.yk=re,x.ft=le),de===null&&x.type===$f&&x.yk!==-1)){x.yk=-1;var at=a.diagram;at!==null&&x.yk===-1&&mi(function(){at.redraw()},600)}}b?y.fillStyle=de:y.strokeStyle=de}}}Ue.rg=function(a){if(a instanceof hi)e:{if(this!==a&&a!==null)for(var y=this.panel;y!==null;){if(y===a){a=!0;break e}y=y.panel}a=!1}else a=!1;return a},Ue.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},Ue.If=function(){for(var a=this instanceof hi?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function Ts(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){su(a,!1);return}if(y.translate(a.Ib.x-a.uc.x,a.Ib.y-a.uc.y),a.scale!==1||a.angle!==0){var x=a.naturalBounds;a.no(y,x.x,x.y,x.width,x.height)}su(a,!1),Bu(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,Bu(a,!1)):y.oe!==null&&(x=a.wh,x.reset(),y.se()?x.multiply(y.wh):y.panel!==null&&x.multiply(y.panel.wh),x.multiply(a.Ab),a.Kk=a.scale*y.Kk,Bu(a,!1)))}Ue.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=lt.alloc();z.yi(y,x,b,E,wo),a.rotate(this.Kb,z.x,z.y),lt.free(z)}},Ue.v=function(a){if(!xu(this)){a===void 0&&(a=!1),cs(this,!0),sr(this,!0);var y=this.panel;y===null||a||y.v()}},Ue.Uj=function(){xu(this)||(cs(this,!0),sr(this,!0))};function el(a){if(!Il(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof Li&&a.Bd(),y.$b())),sr(a,!0)}}Ue.Uk=function(){!(this.l&2048)&&(su(this,!0),Bu(this,!0))},Ue.Wu=function(){Bu(this,!0)},Ue.N=function(){var a=this.part;a!==null&&a.N()};function Ps(a,y){var x=a.stretch,b=a.panel;return b!==null&&b.type===hi.Table?Tl(a,b.Fb(a.row),b.Eb(a.column),y):b!==null&&b.type===hi.Auto&&b.Pb()===a?ba(a,Qn,y):x===ar?b!==null?b.type===hi.Spot&&b.Pb()===a?ba(a,Qn,y):(x=b.defaultStretch,x===ar?ba(a,_n,y):ba(a,x,y)):ba(a,_n,y):ba(a,x,y)}function Tl(a,y,x,b){var E=a.stretch;if(E!==ar)return ba(a,E,b);var z=E=null;switch(y.stretch){case ki:z=!0;break;case Qn:z=!0}switch(x.stretch){case Ci:E=!0;break;case Qn:E=!0}return y=a.panel.defaultStretch,E===null&&(E=y===Ci||y===Qn),z===null&&(z=y===ki||y===Qn),E===!0&&z===!0?ba(a,Qn,b):E===!0?ba(a,Ci,b):z===!0?ba(a,ki,b):ba(a,_n,b)}function ba(a,y,x){if(x)return y;if(y===_n||(x=a.desiredSize,x.w()))return _n;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===Ci)return _n;if(y===Qn)return ki}else{if(y===ki)return _n;if(y===Qn)return Ci}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===ki)return _n;if(y===Qn)return Ci}else{if(y===Ci)return _n;if(y===Qn)return ki}return y}function Fu(a,y){a.l=y?a.l|512:a.l&-513}function fs(a){return(a.l&1024)!==0}function Su(a,y){a.l=y?a.l|1024:a.l&-1025}function su(a,y){a.l=y?a.l|2048:a.l&-2049}function Bu(a,y){a.l=y?a.l|4096:a.l&-4097}function xu(a){return(a.l&8192)!==0}function cs(a,y){a.l=y?a.l|8192:a.l&-8193}function Il(a){return(a.l&16384)!==0}function sr(a,y){a.l=y?a.l|16384:a.l&-16385}Ue.Gj=function(){this.svg=null},Ue.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},Ue.Av=function(){},Ue.zv=function(a){return this.pa=a,el(this),!0},Ue.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},Ue.kq=function(){return 0};function lo(a){var y=a.part;if(y instanceof Li&&(a.portId!==null||a===y.port)){var x=y.diagram;x===null||x.undoManager.isUndoingRedoing||KS(y,a)}}function Ha(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof hi?a instanceof Li?a.Bd():a.qm(a,function(x){lo(x)}):lo(a))}Ue.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new Us(a,y,x,b):E=a,E.xd=this,a=this.ih(),a!==null&&mS(a)&&bt("Cannot add a Binding to a template that has already been copied: "+E),this.localBindings===null&&(this.localBindings=new Ht),this.localBindings.add(E),this},Ue.set=function(a){return Object.assign(this,a),this},Ue.Du=function(a){return Is(this,a),this},Ue.apply=function(a){return a(this),this},Ue.nm=function(a){return ec(this,a),this},Ue.pz=function(){return this.ih()},Ue.ih=function(){for(var a=this instanceof hi?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},Ue.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new Ii),this.animationTriggers.add(a.propertyName,a),this};function ga(a,y){for(var x=1;x<arguments.length;++x);x=arguments;var b=null,E=null;if(typeof a=="function")E=a;else if(typeof a=="string"){var z=ju.I(a);typeof z=="function"?(x=Qt(arguments),b=z(x),Gt(b)||bt('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):E=yt.go[a]}if(b===null&&(E!=null&&E.constructor||bt("GraphObject.make requires a class function or GoJS class name or name of an object builder, not: "+a),b=new E),E=1,b instanceof pn&&1<x.length){z=b;var te=x[1];(typeof te=="string"||te instanceof HTMLDivElement)&&(Lh(z,te),E++)}for(;E<x.length;E++)z=x[E],z===void 0?bt("Undefined value at argument "+E+" for object being constructed by GraphObject.make: "+b):Is(b,z);return b}function Is(a,y){if(typeof y=="string")if(a instanceof Pa)a.text=y;else if(a instanceof eo)a.figure=y;else if(a instanceof Gu)a.source=y;else if(a instanceof hi)y=ld.I(y),y!==null&&(a.type=y);else if(a instanceof ko){var x=Ai(ko,y);x!==null?a.type=x:bt("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof di?(y=Ai(di,y),y!==null&&(a.type=y)):a instanceof Eo&&(y=Ai(Eo,y),y!==null&&(a.type=y));else if(y instanceof Rt)a instanceof hi||bt("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof Qs){var b;y.isRow&&typeof a.getRowDefinition=="function"?b=a.getRowDefinition(y.index):y.isRow||typeof a.getColumnDefinition!="function"||(b=a.getColumnDefinition(y.index)),b instanceof Qs?Zm(b,y):bt("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof tn)typeof a.qb=="function"&&a.qb(y);else if(y instanceof nl)a.type=y;else if(y instanceof Us)a instanceof Rt||a instanceof Qs?a.bind(y):bt("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof ou)a instanceof Rt?a.Jv(y):bt("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof rs)a instanceof di&&a.type===di.o?a.figures.add(y):bt("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof Eo)a instanceof rs?a.segments.add(y):bt("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof Wa)a instanceof pn||a instanceof _r?a.layout=y:bt("A Layout can only be assigned to a Diagram or a Group, not to: "+a);else if(Array.isArray(y))for(x=0;x<y.length;x++)Is(a,y[x]);else if(typeof y=="object"&&y!==null)if(a instanceof ko){x=new Ti;for(var E in y)b=parseFloat(E),isNaN(b)?x[E]=y[E]:a.addColorStop(b,y[E]);ec(a,x)}else if(a instanceof Qs){y.row!==void 0?(E=y.row,(E==null||E===1/0||isNaN(E)||0>E)&&bt("Must specify non-negative integer row for RowColumnDefinition "+y+", not: "+E),a.isRow=!0,a.index=E):y.column!==void 0&&(E=y.column,(E==null||E===1/0||isNaN(E)||0>E)&&bt("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+E),a.isRow=!1,a.index=E),E=new Ti;for(x in y)x!=="row"&&x!=="column"&&(E[x]=y[x]);ec(a,E)}else ec(a,y);else bt('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function Dl(a,y){ju.add(a,y)}function tc(a,y,x){x===void 0&&(x=null);var b=a[1];if(typeof x=="function"?x(b):typeof b=="string")return a.splice(1,1),b;if(y===void 0)throw Error("no "+(typeof x=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}Nt.Object.defineProperties(Rt.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new Tc),this.A.zp=a)}},localBindings:{get:function(){return this.A!==null?this.A.te:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new Tc),this.A.te=a)}},srcBindings:{get:function(){return this.A!==null?this.A.wm:null},set:function(a){this.srcBindings!==a&&(this.A===null&&(this.A=new Tc),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(Cr(this),this.A.Ci=a,this.Uc=!0,this.N(),this.g("shadowVisible",y,a))}},enabledChanged:{get:function(){return this.A!==null?this.A.Hb:null},set:function(a){var y=this.enabledChanged;y!==a&&(Cr(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:Eu},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new Ic),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===Eu&&(this.angle=0))}},segmentIndex:{get:function(){return this.Ua!==null?this.Ua.u:-1/0},set:function(a){a=Math.round(a);var y=this.segmentIndex;y!==a&&(this.Ua===null&&(this.Ua=new Ic),this.Ua.u=a,this.v(),this.g("segmentIndex",y,a))}},segmentFraction:{get:function(){return this.Ua!==null?this.Ua.o:0},set:function(a){isNaN(a)||0>a?a=0:1<a&&(a=1);var y=this.segmentFraction;y!==a&&(this.Ua===null&&(this.Ua=new Ic),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:Rr},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new Ic),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:ar},set:function(a){var y=this.stretch;y!==a&&(Cr(this),this.A.hg=a,this.v(),this.g("stretch",y,a))}},name:{get:function(){return this.A!==null?this.A.xa:""},set:function(a){var y=this.name;y!==a&&(Cr(this),this.A.xa=a,this.part!==null&&(this.part.Rh=null),this.g("name",y,a))}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&Ln(a,"0 <= value <= 1",Rt,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Qg(y,y.actualBounds)))}},filter:{get:function(){return this.bn},set:function(a){var y=this.bn;y!==a&&(this.bn=a,this.Uc=!0,this.g("filter",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Qg(y,y.actualBounds)))}},visible:{get:function(){return(this.l&1)!==0},set:function(a){var y=(this.l&1)!==0;y!==a&&(this.l^=1,this.g("visible",y,a),y=this.panel,y!==null?y.v():this.Dd()&&this.Zb(a),this.N(),Ha(this))}},pickable:{get:function(){return(this.l&2)!==0},set:function(a){var y=(this.l&2)!==0;y!==a&&(this.l^=2,this.g("pickable",y,a))}},fromLinkableDuplicates:{get:function(){return(this.l&4)!==0},set:function(a){var y=(this.l&4)!==0;y!==a&&(this.l^=4,this.g("fromLinkableDuplicates",y,a))}},fromLinkableSelfNode:{get:function(){return(this.l&8)!==0},set:function(a){var y=(this.l&8)!==0;y!==a&&(this.l^=8,this.g("fromLinkableSelfNode",y,a))}},toLinkableDuplicates:{get:function(){return(this.l&16)!==0},set:function(a){var y=(this.l&16)!==0;y!==a&&(this.l^=16,this.g("toLinkableDuplicates",y,a))}},toLinkableSelfNode:{get:function(){return(this.l&32)!==0},set:function(a){var y=(this.l&32)!==0;y!==a&&(this.l^=32,this.g("toLinkableSelfNode",y,a))}},isPanelMain:{get:function(){return(this.l&64)!==0},set:function(a){var y=(this.l&64)!==0;y!==a&&(this.l^=64,this.v(),this.g("isPanelMain",y,a))}},isActionable:{get:function(){return(this.l&128)!==0},set:function(a){var y=(this.l&128)!==0;y!==a&&(this.l^=128,this.g("isActionable",y,a))}},areaBackground:{get:function(){return this.A!==null?this.A.gd:null},set:function(a){var y=this.areaBackground;y!==a&&(a!==null&&Sf(a,"GraphObject.areaBackground"),a instanceof ko&&a.freeze(),Cr(this),this.A.gd=a,this.N(),this.g("areaBackground",y,a))}},background:{get:function(){return this.Ma},set:function(a){var y=this.Ma;y!==a&&(a!==null&&Sf(a,"GraphObject.background"),a instanceof ko&&a.freeze(),this.Ma=a,this.N(),this.g("background",y,a))}},part:{get:function(){if(this.Dd())return this;if(this.Ng!==null)return this.Ng;var a;for(a=this.panel;a;){if(a instanceof nr)return this.Ng=a;a=a.panel}return null}},svg:{get:function(){return this.V},set:function(a){this.V=a}},panel:{get:function(){return this.Me}},layer:{get:function(){var a=this.part;return a!==null?a.layer:null}},diagram:{get:function(){var a=this.part;return a!==null?a.diagram:null}},position:{get:function(){return this.pa},set:function(a){var y=a.x,x=a.y,b=this.pa,E=b.x;b=b.y,(E===y||isNaN(E)&&isNaN(y))&&(b===x||isNaN(b)&&isNaN(x))?this.Av():(a=a.copy(),this.zv(a,E,b)&&this.g("position",new lt(E,b),a))}},actualBounds:{get:function(){return this.Ib}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&(0>=a&&bt("GraphObject.scale for "+this+" must be greater than zero, not: "+a),this.Ca=a,this.v(),this.g("scale",y,a))}},angle:{get:function(){return this.Kb},set:function(a){var y=this.Kb;y!==a&&(a%=360,0>a&&(a+=360),y!==a&&(this.Kb=a,Ha(this),this.v(),this.g("angle",y,a)))}},desiredSize:{get:function(){return this.jd},set:function(a){var y=a.width,x=a.height,b=this.jd,E=b.width,z=b.height;(E===y||isNaN(E)&&isNaN(y))&&(z===x||isNaN(z)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof eo&&this.qc(),this.g("desiredSize",b,a),fs(this)&&(a=this.part,a!==null&&($o(this,a,"width"),$o(this,a,"height"))))}},width:{get:function(){return this.jd.width},set:function(a){var y=this.jd.width;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new fi(a,this.jd.height).freeze(),this.v(),this instanceof eo&&this.qc(),this.g("desiredSize",y,a),fs(this)&&(a=this.part,a!==null&&$o(this,a,"width")))}},height:{get:function(){return this.jd.height},set:function(a){var y=this.jd.height;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new fi(this.jd.width,a).freeze(),this.v(),this instanceof eo&&this.qc(),this.g("desiredSize",y,a),fs(this)&&(a=this.part,a!==null&&$o(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:bo},set:function(a){var y=this.minSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=0),isNaN(a.height)&&(a.height=0),a.freeze(),Cr(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:ts},set:function(a){var y=this.maxSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=1/0),isNaN(a.height)&&(a.height=1/0),a.freeze(),Cr(this),this.A.o=a,this.v(),this.g("maxSize",y,a))}},measuredBounds:{get:function(){return this.uc}},naturalBounds:{get:function(){return this.dc}},margin:{get:function(){return this.Kg},set:function(a){typeof a=="number"&&(a=new $i(a));var y=this.Kg;y.D(a)||(this.Kg=a=a.J(),this.v(),this.g("margin",y,a))}},transform:{get:function(){return this.l&2048&&Ts(this),this.Ab}},oe:{get:function(){return this.l&4096&&Ts(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(Cr(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:_n},set:function(a){this.reshapingBehavior!==a&&(Cr(this),this.A.Pf=a)}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(a.Mc()&&!a.Xb()&&bt("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),el(this),this.g("alignment",y,a))}},column:{get:function(){return this.Ag},set:function(a){a=Math.round(a);var y=this.Ag;y!==a&&(0>a&&Ln(a,">= 0",Rt,"column"),this.Ag=a,this.v(),this.g("column",y,a),this.svg!==null&&this.svg.remove())}},columnSpan:{get:function(){return this.A!==null?this.A.ob:1},set:function(a){a=Math.round(a);var y=this.columnSpan;y!==a&&(1>a&&Ln(a,">= 1",Rt,"columnSpan"),Cr(this),this.A.ob=a,this.v(),this.g("columnSpan",y,a))}},row:{get:function(){return this.io},set:function(a){a=Math.round(a);var y=this.io;y!==a&&(0>a&&Ln(a,">= 0",Rt,"row"),this.io=a,this.v(),this.g("row",y,a),this.svg!==null&&this.svg.remove())}},rowSpan:{get:function(){return this.A!==null?this.A.Bi:1},set:function(a){a=Math.round(a);var y=this.rowSpan;y!==a&&(1>a&&Ln(a,">= 1",Rt,"rowSpan"),Cr(this),this.A.Bi=a,this.v(),this.g("rowSpan",y,a))}},spanAllocation:{get:function(){return this.A!==null?this.A.Di:null},set:function(a){var y=this.spanAllocation;y!==a&&(Cr(this),this.A.Di=a,this.v(),this.g("spanAllocation",y,a))}},alignmentFocus:{get:function(){return this.sk},set:function(a){var y=this.sk;y.D(a)||(this.sk=a=a.J(),this.v(),this.g("alignmentFocus",y,a))}},portId:{get:function(){return this.Yn},set:function(a){var y=this.Yn;if(y!==a){var x=this.part;x===null||x instanceof Li||bt("Cannot set portID on a Link: "+a),y!==null&&x!==null&&qv(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,XS(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:is},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),lo(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Ln(a,">= 0",Rt,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),lo(this))}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:0},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.g("toShortLength",y,a),lo(this))}},toLinkable:{get:function(){return this.ba!==null?this.ba.Tr:null},set:function(a){var y=this.toLinkable;y!==a&&(this.Xc(),this.ba.Tr=a,this.g("toLinkable",y,a))}},toMaxLinks:{get:function(){return this.ba!==null?this.ba.Ur:1/0},set:function(a){var y=this.toMaxLinks;y!==a&&(0>a&&Ln(a,">= 0",Rt,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:is},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),lo(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Ln(a,">= 0",Rt,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),lo(this))}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:0},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.g("fromShortLength",y,a),lo(this))}},fromLinkable:{get:function(){return this.ba!==null?this.ba.hq:null},set:function(a){var y=this.fromLinkable;y!==a&&(this.Xc(),this.ba.hq=a,this.g("fromLinkable",y,a))}},fromMaxLinks:{get:function(){return this.ba!==null?this.ba.iq:1/0},set:function(a){var y=this.fromMaxLinks;y!==a&&(0>a&&Ln(a,">= 0",Rt,"fromMaxLinks"),this.Xc(),this.ba.iq=a,this.g("fromMaxLinks",y,a))}},cursor:{get:function(){return this.A!==null?this.A.j:""},set:function(a){var y=this.cursor;y!==a&&(Cr(this),this.A.j=a,this.g("cursor",y,a))}},click:{get:function(){return this.A!==null?this.A.zh:null},set:function(a){var y=this.click;y!==a&&(Cr(this),this.A.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.A!==null?this.A.Fh:null},set:function(a){var y=this.doubleClick;y!==a&&(Cr(this),this.A.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.A!==null?this.A.Bh:null},set:function(a){var y=this.contextClick;y!==a&&(Cr(this),this.A.Bh=a,this.g("contextClick",y,a))}},mouseEnter:{get:function(){return this.A!==null?this.A.Mh:null},set:function(a){var y=this.mouseEnter;y!==a&&(Cr(this),this.A.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.A!==null?this.A.Ph:null},set:function(a){var y=this.mouseLeave;y!==a&&(Cr(this),this.A.Ph=a,this.g("mouseLeave",y,a))}},mouseOver:{get:function(){return this.A!==null?this.A.Qh:null},set:function(a){var y=this.mouseOver;y!==a&&(Cr(this),this.A.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.A!==null?this.A.Oh:null},set:function(a){var y=this.mouseHover;y!==a&&(Cr(this),this.A.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.A!==null?this.A.Nh:null},set:function(a){var y=this.mouseHold;y!==a&&(Cr(this),this.A.Nh=a,this.g("mouseHold",y,a))}},mouseDragEnter:{get:function(){return this.A!==null?this.A.Of:null},set:function(a){var y=this.mouseDragEnter;y!==a&&(Cr(this),this.A.Of=a,this.g("mouseDragEnter",y,a))}},mouseDragLeave:{get:function(){return this.A!==null?this.A.Xd:null},set:function(a){var y=this.mouseDragLeave;y!==a&&(Cr(this),this.A.Xd=a,this.g("mouseDragLeave",y,a))}},mouseDrop:{get:function(){return this.A!==null?this.A.Lh:null},set:function(a){var y=this.mouseDrop;y!==a&&(Cr(this),this.A.Lh=a,this.g("mouseDrop",y,a))}},actionDown:{get:function(){return this.A!==null?this.A.V:null},set:function(a){var y=this.actionDown;y!==a&&(Cr(this),this.A.V=a,this.g("actionDown",y,a))}},actionMove:{get:function(){return this.A!==null?this.A.ia:null},set:function(a){var y=this.actionMove;y!==a&&(Cr(this),this.A.ia=a,this.g("actionMove",y,a))}},actionUp:{get:function(){return this.A!==null?this.A.Ha:null},set:function(a){var y=this.actionUp;y!==a&&(Cr(this),this.A.Ha=a,this.g("actionUp",y,a))}},actionCancel:{get:function(){return this.A!==null?this.A.F:null},set:function(a){var y=this.actionCancel;y!==a&&(Cr(this),this.A.F=a,this.g("actionCancel",y,a))}},toolTip:{get:function(){return this.A!==null?this.A.$h:null},set:function(a){var y=this.toolTip;y!==a&&(Cr(this),this.A.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.A!==null?this.A.Ch:null},set:function(a){var y=this.contextMenu;y!==a&&(Cr(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),Rt.prototype.trigger=Rt.prototype.Jv,Rt.prototype.findBindingPanel=Rt.prototype.ih,Rt.prototype.findTemplateBinder=Rt.prototype.pz,Rt.prototype.setProperties=Rt.prototype.nm,Rt.prototype.apply=Rt.prototype.apply,Rt.prototype.attach=Rt.prototype.Du,Rt.prototype.set=Rt.prototype.set,Rt.prototype.isEnabledObject=Rt.prototype.If,Rt.prototype.isVisibleObject=Rt.prototype.Ed,Rt.prototype.isContainedBy=Rt.prototype.rg,Rt.prototype.getNearestIntersectionPoint=Rt.prototype.rs,Rt.prototype.getLocalPoint=Rt.prototype.qs,Rt.prototype.getDocumentScale=Rt.prototype.Df,Rt.prototype.getDocumentAngle=Rt.prototype.li,Rt.prototype.getDocumentBounds=Rt.prototype.mi,Rt.prototype.getDocumentPoint=Rt.prototype.ga,Rt.prototype.intersectsRect=Rt.prototype.Yc,Rt.prototype.containedInRect=Rt.prototype.fh,Rt.prototype.containsRect=Rt.prototype.Re,Rt.prototype.containsPoint=Rt.prototype.ca,Rt.prototype.raiseChanged=Rt.prototype.g,Rt.prototype.raiseChangedEvent=Rt.prototype.cb,Rt.prototype.addCopyProperty=Rt.prototype.Vw;var ju=null;Rt.className="GraphObject",ju=new Ii,Dl("Button",function(){function a(x,b){return x.diagram.ic(x.documentPoint,function(E){for(;E.panel!==null&&!E.isActionable;)E=E.panel;return E},function(E){return E===b})!==null}var y=ga(hi,hi.Auto,{isActionable:!0,enabledChanged:function(x,b){if(x instanceof hi){var E=x.fb("ButtonBorder");E!==null&&(E.fill=b?x._buttonFillNormal:x._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},ga(eo,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new _i(0,0,2.76142374915397,2.761423749153969),spot2:new _i(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(x,b){if(b.If()&&b instanceof hi&&(x=b.fb("ButtonBorder"),x instanceof eo)){var E=b._buttonFillOver;b._buttonFillNormal=x.fill,x.fill=E,E=b._buttonStrokeOver,b._buttonStrokeNormal=x.stroke,x.stroke=E}},y.mouseLeave=function(x,b){b.If()&&b instanceof hi&&(x=b.fb("ButtonBorder"),x instanceof eo&&(x.fill=b._buttonFillNormal,x.stroke=b._buttonStrokeNormal))},y.actionDown=function(x,b){if(b.If()&&b instanceof hi&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof eo){x=x.diagram;var z=x.skipsUndoManager;x.skipsUndoManager=!0;var te=b._buttonFillPressed;b._buttonFillOver=E.fill,E.fill=te,te=b._buttonStrokePressed,b._buttonStrokeOver=E.stroke,E.stroke=te,x.skipsUndoManager=z}}},y.actionUp=function(x,b){if(b.If()&&b instanceof hi&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof eo){var z=x.diagram,te=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,b)?(E.fill=b._buttonFillOver,E.stroke=b._buttonStrokeOver):(E.fill=b._buttonFillNormal,E.stroke=b._buttonStrokeNormal),z.skipsUndoManager=te}}},y.actionCancel=function(x,b){if(b.If()&&b instanceof hi&&b._buttonFillPressed!==null){var E=b.fb("ButtonBorder");if(E instanceof eo){var z=x.diagram,te=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,b)?(E.fill=b._buttonFillOver,E.stroke=b._buttonStrokeOver):(E.fill=b._buttonFillNormal,E.stroke=b._buttonStrokeNormal),z.skipsUndoManager=te}}},y.actionMove=function(x,b){if(b.If()&&b instanceof hi&&b._buttonFillPressed!==null){var E=x.diagram;if(E.firstInput.button===0&&(E.currentTool.standardMouseOver(),a(x,b)&&(x=b.fb("ButtonBorder"),x instanceof eo))){var z=E.skipsUndoManager;E.skipsUndoManager=!0;var te=b._buttonFillPressed;x.fill!==te&&(x.fill=te),te=b._buttonStrokePressed,x.stroke!==te&&(x.stroke=te),E.skipsUndoManager=z}}},y}),Dl("TreeExpanderButton",function(){var a=ga("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},ga(eo,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:oa},new Us("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new Us("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof zo&&(x=x.adornedPart),x instanceof Li){var b=x.diagram;if(b!==null){if(b=b.commandHandler,x.isTreeExpanded){if(!b.canCollapseTree(x))return}else if(!b.canExpandTree(x))return;y.handled=!0,x.isTreeExpanded?b.collapseTree(x):b.expandTree(x)}}},a}),Dl("SubGraphExpanderButton",function(){var a=ga("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},ga(eo,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:oa},new Us("figure","isSubGraphExpanded",function(y,x){return x=x.panel,y?x._subGraphExpandedFigure:x._subGraphCollapsedFigure}).cp()));return a.click=function(y,x){if(x=x.part,x instanceof zo&&(x=x.adornedPart),x instanceof _r){var b=x.diagram;if(b!==null){if(b=b.commandHandler,x.isSubGraphExpanded){if(!b.canCollapseSubGraph(x))return}else if(!b.canExpandSubGraph(x))return;y.handled=!0,x.isSubGraphExpanded?b.collapseSubGraph(x):b.expandSubGraph(x)}}},a}),Dl("ToolTip",function(){return ga(zo,hi.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new lt(0,3),shadowBlur:5},ga(eo,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new _i(0,0,4,6),spot2:new _i(1,1,-4,-4)}))}),Dl("ContextMenu",function(){return ga(zo,hi.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new lt(0,3),shadowBlur:5},new Us("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),Dl("ContextMenuButton",function(){var a=ga("Button");a.stretch=Ci;var y=a.fb("ButtonBorder");return y instanceof eo&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new _i(0,0,2,3),y.spot2=new _i(1,1,-2,-2)),a}),Dl("PanelExpanderButton",function(a){var y=tc(a,"COLLAPSIBLE"),x=ga("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},ga(eo,{name:"ButtonIcon",strokeWidth:2},new Us("geometryString","visible",function(b){return b?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof eo&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(b,E){var z=E.diagram;if(z!==null&&!z.isReadOnly){var te=E.ih();te===null&&(te=E.part),te!==null&&(E=te.fb(y),E!==null&&(b.handled=!0,z.Ea("Collapse/Expand Panel"),E.visible=!E.visible,z.eb("Collapse/Expand Panel")))}},x}),Dl("CheckBoxButton",function(a){var y=tc(a);return a=ga("Button",{desiredSize:new fi(14,14)},ga(eo,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Qn,geometryStretch:pi,visible:!1},y!==""?new Us("visible",y).Kx():[])),a.click=function(x,b){if(b instanceof hi){var E=x.diagram;if(!(E===null||E.isReadOnly||y!==""&&E.model.isReadOnly)){x.handled=!0;var z=b.fb("ButtonIcon");E.Ea("checkbox"),z.visible=!z.visible,typeof b._doClick=="function"&&b._doClick(x,b),E.eb("checkbox")}}},a}),Dl("CheckBox",function(a){a=tc(a),a=ga("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new $i(0,1,0,0)});var y=ga(hi,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new $i(1),_buttonFillNormal:a._buttonFillNormal,_buttonStrokeNormal:a._buttonStrokeNormal,_buttonFillOver:a._buttonFillOver,_buttonStrokeOver:a._buttonStrokeOver,_buttonFillPressed:a._buttonFillPressed,_buttonStrokePressed:a._buttonStrokePressed,_buttonFillDisabled:a._buttonFillDisabled,mouseEnter:a.mouseEnter,mouseLeave:a.mouseLeave,actionDown:a.actionDown,actionUp:a.actionUp,actionCancel:a.actionCancel,actionMove:a.actionMove,click:a.click,_buttonClick:a.click});return a.mouseEnter=null,a.mouseLeave=null,a.actionDown=null,a.actionUp=null,a.actionCancel=null,a.actionMove=null,a.click=null,y}),Rt.None=_n=new tn(Rt,"None",0),Rt.Default=ar=new tn(Rt,"Default",0),Rt.Vertical=ki=new tn(Rt,"Vertical",4),Rt.Horizontal=Ci=new tn(Rt,"Horizontal",5),Rt.Fill=Qn=new tn(Rt,"Fill",3),Rt.Uniform=pi=new tn(Rt,"Uniform",1),Rt.UniformToFill=Nr=new tn(Rt,"UniformToFill",2),Rt.FlipVertical=Er=new tn(Rt,"FlipVertical",1),Rt.FlipHorizontal=$r=new tn(Rt,"FlipHorizontal",2),Rt.FlipBoth=Hn=new tn(Rt,"FlipBoth",3),Rt.make=ga,Rt.getBuilders=function(){var a=new Ii,y;for(y in ju)if(y!==y.toLowerCase()){var x=ju.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},Rt.defineBuilder=Dl,Rt.build=function(a,y,x){for(var b=[],E=2;E<arguments.length;++E)b[E-2]=arguments[E];if(E=ju.I(a),typeof E=="function"&&(b=E([a].concat(b)),b instanceof Rt))return y&&b.set(y),b;bt('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},Rt.takeBuilderArgument=tc;function Tc(){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=bo,this.o=ts,this.hg=ar,this.ob=this.Bi=1,this.Pf=_n,this.Pc=this.Ci=this.gd=null,this.Oc="category"}Tc.prototype.copy=function(){var a=new Tc;return a.xa=this.xa,a.zp=this.zp,a.te=this.te,a.nb=this.nb,a.j=this.j,a.zh=this.zh,a.Fh=this.Fh,a.Bh=this.Bh,a.Mh=this.Mh,a.Ph=this.Ph,a.Qh=this.Qh,a.Oh=this.Oh,a.Nh=this.Nh,a.Of=this.Of,a.Xd=this.Xd,a.Lh=this.Lh,a.V=this.V,a.ia=this.ia,a.Ha=this.Ha,a.F=this.F,a.$h=this.$h,a.Ch=this.Ch,a.Hb=this.Hb,a.Di=this.Di,a.hb=this.hb,a.u=this.u.J(),a.o=this.o.J(),a.hg=this.hg,a.Bi=this.Bi,a.ob=this.ob,a.Pf=this.Pf,a.gd=this.gd,a.Ci=this.Ci,a.Pc=this.Pc,a.Oc=this.Oc,a};function Ic(){this.u=-1/0,this.o=0,this.F=Rr,this.rr=Eu,this.j=this.V="None"}Ic.prototype.copy=function(){var a=new Ic;return a.u=this.u,a.o=this.o,a.F=this.F.J(),a.rr=this.rr,a.V=this.V,a.j=this.j,a},Ic.className="LinkElementSettings";function zu(){this.yj=this.Xi=Vr,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}zu.prototype.copy=function(){var a=new zu;return a.Xi=this.Xi.J(),a.yj=this.yj.J(),a.Vi=this.Vi,a.wj=this.wj,a.Wi=this.Wi,a.xj=this.xj,a.hq=this.hq,a.Tr=this.Tr,a.iq=this.iq,a.Ur=this.Ur,a},zu.className="LinkSettings";function kc(){this.ha=[1,0,0,1,0,0]}kc.prototype.copy=function(){var a=new kc;return a.ha[0]=this.ha[0],a.ha[1]=this.ha[1],a.ha[2]=this.ha[2],a.ha[3]=this.ha[3],a.ha[4]=this.ha[4],a.ha[5]=this.ha[5],a},kc.prototype.translate=function(a,y){this.ha[4]+=this.ha[0]*a+this.ha[2]*y,this.ha[5]+=this.ha[1]*a+this.ha[3]*y},kc.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},kc.prototype.rotate=function(a,y,x){if(360<=a?a-=360:0>a&&(a+=360),a!==0){if(this.translate(y,x),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));var E=this.ha[1]*a+this.ha[3]*b,z=this.ha[0]*-b+this.ha[2]*a,te=this.ha[1]*-b+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*b,this.ha[1]=E,this.ha[2]=z,this.ha[3]=te,this.translate(-y,-x)}},kc.className="STransform";function nc(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}nc.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},nc.className="SGradient";function Wc(a,y,x){this.ownerDocument=a=y===void 0?yt.document:y,this.cA="http://www.w3.org/2000/svg",a!==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 Uu(this,x)}Wc.prototype.resize=function(a,y,x,b){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=b+"px",this.Oa.setAttributeNS(null,"width",x+"px"),this.Oa.setAttributeNS(null,"height",b+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+x+" "+b),this.context.ww.firstElementChild.setAttributeNS(null,"width",x+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",b+"px"),!0):!1},Wc.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),Gt(y))for(var b in y)a.setAttributeNS(b==="href"?"http://www.w3.org/1999/xlink":"",b,y[b]);return x!==void 0&&(a.textContent=x),a},Wc.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Wc.prototype.focus=function(){this.Oa.focus()},Wc.prototype.mx=function(){this.ownerDocument=null},Nt.Object.defineProperties(Wc.prototype,{width:{get:function(){return this.Oa.width.baseVal.value},set:function(a){this.Oa.setAttribute("width",a+"px")}},height:{get:function(){return this.Oa.height.baseVal.value},set:function(a){this.Oa.setAttribute("height",a+"px")}},style:{get:function(){return this.Oa.style}}}),Wc.className="SVGSurface";function Uu(a,y){this.Gv=a,this.svg=a.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 kc,this.j=Hf(this),this.Nj=Hf(this,"gojs-diagram"),this.Hl=this.ti=null;var x=po++,b=this.Ud("clipPath",{id:"mainClip"+x});b.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=b,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(b),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+x+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function Gf(a,y,x,b,E,z,te){a.Nj===void 0?yf(a,y,x,b,E,z,te):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+b+", "+E+", "+z+", "+te+")")}Ue=Uu.prototype,Ue.arc=function(a,y,x,b,E,z,te,re){var le=2*Math.PI,ce=le-1e-6,de=x*Math.cos(b),ve=x*Math.sin(b),Pe=a+de,Le=y+ve,Fe=z?0:1;b=z?b-E:E-b,(1e-6<Math.abs(te-Pe)||1e-6<Math.abs(re-Le))&&this.path.push(["L",Pe,+Le]),0>b&&(b=b%le+le),b>ce?(this.path.push(["A",x,x,0,1,Fe,a-de,y-ve]),this.path.push(["A",x,x,0,1,Fe,Pe,Le])):1e-6<b&&this.path.push(["A",x,x,0,+(b>=Math.PI),Fe,a+x*Math.cos(E),y+x*Math.sin(E)])},Ue.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},Ue.Se=function(a){this.addPath(this.path,this.rb,a||0)},Ue.bezierCurveTo=function(a,y,x,b,E,z){this.path.push(["C",a,y,x,b,E,z])},Ue.clearRect=function(){},Ue.clip=function(){this.Yl.clipPath=!0},Ue.closePath=function(){this.path.push(["z"])},Ue.createLinearGradient=function(a,y,x,b){var E=new nc("linear");return E.x1=a,E.y1=y,E.x2=x,E.y2=b,E},Ue.createPattern=function(a){var y="";a instanceof HTMLCanvasElement&&(y=a.toDataURL()),a instanceof HTMLImageElement&&(y=a.getAttribute("src"));var x=this.eA;if(x[y])return"url(#"+x[y]+")";var b="PATTERN"+po++,E={x:0,y:0,width:a.width,height:a.height,href:y};return a=this.Ud("pattern",{width:a.width,height:a.height,id:b,patternUnits:"userSpaceOnUse"}),a.appendChild(this.Ud(Jt,E)),this.svg.appendChild(a),x[y]=b,"url(#"+b+")"},Ue.createRadialGradient=function(a,y,x,b,E,z){var te=new nc("radial");return te.x1=a,te.y1=y,te.r1=x,te.x2=b,te.y2=E,te.r2=z,te};function Lm(a,y,x,b,E,z,te,re,le){b=re/b,E=le/E,z===0&&te===0||a.rb.translate(z,te),b===1&&E===1||a.rb.scale(b,E),y===0&&x===0||a.rb.translate(-y,-x)}Ue.drawImage=function(a,y,x,b,E,z,te,re,le){var ce="";a instanceof HTMLCanvasElement&&(ce=a.toDataURL()),a instanceof HTMLImageElement&&(ce=a.getAttribute("src"));var de=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,b===void 0&&(z=y,te=x,re=b=de,le=E=a),b=b||0,E=E||0,re=re||0,le=le||0,Lm(this,y,x,b,E,z||0,te||0,re,le),z={x:0,y:0,width:de||b,height:a||E,href:ce},Wt.$(b,re)&&Wt.$(E,le)?ce.toLowerCase().indexOf(".svg")===-1&&ce.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||b!==de||E!==a)&&(b+=y,E+=x,z["clip-path"]="path('M "+y+","+x+" L "+b+" "+x+" L "+b+" "+E+" L "+y+" "+E+" z')"),Kg(this,Jt,z,this.rb),this.addElement(Jt,z)},Ue.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),Tp(this,this.Yl)},Ue.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},Ue.fillRect=function(a,y,x,b){a=[a,y,x,b],a={x:a[0],y:a[1],width:a[2],height:a[3]},Kg(this,"fill",a,this.rb),this.addElement("rect",a)},Ue.ox=function(a,y,x,b){a={x:a,y,width:x,height:b},Kg(this,"fill",a,this.rb),Tp(this,a),this.svg.prepend(this.Ud("rect",a))},Ue.fillText=function(a,y,x){a=[a,y,x],y=this.textAlign,y==="left"?y="start":y==="right"?y="end":y==="center"&&(y="middle"),y={x:a[1],y:a[2],style:"font: "+this.font,"text-anchor":y},Kg(this,"fill",y,this.rb),this.addElement("text",y,a[0])},Ue.lineTo=function(a,y){this.path.push(["L",a,y])},Ue.moveTo=function(a,y){this.path.push(["M",a,y])},Ue.quadraticCurveTo=function(a,y,x,b){this.path.push(["Q",a,y,x,b])},Ue.rect=function(a,y,x,b){this.path.push(["M",a,y],["L",a+x,y],["L",a+x,y+b],["L",a,y+b],["z"])},Ue.restore=function(){this.rb=this.stack.pop(),this.path=this.stack.pop();var a=this.stack.pop();this.fillStyle=a.fillStyle,this.font=a.font,this.globalAlpha=a.globalAlpha,this.lineCap=a.lineCap,this.lineDashOffset=a.lineDashOffset,this.lineJoin=a.lineJoin,this.lineWidth=a.lineWidth,this.miterLimit=a.miterLimit,this.shadowBlur=a.shadowBlur,this.shadowColor=a.shadowColor,this.shadowOffsetX=a.shadowOffsetX,this.shadowOffsetY=a.shadowOffsetY,this.strokeStyle=a.strokeStyle,this.textAlign=a.textAlign,this.bk=a.bk},Ue.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 a=[],y=0;y<this.path.length;y++)a.push(this.path[y]);this.stack.push(a),this.stack.push(this.rb.copy())},Ue.setTransform=function(a,y,x,b,E,z){a===1&&y===0&&x===0&&b===1&&E===0&&z===0||yf(this,a,y,x,b,E,z)};function Vg(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}Ue.scale=function(a,y){this.rb.scale(a,y)},Ue.translate=function(a,y){this.rb.translate(a,y)},Ue.transform=function(){},Ue.yc=function(){},Ue.stroke=function(){kp(this,this.Yl)},Ue.jk=function(){this.clipInsteadOfFill||this.stroke()},Ue.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},Ue.addElement=function(a,y,x){return a=this.Ud(a,y,x),this.yd!==null?this.yd.appendChild(a):this.yd=a,this.ad=a};function Kg(a,y,x,b){y==="fill"?Tp(a,x):y==="stroke"&&kp(a,x),b!==null&&(a=b.ha,x.transform="matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")")}function Tp(a,y){a.fillStyle instanceof nc?y.fill=Dp(a,a.fillStyle,!0):/^rgba\(/.test(a.fillStyle)?(a=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.fillStyle),y.fill="rgb("+a[1]+","+a[2]+","+a[3]+")",y["fill-opacity"]=a[4]):y.fill=a.fillStyle}function Ip(a,y,x){x=x?"fill":"stroke",a.fillStyle instanceof nc?y.setAttributeNS(null,"fill",Dp(a,a.fillStyle,!0)):/^rgba\(/.test(a.fillStyle)?(a=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.fillStyle),y.setAttributeNS(null,x,"rgb("+a[1]+","+a[2]+","+a[3]+")"),y.setAttributeNS(null,x+"-opacity",a[4])):y.setAttributeNS(null,x,a.fillStyle)}function kp(a,y){if(a.strokeStyle instanceof nc)y.stroke=Dp(a,a.strokeStyle,!1);else if(/^rgba\(/.test(a.strokeStyle)){var x=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.strokeStyle);y.stroke="rgb("+x[1]+","+x[2]+","+x[3]+")",y["stroke-opacity"]=x[4]}else y.stroke=a.strokeStyle;y["stroke-width"]=a.lineWidth,y["stroke-linecap"]=a.lineCap,y["stroke-linejoin"]=a.lineJoin,y["stroke-miterlimit"]=a.miterLimit,a.Ct&&(y["stroke-dasharray"]=a.Yg.toString(),y["stroke-dashoffset"]=a.uj)}function Dp(a,y,x){var b="";if(b=a.Hl!==null?a.Hl.getAttribute(x?"fill":"stroke"):null,b!==null&&b.indexOf("GRAD")!==-1?(b=b.split("#")[1].slice(0,-1),x=a.svg.getElementById(b),x!==null&&x.remove()):b="GRAD"+po++,y.type==="linear")x=a.Ud("linearGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,id:b,gradientUnits:"userSpaceOnUse"});else if(y.type==="radial")x=a.Ud("radialGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,r1:y.r1,r2:y.r2,id:b});else throw Error("invalid gradient");var E=y.gx;y=E.length;for(var z=[],te=0;te<y;te++){var re=E[te],le=re.color;re={offset:re.offset,"stop-color":le},/^rgba\(/.test(le)&&(le=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(le),re["stop-color"]="rgb("+le[1]+","+le[2]+","+le[3]+")",re["stop-opacity"]=le[4]),z.push(re)}for(z.sort(function(ce,de){return ce.offset>de.offset?1:-1}),E=0;E<y;E++)x.appendChild(a.Ud("stop",z[E]));return a.svg.appendChild(x),"url(#"+b+")"}Ue.addPath=function(a,y,x){for(var b=[],E=0;E<a.length;E++){var z=Qt(a[E]),te=[z.shift()];if(te[0]==="A")te.push(z.shift()+","+z.shift(),z.shift(),z.shift()+","+z.shift(),z.shift()+","+z.shift());else for(;z.length;)te.push(z.shift()+","+z.shift());b.push(te.join(" "))}if(b=b.join(" "),a=this.Yl,a.clipPath)0<this.nh.length&&this.nh[this.nh.length-1].setAttributeNS(null,"clip-path",'path("'+b+'")');else if(a.d=b,Kg(this,"",a,y),this.Hl!==null)if(y=this.Hl,y.nodeName!=="g")for(var re in a)re!=="transform"&&y.setAttributeNS(null,re,a[re]);else{re=y.getElementsByTagName("path");for(var le in a)le!=="transform"&&re[x].setAttributeNS(null,le,a[le])}else this.addElement("path",a)};function yf(a,y,x,b,E,z,te){var re=new kc;re.ha=[y,x,b,E,z,te],y={},Kg(a,"g",y,re),re=a.addElement("g",y),a.nh.push(re)}function Hf(a,y){var x={};return y&&(x.class=y),y=a.addElement("g",x),a.nh.push(y),y}Ue.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x};function wr(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function fa(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}Ue.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},Ue.fs=function(){this.Ct=!1},Ue.Vc=function(){},Ue.Wx=function(){},Uu.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},Uu.prototype.getImageData=function(){return null},Uu.prototype.measureText=function(){return null};function tl(a,y){y=y.getAttribute("fill"),y!==null&&(y=y.split("#"),y.length!==1&&(y=a.svg.getElementById(y[1].slice(0,-1)),y!==null&&a.svg.innerHTML.match(new RegExp(y.id,"g")).length===1&&y.remove()))}Uu.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},Uu.className="SVGContext",pn.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new Wc(this,yt.document));var y=new Wc(this,yt.document,!0);a===void 0&&(a=new Ti);var x=this;return lg(this,function(b,E){return b=Uf(x,b,"SVG",y),b=b!==null?b.svg:null,typeof E=="function"?(E(b),null):b},a)},pn.prototype.makeSvg=pn.prototype.Cs,pn.prototype.av=function(a){return this.Cs(a)},pn.prototype.makeSVG=pn.prototype.av;function Oa(a,y,x,b){this.ownerDocument=y=y===void 0?yt.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new Hl(y,x,b),y.H=a}Oa.prototype.resize=function(a,y,x,b){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=b+"px",!0):!1},Oa.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},Oa.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Oa.prototype.focus=function(){this.Oa.focus()},Oa.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},Nt.Object.defineProperties(Oa.prototype,{width:{get:function(){return this.Oa.width},set:function(a){this.Oa.width=a}},height:{get:function(){return this.Oa.height},set:function(a){this.Oa.height=a}},style:{get:function(){return this.Oa.style}}}),Oa.className="CanvasSurface";function Hl(a,y,x){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&bt("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 fr,this.isTemporary=!!x}Ue=Hl.prototype,Ue.Wx=function(a){this.Z.imageSmoothingEnabled=a},Ue.arc=function(a,y,x,b,E,z){this.Z.arc(a,y,x,b,E,z)},Ue.beginPath=function(){this.Z.beginPath()},Ue.Se=function(){},Ue.bezierCurveTo=function(a,y,x,b,E,z){this.Z.bezierCurveTo(a,y,x,b,E,z)},Ue.clearRect=function(a,y,x,b){this.yc(),this.Z.clearRect(a,y,x,b)},Ue.clip=function(){this.Z.clip()},Ue.closePath=function(){this.Z.closePath()},Ue.createLinearGradient=function(a,y,x,b){return this.Z.createLinearGradient(a,y,x,b)},Ue.createPattern=function(a,y){return this.Z.createPattern(a,y)},Ue.createRadialGradient=function(a,y,x,b,E,z){return this.Z.createRadialGradient(a,y,x,b,E,z)},Ue.drawImage=function(a,y,x,b,E,z,te,re,le){b===void 0?this.Z.drawImage(a,y,x):this.Z.drawImage(a,y,x,b,E,z,te,re,le)},Ue.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},Ue.fillRect=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},Ue.ox=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},Ue.fillText=function(a,y,x){this.Z.fillText(a,y,x)},Ue.getImageData=function(a,y,x,b){return this.Z.getImageData(a,y,x,b)},Ue.lineTo=function(a,y){this.Z.lineTo(a,y)},Ue.measureText=function(a){return this.Z.measureText(a)},Ue.moveTo=function(a,y){this.Z.moveTo(a,y)},Ue.quadraticCurveTo=function(a,y,x,b){this.Z.quadraticCurveTo(a,y,x,b)},Ue.rect=function(a,y,x,b){this.Z.rect(a,y,x,b)},Ue.restore=function(){this.Z.restore()},Ue.save=function(){this.yc(),this.Z.save()},Hl.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},Ue=Hl.prototype,Ue.setTransform=function(a,y,x,b,E,z){this.El.setTransform(a,y,x,b,E,z)},Ue.scale=function(a,y){this.El.scale(a,y)},Ue.translate=function(a,y){this.El.translate(a,y)},Ue.stroke=function(){this.Z.stroke()},Ue.transform=function(a,y,x,b,E,z){if(a!==1||y!==0||x!==0||b!==1||E!==0||z!==0){var te=this.El,re=te.m11*a+te.m21*y;a=te.m12*a+te.m22*y,y=te.m11*x+te.m21*b,x=te.m12*x+te.m22*b,te.dx=te.m11*E+te.m21*z+te.dx,te.dy=te.m12*E+te.m22*z+te.dy,te.m11=re,te.m12=a,te.m21=y,te.m22=x}},Ue.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},Ue.ng=function(a,y){if(a instanceof ko&&a.type===Oc){var x=a.yk;a=a.ft,a>x?(this.scale(x/a,1),this.translate((a-x)/2,0)):x>a&&(this.scale(1,a/x),this.translate(0,(x-a)/2)),this.Hm?this.clip():this.fill(y),a>x?(this.translate(-(a-x)/2,0),this.scale(1/(x/a),1)):x>a&&(this.translate(0,-(x-a)/2),this.scale(1,1/(a/x)))}else this.Hm?this.clip():this.fill(y)},Ue.jk=function(){this.Hm||this.stroke()},Ue.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},Ue.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},Ue.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(Zc),a.lineDashOffset=0)},Ue.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Ue.Hs=function(){},Nt.Object.defineProperties(Hl.prototype,{fillStyle:{get:function(){return this.Z.fillStyle},set:function(a){this.ct!==a&&(this.ct=this.Z.fillStyle=a)}},font:{get:function(){return this.Z.font},set:function(a){this.dt!==a&&(this.dt=this.Z.font=a)}},globalAlpha:{get:function(){return this.Z.globalAlpha},set:function(a){this.Z.globalAlpha=a}},lineCap:{get:function(){return this.Z.lineCap},set:function(a){this.Z.lineCap=a}},lineDashOffset:{get:function(){return this.Z.lineDashOffset},set:function(a){this.Z.lineDashOffset=a}},lineJoin:{get:function(){return this.Z.lineJoin},set:function(a){this.Z.lineJoin=a}},lineWidth:{get:function(){return this.Z.lineWidth},set:function(a){this.Z.lineWidth=a}},miterLimit:{get:function(){return this.Z.miterLimit},set:function(a){this.Z.miterLimit=a}},shadowBlur:{get:function(){return this.Z.shadowBlur},set:function(a){this.Z.shadowBlur=a}},shadowColor:{get:function(){return this.Z.shadowColor},set:function(a){this.Z.shadowColor=a}},shadowOffsetX:{get:function(){return this.Z.shadowOffsetX},set:function(a){this.Z.shadowOffsetX=a}},shadowOffsetY:{get:function(){return this.Z.shadowOffsetY},set:function(a){this.Z.shadowOffsetY=a}},strokeStyle:{get:function(){return this.Z.strokeStyle},set:function(a){this.et!==a&&(this.et=this.Z.strokeStyle=a)}},textAlign:{get:function(){return this.Z.textAlign},set:function(a){this.Z.textAlign=a}},imageSmoothingEnabled:{get:function(){return this.Z.imageSmoothingEnabled},set:function(a){this.Z.imageSmoothingEnabled=a}},filter:{get:function(){return this.Z.filter},set:function(a){this.Z.filter=a===""?"none":a}},clipInsteadOfFill:{get:function(){return this.Hm},set:function(a){this.Hm=a}}});var Zc=Object.freeze([]);Hl.className="CanvasSurfaceContext";function Dc(){this.F=this.o=this.u=this.j=0}Dc.className="ColorNumbers";function ko(a,y){Yf||(bv(),Yf=!0),kr(this),this._isFrozen=!1,a===void 0?(this.na=jh,this.xk="black"):typeof a=="string"?(this.na=jh,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===yh?(this.Qd=tu,this.Lk=$l):this.Lk=a===Oc?this.Qd=wo:this.Qd=is,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}ko.prototype.copy=function(){var a=new ko;return a.na=this.na,a.xk=this.xk,a.Qd=this.Qd.J(),a.Lk=this.Lk.J(),a.Gr=this.Gr,a.Xp=this.Xp,this.we!==null&&(a.we=this.we.copy()),a.cr=this.cr,a},Ue=ko.prototype,Ue.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Ue.ka=function(){return Object.isFrozen(this)&&bt("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Ue.qb=function(a){a.classType===ko&&(this.type=a)},Ue.toString=function(){var a="Brush(";if(this.type===jh)a+=this.color;else if(a=this.type===yh?a+"Linear ":this.type===Oc?a+"Radial ":this.type===$f?a+"Pattern ":a+"(unknown) ",a+=this.start+" "+this.end,this.colorStops!==null)for(var y=this.colorStops.iterator;y.next();)a+=" "+y.key+":"+y.value;return a+")"},Ue.addColorStop=function(a,y){return this._isFrozen&&Ut(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&Ln(a,"0 <= loc <= 1",ko,"addColorStop:loc"),this.we===null&&(this.we=new Ii),this.we.add(a,y),this.na===jh&&(this.type=yh),this.xe=null,this},Ue.Vz=function(a,y){if(this._isFrozen&&Ut(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Xf:y,this.type===jh)vh(this.color),this.color=Vf(a,y);else if((this.type===yh||this.type===Oc)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)vh(x.value),this.addColorStop(x.key,Vf(a,y));return this};function hg(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Xf:x,vh(a),Vf(y,x)}Ue.Wy=function(a,y){if(this._isFrozen&&Ut(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Xf:y,this.type===jh)vh(this.color),this.color=Vf(-a,y);else if((this.type===yh||this.type===Oc)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)vh(x.value),this.addColorStop(x.key,Vf(-a,y));return this};function Op(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Xf:x,vh(a),Vf(-y,x)}function Wf(a,y,x){vh(a),a=Ta.j;var b=Ta.u,E=Ta.o,z=Ta.F;return vh(y),x===void 0&&(x=.5),"rgba("+Math.round((Ta.j-a)*x+a)+", "+Math.round((Ta.u-b)*x+b)+", "+Math.round((Ta.o-E)*x+E)+", "+Math.round((Ta.F-z)*x+z)+")"}Ue.Gx=function(){if(this.type===jh)return Zf(this.color);if((this.type===yh||this.type===Oc)&&this.colorStops!==null){var a=this.colorStops;if(this.type===Oc)return Zf(a.first().value);if(a.get(.5)!==null)return Zf(a.get(.5));if(a.count===2)return a=a.Fa(),Zf(Wf(a[0].value,a[1].value));for(var y=a.iterator,x=-1,b=-1,E=1,z=1;y.next();){var te=y.key,re=Math.abs(.5-y.key);E>z&&re<E?(x=te,E=re):z>=E&&re<z&&(b=te,z=re)}return x>b&&(z=x,x=b,b=z,z=E),E=b-x,Zf(Wf(a.get(x),a.get(b),1-z/E))}return!1};function Zf(a){return a?a instanceof ko?a.Gx():(vh(a),128>(299*Ta.j+587*Ta.u+114*Ta.o)/1e3):!1}function Vf(a,y){switch(y){case Xf:y=100*yv(Ta.j);var x=100*yv(Ta.u),b=100*yv(Ta.o);return bu.j=.4124564*y+.3575761*x+.1804375*b,bu.u=.2126729*y+.7151522*x+.072175*b,bu.o=.0193339*y+.119192*x+.9503041*b,bu.F=Ta.F,y=xv(bu.j/Kf[0]),x=xv(bu.u/Kf[1]),b=xv(bu.o/Kf[2]),Yd.j=116*x-16,Yd.u=500*(y-x),Yd.o=200*(x-b),Yd.F=bu.F,Yd.j=Math.min(100,Math.max(0,Yd.j+100*a)),a=(Yd.j+16)/116,y=a-Yd.o/200,bu.j=Kf[0]*oS(Yd.u/500+a),bu.u=Kf[1]*(Yd.j>Tm*wv?Math.pow(a,3):Yd.j/Tm),bu.o=Kf[2]*oS(y),bu.F=Yd.F,a=-.969266*bu.j+1.8760108*bu.u+.041556*bu.o,y=.0556434*bu.j+-.2040259*bu.u+1.0572252*bu.o,Ta.j=255*Sv((3.2404542*bu.j+-1.5371385*bu.u+-.4985314*bu.o)/100),Ta.u=255*Sv(a/100),Ta.o=255*Sv(y/100),Ta.F=bu.F,Ta.j=Math.round(Ta.j),255<Ta.j?Ta.j=255:0>Ta.j&&(Ta.j=0),Ta.u=Math.round(Ta.u),255<Ta.u?Ta.u=255:0>Ta.u&&(Ta.u=0),Ta.o=Math.round(Ta.o),255<Ta.o?Ta.o=255:0>Ta.o&&(Ta.o=0),"rgba("+Ta.j+", "+Ta.u+", "+Ta.o+", "+Ta.F+")";case aS:return vv(),bc.o=Math.min(100,Math.max(0,bc.o+100*a)),"hsla("+bc.j+", "+bc.u+"%, "+bc.o+"%, "+bc.F+")";default:bt("Unknown color space: "+y)}}function vh(a){Yf||(bv(),Yf=!0);var y=Ev;if(y!==null){y.clearRect(0,0,1,1),y.fillStyle="#000000";var x=y.fillStyle;y.fillStyle=a,y.fillStyle!==x?(y.fillRect(0,0,1,1),a=y.getImageData(0,0,1,1).data,Ta.j=a[0],Ta.u=a[1],Ta.o=a[2],Ta.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,Ta.j=0,Ta.u=0,Ta.o=0,Ta.F=1)}}function vv(){var a=Ta.j/255,y=Ta.u/255,x=Ta.o/255,b=Math.max(a,y,x),E=Math.min(a,y,x),z=b-E;if(E=(b+E)/2,z===0)var te=a=0;else{switch(b){case a:te=(y-x)/z%6;break;case y:te=(x-a)/z+2;break;case x:te=(a-y)/z+4}te*=60,0>te&&(te+=360),a=z/(1-Math.abs(2*E-1))}bc.j=Math.round(te),bc.u=Math.round(100*a),bc.o=Math.round(100*E),bc.F=Ta.F}function yv(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function Sv(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function xv(a){return a>wv?Math.pow(a,1/3):(Tm*a+16)/116}function oS(a){var y=a*a*a;return y>wv?y:(116*a-16)/Tm}function Sf(a,y){typeof a!="string"&&(a instanceof ko||bt("Value for "+y+" must be a color string or a Brush, not "+a))}function bv(){Ev=ls?new Oa(null,void 0,{willReadFrequently:!0}).context:null}Nt.Object.defineProperties(ko.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&Ut(this,a),this.na=a,this.start.Mc()&&(a===yh?this.start=tu:a===Oc&&(this.start=wo)),this.end.Mc()&&(a===yh?this.end=$l:a===Oc&&(this.end=wo)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&Ut(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&Ut(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&Ut(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&Ut(this,a),0>a&&Ln(a,">= zero",ko,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&Ut(this,a),0>a&&Ln(a,">= zero",ko,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&Ut(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&Ut(this,a),this.cr=a,this.xe=null}}}),ko.prototype.isDark=ko.prototype.Gx,ko.prototype.darkenBy=ko.prototype.Wy,ko.prototype.lightenBy=ko.prototype.Vz,ko.prototype.addColorStop=ko.prototype.addColorStop;var wv=216/24389,Tm=24389/27,Kf=[95.047,100,108.883],Ev=null,Ta=new Dc,bc=new Dc,bu=new Dc,Yd=new Dc,Yf=!1;ko.className="Brush";var jh;ko.Solid=jh=new tn(ko,"Solid",0);var yh;ko.Linear=yh=new tn(ko,"Linear",1);var Oc;ko.Radial=Oc=new tn(ko,"Radial",2);var $f;ko.Pattern=$f=new tn(ko,"Pattern",4);var Xf;ko.Lab=Xf=new tn(ko,"Lab",5);var aS;ko.HSL=aS=new tn(ko,"HSL",6),ko.randomColor=function(a,y){a===void 0&&(a=128),y===void 0&&(y=Math.max(a,255));var x=Math.abs(y-a);y=Math.floor(a+Math.random()*x).toString(16);var b=Math.floor(a+Math.random()*x).toString(16);return a=Math.floor(a+Math.random()*x).toString(16),2>y.length&&(y="0"+y),2>b.length&&(b="0"+b),2>a.length&&(a="0"+a),"#"+y+b+a},ko.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;Yf||(bv(),Yf=!0);var y=Ev;if(y===null)return!0;y.fillStyle="#000000";var x=y.fillStyle;return y.fillStyle=a,y.fillStyle!==x?!0:(y.fillStyle="#FFFFFF",x=y.fillStyle,y.fillStyle=a,y.fillStyle!==x)},ko.lighten=function(a){return hg(a)},ko.lightenBy=hg,ko.darken=function(a){return Op(a)},ko.darkenBy=Op,ko.mix=Wf,ko.isDark=Zf;function nl(){this.xa="Base"}nl.prototype.measure=function(){},nl.prototype.Yz=function(a,y,x,b,E){a.measure(y,x,b,E)},nl.prototype.arrange=function(){},nl.prototype.Ly=function(a,y,x,b,E,z){a.arrange(y,x,b,E,z)},nl.prototype.iA=function(a){a.Uj()},nl.prototype.gc=function(){},Nt.Object.defineProperties(nl.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return hi}}}),nl.prototype.remeasureObject=nl.prototype.iA,nl.prototype.arrangeElement=nl.prototype.Ly,nl.prototype.measureElement=nl.prototype.Yz,nl.className="PanelLayout";function Im(){this.xa="Base"}qt(Im,nl),Im.prototype.measure=function(a,y,x,b,E,z,te){var re=b.length;a=Sh(a);for(var le=0;le<re;le++){var ce=b[le];if(ce.visible||ce===a){var de=ce.margin,ve=de.right+de.left;de=de.top+de.bottom,ce.measure(y,x,z,te);var Pe=ce.measuredBounds;ve=Math.max(Pe.width+ve,0),de=Math.max(Pe.height+de,0),Pe=ce.position.x;var Le=ce.position.y;isFinite(Pe)||(Pe=0),isFinite(Le)||(Le=0),ce instanceof eo&&ce.isGeometryPositioned&&(ce=ce.strokeWidth/2,Pe-=ce,Le-=ce),Xr(E,Pe,Le,ve,de)}}},Im.prototype.arrange=function(a,y,x){var b=y.length,E=a.padding;for(a=x.x-E.left,x=x.y-E.top,E=0;E<b;E++){var z=y[E],te=z.measuredBounds,re=z.margin,le=z.position.x,ce=z.position.y;if(le=isNaN(le)?-a:le-a,ce=isNaN(ce)?-x:ce-x,z instanceof eo&&z.isGeometryPositioned){var de=z.strokeWidth/2;le-=de,ce-=de}z.visible&&z.arrange(le+re.left,ce+re.top,te.width,te.height)}};function km(){this.xa="Base"}qt(km,nl),km.prototype.measure=function(a,y,x,b,E,z,te){var re=b.length;y=gn(),z=Sh(a);for(var le=0;le<re;le++){var ce=b[le];if(ce.visible||ce===z){var de=Ps(ce,!1);if(de!==_n&&de!==Ci)y.push(ce);else{ce.measure(1/0,x,0,te),de=ce.margin,ce=ce.measuredBounds;var ve=Math.max(ce.height+de.top+de.bottom,0);E.width+=Math.max(ce.width+de.right+de.left,0),E.height=Math.max(E.height,ve)}}}for(b=y.length,a.desiredSize.height?x=Math.min(a.desiredSize.height,a.maxSize.height):E.height!==0&&(x=Math.min(E.height,a.maxSize.height)),a=0;a<b;a++)le=y[a],(le.visible||le===z)&&(de=le.margin,re=de.right+de.left,de=de.top+de.bottom,le.measure(1/0,x,0,te),le=le.measuredBounds,de=Math.max(le.height+de,0),E.width+=Math.max(le.width+re,0),E.height=Math.max(E.height,de));kn(y)},km.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,z=E.top,te=a.isOpposite,re=te?x.width:E.left,le=0;le<b;le++){var ce=z,de=y[le];if(de.visible){var ve=de.measuredBounds,Pe=de.margin,Le=Pe.top+Pe.bottom,Fe=z+E.bottom,Ze=ve.height,pt=Ps(de,!1);(isNaN(de.desiredSize.height)&&pt===Qn||pt===ki)&&(Ze=Math.max(x.height-Le-Fe,0)),Le=Ze+Le+Fe,Fe=de.alignment,Fe.Xb()&&(Fe=a.defaultAlignment),Fe.sb()||(Fe=wo),te&&(re-=ve.width+Pe.left+Pe.right),de.arrange(re+Fe.offsetX+Pe.left,ce+Fe.offsetY+Pe.top+(x.height*Fe.y-Le*Fe.y),ve.width,Ze),te||(re+=ve.width+Pe.left+Pe.right)}}};function Dm(){this.xa="Base"}qt(Dm,nl),Dm.prototype.measure=function(a,y,x,b,E,z){var te=b.length;x=gn();for(var re=Sh(a),le=0;le<te;le++){var ce=b[le];if(ce.visible||ce===re){var de=Ps(ce,!1);if(de!==_n&&de!==ki)x.push(ce);else{var ve=ce.margin;de=ve.right+ve.left,ve=ve.top+ve.bottom,ce.measure(y,1/0,z,0),ce=ce.measuredBounds,gs(E,Math.max(E.width,Math.max(ce.width+de,0)),E.height+Math.max(ce.height+ve,0))}}}if(b=x.length,b!==0){for(a.desiredSize.width?y=Math.min(a.desiredSize.width,a.maxSize.width):E.width!==0&&(y=Math.min(E.width,a.maxSize.width)),a=0;a<b;a++)le=x[a],(le.visible||le===re)&&(ce=le.margin,te=ce.right+ce.left,ce=ce.top+ce.bottom,le.measure(y,1/0,z,0),le=le.measuredBounds,ce=Math.max(le.height+ce,0),E.width=Math.max(E.width,Math.max(le.width+te,0)),E.height+=ce);kn(x)}},Dm.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,z=E.left,te=a.isOpposite,re=te?x.height:E.top,le=0;le<b;le++){var ce=z,de=y[le];if(de.visible){var ve=de.measuredBounds,Pe=de.margin,Le=Pe.left+Pe.right,Fe=z+E.right,Ze=ve.width,pt=Ps(de,!1);(isNaN(de.desiredSize.width)&&pt===Qn||pt===Ci)&&(Ze=Math.max(x.width-Le-Fe,0)),Le=Ze+Le+Fe,Fe=de.alignment,Fe.Xb()&&(Fe=a.defaultAlignment),Fe.sb()||(Fe=wo),te&&(re-=ve.height+Pe.bottom+Pe.top),de.arrange(ce+Fe.offsetX+Pe.left+(x.width*Fe.x-Le*Fe.x),re+Fe.offsetY+Pe.top,Ze,ve.height),te||(re+=ve.height+Pe.bottom+Pe.top)}}};function Om(){this.xa="Base"}qt(Om,nl),Om.prototype.measure=function(a,y,x,b,E,z,te){var re=b.length,le=a.Pb(),ce=le.margin,de=ce.right+ce.left,ve=ce.top+ce.bottom;le.measure(y,x,z,te);var Pe=le.measuredBounds;z=Pe.width,te=Pe.height;var Le=Math.max(z+de,0),Fe=Math.max(te+ve,0),Ze=a.isClipping,pt=jn.allocAt(-ce.left,-ce.top,Le,Fe),at=jn.allocAt(0,0,z,te);Cv(le,at,!0),z=at.width,te=at.height;for(var Ct=!0,Lt=Sh(a),Dt=0;Dt<re;Dt++){var Kt=b[Dt];Pe=y;var vn=x;if(Kt!==le&&(Kt.visible||Kt===Lt)){ce=Kt.margin;var Pi=ce.left,ji=ce.top;switch(Le=ce.right+ce.left,Fe=ce.top+ce.bottom,ce=Ps(Kt,!1),ce){case Qn:Pe=z,vn=te,ji=Pi=Fe=Le=0;break;case Ci:Pe=z,Pi=Le=0;break;case ki:vn=te,ji=Fe=0}Kt.measure(Pe,vn,0,0),Pe=Kt.measuredBounds,Le=Math.max(Pe.width+Le,0),Fe=Math.max(Pe.height+Fe,0),ce=Kt.alignment,ce.Xb()&&(ce=a.defaultAlignment),ce.sb()||(ce=wo);var Di=Kt.alignmentFocus;if(Di.Xb()&&(Di=wo),vn=null,Kt instanceof hi&&Kt.$e!==""&&(vn=Kt.fb(Kt.$e),vn===Kt&&(vn=null)),Pi=at.x-Pi,ji=at.y-ji,vn!==null){for(Kt.arrange(0,0,Pe.width,Pe.height),Pe=vn.actualBounds,Pe=lt.allocAt(Pe.x+(Di.x*Pe.width-Di.offsetX),Pe.y+(Di.y*Pe.height-Di.offsetY)),vn=vn.panel;vn!==Kt;)vn.transform.Ga(Pe),vn=vn.panel;Pi+=ce.x*z+ce.offsetX-Pe.x,ji+=ce.y*te+ce.offsetY-Pe.y,lt.free(Pe)}else Pi+=ce.x*z+ce.offsetX-(Di.x*Pe.width+Di.offsetX),ji+=ce.y*te+ce.offsetY-(Di.y*Pe.height+Di.offsetY);Ct?(Ct=!1,E.h(Pi,ji,Le,Fe)):Xr(E,Pi,ji,Le,Fe)}}switch(Ct?E.assign(pt):Ze?E.Uu(at.x,at.y,at.width,at.height):Xr(E,pt.x,pt.y,pt.width,pt.height),jn.free(pt),jn.free(at),ce=le.stretch,ce===ar&&(ce=Ps(le,!1)),ce){case _n:return;case Qn:if(!isFinite(y)&&!isFinite(x))return;break;case Ci:if(!isFinite(y))return;break;case ki:if(!isFinite(x))return}for(Pe=le.measuredBounds,z=Pe.width,te=Pe.height,Le=Math.max(z+de,0),Fe=Math.max(te+ve,0),ce=le.margin,at=jn.allocAt(-ce.left,-ce.top,Le,Fe),Cv(le,at,!0),z=at.width,te=at.height,y=0;y<re;y++)x=b[y],x===le||!x.visible&&x!==Lt||(ce=x.margin,Le=ce.right+ce.left,Fe=ce.top+ce.bottom,Pe=x.measuredBounds,Le=Math.max(Pe.width+Le,0),Fe=Math.max(Pe.height+Fe,0),de=x.alignment,de.Xb()&&(de=a.defaultAlignment),de.sb()||(de=wo),x=x.alignmentFocus,x.Xb()&&(x=wo),Ct?(Ct=!1,E.h(de.x*z+de.offsetX-(x.x*Pe.width+x.offsetX)-ce.left,de.y*te+de.offsetY-(x.y*Pe.height+x.offsetY)-ce.top,Le,Fe)):Xr(E,de.x*z+de.offsetX-(x.x*Pe.width+x.offsetX)-ce.left,de.y*te+de.offsetY-(x.y*Pe.height+x.offsetY)-ce.top,Le,Fe));Ct?E.assign(pt):Ze?E.Uu(at.x,at.y,at.width,at.height):Xr(E,pt.x,pt.y,pt.width,pt.height),jn.free(at)},Om.prototype.arrange=function(a,y,x){var b=y.length,E=a.Pb(),z=E.measuredBounds,te=z.width,re=z.height,le=a.padding;z=le.left,le=le.top;var ce=z-x.x,de=le-x.y;for(E.arrange(ce,de,te,re),te=jn.allocAt(0,0,te,re),Cv(E,te,!1),re=0;re<b;re++){var ve=y[re];if(ve!==E){ce=ve.measuredBounds;var Pe=ce.width,Le=ce.height;de=ve.alignment,de.Xb()&&(de=a.defaultAlignment),de.sb()||(de=wo);var Fe=ve.alignmentFocus;if(Fe.Xb()&&(Fe=wo),ce=null,ve instanceof hi&&ve.$e!==""&&(ce=ve.fb(ve.$e),ce===ve&&(ce=null)),ce!==null){var Ze=ce.actualBounds;for(Fe=lt.allocAt(Ze.x+(Fe.x*Ze.width-Fe.offsetX),Ze.y+(Fe.y*Ze.height-Fe.offsetY)),ce=ce.panel;ce!==ve;)ce.transform.Ga(Fe),ce=ce.panel;ce=de.x*te.width+de.offsetX-Fe.x,de=de.y*te.height+de.offsetY-Fe.y,lt.free(Fe)}else ce=de.x*te.width+de.offsetX-(Fe.x*Pe+Fe.offsetX),de=de.y*te.height+de.offsetY-(Fe.y*Le+Fe.offsetY);ce+=te.x-x.x,de+=te.y-x.y,ve.visible&&ve.arrange(z+ce,le+de,Pe,Le)}}jn.free(te)};function Cv(a,y,x){var b=null;if(a instanceof hi&&a.$e!==""&&(b=a.fb(a.$e),b===a&&(b=null)),b!==null)for(x&&a.arrange(0,0,y.width,y.height),y.assign(b.actualBounds),b=b.panel;b!==a;)b.transform.pp(y),b=b.panel}function Rm(){this.xa="Base"}qt(Rm,nl),Rm.prototype.measure=function(a,y,x,b,E,z,te){var re=b.length,le=a.Pb(),ce=le.margin,de=y,ve=x,Pe=ce.right+ce.left,Le=ce.top+ce.bottom;le.measure(y,x,z,te),ce=le.measuredBounds;var Fe=0,Ze=null;le instanceof eo&&(Ze=le,Fe=Ze.strokeWidth*Ze.scale);var pt=Math.max(ce.width+Pe,0);ce=Math.max(ce.height+Le,0);var at=Mv(le),Ct=at.x*pt+at.offsetX;at=at.y*ce+at.offsetY;var Lt=Lv(le),Dt=Lt.x*pt+Lt.offsetX;for(Lt=Lt.y*ce+Lt.offsetY,isFinite(y)&&(de=Math.max(Math.abs(Ct-Dt)-Fe,0)),isFinite(x)&&(ve=Math.max(Math.abs(at-Lt)-Fe,0)),Fe=fi.alloc(),Fe.h(0,0),a=Sh(a),Lt=0;Lt<re;Lt++)at=b[Lt],at===le||!at.visible&&at!==a||(ce=at.margin,pt=ce.right+ce.left,Ct=ce.top+ce.bottom,at.measure(de,ve,0,0),ce=at.measuredBounds,pt=Math.max(ce.width+pt,0),ce=Math.max(ce.height+Ct,0),Fe.h(Math.max(pt,Fe.width),Math.max(ce,Fe.height)));if(re===1)E.width=pt,E.height=ce,fi.free(Fe);else{switch(at=Mv(le),Lt=Lv(le),re=b=0,Lt.x!==at.x&&Lt.y!==at.y&&(b=Fe.width/Math.abs(Lt.x-at.x),re=Fe.height/Math.abs(Lt.y-at.y)),fi.free(Fe),Fe=0,Ze!==null&&(Fe=Ze.strokeWidth*Ze.scale,Rv(Ze)===pi&&(b=re=Math.max(b,re))),b+=Math.abs(at.offsetX)+Math.abs(Lt.offsetX)+Fe,re+=Math.abs(at.offsetY)+Math.abs(Lt.offsetY)+Fe,Ze=le.stretch,Ze===ar&&(Ze=Ps(le,!1)),Ze){case _n:te=z=0;break;case Qn:isFinite(y)&&(b=y),isFinite(x)&&(re=x);break;case Ci:isFinite(y)&&(b=y),te=0;break;case ki:z=0,isFinite(x)&&(re=x)}le.Uj(),le.measure(b,re,z,te),E.width=le.measuredBounds.width+Pe,E.height=le.measuredBounds.height+Le}},Rm.prototype.arrange=function(a,y){var x=y.length,b=a.Pb(),E=b.measuredBounds,z=jn.alloc();z.h(0,0,1,1);var te=b.margin,re=te.left;te=te.top;var le=a.padding,ce=le.left;le=le.top,b.arrange(ce+re,le+te,E.width,E.height);var de=Mv(b),ve=Lv(b),Pe=de.y*E.height+de.offsetY,Le=ve.x*E.width+ve.offsetX;for(ve=ve.y*E.height+ve.offsetY,z.x=de.x*E.width+de.offsetX,z.y=Pe,Xr(z,Le,ve,0,0),z.x+=re+ce,z.y+=te+le,E=0;E<x;E++)re=y[E],re!==b&&(ce=re.measuredBounds,te=re.margin,le=Math.max(ce.width+te.right+te.left,0),de=Math.max(ce.height+te.top+te.bottom,0),Pe=re.alignment,Pe.Xb()&&(Pe=a.defaultAlignment),Pe.sb()||(Pe=wo),le=z.width*Pe.x+Pe.offsetX-le*Pe.x+te.left+z.x,te=z.height*Pe.y+Pe.offsetY-de*Pe.y+te.top+z.y,re.visible&&(Qr(z.x,z.y,z.width,z.height,le,te,ce.width,ce.height)?re.arrange(le,te,ce.width,ce.height):re.arrange(le,te,ce.width,ce.height,new jn(z.x,z.y,z.width,z.height))));jn.free(z)};function Fm(){this.xa="Base",this.name="Table"}qt(Fm,nl),Fm.prototype.measure=function(a,y,x,b,E){for(var z=b.length,te=gn(),re=gn(),le=0;le<z;le++){var ce=b[le],de=ce instanceof hi?ce:null;if(de!==null&&zh(de)&&ce.visible){re.push(de);for(var ve=de.O.s,Pe=ve.length,Le=0;Le<Pe;Le++){var Fe=ve[Le];de.type===hi.TableRow?Fe.row=ce.row:de.type===hi.TableColumn&&(Fe.column=ce.column),te.push(Fe)}}else te.push(ce)}z=te.length,z===0&&(a.Fb(0),a.Eb(0));for(var Ze=[],pt=0;pt<z;pt++){var at=te[pt];at.visible&&(cs(at,!0),sr(at,!0),Ze[at.row]||(Ze[at.row]=[]),Ze[at.row][at.column]||(Ze[at.row][at.column]=[]),Ze[at.row][at.column].push(at))}kn(te);var Ct=gn(),Lt=gn(),Dt=gn(),Kt={count:0},vn={count:0},Pi=y,ji=x,Di=a.rowDefs,vi=a.colDefs,ti=null;z=Di.length;for(var Br=0;Br<z;Br++)ti=Di[Br],ti!==void 0&&(ti.actual=0);z=vi.length;for(var Ar=0;Ar<z;Ar++)ti=vi[Ar],ti!==void 0&&(ti.actual=0);for(var Wo=Ze.length,wa=0,vl=0;vl<Wo;vl++)Ze[vl]&&(wa=Math.max(wa,Ze[vl].length));var Pl=Math.min(a.topIndex,Wo-1),lu=Math.min(a.leftIndex,wa-1),yl=0;Wo=Ze.length;for(var $h=Sh(a),_s=0;_s<Wo;_s++)if(Ze[_s]){wa=Ze[_s].length;var Pd=a.Fb(_s);Pd.actual=0;for(var uu=Pd.oc=0;uu<wa;uu++)if(Ze[_s][uu]){var Xh=a.Eb(uu);Ct[uu]===void 0&&(Xh.actual=0,Xh.oc=0,Ct[uu]=!0);for(var Cc=Ze[_s][uu],$c=Cc.length,pc=0;pc<$c;pc++){var rc=Cc[pc];if(rc.visible||rc===$h){var Ag=1<rc.rowSpan||1<rc.columnSpan;Ag&&(_s<Pl||uu<lu||Lt.push(rc));var Ad=rc.margin,Sp=Ad.right+Ad.left,mc=Ad.top+Ad.bottom,cu=Tl(rc,Pd,Xh,!1),bm=rc.desiredSize,If=!isNaN(bm.height),Fd=!isNaN(bm.width)&&If;if(Ag||cu===_n||Fd||_s<Pl||uu<lu||(Kt[uu]!==void 0||cu!==Qn&&cu!==Ci||(Kt[uu]=-1,Kt.count++),vn[_s]!==void 0||cu!==Qn&&cu!==ki||(vn[_s]=-1,vn.count++),Dt.push(rc)),rc.measure(1/0,1/0,0,0),!(_s<Pl||uu<lu)){var oc=rc.measuredBounds,nf=Math.max(oc.width+Sp,0),vc=Math.max(oc.height+mc,0);if(rc.rowSpan===1&&(cu===_n||cu===Ci)){ti=a.Fb(_s);var Ng=ti.Wc();yl=Math.max(vc-ti.actual,0),yl+Ng>ji&&(yl=Math.max(ji-Ng,0));var ov=ti.oa===0;ti.oc=ti.oc+yl,ti.actual=ti.oa+yl,ji=Math.max(ji-(yl+(ov?Ng:0)),0)}if(rc.columnSpan===1&&(cu===_n||cu===ki)){ti=a.Eb(uu);var wm=ti.Wc();yl=Math.max(nf-ti.actual,0),yl+wm>Pi&&(yl=Math.max(Pi-wm,0));var Qy=ti.oa===0;ti.oc=ti.oc+yl,ti.actual=ti.oa+yl,Pi=Math.max(Pi-(yl+(Qy?wm:0)),0)}Ag&&rc.Uj()}}}}}kn(Ct);var ih=0,wh=0;z=a.columnCount;for(var kf=0;kf<z;kf++){var Mg=vi[kf];Mg!==void 0&&(ih+=isNaN(Mg.Hc)?Mg.oc:Mg.Hc,Mg.oc!==0&&(ih+=Mg.Wc()))}z=a.rowCount;for(var xp=0;xp<z;xp++){var Lg=Di[xp];Lg!==void 0&&(wh+=isNaN(Lg.Hc)?Lg.oc:Lg.Hc,Lg.oc!==0&&(wh+=Lg.Wc()))}Pi=Math.max(y-ih,0);var rh=ji=Math.max(x-wh,0),Qh=Pi;z=Dt.length;for(var ac=0;ac<z;ac++){var Bd=Dt[ac],av=a.Fb(Bd.row),Eh=a.Eb(Bd.column),bp=Bd.measuredBounds,Nd=Bd.margin,rf=Nd.right+Nd.left,jd=Nd.top+Nd.bottom;Kt[Bd.column]=Eh.oc===0&&Kt[Bd.column]!==void 0?Math.max(bp.width+rf,Kt[Bd.column]):null,vn[Bd.row]=av.oc===0&&vn[Bd.row]!==void 0?Math.max(bp.height+jd,vn[Bd.row]):null}var Df=0,wp=0,fd;for(fd in vn)fd!=="count"&&(Df+=vn[fd]);for(fd in Kt)fd!=="count"&&(wp+=Kt[fd]);for(var Rl=fi.alloc(),Em=0;Em<z;Em++){var Mu=Dt[Em];if(Mu.visible||Mu===$h){var Gs=a.Fb(Mu.row),Lu=a.Eb(Mu.column),Ch=0;isFinite(Lu.width)?Ch=Lu.width:(isFinite(Pi)&&Kt[Mu.column]!==null?wp===0?Ch=Lu.actual+Pi:Ch=Kt[Mu.column]/wp*Qh:Kt[Mu.column]!==null?Ch=Pi:Ch=Lu.actual||Pi,Ch=Math.max(0,Ch-Lu.Wc()));var Jh=0;switch(isFinite(Gs.height)?Jh=Gs.height:(isFinite(ji)&&vn[Mu.row]!==null?Df===0?Jh=Gs.actual+ji:Jh=vn[Mu.row]/Df*rh:vn[Mu.row]!==null?Jh=ji:Jh=Gs.actual||ji,Jh=Math.max(0,Jh-Gs.Wc())),Rl.h(Math.max(Lu.minimum,Math.min(Ch,Lu.maximum)),Math.max(Gs.minimum,Math.min(Jh,Gs.maximum))),cu=Tl(Mu,Gs,Lu,!1),cu){case Ci:Rl.height=Math.max(Rl.height,Gs.actual+ji);break;case ki:Rl.width=Math.max(Rl.width,Lu.actual+Pi)}var of=Mu.margin,Jy=of.right+of.left,sv=of.top+of.bottom;Mu.Uj(),Mu.measure(Rl.width,Rl.height,Lu.minimum,Gs.minimum);var Ep=Mu.measuredBounds,af=Math.max(Ep.width+Jy,0),Of=Math.max(Ep.height+sv,0);isFinite(Pi)&&(af=Math.min(af,Rl.width)),isFinite(ji)&&(Of=Math.min(Of,Rl.height));var sc=0;sc=Gs.actual,Gs.actual=Math.max(Gs.actual,Of),Gs.oc=Math.max(Gs.oc,Of),yl=Gs.actual-sc,ji=Math.max(ji-yl,0),vn[Mu.row]===null&&(rh=Math.max(rh-yl,0)),sc=Lu.actual,Lu.actual=Math.max(Lu.actual,af),Lu.oc=Math.max(Lu.oc,af),yl=Lu.actual-sc,Pi=Math.max(Pi-yl,0),Kt[Mu.column]===null&&(Qh=Math.max(Qh-yl,0))}}kn(Dt);var Ph=fi.alloc(),Md=gn(),zc=gn();if(z=Lt.length,z!==0){for(var Tg=0;Tg<Wo;Tg++)if(Ze[Tg]){wa=Ze[Tg].length;var Cp=a.Fb(Tg);Md[Tg]=Cp.actual;for(var Ig=0;Ig<wa;Ig++)if(Ze[Tg][Ig]){var lv=a.Eb(Ig);zc[Ig]=lv.actual}}}for(var Pp=0;Pp<z;Pp++){var As=Lt[Pp];if(As.visible||As===$h){var pd=a.Fb(As.row),Xc=a.Eb(As.column);switch(Rl.h(Math.max(Xc.minimum,Math.min(y,Xc.maximum)),Math.max(pd.minimum,Math.min(x,pd.maximum))),cu=Tl(As,pd,Xc,!1),cu){case Qn:zc[Xc.index]!==0&&(Rl.width=Math.min(Rl.width,zc[Xc.index])),Md[pd.index]!==0&&(Rl.height=Math.min(Rl.height,Md[pd.index]));break;case Ci:zc[Xc.index]!==0&&(Rl.width=Math.min(Rl.width,zc[Xc.index]));break;case ki:Md[pd.index]!==0&&(Rl.height=Math.min(Rl.height,Md[pd.index]))}isFinite(Xc.width)&&(Rl.width=Xc.width),isFinite(pd.height)&&(Rl.height=pd.height),Ph.h(0,0);for(var uv=Xc.minimum,yc=pd.minimum,qh=1;qh<As.rowSpan&&!(As.row+qh>=a.rowCount);qh++)ti=a.Fb(As.row+qh),yl=0,yl=cu===Qn||cu===ki?Math.max(ti.minimum,Md[As.row+qh]===0?ti.maximum:Math.min(Md[As.row+qh],ti.maximum)):Math.max(ti.minimum,isNaN(ti.Hc)?ti.maximum:Math.min(ti.Hc,ti.maximum)),Ph.height+=yl,yc+=ti.minimum;for(var Qc=1;Qc<As.columnSpan&&!(As.column+Qc>=a.columnCount);Qc++)ti=a.Eb(As.column+Qc),yl=0,yl=cu===Qn||cu===Ci?Math.max(ti.minimum,zc[As.column+Qc]===0?ti.maximum:Math.min(zc[As.column+Qc],ti.maximum)):Math.max(ti.minimum,isNaN(ti.Hc)?ti.maximum:Math.min(ti.Hc,ti.maximum)),Ph.width+=yl,uv+=ti.minimum;Rl.width+=Ph.width,Rl.height+=Ph.height;var Ap=As.margin,kg=Ap.right+Ap.left,Cm=Ap.top+Ap.bottom;As.measure(Rl.width,Rl.height,uv,yc);for(var Np=As.measuredBounds,zd=Math.max(Np.width+kg,0),sf=Math.max(Np.height+Cm,0),Dg=0,Mp=0;Mp<As.rowSpan&&!(As.row+Mp>=a.rowCount);Mp++)ti=a.Fb(As.row+Mp),Dg+=ti.total||0;if(Dg<sf){var eg=sf-Dg,oh=sf-Dg;if(As.spanAllocation!==null)for(var tg=As.spanAllocation,Ah=0;Ah<As.rowSpan&&!(0>=eg)&&!(As.row+Ah>=a.rowCount);Ah++){ti=a.Fb(As.row+Ah);var ng=ti.oa||0,lf=tg(As,ti,oh);ti.actual=Math.min(ti.maximum,ng+lf),ti.oa!==ng&&(eg-=ti.oa-ng)}for(;0<eg;){var Ld=ti.oa||0;if(isNaN(ti.height)&&ti.maximum>Ld&&(ti.actual=Math.min(ti.maximum,Ld+eg),ti.oa!==Ld&&(eg-=ti.oa-Ld)),ti.index===0)break;ti=a.Fb(ti.index-1)}}for(var Rf=0,ig=0;ig<As.columnSpan&&!(As.column+ig>=a.columnCount);ig++)ti=a.Eb(As.column+ig),Rf+=ti.total||0;if(Rf<zd){var Ff=zd-Rf,qy=zd-Rf;if(As.spanAllocation!==null)for(var Nh=As.spanAllocation,uf=0;uf<As.columnSpan&&!(0>=Ff)&&!(As.column+uf>=a.columnCount);uf++){ti=a.Eb(As.column+uf);var Pm=ti.oa||0,eS=Nh(As,ti,qy);ti.actual=Math.min(ti.maximum,Pm+eS),ti.oa!==Pm&&(Ff-=ti.oa-Pm)}for(;0<Ff;){var cv=ti.oa||0;if(isNaN(ti.width)&&ti.maximum>cv&&(ti.actual=Math.min(ti.maximum,cv+Ff),ti.oa!==cv&&(Ff-=ti.oa-cv)),ti.index===0)break;ti=a.Eb(ti.index-1)}}}}kn(Lt),fi.free(Ph),fi.free(Rl),Md!==void 0&&kn(Md),zc!==void 0&&kn(zc);var Bf=0,jf=0,dv=a.desiredSize,y1=a.maxSize;cu=Ps(a,!0);var Am=wh=ih=0,Nm=0;z=a.columnCount;for(var hv=0;hv<z;hv++)vi[hv]!==void 0&&(ti=a.Eb(hv),isFinite(ti.width)?(Am+=ti.width,Am+=ti.Wc()):Vm(ti)===jp?(Am+=ti.oa,Am+=ti.Wc()):ti.oa!==0&&(ih+=ti.oa,ih+=ti.Wc()));isFinite(dv.width)?Bf=Math.min(dv.width,y1.width):Bf=cu!==_n&&isFinite(y)?y:ih,Bf=Math.max(Bf,a.minSize.width),Bf=Math.max(Bf-Am,0);for(var Ib=ih===0?1:Math.max(Bf/ih,1),gv=0;gv<z;gv++)vi[gv]!==void 0&&(ti=a.Eb(gv),isFinite(ti.width)||Vm(ti)===jp||(ti.actual=ti.oa*Ib),ti.position=E.width,ti.oa!==0&&(E.width+=ti.oa,E.width+=ti.Wc()));z=a.rowCount;for(var fv=0;fv<z;fv++)Di[fv]!==void 0&&(ti=a.Fb(fv),isFinite(ti.height)?(Nm+=ti.height,Nm+=ti.Wc()):Vm(ti)===jp?(Nm+=ti.oa,Nm+=ti.Wc()):ti.oa!==0&&(wh+=ti.oa,wh+=ti.Wc()));isFinite(dv.height)?jf=Math.min(dv.height,y1.height):jf=cu!==_n&&isFinite(x)?x:wh,jf=Math.max(jf,a.minSize.height),jf=Math.max(jf-Nm,0);for(var Ob=wh===0?1:Math.max(jf/wh,1),pv=0;pv<z;pv++)Di[pv]!==void 0&&(ti=a.Fb(pv),isFinite(ti.height)||Vm(ti)===jp||(ti.actual=ti.oa*Ob),ti.position=E.height,ti.oa!==0&&(E.height+=ti.oa,E.height+=ti.Wc()));z=re.length;for(var tS=0;tS<z;tS++){var Mm=re[tS],nS=0,iS=0;Mm.type===hi.TableRow?(nS=E.width,ti=a.Fb(Mm.row),iS=ti.actual):(ti=a.Eb(Mm.column),nS=ti.actual,iS=E.height),Mm.measuredBounds.h(0,0,nS,iS),cs(Mm,!1)}kn(re),a.inRowsCols=Ze},Fm.prototype.arrange=function(a,y,x){var b=y.length,E=a.padding,z=E.left;E=E.top;var te=a.inRowsCols;if(te!==null){for(var re,le,ce=te.length,de=0,ve=0;ve<ce;ve++)te[ve]&&(de=Math.max(de,te[ve].length));le=a.rowDefs,re=a.colDefs;var Pe=ve=0,Le=Math.min(a.topIndex,ce-1);if(0<le.length){for(;Le!==ce&&(le[Le]===void 0||le[Le].oa===0);)Le++;Le=Math.max(Math.min(Le,ce-1),0),ve=-le[Le].position}var Fe=Math.min(a.leftIndex,de-1);if(0<re.length){for(;Fe!==de&&(re[Fe]===void 0||re[Fe].oa===0);)Fe++;Fe=Math.max(Math.min(Fe,de-1),0),Pe=-re[Fe].position}for(var Ze=0,pt=0;Ze!==ce&&le[Ze]===void 0;)Ze++;for(;pt!==ce&&re[pt]===void 0;)pt++;de=a.part,a.Fb(Ze),a.Eb(pt);for(var at=0;at<y.length;at++){var Ct=y[at];if(Ct instanceof hi&&Ct.visible&&zh(Ct)){if(Ct.type===hi.TableRow){re=a.Fb(Ct.row);var Lt=a.Eb(pt)}else re=a.Fb(Ze),Lt=a.Eb(Ct.column);le=re.position+ve+E,re.oa!==0&&(le+=re.Io(Math.max(Ze,Le))),re=Lt.position+Pe+z,Lt.oa!==0&&(re+=Lt.Io(Math.max(pt,Fe))),Lt=Ct.measuredBounds,Ct.Uk(),Ct.actualBounds.ka();var Dt=Ct.actualBounds,Kt=jn.allocAt(Dt.x,Dt.y,Dt.width,Dt.height);Dt.x=Ct.type===hi.TableRow?z:re,Dt.y=Ct.type===hi.TableColumn?E:le,Dt.width=Lt.width,Dt.height=Lt.height,Ct.actualBounds.freeze(),sr(Ct,!1),Oo(Kt,Dt)||de===null||(de.oh(),Ct.Pn(de)),jn.free(Kt)}}for(at=fi.alloc(),Ct=0;Ct<ce;Ct++)if(te[Ct]){for(de=te[Ct].length,Lt=a.Fb(Ct),le=Lt.position+ve+E,Lt.oa!==0&&(le+=Lt.Io(Math.max(Ze,Le))),Dt=0;Dt<de;Dt++)if(te[Ct][Dt]){Kt=a.Eb(Dt),re=Kt.position+Pe+z,Kt.oa!==0&&(re+=Kt.Io(Math.max(pt,Fe)));for(var vn=te[Ct][Dt],Pi=vn.length,ji=0;ji<Pi;ji++){var Di=vn[ji],vi=Di.measuredBounds;at.h(0,0);for(var ti=1;ti<Di.rowSpan&&!(Ct+ti>=a.rowCount);ti++){var Br=a.Fb(Ct+ti);Br.oa!==0&&(at.height+=Br.total)}for(ti=1;ti<Di.columnSpan&&!(Dt+ti>=a.columnCount);ti++)Br=a.Eb(Dt+ti),Br.oa!==0&&(at.width+=Br.total);var Ar=Kt.oa+at.width,Wo=Lt.oa+at.height;ti=re,Br=le;var wa=Ar,vl=Wo,Pl=re,lu=le,yl=Ar,$h=Wo;re+Ar>x.width&&(yl=Math.max(x.width-re,0)),le+Wo>x.height&&($h=Math.max(x.height-le,0));var _s=Di.alignment;if(_s.Xb()){_s=a.defaultAlignment,_s.sb()||(_s=wo);var Pd=_s.x,uu=_s.y,Xh=_s.offsetX;_s=_s.offsetY;var Cc=Kt.alignment,$c=Lt.alignment;Cc.sb()&&(Pd=Cc.x,Xh=Cc.offsetX),$c.sb()&&(uu=$c.y,_s=$c.offsetY)}else Pd=_s.x,uu=_s.y,Xh=_s.offsetX,_s=_s.offsetY;(isNaN(Pd)||isNaN(uu))&&(uu=Pd=.5,_s=Xh=0),Cc=vi.width,$c=vi.height;var pc=Di.margin,rc=pc.left+pc.right,Ag=pc.top+pc.bottom,Ad=Tl(Di,Lt,Kt,!1);!isNaN(Di.desiredSize.width)||Ad!==Qn&&Ad!==Ci||(Cc=Math.max(Ar-rc,0)),!isNaN(Di.desiredSize.height)||Ad!==Qn&&Ad!==ki||($c=Math.max(Wo-Ag,0)),Ar=Di.maxSize,Wo=Di.minSize,Cc=Math.min(Ar.width,Cc),$c=Math.min(Ar.height,$c),Cc=Math.max(Wo.width,Cc),$c=Math.max(Wo.height,$c),Ar=$c+Ag,ti+=wa*Pd-(Cc+rc)*Pd+Xh+pc.left,Br+=vl*uu-Ar*uu+_s+pc.top,Di.visible&&(Qr(Pl,lu,yl,$h,ti,Br,vi.width,vi.height)?Di.arrange(ti,Br,Cc,$c):Di.arrange(ti,Br,Cc,$c,new jn(Pl,lu,yl,$h)))}}}for(fi.free(at),a=0;a<b;a++)x=y[a],z=x instanceof hi?x:null,z!==null&&zh(z)&&(z=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,z.width,z.height),x.naturalBounds.freeze())}};function Bm(){this.xa="Base"}qt(Bm,nl),Bm.prototype.measure=function(){},Bm.prototype.arrange=function(){};function jm(){this.xa="Base"}qt(jm,nl),jm.prototype.measure=function(){},jm.prototype.arrange=function(){};function zm(){this.xa="Base"}qt(zm,nl),zm.prototype.measure=function(a,y,x,b,E,z,te){1<b.length&&bt("Viewbox Panel cannot contain more than one GraphObject."),b=b[0],b.Ca=1,b.Uj(),b.measure(1/0,1/0,z,te);var re=b.measuredBounds,le=b.margin,ce=le.right+le.left;if(le=le.top+le.bottom,isFinite(y)||isFinite(x)){var de=b.scale,ve=re.width;re=re.height;var Pe=Math.max(y-ce,0),Le=Math.max(x-le,0),Fe=1;a.viewboxStretch===pi?ve!==0&&re!==0&&(Fe=Math.min(Pe/ve,Le/re)):ve!==0&&re!==0&&(Fe=Math.max(Pe/ve,Le/re)),Fe===0&&(Fe=1e-4),b.Ca*=Fe,de!==b.scale&&(cs(b,!0),b.measure(1/0,1/0,z,te))}re=b.measuredBounds,E.width=isFinite(y)?y:Math.max(re.width+ce,0),E.height=isFinite(x)?x:Math.max(re.height+le,0)},zm.prototype.arrange=function(a,y,x){y=y[0];var b=y.measuredBounds,E=y.margin,z=Math.max(b.width+(E.right+E.left),0);E=Math.max(b.height+(E.top+E.bottom),0);var te=y.alignment;te.Xb()&&(te=a.defaultAlignment),te.sb()||(te=wo),y.arrange(x.width*te.x-z*te.x+te.offsetX,x.height*te.y-E*te.y+te.offsetY,b.width,b.height)};function Rp(){this.xa="Base"}qt(Rp,nl),Rp.prototype.measure=function(){},Rp.prototype.arrange=function(){},Rp.prototype.gc=function(a,y,x){x=a.Df()*x.scale,0>=x&&(x=1);var b=a.gridCellSize,E=b.width;b=b.height;var z=a.naturalBounds,te=a.actualBounds,re=z.width,le=z.height,ce=Math.ceil(re/E),de=Math.ceil(le/b),ve=a.gridOrigin,Pe=ve.x;ve=ve.y,y.save(),y.beginPath(),y.rect(0,0,re,le),y.clip(),y.Se();for(var Le=[],Fe=a.O.s,Ze=Fe.length,pt=0;pt<Ze;pt++){var at=Fe[pt],Ct=[];if(Le.push(Ct),at.visible){var Lt=at.interval;if(!(0>Lt)){at=Av(at.figure);for(var Dt=0;Dt<Ze;Dt++)if(Dt!==pt){var Kt=Fe[Dt];Kt.visible&&Av(Kt.figure)===at&&(Kt=Kt.interval,Kt>Lt&&Ct.push(Kt))}}}}for(Fe=a.O.s,Ze=Fe.length,pt=0;pt<Ze;pt++){var vn=Fe[pt];if(vn.visible&&(Ct=vn.interval||1,at=Math.abs(Ct),!(2>E*at*x))){if(Lt=vn.segmentIndex,(!isFinite(Lt)||isNaN(Lt))&&(Lt=0),0>Lt&&(Lt=at-Math.min(-Lt,at)),Lt=Math.round(Lt%at),at=vn.opacity,Dt=1,at!==1){if(at===0)continue;Dt=y.globalAlpha,y.globalAlpha=Dt*at}Kt=Le[pt];var Pi=!1,ji=vn.strokeDashArray;if(ji!==null&&(Pi=!0,y.js(ji,vn.strokeDashOffset)),vn.figure==="LineV"&&vn.stroke!==null&&0<vn.strokeWidth){for(y.lineWidth=vn.strokeWidth,Ca(a,y,vn.stroke,!1,!1,z,te),y.beginPath(),ji=vn=Math.floor((Pe-E)/E);ji<=vn+ce;ji++){var Di=ji*E+Pe;0<=Di&&Di<=re&&Um(ji,Ct,Lt,Kt)&&(y.moveTo(Di,0),y.lineTo(Di,le))}y.stroke(),y.Se()}else if(vn.figure==="LineH"&&vn.stroke!==null&&0<vn.strokeWidth){for(y.lineWidth=vn.strokeWidth,Ca(a,y,vn.stroke,!1,!1,z,te),y.beginPath(),ji=vn=Math.floor((ve-b)/b);ji<=vn+de;ji++)Di=ji*b+ve,0<=Di&&Di<=le&&Um(ji,Ct,Lt,Kt)&&(y.moveTo(0,Di),y.lineTo(re,Di));y.stroke(),y.Se()}else if(vn.figure==="BarV"&&vn.fill!==null)for(Ca(a,y,vn.fill,!0,!1,z,te),vn=vn.width,isNaN(vn)&&(vn=E),Di=ji=Math.floor((Pe-E)/E);Di<=ji+ce;Di++){var vi=Di*E+Pe;0<=vi+vn&&vi<=re&&Um(Di,Ct,Lt,Kt)&&y.fillRect(vi,0,vn,le)}else if(vn.figure==="BarH"&&vn.fill!==null)for(Ca(a,y,vn.fill,!0,!1,z,te),vn=vn.height,isNaN(vn)&&(vn=b),Di=ji=Math.floor((ve-b)/b);Di<=ji+de;Di++)vi=Di*b+ve,0<=vi+vn&&vi<=le&&Um(Di,Ct,Lt,Kt)&&y.fillRect(0,vi,re,vn);Pi&&y.fs(),at!==1&&(y.globalAlpha=Dt)}}y.restore(),y.Vc(!1)};function Um(a,y,x,b){if(0>y)return a%y===x;if(a%y!==x)return!1;y=b.length;for(var E=0;E<y;E++)if(a%b[E]===x)return!1;return!0}function _m(){this.xa="Base"}qt(_m,nl),_m.prototype.measure=function(a,y,x,b,E){var z=b.length;if(a instanceof zo||a instanceof yi){var te=null,re=null;if(a instanceof yi&&(te=a),a instanceof zo&&(re=a,te=re.adornedPart,a.j===null&&(a.j=[])),te instanceof yi){var le=te;if(z===0)gs(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var ce=a instanceof zo?null:te.path;y=te.routeBounds,x=a.jg,x.h(0,0,y.width,y.height);var de=le.points,ve=te.pointsCount;re!==null?re.Ul(!1):te!==null&&te.Ul(!1),re=y.width;var Pe=y.height,Le=a.j;if(Le.length=0,ce!==null){sS(a,re,Pe,ce);var Fe=ce.measuredBounds;x.ed(Fe),Le.push(Fe)}Fe=fr.alloc();for(var Ze=lt.alloc(),pt=lt.alloc(),at=0;at<z;at++){var Ct=b[at];if(Ct!==ce)if(Ct.isPanelMain&&Ct instanceof eo){sS(a,re,Pe,Ct);var Lt=Ct.measuredBounds;x.ed(Lt),Le.push(Lt)}else if(2>ve)Ct.measure(1/0,1/0,0,0),Lt=Ct.measuredBounds,x.ed(Lt),Le.push(Lt);else{var Dt=Ct.segmentIndex,Kt=Ct.segmentFraction,vn=Ct.alignmentFocus;vn.Mc()&&(vn=wo);var Pi=Ct.segmentOrientation,ji=Ct.segmentOffset;if(isNaN(Dt)){var Di=le.ua;Lt=gn(),Di.Qu(Kt,Lt);var vi=lt.allocAt(Lt[0],Lt[1]);if(vi.add(le.i(0)),Di.type===di.j?vi.offset(-Di.startX,-Di.startY):(Di=Di.figures.first(),Di!==null&&vi.offset(-Di.startX,-Di.startY)),Di=Lt[2],Pi!==Eu){var ti=le.computeAngle(Ct,Pi,Di);Ct.Kb=ti}ti=vi.x-y.x;var Br=vi.y-y.y;lt.free(vi),kn(Lt)}else if(Dt<-ve||Dt>=ve)Lt=lt.alloc(),le.vg(),le.computeMidPoint(Lt),Di=le.midAngle,Pi!==Eu&&(ti=le.computeAngle(Ct,Pi,Di),Ct.Kb=ti),ti=Lt.x-y.x,Br=Lt.y-y.y,lt.free(Lt);else{if(ti=0,0<=Dt?(Br=de.M(Dt),Lt=Dt<ve-1?de.M(Dt+1):Br):(ti=ve+Dt,Br=de.M(ti),Lt=0<ti?de.M(ti-1):Br),Br.Xa(Lt)){0<=Dt?(Di=0<Dt?de.M(Dt-1):Br,ti=Dt<ve-2?de.M(Dt+2):Lt):(Di=ti<ve-1?de.M(ti+1):Br,ti=1<ti?de.M(ti-2):Lt),vi=Di.Bf(Br);var Ar=Lt.Bf(ti);Di=vi>Ar+10?0<=Dt?Di.ab(Br):Br.ab(Di):Ar>vi+10?0<=Dt?Lt.ab(ti):ti.ab(Lt):0<=Dt?Di.ab(ti):ti.ab(Di)}else Di=0<=Dt?Br.ab(Lt):Lt.ab(Br);Pi!==Eu&&(ti=le.computeAngle(Ct,Pi,Di),Ct.Kb=ti),ti=Br.x+(Lt.x-Br.x)*Kt-y.x,Br=Br.y+(Lt.y-Br.y)*Kt-y.y}Ct.measure(1/0,1/0,0,0),Lt=Ct.measuredBounds,vi=Ct.naturalBounds;var Wo=0;Ct instanceof eo&&(Wo=Ct.strokeWidth),Ar=vi.width+Wo;var wa=vi.height+Wo;Fe.reset(),Fe.translate(-Lt.x,-Lt.y),Fe.scale(Ct.scale,Ct.scale),Fe.rotate(Pi===Eu?Ct.angle:Di,Ar/2,wa/2),Pi!==Yp&&Pi!==Xp||Fe.rotate(90,Ar/2,wa/2),Pi!==$p&&Pi!==Qp||Fe.rotate(-90,Ar/2,wa/2),Pi===v0&&(45<Di&&135>Di||225<Di&&315>Di)&&Fe.rotate(-Di,Ar/2,wa/2),vi=new jn(0,0,Ar,wa),Ze.xi(vi,vn),Fe.Ga(Ze),vn=-Ze.x+Wo/2*Ct.scale,Ct=-Ze.y+Wo/2*Ct.scale,pt.assign(ji),Wo=isNaN(ji.x);var vl=isNaN(ji.y);if(Wo||vl){Ar=Ar/2+3,wa=wa/2+3;var Pl=45<=Di&&135>=Di,lu=225<=Di&&315>=Di;Pi===Eu&&(Pl||lu)?(pt.x=vl?Ar:ji.y,pt.y=Wo?wa:ji.x,Pl?0<=Dt||isNaN(Dt)&&.5>Kt||!Wo||(pt.y=-wa):lu&&((0<=Dt||isNaN(Dt)&&.5>Kt)&&Wo&&(pt.y=-wa),vl&&(pt.x=-Ar))):(Wo&&(pt.x=0<=Dt||isNaN(Dt)&&.5>Kt?Ar:-Ar),vl&&(pt.y=-wa),pt.rotate(Di))}else pt.rotate(Di);ti+=pt.x,Br+=pt.y,vi.set(Lt),vi.h(ti+vn,Br+Ct,Lt.width,Lt.height),Le.push(vi),x.ed(vi)}}if(te!==null)for(b=te.labelNodes;b.next();)b.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),gs(E,x.width||0,x.height||0),fr.free(Fe),lt.free(Ze),lt.free(pt)}}}},_m.prototype.arrange=function(a,y){var x=y.length;if(a instanceof zo||a instanceof yi){var b=a,E=null;a instanceof zo&&(E=a,b=E.adornedPart);var z=a instanceof zo?null:b.path,te=a.j;if(te.length!==0){var re=0;if(z!==null&&re<te.length){var le=te[re];re++,z.arrange(le.x-a.jg.x,le.y-a.jg.y,le.width,le.height)}for(le=0;le<x;le++){var ce=y[le];if(ce!==z&&re<te.length){var de=te[re];re++,ce.arrange(de.x-a.jg.x,de.y-a.jg.y,de.width,de.height)}}}if(y=b.points,x=y.count,2<=x&&a instanceof yi)for(z=a.labelNodes;z.next();){var ve=a;te=z.value,re=te.segmentIndex,le=te.segmentFraction;var Pe=te.alignmentFocus;if(ce=te.segmentOrientation,de=te.segmentOffset,isNaN(re)){var Le=ve.ua,Fe=gn();Le.Qu(le,Fe);var Ze=lt.allocAt(Fe[0],Fe[1]);Ze.add(ve.i(0)),Le.type===di.j||(Le=Le.figures.first()),Ze.offset(-Le.startX,-Le.startY),Le=Fe[2],ce!==Eu&&(ve=ve.computeAngle(te,ce,Le),te.angle=ve),ve=Ze.x;var pt=Ze.y;lt.free(Ze),kn(Fe)}else if(re<-x||re>=x)Fe=lt.alloc(),Le=ve,pt=Fe,Le.vg(),Le.computeMidPoint(pt),Le=ve.midAngle,ce!==Eu&&(ve=ve.computeAngle(te,ce,Le),te.angle=ve),ve=Fe.x,pt=Fe.y,lt.free(Fe);else{if(Ze=0,0<=re?(Fe=y.s[re],pt=re<x-1?y.s[re+1]:Fe):(Ze=x+re,Fe=y.s[Ze],pt=0<Ze?y.s[Ze-1]:Fe),Fe.Xa(pt)){0<=re?(Le=0<re?y.s[re-1]:Fe,Ze=re<x-2?y.s[re+2]:pt):(Le=Ze<x-1?y.s[Ze+1]:Fe,Ze=1<Ze?y.s[Ze-2]:pt);var at=Le.Bf(Fe),Ct=pt.Bf(Ze);Le=at>Ct+10?0<=re?Le.ab(Fe):Fe.ab(Le):Ct>at+10?0<=re?pt.ab(Ze):Ze.ab(pt):0<=re?Le.ab(Ze):Ze.ab(Le)}else Le=0<=re?Fe.ab(pt):pt.ab(Fe);ce!==Eu&&(ve=ve.computeAngle(te,ce,Le),te.angle=ve),ve=Fe.x+(pt.x-Fe.x)*le,pt=Fe.y+(pt.y-Fe.y)*le}if(Pe.ys())te.location=new lt(ve,pt);else{Pe.Mc()&&(Pe=wo),Fe=fr.alloc(),Fe.reset(),Fe.scale(te.scale,te.scale),Fe.rotate(te.angle,0,0);var Lt=te.naturalBounds;Ze=jn.allocAt(0,0,Lt.width,Lt.height),at=lt.alloc(),at.xi(Ze,Pe),Fe.Ga(at),Pe=-at.x,Ct=-at.y;var Dt=Lt.width,Kt=Lt.height;Lt=lt.alloc(),Lt.assign(de);var vn=isNaN(de.x),Pi=isNaN(de.y);if(vn||Pi){Dt=Dt/2+3,Kt=Kt/2+3;var ji=45<=Le&&135>=Le,Di=225<=Le&&315>=Le;ce===Eu&&(ji||Di)?(Lt.x=Pi?Dt:de.y,Lt.y=vn?Kt:de.x,ji?0<=re||isNaN(re)&&.5>le||!vn||(Lt.y=-Kt):Di&&((0<=re||isNaN(re)&&.5>le)&&vn&&(Lt.y=-Kt),Pi&&(Lt.x=-Dt))):(vn&&(Lt.x=0<=re||isNaN(re)&&.5>le?Dt:-Dt),Pi&&(Lt.y=-Kt),Lt.rotate(Le))}else Lt.rotate(Le);ve+=Lt.x,pt+=Lt.y,Fe.pp(Ze),Pe+=Ze.x,Ct+=Ze.y,re=lt.allocAt(ve+Pe,pt+Ct),te.move(re),lt.free(re),lt.free(Lt),lt.free(at),jn.free(Ze),fr.free(Fe)}}E!==null?E.Ul(!1):b.Ul(!1),b=FS(a),a.location.h(a.position.x+b.x,a.position.y+b.y),lt.free(b)}};function sS(a,y,x,b){if(xu(b)!==!1){var E=b.strokeWidth;E===0&&a instanceof zo&&a.type===hi.Link&&a.adornedObject instanceof eo&&(E=a.adornedObject.strokeWidth),E*=b.Ca,a instanceof yi&&a.ua!==null?(a=a.geometry.bounds,b.Ge(a.x-E/2,a.y-E/2,a.width+E,a.height+E)):a instanceof zo&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,b.Ge(a.x-E/2,a.y-E/2,a.width+E,a.height+E)):b.Ge(-(E/2),-(E/2),y+E,x+E),E=b.desiredSize,E.w()||b.ua===null?b.dc.h(0,0,E.width,E.height):b.dc.assign(b.ua.bounds),cs(b,!1)}}function Fp(){this.xa="Base"}qt(Fp,nl),Fp.prototype.measure=function(a,y,x,b,E,z,te){var re=a.Pb();a.graduatedBounds=[];var le=re.margin,ce=le.right+le.left,de=le.top+le.bottom;re.measure(y,x,z,te);var ve=re.measuredBounds,Pe=new jn(-le.left,-le.top,Math.max(ve.width+ce,0),Math.max(ve.height+de,0));a.graduatedBounds.push(Pe),E.assign(Pe);for(var Le=re.geometry,Fe=re.strokeWidth,Ze=Le.flattenedSegments,pt=Le.flattenedLengths,at=Le.flattenedTotalLength,Ct=Ze.length,Lt=0,Dt=0,Kt=gn(),vn=0;vn<Ct;vn++){var Pi=Ze[vn],ji=[];Dt=Lt=0;for(var Di=Pi.length,vi=0;vi<Di;vi+=2){var ti=Pi[vi],Br=Pi[vi+1];if(vi!==0){var Ar=180*Math.atan2(Br-Dt,ti-Lt)/Math.PI;0>Ar&&(Ar+=360),ji.push(Ar)}Lt=ti,Dt=Br}Kt.push(ji)}if(a.graduatedIntervals===null){for(var Wo=[],wa=a.O.s,vl=wa.length,Pl=0;Pl<vl;Pl++){var lu=wa[Pl],yl=[];if(Wo.push(yl),lu.visible){var $h=lu.interval;if(!(0>$h)){for(var _s=0;_s<vl;_s++)if(_s!==Pl){var Pd=wa[_s];if(Pd.visible&&lu.constructor===Pd.constructor){var uu=Pd.interval;uu>$h&&yl.push(uu)}}}}}a.graduatedIntervals=Wo}var Xh=a.graduatedIntervals,Cc=a.O.s,$c=Cc.length,pc=0,rc=0,Ag=at;a.graduatedMarks=[];for(var Ad,Sp=0;Sp<$c;Sp++){var mc=Cc[Sp];if(Ad=[],mc.visible&&mc!==re){var cu=Math.abs(mc.interval),bm=a.graduatedTickUnit;if(!(2>bm*cu*at/a.graduatedRange&&mc.graduatedSkip===null)){var If=pt[0][0],Fd=0,oc=0;rc=at*mc.graduatedStart-1e-4,Ag=at*mc.graduatedEnd+1e-4;var nf=bm*cu,vc=a.graduatedTickBase;if(vc<a.graduatedMin){var Ng=(a.graduatedMin-vc)/nf;Ng=Ng%1===0?Ng:Math.floor(Ng+1),vc+=Ng*nf}else vc>a.graduatedMin+nf&&(vc-=Math.floor((vc-a.graduatedMin)/nf)*nf);for(var ov=Xh[Sp],wm=vc,Qy=1e-6*a.graduatedMax,ih=1;vc<=a.graduatedMax+Qy;ih++){e:{for(var wh=ov.length,kf=0;kf<wh;kf++){var Mg=(vc-a.graduatedTickBase)%(ov[kf]*a.graduatedTickUnit),xp=1e-6*a.graduatedTickUnit;if(Mg<xp&&Mg>-xp){var Lg=!1;break e}}Lg=!0}if(Lg&&(vc>a.graduatedMax&&(vc=a.graduatedMax),mc.graduatedSkip===null||mc instanceof Pa&&!mc.graduatedSkip(vc,mc)||mc instanceof eo&&!mc.graduatedSkip(vc,mc))&&(pc=(vc-a.graduatedMin)*at/a.graduatedRange,pc>at&&(pc=at),rc<=pc&&pc<=Ag)){for(var rh=Kt[Fd][oc],Qh=pt[Fd][oc];Fd<pt.length;){for(;pc>If&&oc<pt[Fd].length-1;)oc++,rh=Kt[Fd][oc],Qh=pt[Fd][oc],If+=Qh;if(pc<=If)break;Fd++,oc=0,rh=Kt[Fd][oc],Qh=pt[Fd][oc],If+=Qh}var ac=Ze[Fd],Bd=ac[2*oc],av=ac[2*oc+1],Eh=(pc-(If-Qh))/Qh,bp=new lt(Bd+(ac[2*oc+2]-Bd)*Eh+Fe/2-Le.bounds.x,av+(ac[2*oc+3]-av)*Eh+Fe/2-Le.bounds.y);bp.scale(re.scale,re.scale);e:{var Nd=rh,rf=Kt[Fd];if(!(.5005>Eh&&.4995<Eh)){var jd=Nd;if(.5>Eh?0<oc?jd=rf[oc-1]:Wt.$(ac[0],ac[ac.length-2])&&Wt.$(ac[1],ac[ac.length-1])&&(jd=rf[rf.length-1]):.5<Eh&&(oc+1<rf.length?jd=rf[oc+1]:Wt.$(ac[0],ac[ac.length-2])&&Wt.$(ac[1],ac[ac.length-1])&&(jd=rf[0])),Nd!==jd){var Df=Math.abs(Nd-jd);if(180<Df&&(Nd<jd?Nd+=360:jd+=360,Df=Math.abs(Nd-jd)),5e-4>Eh||.9995<Eh){rh=(Nd+jd)/2%360;break e}if(10>Df){var wp=1-Math.abs(.5-Eh);rh=(Nd*wp+jd*(1-wp))%360;break e}}}rh=Nd}if(mc instanceof Pa){var fd="";mc.graduatedFunction!==null?(fd=mc.graduatedFunction(vc,mc),fd=fd!=null?fd.toString():""):fd=(+vc.toFixed(2)).toString(),fd!==""&&Ad.push({$l:bp,angle:rh,text:fd})}else Ad.push({$l:bp,angle:rh})}vc=wm+ih*nf}}}a.graduatedMarks.push(Ad)}kn(Kt);var Rl=a.graduatedMarks;if(Rl!==null)for(var Em=b.length,Mu=0;Mu<Em;Mu++){var Gs=b[Mu],Lu=Rl[Mu];if(Gs.visible&&Gs!==re&&Lu.length!==0){if(Gs instanceof eo){var Ch=a,Jh=E,of=Gs.alignmentFocus;of.Mc()&&(of=tu);var Jy=Gs.angle;Gs.Kb=0,Gs.measure(1/0,1/0,0,0),Gs.Kb=Jy;var sv=Gs.measuredBounds,Ep=sv.width,af=sv.height,Of=jn.allocAt(0,0,Ep,af),sc=lt.alloc();sc.xi(Of,of),jn.free(Of);for(var Ph=-sc.x,Md=-sc.y,zc=new jn,Tg=Lu.length,Cp=0;Cp<Tg;Cp++)for(var Ig=Lu[Cp],lv=Ig.$l.x,Pp=Ig.$l.y,As=Ig.angle,pd=0;4>pd;pd++){switch(pd){case 0:sc.h(Ph,Md);break;case 1:sc.h(Ph+Ep,Md);break;case 2:sc.h(Ph,Md+af);break;case 3:sc.h(Ph+Ep,Md+af)}sc.rotate(As+Gs.angle),sc.offset(lv,Pp),Cp===0&&pd===0?zc.h(sc.x,sc.y,0,0):zc.Ye(sc),sc.offset(-lv,-Pp),sc.rotate(-As-Gs.angle)}lt.free(sc),Ch.graduatedBounds!==null&&Ch.graduatedBounds.push(zc),Xr(Jh,zc.x,zc.y,zc.width,zc.height)}else if(Gs instanceof Pa){var Xc=a,uv=E;Xc.temporaryTextBlock===null&&(Xc.temporaryTextBlock=new Pa);var yc=Xc.temporaryTextBlock;wS(yc,Gs);var qh=Gs.alignmentFocus;qh.Mc()&&(qh=tu);for(var Qc=Gs.segmentOrientation,Ap=Gs.segmentOffset,kg=new jn,Cm=0,Np=0,zd=0,sf=0,Dg=0,Mp=Lu.length,eg=0;eg<Mp;eg++){var oh=Lu[eg];Cm=oh.$l.x,Np=oh.$l.y,zd=oh.angle,Dg=sf=Gs.angle,Qc!==Eu&&(Dg=Qc===Kp||Qc===m0?zd+Gs.angle:zd,sf=yi.computeAngle(Qc,Dg)),yc.Kb=sf,yc.text=oh.text||"",yc.measure(1/0,1/0,0,0);var tg=yc.measuredBounds,Ah=yc.naturalBounds,ng=Ah.width,lf=Ah.height,Ld=fr.alloc();Ld.reset(),Ld.translate(-tg.x,-tg.y),Ld.scale(yc.scale,yc.scale),Ld.rotate(Dg,ng/2,lf/2),Qc!==Yp&&Qc!==Xp||Ld.rotate(90,ng/2,lf/2),Qc!==$p&&Qc!==Qp||Ld.rotate(-90,ng/2,lf/2),Qc===v0&&(45<zd&&135>zd||225<zd&&315>zd)&&Ld.rotate(-zd,ng/2,lf/2);var Rf=jn.allocAt(0,0,ng,lf),ig=lt.alloc();ig.xi(Rf,qh),Ld.Ga(ig);var Ff=-ig.x,qy=-ig.y,Nh=lt.alloc();Nh.assign(Ap),isNaN(Nh.x)&&(Nh.x=ng/2+3),isNaN(Nh.y)&&(Nh.y=-(lf/2+3)),Nh.rotate(zd),Cm+=Nh.x+Ff,Np+=Nh.y+qy;var uf=new jn(Cm,Np,tg.width,tg.height),Pm=new jn(tg.x,tg.y,tg.width,tg.height),eS=new jn(Ah.x,Ah.y,Ah.width,Ah.height);oh.Sz=sf,oh.lineCount=yc.lineCount,oh.lines=[yc.Cb,yc.Ih,yc.df,yc.Le,yc.Qc,yc.Qb,yc.ze],oh.actualBounds=uf,oh.measuredBounds=Pm,oh.naturalBounds=eS,eg===0?kg.assign(uf):kg.ed(uf),lt.free(Nh),lt.free(ig),jn.free(Rf),fr.free(Ld)}Xc.graduatedBounds!==null&&Xc.graduatedBounds.push(kg),Xr(uv,kg.x,kg.y,kg.width,kg.height)}cs(Gs,!1)}}},Fp.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var b=a.Pb(),E=a.graduatedMarks;if(E!==null){var z=a.graduatedBounds,te=0,re=z[te];te++,b!==null&&b.arrange(re.x-x.x,re.y-x.y,re.width,re.height);for(var le=y.length,ce=0;ce<le;ce++){var de=y[ce];re=E[ce],de.visible&&de!==b&&re.length!==0&&(re=z[te],te++,de.arrange(re.x-x.x,re.y-x.y,re.width,re.height))}a.graduatedBounds=null}}},Fp.prototype.gc=function(a,y,x){var b=x.$i;x.$i=!0;var E=a.naturalBounds,z=E.width,te=E.height;E=y instanceof Uu,y.save(),y.beginPath(),y.rect(-1,-1,z+1,te+1),y.clip(),y.Se(),z=a.Pb(),z.gc(y,x),te=a.Df()*x.scale,0>=te&&(te=1);for(var re=z.actualBounds,le=a.O.s,ce=a.graduatedMarks,de=le.length,ve=0;ve<de;ve++){var Pe=le[ve],Le=ce[ve],Fe=Le.length;if(Pe.visible&&Pe!==z&&Le.length!==0){if(Pe instanceof eo){if(!(2>a.graduatedTickUnit*Pe.interval*z.geometry.flattenedTotalLength/a.graduatedRange*te&&Pe.graduatedSkip===null)){var Ze=Pe.measuredBounds,pt=Pe.strokeWidth*Pe.scale,at=Pe.alignmentFocus;at.Mc()&&(at=tu);for(var Ct=0;Ct<Fe;Ct++){var Lt=Le[Ct].$l,Dt=Le[Ct].angle,Kt=at,vn=Pe.Ab;vn.reset(),vn.translate(Lt.x+re.x,Lt.y+re.y),vn.rotate(Dt+Pe.angle,0,0),vn.translate(-Ze.width*Kt.x+Kt.offsetX+pt/2,-Ze.height*Kt.y+Kt.offsetY+pt/2),vn.scale(Pe.scale,Pe.scale),su(Pe,!1),Pe.wh.set(Pe.Ab),Pe.Kk=Pe.scale,Bu(Pe,!1),Pe.gc(y,x),E&&(a.svg.appendChild(Pe.svg),Pe.svg=null),Pe.Ab.reset()}}}else if(Pe instanceof Pa)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new Pa),Ze=a.temporaryTextBlock,wS(Ze,Pe),pt=0;pt<Fe;pt++)at=Le[pt],at.actualBounds&&at.measuredBounds&&at.naturalBounds&&(Ze.ec=at.text||"",Ze.Kb=at.Sz||0,Ze.Gc=at.lineCount||0,Ct=at.lines,Ct!==void 0&&(Ze.Cb=Ct[0],Ze.Ih=Ct[1],Ze.df=Ct[2],Ze.Le=Ct[3],Ze.Qc=Ct[4],Ze.Qb=Ct[5],Ze.ze=Ct[6]),at.naturalBounds&&(Ze.dc=at.naturalBounds),at.actualBounds&&(Ct=at.actualBounds,Ze.arrange(Ct.x,Ct.y,Ct.width,Ct.height)),Ct=at.actualBounds,Ze.arrange(Ct.x,Ct.y,Ct.width,Ct.height),Lt=at.measuredBounds,at=at.naturalBounds,Dt=Ze.Ab,Dt.reset(),Dt.translate(Ct.x+re.x,Ct.y+re.y),Dt.translate(-Lt.x,-Lt.y),Ze.no(Dt,at.x,at.y,at.width,at.height),su(Ze,!1),Ze.wh.set(Ze.Ab),Ze.Kk=Ze.scale,Bu(Ze,!1),Ze.Ng=Pe.part,Ze.Me=Pe.panel,Ze.gc(y,x),Ze.Me=null,Ze.Ng=null,E&&(a.svg.appendChild(Ze.svg),Ze.svg=null))}}x.$i=b,y.restore(),y.Vc(!0)};function hi(a,y){if(Rt.call(this),this.na=null,a===void 0)this.na=hi.Position;else if(typeof a=="string"){var x=ld.I(a);x!==null&&(this.na=x)}else a instanceof nl?this.na=a:a&&(this.na=hi.Position,y=a);this.na===null&&bt("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===hi.Grid?1048576:0),this.O=new Ht,this.yb=ul,this.Tm=Vr,this.Uf=ar,this.$g=null,this.$e="",this.jg=new jn(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=pi,this.jn=Ra,this.kn=Rr,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}qt(hi,Rt),hi.prototype.cloneProtected=function(a){Rt.prototype.cloneProtected.call(this,a),a.na=this.na,a.yb=this.yb.J(),a.Tm=this.Tm.J(),a.Uf=this.Uf,a.$e=this.$e,a.jg.assign(this.jg),this.T!==null&&(a.T=this.T.copy(a)),a.xo=this.xo,a.jn=this.jn.J(),a.kn=this.kn.J(),this.ra!==null&&(a.ra=this.ra.copy()),a.ub=this.ub,a.zn=this.zn,a.Hh=this.Hh},hi.prototype.Af=function(a){Rt.prototype.Af.call(this,a),a.O=this.O;for(var y=a.O.s,x=y.length,b=0;b<x;b++)y[b].Me=a;a.$g=null},hi.prototype.copy=function(){var a=Rt.prototype.copy.call(this);if(a!==null){for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b].copy();E.wi(a),E.Ng=null;var z=a.O,te=z.count;if(z.Gb(te,E),z=a.part,z!==null){z.Rh=null,E.portId!==null&&z instanceof Li&&(z.Te=!0);var re=a.diagram;re!==null&&re.undoManager.isUndoingRedoing||z.cb(Ka,"elements",a,null,E,null,te)}}return a}return null},Ue=hi.prototype,Ue.toString=function(){return"Panel("+this.type.name+")#"+Dr(this)},Ue.Pn=function(a){Rt.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,b=0;b<x;b++)y[b].Pn(a)},Ue.hh=function(a,y){if(this.na===hi.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===hi.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===hi.Table)if(a.yc(),a instanceof Uu){var x=a.yd;a.yd=Hf(a,"gojs-ts"),Pv(this,a),a.nh.pop(),a.yd=x}else Pv(this,a);(x=this.isClipping&&this.na===hi.Spot)&&a.save();for(var b=this.Pb(),E=this.O.s,z=E.length,te=0;te<z;te++){var re=E[te];x&&re===b&&(a.clipInsteadOfFill=!0),re.gc(a,y),x&&re===b&&(a.clipInsteadOfFill=!1)}x&&(a.restore(),a.Vc(!0))}};function Pv(a,y){y.lineCap="butt";var x=0<a.rowCount?a.rowDefs:null,b=0<a.columnCount?a.colDefs:null;x!==null&&Gm(a,y,!0,x,!0),b!==null&&Gm(a,y,!1,b,!0),x!==null&&lS(a,y,!0,x),b!==null&&lS(a,y,!1,b),x!==null&&Gm(a,y,!0,x,!1),b!==null&&Gm(a,y,!1,b,!1)}function lS(a,y,x,b){for(var E=b.length,z=a.actualBounds,te=a.naturalBounds,re=!0,le=0;le<E;le++){var ce=b[le];if(ce!==void 0&&ce.actual!==0)if(re)re=!1;else{if(x){if(ce.position>te.height)continue}else if(ce.position>te.width)continue;var de=ce.separatorStrokeWidth;isNaN(de)&&(de=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var ve=ce.separatorStroke;if(ve===null&&(ve=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),de!==0&&ve!==null){Ca(a,y,ve,!1,!1,te,z),ve=!1;var Pe=ce.separatorDashArray;Pe===null&&(Pe=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),Pe!==null&&(ve=!0,y.js(Pe,0)),y.beginPath(),Pe=ce.position+de,x?Pe>te.height&&(de-=Pe-te.height):Pe>te.width&&(de-=Pe-te.width),ce=ce.position+de/2,y.lineWidth=de,de=a.yb,x?(ce+=de.top,Pe=te.width-de.right,y.moveTo(de.left,ce),y.lineTo(Pe,ce)):(ce+=de.left,Pe=te.height-de.bottom,y.moveTo(ce,de.top),y.lineTo(ce,Pe)),y.stroke(),y.Se(),ve&&y.fs()}}}}function Gm(a,y,x,b,E){for(var z=b.length,te=a.actualBounds,re=a.naturalBounds,le=uS(a,!0),ce=uS(a,!1),de=0;de<z;de++){var ve=b[de];if(ve!==void 0&&ve.background!==null&&ve.coversSeparators!==E&&ve.actual!==0){var Pe=x?te.height:te.width;if(!(ve.position>Pe)){var Le=ve.Wc(),Fe=ve.separatorStrokeWidth;isNaN(Fe)&&(Fe=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Ze=ve.separatorStroke;Ze===null&&(Ze=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(Ze===null||ve.index===(x?le:ce))&&(Fe=0),Le-=Fe,Fe=ve.position+Fe,Le+=ve.actual,Fe+Le>Pe&&(Le=Pe-Fe),0>=Le||(Pe=a.yb,Ca(a,y,ve.background,!0,!1,re,te),x?y.fillRect(Pe.left,Fe+Pe.top,te.width-(Pe.left+Pe.right),Le):y.fillRect(Fe+Pe.left,Pe.top,Le,te.height-(Pe.top+Pe.bottom)))}}}}function uS(a,y){for(var x=y?a.rowCount:a.columnCount,b=0;b<x;b++){var E=y?a.rowDefs[b]:a.colDefs[b];if(E!==void 0)return E.index}return 0}function Av(a){return a==="LineV"||a==="BarV"}Ue.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},Ue.kk=function(a,y,x){if(!Rt.prototype.kk.call(this,a,y,x))return!1;if(this.type===hi.Table)x=this.svg.getElementsByClassName("gojs-ts"),x=x.length!==0?x[0]:null,x!==null&&(x.innerHTML=""),a.yd=x,Pv(this,a),a.yd=null;else if(this.na===hi.Grid||this.na===hi.Graduated)return this.svg.innerHTML="",this.svg.remove(),!1;x=this.O.s;for(var b=x.length,E=0;E<b;E++)x[E].gc(a,y);return!0},Ue.nk=function(){return!0},Ue.$o=function(a,y,x,b){if(!this.isClipping)if(this.Dd()&&a.bk!==null){a=a.bk,y=this.O.s;for(var E=0,z=0,te=0;te<y.length;te++)if(y[te].Ed()){var re=y[te].actualBounds;E=te===0?re.x:Math.min(re.x,E),z=te===0?re.y:Math.min(re.y,z)}b.setAttributeNS(null,"clip-path","path('M "+(a.x-x.x-E)+","+(a.y-x.y-z)+" l "+a.width+" 0 l 0 "+a.height+" l -"+a.width+" 0 z')")}else Rt.prototype.$o.call(this,a,y,x,b)},Ue.Sj=function(a,y,x,b,E){var z=this.se(),te=this.transform,re=1/(te.m11*te.m22-te.m12*te.m21),le=te.m22*re,ce=-te.m12*re,de=-te.m21*re,ve=te.m11*re,Pe=re*(te.m21*te.dy-te.m22*te.dx),Le=re*(te.m12*te.dx-te.m11*te.dy);if(this.areaBackground!==null)return te=this.actualBounds,Wt.Ff(te.left,te.top,te.right,te.bottom,a,y,x,b,E);if(this.background!==null)return z=a*le+y*de+Pe,re=a*ce+y*ve+Le,a=x*le+b*de+Pe,le=x*ce+b*ve+Le,E.h(0,0),x=this.naturalBounds,z=Wt.Ff(0,0,x.width,x.height,z,re,a,le,E),E.transform(te),z;z||(le=1,de=ce=0,ve=1,Le=Pe=0),re=a*le+y*de+Pe,a=a*ce+y*ve+Le,le=x*le+b*de+Pe,x=x*ce+b*ve+Le,E.h(le,x),b=(le-re)*(le-re)+(x-a)*(x-a),ce=!1,ve=this.O.s,Le=ve.length,de=lt.alloc(),Pe=null,y=1/0;var Fe=null,Ze=this.isClipping&&this.na===hi.Spot;Ze&&(Fe=lt.alloc(),Pe=this.Pb(),(ce=Pe.Sj(re,a,le,x,Fe))&&(y=(re-Fe.x)*(re-Fe.x)+(a-Fe.y)*(a-Fe.y)));for(var pt=0;pt<Le;pt++){var at=ve[pt];at.visible&&at!==Pe&&at.Sj(re,a,le,x,de)&&(ce=!0,at=(re-de.x)*(re-de.x)+(a-de.y)*(a-de.y),at<b&&(b=at,E.set(de)))}return Ze&&(y>b&&E.set(Fe),lt.free(Fe)),lt.free(de),z&&E.transform(te),ce},Ue.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();Rt.prototype.Gj.call(this)},Ue.v=function(a){if(!xu(this)){Rt.prototype.v.call(this,a),a=null,(this.na===hi.Auto||this.na===hi.Link)&&(a=this.Pb());for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];if((E===a||E.isPanelMain)&&E.v(!0),!E.desiredSize.w()){var z=Ps(E,!1);(E instanceof wu||E instanceof hi||E instanceof Pa||z!==_n)&&E.v(!0)}}}},Ue.Uj=function(){if(!xu(this)){cs(this,!0),sr(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},Ue.Uk=function(){if(!(this.l&2048)){su(this,!0),Bu(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},Ue.Wu=function(){Bu(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},Ue.Wl=function(a,y,x,b){var E=this.jg;E.h(0,0,0,0);var z=this.desiredSize,te=this.minSize;x===void 0&&(x=te.width,b=te.height),x=Math.max(x,te.width),b=Math.max(b,te.height);var re=this.maxSize;isNaN(z.width)||(a=Math.min(z.width,re.width)),isNaN(z.height)||(y=Math.min(z.height,re.height)),a=Math.max(x,a),y=Math.max(b,y);var le=this.yb;a=Math.max(a-le.left-le.right,0),y=Math.max(y-le.top-le.bottom,0);var ce=this.O.s;ce.length!==0&&this.na.measure(this,a,y,ce,E,x,b),a=E.width+le.left+le.right,le=E.height+le.top+le.bottom,isFinite(z.width)&&(a=z.width),isFinite(z.height)&&(le=z.height),a=Math.min(re.width,a),le=Math.min(re.height,le),a=Math.max(te.width,a),le=Math.max(te.height,le),a=Math.max(x,a),le=Math.max(b,le),gs(E,a,le),gs(this.naturalBounds,a,le),this.Ge(0,0,a,le)},Ue.Pb=function(){if(this.$g===null){var a=this.O.s,y=a.length;if(y===0)return null;for(var x=0;x<y;x++){var b=a[x];if(b.isPanelMain===!0)return this.$g=b}this.$g=a[0]}return this.$g};function Sh(a){return a.part!==null?a.part.locationObject:null}Ue.eh=function(a,y,x,b){var E=this.O.s;if(this.actualBounds.h(a,y,x,b),E.length!==0){if(!this.desiredSize.w()){a=Ps(this,!0);var z=this.measuredBounds;y=z.width,z=z.height;var te=this.Kg,re=te.left+te.right;switch(te=te.top+te.bottom,y===x&&z===b&&(a=_n),a){case _n:(y>x||z>b)&&(this.v(),this.measure(y>x?x:y,z>b?b:z,0,0));break;case Qn:this.v(!0),this.measure(x+re,b+te,0,0);break;case Ci:this.v(!0),this.measure(x+re,z+te,0,0);break;case ki:this.v(!0),this.measure(y+re,b+te,0,0)}}this.na.arrange(this,E,this.jg)}},Ue.gh=function(a){var y=this.naturalBounds,x=Sh(this);if(Qr(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var b=y.length,E=lt.allocAt(0,0);b--;){var z=y[b];if((z.visible||z===x)&&(ao(E.set(a),z.transform),z.ca(E)))return lt.free(E),!0}return lt.free(E),!(this.Ma===null&&this.areaBackground===null)}return!1},Ue.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b].ks(a);if(E!==null)return E}return null},Ue.qm=function(a,y){if(y(this,a),a instanceof hi){a=a.O.s;for(var x=a.length,b=0;b<x;b++)this.qm(a[b],y)}};function Yg(a,y){cS(a,a,y)}function cS(a,y,x){x(y),y=y.O.s;for(var b=y.length,E=0;E<b;E++){var z=y[E];z instanceof hi&&cS(a,z,x)}}function A1(a,y){dS(a,a,y)}function dS(a,y,x){if(x(y),y instanceof hi){y=y.O.s;for(var b=y.length,E=0;E<b;E++)dS(a,y[E],x)}}Ue.Nl=function(a){return hS(this,this,a)};function hS(a,y,x){if(x(y))return y;if(y instanceof hi){y=y.O.s;for(var b=y.length,E=0;E<b;E++){var z=hS(a,y[E],x);if(z!==null)return z}}return null}Ue.fb=function(a){if(this.name===a)return this;var y=this.O.s,x=y.length;this.Hh===null&&this.itemTemplateMap===null||(x=Bp(this));for(var b=0;b<x;b++){var E=y[b];if(E instanceof hi){var z=E.fb(a);if(z!==null)return z}if(E.name===a)return E}return null};function gS(a){a=a.O.s;for(var y=a.length,x=0,b=0;b<y;b++){var E=a[b];E instanceof hi?x=Math.max(x,gS(E)):E instanceof eo&&(x=Math.max(x,E.ig/2*E.strokeMiterLimit*E.Df()))}return x}Ue.se=function(){return!(this.type===hi.TableRow||this.type===hi.TableColumn)};function zh(a){return a.type===hi.TableRow||a.type===hi.TableColumn}Ue.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),Il(this)))return null;var b=this.naturalBounds,E=1/this.Df(),z=this.se(),te=z?a:ao(lt.allocAt(a.x,a.y),this.transform),re=this.diagram,le=10,ce=5;if(re!==null&&(le=re.Ql("extraTouchArea"),ce=le/2),Qr(-(ce*E),-(ce*E),b.width+le*E,b.height+le*E,te.x,te.y)){if(!this.isAtomic){E=this.O.s;var de=E.length;if(re=lt.alloc(),ce=(le=this.isClipping&&this.na===hi.Spot)?this.Pb():null,le&&(ce.se()?ao(re.set(a),ce.transform):re.set(a),!ce.ca(re)))return lt.free(re),z||lt.free(te),null;for(var ve=Sh(this);de--;){var Pe=E[de];if((Pe.visible||Pe===ve)&&(Pe.se()?ao(re.set(a),Pe.transform):re.set(a),!le||Pe!==ce)){var Le=null;if(Pe instanceof hi?Le=Pe.ic(re,y,x):Pe.pickable===!0&&Pe.ca(re)&&(Le=Pe),Le!==null&&(y!==null&&(Le=y(Le)),Le!==null&&(x===null||x(Le))))return lt.free(re),z||lt.free(te),Le}}lt.free(re)}return this.background===null&&this.areaBackground===null?(z||lt.free(te),null):(a=Qr(0,0,b.width,b.height,te.x,te.y)?this:null,z||lt.free(te),a)}return z||lt.free(te),null},Ue.ji=function(a,y,x,b){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var E=this.naturalBounds,z=this.se(),te=z?a:ao(lt.allocAt(a.x,a.y),this.transform);if(E=Qr(0,0,E.width,E.height,te.x,te.y),zh(this)||E){if(!this.isAtomic){for(var re=this.O.s,le=re.length,ce=lt.alloc(),de=Sh(this);le--;){var ve=re[le];if(ve.visible||ve===de){ve.se()?ao(ce.set(a),ve.transform):ce.set(a);var Pe=ve;ve=ve instanceof hi?ve:null,(ve!==null?ve.ji(ce,y,x,b):Pe.ca(ce))&&Pe.pickable!==!1&&(y!==null&&(Pe=y(Pe)),Pe===null||x!==null&&!x(Pe)||b.add(Pe))}}lt.free(ce)}return z||lt.free(te),E&&(this.background!==null||this.areaBackground!==null)}return z||lt.free(te),!1},Ue.Cf=function(a,y,x,b,E,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var te=z;if(z===void 0&&(te=fr.alloc(),te.reset()),te.multiply(this.transform),this.fh(a,te))return Nv(this,y,x,E),z===void 0&&fr.free(te),!0;if(this.Yc(a,te)){if(!this.isAtomic)for(var re=Sh(this),le=this.O.s,ce=le.length;ce--;){var de=le[ce];if(de.visible||de===re){var ve=de.actualBounds,Pe=this.naturalBounds;ve.x>Pe.width||ve.y>Pe.height||0>ve.x+ve.width||0>ve.y+ve.height||(ve=de,de=de instanceof hi?de:null,Pe=fr.alloc(),Pe.set(te),(de!==null?de.Cf(a,y,x,b,E,Pe):oi(ve,a,b,Pe))&&(y!==null&&(ve=y(ve)),ve===null||x!==null&&!x(ve)||E.add(ve)),fr.free(Pe))}}return z===void 0&&fr.free(te),b}return z===void 0&&fr.free(te),!1};function Nv(a,y,x,b){for(var E=a.O.s,z=E.length;z--;){var te=E[z];if(te.visible){var re=te.actualBounds,le=a.naturalBounds;re.x>le.width||re.y>le.height||0>re.x+re.width||0>re.y+re.height||(te instanceof hi&&Nv(te,y,x,b),y!==null&&(te=y(te)),te===null||x!==null&&!x(te)||b.add(te))}}}Ue.og=function(a,y,x,b,E,z){if(this.pickable===!1)return!1;x===void 0&&(x=null),b===void 0&&(b=null);var te=this.naturalBounds,re=this.se(),le=re?a:ao(lt.allocAt(a.x,a.y),this.transform),ce=re?y:ao(lt.allocAt(y.x,y.y),this.transform),de=le.Bf(ce),ve=0<le.x&&le.x<te.width&&0<le.y&&le.y<te.height||ra(le.x,le.y,0,0,0,te.height)<=de||ra(le.x,le.y,0,te.height,te.width,te.height)<=de||ra(le.x,le.y,te.width,te.height,te.width,0)<=de||ra(le.x,le.y,te.width,0,0,0)<=de;if(te=le.zd(0,0)<=de&&le.zd(0,te.height)<=de&&le.zd(te.width,0)<=de&&le.zd(te.width,te.height)<=de,re||(lt.free(le),lt.free(ce)),ve){if(!this.isAtomic){le=lt.alloc(),ce=lt.alloc(),de=Sh(this);for(var Pe=this.O.s,Le=Pe.length;Le--;){var Fe=Pe[Le];if(Fe.visible||Fe===de){var Ze=Fe.actualBounds,pt=this.naturalBounds;(!re||!(Ze.x>pt.width||Ze.y>pt.height||0>Ze.x+Ze.width||0>Ze.y+Ze.height))&&(Fe.se()?(Ze=Fe.transform,ao(le.set(a),Ze),ao(ce.set(y),Ze)):(le.set(a),ce.set(y)),Ze=Fe,Fe=Fe instanceof hi?Fe:null,(Fe!==null?Fe.og(le,ce,x,b,E,z):Ze.tx(le,ce,E))&&(x!==null&&(Ze=x(Ze)),Ze===null||b!==null&&!b(Ze)||z.add(Ze)))}}lt.free(le),lt.free(ce)}return E?ve:te}return!1};function Mv(a){var y=null;return a instanceof eo&&(y=a.spot1,y===Vr&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=Hs),y}function Lv(a){var y=null;return a instanceof eo&&(y=a.spot2,y===Vr&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=Fl),y}Ue.add=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];for(x=0;x<y.length;x++)this.Gb(this.O.count,y[x]);return this},Ue.M=function(a){return this.O.M(a)},Ue.Gb=function(a,y){y instanceof nr&&bt("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&bt("Cannot make a Panel contain itself: "+this.toString()),bt("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&bt("Cannot add a GraphObject that already belongs to another Panel to this Panel: "+y.toString()+", already contained by "+x.toString()+", cannot be shared by this Panel: "+this.toString()),this.na!==hi.Grid||y instanceof eo||bt("Can only add Shapes to a Grid Panel, not: "+y),this.na!==hi.Graduated||y instanceof eo||y instanceof Pa||bt("Can only add Shapes or TextBlocks to a Graduated Panel, not: "+y),y.wi(this),y.Ng=null,this.itemArray!==null){var b=y.data;b!==null&&typeof b=="object"&&(this.ge===null&&(this.ge=new Ii),this.ge.add(b,y))}var E=this.O;if(b=-1,x===this){for(var z=-1,te=this.O.s,re=te.length,le=0;le<re;le++)if(te[le]===y){z=le;break}if(z!==-1){if(z===a||z+1>=E.count&&a>=E.count)return;E.mb(z),b=z}else bt("element "+y.toString()+" has panel "+x.toString()+" but is not contained by it.")}(0>a||a>E.count)&&(a=E.count),E.Gb(a,y),(a===0||y.isPanelMain)&&(this.$g=null),xu(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof hi&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Wm(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof Li&&(x.Te=!0),x.Te&&x instanceof Li&&(x.wc=null),E=this.diagram,E!==null&&E.undoManager.isUndoingRedoing||(b!==-1&&x.cb(ms,"elements",this,y,null,b,null),x.cb(Ka,"elements",this,null,y,null,a)))};function Tv(a,y){a.l=y?a.l|16777216:a.l&-16777217}Ue.remove=function(a){for(var y=this.O.s,x=y.length,b=-1,E=0;E<x;E++)if(y[E]===a){b=E;break}b!==-1&&this.pc(b,!0)},Ue.mb=function(a){0<=a&&this.pc(a,!0)},Ue.pc=function(a,y){var x=this.O,b=x.M(a);if(b.Ng=null,b.wi(null),this.ge!==null){var E=b.data;typeof E=="object"&&this.ge.remove(E)}x.mb(a),cs(this,!1),this.v(),this.$g===b&&(this.$g=null),this.graduatedIntervals=null;var z=this.part;z!==null&&(z.Rh=null,z.ag=NaN,z.Wb(),z instanceof Li&&(b instanceof hi?b.qm(b,function(te,re){qv(z,re,y)}):qv(z,b,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||z.cb(ms,"elements",this,b,null,a,null))},Ue.Fb=function(a){0>a&&Ln(a,">= 0",hi,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new Qs;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(Ka,"rowdefs",this,null,x,null,a)}return y[a]},Ue.oA=function(a){if(0>a&&Ln(a,">= 0",hi,"removeRowDefinition:idx"),this.rowCount!==0){a=Math.round(a);var y=this.rowDefs,x=y[a];if(x){y[a]=void 0;for(var b=y.length-1;0<=b&&y[b--]===void 0;)y.length--;this.cb(ms,"rowdefs",this,x,null,a,null),this.v()}}};function fS(a,y,x){var b=a.rowDefs;if(!(0>y)){if(b[y]=x instanceof Qs?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}Ue.Eb=function(a){0>a&&Ln(a,">= 0",hi,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new Qs;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(Ka,"coldefs",this,null,x,null,a)}return y[a]},Ue.jA=function(a){if(0>a&&Ln(a,">= 0",hi,"removeColumnDefinition:idx"),this.columnCount!==0){a=Math.round(a);var y=this.colDefs,x=y[a];if(x){y[a]=void 0;for(var b=y.length-1;0<=b&&y[b--]===void 0;)y.length--;this.cb(ms,"coldefs",this,x,null,a,null),this.v()}}};function pS(a,y,x){var b=a.colDefs;if(!(0>y)){if(b[y]=x instanceof Qs?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}Ue.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Zm(y,a),this},Ue.Hy=function(a,y){return(a=this.Fb(a))&&Zm(a,new Qs(y)),this},Ue.By=function(a,y){return(a=this.Eb(a))&&Zm(a,new Qs(y)),this},Ue.nz=function(a){if(0>a||this.type!==hi.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,b=x.length,E=this.topIndex;E<b;E++){var z=x[E];if(z!==void 0&&(y+=z.total,a<y))break}return E},Ue.fz=function(a){if(0>a||this.type!==hi.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,b=x.length,E=this.leftIndex;E<b;E++){var z=x[E];if(z!==void 0&&(y+=z.total,a<y))break}return E},Ue.Fz=function(a,y){if(y===void 0&&(y=new lt(NaN,NaN)),this.type!==hi.Graduated)return y.h(NaN,NaN),y;a=Math.min(Math.max(a,this.graduatedMin),this.graduatedMax);var x=this.Pb();return x.geometry.Pu((a-this.graduatedMin)/this.graduatedRange,y),x.transform.Ga(y)},Ue.Gz=function(a){if(this.type!==hi.Graduated)return NaN;var y=this.Pb();return y.transform.Cd(a),y.geometry.xx(a)*this.graduatedRange+this.graduatedMin};function mS(a){return a=a.allBindings,a!==null&&a._isFrozen}function Vc(a){var y=a.allBindings;if(y===null)a.data!==null&&bt("Template cannot have .data be non-null: "+a),a.allBindings=y=new Ht;else if(y._isFrozen)return;var x=new Ht;Tv(a,!1),a.qm(a,function(ce,de){de.th();var ve=de.localBindings;if(ve!==null)for(Su(de,!1),ve=ve.iterator;ve.next();){var Pe=ve.value;Pe.mode===om&&Su(de,!0);var Le=Pe.sourceName;Le!==null&&(Le==="/"&&Tv(ce,!0),Le=Tx(Pe,ce,de),Le!==null&&(x.add(Le),Le.srcBindings===null&&(Le.srcBindings=new Ht),Le.srcBindings.add(Pe))),y.add(Pe)}if(de instanceof hi&&de.type===hi.Table){if(0<de.rowCount){for(ce=de.rowDefs,ve=ce.length,Pe=0;Pe<ve;Pe++)if(Le=ce[Pe],Le!==void 0&&Le.be!==null)for(var Fe=Le.be.iterator;Fe.next();){var Ze=Fe.value;Ze.xd=Le,Ze.to=2,Ze.wl=Le.index,y.add(Ze)}}if(0<de.columnCount){for(de=de.colDefs,ce=de.length,ve=0;ve<ce;ve++)if(Pe=de[ve],Pe!==void 0&&Pe.be!==null)for(Le=Pe.be.iterator;Le.next();)Fe=Le.value,Fe.xd=Pe,Fe.to=1,Fe.wl=Pe.index,y.add(Fe)}}});for(var b=x.iterator;b.next();){var E=b.value;if(E.srcBindings!==null){Su(E,!0);for(var z=E.srcBindings.iterator;z.next();){var te=z.value;E.localBindings===null&&(E.localBindings=new Ht),E.localBindings.add(te)}}E.srcBindings=null}for(b=y.iterator;b.next();)if(E=b.value,z=E.xd,z!==null){E.xd=null;var re=E.targetProperty,le=re.indexOf(".");0<le&&z instanceof hi&&(te=re.substring(0,le),re=re.substr(le+1),le=z.fb(te),le!==null?(z=le,E.targetProperty=re):ni('Warning: unable to find GraphObject named "'+te+'" for Binding: '+E.toString())),z instanceof Qs?(te=Dr(z.panel),E.Ai=te===void 0?-1:te,z.panel.bindingId=E.Ai):z instanceof Rt?(te=Dr(z),E.Ai=te===void 0?-1:te,z.bindingId=E.Ai):bt("Unknown type of binding target: "+z)}y.freeze(),a instanceof nr&&a.Zc()&&a.Va()}Ue.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return A1(y,function(x){x instanceof hi&&(x.allBindings=null,x.ub=null);var b=x.localBindings;b!==null&&(x.localBindings=null,b.each(function(E){x.bind(E.copy())})),b=x.animationTriggers,b!==null&&(x.animationTriggers=null,b.each(function(E){x.Jv(E.value.copy())}))}),a&&Vc(y),y},Ue.La=function(a){var y=this.allBindings;if(y!==null)for(a===void 0&&(a=""),y=y.iterator;y.next();){var x=y.value,b=x.sourceProperty;if((a===""||b===""||b===a)&&(b=x.targetProperty,x.converter!==null||b!=="")){b=this.data;var E=x.sourceName;if(E!==null){if(E==="")b=this;else if(E==="/")b=this;else if(E===".")b=this;else if(E==="..")b=this;else if(b=this.fb(E),b===null)continue}else if(x.isToModel)if(b=this.diagram,b!==null)b=b.model.modelData;else continue;var z=this,te=x.Ai;if(te!==-1){if(z=this.ks(te),z===null)continue}else x.xd!==null&&(z=x.xd);if(E==="/"?b=z.part:E==="."?b=z:E===".."&&(b=z.panel),E=x.to,E!==0){if(!(z instanceof hi))continue;E===1?z=z.Eb(x.wl):E===2&&(z=z.Fb(x.wl))}z!==void 0&&x.Mv(z,b)}}},Ue.sx=function(a){return a==null||this.ge===null?null:this.ge.I(a)};function N1(a,y){a=a.O.s;for(var x=a.length,b=y.length,E=0,z=null;E<x&&(z=a[E],!(z instanceof hi&&z.data!==null));)E++,z=a[E];if(x-E!==b)return!0;if(z===null)return 0<b;for(var te=0;E<x&&te<b;){if(z=a[E],!(z instanceof hi)||z.data!==y[te])return!0;E++,te++}return!1}function Bp(a){if(a.type===hi.Spot||a.type===hi.Auto)return Math.min(a.O.length,1);if(a.type===hi.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var b=a.M(x);if(!(b instanceof eo&&b.isPanelMain))break}return x}return a.type===hi.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof hi&&zh(a))?1:0}Ue.mv=function(){for(var a=Bp(this);this.O.length>a;)this.pc(this.O.length-1,!1);vS(this,this.itemArray)};function vS(a,y){var x=Bp(a);if(y===null||y.length===0)for(;a.O.length>x;)a.pc(a.O.length-1,!1);else if(a.O.length<=x){x=y.length;for(var b=0;b<x;b++)Hm(a,y[b],b,!0)}else{b=x;for(var E=0;E<y.length;E++,b++){var z=y[E],te=b<a.O.length?a.O.M(b):null;if(te instanceof hi){if(te.data!==z){var re=kv(a,te.data),le=kv(a,z),ce=le!==re;ce||(re=Dv(a,re),ce=Dv(a,le)!==re),ce?(a.pc(b,!1),Hm(a,z,E,!1)):te.data=z}}else Hm(a,z,E,!1)}for(;b<a.O.length;)a.pc(b,!1);a.$g=null,Iv(a,x,0),xu(a)||a.v(),a.graduatedIntervals=null,a.If()||Wm(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof Li&&(y.Te=!0),y.Te&&y instanceof Li&&(y.wc=null))}}function Hm(a,y,x,b){if(!(y==null||0>x)){var E=kv(a,y);if(E=Dv(a,E),E!==null){if(Vc(E),E=E.copy(),E.l&16777216){var z=a.ih();z!==null&&Tv(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new Ii),a.ge.add(y,E)),z=x+Bp(a),a.Gb(z,E),b&&(E.ub=y,Iv(a,z,x),E.ub=null),E.data=y}}}function Iv(a,y,x){for(a=a.O;y<a.length;){var b=a.M(y);if(b instanceof hi){var E=y,z=x;b.type===hi.TableRow?b.row=E:b.type===hi.TableColumn&&(b.column=E),b.itemIndex=z}y++,x++}}function kv(a,y){if(y===null)return"";if(a=a.itemCategoryProperty,typeof a=="function")a=a(y);else if(typeof a=="string"&&typeof y=="object"){if(a==="")return"";a=Fs(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;bt("Panel.getCategoryForItemData found a non-string category for "+y+": "+a)}function Dv(a,y){var x=a.itemTemplateMap,b=null;return x!==null&&(b=x.I(y)),b===null&&(x!==null&&(b=x.I("")),b===null&&(yS||(yS=!0,ni('No item template Panel found for category "'+y+'" on '+a),ni(" Using default item template."),a=new hi,y=new Pa,y.bind(new Us("text","",Vn)),a.add(y),SS=a),b=SS)),b}function Wm(a,y,x){var b=y.enabledChanged;if(b!==null&&b(y,x),y instanceof hi){y=y.O.s,b=y.length;for(var E=0;E<b;E++){var z=y[E];x&&z instanceof hi&&!z.isEnabled||Wm(a,z,x)}}}function Od(a,y){y.name=a,ld.add(a,y)}Nt.Object.defineProperties(hi.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===hi.Grid,this.v(),this.g("type",y,a))}},elements:{get:function(){return this.O.iterator}},naturalBounds:{get:function(){return this.dc}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"?(0>a&&Ln(a,">= 0",hi,"padding"),a=new $i(a)):(0>a.left&&Ln(a.left,">= 0",hi,"padding:value.left"),0>a.right&&Ln(a.right,">= 0",hi,"padding:value.right"),0>a.top&&Ln(a.top,">= 0",hi,"padding:value.top"),0>a.bottom&&Ln(a.bottom,">= 0",hi,"padding:value.bottom"));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.v(),this.g("padding",y,a))}},defaultAlignment:{get:function(){return this.Tm},set:function(a){var y=this.Tm;y.D(a)||(this.Tm=a=a.J(),this.v(),this.g("defaultAlignment",y,a))}},defaultStretch:{get:function(){return this.Uf},set:function(a){var y=this.Uf;y!==a&&(this.Uf=a,this.v(),this.g("defaultStretch",y,a))}},defaultSeparatorPadding:{get:function(){return this.T!==null?this.T.Qp:ul},set:function(a){typeof a=="number"&&(a=new $i(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new Rc),this.T.Qp=a,this.v(),this.g("defaultSeparatorPadding",y,a))}},defaultRowSeparatorStroke:{get:function(){return this.T!==null?this.T.ia:null},set:function(a){var y=this.defaultRowSeparatorStroke;y!==a&&(a===null||typeof a=="string"||a instanceof ko)&&(a instanceof ko&&a.freeze(),this.T===null&&(this.T=new Rc),this.T.ia=a,this.N(),this.g("defaultRowSeparatorStroke",y,a))}},defaultRowSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.Ha:1},set:function(a){var y=this.defaultRowSeparatorStrokeWidth;y!==a&&isFinite(a)&&0<=a&&(this.T===null&&(this.T=new Rc),this.T.Ha=a,this.v(),this.g("defaultRowSeparatorStrokeWidth",y,a))}},defaultRowSeparatorDashArray:{get:function(){return this.T!==null?this.T.V:null},set:function(a){var y=this.defaultRowSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var z=a[E];typeof z=="number"&&0<=z&&isFinite(z)||bt("defaultRowSeparatorDashArray value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.T===null&&(this.T=new Rc),this.T.V=a,this.N(),this.g("defaultRowSeparatorDashArray",y,a)}}},defaultColumnSeparatorStroke:{get:function(){return this.T!==null?this.T.u:null},set:function(a){var y=this.defaultColumnSeparatorStroke;y!==a&&(a===null||typeof a=="string"||a instanceof ko)&&(a instanceof ko&&a.freeze(),this.T===null&&(this.T=new Rc),this.T.u=a,this.N(),this.g("defaultColumnSeparatorStroke",y,a))}},defaultColumnSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.F:1},set:function(a){var y=this.defaultColumnSeparatorStrokeWidth;y!==a&&isFinite(a)&&0<=a&&(this.T===null&&(this.T=new Rc),this.T.F=a,this.v(),this.g("defaultColumnSeparatorStrokeWidth",y,a))}},defaultColumnSeparatorDashArray:{get:function(){return this.T!==null?this.T.o:null},set:function(a){var y=this.defaultColumnSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var z=a[E];typeof z=="number"&&0<=z&&isFinite(z)||bt("defaultColumnSeparatorDashArray value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.T===null&&(this.T=new Rc),this.T.o=a,this.N(),this.g("defaultColumnSeparatorDashArray",y,a)}}},inRowsCols:{get:function(){return this.T!==null?this.T.nb:null},set:function(a){this.T===null&&(this.T=new Rc),this.T.nb=a}},viewboxStretch:{get:function(){return this.xo},set:function(a){var y=this.xo;y!==a&&(this.xo=a,this.v(),this.g("viewboxStretch",y,a))}},gridCellSize:{get:function(){return this.jn},set:function(a){var y=this.jn;if(!y.D(a)){a.w()&&a.width!==0&&a.height!==0||bt("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var x=this.diagram;x!==null&&this===x.grid&&ad(x),this.N(),this.g("gridCellSize",y,a)}}},gridOrigin:{get:function(){return this.kn},set:function(a){var y=this.kn;if(!y.D(a)){a.w()||bt("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var x=this.diagram;x!==null&&this===x.grid&&ad(x),this.N(),this.g("gridOrigin",y,a)}}},graduatedMin:{get:function(){return this.ra!==null?this.ra.lq:0},set:function(a){var y=this.graduatedMin;y!==a&&(this.ra===null&&(this.ra=new xh),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),fs(this)&&(a=this.part,a!==null&&$o(this,a,"graduatedRange")))}},graduatedMax:{get:function(){return this.ra!==null?this.ra.F:100},set:function(a){var y=this.graduatedMax;y!==a&&(this.ra===null&&(this.ra=new xh),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),fs(this)&&(a=this.part,a!==null&&$o(this,a,"graduatedRange")))}},graduatedRange:{get:function(){return this.graduatedMax-this.graduatedMin}},graduatedTickUnit:{get:function(){return this.ra!==null?this.ra.ia:10},set:function(a){var y=this.graduatedTickUnit;y!==a&&0<a&&(this.ra===null&&(this.ra=new xh),this.ra.ia=a,this.v(),this.g("graduatedTickUnit",y,a))}},graduatedTickBase:{get:function(){return this.ra!==null?this.ra.V:0},set:function(a){var y=this.graduatedTickBase;y!==a&&(this.ra===null&&(this.ra=new xh),this.ra.V=a,this.v(),this.g("graduatedTickBase",y,a))}},graduatedMarks:{get:function(){return this.ra!==null?this.ra.u:null},set:function(a){this.ra!==null?this.ra.u=a:a!==null&&(this.ra=new xh,this.ra.u=a)}},graduatedBounds:{get:function(){return this.ra!==null?this.ra.j:null},set:function(a){this.ra!==null?this.ra.j=a:a!==null&&(this.ra=new xh,this.ra.j=a)}},graduatedIntervals:{get:function(){return this.ra!==null?this.ra.o:null},set:function(a){this.ra!==null?this.ra.o=a:a!==null&&(this.ra=new xh,this.ra.o=a)}},temporaryTextBlock:{get:function(){return this.ra!==null?this.ra.Zh:null},set:function(a){this.ra!==null?this.ra.Zh=a:a!==null&&(this.ra=new xh,this.ra.Zh=a)}},panelLayoutState:{get:function(){return this.F},set:function(a){this.F=a}},Te:{get:function(){return(this.l&8388608)!==0},set:function(a){(this.l&8388608)!==0!==a&&(this.l^=8388608)}},rowDefs:{get:function(){return this.T===null&&(this.T=new Rc),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new Rc),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:Km},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new Rc),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:Km},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new Rc),this.T.j=a,this.v(),this.g("columnSizing",y,a))}},topIndex:{get:function(){return this.T!==null?this.T.Hb:0},set:function(a){var y=this.topIndex;y!==a&&((!isFinite(a)||0>a)&&bt("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Rc),this.T.Hb=a,this.v(),this.g("topIndex",y,a))}},leftIndex:{get:function(){return this.T!==null?this.T.hb:0},set:function(a){var y=this.leftIndex;y!==a&&((!isFinite(a)||0>a)&&bt("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Rc),this.T.hb=a,this.v(),this.g("leftIndex",y,a))}},data:{get:function(){return this.ub},set:function(a){var y=this.ub;if(y!==a){var x=this instanceof nr&&!(this instanceof zo);Vc(this),this.ub=a;var b=this.diagram;b!==null&&(x?(x=b.partManager,this instanceof yi?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof nr&&(y!==null&&x.cf.remove(y),a!==null&&x.cf.add(a,this))):(x=this.panel,x!==null&&x.ge!==null&&(y!==null&&x.ge.remove(y),a!==null&&x.ge.add(a,this)))),this.g("data",y,a),b!==null&&b.undoManager.isUndoingRedoing||a!==null&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(a){var y=this.zn;y!==a&&(this.zn=a,this.g("itemIndex",y,a))}},allBindings:{get:function(){return this.A!==null?this.A.nb:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new Tc),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&N1(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&Sy(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&yy(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||vS(this,a)}}},itemTemplate:{get:function(){return this.itemTemplateMap===null?null:this.itemTemplateMap.I("")},set:function(a){if(this.itemTemplateMap===null){if(a===null)return;this.itemTemplateMap=new Ii}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof nr||a.isPanelMain)&&bt("Panel.itemTemplate must not be a Part or be Panel.isPanelMain: "+a),this.itemTemplateMap.add("",a),this.g("itemTemplate",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv())}},itemTemplateMap:{get:function(){return this.A!==null?this.A.Pc:null},set:function(a){var y=this.itemTemplateMap;if(y!==a){for(var x=a.iterator;x.next(););Cr(this),this.A.Pc=a,this.g("itemTemplateMap",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv()}}},itemCategoryProperty:{get:function(){return this.A!==null?this.A.Oc:"category"},set:function(a){var y=this.itemCategoryProperty;y!==a&&(Cr(this),this.A.Oc=a,this.g("itemCategoryProperty",y,a))}},isAtomic:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("isAtomic",y,a))}},isClipping:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this instanceof _r&&(this.tb=null),this.v(),this.g("isClipping",y,a))}},isOpposite:{get:function(){return(this.l&33554432)!==0},set:function(a){var y=(this.l&33554432)!==0;y!==a&&(this.l^=33554432,this.v(),this.g("isOpposite",y,a))}},isEnabled:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;if(y!==a){var x=this.panel===null||this.panel.If();this.l^=4194304,this.g("isEnabled",y,a),y=this.diagram,y!==null&&y.undoManager.isUndoingRedoing||x&&Wm(this,this,a)}}},alignmentFocusName:{get:function(){return this.$e},set:function(a){var y=this.$e;y!==a&&(this.$e=a,this.v(),this.g("alignmentFocusName",y,a))}}}),Nt.Object.defineProperties(hi,{Position:{get:function(){return ld.I("Position")}},Horizontal:{get:function(){return ld.I("Horizontal")}},Vertical:{get:function(){return ld.I("Vertical")}},Spot:{get:function(){return ld.I("Spot")}},Auto:{get:function(){return ld.I("Auto")}},Table:{get:function(){return ld.I("Table")}},Viewbox:{get:function(){return ld.I("Viewbox")}},TableRow:{get:function(){return ld.I("TableRow")}},TableColumn:{get:function(){return ld.I("TableColumn")}},Link:{get:function(){return ld.I("Link")}},Grid:{get:function(){return ld.I("Grid")}},Graduated:{get:function(){return ld.I("Graduated")}}}),hi.prototype.rebuildItemElements=hi.prototype.mv,hi.prototype.findItemPanelForData=hi.prototype.sx,hi.prototype.updateTargetBindings=hi.prototype.La,hi.prototype.copyTemplate=hi.prototype.Uy,hi.prototype.graduatedValueForPoint=hi.prototype.Gz,hi.prototype.graduatedPointForValue=hi.prototype.Fz,hi.prototype.findColumnForLocalX=hi.prototype.fz,hi.prototype.findRowForLocalY=hi.prototype.nz,hi.prototype.addColumnDefinition=hi.prototype.By,hi.prototype.addRowDefinition=hi.prototype.Hy,hi.prototype.addRowColumnDefinition=hi.prototype.Gy,hi.prototype.removeColumnDefinition=hi.prototype.jA,hi.prototype.getColumnDefinition=hi.prototype.Eb,hi.prototype.removeRowDefinition=hi.prototype.oA,hi.prototype.getRowDefinition=hi.prototype.Fb,hi.prototype.removeAt=hi.prototype.mb,hi.prototype.remove=hi.prototype.remove,hi.prototype.insertAt=hi.prototype.Gb,hi.prototype.elt=hi.prototype.M,hi.prototype.add=hi.prototype.add,hi.prototype.findObject=hi.prototype.fb,hi.prototype.findInVisualTree=hi.prototype.Nl,hi.prototype.walkVisualTreeFrom=hi.prototype.qm,hi.prototype.findMainElement=hi.prototype.Pb;var yS=!1,SS=null,ld=new Ii;hi.className="Panel",hi.definePanelLayout=Od,Od("Position",new Im),Od("Vertical",new Dm),Od("Auto",new Rm),Od("Link",new _m);function xh(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}xh.prototype.copy=function(){var a=new xh;return a.lq=this.lq,a.F=this.F,a.ia=this.ia,a.V=this.V,a.u=this.u,a.j=this.j,a.o=this.o,a.Zh=this.Zh,a},xh.className="GradPanelSettings";function Rc(){this.Pc=[],this.Oc=[],this.j=this.ob=Km,this.hb=this.Hb=0,this.Qp=ul,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}Rc.prototype.copy=function(a){for(var y=new Rc,x=this.Pc,b=x.length,E=y.Pc,z=0;z<b;z++)if(x[z]!==void 0){var te=x[z].copy();te.wi(a),E[z]=te}for(x=this.Oc,b=x.length,E=y.Oc,z=0;z<b;z++)x[z]!==void 0&&(te=x[z].copy(),te.wi(a),E[z]=te);return y.ob=this.ob,y.j=this.j,y.Hb=this.Hb,y.hb=this.hb,y.Qp=this.Qp.J(),y.Ha=this.Ha,y.ia=this.ia,y.V=this.V,y.F=this.F,y.u=this.u,y.o=this.o,y.nb=this.nb,y},Rc.className="TablePanelSettings";function Qs(a){kr(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=Vr,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Ov,this.hg=ar,this.lo=this.dg=null,this.mo=NaN,this.Ma=this.tj=null,this.Pm=!1,a&&(Object.assign(this,a),a.column!==void 0?(this.isRow=!1,this.index=a.column):a.row!==void 0&&(this.isRow=!0,this.index=a.row))}Qs.prototype.copy=function(){var a=new Qs;return a.uq=this.uq,a.Za=this.Za,a.Hc=this.Hc,a.jj=this.jj,a.hj=this.hj,a.Jb=this.Jb,a.oa=this.oa,a.oc=this.oc,a.pa=this.pa,a.hg=this.hg,a.oo=this.oo,this.dg===null?a.dg=null:a.dg=this.dg.J(),a.lo=this.lo,a.mo=this.mo,a.tj=null,this.tj!==null&&(a.separatorDashArray=Qt(this.separatorDashArray)),a.Ma=this.Ma,a.Pm=this.Pm,a.be=this.be,a};function Zm(a,y){y.isRow?a.height=y.height:a.width=y.width,a.minimum=y.minimum,a.maximum=y.maximum,a.alignment=y.alignment,a.stretch=y.stretch,a.sizing=y.sizing,a.dg=y.separatorPadding===null?null:y.separatorPadding.J(),a.separatorStroke=y.separatorStroke,a.separatorStrokeWidth=y.separatorStrokeWidth,a.tj=null,y.separatorDashArray&&(a.tj=Qt(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}Ue=Qs.prototype,Ue.qb=function(a){a.classType===Qs&&(this.sizing=a)},Ue.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+Dr(this)},Ue.wi=function(a){this.Me=a},Ue.Io=function(a){var y=0,x=this.Me;if(this.index!==a&&(a=this.separatorStroke,a===null&&x!==null&&(a=this.isRow?x.defaultRowSeparatorStroke:x.defaultColumnSeparatorStroke),a!==null&&(y=this.separatorStrokeWidth,isNaN(y)&&(x!==null?y=this.isRow?x.defaultRowSeparatorStrokeWidth:x.defaultColumnSeparatorStrokeWidth:y=0))),a=this.dg,a===null)if(x!==null)a=x.defaultSeparatorPadding;else return y;return y+(this.isRow?a.top:a.left)},Ue.Wc=function(){var a=0,y=this.Me,x=0,b=this.isRow;if(y!==null&&y.type===hi.Table)for(var E=b?y.rowDefs.length:y.colDefs.length,z=0;z<E;z++){var te=b?y.rowDefs[z]:y.colDefs[z];if(te!==void 0&&te.oa!==0){x=te.index;break}}if(this.index!==x&&(x=this.separatorStroke,x===null&&y!==null&&(x=b?y.defaultRowSeparatorStroke:y.defaultColumnSeparatorStroke),x!==null&&(a=this.separatorStrokeWidth,isNaN(a)&&(y!==null?a=b?y.defaultRowSeparatorStrokeWidth:y.defaultColumnSeparatorStrokeWidth:a=0))),b=this.dg,b===null)if(y!==null)b=y.defaultSeparatorPadding;else return a;return a+(this.isRow?b.top+b.bottom:b.left+b.right)},Ue.Ob=function(a,y,x){var b=this.Me;if(b!==null&&(b.cb(Ma,a,this,y,x,void 0,void 0),this.be!==null&&(y=b.diagram,y!==null&&!y.skipsModelSourceBindings&&(b=b.ih(),b!==null&&(y=b.data,y!==null)))))for(x=this.be.iterator;x.next();)x.value.sp(this,y,a,b)};function Vm(a){if(a.sizing===Ov){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}Ue.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new Us(a,y,x,b):E=a,E.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&mS(y)&&bt("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+E+" on "+a)),this.be===null&&(this.be=new Ht),this.be.add(E),this},Nt.Object.defineProperties(Qs.prototype,{panel:{get:function(){return this.Me}},isRow:{get:function(){return this.uq},set:function(a){this.uq=a}},index:{get:function(){return this.Za},set:function(a){this.Za=a}},height:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&Ln(a,">= 0",Qs,"height"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("height",y,a))}},width:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&Ln(a,">= 0",Qs,"width"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("width",y,a))}},minimum:{get:function(){return this.jj},set:function(a){var y=this.jj;y!==a&&((0>a||!isFinite(a))&&Ln(a,">= 0",Qs,"minimum"),this.jj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("minimum",y,a))}},maximum:{get:function(){return this.hj},set:function(a){var y=this.hj;y!==a&&(0>a&&Ln(a,">= 0",Qs,"maximum"),this.hj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("maximum",y,a))}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(this.Jb=a.J(),this.panel!==null&&this.panel.v(),this.Ob("alignment",y,a))}},stretch:{get:function(){return this.hg},set:function(a){var y=this.hg;y!==a&&(this.hg=a,this.panel!==null&&this.panel.v(),this.Ob("stretch",y,a))}},separatorPadding:{get:function(){return this.dg},set:function(a){typeof a=="number"&&(a=new $i(a));var y=this.dg;a!==null&&y!==null&&y.D(a)||(a!==null&&(a=a.J()),this.dg=a,this.panel!==null&&this.panel.v(),this.Ob("separatorPadding",y,a))}},separatorStroke:{get:function(){return this.lo},set:function(a){var y=this.lo;y!==a&&(a!==null&&Sf(a,"RowColumnDefinition.separatorStroke"),a instanceof ko&&a.freeze(),this.lo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStroke",y,a))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(a){var y=this.mo;y!==a&&(this.mo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStrokeWidth",y,a))}},separatorDashArray:{get:function(){return this.tj},set:function(a){var y=this.tj;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var z=a[E];typeof z=="number"&&0<=z&&isFinite(z)||bt("separatorDashArray value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.tj=a,this.panel!==null&&this.panel.N(),this.Ob("separatorDashArray",y,a)}}},background:{get:function(){return this.Ma},set:function(a){var y=this.Ma;y!==a&&(a!==null&&Sf(a,"RowColumnDefinition.background"),a instanceof ko&&a.freeze(),this.Ma=a,this.panel!==null&&this.panel.N(),this.Ob("background",y,a))}},coversSeparators:{get:function(){return this.Pm},set:function(a){var y=this.Pm;y!==a&&(this.Pm=a,this.panel!==null&&this.panel.N(),this.Ob("coversSeparators",y,a))}},sizing:{get:function(){return this.oo},set:function(a){var y=this.oo;y!==a&&(this.oo=a,this.panel!==null&&this.panel.v(),this.Ob("sizing",y,a))}},actual:{get:function(){return this.oa},set:function(a){this.oa=isNaN(this.Hc)?Math.max(Math.min(this.hj,a),this.jj):Math.max(Math.min(this.hj,this.Hc),this.jj)}},measured:{get:function(){return this.oc},set:function(a){this.oc=a}},total:{get:function(){return this.oa+this.Wc()}},position:{get:function(){return this.pa},set:function(a){this.pa=a}}}),Qs.prototype.computeEffectiveSpacing=Qs.prototype.Wc,Qs.prototype.computeEffectiveSpacingTop=Qs.prototype.Io;var Ov=new tn(Qs,"Default",0),jp=new tn(Qs,"None",1),Km=new tn(Qs,"ProportionalExtra",2);Qs.className="RowColumnDefinition",Qs.Default=Ov,Qs.None=jp,Qs.ProportionalExtra=Km;function eo(a,y){Rt.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 a=="string"?this.figure=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}qt(eo,Rt),eo.prototype.cloneProtected=function(a){Rt.prototype.cloneProtected.call(this,a),a.ua=this.ua,a.Rd=this.Rd,a.an=this.an,a.Ui=this.Ui,a.xc=this.xc,a.ig=this.ig,this.Yg!==null&&(a.Yg=Qt(this.Yg)),this.Na!==null&&(a.Na=this.Na.nc?this.Na:this.Na.copy()),a.Un=this.Un,a.Vn=this.Vn,this.fa!==null&&(a.fa=this.fa.copy())};function $g(a){a.Na===null?a.Na=new Bv:a.Na.nc&&(a.Na=a.Na.copy())}Ue=eo.prototype,Ue.th=function(){Rt.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},Ue.qb=function(a){a===_n||a===pi||a===Nr||a===ar?this.geometryStretch=a:Rt.prototype.qb.call(this,a)},Ue.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+Dr(this)};function Qf(a,y,x,b){var E=x.length;if(!(4>E)){var z=b.measuredBounds,te=Math.max(1,z.width);z=z.height;for(var re=x[0],le=x[1],ce,de,ve,Pe,Le,Fe,Ze=0,pt=gn(),at=2;at<E;at+=2)ce=x[at],de=x[at+1],ve=ce-re,re=de-le,ve===0&&(ve=.001),Pe=re/ve,Le=Math.atan2(re,ve),Fe=Math.sqrt(ve*ve+re*re),pt.push([ve,Le,Pe,Fe]),Ze+=Fe,re=ce,le=de;re=x[0],le=x[1],ve=b.measuredBounds.width,b instanceof eo&&(ve-=b.strokeWidth),1>ve&&(ve=1),E=x=ve,ce=te/2,de=ce!==0,at=0,Fe=pt[at],ve=Fe[0],Le=Fe[1],Pe=Fe[2],Fe=Fe[3];for(var Ct=0;.1<=Ze;){if(Ct===0&&(de?(E=x,E-=ce,Ze-=ce,de=!1):E=x,E===0&&(E=1)),E>Ze){kn(pt);return}E>Fe?(Ct=E-Fe,E=Fe):Ct=0;var Lt=Math.sqrt(E*E/(1+Pe*Pe));if(0>ve&&(Lt=-Lt),re+=Lt,le+=Pe*Lt,a.translate(re,le),a.rotate(Le),a.translate(-(te/2),-(z/2)),Ct===0&&b.hh(a,y),a.translate(te/2,z/2),a.rotate(-Le),a.translate(-re,-le),Ze-=E,Fe-=E,Ct!==0){if(at++,at===pt.length){kn(pt);return}Fe=pt[at],ve=Fe[0],Le=Fe[1],Pe=Fe[2],Fe=Fe[3],E=Ct}}kn(pt)}}Ue.hh=function(a,y){var x=this.xc,b=this.Ui;if(x!==null||b!==null){var E=this.ua;if(E!==null){a.yc();var z=this.actualBounds,te=this.naturalBounds;b!==null&&Ca(this,a,b,!0,!1,te,z);var re=this.part,le=this.ig;if(x===null||le!==0||re===null||!this.isPanelMain&&re.Pb()!==this||(le=re.type===hi.Link&&re instanceof zo&&re.category==="Selection"&&re.adornedObject instanceof eo&&re.adornedPart.Pb()===re.adornedObject?re.adornedObject.strokeWidth:0),le===0&&(x=null),x!==null&&le!==0&&(Ca(this,a,x,!1,!1,te,z),a.lineWidth=le,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,re&&y.Gf("drawShadows")&&(z=re.isShadowed),a.Il===!1&&(z=!1),re=!0,x===null||b!==null&&b!=="transparent"||(re=!1),te=!1,le=this.strokeDashArray,le!==null&&(te=!0,a.js(le,this.strokeDashOffset)),E.type===di.j)a.beginPath(),a.moveTo(E.startX,E.startY),a.lineTo(E.endX,E.endY),x!==null&&a.jk(),a.Se();else if(E.type===di.u){var ce=E.startX;le=E.startY;var de=E.endX,ve=E.endY;E=Math.min(ce,de);var Pe=Math.min(le,ve);ce=Math.abs(de-ce),le=Math.abs(ve-le),a.beginPath(),a.rect(E,Pe,ce,le),b!==null&&a.ng(b),x!==null&&(re&&z&&wr(a),a.jk(),re&&z&&fa(a)),a.Se()}else if(E.type===di.F)ce=E.startX,le=E.startY,de=E.endX,ve=E.endY,E=Math.abs(de-ce)/2,Pe=Math.abs(ve-le)/2,ce=Math.min(ce,de)+E,le=Math.min(le,ve)+Pe,a.beginPath(),a.moveTo(ce,le-Pe),a.bezierCurveTo(ce+Wt.wg*E,le-Pe,ce+E,le-Wt.wg*Pe,ce+E,le),a.bezierCurveTo(ce+E,le+Wt.wg*Pe,ce+Wt.wg*E,le+Pe,ce,le+Pe),a.bezierCurveTo(ce-Wt.wg*E,le+Pe,ce-E,le+Wt.wg*Pe,ce-E,le),a.bezierCurveTo(ce-E,le-Wt.wg*Pe,ce-Wt.wg*E,le-Pe,ce,le-Pe),a.closePath(),b!==null&&a.ng(b),x!==null&&(re&&z&&wr(a),a.jk(),re&&z&&fa(a)),a.Se();else if(E.type===di.o)for(E=E.figures,le=E.length,Pe=0;Pe<le;Pe++){ce=E.s[Pe],a.beginPath(),a.moveTo(ce.startX,ce.startY),de=ce.segments.s,ve=de.length;for(var Le=null,Fe=0;Fe<ve;Fe++){var Ze=de[Fe];switch(Ze.type){case za:a.moveTo(Ze.endX,Ze.endY);break;case qo:a.lineTo(Ze.endX,Ze.endY);break;case ol:a.bezierCurveTo(Ze.point1X,Ze.point1Y,Ze.point2X,Ze.point2Y,Ze.endX,Ze.endY);break;case Zi:a.quadraticCurveTo(Ze.point1X,Ze.point1Y,Ze.endX,Ze.endY);break;case oo:if(Ze.radiusX===Ze.radiusY){var pt=Math.PI/180;a.arc(Ze.point1X,Ze.point1Y,Ze.radiusX,Ze.startAngle*pt,(Ze.startAngle+Ze.sweepAngle)*pt,0>Ze.sweepAngle,Le!==null?Le.endX:ce.startX,Le!==null?Le.endY:ce.startY)}else if(Le=Fa(Ze,ce),pt=Le.length,pt===0)a.lineTo(Ze.centerX,Ze.centerY);else for(var at=0;at<pt;at++){var Ct=Le[at];at===0&&a.lineTo(Ct[0],Ct[1]),a.bezierCurveTo(Ct[2],Ct[3],Ct[4],Ct[5],Ct[6],Ct[7])}break;case iu:if(at=pt=0,Le!==null&&Le.type===oo){if(Le=Fa(Le,ce),Ct=Le.length,Ct===0){a.lineTo(Ze.endX,Ze.endY);break}Le=Le[Ct-1]||null,Le!==null&&(pt=Le[6],at=Le[7])}else pt=Le!==null?Le.endX:ce.startX,at=Le!==null?Le.endY:ce.startY;if(Le=Fr(Ze,ce,pt,at),pt=Le.length,pt===0){a.lineTo(Ze.endX,Ze.endY);break}for(at=0;at<pt;at++)Ct=Le[at],a.bezierCurveTo(Ct[2],Ct[3],Ct[4],Ct[5],Ct[6],Ct[7]);break;default:bt("Segment not of valid type: "+Ze.type)}Ze.isClosed&&a.closePath(),Le=Ze}de=ce.isFilled,z?ce.isShadowed?(de===!0&&b!=="transparent"&&b!==null&&a.ng(b,ce.isEvenOdd),x!==null&&(de&&re&&wr(a),a.jk(),de&&re&&fa(a))):(wr(a),de&&b!=="transparent"&&b!==null&&a.ng(b,ce.isEvenOdd),x!==null&&a.jk(),fa(a)):(de&&b!==null&&a.ng(b,ce.isEvenOdd),x!==null&&a.jk()),a.Se(Pe)}if(te&&a.fs(),this.pathPattern!==null){if(x=this.pathPattern,x.measure(1/0,1/0),b=x.measuredBounds,x.arrange(0,0,b.width,b.height),z=this.geometry,a.save(),a.beginPath(),b=gn(),z.type===di.j)b.push(z.startX),b.push(z.startY),b.push(z.endX),b.push(z.endY),Qf(a,y,b,x);else if(z.type===di.o)for(z=z.figures.iterator;z.next();){for(re=z.value,b.length=0,b.push(re.startX),b.push(re.startY),te=re.startX,E=re.startY,le=te,Pe=E,ce=re.segments.s,de=ce.length,ve=0;ve<de;ve++){switch(Fe=ce[ve],Fe.type){case za:Qf(a,y,b,x),b.length=0,b.push(Fe.endX),b.push(Fe.endY),te=Fe.endX,E=Fe.endY,le=te,Pe=E;break;case qo:b.push(Fe.endX),b.push(Fe.endY),te=Fe.endX,E=Fe.endY;break;case ol:Wt.Qe(te,E,Fe.point1X,Fe.point1Y,Fe.point2X,Fe.point2Y,Fe.endX,Fe.endY,.5,b),te=Fe.endX,E=Fe.endY;break;case Zi:Wt.ep(te,E,Fe.point1X,Fe.point1Y,Fe.endX,Fe.endY,.5,b),te=Fe.endX,E=Fe.endY;break;case oo:if(Ze=Fa(Fe,re),Le=Ze.length,Le===0){b.push(Fe.centerX),b.push(Fe.centerY),te=Fe.centerX,E=Fe.centerY;break}for(pt=0;pt<Le;pt++)at=Ze[pt],Wt.Qe(te,E,at[2],at[3],at[4],at[5],at[6],at[7],.5,b),te=at[6],E=at[7];break;case iu:if(Ze=Fr(Fe,re,te,E),Le=Ze.length,Le===0){b.push(Fe.endX),b.push(Fe.endY),te=Fe.endX,E=Fe.endY;break}for(pt=0;pt<Le;pt++)at=Ze[pt],Wt.Qe(te,E,at[2],at[3],at[4],at[5],at[6],at[7],.5,b),te=at[6],E=at[7];break;default:bt("Segment not of valid type: "+Fe.type)}Fe.isClosed&&(b.push(le),b.push(Pe),Qf(a,y,b,x))}Qf(a,y,b,x)}else if(z.type===di.u)b.push(z.startX),b.push(z.startY),b.push(z.endX),b.push(z.startY),b.push(z.endX),b.push(z.endY),b.push(z.startX),b.push(z.endY),b.push(z.startX),b.push(z.startY),Qf(a,y,b,x);else if(z.type===di.F){if(E=new rs,E.startX=z.endX,E.startY=(z.startY+z.endY)/2,te=new Eo(oo),te.startAngle=0,te.sweepAngle=360,te.centerX=(z.startX+z.endX)/2,te.centerY=(z.startY+z.endY)/2,te.radiusX=Math.abs(z.startX-z.endX)/2,te.radiusY=Math.abs(z.startY-z.endY)/2,E.add(te),z=Fa(te,E),re=z.length,re===0)b.push(te.centerX),b.push(te.centerY);else for(te=E.startX,E=E.startY,le=0;le<re;le++)Pe=z[le],Wt.Qe(te,E,Pe[2],Pe[3],Pe[4],Pe[5],Pe[6],Pe[7],.5,b),te=Pe[6],E=Pe[7];Qf(a,y,b,x)}kn(b),a.restore(),a.Vc(!1)}}}},Ue.kk=function(a,y,x){return!Rt.prototype.kk.call(this,a,y,x)||this.xc===null&&this.Ui===null||this.ua===null||this.pathPattern!==null||this.geometry.figures.length!==this.svg.getElementsByTagName("path").length?!1:(a.Hl=this.svg,this.hh(a,y),a.Hl=null,!0)},Ue.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:Rt.prototype.nk.call(this,a)},Ue.Dv=function(a,y){if(a.nodeName!=="g")a.setAttributeNS(null,"filter",y);else{a=a.getElementsByTagName("path");for(var x=0;x<a.length;x++)a[x].setAttributeNS(null,"filter",y)}},Ue.ga=function(a,y){if(y===void 0&&(y=new lt),a instanceof _i){a.Mc()&&bt("getDocumentPoint Spot must be a real, specific Spot, not: "+a.toString());var x=this.naturalBounds,b=this.strokeWidth;y.h(a.x*(x.width+b)-b/2+x.x+a.offsetX,a.y*(x.height+b)-b/2+x.y+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},Ue.mi=function(a){a===void 0&&(a=new jn);var y=this.naturalBounds,x=this.oe;y=jn.allocAt(y.x,y.y,y.width,y.height);var b=this.strokeWidth;return y.Bc(b/2,b/2),b=lt.allocAt(y.x,y.y).transform(x),a.h(b.x,b.y,0,0),b.h(y.right,y.y).transform(x),Xr(a,b.x,b.y,0,0),b.h(y.right,y.bottom).transform(x),Xr(a,b.x,b.y,0,0),b.h(y.x,y.bottom).transform(x),Xr(a,b.x,b.y,0,0),jn.free(y),lt.free(b),a},Ue.gh=function(a,y){var x=this.geometry;if(x===null||this.fill===null&&this.stroke===null)return!1;var b=x.bounds,E=this.strokeWidth/2;x.type!==di.j||y||(E+=2);var z=jn.alloc();if(z.assign(b),z.Bc(E+2,E+2),!z.ca(a))return jn.free(z),!1;if(b=E+1e-4,x.type===di.j)return this.stroke===null||(b=(x.endX-x.startX)*(a.x-x.startX)+(x.endY-x.startY)*(a.y-x.startY),0>(x.startX-x.endX)*(a.x-x.endX)+(x.startY-x.endY)*(a.y-x.endY)||0>b)?!1:(jn.free(z),Wt.Yb(x.startX,x.startY,x.endX,x.endY,E,a.x,a.y));if(x.type===di.u){y=x.startX;var te=x.startY,re=x.endX;if(x=x.endY,z.x=Math.min(y,re),z.y=Math.min(te,x),z.width=Math.abs(re-y),z.height=Math.abs(x-te),this.fill===null){if(z.Bc(-b,-b),z.ca(a))return jn.free(z),!1;z.Bc(b,b)}return this.stroke!==null&&z.Bc(E,E),a=z.ca(a),jn.free(z),a}if(x.type===di.F){te=x.startX,E=x.startY,re=x.endX;var le=x.endY;if(x=Math.min(te,re),y=Math.min(E,le),te=Math.abs(re-te)/2,E=Math.abs(le-E)/2,x=a.x-(x+te),y=a.y-(y+E),this.fill===null){if(te-=b,E-=b,0>=te||0>=E||1>=x*x/(te*te)+y*y/(E*E))return jn.free(z),!1;te+=b,E+=b}return this.stroke!==null&&(te+=b,E+=b),jn.free(z),0>=te||0>=E?!1:1>=x*x/(te*te)+y*y/(E*E)}if(x.type===di.o)return jn.free(z),this.fill===null?nu(x,a.x,a.y,E):cl(x,a,E,1<this.strokeWidth,y);bt("Unknown Geometry type: "+x.type)},Ue.Wl=function(a,y,x,b){var E=this.desiredSize,z=this.ig;if(a=Math.max(a,0),y=Math.max(y,0),this.Rd!==null)var te=this.geometry.bounds;else{var re=this.figure,le=Fv[re];if(le===void 0){var ce=Wt.Ze[re];typeof ce=="string"&&(ce=Wt.Ze[ce]),typeof ce=="function"?(le=ce(null,100,100),Fv[re]=le):bt("Unsupported Figure: "+re)}te=le.bounds}re=te.width,le=te.height,ce=te.width;var de=te.height;switch(Ps(this,!0)){case _n:b=x=0;break;case Qn:ce=Math.max(a-z,0),de=Math.max(y-z,0);break;case Ci:ce=Math.max(a-z,0),b=0;break;case ki:x=0,de=Math.max(y-z,0)}isFinite(E.width)&&(ce=E.width),isFinite(E.height)&&(de=E.height);var ve=this.maxSize,Pe=this.minSize;switch(x=Math.max(x-z,Pe.width),b=Math.max(b-z,Pe.height),ce=Math.min(ve.width,ce),de=Math.min(ve.height,de),ce=isFinite(ce)?Math.max(x,ce):Math.max(re,x),de=isFinite(de)?Math.max(b,de):Math.max(le,b),x=Rv(this),x){case _n:break;case Qn:re=ce,le=de;break;case pi:x=Math.min(ce/re,de/le),isFinite(x)||(x=1),re*=x,le*=x;break;default:bt(x+" is not a valid geometryStretch.")}this.Rd!==null?(re===0&&(re=.001),le===0&&(le=.001),x=this.Rd!==null?this.Rd:this.ua,te=x.bounds,b=re/te.width,te=le/te.height,isFinite(b)||(b=1),isFinite(te)||(te=1),this.ua=b===1&&te===1?x:x.copy().scale(b,te)):this.ua!==null&&Wt.$(this.ua.Sk,a-z)&&Wt.$(this.ua.Rk,y-z)||(this.ua=eo.makeGeometry(this,re,le)),te=this.ua.bounds,a===1/0||y===1/0?this.Ge(te.x-z/2,te.y-z/2,a===0&&re===0?0:te.width+z,y===0&&le===0?0:te.height+z):this.Ge(-(z/2),-(z/2),ce+z,de+z),E.w()?(ce=E.width,de=E.height,ce=Math.min(ve.width,ce),de=Math.min(ve.height,de),ce=Math.max(Pe.width,ce),de=Math.max(Pe.height,de),this.dc.h(0,0,ce,de)):this.dc.assign(te)};function Rv(a){var y=a.geometryStretch;return a.Rd!==null?y===ar?Qn:y:y===ar?Fv[a.figure].defaultStretch:y}Ue.eh=function(a,y,x,b){us(this,a,y,x,b)},Ue.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Ue.Sj=function(a,y,x,b,E){var z=this.transform,te=1/(z.m11*z.m22-z.m12*z.m21),re=z.m22*te,le=-z.m12*te,ce=-z.m21*te,de=z.m11*te,ve=te*(z.m21*z.dy-z.m22*z.dx),Pe=te*(z.m12*z.dx-z.m11*z.dy);z=a*re+y*ce+ve,te=a*le+y*de+Pe,re=x*re+b*ce+ve,le=x*le+b*de+Pe,ve=this.ig/2,ce=this.ua,ce===null&&(this.measure(1/0,1/0),ce=this.ua);var Le=ce.bounds;if(de=!1,ce.type===di.j)if(1.5>=this.strokeWidth)de=Wt.Ve(ce.startX,ce.startY,ce.endX,ce.endY,z,te,re,le,E);else{if(ce.startX===ce.endX?(b=ve,de=0):(y=(ce.endY-ce.startY)/(ce.endX-ce.startX),de=ve/Math.sqrt(1+y*y),b=de*y),y=gn(),a=new lt,Wt.Ve(ce.startX+b,ce.startY+de,ce.endX+b,ce.endY+de,z,te,re,le,a)&&y.push(a),a=new lt,Wt.Ve(ce.startX-b,ce.startY-de,ce.endX-b,ce.endY-de,z,te,re,le,a)&&y.push(a),a=new lt,Wt.Ve(ce.startX+b,ce.startY+de,ce.startX-b,ce.startY-de,z,te,re,le,a)&&y.push(a),a=new lt,Wt.Ve(ce.endX+b,ce.endY+de,ce.endX-b,ce.endY-de,z,te,re,le,a)&&y.push(a),re=y.length,re===0)return kn(y),!1;for(de=!0,le=1/0,b=0;b<re;b++)a=y[b],x=(a.x-z)*(a.x-z)+(a.y-te)*(a.y-te),x<le&&(le=x,E.x=a.x,E.y=a.y);kn(y)}else if(ce.type===di.u)de=Wt.Ff(Le.x-ve,Le.y-ve,Le.x+Le.width+ve,Le.y+Le.height+ve,z,te,re,le,E);else if(ce.type===di.F){y=jn.allocAt(Le.x,Le.y,Le.width,Le.height).Bc(ve,ve);e:if(y.width===0)de=Wt.Ve(y.x,y.y,y.x,y.y+y.height,z,te,re,le,E);else if(y.height===0)de=Wt.Ve(y.x,y.y,y.x+y.width,y.y,z,te,re,le,E);else{if(a=y.width/2,ce=y.height/2,b=y.x+a,de=y.y+ce,x=9999,z!==re&&(x=(te-le)/(z-re)),9999>Math.abs(x)){if(le=te-de-x*(z-b),0>a*a*x*x+ce*ce-le*le){E.x=NaN,E.y=NaN,de=!1;break e}ve=Math.sqrt(a*a*x*x+ce*ce-le*le),re=(-(a*a*x*le)+a*ce*ve)/(ce*ce+a*a*x*x)+b,a=(-(a*a*x*le)-a*ce*ve)/(ce*ce+a*a*x*x)+b,ce=x*(re-b)+le+de,le=x*(a-b)+le+de,Math.abs((z-re)*(z-re))+Math.abs((te-ce)*(te-ce))<Math.abs((z-a)*(z-a))+Math.abs((te-le)*(te-le))?(E.x=re,E.y=ce):(E.x=a,E.y=le)}else{if(re=ce*ce,le=z-b,re-=re/(a*a)*le*le,0>re){E.x=NaN,E.y=NaN,de=!1;break e}le=Math.sqrt(re),re=de+le,le=de-le,Math.abs(re-te)<Math.abs(le-te)?(E.x=z,E.y=re):(E.x=z,E.y=le)}de=!0}jn.free(y)}else if(ce.type===di.o){Pe=lt.alloc();var Fe=re-z,Ze=le-te,pt=Fe*Fe+Ze*Ze,at=z,Ct=te;if(0<pt&&Le.contains(at,Ct)&&(Pe.x=at,Pe.y=Ct,this.ca(Pe)))for(Fe!==0&&.5>Math.abs(Fe)?(Ze*=.5/Fe,Fe=.5):Ze!==0&&.5>Math.abs(Ze)&&(Fe*=.5/Ze,Ze=.5),at-=Fe,Ct-=Ze;Le.contains(at,Ct);)at-=Fe,Ct-=Ze;for(E.x=re,E.y=le,Ze=0;Ze<ce.figures.count;Ze++){var Lt=ce.figures.s[Ze],Dt=Lt.isFilled?at:z,Kt=Lt.isFilled?Ct:te,vn=Lt.segments;Le=Lt.startX,Fe=Lt.startY;for(var Pi=Le,ji=Fe,Di=0;Di<vn.count;Di++){var vi=vn.s[Di],ti=vi.type,Br=vi.endX,Ar=vi.endY,Wo=!1;switch(ti){case za:Pi=Br,ji=Ar;break;case qo:Wo=$m(Le,Fe,Br,Ar,Dt,Kt,re,le,Pe);break;case ol:Wo=Wt.Eo(Le,Fe,vi.point1X,vi.point1Y,vi.point2X,vi.point2Y,Br,Ar,Dt,Kt,re,le,.6,Pe);break;case Zi:Wo=Wt.Eo(Le,Fe,Le+2/3*(vi.point1X-Le),Fe+2/3*(vi.point1Y-Fe),Br+2/3*(vi.point1X-Br),Ar+2/3*(vi.point1Y-Ar),Br,Ar,Dt,Kt,re,le,.6,Pe);break;case oo:case iu:ti=vi.type===oo?Fa(vi,Lt):Fr(vi,Lt,Le,Fe);var wa=ti.length;if(wa===0){Wo=$m(Le,Fe,vi.type===oo?vi.centerX:vi.endX,vi.type===oo?vi.centerY:vi.endY,Dt,Kt,re,le,Pe);break}for(Ar=null,Br=0;Br<wa;Br++){if(Ar=ti[Br],Br===0&&$m(Le,Fe,Ar[0],Ar[1],Dt,Kt,re,le,Pe)){var vl=Ym(Dt,Kt,Pe,pt,E);vl<pt&&(pt=vl,de=!0)}Wt.Eo(Ar[0],Ar[1],Ar[2],Ar[3],Ar[4],Ar[5],Ar[6],Ar[7],Dt,Kt,re,le,.6,Pe)&&(vl=Ym(Dt,Kt,Pe,pt,E),vl<pt&&(pt=vl,de=!0))}Br=Ar[6],Ar=Ar[7];break;default:bt("Unknown Segment type: "+ti)}Le=Br,Fe=Ar,Wo&&(Wo=Ym(Dt,Kt,Pe,pt,E),Wo<pt&&(pt=Wo,de=!0)),vi.isClosed&&(Br=Pi,Ar=ji,$m(Le,Fe,Br,Ar,Dt,Kt,re,le,Pe)&&(vi=Ym(Dt,Kt,Pe,pt,E),vi<pt&&(pt=vi,de=!0)))}}z=x-a,te=b-y,re=Math.sqrt(z*z+te*te),re!==0&&(z/=re,te/=re),E.x-=z*ve,E.y-=te*ve,lt.free(Pe)}else bt("Unknown Geometry type: "+ce.type);return de?(this.transform.Ga(E),!0):!1};function Ym(a,y,x,b,E){return a=x.x-a,y=x.y-y,y=a*a+y*y,y<b?(E.x=x.x,E.y=x.y,y):b}function $m(a,y,x,b,E,z,te,re,le){if(Wt.$(a,x)&&Wt.$(y,b)||Wt.$(E,te)&&Wt.$(z,re))return!1;var ce=!1,de=(E-te)*(y-b)-(z-re)*(a-x);return de===0?!1:(le.x=((E*re-z*te)*(a-x)-(E-te)*(a*b-y*x))/de,le.y=((E*re-z*te)*(y-b)-(z-re)*(a*b-y*x))/de,(a>x?a-x:x-a)<(y>b?y-b:b-y)?(a=y<b?y:b,y=y<b?b:y,(le.y>a||Wt.$(le.y,a))&&(le.y<y||Wt.$(le.y,y))&&(ce=!0)):(y=a<x?a:x,a=a<x?x:a,(le.x>y||Wt.$(le.x,y))&&(le.x<a||Wt.$(le.x,a))&&(ce=!0)),ce)}Ue.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.ua;x===null&&(this.measure(1/0,1/0),x=this.ua),x=x.bounds;var b=this.strokeWidth/2,E=!1,z=lt.alloc();return z.h(x.x-b,x.y-b),a.ca(y.Ga(z))&&(z.h(x.x-b,x.bottom+b),a.ca(y.Ga(z))&&(z.h(x.right+b,x.bottom+b),a.ca(y.Ga(z))&&(z.h(x.right+b,x.y-b),a.ca(y.Ga(z))&&(E=!0)))),lt.free(z),E},Ue.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=fr.alloc();x.set(y),x.Vj();var b=a.left,E=a.right,z=a.top;a=a.bottom;var te=lt.alloc();if(te.h(b,z),x.Ga(te),this.gh(te,!0)||(te.h(E,z),x.Ga(te),this.gh(te,!0))||(te.h(b,a),x.Ga(te),this.gh(te,!0))||(te.h(E,a),x.Ga(te),this.gh(te,!0)))return lt.free(te),!0;var re=lt.alloc(),le=lt.alloc();return x.set(y),x.bv(this.transform),x.Vj(),re.x=E,re.y=z,re.transform(x),te.x=b,te.y=z,te.transform(x),y=!1,Xg(this,te,re,le)?y=!0:(te.x=E,te.y=a,te.transform(x),Xg(this,te,re,le)?y=!0:(re.x=b,re.y=a,re.transform(x),Xg(this,te,re,le)?y=!0:(te.x=b,te.y=z,te.transform(x),Xg(this,te,re,le)&&(y=!0)))),lt.free(te),fr.free(x),lt.free(re),lt.free(le),y};function Xg(a,y,x,b){if(!a.rs(y,x,b))return!1;a=y.x,y=y.y;var E=x.x,z=x.y;return x=b.x,b=b.y,a===E?(y<z?(a=y,y=z):a=z,b>=a&&b<=y):(a<E?(b=a,a=E):b=E,x>=b&&x<=a)}Ue.tx=function(a,y,x){function b(pt,at){for(var Ct=pt.length,Lt=0;Lt<Ct;Lt+=2)if(at.zd(pt[Lt],pt[Lt+1])>E)return!0;return!1}if(x&&this.fill!==null&&this.gh(a,!0))return!0;var E=a.Bf(y),z=E;if(1.5<this.strokeWidth&&(E=this.strokeWidth/2+Math.sqrt(E),E*=E),y=this.ua,y===null&&(this.measure(1/0,1/0),y=this.ua,y===null))return!1;if(!x){var te=y.bounds,re=te.x,le=te.y,ce=te.x+te.width;if(te=te.y+te.height,gr(a.x,a.y,re,le)<=E&&gr(a.x,a.y,ce,le)<=E&&gr(a.x,a.y,re,te)<=E&&gr(a.x,a.y,ce,te)<=E)return!0}if(re=y.startX,le=y.startY,ce=y.endX,te=y.endY,y.type===di.j){if(x=(re-ce)*(a.x-ce)+(le-te)*(a.y-te),ra(a.x,a.y,re,le,ce,te)<=(0<=(ce-re)*(a.x-re)+(te-le)*(a.y-le)&&0<=x?E:z))return!0}else{if(y.type===di.u)return y=!1,x&&(y=ra(a.x,a.y,re,le,re,te)<=E||ra(a.x,a.y,re,le,ce,le)<=E||ra(a.x,a.y,ce,le,ce,te)<=E||ra(a.x,a.y,re,te,ce,te)<=E),y;if(y.type===di.F){y=a.x-(re+ce)/2,z=a.y-(le+te)/2;var de=Math.abs(ce-re)/2,ve=Math.abs(te-le)/2;if(de===0||ve===0)return ra(a.x,a.y,re,le,ce,te)<=E;if(x){if(a=Wt.$y(de,ve,y,z),a*a<=E)return!0}else return!(gr(y,z,-de,0)>=E||gr(y,z,0,-ve)>=E||gr(y,z,0,ve)>=E||gr(y,z,de,0)>=E)}else if(y.type===di.o){if(ce=y.bounds,z=ce.x,re=ce.y,le=ce.x+ce.width,ce=ce.y+ce.height,a.x>le&&a.x<z&&a.y>ce&&a.y<re&&ra(a.x,a.y,z,re,z,ce)>E&&ra(a.x,a.y,z,re,le,re)>E&&ra(a.x,a.y,le,ce,z,ce)>E&&ra(a.x,a.y,le,ce,le,re)>E)return!1;if(z=Math.sqrt(E),x){if(this.fill===null?nu(y,a.x,a.y,z):cl(y,a,z,!0,!1))return!0}else{for(x=y.figures,y=0;y<x.count;y++){if(z=x.s[y],te=z.startX,de=z.startY,a.zd(te,de)>E)return!1;for(re=z.segments.s,le=re.length,ce=0;ce<le;ce++)switch(ve=re[ce],ve.type){case za:case qo:if(te=ve.endX,de=ve.endY,a.zd(te,de)>E)return!1;break;case ol:var Pe=gn();if(Wt.Qe(te,de,ve.point1X,ve.point1Y,ve.point2X,ve.point2Y,ve.endX,ve.endY,.8,Pe),te=b(Pe,a),kn(Pe),te||(te=ve.endX,de=ve.endY,a.zd(te,de)>E))return!1;break;case Zi:if(Pe=gn(),Wt.ep(te,de,ve.point1X,ve.point1Y,ve.endX,ve.endY,.8,Pe),te=b(Pe,a),kn(Pe),te||(te=ve.endX,de=ve.endY,a.zd(te,de)>E))return!1;break;case oo:case iu:Pe=ve.type===oo?Fa(ve,z):Fr(ve,z,te,de);var Le=Pe.length;if(Le===0){if(te=ve.type===oo?ve.centerX:ve.endX,de=ve.type===oo?ve.centerY:ve.endY,a.zd(te,de)>E)return!1;break}ve=null;for(var Fe=gn(),Ze=0;Ze<Le;Ze++)if(ve=Pe[Ze],Fe.length=0,Wt.Qe(ve[0],ve[1],ve[2],ve[3],ve[4],ve[5],ve[6],ve[7],.8,Fe),b(Fe,a))return kn(Fe),!1;kn(Fe),ve!==null&&(te=ve[6],de=ve[7]);break;default:bt("Unknown Segment type: "+ve.type)}}return!0}}}return!1},Ue.qc=function(){this.ua=null},Ue.kq=function(){return this.ig};function xS(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=Kp,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=Ho):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new _i(1-Ho.x,Ho.y)))}eo.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var b=$d[a.toArrow];else a.fromArrow!=="None"?b=$d[a.fromArrow]:(b=Wt.Ze[a.figure],typeof b=="string"&&(b=Wt.Ze[b]),b===void 0&&bt("Unknown Shape.figure: "+a.figure),b=b(a,y,x),b.Sk=y,b.Rk=x);if(b===null){var E=Wt.Ze.Rectangle;typeof E=="function"&&(b=E(a,y,x))}return b};function bS(a){var y=$d[a];if(y===void 0){var x=a.toLowerCase();if(x==="none")return"None";if(y=$d[x],y===void 0){var b=null,E;for(E in Wt.um)if(E.toLowerCase()===x){b=E;break}if(b!==null)return a=di.parse(Wt.um[b],!1),$d[b]=a,x!==b&&($d[x]=b),b}}return typeof y=="string"?y:y instanceof di?a:null}Nt.Object.defineProperties(eo.prototype,{geometry:{get:function(){return this.ua!==null?this.ua:this.Rd},set:function(a){var y=this.ua,x=this.Rd;if(y!==a){a!==null?this.Rd=this.ua=a.freeze():this.Rd=this.ua=null;var b=this.part;b!==null&&(b.ag=NaN),this.v(),this.g("geometry",y||x,a),fs(this)&&(a=this.part,a!==null&&$o(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=di.parse(a);var y=a.normalize();this.geometry=a,this.position=a=lt.allocAt(-y.x,-y.y),lt.free(a)}},isGeometryPositioned:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.v(),this.g("isGeometryPositioned",y,a))}},fill:{get:function(){return this.Ui},set:function(a){var y=this.Ui;y!==a&&(a!==null&&Sf(a,"Shape.fill"),a instanceof ko&&a.freeze(),this.Ui=a,this.N(),this.g("fill",y,a))}},stroke:{get:function(){return this.xc},set:function(a){var y=this.xc;y!==a&&(a!==null&&Sf(a,"Shape.stroke"),a instanceof ko&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},strokeWidth:{get:function(){return this.ig},set:function(a){var y=this.ig;if(y!==a)if(0<=a){this.ig=a,this.v();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeWidth",y,a)}else Ln(a,"value >= 0",eo,"strokeWidth:value")}},strokeCap:{get:function(){return this.Na!==null?this.Na.Hr:"butt"},set:function(a){var y=this.strokeCap;y!==a&&(typeof a!="string"||a!=="butt"&&a!=="round"&&a!=="square"?Ln(a,'"butt", "round", or "square"',eo,"strokeCap"):($g(this),this.Na.Hr=a,this.N(),this.g("strokeCap",y,a)))}},strokeJoin:{get:function(){return this.Na!==null?this.Na.Ir:"miter"},set:function(a){var y=this.strokeJoin;y!==a&&(typeof a!="string"||a!=="miter"&&a!=="bevel"&&a!=="round"?Ln(a,'"miter", "bevel", or "round"',eo,"strokeJoin"):($g(this),this.Na.Ir=a,this.N(),this.g("strokeJoin",y,a)))}},strokeMiterLimit:{get:function(){return this.Na!==null?this.Na.Jr:10},set:function(a){var y=this.strokeMiterLimit;if(y!==a&&1<=a){$g(this),this.Na.Jr=a,this.N();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeMiterLimit",y,a)}}},strokeDashArray:{get:function(){return this.Yg},set:function(a){var y=this.Yg;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var z=a[E];0<=z&&isFinite(z)||bt("strokeDashArray:value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.Yg=a,this.N(),this.g("strokeDashArray",y,a)}}},strokeDashOffset:{get:function(){return this.Na!==null?this.Na.uj:0},set:function(a){var y=this.strokeDashOffset;y!==a&&0<=a&&($g(this),this.Na.uj=a,this.N(),this.g("strokeDashOffset",y,a))}},figure:{get:function(){return this.an},set:function(a){var y=this.an;if(y!==a){var x=Wt.Ze[a];typeof x=="function"?x=a:(x=Wt.Ze[a.toLowerCase()])||bt("Unknown Shape.figure: "+a),y!==x&&(a=this.part,a!==null&&(a.ag=NaN),this.an=x,this.Rd=null,this.qc(),this.v(),this.g("figure",y,x))}}},toArrow:{get:function(){return this.Ua!==null?this.Ua.V:"None"},set:function(a){var y=this.toArrow;if(a===!0?a="Standard":a===!1&&(a=""),y!==a){var x=bS(a);x===null?bt("Unknown Shape.toArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new Ic),this.Ua.V=x,this.Rd=null,this.qc(),this.v(),xS(this),this.g("toArrow",y,x))}}},fromArrow:{get:function(){return this.Ua!==null?this.Ua.j:"None"},set:function(a){var y=this.fromArrow;if(a===!0?a="Standard":a===!1&&(a=""),y!==a){var x=bS(a);x===null?bt("Unknown Shape.fromArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new Ic),this.Ua.j=x,this.Rd=null,this.qc(),this.v(),xS(this),this.g("fromArrow",y,x))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:Vr},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),$g(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:Vr},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),$g(this),this.Na.gg=a,this.v(),this.g("spot2",y,a))}},parameter1:{get:function(){return this.Un},set:function(a){var y=this.Un;y!==a&&(this.Un=a,this.qc(),this.v(),this.g("parameter1",y,a))}},parameter2:{get:function(){return this.Vn},set:function(a){var y=this.Vn;y!==a&&(this.Vn=a,this.qc(),this.v(),this.g("parameter2",y,a))}},naturalBounds:{get:function(){return this.dc}},pathPattern:{get:function(){return this.Na!==null?this.Na.br:null},set:function(a){var y=this.pathPattern;y!==a&&($g(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:ar},set:function(a){var y=this.geometryStretch;y!==a&&($g(this),this.Na.jq=a,this.v(),this.g("geometryStretch",y,a))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(a){var y=this.interval;if(a=Math.round(a),y!==a&&a!==0&&isFinite(a)){this.fa===null&&(this.fa=new Xd),this.fa.Tk=a;var x=this.diagram;x!==null&&this.panel===x.grid&&ad(x),this.v(),x=this.panel,x!==null&&(x.graduatedIntervals=null),this.g("interval",y,a)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(a){var y=this.graduatedStart;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new Xd),this.fa.u=a,this.v(),this.g("graduatedStart",y,a))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(a){var y=this.graduatedEnd;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new Xd),this.fa.j=a,this.v(),this.g("graduatedEnd",y,a))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(a){var y=this.graduatedSkip;y!==a&&(this.fa===null&&(this.fa=new Xd),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),eo.prototype.intersectsRect=eo.prototype.Yc,eo.prototype.containedInRect=eo.prototype.fh,eo.prototype.getNearestIntersectionPoint=eo.prototype.rs,eo.prototype.getDocumentBounds=eo.prototype.mi,eo.prototype.getDocumentPoint=eo.prototype.ga;var $d=new Ti,Fv=new Ti;eo.className="Shape",eo.getFigureGenerators=function(){var a=new Ii,y;for(y in Wt.Ze)y!==y.toLowerCase()&&a.add(y,Wt.Ze[y]);return a.freeze(),a},eo.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),b=Wt.Ze;b[a]=y,b[x]=a},eo.getArrowheadGeometries=function(){var a=new Ii;for(b in Wt.um)if($d[b]===void 0){var y=di.parse(Wt.um[b],!1);$d[b]=y,y=b.toLowerCase(),y!==b&&($d[y]=b)}for(var x in $d)if(x!==x.toLowerCase()){var b=$d[x];b instanceof di&&a.add(x,b)}return a.freeze(),a},eo.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=di.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||bt("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var b=$d;b[a]=x,b[y]=a};function Bv(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=ar,this.gg=this.fg=Vr}Bv.prototype.copy=function(){var a=new Bv;return a.Hr=this.Hr,a.Ir=this.Ir,a.Jr=this.Jr,a.uj=this.uj,a.br=this.br,a.jq=this.jq,a.fg=this.fg.J(),a.gg=this.gg.J(),a};function Pa(a,y){return Rt.call(this),e0||(_u=ls?new Oa(null).context:null,e0=!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 a=="string"?this.text=a:a&&Object.assign(this,a),y&&Object.assign(this,y),this}qt(Pa,Rt),Pa.prototype.cloneProtected=function(a){Rt.prototype.cloneProtected.call(this,a),a.ec=this.ec,a.xc=this.xc,a.Ae=this.Ae,a.Gc=this.Gc,a.Cb=this.Cb,a.Lq=this.Lq,a.Gm=this.Gm,this.fa!==null&&(a.fa=this.fa.copy()),this.da!==null&&(a.da=this.da.nc?this.da:this.da.copy()),a.Ih=this.Ih,a.df=this.df,a.Le=this.Le,a.Qc=this.Qc,a.Qb=this.Qb,a.ze=this.ze};function Rd(a){a.da===null?a.da=new Wv:a.da.nc&&(a.da=a.da.copy())}Ue=Pa.prototype,Ue.th=function(){Rt.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function wS(a,y){a.l=y.l|6144,a.pb=y.opacity,a.Ma=y.background,a.areaBackground=y.areaBackground,a.jd=y.desiredSize.J(),a.minSize=y.minSize.J(),a.maxSize=y.maxSize.J(),y.Lb!==null?a.Lb=y.Lb.copy():a.Lb=null,a.Ca=y.scale,a.Kb=y.angle,a.stretch=y.stretch,a.Kg=y.margin.J(),a.Jb=y.alignment.J(),a.sk=y.alignmentFocus.J(),a.segmentFraction=y.segmentFraction,a.segmentOffset=y.segmentOffset.J(),a.segmentOrientation=y.segmentOrientation,y.tb!==null&&(a.tb=y.tb.copy()),a.shadowVisible=y.shadowVisible,a.ec=y.ec,a.xc=y.xc,a.Ae=y.Ae,a.fa!==null&&(a.fa=y.fa.copy()),y.da!==null&&(a.da=y.da.nc?y.da:y.da.copy()),a.Ih=y.Ih}Ue.qb=function(a){a.classType===Pa?this.wrap=a:Rt.prototype.qb.call(this,a)},Ue.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},Ue.v=function(){Rt.prototype.v.call(this)},Ue.hh=function(a,y){if(this.xc!==null&&this.ec.length!==0&&this.Ae!==null){var x=this.naturalBounds,b=this.actualBounds,E=x.width,z=x.height,te=Up(this),re=a.textAlign=this.textAlign,le=y.tn;re==="start"?re=le?"right":"left":re==="end"&&(re=le?"left":"right"),le=this.isUnderline;var ce=this.isStrikethrough;Ca(this,a,this.xc,!0,!1,x,b),(le||ce)&&Ca(this,a,this.xc,!1,!1,x,b),b=0,x=!1;var de=this.oe,ve=de.dx-(te*de.m21+de.dx);de=de.dy-(te*de.m22+de.dy);var Pe=y.scale;switch(8>(ve*ve+de*de)*Pe*Pe&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof Uu&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,ve=this.spacingBelow,this.flip){case $r:a.translate(E,0),a.scale(-1,1);break;case Er:a.translate(0,z),a.scale(1,-1);break;case Hn:a.translate(E,z),a.scale(-1,-1)}if(a.yc(),de=this.Gc,Pe=(y+te+ve)*de,z>Pe&&(b=this.verticalAlignment,b=b.y*z-b.y*Pe+b.offsetY),de===1&&this.ze!==null)ve=this.Cb,ve>E&&(ve=E),this.Oj(this.ze,a,0,b+y,E,te,ve,x,re,le,ce);else if(this.Qc!==null&&this.Qb!==null)for(Pe=0;Pe<de;Pe++){var Le=this.Qc[Pe];Le>E&&(Le=E),b+=y,this.Oj(this.Qb[Pe],a,0,b,E,te,Le,x,re,le,ce),b+=te+ve}switch(this.flip){case $r:a.scale(-1,1),a.translate(-E,0);break;case Er:a.scale(1,-1),a.translate(0,-z);break;case Hn:a.scale(-1,-1),a.translate(-E,-z)}}},Ue.Oj=function(a,y,x,b,E,z,te,re,le,ce,de){var ve=0;if(re)le==="left"?ve=0:le==="right"?ve=E-te:le==="center"&&(ve=(E-te)/2),y.fillRect(x+ve,b+.25*z,te,1);else{if(le==="left"?ve=0:le==="right"?ve=E:le==="center"&&(ve=E/2),E=Xm!==null?Xm(this,z):.75*z,y.fillText(a,x+ve,b+E),a=z/20|0,a===0&&(a=1),le==="right"?ve-=te:le==="center"&&(ve-=te/2),ce){re=Qm!==null?Qm(this,z):.8*z,le=x+ve,ce=b+re,E=x+ve+te,re=b+re;var Pe=a;y.beginPath(),y.lineWidth=Pe,y.moveTo(le,ce),y.lineTo(E,re),y.stroke(),y.Se(),y instanceof Uu&&y.ad.classList.add("gojs-td")}de&&(de=b+z-z/2.2|0,a%2!==0&&(de+=.5),b=x+ve,z=de,x=x+ve+te,te=de,ve=a,y.beginPath(),y.lineWidth=ve,y.moveTo(b,z),y.lineTo(x,te),y.stroke(),y.Se(),y instanceof Uu&&y.ad.classList.add("gojs-td"))}},Ue.kk=function(a,y,x){if(!Rt.prototype.kk.call(this,a,y,x))return!1;if(Ca(this,a,this.xc,!0,!1,this.naturalBounds,this.actualBounds),x){if(this.svg.getElementsByTagName("text").length===0)return!0;for(y=this.svg.getElementsByClassName("gojs-td"),x=0;x<y.length;x++)Ip(a,y[x],!1)}else y=this.svg,y.innerHTML=this.text,Ip(a,y,!0);return!0},Ue.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:Rt.prototype.nk.call(this,a)},Ue.Dv=function(a,y){if(a.nodeName!=="g")a.setAttributeNS(null,"filter",y);else{a=a.getElementsByTagName("text");for(var x=0;x<a.length;x++)a[x].setAttributeNS(null,"filter",y)}},Ue.Wl=function(a,y,x,b){var E=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;_u!==null&&LS!==z&&(LS=_u.font=z),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var te;if(isNaN(this.desiredSize.width)){if(z=this.ec.replace(/\r\n/g,`
`).replace(/\r/g,`
`),z.length===0)z=8;else if(this.isMultiline){for(var re=te=0,le=!1;!le;){var ce=z.indexOf(`
`,re);ce===-1&&(ce=z.length,le=!0),re=z.substr(re,ce-re),this.formatting===_p&&(re=re.trim()),te=Math.max(te,ud(re)),re=ce+1}z=te}else te=z.indexOf(`
`,0),0<=te&&(z=z.substr(0,te)),z=ud(z);z=Math.min(z,a/this.scale)}else z=this.desiredSize.width;if(this.panel!==null&&(z=Math.min(z,this.panel.maxSize.width)),te=CS(this,z),isNaN(this.desiredSize.height)?te=Math.min(te,y/this.scale):te=this.desiredSize.height,le=te,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===Jm&&(y=this.Ae,y=this.overflow===Jm?ES(y):0,ce=this.spacingAbove+this.spacingBelow,ce=Math.max(0,Up(this)+ce),le=Math.min(this.maxLines-1,Math.max(Math.floor(le/ce+.01)-1,0)),!(le+1>=this.Qb.length))){for(this.l|=16777216,ce=this.Qb[le],y=Math.max(1,a-y);ud(ce)>y&&1<ce.length;)ce=ce.substr(0,ce.length-1);ce+=Gp,y=ud(ce),this.Qb[le]=ce,this.Qb=this.Qb.slice(0,le+1),this.Qc[le]=y,this.Qc=this.Qc.slice(0,le+1),this.Le=this.Qb.length,this.Cb=Math.max(this.Cb,y),this.Gc=this.Le,this.Gc===1&&(this.ze=this.Qb[0])}(this.wrap===PS||isNaN(this.desiredSize.width))&&(z=isNaN(a)?this.Cb:Math.min(a,this.Cb)),z=Math.max(x,z),te=Math.max(b,te),gs(this.dc,z,te),this.Ge(0,0,z,te),this.svg!==null&&E!==this.Gc&&(this.Uc=!0)},Ue.eh=function(a,y,x,b){us(this,a,y,x,b)};function zp(a,y,x){a.ze===null?(a.ze=y,a.Cb=x):((a.Qb===null||a.Qc===null)&&(a.Qb=[],a.Qc=[],a.Qb.push(a.ze),a.Qc.push(a.Cb)),a.Qb.push(y),a.Qc.push(x),a.Qb.length>a.maxLines&&(a.l|=16777216))}function jv(a,y,x,b){var E=a.formatting===_p;E&&(y=y.trim());var z=0,te=a.Ae,re=a.spacingAbove+a.spacingBelow;re=Math.max(0,Up(a)+re);var le=a.overflow===Jm?ES(te):0;if(a.Gc>=a.maxLines)b!==null&&b.h(0,re);else if(te=y,a.wrap===zv){a.Le=1;var ce=ud(y);if(le===0||ce<=x)a.Cb=Math.max(a.Cb,ce),zp(a,y,a.Cb),b!==null&&b.h(ce,re);else{for(z=Jf(a,te),te=te.substr(z.length),y=Jf(a,te),ce=ud(z+y);0<y.length&&ce<=x;)z+=y,te=te.substr(y.length),y=Jf(a,te),ce=z+y,E&&(ce=ce.trim()),ce=ud(ce);for(E&&(y=y.trim()),z+=y,x=Math.max(1,x-le);ud(z)>x&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=Gp;var de=ud(z);a.Cb=de,zp(a,z,de),b!==null&&b.h(de,re)}}else{for(le=0,te.length===0&&(le=1,zp(a,te,0));0<te.length;){for(y=Jf(a,te),te=te.substr(y.length);ud(y)>x;){var ve=1;for(ce=ud(y.substr(0,ve)),de=0;ce<=x;)ve++,de=ce,ce=ud(y.substr(0,ve));if(ve===1){var Pe=ce;z=Math.max(z,ce)}else Pe=de,z=Math.max(z,de);if(ve--,1>ve&&(ve=1),zp(a,y.substr(0,ve),Pe),le++,y=y.substr(ve),a.Gc+le>a.maxLines)break}for(de=Jf(a,te),ce=ud(y+de);0<de.length&&ce<=x;)y+=de,te=te.substr(de.length),de=Jf(a,te),ce=y+de,E&&(ce=ce.trim()),ce=ud(ce);if(E&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),de.length===0?(ve=ce,z=Math.max(z,ce)):(ve=de=ud(y),z=Math.max(z,de)),zp(a,y,ve),le++,a.Gc+le>a.maxLines))break}a.Le=Math.min(a.maxLines,le),a.Cb=Math.max(a.Cb,z),b!==null&&b.h(a.Cb,re*a.Le)}}function Jf(a,y){if(a.wrap===AS)return y.substr(0,1);for(var x=y.length,b=0,E=M1;b<x&&!E.test(y.charAt(b));)b++;for(a.formatting===NS&&(x=Math.min(x,b+1));b<x&&E.test(y.charAt(b));)b++;return b>=y.length?y:y.substr(0,b)}function ud(a){return _u===null?8*a.length:_u.measureText(a).width}function Up(a){if(a.df!==null)return a.df;var y=a.Ae;if(_u===null){var x=16;return a.df=x}return Gv[y]!==void 0&&5e3>MS?x=Gv[y]:(x=1.3*_u.measureText("M").width,Gv[y]=x,MS++),a.df=x}function ES(a){if(_u===null)return 6;if(qm[a]!==void 0&&5e3>Hv)var y=qm[a];else y=_u.measureText(Gp).width,qm[a]=y,Hv++;return y}function CS(a,y){var x=a.ec.replace(/\r\n/g,`
`).replace(/\r/g,`
`),b=a.spacingAbove+a.spacingBelow;if(b=Math.max(0,Up(a)+b),x.length===0)return a.Cb=0,a.Gc=1,b;if(!a.isMultiline){var E=x.indexOf(`
`,0);0<=E&&(x=x.substr(0,E))}E=0;for(var z=a.Gc=0,te,re=!1;!re;){if(te=x.indexOf(`
`,z),te===-1&&(te=x.length,re=!0),z<=te){if(z=x.substr(z,te-z),a.wrap!==zv){a.Le=0;var le=fi.alloc();jv(a,z,y,le),E+=le.height,fi.free(le),a.Gc+=a.Le}else jv(a,z,y,null),E+=b,a.Gc++;a.Gc===a.maxLines&&(re=!0)}z=te+1}return a.Lq=E}Nt.Object.defineProperties(Pa.prototype,{font:{get:function(){return this.Ae},set:function(a){var y=this.Ae;y!==a&&(this.Ae=a,this.df=null,this.v(),this.g("font",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;a!=null?a=a.toString():a="",y!==a&&(this.ec=a,this.v(),this.g("text",y,a),this.Uc=!0)}},textAlign:{get:function(){return this.da!==null?this.da.Or:"start"},set:function(a){var y=this.textAlign;y===a||a!=="start"&&a!=="end"&&a!=="left"&&a!=="right"&&a!=="center"||(Rd(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:_n},set:function(a){var y=this.flip;y!==a&&(Rd(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:rr},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),Rd(this),this.da.Yr=a,el(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=fi.alloc();jv(this,this.ec,999999,a);var y=a.width;fi.free(a),a=CS(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),gs(this.dc,y,a)}return this.dc}},isMultiline:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this.v(),this.g("isMultiline",y,a))}},isUnderline:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;y!==a&&(this.l^=4194304,this.Uc=!0,this.N(),this.g("isUnderline",y,a))}},isStrikethrough:{get:function(){return(this.l&8388608)!==0},set:function(a){var y=(this.l&8388608)!==0;y!==a&&(this.l^=8388608,this.Uc=!0,this.N(),this.g("isStrikethrough",y,a))}},wrap:{get:function(){return this.da!==null?this.da.$r:Uv},set:function(a){var y=this.wrap;y!==a&&(Rd(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:_v},set:function(a){var y=this.overflow;y!==a&&(Rd(this),this.da.$q=a,this.v(),this.g("overflow",y,a))}},isOverflowed:{get:function(){return(this.l&16777216)!==0}},stroke:{get:function(){return this.xc},set:function(a){var y=this.xc;y!==a&&(a!==null&&Sf(a,"TextBlock.stroke"),a instanceof ko&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return Up(this)}},editable:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("editable",y,a))}},textEditor:{get:function(){return this.da!==null?this.da.Qr:null},set:function(a){var y=this.textEditor;y!==a&&(Rd(this),this.da.Qr=a,this.g("textEditor",y,a))}},errorFunction:{get:function(){return this.da!==null?this.da.Hd:null},set:function(a){var y=this.errorFunction;y!==a&&(Rd(this),this.da.Hd=a,this.g("errorFunction",y,a))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(a){var y=this.interval;if(a=Math.round(a),y!==a&&a!==0&&isFinite(a)){this.fa===null&&(this.fa=new Xd),this.fa.Tk=a,this.v();var x=this.panel;x!==null&&(x.graduatedIntervals=null),this.g("interval",y,a)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(a){var y=this.graduatedStart;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new Xd),this.fa.u=a,this.v(),this.g("graduatedStart",y,a))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(a){var y=this.graduatedEnd;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new Xd),this.fa.j=a,this.v(),this.g("graduatedEnd",y,a))}},graduatedFunction:{get:function(){return this.fa!==null?this.fa.F:null},set:function(a){var y=this.graduatedFunction;y!==a&&(this.fa===null&&(this.fa=new Xd),this.fa.F=a,this.v(),this.g("graduatedFunction",y,a))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(a){var y=this.graduatedSkip;y!==a&&(this.fa===null&&(this.fa=new Xd),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}},textValidation:{get:function(){return this.da!==null?this.da.vj:null},set:function(a){var y=this.textValidation;y!==a&&(Rd(this),this.da.vj=a,this.g("textValidation",y,a))}},textEdited:{get:function(){return this.da!==null?this.da.Pr:null},set:function(a){var y=this.textEdited;y!==a&&(Rd(this),this.da.Pr=a,this.g("textEdited",y,a))}},spacingAbove:{get:function(){return this.da!==null?this.da.Dr:0},set:function(a){var y=this.spacingAbove;y!==a&&(Rd(this),this.da.Dr=a,this.v(),this.g("spacingAbove",y,a))}},spacingBelow:{get:function(){return this.da!==null?this.da.Er:0},set:function(a){var y=this.spacingBelow;y!==a&&(Rd(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:_p},set:function(a){var y=this.formatting;y!==a&&(Rd(this),this.da.gq=a,this.v(),this.g("formatting",y,a))}},maxLines:{get:function(){return this.da!==null?this.da.Jq:1/0},set:function(a){var y=this.maxLines;y!==a&&(a=Math.floor(a),0>=a&&Ln(a,"> 0",Pa,"maxLines"),Rd(this),this.da.Jq=a,this.v(),this.g("maxLines",y,a))}},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(a){var y=this.Gm;y!==a&&(this.Gm=a,this.g("choices",y,a))}}});var Xm=null,Qm=null,zv=new tn(Pa,"None",0),PS=new tn(Pa,"WrapFit",1),Uv=new tn(Pa,"WrapDesiredSize",2),AS=new tn(Pa,"WrapBreakAll",3),_v=new tn(Pa,"OverflowClip",0),Jm=new tn(Pa,"OverflowEllipsis",1),_p=new tn(Pa,"FormatTrim",0),NS=new tn(Pa,"FormatNone",0),M1=/[ \u200b\u00ad]/,Gv=new Ti,MS=0,qm=new Ti,Hv=0,Gp="...",LS="",_u=null,e0=!1;Pa.className="TextBlock";function Wv(){this.nc=!1,this.Hd=null,this.Xf=_n,this.gq=_p,this.Jq=1/0,this.$q=_v,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=rr,this.$r=Uv}Wv.prototype.copy=function(){var a=new Wv;return a.Hd=this.Hd,a.Xf=this.Xf,a.gq=this.gq,a.Jq=this.Jq,a.$q=this.$q,a.Dr=this.Dr,a.Er=this.Er,a.Or=this.Or,a.Pr=this.Pr,a.Qr=this.Qr,a.vj=this.vj,a.Yr=this.Yr,a.$r=this.$r,a},Pa.getEllipsis=function(){return Gp},Pa.setEllipsis=function(a){Gp=a,qm=new Ti,Hv=0},Pa.getBaseline=function(){return Xm},Pa.setBaseline=function(a){Xm=a},Pa.getUnderline=function(){return Qm},Pa.setUnderline=function(a){Qm=a},Pa.isValidFont=function(a){if(e0||(_u=ls?new Oa(null).context:null,e0=!0),_u===null)return!0;var y=_u.font;if(a===y||a==="10px sans-serif")return!0;_u.font="10px sans-serif",_u.font=a;var x=_u.font;if(x!=="10px sans-serif")return _u.font=y,!0;_u.font="19px serif";var b=_u.font;return _u.font=a,x=_u.font,_u.font=y,x!==b},Pa.FormatNone=NS,Pa.FormatTrim=_p,Pa.None=zv,Pa.OverflowClip=_v,Pa.OverflowEllipsis=Jm,Pa.WrapBreakAll=AS,Pa.WrapDesiredSize=Uv,Pa.WrapFit=PS;function Xd(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}Xd.prototype.copy=function(){var a=new Xd;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},Xd.className="GradElementSettings";function Gu(a,y){Rt.call(this),this.Eg=null,this.qo="",this.Xg=Po,this.Nk=Qn,this.Zg=this.Hd=null,this.Mk=wo,this.Xf=_n,this.vl=null,this.qn=!1,this.en=!0,this.al=!1,this.bt=this.rl=null,typeof a=="string"?this.source=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}var qf;qt(Gu,Rt),Gu.prototype.cloneProtected=function(a){Rt.prototype.cloneProtected.call(this,a),a.qo=this.qo,a.element=this.Eg,a.Xg=this.Xg.J(),a.Nk=this.Nk,a.Xf=this.Xf,a.Hd=this.Hd,a.Zg=this.Zg,a.Mk=this.Mk.J(),a.en=this.en,a.rl=this.rl},Gu.prototype.qb=function(a){a===_n||a===pi||a===Nr?this.imageStretch=a:Rt.prototype.qb.call(this,a)},Gu.prototype.toString=function(){return"Picture("+this.source+")#"+Dr(this)};function ep(a){a===void 0&&(a=""),a!==""?qf[a]&&(delete qf[a],t0--):(qf=new Ti,t0=0)}function TS(a,y){y.qy||(y.Fq=function(x){y.sq=!0,y.ln=!1;var b=y.Bg.copy();if(b!=null){for(b=b.iterator;b.next();){var E=b.value;E.N();var z=y.getAttribute("src")||"",te=E.Og.I(z);if(te!==null)for(var re=te.length,le=0;le<re;le++)z=te[le],E.Xn.add(z),z.Uc=!0,E.$b(),y.hn&&(y.eu===void 0&&(y.eu=x),z.Zg!==null&&z.Zg(z,x))}y.Bg.clear()}a.desiredSize.w()||(cs(a,!1),a.v())},y.Yp=function(x){y.ln=x;var b=y.Bg.copy();if(b!=null){for(b=b.iterator;b.next();){var E=b.value,z=y.getAttribute("src")||"",te=E.Og.I(z);if(te!==null){E=te.length,z=gn();for(var re=0;re<E;re++)z.push(te[re]);if(y.hn)for(re=0;re<E;re++)te=z[re],te.Hd!==null&&te.Hd(te,x);kn(z)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}Gu.prototype.hA=function(){if(this.source!==""){ep(this.source);var a=this.source;this.source="",this.source=a}},Gu.prototype.redraw=function(){this.N(),this.Uc=!0},Gu.prototype.hh=function(a,y){var x=this.Eg;if(x!==null){var b=x.getAttribute("src");if(!(x instanceof HTMLImageElement&&(b===null||b==="")||x.ln instanceof Event&&a instanceof Hl)){var E=a instanceof Uu;b=this.naturalBounds;var z=0,te=0,re=this.qn,le=re?+x.width:x.naturalWidth;if(re=re?+x.height:x.naturalHeight,le===void 0&&x.videoWidth&&(le=x.videoWidth),re===void 0&&x.videoHeight&&(re=x.videoHeight),le=le||b.width,re=re||b.height,le!==0&&re!==0){var ce=le,de=re;this.sourceRect.w()&&(z=this.Xg.x,te=this.Xg.y,le=this.Xg.width,re=this.Xg.height);var ve=le,Pe=re,Le=this.Nk,Fe=this.Mk;switch(Le){case _n:if(this.sourceRect.w())break;ve>=b.width&&(z=z+Fe.offsetX+(ve*Fe.x-b.width*Fe.x)),Pe>=b.height&&(te=te+Fe.offsetY+(Pe*Fe.y-b.height*Fe.y)),le=Math.min(b.width,ve),re=Math.min(b.height,Pe);break;case Qn:ve=b.width,Pe=b.height;break;case pi:case Nr:Le===pi?(Le=Math.min(b.height/Pe,b.width/ve),ve*=Le,Pe*=Le):Le===Nr&&(Le=Math.max(b.height/Pe,b.width/ve),ve*=Le,Pe*=Le,ve>=b.width&&(z=(z+Fe.offsetX+(ve*Fe.x-b.width*Fe.x)/ve)*le),Pe>=b.height&&(te=(te+Fe.offsetY+(Pe*Fe.y-b.height*Fe.y)/Pe)*re),le*=1/(ve/b.width),re*=1/(Pe/b.height),ve=b.width,Pe=b.height)}Le=this.Df()*y.scale;var Ze=ve*Le*Pe*Le,pt=le*re/Ze,at=x.__goCache;Le=null;var Ct=L1;if(!E){if(x.sq&&at!==void 0&&4<Ze&&pt>Ct*Ct)for(at.gi===null&&(kS(at,4,ce,de,x),kS(at,16,ce,de,x)),E=at.gi,ce=E.length,de=0;de<ce&&E[de].ratio*E[de].ratio<pt;de++)Le=E[de];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{E=new Oa(null).context;try{E.drawImage(this.Eg,0,0)}catch(Lt){this.en=!1}try{E.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(Lt){this.vl=!0}}if(this.vl)return}}switch(E=ve<b.width?Fe.offsetX+(b.width*Fe.x-ve*Fe.x):0,Fe=Pe<b.height?Fe.offsetY+(b.height*Fe.y-Pe*Fe.y):0,this.flip){case $r:a.translate(Math.min(b.width,ve),0),a.scale(-1,1);break;case Er:a.translate(0,Math.min(b.height,Pe)),a.scale(1,-1);break;case Hn:a.translate(Math.min(b.width,ve),Math.min(b.height,Pe)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&at!==void 0&&Le!==null&&Le.ratio!==1){a.save(),y=Le.ratio;try{a.drawImage(Le.source,z/y,te/y,Math.min(Le.source.width,le/y),Math.min(Le.source.height,re/y),E,Fe,Math.min(b.width,ve),Math.min(b.height,Pe)),a instanceof Uu&&(this.bt=[z/y,te/y,Math.min(Le.source.width,le/y),Math.min(Le.source.height,re/y),E,Fe,Math.min(b.width,ve),Math.min(b.height,Pe)])}catch(Lt){this.en=!1}a.restore()}else try{a.drawImage(x,z,te,le,re,E,Fe,Math.min(b.width,ve),Math.min(b.height,Pe)),a instanceof Uu&&(this.bt=[z,te,le,re,E,Fe,Math.min(b.width,ve),Math.min(b.height,Pe)])}catch(Lt){this.en=!1}switch(this.flip){case $r:a.scale(-1,1),a.translate(-Math.min(b.width,ve),0);break;case Er:a.scale(1,-1),a.translate(0,-Math.min(b.height,Pe));break;case Hn:a.scale(-1,-1),a.translate(-Math.min(b.width,ve),-Math.min(b.height,Pe))}}}}},Gu.prototype.Wl=function(a,y,x,b){var E=this.desiredSize,z=Ps(this,!0),te=this.Eg,re=this.qn,le=0,ce=0;(re||!this.al&&te&&te.complete)&&(this.al=!0),te===null?(isFinite(E.width)||(a=0),isFinite(E.height)||(y=0)):(le=re?+te.width:te.naturalWidth,ce=re?+te.height:te.naturalHeight),isFinite(E.width)||z===Qn||z===Ci?(isFinite(a)||(this.sourceRect.w()?a=this.sourceRect.width:te!==null&&(a=le)),x=0):te!==null&&this.al!==!1&&(a=this.sourceRect.w()?this.sourceRect.width:le),isFinite(E.height)||z===Qn||z===ki?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:te!==null&&(y=ce)),b=0):te!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:ce),isFinite(E.width)&&(a=E.width),isFinite(E.height)&&(y=E.height),E=this.maxSize,z=this.minSize,x=Math.max(x||0,z.width),b=Math.max(b||0,z.height),a=Math.min(E.width,a),y=Math.min(E.height,y),a=Math.max(x,a),y=Math.max(b,y),te===null||te.complete||(isFinite(a)||(a=0),isFinite(y)||(y=0)),gs(this.dc,a,y),this.Ge(0,0,a,y)},Gu.prototype.eh=function(a,y,x,b){us(this,a,y,x,b)},Nt.Object.defineProperties(Gu.prototype,{element:{get:function(){return this.Eg},set:function(a){var y=this.Eg;if(this.Uc=!0,y!==a){this.qn=a instanceof HTMLCanvasElement;var x=a instanceof HTMLImageElement;a===null||x||a instanceof HTMLVideoElement||this.qn||bt("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var b=this.diagram;b!==null&&fl(b,this),this.Eg=a,a!==null&&x&&a.Bg===void 0&&(a.Bg=new Fn),b!==null&&x&&xd(b,this),a!==null&&(this.qn||a.complete===!0?(a.hn&&(a.ln instanceof Event&&this.Hd!==null?this.Hd(this,a.ln):a.sq===!0&&!a.ln&&this.Zg!==null&&a.eu&&this.Zg(this,a.eu)),a.sq=!0,this.desiredSize.w()||(cs(this,!1),this.v())):x&&TS(this,a)),this.g("element",y,a),this.N()}}},source:{get:function(){return this.qo},set:function(a){var y=this.qo;if(y!==a){this.Uc=!0,this.qo=a;var x=qf;if(ls){var b=null;if(x[a]!==void 0)b=x[a];else if(a!==""){30<t0&&(ep(),x=qf),b=Rn("img"),b.hn=!0,TS(this,b);var E=this.rl;E!==null&&(b.crossOrigin=E(this)),b.src=a,x[a]=b,t0++}this.element=b,b!==null&&b.__goCache===void 0&&(b.__goCache=new IS),this.v(),this.N()}this.g("source",y,a)}}},sourceCrossOrigin:{get:function(){return this.rl},set:function(a){if(this.rl!==a&&(this.rl=a,this.element!==null)){var y=this.element.getAttribute("src");a===null&&typeof y=="string"?this.element.crossOrigin=null:a!==null&&(this.element.crossOrigin=a(this)),this.element.src=y}}},sourceRect:{get:function(){return this.Xg},set:function(a){var y=this.Xg;y.D(a)||(this.Xg=a=a.J(),this.N(),this.g("sourceRect",y,a))}},imageStretch:{get:function(){return this.Nk},set:function(a){var y=this.Nk;y!==a&&(this.Nk=a,this.N(),this.g("imageStretch",y,a))}},flip:{get:function(){return this.Xf},set:function(a){var y=this.Xf;y!==a&&(this.Xf=a,this.N(),this.g("flip",y,a))}},imageAlignment:{get:function(){return this.Mk},set:function(a){var y=this.Mk;y.D(a)||(this.Mk=a=a.J(),this.N(),this.g("imageAlignment",y,a))}},errorFunction:{get:function(){return this.Hd},set:function(a){var y=this.Hd;y!==a&&(this.Hd=a,this.g("errorFunction",y,a))}},successFunction:{get:function(){return this.Zg},set:function(a){var y=this.Zg;y!==a&&(this.Zg=a,this.g("successFunction",y,a))}},naturalBounds:{get:function(){return this.dc}}}),Gu.prototype.redraw=Gu.prototype.redraw,Gu.prototype.reloadSource=Gu.prototype.hA;var t0=0,L1=4;Gu.className="Picture",qf=new Ti,Gu.clearCache=ep;function IS(){this.gi=null}function kS(a,y,x,b,E){a.gi===null&&(a.gi=[]);var z=new Oa(null),te=z.context,re=1/y;z.width=x/y,z.height=b/y,z.width!==0&&z.height!==0&&(y=new DS(z.Oa,y),x=1,0<a.gi.length&&(x=a.gi[a.gi.length-1],E=x.source,x=x.ratio),te.setTransform(re*x,0,0,re*x,0,0),te.yc(),te.drawImage(E,0,0),a.gi.push(y))}IS.className="PictureCacheArray";function DS(a,y){this.source=a,this.ratio=y}DS.className="PictureCacheInstance";function tp(){this.os=new di,this.mc=null}tp.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new di,this.mc=null};function np(a,y,x,b,E,z){a.mc=new rs,a.mc.startX=y,a.mc.startY=x,a.mc.isFilled=b,a.mc.isEvenOdd=z||!1,a.os.figures.add(a.mc),E!==void 0&&(a.mc.isShadowed=E)}function T1(a){var y=a.mc.segments.length;0<y&&a.mc.segments.M(y-1).close()}tp.prototype.moveTo=function(a,y,x){x===void 0&&(x=!1);var b=new Eo(za);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)},tp.prototype.lineTo=function(a,y,x){x===void 0&&(x=!1);var b=new Eo(qo);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)};function Uh(a,y,x,b,E,z,te){var re;re===void 0&&(re=!1);var le=new Eo(ol);le.point1X=y,le.point1Y=x,le.point2X=b,le.point2Y=E,le.endX=z,le.endY=te,re&&le.close(),a.mc.segments.add(le)}function n0(a,y,x,b,E){var z;z===void 0&&(z=!1);var te=new Eo(Zi);te.point1X=y,te.point1Y=x,te.endX=b,te.endY=E,z&&te.close(),a.mc.segments.add(te)}tp.prototype.arcTo=function(a,y,x,b,E,z,te){z===void 0&&(z=0),te===void 0&&(te=!1);var re=new Eo(oo);re.startAngle=a,re.sweepAngle=y,re.centerX=x,re.centerY=b,re.radiusX=E,re.radiusY=z!==0?z:E,te&&re.close(),this.mc.segments.add(re)};function I1(a,y,x,b,E,z,te,re){var le;le===void 0&&(le=!1),y=new Eo(iu,te,re,y,x,b,E,z),le&&y.close(),a.mc.segments.add(y)}function OS(a){var y=i0;return y!==null?(i0=null,y.reset(a),y):(y=new tp,y.reset(a),y)}var i0=null;tp.className="StreamGeometryContext";function eu(a,y){var x=a.toLowerCase(),b=Wt.Ze;b[a]=y,b[x]=a}eu("Rectangle",function(a,y,x){a="r"+y+","+x;var b=Wt.Mf[a];return b!==void 0||(b=new di(di.u),b.endX=y,b.endY=x,Wt.Nf<Wt.vm&&(Wt.Mf[a]=b,Wt.Nf++)),b}),eu("Square",function(a,y,x){a="s"+y+","+x;var b=Wt.Mf[a];return b!==void 0||(b=new di(di.u),b.endX=y,b.endY=x,b.defaultStretch=pi,Wt.Nf<Wt.vm&&(Wt.Mf[a]=b,Wt.Nf++)),b}),eu("RoundedRectangle",function(a,y,x){a=a?a.parameter1:NaN,(isNaN(a)||0>a)&&(a=5),a=Math.min(a,y/3),a=Math.min(a,x/3);var b="rr"+y+","+x+","+a,E=Wt.Mf[b];if(E!==void 0)return E;var z=a*Wt.wg;return E=new di().add(new rs(a,0,!0).add(new Eo(qo,y-a,0)).add(new Eo(ol,y,a,y-z,0,y,z)).add(new Eo(qo,y,x-a)).add(new Eo(ol,y-a,x,y,x-z,y-z,x)).add(new Eo(qo,a,x)).add(new Eo(ol,0,x-a,z,x,0,x-z)).add(new Eo(qo,0,a)).add(new Eo(ol,a,0,0,z,z,0).close())),1<z&&(E.spot1=new _i(0,0,z,z),E.spot2=new _i(1,1,-z,-z)),Wt.Nf<Wt.vm&&(Wt.Mf[b]=E,Wt.Nf++),E}),eu("Border","RoundedRectangle"),eu("Ellipse",function(a,y,x){a="e"+y+","+x;var b=Wt.Mf[a];return b!==void 0||(b=new di(di.F),b.endX=y,b.endY=x,b.spot1=rl,b.spot2=Bs,Wt.Nf<Wt.vm&&(Wt.Mf[a]=b,Wt.Nf++)),b}),eu("Circle",function(a,y,x){a="c"+y+","+x;var b=Wt.Mf[a];return b!==void 0||(b=new di(di.F),b.endX=y,b.endY=x,b.spot1=rl,b.spot2=Bs,b.defaultStretch=pi,Wt.Nf<Wt.vm&&(Wt.Mf[a]=b,Wt.Nf++)),b}),eu("TriangleRight",function(a,y,x){return new di().add(new rs(0,0).add(new Eo(qo,y,.5*x)).add(new Eo(qo,0,x).close())).pm(0,.25,.5,.75)}),eu("TriangleDown",function(a,y,x){return new di().add(new rs(0,0).add(new Eo(qo,y,0)).add(new Eo(qo,.5*y,x).close())).pm(.25,0,.75,.5)}),eu("TriangleLeft",function(a,y,x){return new di().add(new rs(y,x).add(new Eo(qo,0,.5*x)).add(new Eo(qo,y,0).close())).pm(.5,.25,1,.75)}),eu("TriangleUp",function(a,y,x){return new di().add(new rs(y,x).add(new Eo(qo,0,x)).add(new Eo(qo,.5*y,0).close())).pm(.25,.5,.75,1)}),eu("Triangle","TriangleUp"),eu("Diamond",function(a,y,x){return new di().add(new rs(.5*y,0).add(new Eo(qo,0,.5*x)).add(new Eo(qo,.5*y,x)).add(new Eo(qo,y,.5*x).close())).pm(.25,.25,.75,.75)}),eu("LineH",function(a,y,x){return a=new di(di.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),eu("LineV",function(a,y,x){return a=new di(di.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),eu("None","Rectangle"),eu("BarH","Rectangle"),eu("BarV","Rectangle"),eu("MinusLine","LineH"),eu("PlusLine",function(a,y,x){return new di().add(new rs(0,x/2,!1).add(new Eo(qo,y,x/2)).add(new Eo(za,y/2,0)).add(new Eo(qo,y/2,x)))}),eu("XLine",function(a,y,x){return new di().add(new rs(0,x,!1).add(new Eo(qo,y,0)).add(new Eo(za,0,0)).add(new Eo(qo,y,x)))}),eu("LineRight",function(a,y,x){return new di().add(new rs(.25*y,0,!1).add(new Eo(qo,.75*y,.5*x)).add(new Eo(qo,.25*y,x)))}),eu("LineDown",function(a,y,x){return new di().add(new rs(0,.25*x,!1).add(new Eo(qo,.5*y,.75*x)).add(new Eo(qo,y,.25*x)))}),eu("LineLeft",function(a,y,x){return new di().add(new rs(.75*y,0,!1).add(new Eo(qo,.25*y,.5*x)).add(new Eo(qo,.75*y,x)))}),eu("LineUp",function(a,y,x){return new di().add(new rs(0,.75*x,!1).add(new Eo(qo,.5*y,.25*x)).add(new Eo(qo,y,.75*x)))}),Wt.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 Zv(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=ds,this.ir=null,this.jr="",this.lr=Vr,this.Gq="",this.Hq=Hs,this.Pq=Ko,this.Kq=Yr,this.Up=null,this.Cq=127,this.zr=yo,this.yr="gray",this.Vg=4}Zv.prototype.copy=function(){var a=new Zv;return a.zq=this.zq,a.Kp=this.Kp,a.tr=this.tr,a.vr=this.vr,a.ur=this.ur,a.oq=this.oq,a.fr=this.fr,a.hr=this.hr,a.gr=this.gr.J(),a.ir=this.ir,a.jr=this.jr,a.lr=this.lr.J(),a.Gq=this.Gq,a.Hq=this.Hq.J(),a.Pq=this.Pq.J(),a.Kq=this.Kq.J(),a.Up=this.Up,a.Cq=this.Cq,a.zr=this.zr.J(),a.yr=this.yr,a.Vg=this.Vg,a};function nr(a,y){a===void 0||a instanceof nl||typeof a=="string"?hi.call(this,a):(hi.call(this),a&&(y=a)),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 lt(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new jn,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}qt(nr,hi),nr.prototype.cloneProtected=function(a){hi.prototype.cloneProtected.call(this,a),a.G=this.G&-4097|49152,a.Tf=this.Tf,this.P!==null&&(a.P=this.P.nc?this.P:this.P.copy()),a.Jg=this.Jg,a.Qf=null,a.ec=this.ec,a.ke.assign(this.ke),a.Ao=this.Ao},Ue=nr.prototype,Ue.Af=function(a){hi.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},Ue.toString=function(){var a=Bn(this.constructor)+"#"+Dr(this);return this.data!==null&&(a+="("+Vn(this.data)+")"),a};function Hu(a){a.P===null?a.P=new Zv:a.P.nc&&(a.P=a.P.copy())}Ue.th=function(){hi.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},Ue.gk=function(a,y,x,b,E,z,te){var re=this.diagram;re!==null&&(a===Ka&&y==="elements"?E instanceof hi?Yg(E,function(le){yy(re.partManager,le),fh(re,le)}):xd(re,E):a===ms&&y==="elements"&&(E instanceof hi?Yg(E,function(le){Sy(re.partManager,le,re)}):fl(re,E)),re.cb(a,y,x,b,E,z,te))},Ue.La=function(a){if(hi.prototype.La.call(this,a),this.data!==null){for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];E instanceof hi&&Yg(E,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},nr.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},nr.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},nr.prototype.bh=function(a,y){if(y!==null){var x=null,b=this.Qf;if(b!==null&&(x=b.I(a)),x!==y){if(x!==null){var E=x.diagram;E!==null&&E.remove(x)}b===null&&(this.Qf=b=new Ii),y.Tf!==a&&(y.category=a),b.add(a,y),a=this.diagram,a!==null&&(a.add(y),a=y.adornedObject,a!==null&&(a=a.ih(),a!==null&&(y.data=a.data)))}}},nr.prototype.Jf=function(a){var y=this.Qf;if(y!==null){var x=y.I(a);if(x!==null){var b=x.diagram;b!==null&&b.remove(x)}y.remove(a),y.count===0&&(this.Qf=null)}},nr.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=gn();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);kn(y)}},nr.prototype.updateAdornments=function(){var a=this.diagram;if(a!==null){for(var y=this.adornments;y.next();){var x=y.value;x.v(),x.placeholder&&x.placeholder.v()}e:{if(this.isSelected&&this.selectionAdorned&&(y=this.selectionObject,y!==null&&this.actualBounds.w()&&this.isVisible()&&y.Ed()&&y.actualBounds.w())){if(x=this.Pj("Selection"),x===null){if(x=this.selectionAdornmentTemplate,x===null&&(x=this.ph()?a.linkSelectionAdornmentTemplate:this instanceof _r?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof zo))break e;Vc(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=hi.Link),x.adornedObject=y)}if(x!==null){x.type===hi.Link&&x.v(),this.bh("Selection",x);break e}}this.Jf("Selection")}for(k1(this,a),y=this.adornments;y.next();)y.value.La()}},nr.prototype.Wb=function(){var a=this.diagram;a!==null&&(a.vd=!0,!(this.G&16384)&&(this.G|=16384))};function Vv(a){a.G&16384&&(a.updateAdornments(),a.G&=-16385)}function k1(a,y){y.toolManager.mouseDownTools.each(function(x){x.isEnabled&&x.updateAdornments(a)}),y.toolManager.updateAdornments(a)}function r0(a){if(gg(a)===!1){Yv(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function RS(a){if(a.G|=2097152,gg(a)!==!1){var y=a.position,x=a.location;x.w()&&y.w()||jS(a,y,x),x=a.Ib;var b=jn.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(b,x),jn.free(b),Yv(a,!1)}}nr.prototype.Ge=function(a,y,x,b){var E=this.uc;E.h(a,y,x,b),this.Lb===null&&(this.Lb=new fr);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),this.Lb=z,z.ws()||z.pp(E)},nr.prototype.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=wo;this.locationSpot.sb()&&(z=this.locationSpot);var te=lt.alloc();if(this.locationObject!==this)for(y=this.locationObject,x=y.naturalBounds,te.yi(x.x,x.y,x.width,x.height,z),y.Lb!==null&&y.Lb.Ga(te),te.offset(-y.measuredBounds.x,-y.measuredBounds.y),z=y.panel;z!==null&&z!==this;)z.Lb!==null&&z.Lb.Ga(te),te.offset(-z.measuredBounds.x,-z.measuredBounds.y),z=z.panel;else te.yi(y,x,b,E,z);a.rotate(this.Kb,te.x,te.y),lt.free(te)}},nr.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},nr.prototype.moveTo=function(a,y,x){a=lt.allocAt(a,y),this.move(a,x),lt.free(a)},nr.prototype.isVisible=function(){if(!this.visible)return!1;var a=this.layer;if(a!==null){if(!a.visible)return!1;if(a=a.diagram,a!==null&&a.animationManager.fv(this))return!0}return a=this.containingGroup,!!(a===null||a.isSubGraphExpanded&&a.isVisible())},nr.prototype.Zb=function(a){var y=this.diagram;a?(this.C(4),this.Wb(),y!==null&&y.De.add(this)):(this.C(8),this.Ej()),this.oh(),y!==null&&(y.Ya(),y.N())},nr.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new Ii),y.I(a)!==null)return y.I(a);var x=hi.prototype.fb.call(this,a);return x!==null?(y.set(a,x),x):(y.set(a,null),null)};function _h(a,y,x,b){b===void 0&&(b=new lt),x=x.Mc()?wo:x;var E=y.naturalBounds;if(b.h(E.width*x.x+x.offsetX,E.height*x.y+x.offsetY),y===null||y===a)return b;for(y.transform.Ga(b),y=y.panel;y!==null&&y!==a;)y.transform.Ga(b),y=y.panel;return a.Lb!==null&&a.Lb.Ga(b),b.offset(-a.uc.x,-a.uc.y),b}nr.prototype.mi=function(a){return a===void 0&&(a=new jn),a.assign(this.actualBounds)},nr.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function FS(a){var y=lt.alloc(),x=a.locationObject,b=x.naturalBounds,E=x instanceof eo?x.strokeWidth:0;if(y.yi(0,0,b.width+E,b.height+E,a.locationSpot),x!==a)for(y.offset(-E/2,-E/2),x.transform.Ga(y),x=x.panel;x!==null&&x!==a;)x.transform.Ga(y),x=x.panel;return a.Lb!==null&&a.Lb.Ga(y),y.offset(-a.uc.x,-a.uc.y),y}function Qg(a,y){var x=a.py;isNaN(a.ag)&&(a.ag=gS(a));var b=a.ag,E=2*b;if(!a.isShadowed)return x.h(y.x-1-b,y.y-1-b,y.width+2+E,y.height+2+E),x;b=y.x,E=y.y;var z=y.width;y=y.height;var te=a.shadowBlur;return a=a.shadowOffset,z+=te,y+=te,b-=te/2,E-=te/2,0<a.x?z+=a.x:(b+=a.x,z-=a.x),0<a.y?y+=a.y:(E+=a.y,y-=a.y),x.h(b-1,E-1,z+2,y+2),x}nr.prototype.arrange=function(){if(Il(this)===!1)RS(this);else{sr(this,!1);var a=this.Ib,y=jn.alloc();y.assign(a);var x=fg(this);this.eh(0,0,this.uc.width,this.uc.height);var b=this.position;jS(this,b,this.location),a.ka(),a.x=b.x,a.y=b.y,a.freeze(),this.Xl(y,a),y.D(a)?this.Fd(x):!this.Zc()||Wt.B(y.width,a.width)&&Wt.B(y.height,a.height)||0<=this.vw&&this.C(16),jn.free(y),Yv(this,!1)}},Ue=nr.prototype,Ue.Xl=function(a,y){var x=this.diagram;if(x!==null){var b=!1;if(x.Zi===!1&&a.w()){var E=jn.alloc();E.assign(x.documentBounds),E.Fv(x.padding),a.x>E.x&&a.y>E.y&&a.right<E.right&&a.bottom<E.bottom&&y.x>E.x&&y.y>E.y&&y.right<E.right&&y.bottom<E.bottom&&(b=!0),jn.free(E)}!(this.G&65536)&&a.D(y)||_S(this,b,x),x.N(),!a.w()&&!y.w()||Oo(a,y)||(this instanceof Li&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},Ue.zv=function(a,y,x){if(this.ph()||!a.w())return!1;var b=this.diagram;return b!==null&&BS(this,b,a,y,x),this.pa=a,this.G&=-2097153,!this.ke.w()||b!==null&&!b.animationManager.isTicking&&b.undoManager.isUndoingRedoing||(b=this.ke,this.ke=new lt(b.x+(a.x-y),b.y+(a.y-x)),this.g("location",b,this.ke.copy())),gg(this)===!1&&Il(this)===!1&&(r0(this),RS(this)),!0};function BS(a,y,x,b,E){y===null||a instanceof zo||(y=y.animationManager,y.zb&&Hc(y,a,new lt(b,E),x))}Ue.mm=function(a,y,x){var b=this.ke,E=this.pa;if(x){if(b.x===a&&b.y===y)return;gg(this)||Il(this)?E.h(NaN,NaN):E.h(E.x+a-b.x,E.y+y-b.y),b.h(a,y)}else{if(E.x===a&&E.y===y)return;b.h(b.x+a-E.x,b.y+y-E.y),E.h(a,y)}r0(this)},Ue.Av=function(){this.G&=-2097153,r0(this)};function jS(a,y,x){var b=FS(a),E=a.diagram,z=x.w(),te=y.w();z&&te?a.G&2097152?zS(a,y,x,E,b):US(a,y,x,E,b):z?zS(a,y,x,E,b):te&&US(a,y,x,E,b),a.G|=2097152,lt.free(b),a.Uk()}function zS(a,y,x,b,E){var z=y.x,te=y.y;y.h(x.x-E.x,x.y-E.y),b!==null&&(x=b.animationManager,(b=x.defaultAnimation.isAnimating)||!x.zb||a instanceof zo||Hc(x,a,new lt(z,te),y),b||y.x===z&&y.y===te||a.g("position",new lt(z,te),y.copy()))}function US(a,y,x,b,E){var z=x.copy();x.h(y.x+E.x,y.y+E.y),x.D(z)||b===null||a.g("location",z,x.copy())}function _S(a,y,x){$v(a,!1),a instanceof Li&&ph(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var b=x.viewportBounds;b.w()?fg(a)?(aa(y,b)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(b)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}Ue.si=function(){return!0},Ue.Zc=function(){return!0},Ue.ph=function(){return!1},Ue.Dd=function(){return!0};function Kv(a,y,x,b){y.constructor===a.constructor||WS||(WS=!0,ni('Should not change the class of the Part when changing category from "'+x+'" to "'+b+'"'),ni(" Old class: "+Bn(a.constructor)+", new class: "+Bn(y.constructor)+", part: "+a.toString())),a.Ej();var E=a.data;x=a.layerName;var z=a.isSelected,te=a.isHighlighted,re=!0,le=!0,ce=!1;a instanceof Li&&(re=a.isTreeLeaf,le=a.isTreeExpanded,ce=a.wasTreeExpanded),y.Af(a),y.cloneProtected(a),a.Tf=b,a.svg!==null&&(a.svg.remove(),a.svg=null,a.Uc=!0),a.v(),a.N(),y=a.diagram,b=!0,y!==null&&(b=y.skipsUndoManager,y.skipsUndoManager=!0),a.ub=E,a.G=z?a.G|4096:a.G&-4097,a.G=te?a.G|524288:a.G&-524289,a instanceof Li&&(a.U=re?a.U|4:a.U&-5,a.U=le?a.U|1:a.U&-2,a.U=ce?a.U|2:a.U&-3),E!==null&&a.La(),E=a.layerName,E!==x&&(a.Jg=x,a.layerName=E),y!==null&&(y.skipsUndoManager=b),a.Zc()&&a.C(64)}nr.prototype.canCopy=function(){if(!this.copyable)return!1;var a=this.layer;return a===null?!0:a.allowCopy?(a=a.diagram,a===null?!0:!!a.allowCopy):!1},nr.prototype.canDelete=function(){if(!this.deletable)return!1;var a=this.layer;return a===null?!0:a.allowDelete?(a=a.diagram,a===null?!0:!!a.allowDelete):!1},nr.prototype.canEdit=function(){if(!this.textEditable)return!1;var a=this.layer;return a===null?!0:a.allowTextEdit?(a=a.diagram,a===null?!0:!!a.allowTextEdit):!1},nr.prototype.canGroup=function(){if(!this.groupable)return!1;var a=this.layer;return a===null?!0:a.allowGroup?(a=a.diagram,a===null?!0:!!a.allowGroup):!1},nr.prototype.canMove=function(){if(!this.movable)return!1;var a=this.layer;return a===null?!0:a.allowMove?(a=a.diagram,a===null?!0:!!a.allowMove):!1},nr.prototype.canReshape=function(){if(!this.reshapable)return!1;var a=this.layer;return a===null?!0:a.allowReshape?(a=a.diagram,a===null?!0:!!a.allowReshape):!1},nr.prototype.canResize=function(){if(!this.resizable)return!1;var a=this.layer;return a===null?!0:a.allowResize?(a=a.diagram,a===null?!0:!!a.allowResize):!1},nr.prototype.canRotate=function(){if(!this.rotatable)return!1;var a=this.layer;return a===null?!0:a.allowRotate?(a=a.diagram,a===null?!0:!!a.allowRotate):!1},nr.prototype.canSelect=function(){if(!this.selectable)return!1;var a=this.layer;return a===null?!0:a.allowSelect?(a=a.diagram,a===null?!0:!!a.allowSelect):!1};function gg(a){return(a.G&32768)!==0}function Yv(a,y){a.G=y?a.G|32768:a.G&-32769}function $v(a,y){a.G=y?a.G|65536:a.G&-65537}function fg(a){return(a.G&131072)!==0}Ue=nr.prototype,Ue.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function o0(a,y){a.G=y?a.G|1048576:a.G&-1048577}Ue.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},Ue.N=function(){var a=this.diagram;a!==null&&!Il(this)&&!gg(this)&&this.isVisible()&&this.Ib.w()&&a.N(Qg(this,this.Ib))},Ue.v=function(){hi.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof Li&&this.labeledLink!==null&&el(this.labeledLink),a.$b(!0))},Ue.Vo=function(a){a||(a=this.Ah,a!==null&&ty(a,this))},Ue.Wo=function(a){a||(a=this.Ah,a!==null&&ny(a,this))},Ue.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},Ue.oz=function(){return Xv(this,this)};function Xv(a,y){var x=y.containingGroup;return x!==null?1+Xv(a,x):y instanceof Li&&(y=y.labeledLink,y!==null)?Xv(a,y):0}Ue.sz=function(){return GS(this,this)};function GS(a,y){var x=y.containingGroup;return x!==null||y instanceof Li&&(x=y.labeledLink,x!==null)?GS(a,x):y}Ue.Td=function(a){return a instanceof _r?Qv(this,this,a):!1};function Qv(a,y,x){if(y===x||x===null)return!1;var b=y.containingGroup;return b===null||b!==x&&!Qv(a,b,x)?y instanceof Li&&(y=y.labeledLink,y!==null)?Qv(a,y,x):!1:!0}Ue.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof _r&&o0(y,!0),y instanceof Li){var x=y.labeledLink;x!==null&&(y=x)}y=y.containingGroup}for(x=null,y=a;y!==null;){if(y.G&1048576){x=y;break}y instanceof Li&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof _r&&o0(y,!1),y instanceof Li&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},nr.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof Li&&this.isLinkLabel)},nr.prototype.C=function(a){if(a===void 0&&(a=16777215),this.isLayoutPositioned&&a&this.layoutConditions){var y=this.layer;y!==null&&y.isTemporary||this instanceof Li&&this.isLinkLabel?y=!1:(y=this.diagram,y=!(y!==null&&y.undoManager.isUndoingRedoing))}else y=!1;if(y)if(y=this.Ah,y!==null){var x=y.layout;x!==null?x.C():y.C(a)}else a=this.diagram,a!==null&&(a=a.layout,a!==null&&a.C())};function HS(a){return a.isVisible()?(a=a.layer,!(a!==null&&a.isTemporary)):!1}function pg(a,y,x,b,E,z){if(z===void 0&&(z=null),!(a.contains(y)||z!==null&&!z(y)||y instanceof zo)){if(a.add(y),y instanceof Li){if(x&&y instanceof _r)for(var te=y.memberParts;te.next();)pg(a,te.value,x,b,E,z);if(E!==!1)for(te=y.linksConnected;te.next();){var re=te.value;if(!a.contains(re)){var le=re.fromNode,ce=re.toNode;le=le===null||a.contains(le),ce=ce===null||a.contains(ce),(E?le&&ce:le||ce)&&pg(a,re,x,b,E,z)}}if(1<b)for(y=y.Ou();y.next();)pg(a,y.value,x,b-1,E,z)}else if(y instanceof yi)for(y=y.labelNodes;y.next();)pg(a,y.value,x,b,E,z)}}Nt.Object.defineProperties(nr.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?br:this.Qf.iteratorValues}},layer:{get:function(){return this.Ig}},diagram:{get:function(){var a=this.Ig;return a==null?null:a.diagram}},layerName:{get:function(){return this.Jg},set:function(a){var y=this.Jg;if(y!==a){var x=this.diagram;if((x===null||x.Qj(a)!==null&&!x.partManager.addsToTemporaryLayer)&&(this.Jg=a,x!==null&&x.Ya(),this.g("layerName",y,a),y=this.layer,y!==null&&y.name!==a&&(x=y.diagram,x!==null&&(a=x.Qj(a),a!==null&&a!==y)))){var b=y.pc(-1,this,!0);if(0<=b&&x.cb(ms,"parts",y,this,null,b,!0),b=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=b&&x.cb(Ka,"parts",a,null,this,!0,b),b=this.layerChanged,b!==null){var E=x.aa;x.aa=!0,b(this,y,a),x.aa=E}}}}},layerChanged:{get:function(){return this.P!==null?this.P.zq:null},set:function(a){var y=this.layerChanged;y!==a&&(Hu(this),this.P.zq=a,this.g("layerChanged",y,a))}},zOrder:{get:function(){return this.Ao},set:function(a){var y=this.Ao;if(y!==a){this.Ao=a;var x=this.layer;x!==null&&qu(x,-1,this),this.g("zOrder",y,a),a=this.diagram,a!==null&&a.N()}}},locationObject:{get:function(){if(this.nf===null){var a=this.locationObjectName;a!==""?(a=this.fb(a),a!==null?this.nf=a:this.nf=this):this instanceof zo?this.type!==hi.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:Ko},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),Hu(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:Yr},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),Hu(this),this.P.Kq=a,this.g("maxLocation",y,a))}},locationObjectName:{get:function(){return this.P!==null?this.P.Gq:""},set:function(a){var y=this.locationObjectName;y!==a&&(Hu(this),this.P.Gq=a,this.nf=null,this.v(),this.g("locationObjectName",y,a))}},locationSpot:{get:function(){return this.P!==null?this.P.Hq:Hs},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),Hu(this),this.P.Hq=a,this.v(),this.g("locationSpot",y,a))}},location:{get:function(){return this.ke},set:function(a){var y=a.x,x=a.y,b=this.ke;if(!(b.x===y||isNaN(b.x)&&isNaN(y))||!(b.y===x||isNaN(b.y)&&isNaN(x))){if(a=a.copy(),y=a,this.ph())y=!1;else{if(this.ke=y,this.G|=2097152,Il(this)===!1&&(r0(this),x=this.pa,x.w())){var E=this.diagram;if(E===null||E.animationManager.isTicking||!E.undoManager.isUndoingRedoing){var z=x.copy();x.h(x.x+(y.x-b.x),x.y+(y.y-b.y)),BS(this,E,x,z.x,z.y),this.g("position",z,x.copy())}}y=!0}y&&this.g("location",b,a.copy())}}},category:{get:function(){return this.Tf},set:function(a){var y=this.Tf;if(y!==a){this.svg!==null&&(this.svg.remove(),this.Uc=!0);var x=this.diagram,b=this.data,E=null;if(x!==null&&b!==null&&!(this instanceof zo)){var z=x.model.undoManager;z.isEnabled&&!z.isUndoingRedoing&&(E=this.clone(),E.O.addAll(this.O))}this.Tf=a,this.g("category",y,a),x===null||b===null||this instanceof zo?this instanceof zo&&(E=this.adornedPart,E!==null&&(a=E.Qf,a!==null&&a.remove(y),E.bh(this.category,this))):(z=x.model,z.undoManager.isUndoingRedoing||(this.ph()?(x.partManager.setLinkCategoryForData(b,a),x=x.partManager.findLinkTemplateForCategory(a),x!==null&&(Vc(x),x=x.copy(),x!==null&&Kv(this,x,y,a))):(z!==null&&z.jm(b,a),x=px(x.partManager,b,a),x!==null&&(Vc(x),x=x.copy(),x===null||x instanceof yi||(b=this.location.copy(),Kv(this,x,y,a),this.location.w()||(this.location=b)))),E!==null&&(y=this.clone(),y.O.addAll(this.O),this.g("self",E,y))))}}},self:{get:function(){return this},set:function(a){Kv(this,a,this.category,a.category)}},copyable:{get:function(){return(this.G&1)!==0},set:function(a){var y=(this.G&1)!==0;y!==a&&(this.G^=1,this.g("copyable",y,a))}},deletable:{get:function(){return(this.G&2)!==0},set:function(a){var y=(this.G&2)!==0;y!==a&&(this.G^=2,this.g("deletable",y,a))}},textEditable:{get:function(){return(this.G&4)!==0},set:function(a){var y=(this.G&4)!==0;y!==a&&(this.G^=4,this.g("textEditable",y,a),this.Wb())}},groupable:{get:function(){return(this.G&8)!==0},set:function(a){var y=(this.G&8)!==0;y!==a&&(this.G^=8,this.g("groupable",y,a))}},movable:{get:function(){return(this.G&16)!==0},set:function(a){var y=(this.G&16)!==0;y!==a&&(this.G^=16,this.g("movable",y,a))}},selectionAdorned:{get:function(){return(this.G&32)!==0},set:function(a){var y=(this.G&32)!==0;y!==a&&(this.G^=32,this.g("selectionAdorned",y,a),this.Wb())}},isInDocumentBounds:{get:function(){return(this.G&64)!==0},set:function(a){var y=(this.G&64)!==0;if(y!==a){this.G^=64;var x=this.diagram;x!==null&&x.Ya(),this.g("isInDocumentBounds",y,a)}}},isLayoutPositioned:{get:function(){return(this.G&128)!==0},set:function(a){var y=(this.G&128)!==0;y!==a&&(this.G^=128,this.g("isLayoutPositioned",y,a),this.C(a?4:8))}},selectable:{get:function(){return(this.G&256)!==0},set:function(a){var y=(this.G&256)!==0;y!==a&&(this.G^=256,this.g("selectable",y,a),this.Wb())}},reshapable:{get:function(){return(this.G&512)!==0},set:function(a){var y=(this.G&512)!==0;y!==a&&(this.G^=512,this.g("reshapable",y,a),this.Wb())}},resizable:{get:function(){return(this.G&1024)!==0},set:function(a){var y=(this.G&1024)!==0;y!==a&&(this.G^=1024,this.g("resizable",y,a),this.Wb())}},rotatable:{get:function(){return(this.G&2048)!==0},set:function(a){var y=(this.G&2048)!==0;y!==a&&(this.G^=2048,this.g("rotatable",y,a),this.Wb())}},isSelected:{get:function(){return(this.G&4096)!==0},set:function(a){var y=(this.G&4096)!==0;if(y!==a){var x=this.diagram;if(!a||this.canSelect()&&!(x!==null&&x.selection.count>=x.maxSelectionCount)){this.G^=4096;var b=!1;if(x!==null){b=x.skipsUndoManager,x.skipsUndoManager=!0;var E=x.selection;E.ka(),a?E.add(this):E.remove(this),E.freeze()}this.g("isSelected",y,a),this.Wb(),a=this.selectionChanged,a!==null&&a(this),x!==null&&(x.$b(),x.skipsUndoManager=b)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(a){var y=(this.G&524288)!==0;if(y!==a){this.G^=524288;var x=this.diagram;x!==null&&(x=x.highlighteds,x.ka(),a?x.add(this):x.remove(this),x.freeze()),this.g("isHighlighted",y,a),this.N(),a=this.highlightedChanged,a!==null&&a(this)}}},isShadowed:{get:function(){return(this.G&8192)!==0},set:function(a){var y=(this.G&8192)!==0;y!==a&&(this.G^=8192,this.Uc=!0,this.g("isShadowed",y,a),this.N())}},isAnimated:{get:function(){return(this.G&262144)!==0},set:function(a){var y=(this.G&262144)!==0;y!==a&&(this.G^=262144,this.g("isAnimated",y,a))}},highlightedChanged:{get:function(){return this.P!==null?this.P.oq:null},set:function(a){var y=this.highlightedChanged;y!==a&&(Hu(this),this.P.oq=a,this.g("highlightedChanged",y,a))}},selectionObjectName:{get:function(){return this.P!==null?this.P.vr:""},set:function(a){var y=this.selectionObjectName;y!==a&&(Hu(this),this.P.vr=a,this.Ug=null,this.g("selectionObjectName",y,a))}},selectionAdornmentTemplate:{get:function(){return this.P!==null?this.P.tr:null},set:function(a){var y=this.selectionAdornmentTemplate;y!==a&&(Hu(this),this.P.tr=a,this.g("selectionAdornmentTemplate",y,a))}},selectionObject:{get:function(){if(this.Ug===null){var a=this.selectionObjectName;a!==null&&a!==""?(a=this.fb(a),a!==null?this.Ug=a:this.Ug=this):this instanceof yi?(a=this.path,a!==null?this.Ug=a:this.Ug=this):this.Ug=this}return this.Ug}},selectionChanged:{get:function(){return this.P!==null?this.P.ur:null},set:function(a){var y=this.selectionChanged;y!==a&&(Hu(this),this.P.ur=a,this.g("selectionChanged",y,a))}},resizeAdornmentTemplate:{get:function(){return this.P!==null?this.P.fr:null},set:function(a){var y=this.resizeAdornmentTemplate;y!==a&&(Hu(this),this.P.fr=a,this.g("resizeAdornmentTemplate",y,a))}},resizeObjectName:{get:function(){return this.P!==null?this.P.hr:""},set:function(a){var y=this.resizeObjectName;y!==a&&(Hu(this),this.P.hr=a,this.g("resizeObjectName",y,a))}},resizeObject:{get:function(){var a=this.resizeObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},resizeCellSize:{get:function(){return this.P!==null?this.P.gr:ds},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),Hu(this),this.P.gr=a,this.g("resizeCellSize",y,a))}},rotateAdornmentTemplate:{get:function(){return this.P!==null?this.P.ir:null},set:function(a){var y=this.rotateAdornmentTemplate;y!==a&&(Hu(this),this.P.ir=a,this.g("rotateAdornmentTemplate",y,a))}},rotateObjectName:{get:function(){return this.P!==null?this.P.jr:""},set:function(a){var y=this.rotateObjectName;y!==a&&(Hu(this),this.P.jr=a,this.g("rotateObjectName",y,a))}},rotateObject:{get:function(){var a=this.rotateObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},rotationSpot:{get:function(){return this.P!==null?this.P.lr:Vr},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),Hu(this),this.P.lr=a,this.g("rotationSpot",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;y!==a&&(this.ec=a,this.g("text",y,a))}},containingGroup:{get:function(){return this.Ah},set:function(a){if(this.Zc()){var y=this.Ah;if(y!==a){a===null||this!==a&&!a.Td(this)||(this===a&&bt("Cannot make a Group a member of itself: "+this.toString()),bt("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?ny(y,this):this instanceof _r&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?ty(a,this):this instanceof _r&&x!==null&&x.ai.add(this),this.C(1),x!==null&&x.aa){var b=this.data,E=x.model;if(b!==null&&E.Xj()){var z=E.wa(a!==null?a.data:null);E.mp(b,z)}}if(b=this.containingGroupChanged,b!==null&&(E=!0,x!==null&&(E=x.aa,x.aa=!0),b(this,y,a),x!==null&&(x.aa=E)),this instanceof _r){for(x=new Fn,pg(x,this,!0,0,!0),x=x.iterator;x.next();)if(b=x.value,b instanceof Li)for(b=b.linksConnected;b.next();)ip(b.value)}if(this instanceof Li){for(x=this.linksConnected;x.next();)ip(x.value);x=this.labeledLink,x!==null&&ip(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&qu(y,-1,a))}}else bt("cannot set the Part.containingGroup of a Link or Adornment")}},containingGroupChanged:{get:function(){return this.P!==null?this.P.Kp:null},set:function(a){var y=this.containingGroupChanged;y!==a&&(Hu(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof Li&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(Hu(this),this.P.Cq=a,this.g("layoutConditions",y,a))}},dragComputation:{get:function(){return this.P!==null?this.P.Up:null},set:function(a){var y=this.dragComputation;y!==a&&(Hu(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:yo},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),Hu(this),this.P.zr=a,this.N(),this.g("shadowOffset",y,a))}},shadowColor:{get:function(){return this.P!==null?this.P.yr:"gray"},set:function(a){var y=this.shadowColor;y!==a&&(Hu(this),this.P.yr=a,this.N(),this.g("shadowColor",y,a))}},shadowBlur:{get:function(){return this.P!==null?this.P.Vg:4},set:function(a){var y=this.shadowBlur;y!==a&&(Hu(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),nr.prototype.invalidateLayout=nr.prototype.C,nr.prototype.findCommonContainingGroup=nr.prototype.px,nr.prototype.isMemberOf=nr.prototype.Td,nr.prototype.findTopLevelPart=nr.prototype.sz,nr.prototype.findSubGraphLevel=nr.prototype.oz,nr.prototype.ensureBounds=nr.prototype.Va,nr.prototype.getDocumentBounds=nr.prototype.mi,nr.prototype.findObject=nr.prototype.fb,nr.prototype.moveTo=nr.prototype.moveTo,nr.prototype.invalidateAdornments=nr.prototype.Wb,nr.prototype.clearAdornments=nr.prototype.Ej,nr.prototype.removeAdornment=nr.prototype.Jf,nr.prototype.addAdornment=nr.prototype.bh,nr.prototype.findAdornment=nr.prototype.Pj,nr.prototype.updateTargetBindings=nr.prototype.La;var WS=!1;nr.className="Part",nr.LayoutNone=0,nr.LayoutAdded=1,nr.LayoutRemoved=2,nr.LayoutShown=4,nr.LayoutHidden=8,nr.LayoutNodeSized=16,nr.LayoutGroupLayout=32,nr.LayoutNodeReplaced=64,nr.LayoutStandard=127,nr.LayoutAll=16777215;function zo(a,y){a===void 0||a instanceof nl||typeof a=="string"?nr.call(this,a):(nr.call(this),a&&(y=a)),this.G&=-257,this.Jg="Adornment",this.ue=null,this.Aw=0,this.Uw=!1,this.j=this.$a=null,y&&Object.assign(this,y)}qt(zo,nr),zo.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},zo.prototype.updateRelationshipsFromData=function(){},zo.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof yi&&y instanceof eo){y=x.path,x.Ul(a),a=y.geometry,x=this.O.s,y=x.length;for(var b=0;b<y;b++){var E=x[b];E.isPanelMain&&E instanceof eo&&(E.ua=a)}}},zo.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!Il(a))},zo.prototype.Zc=function(){return!1},zo.prototype.gk=function(a,y,x,b,E,z,te){if(a===Ka&&y==="elements"){if(E instanceof wu)this.$a===null&&(this.$a=E);else if(E instanceof hi){var re=E.Nl(function(le){return le instanceof wu});re instanceof wu&&this.$a===null&&(this.$a=re)}}else a===ms&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof hi&&this.$a.rg(b)&&(this.$a=null));nr.prototype.gk.call(this,a,y,x,b,E,z,te)},zo.prototype.updateAdornments=function(){},zo.prototype.Lj=function(){},Nt.Object.defineProperties(zo.prototype,{placeholder:{get:function(){return this.$a}},adornedObject:{get:function(){return this.ue},set:function(a){var y=this.adornedPart,x=null;a!==null&&(x=a.part),y===null||a!==null&&y===x||y.Jf(this.category),this.ue=a,x!==null&&x.bh(this.category,this)}},adornedPart:{get:function(){var a=this.ue;return a!==null?a.part:null}},containingGroup:{get:function(){return null}}}),zo.className="Adornment";function Jv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=Yl,this.er=l0,this.Kr=this.ij=this.Nq=this.Mq=null}Jv.prototype.copy=function(){var a=new Jv;return a.Dq=this.Dq,a.Eq=this.Eq,a.gj=this.gj,a.Vr=this.Vr,a.yp=this.yp.J(),a.er=this.er,a.Mq=this.Mq,a.Nq=this.Nq,a.ij=this.ij,a.Kr=this.Kr,a};function Li(a,y){a===void 0||a instanceof nl||typeof a=="string"?nr.call(this,a):(nr.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new Ht,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}qt(Li,nr),Li.prototype.cloneProtected=function(a){nr.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},Ue=Li.prototype,Ue.Af=function(a){nr.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function Gh(a){a.Ba===null?a.Ba=new Jv:a.Ba.nc&&(a.Ba=a.Ba.copy())}Ue.th=function(){nr.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function ZS(a,y){y!==null&&(a.af===null&&(a.af=new Fn),a.af.add(y))}function VS(a,y,x,b){if(y===null||a.af===null)return null;for(var E=a.af.iterator;E.next();){var z=E.value;if(z.Ds===a&&z.cv===y&&z.Ox===x&&z.Px===b||z.Ds===y&&z.cv===a&&z.Ox===b&&z.Px===x)return z}return null}Ue.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=VS(this,a,y,x),a!==null&&a.Sl()},Ue.gk=function(a,y,x,b,E,z,te){a===Ka&&y==="elements"?this.wc=null:a===ms&&y==="elements"&&(this.wc=null),nr.prototype.gk.call(this,a,y,x,b,E,z,te)},Ue.Bd=function(a){for(var y=this.linksConnected;y.next();){var x=y.value;a!==void 0&&a.contains(x)||(gc(x.fromPort),gc(x.toPort),x.bb())}};function KS(a,y){for(a=a.linksConnected;a.next();){var x=a.value;(x.fromPort===y||x.toPort===y)&&(gc(x.fromPort),gc(x.toPort),x.bb())}}function gc(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||gc(y.port)}}Ue.si=function(){return!0},Li.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},Li.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},Li.prototype.isVisible=function(){if(!nr.prototype.isVisible.call(this))return!1;var a=!0,y=Re,x=this.diagram;if(x!==null&&(a=x.isTreePathToChildren,y=x.treeCollapsePolicy),y===Re){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===He){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(b){return!b.isTreeExpanded}))return!1}else if(y===dt&&(a=a?this.Oo():this.Po(),0<a.count&&a.any(function(b){return!b.isTreeExpanded})))return!1;return a=this.labeledLink,a!==null?a.isVisible():!0},Li.prototype.Zb=function(a){nr.prototype.Zb.call(this,a);for(var y=this.linksConnected;y.next();){var x=y.value;if(a&&this.containingGroup!==null){var b=x.To(this);b===null||b.Td(this.containingGroup)||x.bb()}x.Zb(a)}},Li.prototype.qx=function(){var a=new Fn,y=new Fn;return YS(this,this,a,y),y.iterator};function YS(a,y,x,b){if(y!==null&&!x.has(y)){x.add(y);var E=!0,z=a.diagram;z!==null&&(E=z.isTreePathToChildren),y.linksConnected.each(function(te){te.isTreeLink?(E?te.fromNode===y:te.toNode===y)&&YS(a,E?te.toNode:te.fromNode,x,b):b.add(te)})}}Li.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new Hi(this.jb),x=this;return y.predicate=function(b){return b.fromNode===x&&b.fromPortId===a||b.toNode===x&&b.toPortId===a},y},Ue=Li.prototype,Ue.Mo=function(a){a===void 0&&(a=null);var y=new Hi(this.jb),x=this;return y.predicate=function(b){return b.fromNode!==x?!1:a===null?!0:b.fromPortId===a},y},Ue.Sd=function(a){a===void 0&&(a=null);var y=new Hi(this.jb),x=this;return y.predicate=function(b){return b.toNode!==x?!1:a===null?!0:b.toPortId===a},y},Ue.Mu=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.fromNode===this?(a===null||E.fromPortId===a)&&(E=E.toNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Fn,y.add(x),y.add(E)):x=E):E.toNode!==this||a!==null&&E.toPortId!==a||(E=E.fromNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Fn,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Xi(x):br},Ue.Po=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.fromNode!==this||a!==null&&E.fromPortId!==a||(E=E.toNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Fn,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Xi(x):br},Ue.Oo=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.toNode!==this||a!==null&&E.toPortId!==a||(E=E.fromNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Fn,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Xi(x):br},Ue.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new Hi(this.jb),E=this;return b.predicate=function(z){return!((z.fromNode!==E||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)&&(z.fromNode!==a||z.toNode!==E||x!==null&&z.fromPortId!==x||y!==null&&z.toPortId!==y))},b},Ue.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new Hi(this.jb),E=this;return b.predicate=function(z){return!(z.fromNode!==E||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)},b};function a0(a,y,x){gc(x);var b=a.jb.contains(y);if(b||a.jb.add(y),!b||y.fromNode===y.toNode){var E=a.linkConnected;if(E!==null){var z=!0,te=a.diagram;te!==null&&(z=te.aa,te.aa=!0),E(a,y,x),te!==null&&(te.aa=z)}}!b&&y.isTreeLink&&(x=y.fromNode,y=y.toNode,x!==null&&y!==null&&x!==y&&(b=!0,a=a.diagram,a!==null&&(b=a.isTreePathToChildren),E=b?y:x,z=b?x:y,E.ci||(E.ci=z),!z.isTreeLeaf||a!==null&&a.undoManager.isUndoingRedoing||(b?x===z&&(z.isTreeLeaf=!1):y===z&&(z.isTreeLeaf=!1))))}function s0(a,y,x){gc(x);var b=a.jb.remove(y),E=null;if(b||y.toNode===y.fromNode){var z=a.linkDisconnected;if(E=a.diagram,z!==null){var te=!0;E!==null&&(te=E.aa,E.aa=!0),z(a,y,x),E!==null&&(E.aa=te)}}b&&y.isTreeLink&&(x=!0,E!==null&&(x=E.isTreePathToChildren),a=x?y.toNode:y.fromNode,y=x?y.fromNode:y.toNode,a!==null&&(a.ci=!1),y===null||y.isTreeLeaf||(y.jb.count===0?(y.ci=null,E!==null&&E.undoManager.isUndoingRedoing||(y.isTreeLeaf=!0)):Hp(y)))}function Hp(a){if(a.ci=!1,a.jb.count!==0){var y=!0,x=a.diagram;if(x===null||!x.undoManager.isUndoingRedoing){for(x!==null&&(y=x.isTreePathToChildren),x=a.jb.iterator;x.next();){var b=x.value;if(b.isTreeLink){if(y){if(b.fromNode===a){a.isTreeLeaf=!1;return}}else if(b.toNode===a){a.isTreeLeaf=!1;return}}}a.isTreeLeaf=!0}}}Li.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},Ue=Li.prototype,Ue.Vo=function(a){nr.prototype.Vo.call(this,a),a||(Hp(this),a=this.Yk,a!==null&&ix(a,this))},Ue.Wo=function(a){nr.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},Ue.Lj=function(){if(0<this.jb.count){var a=this.diagram;if(a!==null)for(var y=a.commandHandler!==null?a.commandHandler.deletesConnectedLinks:!0,x=this.jb.copy().iterator;x.next();){var b=x.value;y?a.remove(b):(b.fromNode===this&&(b.fromNode=null),b.toNode===this&&(b.toNode=null))}}this.labeledLink=null,nr.prototype.Lj.call(this)},Ue.ns=function(a){if(this.wc===null){if(a===""&&this.Te===!1)return this;$S(this)}var y=this.wc.I(a);return y!==null||a!==""&&(y=this.wc.I(""),y!==null)?y:this};function $S(a){a.wc===null?a.wc=new Ii:a.wc.clear(),a.qm(a,function(y,x){XS(y,x)}),a.wc.count===0&&a.wc.add("",a)}function XS(a,y){var x=y.portId;x!==null&&a.wc!==null&&a.wc.add(x,y)}function qv(a,y,x){var b=y.portId;if(b!==null&&(a.wc!==null&&a.wc.remove(b),y=a.diagram,y!==null&&x)){for(x=null,a=a.findLinksConnected(b);a.next();)b=a.value,x===null&&(x=gn()),x.push(b);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);kn(x)}}}Ue.Nz=function(a){if(a===null||a===this)return!1;var y=!0,x=this.diagram;if(x!==null&&(y=x.isTreePathToChildren),x=this,y)for(;x!==a;){y=null;for(var b=x.jb.iterator;b.next();){var E=b.value;if(E.isTreeLink&&(y=E.fromNode,y!==x&&y!==this))break}if(y===this||y===null||y===x)return!1;x=y}else for(;x!==a;){for(y=null,b=x.jb.iterator;b.next()&&(E=b.value,!E.isTreeLink||(y=E.toNode,y===x||y===this)););if(y===this||y===null||y===x)return!1;x=y}return!0},Ue.xz=function(){var a=!0,y=this.diagram;if(y!==null&&(a=y.isTreePathToChildren),y=this,a)for(;;){a=null;for(var x=y.jb.iterator;x.next();){var b=x.value;if(b.isTreeLink&&(a=b.fromNode,a!==y&&a!==this))break}if(a===this)return this;if(a===null||a===y)return y;y=a}else for(;;){for(a=null,x=y.jb.iterator;x.next()&&(b=x.value,!b.isTreeLink||(a=b.toNode,a===y||a===this)););if(a===this)return this;if(a===null||a===y)return y;y=a}},Ue.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)o0(y,!0),y=y.pg();var x=null;for(y=a;y!==null;){if(y.G&1048576){x=y;break}y=y.pg()}for(y=this;y!==null;)o0(y,!1),y=y.pg();return x},Ue.kh=function(){var a=!0,y=this.diagram;if(y!==null&&(a=y.isTreePathToChildren),y=this.jb.iterator,a){for(;y.next();)if(a=y.value,a.isTreeLink&&a.fromNode!==this)return a}else for(;y.next();)if(a=y.value,a.isTreeLink&&a.toNode!==this)return a;return null},Ue.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof Li)return a;a=this.diagram,a=a!==null?a.isTreePathToChildren:!0;for(var y=this.jb.iterator;y.next();){var x=y.value;if(x.isTreeLink&&(x=a?x.fromNode:x.toNode,x!==this))return this.ci=x}return this.ci=null},Ue.vz=function(){function a(x,b){b.add(x);var E=x.kh();E!==null&&(b.add(E),x=x.pg(),x!==null&&a(x,b))}var y=new Fn;return a(this,y),y},Ue.uz=function(){return QS(this,this)};function QS(a,y){return y=y.pg(),y===null?0:1+QS(a,y)}Ue.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new Hi(this.jb);var x=this;return y.predicate=a?function(b){return!!(b.isTreeLink&&b.fromNode===x)}:function(b){return!!(b.isTreeLink&&b.toNode===x)},y},Ue.Ou=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren);var x=y=null,b=this.jb.iterator;if(a)for(;b.next();)a=b.value,a.isTreeLink&&a.fromNode===this&&(a=a.toNode,y!==null?y.add(a):x!==null&&x!==a?(y=new Ht,y.add(x),y.add(a)):x=a);else for(;b.next();)a=b.value,a.isTreeLink&&a.toNode===this&&(a=a.fromNode,y!==null?y.add(a):x!==null&&x!==a?(y=new Ht,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new Xi(x):br},Ue.wz=function(a){a===void 0&&(a=1/0);var y=new Fn;return pg(y,this,!1,a,!0),y},Li.prototype.collapseTree=function(a){a===void 0&&(a=1),1>a&&(a=1);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new Fn;x.add(this),JS(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Re),y.Ue=!1}};function JS(a,y,x,b,E,z,te){if(1<b)for(var re=x?a.Mo():a.Sd();re.next();){var le=re.value;le.isTreeLink&&(le=le.To(a),le===null||le===a||y.contains(le)||(y.add(le),JS(le,y,x,b-1,E,z,te)))}else qS(a,y,x,E,z,te)}function qS(a,y,x,b,E,z){for(var te=E===a?!0:a.isTreeExpanded,re=x?a.Mo():a.Sd(),le={};re.next();){var ce=re.value;if(ce.isTreeLink&&(ce=ce.To(a),ce!==null&&ce!==a)){var de=y.contains(ce);if(de||y.add(ce),te){var ve=x?ce.Oo():ce.Po();le.uv=a,ve.all(function(Pe){return function(Le){return Le===Pe.uv||!Le.isTreeExpanded}}(le))&&b.Aj(ce,E),ce.oh(),ce.Zb(!1)}ce.isTreeExpanded&&(ce.wasTreeExpanded=ce.isTreeExpanded,de||qS(ce,y,x,b,E,z))}le={uv:le.uv}}a.isTreeExpanded=!1}Li.prototype.expandTree=function(a){a===void 0&&(a=2),2>a&&(a=2);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new Fn;x.add(this),ex(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Re),y.Ue=!1}};function ex(a,y,x,b,E,z,te){for(var re=z===a?!1:a.isTreeExpanded,le=x?a.Mo():a.Sd(),ce={};le.next();){var de=le.value;if(de.isTreeLink&&(re||de.fd||de.bb(),de=de.To(a),de!==null&&de!==a&&!y.contains(de))){if(y.add(de),!re){de.Zb(!0),de.oh();var ve=x?de.Oo():de.Po();ce.vv=a,ve.all(function(Pe){return function(Le){return Le===Pe.vv||!Le.isTreeExpanded}}(ce))&&E.Cj(de,z)}(2<b||de.wasTreeExpanded)&&(de.wasTreeExpanded=!1,ex(de,y,x,b-1,E,z,te))}ce={vv:ce.vv}}a.isTreeExpanded=!0}Nt.Object.defineProperties(Li.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:l0},set:function(a){var y=this.portSpreading;y!==a&&(Gh(this),this.Ba.er=a,this.g("portSpreading",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.Bd())}},avoidable:{get:function(){return(this.U&8)!==0},set:function(a){var y=(this.U&8)!==0;if(y!==a){this.U^=8;var x=this.diagram;x!==null&&ph(x,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:Yl},set:function(a){typeof a=="number"&&(a=new $i(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),Gh(this),this.Ba.yp=a;var x=this.diagram;x!==null&&ph(x,this),this.g("avoidableMargin",y,a)}}},linksConnected:{get:function(){return this.jb.iterator}},linkConnected:{get:function(){return this.Ba!==null?this.Ba.Dq:null},set:function(a){var y=this.linkConnected;y!==a&&(Gh(this),this.Ba.Dq=a,this.g("linkConnected",y,a))}},linkDisconnected:{get:function(){return this.Ba!==null?this.Ba.Eq:null},set:function(a){var y=this.linkDisconnected;y!==a&&(Gh(this),this.Ba.Eq=a,this.g("linkDisconnected",y,a))}},linkValidation:{get:function(){return this.Ba!==null?this.Ba.gj:null},set:function(a){var y=this.linkValidation;y!==a&&(Gh(this),this.Ba.gj=a,this.g("linkValidation",y,a))}},isLinkLabel:{get:function(){return this.Yk!==null}},labeledLink:{get:function(){return this.Yk},set:function(a){var y=this.Yk;if(y!==a){var x=this.diagram,b=this.data;if(y!==null){if(y.wd!==null&&(y.wd.remove(this),y.v()),x!==null&&b!==null&&!x.undoManager.isUndoingRedoing){var E=y.data,z=x.model;if(E!==null&&z.ri()){var te=z.wa(b);te!==void 0&&z.Qx(E,te)}}this.containingGroup=null}this.Yk=a,a!==null&&(ix(a,this),x===null||b===null||x.undoManager.isUndoingRedoing||(E=a.data,x=x.model,E!==null&&x.ri()&&(b=x.wa(b),b!==void 0&&x.Bu(E,b))),this.containingGroup=a.containingGroup),el(this),this.g("labeledLink",y,a)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&$S(this),this.wc.iteratorValues}},isTreeExpanded:{get:function(){return(this.U&1)!==0},set:function(a){var y=(this.U&1)!==0;if(y!==a){this.U^=1;var x=this.diagram;if(this.g("isTreeExpanded",y,a),y=this.treeExpandedChanged,y!==null){var b=!0;x!==null&&(b=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=b)}x!==null&&x.undoManager.isUndoingRedoing?this.Zb(a):a?this.expandTree():this.collapseTree()}}},wasTreeExpanded:{get:function(){return(this.U&2)!==0},set:function(a){var y=(this.U&2)!==0;y!==a&&(this.U^=2,this.g("wasTreeExpanded",y,a))}},treeExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Vr:null},set:function(a){var y=this.treeExpandedChanged;y!==a&&(Gh(this),this.Ba.Vr=a,this.g("treeExpandedChanged",y,a))}},isTreeLeaf:{get:function(){return(this.U&4)!==0},set:function(a){var y=(this.U&4)!==0;y!==a&&(this.U^=4,this.g("isTreeLeaf",y,a))}}}),Li.prototype.expandTree=Li.prototype.expandTree,Li.prototype.collapseTree=Li.prototype.collapseTree,Li.prototype.findTreeParts=Li.prototype.wz,Li.prototype.findTreeChildrenNodes=Li.prototype.Ou,Li.prototype.findTreeChildrenLinks=Li.prototype.Qo,Li.prototype.findTreeLevel=Li.prototype.uz,Li.prototype.findTreeParentChain=Li.prototype.vz,Li.prototype.findTreeParentNode=Li.prototype.pg,Li.prototype.findTreeParentLink=Li.prototype.kh,Li.prototype.findCommonTreeParent=Li.prototype.gz,Li.prototype.findTreeRoot=Li.prototype.xz,Li.prototype.isInTreeOf=Li.prototype.Nz,Li.prototype.findPort=Li.prototype.ns,Li.prototype.findLinksTo=Li.prototype.kz,Li.prototype.findLinksBetween=Li.prototype.jz,Li.prototype.findNodesInto=Li.prototype.Oo,Li.prototype.findNodesOutOf=Li.prototype.Po,Li.prototype.findNodesConnected=Li.prototype.Mu,Li.prototype.findLinksInto=Li.prototype.Sd,Li.prototype.findLinksOutOf=Li.prototype.Mo,Li.prototype.findExternalTreeLinksConnected=Li.prototype.qx,Li.prototype.invalidateConnectedLinks=Li.prototype.Bd,Li.prototype.invalidateLinkBundle=Li.prototype.Lz;var D1=new tn(Li,"SpreadingNone",10),l0=new tn(Li,"SpreadingEvenly",11),ey=new tn(Li,"SpreadingPacked",12);Li.className="Node",Li.SpreadingNone=D1,Li.SpreadingEvenly=l0,Li.SpreadingPacked=ey;function _r(a,y){a===void 0||a instanceof nl||typeof a=="string"?Li.call(this,a):(Li.call(this),a&&(y=a)),this.U|=4608,this.Gn=new Fn,this.$a=null,this.Sc=new Wa,this.Sc.group=this,this.gl=new Fn,this.tb=this.$p=null,y&&Object.assign(this,y)}qt(_r,Li),_r.prototype.cloneProtected=function(a){Li.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof wu});y instanceof wu?a.$a=y:a.$a=null,this.Sc!==null?(a.Sc=this.Sc.copy(),a.Sc.group=a):(a.Sc!==null&&(a.Sc.group=null),a.Sc=null),this.tb!==null&&(a.tb=this.tb.copy())},Ue=_r.prototype,Ue.Af=function(a){Li.prototype.Af.call(this,a);var y=a.Rj();for(a=a.memberParts;a.next();){var x=a.value;if(x.v(),x.C(8),x.Ej(),x instanceof Li)x.Bd(y);else if(x instanceof yi)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},Ue.gk=function(a,y,x,b,E,z,te){if(a===Ka&&y==="elements"){if(E instanceof wu)this.$a===null?this.$a=E:this.$a!==E&&bt("Cannot insert a second Placeholder into the visual tree of a Group.");else if(E instanceof hi){var re=E.Nl(function(le){return le instanceof wu});re instanceof wu&&(this.$a===null?this.$a=re:this.$a!==re&&bt("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===ms&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof hi&&this.$a.rg(b)&&(this.$a=null));Li.prototype.gk.call(this,a,y,x,b,E,z,te)},Ue.Xl=function(a,y){Li.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==hi.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof hi&&(a=a.Pb()),this.tb===null&&(this.tb=new jn),a.mi(this.tb),a instanceof eo&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},Ue.eh=function(a,y,x,b){this.nf=this.$a,Li.prototype.eh.call(this,a,y,x,b)},Ue.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof yi||y.Va()}),Li.prototype.Va.call(this)},Ue.si=function(){if(!Li.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof Li){if(y.isVisible()&&Il(y))return!1}else if(y instanceof yi&&y.isVisible()&&Il(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function ty(a,y){if(a.Gn.add(y)){y instanceof _r&&a.gl.add(y);var x=a.memberAdded;if(x!==null){var b=!0,E=a.diagram;E!==null&&(b=E.aa,E.aa=!0),x(a,y),E!==null&&(E.aa=b)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!1)}y instanceof yi&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function ny(a,y){if(a.Gn.remove(y)){y instanceof _r&&a.gl.remove(y);var x=a.memberRemoved;if(x!==null){var b=!0,E=a.diagram;E!==null&&(b=E.aa,E.aa=!0),x(a,y),E!==null&&(E.aa=b)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!0)}y instanceof yi&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}Ue.Lj=function(){if(0<this.Gn.count){var a=this.diagram;if(a!==null)for(var y=this.Gn.copy().iterator;y.next();)a.remove(y.value)}Li.prototype.Lj.call(this)},_r.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=mn(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},_r.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var b=!0;for(a=mn(a).iterator;a.next();){var E=a.value;!y||x.isValidMember(this,E)?E.containingGroup=this:b=!1}return b},_r.prototype.canUngroup=function(){if(!this.ungroupable)return!1;var a=this.layer;return a===null||!a.allowUngroup?!1:(a=a.diagram,!!(a===null||a.allowUngroup))},Ue=_r.prototype,Ue.Bd=function(a){var y=(this.U&65536)!==0;if(Li.prototype.Bd.call(this,a),!y)for(!(this.U&65536)&&(this.U=this.U^65536),y=this.Lu();y.next();){var x=y.value;if(a===void 0||!a.contains(x)){var b=x.fromNode;b!==null&&b!==this&&b.Td(this)&&!b.isVisible()?(gc(x.fromPort),gc(x.toPort),x.bb()):(b=x.toNode,b!==null&&b!==this&&b.Td(this)&&!b.isVisible()&&(gc(x.fromPort),gc(x.toPort),x.bb()))}}},Ue.Lu=function(){var a=this.diagram!==null&&this.diagram.Pw;if(a&&this.$p!==null)return this.$p.iterator;var y=this.Rj();y.add(this);for(var x=new Fn,b=y.iterator;b.next();){var E=b.value;if(E instanceof Li)for(E=E.linksConnected;E.next();){var z=E.value;y.contains(z)||x.add(z)}}return a&&(this.$p=x),x.iterator},Ue.iz=function(){var a=this.Rj();a.add(this);for(var y=new Fn,x=a.iterator;x.next();){var b=x.value;if(b instanceof Li)for(b=b.linksConnected;b.next();){var E=b.value,z=E.fromNode;z===null||a.contains(z)&&z!==this||y.add(z),E=E.toNode,E===null||a.contains(E)&&E!==this||y.add(E)}}return y.iterator},Ue.hz=function(){function a(x,b){x!==null&&(b.add(x),a(x.containingGroup,b))}var y=new Fn;return a(this,y),y},Ue.Rj=function(){var a=new Fn;return pg(a,this,!0,0,!0),a.remove(this),a},Ue.Zb=function(a){Li.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},_r.prototype.collapseSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();tx(this,y,a,this),a.Ue=!1}};function tx(a,y,x,b){for(var E=a.memberParts;E.next();){var z=E.value;if(z.Zb(!1),z instanceof _r&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,tx(z,y,x,b)),z instanceof Li)z.Bd(y),x.Aj(z,b);else if(z instanceof yi)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}_r.prototype.expandSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();nx(this,y,a,this),a.Ue=!1}};function nx(a,y,x,b){for(var E=a.memberParts;E.next();){var z=E.value;if(z.Zb(!0),z instanceof _r&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,nx(z,y,x,b)),z instanceof Li)z.Bd(y),x.Cj(z,b);else if(z instanceof yi)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}_r.prototype.move=function(a,y){y===void 0&&(y=!1);var x=y?this.location:this.position,b=x.x;x=x.y;var E=a.x,z=a.y;if(!(b===E||isNaN(b)&&isNaN(E))||!(x===z||isNaN(x)&&isNaN(z))){for(b=E-(isNaN(b)?0:b),x=z-(isNaN(x)?0:x),z=lt.alloc(),Li.prototype.move.call(this,a,y),a=new Fn,y=this.Rj().iterator;y.next();)E=y.value,E instanceof yi&&(E.suspendsRouting&&a.add(E),E.fd||E.fromNode!==this&&E.toNode!==this)&&(E.suspendsRouting=!0);for(y.reset();y.next();)if(E=y.value,!(E.ph()||E instanceof Li&&E.isLinkLabel)){var te=E.position,re=E.location;te.w()?(z.x=te.x+b,z.y=te.y+x,E.position=z):re.w()&&(z.x=re.x+b,z.y=re.y+x,E.location=z)}for(y.reset();y.next();)E=y.value,E instanceof yi&&(E.suspendsRouting=a.contains(E),E.fd||E.fromNode!==this&&E.toNode!==this)&&(te=E.position,z.x=te.x+b,z.y=te.y+x,z.w()?E.move(z):E.bb(),ry(E)&&E.bb());lt.free(z)}},Nt.Object.defineProperties(_r.prototype,{placeholder:{get:function(){return this.$a}},computesBoundsAfterDrag:{get:function(){return(this.U&2048)!==0},set:function(a){var y=(this.U&2048)!==0;y!==a&&(this.U^=2048,this.g("computesBoundsAfterDrag",y,a))}},computesBoundsIncludingLinks:{get:function(){return(this.U&4096)!==0},set:function(a){var y=(this.U&4096)!==0;y!==a&&(this.U^=4096,this.g("computesBoundsIncludingLinks",y,a))}},computesBoundsIncludingLocation:{get:function(){return(this.U&8192)!==0},set:function(a){var y=(this.U&8192)!==0;y!==a&&(this.U^=8192,this.g("computesBoundsIncludingLocation",y,a))}},handlesDragDropForMembers:{get:function(){return(this.U&16384)!==0},set:function(a){var y=(this.U&16384)!==0;y!==a&&(this.U^=16384,this.g("handlesDragDropForMembers",y,a))}},memberParts:{get:function(){return this.Gn.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;if(y!==a){a!==null&&a.diagram!==null&&a.diagram.layout===a&&bt("A layout cannot be both the Diagram.layout and a Group.layout: "+a),y!==null&&(y.diagram=null,y.group=null),this.Sc=a;var x=this.diagram;a!==null&&(a.diagram=x,a.group=this),x!==null&&(x.xh=!0),this.g("layout",y,a),x!==null&&x.$b()}}},memberAdded:{get:function(){return this.Ba!==null?this.Ba.Mq:null},set:function(a){var y=this.memberAdded;y!==a&&(Gh(this),this.Ba.Mq=a,this.g("memberAdded",y,a))}},memberRemoved:{get:function(){return this.Ba!==null?this.Ba.Nq:null},set:function(a){var y=this.memberRemoved;y!==a&&(Gh(this),this.Ba.Nq=a,this.g("memberRemoved",y,a))}},memberValidation:{get:function(){return this.Ba!==null?this.Ba.ij:null},set:function(a){var y=this.memberValidation;y!==a&&(Gh(this),this.Ba.ij=a,this.g("memberValidation",y,a))}},ungroupable:{get:function(){return(this.U&256)!==0},set:function(a){var y=(this.U&256)!==0;y!==a&&(this.U^=256,this.g("ungroupable",y,a))}},isSubGraphExpanded:{get:function(){return(this.U&512)!==0},set:function(a){var y=(this.U&512)!==0;if(y!==a){this.U^=512;var x=this.diagram;if(this.g("isSubGraphExpanded",y,a),y=this.subGraphExpandedChanged,y!==null){var b=!0;x!==null&&(b=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=b)}x!==null&&x.undoManager.isUndoingRedoing?(this.$a!==null&&this.$a.v(),this.memberParts.each(function(E){E.updateAdornments()})):a?this.expandSubGraph():this.collapseSubGraph()}}},wasSubGraphExpanded:{get:function(){return(this.U&1024)!==0},set:function(a){var y=(this.U&1024)!==0;y!==a&&(this.U^=1024,this.g("wasSubGraphExpanded",y,a))}},subGraphExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Kr:null},set:function(a){var y=this.subGraphExpandedChanged;y!==a&&(Gh(this),this.Ba.Kr=a,this.g("subGraphExpandedChanged",y,a))}},rh:{get:function(){return(this.U&32768)!==0},set:function(a){(this.U&32768)!==0!==a&&(this.U^=32768)}}}),_r.prototype.expandSubGraph=_r.prototype.expandSubGraph,_r.prototype.collapseSubGraph=_r.prototype.collapseSubGraph,_r.prototype.findSubGraphParts=_r.prototype.Rj,_r.prototype.findContainingGroupChain=_r.prototype.hz,_r.prototype.findExternalNodesConnected=_r.prototype.iz,_r.prototype.findExternalLinksConnected=_r.prototype.Lu,_r.prototype.ensureBounds=_r.prototype.Va,_r.className="Group";function wu(a){Rt.call(this),this.yb=ul,this.ko=new jn(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}qt(wu,Rt),wu.prototype.cloneProtected=function(a){Rt.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},wu.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return Qr(0,0,y.width,y.height,a.x,a.y)},wu.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof _r||a instanceof zo)||bt("Placeholder is not inside a Group or Adornment."),a instanceof _r){var y=this.computeBorder(this.ko),x=this.minSize,b=this.dc;for(gs(b,(isFinite(x.width)?Math.max(x.width,y.width):y.width)||0,(isFinite(x.height)?Math.max(x.height,y.height):y.height)||0),this.Ge(0,0,b.width,b.height),b=a.memberParts,x=!1;b.next();)if(b.value.isVisible()){x=!0;break}b=a.diagram,!x||b===null||b.animationManager.Xu(a)||isNaN(y.x)||isNaN(y.y)||(x=lt.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),lt.free(x))}else{y=this.dc,x=this.yb,b=x.left+x.right;var E=x.top+x.bottom,z=a.adornedObject;a.angle=z.li();var te=0;z instanceof eo&&(te=z.strokeWidth);var re=z.Df(),le=z.naturalBounds,ce=(le.width+te)*re;te=(le.height+te)*re,a.type!==hi.Link&&(re=z.ga(a.category==="Selection"?Hs:a.locationSpot,lt.alloc()),a.location=re,lt.free(re)),isNaN(ce)||isNaN(te)?(a=z.ga(Hs,lt.alloc()),ce=jn.allocAt(a.x,a.y,0,0),ce.Ye(z.ga(Fl,a)),ce.Ye(z.ga(ui,a)),ce.Ye(z.ga(Wl,a)),gs(y,ce.width+b||0,ce.height+E||0),this.Ge(-x.left,-x.top,y.width,y.height),lt.free(a),jn.free(ce)):(gs(y,ce+b||0,te+E||0),this.Ge(-x.left,-x.top,y.width,y.height))}},wu.prototype.eh=function(a,y,x,b){this.actualBounds.h(a,y,x,b)},wu.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,b=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof _r&&!y.layer.isTemporary&&y.computesBoundsAfterDrag&&this.ko.w()){var E=x.toolManager.findTool("Dragging");if(E===x.currentTool&&(x=E.computeBorder(y,this.ko,a),x!==null))return x}x=jn.alloc(),E=this.computeMemberBounds(x);var z=this.yb;return y instanceof _r&&!y.isSubGraphExpanded?a.h(E.x-z.left,E.y-z.top,0,0):a.h(E.x-z.left,E.y-z.top,Math.max(E.width+z.left+z.right,0),Math.max(E.height+z.top+z.bottom,0)),jn.free(x),b&&y instanceof _r&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},wu.prototype.computeMemberBounds=function(a){if(!(this.part instanceof _r))return a.h(0,0,0,0),a;for(var y=this.part,x=1/0,b=1/0,E=-1/0,z=-1/0,te=y.memberParts;te.next();){var re=te.value;if(re.isVisible()){if(re instanceof yi&&(!y.computesBoundsIncludingLinks||xu(re)||re.fromNode===y||re.toNode===y))continue;re=re.actualBounds,re.left<x&&(x=re.left),re.top<b&&(b=re.top),re.right>E&&(E=re.right),re.bottom>z&&(z=re.bottom)}}return isFinite(x)&&isFinite(b)?a.h(x,b,E-x,z-b):(y=y.location,a.h(y.x,y.y,0,0)),a},Nt.Object.defineProperties(wu.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new $i(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),wu.className="Placeholder";function yi(a){nr.call(this,hi.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=Eu,this.Om=0,this.Qm=Eu,this.Rm=NaN,this.qj=sy,this.po=.5,this.wd=null,this.Nb=new Ht().freeze(),this.Tg=this.Mg=null,this.ml=new jn,this.ua=new di,this.u=this.o=this.Sf=this.Wf=null,this.su=new lt,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}qt(yi,nr),yi.prototype.cloneProtected=function(a){nr.prototype.cloneProtected.call(this,a),a.Qa=this.Qa&-113,a.ff=this.ff,a.gn=this.gn,a.vf=this.vf,a.uo=this.uo,a.qk=this.qk,a.Om=this.Om,a.Qm=this.Qm,a.Rm=this.Rm,a.qj=this.qj,a.po=this.po,this.ba!==null&&(a.ba=this.ba.copy())},Ue=yi.prototype,Ue.Af=function(a){nr.prototype.Af.call(this,a),this.ff=a.ff,this.vf=a.vf,a.Mg=null,a.bb(),a.Sf=this.Sf;var y=a.fromPort;y!==null&&gc(y),a=a.toPort,a!==null&&gc(a)},Ue.qb=function(a){a.classType===yi?(a.value&2)===2?this.routing=a:a===wc||a===Wh||a===op?this.curve=a:a===Vp||a===f0||a===p0?this.adjusting=a:a!==sy&&a!==Eu&&bt("Unknown Link enum value for a Link property: "+a):nr.prototype.qb.call(this,a)},Ue.Xc=function(){this.ba===null&&(this.ba=new zu)},Ue.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),Il(a)||gg(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),Il(a)||gg(a)))},Ue.zv=function(){return!1},Ue.Av=function(){},Ue.Zc=function(){return!1},yi.prototype.computeAngle=function(a,y,x){return yi.computeAngle(y,x)},yi.computeAngle=function(a,y){switch(a){default:case Eu:a=0;break;case Kp:a=y;break;case Yp:a=y+90;break;case $p:a=y-90;break;case ly:a=y+180;break;case m0:a=Wt.bp(y),90<a&&270>a&&(a-=180);break;case Xp:a=Wt.bp(y+90),90<a&&270>a&&(a-=180);break;case Qp:a=Wt.bp(y-90),90<a&&270>a&&(a-=180);break;case v0:if(a=Wt.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return Wt.bp(a)};function ip(a){var y=a.fromNode,x=a.toNode,b=null;if(y!==null?b=x!==null?y.px(x):y.containingGroup:x!==null?b=x.containingGroup:b=null,y=b,x=a.Ah,x!==y){x!==null&&ny(x,a),a.Ah=y,y!==null&&ty(y,a);var E=a.containingGroupChanged;if(E!==null){var z=!0,te=a.diagram;te!==null&&(z=te.aa,te.aa=!0),E(a,x,y),te!==null&&(te.aa=z)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=b}Ue=yi.prototype,Ue.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&nr.prototype.oh.call(this)},Ue.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},Ue.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function ix(a,y){a.wd===null&&(a.wd=new Fn),a.wd.add(y),a.v()}Ue.Vo=function(a){if(nr.prototype.Vo.call(this,a),Jg(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,a0(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||a0(x,this,b)}Wp(this)}},Ue.Wo=function(a){if(nr.prototype.Wo.call(this,a),Jg(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,s0(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||s0(x,this,b)}Zp(this)}},Ue.Lj=function(){if(this.fd=!0,this.wd!==null){var a=this.diagram;if(a!==null)for(var y=this.wd.copy().iterator;y.next();)a.remove(y.value)}this.data!==null&&(a=this.diagram,a!==null&&a.partManager.removeDataForLink(this))},yi.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},yi.prototype.move=function(a,y){var x=y?this.location:this.position,b=x.x;isNaN(b)&&(b=0);var E=x.y;for(isNaN(E)&&(E=0),b=a.x-b,E=a.y-E,y===!0?nr.prototype.move.call(this,a,!1):(a=lt.allocAt(x.x+b,x.y+E),nr.prototype.move.call(this,a,!1),lt.free(a)),Hh(this,b,E),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+b,x.y+E)},yi.prototype.canRelinkFrom=function(){if(!this.relinkableFrom)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},yi.prototype.canRelinkTo=function(){if(!this.relinkableTo)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},yi.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(Mr),a;if(y===1)return a.assign(this.i(0)),a;if(y===2){var x=this.i(0),b=this.i(1);return a.h((x.x+b.x)/2,(x.y+b.y)/2),a}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===wc))return this.ua.Pu(.5,a),a.add(this.i(0)),x=this.ua.figures.first(),a.offset(-x.startX,-x.startY),a;if(this.computeCurve()===wc){if(y===3){x=this.i(0),b=this.i(1);var E=this.i(2);return Wt.ax(x.x,x.y,b.x,b.y,b.x,b.y,E.x,E.y,a),a}if(b=(y-1)/3|0,x=3*(b/2|0),b%2===1){b=this.i(x),E=this.i(x+1);var z=this.i(x+2);x=this.i(x+3),Wt.ax(b.x,b.y,E.x,E.y,z.x,z.y,x.x,x.y,a)}else a.assign(this.i(x));return a}var te=this.flattenedLengths;for(x=this.flattenedTotalLength,E=z=b=0;b<x/2&&z<y&&(E=te[z],!(b+E>x/2));)b+=E,z++;return y=this.i(z),z=this.i(z+1),1>Math.abs(y.x-z.x)?y.y>z.y?a.h(y.x,y.y-(x/2-b)):a.h(y.x,y.y+(x/2-b)):1>Math.abs(y.y-z.y)?y.x>z.x?a.h(y.x-(x/2-b),y.y):a.h(y.x+(x/2-b),y.y):(x=(x/2-b)/E,a.h(y.x+x*(z.x-y.x),y.y+x*(z.y-y.y))),a},yi.prototype.computeMidAngle=function(){var a=this.pointsCount;if(2>a)return NaN;if(a===2)return this.i(0).ab(this.i(1));if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===wc))return this.ua.wx(.5);if(this.computeCurve()===wc&&4<=a){var y=(a-1)/3|0,x=3*(y/2|0);if(y%2===1){x=Math.floor(x),a=this.i(x),y=this.i(x+1);var b=this.i(x+2);return x=this.i(x+3),Wt.My(a.x,a.y,y.x,y.y,b.x,b.y,x.x,x.y)}if(0<x&&x+1<a)return this.i(x-1).ab(this.i(x+1))}y=this.flattenedLengths,b=this.flattenedTotalLength;var E=0;x=0;for(var z;E<b/2&&x<a&&(z=y[x],!(E+z>b/2));)E+=z,x++;if(y=this.i(x),b=this.i(x+1),1>Math.abs(y.x-b.x)&&1>Math.abs(y.y-b.y)){if(0<x&&x+2<a)return this.i(x-1).ab(this.i(x+2))}else{if(1>Math.abs(y.x-b.x))return y.y>b.y?270:90;if(1>Math.abs(y.y-b.y))return y.x>b.x?180:0}return y.ab(b)},Ue=yi.prototype,Ue.i=function(a){return this.Nb.s[a]},Ue.dd=function(a,y){this.Nb.cd(a,y)},Ue.L=function(a,y,x){this.Nb.cd(a,new lt(y,x))},Ue.Kz=function(a,y){this.Nb.Gb(a,y)},Ue.m=function(a,y,x){this.Nb.Gb(a,new lt(y,x))},Ue.ne=function(a){this.Nb.add(a)},Ue.yf=function(a,y){this.Nb.add(new lt(a,y))},Ue.pv=function(a){this.Nb.mb(a)},Ue.Fj=function(){this.Nb.clear()};function Hh(a,y,x){if(y!==0||x!==0)if(a.pointsCount===0)a.defaultFromPoint&&a.defaultFromPoint.offset(y,x),a.defaultToPoint&&a.defaultToPoint.offset(y,x);else{for(var b=a.fd,E=new Ht,z=a.Nb.iterator;z.next();){var te=z.value;E.add(new lt(te.x+y,te.y+x).freeze())}E.freeze(),z=a.Nb,a.Nb=E,te=a.diagram,isNaN(y)||isNaN(x)||te!==null&&te.animationManager.zb?a.v():(a.ke.h(a.ke.x+y,a.ke.y+x),a.pa.h(a.pa.x+y,a.pa.y+x),el(a)),b?u0(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),te!==null&&te.animationManager.zb&&xa(te.animationManager,a,E),a.g("points",z,E)}}Ue.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},Ue.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,b=1/0,E=a.s,z=E.length,te=0;te<z;te++){var re=E[te];x=Math.min(re.x,x),b=Math.min(re.y,b)}re=te=1/0;for(var le=y.s,ce=le.length,de=0;de<ce;de++){var ve=le[de];te=Math.min(ve.x,te),re=Math.min(ve.y,re),ve.freeze()}if(y.freeze(),ce===z){for(z=0;z<ce;z++)if(de=E[z],ve=le[z],de.x-x!==ve.x-te||de.y-b!==ve.y-re){this.qc();break}}else this.qc();this.Mg=null,x=this.diagram,x!==null&&x.animationManager.zb&&xa(x.animationManager,this,y),u0(this),this.g("points",a,y)}},Ue.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function u0(a){a.Nb.count===0?a.fd=!1:(a.fd=!0,a.cq=null,a.vt=NaN,a.defaultFromPoint=a.i(0),a.defaultToPoint=a.i(a.pointsCount-1),g0(a,!1))}Ue.bb=function(){if(!this.suspendsRouting){var a=this.diagram;if(a){if(a.As.contains(this)||a.undoManager.isUndoingRedoing||(a=a.animationManager,a.isTicking&&!a.isAnimating))return;this.Tg===null||a.isTicking||(this.Tg=null)}a=this.path,a!==null&&(this.fd=!1,this.v(),a.v())}},Ue.vg=function(){if(!this.fd&&!this.computingPoints){var a=!0;try{this.computingPoints=!0,this.uh(),a=this.computePoints()}catch(y){this.computingPoints=!1,this.rv()}finally{this.computingPoints=!1,a?this.zf():this.rv()}}},yi.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(wf||(wf=new Li,wf.desiredSize=bo,wf.Va()),this.defaultFromPoint&&(wf.location=this.defaultFromPoint,wf.Va(),y=a=wf)):y=this.fromPort,y!==null&&!a.isVisible()){var x=a.findVisibleNode();x!==null&&x!==a?(a=x,y=x.port):a=x}if(this.Lw=a,a===null||!a.location.w())return!1;for(;!(y===null||y.actualBounds.w()&&y.Ed());)y=y.panel;if(y===null)return!1;var b=this.toNode,E=null;if(b===null?(Ef||(Ef=new Li,Ef.desiredSize=bo,Ef.Va()),this.defaultToPoint&&(Ef.location=this.defaultToPoint,Ef.Va(),E=b=Ef)):E=this.toPort,E===null||b.isVisible()||(x=b.findVisibleNode(),x!==null&&x!==b?(b=x,E=x.port):b=x),this.Mw=b,b===null||!b.location.w())return!1;for(;!(E===null||E.actualBounds.w()&&E.Ed());)E=E.panel;if(E===null)return!1;var z=this.pointsCount,te=this.computeSpot(!0,y);x=this.computeSpot(!1,E);var re=rp(te),le=rp(x),ce=y===E&&y!==null,de=this.isOrthogonal,ve=this.curve===wc;this.Wf=ce&&!de?ve=!0:!1;var Pe=this.computeAdjusting()===Eu||ce;if(!de&&!ce&&re&&le){if(re=!1,!Pe&&3<=z&&(Pe=this.getLinkPoint(a,y,te,!0,!1,b,E),le=this.getLinkPoint(b,E,x,!1,!1,a,y),re=this.adjustPoints(0,Pe,z-1,le))&&(Pe=this.getLinkPoint(a,y,te,!0,!1,b,E),le=this.getLinkPoint(b,E,x,!1,!1,a,y),this.adjustPoints(0,Pe,z-1,le)),!re)if(this.Fj(),ve){z=this.getLinkPoint(a,y,te,!0,!1,b,E),Pe=this.getLinkPoint(b,E,x,!1,!1,a,y),re=Pe.x-z.x,le=Pe.y-z.y,ce=this.computeCurviness(),ve=de=0;var Le=z.x+re/3,Fe=z.y+le/3,Ze=Le,pt=Fe;Wt.B(le,0)?pt=0<re?pt-ce:pt+ce:(de=-re/le,ve=Math.sqrt(ce*ce/(de*de+1)),0>ce&&(ve=-ve),Ze=(0>le?-1:1)*ve+Le,pt=de*(Ze-Le)+Fe),Le=z.x+2*re/3,Fe=z.y+2*le/3;var at=Le,Ct=Fe;Wt.B(le,0)?Ct=0<re?Ct-ce:Ct+ce:(at=(0>le?-1:1)*ve+Le,Ct=de*(at-Le)+Fe),this.Fj(),this.ne(z),this.yf(Ze,pt),this.yf(at,Ct),this.ne(Pe),this.dd(0,this.getLinkPoint(a,y,te,!0,!1,b,E)),this.dd(3,this.getLinkPoint(b,E,x,!1,!1,a,y))}else z=b,Pe=E,b=this.getLinkPoint(a,y,te,!0,!1,z,Pe),E=this.getLinkPoint(z,Pe,x,!1,!1,a,y),this.hasCurviness()?(Pe=E.x-b.x,x=E.y-b.y,te=this.computeCurviness(),a=b.x+Pe/2,y=b.y+x/2,z=a,re=y,Wt.B(x,0)?re=0<Pe?re-te:re+te:(Pe=-Pe/x,z=Math.sqrt(te*te/(Pe*Pe+1)),0>te&&(z=-z),z=(0>x?-1:1)*z+a,re=Pe*(z-a)+y),this.ne(b),this.yf(z,re),this.ne(E)):(this.ne(b),this.ne(E),re=jn.alloc(),y.mi(re),le=re.ca(E),Pe.mi(re),ce=re.ca(b),(le||ce)&&(te=y.ga(d0(te),new lt),this.dd(0,this.getLinkPointFromPoint(a,y,te,E,!0,te)),x=Pe.ga(d0(x),new lt),this.dd(1,this.getLinkPointFromPoint(z,Pe,x,b,!1,x))),jn.free(re))}else{ve=this.isAvoiding,Pe&&(de&&ve||ce)&&this.Fj();var Lt=ce?this.computeCurviness():0;ve=this.getLinkPoint(a,y,te,!0,de,b,E),Le=Ze=Fe=0,(de||!re||ce)&&(pt=this.computeEndSegmentLength(a,y,te,!0),Le=this.getLinkDirection(a,y,ve,te,!0,de,b,E),ce&&(re||te.D(x)||!de&&te.x+x.x===1&&te.y+x.y===1)&&(Le-=de?90:30,0>Lt&&(Le-=180)),0>Le?Le+=360:360<=Le&&(Le-=360),ce&&(pt+=Math.abs(Lt)*(de?1:2)),Le===0?Fe=pt:Le===90?Ze=pt:Le===180?Fe=-pt:Le===270?Ze=-pt:(Fe=pt*Math.cos(Le*Math.PI/180),Ze=pt*Math.sin(Le*Math.PI/180)),te.Mc()&&ce&&(pt=y.ga(wo,lt.alloc()),at=lt.allocAt(pt.x+1e3*Fe,pt.y+1e3*Ze),this.getLinkPointFromPoint(a,y,pt,at,!0,ve),lt.free(pt),lt.free(at))),pt=this.getLinkPoint(b,E,x,!1,de,a,y);var Dt=Ct=at=0;if(de||!le||ce){var Kt=this.computeEndSegmentLength(b,E,x,!1);Dt=this.getLinkDirection(b,E,pt,x,!1,de,a,y),ce&&(le||te.D(x)||!de&&te.x+x.x===1&&te.y+x.y===1)&&(Dt+=de?0:30,0>Lt&&(Dt+=180)),0>Dt?Dt+=360:360<=Dt&&(Dt-=360),ce&&(Kt+=Math.abs(Lt)*(de?1:2)),Dt===0?at=Kt:Dt===90?Ct=Kt:Dt===180?at=-Kt:Dt===270?Ct=-Kt:(at=Kt*Math.cos(Dt*Math.PI/180),Ct=Kt*Math.sin(Dt*Math.PI/180)),x.Mc()&&ce&&(x=E.ga(wo,lt.alloc()),te=lt.allocAt(x.x+1e3*at,x.y+1e3*Ct),this.getLinkPointFromPoint(b,E,x,te,!1,pt),lt.free(x),lt.free(te))}x=ve,(de||!re||ce)&&(x=new lt(ve.x+Fe,ve.y+Ze)),te=pt,(de||!le||ce)&&(te=new lt(pt.x+at,pt.y+Ct)),!Pe&&!de&&re&&3<z&&this.adjustPoints(0,ve,z-2,te)?this.dd(z-1,pt):!Pe&&!de&&le&&3<z&&this.adjustPoints(1,x,z-1,pt)?this.dd(0,ve):!Pe&&(de?6<=z:4<z)&&this.adjustPoints(1,x,z-2,te)?(this.dd(0,ve),this.dd(z-1,pt)):(this.Fj(),this.ne(ve),(de||!re||ce)&&this.ne(x),de&&this.addOrthoPoints(x,Le,te,Dt,a,b),(de||!le||ce)&&this.ne(te),this.ne(pt))}return!0};function iy(a,y){return Math.abs(y.x-a.x)>Math.abs(y.y-a.y)?(y.x>=a.x?y.x=a.x+9e9:y.x=a.x-9e9,y.y=a.y):(y.y>=a.y?y.y=a.y+9e9:y.y=a.y-9e9,y.x=a.x),y}yi.prototype.getLinkPointFromPoint=function(a,y,x,b,E,z){if(z===void 0&&(z=new lt),a===null||y===null)return z.assign(x),z;if(a.isVisible()||(E=a.findVisibleNode(),E!==null&&E!==a&&(y=E.port)),a=null,E=y.panel,E===null||E.se()||(E=E.panel),E===null){E=b.x,b=b.y;var te=x.x;x=x.y}else{a=E.oe,E=1/(a.m11*a.m22-a.m12*a.m21),te=a.m22*E;var re=-a.m12*E,le=-a.m21*E,ce=a.m11*E,de=E*(a.m21*a.dy-a.m22*a.dx),ve=E*(a.m12*a.dx-a.m11*a.dy);E=b.x*te+b.y*le+de,b=b.x*re+b.y*ce+ve,te=x.x*te+x.y*le+de,x=x.x*re+x.y*ce+ve}return y.Sj(E,b,te,x,z),a!==null&&z.transform(a),z};function c0(a,y){var x=y.Zn;return x===null&&(x=new Cf,x.port=y,x.node=y.part,y.Zn=x),dx(x,a)}yi.prototype.getLinkPoint=function(a,y,x,b,E,z,te,re){if(re===void 0&&(re=new lt),x.sb()&&!rp(x))return y.ga(x,re),re;if(x.$c()){var le=c0(this,y);if(le!==null){if(re.assign(le.Zo),E&&this.routing===ox){var ce=c0(this,te);if(ce!==null&&le.Gl<ce.Gl){le=lt.alloc(),ce=lt.alloc();var de=new jn(y.ga(Hs,le),y.ga(Fl,ce)),ve=this.computeSpot(!b,te);a=this.getLinkPoint(z,te,ve,!b,E,a,y,ce),(x.Hf(Ws)||x.Hf(Zs))&&a.y>=de.y&&a.y<=de.y+de.height?re.y=a.y:(x.Hf(Zu)||x.Hf(Al))&&a.x>=de.x&&a.x<=de.x+de.width&&(re.x=a.x),lt.free(le),lt.free(ce)}}return re}}return x=y.ga(d0(x),lt.alloc()),this.pointsCount>(E?6:2)?(te=b?this.i(1):this.i(this.pointsCount-2),E&&(te=iy(x,te.copy()))):(le=this.computeSpot(!b,te),z=lt.alloc(),te=te.ga(d0(le),z),E&&(te=iy(x,te)),lt.free(z)),this.getLinkPointFromPoint(a,y,x,te,b,re),lt.free(x),re},yi.prototype.getLinkDirection=function(a,y,x,b,E,z,te,re){e:if(b.sb())var le=b.x>b.y?b.x>1-b.y?0:b.x<1-b.y?270:315:b.x<b.y?b.x>1-b.y?90:b.x<1-b.y?180:135:.5>b.x?225:.5<b.x?45:0;else{if(b.$c()&&(le=c0(this,y),le!==null))switch(le.Nc){case 1:le=270;break e;case 2:le=180;break e;default:case 4:le=0;break e;case 8:le=90;break e}le=y.ga(wo,lt.alloc()),this.pointsCount>(z?6:2)?(re=E?this.i(1):this.i(this.pointsCount-2),re=z?iy(le,re.copy()):x):(x=lt.alloc(),re=re.ga(wo,x),lt.free(x)),x=Math.abs(re.x-le.x)>Math.abs(re.y-le.y)?re.x>=le.x?0:180:re.y>=le.y?90:270,lt.free(le),le=x}return b.Mc()&&te.Td(a)&&(le+=180,360<=le&&(le-=360)),rp(b)||(a=y.li(),a===0)||(45<=a&&135>a?le+=90:135<=a&&225>a?le+=180:225<=a&&315>a&&(le+=270),360<=le&&(le-=360)),le},yi.prototype.computeEndSegmentLength=function(a,y,x,b){return y!==null&&x.$c()&&(a=c0(this,y),a!==null)?a.Ju:(a=b?this.fromEndSegmentLength:this.toEndSegmentLength,y!==null&&isNaN(a)&&(a=b?y.fromEndSegmentLength:y.toEndSegmentLength),isNaN(a)&&(a=10),a)},yi.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=wo:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===Vr?is:y)):(a=y||this.toPort,a===null?a=wo:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===Vr?is:y)),a};function rp(a){return a===is||a.x===.5&&a.y===.5}function d0(a){return a.x===.5&&a.y===.5?a:wo}yi.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==Eu&&4<this.pointsCount?this.computeMidPoint(new lt):(a=y.Zn,a=a!==null?dx(a,this):null,a!==null?a.Zo:y.ga(wo))},yi.prototype.computeShortLength=function(a){if(a){if(a=this.fromShortLength,isNaN(a)){var y=this.fromPort;y!==null&&(a=y.fromShortLength)}return isNaN(a)?0:a}return a=this.toShortLength,isNaN(a)&&(y=this.toPort,y!==null&&(a=y.toShortLength)),isNaN(a)?0:a},yi.prototype.Cf=function(a,y,x,b,E,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var te=z;if(z===void 0&&(te=fr.alloc(),te.reset()),te.multiply(this.transform),this.fh(a,te))return Nv(this,y,x,E),z===void 0&&fr.free(te),!0;if(this.Yc(a,te)){var re=!1;if(!this.isAtomic)for(var le=this.O.s,ce=le.length;ce--;){var de=le[ce];if(de.visible||de===this.locationObject){var ve=de.actualBounds,Pe=this.naturalBounds;if(!(ve.x>Pe.width||ve.y>Pe.height||0>ve.x+ve.width||0>ve.y+ve.height)){if(ve=fr.alloc(),ve.set(te),de instanceof hi)re=de.Cf(a,y,x,b,E,ve);else if(this.path===de){if(de instanceof eo)if(re=a,Pe=b,de.pickable===!1)re=!1;else if(ve.multiply(de.transform),Pe)e:{var Le=re,Fe=ve;if(de.fh(Le,Fe))re=!0;else{if(Fe===void 0&&(Fe=de.transform,Le.Re(de.actualBounds))){re=!0;break e}re=Le.left,Pe=Le.right;var Ze=Le.top;Le=Le.bottom;var pt=lt.alloc(),at=lt.alloc(),Ct=lt.alloc(),Lt=fr.alloc();Lt.set(Fe),Lt.bv(de.transform),Lt.Vj(),at.x=Pe,at.y=Ze,at.transform(Lt),pt.x=re,pt.y=Ze,pt.transform(Lt),Fe=!1,Xg(de,pt,at,Ct)?Fe=!0:(pt.x=Pe,pt.y=Le,pt.transform(Lt),Xg(de,pt,at,Ct)?Fe=!0:(at.x=re,at.y=Le,at.transform(Lt),Xg(de,pt,at,Ct)?Fe=!0:(pt.x=re,pt.y=Ze,pt.transform(Lt),Xg(de,pt,at,Ct)&&(Fe=!0)))),fr.free(Lt),lt.free(pt),lt.free(at),lt.free(Ct),re=Fe}}else re=de.fh(re,ve)}else re=oi(de,a,b,ve);re&&(Pe=de,y!==null&&(Pe=y(de)),Pe&&(x===null||x(Pe))&&E.add(Pe)),fr.free(ve)}}}return z===void 0&&fr.free(te),re||this.background!==null||this.areaBackground!==null}return z===void 0&&fr.free(te),!1},yi.prototype.computeCurve=function(){if(this.Wf===null){var a=this.fromPort,y=this.isOrthogonal;this.Wf=a!==null&&a===this.toPort&&!y}return this.Wf?wc:this.curve},yi.prototype.computeCorner=function(){if(this.curve===wc)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},yi.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];if(E!==a&&!E.isPanelMain&&(E.segmentIndex===-1/0||isNaN(E.segmentIndex)))return E}for(a=this.labelNodes;a.next();)if(y=a.value,y.segmentIndex===-1/0||isNaN(y.segmentIndex))return y;return null},yi.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var a=sx;a=Math.max(a,this.computeThickness());var y=this.fromPort,x=this.toPort;if(y!==null&&x!==null){var b=this.findMidLabel();if(b!==null){var E=b.naturalBounds,z=b.margin,te=isNaN(E.width)?30:E.width*b.scale+z.left+z.right;E=isNaN(E.height)?14:E.height*b.scale+z.top+z.bottom,b=b.segmentOrientation,b===Kp||b===m0||b===ly?a=Math.max(a,E):b===$p||b===Qp||b===Yp||b===Xp?a=Math.max(a,te):(y=y.ga(wo).ab(x.ga(wo))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*te)+Math.abs(Math.cos(y)*E)+1)),this.curve===wc&&(a*=1.333)}}return a},yi.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===Eu&&x.bb()}},yi.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=ax;var y=this.Sf;if(y!==null){for(var x=gn(),b=0,E=y.links,z=0;z<E.length;z++){var te=E[z].computeSpacing();x.push(te),b+=te}for(b=-b/2,z=0;z<E.length;z++){if(E[z]===this){a=b+x[z]/2;break}b+=x[z]}y.Ds===this.fromNode&&(a=-a),kn(x)}}return a},yi.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},yi.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},yi.prototype.adjustPoints=function(a,y,x,b){var E=this.computeAdjusting();if(this.isOrthogonal){if(E===f0)return!1;E===p0&&(E=Vp)}switch(E){case f0:var z=this.i(a),te=this.i(x);if(!z.Xa(y)||!te.Xa(b)){E=z.x,z=z.y;var re=te.x-E,le=te.y-z,ce=Math.sqrt(re*re+le*le);if(!Wt.$(ce,0)){if(Wt.$(re,0))var de=0>le?-Math.PI/2:Math.PI/2;else de=Math.atan(le/Math.abs(re)),0>re&&(de=Math.PI-de);te=y.x;var ve=y.y;re=b.x-te;var Pe=b.y-ve;for(le=Math.sqrt(re*re+Pe*Pe),Wt.$(re,0)?Pe=0>Pe?-Math.PI/2:Math.PI/2:(Pe=Math.atan(Pe/Math.abs(re)),0>re&&(Pe=Math.PI-Pe)),ce=le/ce,de=Pe-de,this.dd(a,y),a+=1;a<x;a++)y=this.i(a),re=y.x-E,le=y.y-z,y=Math.sqrt(re*re+le*le),Wt.$(y,0)||(Wt.$(re,0)?le=0>le?-Math.PI/2:Math.PI/2:(le=Math.atan(le/Math.abs(re)),0>re&&(le=Math.PI-le)),re=le+de,y*=ce,this.L(a,te+y*Math.cos(re),ve+y*Math.sin(re)));this.dd(x,b)}}return!0;case p0:if(z=this.i(a),ve=this.i(x),!z.Xa(y)||!ve.Xa(b)){E=z.x,z=z.y,te=ve.x,ve=ve.y,ce=(te-E)*(te-E)+(ve-z)*(ve-z),re=y.x,de=y.y,le=b.x,Pe=b.y;var Le=1;if(le-re!==0){var Fe=(Pe-de)/(le-re);Le=Math.sqrt(1+1/(Fe*Fe))}else Fe=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var Ze=y.x,pt=y.y,at=.5;ce!==0&&(at=((E-Ze)*(E-te)+(z-pt)*(z-ve))/ce);var Ct=E+at*(te-E),Lt=z+at*(ve-z);y=Math.sqrt((Ze-Ct)*(Ze-Ct)+(pt-Lt)*(pt-Lt)),pt<Fe*(Ze-Ct)+Lt&&(y=-y),0<Fe&&(y=-y),Ze=re+at*(le-re),at=de+at*(Pe-de),Fe!==0?(y=Ze+y/Le,this.L(a,y,at-(y-Ze)/Fe)):this.L(a,Ze,at+y)}this.dd(x,b)}return!0;case Vp:e:{if(this.isOrthogonal&&(E=this.i(a),z=this.i(a+1),te=this.i(a+2),re=z.x,de=z.y,ve=re,ce=de,Wt.B(E.y,z.y)?Wt.B(z.x,te.x)?de=y.y:Wt.B(z.y,te.y)&&(re=y.x):Wt.B(E.x,z.x)&&(Wt.B(z.y,te.y)?re=y.x:Wt.B(z.x,te.x)&&(de=y.y)),this.L(a+1,re,de),E=this.i(x),z=this.i(x-1),te=this.i(x-2),re=z.x,de=z.y,le=re,Pe=de,Wt.B(E.y,z.y)?Wt.B(z.x,te.x)?de=b.y:Wt.B(z.y,te.y)&&(re=b.x):Wt.B(E.x,z.x)&&(Wt.B(z.y,te.y)?re=b.x:Wt.B(z.x,te.x)&&(de=b.y)),this.L(x-1,re,de),ry(this))){this.L(a+1,ve,ce),this.L(x-1,le,Pe),x=!1;break e}this.dd(a,y),this.dd(x,b),x=!0}return x;default:return!1}},yi.prototype.addOrthoPoints=function(a,y,x,b,E,z){0>y?y+=360:360<=y&&(y-=360),0>b?b+=360:360<=b&&(b-=360);var te=b;y=315<=y||45>y?0:45<=y&&135>y?90:135<=y&&225>y?180:270,b=315<=b||45>b?0:45<=b&&135>b?90:135<=b&&225>b?180:270;var re=E.actualBounds.copy(),le=z.actualBounds.copy();if(re.w()&&le.w()){re.Bc(Jp,Jp),le.Bc(Jp,Jp),re.Ye(a),le.Ye(x);var ce=lt.alloc(),de=lt.alloc();y===0?x.x>a.x||b===270&&x.y<a.y&&le.right>a.x||b===90&&x.y>a.y&&le.right>a.x?(ce.h(x.x,a.y),de.h(x.x,(a.y+x.y)/2),b===180?(ce.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),de.x=ce.x,de.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(ce.x=a.x<le.left?this.computeMidOrthoPosition(a.x,a.y,le.left,x.y,!1):a.x<le.right&&(b===270&&a.y<le.top||b===90&&a.y>le.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):le.right,de.x=ce.x,de.y=x.y):b===0&&a.x<le.left&&a.y>le.top&&a.y<le.bottom&&(ce.x=a.x,ce.y=a.y<x.y?Math.min(x.y,le.top):Math.max(x.y,le.bottom),de.y=ce.y)):(ce.h(a.x,x.y),de.h((a.x+x.x)/2,x.y),(b===180||b===90&&x.y<re.top||b===270&&x.y>re.bottom)&&(b===180&&(le.ca(a)||re.ca(x))?ce.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===180||b===90)?ce.y=this.computeMidOrthoPosition(a.x,re.top,x.x,Math.max(x.y,le.bottom),!0):x.y>a.y&&(b===180||b===270)&&(ce.y=this.computeMidOrthoPosition(a.x,re.bottom,x.x,Math.min(x.y,le.top),!0)),de.x=x.x,de.y=ce.y),ce.y>re.top&&ce.y<re.bottom&&(x.x>=re.left&&x.x<=a.x||a.x<=le.right&&a.x>=x.x?(b===90||b===270)&&(ce.h(Math.max((a.x+x.x)/2,a.x),a.y),de.h(ce.x,x.y)):(ce.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===0?re.top:Math.min(re.top,le.top)):Math.max(x.y,b===0?re.bottom:Math.max(re.bottom,le.bottom)),de.x=x.x,de.y=ce.y))):y===180?x.x<a.x||b===270&&x.y<a.y&&le.left<a.x||b===90&&x.y>a.y&&le.left<a.x?(ce.h(x.x,a.y),de.h(x.x,(a.y+x.y)/2),b===0?(ce.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),de.x=ce.x,de.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(ce.x=a.x>le.right?this.computeMidOrthoPosition(a.x,a.y,le.right,x.y,!1):a.x>le.left&&(b===270&&a.y<le.top||b===90&&a.y>le.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):le.left,de.x=ce.x,de.y=x.y):b===180&&a.x>le.right&&a.y>le.top&&a.y<le.bottom&&(ce.x=a.x,ce.y=a.y<x.y?Math.min(x.y,le.top):Math.max(x.y,le.bottom),de.y=ce.y)):(ce.h(a.x,x.y),de.h((a.x+x.x)/2,x.y),(b===0||b===90&&x.y<re.top||b===270&&x.y>re.bottom)&&(b===0&&(le.ca(a)||re.ca(x))?ce.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===0||b===90)?ce.y=this.computeMidOrthoPosition(a.x,re.top,x.x,Math.max(x.y,le.bottom),!0):x.y>a.y&&(b===0||b===270)&&(ce.y=this.computeMidOrthoPosition(a.x,re.bottom,x.x,Math.min(x.y,le.top),!0)),de.x=x.x,de.y=ce.y),ce.y>re.top&&ce.y<re.bottom&&(x.x<=re.right&&x.x>=a.x||a.x>=le.left&&a.x<=x.x?(b===90||b===270)&&(ce.h(Math.min((a.x+x.x)/2,a.x),a.y),de.h(ce.x,x.y)):(ce.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===180?re.top:Math.min(re.top,le.top)):Math.max(x.y,b===180?re.bottom:Math.max(re.bottom,le.bottom)),de.x=x.x,de.y=ce.y))):y===90?x.y>a.y||b===180&&x.x<a.x&&le.bottom>a.y||b===0&&x.x>a.x&&le.bottom>a.y?(ce.h(a.x,x.y),de.h((a.x+x.x)/2,x.y),b===270?(ce.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),de.x=x.x,de.y=ce.y):b===180&&x.x<a.x||b===0&&x.x>a.x?(ce.y=a.y<le.top?this.computeMidOrthoPosition(a.x,a.y,x.x,le.top,!0):a.y<le.bottom&&(b===180&&a.x<le.left||b===0&&a.x>le.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):le.bottom,de.x=x.x,de.y=ce.y):b===90&&a.y<le.top&&a.x>le.left&&a.x<le.right&&(ce.x=a.x<x.x?Math.min(x.x,le.left):Math.max(x.x,le.right),ce.y=a.y,de.x=ce.x)):(ce.h(x.x,a.y),de.h(x.x,(a.y+x.y)/2),(b===270||b===0&&x.x<re.left||b===180&&x.x>re.right)&&(b===270&&(le.ca(a)||re.ca(x))?ce.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===270||b===0)?ce.x=this.computeMidOrthoPosition(re.left,a.y,Math.max(x.x,le.right),x.y,!1):x.x>a.x&&(b===270||b===180)&&(ce.x=this.computeMidOrthoPosition(re.right,a.y,Math.min(x.x,le.left),x.y,!1)),de.x=ce.x,de.y=x.y),ce.x>re.left&&ce.x<re.right&&(x.y>=re.top&&x.y<=a.y||a.y<=le.bottom&&a.y>=x.y?(b===0||b===180)&&(ce.h(a.x,Math.max((a.y+x.y)/2,a.y)),de.h(x.x,ce.y)):(ce.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===90?re.left:Math.min(re.left,le.left)):Math.max(x.x,b===90?re.right:Math.max(re.right,le.right)),de.x=ce.x,de.y=x.y))):x.y<a.y||b===180&&x.x<a.x&&le.top<a.y||b===0&&x.x>a.x&&le.top<a.y?(ce.h(a.x,x.y),de.h((a.x+x.x)/2,x.y),b===90?(ce.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),de.x=x.x,de.y=ce.y):b===180&&x.x<a.x||b===0&&x.x>=a.x?(ce.y=a.y>le.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,le.bottom,!0):a.y>le.top&&(b===180&&a.x<le.left||b===0&&a.x>le.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):le.top,de.x=x.x,de.y=ce.y):b===270&&a.y>le.bottom&&a.x>le.left&&a.x<le.right&&(ce.x=a.x<x.x?Math.min(x.x,le.left):Math.max(x.x,le.right),ce.y=a.y,de.x=ce.x)):(ce.h(x.x,a.y),de.h(x.x,(a.y+x.y)/2),(b===90||b===0&&x.x<re.left||b===180&&x.x>re.right)&&(b===90&&(le.ca(a)||re.ca(x))?ce.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===90||b===0)?ce.x=this.computeMidOrthoPosition(re.left,a.y,Math.max(x.x,le.right),x.y,!1):x.x>a.x&&(b===90||b===180)&&(ce.x=this.computeMidOrthoPosition(re.right,a.y,Math.min(x.x,le.left),x.y,!1)),de.x=ce.x,de.y=x.y),ce.x>re.left&&ce.x<re.right&&(x.y<=re.bottom&&x.y>=a.y||a.y>=le.top&&a.y<=x.y?(b===0||b===180)&&(ce.h(a.x,Math.min((a.y+x.y)/2,a.y)),de.h(x.x,ce.y)):(ce.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===270?re.left:Math.min(re.left,le.left)):Math.max(x.x,b===270?re.right:Math.max(re.right,le.right)),de.x=ce.x,de.y=x.y)));var ve=x;if(this.isAvoiding){var Pe=this.diagram;if(Pe===null||E===z||this.layer.isTemporary||!Gg(Pe)||re.ca(ve)&&!z.Td(E)||le.ca(a)&&!E.Td(z))y=!1;else{var Le=ss(Pe,!0,this.containingGroup,null);if(this.segmentIndex!==17&&Le.Yj(Math.min(a.x,ce.x),Math.min(a.y,ce.y),Math.abs(a.x-ce.x),Math.abs(a.y-ce.y))&&Le.Yj(Math.min(ce.x,de.x),Math.min(ce.y,de.y),Math.abs(ce.x-de.x),Math.abs(ce.y-de.y))&&Le.Yj(Math.min(de.x,ve.x),Math.min(de.y,ve.y),Math.abs(de.x-ve.x),Math.abs(de.y-ve.y)))y=!1;else{E=a,z=ve;var Fe=x=null;if(Pe.isVirtualized){Pe=Le.bounds.copy(),Pe.Bc(-Le.Ho,-Le.Go);var Ze=lt.alloc();ap(Le,a.x,a.y)||(Wt.Ff(Pe.x,Pe.y,Pe.x+Pe.width,Pe.y+Pe.height,a.x,a.y,ce.x,ce.y,Ze)?(x=a=Ze.copy(),y=Ze.ab(ce)):Wt.Ff(Pe.x,Pe.y,Pe.x+Pe.width,Pe.y+Pe.height,ce.x,ce.y,de.x,de.y,Ze)?(x=a=Ze.copy(),y=Ze.ab(de)):Wt.Ff(Pe.x,Pe.y,Pe.x+Pe.width,Pe.y+Pe.height,de.x,de.y,ve.x,ve.y,Ze)&&(x=a=Ze.copy(),y=Ze.ab(ve))),ap(Le,ve.x,ve.y)||(Wt.Ff(Pe.x,Pe.y,Pe.x+Pe.width,Pe.y+Pe.height,ve.x,ve.y,de.x,de.y,Ze)?(Fe=ve=Ze.copy(),b=de.ab(Ze)):Wt.Ff(Pe.x,Pe.y,Pe.x+Pe.width,Pe.y+Pe.height,de.x,de.y,ce.x,ce.y,Ze)?(Fe=ve=Ze.copy(),b=ce.ab(Ze)):Wt.Ff(Pe.x,Pe.y,Pe.x+Pe.width,Pe.y+Pe.height,ce.x,ce.y,a.x,a.y,Ze)&&(Fe=ve=Ze.copy(),b=a.ab(Ze))),lt.free(Ze)}re=re.copy().ed(le),re.Bc(Le.Ho*Le.Os,Le.Go*Le.Os),ux(Le,a,y,ve,b,re,!0),le=Qd(Le,ve.x,ve.y),!Le.abort&&le>=sp&&(lx(Le),re.Bc(Le.Ho*Le.Hx,Le.Go*Le.Ix),ux(Le,a,y,ve,b,re,!1),le=Qd(Le,ve.x,ve.y)),!Le.abort&&le<sp&&Qd(Le,ve.x,ve.y)!==Zh?(oy(this,Le,ve.x,ve.y,b,!0,te),re=this.i(2),4>this.pointsCount?(y===0||y===180?(re.x=a.x,re.y=ve.y):(re.x=ve.x,re.y=a.y),this.L(2,re.x,re.y),this.m(3,re.x,re.y)):(te=this.i(3),y===0||y===180?Wt.B(re.x,te.x)?(re=y===0?Math.max(re.x,a.x):Math.min(re.x,a.x),this.L(2,re,a.y),this.L(3,re,te.y)):Wt.B(re.y,te.y)?(Math.abs(a.y-re.y)<=Le.Go/2&&(this.L(2,re.x,a.y),this.L(3,te.x,a.y)),this.m(2,re.x,a.y)):this.L(2,a.x,re.y):(y===90||y===270)&&(Wt.B(re.y,te.y)?(re=y===90?Math.max(re.y,a.y):Math.min(re.y,a.y),this.L(2,a.x,re),this.L(3,te.x,re)):Wt.B(re.x,te.x)?(Math.abs(a.x-re.x)<=Le.Ho/2&&(this.L(2,a.x,re.y),this.L(3,a.x,te.y)),this.m(2,a.x,re.y)):this.L(2,re.x,a.y))),x!==null&&(a=this.i(1),te=this.i(2),a.x!==te.x&&a.y!==te.y?y===0||y===180?this.m(2,a.x,te.y):this.m(2,te.x,a.y):y===0||y===180?this.m(2,E.x,x.y):this.m(2,x.x,E.y)),Fe!==null&&(b===0||b===180?this.yf(z.x,Fe.y):this.yf(Fe.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(ce.copy()),this.ne(de.copy())),lt.free(ce),lt.free(de)}},yi.prototype.computeMidOrthoPosition=function(a,y,x,b,E){var z=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(z=this.computeCurviness()),E?(y+b)/2+z:(a+x)/2+z};function ry(a){if(a.diagram===null||!a.isAvoiding||!Gg(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=ss(a.diagram,!0,a.containingGroup,null);for(var b=1;b<x-2;b++){var E=y[b],z=y[b+1];if(!a.Yj(Math.min(E.x,z.x),Math.min(E.y,z.y),Math.abs(E.x-z.x),Math.abs(E.y-z.y)))return!0}return!1}function oy(a,y,x,b,E,z,te){var re=y.Ho,le=y.Go,ce=Qd(y,x,b),de=x,ve=b;for(E===0?de+=re:E===90?ve+=le:E===180?de-=re:ve-=le,E!==te&&ce>qg&&Qd(y,de,ve)!==ce-1&&(Qd(y,x-re,b)===ce-1?(E=180,de=x-re,ve=b):Qd(y,x+re,b)===ce-1?(E=0,de=x+re,ve=b):Qd(y,x,b-le)===ce-1?(E=270,de=x,ve=b-le):Qd(y,x,b+le)===ce-1&&(E=90,de=x,ve=b+le));ce>qg&&Qd(y,de,ve)===ce-1;)x=de,b=ve,E===0?de+=re:E===90?ve+=le:E===180?de-=re:ve-=le,--ce;z?ce>qg&&(E===180||E===0?x=Math.floor(x/re)*re+re/2:(E===90||E===270)&&(b=Math.floor(b/le)*le+le/2)):(x=Math.floor(x/re)*re+re/2,b=Math.floor(b/le)*le+le/2),ce>qg&&(z=E,te=x,de=b,E===0?(z=90,de+=le):E===90?(z=180,te-=re):E===180?(z=270,de-=le):E===270&&(z=0,te+=re),Qd(y,te,de)===ce-1?oy(a,y,te,de,z,!1,z):(te=x,de=b,E===0?(z=270,de-=le):E===90?(z=0,te+=re):E===180?(z=90,de+=le):E===270&&(z=180,te-=re),Qd(y,te,de)===ce-1&&oy(a,y,te,de,z,!1,z))),a.yf(x,b)}yi.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),b=this.i(1),E=ra(y,a,x.x,x.y,b.x,b.y),z=0,te=1;te<this.pointsCount-1;te++){x=this.i(te+1);var re=ra(y,a,b.x,b.y,x.x,x.y);b=x,re<E&&(z=te,E=re)}return z},yi.prototype.qc=function(){this.lk=!1,this.v()},yi.prototype.Ul=function(a){if(!(!a&&(this.fd===!1||(a=this.Pb(),this.lk&&(a===null||a.geometry!==null))))&&(2>this.pointsCount?this.lk=!0:this.ua=this.makeGeometry(),a=this.path,a!==null)){a.ua=this.ua;for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];E!==a&&E.isPanelMain&&E instanceof eo&&(E.ua=this.ua)}}},yi.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,x=!1,b=this.diagram;b!==null&&Jg(this)&&b.Eh.contains(this)&&(this.ml.width!==0||this.ml.height!==0)&&(b.animationManager.isAnimating||b.currentTool!==b.toolManager)&&(x=!0);var E=this.i(0).copy(),z=E.copy();b=this.Nb.s;var te=this.computeCurve();if(te===wc&&3<=y&&!Wt.$(this.smoothness,0))if(y===3){var re=this.i(1);b=Math.min(E.x,re.x);var le=Math.min(E.y,re.y);re=this.i(2),b=Math.min(b,re.x),le=Math.min(le,re.y)}else{if(this.isOrthogonal)for(le=0;le<y;le++)re=b[le],z.x=Math.min(re.x,z.x),z.y=Math.min(re.y,z.y);else for(b=3;b<y;b+=3)b+3>=y&&(b=y-1),le=this.i(b),z.x=Math.min(le.x,z.x),z.y=Math.min(le.y,z.y);b=z.x,le=z.y}else{for(le=0;le<y;le++)re=b[le],z.x=Math.min(re.x,z.x),z.y=Math.min(re.y,z.y);b=z.x,le=z.y}if(b-=this.su.x,le-=this.su.y,E.x-=b,E.y-=le,y!==2||Jg(this)){if(a.type=di.o,re=OS(a),this.computeShortLength(!0)!==0&&(E=xf(this,E,!0,z)),np(re,E.x,E.y,!1),te===wc&&3<=y&&!Wt.$(this.smoothness,0))if(y===3)x=this.i(1),y=x.x-b,x=x.y-le,E=this.i(2).copy(),E.x-=b,E.y-=le,this.computeShortLength(!1)!==0&&(E=xf(this,E,!1,z)),Uh(re,y,x,y,x,E.x,E.y);else if(this.isOrthogonal){y=lt.allocAt(b,le),x=lt.alloc(),x.assign(this.i(1)),z=lt.allocAt(b,le),E=lt.allocAt(b,le),te=this.i(0);for(var ce,de=this.smoothness/3,ve=1;ve<this.pointsCount-1;ve++){ce=this.i(ve);var Pe=te,Le=ce,Fe=this.i(ay(this,ce,ve,!1));if((!Wt.$(Pe.x,Le.x)||!Wt.$(Le.x,Fe.x))&&(!Wt.$(Pe.y,Le.y)||!Wt.$(Le.y,Fe.y))){var Ze=de;isNaN(Ze)&&(Ze=this.smoothness/3);var pt=Pe.x;Pe=Pe.y;var at=Le.x;Le=Le.y;var Ct=Fe.x;Fe=Fe.y;var Lt=Ze*h0(pt,Pe,at,Le);Ze*=h0(at,Le,Ct,Fe),Wt.$(Pe,Le)&&Wt.$(at,Ct)&&(at>pt?Fe>Le?(z.x=at-Lt,z.y=Le-Lt,E.x=at+Ze,E.y=Le+Ze):(z.x=at-Lt,z.y=Le+Lt,E.x=at+Ze,E.y=Le-Ze):Fe>Le?(z.x=at+Lt,z.y=Le-Lt,E.x=at-Ze,E.y=Le+Ze):(z.x=at+Lt,z.y=Le+Lt,E.x=at-Ze,E.y=Le-Ze)),Wt.$(pt,at)&&Wt.$(Le,Fe)&&(Le>Pe?(Ct>at?(z.x=at-Lt,z.y=Le-Lt,E.x=at+Ze):(z.x=at+Lt,z.y=Le-Lt,E.x=at-Ze),E.y=Le+Ze):(Ct>at?(z.x=at-Lt,z.y=Le+Lt,E.x=at+Ze):(z.x=at+Lt,z.y=Le+Lt,E.x=at-Ze),E.y=Le-Ze)),(Wt.$(pt,at)&&Wt.$(at,Ct)||Wt.$(Pe,Le)&&Wt.$(Le,Fe))&&(pt=.5*(pt+Ct),Pe=.5*(Pe+Fe),z.x=pt,z.y=Pe,E.x=pt,E.y=Pe),(ve===1||ve===2&&Wt.$(te.x,this.i(0).x)&&Wt.$(te.y,this.i(0).y))&&(x.x=.5*(te.x+ce.x),x.y=.5*(te.y+ce.y)),Uh(re,x.x-b,x.y-le,z.x-b,z.y-le,ce.x-b,ce.y-le),y.set(z),x.set(E),te=ce}}ce=te.x,te=te.y,de=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(de=xf(this,de.copy(),!1,Rr)),ce=.5*(ce+de.x),te=.5*(te+de.y),Uh(re,E.x-b,E.y-le,ce-b,te-le,de.x-b,de.y-le),lt.free(y),lt.free(x),lt.free(z),lt.free(E)}else for(x=3;x<y;x+=3)z=this.i(x-2),x+3>=y&&(x=y-1),E=this.i(x-1),te=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(te=xf(this,te.copy(),!1,Rr)),Uh(re,z.x-b,z.y-le,E.x-b,E.y-le,te.x-b,te.y-le);else{for(z=lt.alloc(),z.assign(this.i(0)),E=lt.alloc(),E.assign(z),te=this.computeCorner(),ve=1,ce=0;ve<y;){if(ve=ay(this,z,ve,1<ve),de=this.i(ve),ve>=y-1){if(!z.D(de))this.computeShortLength(!1)!==0&&(de=xf(this,de.copy(),!1,Rr)),bf(this,re,-b,-le,z,de,x);else if(ce===0)for(ve=1;ve<y;)E.assign(z),de=this.i(ve++),bf(this,re,-b,-le,z,de,x),z.assign(de);break}if(ce=ay(this,de,ve+1,ve<y-3),ve=-b,pt=-le,Pe=de,at=this.i(ce),Ze=x,Wt.B(z.y,Pe.y)&&Wt.B(Pe.x,at.x))if(Fe=Math.min(te,Math.abs(Pe.x-E.x)/2),Fe=Lt=Math.min(Fe,Math.abs(at.y-Pe.y)/2),Wt.B(Fe,0))bf(this,re,ve,pt,z,Pe,Ze),z.assign(Pe);else{var Dt=Pe.x,Kt=Pe.y;Le=Dt,Ct=Kt,Pe.x>z.x?Dt=Pe.x-Fe:Dt=Pe.x+Fe,at.y>Pe.y?Ct=Pe.y+Lt:Ct=Pe.y-Lt,at=lt.allocAt(Dt,Kt),bf(this,re,ve,pt,z,at,Ze),lt.free(at),n0(re,Pe.x+ve,Pe.y+pt,Le+ve,Ct+pt),z.h(Le,Ct)}else Wt.B(z.x,Pe.x)&&Wt.B(Pe.y,at.y)?(Fe=Math.min(te,Math.abs(Pe.y-E.y)/2),Fe=Lt=Math.min(Fe,Math.abs(at.x-Pe.x)/2),Wt.B(Lt,0)?(bf(this,re,ve,pt,z,Pe,Ze),z.assign(Pe)):(Dt=Pe.x,Kt=Pe.y,Le=Dt,Ct=Kt,Pe.y>z.y?Kt=Pe.y-Fe:Kt=Pe.y+Fe,at.x>Pe.x?Le=Pe.x+Lt:Le=Pe.x-Lt,at=lt.allocAt(Dt,Kt),bf(this,re,ve,pt,z,at,Ze),lt.free(at),n0(re,Pe.x+ve,Pe.y+pt,Le+ve,Ct+pt),z.h(Le,Ct))):(bf(this,re,ve,pt,z,Pe,Ze),z.assign(Pe));E.assign(de),ve=ce}lt.free(z)}i0=re}else re=this.i(1).copy(),re.x-=b,re.y-=le,this.computeShortLength(!0)!==0&&(E=xf(this,E,!0,z)),this.computeShortLength(!1)!==0&&(re=xf(this,re,!1,z)),a.type=di.j,a.startX=E.x,a.startY=E.y,a.endX=re.x,a.endY=re.y;return this.lk=!0,a};function h0(a,y,x,b){return a=x-a,isNaN(a)||a===1/0||a===-1/0?NaN:(0>a&&(a=-a),y=b-y,isNaN(y)||y===1/0||y===-1/0?NaN:(0>y&&(y=-y),Wt.$(a,0)?y:Wt.$(y,0)?a:Math.sqrt(a*a+y*y)))}function xf(a,y,x,b){var E=a.pointsCount;if(2>E)return y;if(x){var z=a.i(1);if(x=z.x-b.x,z=z.y-b.y,b=h0(y.x,y.y,x,z),b===0)return y;E=E===2?.5*b:b,a=a.computeShortLength(!0),a>E&&(a=E),E=a*(z-y.y)/b,y.x+=a*(x-y.x)/b,y.y+=E}else{if(z=a.i(E-2),x=z.x-b.x,z=z.y-b.y,b=h0(y.x,y.y,x,z),b===0)return y;E=E===2?.5*b:b,a=a.computeShortLength(!1),a>E&&(a=E),E=a*(y.y-z)/b,y.x-=a*(y.x-x)/b,y.y-=E}return y}function ay(a,y,x,b){for(var E=a.pointsCount,z=y;Wt.$(y.x,z.x)&&Wt.$(y.y,z.y);){if(x>=E)return E-1;z=a.i(x++)}if(!Wt.$(y.x,z.x)&&!Wt.$(y.y,z.y))return x-1;for(var te=z;Wt.$(y.x,z.x)&&Wt.$(z.x,te.x)&&(!b||(y.y>=z.y?z.y>=te.y:z.y<=te.y))||Wt.$(y.y,z.y)&&Wt.$(z.y,te.y)&&(!b||(y.x>=z.x?z.x>=te.x:z.x<=te.x));){if(x>=E)return E-1;te=a.i(x++)}return x-2}yi.prototype.computeJumpLength=function(){return 10};function bf(a,y,x,b,E,z,te){if(!te&&Jg(a)){te=a.computeJumpLength();var re=te/2,le=[],ce=0;if(a.isVisible()&&(ce=O1(a,E,z,le)),0<ce){if(Wt.B(E.y,z.y))if(E.x<z.x)for(var de=0;de<ce;){var ve=Math.max(E.x,Math.min(le[de++]-re,z.x-te));y.lineTo(ve+x,z.y+b);for(var Pe=ve+x,Le=Math.min(ve+te,z.x);de<ce&&(ve=le[de],ve<Le+te);)de++,Le=Math.min(ve+re,z.x);ve=z.y-te+b,Le+=x;var Fe=z.y+b;a.curve===Wh?np(y,Le,Fe,!1):Uh(y,Pe,ve,Le,ve,Le,Fe)}else for(--ce;0<=ce;){for(de=Math.min(E.x,Math.max(le[ce--]+re,z.x+te)),y.lineTo(de+x,z.y+b),Pe=de+x,ve=Math.max(de-te,z.x);0<=ce&&(de=le[ce],de>ve-te);)ce--,ve=Math.max(de-re,z.x);de=z.y-te+b,ve+=x,Le=z.y+b,a.curve===Wh?np(y,ve,Le,!1):Uh(y,Pe,de,ve,de,ve,Le)}else if(Wt.B(E.x,z.x))if(E.y<z.y)for(de=0;de<ce;){for(ve=Math.max(E.y,Math.min(le[de++]-re,z.y-te)),y.lineTo(z.x+x,ve+b),Pe=ve+b,ve=Math.min(ve+te,z.y);de<ce&&(Le=le[de],Le<ve+te);)de++,ve=Math.min(Le+re,z.y);Le=z.x-te+x,Fe=z.x+x,ve+=b,a.curve===Wh?np(y,Fe,ve,!1):Uh(y,Le,Pe,Le,ve,Fe,ve)}else for(--ce;0<=ce;){for(de=Math.min(E.y,Math.max(le[ce--]+re,z.y+te)),y.lineTo(z.x+x,de+b),Pe=de+b,de=Math.max(de-te,z.y);0<=ce&&(ve=le[ce],ve>de-te);)ce--,de=Math.max(ve-re,z.y);ve=z.x-te+x,Le=z.x+x,de+=b,a.curve===Wh?np(y,Le,de,!1):Uh(y,ve,Pe,ve,de,Le,de)}}}y.lineTo(z.x+x,z.y+b)}function O1(a,y,x,b){var E=a.diagram;if(E===null||y.D(x))return 0;for(E=E.layers;E.next();){var z=E.value;if(z!==null&&z.visible){z=z.Pa.s;for(var te=z.length,re=0;re<te;re++){var le=z[re];if(le instanceof yi){if(le===a)return 0<b.length&&b.sort(function(de,ve){return de-ve}),b.length;if(le.isVisible()&&Jg(le)){var ce=le.routeBounds;ce.w()&&a.routeBounds.Yc(ce)&&!a.usesSamePort(le)&&(ce=le.path,ce!==null&&ce.Ed()&&R1(y,x,b,le))}}}}}return 0<b.length&&b.sort(function(de,ve){return de-ve}),b.length}function R1(a,y,x,b){for(var E=Wt.B(a.y,y.y),z=b.pointsCount,te=b.i(0),re=lt.alloc(),le=1;le<z;le++){var ce=b.i(le);if(le<z-1){var de=b.i(le+1);if(te.y===ce.y&&ce.y===de.y){if(ce.x>te.x&&de.x>=ce.x||ce.x<te.x&&de.x<=ce.x)continue}else if(te.x===ce.x&&ce.x===de.x&&(ce.y>te.y&&de.y>=ce.y||ce.y<te.y&&de.y<=ce.y))continue}e:{de=a.x;var ve=a.y,Pe=y.x,Le=y.y,Fe=te.x;te=te.y;var Ze=ce.x,pt=ce.y;if(Wt.B(de,Pe)){if(!Wt.B(ve,Le)&&Wt.B(te,pt)&&Math.min(ve,Le)<te&&Math.max(ve,Le)>te&&Math.min(Fe,Ze)<de&&Math.max(Fe,Ze)>de&&!Wt.B(Fe,Ze)){re.x=de,re.y=te,de=!0;break e}}else if(Wt.B(ve,Le)&&Wt.B(Fe,Ze)&&Math.min(de,Pe)<Fe&&Math.max(de,Pe)>Fe&&Math.min(te,pt)<ve&&Math.max(te,pt)>ve&&!Wt.B(te,pt)){re.x=Fe,re.y=ve,de=!0;break e}re.x=0,re.y=0,de=!1}de&&(E?x.push(re.x):x.push(re.y)),te=ce}lt.free(re)}function Jg(a){return a=a.curve,a===op||a===Wh}function g0(a,y){(y||Jg(a))&&(y=a.diagram,y===null||y.animationManager.isTicking||y.Eh.contains(a)||a.ml.width===0&&a.ml.height===0||y.Eh.add(a,a.ml.copy()))}yi.prototype.Xo=function(a){var y=this.layer;if(y!==null&&y.visible&&!y.isTemporary){var x=y.diagram;if(x!==null&&!x.animationManager.isTicking){var b=!1;for(x=x.layers;x.next();){var E=x.value;if(E.visible){if(E===y){b=!0;var z=!1;E=E.Pa.s;for(var te=E.length,re=0;re<te;re++){var le=E[re];le instanceof yi&&(le===this?z=!0:z&&rx(this,le,a))}}else if(b)for(z=E.Pa.s,E=z.length,te=0;te<E;te++)re=z[te],re instanceof yi&&rx(this,re,a)}}}}};function rx(a,y,x){if(y!==null&&y.lk&&y.fd&&Jg(y)){var b=y.routeBounds;b.w()&&(a.routeBounds.Yc(b)||x.Yc(b))&&(a.usesSamePort(y)||y.qc())}}yi.prototype.usesSamePort=function(a){var y=this.pointsCount,x=a.pointsCount;if(0<y&&0<x){var b=this.i(0),E=a.i(0);if(b.Xa(E)||(y=this.i(y-1),a=a.i(x-1),y.Xa(a)||b.Xa(a)||y.Xa(E)))return!0}else if(this.fromNode===a.fromNode||this.toNode===a.toNode||this.fromNode===a.toNode||this.toNode===a.fromNode)return!0;return!1},yi.prototype.isVisible=function(){if(!nr.prototype.isVisible.call(this))return!1;var a=this.containingGroup,y=!0,x=this.diagram;if(x!==null&&(y=x.isTreePathToChildren),x=this.fromNode,x!==null){if(this.isTreeLink&&y&&!x.isTreeExpanded)return!1;if(x===a)return!0;for(var b=x;b!==null;){if(b.labeledLink===this)return!0;b=b.containingGroup}if(x=x.findVisibleNode(),x===null||x===a)return!1}if(x=this.toNode,x!==null){if(this.isTreeLink&&!y&&!x.isTreeExpanded)return!1;if(x===a)return!0;for(y=x;y!==null;){if(y.labeledLink===this)return!0;y=y.containingGroup}if(y=x.findVisibleNode(),y===null||y===a)return!1}return!0},yi.prototype.Zb=function(a){if(nr.prototype.Zb.call(this,a),a&&g0(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var y=this.wd.iterator;y.next();)y.value.Zb(a)},yi.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?Vp:this.qk};function Wp(a){var y=a.ef;if(y!==null){var x=a.uf;if(x!==null&&isNaN(a.curviness)){for(var b=a.ff,E=a.vf,z=a=null,te=y.jb.s,re=te.length,le=0;le<re;le++){var ce=te[le];(ce.ef===y&&ce.ff===b&&ce.uf===x&&ce.vf===E||ce.ef===x&&ce.ff===E&&ce.uf===y&&ce.vf===b)&&(z===null?z=ce:(a===null&&(a=[],a.push(z)),a.push(ce)))}if(a!==null){for(z=VS(y,x,b,E),z===null&&(z=new y0(y,b,x,E),ZS(y,z),ZS(x,z)),z.links=a,y=0;y<a.length;y++)a[y].Sf=z;z.Sl()}}}}function Zp(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(wn(y.links,a),y.Sl()))}yi.prototype.ph=function(){return!0},Nt.Object.defineProperties(yi.prototype,{fromNode:{get:function(){return this.ef},set:function(a){var y=this.ef;if(y!==a){var x=this.fromPort;y!==null&&(this.uf!==y&&s0(y,this,x),Zp(this),this.C(2)),this.ef=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var b=this.diagram;b!==null&&b.aa&&b.partManager.setFromNodeForLink(this,a,y);var E=this.fromPort,z=this.fromPortChanged;if(z!==null){var te=!0;b!==null&&(te=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=te)}a!==null&&(this.uf!==a&&a0(a,this,E),Wp(this),this.C(1)),this.g("fromNode",y,a),ip(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var x=this.fromPort;x!==null&&gc(x),Zp(this),this.ff=a;var b=this.fromPort;b!==null&&gc(b);var E=this.diagram;if(E!==null){var z=this.data,te=E.model;z!==null&&te.ri()&&te.xv(z,a)}x!==b&&(this.Wf=null,this.bb(),z=this.fromPortChanged,z!==null&&(te=!0,E!==null&&(te=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=te))),Wp(this),this.g("fromPortId",y,a)}}},fromPort:{get:function(){var a=this.ef;return a===null?null:a.ns(this.ff)}},fromPortChanged:{get:function(){return this.gn},set:function(a){var y=this.gn;y!==a&&(this.gn=a,this.g("fromPortChanged",y,a))}},toNode:{get:function(){return this.uf},set:function(a){var y=this.uf;if(y!==a){var x=this.toPort;y!==null&&(this.ef!==y&&s0(y,this,x),Zp(this),this.C(2)),this.uf=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var b=this.diagram;b!==null&&b.aa&&b.partManager.setToNodeForLink(this,a,y);var E=this.toPort,z=this.toPortChanged;if(z!==null){var te=!0;b!==null&&(te=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=te)}a!==null&&(this.ef!==a&&a0(a,this,E),Wp(this),this.C(1)),this.g("toNode",y,a),ip(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var x=this.toPort;x!==null&&gc(x),Zp(this),this.vf=a;var b=this.toPort;b!==null&&gc(b);var E=this.diagram;if(E!==null){var z=this.data,te=E.model;z!==null&&te.ri()&&te.Cv(z,a)}x!==b&&(this.Wf=null,this.bb(),z=this.toPortChanged,z!==null&&(te=!0,E!==null&&(te=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=te))),Wp(this),this.g("toPortId",y,a)}}},toPort:{get:function(){var a=this.uf;return a===null?null:a.ns(this.vf)}},toPortChanged:{get:function(){return this.uo},set:function(a){var y=this.uo;y!==a&&(this.uo=a,this.g("toPortChanged",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Vr},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),(y.$c()||a.$c())&&this.fromNode!==null&&gc(this.fromPort),this.bb())}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:NaN},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Ln(a,">= 0",yi,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),this.bb())}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:NaN},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.qc(),this.g("fromShortLength",y,a))}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Vr},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),(y.$c()||a.$c())&&this.toNode!==null&&gc(this.toPort),this.bb())}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:NaN},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Ln(a,">= 0",yi,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),this.bb())}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:NaN},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.qc(),this.g("toShortLength",y,a))}},isLabeledLink:{get:function(){return this.wd===null?!1:0<this.wd.count}},labelNodes:{get:function(){return this.wd===null?br:this.wd.iterator}},relinkableFrom:{get:function(){return(this.Qa&1)!==0},set:function(a){var y=(this.Qa&1)!==0;y!==a&&(this.Qa^=1,this.g("relinkableFrom",y,a),this.Wb())}},relinkableTo:{get:function(){return(this.Qa&2)!==0},set:function(a){var y=(this.Qa&2)!==0;y!==a&&(this.Qa^=2,this.g("relinkableTo",y,a),this.Wb())}},resegmentable:{get:function(){return(this.Qa&4)!==0},set:function(a){var y=(this.Qa&4)!==0;y!==a&&(this.Qa^=4,this.g("resegmentable",y,a),this.Wb())}},isTreeLink:{get:function(){return(this.Qa&8)!==0},set:function(a){var y=(this.Qa&8)!==0;y!==a&&(this.Qa^=8,this.g("isTreeLink",y,a),this.fromNode!==null&&Hp(this.fromNode),this.toNode!==null&&Hp(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof eo?a:null}},routeBounds:{get:function(){this.vg();var a=this.ml,y=1/0,x=1/0,b=this.pointsCount;if(b===0)a.h(NaN,NaN,0,0);else{if(b===1)b=this.i(0),y=Math.min(b.x,y),x=Math.min(b.y,x),a.h(b.x,b.y,0,0);else if(b===2){b=this.i(0);var E=this.i(1);y=Math.min(b.x,E.x),x=Math.min(b.y,E.y),a.h(b.x,b.y,0,0),a.Ye(E)}else if(this.computeCurve()===wc&&3<=b&&!this.isOrthogonal)if(E=this.i(0),y=E.x,x=E.y,a.h(y,x,0,0),b===3){b=this.i(1),y=Math.min(b.x,y),x=Math.min(b.y,x);var z=this.i(2);y=Math.min(z.x,y),x=Math.min(z.y,x),Wt.Dl(E.x,E.y,b.x,b.y,b.x,b.y,z.x,z.y,.5,a)}else for(z=3;z<b;z+=3){var te=this.i(z-2);z+3>=b&&(z=b-1);var re=this.i(z-1),le=this.i(z);Wt.Dl(E.x,E.y,te.x,te.y,re.x,re.y,le.x,le.y,.5,a),y=Math.min(le.x,y),x=Math.min(le.y,x),E=le}else for(E=this.i(0),z=this.i(1),y=Math.min(E.x,z.x),x=Math.min(E.y,z.y),a.h(E.x,E.y,0,0),a.Ye(z),E=2;E<b;E++)z=this.i(E),y=Math.min(z.x,y),x=Math.min(z.y,x),a.Ye(z);this.su.h(y-a.x,x-a.y)}return a}},midPoint:{get:function(){return this.vg(),this.computeMidPoint(new lt)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||u0(this);for(var a=this.cq=[],y=this.pointsCount,x=0;x<y-1;x++){var b=this.i(x),E=this.i(x+1);Wt.$(b.x,E.x)?(b=E.y-b.y,0>b&&(b=-b)):Wt.$(b.y,E.y)?(b=E.x-b.x,0>b&&(b=-b)):b=Math.sqrt(b.Bf(E)),a.push(b)}}return this.cq}},flattenedTotalLength:{get:function(){var a=this.vt;if(isNaN(a)){for(var y=this.flattenedLengths,x=y.length,b=a=0;b<x;b++)a+=y[b];this.vt=a}return a}},points:{get:function(){return this.Nb},set:function(a){var y=this.Nb;if(y!==a){var x=null;if(Array.isArray(a)){var b=a.length%2===0;if(b){for(var E=0;E<a.length;E++)if(typeof a[E]!="number"||isNaN(a[E])){b=!1;break}}if(b)for(x=new Ht,b=0;b<a.length/2;b++)E=new lt(a[2*b],a[2*b+1]).freeze(),x.add(E);else{for(b=!0,E=0;E<a.length;E++){var z=a[E];if(!Gt(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){b=!1;break}}if(b)for(x=new Ht,b=0;b<a.length;b++)E=a[b],x.add(new lt(E.x,E.y).freeze())}}else if(a instanceof Ht)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else bt("Link.points value is not an instance of List or Array: "+a);x.freeze(),this.Nb=x,this.qc(),u0(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&xa(a.animationManager,this,x)),this.g("points",y,x)}}},pointsCount:{get:function(){return this.Nb.count}},fd:{get:function(){return(this.Qa&16)!==0},set:function(a){(this.Qa&16)!==0!==a&&(this.Qa^=16)}},suspendsRouting:{get:function(){return(this.Qa&32)!==0},set:function(a){(this.Qa&32)!==0!==a&&(this.Qa^=32)}},computingPoints:{get:function(){return(this.Qa&64)!==0},set:function(a){(this.Qa&64)!==0!==a&&(this.Qa^=64)}},defaultFromPoint:{get:function(){return this.o},set:function(a){this.o=a.copy()}},defaultToPoint:{get:function(){return this.u},set:function(a){this.u=a.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(a){(this.Qa&128)!==0!==a&&(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||!rp(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!rp(this.computeSpot(!1))?a-2:a-1}},adjusting:{get:function(){return this.qk},set:function(a){var y=this.qk;y!==a&&(this.qk=a,this.g("adjusting",y,a))}},corner:{get:function(){return this.Om},set:function(a){var y=this.Om;y!==a&&(this.Om=a,this.qc(),this.g("corner",y,a))}},curve:{get:function(){return this.Qm},set:function(a){var y=this.Qm;y!==a&&(this.Qm=a,this.bb(),this.qc(),g0(this,y===Wh||y===op||a===Wh||a===op),this.g("curve",y,a))}},curviness:{get:function(){return this.Rm},set:function(a){var y=this.Rm;y!==a&&(this.Rm=a,this.bb(),this.qc(),this.g("curviness",y,a))}},routing:{get:function(){return this.qj},set:function(a){var y=this.qj;y!==a&&(this.qj=a,this.Wf=null,this.bb(),g0(this,(y.value&2)===2||(a.value&2)===2),this.g("routing",y,a))}},smoothness:{get:function(){return this.po},set:function(a){var y=this.po;y!==a&&(this.po=a,this.qc(),this.g("smoothness",y,a))}},key:{get:function(){var a=this.diagram;if(a!==null&&a.model.ri())return a.model.Ac(this.data)}}}),yi.prototype.invalidateOtherJumpOvers=yi.prototype.Xo,yi.prototype.findClosestSegment=yi.prototype.ez,yi.prototype.updateRoute=yi.prototype.vg,yi.prototype.invalidateRoute=yi.prototype.bb,yi.prototype.rollbackRoute=yi.prototype.rv,yi.prototype.commitRoute=yi.prototype.zf,yi.prototype.startRoute=yi.prototype.uh,yi.prototype.clearPoints=yi.prototype.Fj,yi.prototype.removePoint=yi.prototype.pv,yi.prototype.addPointAt=yi.prototype.yf,yi.prototype.addPoint=yi.prototype.ne,yi.prototype.insertPointAt=yi.prototype.m,yi.prototype.insertPoint=yi.prototype.Kz,yi.prototype.setPointAt=yi.prototype.L,yi.prototype.setPoint=yi.prototype.dd,yi.prototype.getPoint=yi.prototype.i,yi.prototype.getOtherPort=yi.prototype.Cz,yi.prototype.getOtherNode=yi.prototype.To;var wf=null,Ef=null,sy=new tn(yi,"Normal",1),F1=new tn(yi,"Orthogonal",2),B1=new tn(yi,"AvoidsNodes",6),ox=new tn(yi,"AvoidsNodesStraight",7),Eu=new tn(yi,"None",0),wc=new tn(yi,"Bezier",9),Wh=new tn(yi,"JumpGap",10),op=new tn(yi,"JumpOver",11),Vp=new tn(yi,"End",17),f0=new tn(yi,"Scale",18),p0=new tn(yi,"Stretch",19),Kp=new tn(yi,"OrientAlong",21),Yp=new tn(yi,"OrientPlus90",22),$p=new tn(yi,"OrientMinus90",23),ly=new tn(yi,"OrientOpposite",24),m0=new tn(yi,"OrientUpright",25),Xp=new tn(yi,"OrientPlus90Upright",26),Qp=new tn(yi,"OrientMinus90Upright",27),v0=new tn(yi,"OrientUpright45",28),ax=16,sx=14,Jp=8;yi.className="Link",yi.Normal=sy,yi.Orthogonal=F1,yi.AvoidsNodes=B1,yi.AvoidsNodesStraight=ox,yi.None=Eu,yi.Bezier=wc,yi.JumpGap=Wh,yi.JumpOver=op,yi.End=Vp,yi.Scale=f0,yi.Stretch=p0,yi.OrientAlong=Kp,yi.OrientPlus90=Yp,yi.OrientMinus90=$p,yi.OrientOpposite=ly,yi.OrientUpright=m0,yi.OrientPlus90Upright=Xp,yi.OrientMinus90Upright=Qp,yi.OrientUpright45=v0,yi.EndSegmentStep=8,yi.CurvinessStart=ax,yi.SpacingMin=sx,yi.OrthoShortCut=Jp;function y0(a,y,x,b){kr(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=b,this.links=[]}y0.prototype.Sl=function(){if(!this.qq){var a=this.links;0<a.length&&(a=a[0].diagram,a!==null&&(a.ow.add(this),this.Fe=a.undoManager.isUndoingRedoing))}this.qq=!0},y0.prototype.Nv=function(){if(this.qq){this.qq=!1;var a=this.links;if(0<a.length){var y=a[0],x=y.diagram;x=x===null||x.pi&&!this.Fe,this.Fe=!1,y.arrangeBundledLinks(a,x),a.length===1&&(y.Sf=null,a.length=0)}a.length===0&&(a=this.Ds,this!==null&&a.af!==null&&a.af.remove(this),a=this.cv,this!==null&&a.af!==null&&a.af.remove(this))}},y0.className="LinkBundle";function qp(a){kr(this),this.Yx=this.group=null,this.vs=!0,this.abort=!1,this.Od=this.Nd=1,this.Fn=this.En=-1,this.rc=a.width,this.sc=a.height,this.ac=null,this.ei=this.di=0,this.Os=11,this.Ix=this.Hx=22}qp.prototype.initialize=function(a){if(!(0>=a.width||0>=a.height)){var y=a.y,x=a.x+a.width,b=a.y+a.height;if(this.Nd=Math.floor((a.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((y-this.sc)/this.sc)*this.sc,this.En=Math.ceil((x+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((b+2*this.sc)/this.sc)*this.sc,a=1+(Math.ceil((this.En-this.Nd)/this.rc)|0),y=1+(Math.ceil((this.Fn-this.Od)/this.sc)|0),this.ac===null||this.di<a-1||this.ei<y-1){for(x=[],b=0;b<=a;b++)x[b]=new Uint32Array(y);this.ac=x,this.di=a-1,this.ei=y-1}if(a=uy,this.ac!==null)for(y=0;y<=this.di;y++)if(x=this.ac[y],x.fill)x.fill(a);else for(b=0;b<=this.ei;b++)x[b]=a}};function ap(a,y,x){return a.Nd<=y&&y<=a.En&&a.Od<=x&&x<=a.Fn}function Qd(a,y,x){return ap(a,y,x)?(y-=a.Nd,y/=a.rc,x-=a.Od,x/=a.sc,a.ac[y|0][x|0]):uy}function lx(a){if(a.ac!==null)for(var y=0;y<=a.di;y++)for(var x=a.ac[y],b=0;b<=a.ei;b++)x[b]>=qg&&(x[b]=uy)}qp.prototype.Yj=function(a,y,x,b){if(a>this.En||a+x<this.Nd||y>this.Fn||y+b<this.Od)return!0;a=(a-this.Nd)/this.rc|0,y=(y-this.Od)/this.sc|0,x=Math.max(0,x)/this.rc+1|0;var E=Math.max(0,b)/this.sc+1|0;if(0>a&&(x+=a,a=0),0>y&&(E+=y,y=0),0>x||0>E)return!0;for(b=Math.min(a+x-1,this.di)|0,x=Math.min(y+E-1,this.ei)|0;a<=b;a++){E=this.ac[a];for(var z=y;z<=x;z++)if(E[z]===Zh)return!1}return!0};function Jd(a,y,x,b,E,z,te,re,le){if(!(y<z||y>te||x<re||x>le)){var ce=y|0,de=x|0,ve=a.ac[ce][de];if(ve>=qg&&ve<sp)for(E?de+=b:ce+=b,ve+=1;z<=ce&&ce<=te&&re<=de&&de<=le&&!(ve>=a.ac[ce][de]);)a.ac[ce][de]=ve,ve+=1,E?de+=b:ce+=b;if(ce=E?de:ce,E)if(0<b)for(x+=b;x<ce;x+=b)Jd(a,y,x,1,!E,z,te,re,le),Jd(a,y,x,-1,!E,z,te,re,le);else for(x+=b;x>ce;x+=b)Jd(a,y,x,1,!E,z,te,re,le),Jd(a,y,x,-1,!E,z,te,re,le);else if(0<b)for(y+=b;y<ce;y+=b)Jd(a,y,x,1,!E,z,te,re,le),Jd(a,y,x,-1,!E,z,te,re,le);else for(y+=b;y>ce;y+=b)Jd(a,y,x,1,!E,z,te,re,le),Jd(a,y,x,-1,!E,z,te,re,le)}}function S0(a,y,x,b,E,z,te,re,le){y|=0,x|=0;var ce=Zh,de=qg;for(a.ac[y][x]=de;ce===Zh&&y>z&&y<te&&x>re&&x<le;)de+=1,a.ac[y][x]=de,E?x+=b:y+=b,ce=a.ac[y][x]}function x0(a,y,x,b,E,z,te,re,le){y|=0,x|=0;var ce=Zh,de=sp;for(a.ac[y][x]=de;ce===Zh&&y>z&&y<te&&x>re&&x<le;)a.ac[y][x]=de,E?x+=b:y+=b,ce=a.ac[y][x]}function ux(a,y,x,b,E,z,te){if(a.ac!==null){a.abort=!1;var re=y.x,le=y.y;if(ap(a,re,le)){re-=a.Nd,re/=a.rc,le-=a.Od,le/=a.sc;var ce=b.x,de=b.y;if(ap(a,ce,de))if(ce-=a.Nd,ce/=a.rc,de-=a.Od,de/=a.sc,1>=Math.abs(re-ce)&&1>=Math.abs(le-de))a.abort=!0;else{var ve=z.x;b=z.y,y=z.x+z.width;var Pe=z.y+z.height;ve-=a.Nd,ve/=a.rc,b-=a.Od,b/=a.sc,y-=a.Nd,y/=a.rc,Pe-=a.Od,Pe/=a.sc,z=Math.max(0,Math.min(a.di,ve|0)),y=Math.min(a.di,Math.max(0,y|0)),ve=Math.max(0,Math.min(a.ei,b|0)),Pe=Math.min(a.ei,Math.max(0,Pe|0)),b=a.ac,re|=0,le|=0,ce|=0,de|=0;var Le=x===0||x===90?1:-1;if(x=x===90||x===270,b[re][le]===Zh?(S0(a,re,le,Le,x,z,y,ve,Pe),S0(a,re,le,1,!x,z,y,ve,Pe),S0(a,re,le,-1,!x,z,y,ve,Pe)):S0(a,re,le,Le,x,re,le,re,le),b[ce][de]===Zh?(x0(a,ce,de,E===0||E===90?1:-1,E===90||E===270,z,y,ve,Pe),x0(a,ce,de,1,!(E===90||E===270),z,y,ve,Pe),x0(a,ce,de,-1,!(E===90||E===270),z,y,ve,Pe)):x0(a,ce,de,Le,x,ce,de,ce,de),x=gn(),te&&cx(a,ce,de,E,re,le,x))for((x[0]!==ce||x[1]!==de)&&(x.unshift(de),x.unshift(ce)),(x[x.length-2]!==re||x[x.length-1]!==le)&&(x.push(re),x.push(le)),a=qg,E=x[x.length-2],te=x[x.length-1],b[E][te]=a++,z=x.length-4;0<=z;z-=2)for(E=x[z+2],te=x[z+3],y=x[z],ce=x[z+1];y>E?E++:y<E?E--:ce>te?te++:ce<te&&te--,b[E][te]=a++,E!==y||te!==ce;);else Jd(a,re,le,1,!1,z,y,ve,Pe),Jd(a,re,le,-1,!1,z,y,ve,Pe),Jd(a,re,le,1,!0,z,y,ve,Pe),Jd(a,re,le,-1,!0,z,y,ve,Pe);kn(x)}}}}function cx(a,y,x,b,E,z,te){for(var re=a.ac,le=y,ce=x;;){if(le===E&&ce===z)return!0;var de=le,ve=ce;if(b===0)if(de<E)de++;else break;else if(b===90)if(ve<z)ve++;else break;else if(b===180)if(de>E)de--;else break;else if(ve>z)ve--;else break;var Pe=re[de][ve];if(Pe===0||Pe===cy)break;le=de,ce=ve}for(;;){if(de=b,ve=le,Pe=ce,b===0?Pe<z?(de=90,Pe++):Pe>z&&(de=270,Pe--):b===90?ve<E?(de=0,ve++):ve>E&&(de=180,ve--):b===180?Pe<z?(de=90,Pe++):Pe>z&&(de=270,Pe--):ve<E?(de=0,ve++):ve>E&&(de=180,ve--),ve=re[ve][Pe],de!==b&&ve!==0&&ve!==cy){if(te.push(le),te.push(ce),cx(a,le,ce,de,E,z,te))return!0;te.pop(),te.pop()}if(re[le][ce]=cy,b===0){if(le===y)return!1;le--}else if(b===90){if(ce===x)return!1;ce--}else if(b===180){if(le===y)return!1;le++}else{if(ce===x)return!1;ce++}}}Nt.Object.defineProperties(qp.prototype,{bounds:{get:function(){return new jn(this.Nd,this.Od,this.En-this.Nd,this.Fn-this.Od)}},Ho:{get:function(){return this.rc},set:function(a){0<a&&a!==this.rc&&(this.rc=a,this.initialize(this.bounds))}},Go:{get:function(){return this.sc},set:function(a){0<a&&a!==this.sc&&(this.sc=a,this.initialize(this.bounds))}}});var Zh=0,qg=1,sp=999999,uy=sp+1,cy=sp+2;qp.className="PositionArray";function Cf(){kr(this),this.port=this.node=null,this.pe=[],this.ap=!1}Cf.prototype.toString=function(){for(var a=this.pe,y=this.node.toString()+" "+a.length.toString()+":",x=0;x<a.length;x++){var b=a[x];b!==null&&(y+=`
`+b.toString())}return y};function j1(a,y,x,b){switch(y=y.offsetY,y){case 8:return 90;case 2:return 180;case 1:return 270;case 4:return 0}switch(y){case 9:return 180<x?270:90;case 6:return 90<x&&270>=x?180:0}switch(a=180*Math.atan2(a.height,a.width)/Math.PI,y){case 3:return x>a&&x<=180+a?180:270;case 5:return x>180-a&&x<=360-a?270:0;case 12:return x>a&&x<=180+a?90:0;case 10:return x>180-a&&x<=360-a?180:90;case 7:return 90<x&&x<=180+a?180:x>180+a&&x<=360-a?270:0;case 13:return 180<x&&x<=360-a?270:x>a&&180>=x?90:0;case 14:return x>a&&x<=180-a?90:x>180-a&&270>=x?180:0;case 11:return x>180-a&&x<=180+a?180:x>180+a?270:90}return b&&y!==15&&(x-=15,0>x&&(x+=360)),x>a&&x<180-a?90:x>=180-a&&x<=180+a?180:x>180+a&&x<360-a?270:0}Cf.prototype.Sl=function(){this.pe.length=0};function dx(a,y){var x=a.pe;if(x.length===0){e:if(!a.ap){x=a.ap,a.ap=!0;var b=null,E=a.node,z=E instanceof _r?E:null;if(z===null||z.isSubGraphExpanded)var te=E.isTreeExpanded?E.findLinksConnected(a.port.portId):E.qx();else{if(!z.actualBounds.w()){a.ap=x;break e}b=z,te=b.Lu()}z=a.pe.length=0;var re=a.port.ga(Hs,lt.alloc()),le=a.port.ga(Fl,lt.alloc());for(E=jn.allocAt(re.x,re.y,0,0),E.Ye(le),lt.free(re),lt.free(le),re=lt.allocAt(E.x+E.width/2,E.y+E.height/2),le=a.port.li(),te=te.iterator;te.next();){var ce=te.value;if(ce.isVisible()&&ce.fromPort!==ce.toPort){var de=ce.fromPort===a.port||ce.fromNode!==null&&ce.fromNode.Td(b),ve=ce.computeSpot(de,a.port);if(ve.$c()&&(de=de?ce.toPort:ce.fromPort,de!==null)){var Pe=de.part;if(Pe!==null){var Le=Pe.findVisibleNode();Le!==null&&Le!==Pe&&(Pe=Le,de=Pe.port),de=ce.computeOtherPoint(Pe,de),Pe=re.ab(de),Pe-=le,0>Pe?Pe+=360:360<=Pe&&(Pe-=360),ve=j1(E,ve,Pe,ce.isOrthogonal),ve===0?(ve=4,180<Pe&&(Pe-=360)):ve===90?(ve=8,270<Pe&&(Pe-=360)):ve===180?ve=2:(ve=1,90>Pe&&(Pe+=360)),Le=a.pe[z],Le===void 0?(Le=new dy(ce,Pe,ve),a.pe[z]=Le):(Le.link=ce,Le.angle=Pe,Le.Nc=ve),Le.hv.set(de),z++}}}}for(lt.free(re),a.pe.sort(Cf.prototype.j),le=a.pe.length,b=-1,z=re=0;z<le;z++)te=a.pe[z],te!==void 0&&(te.Nc!==b&&(b=te.Nc,re=0),te.Uo=re,re++);for(b=-1,re=0,z=le-1;0<=z;z--)le=a.pe[z],le!==void 0&&(le.Nc!==b&&(b=le.Nc,re=le.Uo+1),le.Gl=re);if(z=a.pe,ve=a.port,b=a.node.portSpreading,re=lt.alloc(),le=lt.alloc(),te=lt.alloc(),ce=lt.alloc(),ve.ga(Hs,re),ve.ga(ui,le),ve.ga(Fl,te),ve.ga(Wl,ce),Le=Pe=de=ve=0,b===ey)for(var Fe=0;Fe<z.length;Fe++){var Ze=z[Fe];if(Ze!==null){var pt=Ze.link.computeThickness();switch(Ze.Nc){case 8:Pe+=pt;break;case 2:Le+=pt;break;case 1:ve+=pt;break;default:case 4:de+=pt}}}var at=Fe=0,Ct=1,Lt=Ze=0;for(pt=0;pt<z.length;pt++){var Dt=z[pt];if(Dt!==null){if(Fe!==Dt.Nc){switch(Fe=Dt.Nc,Fe){case 8:var Kt=te;at=ce;break;case 2:Kt=ce,at=re;break;case 1:Kt=re,at=le;break;default:case 4:Kt=le,at=te}switch(Ze=at.x-Kt.x,Lt=at.y-Kt.y,Fe){case 8:Pe>Math.abs(Ze)?(Ct=Math.abs(Ze)/Pe,Pe=Math.abs(Ze)):Ct=1;break;case 2:Le>Math.abs(Lt)?(Ct=Math.abs(Lt)/Le,Le=Math.abs(Lt)):Ct=1;break;case 1:ve>Math.abs(Ze)?(Ct=Math.abs(Ze)/ve,ve=Math.abs(Ze)):Ct=1;break;default:case 4:de>Math.abs(Lt)?(Ct=Math.abs(Lt)/de,de=Math.abs(Lt)):Ct=1}at=0}var vn=Dt.Zo;if(b===ey){switch(Dt=Dt.link.computeThickness(),Dt*=Ct,vn.set(Kt),Fe){case 8:vn.x=Kt.x+Ze/2+Pe/2-at-Dt/2;break;case 2:vn.y=Kt.y+Lt/2+Le/2-at-Dt/2;break;case 1:vn.x=Kt.x+Ze/2-ve/2+at+Dt/2;break;default:case 4:vn.y=Kt.y+Lt/2-de/2+at+Dt/2}at+=Dt}else{var Pi=.5;b===l0&&(Pi=(Dt.Uo+1)/(Dt.Gl+1)),vn.x=Kt.x+Ze*Pi,vn.y=Kt.y+Lt*Pi}}}for(lt.free(re),lt.free(le),lt.free(te),lt.free(ce),Kt=a.pe,z=0;z<Kt.length;z++)b=Kt[z],b!==null&&(b.Ju=a.computeEndSegmentLength(b));a.ap=x,jn.free(E)}x=a.pe}for(a=0;a<x.length;a++)if(E=x[a],E!==null&&E.link===y)return E;return null}Cf.prototype.j=function(a,y){return a===y?0:a===null?-1:y===null?1:a.Nc<y.Nc?-1:a.Nc>y.Nc?1:a.angle<y.angle?-1:a.angle>y.angle?1:0},Cf.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,is,y.fromPort===this.port),b=a.Uo;if(0>b)return x;var E=a.Gl;if(1>=E||!y.isOrthogonal)return x;y=a.hv;var z=a.Zo;return(a.Nc===2||a.Nc===8)&&(b=E-1-b),((a=a.Nc===2||a.Nc===4)?y.y<z.y:y.x<z.x)?x+8*b:(a?y.y===z.y:y.x===z.x)?x:x+8*(E-1-b)},Cf.className="Knot";function dy(a,y,x){this.link=a,this.angle=y,this.Nc=x,this.hv=new lt,this.Gl=this.Uo=0,this.Zo=new lt,this.Ju=0}dy.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()},dy.className="LinkInfo";function Wa(a){kr(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new lt(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}Wa.prototype.cloneProtected=function(a){a.sn=this.sn,a.Gh=this.Gh,a.yn=this.yn,a.Am.assign(this.Am),a.vn=this.vn,a.un=this.un,a.Em=this.Em,a.xn=!0},Wa.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Wa.prototype.qb=function(){},Wa.prototype.toString=function(){var a=Bn(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},Wa.prototype.C=function(){if(this.isValidLayout){var a=this.diagram;if(a!==null&&!a.undoManager.isUndoingRedoing){var y=a.animationManager;!y.isTicking&&(y.defaultAnimation.isAnimating&&y.Cc(),this.isOngoing&&a.pi||this.isInitial&&!a.pi)&&(this.isValidLayout=!1,a.$b())}}},Wa.prototype.createNetwork=function(){return new Aa(this)},Wa.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof pn?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof _r?y.lg(a.memberParts):y.lg(a.iterator),y},Wa.prototype.updateParts=function(){this.isValidLayout=!0;var a=this.diagram;if(a===null&&this.network!==null)for(var y=this.network.vertexes.iterator;y.next();){var x=y.value.node;if(x!==null&&(a=x.diagram,a!==null))break}try{a!==null&&a.Ea("Layout"),this.commitLayout()}finally{a!==null&&a.eb("Layout")}},Wa.prototype.commitLayout=function(){if(this.network!==null){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();if(this.isRouting)for(a=this.network.edges.iterator;a.next();)a.value.commit()}},Wa.prototype.doLayout=function(a){var y=new Fn;a instanceof pn?(mg(this,y,a.nodes,!0,this.rh,!0,!1,!0),mg(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof _r?mg(this,y,a.memberParts,!1,this.rh,!0,!1,!0):y.addAll(a.iterator),0<y.count&&(a=this.diagram,a!==null&&a.Ea("Layout"),this.doMinimalNoNetworkLayout(y),a!==null&&a.eb("Layout")),this.isValidLayout=!0},Wa.prototype.doMinimalNoNetworkLayout=function(a){var y=Math.ceil(Math.sqrt(a.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var x=this.arrangementOrigin.x,b=x,E=this.arrangementOrigin.y,z=0,te=0;for(a=a.iterator;a.next();){var re=a.value;em(re);var le=re.measuredBounds,ce=le.width;le=le.height,re.moveTo(b,E),re instanceof _r&&(re.rh=!1),b+=Math.max(ce,50)+20,te=Math.max(te,Math.max(le,50)),z>=y-1?(z=0,b=x,E+=te+20,te=0):z++}},Wa.prototype.doMinimalNetworkLayout=function(){var a=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var y=this.arrangementOrigin.x,x=y,b=this.arrangementOrigin.y,E=0,z=0,te=this.network.vertexes.iterator;te.next();){var re=te.value.node;if(!(re===null||re instanceof yi)&&(em(re),this.rh(re))){var le=re.measuredBounds,ce=le.width;le=le.height,re.moveTo(x,b),re instanceof _r&&(re.rh=!1),x+=Math.max(ce,50)+20,z=Math.max(z,Math.max(le,50)),E>=a-1?(E=0,x=y,b+=z+20,z=0):E++}}},Wa.prototype.rh=function(a){return!!(!a.location.w()||a instanceof _r&&a.rh)};function mg(a,y,x,b,E,z,te,re){for(x=x.iterator;x.next();){var le=x.value;b&&!le.isTopLevel||E!==null&&!E(le)||!le.canLayout()||(z&&le instanceof Li?le.isLinkLabel||(le instanceof _r&&le.layout===null?mg(a,y,le.memberParts,!1,E,z,te,re):(em(le),y.add(le))):te&&le instanceof yi?y.add(le):!re||!le.Zc()||le instanceof Li||(em(le),y.add(le)))}}function em(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}Wa.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new jn),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},Wa.prototype.ex=function(a){var y=new Fn;return a instanceof pn?(mg(this,y,a.nodes,!0,null,!0,!0,!0),mg(this,y,a.links,!0,null,!0,!0,!0),mg(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof _r?mg(this,y,a.memberParts,!1,null,!0,!0,!0):mg(this,y,a.iterator,!1,null,!0,!0,!0),y},Wa.prototype.initialOrigin=function(a){var y=this.group;if(y!==null){var x=y.position.copy();return(isNaN(x.x)||isNaN(x.y))&&x.set(a),y=y.placeholder,y!==null&&(x=y.ga(Hs),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},Nt.Object.defineProperties(Wa.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},group:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a,a!==null&&(this.H=a.diagram))}},isOngoing:{get:function(){return this.sn},set:function(a){this.sn!==a&&(this.sn=a)}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a,a||(this.xn=!0)}},isViewportSized:{get:function(){return this.yn},set:function(a){this.yn!==a&&(this.yn=a)&&this.C()}},isRouting:{get:function(){return this.vn},set:function(a){this.vn!==a&&(this.vn=a)}},isRealtime:{get:function(){return this.un},set:function(a){this.un!==a&&(this.un=a)}},isValidLayout:{get:function(){return this.xn},set:function(a){this.xn!==a&&(this.xn=a,a||(a=this.diagram,a!==null&&(a.xh=!0)))}},network:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a,a!==null&&(a.layout=this))}},boundsComputation:{get:function(){return this.Em},set:function(a){this.Em!==a&&(this.Em=a,this.C())}},arrangementOrigin:{get:function(){return this.Am},set:function(a){this.Am.D(a)||(this.Am.assign(a),this.C())}}}),Wa.prototype.collectParts=Wa.prototype.ex,Wa.prototype.getLayoutBounds=Wa.prototype.ni,Wa.prototype.invalidateLayout=Wa.prototype.C,Wa.className="Layout";function Aa(a){kr(this),this.Sc=a,this.wf=new Fn,this.ye=new Fn,this.Es=new Ii,this.zs=new Ii}Aa.prototype.clear=function(){if(this.wf)for(var a=this.wf.iterator;a.next();)a.value.clear();if(this.ye)for(a=this.ye.iterator;a.next();)a.value.clear();this.wf=new Fn,this.ye=new Fn,this.Es=new Ii,this.zs=new Ii},Aa.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutNetwork"+(this.layout!==null?"("+this.layout.toString()+")":"");if(0>=a)return y;if(y+=" vertexes: "+this.wf.count+" edges: "+this.ye.count,1<a){for(var x=this.wf.iterator;x.next();)y+=`
`+x.value.toString(a-1);for(x=this.ye.iterator;x.next();)y+=`
`+x.value.toString(a-1)}return y},Aa.prototype.createVertex=function(){return new il(this)},Aa.prototype.createEdge=function(){return new fc(this)},Aa.prototype.lg=function(a,y,x){if(a!==null){for(y===void 0&&(y=!1),x===void 0&&(x=null),x===null&&(x=function(te){if(te instanceof Li)return!te.isLinkLabel;if(te instanceof yi){var re=te.fromNode;return re===null||re.isLinkLabel?!1:(te=te.toNode,!(te===null||te.isLinkLabel))}return!1}),a=a.iterator;a.next();){var b=a.value;if(b instanceof Li&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)){if(b instanceof _r&&b.layout===null)this.lg(b.memberParts,!1);else if(this.ki(b)===null){var E=this.createVertex();E.node=b,this.dh(E)}}}for(a.reset();a.next();)if(b=a.value,b instanceof yi&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)&&this.Lo(b)===null){var z=b.fromNode;E=b.toNode,z!==null&&E!==null&&z!==E&&(z=this.findGroupVertex(z),E=this.findGroupVertex(E),z!==null&&E!==null&&this.Zj(z,E,b))}}},Aa.prototype.findGroupVertex=function(a){if(a===null)return null;var y=a.findVisibleNode();if(y===null)return null;if(a=this.ki(y),a!==null)return a;for(y=y.containingGroup;y!==null;){if(a=this.ki(y),a!==null)return a;y=y.containingGroup}return null},Ue=Aa.prototype,Ue.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},Ue.Bl=function(a){if(a===null)return null;var y=this.ki(a);return y===null&&(y=this.createVertex(),y.node=a,this.dh(y)),y},Ue.Iu=function(a){if(a!==null&&hx(this,a)){for(var y=a.tg,x=y.count-1;0<=x;x--){var b=y.M(x);this.Mj(b)}for(y=a.mg,a=y.count-1;0<=a;a--)x=y.M(a),this.Mj(x)}};function hx(a,y){if(y===null)return!1;var x=a.wf.remove(y);return x&&(y=y.node,y!==null&&a.Es.remove(y)),x}Ue.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},Ue.ki=function(a){return a===null?null:this.Es.I(a)},Ue.Bo=function(a){if(a!==null){hy(this,a);var y=a.toVertex;y!==null&&y.Cl(a),y=a.fromVertex,y!==null&&y.zl(a)}};function hy(a,y){if(y!==null){a.ye.add(y);var x=y.link;x!==null&&a.Lo(x)===null&&a.zs.add(x,y),y.network=a}}Ue.Dy=function(a){if(a===null)return null;var y=a.fromNode,x=a.toNode,b=this.Lo(a);return b===null?(b=this.createEdge(),b.link=a,y!==null&&(b.fromVertex=this.Bl(y)),x!==null&&(b.toVertex=this.Bl(x)),this.Bo(b)):(y!==null?b.fromVertex=this.Bl(y):b.fromVertex=null,x!==null?b.toVertex=this.Bl(x):b.toVertex=null),b},Ue.Mj=function(a){if(a!==null){var y=a.toVertex;y!==null&&y.Kl(a),y=a.fromVertex,y!==null&&y.Jl(a),gy(this,a)}};function gy(a,y){y!==null&&a.ye.remove(y)&&(y=y.link,y!==null&&a.zs.remove(y))}Ue.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},Ue.Lo=function(a){return a===null?null:this.zs.I(a)},Ue.Zj=function(a,y,x){if(a===null||y===null)return null;if(a.network===this&&y.network===this){var b=this.createEdge();return b.link=x,b.fromVertex=a,b.toVertex=y,this.Bo(b),b}return null},Ue.gm=function(a){if(a!==null){var y=a.fromVertex,x=a.toVertex;y!==null&&x!==null&&(y.Jl(a),x.Kl(a),a.gm(),y.Cl(a),x.zl(a))}},Ue.Ko=function(){for(var a=gn(),y=this.ye.iterator;y.next();){var x=y.value;x.fromVertex===x.toVertex&&a.push(x)}for(y=a.length,x=0;x<y;x++)this.Mj(a[x]);kn(a)},Aa.prototype.deleteArtificialVertexes=function(){for(var a=gn(),y=this.wf.iterator;y.next();){var x=y.value;x.node===null&&x.data===null&&a.push(x)}for(x=a.length,y=0;y<x;y++)this.Iu(a[y]);for(y=gn(),x=this.ye.iterator;x.next();){var b=x.value;b.link===null&&b.data===null&&y.push(b)}for(x=y.length,b=0;b<x;b++)this.Mj(y[b]);kn(a),kn(y)};function z1(a){for(var y=gn(),x=a.ye.iterator;x.next();){var b=x.value;b.fromVertex!==null&&b.toVertex!==null||y.push(b)}for(x=y.length,b=0;b<x;b++)a.Mj(y[b]);kn(y)}Aa.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),z1(this),this.Ko()),a=new Ht;for(var y=!0;y;){y=!1;for(var x=this.wf.iterator;x.next();){var b=x.value;if(0<b.tg.count||0<b.mg.count){y=this.layout.createNetwork(),a.add(y),fy(this,y,b),y=!0;break}}}return a.sort(function(E,z){return E===null||z===null||E===z?0:z.vertexes.count-E.vertexes.count}),a};function fy(a,y,x){if(x!==null&&x.network!==y){hx(a,x),y.dh(x);for(var b=x.sourceEdges;b.next();){var E=b.value;E.network!==y&&(gy(a,E),hy(y,E),fy(a,y,E.fromVertex))}for(b=x.destinationEdges;b.next();)x=b.value,x.network!==y&&(gy(a,x),hy(y,x),fy(a,y,x.toVertex))}}Aa.prototype.dz=function(){for(var a=new Fn,y=this.wf.iterator;y.next();)a.add(y.value.node);for(y=this.ye.iterator;y.next();)a.add(y.value.link);return a},Nt.Object.defineProperties(Aa.prototype,{layout:{get:function(){return this.Sc},set:function(a){a!==null&&(this.Sc=a)}},vertexes:{get:function(){return this.wf}},edges:{get:function(){return this.ye}}}),Aa.prototype.findAllParts=Aa.prototype.dz,Aa.prototype.splitIntoSubNetworks=Aa.prototype.Zx,Aa.prototype.deleteSelfEdges=Aa.prototype.Ko,Aa.prototype.reverseEdge=Aa.prototype.gm,Aa.prototype.linkVertexes=Aa.prototype.Zj,Aa.prototype.findEdge=Aa.prototype.Lo,Aa.prototype.deleteLink=Aa.prototype.Yy,Aa.prototype.deleteEdge=Aa.prototype.Mj,Aa.prototype.addLink=Aa.prototype.Dy,Aa.prototype.addEdge=Aa.prototype.Bo,Aa.prototype.findVertex=Aa.prototype.ki,Aa.prototype.deleteNode=Aa.prototype.Zy,Aa.prototype.deleteVertex=Aa.prototype.Iu,Aa.prototype.addNode=Aa.prototype.Bl,Aa.prototype.addVertex=Aa.prototype.dh,Aa.prototype.addParts=Aa.prototype.lg,Aa.className="LayoutNetwork";function il(a){kr(this),this.ob=a,this.j=new jn(0,0,10,10).freeze(),this.o=new lt(5,5).freeze(),this.Sh=this.ub=null,this.tg=new Ht,this.mg=new Ht}il.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new Ht,this.mg=new Ht},il.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+Dr(this);if(0<a&&(y+=this.node!==null?"("+this.node.toString()+")":"",1<a)){a="";for(var x=!0,b=this.tg.iterator;b.next();){var E=b.value;x?x=!1:a+=",",a+=E.toString(0)}for(E="",x=!0,b=this.mg.iterator;b.next();){var z=b.value;x?x=!1:E+=",",E+=z.toString(0)}y+=" sources: "+a+" destinations: "+E}return y},il.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;Gt(x)?(x.x=y.x,x.y=y.y,x.width=y.width,x.height=y.height):a.bounds=y.copy()}else if(a=this.node,a!==null){if(y=this.bounds,!(a instanceof _r)){x=jn.alloc(),a.Va();var b=this.network.layout.ni(a,x),E=a.locationObject.ga(wo);if(b.w()&&E.w()){a.moveTo(y.x+this.focusX-(E.x-b.x),y.y+this.focusY-(E.y-b.y)),jn.free(x);return}jn.free(x)}a.moveTo(y.x,y.y)}},il.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},il.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},il.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},il.prototype.Jl=function(a){a!==null&&this.mg.remove(a)};function py(a,y){return a=a.Sh,y=y.Sh,a?y?(a=a.text,y=y.text,a<y?-1:a>y?1:0):1:y!==null?-1:0}Nt.Object.defineProperties(il.prototype,{sourceEdgesArrayAccess:{get:function(){return this.tg._dataArray}},destinationEdgesArrayAccess:{get:function(){return this.mg._dataArray}},data:{get:function(){return this.ub},set:function(a){if(this.ub=a,a!==null&&a.bounds){var y=a.bounds;a=y.x;var x=y.y,b=y.width;y=y.height,this.o.h(b/2,y/2),this.j.h(a,x,b,y)}}},node:{get:function(){return this.Sh},set:function(a){if(this.Sh!==a){this.Sh=a,a.Va();var y=this.network.layout,x=jn.alloc(),b=y.ni(a,x);y=b.x;var E=b.y,z=b.width;if(b=b.height,isNaN(y)&&(y=0),isNaN(E)&&(E=0),this.j.h(y,E,z,b),jn.free(x),!(a instanceof _r)&&(a=a.locationObject.ga(wo),a.w())){this.o.h(a.x-y,a.y-E);return}this.o.h(z/2,b/2)}}},bounds:{get:function(){return this.j},set:function(a){this.j.D(a)||this.j.assign(a)}},focus:{get:function(){return this.o},set:function(a){this.o.D(a)||this.o.assign(a)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(a){var y=this.j;y.x+this.o.x!==a&&(y.ka(),y.x=a-this.o.x,y.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(a){var y=this.j;y.y+this.o.y!==a&&(y.ka(),y.y=a-this.o.y,y.freeze())}},focusX:{get:function(){return this.o.x},set:function(a){var y=this.o;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},focusY:{get:function(){return this.o.y},set:function(a){var y=this.o;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},x:{get:function(){return this.j.x},set:function(a){var y=this.j;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},y:{get:function(){return this.j.y},set:function(a){var y=this.j;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},width:{get:function(){return this.j.width},set:function(a){var y=this.j;y.width!==a&&(y.ka(),y.width=a,y.freeze())}},height:{get:function(){return this.j.height},set:function(a){var y=this.j;y.height!==a&&(y.ka(),y.height=a,y.freeze())}},network:{get:function(){return this.ob},set:function(a){this.ob=a}},sourceVertexes:{get:function(){for(var a=new Fn,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new Fn,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new Fn,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);for(y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},sourceEdges:{get:function(){return this.tg.iterator}},destinationEdges:{get:function(){return this.mg.iterator}},edges:{get:function(){for(var a=new Ht,y=this.sourceEdges;y.next();)a.add(y.value);for(y=this.destinationEdges;y.next();)a.add(y.value);return a.iterator}},edgesCount:{get:function(){return this.tg.count+this.mg.count}}}),il.prototype.deleteDestinationEdge=il.prototype.Jl,il.prototype.addDestinationEdge=il.prototype.zl,il.prototype.deleteSourceEdge=il.prototype.Kl,il.prototype.addSourceEdge=il.prototype.Cl,il.className="LayoutVertex",il.standardComparer=py,il.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.Sh;var x=y.Sh;if(a!==null){if(x!==null){for(y=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),a=x.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),x=0;x<y.length;x++)if(a[x]!==""&&a[x]!==void 0){var b=parseFloat(y[x]),E=parseFloat(a[x]);if(isNaN(b))if(isNaN(E)){if(y[x].localeCompare(a[x])!==0)return y[x].localeCompare(a[x])}else return 1;else{if(isNaN(E))return-1;if(b-E!==0)return b-E}}else if(y[x]!=="")return 1;return a[x]!==""&&a[x]!==void 0?-1:0}return 1}return x!==null?-1:0}return 1}return y!==null?-1:0};function fc(a){kr(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}fc.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},fc.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+Dr(this);return 0<a&&(y+=this.$k!==null?"("+this.$k.toString()+")":"",1<a&&(y+=" "+(this.kd?this.kd.toString():"null")+" --> "+(this.qd?this.qd.toString():"null"))),y},fc.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},fc.prototype.commit=function(){},fc.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},Nt.Object.defineProperties(fc.prototype,{network:{get:function(){return this.nb},set:function(a){this.nb=a}},data:{get:function(){return this.ub},set:function(a){this.ub!==a&&(this.ub=a)}},link:{get:function(){return this.$k},set:function(a){this.$k!==a&&(this.$k=a)}},fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}}}),fc.prototype.getOtherVertex=fc.prototype.Ax,fc.className="LayoutEdge";function Ol(a){Wa.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new fi(NaN,NaN).freeze(),this.tf=new fi(10,10).freeze(),this.Jb=tm,this.Rb=w0,this.nd=nm,this.hd=gx,a&&Object.assign(this,a)}qt(Ol,Wa),Ol.prototype.cloneProtected=function(a){Wa.prototype.cloneProtected.call(this,a),a.zo=this.zo,a.yo=this.yo,a.yg.assign(this.yg),a.tf.assign(this.tf),a.Jb=this.Jb,a.Rb=this.Rb,a.nd=this.nd,a.hd=this.hd},Ol.prototype.qb=function(a){a.classType===Ol?a===nm||a===C0||a===my||a===E0?this.sorting=a:a===w0||a===bd?this.arrangement=a:a===tm||a===b0?this.alignment=a:bt("Unknown enum value: "+a):Wa.prototype.qb.call(this,a)},Ol.prototype.doLayout=function(a){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var y=this.ex(a);a=this.diagram;for(var x=y.copy().iterator;x.next();){var b=x.value;if(!b.ph()||b.fromNode===null&&b.toNode===null){if(b.Va(),b instanceof _r)for(b=b.memberParts;b.next();)y.remove(b.value)}else y.remove(b)}var E=y.Fa();if(E.length!==0){switch(this.sorting){case E0:E.reverse();break;case nm:E.sort(this.comparer);break;case C0:E.sort(this.comparer),E.reverse()}var z=this.wrappingColumn;isNaN(z)&&(z=0);var te=this.wrappingWidth;switch(isNaN(te)&&a!==null?(y=a.padding,te=Math.max(a.viewportBounds.width-y.left-y.right,0)):te=Math.max(this.wrappingWidth,0),0>=z&&0>=te&&(z=1),y=this.spacing.width,isFinite(y)||(y=0),x=this.spacing.height,isFinite(x)||(x=0),a!==null&&a.Ea("Layout"),b=[],this.alignment){case b0:var re=y,le=x,ce=jn.alloc(),de=Math.max(this.cellSize.width,1);if(!isFinite(de))for(var ve=de=0;ve<E.length;ve++){var Pe=this.ni(E[ve],ce);de=Math.max(de,Pe.width)}if(de=Math.max(de+re,1),ve=Math.max(this.cellSize.height,1),!isFinite(ve))for(Pe=ve=0;Pe<E.length;Pe++){var Le=this.ni(E[Pe],ce);ve=Math.max(ve,Le.height)}ve=Math.max(ve+le,1),Pe=this.arrangement;for(var Fe=Le=this.arrangementOrigin.x,Ze=this.arrangementOrigin.y,pt=0,at=0,Ct=0;Ct<E.length;Ct++){var Lt=E[Ct],Dt=this.ni(Lt,ce),Kt=Math.ceil((Dt.width+re)/de)*de,vn=Math.ceil((Dt.height+le)/ve)*ve;switch(Pe){case bd:var Pi=Math.abs(Fe-Dt.width);break;default:Pi=Fe+Dt.width}switch((0<z&&pt>z-1||0<te&&0<pt&&Pi-Le>te)&&(b.push(new jn(0,Ze,te+re,at)),pt=0,Fe=Le,Ze+=at,at=0),at=Math.max(at,vn),Pe){case bd:Dt=-Dt.width;break;default:Dt=0}switch(Lt.moveTo(Fe+Dt,Ze),Pe){case bd:Fe-=Kt;break;default:Fe+=Kt}pt++}b.push(new jn(0,Ze,te+re,at)),jn.free(ce);break;case tm:for(le=te,de=z,ve=y,Pe=x,te=jn.alloc(),Le=Math.max(this.cellSize.width,1),z=Ze=ce=0,re=lt.alloc(),Fe=0;Fe<E.length;Fe++)at=E[Fe],pt=this.ni(at,te),at=_h(at,at.locationObject,at.locationSpot,re),ce=Math.max(ce,at.x),Ze=Math.max(Ze,pt.width-at.x),z=Math.max(z,at.y);switch(Fe=this.arrangement,Fe){case bd:ce+=ve;break;default:Ze+=ve}Le=isFinite(Le)?Math.max(Le+ve,1):Math.max(ce+Ze,1);var ji=at=this.arrangementOrigin.x;for(Ct=this.arrangementOrigin.y,Ze=0,le>=ce&&(le-=ce),ce=Lt=0,Kt=Math.max(this.cellSize.height,1),Dt=z=0,vn=!0,pt=lt.alloc(),Pi=0;Pi<E.length;Pi++){var Di=E[Pi],vi=this.ni(Di,te),ti=_h(Di,Di.locationObject,Di.locationSpot,re);if(0<Ze)switch(Fe){case bd:ji=(ji-at-(vi.width-ti.x))/Le,ji=Wt.$(Math.round(ji),ji)?Math.round(ji):Math.floor(ji),ji=ji*Le+at;break;default:ji=(ji-at+ti.x)/Le,ji=Wt.$(Math.round(ji),ji)?Math.round(ji):Math.ceil(ji),ji=ji*Le+at}else switch(Fe){case bd:Lt=ji+ti.x+vi.width;break;default:Lt=ji-ti.x}switch(Fe){case bd:var Br=-(ji+ti.x)+Lt;break;default:Br=ji+vi.width-ti.x-Lt}if(0<de&&Ze>de-1||0<le&&0<Ze&&Br>le){for(b.push(new jn(0,vn?Ct-z:Ct,le+ve,Dt+z+Pe)),ji=0;ji<Ze&&Pi!==Ze;ji++){Br=E[Pi-Ze+ji];var Ar=_h(Br,Br.locationObject,Br.locationSpot,pt);Br.moveTo(Br.position.x,Br.position.y+z-Ar.y)}Dt+=Pe,Ct=vn?Ct+Dt:Ct+(Dt+z),Ze=Dt=z=0,ji=at,vn=!1}switch(ji===at&&(ce=Fe===bd?Math.max(ce,vi.width-ti.x):Math.min(ce,-ti.x)),z=Math.max(z,ti.y),Dt=Math.max(Dt,vi.height-ti.y),isFinite(Kt)&&(Dt=Math.max(Dt,Math.max(vi.height,Kt)-ti.y)),vn?Di.moveTo(ji-ti.x,Ct-ti.y):Di.moveTo(ji-ti.x,Ct),Fe){case bd:ji-=ti.x+ve;break;default:ji+=vi.width-ti.x+ve}Ze++}if(b.push(new jn(0,Ct,le+ve,(vn?Dt:Dt+z)+Pe)),E.length!==Ze)for(le=0;le<Ze;le++)de=E[E.length-Ze+le],ve=_h(de,de.locationObject,de.locationSpot,re),de.moveTo(de.position.x,de.position.y+z-ve.y);if(lt.free(re),lt.free(pt),Fe===bd)for(E=0;E<b.length;E++)z=b[E],z.width+=ce,z.x-=ce;else for(E=0;E<b.length;E++)z=b[E],z.x>ce&&(z.width+=z.x-ce,z.x=ce);jn.free(te)}for(re=z=te=E=0;re<b.length;re++)le=b[re],E=Math.min(E,le.x),te=Math.min(te,le.y),z=Math.max(z,le.x+le.width);this.arrangement===bd?this.commitLayers(b,new lt(E+y/2-(z+E),te-x/2)):this.commitLayers(b,new lt(E-y/2,te-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},Ol.prototype.commitLayers=function(){};function gx(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}Nt.Object.defineProperties(Ol.prototype,{wrappingWidth:{get:function(){return this.zo},set:function(a){this.zo!==a&&(0<a||isNaN(a))&&(this.zo=a,this.isViewportSized=isNaN(a),this.C())}},wrappingColumn:{get:function(){return this.yo},set:function(a){this.yo!==a&&(0<a||isNaN(a))&&(this.yo=a,this.C())}},cellSize:{get:function(){return this.yg},set:function(a){this.yg.D(a)||(this.yg.assign(a),this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf.D(a)||(this.tf.assign(a),this.C())}},alignment:{get:function(){return this.Jb},set:function(a){this.Jb===a||a!==tm&&a!==b0||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==w0&&a!==bd||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==my&&a!==E0&&a!==nm&&a!==C0||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var b0=new tn(Ol,"Position",0),tm=new tn(Ol,"Location",1),w0=new tn(Ol,"LeftToRight",2),bd=new tn(Ol,"RightToLeft",3),my=new tn(Ol,"Forward",4),E0=new tn(Ol,"Reverse",5),nm=new tn(Ol,"Ascending",6),C0=new tn(Ol,"Descending",7);Ol.className="GridLayout",Ol.standardComparer=gx,Ol.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),y=y.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/);for(var x=0;x<a.length;x++)if(y[x]!==""&&y[x]!==void 0){var b=parseFloat(a[x]),E=parseFloat(y[x]);if(isNaN(b))if(isNaN(E)){if(a[x].localeCompare(y[x])!==0)return a[x].localeCompare(y[x])}else return 1;else{if(isNaN(E))return-1;if(b-E!==0)return b-E}}else if(a[x]!=="")return 1;return y[x]!==""&&y[x]!==void 0?-1:0}return 1}return y!==null?-1:0},Ol.Position=b0,Ol.Location=tm,Ol.LeftToRight=w0,Ol.RightToLeft=bd,Ol.Forward=my,Ol.Reverse=E0,Ol.Ascending=nm,Ol.Descending=C0;function na(){this.On=new Fn,this.Dn=new Fn,this.Pa=new Fn,this.cf=new Ii,this.bf=new Ii,this.aj=new Ii,this.H=null,this.tp=!1}Ue=na.prototype,Ue.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},Ue.Xe=function(a){this.H=a},Ue.oi=function(a){if(a instanceof Li){if(this.On.add(a),a instanceof _r){var y=a.containingGroup;y===null?this.H.ai.add(a):y.gl.add(a),y=a.layout,y!==null&&(y.diagram=this.H)}}else a instanceof yi?this.Dn.add(a):a instanceof zo||this.Pa.add(a);y=a.data,y===null||a instanceof zo||(a instanceof yi?this.bf.add(y,a):this.cf.add(y,a))},Ue.pc=function(a){if(a.Ej(),a instanceof Li){if(this.On.remove(a),a instanceof _r){var y=a.containingGroup;y===null?this.H.ai.remove(a):y.gl.remove(a),y=a.layout,y!==null&&(y.diagram=null)}}else a instanceof yi?this.Dn.remove(a):a instanceof zo||this.Pa.remove(a);y=a.data,y===null||a instanceof zo||(a instanceof yi?this.bf.remove(y):this.cf.remove(y))},Ue.Wd=function(){var a=this.H;if(a!==null){for(var y=a.nodeTemplateMap.iterator;y.next();){var x=y.value,b=y.key;(!x.Zc()||x instanceof _r)&&bt('Invalid node template in Diagram.nodeTemplateMap: template for "'+b+'" must be a Node or a simple Part, not a Group or Link: '+x)}for(y=a.groupTemplateMap.iterator;y.next();)x=y.value,b=y.key,x instanceof _r||bt('Invalid group template in Diagram.groupTemplateMap: template for "'+b+'" must be a Group, not a normal Node or Link: '+x);for(y=a.linkTemplateMap.iterator;y.next();)x=y.value,b=y.key,x instanceof yi||bt('Invalid link template in Diagram.linkTemplateMap: template for "'+b+'" must be a Link, not a normal Node or simple Part: '+x);for(y=gn(),x=a.selection.iterator;x.next();)(b=x.value.data)&&y.push(b);for(x=gn(),a=a.highlighteds.iterator;a.next();)(b=a.value.data)&&x.push(b);for(a=gn(),b=this.nodes.iterator;b.next();){var E=b.value;E.data!==null&&(a.push(E.data),a.push(E.location))}for(b=this.links.iterator;b.next();)E=b.value,E.data!==null&&(a.push(E.data),a.push(E.location));for(b=this.parts.iterator;b.next();)E=b.value,E.data!==null&&(a.push(E.data),a.push(E.location));for(this.removeAllModeledParts(),this.addAllModeledParts(),b=0;b<y.length;b++)E=this.Lc(y[b]),E!==null&&(E.isSelected=!0);for(b=0;b<x.length;b++)E=this.Lc(x[b]),E!==null&&(E.isHighlighted=!0);for(b=0;b<a.length;b+=2)E=this.Lc(a[b]),E!==null&&(E.location=a[b+1]);kn(y),kn(x),kn(a)}},na.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},na.prototype.addModeledParts=function(a,y){var x=this,b=this.diagram.model;a.forEach(function(E){b.lb(E)&&fx(x,E,!1)}),a.forEach(function(E){b.lb(E)&&x.resolveReferencesForData(E)}),y!==!1&&sg(this.diagram,!1)};function fx(a,y,x){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.cf.contains(y)){x===void 0&&(x=!0);e:{if(y!=null&&!a.H.undoManager.isUndoingRedoing&&!a.cf.contains(y)){var b=a.Ro(y),E=px(a,y,b);if(E!==null&&(Vc(E),E=E.copy(),E!==null)){var z=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,E.Tf=b,E.ub=y,a.tp&&(E.Jg="Tool"),a.diagram.add(E),E.ub=null,E.data=y,a.diagram.skipsModelSourceBindings=z,b=E;break e}}b=null}b!==null&&x&&a.resolveReferencesForData(y)}}na.prototype.insertLink=function(){return null},na.prototype.resolveReferencesForData=function(){},na.prototype.Ro=function(a){return this.H.model.Ro(a)};function px(a,y,x){a=a.H;var b=a.model;return b.Xj()&&b.Yu(y)?(y=a.groupTemplateMap.I(x),y===null&&(y=a.groupTemplateMap.I(""),y===null&&(yx||(yx=!0,ni('No Group template found for category "'+x+'"'),ni(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(vx||(vx=!0,ni('No Node template found for category "'+x+'"'),ni(" Using default node template")),y=a.ny))),y}na.prototype.getLinkCategoryForData=function(){return""},na.prototype.setLinkCategoryForData=function(){},na.prototype.setFromNodeForLink=function(){},na.prototype.setToNodeForLink=function(){},na.prototype.findLinkTemplateForCategory=function(a){var y=this.H,x=y.linkTemplateMap.I(a);return x===null&&(x=y.linkTemplateMap.I(""),x===null&&(Sx||(Sx=!0,ni('No Link template found for category "'+a+'"'),ni(" Using default link template")),x=y.my)),x},na.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},na.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},na.prototype.ip=function(a){a=this.Lc(a),a!==null&&(hh(this.diagram,a,!1),this.unresolveReferencesForPart(a))},na.prototype.unresolveReferencesForPart=function(){},na.prototype.removeDataForLink=function(){},na.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},na.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof Li?a:null)},na.prototype.findLinkForKey=function(){return null},Ue=na.prototype,Ue.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},Ue.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof Li?a:null)},Ue.Kc=function(a){return a===null?null:this.bf.I(a)},Ue.ms=function(a){for(var y=0;y<arguments.length;++y);y=new Fn;for(var x=this.On.iterator;x.next();){var b=x.value,E=b.data;if(E!==null)for(var z=0;z<arguments.length;z++){var te=arguments[z];if(Gt(te)&&vy(this,E,te)){y.add(b);break}}}return y.iterator},Ue.ls=function(a){for(var y=0;y<arguments.length;++y);y=new Fn;for(var x=this.Dn.iterator;x.next();){var b=x.value,E=b.data;if(E!==null)for(var z=0;z<arguments.length;z++){var te=arguments[z];if(Gt(te)&&vy(this,E,te)){y.add(b);break}}}return y.iterator};function vy(a,y,x){for(var b in x){var E=y[b],z=x[b];if(yn(z)){if(!yn(E)||E.length<z.length)return!1;for(var te=0;te<E.length;te++){var re=z[te];if(re!==void 0&&!mx(a,E[te],re))return!1}}else if(!mx(a,E,z))return!1}return!0}function mx(a,y,x){if(typeof x=="function"){if(!x(y))return!1}else if(x instanceof RegExp){if(!y||!x.test(y.toString()))return!1}else if(Gt(y)&&Gt(x)){if(!vy(a,y,x))return!1}else if(y!==x)return!1;return!0}na.prototype.doModelChanged=function(a){if(this.H){var y=this.H;if(a.model===y.model){var x=a.change;if(y.doModelChanged(a),y.aa){y.aa=!1;try{var b=a.modelChange;if(b!=="")if(x===Ma){if(b==="nodeCategory"){var E=this.Lc(a.object),z=a.newValue;E!==null&&typeof z=="string"&&(E.category=z)}else b==="nodeDataArray"&&(this.Gs(a.oldValue),this.addModeledParts(a.newValue));y.isModified=!0}else if(x===Ka){var te=a.newValue;b==="nodeDataArray"&&Gt(te)&&fx(this,te),y.isModified=!0}else if(x===ms){var re=a.oldValue;b==="nodeDataArray"&&Gt(re)&&this.ip(re),y.isModified=!0}else x===Bl&&(b==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):b==="ModelDisplaced"&&this.Wd());else if(x===Ma){var le=a.propertyName,ce=a.object;ce===y.model?(le==="nodeKeyProperty"||le==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(ce,le),y.isModified=!0}else if(x===Ka||x===ms){var de=a.change===Ka,ve=de?a.newParam:a.oldParam,Pe=de?a.newValue:a.oldValue,Le=this.aj.I(a.object);if(Array.isArray(Le))for(a=0;a<Le.length;a++){var Fe=Le[a];if(de)Hm(Fe,Pe,ve,!0);else if(!(0>ve)){var Ze=ve+Bp(Fe);Fe.pc(Ze,!0),Iv(Fe,Ze,ve)}}y.isModified=!0}}finally{y.aa=!0}}}}},na.prototype.updateAllTargetBindings=function(a){a===void 0&&(a="");for(var y=this.parts.iterator;y.next();)y.value.La(a);for(y=this.nodes.iterator;y.next();)y.value.La(a);for(y=this.links.iterator;y.next();)y.value.La(a)},na.prototype.rp=function(){for(var a=this.H.model,y=new Fn,x=a.nodeDataArray,b=0;b<x.length;b++)y.add(x[b]);var E=[];for(this.nodes.each(function(te){te.data===null||y.contains(te.data)||E.push(te.data)}),this.parts.each(function(te){te.data===null||y.contains(te.data)||E.push(te.data)}),E.forEach(function(te){Mx(a,te,!1)}),b=0;b<x.length;b++){var z=x[b];this.Lc(z)===null&&Nx(a,z,!1)}for(this.refreshDataBoundLinks(),x=this.parts.iterator;x.next();)x.value.updateRelationshipsFromData();for(x=this.nodes.iterator;x.next();)x.value.updateRelationshipsFromData();for(x=this.links.iterator;x.next();)x.value.updateRelationshipsFromData()},na.prototype.refreshDataBoundLinks=function(){},na.prototype.updateRelationshipsFromData=function(){},na.prototype.updateDataBindings=function(a,y){if(typeof y=="string"){var x=this.Lc(a);if(x!==null)x.La(y);else{x=null;for(var b=this.aj.iterator;b.next();){for(var E=b.value,z=0;z<E.length;z++){var te=E[z].sx(a);te!==null&&(x===null&&(x=gn()),x.push(te))}if(x!==null)break}if(x!==null){for(b=0;b<x.length;b++)x[b].La(y);kn(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function yy(a,y){var x=y.Hh;if(yn(x)){var b=a.aj.I(x);if(b===null)b=[],b.push(y),a.aj.add(x,b);else{for(a=0;a<b.length;a++)if(b[a]===y)return;b.push(y)}}}function Sy(a,y,x){Yg(y,function(te){te=te.O.s;for(var re=te.length,le=0;le<re;le++)fl(x,te[le])});var b=y.Hh;if(yn(b)){var E=a.aj.I(b);if(E!==null){for(var z=0;z<E.length;z++)if(E[z]===y){E.splice(z,1),E.length===0&&a.aj.remove(b);break}}}}na.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var b=new Ii;if(yn(a))for(var E=0;E<a.length;E++)P0(this,a[E],y,b,x);else for(a=a.iterator;a.next();)P0(this,a.value,y,b,x);if(y!==null){x=y.model,a=y.toolManager.findTool("Dragging"),a=a!==null?a.dragOptions.dragsLink:y.Wm.dragsLink,E=new Fn;for(var z=new Ii,te=b.iterator;te.next();){var re=te.value;if(re instanceof yi)a||re.fromNode!==null&&re.toNode!==null||E.add(re);else if(re instanceof Li&&re.data!==null&&x.Tl()){var le=re;re=te.key;var ce=re.pg();ce!==null&&(ce=b.I(ce),ce!==null?(x.qe(le.data,x.wa(ce.data)),le=y.Kc(le.data),re=re.kh(),re!==null&&le!==null&&z.add(re,le)):x.qe(le.data,void 0))}}if(0<E.count&&y.Is(E,!1),0<z.count)for(x=z.iterator;x.next();)b.add(x.key,x.value)}if(y!==null&&this.H!==null&&(y=y.model,x=y.afterCopyFunction,x!==null)){var de=new Ii;b.each(function(ve){ve.key.data!==null&&de.add(ve.key.data,ve.value.data)}),x(de,y,this.H.model)}for(y=b.iterator;y.next();)y.value.La();return b};function P0(a,y,x,b,E){if(y===null||E&&!y.canCopy())return null;if(b.contains(y))return b.I(y);var z=a.copyPartData(y,x);if(!(z instanceof nr))return null;if(z.isSelected=!1,z.isHighlighted=!1,b.add(y,z),y instanceof Li){for(var te=y.linksConnected;te.next();){var re=te.value;if(re.fromNode===y){var le=b.I(re);le!==null&&(le.fromNode=z)}re.toNode===y&&(re=b.I(re),re!==null&&(re.toNode=z))}if(y instanceof _r&&z instanceof _r)for(y=y.memberParts;y.next();)te=P0(a,y.value,x,b,E),te instanceof yi||te===null||(te.containingGroup=z)}else if(y instanceof yi&&z instanceof yi)for(te=y.fromNode,te!==null&&(te=b.I(te),te!==null&&(z.fromNode=te)),te=y.toNode,te!==null&&(te=b.I(te),te!==null&&(z.toNode=te)),y=y.labelNodes;y.next();)te=P0(a,y.value,x,b,E),te!==null&&te instanceof Li&&(te.labeledLink=z);return z}na.prototype.copyPartData=function(a,y){var x=null,b=a.data;if(b!==null&&y!==null){var E=y.model;a instanceof yi||(b=E.copyNodeData(b),Gt(b)&&(E.xf(b),x=y.Lc(b)))}else Vc(a),x=a.copy(),x!==null&&(E=this.H,y!==null?y.add(x):b!==null&&E!==null&&E.commandHandler!==null&&E.commandHandler.copiesClipboardData&&(y=E.model,E=null,x instanceof yi||(E=y.copyNodeData(b)),Gt(E)&&(x.data=E)));return x},Nt.Object.defineProperties(na.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(a){this.tp=a}}}),na.prototype.updateAllRelationshipsFromData=na.prototype.rp,na.prototype.findLinksByExample=na.prototype.ls,na.prototype.findNodesByExample=na.prototype.ms,na.prototype.findLinkForData=na.prototype.Kc,na.prototype.findNodeForData=na.prototype.ii,na.prototype.findPartForData=na.prototype.Lc,na.prototype.findNodeForKey=na.prototype.Vb,na.prototype.removeModeledPart=na.prototype.ip,na.prototype.removeModeledParts=na.prototype.Gs,na.prototype.rebuildParts=na.prototype.Wd;var vx=!1,yx=!1,Sx=!1;na.className="PartManager";function Cl(a){na.apply(this,arguments)}qt(Cl,na),Cl.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),xx(this,a.linkDataArray)},Cl.prototype.addModeledParts=function(a){for(na.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)ip(a.value);sg(this.diagram,!1)};function xx(a,y){y.forEach(function(x){bx(a,x)}),sg(a.diagram,!1)}function bx(a,y){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.bf.contains(y)){var x=a.getLinkCategoryForData(y),b=a.findLinkTemplateForCategory(x);if(b!==null){Vc(b);var E=b.copy();if(E!==null){b=a.diagram.skipsModelSourceBindings,a.diagram.skipsModelSourceBindings=!0,E.Tf=x,E.ub=y,x=a.diagram.model;var z=L0(x,y,!0);z!==""&&(E.fromPortId=z),z=Ec(x,y,!0),z!==void 0&&(z=a.Vb(z),z instanceof Li&&(E.fromNode=z)),z=L0(x,y,!1),z!==""&&(E.toPortId=z),z=Ec(x,y,!1),z!==void 0&&(z=a.Vb(z),z instanceof Li&&(E.toNode=z)),x=x.Ef(y),Array.isArray(x)&&x.forEach(function(te){te=a.Vb(te),te!==null&&(te.labeledLink=E)}),a.tp&&(E.Jg="Tool"),a.diagram.add(E),E.ub=null,E.data=y,a.diagram.skipsModelSourceBindings=b}}}}Cl.prototype.removeAllModeledParts=function(){var a=this.diagram.model;wx(this,a.linkDataArray),this.Gs(a.nodeDataArray)};function wx(a,y){y.forEach(function(x){a.ip(x)})}Cl.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},Cl.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},Cl.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},Cl.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},Cl.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},Cl.prototype.findPartForKey=function(a){var y=na.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},Cl.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},Cl.prototype.doModelChanged=function(a){var y=this;if(na.prototype.doModelChanged.call(this,a),this.diagram){var x=this.diagram;if(a.model===x.model){var b=a.change;if(x.aa){x.aa=!1;try{var E=a.modelChange;if(E!==""){if(b===Ma){if(E==="linkFromKey"){var z=this.Kc(a.object);if(z!==null){var te=this.Vb(a.newValue);z.fromNode=te}}else if(E==="linkToKey"){var re=this.Kc(a.object);if(re!==null){var le=this.Vb(a.newValue);re.toNode=le}}else if(E==="linkFromPortId"){var ce=this.Kc(a.object);if(ce!==null){var de=a.newValue;typeof de=="string"&&(ce.fromPortId=de)}}else if(E==="linkToPortId"){var ve=this.Kc(a.object);if(ve!==null){var Pe=a.newValue;typeof Pe=="string"&&(ve.toPortId=Pe)}}else if(E==="nodeGroupKey"){var Le=this.Lc(a.object);if(Le!==null){var Fe=a.newValue;if(Fe!==void 0){var Ze=this.Vb(Fe);Ze instanceof _r?Le.containingGroup=Ze:Le.containingGroup=null}else Le.containingGroup=null}}else if(E==="linkLabelKeys"){var pt=this.Kc(a.object);if(pt!==null){var at=a.oldValue,Ct=a.newValue;Array.isArray(at)&&at.forEach(function(ti){0<=Ct.indexOf(ti)||(ti=y.Vb(ti),ti!==null&&(ti.labeledLink=null))}),Array.isArray(Ct)&&Ct.forEach(function(ti){ti=y.Vb(ti),ti!==null&&(ti.labeledLink=pt)})}}else if(E==="linkCategory"){var Lt=this.Kc(a.object),Dt=a.newValue;Lt!==null&&typeof Dt=="string"&&(Lt.category=Dt)}else E==="linkDataArray"&&(wx(this,a.oldValue),xx(this,a.newValue));x.isModified=!0}else if(b===Ka){var Kt=a.newValue;if(E==="linkDataArray"&&typeof Kt=="object"&&Kt!==null)bx(this,Kt);else if(E==="linkLabelKeys"&&yg(Kt)){var vn=this.Kc(a.object),Pi=this.Vb(Kt);vn!==null&&Pi!==null&&(Pi.labeledLink=vn)}x.isModified=!0}else if(b===ms){var ji=a.oldValue;if(E==="linkDataArray"&&typeof ji=="object"&&ji!==null)this.ip(ji);else if(E==="linkLabelKeys"&&yg(ji)){var Di=this.Vb(ji);Di!==null&&(Di.labeledLink=null)}x.isModified=!0}}else if(b===Ma){var vi=a.propertyName;a.object!==x.model||vi!=="linkFromKeyProperty"&&vi!=="linkToKeyProperty"&&vi!=="linkFromPortIdProperty"&&vi!=="linkToPortIdProperty"&&vi!=="linkLabelKeysProperty"&&vi!=="nodeIsGroupProperty"&&vi!=="nodeGroupKeyProperty"&&vi!=="linkCategoryProperty"||x.undoManager.isUndoingRedoing||this.Wd(),x.isModified=!0}}finally{x.aa=!0}}}}},Cl.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,x=new Fn,b=y.linkDataArray;b.forEach(function(z){x.add(z)});var E=[];this.links.each(function(z){z.data===null||x.contains(z.data)||E.push(z.data)}),E.forEach(function(z){Ox(y,z,!1)}),b.forEach(function(z){a.Kc(z)===null&&Dx(y,z,!1)})},Cl.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;if(a instanceof yi){var E=Ec(b,y,!0);if(E=x.Vb(E),a.fromNode=E,E=Ec(b,y,!1),E=x.Vb(E),a.toNode=E,y=b.Ef(y),0<y.length||0<a.labelNodes.count){if(y.length===1&&a.labelNodes.count===1){E=y[0];var z=a.labelNodes.first();if(b.wa(z.data)===E)return}E=new Fn().addAll(y);var te=new Fn;a.labelNodes.each(function(re){re.data!==null&&(re=b.wa(re.data),re!==void 0&&te.add(re))}),y=te.copy(),y.hp(E),E=E.copy(),E.hp(te),(0<y.count||0<E.count)&&(y.each(function(re){re=x.Vb(re),re!==null&&re.labeledLink===a&&(re.labeledLink=null)}),E.each(function(re){re=x.Vb(re),re!==null&&re.labeledLink!==a&&(re.labeledLink=a)}))}}else!(a instanceof zo)&&(y=b.lh(y),y=x.findPartForKey(y),y===null||y instanceof _r)&&(a.containingGroup=y)}}},Cl.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=im(y,x),E=this.Lc(a);if(b!==null&&E!==null){b=b.iterator;for(var z={};b.next();){var te=b.value;y.lb(te)?E instanceof _r&&y.lh(te)===x&&(te=this.Lc(te),te!==null&&(te.containingGroup=E)):(z.link=this.Kc(te),z.link!==null&&E instanceof Li&&(Ec(y,te,!0)===x&&(z.link.fromNode=E),Ec(y,te,!1)===x&&(z.link.toNode=E),te=y.Ef(te),Array.isArray(te)&&te.some(function(re){return function(le){return le===x?(E.labeledLink=re.link,!0):!1}}(z)))),z={link:z.link}}Ed(y,x)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof _r&&(E.containingGroup=a))}},Cl.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Li){var x=y.wa(a.data);if(x!==void 0){for(var b=a.linksConnected;b.next();)wd(y,x,b.value.data);if(a.isLinkLabel&&(b=a.labeledLink,b!==null&&wd(y,x,b.data)),a instanceof _r)for(a=a.memberParts;a.next();)b=a.value.data,y.lb(b)&&wd(y,x,b)}}},Cl.prototype.copyPartData=function(a,y){var x=na.prototype.copyPartData.call(this,a,y);if(a instanceof yi)if(a=a.data,a!==null&&y!==null){var b=y.model;a=b.Jo(a),typeof a=="object"&&a!==null&&(b.fi(a),x=y.Kc(a))}else x!==null&&(y=this.diagram,a!==null&&y!==null&&y.commandHandler!==null&&y.commandHandler.copiesClipboardData&&(y=y.model.Jo(a),typeof y=="object"&&y!==null&&(x.data=y)));return x},Cl.prototype.insertLink=function(a,y,x,b){var E=this.diagram,z=E.model,te=E.toolManager.findTool("Linking"),re="";if(a!==null&&(y===null&&(y=a),re=y.portId,re===null&&(re="")),y="",x!==null&&(b===null&&(b=x),y=b.portId,y===null&&(y="")),b=te.archetypeLinkData,b instanceof yi){if(Vc(b),z=b.copy(),z!==null)return z.fromNode=a,z.fromPortId=re,z.toNode=x,z.toPortId=y,E.add(z),a=te.archetypeLabelNodeData,a instanceof Li&&(Vc(a),a=a.copy(),a!==null&&(a.labeledLink=z,E.add(a))),z}else if(b!==null&&(b=z.Jo(b),typeof b=="object"&&b!==null))return a!==null&&up(z,b,z.wa(a.data),!0),cp(z,b,re,!0),x!==null&&up(z,b,z.wa(x.data),!1),cp(z,b,y,!1),z.fi(b),a=te.archetypeLabelNodeData,a===null||a instanceof Li||(a=z.copyNodeData(a),typeof a=="object"&&a!==null&&(z.xf(a),a=z.wa(a),a!==void 0&&z.Bu(b,a))),E.Kc(b);return null},Cl.prototype.findLinkForKey=Cl.prototype.findLinkForKey,Cl.prototype.findPartForKey=Cl.prototype.findPartForKey,Cl.prototype.removeAllModeledParts=Cl.prototype.removeAllModeledParts,Cl.prototype.addModeledParts=Cl.prototype.addModeledParts,Cl.prototype.addAllModeledParts=Cl.prototype.addAllModeledParts,Cl.className="GraphLinksPartManager";function Fc(){na.apply(this,arguments),this.Sg=null}qt(Fc,na);function A0(a,y,x){if(y!==null&&x!==null&&x.kh()===null){var b=a.diagram.toolManager.findTool("Linking"),E=y,z=x;if(a.diagram.isTreePathToChildren||(E=x,z=y),(b===null||!ai(b,E,z,null,!0))&&(y=a.getLinkCategoryForData(x.data),b=a.findLinkTemplateForCategory(y),b!==null&&(Vc(b),b=b.copy(),b!==null))){var te=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,b.Tf=y,b.ub=x.data,b.fromNode=E,b.toNode=z,a.diagram.add(b),b.ub=null,b.data=x.data,a.diagram.skipsModelSourceBindings=te}}}Fc.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},Fc.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},Fc.prototype.setFromNodeForLink=function(a,y,x){var b=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren)b.qe(a.data,b.wa(y));else{var E=this.Sg;this.Sg=a,x!==null&&b.qe(x.data,void 0),b.qe(y,b.wa(a.toNode!==null?a.toNode.data:null)),this.Sg=E}},Fc.prototype.setToNodeForLink=function(a,y,x){var b=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren){var E=this.Sg;this.Sg=a,x!==null&&b.qe(x.data,void 0),b.qe(y,b.wa(a.fromNode!==null?a.fromNode.data:null)),this.Sg=E}else b.qe(a.data,b.wa(y))},Fc.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},Fc.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},Fc.prototype.doModelChanged=function(a){if(na.prototype.doModelChanged.call(this,a),this.diagram){var y=this.diagram;if(a.model===y.model){var x=a.change;if(y.aa){y.aa=!1;try{var b=a.modelChange;if(b!==""){if(x===Ma){if(b==="nodeParentKey"){var E=a.object,z=this.Vb(a.newValue),te=this.ii(E);if(this.Sg!==null)z!==null&&(this.Sg.data=E,this.Sg.category=this.getLinkCategoryForData(E));else if(te!==null){var re=te.kh();re!==null?z===null?y.remove(re):y.isTreePathToChildren?re.fromNode=z:re.toNode=z:A0(this,z,te)}}else if(b==="parentLinkCategory"){var le=this.ii(a.object),ce=a.newValue;if(le!==null&&typeof ce=="string"){var de=le.kh();de!==null&&(de.category=ce)}}y.isModified=!0}}else if(x===Ma){var ve=a.propertyName;a.object===y.model&&ve==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},Fc.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;a instanceof Li&&(y=b.mh(y),y=x.Vb(y),b=a.pg(),y!==b&&(b=a.kh(),y!==null?b!==null?x.isTreePathToChildren?b.fromNode=y:b.toNode=y:A0(this,y,a):b!==null&&hh(x,b,!1)))}}},Fc.prototype.updateDataBindings=function(a,y){na.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},Fc.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=im(y,x),E=this.Lc(a);if(b!==null&&E!==null){for(b=b.iterator;b.next();){var z=b.value;y.lb(z)&&E instanceof Li&&y.mh(z)===x&&A0(this,E,this.ii(z))}Ed(y,x)}a=y.mh(a),a!==void 0&&E instanceof Li&&(a=this.Vb(a),A0(this,a,E))}},Fc.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Li){var x=y.wa(a.data),b=this.Kc(a.data);if(b!==null){b.isSelected=!1,b.isHighlighted=!1;var E=b.layer;if(E!==null){var z=E.pc(-1,b,!1);0<=z&&this.diagram.cb(ms,"parts",E,b,null,z,null),z=b.layerChanged,z!==null&&z(b,E,null)}}for(b=this.diagram.isTreePathToChildren,a=a.linksConnected;a.next();)E=a.value,E=(b?E.toNode:E.fromNode).data,y.lb(E)&&wd(y,x,E)}},Fc.prototype.insertLink=function(a,y,x){y=this.diagram.model;var b=a,E=x;return this.diagram.isTreePathToChildren||(b=x,E=a),b!==null&&E!==null?(y.qe(E.data,y.wa(b.data)),E.kh()):null},Fc.prototype.findLinkForKey=Fc.prototype.findLinkForKey,Fc.className="TreePartManager";function Wi(a,y){this.kl=new Fn,this.il=new Fn,this.Wv=`,
"insertedNodeKeys": `,this.jy=`,
"modifiedNodeData": `,this.Yv=`,
"removedNodeKeys": `,this.vh=null,kr(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new Ii,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 Ii,this.Lt=new Ht,this.Wg=!1,this.o=null,this.undoManager=new ya,a!==void 0&&(yn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Wi.prototype.cloneProtected=function(a){a.xa=this.xa,a.Sm=this.Sm,a.Gg=this.Gg,a.Th=this.Th,a.bl=this.bl,a.Bk=this.Bk,a.Km=this.Km,a.Jm=this.Jm,a.Mm=this.Mm,a.xm=this.xm,a.lj=this.lj},Wi.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Wi.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},Wi.prototype.toString=function(a){if(a===void 0&&(a=0),1<a)return this.np();var y=(this.name!==""?this.name:"")+" Model";if(0<a){y+=`
node data:`,a=this.nodeDataArray;for(var x=a.length,b=0;b<x;b++){var E=a[b];y+=" "+this.wa(E)+":"+Vn(E)}}return y},Wi.prototype.xA=function(a){a.change!==Bl&&bt("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof os?(Cx(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},Wi.prototype.Qv=function(a,y){var x=this,b=!1,E=new Fn,z=new Fn,te=new Fn,re=this.vh;a.changes.each(function(ve){ve.model===x&&(ve.modelChange==="nodeDataArray"?ve.change===Ka?E.add(ve.newValue):ve.change===ms&&te.add(ve.oldValue):x.lb(ve.object)?z.add(ve.object):ve.change!==Ma||x.modelData!==ve.object&&ve.propertyName!=="modelData"?ve.object!==null&&(re&&re.contains(ve.object)?re.get(ve.object).each(function(Pe){x.lb(Pe)&&z.add(Pe)}):ve.object instanceof Wi||x.ri()&&x.Jc(ve.object)||Px(x,ve.object).each(function(Pe){z.add(Pe)})):b=!0)});var le=this.il;le.clear(),E.each(function(ve){le.add(x.wa(ve)),y||z.add(ve)});var ce=this.kl;ce.clear(),te.each(function(ve){ce.add(x.wa(ve)),y&&z.add(ve)}),a=x.cloneDeep(z.Fa());var de=null;return b&&(de===null&&(de={}),de.modelData=this.cloneDeep(this.modelData)),0<le.count&&(de===null&&(de={}),y?de.removedNodeKeys=le.Fa():de.insertedNodeKeys=le.Fa()),0<a.length&&(de===null&&(de={}),de.modifiedNodeData=a),0<ce.count&&(de===null&&(de={}),y?de.insertedNodeKeys=ce.Fa():de.removedNodeKeys=ce.Fa()),ce.clear(),le.clear(),de},Wi.prototype.cloneDeep=function(a){return lp(this,a,!0)};function lp(a,y,x,b,E,z){function te(ve,Pe){re?(ve.__gohashid===void 0&&z.push(ve),b.set(ve,Pe)):(ve=po++,b.set(ve,Pe),E.set(ve,y))}if(!Gt(y))return y;z||(z=[]);var re=Object.isExtensible(y);if(b||(b=new Ii),re){var le=b.get(y);if(le)return le}else for(E||(E=new Ii),le=E.iterator;le.next();){var ce=le.key;if(le.value===y&&(ce=b.get(ce)))return ce}if(Array.isArray(y)){le=[],te(y,le);for(var de=0;de<y.length;de++)le.push(lp(a,y[de],!1,b,E,z))}else if(y instanceof lt||y instanceof fi||y instanceof jn||y instanceof $i||y instanceof _i)le=y.copy(),te(y,le);else{if(y instanceof ko||y instanceof di||y instanceof tn)return y;if(y instanceof Ht)le=new Ht().addAll(lp(a,y.Fa(),!1,b,E,z)),te(y,le);else if(y instanceof Fn)le=new Fn().addAll(lp(a,y.Fa(),!1,b,E,z)),te(y,le);else if(y instanceof Ii)le=new Ii().addAll(lp(a,y.Fa(),!1,b,E,z)),te(y,le);else if(y instanceof Date)le=new Date(y.getTime()),te(y,le);else if(y instanceof RegExp)le=new RegExp(y),te(y,le),le.lastIndex=y.lastIndex;else if(typeof y.copy=="function")le=y.copy(),te(y,le);else for(de in le={},te(y,le),y)de!=="__gohashid"&&(le[de]=lp(a,y[de],!1,b,E,z))}return x&&z.forEach(function(ve){delete ve.__gohashid}),le}Ue=Wi.prototype,Ue.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},Ue.rm=function(){var a="";return this.name!==""&&(a+=`,
"name": `+this.quote(this.name)),this.dataFormat!==""&&(a+=`,
"dataFormat": `+this.quote(this.dataFormat)),this.isReadOnly&&(a+=`,
"isReadOnly": `+this.isReadOnly),this.nodeKeyProperty!=="key"&&typeof this.nodeKeyProperty=="string"&&(a+=`,
"nodeKeyProperty": `+this.quote(this.nodeKeyProperty)),this.copiesArrays&&(a+=`,
"copiesArrays": true`),this.copiesArrayObjects&&(a+=`,
"copiesArrayObjects": true`),this.copiesKey||(a+=`,
"copiesKey": false`),this.nodeCategoryProperty!=="category"&&typeof this.nodeCategoryProperty=="string"&&(a+=`,
"nodeCategoryProperty": `+this.quote(this.nodeCategoryProperty)),a},Ue.gp=function(a){a.name&&(this.name=a.name),a.dataFormat&&(this.dataFormat=a.dataFormat),a.isReadOnly&&(this.isReadOnly=!0),a.nodeKeyProperty&&(this.nodeKeyProperty=a.nodeKeyProperty),a.copiesArrays&&(this.copiesArrays=!0),a.copiesArrayObjects&&(this.copiesArrayObjects=!0),a.copiesKey===!1&&(this.copiesKey=!1),a.nodeCategoryProperty&&(this.nodeCategoryProperty=a.nodeCategoryProperty)};function Ex(a,y){y=y.modelData,Gt(y)&&(a.dm(y),a.modelData=y)}Ue.Rv=function(){var a=this.modelData,y=!1,x;for(x in a)if(!Ax(x,a[x])){y=!0;break}return a="",y&&(a=`,
"modelData": `+xy(this,this.modelData)),a+`,
"nodeDataArray": `+vg(this,this.nodeDataArray,!0)},Ue.kv=function(a){Ex(this,a),a=a.nodeDataArray,yn(a)&&(this.dm(a),this.nodeDataArray=a)};function Cx(a,y){function x(E,z){if((z=z.part)&&(z=z.data,E!==z)){var te=b.get(E);te===null?(te=new Fn,te.add(z),b.add(E,te)):te.add(z)}}var b=a.vh;b===null&&(b=new Ii,y.changes.each(function(E){if(E.diagram!==null){var z=E.change;z===Ma?(E=E.object.panel)&&(z=E.data)&&x(z,E):(z===Ka||z===ms)&&(E=E.object,(z=E.itemArray)&&x(z,E))}}),a.vh=b)}function Px(a,y){for(var x=new Fn,b=0;b<a.nodeDataArray.length;b++){var E=a.nodeDataArray[b];N0(a,y,E,E,x)}return x}function N0(a,y,x,b,E){if(Array.isArray(x))for(var z=0;z<x.length;z++){var te=x[z];if(te===y)return E.add(b),!0;if(N0(a,y,te,b,E))return!0}else if(Gt(x)&&Object.getPrototypeOf(x)===Object.prototype)for(z in x){if(te=x[z],te===y)return E.add(b),!0;if(N0(a,y,te,b,E))return!0}return!1}Ue.Pv=function(a,y){var x=this,b=!1,E=new Fn,z=new Fn,te=new Fn,re=this.vh;a.changes.each(function(de){de.model===x&&(de.modelChange==="nodeDataArray"?de.change===Ka?E.add(de.newValue):de.change===ms&&te.add(de.oldValue):x.lb(de.object)?z.add(de.object):de.change!==Ma||x.modelData!==de.object&&de.propertyName!=="modelData"?de.object!==null&&(re&&re.contains(de.object)?re.get(de.object).each(function(ve){x.lb(ve)&&z.add(ve)}):de.object instanceof Wi||x.ri()&&x.Jc(de.object)||Px(x,de.object).each(function(ve){z.add(ve)})):b=!0)});var le=this.il;le.clear(),E.each(function(de){le.add(x.wa(de)),y||z.add(de)});var ce=this.kl;return ce.clear(),te.each(function(de){ce.add(x.wa(de)),y&&z.add(de)}),a="",b&&(a+=`,
"modelData": `+xy(this,this.modelData)),0<le.count&&(a+=(y?this.Yv:this.Wv)+vg(this,le.Fa(),!0)),0<z.count&&(a+=this.jy+vg(this,z.Fa(),!0)),0<ce.count&&(a+=(y?this.Wv:this.Yv)+vg(this,ce.Fa(),!0)),ce.clear(),le.clear(),a},Ue.fp=function(a){(a.name!==void 0&&a.name!==this.name||a.dataFormat!==void 0&&a.dataFormat!==this.dataFormat||a.isReadOnly!==void 0&&a.isReadOnly!==this.isReadOnly||a.nodeKeyProperty!==void 0&&a.nodeKeyProperty!==this.nodeKeyProperty||a.copiesArrays!==void 0&&a.copiesArrays!==this.copiesArrays||a.copiesArrayObjects!==void 0&&a.copiesArrayObjects!==this.copiesArrayObjects||a.copiesKey!==void 0&&a.copiesKey!==this.copiesKey||a.nodeCategoryProperty!==void 0&&a.nodeCategoryProperty!==this.nodeCategoryProperty)&&bt("applyIncrementalJson cannot change Model properties"),Ex(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,b=new Ii;if(Array.isArray(x))for(var E=0;E<x.length;E++){var z=x[E],te=this.wa(z);te!=null&&b.set(te,z)}if(Array.isArray(y))for(E=y.length,z=0;z<E;z++){te=y[z];var re=this.hc(te);re===null&&(re=(re=b.get(te))?re:this.copyNodeData({}),this.km(re,te),this.xf(re))}if(Array.isArray(x)){for(y=x.length,b=0;b<y;b++)if(E=x[b],z=this.wa(E),z=this.hc(z),z!==null){for(var le in E)le==="__gohashid"||le===this.nodeKeyProperty||this.Wj()&&le===this.nodeIsGroupProperty||this.setDataProperty(z,le,E[le]);this.lm(E,z)}}if(a=a.removedNodeKeys,Array.isArray(a))for(x=a.length,le=0;le<x;le++)y=this.hc(a[le]),y!==null&&this.cm(y)},Ue.$x=function(a,y){a.change!==Bl&&bt("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof os?(y===void 0&&(y=rm(this,this)),Cx(this,x),a=this.Pv(x,a.propertyName==="FinishedUndo"),this.vh=null,y==="2"?'{ "incremental": 2'+a+"}":'{ "class": '+this.quote(y)+', "incremental": 1'+this.rm()+a+"}"):'{ "incremental": 0 }'},Ue.yA=function(a,y){return this.$x(a,y)},Ue.np=function(a){return a===void 0&&(a=rm(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},Ue.toJSON=function(a){return this.np(a)},Ue.Zw=function(a){var y=null;if(typeof a=="string")try{y=yt.JSON.parse(a)}catch(b){}else typeof a=="object"?y=a:bt("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&bt("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},Ue.Ky=function(a){return this.Zw(a)},Wi.constructGraphLinksModel=function(){return new Wi},Ue=Wi.prototype,Ue.dm=function(a){if(yn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];if(Gt(b)){var E=x;b=this.dm(b),Array.isArray(a)?a[E]=b:bt("Cannot replace an object in an HTMLCollection or NodeList at "+E)}}else if(Gt(a)){for(y in a)if(x=a[y],Gt(x)&&(x=this.dm(x),a[y]=x,y==="points"&&Array.isArray(x))){for(E=x.length%2===0,b=0;b<x.length;b++)if(typeof x[b]!="number"){E=!1;break}if(E){for(E=new Ht,b=0;b<x.length/2;b++)E.add(new lt(x[2*b],x[2*b+1]));E.freeze(),a[y]=E}}return U1(a)}return a},Ue.sm=function(a){return a===void 0?"undefined":a===null?"null":a===!0?"true":a===!1?"false":typeof a=="string"?this.quote(a):typeof a=="number"?a===1/0?"9e9999":a===-1/0?"-9e9999":isNaN(a)?'{"class":"NaN"}':a.toString():a instanceof Date?'{"class":"Date", "value":"'+a.toJSON()+'"}':a instanceof Number?this.sm(a.valueOf()):yn(a)?vg(this,a):Gt(a)?xy(this,a):typeof a=="function"?"null":a.toString()};function vg(a,y,x){x===void 0&&(x=!1);var b=y.length;if(0>=b)return"[]";var E=new Bi;E.add("["),x&&1<b&&E.add(`
`);for(var z=0;z<b;z++){var te=y[z];te!==void 0&&(0<z&&(E.add(","),x&&E.add(`
`)),E.add(a.sm(te)))}return x&&1<b&&E.add(`
`),E.add("]"),E.toString()}function Ax(a,y){return y===void 0||a==="__gohashid"||a[0]==="_"||typeof y=="function"}function Cu(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function xy(a,y){var x=y;if(x instanceof lt)y={class:"go.Point",x:Cu(x.x),y:Cu(x.y)};else if(x instanceof fi)y={class:"go.Size",width:Cu(x.width),height:Cu(x.height)};else if(x instanceof jn)y={class:"go.Rect",x:Cu(x.x),y:Cu(x.y),width:Cu(x.width),height:Cu(x.height)};else if(x instanceof $i)y={class:"go.Margin",top:Cu(x.top),right:Cu(x.right),bottom:Cu(x.bottom),left:Cu(x.left)};else if(x instanceof _i)x.sb()?y={class:"go.Spot",x:Cu(x.x),y:Cu(x.y),offsetX:Cu(x.offsetX),offsetY:Cu(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof ko){if(y={class:"go.Brush",type:x.type.name},x.type===jh?y.color=x.color:(x.type===yh||x.type===Oc)&&(y.start=x.start,y.end=x.end,x.type===Oc&&(x.startRadius!==0&&(y.startRadius=Cu(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=Cu(x.endRadius)))),x.colorStops!==null){var b={};for(x=x.colorStops.iterator;x.next();)b[x.key]=x.value;y.colorStops=b}}else x instanceof di?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=Cu(x.startX)),x.startY!==0&&(y.startY=Cu(x.startY)),x.endX!==0&&(y.endX=Cu(x.endX)),x.endY!==0&&(y.endY=Cu(x.endY)),x.spot1.D(Hs)||(y.spot1=x.spot1),x.spot2.D(Fl)||(y.spot2=x.spot2),x.type===di.o&&(y.path=di.ia(x))):x instanceof tn&&(y={class:"go.EnumValue",classType:rm(a,x.classType),name:x.name});b="{",x=!0;for(var E in y){var z=Fs(y,E);if(!Ax(E,z))if(x?x=!1:b+=",",b+=a.quote(E)+":",E==="points"&&z instanceof Ht){var te="[";for(z=z.iterator;z.next();){var re=z.value;1<te.length&&(te+=","),te+=a.sm(re.x),te+=",",te+=a.sm(re.y)}te+="]",b+=te}else b+=a.sm(z)}return b+"}"}function Pu(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function U1(a){if(typeof a!="object")return a;var y=a.class||"";if(y==="NaN")return NaN;if(y==="Date")return new Date(a.value);if(y.indexOf("go.")!==0)return a;y=y.substr(3);var x=a;if(y==="Point")x=new lt(Pu(a.x),Pu(a.y));else if(y==="Size")x=new fi(Pu(a.width),Pu(a.height));else if(y==="Rect")x=new jn(Pu(a.x),Pu(a.y),Pu(a.width),Pu(a.height));else if(y==="Margin")x=new $i(Pu(a.top),Pu(a.right),Pu(a.bottom),Pu(a.left));else if(y==="Spot")typeof a.enum=="string"?x=Nl(a.enum):x=new _i(Pu(a.x),Pu(a.y),Pu(a.offsetX),Pu(a.offsetY));else if(y==="Brush"){if(x=new ko,x.type=Ai(ko,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof _i&&(x.start=a.start),a.end instanceof _i&&(x.end=a.end),typeof a.startRadius=="number"&&(x.startRadius=Pu(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=Pu(a.endRadius)),a=a.colorStops,Gt(a))for(var b in a)x.addColorStop(parseFloat(b),a[b])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=di.parse(a.path):x=new di,x.type=Ai(di,a.type),typeof a.startX=="number"&&(x.startX=Pu(a.startX)),typeof a.startY=="number"&&(x.startY=Pu(a.startY)),typeof a.endX=="number"&&(x.endX=Pu(a.endX)),typeof a.endY=="number"&&(x.endY=Pu(a.endY)),a.spot1 instanceof _i&&(x.spot1=a.spot1),a.spot2 instanceof _i&&(x.spot2=a.spot2)):y==="EnumValue"&&(b=a.classType,b.indexOf("go.")===0&&(b=b.substr(3)),b=wy(b),typeof b=="function"&&(x=Ai(b,a.name)));return x}Ue.Pe=function(a){return this.Lt.add(a),this},Ue.ik=function(a){this.Lt.remove(a)},Ue.ds=function(a){this.skipsUndoManager||this.undoManager.Tu(a);for(var y=this.Lt,x=y.length,b=0;b<x;b++)y.M(b)(a)},Ue.cb=function(a,y,x,b,E,z,te){Js(this,"",a,y,x,b,E,z,te)},Ue.g=function(a,y,x,b,E){Js(this,"",Ma,a,this,y,x,b,E)},Ue.Fs=function(a,y,x,b,E,z){Js(this,"",Ma,y,a,x,b,E,z)};function Js(a,y,x,b,E,z,te,re,le){re===void 0&&(re=null),le===void 0&&(le=null);var ce=new Xo;ce.model=a,ce.change=x,ce.modelChange=y,ce.propertyName=b,ce.object=E,ce.oldValue=z,ce.oldParam=re,ce.newValue=te,ce.newParam=le,a.ds(ce)}Wi.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===Ma){var x=a.object,b=a.propertyName,E=a.I(y);b===this.nodeKeyProperty&&this.lb(x)&&(y=a.I(!y),y!==void 0&&this.kb.remove(y),E!==void 0&&this.kb.add(E,x)),Ga(x,b,E)}else a.change===Ka?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,Gt(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]===a&&wn(this.Tc,x),b!==void 0&&this.kb.remove(b)):(this.Tc[x]!==a&&un(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)))):a.modelChange===""?((b=a.object)&&!yn(b)&&a.propertyName&&(b=Fs(a.object,a.propertyName)),yn(b)&&typeof x=="number"&&(a=a.newValue,y?wn(b,x):un(b,x,a))):bt("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===ms?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,Gt(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]!==a&&un(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)):(this.Tc[x]===a&&wn(this.Tc,x),b!==void 0&&this.kb.remove(b)))):a.modelChange===""?((b=a.object)&&!yn(b)&&a.propertyName&&(b=Fs(a.object,a.propertyName)),yn(b)&&typeof x=="number"&&(a=a.oldValue,y?un(b,x,a):wn(b,x))):bt("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==Bl&&bt("unknown ChangedEvent: "+a.toString())},Wi.prototype.Ea=function(a){return this.undoManager.Ea(a)},Wi.prototype.eb=function(a){return this.undoManager.eb(a)},Wi.prototype.Kf=function(){return this.undoManager.Kf()},Wi.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var b=!1;try{a(this),b=!0}finally{b?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},Ue=Wi.prototype,Ue.La=function(a,y){y===void 0&&(y=""),Js(this,"SourceChanged",Bl,y,a,null,null)},Ue.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=Fs(a,y),y!==void 0)){if(yg(y))return y;bt("Key value for node data "+a+" is not a number or a string: "+y)}}},Ue.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var b=Fs(a,x);b!==y&&this.hc(y)===null&&(Ga(a,x,y),b!==void 0&&this.kb.remove(b),this.kb.add(y,a),Js(this,"nodeKey",Ma,x,a,b,y),typeof x=="string"&&this.La(a,x),this.jp(b,y))}else Ga(a,x,y)}};function yg(a){return typeof a=="number"||typeof a=="string"}Ue.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},Ue.hc=function(a){return a===null&&bt("Model.findNodeDataForKey:key must not be null"),a!==void 0&&yg(a)?this.kb.I(a):null},Ue.$u=function(a){if(a!==null){var y=this.Th;if(y!==""){var x=this.wa(a);if(x===void 0||this.kb.contains(x)){var b=this.bl;if(b!==null&&(x=b(this,a),x!=null&&!this.kb.contains(x))){Ga(a,y,x);return}if(typeof x=="string"){for(b=2;this.kb.contains(x+b);)b++;Ga(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;Ga(a,y,x)}}}}},Ue.xf=function(a){a!==null&&(Go(a),this.lb(a)||Nx(this,a,!0))};function Nx(a,y,x){var b=a.wa(y);(b===void 0||a.kb.I(b)!==y)&&(a.$u(y),b=a.wa(y),b===void 0&&bt("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(b,y),b=null,x&&(b=a.Tc.length,un(a.Tc,b,y)),Js(a,"nodeDataArray",Ka,"nodeDataArray",a,null,y,null,b),a.fm(y),a.em(y))}Ue.Fy=function(a){if(yn(a))for(var y=a.length,x=0;x<y;x++)this.xf(a[x]);else for(a=a.iterator;a.next();)this.xf(a.value)},Ue.cm=function(a){a!==null&&Mx(this,a,!0)};function Mx(a,y,x){var b=a.wa(y);if(b!==void 0&&a.kb.remove(b),b=null,x){e:if(x=a.Tc,Array.isArray(x))b=x.indexOf(y);else{b=x.length;for(var E=0;E<b;E++)if(x[E]===y){b=E;break e}b=-1}if(0>b)return;wn(a.Tc,b)}Js(a,"nodeDataArray",ms,"nodeDataArray",a,y,null,b,null),a.qp(y)}Ue.nA=function(a){if(yn(a))for(var y=a.length,x=0;x<y;x++)this.cm(a[x]);else for(a=a.iterator;a.next();)this.cm(a.value)},Ue.$z=function(a){if(a!==this.nodeDataArray&&yn(a)){var y=this.kl;y.clear(),y.addAll(this.kb.iteratorKeys);var x=this.il;x.clear();for(var b=a.length,E=0;E<b;E++){var z=a[E],te=this.wa(z);if(te!==void 0){x.add(te);var re=this.hc(te);re!==z&&(re!==null?(this.Do(re,z),this.lm(z,re)):(z=this.cloneDeep(z),this.km(z,te),this.xf(z)))}else te=this.cloneDeep(z),this.xf(te),x.add(this.wa(te))}for(a=y.iterator;a.next();)b=a.value,x.contains(b)||(b=this.hc(b))&&this.cm(b);y.clear(),x.clear()}},Ue.jp=function(a,y){y!==void 0&&(a=im(this,a),a instanceof Fn&&this.Vf.add(y,a))},Ue.Lv=function(){},Ue.fm=function(){},Ue.em=function(){},Ue.qp=function(){};function wd(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b===null&&(b=new Fn,a.Vf.add(y,b)),b.add(x)}}function Ed(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b instanceof Fn&&(x==null?a.Vf.remove(y):(b.remove(x),b.count===0&&a.Vf.remove(y)))}}function im(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof Fn?a:null)}Ue.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},Wi.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):M0(this,a,!0),Gt(a)&&kr(a),a};function M0(a,y,x){if(a.copiesArrays&&Array.isArray(y)){var b=[];for(x=0;x<y.length;x++){var E=M0(a,y[x],a.copiesArrayObjects);b.push(E)}return kr(b),b}if(x&&Gt(y)){x=(x=y.constructor)?new x:{},E=a.copiesKey||typeof a.nodeKeyProperty!="string"?null:a.nodeKeyProperty;for(b in y)if(b==="__gohashid")x.__gohashid=void 0;else if(b===E)x[E]=void 0;else{var z=Fs(y,b),te=rm(a,z);te==="GraphObject"||te==="Diagram"||te==="Layer"||te==="RowColumnDefinition"||te==="AnimationManager"||te==="Tool"||te==="CommandHandler"||te==="Layout"||te==="InputEvent"||te==="DiagramEvent"||z instanceof Wi||z instanceof ya||z instanceof os||z instanceof Xo||(z=M0(a,z,!1)),Ga(x,b,z)}return kr(x),x}return y instanceof lt||y instanceof fi||y instanceof jn||y instanceof _i||y instanceof $i?y.copy():y}Wi.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}}else!Lx&&a instanceof Rt&&(Lx=!0,ni('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),ni(" Is that really your intent?"));var b=Fs(a,y);b!==x&&(Ga(a,y,x),this.Fs(a,y,b,x))},Ue=Wi.prototype,Ue.set=function(a,y,x){this.setDataProperty(a,y,x)},Ue.Do=function(a,y){if(y){var x=this.lb(a),b;for(b in y)b==="__gohashid"||x&&b===this.nodeKeyProperty||this.setDataProperty(a,b,y[b])}},Ue.Ay=function(a,y){this.ts(a,-1,y)},Ue.ts=function(a,y,x){0>y&&(y=a.length),un(a,y,x),Js(this,"",Ka,"",a,null,x,null,y)},Ue.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&bt("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];wn(a,y),Js(this,"",ms,"",a,x,null,y,null)},Ue.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=Fs(a,y),y===void 0))return"";if(typeof y=="string")return y;bt("getCategoryForNodeData found a non-string category for "+a+": "+y)},Ue.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var b=Fs(a,x);b===void 0&&(b=""),b!==y&&(Ga(a,x,y),Js(this,"nodeCategory",Ma,x,a,b,y))}else Ga(a,x,y)}},Ue.lm=function(a,y){this.jm(y,this.Ro(a))},Ue.Tl=function(){return!1},Ue.Wj=function(){return!1},Ue.ri=function(){return!1},Ue.xs=function(){return!1},Ue.Xj=function(){return!1};function by(){return new Wi}function rm(a,y){if(typeof y=="function"){if(y.className)return y.className;if(y.name)return y.name}else if(typeof y=="object"&&y!==null&&y.constructor)return rm(a,y.constructor);return typeof y}function wy(a){return cd[a]?cd[a]:yt.go!==void 0&&yt.go[a]?yt.go[a]:null}function Fs(a,y){if(!a||!y)return null;try{if(typeof y=="function")var x=y(a);else typeof a.getAttribute=="function"?(x=a.getAttribute(y),x===null&&(x=void 0)):x=a[y]}catch(b){}return x}function Ga(a,y,x){if(a&&y)try{typeof y=="function"?y(a,x):typeof a.setAttribute=="function"?a.setAttribute(y,x):a[y]=x}catch(b){}}Nt.Object.defineProperties(Wi.prototype,{name:{get:function(){return this.xa},set:function(a){var y=this.xa;y!==a&&(this.xa=a,this.g("name",y,a))}},dataFormat:{get:function(){return this.Sm},set:function(a){var y=this.Sm;y!==a&&(this.Sm=a,this.g("dataFormat",y,a))}},isReadOnly:{get:function(){return this.Gg},set:function(a){var y=this.Gg;y!==a&&(this.Gg=a,this.g("isReadOnly",y,a))}},modelData:{get:function(){return this.j},set:function(a){var y=this.j;y!==a&&(this.j=a,this.g("modelData",y,a),this.La(a))}},undoManager:{get:function(){return this.o},set:function(a){var y=this.o;y!==a&&(y!==null&&y.Rx(this),this.o=a,a!==null&&a.Xw(this))}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a}},nodeKeyProperty:{get:function(){return this.Th},set:function(a){var y=this.Th;y!==a&&(a===""&&bt("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&bt("Cannot set Model.nodeKeyProperty when there is existing node data"),this.Th=a,this.g("nodeKeyProperty",y,a))}},makeUniqueKeyFunction:{get:function(){return this.bl},set:function(a){var y=this.bl;y!==a&&(this.bl=a,this.g("makeUniqueKeyFunction",y,a))}},nodeDataArray:{get:function(){return this.Tc},set:function(a){var y=this.Tc;if(y!==a){this.kb.clear(),this.Lv();for(var x=a.length,b=0;b<x;b++){var E=a[b];Gt(E)||bt("Model.nodeDataArray must only contain Objects, not: "+E),Go(E)}for(this.Tc=a,b=new Ht,E=0;E<x;E++){var z=a[E],te=this.wa(z);te===void 0||this.kb.I(te)!==null?b.add(z):this.kb.add(te,z)}for(b=b.iterator;b.next();)E=b.value,this.$u(E),z=this.wa(E),z!==void 0&&this.kb.add(z,E);for(Js(this,"nodeDataArray",Ma,"nodeDataArray",this,y,a),y=0;y<x;y++)b=a[y],this.fm(b),this.em(b);Array.isArray(a)||(this.isReadOnly=!0)}}},copyNodeDataFunction:{get:function(){return this.Bk},set:function(a){var y=this.Bk;y!==a&&(this.Bk=a,this.g("copyNodeDataFunction",y,a))}},copiesArrays:{get:function(){return this.Km},set:function(a){var y=this.Km;y!==a&&(this.Km=a,this.g("copiesArrays",y,a))}},copiesArrayObjects:{get:function(){return this.Jm},set:function(a){var y=this.Jm;y!==a&&(this.Jm=a,this.g("copiesArrayObjects",y,a))}},copiesKey:{get:function(){return this.Mm},set:function(a){var y=this.Mm;y!==a&&(this.Mm=a,this.g("copiesKey",y,a))}},afterCopyFunction:{get:function(){return this.xm},set:function(a){var y=this.xm;y!==a&&(this.xm=a,this.g("afterCopyFunction",y,a))}},nodeCategoryProperty:{get:function(){return this.lj},set:function(a){var y=this.lj;y!==a&&(this.lj=a,this.g("nodeCategoryProperty",y,a))}},type:{get:function(){return"Model"}}}),Wi.prototype.setCategoryForNodeData=Wi.prototype.jm,Wi.prototype.getCategoryForNodeData=Wi.prototype.Ro,Wi.prototype.removeArrayItem=Wi.prototype.ov,Wi.prototype.insertArrayItem=Wi.prototype.ts,Wi.prototype.addArrayItem=Wi.prototype.Ay,Wi.prototype.assignAllDataProperties=Wi.prototype.Do,Wi.prototype.set=Wi.prototype.set,Wi.prototype.clearUnresolvedReferences=Wi.prototype.Qy,Wi.prototype.mergeNodeDataArray=Wi.prototype.$z,Wi.prototype.removeNodeDataCollection=Wi.prototype.nA,Wi.prototype.removeNodeData=Wi.prototype.cm,Wi.prototype.addNodeDataCollection=Wi.prototype.Fy,Wi.prototype.addNodeData=Wi.prototype.xf,Wi.prototype.makeNodeDataKeyUnique=Wi.prototype.$u,Wi.prototype.findNodeDataForKey=Wi.prototype.hc,Wi.prototype.containsNodeData=Wi.prototype.lb,Wi.prototype.setKeyForNodeData=Wi.prototype.km,Wi.prototype.getKeyForNodeData=Wi.prototype.wa,Wi.prototype.updateTargetBindings=Wi.prototype.La,Wi.prototype.commit=Wi.prototype.commit,Wi.prototype.rollbackTransaction=Wi.prototype.Kf,Wi.prototype.commitTransaction=Wi.prototype.eb,Wi.prototype.startTransaction=Wi.prototype.Ea,Wi.prototype.raiseDataChanged=Wi.prototype.Fs,Wi.prototype.raiseChanged=Wi.prototype.g,Wi.prototype.raiseChangedEvent=Wi.prototype.cb,Wi.prototype.removeChangedListener=Wi.prototype.ik,Wi.prototype.addChangedListener=Wi.prototype.Pe,Wi.prototype.writeJsonValue=Wi.prototype.sm,Wi.prototype.replaceJsonObjects=Wi.prototype.dm,Wi.prototype.applyIncrementalJSON=Wi.prototype.Ky,Wi.prototype.applyIncrementalJson=Wi.prototype.Zw,Wi.prototype.toJSON=Wi.prototype.toJSON,Wi.prototype.toJson=Wi.prototype.np,Wi.prototype.toIncrementalJSON=Wi.prototype.yA,Wi.prototype.toIncrementalJson=Wi.prototype.$x,Wi.prototype.toIncrementalData=Wi.prototype.xA,Wi.prototype.clear=Wi.prototype.clear;var Lx=!1,cd={};Wi.className="Model",Wi.fromJSON=Wi.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=yt.JSON.parse(a)}catch(z){}else typeof a=="object"?x=a:bt("Unable to construct a Model from: "+a);if(y===null){a=null;var b=x.class;if(typeof b=="string")try{var E=null;b.indexOf("go.")===0?(b=b.substr(3),E=wy(b)):(E=wy(b),E===null&&(E=yt[b])),typeof E=="function"&&(a=new E)}catch(z){}a===null||a instanceof Wi?y=a:bt("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=Wi.constructGraphLinksModel()),y.gp(x),y.kv(x),y},Wi.safePropertyValue=Fs,Wi.safePropertySet=Ga,cd.Brush=ko,cd.ChangedEvent=Xo,cd.Geometry=di,cd.Margin=$i,cd.Panel=hi,cd.Point=lt,cd.Rect=jn,cd.Size=fi,cd.Spot=_i,cd.Transaction=os,cd.UndoManager=ya;function Us(a,y,x,b){kr(this),this._isFrozen=!1,a===void 0&&(a=""),y===void 0&&(y=a),x===void 0&&(x=null),this.j=-1,this.xd=null,this.xl=a,this.wl=this.to=0,this.Cr=null,this.wn=!1,this.sl=y,this.Im=x,b===void 0?(this.el=Ix,this.wk=null):(this.el=om,this.wk=b),this.st=new Fn}Us.prototype.copy=function(){var a=new Us;return a.xl=this.xl,a.to=this.to,a.wl=this.wl,a.Cr=this.Cr,a.wn=this.wn,a.sl=this.sl,a.Im=this.Im,a.el=this.el,a.wk=this.wk,a},Ue=Us.prototype,Ue.qb=function(a){a.classType===Us&&(this.mode=a)},Ue.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},Ue.freeze=function(){return this._isFrozen=!0,this},Ue.ka=function(){return this._isFrozen=!1,this},Ue.Kx=function(a){return a===void 0&&(a=null),this.mode=om,this.backConverter=a,this},Ue.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},Ue.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function Tx(a,y,x){return a=a.sourceName,a===null||a===""?y:a==="/"?x.part:a==="."?x:a===".."?x.panel:y.fb(a)}Ue.Mv=function(a,y,x){var b=this.sl;if(x===void 0||b===""||b===x){x=this.xl;var E=this.Im;if(E===null&&x==="")ni("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(b!==""&&(z=Fs(y,b)),z!==void 0)if(E===null)x!==""&&Ga(a,x,z);else try{if(x!==""){var te=E(z,a);Ga(a,x,te)}else E(z,a)}catch(re){}}}},Ue.sp=function(a,y,x,b){if(this.el===om){var E=this.xl;if(x===void 0||E===x){x=this.sl;var z=this.wk,te=a;if(E!==""&&(te=Fs(a,E)),te!==void 0&&!this.st.contains(a))try{this.st.add(a);var re=b!==null?b.diagram:null,le=re!==null?re.model:null;if(z===null){if(x!=="")le!==null?le.setDataProperty(y,x,te):Ga(y,x,te);else if(le!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var ce=b.itemIndex,de=b.panel.itemArray;le.ov(de,ce),le.ts(de,ce,te)}}else try{if(x!==""){var ve=z(te,y,le);le!==null?le.setDataProperty(y,x,ve):Ga(y,x,ve)}else{var Pe=z(te,y,le);if(Pe!==void 0&&le!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var Le=b.itemIndex,Fe=b.panel.itemArray;le.ov(Fe,Le),le.ts(Fe,Le,Pe)}}}catch(Ze){}}finally{this.st.remove(a)}}}},Nt.Object.defineProperties(Us.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&Ut(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&Ut(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&Ut(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&Ut(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&Ut(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&Ut(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&Ut(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&Ut(this),this.el=a}}}),Us.prototype.updateSource=Us.prototype.sp,Us.prototype.updateTarget=Us.prototype.Mv,Us.prototype.ofModel=Us.prototype.dA,Us.prototype.ofObject=Us.prototype.cp,Us.prototype.makeTwoWay=Us.prototype.Kx;var _1="Binding",Ix=new tn(Us,"OneWay",1),om=new tn(Us,"TwoWay",2);Us.className="Binding",Us.parseEnum=function(a,y){return function(x){return x=Ai(a,x),x===null?y:x}},Us.toString=Vn,Us.OneWay=Ix,Us.TwoWay=om;function To(a,y,x){Wi.call(this),this.Vv=`,
"insertedLinkKeys": `,this.iy=`,
"modifiedLinkData": `,this.Xv=`,
"removedLinkKeys": `,this.md=[],this.$f=new Fn,this.wb=new Ii,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,y!==void 0&&(this.linkDataArray=y),a!==void 0&&(yn(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}qt(To,Wi),To.constructGraphLinksModel=Wi.constructGraphLinksModel,To.prototype.cloneProtected=function(a){Wi.prototype.cloneProtected.call(this,a),a.Jh=this.Jh,a.cl=this.cl,a.Ak=this.Ak,a.lf=this.lf,a.mf=this.mf,a.ej=this.ej,a.fj=this.fj,a.dj=this.dj,a.je=this.je,a.jl=this.jl,a.Je=this.Je,a.Lm=this.Lm},Ue=To.prototype,Ue.clear=function(){Wi.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},Ue.toString=function(a){if(a===void 0&&(a=0),2<=a)return this.np();var y=(this.name!==""?this.name:"")+" GraphLinksModel";if(0<a){y+=`
node data:`,a=this.nodeDataArray;var x=a.length,b;for(b=0;b<x;b++){var E=a[b];y+=" "+this.wa(E)+":"+Vn(E)}for(y+=`
link data:`,a=this.linkDataArray,x=a.length,b=0;b<x;b++)E=a[b],y+=" "+Ec(this,E,!0)+"-->"+Ec(this,E,!1)}return y},Ue.Qv=function(a,y){this.linkKeyProperty===""&&bt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=Wi.prototype.Qv.call(this,a,y),b=this,E=new Fn,z=new Fn,te=new Fn,re=this.vh;a.changes.each(function(de){de.model===b&&(de.modelChange==="linkDataArray"?de.change===Ka?E.add(de.newValue):de.change===ms&&te.add(de.oldValue):b.Jc(de.object)?z.add(de.object):de.object!==null&&(de.object!==null&&re&&re.contains(de.object)?re.get(de.object).each(function(ve){b.Jc(ve)&&z.add(ve)}):de.object instanceof Wi||b.lb(de.object)||kx(b,de.object).each(function(ve){z.add(ve)})))});var le=this.il;le.clear(),E.each(function(de){le.add(b.Ac(de)),y||z.add(de)});var ce=this.kl;return ce.clear(),te.each(function(de){ce.add(b.Ac(de)),y&&z.add(de)}),a=b.cloneDeep(z.Fa()),0<le.count&&(x===null&&(x={}),y?x.removedLinkKeys=le.Fa():x.insertedLinkKeys=le.Fa()),0<a.length&&(x===null&&(x={}),x.modifiedLinkData=a),0<ce.count&&(x===null&&(x={}),y?x.insertedLinkKeys=ce.Fa():x.removedLinkKeys=ce.Fa()),ce.clear(),le.clear(),x},Ue.rm=function(){var a=Wi.prototype.rm.call(this),y="";return this.linkCategoryProperty!=="category"&&typeof this.linkCategoryProperty=="string"&&(y+=`,
"linkCategoryProperty": `+this.quote(this.linkCategoryProperty)),this.linkKeyProperty!==""&&typeof this.linkKeyProperty=="string"&&(y+=`,
"linkKeyProperty": `+this.quote(this.linkKeyProperty)),this.linkFromKeyProperty!=="from"&&typeof this.linkFromKeyProperty=="string"&&(y+=`,
"linkFromKeyProperty": `+this.quote(this.linkFromKeyProperty)),this.linkToKeyProperty!=="to"&&typeof this.linkToKeyProperty=="string"&&(y+=`,
"linkToKeyProperty": `+this.quote(this.linkToKeyProperty)),this.linkFromPortIdProperty!==""&&typeof this.linkFromPortIdProperty=="string"&&(y+=`,
"linkFromPortIdProperty": `+this.quote(this.linkFromPortIdProperty)),this.linkToPortIdProperty!==""&&typeof this.linkToPortIdProperty=="string"&&(y+=`,
"linkToPortIdProperty": `+this.quote(this.linkToPortIdProperty)),this.linkLabelKeysProperty!==""&&typeof this.linkLabelKeysProperty=="string"&&(y+=`,
"linkLabelKeysProperty": `+this.quote(this.linkLabelKeysProperty)),this.nodeIsGroupProperty!=="isGroup"&&typeof this.nodeIsGroupProperty=="string"&&(y+=`,
"nodeIsGroupProperty": `+this.quote(this.nodeIsGroupProperty)),this.nodeGroupKeyProperty!=="group"&&typeof this.nodeGroupKeyProperty=="string"&&(y+=`,
"nodeGroupKeyProperty": `+this.quote(this.nodeGroupKeyProperty)),a+y},Ue.gp=function(a){Wi.prototype.gp.call(this,a),a.linkKeyProperty&&(this.linkKeyProperty=a.linkKeyProperty),a.linkFromKeyProperty&&(this.linkFromKeyProperty=a.linkFromKeyProperty),a.linkToKeyProperty&&(this.linkToKeyProperty=a.linkToKeyProperty),a.linkFromPortIdProperty&&(this.linkFromPortIdProperty=a.linkFromPortIdProperty),a.linkToPortIdProperty&&(this.linkToPortIdProperty=a.linkToPortIdProperty),a.linkCategoryProperty&&(this.linkCategoryProperty=a.linkCategoryProperty),a.linkLabelKeysProperty&&(this.linkLabelKeysProperty=a.linkLabelKeysProperty),a.nodeIsGroupProperty&&(this.nodeIsGroupProperty=a.nodeIsGroupProperty),a.nodeGroupKeyProperty&&(this.nodeGroupKeyProperty=a.nodeGroupKeyProperty)},Ue.Rv=function(){var a=Wi.prototype.Rv.call(this),y=`,
"linkDataArray": `+vg(this,this.linkDataArray,!0);return a+y},Ue.kv=function(a){Wi.prototype.kv.call(this,a),a=a.linkDataArray,Array.isArray(a)&&(this.dm(a),this.linkDataArray=a)};function kx(a,y){for(var x=new Fn,b=0;b<a.linkDataArray.length;b++){var E=a.linkDataArray[b];N0(a,y,E,E,x)}return x}Ue.Pv=function(a,y){this.linkKeyProperty===""&&bt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=Wi.prototype.Pv.call(this,a,y),b=this,E=new Fn,z=new Fn,te=new Fn,re=this.vh;a.changes.each(function(de){de.model===b&&(de.modelChange==="linkDataArray"?de.change===Ka?E.add(de.newValue):de.change===ms&&te.add(de.oldValue):b.Jc(de.object)?z.add(de.object):de.object!==null&&(de.object!==null&&re&&re.contains(de.object)?re.get(de.object).each(function(ve){b.Jc(ve)&&z.add(ve)}):de.object instanceof Wi||b.lb(de.object)||kx(b,de.object).each(function(ve){z.add(ve)})))});var le=this.il;le.clear(),E.each(function(de){le.add(b.Ac(de)),y||z.add(de)});var ce=this.kl;return ce.clear(),te.each(function(de){ce.add(b.Ac(de)),y&&z.add(de)}),a=x,0<le.count&&(a+=(y?this.Xv:this.Vv)+vg(this,le.Fa(),!0)),0<z.count&&(a+=this.iy+vg(this,z.Fa(),!0)),0<ce.count&&(a+=(y?this.Vv:this.Xv)+vg(this,ce.Fa(),!0)),ce.clear(),le.clear(),a},Ue.fp=function(a){(a.linkCategoryProperty!==void 0&&a.linkCategoryProperty!==this.linkCategoryProperty||a.linkKeyProperty!==void 0&&a.linkKeyProperty!==this.linkKeyProperty||a.linkFromKeyProperty!==void 0&&a.linkFromKeyProperty!==this.linkFromKeyProperty||a.linkToKeyProperty!==void 0&&a.linkToKeyProperty!==this.linkToKeyProperty||a.linkFromPortIdProperty!==void 0&&a.linkFromPortIdProperty!==this.linkFromPortIdProperty||a.linkToPortIdProperty!==void 0&&a.linkToPortIdProperty!==this.linkToPortIdProperty||a.linkLabelKeysProperty!==void 0&&a.linkLabelKeysProperty!==this.linkLabelKeysProperty||a.nodeIsGroupProperty!==void 0&&a.nodeIsGroupProperty!==this.nodeIsGroupProperty||a.nodeGroupKeyProperty!==void 0&&a.nodeGroupKeyProperty!==this.nodeGroupKeyProperty)&&bt("applyIncrementalJson cannot change Model properties"),Wi.prototype.fp.call(this,a);var y=a.insertedLinkKeys;if(Array.isArray(y))for(var x=y.length,b=0;b<x;b++){var E=y[b],z=this.jh(E);z===null&&(z=this.Jo({}),this.Ks(z,E),this.fi(z))}if(y=a.modifiedLinkData,Array.isArray(y)){for(x=y.length,b=0;b<x;b++)if(E=y[b],z=this.Ac(E),z=this.jh(z),z!==null){for(var te in E)te!=="__gohashid"&&te!==this.linkKeyProperty&&this.setDataProperty(z,te,E[te]);Rx(this,E,z)}}if(a=a.removedLinkKeys,Array.isArray(a))for(te=a.length,y=0;y<te;y++)x=this.jh(a[y]),x!==null&&this.bm(x)},To.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===Ma){var x=a.object,b=a.propertyName;if(b===this.linkKeyProperty&&this.Jc(x)){var E=a.I(y);y=a.I(!y),y!==void 0&&this.wb.remove(y),E!==void 0&&this.wb.add(E,x),Ga(x,b,E);return}}else if(a.change===Ka){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,Gt(a)&&typeof x=="number"&&(b=this.Ac(a),y?(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),b!==void 0&&this.wb.remove(b)):(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),b!==void 0&&this.wb.add(b,a)));return}if(a.modelChange==="linkLabelKeys"){b=this.Ef(a.object),Array.isArray(b)&&typeof x=="number"&&(y?(x=b.indexOf(a.newValue),0<=x&&b.splice(x,1)):0>b.indexOf(a.newValue)&&b.splice(x,0,a.newValue));return}}else if(a.change===ms){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,Gt(a)&&typeof x=="number"&&(b=this.Ac(a),y?(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),b!==void 0&&this.wb.add(b,a)):(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),b!==void 0&&this.wb.remove(b)));return}if(a.modelChange==="linkLabelKeys"){b=this.Ef(a.object),Array.isArray(b)&&typeof x=="number"&&(y?0>b.indexOf(a.newValue)&&b.splice(x,0,a.newValue):(x=b.indexOf(a.newValue),0<=x&&b.splice(x,1)));return}}Wi.prototype.changeState.call(this,a,y)}},Ue=To.prototype,Ue.Vl=function(a){if(a!==void 0){var y=this.Ri;if(y!==null){var x=this.hc(a);x===null&&(x=this.copyNodeData(y),Ga(x,this.nodeKeyProperty,a),this.xf(x))}return a}},Ue.yx=function(a){return Ec(this,a,!0)},Ue.wv=function(a,y){up(this,a,y,!0)},Ue.Bx=function(a){return Ec(this,a,!1)},Ue.Bv=function(a,y){up(this,a,y,!1)};function Ec(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=Fs(y,a),a!==void 0))){if(yg(a))return a;bt((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function up(a,y,x,b){if(x===null&&(x=void 0),y!==null){var E=b?a.lf:a.mf;if(E!=="")if(x=a.Vl(x),a.Jc(y)){var z=Fs(y,E);z!==x&&(Ed(a,z,y),Ga(y,E,x),a.hc(x)===null&&wd(a,x,y),Js(a,b?"linkFromKey":"linkToKey",Ma,E,y,z,x),typeof E=="string"&&a.La(y,E))}else Ga(y,E,x)}}Ue.zx=function(a){return L0(this,a,!0)},Ue.xv=function(a,y){cp(this,a,y,!0)},Ue.Cx=function(a){return L0(this,a,!1)},Ue.Cv=function(a,y){cp(this,a,y,!1)};function L0(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=Fs(y,a),y===void 0?"":y)}function cp(a,y,x,b){if(y!==null){var E=b?a.ej:a.fj;if(E!=="")if(a.Jc(y)){var z=Fs(y,E);z===void 0&&(z=""),z!==x&&(Ga(y,E,x),Js(a,b?"linkFromPortId":"linkToPortId",Ma,E,y,z,x),typeof E=="string"&&a.La(y,E))}else Ga(y,E,x)}}Ue.Ef=function(a){if(a===null)return T0;var y=this.je;return y===""?T0:(a=Fs(a,y),a===void 0?T0:a)},Ue.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var b=Fs(a,x);if(b===void 0&&(b=T0),b!==y){if(Array.isArray(b))for(var E=b.length,z=0;z<E;z++)Ed(this,b[z],a);for(Ga(a,x,y),E=y.length,z=0;z<E;z++){var te=y[z];this.hc(te)===null&&wd(this,te,a)}Js(this,"linkLabelKeys",Ma,x,a,b,y),typeof x=="string"&&this.La(a,x)}}else Ga(a,x,y)}},Ue.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=Fs(a,x);if(b===void 0)x=[],x.push(y),this.Ls(a,x);else if(Array.isArray(b)){var E=b.indexOf(y);0<=E||(E=b.length,b.push(y),this.Jc(a)&&(this.hc(y)===null&&wd(this,y,a),Js(this,"linkLabelKeys",Ka,x,a,null,y,null,E)))}else bt(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},Ue.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=Fs(a,x);if(Array.isArray(b)){var E=b.indexOf(y);0>E||(b.splice(E,1),this.Jc(a)&&(Ed(this,y,a),Js(this,"linkLabelKeys",ms,x,a,y,null,E,null)))}else b!==void 0&&bt(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Ue.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=Fs(a,y),y!==void 0)){if(yg(y))return y;bt("Key value for link data "+a+" is not a number or a string: "+y)}}},Ue.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var b=Fs(a,x);b!==y&&this.jh(y)===null&&(Ga(a,x,y),b!==void 0&&this.wb.remove(b),this.wb.add(y,a),Js(this,"linkKey",Ma,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ga(a,x,y)}},Ue.jh=function(a){return a===null&&bt("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&yg(a)?this.wb.I(a):null},Ue.Bs=function(a){if(a!==null){var y=this.Jh;if(y!==""){var x=this.Ac(a);if(x===void 0||this.wb.contains(x)){var b=this.cl;if(b!==null&&(x=b(this,a),x!=null&&!this.wb.contains(x))){Ga(a,y,x);return}if(typeof x=="string"){for(b=2;this.wb.contains(x+b);)b++;Ga(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;Ga(a,y,x)}}}}},Ue.Jc=function(a){return a===null?!1:this.$f.contains(a)},Ue.fi=function(a){a!==null&&(Go(a),this.Jc(a)||Dx(this,a,!0))};function Dx(a,y,x){if(a.linkKeyProperty!==""){var b=a.Ac(y);if(b!==void 0&&a.wb.I(b)===y)return;a.Bs(y),b=a.Ac(y),b===void 0&&bt("GraphLinksModel.makeLinkDataKeyUnique failed on "+y+". Data not added to model."),a.wb.add(b,y)}a.$f.add(y),b=null,x&&(b=a.md.length,a.md.splice(b,0,y)),Js(a,"linkDataArray",Ka,"linkDataArray",a,null,y,null,b),Ey(a,y)}Ue.Ey=function(a){if(Array.isArray(a))for(var y=a.length,x=0;x<y;x++)this.fi(a[x]);else for(a=a.iterator;a.next();)this.fi(a.value)},Ue.bm=function(a){a!==null&&Ox(this,a,!0)};function Ox(a,y,x){a.$f.remove(y);var b=a.Ac(y);if(b!==void 0&&a.wb.remove(b),b=null,x){if(b=a.md.indexOf(y),0>b)return;a.md.splice(b,1)}if(Js(a,"linkDataArray",ms,"linkDataArray",a,y,null,b,null),x=Ec(a,y,!0),Ed(a,x,y),x=Ec(a,y,!1),Ed(a,x,y),b=a.Ef(y),Array.isArray(b))for(var E=b.length,z=0;z<E;z++)x=b[z],Ed(a,x,y)}Ue.lA=function(a){if(Array.isArray(a))for(var y=a.length,x=0;x<y;x++)this.bm(a[x]);else for(a=a.iterator;a.next();)this.bm(a.value)},Ue.Zz=function(a){if(this.linkKeyProperty===""&&bt("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&yn(a)){var y=this.kl;y.clear(),y.addAll(this.wb.iteratorKeys);var x=this.il;x.clear();for(var b=a.length,E=0;E<b;E++){var z=a[E],te=this.Ac(z);if(te!==void 0){x.add(te);var re=this.jh(te);re!==z&&(re!==null?(this.Do(re,z),Rx(this,z,re)):(z=this.cloneDeep(z),this.Ks(z,te),this.fi(z)))}else te=this.cloneDeep(z),this.fi(te),x.add(this.Ac(te))}for(a=y.iterator;a.next();)b=a.value,x.contains(b)||(b=this.jh(b))&&this.bm(b);y.clear(),x.clear()}};function Ey(a,y){var x=Ec(a,y,!0);x=a.Vl(x),a.hc(x)===null&&wd(a,x,y),x=Ec(a,y,!1),x=a.Vl(x),a.hc(x)===null&&wd(a,x,y);var b=a.Ef(y);if(Array.isArray(b))for(var E=b.length,z=0;z<E;z++)x=b[z],a.hc(x)===null&&wd(a,x,y)}Ue.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):M0(this,a,!0),Gt(a)&&(kr(a),this.lf!==""&&Ga(a,this.lf,void 0),this.mf!==""&&Ga(a,this.mf,void 0),this.je!==""&&Ga(a,this.je,[])),a},Ue.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!Fs(a,y)},Ue.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=Fs(a,y),y!==void 0)){if(yg(y))return y;bt("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},Ue.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var b=Fs(a,x);b!==y&&(Ed(this,b,a),Ga(a,x,y),this.hc(y)===null&&wd(this,y,a),Js(this,"nodeGroupKey",Ma,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ga(a,x,y)}},To.prototype.copyNodeData=function(a){return a===null?null:(a=Wi.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||Fs(a,this.Je)===void 0||Ga(a,this.Je,void 0),a)},To.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}if(y===this.nodeGroupKeyProperty){this.mp(a,x);return}}else if(this.Jc(a)){if(y===this.linkFromKeyProperty){up(this,a,x,!0);return}if(y===this.linkToKeyProperty){up(this,a,x,!1);return}if(y===this.linkFromPortIdProperty){cp(this,a,x,!0);return}if(y===this.linkToPortIdProperty){cp(this,a,x,!1);return}if(y===this.linkKeyProperty){this.Ks(a,x);return}if(y===this.linkCategoryProperty){this.lp(a,x);return}if(y===this.linkLabelKeysProperty){this.Ls(a,x);return}}var b=Fs(a,y);b!==x&&(Ga(a,y,x),this.Fs(a,y,b,x))},Ue=To.prototype,Ue.Do=function(a,y){if(y){var x=this.lb(a),b=this.Jc(a),E;for(E in y)E==="__gohashid"||x&&E===this.nodeKeyProperty||x&&E===this.nodeIsGroupProperty&&Fs(a,E)===y[E]||b&&E===this.linkKeyProperty||this.setDataProperty(a,E,y[E])}},Ue.jp=function(a,y){Wi.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y);for(x=this.$f.iterator;x.next();){var b=x.value,E=a,z=y;if(Ec(this,b,!0)===E){var te=this.lf;Ga(b,te,z),Js(this,"linkFromKey",Ma,te,b,E,z),typeof te=="string"&&this.La(b,te)}if(Ec(this,b,!1)===E&&(te=this.mf,Ga(b,te,z),Js(this,"linkToKey",Ma,te,b,E,z),typeof te=="string"&&this.La(b,te)),te=this.Ef(b),Array.isArray(te))for(var re=te.length,le=this.je,ce=0;ce<re;ce++)te[ce]===E&&(te[ce]=z,Js(this,"linkLabelKeys",Ka,le,b,E,z,ce,ce))}},Ue.qv=function(a,y,x){if(this.lh(a)===y){var b=this.Je;Ga(a,b,x),Js(this,"nodeGroupKey",Ma,b,a,y,x),typeof b=="string"&&this.La(a,b)}},Ue.Lv=function(){Wi.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)Ey(this,a[x])},Ue.fm=function(a){Wi.prototype.fm.call(this,a),a=this.wa(a);var y=im(this,a);if(y!==null){var x=gn();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)){if(this.lh(b)===a){var E=this.Je;Js(this,"nodeGroupKey",Ma,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}else if(Ec(this,b,!0)===a&&(E=this.lf,Js(this,"linkFromKey",Ma,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),Ec(this,b,!1)===a&&(E=this.mf,Js(this,"linkToKey",Ma,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),E=this.Ef(b),Array.isArray(E))for(var z=E.length,te=this.je,re=0;re<z;re++)E[re]===a&&(Js(this,"linkLabelKeys",Ka,te,b,a,a,re,re),x.push(b))}for(y=0;y<x.length;y++)Ed(this,a,x[y]);kn(x)}},Ue.em=function(a){Wi.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&wd(this,y,a)},Ue.qp=function(a){Wi.prototype.qp.call(this,a);var y=this.lh(a);Ed(this,y,a)},Ue.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=Fs(a,y),y===void 0))return"";if(typeof y=="string")return y;bt("getCategoryForLinkData found a non-string category for "+a+": "+y)},To.prototype.getLinkCategoryForData=function(a){return this.ps(a)},To.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var b=Fs(a,x);b===void 0&&(b=""),b!==y&&(Ga(a,x,y),Js(this,"linkCategory",Ma,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ga(a,x,y)}},To.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},Ue=To.prototype,Ue.lm=function(a,y){Wi.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function Rx(a,y,x){a.lp(x,a.ps(y)),a.wv(x,a.yx(y)),a.Bv(x,a.Bx(y)),a.Ls(x,a.Ef(y)),a.xv(x,a.zx(y)),a.Cv(x,a.Cx(y))}Ue.Wj=function(){return!0},Ue.ri=function(){return!0},Ue.xs=function(){return!0},Ue.Xj=function(){return!0},Nt.Object.defineProperties(To.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){var y=this.Ri;y!==a&&(this.Ri=a,this.g("archetypeNodeData",y,a))}},linkFromKeyProperty:{get:function(){return this.lf},set:function(a){var y=this.lf;y!==a&&(this.lf=a,this.g("linkFromKeyProperty",y,a))}},linkToKeyProperty:{get:function(){return this.mf},set:function(a){var y=this.mf;y!==a&&(this.mf=a,this.g("linkToKeyProperty",y,a))}},linkFromPortIdProperty:{get:function(){return this.ej},set:function(a){var y=this.ej;y!==a&&(this.ej=a,this.g("linkFromPortIdProperty",y,a))}},linkToPortIdProperty:{get:function(){return this.fj},set:function(a){var y=this.fj;y!==a&&(this.fj=a,this.g("linkToPortIdProperty",y,a))}},linkLabelKeysProperty:{get:function(){return this.je},set:function(a){var y=this.je;y!==a&&(this.je=a,this.g("linkLabelKeysProperty",y,a))}},linkDataArray:{get:function(){return this.md},set:function(a){var y=this.md;if(y!==a){this.wb.clear();for(var x=a.length,b=0;b<x;b++){var E=a[b];Gt(E)||bt("GraphLinksModel.linkDataArray must only contain Objects, not: "+E),Go(E)}if(this.md=a,this.linkKeyProperty!==""){for(b=new Ht,E=0;E<x;E++){var z=a[E],te=this.Ac(z);te===void 0||this.wb.I(te)!==null?b.add(z):this.wb.add(te,z)}for(b=b.iterator;b.next();)E=b.value,this.Bs(E),z=this.Ac(E),z!==void 0&&this.wb.add(z,E)}for(b=new Fn,E=0;E<x;E++)b.add(a[E]);for(this.$f=b,Js(this,"linkDataArray",Ma,"linkDataArray",this,y,a),y=0;y<x;y++)Ey(this,a[y])}}},linkKeyProperty:{get:function(){return this.Jh},set:function(a){var y=this.Jh;if(y!==a){this.Jh=a,this.wb.clear();for(var x=this.linkDataArray.length,b=0;b<x;b++){var E=this.linkDataArray[b],z=this.Ac(E);z===void 0&&(this.Bs(E),z=this.Ac(E)),z!==void 0&&this.wb.add(z,E)}this.g("linkKeyProperty",y,a)}}},makeUniqueLinkKeyFunction:{get:function(){return this.cl},set:function(a){var y=this.cl;y!==a&&(this.cl=a,this.g("makeUniqueLinkKeyFunction",y,a))}},copyLinkDataFunction:{get:function(){return this.Ak},set:function(a){var y=this.Ak;y!==a&&(this.Ak=a,this.g("copyLinkDataFunction",y,a))}},nodeIsGroupProperty:{get:function(){return this.jl},set:function(a){var y=this.jl;y!==a&&(this.jl=a,this.g("nodeIsGroupProperty",y,a))}},nodeGroupKeyProperty:{get:function(){return this.Je},set:function(a){var y=this.Je;y!==a&&(this.Je=a,this.g("nodeGroupKeyProperty",y,a))}},Ij:{get:function(){return this.Lm},set:function(a){this.Lm!==a&&(this.Lm=a)}},linkCategoryProperty:{get:function(){return this.dj},set:function(a){var y=this.dj;y!==a&&(this.dj=a,this.g("linkCategoryProperty",y,a))}},type:{get:function(){return"GraphLinksModel"}}}),To.prototype.setCategoryForLinkData=To.prototype.lp,To.prototype.getCategoryForLinkData=To.prototype.ps,To.prototype.assignAllDataProperties=To.prototype.Do,To.prototype.setGroupKeyForNodeData=To.prototype.mp,To.prototype.getGroupKeyForNodeData=To.prototype.lh,To.prototype.isGroupForNodeData=To.prototype.Yu,To.prototype.copyLinkData=To.prototype.Jo,To.prototype.mergeLinkDataArray=To.prototype.Zz,To.prototype.removeLinkDataCollection=To.prototype.lA,To.prototype.removeLinkData=To.prototype.bm,To.prototype.addLinkDataCollection=To.prototype.Ey,To.prototype.addLinkData=To.prototype.fi,To.prototype.containsLinkData=To.prototype.Jc,To.prototype.makeLinkDataKeyUnique=To.prototype.Bs,To.prototype.findLinkDataForKey=To.prototype.jh,To.prototype.setKeyForLinkData=To.prototype.Ks,To.prototype.getKeyForLinkData=To.prototype.Ac,To.prototype.removeLabelKeyForLinkData=To.prototype.Qx,To.prototype.addLabelKeyForLinkData=To.prototype.Bu,To.prototype.setLabelKeysForLinkData=To.prototype.Ls,To.prototype.getLabelKeysForLinkData=To.prototype.Ef,To.prototype.setToPortIdForLinkData=To.prototype.Cv,To.prototype.getToPortIdForLinkData=To.prototype.Cx,To.prototype.setFromPortIdForLinkData=To.prototype.xv,To.prototype.getFromPortIdForLinkData=To.prototype.zx,To.prototype.setToKeyForLinkData=To.prototype.Bv,To.prototype.getToKeyForLinkData=To.prototype.Bx,To.prototype.setFromKeyForLinkData=To.prototype.wv,To.prototype.getFromKeyForLinkData=To.prototype.yx,To.prototype.clear=To.prototype.clear;var T0=Object.freeze([]);To.className="GraphLinksModel",cd.GraphLinksModel=To,Wi.constructGraphLinksModel=Wi.constructGraphLinksModel=function(){return new To},Wi.initDiagramModel=by=function(){return new To};function Au(a,y){Wi.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(yn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}qt(Au,Wi),Au.constructGraphLinksModel=Wi.constructGraphLinksModel,Au.prototype.cloneProtected=function(a){Wi.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},Ue=Au.prototype,Ue.toString=function(a){if(a===void 0&&(a=0),2<=a)return this.np();var y=(this.name!==""?this.name:"")+" TreeModel";if(0<a){y+=`
node data:`,a=this.nodeDataArray;for(var x=a.length,b=0;b<x;b++){var E=a[b];y+=" "+this.wa(E)+":"+Vn(E)}}return y},Ue.rm=function(){var a=Wi.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},Ue.gp=function(a){Wi.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},Ue.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&bt("applyIncrementalJson cannot change Model properties"),Wi.prototype.fp.call(this,a)},Ue.Vl=function(a){return a},Ue.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=Fs(a,y),y!==void 0)){if(yg(y))return y;bt("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},Ue.qe=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Ke;if(x!=="")if(y=this.Vl(y),this.lb(a)){var b=Fs(a,x);b!==y&&(Ed(this,b,a),Ga(a,x,y),this.hc(y)===null&&wd(this,y,a),Js(this,"nodeParentKey",Ma,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ga(a,x,y)}},Ue.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=Fs(a,y),y===void 0)?"":typeof y=="string"?y:(bt("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},Au.prototype.getLinkCategoryForData=function(a){return this.ss(a)},Au.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var b=Fs(a,x);b===void 0&&(b=""),b!==y&&(Ga(a,x,y),Js(this,"parentLinkCategory",Ma,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ga(a,x,y)}},Au.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},Au.prototype.copyNodeData=function(a){return a===null?null:(a=Wi.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||Fs(a,this.Ke)===void 0||Ga(a,this.Ke,void 0),a)},Au.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}if(y===this.nodeParentKeyProperty){this.qe(a,x);return}}var b=Fs(a,y);b!==x&&(Ga(a,y,x),this.Fs(a,y,b,x))},Ue=Au.prototype,Ue.jp=function(a,y){Wi.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},Ue.qv=function(a,y,x){if(this.mh(a)===y){var b=this.Ke;Ga(a,b,x),Js(this,"nodeParentKey",Ma,b,a,y,x),typeof b=="string"&&this.La(a,b)}},Ue.fm=function(a){Wi.prototype.fm.call(this,a),a=this.wa(a);var y=im(this,a);if(y!==null){var x=gn();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)&&this.mh(b)===a){var E=this.Ke;Js(this,"nodeParentKey",Ma,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}for(y=0;y<x.length;y++)Ed(this,a,x[y]);kn(x)}},Ue.em=function(a){Wi.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&wd(this,y,a)},Ue.qp=function(a){Wi.prototype.qp.call(this,a);var y=this.mh(a);Ed(this,y,a)},Ue.lm=function(a,y){Wi.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},Ue.Tl=function(){return!0},Ue.xs=function(){return!0},Nt.Object.defineProperties(Au.prototype,{nodeParentKeyProperty:{get:function(){return this.Ke},set:function(a){var y=this.Ke;y!==a&&(this.Ke=a,this.g("nodeParentKeyProperty",y,a))}},Jj:{get:function(){return this.Nm},set:function(a){this.Nm!==a&&(this.Nm=a)}},parentLinkCategoryProperty:{get:function(){return this.nj},set:function(a){var y=this.nj;y!==a&&(this.nj=a,this.g("parentLinkCategoryProperty",y,a))}},linkCategoryProperty:{get:function(){return this.parentLinkCategoryProperty},set:function(a){this.parentLinkCategoryProperty=a}},type:{get:function(){return"TreeModel"}}}),Au.prototype.setParentLinkCategoryForNodeData=Au.prototype.Ms,Au.prototype.getParentLinkCategoryForNodeData=Au.prototype.ss,Au.prototype.setParentKeyForNodeData=Au.prototype.qe,Au.prototype.getParentKeyForNodeData=Au.prototype.mh,Au.className="TreeModel",cd.TreeModel=Au;function es(a){Wa.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=dd,this.Ti=0,this.Zv=new lt,this.Jp=this.me=0,this.Xr=new um,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=dd,this.K=Nu,this.nd=hp,this.hd=py,this.tf=6,this.Nn=B0,a&&Object.assign(this,a)}qt(es,Wa),es.prototype.cloneProtected=function(a){Wa.prototype.cloneProtected.call(this,a),a.eo=this.eo,a.Cm=this.Cm,a.ro=this.ro,a.ul=this.ul,a.Rb=this.Rb,a.K=this.K,a.nd=this.nd,a.hd=this.hd,a.tf=this.tf,a.Nn=this.Nn},es.prototype.qb=function(a){a.classType===es?a===R0||a===F0||a===D0||a===O0||a===hp?this.sorting=a:a===ef||a===dp||a===Nu||a===xg?this.direction=a:a===Vh||a===Sg||a===dd||a===hd?this.arrangement=a:(a===Pf||a===B0)&&(this.nodeDiameterFormula=a):Wa.prototype.qb.call(this,a)},es.prototype.createNetwork=function(){return new gp(this)},es.prototype.doLayout=function(a){if(this.network===null&&(this.network=this.makeNetwork(a)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),a=this.network.vertexes,1>=a.count)a.count===1&&(a=a.first(),a.centerX=0,a.centerY=0);else{var y=new Ht;y.addAll(a.iterator),a=new Ht;var x=new Ht,b=this.sort(y),E,z,te=this.Jp,re=this.arrangement,le=this.nodeDiameterFormula,ce=this.radius;(!isFinite(ce)||0>=ce)&&(ce=NaN);var de=this.aspectRatio;(!isFinite(de)||0>=de)&&(de=1);var ve=this.startAngle;isFinite(ve)||(ve=0);var Pe=this.sweepAngle;if((!isFinite(Pe)||360<Pe||1>Pe)&&(Pe=360),y=this.spacing,isFinite(y)||(y=NaN),re===hd&&le===Pf?re=dd:re===hd&&le!==Pf&&(re=this.arrangement),(this.direction===ef||this.direction===dp)&&this.sorting!==hp){for(le=0;!(le>=b.length)&&(a.add(b.M(le)),!(le+1>=b.length));le+=2)x.add(b.M(le+1));this.direction===ef?(this.arrangement===hd&&a.reverse(),b=new Ht,b.addAll(a),b.addAll(x)):(this.arrangement===hd&&x.reverse(),b=new Ht,b.addAll(x),b.addAll(a))}le=b.length;for(var Le=z=E=0;Le<b.length;Le++){var Fe=ve+Pe*z*(this.direction===Nu?1:-1)/le,Ze=b.M(Le).diameter;isNaN(Ze)&&(Ze=bg(b.M(Le),Fe)),360>Pe&&(Le===0||Le===b.length-1)&&(Ze/=2),E+=Ze,z++}if(isNaN(ce)||re===hd){if(isNaN(y)&&(y=6),re!==dd&&re!==hd){for(z=-1/0,te=0;te<le;te++)Le=b.M(te),E=b.M(te===le-1?0:te+1),isNaN(Le.diameter)&&bg(Le,0),isNaN(E.diameter)&&bg(E,0),z=Math.max(z,(Le.diameter+E.diameter)/2);te=z+y,re===Vh?ce=(z+y)/(2*Math.PI/le):ce=I0(this,te*(360<=Pe?le:le-1),de,ve*Math.PI/180,Pe*Math.PI/180)}else ce=I0(this,E+(360<=Pe?le:le-1)*(re!==hd?y:1.6*y),de,ve*Math.PI/180,Pe*Math.PI/180);z=ce*de}else if(z=ce*de,Le=Cy(this,ce,z,ve*Math.PI/180,Pe*Math.PI/180),isNaN(y))(re===dd||re===hd)&&(y=(Le-E)/(360<=Pe?le:le-1));else if(re===dd||re===hd)Le=(Le-E)/(360<=Pe?le:le-1),Le<y?(ce=I0(this,E+y*(360<=Pe?le:le-1),de,ve*Math.PI/180,Pe*Math.PI/180),z=ce*de):y=Le;else{for(te=-1/0,E=0;E<le;E++)Fe=b.M(E),Ze=b.M(E===le-1?0:E+1),isNaN(Fe.diameter)&&bg(Fe,0),isNaN(Ze.diameter)&&bg(Ze,0),te=Math.max(te,(Fe.diameter+Ze.diameter)/2);te+=y,E=I0(this,te*(360<=Pe?le:le-1),de,ve*Math.PI/180,Pe*Math.PI/180),E>ce?(ce=E,z=ce*de):te=Le/(360<=Pe?le:le-1)}if(this.kw=re,this.lc=ce,this.Zm=de,this.lw=ve,this.Wp=Pe,this.Ti=y,this.me=z,this.Jp=te,y=b,b=this.kw,re=this.lc,ce=this.lw,de=this.Wp,ve=this.Ti,Pe=this.me,le=this.Jp,this.direction!==ef&&this.direction!==dp||b!==hd)if(this.direction===ef||this.direction===dp){switch(te=0,b){case Sg:te=180*k0(this,re,Pe,ce,le)/Math.PI;break;case dd:le=y=0,te=a.first(),te!==null&&(y=bg(te,Math.PI/2)),te=x.first(),te!==null&&(le=bg(te,Math.PI/2)),te=180*k0(this,re,Pe,ce,ve+(y+le)/2)/Math.PI;break;case Vh:te=de/y.length}if(this.direction===ef){switch(b){case Sg:lm(this,a,ce,xg);break;case dd:sm(this,a,ce,xg);break;case Vh:am(this,a,de/2,ce,xg)}switch(b){case Sg:lm(this,x,ce+te,Nu);break;case dd:sm(this,x,ce+te,Nu);break;case Vh:am(this,x,de/2,ce+te,Nu)}}else{switch(b){case Sg:lm(this,x,ce,xg);break;case dd:sm(this,x,ce,xg);break;case Vh:am(this,x,de/2,ce,xg)}switch(b){case Sg:lm(this,a,ce+te,Nu);break;case dd:sm(this,a,ce+te,Nu);break;case Vh:am(this,a,de/2,ce+te,Nu)}}}else switch(b){case Sg:lm(this,y,ce,this.direction);break;case dd:sm(this,y,ce,this.direction);break;case Vh:am(this,y,de,ce,this.direction);break;case hd:Fx(this,y,de,ce,this.direction)}else Fx(this,y,de,ce-de/2,Nu)}this.updateParts(),this.network=null,this.isValidLayout=!0};function am(a,y,x,b,E){var z=a.Wp,te=a.lc;a=a.me,b=b*Math.PI/180,x=x*Math.PI/180;for(var re=y.length,le=0;le<re;le++){var ce=b+(E===Nu?le*x/(360<=z?re:re-1):-(le*x)/re),de=y.M(le),ve=te*Math.tan(ce)/a;ve=Math.sqrt((te*te+a*a*ve*ve)/(1+ve*ve)),de.centerX=ve*Math.cos(ce),de.centerY=ve*Math.sin(ce),de.actualAngle=180*ce/Math.PI}}function sm(a,y,x,b){var E=a.lc,z=a.me,te=a.Ti;x=x*Math.PI/180;for(var re=y.length,le=0;le<re;le++){var ce=y.M(le),de=y.M(le===re-1?0:le+1),ve=z*Math.sin(x);ce.centerX=E*Math.cos(x),ce.centerY=ve,ce.actualAngle=180*x/Math.PI,isNaN(ce.diameter)&&bg(ce,0),isNaN(de.diameter)&&bg(de,0),ce=k0(a,E,z,b===Nu?x:-x,(ce.diameter+de.diameter)/2+te),x+=b===Nu?ce:-ce}}function lm(a,y,x,b){var E=a.lc,z=a.me,te=a.Jp;x=x*Math.PI/180;for(var re=y.length,le=0;le<re;le++){var ce=y.M(le);ce.centerX=E*Math.cos(x),ce.centerY=z*Math.sin(x),ce.actualAngle=180*x/Math.PI,ce=k0(a,E,z,b===Nu?x:-x,te),x+=b===Nu?ce:-ce}}function Fx(a,y,x,b,E){var z=a.Wp;if(a.mj=0,a.Xr=new um,360>x){for(z=b+(E===Nu?z:-z);0>z;)z+=360;z%=360,180<z&&(z-=360),z*=Math.PI/180,a.gt=z,jx(a,y,x,b,E)}else Bx(a,y,x,b,E);a.Xr.commit(y)}function Bx(a,y,x,b,E){var z=a.lc,te=a.Ti,re=a.Zm,le=z*Math.cos(b*Math.PI/180),ce=a.me*Math.sin(b*Math.PI/180),de=y.Fa();if(de.length===3)de[0].centerX=z,de[0].centerY=0,de[1].centerX=de[0].centerX-de[0].width/2-de[1].width/2-te,de[1].y=de[0].y,de[2].centerX=(de[0].centerX+de[1].centerX)/2,de[2].y=de[0].y-de[2].height-te;else if(de.length===4)de[0].centerX=z,de[0].centerY=0,de[2].centerX=-de[0].centerX,de[2].centerY=de[0].centerY,de[1].centerX=0,de[1].y=Math.min(de[0].y,de[2].y)-de[1].height-te,de[3].centerX=0,de[3].y=Math.max(de[0].y+de[0].height+te,de[2].y+de[2].height+te);else{z=lt.alloc();for(var ve=0;ve<de.length&&(de[ve].centerX=le,de[ve].centerY=ce,!(ve>=de.length-1));ve++)zx(a,le,ce,de,ve,E,z)||Ux(a,le,ce,de,ve,E,z),le=z.x,ce=z.y;if(lt.free(z),a.mj++,!(23<a.mj)){le=de[0].centerX,ce=de[0].centerY,z=de[de.length-1].centerX,ve=de[de.length-1].centerY;var Pe=Math.abs(le-z)-((de[0].width+de[de.length-1].width)/2+te),Le=Math.abs(ce-ve)-((de[0].height+de[de.length-1].height)/2+te);te=0,1>Math.abs(Le)?Math.abs(le-z)<(de[0].width+de[de.length-1].width)/2&&(te=0):te=0<Le?Le:1>Math.abs(Pe)?0:Pe,le=Math.abs(z)>Math.abs(ve)?0<z!=ce>ve:0<ve!=le<z,(le=E===Nu?le:!le)&&(te=-Math.abs(te),te=Math.min(te,-de[de.length-1].width),te=Math.min(te,-de[de.length-1].height)),a.Xr.compare(te,de),1<Math.abs(te)&&(a.lc=8>a.mj?a.lc-te/(2*Math.PI):5>de.length&&10<te?a.lc/2:a.lc-(0<te?1.7:-2.3),a.me=a.lc*re,Bx(a,y,x,b,E))}}}function jx(a,y,x,b,E){for(var z=a.lc,te=a.me,re=a.Zm,le=z*Math.cos(b*Math.PI/180),ce=te*Math.sin(b*Math.PI/180),de=lt.alloc(),ve=y.Fa(),Pe=0;Pe<ve.length&&(ve[Pe].centerX=le,ve[Pe].centerY=ce,!(Pe>=ve.length-1));Pe++)zx(a,le,ce,ve,Pe,E,de)||Ux(a,le,ce,ve,Pe,E,de),le=de.x,ce=de.y;if(lt.free(de),a.mj++,!(23<a.mj)){if(le=Math.atan2(ce,le),le=E===Nu?a.gt-le:le-a.gt,le=Math.abs(le)<Math.abs(le-2*Math.PI)?le:le-2*Math.PI,z=le*(z+te)/2,te=a.Xr,Math.abs(z)<Math.abs(te.Pl))for(te.Pl=z,te.mk=[],te.tm=[],le=0;le<ve.length;le++)te.mk[le]=ve[le].bounds.x,te.tm[le]=ve[le].bounds.y;1<Math.abs(z)&&(a.lc=8>a.mj?a.lc-z/(2*Math.PI):a.lc-(0<z?1.7:-2.3),a.me=a.lc*re,jx(a,y,x,b,E))}}function zx(a,y,x,b,E,z,te){var re=a.lc,le=a.me,ce=0;a=(b[E].width+b[E+1].width)/2+a.Ti;var de=!1;if(0<=x!=(z===Nu)){if(z=y+a,z>re){if(z=y-a,z<-re)return te.x=z,te.y=ce,!1;de=!0}}else if(z=y-a,z<-re){if(z=y+a,z>re)return te.x=z,te.y=ce,!1;de=!0}return ce=Math.sqrt(1-Math.min(1,z*z/(re*re)))*le,0>x!==de&&(ce=-ce),Math.abs(x-ce)>(b[E].height+b[E+1].height)/2?(te.x=z,te.y=ce,!1):(te.x=z,te.y=ce,!0)}function Ux(a,y,x,b,E,z,te){var re=a.lc,le=a.me,ce=0;if(a=(b[E].height+b[E+1].height)/2+a.Ti,b=!1,0<=y!=(z===Nu)){if(z=x-a,z<-le){if(z=x+a,z>le){te.x=ce,te.y=z;return}b=!0}}else if(z=x+a,z>le){if(z=x-a,z<-le){te.x=ce,te.y=z;return}b=!0}ce=Math.sqrt(1-Math.min(1,z*z/(le*le)))*re,0>y!==b&&(ce=-ce),te.x=ce,te.y=z}es.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},es.prototype.commitNodes=function(){var a=this.group!==null&&this.group.placeholder!==null&&this.group.isSubGraphExpanded,y=a?this.group.location.copy():null,x=this.actualCenter;a?x=new lt(0,0):(x.x=this.arrangementOrigin.x+this.lc,x.y=this.arrangementOrigin.y+this.me);for(var b=this.network.vertexes.iterator;b.next();){var E=b.value;E.x+=x.x,E.y+=x.y,E.commit()}a&&(this.group.Va(),a=this.group.position.copy(),x=this.group.location.copy(),y=y.re(x.re(a)),this.group.move(y),this.Zv=y.re(a))},es.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function Cy(a,y,x,b,E){var z=a.ty;if(.001>Math.abs(a.Zm-1))return b!==void 0&&E!==void 0?E*y:2*Math.PI*y;a=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x;for(var te=0,re=b!==void 0&&E!==void 0?E/(z+1):Math.PI/(2*(z+1)),le=0,ce=0;ce<=z;ce++){b!==void 0&&E!==void 0?le=b+ce*E/z:le=ce*Math.PI/(2*z);var de=Math.sin(le);te+=Math.sqrt(1-a*a*de*de)*re}return b!==void 0&&E!==void 0?(y>x?y:x)*te:4*(y>x?y:x)*te}function I0(a,y,x,b,E){return y/(b!==void 0&&E!==void 0?Cy(a,1,x,b,E):Cy(a,1,x))}function k0(a,y,x,b,E){if(.001>Math.abs(a.Zm-1))return E/y;var z=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x,te=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(b+=Math.PI/2);for(var re=0;;re++){var le=Math.sin(b+re*a);if(te+=(y>x?y:x)*Math.sqrt(1-z*z*le*le)*a,te>=E)return re*a}}es.prototype.sort=function(a){switch(this.sorting){case D0:break;case O0:a.reverse();break;case R0:a.sort(this.comparer);break;case F0:a.sort(this.comparer),a.reverse();break;case hp:return this.ak(G1(a));default:bt("Invalid sorting type.")}return a};function G1(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new Ht;for(var b=0;b<a.length;b++){var E=-1,z=-1;if(b===0)for(var te=0;te<a.length;te++){var re=a.M(te).edgesCount;re>E&&(E=re,z=te)}else for(te=0;te<a.length;te++)re=y[te],re>E&&(E=re,z=te);for(x.add(a.M(z)),y[z]=-1,z=a.M(z),te=z.sourceEdges;te.next();)E=a.indexOf(te.value.fromVertex),0>E||0<=y[E]&&y[E]++;for(z=z.destinationEdges;z.next();)E=a.indexOf(z.value.toVertex),0>E||0<=y[E]&&y[E]++}return x}es.prototype.ak=function(a){for(var y=[],x=0;x<a.length;x++){var b=a.M(x);y[x]=[];for(var E,z=b.destinationEdges;z.next();)E=a.indexOf(z.value.toVertex),E!==x&&0>y[x].indexOf(E)&&y[x].push(E);for(b=b.sourceEdges;b.next();)E=a.indexOf(b.value.fromVertex),E!==x&&0>y[x].indexOf(E)&&y[x].push(E)}for(z=[],x=0;x<y.length;x++)z[x]=0;x=[];var te=[],re=[];b=[],E=new Ht;for(var le=0,ce=0;ce<y.length;ce++){var de=y[ce].length;if(de===1)b.push(ce);else if(de===0)E.add(a.M(ce));else{if(le===0)x.push(ce);else{for(var ve=de=1/0,Pe=-1,Le=[],Fe=0;Fe<x.length;Fe++)0>y[x[Fe]].indexOf(x[Fe===x.length-1?0:Fe+1])&&Le.push(Fe===x.length-1?0:Fe+1);if(Le.length===0)for(Fe=0;Fe<x.length;Fe++)Le.push(Fe);for(Fe=0;Fe<Le.length;Fe++){for(var Ze=Le[Fe],pt=y[ce],at=0,Ct=0;Ct<te.length;Ct++){var Lt=z[te[Ct]],Dt=z[re[Ct]];if(Lt<Dt){var Kt=Lt;Lt=Dt}else Kt=Dt;if(Kt<Ze&&Ze<=Lt)for(Dt=0;Dt<pt.length;Dt++){var vn=pt[Dt];0>x.indexOf(vn)||Kt<z[vn]&&z[vn]<Lt||Kt===z[vn]||Lt===z[vn]||at++}else for(Dt=0;Dt<pt.length;Dt++)vn=pt[Dt],0>x.indexOf(vn)||Kt<z[vn]&&z[vn]<Lt&&Kt!==z[vn]&&Lt!==z[vn]&&at++}for(pt=at,Ct=at=0;Ct<y[ce].length;Ct++)Kt=x.indexOf(y[ce][Ct]),0<=Kt&&(Kt=Math.abs(Ze-(Kt>=Ze?Kt+1:Kt)),at+=Kt<x.length+1-Kt?Kt:x.length+1-Kt);for(Ct=0;Ct<te.length;Ct++)Kt=z[te[Ct]],Lt=z[re[Ct]],Kt>=Ze&&Kt++,Lt>=Ze&&Lt++,Kt>Lt&&(Dt=Lt,Lt=Kt,Kt=Dt),Lt-Kt<(x.length+2)/2==(Kt<Ze&&Ze<=Lt)&&at++;(pt<de||pt===de&&at<ve)&&(de=pt,ve=at,Pe=Ze)}for(x.splice(Pe,0,ce),de=0;de<x.length;de++)z[x[de]]=de;for(de=0;de<y[ce].length;de++)ve=y[ce][de],0<=x.indexOf(ve)&&(te.push(ce),re.push(ve))}le++}}for(te=x.length;;){for(z=!0,re=0;re<b.length;re++)if(le=b[re],ce=y[le][0],de=x.indexOf(ce),0<=de){for(Pe=ve=0;Pe<y[ce].length;Pe++)Le=x.indexOf(y[ce][Pe]),0>Le||Le===de||(Fe=Le>de?Le-de:de-Le,ve+=Le<de!=Fe>te-Fe?1:-1);x.splice(0>ve?de:de+1,0,le),b.splice(re,1),re--}else z=!1;if(z)break;x.push(b[0]),b.splice(0,1)}for(y=0;y<x.length;y++)E.add(a.M(x[y]));return E},Nt.Object.defineProperties(es.prototype,{radius:{get:function(){return this.eo},set:function(a){this.eo!==a&&(0<a||isNaN(a))&&(this.eo=a,this.C())}},aspectRatio:{get:function(){return this.Cm},set:function(a){this.Cm!==a&&0<a&&(this.Cm=a,this.C())}},startAngle:{get:function(){return this.ro},set:function(a){this.ro!==a&&(this.ro=a,this.C())}},sweepAngle:{get:function(){return this.ul},set:function(a){this.ul!==a&&(0<a&&360>=a?this.ul=a:this.ul=360,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==hd&&a!==dd&&a!==Sg&&a!==Vh||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==Nu&&a!==xg&&a!==ef&&a!==dp||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==D0&&a!==O0&&a!==R0&&!F0&&a!==hp||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf!==a&&(this.tf=a,this.C())}},nodeDiameterFormula:{get:function(){return this.Nn},set:function(a){this.Nn===a||a!==B0&&a!==Pf||(this.Nn=a,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 dd=new tn(es,"ConstantSpacing",0),Sg=new tn(es,"ConstantDistance",1),Vh=new tn(es,"ConstantAngle",2),hd=new tn(es,"Packed",3),Nu=new tn(es,"Clockwise",4),xg=new tn(es,"Counterclockwise",5),ef=new tn(es,"BidirectionalLeft",6),dp=new tn(es,"BidirectionalRight",7),D0=new tn(es,"Forwards",8),O0=new tn(es,"Reverse",9),R0=new tn(es,"Ascending",10),F0=new tn(es,"Descending",11),hp=new tn(es,"Optimized",12),B0=new tn(es,"Pythagorean",13),Pf=new tn(es,"Circular",14);es.className="CircularLayout",es.ConstantSpacing=dd,es.ConstantDistance=Sg,es.ConstantAngle=Vh,es.Packed=hd,es.Clockwise=Nu,es.Counterclockwise=xg,es.BidirectionalLeft=ef,es.BidirectionalRight=dp,es.Forwards=D0,es.Reverse=O0,es.Ascending=R0,es.Descending=F0,es.Optimized=hp,es.Pythagorean=B0,es.Circular=Pf;function um(){this.Pl=-1/0,this.tm=this.mk=null}um.prototype.compare=function(a,y){if(0<a&&0>this.Pl||Math.abs(a)<Math.abs(this.Pl)&&!(0>a&&0<this.Pl))for(this.Pl=a,this.mk=[],this.tm=[],a=0;a<y.length;a++)this.mk[a]=y[a].bounds.x,this.tm[a]=y[a].bounds.y},um.prototype.commit=function(a){if(this.mk!==null&&this.tm!==null)for(var y=0;y<this.mk.length;y++){var x=a.M(y);x.x=this.mk[y],x.y=this.tm[y]}},um.className="VertexArrangement";function gp(a){Aa.call(this,a)}qt(gp,Aa),gp.prototype.createVertex=function(){return new cm(this)},gp.prototype.createEdge=function(){return new j0(this)},gp.className="CircularNetwork";function cm(a){il.call(this,a),this.u=this.Si=NaN}qt(cm,il);function bg(a,y){var x=a.network;if(x===null)return NaN;if(x=x.layout,x===null)return NaN;if(x.arrangement===hd)if(x.nodeDiameterFormula===Pf)a.Si=Math.max(a.width,a.height);else{if(x=Math.abs(Math.sin(y)),y=Math.abs(Math.cos(y)),x===0)return a.width;if(y===0)return a.height;a.Si=Math.min(a.height/x,a.width/y)}else a.Si=x.nodeDiameterFormula===Pf?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}Nt.Object.defineProperties(cm.prototype,{diameter:{get:function(){return this.Si},set:function(a){this.Si!==a&&(this.Si=a)}},actualAngle:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}}}),cm.className="CircularVertex";function j0(a){fc.call(this,a)}qt(j0,fc),j0.className="CircularEdge";function Vl(a){Wa.call(this),this.ah=null,this.An=0,this.$d=new fi(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,a&&Object.assign(this,a)}qt(Vl,Wa),Vl.prototype.cloneProtected=function(a){Wa.prototype.cloneProtected.call(this,a),a.$d.assign(this.$d),a.Bm=this.Bm,a.sf=this.sf,a.td=this.td,a.dl=this.dl,a.$m=this.$m,a.Zf=this.Zf,a.In=this.In,a.fo=this.fo,a.Hk=this.Hk,a.Gk=this.Gk,a.Ek=this.Ek,a.Fk=this.Fk,a.Vm=this.Vm,a.Um=this.Um},Vl.prototype.createNetwork=function(){return new Af(this)},Vl.prototype.doLayout=function(a){if(this.network===null&&(this.network=this.makeNetwork(a)),a=this.maxIterations,0<this.network.vertexes.count){this.network.Ko();for(var y=this.network.vertexes.iterator;y.next();){var x=y.value;x.charge=this.electricalCharge(x),x.mass=this.gravitationalMass(x)}for(y=this.network.edges.iterator;y.next();)x=y.value,x.stiffness=this.springStiffness(x),x.length=this.springLength(x);if(this.Cu(),this.An=0,this.needsClusterLayout()){y=this.network,x=y.Zx();for(var b=x.iterator;b.next();){this.network=b.value;for(var E=this.network.vertexes.iterator;E.next();){var z=E.value;z.Vd=z.vertexes.count,z.sh=1,z.Hj=null,z.We=null}_x(this,0,a)}this.network=y;var te=b=x.iterator;b=this.arrangementSpacing;var re=te.count,le=!0;z=E=0;for(var ce=gn(),de=0;de<re+y.vertexes.count+2;de++)ce[de]=null;re=0,te.reset();for(var ve=jn.alloc();te.next();)if(de=te.value,this.computeBounds(de,ve),le)le=!1,E=ve.x+ve.width/2,z=ve.y+ve.height/2,ce[0]=new lt(ve.x+ve.width+b.width,ve.y),ce[1]=new lt(ve.x,ve.y+ve.height+b.height),re=2;else{var Pe=Gx(ce,re,E,z,ve.width,ve.height,b),Le=ce[Pe],Fe=new lt(Le.x+ve.width+b.width,Le.y),Ze=new lt(Le.x,Le.y+ve.height+b.height);for(Pe+1<re&&ce.splice(Pe+1,0,null),ce[Pe]=Fe,ce[Pe+1]=Ze,re++,Pe=Le.x-ve.x,Le=Le.y-ve.y,de=de.vertexes.iterator;de.next();)Fe=de.value,Fe.centerX+=Pe,Fe.centerY+=Le}for(jn.free(ve),de=y.vertexes.iterator;de.next();)te=de.value,Pe=te.bounds,2>re?(E=Pe.x+Pe.width/2,z=Pe.y+Pe.height/2,ce[0]=new lt(Pe.x+Pe.width+b.width,Pe.y),ce[1]=new lt(Pe.x,Pe.y+Pe.height+b.height),re=2):(le=Gx(ce,re,E,z,Pe.width,Pe.height,b),ve=ce[le],Le=new lt(ve.x+Pe.width+b.width,ve.y),Pe=new lt(ve.x,ve.y+Pe.height+b.height),le+1<re&&ce.splice(le+1,0,null),ce[le]=Le,ce[le+1]=Pe,re++,te.centerX=ve.x+te.width/2,te.centerY=ve.y+te.height/2);for(kn(ce),b=x.iterator;b.next();){for(x=b.value,E=x.vertexes.iterator;E.next();)y.dh(E.value);for(x=x.edges.iterator;x.next();)y.Bo(x.value)}}Wx(this,a),this.updateParts()}this.dl=a,this.network=null,this.isValidLayout=!0},Vl.prototype.needsClusterLayout=function(){if(3>this.network.vertexes.count)return!1;for(var a=0,y=0,x=this.network.vertexes.first().bounds,b=this.network.vertexes.iterator;b.next();){if(b.value.bounds.Yc(x)&&(a++,2<a))return!0;if(10<y)break;y++}return!1},Vl.prototype.computeBounds=function(a,y){var x=!0;for(a=a.vertexes.iterator;a.next();){var b=a.value;x?(x=!1,y.set(b.bounds)):y.ed(b.bounds)}return y};function _x(a,y,x){if(H1(a,y)){var b=a.Zf;a.Zf*=1+1/(y+1);var E=W1(a,y),z=Math.max(0,Math.max(Math.min(a.network.vertexes.count,x*(y+1)/11),10));for(a.maxIterations+=z,_x(a,y+1,x),Wx(a,z),Z1(a,E),y=E.vertexes.Fa(),y.sort(function(te,re){return te===null||re===null||te===re?0:re.Vd-te.Vd}),x=0;x<y.length;x++)V1(a,y[x]);a.Zf=b}}function H1(a,y){if(10<y||3>a.network.vertexes.count)return!1;for(a.ah=a.network.vertexes.Fa(),a=a.ah,a.sort(function(x,b){return x===null||b===null||x===b?0:b.Vd-x.Vd}),y=a.length-1;0<=y&&1>=a[y].Vd;)y--;return 1<a.length-y}function W1(a,y){for(var x=a.network,b=new Af(a),E=0;E<a.ah.length;E++){var z=a.ah[E];if(1<z.Vd){b.dh(z);var te=new Zx;te.Rs=z.Vd,te.Ss=z.width,te.Qs=z.height,te.Sv=z.focus.x,te.Tv=z.focus.y,z.We===null&&(z.We=new Ht),z.We.add(te),z.sv=z.We.count-1}else break}for(z=x.edges.iterator;z.next();){var re=z.value;E=re.fromVertex,te=re.toVertex,E.network===b&&te.network===b?b.Bo(re):E.network===b?(re=E.Hj,re===null&&(re=new Ht,E.Hj=re),re.add(te),E.Vd--,E.sh+=te.sh):te.network===b&&(re=te.Hj,re===null&&(re=new Ht,te.Hj=re),re.add(E),te.Vd--,te.sh+=E.sh)}for(E=b.edges.iterator;E.next();)z=E.value,z.length*=Math.max(1,Wt.sqrt((z.fromVertex.sh+z.toVertex.sh)/(4*y+1)));for(y=b.vertexes.iterator;y.next();){E=y.value;var le=E.Hj;if(le!==null&&0<le.count&&(te=E.We.M(E.We.count-1).Rs-E.Vd,!(0>=te))){for(var ce=re=0,de=le.count-te;de<le.count;de++){var ve=le.M(de),Pe=null;for(z=ve.edges.iterator;z.next();){var Le=z.value;if(Le.Ax(ve)===E){Pe=Le;break}}Pe!==null&&(ce+=Pe.length,re+=ve.width*ve.height)}z=E.centerX,le=E.centerY,de=E.width,ve=E.height,Pe=E.focus,Le=de*ve,1>Le&&(Le=1),re=Wt.sqrt((re+Le+ce*ce*4/(te*te))/Le),te=(re-1)*de/2,re=(re-1)*ve/2,E.bounds=new jn(z-Pe.x-te,le-Pe.y-re,de+2*te,ve+2*re),E.focus=new lt(Pe.x+te,Pe.y+re)}}return a.network=b,x}function Z1(a,y){for(var x=a.network.vertexes.iterator;x.next();){var b=x.value;if(b.network=y,b.We!==null){var E=b.We.M(b.sv);b.Vd=E.Rs;var z=E.Sv,te=E.Tv;b.bounds=new jn(b.centerX-z,b.centerY-te,E.Ss,E.Qs),b.focus=new lt(z,te),b.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function V1(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var b=y.centerX,E=y.centerY,z=y.width,te=y.height;y.We!==null&&0<y.We.count&&(te=y.We.M(0),z=te.Ss,te=te.Qs),z=Wt.sqrt(z*z+te*te)/2;for(var re=!1,le=te=0,ce=0,de=y.vertexes.iterator;de.next();){var ve=de.value;1>=ve.Vd?le++:(re=!0,ce++,te+=Math.atan2(y.centerY-ve.centerY,y.centerX-ve.centerX))}if(le!==0){for(0<ce&&(te/=ce),ce=y=0,y=re?2*Math.PI/(le+1):2*Math.PI/le,le%2===0&&(ce=y/2),1<x.count&&x.sort(function(Le,Fe){return Le===null||Fe===null||Le===Fe?0:Fe.width*Fe.height-Le.width*Le.height}),re=le%2===0?0:1,x=x.iterator;x.next();)if(le=x.value,!(1<le.Vd||a.isFixed(le))){for(de=null,ve=le.edges.iterator;ve.next();){de=ve.value;break}ve=le.width;var Pe=le.height;ve=Wt.sqrt(ve*ve+Pe*Pe)/2,de=z+de.length+ve,ve=te+(y*(re/2>>1)+ce)*(re%2===0?1:-1),le.centerX=b+de*Math.cos(ve),le.centerY=E+de*Math.sin(ve),re++}}}}function Gx(a,y,x,b,E,z,te){var re=9e19,le=-1,ce=0;e:for(;ce<y;ce++){var de=a[ce],ve=de.x-x,Pe=de.y-b;if(ve=ve*ve+Pe*Pe,ve<re){for(Pe=ce-1;0<=Pe;Pe--)if(a[Pe].y>de.y&&a[Pe].x-de.x<E+te.width)continue e;for(Pe=ce+1;Pe<y;Pe++)if(a[Pe].x>de.x&&a[Pe].y-de.y<z+te.height)continue e;le=ce,re=ve}}return le}Vl.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},Vl.prototype.addComments=function(a){var y=a.node;if(y!==null)for(y=y.Mu();y.next();){var x=y.value;if(x.category==="Comment"&&x.isVisible()){var b=this.network.ki(x);b===null&&(b=this.network.Bl(x)),b.charge=this.defaultCommentElectricalCharge,x=null;for(var E=b.destinationEdges;E.next();){var z=E.value;if(z.toVertex===a){x=z;break}}if(x===null){for(E=b.sourceEdges;E.next();)if(z=E.value,z.fromVertex===a){x=z;break}}x===null&&(x=this.network.Zj(a,b,null)),x.length=this.defaultCommentSpringLength}}};function Hx(a,y){var x=a.bounds,b=x.x;a=x.y;var E=x.width;x=x.height;var z=y.bounds,te=z.x;y=z.y;var re=z.width;return z=z.height,b+E<te?a>y+z?(x=b+E-te,a=a-y-z,Wt.sqrt(x*x+a*a)):a+x<y?(b=b+E-te,a=a+x-y,Wt.sqrt(b*b+a*a)):te-(b+E):b>te+re?a>y+z?(x=b-te-re,a=a-y-z,Wt.sqrt(x*x+a*a)):a+x<y?(b=b-te-re,a=a+x-y,Wt.sqrt(b*b+a*a)):b-(te+re):a>y+z?a-(y+z):a+x<y?y-(a+x):.1}function Wx(a,y){for(a.ah=null,y=a.An+y;a.An<y&&(a.An++,K1(a)););a.ah=null}function K1(a){a.ah===null&&(a.ah=a.network.vertexes.Fa());var y=a.ah;if(0>=y.length)return!1;var x=y[0];x.forceX=0,x.forceY=0;for(var b=x.centerX,E=b,z=x=x.centerY,te=1;te<y.length;te++){var re=y[te];re.forceX=0,re.forceY=0;var le=re.centerX;re=re.centerY,b=Math.min(b,le),E=Math.max(E,le),x=Math.min(x,re),z=Math.max(z,re)}(E=E-b>z-x)?y.sort(function(Ze,pt){return Ze===null||pt===null||Ze===pt?0:Ze.centerX-pt.centerX}):y.sort(function(Ze,pt){return Ze===null||pt===null||Ze===pt?0:Ze.centerY-pt.centerY}),x=a.Zf;var ce=b=re=0;for(z=0;z<y.length;z++){te=y[z],b=te.bounds,re=te.focus,le=b.x+re.x;var de=b.y+re.y;b=te.charge*a.electricalFieldX(le,de),ce=te.charge*a.electricalFieldY(le,de),b+=te.mass*a.gravitationalFieldX(le,de),ce+=te.mass*a.gravitationalFieldY(le,de),te.forceX+=b,te.forceY+=ce;for(var ve=z+1;ve<y.length;ve++){var Pe=y[ve];if(Pe!==te){b=Pe.bounds,re=Pe.focus,ce=b.x+re.x;var Le=b.y+re.y;if(le-ce>x||ce-le>x){if(E)break}else if(de-Le>x||Le-de>x){if(!E)break}else{var Fe=Hx(te,Pe);1>Fe?(b=a.randomNumberGenerator,b===null&&(a.randomNumberGenerator=b=new z0),Fe=b.random(),re=b.random(),le>ce?(b=Math.abs(Pe.bounds.right-te.bounds.x),b=(1+b)*Fe):le<ce?(b=Math.abs(Pe.bounds.x-te.bounds.right),b=-(1+b)*Fe):(b=Math.max(Pe.width,te.width),b=(1+b)*Fe-b/2),de>Le?(ce=Math.abs(Pe.bounds.bottom-te.bounds.y),ce=(1+ce)*re):le<ce?(ce=Math.abs(Pe.bounds.y-te.bounds.bottom),ce=-(1+ce)*re):(ce=Math.max(Pe.height,te.height),ce=(1+ce)*re-ce/2)):(re=-(te.charge*Pe.charge)/(Fe*Fe),b=(ce-le)/Fe*re,ce=(Le-de)/Fe*re),te.forceX+=b,te.forceY+=ce,Pe.forceX-=b,Pe.forceY-=ce}}}}for(E=a.network.edges.iterator;E.next();)re=E.value,x=re.fromVertex,z=re.toVertex,te=x.bounds,le=x.focus,b=te.x+le.x,te=te.y+le.y,de=z.bounds,ve=z.focus,le=de.x+ve.x,de=de.y+ve.y,ve=Hx(x,z),1>ve?(ve=a.randomNumberGenerator,ve===null&&(a.randomNumberGenerator=ve=new z0),re=ve.random(),ve=ve.random(),b=(b>le?1:-1)*(1+(z.width>x.width?z.width:x.width))*re,ce=(te>de?1:-1)*(1+(z.height>x.height?z.height:x.height))*ve):(re=re.stiffness*(ve-re.length),b=(le-b)/ve*re,ce=(de-te)/ve*re),x.forceX+=b,x.forceY+=ce,z.forceX-=b,z.forceY-=ce;for(E=b=0;E<y.length;E++)x=y[E],a.isFixed(x)?a.moveFixedVertex(x):b=Math.max(b,a.moveVertex(x)||0);return b>a.epsilonDistance*a.epsilonDistance}Vl.prototype.moveVertex=function(a){var y=a.forceX,x=a.forceY,b=this.moveLimit;return y<-b?y=-b:y>b&&(y=b),x<-b?x=-b:x>b&&(x=b),a.centerX+=y,a.centerY+=x,y*y+x*x},Vl.prototype.moveFixedVertex=function(){},Vl.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},Vl.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=Vr,y.toSpot=Vr)}},Vl.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=jn.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,jn.free(x)}x=jn.alloc();for(var b=this.network.vertexes.iterator;b.next();){var E=b.value;(a!==0||y!==0)&&(x.assign(E.bounds),x.x+=a,x.y+=y,E.bounds=x),E.commit()}jn.free(x)},Vl.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Vl.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},Vl.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},Vl.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},Vl.prototype.electricalFieldX=function(){return 0},Vl.prototype.electricalFieldY=function(){return 0},Vl.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},Vl.prototype.gravitationalFieldX=function(){return 0},Vl.prototype.gravitationalFieldY=function(){return 0},Vl.prototype.isFixed=function(a){return a.isFixed},Nt.Object.defineProperties(Vl.prototype,{currentIteration:{get:function(){return this.An}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},arrangesToOrigin:{get:function(){return this.Bm},set:function(a){this.Bm!==a&&(this.Bm=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},maxIterations:{get:function(){return this.dl},set:function(a){this.dl!==a&&0<=a&&(this.dl=a,this.C())}},epsilonDistance:{get:function(){return this.$m},set:function(a){this.$m!==a&&0<a&&(this.$m=a,this.C())}},infinityDistance:{get:function(){return this.Zf},set:function(a){this.Zf!==a&&1<a&&(this.Zf=a,this.C())}},moveLimit:{get:function(){return this.In},set:function(a){this.In!==a&&1<a&&(this.In=a,this.C())}},randomNumberGenerator:{get:function(){return this.fo},set:function(a){this.fo!==a&&(a!==null&&typeof a.random!="function"&&bt('ForceDirectedLayout.randomNumberGenerator must have a "random()" function on it: '+a),this.fo=a)}},defaultSpringStiffness:{get:function(){return this.Hk},set:function(a){this.Hk!==a&&(this.Hk=a,this.C())}},defaultSpringLength:{get:function(){return this.Gk},set:function(a){this.Gk!==a&&(this.Gk=a,this.C())}},defaultElectricalCharge:{get:function(){return this.Ek},set:function(a){this.Ek!==a&&(this.Ek=a,this.C())}},defaultGravitationalMass:{get:function(){return this.Fk},set:function(a){this.Fk!==a&&(this.Fk=a,this.C())}},defaultCommentSpringLength:{get:function(){return this.Vm},set:function(a){this.Vm!==a&&(this.Vm=a,this.C())}},defaultCommentElectricalCharge:{get:function(){return this.Um},set:function(a){this.Um!==a&&(this.Um=a,this.C())}}}),Vl.className="ForceDirectedLayout";function Zx(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}Zx.className="ForceDirectedSubnet";function Af(a){Aa.call(this,a)}qt(Af,Aa),Af.prototype.createVertex=function(){return new dm(this)},Af.prototype.createEdge=function(){return new hm(this)},Af.className="ForceDirectedNetwork";function dm(a){il.call(this,a),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}qt(dm,il),Nt.Object.defineProperties(dm.prototype,{isFixed:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},charge:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},mass:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},forceX:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}},forceY:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}}}),dm.className="ForceDirectedVertex";function hm(a){fc.call(this,a),this.j=this.o=NaN}qt(hm,fc),Nt.Object.defineProperties(hm.prototype,{stiffness:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},length:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}}}),hm.className="ForceDirectedEdge";function z0(){var a=0;a===void 0&&(a=42),this.seed=a,this.ay=48271,this.ey=2147483647,this.Q=44488.07041494893,this.gy=3399,this.by=1/2147483647,this.random()}z0.prototype.random=function(){var a=this.seed%this.Q*this.ay-this.seed/this.Q*this.gy;return 0<a?this.seed=a:this.seed=a+this.ey,this.seed*this.by},z0.className="RandomNumberGenerator";function ia(a){Wa.call(this),this.kc=this.ie=25,this.K=0,this.Dk=W0,this.Zk=Z0,this.Qk=V0,this.bj=4,this.rk=K0,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 lt,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}qt(ia,Wa),ia.prototype.cloneProtected=function(a){Wa.prototype.cloneProtected.call(this,a),a.ie=this.ie,a.kc=this.kc,a.K=this.K,a.Dk=this.Dk,a.Zk=this.Zk,a.Qk=this.Qk,a.bj=this.bj,a.rk=this.rk,a.bg=this.bg,a.sf=this.sf,a.Cn=this.Cn,a.ve=this.ve},ia.prototype.qb=function(a){a.classType===ia?a.name.indexOf("Aggressive")===0?this.aggressiveOption=a:a.name.indexOf("Cycle")===0?this.cycleRemoveOption=a:a.name.indexOf("Init")===0?this.initializeOption=a:a.name.indexOf("Layer")===0?this.layeringOption=a:bt("Unknown enum value: "+a):Wa.prototype.qb.call(this,a)},ia.prototype.createNetwork=function(){return new pp(this)},ia.prototype.doLayout=function(a){for(this.network===null&&(this.network=this.makeNetwork(a)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),this.Iq=-1,this.Md=this.Hn=0,this.fl=this.Jn=this.kj=null,a=0;a<this.He.length;a++)this.He[a]=null;if(0<this.network.vertexes.count){for(this.network.Ko(),this.cycleRemoveOption!==fm&&this.removeCycles(),a=this.network.vertexes.iterator;a.next();)a.value.layer=-1;for(this.Ia=-1,this.assignLayers(),a.reset();a.next();)this.Ia=Math.max(this.Ia,a.value.layer);this.cycleRemoveOption===fm&&this.removeCycles(),a=this.network;for(var y=[],x=a.edges.iterator;x.next();){var b=x.value;b.valid=!1,y.push(b)}for(x=0;x<y.length;x++){b=y[x];var E=b.fromVertex,z=b.toVertex;if(!(b.valid||(E.node===null&&E.data===null||z.node===null&&z.data===null)&&E.layer===z.layer)){var te=0,re=0,le=0,ce=0;if(b.link!==null){if(re=b.link,re===null)continue;var de=E.node;if(te=z.node,de===null||te===null)continue;var ve=re.fromNode;le=re.toNode;for(var Pe=re.fromPort;Pe!==null&&!Pe.Ed();)Pe=Pe.panel;for(re=re.toPort;re!==null&&!re.Ed();)re=re.panel;if(b.rev){ce=ve;var Le=Pe;ve=le,Pe=re,le=ce,re=Le}var Fe=E.focus;ce=z.focus;var Ze=b.rev?z.bounds:E.bounds;Le=lt.alloc(),de!==ve?Ze.w()&&ve.isVisible()?ve.actualBounds.w()?(_h(ve,Pe,wo,Le),Le.x+=ve.actualBounds.x-Ze.x,Le.y+=ve.actualBounds.y-Ze.y):(_h(ve,Pe,wo,Le),Le.w()||Le.assign(Fe)):Le.assign(Fe):Ze.w()?(_h(ve,Pe,wo,Le),Le.w()||Le.assign(Fe)):Le.assign(Fe),ve=b.rev?E.bounds:z.bounds,de=lt.alloc(),te!==le?ve.w()&&le.isVisible()?le.actualBounds.w()?(_h(le,re,wo,de),de.x+=le.actualBounds.x-ve.x,de.y+=le.actualBounds.y-ve.y):(_h(le,re,wo,de),de.w()||de.assign(ce)):de.assign(ce):ve.w()?(_h(le,re,wo,de),de.w()||de.assign(ce)):de.assign(ce),this.K===90||this.K===270?(te=Math.round((Le.x-Fe.x)/this.kc),le=Le.x,re=Math.round((de.x-ce.x)/this.kc),ce=de.x):(te=Math.round((Le.y-Fe.y)/this.kc),le=Le.y,re=Math.round((de.y-ce.y)/this.kc),ce=de.y),lt.free(Le),lt.free(de),b.portFromColOffset=te,b.portFromPos=le,b.portToColOffset=re,b.portToPos=ce}else b.portFromColOffset=0,b.portFromPos=0,b.portToColOffset=0,b.portToPos=0;if(Le=E.layer,de=z.layer,ve=0,Ze=b.link,Ze!==null){var pt=Ze.fromPort,at=Ze.toPort;if(pt!==null&&at!==null){var Ct=Ze.fromNode;if(Pe=Ze.toNode,Ct!==null&&Pe!==null){var Lt=H0(this,!0),Dt=H0(this,!1),Kt=this.setsPortSpots?Lt:Ze.computeSpot(!0,pt);Fe=this.setsPortSpots?Dt:Ze.computeSpot(!1,at);var vn=Ze.isOrthogonal;Kt.$c()&&Kt.Hf(Dt)&&Fe.$c()&&Fe.Hf(Lt)?ve=0:(Lt=Ze.getLinkPoint(Ct,pt,Kt,!0,vn,Pe,at,lt.alloc()),Dt=Ze.getLinkDirection(Ct,pt,Lt,Kt,!0,vn,Pe,at),lt.free(Lt),Kt.ys()||Dt!==e1(this,b,!0)?this.setsPortSpots&&Ct!==null&&Ct.ports.count===1&&b.rev&&(ve+=1):ve+=1,Kt=Ze.getLinkPoint(Pe,at,Fe,!1,vn,Ct,pt,lt.alloc()),Ze=Ze.getLinkDirection(Pe,at,Kt,Fe,!1,vn,Ct,pt),lt.free(Kt),Fe.ys()||Ze!==e1(this,b,!1)?this.setsPortSpots&&Pe!==null&&Pe.ports.count===1&&b.rev&&(ve+=2):ve+=2)}}}if(Pe=ve,ve=Pe===1||Pe===3,(Pe=Pe===2||Pe===3)&&(Fe=a.createVertex(),Fe.node=null,Fe.Dj=1,Fe.layer=Le,Fe.near=E,a.dh(Fe),E=a.Zj(E,Fe,b.link),E.valid=!1,E.rev=b.rev,E.portFromColOffset=te,E.portToColOffset=0,E.portFromPos=le,E.portToPos=0,E=Fe),Ze=1,ve&&Ze--,Le-de>Ze&&0<Le){for(b.valid=!1,Fe=a.createVertex(),Fe.node=null,Fe.Dj=2,Fe.layer=Le-1,a.dh(Fe),E=a.Zj(E,Fe,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=Pe?0:te,E.portToColOffset=0,E.portFromPos=Pe?0:le,E.portToPos=0,E=Fe,Le--;Le-de>Ze&&0<Le;)Fe=a.createVertex(),Fe.node=null,Fe.Dj=3,Fe.layer=Le-1,a.dh(Fe),E=a.Zj(E,Fe,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=0,E.portFromPos=0,E.portToPos=0,E=Fe,Le--;E=a.Zj(Fe,z,b.link),E.valid=!ve,ve&&(Fe.near=z),E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=re,E.portFromPos=0,E.portToPos=ce}else b.valid=!0}}for(a=this.tc=[],y=0;y<=this.Ia;y++)a[y]=0;for(y=this.network.vertexes.iterator;y.next();)y.value.index=-1;for(this.initializeIndices(),this.Iq=-1,x=this.Md=this.Hn=0;x<=this.Ia;x++)a[x]>a[this.Md]&&(this.Iq=a[x]-1,this.Md=x),a[x]<a[this.Hn]&&(this.Hn=x);for(this.fl=[],x=0;x<a.length;x++)this.fl[x]=[];for(y.reset();y.next();)a=y.value,this.fl[a.layer][a.index]=a;for(this.Ra=-1,a=0;a<=this.Ia;a++){for(y=wg(this,a),x=0,b=this.tc[a],z=0;z<b;z++)E=y[z],x+=this.nodeMinColumnSpace(E,!0),E.column=x,x+=1,x+=this.nodeMinColumnSpace(E,!1);this.Ra=Math.max(this.Ra,x-1),Eg(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},ia.prototype.linkMinLength=function(){return 1};function Py(a){var y=a.fromVertex.node||a.fromVertex.data;return a=a.toVertex.node||a.toVertex.data,y===null&&a===null?8:y===null||a===null?4:1}ia.prototype.nodeMinLayerSpace=function(a,y){return a.node===null&&a.data===null?0:this.K===90||this.K===270?y?a.focus.y+10:a.bounds.height-a.focus.y+10:y?a.focus.x+10:a.bounds.width-a.focus.x+10},ia.prototype.nodeMinColumnSpace=function(a,y){if(a.node===null&&a.data===null)return 0;var x=y?a.ev:a.dv;return x!==null?x:(x=this.K,x===90||x===270?y?a.ev=a.focus.x/this.kc+1|0:a.dv=(a.bounds.width-a.focus.x)/this.kc+1|0:y?a.ev=a.focus.y/this.kc+1|0:a.dv=(a.bounds.height-a.focus.y)/this.kc+1|0)};function Wu(a){a.kj===null&&(a.kj=[]);for(var y=0,x=a.network.vertexes.iterator;x.next();){var b=x.value;a.kj[y]=b.layer,y++,a.kj[y]=b.column,y++,a.kj[y]=b.index,y++}return a.kj}function Bc(a,y){var x=0;for(a=a.network.vertexes.iterator;a.next();){var b=a.value;b.layer=y[x],x++,b.column=y[x],x++,b.index=y[x],x++}}function Vx(a,y,x){var b=wg(a,y),E=a.tc[y];(a.Jn===null||a.Jn.length<E*E)&&(a.Jn=[]);for(var z=a.Jn,te=0;te<E;te++){var re=0,le=b[te],ce=le.near;if(ce!==null&&ce.layer===le.layer)if(le=ce.index,le>te)for(var de=te+1;de<le;de++){var ve=b[de];ve.near===ce&&ve.Dj===ce.Dj||re++}else for(de=te-1;de>le;de--)ve=b[de],ve.near===ce&&ve.Dj===ce.Dj||re++;var Pe;if(0<=x)for(le=b[te].sourceEdgesArrayAccess,ce=0;ce<le.length;ce++){var Le=le[ce];if(Le.valid&&Le.fromVertex.layer!==y)for(ve=Le.fromVertex.index,de=Le.portToPos,Le=Le.portFromPos,Pe=ce+1;Pe<le.length;Pe++){var Fe=le[Pe];if(Fe.valid&&Fe.fromVertex.layer!==y){var Ze=Fe.fromVertex.index,pt=Fe.portToPos;Fe=Fe.portFromPos,de<pt&&(ve>Ze||ve===Ze&&Le>Fe)&&re++,pt<de&&(Ze>ve||Ze===ve&&Fe>Le)&&re++}}}if(0>=x){for(le=b[te].destinationEdgesArrayAccess,ce=0;ce<le.length;ce++)if(Le=le[ce],Le.valid&&Le.toVertex.layer!==y)for(ve=Le.toVertex.index,de=Le.portToPos,Le=Le.portFromPos,Pe=ce+1;Pe<le.length;Pe++)Fe=le[Pe],Fe.valid&&Fe.toVertex.layer!==y&&(Ze=Fe.toVertex.index,pt=Fe.portToPos,Fe=Fe.portFromPos,Le<Fe&&(ve>Ze||ve===Ze&&de>pt)&&re++,Fe<Le&&(Ze>ve||Ze===ve&&pt>de)&&re++)}for(z[te*E+te]=re,le=te+1;le<E;le++){var at=0,Ct=0;if(0<=x){re=b[te].sourceEdgesArrayAccess;var Lt=b[le].sourceEdgesArrayAccess;for(ce=0;ce<re.length;ce++)if(Le=re[ce],Le.valid&&Le.fromVertex.layer!==y)for(ve=Le.fromVertex.index,Le=Le.portFromPos,Pe=0;Pe<Lt.length;Pe++)Fe=Lt[Pe],Fe.valid&&Fe.fromVertex.layer!==y&&(Ze=Fe.fromVertex.index,Fe=Fe.portFromPos,(ve<Ze||ve===Ze&&Le<Fe)&&Ct++,(Ze<ve||Ze===ve&&Fe<Le)&&at++)}if(0>=x){for(re=b[te].destinationEdgesArrayAccess,Lt=b[le].destinationEdgesArrayAccess,ce=0;ce<re.length;ce++)if(Le=re[ce],Le.valid&&Le.toVertex.layer!==y)for(ve=Le.toVertex.index,de=Le.portToPos,Pe=0;Pe<Lt.length;Pe++)Fe=Lt[Pe],Fe.valid&&Fe.toVertex.layer!==y&&(Ze=Fe.toVertex.index,pt=Fe.portToPos,(ve<Ze||ve===Ze&&de<pt)&&Ct++,(Ze<ve||Ze===ve&&pt<de)&&at++)}z[te*E+le]=at,z[le*E+te]=Ct}}return Eg(a,y,b),z}ia.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var x=Vx(this,y,1),b=this.tc[y],E=0;E<b;E++)for(var z=E;z<b;z++)a+=x[E*b+z];return a};function U0(a){for(var y=0,x=0;x<=a.Ia;x++){for(var b=a,E=x,z=wg(b,E),te=b.tc[E],re=0,le=0;le<te;le++){var ce=z[le].destinationEdgesArrayAccess;if(ce!==null)for(var de=0;de<ce.length;de++){var ve=ce[de];if(ve.valid&&ve.toVertex.layer!==E){var Pe=ve.fromVertex.column+ve.portFromColOffset,Le=ve.toVertex.column+ve.portToColOffset;re+=(Math.abs(Pe-Le)+1)*Py(ve)}}}Eg(b,E,z),y+=re}return y}ia.prototype.normalize=function(){var a=1/0;this.Ra=-1;for(var y=this.network.vertexes.iterator;y.next();){var x=y.value;a=Math.min(a,x.column-this.nodeMinColumnSpace(x,!0)),this.Ra=Math.max(this.Ra,x.column+this.nodeMinColumnSpace(x,!1))}for(y.reset();y.next();)y.value.column-=a;this.Ra-=a};function Ay(a,y,x){for(var b=wg(a,y),E=a.tc[y],z=[],te=0;te<E;te++){var re=b[te],le=null;0>=x&&(le=re.sourceEdgesArrayAccess);var ce=null;0<=x&&(ce=re.destinationEdgesArrayAccess);var de=0,ve=0,Pe=re.near;if(Pe!==null&&Pe.layer===re.layer&&(de+=Pe.column-1,ve++),le!==null)for(Pe=0;Pe<le.length;Pe++){re=le[Pe];var Le=re.fromVertex;re.valid&&!re.rev&&Le.layer!==y&&(de+=Le.column,ve++)}if(ce!==null)for(le=0;le<ce.length;le++)re=ce[le],Pe=re.toVertex,re.valid&&!re.rev&&Pe.layer!==y&&(de+=Pe.column,ve++);z[te]=ve===0?-1:de/ve}return Eg(a,y,b),z}function Kx(a,y,x){for(var b=wg(a,y),E=a.tc[y],z=[],te=0;te<E;te++){var re=b[te],le=null;0>=x&&(le=re.sourceEdgesArrayAccess);var ce=null;0<=x&&(ce=re.destinationEdgesArrayAccess);var de=0,ve=[],Pe=re.near;if(Pe!==null&&Pe.layer===re.layer&&(ve[de]=Pe.column-1,de++),re=void 0,le!==null)for(Pe=0;Pe<le.length;Pe++){re=le[Pe];var Le=re.fromVertex;re.valid&&!re.rev&&Le.layer!==y&&(ve[de]=Le.column+re.portFromColOffset,de++)}if(ce!==null)for(le=0;le<ce.length;le++)re=ce[le],Pe=re.toVertex,re.valid&&!re.rev&&Pe.layer!==y&&(ve[de]=Pe.column+re.portToColOffset,de++);de===0?z[te]=-1:(ve.sort(function(Fe,Ze){return Fe-Ze}),ce=de>>1,z[te]=de&1?ve[ce]:ve[ce-1]+ve[ce]>>1)}return Eg(a,y,b),z}function gm(a,y,x,b,E,z){if(y.component===b){if(y.component=x,E)for(var te=y.destinationEdges;te.next();){var re=te.value,le=re.toVertex,ce=y.layer-le.layer;re=a.linkMinLength(re),ce===re&&gm(a,le,x,b,E,z)}if(z)for(te=y.sourceEdges;te.next();)re=te.value,le=re.fromVertex,ce=le.layer-y.layer,re=a.linkMinLength(re),ce===re&&gm(a,le,x,b,E,z)}}function Ny(a,y,x,b,E,z){if(y.component===b){if(y.component=x,E)for(var te=y.destinationEdges;te.next();)Ny(a,te.value.toVertex,x,b,E,z);if(z)for(y=y.sourceEdges;y.next();)Ny(a,y.value.fromVertex,x,b,E,z)}}ia.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case Ty:a=this.network;var y=0,x=a.vertexes.count-1,b=[];b.length=x+1;for(var E=a.vertexes.iterator;E.next();)E.value.valid=!0;for(;Y1(a)!==null;){for(E=Yx(a);E!==null;)b[x]=E,x--,E.valid=!1,E=Yx(a);for(E=$x(a);E!==null;)b[y]=E,y++,E.valid=!1,E=$x(a);E=null;for(var z=0,te=this.network.vertexes.iterator;te.next();){var re=te.value;if(re.valid){for(var le=0,ce=re.destinationEdges;ce.next();)ce.value.toVertex.valid&&le++;ce=0;for(var de=re.sourceEdges;de.next();)de.value.fromVertex.valid&&ce++;(E===null||z<le-ce)&&(E=re,z=le-ce)}}E!==null&&(b[y]=E,y++,E.valid=!1)}for(y=0;y<a.vertexes.count;y++)b[y].index=y;for(b=a.edges.iterator;b.next();)y=b.value,y.fromVertex.index>y.toVertex.index&&(a.gm(y),y.rev=!0);break;case W0:for(b=this.network.vertexes.iterator;b.next();)a=b.value,a.Ll=-1,a.finish=-1;for(a=this.network.edges.iterator;a.next();)a.value.forest=!1;for(this.Kn=0,b.reset();b.next();)y=b.value,y.sourceEdges.count===0&&My(this,y);for(b.reset();b.next();)y=b.value,y.Ll===-1&&My(this,y);for(a.reset();a.next();)b=a.value,b.forest||(y=b.fromVertex,x=y.finish,E=b.toVertex,z=E.finish,E.Ll<y.Ll&&x<z&&(this.network.gm(b),b.rev=!0));break;case fm:for(a=this.network,y=a.vertexes.iterator,b=1/0;y.next();)b=Math.min(b,y.value.layer);if(1/0>b){if(0>b)for(y.reset();y.next();)y.value.layer-=b;for(b=[],y.reset();y.next();)x=y.value,E=b[x.layer],E===void 0?b[x.layer]=[x]:E.push(x);for(x=y=0;x<b.length;x++)if(E=b[x],!E||E.length===0)y++;else if(0<x)for(z=0;z<E.length;z++)E[z].layer-=y;for(b=a.edges.iterator;b.next();)y=b.value,y.fromVertex.layer<y.toVertex.layer&&(a.gm(y),y.rev=!0)}}};function Y1(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid)return y}return null}function Yx(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,b=y.destinationEdges;b.next();)if(b.value.toVertex.valid){x=!1;break}if(x)return y}}return null}function $x(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,b=y.sourceEdges;b.next();)if(b.value.fromVertex.valid){x=!1;break}if(x)return y}}return null}function My(a,y){y.Ll=a.Kn,a.Kn++;for(var x=y.destinationEdges;x.next();){var b=x.value,E=b.toVertex;E.Ll===-1&&(b.forest=!0,My(a,E))}y.finish=a.Kn,a.Kn++}ia.prototype.assignLayers=function(){switch(this.Zk){case Iy:Xx(this);break;case ky:for(var a,y=this.network.vertexes.iterator;y.next();)a=Jx(this,y.value),this.Ia=Math.max(a,this.Ia);for(y.reset();y.next();)a=y.value,a.layer=this.Ia-a.layer;break;default:case Z0:for(Xx(this),y=this.network.vertexes.iterator;y.next();)y.value.valid=!1;for(y.reset();y.next();)a=y.value,a.sourceEdges.count===0&&qx(this,a);for(a=1/0,y.reset();y.next();)a=Math.min(a,y.value.layer);for(this.Ia=-1,y.reset();y.next();){var x=y.value;x.layer-=a,this.Ia=Math.max(this.Ia,x.layer)}}};function Xx(a){for(var y=a.network.vertexes.iterator;y.next();){var x=Qx(a,y.value);a.Ia=Math.max(x,a.Ia)}}function Qx(a,y){var x=0;if(y.layer===-1){for(var b=y.destinationEdges;b.next();){var E=b.value,z=E.toVertex;E=a.linkMinLength(E),x=Math.max(x,Qx(a,z)+E)}y.layer=x}else x=y.layer;return x}function Jx(a,y){var x=0;if(y.layer===-1){for(var b=y.sourceEdges;b.next();){var E=b.value,z=E.fromVertex;E=a.linkMinLength(E),x=Math.max(x,Jx(a,z)+E)}y.layer=x}else x=y.layer;return x}function qx(a,y){if(!y.valid){y.valid=!0;for(var x=y.destinationEdges;x.next();)qx(a,x.value.toVertex);for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(var b=y.sourceEdgesArrayAccess,E=b.length,z=0;z<E;z++){var te=b[z],re=te.fromVertex,le=te.toVertex;te=a.linkMinLength(te),re.layer-le.layer>te&&gm(a,re,0,-1,!0,!1)}for(gm(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,b=1/0,re=0,le=null,te=a.network.vertexes.iterator;te.next();){var ce=te.value;if(ce.component===1){var de=0,ve=!1,Pe=ce.sourceEdgesArrayAccess;E=Pe.length;for(var Le=0;Le<E;Le++){var Fe=Pe[Le],Ze=Fe.fromVertex;de+=1,Ze.component!==1&&(z+=1,Ze=Ze.layer-ce.layer,Fe=a.linkMinLength(Fe),b=Math.min(b,Ze-Fe))}for(Pe=ce.destinationEdgesArrayAccess,E=Pe.length,Le=0;Le<E;Le++)Fe=Pe[Le].toVertex,--de,Fe.component!==1?--z:ve=!0;(le===null||de<re)&&!ve&&(le=ce,re=de)}}if(0<z){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer+=b);y.component=0}else le.component=0}for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(gm(a,y,1,-1,!0,!1);y.component!==0;){for(b=0,E=1/0,z=0,re=null,le=a.network.vertexes.iterator;le.next();)if(te=le.value,te.component===1){for(ce=0,de=!1,Pe=te.sourceEdgesArrayAccess,ve=Pe.length,Le=0;Le<ve;Le++)Fe=Pe[Le].fromVertex,ce+=1,Fe.component!==1?b+=1:de=!0;for(Pe=te.destinationEdgesArrayAccess,ve=Pe.length,Le=0;Le<ve;Le++)Fe=Pe[Le],Ze=Fe.toVertex,--ce,Ze.component!==1&&(--b,Ze=te.layer-Ze.layer,Fe=a.linkMinLength(Fe),E=Math.min(E,Ze-Fe));(re===null||ce>z)&&!de&&(re=te,z=ce)}if(0>b){for(x.reset();x.next();)b=x.value,b.component===1&&(b.layer-=E);y.component=0}else re.component=0}}}function e1(a,y,x){return a.K===90?x&&!y.rev||!x&&y.rev?270:90:a.K===180?x&&!y.rev||!x&&y.rev?0:180:a.K===270?x&&!y.rev||!x&&y.rev?90:270:x&&!y.rev||!x&&y.rev?180:0}ia.prototype.initializeIndices=function(){switch(this.Qk){default:case Oy:for(var a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;y.index=this.tc[x],this.tc[x]++}break;case V0:for(a=this.network.vertexes.iterator,y=this.Ia;0<=y;y--)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&t1(this,x);break;case Dy:for(a=this.network.vertexes.iterator,y=0;y<=this.Ia;y++)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&n1(this,x)}};function t1(a,y){var x=y.layer;for(y.index=a.tc[x],a.tc[x]++,y=y.destinationEdgesArrayAccess,x=!0;x;){x=!1;for(var b=0;b<y.length-1;b++){var E=y[b],z=y[b+1];E.portFromColOffset>z.portFromColOffset&&(x=!0,y[b]=z,y[b+1]=E)}}for(x=0;x<y.length;x++)b=y[x],b.valid&&(b=b.toVertex,b.index===-1&&t1(a,b))}function n1(a,y){var x=y.layer;y.index=a.tc[x],a.tc[x]++,y=y.sourceEdgesArrayAccess;for(var b=!0;b;)for(b=!1,x=0;x<y.length-1;x++){var E=y[x],z=y[x+1];E.portToColOffset>z.portToColOffset&&(b=!0,y[x]=z,y[x+1]=E)}for(x=0;x<y.length;x++)b=y[x],b.valid&&(b=b.fromVertex,b.index===-1&&n1(a,b))}ia.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=Wu(this),x,b;for(x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)_0(this,b,1),Kc(this,b,1);var E=this.countCrossings();for(E<a&&(a=E,y=Wu(this)),b=this.Ia;0<=b;b--)_0(this,b,-1),Kc(this,b,-1);E=this.countCrossings(),E<a&&(a=E,y=Wu(this))}for(Bc(this,y),x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)_0(this,b,0),Kc(this,b,0);for(E=this.countCrossings(),E<a&&(a=E,y=Wu(this)),b=this.Ia;0<=b;b--)_0(this,b,0),Kc(this,b,0);E=this.countCrossings(),E<a&&(a=E,y=Wu(this))}Bc(this,y);var z,te,re;switch(this.rk){case Ry:break;case Fy:for(re=a+1;(b=this.countCrossings())<re;)for(re=b,x=this.Ia;0<=x;x--)for(te=0;te<=x;te++){for(z=!0;z;)for(z=!1,b=x;b>=te;b--)z=Kc(this,b,-1)||z;for(E=this.countCrossings(),E>=a?Bc(this,y):(a=E,y=Wu(this)),z=!0;z;)for(z=!1,b=x;b>=te;b--)z=Kc(this,b,1)||z;for(E=this.countCrossings(),E>=a?Bc(this,y):(a=E,y=Wu(this)),z=!0;z;)for(z=!1,b=te;b<=x;b++)z=Kc(this,b,1)||z;for(E>=a?Bc(this,y):(a=E,y=Wu(this)),z=!0;z;)for(z=!1,b=te;b<=x;b++)z=Kc(this,b,-1)||z;for(E>=a?Bc(this,y):(a=E,y=Wu(this)),z=!0;z;)for(z=!1,b=x;b>=te;b--)z=Kc(this,b,0)||z;for(E>=a?Bc(this,y):(a=E,y=Wu(this)),z=!0;z;)for(z=!1,b=te;b<=x;b++)z=Kc(this,b,0)||z;E>=a?Bc(this,y):(a=E,y=Wu(this))}break;default:case K0:for(x=this.Ia,te=0,re=a+1;(b=this.countCrossings())<re;){for(re=b,z=!0;z;)for(z=!1,b=x;b>=te;b--)z=Kc(this,b,-1)||z;for(E=this.countCrossings(),E>=a?Bc(this,y):(a=E,y=Wu(this)),z=!0;z;)for(z=!1,b=x;b>=te;b--)z=Kc(this,b,1)||z;for(E=this.countCrossings(),E>=a?Bc(this,y):(a=E,y=Wu(this)),z=!0;z;)for(z=!1,b=te;b<=x;b++)z=Kc(this,b,1)||z;for(E>=a?Bc(this,y):(a=E,y=Wu(this)),z=!0;z;)for(z=!1,b=te;b<=x;b++)z=Kc(this,b,-1)||z;for(E>=a?Bc(this,y):(a=E,y=Wu(this)),z=!0;z;)for(z=!1,b=x;b>=te;b--)z=Kc(this,b,0)||z;for(E>=a?Bc(this,y):(a=E,y=Wu(this)),z=!0;z;)for(z=!1,b=te;b<=x;b++)z=Kc(this,b,0)||z;E>=a?Bc(this,y):(a=E,y=Wu(this))}}Bc(this,y)};function _0(a,y,x){var b=wg(a,y),E=a.tc[y],z=Kx(a,y,x),te=Ay(a,y,x);for(x=0;x<E;x++)te[x]===-1&&(te[x]=b[x].column),z[x]===-1&&(z[x]=b[x].column);for(var re=!0,le;re;)for(re=!1,x=0;x<E-1;x++)(z[x+1]<z[x]||z[x+1]===z[x]&&te[x+1]<te[x])&&(re=!0,le=z[x],z[x]=z[x+1],z[x+1]=le,le=te[x],te[x]=te[x+1],te[x+1]=le,le=b[x],b[x]=b[x+1],b[x+1]=le);for(x=z=0;x<E;x++)le=b[x],le.index=x,z+=a.nodeMinColumnSpace(le,!0),le.column=z,z+=1,z+=a.nodeMinColumnSpace(le,!1);Eg(a,y,b)}function Kc(a,y,x){var b=wg(a,y),E=a.tc[y];x=Vx(a,y,x);var z,te=[];for(z=0;z<E;z++)te[z]=-1;var re=[];for(z=0;z<E;z++)re[z]=-1;for(var le=!1,ce=!0;ce;)for(ce=!1,z=0;z<E-1;z++){var de=x[b[z].index*E+b[z+1].index],ve=x[b[z+1].index*E+b[z].index],Pe=0,Le=0,Fe=b[z].column,Ze=b[z+1].column,pt=a.nodeMinColumnSpace(b[z],!0),at=a.nodeMinColumnSpace(b[z],!1),Ct=a.nodeMinColumnSpace(b[z+1],!0),Lt=a.nodeMinColumnSpace(b[z+1],!1);pt=Fe-pt+Ct,at=Ze-at+Lt;var Dt=b[z].sourceEdges.iterator;for(Dt.reset();Dt.next();)if(Ct=Dt.value,Lt=Ct.fromVertex,Ct.valid&&Lt.layer===y){for(Ct=0;b[Ct]!==Lt;)Ct++;Ct<z&&(Pe+=2*(z-Ct),Le+=2*(z+1-Ct)),Ct===z+1&&(Pe+=1),Ct>z+1&&(Pe+=4*(Ct-z),Le+=4*(Ct-(z+1)))}for(Dt=b[z].destinationEdges.iterator,Dt.reset();Dt.next();)if(Ct=Dt.value,Lt=Ct.toVertex,Ct.valid&&Lt.layer===y){for(Ct=0;b[Ct]!==Lt;)Ct++;Ct===z+1&&(Le+=1)}for(Dt=b[z+1].sourceEdges.iterator,Dt.reset();Dt.next();)if(Ct=Dt.value,Lt=Ct.fromVertex,Ct.valid&&Lt.layer===y){for(Ct=0;b[Ct]!==Lt;)Ct++;Ct<z&&(Pe+=2*(z+1-Ct),Le+=2*(z-Ct)),Ct===z&&(Le+=1),Ct>z+1&&(Pe+=4*(Ct-(z+1)),Le+=4*(Ct-z))}for(Dt=b[z+1].destinationEdges.iterator,Dt.reset();Dt.next();)if(Ct=Dt.value,Lt=Ct.toVertex,Ct.valid&&Lt.layer===y){for(Ct=0;b[Ct]!==Lt;)Ct++;Ct===z&&(Pe+=1)}Ct=Lt=0,Dt=te[b[z].index];var Kt=re[b[z].index],vn=te[b[z+1].index],Pi=re[b[z+1].index];Dt!==-1&&(Lt+=Math.abs(Dt-Fe),Ct+=Math.abs(Dt-at)),Kt!==-1&&(Lt+=Math.abs(Kt-Fe),Ct+=Math.abs(Kt-at)),vn!==-1&&(Lt+=Math.abs(vn-Ze),Ct+=Math.abs(vn-pt)),Pi!==-1&&(Lt+=Math.abs(Pi-Ze),Ct+=Math.abs(Pi-pt)),(Le<Pe-.5||Le===Pe&&ve<de-.5||Le===Pe&&ve===de&&Ct<Lt-.5)&&(ce=le=!0,b[z].column=at,b[z+1].column=pt,de=b[z],b[z]=b[z+1],b[z+1]=de)}for(z=0;z<E;z++)b[z].index=z;return Eg(a,y,b),le}ia.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&Nb)!==0;if(1e3<this.network.edges.count&&y&&(a=!1),a){var x=[];for(y=0;y<=this.Ia;y++)x[y]=0;for(var b,E=this.network.vertexes.iterator;E.next();){var z=E.value;y=z.layer,b=z.column,z=this.nodeMinColumnSpace(z,!1),x[y]=Math.max(x[y],b+z)}for(E.reset();E.next();)z=E.value,y=z.layer,b=z.column,z.column=(8*(this.Ra-x[y])>>1)+8*b;this.Ra*=8}if(this.bg&2)for(x=!0;x;){for(x=!1,y=this.Md+1;y<=this.Ia;y++)x=fp(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=fp(this,y,-1)||x;x=fp(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)Ly(this,y,1);for(y=this.Md-1;0<=y;y--)Ly(this,y,-1);Ly(this,this.Md,0)}if(a&&(i1(this,-1),i1(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=fp(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=fp(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=fp(this,y,0)||x}}else J1(this)};function fp(a,y,x){for(var b=!1;$1(a,y,x);)b=!0;return b}function $1(a,y,x){var b,E=wg(a,y),z=a.tc[y],te=Ay(a,y,-1);if(0<x)for(b=0;b<z;b++)te[b]=-1;var re=Ay(a,y,1);if(0>x)for(b=0;b<z;b++)re[b]=-1;for(var le=!1,ce=!0;ce;)for(ce=!1,b=0;b<z;b++){var de=E[b].column,ve=a.nodeMinColumnSpace(E[b],!0),Pe=a.nodeMinColumnSpace(E[b],!1),Le=0;0>b-1||de-E[b-1].column-1>ve+a.nodeMinColumnSpace(E[b-1],!1)?Le=de-1:Le=de,ve=b+1>=z||E[b+1].column-de-1>Pe+a.nodeMinColumnSpace(E[b+1],!0)?de+1:de;var Fe=Pe=0,Ze=0;if(0>=x)for(var pt=E[b].sourceEdges.iterator;pt.next();){var at=pt.value,Ct=at.fromVertex;if(at.valid&&Ct.layer!==y){var Lt=Py(at),Dt=at.portFromColOffset;at=at.portToColOffset,Ct=Ct.column,Pe+=(Math.abs(de+at-(Ct+Dt))+1)*Lt,Fe+=(Math.abs(Le+at-(Ct+Dt))+1)*Lt,Ze+=(Math.abs(ve+at-(Ct+Dt))+1)*Lt}}if(0<=x)for(pt=E[b].destinationEdges.iterator;pt.next();)at=pt.value,Ct=at.toVertex,at.valid&&Ct.layer!==y&&(Lt=Py(at),Dt=at.portFromColOffset,at=at.portToColOffset,Ct=Ct.column,Pe+=(Math.abs(de+Dt-(Ct+at))+1)*Lt,Fe+=(Math.abs(Le+Dt-(Ct+at))+1)*Lt,Ze+=(Math.abs(ve+Dt-(Ct+at))+1)*Lt);at=Dt=Lt=0,pt=te[E[b].index],Ct=re[E[b].index],pt!==-1&&(Lt+=Math.abs(pt-de),Dt+=Math.abs(pt-Le),at+=Math.abs(pt-ve)),Ct!==-1&&(Lt+=Math.abs(Ct-de),Dt+=Math.abs(Ct-Le),at+=Math.abs(Ct-ve)),Fe<Pe||Fe===Pe&&Dt<Lt?(ce=le=!0,E[b].column=Le):(Ze<Pe||Ze===Pe&&at<Lt)&&(ce=le=!0,E[b].column=ve)}return Eg(a,y,E),a.normalize(),le}function Ly(a,y,x){var b=wg(a,y),E=a.tc[y],z=Kx(a,y,x),te=[];for(x=0;x<E;x++)te[x]=z[x];for(z=!0;z;)for(z=!1,x=0;x<E;x++){var re=b[x].column,le=a.nodeMinColumnSpace(b[x],!0),ce=a.nodeMinColumnSpace(b[x],!1),de=0;if(te[x]===-1)if(x===0&&x===E-1)de=re;else if(x===0){var ve=b[x+1].column;ve-re===ce+a.nodeMinColumnSpace(b[x+1],!0)?de=re-1:de=re}else x===E-1?(ve=b[x-1].column,de=re-ve===le+a.nodeMinColumnSpace(b[x-1],!1)?re+1:re):(ve=b[x-1].column,le=ve+a.nodeMinColumnSpace(b[x-1],!1)+le+1,ve=b[x+1].column,ce=ve-a.nodeMinColumnSpace(b[x+1],!0)-ce-1,de=(le+ce)/2|0);else x===0&&x===E-1?de=te[x]:x===0?(ve=b[x+1].column,ce=ve-a.nodeMinColumnSpace(b[x+1],!0)-ce-1,de=Math.min(te[x],ce)):x===E-1?(ve=b[x-1].column,le=ve+a.nodeMinColumnSpace(b[x-1],!1)+le+1,de=Math.max(te[x],le)):(ve=b[x-1].column,le=ve+a.nodeMinColumnSpace(b[x-1],!1)+le+1,ve=b[x+1].column,ce=ve-a.nodeMinColumnSpace(b[x+1],!0)-ce-1,le<te[x]&&te[x]<ce?de=te[x]:le>=te[x]?de=le:ce<=te[x]&&(de=ce));de!==re&&(z=!0,b[x].column=de)}Eg(a,y,b),a.normalize()}function X1(a,y){for(var x=!0,b=a.network.vertexes.iterator;b.next();){var E=b.value,z=a.nodeMinColumnSpace(E,!0),te=a.nodeMinColumnSpace(E,!1);if(E.column-z<=y&&E.column+te>=y){x=!1;break}}if(a=!1,x)for(b.reset();b.next();)x=b.value,x.column>y&&(--x.column,a=!0);return a}function Q1(a,y){var x=y+1,b,E=[],z=[];for(b=0;b<=a.Ia;b++)E[b]=!1,z[b]=!1;for(var te=a.network.vertexes.iterator;te.next();){b=te.value;var re=b.column-a.nodeMinColumnSpace(b,!0),le=b.column+a.nodeMinColumnSpace(b,!1);re<=y&&le>=y&&(E[b.layer]=!0),re<=x&&le>=x&&(z[b.layer]=!0)}for(re=!0,x=!1,b=0;b<=a.Ia;b++)re=re&&!(E[b]&&z[b]);if(re)for(te.reset();te.next();)a=te.value,a.column>y&&(--a.column,x=!0);return x}function i1(a,y){for(var x=0;x<=a.Ra;x++)for(;X1(a,x););for(a.normalize(),x=0;x<a.Ra;x++)for(;Q1(a,x););a.normalize();var b;if(0<y)for(x=0;x<=a.Ra;x++){var E=Wu(a),z=U0(a);for(b=z+1;z<b;){b=z,r1(a,x,1);var te=U0(a);te>z?Bc(a,E):te<z&&(z=te,E=Wu(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(E=Wu(a),z=U0(a),b=z+1;z<b;)b=z,r1(a,x,-1),te=U0(a),te>z?Bc(a,E):te<z&&(z=te,E=Wu(a));a.normalize()}function r1(a,y,x){a.le=0;for(var b=a.network.vertexes.iterator;b.next();)b.value.component=-1;if(0<x)for(b.reset();b.next();){var E=b.value;E.column-a.nodeMinColumnSpace(E,!0)<=y&&(E.component=a.le)}if(0>x)for(b.reset();b.next();)E=b.value,E.column+a.nodeMinColumnSpace(E,!1)>=y&&(E.component=a.le);for(a.le++,b.reset();b.next();)y=b.value,y.component===-1&&(Ny(a,y,a.le,-1,!0,!0),a.le++);var z;for(y=[],z=0;z<a.le*a.le;z++)y[z]=!1;for(E=[],z=0;z<(a.Ia+1)*(a.Ra+1);z++)E[z]=-1;for(b.reset();b.next();){z=b.value;for(var te=z.layer,re=Math.max(0,z.column-a.nodeMinColumnSpace(z,!0)),le=Math.min(a.Ra,z.column+a.nodeMinColumnSpace(z,!1));re<=le;re++)E[te*(a.Ra+1)+re]=z.component}for(z=0;z<=a.Ia;z++){if(0<x)for(te=0;te<a.Ra;te++)E[z*(a.Ra+1)+te]!==-1&&E[z*(a.Ra+1)+te+1]!==-1&&E[z*(a.Ra+1)+te]!==E[z*(a.Ra+1)+te+1]&&(y[E[z*(a.Ra+1)+te]*a.le+E[z*(a.Ra+1)+te+1]]=!0);if(0>x)for(te=a.Ra;0<te;te--)E[z*(a.Ra+1)+te]!==-1&&E[z*(a.Ra+1)+te-1]!==-1&&E[z*(a.Ra+1)+te]!==E[z*(a.Ra+1)+te-1]&&(y[E[z*(a.Ra+1)+te]*a.le+E[z*(a.Ra+1)+te-1]]=!0)}for(E=[],z=0;z<a.le;z++)E[z]=!0;for(te=[],te.push(0);te.length!==0;)if(le=te[te.length-1],te.pop(),E[le])for(E[le]=!1,z=0;z<a.le;z++)y[le*a.le+z]&&te.splice(0,0,z);if(0<x)for(b.reset();b.next();)a=b.value,E[a.component]&&--a.column;if(0>x)for(b.reset();b.next();)x=b.value,E[x.component]&&(x.column+=1)}function J1(a){for(var y=gn(),x=a.fl.length,b=0;b<=x;b++)y[b]=[];for(b=a.network.vertexes.iterator;b.next();){var E=b.value;y[x-E.layer][E.index]=E}x=new Fn,q1(y,x);var z=null,te=null,re=null,le=null,ce=(a.ve&1)!==0,de=(a.ve&2)!==0,ve=(a.ve&4)!==0,Pe=(a.ve&8)!==0;for(ce&&(a.verticalAlignment(y,x,!0),z=G0(a,y,!0,!1)),y.reverse(),ve&&(a.verticalAlignment(y,x,!1),re=G0(a,y,!1,!1)),b=pr(y),E=b.next();!E.done;E=b.next())E.value.reverse();Pe&&(a.verticalAlignment(y,x,!1),le=G0(a,y,!1,!0)),y.reverse(),de&&(a.verticalAlignment(y,x,!0),te=G0(a,y,!0,!0)),kn(y),a.u(z,te,re,le),a.network.vertexes.each(function(Le){var Fe=gn();ce&&Fe.push(z.get(Le)),de&&Fe.push(te.get(Le)),ve&&Fe.push(re.get(Le)),Pe&&Fe.push(le.get(Le)),Fe.sort(function(pt,at){return pt-at});var Ze=Fe.length;Ze=(Fe[Math.floor((Ze-1)/2)]+Fe[Math.ceil((Ze-1)/2)])/2,kn(Fe),Le.zc=Ze})}function q1(a,y){for(var x=a.length,b=1;b<x-1;b++)for(var E=0,z=0,te=a[b],re=a[b+1],le=0;z<re.length;le++){var ce=re[le];e:{if(ce.node===null){var de=By(ce);if(0<de.length){de=de[0].node===null;break e}}de=!1}var ve=de;if(le===re.length-1||ve){for(de=te.length-1,ve&&(de=By(ce)[0].index);z<=le;){if(ce=re[z],!ce.bo){ve=[];for(var Pe=pr(ce.sourceEdgesArrayAccess),Le=Pe.next();!Le.done;Le=Pe.next())Le=Le.value,Le.valid&&ve.push(Le);ce.bo=ve}for(ce=pr(ce.bo),ve=ce.next();!ve.done;ve=ce.next())ve=ve.value,Pe=ve.fromVertex.index,(Pe<E||Pe>de)&&y.add(ve);z++}E=de}}}ia.prototype.verticalAlignment=function(a,y,x){Sb(a),a=pr(a);for(var b=a.next();!b.done;b=a.next()){var E=-1;b=pr(b.value);for(var z=b.next();!z.done;z=b.next()){z=z.value;var te=x?By(z):Mb(z),re=te.length;if(0<re){te.sort(function(ve,Pe){return ve.vi-Pe.vi});var le=(re-1)/2;for(re=Math.floor(le),le=Math.ceil(le);re<=le;re++)if(z.align===z){var ce=te[re],de=void 0;de=x?Y0(ce,z):Y0(z,ce),!y.contains(de)&&E<ce.vi&&(ce.align=z,z.root=ce.root,z.align=ce.root,E=ce.vi)}}}}};function Sb(a){for(var y=0;y<a.length;y++)for(var x=a[y],b=0;b<x.length;b++){var E=x[b];E.root=E,E.align=E,E.Tz=y,E.vi=b}}function G0(a,y,x,b){for(var E=a.K===90||a.K===270,z=pr(y),te=z.next();!te.done;te=z.next()){var re=pr(te.value);for(te=re.next();!te.done;te=re.next())te=te.value,te.sd=te,te.shift=1/0,te.zc=NaN,te.qg=0}for(te=a.K===90||a.K===270,z=pr(y),re=z.next();!re.done;re=z.next()){re=pr(re.value);for(var le=re.next();!le.done;le=re.next())if(le=le.value,le.root===le){for(var ce=0,de=le;de.align!==le;){var ve=de.align,Pe=te?de.width:de.height,Le=te?ve.width:ve.height;if(x){var Fe=Y0(de,ve),Ze=Fe.portFromPos,pt=Fe.portToPos;Fe.link!==null&&(de.node&&de.node!==Fe.link.fromNode&&(Ze=te?de.focusX:de.focusY),ve.node&&ve.node!==Fe.link.toNode&&(pt=te?ve.focusX:ve.focusY))}else Fe=Y0(ve,de),Ze=Fe.portToPos,pt=Fe.portFromPos,Fe.link!==null&&(de.node&&de.node!==Fe.link.toNode&&(Ze=te?de.focusX:de.focusY),ve.node&&ve.node!==Fe.link.fromNode&&(pt=te?ve.focusX:ve.focusY));Pe=b?de.qg+(Pe-Ze)-(Le-pt):de.qg+Ze-pt,ve.qg=Pe,ce=Math.min(ce,Pe),de=de.align}de=le;do de.qg=de.qg-ce,de=de.align;while(de!==le)}}for(x=pr(y),te=x.next();!te.done;te=x.next())for(z=pr(te.value),te=z.next();!te.done;te=z.next())te=te.value,te.root===te&&o1(a,te,y);for(x=0;x<y.length;x++)if(!(0>=y[x].length)&&(te=y[x][0],te.sd===te)){te.sd.shift===1/0&&(te.sd.shift=0),te=x,re=0;do{for(z=y[te][re];z.align!==z.root;)z=z.align,te++,0<z.vi&&(re=a1(z,y),re.sd.shift=Math.min(re.sd.shift,z.sd.shift+z.zc+z.qg-(re.zc+re.qg+(E?re.width:re.height)+a.columnSpacing)));re=z.vi+1}while(te<y.length&&re<y[te].length&&z.sd===y[te][re].sd)}for(a=new Ii,y=pr(y),te=y.next();!te.done;te=y.next())for(x=pr(te.value),te=x.next();!te.done;te=x.next())te=te.value,te.zc=te.zc+te.sd.shift+te.qg,z=E?te.width:te.height,a.add(te,b?-te.zc-z:te.zc);return a}function o1(a,y,x){if(isNaN(y.zc)){y.zc=0;var b=y;do{if(0<b.vi){var E=a1(b,x),z=E.root;o1(a,z,x),y.sd===y&&(y.sd=z.sd);var te=a.K===90||a.K===270?E.width:E.height;y.sd===z.sd&&(y.zc=Math.max(y.zc,z.zc+E.qg+te-b.qg+a.columnSpacing))}b=b.align}while(b!==y);for(;b.align!==y;)b=b.align,b.zc=y.zc,b.sd=y.sd}}function a1(a,y){var x=a.Tz;return a=a.vi,1>a&&bt("Could not determine previous vertex in layer"),y[x][a-1]}ia.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var b=gn(),E=gn(),z=1/0,te=0;4>te;te++)if(y[te]){var re=Pb(this,y[te],b,E,te);re<z&&(x=te,z=re)}for(z={},te=0;4>te;z={delta:z.delta},te++)y[te]&&(z.delta=te===0||te===2?b[x]-b[te]:E[x]-E[te],z.delta!==0&&y[te].each(function(le){return function(ce){ce.value+=le.delta}}(z)));kn(b),kn(E)};function Pb(a,y,x,b,E){if(!y||y.count===0)return x[E]=0,b[E]=0,1/0;var z=1/0,te=-1/0;return y.each(function(re){var le=re.key;re=re.value,le=a.K===90||a.K===270?le.width:le.height,re<z&&(z=re),re+le>te&&(te=re+le)}),x[E]=z,b[E]=te,te-z}ia.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=H0(this,!0),y=H0(this,!1),x=this.network.edges.iterator;x.next();){var b=x.value.link;b!==null&&(b.fromSpot=a,b.toSpot=y)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function H0(a,y){return a.K===270?y?Na:Bo:a.K===90?y?Bo:Na:a.K===180?y?Ia:Ho:y?Ho:Ia}ia.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var a=0;a<=this.Ia;a++)this.he[a]=0,this.Ld[a]=0,this.Kd[a]=0,this.Ta[a]=0;for(a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;this.he[x]=Math.max(this.he[x],this.nodeMinLayerSpace(y,!0)),this.Ld[x]=Math.max(this.Ld[x],this.nodeMinLayerSpace(y,!1))}y=0,x=this.ie;for(var b=0;b<=this.Ia;b++){var E=x;0>=this.he[b]+this.Ld[b]&&(E=0),0<b&&(y+=E/2),this.K===90||this.K===0?(y+=this.Ld[b],this.Kd[b]=y,y+=this.he[b]):(y+=this.he[b],this.Kd[b]=y,y+=this.Ld[b]),b<this.Ia&&(y+=E/2),this.Ta[b]=y}for(x=y,y=this.arrangementOrigin,b=0;b<=this.Ia;b++)this.K===270?this.Kd[b]=y.y+this.Kd[b]:this.K===90?(this.Kd[b]=y.y+x-this.Kd[b],this.Ta[b]=x-this.Ta[b]):this.K===180?this.Kd[b]=y.x+this.Kd[b]:(this.Kd[b]=y.x+x-this.Kd[b],this.Ta[b]=x-this.Ta[b]);x=this.ve!==0,a.reset(),b=this.K===270||this.K===90;for(var z=1/0,te=E=1/0,re=-1/0;a.next();){var le=a.value,ce=le.layer,de=le.column|0;b?(te=y.x+this.kc*de,ce=this.Kd[ce]):(te=this.Kd[ce],ce=y.y+this.kc*de),le.centerX=te,le.centerY=ce,x&&isFinite(le.zc)&&(b?le.node?le.x=y.x+le.zc:le.centerX=y.x+le.zc:le.node?le.y=y.y+le.zc:le.centerY=y.y+le.zc),z=Math.min(le.x,z),E=Math.min(le.y,E),b?(te=z,re=Math.max(re,le.bounds.right)):(te=E,re=Math.max(re,le.bounds.bottom))}for(this.xw=re-te,z=y.x-z,y=y.y-E,this.Rf=new lt(x&&b?0:z,x&&!b?0:y),a.reset();a.next();)x=a.value,x.x+=z,x.y+=y,x.commit()},ia.prototype.Gu=function(){for(var a=0,y=this.ie,x=0;x<=this.Ia;x++)a+=this.he[x],a+=this.Ld[x];a+=this.Ia*y,y=[],x=this.ve!==0?this.xw:this.kc*this.Ra;for(var b=this.maxLayer;0<=b;b--)this.K===270?b===0?y.push(new jn(0,0,x,Math.abs(this.Ta[0]))):y.push(new jn(0,this.Ta[b-1],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===90?b===0?y.push(new jn(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new jn(0,this.Ta[b],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===180?b===0?y.push(new jn(0,0,Math.abs(this.Ta[0]),x)):y.push(new jn(this.Ta[b-1],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x)):b===0?y.push(new jn(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new jn(this.Ta[b],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x));this.commitLayers(y,this.Rf)},ia.prototype.commitLayers=function(){},ia.prototype.commitLinks=function(){for(var a=this.network.edges.iterator,y;a.next();)y=a.value.link,y!==null&&(y.uh(),y.Fj(),y.zf());for(a.reset();a.next();)y=a.value.link,y!==null&&y.vg();for(a.reset();a.next();){var x=a.value;if(y=x.link,y!==null){y.uh();var b=y,E=b.fromNode,z=b.toNode,te=b.fromPort,re=b.toPort;if(E!==null){var le=E.findVisibleNode();le!==null&&le!==E&&(E=le,te=le.port)}z!==null&&(le=z.findVisibleNode(),le!==null&&le!==z&&(z=le,re=le.port));var ce=y.computeSpot(!0,te);le=y.computeSpot(!1,re);var de=x.fromVertex,ve=x.toVertex;if(x.valid)y.curve===wc&&y.pointsCount===4&&(de.column===ve.column&&this.alignOption===0?(x=y.getLinkPoint(E,te,ce,!0,!1,z,re),re=y.getLinkPoint(z,re,le,!1,!1,E,te),x.w()||x.set(E.actualBounds.center),re.w()||re.set(z.actualBounds.center),y.Fj(),y.yf(x.x,x.y),y.yf((2*x.x+re.x)/3,(2*x.y+re.y)/3),y.yf((x.x+2*re.x)/3,(x.y+2*re.y)/3),y.yf(re.x,re.y)):(x=b=!1,te!==null&&ce===is&&(b=!0),re!==null&&le===is&&(x=!0),(b||x)&&(le=null,b&&(le=y.getLinkPointFromPoint(E,te,te.ga(wo),y.i(3),!0),le.w()||le.set(E.actualBounds.center),y.L(0,le.x,le.y)),E=null,x&&(E=y.getLinkPointFromPoint(z,re,re.ga(wo),y.i(0),!1),E.w()||E.set(z.actualBounds.center),y.L(3,E.x,E.y)),le&&(z=y.i(2),y.L(1,(2*le.x+z.x)/3,(2*le.y+z.y)/3)),E&&(z=y.i(1),y.L(2,(2*E.x+z.x)/3,(2*E.y+z.y)/3))))),y.zf();else if(de.layer===ve.layer)y.zf();else{var Pe=!1,Le=!1,Fe=this.ie,Ze=y.firstPickIndex+1;if(y.isOrthogonal){Le=!0;var pt=y.pointsCount;4<pt&&y.points.removeRange(2,pt-3)}else if(y.curve===wc)Pe=!0,pt=y.pointsCount,4<pt&&y.points.removeRange(2,pt-3),pt===4&&(Ze=2);else{pt=y.pointsCount;var at=ce===is,Ct=le===is;2<pt&&at&&Ct?y.points.removeRange(1,pt-2):3<pt&&at&&!Ct?y.points.removeRange(1,pt-3):3<pt&&!at&&Ct?y.points.removeRange(2,pt-2):4<pt&&!at&&!Ct&&y.points.removeRange(2,pt-3)}if(x.rev){for(;ve!==null&&de!==ve;){var Lt=pt=null;for(at=ve.sourceEdges.iterator;at.next()&&(Ct=at.value,Ct.link!==x.link||(pt=Ct.fromVertex,Lt=Ct.toVertex,pt.node!==null)););if(pt===null)break;if(pt!==de){at=y.i(Ze-1).x,Ct=y.i(Ze-1).y;var Dt=pt.centerX,Kt=pt.centerY;if(Le)this.K===180||this.K===0?Ze===y.firstPickIndex+1?(y.m(Ze++,at,Ct),y.m(Ze++,at,Kt)):(Lt!==null?Lt.centerY:Ct)!==Kt&&(Lt=this.Ta[pt.layer-1]+this.Rf.x,y.m(Ze++,Lt,Ct),y.m(Ze++,Lt,Kt)):Ze===y.firstPickIndex+1?(y.m(Ze++,at,Ct),y.m(Ze++,Dt,Ct)):(Lt!==null?Lt.centerX:at)!==Dt&&(Lt=this.Ta[pt.layer-1]+this.Rf.y,y.m(Ze++,at,Lt),y.m(Ze++,Dt,Lt));else if(Ze===y.firstPickIndex+1){Lt=Math.max(10,this.he[ve.layer]);var vn=Math.max(10,this.Ld[ve.layer]);if(Pe)this.K===180?Dt<=ve.bounds.x?(ve=ve.bounds.x,y.m(Ze++,ve-Lt,Kt),y.m(Ze++,ve,Kt),y.m(Ze++,ve+vn,Kt)):(y.m(Ze++,Dt-Lt,Kt),y.m(Ze++,Dt,Kt),y.m(Ze++,Dt+vn,Kt)):this.K===90?Kt>=ve.bounds.bottom?(ve=ve.bounds.y+ve.bounds.height,y.m(Ze++,Dt,ve+vn),y.m(Ze++,Dt,ve),y.m(Ze++,Dt,ve-Lt)):(y.m(Ze++,Dt,Kt+vn),y.m(Ze++,Dt,Kt),y.m(Ze++,Dt,Kt-Lt)):this.K===270?Kt<=ve.bounds.y?(ve=ve.bounds.y,y.m(Ze++,Dt,ve-Lt),y.m(Ze++,Dt,ve),y.m(Ze++,Dt,ve+vn)):(y.m(Ze++,Dt,Kt-Lt),y.m(Ze++,Dt,Kt),y.m(Ze++,Dt,Kt+vn)):this.K===0&&(Dt>=ve.bounds.right?(ve=ve.bounds.x+ve.bounds.width,y.m(Ze++,ve+vn,Kt),y.m(Ze++,ve,Kt),y.m(Ze++,ve-Lt,Kt)):(y.m(Ze++,Dt+vn,Kt),y.m(Ze++,Dt,Kt),y.m(Ze++,Dt-Lt,Kt)));else{y.m(Ze++,at,Ct);var Pi=0;this.K===180||this.K===0?((this.K===180?Dt>=ve.bounds.right:Dt<=ve.bounds.x)&&(Pi=(this.K===0?-Lt:vn)/2),y.m(Ze++,at+Pi,Kt)):((this.K===270?Kt>=ve.bounds.bottom:Kt<=ve.bounds.y)&&(Pi=(this.K===90?-Lt:vn)/2),y.m(Ze++,Dt,Ct+Pi)),y.m(Ze++,Dt,Kt)}}else Lt=Math.max(10,this.he[pt.layer]),vn=Math.max(10,this.Ld[pt.layer]),Pe?this.K===180?(y.m(Ze++,Dt-Lt-Fe,Kt),y.m(Ze++,Math.min(Dt-Lt+Fe/2,Dt),Kt),y.m(Ze++,Dt,Kt),y.m(Ze++,Dt,Kt),y.m(Ze++,Math.max(Dt+vn-Fe/2,Dt),Kt),y.m(Ze++,Dt+vn+Fe,Kt)):this.K===90?(y.m(Ze++,Dt,Kt+vn+Fe),y.m(Ze++,Dt,Math.max(Kt+vn-Fe/2,Kt)),y.m(Ze++,Dt,Kt),y.m(Ze++,Dt,Kt),y.m(Ze++,Dt,Math.min(Kt-Lt+Fe/2,Kt)),y.m(Ze++,Dt,Kt-Lt-Fe)):this.K===270?(y.m(Ze++,Dt,Kt-Lt-Fe),y.m(Ze++,Dt,Math.min(Kt-Lt+Fe/2,Kt)),y.m(Ze++,Dt,Kt),y.m(Ze++,Dt,Kt),y.m(Ze++,Dt,Math.max(Kt+vn-Fe/2,Kt)),y.m(Ze++,Dt,Kt+vn+Fe)):(y.m(Ze++,Dt+vn+Fe,Kt),y.m(Ze++,Math.max(Dt+vn-Fe/2,Dt),Kt),y.m(Ze++,Dt,Kt),y.m(Ze++,Dt,Kt),y.m(Ze++,Math.min(Dt-Lt+Fe/2,Dt),Kt),y.m(Ze++,Dt-Lt-Fe,Kt)):y.m(Ze++,Dt,Kt)}ve=pt}(re===null||ce!==is||Le)&&(at=y.i(Ze-1).x,Ct=y.i(Ze-1).y,Dt=y.i(Ze).x,Kt=y.i(Ze).y,Le?(Fe=this.Ld[de.layer],this.K===180||this.K===0?(Le=Ct,Le>=de.bounds.y&&Le<=de.bounds.bottom&&(this.K===180?Dt>=de.bounds.x:Dt<=de.bounds.right)&&(ve=de.centerX+(this.K===180?-Fe:Fe),Le<de.bounds.y+de.bounds.height/2?Le=de.bounds.y-this.kc/2:Le=de.bounds.bottom+this.kc/2,y.m(Ze++,ve,Ct),y.m(Ze++,ve,Le)),y.m(Ze++,Dt,Le)):(Le=at,Le>=de.bounds.x&&Le<=de.bounds.right&&(this.K===270?Kt>=de.bounds.y:Kt<=de.bounds.bottom)&&(ve=de.centerY+(this.K===270?-Fe:Fe),Le<de.bounds.x+de.bounds.width/2?Le=de.bounds.x-this.kc/2:Le=de.bounds.right+this.kc/2,y.m(Ze++,at,ve),y.m(Ze++,Le,ve)),y.m(Ze++,Le,Kt)),y.m(Ze++,Dt,Kt)):Pe?(Lt=Math.max(10,this.he[de.layer]),vn=Math.max(10,this.Ld[de.layer]),this.K===180&&Dt>=de.bounds.x?(ve=de.bounds.x+de.bounds.width,y.L(Ze-2,ve,Ct),y.L(Ze-1,ve+vn,Ct)):this.K===90&&Kt<=de.bounds.bottom?(ve=de.bounds.y,y.L(Ze-2,at,ve),y.L(Ze-1,at,ve-Lt)):this.K===270&&Kt>=de.bounds.y?(ve=de.bounds.y+de.bounds.height,y.L(Ze-2,at,ve),y.L(Ze-1,at,ve+vn)):this.K===0&&Dt<=de.bounds.right&&(ve=de.bounds.x,y.L(Ze-2,ve,Ct),y.L(Ze-1,ve-Lt,Ct))):(Lt=Math.max(10,this.he[de.layer]),vn=Math.max(10,this.Ld[de.layer]),Le=0,this.K===180||this.K===0?((this.K===180?Dt<=de.bounds.x:Dt>=de.bounds.right)&&(Le=(this.K===0?vn:-Lt)/2),y.m(Ze++,Dt+Le,Ct)):((this.K===270?Kt<=de.bounds.y:Kt>=de.bounds.bottom)&&(Le=(this.K===90?vn:-Lt)/2),y.m(Ze++,at,Kt+Le)),y.m(Ze++,Dt,Kt)))}else{for(;de!==null&&de!==ve;){for(Lt=pt=null,de=de.destinationEdges.iterator;de.next()&&(at=de.value,at.link!==x.link||(pt=at.toVertex,Lt=at.fromVertex,Lt.node!==null&&(Lt=null),pt.node!==null)););if(pt===null)break;pt!==ve&&(at=y.i(Ze-1).x,Ct=y.i(Ze-1).y,Dt=pt.centerX,Kt=pt.centerY,Le?this.K===180||this.K===0?(Lt!==null?Lt.centerY:Ct)!==Kt&&(Lt=this.Ta[pt.layer]+this.Rf.x,Ze===y.firstPickIndex+1&&(Lt=this.K===0?Math.max(Lt,at):Math.min(Lt,at)),y.m(Ze++,Lt,Ct),y.m(Ze++,Lt,Kt)):(Lt!==null?Lt.centerX:at)!==Dt&&(Lt=this.Ta[pt.layer]+this.Rf.y,Ze===y.firstPickIndex+1&&(Lt=this.K===90?Math.max(Lt,Ct):Math.min(Lt,Ct)),y.m(Ze++,at,Lt),y.m(Ze++,Dt,Lt)):(Lt=Math.max(10,this.he[pt.layer]),vn=Math.max(10,this.Ld[pt.layer]),Pe?this.K===180?(y.m(Ze++,Dt+vn+Fe,Kt),y.m(Ze++,Math.max(Dt+vn-Fe/2,Dt),Kt),y.m(Ze++,Dt,Kt),y.m(Ze++,Dt,Kt),y.m(Ze++,Math.min(Dt-Lt+Fe/2,Dt),Kt),y.m(Ze++,Dt-Lt-Fe,Kt)):this.K===90?(y.m(Ze++,Dt,Kt-Lt-Fe),y.m(Ze++,Dt,Math.min(Kt-Lt+Fe/2,Kt)),y.m(Ze++,Dt,Kt),y.m(Ze++,Dt,Kt),y.m(Ze++,Dt,Math.max(Kt+vn-Fe/2,Kt)),y.m(Ze++,Dt,Kt+vn+Fe)):this.K===270?(y.m(Ze++,Dt,Kt+vn+Fe),y.m(Ze++,Dt,Math.max(Kt+vn-Fe/2,Kt)),y.m(Ze++,Dt,Kt),y.m(Ze++,Dt,Kt),y.m(Ze++,Dt,Math.min(Kt-Lt+Fe/2,Kt)),y.m(Ze++,Dt,Kt-Lt-Fe)):(y.m(Ze++,Dt-Lt-Fe,Kt),y.m(Ze++,Math.min(Dt-Lt+Fe/2,Dt),Kt),y.m(Ze++,Dt,Kt),y.m(Ze++,Dt,Kt),y.m(Ze++,Math.max(Dt+vn-Fe/2,Dt),Kt),y.m(Ze++,Dt+vn+Fe,Kt)):this.K===180?(y.m(Ze++,Dt+vn,Kt),y.m(Ze++,Dt-Lt,Kt)):this.K===90?(y.m(Ze++,Dt,Kt-Lt),y.m(Ze++,Dt,Kt+vn)):this.K===270?(y.m(Ze++,Dt,Kt+vn),y.m(Ze++,Dt,Kt-Lt)):(y.m(Ze++,Dt-Lt,Kt),y.m(Ze++,Dt+vn,Kt)))),de=pt}Le&&(at=y.i(Ze-1).x,Ct=y.i(Ze-1).y,Dt=y.i(Ze).x,Kt=y.i(Ze).y,this.K===180||this.K===0?Ct!==Kt&&(Lt=this.K===0?Math.min(Math.max((Dt+at)/2,this.Ta[ve.layer]+this.Rf.x),Dt):Math.max(Math.min((Dt+at)/2,this.Ta[ve.layer]+this.Rf.x),Dt),y.m(Ze++,Lt,Ct),y.m(Ze++,Lt,Kt)):at!==Dt&&(Lt=this.K===90?Math.min(Math.max((Kt+Ct)/2,this.Ta[ve.layer]+this.Rf.y),Kt):Math.max(Math.min((Kt+Ct)/2,this.Ta[ve.layer]+this.Rf.y),Kt),y.m(Ze++,at,Lt),y.m(Ze++,Dt,Lt)))}b!==null&&Pe&&4<=y.pointsCount&&(te!==null&&(te=ce===is?y.getLinkPointFromPoint(E,te,te.ga(wo),y.i(3),!0):y.i(0),ce===is&&(ce=y.i(2),b=y.i(3),this.direction===90||this.direction===270?(y.L(1,(te.x+ce.x)/2,ce.y),y.L(2,b.x,(ce.y+b.y)/2)):(y.L(1,ce.x,(te.y+ce.y)/2),y.L(2,(ce.x+b.x)/2,b.y))),te.w()||te.set(E.actualBounds.center),y.L(0,te.x,te.y)),re!==null&&(E=le===is?y.getLinkPointFromPoint(z,re,re.ga(wo),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),le===is&&(re=y.i(y.pointsCount-3),le=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(E.x+re.x)/2,re.y),y.L(y.pointsCount-2,le.x,(re.y+le.y)/2)):(y.L(y.pointsCount-2,re.x,(E.y+re.y)/2),y.L(y.pointsCount-3,(re.x+le.x)/2,le.y))),E.w()||E.set(z.actualBounds.center),y.L(y.pointsCount-1,E.x,E.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},ia.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new Ht,y=this.network.edges.iterator;y.next();){var x=y.value.link;x!==null&&x.isOrthogonal&&!a.contains(x)&&a.add(x)}if(0<a.count)if(this.K===90||this.K===270){for(y=0,x=[],a=a.iterator;a.next();){var b=a.value;if(b!==null&&b.isOrthogonal)for(var E=2;E<b.pointsCount-3;E++){var z=b.i(E),te=b.i(E+1);if(this.B(z.y,te.y)&&!this.B(z.x,te.x)){var re=new Cg;re.layer=Math.floor(z.y/2);var le=b.i(0),ce=b.i(b.pointsCount-1);if(re.first=le.x*le.x+le.y,re.jc=ce.x*ce.x+ce.y,re.rd=Math.min(z.x,te.x),re.Ic=Math.max(z.x,te.x),re.index=E,re.link=b,E+2<b.pointsCount){le=b.i(E-1),ce=b.i(E+2);var de=0;le.y<z.y?de=ce.y<z.y?3:z.x<te.x?2:1:le.y>z.y&&(de=ce.y>z.y?0:te.x<z.x?2:1),re.j=de}x.push(re)}}}if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,b=a+1;b<x.length&&x[b].layer===z;)b++;if(1<b-a)for(z=a;z<b;){for(te=x[z].Ic,E=a+1;E<b&&x[E].rd<te;)te=Math.max(te,x[E].Ic),E++;if(te=E-z,1<te){for(this.zi(x,this.Js,z,z+te),de=1,re=x[z].jc,le=z;le<E;le++)ce=x[le],ce.jc!==re&&(de++,re=ce.jc);this.zi(x,this.Ux,z,z+te);var ve=1;for(re=x[z].first,le=z;le<E;le++)ce=x[le],ce.first!==re&&(ve++,re=ce.first);for(le=!0,ce=ve,de<ve?(le=!1,ce=de,re=x[z].jc,this.zi(x,this.Js,z,z+te)):re=x[z].first,de=0,ve=z;ve<E;ve++){var Pe=x[ve];(le?Pe.first:Pe.jc)!==re&&(de++,re=le?Pe.first:Pe.jc);var Le=Pe.link;z=Le.i(Pe.index),te=Le.i(Pe.index+1);var Fe=this.linkSpacing*(de-(ce-1)/2);y++,Le.uh(),Le.L(Pe.index,z.x,z.y+Fe),Le.L(Pe.index+1,te.x,te.y+Fe),Le.zf()}}z=E}a=b}}else{for(y=0,x=[],a=a.iterator;a.next();)if(b=a.value,b!==null&&b.isOrthogonal)for(E=2;E<b.pointsCount-3;E++)z=b.i(E),te=b.i(E+1),this.B(z.x,te.x)&&!this.B(z.y,te.y)&&(re=new Cg,re.layer=Math.floor(z.x/2),le=b.i(0),ce=b.i(b.pointsCount-1),re.first=le.x+le.y*le.y,re.jc=ce.x+ce.y*ce.y,re.rd=Math.min(z.y,te.y),re.Ic=Math.max(z.y,te.y),re.index=E,re.link=b,E+2<b.pointsCount&&(le=b.i(E-1),ce=b.i(E+2),de=0,le.x<z.x?de=ce.x<z.x?3:z.y<te.y?2:1:le.x>z.x&&(de=ce.x>z.x?0:te.y<z.y?2:1),re.j=de),x.push(re));if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,b=a+1;b<x.length&&x[b].layer===z;)b++;if(1<b-a)for(z=a;z<b;){for(te=x[z].Ic,E=a+1;E<b&&x[E].rd<te;)te=Math.max(te,x[E].Ic),E++;if(te=E-z,1<te){for(this.zi(x,this.Js,z,z+te),de=1,re=x[z].jc,le=z;le<E;le++)ce=x[le],ce.jc!==re&&(de++,re=ce.jc);for(this.zi(x,this.Ux,z,z+te),ve=1,re=x[z].first,le=z;le<E;le++)ce=x[le],ce.first!==re&&(ve++,re=ce.first);for(le=!0,ce=ve,de<ve?(le=!1,ce=de,re=x[z].jc,this.zi(x,this.Js,z,z+te)):re=x[z].first,de=0,ve=z;ve<E;ve++)Pe=x[ve],(le?Pe.first:Pe.jc)!==re&&(de++,re=le?Pe.first:Pe.jc),Le=Pe.link,z=Le.i(Pe.index),te=Le.i(Pe.index+1),Fe=this.linkSpacing*(de-(ce-1)/2),y++,Le.uh(),Le.L(Pe.index,z.x+Fe,z.y),Le.L(Pe.index+1,te.x+Fe,te.y),Le.zf()}z=E}a=b}}}},Ue=ia.prototype,Ue.Vx=function(a,y){return a instanceof Cg&&y instanceof Cg&&a!==y?a.layer<y.layer?-1:a.layer>y.layer?1:a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},Ue.Ux=function(a,y){return a instanceof Cg&&y instanceof Cg&&a!==y?a.first<y.first?-1:a.first>y.first||a.j<y.j?1:a.j>y.j||a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},Ue.Js=function(a,y){return a instanceof Cg&&y instanceof Cg&&a!==y?a.jc<y.jc?-1:a.jc>y.jc||a.j<y.j?1:a.j>y.j||a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},Ue.B=function(a,y){return a-=y,-1<a&&1>a},Ue.zi=function(a,y,x,b){var E=a.length,z=b-x;if(!(1>=z))if((0>x||x>=E-1)&&bt("not in range 0 <= from < length: "+x),z===2)b=a[x],E=a[x+1],0<y(b,E)&&(a[x]=E,a[x+1]=b);else if(x===0)if(b>=E)a.sort(y);else for(x=a.slice(0,b),x.sort(y),y=0;y<b;y++)a[y]=x[y];else if(b>=E)for(b=a.slice(x),b.sort(y),y=x;y<E;y++)a[y]=b[y-x];else for(E=a.slice(x,b),E.sort(y),y=x;y<b;y++)a[y]=E[y-x]};function wg(a,y){var x=a.tc[y];if(x>=a.He.length){for(var b=[],E=0;E<a.He.length;E++)b[E]=a.He[E];a.He=b}for(a.He[x]===void 0||a.He[x]===null?b=[]:(b=a.He[x],a.He[x]=null),a=a.fl[y],y=0;y<a.length;y++)x=a[y],b[x.index]=x;return b}function Eg(a,y,x){a.He[a.tc[y]]=x}Nt.Object.defineProperties(ia.prototype,{layerSpacing:{get:function(){return this.ie},set:function(a){this.ie!==a&&0<=a&&(this.ie=a,this.C())}},columnSpacing:{get:function(){return this.kc},set:function(a){this.kc!==a&&0<a&&(this.kc=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K!==a&&(a===0||a===90||a===180||a===270?(this.K=a,this.C()):bt("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==Ty&&a!==W0&&a!==fm||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==Z0&&a!==Iy&&a!==ky||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==V0&&a!==Dy&&a!==Oy||(this.Qk=a,this.C())}},iterations:{get:function(){return this.bj},set:function(a){this.bj!==a&&0<=a&&(this.bj=a,this.C())}},aggressiveOption:{get:function(){return this.rk},set:function(a){this.rk===a||a!==Ry&&a!==K0&&a!==Fy||(this.rk=a,this.C())}},packOption:{get:function(){return this.bg},set:function(a){this.bg!==a&&0<=a&&8>a&&(this.bg=a,this.C())}},alignOption:{get:function(){return this.ve},set:function(a){this.ve!==a&&0<=a&&16>a&&(this.ve=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},linkSpacing:{get:function(){return this.Cn},set:function(a){this.Cn!==a&&0<=a&&(this.Cn=a,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 W0=new tn(ia,"CycleDepthFirst",0),Ty=new tn(ia,"CycleGreedy",1),fm=new tn(ia,"CycleFromLayers",2),Z0=new tn(ia,"LayerOptimalLinkLength",0),Iy=new tn(ia,"LayerLongestPathSink",1),ky=new tn(ia,"LayerLongestPathSource",2),V0=new tn(ia,"InitDepthFirstOut",0),Dy=new tn(ia,"InitDepthFirstIn",1),Oy=new tn(ia,"InitNaive",2),Ry=new tn(ia,"AggressiveNone",0),K0=new tn(ia,"AggressiveLess",1),Fy=new tn(ia,"AggressiveMore",2),Nb=8;ia.className="LayeredDigraphLayout",ia.CycleDepthFirst=W0,ia.CycleGreedy=Ty,ia.CycleFromLayers=fm,ia.LayerOptimalLinkLength=Z0,ia.LayerLongestPathSink=Iy,ia.LayerLongestPathSource=ky,ia.InitDepthFirstOut=V0,ia.InitDepthFirstIn=Dy,ia.InitNaive=Oy,ia.AggressiveNone=Ry,ia.AggressiveLess=K0,ia.AggressiveMore=Fy,ia.PackNone=0,ia.PackExpand=1,ia.PackStraighten=2,ia.PackMedian=4,ia.PackAll=15,ia.AlignNone=0,ia.AlignUpperLeft=1,ia.AlignUpperRight=2,ia.AlignLowerLeft=4,ia.AlignLowerRight=8,ia.AlignAll=15;function Cg(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}Cg.className="SegInfo";function pp(a){Aa.call(this,a)}qt(pp,Aa),pp.prototype.createVertex=function(){return new jc(this)},pp.prototype.createEdge=function(){return new pm(this)},pp.className="LayeredDigraphNetwork";function jc(a){il.call(this,a),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}qt(jc,il);function s1(a,y){return a.index-y.index}function Y0(a,y){if(!a.$n){for(var x=[],b=pr(a.destinationEdgesArrayAccess),E=b.next();!E.done;E=b.next())E=E.value,E.valid&&x.push(E);a.$n=x}for(a=pr(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;bt("Unable to find destination edge to given vertex")}function By(a){if(!a.co){for(var y=[],x=pr(a.sourceEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.fromVertex);y.sort(s1),a.co=y}return a.co}function Mb(a){if(!a.ao){for(var y=[],x=pr(a.destinationEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.toVertex);y.sort(s1),a.ao=y}return a.ao}jc.prototype.Cl=function(a){il.prototype.Cl.call(this,a),this.bo=this.co=null},jc.prototype.Kl=function(a){il.prototype.Kl.call(this,a),this.bo=this.co=null},jc.prototype.zl=function(a){il.prototype.zl.call(this,a),this.$n=this.ao=null},jc.prototype.Jl=function(a){il.prototype.Jl.call(this,a),this.$n=this.ao=null},Nt.Object.defineProperties(jc.prototype,{layer:{get:function(){return this.Ig},set:function(a){this.Ig!==a&&(this.Ig=a)}},column:{get:function(){return this.Ag},set:function(a){this.Ag!==a&&(this.Ag=a)}},index:{get:function(){return this.Za},set:function(a){this.Za!==a&&(this.Za=a)}},component:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},near:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),jc.prototype.deleteDestinationEdge=jc.prototype.Jl,jc.prototype.addDestinationEdge=jc.prototype.zl,jc.prototype.deleteSourceEdge=jc.prototype.Kl,jc.prototype.addSourceEdge=jc.prototype.Cl,jc.className="LayeredDigraphVertex";function pm(a){fc.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}qt(pm,fc),Nt.Object.defineProperties(pm.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},valid:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},rev:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},forest:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}},portFromPos:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},portToPos:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},portFromColOffset:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},portToColOffset:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),pm.className="LayeredDigraphEdge";function vo(a){Wa.call(this),this.Ub=new Fn,this.Wn=J0,this.ud=qd,this.vo=ev,this.Bq=Yy,this.$v=[],this.td=!0,this.Rb=tv,this.$d=new fi(10,10).freeze();var y=new Tf(this);this.W=new Yc(y),this.Y=new Yc(y),this.ru=[],a&&Object.assign(this,a)}qt(vo,Wa),vo.prototype.cloneProtected=function(a){Wa.prototype.cloneProtected.call(this,a),a.Wn=this.Wn,a.vo=this.vo,a.Bq=this.Bq,a.td=this.td,a.Rb=this.Rb,a.$d.assign(this.$d),a.W.copyInheritedPropertiesFrom(this.W),a.Y.copyInheritedPropertiesFrom(this.Y)},vo.prototype.qb=function(a){a.classType===vo?a.name.indexOf("Alignment")===0?this.alignment=a:a.name.indexOf("Arrangement")===0?this.arrangement=a:a.name.indexOf("Compaction")===0?this.compaction=a:a.name.indexOf("Path")===0?this.path=a:a.name.indexOf("Sorting")===0?this.sorting=a:a.name.indexOf("Style")===0?this.treeStyle=a:bt("Unknown enum value: "+a):Wa.prototype.qb.call(this,a)},vo.prototype.createNetwork=function(){return new Tf(this)},vo.prototype.makeNetwork=function(a){function y(b){if(b instanceof Li)return!b.isLinkLabel&&b.category!=="Comment";if(b instanceof yi){var E=b.fromNode;return E===null||E.isLinkLabel||E.category==="Comment"?!1:(b=b.toNode,!(b===null||b.isLinkLabel||b.category==="Comment"))}return!1}var x=this.createNetwork();return a instanceof pn?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof _r?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},vo.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==nv&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof pn&&(y=a),this.path===J0&&y!==null?this.ud=y.isTreePathToChildren?qd:Mf:this.ud=this.path===J0?qd:this.path,0<this.network.vertexes.count){for(this.network.Ko(),a=this.network.vertexes.iterator;a.next();)y=a.value,y.initialized=!1,y.level=0,y.parent=null,y.children=[];if(0<this.Ub.count){for(a=new Fn,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof Li?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof Yc&&a.add(x)}this.Ub=a}for(this.Ub.count===0&&this.findRoots(),a=this.Ub.copy().iterator;a.next();)y=a.value,y.initialized||(y.initialized=!0,jy(this,y));for(y=this.network.vertexes,a=null;a=Lb(y),0<a.count;)y=l1(this,a),y!==null&&this.Ub.add(y),y.initialized=!0,jy(this,y),y=a;for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Yc&&c1(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Yc&&d1(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Yc&&h1(this,y);if(this.Cu(),this.layerStyle===iv){for(a=[],y=this.network.vertexes.iterator;y.next();){x=y.value;var b=x.parent;b===null&&(b=x),b=b.angle===0||b.angle===180;var E=a[x.level];E===void 0&&(E=0),a[x.level]=Math.max(E,b?x.width:x.height)}for(y=0;y<a.length;y++)a[y]===void 0&&(a[y]=0);for(this.$v=a,y=this.network.vertexes.iterator;y.next();)x=y.value,b=x.parent,b===null&&(b=x),b.angle===0||b.angle===180?(b.angle===180&&(x.focusX+=a[x.level]-x.width),x.width=a[x.level]):(b.angle===270&&(x.focusY+=a[x.level]-x.height),x.height=a[x.level])}else if(this.layerStyle===$y)for(a=this.network.vertexes.iterator;a.next();){for(y=a.value,x=y.angle===0||y.angle===180,b=-1,E=0;E<y.children.length;E++){var z=y.children[E];b=Math.max(b,x?z.width:z.height)}if(0<=b)for(E=0;E<y.children.length;E++)z=y.children[E],x?(y.angle===180&&(z.focusX+=b-z.width),z.width=b):(y.angle===270&&(z.focusY+=b-z.height),z.height=b)}for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Yc&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new Fn,this.isValidLayout=!0};function Lb(a){var y=new Fn;for(a=a.iterator;a.next();){var x=a.value;x.initialized||y.add(x)}return y}vo.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var x=y.value;switch(this.ud){case qd:x.sourceEdges.count===0&&this.Ub.add(x);break;case Mf:x.destinationEdges.count===0&&this.Ub.add(x);break;default:bt("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(a=l1(this,a),a!==null&&this.Ub.add(a))};function l1(a,y){var x=999999,b=null;for(y=y.iterator;y.next();){var E=y.value;switch(a.ud){case qd:E.sourceEdges.count<x&&(x=E.sourceEdges.count,b=E);break;case Mf:E.destinationEdges.count<x&&(x=E.destinationEdges.count,b=E);break;default:bt("Unhandled path value "+a.ud.toString())}}return b}function jy(a,y){if(y!==null){switch(a.ud){case qd:if(0<y.destinationEdges.count){for(var x=new Ht,b=y.destinationVertexes;b.next();){var E=b.value;u1(a,y,E)&&x.add(E)}0<x.count&&(y.children=x.Fa())}break;case Mf:if(0<y.sourceEdges.count){for(x=new Ht,b=y.sourceVertexes;b.next();)E=b.value,u1(a,y,E)&&x.add(E);0<x.count&&(y.children=x.Fa())}break;default:bt("Unhandled path value"+a.ud.toString())}for(x=y.children,b=x.length,E=0;E<b;E++){var z=x[E];z.initialized=!0,z.level=y.level+1,z.parent=y,a.Ub.remove(z)}for(y=0;y<b;y++)jy(a,x[y])}}function u1(a,y,x){if(x.initialized){if(y===null)var b=!1;else{for(b=y.parent;b!==null&&b!==x;)b=b.parent;b=b===x}if(b||x.level>y.level)return!1;a.removeChild(x.parent,x)}return!0}vo.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var x=a.children,b=0,E=0;E<x.length;E++)x[E]===y&&b++;if(0<b){b=Array(x.length-b);for(var z=E=0;z<x.length;z++)x[z]!==y&&(b[E++]=x[z]);a.children=b}}};function c1(a,y){if(y!==null){a.initializeTreeVertexValues(y),y.alignment===nh&&a.sortTreeVertexChildren(y);for(var x=0,b=y.childrenCount,E=0,z=y.children,te=z.length,re=0;re<te;re++){var le=z[re];c1(a,le),x+=le.descendantCount+1,b=Math.max(b,le.maxChildrenCount),E=Math.max(E,le.maxGenerationCount)}y.descendantCount=x,y.maxChildrenCount=b,y.maxGenerationCount=0<b?E+1:0}}function Tb(a,y){switch(a.vo){default:case ev:return y.parent!==null?y.parent:a.W;case Vy:return y.parent===null?a.W:y.parent.parent===null?a.Y:y.parent;case Zy:return y.parent!==null?y.parent.parent!==null?y.parent.parent:a.Y:a.W;case Wy:var x=!0;if(y.childrenCount===0)x=!1;else for(var b=y.children,E=b.length,z=0;z<E;z++)if(0<b[z].childrenCount){x=!1;break}return x&&y.parent!==null?a.Y:y.parent!==null?y.parent:a.W}}vo.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(Tb(this,a)),a.parent!==null&&a.parent.alignment===nh){for(var y=a.angle,x=a.parent.children,b=0;b<x.length&&a!==x[b];)b++;b%2===0?b!==x.length-1&&(y=y===90?180:y===180?270:y===270?180:270):y=y===90?0:y===180?90:y===270?0:90,a.angle=y}a.initialized=!0};function d1(a,y){if(y!==null){a.assignTreeVertexValues(y),y=y.children;for(var x=y.length,b=0;b<x;b++)d1(a,y[b])}}vo.prototype.assignTreeVertexValues=function(){};function h1(a,y){if(y!==null){y.alignment!==nh&&a.sortTreeVertexChildren(y),y=y.children;for(var x=y.length,b=0;b<x;b++)h1(a,y[b])}}vo.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case mp:break;case vm:a.children.reverse();break;case ym:a.children.sort(a.comparer);break;case Sm:a.children.sort(a.comparer),a.children.reverse();break;default:bt("Unhandled sorting value "+a.sorting.toString())}},vo.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},vo.prototype.addComments=function(a){var y=a.angle,x=a.parent,b=0,E=!1;x!==null&&(b=x.angle,E=x.alignment,E=Pg(E)),y=y===90||y===270,b=b===90||b===270,x=a.childrenCount===0;var z=0,te=0,re=0,le=a.commentSpacing;if(a.node!==null)for(var ce=a.node.Mu();ce.next();){var de=ce.value;de.category==="Comment"&&de.canLayout()&&(a.comments===null&&(a.comments=[]),a.comments.push(de),de.Va(),de=de.measuredBounds,y&&!x||!E&&!b&&x||E&&b&&x?(z=Math.max(z,de.width),te+=de.height+Math.abs(re)):(z+=de.width+Math.abs(re),te=Math.max(te,de.height)),re=le)}a.comments!==null&&(y&&!x||!E&&!b&&x||E&&b&&x?(z+=Math.abs(a.commentMargin),te=Math.max(0,te-a.height)):(te+=Math.abs(a.commentMargin),z=Math.max(0,z-a.width)),E=jn.allocAt(0,0,a.bounds.width+z,a.bounds.height+te),a.bounds=E,jn.free(E))};function Pg(a){return a===Kh||a===nh||a===Yh||a===bh}function mm(a){return a===Kh||a===nh}function zy(a){var y=a.parent;if(y!==null){var x=y.alignment;if(Pg(x)){if(mm(x)){for(y=y.children,x=0;x<y.length&&a!==y[x];)x++;return x%2===0}if(x===Yh)return!0}}return!1}vo.prototype.layoutComments=function(a){if(a.comments!==null){var y=a.node.measuredBounds,x=a.parent,b=a.angle,E=0,z=!1;x!==null&&(E=x.angle,z=x.alignment,z=Pg(z)),b=b===90||b===270,x=E===90||E===270;for(var te=a.childrenCount===0,re=zy(a),le=0,ce=a.comments,de=ce.length,ve=lt.alloc(),Pe=0;Pe<de;Pe++){var Le=ce[Pe],Fe=Le.measuredBounds;if(b&&!te||!z&&!x&&te||z&&x&&te){if(135<E&&!z||x&&re)if(0<=a.commentMargin)for(ve.h(a.bounds.x-a.commentMargin-Fe.width,a.bounds.y+le),Le.move(ve),Le=Le.Sd();Le.next();){var Ze=Le.value;Ze.fromSpot=Ia,Ze.toSpot=Ho}else for(ve.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+le),Le.move(ve),Le=Le.Sd();Le.next();)Ze=Le.value,Ze.fromSpot=Ho,Ze.toSpot=Ia;else if(0<=a.commentMargin)for(ve.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+le),Le.move(ve),Le=Le.Sd();Le.next();)Ze=Le.value,Ze.fromSpot=Ho,Ze.toSpot=Ia;else for(ve.h(a.bounds.x+a.commentMargin-Fe.width,a.bounds.y+le),Le.move(ve),Le=Le.Sd();Le.next();)Ze=Le.value,Ze.fromSpot=Ia,Ze.toSpot=Ho;le=0<=a.commentSpacing?le+(Fe.height+a.commentSpacing):le+(a.commentSpacing-Fe.height)}else{if(135<E&&!z||!x&&re)if(0<=a.commentMargin)for(ve.h(a.bounds.x+le,a.bounds.y-a.commentMargin-Fe.height),Le.move(ve),Le=Le.Sd();Le.next();)Ze=Le.value,Ze.fromSpot=Na,Ze.toSpot=Bo;else for(ve.h(a.bounds.x+le,a.bounds.y+2*a.focus.y-a.commentMargin),Le.move(ve),Le=Le.Sd();Le.next();)Ze=Le.value,Ze.fromSpot=Bo,Ze.toSpot=Na;else if(0<=a.commentMargin)for(ve.h(a.bounds.x+le,a.bounds.y+2*a.focus.y+a.commentMargin),Le.move(ve),Le=Le.Sd();Le.next();)Ze=Le.value,Ze.fromSpot=Bo,Ze.toSpot=Na;else for(ve.h(a.bounds.x+le,a.bounds.y+a.commentMargin-Fe.height),Le.move(ve),Le=Le.Sd();Le.next();)Ze=Le.value,Ze.fromSpot=Na,Ze.toSpot=Bo;le=0<=a.commentSpacing?le+(Fe.width+a.commentSpacing):le+(a.commentSpacing-Fe.width)}}if(lt.free(ve),y=le-a.commentSpacing-(b?y.height:y.width),this.ud===qd)for(a=a.destinationEdges;a.next();)E=a.value.link,E===null||E.isAvoiding||(E.fromEndSegmentLength=0<y?y:NaN);else for(a=a.sourceEdges;a.next();)E=a.value.link,E===null||E.isAvoiding||(E.toEndSegmentLength=0<y?y:NaN)}},vo.prototype.layoutTree=function(a){if(a!==null){for(var y=a.children,x=y.length,b=0;b<x;b++)this.layoutTree(y[b]);switch(a.compaction){case q0:g1(this,a);break;case xm:if(a.alignment===nh)g1(this,a);else if(a.childrenCount===0)b=a.parent,x=!1,y=0,b!==null&&(y=b.angle,x=b.alignment,x=Pg(x)),b=zy(a),a.S.h(0,0),a.Da.h(a.width,a.height),a.parent===null||a.comments===null||(y!==180&&y!==270||x)&&!b?a.la.h(0,0):y===180&&!x||(y===90||y===270)&&b?a.la.h(a.width-2*a.focus.x,0):a.la.h(0,a.height-2*a.focus.y),a.Yo=null,a.kp=null;else{var E=gd(a);y=E===90||E===270;var z=0,te=a.children,re=te.length;for(x=0;x<re;x++)b=te[x],z=Math.max(z,y?b.Da.width:b.Da.height);var le=a.alignment;b=le===eh;var ce=le===th,de=Pg(le),ve=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var Pe=a.nodeSpacing,Le=this.computeNodeIndent(a),Fe=a.rowSpacing,Ze=0;(b||ce||a.hm||a.im&&a.maxGenerationCount===1)&&(Ze=Math.max(0,a.rowIndent)),b=a.width;var pt=a.height,at=0,Ct=0,Lt=0,Dt=null,Kt=null,vn=0,Pi=0,ji=0,Di=0,vi=0,ti=0,Br=0,Ar=0;if(de&&!mm(le)&&135<E&&te.reverse(),mm(le))if(1<re)for(var Wo=0;Wo<re;Wo++)Wo%2===0&&Wo!==re-1&&(Ar=Math.max(Ar,y?te[Wo].Da.width:te[Wo].Da.height));else re===1&&(Ar=y?te[0].Da.width:te[0].Da.height);if(de){switch(le){case Kh:Ct=135>E?f1(this,a,te,Ar,at,Ct):p1(this,a,te,Ar,at,Ct),Ar=Ct.x,at=Ct.width,Ct=Ct.height;break;case Yh:for(Dt=0;Dt<re;Dt++)Kt=te[Dt],ve=Kt.Da,Lt=ti===0?0:Fe,y?(Kt.S.h(z-ve.width,Di+Lt),at=Math.max(at,ve.width),Ct=Math.max(Ct,Di+Lt+ve.height),Di+=Lt+ve.height):(Kt.S.h(ji+Lt,z-ve.height),at=Math.max(at,ji+Lt+ve.width),Ct=Math.max(Ct,ve.height),ji+=Lt+ve.width),ti++;break;case bh:for(Dt=0;Dt<re;Dt++)Kt=te[Dt],z=Kt.Da,ve=ti===0?0:Fe,y?(Kt.S.h(Pe/2+a.focus.x,Di+ve),at=Math.max(at,z.width),Ct=Math.max(Ct,Di+ve+z.height),Di+=ve+z.height):(Kt.S.h(ji+ve,Pe/2+a.focus.y),at=Math.max(at,ji+ve+z.width),Ct=Math.max(Ct,z.height),ji+=ve+z.width),ti++}Dt=ic(this,2),Kt=ic(this,2),y?(Dt[0].h(0,0),Dt[1].h(0,Ct),Kt[0].h(at,0)):(Dt[0].h(0,0),Dt[1].h(at,0),Kt[0].h(0,Ct)),Kt[1].h(at,Ct)}else for(Wo=0;Wo<re;Wo++){var wa=te[Wo],vl=wa.Da;if(y){0<ve&&0<ti&&ji+Pe+vl.width>ve&&(ji<z&&tf(a,le,z-ji,0,Br,Wo-1),vi++,ti=0,Br=Wo,Lt=Ct,ji=0,Di=135<E?-Ct-Fe:Ct+Fe),X0(this,wa,0,Di);var Pl=0;if(ti===0)Dt=wa.Yo,Kt=wa.kp,vn=vl.width,Pi=vl.height,(Dt===null||Kt===null||E!==gd(wa))&&(Dt=ic(this,2),Kt=ic(this,2),Dt[0].h(0,0),Dt[1].h(0,Pi),Kt[0].h(vn,0),Kt[1].h(vn,Pi));else{var lu=gn();Pi=m1(this,a,wa,Dt,Kt,vn,Pi,lu),Pl=Pi.x,Dt=lu[0],Kt=lu[1],vn=Pi.width,Pi=Pi.height,kn(lu),ji<vl.width&&0>Pl&&(Nf(a,-Pl,0,Br,Wo-1),Q0(Dt,-Pl,0),Q0(Kt,-Pl,0),Pl=0)}wa.S.h(Pl,Di),at=Math.max(at,vn),Ct=Math.max(Ct,Lt+(vi===0?0:Fe)+vl.height),ji=vn}else 0<ve&&0<ti&&Di+Pe+vl.height>ve&&(Di<z&&tf(a,le,0,z-Di,Br,Wo-1),vi++,ti=0,Br=Wo,Lt=at,Di=0,ji=135<E?-at-Fe:at+Fe),X0(this,wa,ji,0),Pl=0,ti===0?(Dt=wa.Yo,Kt=wa.kp,vn=vl.width,Pi=vl.height,(Dt===null||Kt===null||E!==gd(wa))&&(Dt=ic(this,2),Kt=ic(this,2),Dt[0].h(0,0),Dt[1].h(vn,0),Kt[0].h(0,Pi),Kt[1].h(vn,Pi))):(lu=gn(),Pi=m1(this,a,wa,Dt,Kt,vn,Pi,lu),Pl=Pi.x,Dt=lu[0],Kt=lu[1],vn=Pi.width,Pi=Pi.height,kn(lu),Di<vl.height&&0>Pl&&(Nf(a,0,-Pl,Br,Wo-1),Q0(Dt,0,-Pl),Q0(Kt,0,-Pl),Pl=0)),wa.S.h(ji,Pl),Ct=Math.max(Ct,Pi),at=Math.max(at,Lt+(vi===0?0:Fe)+vl.width),Di=Pi;ti++}switch(0<vi&&(y?(Ct+=Math.max(0,x),ji<at&&tf(a,le,at-ji,0,Br,re-1),0<Ze&&(ce||Nf(a,Ze,0,0,re-1),at+=Ze)):(at+=Math.max(0,x),Di<Ct&&tf(a,le,0,Ct-Di,Br,re-1),0<Ze&&(ce||Nf(a,0,Ze,0,re-1),Ct+=Ze))),Ze=ce=0,le){case vp:y?ce+=at/2-a.focus.x-Le/2:Ze+=Ct/2-a.focus.y-Le/2;break;case Lf:0<vi?y?ce+=at/2-a.focus.x-Le/2:Ze+=Ct/2-a.focus.y-Le/2:y?(Ar=te[0].S.x+te[0].la.x,ce+=Ar+(te[re-1].S.x+te[re-1].la.x+2*te[re-1].focus.x-Ar)/2-a.focus.x-Le/2):(Ar=te[0].S.y+te[0].la.y,Ze+=Ar+(te[re-1].S.y+te[re-1].la.y+2*te[re-1].focus.y-Ar)/2-a.focus.y-Le/2);break;case eh:y?(ce-=Le,at+=Le):(Ze-=Le,Ct+=Le);break;case th:y?(ce+=at-a.width+Le,at+=Le):(Ze+=Ct-a.height+Le,Ct+=Le);break;case Kh:y?1<re?ce+=Ar+Pe/2-a.focus.x:ce+=te[0].focus.x-a.focus.x+te[0].la.x:1<re?Ze+=Ar+Pe/2-a.focus.y:Ze+=te[0].focus.y-a.focus.y+te[0].la.y;break;case Yh:y?ce+=at+Pe/2-a.focus.x:Ze+=Ct+Pe/2-a.focus.y;break;case bh:break;default:Ct=this.customAlignment(a,ce,Ze,at,Ct),ce=Ct[0],Ze=Ct[1],at=Ct[2],Ct=Ct[3]}for(Le=0;Le<re;Le++)Ar=te[Le],y?Ar.S.h(Ar.S.x+Ar.la.x-ce,Ar.S.y+(135<E?(de?-Ct:-Ar.Da.height)+Ar.la.y-x:pt+x+Ar.la.y)):Ar.S.h(Ar.S.x+(135<E?(de?-at:-Ar.Da.width)+Ar.la.x-x:b+x+Ar.la.x),Ar.S.y+Ar.la.y-Ze);if(re=te=0,de?y?(at=Uy(a,at,ce),0>ce&&(ce=0),135<E&&(Ze+=Ct+x),Ct+=pt+x,le===bh&&(te+=Pe/2+a.focus.x),re+=pt+x):(135<E&&(ce+=at+x),at+=b+x,Ct=_y(a,Ct,Ze),0>Ze&&(Ze=0),le===bh&&(re+=Pe/2+a.focus.y),te+=b+x):y?(a.comments===null?b>at&&(at=Gy(le,b-at,0),te=at.x,re=at.y,at=b,ce=0):at=Uy(a,at,ce),0>ce&&(te-=ce,ce=0),135<E&&(Ze+=Ct+x),Ct=Math.max(Math.max(Ct,pt),Ct+pt+x),re+=pt+x):(135<E&&(ce+=at+x),at=Math.max(Math.max(at,b),at+b+x),a.comments===null?pt>Ct&&(Ct=Gy(le,0,pt-Ct),te=Ct.x,re=Ct.y,Ct=pt,Ze=0):Ct=_y(a,Ct,Ze),0>Ze&&(re-=Ze,Ze=0),te+=b+x),0<vi)E=ic(this,4),vi=ic(this,4),y?(E[2].h(0,pt+x),E[3].h(E[2].x,Ct),vi[2].h(at,E[2].y),vi[3].h(vi[2].x,E[3].y)):(E[2].h(b+x,0),E[3].h(at,E[2].y),vi[2].h(E[2].x,Ct),vi[3].h(E[3].x,vi[2].y));else{for(E=ic(this,Dt.length+2),vi=ic(this,Kt.length+2),le=0;le<Dt.length;le++)de=Dt[le],E[le+2].h(de.x+te,de.y+re);for(le=0;le<Kt.length;le++)de=Kt[le],vi[le+2].h(de.x+te,de.y+re)}y?(E[0].h(ce,0),E[1].h(E[0].x,pt),E[2].y<E[1].y&&(E[2].x>E[0].x?E[2].assign(E[1]):E[1].assign(E[2])),E[3].y<E[2].y&&(E[3].x>E[0].x?E[3].assign(E[2]):E[2].assign(E[3])),vi[0].h(ce+b,0),vi[1].h(vi[0].x,pt),vi[2].y<vi[1].y&&(vi[2].x<vi[0].x?vi[2].assign(vi[1]):vi[1].assign(vi[2])),vi[3].y<vi[2].y&&(vi[3].x<vi[0].x?vi[3].assign(vi[2]):vi[2].assign(vi[3])),E[2].y-=x/2,vi[2].y-=x/2):(E[0].h(0,Ze),E[1].h(b,E[0].y),E[2].x<E[1].x&&(E[2].y>E[0].y?E[2].assign(E[1]):E[1].assign(E[2])),E[3].x<E[2].x&&(E[3].y>E[0].y?E[3].assign(E[2]):E[2].assign(E[3])),vi[0].h(0,Ze+pt),vi[1].h(b,vi[0].y),vi[2].x<vi[1].x&&(vi[2].y<vi[0].y?vi[2].assign(vi[1]):vi[1].assign(vi[2])),vi[3].x<vi[2].x&&(vi[3].y<vi[0].y?vi[3].assign(vi[2]):vi[2].assign(vi[3])),E[2].x-=x/2,vi[2].x-=x/2),Cd(this,Dt),Cd(this,Kt),a.Yo=E,a.kp=vi,a.la.h(ce,Ze),a.Da.h(at,Ct)}break;default:bt("Unhandled compaction value "+a.compaction.toString())}}};function g1(a,y){if(y.childrenCount===0){var x=!1,b=0;y.parent!==null&&(b=y.parent.angle,x=y.parent.alignment,x=Pg(x));var E=zy(y);y.S.h(0,0),y.Da.h(y.width,y.height),y.parent===null||y.comments===null||(b!==180&&b!==270||x)&&!E?y.la.h(0,0):b===180&&!x||(b===90||b===270)&&E?y.la.h(y.width-2*y.focus.x,0):y.la.h(0,y.height-2*y.focus.y)}else{b=gd(y),x=b===90||b===270;var z=0;E=y.children;for(var te=E.length,re=0;re<te;re++){var le=E[re];z=Math.max(z,x?le.Da.width:le.Da.height)}var ce=y.alignment,de=ce===eh,ve=ce===th;re=Pg(ce);var Pe=Math.max(0,y.breadthLimit);le=a.computeLayerSpacing(y);var Le=y.nodeSpacing,Fe=a.computeNodeIndent(y),Ze=de||ve?0:Fe/2,pt=y.rowSpacing,at=0;(de||ve||y.hm||y.im&&y.maxGenerationCount===1)&&(at=Math.max(0,y.rowIndent)),de=y.width;var Ct=y.height,Lt=0,Dt=0,Kt=0,vn=0,Pi=0,ji=0,Di=0,vi=0,ti=0,Br=0;if(re&&!mm(ce)&&135<b&&E.reverse(),mm(ce))if(1<te)for(var Ar=0;Ar<te;Ar++){var Wo=E[Ar],wa=Wo.Da;Ar%2===0&&Ar!==te-1?ti=Math.max(ti,(x?wa.width:wa.height)+a.computeBusNodeSpacing(Wo)-Le):Ar%2!==0&&(Br=Math.max(Br,(x?wa.width:wa.height)+a.computeBusNodeSpacing(Wo)-Le))}else te===1&&(ti=x?E[0].Da.width:E[0].Da.height);if(re)switch(ce){case Kh:case nh:Dt=135>b?f1(a,y,E,ti,Lt,Dt):p1(a,y,E,ti,Lt,Dt),ti=Dt.x,Lt=Dt.width,Dt=Dt.height;break;case Yh:for(Pe=0;Pe<te;Pe++)Ze=E[Pe],Kt=Ze.Da,Br=Di===0?0:pt,x?(Ze.S.h(z-Kt.width,Pi+Br),Lt=Math.max(Lt,Kt.width),Dt=Math.max(Dt,Pi+Br+Kt.height),Pi+=Br+Kt.height):(Ze.S.h(vn+Br,z-Kt.height),Lt=Math.max(Lt,vn+Br+Kt.width),Dt=Math.max(Dt,Kt.height),vn+=Br+Kt.width),Di++;break;case bh:for(z=0;z<te;z++)Pe=E[z],Ze=Pe.Da,Kt=Di===0?0:pt,x?(Pe.S.h(Le/2+y.focus.x,Pi+Kt),Lt=Math.max(Lt,Ze.width),Dt=Math.max(Dt,Pi+Kt+Ze.height),Pi+=Kt+Ze.height):(Pe.S.h(vn+Kt,Le/2+y.focus.y),Lt=Math.max(Lt,vn+Kt+Ze.width),Dt=Math.max(Dt,Ze.height),vn+=Kt+Ze.width),Di++}else for(Br=0;Br<te;Br++)Ar=E[Br],Wo=Ar.Da,x?(0<Pe&&0<Di&&vn+Le+Wo.width>Pe&&(vn<z&&tf(y,ce,z-vn,0,vi,Br-1),ji++,Di=0,vi=Br,Kt=Dt,vn=0,Pi=135<b?-Dt-pt:Dt+pt),wa=Di===0?Ze:Le,X0(a,Ar,0,Pi),Ar.S.h(vn+wa,Pi),Lt=Math.max(Lt,vn+wa+Wo.width),Dt=Math.max(Dt,Kt+(ji===0?0:pt)+Wo.height),vn+=wa+Wo.width):(0<Pe&&0<Di&&Pi+Le+Wo.height>Pe&&(Pi<z&&tf(y,ce,0,z-Pi,vi,Br-1),ji++,Di=0,vi=Br,Kt=Lt,Pi=0,vn=135<b?-Lt-pt:Lt+pt),wa=Di===0?Ze:Le,X0(a,Ar,vn,0),Ar.S.h(vn,Pi+wa),Dt=Math.max(Dt,Pi+wa+Wo.height),Lt=Math.max(Lt,Kt+(ji===0?0:pt)+Wo.width),Pi+=wa+Wo.height),Di++;switch(0<ji&&(x?(Dt+=Math.max(0,le),vn<Lt&&tf(y,ce,Lt-vn,0,vi,te-1),0<at&&(ve||Nf(y,at,0,0,te-1),Lt+=at)):(Lt+=Math.max(0,le),Pi<Dt&&tf(y,ce,0,Dt-Pi,vi,te-1),0<at&&(ve||Nf(y,0,at,0,te-1),Dt+=at))),at=ve=0,ce){case vp:x?ve+=Lt/2-y.focus.x-Fe/2:at+=Dt/2-y.focus.y-Fe/2;break;case Lf:0<ji?x?ve+=Lt/2-y.focus.x-Fe/2:at+=Dt/2-y.focus.y-Fe/2:x?(a=E[0].S.x+E[0].la.x,ve+=a+(E[te-1].S.x+E[te-1].la.x+2*E[te-1].focus.x-a)/2-y.focus.x-Fe/2):(a=E[0].S.y+E[0].la.y,at+=a+(E[te-1].S.y+E[te-1].la.y+2*E[te-1].focus.y-a)/2-y.focus.y-Fe/2);break;case eh:x?(ve-=Fe,Lt+=Fe):(at-=Fe,Dt+=Fe);break;case th:x?(ve+=Lt-y.width+Fe,Lt+=Fe):(at+=Dt-y.height+Fe,Dt+=Fe);break;case Kh:case nh:x?1<te?ve+=ti+Le/2-y.focus.x:ve+=E[0].focus.x-y.focus.x+E[0].la.x:1<te?at+=ti+Le/2-y.focus.y:at+=E[0].focus.y-y.focus.y+E[0].la.y;break;case Yh:x?ve+=Lt+Le/2-y.focus.x:at+=Dt+Le/2-y.focus.y;break;case bh:break;default:a=a.customAlignment(y,ve,at,Lt,Dt),ve=a[0],at=a[1],Lt=a[2],Dt=a[3]}for(a=0;a<te;a++)Fe=E[a],x?Fe.S.h(Fe.S.x+Fe.la.x-ve,Fe.S.y+(135<b?(re?-Dt:-Fe.Da.height)+Fe.la.y-le:Ct+le+Fe.la.y)):Fe.S.h(Fe.S.x+(135<b?(re?-Lt:-Fe.Da.width)+Fe.la.x-le:de+le+Fe.la.x),Fe.S.y+Fe.la.y-at);x?(Lt=Uy(y,Lt,ve),0>ve&&(ve=0),135<b&&(at+=Dt+le),Dt=Math.max(Math.max(Dt,Ct),Dt+Ct+le)):(135<b&&(ve+=Lt+le),Lt=Math.max(Math.max(Lt,de),Lt+de+le),Dt=_y(y,Dt,at),0>at&&(at=0)),y.la.h(ve,at),y.Da.h(Lt,Dt)}}vo.prototype.customAlignment=function(a,y,x,b,E){return[y,x,b,E]};function f1(a,y,x,b,E,z){var te=x.length;if(te===0)return new jn(b,0,E,z);if(te===1)return y=x[0],E=y.Da.width,z=y.Da.height,new jn(b,0,E,z);for(var re=y.nodeSpacing,le=y.rowSpacing,ce=gd(y)===90,de=0,ve=0,Pe=0,Le=0;Le<te;Le++)if(!(Le%2!==0||1<te&&Le===te-1)){var Fe=x[Le],Ze=Fe.Da,pt=de===0?0:le;if(ce){var at=a.computeBusNodeSpacing(Fe)-re;Fe.S.h(b-(Ze.width+at),Pe+pt),E=Math.max(E,Ze.width+at),z=Math.max(z,Pe+pt+Ze.height),Pe+=pt+Ze.height}else at=a.computeBusNodeSpacing(Fe)-re,Fe.S.h(ve+pt,b-(Ze.height+at)),z=Math.max(z,Ze.height+at),E=Math.max(E,ve+pt+Ze.width),ve+=pt+Ze.width;de++}for(de=0,Fe=ve,Le=Pe,ce?(ve=b+re,Pe=0):(ve=0,Pe=b+re),Ze=0;Ze<te;Ze++)if(Ze%2!==0){pt=x[Ze],at=pt.Da;var Ct=de===0?0:le;if(ce){var Lt=a.computeBusNodeSpacing(pt)-re;pt.S.h(ve+Lt,Pe+Ct),E=Math.max(E,ve+at.width+Lt),z=Math.max(z,Pe+Ct+at.height),Pe+=Ct+at.height}else Lt=a.computeBusNodeSpacing(pt)-re,pt.S.h(ve+Ct,Pe+Lt),E=Math.max(E,ve+Ct+at.width),z=Math.max(z,Pe+at.height+Lt),ve+=Ct+at.width;de++}return 1<te&&te%2===1&&(x=x[te-1],te=x.Da,a=a.computeBusLastRowSpacing(x,ce?Math.max(Math.abs(Le),Math.abs(Pe)):Math.max(Math.abs(Fe),Math.abs(ve))),ce?(x.S.h(b+re/2-x.focus.x-x.la.x,z+a),ce=b+re/2-x.focus.x-x.la.x,E=Math.max(E,ce+te.width),0>ce&&(E-=ce),z=Math.max(z,Math.max(Le,Pe)+a+te.height),0>x.S.x&&(b=$0(y,x.S.x,!1,b,re))):(x.S.h(E+a,b+re/2-x.focus.y-x.la.y),E=Math.max(E,Math.max(Fe,ve)+a+te.width),Pe=b+re/2-x.focus.y-x.la.y,z=Math.max(z,Pe+te.height),0>Pe&&(z-=Pe),0>x.S.y&&(b=$0(y,x.S.y,!0,b,re)))),new jn(b,0,E,z)}function p1(a,y,x,b,E,z){var te=x.length;if(te===0)return new jn(b,0,E,z);if(te===1)return x=x[0],E=x.Da.width,z=x.Da.height,new jn(b,0,E,z);for(var re=y.nodeSpacing,le=y.rowSpacing,ce=gd(y)===270,de=0,ve=0,Pe=0,Le=0;Le<te;Le++)if(!(Le%2!==0||1<te&&Le===te-1)){var Fe=x[Le],Ze=Fe.Da,pt=de===0?0:le;if(ce){var at=a.computeBusNodeSpacing(Fe)-re;Pe-=pt+Ze.height,Fe.S.h(b-(Ze.width+at),Pe),E=Math.max(E,Ze.width+at),z=Math.max(z,Math.abs(Pe))}else at=a.computeBusNodeSpacing(Fe)-re,ve-=pt+Ze.width,Fe.S.h(ve,b-(Ze.height+at)),z=Math.max(z,Ze.height+at),E=Math.max(E,Math.abs(ve));de++}for(de=0,Fe=ve,Le=Pe,ce?(ve=b+re,Pe=0):(ve=0,Pe=b+re),Ze=0;Ze<te;Ze++)if(Ze%2!==0){pt=x[Ze],at=pt.Da;var Ct=de===0?0:le;if(ce){var Lt=a.computeBusNodeSpacing(pt)-re;Pe-=Ct+at.height,pt.S.h(ve+Lt,Pe),E=Math.max(E,ve+at.width+Lt),z=Math.max(z,Math.abs(Pe))}else Lt=a.computeBusNodeSpacing(pt)-re,ve-=Ct+at.width,pt.S.h(ve,Pe+Lt),z=Math.max(z,Pe+at.height+Lt),E=Math.max(E,Math.abs(ve));de++}for(1<te&&te%2===1&&(le=x[te-1],de=le.Da,a=a.computeBusLastRowSpacing(le,ce?Math.max(Math.abs(Le),Math.abs(Pe)):Math.max(Math.abs(Fe),Math.abs(ve))),ce?(le.S.h(b+re/2-le.focus.x-le.la.x,-z-de.height-a),ve=b+re/2-le.focus.x-le.la.x,E=Math.max(E,ve+de.width),0>ve&&(E-=ve),z=Math.max(z,Math.abs(Math.min(Le,Pe))+a+de.height),0>le.S.x&&(b=$0(y,le.S.x,!1,b,re))):(le.S.h(-E-de.width-a,b+re/2-le.focus.y-le.la.y),E=Math.max(E,Math.abs(Math.min(Fe,ve))+a+de.width),Pe=b+re/2-le.focus.y-le.la.y,z=Math.max(z,Pe+de.height),0>Pe&&(z-=Pe),0>le.S.y&&(b=$0(y,le.S.y,!0,b,re)))),y=0;y<te;y++)re=x[y],ce?re.S.h(re.S.x,re.S.y+z):re.S.h(re.S.x+E,re.S.y);return new jn(b,0,E,z)}vo.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},vo.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function $0(a,y,x,b,E){a=a.children;for(var z=a.length,te=0;te<z;te++)x?a[te].S.h(a[te].S.x,a[te].S.y-y):a[te].S.h(a[te].S.x-y,a[te].S.y);return y=a[z-1],Math.max(b,x?y.la.y+y.focus.y-E/2:y.la.x+y.focus.x-E/2)}function Uy(a,y,x){switch(a.alignment){case Lf:case vp:return x+a.width>y&&(y=x+a.width),0>x&&(y-=x),y;case eh:return a.width>y?a.width:y;case th:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case Kh:case nh:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case Yh:return a.width-a.focus.x+a.nodeSpacing/2+y;case bh:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function _y(a,y,x){switch(a.alignment){case Lf:case vp:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case eh:return a.height>y?a.height:y;case th:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case Kh:case nh:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case Yh:return a.height-a.focus.y+a.nodeSpacing/2+y;case bh:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Gy(a,y,x){switch(a){case vp:y/=2,x/=2;break;case Lf:y/=2,x/=2;break;case eh:x=y=0;break;case th:break;default:bt("Unhandled alignment value "+a.toString())}return new lt(y,x)}function tf(a,y,x,b,E,z){y=Gy(y,x,b),Nf(a,y.x,y.y,E,z)}function Nf(a,y,x,b,E){if(y!==0||x!==0)for(a=a.children;b<=E;b++){var z=a[b].S;z.x+=y,z.y+=x}}function X0(a,y,x,b){var E=y.parent;switch(a.ud){case qd:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===E&&y.relativePoint.h(x,b);break;case Mf:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===E&&y.relativePoint.h(x,b);break;default:bt("Unhandled path value "+a.ud.toString())}}function Q0(a,y,x){for(var b=0;b<a.length;b++){var E=a[b];E.x+=y,E.y+=x}}function m1(a,y,x,b,E,z,te,re){var le=gd(y),ce=le===90||le===270,de=y.nodeSpacing;y=b;var ve=E;b=z;var Pe=te,Le=x.Yo,Fe=x.kp;te=x.Da;var Ze=ce?Math.max(Pe,te.height):Math.max(b,te.width);if((Le===null||le!==gd(x))&&(Le=ic(a,2),Fe=ic(a,2),ce?(Le[0].h(0,0),Le[1].h(0,te.height),Fe[0].h(te.width,0),Fe[1].h(Fe[0].x,Le[1].y)):(Le[0].h(0,0),Le[1].h(te.width,0),Fe[0].h(0,te.height),Fe[1].h(Le[1].x,Fe[0].y))),ce){if(Pe=9999999,!(ve===null||2>ve.length||Le===null||2>Le.length))for(E=x=0;x<ve.length&&E<Le.length;){z=ve[x];var pt=Le[E];le=pt.x,ce=pt.y,le+=b;var at=z;x+1<ve.length&&(at=ve[x+1]);var Ct=pt;pt=Ct.x,Ct=Ct.y,E+1<Le.length&&(Ct=Le[E+1],pt=Ct.x,Ct=Ct.y,pt+=b);var Lt=Pe;z.y===ce?Lt=le-z.x:z.y>ce&&z.y<Ct?Lt=le+(z.y-ce)/(Ct-ce)*(pt-le)-z.x:ce>z.y&&ce<at.y&&(Lt=le-(z.x+(ce-z.y)/(at.y-z.y)*(at.x-z.x))),Lt<Pe&&(Pe=Lt),at.y<=z.y?x++:Ct<=ce?E++:(at.y<=Ct&&x++,Ct<=at.y&&E++)}if(Pe=b-Pe,Pe+=de,x=Le,E=Pe,y===null||2>y.length||x===null||2>x.length)b=null;else{for(de=ic(a,y.length+x.length),b=z=le=0;z<x.length&&x[z].y<y[0].y;)ce=x[z++],de[b++].h(ce.x+E,ce.y);for(;le<y.length;)ce=y[le++],de[b++].h(ce.x,ce.y);for(le=y[y.length-1].y;z<x.length&&x[z].y<=le;)z++;for(;z<x.length&&x[z].y>le;)ce=x[z++],de[b++].h(ce.x+E,ce.y);for(x=ic(a,b),le=0;le<b;le++)x[le].assign(de[le]);Cd(a,de),b=x}if(z=Fe,le=Pe,ve===null||2>ve.length||z===null||2>z.length)E=null;else{for(de=ic(a,ve.length+z.length),E=ce=x=0;x<ve.length&&ve[x].y<z[0].y;)at=ve[x++],de[E++].h(at.x,at.y);for(;ce<z.length;)at=z[ce++],de[E++].h(at.x+le,at.y);for(z=z[z.length-1].y;x<ve.length&&ve[x].y<=z;)x++;for(;x<ve.length&&ve[x].y>z;)le=ve[x++],de[E++].h(le.x,le.y);for(z=ic(a,E),x=0;x<E;x++)z[x].assign(de[x]);Cd(a,de),E=z}return z=Math.max(0,Pe)+te.width,te=Ze,Cd(a,y),Cd(a,Le),Cd(a,ve),Cd(a,Fe),re[0]=b,re[1]=E,new jn(Pe,0,z,te)}if(b=9999999,!(ve===null||2>ve.length||Le===null||2>Le.length))for(E=x=0;x<ve.length&&E<Le.length;)z=ve[x],pt=Le[E],le=pt.x,ce=pt.y,ce+=Pe,at=z,x+1<ve.length&&(at=ve[x+1]),Ct=pt,pt=Ct.x,Ct=Ct.y,E+1<Le.length&&(Ct=Le[E+1],pt=Ct.x,Ct=Ct.y,Ct+=Pe),Lt=b,z.x===le?Lt=ce-z.y:z.x>le&&z.x<pt?Lt=ce+(z.x-le)/(pt-le)*(Ct-ce)-z.y:le>z.x&&le<at.x&&(Lt=ce-(z.y+(le-z.x)/(at.x-z.x)*(at.y-z.y))),Lt<b&&(b=Lt),at.x<=z.x?x++:pt<=le?E++:(at.x<=pt&&x++,pt<=at.x&&E++);if(Pe-=b,Pe+=de,x=Le,E=Pe,y===null||2>y.length||x===null||2>x.length)b=null;else{for(de=ic(a,y.length+x.length),b=z=le=0;z<x.length&&x[z].x<y[0].x;)ce=x[z++],de[b++].h(ce.x,ce.y+E);for(;le<y.length;)ce=y[le++],de[b++].h(ce.x,ce.y);for(le=y[y.length-1].x;z<x.length&&x[z].x<=le;)z++;for(;z<x.length&&x[z].x>le;)ce=x[z++],de[b++].h(ce.x,ce.y+E);for(x=ic(a,b),le=0;le<b;le++)x[le].assign(de[le]);Cd(a,de),b=x}if(z=Fe,le=Pe,ve===null||2>ve.length||z===null||2>z.length)E=null;else{for(de=ic(a,ve.length+z.length),E=ce=x=0;x<ve.length&&ve[x].x<z[0].x;)at=ve[x++],de[E++].h(at.x,at.y);for(;ce<z.length;)at=z[ce++],de[E++].h(at.x,at.y+le);for(z=z[z.length-1].x;x<ve.length&&ve[x].x<=z;)x++;for(;x<ve.length&&ve[x].x>z;)le=ve[x++],de[E++].h(le.x,le.y);for(z=ic(a,E),x=0;x<E;x++)z[x].assign(de[x]);Cd(a,de),E=z}return z=Ze,te=Math.max(0,Pe)+te.height,Cd(a,y),Cd(a,Le),Cd(a,ve),Cd(a,Fe),re[0]=b,re[1]=E,new jn(Pe,0,z,te)}function ic(a,y){if(a=a.ru[y],a!==void 0&&(a=a.pop(),a!==void 0))return a;a=[];for(var x=0;x<y;x++)a[x]=new lt;return a}function Cd(a,y){var x=y.length,b=a.ru[x];b===void 0&&(b=[],a.ru[x]=b),b.push(y)}vo.prototype.arrangeTrees=function(){if(this.Rb===nv)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof Yc){var x=y.node;if(x!==null){var b=x.position;x=b.x,b=b.y,isFinite(x)||(x=0),isFinite(b)||(b=0),Hy(this,y,x,b)}}}else{for(a=[],y=this.Ub.iterator;y.next();)x=y.value,x instanceof Yc&&a.push(x);switch(this.sorting){case mp:break;case vm:a.reverse();break;case ym:a.sort(this.comparer);break;case Sm:a.sort(this.comparer),a.reverse();break;default:bt("Unhandled sorting value "+this.sorting.toString())}for(x=this.arrangementOrigin,y=x.x,x=x.y,b=0;b<a.length;b++){var E=a[b];switch(Hy(this,E,y+E.la.x,x+E.la.y),this.Rb){case tv:x+=E.Da.height+this.$d.height;break;case Ky:y+=E.Da.width+this.$d.width;break;default:bt("Unhandled arrangement value "+this.Rb.toString())}}}};function Hy(a,y,x,b){if(y!==null){y.x=x,y.y=b,y=y.children;for(var E=y.length,z=0;z<E;z++){var te=y[z];Hy(a,te,x+te.S.x,b+te.S.y)}}}vo.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},vo.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},vo.prototype.Gu=function(){if(this.layerStyle===iv){for(var a=this.$v,y=[],x=null,b=this.network.vertexes.iterator;b.next();){var E=b.value;x===null?x=E.bounds.copy():x.ed(E.bounds);var z=y[E.level];z===void 0?z=this.computeLayerSpacing(E):z=Math.max(z,this.computeLayerSpacing(E)),y[E.level]=z}for(b=0;b<y.length;b++)y[b]===void 0&&(y[b]=0);if(this.angle===90||this.angle===270?(x.Bc(this.nodeSpacing/2,this.layerSpacing),b=new lt(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),b=new lt(-this.layerSpacing/2,-this.nodeSpacing/2)),E=[],x=this.angle===90||this.angle===270?x.width:x.height,z=0,this.angle===180||this.angle===270)for(var te=0;te<a.length;te++)z+=a[te]+y[te];for(te=0;te<a.length;te++){var re=a[te]+y[te];this.angle===270?(z-=re,E.push(new jn(0,z,x,re))):this.angle===90?(E.push(new jn(0,z,x,re)),z+=re):this.angle===180?(z-=re,E.push(new jn(z,0,re,x))):(E.push(new jn(z,0,re,x)),z+=re)}this.commitLayers(E,b)}},vo.prototype.commitLayers=function(){},vo.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},vo.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof Yc&&v1(this,y)}};function v1(a,y){if(y!==null){a.setPortSpots(y),y=y.children;for(var x=y.length,b=0;b<x;b++)v1(a,y[b])}}vo.prototype.setPortSpots=function(a){var y=a.alignment;if(Pg(y)){var x=this.ud===qd,b=gd(a);switch(b){case 0:var E=Ho;break;case 90:E=Bo;break;case 180:E=Ia;break;default:E=Na}var z=a.children,te=z.length;switch(y){case Kh:case nh:for(y=0;y<te;y++){var re=z[y];if(re=(x?re.sourceEdges:re.destinationEdges).first(),re!==null&&(re=re.link,re!==null)){var le=b===90||b===270?Ia:Na;if(te===1||y===te-1&&te%2===1)switch(b){case 0:le=Ia;break;case 90:le=Na;break;case 180:le=Ho;break;default:le=Bo}else y%2===0&&(le=b===90||b===270?Ho:Bo);x?(a.setsPortSpot&&(re.fromSpot=E),a.setsChildPortSpot&&(re.toSpot=le)):(a.setsPortSpot&&(re.fromSpot=le),a.setsChildPortSpot&&(re.toSpot=E))}}break;case Yh:for(b=b===90||b===270?Ho:Bo,z=x?a.destinationEdges:a.sourceEdges;z.next();)te=z.value.link,te!==null&&(x?(a.setsPortSpot&&(te.fromSpot=E),a.setsChildPortSpot&&(te.toSpot=b)):(a.setsPortSpot&&(te.fromSpot=b),a.setsChildPortSpot&&(te.toSpot=E)));break;case bh:for(b=b===90||b===270?Ia:Na,z=x?a.destinationEdges:a.sourceEdges;z.next();)te=z.value.link,te!==null&&(x?(a.setsPortSpot&&(te.fromSpot=E),a.setsChildPortSpot&&(te.toSpot=b)):(a.setsPortSpot&&(te.fromSpot=b),a.setsChildPortSpot&&(te.toSpot=E)))}}else if(x=gd(a),this.ud===qd){for(E=a.destinationEdges;E.next();)if(b=E.value.link,b!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:b.fromSpot=Ho;break;case 90:b.fromSpot=Bo;break;case 180:b.fromSpot=Ia;break;default:b.fromSpot=Na}else b.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.toSpot=Ia;break;case 90:b.toSpot=Na;break;case 180:b.toSpot=Ho;break;default:b.toSpot=Bo}else b.toSpot=a.childPortSpot}}else for(E=a.sourceEdges;E.next();)if(b=E.value.link,b!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:b.toSpot=Ho;break;case 90:b.toSpot=Bo;break;case 180:b.toSpot=Ia;break;default:b.toSpot=Na}else b.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.fromSpot=Ia;break;case 90:b.fromSpot=Na;break;case 180:b.fromSpot=Ho;break;default:b.fromSpot=Bo}else b.fromSpot=a.childPortSpot}};function gd(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}vo.prototype.computeLayerSpacing=function(a){var y=gd(a);y=y===90||y===270;var x=a.layerSpacing;if(0<a.layerSpacingParentOverlap){var b=Math.min(1,a.layerSpacingParentOverlap);x-=y?a.height*b:a.width*b}return x<(y?-a.height:-a.width)&&(x=y?-a.height:-a.width),x},vo.prototype.computeNodeIndent=function(a){var y=gd(a),x=a.nodeIndent;if(0<a.nodeIndentPastParent){var b=Math.min(1,a.nodeIndentPastParent);x+=y===90||y===270?a.width*b:a.height*b}return x=Math.max(0,x)},Nt.Object.defineProperties(vo.prototype,{roots:{get:function(){return this.Ub},set:function(a){this.Ub!==a&&(this.Ub=a,this.C())}},path:{get:function(){return this.Wn},set:function(a){this.Wn!==a&&(this.Wn=a,this.C())}},treeStyle:{get:function(){return this.vo},set:function(a){this.Rb===a||a!==ev&&a!==Zy&&a!==Wy&&a!==Vy||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==Yy&&a!==$y&&a!==iv||(this.Bq=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==tv&&a!==Ky&&a!==nv||(this.Rb=a,this.C())}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},rootDefaults:{get:function(){return this.W},set:function(a){this.W!==a&&(this.W=a,this.C())}},alternateDefaults:{get:function(){return this.Y},set:function(a){this.Y!==a&&(this.Y=a,this.C())}},sorting:{get:function(){return this.W.sorting},set:function(a){this.W.sorting===a||a!==mp&&a!==vm&&a!==ym&&!Sm||(this.W.sorting=a,this.C())}},comparer:{get:function(){return this.W.comparer},set:function(a){this.W.comparer!==a&&(this.W.comparer=a,this.C())}},angle:{get:function(){return this.W.angle},set:function(a){this.W.angle!==a&&(a===0||a===90||a===180||a===270?(this.W.angle=a,this.C()):bt("TreeLayout.angle must be 0, 90, 180, or 270"))}},alignment:{get:function(){return this.W.alignment},set:function(a){this.W.alignment!==a&&(this.W.alignment=a,this.C())}},nodeIndent:{get:function(){return this.W.nodeIndent},set:function(a){this.W.nodeIndent!==a&&0<=a&&(this.W.nodeIndent=a,this.C())}},nodeIndentPastParent:{get:function(){return this.W.nodeIndentPastParent},set:function(a){this.W.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.W.nodeIndentPastParent=a,this.C())}},nodeSpacing:{get:function(){return this.W.nodeSpacing},set:function(a){this.W.nodeSpacing!==a&&(this.W.nodeSpacing=a,this.C())}},layerSpacing:{get:function(){return this.W.layerSpacing},set:function(a){this.W.layerSpacing!==a&&(this.W.layerSpacing=a,this.C())}},layerSpacingParentOverlap:{get:function(){return this.W.layerSpacingParentOverlap},set:function(a){this.W.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.W.layerSpacingParentOverlap=a,this.C())}},compaction:{get:function(){return this.W.compaction},set:function(a){this.W.compaction===a||a!==q0&&a!==xm||(this.W.compaction=a,this.C())}},breadthLimit:{get:function(){return this.W.breadthLimit},set:function(a){this.W.breadthLimit!==a&&0<=a&&(this.W.breadthLimit=a,this.C())}},rowSpacing:{get:function(){return this.W.rowSpacing},set:function(a){this.W.rowSpacing!==a&&(this.W.rowSpacing=a,this.C())}},rowIndent:{get:function(){return this.W.rowIndent},set:function(a){this.W.rowIndent!==a&&0<=a&&(this.W.rowIndent=a,this.C())}},commentSpacing:{get:function(){return this.W.commentSpacing},set:function(a){this.W.commentSpacing!==a&&(this.W.commentSpacing=a,this.C())}},commentMargin:{get:function(){return this.W.commentMargin},set:function(a){this.W.commentMargin!==a&&(this.W.commentMargin=a,this.C())}},setsPortSpot:{get:function(){return this.W.setsPortSpot},set:function(a){this.W.setsPortSpot!==a&&(this.W.setsPortSpot=a,this.C())}},portSpot:{get:function(){return this.W.portSpot},set:function(a){this.W.portSpot.D(a)||(this.W.portSpot=a,this.C())}},setsChildPortSpot:{get:function(){return this.W.setsChildPortSpot},set:function(a){this.W.setsChildPortSpot!==a&&(this.W.setsChildPortSpot=a,this.C())}},childPortSpot:{get:function(){return this.W.childPortSpot},set:function(a){this.W.childPortSpot.D(a)||(this.W.childPortSpot=a,this.C())}},alternateSorting:{get:function(){return this.Y.sorting},set:function(a){this.Y.sorting===a||a!==mp&&a!==vm&&a!==ym&&!Sm||(this.Y.sorting=a,this.C())}},alternateComparer:{get:function(){return this.Y.comparer},set:function(a){this.Y.comparer!==a&&(this.Y.comparer=a,this.C())}},alternateAngle:{get:function(){return this.Y.angle},set:function(a){this.Y.angle===a||a!==0&&a!==90&&a!==180&&a!==270||(this.Y.angle=a,this.C())}},alternateAlignment:{get:function(){return this.Y.alignment},set:function(a){this.Y.alignment!==a&&(this.Y.alignment=a,this.C())}},alternateNodeIndent:{get:function(){return this.Y.nodeIndent},set:function(a){this.Y.nodeIndent!==a&&0<=a&&(this.Y.nodeIndent=a,this.C())}},alternateNodeIndentPastParent:{get:function(){return this.Y.nodeIndentPastParent},set:function(a){this.Y.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.Y.nodeIndentPastParent=a,this.C())}},alternateNodeSpacing:{get:function(){return this.Y.nodeSpacing},set:function(a){this.Y.nodeSpacing!==a&&(this.Y.nodeSpacing=a,this.C())}},alternateLayerSpacing:{get:function(){return this.Y.layerSpacing},set:function(a){this.Y.layerSpacing!==a&&(this.Y.layerSpacing=a,this.C())}},alternateLayerSpacingParentOverlap:{get:function(){return this.Y.layerSpacingParentOverlap},set:function(a){this.Y.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.Y.layerSpacingParentOverlap=a,this.C())}},alternateCompaction:{get:function(){return this.Y.compaction},set:function(a){this.Y.compaction===a||a!==q0&&a!==xm||(this.Y.compaction=a,this.C())}},alternateBreadthLimit:{get:function(){return this.Y.breadthLimit},set:function(a){this.Y.breadthLimit!==a&&0<=a&&(this.Y.breadthLimit=a,this.C())}},alternateRowSpacing:{get:function(){return this.Y.rowSpacing},set:function(a){this.Y.rowSpacing!==a&&(this.Y.rowSpacing=a,this.C())}},alternateRowIndent:{get:function(){return this.Y.rowIndent},set:function(a){this.Y.rowIndent!==a&&0<=a&&(this.Y.rowIndent=a,this.C())}},alternateCommentSpacing:{get:function(){return this.Y.commentSpacing},set:function(a){this.Y.commentSpacing!==a&&(this.Y.commentSpacing=a,this.C())}},alternateCommentMargin:{get:function(){return this.Y.commentMargin},set:function(a){this.Y.commentMargin!==a&&(this.Y.commentMargin=a,this.C())}},alternateSetsPortSpot:{get:function(){return this.Y.setsPortSpot},set:function(a){this.Y.setsPortSpot!==a&&(this.Y.setsPortSpot=a,this.C())}},alternatePortSpot:{get:function(){return this.Y.portSpot},set:function(a){this.Y.portSpot.D(a)||(this.Y.portSpot=a,this.C())}},alternateSetsChildPortSpot:{get:function(){return this.Y.setsChildPortSpot},set:function(a){this.Y.setsChildPortSpot!==a&&(this.Y.setsChildPortSpot=a,this.C())}},alternateChildPortSpot:{get:function(){return this.Y.childPortSpot},set:function(a){this.Y.childPortSpot.D(a)||(this.Y.childPortSpot=a,this.C())}}});var J0=new tn(vo,"PathDefault",-1),qd=new tn(vo,"PathDestination",0),Mf=new tn(vo,"PathSource",1),mp=new tn(vo,"SortingForwards",10),vm=new tn(vo,"SortingReverse",11),ym=new tn(vo,"SortingAscending",12),Sm=new tn(vo,"SortingDescending",13),vp=new tn(vo,"AlignmentCenterSubtrees",20),Lf=new tn(vo,"AlignmentCenterChildren",21),eh=new tn(vo,"AlignmentStart",22),th=new tn(vo,"AlignmentEnd",23),Kh=new tn(vo,"AlignmentBus",24),nh=new tn(vo,"AlignmentBusBranching",25),Yh=new tn(vo,"AlignmentTopLeftBus",26),bh=new tn(vo,"AlignmentBottomRightBus",27),q0=new tn(vo,"CompactionNone",30),xm=new tn(vo,"CompactionBlock",31),ev=new tn(vo,"StyleLayered",40),Wy=new tn(vo,"StyleLastParents",41),Zy=new tn(vo,"StyleAlternating",42),Vy=new tn(vo,"StyleRootOnly",43),tv=new tn(vo,"ArrangementVertical",50),Ky=new tn(vo,"ArrangementHorizontal",51),nv=new tn(vo,"ArrangementFixedRoots",52),Yy=new tn(vo,"LayerIndividual",60),$y=new tn(vo,"LayerSiblings",61),iv=new tn(vo,"LayerUniform",62);vo.className="TreeLayout",vo.PathDefault=J0,vo.PathDestination=qd,vo.PathSource=Mf,vo.SortingForwards=mp,vo.SortingReverse=vm,vo.SortingAscending=ym,vo.SortingDescending=Sm,vo.AlignmentCenterSubtrees=vp,vo.AlignmentCenterChildren=Lf,vo.AlignmentStart=eh,vo.AlignmentEnd=th,vo.AlignmentBus=Kh,vo.AlignmentBusBranching=nh,vo.AlignmentTopLeftBus=Yh,vo.AlignmentBottomRightBus=bh,vo.CompactionNone=q0,vo.CompactionBlock=xm,vo.StyleLayered=ev,vo.StyleLastParents=Wy,vo.StyleAlternating=Zy,vo.StyleRootOnly=Vy,vo.ArrangementVertical=tv,vo.ArrangementHorizontal=Ky,vo.ArrangementFixedRoots=nv,vo.LayerIndividual=Yy,vo.LayerSiblings=$y,vo.LayerUniform=iv;function Tf(a){Aa.call(this,a)}qt(Tf,Aa),Tf.prototype.createVertex=function(){return new Yc(this)},Tf.prototype.createEdge=function(){return new yp(this)},Tf.className="TreeNetwork";function Yc(a){il.call(this,a),this.V=!1,this.hb=null,this.u=[],this.nb=this.Ha=this.F=this.ia=0,this.td=null,this.S=new lt(0,0),this.Da=new fi(0,0),this.la=new lt(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=mp,this.hd=py,this.Kb=0,this.Jb=Lf,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=xm,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=Vr,this.wr=!0,this.Dp=Vr}qt(Yc,il),Yc.prototype.copyInheritedPropertiesFrom=function(a){a!==null&&(this.nd=a.sorting,this.hd=a.comparer,this.Kb=a.angle,this.Jb=a.alignment,this.Uq=a.nodeIndent,this.Vq=a.nodeIndentPastParent,this.Wq=a.nodeSpacing,this.ie=a.layerSpacing,this.Aq=a.layerSpacingParentOverlap,this.Hp=a.compaction,this.Ap=a.breadthLimit,this.nr=a.rowSpacing,this.mr=a.rowIndent,this.Gp=a.commentSpacing,this.Fp=a.commentMargin,this.xr=a.setsPortSpot,this.dr=a.portSpot,this.wr=a.setsChildPortSpot,this.Dp=a.childPortSpot)},Nt.Object.defineProperties(Yc.prototype,{initialized:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},parent:{get:function(){return this.hb},set:function(a){this.hb!==a&&(this.hb=a)}},children:{get:function(){return this.u},set:function(a){if(this.u!==a){if(a!==null)for(var y=a.length,x=0;x<y;x++);this.u=a}}},level:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},descendantCount:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}},maxChildrenCount:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},maxGenerationCount:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a)}},comments:{get:function(){return this.td},set:function(a){if(this.td!==a){if(a!==null)for(var y=a.length,x=0;x<y;x++);this.td=a}}},sorting:{get:function(){return this.nd},set:function(a){this.nd!==a&&(this.nd=a)}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a)}},angle:{get:function(){return this.Kb},set:function(a){this.Kb!==a&&(this.Kb=a)}},alignment:{get:function(){return this.Jb},set:function(a){this.Jb!==a&&(this.Jb=a)}},nodeIndent:{get:function(){return this.Uq},set:function(a){this.Uq!==a&&(this.Uq=a)}},nodeIndentPastParent:{get:function(){return this.Vq},set:function(a){this.Vq!==a&&(this.Vq=a)}},nodeSpacing:{get:function(){return this.Wq},set:function(a){this.Wq!==a&&(this.Wq=a)}},layerSpacing:{get:function(){return this.ie},set:function(a){this.ie!==a&&(this.ie=a)}},layerSpacingParentOverlap:{get:function(){return this.Aq},set:function(a){this.Aq!==a&&(this.Aq=a)}},compaction:{get:function(){return this.Hp},set:function(a){this.Hp!==a&&(this.Hp=a)}},breadthLimit:{get:function(){return this.Ap},set:function(a){this.Ap!==a&&(this.Ap=a)}},rowSpacing:{get:function(){return this.nr},set:function(a){this.nr!==a&&(this.nr=a)}},rowIndent:{get:function(){return this.mr},set:function(a){this.mr!==a&&(this.mr=a)}},commentSpacing:{get:function(){return this.Gp},set:function(a){this.Gp!==a&&(this.Gp=a)}},commentMargin:{get:function(){return this.Fp},set:function(a){this.Fp!==a&&(this.Fp=a)}},setsPortSpot:{get:function(){return this.xr},set:function(a){this.xr!==a&&(this.xr=a)}},portSpot:{get:function(){return this.dr},set:function(a){this.dr.D(a)||(this.dr=a)}},setsChildPortSpot:{get:function(){return this.wr},set:function(a){this.wr!==a&&(this.wr=a)}},childPortSpot:{get:function(){return this.Dp},set:function(a){this.Dp.D(a)||(this.Dp=a)}},childrenCount:{get:function(){return this.children.length}},relativePosition:{get:function(){return this.S},set:function(a){this.S.set(a)}},subtreeSize:{get:function(){return this.Da},set:function(a){this.Da.set(a)}},subtreeOffset:{get:function(){return this.la},set:function(a){this.la.set(a)}}}),Yc.className="TreeVertex";function yp(a){fc.call(this,a),this.$t=new lt(0,0)}qt(yp,fc),yp.prototype.commit=function(){var a=this.link;if(a!==null&&!a.isAvoiding){var y=this.network.layout,x=null,b=null;switch(y.ud){case qd:x=this.fromVertex,b=this.toVertex;break;case Mf:x=this.toVertex,b=this.fromVertex;break;default:bt("Unhandled path value "+y.ud.toString())}if(x!==null&&b!==null){var E=this.$t;if(E.x!==0||E.y!==0||x.qA){b=x.bounds;var z=gd(x),te=y.computeLayerSpacing(x),re=x.rowSpacing;a.vg();var le=a.curve===wc,ce=a.isOrthogonal,de;if(a.uh(),ce||le){for(de=2;4<a.pointsCount;)a.pv(2);var ve=a.i(1),Pe=a.i(2)}else{for(de=1;3<a.pointsCount;)a.pv(1);ve=a.i(0),Pe=a.i(a.pointsCount-1)}var Le=a.i(a.pointsCount-1);z===0?(x.alignment===th?(z=b.bottom+E.y,E.y===0&&ve.y>Le.y+x.rowIndent&&(z=Math.min(z,Math.max(ve.y,z-y.computeNodeIndent(x))))):x.alignment===eh?(z=b.top+E.y,E.y===0&&ve.y<Le.y-x.rowIndent&&(z=Math.max(z,Math.min(ve.y,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.top-x.la.y+E.y:b.y+b.height/2+E.y,le?(a.m(de,ve.x,z),de++,a.m(de,b.right+te,z),de++,a.m(de,b.right+te+(E.x-re)/3,z),de++,a.m(de,b.right+te+2*(E.x-re)/3,z),de++,a.m(de,b.right+te+(E.x-re),z),de++,a.m(de,Pe.x,z)):(ce&&(a.m(de,b.right+te/2,ve.y),de++),a.m(de,b.right+te/2,z),de++,a.m(de,b.right+te+E.x-(ce?re/2:re),z),de++,ce&&a.m(de,a.i(de-1).x,Pe.y))):z===90?(x.alignment===th?(z=b.right+E.x,E.x===0&&ve.x>Le.x+x.rowIndent&&(z=Math.min(z,Math.max(ve.x,z-y.computeNodeIndent(x))))):x.alignment===eh?(z=b.left+E.x,E.x===0&&ve.x<Le.x-x.rowIndent&&(z=Math.max(z,Math.min(ve.x,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.left-x.la.x+E.x:b.x+b.width/2+E.x,le?(a.m(de,z,ve.y),de++,a.m(de,z,b.bottom+te),de++,a.m(de,z,b.bottom+te+(E.y-re)/3),de++,a.m(de,z,b.bottom+te+2*(E.y-re)/3),de++,a.m(de,z,b.bottom+te+(E.y-re)),de++,a.m(de,z,Pe.y)):(ce&&(a.m(de,ve.x,b.bottom+te/2),de++),a.m(de,z,b.bottom+te/2),de++,a.m(de,z,b.bottom+te+E.y-(ce?re/2:re)),de++,ce&&a.m(de,Pe.x,a.i(de-1).y))):z===180?(x.alignment===th?(z=b.bottom+E.y,E.y===0&&ve.y>Le.y+x.rowIndent&&(z=Math.min(z,Math.max(ve.y,z-y.computeNodeIndent(x))))):x.alignment===eh?(z=b.top+E.y,E.y===0&&ve.y<Le.y-x.rowIndent&&(z=Math.max(z,Math.min(ve.y,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.top-x.la.y+E.y:b.y+b.height/2+E.y,le?(a.m(de,ve.x,z),de++,a.m(de,b.left-te,z),de++,a.m(de,b.left-te+(E.x+re)/3,z),de++,a.m(de,b.left-te+2*(E.x+re)/3,z),de++,a.m(de,b.left-te+(E.x+re),z),de++,a.m(de,Pe.x,z)):(ce&&(a.m(de,b.left-te/2,ve.y),de++),a.m(de,b.left-te/2,z),de++,a.m(de,b.left-te+E.x+(ce?re/2:re),z),de++,ce&&a.m(de,a.i(de-1).x,Pe.y))):z===270?(x.alignment===th?(z=b.right+E.x,E.x===0&&ve.x>Le.x+x.rowIndent&&(z=Math.min(z,Math.max(ve.x,z-y.computeNodeIndent(x))))):x.alignment===eh?(z=b.left+E.x,E.x===0&&ve.x<Le.x-x.rowIndent&&(z=Math.max(z,Math.min(ve.x,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.left-x.la.x+E.x:b.x+b.width/2+E.x,le?(a.m(de,z,ve.y),de++,a.m(de,z,b.top-te),de++,a.m(de,z,b.top-te+(E.y+re)/3),de++,a.m(de,z,b.top-te+2*(E.y+re)/3),de++,a.m(de,z,b.top-te+(E.y+re)),de++,a.m(de,z,Pe.y)):(ce&&(a.m(de,ve.x,b.top-te/2),de++),a.m(de,z,b.top-te/2),de++,a.m(de,z,b.top-te+E.y+(ce?re/2:re)),de++,ce&&a.m(de,Pe.x,a.i(de-1).y))):bt("Invalid angle "+z),a.zf()}else E=b,a=this.link,b=this.network.layout,y=gd(x),y!==gd(E)&&(te=b.computeLayerSpacing(x),re=x.bounds,x=E.bounds,y===0&&x.left-re.right<te+1||y===90&&x.top-re.bottom<te+1||y===180&&re.left-x.right<te+1||y===270&&re.top-x.bottom<te+1||(a.vg(),x=a.curve===wc,E=a.isOrthogonal,b=Pg(this.fromVertex.alignment),a.uh(),y===0?(y=re.right+te/2,x?a.pointsCount===4&&(x=a.i(3).y,a.L(1,y-20,a.i(1).y),a.m(2,y-20,x),a.m(3,y,x),a.m(4,y+20,x),a.L(5,a.i(5).x,x)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===90?(y=re.bottom+te/2,x?a.pointsCount===4&&(x=a.i(3).x,a.L(1,a.i(1).x,y-20),a.m(2,x,y-20),a.m(3,x,y),a.m(4,x,y+20),a.L(5,x,a.i(5).y)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)):y===180?(y=re.left-te/2,x?a.pointsCount===4&&(x=a.i(3).y,a.L(1,y+20,a.i(1).y),a.m(2,y+20,x),a.m(3,y,x),a.m(4,y-20,x),a.L(5,a.i(5).x,x)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===270&&(y=re.top-te/2,x?a.pointsCount===4&&(x=a.i(3).x,a.L(1,a.i(1).x,y+20),a.m(2,x,y+20),a.m(3,x,y),a.m(4,x,y-20),a.L(5,x,a.i(5).y)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)),a.zf()))}}},Nt.Object.defineProperties(yp.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},relativePoint:{get:function(){return this.$t},set:function(a){this.$t.set(a)}}}),yp.className="TreeEdge",pa.prototype.initializeStandardTools=function(){this.gb("Action",new Hr,this.mouseDownTools),this.gb("Relinking",new Ui,this.mouseDownTools),this.gb("LinkReshaping",new Vi,this.mouseDownTools),this.gb("Rotating",new mo,this.mouseDownTools),this.gb("Resizing",new Tr,this.mouseDownTools),this.gb("Linking",new Ni,this.mouseMoveTools),this.gb("Dragging",new da,this.mouseMoveTools),this.gb("DragSelecting",new vr,this.mouseMoveTools),this.gb("Panning",new cr,this.mouseMoveTools),this.gb("ContextMenu",new Ro,this.mouseUpTools),this.gb("TextEditing",new No,this.mouseUpTools),this.gb("ClickCreating",new uo,this.mouseUpTools),this.gb("ClickSelecting",new Zo,this.mouseUpTools)},Od("Horizontal",new km),Od("Spot",new Om),Od("Table",new Fm),Od("Viewbox",new zm),Od("TableRow",new Bm),Od("TableColumn",new jm),Od("Graduated",new Fp),Od("Grid",new Rp),Wg.add("GraphLinksModel",Cl),Wg.add("TreeModel",Fc);var rv=yt.go,Xy={get licenseKey(){return pn.licenseKey},set licenseKey(a){pn.licenseKey=a},get version(){return pn.version},Group:_r,EnumValue:tn,List:Ht,Set:Fn,Map:Ii,Point:lt,Size:fi,Rect:jn,Margin:$i,Spot:_i,Geometry:di,PathFigure:rs,PathSegment:Eo,InputEvent:Sl,DiagramEvent:_c,ChangedEvent:Xo,Model:Wi,GraphLinksModel:To,TreeModel:Au,Binding:Us,Transaction:os,UndoManager:ya,CommandHandler:ot,Tool:xo,DraggingTool:da,DraggingInfo:Yn,DraggingOptions:ae,LinkingBaseTool:xn,LinkingTool:Ni,RelinkingTool:Ui,LinkReshapingTool:Vi,ResizingTool:Tr,RotatingTool:mo,ClickSelectingTool:Zo,ActionTool:Hr,ClickCreatingTool:uo,HTMLInfo:to,ContextMenuTool:Ro,DragSelectingTool:vr,PanningTool:cr,TextEditingTool:No,ToolManager:pa,Animation:qa,AnimationManager:Ya,AnimationTrigger:ou,Layer:_a,Diagram:pn,Palette:fe,Overview:ye,Brush:ko,GraphObject:Rt,Panel:hi,RowColumnDefinition:Qs,Shape:eo,TextBlock:Pa,Picture:Gu,Part:nr,Adornment:zo,Node:Li,Link:yi,Placeholder:wu,Layout:Wa,LayoutNetwork:Aa,LayoutVertex:il,LayoutEdge:fc,GridLayout:Ol,PanelLayout:nl,CircularLayout:es,CircularNetwork:gp,CircularVertex:cm,CircularEdge:j0,ForceDirectedLayout:Vl,ForceDirectedNetwork:Af,ForceDirectedVertex:dm,ForceDirectedEdge:hm,LayeredDigraphLayout:ia,LayeredDigraphNetwork:pp,LayeredDigraphVertex:jc,LayeredDigraphEdge:pm,TreeLayout:vo,TreeNetwork:Tf,TreeVertex:Yc,TreeEdge:yp};typeof rv=="object"&&rv.version&&ni("WARNING: a `go` object on the root object is already defined. "+("Debug"in rv?"debug ":"")+"version: "+rv.version+", replaced with version: "+Xy.version),pn.prototype.go=Xy,yt.go=Xy,typeof _e.exports=="object"&&(_e.exports=typeof oe.g!="undefined"?oe.g.go:self.go)}();var se=typeof oe.g!="undefined"?oe.g.go:self.go;const Ce=typeof oe.g!="undefined"?oe.g.go:self.go,we=Ce.Group,Ie=Ce.EnumValue,De=Ce.List,Ke=Ce.Set,Ee=Ce.Map,et=Ce.Point,Je=Ce.Size,Ye=Ce.Rect,tt=Ce.Margin,ht=Ce.Spot,kt=Ce.Geometry,ze=Ce.PathFigure,ee=Ce.PathSegment,ne=Ce.InputEvent,ge=Ce.DiagramEvent,ue=Ce.ChangedEvent,me=Ce.Model,Se=Ce.GraphLinksModel,Ne=Ce.TreeModel,ke=Ce.Binding,Te=Ce.Transaction,We=Ce.UndoManager,$e=Ce.CommandHandler,st=Ce.Tool,ut=Ce.DraggingTool,Mt=Ce.DraggingInfo,nt=Ce.LinkingBaseTool,$t=Ce.LinkingTool,Pt=Ce.RelinkingTool,dn=Ce.LinkReshapingTool,zt=Ce.ResizingTool,Xt=Ce.RotatingTool,fn=Ce.ClickSelectingTool,an=Ce.ActionTool,it=Ce.ClickCreatingTool,Ve=Ce.HTMLInfo,gt=Ce.ContextMenuTool,Bt=Ce.DragSelectingTool,sn=Ce.PanningTool,It=Ce.TextEditingTool,en=Ce.ToolManager,En=Ce.Animation,ei=Ce.AnimationManager,An=Ce.AnimationTrigger,Kn=Ce.Layer,jt=Ce.Diagram,Nn=Ce.Palette,Gn=Ce.Overview,ii=Ce.Brush,Sn=Ce.GraphObject,Yt=Ce.Panel,Zt=Ce.RowColumnDefinition,St=Ce.Shape,rt=Ce.TextBlock,Ft=Ce.TextBlockMetrics,Ot=Ce.Picture,ft=Ce.Part,ct=Ce.Adornment,Ge=Ce.Node,Ae=Ce.Link,xe=Ce.Placeholder,je=Ce.Layout,Qe=Ce.LayoutNetwork,Oe=Ce.LayoutVertex,xt=Ce.LayoutEdge,hn=Ce.GridLayout,Pn=Ce.PanelLayout,wt=Ce.CircularLayout,nn=Ce.CircularNetwork,Mn=Ce.CircularVertex,Zn=Ce.CircularEdge,li=Ce.ForceDirectedLayout,xi=Ce.ForceDirectedNetwork,Mi=Ce.ForceDirectedVertex,Si=Ce.ForceDirectedEdge,Ri=Ce.LayeredDigraphLayout,lr=Ce.LayeredDigraphNetwork,dr=Ce.LayeredDigraphVertex,ur=Ce.LayeredDigraphEdge,Sr=Ce.TreeLayout,Wr=Ce.TreeNetwork,Gi=Ce.TreeVertex,Zr=Ce.TreeEdge,Yi=Ce.version},46963:function(_e){"use strict";_e.exports=oe;var be=/[#.]/g;function oe(se,Ce){for(var we=se||"",Ie=Ce||"div",De={},Ke=0,Ee,et,Je;Ke<we.length;)be.lastIndex=Ke,Je=be.exec(we),Ee=we.slice(Ke,Je?Je.index:we.length),Ee&&(et?et==="#"?De.id=Ee:De.className?De.className.push(Ee):De.className=[Ee]:Ie=Ee,Ke+=Ee.length),Je&&(et=Je[0],Ke++);return{type:"element",tagName:Ie,properties:De,children:[]}}},5641:function(_e,be,oe){"use strict";var se=oe(88914),Ce=oe(47178),we=oe(46963),Ie=oe(92848).Q,De=oe(58951).Q;_e.exports=Ee;var Ke={}.hasOwnProperty;function Ee(ee,ne,ge){var ue=ge?ze(ge):null;return me;function me(Ne,ke){var Te=we(Ne,ne),We=Array.prototype.slice.call(arguments,2),$e=Te.tagName.toLowerCase(),st;if(Te.tagName=ue&&Ke.call(ue,$e)?ue[$e]:$e,ke&&et(ke,Te)&&(We.unshift(ke),ke=null),ke)for(st in ke)Se(Te.properties,st,ke[st]);return Ye(Te.children,We),Te.tagName==="template"&&(Te.content={type:"root",children:Te.children},Te.children=[]),Te}function Se(Ne,ke,Te){var We,$e,st;Te==null||Te!==Te||(We=se(ee,ke),$e=We.property,st=Te,typeof st=="string"&&(We.spaceSeparated?st=Ie(st):We.commaSeparated?st=De(st):We.commaOrSpaceSeparated&&(st=Ie(De(st).join(" ")))),$e==="style"&&typeof Te!="string"&&(st=kt(st)),$e==="className"&&Ne.className&&(st=Ne.className.concat(st)),Ne[$e]=tt(We,$e,st))}}function et(ee,ne){return typeof ee=="string"||"length"in ee||Je(ne.tagName,ee)}function Je(ee,ne){var ge=ne.type;return ee==="input"||!ge||typeof ge!="string"?!1:typeof ne.children=="object"&&"length"in ne.children?!0:(ge=ge.toLowerCase(),ee==="button"?ge!=="menu"&&ge!=="submit"&&ge!=="reset"&&ge!=="button":"value"in ne)}function Ye(ee,ne){var ge,ue;if(typeof ne=="string"||typeof ne=="number"){ee.push({type:"text",value:String(ne)});return}if(typeof ne=="object"&&"length"in ne){for(ge=-1,ue=ne.length;++ge<ue;)Ye(ee,ne[ge]);return}if(typeof ne!="object"||!("type"in ne))throw new Error("Expected node, nodes, or string, got `"+ne+"`");ee.push(ne)}function tt(ee,ne,ge){var ue,me,Se;if(typeof ge!="object"||!("length"in ge))return ht(ee,ne,ge);for(me=ge.length,ue=-1,Se=[];++ue<me;)Se[ue]=ht(ee,ne,ge[ue]);return Se}function ht(ee,ne,ge){var ue=ge;return ee.number||ee.positiveNumber?!isNaN(ue)&&ue!==""&&(ue=Number(ue)):(ee.boolean||ee.overloadedBoolean)&&typeof ue=="string"&&(ue===""||Ce(ge)===Ce(ne))&&(ue=!0),ue}function kt(ee){var ne=[],ge;for(ge in ee)ne.push([ge,ee[ge]].join(": "));return ne.join("; ")}function ze(ee){for(var ne=ee.length,ge=-1,ue={},me;++ge<ne;)me=ee[ge],ue[me.toLowerCase()]=me;return ue}},82073:function(_e,be,oe){"use strict";var se=oe(18795),Ce=oe(5641),we=Ce(se,"div");we.displayName="html",_e.exports=we},43621:function(_e,be,oe){"use strict";_e.exports=oe(82073)},93193:function(_e){var be=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,oe=/\n/g,se=/^\s*/,Ce=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,we=/^:\s*/,Ie=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,De=/^[;\s]*/,Ke=/^\s+|\s+$/g,Ee=`
`,et="/",Je="*",Ye="",tt="comment",ht="declaration";_e.exports=function(ze,ee){if(typeof ze!="string")throw new TypeError("First argument must be a string");if(!ze)return[];ee=ee||{};var ne=1,ge=1;function ue(nt){var $t=nt.match(oe);$t&&(ne+=$t.length);var Pt=nt.lastIndexOf(Ee);ge=~Pt?nt.length-Pt:ge+nt.length}function me(){var nt={line:ne,column:ge};return function($t){return $t.position=new Se(nt),We(),$t}}function Se(nt){this.start=nt,this.end={line:ne,column:ge},this.source=ee.source}Se.prototype.content=ze;var Ne=[];function ke(nt){var $t=new Error(ee.source+":"+ne+":"+ge+": "+nt);if($t.reason=nt,$t.filename=ee.source,$t.line=ne,$t.column=ge,$t.source=ze,ee.silent)Ne.push($t);else throw $t}function Te(nt){var $t=nt.exec(ze);if($t){var Pt=$t[0];return ue(Pt),ze=ze.slice(Pt.length),$t}}function We(){Te(se)}function $e(nt){var $t;for(nt=nt||[];$t=st();)$t!==!1&&nt.push($t);return nt}function st(){var nt=me();if(!(et!=ze.charAt(0)||Je!=ze.charAt(1))){for(var $t=2;Ye!=ze.charAt($t)&&(Je!=ze.charAt($t)||et!=ze.charAt($t+1));)++$t;if($t+=2,Ye===ze.charAt($t-1))return ke("End of comment missing");var Pt=ze.slice(2,$t-2);return ge+=2,ue(Pt),ze=ze.slice($t),ge+=2,nt({type:tt,comment:Pt})}}function ut(){var nt=me(),$t=Te(Ce);if($t){if(st(),!Te(we))return ke("property missing ':'");var Pt=Te(Ie),dn=nt({type:ht,property:kt($t[0].replace(be,Ye)),value:Pt?kt(Pt[0].replace(be,Ye)):Ye});return Te(De),dn}}function Mt(){var nt=[];$e(nt);for(var $t;$t=ut();)$t!==!1&&(nt.push($t),$e(nt));return nt}return We(),Mt()};function kt(ze){return ze?ze.replace(Ke,Ye):Ye}},91241:function(_e){"use strict";_e.exports=be;function be(oe){var se=typeof oe=="string"?oe.charCodeAt(0):oe;return se>=97&&se<=122||se>=65&&se<=90}},21127:function(_e,be,oe){"use strict";var se=oe(91241),Ce=oe(22347);_e.exports=we;function we(Ie){return se(Ie)||Ce(Ie)}},22347:function(_e){"use strict";_e.exports=be;function be(oe){var se=typeof oe=="string"?oe.charCodeAt(0):oe;return se>=48&&se<=57}},65207:function(_e){"use strict";_e.exports=be;function be(oe){var se=typeof oe=="string"?oe.charCodeAt(0):oe;return se>=97&&se<=102||se>=65&&se<=70||se>=48&&se<=57}},67842:function(_e){"use strict";var be,oe=59;_e.exports=se;function se(Ce){var we="&"+Ce+";",Ie;return be=be||document.createElement("i"),be.innerHTML=we,Ie=be.textContent,Ie.charCodeAt(Ie.length-1)===oe&&Ce!=="semi"||Ie===we?!1:Ie}},12256:function(_e,be,oe){"use strict";var se=oe(47854),Ce=oe(80501),we=oe(22347),Ie=oe(65207),De=oe(21127),Ke=oe(67842);_e.exports=an;var Ee={}.hasOwnProperty,et=String.fromCharCode,Je=Function.prototype,Ye={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},tt=9,ht=10,kt=12,ze=32,ee=38,ne=59,ge=60,ue=61,me=35,Se=88,Ne=120,ke=65533,Te="named",We="hexadecimal",$e="decimal",st={};st[We]=16,st[$e]=10;var ut={};ut[Te]=De,ut[$e]=we,ut[We]=Ie;var Mt=1,nt=2,$t=3,Pt=4,dn=5,zt=6,Xt=7,fn={};fn[Mt]="Named character references must be terminated by a semicolon",fn[nt]="Numeric character references must be terminated by a semicolon",fn[$t]="Named character references cannot be empty",fn[Pt]="Numeric character references cannot be empty",fn[dn]="Named character references must be known",fn[zt]="Numeric character references cannot be disallowed",fn[Xt]="Numeric character references cannot be outside the permissible Unicode range";function an(Bt,sn){var It={},en,En;sn||(sn={});for(En in Ye)en=sn[En],It[En]=en==null?Ye[En]:en;return(It.position.indent||It.position.start)&&(It.indent=It.position.indent||[],It.position=It.position.start),it(Bt,It)}function it(Bt,sn){var It=sn.additional,en=sn.nonTerminated,En=sn.text,ei=sn.reference,An=sn.warning,Kn=sn.textContext,jt=sn.referenceContext,Nn=sn.warningContext,Gn=sn.position,ii=sn.indent||[],Sn=Bt.length,Yt=0,Zt=-1,St=Gn.column||1,rt=Gn.line||1,Ft="",Ot=[],ft,ct,Ge,Ae,xe,je,Qe,Oe,xt,hn,Pn,wt,nn,Mn,Zn,li,xi,Mi,Si;for(typeof It=="string"&&(It=It.charCodeAt(0)),li=Ri(),Oe=An?lr:Je,Yt--,Sn++;++Yt<Sn;)if(xe===ht&&(St=ii[Zt]||1),xe=Bt.charCodeAt(Yt),xe===ee){if(Qe=Bt.charCodeAt(Yt+1),Qe===tt||Qe===ht||Qe===kt||Qe===ze||Qe===ee||Qe===ge||Qe!==Qe||It&&Qe===It){Ft+=et(xe),St++;continue}for(nn=Yt+1,wt=nn,Si=nn,Qe===me?(Si=++wt,Qe=Bt.charCodeAt(Si),Qe===Se||Qe===Ne?(Mn=We,Si=++wt):Mn=$e):Mn=Te,ft="",Pn="",Ae="",Zn=ut[Mn],Si--;++Si<Sn&&(Qe=Bt.charCodeAt(Si),!!Zn(Qe));)Ae+=et(Qe),Mn===Te&&Ee.call(se,Ae)&&(ft=Ae,Pn=se[Ae]);Ge=Bt.charCodeAt(Si)===ne,Ge&&(Si++,ct=Mn===Te?Ke(Ae):!1,ct&&(ft=Ae,Pn=ct)),Mi=1+Si-nn,!Ge&&!en||(Ae?Mn===Te?(Ge&&!Pn?Oe(dn,1):(ft!==Ae&&(Si=wt+ft.length,Mi=1+Si-wt,Ge=!1),Ge||(xt=ft?Mt:$t,sn.attribute?(Qe=Bt.charCodeAt(Si),Qe===ue?(Oe(xt,Mi),Pn=null):De(Qe)?Pn=null:Oe(xt,Mi)):Oe(xt,Mi))),je=Pn):(Ge||Oe(nt,Mi),je=parseInt(Ae,st[Mn]),Ve(je)?(Oe(Xt,Mi),je=et(ke)):je in Ce?(Oe(zt,Mi),je=Ce[je]):(hn="",gt(je)&&Oe(zt,Mi),je>65535&&(je-=65536,hn+=et(je>>>10|55296),je=56320|je&1023),je=hn+et(je))):Mn!==Te&&Oe(Pt,Mi)),je?(dr(),li=Ri(),Yt=Si-1,St+=Si-nn+1,Ot.push(je),xi=Ri(),xi.offset++,ei&&ei.call(jt,je,{start:li,end:xi},Bt.slice(nn-1,Si)),li=xi):(Ae=Bt.slice(nn-1,Si),Ft+=Ae,St+=Ae.length,Yt=Si-1)}else xe===10&&(rt++,Zt++,St=0),xe===xe?(Ft+=et(xe),St++):dr();return Ot.join("");function Ri(){return{line:rt,column:St,offset:Yt+(Gn.offset||0)}}function lr(ur,Sr){var Wr=Ri();Wr.column+=Sr,Wr.offset+=Sr,An.call(Nn,fn[ur],Wr,ur)}function dr(){Ft&&(Ot.push(Ft),En&&En.call(Kn,Ft,{start:li,end:Ri()}),Ft="")}}function Ve(Bt){return Bt>=55296&&Bt<=57343||Bt>1114111}function gt(Bt){return Bt>=1&&Bt<=8||Bt===11||Bt>=13&&Bt<=31||Bt>=127&&Bt<=159||Bt>=64976&&Bt<=65007||(Bt&65535)===65535||(Bt&65535)===65534}},68398:function(_e,be,oe){var se=typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope?self:{};var Ce=function(we){var Ie=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,De=0,Ke={},Ee={manual:we.Prism&&we.Prism.manual,disableWorkerMessageHandler:we.Prism&&we.Prism.disableWorkerMessageHandler,util:{encode:function ue(me){return me instanceof et?new et(me.type,ue(me.content),me.alias):Array.isArray(me)?me.map(ue):me.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(ue){return Object.prototype.toString.call(ue).slice(8,-1)},objId:function(ue){return ue.__id||Object.defineProperty(ue,"__id",{value:++De}),ue.__id},clone:function ue(me,Se){Se=Se||{};var Ne,ke;switch(Ee.util.type(me)){case"Object":if(ke=Ee.util.objId(me),Se[ke])return Se[ke];Ne={},Se[ke]=Ne;for(var Te in me)me.hasOwnProperty(Te)&&(Ne[Te]=ue(me[Te],Se));return Ne;case"Array":return ke=Ee.util.objId(me),Se[ke]?Se[ke]:(Ne=[],Se[ke]=Ne,me.forEach(function(We,$e){Ne[$e]=ue(We,Se)}),Ne);default:return me}},getLanguage:function(ue){for(;ue;){var me=Ie.exec(ue.className);if(me)return me[1].toLowerCase();ue=ue.parentElement}return"none"},setLanguage:function(ue,me){ue.className=ue.className.replace(RegExp(Ie,"gi"),""),ue.classList.add("language-"+me)},currentScript:function(){if(typeof document=="undefined")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(Ne){var ue=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(Ne.stack)||[])[1];if(ue){var me=document.getElementsByTagName("script");for(var Se in me)if(me[Se].src==ue)return me[Se]}return null}},isActive:function(ue,me,Se){for(var Ne="no-"+me;ue;){var ke=ue.classList;if(ke.contains(me))return!0;if(ke.contains(Ne))return!1;ue=ue.parentElement}return!!Se}},languages:{plain:Ke,plaintext:Ke,text:Ke,txt:Ke,extend:function(ue,me){var Se=Ee.util.clone(Ee.languages[ue]);for(var Ne in me)Se[Ne]=me[Ne];return Se},insertBefore:function(ue,me,Se,Ne){Ne=Ne||Ee.languages;var ke=Ne[ue],Te={};for(var We in ke)if(ke.hasOwnProperty(We)){if(We==me)for(var $e in Se)Se.hasOwnProperty($e)&&(Te[$e]=Se[$e]);Se.hasOwnProperty(We)||(Te[We]=ke[We])}var st=Ne[ue];return Ne[ue]=Te,Ee.languages.DFS(Ee.languages,function(ut,Mt){Mt===st&&ut!=ue&&(this[ut]=Te)}),Te},DFS:function ue(me,Se,Ne,ke){ke=ke||{};var Te=Ee.util.objId;for(var We in me)if(me.hasOwnProperty(We)){Se.call(me,We,me[We],Ne||We);var $e=me[We],st=Ee.util.type($e);st==="Object"&&!ke[Te($e)]?(ke[Te($e)]=!0,ue($e,Se,null,ke)):st==="Array"&&!ke[Te($e)]&&(ke[Te($e)]=!0,ue($e,Se,We,ke))}}},plugins:{},highlightAll:function(ue,me){Ee.highlightAllUnder(document,ue,me)},highlightAllUnder:function(ue,me,Se){var Ne={callback:Se,container:ue,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};Ee.hooks.run("before-highlightall",Ne),Ne.elements=Array.prototype.slice.apply(Ne.container.querySelectorAll(Ne.selector)),Ee.hooks.run("before-all-elements-highlight",Ne);for(var ke=0,Te;Te=Ne.elements[ke++];)Ee.highlightElement(Te,me===!0,Ne.callback)},highlightElement:function(ue,me,Se){var Ne=Ee.util.getLanguage(ue),ke=Ee.languages[Ne];Ee.util.setLanguage(ue,Ne);var Te=ue.parentElement;Te&&Te.nodeName.toLowerCase()==="pre"&&Ee.util.setLanguage(Te,Ne);var We=ue.textContent,$e={element:ue,language:Ne,grammar:ke,code:We};function st(Mt){$e.highlightedCode=Mt,Ee.hooks.run("before-insert",$e),$e.element.innerHTML=$e.highlightedCode,Ee.hooks.run("after-highlight",$e),Ee.hooks.run("complete",$e),Se&&Se.call($e.element)}if(Ee.hooks.run("before-sanity-check",$e),Te=$e.element.parentElement,Te&&Te.nodeName.toLowerCase()==="pre"&&!Te.hasAttribute("tabindex")&&Te.setAttribute("tabindex","0"),!$e.code){Ee.hooks.run("complete",$e),Se&&Se.call($e.element);return}if(Ee.hooks.run("before-highlight",$e),!$e.grammar){st(Ee.util.encode($e.code));return}if(me&&we.Worker){var ut=new Worker(Ee.filename);ut.onmessage=function(Mt){st(Mt.data)},ut.postMessage(JSON.stringify({language:$e.language,code:$e.code,immediateClose:!0}))}else st(Ee.highlight($e.code,$e.grammar,$e.language))},highlight:function(ue,me,Se){var Ne={code:ue,grammar:me,language:Se};if(Ee.hooks.run("before-tokenize",Ne),!Ne.grammar)throw new Error('The language "'+Ne.language+'" has no grammar.');return Ne.tokens=Ee.tokenize(Ne.code,Ne.grammar),Ee.hooks.run("after-tokenize",Ne),et.stringify(Ee.util.encode(Ne.tokens),Ne.language)},tokenize:function(ue,me){var Se=me.rest;if(Se){for(var Ne in Se)me[Ne]=Se[Ne];delete me.rest}var ke=new tt;return ht(ke,ke.head,ue),Ye(ue,ke,me,ke.head,0),ze(ke)},hooks:{all:{},add:function(ue,me){var Se=Ee.hooks.all;Se[ue]=Se[ue]||[],Se[ue].push(me)},run:function(ue,me){var Se=Ee.hooks.all[ue];if(!(!Se||!Se.length))for(var Ne=0,ke;ke=Se[Ne++];)ke(me)}},Token:et};we.Prism=Ee;function et(ue,me,Se,Ne){this.type=ue,this.content=me,this.alias=Se,this.length=(Ne||"").length|0}et.stringify=function ue(me,Se){if(typeof me=="string")return me;if(Array.isArray(me)){var Ne="";return me.forEach(function(st){Ne+=ue(st,Se)}),Ne}var ke={type:me.type,content:ue(me.content,Se),tag:"span",classes:["token",me.type],attributes:{},language:Se},Te=me.alias;Te&&(Array.isArray(Te)?Array.prototype.push.apply(ke.classes,Te):ke.classes.push(Te)),Ee.hooks.run("wrap",ke);var We="";for(var $e in ke.attributes)We+=" "+$e+'="'+(ke.attributes[$e]||"").replace(/"/g,"&quot;")+'"';return"<"+ke.tag+' class="'+ke.classes.join(" ")+'"'+We+">"+ke.content+"</"+ke.tag+">"};function Je(ue,me,Se,Ne){ue.lastIndex=me;var ke=ue.exec(Se);if(ke&&Ne&&ke[1]){var Te=ke[1].length;ke.index+=Te,ke[0]=ke[0].slice(Te)}return ke}function Ye(ue,me,Se,Ne,ke,Te){for(var We in Se)if(!(!Se.hasOwnProperty(We)||!Se[We])){var $e=Se[We];$e=Array.isArray($e)?$e:[$e];for(var st=0;st<$e.length;++st){if(Te&&Te.cause==We+","+st)return;var ut=$e[st],Mt=ut.inside,nt=!!ut.lookbehind,$t=!!ut.greedy,Pt=ut.alias;if($t&&!ut.pattern.global){var dn=ut.pattern.toString().match(/[imsuy]*$/)[0];ut.pattern=RegExp(ut.pattern.source,dn+"g")}for(var zt=ut.pattern||ut,Xt=Ne.next,fn=ke;Xt!==me.tail&&!(Te&&fn>=Te.reach);fn+=Xt.value.length,Xt=Xt.next){var an=Xt.value;if(me.length>ue.length)return;if(!(an instanceof et)){var it=1,Ve;if($t){if(Ve=Je(zt,fn,ue,nt),!Ve||Ve.index>=ue.length)break;var It=Ve.index,gt=Ve.index+Ve[0].length,Bt=fn;for(Bt+=Xt.value.length;It>=Bt;)Xt=Xt.next,Bt+=Xt.value.length;if(Bt-=Xt.value.length,fn=Bt,Xt.value instanceof et)continue;for(var sn=Xt;sn!==me.tail&&(Bt<gt||typeof sn.value=="string");sn=sn.next)it++,Bt+=sn.value.length;it--,an=ue.slice(fn,Bt),Ve.index-=fn}else if(Ve=Je(zt,0,an,nt),!Ve)continue;var It=Ve.index,en=Ve[0],En=an.slice(0,It),ei=an.slice(It+en.length),An=fn+an.length;Te&&An>Te.reach&&(Te.reach=An);var Kn=Xt.prev;En&&(Kn=ht(me,Kn,En),fn+=En.length),kt(me,Kn,it);var jt=new et(We,Mt?Ee.tokenize(en,Mt):en,Pt,en);if(Xt=ht(me,Kn,jt),ei&&ht(me,Xt,ei),it>1){var Nn={cause:We+","+st,reach:An};Ye(ue,me,Se,Xt.prev,fn,Nn),Te&&Nn.reach>Te.reach&&(Te.reach=Nn.reach)}}}}}}function tt(){var ue={value:null,prev:null,next:null},me={value:null,prev:ue,next:null};ue.next=me,this.head=ue,this.tail=me,this.length=0}function ht(ue,me,Se){var Ne=me.next,ke={value:Se,prev:me,next:Ne};return me.next=ke,Ne.prev=ke,ue.length++,ke}function kt(ue,me,Se){for(var Ne=me.next,ke=0;ke<Se&&Ne!==ue.tail;ke++)Ne=Ne.next;me.next=Ne,Ne.prev=me,ue.length-=ke}function ze(ue){for(var me=[],Se=ue.head.next;Se!==ue.tail;)me.push(Se.value),Se=Se.next;return me}if(!we.document)return we.addEventListener&&(Ee.disableWorkerMessageHandler||we.addEventListener("message",function(ue){var me=JSON.parse(ue.data),Se=me.language,Ne=me.code,ke=me.immediateClose;we.postMessage(Ee.highlight(Ne,Ee.languages[Se],Se)),ke&&we.close()},!1)),Ee;var ee=Ee.util.currentScript();ee&&(Ee.filename=ee.src,ee.hasAttribute("data-manual")&&(Ee.manual=!0));function ne(){Ee.manual||Ee.highlightAll()}if(!Ee.manual){var ge=document.readyState;ge==="loading"||ge==="interactive"&&ee&&ee.defer?document.addEventListener("DOMContentLoaded",ne):window.requestAnimationFrame?window.requestAnimationFrame(ne):window.setTimeout(ne,16)}return Ee}(se);_e.exports&&(_e.exports=Ce),typeof oe.g!="undefined"&&(oe.g.Prism=Ce)},88914:function(_e,be,oe){"use strict";var se=oe(47178),Ce=oe(19095),we=oe(1969),Ie="data";_e.exports=et;var De=/^data[-\w.:]+$/i,Ke=/-[a-z]/g,Ee=/[A-Z]/g;function et(kt,ze){var ee=se(ze),ne=ze,ge=we;return ee in kt.normal?kt.property[kt.normal[ee]]:(ee.length>4&&ee.slice(0,4)===Ie&&De.test(ze)&&(ze.charAt(4)==="-"?ne=Je(ze):ze=Ye(ze),ge=Ce),new ge(ne,ze))}function Je(kt){var ze=kt.slice(5).replace(Ke,ht);return Ie+ze.charAt(0).toUpperCase()+ze.slice(1)}function Ye(kt){var ze=kt.slice(4);return Ke.test(ze)?kt:(ze=ze.replace(Ee,tt),ze.charAt(0)!=="-"&&(ze="-"+ze),Ie+ze)}function tt(kt){return"-"+kt.toLowerCase()}function ht(kt){return kt.charAt(1).toUpperCase()}},18795:function(_e,be,oe){"use strict";var se=oe(83576),Ce=oe(8179),we=oe(59780),Ie=oe(68244),De=oe(20019),Ke=oe(38567);_e.exports=se([we,Ce,Ie,De,Ke])},20019:function(_e,be,oe){"use strict";var se=oe(70167),Ce=oe(79318),we=se.booleanish,Ie=se.number,De=se.spaceSeparated;_e.exports=Ce({transform:Ke,properties:{ariaActiveDescendant:null,ariaAtomic:we,ariaAutoComplete:null,ariaBusy:we,ariaChecked:we,ariaColCount:Ie,ariaColIndex:Ie,ariaColSpan:Ie,ariaControls:De,ariaCurrent:null,ariaDescribedBy:De,ariaDetails:null,ariaDisabled:we,ariaDropEffect:De,ariaErrorMessage:null,ariaExpanded:we,ariaFlowTo:De,ariaGrabbed:we,ariaHasPopup:null,ariaHidden:we,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:De,ariaLevel:Ie,ariaLive:null,ariaModal:we,ariaMultiLine:we,ariaMultiSelectable:we,ariaOrientation:null,ariaOwns:De,ariaPlaceholder:null,ariaPosInSet:Ie,ariaPressed:we,ariaReadOnly:we,ariaRelevant:null,ariaRequired:we,ariaRoleDescription:De,ariaRowCount:Ie,ariaRowIndex:Ie,ariaRowSpan:Ie,ariaSelected:we,ariaSetSize:Ie,ariaSort:null,ariaValueMax:Ie,ariaValueMin:Ie,ariaValueNow:Ie,ariaValueText:null,role:null}});function Ke(Ee,et){return et==="role"?et:"aria-"+et.slice(4).toLowerCase()}},38567:function(_e,be,oe){"use strict";var se=oe(70167),Ce=oe(79318),we=oe(85804),Ie=se.boolean,De=se.overloadedBoolean,Ke=se.booleanish,Ee=se.number,et=se.spaceSeparated,Je=se.commaSeparated;_e.exports=Ce({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:we,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Je,acceptCharset:et,accessKey:et,action:null,allow:null,allowFullScreen:Ie,allowPaymentRequest:Ie,allowUserMedia:Ie,alt:null,as:null,async:Ie,autoCapitalize:null,autoComplete:et,autoFocus:Ie,autoPlay:Ie,capture:Ie,charSet:null,checked:Ie,cite:null,className:et,cols:Ee,colSpan:null,content:null,contentEditable:Ke,controls:Ie,controlsList:et,coords:Ee|Je,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ie,defer:Ie,dir:null,dirName:null,disabled:Ie,download:De,draggable:Ke,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ie,formTarget:null,headers:et,height:Ee,hidden:Ie,high:Ee,href:null,hrefLang:null,htmlFor:et,httpEquiv:et,id:null,imageSizes:null,imageSrcSet:Je,inputMode:null,integrity:null,is:null,isMap:Ie,itemId:null,itemProp:et,itemRef:et,itemScope:Ie,itemType:et,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ie,low:Ee,manifest:null,max:null,maxLength:Ee,media:null,method:null,min:null,minLength:Ee,multiple:Ie,muted:Ie,name:null,nonce:null,noModule:Ie,noValidate:Ie,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:Ie,optimum:Ee,pattern:null,ping:et,placeholder:null,playsInline:Ie,poster:null,preload:null,readOnly:Ie,referrerPolicy:null,rel:et,required:Ie,reversed:Ie,rows:Ee,rowSpan:Ee,sandbox:et,scope:null,scoped:Ie,seamless:Ie,selected:Ie,shape:null,size:Ee,sizes:null,slot:null,span:Ee,spellCheck:Ke,src:null,srcDoc:null,srcLang:null,srcSet:Je,start:Ee,step:null,style:null,tabIndex:Ee,target:null,title:null,translate:null,type:null,typeMustMatch:Ie,useMap:null,value:Ke,width:Ee,wrap:null,align:null,aLink:null,archive:et,axis:null,background:null,bgColor:null,border:Ee,borderColor:null,bottomMargin:Ee,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ie,declare:Ie,event:null,face:null,frame:null,frameBorder:null,hSpace:Ee,leftMargin:Ee,link:null,longDesc:null,lowSrc:null,marginHeight:Ee,marginWidth:Ee,noResize:Ie,noHref:Ie,noShade:Ie,noWrap:Ie,object:null,profile:null,prompt:null,rev:null,rightMargin:Ee,rules:null,scheme:null,scrolling:Ke,standby:null,summary:null,text:null,topMargin:Ee,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ee,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ie,disableRemotePlayback:Ie,prefix:null,property:null,results:Ee,security:null,unselectable:null}})},85804:function(_e,be,oe){"use strict";var se=oe(56432);_e.exports=Ce;function Ce(we,Ie){return se(we,Ie.toLowerCase())}},56432:function(_e){"use strict";_e.exports=be;function be(oe,se){return se in oe?oe[se]:se}},79318:function(_e,be,oe){"use strict";var se=oe(47178),Ce=oe(44347),we=oe(19095);_e.exports=Ie;function Ie(De){var Ke=De.space,Ee=De.mustUseProperty||[],et=De.attributes||{},Je=De.properties,Ye=De.transform,tt={},ht={},kt,ze;for(kt in Je)ze=new we(kt,Ye(et,kt),Je[kt],Ke),Ee.indexOf(kt)!==-1&&(ze.mustUseProperty=!0),tt[kt]=ze,ht[se(kt)]=kt,ht[se(ze.attribute)]=kt;return new Ce(tt,ht,Ke)}},19095:function(_e,be,oe){"use strict";var se=oe(1969),Ce=oe(70167);_e.exports=De,De.prototype=new se,De.prototype.defined=!0;var we=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],Ie=we.length;function De(Ee,et,Je,Ye){var tt=-1,ht;for(Ke(this,"space",Ye),se.call(this,Ee,et);++tt<Ie;)ht=we[tt],Ke(this,ht,(Je&Ce[ht])===Ce[ht])}function Ke(Ee,et,Je){Je&&(Ee[et]=Je)}},1969:function(_e){"use strict";_e.exports=oe;var be=oe.prototype;be.space=null,be.attribute=null,be.property=null,be.boolean=!1,be.booleanish=!1,be.overloadedBoolean=!1,be.number=!1,be.commaSeparated=!1,be.spaceSeparated=!1,be.commaOrSpaceSeparated=!1,be.mustUseProperty=!1,be.defined=!1;function oe(se,Ce){this.property=se,this.attribute=Ce}},83576:function(_e,be,oe){"use strict";var se=oe(97270),Ce=oe(44347);_e.exports=we;function we(Ie){for(var De=Ie.length,Ke=[],Ee=[],et=-1,Je,Ye;++et<De;)Je=Ie[et],Ke.push(Je.property),Ee.push(Je.normal),Ye=Je.space;return new Ce(se.apply(null,Ke),se.apply(null,Ee),Ye)}},44347:function(_e){"use strict";_e.exports=oe;var be=oe.prototype;be.space=null,be.normal={},be.property={};function oe(se,Ce,we){this.property=se,this.normal=Ce,we&&(this.space=we)}},70167:function(_e,be){"use strict";var oe=0;be.boolean=se(),be.booleanish=se(),be.overloadedBoolean=se(),be.number=se(),be.spaceSeparated=se(),be.commaSeparated=se(),be.commaOrSpaceSeparated=se();function se(){return Math.pow(2,++oe)}},8179:function(_e,be,oe){"use strict";var se=oe(79318);_e.exports=se({space:"xlink",transform:Ce,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function Ce(we,Ie){return"xlink:"+Ie.slice(5).toLowerCase()}},59780:function(_e,be,oe){"use strict";var se=oe(79318);_e.exports=se({space:"xml",transform:Ce,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Ce(we,Ie){return"xml:"+Ie.slice(3).toLowerCase()}},68244:function(_e,be,oe){"use strict";var se=oe(79318),Ce=oe(85804);_e.exports=se({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Ce,properties:{xmlns:null,xmlnsXLink:null}})},47178:function(_e){"use strict";_e.exports=be;function be(oe){return oe.toLowerCase()}},17115:function(_e,be,oe){"use strict";oe.d(be,{ZP:function(){return Ee}});var se=oe(29043),Ce=oe(59301),we=oe(87746),Ie=0,De=(0,we.Z)();function Ke(){var et;return De?(et=Ie,Ie+=1):et="TEST_OR_SSR",et}function Ee(et){var Je=Ce.useState(),Ye=(0,se.Z)(Je,2),tt=Ye[0],ht=Ye[1];return Ce.useEffect(function(){ht("rc_select_".concat(Ke()))},[]),et||tt}},77861:function(_e,be,oe){"use strict";oe.d(be,{Ac:function(){return je},Xo:function(){return Si},Wx:function(){return lr},ZP:function(){return Un},lk:function(){return Ne}});var se=oe(5891),Ce=oe(26390),we=oe(80962),Ie=oe(57259),De=oe(29043),Ke=oe(19149),Ee=oe(80665),et=oe(35788),Je=oe(51395),Ye=oe(59301),tt=oe(92310),ht=oe.n(tt),kt=oe(28800),ze=oe(93144),ee=oe(85108),ne=oe(20475),ge=function(yt){var In=yt.className,zn=yt.customizeIcon,mi=yt.customizeIconProps,Rn=yt.onMouseDown,bt=yt.onClick,Ut=yt.children,Ln;return typeof zn=="function"?Ln=zn(mi):Ln=zn,Ye.createElement("span",{className:In,onMouseDown:function(Gt){Gt.preventDefault(),Rn&&Rn(Gt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:bt,"aria-hidden":!0},Ln!==void 0?Ln:Ye.createElement("span",{className:ht()(In.split(/\s+/).map(function(ni){return"".concat(ni,"-icon")}))},Ut))},ue=ge;function me(Vt,yt,In,zn,mi){var Rn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,bt=arguments.length>6?arguments[6]:void 0,Ut=arguments.length>7?arguments[7]:void 0,Ln=Ye.useMemo(function(){if((0,Ee.Z)(zn)==="object")return zn.clearIcon;if(mi)return mi},[zn,mi]),ni=Ye.useMemo(function(){return!!(!Rn&&zn&&(In.length||bt)&&!(Ut==="combobox"&&bt===""))},[zn,Rn,In.length,bt,Ut]);return{allowClear:ni,clearIcon:Ye.createElement(ue,{className:"".concat(Vt,"-clear"),onMouseDown:yt,customizeIcon:Ln},"\xD7")}}var Se=Ye.createContext(null);function Ne(){return Ye.useContext(Se)}function ke(){var Vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,yt=Ye.useState(!1),In=(0,De.Z)(yt,2),zn=In[0],mi=In[1],Rn=Ye.useRef(null),bt=function(){window.clearTimeout(Rn.current)};Ye.useEffect(function(){return bt},[]);var Ut=function(ni,Gt){bt(),Rn.current=window.setTimeout(function(){mi(ni),Gt&&Gt()},Vt)};return[zn,Ut,bt]}function Te(){var Vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,yt=Ye.useRef(null),In=Ye.useRef(null);Ye.useEffect(function(){return function(){window.clearTimeout(In.current)}},[]);function zn(mi){(mi||yt.current===null)&&(yt.current=mi),window.clearTimeout(In.current),In.current=window.setTimeout(function(){yt.current=null},Vt)}return[function(){return yt.current},zn]}function We(Vt,yt,In,zn){var mi=Ye.useRef(null);mi.current={open:yt,triggerOpen:In,customizedTrigger:zn},Ye.useEffect(function(){function Rn(bt){var Ut;if(!((Ut=mi.current)!==null&&Ut!==void 0&&Ut.customizedTrigger)){var Ln=bt.target;Ln.shadowRoot&&bt.composed&&(Ln=bt.composedPath()[0]||Ln),mi.current.open&&Vt().filter(function(ni){return ni}).every(function(ni){return!ni.contains(Ln)&&ni!==Ln})&&mi.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Rn),function(){return window.removeEventListener("mousedown",Rn)}},[])}var $e=oe(36994),st=oe(11780),ut=function(yt,In){var zn,mi,Rn=yt.prefixCls,bt=yt.id,Ut=yt.inputElement,Ln=yt.disabled,ni=yt.tabIndex,Gt=yt.autoFocus,yn=yt.autoComplete,Qt=yt.editable,un=yt.activeDescendantId,wn=yt.value,gn=yt.maxLength,kn=yt.onKeyDown,Bn=yt.onMouseDown,Vn=yt.onChange,Jn=yt.onPaste,Wn=yt.onCompositionStart,gi=yt.onCompositionEnd,Fi=yt.open,ir=yt.attrs,zi=Ut||Ye.createElement("input",null),tn=zi,Ai=tn.ref,Bi=tn.props,Ti=Bi.onKeyDown,hr=Bi.onChange,tr=Bi.onMouseDown,br=Bi.onCompositionStart,Xi=Bi.onCompositionEnd,Hi=Bi.style;return(0,Je.Kp)(!("maxLength"in zi.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),zi=Ye.cloneElement(zi,(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({type:"search"},Bi),{},{id:bt,ref:(0,ne.sQ)(In,Ai),disabled:Ln,tabIndex:ni,autoComplete:yn||"off",autoFocus:Gt,className:ht()("".concat(Rn,"-selection-search-input"),(zn=zi)===null||zn===void 0||(mi=zn.props)===null||mi===void 0?void 0:mi.className),role:"combobox","aria-label":"Search","aria-expanded":Fi||!1,"aria-haspopup":"listbox","aria-owns":"".concat(bt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(bt,"_list"),"aria-activedescendant":Fi?un:void 0},ir),{},{value:Qt?wn:"",maxLength:gn,readOnly:!Qt,unselectable:Qt?null:"on",style:(0,Ie.Z)((0,Ie.Z)({},Hi),{},{opacity:Qt?null:0}),onKeyDown:function(Ht){kn(Ht),Ti&&Ti(Ht)},onMouseDown:function(Ht){Bn(Ht),tr&&tr(Ht)},onChange:function(Ht){Vn(Ht),hr&&hr(Ht)},onCompositionStart:function(Ht){Wn(Ht),br&&br(Ht)},onCompositionEnd:function(Ht){gi(Ht),Xi&&Xi(Ht)},onPaste:Jn})),zi},Mt=Ye.forwardRef(ut);Mt.displayName="Input";var nt=Mt;function $t(Vt){return Array.isArray(Vt)?Vt:Vt!==void 0?[Vt]:[]}var Pt=typeof window!="undefined"&&window.document&&window.document.documentElement,dn=Pt;function zt(Vt){return Vt!=null}function Xt(Vt){return!Vt&&Vt!==0}function fn(Vt){return["string","number"].includes((0,Ee.Z)(Vt))}function an(Vt){var yt=void 0;return Vt&&(fn(Vt.title)?yt=Vt.title.toString():fn(Vt.label)&&(yt=Vt.label.toString())),yt}function it(Vt,yt){dn?Ye.useLayoutEffect(Vt,yt):Ye.useEffect(Vt,yt)}function Ve(Vt){var yt;return(yt=Vt.key)!==null&&yt!==void 0?yt:Vt.value}var gt=function(yt){yt.preventDefault(),yt.stopPropagation()},Bt=function(yt){var In=yt.id,zn=yt.prefixCls,mi=yt.values,Rn=yt.open,bt=yt.searchValue,Ut=yt.autoClearSearchValue,Ln=yt.inputRef,ni=yt.placeholder,Gt=yt.disabled,yn=yt.mode,Qt=yt.showSearch,un=yt.autoFocus,wn=yt.autoComplete,gn=yt.activeDescendantId,kn=yt.tabIndex,Bn=yt.removeIcon,Vn=yt.maxTagCount,Jn=yt.maxTagTextLength,Wn=yt.maxTagPlaceholder,gi=Wn===void 0?function(Rr){return"+ ".concat(Rr.length," ...")}:Wn,Fi=yt.tagRender,ir=yt.onToggleOpen,zi=yt.onRemove,tn=yt.onInputChange,Ai=yt.onInputPaste,Bi=yt.onInputKeyDown,Ti=yt.onInputMouseDown,hr=yt.onInputCompositionStart,tr=yt.onInputCompositionEnd,br=Ye.useRef(null),Xi=(0,Ye.useState)(0),Hi=(0,De.Z)(Xi,2),Ir=Hi[0],Ht=Hi[1],Kr=(0,Ye.useState)(!1),Fn=(0,De.Z)(Kr,2),kr=Fn[0],Go=Fn[1],Dr="".concat(zn,"-selection"),po=Rn||yn==="multiple"&&Ut===!1||yn==="tags"?bt:"",Do=yn==="tags"||yn==="multiple"&&Ut===!1||Qt&&(Rn||kr);it(function(){Ht(br.current.scrollWidth)},[po]);function Ji(Rr,Ko,Yr,yo,Mr){return Ye.createElement("span",{className:ht()("".concat(Dr,"-item"),(0,we.Z)({},"".concat(Dr,"-item-disabled"),Yr)),title:an(Rr)},Ye.createElement("span",{className:"".concat(Dr,"-item-content")},Ko),yo&&Ye.createElement(ue,{className:"".concat(Dr,"-item-remove"),onMouseDown:gt,onClick:Mr,customizeIcon:Bn},"\xD7"))}function or(Rr,Ko,Yr,yo,Mr){var mr=function(Uo){gt(Uo),ir(!Rn)};return Ye.createElement("span",{onMouseDown:mr},Fi({label:Ko,value:Rr,disabled:Yr,closable:yo,onClose:Mr}))}function io(Rr){var Ko=Rr.disabled,Yr=Rr.label,yo=Rr.value,Mr=!Gt&&!Ko,mr=Yr;if(typeof Jn=="number"&&(typeof Yr=="string"||typeof Yr=="number")){var co=String(mr);co.length>Jn&&(mr="".concat(co.slice(0,Jn),"..."))}var Uo=function(ra){ra&&ra.stopPropagation(),zi(Rr)};return typeof Fi=="function"?or(yo,mr,Ko,Mr,Uo):Ji(Rr,mr,Ko,Mr,Uo)}function Gr(Rr){var Ko=typeof gi=="function"?gi(Rr):gi;return Ji({title:Ko},Ko,!1)}var Ii=Ye.createElement("div",{className:"".concat(Dr,"-search"),style:{width:Ir},onFocus:function(){Go(!0)},onBlur:function(){Go(!1)}},Ye.createElement(nt,{ref:Ln,open:Rn,prefixCls:zn,id:In,inputElement:null,disabled:Gt,autoFocus:un,autoComplete:wn,editable:Do,activeDescendantId:gn,value:po,onKeyDown:Bi,onMouseDown:Ti,onChange:tn,onPaste:Ai,onCompositionStart:hr,onCompositionEnd:tr,tabIndex:kn,attrs:(0,$e.Z)(yt,!0)}),Ye.createElement("span",{ref:br,className:"".concat(Dr,"-search-mirror"),"aria-hidden":!0},po,"\xA0")),lt=Ye.createElement(st.Z,{prefixCls:"".concat(Dr,"-overflow"),data:mi,renderItem:io,renderRest:Gr,suffix:Ii,itemKey:Ve,maxCount:Vn});return Ye.createElement(Ye.Fragment,null,lt,!mi.length&&!po&&Ye.createElement("span",{className:"".concat(Dr,"-placeholder")},ni))},sn=Bt,It=function(yt){var In=yt.inputElement,zn=yt.prefixCls,mi=yt.id,Rn=yt.inputRef,bt=yt.disabled,Ut=yt.autoFocus,Ln=yt.autoComplete,ni=yt.activeDescendantId,Gt=yt.mode,yn=yt.open,Qt=yt.values,un=yt.placeholder,wn=yt.tabIndex,gn=yt.showSearch,kn=yt.searchValue,Bn=yt.activeValue,Vn=yt.maxLength,Jn=yt.onInputKeyDown,Wn=yt.onInputMouseDown,gi=yt.onInputChange,Fi=yt.onInputPaste,ir=yt.onInputCompositionStart,zi=yt.onInputCompositionEnd,tn=yt.title,Ai=Ye.useState(!1),Bi=(0,De.Z)(Ai,2),Ti=Bi[0],hr=Bi[1],tr=Gt==="combobox",br=tr||gn,Xi=Qt[0],Hi=kn||"";tr&&Bn&&!Ti&&(Hi=Bn),Ye.useEffect(function(){tr&&hr(!1)},[tr,Bn]);var Ir=Gt!=="combobox"&&!yn&&!gn?!1:!!Hi,Ht=tn===void 0?an(Xi):tn,Kr=function(){if(Xi)return null;var kr=Ir?{visibility:"hidden"}:void 0;return Ye.createElement("span",{className:"".concat(zn,"-selection-placeholder"),style:kr},un)};return Ye.createElement(Ye.Fragment,null,Ye.createElement("span",{className:"".concat(zn,"-selection-search")},Ye.createElement(nt,{ref:Rn,prefixCls:zn,id:mi,open:yn,inputElement:In,disabled:bt,autoFocus:Ut,autoComplete:Ln,editable:br,activeDescendantId:ni,value:Hi,onKeyDown:Jn,onMouseDown:Wn,onChange:function(kr){hr(!0),gi(kr)},onPaste:Fi,onCompositionStart:ir,onCompositionEnd:zi,tabIndex:wn,attrs:(0,$e.Z)(yt,!0),maxLength:tr?Vn:void 0})),!tr&&Xi?Ye.createElement("span",{className:"".concat(zn,"-selection-item"),title:Ht,style:Ir?{visibility:"hidden"}:void 0},Xi.label):null,Kr())},en=It;function En(Vt){return![ee.Z.ESC,ee.Z.SHIFT,ee.Z.BACKSPACE,ee.Z.TAB,ee.Z.WIN_KEY,ee.Z.ALT,ee.Z.META,ee.Z.WIN_KEY_RIGHT,ee.Z.CTRL,ee.Z.SEMICOLON,ee.Z.EQUALS,ee.Z.CAPS_LOCK,ee.Z.CONTEXT_MENU,ee.Z.F1,ee.Z.F2,ee.Z.F3,ee.Z.F4,ee.Z.F5,ee.Z.F6,ee.Z.F7,ee.Z.F8,ee.Z.F9,ee.Z.F10,ee.Z.F11,ee.Z.F12].includes(Vt)}var ei=function(yt,In){var zn=(0,Ye.useRef)(null),mi=(0,Ye.useRef)(!1),Rn=yt.prefixCls,bt=yt.open,Ut=yt.mode,Ln=yt.showSearch,ni=yt.tokenWithEnter,Gt=yt.autoClearSearchValue,yn=yt.onSearch,Qt=yt.onSearchSubmit,un=yt.onToggleOpen,wn=yt.onInputKeyDown,gn=yt.domRef;Ye.useImperativeHandle(In,function(){return{focus:function(){zn.current.focus()},blur:function(){zn.current.blur()}}});var kn=Te(0),Bn=(0,De.Z)(kn,2),Vn=Bn[0],Jn=Bn[1],Wn=function(Hi){var Ir=Hi.which;(Ir===ee.Z.UP||Ir===ee.Z.DOWN)&&Hi.preventDefault(),wn&&wn(Hi),Ir===ee.Z.ENTER&&Ut==="tags"&&!mi.current&&!bt&&(Qt==null||Qt(Hi.target.value)),En(Ir)&&un(!0)},gi=function(){Jn(!0)},Fi=(0,Ye.useRef)(null),ir=function(Hi){yn(Hi,!0,mi.current)!==!1&&un(!0)},zi=function(){mi.current=!0},tn=function(Hi){mi.current=!1,Ut!=="combobox"&&ir(Hi.target.value)},Ai=function(Hi){var Ir=Hi.target.value;if(ni&&Fi.current&&/[\r\n]/.test(Fi.current)){var Ht=Fi.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Ir=Ir.replace(Ht,Fi.current)}Fi.current=null,ir(Ir)},Bi=function(Hi){var Ir=Hi.clipboardData,Ht=Ir.getData("text");Fi.current=Ht},Ti=function(Hi){var Ir=Hi.target;if(Ir!==zn.current){var Ht=document.body.style.msTouchAction!==void 0;Ht?setTimeout(function(){zn.current.focus()}):zn.current.focus()}},hr=function(Hi){var Ir=Vn();Hi.target!==zn.current&&!Ir&&Ut!=="combobox"&&Hi.preventDefault(),(Ut!=="combobox"&&(!Ln||!Ir)||!bt)&&(bt&&Gt!==!1&&yn("",!0,!1),un())},tr={inputRef:zn,onInputKeyDown:Wn,onInputMouseDown:gi,onInputChange:Ai,onInputPaste:Bi,onInputCompositionStart:zi,onInputCompositionEnd:tn},br=Ut==="multiple"||Ut==="tags"?Ye.createElement(sn,(0,se.Z)({},yt,tr)):Ye.createElement(en,(0,se.Z)({},yt,tr));return Ye.createElement("div",{ref:gn,className:"".concat(Rn,"-selector"),onClick:Ti,onMouseDown:hr},br)},An=Ye.forwardRef(ei);An.displayName="Selector";var Kn=An,jt=oe(35593),Nn=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Gn=function(yt){var In=yt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:In,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:In,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:In,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:In,adjustY:1},htmlRegion:"scroll"}}},ii=function(yt,In){var zn=yt.prefixCls,mi=yt.disabled,Rn=yt.visible,bt=yt.children,Ut=yt.popupElement,Ln=yt.animation,ni=yt.transitionName,Gt=yt.dropdownStyle,yn=yt.dropdownClassName,Qt=yt.direction,un=Qt===void 0?"ltr":Qt,wn=yt.placement,gn=yt.builtinPlacements,kn=yt.dropdownMatchSelectWidth,Bn=yt.dropdownRender,Vn=yt.dropdownAlign,Jn=yt.getPopupContainer,Wn=yt.empty,gi=yt.getTriggerDOMNode,Fi=yt.onPopupVisibleChange,ir=yt.onPopupMouseEnter,zi=(0,Ke.Z)(yt,Nn),tn="".concat(zn,"-dropdown"),Ai=Ut;Bn&&(Ai=Bn(Ut));var Bi=Ye.useMemo(function(){return gn||Gn(kn)},[gn,kn]),Ti=Ln?"".concat(tn,"-").concat(Ln):ni,hr=typeof kn=="number",tr=Ye.useMemo(function(){return hr?null:kn===!1?"minWidth":"width"},[kn,hr]),br=Gt;hr&&(br=(0,Ie.Z)((0,Ie.Z)({},br),{},{width:kn}));var Xi=Ye.useRef(null);return Ye.useImperativeHandle(In,function(){return{getPopupElement:function(){return Xi.current}}}),Ye.createElement(jt.Z,(0,se.Z)({},zi,{showAction:Fi?["click"]:[],hideAction:Fi?["click"]:[],popupPlacement:wn||(un==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Bi,prefixCls:tn,popupTransitionName:Ti,popup:Ye.createElement("div",{ref:Xi,onMouseEnter:ir},Ai),stretch:tr,popupAlign:Vn,popupVisible:Rn,getPopupContainer:Jn,popupClassName:ht()(yn,(0,we.Z)({},"".concat(tn,"-empty"),Wn)),popupStyle:br,getTriggerDOMNode:gi,onPopupVisibleChange:Fi}),bt)},Sn=Ye.forwardRef(ii);Sn.displayName="SelectTrigger";var Yt=Sn,Zt=oe(17953);function St(Vt,yt){var In=Vt.key,zn;return"value"in Vt&&(zn=Vt.value),In!=null?In:zn!==void 0?zn:"rc-index-key-".concat(yt)}function rt(Vt,yt){var In=Vt||{},zn=In.label,mi=In.value,Rn=In.options,bt=In.groupLabel,Ut=zn||(yt?"children":"label");return{label:Ut,value:mi||"value",options:Rn||"options",groupLabel:bt||Ut}}function Ft(Vt){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},In=yt.fieldNames,zn=yt.childrenAsData,mi=[],Rn=rt(In,!1),bt=Rn.label,Ut=Rn.value,Ln=Rn.options,ni=Rn.groupLabel;function Gt(yn,Qt){yn.forEach(function(un){if(Qt||!(Ln in un)){var wn=un[Ut];mi.push({key:St(un,mi.length),groupOption:Qt,data:un,label:un[bt],value:wn})}else{var gn=un[ni];gn===void 0&&zn&&(gn=un.label),mi.push({key:St(un,mi.length),group:!0,data:un,label:gn}),Gt(un[Ln],!0)}})}return Gt(Vt,!1),mi}function Ot(Vt){var yt=(0,Ie.Z)({},Vt);return"props"in yt||Object.defineProperty(yt,"props",{get:function(){return(0,Je.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),yt}}),yt}function ft(Vt,yt){if(!yt||!yt.length)return null;var In=!1;function zn(Rn,bt){var Ut=(0,Zt.Z)(bt),Ln=Ut[0],ni=Ut.slice(1);if(!Ln)return[Rn];var Gt=Rn.split(Ln);return In=In||Gt.length>1,Gt.reduce(function(yn,Qt){return[].concat((0,Ce.Z)(yn),(0,Ce.Z)(zn(Qt,ni)))},[]).filter(function(yn){return yn})}var mi=zn(Vt,yt);return In?mi:null}var ct=["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"],Ge=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Ae(Vt){return Vt==="tags"||Vt==="multiple"}var xe=Ye.forwardRef(function(Vt,yt){var In,zn,mi=Vt.id,Rn=Vt.prefixCls,bt=Vt.className,Ut=Vt.showSearch,Ln=Vt.tagRender,ni=Vt.direction,Gt=Vt.omitDomProps,yn=Vt.displayValues,Qt=Vt.onDisplayValuesChange,un=Vt.emptyOptions,wn=Vt.notFoundContent,gn=wn===void 0?"Not Found":wn,kn=Vt.onClear,Bn=Vt.mode,Vn=Vt.disabled,Jn=Vt.loading,Wn=Vt.getInputElement,gi=Vt.getRawInputElement,Fi=Vt.open,ir=Vt.defaultOpen,zi=Vt.onDropdownVisibleChange,tn=Vt.activeValue,Ai=Vt.onActiveValueChange,Bi=Vt.activeDescendantId,Ti=Vt.searchValue,hr=Vt.autoClearSearchValue,tr=Vt.onSearch,br=Vt.onSearchSplit,Xi=Vt.tokenSeparators,Hi=Vt.allowClear,Ir=Vt.suffixIcon,Ht=Vt.clearIcon,Kr=Vt.OptionList,Fn=Vt.animation,kr=Vt.transitionName,Go=Vt.dropdownStyle,Dr=Vt.dropdownClassName,po=Vt.dropdownMatchSelectWidth,Do=Vt.dropdownRender,Ji=Vt.dropdownAlign,or=Vt.placement,io=Vt.builtinPlacements,Gr=Vt.getPopupContainer,Ii=Vt.showAction,lt=Ii===void 0?[]:Ii,Rr=Vt.onFocus,Ko=Vt.onBlur,Yr=Vt.onKeyUp,yo=Vt.onKeyDown,Mr=Vt.onMouseDown,mr=(0,Ke.Z)(Vt,ct),co=Ae(Bn),Uo=(Ut!==void 0?Ut:co)||Bn==="combobox",ao=(0,Ie.Z)({},mr);Ge.forEach(function(Vr){delete ao[Vr]}),Gt==null||Gt.forEach(function(Vr){delete ao[Vr]});var ra=Ye.useState(!1),gr=(0,De.Z)(ra,2),Qi=gr[0],xr=gr[1];Ye.useEffect(function(){xr((0,ze.Z)())},[]);var fi=Ye.useRef(null),bo=Ye.useRef(null),ua=Ye.useRef(null),ca=Ye.useRef(null),oa=Ye.useRef(null),Ra=ke(),ts=(0,De.Z)(Ra,3),ds=ts[0],Qa=ts[1],ks=ts[2];Ye.useImperativeHandle(yt,function(){var Vr,Jr;return{focus:(Vr=ca.current)===null||Vr===void 0?void 0:Vr.focus,blur:(Jr=ca.current)===null||Jr===void 0?void 0:Jr.blur,scrollTo:function(rr){var ro;return(ro=oa.current)===null||ro===void 0?void 0:ro.scrollTo(rr)}}});var Ds=Ye.useMemo(function(){var Vr;if(Bn!=="combobox")return Ti;var Jr=(Vr=yn[0])===null||Vr===void 0?void 0:Vr.value;return typeof Jr=="string"||typeof Jr=="number"?String(Jr):""},[Ti,Bn,yn]),jn=Bn==="combobox"&&typeof Wn=="function"&&Wn()||null,gs=typeof gi=="function"&&gi(),Ql=(0,ne.x1)(bo,gs==null||(In=gs.props)===null||In===void 0?void 0:In.ref),Kl=Ye.useState(!1),Oo=(0,De.Z)(Kl,2),ma=Oo[0],hs=Oo[1];(0,kt.Z)(function(){hs(!0)},[]);var aa=(0,et.Z)(!1,{defaultValue:ir,value:Fi}),Xr=(0,De.Z)(aa,2),Qr=Xr[0],ns=Xr[1],so=ma?Qr:!1,Po=!gn&&un;(Vn||Po&&so&&Bn==="combobox")&&(so=!1);var Mo=Po?!1:so,$i=Ye.useCallback(function(Vr){var Jr=Vr!==void 0?Vr:!so;Vn||(ns(Jr),so!==Jr&&(zi==null||zi(Jr)))},[Vn,so,ns,zi]),Ja=Ye.useMemo(function(){return(Xi||[]).some(function(Vr){return[`
`,`\r
`].includes(Vr)})},[Xi]),xs=function(Jr,jr,rr){var ro=!0,Na=Jr;Ai==null||Ai(null);var Ia=rr?null:ft(Jr,Xi);return Bn!=="combobox"&&Ia&&(Na="",br==null||br(Ia),$i(!1),ro=!1),tr&&Ds!==Na&&tr(Na,{source:jr?"typing":"effect"}),ro},ul=function(Jr){!Jr||!Jr.trim()||tr(Jr,{source:"submit"})};Ye.useEffect(function(){!so&&!co&&Bn!=="combobox"&&xs("",!1,!1)},[so]),Ye.useEffect(function(){Qr&&Vn&&ns(!1),Vn&&Qa(!1)},[Vn]);var Yl=Te(),Jl=(0,De.Z)(Yl,2),_i=Jl[0],is=Jl[1],Hs=function(Jr){var jr=_i(),rr=Jr.which;if(rr===ee.Z.ENTER&&(Bn!=="combobox"&&Jr.preventDefault(),so||$i(!0)),is(!!Ds),rr===ee.Z.BACKSPACE&&!jr&&co&&!Ds&&yn.length){for(var ro=(0,Ce.Z)(yn),Na=null,Ia=ro.length-1;Ia>=0;Ia-=1){var Ho=ro[Ia];if(!Ho.disabled){ro.splice(Ia,1),Na=Ho;break}}Na&&Qt(ro,{type:"remove",values:[Na]})}for(var Bo=arguments.length,rl=new Array(Bo>1?Bo-1:0),Bs=1;Bs<Bo;Bs++)rl[Bs-1]=arguments[Bs];if(so&&oa.current){var ka;(ka=oa.current).onKeyDown.apply(ka,[Jr].concat(rl))}yo==null||yo.apply(void 0,[Jr].concat(rl))},tu=function(Jr){for(var jr=arguments.length,rr=new Array(jr>1?jr-1:0),ro=1;ro<jr;ro++)rr[ro-1]=arguments[ro];if(so&&oa.current){var Na;(Na=oa.current).onKeyUp.apply(Na,[Jr].concat(rr))}Yr==null||Yr.apply(void 0,[Jr].concat(rr))},ui=function(Jr){var jr=yn.filter(function(rr){return rr!==Jr});Qt(jr,{type:"remove",values:[Jr]})},du=Ye.useRef(!1),wo=function(){Qa(!0),Vn||(Rr&&!du.current&&Rr.apply(void 0,arguments),lt.includes("focus")&&$i(!0)),du.current=!0},Uc=function(){Qa(!1,function(){du.current=!1,$i(!1)}),!Vn&&(Ds&&(Bn==="tags"?tr(Ds,{source:"submit"}):Bn==="multiple"&&tr("",{source:"blur"})),Ko&&Ko.apply(void 0,arguments))},Wl=[];Ye.useEffect(function(){return function(){Wl.forEach(function(Vr){return clearTimeout(Vr)}),Wl.splice(0,Wl.length)}},[]);var $l=function(Jr){var jr,rr=Jr.target,ro=(jr=ua.current)===null||jr===void 0?void 0:jr.getPopupElement();if(ro&&ro.contains(rr)){var Na=setTimeout(function(){var rl=Wl.indexOf(Na);if(rl!==-1&&Wl.splice(rl,1),ks(),!Qi&&!ro.contains(document.activeElement)){var Bs;(Bs=ca.current)===null||Bs===void 0||Bs.focus()}});Wl.push(Na)}for(var Ia=arguments.length,Ho=new Array(Ia>1?Ia-1:0),Bo=1;Bo<Ia;Bo++)Ho[Bo-1]=arguments[Bo];Mr==null||Mr.apply(void 0,[Jr].concat(Ho))},Fl=Ye.useState({}),Zu=(0,De.Z)(Fl,2),Ws=Zu[1];function Zs(){Ws({})}var Al;gs&&(Al=function(Jr){$i(Jr)}),We(function(){var Vr;return[fi.current,(Vr=ua.current)===null||Vr===void 0?void 0:Vr.getPopupElement()]},Mo,$i,!!gs);var Jc=Ye.useMemo(function(){return(0,Ie.Z)((0,Ie.Z)({},Vt),{},{notFoundContent:gn,open:so,triggerOpen:Mo,id:mi,showSearch:Uo,multiple:co,toggleOpen:$i})},[Vt,gn,Mo,so,mi,Uo,co,$i]),qc=!!Ir||Jn,Pc;qc&&(Pc=Ye.createElement(ue,{className:ht()("".concat(Rn,"-arrow"),(0,we.Z)({},"".concat(Rn,"-arrow-loading"),Jn)),customizeIcon:Ir,customizeIconProps:{loading:Jn,searchValue:Ds,open:so,focused:ds,showSearch:Uo}}));var md=function(){var Jr;kn==null||kn(),(Jr=ca.current)===null||Jr===void 0||Jr.focus(),Qt([],{type:"clear",values:yn}),xs("",!1,!1)},ed=me(Rn,md,yn,Hi,Ht,Vn,Ds,Bn),Xn=ed.allowClear,bn=ed.clearIcon,_t=Ye.createElement(Kr,{ref:oa}),Ao=ht()(Rn,bt,(zn={},(0,we.Z)(zn,"".concat(Rn,"-focused"),ds),(0,we.Z)(zn,"".concat(Rn,"-multiple"),co),(0,we.Z)(zn,"".concat(Rn,"-single"),!co),(0,we.Z)(zn,"".concat(Rn,"-allow-clear"),Hi),(0,we.Z)(zn,"".concat(Rn,"-show-arrow"),qc),(0,we.Z)(zn,"".concat(Rn,"-disabled"),Vn),(0,we.Z)(zn,"".concat(Rn,"-loading"),Jn),(0,we.Z)(zn,"".concat(Rn,"-open"),so),(0,we.Z)(zn,"".concat(Rn,"-customize-input"),jn),(0,we.Z)(zn,"".concat(Rn,"-show-search"),Uo),zn)),ta=Ye.createElement(Yt,{ref:ua,disabled:Vn,prefixCls:Rn,visible:Mo,popupElement:_t,animation:Fn,transitionName:kr,dropdownStyle:Go,dropdownClassName:Dr,direction:ni,dropdownMatchSelectWidth:po,dropdownRender:Do,dropdownAlign:Ji,placement:or,builtinPlacements:io,getPopupContainer:Gr,empty:un,getTriggerDOMNode:function(){return bo.current},onPopupVisibleChange:Al,onPopupMouseEnter:Zs},gs?Ye.cloneElement(gs,{ref:Ql}):Ye.createElement(Kn,(0,se.Z)({},Vt,{domRef:bo,prefixCls:Rn,inputElement:jn,ref:ca,id:mi,showSearch:Uo,autoClearSearchValue:hr,mode:Bn,activeDescendantId:Bi,tagRender:Ln,values:yn,open:so,onToggleOpen:$i,activeValue:tn,searchValue:Ds,onSearch:xs,onSearchSubmit:ul,onRemove:ui,tokenWithEnter:Ja}))),sa;return gs?sa=ta:sa=Ye.createElement("div",(0,se.Z)({className:Ao},ao,{ref:fi,onMouseDown:$l,onKeyDown:Hs,onKeyUp:tu,onFocus:wo,onBlur:Uc}),ds&&!so&&Ye.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(yn.map(function(Vr){var Jr=Vr.label,jr=Vr.value;return["number","string"].includes((0,Ee.Z)(Jr))?Jr:jr}).join(", "))),ta,Pc,Xn&&bn),Ye.createElement(Se.Provider,{value:Jc},sa)}),je=xe,Qe=function(Vt,yt){var In=Ye.useRef({values:new Map,options:new Map}),zn=Ye.useMemo(function(){var Rn=In.current,bt=Rn.values,Ut=Rn.options,Ln=Vt.map(function(yn){if(yn.label===void 0){var Qt;return(0,Ie.Z)((0,Ie.Z)({},yn),{},{label:(Qt=bt.get(yn.value))===null||Qt===void 0?void 0:Qt.label})}return yn}),ni=new Map,Gt=new Map;return Ln.forEach(function(yn){ni.set(yn.value,yn),Gt.set(yn.value,yt.get(yn.value)||Ut.get(yn.value))}),In.current.values=ni,In.current.options=Gt,Ln},[Vt,yt]),mi=Ye.useCallback(function(Rn){return yt.get(Rn)||In.current.options.get(Rn)},[yt]);return[zn,mi]};function Oe(Vt,yt){return $t(Vt).join("").toUpperCase().includes(yt)}var xt=function(Vt,yt,In,zn,mi){return Ye.useMemo(function(){if(!In||zn===!1)return Vt;var Rn=yt.options,bt=yt.label,Ut=yt.value,Ln=[],ni=typeof zn=="function",Gt=In.toUpperCase(),yn=ni?zn:function(un,wn){return mi?Oe(wn[mi],Gt):wn[Rn]?Oe(wn[bt!=="children"?bt:"label"],Gt):Oe(wn[Ut],Gt)},Qt=ni?function(un){return Ot(un)}:function(un){return un};return Vt.forEach(function(un){if(un[Rn]){var wn=yn(In,Qt(un));if(wn)Ln.push(un);else{var gn=un[Rn].filter(function(kn){return yn(In,Qt(kn))});gn.length&&Ln.push((0,Ie.Z)((0,Ie.Z)({},un),{},(0,we.Z)({},Rn,gn)))}return}yn(In,Qt(un))&&Ln.push(un)}),Ln},[Vt,zn,mi,In,yt])},hn=oe(17115),Pn=oe(38298),wt=["children","value"],nn=["children"];function Mn(Vt){var yt=Vt,In=yt.key,zn=yt.props,mi=zn.children,Rn=zn.value,bt=(0,Ke.Z)(zn,wt);return(0,Ie.Z)({key:In,value:Rn!==void 0?Rn:In,children:mi},bt)}function Zn(Vt){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Pn.Z)(Vt).map(function(In,zn){if(!Ye.isValidElement(In)||!In.type)return null;var mi=In,Rn=mi.type.isSelectOptGroup,bt=mi.key,Ut=mi.props,Ln=Ut.children,ni=(0,Ke.Z)(Ut,nn);return yt||!Rn?Mn(In):(0,Ie.Z)((0,Ie.Z)({key:"__RC_SELECT_GRP__".concat(bt===null?zn:bt,"__"),label:bt},ni),{},{options:Zn(Ln)})}).filter(function(In){return In})}function li(Vt,yt,In,zn,mi){return Ye.useMemo(function(){var Rn=Vt,bt=!Vt;bt&&(Rn=Zn(yt));var Ut=new Map,Ln=new Map,ni=function(Qt,un,wn){wn&&typeof wn=="string"&&Qt.set(un[wn],un)};function Gt(yn){for(var Qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,un=0;un<yn.length;un+=1){var wn=yn[un];!wn[In.options]||Qt?(Ut.set(wn[In.value],wn),ni(Ln,wn,In.label),ni(Ln,wn,zn),ni(Ln,wn,mi)):Gt(wn[In.options],!0)}}return Gt(Rn),{options:Rn,valueOptions:Ut,labelOptions:Ln}},[Vt,yt,In,zn,mi])}function xi(Vt){var yt=Ye.useRef();yt.current=Vt;var In=Ye.useCallback(function(){return yt.current.apply(yt,arguments)},[]);return In}var Mi=function(){return null};Mi.isSelectOptGroup=!0;var Si=Mi,Ri=function(){return null};Ri.isSelectOption=!0;var lr=Ri,dr=oe(79722),ur=oe(64002),Sr=oe(21881),Wr=Ye.createContext(null),Gi=Wr;function Zr(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Yi=["disabled","title","children","style","className"];function Ue(Vt){return typeof Vt=="string"||typeof Vt=="number"}var no=function(yt,In){var zn=Ne(),mi=zn.prefixCls,Rn=zn.id,bt=zn.open,Ut=zn.multiple,Ln=zn.mode,ni=zn.searchValue,Gt=zn.toggleOpen,yn=zn.notFoundContent,Qt=zn.onPopupScroll,un=Ye.useContext(Gi),wn=un.flattenOptions,gn=un.onActiveValue,kn=un.defaultActiveFirstOption,Bn=un.onSelect,Vn=un.menuItemSelectedIcon,Jn=un.rawValues,Wn=un.fieldNames,gi=un.virtual,Fi=un.direction,ir=un.listHeight,zi=un.listItemHeight,tn="".concat(mi,"-item"),Ai=(0,dr.Z)(function(){return wn},[bt,wn],function(Ji,or){return or[0]&&Ji[1]!==or[1]}),Bi=Ye.useRef(null),Ti=function(or){or.preventDefault()},hr=function(or){Bi.current&&Bi.current.scrollTo(typeof or=="number"?{index:or}:or)},tr=function(or){for(var io=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Gr=Ai.length,Ii=0;Ii<Gr;Ii+=1){var lt=(or+Ii*io+Gr)%Gr,Rr=Ai[lt],Ko=Rr.group,Yr=Rr.data;if(!Ko&&!Yr.disabled)return lt}return-1},br=Ye.useState(function(){return tr(0)}),Xi=(0,De.Z)(br,2),Hi=Xi[0],Ir=Xi[1],Ht=function(or){var io=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Ir(or);var Gr={source:io?"keyboard":"mouse"},Ii=Ai[or];if(!Ii){gn(null,-1,Gr);return}gn(Ii.value,or,Gr)};(0,Ye.useEffect)(function(){Ht(kn!==!1?tr(0):-1)},[Ai.length,ni]);var Kr=Ye.useCallback(function(Ji){return Jn.has(Ji)&&Ln!=="combobox"},[Ln,(0,Ce.Z)(Jn).toString(),Jn.size]);(0,Ye.useEffect)(function(){var Ji=setTimeout(function(){if(!Ut&&bt&&Jn.size===1){var io=Array.from(Jn)[0],Gr=Ai.findIndex(function(Ii){var lt=Ii.data;return lt.value===io});Gr!==-1&&(Ht(Gr),hr(Gr))}});if(bt){var or;(or=Bi.current)===null||or===void 0||or.scrollTo(void 0)}return function(){return clearTimeout(Ji)}},[bt,ni,wn.length]);var Fn=function(or){or!==void 0&&Bn(or,{selected:!Jn.has(or)}),Ut||Gt(!1)};if(Ye.useImperativeHandle(In,function(){return{onKeyDown:function(or){var io=or.which,Gr=or.ctrlKey;switch(io){case ee.Z.N:case ee.Z.P:case ee.Z.UP:case ee.Z.DOWN:{var Ii=0;if(io===ee.Z.UP?Ii=-1:io===ee.Z.DOWN?Ii=1:Zr()&&Gr&&(io===ee.Z.N?Ii=1:io===ee.Z.P&&(Ii=-1)),Ii!==0){var lt=tr(Hi+Ii,Ii);hr(lt),Ht(lt,!0)}break}case ee.Z.ENTER:{var Rr=Ai[Hi];Rr&&!Rr.data.disabled?Fn(Rr.value):Fn(void 0),bt&&or.preventDefault();break}case ee.Z.ESC:Gt(!1),bt&&or.stopPropagation()}},onKeyUp:function(){},scrollTo:function(or){hr(or)}}}),Ai.length===0)return Ye.createElement("div",{role:"listbox",id:"".concat(Rn,"_list"),className:"".concat(tn,"-empty"),onMouseDown:Ti},yn);var kr=Object.keys(Wn).map(function(Ji){return Wn[Ji]}),Go=function(or){return or.label};function Dr(Ji,or){var io=Ji.group;return{role:io?"presentation":"option",id:"".concat(Rn,"_list_").concat(or)}}var po=function(or){var io=Ai[or];if(!io)return null;var Gr=io.data||{},Ii=Gr.value,lt=io.group,Rr=(0,$e.Z)(Gr,!0),Ko=Go(io);return io?Ye.createElement("div",(0,se.Z)({"aria-label":typeof Ko=="string"&&!lt?Ko:null},Rr,{key:or},Dr(io,or),{"aria-selected":Kr(Ii)}),Ii):null},Do={role:"listbox",id:"".concat(Rn,"_list")};return Ye.createElement(Ye.Fragment,null,gi&&Ye.createElement("div",(0,se.Z)({},Do,{style:{height:0,width:0,overflow:"hidden"}}),po(Hi-1),po(Hi),po(Hi+1)),Ye.createElement(Sr.Z,{itemKey:"key",ref:Bi,data:Ai,height:ir,itemHeight:zi,fullHeight:!1,onMouseDown:Ti,onScroll:Qt,virtual:gi,direction:Fi,innerProps:gi?null:Do},function(Ji,or){var io,Gr=Ji.group,Ii=Ji.groupOption,lt=Ji.data,Rr=Ji.label,Ko=Ji.value,Yr=lt.key;if(Gr){var yo,Mr=(yo=lt.title)!==null&&yo!==void 0?yo:Ue(Rr)?Rr.toString():void 0;return Ye.createElement("div",{className:ht()(tn,"".concat(tn,"-group")),title:Mr},Rr!==void 0?Rr:Yr)}var mr=lt.disabled,co=lt.title,Uo=lt.children,ao=lt.style,ra=lt.className,gr=(0,Ke.Z)(lt,Yi),Qi=(0,ur.Z)(gr,kr),xr=Kr(Ko),fi="".concat(tn,"-option"),bo=ht()(tn,fi,ra,(io={},(0,we.Z)(io,"".concat(fi,"-grouped"),Ii),(0,we.Z)(io,"".concat(fi,"-active"),Hi===or&&!mr),(0,we.Z)(io,"".concat(fi,"-disabled"),mr),(0,we.Z)(io,"".concat(fi,"-selected"),xr),io)),ua=Go(Ji),ca=!Vn||typeof Vn=="function"||xr,oa=typeof ua=="number"?ua:ua||Ko,Ra=Ue(oa)?oa.toString():void 0;return co!==void 0&&(Ra=co),Ye.createElement("div",(0,se.Z)({},(0,$e.Z)(Qi),gi?{}:Dr(Ji,or),{"aria-selected":xr,className:bo,title:Ra,onMouseMove:function(){Hi===or||mr||Ht(or)},onClick:function(){mr||Fn(Ko)},style:ao}),Ye.createElement("div",{className:"".concat(fi,"-content")},oa),Ye.isValidElement(Vn)||xr,ca&&Ye.createElement(ue,{className:"".concat(tn,"-option-state"),customizeIcon:Vn,customizeIconProps:{isSelected:xr}},xr?"\u2713":null))}))},pr=Ye.forwardRef(no);pr.displayName="OptionList";var fo=pr;function Fo(Vt){var yt=Vt.mode,In=Vt.options,zn=Vt.children,mi=Vt.backfill,Rn=Vt.allowClear,bt=Vt.placeholder,Ut=Vt.getInputElement,Ln=Vt.showSearch,ni=Vt.onSearch,Gt=Vt.defaultOpen,yn=Vt.autoFocus,Qt=Vt.labelInValue,un=Vt.value,wn=Vt.inputValue,gn=Vt.optionLabelProp,kn=isMultiple(yt),Bn=Ln!==void 0?Ln:kn||yt==="combobox",Vn=In||convertChildrenToData(zn);if(warning(yt!=="tags"||Vn.every(function(Fi){return!Fi.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),yt==="tags"||yt==="combobox"){var Jn=Vn.some(function(Fi){return Fi.options?Fi.options.some(function(ir){return typeof("value"in ir?ir.value:ir.key)=="number"}):typeof("value"in Fi?Fi.value:Fi.key)=="number"});warning(!Jn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(yt!=="combobox"||!gn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(yt==="combobox"||!mi,"`backfill` only works with `combobox` mode."),warning(yt==="combobox"||!Ut,"`getInputElement` only work with `combobox` mode."),noteOnce(yt!=="combobox"||!Ut||!Rn||!bt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ni&&!Bn&&yt!=="combobox"&&yt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Gt||yn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),un!=null){var Wn=toArray(un);warning(!Qt||Wn.every(function(Fi){return _typeof(Fi)==="object"&&("key"in Fi||"value"in Fi)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!kn||Array.isArray(un),"`value` should be array when `mode` is `multiple` or `tags`")}if(zn){var gi=null;toNodeArray(zn).some(function(Fi){if(!React.isValidElement(Fi)||!Fi.type)return!1;var ir=Fi,zi=ir.type;if(zi.isSelectOption)return!1;if(zi.isSelectOptGroup){var tn=toNodeArray(Fi.props.children).every(function(Ai){return!React.isValidElement(Ai)||!Fi.type||Ai.type.isSelectOption?!0:(gi=Ai.type,!1)});return!tn}return gi=zi,!0}),gi&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(gi.displayName||gi.name||gi,"`.")),warning(wn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Vo(Vt,yt){if(Vt){var In=function zn(mi){for(var Rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,bt=0;bt<mi.length;bt++){var Ut=mi[bt];if(Ut[yt==null?void 0:yt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Rn&&Array.isArray(Ut[yt==null?void 0:yt.options])&&zn(Ut[yt==null?void 0:yt.options],!0))break}};In(Vt)}}var Io=null,Oi=["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"],on=["inputValue"];function ln(Vt){return!Vt||(0,Ee.Z)(Vt)!=="object"}var qt=Ye.forwardRef(function(Vt,yt){var In=Vt.id,zn=Vt.mode,mi=Vt.prefixCls,Rn=mi===void 0?"rc-select":mi,bt=Vt.backfill,Ut=Vt.fieldNames,Ln=Vt.inputValue,ni=Vt.searchValue,Gt=Vt.onSearch,yn=Vt.autoClearSearchValue,Qt=yn===void 0?!0:yn,un=Vt.onSelect,wn=Vt.onDeselect,gn=Vt.dropdownMatchSelectWidth,kn=gn===void 0?!0:gn,Bn=Vt.filterOption,Vn=Vt.filterSort,Jn=Vt.optionFilterProp,Wn=Vt.optionLabelProp,gi=Vt.options,Fi=Vt.children,ir=Vt.defaultActiveFirstOption,zi=Vt.menuItemSelectedIcon,tn=Vt.virtual,Ai=Vt.direction,Bi=Vt.listHeight,Ti=Bi===void 0?200:Bi,hr=Vt.listItemHeight,tr=hr===void 0?20:hr,br=Vt.value,Xi=Vt.defaultValue,Hi=Vt.labelInValue,Ir=Vt.onChange,Ht=(0,Ke.Z)(Vt,Oi),Kr=(0,hn.ZP)(In),Fn=Ae(zn),kr=!!(!gi&&Fi),Go=Ye.useMemo(function(){return Bn===void 0&&zn==="combobox"?!1:Bn},[Bn,zn]),Dr=Ye.useMemo(function(){return rt(Ut,kr)},[JSON.stringify(Ut),kr]),po=(0,et.Z)("",{value:ni!==void 0?ni:Ln,postState:function(Po){return Po||""}}),Do=(0,De.Z)(po,2),Ji=Do[0],or=Do[1],io=li(gi,Fi,Dr,Jn,Wn),Gr=io.valueOptions,Ii=io.labelOptions,lt=io.options,Rr=Ye.useCallback(function(so){var Po=$t(so);return Po.map(function(Mo){var $i,Ja,xs,ul,Yl;if(ln(Mo))$i=Mo;else{var Jl;xs=Mo.key,Ja=Mo.label,$i=(Jl=Mo.value)!==null&&Jl!==void 0?Jl:xs}var _i=Gr.get($i);if(_i){var is;if(Ja===void 0&&(Ja=_i==null?void 0:_i[Wn||Dr.label]),xs===void 0&&(xs=(is=_i==null?void 0:_i.key)!==null&&is!==void 0?is:$i),ul=_i==null?void 0:_i.disabled,Yl=_i==null?void 0:_i.title,0)var Hs}return{label:Ja,value:$i,key:xs,disabled:ul,title:Yl}})},[Dr,Wn,Gr]),Ko=(0,et.Z)(Xi,{value:br}),Yr=(0,De.Z)(Ko,2),yo=Yr[0],Mr=Yr[1],mr=Ye.useMemo(function(){var so,Po=Rr(yo);return zn==="combobox"&&Xt((so=Po[0])===null||so===void 0?void 0:so.value)?[]:Po},[yo,Rr,zn]),co=Qe(mr,Gr),Uo=(0,De.Z)(co,2),ao=Uo[0],ra=Uo[1],gr=Ye.useMemo(function(){if(!zn&&ao.length===1){var so=ao[0];if(so.value===null&&(so.label===null||so.label===void 0))return[]}return ao.map(function(Po){var Mo;return(0,Ie.Z)((0,Ie.Z)({},Po),{},{label:(Mo=Po.label)!==null&&Mo!==void 0?Mo:Po.value})})},[zn,ao]),Qi=Ye.useMemo(function(){return new Set(ao.map(function(so){return so.value}))},[ao]);Ye.useEffect(function(){if(zn==="combobox"){var so,Po=(so=ao[0])===null||so===void 0?void 0:so.value;or(zt(Po)?String(Po):"")}},[ao]);var xr=xi(function(so,Po){var Mo,$i=Po!=null?Po:so;return Mo={},(0,we.Z)(Mo,Dr.value,so),(0,we.Z)(Mo,Dr.label,$i),Mo}),fi=Ye.useMemo(function(){if(zn!=="tags")return lt;var so=(0,Ce.Z)(lt),Po=function($i){return Gr.has($i)};return(0,Ce.Z)(ao).sort(function(Mo,$i){return Mo.value<$i.value?-1:1}).forEach(function(Mo){var $i=Mo.value;Po($i)||so.push(xr($i,Mo.label))}),so},[xr,lt,Gr,ao,zn]),bo=xt(fi,Dr,Ji,Go,Jn),ua=Ye.useMemo(function(){return zn!=="tags"||!Ji||bo.some(function(so){return so[Jn||"value"]===Ji})||bo.some(function(so){return so[Dr.value]===Ji})?bo:[xr(Ji)].concat((0,Ce.Z)(bo))},[xr,Jn,zn,bo,Ji,Dr]),ca=Ye.useMemo(function(){return Vn?(0,Ce.Z)(ua).sort(function(so,Po){return Vn(so,Po)}):ua},[ua,Vn]),oa=Ye.useMemo(function(){return Ft(ca,{fieldNames:Dr,childrenAsData:kr})},[ca,Dr,kr]),Ra=function(Po){var Mo=Rr(Po);if(Mr(Mo),Ir&&(Mo.length!==ao.length||Mo.some(function(xs,ul){var Yl;return((Yl=ao[ul])===null||Yl===void 0?void 0:Yl.value)!==(xs==null?void 0:xs.value)}))){var $i=Hi?Mo:Mo.map(function(xs){return xs.value}),Ja=Mo.map(function(xs){return Ot(ra(xs.value))});Ir(Fn?$i:$i[0],Fn?Ja:Ja[0])}},ts=Ye.useState(null),ds=(0,De.Z)(ts,2),Qa=ds[0],ks=ds[1],Ds=Ye.useState(0),jn=(0,De.Z)(Ds,2),gs=jn[0],Ql=jn[1],Kl=ir!==void 0?ir:zn!=="combobox",Oo=Ye.useCallback(function(so,Po){var Mo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},$i=Mo.source,Ja=$i===void 0?"keyboard":$i;Ql(Po),bt&&zn==="combobox"&&so!==null&&Ja==="keyboard"&&ks(String(so))},[bt,zn]),ma=function(Po,Mo,$i){var Ja=function(){var du,wo=ra(Po);return[Hi?{label:wo==null?void 0:wo[Dr.label],value:Po,key:(du=wo==null?void 0:wo.key)!==null&&du!==void 0?du:Po}:Po,Ot(wo)]};if(Mo&&un){var xs=Ja(),ul=(0,De.Z)(xs,2),Yl=ul[0],Jl=ul[1];un(Yl,Jl)}else if(!Mo&&wn&&$i!=="clear"){var _i=Ja(),is=(0,De.Z)(_i,2),Hs=is[0],tu=is[1];wn(Hs,tu)}},hs=xi(function(so,Po){var Mo,$i=Fn?Po.selected:!0;$i?Mo=Fn?[].concat((0,Ce.Z)(ao),[so]):[so]:Mo=ao.filter(function(Ja){return Ja.value!==so}),Ra(Mo),ma(so,$i),zn==="combobox"?ks(""):(!Ae||Qt)&&(or(""),ks(""))}),aa=function(Po,Mo){Ra(Po);var $i=Mo.type,Ja=Mo.values;($i==="remove"||$i==="clear")&&Ja.forEach(function(xs){ma(xs.value,!1,$i)})},Xr=function(Po,Mo){if(or(Po),ks(null),Mo.source==="submit"){var $i=(Po||"").trim();if($i){var Ja=Array.from(new Set([].concat((0,Ce.Z)(Qi),[$i])));Ra(Ja),ma($i,!0),or("")}return}Mo.source!=="blur"&&(zn==="combobox"&&Ra(Po),Gt==null||Gt(Po))},Qr=function(Po){var Mo=Po;zn!=="tags"&&(Mo=Po.map(function(Ja){var xs=Ii.get(Ja);return xs==null?void 0:xs.value}).filter(function(Ja){return Ja!==void 0}));var $i=Array.from(new Set([].concat((0,Ce.Z)(Qi),(0,Ce.Z)(Mo))));Ra($i),$i.forEach(function(Ja){ma(Ja,!0)})},ns=Ye.useMemo(function(){var so=tn!==!1&&kn!==!1;return(0,Ie.Z)((0,Ie.Z)({},io),{},{flattenOptions:oa,onActiveValue:Oo,defaultActiveFirstOption:Kl,onSelect:hs,menuItemSelectedIcon:zi,rawValues:Qi,fieldNames:Dr,virtual:so,direction:Ai,listHeight:Ti,listItemHeight:tr,childrenAsData:kr})},[io,oa,Oo,Kl,hs,zi,Qi,Dr,tn,kn,Ti,tr,kr]);return Ye.createElement(Gi.Provider,{value:ns},Ye.createElement(je,(0,se.Z)({},Ht,{id:Kr,prefixCls:Rn,ref:yt,omitDomProps:on,mode:zn,displayValues:gr,onDisplayValuesChange:aa,direction:Ai,searchValue:Ji,onSearch:Xr,autoClearSearchValue:Qt,onSearchSplit:Qr,dropdownMatchSelectWidth:kn,OptionList:fo,emptyOptions:!oa.length,activeValue:Qa,activeDescendantId:"".concat(Kr,"_list_").concat(gs)})))}),Nt=qt;Nt.Option=lr,Nt.OptGroup=Si;var On=Nt,Un=On},9296:function(_e,be,oe){"use strict";oe.r(be),oe.d(be,{ResizableTextArea:function(){return Mt},default:function(){return Xt}});var se=oe(5891),Ce=oe(57259),we=oe(80962),Ie=oe(80665),De=oe(29043),Ke=oe(19149),Ee=oe(26390),et=oe(92310),Je=oe.n(et),Ye=oe(93681),tt=oe(5643),ht=oe(35788),kt=oe(59301),ze=oe(29301),ee=oe(28800),ne=oe(23073),ge=`
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;
`,ue=["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={},Se;function Ne(fn){var an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,it=fn.getAttribute("id")||fn.getAttribute("data-reactid")||fn.getAttribute("name");if(an&&me[it])return me[it];var Ve=window.getComputedStyle(fn),gt=Ve.getPropertyValue("box-sizing")||Ve.getPropertyValue("-moz-box-sizing")||Ve.getPropertyValue("-webkit-box-sizing"),Bt=parseFloat(Ve.getPropertyValue("padding-bottom"))+parseFloat(Ve.getPropertyValue("padding-top")),sn=parseFloat(Ve.getPropertyValue("border-bottom-width"))+parseFloat(Ve.getPropertyValue("border-top-width")),It=ue.map(function(En){return"".concat(En,":").concat(Ve.getPropertyValue(En))}).join(";"),en={sizingStyle:It,paddingSize:Bt,borderSize:sn,boxSizing:gt};return an&&it&&(me[it]=en),en}function ke(fn){var an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,it=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Ve=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Se||(Se=document.createElement("textarea"),Se.setAttribute("tab-index","-1"),Se.setAttribute("aria-hidden","true"),document.body.appendChild(Se)),fn.getAttribute("wrap")?Se.setAttribute("wrap",fn.getAttribute("wrap")):Se.removeAttribute("wrap");var gt=Ne(fn,an),Bt=gt.paddingSize,sn=gt.borderSize,It=gt.boxSizing,en=gt.sizingStyle;Se.setAttribute("style","".concat(en,";").concat(ge)),Se.value=fn.value||fn.placeholder||"";var En=void 0,ei=void 0,An,Kn=Se.scrollHeight;if(It==="border-box"?Kn+=sn:It==="content-box"&&(Kn-=Bt),it!==null||Ve!==null){Se.value=" ";var jt=Se.scrollHeight-Bt;it!==null&&(En=jt*it,It==="border-box"&&(En=En+Bt+sn),Kn=Math.max(En,Kn)),Ve!==null&&(ei=jt*Ve,It==="border-box"&&(ei=ei+Bt+sn),An=Kn>ei?"":"hidden",Kn=Math.min(ei,Kn))}var Nn={height:Kn,overflowY:An,resize:"none"};return En&&(Nn.minHeight=En),ei&&(Nn.maxHeight=ei),Nn}var Te=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],We=0,$e=1,st=2,ut=kt.forwardRef(function(fn,an){var it=fn,Ve=it.prefixCls,gt=it.onPressEnter,Bt=it.defaultValue,sn=it.value,It=it.autoSize,en=it.onResize,En=it.className,ei=it.style,An=it.disabled,Kn=it.onChange,jt=it.onInternalAutoSize,Nn=(0,Ke.Z)(it,Te),Gn=(0,ht.Z)(Bt,{value:sn,postState:function(Si){return Si!=null?Si:""}}),ii=(0,De.Z)(Gn,2),Sn=ii[0],Yt=ii[1],Zt=function(Si){Yt(Si.target.value),Kn==null||Kn(Si)},St=kt.useRef();kt.useImperativeHandle(an,function(){return{textArea:St.current}});var rt=kt.useMemo(function(){return It&&(0,Ie.Z)(It)==="object"?[It.minRows,It.maxRows]:[]},[It]),Ft=(0,De.Z)(rt,2),Ot=Ft[0],ft=Ft[1],ct=!!It,Ge=function(){try{if(document.activeElement===St.current){var Si=St.current,Ri=Si.selectionStart,lr=Si.selectionEnd,dr=Si.scrollTop;St.current.setSelectionRange(Ri,lr),St.current.scrollTop=dr}}catch(ur){}},Ae=kt.useState(st),xe=(0,De.Z)(Ae,2),je=xe[0],Qe=xe[1],Oe=kt.useState(),xt=(0,De.Z)(Oe,2),hn=xt[0],Pn=xt[1],wt=function(){Qe(We)};(0,ee.Z)(function(){ct&&wt()},[sn,Ot,ft,ct]),(0,ee.Z)(function(){if(je===We)Qe($e);else if(je===$e){var Mi=ke(St.current,!1,Ot,ft);Qe(st),Pn(Mi)}else Ge()},[je]);var nn=kt.useRef(),Mn=function(){ne.Z.cancel(nn.current)},Zn=function(Si){je===st&&(en==null||en(Si),It&&(Mn(),nn.current=(0,ne.Z)(function(){wt()})))};kt.useEffect(function(){return Mn},[]);var li=ct?hn:null,xi=(0,Ce.Z)((0,Ce.Z)({},ei),li);return(je===We||je===$e)&&(xi.overflowY="hidden",xi.overflowX="hidden"),kt.createElement(ze.Z,{onResize:Zn,disabled:!(It||en)},kt.createElement("textarea",(0,se.Z)({},Nn,{ref:St,style:xi,className:Je()(Ve,En,(0,we.Z)({},"".concat(Ve,"-disabled"),An)),disabled:An,value:Sn,onChange:Zt})))}),Mt=ut,nt=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function $t(fn,an){return(0,Ee.Z)(fn||"").slice(0,an).join("")}function Pt(fn,an,it,Ve){var gt=it;return fn?gt=$t(it,Ve):(0,Ee.Z)(an||"").length<it.length&&(0,Ee.Z)(it||"").length>Ve&&(gt=an),gt}var dn=kt.forwardRef(function(fn,an){var it,Ve=fn.defaultValue,gt=fn.value,Bt=fn.onFocus,sn=fn.onBlur,It=fn.onChange,en=fn.allowClear,En=fn.maxLength,ei=fn.onCompositionStart,An=fn.onCompositionEnd,Kn=fn.suffix,jt=fn.prefixCls,Nn=jt===void 0?"rc-textarea":jt,Gn=fn.classes,ii=fn.showCount,Sn=fn.className,Yt=fn.style,Zt=fn.disabled,St=fn.hidden,rt=fn.classNames,Ft=fn.styles,Ot=fn.onResize,ft=(0,Ke.Z)(fn,nt),ct=(0,ht.Z)(Ve,{value:gt,defaultValue:Ve}),Ge=(0,De.Z)(ct,2),Ae=Ge[0],xe=Ge[1],je=(0,kt.useRef)(null),Qe=kt.useState(!1),Oe=(0,De.Z)(Qe,2),xt=Oe[0],hn=Oe[1],Pn=kt.useState(!1),wt=(0,De.Z)(Pn,2),nn=wt[0],Mn=wt[1],Zn=kt.useRef(),li=kt.useRef(0),xi=kt.useState(null),Mi=(0,De.Z)(xi,2),Si=Mi[0],Ri=Mi[1],lr=function(){var ln;(ln=je.current)===null||ln===void 0||ln.textArea.focus()};(0,kt.useImperativeHandle)(an,function(){return{resizableTextArea:je.current,focus:lr,blur:function(){var ln;(ln=je.current)===null||ln===void 0||ln.textArea.blur()}}}),(0,kt.useEffect)(function(){hn(function(on){return!Zt&&on})},[Zt]);var dr=Number(En)>0,ur=function(ln){Mn(!0),Zn.current=Ae,li.current=ln.currentTarget.selectionStart,ei==null||ei(ln)},Sr=function(ln){Mn(!1);var qt=ln.currentTarget.value;if(dr){var Nt,On=li.current>=En+1||li.current===((Nt=Zn.current)===null||Nt===void 0?void 0:Nt.length);qt=Pt(On,Zn.current,qt,En)}qt!==Ae&&(xe(qt),(0,tt.rJ)(ln.currentTarget,ln,It,qt)),An==null||An(ln)},Wr=function(ln){var qt=ln.target.value;if(!nn&&dr){var Nt=ln.target.selectionStart>=En+1||ln.target.selectionStart===qt.length||!ln.target.selectionStart;qt=Pt(Nt,Ae,qt,En)}xe(qt),(0,tt.rJ)(ln.currentTarget,ln,It,qt)},Gi=function(ln){var qt=ft.onPressEnter,Nt=ft.onKeyDown;ln.key==="Enter"&&qt&&qt(ln),Nt==null||Nt(ln)},Zr=function(ln){hn(!0),Bt==null||Bt(ln)},Yi=function(ln){hn(!1),sn==null||sn(ln)},Ue=function(ln){var qt;xe(""),lr(),(0,tt.rJ)((qt=je.current)===null||qt===void 0?void 0:qt.textArea,ln,It)},no=(0,tt.D7)(Ae);!nn&&dr&&gt==null&&(no=$t(no,En));var pr=Kn,fo;if(ii){var Fo=(0,Ee.Z)(no).length;(0,Ie.Z)(ii)==="object"?fo=ii.formatter({value:no,count:Fo,maxLength:En}):fo="".concat(Fo).concat(dr?" / ".concat(En):""),pr=kt.createElement(kt.Fragment,null,pr,kt.createElement("span",{className:Je()("".concat(Nn,"-data-count"),rt==null?void 0:rt.count),style:Ft==null?void 0:Ft.count},fo))}var Vo=function(ln){var qt;Ot==null||Ot(ln),(qt=je.current)!==null&&qt!==void 0&&qt.textArea.style.height&&Ri(!0)},Io=!ft.autoSize&&!ii&&!en,Oi=kt.createElement(Ye.BaseInput,{value:no,allowClear:en,handleReset:Ue,suffix:pr,prefixCls:Nn,classes:{affixWrapper:Je()(Gn==null?void 0:Gn.affixWrapper,(it={},(0,we.Z)(it,"".concat(Nn,"-show-count"),ii),(0,we.Z)(it,"".concat(Nn,"-textarea-allow-clear"),en),it))},disabled:Zt,focused:xt,className:Sn,style:(0,Ce.Z)((0,Ce.Z)({},Yt),Si&&!Io?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof fo=="string"?fo:void 0}},hidden:St,inputElement:kt.createElement(Mt,(0,se.Z)({},ft,{onKeyDown:Gi,onChange:Wr,onFocus:Zr,onBlur:Yi,onCompositionStart:ur,onCompositionEnd:Sr,className:rt==null?void 0:rt.textarea,style:(0,Ce.Z)((0,Ce.Z)({},Ft==null?void 0:Ft.textarea),{},{resize:Yt==null?void 0:Yt.resize}),disabled:Zt,prefixCls:Nn,onResize:Vo,ref:je}))});return Oi}),zt=dn,Xt=zt},39417:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return $e}});var se=oe(5891),Ce=oe(80962),we=oe(19149),Ie=oe(57259),De=oe(79545),Ke=oe(68550),Ee=oe(21882),et=oe(17928),Je=oe(7711),Ye=oe(92310),tt=oe.n(Ye),ht=oe(36994),kt=oe(59301),ze=oe(39378),ee=function(ut){for(var Mt=ut.prefixCls,nt=ut.level,$t=ut.isStart,Pt=ut.isEnd,dn="".concat(Mt,"-indent-unit"),zt=[],Xt=0;Xt<nt;Xt+=1){var fn;zt.push(kt.createElement("span",{key:Xt,className:tt()(dn,(fn={},(0,Ce.Z)(fn,"".concat(dn,"-start"),$t[Xt]),(0,Ce.Z)(fn,"".concat(dn,"-end"),Pt[Xt]),fn))}))}return kt.createElement("span",{"aria-hidden":"true",className:"".concat(Mt,"-indent")},zt)},ne=kt.memo(ee),ge=oe(67841),ue=oe(71430),me=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],Se="open",Ne="close",ke="---",Te=function(st){(0,et.Z)(Mt,st);var ut=(0,Je.Z)(Mt);function Mt(){var nt;(0,De.Z)(this,Mt);for(var $t=arguments.length,Pt=new Array($t),dn=0;dn<$t;dn++)Pt[dn]=arguments[dn];return nt=ut.call.apply(ut,[this].concat(Pt)),nt.state={dragNodeHighlight:!1},nt.selectHandle=void 0,nt.cacheIndent=void 0,nt.onSelectorClick=function(zt){var Xt=nt.props.context.onNodeClick;Xt(zt,(0,ue.F)(nt.props)),nt.isSelectable()?nt.onSelect(zt):nt.onCheck(zt)},nt.onSelectorDoubleClick=function(zt){var Xt=nt.props.context.onNodeDoubleClick;Xt(zt,(0,ue.F)(nt.props))},nt.onSelect=function(zt){if(!nt.isDisabled()){var Xt=nt.props.context.onNodeSelect;Xt(zt,(0,ue.F)(nt.props))}},nt.onCheck=function(zt){if(!nt.isDisabled()){var Xt=nt.props,fn=Xt.disableCheckbox,an=Xt.checked,it=nt.props.context.onNodeCheck;if(!(!nt.isCheckable()||fn)){var Ve=!an;it(zt,(0,ue.F)(nt.props),Ve)}}},nt.onMouseEnter=function(zt){var Xt=nt.props.context.onNodeMouseEnter;Xt(zt,(0,ue.F)(nt.props))},nt.onMouseLeave=function(zt){var Xt=nt.props.context.onNodeMouseLeave;Xt(zt,(0,ue.F)(nt.props))},nt.onContextMenu=function(zt){var Xt=nt.props.context.onNodeContextMenu;Xt(zt,(0,ue.F)(nt.props))},nt.onDragStart=function(zt){var Xt=nt.props.context.onNodeDragStart;zt.stopPropagation(),nt.setState({dragNodeHighlight:!0}),Xt(zt,(0,Ee.Z)(nt));try{zt.dataTransfer.setData("text/plain","")}catch(fn){}},nt.onDragEnter=function(zt){var Xt=nt.props.context.onNodeDragEnter;zt.preventDefault(),zt.stopPropagation(),Xt(zt,(0,Ee.Z)(nt))},nt.onDragOver=function(zt){var Xt=nt.props.context.onNodeDragOver;zt.preventDefault(),zt.stopPropagation(),Xt(zt,(0,Ee.Z)(nt))},nt.onDragLeave=function(zt){var Xt=nt.props.context.onNodeDragLeave;zt.stopPropagation(),Xt(zt,(0,Ee.Z)(nt))},nt.onDragEnd=function(zt){var Xt=nt.props.context.onNodeDragEnd;zt.stopPropagation(),nt.setState({dragNodeHighlight:!1}),Xt(zt,(0,Ee.Z)(nt))},nt.onDrop=function(zt){var Xt=nt.props.context.onNodeDrop;zt.preventDefault(),zt.stopPropagation(),nt.setState({dragNodeHighlight:!1}),Xt(zt,(0,Ee.Z)(nt))},nt.onExpand=function(zt){var Xt=nt.props,fn=Xt.loading,an=Xt.context.onNodeExpand;fn||an(zt,(0,ue.F)(nt.props))},nt.setSelectHandle=function(zt){nt.selectHandle=zt},nt.getNodeState=function(){var zt=nt.props.expanded;return nt.isLeaf()?null:zt?Se:Ne},nt.hasChildren=function(){var zt=nt.props.eventKey,Xt=nt.props.context.keyEntities,fn=(0,ge.Z)(Xt,zt)||{},an=fn.children;return!!(an||[]).length},nt.isLeaf=function(){var zt=nt.props,Xt=zt.isLeaf,fn=zt.loaded,an=nt.props.context.loadData,it=nt.hasChildren();return Xt===!1?!1:Xt||!an&&!it||an&&fn&&!it},nt.isDisabled=function(){var zt=nt.props.disabled,Xt=nt.props.context.disabled;return!!(Xt||zt)},nt.isCheckable=function(){var zt=nt.props.checkable,Xt=nt.props.context.checkable;return!Xt||zt===!1?!1:Xt},nt.syncLoadData=function(zt){var Xt=zt.expanded,fn=zt.loading,an=zt.loaded,it=nt.props.context,Ve=it.loadData,gt=it.onNodeLoad;fn||Ve&&Xt&&!nt.isLeaf()&&!nt.hasChildren()&&!an&&gt((0,ue.F)(nt.props))},nt.isDraggable=function(){var zt=nt.props,Xt=zt.data,fn=zt.context.draggable;return!!(fn&&(!fn.nodeDraggable||fn.nodeDraggable(Xt)))},nt.renderDragHandler=function(){var zt=nt.props.context,Xt=zt.draggable,fn=zt.prefixCls;return Xt!=null&&Xt.icon?kt.createElement("span",{className:"".concat(fn,"-draggable-icon")},Xt.icon):null},nt.renderSwitcherIconDom=function(zt){var Xt=nt.props.switcherIcon,fn=nt.props.context.switcherIcon,an=Xt||fn;return typeof an=="function"?an((0,Ie.Z)((0,Ie.Z)({},nt.props),{},{isLeaf:zt})):an},nt.renderSwitcher=function(){var zt=nt.props.expanded,Xt=nt.props.context.prefixCls;if(nt.isLeaf()){var fn=nt.renderSwitcherIconDom(!0);return fn!==!1?kt.createElement("span",{className:tt()("".concat(Xt,"-switcher"),"".concat(Xt,"-switcher-noop"))},fn):null}var an=tt()("".concat(Xt,"-switcher"),"".concat(Xt,"-switcher_").concat(zt?Se:Ne)),it=nt.renderSwitcherIconDom(!1);return it!==!1?kt.createElement("span",{onClick:nt.onExpand,className:an},it):null},nt.renderCheckbox=function(){var zt=nt.props,Xt=zt.checked,fn=zt.halfChecked,an=zt.disableCheckbox,it=nt.props.context.prefixCls,Ve=nt.isDisabled(),gt=nt.isCheckable();if(!gt)return null;var Bt=typeof gt!="boolean"?gt:null;return kt.createElement("span",{className:tt()("".concat(it,"-checkbox"),Xt&&"".concat(it,"-checkbox-checked"),!Xt&&fn&&"".concat(it,"-checkbox-indeterminate"),(Ve||an)&&"".concat(it,"-checkbox-disabled")),onClick:nt.onCheck},Bt)},nt.renderIcon=function(){var zt=nt.props.loading,Xt=nt.props.context.prefixCls;return kt.createElement("span",{className:tt()("".concat(Xt,"-iconEle"),"".concat(Xt,"-icon__").concat(nt.getNodeState()||"docu"),zt&&"".concat(Xt,"-icon_loading"))})},nt.renderSelector=function(){var zt=nt.state.dragNodeHighlight,Xt=nt.props,fn=Xt.title,an=fn===void 0?ke:fn,it=Xt.selected,Ve=Xt.icon,gt=Xt.loading,Bt=Xt.data,sn=nt.props.context,It=sn.prefixCls,en=sn.showIcon,En=sn.icon,ei=sn.loadData,An=sn.titleRender,Kn=nt.isDisabled(),jt="".concat(It,"-node-content-wrapper"),Nn;if(en){var Gn=Ve||En;Nn=Gn?kt.createElement("span",{className:tt()("".concat(It,"-iconEle"),"".concat(It,"-icon__customize"))},typeof Gn=="function"?Gn(nt.props):Gn):nt.renderIcon()}else ei&&gt&&(Nn=nt.renderIcon());var ii;typeof an=="function"?ii=an(Bt):An?ii=An(Bt):ii=an;var Sn=kt.createElement("span",{className:"".concat(It,"-title")},ii);return kt.createElement("span",{ref:nt.setSelectHandle,title:typeof an=="string"?an:"",className:tt()("".concat(jt),"".concat(jt,"-").concat(nt.getNodeState()||"normal"),!Kn&&(it||zt)&&"".concat(It,"-node-selected")),onMouseEnter:nt.onMouseEnter,onMouseLeave:nt.onMouseLeave,onContextMenu:nt.onContextMenu,onClick:nt.onSelectorClick,onDoubleClick:nt.onSelectorDoubleClick},Nn,Sn,nt.renderDropIndicator())},nt.renderDropIndicator=function(){var zt=nt.props,Xt=zt.disabled,fn=zt.eventKey,an=nt.props.context,it=an.draggable,Ve=an.dropLevelOffset,gt=an.dropPosition,Bt=an.prefixCls,sn=an.indent,It=an.dropIndicatorRender,en=an.dragOverNodeKey,En=an.direction,ei=!!it,An=!Xt&&ei&&en===fn,Kn=sn!=null?sn:nt.cacheIndent;return nt.cacheIndent=sn,An?It({dropPosition:gt,dropLevelOffset:Ve,indent:Kn,prefixCls:Bt,direction:En}):null},nt}return(0,Ke.Z)(Mt,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var $t=this.props.selectable,Pt=this.props.context.selectable;return typeof $t=="boolean"?$t:Pt}},{key:"render",value:function(){var $t,Pt=this.props,dn=Pt.eventKey,zt=Pt.className,Xt=Pt.style,fn=Pt.dragOver,an=Pt.dragOverGapTop,it=Pt.dragOverGapBottom,Ve=Pt.isLeaf,gt=Pt.isStart,Bt=Pt.isEnd,sn=Pt.expanded,It=Pt.selected,en=Pt.checked,En=Pt.halfChecked,ei=Pt.loading,An=Pt.domRef,Kn=Pt.active,jt=Pt.data,Nn=Pt.onMouseMove,Gn=Pt.selectable,ii=(0,we.Z)(Pt,me),Sn=this.props.context,Yt=Sn.prefixCls,Zt=Sn.filterTreeNode,St=Sn.keyEntities,rt=Sn.dropContainerKey,Ft=Sn.dropTargetKey,Ot=Sn.draggingNodeKey,ft=this.isDisabled(),ct=(0,ht.Z)(ii,{aria:!0,data:!0}),Ge=(0,ge.Z)(St,dn)||{},Ae=Ge.level,xe=Bt[Bt.length-1],je=this.isDraggable(),Qe=!ft&&je,Oe=Ot===dn,xt=Gn!==void 0?{"aria-selected":!!Gn}:void 0;return kt.createElement("div",(0,se.Z)({ref:An,className:tt()(zt,"".concat(Yt,"-treenode"),($t={},(0,Ce.Z)($t,"".concat(Yt,"-treenode-disabled"),ft),(0,Ce.Z)($t,"".concat(Yt,"-treenode-switcher-").concat(sn?"open":"close"),!Ve),(0,Ce.Z)($t,"".concat(Yt,"-treenode-checkbox-checked"),en),(0,Ce.Z)($t,"".concat(Yt,"-treenode-checkbox-indeterminate"),En),(0,Ce.Z)($t,"".concat(Yt,"-treenode-selected"),It),(0,Ce.Z)($t,"".concat(Yt,"-treenode-loading"),ei),(0,Ce.Z)($t,"".concat(Yt,"-treenode-active"),Kn),(0,Ce.Z)($t,"".concat(Yt,"-treenode-leaf-last"),xe),(0,Ce.Z)($t,"".concat(Yt,"-treenode-draggable"),je),(0,Ce.Z)($t,"dragging",Oe),(0,Ce.Z)($t,"drop-target",Ft===dn),(0,Ce.Z)($t,"drop-container",rt===dn),(0,Ce.Z)($t,"drag-over",!ft&&fn),(0,Ce.Z)($t,"drag-over-gap-top",!ft&&an),(0,Ce.Z)($t,"drag-over-gap-bottom",!ft&&it),(0,Ce.Z)($t,"filter-node",Zt&&Zt((0,ue.F)(this.props))),$t)),style:Xt,draggable:Qe,"aria-grabbed":Oe,onDragStart:Qe?this.onDragStart:void 0,onDragEnter:je?this.onDragEnter:void 0,onDragOver:je?this.onDragOver:void 0,onDragLeave:je?this.onDragLeave:void 0,onDrop:je?this.onDrop:void 0,onDragEnd:je?this.onDragEnd:void 0,onMouseMove:Nn},xt,ct),kt.createElement(ne,{prefixCls:Yt,level:Ae,isStart:gt,isEnd:Bt}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Mt}(kt.Component),We=function(ut){return kt.createElement(ze.k.Consumer,null,function(Mt){return kt.createElement(Te,(0,se.Z)({},ut,{context:Mt}))})};We.displayName="TreeNode",We.isTreeNode=1;var $e=We},39378:function(_e,be,oe){"use strict";oe.d(be,{k:function(){return Ce}});var se=oe(59301),Ce=se.createContext(null)},99581:function(_e,be,oe){"use strict";oe.d(be,{O:function(){return $e.Z},Z:function(){return Sn}});var se=oe(5891),Ce=oe(80962),we=oe(80665),Ie=oe(57259),De=oe(26390),Ke=oe(79545),Ee=oe(68550),et=oe(21882),Je=oe(17928),Ye=oe(7711),tt=oe(92310),ht=oe.n(tt),kt=oe(85108),ze=oe(36994),ee=oe(51395),ne=oe(59301),ge=oe(39378);function ue(Yt){var Zt=Yt.dropPosition,St=Yt.dropLevelOffset,rt=Yt.indent,Ft={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Zt){case-1:Ft.top=0,Ft.left=-St*rt;break;case 1:Ft.bottom=0,Ft.left=-St*rt;break;case 0:Ft.bottom=0,Ft.left=rt;break}return ne.createElement("div",{style:Ft})}function me(Yt){if(Yt==null)throw new TypeError("Cannot destructure "+Yt)}var Se=oe(29043),Ne=oe(19149),ke=oe(28800),Te=oe(21881),We=oe(43469),$e=oe(39417);function st(Yt,Zt){var St=ne.useState(!1),rt=(0,Se.Z)(St,2),Ft=rt[0],Ot=rt[1];ne.useLayoutEffect(function(){if(Ft)return Yt(),function(){Zt()}},[Ft]),ne.useLayoutEffect(function(){return Ot(!0),function(){Ot(!1)}},[])}var ut=oe(71430),Mt=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],nt=function(Zt,St){var rt=Zt.className,Ft=Zt.style,Ot=Zt.motion,ft=Zt.motionNodes,ct=Zt.motionType,Ge=Zt.onMotionStart,Ae=Zt.onMotionEnd,xe=Zt.active,je=Zt.treeNodeRequiredProps,Qe=(0,Ne.Z)(Zt,Mt),Oe=ne.useState(!0),xt=(0,Se.Z)(Oe,2),hn=xt[0],Pn=xt[1],wt=ne.useContext(ge.k),nn=wt.prefixCls,Mn=ft&&ct!=="hide";(0,ke.Z)(function(){ft&&Mn!==hn&&Pn(Mn)},[ft]);var Zn=function(){ft&&Ge()},li=ne.useRef(!1),xi=function(){ft&&!li.current&&(li.current=!0,Ae())};st(Zn,xi);var Mi=function(Ri){Mn===Ri&&xi()};return ft?ne.createElement(We.default,(0,se.Z)({ref:St,visible:hn},Ot,{motionAppear:ct==="show",onVisibleChanged:Mi}),function(Si,Ri){var lr=Si.className,dr=Si.style;return ne.createElement("div",{ref:Ri,className:ht()("".concat(nn,"-treenode-motion"),lr),style:dr},ft.map(function(ur){var Sr=(0,se.Z)({},(me(ur.data),ur.data)),Wr=ur.title,Gi=ur.key,Zr=ur.isStart,Yi=ur.isEnd;delete Sr.children;var Ue=(0,ut.H8)(Gi,je);return ne.createElement($e.Z,(0,se.Z)({},Sr,Ue,{title:Wr,active:xe,data:ur.data,key:Gi,isStart:Zr,isEnd:Yi}))}))}):ne.createElement($e.Z,(0,se.Z)({domRef:St,className:rt,style:Ft},Qe,{active:xe}))};nt.displayName="MotionTreeNode";var $t=ne.forwardRef(nt),Pt=$t;function dn(){var Yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],St=Yt.length,rt=Zt.length;if(Math.abs(St-rt)!==1)return{add:!1,key:null};function Ft(Ot,ft){var ct=new Map;Ot.forEach(function(Ae){ct.set(Ae,!0)});var Ge=ft.filter(function(Ae){return!ct.has(Ae)});return Ge.length===1?Ge[0]:null}return St<rt?{add:!0,key:Ft(Yt,Zt)}:{add:!1,key:Ft(Zt,Yt)}}function zt(Yt,Zt,St){var rt=Yt.findIndex(function(ct){return ct.key===St}),Ft=Yt[rt+1],Ot=Zt.findIndex(function(ct){return ct.key===St});if(Ft){var ft=Zt.findIndex(function(ct){return ct.key===Ft.key});return Zt.slice(Ot+1,ft)}return Zt.slice(Ot+1)}var Xt=["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"],fn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},an=function(){},it="RC_TREE_MOTION_".concat(Math.random()),Ve={key:it},gt={key:it,level:0,index:0,pos:"0",node:Ve,nodes:[Ve]},Bt={parent:null,children:[],pos:gt.pos,data:Ve,title:null,key:it,isStart:[],isEnd:[]};function sn(Yt,Zt,St,rt){return Zt===!1||!St?Yt:Yt.slice(0,Math.ceil(St/rt)+1)}function It(Yt){var Zt=Yt.key,St=Yt.pos;return(0,ut.km)(Zt,St)}function en(Yt){for(var Zt=String(Yt.data.key),St=Yt;St.parent;)St=St.parent,Zt="".concat(St.data.key," > ").concat(Zt);return Zt}var En=ne.forwardRef(function(Yt,Zt){var St=Yt.prefixCls,rt=Yt.data,Ft=Yt.selectable,Ot=Yt.checkable,ft=Yt.expandedKeys,ct=Yt.selectedKeys,Ge=Yt.checkedKeys,Ae=Yt.loadedKeys,xe=Yt.loadingKeys,je=Yt.halfCheckedKeys,Qe=Yt.keyEntities,Oe=Yt.disabled,xt=Yt.dragging,hn=Yt.dragOverNodeKey,Pn=Yt.dropPosition,wt=Yt.motion,nn=Yt.height,Mn=Yt.itemHeight,Zn=Yt.virtual,li=Yt.focusable,xi=Yt.activeItem,Mi=Yt.focused,Si=Yt.tabIndex,Ri=Yt.onKeyDown,lr=Yt.onFocus,dr=Yt.onBlur,ur=Yt.onActiveChange,Sr=Yt.onListChangeStart,Wr=Yt.onListChangeEnd,Gi=(0,Ne.Z)(Yt,Xt),Zr=ne.useRef(null),Yi=ne.useRef(null);ne.useImperativeHandle(Zt,function(){return{scrollTo:function(yn){Zr.current.scrollTo(yn)},getIndentWidth:function(){return Yi.current.offsetWidth}}});var Ue=ne.useState(ft),no=(0,Se.Z)(Ue,2),pr=no[0],fo=no[1],Fo=ne.useState(rt),Vo=(0,Se.Z)(Fo,2),Io=Vo[0],Oi=Vo[1],on=ne.useState(rt),ln=(0,Se.Z)(on,2),qt=ln[0],Nt=ln[1],On=ne.useState([]),Un=(0,Se.Z)(On,2),Vt=Un[0],yt=Un[1],In=ne.useState(null),zn=(0,Se.Z)(In,2),mi=zn[0],Rn=zn[1],bt=ne.useRef(rt);bt.current=rt;function Ut(){var Gt=bt.current;Oi(Gt),Nt(Gt),yt([]),Rn(null),Wr()}(0,ke.Z)(function(){fo(ft);var Gt=dn(pr,ft);if(Gt.key!==null)if(Gt.add){var yn=Io.findIndex(function(Bn){var Vn=Bn.key;return Vn===Gt.key}),Qt=sn(zt(Io,rt,Gt.key),Zn,nn,Mn),un=Io.slice();un.splice(yn+1,0,Bt),Nt(un),yt(Qt),Rn("show")}else{var wn=rt.findIndex(function(Bn){var Vn=Bn.key;return Vn===Gt.key}),gn=sn(zt(rt,Io,Gt.key),Zn,nn,Mn),kn=rt.slice();kn.splice(wn+1,0,Bt),Nt(kn),yt(gn),Rn("hide")}else Io!==rt&&(Oi(rt),Nt(rt))},[ft,rt]),ne.useEffect(function(){xt||Ut()},[xt]);var Ln=wt?qt:rt,ni={expandedKeys:ft,selectedKeys:ct,loadedKeys:Ae,loadingKeys:xe,checkedKeys:Ge,halfCheckedKeys:je,dragOverNodeKey:hn,dropPosition:Pn,keyEntities:Qe};return ne.createElement(ne.Fragment,null,Mi&&xi&&ne.createElement("span",{style:fn,"aria-live":"assertive"},en(xi)),ne.createElement("div",null,ne.createElement("input",{style:fn,disabled:li===!1||Oe,tabIndex:li!==!1?Si:null,onKeyDown:Ri,onFocus:lr,onBlur:dr,value:"",onChange:an,"aria-label":"for screen reader"})),ne.createElement("div",{className:"".concat(St,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},ne.createElement("div",{className:"".concat(St,"-indent")},ne.createElement("div",{ref:Yi,className:"".concat(St,"-indent-unit")}))),ne.createElement(Te.Z,(0,se.Z)({},Gi,{data:Ln,itemKey:It,height:nn,fullHeight:!1,virtual:Zn,itemHeight:Mn,prefixCls:"".concat(St,"-list"),ref:Zr,onVisibleChange:function(yn,Qt){var un=new Set(yn),wn=Qt.filter(function(gn){return!un.has(gn)});wn.some(function(gn){return It(gn)===it})&&Ut()}}),function(Gt){var yn=Gt.pos,Qt=(0,se.Z)({},(me(Gt.data),Gt.data)),un=Gt.title,wn=Gt.key,gn=Gt.isStart,kn=Gt.isEnd,Bn=(0,ut.km)(wn,yn);delete Qt.key,delete Qt.children;var Vn=(0,ut.H8)(Bn,ni);return ne.createElement(Pt,(0,se.Z)({},Qt,Vn,{title:un,active:!!xi&&wn===xi.key,pos:yn,data:Gt.data,isStart:gn,isEnd:kn,motion:wt,motionNodes:wn===it?Vt:null,motionType:mi,onMotionStart:Sr,onMotionEnd:Ut,treeNodeRequiredProps:ni,onMouseMove:function(){ur(null)}}))}))});En.displayName="NodeList";var ei=En,An=oe(35654),Kn=oe(90782),jt=oe(67841),Nn=10,Gn=function(Yt){(0,Je.Z)(St,Yt);var Zt=(0,Ye.Z)(St);function St(){var rt;(0,Ke.Z)(this,St);for(var Ft=arguments.length,Ot=new Array(Ft),ft=0;ft<Ft;ft++)Ot[ft]=arguments[ft];return rt=Zt.call.apply(Zt,[this].concat(Ot)),rt.destroyed=!1,rt.delayedDragEnterLogic=void 0,rt.loadingRetryTimes={},rt.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,ut.w$)()},rt.dragStartMousePosition=null,rt.dragNode=void 0,rt.currentMouseOverDroppableNodeKey=null,rt.listRef=ne.createRef(),rt.onNodeDragStart=function(ct,Ge){var Ae=rt.state,xe=Ae.expandedKeys,je=Ae.keyEntities,Qe=rt.props.onDragStart,Oe=Ge.props.eventKey;rt.dragNode=Ge,rt.dragStartMousePosition={x:ct.clientX,y:ct.clientY};var xt=(0,An._5)(xe,Oe);rt.setState({draggingNodeKey:Oe,dragChildrenKeys:(0,An.wA)(Oe,je),indent:rt.listRef.current.getIndentWidth()}),rt.setExpandedKeys(xt),window.addEventListener("dragend",rt.onWindowDragEnd),Qe==null||Qe({event:ct,node:(0,ut.F)(Ge.props)})},rt.onNodeDragEnter=function(ct,Ge){var Ae=rt.state,xe=Ae.expandedKeys,je=Ae.keyEntities,Qe=Ae.dragChildrenKeys,Oe=Ae.flattenNodes,xt=Ae.indent,hn=rt.props,Pn=hn.onDragEnter,wt=hn.onExpand,nn=hn.allowDrop,Mn=hn.direction,Zn=Ge.props,li=Zn.pos,xi=Zn.eventKey,Mi=(0,et.Z)(rt),Si=Mi.dragNode;if(rt.currentMouseOverDroppableNodeKey!==xi&&(rt.currentMouseOverDroppableNodeKey=xi),!Si){rt.resetDragState();return}var Ri=(0,An.OM)(ct,Si,Ge,xt,rt.dragStartMousePosition,nn,Oe,je,xe,Mn),lr=Ri.dropPosition,dr=Ri.dropLevelOffset,ur=Ri.dropTargetKey,Sr=Ri.dropContainerKey,Wr=Ri.dropTargetPos,Gi=Ri.dropAllowed,Zr=Ri.dragOverNodeKey;if(Qe.indexOf(ur)!==-1||!Gi){rt.resetDragState();return}if(rt.delayedDragEnterLogic||(rt.delayedDragEnterLogic={}),Object.keys(rt.delayedDragEnterLogic).forEach(function(Yi){clearTimeout(rt.delayedDragEnterLogic[Yi])}),Si.props.eventKey!==Ge.props.eventKey&&(ct.persist(),rt.delayedDragEnterLogic[li]=window.setTimeout(function(){if(rt.state.draggingNodeKey!==null){var Yi=(0,De.Z)(xe),Ue=(0,jt.Z)(je,Ge.props.eventKey);Ue&&(Ue.children||[]).length&&(Yi=(0,An.L0)(xe,Ge.props.eventKey)),"expandedKeys"in rt.props||rt.setExpandedKeys(Yi),wt==null||wt(Yi,{node:(0,ut.F)(Ge.props),expanded:!0,nativeEvent:ct.nativeEvent})}},800)),Si.props.eventKey===ur&&dr===0){rt.resetDragState();return}rt.setState({dragOverNodeKey:Zr,dropPosition:lr,dropLevelOffset:dr,dropTargetKey:ur,dropContainerKey:Sr,dropTargetPos:Wr,dropAllowed:Gi}),Pn==null||Pn({event:ct,node:(0,ut.F)(Ge.props),expandedKeys:xe})},rt.onNodeDragOver=function(ct,Ge){var Ae=rt.state,xe=Ae.dragChildrenKeys,je=Ae.flattenNodes,Qe=Ae.keyEntities,Oe=Ae.expandedKeys,xt=Ae.indent,hn=rt.props,Pn=hn.onDragOver,wt=hn.allowDrop,nn=hn.direction,Mn=(0,et.Z)(rt),Zn=Mn.dragNode;if(Zn){var li=(0,An.OM)(ct,Zn,Ge,xt,rt.dragStartMousePosition,wt,je,Qe,Oe,nn),xi=li.dropPosition,Mi=li.dropLevelOffset,Si=li.dropTargetKey,Ri=li.dropContainerKey,lr=li.dropAllowed,dr=li.dropTargetPos,ur=li.dragOverNodeKey;xe.indexOf(Si)!==-1||!lr||(Zn.props.eventKey===Si&&Mi===0?rt.state.dropPosition===null&&rt.state.dropLevelOffset===null&&rt.state.dropTargetKey===null&&rt.state.dropContainerKey===null&&rt.state.dropTargetPos===null&&rt.state.dropAllowed===!1&&rt.state.dragOverNodeKey===null||rt.resetDragState():xi===rt.state.dropPosition&&Mi===rt.state.dropLevelOffset&&Si===rt.state.dropTargetKey&&Ri===rt.state.dropContainerKey&&dr===rt.state.dropTargetPos&&lr===rt.state.dropAllowed&&ur===rt.state.dragOverNodeKey||rt.setState({dropPosition:xi,dropLevelOffset:Mi,dropTargetKey:Si,dropContainerKey:Ri,dropTargetPos:dr,dropAllowed:lr,dragOverNodeKey:ur}),Pn==null||Pn({event:ct,node:(0,ut.F)(Ge.props)}))}},rt.onNodeDragLeave=function(ct,Ge){rt.currentMouseOverDroppableNodeKey===Ge.props.eventKey&&!ct.currentTarget.contains(ct.relatedTarget)&&(rt.resetDragState(),rt.currentMouseOverDroppableNodeKey=null);var Ae=rt.props.onDragLeave;Ae==null||Ae({event:ct,node:(0,ut.F)(Ge.props)})},rt.onWindowDragEnd=function(ct){rt.onNodeDragEnd(ct,null,!0),window.removeEventListener("dragend",rt.onWindowDragEnd)},rt.onNodeDragEnd=function(ct,Ge){var Ae=rt.props.onDragEnd;rt.setState({dragOverNodeKey:null}),rt.cleanDragState(),Ae==null||Ae({event:ct,node:(0,ut.F)(Ge.props)}),rt.dragNode=null,window.removeEventListener("dragend",rt.onWindowDragEnd)},rt.onNodeDrop=function(ct,Ge){var Ae,xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,je=rt.state,Qe=je.dragChildrenKeys,Oe=je.dropPosition,xt=je.dropTargetKey,hn=je.dropTargetPos,Pn=je.dropAllowed;if(Pn){var wt=rt.props.onDrop;if(rt.setState({dragOverNodeKey:null}),rt.cleanDragState(),xt!==null){var nn=(0,Ie.Z)((0,Ie.Z)({},(0,ut.H8)(xt,rt.getTreeNodeRequiredProps())),{},{active:((Ae=rt.getActiveItem())===null||Ae===void 0?void 0:Ae.key)===xt,data:(0,jt.Z)(rt.state.keyEntities,xt).node}),Mn=Qe.indexOf(xt)!==-1;(0,ee.ZP)(!Mn,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Zn=(0,An.yx)(hn),li={event:ct,node:(0,ut.F)(nn),dragNode:rt.dragNode?(0,ut.F)(rt.dragNode.props):null,dragNodesKeys:[rt.dragNode.props.eventKey].concat(Qe),dropToGap:Oe!==0,dropPosition:Oe+Number(Zn[Zn.length-1])};xe||wt==null||wt(li),rt.dragNode=null}}},rt.cleanDragState=function(){var ct=rt.state.draggingNodeKey;ct!==null&&rt.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),rt.dragStartMousePosition=null,rt.currentMouseOverDroppableNodeKey=null},rt.triggerExpandActionExpand=function(ct,Ge){var Ae=rt.state,xe=Ae.expandedKeys,je=Ae.flattenNodes,Qe=Ge.expanded,Oe=Ge.key,xt=Ge.isLeaf;if(!(xt||ct.shiftKey||ct.metaKey||ct.ctrlKey)){var hn=je.filter(function(wt){return wt.key===Oe})[0],Pn=(0,ut.F)((0,Ie.Z)((0,Ie.Z)({},(0,ut.H8)(Oe,rt.getTreeNodeRequiredProps())),{},{data:hn.data}));rt.setExpandedKeys(Qe?(0,An._5)(xe,Oe):(0,An.L0)(xe,Oe)),rt.onNodeExpand(ct,Pn)}},rt.onNodeClick=function(ct,Ge){var Ae=rt.props,xe=Ae.onClick,je=Ae.expandAction;je==="click"&&rt.triggerExpandActionExpand(ct,Ge),xe==null||xe(ct,Ge)},rt.onNodeDoubleClick=function(ct,Ge){var Ae=rt.props,xe=Ae.onDoubleClick,je=Ae.expandAction;je==="doubleClick"&&rt.triggerExpandActionExpand(ct,Ge),xe==null||xe(ct,Ge)},rt.onNodeSelect=function(ct,Ge){var Ae=rt.state.selectedKeys,xe=rt.state,je=xe.keyEntities,Qe=xe.fieldNames,Oe=rt.props,xt=Oe.onSelect,hn=Oe.multiple,Pn=Ge.selected,wt=Ge[Qe.key],nn=!Pn;nn?hn?Ae=(0,An.L0)(Ae,wt):Ae=[wt]:Ae=(0,An._5)(Ae,wt);var Mn=Ae.map(function(Zn){var li=(0,jt.Z)(je,Zn);return li?li.node:null}).filter(function(Zn){return Zn});rt.setUncontrolledState({selectedKeys:Ae}),xt==null||xt(Ae,{event:"select",selected:nn,node:Ge,selectedNodes:Mn,nativeEvent:ct.nativeEvent})},rt.onNodeCheck=function(ct,Ge,Ae){var xe=rt.state,je=xe.keyEntities,Qe=xe.checkedKeys,Oe=xe.halfCheckedKeys,xt=rt.props,hn=xt.checkStrictly,Pn=xt.onCheck,wt=Ge.key,nn,Mn={event:"check",node:Ge,checked:Ae,nativeEvent:ct.nativeEvent};if(hn){var Zn=Ae?(0,An.L0)(Qe,wt):(0,An._5)(Qe,wt),li=(0,An._5)(Oe,wt);nn={checked:Zn,halfChecked:li},Mn.checkedNodes=Zn.map(function(dr){return(0,jt.Z)(je,dr)}).filter(function(dr){return dr}).map(function(dr){return dr.node}),rt.setUncontrolledState({checkedKeys:Zn})}else{var xi=(0,Kn.S)([].concat((0,De.Z)(Qe),[wt]),!0,je),Mi=xi.checkedKeys,Si=xi.halfCheckedKeys;if(!Ae){var Ri=new Set(Mi);Ri.delete(wt);var lr=(0,Kn.S)(Array.from(Ri),{checked:!1,halfCheckedKeys:Si},je);Mi=lr.checkedKeys,Si=lr.halfCheckedKeys}nn=Mi,Mn.checkedNodes=[],Mn.checkedNodesPositions=[],Mn.halfCheckedKeys=Si,Mi.forEach(function(dr){var ur=(0,jt.Z)(je,dr);if(ur){var Sr=ur.node,Wr=ur.pos;Mn.checkedNodes.push(Sr),Mn.checkedNodesPositions.push({node:Sr,pos:Wr})}}),rt.setUncontrolledState({checkedKeys:Mi},!1,{halfCheckedKeys:Si})}Pn==null||Pn(nn,Mn)},rt.onNodeLoad=function(ct){var Ge=ct.key,Ae=new Promise(function(xe,je){rt.setState(function(Qe){var Oe=Qe.loadedKeys,xt=Oe===void 0?[]:Oe,hn=Qe.loadingKeys,Pn=hn===void 0?[]:hn,wt=rt.props,nn=wt.loadData,Mn=wt.onLoad;if(!nn||xt.indexOf(Ge)!==-1||Pn.indexOf(Ge)!==-1)return null;var Zn=nn(ct);return Zn.then(function(){var li=rt.state.loadedKeys,xi=(0,An.L0)(li,Ge);Mn==null||Mn(xi,{event:"load",node:ct}),rt.setUncontrolledState({loadedKeys:xi}),rt.setState(function(Mi){return{loadingKeys:(0,An._5)(Mi.loadingKeys,Ge)}}),xe()}).catch(function(li){if(rt.setState(function(Mi){return{loadingKeys:(0,An._5)(Mi.loadingKeys,Ge)}}),rt.loadingRetryTimes[Ge]=(rt.loadingRetryTimes[Ge]||0)+1,rt.loadingRetryTimes[Ge]>=Nn){var xi=rt.state.loadedKeys;(0,ee.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),rt.setUncontrolledState({loadedKeys:(0,An.L0)(xi,Ge)}),xe()}je(li)}),{loadingKeys:(0,An.L0)(Pn,Ge)}})});return Ae.catch(function(){}),Ae},rt.onNodeMouseEnter=function(ct,Ge){var Ae=rt.props.onMouseEnter;Ae==null||Ae({event:ct,node:Ge})},rt.onNodeMouseLeave=function(ct,Ge){var Ae=rt.props.onMouseLeave;Ae==null||Ae({event:ct,node:Ge})},rt.onNodeContextMenu=function(ct,Ge){var Ae=rt.props.onRightClick;Ae&&(ct.preventDefault(),Ae({event:ct,node:Ge}))},rt.onFocus=function(){var ct=rt.props.onFocus;rt.setState({focused:!0});for(var Ge=arguments.length,Ae=new Array(Ge),xe=0;xe<Ge;xe++)Ae[xe]=arguments[xe];ct==null||ct.apply(void 0,Ae)},rt.onBlur=function(){var ct=rt.props.onBlur;rt.setState({focused:!1}),rt.onActiveChange(null);for(var Ge=arguments.length,Ae=new Array(Ge),xe=0;xe<Ge;xe++)Ae[xe]=arguments[xe];ct==null||ct.apply(void 0,Ae)},rt.getTreeNodeRequiredProps=function(){var ct=rt.state,Ge=ct.expandedKeys,Ae=ct.selectedKeys,xe=ct.loadedKeys,je=ct.loadingKeys,Qe=ct.checkedKeys,Oe=ct.halfCheckedKeys,xt=ct.dragOverNodeKey,hn=ct.dropPosition,Pn=ct.keyEntities;return{expandedKeys:Ge||[],selectedKeys:Ae||[],loadedKeys:xe||[],loadingKeys:je||[],checkedKeys:Qe||[],halfCheckedKeys:Oe||[],dragOverNodeKey:xt,dropPosition:hn,keyEntities:Pn}},rt.setExpandedKeys=function(ct){var Ge=rt.state,Ae=Ge.treeData,xe=Ge.fieldNames,je=(0,ut.oH)(Ae,ct,xe);rt.setUncontrolledState({expandedKeys:ct,flattenNodes:je},!0)},rt.onNodeExpand=function(ct,Ge){var Ae=rt.state.expandedKeys,xe=rt.state,je=xe.listChanging,Qe=xe.fieldNames,Oe=rt.props,xt=Oe.onExpand,hn=Oe.loadData,Pn=Ge.expanded,wt=Ge[Qe.key];if(!je){var nn=Ae.indexOf(wt),Mn=!Pn;if((0,ee.ZP)(Pn&&nn!==-1||!Pn&&nn===-1,"Expand state not sync with index check"),Mn?Ae=(0,An.L0)(Ae,wt):Ae=(0,An._5)(Ae,wt),rt.setExpandedKeys(Ae),xt==null||xt(Ae,{node:Ge,expanded:Mn,nativeEvent:ct.nativeEvent}),Mn&&hn){var Zn=rt.onNodeLoad(Ge);Zn&&Zn.then(function(){var li=(0,ut.oH)(rt.state.treeData,Ae,Qe);rt.setUncontrolledState({flattenNodes:li})}).catch(function(){var li=rt.state.expandedKeys,xi=(0,An._5)(li,wt);rt.setExpandedKeys(xi)})}}},rt.onListChangeStart=function(){rt.setUncontrolledState({listChanging:!0})},rt.onListChangeEnd=function(){setTimeout(function(){rt.setUncontrolledState({listChanging:!1})})},rt.onActiveChange=function(ct){var Ge=rt.state.activeKey,Ae=rt.props.onActiveChange;Ge!==ct&&(rt.setState({activeKey:ct}),ct!==null&&rt.scrollTo({key:ct}),Ae==null||Ae(ct))},rt.getActiveItem=function(){var ct=rt.state,Ge=ct.activeKey,Ae=ct.flattenNodes;return Ge===null?null:Ae.find(function(xe){var je=xe.key;return je===Ge})||null},rt.offsetActiveKey=function(ct){var Ge=rt.state,Ae=Ge.flattenNodes,xe=Ge.activeKey,je=Ae.findIndex(function(xt){var hn=xt.key;return hn===xe});je===-1&&ct<0&&(je=Ae.length),je=(je+ct+Ae.length)%Ae.length;var Qe=Ae[je];if(Qe){var Oe=Qe.key;rt.onActiveChange(Oe)}else rt.onActiveChange(null)},rt.onKeyDown=function(ct){var Ge=rt.state,Ae=Ge.activeKey,xe=Ge.expandedKeys,je=Ge.checkedKeys,Qe=Ge.fieldNames,Oe=rt.props,xt=Oe.onKeyDown,hn=Oe.checkable,Pn=Oe.selectable;switch(ct.which){case kt.Z.UP:{rt.offsetActiveKey(-1),ct.preventDefault();break}case kt.Z.DOWN:{rt.offsetActiveKey(1),ct.preventDefault();break}}var wt=rt.getActiveItem();if(wt&&wt.data){var nn=rt.getTreeNodeRequiredProps(),Mn=wt.data.isLeaf===!1||!!(wt.data[Qe.children]||[]).length,Zn=(0,ut.F)((0,Ie.Z)((0,Ie.Z)({},(0,ut.H8)(Ae,nn)),{},{data:wt.data,active:!0}));switch(ct.which){case kt.Z.LEFT:{Mn&&xe.includes(Ae)?rt.onNodeExpand({},Zn):wt.parent&&rt.onActiveChange(wt.parent.key),ct.preventDefault();break}case kt.Z.RIGHT:{Mn&&!xe.includes(Ae)?rt.onNodeExpand({},Zn):wt.children&&wt.children.length&&rt.onActiveChange(wt.children[0].key),ct.preventDefault();break}case kt.Z.ENTER:case kt.Z.SPACE:{hn&&!Zn.disabled&&Zn.checkable!==!1&&!Zn.disableCheckbox?rt.onNodeCheck({},Zn,!je.includes(Ae)):!hn&&Pn&&!Zn.disabled&&Zn.selectable!==!1&&rt.onNodeSelect({},Zn);break}}}xt==null||xt(ct)},rt.setUncontrolledState=function(ct){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!rt.destroyed){var xe=!1,je=!0,Qe={};Object.keys(ct).forEach(function(Oe){if(Oe in rt.props){je=!1;return}xe=!0,Qe[Oe]=ct[Oe]}),xe&&(!Ge||je)&&rt.setState((0,Ie.Z)((0,Ie.Z)({},Qe),Ae))}},rt.scrollTo=function(ct){rt.listRef.current.scrollTo(ct)},rt}return(0,Ee.Z)(St,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Ft=this.props.activeKey;Ft!==void 0&&Ft!==this.state.activeKey&&(this.setState({activeKey:Ft}),Ft!==null&&this.scrollTo({key:Ft}))}},{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 Ft,Ot=this.state,ft=Ot.focused,ct=Ot.flattenNodes,Ge=Ot.keyEntities,Ae=Ot.draggingNodeKey,xe=Ot.activeKey,je=Ot.dropLevelOffset,Qe=Ot.dropContainerKey,Oe=Ot.dropTargetKey,xt=Ot.dropPosition,hn=Ot.dragOverNodeKey,Pn=Ot.indent,wt=this.props,nn=wt.prefixCls,Mn=wt.className,Zn=wt.style,li=wt.showLine,xi=wt.focusable,Mi=wt.tabIndex,Si=Mi===void 0?0:Mi,Ri=wt.selectable,lr=wt.showIcon,dr=wt.icon,ur=wt.switcherIcon,Sr=wt.draggable,Wr=wt.checkable,Gi=wt.checkStrictly,Zr=wt.disabled,Yi=wt.motion,Ue=wt.loadData,no=wt.filterTreeNode,pr=wt.height,fo=wt.itemHeight,Fo=wt.virtual,Vo=wt.titleRender,Io=wt.dropIndicatorRender,Oi=wt.onContextMenu,on=wt.onScroll,ln=wt.direction,qt=wt.rootClassName,Nt=wt.rootStyle,On=(0,ze.Z)(this.props,{aria:!0,data:!0}),Un;return Sr&&((0,we.Z)(Sr)==="object"?Un=Sr:typeof Sr=="function"?Un={nodeDraggable:Sr}:Un={}),ne.createElement(ge.k.Provider,{value:{prefixCls:nn,selectable:Ri,showIcon:lr,icon:dr,switcherIcon:ur,draggable:Un,draggingNodeKey:Ae,checkable:Wr,checkStrictly:Gi,disabled:Zr,keyEntities:Ge,dropLevelOffset:je,dropContainerKey:Qe,dropTargetKey:Oe,dropPosition:xt,dragOverNodeKey:hn,indent:Pn,direction:ln,dropIndicatorRender:Io,loadData:Ue,filterTreeNode:no,titleRender:Vo,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}},ne.createElement("div",{role:"tree",className:ht()(nn,Mn,qt,(Ft={},(0,Ce.Z)(Ft,"".concat(nn,"-show-line"),li),(0,Ce.Z)(Ft,"".concat(nn,"-focused"),ft),(0,Ce.Z)(Ft,"".concat(nn,"-active-focused"),xe!==null),Ft)),style:Nt},ne.createElement(ei,(0,se.Z)({ref:this.listRef,prefixCls:nn,style:Zn,data:ct,disabled:Zr,selectable:Ri,checkable:!!Wr,motion:Yi,dragging:Ae!==null,height:pr,itemHeight:fo,virtual:Fo,focusable:xi,focused:ft,tabIndex:Si,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Oi,onScroll:on},this.getTreeNodeRequiredProps(),On))))}}],[{key:"getDerivedStateFromProps",value:function(Ft,Ot){var ft=Ot.prevProps,ct={prevProps:Ft};function Ge(xi){return!ft&&xi in Ft||ft&&ft[xi]!==Ft[xi]}var Ae,xe=Ot.fieldNames;if(Ge("fieldNames")&&(xe=(0,ut.w$)(Ft.fieldNames),ct.fieldNames=xe),Ge("treeData")?Ae=Ft.treeData:Ge("children")&&((0,ee.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Ae=(0,ut.zn)(Ft.children)),Ae){ct.treeData=Ae;var je=(0,ut.I8)(Ae,{fieldNames:xe});ct.keyEntities=(0,Ie.Z)((0,Ce.Z)({},it,gt),je.keyEntities)}var Qe=ct.keyEntities||Ot.keyEntities;if(Ge("expandedKeys")||ft&&Ge("autoExpandParent"))ct.expandedKeys=Ft.autoExpandParent||!ft&&Ft.defaultExpandParent?(0,An.r7)(Ft.expandedKeys,Qe):Ft.expandedKeys;else if(!ft&&Ft.defaultExpandAll){var Oe=(0,Ie.Z)({},Qe);delete Oe[it],ct.expandedKeys=Object.keys(Oe).map(function(xi){return Oe[xi].key})}else!ft&&Ft.defaultExpandedKeys&&(ct.expandedKeys=Ft.autoExpandParent||Ft.defaultExpandParent?(0,An.r7)(Ft.defaultExpandedKeys,Qe):Ft.defaultExpandedKeys);if(ct.expandedKeys||delete ct.expandedKeys,Ae||ct.expandedKeys){var xt=(0,ut.oH)(Ae||Ot.treeData,ct.expandedKeys||Ot.expandedKeys,xe);ct.flattenNodes=xt}if(Ft.selectable&&(Ge("selectedKeys")?ct.selectedKeys=(0,An.BT)(Ft.selectedKeys,Ft):!ft&&Ft.defaultSelectedKeys&&(ct.selectedKeys=(0,An.BT)(Ft.defaultSelectedKeys,Ft))),Ft.checkable){var hn;if(Ge("checkedKeys")?hn=(0,An.E6)(Ft.checkedKeys)||{}:!ft&&Ft.defaultCheckedKeys?hn=(0,An.E6)(Ft.defaultCheckedKeys)||{}:Ae&&(hn=(0,An.E6)(Ft.checkedKeys)||{checkedKeys:Ot.checkedKeys,halfCheckedKeys:Ot.halfCheckedKeys}),hn){var Pn=hn,wt=Pn.checkedKeys,nn=wt===void 0?[]:wt,Mn=Pn.halfCheckedKeys,Zn=Mn===void 0?[]:Mn;if(!Ft.checkStrictly){var li=(0,Kn.S)(nn,!0,Qe);nn=li.checkedKeys,Zn=li.halfCheckedKeys}ct.checkedKeys=nn,ct.halfCheckedKeys=Zn}}return Ge("loadedKeys")&&(ct.loadedKeys=Ft.loadedKeys),ct}}]),St}(ne.Component);Gn.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:ue,allowDrop:function(){return!0},expandAction:!1},Gn.TreeNode=$e.Z;var ii=Gn,Sn=ii},35654:function(_e,be,oe){"use strict";oe.d(be,{BT:function(){return ne},E6:function(){return me},L0:function(){return Ye},OM:function(){return ee},_5:function(){return Je},r7:function(){return Se},wA:function(){return ht},yx:function(){return tt}});var se=oe(26390),Ce=oe(80665),we=oe(51395),Ie=oe(59301),De=oe(39417),Ke=oe(67841),Ee=oe(71430),et=null;function Je(Ne,ke){if(!Ne)return[];var Te=Ne.slice(),We=Te.indexOf(ke);return We>=0&&Te.splice(We,1),Te}function Ye(Ne,ke){var Te=(Ne||[]).slice();return Te.indexOf(ke)===-1&&Te.push(ke),Te}function tt(Ne){return Ne.split("-")}function ht(Ne,ke){var Te=[],We=(0,Ke.Z)(ke,Ne);function $e(){var st=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];st.forEach(function(ut){var Mt=ut.key,nt=ut.children;Te.push(Mt),$e(nt)})}return $e(We.children),Te}function kt(Ne){if(Ne.parent){var ke=tt(Ne.pos);return Number(ke[ke.length-1])===Ne.parent.children.length-1}return!1}function ze(Ne){var ke=tt(Ne.pos);return Number(ke[ke.length-1])===0}function ee(Ne,ke,Te,We,$e,st,ut,Mt,nt,$t){var Pt,dn=Ne.clientX,zt=Ne.clientY,Xt=Ne.target.getBoundingClientRect(),fn=Xt.top,an=Xt.height,it=($t==="rtl"?-1:1)*((($e==null?void 0:$e.x)||0)-dn),Ve=(it-12)/We,gt=(0,Ke.Z)(Mt,Te.props.eventKey);if(zt<fn+an/2){var Bt=ut.findIndex(function(Sn){return Sn.key===gt.key}),sn=Bt<=0?0:Bt-1,It=ut[sn].key;gt=(0,Ke.Z)(Mt,It)}var en=gt.key,En=gt,ei=gt.key,An=0,Kn=0;if(!nt.includes(en))for(var jt=0;jt<Ve&&kt(gt);jt+=1)gt=gt.parent,Kn+=1;var Nn=ke.props.data,Gn=gt.node,ii=!0;return ze(gt)&&gt.level===0&&zt<fn+an/2&&st({dragNode:Nn,dropNode:Gn,dropPosition:-1})&&gt.key===Te.props.eventKey?An=-1:(En.children||[]).length&&nt.includes(ei)?st({dragNode:Nn,dropNode:Gn,dropPosition:0})?An=0:ii=!1:Kn===0?Ve>-1.5?st({dragNode:Nn,dropNode:Gn,dropPosition:1})?An=1:ii=!1:st({dragNode:Nn,dropNode:Gn,dropPosition:0})?An=0:st({dragNode:Nn,dropNode:Gn,dropPosition:1})?An=1:ii=!1:st({dragNode:Nn,dropNode:Gn,dropPosition:1})?An=1:ii=!1,{dropPosition:An,dropLevelOffset:Kn,dropTargetKey:gt.key,dropTargetPos:gt.pos,dragOverNodeKey:ei,dropContainerKey:An===0?null:((Pt=gt.parent)===null||Pt===void 0?void 0:Pt.key)||null,dropAllowed:ii}}function ne(Ne,ke){if(Ne){var Te=ke.multiple;return Te?Ne.slice():Ne.length?[Ne[0]]:Ne}}var ge=function(ke){return ke};function ue(Ne,ke){if(!Ne)return[];var Te=ke||{},We=Te.processProps,$e=We===void 0?ge:We,st=Array.isArray(Ne)?Ne:[Ne];return st.map(function(ut){var Mt=ut.children,nt=_objectWithoutProperties(ut,et),$t=ue(Mt,ke);return React.createElement(TreeNode,_extends({key:nt.key},$e(nt)),$t)})}function me(Ne){if(!Ne)return null;var ke;if(Array.isArray(Ne))ke={checkedKeys:Ne,halfCheckedKeys:void 0};else if((0,Ce.Z)(Ne)==="object")ke={checkedKeys:Ne.checked||void 0,halfCheckedKeys:Ne.halfChecked||void 0};else return(0,we.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return ke}function Se(Ne,ke){var Te=new Set;function We($e){if(!Te.has($e)){var st=(0,Ke.Z)(ke,$e);if(st){Te.add($e);var ut=st.parent,Mt=st.node;Mt.disabled||ut&&We(ut.key)}}}return(Ne||[]).forEach(function($e){We($e)}),(0,se.Z)(Te)}},90782:function(_e,be,oe){"use strict";oe.d(be,{S:function(){return Ee}});var se=oe(51395),Ce=oe(67841);function we(et,Je){var Ye=new Set;return et.forEach(function(tt){Je.has(tt)||Ye.add(tt)}),Ye}function Ie(et){var Je=et||{},Ye=Je.disabled,tt=Je.disableCheckbox,ht=Je.checkable;return!!(Ye||tt)||ht===!1}function De(et,Je,Ye,tt){for(var ht=new Set(et),kt=new Set,ze=0;ze<=Ye;ze+=1){var ee=Je.get(ze)||new Set;ee.forEach(function(me){var Se=me.key,Ne=me.node,ke=me.children,Te=ke===void 0?[]:ke;ht.has(Se)&&!tt(Ne)&&Te.filter(function(We){return!tt(We.node)}).forEach(function(We){ht.add(We.key)})})}for(var ne=new Set,ge=Ye;ge>=0;ge-=1){var ue=Je.get(ge)||new Set;ue.forEach(function(me){var Se=me.parent,Ne=me.node;if(!(tt(Ne)||!me.parent||ne.has(me.parent.key))){if(tt(me.parent.node)){ne.add(Se.key);return}var ke=!0,Te=!1;(Se.children||[]).filter(function(We){return!tt(We.node)}).forEach(function(We){var $e=We.key,st=ht.has($e);ke&&!st&&(ke=!1),!Te&&(st||kt.has($e))&&(Te=!0)}),ke&&ht.add(Se.key),Te&&kt.add(Se.key),ne.add(Se.key)}})}return{checkedKeys:Array.from(ht),halfCheckedKeys:Array.from(we(kt,ht))}}function Ke(et,Je,Ye,tt,ht){for(var kt=new Set(et),ze=new Set(Je),ee=0;ee<=tt;ee+=1){var ne=Ye.get(ee)||new Set;ne.forEach(function(Se){var Ne=Se.key,ke=Se.node,Te=Se.children,We=Te===void 0?[]:Te;!kt.has(Ne)&&!ze.has(Ne)&&!ht(ke)&&We.filter(function($e){return!ht($e.node)}).forEach(function($e){kt.delete($e.key)})})}ze=new Set;for(var ge=new Set,ue=tt;ue>=0;ue-=1){var me=Ye.get(ue)||new Set;me.forEach(function(Se){var Ne=Se.parent,ke=Se.node;if(!(ht(ke)||!Se.parent||ge.has(Se.parent.key))){if(ht(Se.parent.node)){ge.add(Ne.key);return}var Te=!0,We=!1;(Ne.children||[]).filter(function($e){return!ht($e.node)}).forEach(function($e){var st=$e.key,ut=kt.has(st);Te&&!ut&&(Te=!1),!We&&(ut||ze.has(st))&&(We=!0)}),Te||kt.delete(Ne.key),We&&ze.add(Ne.key),ge.add(Ne.key)}})}return{checkedKeys:Array.from(kt),halfCheckedKeys:Array.from(we(ze,kt))}}function Ee(et,Je,Ye,tt){var ht=[],kt;tt?kt=tt:kt=Ie;var ze=new Set(et.filter(function(ue){var me=!!(0,Ce.Z)(Ye,ue);return me||ht.push(ue),me})),ee=new Map,ne=0;Object.keys(Ye).forEach(function(ue){var me=Ye[ue],Se=me.level,Ne=ee.get(Se);Ne||(Ne=new Set,ee.set(Se,Ne)),Ne.add(me),ne=Math.max(ne,Se)}),(0,se.ZP)(!ht.length,"Tree missing follow keys: ".concat(ht.slice(0,100).map(function(ue){return"'".concat(ue,"'")}).join(", ")));var ge;return Je===!0?ge=De(ze,ee,ne,kt):ge=Ke(ze,Je.halfCheckedKeys,ee,ne,kt),ge}},67841:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return se}});function se(Ce,we){return Ce[we]}},71430:function(_e,be,oe){"use strict";oe.d(be,{F:function(){return Se},H8:function(){return me},I8:function(){return ue},km:function(){return ht},oH:function(){return ne},w$:function(){return kt},zn:function(){return ee}});var se=oe(80665),Ce=oe(26390),we=oe(57259),Ie=oe(19149),De=oe(38298),Ke=oe(64002),Ee=oe(51395),et=oe(67841),Je=["children"];function Ye(Ne,ke){return"".concat(Ne,"-").concat(ke)}function tt(Ne){return Ne&&Ne.type&&Ne.type.isTreeNode}function ht(Ne,ke){return Ne!=null?Ne:ke}function kt(Ne){var ke=Ne||{},Te=ke.title,We=ke._title,$e=ke.key,st=ke.children,ut=Te||"title";return{title:ut,_title:We||[ut],key:$e||"key",children:st||"children"}}function ze(Ne,ke){var Te=new Map;function We($e){var st=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";($e||[]).forEach(function(ut){var Mt=ut[ke.key],nt=ut[ke.children];warning(Mt!=null,"Tree node must have a certain key: [".concat(st).concat(Mt,"]"));var $t=String(Mt);warning(!Te.has($t)||Mt===null||Mt===void 0,"Same 'key' exist in the Tree: ".concat($t)),Te.set($t,!0),We(nt,"".concat(st).concat($t," > "))})}We(Ne)}function ee(Ne){function ke(Te){var We=(0,De.Z)(Te);return We.map(function($e){if(!tt($e))return(0,Ee.ZP)(!$e,"Tree/TreeNode can only accept TreeNode as children."),null;var st=$e.key,ut=$e.props,Mt=ut.children,nt=(0,Ie.Z)(ut,Je),$t=(0,we.Z)({key:st},nt),Pt=ke(Mt);return Pt.length&&($t.children=Pt),$t}).filter(function($e){return $e})}return ke(Ne)}function ne(Ne,ke,Te){var We=kt(Te),$e=We._title,st=We.key,ut=We.children,Mt=new Set(ke===!0?[]:ke),nt=[];function $t(Pt){var dn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Pt.map(function(zt,Xt){for(var fn=Ye(dn?dn.pos:"0",Xt),an=ht(zt[st],fn),it,Ve=0;Ve<$e.length;Ve+=1){var gt=$e[Ve];if(zt[gt]!==void 0){it=zt[gt];break}}var Bt=(0,we.Z)((0,we.Z)({},(0,Ke.Z)(zt,[].concat((0,Ce.Z)($e),[st,ut]))),{},{title:it,key:an,parent:dn,pos:fn,children:null,data:zt,isStart:[].concat((0,Ce.Z)(dn?dn.isStart:[]),[Xt===0]),isEnd:[].concat((0,Ce.Z)(dn?dn.isEnd:[]),[Xt===Pt.length-1])});return nt.push(Bt),ke===!0||Mt.has(an)?Bt.children=$t(zt[ut]||[],Bt):Bt.children=[],Bt})}return $t(Ne),nt}function ge(Ne,ke,Te){var We={};(0,se.Z)(Te)==="object"?We=Te:We={externalGetKey:Te},We=We||{};var $e=We,st=$e.childrenPropName,ut=$e.externalGetKey,Mt=$e.fieldNames,nt=kt(Mt),$t=nt.key,Pt=nt.children,dn=st||Pt,zt;ut?typeof ut=="string"?zt=function(an){return an[ut]}:typeof ut=="function"&&(zt=function(an){return ut(an)}):zt=function(an,it){return ht(an[$t],it)};function Xt(fn,an,it,Ve){var gt=fn?fn[dn]:Ne,Bt=fn?Ye(it.pos,an):"0",sn=fn?[].concat((0,Ce.Z)(Ve),[fn]):[];if(fn){var It=zt(fn,Bt),en={node:fn,index:an,pos:Bt,key:It,parentPos:it.node?it.pos:null,level:it.level+1,nodes:sn};ke(en)}gt&&gt.forEach(function(En,ei){Xt(En,ei,{node:fn,pos:Bt,level:it?it.level+1:-1},sn)})}Xt(null)}function ue(Ne){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Te=ke.initWrapper,We=ke.processEntity,$e=ke.onProcessFinished,st=ke.externalGetKey,ut=ke.childrenPropName,Mt=ke.fieldNames,nt=arguments.length>2?arguments[2]:void 0,$t=st||nt,Pt={},dn={},zt={posEntities:Pt,keyEntities:dn};return Te&&(zt=Te(zt)||zt),ge(Ne,function(Xt){var fn=Xt.node,an=Xt.index,it=Xt.pos,Ve=Xt.key,gt=Xt.parentPos,Bt=Xt.level,sn=Xt.nodes,It={node:fn,nodes:sn,index:an,key:Ve,pos:it,level:Bt},en=ht(Ve,it);Pt[it]=It,dn[en]=It,It.parent=Pt[gt],It.parent&&(It.parent.children=It.parent.children||[],It.parent.children.push(It)),We&&We(It,zt)},{externalGetKey:$t,childrenPropName:ut,fieldNames:Mt}),$e&&$e(zt),zt}function me(Ne,ke){var Te=ke.expandedKeys,We=ke.selectedKeys,$e=ke.loadedKeys,st=ke.loadingKeys,ut=ke.checkedKeys,Mt=ke.halfCheckedKeys,nt=ke.dragOverNodeKey,$t=ke.dropPosition,Pt=ke.keyEntities,dn=(0,et.Z)(Pt,Ne),zt={eventKey:Ne,expanded:Te.indexOf(Ne)!==-1,selected:We.indexOf(Ne)!==-1,loaded:$e.indexOf(Ne)!==-1,loading:st.indexOf(Ne)!==-1,checked:ut.indexOf(Ne)!==-1,halfChecked:Mt.indexOf(Ne)!==-1,pos:String(dn?dn.pos:""),dragOver:nt===Ne&&$t===0,dragOverGapTop:nt===Ne&&$t===-1,dragOverGapBottom:nt===Ne&&$t===1};return zt}function Se(Ne){var ke=Ne.data,Te=Ne.expanded,We=Ne.selected,$e=Ne.checked,st=Ne.loaded,ut=Ne.loading,Mt=Ne.halfChecked,nt=Ne.dragOver,$t=Ne.dragOverGapTop,Pt=Ne.dragOverGapBottom,dn=Ne.pos,zt=Ne.active,Xt=Ne.eventKey,fn=(0,we.Z)((0,we.Z)({},ke),{},{expanded:Te,selected:We,checked:$e,loaded:st,loading:ut,halfChecked:Mt,dragOver:nt,dragOverGapTop:$t,dragOverGapBottom:Pt,pos:dn,active:zt,key:Xt});return"props"in fn||Object.defineProperty(fn,"props",{get:function(){return(0,Ee.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),Ne}}),fn}},8178:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return Ce}});var se=oe(4676);function Ce(we,Ie,De,Ke){var Ee=se.unstable_batchedUpdates?function(Je){se.unstable_batchedUpdates(De,Je)}:De;return we!=null&&we.addEventListener&&we.addEventListener(Ie,Ee,Ke),{remove:function(){we!=null&&we.removeEventListener&&we.removeEventListener(Ie,Ee,Ke)}}}},21783:function(_e,be,oe){"use strict";oe.d(be,{g1:function(){return tt},os:function(){return kt}});var se=/margin|padding|width|height|max|min|offset/,Ce={left:!0,top:!0},we={cssFloat:1,styleFloat:1,float:1};function Ie(ze){return ze.nodeType===1?ze.ownerDocument.defaultView.getComputedStyle(ze,null):{}}function De(ze,ee,ne){if(ee=ee.toLowerCase(),ne==="auto"){if(ee==="height")return ze.offsetHeight;if(ee==="width")return ze.offsetWidth}return ee in Ce||(Ce[ee]=se.test(ee)),Ce[ee]?parseFloat(ne)||0:ne}function Ke(ze,ee){var ne=arguments.length,ge=Ie(ze);return ee=we[ee]?"cssFloat"in ze.style?"cssFloat":"styleFloat":ee,ne===1?ge:De(ze,ee,ge[ee]||ze.style[ee])}function Ee(ze,ee,ne){var ge=arguments.length;if(ee=we[ee]?"cssFloat"in ze.style?"cssFloat":"styleFloat":ee,ge===3)return typeof ne=="number"&&se.test(ee)&&(ne="".concat(ne,"px")),ze.style[ee]=ne,ne;for(var ue in ee)ee.hasOwnProperty(ue)&&Ee(ze,ue,ee[ue]);return Ie(ze)}function et(ze){return ze===document.body?document.documentElement.clientWidth:ze.offsetWidth}function Je(ze){return ze===document.body?window.innerHeight||document.documentElement.clientHeight:ze.offsetHeight}function Ye(){var ze=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),ee=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:ze,height:ee}}function tt(){var ze=document.documentElement.clientWidth,ee=window.innerHeight||document.documentElement.clientHeight;return{width:ze,height:ee}}function ht(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function kt(ze){var ee=ze.getBoundingClientRect(),ne=document.documentElement;return{left:ee.left+(window.pageXOffset||ne.scrollLeft)-(ne.clientLeft||document.body.clientLeft||0),top:ee.top+(window.pageYOffset||ne.scrollTop)-(ne.clientTop||document.body.clientTop||0)}}},24387:function(_e,be,oe){"use strict";oe.d(be,{G:function(){return Ie}});var se=oe(87746),Ce=function(Ke){if((0,se.Z)()&&window.document.documentElement){var Ee=Array.isArray(Ke)?Ke:[Ke],et=window.document.documentElement;return Ee.some(function(Je){return Je in et.style})}return!1},we=function(Ke,Ee){if(!Ce(Ke))return!1;var et=document.createElement("div"),Je=et.style[Ke];return et.style[Ke]=Ee,et.style[Ke]!==Je};function Ie(De,Ke){return!Array.isArray(De)&&Ke!==void 0?we(De,Ke):Ce(De)}},21881:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return ii}});var se=oe(5891),Ce=oe(80665),we=oe(57259),Ie=oe(80962),De=oe(29043),Ke=oe(19149),Ee=oe(92310),et=oe.n(Ee),Je=oe(29301),Ye=oe(80764),tt=oe(28800),ht=oe(59301),kt=oe(4676),ze=ht.forwardRef(function(Sn,Yt){var Zt=Sn.height,St=Sn.offsetY,rt=Sn.offsetX,Ft=Sn.children,Ot=Sn.prefixCls,ft=Sn.onInnerResize,ct=Sn.innerProps,Ge=Sn.rtl,Ae=Sn.extra,xe={},je={display:"flex",flexDirection:"column"};return St!==void 0&&(xe={height:Zt,position:"relative",overflow:"hidden"},je=(0,we.Z)((0,we.Z)({},je),{},(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({transform:"translateY(".concat(St,"px)")},Ge?"marginRight":"marginLeft",-rt),"position","absolute"),"left",0),"right",0),"top",0))),ht.createElement("div",{style:xe},ht.createElement(Je.Z,{onResize:function(Oe){var xt=Oe.offsetHeight;xt&&ft&&ft()}},ht.createElement("div",(0,se.Z)({style:je,className:et()((0,Ie.Z)({},"".concat(Ot,"-holder-inner"),Ot)),ref:Yt},ct),Ft,Ae)))});ze.displayName="Filler";var ee=ze;function ne(Sn){var Yt=Sn.children,Zt=Sn.setRef,St=ht.useCallback(function(rt){Zt(rt)},[]);return ht.cloneElement(Yt,{ref:St})}function ge(Sn,Yt,Zt,St,rt,Ft,Ot,ft){var ct=ft.getKey;return Sn.slice(Yt,Zt+1).map(function(Ge,Ae){var xe=Yt+Ae,je=Ot(Ge,xe,{style:{width:St},offsetX:rt}),Qe=ct(Ge);return ht.createElement(ne,{key:Qe,setRef:function(xt){return Ft(Ge,xt)}},je)})}function ue(Sn,Yt,Zt,St){var rt=Zt-Sn,Ft=Yt-Zt,Ot=Math.min(rt,Ft)*2;if(St<=Ot){var ft=Math.floor(St/2);return St%2?Zt+ft+1:Zt-ft}return rt>Ft?Zt-(St-Ft):Zt+(St-rt)}function me(Sn,Yt,Zt){var St=Sn.length,rt=Yt.length,Ft,Ot;if(St===0&&rt===0)return null;St<rt?(Ft=Sn,Ot=Yt):(Ft=Yt,Ot=Sn);var ft={__EMPTY_ITEM__:!0};function ct(Oe){return Oe!==void 0?Zt(Oe):ft}for(var Ge=null,Ae=Math.abs(St-rt)!==1,xe=0;xe<Ot.length;xe+=1){var je=ct(Ft[xe]),Qe=ct(Ot[xe]);if(je!==Qe){Ge=xe,Ae=Ae||je!==ct(Ot[xe+1]);break}}return Ge===null?null:{index:Ge,multiple:Ae}}function Se(Sn,Yt,Zt){var St=ht.useState(Sn),rt=(0,De.Z)(St,2),Ft=rt[0],Ot=rt[1],ft=ht.useState(null),ct=(0,De.Z)(ft,2),Ge=ct[0],Ae=ct[1];return ht.useEffect(function(){var xe=me(Ft||[],Sn||[],Yt);(xe==null?void 0:xe.index)!==void 0&&(Zt==null||Zt(xe.index),Ae(Sn[xe.index])),Ot(Sn)},[Sn]),[Ge]}var Ne=oe(23073),ke=(typeof navigator=="undefined"?"undefined":(0,Ce.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Te=ke,We=function(Sn,Yt,Zt,St){var rt=(0,ht.useRef)(!1),Ft=(0,ht.useRef)(null);function Ot(){clearTimeout(Ft.current),rt.current=!0,Ft.current=setTimeout(function(){rt.current=!1},50)}var ft=(0,ht.useRef)({top:Sn,bottom:Yt,left:Zt,right:St});return ft.current.top=Sn,ft.current.bottom=Yt,ft.current.left=Zt,ft.current.right=St,function(ct,Ge){var Ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,xe=ct?Ge<0&&ft.current.left||Ge>0&&ft.current.right:Ge<0&&ft.current.top||Ge>0&&ft.current.bottom;return Ae&&xe?(clearTimeout(Ft.current),rt.current=!1):(!xe||rt.current)&&Ot(),!rt.current&&xe}};function $e(Sn,Yt,Zt,St,rt,Ft,Ot){var ft=(0,ht.useRef)(0),ct=(0,ht.useRef)(null),Ge=(0,ht.useRef)(null),Ae=(0,ht.useRef)(!1),xe=We(Yt,Zt,St,rt);function je(wt,nn){if(Ne.Z.cancel(ct.current),!xe(!1,nn)){var Mn=wt;if(!Mn._virtualHandled)Mn._virtualHandled=!0;else return;ft.current+=nn,Ge.current=nn,Te||Mn.preventDefault(),ct.current=(0,Ne.Z)(function(){var Zn=Ae.current?10:1;Ot(ft.current*Zn,!1),ft.current=0})}}function Qe(wt,nn){Ot(nn,!0),Te||wt.preventDefault()}var Oe=(0,ht.useRef)(null),xt=(0,ht.useRef)(null);function hn(wt){if(Sn){Ne.Z.cancel(xt.current),xt.current=(0,Ne.Z)(function(){Oe.current=null},2);var nn=wt.deltaX,Mn=wt.deltaY,Zn=wt.shiftKey,li=nn,xi=Mn;(Oe.current==="sx"||!Oe.current&&Zn&&Mn&&!nn)&&(li=Mn,xi=0,Oe.current="sx");var Mi=Math.abs(li),Si=Math.abs(xi);Oe.current===null&&(Oe.current=Ft&&Mi>Si?"x":"y"),Oe.current==="y"?je(wt,xi):Qe(wt,li)}}function Pn(wt){Sn&&(Ae.current=wt.detail===Ge.current)}return[hn,Pn]}function st(Sn,Yt,Zt,St){var rt=ht.useMemo(function(){return[new Map,[]]},[Sn,Zt.id,St]),Ft=(0,De.Z)(rt,2),Ot=Ft[0],ft=Ft[1],ct=function(Ae){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ae,je=Ot.get(Ae),Qe=Ot.get(xe);if(je===void 0||Qe===void 0)for(var Oe=Sn.length,xt=ft.length;xt<Oe;xt+=1){var hn,Pn=Sn[xt],wt=Yt(Pn);Ot.set(wt,xt);var nn=(hn=Zt.get(wt))!==null&&hn!==void 0?hn:St;if(ft[xt]=(ft[xt-1]||0)+nn,wt===Ae&&(je=xt),wt===xe&&(Qe=xt),je!==void 0&&Qe!==void 0)break}return{top:ft[je-1]||0,bottom:ft[Qe]}};return ct}var ut=oe(85899),Mt=oe(79545),nt=oe(68550),$t=function(){function Sn(){(0,Mt.Z)(this,Sn),(0,Ie.Z)(this,"maps",void 0),(0,Ie.Z)(this,"id",0),(0,Ie.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,nt.Z)(Sn,[{key:"set",value:function(Zt,St){this.maps[Zt]=St,this.id+=1,this.diffKeys.add(Zt)}},{key:"get",value:function(Zt){return this.maps[Zt]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),Sn}(),Pt=$t;function dn(Sn){var Yt=parseFloat(Sn);return isNaN(Yt)?0:Yt}function zt(Sn,Yt,Zt){var St=ht.useState(0),rt=(0,De.Z)(St,2),Ft=rt[0],Ot=rt[1],ft=(0,ht.useRef)(new Map),ct=(0,ht.useRef)(new Pt),Ge=(0,ht.useRef)(0);function Ae(){Ge.current+=1}function xe(){var Qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Ae();var Oe=function(){var Pn=!1;ft.current.forEach(function(wt,nn){if(wt&&wt.offsetParent){var Mn=(0,ut.ZP)(wt),Zn=Mn.offsetHeight,li=getComputedStyle(Mn),xi=li.marginTop,Mi=li.marginBottom,Si=dn(xi),Ri=dn(Mi),lr=Zn+Si+Ri;ct.current.get(nn)!==lr&&(ct.current.set(nn,lr),Pn=!0)}}),Pn&&Ot(function(wt){return wt+1})};if(Qe)Oe();else{Ge.current+=1;var xt=Ge.current;Promise.resolve().then(function(){xt===Ge.current&&Oe()})}}function je(Qe,Oe){var xt=Sn(Qe),hn=ft.current.get(xt);Oe?(ft.current.set(xt,Oe),xe()):ft.current.delete(xt),!hn!=!Oe&&(Oe?Yt==null||Yt(Qe):Zt==null||Zt(Qe))}return(0,ht.useEffect)(function(){return Ae},[]),[je,xe,ct.current,Ft]}var Xt=14/15;function fn(Sn,Yt,Zt){var St=(0,ht.useRef)(!1),rt=(0,ht.useRef)(0),Ft=(0,ht.useRef)(0),Ot=(0,ht.useRef)(null),ft=(0,ht.useRef)(null),ct,Ge=function(Qe){if(St.current){var Oe=Math.ceil(Qe.touches[0].pageX),xt=Math.ceil(Qe.touches[0].pageY),hn=rt.current-Oe,Pn=Ft.current-xt,wt=Math.abs(hn)>Math.abs(Pn);wt?rt.current=Oe:Ft.current=xt;var nn=Zt(wt,wt?hn:Pn,!1,Qe);nn&&Qe.preventDefault(),clearInterval(ft.current),nn&&(ft.current=setInterval(function(){wt?hn*=Xt:Pn*=Xt;var Mn=Math.floor(wt?hn:Pn);(!Zt(wt,Mn,!0)||Math.abs(Mn)<=.1)&&clearInterval(ft.current)},16))}},Ae=function(){St.current=!1,ct()},xe=function(Qe){ct(),Qe.touches.length===1&&!St.current&&(St.current=!0,rt.current=Math.ceil(Qe.touches[0].pageX),Ft.current=Math.ceil(Qe.touches[0].pageY),Ot.current=Qe.target,Ot.current.addEventListener("touchmove",Ge,{passive:!1}),Ot.current.addEventListener("touchend",Ae,{passive:!0}))};ct=function(){Ot.current&&(Ot.current.removeEventListener("touchmove",Ge),Ot.current.removeEventListener("touchend",Ae))},(0,tt.Z)(function(){return Sn&&Yt.current.addEventListener("touchstart",xe,{passive:!0}),function(){var je;(je=Yt.current)===null||je===void 0||je.removeEventListener("touchstart",xe),ct(),clearInterval(ft.current)}},[Sn])}function an(Sn){return Math.floor(Math.pow(Sn,.5))}function it(Sn,Yt){var Zt="touches"in Sn?Sn.touches[0]:Sn;return Zt[Yt?"pageX":"pageY"]-window[Yt?"scrollX":"scrollY"]}function Ve(Sn,Yt,Zt){ht.useEffect(function(){var St=Yt.current;if(Sn&&St){var rt=!1,Ft,Ot,ft=function(){Ne.Z.cancel(Ft)},ct=function je(){ft(),Ft=(0,Ne.Z)(function(){Zt(Ot),je()})},Ge=function(Qe){var Oe=Qe;Oe._virtualHandled||(Oe._virtualHandled=!0,rt=!0)},Ae=function(){rt=!1,ft()},xe=function(Qe){if(rt){var Oe=it(Qe,!1),xt=St.getBoundingClientRect(),hn=xt.top,Pn=xt.bottom;if(Oe<=hn){var wt=hn-Oe;Ot=-an(wt),ct()}else if(Oe>=Pn){var nn=Oe-Pn;Ot=an(nn),ct()}else ft()}};return St.addEventListener("mousedown",Ge),St.ownerDocument.addEventListener("mouseup",Ae),St.ownerDocument.addEventListener("mousemove",xe),function(){St.removeEventListener("mousedown",Ge),St.ownerDocument.removeEventListener("mouseup",Ae),St.ownerDocument.removeEventListener("mousemove",xe),ft()}}},[Sn])}var gt=10;function Bt(Sn,Yt,Zt,St,rt,Ft,Ot,ft){var ct=ht.useRef(),Ge=ht.useState(null),Ae=(0,De.Z)(Ge,2),xe=Ae[0],je=Ae[1];return(0,tt.Z)(function(){if(xe&&xe.times<gt){if(!Sn.current){je(function(Ue){return(0,we.Z)({},Ue)});return}Ft();var Qe=xe.targetAlign,Oe=xe.originAlign,xt=xe.index,hn=xe.offset,Pn=Sn.current.clientHeight,wt=!1,nn=Qe,Mn=null;if(Pn){for(var Zn=Qe||Oe,li=0,xi=0,Mi=0,Si=Math.min(Yt.length-1,xt),Ri=0;Ri<=Si;Ri+=1){var lr=rt(Yt[Ri]);xi=li;var dr=Zt.get(lr);Mi=xi+(dr===void 0?St:dr),li=Mi}for(var ur=Zn==="top"?hn:Pn-hn,Sr=Si;Sr>=0;Sr-=1){var Wr=rt(Yt[Sr]),Gi=Zt.get(Wr);if(Gi===void 0){wt=!0;break}if(ur-=Gi,ur<=0)break}switch(Zn){case"top":Mn=xi-hn;break;case"bottom":Mn=Mi-Pn+hn;break;default:{var Zr=Sn.current.scrollTop,Yi=Zr+Pn;xi<Zr?nn="top":Mi>Yi&&(nn="bottom")}}Mn!==null&&Ot(Mn),Mn!==xe.lastTop&&(wt=!0)}wt&&je((0,we.Z)((0,we.Z)({},xe),{},{times:xe.times+1,targetAlign:nn,lastTop:Mn}))}},[xe,Sn.current]),function(Qe){if(Qe==null){ft();return}if(Ne.Z.cancel(ct.current),typeof Qe=="number")Ot(Qe);else if(Qe&&(0,Ce.Z)(Qe)==="object"){var Oe,xt=Qe.align;"index"in Qe?Oe=Qe.index:Oe=Yt.findIndex(function(wt){return rt(wt)===Qe.key});var hn=Qe.offset,Pn=hn===void 0?0:hn;je({times:0,index:Oe,offset:Pn,originAlign:xt})}}}var sn=ht.forwardRef(function(Sn,Yt){var Zt=Sn.prefixCls,St=Sn.rtl,rt=Sn.scrollOffset,Ft=Sn.scrollRange,Ot=Sn.onStartMove,ft=Sn.onStopMove,ct=Sn.onScroll,Ge=Sn.horizontal,Ae=Sn.spinSize,xe=Sn.containerSize,je=Sn.style,Qe=Sn.thumbStyle,Oe=ht.useState(!1),xt=(0,De.Z)(Oe,2),hn=xt[0],Pn=xt[1],wt=ht.useState(null),nn=(0,De.Z)(wt,2),Mn=nn[0],Zn=nn[1],li=ht.useState(null),xi=(0,De.Z)(li,2),Mi=xi[0],Si=xi[1],Ri=!St,lr=ht.useRef(),dr=ht.useRef(),ur=ht.useState(!1),Sr=(0,De.Z)(ur,2),Wr=Sr[0],Gi=Sr[1],Zr=ht.useRef(),Yi=function(){clearTimeout(Zr.current),Gi(!0),Zr.current=setTimeout(function(){Gi(!1)},3e3)},Ue=Ft-xe||0,no=xe-Ae||0,pr=ht.useMemo(function(){if(rt===0||Ue===0)return 0;var Nt=rt/Ue;return Nt*no},[rt,Ue,no]),fo=function(On){On.stopPropagation(),On.preventDefault()},Fo=ht.useRef({top:pr,dragging:hn,pageY:Mn,startTop:Mi});Fo.current={top:pr,dragging:hn,pageY:Mn,startTop:Mi};var Vo=function(On){Pn(!0),Zn(it(On,Ge)),Si(Fo.current.top),Ot(),On.stopPropagation(),On.preventDefault()};ht.useEffect(function(){var Nt=function(yt){yt.preventDefault()},On=lr.current,Un=dr.current;return On.addEventListener("touchstart",Nt,{passive:!1}),Un.addEventListener("touchstart",Vo,{passive:!1}),function(){On.removeEventListener("touchstart",Nt),Un.removeEventListener("touchstart",Vo)}},[]);var Io=ht.useRef();Io.current=Ue;var Oi=ht.useRef();Oi.current=no,ht.useEffect(function(){if(hn){var Nt,On=function(yt){var In=Fo.current,zn=In.dragging,mi=In.pageY,Rn=In.startTop;Ne.Z.cancel(Nt);var bt=lr.current.getBoundingClientRect(),Ut=xe/(Ge?bt.width:bt.height);if(zn){var Ln=(it(yt,Ge)-mi)*Ut,ni=Rn;!Ri&&Ge?ni-=Ln:ni+=Ln;var Gt=Io.current,yn=Oi.current,Qt=yn?ni/yn:0,un=Math.ceil(Qt*Gt);un=Math.max(un,0),un=Math.min(un,Gt),Nt=(0,Ne.Z)(function(){ct(un,Ge)})}},Un=function(){Pn(!1),ft()};return window.addEventListener("mousemove",On,{passive:!0}),window.addEventListener("touchmove",On,{passive:!0}),window.addEventListener("mouseup",Un,{passive:!0}),window.addEventListener("touchend",Un,{passive:!0}),function(){window.removeEventListener("mousemove",On),window.removeEventListener("touchmove",On),window.removeEventListener("mouseup",Un),window.removeEventListener("touchend",Un),Ne.Z.cancel(Nt)}}},[hn]),ht.useEffect(function(){return Yi(),function(){clearTimeout(Zr.current)}},[rt]),ht.useImperativeHandle(Yt,function(){return{delayHidden:Yi}});var on="".concat(Zt,"-scrollbar"),ln={position:"absolute",visibility:Wr?null:"hidden"},qt={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Ge?(ln.height=8,ln.left=0,ln.right=0,ln.bottom=0,qt.height="100%",qt.width=Ae,Ri?qt.left=pr:qt.right=pr):(ln.width=8,ln.top=0,ln.bottom=0,Ri?ln.right=0:ln.left=0,qt.width="100%",qt.height=Ae,qt.top=pr),ht.createElement("div",{ref:lr,className:et()(on,(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},"".concat(on,"-horizontal"),Ge),"".concat(on,"-vertical"),!Ge),"".concat(on,"-visible"),Wr)),style:(0,we.Z)((0,we.Z)({},ln),je),onMouseDown:fo,onMouseMove:Yi},ht.createElement("div",{ref:dr,className:et()("".concat(on,"-thumb"),(0,Ie.Z)({},"".concat(on,"-thumb-moving"),hn)),style:(0,we.Z)((0,we.Z)({},qt),Qe),onMouseDown:Vo}))}),It=sn,en=20;function En(){var Sn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Zt=Sn/Yt*Sn;return isNaN(Zt)&&(Zt=0),Zt=Math.max(Zt,en),Math.floor(Zt)}var ei=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],An=[],Kn={overflowY:"auto",overflowAnchor:"none"};function jt(Sn,Yt){var Zt=Sn.prefixCls,St=Zt===void 0?"rc-virtual-list":Zt,rt=Sn.className,Ft=Sn.height,Ot=Sn.itemHeight,ft=Sn.fullHeight,ct=ft===void 0?!0:ft,Ge=Sn.style,Ae=Sn.data,xe=Sn.children,je=Sn.itemKey,Qe=Sn.virtual,Oe=Sn.direction,xt=Sn.scrollWidth,hn=Sn.component,Pn=hn===void 0?"div":hn,wt=Sn.onScroll,nn=Sn.onVirtualScroll,Mn=Sn.onVisibleChange,Zn=Sn.innerProps,li=Sn.extraRender,xi=Sn.styles,Mi=(0,Ke.Z)(Sn,ei),Si=ht.useCallback(function(Mr){return typeof je=="function"?je(Mr):Mr==null?void 0:Mr[je]},[je]),Ri=zt(Si,null,null),lr=(0,De.Z)(Ri,4),dr=lr[0],ur=lr[1],Sr=lr[2],Wr=lr[3],Gi=!!(Qe!==!1&&Ft&&Ot),Zr=ht.useMemo(function(){return Object.values(Sr.maps).reduce(function(Mr,mr){return Mr+mr},0)},[Sr.id,Sr.maps]),Yi=Gi&&Ae&&(Math.max(Ot*Ae.length,Zr)>Ft||!!xt),Ue=Oe==="rtl",no=et()(St,(0,Ie.Z)({},"".concat(St,"-rtl"),Ue),rt),pr=Ae||An,fo=(0,ht.useRef)(),Fo=(0,ht.useRef)(),Vo=(0,ht.useRef)(),Io=(0,ht.useState)(0),Oi=(0,De.Z)(Io,2),on=Oi[0],ln=Oi[1],qt=(0,ht.useState)(0),Nt=(0,De.Z)(qt,2),On=Nt[0],Un=Nt[1],Vt=(0,ht.useState)(!1),yt=(0,De.Z)(Vt,2),In=yt[0],zn=yt[1],mi=function(){zn(!0)},Rn=function(){zn(!1)},bt={getKey:Si};function Ut(Mr){ln(function(mr){var co;typeof Mr=="function"?co=Mr(mr):co=Mr;var Uo=hr(co);return fo.current.scrollTop=Uo,Uo})}var Ln=(0,ht.useRef)({start:0,end:pr.length}),ni=(0,ht.useRef)(),Gt=Se(pr,Si),yn=(0,De.Z)(Gt,1),Qt=yn[0];ni.current=Qt;var un=ht.useMemo(function(){if(!Gi)return{scrollHeight:void 0,start:0,end:pr.length-1,offset:void 0};if(!Yi){var Mr;return{scrollHeight:((Mr=Fo.current)===null||Mr===void 0?void 0:Mr.offsetHeight)||0,start:0,end:pr.length-1,offset:void 0}}for(var mr=0,co,Uo,ao,ra=pr.length,gr=0;gr<ra;gr+=1){var Qi=pr[gr],xr=Si(Qi),fi=Sr.get(xr),bo=mr+(fi===void 0?Ot:fi);bo>=on&&co===void 0&&(co=gr,Uo=mr),bo>on+Ft&&ao===void 0&&(ao=gr),mr=bo}return co===void 0&&(co=0,Uo=0,ao=Math.ceil(Ft/Ot)),ao===void 0&&(ao=pr.length-1),ao=Math.min(ao+1,pr.length-1),{scrollHeight:mr,start:co,end:ao,offset:Uo}},[Yi,Gi,on,pr,Wr,Ft]),wn=un.scrollHeight,gn=un.start,kn=un.end,Bn=un.offset;Ln.current.start=gn,Ln.current.end=kn,ht.useLayoutEffect(function(){var Mr=Sr.getRecord();if(Mr.size===1){var mr=Array.from(Mr)[0],co=Si(pr[gn]);if(co===mr){var Uo=Sr.get(mr),ao=Uo-Ot;Ut(function(ra){return ra+ao})}}Sr.resetRecord()},[wn]);var Vn=ht.useState({width:0,height:Ft}),Jn=(0,De.Z)(Vn,2),Wn=Jn[0],gi=Jn[1],Fi=function(mr){gi({width:mr.offsetWidth,height:mr.offsetHeight})},ir=(0,ht.useRef)(),zi=(0,ht.useRef)(),tn=ht.useMemo(function(){return En(Wn.width,xt)},[Wn.width,xt]),Ai=ht.useMemo(function(){return En(Wn.height,wn)},[Wn.height,wn]),Bi=wn-Ft,Ti=(0,ht.useRef)(Bi);Ti.current=Bi;function hr(Mr){var mr=Mr;return Number.isNaN(Ti.current)||(mr=Math.min(mr,Ti.current)),mr=Math.max(mr,0),mr}var tr=on<=0,br=on>=Bi,Xi=On<=0,Hi=On>=xt,Ir=We(tr,br,Xi,Hi),Ht=function(){return{x:Ue?-On:On,y:on}},Kr=(0,ht.useRef)(Ht()),Fn=(0,Ye.useEvent)(function(Mr){if(nn){var mr=(0,we.Z)((0,we.Z)({},Ht()),Mr);(Kr.current.x!==mr.x||Kr.current.y!==mr.y)&&(nn(mr),Kr.current=mr)}});function kr(Mr,mr){var co=Mr;mr?((0,kt.flushSync)(function(){Un(co)}),Fn()):Ut(co)}function Go(Mr){var mr=Mr.currentTarget.scrollTop;mr!==on&&Ut(mr),wt==null||wt(Mr),Fn()}var Dr=function(mr){var co=mr,Uo=xt?xt-Wn.width:0;return co=Math.max(co,0),co=Math.min(co,Uo),co},po=(0,Ye.useEvent)(function(Mr,mr){mr?((0,kt.flushSync)(function(){Un(function(co){var Uo=co+(Ue?-Mr:Mr);return Dr(Uo)})}),Fn()):Ut(function(co){var Uo=co+Mr;return Uo})}),Do=$e(Gi,tr,br,Xi,Hi,!!xt,po),Ji=(0,De.Z)(Do,2),or=Ji[0],io=Ji[1];fn(Gi,fo,function(Mr,mr,co,Uo){var ao=Uo;return Ir(Mr,mr,co)?!1:!ao||!ao._virtualHandled?(ao&&(ao._virtualHandled=!0),or({preventDefault:function(){},deltaX:Mr?mr:0,deltaY:Mr?0:mr}),!0):!1}),Ve(Yi,fo,function(Mr){Ut(function(mr){return mr+Mr})}),(0,tt.Z)(function(){function Mr(co){var Uo=tr&&co.detail<0,ao=br&&co.detail>0;Gi&&!Uo&&!ao&&co.preventDefault()}var mr=fo.current;return mr.addEventListener("wheel",or,{passive:!1}),mr.addEventListener("DOMMouseScroll",io,{passive:!0}),mr.addEventListener("MozMousePixelScroll",Mr,{passive:!1}),function(){mr.removeEventListener("wheel",or),mr.removeEventListener("DOMMouseScroll",io),mr.removeEventListener("MozMousePixelScroll",Mr)}},[Gi,tr,br]),(0,tt.Z)(function(){if(xt){var Mr=Dr(On);Un(Mr),Fn({x:Mr})}},[Wn.width,xt]);var Gr=function(){var mr,co;(mr=ir.current)===null||mr===void 0||mr.delayHidden(),(co=zi.current)===null||co===void 0||co.delayHidden()},Ii=Bt(fo,pr,Sr,Ot,Si,function(){return ur(!0)},Ut,Gr);ht.useImperativeHandle(Yt,function(){return{nativeElement:Vo.current,getScrollInfo:Ht,scrollTo:function(mr){function co(Uo){return Uo&&(0,Ce.Z)(Uo)==="object"&&("left"in Uo||"top"in Uo)}co(mr)?(mr.left!==void 0&&Un(Dr(mr.left)),Ii(mr.top)):Ii(mr)}}}),(0,tt.Z)(function(){if(Mn){var Mr=pr.slice(gn,kn+1);Mn(Mr,pr)}},[gn,kn,pr]);var lt=st(pr,Si,Sr,Ot),Rr=li==null?void 0:li({start:gn,end:kn,virtual:Yi,offsetX:On,offsetY:Bn,rtl:Ue,getSize:lt}),Ko=ge(pr,gn,kn,xt,On,dr,xe,bt),Yr=null;Ft&&(Yr=(0,we.Z)((0,Ie.Z)({},ct?"height":"maxHeight",Ft),Kn),Gi&&(Yr.overflowY="hidden",xt&&(Yr.overflowX="hidden"),In&&(Yr.pointerEvents="none")));var yo={};return Ue&&(yo.dir="rtl"),ht.createElement("div",(0,se.Z)({ref:Vo,style:(0,we.Z)((0,we.Z)({},Ge),{},{position:"relative"}),className:no},yo,Mi),ht.createElement(Je.Z,{onResize:Fi},ht.createElement(Pn,{className:"".concat(St,"-holder"),style:Yr,ref:fo,onScroll:Go,onMouseEnter:Gr},ht.createElement(ee,{prefixCls:St,height:wn,offsetX:On,offsetY:Bn,scrollWidth:xt,onInnerResize:ur,ref:Fo,innerProps:Zn,rtl:Ue,extra:Rr},Ko))),Yi&&wn>Ft&&ht.createElement(It,{ref:ir,prefixCls:St,scrollOffset:on,scrollRange:wn,rtl:Ue,onScroll:kr,onStartMove:mi,onStopMove:Rn,spinSize:Ai,containerSize:Wn.height,style:xi==null?void 0:xi.verticalScrollBar,thumbStyle:xi==null?void 0:xi.verticalScrollBarThumb}),Yi&&xt>Wn.width&&ht.createElement(It,{ref:zi,prefixCls:St,scrollOffset:On,scrollRange:xt,rtl:Ue,onScroll:kr,onStartMove:mi,onStopMove:Rn,spinSize:tn,containerSize:Wn.width,horizontal:!0,style:xi==null?void 0:xi.horizontalScrollBar,thumbStyle:xi==null?void 0:xi.horizontalScrollBarThumb}))}var Nn=ht.forwardRef(jt);Nn.displayName="List";var Gn=Nn,ii=Gn},19524:function(_e,be,oe){"use strict";oe(84126);var se=oe(59301),Ce=60103;if(be.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var we=Symbol.for;Ce=we("react.element"),be.Fragment=we("react.fragment")}var Ie=se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,De=Object.prototype.hasOwnProperty,Ke={key:!0,ref:!0,__self:!0,__source:!0};function Ee(et,Je,Ye){var tt,ht={},kt=null,ze=null;Ye!==void 0&&(kt=""+Ye),Je.key!==void 0&&(kt=""+Je.key),Je.ref!==void 0&&(ze=Je.ref);for(tt in Je)De.call(Je,tt)&&!Ke.hasOwnProperty(tt)&&(ht[tt]=Je[tt]);if(et&&et.defaultProps)for(tt in Je=et.defaultProps,Je)ht[tt]===void 0&&(ht[tt]=Je[tt]);return{$$typeof:Ce,type:et,key:kt,ref:ze,props:ht,_owner:Ie.current}}be.jsx=Ee,be.jsxs=Ee},37712:function(_e,be,oe){"use strict";_e.exports=oe(19524)},95489:function(_e,be,oe){"use strict";var se=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof oe.g=="object"?oe.g:{},Ce=ke();se.Prism={manual:!0,disableWorkerMessageHandler:!0};var we=oe(43621),Ie=oe(12256),De=oe(68398),Ke=oe(70614),Ee=oe(54212),et=oe(9720),Je=oe(88786);Ce();var Ye={}.hasOwnProperty;function tt(){}tt.prototype=De;var ht=new tt;_e.exports=ht,ht.highlight=ee,ht.register=kt,ht.alias=ze,ht.registered=ne,ht.listLanguages=ge,kt(Ke),kt(Ee),kt(et),kt(Je),ht.util.encode=Se,ht.Token.stringify=ue;function kt(Te){if(typeof Te!="function"||!Te.displayName)throw new Error("Expected `function` for `grammar`, got `"+Te+"`");ht.languages[Te.displayName]===void 0&&Te(ht)}function ze(Te,We){var $e=ht.languages,st=Te,ut,Mt,nt,$t;We&&(st={},st[Te]=We);for(ut in st)for(Mt=st[ut],Mt=typeof Mt=="string"?[Mt]:Mt,nt=Mt.length,$t=-1;++$t<nt;)$e[Mt[$t]]=$e[ut]}function ee(Te,We){var $e=De.highlight,st;if(typeof Te!="string")throw new Error("Expected `string` for `value`, got `"+Te+"`");if(ht.util.type(We)==="Object")st=We,We=null;else{if(typeof We!="string")throw new Error("Expected `string` for `name`, got `"+We+"`");if(Ye.call(ht.languages,We))st=ht.languages[We];else throw new Error("Unknown language: `"+We+"` is not registered")}return $e.call(this,Te,st,We)}function ne(Te){if(typeof Te!="string")throw new Error("Expected `string` for `language`, got `"+Te+"`");return Ye.call(ht.languages,Te)}function ge(){var Te=ht.languages,We=[],$e;for($e in Te)Ye.call(Te,$e)&&typeof Te[$e]=="object"&&We.push($e);return We}function ue(Te,We,$e){var st;return typeof Te=="string"?{type:"text",value:Te}:ht.util.type(Te)==="Array"?me(Te,We):(st={type:Te.type,content:ht.Token.stringify(Te.content,We,$e),tag:"span",classes:["token",Te.type],attributes:{},language:We,parent:$e},Te.alias&&(st.classes=st.classes.concat(Te.alias)),ht.hooks.run("wrap",st),we(st.tag+"."+st.classes.join("."),Ne(st.attributes),st.content))}function me(Te,We){for(var $e=[],st=Te.length,ut=-1,Mt;++ut<st;)Mt=Te[ut],Mt!==""&&Mt!==null&&Mt!==void 0&&$e.push(Mt);for(ut=-1,st=$e.length;++ut<st;)Mt=$e[ut],$e[ut]=ht.Token.stringify(Mt,We,$e);return $e}function Se(Te){return Te}function Ne(Te){var We;for(We in Te)Te[We]=Ie(Te[We]);return Te}function ke(){var Te="Prism"in se,We=Te?se.Prism:void 0;return $e;function $e(){Te?se.Prism=We:delete se.Prism,Te=void 0,We=void 0}}},11594:function(_e,be,oe){"use strict";var se=oe(95489);_e.exports=se,se.register(oe(79007)),se.register(oe(15465)),se.register(oe(42746)),se.register(oe(93281)),se.register(oe(95143)),se.register(oe(65924)),se.register(oe(65043)),se.register(oe(43556)),se.register(oe(14901)),se.register(oe(4248)),se.register(oe(17758)),se.register(oe(33335)),se.register(oe(17427)),se.register(oe(22956)),se.register(oe(56007)),se.register(oe(45652)),se.register(oe(33819)),se.register(oe(84230)),se.register(oe(20803)),se.register(oe(65235)),se.register(oe(52406)),se.register(oe(79571)),se.register(oe(3058)),se.register(oe(51422)),se.register(oe(1618)),se.register(oe(2505)),se.register(oe(51274)),se.register(oe(23796)),se.register(oe(13979)),se.register(oe(87994)),se.register(oe(47035)),se.register(oe(36142)),se.register(oe(85290)),se.register(oe(7407)),se.register(oe(79440)),se.register(oe(7110)),se.register(oe(73435)),se.register(oe(91372)),se.register(oe(63663)),se.register(oe(92987)),se.register(oe(91657)),se.register(oe(34367)),se.register(oe(35348)),se.register(oe(26841)),se.register(oe(87071)),se.register(oe(13652)),se.register(oe(87648)),se.register(oe(10617)),se.register(oe(5348)),se.register(oe(71053)),se.register(oe(69820)),se.register(oe(41929)),se.register(oe(51837)),se.register(oe(4182)),se.register(oe(22117)),se.register(oe(95627)),se.register(oe(34265)),se.register(oe(50618)),se.register(oe(32126)),se.register(oe(26737)),se.register(oe(90134)),se.register(oe(51348)),se.register(oe(60841)),se.register(oe(42857)),se.register(oe(81269)),se.register(oe(31134)),se.register(oe(83125)),se.register(oe(9438)),se.register(oe(27771)),se.register(oe(86549)),se.register(oe(37079)),se.register(oe(59250)),se.register(oe(81226)),se.register(oe(65245)),se.register(oe(25040)),se.register(oe(40284)),se.register(oe(39187)),se.register(oe(34302)),se.register(oe(90515)),se.register(oe(33534)),se.register(oe(9885)),se.register(oe(76364)),se.register(oe(56452)),se.register(oe(8477)),se.register(oe(58230)),se.register(oe(66192)),se.register(oe(81084)),se.register(oe(50318)),se.register(oe(95769)),se.register(oe(14155)),se.register(oe(92823)),se.register(oe(63092)),se.register(oe(21550)),se.register(oe(29710)),se.register(oe(2050)),se.register(oe(67967)),se.register(oe(29138)),se.register(oe(67915)),se.register(oe(54853)),se.register(oe(68330)),se.register(oe(76823)),se.register(oe(86712)),se.register(oe(72252)),se.register(oe(78634)),se.register(oe(43583)),se.register(oe(23328)),se.register(oe(74494)),se.register(oe(46745)),se.register(oe(22152)),se.register(oe(83698)),se.register(oe(26619)),se.register(oe(53990)),se.register(oe(7093)),se.register(oe(4005)),se.register(oe(53510)),se.register(oe(24799)),se.register(oe(97443)),se.register(oe(80746)),se.register(oe(17015)),se.register(oe(89246)),se.register(oe(487)),se.register(oe(79539)),se.register(oe(15628)),se.register(oe(14320)),se.register(oe(73222)),se.register(oe(92486)),se.register(oe(24103)),se.register(oe(40604)),se.register(oe(23109)),se.register(oe(32082)),se.register(oe(77674)),se.register(oe(37524)),se.register(oe(6658)),se.register(oe(24824)),se.register(oe(22776)),se.register(oe(89700)),se.register(oe(99296)),se.register(oe(39940)),se.register(oe(34973)),se.register(oe(98135)),se.register(oe(36907)),se.register(oe(3567)),se.register(oe(23763)),se.register(oe(29509)),se.register(oe(40472)),se.register(oe(44695)),se.register(oe(53885)),se.register(oe(51478)),se.register(oe(16928)),se.register(oe(13586)),se.register(oe(37164)),se.register(oe(25153)),se.register(oe(33245)),se.register(oe(32218)),se.register(oe(65626)),se.register(oe(60090)),se.register(oe(40722)),se.register(oe(37783)),se.register(oe(41224)),se.register(oe(71365)),se.register(oe(42846)),se.register(oe(32964)),se.register(oe(78830)),se.register(oe(88799)),se.register(oe(66791)),se.register(oe(41735)),se.register(oe(13490)),se.register(oe(7383)),se.register(oe(66894)),se.register(oe(45779)),se.register(oe(27734)),se.register(oe(91889)),se.register(oe(55965)),se.register(oe(37326)),se.register(oe(92949)),se.register(oe(5681)),se.register(oe(70696)),se.register(oe(35790)),se.register(oe(25777)),se.register(oe(65889)),se.register(oe(53852)),se.register(oe(97719)),se.register(oe(63839)),se.register(oe(67623)),se.register(oe(32530)),se.register(oe(8938)),se.register(oe(55259)),se.register(oe(67411)),se.register(oe(15375)),se.register(oe(12093)),se.register(oe(83588)),se.register(oe(94127)),se.register(oe(21294)),se.register(oe(38709)),se.register(oe(15008)),se.register(oe(96549)),se.register(oe(5221)),se.register(oe(27447)),se.register(oe(73191)),se.register(oe(75542)),se.register(oe(50323)),se.register(oe(44298)),se.register(oe(9634)),se.register(oe(75266)),se.register(oe(48139)),se.register(oe(97534)),se.register(oe(90826)),se.register(oe(63919)),se.register(oe(68862)),se.register(oe(39523)),se.register(oe(31207)),se.register(oe(75308)),se.register(oe(45315)),se.register(oe(13794)),se.register(oe(41299)),se.register(oe(98177)),se.register(oe(48780)),se.register(oe(79793)),se.register(oe(52085)),se.register(oe(65411)),se.register(oe(84750)),se.register(oe(88216)),se.register(oe(66433)),se.register(oe(34855)),se.register(oe(12998)),se.register(oe(10202)),se.register(oe(41186)),se.register(oe(68963)),se.register(oe(5569)),se.register(oe(69435)),se.register(oe(42766)),se.register(oe(46449)),se.register(oe(89032)),se.register(oe(40241)),se.register(oe(24812)),se.register(oe(16747)),se.register(oe(73584)),se.register(oe(79243)),se.register(oe(31788)),se.register(oe(60871)),se.register(oe(21023)),se.register(oe(14693)),se.register(oe(8743)),se.register(oe(1689)),se.register(oe(69210)),se.register(oe(58710)),se.register(oe(60452)),se.register(oe(92784)),se.register(oe(36489)),se.register(oe(78380)),se.register(oe(10409)),se.register(oe(6539)),se.register(oe(82028)),se.register(oe(62282)),se.register(oe(55686)),se.register(oe(70889)),se.register(oe(37116)),se.register(oe(66963)),se.register(oe(21078)),se.register(oe(96198)),se.register(oe(17723)),se.register(oe(67771)),se.register(oe(30307)),se.register(oe(8921)),se.register(oe(13429)),se.register(oe(65197)),se.register(oe(88904)),se.register(oe(35)),se.register(oe(86095)),se.register(oe(76998)),se.register(oe(14409)),se.register(oe(33460)),se.register(oe(28108))},79007:function(_e){"use strict";_e.exports=be,be.displayName="abap",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="abnf",be.aliases=[];function be(oe){(function(se){var Ce="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";se.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-])"+Ce+"|<"+Ce+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(oe)}},42746:function(_e){"use strict";_e.exports=be,be.displayName="actionscript",be.aliases=[];function be(oe){oe.languages.actionscript=oe.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:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),oe.languages.actionscript["class-name"].alias="function",delete oe.languages.actionscript.parameter,delete oe.languages.actionscript["literal-property"],oe.languages.markup&&oe.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:oe.languages.markup}})}},93281:function(_e){"use strict";_e.exports=be,be.displayName="ada",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="agda",be.aliases=[];function be(oe){(function(se){se.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/}})(oe)}},65924:function(_e){"use strict";_e.exports=be,be.displayName="al",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="antlr4",be.aliases=["g4"];function be(oe){oe.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:/[;:()=]/},oe.languages.g4=oe.languages.antlr4}},43556:function(_e){"use strict";_e.exports=be,be.displayName="apacheconf",be.aliases=[];function be(oe){oe.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(_e,be,oe){"use strict";var se=oe(69435);_e.exports=Ce,Ce.displayName="apex",Ce.aliases=[];function Ce(we){we.register(se),function(Ie){var De=/\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,Ke=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!<keyword>))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(/<keyword>/g,function(){return De.source});function Ee(Je){return RegExp(Je.replace(/<CLASS-NAME>/g,function(){return Ke}),"i")}var et={keyword:De,punctuation:/[()\[\]{};,:.<>]/};Ie.languages.apex={comment:Ie.languages.clike.comment,string:Ie.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:Ie.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:Ee(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)<CLASS-NAME>/.source),lookbehind:!0,inside:et},{pattern:Ee(/(\(\s*)<CLASS-NAME>(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:et},{pattern:Ee(/<CLASS-NAME>(?=\s*\w+\s*[;=,(){:])/.source),inside:et}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:De,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:/[()\[\]{};,.]/}}(we)}},4248:function(_e){"use strict";_e.exports=be,be.displayName="apl",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="applescript",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="aql",be.aliases=[];function be(oe){oe.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(_e,be,oe){"use strict";var se=oe(87071);_e.exports=Ce,Ce.displayName="arduino",Ce.aliases=["ino"];function Ce(we){we.register(se),we.languages.arduino=we.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/}),we.languages.ino=we.languages.arduino}},22956:function(_e){"use strict";_e.exports=be,be.displayName="arff",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="asciidoc",be.aliases=["adoc"];function be(oe){(function(se){var Ce={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+$).+/}},we=se.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:Ce,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:Ce.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:Ce,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 Ie(De){De=De.split(" ");for(var Ke={},Ee=0,et=De.length;Ee<et;Ee++)Ke[De[Ee]]=we[De[Ee]];return Ke}Ce.inside.interpreted.inside.rest=Ie("macro inline replacement entity"),we["passthrough-block"].inside.rest=Ie("macro"),we["literal-block"].inside.rest=Ie("callout"),we.table.inside.rest=Ie("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"),we["other-block"].inside.rest=Ie("table list-punctuation indented-block comment attribute-entry attributes hr page-break admonition list-label macro inline replacement entity line-continuation"),we.title.inside.rest=Ie("macro inline replacement entity"),se.hooks.add("wrap",function(De){De.type==="entity"&&(De.attributes.title=De.content.value.replace(/&amp;/,"&"))}),se.languages.adoc=se.languages.asciidoc})(oe)}},45652:function(_e){"use strict";_e.exports=be,be.displayName="asm6502",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="asmatmel",be.aliases=[];function be(oe){oe.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(_e,be,oe){"use strict";var se=oe(87648);_e.exports=Ce,Ce.displayName="aspnet",Ce.aliases=[];function Ce(we){we.register(se),we.languages.aspnet=we.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:we.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:we.languages.csharp}}}),we.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,we.languages.insertBefore("inside","punctuation",{directive:we.languages.aspnet.directive},we.languages.aspnet.tag.inside["attr-value"]),we.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),we.languages.insertBefore("aspnet",we.languages.javascript?"script":"tag",{"asp-script":{pattern:/(<script(?=.*runat=['"]?server\b)[^>]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:we.languages.csharp||{}}})}},20803:function(_e){"use strict";_e.exports=be,be.displayName="autohotkey",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="autoit",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="avisynth",be.aliases=["avs"];function be(oe){(function(se){function Ce(Je,Ye){return Je.replace(/<<(\d+)>>/g,function(tt,ht){return Ye[+ht]})}function we(Je,Ye,tt){return RegExp(Ce(Je,Ye),tt||"")}var Ie=/bool|clip|float|int|string|val/.source,De=[/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("|"),Ke=[/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("|"),Ee=[/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("|"),et=[De,Ke,Ee].join("|");se.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:we(/\b(?:<<0>>)\s+("?)\w+\1/.source,[Ie],"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:we(/\b(?:<<0>>)\b/.source,[et],"i"),alias:"function"},"type-cast":{pattern:we(/\b(?:<<0>>)(?=\s*\()/.source,[Ie],"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:/[{}\[\]();,.]/},se.languages.avs=se.languages.avisynth})(oe)}},79571:function(_e){"use strict";_e.exports=be,be.displayName="avroIdl",be.aliases=[];function be(oe){oe.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:/[()\[\]{}<>.:,;-]/},oe.languages.avdl=oe.languages["avro-idl"]}},3058:function(_e){"use strict";_e.exports=be,be.displayName="bash",be.aliases=["shell"];function be(oe){(function(se){var Ce="\\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",we={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},Ie={bash:we,environment:{pattern:RegExp("\\$"+Ce),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("(\\{)"+Ce),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})/};se.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;|&]|[<>]\\()"+Ce),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:Ie},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:we}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:Ie},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:Ie.entity}}],environment:{pattern:RegExp("\\$?"+Ce),alias:"constant"},variable:Ie.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}},we.inside=se.languages.bash;for(var De=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],Ke=Ie.variable[1].inside,Ee=0;Ee<De.length;Ee++)Ke[De[Ee]]=se.languages.bash[De[Ee]];se.languages.shell=se.languages.bash})(oe)}},51422:function(_e){"use strict";_e.exports=be,be.displayName="basic",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="batch",be.aliases=[];function be(oe){(function(se){var Ce=/%%?[~:\w]+%?|!\S+!/,we={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},Ie=/"(?:[\\"]"|[^"])*"(?!")/,De=/(?:\b|-)\d+\b/;se.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:Ie,parameter:we,variable:Ce,number:De,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:Ie,parameter:we,variable:Ce,number:De,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:Ie,parameter:we,variable:[Ce,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:De,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:Ie,parameter:we,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:Ce,number:De,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(oe)}},2505:function(_e){"use strict";_e.exports=be,be.displayName="bbcode",be.aliases=["shortcode"];function be(oe){oe.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=\]]+/}}},oe.languages.shortcode=oe.languages.bbcode}},51274:function(_e){"use strict";_e.exports=be,be.displayName="bicep",be.aliases=[];function be(oe){oe.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:/[{}[\];(),.:]/},oe.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=oe.languages.bicep}},23796:function(_e){"use strict";_e.exports=be,be.displayName="birb",be.aliases=[];function be(oe){oe.languages.birb=oe.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/}),oe.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}},13979:function(_e,be,oe){"use strict";var se=oe(79440);_e.exports=Ce,Ce.displayName="bison",Ce.aliases=[];function Ce(we){we.register(se),we.languages.bison=we.languages.extend("c",{}),we.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:we.languages.c}},comment:we.languages.c.comment,string:we.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}},87994:function(_e){"use strict";_e.exports=be,be.displayName="bnf",be.aliases=["rbnf"];function be(oe){oe.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}/},oe.languages.rbnf=oe.languages.bnf}},47035:function(_e){"use strict";_e.exports=be,be.displayName="brainfuck",be.aliases=[];function be(oe){oe.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}},36142:function(_e){"use strict";_e.exports=be,be.displayName="brightscript",be.aliases=[];function be(oe){oe.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},oe.languages.brightscript["directive-statement"].inside.expression.inside=oe.languages.brightscript}},85290:function(_e){"use strict";_e.exports=be,be.displayName="bro",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="bsl",be.aliases=[];function be(oe){oe.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"}]},oe.languages.oscript=oe.languages.bsl}},79440:function(_e){"use strict";_e.exports=be,be.displayName="c",be.aliases=[];function be(oe){oe.languages.c=oe.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|[?:~]|[-+*/%&|^!=<>]=?/}),oe.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),oe.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},oe.languages.c.string],char:oe.languages.c.char,comment:oe.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:oe.languages.c}}}}),oe.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 oe.languages.c.boolean}},7110:function(_e){"use strict";_e.exports=be,be.displayName="cfscript",be.aliases=[];function be(oe){oe.languages.cfscript=oe.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"}}),oe.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 oe.languages.cfscript["class-name"],oe.languages.cfc=oe.languages.cfscript}},73435:function(_e,be,oe){"use strict";var se=oe(87071);_e.exports=Ce,Ce.displayName="chaiscript",Ce.aliases=[];function Ce(we){we.register(se),we.languages.chaiscript=we.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:[we.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),we.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),we.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:we.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}},91372:function(_e){"use strict";_e.exports=be,be.displayName="cil",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="clike",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="clojure",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="cmake",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="cobol",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="coffeescript",be.aliases=["coffee"];function be(oe){(function(se){var Ce=/#(?!\{).+/,we={pattern:/#\{[^}]+\}/,alias:"variable"};se.languages.coffeescript=se.languages.extend("javascript",{comment:Ce,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:we}}],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"}}),se.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:Ce,interpolation:we}}}),se.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:se.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:we}}]}),se.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete se.languages.coffeescript["template-string"],se.languages.coffee=se.languages.coffeescript})(oe)}},35348:function(_e){"use strict";_e.exports=be,be.displayName="concurnas",be.aliases=["conc"];function be(oe){oe.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"}},oe.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:oe.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:oe.languages.concurnas},string:/[\s\S]+/}}}),oe.languages.conc=oe.languages.concurnas}},26841:function(_e){"use strict";_e.exports=be,be.displayName="coq",be.aliases=[];function be(oe){(function(se){for(var Ce=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|<self>)*\*\)/.source,we=0;we<2;we++)Ce=Ce.replace(/<self>/g,function(){return Ce});Ce=Ce.replace(/<self>/g,"[]"),se.languages.coq={comment:RegExp(Ce),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|<comment>)*\]/.source.replace(/<comment>/g,function(){return Ce})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(Ce),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:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(oe)}},87071:function(_e,be,oe){"use strict";var se=oe(79440);_e.exports=Ce,Ce.displayName="cpp",Ce.aliases=[];function Ce(we){we.register(se),function(Ie){var De=/\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/,Ke=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return De.source});Ie.languages.cpp=Ie.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return De.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:De,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/}),Ie.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 Ke})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),Ie.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:Ie.languages.cpp}}}}),Ie.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),Ie.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:Ie.languages.extend("cpp",{})}}),Ie.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},Ie.languages.cpp["base-clause"])}(we)}},13652:function(_e,be,oe){"use strict";var se=oe(75308);_e.exports=Ce,Ce.displayName="crystal",Ce.aliases=[];function Ce(we){we.register(se),function(Ie){Ie.languages.crystal=Ie.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:[/->/,Ie.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),Ie.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:Ie.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:Ie.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}})}(we)}},87648:function(_e){"use strict";_e.exports=be,be.displayName="csharp",be.aliases=["dotnet","cs"];function be(oe){(function(se){function Ce(an,it){return an.replace(/<<(\d+)>>/g,function(Ve,gt){return"(?:"+it[+gt]+")"})}function we(an,it,Ve){return RegExp(Ce(an,it),Ve||"")}function Ie(an,it){for(var Ve=0;Ve<it;Ve++)an=an.replace(/<<self>>/g,function(){return"(?:"+an+")"});return an.replace(/<<self>>/g,"[^\\s\\S]")}var De={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 Ke(an){return"\\b(?:"+an.trim().replace(/ /g,"|")+")\\b"}var Ee=Ke(De.typeDeclaration),et=RegExp(Ke(De.type+" "+De.typeDeclaration+" "+De.contextual+" "+De.other)),Je=Ke(De.typeDeclaration+" "+De.contextual+" "+De.other),Ye=Ke(De.type+" "+De.typeDeclaration+" "+De.other),tt=Ie(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),ht=Ie(/\((?:[^()]|<<self>>)*\)/.source,2),kt=/@?\b[A-Za-z_]\w*\b/.source,ze=Ce(/<<0>>(?:\s*<<1>>)?/.source,[kt,tt]),ee=Ce(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[Je,ze]),ne=/\[\s*(?:,\s*)*\]/.source,ge=Ce(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[ee,ne]),ue=Ce(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[tt,ht,ne]),me=Ce(/\(<<0>>+(?:,<<0>>+)+\)/.source,[ue]),Se=Ce(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[me,ee,ne]),Ne={keyword:et,punctuation:/[<>()?,.:[\]]/},ke=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,Te=/"(?:\\.|[^\\"\r\n])*"/.source,We=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;se.languages.csharp=se.languages.extend("clike",{string:[{pattern:we(/(^|[^$\\])<<0>>/.source,[We]),lookbehind:!0,greedy:!0},{pattern:we(/(^|[^@$\\])<<0>>/.source,[Te]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:we(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[ee]),lookbehind:!0,inside:Ne},{pattern:we(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[kt,Se]),lookbehind:!0,inside:Ne},{pattern:we(/(\busing\s+)<<0>>(?=\s*=)/.source,[kt]),lookbehind:!0},{pattern:we(/(\b<<0>>\s+)<<1>>/.source,[Ee,ze]),lookbehind:!0,inside:Ne},{pattern:we(/(\bcatch\s*\(\s*)<<0>>/.source,[ee]),lookbehind:!0,inside:Ne},{pattern:we(/(\bwhere\s+)<<0>>/.source,[kt]),lookbehind:!0},{pattern:we(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[ge]),lookbehind:!0,inside:Ne},{pattern:we(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[Se,Ye,kt]),inside:Ne}],keyword:et,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:/\?\.?|::|[{}[\];(),.:]/}),se.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),se.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:we(/([(,]\s*)<<0>>(?=\s*:)/.source,[kt]),lookbehind:!0,alias:"punctuation"}}),se.languages.insertBefore("csharp","class-name",{namespace:{pattern:we(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[kt]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:we(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[ht]),lookbehind:!0,alias:"class-name",inside:Ne},"return-type":{pattern:we(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[Se,ee]),inside:Ne,alias:"class-name"},"constructor-invocation":{pattern:we(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[Se]),lookbehind:!0,inside:Ne,alias:"class-name"},"generic-method":{pattern:we(/<<0>>\s*<<1>>(?=\s*\()/.source,[kt,tt]),inside:{function:we(/^<<0>>/.source,[kt]),generic:{pattern:RegExp(tt),alias:"class-name",inside:Ne}}},"type-list":{pattern:we(/\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,[Ee,ze,kt,Se,et.source,ht,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:we(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[ze,ht]),lookbehind:!0,greedy:!0,inside:se.languages.csharp},keyword:et,"class-name":{pattern:RegExp(Se),greedy:!0,inside:Ne},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 $e=Te+"|"+ke,st=Ce(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[$e]),ut=Ie(Ce(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[st]),2),Mt=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,nt=Ce(/<<0>>(?:\s*\(<<1>>*\))?/.source,[ee,ut]);se.languages.insertBefore("csharp","class-name",{attribute:{pattern:we(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[Mt,nt]),lookbehind:!0,greedy:!0,inside:{target:{pattern:we(/^<<0>>(?=\s*:)/.source,[Mt]),alias:"keyword"},"attribute-arguments":{pattern:we(/\(<<0>>*\)/.source,[ut]),inside:se.languages.csharp},"class-name":{pattern:RegExp(ee),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var $t=/:[^}\r\n]+/.source,Pt=Ie(Ce(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[st]),2),dn=Ce(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Pt,$t]),zt=Ie(Ce(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[$e]),2),Xt=Ce(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[zt,$t]);function fn(an,it){return{interpolation:{pattern:we(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[an]),lookbehind:!0,inside:{"format-string":{pattern:we(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[it,$t]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:se.languages.csharp}}},string:/[\s\S]+/}}se.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:we(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[dn]),lookbehind:!0,greedy:!0,inside:fn(dn,Pt)},{pattern:we(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[Xt]),lookbehind:!0,greedy:!0,inside:fn(Xt,zt)}],char:{pattern:RegExp(ke),greedy:!0}}),se.languages.dotnet=se.languages.cs=se.languages.csharp})(oe)}},10617:function(_e,be,oe){"use strict";var se=oe(87648);_e.exports=Ce,Ce.displayName="cshtml",Ce.aliases=["razor"];function Ce(we){we.register(se),function(Ie){var De=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,Ke=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function Ee(ge,ue){for(var me=0;me<ue;me++)ge=ge.replace(/<self>/g,function(){return"(?:"+ge+")"});return ge.replace(/<self>/g,"[^\\s\\S]").replace(/<str>/g,"(?:"+Ke+")").replace(/<comment>/g,"(?:"+De+")")}var et=Ee(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source,2),Je=Ee(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source,2),Ye=Ee(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source,2),tt=Ee(/<(?:[^<>'"@/]|<str>|<comment>|<self>)*>/.source,2),ht=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,kt=/(?!\d)[^\s>\/=$<%]+/.source+ht+/\s*\/?>/.source,ze=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+ht+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+kt+"|"+Ee(/<\1/.source+ht+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+kt+"|<self>")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/</.source+kt+")";Ie.languages.cshtml=Ie.languages.extend("markup",{});var ee=Ie.languages.insertBefore("csharp","string",{html:{pattern:RegExp(ze),greedy:!0,inside:Ie.languages.cshtml}},{csharp:Ie.languages.extend("csharp",{})}),ne={pattern:/\S[\s\S]*/,alias:"language-csharp",inside:ee};Ie.languages.insertBefore("cshtml","prolog",{"razor-comment":{pattern:/@\*[\s\S]*?\*@/,greedy:!0,alias:"comment"},block:{pattern:RegExp(/(^|[^@])@/.source+"(?:"+[Ye,/(?:code|functions)\s*/.source+Ye,/(?:for|foreach|lock|switch|using|while)\s*/.source+et+/\s*/.source+Ye,/do\s*/.source+Ye+/\s*while\s*/.source+et+/(?:\s*;)?/.source,/try\s*/.source+Ye+/\s*catch\s*/.source+et+/\s*/.source+Ye+/\s*finally\s*/.source+Ye,/if\s*/.source+et+/\s*/.source+Ye+"(?:"+/\s*else/.source+"(?:"+/\s+if\s*/.source+et+")?"+/\s*/.source+Ye+")*"].join("|")+")"),lookbehind:!0,greedy:!0,inside:{keyword:/^@\w*/,csharp:ne}},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:ne}},value:{pattern:RegExp(/(^|[^@])@/.source+/(?:await\b\s*)?/.source+"(?:"+/\w+\b/.source+"|"+et+")(?:"+/[?!]?\.\w+\b/.source+"|"+et+"|"+Je+"|"+tt+et+")*"),lookbehind:!0,greedy:!0,alias:"variable",inside:{keyword:/^@/,csharp:ne}},"delegate-operator":{pattern:/(^|[^@])@(?=<)/,lookbehind:!0,alias:"operator"}}),Ie.languages.razor=Ie.languages.cshtml}(we)}},5348:function(_e){"use strict";_e.exports=be,be.displayName="csp",be.aliases=[];function be(oe){(function(se){function Ce(we){return RegExp(/([ \t])/.source+"(?:"+we+")"+/(?=[\s;]|$)/.source,"i")}se.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:Ce(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:Ce(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:Ce(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:Ce(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:Ce(/[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:Ce(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:Ce(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}})(oe)}},71053:function(_e){"use strict";_e.exports=be,be.displayName="cssExtras",be.aliases=[];function be(oe){(function(se){var Ce=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,we;se.languages.css.selector={pattern:se.languages.css.selector.pattern,lookbehind:!0,inside:we={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+Ce.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":[Ce,{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:/[(),]/}},se.languages.css.atrule.inside["selector-function-argument"].inside=we,se.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var Ie={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},De={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};se.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:Ie,number:De,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:Ie,number:De})})(oe)}},54212:function(_e){"use strict";_e.exports=be,be.displayName="css",be.aliases=[];function be(oe){(function(se){var Ce=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;se.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\\((?:"+Ce.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+Ce.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+Ce.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:Ce,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:/[(){};:,]/},se.languages.css.atrule.inside.rest=se.languages.css;var we=se.languages.markup;we&&(we.tag.addInlined("style","css"),we.tag.addAttribute("style","css"))})(oe)}},69820:function(_e){"use strict";_e.exports=be,be.displayName="csv",be.aliases=[];function be(oe){oe.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}},41929:function(_e){"use strict";_e.exports=be,be.displayName="cypher",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="d",be.aliases=[];function be(oe){oe.languages.d=oe.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|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),oe.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),oe.languages.insertBefore("d","keyword",{property:/\B@\w*/}),oe.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(_e){"use strict";_e.exports=be,be.displayName="dart",be.aliases=[];function be(oe){(function(se){var Ce=[/\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/],we=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,Ie={pattern:RegExp(we+/[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:/\./}}}};se.languages.dart=se.languages.extend("clike",{"class-name":[Ie,{pattern:RegExp(we+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:Ie.inside}],keyword:Ce,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),se.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:se.languages.dart}}},string:/[\s\S]+/}},string:void 0}),se.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),se.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":Ie,keyword:Ce,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(oe)}},22117:function(_e){"use strict";_e.exports=be,be.displayName="dataweave",be.aliases=[];function be(oe){(function(se){se.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/}})(oe)}},95627:function(_e){"use strict";_e.exports=be,be.displayName="dax",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="dhall",be.aliases=[];function be(oe){oe.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/},oe.languages.dhall.string.inside.interpolation.inside.expression.inside=oe.languages.dhall}},50618:function(_e){"use strict";_e.exports=be,be.displayName="diff",be.aliases=[];function be(oe){(function(se){se.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var Ce={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(Ce).forEach(function(we){var Ie=Ce[we],De=[];/^\w+$/.test(we)||De.push(/\w+/.exec(we)[0]),we==="diff"&&De.push("bold"),se.languages.diff[we]={pattern:RegExp("^(?:["+Ie+`].*(?:\r
?|
|(?![\\s\\S])))+`,"m"),alias:De,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(we)[0]}}}}),Object.defineProperty(se.languages.diff,"PREFIXES",{value:Ce})})(oe)}},32126:function(_e,be,oe){"use strict";var se=oe(51478);_e.exports=Ce,Ce.displayName="django",Ce.aliases=["jinja2"];function Ce(we){we.register(se),function(Ie){Ie.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 De=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,Ke=Ie.languages["markup-templating"];Ie.hooks.add("before-tokenize",function(Ee){Ke.buildPlaceholders(Ee,"django",De)}),Ie.hooks.add("after-tokenize",function(Ee){Ke.tokenizePlaceholders(Ee,"django")}),Ie.languages.jinja2=Ie.languages.django,Ie.hooks.add("before-tokenize",function(Ee){Ke.buildPlaceholders(Ee,"jinja2",De)}),Ie.hooks.add("after-tokenize",function(Ee){Ke.tokenizePlaceholders(Ee,"jinja2")})}(we)}},26737:function(_e){"use strict";_e.exports=be,be.displayName="dnsZoneFile",be.aliases=[];function be(oe){oe.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:/[()]/},oe.languages["dns-zone"]=oe.languages["dns-zone-file"]}},90134:function(_e){"use strict";_e.exports=be,be.displayName="docker",be.aliases=["dockerfile"];function be(oe){(function(se){var Ce=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,we=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,function(){return Ce}),Ie=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,De=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,function(){return Ie}),Ke={pattern:RegExp(Ie),greedy:!0},Ee={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function et(Je,Ye){return Je=Je.replace(/<OPT>/g,function(){return De}).replace(/<SP>/g,function(){return we}),RegExp(Je,Ye)}se.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:et(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[Ke,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:et(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:et(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:et(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:Ee,string:Ke,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:Ee},se.languages.dockerfile=se.languages.docker})(oe)}},51348:function(_e){"use strict";_e.exports=be,be.displayName="dot",be.aliases=["gv"];function be(oe){(function(se){var Ce="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!<!--)<(?:[^<>"']|"[^"]*"|'[^']*')+>|<!--(?:[^-]|-(?!->))*-->)*>/.source].join("|")+")",we={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:se.languages.markup}};function Ie(De,Ke){return RegExp(De.replace(/<ID>/g,function(){return Ce}),Ke)}se.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:Ie(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)<ID>/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:we},"attr-value":{pattern:Ie(/(=[ \t\r\n]*)<ID>/.source),lookbehind:!0,greedy:!0,inside:we},"attr-name":{pattern:Ie(/([\[;, \t\r\n])<ID>(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:we},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:Ie(/(^|[^-.\w\x80-\uFFFF\\])<ID>/.source),lookbehind:!0,greedy:!0,inside:we},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},se.languages.gv=se.languages.dot})(oe)}},60841:function(_e){"use strict";_e.exports=be,be.displayName="ebnf",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="editorconfig",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="eiffel",be.aliases=[];function be(oe){oe.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(_e,be,oe){"use strict";var se=oe(51478);_e.exports=Ce,Ce.displayName="ejs",Ce.aliases=["eta"];function Ce(we){we.register(se),function(Ie){Ie.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:Ie.languages.javascript}},Ie.hooks.add("before-tokenize",function(De){var Ke=/<%(?!%)[\s\S]+?%>/g;Ie.languages["markup-templating"].buildPlaceholders(De,"ejs",Ke)}),Ie.hooks.add("after-tokenize",function(De){Ie.languages["markup-templating"].tokenizePlaceholders(De,"ejs")}),Ie.languages.eta=Ie.languages.ejs}(we)}},83125:function(_e){"use strict";_e.exports=be,be.displayName="elixir",be.aliases=[];function be(oe){oe.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:/<<|>>|[.,%\[\]{}()]/},oe.languages.elixir.string.forEach(function(se){se.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:oe.languages.elixir}}}})}},9438:function(_e){"use strict";_e.exports=be,be.displayName="elm",be.aliases=[];function be(oe){oe.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(_e,be,oe){"use strict";var se=oe(75308),Ce=oe(51478);_e.exports=we,we.displayName="erb",we.aliases=[];function we(Ie){Ie.register(se),Ie.register(Ce),function(De){De.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:De.languages.ruby}},De.hooks.add("before-tokenize",function(Ke){var Ee=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;De.languages["markup-templating"].buildPlaceholders(Ke,"erb",Ee)}),De.hooks.add("after-tokenize",function(Ke){De.languages["markup-templating"].tokenizePlaceholders(Ke,"erb")})}(Ie)}},86549:function(_e){"use strict";_e.exports=be,be.displayName="erlang",be.aliases=[];function be(oe){oe.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(_e,be,oe){"use strict";var se=oe(29509),Ce=oe(51478);_e.exports=we,we.displayName="etlua",we.aliases=[];function we(Ie){Ie.register(se),Ie.register(Ce),function(De){De.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:De.languages.lua}},De.hooks.add("before-tokenize",function(Ke){var Ee=/<%[\s\S]+?%>/g;De.languages["markup-templating"].buildPlaceholders(Ke,"etlua",Ee)}),De.hooks.add("after-tokenize",function(Ke){De.languages["markup-templating"].tokenizePlaceholders(Ke,"etlua")})}(Ie)}},59250:function(_e){"use strict";_e.exports=be,be.displayName="excelFormula",be.aliases=[];function be(oe){oe.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:/[[\]();{}|]/},oe.languages.xlsx=oe.languages.xls=oe.languages["excel-formula"]}},81226:function(_e){"use strict";_e.exports=be,be.displayName="factor",be.aliases=[];function be(oe){(function(se){var Ce={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},we={number:/\\[^\s']|%\w/},Ie={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:Ce},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:Ce},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:Ce}],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:we.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:we},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:we}],"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:we}},De=function(Je){return(Je+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},Ke=function(Je){return new RegExp("(^|\\s)(?:"+Je.map(De).join("|")+")(?=\\s|$)")},Ee={"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(Ee).forEach(function(Je){Ie[Je].pattern=Ke(Ee[Je])});var et=["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"];Ie.combinators.pattern=Ke(et),se.languages.factor=Ie})(oe)}},65245:function(_e){"use strict";_e.exports=be,be.displayName="$false",be.aliases=[];function be(oe){(function(se){se.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"}}})(oe)}},25040:function(_e){"use strict";_e.exports=be,be.displayName="firestoreSecurityRules",be.aliases=[];function be(oe){oe.languages["firestore-security-rules"]=oe.languages.extend("clike",{comment:/\/\/.*/,keyword:/\b(?:allow|function|if|match|null|return|rules_version|service)\b/,operator:/&&|\|\||[<>!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete oe.languages["firestore-security-rules"]["class-name"],oe.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(_e){"use strict";_e.exports=be,be.displayName="flow",be.aliases=[];function be(oe){(function(se){se.languages.flow=se.languages.extend("javascript",{}),se.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),se.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 se.languages.flow.parameter,se.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(se.languages.flow.keyword)||(se.languages.flow.keyword=[se.languages.flow.keyword]),se.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})})(oe)}},39187:function(_e){"use strict";_e.exports=be,be.displayName="fortran",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="fsharp",be.aliases=[];function be(oe){oe.languages.fsharp=oe.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}>?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),oe.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"}}}}),oe.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),oe.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:oe.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(_e,be,oe){"use strict";var se=oe(51478);_e.exports=Ce,Ce.displayName="ftl",Ce.aliases=[];function Ce(we){we.register(se),function(Ie){for(var De=/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,Ke=0;Ke<2;Ke++)De=De.replace(/<expr>/g,function(){return De});De=De.replace(/<expr>/g,/[^\s\S]/.source);var Ee={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:<expr>))*\})*\1/.source.replace(/<expr>/g,function(){return De})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:<expr>))*\}/.source.replace(/<expr>/g,function(){return De})),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:/[,;.:()[\]{}]/};Ee.string[1].inside.interpolation.inside.rest=Ee,Ie.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:Ee}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:Ee}}}},Ie.hooks.add("before-tokenize",function(et){var Je=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,function(){return De}),"gi");Ie.languages["markup-templating"].buildPlaceholders(et,"ftl",Je)}),Ie.hooks.add("after-tokenize",function(et){Ie.languages["markup-templating"].tokenizePlaceholders(et,"ftl")})}(we)}},33534:function(_e){"use strict";_e.exports=be,be.displayName="gap",be.aliases=[];function be(oe){oe.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:/[()[\]{},;.:]/},oe.languages.gap.shell.inside.gap.inside=oe.languages.gap}},9885:function(_e){"use strict";_e.exports=be,be.displayName="gcode",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="gdscript",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="gedcom",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="gherkin",be.aliases=[];function be(oe){(function(se){var Ce=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;se.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("("+Ce+")(?:"+Ce+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(Ce),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"}}})(oe)}},58230:function(_e){"use strict";_e.exports=be,be.displayName="git",be.aliases=[];function be(oe){oe.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(_e,be,oe){"use strict";var se=oe(79440);_e.exports=Ce,Ce.displayName="glsl",Ce.aliases=[];function Ce(we){we.register(se),we.languages.glsl=we.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(_e){"use strict";_e.exports=be,be.displayName="gml",be.aliases=[];function be(oe){oe.languages.gamemakerlanguage=oe.languages.gml=oe.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(_e){"use strict";_e.exports=be,be.displayName="gn",be.aliases=["gni"];function be(oe){oe.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:/[(){}[\],.]/},oe.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=oe.languages.gn,oe.languages.gni=oe.languages.gn}},95769:function(_e){"use strict";_e.exports=be,be.displayName="goModule",be.aliases=[];function be(oe){oe.languages["go-mod"]=oe.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(_e){"use strict";_e.exports=be,be.displayName="go",be.aliases=[];function be(oe){oe.languages.go=oe.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/}),oe.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete oe.languages.go["class-name"]}},92823:function(_e){"use strict";_e.exports=be,be.displayName="graphql",be.aliases=[];function be(oe){oe.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:oe.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+/},oe.hooks.add("after-tokenize",function(Ce){if(Ce.language!=="graphql")return;var we=Ce.tokens.filter(function(ne){return typeof ne!="string"&&ne.type!=="comment"&&ne.type!=="scalar"}),Ie=0;function De(ne){return we[Ie+ne]}function Ke(ne,ge){ge=ge||0;for(var ue=0;ue<ne.length;ue++){var me=De(ue+ge);if(!me||me.type!==ne[ue])return!1}return!0}function Ee(ne,ge){for(var ue=1,me=Ie;me<we.length;me++){var Se=we[me],Ne=Se.content;if(Se.type==="punctuation"&&typeof Ne=="string"){if(ne.test(Ne))ue++;else if(ge.test(Ne)&&(ue--,ue===0))return me}}return-1}function et(ne,ge){var ue=ne.alias;ue?Array.isArray(ue)||(ne.alias=ue=[ue]):ne.alias=ue=[],ue.push(ge)}for(;Ie<we.length;){var Je=we[Ie++];if(Je.type==="keyword"&&Je.content==="mutation"){var Ye=[];if(Ke(["definition-mutation","punctuation"])&&De(1).content==="("){Ie+=2;var tt=Ee(/^\($/,/^\)$/);if(tt===-1)continue;for(;Ie<tt;Ie++){var ht=De(0);ht.type==="variable"&&(et(ht,"variable-input"),Ye.push(ht.content))}Ie=tt+1}if(Ke(["punctuation","property-query"])&&De(0).content==="{"&&(Ie++,et(De(0),"property-mutation"),Ye.length>0)){var kt=Ee(/^\{$/,/^\}$/);if(kt===-1)continue;for(var ze=Ie;ze<kt;ze++){var ee=we[ze];ee.type==="variable"&&Ye.indexOf(ee.content)>=0&&et(ee,"variable-input")}}}}})}},63092:function(_e){"use strict";_e.exports=be,be.displayName="groovy",be.aliases=[];function be(oe){oe.languages.groovy=oe.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:/\.+|[{}[\];(),:$]/}),oe.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),oe.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),oe.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),oe.hooks.add("wrap",function(se){if(se.language==="groovy"&&se.type==="string"){var Ce=se.content.value[0];if(Ce!="'"){var we=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;Ce==="$"&&(we=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),se.content.value=se.content.value.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),se.content=oe.highlight(se.content.value,{expression:{pattern:we,lookbehind:!0,inside:oe.languages.groovy}}),se.classes.push(Ce==="/"?"regex":"gstring")}}})}},21550:function(_e,be,oe){"use strict";var se=oe(75308);_e.exports=Ce,Ce.displayName="haml",Ce.aliases=[];function Ce(we){we.register(se),function(Ie){Ie.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:Ie.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:Ie.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:Ie.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:Ie.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:Ie.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:Ie.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:Ie.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var De="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",Ke=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],Ee={},et=0,Je=Ke.length;et<Je;et++){var Ye=Ke[et];Ye=typeof Ye=="string"?{filter:Ye,language:Ye}:Ye,Ie.languages[Ye.language]&&(Ee["filter-"+Ye.filter]={pattern:RegExp(De.replace("{{filter_name}}",function(){return Ye.filter})),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"},text:{pattern:/[\s\S]+/,alias:[Ye.language,"language-"+Ye.language],inside:Ie.languages[Ye.language]}}})}Ie.languages.insertBefore("haml","filter",Ee)}(we)}},29710:function(_e,be,oe){"use strict";var se=oe(51478);_e.exports=Ce,Ce.displayName="handlebars",Ce.aliases=["hbs"];function Ce(we){we.register(se),function(Ie){Ie.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]+/},Ie.hooks.add("before-tokenize",function(De){var Ke=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;Ie.languages["markup-templating"].buildPlaceholders(De,"handlebars",Ke)}),Ie.hooks.add("after-tokenize",function(De){Ie.languages["markup-templating"].tokenizePlaceholders(De,"handlebars")}),Ie.languages.hbs=Ie.languages.handlebars}(we)}},2050:function(_e){"use strict";_e.exports=be,be.displayName="haskell",be.aliases=["hs"];function be(oe){oe.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:/[{}[\];(),.:]/},oe.languages.hs=oe.languages.haskell}},67967:function(_e){"use strict";_e.exports=be,be.displayName="haxe",be.aliases=[];function be(oe){oe.languages.haxe=oe.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}|[-+*/%!=&|^])=?|[?:~]/}),oe.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:oe.languages.haxe}}},string:/[\s\S]+/}}}),oe.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:oe.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),oe.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(_e){"use strict";_e.exports=be,be.displayName="hcl",be.aliases=[];function be(oe){oe.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(_e,be,oe){"use strict";var se=oe(79440);_e.exports=Ce,Ce.displayName="hlsl",Ce.aliases=[];function Ce(we){we.register(se),we.languages.hlsl=we.languages.extend("c",{"class-name":[we.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(_e){"use strict";_e.exports=be,be.displayName="hoon",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="hpkp",be.aliases=[];function be(oe){oe.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}},76823:function(_e){"use strict";_e.exports=be,be.displayName="hsts",be.aliases=[];function be(oe){oe.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}},86712:function(_e){"use strict";_e.exports=be,be.displayName="http",be.aliases=[];function be(oe){(function(se){function Ce(Ye){return RegExp("(^(?:"+Ye+"):[ ]*(?![ ]))[^]+","i")}se.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:se.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:Ce(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:se.languages.csp},{pattern:Ce(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:se.languages.hpkp},{pattern:Ce(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:se.languages.hsts},{pattern:Ce(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var we=se.languages,Ie={"application/javascript":we.javascript,"application/json":we.json||we.javascript,"application/xml":we.xml,"text/xml":we.xml,"text/html":we.html,"text/css":we.css,"text/plain":we.plain},De={"application/json":!0,"application/xml":!0};function Ke(Ye){var tt=Ye.replace(/^[a-z]+\//,""),ht="\\w+/(?:[\\w.-]+\\+)+"+tt+"(?![+\\w.-])";return"(?:"+Ye+"|"+ht+")"}var Ee;for(var et in Ie)if(Ie[et]){Ee=Ee||{};var Je=De[et]?Ke(et):et;Ee[et.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+Je+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:Ie[et]}}Ee&&se.languages.insertBefore("http","header",Ee)})(oe)}},72252:function(_e){"use strict";_e.exports=be,be.displayName="ichigojam",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="icon",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="icuMessageFormat",be.aliases=[];function be(oe){(function(se){function Ce(et,Je){return Je<=0?/[]/.source:et.replace(/<SELF>/g,function(){return Ce(et,Je-1)})}var we=/'[{}:=,](?:[^']|'')*'(?!')/,Ie={pattern:/''/,greedy:!0,alias:"operator"},De={pattern:we,greedy:!0,inside:{escape:Ie}},Ke=Ce(/\{(?:[^{}']|'(?![{},'])|''|<STR>|<SELF>)*\}/.source.replace(/<STR>/g,function(){return we.source}),8),Ee={pattern:RegExp(Ke),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};se.languages["icu-message-format"]={argument:{pattern:RegExp(Ke),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":Ee,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":Ee,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+Ce(/(?:[^{}']|'[^']*'|\{(?:<SELF>)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:Ie,string:De},Ee.inside.message.inside=se.languages["icu-message-format"],se.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=se.languages["icu-message-format"]})(oe)}},23328:function(_e,be,oe){"use strict";var se=oe(2050);_e.exports=Ce,Ce.displayName="idris",Ce.aliases=["idr"];function Ce(we){we.register(se),we.languages.idris=we.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}),we.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),we.languages.idr=we.languages.idris}},74494:function(_e){"use strict";_e.exports=be,be.displayName="iecst",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="ignore",be.aliases=["gitignore","hgignore","npmignore"];function be(oe){(function(se){se.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},se.languages.gitignore=se.languages.ignore,se.languages.hgignore=se.languages.ignore,se.languages.npmignore=se.languages.ignore})(oe)}},22152:function(_e){"use strict";_e.exports=be,be.displayName="inform7",be.aliases=[];function be(oe){oe.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:/[.,:;(){}]/},oe.languages.inform7.string.inside.substitution.inside.rest=oe.languages.inform7,oe.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}},83698:function(_e){"use strict";_e.exports=be,be.displayName="ini",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="io",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="j",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="java",be.aliases=[];function be(oe){(function(se){var Ce=/\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/,we=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,Ie={pattern:RegExp(we+/[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:/\./}};se.languages.java=se.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[Ie,{pattern:RegExp(we+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:Ie.inside}],keyword:Ce,function:[se.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}}),se.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),se.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":Ie,keyword:Ce,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 Ce.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(oe)}},4005:function(_e,be,oe){"use strict";var se=oe(7093),Ce=oe(53510);_e.exports=we,we.displayName="javadoc",we.aliases=[];function we(Ie){Ie.register(se),Ie.register(Ce),function(De){var Ke=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,Ee=/#\s*\w+(?:\s*\([^()]*\))?/.source,et=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*<mem>)?|<mem>/.source.replace(/<mem>/g,function(){return Ee});De.languages.javadoc=De.languages.extend("javadoclike",{}),De.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+et+")"),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:De.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:Ke,lookbehind:!0,inside:De.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!<code>)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:Ke,lookbehind:!0,inside:{tag:De.languages.markup.tag,entity:De.languages.markup.entity,code:{pattern:/.+/,inside:De.languages.java,alias:"language-java"}}}}}],tag:De.languages.markup.tag,entity:De.languages.markup.entity}),De.languages.javadoclike.addSupport("java",De.languages.javadoc)}(Ie)}},53510:function(_e){"use strict";_e.exports=be,be.displayName="javadoclike",be.aliases=[];function be(oe){(function(se){var Ce=se.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 we(De,Ke){var Ee="doc-comment",et=se.languages[De];if(et){var Je=et[Ee];if(!Je){var Ye={};Ye[Ee]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},et=se.languages.insertBefore(De,"comment",Ye),Je=et[Ee]}if(Je instanceof RegExp&&(Je=et[Ee]={pattern:Je}),Array.isArray(Je))for(var tt=0,ht=Je.length;tt<ht;tt++)Je[tt]instanceof RegExp&&(Je[tt]={pattern:Je[tt]}),Ke(Je[tt]);else Ke(Je)}}function Ie(De,Ke){typeof De=="string"&&(De=[De]),De.forEach(function(Ee){we(Ee,function(et){et.inside||(et.inside={}),et.inside.rest=Ke})})}Object.defineProperty(Ce,"addSupport",{value:Ie}),Ce.addSupport(["java","javascript","php"],Ce)})(oe)}},88786:function(_e){"use strict";_e.exports=be,be.displayName="javascript",be.aliases=["js"];function be(oe){oe.languages.javascript=oe.languages.extend("clike",{"class-name":[oe.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}|\?\?=?|\?\.?|[~:]/}),oe.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,oe.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:oe.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:oe.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:oe.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:oe.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:oe.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),oe.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:oe.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"}}),oe.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),oe.languages.markup&&(oe.languages.markup.tag.addInlined("script","javascript"),oe.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")),oe.languages.js=oe.languages.javascript}},24799:function(_e){"use strict";_e.exports=be,be.displayName="javastacktrace",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="jexl",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="jolie",be.aliases=[];function be(oe){oe.languages.jolie=oe.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/}),oe.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(_e){"use strict";_e.exports=be,be.displayName="jq",be.aliases=[];function be(oe){(function(se){var Ce=/\\\((?:[^()]|\([^()]*\))*\)/.source,we=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return Ce})),Ie={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+Ce),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},De=se.languages.jq={comment:/#.*/,property:{pattern:RegExp(we.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:Ie},string:{pattern:we,lookbehind:!0,greedy:!0,inside:Ie},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"}};Ie.interpolation.inside.content.inside=De})(oe)}},89246:function(_e){"use strict";_e.exports=be,be.displayName="jsExtras",be.aliases=[];function be(oe){(function(se){se.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+se.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),se.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+se.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),se.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 Ce(et,Je){return RegExp(et.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),Je)}se.languages.insertBefore("javascript","keyword",{imports:{pattern:Ce(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:se.languages.javascript},exports:{pattern:Ce(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:se.languages.javascript}}),se.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"}),se.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),se.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:Ce(/(\.\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 we=["function","function-variable","method","method-variable","property-access"],Ie=0;Ie<we.length;Ie++){var De=we[Ie],Ke=se.languages.javascript[De];se.util.type(Ke)==="RegExp"&&(Ke=se.languages.javascript[De]={pattern:Ke});var Ee=Ke.inside||{};Ke.inside=Ee,Ee["maybe-class-name"]=/^[A-Z][\s\S]*/}})(oe)}},487:function(_e){"use strict";_e.exports=be,be.displayName="jsTemplates",be.aliases=[];function be(oe){(function(se){var Ce=se.languages.javascript["template-string"],we=Ce.pattern.source,Ie=Ce.inside.interpolation,De=Ie.inside["interpolation-punctuation"],Ke=Ie.pattern.source;function Ee(ze,ee){if(se.languages[ze])return{pattern:RegExp("((?:"+ee+")\\s*)"+we),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:ze}}}}se.languages.javascript["template-string"]=[Ee("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),Ee("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),Ee("svg",/\bsvg/.source),Ee("markdown",/\b(?:markdown|md)/.source),Ee("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),Ee("sql",/\bsql/.source),Ce].filter(Boolean);function et(ze,ee){return"___"+ee.toUpperCase()+"_"+ze+"___"}function Je(ze,ee,ne){var ge={code:ze,grammar:ee,language:ne};return se.hooks.run("before-tokenize",ge),ge.tokens=se.tokenize(ge.code,ge.grammar),se.hooks.run("after-tokenize",ge),ge.tokens}function Ye(ze){var ee={};ee["interpolation-punctuation"]=De;var ne=se.tokenize(ze,ee);if(ne.length===3){var ge=[1,1];ge.push.apply(ge,Je(ne[1],se.languages.javascript,"javascript")),ne.splice.apply(ne,ge)}return new se.Token("interpolation",ne,Ie.alias,ze)}function tt(ze,ee,ne){var ge=se.tokenize(ze,{interpolation:{pattern:RegExp(Ke),lookbehind:!0}}),ue=0,me={},Se=ge.map(function(We){if(typeof We=="string")return We;for(var $e=We.content,st;ze.indexOf(st=et(ue++,ne))!==-1;);return me[st]=$e,st}).join(""),Ne=Je(Se,ee,ne),ke=Object.keys(me);ue=0;function Te(We){for(var $e=0;$e<We.length;$e++){if(ue>=ke.length)return;var st=We[$e];if(typeof st=="string"||typeof st.content=="string"){var ut=ke[ue],Mt=typeof st=="string"?st:st.content,nt=Mt.indexOf(ut);if(nt!==-1){++ue;var $t=Mt.substring(0,nt),Pt=Ye(me[ut]),dn=Mt.substring(nt+ut.length),zt=[];if($t&&zt.push($t),zt.push(Pt),dn){var Xt=[dn];Te(Xt),zt.push.apply(zt,Xt)}typeof st=="string"?(We.splice.apply(We,[$e,1].concat(zt)),$e+=zt.length-1):st.content=zt}}else{var fn=st.content;Array.isArray(fn)?Te(fn):Te([fn])}}}return Te(Ne),new se.Token(ne,Ne,"language-"+ne,ze)}var ht={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};se.hooks.add("after-tokenize",function(ze){if(!(ze.language in ht))return;function ee(ne){for(var ge=0,ue=ne.length;ge<ue;ge++){var me=ne[ge];if(typeof me!="string"){var Se=me.content;if(!Array.isArray(Se)){typeof Se!="string"&&ee([Se]);continue}if(me.type==="template-string"){var Ne=Se[1];if(Se.length===3&&typeof Ne!="string"&&Ne.type==="embedded-code"){var ke=kt(Ne),Te=Ne.alias,We=Array.isArray(Te)?Te[0]:Te,$e=se.languages[We];if(!$e)continue;Se[1]=tt(ke,$e,We)}}else ee(Se)}}}ee(ze.tokens)});function kt(ze){return typeof ze=="string"?ze:Array.isArray(ze)?ze.map(kt).join(""):kt(ze.content)}})(oe)}},79539:function(_e,be,oe){"use strict";var se=oe(53510),Ce=oe(92784);_e.exports=we,we.displayName="jsdoc",we.aliases=[];function we(Ie){Ie.register(se),Ie.register(Ce),function(De){var Ke=De.languages.javascript,Ee=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,et="(@(?:arg|argument|param|property)\\s+(?:"+Ee+"\\s+)?)";De.languages.jsdoc=De.languages.extend("javadoclike",{parameter:{pattern:RegExp(et+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),De.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(et+/\[(?:(?!\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:Ke,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 Ee})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+Ee),lookbehind:!0,inside:{string:Ke.string,number:Ke.number,boolean:Ke.boolean,keyword:De.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:Ke,alias:"language-javascript"}}}}),De.languages.javadoclike.addSupport("javascript",De.languages.jsdoc)}(Ie)}},15628:function(_e){"use strict";_e.exports=be,be.displayName="json",be.aliases=["webmanifest"];function be(oe){oe.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"}},oe.languages.webmanifest=oe.languages.json}},14320:function(_e,be,oe){"use strict";var se=oe(15628);_e.exports=Ce,Ce.displayName="json5",Ce.aliases=[];function Ce(we){we.register(se),function(Ie){var De=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;Ie.languages.json5=Ie.languages.extend("json",{property:[{pattern:RegExp(De.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:De,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(we)}},73222:function(_e,be,oe){"use strict";var se=oe(15628);_e.exports=Ce,Ce.displayName="jsonp",Ce.aliases=[];function Ce(we){we.register(se),we.languages.jsonp=we.languages.extend("json",{punctuation:/[{}[\]();,.]/}),we.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}},92486:function(_e){"use strict";_e.exports=be,be.displayName="jsstacktrace",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="jsx",be.aliases=[];function be(oe){(function(se){var Ce=se.util.clone(se.languages.javascript),we=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,Ie=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,De=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function Ke(Je,Ye){return Je=Je.replace(/<S>/g,function(){return we}).replace(/<BRACES>/g,function(){return Ie}).replace(/<SPREAD>/g,function(){return De}),RegExp(Je,Ye)}De=Ke(De).source,se.languages.jsx=se.languages.extend("markup",Ce),se.languages.jsx.tag.pattern=Ke(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),se.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,se.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,se.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,se.languages.jsx.tag.inside.comment=Ce.comment,se.languages.insertBefore("inside","attr-name",{spread:{pattern:Ke(/<SPREAD>/.source),inside:se.languages.jsx}},se.languages.jsx.tag),se.languages.insertBefore("inside","special-attr",{script:{pattern:Ke(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:se.languages.jsx}}},se.languages.jsx.tag);var Ee=function(Je){return Je?typeof Je=="string"?Je:typeof Je.content=="string"?Je.content:Je.content.map(Ee).join(""):""},et=function(Je){for(var Ye=[],tt=0;tt<Je.length;tt++){var ht=Je[tt],kt=!1;if(typeof ht!="string"&&(ht.type==="tag"&&ht.content[0]&&ht.content[0].type==="tag"?ht.content[0].content[0].content==="</"?Ye.length>0&&Ye[Ye.length-1].tagName===Ee(ht.content[0].content[1])&&Ye.pop():ht.content[ht.content.length-1].content==="/>"||Ye.push({tagName:Ee(ht.content[0].content[1]),openedBraces:0}):Ye.length>0&&ht.type==="punctuation"&&ht.content==="{"?Ye[Ye.length-1].openedBraces++:Ye.length>0&&Ye[Ye.length-1].openedBraces>0&&ht.type==="punctuation"&&ht.content==="}"?Ye[Ye.length-1].openedBraces--:kt=!0),(kt||typeof ht=="string")&&Ye.length>0&&Ye[Ye.length-1].openedBraces===0){var ze=Ee(ht);tt<Je.length-1&&(typeof Je[tt+1]=="string"||Je[tt+1].type==="plain-text")&&(ze+=Ee(Je[tt+1]),Je.splice(tt+1,1)),tt>0&&(typeof Je[tt-1]=="string"||Je[tt-1].type==="plain-text")&&(ze=Ee(Je[tt-1])+ze,Je.splice(tt-1,1),tt--),Je[tt]=new se.Token("plain-text",ze,null,ze)}ht.content&&typeof ht.content!="string"&&et(ht.content)}};se.hooks.add("after-tokenize",function(Je){Je.language!=="jsx"&&Je.language!=="tsx"||et(Je.tokens)})})(oe)}},40604:function(_e){"use strict";_e.exports=be,be.displayName="julia",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="keepalived",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="keyman",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="kotlin",be.aliases=["kt","kts"];function be(oe){(function(se){se.languages.kotlin=se.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 se.languages.kotlin["class-name"];var Ce={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:se.languages.kotlin}};se.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:Ce},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:Ce},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete se.languages.kotlin.string,se.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),se.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),se.languages.kt=se.languages.kotlin,se.languages.kts=se.languages.kotlin})(oe)}},37524:function(_e){"use strict";_e.exports=be,be.displayName="kumir",be.aliases=["kum"];function be(oe){(function(se){var Ce=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function we(Ie,De){return RegExp(Ie.replace(/<nonId>/g,Ce),De)}se.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:we(/(^|[<nonId>])(?:да|нет)(?=[<nonId>]|$)/.source),lookbehind:!0},"operator-word":{pattern:we(/(^|[<nonId>])(?:и|или|не)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:we(/(^|[<nonId>])знач(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:we(/(^|[<nonId>])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:we(/(^|[<nonId>])(?:компл|сканкод|файл|цвет)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:we(/(^|[<nonId>])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[<nonId>]|$)/.source),lookbehind:!0},name:{pattern:we(/(^|[<nonId>])[^\d<nonId>][^<nonId>]*(?:\x20+[^<nonId>]+)*(?=[<nonId>]|$)/.source),lookbehind:!0},number:{pattern:we(/(^|[<nonId>])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[<nonId>]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},se.languages.kum=se.languages.kumir})(oe)}},6658:function(_e){"use strict";_e.exports=be,be.displayName="kusto",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="latex",be.aliases=["tex","context"];function be(oe){(function(se){var Ce=/\\(?:[^a-z()[\]]|[a-z*]+)/i,we={"equation-command":{pattern:Ce,alias:"regex"}};se.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:we,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:we,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:Ce,alias:"selector"},punctuation:/[[\]{}&]/},se.languages.tex=se.languages.latex,se.languages.context=se.languages.latex})(oe)}},22776:function(_e,be,oe){"use strict";var se=oe(51478),Ce=oe(53852);_e.exports=we,we.displayName="latte",we.aliases=[];function we(Ie){Ie.register(se),Ie.register(Ce),function(De){De.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:De.languages.php}};var Ke=De.languages.extend("markup",{});De.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:De.languages.php}}}}}},Ke.tag),De.hooks.add("before-tokenize",function(Ee){if(Ee.language==="latte"){var et=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;De.languages["markup-templating"].buildPlaceholders(Ee,"latte",et),Ee.grammar=Ke}}),De.hooks.add("after-tokenize",function(Ee){De.languages["markup-templating"].tokenizePlaceholders(Ee,"latte")})}(Ie)}},89700:function(_e){"use strict";_e.exports=be,be.displayName="less",be.aliases=[];function be(oe){oe.languages.less=oe.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:/[+\-*\/]/}),oe.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}},99296:function(_e,be,oe){"use strict";var se=oe(48780);_e.exports=Ce,Ce.displayName="lilypond",Ce.aliases=[];function Ce(we){we.register(se),function(Ie){for(var De=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|<expr>)*\)/.source,Ke=5,Ee=0;Ee<Ke;Ee++)De=De.replace(/<expr>/g,function(){return De});De=De.replace(/<expr>/g,/[^\s\S]/.source);var et=Ie.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|<expr>))/.source.replace(/<expr>/g,function(){return De}),"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:Ie.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/};et["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=et,Ie.languages.ly=et}(we)}},39940:function(_e,be,oe){"use strict";var se=oe(51478);_e.exports=Ce,Ce.displayName="liquid",Ce.aliases=[];function Ce(we){we.register(se),we.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"}},we.hooks.add("before-tokenize",function(Ie){var De=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,Ke=!1;we.languages["markup-templating"].buildPlaceholders(Ie,"liquid",De,function(Ee){var et=/^\{%-?\s*(\w+)/.exec(Ee);if(et){var Je=et[1];if(Je==="raw"&&!Ke)return Ke=!0,!0;if(Je==="endraw")return Ke=!1,!0}return!Ke})}),we.hooks.add("after-tokenize",function(Ie){we.languages["markup-templating"].tokenizePlaceholders(Ie,"liquid")})}},34973:function(_e){"use strict";_e.exports=be,be.displayName="lisp",be.aliases=[];function be(oe){(function(se){function Ce(ze){return RegExp(/(\()/.source+"(?:"+ze+")"+/(?=[\s\)])/.source)}function we(ze){return RegExp(/([\s([])/.source+"(?:"+ze+")"+/(?=[\s)])/.source)}var Ie=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,De="&"+Ie,Ke="(\\()",Ee="(?=\\))",et="(?=\\s)",Je=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,Ye={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+Ie+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+Ie),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+Ie),alias:"property"},splice:{pattern:RegExp(",@?"+Ie),alias:["symbol","variable"]},keyword:[{pattern:RegExp(Ke+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+et),lookbehind:!0},{pattern:RegExp(Ke+"(?:append|by|collect|concat|do|finally|for|in|return)"+et),lookbehind:!0}],declare:{pattern:Ce(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:Ce(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:we(/nil|t/.source),lookbehind:!0},number:{pattern:we(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(Ke+"def(?:const|custom|group|var)\\s+"+Ie),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(Ie)}},defun:{pattern:RegExp(Ke+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+Ie+/\s+\(/.source+Je+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+Ie),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(Ke+"lambda\\s+\\(\\s*(?:&?"+Ie+"(?:\\s+&?"+Ie+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(Ke+Ie),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},tt={"lisp-marker":RegExp(De),varform:{pattern:RegExp(/\(/.source+Ie+/\s+(?=\S)/.source+Je+/\)/.source),inside:Ye},argument:{pattern:RegExp(/(^|[\s(])/.source+Ie),lookbehind:!0,alias:"variable"},rest:Ye},ht="\\S+(?:\\s+\\S+)*",kt={pattern:RegExp(Ke+Je+Ee),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+ht),inside:tt},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+ht),inside:tt},keys:{pattern:RegExp("&key\\s+"+ht+"(?:\\s+&allow-other-keys)?"),inside:tt},argument:{pattern:RegExp(Ie),alias:"variable"},punctuation:/[()]/}};Ye.lambda.inside.arguments=kt,Ye.defun.inside.arguments=se.util.clone(kt),Ye.defun.inside.arguments.inside.sublist=kt,se.languages.lisp=Ye,se.languages.elisp=Ye,se.languages.emacs=Ye,se.languages["emacs-lisp"]=Ye})(oe)}},98135:function(_e){"use strict";_e.exports=be,be.displayName="livescript",be.aliases=[];function be(oe){oe.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:/[(){}\[\]|.,:;`]/},oe.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=oe.languages.livescript}},36907:function(_e){"use strict";_e.exports=be,be.displayName="llvm",be.aliases=[];function be(oe){(function(se){se.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:/[{}[\];(),.!*=<>]/}})(oe)}},3567:function(_e){"use strict";_e.exports=be,be.displayName="log",be.aliases=[];function be(oe){oe.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:oe.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(_e){"use strict";_e.exports=be,be.displayName="lolcode",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="lua",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="magma",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="makefile",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="markdown",be.aliases=["md"];function be(oe){(function(se){var Ce=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function we(tt){return tt=tt.replace(/<inner>/g,function(){return Ce}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+tt+")")}var Ie=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,De=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return Ie}),Ke=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;se.languages.markdown=se.languages.extend("markup",{}),se.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:se.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+De+Ke+"(?:"+De+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+De+Ke+")(?:"+De+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(Ie),inside:se.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+De+")"+Ke+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+De+"$"),inside:{"table-header":{pattern:RegExp(Ie),alias:"important",inside:se.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:we(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:we(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:we(/(~~?)(?:(?!~)<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:we(/!?\[(?:(?!\])<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(tt){["url","bold","italic","strike","code-snippet"].forEach(function(ht){tt!==ht&&(se.languages.markdown[tt].inside.content.inside[ht]=se.languages.markdown[ht])})}),se.hooks.add("after-tokenize",function(tt){if(tt.language!=="markdown"&&tt.language!=="md")return;function ht(kt){if(!(!kt||typeof kt=="string"))for(var ze=0,ee=kt.length;ze<ee;ze++){var ne=kt[ze];if(ne.type!=="code"){ht(ne.content);continue}var ge=ne.content[1],ue=ne.content[3];if(ge&&ue&&ge.type==="code-language"&&ue.type==="code-block"&&typeof ge.content=="string"){var me=ge.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");me=(/[a-z][\w-]*/i.exec(me)||[""])[0].toLowerCase();var Se="language-"+me;ue.alias?typeof ue.alias=="string"?ue.alias=[ue.alias,Se]:ue.alias.push(Se):ue.alias=[Se]}}}ht(tt.tokens)}),se.hooks.add("wrap",function(tt){if(tt.type==="code-block"){for(var ht="",kt=0,ze=tt.classes.length;kt<ze;kt++){var ee=tt.classes[kt],ne=/language-(.+)/.exec(ee);if(ne){ht=ne[1];break}}var ge=se.languages[ht];if(ge)tt.content=se.highlight(Ye(tt.content.value),ge,ht);else if(ht&&ht!=="none"&&se.plugins.autoloader){var ue="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);tt.attributes.id=ue,se.plugins.autoloader.loadLanguages(ht,function(){var me=document.getElementById(ue);me&&(me.innerHTML=se.highlight(me.textContent,se.languages[ht],ht))})}}});var Ee=RegExp(se.languages.markup.tag.pattern.source,"gi"),et={amp:"&",lt:"<",gt:">",quot:'"'},Je=String.fromCodePoint||String.fromCharCode;function Ye(tt){var ht=tt.replace(Ee,"");return ht=ht.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(kt,ze){if(ze=ze.toLowerCase(),ze[0]==="#"){var ee;return ze[1]==="x"?ee=parseInt(ze.slice(2),16):ee=Number(ze.slice(1)),Je(ee)}else{var ne=et[ze];return ne||kt}}),ht}se.languages.md=se.languages.markdown})(oe)}},51478:function(_e){"use strict";_e.exports=be,be.displayName="markupTemplating",be.aliases=[];function be(oe){(function(se){function Ce(we,Ie){return"___"+we.toUpperCase()+Ie+"___"}Object.defineProperties(se.languages["markup-templating"]={},{buildPlaceholders:{value:function(we,Ie,De,Ke){if(we.language===Ie){var Ee=we.tokenStack=[];we.code=we.code.replace(De,function(et){if(typeof Ke=="function"&&!Ke(et))return et;for(var Je=Ee.length,Ye;we.code.indexOf(Ye=Ce(Ie,Je))!==-1;)++Je;return Ee[Je]=et,Ye}),we.grammar=se.languages.markup}}},tokenizePlaceholders:{value:function(we,Ie){if(we.language!==Ie||!we.tokenStack)return;we.grammar=se.languages[Ie];var De=0,Ke=Object.keys(we.tokenStack);function Ee(et){for(var Je=0;Je<et.length&&!(De>=Ke.length);Je++){var Ye=et[Je];if(typeof Ye=="string"||Ye.content&&typeof Ye.content=="string"){var tt=Ke[De],ht=we.tokenStack[tt],kt=typeof Ye=="string"?Ye:Ye.content,ze=Ce(Ie,tt),ee=kt.indexOf(ze);if(ee>-1){++De;var ne=kt.substring(0,ee),ge=new se.Token(Ie,se.tokenize(ht,we.grammar),"language-"+Ie,ht),ue=kt.substring(ee+ze.length),me=[];ne&&me.push.apply(me,Ee([ne])),me.push(ge),ue&&me.push.apply(me,Ee([ue])),typeof Ye=="string"?et.splice.apply(et,[Je,1].concat(me)):Ye.content=me}}else Ye.content&&Ee(Ye.content)}return et}Ee(we.tokens)}}})})(oe)}},70614:function(_e){"use strict";_e.exports=be,be.displayName="markup",be.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function be(oe){oe.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]},oe.languages.markup.tag.inside["attr-value"].inside.entity=oe.languages.markup.entity,oe.languages.markup.doctype.inside["internal-subset"].inside=oe.languages.markup,oe.hooks.add("wrap",function(se){se.type==="entity"&&(se.attributes.title=se.content.value.replace(/&amp;/,"&"))}),Object.defineProperty(oe.languages.markup.tag,"addInlined",{value:function(Ce,we){var Ie={};Ie["language-"+we]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:oe.languages[we]},Ie.cdata=/^<!\[CDATA\[|\]\]>$/i;var De={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:Ie}};De["language-"+we]={pattern:/[\s\S]+/,inside:oe.languages[we]};var Ke={};Ke[Ce]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return Ce}),"i"),lookbehind:!0,greedy:!0,inside:De},oe.languages.insertBefore("markup","cdata",Ke)}}),Object.defineProperty(oe.languages.markup.tag,"addAttribute",{value:function(se,Ce){oe.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+se+")"+/\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:[Ce,"language-"+Ce],inside:oe.languages[Ce]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),oe.languages.html=oe.languages.markup,oe.languages.mathml=oe.languages.markup,oe.languages.svg=oe.languages.markup,oe.languages.xml=oe.languages.extend("markup",{}),oe.languages.ssml=oe.languages.xml,oe.languages.atom=oe.languages.xml,oe.languages.rss=oe.languages.xml}},16928:function(_e){"use strict";_e.exports=be,be.displayName="matlab",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="maxscript",be.aliases=[];function be(oe){(function(se){var Ce=/\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;se.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)+")[ ]*)(?!"+Ce.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+Ce.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:Ce,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}})(oe)}},37164:function(_e){"use strict";_e.exports=be,be.displayName="mel",be.aliases=[];function be(oe){oe.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:/<<|>>|[.,:;?\[\](){}]/},oe.languages.mel.code.inside.rest=oe.languages.mel}},25153:function(_e){"use strict";_e.exports=be,be.displayName="mermaid",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="mizar",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="mongodb",be.aliases=[];function be(oe){(function(se){var Ce=["$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"],we=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];Ce=Ce.map(function(De){return De.replace("$","\\$")});var Ie="(?:"+Ce.join("|")+")\\b";se.languages.mongodb=se.languages.extend("javascript",{}),se.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(`^(['"])?`+Ie+"(?:\\1)?$")}}}),se.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}},se.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+we.join("|")+")\\b"),alias:"keyword"}})})(oe)}},65626:function(_e){"use strict";_e.exports=be,be.displayName="monkey",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="moonscript",be.aliases=["moon"];function be(oe){oe.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:/[.,()[\]{}\\]/},oe.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=oe.languages.moonscript,oe.languages.moon=oe.languages.moonscript}},40722:function(_e){"use strict";_e.exports=be,be.displayName="n1ql",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="n4js",be.aliases=["n4jsd"];function be(oe){oe.languages.n4js=oe.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/}),oe.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),oe.languages.n4jsd=oe.languages.n4js}},41224:function(_e){"use strict";_e.exports=be,be.displayName="nand2tetrisHdl",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="naniscript",be.aliases=[];function be(oe){(function(se){var Ce=/\{[^\r\n\[\]{}]*\}/,we={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:Ce,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};se.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:Ce,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:we}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:Ce,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:we},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},se.languages.nani=se.languages.naniscript,se.hooks.add("after-tokenize",function(Ke){var Ee=Ke.tokens;Ee.forEach(function(et){if(typeof et!="string"&&et.type==="generic-text"){var Je=De(et);Ie(Je)||(et.type="bad-line",et.content=Je)}})});function Ie(Ke){for(var Ee="[]{}",et=[],Je=0;Je<Ke.length;Je++){var Ye=Ke[Je],tt=Ee.indexOf(Ye);if(tt!==-1){if(tt%2===0)et.push(tt+1);else if(et.pop()!==tt)return!1}}return et.length===0}function De(Ke){return typeof Ke=="string"?Ke:Array.isArray(Ke)?Ke.map(De).join(""):De(Ke.content)}})(oe)}},42846:function(_e){"use strict";_e.exports=be,be.displayName="nasm",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="neon",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="nevod",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="nginx",be.aliases=[];function be(oe){(function(se){var Ce=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;se.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:Ce}},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:Ce}},punctuation:/[{};]/}})(oe)}},66791:function(_e){"use strict";_e.exports=be,be.displayName="nim",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="nix",be.aliases=[];function be(oe){oe.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:/[{}()[\].,:;]/},oe.languages.nix.string.inside.interpolation.inside=oe.languages.nix}},13490:function(_e){"use strict";_e.exports=be,be.displayName="nsis",be.aliases=[];function be(oe){oe.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(_e,be,oe){"use strict";var se=oe(79440);_e.exports=Ce,Ce.displayName="objectivec",Ce.aliases=["objc"];function Ce(we){we.register(se),we.languages.objectivec=we.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 we.languages.objectivec["class-name"],we.languages.objc=we.languages.objectivec}},66894:function(_e){"use strict";_e.exports=be,be.displayName="ocaml",be.aliases=[];function be(oe){oe.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(_e,be,oe){"use strict";var se=oe(79440);_e.exports=Ce,Ce.displayName="opencl",Ce.aliases=[];function Ce(we){we.register(se),function(Ie){Ie.languages.opencl=Ie.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"}}),Ie.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 De={"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"}};Ie.languages.insertBefore("c","keyword",De),Ie.languages.cpp&&(De["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"},Ie.languages.insertBefore("cpp","keyword",De))}(we)}},27734:function(_e){"use strict";_e.exports=be,be.displayName="openqasm",be.aliases=["qasm"];function be(oe){oe.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:/[(){}\[\];,:.]/},oe.languages.qasm=oe.languages.openqasm}},91889:function(_e){"use strict";_e.exports=be,be.displayName="oz",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="parigp",be.aliases=[];function be(oe){oe.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var se=["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 se=se.map(function(Ce){return Ce.split("").join(" *")}).join("|"),RegExp("\\b(?:"+se+")\\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(_e){"use strict";_e.exports=be,be.displayName="parser",be.aliases=[];function be(oe){(function(se){var Ce=se.languages.parser=se.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:/[\[\](){};]/});Ce=se.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:Ce.keyword,variable:Ce.variable,function:Ce.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:Ce.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:Ce.punctuation}}}),se.languages.insertBefore("inside","punctuation",{expression:Ce.expression,keyword:Ce.keyword,variable:Ce.variable,function:Ce.function,escape:Ce.escape,"parser-punctuation":{pattern:Ce.punctuation,alias:"punctuation"}},Ce.tag.inside["attr-value"])})(oe)}},92949:function(_e){"use strict";_e.exports=be,be.displayName="pascal",be.aliases=["objectpascal"];function be(oe){oe.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:/\(\.|\.\)|[()\[\]:;,.]/},oe.languages.pascal.asm.inside=oe.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),oe.languages.objectpascal=oe.languages.pascal}},5681:function(_e){"use strict";_e.exports=be,be.displayName="pascaligo",be.aliases=[];function be(oe){(function(se){var Ce=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,we=/(?:\b\w+(?:<braces>)?|<braces>)/.source.replace(/<braces>/g,function(){return Ce}),Ie=se.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 we}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/<type>(?=\s+is\b)/.source.replace(/<type>/g,function(){return we}),"i"),inside:null},{pattern:RegExp(/(:\s*)<type>/.source.replace(/<type>/g,function(){return we})),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:/\(\.|\.\)|[()\[\]:;,.{}]/},De=["comment","keyword","builtin","operator","punctuation"].reduce(function(Ke,Ee){return Ke[Ee]=Ie[Ee],Ke},{});Ie["class-name"].forEach(function(Ke){Ke.inside=De})})(oe)}},70696:function(_e){"use strict";_e.exports=be,be.displayName="pcaxis",be.aliases=["px"];function be(oe){oe.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/},oe.languages.px=oe.languages.pcaxis}},35790:function(_e){"use strict";_e.exports=be,be.displayName="peoplecode",be.aliases=["pcode"];function be(oe){oe.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:/[:.;,()[\]]/},oe.languages.pcode=oe.languages.peoplecode}},25777:function(_e){"use strict";_e.exports=be,be.displayName="perl",be.aliases=[];function be(oe){(function(se){var Ce=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;se.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,Ce].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,Ce].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,Ce+/\s*/.source+Ce].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:/[{}[\];(),:]/}})(oe)}},65889:function(_e,be,oe){"use strict";var se=oe(53852);_e.exports=Ce,Ce.displayName="phpExtras",Ce.aliases=[];function Ce(we){we.register(se),we.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(_e,be,oe){"use strict";var se=oe(51478);_e.exports=Ce,Ce.displayName="php",Ce.aliases=[];function Ce(we){we.register(se),function(Ie){var De=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,Ke=[{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*\()/],Ee=/\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,et=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,Je=/[{}\[\](),:;]/;Ie.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:De,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:Ke,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:Ee,operator:et,punctuation:Je};var Ye={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:Ie.languages.php},tt=[{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:Ye}},{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:Ye}}];Ie.languages.insertBefore("php","variable",{string:tt,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:De,string:tt,"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:Ke,number:Ee,operator:et,punctuation:Je}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),Ie.hooks.add("before-tokenize",function(ht){if(/<\?/.test(ht.code)){var kt=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;Ie.languages["markup-templating"].buildPlaceholders(ht,"php",kt)}}),Ie.hooks.add("after-tokenize",function(ht){Ie.languages["markup-templating"].tokenizePlaceholders(ht,"php")})}(we)}},97719:function(_e,be,oe){"use strict";var se=oe(53852),Ce=oe(53510);_e.exports=we,we.displayName="phpdoc",we.aliases=[];function we(Ie){Ie.register(se),Ie.register(Ce),function(De){var Ke=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;De.languages.phpdoc=De.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+Ke+"\\s+)?)\\$\\w+"),lookbehind:!0}}),De.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+Ke),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),De.languages.javadoclike.addSupport("php",De.languages.phpdoc)}(Ie)}},63839:function(_e,be,oe){"use strict";var se=oe(69435);_e.exports=Ce,Ce.displayName="plsql",Ce.aliases=[];function Ce(we){we.register(se),we.languages.plsql=we.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:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),we.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}},67623:function(_e){"use strict";_e.exports=be,be.displayName="powerquery",be.aliases=[];function be(oe){oe.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:/[,;\[\](){}]/},oe.languages.pq=oe.languages.powerquery,oe.languages.mscript=oe.languages.powerquery}},32530:function(_e){"use strict";_e.exports=be,be.displayName="powershell",be.aliases=[];function be(oe){(function(se){var Ce=se.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:/[|{}[\];(),.]/};Ce.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:Ce},boolean:Ce.boolean,variable:Ce.variable}})(oe)}},8938:function(_e){"use strict";_e.exports=be,be.displayName="processing",be.aliases=[];function be(oe){oe.languages.processing=oe.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:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),oe.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(_e){"use strict";_e.exports=be,be.displayName="prolog",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="promql",be.aliases=[];function be(oe){(function(se){var Ce=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],we=["on","ignoring","group_right","group_left","by","without"],Ie=["offset"],De=Ce.concat(we,Ie);se.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+we.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(?:"+De.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:/[{};()`,.[\]]/}})(oe)}},15375:function(_e){"use strict";_e.exports=be,be.displayName="properties",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="protobuf",be.aliases=[];function be(oe){(function(se){var Ce=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;se.languages.protobuf=se.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}),se.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:Ce}},builtin:Ce,"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}})})(oe)}},83588:function(_e){"use strict";_e.exports=be,be.displayName="psl",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="pug",be.aliases=[];function be(oe){(function(se){se.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:se.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:se.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:se.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:se.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:se.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:se.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:se.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:se.languages.javascript}],punctuation:/[.\-!=|]+/};for(var Ce=/(^([\t ]*)):<filter_name>(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,we=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],Ie={},De=0,Ke=we.length;De<Ke;De++){var Ee=we[De];Ee=typeof Ee=="string"?{filter:Ee,language:Ee}:Ee,se.languages[Ee.language]&&(Ie["filter-"+Ee.filter]={pattern:RegExp(Ce.replace("<filter_name>",function(){return Ee.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[Ee.language,"language-"+Ee.language],inside:se.languages[Ee.language]}}})}se.languages.insertBefore("pug","filter",Ie)})(oe)}},21294:function(_e){"use strict";_e.exports=be,be.displayName="puppet",be.aliases=[];function be(oe){(function(se){se.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 Ce=[{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:se.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];se.languages.puppet.heredoc[0].inside.interpolation=Ce,se.languages.puppet.string.inside["double-quoted"].inside.interpolation=Ce})(oe)}},38709:function(_e){"use strict";_e.exports=be,be.displayName="pure",be.aliases=[];function be(oe){(function(se){se.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 Ce=["c",{lang:"c++",alias:"cpp"},"fortran"],we=/%< *-\*- *<lang>\d* *-\*-[\s\S]+?%>/.source;Ce.forEach(function(Ie){var De=Ie;if(typeof Ie!="string"&&(De=Ie.alias,Ie=Ie.lang),se.languages[De]){var Ke={};Ke["inline-lang-"+De]={pattern:RegExp(we.replace("<lang>",Ie.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:se.util.clone(se.languages.pure["inline-lang"].inside)},Ke["inline-lang-"+De].inside.rest=se.util.clone(se.languages[De]),se.languages.insertBefore("pure","inline-lang",Ke)}}),se.languages.c&&(se.languages.pure["inline-lang"].inside.rest=se.util.clone(se.languages.c))})(oe)}},15008:function(_e){"use strict";_e.exports=be,be.displayName="purebasic",be.aliases=[];function be(oe){oe.languages.purebasic=oe.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+|-[>-]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|?\||[~^%?*/@]/}),oe.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 oe.languages.purebasic["class-name"],delete oe.languages.purebasic.boolean,oe.languages.pbfasm=oe.languages.purebasic}},96549:function(_e,be,oe){"use strict";var se=oe(2050);_e.exports=Ce,Ce.displayName="purescript",Ce.aliases=["purs"];function Ce(we){we.register(se),we.languages.purescript=we.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:[we.languages.haskell.operator[0],we.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]/]}),we.languages.purs=we.languages.purescript}},5221:function(_e){"use strict";_e.exports=be,be.displayName="python",be.aliases=["py"];function be(oe){oe.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},oe.languages.python["string-interpolation"].inside.interpolation.inside.rest=oe.languages.python,oe.languages.py=oe.languages.python}},27447:function(_e){"use strict";_e.exports=be,be.displayName="q",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="qml",be.aliases=[];function be(oe){(function(se){for(var Ce=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,we=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,Ie=/(?:[^\\()[\]{}"'/]|<string>|\/(?![*/])|<comment>|\(<expr>*\)|\[<expr>*\]|\{<expr>*\}|\\[\s\S])/.source.replace(/<string>/g,function(){return Ce}).replace(/<comment>/g,function(){return we}),De=0;De<2;De++)Ie=Ie.replace(/<expr>/g,function(){return Ie});Ie=Ie.replace(/<expr>/g,"[^\\s\\S]"),se.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 Ie}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:se.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 Ie}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:se.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(oe)}},75542:function(_e){"use strict";_e.exports=be,be.displayName="qore",be.aliases=[];function be(oe){oe.languages.qore=oe.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(_e){"use strict";_e.exports=be,be.displayName="qsharp",be.aliases=["qs"];function be(oe){(function(se){function Ce(kt,ze){return kt.replace(/<<(\d+)>>/g,function(ee,ne){return"(?:"+ze[+ne]+")"})}function we(kt,ze,ee){return RegExp(Ce(kt,ze),ee||"")}function Ie(kt,ze){for(var ee=0;ee<ze;ee++)kt=kt.replace(/<<self>>/g,function(){return"(?:"+kt+")"});return kt.replace(/<<self>>/g,"[^\\s\\S]")}var De={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 Ke(kt){return"\\b(?:"+kt.trim().replace(/ /g,"|")+")\\b"}var Ee=RegExp(Ke(De.type+" "+De.other)),et=/\b[A-Za-z_]\w*\b/.source,Je=Ce(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[et]),Ye={keyword:Ee,punctuation:/[<>()?,.:[\]]/},tt=/"(?:\\.|[^\\"])*"/.source;se.languages.qsharp=se.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:we(/(^|[^$\\])<<0>>/.source,[tt]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:we(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[Je]),lookbehind:!0,inside:Ye},{pattern:we(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[Je]),lookbehind:!0,inside:Ye}],keyword:Ee,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:/::|[{}[\];(),.:]/}),se.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var ht=Ie(Ce(/\{(?:[^"{}]|<<0>>|<<self>>)*\}/.source,[tt]),2);se.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:we(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[ht]),greedy:!0,inside:{interpolation:{pattern:we(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[ht]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:se.languages.qsharp}}},string:/[\s\S]+/}}})})(oe),oe.languages.qs=oe.languages.qsharp}},44298:function(_e){"use strict";_e.exports=be,be.displayName="r",be.aliases=[];function be(oe){oe.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(_e,be,oe){"use strict";var se=oe(48780);_e.exports=Ce,Ce.displayName="racket",Ce.aliases=["rkt"];function Ce(we){we.register(se),we.languages.racket=we.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),we.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),we.languages.rkt=we.languages.racket}},75266:function(_e){"use strict";_e.exports=be,be.displayName="reason",be.aliases=[];function be(oe){oe.languages.reason=oe.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/}),oe.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 oe.languages.reason.function}},48139:function(_e){"use strict";_e.exports=be,be.displayName="regex",be.aliases=[];function be(oe){(function(se){var Ce={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},we=/\\(?: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]|.)/,Ie={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},De={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},Ke="(?:[^\\\\-]|"+we.source+")",Ee=RegExp(Ke+"-"+Ke),et={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};se.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:Ee,inside:{escape:we,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":Ce,"char-set":De,escape:we}},"special-escape":Ce,"char-set":Ie,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":et}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:we,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":et}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(oe)}},97534:function(_e){"use strict";_e.exports=be,be.displayName="rego",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="renpy",be.aliases=["rpy"];function be(oe){oe.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:/[{}[\];(),.:]/},oe.languages.rpy=oe.languages.renpy}},63919:function(_e){"use strict";_e.exports=be,be.displayName="rest",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="rip",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="roboconf",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="robotframework",be.aliases=[];function be(oe){(function(se){var Ce={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},we={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function Ie(et,Je){var Ye={};Ye["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var tt in Je)Ye[tt]=Je[tt];return Ye.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},Ye.variable=we,Ye.comment=Ce,{pattern:RegExp(/^ ?\*{3}[ \t]*<name>[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(/<name>/g,function(){return et}),"im"),alias:"section",inside:Ye}}var De={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},Ke={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:we}},Ee={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:we}};se.languages.robotframework={settings:Ie("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:Ie("Variables"),"test-cases":Ie("Test Cases",{"test-name":Ke,documentation:De,property:Ee}),keywords:Ie("Keywords",{"keyword-name":Ke,documentation:De,property:Ee}),tasks:Ie("Tasks",{"task-name":Ke,documentation:De,property:Ee}),comment:Ce},se.languages.robot=se.languages.robotframework})(oe)}},75308:function(_e){"use strict";_e.exports=be,be.displayName="ruby",be.aliases=["rb"];function be(oe){(function(se){se.languages.ruby=se.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:/[(){}[\].,;]/}),se.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var Ce={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:se.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete se.languages.ruby.function;var we="(?:"+[/([^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("|")+")",Ie=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;se.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+we+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:Ce,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:Ce,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+Ie),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+Ie+/(?=:(?!:))/.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:/\./}}}),se.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+we),greedy:!0,inside:{interpolation:Ce,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:Ce,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:Ce,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+we),greedy:!0,inside:{interpolation:Ce,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:Ce,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete se.languages.ruby.string,se.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)/}),se.languages.rb=se.languages.ruby})(oe)}},45315:function(_e){"use strict";_e.exports=be,be.displayName="rust",be.aliases=[];function be(oe){(function(se){for(var Ce=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,we=0;we<2;we++)Ce=Ce.replace(/<self>/g,function(){return Ce});Ce=Ce.replace(/<self>/g,function(){return/[^\s\S]/.source}),se.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+Ce),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:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},se.languages.rust["closure-params"].inside.rest=se.languages.rust,se.languages.rust.attribute.inside.string=se.languages.rust.string})(oe)}},13794:function(_e){"use strict";_e.exports=be,be.displayName="sas",be.aliases=[];function be(oe){(function(se){var Ce=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,we=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,Ie={pattern:RegExp(Ce+"[bx]"),alias:"number"},De={pattern:/&[a-z_]\w*/i},Ke={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"},Ee={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},et=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],Je={pattern:RegExp(Ce),greedy:!0},Ye=/[$%@.(){}\[\];,\\]/,tt={pattern:/%?\b\w+(?=\()/,alias:"keyword"},ht={function:tt,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":De,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:we,"numeric-constant":Ie,punctuation:Ye,string:Je},kt={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},ze={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},ee={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"},ne={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},ge=/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,ue={pattern:RegExp(/(^|\s)(?:action\s+)?(?:<act>)\.[a-z]+\b[^;]+/.source.replace(/<act>/g,function(){return ge}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:<act>)\.[a-z]+\b/.source.replace(/<act>/g,function(){return ge}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:et,function:tt,"arg-value":ht["arg-value"],operator:ht.operator,argument:ht.arg,number:we,"numeric-constant":Ie,punctuation:Ye,string:Je}},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};se.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 Ce}),"im"),alias:"language-sql",inside:se.languages.sql},"global-statements":ee,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:we,"numeric-constant":Ie,punctuation:Ye,string:Je}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:et,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return Ce}),"im"),lookbehind:!0,alias:"language-groovy",inside:se.languages.groovy},keyword:me,"submit-statement":ne,"global-statements":ee,number:we,"numeric-constant":Ie,punctuation:Ye,string:Je}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:et,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return Ce}),"im"),lookbehind:!0,alias:"language-lua",inside:se.languages.lua},keyword:me,"submit-statement":ne,"global-statements":ee,number:we,"numeric-constant":Ie,punctuation:Ye,string:Je}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:et,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:ht}},"cas-actions":ue,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:ht},step:Ee,keyword:me,function:tt,format:kt,altformat:ze,"global-statements":ee,number:we,"numeric-constant":Ie,punctuation:Ye,string:Je}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|<str>)+;/.source.replace(/<str>/g,function(){return Ce}),"im"),lookbehind:!0,inside:ht},"macro-keyword":Ke,"macro-variable":De,"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":Ke,"macro-variable":De,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:Ye}},"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:et,number:we,"numeric-constant":Ie}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:ht},"cas-actions":ue,comment:et,function:tt,format:kt,altformat:ze,"numeric-constant":Ie,datetime:{pattern:RegExp(Ce+"(?:dt?|t)"),alias:"number"},string:Je,step:Ee,keyword:me,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:we,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:Ye}})(oe)}},41299:function(_e){"use strict";_e.exports=be,be.displayName="sass",be.aliases=[];function be(oe){(function(se){se.languages.sass=se.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),se.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete se.languages.sass.atrule;var Ce=/\$[-\w]+|#\{\$[-\w]+\}/,we=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];se.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:Ce,operator:we}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:Ce,operator:we,important:se.languages.sass.important}}}),delete se.languages.sass.property,delete se.languages.sass.important,se.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}})})(oe)}},98177:function(_e,be,oe){"use strict";var se=oe(7093);_e.exports=Ce,Ce.displayName="scala",Ce.aliases=[];function Ce(we){we.register(se),we.languages.scala=we.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*/}),we.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:we.languages.scala}}},string:/[\s\S]+/}}}),delete we.languages.scala["class-name"],delete we.languages.scala.function}},48780:function(_e){"use strict";_e.exports=be,be.displayName="scheme",be.aliases=[];function be(oe){(function(se){se.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(Ce({"<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 Ce(we){for(var Ie in we)we[Ie]=we[Ie].replace(/<[\w\s]+>/g,function(De){return"(?:"+we[De].trim()+")"});return we[Ie]}})(oe)}},79793:function(_e){"use strict";_e.exports=be,be.displayName="scss",be.aliases=[];function be(oe){oe.languages.scss=oe.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]+\}/}}}),oe.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}]}),oe.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),oe.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}}),oe.languages.scss.atrule.inside.rest=oe.languages.scss}},52085:function(_e,be,oe){"use strict";var se=oe(3058);_e.exports=Ce,Ce.displayName="shellSession",Ce.aliases=[];function Ce(we){we.register(se),function(Ie){var De=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");Ie.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 De}),"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:Ie.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},Ie.languages["sh-session"]=Ie.languages.shellsession=Ie.languages["shell-session"]}(we)}},65411:function(_e){"use strict";_e.exports=be,be.displayName="smali",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="smalltalk",be.aliases=[];function be(oe){oe.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(_e,be,oe){"use strict";var se=oe(51478);_e.exports=Ce,Ce.displayName="smarty",Ce.aliases=[];function Ce(we){we.register(se),function(Ie){Ie.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:Ie.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/]},Ie.languages.smarty["embedded-php"].inside.smarty.inside=Ie.languages.smarty,Ie.languages.smarty.string[0].inside.interpolation.inside.expression.inside=Ie.languages.smarty;var De=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,Ke=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>)*\})*\})*\}/.source.replace(/<str>/g,function(){return De.source}),"g");Ie.hooks.add("before-tokenize",function(Ee){var et="{literal}",Je="{/literal}",Ye=!1;Ie.languages["markup-templating"].buildPlaceholders(Ee,"smarty",Ke,function(tt){return tt===Je&&(Ye=!1),Ye?!1:(tt===et&&(Ye=!0),!0)})}),Ie.hooks.add("after-tokenize",function(Ee){Ie.languages["markup-templating"].tokenizePlaceholders(Ee,"smarty")})}(we)}},66433:function(_e){"use strict";_e.exports=be,be.displayName="sml",be.aliases=["smlnj"];function be(oe){(function(se){var Ce=/\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;se.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 Ce.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:Ce,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:/[(){}\[\].:,;]/},se.languages.sml["class-name"][0].inside=se.languages.sml,se.languages.smlnj=se.languages.sml})(oe)}},34855:function(_e){"use strict";_e.exports=be,be.displayName="solidity",be.aliases=["sol"];function be(oe){oe.languages.solidity=oe.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:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),oe.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/}),oe.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),oe.languages.sol=oe.languages.solidity}},12998:function(_e){"use strict";_e.exports=be,be.displayName="solutionFile",be.aliases=[];function be(oe){(function(se){var Ce={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};se.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:Ce}},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:Ce}},guid:Ce,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},se.languages.sln=se.languages["solution-file"]})(oe)}},10202:function(_e,be,oe){"use strict";var se=oe(51478);_e.exports=Ce,Ce.displayName="soy",Ce.aliases=[];function Ce(we){we.register(se),function(Ie){var De=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,Ke=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;Ie.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:De,greedy:!0},number:Ke,punctuation:/[\[\].?]/}},string:{pattern:De,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:Ke,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},Ie.hooks.add("before-tokenize",function(Ee){var et=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,Je="{literal}",Ye="{/literal}",tt=!1;Ie.languages["markup-templating"].buildPlaceholders(Ee,"soy",et,function(ht){return ht===Ye&&(tt=!1),tt?!1:(ht===Je&&(tt=!0),!0)})}),Ie.hooks.add("after-tokenize",function(Ee){Ie.languages["markup-templating"].tokenizePlaceholders(Ee,"soy")})}(we)}},41186:function(_e,be,oe){"use strict";var se=oe(58710);_e.exports=Ce,Ce.displayName="sparql",Ce.aliases=["rq"];function Ce(we){we.register(se),we.languages.sparql=we.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),we.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]}),we.languages.rq=we.languages.sparql}},68963:function(_e){"use strict";_e.exports=be,be.displayName="splunkSpl",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="sqf",be.aliases=[];function be(oe){oe.languages.sqf=oe.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}),oe.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:oe.languages.sqf.comment}}}),delete oe.languages.sqf["class-name"]}},69435:function(_e){"use strict";_e.exports=be,be.displayName="sql",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="squirrel",be.aliases=[];function be(oe){oe.languages.squirrel=oe.languages.extend("clike",{comment:[oe.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:/[(){}\[\],;.]/}),oe.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),oe.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}},46449:function(_e){"use strict";_e.exports=be,be.displayName="stan",be.aliases=[];function be(oe){(function(se){var Ce=/\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/;se.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("("+Ce.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/,Ce],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:/[()\[\]{},;]/},se.languages.stan.constraint.inside.expression.inside=se.languages.stan})(oe)}},89032:function(_e){"use strict";_e.exports=be,be.displayName="stylus",be.aliases=[];function be(oe){(function(se){var Ce={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},we={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},Ie={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:Ce,number:we,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:Ce,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:we,punctuation:/[{}()\[\];:,]/};Ie.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:Ie}},Ie.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:Ie}},se.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:Ie}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:Ie}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:Ie}},"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:Ie.interpolation}},rest:Ie}},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:Ie.interpolation,comment:Ie.comment,punctuation:/[{},]/}},func:Ie.func,string:Ie.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:Ie.interpolation,punctuation:/[{}()\[\];:.]/}})(oe)}},40241:function(_e){"use strict";_e.exports=be,be.displayName="swift",be.aliases=[];function be(oe){oe.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:/[{}[\]();,.:\\]/},oe.languages.swift["string-literal"].forEach(function(se){se.inside.interpolation.inside=oe.languages.swift})}},24812:function(_e){"use strict";_e.exports=be,be.displayName="systemd",be.aliases=[];function be(oe){(function(se){var Ce={pattern:/^[;#].*/m,greedy:!0},we=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;se.languages.systemd={comment:Ce,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+"(?:"+we+`|(?=[^"\r
]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+we+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:Ce,quoted:{pattern:RegExp(/(^|\s)/.source+we),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(oe)}},16747:function(_e,be,oe){"use strict";var se=oe(73584),Ce=oe(87648);_e.exports=we,we.displayName="t4Cs",we.aliases=[];function we(Ie){Ie.register(se),Ie.register(Ce),Ie.languages.t4=Ie.languages["t4-cs"]=Ie.languages["t4-templating"].createT4("csharp")}},73584:function(_e){"use strict";_e.exports=be,be.displayName="t4Templating",be.aliases=[];function be(oe){(function(se){function Ce(Ie,De,Ke){return{pattern:RegExp("<#"+Ie+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+Ie+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:De,alias:Ke}}}}function we(Ie){var De=se.languages[Ie],Ke="language-"+Ie;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:Ce("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:Ce("=",De,Ke),"class-feature":Ce("\\+",De,Ke),standard:Ce("",De,Ke)}}}}se.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:we})})(oe)}},79243:function(_e,be,oe){"use strict";var se=oe(73584),Ce=oe(55686);_e.exports=we,we.displayName="t4Vb",we.aliases=[];function we(Ie){Ie.register(se),Ie.register(Ce),Ie.languages["t4-vb"]=Ie.languages["t4-templating"].createT4("vbnet")}},31788:function(_e,be,oe){"use strict";var se=oe(14409);_e.exports=Ce,Ce.displayName="tap",Ce.aliases=[];function Ce(we){we.register(se),we.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:we.languages.yaml,alias:"language-yaml"}}}},60871:function(_e){"use strict";_e.exports=be,be.displayName="tcl",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="textile",be.aliases=[];function be(oe){(function(se){var Ce=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,we=/\)|\((?![^|()\n]+\))/.source;function Ie(tt,ht){return RegExp(tt.replace(/<MOD>/g,function(){return"(?:"+Ce+")"}).replace(/<PAR>/g,function(){return"(?:"+we+")"}),ht||"")}var De={css:{pattern:/\{[^{}]+\}/,inside:{rest:se.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},Ke=se.languages.textile=se.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:Ie(/^[a-z]\w*(?:<MOD>|<PAR>|[<>=])*\./.source),inside:{modifier:{pattern:Ie(/(^[a-z]\w*)(?:<MOD>|<PAR>|[<>=])+(?=\.)/.source),lookbehind:!0,inside:De},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:Ie(/^[*#]+<MOD>*\s+\S.*/.source,"m"),inside:{modifier:{pattern:Ie(/(^[*#]+)<MOD>+/.source),lookbehind:!0,inside:De},punctuation:/^[*#]+/}},table:{pattern:Ie(/^(?:(?:<MOD>|<PAR>|[<>=^~])+\.\s*)?(?:\|(?:(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.|(?!(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:Ie(/(^|\|(?:\r?\n|\r)?)(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:De},punctuation:/\||^\./}},inline:{pattern:Ie(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])<MOD>*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:Ie(/(^(\*\*?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:Ie(/(^(__?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:Ie(/(^\?\?<MOD>*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:Ie(/(^@<MOD>*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:Ie(/(^\+<MOD>*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:Ie(/(^-<MOD>*).+?(?=-)/.source),lookbehind:!0},span:{pattern:Ie(/(^%<MOD>*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:Ie(/(^\*\*|__|\?\?|[*_%@+\-^~])<MOD>+/.source),lookbehind:!0,inside:De},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:Ie(/"<MOD>*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:Ie(/(^"<MOD>*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:Ie(/(^")<MOD>+/.source),lookbehind:!0,inside:De},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:Ie(/!(?:<MOD>|<PAR>|[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:Ie(/(^!(?:<MOD>|<PAR>|[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:Ie(/(^!)(?:<MOD>|<PAR>|[<>=])+/.source),lookbehind:!0,inside:De},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:/[()]/}}}}}),Ee=Ke.phrase.inside,et={inline:Ee.inline,link:Ee.link,image:Ee.image,footnote:Ee.footnote,acronym:Ee.acronym,mark:Ee.mark};Ke.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var Je=Ee.inline.inside;Je.bold.inside=et,Je.italic.inside=et,Je.inserted.inside=et,Je.deleted.inside=et,Je.span.inside=et;var Ye=Ee.table.inside;Ye.inline=et.inline,Ye.link=et.link,Ye.image=et.image,Ye.footnote=et.footnote,Ye.acronym=et.acronym,Ye.mark=et.mark})(oe)}},14693:function(_e){"use strict";_e.exports=be,be.displayName="toml",be.aliases=[];function be(oe){(function(se){var Ce=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function we(Ie){return Ie.replace(/__/g,function(){return Ce})}se.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(we(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(we(/(^[\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:/[.,=[\]{}]/}})(oe)}},8743:function(_e){"use strict";_e.exports=be,be.displayName="tremor",be.aliases=[];function be(oe){(function(se){se.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 Ce=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;se.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+Ce+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+Ce+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(Ce),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:se.languages.tremor}}},string:/[\s\S]+/}},se.languages.troy=se.languages.tremor,se.languages.trickle=se.languages.tremor})(oe)}},1689:function(_e,be,oe){"use strict";var se=oe(24103),Ce=oe(92784);_e.exports=we,we.displayName="tsx",we.aliases=[];function we(Ie){Ie.register(se),Ie.register(Ce),function(De){var Ke=De.util.clone(De.languages.typescript);De.languages.tsx=De.languages.extend("jsx",Ke),delete De.languages.tsx.parameter,delete De.languages.tsx["literal-property"];var Ee=De.languages.tsx.tag;Ee.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+Ee.pattern.source+")",Ee.pattern.flags),Ee.lookbehind=!0}(Ie)}},69210:function(_e,be,oe){"use strict";var se=oe(51478);_e.exports=Ce,Ce.displayName="tt2",Ce.aliases=[];function Ce(we){we.register(se),function(Ie){Ie.languages.tt2=Ie.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:/[[\]{},()]/}),Ie.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),Ie.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),Ie.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 Ie.languages.tt2.string,Ie.hooks.add("before-tokenize",function(De){var Ke=/\[%[\s\S]+?%\]/g;Ie.languages["markup-templating"].buildPlaceholders(De,"tt2",Ke)}),Ie.hooks.add("after-tokenize",function(De){Ie.languages["markup-templating"].tokenizePlaceholders(De,"tt2")})}(we)}},58710:function(_e){"use strict";_e.exports=be,be.displayName="turtle",be.aliases=[];function be(oe){oe.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:/@/}}},oe.languages.trig=oe.languages.turtle}},60452:function(_e,be,oe){"use strict";var se=oe(51478);_e.exports=Ce,Ce.displayName="twig",Ce.aliases=[];function Ce(we){we.register(se),we.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:/[()\[\]{}:.,]/},we.hooks.add("before-tokenize",function(Ie){if(Ie.language==="twig"){var De=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;we.languages["markup-templating"].buildPlaceholders(Ie,"twig",De)}}),we.hooks.add("after-tokenize",function(Ie){we.languages["markup-templating"].tokenizePlaceholders(Ie,"twig")})}},92784:function(_e){"use strict";_e.exports=be,be.displayName="typescript",be.aliases=["ts"];function be(oe){(function(se){se.languages.typescript=se.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/}),se.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 se.languages.typescript.parameter,delete se.languages.typescript["literal-property"];var Ce=se.languages.extend("typescript",{});delete Ce["class-name"],se.languages.typescript["class-name"].inside=Ce,se.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:Ce}}}}),se.languages.ts=se.languages.typescript})(oe)}},36489:function(_e){"use strict";_e.exports=be,be.displayName="typoscript",be.aliases=["tsconfig"];function be(oe){(function(se){var Ce=/\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/;se.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:Ce}},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:Ce,number:/^\d+$/,punctuation:/[,|:]/}},keyword:Ce,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},se.languages.tsconfig=se.languages.typoscript})(oe)}},78380:function(_e){"use strict";_e.exports=be,be.displayName="unrealscript",be.aliases=["uc","uscript"];function be(oe){oe.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:/[()[\]{};,.]/},oe.languages.uc=oe.languages.uscript=oe.languages.unrealscript}},10409:function(_e){"use strict";_e.exports=be,be.displayName="uorazor",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="uri",be.aliases=["url"];function be(oe){oe.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":/\//}}},oe.languages.url=oe.languages.uri}},82028:function(_e){"use strict";_e.exports=be,be.displayName="v",be.aliases=[];function be(oe){(function(se){var Ce={pattern:/[\s\S]+/,inside:null};se.languages.v=se.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":Ce}}}},"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/}),Ce.inside=se.languages.v,se.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),se.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+/}}}),se.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:se.languages.v.generic.inside}}}})})(oe)}},62282:function(_e){"use strict";_e.exports=be,be.displayName="vala",be.aliases=[];function be(oe){oe.languages.vala=oe.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/}),oe.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:oe.languages.vala}},string:/[\s\S]+/}}}),oe.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:oe.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}},55686:function(_e,be,oe){"use strict";var se=oe(51422);_e.exports=Ce,Ce.displayName="vbnet",Ce.aliases=[];function Ce(we){we.register(se),we.languages.vbnet=we.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(_e){"use strict";_e.exports=be,be.displayName="velocity",be.aliases=[];function be(oe){(function(se){se.languages.velocity=se.languages.extend("markup",{});var Ce={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:/[(){}[\]:,.]/};Ce.variable.inside={string:Ce.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:Ce.number,boolean:Ce.boolean,punctuation:Ce.punctuation},se.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:Ce}},variable:Ce.variable}),se.languages.velocity.tag.inside["attr-value"].inside.rest=se.languages.velocity})(oe)}},37116:function(_e){"use strict";_e.exports=be,be.displayName="verilog",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="vhdl",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="vim",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="visualBasic",be.aliases=[];function be(oe){oe.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:/[{}().,:?]/},oe.languages.vb=oe.languages["visual-basic"],oe.languages.vba=oe.languages["visual-basic"]}},17723:function(_e){"use strict";_e.exports=be,be.displayName="warpscript",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="wasm",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="webIdl",be.aliases=[];function be(oe){(function(se){var Ce=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,we="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+Ce+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,Ie={};se.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+Ce),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:Ie},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+we),lookbehind:!0,inside:Ie},{pattern:RegExp("("+/\bcallback\s+/.source+Ce+/\s*=\s*/.source+")"+we),lookbehind:!0,inside:Ie},{pattern:RegExp(/(\btypedef\b\s*)/.source+we),lookbehind:!0,inside:Ie},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+Ce),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+Ce),lookbehind:!0},RegExp(Ce+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+Ce),lookbehind:!0},{pattern:RegExp(we+"(?="+/\s*(?:\.{3}\s*)?/.source+Ce+/\s*[(),;=]/.source+")"),inside:Ie}],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 De in se.languages["web-idl"])De!=="class-name"&&(Ie[De]=se.languages["web-idl"][De]);se.languages.webidl=se.languages["web-idl"]})(oe)}},8921:function(_e){"use strict";_e.exports=be,be.displayName="wiki",be.aliases=[];function be(oe){oe.languages.wiki=oe.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:oe.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),oe.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:oe.languages.markup.tag.inside}}}})}},13429:function(_e){"use strict";_e.exports=be,be.displayName="wolfram",be.aliases=["mathematica","wl","nb"];function be(oe){oe.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:/[{}[\];(),.:]/},oe.languages.mathematica=oe.languages.wolfram,oe.languages.wl=oe.languages.wolfram,oe.languages.nb=oe.languages.wolfram}},65197:function(_e){"use strict";_e.exports=be,be.displayName="wren",be.aliases=[];function be(oe){oe.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:/[\[\](){}.,;]/},oe.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:oe.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}},88904:function(_e){"use strict";_e.exports=be,be.displayName="xeora",be.aliases=["xeoracube"];function be(oe){(function(se){se.languages.xeora=se.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"}}),se.languages.insertBefore("inside","punctuation",{variable:se.languages.xeora["function-inline"].inside.variable},se.languages.xeora["function-block"]),se.languages.xeoracube=se.languages.xeora})(oe)}},35:function(_e){"use strict";_e.exports=be,be.displayName="xmlDoc",be.aliases=[];function be(oe){(function(se){function Ce(Ke,Ee){se.languages[Ke]&&se.languages.insertBefore(Ke,"comment",{"doc-comment":Ee})}var we=se.languages.markup.tag,Ie={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:we}},De={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:we}};Ce("csharp",Ie),Ce("fsharp",Ie),Ce("vbnet",De)})(oe)}},86095:function(_e){"use strict";_e.exports=be,be.displayName="xojo",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="xquery",be.aliases=[];function be(oe){(function(se){se.languages.xquery=se.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:/[[\](){},;:/]/}),se.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,se.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,se.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,se.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:se.languages.xquery,alias:"language-xquery"};var Ce=function(Ie){return typeof Ie=="string"?Ie:typeof Ie.content=="string"?Ie.content:Ie.content.map(Ce).join("")},we=function(Ie){for(var De=[],Ke=0;Ke<Ie.length;Ke++){var Ee=Ie[Ke],et=!1;if(typeof Ee!="string"&&(Ee.type==="tag"&&Ee.content[0]&&Ee.content[0].type==="tag"?Ee.content[0].content[0].content==="</"?De.length>0&&De[De.length-1].tagName===Ce(Ee.content[0].content[1])&&De.pop():Ee.content[Ee.content.length-1].content==="/>"||De.push({tagName:Ce(Ee.content[0].content[1]),openedBraces:0}):De.length>0&&Ee.type==="punctuation"&&Ee.content==="{"&&(!Ie[Ke+1]||Ie[Ke+1].type!=="punctuation"||Ie[Ke+1].content!=="{")&&(!Ie[Ke-1]||Ie[Ke-1].type!=="plain-text"||Ie[Ke-1].content!=="{")?De[De.length-1].openedBraces++:De.length>0&&De[De.length-1].openedBraces>0&&Ee.type==="punctuation"&&Ee.content==="}"?De[De.length-1].openedBraces--:Ee.type!=="comment"&&(et=!0)),(et||typeof Ee=="string")&&De.length>0&&De[De.length-1].openedBraces===0){var Je=Ce(Ee);Ke<Ie.length-1&&(typeof Ie[Ke+1]=="string"||Ie[Ke+1].type==="plain-text")&&(Je+=Ce(Ie[Ke+1]),Ie.splice(Ke+1,1)),Ke>0&&(typeof Ie[Ke-1]=="string"||Ie[Ke-1].type==="plain-text")&&(Je=Ce(Ie[Ke-1])+Je,Ie.splice(Ke-1,1),Ke--),/^\s+$/.test(Je)?Ie[Ke]=Je:Ie[Ke]=new se.Token("plain-text",Je,null,Je)}Ee.content&&typeof Ee.content!="string"&&we(Ee.content)}};se.hooks.add("after-tokenize",function(Ie){Ie.language==="xquery"&&we(Ie.tokens)})})(oe)}},14409:function(_e){"use strict";_e.exports=be,be.displayName="yaml",be.aliases=["yml"];function be(oe){(function(se){var Ce=/[*&][^\s[\]{},]+/,we=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,Ie="(?:"+we.source+"(?:[ ]+"+Ce.source+")?|"+Ce.source+"(?:[ ]+"+we.source+")?)",De=/(?:[^\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}),Ke=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function Ee(et,Je){Je=(Je||"").replace(/m/g,"")+"m";var Ye=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return Ie}).replace(/<<value>>/g,function(){return et});return RegExp(Ye,Je)}se.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 Ie})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return Ie}).replace(/<<key>>/g,function(){return"(?:"+De+"|"+Ke+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:Ee(/\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:Ee(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:Ee(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:Ee(Ke),lookbehind:!0,greedy:!0},number:{pattern:Ee(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:we,important:Ce,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},se.languages.yml=se.languages.yaml})(oe)}},33460:function(_e){"use strict";_e.exports=be,be.displayName="yang",be.aliases=[];function be(oe){oe.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(_e){"use strict";_e.exports=be,be.displayName="zig",be.aliases=[];function be(oe){(function(se){function Ce(Je){return function(){return Je}}var we=/\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/,Ie="\\b(?!"+we.source+")(?!\\d)\\w+\\b",De=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,Ke=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*<ALIGN>|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(/<ALIGN>/g,Ce(De)),Ee=/(?:\bpromise\b|(?:\berror\.)?<ID>(?:\.<ID>)*(?!\s+<ID>))/.source.replace(/<ID>/g,Ce(Ie)),et="(?!\\s)(?:!?\\s*(?:"+Ke+"\\s*)*"+Ee+")+";se.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,Ce(et)).replace(/<ALIGN>/g,Ce(De))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?;)/.source.replace(/<TYPE>/g,Ce(et)).replace(/<ALIGN>/g,Ce(De))),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:we,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:/[.:,;(){}[\]]/},se.languages.zig["class-name"].forEach(function(Je){Je.inside===null&&(Je.inside=se.languages.zig)})})(oe)}},92848:function(_e,be){"use strict";var oe;be.Q=Ie,oe=De;var se="",Ce=" ",we=/[ \t\n\r\f]+/g;function Ie(Ke){var Ee=String(Ke||se).trim();return Ee===se?[]:Ee.split(we)}function De(Ke){return Ke.join(Ce).trim()}},58970:function(_e,be,oe){"use strict";var se=this&&this.__importDefault||function(Ie){return Ie&&Ie.__esModule?Ie:{default:Ie}};Object.defineProperty(be,"__esModule",{value:!0}),be.default=we;var Ce=se(oe(93193));function we(Ie,De){var Ke=null;if(!Ie||typeof Ie!="string")return Ke;var Ee=(0,Ce.default)(Ie),et=typeof De=="function";return Ee.forEach(function(Je){if(Je.type==="declaration"){var Ye=Je.property,tt=Je.value;et?De(Ye,tt,Je):tt&&(Ke=Ke||{},Ke[Ye]=tt)}}),Ke}},97270:function(_e){_e.exports=oe;var be=Object.prototype.hasOwnProperty;function oe(){for(var se={},Ce=0;Ce<arguments.length;Ce++){var we=arguments[Ce];for(var Ie in we)be.call(we,Ie)&&(se[Ie]=we[Ie])}return se}},90034:function(_e,be,oe){var se={"./doc.png":63604,"./docx.png":30045,"./jpg.png":13740,"./md.png":58881,"./pdf.png":28982,"./png.png":2487,"./txt.png":3164};function Ce(Ie){var De=we(Ie);return oe(De)}function we(Ie){if(!oe.o(se,Ie)){var De=new Error("Cannot find module '"+Ie+"'");throw De.code="MODULE_NOT_FOUND",De}return se[Ie]}Ce.keys=function(){return Object.keys(se)},Ce.resolve=we,_e.exports=Ce,Ce.id=90034},93314:function(_e){"use strict";_e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},11689:function(_e){"use strict";_e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAAAAXNSR0IArs4c6QAABERJREFUSEullltsVFUUhr+1z3SgQoVOS9sZqG2oCZcENDHxyQQT9WXqpQ0E37xweVESosbwIo2ATxpJiTZFUkmkaowSCtg0mJAIiRqJMUFMTBUUQum0KDNDhZG2M2cvs08z7bSdGUncT+fsvdb/r9u/zxHKrNFbWsckT1s0LrBKhSiqAoyg+hviDYR8TtbVyWg5HOcwb42Oap2G7ZuqvAgsLAeAMIFyJLTAdNQtLk42j2Q4lXtKrHyIsKws+PzDJKrbY7WhvrlHs0iGk7ltghwEvNIEChQtgHOxImZHNCLdhf7T1iNjGsfXk6pakkAVMllYFC5NIyLWiGysr5bjeaKAxDXYZnUQ1er/KlH6DlRXlrcS+DtrzZr7lknCWQYkiaTfA2wt5Zov0LiFSRUWoITz+SpIkeqJ0BuNeM8FJEEWk3YICM8lceDGQDgsqAi5HOT8qdDEgKiiOS3VoZyvprmxVoZlNK07rbWdxbKoCAvW+lz45SLpsVsB6PQSQ1NTI7FoPfiKKQIgwq5oxHtbEkl7DLS90Cbrw+83lNUNObbu2M3pb86SvZ0hSGWGhaqqJezZu5uN7XEujSir6sEUlE5EBqIR0yrDKf+iKPfnfa3CqyeE9G0hXtXPax17sJkM+P5U7VwDXEbWBs/3Lqml/9Qp2g4v4q0nlbZ1s4b3WqzGNMpw0k8LLM0fJf+BDT3CwyuE5j/e42DPIZiYpDn+GMnBS2QSo9SsW4OI8OcP5xET5tOjfbx8ZiUPNcJHGwtKiozHakylJJL+LWBxnuRGBrYdM6xvgIrzB+ju7g4ij3/SxeAXXzL09bc8uGMLxjOc29eJmAo+P9bH/vMtNNfCu/EZEhHJRSOmQhIpexnV5jzJzTvwxlfC6jph7LsDdL3fBZ7Holg9ufEJ7ESW0OJKbDbHROomIiFOnOzjyK8tNEbg9Q0FmSjXY7Veg2t8P2jrTE+Uw+cMVZWQ+rGXfXv2BSSuHyYUAjRoibohUCUUvofvzw5w+EI9j7Yoj6yc1ZPTsRrzhIyk/JdU6So8Gs9C8g4syF0n3r6F4ZEhgvhEAk2oe1N3wQmbN23ig84OfhpSVkbmCtO8EquRThm6octDRq+oqguzYEChcqFweSjBZ32nSKbTs5TgGv/A2lU82/Y4ngkzPjFP+laMaYlWy5Wpuyulh6za7XP15KZ1YQWEKgTjTU2tK5Xbd9PsKpadVCYL5ZMHEY7EIt7z03fX1b80FjJ2EKgqpnwH6ETmwPNac3py0ikc2Bl8yajI2lhErk6TBNmk9RlrnfqL3hDFuEvtqXhmc3SpHJ0hLTBNpHUn1u7/H0TuD2DX8oj3ztz+zoroelrbfGt7CwV6l2lkxDMvFGZQNJP85rWkrvCwexXc96DMpzjwsAgfg9md78G8ASoXZSKtTVjbBtIKuh6oDeyVpIr+7BmvX+G4G9NyOCX/CO6yRHdl9i+jmbAprh0r/wAAAABJRU5ErkJggg=="},63604:function(_e){"use strict";_e.exports="data:image/png;base64,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"},30045:function(_e){"use strict";_e.exports="data:image/png;base64,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"},13740:function(_e){"use strict";_e.exports="data:image/png;base64,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"},58881:function(_e){"use strict";_e.exports="data:image/png;base64,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"},28982:function(_e){"use strict";_e.exports="data:image/png;base64,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"},2487:function(_e){"use strict";_e.exports="data:image/png;base64,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"},3164:function(_e){"use strict";_e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAANM0lEQVR4nO3cfWxddR3H8e/t07buoZ1YBTalG497CNwqYiqadhL8Rw1V/1LRNVH/AhOJmsjAAFHQRIxLhP802QSj/+CaKP9IcJ0CC5h4S8QNw4SOdA+khd6WsYe29x6/Hw533J2d8+t9OL9z7/ndzyu59HdKe+/W/N77/e45Z8tIA8zOzmaXltp2SsbL6uGwUCwOvTIpHR3tS10dHdNdnZ1P3rD9qu/op6kOiQaiYfQuFtp+lRFvVCh2CKQcYlnb3f3w9duuvFsPqQaJBaJxZJcKmf067NUHWRAMpGRNd3fu4zdc8zEdUpUSCUTj6Nc4cjpkHBZFBQKrV606cmP22qt1SFVIJJDpmTxWjmEhq0yBACOpnvVAZmZmRzzJ7NMhWbZcIMBIqmM9kOmZ2TF9mdt0SJZVEggwksolEEje0w+UgEoDAUZSGauB6JtznLnK6ZASUE0gwEiWZzWQ6enZYcm8e2qXElBtIMBIzBiIQ2oJBBhJNAbikFoDAUYSjoE4pJ5AgJFcjIE4pN5AgJFciIE4JI5AgJG8j4E4JK5AgJH4GIhD4gwEGIkwEJfEHQi0eiQMxCE2AoFWjoSBOMRWINCqkTAQh9gMBFoxEgbiENuBQKtFwkAckkQg0EqRMBCHJBUItEokDMQhSQYCrRAJA3FI0oGA65EwEIc0IhBwORIG4pBGBQKuRsJAHNLIQMDFSBiIQxodCLgWCQNxSDMEAi5FwkAc0iyBgCuRMBCHNFMg4EIkDMQhzRYIpD0SBuKQZgwE0hwJA3FIswYCaY2EgTikmQOBNEbCQBzS7IFA2iJhIA5JQyCQpkgYiEPSEgikJRIG4pA0BQJpiISBOCRtgUCzR8JAHJLGQKCZI2EgDklrINCskTAQh6Q5EGjGSBiIQ9IeCDRbJAzEIS4EAs0UCQNxiCuBQLNEwkAc4lIg0AyRMBCHuBYINDoSBuIQFwOBRkbCQBziaiDQqEgYiENcDgQaEQkDccj/Xj8u584t6MhdSUfCQBwyOXVSTp85qyO3rV614tCN2S3bdGgdA3HIm7Pz8sbMWzpy37rV3X8YuP6ar+nQKgbikIXFJTkyOaUj97W1tXkb+j64afPmy4/qoTUZfVjDQJJ37OSMzL19SkfuW7du9djAtqu/pENrGIhjCoWivKKrSLFY1CO3dXV2nhm8cVu3Dq1hIA46q2ey8Ia9FSIZGsxancNWn5yBNA4iOfbGjPOnfT/y4Q/123wfktGHNQyk8fLzp+TN/LyzoVzSs/au7Vuv3K1DKxhIi8AZrkU8lvShH13R1dX51as2bfijDq1gIJRunrejr2/9uFjCQCjdGAiRAQMhMmAgRAYMhMiAgRAZMBAiAwZCZMBAiAwYCJEBAyEyYCBEBgyEyICBEBkwECIDBkJkwECIDBgIkQEDITJgIEQGDITIIM2B7J+Y/sL2jZ1/1iGRFS9NLX5xR7bvLzq0wlog/aP/yfb2eI889eONN+shkRW3/mTq2fxc5s7JPdsm9DB2VgJBHEuytL9ndfvk+AMbs/opIiuG75uamHun0N8hHTtsRBJ7IKU4PJHe3tXtEwyEbEIg+XcK+Bes8zYi0eeNT3kceigMhGwrBaJD0ckceyT6nPEIxgEMhGwrDwR0QscaiT5f/cLiAAZCtgUDAZ3UsUWiz1WfqDiAgZBtYYGATuxYItHnqZ0pDmAgZFtUIKCTu+5I9Dlqs1wcwEDINlMgoBO8rkj0+6tXSRzAQMi25QIBneQ1R6LfW51K4wAGQrZVEgjoRK8pEv2+ylUTBzAQsq3SQEAne9WR6PdUpto4gIGQbdUEAjrhq4pEv355tcQBDIRsqzYQ0ElfcST6tWa1xgEMhGyrJRDQiV9RJPp10eqJAxgI2VZrIKCTf9lI9GvC1RsHMBCyrZ5AQAMwRqL//2JxxAEMhGyrNxDQCCIj0f93oS3fP37FqXz+cU+8NXpYl8vWd809dPulQzoksmLX4ycPnJhd6NFhXTKSObWmt/f2w7+8/KgenpfRxwW23+sNF4qyX4dELaW9TXa89NPMuJRhIETvYSBEBgyEyICBEBkwECIDBkJkwECIDBgIkQEDITJwOpB1K0WuvUwHDfDfEyLzZ0U+sUkPIhzPixyb1UGdKnmN6/TnsFZ/Hkl7W38GL+vPIq2cDuSmTSJ7vq2DBhj9jcgLr4nccYs+PqufCIGJ+5VH/JBq9c1Pifzo8zoIgcl56y/859+rPwdTSLb8U38GO/VnkVYMxJJSIPCnO/0/wcM89pzIz57UQQ02rBd54g5dKVfpQYjyXwMDqQ0DsaR8cmIiI5KoLU7511Zjz7f097hZByGC4TGQ2jAQS4KT3rQVqmWrZXo+7Pnx+uXPx0Bqw0AswQQtDwRMkzT4J74JViTT1urLGhsiKWd6bZsYiGMOPaj/CbH1Hv1PnXBW7akf1r/VMm2tHv2bPp7WQZ2iTi7E9fxpwUACbAYCt2wV+fXXdRCikq2WaWsV55/WDMTHQAJsBwIIBKGEMW21TFsrnNLF1gqRxYGB+BhIQBKBYKuFs1qX64QPE7XVMm2t7nlCZN+/dBATBuJjIAFJBAKmEwhYBYJbLdPW6ulDIt/9vQ5ixEB8DCQgqUDgbp3w39CJH6Z8q7Xc1qp0tTxODMTHQAKSDARbLawiUVfZS1st09YKKwdWkLgxEB8DCUgyEEAceD8SBlutsVz4RIXyVSZuDMTHQAKSDgSiJqPJ8Vn/rFXcW6uSqF8TA2EgoWwGAlhFsJpUCnEEr5bHiYH4GEhAowLBG3FEEnWVvVwSk5SB+BhIQKMCAdOp3BKsGlg9bGMgPgYS0MhAYLmbCm992H/zbhsD8TGQgEYGgtO+f/2Bfgy53lFi67RuEAPxMZCARgZiukerZP6MXmV/1P4qwkB8DCSgUYEgDARSiRde1YuIv9WBRQzEx0ACGhEIzmBF3UoS5edPivxOLxTawkB8DCSgEYGYbiXBBcGou35xNgtntWxgID4GEpB0IKZTu3gzjgmJ6yNhDp/Q9yMaiQ0MxMdAApIMBFfOsXqEba3K79KNmqxg636sqNdkIAwklI1AntCVYYtGEiZ4OherCIIKU7rrN04MxMdAApIKJGoCAsJAIOUQByIJg1O+2GphtYlL1K+PgTCQUHEGYprs5VuroKhJC/jrtvhrt3GJei0GwkBCxRUIrpZja4VTu2GwcmAFiYKwEFiY5b63GgzEx0ACbAdi+mu2mNyY5CaIA5GEwVX2zz2sH0NWn2oxEB8DCbAZiOkfajBtrYKiJi/EdZU96jUYCAMJVW8g2FqZbkTEyoEVpFJYRbCahInjKjsD8TGQAFuB4D4r3G8VBmEgkGogDkQSBlutem9oZCA+BhJgIxCEgUDCVLO1CoqaxFDvVfao52YgDCRUrYHEvbUKwiqC1SRMPZOZgfgYSEDcgeBWkqgbEREGAqkH4kAkUWq9oZGB+BhIQJyBmG5ErGdrFRQ1mQHvQ7DVqvZ1op6TgbR4IETlDj+UuaiHiz4BW3Z5nn4gaiVzGkivfrxAaCBbd3ljWshtOiRqDRnZe/jBzKgEhAay5V5vRIqyT4dELSHs/QeEBgK6zRoXkSF9ELktYvWAyECy93u95xZkUkR69EHkJH1b/mJXpwxP3J/J6+FFIgOBbbu8bFFkTIdX6IPIKe/FMaJxTEoEYyDw7kqyKLvFk516SOQEnfgPdHXJbo0jr4eR9Osqo6H0aygjGsqIHsKQPojS4oBO9ryXkfEVnTKmYUxKBfR77Jmenh3WdWy/Dons8LwdfX3rx8USBkLpxkCIDBgIkQEDITJgIEQGDITIgIEQGTAQIgMGQmTAQIgMGAiRAQMhMmAgRAYMhMiAgRAZMBAiAwZCZMBAiAwYCFG0l195bcdnBgfGxRKrgfzjYG74uqs3MRCyJvWBbO7f+FhXZ+dGPSSK1alTpyemTrxxV6oDWbt2zX0bLu0bFqKYvX785IHT75y5P9WBFCUzdt2VH5W2tjb+E6YUm4XFxakjk8fWtok3kvZA9q/s6nxm8xUbPq2fIorFkcmp5xcWlz6pgaT7PQgC0aH0XbL+mb4P9DASqtvkMd1anT47pENxJhDo7l55oH/DpUM6JKrJq0ePPXN2YfH8H7ROBfKujEz1faB3Uh/nf5NEJsVice7N/Py/p9/K94snG/VT57kXyPvm2tvbX1uxonOuo63d02OiCywsLHQsFoprCoVCVg9DdbR7AzffNDChQyusBvLsC7nsUiGT0yGRFUODWatz2OqTw4GDE1wdyApPvKPDgwP9YpH9QJ7LjUkmc5sOiWLm7R0aHBgVi6wH8vfncyNeMbNPh0Sxsv0GHawHAgcO5sb1pYaEKDb2Vw9IJJCDB3P950QmMpLp0UOiuuh7jxd7VsrwwMBAXg+tSiQQwBmtxYKMMxKqB+LobJdRm6d2yyUWCORyud75s7JbX3anHhJVydu7bqV8L4mVoyTRQEqwmiwtyai+elb43oQi6GoxpxN0QofjXSJ7BgcHJiVh/wemziNQhWOwlgAAAABJRU5ErkJggg=="},96908:function(_e){"use strict";_e.exports="data:image/png;base64,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"},57177:function(_e){"use strict";_e.exports="data:image/png;base64,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"},81378:function(_e){"use strict";_e.exports="data:image/png;base64,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"},16722:function(_e,be,oe){"use strict";oe.d(be,{Z:function(){return et}});const se=Je=>typeof Je=="object"&&Je!=null&&Je.nodeType===1,Ce=(Je,Ye)=>(!Ye||Je!=="hidden")&&Je!=="visible"&&Je!=="clip",we=(Je,Ye)=>{if(Je.clientHeight<Je.scrollHeight||Je.clientWidth<Je.scrollWidth){const tt=getComputedStyle(Je,null);return Ce(tt.overflowY,Ye)||Ce(tt.overflowX,Ye)||(ht=>{const kt=(ze=>{if(!ze.ownerDocument||!ze.ownerDocument.defaultView)return null;try{return ze.ownerDocument.defaultView.frameElement}catch(ee){return null}})(ht);return!!kt&&(kt.clientHeight<ht.scrollHeight||kt.clientWidth<ht.scrollWidth)})(Je)}return!1},Ie=(Je,Ye,tt,ht,kt,ze,ee,ne)=>ze<Je&&ee>Ye||ze>Je&&ee<Ye?0:ze<=Je&&ne<=tt||ee>=Ye&&ne>=tt?ze-Je-ht:ee>Ye&&ne<tt||ze<Je&&ne>tt?ee-Ye+kt:0,De=Je=>{const Ye=Je.parentElement;return Ye==null?Je.getRootNode().host||null:Ye},Ke=(Je,Ye)=>{var tt,ht,kt,ze;if(typeof document=="undefined")return[];const{scrollMode:ee,block:ne,inline:ge,boundary:ue,skipOverflowHiddenElements:me}=Ye,Se=typeof ue=="function"?ue:sn=>sn!==ue;if(!se(Je))throw new TypeError("Invalid target");const Ne=document.scrollingElement||document.documentElement,ke=[];let Te=Je;for(;se(Te)&&Se(Te);){if(Te=De(Te),Te===Ne){ke.push(Te);break}Te!=null&&Te===document.body&&we(Te)&&!we(document.documentElement)||Te!=null&&we(Te,me)&&ke.push(Te)}const We=(ht=(tt=window.visualViewport)==null?void 0:tt.width)!=null?ht:innerWidth,$e=(ze=(kt=window.visualViewport)==null?void 0:kt.height)!=null?ze:innerHeight,{scrollX:st,scrollY:ut}=window,{height:Mt,width:nt,top:$t,right:Pt,bottom:dn,left:zt}=Je.getBoundingClientRect(),{top:Xt,right:fn,bottom:an,left:it}=(sn=>{const It=window.getComputedStyle(sn);return{top:parseFloat(It.scrollMarginTop)||0,right:parseFloat(It.scrollMarginRight)||0,bottom:parseFloat(It.scrollMarginBottom)||0,left:parseFloat(It.scrollMarginLeft)||0}})(Je);let Ve=ne==="start"||ne==="nearest"?$t-Xt:ne==="end"?dn+an:$t+Mt/2-Xt+an,gt=ge==="center"?zt+nt/2-it+fn:ge==="end"?Pt+fn:zt-it;const Bt=[];for(let sn=0;sn<ke.length;sn++){const It=ke[sn],{height:en,width:En,top:ei,right:An,bottom:Kn,left:jt}=It.getBoundingClientRect();if(ee==="if-needed"&&$t>=0&&zt>=0&&dn<=$e&&Pt<=We&&(It===Ne&&!we(It)||$t>=ei&&dn<=Kn&&zt>=jt&&Pt<=An))return Bt;const Nn=getComputedStyle(It),Gn=parseInt(Nn.borderLeftWidth,10),ii=parseInt(Nn.borderTopWidth,10),Sn=parseInt(Nn.borderRightWidth,10),Yt=parseInt(Nn.borderBottomWidth,10);let Zt=0,St=0;const rt="offsetWidth"in It?It.offsetWidth-It.clientWidth-Gn-Sn:0,Ft="offsetHeight"in It?It.offsetHeight-It.clientHeight-ii-Yt:0,Ot="offsetWidth"in It?It.offsetWidth===0?0:En/It.offsetWidth:0,ft="offsetHeight"in It?It.offsetHeight===0?0:en/It.offsetHeight:0;if(Ne===It)Zt=ne==="start"?Ve:ne==="end"?Ve-$e:ne==="nearest"?Ie(ut,ut+$e,$e,ii,Yt,ut+Ve,ut+Ve+Mt,Mt):Ve-$e/2,St=ge==="start"?gt:ge==="center"?gt-We/2:ge==="end"?gt-We:Ie(st,st+We,We,Gn,Sn,st+gt,st+gt+nt,nt),Zt=Math.max(0,Zt+ut),St=Math.max(0,St+st);else{Zt=ne==="start"?Ve-ei-ii:ne==="end"?Ve-Kn+Yt+Ft:ne==="nearest"?Ie(ei,Kn,en,ii,Yt+Ft,Ve,Ve+Mt,Mt):Ve-(ei+en/2)+Ft/2,St=ge==="start"?gt-jt-Gn:ge==="center"?gt-(jt+En/2)+rt/2:ge==="end"?gt-An+Sn+rt:Ie(jt,An,En,Gn,Sn+rt,gt,gt+nt,nt);const{scrollLeft:ct,scrollTop:Ge}=It;Zt=ft===0?0:Math.max(0,Math.min(Ge+Zt/ft,It.scrollHeight-en/ft+Ft)),St=Ot===0?0:Math.max(0,Math.min(ct+St/Ot,It.scrollWidth-En/Ot+rt)),Ve+=Ge-Zt,gt+=ct-St}Bt.push({el:It,top:Zt,left:St})}return Bt},Ee=Je=>Je===!1?{block:"end",inline:"nearest"}:(Ye=>Ye===Object(Ye)&&Object.keys(Ye).length!==0)(Je)?Je:{block:"start",inline:"nearest"};function et(Je,Ye){if(!Je.isConnected||!(kt=>{let ze=kt;for(;ze&&ze.parentNode;){if(ze.parentNode===document)return!0;ze=ze.parentNode instanceof ShadowRoot?ze.parentNode.host:ze.parentNode}return!1})(Je))return;const tt=(kt=>{const ze=window.getComputedStyle(kt);return{top:parseFloat(ze.scrollMarginTop)||0,right:parseFloat(ze.scrollMarginRight)||0,bottom:parseFloat(ze.scrollMarginBottom)||0,left:parseFloat(ze.scrollMarginLeft)||0}})(Je);if((kt=>typeof kt=="object"&&typeof kt.behavior=="function")(Ye))return Ye.behavior(Ke(Je,Ye));const ht=typeof Ye=="boolean"||Ye==null?void 0:Ye.behavior;for(const{el:kt,top:ze,left:ee}of Ke(Je,Ee(Ye))){const ne=ze-tt.top+tt.bottom,ge=ee-tt.left+tt.right;kt.scroll({top:ne,left:ge,behavior:ht})}}},47854:function(_e){"use strict";_e.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(_e){"use strict";_e.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"}')}}]);
}());